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
|
# Filnavn: configure.in
AC_INIT(src/miav.cc)
AM_INIT_AUTOMAKE( miav, 0.1.1 )
AC_PROG_CXX
AC_PROG_LIBTOOL
AM_PROG_LIBTOOL
AM_CONFIG_HEADER(config.h)
AM_CXXFLAGS="-O2"
AC_STDC_HEADERS
AC_ARG_WITH(gui, [ --without-gui build without GUI support])
if test x$with_gui != xno && test -z "$GUI"; then
#dnl ====================
#dnl Check for Qt library
#dnl ====================
#AC_ARG_WITH(qt, [ --with-qt build with Qt utils. (autodetected)],
# [], with_qt=yes)
#dnl no X means no Qt
#test x$have_x != xyes && with_qt=no
#
#if test x$with_qt = xyes ; then
# AC_PATH_QT(200, test -z "$qt_version" && qt_version=0
# AC_DEFINE_UNQUOTED(HAVE_LIBQT, $qt_version, [Define if using 'Qt' libraries.]),
# with_qt=no)
#else
# AC_MSG_RESULT([compilation of Qt utils disabled])
#fi
#
#if test x$with_qt = xyes ; then
# AC_LANG_SAVE
# AC_LANG_CPLUSPLUS
# save_CXXFLAGS=$CXXFLAGS
# save_LIBS=$LIBS
# CXXFLAGS="$CXXFLAGS $QT_CFLAGS $X_CFLAGS"
# LIBS="$LIBS $QT_LIBS $X_LIBS $PTHREAD_LIBS"
# AC_CACHE_CHECK([for multithreading support in Qt],
# ac_cv_val_with_qt_multi,
# [ AC_TRY_LINK([
# #define QT_THREAD_SUPPORT
# #include <qapplication.h> ],
# [ qApp->wakeUpGuiThread(); ],
# [ ac_cv_val_with_qt_multi=yes ],
# [ ac_cv_val_with_qt_multi=no ])
# ])
# CXXFLAGS=$save_CXXFLAGS
# LIBS=$save_LIBS
#
# if test x$ac_cv_val_with_qt_multi != xyes ; then
# AC_MSG_WARN([
#*** Your Qt installation does not support multi-threading!
#*** Avifile will be compiled - however it might crash mysteriously
#*** Instalation of threaded Qt library version (qt-mt) is recommended
#*** When rebuilding Qt use configure option '-thread'.])
# fi
#
# AC_MSG_CHECKING(Qt version for Avicap)
# if test $qt_version -ge 220 ; then
# AC_MSG_RESULT([yes])
# else
# AC_MSG_RESULT([no (needs Qt 2.2.0 or better)])
# build_avicap=no
# fi
# AC_LANG_RESTORE
#fi
dnl ======================
dnl Check for Jpeg library
dnl ======================
AC_CHECK_HEADER(jpeglib.h, have_jpeglib=yes, have_jpeglib="no ")
if test x$have_jpeglib = xyes; then
dnl default action left - saving $LIBS is necessary
save_LIBS=$LIBS
AC_CHECK_LIB(jpeg, jpeg_start_compress, , have_jpeglib="no ")
LIBS=$save_LIBS
fi
#dnl =====================
#dnl Check for SDL library
#dnl =====================
#AC_ARG_WITH(sdl, [ --with-sdl build with SDL. (autodetected)],
# [], with_sdl=yes)
#
#if test x$with_sdl != xyes; then
# with_sdl="no (video rendering unavailable as requested!)"
# AC_MSG_WARN([
#*** there will be NO video rendering without SDL support!])
#else
# SDL_MIN_VERSION=1.0.0
# save_CFLAGS=$CFLAGS
# save_CPPFLAGS=$CPPFLAGS
# save_LIBS=$LD_FLAGS
# LIBS=
# AM_PATH_SDL($SDL_MIN_VERSION,
# AC_DEFINE(HAVE_LIBSDL, 1, [Define if using 'SDL' library (-lsdl).]),
# with_sdl="no (*** no SDL => no video rendering! ***)"
# AC_MSG_WARN([Could not find SDL >= $SDL_MIN_VERSION!]) )
# CFLAGS=$save_CFLAGS
# CXXFLAGS=$save_CPPFLAGS
# LDFLAGS="$save_LIBS
#fi
dnl QT lib check macro (located in acinclude.m4)
gw_CHECK_QT
dnl Check for SDL
SDL_VERSION=1.2.0
AM_PATH_SDL($SDL_VERSION,
:,
AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
)
CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
LDFLAGS="$LDFLAGS $SDL_LIBS"
dnl Make code aware of the gui
AC_DEFINE([USE_GUI], [], [Is defined if te project is configured to compile with gui])
fi
dnl =======================
dnl Configure ffmpeg plugin
dnl =======================
#AM_PATH_FFMPEG
#LD_FLAGS=$LD_FLAGS $LIBS
# And now for the conditionals (for ffmpeg)
#AM_CONDITIONAL(AMM_LINK_SHARED, test $lt_major_version -ge 1 -a $lt_minor_version -ge 4 -a $lt_micro_version -ge 3 )
#AM_CONDITIONAL(AMM_FF_A52BIN, test x$enable_ffmpeg_a52bin = xyes)
#AM_CONDITIONAL(AMM_FF_FAAD, test x$have_faad = xyes )
#AM_CONDITIONAL(AMM_FF_ALPHAOPT, test x$enable_alphaopt = xyes)
#AM_CONDITIONAL(AMM_FF_ARMOPT, test x$enable_armopt = xyes)
#AM_CONDITIONAL(AMM_FF_MIPSOPT, test x$enable_mipsopt = xyes)
#AM_CONDITIONAL(AMM_FF_MLIBOPT, test x$enable_mlibopt = xyes)
#AM_CONDITIONAL(AMM_FF_PPCOPT, test x$enable_ppcopt = xyes)
#AM_CONDITIONAL(AMM_FF_PS2OPT, test x$enable_ps2opt = xyes)
#AM_CONDITIONAL(AMM_FF_SH4OPT, test x$enable_sh4opt = xyes)
#AM_CONDITIONAL(AMM_FF_X86OPT, test x$enable_x86opt = xyes)
#AM_CONDITIONAL(AMM_USE_OSS, test x$enable_oss = xyes)
#AM_CONDITIONAL(AMM_USE_V4L, test x$enable_v4l = xyes )
AC_SUBST(CFLAGS)
AC_SUBST(CPPFLAGS)
AC_SUBST(CXXFLAGS)
AC_SUBST(LDFLAGS)
AC_OUTPUT(
Makefile
src/Makefile
tools/Makefile
pixmaps/Makefile)
# ffmpeg/Makefile
# ffmpeg/libavformat/Makefile
# ffmpeg/libavcodec/Makefile
# ffmpeg/libavcodec/alpha/Makefile
# ffmpeg/libavcodec/armv4l/Makefile
# ffmpeg/libavcodec/i386/Makefile
# ffmpeg/libavcodec/liba52/Makefile
# ffmpeg/libavcodec/libpostproc/Makefile
# ffmpeg/libavcodec/mlib/Makefile
# ffmpeg/libavcodec/ppc/Makefile
# ffmpeg/libavcodec/ps2/Makefile
# ffmpeg/libavcodec/sh4/Makefile
# )
|