426a2cd3a09b61fcacb47afdea52766dee163cb1
[deliverable/binutils-gdb.git] / opcodes / configure
1 #! /bin/sh
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304 # Do all the work for Automake. This macro actually does too much --
305 # some checks are only needed if your package does certain things.
306 # But this isn't really a big deal.
307
308 # serial 1
309
310
311
312
313
314 # serial 1
315
316
317
318 #
319 # Check to make sure that the build environment is sane.
320 #
321
322
323
324
325
326
327 # serial 25 AM_PROG_LIBTOOL
328
329
330 # AM_ENABLE_SHARED - implement the --enable-shared flag
331 # Usage: AM_ENABLE_SHARED[(DEFAULT)]
332 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
333 # `yes'.
334
335
336 # AM_DISABLE_SHARED - set the default shared flag to --disable-shared
337
338
339 # AM_DISABLE_STATIC - set the default static flag to --disable-static
340
341
342 # AM_ENABLE_STATIC - implement the --enable-static flag
343 # Usage: AM_ENABLE_STATIC[(DEFAULT)]
344 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
345 # `yes'.
346
347
348
349 # AM_PROG_LD - find the path to the GNU or non-GNU linker
350
351
352
353
354 # AM_PROG_NM - find the path to a BSD-compatible name lister
355
356
357 # AM_SYS_LIBTOOL_CYGWIN32 - find tools needed on cygwin32
358
359
360 # Like AC_CONFIG_HEADER, but automatically create stamp file.
361
362
363
364 # Add --enable-maintainer-mode option to configure.
365 # From Jim Meyering
366
367 # serial 1
368
369
370
371 # Check to see if we're running under Cygwin32, without using
372 # AC_CANONICAL_*. If so, set output variable CYGWIN32 to "yes".
373 # Otherwise set it to "no".
374
375
376
377 # Check to see if we're running under Win32, without using
378 # AC_CANONICAL_*. If so, set output variable EXEEXT to ".exe".
379 # Otherwise set it to "".
380
381
382
383 # Check to see if we're running under Mingw, without using
384 # AC_CANONICAL_*. If so, set output variable MINGW32 to "yes".
385 # Otherwise set it to "no".
386
387
388
389 # This file is derived from `gettext.m4'. The difference is that the
390 # included macros assume Cygnus-style source and build trees.
391
392 # Macro to add for using GNU gettext.
393 # Ulrich Drepper <drepper@cygnus.com>, 1995.
394 #
395 # This file file be copied and used freely without restrictions. It can
396 # be used in projects which are not available under the GNU Public License
397 # but which still want to provide support for the GNU gettext functionality.
398 # Please note that the actual code is *not* freely available.
399
400 # serial 3
401
402
403
404
405
406 # Search path for a program which passes the given test.
407 # Ulrich Drepper <drepper@cygnus.com>, 1996.
408 #
409 # This file file be copied and used freely without restrictions. It can
410 # be used in projects which are not available under the GNU Public License
411 # but which still want to provide support for the GNU gettext functionality.
412 # Please note that the actual code is *not* freely available.
413
414 # serial 1
415
416
417
418 # Check whether LC_MESSAGES is available in <locale.h>.
419 # Ulrich Drepper <drepper@cygnus.com>, 1995.
420 #
421 # This file file be copied and used freely without restrictions. It can
422 # be used in projects which are not available under the GNU Public License
423 # but which still want to provide support for the GNU gettext functionality.
424 # Please note that the actual code is *not* freely available.
425
426 # serial 1
427
428
429
430 # Define a conditional.
431
432
433
434 # Guess values for system-dependent variables and create Makefiles.
435 # Generated automatically using autoconf version 2.12.2
436 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
437 #
438 # This configure script is free software; the Free Software Foundation
439 # gives unlimited permission to copy, distribute and modify it.
440
441 # Defaults:
442 ac_help=
443 ac_default_prefix=/usr/local
444 # Any additions from configure.in:
445 ac_help="$ac_help
446 --enable-shared[=PKGS] build shared libraries [default=no]"
447 ac_help="$ac_help
448 --enable-static[=PKGS] build static libraries [default=yes]"
449 ac_help="$ac_help
450 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
451 ac_help="$ac_help
452 --enable-targets alternative target configurations"
453 ac_help="$ac_help
454 --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
455 ac_help="$ac_help
456 --enable-maintainer-mode enable make rules and dependencies not useful
457 (and sometimes confusing) to the casual installer"
458 ac_help="$ac_help
459 --disable-nls do not use Native Language Support"
460 ac_help="$ac_help
461 --with-included-gettext use the GNU gettext library included here"
462 ac_help="$ac_help
463 --enable-cgen-maint[=dir] build cgen generated files"
464
465 # Initialize some variables set by options.
466 # The variables have the same names as the options, with
467 # dashes changed to underlines.
468 build=NONE
469 cache_file=./config.cache
470 exec_prefix=NONE
471 host=NONE
472 no_create=
473 nonopt=NONE
474 no_recursion=
475 prefix=NONE
476 program_prefix=NONE
477 program_suffix=NONE
478 program_transform_name=s,x,x,
479 silent=
480 site=
481 srcdir=
482 target=NONE
483 verbose=
484 x_includes=NONE
485 x_libraries=NONE
486 bindir='${exec_prefix}/bin'
487 sbindir='${exec_prefix}/sbin'
488 libexecdir='${exec_prefix}/libexec'
489 datadir='${prefix}/share'
490 sysconfdir='${prefix}/etc'
491 sharedstatedir='${prefix}/com'
492 localstatedir='${prefix}/var'
493 libdir='${exec_prefix}/lib'
494 includedir='${prefix}/include'
495 oldincludedir='/usr/include'
496 infodir='${prefix}/info'
497 mandir='${prefix}/man'
498
499 # Initialize some other variables.
500 subdirs=
501 MFLAGS= MAKEFLAGS=
502 SHELL=${CONFIG_SHELL-/bin/sh}
503 # Maximum number of lines to put in a shell here document.
504 ac_max_here_lines=12
505
506 ac_prev=
507 for ac_option
508 do
509
510 # If the previous option needs an argument, assign it.
511 if test -n "$ac_prev"; then
512 eval "$ac_prev=\$ac_option"
513 ac_prev=
514 continue
515 fi
516
517 case "$ac_option" in
518 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
519 *) ac_optarg= ;;
520 esac
521
522 # Accept the important Cygnus configure options, so we can diagnose typos.
523
524 case "$ac_option" in
525
526 -bindir | --bindir | --bindi | --bind | --bin | --bi)
527 ac_prev=bindir ;;
528 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
529 bindir="$ac_optarg" ;;
530
531 -build | --build | --buil | --bui | --bu)
532 ac_prev=build ;;
533 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
534 build="$ac_optarg" ;;
535
536 -cache-file | --cache-file | --cache-fil | --cache-fi \
537 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
538 ac_prev=cache_file ;;
539 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
540 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
541 cache_file="$ac_optarg" ;;
542
543 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
544 ac_prev=datadir ;;
545 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
546 | --da=*)
547 datadir="$ac_optarg" ;;
548
549 -disable-* | --disable-*)
550 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
551 # Reject names that are not valid shell variable names.
552 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
553 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
554 fi
555 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
556 eval "enable_${ac_feature}=no" ;;
557
558 -enable-* | --enable-*)
559 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
560 # Reject names that are not valid shell variable names.
561 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
562 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
563 fi
564 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
565 case "$ac_option" in
566 *=*) ;;
567 *) ac_optarg=yes ;;
568 esac
569 eval "enable_${ac_feature}='$ac_optarg'" ;;
570
571 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
573 | --exec | --exe | --ex)
574 ac_prev=exec_prefix ;;
575 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
576 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
577 | --exec=* | --exe=* | --ex=*)
578 exec_prefix="$ac_optarg" ;;
579
580 -gas | --gas | --ga | --g)
581 # Obsolete; use --with-gas.
582 with_gas=yes ;;
583
584 -help | --help | --hel | --he)
585 # Omit some internal or obsolete options to make the list less imposing.
586 # This message is too long to be a string in the A/UX 3.1 sh.
587 cat << EOF
588 Usage: configure [options] [host]
589 Options: [defaults in brackets after descriptions]
590 Configuration:
591 --cache-file=FILE cache test results in FILE
592 --help print this message
593 --no-create do not create output files
594 --quiet, --silent do not print \`checking...' messages
595 --version print the version of autoconf that created configure
596 Directory and file names:
597 --prefix=PREFIX install architecture-independent files in PREFIX
598 [$ac_default_prefix]
599 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
600 [same as prefix]
601 --bindir=DIR user executables in DIR [EPREFIX/bin]
602 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
603 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
604 --datadir=DIR read-only architecture-independent data in DIR
605 [PREFIX/share]
606 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
607 --sharedstatedir=DIR modifiable architecture-independent data in DIR
608 [PREFIX/com]
609 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
610 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
611 --includedir=DIR C header files in DIR [PREFIX/include]
612 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
613 --infodir=DIR info documentation in DIR [PREFIX/info]
614 --mandir=DIR man documentation in DIR [PREFIX/man]
615 --srcdir=DIR find the sources in DIR [configure dir or ..]
616 --program-prefix=PREFIX prepend PREFIX to installed program names
617 --program-suffix=SUFFIX append SUFFIX to installed program names
618 --program-transform-name=PROGRAM
619 run sed PROGRAM on installed program names
620 EOF
621 cat << EOF
622 Host type:
623 --build=BUILD configure for building on BUILD [BUILD=HOST]
624 --host=HOST configure for HOST [guessed]
625 --target=TARGET configure for TARGET [TARGET=HOST]
626 Features and packages:
627 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
628 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
629 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
630 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
631 --x-includes=DIR X include files are in DIR
632 --x-libraries=DIR X library files are in DIR
633 EOF
634 if test -n "$ac_help"; then
635 echo "--enable and --with options recognized:$ac_help"
636 fi
637 exit 0 ;;
638
639 -host | --host | --hos | --ho)
640 ac_prev=host ;;
641 -host=* | --host=* | --hos=* | --ho=*)
642 host="$ac_optarg" ;;
643
644 -includedir | --includedir | --includedi | --included | --include \
645 | --includ | --inclu | --incl | --inc)
646 ac_prev=includedir ;;
647 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
648 | --includ=* | --inclu=* | --incl=* | --inc=*)
649 includedir="$ac_optarg" ;;
650
651 -infodir | --infodir | --infodi | --infod | --info | --inf)
652 ac_prev=infodir ;;
653 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
654 infodir="$ac_optarg" ;;
655
656 -libdir | --libdir | --libdi | --libd)
657 ac_prev=libdir ;;
658 -libdir=* | --libdir=* | --libdi=* | --libd=*)
659 libdir="$ac_optarg" ;;
660
661 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
662 | --libexe | --libex | --libe)
663 ac_prev=libexecdir ;;
664 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
665 | --libexe=* | --libex=* | --libe=*)
666 libexecdir="$ac_optarg" ;;
667
668 -localstatedir | --localstatedir | --localstatedi | --localstated \
669 | --localstate | --localstat | --localsta | --localst \
670 | --locals | --local | --loca | --loc | --lo)
671 ac_prev=localstatedir ;;
672 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
673 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
674 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
675 localstatedir="$ac_optarg" ;;
676
677 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
678 ac_prev=mandir ;;
679 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
680 mandir="$ac_optarg" ;;
681
682 -nfp | --nfp | --nf)
683 # Obsolete; use --without-fp.
684 with_fp=no ;;
685
686 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
687 | --no-cr | --no-c)
688 no_create=yes ;;
689
690 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
691 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
692 no_recursion=yes ;;
693
694 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
695 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
696 | --oldin | --oldi | --old | --ol | --o)
697 ac_prev=oldincludedir ;;
698 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
699 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
700 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
701 oldincludedir="$ac_optarg" ;;
702
703 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
704 ac_prev=prefix ;;
705 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
706 prefix="$ac_optarg" ;;
707
708 -program-prefix | --program-prefix | --program-prefi | --program-pref \
709 | --program-pre | --program-pr | --program-p)
710 ac_prev=program_prefix ;;
711 -program-prefix=* | --program-prefix=* | --program-prefi=* \
712 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
713 program_prefix="$ac_optarg" ;;
714
715 -program-suffix | --program-suffix | --program-suffi | --program-suff \
716 | --program-suf | --program-su | --program-s)
717 ac_prev=program_suffix ;;
718 -program-suffix=* | --program-suffix=* | --program-suffi=* \
719 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
720 program_suffix="$ac_optarg" ;;
721
722 -program-transform-name | --program-transform-name \
723 | --program-transform-nam | --program-transform-na \
724 | --program-transform-n | --program-transform- \
725 | --program-transform | --program-transfor \
726 | --program-transfo | --program-transf \
727 | --program-trans | --program-tran \
728 | --progr-tra | --program-tr | --program-t)
729 ac_prev=program_transform_name ;;
730 -program-transform-name=* | --program-transform-name=* \
731 | --program-transform-nam=* | --program-transform-na=* \
732 | --program-transform-n=* | --program-transform-=* \
733 | --program-transform=* | --program-transfor=* \
734 | --program-transfo=* | --program-transf=* \
735 | --program-trans=* | --program-tran=* \
736 | --progr-tra=* | --program-tr=* | --program-t=*)
737 program_transform_name="$ac_optarg" ;;
738
739 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
740 | -silent | --silent | --silen | --sile | --sil)
741 silent=yes ;;
742
743 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
744 ac_prev=sbindir ;;
745 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
746 | --sbi=* | --sb=*)
747 sbindir="$ac_optarg" ;;
748
749 -sharedstatedir | --sharedstatedir | --sharedstatedi \
750 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
751 | --sharedst | --shareds | --shared | --share | --shar \
752 | --sha | --sh)
753 ac_prev=sharedstatedir ;;
754 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
755 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
756 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
757 | --sha=* | --sh=*)
758 sharedstatedir="$ac_optarg" ;;
759
760 -site | --site | --sit)
761 ac_prev=site ;;
762 -site=* | --site=* | --sit=*)
763 site="$ac_optarg" ;;
764
765 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
766 ac_prev=srcdir ;;
767 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
768 srcdir="$ac_optarg" ;;
769
770 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
771 | --syscon | --sysco | --sysc | --sys | --sy)
772 ac_prev=sysconfdir ;;
773 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
774 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
775 sysconfdir="$ac_optarg" ;;
776
777 -target | --target | --targe | --targ | --tar | --ta | --t)
778 ac_prev=target ;;
779 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
780 target="$ac_optarg" ;;
781
782 -v | -verbose | --verbose | --verbos | --verbo | --verb)
783 verbose=yes ;;
784
785 -version | --version | --versio | --versi | --vers)
786 echo "configure generated by autoconf version 2.12.2"
787 exit 0 ;;
788
789 -with-* | --with-*)
790 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
791 # Reject names that are not valid shell variable names.
792 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
793 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
794 fi
795 ac_package=`echo $ac_package| sed 's/-/_/g'`
796 case "$ac_option" in
797 *=*) ;;
798 *) ac_optarg=yes ;;
799 esac
800 eval "with_${ac_package}='$ac_optarg'" ;;
801
802 -without-* | --without-*)
803 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
804 # Reject names that are not valid shell variable names.
805 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
806 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
807 fi
808 ac_package=`echo $ac_package| sed 's/-/_/g'`
809 eval "with_${ac_package}=no" ;;
810
811 --x)
812 # Obsolete; use --with-x.
813 with_x=yes ;;
814
815 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
816 | --x-incl | --x-inc | --x-in | --x-i)
817 ac_prev=x_includes ;;
818 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
819 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
820 x_includes="$ac_optarg" ;;
821
822 -x-libraries | --x-libraries | --x-librarie | --x-librari \
823 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
824 ac_prev=x_libraries ;;
825 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
826 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
827 x_libraries="$ac_optarg" ;;
828
829 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
830 ;;
831
832 *)
833 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
834 echo "configure: warning: $ac_option: invalid host type" 1>&2
835 fi
836 if test "x$nonopt" != xNONE; then
837 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
838 fi
839 nonopt="$ac_option"
840 ;;
841
842 esac
843 done
844
845 if test -n "$ac_prev"; then
846 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
847 fi
848
849 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
850
851 # File descriptor usage:
852 # 0 standard input
853 # 1 file creation
854 # 2 errors and warnings
855 # 3 some systems may open it to /dev/tty
856 # 4 used on the Kubota Titan
857 # 6 checking for... messages and results
858 # 5 compiler messages saved in config.log
859 if test "$silent" = yes; then
860 exec 6>/dev/null
861 else
862 exec 6>&1
863 fi
864 exec 5>./config.log
865
866 echo "\
867 This file contains any messages produced by compilers while
868 running configure, to aid debugging if configure makes a mistake.
869 " 1>&5
870
871 # Strip out --no-create and --no-recursion so they do not pile up.
872 # Also quote any args containing shell metacharacters.
873 ac_configure_args=
874 for ac_arg
875 do
876 case "$ac_arg" in
877 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
878 | --no-cr | --no-c) ;;
879 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
880 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
881 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
882 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
883 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
884 esac
885 done
886
887 # NLS nuisances.
888 # Only set these to C if already set. These must not be set unconditionally
889 # because not all systems understand e.g. LANG=C (notably SCO).
890 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
891 # Non-C LC_CTYPE values break the ctype check.
892 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
893 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
894 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
895 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
896
897 # confdefs.h avoids OS command line length limits that DEFS can exceed.
898 rm -rf conftest* confdefs.h
899 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
900 echo > confdefs.h
901
902 # A filename unique to this package, relative to the directory that
903 # configure is in, which we can look for to find out if srcdir is correct.
904 ac_unique_file=z8k-dis.c
905
906 # Find the source files, if location was not specified.
907 if test -z "$srcdir"; then
908 ac_srcdir_defaulted=yes
909 # Try the directory containing this script, then its parent.
910 ac_prog=$0
911 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
912 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
913 srcdir=$ac_confdir
914 if test ! -r $srcdir/$ac_unique_file; then
915 srcdir=..
916 fi
917 else
918 ac_srcdir_defaulted=no
919 fi
920 if test ! -r $srcdir/$ac_unique_file; then
921 if test "$ac_srcdir_defaulted" = yes; then
922 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
923 else
924 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
925 fi
926 fi
927 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
928
929 # Prefer explicitly selected file to automatically selected ones.
930 if test -z "$CONFIG_SITE"; then
931 if test "x$prefix" != xNONE; then
932 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
933 else
934 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
935 fi
936 fi
937 for ac_site_file in $CONFIG_SITE; do
938 if test -r "$ac_site_file"; then
939 echo "loading site script $ac_site_file"
940 . "$ac_site_file"
941 fi
942 done
943
944 if test -r "$cache_file"; then
945 echo "loading cache $cache_file"
946 . $cache_file
947 else
948 echo "creating cache $cache_file"
949 > $cache_file
950 fi
951
952 ac_ext=c
953 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
954 ac_cpp='$CPP $CPPFLAGS'
955 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
956 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
957 cross_compiling=$ac_cv_prog_cc_cross
958
959 ac_exeext=
960 ac_objext=o
961 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
962 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
963 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
964 ac_n= ac_c='
965 ' ac_t=' '
966 else
967 ac_n=-n ac_c= ac_t=
968 fi
969 else
970 ac_n= ac_c='\c' ac_t=
971 fi
972
973
974
975 ac_aux_dir=
976 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
977 if test -f $ac_dir/install-sh; then
978 ac_aux_dir=$ac_dir
979 ac_install_sh="$ac_aux_dir/install-sh -c"
980 break
981 elif test -f $ac_dir/install.sh; then
982 ac_aux_dir=$ac_dir
983 ac_install_sh="$ac_aux_dir/install.sh -c"
984 break
985 fi
986 done
987 if test -z "$ac_aux_dir"; then
988 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
989 fi
990 ac_config_guess=$ac_aux_dir/config.guess
991 ac_config_sub=$ac_aux_dir/config.sub
992 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
993
994
995 # Do some error checking and defaulting for the host and target type.
996 # The inputs are:
997 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
998 #
999 # The rules are:
1000 # 1. You are not allowed to specify --host, --target, and nonopt at the
1001 # same time.
1002 # 2. Host defaults to nonopt.
1003 # 3. If nonopt is not specified, then host defaults to the current host,
1004 # as determined by config.guess.
1005 # 4. Target and build default to nonopt.
1006 # 5. If nonopt is not specified, then target and build default to host.
1007
1008 # The aliases save the names the user supplied, while $host etc.
1009 # will get canonicalized.
1010 case $host---$target---$nonopt in
1011 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1012 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1013 esac
1014
1015
1016 # Make sure we can run config.sub.
1017 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1018 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1019 fi
1020
1021 echo $ac_n "checking host system type""... $ac_c" 1>&6
1022 echo "configure:1023: checking host system type" >&5
1023
1024 host_alias=$host
1025 case "$host_alias" in
1026 NONE)
1027 case $nonopt in
1028 NONE)
1029 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1030 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1031 fi ;;
1032 *) host_alias=$nonopt ;;
1033 esac ;;
1034 esac
1035
1036 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1037 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1038 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1039 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1040 echo "$ac_t""$host" 1>&6
1041
1042 echo $ac_n "checking target system type""... $ac_c" 1>&6
1043 echo "configure:1044: checking target system type" >&5
1044
1045 target_alias=$target
1046 case "$target_alias" in
1047 NONE)
1048 case $nonopt in
1049 NONE) target_alias=$host_alias ;;
1050 *) target_alias=$nonopt ;;
1051 esac ;;
1052 esac
1053
1054 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1055 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1056 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1057 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1058 echo "$ac_t""$target" 1>&6
1059
1060 echo $ac_n "checking build system type""... $ac_c" 1>&6
1061 echo "configure:1062: checking build system type" >&5
1062
1063 build_alias=$build
1064 case "$build_alias" in
1065 NONE)
1066 case $nonopt in
1067 NONE) build_alias=$host_alias ;;
1068 *) build_alias=$nonopt ;;
1069 esac ;;
1070 esac
1071
1072 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1073 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1074 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1075 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1076 echo "$ac_t""$build" 1>&6
1077
1078 test "$host_alias" != "$target_alias" &&
1079 test "$program_prefix$program_suffix$program_transform_name" = \
1080 NONENONEs,x,x, &&
1081 program_prefix=${target_alias}-
1082
1083 # Extract the first word of "gcc", so it can be a program name with args.
1084 set dummy gcc; ac_word=$2
1085 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1086 echo "configure:1087: checking for $ac_word" >&5
1087 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1088 echo $ac_n "(cached) $ac_c" 1>&6
1089 else
1090 if test -n "$CC"; then
1091 ac_cv_prog_CC="$CC" # Let the user override the test.
1092 else
1093 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1094 ac_dummy="$PATH"
1095 for ac_dir in $ac_dummy; do
1096 test -z "$ac_dir" && ac_dir=.
1097 if test -f $ac_dir/$ac_word; then
1098 ac_cv_prog_CC="gcc"
1099 break
1100 fi
1101 done
1102 IFS="$ac_save_ifs"
1103 fi
1104 fi
1105 CC="$ac_cv_prog_CC"
1106 if test -n "$CC"; then
1107 echo "$ac_t""$CC" 1>&6
1108 else
1109 echo "$ac_t""no" 1>&6
1110 fi
1111
1112 if test -z "$CC"; then
1113 # Extract the first word of "cc", so it can be a program name with args.
1114 set dummy cc; ac_word=$2
1115 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1116 echo "configure:1117: checking for $ac_word" >&5
1117 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1118 echo $ac_n "(cached) $ac_c" 1>&6
1119 else
1120 if test -n "$CC"; then
1121 ac_cv_prog_CC="$CC" # Let the user override the test.
1122 else
1123 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1124 ac_prog_rejected=no
1125 ac_dummy="$PATH"
1126 for ac_dir in $ac_dummy; do
1127 test -z "$ac_dir" && ac_dir=.
1128 if test -f $ac_dir/$ac_word; then
1129 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1130 ac_prog_rejected=yes
1131 continue
1132 fi
1133 ac_cv_prog_CC="cc"
1134 break
1135 fi
1136 done
1137 IFS="$ac_save_ifs"
1138 if test $ac_prog_rejected = yes; then
1139 # We found a bogon in the path, so make sure we never use it.
1140 set dummy $ac_cv_prog_CC
1141 shift
1142 if test $# -gt 0; then
1143 # We chose a different compiler from the bogus one.
1144 # However, it has the same basename, so the bogon will be chosen
1145 # first if we set CC to just the basename; use the full file name.
1146 shift
1147 set dummy "$ac_dir/$ac_word" "$@"
1148 shift
1149 ac_cv_prog_CC="$@"
1150 fi
1151 fi
1152 fi
1153 fi
1154 CC="$ac_cv_prog_CC"
1155 if test -n "$CC"; then
1156 echo "$ac_t""$CC" 1>&6
1157 else
1158 echo "$ac_t""no" 1>&6
1159 fi
1160
1161 if test -z "$CC"; then
1162 case "`uname -s`" in
1163 *win32* | *WIN32*)
1164 # Extract the first word of "cl", so it can be a program name with args.
1165 set dummy cl; ac_word=$2
1166 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1167 echo "configure:1168: checking for $ac_word" >&5
1168 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1169 echo $ac_n "(cached) $ac_c" 1>&6
1170 else
1171 if test -n "$CC"; then
1172 ac_cv_prog_CC="$CC" # Let the user override the test.
1173 else
1174 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1175 ac_dummy="$PATH"
1176 for ac_dir in $ac_dummy; do
1177 test -z "$ac_dir" && ac_dir=.
1178 if test -f $ac_dir/$ac_word; then
1179 ac_cv_prog_CC="cl"
1180 break
1181 fi
1182 done
1183 IFS="$ac_save_ifs"
1184 fi
1185 fi
1186 CC="$ac_cv_prog_CC"
1187 if test -n "$CC"; then
1188 echo "$ac_t""$CC" 1>&6
1189 else
1190 echo "$ac_t""no" 1>&6
1191 fi
1192 ;;
1193 esac
1194 fi
1195 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1196 fi
1197
1198 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1199 echo "configure:1200: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1200
1201 ac_ext=c
1202 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1203 ac_cpp='$CPP $CPPFLAGS'
1204 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1205 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1206 cross_compiling=$ac_cv_prog_cc_cross
1207
1208 cat > conftest.$ac_ext << EOF
1209
1210 #line 1211 "configure"
1211 #include "confdefs.h"
1212
1213 main(){return(0);}
1214 EOF
1215 if { (eval echo configure:1216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1216 ac_cv_prog_cc_works=yes
1217 # If we can't run a trivial program, we are probably using a cross compiler.
1218 if (./conftest; exit) 2>/dev/null; then
1219 ac_cv_prog_cc_cross=no
1220 else
1221 ac_cv_prog_cc_cross=yes
1222 fi
1223 else
1224 echo "configure: failed program was:" >&5
1225 cat conftest.$ac_ext >&5
1226 ac_cv_prog_cc_works=no
1227 fi
1228 rm -fr conftest*
1229 ac_ext=c
1230 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1231 ac_cpp='$CPP $CPPFLAGS'
1232 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1233 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1234 cross_compiling=$ac_cv_prog_cc_cross
1235
1236 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1237 if test $ac_cv_prog_cc_works = no; then
1238 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1239 fi
1240 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1241 echo "configure:1242: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1242 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1243 cross_compiling=$ac_cv_prog_cc_cross
1244
1245 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1246 echo "configure:1247: checking whether we are using GNU C" >&5
1247 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1248 echo $ac_n "(cached) $ac_c" 1>&6
1249 else
1250 cat > conftest.c <<EOF
1251 #ifdef __GNUC__
1252 yes;
1253 #endif
1254 EOF
1255 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1256 ac_cv_prog_gcc=yes
1257 else
1258 ac_cv_prog_gcc=no
1259 fi
1260 fi
1261
1262 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1263
1264 if test $ac_cv_prog_gcc = yes; then
1265 GCC=yes
1266 else
1267 GCC=
1268 fi
1269
1270 ac_test_CFLAGS="${CFLAGS+set}"
1271 ac_save_CFLAGS="$CFLAGS"
1272 CFLAGS=
1273 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1274 echo "configure:1275: checking whether ${CC-cc} accepts -g" >&5
1275 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1276 echo $ac_n "(cached) $ac_c" 1>&6
1277 else
1278 echo 'void f(){}' > conftest.c
1279 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1280 ac_cv_prog_cc_g=yes
1281 else
1282 ac_cv_prog_cc_g=no
1283 fi
1284 rm -f conftest*
1285
1286 fi
1287
1288 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1289 if test "$ac_test_CFLAGS" = set; then
1290 CFLAGS="$ac_save_CFLAGS"
1291 elif test $ac_cv_prog_cc_g = yes; then
1292 if test "$GCC" = yes; then
1293 CFLAGS="-g -O2"
1294 else
1295 CFLAGS="-g"
1296 fi
1297 else
1298 if test "$GCC" = yes; then
1299 CFLAGS="-O2"
1300 else
1301 CFLAGS=
1302 fi
1303 fi
1304
1305 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1306 echo "configure:1307: checking for POSIXized ISC" >&5
1307 if test -d /etc/conf/kconfig.d &&
1308 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1309 then
1310 echo "$ac_t""yes" 1>&6
1311 ISC=yes # If later tests want to check for ISC.
1312 cat >> confdefs.h <<\EOF
1313 #define _POSIX_SOURCE 1
1314 EOF
1315
1316 if test "$GCC" = yes; then
1317 CC="$CC -posix"
1318 else
1319 CC="$CC -Xp"
1320 fi
1321 else
1322 echo "$ac_t""no" 1>&6
1323 ISC=
1324 fi
1325
1326
1327 # We currently only use the version number for the name of any shared
1328 # library. For user convenience, we always use the same version
1329 # number that BFD is using.
1330 BFD_VERSION=`grep INIT_AUTOMAKE ${srcdir}/../bfd/configure.in | sed -n -e 's/[ ]//g' -e 's/^.*,\(.*\)).*$/\1/p'`
1331
1332 # Find a good install program. We prefer a C program (faster),
1333 # so one script is as good as another. But avoid the broken or
1334 # incompatible versions:
1335 # SysV /etc/install, /usr/sbin/install
1336 # SunOS /usr/etc/install
1337 # IRIX /sbin/install
1338 # AIX /bin/install
1339 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1340 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1341 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1342 # ./install, which can be erroneously created by make from ./install.sh.
1343 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1344 echo "configure:1345: checking for a BSD compatible install" >&5
1345 if test -z "$INSTALL"; then
1346 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1347 echo $ac_n "(cached) $ac_c" 1>&6
1348 else
1349 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1350 for ac_dir in $PATH; do
1351 # Account for people who put trailing slashes in PATH elements.
1352 case "$ac_dir/" in
1353 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1354 *)
1355 # OSF1 and SCO ODT 3.0 have their own names for install.
1356 # Don't use installbsd from OSF since it installs stuff as root
1357 # by default.
1358 for ac_prog in ginstall scoinst install; do
1359 if test -f $ac_dir/$ac_prog; then
1360 if test $ac_prog = install &&
1361 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1362 # AIX install. It has an incompatible calling convention.
1363 :
1364 else
1365 ac_cv_path_install="$ac_dir/$ac_prog -c"
1366 break 2
1367 fi
1368 fi
1369 done
1370 ;;
1371 esac
1372 done
1373 IFS="$ac_save_IFS"
1374
1375 fi
1376 if test "${ac_cv_path_install+set}" = set; then
1377 INSTALL="$ac_cv_path_install"
1378 else
1379 # As a last resort, use the slow shell script. We don't cache a
1380 # path for INSTALL within a source directory, because that will
1381 # break other packages using the cache if that directory is
1382 # removed, or if the path is relative.
1383 INSTALL="$ac_install_sh"
1384 fi
1385 fi
1386 echo "$ac_t""$INSTALL" 1>&6
1387
1388 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1389 # It thinks the first close brace ends the variable substitution.
1390 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1391
1392 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1393
1394 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1395
1396
1397 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1398
1399 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1400 echo "configure:1401: checking whether build environment is sane" >&5
1401 # Just in case
1402 sleep 1
1403 echo timestamp > conftestfile
1404 # Do `set' in a subshell so we don't clobber the current shell's
1405 # arguments. Must try -L first in case configure is actually a
1406 # symlink; some systems play weird games with the mod time of symlinks
1407 # (eg FreeBSD returns the mod time of the symlink's containing
1408 # directory).
1409 if (
1410 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1411 if test "$*" = "X"; then
1412 # -L didn't work.
1413 set X `ls -t $srcdir/configure conftestfile`
1414 fi
1415 if test "$*" != "X $srcdir/configure conftestfile" \
1416 && test "$*" != "X conftestfile $srcdir/configure"; then
1417
1418 # If neither matched, then we have a broken ls. This can happen
1419 # if, for instance, CONFIG_SHELL is bash and it inherits a
1420 # broken ls alias from the environment. This has actually
1421 # happened. Such a system could not be considered "sane".
1422 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1423 alias in your environment" 1>&2; exit 1; }
1424 fi
1425
1426 test "$2" = conftestfile
1427 )
1428 then
1429 # Ok.
1430 :
1431 else
1432 { echo "configure: error: newly created file is older than distributed files!
1433 Check your system clock" 1>&2; exit 1; }
1434 fi
1435 rm -f conftest*
1436 echo "$ac_t""yes" 1>&6
1437 if test "$program_transform_name" = s,x,x,; then
1438 program_transform_name=
1439 else
1440 # Double any \ or $. echo might interpret backslashes.
1441 cat <<\EOF_SED > conftestsed
1442 s,\\,\\\\,g; s,\$,$$,g
1443 EOF_SED
1444 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1445 rm -f conftestsed
1446 fi
1447 test "$program_prefix" != NONE &&
1448 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1449 # Use a double $ so make ignores it.
1450 test "$program_suffix" != NONE &&
1451 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1452
1453 # sed with no file args requires a program.
1454 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1455
1456 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1457 echo "configure:1458: checking whether ${MAKE-make} sets \${MAKE}" >&5
1458 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1459 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1460 echo $ac_n "(cached) $ac_c" 1>&6
1461 else
1462 cat > conftestmake <<\EOF
1463 all:
1464 @echo 'ac_maketemp="${MAKE}"'
1465 EOF
1466 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1467 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1468 if test -n "$ac_maketemp"; then
1469 eval ac_cv_prog_make_${ac_make}_set=yes
1470 else
1471 eval ac_cv_prog_make_${ac_make}_set=no
1472 fi
1473 rm -f conftestmake
1474 fi
1475 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1476 echo "$ac_t""yes" 1>&6
1477 SET_MAKE=
1478 else
1479 echo "$ac_t""no" 1>&6
1480 SET_MAKE="MAKE=${MAKE-make}"
1481 fi
1482
1483
1484 PACKAGE=opcodes
1485
1486 VERSION=${BFD_VERSION}
1487
1488 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1489 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1490 fi
1491 cat >> confdefs.h <<EOF
1492 #define PACKAGE "$PACKAGE"
1493 EOF
1494
1495 cat >> confdefs.h <<EOF
1496 #define VERSION "$VERSION"
1497 EOF
1498
1499
1500
1501 missing_dir=`cd $ac_aux_dir && pwd`
1502 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1503 echo "configure:1504: checking for working aclocal" >&5
1504 # Run test in a subshell; some versions of sh will print an error if
1505 # an executable is not found, even if stderr is redirected.
1506 # Redirect stdin to placate older versions of autoconf. Sigh.
1507 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1508 ACLOCAL=aclocal
1509 echo "$ac_t""found" 1>&6
1510 else
1511 ACLOCAL="$missing_dir/missing aclocal"
1512 echo "$ac_t""missing" 1>&6
1513 fi
1514
1515 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1516 echo "configure:1517: checking for working autoconf" >&5
1517 # Run test in a subshell; some versions of sh will print an error if
1518 # an executable is not found, even if stderr is redirected.
1519 # Redirect stdin to placate older versions of autoconf. Sigh.
1520 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1521 AUTOCONF=autoconf
1522 echo "$ac_t""found" 1>&6
1523 else
1524 AUTOCONF="$missing_dir/missing autoconf"
1525 echo "$ac_t""missing" 1>&6
1526 fi
1527
1528 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1529 echo "configure:1530: checking for working automake" >&5
1530 # Run test in a subshell; some versions of sh will print an error if
1531 # an executable is not found, even if stderr is redirected.
1532 # Redirect stdin to placate older versions of autoconf. Sigh.
1533 if (automake --version) < /dev/null > /dev/null 2>&1; then
1534 AUTOMAKE=automake
1535 echo "$ac_t""found" 1>&6
1536 else
1537 AUTOMAKE="$missing_dir/missing automake"
1538 echo "$ac_t""missing" 1>&6
1539 fi
1540
1541 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1542 echo "configure:1543: checking for working autoheader" >&5
1543 # Run test in a subshell; some versions of sh will print an error if
1544 # an executable is not found, even if stderr is redirected.
1545 # Redirect stdin to placate older versions of autoconf. Sigh.
1546 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1547 AUTOHEADER=autoheader
1548 echo "$ac_t""found" 1>&6
1549 else
1550 AUTOHEADER="$missing_dir/missing autoheader"
1551 echo "$ac_t""missing" 1>&6
1552 fi
1553
1554 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1555 echo "configure:1556: checking for working makeinfo" >&5
1556 # Run test in a subshell; some versions of sh will print an error if
1557 # an executable is not found, even if stderr is redirected.
1558 # Redirect stdin to placate older versions of autoconf. Sigh.
1559 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1560 MAKEINFO=makeinfo
1561 echo "$ac_t""found" 1>&6
1562 else
1563 MAKEINFO="$missing_dir/missing makeinfo"
1564 echo "$ac_t""missing" 1>&6
1565 fi
1566
1567
1568
1569 if test $host != $build; then
1570 ac_tool_prefix=${host_alias}-
1571 else
1572 ac_tool_prefix=
1573 fi
1574
1575 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1576 set dummy ${ac_tool_prefix}ar; ac_word=$2
1577 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1578 echo "configure:1579: checking for $ac_word" >&5
1579 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1580 echo $ac_n "(cached) $ac_c" 1>&6
1581 else
1582 if test -n "$AR"; then
1583 ac_cv_prog_AR="$AR" # Let the user override the test.
1584 else
1585 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1586 ac_dummy="$PATH"
1587 for ac_dir in $ac_dummy; do
1588 test -z "$ac_dir" && ac_dir=.
1589 if test -f $ac_dir/$ac_word; then
1590 ac_cv_prog_AR="${ac_tool_prefix}ar"
1591 break
1592 fi
1593 done
1594 IFS="$ac_save_ifs"
1595 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1596 fi
1597 fi
1598 AR="$ac_cv_prog_AR"
1599 if test -n "$AR"; then
1600 echo "$ac_t""$AR" 1>&6
1601 else
1602 echo "$ac_t""no" 1>&6
1603 fi
1604
1605
1606
1607 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1608 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1609 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1610 echo "configure:1611: checking for $ac_word" >&5
1611 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1612 echo $ac_n "(cached) $ac_c" 1>&6
1613 else
1614 if test -n "$RANLIB"; then
1615 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1616 else
1617 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1618 ac_dummy="$PATH"
1619 for ac_dir in $ac_dummy; do
1620 test -z "$ac_dir" && ac_dir=.
1621 if test -f $ac_dir/$ac_word; then
1622 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1623 break
1624 fi
1625 done
1626 IFS="$ac_save_ifs"
1627 fi
1628 fi
1629 RANLIB="$ac_cv_prog_RANLIB"
1630 if test -n "$RANLIB"; then
1631 echo "$ac_t""$RANLIB" 1>&6
1632 else
1633 echo "$ac_t""no" 1>&6
1634 fi
1635
1636
1637 if test -z "$ac_cv_prog_RANLIB"; then
1638 if test -n "$ac_tool_prefix"; then
1639 # Extract the first word of "ranlib", so it can be a program name with args.
1640 set dummy ranlib; ac_word=$2
1641 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1642 echo "configure:1643: checking for $ac_word" >&5
1643 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1644 echo $ac_n "(cached) $ac_c" 1>&6
1645 else
1646 if test -n "$RANLIB"; then
1647 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1648 else
1649 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1650 ac_dummy="$PATH"
1651 for ac_dir in $ac_dummy; do
1652 test -z "$ac_dir" && ac_dir=.
1653 if test -f $ac_dir/$ac_word; then
1654 ac_cv_prog_RANLIB="ranlib"
1655 break
1656 fi
1657 done
1658 IFS="$ac_save_ifs"
1659 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1660 fi
1661 fi
1662 RANLIB="$ac_cv_prog_RANLIB"
1663 if test -n "$RANLIB"; then
1664 echo "$ac_t""$RANLIB" 1>&6
1665 else
1666 echo "$ac_t""no" 1>&6
1667 fi
1668
1669 else
1670 RANLIB=":"
1671 fi
1672 fi
1673
1674
1675 # Check whether --enable-shared or --disable-shared was given.
1676 if test "${enable_shared+set}" = set; then
1677 enableval="$enable_shared"
1678 p=${PACKAGE-default}
1679 case "$enableval" in
1680 yes) enable_shared=yes ;;
1681 no) enable_shared=no ;;
1682 *)
1683 enable_shared=no
1684 # Look at the argument we got. We use all the common list separators.
1685 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1686 for pkg in $enableval; do
1687 if test "X$pkg" = "X$p"; then
1688 enable_shared=yes
1689 fi
1690 done
1691 IFS="$ac_save_ifs"
1692 ;;
1693 esac
1694 else
1695 enable_shared=no
1696 fi
1697
1698
1699 # Check whether --enable-static or --disable-static was given.
1700 if test "${enable_static+set}" = set; then
1701 enableval="$enable_static"
1702 p=${PACKAGE-default}
1703 case "$enableval" in
1704 yes) enable_static=yes ;;
1705 no) enable_static=no ;;
1706 *)
1707 enable_static=no
1708 # Look at the argument we got. We use all the common list separators.
1709 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1710 for pkg in $enableval; do
1711 if test "X$pkg" = "X$p"; then
1712 enable_static=yes
1713 fi
1714 done
1715 IFS="$ac_save_ifs"
1716 ;;
1717 esac
1718 else
1719 enable_static=yes
1720 fi
1721
1722 # Extract the first word of "ranlib", so it can be a program name with args.
1723 set dummy ranlib; ac_word=$2
1724 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1725 echo "configure:1726: checking for $ac_word" >&5
1726 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1727 echo $ac_n "(cached) $ac_c" 1>&6
1728 else
1729 if test -n "$RANLIB"; then
1730 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1731 else
1732 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1733 ac_dummy="$PATH"
1734 for ac_dir in $ac_dummy; do
1735 test -z "$ac_dir" && ac_dir=.
1736 if test -f $ac_dir/$ac_word; then
1737 ac_cv_prog_RANLIB="ranlib"
1738 break
1739 fi
1740 done
1741 IFS="$ac_save_ifs"
1742 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1743 fi
1744 fi
1745 RANLIB="$ac_cv_prog_RANLIB"
1746 if test -n "$RANLIB"; then
1747 echo "$ac_t""$RANLIB" 1>&6
1748 else
1749 echo "$ac_t""no" 1>&6
1750 fi
1751
1752 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1753 if test "${with_gnu_ld+set}" = set; then
1754 withval="$with_gnu_ld"
1755 test "$withval" = no || with_gnu_ld=yes
1756 else
1757 with_gnu_ld=no
1758 fi
1759
1760
1761 ac_prog=ld
1762 if test "$ac_cv_prog_gcc" = yes; then
1763 # Check if gcc -print-prog-name=ld gives a path.
1764 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1765 echo "configure:1766: checking for ld used by GCC" >&5
1766 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1767 case "$ac_prog" in
1768 # Accept absolute paths.
1769 /* | [A-Za-z]:\\*)
1770 test -z "$LD" && LD="$ac_prog"
1771 ;;
1772 "")
1773 # If it fails, then pretend we aren't using GCC.
1774 ac_prog=ld
1775 ;;
1776 *)
1777 # If it is relative, then search for the first ld in PATH.
1778 with_gnu_ld=unknown
1779 ;;
1780 esac
1781 elif test "$with_gnu_ld" = yes; then
1782 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1783 echo "configure:1784: checking for GNU ld" >&5
1784 else
1785 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1786 echo "configure:1787: checking for non-GNU ld" >&5
1787 fi
1788 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1789 echo $ac_n "(cached) $ac_c" 1>&6
1790 else
1791 if test -z "$LD"; then
1792 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1793 for ac_dir in $PATH; do
1794 test -z "$ac_dir" && ac_dir=.
1795 if test -f "$ac_dir/$ac_prog"; then
1796 ac_cv_path_LD="$ac_dir/$ac_prog"
1797 # Check to see if the program is GNU ld. I'd rather use --version,
1798 # but apparently some GNU ld's only accept -v.
1799 # Break only if it was the GNU/non-GNU ld that we prefer.
1800 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1801 test "$with_gnu_ld" != no && break
1802 else
1803 test "$with_gnu_ld" != yes && break
1804 fi
1805 fi
1806 done
1807 IFS="$ac_save_ifs"
1808 else
1809 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1810 fi
1811 fi
1812
1813 LD="$ac_cv_path_LD"
1814 if test -n "$LD"; then
1815 echo "$ac_t""$LD" 1>&6
1816 else
1817 echo "$ac_t""no" 1>&6
1818 fi
1819 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1820
1821 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1822 echo "configure:1823: checking if the linker ($LD) is GNU ld" >&5
1823 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1824 echo $ac_n "(cached) $ac_c" 1>&6
1825 else
1826 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1827 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1828 ac_cv_prog_gnu_ld=yes
1829 else
1830 ac_cv_prog_gnu_ld=no
1831 fi
1832 fi
1833
1834 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1835
1836
1837 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1838 echo "configure:1839: checking for BSD-compatible nm" >&5
1839 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1840 echo $ac_n "(cached) $ac_c" 1>&6
1841 else
1842 if test -n "$NM"; then
1843 # Let the user override the test.
1844 ac_cv_path_NM="$NM"
1845 else
1846 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1847 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
1848 test -z "$ac_dir" && ac_dir=.
1849 if test -f $ac_dir/nm; then
1850 # Check to see if the nm accepts a BSD-compat flag.
1851 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1852 # nm: unknown option "B" ignored
1853 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1854 ac_cv_path_NM="$ac_dir/nm -B"
1855 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1856 ac_cv_path_NM="$ac_dir/nm -p"
1857 else
1858 ac_cv_path_NM="$ac_dir/nm"
1859 fi
1860 break
1861 fi
1862 done
1863 IFS="$ac_save_ifs"
1864 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1865 fi
1866 fi
1867
1868 NM="$ac_cv_path_NM"
1869 echo "$ac_t""$NM" 1>&6
1870
1871
1872 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1873 echo "configure:1874: checking whether ln -s works" >&5
1874 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1875 echo $ac_n "(cached) $ac_c" 1>&6
1876 else
1877 rm -f conftestdata
1878 if ln -s X conftestdata 2>/dev/null
1879 then
1880 rm -f conftestdata
1881 ac_cv_prog_LN_S="ln -s"
1882 else
1883 ac_cv_prog_LN_S=ln
1884 fi
1885 fi
1886 LN_S="$ac_cv_prog_LN_S"
1887 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1888 echo "$ac_t""yes" 1>&6
1889 else
1890 echo "$ac_t""no" 1>&6
1891 fi
1892
1893 # Always use our own libtool.
1894 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1895
1896 # Check for any special flags to pass to ltconfig.
1897 libtool_flags=
1898 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1899 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1900 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
1901 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1902 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1903
1904 # Some flags need to be propagated to the compiler or linker for good
1905 # libtool support.
1906 case "$host" in
1907 *-*-irix6*)
1908 # Find out which ABI we are using.
1909 echo '#line 1910 "configure"' > conftest.$ac_ext
1910 if { (eval echo configure:1911: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1911 case "`/usr/bin/file conftest.o`" in
1912 *32-bit*)
1913 LD="${LD-ld} -32"
1914 ;;
1915 *N32*)
1916 LD="${LD-ld} -n32"
1917 ;;
1918 *64-bit*)
1919 LD="${LD-ld} -64"
1920 ;;
1921 esac
1922 fi
1923 rm -rf conftest*
1924 ;;
1925
1926 *-*-sco3.2v5*)
1927 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1928 CFLAGS="$CFLAGS -belf"
1929 ;;
1930
1931 *-*-cygwin32*)
1932 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
1933 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1934 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1935 echo "configure:1936: checking for $ac_word" >&5
1936 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1937 echo $ac_n "(cached) $ac_c" 1>&6
1938 else
1939 if test -n "$DLLTOOL"; then
1940 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1941 else
1942 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1943 ac_dummy="$PATH"
1944 for ac_dir in $ac_dummy; do
1945 test -z "$ac_dir" && ac_dir=.
1946 if test -f $ac_dir/$ac_word; then
1947 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1948 break
1949 fi
1950 done
1951 IFS="$ac_save_ifs"
1952 fi
1953 fi
1954 DLLTOOL="$ac_cv_prog_DLLTOOL"
1955 if test -n "$DLLTOOL"; then
1956 echo "$ac_t""$DLLTOOL" 1>&6
1957 else
1958 echo "$ac_t""no" 1>&6
1959 fi
1960
1961
1962 if test -z "$ac_cv_prog_DLLTOOL"; then
1963 if test -n "$ac_tool_prefix"; then
1964 # Extract the first word of "dlltool", so it can be a program name with args.
1965 set dummy dlltool; ac_word=$2
1966 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1967 echo "configure:1968: checking for $ac_word" >&5
1968 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1969 echo $ac_n "(cached) $ac_c" 1>&6
1970 else
1971 if test -n "$DLLTOOL"; then
1972 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1973 else
1974 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1975 ac_dummy="$PATH"
1976 for ac_dir in $ac_dummy; do
1977 test -z "$ac_dir" && ac_dir=.
1978 if test -f $ac_dir/$ac_word; then
1979 ac_cv_prog_DLLTOOL="dlltool"
1980 break
1981 fi
1982 done
1983 IFS="$ac_save_ifs"
1984 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
1985 fi
1986 fi
1987 DLLTOOL="$ac_cv_prog_DLLTOOL"
1988 if test -n "$DLLTOOL"; then
1989 echo "$ac_t""$DLLTOOL" 1>&6
1990 else
1991 echo "$ac_t""no" 1>&6
1992 fi
1993
1994 else
1995 DLLTOOL="false"
1996 fi
1997 fi
1998
1999 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2000 set dummy ${ac_tool_prefix}as; ac_word=$2
2001 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2002 echo "configure:2003: checking for $ac_word" >&5
2003 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2004 echo $ac_n "(cached) $ac_c" 1>&6
2005 else
2006 if test -n "$AS"; then
2007 ac_cv_prog_AS="$AS" # Let the user override the test.
2008 else
2009 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2010 ac_dummy="$PATH"
2011 for ac_dir in $ac_dummy; do
2012 test -z "$ac_dir" && ac_dir=.
2013 if test -f $ac_dir/$ac_word; then
2014 ac_cv_prog_AS="${ac_tool_prefix}as"
2015 break
2016 fi
2017 done
2018 IFS="$ac_save_ifs"
2019 fi
2020 fi
2021 AS="$ac_cv_prog_AS"
2022 if test -n "$AS"; then
2023 echo "$ac_t""$AS" 1>&6
2024 else
2025 echo "$ac_t""no" 1>&6
2026 fi
2027
2028
2029 if test -z "$ac_cv_prog_AS"; then
2030 if test -n "$ac_tool_prefix"; then
2031 # Extract the first word of "as", so it can be a program name with args.
2032 set dummy as; ac_word=$2
2033 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2034 echo "configure:2035: checking for $ac_word" >&5
2035 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2036 echo $ac_n "(cached) $ac_c" 1>&6
2037 else
2038 if test -n "$AS"; then
2039 ac_cv_prog_AS="$AS" # Let the user override the test.
2040 else
2041 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2042 ac_dummy="$PATH"
2043 for ac_dir in $ac_dummy; do
2044 test -z "$ac_dir" && ac_dir=.
2045 if test -f $ac_dir/$ac_word; then
2046 ac_cv_prog_AS="as"
2047 break
2048 fi
2049 done
2050 IFS="$ac_save_ifs"
2051 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
2052 fi
2053 fi
2054 AS="$ac_cv_prog_AS"
2055 if test -n "$AS"; then
2056 echo "$ac_t""$AS" 1>&6
2057 else
2058 echo "$ac_t""no" 1>&6
2059 fi
2060
2061 else
2062 AS="false"
2063 fi
2064 fi
2065
2066
2067 ;;
2068
2069 esac
2070
2071 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2072 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2073 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
2074 DLLTOOL="$DLLTOOL" AS="$AS" \
2075 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2076 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
2077 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2078
2079 # Redirect the config.log output again, so that the ltconfig log is not
2080 # clobbered by the next message.
2081 exec 5>>./config.log
2082
2083
2084 # Check whether --enable-targets or --disable-targets was given.
2085 if test "${enable_targets+set}" = set; then
2086 enableval="$enable_targets"
2087 case "${enableval}" in
2088 yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
2089 ;;
2090 no) enable_targets= ;;
2091 *) enable_targets=$enableval ;;
2092 esac
2093 fi
2094 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
2095 if test "${enable_commonbfdlib+set}" = set; then
2096 enableval="$enable_commonbfdlib"
2097 case "${enableval}" in
2098 yes) commonbfdlib=true ;;
2099 no) commonbfdlib=false ;;
2100 *) { echo "configure: error: bad value ${enableval} for opcodes commonbfdlib option" 1>&2; exit 1; } ;;
2101 esac
2102 fi
2103
2104
2105
2106
2107
2108 if test -z "$target" ; then
2109 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
2110 fi
2111 if test "$program_transform_name" = s,x,x,; then
2112 program_transform_name=
2113 else
2114 # Double any \ or $. echo might interpret backslashes.
2115 cat <<\EOF_SED > conftestsed
2116 s,\\,\\\\,g; s,\$,$$,g
2117 EOF_SED
2118 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
2119 rm -f conftestsed
2120 fi
2121 test "$program_prefix" != NONE &&
2122 program_transform_name="s,^,${program_prefix},; $program_transform_name"
2123 # Use a double $ so make ignores it.
2124 test "$program_suffix" != NONE &&
2125 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
2126
2127 # sed with no file args requires a program.
2128 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
2129
2130
2131 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
2132 echo "configure:2133: checking whether to enable maintainer-specific portions of Makefiles" >&5
2133 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2134 if test "${enable_maintainer_mode+set}" = set; then
2135 enableval="$enable_maintainer_mode"
2136 USE_MAINTAINER_MODE=$enableval
2137 else
2138 USE_MAINTAINER_MODE=no
2139 fi
2140
2141 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
2142 if test $USE_MAINTAINER_MODE = yes; then
2143 MAINT=
2144 else
2145 MAINT='#M#'
2146 fi
2147
2148
2149 echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6
2150 echo "configure:2151: checking for Cygwin32 environment" >&5
2151 if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then
2152 echo $ac_n "(cached) $ac_c" 1>&6
2153 else
2154 cat > conftest.$ac_ext <<EOF
2155 #line 2156 "configure"
2156 #include "confdefs.h"
2157
2158 int main() {
2159 return __CYGWIN32__;
2160 ; return 0; }
2161 EOF
2162 if { (eval echo configure:2163: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2163 rm -rf conftest*
2164 am_cv_cygwin32=yes
2165 else
2166 echo "configure: failed program was:" >&5
2167 cat conftest.$ac_ext >&5
2168 rm -rf conftest*
2169 am_cv_cygwin32=no
2170 fi
2171 rm -f conftest*
2172 rm -f conftest*
2173 fi
2174
2175 echo "$ac_t""$am_cv_cygwin32" 1>&6
2176 CYGWIN32=
2177 test "$am_cv_cygwin32" = yes && CYGWIN32=yes
2178 echo $ac_n "checking for Mingw32 environment""... $ac_c" 1>&6
2179 echo "configure:2180: checking for Mingw32 environment" >&5
2180 if eval "test \"`echo '$''{'am_cv_mingw32'+set}'`\" = set"; then
2181 echo $ac_n "(cached) $ac_c" 1>&6
2182 else
2183 cat > conftest.$ac_ext <<EOF
2184 #line 2185 "configure"
2185 #include "confdefs.h"
2186
2187 int main() {
2188 return __MINGW32__;
2189 ; return 0; }
2190 EOF
2191 if { (eval echo configure:2192: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2192 rm -rf conftest*
2193 am_cv_mingw32=yes
2194 else
2195 echo "configure: failed program was:" >&5
2196 cat conftest.$ac_ext >&5
2197 rm -rf conftest*
2198 am_cv_mingw32=no
2199 fi
2200 rm -f conftest*
2201 rm -f conftest*
2202 fi
2203
2204 echo "$ac_t""$am_cv_mingw32" 1>&6
2205 MINGW32=
2206 test "$am_cv_mingw32" = yes && MINGW32=yes
2207
2208
2209 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2210 echo "configure:2211: checking for executable suffix" >&5
2211 if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then
2212 echo $ac_n "(cached) $ac_c" 1>&6
2213 else
2214 if test "$CYGWIN32" = yes || test "$MINGW32" = yes; then
2215 am_cv_exeext=.exe
2216 else
2217 cat > am_c_test.c << 'EOF'
2218 int main() {
2219 /* Nothing needed here */
2220 }
2221 EOF
2222 ${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5
2223 am_cv_exeext=
2224 for file in am_c_test.*; do
2225 case $file in
2226 *.c) ;;
2227 *.o) ;;
2228 *) am_cv_exeext=`echo $file | sed -e s/am_c_test//` ;;
2229 esac
2230 done
2231 rm -f am_c_test*
2232 fi
2233
2234 test x"${am_cv_exeext}" = x && am_cv_exeext=no
2235 fi
2236 EXEEXT=""
2237 test x"${am_cv_exeext}" != xno && EXEEXT=${am_cv_exeext}
2238 echo "$ac_t""${am_cv_exeext}" 1>&6
2239
2240
2241 # host-specific stuff:
2242
2243 # Extract the first word of "gcc", so it can be a program name with args.
2244 set dummy gcc; ac_word=$2
2245 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2246 echo "configure:2247: checking for $ac_word" >&5
2247 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2248 echo $ac_n "(cached) $ac_c" 1>&6
2249 else
2250 if test -n "$CC"; then
2251 ac_cv_prog_CC="$CC" # Let the user override the test.
2252 else
2253 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2254 ac_dummy="$PATH"
2255 for ac_dir in $ac_dummy; do
2256 test -z "$ac_dir" && ac_dir=.
2257 if test -f $ac_dir/$ac_word; then
2258 ac_cv_prog_CC="gcc"
2259 break
2260 fi
2261 done
2262 IFS="$ac_save_ifs"
2263 fi
2264 fi
2265 CC="$ac_cv_prog_CC"
2266 if test -n "$CC"; then
2267 echo "$ac_t""$CC" 1>&6
2268 else
2269 echo "$ac_t""no" 1>&6
2270 fi
2271
2272 if test -z "$CC"; then
2273 # Extract the first word of "cc", so it can be a program name with args.
2274 set dummy cc; ac_word=$2
2275 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2276 echo "configure:2277: checking for $ac_word" >&5
2277 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2278 echo $ac_n "(cached) $ac_c" 1>&6
2279 else
2280 if test -n "$CC"; then
2281 ac_cv_prog_CC="$CC" # Let the user override the test.
2282 else
2283 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2284 ac_prog_rejected=no
2285 ac_dummy="$PATH"
2286 for ac_dir in $ac_dummy; do
2287 test -z "$ac_dir" && ac_dir=.
2288 if test -f $ac_dir/$ac_word; then
2289 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2290 ac_prog_rejected=yes
2291 continue
2292 fi
2293 ac_cv_prog_CC="cc"
2294 break
2295 fi
2296 done
2297 IFS="$ac_save_ifs"
2298 if test $ac_prog_rejected = yes; then
2299 # We found a bogon in the path, so make sure we never use it.
2300 set dummy $ac_cv_prog_CC
2301 shift
2302 if test $# -gt 0; then
2303 # We chose a different compiler from the bogus one.
2304 # However, it has the same basename, so the bogon will be chosen
2305 # first if we set CC to just the basename; use the full file name.
2306 shift
2307 set dummy "$ac_dir/$ac_word" "$@"
2308 shift
2309 ac_cv_prog_CC="$@"
2310 fi
2311 fi
2312 fi
2313 fi
2314 CC="$ac_cv_prog_CC"
2315 if test -n "$CC"; then
2316 echo "$ac_t""$CC" 1>&6
2317 else
2318 echo "$ac_t""no" 1>&6
2319 fi
2320
2321 if test -z "$CC"; then
2322 case "`uname -s`" in
2323 *win32* | *WIN32*)
2324 # Extract the first word of "cl", so it can be a program name with args.
2325 set dummy cl; ac_word=$2
2326 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2327 echo "configure:2328: checking for $ac_word" >&5
2328 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2329 echo $ac_n "(cached) $ac_c" 1>&6
2330 else
2331 if test -n "$CC"; then
2332 ac_cv_prog_CC="$CC" # Let the user override the test.
2333 else
2334 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2335 ac_dummy="$PATH"
2336 for ac_dir in $ac_dummy; do
2337 test -z "$ac_dir" && ac_dir=.
2338 if test -f $ac_dir/$ac_word; then
2339 ac_cv_prog_CC="cl"
2340 break
2341 fi
2342 done
2343 IFS="$ac_save_ifs"
2344 fi
2345 fi
2346 CC="$ac_cv_prog_CC"
2347 if test -n "$CC"; then
2348 echo "$ac_t""$CC" 1>&6
2349 else
2350 echo "$ac_t""no" 1>&6
2351 fi
2352 ;;
2353 esac
2354 fi
2355 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2356 fi
2357
2358 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2359 echo "configure:2360: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2360
2361 ac_ext=c
2362 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2363 ac_cpp='$CPP $CPPFLAGS'
2364 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2365 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2366 cross_compiling=$ac_cv_prog_cc_cross
2367
2368 cat > conftest.$ac_ext << EOF
2369
2370 #line 2371 "configure"
2371 #include "confdefs.h"
2372
2373 main(){return(0);}
2374 EOF
2375 if { (eval echo configure:2376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2376 ac_cv_prog_cc_works=yes
2377 # If we can't run a trivial program, we are probably using a cross compiler.
2378 if (./conftest; exit) 2>/dev/null; then
2379 ac_cv_prog_cc_cross=no
2380 else
2381 ac_cv_prog_cc_cross=yes
2382 fi
2383 else
2384 echo "configure: failed program was:" >&5
2385 cat conftest.$ac_ext >&5
2386 ac_cv_prog_cc_works=no
2387 fi
2388 rm -fr conftest*
2389 ac_ext=c
2390 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2391 ac_cpp='$CPP $CPPFLAGS'
2392 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2393 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2394 cross_compiling=$ac_cv_prog_cc_cross
2395
2396 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2397 if test $ac_cv_prog_cc_works = no; then
2398 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2399 fi
2400 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2401 echo "configure:2402: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2402 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2403 cross_compiling=$ac_cv_prog_cc_cross
2404
2405 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2406 echo "configure:2407: checking whether we are using GNU C" >&5
2407 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2408 echo $ac_n "(cached) $ac_c" 1>&6
2409 else
2410 cat > conftest.c <<EOF
2411 #ifdef __GNUC__
2412 yes;
2413 #endif
2414 EOF
2415 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2416: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2416 ac_cv_prog_gcc=yes
2417 else
2418 ac_cv_prog_gcc=no
2419 fi
2420 fi
2421
2422 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2423
2424 if test $ac_cv_prog_gcc = yes; then
2425 GCC=yes
2426 else
2427 GCC=
2428 fi
2429
2430 ac_test_CFLAGS="${CFLAGS+set}"
2431 ac_save_CFLAGS="$CFLAGS"
2432 CFLAGS=
2433 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2434 echo "configure:2435: checking whether ${CC-cc} accepts -g" >&5
2435 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2436 echo $ac_n "(cached) $ac_c" 1>&6
2437 else
2438 echo 'void f(){}' > conftest.c
2439 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2440 ac_cv_prog_cc_g=yes
2441 else
2442 ac_cv_prog_cc_g=no
2443 fi
2444 rm -f conftest*
2445
2446 fi
2447
2448 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2449 if test "$ac_test_CFLAGS" = set; then
2450 CFLAGS="$ac_save_CFLAGS"
2451 elif test $ac_cv_prog_cc_g = yes; then
2452 if test "$GCC" = yes; then
2453 CFLAGS="-g -O2"
2454 else
2455 CFLAGS="-g"
2456 fi
2457 else
2458 if test "$GCC" = yes; then
2459 CFLAGS="-O2"
2460 else
2461 CFLAGS=
2462 fi
2463 fi
2464
2465
2466 ALL_LINGUAS=
2467 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2468 echo "configure:2469: checking how to run the C preprocessor" >&5
2469 # On Suns, sometimes $CPP names a directory.
2470 if test -n "$CPP" && test -d "$CPP"; then
2471 CPP=
2472 fi
2473 if test -z "$CPP"; then
2474 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2475 echo $ac_n "(cached) $ac_c" 1>&6
2476 else
2477 # This must be in double quotes, not single quotes, because CPP may get
2478 # substituted into the Makefile and "${CC-cc}" will confuse make.
2479 CPP="${CC-cc} -E"
2480 # On the NeXT, cc -E runs the code through the compiler's parser,
2481 # not just through cpp.
2482 cat > conftest.$ac_ext <<EOF
2483 #line 2484 "configure"
2484 #include "confdefs.h"
2485 #include <assert.h>
2486 Syntax Error
2487 EOF
2488 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2489 { (eval echo configure:2490: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2490 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2491 if test -z "$ac_err"; then
2492 :
2493 else
2494 echo "$ac_err" >&5
2495 echo "configure: failed program was:" >&5
2496 cat conftest.$ac_ext >&5
2497 rm -rf conftest*
2498 CPP="${CC-cc} -E -traditional-cpp"
2499 cat > conftest.$ac_ext <<EOF
2500 #line 2501 "configure"
2501 #include "confdefs.h"
2502 #include <assert.h>
2503 Syntax Error
2504 EOF
2505 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2506 { (eval echo configure:2507: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2507 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2508 if test -z "$ac_err"; then
2509 :
2510 else
2511 echo "$ac_err" >&5
2512 echo "configure: failed program was:" >&5
2513 cat conftest.$ac_ext >&5
2514 rm -rf conftest*
2515 CPP="${CC-cc} -nologo -E"
2516 cat > conftest.$ac_ext <<EOF
2517 #line 2518 "configure"
2518 #include "confdefs.h"
2519 #include <assert.h>
2520 Syntax Error
2521 EOF
2522 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2523 { (eval echo configure:2524: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2524 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2525 if test -z "$ac_err"; then
2526 :
2527 else
2528 echo "$ac_err" >&5
2529 echo "configure: failed program was:" >&5
2530 cat conftest.$ac_ext >&5
2531 rm -rf conftest*
2532 CPP=/lib/cpp
2533 fi
2534 rm -f conftest*
2535 fi
2536 rm -f conftest*
2537 fi
2538 rm -f conftest*
2539 ac_cv_prog_CPP="$CPP"
2540 fi
2541 CPP="$ac_cv_prog_CPP"
2542 else
2543 ac_cv_prog_CPP="$CPP"
2544 fi
2545 echo "$ac_t""$CPP" 1>&6
2546
2547 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2548 echo "configure:2549: checking for ANSI C header files" >&5
2549 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2550 echo $ac_n "(cached) $ac_c" 1>&6
2551 else
2552 cat > conftest.$ac_ext <<EOF
2553 #line 2554 "configure"
2554 #include "confdefs.h"
2555 #include <stdlib.h>
2556 #include <stdarg.h>
2557 #include <string.h>
2558 #include <float.h>
2559 EOF
2560 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2561 { (eval echo configure:2562: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2562 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2563 if test -z "$ac_err"; then
2564 rm -rf conftest*
2565 ac_cv_header_stdc=yes
2566 else
2567 echo "$ac_err" >&5
2568 echo "configure: failed program was:" >&5
2569 cat conftest.$ac_ext >&5
2570 rm -rf conftest*
2571 ac_cv_header_stdc=no
2572 fi
2573 rm -f conftest*
2574
2575 if test $ac_cv_header_stdc = yes; then
2576 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2577 cat > conftest.$ac_ext <<EOF
2578 #line 2579 "configure"
2579 #include "confdefs.h"
2580 #include <string.h>
2581 EOF
2582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2583 egrep "memchr" >/dev/null 2>&1; then
2584 :
2585 else
2586 rm -rf conftest*
2587 ac_cv_header_stdc=no
2588 fi
2589 rm -f conftest*
2590
2591 fi
2592
2593 if test $ac_cv_header_stdc = yes; then
2594 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2595 cat > conftest.$ac_ext <<EOF
2596 #line 2597 "configure"
2597 #include "confdefs.h"
2598 #include <stdlib.h>
2599 EOF
2600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2601 egrep "free" >/dev/null 2>&1; then
2602 :
2603 else
2604 rm -rf conftest*
2605 ac_cv_header_stdc=no
2606 fi
2607 rm -f conftest*
2608
2609 fi
2610
2611 if test $ac_cv_header_stdc = yes; then
2612 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2613 if test "$cross_compiling" = yes; then
2614 :
2615 else
2616 cat > conftest.$ac_ext <<EOF
2617 #line 2618 "configure"
2618 #include "confdefs.h"
2619 #include <ctype.h>
2620 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2621 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2622 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2623 int main () { int i; for (i = 0; i < 256; i++)
2624 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2625 exit (0); }
2626
2627 EOF
2628 if { (eval echo configure:2629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2629 then
2630 :
2631 else
2632 echo "configure: failed program was:" >&5
2633 cat conftest.$ac_ext >&5
2634 rm -fr conftest*
2635 ac_cv_header_stdc=no
2636 fi
2637 rm -fr conftest*
2638 fi
2639
2640 fi
2641 fi
2642
2643 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2644 if test $ac_cv_header_stdc = yes; then
2645 cat >> confdefs.h <<\EOF
2646 #define STDC_HEADERS 1
2647 EOF
2648
2649 fi
2650
2651 echo $ac_n "checking for working const""... $ac_c" 1>&6
2652 echo "configure:2653: checking for working const" >&5
2653 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2654 echo $ac_n "(cached) $ac_c" 1>&6
2655 else
2656 cat > conftest.$ac_ext <<EOF
2657 #line 2658 "configure"
2658 #include "confdefs.h"
2659
2660 int main() {
2661
2662 /* Ultrix mips cc rejects this. */
2663 typedef int charset[2]; const charset x;
2664 /* SunOS 4.1.1 cc rejects this. */
2665 char const *const *ccp;
2666 char **p;
2667 /* NEC SVR4.0.2 mips cc rejects this. */
2668 struct point {int x, y;};
2669 static struct point const zero = {0,0};
2670 /* AIX XL C 1.02.0.0 rejects this.
2671 It does not let you subtract one const X* pointer from another in an arm
2672 of an if-expression whose if-part is not a constant expression */
2673 const char *g = "string";
2674 ccp = &g + (g ? g-g : 0);
2675 /* HPUX 7.0 cc rejects these. */
2676 ++ccp;
2677 p = (char**) ccp;
2678 ccp = (char const *const *) p;
2679 { /* SCO 3.2v4 cc rejects this. */
2680 char *t;
2681 char const *s = 0 ? (char *) 0 : (char const *) 0;
2682
2683 *t++ = 0;
2684 }
2685 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2686 int x[] = {25, 17};
2687 const int *foo = &x[0];
2688 ++foo;
2689 }
2690 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2691 typedef const int *iptr;
2692 iptr p = 0;
2693 ++p;
2694 }
2695 { /* AIX XL C 1.02.0.0 rejects this saying
2696 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2697 struct s { int j; const int *ap[3]; };
2698 struct s *b; b->j = 5;
2699 }
2700 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2701 const int foo = 10;
2702 }
2703
2704 ; return 0; }
2705 EOF
2706 if { (eval echo configure:2707: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2707 rm -rf conftest*
2708 ac_cv_c_const=yes
2709 else
2710 echo "configure: failed program was:" >&5
2711 cat conftest.$ac_ext >&5
2712 rm -rf conftest*
2713 ac_cv_c_const=no
2714 fi
2715 rm -f conftest*
2716 fi
2717
2718 echo "$ac_t""$ac_cv_c_const" 1>&6
2719 if test $ac_cv_c_const = no; then
2720 cat >> confdefs.h <<\EOF
2721 #define const
2722 EOF
2723
2724 fi
2725
2726 echo $ac_n "checking for inline""... $ac_c" 1>&6
2727 echo "configure:2728: checking for inline" >&5
2728 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2729 echo $ac_n "(cached) $ac_c" 1>&6
2730 else
2731 ac_cv_c_inline=no
2732 for ac_kw in inline __inline__ __inline; do
2733 cat > conftest.$ac_ext <<EOF
2734 #line 2735 "configure"
2735 #include "confdefs.h"
2736
2737 int main() {
2738 } $ac_kw foo() {
2739 ; return 0; }
2740 EOF
2741 if { (eval echo configure:2742: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2742 rm -rf conftest*
2743 ac_cv_c_inline=$ac_kw; break
2744 else
2745 echo "configure: failed program was:" >&5
2746 cat conftest.$ac_ext >&5
2747 fi
2748 rm -f conftest*
2749 done
2750
2751 fi
2752
2753 echo "$ac_t""$ac_cv_c_inline" 1>&6
2754 case "$ac_cv_c_inline" in
2755 inline | yes) ;;
2756 no) cat >> confdefs.h <<\EOF
2757 #define inline
2758 EOF
2759 ;;
2760 *) cat >> confdefs.h <<EOF
2761 #define inline $ac_cv_c_inline
2762 EOF
2763 ;;
2764 esac
2765
2766 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2767 echo "configure:2768: checking for off_t" >&5
2768 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2769 echo $ac_n "(cached) $ac_c" 1>&6
2770 else
2771 cat > conftest.$ac_ext <<EOF
2772 #line 2773 "configure"
2773 #include "confdefs.h"
2774 #include <sys/types.h>
2775 #if STDC_HEADERS
2776 #include <stdlib.h>
2777 #include <stddef.h>
2778 #endif
2779 EOF
2780 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2781 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2782 rm -rf conftest*
2783 ac_cv_type_off_t=yes
2784 else
2785 rm -rf conftest*
2786 ac_cv_type_off_t=no
2787 fi
2788 rm -f conftest*
2789
2790 fi
2791 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2792 if test $ac_cv_type_off_t = no; then
2793 cat >> confdefs.h <<\EOF
2794 #define off_t long
2795 EOF
2796
2797 fi
2798
2799 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2800 echo "configure:2801: checking for size_t" >&5
2801 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2802 echo $ac_n "(cached) $ac_c" 1>&6
2803 else
2804 cat > conftest.$ac_ext <<EOF
2805 #line 2806 "configure"
2806 #include "confdefs.h"
2807 #include <sys/types.h>
2808 #if STDC_HEADERS
2809 #include <stdlib.h>
2810 #include <stddef.h>
2811 #endif
2812 EOF
2813 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2814 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2815 rm -rf conftest*
2816 ac_cv_type_size_t=yes
2817 else
2818 rm -rf conftest*
2819 ac_cv_type_size_t=no
2820 fi
2821 rm -f conftest*
2822
2823 fi
2824 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2825 if test $ac_cv_type_size_t = no; then
2826 cat >> confdefs.h <<\EOF
2827 #define size_t unsigned
2828 EOF
2829
2830 fi
2831
2832 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2833 # for constant arguments. Useless!
2834 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2835 echo "configure:2836: checking for working alloca.h" >&5
2836 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2837 echo $ac_n "(cached) $ac_c" 1>&6
2838 else
2839 cat > conftest.$ac_ext <<EOF
2840 #line 2841 "configure"
2841 #include "confdefs.h"
2842 #include <alloca.h>
2843 int main() {
2844 char *p = alloca(2 * sizeof(int));
2845 ; return 0; }
2846 EOF
2847 if { (eval echo configure:2848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2848 rm -rf conftest*
2849 ac_cv_header_alloca_h=yes
2850 else
2851 echo "configure: failed program was:" >&5
2852 cat conftest.$ac_ext >&5
2853 rm -rf conftest*
2854 ac_cv_header_alloca_h=no
2855 fi
2856 rm -f conftest*
2857 fi
2858
2859 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2860 if test $ac_cv_header_alloca_h = yes; then
2861 cat >> confdefs.h <<\EOF
2862 #define HAVE_ALLOCA_H 1
2863 EOF
2864
2865 fi
2866
2867 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2868 echo "configure:2869: checking for alloca" >&5
2869 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2870 echo $ac_n "(cached) $ac_c" 1>&6
2871 else
2872 cat > conftest.$ac_ext <<EOF
2873 #line 2874 "configure"
2874 #include "confdefs.h"
2875
2876 #ifdef __GNUC__
2877 # define alloca __builtin_alloca
2878 #else
2879 # ifdef _MSC_VER
2880 # include <malloc.h>
2881 # define alloca _alloca
2882 # else
2883 # if HAVE_ALLOCA_H
2884 # include <alloca.h>
2885 # else
2886 # ifdef _AIX
2887 #pragma alloca
2888 # else
2889 # ifndef alloca /* predefined by HP cc +Olibcalls */
2890 char *alloca ();
2891 # endif
2892 # endif
2893 # endif
2894 # endif
2895 #endif
2896
2897 int main() {
2898 char *p = (char *) alloca(1);
2899 ; return 0; }
2900 EOF
2901 if { (eval echo configure:2902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2902 rm -rf conftest*
2903 ac_cv_func_alloca_works=yes
2904 else
2905 echo "configure: failed program was:" >&5
2906 cat conftest.$ac_ext >&5
2907 rm -rf conftest*
2908 ac_cv_func_alloca_works=no
2909 fi
2910 rm -f conftest*
2911 fi
2912
2913 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2914 if test $ac_cv_func_alloca_works = yes; then
2915 cat >> confdefs.h <<\EOF
2916 #define HAVE_ALLOCA 1
2917 EOF
2918
2919 fi
2920
2921 if test $ac_cv_func_alloca_works = no; then
2922 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2923 # that cause trouble. Some versions do not even contain alloca or
2924 # contain a buggy version. If you still want to use their alloca,
2925 # use ar to extract alloca.o from them instead of compiling alloca.c.
2926 ALLOCA=alloca.${ac_objext}
2927 cat >> confdefs.h <<\EOF
2928 #define C_ALLOCA 1
2929 EOF
2930
2931
2932 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2933 echo "configure:2934: checking whether alloca needs Cray hooks" >&5
2934 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2935 echo $ac_n "(cached) $ac_c" 1>&6
2936 else
2937 cat > conftest.$ac_ext <<EOF
2938 #line 2939 "configure"
2939 #include "confdefs.h"
2940 #if defined(CRAY) && ! defined(CRAY2)
2941 webecray
2942 #else
2943 wenotbecray
2944 #endif
2945
2946 EOF
2947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2948 egrep "webecray" >/dev/null 2>&1; then
2949 rm -rf conftest*
2950 ac_cv_os_cray=yes
2951 else
2952 rm -rf conftest*
2953 ac_cv_os_cray=no
2954 fi
2955 rm -f conftest*
2956
2957 fi
2958
2959 echo "$ac_t""$ac_cv_os_cray" 1>&6
2960 if test $ac_cv_os_cray = yes; then
2961 for ac_func in _getb67 GETB67 getb67; do
2962 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2963 echo "configure:2964: checking for $ac_func" >&5
2964 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2965 echo $ac_n "(cached) $ac_c" 1>&6
2966 else
2967 cat > conftest.$ac_ext <<EOF
2968 #line 2969 "configure"
2969 #include "confdefs.h"
2970 /* System header to define __stub macros and hopefully few prototypes,
2971 which can conflict with char $ac_func(); below. */
2972 #include <assert.h>
2973 /* Override any gcc2 internal prototype to avoid an error. */
2974 /* We use char because int might match the return type of a gcc2
2975 builtin and then its argument prototype would still apply. */
2976 char $ac_func();
2977
2978 int main() {
2979
2980 /* The GNU C library defines this for functions which it implements
2981 to always fail with ENOSYS. Some functions are actually named
2982 something starting with __ and the normal name is an alias. */
2983 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2984 choke me
2985 #else
2986 $ac_func();
2987 #endif
2988
2989 ; return 0; }
2990 EOF
2991 if { (eval echo configure:2992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2992 rm -rf conftest*
2993 eval "ac_cv_func_$ac_func=yes"
2994 else
2995 echo "configure: failed program was:" >&5
2996 cat conftest.$ac_ext >&5
2997 rm -rf conftest*
2998 eval "ac_cv_func_$ac_func=no"
2999 fi
3000 rm -f conftest*
3001 fi
3002
3003 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3004 echo "$ac_t""yes" 1>&6
3005 cat >> confdefs.h <<EOF
3006 #define CRAY_STACKSEG_END $ac_func
3007 EOF
3008
3009 break
3010 else
3011 echo "$ac_t""no" 1>&6
3012 fi
3013
3014 done
3015 fi
3016
3017 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3018 echo "configure:3019: checking stack direction for C alloca" >&5
3019 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3020 echo $ac_n "(cached) $ac_c" 1>&6
3021 else
3022 if test "$cross_compiling" = yes; then
3023 ac_cv_c_stack_direction=0
3024 else
3025 cat > conftest.$ac_ext <<EOF
3026 #line 3027 "configure"
3027 #include "confdefs.h"
3028 find_stack_direction ()
3029 {
3030 static char *addr = 0;
3031 auto char dummy;
3032 if (addr == 0)
3033 {
3034 addr = &dummy;
3035 return find_stack_direction ();
3036 }
3037 else
3038 return (&dummy > addr) ? 1 : -1;
3039 }
3040 main ()
3041 {
3042 exit (find_stack_direction() < 0);
3043 }
3044 EOF
3045 if { (eval echo configure:3046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3046 then
3047 ac_cv_c_stack_direction=1
3048 else
3049 echo "configure: failed program was:" >&5
3050 cat conftest.$ac_ext >&5
3051 rm -fr conftest*
3052 ac_cv_c_stack_direction=-1
3053 fi
3054 rm -fr conftest*
3055 fi
3056
3057 fi
3058
3059 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3060 cat >> confdefs.h <<EOF
3061 #define STACK_DIRECTION $ac_cv_c_stack_direction
3062 EOF
3063
3064 fi
3065
3066 for ac_hdr in unistd.h
3067 do
3068 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3069 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3070 echo "configure:3071: checking for $ac_hdr" >&5
3071 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3072 echo $ac_n "(cached) $ac_c" 1>&6
3073 else
3074 cat > conftest.$ac_ext <<EOF
3075 #line 3076 "configure"
3076 #include "confdefs.h"
3077 #include <$ac_hdr>
3078 EOF
3079 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3080 { (eval echo configure:3081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3081 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3082 if test -z "$ac_err"; then
3083 rm -rf conftest*
3084 eval "ac_cv_header_$ac_safe=yes"
3085 else
3086 echo "$ac_err" >&5
3087 echo "configure: failed program was:" >&5
3088 cat conftest.$ac_ext >&5
3089 rm -rf conftest*
3090 eval "ac_cv_header_$ac_safe=no"
3091 fi
3092 rm -f conftest*
3093 fi
3094 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3095 echo "$ac_t""yes" 1>&6
3096 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3097 cat >> confdefs.h <<EOF
3098 #define $ac_tr_hdr 1
3099 EOF
3100
3101 else
3102 echo "$ac_t""no" 1>&6
3103 fi
3104 done
3105
3106 for ac_func in getpagesize
3107 do
3108 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3109 echo "configure:3110: checking for $ac_func" >&5
3110 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3111 echo $ac_n "(cached) $ac_c" 1>&6
3112 else
3113 cat > conftest.$ac_ext <<EOF
3114 #line 3115 "configure"
3115 #include "confdefs.h"
3116 /* System header to define __stub macros and hopefully few prototypes,
3117 which can conflict with char $ac_func(); below. */
3118 #include <assert.h>
3119 /* Override any gcc2 internal prototype to avoid an error. */
3120 /* We use char because int might match the return type of a gcc2
3121 builtin and then its argument prototype would still apply. */
3122 char $ac_func();
3123
3124 int main() {
3125
3126 /* The GNU C library defines this for functions which it implements
3127 to always fail with ENOSYS. Some functions are actually named
3128 something starting with __ and the normal name is an alias. */
3129 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3130 choke me
3131 #else
3132 $ac_func();
3133 #endif
3134
3135 ; return 0; }
3136 EOF
3137 if { (eval echo configure:3138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3138 rm -rf conftest*
3139 eval "ac_cv_func_$ac_func=yes"
3140 else
3141 echo "configure: failed program was:" >&5
3142 cat conftest.$ac_ext >&5
3143 rm -rf conftest*
3144 eval "ac_cv_func_$ac_func=no"
3145 fi
3146 rm -f conftest*
3147 fi
3148
3149 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3150 echo "$ac_t""yes" 1>&6
3151 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3152 cat >> confdefs.h <<EOF
3153 #define $ac_tr_func 1
3154 EOF
3155
3156 else
3157 echo "$ac_t""no" 1>&6
3158 fi
3159 done
3160
3161 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3162 echo "configure:3163: checking for working mmap" >&5
3163 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3164 echo $ac_n "(cached) $ac_c" 1>&6
3165 else
3166 if test "$cross_compiling" = yes; then
3167 ac_cv_func_mmap_fixed_mapped=no
3168 else
3169 cat > conftest.$ac_ext <<EOF
3170 #line 3171 "configure"
3171 #include "confdefs.h"
3172
3173 /* Thanks to Mike Haertel and Jim Avera for this test.
3174 Here is a matrix of mmap possibilities:
3175 mmap private not fixed
3176 mmap private fixed at somewhere currently unmapped
3177 mmap private fixed at somewhere already mapped
3178 mmap shared not fixed
3179 mmap shared fixed at somewhere currently unmapped
3180 mmap shared fixed at somewhere already mapped
3181 For private mappings, we should verify that changes cannot be read()
3182 back from the file, nor mmap's back from the file at a different
3183 address. (There have been systems where private was not correctly
3184 implemented like the infamous i386 svr4.0, and systems where the
3185 VM page cache was not coherent with the filesystem buffer cache
3186 like early versions of FreeBSD and possibly contemporary NetBSD.)
3187 For shared mappings, we should conversely verify that changes get
3188 propogated back to all the places they're supposed to be.
3189
3190 Grep wants private fixed already mapped.
3191 The main things grep needs to know about mmap are:
3192 * does it exist and is it safe to write into the mmap'd area
3193 * how to use it (BSD variants) */
3194 #include <sys/types.h>
3195 #include <fcntl.h>
3196 #include <sys/mman.h>
3197
3198 /* This mess was copied from the GNU getpagesize.h. */
3199 #ifndef HAVE_GETPAGESIZE
3200 # ifdef HAVE_UNISTD_H
3201 # include <unistd.h>
3202 # endif
3203
3204 /* Assume that all systems that can run configure have sys/param.h. */
3205 # ifndef HAVE_SYS_PARAM_H
3206 # define HAVE_SYS_PARAM_H 1
3207 # endif
3208
3209 # ifdef _SC_PAGESIZE
3210 # define getpagesize() sysconf(_SC_PAGESIZE)
3211 # else /* no _SC_PAGESIZE */
3212 # ifdef HAVE_SYS_PARAM_H
3213 # include <sys/param.h>
3214 # ifdef EXEC_PAGESIZE
3215 # define getpagesize() EXEC_PAGESIZE
3216 # else /* no EXEC_PAGESIZE */
3217 # ifdef NBPG
3218 # define getpagesize() NBPG * CLSIZE
3219 # ifndef CLSIZE
3220 # define CLSIZE 1
3221 # endif /* no CLSIZE */
3222 # else /* no NBPG */
3223 # ifdef NBPC
3224 # define getpagesize() NBPC
3225 # else /* no NBPC */
3226 # ifdef PAGESIZE
3227 # define getpagesize() PAGESIZE
3228 # endif /* PAGESIZE */
3229 # endif /* no NBPC */
3230 # endif /* no NBPG */
3231 # endif /* no EXEC_PAGESIZE */
3232 # else /* no HAVE_SYS_PARAM_H */
3233 # define getpagesize() 8192 /* punt totally */
3234 # endif /* no HAVE_SYS_PARAM_H */
3235 # endif /* no _SC_PAGESIZE */
3236
3237 #endif /* no HAVE_GETPAGESIZE */
3238
3239 #ifdef __cplusplus
3240 extern "C" { void *malloc(unsigned); }
3241 #else
3242 char *malloc();
3243 #endif
3244
3245 int
3246 main()
3247 {
3248 char *data, *data2, *data3;
3249 int i, pagesize;
3250 int fd;
3251
3252 pagesize = getpagesize();
3253
3254 /*
3255 * First, make a file with some known garbage in it.
3256 */
3257 data = malloc(pagesize);
3258 if (!data)
3259 exit(1);
3260 for (i = 0; i < pagesize; ++i)
3261 *(data + i) = rand();
3262 umask(0);
3263 fd = creat("conftestmmap", 0600);
3264 if (fd < 0)
3265 exit(1);
3266 if (write(fd, data, pagesize) != pagesize)
3267 exit(1);
3268 close(fd);
3269
3270 /*
3271 * Next, try to mmap the file at a fixed address which
3272 * already has something else allocated at it. If we can,
3273 * also make sure that we see the same garbage.
3274 */
3275 fd = open("conftestmmap", O_RDWR);
3276 if (fd < 0)
3277 exit(1);
3278 data2 = malloc(2 * pagesize);
3279 if (!data2)
3280 exit(1);
3281 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3282 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3283 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3284 exit(1);
3285 for (i = 0; i < pagesize; ++i)
3286 if (*(data + i) != *(data2 + i))
3287 exit(1);
3288
3289 /*
3290 * Finally, make sure that changes to the mapped area
3291 * do not percolate back to the file as seen by read().
3292 * (This is a bug on some variants of i386 svr4.0.)
3293 */
3294 for (i = 0; i < pagesize; ++i)
3295 *(data2 + i) = *(data2 + i) + 1;
3296 data3 = malloc(pagesize);
3297 if (!data3)
3298 exit(1);
3299 if (read(fd, data3, pagesize) != pagesize)
3300 exit(1);
3301 for (i = 0; i < pagesize; ++i)
3302 if (*(data + i) != *(data3 + i))
3303 exit(1);
3304 close(fd);
3305 unlink("conftestmmap");
3306 exit(0);
3307 }
3308
3309 EOF
3310 if { (eval echo configure:3311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3311 then
3312 ac_cv_func_mmap_fixed_mapped=yes
3313 else
3314 echo "configure: failed program was:" >&5
3315 cat conftest.$ac_ext >&5
3316 rm -fr conftest*
3317 ac_cv_func_mmap_fixed_mapped=no
3318 fi
3319 rm -fr conftest*
3320 fi
3321
3322 fi
3323
3324 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3325 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3326 cat >> confdefs.h <<\EOF
3327 #define HAVE_MMAP 1
3328 EOF
3329
3330 fi
3331
3332
3333 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3334 unistd.h values.h sys/param.h
3335 do
3336 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3337 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3338 echo "configure:3339: checking for $ac_hdr" >&5
3339 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3340 echo $ac_n "(cached) $ac_c" 1>&6
3341 else
3342 cat > conftest.$ac_ext <<EOF
3343 #line 3344 "configure"
3344 #include "confdefs.h"
3345 #include <$ac_hdr>
3346 EOF
3347 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3348 { (eval echo configure:3349: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3349 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3350 if test -z "$ac_err"; then
3351 rm -rf conftest*
3352 eval "ac_cv_header_$ac_safe=yes"
3353 else
3354 echo "$ac_err" >&5
3355 echo "configure: failed program was:" >&5
3356 cat conftest.$ac_ext >&5
3357 rm -rf conftest*
3358 eval "ac_cv_header_$ac_safe=no"
3359 fi
3360 rm -f conftest*
3361 fi
3362 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3363 echo "$ac_t""yes" 1>&6
3364 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3365 cat >> confdefs.h <<EOF
3366 #define $ac_tr_hdr 1
3367 EOF
3368
3369 else
3370 echo "$ac_t""no" 1>&6
3371 fi
3372 done
3373
3374 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3375 __argz_count __argz_stringify __argz_next
3376 do
3377 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3378 echo "configure:3379: checking for $ac_func" >&5
3379 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3380 echo $ac_n "(cached) $ac_c" 1>&6
3381 else
3382 cat > conftest.$ac_ext <<EOF
3383 #line 3384 "configure"
3384 #include "confdefs.h"
3385 /* System header to define __stub macros and hopefully few prototypes,
3386 which can conflict with char $ac_func(); below. */
3387 #include <assert.h>
3388 /* Override any gcc2 internal prototype to avoid an error. */
3389 /* We use char because int might match the return type of a gcc2
3390 builtin and then its argument prototype would still apply. */
3391 char $ac_func();
3392
3393 int main() {
3394
3395 /* The GNU C library defines this for functions which it implements
3396 to always fail with ENOSYS. Some functions are actually named
3397 something starting with __ and the normal name is an alias. */
3398 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3399 choke me
3400 #else
3401 $ac_func();
3402 #endif
3403
3404 ; return 0; }
3405 EOF
3406 if { (eval echo configure:3407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3407 rm -rf conftest*
3408 eval "ac_cv_func_$ac_func=yes"
3409 else
3410 echo "configure: failed program was:" >&5
3411 cat conftest.$ac_ext >&5
3412 rm -rf conftest*
3413 eval "ac_cv_func_$ac_func=no"
3414 fi
3415 rm -f conftest*
3416 fi
3417
3418 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3419 echo "$ac_t""yes" 1>&6
3420 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3421 cat >> confdefs.h <<EOF
3422 #define $ac_tr_func 1
3423 EOF
3424
3425 else
3426 echo "$ac_t""no" 1>&6
3427 fi
3428 done
3429
3430
3431 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3432 for ac_func in stpcpy
3433 do
3434 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3435 echo "configure:3436: checking for $ac_func" >&5
3436 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3437 echo $ac_n "(cached) $ac_c" 1>&6
3438 else
3439 cat > conftest.$ac_ext <<EOF
3440 #line 3441 "configure"
3441 #include "confdefs.h"
3442 /* System header to define __stub macros and hopefully few prototypes,
3443 which can conflict with char $ac_func(); below. */
3444 #include <assert.h>
3445 /* Override any gcc2 internal prototype to avoid an error. */
3446 /* We use char because int might match the return type of a gcc2
3447 builtin and then its argument prototype would still apply. */
3448 char $ac_func();
3449
3450 int main() {
3451
3452 /* The GNU C library defines this for functions which it implements
3453 to always fail with ENOSYS. Some functions are actually named
3454 something starting with __ and the normal name is an alias. */
3455 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3456 choke me
3457 #else
3458 $ac_func();
3459 #endif
3460
3461 ; return 0; }
3462 EOF
3463 if { (eval echo configure:3464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3464 rm -rf conftest*
3465 eval "ac_cv_func_$ac_func=yes"
3466 else
3467 echo "configure: failed program was:" >&5
3468 cat conftest.$ac_ext >&5
3469 rm -rf conftest*
3470 eval "ac_cv_func_$ac_func=no"
3471 fi
3472 rm -f conftest*
3473 fi
3474
3475 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3476 echo "$ac_t""yes" 1>&6
3477 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3478 cat >> confdefs.h <<EOF
3479 #define $ac_tr_func 1
3480 EOF
3481
3482 else
3483 echo "$ac_t""no" 1>&6
3484 fi
3485 done
3486
3487 fi
3488 if test "${ac_cv_func_stpcpy}" = "yes"; then
3489 cat >> confdefs.h <<\EOF
3490 #define HAVE_STPCPY 1
3491 EOF
3492
3493 fi
3494
3495 if test $ac_cv_header_locale_h = yes; then
3496 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3497 echo "configure:3498: checking for LC_MESSAGES" >&5
3498 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3499 echo $ac_n "(cached) $ac_c" 1>&6
3500 else
3501 cat > conftest.$ac_ext <<EOF
3502 #line 3503 "configure"
3503 #include "confdefs.h"
3504 #include <locale.h>
3505 int main() {
3506 return LC_MESSAGES
3507 ; return 0; }
3508 EOF
3509 if { (eval echo configure:3510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3510 rm -rf conftest*
3511 am_cv_val_LC_MESSAGES=yes
3512 else
3513 echo "configure: failed program was:" >&5
3514 cat conftest.$ac_ext >&5
3515 rm -rf conftest*
3516 am_cv_val_LC_MESSAGES=no
3517 fi
3518 rm -f conftest*
3519 fi
3520
3521 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3522 if test $am_cv_val_LC_MESSAGES = yes; then
3523 cat >> confdefs.h <<\EOF
3524 #define HAVE_LC_MESSAGES 1
3525 EOF
3526
3527 fi
3528 fi
3529 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3530 echo "configure:3531: checking whether NLS is requested" >&5
3531 # Check whether --enable-nls or --disable-nls was given.
3532 if test "${enable_nls+set}" = set; then
3533 enableval="$enable_nls"
3534 USE_NLS=$enableval
3535 else
3536 USE_NLS=yes
3537 fi
3538
3539 echo "$ac_t""$USE_NLS" 1>&6
3540
3541
3542 USE_INCLUDED_LIBINTL=no
3543
3544 if test "$USE_NLS" = "yes"; then
3545 cat >> confdefs.h <<\EOF
3546 #define ENABLE_NLS 1
3547 EOF
3548
3549 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3550 echo "configure:3551: checking whether included gettext is requested" >&5
3551 # Check whether --with-included-gettext or --without-included-gettext was given.
3552 if test "${with_included_gettext+set}" = set; then
3553 withval="$with_included_gettext"
3554 nls_cv_force_use_gnu_gettext=$withval
3555 else
3556 nls_cv_force_use_gnu_gettext=no
3557 fi
3558
3559 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3560
3561 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
3562 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3563 nls_cv_header_intl=
3564 nls_cv_header_libgt=
3565 CATOBJEXT=NONE
3566
3567 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3568 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3569 echo "configure:3570: checking for libintl.h" >&5
3570 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3571 echo $ac_n "(cached) $ac_c" 1>&6
3572 else
3573 cat > conftest.$ac_ext <<EOF
3574 #line 3575 "configure"
3575 #include "confdefs.h"
3576 #include <libintl.h>
3577 EOF
3578 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3579 { (eval echo configure:3580: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3580 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3581 if test -z "$ac_err"; then
3582 rm -rf conftest*
3583 eval "ac_cv_header_$ac_safe=yes"
3584 else
3585 echo "$ac_err" >&5
3586 echo "configure: failed program was:" >&5
3587 cat conftest.$ac_ext >&5
3588 rm -rf conftest*
3589 eval "ac_cv_header_$ac_safe=no"
3590 fi
3591 rm -f conftest*
3592 fi
3593 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3594 echo "$ac_t""yes" 1>&6
3595 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3596 echo "configure:3597: checking for gettext in libc" >&5
3597 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3598 echo $ac_n "(cached) $ac_c" 1>&6
3599 else
3600 cat > conftest.$ac_ext <<EOF
3601 #line 3602 "configure"
3602 #include "confdefs.h"
3603 #include <libintl.h>
3604 int main() {
3605 return (int) gettext ("")
3606 ; return 0; }
3607 EOF
3608 if { (eval echo configure:3609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3609 rm -rf conftest*
3610 gt_cv_func_gettext_libc=yes
3611 else
3612 echo "configure: failed program was:" >&5
3613 cat conftest.$ac_ext >&5
3614 rm -rf conftest*
3615 gt_cv_func_gettext_libc=no
3616 fi
3617 rm -f conftest*
3618 fi
3619
3620 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3621
3622 if test "$gt_cv_func_gettext_libc" != "yes"; then
3623 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3624 echo "configure:3625: checking for bindtextdomain in -lintl" >&5
3625 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3626 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3627 echo $ac_n "(cached) $ac_c" 1>&6
3628 else
3629 ac_save_LIBS="$LIBS"
3630 LIBS="-lintl $LIBS"
3631 cat > conftest.$ac_ext <<EOF
3632 #line 3633 "configure"
3633 #include "confdefs.h"
3634 /* Override any gcc2 internal prototype to avoid an error. */
3635 /* We use char because int might match the return type of a gcc2
3636 builtin and then its argument prototype would still apply. */
3637 char bindtextdomain();
3638
3639 int main() {
3640 bindtextdomain()
3641 ; return 0; }
3642 EOF
3643 if { (eval echo configure:3644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3644 rm -rf conftest*
3645 eval "ac_cv_lib_$ac_lib_var=yes"
3646 else
3647 echo "configure: failed program was:" >&5
3648 cat conftest.$ac_ext >&5
3649 rm -rf conftest*
3650 eval "ac_cv_lib_$ac_lib_var=no"
3651 fi
3652 rm -f conftest*
3653 LIBS="$ac_save_LIBS"
3654
3655 fi
3656 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3657 echo "$ac_t""yes" 1>&6
3658 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3659 echo "configure:3660: checking for gettext in libintl" >&5
3660 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3661 echo $ac_n "(cached) $ac_c" 1>&6
3662 else
3663 cat > conftest.$ac_ext <<EOF
3664 #line 3665 "configure"
3665 #include "confdefs.h"
3666
3667 int main() {
3668 return (int) gettext ("")
3669 ; return 0; }
3670 EOF
3671 if { (eval echo configure:3672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3672 rm -rf conftest*
3673 gt_cv_func_gettext_libintl=yes
3674 else
3675 echo "configure: failed program was:" >&5
3676 cat conftest.$ac_ext >&5
3677 rm -rf conftest*
3678 gt_cv_func_gettext_libintl=no
3679 fi
3680 rm -f conftest*
3681 fi
3682
3683 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3684 else
3685 echo "$ac_t""no" 1>&6
3686 fi
3687
3688 fi
3689
3690 if test "$gt_cv_func_gettext_libc" = "yes" \
3691 || test "$gt_cv_func_gettext_libintl" = "yes"; then
3692 cat >> confdefs.h <<\EOF
3693 #define HAVE_GETTEXT 1
3694 EOF
3695
3696 # Extract the first word of "msgfmt", so it can be a program name with args.
3697 set dummy msgfmt; ac_word=$2
3698 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3699 echo "configure:3700: checking for $ac_word" >&5
3700 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3701 echo $ac_n "(cached) $ac_c" 1>&6
3702 else
3703 case "$MSGFMT" in
3704 /*)
3705 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3706 ;;
3707 *)
3708 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3709 for ac_dir in $PATH; do
3710 test -z "$ac_dir" && ac_dir=.
3711 if test -f $ac_dir/$ac_word; then
3712 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3713 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3714 break
3715 fi
3716 fi
3717 done
3718 IFS="$ac_save_ifs"
3719 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
3720 ;;
3721 esac
3722 fi
3723 MSGFMT="$ac_cv_path_MSGFMT"
3724 if test -n "$MSGFMT"; then
3725 echo "$ac_t""$MSGFMT" 1>&6
3726 else
3727 echo "$ac_t""no" 1>&6
3728 fi
3729 if test "$MSGFMT" != "no"; then
3730 for ac_func in dcgettext
3731 do
3732 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3733 echo "configure:3734: checking for $ac_func" >&5
3734 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3735 echo $ac_n "(cached) $ac_c" 1>&6
3736 else
3737 cat > conftest.$ac_ext <<EOF
3738 #line 3739 "configure"
3739 #include "confdefs.h"
3740 /* System header to define __stub macros and hopefully few prototypes,
3741 which can conflict with char $ac_func(); below. */
3742 #include <assert.h>
3743 /* Override any gcc2 internal prototype to avoid an error. */
3744 /* We use char because int might match the return type of a gcc2
3745 builtin and then its argument prototype would still apply. */
3746 char $ac_func();
3747
3748 int main() {
3749
3750 /* The GNU C library defines this for functions which it implements
3751 to always fail with ENOSYS. Some functions are actually named
3752 something starting with __ and the normal name is an alias. */
3753 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3754 choke me
3755 #else
3756 $ac_func();
3757 #endif
3758
3759 ; return 0; }
3760 EOF
3761 if { (eval echo configure:3762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3762 rm -rf conftest*
3763 eval "ac_cv_func_$ac_func=yes"
3764 else
3765 echo "configure: failed program was:" >&5
3766 cat conftest.$ac_ext >&5
3767 rm -rf conftest*
3768 eval "ac_cv_func_$ac_func=no"
3769 fi
3770 rm -f conftest*
3771 fi
3772
3773 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3774 echo "$ac_t""yes" 1>&6
3775 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3776 cat >> confdefs.h <<EOF
3777 #define $ac_tr_func 1
3778 EOF
3779
3780 else
3781 echo "$ac_t""no" 1>&6
3782 fi
3783 done
3784
3785 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3786 set dummy gmsgfmt; ac_word=$2
3787 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3788 echo "configure:3789: checking for $ac_word" >&5
3789 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3790 echo $ac_n "(cached) $ac_c" 1>&6
3791 else
3792 case "$GMSGFMT" in
3793 /*)
3794 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3795 ;;
3796 ?:/*)
3797 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3798 ;;
3799 *)
3800 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3801 ac_dummy="$PATH"
3802 for ac_dir in $ac_dummy; do
3803 test -z "$ac_dir" && ac_dir=.
3804 if test -f $ac_dir/$ac_word; then
3805 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3806 break
3807 fi
3808 done
3809 IFS="$ac_save_ifs"
3810 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3811 ;;
3812 esac
3813 fi
3814 GMSGFMT="$ac_cv_path_GMSGFMT"
3815 if test -n "$GMSGFMT"; then
3816 echo "$ac_t""$GMSGFMT" 1>&6
3817 else
3818 echo "$ac_t""no" 1>&6
3819 fi
3820
3821 # Extract the first word of "xgettext", so it can be a program name with args.
3822 set dummy xgettext; ac_word=$2
3823 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3824 echo "configure:3825: checking for $ac_word" >&5
3825 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3826 echo $ac_n "(cached) $ac_c" 1>&6
3827 else
3828 case "$XGETTEXT" in
3829 /*)
3830 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3831 ;;
3832 *)
3833 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3834 for ac_dir in $PATH; do
3835 test -z "$ac_dir" && ac_dir=.
3836 if test -f $ac_dir/$ac_word; then
3837 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3838 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3839 break
3840 fi
3841 fi
3842 done
3843 IFS="$ac_save_ifs"
3844 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3845 ;;
3846 esac
3847 fi
3848 XGETTEXT="$ac_cv_path_XGETTEXT"
3849 if test -n "$XGETTEXT"; then
3850 echo "$ac_t""$XGETTEXT" 1>&6
3851 else
3852 echo "$ac_t""no" 1>&6
3853 fi
3854
3855 cat > conftest.$ac_ext <<EOF
3856 #line 3857 "configure"
3857 #include "confdefs.h"
3858
3859 int main() {
3860 extern int _nl_msg_cat_cntr;
3861 return _nl_msg_cat_cntr
3862 ; return 0; }
3863 EOF
3864 if { (eval echo configure:3865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3865 rm -rf conftest*
3866 CATOBJEXT=.gmo
3867 DATADIRNAME=share
3868 else
3869 echo "configure: failed program was:" >&5
3870 cat conftest.$ac_ext >&5
3871 rm -rf conftest*
3872 CATOBJEXT=.mo
3873 DATADIRNAME=lib
3874 fi
3875 rm -f conftest*
3876 INSTOBJEXT=.mo
3877 fi
3878 fi
3879
3880 else
3881 echo "$ac_t""no" 1>&6
3882 fi
3883
3884
3885
3886 if test "$CATOBJEXT" = "NONE"; then
3887 nls_cv_use_gnu_gettext=yes
3888 fi
3889 fi
3890
3891 if test "$nls_cv_use_gnu_gettext" = "yes"; then
3892 INTLOBJS="\$(GETTOBJS)"
3893 # Extract the first word of "msgfmt", so it can be a program name with args.
3894 set dummy msgfmt; ac_word=$2
3895 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3896 echo "configure:3897: checking for $ac_word" >&5
3897 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3898 echo $ac_n "(cached) $ac_c" 1>&6
3899 else
3900 case "$MSGFMT" in
3901 /*)
3902 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3903 ;;
3904 *)
3905 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3906 for ac_dir in $PATH; do
3907 test -z "$ac_dir" && ac_dir=.
3908 if test -f $ac_dir/$ac_word; then
3909 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3910 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3911 break
3912 fi
3913 fi
3914 done
3915 IFS="$ac_save_ifs"
3916 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
3917 ;;
3918 esac
3919 fi
3920 MSGFMT="$ac_cv_path_MSGFMT"
3921 if test -n "$MSGFMT"; then
3922 echo "$ac_t""$MSGFMT" 1>&6
3923 else
3924 echo "$ac_t""no" 1>&6
3925 fi
3926
3927 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3928 set dummy gmsgfmt; ac_word=$2
3929 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3930 echo "configure:3931: checking for $ac_word" >&5
3931 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3932 echo $ac_n "(cached) $ac_c" 1>&6
3933 else
3934 case "$GMSGFMT" in
3935 /*)
3936 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3937 ;;
3938 ?:/*)
3939 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3940 ;;
3941 *)
3942 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3943 ac_dummy="$PATH"
3944 for ac_dir in $ac_dummy; do
3945 test -z "$ac_dir" && ac_dir=.
3946 if test -f $ac_dir/$ac_word; then
3947 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3948 break
3949 fi
3950 done
3951 IFS="$ac_save_ifs"
3952 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3953 ;;
3954 esac
3955 fi
3956 GMSGFMT="$ac_cv_path_GMSGFMT"
3957 if test -n "$GMSGFMT"; then
3958 echo "$ac_t""$GMSGFMT" 1>&6
3959 else
3960 echo "$ac_t""no" 1>&6
3961 fi
3962
3963 # Extract the first word of "xgettext", so it can be a program name with args.
3964 set dummy xgettext; ac_word=$2
3965 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3966 echo "configure:3967: checking for $ac_word" >&5
3967 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3968 echo $ac_n "(cached) $ac_c" 1>&6
3969 else
3970 case "$XGETTEXT" in
3971 /*)
3972 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3973 ;;
3974 *)
3975 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3976 for ac_dir in $PATH; do
3977 test -z "$ac_dir" && ac_dir=.
3978 if test -f $ac_dir/$ac_word; then
3979 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3980 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3981 break
3982 fi
3983 fi
3984 done
3985 IFS="$ac_save_ifs"
3986 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3987 ;;
3988 esac
3989 fi
3990 XGETTEXT="$ac_cv_path_XGETTEXT"
3991 if test -n "$XGETTEXT"; then
3992 echo "$ac_t""$XGETTEXT" 1>&6
3993 else
3994 echo "$ac_t""no" 1>&6
3995 fi
3996
3997
3998 USE_INCLUDED_LIBINTL=yes
3999 CATOBJEXT=.gmo
4000 INSTOBJEXT=.mo
4001 DATADIRNAME=share
4002 INTLDEPS='$(top_builddir)/../intl/libintl.a'
4003 INTLLIBS=$INTLDEPS
4004 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
4005 nls_cv_header_intl=libintl.h
4006 nls_cv_header_libgt=libgettext.h
4007 fi
4008
4009 if test "$XGETTEXT" != ":"; then
4010 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
4011 : ;
4012 else
4013 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
4014 XGETTEXT=":"
4015 fi
4016 fi
4017
4018 # We need to process the po/ directory.
4019 POSUB=po
4020 else
4021 DATADIRNAME=share
4022 nls_cv_header_intl=libintl.h
4023 nls_cv_header_libgt=libgettext.h
4024 fi
4025
4026 # If this is used in GNU gettext we have to set USE_NLS to `yes'
4027 # because some of the sources are only built for this goal.
4028 if test "$PACKAGE" = gettext; then
4029 USE_NLS=yes
4030 USE_INCLUDED_LIBINTL=yes
4031 fi
4032
4033 for lang in $ALL_LINGUAS; do
4034 GMOFILES="$GMOFILES $lang.gmo"
4035 POFILES="$POFILES $lang.po"
4036 done
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051 if test "x$CATOBJEXT" != "x"; then
4052 if test "x$ALL_LINGUAS" = "x"; then
4053 LINGUAS=
4054 else
4055 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4056 echo "configure:4057: checking for catalogs to be installed" >&5
4057 NEW_LINGUAS=
4058 for lang in ${LINGUAS=$ALL_LINGUAS}; do
4059 case "$ALL_LINGUAS" in
4060 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
4061 esac
4062 done
4063 LINGUAS=$NEW_LINGUAS
4064 echo "$ac_t""$LINGUAS" 1>&6
4065 fi
4066
4067 if test -n "$LINGUAS"; then
4068 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
4069 fi
4070 fi
4071
4072 if test $ac_cv_header_locale_h = yes; then
4073 INCLUDE_LOCALE_H="#include <locale.h>"
4074 else
4075 INCLUDE_LOCALE_H="\
4076 /* The system does not provide the header <locale.h>. Take care yourself. */"
4077 fi
4078
4079
4080 if test -f $srcdir/po2tbl.sed.in; then
4081 if test "$CATOBJEXT" = ".cat"; then
4082 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4083 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4084 echo "configure:4085: checking for linux/version.h" >&5
4085 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4086 echo $ac_n "(cached) $ac_c" 1>&6
4087 else
4088 cat > conftest.$ac_ext <<EOF
4089 #line 4090 "configure"
4090 #include "confdefs.h"
4091 #include <linux/version.h>
4092 EOF
4093 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4094 { (eval echo configure:4095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4095 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4096 if test -z "$ac_err"; then
4097 rm -rf conftest*
4098 eval "ac_cv_header_$ac_safe=yes"
4099 else
4100 echo "$ac_err" >&5
4101 echo "configure: failed program was:" >&5
4102 cat conftest.$ac_ext >&5
4103 rm -rf conftest*
4104 eval "ac_cv_header_$ac_safe=no"
4105 fi
4106 rm -f conftest*
4107 fi
4108 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4109 echo "$ac_t""yes" 1>&6
4110 msgformat=linux
4111 else
4112 echo "$ac_t""no" 1>&6
4113 msgformat=xopen
4114 fi
4115
4116
4117 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
4118 fi
4119 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4120 $srcdir/po2tbl.sed.in > po2tbl.sed
4121 fi
4122
4123 if test "$PACKAGE" = "gettext"; then
4124 GT_NO="#NO#"
4125 GT_YES=
4126 else
4127 GT_NO=
4128 GT_YES="#YES#"
4129 fi
4130
4131
4132
4133 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
4134
4135
4136 l=
4137
4138
4139 if test -d $srcdir/po; then
4140 test -d po || mkdir po
4141 if test "x$srcdir" != "x."; then
4142 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4143 posrcprefix="$srcdir/"
4144 else
4145 posrcprefix="../$srcdir/"
4146 fi
4147 else
4148 posrcprefix="../"
4149 fi
4150 rm -f po/POTFILES
4151 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4152 < $srcdir/po/POTFILES.in > po/POTFILES
4153 fi
4154
4155
4156 . ${srcdir}/../bfd/configure.host
4157
4158
4159
4160 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
4161
4162
4163 for ac_hdr in string.h strings.h stdlib.h
4164 do
4165 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4166 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4167 echo "configure:4168: checking for $ac_hdr" >&5
4168 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4169 echo $ac_n "(cached) $ac_c" 1>&6
4170 else
4171 cat > conftest.$ac_ext <<EOF
4172 #line 4173 "configure"
4173 #include "confdefs.h"
4174 #include <$ac_hdr>
4175 EOF
4176 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4177 { (eval echo configure:4178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4178 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4179 if test -z "$ac_err"; then
4180 rm -rf conftest*
4181 eval "ac_cv_header_$ac_safe=yes"
4182 else
4183 echo "$ac_err" >&5
4184 echo "configure: failed program was:" >&5
4185 cat conftest.$ac_ext >&5
4186 rm -rf conftest*
4187 eval "ac_cv_header_$ac_safe=no"
4188 fi
4189 rm -f conftest*
4190 fi
4191 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4192 echo "$ac_t""yes" 1>&6
4193 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4194 cat >> confdefs.h <<EOF
4195 #define $ac_tr_hdr 1
4196 EOF
4197
4198 else
4199 echo "$ac_t""no" 1>&6
4200 fi
4201 done
4202
4203
4204 # start-sanitize-cygnus
4205 cgen_maint=no
4206 # Default is to use one in build tree.
4207 cgen=../cgen/cgen
4208 cgendir='$(srcdir)/../cgen'
4209 # Having --enable-maintainer-mode take arguments is another way to go.
4210 # ??? One can argue --with is more appropriate if one wants to specify
4211 # a directory name, but what we're doing here is an enable/disable kind
4212 # of thing and specifying both --enable and --with is klunky.
4213 # If you reeely want this to be --with, go ahead and change it.
4214 # Check whether --enable-cgen-maint or --disable-cgen-maint was given.
4215 if test "${enable_cgen_maint+set}" = set; then
4216 enableval="$enable_cgen_maint"
4217 case "${enableval}" in
4218 yes) cgen_maint=yes ;;
4219 no) cgen_maint=no ;;
4220 *)
4221 # argument is cgen install directory (not implemented yet).
4222 # Having a `share' directory might be more appropriate for the .scm,
4223 # .cpu, etc. files.
4224 cgen_maint=yes
4225 cgendir=${cgen_maint}/lib/cgen
4226 cgen=${cgendir}/bin/cgen
4227 ;;
4228 esac
4229 fi
4230
4231
4232 if test x${cgen_maint} = xyes; then
4233 CGEN_MAINT_TRUE=
4234 CGEN_MAINT_FALSE='#'
4235 else
4236 CGEN_MAINT_TRUE='#'
4237 CGEN_MAINT_FALSE=
4238 fi
4239
4240
4241 # end-sanitize-cygnus
4242
4243 # Horrible hacks to build DLLs on Windows.
4244 WIN32LDFLAGS=
4245 WIN32LIBADD=
4246 case "${host}" in
4247 *-*-cygwin*)
4248 if test "$enable_shared" = "yes"; then
4249 WIN32LDFLAGS="-no-undefined"
4250 WIN32LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin"
4251 fi
4252 ;;
4253 esac
4254
4255
4256
4257 # target-specific stuff:
4258
4259 # Canonicalize the secondary target names.
4260 if test -n "$enable_targets" ; then
4261 for targ in `echo $enable_targets | sed 's/,/ /g'`
4262 do
4263 result=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $targ 2>/dev/null`
4264 if test -n "$result" ; then
4265 canon_targets="$canon_targets $result"
4266 else
4267 # Allow targets that config.sub doesn't recognize, like "all".
4268 canon_targets="$canon_targets $targ"
4269 fi
4270 done
4271 fi
4272
4273 all_targets=false
4274 selarchs=
4275 for targ in $target $canon_targets
4276 do
4277 if test "x$targ" = "xall" ; then
4278 all_targets=true
4279 else
4280 . $srcdir/../bfd/config.bfd
4281 selarchs="$selarchs $targ_archs"
4282 fi
4283 done
4284
4285 # Utility var, documents generic cgen support files.
4286
4287 cgen_files="cgen-opc.lo cgen-asm.lo cgen-dis.lo"
4288
4289 # We don't do any links based on the target system, just makefile config.
4290
4291 if test x${all_targets} = xfalse ; then
4292
4293 # Target architecture .o files.
4294 ta=
4295
4296 for arch in $selarchs
4297 do
4298 ad=`echo $arch | sed -e s/bfd_//g -e s/_arch//g`
4299 archdefs="$archdefs -DARCH_$ad"
4300 case "$arch" in
4301 bfd_a29k_arch) ta="$ta a29k-dis.lo" ;;
4302 bfd_alliant_arch) ;;
4303 bfd_alpha_arch) ta="$ta alpha-dis.lo alpha-opc.lo" ;;
4304 bfd_arc_arch) ta="$ta arc-dis.lo arc-opc.lo" ;;
4305 bfd_arm_arch) ta="$ta arm-dis.lo" ;;
4306 bfd_convex_arch) ;;
4307 bfd_d10v_arch) ta="$ta d10v-dis.lo d10v-opc.lo" ;;
4308 bfd_d30v_arch) ta="$ta d30v-dis.lo d30v-opc.lo" ;;
4309 bfd_h8300_arch) ta="$ta h8300-dis.lo" ;;
4310 bfd_h8500_arch) ta="$ta h8500-dis.lo" ;;
4311 bfd_hppa_arch) ta="$ta hppa-dis.lo" ;;
4312 bfd_i386_arch) ta="$ta i386-dis.lo" ;;
4313 bfd_i860_arch) ;;
4314 bfd_i960_arch) ta="$ta i960-dis.lo" ;;
4315 bfd_m32r_arch) ta="$ta $cgen_files m32r-opc.lo m32r-asm.lo m32r-dis.lo" ;;
4316 bfd_m68k_arch) ta="$ta m68k-dis.lo m68k-opc.lo" ;;
4317 bfd_m88k_arch) ta="$ta m88k-dis.lo" ;;
4318 bfd_mips_arch) ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo" ;;
4319 bfd_mn10200_arch) ta="$ta m10200-dis.lo m10200-opc.lo" ;;
4320 bfd_mn10300_arch) ta="$ta m10300-dis.lo m10300-opc.lo" ;;
4321 bfd_ns32k_arch) ta="$ta ns32k-dis.lo" ;;
4322 bfd_powerpc_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
4323 bfd_pyramid_arch) ;;
4324 bfd_romp_arch) ;;
4325 bfd_rs6000_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
4326 bfd_sh_arch) ta="$ta sh-dis.lo" ;;
4327 bfd_sparc_arch) ta="$ta sparc-dis.lo sparc-opc.lo" ;;
4328 bfd_tahoe_arch) ;;
4329 bfd_tic30_arch) ta="$ta tic30-dis.lo" ;;
4330 # start-sanitize-tic80
4331 bfd_tic80_arch) ta="$ta tic80-dis.lo tic80-opc.lo" ;;
4332 # end-sanitize-tic80
4333 # start-sanitize-sky
4334 bfd_dvp_arch) ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo dvp-dis.lo dvp-opc.lo" ;;
4335 # end-sanitize-sky
4336 bfd_v850_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
4337 # start-sanitize-v850e
4338 bfd_v850e_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
4339 bfd_v850ea_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
4340 # end-sanitize-v850e
4341 bfd_vax_arch) ta="$ta vax-dis.lo" ;;
4342 bfd_w65_arch) ta="$ta w65-dis.lo" ;;
4343 bfd_we32k_arch) ;;
4344 bfd_z8k_arch) ta="$ta z8k-dis.lo" ;;
4345
4346 "") ;;
4347 *) { echo "configure: error: *** unknown target architecture $arch" 1>&2; exit 1; } ;;
4348 esac
4349 done
4350
4351 # Weed out duplicate .o files.
4352 f=""
4353 for i in $ta ; do
4354 case " $f " in
4355 *" $i "*) ;;
4356 *) f="$f $i" ;;
4357 esac
4358 done
4359 ta="$f"
4360
4361 # And duplicate -D flags.
4362 f=""
4363 for i in $archdefs ; do
4364 case " $f " in
4365 *" $i "*) ;;
4366 *) f="$f $i" ;;
4367 esac
4368 done
4369 archdefs="$f"
4370
4371 BFD_MACHINES="$ta"
4372
4373 else # all_targets is true
4374 archdefs=-DARCH_all
4375 BFD_MACHINES='$(ALL_MACHINES)'
4376 fi
4377
4378
4379
4380
4381 trap '' 1 2 15
4382 cat > confcache <<\EOF
4383 # This file is a shell script that caches the results of configure
4384 # tests run on this system so they can be shared between configure
4385 # scripts and configure runs. It is not useful on other systems.
4386 # If it contains results you don't want to keep, you may remove or edit it.
4387 #
4388 # By default, configure uses ./config.cache as the cache file,
4389 # creating it if it does not exist already. You can give configure
4390 # the --cache-file=FILE option to use a different cache file; that is
4391 # what configure does when it calls configure scripts in
4392 # subdirectories, so they share the cache.
4393 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4394 # config.status only pays attention to the cache file if you give it the
4395 # --recheck option to rerun configure.
4396 #
4397 EOF
4398 # The following way of writing the cache mishandles newlines in values,
4399 # but we know of no workaround that is simple, portable, and efficient.
4400 # So, don't put newlines in cache variables' values.
4401 # Ultrix sh set writes to stderr and can't be redirected directly,
4402 # and sets the high bit in the cache file unless we assign to the vars.
4403 (set) 2>&1 |
4404 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4405 *ac_space=\ *)
4406 # `set' does not quote correctly, so add quotes (double-quote substitution
4407 # turns \\\\ into \\, and sed turns \\ into \).
4408 sed -n \
4409 -e "s/'/'\\\\''/g" \
4410 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4411 ;;
4412 *)
4413 # `set' quotes correctly as required by POSIX, so do not add quotes.
4414 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4415 ;;
4416 esac >> confcache
4417 if cmp -s $cache_file confcache; then
4418 :
4419 else
4420 if test -w $cache_file; then
4421 echo "updating cache $cache_file"
4422 cat confcache > $cache_file
4423 else
4424 echo "not updating unwritable cache $cache_file"
4425 fi
4426 fi
4427 rm -f confcache
4428
4429 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4430
4431 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4432 # Let make expand exec_prefix.
4433 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4434
4435 # Any assignment to VPATH causes Sun make to only execute
4436 # the first set of double-colon rules, so remove it if not needed.
4437 # If there is a colon in the path, we need to keep it.
4438 if test "x$srcdir" = x.; then
4439 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4440 fi
4441
4442 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4443
4444 DEFS=-DHAVE_CONFIG_H
4445
4446 # Without the "./", some shells look in PATH for config.status.
4447 : ${CONFIG_STATUS=./config.status}
4448
4449 echo creating $CONFIG_STATUS
4450 rm -f $CONFIG_STATUS
4451 cat > $CONFIG_STATUS <<EOF
4452 #! /bin/sh
4453 # Generated automatically by configure.
4454 # Run this file to recreate the current configuration.
4455 # This directory was configured as follows,
4456 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4457 #
4458 # $0 $ac_configure_args
4459 #
4460 # Compiler output produced by configure, useful for debugging
4461 # configure, is in ./config.log if it exists.
4462
4463 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4464 for ac_option
4465 do
4466 case "\$ac_option" in
4467 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4468 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4469 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4470 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4471 echo "$CONFIG_STATUS generated by autoconf version 2.12.2"
4472 exit 0 ;;
4473 -help | --help | --hel | --he | --h)
4474 echo "\$ac_cs_usage"; exit 0 ;;
4475 *) echo "\$ac_cs_usage"; exit 1 ;;
4476 esac
4477 done
4478
4479 ac_given_srcdir=$srcdir
4480 ac_given_INSTALL="$INSTALL"
4481
4482 trap 'rm -fr `echo "Makefile po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4483 EOF
4484 cat >> $CONFIG_STATUS <<EOF
4485
4486 # Protect against being on the right side of a sed subst in config.status.
4487 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4488 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4489 $ac_vpsub
4490 $extrasub
4491 s%@SHELL@%$SHELL%g
4492 s%@CFLAGS@%$CFLAGS%g
4493 s%@CPPFLAGS@%$CPPFLAGS%g
4494 s%@CXXFLAGS@%$CXXFLAGS%g
4495 s%@FFLAGS@%$FFLAGS%g
4496 s%@DEFS@%$DEFS%g
4497 s%@LDFLAGS@%$LDFLAGS%g
4498 s%@LIBS@%$LIBS%g
4499 s%@exec_prefix@%$exec_prefix%g
4500 s%@prefix@%$prefix%g
4501 s%@program_transform_name@%$program_transform_name%g
4502 s%@bindir@%$bindir%g
4503 s%@sbindir@%$sbindir%g
4504 s%@libexecdir@%$libexecdir%g
4505 s%@datadir@%$datadir%g
4506 s%@sysconfdir@%$sysconfdir%g
4507 s%@sharedstatedir@%$sharedstatedir%g
4508 s%@localstatedir@%$localstatedir%g
4509 s%@libdir@%$libdir%g
4510 s%@includedir@%$includedir%g
4511 s%@oldincludedir@%$oldincludedir%g
4512 s%@infodir@%$infodir%g
4513 s%@mandir@%$mandir%g
4514 s%@host@%$host%g
4515 s%@host_alias@%$host_alias%g
4516 s%@host_cpu@%$host_cpu%g
4517 s%@host_vendor@%$host_vendor%g
4518 s%@host_os@%$host_os%g
4519 s%@target@%$target%g
4520 s%@target_alias@%$target_alias%g
4521 s%@target_cpu@%$target_cpu%g
4522 s%@target_vendor@%$target_vendor%g
4523 s%@target_os@%$target_os%g
4524 s%@build@%$build%g
4525 s%@build_alias@%$build_alias%g
4526 s%@build_cpu@%$build_cpu%g
4527 s%@build_vendor@%$build_vendor%g
4528 s%@build_os@%$build_os%g
4529 s%@CC@%$CC%g
4530 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4531 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4532 s%@INSTALL_DATA@%$INSTALL_DATA%g
4533 s%@PACKAGE@%$PACKAGE%g
4534 s%@VERSION@%$VERSION%g
4535 s%@ACLOCAL@%$ACLOCAL%g
4536 s%@AUTOCONF@%$AUTOCONF%g
4537 s%@AUTOMAKE@%$AUTOMAKE%g
4538 s%@AUTOHEADER@%$AUTOHEADER%g
4539 s%@MAKEINFO@%$MAKEINFO%g
4540 s%@SET_MAKE@%$SET_MAKE%g
4541 s%@AR@%$AR%g
4542 s%@RANLIB@%$RANLIB%g
4543 s%@LD@%$LD%g
4544 s%@NM@%$NM%g
4545 s%@LN_S@%$LN_S%g
4546 s%@LIBTOOL@%$LIBTOOL%g
4547 s%@DLLTOOL@%$DLLTOOL%g
4548 s%@AS@%$AS%g
4549 s%@MAINT@%$MAINT%g
4550 s%@EXEEXT@%$EXEEXT%g
4551 s%@CPP@%$CPP%g
4552 s%@ALLOCA@%$ALLOCA%g
4553 s%@USE_NLS@%$USE_NLS%g
4554 s%@MSGFMT@%$MSGFMT%g
4555 s%@GMSGFMT@%$GMSGFMT%g
4556 s%@XGETTEXT@%$XGETTEXT%g
4557 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4558 s%@CATALOGS@%$CATALOGS%g
4559 s%@CATOBJEXT@%$CATOBJEXT%g
4560 s%@DATADIRNAME@%$DATADIRNAME%g
4561 s%@GMOFILES@%$GMOFILES%g
4562 s%@INSTOBJEXT@%$INSTOBJEXT%g
4563 s%@INTLDEPS@%$INTLDEPS%g
4564 s%@INTLLIBS@%$INTLLIBS%g
4565 s%@INTLOBJS@%$INTLOBJS%g
4566 s%@POFILES@%$POFILES%g
4567 s%@POSUB@%$POSUB%g
4568 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4569 s%@GT_NO@%$GT_NO%g
4570 s%@GT_YES@%$GT_YES%g
4571 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4572 s%@l@%$l%g
4573 s%@HDEFINES@%$HDEFINES%g
4574 s%@CGEN_MAINT_TRUE@%$CGEN_MAINT_TRUE%g
4575 s%@CGEN_MAINT_FALSE@%$CGEN_MAINT_FALSE%g
4576 s%@cgendir@%$cgendir%g
4577 s%@cgen@%$cgen%g
4578 s%@WIN32LDFLAGS@%$WIN32LDFLAGS%g
4579 s%@WIN32LIBADD@%$WIN32LIBADD%g
4580 s%@archdefs@%$archdefs%g
4581 s%@BFD_MACHINES@%$BFD_MACHINES%g
4582
4583 CEOF
4584 EOF
4585
4586 cat >> $CONFIG_STATUS <<\EOF
4587
4588 # Split the substitutions into bite-sized pieces for seds with
4589 # small command number limits, like on Digital OSF/1 and HP-UX.
4590 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4591 ac_file=1 # Number of current file.
4592 ac_beg=1 # First line for current file.
4593 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4594 ac_more_lines=:
4595 ac_sed_cmds=""
4596 while $ac_more_lines; do
4597 if test $ac_beg -gt 1; then
4598 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4599 else
4600 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4601 fi
4602 if test ! -s conftest.s$ac_file; then
4603 ac_more_lines=false
4604 rm -f conftest.s$ac_file
4605 else
4606 if test -z "$ac_sed_cmds"; then
4607 ac_sed_cmds="sed -f conftest.s$ac_file"
4608 else
4609 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4610 fi
4611 ac_file=`expr $ac_file + 1`
4612 ac_beg=$ac_end
4613 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4614 fi
4615 done
4616 if test -z "$ac_sed_cmds"; then
4617 ac_sed_cmds=cat
4618 fi
4619 EOF
4620
4621 cat >> $CONFIG_STATUS <<EOF
4622
4623 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in:po/Make-in"}
4624 EOF
4625 cat >> $CONFIG_STATUS <<\EOF
4626 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4627 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4628 case "$ac_file" in
4629 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4630 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4631 *) ac_file_in="${ac_file}.in" ;;
4632 esac
4633
4634 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4635
4636 # Remove last slash and all that follows it. Not all systems have dirname.
4637 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4638 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4639 # The file is in a subdirectory.
4640 test ! -d "$ac_dir" && mkdir "$ac_dir"
4641 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4642 # A "../" for each directory in $ac_dir_suffix.
4643 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4644 else
4645 ac_dir_suffix= ac_dots=
4646 fi
4647
4648 case "$ac_given_srcdir" in
4649 .) srcdir=.
4650 if test -z "$ac_dots"; then top_srcdir=.
4651 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4652 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4653 *) # Relative path.
4654 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4655 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4656 esac
4657
4658 case "$ac_given_INSTALL" in
4659 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4660 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4661 esac
4662
4663 echo creating "$ac_file"
4664 rm -f "$ac_file"
4665 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4666 case "$ac_file" in
4667 *Makefile*) ac_comsub="1i\\
4668 # $configure_input" ;;
4669 *) ac_comsub= ;;
4670 esac
4671
4672 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4673 sed -e "$ac_comsub
4674 s%@configure_input@%$configure_input%g
4675 s%@srcdir@%$srcdir%g
4676 s%@top_srcdir@%$top_srcdir%g
4677 s%@INSTALL@%$INSTALL%g
4678 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4679 fi; done
4680 rm -f conftest.s*
4681
4682 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4683 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4684 #
4685 # ac_d sets the value in "#define NAME VALUE" lines.
4686 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4687 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4688 ac_dC='\3'
4689 ac_dD='%g'
4690 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4691 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4692 ac_uB='\([ ]\)%\1#\2define\3'
4693 ac_uC=' '
4694 ac_uD='\4%g'
4695 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4696 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4697 ac_eB='$%\1#\2define\3'
4698 ac_eC=' '
4699 ac_eD='%g'
4700
4701 if test "${CONFIG_HEADERS+set}" != set; then
4702 EOF
4703 cat >> $CONFIG_STATUS <<EOF
4704 CONFIG_HEADERS="config.h:config.in"
4705 EOF
4706 cat >> $CONFIG_STATUS <<\EOF
4707 fi
4708 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4709 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4710 case "$ac_file" in
4711 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4712 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4713 *) ac_file_in="${ac_file}.in" ;;
4714 esac
4715
4716 echo creating $ac_file
4717
4718 rm -f conftest.frag conftest.in conftest.out
4719 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4720 cat $ac_file_inputs > conftest.in
4721
4722 EOF
4723
4724 # Transform confdefs.h into a sed script conftest.vals that substitutes
4725 # the proper values into config.h.in to produce config.h. And first:
4726 # Protect against being on the right side of a sed subst in config.status.
4727 # Protect against being in an unquoted here document in config.status.
4728 rm -f conftest.vals
4729 cat > conftest.hdr <<\EOF
4730 s/[\\&%]/\\&/g
4731 s%[\\$`]%\\&%g
4732 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4733 s%ac_d%ac_u%gp
4734 s%ac_u%ac_e%gp
4735 EOF
4736 sed -n -f conftest.hdr confdefs.h > conftest.vals
4737 rm -f conftest.hdr
4738
4739 # This sed command replaces #undef with comments. This is necessary, for
4740 # example, in the case of _POSIX_SOURCE, which is predefined and required
4741 # on some systems where configure will not decide to define it.
4742 cat >> conftest.vals <<\EOF
4743 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4744 EOF
4745
4746 # Break up conftest.vals because some shells have a limit on
4747 # the size of here documents, and old seds have small limits too.
4748
4749 rm -f conftest.tail
4750 while :
4751 do
4752 ac_lines=`grep -c . conftest.vals`
4753 # grep -c gives empty output for an empty file on some AIX systems.
4754 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4755 # Write a limited-size here document to conftest.frag.
4756 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4757 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4758 echo 'CEOF
4759 sed -f conftest.frag conftest.in > conftest.out
4760 rm -f conftest.in
4761 mv conftest.out conftest.in
4762 ' >> $CONFIG_STATUS
4763 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4764 rm -f conftest.vals
4765 mv conftest.tail conftest.vals
4766 done
4767 rm -f conftest.vals
4768
4769 cat >> $CONFIG_STATUS <<\EOF
4770 rm -f conftest.frag conftest.h
4771 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4772 cat conftest.in >> conftest.h
4773 rm -f conftest.in
4774 if cmp -s $ac_file conftest.h 2>/dev/null; then
4775 echo "$ac_file is unchanged"
4776 rm -f conftest.h
4777 else
4778 # Remove last slash and all that follows it. Not all systems have dirname.
4779 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4780 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4781 # The file is in a subdirectory.
4782 test ! -d "$ac_dir" && mkdir "$ac_dir"
4783 fi
4784 rm -f $ac_file
4785 mv conftest.h $ac_file
4786 fi
4787 fi; done
4788
4789 EOF
4790 cat >> $CONFIG_STATUS <<EOF
4791
4792
4793 EOF
4794 cat >> $CONFIG_STATUS <<\EOF
4795 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
4796 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
4797 exit 0
4798 EOF
4799 chmod +x $CONFIG_STATUS
4800 rm -fr confdefs* $ac_clean_files
4801 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4802
This page took 0.147179 seconds and 4 git commands to generate.