]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gprof/configure
* config/sh/tm-sh.h (BELIEVE_PCC_PROMOTION): Define, so that
[thirdparty/binutils-gdb.git] / gprof / configure
1 #! /bin/sh
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289 # 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
415 # Guess values for system-dependent variables and create Makefiles.
416 # Generated automatically using autoconf version 2.12.2
417 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
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:
423 ac_help=
424 ac_default_prefix=/usr/local
425 # Any additions from configure.in:
426 ac_help="$ac_help
427 --enable-shared[=PKGS] build shared libraries [default=yes]"
428 ac_help="$ac_help
429 --enable-static[=PKGS] build static libraries [default=yes]"
430 ac_help="$ac_help
431 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
432 ac_help="$ac_help
433 --disable-nls do not use Native Language Support"
434 ac_help="$ac_help
435 --with-included-gettext use the GNU gettext library included here"
436 ac_help="$ac_help
437 --enable-maintainer-mode enable make rules and dependencies not useful
438 (and sometimes confusing) to the casual installer"
439
440 # Initialize some variables set by options.
441 # The variables have the same names as the options, with
442 # dashes changed to underlines.
443 build=NONE
444 cache_file=./config.cache
445 exec_prefix=NONE
446 host=NONE
447 no_create=
448 nonopt=NONE
449 no_recursion=
450 prefix=NONE
451 program_prefix=NONE
452 program_suffix=NONE
453 program_transform_name=s,x,x,
454 silent=
455 site=
456 srcdir=
457 target=NONE
458 verbose=
459 x_includes=NONE
460 x_libraries=NONE
461 bindir='${exec_prefix}/bin'
462 sbindir='${exec_prefix}/sbin'
463 libexecdir='${exec_prefix}/libexec'
464 datadir='${prefix}/share'
465 sysconfdir='${prefix}/etc'
466 sharedstatedir='${prefix}/com'
467 localstatedir='${prefix}/var'
468 libdir='${exec_prefix}/lib'
469 includedir='${prefix}/include'
470 oldincludedir='/usr/include'
471 infodir='${prefix}/info'
472 mandir='${prefix}/man'
473
474 # Initialize some other variables.
475 subdirs=
476 MFLAGS= MAKEFLAGS=
477 SHELL=${CONFIG_SHELL-/bin/sh}
478 # Maximum number of lines to put in a shell here document.
479 ac_max_here_lines=12
480
481 ac_prev=
482 for ac_option
483 do
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
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)
507 ac_prev=build ;;
508 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
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
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
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
563 Usage: configure [options] [host]
564 Options: [defaults in brackets after descriptions]
565 Configuration:
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
571 Directory and file names:
572 --prefix=PREFIX install architecture-independent files in PREFIX
573 [$ac_default_prefix]
574 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
575 [same as prefix]
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]
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
593 --program-transform-name=PROGRAM
594 run sed PROGRAM on installed program names
595 EOF
596 cat << EOF
597 Host 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]
601 Features 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
608 EOF
609 if test -n "$ac_help"; then
610 echo "--enable and --with options recognized:$ac_help"
611 fi
612 exit 0 ;;
613
614 -host | --host | --hos | --ho)
615 ac_prev=host ;;
616 -host=* | --host=* | --hos=* | --ho=*)
617 host="$ac_optarg" ;;
618
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
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
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
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
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
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
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
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)
761 echo "configure generated by autoconf version 2.12.2"
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
807 *)
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
818 done
819
820 if test -n "$ac_prev"; then
821 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
822 fi
823
824 trap '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
834 if test "$silent" = yes; then
835 exec 6>/dev/null
836 else
837 exec 6>&1
838 fi
839 exec 5>./config.log
840
841 echo "\
842 This file contains any messages produced by compilers while
843 running 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.
848 ac_configure_args=
849 for ac_arg
850 do
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
860 done
861
862 # NLS nuisances.
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.
867 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
868 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
869 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
870 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
871
872 # confdefs.h avoids OS command line length limits that DEFS can exceed.
873 rm -rf conftest* confdefs.h
874 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
875 echo > 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.
879 ac_unique_file=gprof.c
880
881 # Find the source files, if location was not specified.
882 if 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
892 else
893 ac_srcdir_defaulted=no
894 fi
895 if 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
901 fi
902 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
903
904 # Prefer explicitly selected file to automatically selected ones.
905 if 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
911 fi
912 for 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
917 done
918
919 if test -r "$cache_file"; then
920 echo "loading cache $cache_file"
921 . $cache_file
922 else
923 echo "creating cache $cache_file"
924 > $cache_file
925 fi
926
927 ac_ext=c
928 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
929 ac_cpp='$CPP $CPPFLAGS'
930 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
931 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
932 cross_compiling=$ac_cv_prog_cc_cross
933
934 ac_exeext=
935 ac_objext=o
936 if (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
944 else
945 ac_n= ac_c='\c' ac_t=
946 fi
947
948
949
950 ac_aux_dir=
951 for 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
961 done
962 if 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; }
964 fi
965 ac_config_guess=$ac_aux_dir/config.guess
966 ac_config_sub=$ac_aux_dir/config.sub
967 ac_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.
985 case $host---$target---$nonopt in
986 NONE---*---* | *---NONE---* | *---*---NONE) ;;
987 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
988 esac
989
990
991 # Make sure we can run config.sub.
992 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
993 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
994 fi
995
996 echo $ac_n "checking host system type""... $ac_c" 1>&6
997 echo "configure:998: checking host system type" >&5
998
999 host_alias=$host
1000 case "$host_alias" in
1001 NONE)
1002 case $nonopt in
1003 NONE)
1004 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
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 ;;
1009 esac
1010
1011 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1012 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1013 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1014 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1015 echo "$ac_t""$host" 1>&6
1016
1017 echo $ac_n "checking target system type""... $ac_c" 1>&6
1018 echo "configure:1019: checking target system type" >&5
1019
1020 target_alias=$target
1021 case "$target_alias" in
1022 NONE)
1023 case $nonopt in
1024 NONE) target_alias=$host_alias ;;
1025 *) target_alias=$nonopt ;;
1026 esac ;;
1027 esac
1028
1029 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1030 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1031 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1032 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1033 echo "$ac_t""$target" 1>&6
1034
1035 echo $ac_n "checking build system type""... $ac_c" 1>&6
1036 echo "configure:1037: checking build system type" >&5
1037
1038 build_alias=$build
1039 case "$build_alias" in
1040 NONE)
1041 case $nonopt in
1042 NONE) build_alias=$host_alias ;;
1043 *) build_alias=$nonopt ;;
1044 esac ;;
1045 esac
1046
1047 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1048 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1049 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1050 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1051 echo "$ac_t""$build" 1>&6
1052
1053 test "$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
1066 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
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.
1070 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1071 echo "configure:1072: checking for a BSD compatible install" >&5
1072 if test -z "$INSTALL"; then
1073 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1074 echo $ac_n "(cached) $ac_c" 1>&6
1075 else
1076 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
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.
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
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.
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
1102 fi
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
1112 fi
1113 echo "$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.
1117 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1118
1119 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1120
1121 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1122
1123
1124 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1125
1126 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1127 echo "configure:1128: checking whether build environment is sane" >&5
1128 # Just in case
1129 sleep 1
1130 echo 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).
1136 if (
1137 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1138 if test "$*" = "X"; then
1139 # -L didn't work.
1140 set X `ls -t $srcdir/configure conftestfile`
1141 fi
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
1150 alias in your environment" 1>&2; exit 1; }
1151 fi
1152
1153 test "$2" = conftestfile
1154 )
1155 then
1156 # Ok.
1157 :
1158 else
1159 { echo "configure: error: newly created file is older than distributed files!
1160 Check your system clock" 1>&2; exit 1; }
1161 fi
1162 rm -f conftest*
1163 echo "$ac_t""yes" 1>&6
1164 if test "$program_transform_name" = s,x,x,; then
1165 program_transform_name=
1166 else
1167 # Double any \ or $. echo might interpret backslashes.
1168 cat <<\EOF_SED > conftestsed
1169 s,\\,\\\\,g; s,\$,$$,g
1170 EOF_SED
1171 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1172 rm -f conftestsed
1173 fi
1174 test "$program_prefix" != NONE &&
1175 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1176 # Use a double $ so make ignores it.
1177 test "$program_suffix" != NONE &&
1178 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1179
1180 # sed with no file args requires a program.
1181 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1182
1183 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1184 echo "configure:1185: checking whether ${MAKE-make} sets \${MAKE}" >&5
1185 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1186 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1187 echo $ac_n "(cached) $ac_c" 1>&6
1188 else
1189 cat > conftestmake <<\EOF
1190 all:
1191 @echo 'ac_maketemp="${MAKE}"'
1192 EOF
1193 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1194 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1195 if test -n "$ac_maketemp"; then
1196 eval ac_cv_prog_make_${ac_make}_set=yes
1197 else
1198 eval ac_cv_prog_make_${ac_make}_set=no
1199 fi
1200 rm -f conftestmake
1201 fi
1202 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1203 echo "$ac_t""yes" 1>&6
1204 SET_MAKE=
1205 else
1206 echo "$ac_t""no" 1>&6
1207 SET_MAKE="MAKE=${MAKE-make}"
1208 fi
1209
1210
1211 PACKAGE=gprof
1212
1213 VERSION=2.9.4
1214
1215 if 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; }
1217 fi
1218 cat >> confdefs.h <<EOF
1219 #define PACKAGE "$PACKAGE"
1220 EOF
1221
1222 cat >> confdefs.h <<EOF
1223 #define VERSION "$VERSION"
1224 EOF
1225
1226
1227
1228 missing_dir=`cd $ac_aux_dir && pwd`
1229 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1230 echo "configure:1231: checking for working aclocal" >&5
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.
1233 # Redirect stdin to placate older versions of autoconf. Sigh.
1234 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1235 ACLOCAL=aclocal
1236 echo "$ac_t""found" 1>&6
1237 else
1238 ACLOCAL="$missing_dir/missing aclocal"
1239 echo "$ac_t""missing" 1>&6
1240 fi
1241
1242 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1243 echo "configure:1244: checking for working autoconf" >&5
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.
1246 # Redirect stdin to placate older versions of autoconf. Sigh.
1247 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1248 AUTOCONF=autoconf
1249 echo "$ac_t""found" 1>&6
1250 else
1251 AUTOCONF="$missing_dir/missing autoconf"
1252 echo "$ac_t""missing" 1>&6
1253 fi
1254
1255 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1256 echo "configure:1257: checking for working automake" >&5
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.
1259 # Redirect stdin to placate older versions of autoconf. Sigh.
1260 if (automake --version) < /dev/null > /dev/null 2>&1; then
1261 AUTOMAKE=automake
1262 echo "$ac_t""found" 1>&6
1263 else
1264 AUTOMAKE="$missing_dir/missing automake"
1265 echo "$ac_t""missing" 1>&6
1266 fi
1267
1268 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1269 echo "configure:1270: checking for working autoheader" >&5
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.
1272 # Redirect stdin to placate older versions of autoconf. Sigh.
1273 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1274 AUTOHEADER=autoheader
1275 echo "$ac_t""found" 1>&6
1276 else
1277 AUTOHEADER="$missing_dir/missing autoheader"
1278 echo "$ac_t""missing" 1>&6
1279 fi
1280
1281 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1282 echo "configure:1283: checking for working makeinfo" >&5
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.
1285 # Redirect stdin to placate older versions of autoconf. Sigh.
1286 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1287 MAKEINFO=makeinfo
1288 echo "$ac_t""found" 1>&6
1289 else
1290 MAKEINFO="$missing_dir/missing makeinfo"
1291 echo "$ac_t""missing" 1>&6
1292 fi
1293
1294
1295
1296 # Check whether --enable-shared or --disable-shared was given.
1297 if test "${enable_shared+set}" = set; then
1298 enableval="$enable_shared"
1299 p=${PACKAGE-default}
1300 case "$enableval" in
1301 yes) enable_shared=yes ;;
1302 no) 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 ;;
1314 esac
1315 else
1316 enable_shared=yes
1317 fi
1318
1319 # Check whether --enable-static or --disable-static was given.
1320 if test "${enable_static+set}" = set; then
1321 enableval="$enable_static"
1322 p=${PACKAGE-default}
1323 case "$enableval" in
1324 yes) enable_static=yes ;;
1325 no) 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 ;;
1337 esac
1338 else
1339 enable_static=yes
1340 fi
1341
1342 # Extract the first word of "ranlib", so it can be a program name with args.
1343 set dummy ranlib; ac_word=$2
1344 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1345 echo "configure:1346: checking for $ac_word" >&5
1346 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1347 echo $ac_n "(cached) $ac_c" 1>&6
1348 else
1349 if test -n "$RANLIB"; then
1350 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1351 else
1352 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1353 ac_dummy="$PATH"
1354 for ac_dir in $ac_dummy; do
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=":"
1363 fi
1364 fi
1365 RANLIB="$ac_cv_prog_RANLIB"
1366 if test -n "$RANLIB"; then
1367 echo "$ac_t""$RANLIB" 1>&6
1368 else
1369 echo "$ac_t""no" 1>&6
1370 fi
1371
1372 # Extract the first word of "gcc", so it can be a program name with args.
1373 set dummy gcc; ac_word=$2
1374 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1375 echo "configure:1376: checking for $ac_word" >&5
1376 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1377 echo $ac_n "(cached) $ac_c" 1>&6
1378 else
1379 if test -n "$CC"; then
1380 ac_cv_prog_CC="$CC" # Let the user override the test.
1381 else
1382 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1383 ac_dummy="$PATH"
1384 for ac_dir in $ac_dummy; do
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"
1392 fi
1393 fi
1394 CC="$ac_cv_prog_CC"
1395 if test -n "$CC"; then
1396 echo "$ac_t""$CC" 1>&6
1397 else
1398 echo "$ac_t""no" 1>&6
1399 fi
1400
1401 if test -z "$CC"; then
1402 # Extract the first word of "cc", so it can be a program name with args.
1403 set dummy cc; ac_word=$2
1404 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1405 echo "configure:1406: checking for $ac_word" >&5
1406 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1407 echo $ac_n "(cached) $ac_c" 1>&6
1408 else
1409 if test -n "$CC"; then
1410 ac_cv_prog_CC="$CC" # Let the user override the test.
1411 else
1412 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1413 ac_prog_rejected=no
1414 ac_dummy="$PATH"
1415 for ac_dir in $ac_dummy; do
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"
1427 if 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
1440 fi
1441 fi
1442 fi
1443 CC="$ac_cv_prog_CC"
1444 if test -n "$CC"; then
1445 echo "$ac_t""$CC" 1>&6
1446 else
1447 echo "$ac_t""no" 1>&6
1448 fi
1449
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.
1454 set dummy cl; ac_word=$2
1455 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1456 echo "configure:1457: checking for $ac_word" >&5
1457 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1458 echo $ac_n "(cached) $ac_c" 1>&6
1459 else
1460 if test -n "$CC"; then
1461 ac_cv_prog_CC="$CC" # Let the user override the test.
1462 else
1463 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1464 ac_dummy="$PATH"
1465 for ac_dir in $ac_dummy; do
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"
1473 fi
1474 fi
1475 CC="$ac_cv_prog_CC"
1476 if test -n "$CC"; then
1477 echo "$ac_t""$CC" 1>&6
1478 else
1479 echo "$ac_t""no" 1>&6
1480 fi
1481 ;;
1482 esac
1483 fi
1484 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1485 fi
1486
1487 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1488 echo "configure:1489: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1489
1490 ac_ext=c
1491 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1492 ac_cpp='$CPP $CPPFLAGS'
1493 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1494 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1495 cross_compiling=$ac_cv_prog_cc_cross
1496
1497 cat > conftest.$ac_ext << EOF
1498
1499 #line 1500 "configure"
1500 #include "confdefs.h"
1501
1502 main(){return(0);}
1503 EOF
1504 if { (eval echo configure:1505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
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
1512 else
1513 echo "configure: failed program was:" >&5
1514 cat conftest.$ac_ext >&5
1515 ac_cv_prog_cc_works=no
1516 fi
1517 rm -fr conftest*
1518 ac_ext=c
1519 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1520 ac_cpp='$CPP $CPPFLAGS'
1521 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1522 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1523 cross_compiling=$ac_cv_prog_cc_cross
1524
1525 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1526 if 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; }
1528 fi
1529 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1530 echo "configure:1531: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1531 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1532 cross_compiling=$ac_cv_prog_cc_cross
1533
1534 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1535 echo "configure:1536: checking whether we are using GNU C" >&5
1536 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1537 echo $ac_n "(cached) $ac_c" 1>&6
1538 else
1539 cat > conftest.c <<EOF
1540 #ifdef __GNUC__
1541 yes;
1542 #endif
1543 EOF
1544 if { 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
1545 ac_cv_prog_gcc=yes
1546 else
1547 ac_cv_prog_gcc=no
1548 fi
1549 fi
1550
1551 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1552
1553 if test $ac_cv_prog_gcc = yes; then
1554 GCC=yes
1555 else
1556 GCC=
1557 fi
1558
1559 ac_test_CFLAGS="${CFLAGS+set}"
1560 ac_save_CFLAGS="$CFLAGS"
1561 CFLAGS=
1562 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1563 echo "configure:1564: checking whether ${CC-cc} accepts -g" >&5
1564 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1565 echo $ac_n "(cached) $ac_c" 1>&6
1566 else
1567 echo 'void f(){}' > conftest.c
1568 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1569 ac_cv_prog_cc_g=yes
1570 else
1571 ac_cv_prog_cc_g=no
1572 fi
1573 rm -f conftest*
1574
1575 fi
1576
1577 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1578 if test "$ac_test_CFLAGS" = set; then
1579 CFLAGS="$ac_save_CFLAGS"
1580 elif test $ac_cv_prog_cc_g = yes; then
1581 if test "$GCC" = yes; then
1582 CFLAGS="-g -O2"
1583 else
1584 CFLAGS="-g"
1585 fi
1586 else
1587 if test "$GCC" = yes; then
1588 CFLAGS="-O2"
1589 else
1590 CFLAGS=
1591 fi
1592 fi
1593
1594 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1595 if test "${with_gnu_ld+set}" = set; then
1596 withval="$with_gnu_ld"
1597 test "$withval" = no || with_gnu_ld=yes
1598 else
1599 with_gnu_ld=no
1600 fi
1601
1602
1603 ac_prog=ld
1604 if 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
1607 echo "configure:1608: checking for ld used by GCC" >&5
1608 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1609 case "$ac_prog" in
1610 # Accept absolute paths.
1611 /* | [A-Za-z]:\\*)
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
1623 elif test "$with_gnu_ld" = yes; then
1624 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1625 echo "configure:1626: checking for GNU ld" >&5
1626 else
1627 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1628 echo "configure:1629: checking for non-GNU ld" >&5
1629 fi
1630 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1631 echo $ac_n "(cached) $ac_c" 1>&6
1632 else
1633 if test -z "$LD"; then
1634 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1635 for ac_dir in $PATH; do
1636 test -z "$ac_dir" && ac_dir=.
1637 if test -f "$ac_dir/$ac_prog"; then
1638 ac_cv_path_LD="$ac_dir/$ac_prog"
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.
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
1644 else
1645 test "$with_gnu_ld" != yes && break
1646 fi
1647 fi
1648 done
1649 IFS="$ac_save_ifs"
1650 else
1651 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1652 fi
1653 fi
1654
1655 LD="$ac_cv_path_LD"
1656 if test -n "$LD"; then
1657 echo "$ac_t""$LD" 1>&6
1658 else
1659 echo "$ac_t""no" 1>&6
1660 fi
1661 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1662
1663 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1664 echo "configure:1665: checking if the linker ($LD) is GNU ld" >&5
1665 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1666 echo $ac_n "(cached) $ac_c" 1>&6
1667 else
1668 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1669 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1670 ac_cv_prog_gnu_ld=yes
1671 else
1672 ac_cv_prog_gnu_ld=no
1673 fi
1674 fi
1675
1676 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1677
1678
1679 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1680 echo "configure:1681: checking for BSD-compatible nm" >&5
1681 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1682 echo $ac_n "(cached) $ac_c" 1>&6
1683 else
1684 if test -n "$NM"; then
1685 # Let the user override the test.
1686 ac_cv_path_NM="$NM"
1687 else
1688 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1689 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
1690 test -z "$ac_dir" && ac_dir=.
1691 if test -f $ac_dir/nm; then
1692 # Check to see if the nm accepts a BSD-compat flag.
1693 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1694 # nm: unknown option "B" ignored
1695 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1696 ac_cv_path_NM="$ac_dir/nm -B"
1697 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
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
1707 fi
1708 fi
1709
1710 NM="$ac_cv_path_NM"
1711 echo "$ac_t""$NM" 1>&6
1712
1713
1714 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1715 echo "configure:1716: checking whether ln -s works" >&5
1716 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1717 echo $ac_n "(cached) $ac_c" 1>&6
1718 else
1719 rm -f conftestdata
1720 if ln -s X conftestdata 2>/dev/null
1721 then
1722 rm -f conftestdata
1723 ac_cv_prog_LN_S="ln -s"
1724 else
1725 ac_cv_prog_LN_S=ln
1726 fi
1727 fi
1728 LN_S="$ac_cv_prog_LN_S"
1729 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1730 echo "$ac_t""yes" 1>&6
1731 else
1732 echo "$ac_t""no" 1>&6
1733 fi
1734
1735 if test $host != $build; then
1736 ac_tool_prefix=${host_alias}-
1737 else
1738 ac_tool_prefix=
1739 fi
1740
1741 # Always use our own libtool.
1742 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1743
1744 # Check for any special flags to pass to ltconfig.
1745 libtool_flags=
1746 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1747 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1748 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
1749 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1750 test "$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.
1754 case "$host" in
1755 *-*-irix6*)
1756 # Find out which ABI we are using.
1757 echo '#line 1758 "configure"' > conftest.$ac_ext
1758 if { (eval echo configure:1759: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1759 case "`/usr/bin/file conftest.o`" in
1760 *32-bit*)
1761 LD="${LD-ld} -32"
1762 ;;
1763 *N32*)
1764 LD="${LD-ld} -n32"
1765 ;;
1766 *64-bit*)
1767 LD="${LD-ld} -64"
1768 ;;
1769 esac
1770 fi
1771 rm -rf conftest*
1772 ;;
1773
1774 *-*-sco3.2v5*)
1775 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1776 CFLAGS="$CFLAGS -belf"
1777 ;;
1778
1779 *-*-cygwin32*)
1780 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
1781 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1782 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1783 echo "configure:1784: checking for $ac_word" >&5
1784 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1785 echo $ac_n "(cached) $ac_c" 1>&6
1786 else
1787 if test -n "$DLLTOOL"; then
1788 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1789 else
1790 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1791 ac_dummy="$PATH"
1792 for ac_dir in $ac_dummy; do
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"
1800 fi
1801 fi
1802 DLLTOOL="$ac_cv_prog_DLLTOOL"
1803 if test -n "$DLLTOOL"; then
1804 echo "$ac_t""$DLLTOOL" 1>&6
1805 else
1806 echo "$ac_t""no" 1>&6
1807 fi
1808
1809
1810 if test -z "$ac_cv_prog_DLLTOOL"; then
1811 if test -n "$ac_tool_prefix"; then
1812 # Extract the first word of "dlltool", so it can be a program name with args.
1813 set dummy dlltool; ac_word=$2
1814 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1815 echo "configure:1816: checking for $ac_word" >&5
1816 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1817 echo $ac_n "(cached) $ac_c" 1>&6
1818 else
1819 if test -n "$DLLTOOL"; then
1820 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1821 else
1822 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1823 ac_dummy="$PATH"
1824 for ac_dir in $ac_dummy; do
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"
1833 fi
1834 fi
1835 DLLTOOL="$ac_cv_prog_DLLTOOL"
1836 if test -n "$DLLTOOL"; then
1837 echo "$ac_t""$DLLTOOL" 1>&6
1838 else
1839 echo "$ac_t""no" 1>&6
1840 fi
1841
1842 else
1843 DLLTOOL="false"
1844 fi
1845 fi
1846
1847 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1848 set dummy ${ac_tool_prefix}as; ac_word=$2
1849 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1850 echo "configure:1851: checking for $ac_word" >&5
1851 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1852 echo $ac_n "(cached) $ac_c" 1>&6
1853 else
1854 if test -n "$AS"; then
1855 ac_cv_prog_AS="$AS" # Let the user override the test.
1856 else
1857 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1858 ac_dummy="$PATH"
1859 for ac_dir in $ac_dummy; do
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"
1867 fi
1868 fi
1869 AS="$ac_cv_prog_AS"
1870 if test -n "$AS"; then
1871 echo "$ac_t""$AS" 1>&6
1872 else
1873 echo "$ac_t""no" 1>&6
1874 fi
1875
1876
1877 if test -z "$ac_cv_prog_AS"; then
1878 if test -n "$ac_tool_prefix"; then
1879 # Extract the first word of "as", so it can be a program name with args.
1880 set dummy as; ac_word=$2
1881 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1882 echo "configure:1883: checking for $ac_word" >&5
1883 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1884 echo $ac_n "(cached) $ac_c" 1>&6
1885 else
1886 if test -n "$AS"; then
1887 ac_cv_prog_AS="$AS" # Let the user override the test.
1888 else
1889 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1890 ac_dummy="$PATH"
1891 for ac_dir in $ac_dummy; do
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"
1900 fi
1901 fi
1902 AS="$ac_cv_prog_AS"
1903 if test -n "$AS"; then
1904 echo "$ac_t""$AS" 1>&6
1905 else
1906 echo "$ac_t""no" 1>&6
1907 fi
1908
1909 else
1910 AS="false"
1911 fi
1912 fi
1913
1914
1915 ;;
1916
1917 esac
1918
1919 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1920 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1921 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
1922 DLLTOOL="$DLLTOOL" AS="$AS" \
1923 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1924 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
1925 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1926
1927 # Redirect the config.log output again, so that the ltconfig log is not
1928 # clobbered by the next message.
1929 exec 5>>./config.log
1930
1931
1932
1933
1934
1935
1936 # Extract the first word of "gcc", so it can be a program name with args.
1937 set dummy gcc; ac_word=$2
1938 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1939 echo "configure:1940: checking for $ac_word" >&5
1940 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1941 echo $ac_n "(cached) $ac_c" 1>&6
1942 else
1943 if test -n "$CC"; then
1944 ac_cv_prog_CC="$CC" # Let the user override the test.
1945 else
1946 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1947 ac_dummy="$PATH"
1948 for ac_dir in $ac_dummy; do
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"
1956 fi
1957 fi
1958 CC="$ac_cv_prog_CC"
1959 if test -n "$CC"; then
1960 echo "$ac_t""$CC" 1>&6
1961 else
1962 echo "$ac_t""no" 1>&6
1963 fi
1964
1965 if test -z "$CC"; then
1966 # Extract the first word of "cc", so it can be a program name with args.
1967 set dummy cc; ac_word=$2
1968 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1969 echo "configure:1970: checking for $ac_word" >&5
1970 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1971 echo $ac_n "(cached) $ac_c" 1>&6
1972 else
1973 if test -n "$CC"; then
1974 ac_cv_prog_CC="$CC" # Let the user override the test.
1975 else
1976 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1977 ac_prog_rejected=no
1978 ac_dummy="$PATH"
1979 for ac_dir in $ac_dummy; do
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"
1991 if 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
2004 fi
2005 fi
2006 fi
2007 CC="$ac_cv_prog_CC"
2008 if test -n "$CC"; then
2009 echo "$ac_t""$CC" 1>&6
2010 else
2011 echo "$ac_t""no" 1>&6
2012 fi
2013
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.
2018 set dummy cl; ac_word=$2
2019 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2020 echo "configure:2021: checking for $ac_word" >&5
2021 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2022 echo $ac_n "(cached) $ac_c" 1>&6
2023 else
2024 if test -n "$CC"; then
2025 ac_cv_prog_CC="$CC" # Let the user override the test.
2026 else
2027 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2028 ac_dummy="$PATH"
2029 for ac_dir in $ac_dummy; do
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"
2037 fi
2038 fi
2039 CC="$ac_cv_prog_CC"
2040 if test -n "$CC"; then
2041 echo "$ac_t""$CC" 1>&6
2042 else
2043 echo "$ac_t""no" 1>&6
2044 fi
2045 ;;
2046 esac
2047 fi
2048 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2049 fi
2050
2051 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2052 echo "configure:2053: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2053
2054 ac_ext=c
2055 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2056 ac_cpp='$CPP $CPPFLAGS'
2057 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2058 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2059 cross_compiling=$ac_cv_prog_cc_cross
2060
2061 cat > conftest.$ac_ext << EOF
2062
2063 #line 2064 "configure"
2064 #include "confdefs.h"
2065
2066 main(){return(0);}
2067 EOF
2068 if { (eval echo configure:2069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
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
2073 else
2074 ac_cv_prog_cc_cross=yes
2075 fi
2076 else
2077 echo "configure: failed program was:" >&5
2078 cat conftest.$ac_ext >&5
2079 ac_cv_prog_cc_works=no
2080 fi
2081 rm -fr conftest*
2082 ac_ext=c
2083 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2084 ac_cpp='$CPP $CPPFLAGS'
2085 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2086 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2087 cross_compiling=$ac_cv_prog_cc_cross
2088
2089 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2090 if 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; }
2092 fi
2093 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2094 echo "configure:2095: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2095 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2096 cross_compiling=$ac_cv_prog_cc_cross
2097
2098 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2099 echo "configure:2100: checking whether we are using GNU C" >&5
2100 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2101 echo $ac_n "(cached) $ac_c" 1>&6
2102 else
2103 cat > conftest.c <<EOF
2104 #ifdef __GNUC__
2105 yes;
2106 #endif
2107 EOF
2108 if { 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
2109 ac_cv_prog_gcc=yes
2110 else
2111 ac_cv_prog_gcc=no
2112 fi
2113 fi
2114
2115 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2116
2117 if test $ac_cv_prog_gcc = yes; then
2118 GCC=yes
2119 else
2120 GCC=
2121 fi
2122
2123 ac_test_CFLAGS="${CFLAGS+set}"
2124 ac_save_CFLAGS="$CFLAGS"
2125 CFLAGS=
2126 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2127 echo "configure:2128: checking whether ${CC-cc} accepts -g" >&5
2128 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2129 echo $ac_n "(cached) $ac_c" 1>&6
2130 else
2131 echo 'void f(){}' > conftest.c
2132 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2133 ac_cv_prog_cc_g=yes
2134 else
2135 ac_cv_prog_cc_g=no
2136 fi
2137 rm -f conftest*
2138
2139 fi
2140
2141 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2142 if test "$ac_test_CFLAGS" = set; then
2143 CFLAGS="$ac_save_CFLAGS"
2144 elif test $ac_cv_prog_cc_g = yes; then
2145 if test "$GCC" = yes; then
2146 CFLAGS="-g -O2"
2147 else
2148 CFLAGS="-g"
2149 fi
2150 else
2151 if test "$GCC" = yes; then
2152 CFLAGS="-O2"
2153 else
2154 CFLAGS=
2155 fi
2156 fi
2157
2158
2159 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2160
2161
2162 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
2163 echo "configure:2164: checking for POSIXized ISC" >&5
2164 if test -d /etc/conf/kconfig.d &&
2165 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2166 then
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
2171 EOF
2172
2173 if test "$GCC" = yes; then
2174 CC="$CC -posix"
2175 else
2176 CC="$CC -Xp"
2177 fi
2178 else
2179 echo "$ac_t""no" 1>&6
2180 ISC=
2181 fi
2182
2183
2184 ALL_LINGUAS=
2185 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2186 echo "configure:2187: checking how to run the C preprocessor" >&5
2187 # On Suns, sometimes $CPP names a directory.
2188 if test -n "$CPP" && test -d "$CPP"; then
2189 CPP=
2190 fi
2191 if test -z "$CPP"; then
2192 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2193 echo $ac_n "(cached) $ac_c" 1>&6
2194 else
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
2201 #line 2202 "configure"
2202 #include "confdefs.h"
2203 #include <assert.h>
2204 Syntax Error
2205 EOF
2206 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2207 { (eval echo configure:2208: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2208 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2209 if test -z "$ac_err"; then
2210 :
2211 else
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
2218 #line 2219 "configure"
2219 #include "confdefs.h"
2220 #include <assert.h>
2221 Syntax Error
2222 EOF
2223 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2224 { (eval echo configure:2225: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2225 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2226 if test -z "$ac_err"; then
2227 :
2228 else
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
2235 #line 2236 "configure"
2236 #include "confdefs.h"
2237 #include <assert.h>
2238 Syntax Error
2239 EOF
2240 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2241 { (eval echo configure:2242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2242 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2243 if test -z "$ac_err"; then
2244 :
2245 else
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
2251 fi
2252 rm -f conftest*
2253 fi
2254 rm -f conftest*
2255 fi
2256 rm -f conftest*
2257 ac_cv_prog_CPP="$CPP"
2258 fi
2259 CPP="$ac_cv_prog_CPP"
2260 else
2261 ac_cv_prog_CPP="$CPP"
2262 fi
2263 echo "$ac_t""$CPP" 1>&6
2264
2265 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2266 echo "configure:2267: checking for ANSI C header files" >&5
2267 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2268 echo $ac_n "(cached) $ac_c" 1>&6
2269 else
2270 cat > conftest.$ac_ext <<EOF
2271 #line 2272 "configure"
2272 #include "confdefs.h"
2273 #include <stdlib.h>
2274 #include <stdarg.h>
2275 #include <string.h>
2276 #include <float.h>
2277 EOF
2278 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2279 { (eval echo configure:2280: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2280 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2281 if test -z "$ac_err"; then
2282 rm -rf conftest*
2283 ac_cv_header_stdc=yes
2284 else
2285 echo "$ac_err" >&5
2286 echo "configure: failed program was:" >&5
2287 cat conftest.$ac_ext >&5
2288 rm -rf conftest*
2289 ac_cv_header_stdc=no
2290 fi
2291 rm -f conftest*
2292
2293 if test $ac_cv_header_stdc = yes; then
2294 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2295 cat > conftest.$ac_ext <<EOF
2296 #line 2297 "configure"
2297 #include "confdefs.h"
2298 #include <string.h>
2299 EOF
2300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2301 egrep "memchr" >/dev/null 2>&1; then
2302 :
2303 else
2304 rm -rf conftest*
2305 ac_cv_header_stdc=no
2306 fi
2307 rm -f conftest*
2308
2309 fi
2310
2311 if test $ac_cv_header_stdc = yes; then
2312 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2313 cat > conftest.$ac_ext <<EOF
2314 #line 2315 "configure"
2315 #include "confdefs.h"
2316 #include <stdlib.h>
2317 EOF
2318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2319 egrep "free" >/dev/null 2>&1; then
2320 :
2321 else
2322 rm -rf conftest*
2323 ac_cv_header_stdc=no
2324 fi
2325 rm -f conftest*
2326
2327 fi
2328
2329 if test $ac_cv_header_stdc = yes; then
2330 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2331 if test "$cross_compiling" = yes; then
2332 :
2333 else
2334 cat > conftest.$ac_ext <<EOF
2335 #line 2336 "configure"
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)))
2341 int main () { int i; for (i = 0; i < 256; i++)
2342 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2343 exit (0); }
2344
2345 EOF
2346 if { (eval echo configure:2347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2347 then
2348 :
2349 else
2350 echo "configure: failed program was:" >&5
2351 cat conftest.$ac_ext >&5
2352 rm -fr conftest*
2353 ac_cv_header_stdc=no
2354 fi
2355 rm -fr conftest*
2356 fi
2357
2358 fi
2359 fi
2360
2361 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2362 if test $ac_cv_header_stdc = yes; then
2363 cat >> confdefs.h <<\EOF
2364 #define STDC_HEADERS 1
2365 EOF
2366
2367 fi
2368
2369 echo $ac_n "checking for working const""... $ac_c" 1>&6
2370 echo "configure:2371: checking for working const" >&5
2371 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2372 echo $ac_n "(cached) $ac_c" 1>&6
2373 else
2374 cat > conftest.$ac_ext <<EOF
2375 #line 2376 "configure"
2376 #include "confdefs.h"
2377
2378 int main() {
2379
2380 /* Ultrix mips cc rejects this. */
2381 typedef int charset[2]; const charset x;
2382 /* SunOS 4.1.1 cc rejects this. */
2383 char const *const *ccp;
2384 char **p;
2385 /* NEC SVR4.0.2 mips cc rejects this. */
2386 struct point {int x, y;};
2387 static 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 */
2391 const char *g = "string";
2392 ccp = &g + (g ? g-g : 0);
2393 /* HPUX 7.0 cc rejects these. */
2394 ++ccp;
2395 p = (char**) ccp;
2396 ccp = (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
2422 ; return 0; }
2423 EOF
2424 if { (eval echo configure:2425: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2425 rm -rf conftest*
2426 ac_cv_c_const=yes
2427 else
2428 echo "configure: failed program was:" >&5
2429 cat conftest.$ac_ext >&5
2430 rm -rf conftest*
2431 ac_cv_c_const=no
2432 fi
2433 rm -f conftest*
2434 fi
2435
2436 echo "$ac_t""$ac_cv_c_const" 1>&6
2437 if test $ac_cv_c_const = no; then
2438 cat >> confdefs.h <<\EOF
2439 #define const
2440 EOF
2441
2442 fi
2443
2444 echo $ac_n "checking for inline""... $ac_c" 1>&6
2445 echo "configure:2446: checking for inline" >&5
2446 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2447 echo $ac_n "(cached) $ac_c" 1>&6
2448 else
2449 ac_cv_c_inline=no
2450 for ac_kw in inline __inline__ __inline; do
2451 cat > conftest.$ac_ext <<EOF
2452 #line 2453 "configure"
2453 #include "confdefs.h"
2454
2455 int main() {
2456 } $ac_kw foo() {
2457 ; return 0; }
2458 EOF
2459 if { (eval echo configure:2460: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2460 rm -rf conftest*
2461 ac_cv_c_inline=$ac_kw; break
2462 else
2463 echo "configure: failed program was:" >&5
2464 cat conftest.$ac_ext >&5
2465 fi
2466 rm -f conftest*
2467 done
2468
2469 fi
2470
2471 echo "$ac_t""$ac_cv_c_inline" 1>&6
2472 case "$ac_cv_c_inline" in
2473 inline | yes) ;;
2474 no) cat >> confdefs.h <<\EOF
2475 #define inline
2476 EOF
2477 ;;
2478 *) cat >> confdefs.h <<EOF
2479 #define inline $ac_cv_c_inline
2480 EOF
2481 ;;
2482 esac
2483
2484 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2485 echo "configure:2486: checking for off_t" >&5
2486 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2487 echo $ac_n "(cached) $ac_c" 1>&6
2488 else
2489 cat > conftest.$ac_ext <<EOF
2490 #line 2491 "configure"
2491 #include "confdefs.h"
2492 #include <sys/types.h>
2493 #if STDC_HEADERS
2494 #include <stdlib.h>
2495 #include <stddef.h>
2496 #endif
2497 EOF
2498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2499 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2500 rm -rf conftest*
2501 ac_cv_type_off_t=yes
2502 else
2503 rm -rf conftest*
2504 ac_cv_type_off_t=no
2505 fi
2506 rm -f conftest*
2507
2508 fi
2509 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2510 if test $ac_cv_type_off_t = no; then
2511 cat >> confdefs.h <<\EOF
2512 #define off_t long
2513 EOF
2514
2515 fi
2516
2517 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2518 echo "configure:2519: checking for size_t" >&5
2519 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2520 echo $ac_n "(cached) $ac_c" 1>&6
2521 else
2522 cat > conftest.$ac_ext <<EOF
2523 #line 2524 "configure"
2524 #include "confdefs.h"
2525 #include <sys/types.h>
2526 #if STDC_HEADERS
2527 #include <stdlib.h>
2528 #include <stddef.h>
2529 #endif
2530 EOF
2531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2532 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2533 rm -rf conftest*
2534 ac_cv_type_size_t=yes
2535 else
2536 rm -rf conftest*
2537 ac_cv_type_size_t=no
2538 fi
2539 rm -f conftest*
2540
2541 fi
2542 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2543 if test $ac_cv_type_size_t = no; then
2544 cat >> confdefs.h <<\EOF
2545 #define size_t unsigned
2546 EOF
2547
2548 fi
2549
2550 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2551 # for constant arguments. Useless!
2552 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2553 echo "configure:2554: checking for working alloca.h" >&5
2554 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2555 echo $ac_n "(cached) $ac_c" 1>&6
2556 else
2557 cat > conftest.$ac_ext <<EOF
2558 #line 2559 "configure"
2559 #include "confdefs.h"
2560 #include <alloca.h>
2561 int main() {
2562 char *p = alloca(2 * sizeof(int));
2563 ; return 0; }
2564 EOF
2565 if { (eval echo configure:2566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2566 rm -rf conftest*
2567 ac_cv_header_alloca_h=yes
2568 else
2569 echo "configure: failed program was:" >&5
2570 cat conftest.$ac_ext >&5
2571 rm -rf conftest*
2572 ac_cv_header_alloca_h=no
2573 fi
2574 rm -f conftest*
2575 fi
2576
2577 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2578 if test $ac_cv_header_alloca_h = yes; then
2579 cat >> confdefs.h <<\EOF
2580 #define HAVE_ALLOCA_H 1
2581 EOF
2582
2583 fi
2584
2585 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2586 echo "configure:2587: checking for alloca" >&5
2587 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2588 echo $ac_n "(cached) $ac_c" 1>&6
2589 else
2590 cat > conftest.$ac_ext <<EOF
2591 #line 2592 "configure"
2592 #include "confdefs.h"
2593
2594 #ifdef __GNUC__
2595 # define alloca __builtin_alloca
2596 #else
2597 # ifdef _MSC_VER
2598 # include <malloc.h>
2599 # define alloca _alloca
2600 # else
2601 # if HAVE_ALLOCA_H
2602 # include <alloca.h>
2603 # else
2604 # ifdef _AIX
2605 #pragma alloca
2606 # else
2607 # ifndef alloca /* predefined by HP cc +Olibcalls */
2608 char *alloca ();
2609 # endif
2610 # endif
2611 # endif
2612 # endif
2613 #endif
2614
2615 int main() {
2616 char *p = (char *) alloca(1);
2617 ; return 0; }
2618 EOF
2619 if { (eval echo configure:2620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2620 rm -rf conftest*
2621 ac_cv_func_alloca_works=yes
2622 else
2623 echo "configure: failed program was:" >&5
2624 cat conftest.$ac_ext >&5
2625 rm -rf conftest*
2626 ac_cv_func_alloca_works=no
2627 fi
2628 rm -f conftest*
2629 fi
2630
2631 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2632 if test $ac_cv_func_alloca_works = yes; then
2633 cat >> confdefs.h <<\EOF
2634 #define HAVE_ALLOCA 1
2635 EOF
2636
2637 fi
2638
2639 if 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.
2644 ALLOCA=alloca.${ac_objext}
2645 cat >> confdefs.h <<\EOF
2646 #define C_ALLOCA 1
2647 EOF
2648
2649
2650 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2651 echo "configure:2652: checking whether alloca needs Cray hooks" >&5
2652 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2653 echo $ac_n "(cached) $ac_c" 1>&6
2654 else
2655 cat > conftest.$ac_ext <<EOF
2656 #line 2657 "configure"
2657 #include "confdefs.h"
2658 #if defined(CRAY) && ! defined(CRAY2)
2659 webecray
2660 #else
2661 wenotbecray
2662 #endif
2663
2664 EOF
2665 if (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
2669 else
2670 rm -rf conftest*
2671 ac_cv_os_cray=no
2672 fi
2673 rm -f conftest*
2674
2675 fi
2676
2677 echo "$ac_t""$ac_cv_os_cray" 1>&6
2678 if test $ac_cv_os_cray = yes; then
2679 for ac_func in _getb67 GETB67 getb67; do
2680 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2681 echo "configure:2682: checking for $ac_func" >&5
2682 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2683 echo $ac_n "(cached) $ac_c" 1>&6
2684 else
2685 cat > conftest.$ac_ext <<EOF
2686 #line 2687 "configure"
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. */
2694 char $ac_func();
2695
2696 int 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)
2702 choke me
2703 #else
2704 $ac_func();
2705 #endif
2706
2707 ; return 0; }
2708 EOF
2709 if { (eval echo configure:2710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2710 rm -rf conftest*
2711 eval "ac_cv_func_$ac_func=yes"
2712 else
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"
2717 fi
2718 rm -f conftest*
2719 fi
2720
2721 if 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
2725 EOF
2726
2727 break
2728 else
2729 echo "$ac_t""no" 1>&6
2730 fi
2731
2732 done
2733 fi
2734
2735 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2736 echo "configure:2737: checking stack direction for C alloca" >&5
2737 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2738 echo $ac_n "(cached) $ac_c" 1>&6
2739 else
2740 if test "$cross_compiling" = yes; then
2741 ac_cv_c_stack_direction=0
2742 else
2743 cat > conftest.$ac_ext <<EOF
2744 #line 2745 "configure"
2745 #include "confdefs.h"
2746 find_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 }
2758 main ()
2759 {
2760 exit (find_stack_direction() < 0);
2761 }
2762 EOF
2763 if { (eval echo configure:2764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2764 then
2765 ac_cv_c_stack_direction=1
2766 else
2767 echo "configure: failed program was:" >&5
2768 cat conftest.$ac_ext >&5
2769 rm -fr conftest*
2770 ac_cv_c_stack_direction=-1
2771 fi
2772 rm -fr conftest*
2773 fi
2774
2775 fi
2776
2777 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2778 cat >> confdefs.h <<EOF
2779 #define STACK_DIRECTION $ac_cv_c_stack_direction
2780 EOF
2781
2782 fi
2783
2784 for ac_hdr in unistd.h
2785 do
2786 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2787 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2788 echo "configure:2789: checking for $ac_hdr" >&5
2789 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2790 echo $ac_n "(cached) $ac_c" 1>&6
2791 else
2792 cat > conftest.$ac_ext <<EOF
2793 #line 2794 "configure"
2794 #include "confdefs.h"
2795 #include <$ac_hdr>
2796 EOF
2797 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2798 { (eval echo configure:2799: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2799 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2800 if test -z "$ac_err"; then
2801 rm -rf conftest*
2802 eval "ac_cv_header_$ac_safe=yes"
2803 else
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"
2809 fi
2810 rm -f conftest*
2811 fi
2812 if 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
2817 EOF
2818
2819 else
2820 echo "$ac_t""no" 1>&6
2821 fi
2822 done
2823
2824 for ac_func in getpagesize
2825 do
2826 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2827 echo "configure:2828: checking for $ac_func" >&5
2828 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2829 echo $ac_n "(cached) $ac_c" 1>&6
2830 else
2831 cat > conftest.$ac_ext <<EOF
2832 #line 2833 "configure"
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. */
2840 char $ac_func();
2841
2842 int 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)
2848 choke me
2849 #else
2850 $ac_func();
2851 #endif
2852
2853 ; return 0; }
2854 EOF
2855 if { (eval echo configure:2856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2856 rm -rf conftest*
2857 eval "ac_cv_func_$ac_func=yes"
2858 else
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"
2863 fi
2864 rm -f conftest*
2865 fi
2866
2867 if 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
2872 EOF
2873
2874 else
2875 echo "$ac_t""no" 1>&6
2876 fi
2877 done
2878
2879 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2880 echo "configure:2881: checking for working mmap" >&5
2881 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2882 echo $ac_n "(cached) $ac_c" 1>&6
2883 else
2884 if test "$cross_compiling" = yes; then
2885 ac_cv_func_mmap_fixed_mapped=no
2886 else
2887 cat > conftest.$ac_ext <<EOF
2888 #line 2889 "configure"
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
2958 extern "C" { void *malloc(unsigned); }
2959 #else
2960 char *malloc();
2961 #endif
2962
2963 int
2964 main()
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
3027 EOF
3028 if { (eval echo configure:3029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3029 then
3030 ac_cv_func_mmap_fixed_mapped=yes
3031 else
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
3036 fi
3037 rm -fr conftest*
3038 fi
3039
3040 fi
3041
3042 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3043 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3044 cat >> confdefs.h <<\EOF
3045 #define HAVE_MMAP 1
3046 EOF
3047
3048 fi
3049
3050
3051 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3052 unistd.h values.h sys/param.h
3053 do
3054 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3055 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3056 echo "configure:3057: checking for $ac_hdr" >&5
3057 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3058 echo $ac_n "(cached) $ac_c" 1>&6
3059 else
3060 cat > conftest.$ac_ext <<EOF
3061 #line 3062 "configure"
3062 #include "confdefs.h"
3063 #include <$ac_hdr>
3064 EOF
3065 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3066 { (eval echo configure:3067: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3067 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3068 if test -z "$ac_err"; then
3069 rm -rf conftest*
3070 eval "ac_cv_header_$ac_safe=yes"
3071 else
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"
3077 fi
3078 rm -f conftest*
3079 fi
3080 if 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
3085 EOF
3086
3087 else
3088 echo "$ac_t""no" 1>&6
3089 fi
3090 done
3091
3092 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3093 __argz_count __argz_stringify __argz_next
3094 do
3095 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3096 echo "configure:3097: checking for $ac_func" >&5
3097 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3098 echo $ac_n "(cached) $ac_c" 1>&6
3099 else
3100 cat > conftest.$ac_ext <<EOF
3101 #line 3102 "configure"
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. */
3109 char $ac_func();
3110
3111 int 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)
3117 choke me
3118 #else
3119 $ac_func();
3120 #endif
3121
3122 ; return 0; }
3123 EOF
3124 if { (eval echo configure:3125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3125 rm -rf conftest*
3126 eval "ac_cv_func_$ac_func=yes"
3127 else
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"
3132 fi
3133 rm -f conftest*
3134 fi
3135
3136 if 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
3141 EOF
3142
3143 else
3144 echo "$ac_t""no" 1>&6
3145 fi
3146 done
3147
3148
3149 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3150 for ac_func in stpcpy
3151 do
3152 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3153 echo "configure:3154: checking for $ac_func" >&5
3154 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3155 echo $ac_n "(cached) $ac_c" 1>&6
3156 else
3157 cat > conftest.$ac_ext <<EOF
3158 #line 3159 "configure"
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. */
3166 char $ac_func();
3167
3168 int 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)
3174 choke me
3175 #else
3176 $ac_func();
3177 #endif
3178
3179 ; return 0; }
3180 EOF
3181 if { (eval echo configure:3182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3182 rm -rf conftest*
3183 eval "ac_cv_func_$ac_func=yes"
3184 else
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"
3189 fi
3190 rm -f conftest*
3191 fi
3192
3193 if 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
3198 EOF
3199
3200 else
3201 echo "$ac_t""no" 1>&6
3202 fi
3203 done
3204
3205 fi
3206 if test "${ac_cv_func_stpcpy}" = "yes"; then
3207 cat >> confdefs.h <<\EOF
3208 #define HAVE_STPCPY 1
3209 EOF
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
3215 echo "configure:3216: checking for LC_MESSAGES" >&5
3216 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3217 echo $ac_n "(cached) $ac_c" 1>&6
3218 else
3219 cat > conftest.$ac_ext <<EOF
3220 #line 3221 "configure"
3221 #include "confdefs.h"
3222 #include <locale.h>
3223 int main() {
3224 return LC_MESSAGES
3225 ; return 0; }
3226 EOF
3227 if { (eval echo configure:3228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3228 rm -rf conftest*
3229 am_cv_val_LC_MESSAGES=yes
3230 else
3231 echo "configure: failed program was:" >&5
3232 cat conftest.$ac_ext >&5
3233 rm -rf conftest*
3234 am_cv_val_LC_MESSAGES=no
3235 fi
3236 rm -f conftest*
3237 fi
3238
3239 echo "$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
3243 EOF
3244
3245 fi
3246 fi
3247 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3248 echo "configure:3249: checking whether NLS is requested" >&5
3249 # Check whether --enable-nls or --disable-nls was given.
3250 if test "${enable_nls+set}" = set; then
3251 enableval="$enable_nls"
3252 USE_NLS=$enableval
3253 else
3254 USE_NLS=yes
3255 fi
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
3265 EOF
3266
3267 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3268 echo "configure:3269: checking whether included gettext is requested" >&5
3269 # Check whether --with-included-gettext or --without-included-gettext was given.
3270 if test "${with_included_gettext+set}" = set; then
3271 withval="$with_included_gettext"
3272 nls_cv_force_use_gnu_gettext=$withval
3273 else
3274 nls_cv_force_use_gnu_gettext=no
3275 fi
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_%'`
3286 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3287 echo "configure:3288: checking for libintl.h" >&5
3288 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3289 echo $ac_n "(cached) $ac_c" 1>&6
3290 else
3291 cat > conftest.$ac_ext <<EOF
3292 #line 3293 "configure"
3293 #include "confdefs.h"
3294 #include <libintl.h>
3295 EOF
3296 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3297 { (eval echo configure:3298: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3298 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3299 if test -z "$ac_err"; then
3300 rm -rf conftest*
3301 eval "ac_cv_header_$ac_safe=yes"
3302 else
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"
3308 fi
3309 rm -f conftest*
3310 fi
3311 if 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
3314 echo "configure:3315: checking for gettext in libc" >&5
3315 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3316 echo $ac_n "(cached) $ac_c" 1>&6
3317 else
3318 cat > conftest.$ac_ext <<EOF
3319 #line 3320 "configure"
3320 #include "confdefs.h"
3321 #include <libintl.h>
3322 int main() {
3323 return (int) gettext ("")
3324 ; return 0; }
3325 EOF
3326 if { (eval echo configure:3327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3327 rm -rf conftest*
3328 gt_cv_func_gettext_libc=yes
3329 else
3330 echo "configure: failed program was:" >&5
3331 cat conftest.$ac_ext >&5
3332 rm -rf conftest*
3333 gt_cv_func_gettext_libc=no
3334 fi
3335 rm -f conftest*
3336 fi
3337
3338 echo "$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
3342 echo "configure:3343: checking for bindtextdomain in -lintl" >&5
3343 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3344 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3345 echo $ac_n "(cached) $ac_c" 1>&6
3346 else
3347 ac_save_LIBS="$LIBS"
3348 LIBS="-lintl $LIBS"
3349 cat > conftest.$ac_ext <<EOF
3350 #line 3351 "configure"
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. */
3355 char bindtextdomain();
3356
3357 int main() {
3358 bindtextdomain()
3359 ; return 0; }
3360 EOF
3361 if { (eval echo configure:3362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3362 rm -rf conftest*
3363 eval "ac_cv_lib_$ac_lib_var=yes"
3364 else
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"
3369 fi
3370 rm -f conftest*
3371 LIBS="$ac_save_LIBS"
3372
3373 fi
3374 if 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
3377 echo "configure:3378: checking for gettext in libintl" >&5
3378 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3379 echo $ac_n "(cached) $ac_c" 1>&6
3380 else
3381 cat > conftest.$ac_ext <<EOF
3382 #line 3383 "configure"
3383 #include "confdefs.h"
3384
3385 int main() {
3386 return (int) gettext ("")
3387 ; return 0; }
3388 EOF
3389 if { (eval echo configure:3390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3390 rm -rf conftest*
3391 gt_cv_func_gettext_libintl=yes
3392 else
3393 echo "configure: failed program was:" >&5
3394 cat conftest.$ac_ext >&5
3395 rm -rf conftest*
3396 gt_cv_func_gettext_libintl=no
3397 fi
3398 rm -f conftest*
3399 fi
3400
3401 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3402 else
3403 echo "$ac_t""no" 1>&6
3404 fi
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
3412 EOF
3413
3414 # Extract the first word of "msgfmt", so it can be a program name with args.
3415 set dummy msgfmt; ac_word=$2
3416 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3417 echo "configure:3418: checking for $ac_word" >&5
3418 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3419 echo $ac_n "(cached) $ac_c" 1>&6
3420 else
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 ;;
3439 esac
3440 fi
3441 MSGFMT="$ac_cv_path_MSGFMT"
3442 if test -n "$MSGFMT"; then
3443 echo "$ac_t""$MSGFMT" 1>&6
3444 else
3445 echo "$ac_t""no" 1>&6
3446 fi
3447 if test "$MSGFMT" != "no"; then
3448 for ac_func in dcgettext
3449 do
3450 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3451 echo "configure:3452: checking for $ac_func" >&5
3452 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3453 echo $ac_n "(cached) $ac_c" 1>&6
3454 else
3455 cat > conftest.$ac_ext <<EOF
3456 #line 3457 "configure"
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. */
3464 char $ac_func();
3465
3466 int 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)
3472 choke me
3473 #else
3474 $ac_func();
3475 #endif
3476
3477 ; return 0; }
3478 EOF
3479 if { (eval echo configure:3480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3480 rm -rf conftest*
3481 eval "ac_cv_func_$ac_func=yes"
3482 else
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"
3487 fi
3488 rm -f conftest*
3489 fi
3490
3491 if 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
3496 EOF
3497
3498 else
3499 echo "$ac_t""no" 1>&6
3500 fi
3501 done
3502
3503 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3504 set dummy gmsgfmt; ac_word=$2
3505 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3506 echo "configure:3507: checking for $ac_word" >&5
3507 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3508 echo $ac_n "(cached) $ac_c" 1>&6
3509 else
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 *)
3518 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3519 ac_dummy="$PATH"
3520 for ac_dir in $ac_dummy; do
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 ;;
3530 esac
3531 fi
3532 GMSGFMT="$ac_cv_path_GMSGFMT"
3533 if test -n "$GMSGFMT"; then
3534 echo "$ac_t""$GMSGFMT" 1>&6
3535 else
3536 echo "$ac_t""no" 1>&6
3537 fi
3538
3539 # Extract the first word of "xgettext", so it can be a program name with args.
3540 set dummy xgettext; ac_word=$2
3541 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3542 echo "configure:3543: checking for $ac_word" >&5
3543 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3544 echo $ac_n "(cached) $ac_c" 1>&6
3545 else
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 ;;
3564 esac
3565 fi
3566 XGETTEXT="$ac_cv_path_XGETTEXT"
3567 if test -n "$XGETTEXT"; then
3568 echo "$ac_t""$XGETTEXT" 1>&6
3569 else
3570 echo "$ac_t""no" 1>&6
3571 fi
3572
3573 cat > conftest.$ac_ext <<EOF
3574 #line 3575 "configure"
3575 #include "confdefs.h"
3576
3577 int main() {
3578 extern int _nl_msg_cat_cntr;
3579 return _nl_msg_cat_cntr
3580 ; return 0; }
3581 EOF
3582 if { (eval echo configure:3583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3583 rm -rf conftest*
3584 CATOBJEXT=.gmo
3585 DATADIRNAME=share
3586 else
3587 echo "configure: failed program was:" >&5
3588 cat conftest.$ac_ext >&5
3589 rm -rf conftest*
3590 CATOBJEXT=.mo
3591 DATADIRNAME=lib
3592 fi
3593 rm -f conftest*
3594 INSTOBJEXT=.mo
3595 fi
3596 fi
3597
3598 else
3599 echo "$ac_t""no" 1>&6
3600 fi
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.
3612 set dummy msgfmt; ac_word=$2
3613 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3614 echo "configure:3615: checking for $ac_word" >&5
3615 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3616 echo $ac_n "(cached) $ac_c" 1>&6
3617 else
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 ;;
3636 esac
3637 fi
3638 MSGFMT="$ac_cv_path_MSGFMT"
3639 if test -n "$MSGFMT"; then
3640 echo "$ac_t""$MSGFMT" 1>&6
3641 else
3642 echo "$ac_t""no" 1>&6
3643 fi
3644
3645 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3646 set dummy gmsgfmt; ac_word=$2
3647 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3648 echo "configure:3649: checking for $ac_word" >&5
3649 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3650 echo $ac_n "(cached) $ac_c" 1>&6
3651 else
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 *)
3660 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3661 ac_dummy="$PATH"
3662 for ac_dir in $ac_dummy; do
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 ;;
3672 esac
3673 fi
3674 GMSGFMT="$ac_cv_path_GMSGFMT"
3675 if test -n "$GMSGFMT"; then
3676 echo "$ac_t""$GMSGFMT" 1>&6
3677 else
3678 echo "$ac_t""no" 1>&6
3679 fi
3680
3681 # Extract the first word of "xgettext", so it can be a program name with args.
3682 set dummy xgettext; ac_word=$2
3683 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3684 echo "configure:3685: checking for $ac_word" >&5
3685 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3686 echo $ac_n "(cached) $ac_c" 1>&6
3687 else
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 ;;
3706 esac
3707 fi
3708 XGETTEXT="$ac_cv_path_XGETTEXT"
3709 if test -n "$XGETTEXT"; then
3710 echo "$ac_t""$XGETTEXT" 1>&6
3711 else
3712 echo "$ac_t""no" 1>&6
3713 fi
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
3774 echo "configure:3775: checking for catalogs to be installed" >&5
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_%'`
3801 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
3802 echo "configure:3803: checking for linux/version.h" >&5
3803 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3804 echo $ac_n "(cached) $ac_c" 1>&6
3805 else
3806 cat > conftest.$ac_ext <<EOF
3807 #line 3808 "configure"
3808 #include "confdefs.h"
3809 #include <linux/version.h>
3810 EOF
3811 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3812 { (eval echo configure:3813: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3813 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3814 if test -z "$ac_err"; then
3815 rm -rf conftest*
3816 eval "ac_cv_header_$ac_safe=yes"
3817 else
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"
3823 fi
3824 rm -f conftest*
3825 fi
3826 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3827 echo "$ac_t""yes" 1>&6
3828 msgformat=linux
3829 else
3830 echo "$ac_t""no" 1>&6
3831 msgformat=xopen
3832 fi
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
3874 case "${target}" in
3875 *-*-bsd4.4* | *-*-netbsd* | *-*-freebsd* | *-*-openbsd* \
3876 | *-*-cygwin* | *-*-mingw32 | *-*-win32 )
3877 cat >> confdefs.h <<\EOF
3878 #define BSD44_FORMAT 1
3879 EOF
3880
3881 ;;
3882 esac
3883
3884 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
3885 echo "configure:3886: checking whether to enable maintainer-specific portions of Makefiles" >&5
3886 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3887 if test "${enable_maintainer_mode+set}" = set; then
3888 enableval="$enable_maintainer_mode"
3889 USE_MAINTAINER_MODE=$enableval
3890 else
3891 USE_MAINTAINER_MODE=no
3892 fi
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
3902 echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6
3903 echo "configure:3904: checking for Cygwin32 environment" >&5
3904 if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then
3905 echo $ac_n "(cached) $ac_c" 1>&6
3906 else
3907 cat > conftest.$ac_ext <<EOF
3908 #line 3909 "configure"
3909 #include "confdefs.h"
3910
3911 int main() {
3912 return __CYGWIN32__;
3913 ; return 0; }
3914 EOF
3915 if { (eval echo configure:3916: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3916 rm -rf conftest*
3917 am_cv_cygwin32=yes
3918 else
3919 echo "configure: failed program was:" >&5
3920 cat conftest.$ac_ext >&5
3921 rm -rf conftest*
3922 am_cv_cygwin32=no
3923 fi
3924 rm -f conftest*
3925 rm -f conftest*
3926 fi
3927
3928 echo "$ac_t""$am_cv_cygwin32" 1>&6
3929 CYGWIN32=
3930 test "$am_cv_cygwin32" = yes && CYGWIN32=yes
3931 echo $ac_n "checking for Mingw32 environment""... $ac_c" 1>&6
3932 echo "configure:3933: checking for Mingw32 environment" >&5
3933 if eval "test \"`echo '$''{'am_cv_mingw32'+set}'`\" = set"; then
3934 echo $ac_n "(cached) $ac_c" 1>&6
3935 else
3936 cat > conftest.$ac_ext <<EOF
3937 #line 3938 "configure"
3938 #include "confdefs.h"
3939
3940 int main() {
3941 return __MINGW32__;
3942 ; return 0; }
3943 EOF
3944 if { (eval echo configure:3945: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3945 rm -rf conftest*
3946 am_cv_mingw32=yes
3947 else
3948 echo "configure: failed program was:" >&5
3949 cat conftest.$ac_ext >&5
3950 rm -rf conftest*
3951 am_cv_mingw32=no
3952 fi
3953 rm -f conftest*
3954 rm -f conftest*
3955 fi
3956
3957 echo "$ac_t""$am_cv_mingw32" 1>&6
3958 MINGW32=
3959 test "$am_cv_mingw32" = yes && MINGW32=yes
3960
3961
3962 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3963 echo "configure:3964: checking for executable suffix" >&5
3964 if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then
3965 echo $ac_n "(cached) $ac_c" 1>&6
3966 else
3967 if test "$CYGWIN32" = yes || test "$MINGW32" = yes; then
3968 am_cv_exeext=.exe
3969 else
3970 cat > am_c_test.c << 'EOF'
3971 int main() {
3972 /* Nothing needed here */
3973 }
3974 EOF
3975 ${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5
3976 am_cv_exeext=
3977 for 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
3983 done
3984 rm -f am_c_test*
3985 fi
3986
3987 test x"${am_cv_exeext}" = x && am_cv_exeext=no
3988 fi
3989 EXEEXT=""
3990 test x"${am_cv_exeext}" != xno && EXEEXT=${am_cv_exeext}
3991 echo "$ac_t""${am_cv_exeext}" 1>&6
3992
3993
3994 trap '' 1 2 15
3995 cat > 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.
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 #
4010 EOF
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.
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 |
4017 case `(ac_space=' '; set | grep ac_space) 2>&1` in
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
4030 if cmp -s $cache_file confcache; then
4031 :
4032 else
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
4039 fi
4040 rm -f confcache
4041
4042 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4043
4044 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4045 # Let make expand exec_prefix.
4046 test "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.
4051 if test "x$srcdir" = x.; then
4052 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4053 fi
4054
4055 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4056
4057 DEFS=-DHAVE_CONFIG_H
4058
4059 # Without the "./", some shells look in PATH for config.status.
4060 : ${CONFIG_STATUS=./config.status}
4061
4062 echo creating $CONFIG_STATUS
4063 rm -f $CONFIG_STATUS
4064 cat > $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
4076 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4077 for ac_option
4078 do
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)
4084 echo "$CONFIG_STATUS generated by autoconf version 2.12.2"
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
4090 done
4091
4092 ac_given_srcdir=$srcdir
4093 ac_given_INSTALL="$INSTALL"
4094
4095 trap 'rm -fr `echo "Makefile po/Makefile.in:po/Make-in gconfig.h:gconfig.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4096 EOF
4097 cat >> $CONFIG_STATUS <<EOF
4098
4099 # Protect against being on the right side of a sed subst in config.status.
4100 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4101 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4102 $ac_vpsub
4103 $extrasub
4104 s%@SHELL@%$SHELL%g
4105 s%@CFLAGS@%$CFLAGS%g
4106 s%@CPPFLAGS@%$CPPFLAGS%g
4107 s%@CXXFLAGS@%$CXXFLAGS%g
4108 s%@FFLAGS@%$FFLAGS%g
4109 s%@DEFS@%$DEFS%g
4110 s%@LDFLAGS@%$LDFLAGS%g
4111 s%@LIBS@%$LIBS%g
4112 s%@exec_prefix@%$exec_prefix%g
4113 s%@prefix@%$prefix%g
4114 s%@program_transform_name@%$program_transform_name%g
4115 s%@bindir@%$bindir%g
4116 s%@sbindir@%$sbindir%g
4117 s%@libexecdir@%$libexecdir%g
4118 s%@datadir@%$datadir%g
4119 s%@sysconfdir@%$sysconfdir%g
4120 s%@sharedstatedir@%$sharedstatedir%g
4121 s%@localstatedir@%$localstatedir%g
4122 s%@libdir@%$libdir%g
4123 s%@includedir@%$includedir%g
4124 s%@oldincludedir@%$oldincludedir%g
4125 s%@infodir@%$infodir%g
4126 s%@mandir@%$mandir%g
4127 s%@host@%$host%g
4128 s%@host_alias@%$host_alias%g
4129 s%@host_cpu@%$host_cpu%g
4130 s%@host_vendor@%$host_vendor%g
4131 s%@host_os@%$host_os%g
4132 s%@target@%$target%g
4133 s%@target_alias@%$target_alias%g
4134 s%@target_cpu@%$target_cpu%g
4135 s%@target_vendor@%$target_vendor%g
4136 s%@target_os@%$target_os%g
4137 s%@build@%$build%g
4138 s%@build_alias@%$build_alias%g
4139 s%@build_cpu@%$build_cpu%g
4140 s%@build_vendor@%$build_vendor%g
4141 s%@build_os@%$build_os%g
4142 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4143 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4144 s%@INSTALL_DATA@%$INSTALL_DATA%g
4145 s%@PACKAGE@%$PACKAGE%g
4146 s%@VERSION@%$VERSION%g
4147 s%@ACLOCAL@%$ACLOCAL%g
4148 s%@AUTOCONF@%$AUTOCONF%g
4149 s%@AUTOMAKE@%$AUTOMAKE%g
4150 s%@AUTOHEADER@%$AUTOHEADER%g
4151 s%@MAKEINFO@%$MAKEINFO%g
4152 s%@SET_MAKE@%$SET_MAKE%g
4153 s%@RANLIB@%$RANLIB%g
4154 s%@CC@%$CC%g
4155 s%@LD@%$LD%g
4156 s%@NM@%$NM%g
4157 s%@LN_S@%$LN_S%g
4158 s%@LIBTOOL@%$LIBTOOL%g
4159 s%@DLLTOOL@%$DLLTOOL%g
4160 s%@AS@%$AS%g
4161 s%@CPP@%$CPP%g
4162 s%@ALLOCA@%$ALLOCA%g
4163 s%@USE_NLS@%$USE_NLS%g
4164 s%@MSGFMT@%$MSGFMT%g
4165 s%@GMSGFMT@%$GMSGFMT%g
4166 s%@XGETTEXT@%$XGETTEXT%g
4167 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4168 s%@CATALOGS@%$CATALOGS%g
4169 s%@CATOBJEXT@%$CATOBJEXT%g
4170 s%@DATADIRNAME@%$DATADIRNAME%g
4171 s%@GMOFILES@%$GMOFILES%g
4172 s%@INSTOBJEXT@%$INSTOBJEXT%g
4173 s%@INTLDEPS@%$INTLDEPS%g
4174 s%@INTLLIBS@%$INTLLIBS%g
4175 s%@INTLOBJS@%$INTLOBJS%g
4176 s%@POFILES@%$POFILES%g
4177 s%@POSUB@%$POSUB%g
4178 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4179 s%@GT_NO@%$GT_NO%g
4180 s%@GT_YES@%$GT_YES%g
4181 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4182 s%@l@%$l%g
4183 s%@MAINT@%$MAINT%g
4184 s%@EXEEXT@%$EXEEXT%g
4185
4186 CEOF
4187 EOF
4188
4189 cat >> $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.
4193 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4194 ac_file=1 # Number of current file.
4195 ac_beg=1 # First line for current file.
4196 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4197 ac_more_lines=:
4198 ac_sed_cmds=""
4199 while $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
4218 done
4219 if test -z "$ac_sed_cmds"; then
4220 ac_sed_cmds=cat
4221 fi
4222 EOF
4223
4224 cat >> $CONFIG_STATUS <<EOF
4225
4226 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in:po/Make-in"}
4227 EOF
4228 cat >> $CONFIG_STATUS <<\EOF
4229 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4230 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4231 case "$ac_file" in
4232 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4233 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4234 *) ac_file_in="${ac_file}.in" ;;
4235 esac
4236
4237 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
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
4261 case "$ac_given_INSTALL" in
4262 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4263 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4264 esac
4265
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
4274
4275 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4276 sed -e "$ac_comsub
4277 s%@configure_input@%$configure_input%g
4278 s%@srcdir@%$srcdir%g
4279 s%@top_srcdir@%$top_srcdir%g
4280 s%@INSTALL@%$INSTALL%g
4281 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4282 fi; done
4283 rm -f conftest.s*
4284
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.
4289 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4290 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4291 ac_dC='\3'
4292 ac_dD='%g'
4293 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4294 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4295 ac_uB='\([ ]\)%\1#\2define\3'
4296 ac_uC=' '
4297 ac_uD='\4%g'
4298 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4299 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4300 ac_eB='$%\1#\2define\3'
4301 ac_eC=' '
4302 ac_eD='%g'
4303
4304 if test "${CONFIG_HEADERS+set}" != set; then
4305 EOF
4306 cat >> $CONFIG_STATUS <<EOF
4307 CONFIG_HEADERS="gconfig.h:gconfig.in"
4308 EOF
4309 cat >> $CONFIG_STATUS <<\EOF
4310 fi
4311 for 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
4325 EOF
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.
4331 rm -f conftest.vals
4332 cat > conftest.hdr <<\EOF
4333 s/[\\&%]/\\&/g
4334 s%[\\$`]%\\&%g
4335 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4336 s%ac_d%ac_u%gp
4337 s%ac_u%ac_e%gp
4338 EOF
4339 sed -n -f conftest.hdr confdefs.h > conftest.vals
4340 rm -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.
4345 cat >> conftest.vals <<\EOF
4346 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4347 EOF
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
4352 rm -f conftest.tail
4353 while :
4354 do
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
4369 done
4370 rm -f conftest.vals
4371
4372 cat >> $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
4390 fi; done
4391
4392 EOF
4393 cat >> $CONFIG_STATUS <<EOF
4394
4395
4396 EOF
4397 cat >> $CONFIG_STATUS <<\EOF
4398 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
4399 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
4400 exit 0
4401 EOF
4402 chmod +x $CONFIG_STATUS
4403 rm -fr confdefs* $ac_clean_files
4404 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4405