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