-
Notifications
You must be signed in to change notification settings - Fork 21
/
configure
executable file
·5489 lines (4760 loc) · 175 KB
/
configure
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
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#!/bin/sh
#*=====================================================================*/
#* serrano/prgm/project/bigloo/bigloo/configure */
#* ------------------------------------------------------------- */
#* Author : Manuel Serrano */
#* Creation : Tue Jan 25 16:05:10 1994 */
#* Last change : Fri Dec 13 10:22:11 2024 (serrano) */
#* Last change : Thu May 14 09:43:33 2020 (serrano) */
#* Copyright : 1994-2024 Manuel Serrano, see LICENSE file */
#* ------------------------------------------------------------- */
#* The Bigloo configuration file */
#* ------------------------------------------------------------- */
#* Please, dont talk to me about autoconf. I simply dont want */
#* to hear about it... */
#*=====================================================================*/
#*---------------------------------------------------------------------*/
#* Bigloo revision number */
#*---------------------------------------------------------------------*/
release=4.6a
buildrelease=unstable
version=
bigloourl=http://www-sop.inria.fr/indes/fp/Bigloo
bigloohttp=http://www-sop.inria.fr/indes/fp/Bigloo/download
bigloosvn=ssh://[email protected]/bigloo
#*---------------------------------------------------------------------*/
#* User variables */
#*---------------------------------------------------------------------*/
#*--- paths -----------------------------------------------------------*/
prefix=/usr/local
bindir=$prefix/bin
libdir=$prefix/lib
fildir=bigloo/$release
zipdir=$libdir/$fildir
dlldir=$libdir/$fildir
mandir=$prefix/man/man1
infodir=$prefix/info
docdir=$prefix/doc/bigloo-$release
tmpdir=/tmp
lispdir=
rpath=
#*--- api -------------------------------------------------------------*/
importantapis="pthread fthread srfi18 ssl sqlite web multimedia mail calendar pkgcomp pkglib text srfi1 crypto openpgp csv upnp libuv libbacktrace"
apis="$importantapis gstreamer phidget alsa pulseaudio wav flac mpg123 phone avahi srfi27 packrat mqtt"
#*--- bee configuration -----------------------------------------------*/
bee=partial # "partial" or "full"
#*--- build directory -------------------------------------------------*/
buildtmp=$TMPDIR
if [ "$buildtmp " = " " ]; then
buildtmp=$tmpdir
fi
#*--- C back-end user configure ---------------------------------------*/
nativebackend=yes # set to "no" not to install the native (C) back-end
ccstyle=gcc
cc=$CC # left blank for default automatic configuration
cflags=$CFLAGS
lflags=$LDFLAGS
lcustomflags=
cbuildflags=
bigloo=$BIGLOO # used only for cross compiling
if [ "$BFLAGS " != " " ]; then
bflags=$BFLAGS;
else
bflags="-O3 -fcfa-arithmetic -q";
fi
bootflags=""
featureflags=
coflags=-O3
cfpflags=-fno-omit-frame-pointer
crpath=
cstrip=""
cwarning=""
cpicflags="demanded" # Possible values for cpicflags are:
# - "no" not to use position independent code (recommended)
# - "demanded" auto configuration but with a preference to "no"
# - any legal C compiler option that enables PIC code.
# - blank (uninitalized) for automatic configuration of the
# position independent code compiler option
cnanflags=-DBGL_NAN_TAGGING=0
as= # left blank for autoconfiguration
ar= # left blank for autoconfiguration
ranlib= # left blank for autoconfiguration
arflags= # left blank for autoconfiguration
ldstyle=gcc
ldflags=
ld=
ldlibs=-lc
ldcomplibs="-lc -lm"
strip= # left blank for autoconfiguration
longlong= # The C type to represent long long integers
havelonglong=
stringsplit="0"
gcconfigureopt="--disable-gcj-support --disable-java-finalization --disable-libcord"
gcconfigurethreadsopt=--enable-thread
belong_prealloc_min=-10
belong_prealloc_max=100
bglnantagging=0
bglreservedtagging=0
bglsmi=0
#*--- Java back-end user configuration --------------------------------*/
jvmbackend=no # set to "no" not to install the Jvm back-end
zip=zip
jar="jar cmf"
zflags=
javac=javac
jcflags=-O
java=java
jflags=
jvflags=-noverify
jshell=sh
#*--- Misc user configuration -----------------------------------------*/
shell=/bin/sh
ccshell=$shell
shell_rm="rm"
shell_mv="mv"
bgl_shell_rm=$BGLRM
bgl_shell_mv=$BGLMV
emacs=
makeinfo=makeinfo
makeinfoopt="-U oldinfo"
texi2dvi=texi2dvi
texi2dviopt=-b
texi2html=texi2html
texi2htmlopt="-menu -monolithic -number"
texi2pdf=texi2pdf
iinfo=install-info
dlopenopt=-ldl
dirname=dirname
defaultbackend="native"
aout=""
abat=""
exe=""
cobj=o
specific=""
ln_s="ln -s"
#*--- gmp version (left blank for autoconfiguration) ------------------*/
gmplib=
gmpversion=
gmpforce=no
customgmp=
gmpsrc=$GMPSRC
gmpconfigureopt=
gmpcustomversion=6.2.1
if [ "$gmpsrc " = " " ]; then
gmpsrc=gmp/gmp-$gmpcustomversion.tgz
fi
srfi27force=no
#*--- resolv version (left blank for autoconfiguration) ---------------*/
resolv=
resolvforce=no
#*--- unistring version (left blank for autoconfiguration) ------------*/
unistring=
unistringforce=no
customunistring=
unistringsrc=$UNISTRINGSRC
unistringconfigureopt=
if [ "$unistringsrc " = " " ]; then
#unistringversion=0.9.10
unistringversion=1.1
unistringsrc=libunistring/libunistring-$unistringversion.tgz
fi
#*--- libbacktrace version (left blank for autoconfiguration) ---------*/
libbacktrace=
libbacktraceforce=no
customlibbacktrace=
libbacktracesrc=$LIBBACKTRACESRC
libbacktraceconfigureopt=--enable-shared
#* if [ "$libbacktracesrc " = " " ]; then */
#* libbacktraceversion=d0f5e95 */
#* libbacktracesrc=libbacktrace/libbacktrace-$libbacktraceversion.tgz */
#* fi */
if [ "$libbacktracesrc " = " " ]; then
libbacktraceversion=14818b7
libbacktracesrc=libbacktrace/libbacktrace-$libbacktraceversion.tgz
fi
#*--- socket library (left empty for automatic configuration) ---------*/
socketlibs=
#*--- posix threads library (left blank for autoconfiguration) --------*/
threadsupport=
pthreadlibs=
pthreadtimedlock=1
pthreadcancel=
pthreadtermsig=15
pthreadlocalstorage=
pthreadsetname=
#*--- openssl library (left blank for autoconfiguration) --------------*/
openssllibs=
openssldtls=
openssltls1=
openssltls11=
openssltls12=
openssltls13=
opensslrand=
opensslv2=
opensslv23=
opensslcflags=
opensslgetter=
#*--- sqlite library (left blank for autoconfiguration) ---------------*/
sqlitelibs=
sqltinyforce=no
#*--- dbus library (left blank for autoconfiguration) -----------------*/
dbuslibs=
#*--- gstreamer (left blank for autoconfiguration) --------------------*/
gstreamer=
gstreamerlibs=
gstreamercflags=
gstreameraudio=
gstreameraudiolibs=
gstreameraudiocflags=
gstusethread=0
#*--- alsa (left blank for autoconfiguration) -------------------------*/
alsa=
alsalibs=
alsacflags=
#*--- pulseaudio (left blank for autoconfiguration) --------------------*/
pulseaudio=
pulseaudiolibs=
pulseaudiocflags=
#*--- mpg123 (left blank for autoconfiguration) -----------------------*/
mpg123=
mpg123libs=
mpg123cflags=
#*--- flac (left blank for autoconfiguration) -------------------------*/
flac=
flaclibs=
flaccflags=
#*--- avahi (left blank for autoconfiguration) ------------------------*/
avahi=
avahilibs=
avahicflags=
#*--- libuv (left blank for autoconfiguration) ------------------------*/
libuv=
libuvlibs=
libuvbootcflags=
libuvcflags=
customlibuv=yes
libuvconfigureopt=
#* libuvversion=master-18jul2014 */
#* libuvversion=1.x-24jan2015 */
#* libuvversion=v1.19.1 */
#* libuvversion=v1.19.2 */
#* libuvversion=v1.20.3 */
#* libuvversion=v1.40.0 */
#* libuvversion=v1.43.0 */
#* libuvversion=v1.44.2 */
#libuvversion=v1.47.0
libuvversion=v1.48.0
#*--- phidget (left blank for autoconfiguration) ----------------------*/
phidget=
phidgetlibs=
phidgetlibdir=$PHIDGETLIBDIR
phidgetcflags="$PHIDGETCFLAGS"
phidgetversion=21
#*--- regexp ----------------------------------------------------------*/
regexp=
regexphasfreestudy=0
#*--- gc source directory (left blank for default configuration) ------*/
customgc=yes
#gccustom=bdwgc-7_2alpha5-20110313
#gccustom=bdwgc-7_2alpha5-20110107
#gccustom=gc-7.2alpha6
#gccustom=gc-7.2d
#gccustom=gc-7.3alpha1-20120316
#gccustom=gc-7.3alpha2
#gccustom=gc-7.3alpha3-20130330
#gccustom=gc-7.5.0-27may2016
#gccustom=gc-7.6.2
#gccustom=gc-8.0.2
#gccustom=gc-8.0.4
#gccustom=gc-8.2.2
gccustom=gc-8.2.4
gcversion=
gcbump=0
cgcflags=
# the following variables are relevant only when using
# standard (i.e. already existing and operational) Boehm's GC
# and when customgc=no
stdgclib=gc
gcneedstackbase=0
isoc99=0
stdint=
stdlibint=0
unistdint=
#*--- indent ----------------------------------------------------------*/
indent="indent -npro -bap -bad -nbc -bl -ncdb -nce -nfc1 -ip0 -nlp -npcs -nsc -nsob -cli0.5 -di0 -l80 -d1 -c0 -ts2 -st"
#*--- mask of Bigloo intalled files -----------------------------------*/
# obsolete, don't use it, use modXXX instead
bmask=755
modexe=755
moddir=755
modfile=644
#*--- ld shared library option ----------------------------------------*/
# set $ldopt to `no-share' if you don't want shared library
ldopt=
ldbuildsharedopt=
ldbuildopt=
ldrpath=
# set $ldsoname to `blank' if you want to force it empty
ldsoname=
ldsonameopt=
ldinstallname=
ldinstallnamedirroot=$LDINSTALLNAMEDIRROOT
if [ "$ldinstallnamedirroot " = " " ]; then
ldinstallnamedirroot=lib
fi
sharedsuffix=so
sharedlibraryclosed=yes
sharedlibrarygcclosed='-l$(GCLIB)-$(RELEASE)'
sharedlibrarygcmtclosed='-l$(GCLIB)_mt-$(RELEASE)'
sharedlibrarygcfthclosed='-l$(GCLIB)_fth-$(RELEASE)'
#*--- should the compiler be dynamically linked? ---------------------*/
# the legal value for that variable is `yes' or `no'
sharedcompiler=
sharedbde=no
#*--- forced OS -------------------------------------------------------*/
hostos=
hostosversion=
hostcpu=
jvmrecettebootpath=
jvmapibootpath=
oscharset=
buildos=
buildosversion=
buildcpu=
#*--- cygwin specific configuration -----------------------------------*/
# The location where cygwin is installed
cygwindospath=
cygwindosjvm="yes"
#*--- mingw/macosx specific configuration -----------------------------*/
mingw="no"
macosx=auto
#*--- android specifics -----------------------------------------------*/
droidroot=$DROID_ROOT
droidsdkroot=$DROID_SDK_ROOT
droidtarget=generic
droidtmp=
droidadb=adb
#*---------------------------------------------------------------------*/
#* Hacker variables */
#* ------------------------------------------------------------- */
#* Dont modifiy these variables unless you know what you are */
#* doing. */
#*---------------------------------------------------------------------*/
#*--- configure debugging ---------------------------------------------*/
configurelog=configure.log
abortmissing=no
#*--- The basename of the compiler and tools --------------------------*/
afile=bglafile
jfile=bgljfile
btags=bgltags
bdepend=bgldepend
bmake=bglmake
bpp=bglpp
bprof=bglprof
mco=bglmco
jas=bgljas
bmem=bglmem
bmemrun=bglmemrun
bdb=bgldb
bglpkg=bglpkg
#*--- libraries -------------------------------------------------------*/
libraryname=bigloo
#--- additional user library used to link bigloo applications ---------*/
extralibs="-lm -lc"
extragclibs="-lc"
#*--- custom GC configuration -----------------------------------------*/
gcincdir=
gclibdir=
customgclib=bigloogc
gchaveblocking=0
gchavedoblocking=0
gcfinalizer=0
gcparallelmark=
#*--- Cross Compilation -----------------------------------------------*/
hostsh=
buildsh=
#*--- bglpkg compilation ----------------------------------------------*/
# valid values are "no", "yes" or "force"
enable_bglpkg="no"
#*--- pcre configuration ----------------------------------------------*/
# valid values are "no", "yes"
enable_configure_pcre="no"
custompcre=
pcresrc=$PCRESRC
pcreconfigureopt=
if [ "$pcresrc " = " " ]; then
pcreversion=8.43
pcresrc=pcre/pcre-$pcreversion.tgz
fi
#*--- pcre2 configuration ---------------------------------------------*/
# valid values are "no", "yes"
enable_configure_pcre2="yes"
custompcre2=
pcre2src=$PCRE2SRC
pcre2configureopt=
if [ "$pcre2src " = " " ]; then
pcre2version=10.42
pcre2src=pcre2/pcre2-$pcre2version.tgz
fi
#*---------------------------------------------------------------------*/
#* !!! DONT EDIT AFTER THIS LINE !!! */
#*---------------------------------------------------------------------*/
action=all
actiongc=install
branch="`echo $release | sed 's/[.a-z]*//g'`0";
mode=standard
tuning=
makefile_cfg=Makefile.config
makefile_build=Makefile.buildconfig
pwd=`pwd`
bootdir=$pwd
buildbindir=
cgcfinalflags="-DFINALIZE_ON_DEMAND"
bigloo_h=
bigloo_gc_h=
bigloo_static_h=
bigloo_config_h=
bigloo_config_jvm=
bigloo_config_sch=
bconfigure_generic_sch=
summary=yes
java_configured=no
os=posix
gcspecial=
gcthread=
hardtune=
emacswarning=
stacksizerequired=2
configureinfo="no"
dnscache=1
scmpkgversion=0.0.1
autoconfdir=`dirname $0 2> /dev/null`/autoconf
if [ $? != "0" ]; then
autoconfdir="autoconf"
fi
logopt="$*"
autoconf="$autoconfdir/runtest -v1 -- "
# Argument parsing
while : ; do
case $1 in
"")
break;;
--bootconfig)
prefix=$PWD;
bindir=$PWD/bin;
libdir=$PWD/lib;
fildir=bigloo/$release;
zipdir=$libdir/$fildir;
dlldir=$libdir/$fildir;
bootdir=$PWD;
mandir=$HOME/house/man/man1
lispdir=$HOME/emacs/site-lisp/bigloo;
docdir=$PWD/manuals;
sharedcompiler=no;
sharedbde=yes;
infodir=$HOME/house/info;
ld=gcc;
cflags="$cflags -Wpointer-arith -Wswitch -Wtrigraphs -Wno-alloca-larger-than -DBGL_BOOTCONFIG";
coflags="$coflags";
cfpflags="$cfpflags";
bootflags="$bootflags -cg +rm";
jvmbackend="yes";
mode=standard;
configureinfo="yes";
bee="full";
havebdb=1;
pthreadlocalstorage=;
pthreadsetname=;
bglreservedtagging=0;
action="all";;
--bootdir=*)
bootdir="`echo $1 | sed 's/^[^=]*=//'`";;
--build-bindir=*)
buildbindir="`echo $1 | sed 's/^[^=]*=//'`";;
--thirdparty-configure-opt=*)
opt="`echo $1 | sed 's/^[^=]*=//'`";
gcconfigureopt="$gcconfigureopt $opt";
libuvconfigureopt="$libuvconfigureopt $opt";
pcreconfigureopt="$pcreconfigureopt $opt";
pcre2configureopt="$pcre2configureopt $opt";
unistringconfigureopt="$unistringconfigureopt $opt";
libbacktraceconfigureopt="$libbacktraceconfigureopt $opt";
gmpconfigureopt="$gmpconfigureopt $opt";;
--bigloo_config.h)
action="bigloo_config";;
--bigloo.h=*)
action="bigloo_config";
bigloo_h="`echo $1 | sed 's/^[^=]*=//'`";;
--bigloo_gc.h=*)
action="bigloo_config";
bigloo_gc_h="`echo $1 | sed 's/^[^=]*=//'`";;
--bigloo_static.h=*)
action="bigloo_config";
bigloo_static_h="`echo $1 | sed 's/^[^=]*=//'`";;
--bigloo_config.h=*)
action="bigloo_config";
bigloo_config_h="`echo $1 | sed 's/^[^=]*=//'`";;
--bigloo_config.jvm=*)
action="bigloo_config";
bigloo_config_jvm="`echo $1 | sed 's/^[^=]*=//'`";;
--bigloo_config.sch=*)
action="bigloo_config";
bigloo_config_sch="`echo $1 | sed 's/^[^=]*=//'`";;
--bigloo_config.el=*)
action="bigloo_config_el";
bigloo_config_el="`echo $1 | sed 's/^[^=]*=//'`";;
--Makefile.config)
action="Makefile.config";;
--configure.log=*)
configurelog="`echo $1 | sed 's/^[^=]*=//'`";;
--abort-missing)
abortmissing=yes;;
--bindir=*)
bindir="`echo $1 | sed 's/^[^=]*=//'`";;
--libdir=*)
libdir="`echo $1 | sed 's/^[^=]*=//'`";
zipdir=$libdir/$fildir;
dlldir=$libdir/$fildir;;
--gcprefix=*)
gcprefix="`echo $1 | sed 's/^[^=]*=//'`";
gclibdir=$gcprefix/lib;
gcincdir=$gcprefix/include/gc;;
--gclibdir=*)
gclibdir="`echo $1 | sed 's/^[^=]*=//'`";;
--gcincdir=*)
gcincdir="`echo $1 | sed 's/^[^=]*=//'`";;
--gccustomversion=*)
gccustom="`echo $1 | sed 's/^[^=]*=//'`";;
--gccustominstall=*)
actiongc="`echo $1 | sed 's/^[^=]*=//'`";;
--gcparallelmark=*)
gcparallelmark="`echo $1 | sed 's/^[^=]*=//'`";;
--gcbump)
gcbump=1;;
--gcbump=*)
if [ "`echo $1 | sed 's/^[^=]*=//'` " = "yes " ]; then
gcbump=1;
fi
;;
--fildir=*)
fildir="`echo $1 | sed 's/^[^=]*=//'`";;
--zipdir=*)
zipdir="`echo $1 | sed 's/^[^=]*=//'`";;
--dlldir=*)
dlldir="`echo $1 | sed 's/^[^=]*=//'`";;
--mandir=*)
mandir="`echo $1 | sed 's/^[^=]*=//'`";;
--infodir=*)
infodir="`echo $1 | sed 's/^[^=]*=//'`";;
--docdir=*)
docdir="`echo $1 | sed 's/^[^=]*=//'`";;
--tmpdir=*)
tmpdir="`echo $1 | sed 's/^[^=]*=//'`";;
--tmp=*)
buildtmp="`echo $1 | sed 's/^[^=]*=//'`";;
--emacs=*)
emacs="`echo $1 | sed 's/^[^=]*=//'`";;
--xemacs=*)
emacs="`echo $1 | sed 's/^[^=]*=//'`";;
--indent=*)
indent="`echo $1 | sed 's/^[^=]*=//'`";;
--dirname=*)
dirname="`echo $1 | sed 's/^[^=]*=//'`";;
--lispdir=*)
lispdir="`echo $1 | sed 's/^[^=]*=//'`";;
--prefix=*)
prefix="`echo $1 | sed 's/^[^=]*=//'`";
bindir=$prefix/bin;
libdir=$prefix/lib;
fildir=bigloo/$release;
zipdir=$libdir/$fildir;
dlldir=$libdir/$fildir;
mandir=$prefix/man/man1;
infodir=$prefix/info;
docdir=$prefix/doc/bigloo-$release;;
--bigloo=*)
bigloo="`echo $1 | sed 's/^[^=]*=//'`";;
--cc=*)
cc="`echo $1 | sed 's/^[^=]*=//'`";;
--as=*)
as="`echo $1 | sed 's/^[^=]*=//'`";;
--ld=*)
ld="`echo $1 | sed 's/^[^=]*=//'`";;
--shell=*)
shell="`echo $1 | sed 's/^[^=]*=//'`";;
--mv=*)
bgl_shell_mv="`echo $1 | sed 's/^[^=]*=//'`";;
--rm=*)
bgl_shell_rm="`echo $1 | sed 's/^[^=]*=//'`";;
--bflags=*)
bflags="`echo $1 | sed 's/^[^=]*=//'`";;
--cflags=*)
cflags="`echo $1 | sed 's/^[^=]*=//'`";;
--lflags=*)
lflags="`echo $1 | sed 's/^[^=]*=//'`";;
--coflags=*)
coflags="`echo $1 | sed 's/^[^=]*=//'`";;
--cfpflags=*)
cfpflags="`echo $1 | sed 's/^[^=]*=//'`";;
--ldlibs=*)
ldlibs="`echo $1 | sed 's/^[^=]*=//'`";;
--ldcomplibs=*)
ldcomplibs="`echo $1 | sed 's/^[^=]*=//'`";;
--ldflags=*)
ldflags="`echo $1 | sed 's/^[^=]*=//'`";;
--stringsplit=*)
stringsplit="`echo $1 | sed 's/^[^=]*=//'`";;
--native=*)
nativebackend="`echo $1 | sed 's/^[^=]*=//'`";;
--sharedcompiler=*)
sharedcompiler="`echo $1 | sed 's/^[^=]*=//'`";;
--sharedbde=*)
sharedbde="`echo $1 | sed 's/^[^=]*=//'`";;
--bee=partial)
bee="partial";;
--bee=full)
bee="full";;
--a.out=*)
aout="`echo $1 | sed 's/^[^=]*=//'`";;
--a.bat=*)
abat="`echo $1 | sed 's/^[^=]*=//'`";;
--jvm)
jvmbackend=yes;;
--jvm=*)
jvmbackend="`echo $1 | sed 's/^[^=]*=//'`";;
--java=*)
java="`echo $1 | sed 's/^[^=]*=//'`";;
--javac=*)
javac="`echo $1 | sed 's/^[^=]*=//'`";;
--javaprefix=*)
java="`echo $1 | sed 's/^[^=]*=//'`"/java;
javac="`echo $1 | sed 's/^[^=]*=//'`"/javac;
jar="`echo $1 | sed 's/^[^=]*=//'`/jar cmf";;
--javashell=sh)
jshell="sh";;
--javashell=msdos)
jshell="msdos";;
--native-default-backend)
defaultbackend="native";;
--jvm-default-backend)
defaultbackend="jvm";;
--no-share)
ldopt="no-share";;
--no-ldpreload)
ldpreload="no";;
--no-c-musttail)
musttail="0";;
--force-hostos=*)
hostos="`echo $1 | sed 's/^[^=]*=//'`";;
--os-win32)
hostos="win32";;
--os-macosx)
hostos="darwin";;
--no-os-macosx)
macosx=false;;
--os-android)
hostos="android";;
--android-sdk-root=*)
droidsdkroot="`echo $1 | sed 's/^[^=]*=//'`";;
--android-root=*)
droidroot="`echo $1 | sed 's/^[^=]*=//'`";;
--android-target=*)
droidtarget="`echo $1 | sed 's/^[^=]*=//'`";;
--android-tmp=*)
droidtmp="`echo $1 | sed 's/^[^=]*=//'`";;
--android-adb=*)
droidadb="`echo $1 | sed 's/^[^=]*=//'`";;
--cygwin-dos-path=*)
cygwindospath="`echo $1 | sed 's/^[^=]*=//'`";;
--cygwin-dos-jvm=yes)
cygwindosjvm="yes";;
--cygwin-dos-jvm=no)
cygwindosjvm="no";;
--arch=athlon)
hardtune="athlon";
gcspecial=-DUSE_3DNOW_PREFETCH;;
--arch=athlon-tbird)
hardtune="athlon-tbird";
gcspecial=-DUSE_3DNOW_PREFETCH;;
--arch=athlon-xp)
hardtune="athlon-xp";
gcspecial=-DUSE_3DNOW_PREFETCH;;
--arch=athlon-mp)
hardtune="athlon-mp";
gcspecial=-DUSE_3DNOW_PREFETCH;;
--arch=k6-2)
hardtune="k6-2";
gcspecial=-DUSE_3DNOW_PREFETCH;;
--arch=k6-3)
hardtune="k6-3";
gcspecial=-DUSE_3DNOW_PREFETCH;;
--arch=pentium3)
hardtune="pentium3";
gcspecial=-DUSE_I686_PREFETCH;;
--arch=pentium4)
hardtune="pentium4";
gcspecial=-DUSE_I686_PREFETCH;;
--arch=i586)
hardtune="i586";;
--arch=i686)
hardtune="i686";;
--no-summary)
summary=no;;
--icc)
if [ "$cc " = " " ]; then
cc=icc;
fi;
as=icc;
ldopt="no-share";
coflags="$coflags -O3 -ip";
cfpflags="$cfpflags -g";
customgc=no;
extralibs="";
cstrip="no";;
--clang)
cflags="-fbracket-depth=1024 $cflags";;
--strip=no)
cstrip="no";
strip="no";;
--customgc=yes|--customgc)
customgc=yes;;
--customgc=no)
customgc=no;;
--gcconfigureopt=*)
gcconfigureopt="`echo $1 | sed 's/^[^=]*=//'`";;
--custom-all-libs)
customgc=yes;
customgmp=yes;
customunistring=yes;
customlibbacktrace=yes;
customlibuv=yes;
custompcre=no;
custompcre2=yes;;
--finalization=yes)
gcfinalizer=1;
cgcfinalflags=;;
--finalization=no)
cgcfinalflags=-DFINALIZE_ON_DEMAND;;
--stack-check=no)
stacksizerequired=0;;
--benchmark=no)
mode=standard;;
--benchmark=yes)
if [ "$tuning " = "MacOS X " ]; then
echo "*** ERROR: --benchmark is incompatible with --os-macosx";
exit 1;
fi;
mode=benchmark;;
--debug)
cflags="$cflags -g";
bflags="$bflags -cg";;
--debug2)
cstrip="";
cflags="$cflags -g";
bflags="-cg -q";;
--cwarningflags=*)
cwarningflags="`echo $1 | sed 's/^[^=]*=//'`";;
--cpicflags=*)
cpicflags="`echo $1 | sed 's/^[^=]*=//'`";;
--configureinfo=no)
configureinfo="no";;
--configureinfo=yes)
configureinfo="yes";;
--mingw=yes)
mingw="yes";;
--nan-tagging)
bglnantagging=1;;
--reserved-tagging)
bglreservedtagging=1;;
--smi)
bglsmi=1;;
--enable-thread|--enable-threads)
threadsupport=yes;
addp=1;
addf=1;
adds=1;
for a in $apis; do
case $a in
pthread) addp=0;;
fthread) addf=0;;
srfi18) adds=0;;
esac;
done
if [ $addf = 1 ]; then
apis="fthread $apis";
fi
if [ $adds = 1 ]; then
apis="srfi18 $apis";
fi
if [ $addp = 1 ]; then
apis="pthread $apis";
fi
;;
--disable-thread|--disable-threads)
threadsupport=no;
napis=;
for a in $apis; do
if [ $a != "fthread" -a $a != "pthread" -a $a != "gstreamer" -a $a != "srfi18" ]; then
if [ "$napis " = " " ]; then
napis="$a";
else
napis="$napis $a";
fi
fi
done
apis=$napis;;