Subversion Repositories freemyipod

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
445 theseven 1
#! /bin/sh
2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.63.
4
#
5
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6
# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7
# This configure script is free software; the Free Software Foundation
8
# gives unlimited permission to copy, distribute and modify it.
9
## --------------------- ##
10
## M4sh Initialization.  ##
11
## --------------------- ##
12
 
13
# Be more Bourne compatible
14
DUALCASE=1; export DUALCASE # for MKS sh
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16
  emulate sh
17
  NULLCMD=:
18
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19
  # is contrary to our usage.  Disable this feature.
20
  alias -g '${1+"$@"}'='"$@"'
21
  setopt NO_GLOB_SUBST
22
else
23
  case `(set -o) 2>/dev/null` in
24
  *posix*) set -o posix ;;
25
esac
26
 
27
fi
28
 
29
 
30
 
31
 
32
# PATH needs CR
33
# Avoid depending upon Character Ranges.
34
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37
as_cr_digits='0123456789'
38
as_cr_alnum=$as_cr_Letters$as_cr_digits
39
 
40
as_nl='
41
'
42
export as_nl
43
# Printing a long string crashes Solaris 7 /usr/bin/printf.
44
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48
  as_echo='printf %s\n'
49
  as_echo_n='printf %s'
50
else
51
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53
    as_echo_n='/usr/ucb/echo -n'
54
  else
55
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56
    as_echo_n_body='eval
57
      arg=$1;
58
      case $arg in
59
      *"$as_nl"*)
60
	expr "X$arg" : "X\\(.*\\)$as_nl";
61
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62
      esac;
63
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64
    '
65
    export as_echo_n_body
66
    as_echo_n='sh -c $as_echo_n_body as_echo'
67
  fi
68
  export as_echo_body
69
  as_echo='sh -c $as_echo_body as_echo'
70
fi
71
 
72
# The user is always right.
73
if test "${PATH_SEPARATOR+set}" != set; then
74
  PATH_SEPARATOR=:
75
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77
      PATH_SEPARATOR=';'
78
  }
79
fi
80
 
81
# Support unset when possible.
82
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83
  as_unset=unset
84
else
85
  as_unset=false
86
fi
87
 
88
 
89
# IFS
90
# We need space, tab and new line, in precisely that order.  Quoting is
91
# there to prevent editors from complaining about space-tab.
92
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
93
# splitting by setting IFS to empty value.)
94
IFS=" ""	$as_nl"
95
 
96
# Find who we are.  Look in the path if we contain no directory separator.
97
case $0 in
98
  *[\\/]* ) as_myself=$0 ;;
99
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100
for as_dir in $PATH
101
do
102
  IFS=$as_save_IFS
103
  test -z "$as_dir" && as_dir=.
104
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105
done
106
IFS=$as_save_IFS
107
 
108
     ;;
109
esac
110
# We did not find ourselves, most probably we were run as `sh COMMAND'
111
# in which case we are not to be found in the path.
112
if test "x$as_myself" = x; then
113
  as_myself=$0
114
fi
115
if test ! -f "$as_myself"; then
116
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117
  { (exit 1); exit 1; }
118
fi
119
 
120
# Work around bugs in pre-3.0 UWIN ksh.
121
for as_var in ENV MAIL MAILPATH
122
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123
done
124
PS1='$ '
125
PS2='> '
126
PS4='+ '
127
 
128
# NLS nuisances.
129
LC_ALL=C
130
export LC_ALL
131
LANGUAGE=C
132
export LANGUAGE
133
 
134
# Required to use basename.
135
if expr a : '\(a\)' >/dev/null 2>&1 &&
136
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
137
  as_expr=expr
138
else
139
  as_expr=false
140
fi
141
 
142
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143
  as_basename=basename
144
else
145
  as_basename=false
146
fi
147
 
148
 
149
# Name of the executable.
150
as_me=`$as_basename -- "$0" ||
151
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152
	 X"$0" : 'X\(//\)$' \| \
153
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154
$as_echo X/"$0" |
155
    sed '/^.*\/\([^/][^/]*\)\/*$/{
156
	    s//\1/
157
	    q
158
	  }
159
	  /^X\/\(\/\/\)$/{
160
	    s//\1/
161
	    q
162
	  }
163
	  /^X\/\(\/\).*/{
164
	    s//\1/
165
	    q
166
	  }
167
	  s/.*/./; q'`
168
 
169
# CDPATH.
170
$as_unset CDPATH
171
 
172
 
173
if test "x$CONFIG_SHELL" = x; then
174
  if (eval ":") 2>/dev/null; then
175
  as_have_required=yes
176
else
177
  as_have_required=no
178
fi
179
 
180
  if test $as_have_required = yes &&	 (eval ":
181
(as_func_return () {
182
  (exit \$1)
183
}
184
as_func_success () {
185
  as_func_return 0
186
}
187
as_func_failure () {
188
  as_func_return 1
189
}
190
as_func_ret_success () {
191
  return 0
192
}
193
as_func_ret_failure () {
194
  return 1
195
}
196
 
197
exitcode=0
198
if as_func_success; then
199
  :
200
else
201
  exitcode=1
202
  echo as_func_success failed.
203
fi
204
 
205
if as_func_failure; then
206
  exitcode=1
207
  echo as_func_failure succeeded.
208
fi
209
 
210
if as_func_ret_success; then
211
  :
212
else
213
  exitcode=1
214
  echo as_func_ret_success failed.
215
fi
216
 
217
if as_func_ret_failure; then
218
  exitcode=1
219
  echo as_func_ret_failure succeeded.
220
fi
221
 
222
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223
  :
224
else
225
  exitcode=1
226
  echo positional parameters were not saved.
227
fi
228
 
229
test \$exitcode = 0) || { (exit 1); exit 1; }
230
 
231
(
232
  as_lineno_1=\$LINENO
233
  as_lineno_2=\$LINENO
234
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236
") 2> /dev/null; then
237
  :
238
else
239
  as_candidate_shells=
240
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242
do
243
  IFS=$as_save_IFS
244
  test -z "$as_dir" && as_dir=.
245
  case $as_dir in
246
	 /*)
247
	   for as_base in sh bash ksh sh5; do
248
	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249
	   done;;
250
       esac
251
done
252
IFS=$as_save_IFS
253
 
254
 
255
      for as_shell in $as_candidate_shells $SHELL; do
256
	 # Try only shells that exist, to save several forks.
257
	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258
		{ ("$as_shell") 2> /dev/null <<\_ASEOF
259
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260
  emulate sh
261
  NULLCMD=:
262
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263
  # is contrary to our usage.  Disable this feature.
264
  alias -g '${1+"$@"}'='"$@"'
265
  setopt NO_GLOB_SUBST
266
else
267
  case `(set -o) 2>/dev/null` in
268
  *posix*) set -o posix ;;
269
esac
270
 
271
fi
272
 
273
 
274
:
275
_ASEOF
276
}; then
277
  CONFIG_SHELL=$as_shell
278
	       as_have_required=yes
279
	       if { "$as_shell" 2> /dev/null <<\_ASEOF
280
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281
  emulate sh
282
  NULLCMD=:
283
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284
  # is contrary to our usage.  Disable this feature.
285
  alias -g '${1+"$@"}'='"$@"'
286
  setopt NO_GLOB_SUBST
287
else
288
  case `(set -o) 2>/dev/null` in
289
  *posix*) set -o posix ;;
290
esac
291
 
292
fi
293
 
294
 
295
:
296
(as_func_return () {
297
  (exit $1)
298
}
299
as_func_success () {
300
  as_func_return 0
301
}
302
as_func_failure () {
303
  as_func_return 1
304
}
305
as_func_ret_success () {
306
  return 0
307
}
308
as_func_ret_failure () {
309
  return 1
310
}
311
 
312
exitcode=0
313
if as_func_success; then
314
  :
315
else
316
  exitcode=1
317
  echo as_func_success failed.
318
fi
319
 
320
if as_func_failure; then
321
  exitcode=1
322
  echo as_func_failure succeeded.
323
fi
324
 
325
if as_func_ret_success; then
326
  :
327
else
328
  exitcode=1
329
  echo as_func_ret_success failed.
330
fi
331
 
332
if as_func_ret_failure; then
333
  exitcode=1
334
  echo as_func_ret_failure succeeded.
335
fi
336
 
337
if ( set x; as_func_ret_success y && test x = "$1" ); then
338
  :
339
else
340
  exitcode=1
341
  echo positional parameters were not saved.
342
fi
343
 
344
test $exitcode = 0) || { (exit 1); exit 1; }
345
 
346
(
347
  as_lineno_1=$LINENO
348
  as_lineno_2=$LINENO
349
  test "x$as_lineno_1" != "x$as_lineno_2" &&
350
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
 
352
_ASEOF
353
}; then
354
  break
355
fi
356
 
357
fi
358
 
359
      done
360
 
361
      if test "x$CONFIG_SHELL" != x; then
362
  for as_var in BASH_ENV ENV
363
	do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364
	done
365
	export CONFIG_SHELL
366
	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367
fi
368
 
369
 
370
    if test $as_have_required = no; then
371
  echo This script requires a shell more modern than all the
372
      echo shells that I found on your system.  Please install a
373
      echo modern shell, or manually run the script under such a
374
      echo shell if you do have one.
375
      { (exit 1); exit 1; }
376
fi
377
 
378
 
379
fi
380
 
381
fi
382
 
383
 
384
 
385
(eval "as_func_return () {
386
  (exit \$1)
387
}
388
as_func_success () {
389
  as_func_return 0
390
}
391
as_func_failure () {
392
  as_func_return 1
393
}
394
as_func_ret_success () {
395
  return 0
396
}
397
as_func_ret_failure () {
398
  return 1
399
}
400
 
401
exitcode=0
402
if as_func_success; then
403
  :
404
else
405
  exitcode=1
406
  echo as_func_success failed.
407
fi
408
 
409
if as_func_failure; then
410
  exitcode=1
411
  echo as_func_failure succeeded.
412
fi
413
 
414
if as_func_ret_success; then
415
  :
416
else
417
  exitcode=1
418
  echo as_func_ret_success failed.
419
fi
420
 
421
if as_func_ret_failure; then
422
  exitcode=1
423
  echo as_func_ret_failure succeeded.
424
fi
425
 
426
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427
  :
428
else
429
  exitcode=1
430
  echo positional parameters were not saved.
431
fi
432
 
433
test \$exitcode = 0") || {
434
  echo No shell found that supports shell functions.
435
  echo Please tell bug-autoconf@gnu.org about your system,
436
  echo including any error possibly output before this message.
437
  echo This can help us improve future autoconf versions.
438
  echo Configuration will now proceed without shell functions.
439
}
440
 
441
 
442
 
443
  as_lineno_1=$LINENO
444
  as_lineno_2=$LINENO
445
  test "x$as_lineno_1" != "x$as_lineno_2" &&
446
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
 
448
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449
  # uniformly replaced by the line number.  The first 'sed' inserts a
450
  # line-number line after each line using $LINENO; the second 'sed'
451
  # does the real work.  The second script uses 'N' to pair each
452
  # line-number line with the line containing $LINENO, and appends
453
  # trailing '-' during substitution so that $LINENO is not a special
454
  # case at line end.
455
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
457
  # E. McMahon (1931-1989) for sed's syntax.  :-)
458
  sed -n '
459
    p
460
    /[$]LINENO/=
461
  ' <$as_myself |
462
    sed '
463
      s/[$]LINENO.*/&-/
464
      t lineno
465
      b
466
      :lineno
467
      N
468
      :loop
469
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470
      t loop
471
      s/-\n.*//
472
    ' >$as_me.lineno &&
473
  chmod +x "$as_me.lineno" ||
474
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475
   { (exit 1); exit 1; }; }
476
 
477
  # Don't try to exec as it changes $[0], causing all sort of problems
478
  # (the dirname of $[0] is not the place where we might find the
479
  # original and so on.  Autoconf is especially sensitive to this).
480
  . "./$as_me.lineno"
481
  # Exit status is that of the last command.
482
  exit
483
}
484
 
485
 
486
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487
  as_dirname=dirname
488
else
489
  as_dirname=false
490
fi
491
 
492
ECHO_C= ECHO_N= ECHO_T=
493
case `echo -n x` in
494
-n*)
495
  case `echo 'x\c'` in
496
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
497
  *)   ECHO_C='\c';;
498
  esac;;
499
*)
500
  ECHO_N='-n';;
501
esac
502
if expr a : '\(a\)' >/dev/null 2>&1 &&
503
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
504
  as_expr=expr
505
else
506
  as_expr=false
507
fi
508
 
509
rm -f conf$$ conf$$.exe conf$$.file
510
if test -d conf$$.dir; then
511
  rm -f conf$$.dir/conf$$.file
512
else
513
  rm -f conf$$.dir
514
  mkdir conf$$.dir 2>/dev/null
515
fi
516
if (echo >conf$$.file) 2>/dev/null; then
517
  if ln -s conf$$.file conf$$ 2>/dev/null; then
518
    as_ln_s='ln -s'
519
    # ... but there are two gotchas:
520
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522
    # In both cases, we have to default to `cp -p'.
523
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524
      as_ln_s='cp -p'
525
  elif ln conf$$.file conf$$ 2>/dev/null; then
526
    as_ln_s=ln
527
  else
528
    as_ln_s='cp -p'
529
  fi
530
else
531
  as_ln_s='cp -p'
532
fi
533
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534
rmdir conf$$.dir 2>/dev/null
535
 
536
if mkdir -p . 2>/dev/null; then
537
  as_mkdir_p=:
538
else
539
  test -d ./-p && rmdir ./-p
540
  as_mkdir_p=false
541
fi
542
 
543
if test -x / >/dev/null 2>&1; then
544
  as_test_x='test -x'
545
else
546
  if ls -dL / >/dev/null 2>&1; then
547
    as_ls_L_option=L
548
  else
549
    as_ls_L_option=
550
  fi
551
  as_test_x='
552
    eval sh -c '\''
553
      if test -d "$1"; then
554
	test -d "$1/.";
555
      else
556
	case $1 in
557
	-*)set "./$1";;
558
	esac;
559
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560
	???[sx]*):;;*)false;;esac;fi
561
    '\'' sh
562
  '
563
fi
564
as_executable_p=$as_test_x
565
 
566
# Sed expression to map a string onto a valid CPP name.
567
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
 
569
# Sed expression to map a string onto a valid variable name.
570
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
 
572
 
573
 
574
exec 7<&0 </dev/null 6>&1
575
 
576
# Name of the host.
577
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578
# so uname gets run too.
579
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580
 
581
#
582
# Initializations.
583
#
584
ac_default_prefix=/usr/local
585
ac_clean_files=
586
ac_config_libobj_dir=.
587
LIBOBJS=
588
cross_compiling=no
589
subdirs=
590
MFLAGS=
591
MAKEFLAGS=
592
SHELL=${CONFIG_SHELL-/bin/sh}
593
 
594
# Identity of this package.
595
PACKAGE_NAME=
596
PACKAGE_TARNAME=
597
PACKAGE_VERSION=
598
PACKAGE_STRING=
599
PACKAGE_BUGREPORT=
600
 
601
ac_unique_file="elf2flt.c"
602
# Factoring default headers for most tests.
603
ac_includes_default="\
604
#include <stdio.h>
605
#ifdef HAVE_SYS_TYPES_H
606
# include <sys/types.h>
607
#endif
608
#ifdef HAVE_SYS_STAT_H
609
# include <sys/stat.h>
610
#endif
611
#ifdef STDC_HEADERS
612
# include <stdlib.h>
613
# include <stddef.h>
614
#else
615
# ifdef HAVE_STDLIB_H
616
#  include <stdlib.h>
617
# endif
618
#endif
619
#ifdef HAVE_STRING_H
620
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621
#  include <memory.h>
622
# endif
623
# include <string.h>
624
#endif
625
#ifdef HAVE_STRINGS_H
626
# include <strings.h>
627
#endif
628
#ifdef HAVE_INTTYPES_H
629
# include <inttypes.h>
630
#endif
631
#ifdef HAVE_STDINT_H
632
# include <stdint.h>
633
#endif
634
#ifdef HAVE_UNISTD_H
635
# include <unistd.h>
636
#endif"
637
 
638
ac_subst_vars='LTLIBOBJS
639
LIBOBJS
640
SYMBOL_PREFIX
641
always_reloc_text
642
emit_ctor_dtor
643
emit_relocs
644
got_check
645
use_ld_elf2flt_binary
646
binutils_ldscript_dir
647
zlib_include_dir
648
binutils_include_dir
649
bfd_include_dir
650
INSTALL_DATA
651
INSTALL_SCRIPT
652
INSTALL_PROGRAM
653
EGREP
654
GREP
655
CPP
656
OBJEXT
657
EXEEXT
658
ac_ct_CC
659
CPPFLAGS
660
LDFLAGS
661
CFLAGS
662
CC
663
target_os
664
target_vendor
665
target_cpu
666
target
667
host_os
668
host_vendor
669
host_cpu
670
host
671
build_os
672
build_vendor
673
build_cpu
674
build
675
target_alias
676
host_alias
677
build_alias
678
LIBS
679
ECHO_T
680
ECHO_N
681
ECHO_C
682
DEFS
683
mandir
684
localedir
685
libdir
686
psdir
687
pdfdir
688
dvidir
689
htmldir
690
infodir
691
docdir
692
oldincludedir
693
includedir
694
localstatedir
695
sharedstatedir
696
sysconfdir
697
datadir
698
datarootdir
699
libexecdir
700
sbindir
701
bindir
702
program_transform_name
703
prefix
704
exec_prefix
705
PACKAGE_BUGREPORT
706
PACKAGE_STRING
707
PACKAGE_VERSION
708
PACKAGE_TARNAME
709
PACKAGE_NAME
710
PATH_SEPARATOR
711
SHELL'
712
ac_subst_files=''
713
ac_user_opts='
714
enable_option_checking
715
with_zlib_prefix
716
with_libbfd
717
with_libiberty
718
with_bfd_include_dir
719
with_binutils_include_dir
720
with_binutils_ldscript_dir
721
with_binutils_build_dir
722
enable_ld_elf2flt_binary
723
enable_got_check
724
enable_emit_relocs
725
enable_emit_ctor_dtor
726
enable_always_reloc_text
727
'
728
      ac_precious_vars='build_alias
729
host_alias
730
target_alias
731
CC
732
CFLAGS
733
LDFLAGS
734
LIBS
735
CPPFLAGS
736
CPP'
737
 
738
 
739
# Initialize some variables set by options.
740
ac_init_help=
741
ac_init_version=false
742
ac_unrecognized_opts=
743
ac_unrecognized_sep=
744
# The variables have the same names as the options, with
745
# dashes changed to underlines.
746
cache_file=/dev/null
747
exec_prefix=NONE
748
no_create=
749
no_recursion=
750
prefix=NONE
751
program_prefix=NONE
752
program_suffix=NONE
753
program_transform_name=s,x,x,
754
silent=
755
site=
756
srcdir=
757
verbose=
758
x_includes=NONE
759
x_libraries=NONE
760
 
761
# Installation directory options.
762
# These are left unexpanded so users can "make install exec_prefix=/foo"
763
# and all the variables that are supposed to be based on exec_prefix
764
# by default will actually change.
765
# Use braces instead of parens because sh, perl, etc. also accept them.
766
# (The list follows the same order as the GNU Coding Standards.)
767
bindir='${exec_prefix}/bin'
768
sbindir='${exec_prefix}/sbin'
769
libexecdir='${exec_prefix}/libexec'
770
datarootdir='${prefix}/share'
771
datadir='${datarootdir}'
772
sysconfdir='${prefix}/etc'
773
sharedstatedir='${prefix}/com'
774
localstatedir='${prefix}/var'
775
includedir='${prefix}/include'
776
oldincludedir='/usr/include'
777
docdir='${datarootdir}/doc/${PACKAGE}'
778
infodir='${datarootdir}/info'
779
htmldir='${docdir}'
780
dvidir='${docdir}'
781
pdfdir='${docdir}'
782
psdir='${docdir}'
783
libdir='${exec_prefix}/lib'
784
localedir='${datarootdir}/locale'
785
mandir='${datarootdir}/man'
786
 
787
ac_prev=
788
ac_dashdash=
789
for ac_option
790
do
791
  # If the previous option needs an argument, assign it.
792
  if test -n "$ac_prev"; then
793
    eval $ac_prev=\$ac_option
794
    ac_prev=
795
    continue
796
  fi
797
 
798
  case $ac_option in
799
  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
800
  *)	ac_optarg=yes ;;
801
  esac
802
 
803
  # Accept the important Cygnus configure options, so we can diagnose typos.
804
 
805
  case $ac_dashdash$ac_option in
806
  --)
807
    ac_dashdash=yes ;;
808
 
809
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
810
    ac_prev=bindir ;;
811
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
812
    bindir=$ac_optarg ;;
813
 
814
  -build | --build | --buil | --bui | --bu)
815
    ac_prev=build_alias ;;
816
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
817
    build_alias=$ac_optarg ;;
818
 
819
  -cache-file | --cache-file | --cache-fil | --cache-fi \
820
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
821
    ac_prev=cache_file ;;
822
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
823
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
824
    cache_file=$ac_optarg ;;
825
 
826
  --config-cache | -C)
827
    cache_file=config.cache ;;
828
 
829
  -datadir | --datadir | --datadi | --datad)
830
    ac_prev=datadir ;;
831
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
832
    datadir=$ac_optarg ;;
833
 
834
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
835
  | --dataroo | --dataro | --datar)
836
    ac_prev=datarootdir ;;
837
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
838
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
839
    datarootdir=$ac_optarg ;;
840
 
841
  -disable-* | --disable-*)
842
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
843
    # Reject names that are not valid shell variable names.
844
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
845
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
846
   { (exit 1); exit 1; }; }
847
    ac_useropt_orig=$ac_useropt
848
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
849
    case $ac_user_opts in
850
      *"
851
"enable_$ac_useropt"
852
"*) ;;
853
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
854
	 ac_unrecognized_sep=', ';;
855
    esac
856
    eval enable_$ac_useropt=no ;;
857
 
858
  -docdir | --docdir | --docdi | --doc | --do)
859
    ac_prev=docdir ;;
860
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
861
    docdir=$ac_optarg ;;
862
 
863
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
864
    ac_prev=dvidir ;;
865
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
866
    dvidir=$ac_optarg ;;
867
 
868
  -enable-* | --enable-*)
869
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
870
    # Reject names that are not valid shell variable names.
871
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
872
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
873
   { (exit 1); exit 1; }; }
874
    ac_useropt_orig=$ac_useropt
875
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
876
    case $ac_user_opts in
877
      *"
878
"enable_$ac_useropt"
879
"*) ;;
880
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
881
	 ac_unrecognized_sep=', ';;
882
    esac
883
    eval enable_$ac_useropt=\$ac_optarg ;;
884
 
885
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
886
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
887
  | --exec | --exe | --ex)
888
    ac_prev=exec_prefix ;;
889
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
890
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
891
  | --exec=* | --exe=* | --ex=*)
892
    exec_prefix=$ac_optarg ;;
893
 
894
  -gas | --gas | --ga | --g)
895
    # Obsolete; use --with-gas.
896
    with_gas=yes ;;
897
 
898
  -help | --help | --hel | --he | -h)
899
    ac_init_help=long ;;
900
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
901
    ac_init_help=recursive ;;
902
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
903
    ac_init_help=short ;;
904
 
905
  -host | --host | --hos | --ho)
906
    ac_prev=host_alias ;;
907
  -host=* | --host=* | --hos=* | --ho=*)
908
    host_alias=$ac_optarg ;;
909
 
910
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
911
    ac_prev=htmldir ;;
912
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
913
  | --ht=*)
914
    htmldir=$ac_optarg ;;
915
 
916
  -includedir | --includedir | --includedi | --included | --include \
917
  | --includ | --inclu | --incl | --inc)
918
    ac_prev=includedir ;;
919
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
920
  | --includ=* | --inclu=* | --incl=* | --inc=*)
921
    includedir=$ac_optarg ;;
922
 
923
  -infodir | --infodir | --infodi | --infod | --info | --inf)
924
    ac_prev=infodir ;;
925
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
926
    infodir=$ac_optarg ;;
927
 
928
  -libdir | --libdir | --libdi | --libd)
929
    ac_prev=libdir ;;
930
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
931
    libdir=$ac_optarg ;;
932
 
933
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
934
  | --libexe | --libex | --libe)
935
    ac_prev=libexecdir ;;
936
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
937
  | --libexe=* | --libex=* | --libe=*)
938
    libexecdir=$ac_optarg ;;
939
 
940
  -localedir | --localedir | --localedi | --localed | --locale)
941
    ac_prev=localedir ;;
942
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
943
    localedir=$ac_optarg ;;
944
 
945
  -localstatedir | --localstatedir | --localstatedi | --localstated \
946
  | --localstate | --localstat | --localsta | --localst | --locals)
947
    ac_prev=localstatedir ;;
948
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
949
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
950
    localstatedir=$ac_optarg ;;
951
 
952
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
953
    ac_prev=mandir ;;
954
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
955
    mandir=$ac_optarg ;;
956
 
957
  -nfp | --nfp | --nf)
958
    # Obsolete; use --without-fp.
959
    with_fp=no ;;
960
 
961
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
962
  | --no-cr | --no-c | -n)
963
    no_create=yes ;;
964
 
965
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
966
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
967
    no_recursion=yes ;;
968
 
969
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
970
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
971
  | --oldin | --oldi | --old | --ol | --o)
972
    ac_prev=oldincludedir ;;
973
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
974
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
975
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
976
    oldincludedir=$ac_optarg ;;
977
 
978
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
979
    ac_prev=prefix ;;
980
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
981
    prefix=$ac_optarg ;;
982
 
983
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
984
  | --program-pre | --program-pr | --program-p)
985
    ac_prev=program_prefix ;;
986
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
987
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
988
    program_prefix=$ac_optarg ;;
989
 
990
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
991
  | --program-suf | --program-su | --program-s)
992
    ac_prev=program_suffix ;;
993
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
994
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
995
    program_suffix=$ac_optarg ;;
996
 
997
  -program-transform-name | --program-transform-name \
998
  | --program-transform-nam | --program-transform-na \
999
  | --program-transform-n | --program-transform- \
1000
  | --program-transform | --program-transfor \
1001
  | --program-transfo | --program-transf \
1002
  | --program-trans | --program-tran \
1003
  | --progr-tra | --program-tr | --program-t)
1004
    ac_prev=program_transform_name ;;
1005
  -program-transform-name=* | --program-transform-name=* \
1006
  | --program-transform-nam=* | --program-transform-na=* \
1007
  | --program-transform-n=* | --program-transform-=* \
1008
  | --program-transform=* | --program-transfor=* \
1009
  | --program-transfo=* | --program-transf=* \
1010
  | --program-trans=* | --program-tran=* \
1011
  | --progr-tra=* | --program-tr=* | --program-t=*)
1012
    program_transform_name=$ac_optarg ;;
1013
 
1014
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1015
    ac_prev=pdfdir ;;
1016
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1017
    pdfdir=$ac_optarg ;;
1018
 
1019
  -psdir | --psdir | --psdi | --psd | --ps)
1020
    ac_prev=psdir ;;
1021
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1022
    psdir=$ac_optarg ;;
1023
 
1024
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1025
  | -silent | --silent | --silen | --sile | --sil)
1026
    silent=yes ;;
1027
 
1028
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1029
    ac_prev=sbindir ;;
1030
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1031
  | --sbi=* | --sb=*)
1032
    sbindir=$ac_optarg ;;
1033
 
1034
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1035
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1036
  | --sharedst | --shareds | --shared | --share | --shar \
1037
  | --sha | --sh)
1038
    ac_prev=sharedstatedir ;;
1039
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1040
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1041
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1042
  | --sha=* | --sh=*)
1043
    sharedstatedir=$ac_optarg ;;
1044
 
1045
  -site | --site | --sit)
1046
    ac_prev=site ;;
1047
  -site=* | --site=* | --sit=*)
1048
    site=$ac_optarg ;;
1049
 
1050
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1051
    ac_prev=srcdir ;;
1052
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1053
    srcdir=$ac_optarg ;;
1054
 
1055
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1056
  | --syscon | --sysco | --sysc | --sys | --sy)
1057
    ac_prev=sysconfdir ;;
1058
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1059
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1060
    sysconfdir=$ac_optarg ;;
1061
 
1062
  -target | --target | --targe | --targ | --tar | --ta | --t)
1063
    ac_prev=target_alias ;;
1064
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1065
    target_alias=$ac_optarg ;;
1066
 
1067
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1068
    verbose=yes ;;
1069
 
1070
  -version | --version | --versio | --versi | --vers | -V)
1071
    ac_init_version=: ;;
1072
 
1073
  -with-* | --with-*)
1074
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1075
    # Reject names that are not valid shell variable names.
1076
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1077
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1078
   { (exit 1); exit 1; }; }
1079
    ac_useropt_orig=$ac_useropt
1080
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1081
    case $ac_user_opts in
1082
      *"
1083
"with_$ac_useropt"
1084
"*) ;;
1085
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1086
	 ac_unrecognized_sep=', ';;
1087
    esac
1088
    eval with_$ac_useropt=\$ac_optarg ;;
1089
 
1090
  -without-* | --without-*)
1091
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1092
    # Reject names that are not valid shell variable names.
1093
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1094
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1095
   { (exit 1); exit 1; }; }
1096
    ac_useropt_orig=$ac_useropt
1097
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1098
    case $ac_user_opts in
1099
      *"
1100
"with_$ac_useropt"
1101
"*) ;;
1102
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1103
	 ac_unrecognized_sep=', ';;
1104
    esac
1105
    eval with_$ac_useropt=no ;;
1106
 
1107
  --x)
1108
    # Obsolete; use --with-x.
1109
    with_x=yes ;;
1110
 
1111
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1112
  | --x-incl | --x-inc | --x-in | --x-i)
1113
    ac_prev=x_includes ;;
1114
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1115
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1116
    x_includes=$ac_optarg ;;
1117
 
1118
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1119
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1120
    ac_prev=x_libraries ;;
1121
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1122
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1123
    x_libraries=$ac_optarg ;;
1124
 
1125
  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1126
Try \`$0 --help' for more information." >&2
1127
   { (exit 1); exit 1; }; }
1128
    ;;
1129
 
1130
  *=*)
1131
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1132
    # Reject names that are not valid shell variable names.
1133
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1134
      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1135
   { (exit 1); exit 1; }; }
1136
    eval $ac_envvar=\$ac_optarg
1137
    export $ac_envvar ;;
1138
 
1139
  *)
1140
    # FIXME: should be removed in autoconf 3.0.
1141
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1142
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1143
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1144
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1145
    ;;
1146
 
1147
  esac
1148
done
1149
 
1150
if test -n "$ac_prev"; then
1151
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1152
  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1153
   { (exit 1); exit 1; }; }
1154
fi
1155
 
1156
if test -n "$ac_unrecognized_opts"; then
1157
  case $enable_option_checking in
1158
    no) ;;
1159
    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1160
   { (exit 1); exit 1; }; } ;;
1161
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1162
  esac
1163
fi
1164
 
1165
# Check all directory arguments for consistency.
1166
for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1167
		datadir sysconfdir sharedstatedir localstatedir includedir \
1168
		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1169
		libdir localedir mandir
1170
do
1171
  eval ac_val=\$$ac_var
1172
  # Remove trailing slashes.
1173
  case $ac_val in
1174
    */ )
1175
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1176
      eval $ac_var=\$ac_val;;
1177
  esac
1178
  # Be sure to have absolute directory names.
1179
  case $ac_val in
1180
    [\\/$]* | ?:[\\/]* )  continue;;
1181
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1182
  esac
1183
  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1184
   { (exit 1); exit 1; }; }
1185
done
1186
 
1187
# There might be people who depend on the old broken behavior: `$host'
1188
# used to hold the argument of --host etc.
1189
# FIXME: To remove some day.
1190
build=$build_alias
1191
host=$host_alias
1192
target=$target_alias
1193
 
1194
# FIXME: To remove some day.
1195
if test "x$host_alias" != x; then
1196
  if test "x$build_alias" = x; then
1197
    cross_compiling=maybe
1198
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1199
    If a cross compiler is detected then cross compile mode will be used." >&2
1200
  elif test "x$build_alias" != "x$host_alias"; then
1201
    cross_compiling=yes
1202
  fi
1203
fi
1204
 
1205
ac_tool_prefix=
1206
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1207
 
1208
test "$silent" = yes && exec 6>/dev/null
1209
 
1210
 
1211
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1212
ac_ls_di=`ls -di .` &&
1213
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1214
  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1215
   { (exit 1); exit 1; }; }
1216
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1217
  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1218
   { (exit 1); exit 1; }; }
1219
 
1220
 
1221
# Find the source files, if location was not specified.
1222
if test -z "$srcdir"; then
1223
  ac_srcdir_defaulted=yes
1224
  # Try the directory containing this script, then the parent directory.
1225
  ac_confdir=`$as_dirname -- "$as_myself" ||
1226
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1227
	 X"$as_myself" : 'X\(//\)[^/]' \| \
1228
	 X"$as_myself" : 'X\(//\)$' \| \
1229
	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1230
$as_echo X"$as_myself" |
1231
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1232
	    s//\1/
1233
	    q
1234
	  }
1235
	  /^X\(\/\/\)[^/].*/{
1236
	    s//\1/
1237
	    q
1238
	  }
1239
	  /^X\(\/\/\)$/{
1240
	    s//\1/
1241
	    q
1242
	  }
1243
	  /^X\(\/\).*/{
1244
	    s//\1/
1245
	    q
1246
	  }
1247
	  s/.*/./; q'`
1248
  srcdir=$ac_confdir
1249
  if test ! -r "$srcdir/$ac_unique_file"; then
1250
    srcdir=..
1251
  fi
1252
else
1253
  ac_srcdir_defaulted=no
1254
fi
1255
if test ! -r "$srcdir/$ac_unique_file"; then
1256
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1257
  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1258
   { (exit 1); exit 1; }; }
1259
fi
1260
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1261
ac_abs_confdir=`(
1262
	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1263
   { (exit 1); exit 1; }; }
1264
	pwd)`
1265
# When building in place, set srcdir=.
1266
if test "$ac_abs_confdir" = "$ac_pwd"; then
1267
  srcdir=.
1268
fi
1269
# Remove unnecessary trailing slashes from srcdir.
1270
# Double slashes in file names in object file debugging info
1271
# mess up M-x gdb in Emacs.
1272
case $srcdir in
1273
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1274
esac
1275
for ac_var in $ac_precious_vars; do
1276
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1277
  eval ac_env_${ac_var}_value=\$${ac_var}
1278
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1279
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1280
done
1281
 
1282
#
1283
# Report the --help message.
1284
#
1285
if test "$ac_init_help" = "long"; then
1286
  # Omit some internal or obsolete options to make the list less imposing.
1287
  # This message is too long to be a string in the A/UX 3.1 sh.
1288
  cat <<_ACEOF
1289
\`configure' configures this package to adapt to many kinds of systems.
1290
 
1291
Usage: $0 [OPTION]... [VAR=VALUE]...
1292
 
1293
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1294
VAR=VALUE.  See below for descriptions of some of the useful variables.
1295
 
1296
Defaults for the options are specified in brackets.
1297
 
1298
Configuration:
1299
  -h, --help              display this help and exit
1300
      --help=short        display options specific to this package
1301
      --help=recursive    display the short help of all the included packages
1302
  -V, --version           display version information and exit
1303
  -q, --quiet, --silent   do not print \`checking...' messages
1304
      --cache-file=FILE   cache test results in FILE [disabled]
1305
  -C, --config-cache      alias for \`--cache-file=config.cache'
1306
  -n, --no-create         do not create output files
1307
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1308
 
1309
Installation directories:
1310
  --prefix=PREFIX         install architecture-independent files in PREFIX
1311
                          [$ac_default_prefix]
1312
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1313
                          [PREFIX]
1314
 
1315
By default, \`make install' will install all the files in
1316
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1317
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1318
for instance \`--prefix=\$HOME'.
1319
 
1320
For better control, use the options below.
1321
 
1322
Fine tuning of the installation directories:
1323
  --bindir=DIR            user executables [EPREFIX/bin]
1324
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1325
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1326
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1327
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1328
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1329
  --libdir=DIR            object code libraries [EPREFIX/lib]
1330
  --includedir=DIR        C header files [PREFIX/include]
1331
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1332
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1333
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1334
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1335
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1336
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1337
  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1338
  --htmldir=DIR           html documentation [DOCDIR]
1339
  --dvidir=DIR            dvi documentation [DOCDIR]
1340
  --pdfdir=DIR            pdf documentation [DOCDIR]
1341
  --psdir=DIR             ps documentation [DOCDIR]
1342
_ACEOF
1343
 
1344
  cat <<\_ACEOF
1345
 
1346
System types:
1347
  --build=BUILD     configure for building on BUILD [guessed]
1348
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1349
  --target=TARGET   configure for building compilers for TARGET [HOST]
1350
_ACEOF
1351
fi
1352
 
1353
if test -n "$ac_init_help"; then
1354
 
1355
  cat <<\_ACEOF
1356
 
1357
Optional Features:
1358
  --disable-option-checking  ignore unrecognized --enable/--with options
1359
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1360
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1361
  --disable-ld-elf2flt-binary
1362
                          use ld-elf2flt shell script
1363
  --disable-got-check     disable check for GOT (needed on H8)
1364
  --disable-emit-relocs   don't use the --emit-relocs (-q) linker option
1365
  --enable-emit-ctor-dtor manually create ctor/dtor list
1366
  --enable-always-reloc-text
1367
                          always process text relocs ignoring pic/got (needed
1368
                          on Blackfin)
1369
 
1370
Optional Packages:
1371
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1372
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1373
  --with-zlib-prefix=<dir>
1374
                          path to installed zlib
1375
  --with-libbfd=<file>    path to libbfd.a library to use
1376
  --with-libiberty=<file> path to libiberty.a library to use
1377
  --with-bfd-include-dir=<dir>
1378
                          include path for correct bfd.h
1379
  --with-binutils-include-dir=<dir>
1380
                          include path for binutils headers
1381
  --with-binutils-ldscript-dir=<dir>
1382
                          path to install elf2flt.ld
1383
  --with-binutils-build-dir=<dir>
1384
                          path to compiled binutils tree
1385
 
1386
Some influential environment variables:
1387
  CC          C compiler command
1388
  CFLAGS      C compiler flags
1389
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1390
              nonstandard directory <lib dir>
1391
  LIBS        libraries to pass to the linker, e.g. -l<library>
1392
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1393
              you have headers in a nonstandard directory <include dir>
1394
  CPP         C preprocessor
1395
 
1396
Use these variables to override the choices made by `configure' or to help
1397
it to find libraries and programs with nonstandard names/locations.
1398
 
1399
_ACEOF
1400
ac_status=$?
1401
fi
1402
 
1403
if test "$ac_init_help" = "recursive"; then
1404
  # If there are subdirs, report their specific --help.
1405
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1406
    test -d "$ac_dir" ||
1407
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1408
      continue
1409
    ac_builddir=.
1410
 
1411
case "$ac_dir" in
1412
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1413
*)
1414
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1415
  # A ".." for each directory in $ac_dir_suffix.
1416
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1417
  case $ac_top_builddir_sub in
1418
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1419
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1420
  esac ;;
1421
esac
1422
ac_abs_top_builddir=$ac_pwd
1423
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1424
# for backward compatibility:
1425
ac_top_builddir=$ac_top_build_prefix
1426
 
1427
case $srcdir in
1428
  .)  # We are building in place.
1429
    ac_srcdir=.
1430
    ac_top_srcdir=$ac_top_builddir_sub
1431
    ac_abs_top_srcdir=$ac_pwd ;;
1432
  [\\/]* | ?:[\\/]* )  # Absolute name.
1433
    ac_srcdir=$srcdir$ac_dir_suffix;
1434
    ac_top_srcdir=$srcdir
1435
    ac_abs_top_srcdir=$srcdir ;;
1436
  *) # Relative name.
1437
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1438
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1439
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1440
esac
1441
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1442
 
1443
    cd "$ac_dir" || { ac_status=$?; continue; }
1444
    # Check for guested configure.
1445
    if test -f "$ac_srcdir/configure.gnu"; then
1446
      echo &&
1447
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1448
    elif test -f "$ac_srcdir/configure"; then
1449
      echo &&
1450
      $SHELL "$ac_srcdir/configure" --help=recursive
1451
    else
1452
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1453
    fi || ac_status=$?
1454
    cd "$ac_pwd" || { ac_status=$?; break; }
1455
  done
1456
fi
1457
 
1458
test -n "$ac_init_help" && exit $ac_status
1459
if $ac_init_version; then
1460
  cat <<\_ACEOF
1461
configure
1462
generated by GNU Autoconf 2.63
1463
 
1464
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1465
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1466
This configure script is free software; the Free Software Foundation
1467
gives unlimited permission to copy, distribute and modify it.
1468
_ACEOF
1469
  exit
1470
fi
1471
cat >config.log <<_ACEOF
1472
This file contains any messages produced by compilers while
1473
running configure, to aid debugging if configure makes a mistake.
1474
 
1475
It was created by $as_me, which was
1476
generated by GNU Autoconf 2.63.  Invocation command line was
1477
 
1478
  $ $0 $@
1479
 
1480
_ACEOF
1481
exec 5>>config.log
1482
{
1483
cat <<_ASUNAME
1484
## --------- ##
1485
## Platform. ##
1486
## --------- ##
1487
 
1488
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1489
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1490
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1491
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1492
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1493
 
1494
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1495
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1496
 
1497
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1498
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1499
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1500
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1501
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1502
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1503
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1504
 
1505
_ASUNAME
1506
 
1507
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1508
for as_dir in $PATH
1509
do
1510
  IFS=$as_save_IFS
1511
  test -z "$as_dir" && as_dir=.
1512
  $as_echo "PATH: $as_dir"
1513
done
1514
IFS=$as_save_IFS
1515
 
1516
} >&5
1517
 
1518
cat >&5 <<_ACEOF
1519
 
1520
 
1521
## ----------- ##
1522
## Core tests. ##
1523
## ----------- ##
1524
 
1525
_ACEOF
1526
 
1527
 
1528
# Keep a trace of the command line.
1529
# Strip out --no-create and --no-recursion so they do not pile up.
1530
# Strip out --silent because we don't want to record it for future runs.
1531
# Also quote any args containing shell meta-characters.
1532
# Make two passes to allow for proper duplicate-argument suppression.
1533
ac_configure_args=
1534
ac_configure_args0=
1535
ac_configure_args1=
1536
ac_must_keep_next=false
1537
for ac_pass in 1 2
1538
do
1539
  for ac_arg
1540
  do
1541
    case $ac_arg in
1542
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1543
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1544
    | -silent | --silent | --silen | --sile | --sil)
1545
      continue ;;
1546
    *\'*)
1547
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1548
    esac
1549
    case $ac_pass in
1550
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1551
    2)
1552
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1553
      if test $ac_must_keep_next = true; then
1554
	ac_must_keep_next=false # Got value, back to normal.
1555
      else
1556
	case $ac_arg in
1557
	  *=* | --config-cache | -C | -disable-* | --disable-* \
1558
	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1559
	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1560
	  | -with-* | --with-* | -without-* | --without-* | --x)
1561
	    case "$ac_configure_args0 " in
1562
	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1563
	    esac
1564
	    ;;
1565
	  -* ) ac_must_keep_next=true ;;
1566
	esac
1567
      fi
1568
      ac_configure_args="$ac_configure_args '$ac_arg'"
1569
      ;;
1570
    esac
1571
  done
1572
done
1573
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1574
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1575
 
1576
# When interrupted or exit'd, cleanup temporary files, and complete
1577
# config.log.  We remove comments because anyway the quotes in there
1578
# would cause problems or look ugly.
1579
# WARNING: Use '\'' to represent an apostrophe within the trap.
1580
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1581
trap 'exit_status=$?
1582
  # Save into config.log some information that might help in debugging.
1583
  {
1584
    echo
1585
 
1586
    cat <<\_ASBOX
1587
## ---------------- ##
1588
## Cache variables. ##
1589
## ---------------- ##
1590
_ASBOX
1591
    echo
1592
    # The following way of writing the cache mishandles newlines in values,
1593
(
1594
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1595
    eval ac_val=\$$ac_var
1596
    case $ac_val in #(
1597
    *${as_nl}*)
1598
      case $ac_var in #(
1599
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1600
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1601
      esac
1602
      case $ac_var in #(
1603
      _ | IFS | as_nl) ;; #(
1604
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1605
      *) $as_unset $ac_var ;;
1606
      esac ;;
1607
    esac
1608
  done
1609
  (set) 2>&1 |
1610
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1611
    *${as_nl}ac_space=\ *)
1612
      sed -n \
1613
	"s/'\''/'\''\\\\'\'''\''/g;
1614
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1615
      ;; #(
1616
    *)
1617
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1618
      ;;
1619
    esac |
1620
    sort
1621
)
1622
    echo
1623
 
1624
    cat <<\_ASBOX
1625
## ----------------- ##
1626
## Output variables. ##
1627
## ----------------- ##
1628
_ASBOX
1629
    echo
1630
    for ac_var in $ac_subst_vars
1631
    do
1632
      eval ac_val=\$$ac_var
1633
      case $ac_val in
1634
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1635
      esac
1636
      $as_echo "$ac_var='\''$ac_val'\''"
1637
    done | sort
1638
    echo
1639
 
1640
    if test -n "$ac_subst_files"; then
1641
      cat <<\_ASBOX
1642
## ------------------- ##
1643
## File substitutions. ##
1644
## ------------------- ##
1645
_ASBOX
1646
      echo
1647
      for ac_var in $ac_subst_files
1648
      do
1649
	eval ac_val=\$$ac_var
1650
	case $ac_val in
1651
	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1652
	esac
1653
	$as_echo "$ac_var='\''$ac_val'\''"
1654
      done | sort
1655
      echo
1656
    fi
1657
 
1658
    if test -s confdefs.h; then
1659
      cat <<\_ASBOX
1660
## ----------- ##
1661
## confdefs.h. ##
1662
## ----------- ##
1663
_ASBOX
1664
      echo
1665
      cat confdefs.h
1666
      echo
1667
    fi
1668
    test "$ac_signal" != 0 &&
1669
      $as_echo "$as_me: caught signal $ac_signal"
1670
    $as_echo "$as_me: exit $exit_status"
1671
  } >&5
1672
  rm -f core *.core core.conftest.* &&
1673
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1674
    exit $exit_status
1675
' 0
1676
for ac_signal in 1 2 13 15; do
1677
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1678
done
1679
ac_signal=0
1680
 
1681
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1682
rm -f -r conftest* confdefs.h
1683
 
1684
# Predefined preprocessor variables.
1685
 
1686
cat >>confdefs.h <<_ACEOF
1687
#define PACKAGE_NAME "$PACKAGE_NAME"
1688
_ACEOF
1689
 
1690
 
1691
cat >>confdefs.h <<_ACEOF
1692
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1693
_ACEOF
1694
 
1695
 
1696
cat >>confdefs.h <<_ACEOF
1697
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1698
_ACEOF
1699
 
1700
 
1701
cat >>confdefs.h <<_ACEOF
1702
#define PACKAGE_STRING "$PACKAGE_STRING"
1703
_ACEOF
1704
 
1705
 
1706
cat >>confdefs.h <<_ACEOF
1707
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1708
_ACEOF
1709
 
1710
 
1711
# Let the site file select an alternate cache file if it wants to.
1712
# Prefer an explicitly selected file to automatically selected ones.
1713
ac_site_file1=NONE
1714
ac_site_file2=NONE
1715
if test -n "$CONFIG_SITE"; then
1716
  ac_site_file1=$CONFIG_SITE
1717
elif test "x$prefix" != xNONE; then
1718
  ac_site_file1=$prefix/share/config.site
1719
  ac_site_file2=$prefix/etc/config.site
1720
else
1721
  ac_site_file1=$ac_default_prefix/share/config.site
1722
  ac_site_file2=$ac_default_prefix/etc/config.site
1723
fi
1724
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1725
do
1726
  test "x$ac_site_file" = xNONE && continue
1727
  if test -r "$ac_site_file"; then
1728
    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1729
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1730
    sed 's/^/| /' "$ac_site_file" >&5
1731
    . "$ac_site_file"
1732
  fi
1733
done
1734
 
1735
if test -r "$cache_file"; then
1736
  # Some versions of bash will fail to source /dev/null (special
1737
  # files actually), so we avoid doing that.
1738
  if test -f "$cache_file"; then
1739
    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1740
$as_echo "$as_me: loading cache $cache_file" >&6;}
1741
    case $cache_file in
1742
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1743
      *)                      . "./$cache_file";;
1744
    esac
1745
  fi
1746
else
1747
  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1748
$as_echo "$as_me: creating cache $cache_file" >&6;}
1749
  >$cache_file
1750
fi
1751
 
1752
# Check that the precious variables saved in the cache have kept the same
1753
# value.
1754
ac_cache_corrupted=false
1755
for ac_var in $ac_precious_vars; do
1756
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1757
  eval ac_new_set=\$ac_env_${ac_var}_set
1758
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1759
  eval ac_new_val=\$ac_env_${ac_var}_value
1760
  case $ac_old_set,$ac_new_set in
1761
    set,)
1762
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1763
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1764
      ac_cache_corrupted=: ;;
1765
    ,set)
1766
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1767
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1768
      ac_cache_corrupted=: ;;
1769
    ,);;
1770
    *)
1771
      if test "x$ac_old_val" != "x$ac_new_val"; then
1772
	# differences in whitespace do not lead to failure.
1773
	ac_old_val_w=`echo x $ac_old_val`
1774
	ac_new_val_w=`echo x $ac_new_val`
1775
	if test "$ac_old_val_w" != "$ac_new_val_w"; then
1776
	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1777
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1778
	  ac_cache_corrupted=:
1779
	else
1780
	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1781
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1782
	  eval $ac_var=\$ac_old_val
1783
	fi
1784
	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1785
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1786
	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1787
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1788
      fi;;
1789
  esac
1790
  # Pass precious variables to config.status.
1791
  if test "$ac_new_set" = set; then
1792
    case $ac_new_val in
1793
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1794
    *) ac_arg=$ac_var=$ac_new_val ;;
1795
    esac
1796
    case " $ac_configure_args " in
1797
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1798
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1799
    esac
1800
  fi
1801
done
1802
if $ac_cache_corrupted; then
1803
  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1804
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1805
  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1806
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1807
  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1808
$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1809
   { (exit 1); exit 1; }; }
1810
fi
1811
 
1812
 
1813
 
1814
 
1815
 
1816
 
1817
 
1818
 
1819
 
1820
 
1821
 
1822
 
1823
 
1824
 
1825
 
1826
 
1827
 
1828
ac_ext=c
1829
ac_cpp='$CPP $CPPFLAGS'
1830
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1831
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1832
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1833
 
1834
 
1835
 
1836
 
1837
# Check whether --with-zlib-prefix was given.
1838
if test "${with_zlib_prefix+set}" = set; then
1839
  withval=$with_zlib_prefix;  ac_zlib_prefix=$withval
1840
else
1841
   ac_zlib_prefix=NONE
1842
 
1843
fi
1844
 
1845
 
1846
 
1847
# Check whether --with-libbfd was given.
1848
if test "${with_libbfd+set}" = set; then
1849
  withval=$with_libbfd;  ac_libbfd=$withval
1850
else
1851
   ac_libbfd=NONE
1852
 
1853
fi
1854
 
1855
 
1856
 
1857
# Check whether --with-libiberty was given.
1858
if test "${with_libiberty+set}" = set; then
1859
  withval=$with_libiberty;  ac_libiberty=$withval
1860
else
1861
   ac_libiberty=NONE
1862
 
1863
fi
1864
 
1865
 
1866
 
1867
# Check whether --with-bfd-include-dir was given.
1868
if test "${with_bfd_include_dir+set}" = set; then
1869
  withval=$with_bfd_include_dir;  ac_bfd_include_dir=$withval
1870
else
1871
   ac_bfd_include_dir=NONE
1872
 
1873
fi
1874
 
1875
 
1876
 
1877
# Check whether --with-binutils-include-dir was given.
1878
if test "${with_binutils_include_dir+set}" = set; then
1879
  withval=$with_binutils_include_dir;  ac_binutils_include_dir=$withval
1880
else
1881
   ac_binutils_include_dir=NONE
1882
 
1883
fi
1884
 
1885
 
1886
 
1887
# Check whether --with-binutils-ldscript-dir was given.
1888
if test "${with_binutils_ldscript_dir+set}" = set; then
1889
  withval=$with_binutils_ldscript_dir;  ac_binutils_ldscript_dir=$withval
1890
else
1891
   ac_binutils_ldscript_dir=NONE
1892
 
1893
fi
1894
 
1895
 
1896
 
1897
# Check whether --with-binutils-build-dir was given.
1898
if test "${with_binutils_build_dir+set}" = set; then
1899
  withval=$with_binutils_build_dir;  ac_binutils_build_dir=$withval
1900
else
1901
   ac_binutils_build_dir=NONE
1902
 
1903
fi
1904
 
1905
 
1906
# Check whether --enable-ld-elf2flt-binary was given.
1907
if test "${enable_ld_elf2flt_binary+set}" = set; then
1908
  enableval=$enable_ld_elf2flt_binary;  use_ld_elf2flt_binary=$enableval
1909
else
1910
   use_ld_elf2flt_binary=yes
1911
 
1912
fi
1913
 
1914
 
1915
var_yn_to_10() {
1916
	if eval test \"\$$1\" = yes ; then
1917
		eval $1=1
1918
	else
1919
		eval $1=0
1920
	fi
1921
}
1922
 
1923
# Check whether --enable-got-check was given.
1924
if test "${enable_got_check+set}" = set; then
1925
  enableval=$enable_got_check;  got_check=$enableval
1926
else
1927
   got_check=yes
1928
 
1929
fi
1930
 
1931
var_yn_to_10 got_check
1932
 
1933
# Check whether --enable-emit-relocs was given.
1934
if test "${enable_emit_relocs+set}" = set; then
1935
  enableval=$enable_emit_relocs;  emit_relocs=$enableval
1936
else
1937
   emit_relocs=yes
1938
 
1939
fi
1940
 
1941
var_yn_to_10 emit_relocs
1942
 
1943
# Check whether --enable-emit-ctor-dtor was given.
1944
if test "${enable_emit_ctor_dtor+set}" = set; then
1945
  enableval=$enable_emit_ctor_dtor;  emit_ctor_dtor=$enableval
1946
else
1947
   emit_ctor_dtor=no
1948
 
1949
fi
1950
 
1951
var_yn_to_10 emit_ctor_dtor
1952
 
1953
# Check whether --enable-always-reloc-text was given.
1954
if test "${enable_always_reloc_text+set}" = set; then
1955
  enableval=$enable_always_reloc_text;  always_reloc_text=$enableval
1956
else
1957
 
1958
	case $target in
1959
		bfin*) always_reloc_text=yes;;
1960
		*)     always_reloc_text=no;;
1961
	esac
1962
 
1963
 
1964
fi
1965
 
1966
var_yn_to_10 always_reloc_text
1967
 
1968
ac_aux_dir=
1969
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1970
  if test -f "$ac_dir/install-sh"; then
1971
    ac_aux_dir=$ac_dir
1972
    ac_install_sh="$ac_aux_dir/install-sh -c"
1973
    break
1974
  elif test -f "$ac_dir/install.sh"; then
1975
    ac_aux_dir=$ac_dir
1976
    ac_install_sh="$ac_aux_dir/install.sh -c"
1977
    break
1978
  elif test -f "$ac_dir/shtool"; then
1979
    ac_aux_dir=$ac_dir
1980
    ac_install_sh="$ac_aux_dir/shtool install -c"
1981
    break
1982
  fi
1983
done
1984
if test -z "$ac_aux_dir"; then
1985
  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1986
$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1987
   { (exit 1); exit 1; }; }
1988
fi
1989
 
1990
# These three variables are undocumented and unsupported,
1991
# and are intended to be withdrawn in a future Autoconf release.
1992
# They can cause serious problems if a builder's source tree is in a directory
1993
# whose full name contains unusual characters.
1994
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1995
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1996
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1997
 
1998
 
1999
# Make sure we can run config.sub.
2000
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2001
  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2002
$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2003
   { (exit 1); exit 1; }; }
2004
 
2005
{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2006
$as_echo_n "checking build system type... " >&6; }
2007
if test "${ac_cv_build+set}" = set; then
2008
  $as_echo_n "(cached) " >&6
2009
else
2010
  ac_build_alias=$build_alias
2011
test "x$ac_build_alias" = x &&
2012
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2013
test "x$ac_build_alias" = x &&
2014
  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2015
$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2016
   { (exit 1); exit 1; }; }
2017
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2018
  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2019
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2020
   { (exit 1); exit 1; }; }
2021
 
2022
fi
2023
{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2024
$as_echo "$ac_cv_build" >&6; }
2025
case $ac_cv_build in
2026
*-*-*) ;;
2027
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2028
$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2029
   { (exit 1); exit 1; }; };;
2030
esac
2031
build=$ac_cv_build
2032
ac_save_IFS=$IFS; IFS='-'
2033
set x $ac_cv_build
2034
shift
2035
build_cpu=$1
2036
build_vendor=$2
2037
shift; shift
2038
# Remember, the first character of IFS is used to create $*,
2039
# except with old shells:
2040
build_os=$*
2041
IFS=$ac_save_IFS
2042
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2043
 
2044
 
2045
{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2046
$as_echo_n "checking host system type... " >&6; }
2047
if test "${ac_cv_host+set}" = set; then
2048
  $as_echo_n "(cached) " >&6
2049
else
2050
  if test "x$host_alias" = x; then
2051
  ac_cv_host=$ac_cv_build
2052
else
2053
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2054
    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2055
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2056
   { (exit 1); exit 1; }; }
2057
fi
2058
 
2059
fi
2060
{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2061
$as_echo "$ac_cv_host" >&6; }
2062
case $ac_cv_host in
2063
*-*-*) ;;
2064
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2065
$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2066
   { (exit 1); exit 1; }; };;
2067
esac
2068
host=$ac_cv_host
2069
ac_save_IFS=$IFS; IFS='-'
2070
set x $ac_cv_host
2071
shift
2072
host_cpu=$1
2073
host_vendor=$2
2074
shift; shift
2075
# Remember, the first character of IFS is used to create $*,
2076
# except with old shells:
2077
host_os=$*
2078
IFS=$ac_save_IFS
2079
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2080
 
2081
 
2082
{ $as_echo "$as_me:$LINENO: checking target system type" >&5
2083
$as_echo_n "checking target system type... " >&6; }
2084
if test "${ac_cv_target+set}" = set; then
2085
  $as_echo_n "(cached) " >&6
2086
else
2087
  if test "x$target_alias" = x; then
2088
  ac_cv_target=$ac_cv_host
2089
else
2090
  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2091
    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2092
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2093
   { (exit 1); exit 1; }; }
2094
fi
2095
 
2096
fi
2097
{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2098
$as_echo "$ac_cv_target" >&6; }
2099
case $ac_cv_target in
2100
*-*-*) ;;
2101
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2102
$as_echo "$as_me: error: invalid value of canonical target" >&2;}
2103
   { (exit 1); exit 1; }; };;
2104
esac
2105
target=$ac_cv_target
2106
ac_save_IFS=$IFS; IFS='-'
2107
set x $ac_cv_target
2108
shift
2109
target_cpu=$1
2110
target_vendor=$2
2111
shift; shift
2112
# Remember, the first character of IFS is used to create $*,
2113
# except with old shells:
2114
target_os=$*
2115
IFS=$ac_save_IFS
2116
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2117
 
2118
 
2119
# The aliases save the names the user supplied, while $host etc.
2120
# will get canonicalized.
2121
test -n "$target_alias" &&
2122
  test "$program_prefix$program_suffix$program_transform_name" = \
2123
    NONENONEs,x,x, &&
2124
  program_prefix=${target_alias}-
2125
 
2126
ac_ext=c
2127
ac_cpp='$CPP $CPPFLAGS'
2128
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2129
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2130
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2131
if test -n "$ac_tool_prefix"; then
2132
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2133
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2134
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2135
$as_echo_n "checking for $ac_word... " >&6; }
2136
if test "${ac_cv_prog_CC+set}" = set; then
2137
  $as_echo_n "(cached) " >&6
2138
else
2139
  if test -n "$CC"; then
2140
  ac_cv_prog_CC="$CC" # Let the user override the test.
2141
else
2142
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2143
for as_dir in $PATH
2144
do
2145
  IFS=$as_save_IFS
2146
  test -z "$as_dir" && as_dir=.
2147
  for ac_exec_ext in '' $ac_executable_extensions; do
2148
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2149
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2150
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2151
    break 2
2152
  fi
2153
done
2154
done
2155
IFS=$as_save_IFS
2156
 
2157
fi
2158
fi
2159
CC=$ac_cv_prog_CC
2160
if test -n "$CC"; then
2161
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2162
$as_echo "$CC" >&6; }
2163
else
2164
  { $as_echo "$as_me:$LINENO: result: no" >&5
2165
$as_echo "no" >&6; }
2166
fi
2167
 
2168
 
2169
fi
2170
if test -z "$ac_cv_prog_CC"; then
2171
  ac_ct_CC=$CC
2172
  # Extract the first word of "gcc", so it can be a program name with args.
2173
set dummy gcc; ac_word=$2
2174
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2175
$as_echo_n "checking for $ac_word... " >&6; }
2176
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2177
  $as_echo_n "(cached) " >&6
2178
else
2179
  if test -n "$ac_ct_CC"; then
2180
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2181
else
2182
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2183
for as_dir in $PATH
2184
do
2185
  IFS=$as_save_IFS
2186
  test -z "$as_dir" && as_dir=.
2187
  for ac_exec_ext in '' $ac_executable_extensions; do
2188
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2189
    ac_cv_prog_ac_ct_CC="gcc"
2190
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2191
    break 2
2192
  fi
2193
done
2194
done
2195
IFS=$as_save_IFS
2196
 
2197
fi
2198
fi
2199
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2200
if test -n "$ac_ct_CC"; then
2201
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2202
$as_echo "$ac_ct_CC" >&6; }
2203
else
2204
  { $as_echo "$as_me:$LINENO: result: no" >&5
2205
$as_echo "no" >&6; }
2206
fi
2207
 
2208
  if test "x$ac_ct_CC" = x; then
2209
    CC=""
2210
  else
2211
    case $cross_compiling:$ac_tool_warned in
2212
yes:)
2213
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2214
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2215
ac_tool_warned=yes ;;
2216
esac
2217
    CC=$ac_ct_CC
2218
  fi
2219
else
2220
  CC="$ac_cv_prog_CC"
2221
fi
2222
 
2223
if test -z "$CC"; then
2224
          if test -n "$ac_tool_prefix"; then
2225
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2226
set dummy ${ac_tool_prefix}cc; ac_word=$2
2227
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2228
$as_echo_n "checking for $ac_word... " >&6; }
2229
if test "${ac_cv_prog_CC+set}" = set; then
2230
  $as_echo_n "(cached) " >&6
2231
else
2232
  if test -n "$CC"; then
2233
  ac_cv_prog_CC="$CC" # Let the user override the test.
2234
else
2235
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2236
for as_dir in $PATH
2237
do
2238
  IFS=$as_save_IFS
2239
  test -z "$as_dir" && as_dir=.
2240
  for ac_exec_ext in '' $ac_executable_extensions; do
2241
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2242
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2243
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2244
    break 2
2245
  fi
2246
done
2247
done
2248
IFS=$as_save_IFS
2249
 
2250
fi
2251
fi
2252
CC=$ac_cv_prog_CC
2253
if test -n "$CC"; then
2254
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2255
$as_echo "$CC" >&6; }
2256
else
2257
  { $as_echo "$as_me:$LINENO: result: no" >&5
2258
$as_echo "no" >&6; }
2259
fi
2260
 
2261
 
2262
  fi
2263
fi
2264
if test -z "$CC"; then
2265
  # Extract the first word of "cc", so it can be a program name with args.
2266
set dummy cc; ac_word=$2
2267
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2268
$as_echo_n "checking for $ac_word... " >&6; }
2269
if test "${ac_cv_prog_CC+set}" = set; then
2270
  $as_echo_n "(cached) " >&6
2271
else
2272
  if test -n "$CC"; then
2273
  ac_cv_prog_CC="$CC" # Let the user override the test.
2274
else
2275
  ac_prog_rejected=no
2276
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2277
for as_dir in $PATH
2278
do
2279
  IFS=$as_save_IFS
2280
  test -z "$as_dir" && as_dir=.
2281
  for ac_exec_ext in '' $ac_executable_extensions; do
2282
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2283
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2284
       ac_prog_rejected=yes
2285
       continue
2286
     fi
2287
    ac_cv_prog_CC="cc"
2288
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2289
    break 2
2290
  fi
2291
done
2292
done
2293
IFS=$as_save_IFS
2294
 
2295
if test $ac_prog_rejected = yes; then
2296
  # We found a bogon in the path, so make sure we never use it.
2297
  set dummy $ac_cv_prog_CC
2298
  shift
2299
  if test $# != 0; then
2300
    # We chose a different compiler from the bogus one.
2301
    # However, it has the same basename, so the bogon will be chosen
2302
    # first if we set CC to just the basename; use the full file name.
2303
    shift
2304
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2305
  fi
2306
fi
2307
fi
2308
fi
2309
CC=$ac_cv_prog_CC
2310
if test -n "$CC"; then
2311
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2312
$as_echo "$CC" >&6; }
2313
else
2314
  { $as_echo "$as_me:$LINENO: result: no" >&5
2315
$as_echo "no" >&6; }
2316
fi
2317
 
2318
 
2319
fi
2320
if test -z "$CC"; then
2321
  if test -n "$ac_tool_prefix"; then
2322
  for ac_prog in cl.exe
2323
  do
2324
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2325
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2326
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2327
$as_echo_n "checking for $ac_word... " >&6; }
2328
if test "${ac_cv_prog_CC+set}" = set; then
2329
  $as_echo_n "(cached) " >&6
2330
else
2331
  if test -n "$CC"; then
2332
  ac_cv_prog_CC="$CC" # Let the user override the test.
2333
else
2334
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2335
for as_dir in $PATH
2336
do
2337
  IFS=$as_save_IFS
2338
  test -z "$as_dir" && as_dir=.
2339
  for ac_exec_ext in '' $ac_executable_extensions; do
2340
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2341
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2342
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2343
    break 2
2344
  fi
2345
done
2346
done
2347
IFS=$as_save_IFS
2348
 
2349
fi
2350
fi
2351
CC=$ac_cv_prog_CC
2352
if test -n "$CC"; then
2353
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2354
$as_echo "$CC" >&6; }
2355
else
2356
  { $as_echo "$as_me:$LINENO: result: no" >&5
2357
$as_echo "no" >&6; }
2358
fi
2359
 
2360
 
2361
    test -n "$CC" && break
2362
  done
2363
fi
2364
if test -z "$CC"; then
2365
  ac_ct_CC=$CC
2366
  for ac_prog in cl.exe
2367
do
2368
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2369
set dummy $ac_prog; ac_word=$2
2370
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2371
$as_echo_n "checking for $ac_word... " >&6; }
2372
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2373
  $as_echo_n "(cached) " >&6
2374
else
2375
  if test -n "$ac_ct_CC"; then
2376
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2377
else
2378
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2379
for as_dir in $PATH
2380
do
2381
  IFS=$as_save_IFS
2382
  test -z "$as_dir" && as_dir=.
2383
  for ac_exec_ext in '' $ac_executable_extensions; do
2384
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2385
    ac_cv_prog_ac_ct_CC="$ac_prog"
2386
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2387
    break 2
2388
  fi
2389
done
2390
done
2391
IFS=$as_save_IFS
2392
 
2393
fi
2394
fi
2395
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2396
if test -n "$ac_ct_CC"; then
2397
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2398
$as_echo "$ac_ct_CC" >&6; }
2399
else
2400
  { $as_echo "$as_me:$LINENO: result: no" >&5
2401
$as_echo "no" >&6; }
2402
fi
2403
 
2404
 
2405
  test -n "$ac_ct_CC" && break
2406
done
2407
 
2408
  if test "x$ac_ct_CC" = x; then
2409
    CC=""
2410
  else
2411
    case $cross_compiling:$ac_tool_warned in
2412
yes:)
2413
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2414
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2415
ac_tool_warned=yes ;;
2416
esac
2417
    CC=$ac_ct_CC
2418
  fi
2419
fi
2420
 
2421
fi
2422
 
2423
 
2424
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2425
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2426
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2427
See \`config.log' for more details." >&5
2428
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2429
See \`config.log' for more details." >&2;}
2430
   { (exit 1); exit 1; }; }; }
2431
 
2432
# Provide some information about the compiler.
2433
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2434
set X $ac_compile
2435
ac_compiler=$2
2436
{ (ac_try="$ac_compiler --version >&5"
2437
case "(($ac_try" in
2438
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2439
  *) ac_try_echo=$ac_try;;
2440
esac
2441
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2442
$as_echo "$ac_try_echo") >&5
2443
  (eval "$ac_compiler --version >&5") 2>&5
2444
  ac_status=$?
2445
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446
  (exit $ac_status); }
2447
{ (ac_try="$ac_compiler -v >&5"
2448
case "(($ac_try" in
2449
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2450
  *) ac_try_echo=$ac_try;;
2451
esac
2452
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2453
$as_echo "$ac_try_echo") >&5
2454
  (eval "$ac_compiler -v >&5") 2>&5
2455
  ac_status=$?
2456
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457
  (exit $ac_status); }
2458
{ (ac_try="$ac_compiler -V >&5"
2459
case "(($ac_try" in
2460
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2461
  *) ac_try_echo=$ac_try;;
2462
esac
2463
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2464
$as_echo "$ac_try_echo") >&5
2465
  (eval "$ac_compiler -V >&5") 2>&5
2466
  ac_status=$?
2467
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468
  (exit $ac_status); }
2469
 
2470
cat >conftest.$ac_ext <<_ACEOF
2471
/* confdefs.h.  */
2472
_ACEOF
2473
cat confdefs.h >>conftest.$ac_ext
2474
cat >>conftest.$ac_ext <<_ACEOF
2475
/* end confdefs.h.  */
2476
 
2477
int
2478
main ()
2479
{
2480
 
2481
  ;
2482
  return 0;
2483
}
2484
_ACEOF
2485
ac_clean_files_save=$ac_clean_files
2486
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2487
# Try to create an executable without -o first, disregard a.out.
2488
# It will help us diagnose broken compilers, and finding out an intuition
2489
# of exeext.
2490
{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2491
$as_echo_n "checking for C compiler default output file name... " >&6; }
2492
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2493
 
2494
# The possible output files:
2495
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2496
 
2497
ac_rmfiles=
2498
for ac_file in $ac_files
2499
do
2500
  case $ac_file in
2501
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2502
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2503
  esac
2504
done
2505
rm -f $ac_rmfiles
2506
 
2507
if { (ac_try="$ac_link_default"
2508
case "(($ac_try" in
2509
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2510
  *) ac_try_echo=$ac_try;;
2511
esac
2512
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2513
$as_echo "$ac_try_echo") >&5
2514
  (eval "$ac_link_default") 2>&5
2515
  ac_status=$?
2516
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517
  (exit $ac_status); }; then
2518
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2519
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2520
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2521
# so that the user can short-circuit this test for compilers unknown to
2522
# Autoconf.
2523
for ac_file in $ac_files ''
2524
do
2525
  test -f "$ac_file" || continue
2526
  case $ac_file in
2527
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2528
	;;
2529
    [ab].out )
2530
	# We found the default executable, but exeext='' is most
2531
	# certainly right.
2532
	break;;
2533
    *.* )
2534
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2535
	then :; else
2536
	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2537
	fi
2538
	# We set ac_cv_exeext here because the later test for it is not
2539
	# safe: cross compilers may not add the suffix if given an `-o'
2540
	# argument, so we may need to know it at that point already.
2541
	# Even if this section looks crufty: it has the advantage of
2542
	# actually working.
2543
	break;;
2544
    * )
2545
	break;;
2546
  esac
2547
done
2548
test "$ac_cv_exeext" = no && ac_cv_exeext=
2549
 
2550
else
2551
  ac_file=''
2552
fi
2553
 
2554
{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2555
$as_echo "$ac_file" >&6; }
2556
if test -z "$ac_file"; then
2557
  $as_echo "$as_me: failed program was:" >&5
2558
sed 's/^/| /' conftest.$ac_ext >&5
2559
 
2560
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2561
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2562
{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2563
See \`config.log' for more details." >&5
2564
$as_echo "$as_me: error: C compiler cannot create executables
2565
See \`config.log' for more details." >&2;}
2566
   { (exit 77); exit 77; }; }; }
2567
fi
2568
 
2569
ac_exeext=$ac_cv_exeext
2570
 
2571
# Check that the compiler produces executables we can run.  If not, either
2572
# the compiler is broken, or we cross compile.
2573
{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2574
$as_echo_n "checking whether the C compiler works... " >&6; }
2575
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2576
# If not cross compiling, check that we can run a simple program.
2577
if test "$cross_compiling" != yes; then
2578
  if { ac_try='./$ac_file'
2579
  { (case "(($ac_try" in
2580
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2581
  *) ac_try_echo=$ac_try;;
2582
esac
2583
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2584
$as_echo "$ac_try_echo") >&5
2585
  (eval "$ac_try") 2>&5
2586
  ac_status=$?
2587
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588
  (exit $ac_status); }; }; then
2589
    cross_compiling=no
2590
  else
2591
    if test "$cross_compiling" = maybe; then
2592
	cross_compiling=yes
2593
    else
2594
	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2595
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2596
{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2597
If you meant to cross compile, use \`--host'.
2598
See \`config.log' for more details." >&5
2599
$as_echo "$as_me: error: cannot run C compiled programs.
2600
If you meant to cross compile, use \`--host'.
2601
See \`config.log' for more details." >&2;}
2602
   { (exit 1); exit 1; }; }; }
2603
    fi
2604
  fi
2605
fi
2606
{ $as_echo "$as_me:$LINENO: result: yes" >&5
2607
$as_echo "yes" >&6; }
2608
 
2609
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2610
ac_clean_files=$ac_clean_files_save
2611
# Check that the compiler produces executables we can run.  If not, either
2612
# the compiler is broken, or we cross compile.
2613
{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2614
$as_echo_n "checking whether we are cross compiling... " >&6; }
2615
{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2616
$as_echo "$cross_compiling" >&6; }
2617
 
2618
{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2619
$as_echo_n "checking for suffix of executables... " >&6; }
2620
if { (ac_try="$ac_link"
2621
case "(($ac_try" in
2622
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2623
  *) ac_try_echo=$ac_try;;
2624
esac
2625
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2626
$as_echo "$ac_try_echo") >&5
2627
  (eval "$ac_link") 2>&5
2628
  ac_status=$?
2629
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630
  (exit $ac_status); }; then
2631
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2632
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2633
# work properly (i.e., refer to `conftest.exe'), while it won't with
2634
# `rm'.
2635
for ac_file in conftest.exe conftest conftest.*; do
2636
  test -f "$ac_file" || continue
2637
  case $ac_file in
2638
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2639
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2640
	  break;;
2641
    * ) break;;
2642
  esac
2643
done
2644
else
2645
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2646
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2647
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2648
See \`config.log' for more details." >&5
2649
$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2650
See \`config.log' for more details." >&2;}
2651
   { (exit 1); exit 1; }; }; }
2652
fi
2653
 
2654
rm -f conftest$ac_cv_exeext
2655
{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2656
$as_echo "$ac_cv_exeext" >&6; }
2657
 
2658
rm -f conftest.$ac_ext
2659
EXEEXT=$ac_cv_exeext
2660
ac_exeext=$EXEEXT
2661
{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2662
$as_echo_n "checking for suffix of object files... " >&6; }
2663
if test "${ac_cv_objext+set}" = set; then
2664
  $as_echo_n "(cached) " >&6
2665
else
2666
  cat >conftest.$ac_ext <<_ACEOF
2667
/* confdefs.h.  */
2668
_ACEOF
2669
cat confdefs.h >>conftest.$ac_ext
2670
cat >>conftest.$ac_ext <<_ACEOF
2671
/* end confdefs.h.  */
2672
 
2673
int
2674
main ()
2675
{
2676
 
2677
  ;
2678
  return 0;
2679
}
2680
_ACEOF
2681
rm -f conftest.o conftest.obj
2682
if { (ac_try="$ac_compile"
2683
case "(($ac_try" in
2684
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2685
  *) ac_try_echo=$ac_try;;
2686
esac
2687
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2688
$as_echo "$ac_try_echo") >&5
2689
  (eval "$ac_compile") 2>&5
2690
  ac_status=$?
2691
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692
  (exit $ac_status); }; then
2693
  for ac_file in conftest.o conftest.obj conftest.*; do
2694
  test -f "$ac_file" || continue;
2695
  case $ac_file in
2696
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2697
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2698
       break;;
2699
  esac
2700
done
2701
else
2702
  $as_echo "$as_me: failed program was:" >&5
2703
sed 's/^/| /' conftest.$ac_ext >&5
2704
 
2705
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2706
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2707
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2708
See \`config.log' for more details." >&5
2709
$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2710
See \`config.log' for more details." >&2;}
2711
   { (exit 1); exit 1; }; }; }
2712
fi
2713
 
2714
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2715
fi
2716
{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2717
$as_echo "$ac_cv_objext" >&6; }
2718
OBJEXT=$ac_cv_objext
2719
ac_objext=$OBJEXT
2720
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2721
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2722
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2723
  $as_echo_n "(cached) " >&6
2724
else
2725
  cat >conftest.$ac_ext <<_ACEOF
2726
/* confdefs.h.  */
2727
_ACEOF
2728
cat confdefs.h >>conftest.$ac_ext
2729
cat >>conftest.$ac_ext <<_ACEOF
2730
/* end confdefs.h.  */
2731
 
2732
int
2733
main ()
2734
{
2735
#ifndef __GNUC__
2736
       choke me
2737
#endif
2738
 
2739
  ;
2740
  return 0;
2741
}
2742
_ACEOF
2743
rm -f conftest.$ac_objext
2744
if { (ac_try="$ac_compile"
2745
case "(($ac_try" in
2746
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2747
  *) ac_try_echo=$ac_try;;
2748
esac
2749
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2750
$as_echo "$ac_try_echo") >&5
2751
  (eval "$ac_compile") 2>conftest.er1
2752
  ac_status=$?
2753
  grep -v '^ *+' conftest.er1 >conftest.err
2754
  rm -f conftest.er1
2755
  cat conftest.err >&5
2756
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757
  (exit $ac_status); } && {
2758
	 test -z "$ac_c_werror_flag" ||
2759
	 test ! -s conftest.err
2760
       } && test -s conftest.$ac_objext; then
2761
  ac_compiler_gnu=yes
2762
else
2763
  $as_echo "$as_me: failed program was:" >&5
2764
sed 's/^/| /' conftest.$ac_ext >&5
2765
 
2766
	ac_compiler_gnu=no
2767
fi
2768
 
2769
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2770
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2771
 
2772
fi
2773
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2774
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2775
if test $ac_compiler_gnu = yes; then
2776
  GCC=yes
2777
else
2778
  GCC=
2779
fi
2780
ac_test_CFLAGS=${CFLAGS+set}
2781
ac_save_CFLAGS=$CFLAGS
2782
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2783
$as_echo_n "checking whether $CC accepts -g... " >&6; }
2784
if test "${ac_cv_prog_cc_g+set}" = set; then
2785
  $as_echo_n "(cached) " >&6
2786
else
2787
  ac_save_c_werror_flag=$ac_c_werror_flag
2788
   ac_c_werror_flag=yes
2789
   ac_cv_prog_cc_g=no
2790
   CFLAGS="-g"
2791
   cat >conftest.$ac_ext <<_ACEOF
2792
/* confdefs.h.  */
2793
_ACEOF
2794
cat confdefs.h >>conftest.$ac_ext
2795
cat >>conftest.$ac_ext <<_ACEOF
2796
/* end confdefs.h.  */
2797
 
2798
int
2799
main ()
2800
{
2801
 
2802
  ;
2803
  return 0;
2804
}
2805
_ACEOF
2806
rm -f conftest.$ac_objext
2807
if { (ac_try="$ac_compile"
2808
case "(($ac_try" in
2809
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2810
  *) ac_try_echo=$ac_try;;
2811
esac
2812
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2813
$as_echo "$ac_try_echo") >&5
2814
  (eval "$ac_compile") 2>conftest.er1
2815
  ac_status=$?
2816
  grep -v '^ *+' conftest.er1 >conftest.err
2817
  rm -f conftest.er1
2818
  cat conftest.err >&5
2819
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820
  (exit $ac_status); } && {
2821
	 test -z "$ac_c_werror_flag" ||
2822
	 test ! -s conftest.err
2823
       } && test -s conftest.$ac_objext; then
2824
  ac_cv_prog_cc_g=yes
2825
else
2826
  $as_echo "$as_me: failed program was:" >&5
2827
sed 's/^/| /' conftest.$ac_ext >&5
2828
 
2829
	CFLAGS=""
2830
      cat >conftest.$ac_ext <<_ACEOF
2831
/* confdefs.h.  */
2832
_ACEOF
2833
cat confdefs.h >>conftest.$ac_ext
2834
cat >>conftest.$ac_ext <<_ACEOF
2835
/* end confdefs.h.  */
2836
 
2837
int
2838
main ()
2839
{
2840
 
2841
  ;
2842
  return 0;
2843
}
2844
_ACEOF
2845
rm -f conftest.$ac_objext
2846
if { (ac_try="$ac_compile"
2847
case "(($ac_try" in
2848
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2849
  *) ac_try_echo=$ac_try;;
2850
esac
2851
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2852
$as_echo "$ac_try_echo") >&5
2853
  (eval "$ac_compile") 2>conftest.er1
2854
  ac_status=$?
2855
  grep -v '^ *+' conftest.er1 >conftest.err
2856
  rm -f conftest.er1
2857
  cat conftest.err >&5
2858
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859
  (exit $ac_status); } && {
2860
	 test -z "$ac_c_werror_flag" ||
2861
	 test ! -s conftest.err
2862
       } && test -s conftest.$ac_objext; then
2863
  :
2864
else
2865
  $as_echo "$as_me: failed program was:" >&5
2866
sed 's/^/| /' conftest.$ac_ext >&5
2867
 
2868
	ac_c_werror_flag=$ac_save_c_werror_flag
2869
	 CFLAGS="-g"
2870
	 cat >conftest.$ac_ext <<_ACEOF
2871
/* confdefs.h.  */
2872
_ACEOF
2873
cat confdefs.h >>conftest.$ac_ext
2874
cat >>conftest.$ac_ext <<_ACEOF
2875
/* end confdefs.h.  */
2876
 
2877
int
2878
main ()
2879
{
2880
 
2881
  ;
2882
  return 0;
2883
}
2884
_ACEOF
2885
rm -f conftest.$ac_objext
2886
if { (ac_try="$ac_compile"
2887
case "(($ac_try" in
2888
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2889
  *) ac_try_echo=$ac_try;;
2890
esac
2891
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2892
$as_echo "$ac_try_echo") >&5
2893
  (eval "$ac_compile") 2>conftest.er1
2894
  ac_status=$?
2895
  grep -v '^ *+' conftest.er1 >conftest.err
2896
  rm -f conftest.er1
2897
  cat conftest.err >&5
2898
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899
  (exit $ac_status); } && {
2900
	 test -z "$ac_c_werror_flag" ||
2901
	 test ! -s conftest.err
2902
       } && test -s conftest.$ac_objext; then
2903
  ac_cv_prog_cc_g=yes
2904
else
2905
  $as_echo "$as_me: failed program was:" >&5
2906
sed 's/^/| /' conftest.$ac_ext >&5
2907
 
2908
 
2909
fi
2910
 
2911
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2912
fi
2913
 
2914
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2915
fi
2916
 
2917
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2918
   ac_c_werror_flag=$ac_save_c_werror_flag
2919
fi
2920
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2921
$as_echo "$ac_cv_prog_cc_g" >&6; }
2922
if test "$ac_test_CFLAGS" = set; then
2923
  CFLAGS=$ac_save_CFLAGS
2924
elif test $ac_cv_prog_cc_g = yes; then
2925
  if test "$GCC" = yes; then
2926
    CFLAGS="-g -O2"
2927
  else
2928
    CFLAGS="-g"
2929
  fi
2930
else
2931
  if test "$GCC" = yes; then
2932
    CFLAGS="-O2"
2933
  else
2934
    CFLAGS=
2935
  fi
2936
fi
2937
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2938
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2939
if test "${ac_cv_prog_cc_c89+set}" = set; then
2940
  $as_echo_n "(cached) " >&6
2941
else
2942
  ac_cv_prog_cc_c89=no
2943
ac_save_CC=$CC
2944
cat >conftest.$ac_ext <<_ACEOF
2945
/* confdefs.h.  */
2946
_ACEOF
2947
cat confdefs.h >>conftest.$ac_ext
2948
cat >>conftest.$ac_ext <<_ACEOF
2949
/* end confdefs.h.  */
2950
#include <stdarg.h>
2951
#include <stdio.h>
2952
#include <sys/types.h>
2953
#include <sys/stat.h>
2954
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2955
struct buf { int x; };
2956
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2957
static char *e (p, i)
2958
     char **p;
2959
     int i;
2960
{
2961
  return p[i];
2962
}
2963
static char *f (char * (*g) (char **, int), char **p, ...)
2964
{
2965
  char *s;
2966
  va_list v;
2967
  va_start (v,p);
2968
  s = g (p, va_arg (v,int));
2969
  va_end (v);
2970
  return s;
2971
}
2972
 
2973
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2974
   function prototypes and stuff, but not '\xHH' hex character constants.
2975
   These don't provoke an error unfortunately, instead are silently treated
2976
   as 'x'.  The following induces an error, until -std is added to get
2977
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2978
   array size at least.  It's necessary to write '\x00'==0 to get something
2979
   that's true only with -std.  */
2980
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2981
 
2982
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2983
   inside strings and character constants.  */
2984
#define FOO(x) 'x'
2985
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2986
 
2987
int test (int i, double x);
2988
struct s1 {int (*f) (int a);};
2989
struct s2 {int (*f) (double a);};
2990
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2991
int argc;
2992
char **argv;
2993
int
2994
main ()
2995
{
2996
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2997
  ;
2998
  return 0;
2999
}
3000
_ACEOF
3001
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3002
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3003
do
3004
  CC="$ac_save_CC $ac_arg"
3005
  rm -f conftest.$ac_objext
3006
if { (ac_try="$ac_compile"
3007
case "(($ac_try" in
3008
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009
  *) ac_try_echo=$ac_try;;
3010
esac
3011
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3012
$as_echo "$ac_try_echo") >&5
3013
  (eval "$ac_compile") 2>conftest.er1
3014
  ac_status=$?
3015
  grep -v '^ *+' conftest.er1 >conftest.err
3016
  rm -f conftest.er1
3017
  cat conftest.err >&5
3018
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019
  (exit $ac_status); } && {
3020
	 test -z "$ac_c_werror_flag" ||
3021
	 test ! -s conftest.err
3022
       } && test -s conftest.$ac_objext; then
3023
  ac_cv_prog_cc_c89=$ac_arg
3024
else
3025
  $as_echo "$as_me: failed program was:" >&5
3026
sed 's/^/| /' conftest.$ac_ext >&5
3027
 
3028
 
3029
fi
3030
 
3031
rm -f core conftest.err conftest.$ac_objext
3032
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3033
done
3034
rm -f conftest.$ac_ext
3035
CC=$ac_save_CC
3036
 
3037
fi
3038
# AC_CACHE_VAL
3039
case "x$ac_cv_prog_cc_c89" in
3040
  x)
3041
    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3042
$as_echo "none needed" >&6; } ;;
3043
  xno)
3044
    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3045
$as_echo "unsupported" >&6; } ;;
3046
  *)
3047
    CC="$CC $ac_cv_prog_cc_c89"
3048
    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3049
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3050
esac
3051
 
3052
 
3053
ac_ext=c
3054
ac_cpp='$CPP $CPPFLAGS'
3055
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3056
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3057
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3058
 
3059
 
3060
ac_ext=c
3061
ac_cpp='$CPP $CPPFLAGS'
3062
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3063
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3064
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3065
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3066
$as_echo_n "checking how to run the C preprocessor... " >&6; }
3067
# On Suns, sometimes $CPP names a directory.
3068
if test -n "$CPP" && test -d "$CPP"; then
3069
  CPP=
3070
fi
3071
if test -z "$CPP"; then
3072
  if test "${ac_cv_prog_CPP+set}" = set; then
3073
  $as_echo_n "(cached) " >&6
3074
else
3075
      # Double quotes because CPP needs to be expanded
3076
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3077
    do
3078
      ac_preproc_ok=false
3079
for ac_c_preproc_warn_flag in '' yes
3080
do
3081
  # Use a header file that comes with gcc, so configuring glibc
3082
  # with a fresh cross-compiler works.
3083
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3084
  # <limits.h> exists even on freestanding compilers.
3085
  # On the NeXT, cc -E runs the code through the compiler's parser,
3086
  # not just through cpp. "Syntax error" is here to catch this case.
3087
  cat >conftest.$ac_ext <<_ACEOF
3088
/* confdefs.h.  */
3089
_ACEOF
3090
cat confdefs.h >>conftest.$ac_ext
3091
cat >>conftest.$ac_ext <<_ACEOF
3092
/* end confdefs.h.  */
3093
#ifdef __STDC__
3094
# include <limits.h>
3095
#else
3096
# include <assert.h>
3097
#endif
3098
		     Syntax error
3099
_ACEOF
3100
if { (ac_try="$ac_cpp conftest.$ac_ext"
3101
case "(($ac_try" in
3102
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103
  *) ac_try_echo=$ac_try;;
3104
esac
3105
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3106
$as_echo "$ac_try_echo") >&5
3107
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3108
  ac_status=$?
3109
  grep -v '^ *+' conftest.er1 >conftest.err
3110
  rm -f conftest.er1
3111
  cat conftest.err >&5
3112
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113
  (exit $ac_status); } >/dev/null && {
3114
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3115
	 test ! -s conftest.err
3116
       }; then
3117
  :
3118
else
3119
  $as_echo "$as_me: failed program was:" >&5
3120
sed 's/^/| /' conftest.$ac_ext >&5
3121
 
3122
  # Broken: fails on valid input.
3123
continue
3124
fi
3125
 
3126
rm -f conftest.err conftest.$ac_ext
3127
 
3128
  # OK, works on sane cases.  Now check whether nonexistent headers
3129
  # can be detected and how.
3130
  cat >conftest.$ac_ext <<_ACEOF
3131
/* confdefs.h.  */
3132
_ACEOF
3133
cat confdefs.h >>conftest.$ac_ext
3134
cat >>conftest.$ac_ext <<_ACEOF
3135
/* end confdefs.h.  */
3136
#include <ac_nonexistent.h>
3137
_ACEOF
3138
if { (ac_try="$ac_cpp conftest.$ac_ext"
3139
case "(($ac_try" in
3140
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141
  *) ac_try_echo=$ac_try;;
3142
esac
3143
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3144
$as_echo "$ac_try_echo") >&5
3145
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3146
  ac_status=$?
3147
  grep -v '^ *+' conftest.er1 >conftest.err
3148
  rm -f conftest.er1
3149
  cat conftest.err >&5
3150
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151
  (exit $ac_status); } >/dev/null && {
3152
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3153
	 test ! -s conftest.err
3154
       }; then
3155
  # Broken: success on invalid input.
3156
continue
3157
else
3158
  $as_echo "$as_me: failed program was:" >&5
3159
sed 's/^/| /' conftest.$ac_ext >&5
3160
 
3161
  # Passes both tests.
3162
ac_preproc_ok=:
3163
break
3164
fi
3165
 
3166
rm -f conftest.err conftest.$ac_ext
3167
 
3168
done
3169
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3170
rm -f conftest.err conftest.$ac_ext
3171
if $ac_preproc_ok; then
3172
  break
3173
fi
3174
 
3175
    done
3176
    ac_cv_prog_CPP=$CPP
3177
 
3178
fi
3179
  CPP=$ac_cv_prog_CPP
3180
else
3181
  ac_cv_prog_CPP=$CPP
3182
fi
3183
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3184
$as_echo "$CPP" >&6; }
3185
ac_preproc_ok=false
3186
for ac_c_preproc_warn_flag in '' yes
3187
do
3188
  # Use a header file that comes with gcc, so configuring glibc
3189
  # with a fresh cross-compiler works.
3190
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3191
  # <limits.h> exists even on freestanding compilers.
3192
  # On the NeXT, cc -E runs the code through the compiler's parser,
3193
  # not just through cpp. "Syntax error" is here to catch this case.
3194
  cat >conftest.$ac_ext <<_ACEOF
3195
/* confdefs.h.  */
3196
_ACEOF
3197
cat confdefs.h >>conftest.$ac_ext
3198
cat >>conftest.$ac_ext <<_ACEOF
3199
/* end confdefs.h.  */
3200
#ifdef __STDC__
3201
# include <limits.h>
3202
#else
3203
# include <assert.h>
3204
#endif
3205
		     Syntax error
3206
_ACEOF
3207
if { (ac_try="$ac_cpp conftest.$ac_ext"
3208
case "(($ac_try" in
3209
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3210
  *) ac_try_echo=$ac_try;;
3211
esac
3212
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3213
$as_echo "$ac_try_echo") >&5
3214
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3215
  ac_status=$?
3216
  grep -v '^ *+' conftest.er1 >conftest.err
3217
  rm -f conftest.er1
3218
  cat conftest.err >&5
3219
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220
  (exit $ac_status); } >/dev/null && {
3221
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3222
	 test ! -s conftest.err
3223
       }; then
3224
  :
3225
else
3226
  $as_echo "$as_me: failed program was:" >&5
3227
sed 's/^/| /' conftest.$ac_ext >&5
3228
 
3229
  # Broken: fails on valid input.
3230
continue
3231
fi
3232
 
3233
rm -f conftest.err conftest.$ac_ext
3234
 
3235
  # OK, works on sane cases.  Now check whether nonexistent headers
3236
  # can be detected and how.
3237
  cat >conftest.$ac_ext <<_ACEOF
3238
/* confdefs.h.  */
3239
_ACEOF
3240
cat confdefs.h >>conftest.$ac_ext
3241
cat >>conftest.$ac_ext <<_ACEOF
3242
/* end confdefs.h.  */
3243
#include <ac_nonexistent.h>
3244
_ACEOF
3245
if { (ac_try="$ac_cpp conftest.$ac_ext"
3246
case "(($ac_try" in
3247
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248
  *) ac_try_echo=$ac_try;;
3249
esac
3250
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3251
$as_echo "$ac_try_echo") >&5
3252
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3253
  ac_status=$?
3254
  grep -v '^ *+' conftest.er1 >conftest.err
3255
  rm -f conftest.er1
3256
  cat conftest.err >&5
3257
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258
  (exit $ac_status); } >/dev/null && {
3259
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3260
	 test ! -s conftest.err
3261
       }; then
3262
  # Broken: success on invalid input.
3263
continue
3264
else
3265
  $as_echo "$as_me: failed program was:" >&5
3266
sed 's/^/| /' conftest.$ac_ext >&5
3267
 
3268
  # Passes both tests.
3269
ac_preproc_ok=:
3270
break
3271
fi
3272
 
3273
rm -f conftest.err conftest.$ac_ext
3274
 
3275
done
3276
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3277
rm -f conftest.err conftest.$ac_ext
3278
if $ac_preproc_ok; then
3279
  :
3280
else
3281
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3282
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3283
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3284
See \`config.log' for more details." >&5
3285
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3286
See \`config.log' for more details." >&2;}
3287
   { (exit 1); exit 1; }; }; }
3288
fi
3289
 
3290
ac_ext=c
3291
ac_cpp='$CPP $CPPFLAGS'
3292
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3293
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3294
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3295
 
3296
 
3297
{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3298
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3299
if test "${ac_cv_path_GREP+set}" = set; then
3300
  $as_echo_n "(cached) " >&6
3301
else
3302
  if test -z "$GREP"; then
3303
  ac_path_GREP_found=false
3304
  # Loop through the user's path and test for each of PROGNAME-LIST
3305
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3306
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3307
do
3308
  IFS=$as_save_IFS
3309
  test -z "$as_dir" && as_dir=.
3310
  for ac_prog in grep ggrep; do
3311
    for ac_exec_ext in '' $ac_executable_extensions; do
3312
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3313
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3314
# Check for GNU ac_path_GREP and select it if it is found.
3315
  # Check for GNU $ac_path_GREP
3316
case `"$ac_path_GREP" --version 2>&1` in
3317
*GNU*)
3318
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3319
*)
3320
  ac_count=0
3321
  $as_echo_n 0123456789 >"conftest.in"
3322
  while :
3323
  do
3324
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3325
    mv "conftest.tmp" "conftest.in"
3326
    cp "conftest.in" "conftest.nl"
3327
    $as_echo 'GREP' >> "conftest.nl"
3328
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3329
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3330
    ac_count=`expr $ac_count + 1`
3331
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3332
      # Best one so far, save it but keep looking for a better one
3333
      ac_cv_path_GREP="$ac_path_GREP"
3334
      ac_path_GREP_max=$ac_count
3335
    fi
3336
    # 10*(2^10) chars as input seems more than enough
3337
    test $ac_count -gt 10 && break
3338
  done
3339
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3340
esac
3341
 
3342
      $ac_path_GREP_found && break 3
3343
    done
3344
  done
3345
done
3346
IFS=$as_save_IFS
3347
  if test -z "$ac_cv_path_GREP"; then
3348
    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3349
$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3350
   { (exit 1); exit 1; }; }
3351
  fi
3352
else
3353
  ac_cv_path_GREP=$GREP
3354
fi
3355
 
3356
fi
3357
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3358
$as_echo "$ac_cv_path_GREP" >&6; }
3359
 GREP="$ac_cv_path_GREP"
3360
 
3361
 
3362
{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3363
$as_echo_n "checking for egrep... " >&6; }
3364
if test "${ac_cv_path_EGREP+set}" = set; then
3365
  $as_echo_n "(cached) " >&6
3366
else
3367
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3368
   then ac_cv_path_EGREP="$GREP -E"
3369
   else
3370
     if test -z "$EGREP"; then
3371
  ac_path_EGREP_found=false
3372
  # Loop through the user's path and test for each of PROGNAME-LIST
3373
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3374
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3375
do
3376
  IFS=$as_save_IFS
3377
  test -z "$as_dir" && as_dir=.
3378
  for ac_prog in egrep; do
3379
    for ac_exec_ext in '' $ac_executable_extensions; do
3380
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3381
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3382
# Check for GNU ac_path_EGREP and select it if it is found.
3383
  # Check for GNU $ac_path_EGREP
3384
case `"$ac_path_EGREP" --version 2>&1` in
3385
*GNU*)
3386
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3387
*)
3388
  ac_count=0
3389
  $as_echo_n 0123456789 >"conftest.in"
3390
  while :
3391
  do
3392
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3393
    mv "conftest.tmp" "conftest.in"
3394
    cp "conftest.in" "conftest.nl"
3395
    $as_echo 'EGREP' >> "conftest.nl"
3396
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3397
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3398
    ac_count=`expr $ac_count + 1`
3399
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3400
      # Best one so far, save it but keep looking for a better one
3401
      ac_cv_path_EGREP="$ac_path_EGREP"
3402
      ac_path_EGREP_max=$ac_count
3403
    fi
3404
    # 10*(2^10) chars as input seems more than enough
3405
    test $ac_count -gt 10 && break
3406
  done
3407
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3408
esac
3409
 
3410
      $ac_path_EGREP_found && break 3
3411
    done
3412
  done
3413
done
3414
IFS=$as_save_IFS
3415
  if test -z "$ac_cv_path_EGREP"; then
3416
    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3417
$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3418
   { (exit 1); exit 1; }; }
3419
  fi
3420
else
3421
  ac_cv_path_EGREP=$EGREP
3422
fi
3423
 
3424
   fi
3425
fi
3426
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3427
$as_echo "$ac_cv_path_EGREP" >&6; }
3428
 EGREP="$ac_cv_path_EGREP"
3429
 
3430
 
3431
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3432
$as_echo_n "checking for ANSI C header files... " >&6; }
3433
if test "${ac_cv_header_stdc+set}" = set; then
3434
  $as_echo_n "(cached) " >&6
3435
else
3436
  cat >conftest.$ac_ext <<_ACEOF
3437
/* confdefs.h.  */
3438
_ACEOF
3439
cat confdefs.h >>conftest.$ac_ext
3440
cat >>conftest.$ac_ext <<_ACEOF
3441
/* end confdefs.h.  */
3442
#include <stdlib.h>
3443
#include <stdarg.h>
3444
#include <string.h>
3445
#include <float.h>
3446
 
3447
int
3448
main ()
3449
{
3450
 
3451
  ;
3452
  return 0;
3453
}
3454
_ACEOF
3455
rm -f conftest.$ac_objext
3456
if { (ac_try="$ac_compile"
3457
case "(($ac_try" in
3458
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3459
  *) ac_try_echo=$ac_try;;
3460
esac
3461
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3462
$as_echo "$ac_try_echo") >&5
3463
  (eval "$ac_compile") 2>conftest.er1
3464
  ac_status=$?
3465
  grep -v '^ *+' conftest.er1 >conftest.err
3466
  rm -f conftest.er1
3467
  cat conftest.err >&5
3468
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469
  (exit $ac_status); } && {
3470
	 test -z "$ac_c_werror_flag" ||
3471
	 test ! -s conftest.err
3472
       } && test -s conftest.$ac_objext; then
3473
  ac_cv_header_stdc=yes
3474
else
3475
  $as_echo "$as_me: failed program was:" >&5
3476
sed 's/^/| /' conftest.$ac_ext >&5
3477
 
3478
	ac_cv_header_stdc=no
3479
fi
3480
 
3481
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3482
 
3483
if test $ac_cv_header_stdc = yes; then
3484
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3485
  cat >conftest.$ac_ext <<_ACEOF
3486
/* confdefs.h.  */
3487
_ACEOF
3488
cat confdefs.h >>conftest.$ac_ext
3489
cat >>conftest.$ac_ext <<_ACEOF
3490
/* end confdefs.h.  */
3491
#include <string.h>
3492
 
3493
_ACEOF
3494
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3495
  $EGREP "memchr" >/dev/null 2>&1; then
3496
  :
3497
else
3498
  ac_cv_header_stdc=no
3499
fi
3500
rm -f conftest*
3501
 
3502
fi
3503
 
3504
if test $ac_cv_header_stdc = yes; then
3505
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3506
  cat >conftest.$ac_ext <<_ACEOF
3507
/* confdefs.h.  */
3508
_ACEOF
3509
cat confdefs.h >>conftest.$ac_ext
3510
cat >>conftest.$ac_ext <<_ACEOF
3511
/* end confdefs.h.  */
3512
#include <stdlib.h>
3513
 
3514
_ACEOF
3515
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3516
  $EGREP "free" >/dev/null 2>&1; then
3517
  :
3518
else
3519
  ac_cv_header_stdc=no
3520
fi
3521
rm -f conftest*
3522
 
3523
fi
3524
 
3525
if test $ac_cv_header_stdc = yes; then
3526
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3527
  if test "$cross_compiling" = yes; then
3528
  :
3529
else
3530
  cat >conftest.$ac_ext <<_ACEOF
3531
/* confdefs.h.  */
3532
_ACEOF
3533
cat confdefs.h >>conftest.$ac_ext
3534
cat >>conftest.$ac_ext <<_ACEOF
3535
/* end confdefs.h.  */
3536
#include <ctype.h>
3537
#include <stdlib.h>
3538
#if ((' ' & 0x0FF) == 0x020)
3539
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3540
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3541
#else
3542
# define ISLOWER(c) \
3543
		   (('a' <= (c) && (c) <= 'i') \
3544
		     || ('j' <= (c) && (c) <= 'r') \
3545
		     || ('s' <= (c) && (c) <= 'z'))
3546
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3547
#endif
3548
 
3549
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3550
int
3551
main ()
3552
{
3553
  int i;
3554
  for (i = 0; i < 256; i++)
3555
    if (XOR (islower (i), ISLOWER (i))
3556
	|| toupper (i) != TOUPPER (i))
3557
      return 2;
3558
  return 0;
3559
}
3560
_ACEOF
3561
rm -f conftest$ac_exeext
3562
if { (ac_try="$ac_link"
3563
case "(($ac_try" in
3564
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3565
  *) ac_try_echo=$ac_try;;
3566
esac
3567
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3568
$as_echo "$ac_try_echo") >&5
3569
  (eval "$ac_link") 2>&5
3570
  ac_status=$?
3571
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3573
  { (case "(($ac_try" in
3574
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3575
  *) ac_try_echo=$ac_try;;
3576
esac
3577
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3578
$as_echo "$ac_try_echo") >&5
3579
  (eval "$ac_try") 2>&5
3580
  ac_status=$?
3581
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582
  (exit $ac_status); }; }; then
3583
  :
3584
else
3585
  $as_echo "$as_me: program exited with status $ac_status" >&5
3586
$as_echo "$as_me: failed program was:" >&5
3587
sed 's/^/| /' conftest.$ac_ext >&5
3588
 
3589
( exit $ac_status )
3590
ac_cv_header_stdc=no
3591
fi
3592
rm -rf conftest.dSYM
3593
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3594
fi
3595
 
3596
 
3597
fi
3598
fi
3599
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3600
$as_echo "$ac_cv_header_stdc" >&6; }
3601
if test $ac_cv_header_stdc = yes; then
3602
 
3603
cat >>confdefs.h <<\_ACEOF
3604
#define STDC_HEADERS 1
3605
_ACEOF
3606
 
3607
fi
3608
 
3609
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3610
 
3611
 
3612
 
3613
 
3614
 
3615
 
3616
 
3617
 
3618
 
3619
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3620
		  inttypes.h stdint.h unistd.h
3621
do
3622
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3623
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3624
$as_echo_n "checking for $ac_header... " >&6; }
3625
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3626
  $as_echo_n "(cached) " >&6
3627
else
3628
  cat >conftest.$ac_ext <<_ACEOF
3629
/* confdefs.h.  */
3630
_ACEOF
3631
cat confdefs.h >>conftest.$ac_ext
3632
cat >>conftest.$ac_ext <<_ACEOF
3633
/* end confdefs.h.  */
3634
$ac_includes_default
3635
 
3636
#include <$ac_header>
3637
_ACEOF
3638
rm -f conftest.$ac_objext
3639
if { (ac_try="$ac_compile"
3640
case "(($ac_try" in
3641
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3642
  *) ac_try_echo=$ac_try;;
3643
esac
3644
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3645
$as_echo "$ac_try_echo") >&5
3646
  (eval "$ac_compile") 2>conftest.er1
3647
  ac_status=$?
3648
  grep -v '^ *+' conftest.er1 >conftest.err
3649
  rm -f conftest.er1
3650
  cat conftest.err >&5
3651
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652
  (exit $ac_status); } && {
3653
	 test -z "$ac_c_werror_flag" ||
3654
	 test ! -s conftest.err
3655
       } && test -s conftest.$ac_objext; then
3656
  eval "$as_ac_Header=yes"
3657
else
3658
  $as_echo "$as_me: failed program was:" >&5
3659
sed 's/^/| /' conftest.$ac_ext >&5
3660
 
3661
	eval "$as_ac_Header=no"
3662
fi
3663
 
3664
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3665
fi
3666
ac_res=`eval 'as_val=${'$as_ac_Header'}
3667
		 $as_echo "$as_val"'`
3668
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3669
$as_echo "$ac_res" >&6; }
3670
as_val=`eval 'as_val=${'$as_ac_Header'}
3671
		 $as_echo "$as_val"'`
3672
   if test "x$as_val" = x""yes; then
3673
  cat >>confdefs.h <<_ACEOF
3674
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3675
_ACEOF
3676
 
3677
fi
3678
 
3679
done
3680
 
3681
 
3682
 
3683
  if test "${ac_cv_header_minix_config_h+set}" = set; then
3684
  { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
3685
$as_echo_n "checking for minix/config.h... " >&6; }
3686
if test "${ac_cv_header_minix_config_h+set}" = set; then
3687
  $as_echo_n "(cached) " >&6
3688
fi
3689
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3690
$as_echo "$ac_cv_header_minix_config_h" >&6; }
3691
else
3692
  # Is the header compilable?
3693
{ $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3694
$as_echo_n "checking minix/config.h usability... " >&6; }
3695
cat >conftest.$ac_ext <<_ACEOF
3696
/* confdefs.h.  */
3697
_ACEOF
3698
cat confdefs.h >>conftest.$ac_ext
3699
cat >>conftest.$ac_ext <<_ACEOF
3700
/* end confdefs.h.  */
3701
$ac_includes_default
3702
#include <minix/config.h>
3703
_ACEOF
3704
rm -f conftest.$ac_objext
3705
if { (ac_try="$ac_compile"
3706
case "(($ac_try" in
3707
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3708
  *) ac_try_echo=$ac_try;;
3709
esac
3710
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3711
$as_echo "$ac_try_echo") >&5
3712
  (eval "$ac_compile") 2>conftest.er1
3713
  ac_status=$?
3714
  grep -v '^ *+' conftest.er1 >conftest.err
3715
  rm -f conftest.er1
3716
  cat conftest.err >&5
3717
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718
  (exit $ac_status); } && {
3719
	 test -z "$ac_c_werror_flag" ||
3720
	 test ! -s conftest.err
3721
       } && test -s conftest.$ac_objext; then
3722
  ac_header_compiler=yes
3723
else
3724
  $as_echo "$as_me: failed program was:" >&5
3725
sed 's/^/| /' conftest.$ac_ext >&5
3726
 
3727
	ac_header_compiler=no
3728
fi
3729
 
3730
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3731
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3732
$as_echo "$ac_header_compiler" >&6; }
3733
 
3734
# Is the header present?
3735
{ $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3736
$as_echo_n "checking minix/config.h presence... " >&6; }
3737
cat >conftest.$ac_ext <<_ACEOF
3738
/* confdefs.h.  */
3739
_ACEOF
3740
cat confdefs.h >>conftest.$ac_ext
3741
cat >>conftest.$ac_ext <<_ACEOF
3742
/* end confdefs.h.  */
3743
#include <minix/config.h>
3744
_ACEOF
3745
if { (ac_try="$ac_cpp conftest.$ac_ext"
3746
case "(($ac_try" in
3747
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3748
  *) ac_try_echo=$ac_try;;
3749
esac
3750
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3751
$as_echo "$ac_try_echo") >&5
3752
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3753
  ac_status=$?
3754
  grep -v '^ *+' conftest.er1 >conftest.err
3755
  rm -f conftest.er1
3756
  cat conftest.err >&5
3757
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758
  (exit $ac_status); } >/dev/null && {
3759
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3760
	 test ! -s conftest.err
3761
       }; then
3762
  ac_header_preproc=yes
3763
else
3764
  $as_echo "$as_me: failed program was:" >&5
3765
sed 's/^/| /' conftest.$ac_ext >&5
3766
 
3767
  ac_header_preproc=no
3768
fi
3769
 
3770
rm -f conftest.err conftest.$ac_ext
3771
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3772
$as_echo "$ac_header_preproc" >&6; }
3773
 
3774
# So?  What about this header?
3775
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3776
  yes:no: )
3777
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3778
$as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3779
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3780
$as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3781
    ac_header_preproc=yes
3782
    ;;
3783
  no:yes:* )
3784
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3785
$as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3786
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
3787
$as_echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
3788
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3789
$as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3790
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
3791
$as_echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3792
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3793
$as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3794
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3795
$as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3796
 
3797
    ;;
3798
esac
3799
{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
3800
$as_echo_n "checking for minix/config.h... " >&6; }
3801
if test "${ac_cv_header_minix_config_h+set}" = set; then
3802
  $as_echo_n "(cached) " >&6
3803
else
3804
  ac_cv_header_minix_config_h=$ac_header_preproc
3805
fi
3806
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3807
$as_echo "$ac_cv_header_minix_config_h" >&6; }
3808
 
3809
fi
3810
if test "x$ac_cv_header_minix_config_h" = x""yes; then
3811
  MINIX=yes
3812
else
3813
  MINIX=
3814
fi
3815
 
3816
 
3817
  if test "$MINIX" = yes; then
3818
 
3819
cat >>confdefs.h <<\_ACEOF
3820
#define _POSIX_SOURCE 1
3821
_ACEOF
3822
 
3823
 
3824
cat >>confdefs.h <<\_ACEOF
3825
#define _POSIX_1_SOURCE 2
3826
_ACEOF
3827
 
3828
 
3829
cat >>confdefs.h <<\_ACEOF
3830
#define _MINIX 1
3831
_ACEOF
3832
 
3833
  fi
3834
 
3835
 
3836
 
3837
  { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3838
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3839
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3840
  $as_echo_n "(cached) " >&6
3841
else
3842
  cat >conftest.$ac_ext <<_ACEOF
3843
/* confdefs.h.  */
3844
_ACEOF
3845
cat confdefs.h >>conftest.$ac_ext
3846
cat >>conftest.$ac_ext <<_ACEOF
3847
/* end confdefs.h.  */
3848
 
3849
#	  define __EXTENSIONS__ 1
3850
	  $ac_includes_default
3851
int
3852
main ()
3853
{
3854
 
3855
  ;
3856
  return 0;
3857
}
3858
_ACEOF
3859
rm -f conftest.$ac_objext
3860
if { (ac_try="$ac_compile"
3861
case "(($ac_try" in
3862
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3863
  *) ac_try_echo=$ac_try;;
3864
esac
3865
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3866
$as_echo "$ac_try_echo") >&5
3867
  (eval "$ac_compile") 2>conftest.er1
3868
  ac_status=$?
3869
  grep -v '^ *+' conftest.er1 >conftest.err
3870
  rm -f conftest.er1
3871
  cat conftest.err >&5
3872
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873
  (exit $ac_status); } && {
3874
	 test -z "$ac_c_werror_flag" ||
3875
	 test ! -s conftest.err
3876
       } && test -s conftest.$ac_objext; then
3877
  ac_cv_safe_to_define___extensions__=yes
3878
else
3879
  $as_echo "$as_me: failed program was:" >&5
3880
sed 's/^/| /' conftest.$ac_ext >&5
3881
 
3882
	ac_cv_safe_to_define___extensions__=no
3883
fi
3884
 
3885
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3886
fi
3887
{ $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3888
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3889
  test $ac_cv_safe_to_define___extensions__ = yes &&
3890
    cat >>confdefs.h <<\_ACEOF
3891
#define __EXTENSIONS__ 1
3892
_ACEOF
3893
 
3894
  cat >>confdefs.h <<\_ACEOF
3895
#define _ALL_SOURCE 1
3896
_ACEOF
3897
 
3898
  cat >>confdefs.h <<\_ACEOF
3899
#define _GNU_SOURCE 1
3900
_ACEOF
3901
 
3902
  cat >>confdefs.h <<\_ACEOF
3903
#define _POSIX_PTHREAD_SEMANTICS 1
3904
_ACEOF
3905
 
3906
  cat >>confdefs.h <<\_ACEOF
3907
#define _TANDEM_SOURCE 1
3908
_ACEOF
3909
 
3910
 
3911
# Find a good install program.  We prefer a C program (faster),
3912
# so one script is as good as another.  But avoid the broken or
3913
# incompatible versions:
3914
# SysV /etc/install, /usr/sbin/install
3915
# SunOS /usr/etc/install
3916
# IRIX /sbin/install
3917
# AIX /bin/install
3918
# AmigaOS /C/install, which installs bootblocks on floppy discs
3919
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3920
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3921
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3922
# OS/2's system install, which has a completely different semantic
3923
# ./install, which can be erroneously created by make from ./install.sh.
3924
# Reject install programs that cannot install multiple files.
3925
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3926
$as_echo_n "checking for a BSD-compatible install... " >&6; }
3927
if test -z "$INSTALL"; then
3928
if test "${ac_cv_path_install+set}" = set; then
3929
  $as_echo_n "(cached) " >&6
3930
else
3931
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3932
for as_dir in $PATH
3933
do
3934
  IFS=$as_save_IFS
3935
  test -z "$as_dir" && as_dir=.
3936
  # Account for people who put trailing slashes in PATH elements.
3937
case $as_dir/ in
3938
  ./ | .// | /cC/* | \
3939
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3940
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3941
  /usr/ucb/* ) ;;
3942
  *)
3943
    # OSF1 and SCO ODT 3.0 have their own names for install.
3944
    # Don't use installbsd from OSF since it installs stuff as root
3945
    # by default.
3946
    for ac_prog in ginstall scoinst install; do
3947
      for ac_exec_ext in '' $ac_executable_extensions; do
3948
	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3949
	  if test $ac_prog = install &&
3950
	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3951
	    # AIX install.  It has an incompatible calling convention.
3952
	    :
3953
	  elif test $ac_prog = install &&
3954
	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3955
	    # program-specific install script used by HP pwplus--don't use.
3956
	    :
3957
	  else
3958
	    rm -rf conftest.one conftest.two conftest.dir
3959
	    echo one > conftest.one
3960
	    echo two > conftest.two
3961
	    mkdir conftest.dir
3962
	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3963
	      test -s conftest.one && test -s conftest.two &&
3964
	      test -s conftest.dir/conftest.one &&
3965
	      test -s conftest.dir/conftest.two
3966
	    then
3967
	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3968
	      break 3
3969
	    fi
3970
	  fi
3971
	fi
3972
      done
3973
    done
3974
    ;;
3975
esac
3976
 
3977
done
3978
IFS=$as_save_IFS
3979
 
3980
rm -rf conftest.one conftest.two conftest.dir
3981
 
3982
fi
3983
  if test "${ac_cv_path_install+set}" = set; then
3984
    INSTALL=$ac_cv_path_install
3985
  else
3986
    # As a last resort, use the slow shell script.  Don't cache a
3987
    # value for INSTALL within a source directory, because that will
3988
    # break other packages using the cache if that directory is
3989
    # removed, or if the value is a relative name.
3990
    INSTALL=$ac_install_sh
3991
  fi
3992
fi
3993
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3994
$as_echo "$INSTALL" >&6; }
3995
 
3996
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3997
# It thinks the first close brace ends the variable substitution.
3998
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3999
 
4000
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4001
 
4002
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4003
 
4004
 
4005
if test "$ac_binutils_build_dir" != "NONE"; then
4006
  test "$ac_libbfd"               = "NONE" && ac_libbfd="$ac_binutils_build_dir/bfd/libbfd.a"
4007
  test "$ac_libiberty"            = "NONE" && ac_libiberty="$ac_binutils_build_dir/libiberty/libiberty.a"
4008
  test "$ac_bfd_include_dir"      = "NONE" && ac_bfd_include_dir="$ac_binutils_build_dir/bfd"
4009
  test "$ac_binutils_include_dir" = "NONE" && ac_binutils_include_dir="$ac_binutils_build_dir/include"
4010
fi
4011
 
4012
if test "$ac_libiberty" = "NONE"; then
4013
 
4014
{ $as_echo "$as_me:$LINENO: checking for objalloc_create in -liberty" >&5
4015
$as_echo_n "checking for objalloc_create in -liberty... " >&6; }
4016
if test "${ac_cv_lib_iberty_objalloc_create+set}" = set; then
4017
  $as_echo_n "(cached) " >&6
4018
else
4019
  ac_check_lib_save_LIBS=$LIBS
4020
LIBS="-liberty  $LIBS"
4021
cat >conftest.$ac_ext <<_ACEOF
4022
/* confdefs.h.  */
4023
_ACEOF
4024
cat confdefs.h >>conftest.$ac_ext
4025
cat >>conftest.$ac_ext <<_ACEOF
4026
/* end confdefs.h.  */
4027
 
4028
/* Override any GCC internal prototype to avoid an error.
4029
   Use char because int might match the return type of a GCC
4030
   builtin and then its argument prototype would still apply.  */
4031
#ifdef __cplusplus
4032
extern "C"
4033
#endif
4034
char objalloc_create ();
4035
int
4036
main ()
4037
{
4038
return objalloc_create ();
4039
  ;
4040
  return 0;
4041
}
4042
_ACEOF
4043
rm -f conftest.$ac_objext conftest$ac_exeext
4044
if { (ac_try="$ac_link"
4045
case "(($ac_try" in
4046
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4047
  *) ac_try_echo=$ac_try;;
4048
esac
4049
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4050
$as_echo "$ac_try_echo") >&5
4051
  (eval "$ac_link") 2>conftest.er1
4052
  ac_status=$?
4053
  grep -v '^ *+' conftest.er1 >conftest.err
4054
  rm -f conftest.er1
4055
  cat conftest.err >&5
4056
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057
  (exit $ac_status); } && {
4058
	 test -z "$ac_c_werror_flag" ||
4059
	 test ! -s conftest.err
4060
       } && test -s conftest$ac_exeext && {
4061
	 test "$cross_compiling" = yes ||
4062
	 $as_test_x conftest$ac_exeext
4063
       }; then
4064
  ac_cv_lib_iberty_objalloc_create=yes
4065
else
4066
  $as_echo "$as_me: failed program was:" >&5
4067
sed 's/^/| /' conftest.$ac_ext >&5
4068
 
4069
	ac_cv_lib_iberty_objalloc_create=no
4070
fi
4071
 
4072
rm -rf conftest.dSYM
4073
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4074
      conftest$ac_exeext conftest.$ac_ext
4075
LIBS=$ac_check_lib_save_LIBS
4076
fi
4077
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_iberty_objalloc_create" >&5
4078
$as_echo "$ac_cv_lib_iberty_objalloc_create" >&6; }
4079
if test "x$ac_cv_lib_iberty_objalloc_create" = x""yes; then
4080
  cat >>confdefs.h <<_ACEOF
4081
#define HAVE_LIBIBERTY 1
4082
_ACEOF
4083
 
4084
  LIBS="-liberty $LIBS"
4085
 
4086
fi
4087
 
4088
  ac_libiberty=auto
4089
else
4090
  LIBS="$ac_libiberty $LIBS"
4091
fi
4092
if test "$ac_libbfd" = "NONE"; then
4093
 
4094
{ $as_echo "$as_me:$LINENO: checking for bfd_openr in -lbfd" >&5
4095
$as_echo_n "checking for bfd_openr in -lbfd... " >&6; }
4096
if test "${ac_cv_lib_bfd_bfd_openr+set}" = set; then
4097
  $as_echo_n "(cached) " >&6
4098
else
4099
  ac_check_lib_save_LIBS=$LIBS
4100
LIBS="-lbfd  $LIBS"
4101
cat >conftest.$ac_ext <<_ACEOF
4102
/* confdefs.h.  */
4103
_ACEOF
4104
cat confdefs.h >>conftest.$ac_ext
4105
cat >>conftest.$ac_ext <<_ACEOF
4106
/* end confdefs.h.  */
4107
 
4108
/* Override any GCC internal prototype to avoid an error.
4109
   Use char because int might match the return type of a GCC
4110
   builtin and then its argument prototype would still apply.  */
4111
#ifdef __cplusplus
4112
extern "C"
4113
#endif
4114
char bfd_openr ();
4115
int
4116
main ()
4117
{
4118
return bfd_openr ();
4119
  ;
4120
  return 0;
4121
}
4122
_ACEOF
4123
rm -f conftest.$ac_objext conftest$ac_exeext
4124
if { (ac_try="$ac_link"
4125
case "(($ac_try" in
4126
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4127
  *) ac_try_echo=$ac_try;;
4128
esac
4129
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4130
$as_echo "$ac_try_echo") >&5
4131
  (eval "$ac_link") 2>conftest.er1
4132
  ac_status=$?
4133
  grep -v '^ *+' conftest.er1 >conftest.err
4134
  rm -f conftest.er1
4135
  cat conftest.err >&5
4136
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137
  (exit $ac_status); } && {
4138
	 test -z "$ac_c_werror_flag" ||
4139
	 test ! -s conftest.err
4140
       } && test -s conftest$ac_exeext && {
4141
	 test "$cross_compiling" = yes ||
4142
	 $as_test_x conftest$ac_exeext
4143
       }; then
4144
  ac_cv_lib_bfd_bfd_openr=yes
4145
else
4146
  $as_echo "$as_me: failed program was:" >&5
4147
sed 's/^/| /' conftest.$ac_ext >&5
4148
 
4149
	ac_cv_lib_bfd_bfd_openr=no
4150
fi
4151
 
4152
rm -rf conftest.dSYM
4153
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4154
      conftest$ac_exeext conftest.$ac_ext
4155
LIBS=$ac_check_lib_save_LIBS
4156
fi
4157
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bfd_bfd_openr" >&5
4158
$as_echo "$ac_cv_lib_bfd_bfd_openr" >&6; }
4159
if test "x$ac_cv_lib_bfd_bfd_openr" = x""yes; then
4160
  cat >>confdefs.h <<_ACEOF
4161
#define HAVE_LIBBFD 1
4162
_ACEOF
4163
 
4164
  LIBS="-lbfd $LIBS"
4165
 
4166
fi
4167
 
4168
  ac_libbfd=auto
4169
else
4170
  LIBS="$ac_libbfd $LIBS"
4171
fi
4172
if test "$ac_zlib_prefix" = "NONE"; then
4173
 
4174
{ $as_echo "$as_me:$LINENO: checking for deflate in -lz" >&5
4175
$as_echo_n "checking for deflate in -lz... " >&6; }
4176
if test "${ac_cv_lib_z_deflate+set}" = set; then
4177
  $as_echo_n "(cached) " >&6
4178
else
4179
  ac_check_lib_save_LIBS=$LIBS
4180
LIBS="-lz  $LIBS"
4181
cat >conftest.$ac_ext <<_ACEOF
4182
/* confdefs.h.  */
4183
_ACEOF
4184
cat confdefs.h >>conftest.$ac_ext
4185
cat >>conftest.$ac_ext <<_ACEOF
4186
/* end confdefs.h.  */
4187
 
4188
/* Override any GCC internal prototype to avoid an error.
4189
   Use char because int might match the return type of a GCC
4190
   builtin and then its argument prototype would still apply.  */
4191
#ifdef __cplusplus
4192
extern "C"
4193
#endif
4194
char deflate ();
4195
int
4196
main ()
4197
{
4198
return deflate ();
4199
  ;
4200
  return 0;
4201
}
4202
_ACEOF
4203
rm -f conftest.$ac_objext conftest$ac_exeext
4204
if { (ac_try="$ac_link"
4205
case "(($ac_try" in
4206
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4207
  *) ac_try_echo=$ac_try;;
4208
esac
4209
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4210
$as_echo "$ac_try_echo") >&5
4211
  (eval "$ac_link") 2>conftest.er1
4212
  ac_status=$?
4213
  grep -v '^ *+' conftest.er1 >conftest.err
4214
  rm -f conftest.er1
4215
  cat conftest.err >&5
4216
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217
  (exit $ac_status); } && {
4218
	 test -z "$ac_c_werror_flag" ||
4219
	 test ! -s conftest.err
4220
       } && test -s conftest$ac_exeext && {
4221
	 test "$cross_compiling" = yes ||
4222
	 $as_test_x conftest$ac_exeext
4223
       }; then
4224
  ac_cv_lib_z_deflate=yes
4225
else
4226
  $as_echo "$as_me: failed program was:" >&5
4227
sed 's/^/| /' conftest.$ac_ext >&5
4228
 
4229
	ac_cv_lib_z_deflate=no
4230
fi
4231
 
4232
rm -rf conftest.dSYM
4233
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4234
      conftest$ac_exeext conftest.$ac_ext
4235
LIBS=$ac_check_lib_save_LIBS
4236
fi
4237
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
4238
$as_echo "$ac_cv_lib_z_deflate" >&6; }
4239
if test "x$ac_cv_lib_z_deflate" = x""yes; then
4240
  cat >>confdefs.h <<_ACEOF
4241
#define HAVE_LIBZ 1
4242
_ACEOF
4243
 
4244
  LIBS="-lz $LIBS"
4245
 
4246
fi
4247
 
4248
else
4249
  LIBS="-L$ac_zlib_prefix/lib -lz $LIBS"
4250
fi
4251
 
4252
bfd_include_dir=
4253
if test "$ac_bfd_include_dir" != "NONE"; then
4254
  bfd_include_dir="-I$ac_bfd_include_dir"
4255
fi
4256
 
4257
binutils_include_dir=
4258
if test "$ac_binutils_include_dir" != "NONE"; then
4259
  binutils_include_dir="-I$ac_binutils_include_dir"
4260
fi
4261
 
4262
zlib_include_dir=
4263
if test "$ac_zlib_prefix" != "NONE"; then
4264
  zlib_include_dir="-I$ac_zlib_prefix/include"
4265
fi
4266
 
4267
binutils_ldscript_dir=
4268
if test "$ac_binutils_ldscript_dir" = "NONE"; then
4269
  ac_binutils_ldscript_dir="\${TOOLDIR}/../${target_alias}/lib"
4270
fi
4271
binutils_ldscript_dir="$ac_binutils_ldscript_dir"
4272
 
4273
if test "$ac_libbfd" = "NONE" -o "$ac_libiberty" = "NONE" ; then
4274
	{ { $as_echo "$as_me:$LINENO: error:
4275
 
4276
You need to specify the location of the libfd.a and libiberty.a
4277
host libraries from the binutils package.
4278
 
4279
Run configure again specifying these options:
4280
 
4281
  ./configure --target=<ARCH> --with-bfd-include-dir=<dir> --with-libbfd=<libbfd.a> --with-libiberty=<libiberty.a>
4282
" >&5
4283
$as_echo "$as_me: error:
4284
 
4285
You need to specify the location of the libfd.a and libiberty.a
4286
host libraries from the binutils package.
4287
 
4288
Run configure again specifying these options:
4289
 
4290
  ./configure --target=<ARCH> --with-bfd-include-dir=<dir> --with-libbfd=<libbfd.a> --with-libiberty=<libiberty.a>
4291
" >&2;}
4292
   { (exit 1); exit 1; }; }
4293
fi
4294
 
4295
if test "$ac_bfd_include_dir" = "NONE" ; then
4296
	{ { $as_echo "$as_me:$LINENO: error:
4297
 
4298
You need to specify the location of the bfd.h header from a
4299
configured/compiled version of the binutils package for your target.
4300
Without this your elf2flt may crash as it will try to use the
4301
systems bfd.h which may be from a different binutils package.
4302
 
4303
Run configure again specifying these options:
4304
 
4305
  ./configure --target=<ARCH> --with-bfd-include-dir=<dir> --with-libbfd=<libbfd.a> --with-libiberty=<libiberty.a>
4306
" >&5
4307
$as_echo "$as_me: error:
4308
 
4309
You need to specify the location of the bfd.h header from a
4310
configured/compiled version of the binutils package for your target.
4311
Without this your elf2flt may crash as it will try to use the
4312
systems bfd.h which may be from a different binutils package.
4313
 
4314
Run configure again specifying these options:
4315
 
4316
  ./configure --target=<ARCH> --with-bfd-include-dir=<dir> --with-libbfd=<libbfd.a> --with-libiberty=<libiberty.a>
4317
" >&2;}
4318
   { (exit 1); exit 1; }; }
4319
fi
4320
 
4321
SYMBOL_PREFIX=
4322
case $target in
4323
	h8300|bfin*)
4324
		SYMBOL_PREFIX=_
4325
		;;
4326
esac
4327
 
4328
{ $as_echo "$as_me:$LINENO: checking for malloc in -lc" >&5
4329
$as_echo_n "checking for malloc in -lc... " >&6; }
4330
if test "${ac_cv_lib_c_malloc+set}" = set; then
4331
  $as_echo_n "(cached) " >&6
4332
else
4333
  ac_check_lib_save_LIBS=$LIBS
4334
LIBS="-lc  $LIBS"
4335
cat >conftest.$ac_ext <<_ACEOF
4336
/* confdefs.h.  */
4337
_ACEOF
4338
cat confdefs.h >>conftest.$ac_ext
4339
cat >>conftest.$ac_ext <<_ACEOF
4340
/* end confdefs.h.  */
4341
 
4342
/* Override any GCC internal prototype to avoid an error.
4343
   Use char because int might match the return type of a GCC
4344
   builtin and then its argument prototype would still apply.  */
4345
#ifdef __cplusplus
4346
extern "C"
4347
#endif
4348
char malloc ();
4349
int
4350
main ()
4351
{
4352
return malloc ();
4353
  ;
4354
  return 0;
4355
}
4356
_ACEOF
4357
rm -f conftest.$ac_objext conftest$ac_exeext
4358
if { (ac_try="$ac_link"
4359
case "(($ac_try" in
4360
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4361
  *) ac_try_echo=$ac_try;;
4362
esac
4363
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4364
$as_echo "$ac_try_echo") >&5
4365
  (eval "$ac_link") 2>conftest.er1
4366
  ac_status=$?
4367
  grep -v '^ *+' conftest.er1 >conftest.err
4368
  rm -f conftest.er1
4369
  cat conftest.err >&5
4370
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371
  (exit $ac_status); } && {
4372
	 test -z "$ac_c_werror_flag" ||
4373
	 test ! -s conftest.err
4374
       } && test -s conftest$ac_exeext && {
4375
	 test "$cross_compiling" = yes ||
4376
	 $as_test_x conftest$ac_exeext
4377
       }; then
4378
  ac_cv_lib_c_malloc=yes
4379
else
4380
  $as_echo "$as_me: failed program was:" >&5
4381
sed 's/^/| /' conftest.$ac_ext >&5
4382
 
4383
	ac_cv_lib_c_malloc=no
4384
fi
4385
 
4386
rm -rf conftest.dSYM
4387
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4388
      conftest$ac_exeext conftest.$ac_ext
4389
LIBS=$ac_check_lib_save_LIBS
4390
fi
4391
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_malloc" >&5
4392
$as_echo "$ac_cv_lib_c_malloc" >&6; }
4393
if test "x$ac_cv_lib_c_malloc" = x""yes; then
4394
  LIBS="-lc $LIBS"
4395
fi
4396
 
4397
 
4398
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4399
$as_echo_n "checking for ANSI C header files... " >&6; }
4400
if test "${ac_cv_header_stdc+set}" = set; then
4401
  $as_echo_n "(cached) " >&6
4402
else
4403
  cat >conftest.$ac_ext <<_ACEOF
4404
/* confdefs.h.  */
4405
_ACEOF
4406
cat confdefs.h >>conftest.$ac_ext
4407
cat >>conftest.$ac_ext <<_ACEOF
4408
/* end confdefs.h.  */
4409
#include <stdlib.h>
4410
#include <stdarg.h>
4411
#include <string.h>
4412
#include <float.h>
4413
 
4414
int
4415
main ()
4416
{
4417
 
4418
  ;
4419
  return 0;
4420
}
4421
_ACEOF
4422
rm -f conftest.$ac_objext
4423
if { (ac_try="$ac_compile"
4424
case "(($ac_try" in
4425
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4426
  *) ac_try_echo=$ac_try;;
4427
esac
4428
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4429
$as_echo "$ac_try_echo") >&5
4430
  (eval "$ac_compile") 2>conftest.er1
4431
  ac_status=$?
4432
  grep -v '^ *+' conftest.er1 >conftest.err
4433
  rm -f conftest.er1
4434
  cat conftest.err >&5
4435
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436
  (exit $ac_status); } && {
4437
	 test -z "$ac_c_werror_flag" ||
4438
	 test ! -s conftest.err
4439
       } && test -s conftest.$ac_objext; then
4440
  ac_cv_header_stdc=yes
4441
else
4442
  $as_echo "$as_me: failed program was:" >&5
4443
sed 's/^/| /' conftest.$ac_ext >&5
4444
 
4445
	ac_cv_header_stdc=no
4446
fi
4447
 
4448
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4449
 
4450
if test $ac_cv_header_stdc = yes; then
4451
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4452
  cat >conftest.$ac_ext <<_ACEOF
4453
/* confdefs.h.  */
4454
_ACEOF
4455
cat confdefs.h >>conftest.$ac_ext
4456
cat >>conftest.$ac_ext <<_ACEOF
4457
/* end confdefs.h.  */
4458
#include <string.h>
4459
 
4460
_ACEOF
4461
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4462
  $EGREP "memchr" >/dev/null 2>&1; then
4463
  :
4464
else
4465
  ac_cv_header_stdc=no
4466
fi
4467
rm -f conftest*
4468
 
4469
fi
4470
 
4471
if test $ac_cv_header_stdc = yes; then
4472
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4473
  cat >conftest.$ac_ext <<_ACEOF
4474
/* confdefs.h.  */
4475
_ACEOF
4476
cat confdefs.h >>conftest.$ac_ext
4477
cat >>conftest.$ac_ext <<_ACEOF
4478
/* end confdefs.h.  */
4479
#include <stdlib.h>
4480
 
4481
_ACEOF
4482
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4483
  $EGREP "free" >/dev/null 2>&1; then
4484
  :
4485
else
4486
  ac_cv_header_stdc=no
4487
fi
4488
rm -f conftest*
4489
 
4490
fi
4491
 
4492
if test $ac_cv_header_stdc = yes; then
4493
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4494
  if test "$cross_compiling" = yes; then
4495
  :
4496
else
4497
  cat >conftest.$ac_ext <<_ACEOF
4498
/* confdefs.h.  */
4499
_ACEOF
4500
cat confdefs.h >>conftest.$ac_ext
4501
cat >>conftest.$ac_ext <<_ACEOF
4502
/* end confdefs.h.  */
4503
#include <ctype.h>
4504
#include <stdlib.h>
4505
#if ((' ' & 0x0FF) == 0x020)
4506
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4507
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4508
#else
4509
# define ISLOWER(c) \
4510
		   (('a' <= (c) && (c) <= 'i') \
4511
		     || ('j' <= (c) && (c) <= 'r') \
4512
		     || ('s' <= (c) && (c) <= 'z'))
4513
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4514
#endif
4515
 
4516
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4517
int
4518
main ()
4519
{
4520
  int i;
4521
  for (i = 0; i < 256; i++)
4522
    if (XOR (islower (i), ISLOWER (i))
4523
	|| toupper (i) != TOUPPER (i))
4524
      return 2;
4525
  return 0;
4526
}
4527
_ACEOF
4528
rm -f conftest$ac_exeext
4529
if { (ac_try="$ac_link"
4530
case "(($ac_try" in
4531
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4532
  *) ac_try_echo=$ac_try;;
4533
esac
4534
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4535
$as_echo "$ac_try_echo") >&5
4536
  (eval "$ac_link") 2>&5
4537
  ac_status=$?
4538
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4540
  { (case "(($ac_try" in
4541
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4542
  *) ac_try_echo=$ac_try;;
4543
esac
4544
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4545
$as_echo "$ac_try_echo") >&5
4546
  (eval "$ac_try") 2>&5
4547
  ac_status=$?
4548
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549
  (exit $ac_status); }; }; then
4550
  :
4551
else
4552
  $as_echo "$as_me: program exited with status $ac_status" >&5
4553
$as_echo "$as_me: failed program was:" >&5
4554
sed 's/^/| /' conftest.$ac_ext >&5
4555
 
4556
( exit $ac_status )
4557
ac_cv_header_stdc=no
4558
fi
4559
rm -rf conftest.dSYM
4560
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4561
fi
4562
 
4563
 
4564
fi
4565
fi
4566
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4567
$as_echo "$ac_cv_header_stdc" >&6; }
4568
if test $ac_cv_header_stdc = yes; then
4569
 
4570
cat >>confdefs.h <<\_ACEOF
4571
#define STDC_HEADERS 1
4572
_ACEOF
4573
 
4574
fi
4575
 
4576
 
4577
 
4578
 
4579
for ac_header in fcntl.h unistd.h bfd.h
4580
do
4581
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4582
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4583
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4584
$as_echo_n "checking for $ac_header... " >&6; }
4585
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4586
  $as_echo_n "(cached) " >&6
4587
fi
4588
ac_res=`eval 'as_val=${'$as_ac_Header'}
4589
		 $as_echo "$as_val"'`
4590
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4591
$as_echo "$ac_res" >&6; }
4592
else
4593
  # Is the header compilable?
4594
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4595
$as_echo_n "checking $ac_header usability... " >&6; }
4596
cat >conftest.$ac_ext <<_ACEOF
4597
/* confdefs.h.  */
4598
_ACEOF
4599
cat confdefs.h >>conftest.$ac_ext
4600
cat >>conftest.$ac_ext <<_ACEOF
4601
/* end confdefs.h.  */
4602
$ac_includes_default
4603
#include <$ac_header>
4604
_ACEOF
4605
rm -f conftest.$ac_objext
4606
if { (ac_try="$ac_compile"
4607
case "(($ac_try" in
4608
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4609
  *) ac_try_echo=$ac_try;;
4610
esac
4611
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4612
$as_echo "$ac_try_echo") >&5
4613
  (eval "$ac_compile") 2>conftest.er1
4614
  ac_status=$?
4615
  grep -v '^ *+' conftest.er1 >conftest.err
4616
  rm -f conftest.er1
4617
  cat conftest.err >&5
4618
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619
  (exit $ac_status); } && {
4620
	 test -z "$ac_c_werror_flag" ||
4621
	 test ! -s conftest.err
4622
       } && test -s conftest.$ac_objext; then
4623
  ac_header_compiler=yes
4624
else
4625
  $as_echo "$as_me: failed program was:" >&5
4626
sed 's/^/| /' conftest.$ac_ext >&5
4627
 
4628
	ac_header_compiler=no
4629
fi
4630
 
4631
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4632
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4633
$as_echo "$ac_header_compiler" >&6; }
4634
 
4635
# Is the header present?
4636
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4637
$as_echo_n "checking $ac_header presence... " >&6; }
4638
cat >conftest.$ac_ext <<_ACEOF
4639
/* confdefs.h.  */
4640
_ACEOF
4641
cat confdefs.h >>conftest.$ac_ext
4642
cat >>conftest.$ac_ext <<_ACEOF
4643
/* end confdefs.h.  */
4644
#include <$ac_header>
4645
_ACEOF
4646
if { (ac_try="$ac_cpp conftest.$ac_ext"
4647
case "(($ac_try" in
4648
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4649
  *) ac_try_echo=$ac_try;;
4650
esac
4651
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4652
$as_echo "$ac_try_echo") >&5
4653
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4654
  ac_status=$?
4655
  grep -v '^ *+' conftest.er1 >conftest.err
4656
  rm -f conftest.er1
4657
  cat conftest.err >&5
4658
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659
  (exit $ac_status); } >/dev/null && {
4660
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4661
	 test ! -s conftest.err
4662
       }; then
4663
  ac_header_preproc=yes
4664
else
4665
  $as_echo "$as_me: failed program was:" >&5
4666
sed 's/^/| /' conftest.$ac_ext >&5
4667
 
4668
  ac_header_preproc=no
4669
fi
4670
 
4671
rm -f conftest.err conftest.$ac_ext
4672
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4673
$as_echo "$ac_header_preproc" >&6; }
4674
 
4675
# So?  What about this header?
4676
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4677
  yes:no: )
4678
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4679
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4680
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4681
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4682
    ac_header_preproc=yes
4683
    ;;
4684
  no:yes:* )
4685
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4686
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4687
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4688
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4689
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4690
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4691
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4692
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4693
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4694
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4695
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4696
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4697
 
4698
    ;;
4699
esac
4700
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4701
$as_echo_n "checking for $ac_header... " >&6; }
4702
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4703
  $as_echo_n "(cached) " >&6
4704
else
4705
  eval "$as_ac_Header=\$ac_header_preproc"
4706
fi
4707
ac_res=`eval 'as_val=${'$as_ac_Header'}
4708
		 $as_echo "$as_val"'`
4709
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4710
$as_echo "$ac_res" >&6; }
4711
 
4712
fi
4713
as_val=`eval 'as_val=${'$as_ac_Header'}
4714
		 $as_echo "$as_val"'`
4715
   if test "x$as_val" = x""yes; then
4716
  cat >>confdefs.h <<_ACEOF
4717
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4718
_ACEOF
4719
 
4720
fi
4721
 
4722
done
4723
 
4724
 
4725
{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4726
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4727
if test "${ac_cv_c_const+set}" = set; then
4728
  $as_echo_n "(cached) " >&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
 
4737
int
4738
main ()
4739
{
4740
/* FIXME: Include the comments suggested by Paul. */
4741
#ifndef __cplusplus
4742
  /* Ultrix mips cc rejects this.  */
4743
  typedef int charset[2];
4744
  const charset cs;
4745
  /* SunOS 4.1.1 cc rejects this.  */
4746
  char const *const *pcpcc;
4747
  char **ppc;
4748
  /* NEC SVR4.0.2 mips cc rejects this.  */
4749
  struct point {int x, y;};
4750
  static struct point const zero = {0,0};
4751
  /* AIX XL C 1.02.0.0 rejects this.
4752
     It does not let you subtract one const X* pointer from another in
4753
     an arm of an if-expression whose if-part is not a constant
4754
     expression */
4755
  const char *g = "string";
4756
  pcpcc = &g + (g ? g-g : 0);
4757
  /* HPUX 7.0 cc rejects these. */
4758
  ++pcpcc;
4759
  ppc = (char**) pcpcc;
4760
  pcpcc = (char const *const *) ppc;
4761
  { /* SCO 3.2v4 cc rejects this.  */
4762
    char *t;
4763
    char const *s = 0 ? (char *) 0 : (char const *) 0;
4764
 
4765
    *t++ = 0;
4766
    if (s) return 0;
4767
  }
4768
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4769
    int x[] = {25, 17};
4770
    const int *foo = &x[0];
4771
    ++foo;
4772
  }
4773
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4774
    typedef const int *iptr;
4775
    iptr p = 0;
4776
    ++p;
4777
  }
4778
  { /* AIX XL C 1.02.0.0 rejects this saying
4779
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4780
    struct s { int j; const int *ap[3]; };
4781
    struct s *b; b->j = 5;
4782
  }
4783
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4784
    const int foo = 10;
4785
    if (!foo) return 0;
4786
  }
4787
  return !cs[0] && !zero.x;
4788
#endif
4789
 
4790
  ;
4791
  return 0;
4792
}
4793
_ACEOF
4794
rm -f conftest.$ac_objext
4795
if { (ac_try="$ac_compile"
4796
case "(($ac_try" in
4797
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4798
  *) ac_try_echo=$ac_try;;
4799
esac
4800
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4801
$as_echo "$ac_try_echo") >&5
4802
  (eval "$ac_compile") 2>conftest.er1
4803
  ac_status=$?
4804
  grep -v '^ *+' conftest.er1 >conftest.err
4805
  rm -f conftest.er1
4806
  cat conftest.err >&5
4807
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808
  (exit $ac_status); } && {
4809
	 test -z "$ac_c_werror_flag" ||
4810
	 test ! -s conftest.err
4811
       } && test -s conftest.$ac_objext; then
4812
  ac_cv_c_const=yes
4813
else
4814
  $as_echo "$as_me: failed program was:" >&5
4815
sed 's/^/| /' conftest.$ac_ext >&5
4816
 
4817
	ac_cv_c_const=no
4818
fi
4819
 
4820
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4821
fi
4822
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4823
$as_echo "$ac_cv_c_const" >&6; }
4824
if test $ac_cv_c_const = no; then
4825
 
4826
cat >>confdefs.h <<\_ACEOF
4827
#define const /**/
4828
_ACEOF
4829
 
4830
fi
4831
 
4832
 
4833
 
4834
for ac_func in vprintf
4835
do
4836
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4837
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
4838
$as_echo_n "checking for $ac_func... " >&6; }
4839
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4840
  $as_echo_n "(cached) " >&6
4841
else
4842
  cat >conftest.$ac_ext <<_ACEOF
4843
/* confdefs.h.  */
4844
_ACEOF
4845
cat confdefs.h >>conftest.$ac_ext
4846
cat >>conftest.$ac_ext <<_ACEOF
4847
/* end confdefs.h.  */
4848
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4849
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4850
#define $ac_func innocuous_$ac_func
4851
 
4852
/* System header to define __stub macros and hopefully few prototypes,
4853
    which can conflict with char $ac_func (); below.
4854
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4855
    <limits.h> exists even on freestanding compilers.  */
4856
 
4857
#ifdef __STDC__
4858
# include <limits.h>
4859
#else
4860
# include <assert.h>
4861
#endif
4862
 
4863
#undef $ac_func
4864
 
4865
/* Override any GCC internal prototype to avoid an error.
4866
   Use char because int might match the return type of a GCC
4867
   builtin and then its argument prototype would still apply.  */
4868
#ifdef __cplusplus
4869
extern "C"
4870
#endif
4871
char $ac_func ();
4872
/* The GNU C library defines this for functions which it implements
4873
    to always fail with ENOSYS.  Some functions are actually named
4874
    something starting with __ and the normal name is an alias.  */
4875
#if defined __stub_$ac_func || defined __stub___$ac_func
4876
choke me
4877
#endif
4878
 
4879
int
4880
main ()
4881
{
4882
return $ac_func ();
4883
  ;
4884
  return 0;
4885
}
4886
_ACEOF
4887
rm -f conftest.$ac_objext conftest$ac_exeext
4888
if { (ac_try="$ac_link"
4889
case "(($ac_try" in
4890
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4891
  *) ac_try_echo=$ac_try;;
4892
esac
4893
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4894
$as_echo "$ac_try_echo") >&5
4895
  (eval "$ac_link") 2>conftest.er1
4896
  ac_status=$?
4897
  grep -v '^ *+' conftest.er1 >conftest.err
4898
  rm -f conftest.er1
4899
  cat conftest.err >&5
4900
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901
  (exit $ac_status); } && {
4902
	 test -z "$ac_c_werror_flag" ||
4903
	 test ! -s conftest.err
4904
       } && test -s conftest$ac_exeext && {
4905
	 test "$cross_compiling" = yes ||
4906
	 $as_test_x conftest$ac_exeext
4907
       }; then
4908
  eval "$as_ac_var=yes"
4909
else
4910
  $as_echo "$as_me: failed program was:" >&5
4911
sed 's/^/| /' conftest.$ac_ext >&5
4912
 
4913
	eval "$as_ac_var=no"
4914
fi
4915
 
4916
rm -rf conftest.dSYM
4917
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4918
      conftest$ac_exeext conftest.$ac_ext
4919
fi
4920
ac_res=`eval 'as_val=${'$as_ac_var'}
4921
		 $as_echo "$as_val"'`
4922
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4923
$as_echo "$ac_res" >&6; }
4924
as_val=`eval 'as_val=${'$as_ac_var'}
4925
		 $as_echo "$as_val"'`
4926
   if test "x$as_val" = x""yes; then
4927
  cat >>confdefs.h <<_ACEOF
4928
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4929
_ACEOF
4930
 
4931
{ $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
4932
$as_echo_n "checking for _doprnt... " >&6; }
4933
if test "${ac_cv_func__doprnt+set}" = set; then
4934
  $as_echo_n "(cached) " >&6
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
/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
4943
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4944
#define _doprnt innocuous__doprnt
4945
 
4946
/* System header to define __stub macros and hopefully few prototypes,
4947
    which can conflict with char _doprnt (); below.
4948
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4949
    <limits.h> exists even on freestanding compilers.  */
4950
 
4951
#ifdef __STDC__
4952
# include <limits.h>
4953
#else
4954
# include <assert.h>
4955
#endif
4956
 
4957
#undef _doprnt
4958
 
4959
/* Override any GCC internal prototype to avoid an error.
4960
   Use char because int might match the return type of a GCC
4961
   builtin and then its argument prototype would still apply.  */
4962
#ifdef __cplusplus
4963
extern "C"
4964
#endif
4965
char _doprnt ();
4966
/* The GNU C library defines this for functions which it implements
4967
    to always fail with ENOSYS.  Some functions are actually named
4968
    something starting with __ and the normal name is an alias.  */
4969
#if defined __stub__doprnt || defined __stub____doprnt
4970
choke me
4971
#endif
4972
 
4973
int
4974
main ()
4975
{
4976
return _doprnt ();
4977
  ;
4978
  return 0;
4979
}
4980
_ACEOF
4981
rm -f conftest.$ac_objext conftest$ac_exeext
4982
if { (ac_try="$ac_link"
4983
case "(($ac_try" in
4984
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4985
  *) ac_try_echo=$ac_try;;
4986
esac
4987
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4988
$as_echo "$ac_try_echo") >&5
4989
  (eval "$ac_link") 2>conftest.er1
4990
  ac_status=$?
4991
  grep -v '^ *+' conftest.er1 >conftest.err
4992
  rm -f conftest.er1
4993
  cat conftest.err >&5
4994
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995
  (exit $ac_status); } && {
4996
	 test -z "$ac_c_werror_flag" ||
4997
	 test ! -s conftest.err
4998
       } && test -s conftest$ac_exeext && {
4999
	 test "$cross_compiling" = yes ||
5000
	 $as_test_x conftest$ac_exeext
5001
       }; then
5002
  ac_cv_func__doprnt=yes
5003
else
5004
  $as_echo "$as_me: failed program was:" >&5
5005
sed 's/^/| /' conftest.$ac_ext >&5
5006
 
5007
	ac_cv_func__doprnt=no
5008
fi
5009
 
5010
rm -rf conftest.dSYM
5011
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5012
      conftest$ac_exeext conftest.$ac_ext
5013
fi
5014
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
5015
$as_echo "$ac_cv_func__doprnt" >&6; }
5016
if test "x$ac_cv_func__doprnt" = x""yes; then
5017
 
5018
cat >>confdefs.h <<\_ACEOF
5019
#define HAVE_DOPRNT 1
5020
_ACEOF
5021
 
5022
fi
5023
 
5024
fi
5025
done
5026
 
5027
 
5028
 
5029
 
5030
 
5031
 
5032
 
5033
for ac_func in  \
5034
	dcgettext \
5035
	getline \
5036
	libintl_dgettext \
5037
	strsignal \
5038
 
5039
do
5040
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5041
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
5042
$as_echo_n "checking for $ac_func... " >&6; }
5043
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5044
  $as_echo_n "(cached) " >&6
5045
else
5046
  cat >conftest.$ac_ext <<_ACEOF
5047
/* confdefs.h.  */
5048
_ACEOF
5049
cat confdefs.h >>conftest.$ac_ext
5050
cat >>conftest.$ac_ext <<_ACEOF
5051
/* end confdefs.h.  */
5052
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5053
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5054
#define $ac_func innocuous_$ac_func
5055
 
5056
/* System header to define __stub macros and hopefully few prototypes,
5057
    which can conflict with char $ac_func (); below.
5058
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5059
    <limits.h> exists even on freestanding compilers.  */
5060
 
5061
#ifdef __STDC__
5062
# include <limits.h>
5063
#else
5064
# include <assert.h>
5065
#endif
5066
 
5067
#undef $ac_func
5068
 
5069
/* Override any GCC internal prototype to avoid an error.
5070
   Use char because int might match the return type of a GCC
5071
   builtin and then its argument prototype would still apply.  */
5072
#ifdef __cplusplus
5073
extern "C"
5074
#endif
5075
char $ac_func ();
5076
/* The GNU C library defines this for functions which it implements
5077
    to always fail with ENOSYS.  Some functions are actually named
5078
    something starting with __ and the normal name is an alias.  */
5079
#if defined __stub_$ac_func || defined __stub___$ac_func
5080
choke me
5081
#endif
5082
 
5083
int
5084
main ()
5085
{
5086
return $ac_func ();
5087
  ;
5088
  return 0;
5089
}
5090
_ACEOF
5091
rm -f conftest.$ac_objext conftest$ac_exeext
5092
if { (ac_try="$ac_link"
5093
case "(($ac_try" in
5094
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5095
  *) ac_try_echo=$ac_try;;
5096
esac
5097
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5098
$as_echo "$ac_try_echo") >&5
5099
  (eval "$ac_link") 2>conftest.er1
5100
  ac_status=$?
5101
  grep -v '^ *+' conftest.er1 >conftest.err
5102
  rm -f conftest.er1
5103
  cat conftest.err >&5
5104
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105
  (exit $ac_status); } && {
5106
	 test -z "$ac_c_werror_flag" ||
5107
	 test ! -s conftest.err
5108
       } && test -s conftest$ac_exeext && {
5109
	 test "$cross_compiling" = yes ||
5110
	 $as_test_x conftest$ac_exeext
5111
       }; then
5112
  eval "$as_ac_var=yes"
5113
else
5114
  $as_echo "$as_me: failed program was:" >&5
5115
sed 's/^/| /' conftest.$ac_ext >&5
5116
 
5117
	eval "$as_ac_var=no"
5118
fi
5119
 
5120
rm -rf conftest.dSYM
5121
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5122
      conftest$ac_exeext conftest.$ac_ext
5123
fi
5124
ac_res=`eval 'as_val=${'$as_ac_var'}
5125
		 $as_echo "$as_val"'`
5126
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5127
$as_echo "$ac_res" >&6; }
5128
as_val=`eval 'as_val=${'$as_ac_var'}
5129
		 $as_echo "$as_val"'`
5130
   if test "x$as_val" = x""yes; then
5131
  cat >>confdefs.h <<_ACEOF
5132
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5133
_ACEOF
5134
 
5135
fi
5136
done
5137
 
5138
 
5139
test "$GCC" = yes && CFLAGS="-Wall $CFLAGS"
5140
 
5141
 
5142
 
5143
 
5144
 
5145
 
5146
 
5147
 
5148
 
5149
 
5150
 
5151
 
5152
 
5153
 
5154
 
5155
 
5156
 
5157
ac_config_files="$ac_config_files ld-elf2flt.sh:ld-elf2flt.in Makefile elf2flt.ld"
5158
 
5159
cat >confcache <<\_ACEOF
5160
# This file is a shell script that caches the results of configure
5161
# tests run on this system so they can be shared between configure
5162
# scripts and configure runs, see configure's option --config-cache.
5163
# It is not useful on other systems.  If it contains results you don't
5164
# want to keep, you may remove or edit it.
5165
#
5166
# config.status only pays attention to the cache file if you give it
5167
# the --recheck option to rerun configure.
5168
#
5169
# `ac_cv_env_foo' variables (set or unset) will be overridden when
5170
# loading this file, other *unset* `ac_cv_foo' will be assigned the
5171
# following values.
5172
 
5173
_ACEOF
5174
 
5175
# The following way of writing the cache mishandles newlines in values,
5176
# but we know of no workaround that is simple, portable, and efficient.
5177
# So, we kill variables containing newlines.
5178
# Ultrix sh set writes to stderr and can't be redirected directly,
5179
# and sets the high bit in the cache file unless we assign to the vars.
5180
(
5181
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5182
    eval ac_val=\$$ac_var
5183
    case $ac_val in #(
5184
    *${as_nl}*)
5185
      case $ac_var in #(
5186
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
5187
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5188
      esac
5189
      case $ac_var in #(
5190
      _ | IFS | as_nl) ;; #(
5191
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5192
      *) $as_unset $ac_var ;;
5193
      esac ;;
5194
    esac
5195
  done
5196
 
5197
  (set) 2>&1 |
5198
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
5199
    *${as_nl}ac_space=\ *)
5200
      # `set' does not quote correctly, so add quotes (double-quote
5201
      # substitution turns \\\\ into \\, and sed turns \\ into \).
5202
      sed -n \
5203
	"s/'/'\\\\''/g;
5204
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5205
      ;; #(
5206
    *)
5207
      # `set' quotes correctly as required by POSIX, so do not add quotes.
5208
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5209
      ;;
5210
    esac |
5211
    sort
5212
) |
5213
  sed '
5214
     /^ac_cv_env_/b end
5215
     t clear
5216
     :clear
5217
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5218
     t end
5219
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5220
     :end' >>confcache
5221
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5222
  if test -w "$cache_file"; then
5223
    test "x$cache_file" != "x/dev/null" &&
5224
      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
5225
$as_echo "$as_me: updating cache $cache_file" >&6;}
5226
    cat confcache >$cache_file
5227
  else
5228
    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
5229
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5230
  fi
5231
fi
5232
rm -f confcache
5233
 
5234
test "x$prefix" = xNONE && prefix=$ac_default_prefix
5235
# Let make expand exec_prefix.
5236
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5237
 
5238
# Transform confdefs.h into DEFS.
5239
# Protect against shell expansion while executing Makefile rules.
5240
# Protect against Makefile macro expansion.
5241
#
5242
# If the first sed substitution is executed (which looks for macros that
5243
# take arguments), then branch to the quote section.  Otherwise,
5244
# look for a macro that doesn't take arguments.
5245
ac_script='
5246
:mline
5247
/\\$/{
5248
 N
5249
 s,\\\n,,
5250
 b mline
5251
}
5252
t clear
5253
:clear
5254
s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
5255
t quote
5256
s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
5257
t quote
5258
b any
5259
:quote
5260
s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
5261
s/\[/\\&/g
5262
s/\]/\\&/g
5263
s/\$/$$/g
5264
H
5265
:any
5266
${
5267
	g
5268
	s/^\n//
5269
	s/\n/ /g
5270
	p
5271
}
5272
'
5273
DEFS=`sed -n "$ac_script" confdefs.h`
5274
 
5275
 
5276
ac_libobjs=
5277
ac_ltlibobjs=
5278
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5279
  # 1. Remove the extension, and $U if already installed.
5280
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5281
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5282
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
5283
  #    will be set to the directory where LIBOBJS objects are built.
5284
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5285
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
5286
done
5287
LIBOBJS=$ac_libobjs
5288
 
5289
LTLIBOBJS=$ac_ltlibobjs
5290
 
5291
 
5292
 
5293
: ${CONFIG_STATUS=./config.status}
5294
ac_write_fail=0
5295
ac_clean_files_save=$ac_clean_files
5296
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5297
{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5298
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5299
cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5300
#! $SHELL
5301
# Generated by $as_me.
5302
# Run this file to recreate the current configuration.
5303
# Compiler output produced by configure, useful for debugging
5304
# configure, is in config.log if it exists.
5305
 
5306
debug=false
5307
ac_cs_recheck=false
5308
ac_cs_silent=false
5309
SHELL=\${CONFIG_SHELL-$SHELL}
5310
_ACEOF
5311
 
5312
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5313
## --------------------- ##
5314
## M4sh Initialization.  ##
5315
## --------------------- ##
5316
 
5317
# Be more Bourne compatible
5318
DUALCASE=1; export DUALCASE # for MKS sh
5319
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5320
  emulate sh
5321
  NULLCMD=:
5322
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5323
  # is contrary to our usage.  Disable this feature.
5324
  alias -g '${1+"$@"}'='"$@"'
5325
  setopt NO_GLOB_SUBST
5326
else
5327
  case `(set -o) 2>/dev/null` in
5328
  *posix*) set -o posix ;;
5329
esac
5330
 
5331
fi
5332
 
5333
 
5334
 
5335
 
5336
# PATH needs CR
5337
# Avoid depending upon Character Ranges.
5338
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5339
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5340
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5341
as_cr_digits='0123456789'
5342
as_cr_alnum=$as_cr_Letters$as_cr_digits
5343
 
5344
as_nl='
5345
'
5346
export as_nl
5347
# Printing a long string crashes Solaris 7 /usr/bin/printf.
5348
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5349
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5350
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5351
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5352
  as_echo='printf %s\n'
5353
  as_echo_n='printf %s'
5354
else
5355
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5356
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5357
    as_echo_n='/usr/ucb/echo -n'
5358
  else
5359
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5360
    as_echo_n_body='eval
5361
      arg=$1;
5362
      case $arg in
5363
      *"$as_nl"*)
5364
	expr "X$arg" : "X\\(.*\\)$as_nl";
5365
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5366
      esac;
5367
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5368
    '
5369
    export as_echo_n_body
5370
    as_echo_n='sh -c $as_echo_n_body as_echo'
5371
  fi
5372
  export as_echo_body
5373
  as_echo='sh -c $as_echo_body as_echo'
5374
fi
5375
 
5376
# The user is always right.
5377
if test "${PATH_SEPARATOR+set}" != set; then
5378
  PATH_SEPARATOR=:
5379
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5380
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5381
      PATH_SEPARATOR=';'
5382
  }
5383
fi
5384
 
5385
# Support unset when possible.
5386
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5387
  as_unset=unset
5388
else
5389
  as_unset=false
5390
fi
5391
 
5392
 
5393
# IFS
5394
# We need space, tab and new line, in precisely that order.  Quoting is
5395
# there to prevent editors from complaining about space-tab.
5396
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
5397
# splitting by setting IFS to empty value.)
5398
IFS=" ""	$as_nl"
5399
 
5400
# Find who we are.  Look in the path if we contain no directory separator.
5401
case $0 in
5402
  *[\\/]* ) as_myself=$0 ;;
5403
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5404
for as_dir in $PATH
5405
do
5406
  IFS=$as_save_IFS
5407
  test -z "$as_dir" && as_dir=.
5408
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5409
done
5410
IFS=$as_save_IFS
5411
 
5412
     ;;
5413
esac
5414
# We did not find ourselves, most probably we were run as `sh COMMAND'
5415
# in which case we are not to be found in the path.
5416
if test "x$as_myself" = x; then
5417
  as_myself=$0
5418
fi
5419
if test ! -f "$as_myself"; then
5420
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5421
  { (exit 1); exit 1; }
5422
fi
5423
 
5424
# Work around bugs in pre-3.0 UWIN ksh.
5425
for as_var in ENV MAIL MAILPATH
5426
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5427
done
5428
PS1='$ '
5429
PS2='> '
5430
PS4='+ '
5431
 
5432
# NLS nuisances.
5433
LC_ALL=C
5434
export LC_ALL
5435
LANGUAGE=C
5436
export LANGUAGE
5437
 
5438
# Required to use basename.
5439
if expr a : '\(a\)' >/dev/null 2>&1 &&
5440
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
5441
  as_expr=expr
5442
else
5443
  as_expr=false
5444
fi
5445
 
5446
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5447
  as_basename=basename
5448
else
5449
  as_basename=false
5450
fi
5451
 
5452
 
5453
# Name of the executable.
5454
as_me=`$as_basename -- "$0" ||
5455
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5456
	 X"$0" : 'X\(//\)$' \| \
5457
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5458
$as_echo X/"$0" |
5459
    sed '/^.*\/\([^/][^/]*\)\/*$/{
5460
	    s//\1/
5461
	    q
5462
	  }
5463
	  /^X\/\(\/\/\)$/{
5464
	    s//\1/
5465
	    q
5466
	  }
5467
	  /^X\/\(\/\).*/{
5468
	    s//\1/
5469
	    q
5470
	  }
5471
	  s/.*/./; q'`
5472
 
5473
# CDPATH.
5474
$as_unset CDPATH
5475
 
5476
 
5477
 
5478
  as_lineno_1=$LINENO
5479
  as_lineno_2=$LINENO
5480
  test "x$as_lineno_1" != "x$as_lineno_2" &&
5481
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
5482
 
5483
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5484
  # uniformly replaced by the line number.  The first 'sed' inserts a
5485
  # line-number line after each line using $LINENO; the second 'sed'
5486
  # does the real work.  The second script uses 'N' to pair each
5487
  # line-number line with the line containing $LINENO, and appends
5488
  # trailing '-' during substitution so that $LINENO is not a special
5489
  # case at line end.
5490
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5491
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
5492
  # E. McMahon (1931-1989) for sed's syntax.  :-)
5493
  sed -n '
5494
    p
5495
    /[$]LINENO/=
5496
  ' <$as_myself |
5497
    sed '
5498
      s/[$]LINENO.*/&-/
5499
      t lineno
5500
      b
5501
      :lineno
5502
      N
5503
      :loop
5504
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
5505
      t loop
5506
      s/-\n.*//
5507
    ' >$as_me.lineno &&
5508
  chmod +x "$as_me.lineno" ||
5509
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
5510
   { (exit 1); exit 1; }; }
5511
 
5512
  # Don't try to exec as it changes $[0], causing all sort of problems
5513
  # (the dirname of $[0] is not the place where we might find the
5514
  # original and so on.  Autoconf is especially sensitive to this).
5515
  . "./$as_me.lineno"
5516
  # Exit status is that of the last command.
5517
  exit
5518
}
5519
 
5520
 
5521
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5522
  as_dirname=dirname
5523
else
5524
  as_dirname=false
5525
fi
5526
 
5527
ECHO_C= ECHO_N= ECHO_T=
5528
case `echo -n x` in
5529
-n*)
5530
  case `echo 'x\c'` in
5531
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
5532
  *)   ECHO_C='\c';;
5533
  esac;;
5534
*)
5535
  ECHO_N='-n';;
5536
esac
5537
if expr a : '\(a\)' >/dev/null 2>&1 &&
5538
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
5539
  as_expr=expr
5540
else
5541
  as_expr=false
5542
fi
5543
 
5544
rm -f conf$$ conf$$.exe conf$$.file
5545
if test -d conf$$.dir; then
5546
  rm -f conf$$.dir/conf$$.file
5547
else
5548
  rm -f conf$$.dir
5549
  mkdir conf$$.dir 2>/dev/null
5550
fi
5551
if (echo >conf$$.file) 2>/dev/null; then
5552
  if ln -s conf$$.file conf$$ 2>/dev/null; then
5553
    as_ln_s='ln -s'
5554
    # ... but there are two gotchas:
5555
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5556
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5557
    # In both cases, we have to default to `cp -p'.
5558
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5559
      as_ln_s='cp -p'
5560
  elif ln conf$$.file conf$$ 2>/dev/null; then
5561
    as_ln_s=ln
5562
  else
5563
    as_ln_s='cp -p'
5564
  fi
5565
else
5566
  as_ln_s='cp -p'
5567
fi
5568
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5569
rmdir conf$$.dir 2>/dev/null
5570
 
5571
if mkdir -p . 2>/dev/null; then
5572
  as_mkdir_p=:
5573
else
5574
  test -d ./-p && rmdir ./-p
5575
  as_mkdir_p=false
5576
fi
5577
 
5578
if test -x / >/dev/null 2>&1; then
5579
  as_test_x='test -x'
5580
else
5581
  if ls -dL / >/dev/null 2>&1; then
5582
    as_ls_L_option=L
5583
  else
5584
    as_ls_L_option=
5585
  fi
5586
  as_test_x='
5587
    eval sh -c '\''
5588
      if test -d "$1"; then
5589
	test -d "$1/.";
5590
      else
5591
	case $1 in
5592
	-*)set "./$1";;
5593
	esac;
5594
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
5595
	???[sx]*):;;*)false;;esac;fi
5596
    '\'' sh
5597
  '
5598
fi
5599
as_executable_p=$as_test_x
5600
 
5601
# Sed expression to map a string onto a valid CPP name.
5602
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5603
 
5604
# Sed expression to map a string onto a valid variable name.
5605
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5606
 
5607
 
5608
exec 6>&1
5609
 
5610
# Save the log message, to keep $[0] and so on meaningful, and to
5611
# report actual input values of CONFIG_FILES etc. instead of their
5612
# values after options handling.
5613
ac_log="
5614
This file was extended by $as_me, which was
5615
generated by GNU Autoconf 2.63.  Invocation command line was
5616
 
5617
  CONFIG_FILES    = $CONFIG_FILES
5618
  CONFIG_HEADERS  = $CONFIG_HEADERS
5619
  CONFIG_LINKS    = $CONFIG_LINKS
5620
  CONFIG_COMMANDS = $CONFIG_COMMANDS
5621
  $ $0 $@
5622
 
5623
on `(hostname || uname -n) 2>/dev/null | sed 1q`
5624
"
5625
 
5626
_ACEOF
5627
 
5628
case $ac_config_files in *"
5629
"*) set x $ac_config_files; shift; ac_config_files=$*;;
5630
esac
5631
 
5632
 
5633
 
5634
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5635
# Files that config.status was made for.
5636
config_files="$ac_config_files"
5637
 
5638
_ACEOF
5639
 
5640
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5641
ac_cs_usage="\
5642
\`$as_me' instantiates files from templates according to the
5643
current configuration.
5644
 
5645
Usage: $0 [OPTION]... [FILE]...
5646
 
5647
  -h, --help       print this help, then exit
5648
  -V, --version    print version number and configuration settings, then exit
5649
  -q, --quiet, --silent
5650
                   do not print progress messages
5651
  -d, --debug      don't remove temporary files
5652
      --recheck    update $as_me by reconfiguring in the same conditions
5653
      --file=FILE[:TEMPLATE]
5654
                   instantiate the configuration file FILE
5655
 
5656
Configuration files:
5657
$config_files
5658
 
5659
Report bugs to <bug-autoconf@gnu.org>."
5660
 
5661
_ACEOF
5662
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5663
ac_cs_version="\\
5664
config.status
5665
configured by $0, generated by GNU Autoconf 2.63,
5666
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
5667
 
5668
Copyright (C) 2008 Free Software Foundation, Inc.
5669
This config.status script is free software; the Free Software Foundation
5670
gives unlimited permission to copy, distribute and modify it."
5671
 
5672
ac_pwd='$ac_pwd'
5673
srcdir='$srcdir'
5674
INSTALL='$INSTALL'
5675
test -n "\$AWK" || AWK=awk
5676
_ACEOF
5677
 
5678
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5679
# The default lists apply if the user does not specify any file.
5680
ac_need_defaults=:
5681
while test $# != 0
5682
do
5683
  case $1 in
5684
  --*=*)
5685
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
5686
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5687
    ac_shift=:
5688
    ;;
5689
  *)
5690
    ac_option=$1
5691
    ac_optarg=$2
5692
    ac_shift=shift
5693
    ;;
5694
  esac
5695
 
5696
  case $ac_option in
5697
  # Handling of the options.
5698
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5699
    ac_cs_recheck=: ;;
5700
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5701
    $as_echo "$ac_cs_version"; exit ;;
5702
  --debug | --debu | --deb | --de | --d | -d )
5703
    debug=: ;;
5704
  --file | --fil | --fi | --f )
5705
    $ac_shift
5706
    case $ac_optarg in
5707
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5708
    esac
5709
    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
5710
    ac_need_defaults=false;;
5711
  --he | --h |  --help | --hel | -h )
5712
    $as_echo "$ac_cs_usage"; exit ;;
5713
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5714
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
5715
    ac_cs_silent=: ;;
5716
 
5717
  # This is an error.
5718
  -*) { $as_echo "$as_me: error: unrecognized option: $1
5719
Try \`$0 --help' for more information." >&2
5720
   { (exit 1); exit 1; }; } ;;
5721
 
5722
  *) ac_config_targets="$ac_config_targets $1"
5723
     ac_need_defaults=false ;;
5724
 
5725
  esac
5726
  shift
5727
done
5728
 
5729
ac_configure_extra_args=
5730
 
5731
if $ac_cs_silent; then
5732
  exec 6>/dev/null
5733
  ac_configure_extra_args="$ac_configure_extra_args --silent"
5734
fi
5735
 
5736
_ACEOF
5737
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5738
if \$ac_cs_recheck; then
5739
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5740
  shift
5741
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5742
  CONFIG_SHELL='$SHELL'
5743
  export CONFIG_SHELL
5744
  exec "\$@"
5745
fi
5746
 
5747
_ACEOF
5748
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5749
exec 5>>config.log
5750
{
5751
  echo
5752
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5753
## Running $as_me. ##
5754
_ASBOX
5755
  $as_echo "$ac_log"
5756
} >&5
5757
 
5758
_ACEOF
5759
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5760
_ACEOF
5761
 
5762
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5763
 
5764
# Handling of arguments.
5765
for ac_config_target in $ac_config_targets
5766
do
5767
  case $ac_config_target in
5768
    "ld-elf2flt.sh") CONFIG_FILES="$CONFIG_FILES ld-elf2flt.sh:ld-elf2flt.in" ;;
5769
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5770
    "elf2flt.ld") CONFIG_FILES="$CONFIG_FILES elf2flt.ld" ;;
5771
 
5772
  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5773
$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5774
   { (exit 1); exit 1; }; };;
5775
  esac
5776
done
5777
 
5778
 
5779
# If the user did not use the arguments to specify the items to instantiate,
5780
# then the envvar interface is used.  Set only those that are not.
5781
# We use the long form for the default assignment because of an extremely
5782
# bizarre bug on SunOS 4.1.3.
5783
if $ac_need_defaults; then
5784
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5785
fi
5786
 
5787
# Have a temporary directory for convenience.  Make it in the build tree
5788
# simply because there is no reason against having it here, and in addition,
5789
# creating and moving files from /tmp can sometimes cause problems.
5790
# Hook for its removal unless debugging.
5791
# Note that there is a small window in which the directory will not be cleaned:
5792
# after its creation but before its name has been assigned to `$tmp'.
5793
$debug ||
5794
{
5795
  tmp=
5796
  trap 'exit_status=$?
5797
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
5798
' 0
5799
  trap '{ (exit 1); exit 1; }' 1 2 13 15
5800
}
5801
# Create a (secure) tmp directory for tmp files.
5802
 
5803
{
5804
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5805
  test -n "$tmp" && test -d "$tmp"
5806
}  ||
5807
{
5808
  tmp=./conf$$-$RANDOM
5809
  (umask 077 && mkdir "$tmp")
5810
} ||
5811
{
5812
   $as_echo "$as_me: cannot create a temporary directory in ." >&2
5813
   { (exit 1); exit 1; }
5814
}
5815
 
5816
# Set up the scripts for CONFIG_FILES section.
5817
# No need to generate them if there are no CONFIG_FILES.
5818
# This happens for instance with `./config.status config.h'.
5819
if test -n "$CONFIG_FILES"; then
5820
 
5821
 
5822
ac_cr='
'
5823
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5824
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5825
  ac_cs_awk_cr='\\r'
5826
else
5827
  ac_cs_awk_cr=$ac_cr
5828
fi
5829
5830
 
5831
_ACEOF
5832
5833
 
5834
 
5835
  echo "cat >conf$$subs.awk <<_ACEOF" &&
5836
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5837
  echo "_ACEOF"
5838
} >conf$$subs.sh ||
5839
  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
5840
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
5841
   { (exit 1); exit 1; }; }
5842
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
5843
ac_delim='%!_!# '
5844
for ac_last_try in false false false false false :; do
5845
  . ./conf$$subs.sh ||
5846
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
5847
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
5848
   { (exit 1); exit 1; }; }
5849
5850
 
5851
  if test $ac_delim_n = $ac_delim_num; then
5852
    break
5853
  elif $ac_last_try; then
5854
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
5855
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
5856
   { (exit 1); exit 1; }; }
5857
  else
5858
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5859
  fi
5860
done
5861
rm -f conf$$subs.sh
5862
5863
 
5864
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
5865
_ACEOF
5866
sed -n '
5867
h
5868
s/^/S["/; s/!.*/"]=/
5869
p
5870
g
5871
s/^[^!]*!//
5872
:repl
5873
t repl
5874
s/'"$ac_delim"'$//
5875
t delim
5876
:nl
5877
h
5878
s/\(.\{148\}\).*/\1/
5879
t more1
5880
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5881
p
5882
n
5883
b repl
5884
:more1
5885
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5886
p
5887
g
5888
s/.\{148\}//
5889
t nl
5890
:delim
5891
h
5892
s/\(.\{148\}\).*/\1/
5893
t more2
5894
s/["\\]/\\&/g; s/^/"/; s/$/"/
5895
p
5896
b
5897
:more2
5898
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5899
p
5900
g
5901
s/.\{148\}//
5902
t delim
5903
' <conf$$subs.awk | sed '
5904
/^[^""]/{
5905
  N
5906
  s/\n//
5907
}
5908
' >>$CONFIG_STATUS || ac_write_fail=1
5909
rm -f conf$$subs.awk
5910
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5911
_ACAWK
5912
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
5913
  for (key in S) S_is_set[key] = 1
5914
  FS = ""
5915
5916
 
5917
{
5918
  line = $ 0
5919
  nfields = split(line, field, "@")
5920
  substed = 0
5921
  len = length(field[1])
5922
  for (i = 2; i < nfields; i++) {
5923
    key = field[i]
5924
    keylen = length(key)
5925
    if (S_is_set[key]) {
5926
      value = S[key]
5927
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5928
      len += length(value) + length(field[++i])
5929
      substed = 1
5930
    } else
5931
      len += 1 + keylen
5932
  }
5933
5934
 
5935
}
5936
5937
 
5938
_ACEOF
5939
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5940
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5941
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5942
else
5943
  cat
5944
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
5945
  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
5946
$as_echo "$as_me: error: could not setup config files machinery" >&2;}
5947
   { (exit 1); exit 1; }; }
5948
_ACEOF
5949
5950
 
5951
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5952
# trailing colons and then remove the whole line if VPATH becomes empty
5953
# (actually we leave an empty line to preserve line numbers).
5954
if test "x$srcdir" = x.; then
5955
  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
5956
s/:*\$(srcdir):*/:/
5957
s/:*\${srcdir}:*/:/
5958
s/:*@srcdir@:*/:/
5959
s/^\([^=]*=[	 ]*\):*/\1/
5960
s/:*$//
5961
s/^[^=]*=[	 ]*$//
5962
}'
5963
fi
5964
5965
 
5966
fi # test -n "$CONFIG_FILES"
5967
5968
 
5969
 
5970
shift
5971
for ac_tag
5972
do
5973
  case $ac_tag in
5974
  :[FHLC]) ac_mode=$ac_tag; continue;;
5975
  esac
5976
  case $ac_mode$ac_tag in
5977
  :[FHL]*:*);;
5978
  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
5979
$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
5980
   { (exit 1); exit 1; }; };;
5981
  :[FH]-) ac_tag=-:-;;
5982
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5983
  esac
5984
  ac_save_IFS=$IFS
5985
  IFS=:
5986
  set x $ac_tag
5987
  IFS=$ac_save_IFS
5988
  shift
5989
  ac_file=$1
5990
  shift
5991
5992
 
5993
  :L) ac_source=$1;;
5994
  :[FH])
5995
    ac_file_inputs=
5996
    for ac_f
5997
    do
5998
      case $ac_f in
5999
      -) ac_f="$tmp/stdin";;
6000
      *) # Look for the file first in the build tree, then in the source tree
6001
	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
6002
	 # because $ac_f cannot contain `:'.
6003
	 test -f "$ac_f" ||
6004
	   case $ac_f in
6005
	   [\\/$]*) false;;
6006
	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6007
	   esac ||
6008
	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
6009
$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
6010
   { (exit 1); exit 1; }; };;
6011
      esac
6012
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6013
      ac_file_inputs="$ac_file_inputs '$ac_f'"
6014
    done
6015
6016
 
6017
    # use $as_me), people would be surprised to read:
6018
    #    /* config.h.  Generated by config.status.  */
6019
    configure_input='Generated from '`
6020
	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6021
	`' by configure.'
6022
    if test x"$ac_file" != x-; then
6023
      configure_input="$ac_file.  $configure_input"
6024
      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
6025
$as_echo "$as_me: creating $ac_file" >&6;}
6026
    fi
6027
    # Neutralize special characters interpreted by sed in replacement strings.
6028
    case $configure_input in #(
6029
    *\&* | *\|* | *\\* )
6030
       ac_sed_conf_input=`$as_echo "$configure_input" |
6031
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
6032
    *) ac_sed_conf_input=$configure_input;;
6033
    esac
6034
6035
 
6036
    *:-:* | *:-) cat >"$tmp/stdin" \
6037
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
6038
$as_echo "$as_me: error: could not create $ac_file" >&2;}
6039
   { (exit 1); exit 1; }; } ;;
6040
    esac
6041
    ;;
6042
  esac
6043
6044
 
6045
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6046
	 X"$ac_file" : 'X\(//\)[^/]' \| \
6047
	 X"$ac_file" : 'X\(//\)$' \| \
6048
	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6049
$as_echo X"$ac_file" |
6050
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6051
	    s//\1/
6052
	    q
6053
	  }
6054
	  /^X\(\/\/\)[^/].*/{
6055
	    s//\1/
6056
	    q
6057
	  }
6058
	  /^X\(\/\/\)$/{
6059
	    s//\1/
6060
	    q
6061
	  }
6062
	  /^X\(\/\).*/{
6063
	    s//\1/
6064
	    q
6065
	  }
6066
	  s/.*/./; q'`
6067
  { as_dir="$ac_dir"
6068
  case $as_dir in #(
6069
  -*) as_dir=./$as_dir;;
6070
  esac
6071
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
6072
    as_dirs=
6073
    while :; do
6074
      case $as_dir in #(
6075
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6076
      *) as_qdir=$as_dir;;
6077
      esac
6078
      as_dirs="'$as_qdir' $as_dirs"
6079
      as_dir=`$as_dirname -- "$as_dir" ||
6080
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6081
	 X"$as_dir" : 'X\(//\)[^/]' \| \
6082
	 X"$as_dir" : 'X\(//\)$' \| \
6083
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6084
$as_echo X"$as_dir" |
6085
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6086
	    s//\1/
6087
	    q
6088
	  }
6089
	  /^X\(\/\/\)[^/].*/{
6090
	    s//\1/
6091
	    q
6092
	  }
6093
	  /^X\(\/\/\)$/{
6094
	    s//\1/
6095
	    q
6096
	  }
6097
	  /^X\(\/\).*/{
6098
	    s//\1/
6099
	    q
6100
	  }
6101
	  s/.*/./; q'`
6102
      test -d "$as_dir" && break
6103
    done
6104
    test -z "$as_dirs" || eval "mkdir $as_dirs"
6105
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
6106
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
6107
   { (exit 1); exit 1; }; }; }
6108
  ac_builddir=.
6109
6110
 
6111
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6112
*)
6113
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6114
  # A ".." for each directory in $ac_dir_suffix.
6115
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6116
  case $ac_top_builddir_sub in
6117
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6118
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6119
  esac ;;
6120
esac
6121
ac_abs_top_builddir=$ac_pwd
6122
ac_abs_builddir=$ac_pwd$ac_dir_suffix
6123
# for backward compatibility:
6124
ac_top_builddir=$ac_top_build_prefix
6125
6126
 
6127
  .)  # We are building in place.
6128
    ac_srcdir=.
6129
    ac_top_srcdir=$ac_top_builddir_sub
6130
    ac_abs_top_srcdir=$ac_pwd ;;
6131
  [\\/]* | ?:[\\/]* )  # Absolute name.
6132
    ac_srcdir=$srcdir$ac_dir_suffix;
6133
    ac_top_srcdir=$srcdir
6134
    ac_abs_top_srcdir=$srcdir ;;
6135
  *) # Relative name.
6136
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6137
    ac_top_srcdir=$ac_top_build_prefix$srcdir
6138
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6139
esac
6140
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6141
6142
 
6143
 
6144
  :F)
6145
  #
6146
  # CONFIG_FILE
6147
  #
6148
6149
 
6150
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6151
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6152
  esac
6153
_ACEOF
6154
6155
 
6156
# If the template does not know about datarootdir, expand it.
6157
# FIXME: This hack should be removed a few years after 2.60.
6158
ac_datarootdir_hack=; ac_datarootdir_seen=
6159
6160
 
6161
/datarootdir/ {
6162
  p
6163
  q
6164
}
6165
/@datadir@/p
6166
/@docdir@/p
6167
/@infodir@/p
6168
/@localedir@/p
6169
/@mandir@/p
6170
'
6171
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6172
*datarootdir*) ac_datarootdir_seen=yes;;
6173
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6174
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6175
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6176
_ACEOF
6177
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6178
  ac_datarootdir_hack='
6179
  s&@datadir@&$datadir&g
6180
  s&@docdir@&$docdir&g
6181
  s&@infodir@&$infodir&g
6182
  s&@localedir@&$localedir&g
6183
  s&@mandir@&$mandir&g
6184
    s&\\\${datarootdir}&$datarootdir&g' ;;
6185
esac
6186
_ACEOF
6187
6188
 
6189
# Shell code in configure.ac might set extrasub.
6190
# FIXME: do we really want to maintain this feature?
6191
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6192
ac_sed_extra="$ac_vpsub
6193
$extrasub
6194
_ACEOF
6195
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6196
:t
6197
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6198
s|@configure_input@|$ac_sed_conf_input|;t t
6199
s&@top_builddir@&$ac_top_builddir_sub&;t t
6200
s&@top_build_prefix@&$ac_top_build_prefix&;t t
6201
s&@srcdir@&$ac_srcdir&;t t
6202
s&@abs_srcdir@&$ac_abs_srcdir&;t t
6203
s&@top_srcdir@&$ac_top_srcdir&;t t
6204
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6205
s&@builddir@&$ac_builddir&;t t
6206
s&@abs_builddir@&$ac_abs_builddir&;t t
6207
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6208
s&@INSTALL@&$ac_INSTALL&;t t
6209
$ac_datarootdir_hack
6210
"
6211
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
6212
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
6213
$as_echo "$as_me: error: could not create $ac_file" >&2;}
6214
   { (exit 1); exit 1; }; }
6215
6216
 
6217
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6218
  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6219
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6220
which seems to be undefined.  Please make sure it is defined." >&5
6221
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6222
which seems to be undefined.  Please make sure it is defined." >&2;}
6223
6224
 
6225
  case $ac_file in
6226
  -) cat "$tmp/out" && rm -f "$tmp/out";;
6227
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
6228
  esac \
6229
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
6230
$as_echo "$as_me: error: could not create $ac_file" >&2;}
6231
   { (exit 1); exit 1; }; }
6232
 ;;
6233
6234
 
6235
 
6236
 
6237
6238
 
6239
6240
 
6241
 
6242
_ACEOF
6243
chmod +x $CONFIG_STATUS
6244
ac_clean_files=$ac_clean_files_save
6245
6246
 
6247
  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
6248
$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
6249
   { (exit 1); exit 1; }; }
6250
6251
 
6252
 
6253
# config.status does its own redirection, appending to config.log.
6254
# Unfortunately, on DOS this fails, as config.log is still kept open
6255
# by configure, so config.status won't be able to write to it; its
6256
# output is simply discarded.  So we exec the FD to /dev/null,
6257
# effectively closing config.log, so it can be properly (re)opened and
6258
# appended to by config.status.  When coming back to configure, we
6259
# need to make the FD available again.
6260
if test "$no_create" != yes; then
6261
  ac_cs_success=:
6262
  ac_config_status_args=
6263
  test "$silent" = yes &&
6264
    ac_config_status_args="$ac_config_status_args --quiet"
6265
  exec 5>/dev/null
6266
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6267
  exec 5>>config.log
6268
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6269
  # would make configure fail if this is the last instruction.
6270
  $ac_cs_success || { (exit 1); exit 1; }
6271
fi
6272
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6273
  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6274
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6275
fi
6276
6277
 
6278