forked from ferrandi/PandA-bambu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
3022 lines (2499 loc) · 130 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
################################################################################
# #
# Checking common prerequisites #
# #
################################################################################
AC_PREREQ(2.57)
AC_INIT(PandA, 2023.1, [email protected])
AC_CANONICAL_SYSTEM
AM_INIT_AUTOMAKE([-Wno-portability 1.9 tar-pax subdir-objects])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
AC_CONFIG_SRCDIR([configure.ac])
AC_DISABLE_SHARED
#AC_DISABLE_STATIC
AC_CONFIG_MACRO_DIR(etc/macros)
#Flags have to be emptied since AC_PROG_CXX and AC_PROG_CC set them to "-g -O2"
: ${CFLAGS=""}
: ${CXXFLAGS=""}
CFLAGS_EXT=-O2
CXXFLAGS_EXT=-O2
CXXFLAGS_EXTFPLL=-O2
CXXFLAGS_STD=-O2
# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
AC_DEFINE_UNQUOTED(HOST_GCC, "${CC}", "Define the host compiler")
AC_PROG_CPP
AC_PROG_AWK
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
AM_PROG_LEX
AC_PROG_YACC
AC_PROG_F77
AC_ARG_ENABLE(clanglibcpp, [ --enable-clanglibcpp Clang is going to use libc++ ], [panda_clanglibcpp="$enableval"], [panda_clanglibcpp="no"])
AC_ARG_ENABLE(oldclangabi, [ --enable-oldclangabi Clang plugins are compiled with the old abi ], [panda_clangoldabi="$enableval"], [panda_clangoldabi="no"])
###################### libc++ support #######################
if test "x$panda_clanglibcpp" = xyes; then
CXXFLAGS+=" -stdlib=libc++ "
if test "x$panda_clangoldabi" = xyes; then
CXXFLAGS+=-D_GLIBCXX_USE_CXX11_ABI=0
fi
CXXFLAGS_EXT+=" -stdlib=libc++ "
if test "x$panda_clangoldabi" = xyes; then
CXXFLAGS_EXT+=-D_GLIBCXX_USE_CXX11_ABI=0
fi
CXXFLAGS_STD+=" -stdlib=libc++ "
if test "x$panda_clangoldabi" = xyes; then
CXXFLAGS_STD+=-D_GLIBCXX_USE_CXX11_ABI=0
fi
fi
# Check if compiler support c++17
AC_COMPILE_STDCXX_17
# Check if compiler support c++11
AC_COMPILE_STDCXX_11
# Check if compiler support c++0x
AC_COMPILE_STDCXX_0X
# Check if compiler support std::hexfloat
AC_HEXFLOAT
############################### c++0x/11 checking ##############################
if test "x$ac_cv_cxx_compile_cxx17_native" = xno; then
if test "x$ac_cv_cxx_compile_cxx17_cxx" = xyes; then
CXXFLAGS+=" --std=c++17 "
CXXFLAGS_EXT+=" --std=c++17 "
CXXFLAGS_STD+=" --std=c++17 "
elif test "x$ac_cv_cxx_compile_cxx17_gxx" = xyes; then
CXXFLAGS+=" --std=g++17 "
CXXFLAGS_EXT+=" --std=g++17 "
CXXFLAGS_STD+=" --std=g++17 "
elif test "x$ac_cv_cxx_compile_cxx17_cxx1z" = xyes; then
CXXFLAGS+=" --std=c++1z "
CXXFLAGS_EXT+=" --std=c++1z "
CXXFLAGS_STD+=" --std=c++1z "
elif test "x$ac_cv_cxx_compile_cxx11_native" = xyes; then
CXXFLAGS+=" "
CXXFLAGS_EXT+=" "
elif test "x$ac_cv_cxx_compile_cxx11_cxx" = xyes; then
CXXFLAGS+=" --std=c++11 "
CXXFLAGS_EXT+=" --std=c++11 "
elif test "x$ac_cv_cxx_compile_cxx11_gxx" = xyes; then
CXXFLAGS+=" --std=g++11 "
CXXFLAGS_EXT+=" --std=g++11 "
elif test "x$ac_cv_cxx_compile_cxx11_cxx1x" = xyes; then
CXXFLAGS+=" --std=c++1x "
CXXFLAGS_EXT+=" --std=c++1x "
elif test "x$ac_cv_cxx_compile_cxx0x_cxx" = xyes; then
CXXFLAGS+=" --std=c++0x "
CXXFLAGS_EXT+=" --std=c++0x "
else
AC_MSG_ERROR("Compiler does not support C++17 nor C++11 nor C++0X")
fi
fi
AC_SUBST(CXXFLAGS_STD)
AM_CONDITIONAL(BUILD_MOCKTURTLE, test "x$ac_cv_cxx_compile_cxx17_native" = xyes || test "x$ac_cv_cxx_compile_cxx17_cxx" = xyes || test "x$ac_cv_cxx_compile_cxx17_gxx" = xyes || test "x$ac_cv_cxx_compile_cxx17_cxx1z" = xyes)
AM_PO_SUBDIRS
# we need bison instead of yacc
YACC_TRIMMED=$(echo ${YACC}| sed 's/-y//;s/ //')
if test ${YACC_TRIMMED} != bison; then
AC_MSG_ERROR(bison is required)
fi
#and flex instead of lex
if test "$LEX" != flex; then
AC_MSG_ERROR(flex is required)
fi
#now we take care of the different versions of bison
bison_27=no
BISON_VERSION=$(${YACC} -V | head -n1 | awk '{print $4}')
AS_VERSION_COMPARE(${BISON_VERSION}, "2.7", bison_27=no, bison_27=yes, bison_27=yes)
if test "$bison_27" = yes; then
AC_DEFINE(HAVE_BISON_2_7_OR_GREATER, 1, "Define yacc greater or equal than 2.7")
fi
AM_CONDITIONAL(BISON_2_7_OR_GREATER, test "x$bison_27" = xyes)
#now we take care of the different versions of flex
LEX_VERSION=$(${LEX} -V)
AS_VERSION_COMPARE($LEX_VERSION, "2.5.34", flex_2_5_34=no, flex_2_5_34=yex, flex_2_5_34=yes)
if test "$flex_2_5_34" = yes; then
# This is flex >= 2.5.34
AC_DEFINE(HAVE_FLEX_2_5_34_OR_GREATER, 1, "Define flex greater or equal than 2.5.35")
fi
AS_VERSION_COMPARE($LEX_VERSION, "2.5.35", flex_2_5_35=no, flex_2_5_35=yex, flex_2_5_35=yes)
if test "$flex_2_5_35" = yes; then
# This is flex >= 2.5.35
AC_DEFINE(HAVE_FLEX_2_5_35_OR_GREATER, 1, "Define flex greater or equal than 2.5.35")
fi
# Checks for libraries.
AC_CHECK_LIB([m], [pow])
#AC_CHECK_LIB([dl], [dlopen])
AC_CHECK_LIB([z], [gzopen])
# Checks for header files.
AC_FUNC_ALLOCA
AC_HEADER_STDC
AC_CHECK_HEADERS([float.h limits.h sys/timeb.h zlib.h stddef.h getopt.h ], [],[AC_MSG_ERROR("$ac_header not found")])
AC_HEADER_SYS_WAIT
# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_CONST
AC_C_INLINE
AC_TYPE_SIZE_T
AC_C_VOLATILE
AC_CHECK_SIZEOF(unsigned long)
# Checks for library functions.
AC_FUNC_ERROR_AT_LINE
AC_PROG_GCC_TRADITIONAL
AC_FUNC_STRTOD
AC_CHECK_FUNCS([floor memset modf pow sqrt strchr strcasecmp ])
AC_LANG_PUSH([C++])
AC_TYPE_SIGNAL
AC_STRUCT_TM
AC_LIBTOOL_DLOPEN
AC_DISABLE_FAST_INSTALL
AC_LIBTOOL_WIN32_DLL
AC_PROG_LIBTOOL
#check MinGW compilation
MINGW_AC_WIN32_NATIVE_HOST
AM_CONDITIONAL([MINGW64], [test x$mingw_cv_win32_host = xyes])
if test "x$mingw_cv_win32_host" = xyes; then
CXXFLAGS+=" -idirafter /usr/include "
fi
#check doxygen
test -z "$DOXYGEN" && AC_PATH_PROG(DOXYGEN, doxygen, doxygen, )
AC_CHECK_PROG(DOX_HAVE_DOT,dot,YES,NO)
#check svnversion
AC_CHECK_PROG(HAVE_SVNVERSION, svnversion, yes, no)
AC_SUBST(DOX_HAVE_DOT)
DOCUMENTATION_OUTPUTDIR=doc
AC_SUBST(DOCUMENTATION_OUTPUTDIR)
#check BOOST
AX_BOOST_BASE([1.48.0])
AX_BOOST_SYSTEM
AX_BOOST_DATE_TIME
AX_BOOST_FILESYSTEM
AX_BOOST_REGEX
AC_DEFINE_UNQUOTED(BOOST_INCLUDE_DIR, "${BOOST_DIR}", "Define the boost include dir")
PANDA_CHECK_BOOST_SCOPED_ENUMS
if test "x$panda_boost_no_scoped_enums" = xyes; then
CXXFLAGS+=" -DBOOST_NO_SCOPED_ENUMS -DBOOST_NO_CXX11_SCOPED_ENUMS "
fi
PANDA_CHECK_RPATH_FLAVOR
AC_LINUX_DISTRO
TOPSRCDIR=$(cd $srcdir; pwd)
BUILDDIR=$(pwd)
LAST_DIRECTORY=`echo "$TOPSRCDIR" | awk -F/ '{print $NF}'`
GIT_WORKTREE_PATH=$(echo $TOPSRCDIR/.git)
GIT_PRIVATE_PANDA=no
AC_MSG_CHECKING([if directory is a git repository])
if test -d $GIT_WORKTREE_PATH && test -f $GIT_WORKTREE_PATH/HEAD && test -f $GIT_WORKTREE_PATH/index; then
AC_MSG_RESULT([yes])
GIT_REMOTE_URL=$(git --git-dir $GIT_WORKTREE_PATH config --get remote.origin.url)
AC_MSG_CHECKING([if this is clone of ferrandi/private-PandA-bambu.git])
if [[[ $GIT_REMOTE_URL == *"private-PandA-bambu.git"* ]]]; then
GIT_PRIVATE_PANDA=yes
AC_MSG_RESULT([yes])
else
AC_MSG_RESULT([no: $GIT_REMOTE_URL])
fi
else
AC_MSG_RESULT([no])
AC_MSG_CHECKING([if directory is a git worktree])
if test -f $TOPSRCDIR/.git; then
GIT_WORKTREE_PATH=$(head -1 $TOPSRCDIR/.git | sed -e 's/^gitdir://g')
if test -d $GIT_WORKTREE_PATH && test -f $GIT_WORKTREE_PATH/HEAD && test -f $GIT_WORKTREE_PATH/index; then
AC_MSG_RESULT([yes])
fi
else
AC_MSG_RESULT([no])
fi
fi
AM_CONDITIONAL(INSIDE_GIT, test -d $GIT_WORKTREE_PATH && test -f $GIT_WORKTREE_PATH/HEAD && test -f $GIT_WORKTREE_PATH/index)
AC_SUBST(GIT_WORKTREE_PATH)
if test $TOPSRCDIR = $PWD; then
echo "";
echo " ERROR: Build and srcs dir must be different";
echo "";
exit 1;
fi
if test "$prefix" = "NONE"; then
PREFIX=$ac_default_prefix
else
PREFIX=$prefix
fi
AC_DEFINE_UNQUOTED(PANDA_INCLUDE_INSTALLDIR, "${prefix}/include", "Define where panda includes are installed")
AC_DEFINE_UNQUOTED(PANDA_LIB_INSTALLDIR, "${prefix}/lib", "Define where panda libraries are installed")
AC_DEFINE_UNQUOTED(PANDA_DATA_INSTALLDIR, "${prefix}/share", "Define where panda data are installed")
################################################################################
# #
# Architecture options #
# #
################################################################################
############### x86_64 checking ############################
if test "$target_cpu" = x86_64; then
AC_DEFINE(X86_64, 1, "Define if host system is 64 bits")
fi
AM_CONDITIONAL(TARGET_X86_64, test "$target_cpu" = x86_64)
################################################################################
# #
# Configure options #
# #
################################################################################
#To build a NEW_PROJECT:
#check the configure parameters to see if the --enable-NEW_PROJECT has been activated
#and set the panda_USE_NEW_PROJECTD variable to $enableval which is the empty string or yes
AC_ARG_ENABLE(all, [ --enable-all compile all tools], [panda_USE_ALL="$enableval"])
#tools
AC_ARG_ENABLE(spider, [ --enable-spider compile spider tool for parse profiling analysis data], [panda_USE_SPIDER="$enableval"])
AC_ARG_ENABLE(bambu, [ --enable-bambu compile bambu tool for High-Level Synthesis], [panda_USE_BAMBU="$enableval"], [panda_USE_BAMBU="yes"])
AC_ARG_ENABLE(eucalyptus, [ --enable-eucalyptus compile eucalyptus tool for RTL characterization], [panda_USE_EUCALYPTUS="$enableval"])
AC_ARG_ENABLE(treegcc, [ --enable-treegcc compile tree-panda-gcc tool for gimple compilation], [panda_USE_TREE_PANDA_GCC="$enableval"])
#Ext libraries tools
#synthesis wrappers
#aid stuff
AC_ARG_ENABLE(release, [ --enable-release compile the source code for release (default enabled)], [panda_RELEASE="$enableval"], [panda_RELEASE="yes"])
AC_ARG_ENABLE(unordered, [ --enable-unordered compile the source code with unordered data structure (default disabled)], [panda_UNORDERED="$enableval"], [panda_UNORDERED="no"])
AC_ARG_ENABLE(Werror, [ --enable-Werror compile the source code with Werror option; a subset of possible warning is considered], [panda_WERROR="$enableval"])
AC_ARG_ENABLE(asserts, [ --disable-asserts disable most of the runtime check (default enabled)], [panda_ASSERTS="$enableval"], [panda_ASSERTS="yes"])
AC_ARG_ENABLE(debug, [ --enable-debug compile the source code with debug symbols (default disabled)], [panda_DEBUG="$enableval"], [panda_DEBUG="no"])
AC_ARG_ENABLE(opt, [ --enable-opt compile the source code with -O2 (default enabled) ], [panda_OPT="$enableval"], [panda_OPT="yes"])
AC_ARG_ENABLE(allstatic, [ --enable-allstatic create static binaries ], [panda_ALLSTATIC="$enableval"], [panda_ALLSTATIC="yes"])
AC_ARG_ENABLE(32bits, [ --enable-32bits create 32bits binaries ], [panda_32BITS="$enableval"])
#etc/ext stuff
AC_ARG_ENABLE(flopoco, [ --enable-flopoco compile FloPoCo external library], [panda_USE_FLOPOCO="$enableval"])
################################################################################
# #
# Variable initialization #
# #
################################################################################
panda_USE_FRACTIONS=no;
panda_USE_GENERIC_BASHBACKEND=no
panda_USE_I386_GCC=no;
panda_USE_LIB_AIG=no;
panda_USE_LIB_ALGORITHMS=no;
panda_USE_LIB_ARCH=no;
panda_USE_LIB_DESIGN_ANALYSIS=no;
panda_USE_LIB_BACKEND=no;
panda_USE_LIB_BDD=no;
panda_USE_LIB_BEHAVIOR=no;
panda_USE_LIB_BOOLEAN=no;
panda_USE_LIB_BRIDGE=no;
panda_USE_LIB_CIRCUIT=no;
panda_USE_LIB_CLIQUECOVER=no;
panda_USE_LIB_CLUSTERING=no;
panda_USE_LIB_CMOS=no;
panda_USE_LIB_CODE_ESTIMATION=no;
panda_USE_LIB_CODESIGN=no;
panda_USE_LIB_CUDA_FAULT_SIMULATION=no;
panda_USE_LIB_DOMINANCE=no;
panda_USE_LIB_DYNAMIC_METRICS=no;
panda_USE_LIB_EDIF=no;
panda_USE_LIB_EVALUATION=no;
panda_USE_LIB_FROM_AIGER=no;
panda_USE_LIB_FROM_ARCH=no;
panda_USE_LIB_FROM_BLIF=no;
panda_USE_LIB_FROM_BOOLEAN=no;
panda_USE_LIB_FROM_C=no;
panda_USE_LIB_FROM_CSV=no;
panda_USE_LIB_FROM_DEEP_PROFILING=no;
panda_USE_LIB_FROM_IPXACT=no;
panda_USE_LIB_FROM_PSPLIB=no;
panda_USE_LIB_FROM_RTL=no;
panda_USE_LIB_FROM_DATA_XML=no;
panda_USE_LIB_FROM_STRUCTURAL=no;
panda_USE_LIB_FROM_SYSTEMC=no;
panda_USE_LIB_FROM_TGFF=no;
panda_USE_LIB_GRAPH=no;
panda_USE_LIB_GRAPH_PARTITIONING=no;
panda_USE_LIB_GRAPHHELPER=no;
panda_USE_LIB_GSL=no;
panda_USE_LIB_HLS=no;
panda_USE_LIB_HOST_PROFILING=no;
panda_USE_LIB_LIBRARY_CHARACTERIZATION=no;
panda_USE_LIBBAMBU=no;
panda_USE_LIB_LOGIC_SYNTHESIS=no;
panda_USE_LIB_LOGIC_SYNTHESIS_FLOW=no;
panda_USE_LIB_LOOPS=no;
panda_USE_LIB_MAPPING=no;
panda_USE_LIB_METRIC_PARTITIONING=no;
panda_USE_LIB_METRICS=no;
panda_USE_LIB_OBJECT_CODE_WRAPPER=no;
panda_USE_LIB_PARSER=no;
panda_USE_LIB_PARTITIONING=no;
panda_USE_LIB_PLACEMENT=no;
panda_USE_LIB_POLIXML=no;
panda_USE_LIB_PRAGMA=no;
panda_USE_LIB_PROBABILITY_DISTRIBUTION=no;
panda_USE_LIB_REGRESSORS=no;
panda_USE_LIB_REGULARITY=no;
panda_USE_LIB_RTL=no;
panda_USE_LIB_RTL_METRICS=no;
panda_USE_LIB_RTL_CHARACTERIZATION=no;
panda_USE_LIB_SDF_GRAPHS=no;
panda_USE_LIB_SETHELPER=no;
panda_USE_LIB_SIMULATION_WRAPPER=no;
panda_USE_LIB_STATIC_METRICS=no;
panda_USE_LIB_TARGET=no;
panda_USE_LIB_TASK_GRAPHS=no;
panda_USE_LIB_TECHNOLOGY=no;
panda_USE_LIB_TECHNOLOGY_MAPPING=no;
panda_USE_LIB_TECHNOLOGY_CHARACTERIZATION=no;
panda_USE_LIB_TARGET_PROFILING=no;
panda_USE_LIB_TO_C=no;
panda_USE_LIB_TO_DATAFILE=no;
panda_USE_LIB_TREE=no;
panda_USE_LIB_TREE_MANIPULATION=no;
panda_USE_LIB_UTILITY=no;
panda_USE_LIB_WRAPPER=no;
panda_USE_LIB_VCD_PARSER=no;
panda_USE_LIB_VCD=no;
boost_USE_FILESYSTEM=no;
panda_USE_LIB_2LEV=no;
panda_USE_SPARC_ELF_GCC=no;
panda_USE_LIB_SYNTHESIS_WRAPPER=no;
panda_USE_LIB_ILP=no;
panda_USE_LIBBDD=no
MIN_GCC_VERSION=0.0.0
MAX_GCC_VERSION=9.9.9
MIN_CLANG_VERSION=0.0.0
MAX_CLANG_VERSION=100.9.9
################################################################################
# #
# Implicated by configure options #
# #
################################################################################
if test "x$panda_USE_ALL" = xyes; then
panda_USE_BAMBU=yes;
panda_USE_EUCALYPTUS=yes;
panda_USE_GECCO=yes;
panda_USE_GRIZZLY=yes;
panda_USE_KOALA=yes;
panda_USE_LEMUR=yes;
panda_USE_MONGOOSE=yes;
panda_USE_SPIDER=yes;
panda_USE_TUCANO=yes;
panda_USE_TURTLE=yes;
panda_USE_ZEBU=yes;
fi
if test "x$panda_USE_TUCANO" != xyes && test "x$panda_USE_GECCO" != xyes && test "x$panda_USE_ZEBU" != xyes && test "x$panda_USE_LEMUR" != xyes && test "x$panda_USE_BAMBU" != xyes && test "x$panda_USE_KOALA" != xyes && test "x$panda_USE_GRIZZLY" != xyes && test "x$panda_USE_SPIDER" != xyes && test "x$panda_USE_MONGOOSE" != xyes && test "x$panda_USE_EUCALYPTUS" != xyes; then
echo "";
echo " ERROR: No tools selected. Please configure with --enable-<tool> or --enable-all";
echo "";
exit 1;
fi
if test "x$panda_WERROR" != xno && test "x$panda_USE_TUCANO" != xyes && test "x$panda_USE_KOALA" != xyes && test "x$panda_USE_LEMUR" != xyes && test "x$panda_USE_GRIZZLY" != xyes && test "x$GIT_PRIVATE_PANDA" == xyes; then
panda_WERROR=yes;
fi
################################################################################
# #
# Tool implications #
# #
################################################################################
if test "x$panda_USE_EXPERIMENTAL" = xyes; then
panda_RELEASE=no;
fi
################ Bambu checking ##############################
if test "x$panda_USE_BAMBU" = xyes; then
panda_USE_BAMBU_RESULTS_XML=yes;
panda_USE_GLPK=yes;
panda_USE_LIB_GRAPH=yes;
panda_USE_LIB_FROM_C=yes;
panda_USE_I386_GCC=yes;
AS_VERSION_COMPARE($MIN_GCC_VERSION, [4.5.0], [MIN_GCC_VERSION=4.5.0],,)
AS_VERSION_COMPARE($MAX_GCC_VERSION, [9.0.0],,,[MAX_GCC_VERSION=9.0.0])
AS_VERSION_COMPARE($MIN_CLANG_VERSION, [4.0.0], [MIN_CLANG_VERSION=4.0.0],,)
AS_VERSION_COMPARE($MAX_CLANG_VERSION, [14.0.0],,,[MAX_CLANG_VERSION=14.0.0])
panda_USE_LIB_HLS=yes;
panda_USE_LIB_HOST_PROFILING=yes;
panda_USE_LIB_TECHNOLOGY=yes;
panda_USE_LIB_TO_C=yes;
panda_USE_LIB_TO_HDL=yes;
panda_USE_PARAMETER=yes;
panda_USE_LIB_PRAGMA=yes;
panda_USE_LIB_FROM_PRAGMA=yes;
panda_USE_LIB_GRAPHHELPER=yes;
panda_USE_LIB_CMOS=yes;
panda_USE_LIB_SIMULATION_WRAPPER=yes;
panda_USE_LIB_SYNTHESIS_WRAPPER=yes;
panda_USE_LIB_VCD_PARSER=yes;
panda_USE_LIB_VCD=yes;
panda_USE_LIBBAMBU=yes;
panda_USE_TREE_PANDA_GCC=yes;
panda_USE_SPIDER=yes;
panda_USE_TASTE=yes;
panda_USE_ABSEIL=yes;
panda_USE_GENERIC_BASHBACKEND=yes;
#characterization requires to configure at least one synthesis toolchain
if test "x$panda_USE_GENERIC_BASHBACKEND" = xyes || test "x$panda_USE_DESIGN_COMPILER" = xyes; then
AC_APPEND(ENABLE_DOC,"EUCALYPTUS")
panda_USE_EUCALYPTUS=yes;
fi
AC_CHECK_HEADERS([bdd.h fdd.h bvec.h ], [panda_USE_LIBBDD=yes],[ echo "$ac_header not found: Clang/LLVM Point-to analysis will not be enabled"])
if test "x$panda_USE_LIBBDD" = xyes; then
AC_DEFINE(HAVE_LIBBDD, 1, "Define if bambu is built")
fi
### bambu experimental packages ###
if test "x$panda_USE_EXPERIMENTAL" = xyes; then
panda_USE_LIB_CLUSTERING=yes;
panda_USE_LIB_CODESIGN=yes;
panda_USE_LIB_TO_DATAFILE=yes;
panda_USE_LIB_2LEV=yes;
panda_USE_LIB_FROM_ESTIMATION=yes;
### panda_USE_METSLIB=yes;
panda_USE_TRNG=yes;
#in experimental mode, the FloPoCo library is activated by default
if test "x$panda_USE_FLOPOCO" != xno; then
panda_USE_FLOPOCO=yes;
fi
else
panda_USE_COIN_OR=no;
panda_USE_CUDD=no;
fi
AC_APPEND(ENABLE_DOC,"BAMBU")
AC_DEFINE(HAVE_BAMBU_BUILT, 1, "Define if bambu is built")
fi
AM_CONDITIONAL(BUILD_BAMBU, test "x$panda_USE_BAMBU" = xyes)
AM_CONDITIONAL(BUILD_PTAA, test "x$panda_USE_LIBBDD" = xyes)
################ Eucalyptus checking ##############################
if test "x$panda_USE_EUCALYPTUS" = xyes; then
panda_USE_ABSEIL=yes;
panda_USE_LIB_CIRCUIT=yes;
panda_USE_LIB_DESIGN_FLOWS=yes;
panda_USE_LIB_TO_HDL=yes;
panda_USE_LIB_TECHNOLOGY=yes;
panda_USE_LIB_RTL_CHARACTERIZATION=yes;
panda_USE_LIB_SYNTHESIS_WRAPPER=yes;
panda_USE_LIB_UTILITY=yes;
if test "x$panda_USE_FLOPOCO" != xno; then
panda_USE_FLOPOCO=yes;
fi
AC_DEFINE(HAVE_EUCALYPTUS_BUILT, 1, "Define if eucalyptus is built")
fi
AM_CONDITIONAL(BUILD_EUCALYPTUS, test "x$panda_USE_EUCALYPTUS" = xyes)
################ Gecco checking ##############################
if test "x$panda_USE_GECCO" = xyes; then
panda_USE_ABSEIL=yes;
panda_USE_LIB_ARCH=yes;
panda_USE_LIB_FROM_SDF3=yes;
panda_USE_LIB_FROM_PSPLIB=yes;
panda_USE_LIB_FROM_TGFF=yes;
panda_USE_LIB_GRAPH=yes;
panda_USE_LIB_GRAPH_PARTITIONING=yes;
panda_USE_LIB_MAPPING=yes;
panda_USE_PARAMETER=yes;
AC_APPEND(ENABLE_DOC,"GECCO")
AC_DEFINE(HAVE_GECCO_BUILT, 1, "Define if gecco is built")
fi
AM_CONDITIONAL(BUILD_GECCO, test "x$panda_USE_GECCO" = xyes)
################ Grizzly checking ##############################
if test "x$panda_USE_GRIZZLY" = xyes; then
panda_USE_ABSEIL=yes;
panda_USE_LIB_GRAPH=yes;
panda_USE_LIB_FROM_C=yes;
panda_USE_LIB_TO_C=yes;
panda_USE_PARAMETER=yes;
AC_APPEND(ENABLE_DOC,"GRIZZLY")
AC_DEFINE(HAVE_GRIZZLY_BUILT, 1, "Define if grizzly is built")
fi
AM_CONDITIONAL(BUILD_GRIZZLY, test "x$panda_USE_GRIZZLY" = xyes)
################ Koala checking ##############################
if test "x$panda_USE_KOALA" = xyes; then
panda_USE_ABSEIL=yes;
panda_USE_LIB_BOOLEAN=yes;
panda_USE_LIB_CIRCUIT=yes;
panda_USE_LIB_CMOS=yes;
if test "x$panda_USE_CUDA" = xyes; then
panda_USE_LIB_CUDA_FAULT_SIMULATION=yes;
fi
panda_USE_LIB_EDIF=yes;
panda_USE_LIB_FROM_AIGER=yes;
panda_USE_LIB_FROM_BENCH=yes;
panda_USE_LIB_FROM_BLIF=yes;
panda_USE_LIB_TECHNOLOGY_MAPPING=yes;
panda_USE_LIB_TECHNOLOGY_CHARACTERIZATION=yes;
panda_USE_LIB_GRAPH=yes;
panda_USE_LIB_LOGIC_FACTORING=yes;
panda_USE_LIB_LOGIC_SYNTHESIS_FLOW=yes;
panda_USE_LIB_PLACEMENT=yes;
panda_USE_LIB_REGULARITY=yes;
panda_USE_LIB_SIMULATION_WRAPPER=yes;
panda_USE_LIB_TARGET=yes;
panda_USE_LIB_TECHNOLOGY=yes;
panda_USE_LIB_TO_HDL=yes;
panda_USE_PARAMETER=yes;
if test "x$panda_USE_CUDD" != "xno"; then
panda_USE_CUDD=yes;
fi
if test "x$panda_USE_LIB_FROM_LIBERTY" != "xno"; then
panda_USE_LIB_FROM_LIBERTY=yes;
fi
if test -f $TOPSRCDIR/ext/switchcraft/libfactor2.so; then
panda_USE_LIB_BRIDGE=yes;
BRIDGE_CPPFLAGS="-I$TOPSRCDIR/ext/switchcraft";
AC_SUBST(BRIDGE_CPPFLAGS)
BRIDGE_LIBS="-lfactor2";
AC_SUBST(BRIDGE_LIBS)
BRIDGE_LDFLAGS="-L$TOPSRCDIR/ext/switchcraft";
AC_SUBST(BRIDGE_LDFLAGS)
AC_DEFINE(HAVE_BRIDGE_BUILT, 1, "Define if switchcraft is integrated")
else
echo "";
echo " WARNING: libfactor library is missing";
echo "";
fi
if test "x$panda_USE_SYNTHESIS_TOOL" != "xno"; then
panda_USE_SYNTHESIS_TOOL=yes;
fi
AC_APPEND(ENABLE_DOC,"KOALA")
AC_DEFINE(HAVE_KOALA_BUILT, 1, "Define if koala is built")
fi
AM_CONDITIONAL(BUILD_BRIDGE, test "x$panda_USE_KOALA" = xyes && test -f $TOPSRCDIR/ext/switchcraft/libfactor2.so)
AM_CONDITIONAL(BUILD_KOALA, test "x$panda_USE_KOALA" = xyes)
AM_CONDITIONAL(BUILD_CUDA, test "x$panda_USE_CUDA" = xyes)
################ Lemur checking ##############################
if test "x$panda_USE_LEMUR" = xyes; then
AC_APPEND(ENABLE_DOC,"LEMUR")
AC_DEFINE(HAVE_LEMUR_BUILT, 1, "Define if lemur is built")
panda_USE_ABSEIL=yes;
panda_USE_LIB_GSL=yes;
fi
AM_CONDITIONAL(BUILD_LEMUR, test "x$panda_USE_LEMUR" = xyes)
################ Mongoose checking ##############################
if test "x$panda_USE_MONGOOSE" = xyes; then
AC_APPEND(ENABLE_DOC,"MONGOOSE")
AC_DEFINE(HAVE_MONGOOSE_BUILT, 1, "Define if mongoose is built")
panda_USE_ABSEIL=yes;
panda_USE_LIB_CIRCUIT=yes;
panda_USE_LIB_CMOS=yes;
panda_USE_LIB_DESIGN_ANALYSIS=yes;
panda_USE_LIB_FROM_IPXACT=yes;
panda_USE_LIB_FROM_LIBERTY=yes;
panda_USE_LIB_GRAPH=yes;
panda_USE_LIB_POLIXML=yes;
panda_USE_LIB_TECHNOLOGY=yes;
panda_USE_PARAMETER=yes;
if test "x$panda_USE_SYNTHESIS_TOOL" != "xno" && test "x$panda_USE_DESIGN_COMPILER" != "xno"; then
panda_USE_DESIGN_COMPILER=yes;
fi
if test "x$panda_USE_SYNTHESIS_TOOL" != "xno" && test "x$panda_USE_CORE_TOOLS" != "xno"; then
panda_USE_CORE_TOOLS=yes;
fi
fi
AM_CONDITIONAL(BUILD_MONGOOSE, test "x$panda_USE_MONGOOSE" = xyes)
################ Spider checking ##############################
if test "x$panda_USE_SPIDER" = xyes; then
panda_USE_ABSEIL=yes;
panda_USE_BAMBU_RESULTS_XML=yes;
panda_USE_LIB_FROM_DATA_XML=yes;
panda_USE_LIB_TO_DATAFILE=yes;
panda_USE_PARAMETER=yes;
panda_USE_LIB_FROM_DISCREPANCY=yes;
AC_APPEND(ENABLE_DOC,"SPIDER")
AC_DEFINE(HAVE_SPIDER_BUILT, 1, "Define if spider is built")
if test "x$panda_USE_EXPERIMENTAL" = xyes; then
panda_USE_LIB_EVALUATION=yes;
panda_USE_LIB_FROM_CSV=yes;
panda_USE_LIB_FROM_DEEP_PROFILING=yes;
panda_USE_LIB_RTL=yes;
panda_USE_LIB_GSL=yes;
panda_USE_LIB_REGRESSORS=yes;
panda_USE_SOURCE_CODE_STATISTICS_XML=yes;
panda_USE_LIB_TREE=yes;
if test "x$panda_USE_LIB_FROM_LIBERTY" = xyes; then
panda_USE_LIB_FROM_BOOLEAN=yes;
panda_USE_LIB_TECHNOLOGY=yes;
fi
fi
fi
AM_CONDITIONAL(BUILD_SPIDER, test "x$panda_USE_SPIDER" = xyes)
################ Tucano checking ##############################
if test "x$panda_USE_TUCANO" = xyes; then
panda_USE_ABSEIL=yes;
panda_USE_LIB_GRAPH=yes;
panda_USE_LIB_FROM_SYSTEMC=yes;
panda_USE_I386_GCC=yes;
AS_VERSION_COMPARE($MIN_GCC_VERSION, [4.5.0], [MIN_GCC_VERSION=4.5.0],,)
AS_VERSION_COMPARE($MAX_GCC_VERSION, [4.6.0],,,[MAX_GCC_VERSION=4.6.0])
panda_USE_LIB_FROM_C=yes;
panda_USE_LIB_METRIC_PARTITIONING=yes;
panda_USE_LIB_RTL_METRICS=yes;
panda_USE_LIB_TLM=yes;
panda_USE_PARAMETER=yes;
AC_APPEND(ENABLE_DOC,"TUCANO")
AC_DEFINE(HAVE_TUCANO_BUILT, 1, "Define if tucano is built")
fi
AM_CONDITIONAL(BUILD_TUCANO, test "x$panda_USE_TUCANO" = xyes)
####################### Zebu checking ##############################
if test "x$panda_USE_ZEBU" = xyes; then
panda_USE_ABSEIL=yes;
panda_USE_LIB_ARCH=yes;
panda_USE_LIB_CODE_ESTIMATION=yes;
panda_USE_LIB_COMPARE_MODELS=yes;
panda_USE_LIB_DYNAMIC_METRICS=yes;
panda_USE_LIB_FROM_C=yes;
panda_USE_I386_GCC=yes;
AS_VERSION_COMPARE($MIN_GCC_VERSION, [4.5.0], [MIN_GCC_VERSION=4.5.0],,)
AS_VERSION_COMPARE($MAX_GCC_VERSION, [4.9.0],,,[MAX_GCC_VERSION=4.9.0])
panda_USE_LIB_FROM_PRAGMA=yes;
panda_USE_LIB_GRAPH=yes;
panda_USE_LIB_GRAPH_PARTITIONING=yes;
panda_USE_LIB_MAPPING=yes;
panda_USE_LIB_OBJECT_CODE_WRAPPER=yes;
panda_USE_LIB_PRAGMA=yes;
panda_USE_LIB_TO_C=yes;
panda_USE_PARAMETER=yes;
panda_USE_SOURCE_CODE_STATISTICS_XML=yes;
panda_USE_TREE_PANDA_GCC=yes;
AC_APPEND(ENABLE_DOC,"ZEBU")
AC_DEFINE(HAVE_ZEBU_BUILT, 1, "Define if zebu is built")
fi
AM_CONDITIONAL(BUILD_ZEBU, test "x$panda_USE_ZEBU" = xyes)
#################### PandA tree gcc checking #######################
if test "x$panda_USE_TREE_PANDA_GCC" = xyes; then
AC_DEFINE(HAVE_TREE_PANDA_GCC_BUILT, 1, "Define if tree-panda-gcc is built")
fi
AM_CONDITIONAL(BUILD_TREE_PANDA_GCC, test "x$panda_USE_TREE_PANDA_GCC" = xyes)
################ Synthesis tools implications ######################
if test "x$panda_USE_SYNTHESIS_TOOL" = xyes; then
#ASIC datastructures
panda_USE_LIB_CMOS=yes;
#ASIC tools
#-Synopsys
panda_USE_DESIGN_COMPILER=yes;
if test "x$panda_USE_EXPERIMENTAL" = xyes; then
panda_USE_LIB_FROM_LIBERTY=yes;
panda_USE_LIBRARY_COMPILER=yes;
panda_USE_PRIME_TIME=yes;
panda_USE_FORMALITY=yes;
#-Cadence
panda_USE_SOC_ENCOUNTER=yes;
fi
if test "x$panda_USE_LIB_LOGIC_SYNTHESIS_FLOW" = xyes; then
#-Nangate
panda_USE_LIBRARY_CREATOR=yes;
panda_USE_DESIGN_OPTIMIZER=yes;
fi
fi
##################### Library implications #########################
if test "x$panda_USE_LIB_TECHNOLOGY_MAPPING" = xyes; then
panda_USE_LIB_AIG=yes;
fi
if test "x$panda_USE_GLPK" = xno && test "x$panda_USE_COIN_OR" = xyes; then
panda_USE_GLPK=yes;
fi
if test "x$panda_USE_GLPK" = xyes || test "x$panda_USE_COIN_OR" = xyes; then
panda_USE_LIB_ILP=yes;
fi
if test "x$panda_USE_CUDD" = xyes; then
panda_USE_LIB_BDD=yes;
fi
if test "x$panda_USE_LIB_2LEV" = xyes; then
if test "x$panda_USE_CUDD" != xyes; then
panda_USE_LIB_2LEV=no;
fi
fi
if test "x$panda_USE_LIB_AIG" = xyes && test "x$panda_USE_LIB_BDD" = xno; then
panda_USE_LIB_AIG=no;
fi
if test "x$panda_USE_LIB_AIG" = xyes; then
panda_USE_LIB_FROM_BOOLEAN=yes;
panda_USE_LIB_VIRTUAL_LIBRARY=yes;
fi
if test "x$panda_USE_LIB_EDIF" = xyes; then
panda_USE_LIB_FROM_EDIF=yes;
fi
if test "x$panda_USE_SIMIT" = xyes || test "x$panda_USE_DIOPSIS" = xyes; then
panda_USE_ARM_GCC=yes;
fi
if test "x$panda_USE_A3" = xyes || test "x$panda_USE_TSIM" = xyes || test "x$panda_USE_LEON3" = xyes || test "x$panda_USE_MPPB" = xyes; then
panda_USE_SPARC_GCC=yes;
fi
if test "x$panda_USE_LIB_FROM_C" = xyes && test "x$panda_USE_I386_GCC" != xyes && test "x$panda_USE_ARM_GCC" != xyes && test "x$panda_USE_SPARC_GCC" != xyes; then
panda_USE_I386_GCC=yes;
fi
if test "x$panda_USE_ARM_GCC" = xyes || test "x$panda_USE_SPARC_GCC" = xyes; then
panda_USE_I386_GCC=yes;
panda_USE_LIB_FROM_RTL=yes;
fi
if test "x$panda_USE_LIB_FROM_RTL" = xyes; then
panda_USE_LIB_RTL=yes;
fi
if test "x$panda_USE_LIB_FROM_SYSTEMC" = xyes; then
panda_USE_LIB_FROM_C=yes;
panda_USE_LIB_CIRCUIT=yes;
fi
if test "x$panda_USE_LIB_GRAPH_PARTITIONING" = xyes || test "x$panda_USE_LIB_METRIC_PARTITIONING" = xyes; then
panda_USE_LIB_PARTITIONING=yes;
fi
if test "x$panda_USE_LIB_CODE_ESTIMATION" = xyes || test "x$panda_USE_LIB_METRICS" = xyes || test "x$panda_USE_LIB_PARTITIONING" = xyes || test "x$panda_USE_LIB_MAPPING" = xyes; then
panda_USE_LIB_CODESIGN=yes;
fi
if test "x$panda_USE_LIB_CODESIGN" = xyes; then
panda_USE_LIB_SDF_GRAPHS=yes;
panda_USE_LIB_TASK_GRAPHS=yes;
fi
if test "x$panda_USE_LIB_TASK_GRAPHS" = xyes; then
panda_USE_LIB_BSG_HELPERS=yes;
panda_USE_LIB_DOMINANCE=yes;
panda_USE_LIB_GRAPHHELPER=yes;
panda_USE_LIB_SETHELPER=yes;
panda_USE_LIB_TRANSITIVE_REDUCTION=yes;
fi
if test "x$panda_USE_LIB_HLS" = xyes; then
panda_USE_LIB_CIRCUIT=yes;
panda_USE_LIB_CLIQUECOVER=yes;
panda_USE_LIB_TECHNOLOGY=yes;
fi
if test "x$panda_USE_LIB_FROM_C" = xyes; then
panda_USE_LIB_BEHAVIOR=yes;
panda_USE_LIB_FRONTEND_ANALYSIS=yes;
panda_USE_LIB_LOOPS=yes;
panda_USE_LIB_DOMINANCE=yes;
panda_USE_LIB_TREE=yes;
panda_USE_LIB_TREE_MANIPULATION=yes;
panda_USE_LIB_TREE_PARSER=yes;
fi
if test "x$panda_USE_LIB_CODE_ESTIMATION" = xyes; then
panda_USE_LIB_STATIC_METRICS=yes;
panda_USE_LIB_PROBABILITY_DISTRIBUTION=yes;
fi
if test "x$panda_USE_LIB_SDF_GRAPHS" = xyes; then
panda_USE_FRACTIONS=yes;
panda_USE_LIB_PROBABILITY_DISTRIBUTION=yes;
fi
if test "x$panda_USE_LIB_FRONTEND_ANALYSIS" = xyes; then
panda_USE_LIB_DESIGN_FLOWS=yes;
panda_USE_LIB_POLIXML=yes;
fi
if test "x$panda_USE_LIB_TECHNOLOGY" = xyes; then
panda_USE_LIB_PHYSICAL_LIBRARY=yes;
panda_USE_LIB_PHYSICAL_LIBRARY_MODELS=yes;
panda_USE_LIB_POLIXML=yes;
panda_USE_LIB_TARGET=yes;
fi
if test "x$panda_USE_LIB_ARCH" = xyes; then
panda_USE_LIB_FROM_ARCH=yes;
fi
if test "x$panda_USE_PARAMETER" = xyes; then
panda_USE_LIB_UTILITY=yes;
panda_USE_LIB_POLIXML=yes;
fi
if test "x$panda_USE_LIB_POLIXML" = xyes; then
panda_USE_LIB_FROM_POLIXML=yes;
fi
if test "x$panda_USE_LIB_PLACEMENT" = xyes; then
panda_USE_LIB_TARGET=yes;
fi
if test "x$panda_USE_SIMIT" = xyes || test "x$panda_USE_DIOPSIS" = xyes || test "x$panda_USE_LEON3" = xyes || test "x$panda_USE_MPPB" = xyes || test "x$panda_USE_TSIM" = xyes || test "x$panda_USE_A3" = xyes; then
panda_USE_LIB_TARGET_PROFILING=yes;
fi
if test "x$panda_USE_LIB_TARGET_PROFILING" != xyes && test "x$panda_USE_LIB_COMPARE_MODELS" = xyes; then
panda_USE_LIB_COMPARE_MODELS=no;
fi
if (test "x$panda_USE_LIB_HLS" = xyes && (test "x$panda_USE_GENERIC_BASHBACKEND" = xyes || test "x$panda_USE_DESIGN_COMPILER" = xyes)) then
panda_USE_LIB_RTL_CHARACTERIZATION=yes;
fi
if test "x$panda_USE_LIB_2LEV" = xyes || test "x$panda_USE_LIB_LOGIC_SYNTHESIS_FLOW" = xyes; then
panda_USE_LIB_LOGIC_SYNTHESIS=yes;
fi
if test "x$panda_USE_LEON3" = xyes || test "x$panda_USE_TSIM" = xyes; then
panda_USE_SPARC_ELF_GCC=yes;
fi
if test "x$panda_USE_LIB_MAPPING" = xyes && test "x$panda_USE_LIB_TO_C" = xyes; then
panda_USE_LIB_PRAGMA=yes;
fi
if test "x$panda_USE_LIB_CODE_ESTIMATION" = xyes && test "x$panda_USE_LIB_FROM_C" = xyes; then
panda_USE_LIB_HOST_PROFILING=yes;
fi
if test "x$panda_USE_SYNTHESIS_TOOL" = xyes || test "x$panda_USE_CORE_TOOLS" = xyes || test "x$panda_USE_DESIGN_COMPILER" = xyes || test "x$panda_USE_GENERIC_BASHBACKEND" = xyes; then
panda_USE_LIB_SYNTHESIS_WRAPPER=yes;
fi
if test "x$panda_USE_LIB_SYNTHESIS_WRAPPER" = xyes; then
panda_USE_LIB_TO_HDL=yes;
fi
if test "x$panda_USE_LIB_REGRESSORS" = xyes || test "x$panda_USE_LIB_CODE_ESTIMATION" = xyes || test "x$panda_USE_LIB_TARGET_PROFILING" = xyes; then
panda_USE_PERFORMANCE_METRICS_XML=yes;
fi
if test "x$panda_USE_LIB_TO_DATAFILE" = xyes || test "x$panda_USE_LIB_CODE_ESTIMATION" = xyes; then
panda_USE_WEIGHT_MODELS_XML=yes;
fi
if test "x$panda_USE_LIB_FROM_SOURCE_CODE_STATISTICS" = xyes || test "x$panda_USE_ZEBU" = xyes; then
panda_USE_SOURCE_CODE_STASTICS_XML=yes;
fi
if test "x$panda_USE_ZEBU" = xyes || test "x$panda_USE_LIB_FROM_PRAGMA" = xyes || test "x$panda_USE_TASTE" = xyes; then
panda_USE_SOURCE_CODE_MANIPULATION=yes
fi
if test "x$panda_USE_LIB_RTL_CHARACTERIZATION" = xyes || test "x$panda_USE_LIB_TECHNOLOGY_CHARACTERIZATION" = xyes; then
panda_USE_LIB_LIBRARY_CHARACTERIZATION=yes;
fi
if test "x$panda_USE_LIB_TO_DATAFILE" = xyes || test "x$panda_USE_LIB_DESIGN_FLOWS" = xyes; then
panda_USE_LIB_GRAPH=yes;
fi
if test "$DISTRO" = "arch"; then
panda_ALLSTATIC=no;
fi
if test "x$panda_USE_TASTE" = xyes; then
panda_USE_LIB_FROM_AADL_ASN=yes;
fi
###################### libc++ support #######################
if test "x$panda_clanglibcpp" = xyes; then
AC_DEFINE(EXTRA_CLANGPP_COMPILER_OPTION, " -stdlib=libc++ ", "Define extra compiler options")
else
AC_DEFINE(EXTRA_CLANGPP_COMPILER_OPTION, "", "Define extra compiler options")
fi
###################### Release and experimental checking #######################
if test "x$panda_RELEASE" = xyes; then
AC_DEFINE(RELEASE, 1, "Define if a release is built")
AC_DEFINE(NPROFILE, 1, "Define if profile is disabled")