-
Notifications
You must be signed in to change notification settings - Fork 103
/
configure.ac
761 lines (621 loc) · 17.2 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
AC_INIT([CVD],[2.1])
AC_COPYRIGHT(Copyright foo)
m4_include([m4/ax_cxx_compile_stdcxx.m4])
AC_CONFIG_HEADERS
AC_PROG_AWK
AC_PROG_CXX
AX_CXX_COMPILE_STDCXX(17)
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_RANLIB
AC_LANG(C++)
AC_REQUIRE_CPP
cvd_major=`echo $PACKAGE_VERSION | $AWK -F'\\\\.' '{print $1}'`
cvd_minor=`echo $PACKAGE_VERSION | $AWK -F'\\\\.' '{print $2}'`
AC_DEFINE_UNQUOTED(CVD_MAJOR_VERSION,$cvd_major)
AC_SUBST(major, $cvd_major)
AC_DEFINE_UNQUOTED(CVD_MINOR_VERSION,$cvd_minor)
AC_SUBST(minor, $cvd_minor)
################################################################################
#
#Lists of optional components
#
all_options="videodisplay jpeg tiff png ffmpeg toon assembler inline_asm libuvc"
dodginess_options=
options=
simd_all_options=
simd_options=
os_all_options=
################################################################################
#
# Useful macros
#
dnl APPEND(var, value)
dnl This appends vale to a shell variable var
define(APPEND, [$1="$$1 $2"])
dnl TEST_AND_SET_CXXFLAG(flag, [program])
dnl
dnl This attempts to compile a and run program with a certain compiler flag.
dnl If no program is given, then the minimal C++ program is compiled, and
dnl this tests just the validity of the compiler flag.
dnl
define([TEST_AND_SET_CXXFLAG],[
if test "$3" == ""
then
AC_MSG_CHECKING([if compiler flag $1 works])
else
AC_MSG_CHECKING([$3])
fi
save_CXXFLAGS="$CXXFLAGS"
APPEND(CXXFLAGS, [$1])
m4_if([$2],[],[pushdef(prog, [int main(){}])], [pushdef(prog, [$2])])
AC_COMPILE_IFELSE([AC_LANG_SOURCE([prog])], [cvd_conf_test=1],[cvd_conf_test=0])
popdef([prog])
if test $cvd_conf_test = 1
then
AC_MSG_RESULT(yes)
ts_success=yes
else
AC_MSG_RESULT(no)
CXXFLAGS="$save_CXXFLAGS"
ts_success=no
fi
])
dnl CHECK_FOR_OPTION(option, code, [success], [fail])
dnl option corresponds to the first parameter for the corresponding
dnl AC_ARG_WITH. If the library is present, then have_option and CVD_HAVE_OPTION
dnl are set. If with_option is "", it will be set to yes.
dnl
dnl The test code shall do nothing on success, and set the shell variable a
dnl on failure. For convenience, LIBS and CXXFLAGS are checkpointed
dnl automatically. On failure, they are restored automatically.
dnl
dnl On success, "option" is appended to options, and the code "success" is run
dnl On failure including --without) fail is run.
define(CHECK_FOR_OPTION,[
if test "$with_$1" != no && test "$have_$1" != yes
then
if test "$with_$1" == ""
then
with_$1=yes
fi
save_LIBS="$LIBS"
save_CXXFLAGS="$CXXFLAGS"
a=
$2
if test x$a == x
then
AC_DEFINE(CVD_HAVE_[]m4_toupper($1), 1)
AC_SUBST(have_$1, yes)
APPEND(options, $1)
$3
else
LIBS="$save_LIBS"
CXXFLAGS="$save_CXXFLAGS"
fi
fi
if test "$have_$1" != yes
then
:
$4
fi
])
dnl SIMD_TEST(name, flag, code)
dnl This tests for SIMD code (with name), using the compiler flag "flag"
dnl and the provided test code. It respects with_simd and with_name
dnl
dnl On success, "name" is appended to simd_options
define(SIMD_TEST, [
if test "$with_simd" != no
then
if test "$with_[]m4_tolower($1)" == "yes"
then
have_[]m4_tolower($1)=yes
elif test "$with_[]m4_tolower($1)" != "no"
then
TEST_AND_SET_CXXFLAG([$2], [$3], [for $1 support])
have_[]m4_tolower($1)="$ts_success"
fi
if test "$have_[]m4_tolower($1)" == yes
then
AC_DEFINE(CVD_HAVE_$1, 1)
AC_SUBST(have_[]m4_tolower($1), yes)
APPEND(simd_options, m4_tolower($1))
fi
fi])
#Host detection
AC_CANONICAL_HOST
################################################################################
#
# Compiler flags and optimization
#
#
TEST_AND_SET_CXXFLAG(-Wall)
TEST_AND_SET_CXXFLAG(-Wextra)
TEST_AND_SET_CXXFLAG(-Wconversion)
TEST_AND_SET_CXXFLAG(-pipe)
#Hack: do this properly
AC_CHECK_LIB(pthread, main,[],[a=1])
########################################
#
# Always use ggdb if possible
#
AC_ARG_ENABLE(ggdb, [ --disable-ggdb do not use ggdb flag])
if test "$enable_ggdb" != no
then
TEST_AND_SET_CXXFLAG(-ggdb)
fi
AC_ARG_ENABLE(shared, [ --disable-ggdb disable shared library support])
if test "$enable_shared" != no
then
AC_SUBST(have_shared,yes)
fi
########################################
#
# Position independent code
#
# MinGW is always PIC
if ! echo $host | grep mingw && test "$host_os" != "cygwin"
then
TEST_AND_SET_CXXFLAG(-fPIC)
if test $ts_success == no
then
AC_MSG_WARN(["I don't know how to compile position independent code."])
fi
fi
################################################################################
#
# Processor/Platform specific parts
#
echo
echo ------------------------------------
echo Checking processor specific features
echo ------------------------------------
echo
AC_C_BIGENDIAN
if test x$ac_cv_c_bigendian = xno
then
AC_DEFINE(CVD_INTERNAL_ARCH_LITTLE_ENDIAN)
else
AC_DEFINE(CVD_INTERNAL_ARCH_BIG_ENDIAN)
fi
AC_ARG_WITH(simd, [ --without-simd disable SIMD code. Use --without- or --with-
to force presence/absence and disable autodetection.])
AC_ARG_WITH(mmx, [ --with-mmx force presence or absence of MMX (x86 only)])
AC_ARG_WITH(mmxext, [ --with-mmxext force presence or absence of MMXEXT (x86 only) ])
AC_ARG_WITH(sse, [ --with-sse force presence or absence of SSE (x86 only)])
AC_ARG_WITH(sse2, [ --with-sse2 force presence or absence of SSE2 (x86 only)])
AC_ARG_WITH(assembler, [ --with-assembler force presence or absence of asm])
AC_ARG_WITH(inline_asm, [ --with-inline_asm force presence or absence of inline asm])
case "$host" in
*86*)
AC_SUBST(have_x86, yes)
simd_all_options="mmx mmxext sse sse2 sse3"
SIMD_TEST(MMX, -mmmx, [
#include <mmintrin.h>
int main()
{
__m64 a;
a = _mm_setzero_si64();
a = _mm_and_si64(a, a);
return 0;
}], [for MMX support])
SIMD_TEST(MMXEXT, -msse,[
#include <xmmintrin.h>
int main()
{
__m64 a;
a = _mm_setzero_si64();
a = _mm_shuffle_pi16(a, 0);
return 0;}], [for MMXEXT support])
SIMD_TEST(SSE, -msse, [
#include <xmmintrin.h>
int main()
{
__m128 a;
a = _mm_setzero_ps();
a = _mm_add_ps(a, a);
return 0;
}], [for SSE spport])
SIMD_TEST(SSE2, -msse2, [
#include <emmintrin.h>
int main()
{
__m128d a;
a = _mm_setzero_pd();
a = _mm_add_pd(a, a);
return 0;
}], [for SSE2 support])
SIMD_TEST(SSE3, -msse3, [
#include <pmmintrin.h>
int main()
{
__m128 a;
a = _mm_setzero_ps();
a = _mm_hadd_ps(a, a);
return 0;
}], [for SSE3 support])
;;
esac
AC_CHECK_SIZEOF([void*])
if test "$ac_cv_sizeof_voidp" == 4
then
AC_SUBST(have_32bit,yes)
fi
CHECK_FOR_OPTION(inline_asm, [
AC_MSG_CHECKING([for inline asm statement])
AC_COMPILE_IFELSE([AC_LANG_SOURCE([int main() { asm(""); }])],
[AC_MSG_RESULT(yes)],
[AC_MSG_RESULT(no);a=1])
])
CHECK_FOR_OPTION(assembler, [
AC_MSG_CHECKING([assembler supports .type pseudo-op])
AS_IF([echo '.globl test
.type test, @function' | as &> /dev/null],
[AC_MSG_RESULT(yes)],
[AC_MSG_RESULT(no);a=1])
])
################################################################################
#
# Operating system specific parts
#
########################################
#
# An OSX specific hack to get at stuff in /sw automatically
#
echo
echo -----------------------------------------------
echo Checking for operating system specific features
echo -----------------------------------------------
AC_ARG_WITH(dc1394v2, [ --without-dc1394v2 do not use libDC1394v2 (required for dvbuffer3) (Linux/OSX). ])
AC_ARG_WITH(v4l2buffer,[ --without-v4l2buffer compile without v4l2buffer (Video4Linux2) support (Linux only)])
if test "$host_vendor" == apple
then
APPEND(CPPFLAGS, [-I/usr/X11R6/include])
AC_MSG_NOTICE([Adding /usr/X11R6/include to the build path.])
AC_SUBST(osx_hacks,yes)
os_all_options="dc1394v2"
fi
CHECK_FOR_OPTION(dc1394v2, [
AC_CHECK_HEADERS(dc1394/dc1394.h, [], [a=1])
AC_CHECK_LIB(dc1394, main,[],[a=1])
])
case "$host" in
*linux*)
os_all_options="dc1394v2 v4l2buffer"
CHECK_FOR_OPTION(v4l2buffer,[
AC_MSG_CHECKING(for v4l2)
AC_COMPILE_IFELSE([AC_LANG_SOURCE([ #include <sys/types.h>
#include <linux/types.h>
#include <linux/videodev2.h>
int main(){V4L2_PIX_FMT_GREY;return 0;}])],
[AC_MSG_RESULT(yes)],
[AC_MSG_RESULT(no); a=1])
])
;;
*windows*)
AC_SUBST(have_windows, yes)
;;
*cygwin*)
AC_SUBST(cygwin_hacks,yes)
;;
esac
################################################################################
#
#Check for optional libraries
#
echo
echo -------------------------------
echo Checking for optional libraries
echo -------------------------------
AC_ARG_WITH(videodisplay, [ --without-videodisplay compile without videodisplay support])
AC_ARG_WITH(jpeg, [ --without-jpeg compile without JPEG support])
AC_ARG_WITH(jpegbuffer, [ --with-jpegbuffer=N Set JPEG read buffer size. N>1 will not be able to read multiple JPEGS from a stream.])
AC_ARG_WITH(tiff, [ --without-tiff compile without TIFF support])
AC_ARG_WITH(png, [ --without-png compile without PNG support])
AC_ARG_WITH(ffmpeg, [ --without-ffmpeg compile without FFMPEG support.])
AC_ARG_WITH(toon, [ --without-toon Compile without TooN support])
CHECK_FOR_OPTION(videodisplay,[
if test "$host_vendor" == apple
then
APPEND(LIBS, [ -framework OpenGL ])
fi
AC_PATH_X
if test x"$x_includes" != x
then
APPEND(CXXFLAGS, -I$x_includes)
fi
if test "$x_libraries" != ""
then
APPEND(LIBS, [-L$x_libraries])
fi
APPEND(LIBS, [-lX11 -lXext])
AC_CHECK_LIB(GL,glDrawPixels, [], [a=1])
AC_CHECK_HEADERS(GL/glu.h, [], [a=1])
AC_CHECK_LIB(GLU,gluGetString, [], [a=1])
])
CHECK_FOR_OPTION(toon, [
AC_MSG_CHECKING([for TooN])
AC_COMPILE_IFELSE([AC_LANG_SOURCE([#include <TooN/TooN.h>
int main(){TooN::Vector<2, double> v=TooN::Zeros;return 0;}])], [AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no); a=1])
])
CHECK_FOR_OPTION(libuvc, [
AC_CHECK_HEADERS(libuvc/libuvc.h, [], [a=1])
AC_CHECK_LIB(uvc, uvc_stream_get_frame, [], [a=1])
])
CHECK_FOR_OPTION(png, [
AC_CHECK_HEADERS(png.h, [], [a=1])
AC_CHECK_LIB(png, png_init_io, [], [a=1])
])
CHECK_FOR_OPTION(jpeg, [
AC_CHECK_HEADERS(jpeglib.h, [], [a=1])
AC_CHECK_LIB(jpeg, jpeg_destroy_decompress, [], [a=1])
],[
AC_MSG_CHECKING([JPEG read buffer size])
jpegbuffersize="`echo $with_jpegbuffer | awk '$1 = ($1+0<= 0)?1:$1'`"
if test "$jpegbuffersize" -gt 1
then
AC_MSG_RESULT([$jpegbuffersize (unsafe reading)]);
APPEND(dodginess_options, unsafe_jpeg)
else
jpegbuffersize=1
AC_MSG_RESULT([1 (safe reading)]);
fi
AC_DEFINE_UNQUOTED(CVD_INTERNAL_JPEG_BUFFER_SIZE, $jpegbuffersize)
])
CHECK_FOR_OPTION(tiff, [
AC_CHECK_HEADERS(tiffio.h,[],[a=1])
AC_CHECK_LIB(tiff, TIFFReadRGBAImage,[],[a=1])
])
CHECK_FOR_OPTION(ffmpeg, [
AC_MSG_CHECKING([for ffmpeg headers])
AC_CHECK_LIB(avutil, main, [], [a=1])
AC_CHECK_LIB(avformat, avformat_open_input, [], [a=1])
AC_CHECK_LIB(avformat, av_read_frame, [ffmpeg_recent=yes], [a=1]) #only in >= 0.4.9
AC_CHECK_LIB(avcodec, avcodec_open2, [], [a=1])
AC_CHECK_LIB(swscale, sws_getContext, [], [a=1])
AC_CHECK_LIB(avdevice, avdevice_register_all, [], [a=1])
])
AC_CHECK_PROG(docs, doxygen, docs, no)
################################################################################
#
# platform compatibility
# All of these ought to be yes
echo
echo -----------------------------------
echo Checking for platform compatibility
echo -----------------------------------
a=
AC_CHECK_DECL(feenableexcept, [a=1], [a= ], [#include <fenv.h>])
if test x$a = x1
then
AC_DEFINE(CVD_HAVE_FENV_H)
else
dodginess_options="$dodginess_options missing_c99_feenableexcept"
fi
################################################################################
#
# Extra build options
echo
echo --------------------------------
echo Checking for extra build options
echo --------------------------------
AC_ARG_ENABLE(fast, [ --disable-fast compile without the FAST-9,10,12 detectors (use on low memory systems). ])
AC_ARG_ENABLE(fastobscure, [ --disable-obscure compile without the FAST-7,8,11 detectors (use on low memory systems). ])
test "$enable_fast" != no && AC_SUBST(have_fast, yes)
test "$enable_fastobscure" != no && test "$enable_fast" != no && AC_SUBST(have_fastobscure, yes)
################################################################################
#
# Compute dependencies
#
define(DEPOBJ, [APPEND(dep_objects, cvd_src/$1.o)])
#Obviously this doesn't do Windows.
#
# For Windows, you want the stuff in the Win32 directory
# and not videodisplay and globlist
################################################################################
#
# Architecture specific dependencies
#
DEPOBJ(noarch/convert_rgb_to_y)
#SIMD dependencies
#i686/yuv411_to_stuff_MMX inline_asm mmxext 32bit x86
#i686/yuv411_to_stuff_MMX_64 inline_asm mmxext x86
#yuv411_to_stuff END
if test "$have_sse2" == yes
then
DEPOBJ(SSE2/half_sample)
DEPOBJ(SSE2/gradient)
DEPOBJ(SSE2/median_3x3)
DEPOBJ(SSE2/two_thirds_sample)
DEPOBJ(SSE2/utility_double_int)
else
DEPOBJ(noarch/half_sample)
DEPOBJ(noarch/gradient)
DEPOBJ(noarch/median_3x3)
DEPOBJ(noarch/two_thirds_sample)
DEPOBJ(noarch/utility_double_int)
fi
if test "$have_sse" == yes
then
DEPOBJ(SSE/convolve_gaussian)
DEPOBJ(SSE/utility_float)
else
DEPOBJ(noarch/convolve_gaussian)
DEPOBJ(noarch/utility_float)
fi
if test "$have_sse" == yes
then
DEPOBJ(MMX/utility_byte_differences)
else
DEPOBJ(noarch/utility_byte_differences)
fi
if test "$have_fast" == yes
then
if test "$have_sse2" == yes
then
DEPOBJ(SSE2/faster_corner_9)
DEPOBJ(SSE2/faster_corner_10)
DEPOBJ(SSE2/faster_corner_12)
else
DEPOBJ(noarch/slower_corner_9)
DEPOBJ(noarch/slower_corner_10)
DEPOBJ(noarch/slower_corner_12)
fi
DEPOBJ(fast/fast_9_detect)
DEPOBJ(fast/fast_9_score)
DEPOBJ(fast/fast_corner_9_nonmax)
DEPOBJ(fast/fast_10_detect)
DEPOBJ(fast/fast_10_score)
DEPOBJ(fast/fast_12_detect)
DEPOBJ(fast/fast_12_score)
fi
if test "$have_fastobscure" == yes
then
DEPOBJ(fast/fast_7_detect)
DEPOBJ(fast/fast_7_score)
DEPOBJ(fast/slower_corner_7)
DEPOBJ(fast/fast_8_detect)
DEPOBJ(fast/fast_8_score)
DEPOBJ(fast/slower_corner_8)
DEPOBJ(fast/fast_11_detect)
DEPOBJ(fast/fast_11_score)
DEPOBJ(fast/slower_corner_11)
fi
################################################################################
#
# Video grabber dependencies
#
if test "$have_dc1394v2" == yes
then
DEPOBJ(Linux/dvbuffer3_dc1394v2)
DEPOBJ(videosource_dvbuffer)
else
DEPOBJ(videosource_nodvbuffer)
fi
if test "$have_v4l2buffer" == yes
then
DEPOBJ(Linux/v4lbuffer)
DEPOBJ(Linux/videosource_v4lbuffer)
DEPOBJ(Linux/v4lcontrol)
else
DEPOBJ(Linux/videosource_nov4lbuffer)
fi
if test "$have_libuvc" == yes
then
DEPOBJ(uvcbuffer)
DEPOBJ(videosource_uvcbuffer)
else
DEPOBJ(videosource_nouvcbuffer)
fi
if test "$have_ffmpeg" == yes
then
DEPOBJ(videofilebuffer2)
DEPOBJ(videofilebuffer_exceptions)
DEPOBJ(videosource_videofilebuffer)
DEPOBJ(videoffmpeg)
DEPOBJ(videoreader)
DEPOBJ(videoreaderfilebuffer)
DEPOBJ(videoscaler)
DEPOBJ(videowriter)
else
DEPOBJ(videosource_novideofilebuffer)
fi
################################################################################
#
# Other library dependencies
#
if test "$have_toon" == yes
then
DEPOBJ(tensor_voting)
DEPOBJ(brezenham)
DEPOBJ(draw_toon)
DEPOBJ(quartic)
DEPOBJ(threepointpose)
fi
if test "$have_jpeg" == yes
then
DEPOBJ(image_io/jpeg)
else
DEPOBJ(image_io/missing_jpeg)
fi
if test "$have_tiff" == yes
then
DEPOBJ(image_io/tiff)
DEPOBJ(image_io/tiffwrite)
else
DEPOBJ(image_io/missing_tiff)
fi
if test "$have_png" == yes
then
DEPOBJ(image_io/png)
else
DEPOBJ(image_io/missing_png)
fi
if test "$have_videodisplay"
then
DEPOBJ(videodisplay)
DEPOBJ(glwindow)
DEPOBJ(gltext)
fi
AC_SUBST(dep_objects, [$dep_objects])
################################################################################
#
# Program dependencies
#
define(DEPPROG, [APPEND(progs, $1)])
if test "$have_toon$have_lapack" == yesyes
then
DEPPROG(progs/se3_exp)
DEPPROG(progs/se3_ln)
DEPPROG(progs/se3_pre_mul)
DEPPROG(progs/se3_post_mul)
DEPPROG(progs/se3_inv)
fi
if test "$have_videodisplay" == yes
then
DEPPROG(progs/cvd_display_image)
DEPPROG(progs/video_play_source)
if test "$have_toon" == yes
then
DEPPROG(progs/calibrate)
fi
fi
AC_SUBST(progs, [$progs])
################################################################################
#
# Program dependencies
#
define(DEPTEST, [APPEND(testprogs, $1)])
if test "$have_ffmpeg" == yes
then
DEPTEST(videoreader_test)
DEPTEST(videowriter_test)
fi
AC_SUBST(testprogs, [$testprogs])
echo
echo
echo Options:
echo $options $os_options
echo
echo Missing options for $host_os:
echo $options $all_options $os_all_options | tr ' ' '\n' | sort | uniq -u | xargs echo
echo
echo Dodgy things:
echo $dodginess_options
echo
echo
echo SIMD support:
echo $simd_options
echo
echo Missing SIMD support for $host:
echo $simd_all_options $simd_options | tr ' ' '\n' | sort | uniq -u | xargs echo
echo
AC_SUBST(CXXFLAGS, $CXXFLAGS)
AC_SUBST(OFLAGS, $OFLAGS)
echo $CXXFLAGS
echo $CPPFLAGS
echo $LIBS
AC_CONFIG_HEADERS([cvd/config.h cvd_src/config_internal.h])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT