forked from black-parrot-sdk/beebs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
1465 lines (1308 loc) · 49.4 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
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
# Main configure script for BEEBS
# Copyright (C) 2013-2014 Embecosm Limited and the University of Bristol
# Copyright (C) 2018 Embecosm Limited
# Contributor James Pallister <[email protected]>
# Contributor Jeremy Bennett <[email protected]>
# This file is part of BEEBS
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 3 of the License, or (at your option)
# any later version.
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
# more details.
# You should have received a copy of the GNU General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.
# SPDX-License-Identifier: GPL-3.0-or-later
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.68])
AC_INIT([beebs], [3.0], [[email protected]])
AC_CONFIG_MACRO_DIR([m4])
AC_CANONICAL_BUILD
AC_CANONICAL_HOST
AC_CANONICAL_TARGET
AM_INIT_AUTOMAKE([-Wno-portability])
AM_MAINTAINER_MODE([disable])
AM_SILENT_RULES([yes])
# List of all benchmarks
bmlist="aha-compress \
aha-mont64 \
bs \
bubblesort \
cnt \
compress \
cover \
crc \
crc32 \
ctl \
ctl-stack \
ctl-string \
ctl-vector \
cubic \
dijkstra \
dtoa \
duff \
edn \
expint \
fac \
fasta \
fdct \
fibcall \
fir \
frac \
huffbench \
insertsort \
janne_complex \
jfdctint \
lcdnum \
levenshtein \
ludcmp \
matmult \
matmult-float \
matmult-int \
mergesort \
miniz \
minver \
nbody \
ndes \
nettle-aes \
nettle-arcfour \
nettle-cast128 \
nettle-des \
nettle-md5 \
nettle-sha256 \
newlib-exp \
newlib-log \
newlib-mod \
newlib-sqrt \
ns \
nsichneu \
picojpeg \
prime \
qrduino \
qsort \
qurt \
recursion \
rijndael \
select \
sglib-arraybinsearch \
sglib-arrayheapsort \
sglib-arrayquicksort \
sglib-arraysort \
sglib-dllist \
sglib-hashtable \
sglib-listinsertsort \
sglib-listsort \
sglib-queue \
sglib-rbtree \
slre \
sqrt \
st \
statemate \
stb_perlin \
stringsearch1 \
strstr \
tarai \
template \
trio \
trio-snprintf \
trio-sscanf \
ud \
whetstone \
wikisort"
# Set default values enabling all architectures
benchmark_aha_compress=true
benchmark_aha_mont64=true
benchmark_bs=true
benchmark_bubblesort=true
benchmark_cnt=true
benchmark_compress=true
benchmark_cover=true
benchmark_crc=true
benchmark_crc32=true
benchmark_ctl_stack=true
benchmark_ctl_string=true
benchmark_ctl_vector=true
benchmark_cubic=true
benchmark_dijkstra=true
benchmark_dtoa=true
benchmark_duff=true
benchmark_edn=true
benchmark_expint=true
benchmark_fac=true
benchmark_fasta=true
benchmark_fdct=true
benchmark_fibcall=true
benchmark_fir=true
benchmark_frac=true
benchmark_huffbench=true
benchmark_insertsort=true
benchmark_janne_complex=true
benchmark_jfdctint=true
benchmark_lcdnum=true
benchmark_levenshtein=true
benchmark_ludcmp=true
benchmark_matmult_float=true
benchmark_matmult_int=true
benchmark_mergesort=true
benchmark_miniz=true
benchmark_minver=true
benchmark_nbody=true
benchmark_ndes=true
benchmark_nettle_aes=true
benchmark_nettle_arcfour=true
benchmark_nettle_cast128=true
benchmark_nettle_des=true
benchmark_nettle_md5=true
benchmark_nettle_sha256=true
benchmark_newlib_exp=true
benchmark_newlib_log=true
benchmark_newlib_mod=true
benchmark_newlib_sqrt=true
benchmark_ns=true
benchmark_nsichneu=true
benchmark_picojpeg=true
benchmark_prime=true
benchmark_qrduino=true
benchmark_qsort=true
benchmark_qurt=true
benchmark_recursion=true
benchmark_rijndael=true
benchmark_select=true
benchmark_sglib_arraybinsearch=true
benchmark_sglib_arrayheapsort=true
benchmark_sglib_arrayquicksort=true
benchmark_sglib_dllist=true
benchmark_sglib_hashtable=true
benchmark_sglib_listinsertsort=true
benchmark_sglib_listsort=true
benchmark_sglib_queue=true
benchmark_sglib_rbtree=true
benchmark_slre=true
benchmark_sqrt=true
benchmark_st=true
benchmark_statemate=true
benchmark_stb_perlin=true
benchmark_stringsearch1=true
benchmark_strstr=true
benchmark_tarai=true
benchmark_template=true
benchmark_trio_snprintf=true
benchmark_trio_sscanf=true
benchmark_ud=true
benchmark_whetstone=true
benchmark_wikisort=true
# Work out which architecture we are targeting
# Also pass this through to be substituted
arch=$host_cpu
# Option for selecting the target board
AC_ARG_WITH([board],
[AS_HELP_STRING([--with-board], [Select the board to target])],
[board=$with_board],
[board=none])
# Option for selecting the target chip
AC_ARG_WITH([chip],
[AS_HELP_STRING([--with-chip], [Select the chip to target])],
[chip=$with_chip],
[chip=generic])
# Default settings for dummy libraries. These can be overridden by the
# chip configuration or configure flags. We default to having them all
# off because we expect the default setup to produce compiled code that
# can actually be executed - however, the dummy libraries are helpful
# for analysing code size without library code inclusion confounding
# things.
USE_DUMMY_CRT0=no
USE_DUMMY_LIBGCC=no
USE_DUMMY_COMPILERRT=no
USE_DUMMY_LIBC=no
USE_DUMMY_LIBM=no
# Execute any architecture, board or chip specific configuration. These can
# set architecture, chip and board CPPFLAGS, CFLAGS and LDFLAGS and exclude
# individual tests by setting benchmark_<bm> to false.
# We can't use AC_CHECK_FILE, because we are cross-compiling, and that
# prohibits use of AC_CHECK_FILE.
AS_IF([test -f $srcdir/config/$arch/arch.cfg],
[source $srcdir/config/$arch/arch.cfg], [])
AS_IF([test -d $srcdir/config/$arch/chips/$chip],
[], [AC_MSG_ERROR([Chip config directory "$chip" does not exist])])
AS_IF([test -f $srcdir/config/$arch/chips/$chip/chip.cfg],
[source $srcdir/config/$arch/chips/$chip/chip.cfg], [])
AS_IF([test -d $srcdir/config/$arch/boards/$board],
[], [AC_MSG_ERROR([Board config directory "$board" does not exist])])
AS_IF([test -f $srcdir/config/$arch/boards/$board/board.cfg ],
[source $srcdir/config/$arch/boards/$board/board.cfg], [])
# Options for enabling/disabling each test in alphabetical order (see
# genmacros.sh for a script to generate all of this). To add one new test just
# insert the same pattern at the correct place in the list.
# Remember that ctl, matmult, sglib-arraysort and trio are not benchmarks
# themselves, but the frameworks from which others are created.
# NOTE. There is the m4_foreach macro, but getting it to work for this seems to
# be impossible
AC_ARG_ENABLE([benchmark-aha-compress],
[AS_HELP_STRING([--enable-benchmark-aha-compress],
[Enable benchmark aha-compress])],
[case "${enableval}" in
yes) benchmark_aha_compress=true ;;
no) benchmark_aha_compress=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-benchmark-aha-compress]) ;;
esac],
[])
AM_CONDITIONAL([ENABLED_BENCHMARK_AHA_COMPRESS],
[test x$benchmark_aha_compress = xtrue])
AC_ARG_ENABLE([benchmark-aha-mont64],
[AS_HELP_STRING([--enable-benchmark-aha-mont64],
[Enable benchmark aha-mont64])],
[case "${enableval}" in
yes) benchmark_aha_mont64=true ;;
no) benchmark_aha_mont64=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-benchmark-aha-mont64]) ;;
esac],
[])
AM_CONDITIONAL([ENABLED_BENCHMARK_AHA_MONT64],
[test x$benchmark_aha_mont64 = xtrue])
AC_ARG_ENABLE([benchmark-bs],
[AS_HELP_STRING([--enable-benchmark-bs],
[Enable benchmark bs])],
[case "${enableval}" in
yes) benchmark_bs=true ;;
no) benchmark_bs=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-benchmark-bs]) ;;
esac],
[])
AM_CONDITIONAL([ENABLED_BENCHMARK_BS],
[test x$benchmark_bs = xtrue])
AC_ARG_ENABLE([benchmark-bubblesort],
[AS_HELP_STRING([--enable-benchmark-bubblesort],
[Enable benchmark bubblesort])],
[case "${enableval}" in
yes) benchmark_bubblesort=true ;;
no) benchmark_bubblesort=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-benchmark-bubblesort]) ;;
esac],
[])
AM_CONDITIONAL([ENABLED_BENCHMARK_BUBBLESORT],
[test x$benchmark_bubblesort = xtrue])
AC_ARG_ENABLE([benchmark-cnt],
[AS_HELP_STRING([--enable-benchmark-cnt],
[Enable benchmark cnt])],
[case "${enableval}" in
yes) benchmark_cnt=true ;;
no) benchmark_cnt=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-benchmark-cnt]) ;;
esac],
[])
AM_CONDITIONAL([ENABLED_BENCHMARK_CNT],
[test x$benchmark_cnt = xtrue])
AC_ARG_ENABLE([benchmark-compress],
[AS_HELP_STRING([--enable-benchmark-compress],
[Enable benchmark compress])],
[case "${enableval}" in
yes) benchmark_compress=true ;;
no) benchmark_compress=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-benchmark-compress]) ;;
esac],
[])
AM_CONDITIONAL([ENABLED_BENCHMARK_COMPRESS],
[test x$benchmark_compress = xtrue])
AC_ARG_ENABLE([benchmark-cover],
[AS_HELP_STRING([--enable-benchmark-cover],
[Enable benchmark cover])],
[case "${enableval}" in
yes) benchmark_cover=true ;;
no) benchmark_cover=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-benchmark-cover]) ;;
esac],
[])
AM_CONDITIONAL([ENABLED_BENCHMARK_COVER],
[test x$benchmark_cover = xtrue])
AC_ARG_ENABLE([benchmark-crc],
[AS_HELP_STRING([--enable-benchmark-crc],
[Enable benchmark crc])],
[case "${enableval}" in
yes) benchmark_crc=true ;;
no) benchmark_crc=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-benchmark-crc]) ;;
esac],
[])
AM_CONDITIONAL([ENABLED_BENCHMARK_CRC],
[test x$benchmark_crc = xtrue])
AC_ARG_ENABLE([benchmark-crc32],
[AS_HELP_STRING([--enable-benchmark-crc32],
[Enable benchmark crc32])],
[case "${enableval}" in
yes) benchmark_crc32=true ;;
no) benchmark_crc32=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-benchmark-crc32]) ;;
esac],
[])
AM_CONDITIONAL([ENABLED_BENCHMARK_CRC32],
[test x$benchmark_crc32 = xtrue])
AC_ARG_ENABLE([benchmark-ctl-stack],
[AS_HELP_STRING([--enable-benchmark-ctl-stack],
[Enable benchmark ctl-stack])],
[case "${enableval}" in
yes) benchmark_ctl_stack=true ;;
no) benchmark_ctl_stack=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-benchmark-ctl-stack]) ;;
esac],
[])
AM_CONDITIONAL([ENABLED_BENCHMARK_CTL_STACK],
[test x$benchmark_ctl_stack = xtrue])
AC_ARG_ENABLE([benchmark-ctl-string],
[AS_HELP_STRING([--enable-benchmark-ctl-string],
[Enable benchmark ctl-string])],
[case "${enableval}" in
yes) benchmark_ctl_string=true ;;
no) benchmark_ctl_string=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-benchmark-ctl-string]) ;;
esac],
[])
AM_CONDITIONAL([ENABLED_BENCHMARK_CTL_STRING],
[test x$benchmark_ctl_string = xtrue])
AC_ARG_ENABLE([benchmark-ctl-vector],
[AS_HELP_STRING([--enable-benchmark-ctl-vector],
[Enable benchmark ctl-vector])],
[case "${enableval}" in
yes) benchmark_ctl_vector=true ;;
no) benchmark_ctl_vector=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-benchmark-ctl-vector]) ;;
esac],
[])
AM_CONDITIONAL([ENABLED_BENCHMARK_CTL_VECTOR],
[test x$benchmark_ctl_vector = xtrue])
AC_ARG_ENABLE([benchmark-cubic],
[AS_HELP_STRING([--enable-benchmark-cubic],
[Enable benchmark cubic])],
[case "${enableval}" in
yes) benchmark_cubic=true ;;
no) benchmark_cubic=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-benchmark-cubic]) ;;
esac],
[])
AM_CONDITIONAL([ENABLED_BENCHMARK_CUBIC],
[test x$benchmark_cubic = xtrue])
AC_ARG_ENABLE([benchmark-dijkstra],
[AS_HELP_STRING([--enable-benchmark-dijkstra],
[Enable benchmark dijkstra])],
[case "${enableval}" in
yes) benchmark_dijkstra=true ;;
no) benchmark_dijkstra=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-benchmark-dijkstra]) ;;
esac],
[])
AM_CONDITIONAL([ENABLED_BENCHMARK_DIJKSTRA],
[test x$benchmark_dijkstra = xtrue])
AC_ARG_ENABLE([benchmark-dtoa],
[AS_HELP_STRING([--enable-benchmark-dtoa],
[Enable benchmark dtoa])],
[case "${enableval}" in
yes) benchmark_dtoa=true ;;
no) benchmark_dtoa=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-benchmark-dtoa]) ;;
esac],
[])
AM_CONDITIONAL([ENABLED_BENCHMARK_DTOA],
[test x$benchmark_dtoa = xtrue])
AC_ARG_ENABLE([benchmark-duff],
[AS_HELP_STRING([--enable-benchmark-duff],
[Enable benchmark duff])],
[case "${enableval}" in
yes) benchmark_duff=true ;;
no) benchmark_duff=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-benchmark-duff]) ;;
esac],
[])
AM_CONDITIONAL([ENABLED_BENCHMARK_DUFF],
[test x$benchmark_duff = xtrue])
AC_ARG_ENABLE([benchmark-edn],
[AS_HELP_STRING([--enable-benchmark-edn],
[Enable benchmark edn])],
[case "${enableval}" in
yes) benchmark_edn=true ;;
no) benchmark_edn=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-benchmark-edn]) ;;
esac],
[])
AM_CONDITIONAL([ENABLED_BENCHMARK_EDN],
[test x$benchmark_edn = xtrue])
AC_ARG_ENABLE([benchmark-expint],
[AS_HELP_STRING([--enable-benchmark-expint],
[Enable benchmark expint])],
[case "${enableval}" in
yes) benchmark_expint=true ;;
no) benchmark_expint=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-benchmark-expint]) ;;
esac],
[])
AM_CONDITIONAL([ENABLED_BENCHMARK_EXPINT],
[test x$benchmark_expint = xtrue])
AC_ARG_ENABLE([benchmark-fac],
[AS_HELP_STRING([--enable-benchmark-fac],
[Enable benchmark fac])],
[case "${enableval}" in
yes) benchmark_fac=true ;;
no) benchmark_fac=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-benchmark-fac]) ;;
esac],
[])
AM_CONDITIONAL([ENABLED_BENCHMARK_FAC],
[test x$benchmark_fac = xtrue])
AC_ARG_ENABLE([benchmark-fasta],
[AS_HELP_STRING([--enable-benchmark-fasta],
[Enable benchmark fasta])],
[case "${enableval}" in
yes) benchmark_fasta=true ;;
no) benchmark_fasta=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-benchmark-fasta]) ;;
esac],
[])
AM_CONDITIONAL([ENABLED_BENCHMARK_FASTA],
[test x$benchmark_fasta = xtrue])
AC_ARG_ENABLE([benchmark-fdct],
[AS_HELP_STRING([--enable-benchmark-fdct],
[Enable benchmark fdct])],
[case "${enableval}" in
yes) benchmark_fdct=true ;;
no) benchmark_fdct=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-benchmark-fdct]) ;;
esac],
[])
AM_CONDITIONAL([ENABLED_BENCHMARK_FDCT],
[test x$benchmark_fdct = xtrue])
AC_ARG_ENABLE([benchmark-fibcall],
[AS_HELP_STRING([--enable-benchmark-fibcall],
[Enable benchmark fibcall])],
[case "${enableval}" in
yes) benchmark_fibcall=true ;;
no) benchmark_fibcall=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-benchmark-fibcall]) ;;
esac],
[])
AM_CONDITIONAL([ENABLED_BENCHMARK_FIBCALL],
[test x$benchmark_fibcall = xtrue])
AC_ARG_ENABLE([benchmark-fir],
[AS_HELP_STRING([--enable-benchmark-fir],
[Enable benchmark fir])],
[case "${enableval}" in
yes) benchmark_fir=true ;;
no) benchmark_fir=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-benchmark-fir]) ;;
esac],
[])
AM_CONDITIONAL([ENABLED_BENCHMARK_FIR],
[test x$benchmark_fir = xtrue])
AC_ARG_ENABLE([benchmark-frac],
[AS_HELP_STRING([--enable-benchmark-frac],
[Enable benchmark frac])],
[case "${enableval}" in
yes) benchmark_frac=true ;;
no) benchmark_frac=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-benchmark-frac]) ;;
esac],
[])
AM_CONDITIONAL([ENABLED_BENCHMARK_FRAC],
[test x$benchmark_frac = xtrue])
AC_ARG_ENABLE([benchmark-huffbench],
[AS_HELP_STRING([--enable-benchmark-huffbench],
[Enable benchmark huffbench])],
[case "${enableval}" in
yes) benchmark_huffbench=true ;;
no) benchmark_huffbench=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-benchmark-huffbench]) ;;
esac],
[])
AM_CONDITIONAL([ENABLED_BENCHMARK_HUFFBENCH],
[test x$benchmark_huffbench = xtrue])
AC_ARG_ENABLE([benchmark-insertsort],
[AS_HELP_STRING([--enable-benchmark-insertsort],
[Enable benchmark insertsort])],
[case "${enableval}" in
yes) benchmark_insertsort=true ;;
no) benchmark_insertsort=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-benchmark-insertsort]) ;;
esac],
[])
AM_CONDITIONAL([ENABLED_BENCHMARK_INSERTSORT],
[test x$benchmark_insertsort = xtrue])
AC_ARG_ENABLE([benchmark-janne_complex],
[AS_HELP_STRING([--enable-benchmark-janne_complex],
[Enable benchmark janne_complex])],
[case "${enableval}" in
yes) benchmark_janne_complex=true ;;
no) benchmark_janne_complex=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-benchmark-janne_complex]) ;;
esac],
[])
AM_CONDITIONAL([ENABLED_BENCHMARK_JANNE_COMPLEX],
[test x$benchmark_janne_complex = xtrue])
AC_ARG_ENABLE([benchmark-jfdctint],
[AS_HELP_STRING([--enable-benchmark-jfdctint],
[Enable benchmark jfdctint])],
[case "${enableval}" in
yes) benchmark_jfdctint=true ;;
no) benchmark_jfdctint=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-benchmark-jfdctint]) ;;
esac],
[])
AM_CONDITIONAL([ENABLED_BENCHMARK_JFDCTINT],
[test x$benchmark_jfdctint = xtrue])
AC_ARG_ENABLE([benchmark-lcdnum],
[AS_HELP_STRING([--enable-benchmark-lcdnum],
[Enable benchmark lcdnum])],
[case "${enableval}" in
yes) benchmark_lcdnum=true ;;
no) benchmark_lcdnum=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-benchmark-lcdnum]) ;;
esac],
[])
AM_CONDITIONAL([ENABLED_BENCHMARK_LCDNUM],
[test x$benchmark_lcdnum = xtrue])
AC_ARG_ENABLE([benchmark-levenshtein],
[AS_HELP_STRING([--enable-benchmark-levenshtein],
[Enable benchmark levenshtein])],
[case "${enableval}" in
yes) benchmark_levenshtein=true ;;
no) benchmark_levenshtein=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-benchmark-levenshtein]) ;;
esac],
[])
AM_CONDITIONAL([ENABLED_BENCHMARK_LEVENSHTEIN],
[test x$benchmark_levenshtein = xtrue])
AC_ARG_ENABLE([benchmark-ludcmp],
[AS_HELP_STRING([--enable-benchmark-ludcmp],
[Enable benchmark ludcmp])],
[case "${enableval}" in
yes) benchmark_ludcmp=true ;;
no) benchmark_ludcmp=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-benchmark-ludcmp]) ;;
esac],
[])
AM_CONDITIONAL([ENABLED_BENCHMARK_LUDCMP],
[test x$benchmark_ludcmp = xtrue])
AC_ARG_ENABLE([benchmark-matmult-float],
[AS_HELP_STRING([--enable-benchmark-matmult-float],
[Enable benchmark matmult-float])],
[case "${enableval}" in
yes) benchmark_matmult_float=true ;;
no) benchmark_matmult_float=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-benchmark-matmult-float]) ;;
esac],
[])
AM_CONDITIONAL([ENABLED_BENCHMARK_MATMULT_FLOAT],
[test x$benchmark_matmult_float = xtrue])
AC_ARG_ENABLE([benchmark-matmult-int],
[AS_HELP_STRING([--enable-benchmark-matmult-int],
[Enable benchmark matmult-int])],
[case "${enableval}" in
yes) benchmark_matmult_int=true ;;
no) benchmark_matmult_int=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-benchmark-matmult-int]) ;;
esac],
[])
AM_CONDITIONAL([ENABLED_BENCHMARK_MATMULT_INT],
[test x$benchmark_matmult_int = xtrue])
AC_ARG_ENABLE([benchmark-mergesort],
[AS_HELP_STRING([--enable-benchmark-mergesort],
[Enable benchmark mergesort])],
[case "${enableval}" in
yes) benchmark_mergesort=true ;;
no) benchmark_mergesort=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-benchmark-mergesort]) ;;
esac],
[])
AM_CONDITIONAL([ENABLED_BENCHMARK_MERGESORT],
[test x$benchmark_mergesort = xtrue])
AC_ARG_ENABLE([benchmark-miniz],
[AS_HELP_STRING([--enable-benchmark-miniz],
[Enable benchmark miniz])],
[case "${enableval}" in
yes) benchmark_miniz=true ;;
no) benchmark_miniz=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-benchmark-miniz]) ;;
esac],
[])
AM_CONDITIONAL([ENABLED_BENCHMARK_MINIZ],
[test x$benchmark_miniz = xtrue])
AC_ARG_ENABLE([benchmark-minver],
[AS_HELP_STRING([--enable-benchmark-minver],
[Enable benchmark minver])],
[case "${enableval}" in
yes) benchmark_minver=true ;;
no) benchmark_minver=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-benchmark-minver]) ;;
esac],
[])
AM_CONDITIONAL([ENABLED_BENCHMARK_MINVER],
[test x$benchmark_minver = xtrue])
AC_ARG_ENABLE([benchmark-nbody],
[AS_HELP_STRING([--enable-benchmark-nbody],
[Enable benchmark nbody])],
[case "${enableval}" in
yes) benchmark_nbody=true ;;
no) benchmark_nbody=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-benchmark-nbody]) ;;
esac],
[])
AM_CONDITIONAL([ENABLED_BENCHMARK_NBODY],
[test x$benchmark_nbody = xtrue])
AC_ARG_ENABLE([benchmark-ndes],
[AS_HELP_STRING([--enable-benchmark-ndes],
[Enable benchmark ndes])],
[case "${enableval}" in
yes) benchmark_ndes=true ;;
no) benchmark_ndes=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-benchmark-ndes]) ;;
esac],
[])
AM_CONDITIONAL([ENABLED_BENCHMARK_NDES],
[test x$benchmark_ndes = xtrue])
AC_ARG_ENABLE([benchmark-nettle-aes],
[AS_HELP_STRING([--enable-benchmark-nettle-aes],
[Enable benchmark nettle-aes])],
[case "${enableval}" in
yes) benchmark_nettle_aes=true ;;
no) benchmark_nettle_aes=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-benchmark-nettle-aes]) ;;
esac],
[])
AM_CONDITIONAL([ENABLED_BENCHMARK_NETTLE_AES],
[test x$benchmark_nettle_aes = xtrue])
AC_ARG_ENABLE([benchmark-nettle-arcfour],
[AS_HELP_STRING([--enable-benchmark-nettle-arcfour],
[Enable benchmark nettle-arcfour])],
[case "${enableval}" in
yes) benchmark_nettle_arcfour=true ;;
no) benchmark_nettle_arcfour=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-benchmark-nettle-arcfour]) ;;
esac],
[])
AM_CONDITIONAL([ENABLED_BENCHMARK_NETTLE_ARCFOUR],
[test x$benchmark_nettle_arcfour = xtrue])
AC_ARG_ENABLE([benchmark-nettle-cast128],
[AS_HELP_STRING([--enable-benchmark-nettle-cast128],
[Enable benchmark nettle-cast128])],
[case "${enableval}" in
yes) benchmark_nettle_cast128=true ;;
no) benchmark_nettle_cast128=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-benchmark-nettle-cast128]) ;;
esac],
[])
AM_CONDITIONAL([ENABLED_BENCHMARK_NETTLE_CAST128],
[test x$benchmark_nettle_cast128 = xtrue])
AC_ARG_ENABLE([benchmark-nettle-des],
[AS_HELP_STRING([--enable-benchmark-nettle-des],
[Enable benchmark nettle-des])],
[case "${enableval}" in
yes) benchmark_nettle_des=true ;;
no) benchmark_nettle_des=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-benchmark-nettle-des]) ;;
esac],
[])
AM_CONDITIONAL([ENABLED_BENCHMARK_NETTLE_DES],
[test x$benchmark_nettle_des = xtrue])
AC_ARG_ENABLE([benchmark-nettle-md5],
[AS_HELP_STRING([--enable-benchmark-nettle-md5],
[Enable benchmark nettle-md5])],
[case "${enableval}" in
yes) benchmark_nettle_md5=true ;;
no) benchmark_nettle_md5=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-benchmark-nettle-md5]) ;;
esac],
[])
AM_CONDITIONAL([ENABLED_BENCHMARK_NETTLE_MD5],
[test x$benchmark_nettle_md5 = xtrue])
AC_ARG_ENABLE([benchmark-nettle-sha256],
[AS_HELP_STRING([--enable-benchmark-nettle-sha256],
[Enable benchmark nettle-sha256])],
[case "${enableval}" in
yes) benchmark_nettle_sha256=true ;;
no) benchmark_nettle_sha256=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-benchmark-nettle-sha256]) ;;
esac],
[])
AM_CONDITIONAL([ENABLED_BENCHMARK_NETTLE_SHA256],
[test x$benchmark_nettle_sha256 = xtrue])
AC_ARG_ENABLE([benchmark-newlib-exp],
[AS_HELP_STRING([--enable-benchmark-newlib-exp],
[Enable benchmark newlib-exp])],
[case "${enableval}" in
yes) benchmark_newlib_exp=true ;;
no) benchmark_newlib_exp=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-benchmark-newlib-exp]) ;;
esac],
[])
AM_CONDITIONAL([ENABLED_BENCHMARK_NEWLIB_EXP],
[test x$benchmark_newlib_exp = xtrue])
AC_ARG_ENABLE([benchmark-newlib-log],
[AS_HELP_STRING([--enable-benchmark-newlib-log],
[Enable benchmark newlib-log])],
[case "${enableval}" in
yes) benchmark_newlib_log=true ;;
no) benchmark_newlib_log=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-benchmark-newlib-log]) ;;
esac],
[])
AM_CONDITIONAL([ENABLED_BENCHMARK_NEWLIB_LOG],
[test x$benchmark_newlib_log = xtrue])
AC_ARG_ENABLE([benchmark-newlib-mod],
[AS_HELP_STRING([--enable-benchmark-newlib-mod],
[Enable benchmark newlib-mod])],
[case "${enableval}" in
yes) benchmark_newlib_mod=true ;;
no) benchmark_newlib_mod=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-benchmark-newlib-mod]) ;;
esac],
[])
AM_CONDITIONAL([ENABLED_BENCHMARK_NEWLIB_MOD],
[test x$benchmark_newlib_mod = xtrue])
AC_ARG_ENABLE([benchmark-newlib-sqrt],
[AS_HELP_STRING([--enable-benchmark-newlib-sqrt],
[Enable benchmark newlib-sqrt])],
[case "${enableval}" in
yes) benchmark_newlib_sqrt=true ;;
no) benchmark_newlib_sqrt=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-benchmark-newlib-sqrt]) ;;
esac],
[])
AM_CONDITIONAL([ENABLED_BENCHMARK_NEWLIB_SQRT],
[test x$benchmark_newlib_sqrt = xtrue])
AC_ARG_ENABLE([benchmark-ns],
[AS_HELP_STRING([--enable-benchmark-ns],
[Enable benchmark ns])],
[case "${enableval}" in
yes) benchmark_ns=true ;;
no) benchmark_ns=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-benchmark-ns]) ;;
esac],
[])
AM_CONDITIONAL([ENABLED_BENCHMARK_NS],
[test x$benchmark_ns = xtrue])
AC_ARG_ENABLE([benchmark-nsichneu],
[AS_HELP_STRING([--enable-benchmark-nsichneu],
[Enable benchmark nsichneu])],
[case "${enableval}" in
yes) benchmark_nsichneu=true ;;
no) benchmark_nsichneu=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-benchmark-nsichneu]) ;;
esac],
[])
AM_CONDITIONAL([ENABLED_BENCHMARK_NSICHNEU],
[test x$benchmark_nsichneu = xtrue])
AC_ARG_ENABLE([benchmark-picojpeg],
[AS_HELP_STRING([--enable-benchmark-picojpeg],
[Enable benchmark picojpeg])],
[case "${enableval}" in
yes) benchmark_picojpeg=true ;;
no) benchmark_picojpeg=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-benchmark-picojpeg]) ;;
esac],
[])
AM_CONDITIONAL([ENABLED_BENCHMARK_PICOJPEG],
[test x$benchmark_picojpeg = xtrue])
AC_ARG_ENABLE([benchmark-prime],
[AS_HELP_STRING([--enable-benchmark-prime],
[Enable benchmark prime])],
[case "${enableval}" in
yes) benchmark_prime=true ;;
no) benchmark_prime=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-benchmark-prime]) ;;
esac],
[])
AM_CONDITIONAL([ENABLED_BENCHMARK_PRIME],
[test x$benchmark_prime = xtrue])
AC_ARG_ENABLE([benchmark-qrduino],
[AS_HELP_STRING([--enable-benchmark-qrduino],
[Enable benchmark qrduino])],
[case "${enableval}" in
yes) benchmark_qrduino=true ;;
no) benchmark_qrduino=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-benchmark-qrduino]) ;;
esac],
[])
AM_CONDITIONAL([ENABLED_BENCHMARK_QRDUINO],
[test x$benchmark_qrduino = xtrue])
AC_ARG_ENABLE([benchmark-qsort],
[AS_HELP_STRING([--enable-benchmark-qsort],
[Enable benchmark qsort])],
[case "${enableval}" in
yes) benchmark_qsort=true ;;
no) benchmark_qsort=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-benchmark-qsort]) ;;
esac],
[])
AM_CONDITIONAL([ENABLED_BENCHMARK_QSORT],
[test x$benchmark_qsort = xtrue])
AC_ARG_ENABLE([benchmark-qurt],
[AS_HELP_STRING([--enable-benchmark-qurt],
[Enable benchmark qurt])],
[case "${enableval}" in
yes) benchmark_qurt=true ;;
no) benchmark_qurt=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-benchmark-qurt]) ;;
esac],
[])
AM_CONDITIONAL([ENABLED_BENCHMARK_QURT],
[test x$benchmark_qurt = xtrue])
AC_ARG_ENABLE([benchmark-recursion],
[AS_HELP_STRING([--enable-benchmark-recursion],
[Enable benchmark recursion])],
[case "${enableval}" in
yes) benchmark_recursion=true ;;
no) benchmark_recursion=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-benchmark-recursion]) ;;
esac],
[])
AM_CONDITIONAL([ENABLED_BENCHMARK_RECURSION],
[test x$benchmark_recursion = xtrue])
AC_ARG_ENABLE([benchmark-rijndael],
[AS_HELP_STRING([--enable-benchmark-rijndael],
[Enable benchmark rijndael])],
[case "${enableval}" in
yes) benchmark_rijndael=true ;;
no) benchmark_rijndael=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-benchmark-rijndael]) ;;
esac],
[])
AM_CONDITIONAL([ENABLED_BENCHMARK_RIJNDAEL],
[test x$benchmark_rijndael = xtrue])
AC_ARG_ENABLE([benchmark-select],
[AS_HELP_STRING([--enable-benchmark-select],
[Enable benchmark select])],
[case "${enableval}" in
yes) benchmark_select=true ;;
no) benchmark_select=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-benchmark-select]) ;;
esac],
[])
AM_CONDITIONAL([ENABLED_BENCHMARK_SELECT],
[test x$benchmark_select = xtrue])
AC_ARG_ENABLE([benchmark-sglib-arraybinsearch],
[AS_HELP_STRING([--enable-benchmark-sglib-arraybinsearch],
[Enable benchmark sglib-arraybinsearch])],
[case "${enableval}" in
yes) benchmark_sglib_arraybinsearch=true ;;
no) benchmark_sglib_arraybinsearch=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-benchmark-sglib-arraybinsearch]) ;;
esac],
[])
AM_CONDITIONAL([ENABLED_BENCHMARK_SGLIB_ARRAYBINSEARCH],
[test x$benchmark_sglib_arraybinsearch = xtrue])
AC_ARG_ENABLE([benchmark-sglib-arrayheapsort],
[AS_HELP_STRING([--enable-benchmark-sglib-arrayheapsort],
[Enable benchmark sglib-arrayheapsort])],
[case "${enableval}" in
yes) benchmark_sglib_arrayheapsort=true ;;
no) benchmark_sglib_arrayheapsort=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-benchmark-sglib-arrayheapsort]) ;;
esac],
[])
AM_CONDITIONAL([ENABLED_BENCHMARK_SGLIB_ARRAYHEAPSORT],
[test x$benchmark_sglib_arrayheapsort = xtrue])
AC_ARG_ENABLE([benchmark-sglib-arrayquicksort],
[AS_HELP_STRING([--enable-benchmark-sglib-arrayquicksort],
[Enable benchmark sglib-arrayquicksort])],