| 83 |
83 |
| 84 # help text |
84 # help text |
| 85 printhelp() |
85 printhelp() |
| 86 { |
86 { |
| 87 echo "Usage: $0 [OPTIONS]..." |
87 echo "Usage: $0 [OPTIONS]..." |
| 88 cat << __EOF__ |
88 echo 'Configuration:' |
| 89 Installation directories: |
89 if true \ |
| 90 --prefix=PREFIX path prefix for architecture-independent files |
90 ; then |
| 91 [$prefix] |
91 : |
| 92 --exec-prefix=EPREFIX path prefix for architecture-dependent files |
92 if test -z "$prefix__described__"; then |
| 93 [PREFIX] |
93 prefix__described__=1 |
| 94 |
94 cat << '__EOF__' |
| 95 --bindir=DIR user executables [EPREFIX/bin] |
95 --prefix path prefix for architecture-independent files [/usr] |
| 96 --sbindir=DIR system admin executables [EPREFIX/sbin] |
96 __EOF__ |
| 97 --libexecdir=DIR program executables [EPREFIX/libexec] |
97 fi |
| 98 --sysconfdir=DIR system configuration files [PREFIX/etc] |
98 if test -z "$exec_prefix__described__"; then |
| 99 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
99 exec_prefix__described__=1 |
| 100 --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
100 cat << '__EOF__' |
| 101 --runstatedir=DIR run-time variable data [LOCALSTATEDIR/run] |
101 --exec-prefix path prefix for architecture-dependent files [PREFIX] |
| 102 --libdir=DIR object code libraries [EPREFIX/lib] |
102 __EOF__ |
| 103 --includedir=DIR C header files [PREFIX/include] |
103 fi |
| 104 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
104 if test -z "$libdir__described__"; then |
| 105 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
105 libdir__described__=1 |
| 106 --infodir=DIR info documentation [DATAROOTDIR/info] |
106 cat << '__EOF__' |
| 107 --mandir=DIR man documentation [DATAROOTDIR/man] |
107 --libdir object code libraries [EPREFIX/lib] |
| 108 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
108 __EOF__ |
| |
109 fi |
| |
110 if test -z "$includedir__described__"; then |
| |
111 includedir__described__=1 |
| |
112 cat << '__EOF__' |
| |
113 --includedir C header files [PREFIX/include] |
| |
114 __EOF__ |
| |
115 fi |
| |
116 if test -z "$DOXYGEN__described__"; then |
| |
117 DOXYGEN__described__=1 |
| |
118 cat << '__EOF__' |
| |
119 --doxygen path of the Doxygen executable |
| |
120 __EOF__ |
| |
121 fi |
| |
122 fi |
| |
123 if true \ |
| |
124 && isplatform "bsd" \ |
| |
125 ; then |
| |
126 : |
| |
127 fi |
| |
128 if true \ |
| |
129 && notisplatform "bsd" \ |
| |
130 ; then |
| |
131 : |
| |
132 fi |
| |
133 cat << '__EOF__' |
| 109 |
134 |
| 110 Build Types: |
135 Build Types: |
| 111 --debug add extra compile flags for debug builds |
136 --debug add extra compile flags for debug builds |
| 112 --release add extra compile flags for release builds |
137 --release add extra compile flags for release builds |
| 113 |
138 |
| 133 exit 1 |
159 exit 1 |
| 134 fi |
160 fi |
| 135 touch "$TEMP_DIR/options" |
161 touch "$TEMP_DIR/options" |
| 136 touch "$TEMP_DIR/features" |
162 touch "$TEMP_DIR/features" |
| 137 |
163 |
| 138 # define standard variables |
164 # config variables |
| 139 # also define standard prefix (this is where we will search for config.site) |
|
| 140 prefix=/usr |
|
| 141 exec_prefix= |
|
| 142 bindir= |
|
| 143 sbindir= |
|
| 144 libdir= |
|
| 145 libexecdir= |
|
| 146 datarootdir= |
|
| 147 datadir= |
|
| 148 sysconfdir= |
|
| 149 sharedstatedir= |
|
| 150 localstatedir= |
|
| 151 runstatedir= |
|
| 152 includedir= |
|
| 153 infodir= |
|
| 154 localedir= |
|
| 155 mandir= |
|
| 156 |
|
| 157 # custom variables |
|
| 158 if true \ |
165 if true \ |
| 159 ; then |
166 ; then |
| 160 root_dir=`pwd` |
167 : |
| 161 DOXYGEN=`command -v doxygen` |
168 if test -z "$prefix__initialized__"; then |
| |
169 prefix__initialized__=1 |
| |
170 prefix="/usr" |
| |
171 fi |
| |
172 if test -z "$exec_prefix__initialized__"; then |
| |
173 exec_prefix__initialized__=1 |
| |
174 exec_prefix="" |
| |
175 fi |
| |
176 if test -z "$libdir__initialized__"; then |
| |
177 libdir__initialized__=1 |
| |
178 libdir="" |
| |
179 fi |
| |
180 if test -z "$includedir__initialized__"; then |
| |
181 includedir__initialized__=1 |
| |
182 includedir="" |
| |
183 fi |
| |
184 if test -z "$VERSION__initialized__"; then |
| |
185 VERSION__initialized__=1 |
| |
186 VERSION="3.2.0" |
| |
187 fi |
| |
188 if test -z "$LIBVERSION__initialized__"; then |
| |
189 LIBVERSION__initialized__=1 |
| |
190 LIBVERSION="6.0.0" |
| |
191 fi |
| |
192 if test -z "$LIBVERSION_MAJOR__initialized__"; then |
| |
193 LIBVERSION_MAJOR__initialized__=1 |
| |
194 LIBVERSION_MAJOR="6" |
| |
195 fi |
| |
196 if test -z "$root_dir__initialized__"; then |
| |
197 root_dir__initialized__=1 |
| |
198 root_dir=`pwd` |
| |
199 fi |
| |
200 if test -z "$build_dir__initialized__"; then |
| |
201 build_dir__initialized__=1 |
| |
202 build_dir="\${root_dir}/build" |
| |
203 fi |
| |
204 if test -z "$docs_dir__initialized__"; then |
| |
205 docs_dir__initialized__=1 |
| |
206 docs_dir="\${root_dir}/build/docs" |
| |
207 fi |
| |
208 if test -z "$dist_dir__initialized__"; then |
| |
209 dist_dir__initialized__=1 |
| |
210 dist_dir="\${root_dir}/dist" |
| |
211 fi |
| |
212 if test -z "$DOXYGEN__initialized__"; then |
| |
213 DOXYGEN__initialized__=1 |
| |
214 DOXYGEN=`command -v doxygen` |
| |
215 fi |
| |
216 if test -z "$MKDIR__initialized__"; then |
| |
217 MKDIR__initialized__=1 |
| |
218 MKDIR="/bin/mkdir -p" |
| |
219 fi |
| |
220 if test -z "$RMFILE__initialized__"; then |
| |
221 RMFILE__initialized__=1 |
| |
222 RMFILE="/bin/rm -f" |
| |
223 fi |
| |
224 if test -z "$RMDIR__initialized__"; then |
| |
225 RMDIR__initialized__=1 |
| |
226 RMDIR="/bin/rm -f -R" |
| |
227 fi |
| |
228 if test -z "$COPYFILE__initialized__"; then |
| |
229 COPYFILE__initialized__=1 |
| |
230 COPYFILE="/bin/cp -f" |
| |
231 fi |
| |
232 if test -z "$COPYALL__initialized__"; then |
| |
233 COPYALL__initialized__=1 |
| |
234 COPYALL="/bin/cp -f -R" |
| |
235 fi |
| |
236 if test -z "$SYMLINK__initialized__"; then |
| |
237 SYMLINK__initialized__=1 |
| |
238 SYMLINK="/bin/ln -s" |
| |
239 fi |
| |
240 fi |
| |
241 if true \ |
| |
242 && isplatform "bsd" \ |
| |
243 ; then |
| |
244 : |
| |
245 if test -z "$pkgconfigdir__initialized__"; then |
| |
246 pkgconfigdir__initialized__=1 |
| |
247 pkgconfigdir="\${exec_prefix}/libdata/pkgconfig" |
| |
248 fi |
| |
249 fi |
| |
250 if true \ |
| |
251 && notisplatform "bsd" \ |
| |
252 ; then |
| |
253 : |
| |
254 if test -z "$pkgconfigdir__initialized__"; then |
| |
255 pkgconfigdir__initialized__=1 |
| |
256 pkgconfigdir="\${libdir}/pkgconfig" |
| |
257 fi |
| 162 fi |
258 fi |
| 163 |
259 |
| 164 # features |
260 # features |
| 165 FEATURE_MEMRCHR=auto |
261 FEATURE_MEMRCHR=auto |
| 166 FEATURE_CXX_TESTS=auto |
262 FEATURE_CXX_TESTS=auto |
| 171 # |
267 # |
| 172 BUILD_TYPE="default" |
268 BUILD_TYPE="default" |
| 173 for ARG in "$@" |
269 for ARG in "$@" |
| 174 do |
270 do |
| 175 case "$ARG" in |
271 case "$ARG" in |
| 176 "--prefix="*) prefix=${ARG#--prefix=} ;; |
272 "--prefix="*) prefix=${ARG#--prefix=} ;; |
| 177 "--exec-prefix="*) exec_prefix=${ARG#--exec-prefix=} ;; |
273 "--exec-prefix="*) exec_prefix=${ARG#--exec-prefix=} ;; |
| 178 "--bindir="*) bindir=${ARG#----bindir=} ;; |
274 "--libdir="*) libdir=${ARG#--libdir=} ;; |
| 179 "--sbindir="*) sbindir=${ARG#--sbindir=} ;; |
275 "--includedir="*) includedir=${ARG#--includedir=} ;; |
| 180 "--libdir="*) libdir=${ARG#--libdir=} ;; |
276 "--doxygen="*) DOXYGEN=${ARG#--doxygen=} ;; |
| 181 "--libexecdir="*) libexecdir=${ARG#--libexecdir=} ;; |
277 "--help"*) printhelp ;; |
| 182 "--datarootdir="*) datarootdir=${ARG#--datarootdir=} ;; |
278 "--debug") BUILD_TYPE="debug" ;; |
| 183 "--datadir="*) datadir=${ARG#--datadir=} ;; |
279 "--release") BUILD_TYPE="release" ;; |
| 184 "--sysconfdir="*) sysconfdir=${ARG#--sysconfdir=} ;; |
|
| 185 "--sharedstatedir="*) sharedstatedir=${ARG#--sharedstatedir=} ;; |
|
| 186 "--localstatedir="*) localstatedir=${ARG#--localstatedir=} ;; |
|
| 187 "--runstatedir="*) runstatedir=${ARG#--runstatedir=} ;; |
|
| 188 "--includedir="*) includedir=${ARG#--includedir=} ;; |
|
| 189 "--infodir="*) infodir=${ARG#--infodir=} ;; |
|
| 190 "--mandir"*) mandir=${ARG#--mandir} ;; |
|
| 191 "--localedir"*) localedir=${ARG#--localedir} ;; |
|
| 192 "--help"*) printhelp; abort_configure ;; |
|
| 193 "--debug") BUILD_TYPE="debug" ;; |
|
| 194 "--release") BUILD_TYPE="release" ;; |
|
| 195 "--enable-api-docs") FEATURE_API_DOCS=on ;; |
280 "--enable-api-docs") FEATURE_API_DOCS=on ;; |
| 196 "--disable-api-docs") unset FEATURE_API_DOCS ;; |
281 "--disable-api-docs") unset FEATURE_API_DOCS ;; |
| 197 "--enable-coverage") FEATURE_COVERAGE=on ;; |
282 "--enable-coverage") FEATURE_COVERAGE=on ;; |
| 198 "--disable-coverage") unset FEATURE_COVERAGE ;; |
283 "--disable-coverage") unset FEATURE_COVERAGE ;; |
| 199 "--enable-asan") FEATURE_ASAN=on ;; |
284 "--enable-asan") FEATURE_ASAN=on ;; |
| 243 : ${includedir:='${prefix}/include'} |
341 : ${includedir:='${prefix}/include'} |
| 244 : ${infodir:='${datarootdir}/info'} |
342 : ${infodir:='${datarootdir}/info'} |
| 245 : ${mandir:='${datarootdir}/man'} |
343 : ${mandir:='${datarootdir}/man'} |
| 246 : ${localedir:='${datarootdir}/locale'} |
344 : ${localedir:='${datarootdir}/locale'} |
| 247 |
345 |
| 248 # remember the above values and compare them later |
|
| 249 orig_bindir="$bindir" |
|
| 250 orig_sbindir="$sbindir" |
|
| 251 orig_libdir="$libdir" |
|
| 252 orig_libexecdir="$libexecdir" |
|
| 253 orig_datarootdir="$datarootdir" |
|
| 254 orig_datadir="$datadir" |
|
| 255 orig_sysconfdir="$sysconfdir" |
|
| 256 orig_sharedstatedir="$sharedstatedir" |
|
| 257 orig_localstatedir="$localstatedir" |
|
| 258 orig_runstatedir="$runstatedir" |
|
| 259 orig_includedir="$includedir" |
|
| 260 orig_infodir="$infodir" |
|
| 261 orig_mandir="$mandir" |
|
| 262 orig_localedir="$localedir" |
|
| 263 |
346 |
| 264 # check if a config.site exists and load it |
347 # check if a config.site exists and load it |
| |
348 CONFIG_SITE_OK=0 |
| 265 if [ -n "$CONFIG_SITE" ]; then |
349 if [ -n "$CONFIG_SITE" ]; then |
| 266 # CONFIG_SITE may contain space separated file names |
350 # CONFIG_SITE may contain space separated file names |
| 267 for cs in $CONFIG_SITE; do |
351 for cs in $CONFIG_SITE; do |
| 268 printf "loading defaults from $cs... " |
352 printf "loading defaults from $cs... " |
| 269 . "$cs" |
353 if [ -f "$cs" ]; then |
| 270 echo ok |
354 . "$cs" |
| |
355 echo ok |
| |
356 CONFIG_SITE_OK=1 |
| |
357 break |
| |
358 else |
| |
359 echo "not found" |
| |
360 fi |
| 271 done |
361 done |
| 272 elif [ -f "$prefix/share/config.site" ]; then |
362 elif [ -f "$prefix/share/config.site" ]; then |
| 273 printf "loading site defaults... " |
363 printf "loading site defaults... " |
| 274 . "$prefix/share/config.site" |
364 . "$prefix/share/config.site" |
| 275 echo ok |
365 echo ok |
| |
366 CONFIG_SITE_OK=1 |
| 276 elif [ -f "$prefix/etc/config.site" ]; then |
367 elif [ -f "$prefix/etc/config.site" ]; then |
| 277 printf "loading site defaults... " |
368 printf "loading site defaults... " |
| 278 . "$prefix/etc/config.site" |
369 . "$prefix/etc/config.site" |
| 279 echo ok |
370 echo ok |
| 280 else |
371 CONFIG_SITE_OK=1 |
| |
372 fi |
| |
373 |
| |
374 if [ $CONFIG_SITE_OK -eq 0 ]; then |
| 281 # try to detect the correct libdir on our own, except it was changed by the user |
375 # try to detect the correct libdir on our own, except it was changed by the user |
| 282 if test "$libdir" = '${exec_prefix}/lib'; then |
376 if [ "$libdir" = '${exec_prefix}/lib' ] ; then |
| 283 if [ "$OS" = "SunOS" ]; then |
377 if [ "$TOOLCHAIN_WSIZE" = "64" ] ; then |
| 284 test -d "${exec_prefix}/lib/amd64" && libdir='${exec_prefix}/lib/amd64' |
378 if [ "$OS" = "SunOS" ]; then |
| 285 else |
379 [ -d "${exec_prefix}/lib/64" ] && libdir='${exec_prefix}/lib/64' |
| 286 # check if the standard libdir even exists |
|
| 287 if test -d "${exec_prefix}/lib" ; then |
|
| 288 : |
|
| 289 else |
380 else |
| 290 # if it does not, maybe a lib32 exists |
381 [ -d "${exec_prefix}/lib64" ] && libdir='${exec_prefix}/lib64' |
| 291 test -d "${exec_prefix}/lib32" && libdir='${exec_prefix}/lib32' |
|
| 292 fi |
382 fi |
| 293 # now check if there is a special 64bit libdir that we should use |
383 elif [ "$TOOLCHAIN_WSIZE" = "32" ] ; then |
| 294 for i in x86_64 ppc64 s390x aarch64 aarch64_be arm64 ; do |
384 if [ "$OS" = "SunOS" ]; then |
| 295 if [ $ARCH = $i ]; then |
385 [ -d "${exec_prefix}/lib/32" ] && libdir='${exec_prefix}/lib/32' |
| 296 test -d "${exec_prefix}/lib64" && libdir='${exec_prefix}/lib64' |
386 else |
| 297 break |
387 [ -d "${exec_prefix}/lib32" ] && libdir='${exec_prefix}/lib32' |
| 298 fi |
388 fi |
| 299 done |
|
| 300 fi |
389 fi |
| 301 fi |
390 fi |
| 302 fi |
391 fi |
| 303 |
392 |
| 304 |
393 |
| 305 # generate vars.mk |
394 # generate vars.mk |
| 306 cat > "$TEMP_DIR/vars.mk" << __EOF__ |
395 cat > "$TEMP_DIR/vars.mk" << __EOF__ |
| 307 prefix=$prefix |
396 prefix=$prefix |
| 308 exec_prefix=$exec_prefix |
397 exec_prefix=$exec_prefix |
| 309 bindir=$bindir |
|
| 310 sbindir=$sbindir |
|
| 311 libdir=$libdir |
398 libdir=$libdir |
| 312 libexecdir=$libexecdir |
|
| 313 datarootdir=$datarootdir |
|
| 314 datadir=$datadir |
|
| 315 sysconfdir=$sysconfdir |
|
| 316 sharedstatedir=$sharedstatedir |
|
| 317 localstatedir=$localstatedir |
|
| 318 runstatedir=$runstatedir |
|
| 319 includedir=$includedir |
399 includedir=$includedir |
| 320 infodir=$infodir |
400 VERSION=$VERSION |
| 321 mandir=$mandir |
401 LIBVERSION=$LIBVERSION |
| 322 localedir=$localedir |
402 LIBVERSION_MAJOR=$LIBVERSION_MAJOR |
| 323 __EOF__ |
403 root_dir=$root_dir |
| 324 |
404 build_dir=$build_dir |
| 325 # toolchain detection utilities |
405 docs_dir=$docs_dir |
| 326 . make/toolchain.sh |
406 dist_dir=$dist_dir |
| |
407 DOXYGEN=$DOXYGEN |
| |
408 MKDIR=$MKDIR |
| |
409 RMFILE=$RMFILE |
| |
410 RMDIR=$RMDIR |
| |
411 COPYFILE=$COPYFILE |
| |
412 COPYALL=$COPYALL |
| |
413 SYMLINK=$SYMLINK |
| |
414 pkgconfigdir=$pkgconfigdir |
| |
415 __EOF__ |
| |
416 |
| 327 |
417 |
| 328 # |
418 # |
| 329 # DEPENDENCIES |
419 # DEPENDENCIES |
| 330 # |
420 # |
| 331 |
421 |
| 332 # check languages |
422 |
| 333 lang_c= |
|
| 334 lang_cpp= |
|
| 335 if detect_cpp_compiler ; then |
|
| 336 lang_cpp=1 |
|
| 337 fi |
|
| 338 if detect_c_compiler ; then |
|
| 339 lang_c=1 |
|
| 340 fi |
|
| 341 |
423 |
| 342 # create buffer for make variables required by dependencies |
424 # create buffer for make variables required by dependencies |
| 343 echo > "$TEMP_DIR/make.mk" |
425 echo > "$TEMP_DIR/make.mk" |
| 344 |
426 |
| 345 test_pkg_config() |
427 test_pkg_config() |
| 856 fi |
896 fi |
| 857 if [ -n "$TOOLCHAIN_CSTD" ]; then |
897 if [ -n "$TOOLCHAIN_CSTD" ]; then |
| 858 echo " default C std: $TOOLCHAIN_CSTD" |
898 echo " default C std: $TOOLCHAIN_CSTD" |
| 859 fi |
899 fi |
| 860 echo |
900 echo |
| 861 echo "Build Config:" |
901 echo "Config:" |
| 862 echo " prefix: $prefix" |
902 printf ' %-16s' 'prefix:' |
| 863 echo " exec_prefix: $exec_prefix" |
903 echo "$prefix" |
| 864 if [ "$orig_bindir" != "$bindir" ]; then |
904 printf ' %-16s' 'exec-prefix:' |
| 865 echo " bindir: $bindir" |
905 echo "$exec_prefix" |
| 866 fi |
906 printf ' %-16s' 'libdir:' |
| 867 if [ "$orig_sbindir" != "$sbindir" ]; then |
907 echo "$libdir" |
| 868 echo " sbindir: $sbindir" |
908 printf ' %-16s' 'includedir:' |
| 869 fi |
909 echo "$includedir" |
| 870 if [ "$orig_libdir" != "$libdir" ]; then |
910 printf ' %-16s' 'doxygen:' |
| 871 echo " libdir: $libdir" |
911 echo "$DOXYGEN" |
| 872 fi |
|
| 873 if [ "$orig_libexecdir" != "$libexecdir" ]; then |
|
| 874 echo " libexecdir: $libexecdir" |
|
| 875 fi |
|
| 876 if [ "$orig_datarootdir" != "$datarootdir" ]; then |
|
| 877 echo " datarootdir: $datarootdir" |
|
| 878 fi |
|
| 879 if [ "$orig_datadir" != "$datadir" ]; then |
|
| 880 echo " datadir: $datadir" |
|
| 881 fi |
|
| 882 if [ "$orig_sysconfdir" != "$sysconfdir" ]; then |
|
| 883 echo " sysconfdir: $sysconfdir" |
|
| 884 fi |
|
| 885 if [ "$orig_sharedstatedir" != "$sharedstatedir" ]; then |
|
| 886 echo " sharedstatedir: $sharedstatedir" |
|
| 887 fi |
|
| 888 if [ "$orig_localstatedir" != "$localstatedir" ]; then |
|
| 889 echo " localstatedir: $localstatedir" |
|
| 890 fi |
|
| 891 if [ "$orig_runstatedir" != "$runstatedir" ]; then |
|
| 892 echo " runstatedir: $runstatedir" |
|
| 893 fi |
|
| 894 if [ "$orig_includedir" != "$includedir" ]; then |
|
| 895 echo " includedir: $includedir" |
|
| 896 fi |
|
| 897 if [ "$orig_infodir" != "$infodir" ]; then |
|
| 898 echo " infodir: $infodir" |
|
| 899 fi |
|
| 900 if [ "$orig_mandir" != "$mandir" ]; then |
|
| 901 echo " mandir: $mandir" |
|
| 902 fi |
|
| 903 if [ "$orig_localedir" != "$localedir" ]; then |
|
| 904 echo " localedir: $localedir" |
|
| 905 fi |
|
| 906 echo |
912 echo |
| 907 echo "Features:" |
913 echo "Features:" |
| |
914 printf ' %-16s' 'api-docs:' |
| 908 if [ -n "$FEATURE_API_DOCS" ]; then |
915 if [ -n "$FEATURE_API_DOCS" ]; then |
| 909 echo " api-docs: on" |
916 echo 'on' |
| 910 else |
917 else |
| 911 echo " api-docs: off" |
918 echo 'off' |
| 912 fi |
919 fi |
| |
920 printf ' %-16s' 'coverage:' |
| 913 if [ -n "$FEATURE_COVERAGE" ]; then |
921 if [ -n "$FEATURE_COVERAGE" ]; then |
| 914 echo " coverage: on" |
922 echo 'on' |
| 915 else |
923 else |
| 916 echo " coverage: off" |
924 echo 'off' |
| 917 fi |
925 fi |
| |
926 printf ' %-16s' 'asan:' |
| 918 if [ -n "$FEATURE_ASAN" ]; then |
927 if [ -n "$FEATURE_ASAN" ]; then |
| 919 echo " asan: on" |
928 echo 'on' |
| 920 else |
929 else |
| 921 echo " asan: off" |
930 echo 'off' |
| 922 fi |
931 fi |
| |
932 printf ' %-16s' 'memrchr:' |
| 923 if [ -n "$FEATURE_MEMRCHR" ]; then |
933 if [ -n "$FEATURE_MEMRCHR" ]; then |
| 924 echo " memrchr: on" |
934 echo 'on' |
| 925 else |
935 else |
| 926 echo " memrchr: off" |
936 echo 'off' |
| 927 fi |
937 fi |
| |
938 printf ' %-16s' 'cxx-tests:' |
| 928 if [ -n "$FEATURE_CXX_TESTS" ]; then |
939 if [ -n "$FEATURE_CXX_TESTS" ]; then |
| 929 echo " cxx-tests: on" |
940 echo 'on' |
| 930 else |
941 else |
| 931 echo " cxx-tests: off" |
942 echo 'off' |
| 932 fi |
943 fi |
| |
944 printf ' %-16s' 'szmul-builtin:' |
| 933 if [ -n "$FEATURE_SZMUL_BUILTIN" ]; then |
945 if [ -n "$FEATURE_SZMUL_BUILTIN" ]; then |
| 934 echo " szmul-builtin: on" |
946 echo 'on' |
| 935 else |
947 else |
| 936 echo " szmul-builtin: off" |
948 echo 'off' |
| 937 fi |
949 fi |
| 938 echo |
950 echo |
| 939 |
951 |
| 940 # generate the config.mk file |
952 # generate the config.mk file |
| 941 pwd=`pwd` |
953 pwd=`pwd` |