-
Notifications
You must be signed in to change notification settings - Fork 25
/
configure.ac
745 lines (688 loc) · 17.3 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
-*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.59)
AC_INIT([Portable C Compiler], [1.2.0.DEVEL], [[email protected]], [pcc], [http://pcc.ludd.ltu.se/])
AC_CONFIG_HEADER([config.h])
AC_CANONICAL_TARGET
abi=unknown
endian=little
targosver=0
tls=no
gcccompat=yes
pccdebug=yes
stripping=yes
native=no
nativefp=yes
useyasm=no
stabs=no
dwarf=no
# allowed: UNSIGNED (4-char u_int), INT (4-char int), SHORT (2-char u_short)
wchar_type=INT
case "$target_os" in
apple)
targos=apple
abi=classic68k
stabs=yes
case "$target_cpu" in
m68k) targmach=m68k endian=big ;;
esac
;;
bsd)
targos=bsd
abi=aout
case "$target_cpu" in
pdp11) targmach=pdp11 ;;
nova) targmach=nova ;;
esac
wchar_type=USHORT
;;
darwin*)
targos=darwin
abi=macho
stabs=yes
case "$target_os" in
*10.*) targosver=10 ;;
*9.*) targosver=9 ;;
*8.*) targosver=8 ;;
*7.*) targosver=7 ;;
esac
case "$target_cpu" in
i?86) targmach=i386 ;;
powerpc) targmach=powerpc endian=big ;;
x86_64) targmach=amd64 ;;
esac
;;
dragonfly*)
targos=dragonfly
abi=elf
stabs=yes
tls=yes
case "$target_cpu" in
i?86) targmach=i386 ;;
x86_64) targmach=amd64 ;;
esac
;;
freebsd*)
targos=freebsd
abi=elf
stabs=yes
case "$target_os" in
*10.*) targosver=10 ;;
*9.*) targosver=9 ;;
*8.*) targosver=8 ;;
*7.*) targosver=7 ;;
*6.*) targosver=6 ;;
*5.*) targosver=5 ;;
*4.*) targosver=4 ;;
esac
case "$target_cpu" in
i386) targmach=i386 ;;
sparc64) targmach=sparc64 endian=big ;;
x86_64) targmach=amd64 ;;
esac
;;
linux-android*)
targos=android
abi=elf
stabs=yes
case "$target_cpu" in
arm*) targmach=arm ;;
i?86) targmach=i386 ;;
x86_64) targmach=amd64 ;;
mips64el) targmach=mips64 ;;
mips64) targmach=mips64 endian=big ;;
mipseb) targmach=mips endian=big ;;
mips*) targmach=mips ;;
esac
;;
linux*)
targos=linux
abi=elf
stabs=yes
case "$target_cpu" in
arm*) targmach=arm ;;
i?86) targmach=i386 ;;
powerpc*) targmach=powerpc endian=big ;;
x86_64) targmach=amd64 ;;
mips64el) targmach=mips64 ;;
mips64) targmach=mips64 endian=big ;;
mipseb) targmach=mips endian=big ;;
mips*) targmach=mips ;;
esac
case "$target_os" in
*-musl*) ADD_CPPFLAGS="$ADD_CPPFLAGS -DUSE_MUSL" ;;
esac
;;
litebsd*)
targos=litebsd
abi=elf
case "$target_cpu" in
mips*) targmach=mips ;;
esac
;;
midnightbsd*)
targos=midnightbsd
abi=elf
stabs=yes
case "$target_cpu" in
i?86) targmach=i386 ;;
sparc64) targmach=sparc64 endian=big ;;
esac
;;
mingw*)
targos=win32
abi=pecoff
wchar_type=USHORT
targmach=i386
altincdir="c:/mingw/include"
altlibdir="c:/mingw/lib"
;;
minix*)
targos=minix
targosver=`uname -v`
stabs=yes
case "$targosver" in
# explicit setting
1.*)
# pcc works for 3.1.6
# not tested for 3.1.7 and 3.1.8
targosver=3.1.x
abi=aout ;;
*3*)
# Minix switched to ELF with 3.2
targosver=3.2+
abi=elf ;;
*)
# default to elf
targosver=unknown
abi=elf ;;
esac
case "$target_cpu" in
i86) targmach=i86 ;;
i?86) targmach=i386 ;;
arm*) targmach=arm ;;
x86_64) targmach=amd64 ;;
esac
;;
mirbsd*)
targos=mirbsd
abi=elf
stabs=yes
wchar_type=USHORT
case "$target_cpu" in
i?86) targmach=i386 ;;
esac
;;
netbsd*)
targos=netbsd
abi=elf
stabs=yes
case "$target_os" in
*7.*) targosver=7 ;;
*6.*) targosver=6 ;;
*5.*) targosver=5 ;;
*4.*) targosver=4 ;;
*3.*) targosver=3 ;;
*2.*) targosver=2 ;;
*1.*) targosver=1 ;;
esac
case "$target_cpu" in
armeb) targmach=arm endian=big ;;
arm*) targmach=arm ;;
i?86) targmach=i386 ;;
m68k*) targmach=m68k endian=big ;;
mips64el) targmach=mips64 ;;
mips64) targmach=mips64 endian=big ;;
mipseb) targmach=mips endian=big ;;
mips*) targmach=mips ;;
pdp10) targmach=pdp10 ;;
powerpc) targmach=powerpc endian=big ;;
riscv32) targmach=riscv32 targmachdir=riscv ;;
riscv64) targmach=riscv64 targmachdir=riscv ;;
sparc64) targmach=sparc64 endian=big ;;
vax) targmach=vax ;;
x86_64) targmach=amd64 ;;
esac
;;
nextstep*)
targos=nextstep
abi=macho
stabs=yes
case "$target_cpu" in
i?86) targmach=i386 ;;
sparc) targmach=sparc endian=big ;;
hppa) targmach=hppa endian=big ;;
esac
;;
openbsd*)
targos=openbsd
abi=elf
stabs=yes
case "$target_cpu" in
i?86) targmach=i386 ;;
vax) targmach=vax ;;
mips64el) targmach=mips64 ;;
mips64) targmach=mips64 endian=big ;;
powerpc) targmach=powerpc endian=big ;;
sparc64) targmach=sparc64 endian=big ;;
m68k) targmach=m68k endian=big ;;
x86_64) targmach=amd64 ;;
esac
;;
sysv4*)
targos=sysv4
abi=elf
case "$target_cpu" in
i?86) targmach=i386 ;;
esac
;;
sunos*|solaris*)
targos=sunos
abi=elf
stabs=yes
case "$target_cpu" in
i?86) targmach=i386 ;;
sparc*) targmach=sparc64 endian=big ;;
esac
;;
windows*|pe*)
target_alias=i386-pe
targos=win32
abi=pecoff
wchar_type=USHORT
targmach=i386
;;
*)
targos="$target_os"
case "$target_cpu" in
m16c) targmach=m16c ;;
nova) targmach=nova ;;
i86) targmach=i86 ;;
pdp7) targmach=pdp7 ;;
esac
;;
esac
if test "X$targos" = X -o "X$targmach" = X ; then
AC_MSG_ERROR(['$target' is not (yet) supported by pcc.])
fi
if test "X$targmachdir" = X ; then
targmachdir=$targmach
fi
case "$host_os" in
apple)
hostos=apple
;;
bsd)
hostos=bsd
;;
darwin*)
hostos=darwin
;;
dragonfly*)
hostos=dragonfly
;;
freebsd*)
hostos=freebsd
;;
linux*)
ADD_CPPFLAGS="$ADD_CPPFLAGS -D_BSD_SOURCE"
hostos=linux
;;
litebsd*)
hostos=litebsd
;;
midnightbsd*)
hostos=midnightbsd
;;
mingw*)
hostos=win32
;;
minix*)
hostos=minix
;;
mirbsd*)
hostos=mirbsd
;;
netbsd*)
hostos=netbsd
;;
nextstep*)
hostos=nextstep
;;
openbsd*)
hostos=openbsd
;;
sunos*|solaris*)
ADD_CPPFLAGS="$ADD_CPPFLAGS -D_XOPEN_SOURCE=600"
hostos=sunos
;;
pe*|windows*)
# quick hack for cross-build to win32 host
hostos=win32
if "$prefix" = NONE; then
prefix="c:/pcc"
assembler="yasm.exe -p gnu -f win32"
linker="link.exe /nologo"
ADD_CPPFLAGS="$ADD_CPPFLAGS -DMSLINKER"
fi
;;
esac
if test "X$endian" = "Xbig" ; then
AC_DEFINE(TARGET_BIG_ENDIAN, 1,
[Define if target defaults to BIG endian])
else
AC_DEFINE(TARGET_LITTLE_ENDIAN, 1,
[Define if target defaults to LITTLE endian])
fi
case "$abi" in
elf*) AC_DEFINE(ELFABI, 1, [Using ELF ABI]) ;;
aout) AC_DEFINE(AOUTABI, 1, [Using a.out ABI]) ;;
macho) AC_DEFINE(MACHOABI, 1, [Using Mach-O ABI]) ;;
coff) AC_DEFINE(COFFABI, 1, [Using COFF ABI]) ;;
ecoff) AC_DEFINE(ECOFFABI, 1, [Using ECOFF ABI]) ;;
pecoff) AC_DEFINE(PECOFFABI, 1, [Using PE/COFF ABI]) ;;
classic68k) AC_DEFINE(CLASSIC68K, 1, [Using Classic 68k ABI]) ;;
esac
if test "$stabs" = "yes"; then
AC_DEFINE(STABS, 1, [Enable STABS debugging output])
fi
if test "$dwarf" = "yes"; then
AC_DEFINE(DWARF, 1, [Enable DWARF debugging output])
fi
# Specify alternate assembler, linker, include and lib paths
AC_ARG_ENABLE(multiarch,
AS_HELP_STRING([--enable-multiarch=yes/no/auto/<triplet>],
[Enable use of Linux Multi-Arch paths (default: auto)]),
[multiarch=$enableval], [multiarch=auto])
AC_ARG_WITH(incdir,
AS_HELP_STRING([--with-incdir=<path>],
[Specify the default include path.]),
altincdir=$withval,
[])
AC_ARG_WITH(libdir,
AS_HELP_STRING([--with-libdir=<path>],
[Specify the default library path.]),
altlibdir=$withval,
[])
AC_ARG_WITH(assembler,
AS_HELP_STRING([--with-assembler=<path>],
[Specify alternate assember.]),
assembler=$withval,
[])
AC_ARG_WITH(linker,
AS_HELP_STRING([--with-linker=<path>],
[Specify alternate linker.]),
linker=$withval,
[])
AC_ARG_WITH(libvmf,
AS_HELP_STRING([--with-libvmf=<path>],
[Use libvmf.]),
libvmf=$withval,
libvmf=no)
AC_ARG_ENABLE(tls,
AS_HELP_STRING([--enable-tls],
[Enable Thread-local storage (TLS).]),
[tls=$enableval], [])
if test "$tls" = "yes"; then
AC_DEFINE(TLS, 1, [Enable thread-local storage (TLS).])
fi
AC_ARG_ENABLE(Werror,
AS_HELP_STRING([--enable-Werror],
[Enable use of compiler -Werror flag]),
[werror=$enableval], [])
if test "$werror" = "yes"; then
ADD_CFLAGS="$ADD_CFLAGS -Werror"
fi
AC_ARG_ENABLE(gcc-compat,
AS_HELP_STRING([--disable-gcc-compat],
[Disable GCC compatibility]),
[gcccompat=$enableval], [])
if test "$gcccompat" = "yes"; then
ADD_CPPFLAGS="$ADD_CPPFLAGS -DGCC_COMPAT";
fi
AC_ARG_ENABLE(pcc-debug,
AS_HELP_STRING([--disable-pcc-debug],
[Disable PCC debugging]),
[pccdebug=$enableval], [])
if test "$pccdebug" = "yes"; then
ADD_CPPFLAGS="$ADD_CPPFLAGS -DPCC_DEBUG";
fi
AC_ARG_ENABLE(twopass,
AS_HELP_STRING([--enable-twopass],
[Link PCC as a two-pass compiler]),
[twopass=$enableval], [])
if test "$twopass" = "yes"; then
ADD_CPPFLAGS="$ADD_CPPFLAGS -DTWOPASS";
CCNAMES='$(BINPREFIX)cc0$(EXEEXT) $(BINPREFIX)cc1$(EXEEXT)'
CF0='-DPASS1'
CF1='-DPASS2'
else
CCNAMES='$(BINPREFIX)ccom$(EXEEXT)'
fi
AC_ARG_ENABLE(stripping,
AS_HELP_STRING([--disable-stripping],
[Disable stripping of symbols in installed binaries]),
[stripping=$enableval], [])
if test "$stripping" = "yes"; then
if test -z "$INSTALL_PROGRAM"; then
INSTALL_PROGRAM='${INSTALL} -s'
else
AC_MSG_WARN([Installed binaries may be unstripped])
fi
fi
AC_ARG_ENABLE(nativefp,
AS_HELP_STRING([--disable-nativefp],
[Disable use of compiler host floating point.]),
[nfp=$enableval], [])
if test "$nfp" = "no"; then
nativefp=no
fi
if test "$nativefp" = "yes"; then
ADD_CPPFLAGS="$ADD_CPPFLAGS -DNATIVE_FLOATING_POINT"
fi
AC_ARG_WITH(yasm,
AS_HELP_STRING([--with-yasm], [Use yasm assembler]),
useyasm=$withval,
[])
if test "$useyasm" = "yes"; then
assembler="yasm"
ADD_CPPFLAGS="$ADD_CPPFLAGS -DUSE_YASM"
fi
AC_ARG_ENABLE(native,
AS_HELP_STRING([--enable-native],
[Build the compiler as a native rather than cross-build compiler]),
[native=$enableval], [])
# Setup for ubuntu multiarch
multiarch_path=
case x$multiarch in
xno)
;;
xyes)
multiarch_path=`dpkg-architecture -qDEB_HOST_MULTIARCH 2>/dev/null` || multiarch_path=
case $multiarch_path in
*-*-*) ;;
*)
AC_MSG_ERROR([Cannot determine Multi-Arch path '$multiarch_path'!])
;;
esac
;;
xauto|x)
multiarch_path=`dpkg-architecture -qDEB_HOST_MULTIARCH 2>/dev/null` || multiarch_path=
case x$multiarch_path in
x*-*-*) ;;
x) ;;
*)
AC_MSG_WARN([Ignoring unrecognised Multi-Arch path '$multiarch_path'!])
multiarch_path=
;;
esac
;;
x*-*-*)
multiarch_path=$multiarch
;;
*)
AC_MSG_ERROR([Ignoring unrecognised Multi-Arch path '$multiarch_path'!])
;;
esac
if test -n "$multiarch_path"; then
AC_DEFINE_UNQUOTED([MULTIARCH_PATH], ["$multiarch_path"],
[Define target Multi-Arch path])
multiarch="\"$multiarch_path\""
else
multiarch="(no)"
fi
# setup for building a cross-compiler
if test "X$native" = "Xyes" -o "X$target_alias" = "X$host_alias" -o "X$target_alias" = "X"; then
BINPREFIX=""
else
BINPREFIX="${target_alias}-"
test "X$prefix" = XNONE && prefix="$ac_default_prefix"
test "X$exec_prefix" = XNONE && exec_prefix="${prefix}"
if test -z "$altincdir"; then
altincdir=${exec_prefix}/${target_alias}/include
fi
if test -z "$altlibdir"; then
altlibdir=${exec_prefix}/${target_alias}/lib
fi
if test -z "$assembler"; then
assembler=${BINPREFIX}as
fi
if test -z "$linker"; then
linker=${BINPREFIX}ld
fi
preprocessor="${BINPREFIX}cpp"
compiler="${BINPREFIX}ccom"
fi
AC_SUBST(BINPREFIX)
if test -n "$altincdir"; then
AC_DEFINE_UNQUOTED(STDINC, "$altincdir",
[Define alternate standard include directory])
fi
if test -n "$altlibdir"; then
AC_DEFINE_UNQUOTED(LIBDIR, "${altlibdir}/",
[Define alternate standard lib directory])
fi
if test -n "$assembler"; then
AC_DEFINE_UNQUOTED(ASSEMBLER, "$assembler",
[Define path to alternate assembler])
fi
if test -n "$linker"; then
AC_DEFINE_UNQUOTED(LINKER, "$linker",
[Define path to alternate linker])
fi
if test -n "$preprocessor"; then
AC_DEFINE_UNQUOTED(PREPROCESSOR, "$preprocessor",
[Define path to alternate preprocessor])
fi
if test -n "$compiler"; then
AC_DEFINE_UNQUOTED(COMPILER, "$compiler",
[Define path to alternate compiler])
fi
case $wchar_type in
USHORT) wchar_size=2 ;;
UNSIGNED|INT) wchar_size=4 ;;
*) AC_MSG_ERROR([Unknown wchar_t '$wchar_type'.]) ;;
esac
AC_DEFINE_UNQUOTED(WCHAR_TYPE, $wchar_type, [Type to use for wide characters])
AC_DEFINE_UNQUOTED(WCHAR_SIZE, $wchar_size, [Size of wide-character type in chars])
# check for additional compiler flags
AC_PROG_CC
DESIRED_FLAGS="-Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wsign-compare -Wtruncate"
for flag in $DESIRED_FLAGS
do
AC_MSG_CHECKING([whether $CC accepts $flag])
cflags="$CFLAGS"
CFLAGS="$CFLAGS $flag -Werror"
AC_COMPILE_IFELSE([
AC_LANG_PROGRAM([[]], [[]])
], [
use_flag=yes
], [
use_flag=no
])
CFLAGS="$cflags"
AC_MSG_RESULT([$use_flag])
if test $use_flag = yes; then
ADD_CFLAGS="$ADD_CFLAGS $flag"
fi
done
# setup for cross-compiling mkext
AC_MSG_CHECKING([for a C compiler for mkext])
if test $cross_compiling = yes; then
AC_MSG_RESULT([cross compiling])
AC_CHECK_PROGS(CC_FOR_BUILD, [pcc gcc cc])
else
AC_MSG_RESULT([not cross compiling])
CC_FOR_BUILD=${CC-cc}
AC_SUBST(CC_FOR_BUILD)
fi
AC_CACHE_CHECK([for C99 printf size specifiers], ac_cv_have_c99_format, [
AC_RUN_IFELSE([
AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT], [[
char buf[64];
if (sprintf(buf, "%lld%hhd%jd%zd%td", (long long int)1, (char)2, (intmax_t)3, (size_t)4, (ptrdiff_t)5) != 5)
exit(1);
else if (strcmp(buf, "12345"))
exit(2);
]])],
[ ac_cv_have_c99_format=yes ],
[ ac_cv_have_c99_format=no ],
[ ac_cv_have_c99_format=yes ])
])
if test $ac_cv_have_c99_format = yes; then
AC_DEFINE([HAVE_C99_FORMAT], 1,
[Define to 1 if printf supports C99 size specifiers])
fi
AC_CHECK_SIZEOF([int *])
# Byteorder of host
AC_C_BIGENDIAN([AC_DEFINE(HOST_BIG_ENDIAN, 1, [Define if host is BIG endian])],
[AC_DEFINE(HOST_LITTLE_ENDIAN, 1, [Define if host is LITTLE endian])],
[])
# Checks for programs.
AC_PROG_MAKE_SET
AC_PROG_INSTALL
AC_PROG_YACC
AC_PROG_LEX
# Checks for libraries.
if test $libvmf != no ; then
LIBS=-lvmf
AC_DEFINE(LIBVMF, 1, [Use libvmf.])
if test $libvmf != yes ; then
LDFLAGS=-L$libvmf
fi
fi
# Checks for header files.
# AC_CHECK_HEADERS([fcntl.h stdlib.h string.h unistd.h])
AC_CHECK_HEADERS([string.h malloc.h libgen.h])
AC_HEADER_SYS_WAIT
# Checks for library functions.
## AC_FUNC_STRTOD
# AC_FUNC_VPRINTF
# AC_CHECK_FUNCS([memset strchr strdup strrchr strtol])
AC_CHECK_FUNCS([strtold vsnprintf snprintf mkstemp strlcat strlcpy getopt ffs vfork])
AC_FUNC_ALLOCA
AC_EXEEXT
AC_SUBST(targos)
AC_SUBST(targosver)
AC_SUBST(targmach)
AC_SUBST(targmachdir)
AC_SUBST(hostos)
AC_SUBST(prefix)
AC_SUBST(exec_prefix)
AC_SUBST(libexecdir)
AC_SUBST(includedir)
AC_SUBST(PACKAGE_VERSION)
AC_SUBST(ADD_CFLAGS)
AC_SUBST(ADD_CPPFLAGS)
AC_SUBST(CCNAMES)
AC_SUBST(CF0)
AC_SUBST(CF1)
AC_SUBST(LIBS)
AC_SUBST(LDFLAGS)
pcc_major=`echo $PACKAGE_VERSION | awk -F. '{print $1}'`
pcc_minor=`echo $PACKAGE_VERSION | awk -F. '{print $2}'`
pcc_minorminor=`echo $PACKAGE_VERSION | awk -F. '{print $3}'`
test -n "$MPVERSION" && MPVERSION=", $MPVERSION"
versstr="\"$PACKAGE_STRING `cat $srcdir/DATESTAMP` for $target$MPVERSION\""
targstr="\"$target$MPVERSION\""
AC_DEFINE_UNQUOTED(PCC_MAJOR, $pcc_major, [Major version no])
AC_DEFINE_UNQUOTED(PCC_MINOR, $pcc_minor, [Minor version no])
AC_DEFINE_UNQUOTED(PCC_MINORMINOR, $pcc_minorminor, [Minor minor version no])
AC_DEFINE_UNQUOTED(VERSSTR, $versstr, [Version string])
AC_DEFINE_UNQUOTED(TARGSTR, $targstr, [Target string])
AC_CONFIG_FILES([Makefile
cc/Makefile
cc/cc/Makefile
cc/cpp/Makefile
cc/ccom/Makefile
cc/cxxcom/Makefile
cc/driver/Makefile
f77/Makefile
f77/f77/Makefile
f77/fcom/Makefile
])
AC_OUTPUT
eval "exec_prefix=$exec_prefix"
eval "bindir=$bindir"
eval "libexecdir=$libexecdir"
echo
echo "Target CPU is .................... ${targmach}"
echo "Target ABI is .................... ${abi}"
echo "Target OS is ..................... ${targos}"
echo "Compiler is called ............... ${BINPREFIX}pcc${EXEEXT}"
echo "Installing compiler into ......... ${bindir}"
echo "Installing pre-processor into .... ${libexecdir}"
echo "Using assembler .................. ${assembler-<default>}"
echo "Using linker ..................... ${linker-<default>}"
echo "Using Multi-Arch path ............ ${multiarch}"
echo "Using include path ............... ${altincdir-<default>}"
echo "Using library path ............... ${altlibdir-<default>}"
echo "Use libvmf ....................... $libvmf"
echo "Has TLS support .................. $tls"
echo "Has native floating point ........ $nativefp"
echo "Has GCC compatibility ............ $gcccompat"
echo "Has PCC debugging ................ $pccdebug"
echo "Type of wchar_t is ............... ${wchar_type} (${wchar_size} chars)"
echo
echo "Configure finished. Do 'make && make install' to compile and install.
"