[2058] | 1 | |
---|
[6227] | 2 | AC_INIT([Rappture],[1.7],[rappture@nanohub.org]) |
---|
[1081] | 3 | AC_CONFIG_AUX_DIR(cf) |
---|
[1403] | 4 | AC_CONFIG_HEADER(src/core/config.h) |
---|
[489] | 5 | |
---|
| 6 | #------------------------------------------------------------------------ |
---|
| 7 | # Handle the --prefix=... option |
---|
| 8 | #------------------------------------------------------------------------ |
---|
| 9 | |
---|
| 10 | if test "${prefix}" = "NONE"; then |
---|
| 11 | prefix=/usr/local |
---|
| 12 | fi |
---|
| 13 | if test "${exec_prefix}" = "NONE"; then |
---|
| 14 | exec_prefix=$prefix |
---|
| 15 | fi |
---|
| 16 | |
---|
[2095] | 17 | AC_ARG_WITH( |
---|
| 18 | [install], |
---|
| 19 | [AS_HELP_STRING([--with-install[=DIR]], |
---|
| 20 | [location of installation @<:@default=yes@:>@])], |
---|
| 21 | [], |
---|
| 22 | [with_install=yes]) |
---|
[2310] | 23 | |
---|
[2095] | 24 | if test "$with_install" != "yes"; then |
---|
| 25 | INSTALL_PREFIX=$with_install |
---|
| 26 | else |
---|
| 27 | INSTALL_PREFIX=$prefix |
---|
| 28 | fi |
---|
| 29 | |
---|
| 30 | |
---|
[708] | 31 | if test "${libdir}" != "${prefix}/lib"; then |
---|
[872] | 32 | LIB_SEARCH_DIRS="-L${prefix}/lib -L${libdir}" |
---|
[708] | 33 | else |
---|
[872] | 34 | LIB_SEARCH_DIRS="-L${libdir}" |
---|
[708] | 35 | fi |
---|
| 36 | |
---|
[718] | 37 | |
---|
[708] | 38 | AC_PROG_INSTALL |
---|
[1751] | 39 | AC_PROG_INSTALL |
---|
| 40 | AC_PROG_RANLIB |
---|
| 41 | AC_PROG_LN_S |
---|
| 42 | AC_PROG_MKDIR_P |
---|
[489] | 43 | AC_PROG_MAKE_SET |
---|
| 44 | |
---|
[5029] | 45 | # Check for C, C++, and FORTRAN |
---|
[489] | 46 | AC_PROG_CC |
---|
[1132] | 47 | AC_PROG_CXX |
---|
[5029] | 48 | # Avoid g95 |
---|
[1132] | 49 | AC_PROG_F77([g77 gfortran f77 fort77 f90 xlf xlf90 fl32]) |
---|
| 50 | |
---|
[1270] | 51 | AC_LANG([C]) |
---|
[1132] | 52 | |
---|
[489] | 53 | AC_HEADER_STDC |
---|
| 54 | AC_CHECK_FUNC(atol,,AC_MSG_ERROR(oops! no atol ?!?)) |
---|
| 55 | |
---|
[1270] | 56 | AC_LANG([C++]) |
---|
[489] | 57 | |
---|
[3717] | 58 | AC_CHECK_FUNCS(sysinfo) |
---|
| 59 | AC_CHECK_FUNCS(gettimeofday) |
---|
| 60 | AC_CHECK_FUNC(localtime,,AC_MSG_ERROR(oops! no localtime ?!?)) |
---|
| 61 | AC_CHECK_FUNC(getenv,,AC_MSG_ERROR(oops! no getenv ?!?)) |
---|
| 62 | |
---|
[1403] | 63 | AC_CHECK_HEADERS(sys/sysinfo.h) |
---|
| 64 | |
---|
[3032] | 65 | AC_CHECK_LIB(ncurses, clrtoeol,,AC_MSG_ERROR([ncurses library missing?])) |
---|
[2726] | 66 | AC_CHECK_HEADERS(ncurses.h,,AC_MSG_WARN(ncurses headers missing ?)) |
---|
| 67 | |
---|
[489] | 68 | AC_CHECK_LIB(stdc++, main,,AC_MSG_ERROR(librappture requires libstdc++)) |
---|
[1262] | 69 | AC_CHECK_HEADERS(algorithm,,AC_MSG_WARN(STL classes missing ?)) |
---|
| 70 | AC_CHECK_HEADERS(cctype,,AC_MSG_WARN(STL classes missing ?)) |
---|
| 71 | AC_CHECK_HEADERS(cfloat,,AC_MSG_WARN(STL classes missing ?)) |
---|
| 72 | AC_CHECK_HEADERS(cmath,,AC_MSG_WARN(STL classes missing ?)) |
---|
| 73 | AC_CHECK_HEADERS(cstdio,,AC_MSG_WARN(STL classes missing ?)) |
---|
| 74 | AC_CHECK_HEADERS(cstdlib,,AC_MSG_WARN(STL classes missing ?)) |
---|
| 75 | AC_CHECK_HEADERS(cstring,,AC_MSG_WARN(STL classes missing ?)) |
---|
| 76 | AC_CHECK_HEADERS(fstream,,AC_MSG_WARN(STL classes missing ?)) |
---|
| 77 | AC_CHECK_HEADERS(list,,AC_MSG_WARN(STL classes missing ?)) |
---|
| 78 | AC_CHECK_HEADERS(iostream,,AC_MSG_WARN(STL classes missing ?)) |
---|
| 79 | AC_CHECK_HEADERS(iterator,,AC_MSG_WARN(STL classes missing ?)) |
---|
| 80 | AC_CHECK_HEADERS(sstream,,AC_MSG_WARN(STL classes missing ?)) |
---|
[489] | 81 | AC_CHECK_HEADERS(stack,,AC_MSG_WARN(STL classes missing ?)) |
---|
| 82 | AC_CHECK_HEADERS(string,,AC_MSG_WARN(STL classes missing ?)) |
---|
| 83 | AC_CHECK_HEADERS(vector,,AC_MSG_WARN(STL classes missing ?)) |
---|
| 84 | |
---|
[1262] | 85 | AC_CHECK_HEADERS(assert.h,,AC_MSG_WARN(C headers missing ?)) |
---|
| 86 | AC_CHECK_HEADERS(ctype.h,,AC_MSG_WARN(C headers missing ?)) |
---|
| 87 | AC_CHECK_HEADERS(errno.h,,AC_MSG_WARN(C headers missing ?)) |
---|
| 88 | AC_CHECK_HEADERS(limits.h,,AC_MSG_WARN(C headers missing ?)) |
---|
| 89 | AC_CHECK_HEADERS(string.h,,AC_MSG_WARN(C headers missing ?)) |
---|
| 90 | AC_CHECK_HEADERS(stdlib.h,,AC_MSG_WARN(C headers missing ?)) |
---|
| 91 | AC_CHECK_HEADERS(stddef.h,,AC_MSG_WARN(C headers missing ?)) |
---|
| 92 | AC_CHECK_HEADERS(float.h,,AC_MSG_WARN(C headers missing ?)) |
---|
| 93 | AC_CHECK_HEADERS(math.h,,AC_MSG_WARN(C headers missing ?)) |
---|
| 94 | dnl AC_CHECK_HEADERS(ieeefp.h,,AC_MSG_WARN(C headers missing ?)) |
---|
| 95 | AC_CHECK_HEADERS(malloc.h,,AC_MSG_WARN(C headers missing ?)) |
---|
| 96 | AC_CHECK_HEADERS(memory.h,,AC_MSG_WARN(C headers missing ?)) |
---|
| 97 | AC_CHECK_HEADERS(unistd.h,,AC_MSG_WARN(C headers missing ?)) |
---|
[489] | 98 | |
---|
[1262] | 99 | AC_CHECK_HEADERS(inttypes.h,,AC_MSG_WARN(C headers missing ?)) |
---|
| 100 | if test "${ac_cv_header_inttypes_h}" = "yes" ; then |
---|
| 101 | HAVE_INTTYPES_H=1 |
---|
| 102 | else |
---|
| 103 | HAVE_INTTYPES_H=0 |
---|
| 104 | fi |
---|
| 105 | |
---|
| 106 | |
---|
[1018] | 107 | SC_CONFIG_CFLAGS |
---|
[718] | 108 | |
---|
[4501] | 109 | SVN_VERSION=`svnversion $srcdir | sed 's/Unversioned directory/unknown/'` |
---|
[6000] | 110 | SVN_URL=`readlink -e $srcdir | xargs svn info | sed -ne 's/^URL: //p'` |
---|
[3739] | 111 | |
---|
[1058] | 112 | make_command="" |
---|
[1087] | 113 | for m in "$MAKE" make gmake gnumake ; do |
---|
| 114 | if test "x${m}" != "x" ; then |
---|
| 115 | if ( sh -c "$m --version" 2>/dev/null | grep GNU >/dev/null ) ; then |
---|
[1058] | 116 | make_command=$m; break; |
---|
| 117 | fi |
---|
| 118 | fi |
---|
| 119 | done |
---|
| 120 | if test "x${make_command}" = "x" ; then |
---|
[1270] | 121 | AC_MSG_ERROR([Requires GNU make. You can specify a version with \$MAKE]) |
---|
[1058] | 122 | fi |
---|
| 123 | |
---|
[905] | 124 | AC_ARG_ENABLE( |
---|
[4149] | 125 | [lang], |
---|
| 126 | [AS_HELP_STRING([--enable-lang], [build language bindings @<:@default=yes@:>@])], |
---|
| 127 | [], |
---|
| 128 | [enable_lang=yes]) |
---|
| 129 | |
---|
| 130 | ENABLE_LANG= |
---|
| 131 | if test "$enable_lang" != "no" ; then |
---|
| 132 | ENABLE_LANG="yes" |
---|
| 133 | fi |
---|
| 134 | |
---|
| 135 | AC_ARG_ENABLE( |
---|
[905] | 136 | [gui], |
---|
| 137 | [AS_HELP_STRING([--enable-gui], [build code related to the graphical user interface @<:@default=yes@:>@])], |
---|
| 138 | [], |
---|
| 139 | [enable_gui=yes]) |
---|
| 140 | |
---|
| 141 | ENABLE_GUI= |
---|
| 142 | if test "$enable_gui" != "no" ; then |
---|
| 143 | ENABLE_GUI="yes" |
---|
| 144 | fi |
---|
| 145 | |
---|
[1751] | 146 | TCL_VERSION="8.4" |
---|
| 147 | for dir in \ |
---|
| 148 | ${exec_prefix} \ |
---|
[5029] | 149 | ${exec_prefix}/lib ; do |
---|
[1751] | 150 | tclconfig="${dir}/tclConfig.sh" |
---|
| 151 | if test -f "$tclconfig" ; then |
---|
| 152 | . $tclconfig |
---|
| 153 | break |
---|
| 154 | fi |
---|
| 155 | done |
---|
[2063] | 156 | |
---|
[6160] | 157 | TK_VERSION="8.4" |
---|
| 158 | for dir in \ |
---|
| 159 | ${exec_prefix} \ |
---|
| 160 | ${exec_prefix}/lib ; do |
---|
| 161 | tkconfig="${dir}/tkConfig.sh" |
---|
| 162 | if test -f "$tkconfig" ; then |
---|
| 163 | . $tkconfig |
---|
| 164 | break |
---|
| 165 | fi |
---|
| 166 | done |
---|
| 167 | |
---|
[2065] | 168 | AC_ARG_WITH( |
---|
[2313] | 169 | [ffmpeg], |
---|
| 170 | [AS_HELP_STRING([--with-ffmpeg[=DIR]], |
---|
| 171 | [location of ffmpeg @<:@default=yes@:>@])], |
---|
| 172 | [], |
---|
| 173 | [with_ffmpeg=yes]) |
---|
| 174 | |
---|
| 175 | AC_ARG_WITH( |
---|
[2065] | 176 | [tclsh], |
---|
| 177 | [AS_HELP_STRING([--with-tclsh[=DIR]], |
---|
| 178 | [location of tclsh @<:@default=yes@:>@])], |
---|
[2310] | 179 | [], |
---|
| 180 | [with_tclsh=yes]) |
---|
[2065] | 181 | |
---|
[2063] | 182 | TCLSH="" |
---|
[2310] | 183 | if test "${with_tclsh}" != "no" ; then |
---|
[2063] | 184 | tclsh="tclsh${TCL_VERSION}" |
---|
[5029] | 185 | if test "${with_tclsh}" = "yes" ; then |
---|
[2063] | 186 | AC_PATH_PROG(TCLSH, ${tclsh}, [], [${exec_prefix}/bin:${PATH}]) |
---|
[5029] | 187 | else |
---|
[2310] | 188 | AC_PATH_PROG(TCLSH, ${tclsh}, [], [${with_tclsh}/bin:${with_tclsh}]) |
---|
[2063] | 189 | fi |
---|
| 190 | if test "x${TCLSH}" = "x" ; then |
---|
[2065] | 191 | AC_ERROR([can't find tclsh]) |
---|
[2063] | 192 | fi |
---|
| 193 | fi |
---|
| 194 | |
---|
[2709] | 195 | |
---|
[1751] | 196 | TCL_INC_SPEC="$TCL_INCLUDE_SPEC" |
---|
[905] | 197 | |
---|
[718] | 198 | AC_ARG_WITH( |
---|
[1678] | 199 | [vtk], |
---|
[4522] | 200 | [AS_HELP_STRING([--with-vtk[=version]], |
---|
| 201 | [VTK library version @<:@default=6.0@:>@])], |
---|
[5029] | 202 | [], |
---|
[2310] | 203 | [with_vtk=yes]) |
---|
[1678] | 204 | |
---|
| 205 | AC_MSG_CHECKING([for vtk]) |
---|
[4522] | 206 | VTK_VERSION=6.0 |
---|
| 207 | VTK_TCL_DIR="" |
---|
[1678] | 208 | |
---|
[4522] | 209 | ENABLE_VTK= |
---|
[2310] | 210 | if test "$with_vtk" != "no" ; then |
---|
[4522] | 211 | if test "$with_vtk" != "yes" ; then |
---|
| 212 | VTK_VERSION=$with_vtk |
---|
| 213 | fi |
---|
| 214 | if test "x$with_vtk" != "x" ; then |
---|
| 215 | ENABLE_VTK=yes |
---|
[1678] | 216 | for path in \ |
---|
[4522] | 217 | $libdir/tcltk \ |
---|
| 218 | $exec_prefix/lib/tcltk \ |
---|
| 219 | $prefix/lib/tcltk \ |
---|
[1678] | 220 | $libdir \ |
---|
| 221 | $prefix/lib \ |
---|
| 222 | $exec_prefix/lib \ |
---|
| 223 | /usr/lib |
---|
| 224 | do |
---|
[4522] | 225 | if test -d "$path/vtk-$VTK_VERSION" ; then |
---|
| 226 | VTK_TCL_DIR="$path/vtk-$VTK_VERSION" |
---|
| 227 | fi |
---|
| 228 | if test "x${VTK_TCL_DIR}" != "x" ; then |
---|
[1873] | 229 | break |
---|
[1678] | 230 | fi |
---|
| 231 | done |
---|
| 232 | fi |
---|
[4522] | 233 | else |
---|
| 234 | if test "${ENABLE_GUI}" = "yes" ; then |
---|
| 235 | AC_MSG_WARN([VTK missing: Rappture GUI requires VTK for some features]) |
---|
| 236 | fi |
---|
[1678] | 237 | fi |
---|
[4522] | 238 | AC_MSG_RESULT([$VTK_TCL_DIR]) |
---|
[1678] | 239 | |
---|
[4522] | 240 | AC_ARG_ENABLE( |
---|
| 241 | [vtkdicom], |
---|
| 242 | [AS_HELP_STRING([--enable-vtkdicom], |
---|
| 243 | [Use vtkDICOM package @<:@default=no@:>@])], |
---|
[5029] | 244 | [], |
---|
[4522] | 245 | [enable_vtkdicom=no]) |
---|
| 246 | |
---|
| 247 | AC_MSG_CHECKING([for vtkDICOM]) |
---|
| 248 | ENABLE_VTK_DICOM= |
---|
| 249 | if test "$enable_vtkdicom" != "no" ; then |
---|
| 250 | ENABLE_VTK_DICOM="yes" |
---|
| 251 | fi |
---|
| 252 | AC_MSG_RESULT([$enable_vtkdicom]) |
---|
| 253 | |
---|
[2205] | 254 | RP_LANG_MATLAB |
---|
| 255 | RP_LANG_OCTAVE |
---|
| 256 | RP_LANG_PERL |
---|
| 257 | RP_LANG_PYTHON |
---|
| 258 | RP_LANG_JAVA |
---|
[2709] | 259 | RP_LANG_R |
---|
[3603] | 260 | RP_LANG_RUBY |
---|
[1678] | 261 | |
---|
[489] | 262 | RP_BASE=`pwd` |
---|
| 263 | |
---|
[1018] | 264 | SC_ENABLE_SHARED |
---|
[512] | 265 | |
---|
[1018] | 266 | #-------------------------------------------------------------------- |
---|
| 267 | # This macro figures out what flags to use with the compiler/linker |
---|
| 268 | # when building shared/static debug/optimized objects. This information |
---|
| 269 | # is all taken from the tclConfig.sh file. |
---|
| 270 | #-------------------------------------------------------------------- |
---|
| 271 | |
---|
[1873] | 272 | if test -f "${exec_prefix}/lib/tclConfig.sh" ; then |
---|
[1132] | 273 | . ${exec_prefix}/lib/tclConfig.sh |
---|
| 274 | fi |
---|
[2298] | 275 | if test -f "${exec_prefix}/lib/tkConfig.sh" ; then |
---|
[1873] | 276 | . ${exec_prefix}/lib/tkConfig.sh |
---|
[1132] | 277 | fi |
---|
[1082] | 278 | |
---|
[1262] | 279 | # ----------------------------------------------------------------------- |
---|
| 280 | # |
---|
[2310] | 281 | # Compiler characteristics: |
---|
[1262] | 282 | # Check for existence of types of size_t and pid_t |
---|
| 283 | # |
---|
| 284 | # ----------------------------------------------------------------------- |
---|
| 285 | |
---|
| 286 | AC_C_BIGENDIAN |
---|
| 287 | AC_CHECK_SIZEOF(int) |
---|
| 288 | AC_CHECK_SIZEOF(long) |
---|
| 289 | AC_CHECK_SIZEOF(long long) |
---|
| 290 | AC_CHECK_SIZEOF(void *) |
---|
| 291 | |
---|
| 292 | SIZEOF_LONG="${ac_cv_sizeof_long}" |
---|
| 293 | SIZEOF_LONG_LONG="${ac_cv_sizeof_long_long}" |
---|
| 294 | SIZEOF_VOID_P="${ac_cv_sizeof_void_p}" |
---|
| 295 | SIZEOF_INT="${ac_cv_sizeof_int}" |
---|
| 296 | |
---|
| 297 | |
---|
[1018] | 298 | #-------------------------------------------------------------------- |
---|
[1873] | 299 | # Set the default compiler switches based on the --enable-symbols |
---|
[1018] | 300 | # option. |
---|
| 301 | #-------------------------------------------------------------------- |
---|
| 302 | |
---|
| 303 | SC_ENABLE_SYMBOLS |
---|
| 304 | |
---|
[905] | 305 | |
---|
[1873] | 306 | #-------------------------------------------------------------------- |
---|
| 307 | # search for ffmpeg libraries libavcodec, libavformat, libswscale |
---|
| 308 | #-------------------------------------------------------------------- |
---|
[3570] | 309 | if test "${with_ffmpeg}" != "no" ; then |
---|
[5029] | 310 | if test "${with_ffmpeg}" = "yes" ; then |
---|
[3570] | 311 | AC_PATH_PROG(FFMPEG, ffmpeg, [], $PATH) |
---|
[5029] | 312 | else |
---|
[3570] | 313 | AC_PATH_PROG(FFMPEG, ffmpeg, [], [${with_ffmpeg}/bin:${with_ffmpeg}]) |
---|
[5029] | 314 | fi |
---|
[3716] | 315 | if test "${FFMPEG}x" != "x" ; then |
---|
[3570] | 316 | AC_DEFINE(HAVE_FFMPEG, 1, [Render servers can use ffmpeg]) |
---|
| 317 | fi |
---|
| 318 | fi |
---|
[1873] | 319 | |
---|
[4225] | 320 | AC_CHECK_HEADERS([ffmpeg/avcodec.h libavcodec/avcodec.h ffmpeg/avformat.h libavformat/avformat.h ffmpeg/avutil.h libavutil/avutil.h libavutil/mathematics.h ffmpeg/swscale.h libswscale/swscale.h],,,[ |
---|
[2727] | 321 | #define __STDC_CONSTANT_MACROS 1 |
---|
| 322 | ]) |
---|
[1873] | 323 | |
---|
| 324 | HAVE_FFMPEG_LIBS="" |
---|
[2313] | 325 | if test "${with_ffmpeg}" != "no"; then |
---|
| 326 | if [[ \( "${ac_cv_header_ffmpeg_avcodec_h}" = "yes" -o \ |
---|
[1873] | 327 | "${ac_cv_header_libavcodec_avcodec_h}" = "yes" \) -a \ |
---|
| 328 | \( "${ac_cv_header_ffmpeg_avformat_h}" = "yes" -o \ |
---|
| 329 | "${ac_cv_header_libavformat_avformat_h}" = "yes" \) -a \ |
---|
| 330 | \( "${ac_cv_header_ffmpeg_avutil_h}" = "yes" -o \ |
---|
| 331 | "${ac_cv_header_libavutil_avutil_h}" = "yes" \) -a \ |
---|
| 332 | \( "${ac_cv_header_ffmpeg_swscale_h}" = "yes" -o \ |
---|
| 333 | "${ac_cv_header_libswscale_swscale_h}" = "yes" \) ]] ; then |
---|
[2313] | 334 | HAVE_FFMPEG_LIBS="yes" |
---|
| 335 | AC_DEFINE(BUILD_with_ffmpeg, 1, [Build rappture with ffmpeg widgets]) |
---|
| 336 | fi |
---|
[2723] | 337 | AC_CHECK_LIB(avcodec, main,,AC_MSG_ERROR(librappture requires libavcodec)) |
---|
| 338 | AC_CHECK_LIB(avutil, main,,AC_MSG_ERROR(librappture requires libavutil)) |
---|
| 339 | AC_CHECK_LIB(avformat, main,,AC_MSG_ERROR(librappture requires libavformat)) |
---|
[2726] | 340 | AC_CHECK_LIB(swscale, main) |
---|
[2890] | 341 | AC_CHECK_FUNCS(av_find_stream_info) |
---|
| 342 | AC_CHECK_FUNCS(av_open_input_file) |
---|
| 343 | AC_CHECK_FUNCS(avcodec_decode_video) |
---|
[2723] | 344 | AC_CHECK_FUNCS(avcodec_decode_video2) |
---|
[2890] | 345 | AC_CHECK_FUNCS(avcodec_open) |
---|
| 346 | AC_CHECK_FUNCS(avcodec_open2) |
---|
| 347 | AC_CHECK_FUNCS(avformat_find_stream_info) |
---|
[2723] | 348 | AC_CHECK_FUNCS(avformat_open_input) |
---|
| 349 | AC_CHECK_FUNCS(avio_close) |
---|
[2890] | 350 | AC_CHECK_FUNCS(img_convert) |
---|
| 351 | AC_CHECK_FUNCS(sws_getCachedContext) |
---|
| 352 | AC_CHECK_FUNCS(sws_scale) |
---|
[2723] | 353 | AC_CHECK_FUNCS(url_close) |
---|
[2890] | 354 | AC_CHECK_FUNCS(av_close_input_file) |
---|
| 355 | AC_CHECK_FUNCS(avformat_close_input) |
---|
[5029] | 356 | |
---|
[2723] | 357 | AC_CHECK_FUNC(avcodec_find_decoder,, |
---|
| 358 | AC_MSG_ERROR(oops! no av_codec_find_decoder ?!?)) |
---|
| 359 | AC_CHECK_FUNC(avcodec_alloc_frame,, |
---|
| 360 | AC_MSG_ERROR(oops! no avcode_alloc_frame ?!?)) |
---|
| 361 | AC_CHECK_FUNC(av_rescale_q,,AC_MSG_ERROR(oops! no av_rescale_q ?!?)) |
---|
| 362 | AC_CHECK_FUNC(av_read_frame,,AC_MSG_ERROR(oops! av_read_frame ?!?)) |
---|
| 363 | AC_CHECK_FUNC(av_free,,AC_MSG_ERROR(oops! no av_frame ?!?)) |
---|
| 364 | AC_CHECK_FUNC(avcodec_default_release_buffer,, |
---|
| 365 | AC_MSG_ERROR(oops! no avcode_default_release_buffer ?!?)) |
---|
| 366 | AC_CHECK_FUNC(avpicture_get_size,, |
---|
| 367 | AC_MSG_ERROR(oops! no avpicture_get_size ?!?)) |
---|
| 368 | AC_CHECK_FUNC(avpicture_fill,,AC_MSG_ERROR(oops! no avpicture_fill ?!?)) |
---|
[2959] | 369 | AC_CHECK_FUNCS(sws_getCachedContext) |
---|
| 370 | AC_CHECK_FUNCS(img_convert) |
---|
| 371 | AC_CHECK_FUNCS(sws_scale) |
---|
[2724] | 372 | AC_TRY_COMPILE([ |
---|
| 373 | #define __STDC_CONSTANT_MACROS 1 |
---|
| 374 | #include <stdlib.h> |
---|
| 375 | #ifdef HAVE_FFMPEG_AVCODEC_H |
---|
| 376 | # include <ffmpeg/avcodec.h> |
---|
| 377 | #endif |
---|
| 378 | #ifdef HAVE_LIBAVCODEC_AVCODEC_H |
---|
| 379 | # include <libavcodec/avcodec.h> |
---|
| 380 | #endif |
---|
| 381 | int x = AVMEDIA_TYPE_VIDEO; |
---|
| 382 | ],, ac_avmedia_type_video="yes", ac_avmedia_type_video="no") |
---|
| 383 | if test "$ac_avmedia_type_video" == "yes" ; then |
---|
| 384 | AC_DEFINE(HAVE_AVMEDIA_TYPE_VIDEO,1,[Define if AVMEDIA_TYPE_VIDEO enum exists. ]) |
---|
| 385 | fi |
---|
[1873] | 386 | fi |
---|
| 387 | |
---|
[2202] | 388 | AC_SUBST(CFLAGS_DEBUG) |
---|
| 389 | AC_SUBST(CFLAGS_OPTIMIZE) |
---|
[4117] | 390 | AC_SUBST(ENABLE_LANG) |
---|
[2202] | 391 | AC_SUBST(ENABLE_GUI) |
---|
[4522] | 392 | AC_SUBST(ENABLE_VTK) |
---|
| 393 | AC_SUBST(ENABLE_VTK_DICOM) |
---|
[3570] | 394 | AC_SUBST(FFMPEG) |
---|
[1873] | 395 | AC_SUBST(HAVE_FFMPEG_LIBS) |
---|
[2202] | 396 | AC_SUBST(HAVE_INTTYPES_H) |
---|
[3330] | 397 | AC_SUBST(HAVE_RUBY_DEVEL) |
---|
[2202] | 398 | AC_SUBST(INSTALL_PREFIX) |
---|
| 399 | AC_SUBST(JAVA) |
---|
| 400 | AC_SUBST(JAVAC) |
---|
| 401 | AC_SUBST(JAVAH) |
---|
| 402 | AC_SUBST(JAVA_HOME) |
---|
| 403 | AC_SUBST(JAVA_INC_DIR) |
---|
| 404 | AC_SUBST(JAVA_INC_SPEC) |
---|
| 405 | AC_SUBST(LIB_SEARCH_DIRS) |
---|
| 406 | AC_SUBST(MAKE, ${make_command}) |
---|
| 407 | AC_SUBST(MATLAB) |
---|
| 408 | AC_SUBST(MCC) |
---|
| 409 | AC_SUBST(MEX) |
---|
| 410 | AC_SUBST(MEXEXT) |
---|
| 411 | AC_SUBST(MEX_ARCH) |
---|
| 412 | AC_SUBST(MKOCTFILE2) |
---|
| 413 | AC_SUBST(MKOCTFILE3) |
---|
| 414 | AC_SUBST(OCTAVE_VERSION) |
---|
| 415 | AC_SUBST(OCTAVE_VERSION_MAJOR) |
---|
| 416 | AC_SUBST(PERL) |
---|
| 417 | AC_SUBST(PERL_ARCHLIB) |
---|
| 418 | AC_SUBST(PERL_ARCHLIBEXP) |
---|
| 419 | AC_SUBST(PERL_CCFLAGS) |
---|
| 420 | AC_SUBST(PERL_CPPFLAGS) |
---|
| 421 | AC_SUBST(PERL_INCLUDES) |
---|
| 422 | AC_SUBST(PERL_INSTALLARCHLIB) |
---|
| 423 | AC_SUBST(PERL_LIBSPEC) |
---|
| 424 | AC_SUBST(PERL_PRIVLIB) |
---|
| 425 | AC_SUBST(PERL_VENDORLIB) |
---|
| 426 | AC_SUBST(PERL_VERSION) |
---|
| 427 | AC_SUBST(PERL_VERSION_RV) |
---|
| 428 | AC_SUBST(PYTHON) |
---|
| 429 | AC_SUBST(PYTHON_CFLAGS) |
---|
| 430 | AC_SUBST(PYTHON_DISTUTILS) |
---|
| 431 | AC_SUBST(PYTHON_INCDIR) |
---|
| 432 | AC_SUBST(PYTHON_INCLUDES) |
---|
| 433 | AC_SUBST(PYTHON_LDFLAGS) |
---|
| 434 | AC_SUBST(PYTHON_LIB) |
---|
| 435 | AC_SUBST(PYTHON_LIBDIR) |
---|
| 436 | AC_SUBST(PYTHON_SITE_DIR) |
---|
| 437 | AC_SUBST(PYTHON_SITE_PACKAGES) |
---|
| 438 | AC_SUBST(PYTHON_VERSION) |
---|
[2709] | 439 | AC_SUBST(R) |
---|
[2202] | 440 | AC_SUBST(RP_BASE) |
---|
[3330] | 441 | AC_SUBST(RUBY) |
---|
| 442 | AC_SUBST(RUBY_PLATFORM) |
---|
| 443 | AC_SUBST(RUBY_VERSION_RV) |
---|
[2202] | 444 | AC_SUBST(SHLIB_CFLAGS) |
---|
| 445 | AC_SUBST(SHLIB_LD) |
---|
| 446 | AC_SUBST(SHLIB_LDFLAGS) |
---|
| 447 | AC_SUBST(SHLIB_SUFFIX) |
---|
| 448 | AC_SUBST(SIZEOF_INT) |
---|
| 449 | AC_SUBST(SIZEOF_LONG) |
---|
| 450 | AC_SUBST(SIZEOF_LONG_LONG) |
---|
| 451 | AC_SUBST(SIZEOF_VOID_P) |
---|
| 452 | AC_SUBST(STLIB_LD) |
---|
[6158] | 453 | AC_SUBST(SVN_URL) |
---|
| 454 | AC_SUBST(SVN_VERSION) |
---|
[2202] | 455 | AC_SUBST(TCLSH) |
---|
[6158] | 456 | AC_SUBST(TCL_CFLAGS_DEBUG) |
---|
| 457 | AC_SUBST(TCL_CFLAGS_OPTIMIZE) |
---|
[2202] | 458 | AC_SUBST(TCL_INC_SPEC) |
---|
| 459 | AC_SUBST(TCL_LIB_SPEC) |
---|
[2726] | 460 | AC_SUBST(TCL_SHLIB_CFLAGS) |
---|
| 461 | AC_SUBST(TCL_SHLIB_LD) |
---|
| 462 | AC_SUBST(TCL_SHLIB_LDFLAGS) |
---|
| 463 | AC_SUBST(TCL_SHLIB_SUFFIX) |
---|
[6160] | 464 | AC_SUBST(TCL_SRC_DIR) |
---|
[2202] | 465 | AC_SUBST(TCL_VERSION) |
---|
[2310] | 466 | AC_SUBST(TK_INC_SPEC) |
---|
[2202] | 467 | AC_SUBST(TK_LIB_SPEC) |
---|
[6160] | 468 | AC_SUBST(TK_SRC_DIR) |
---|
[6158] | 469 | AC_SUBST(TK_VERSION) |
---|
[2202] | 470 | AC_SUBST(TK_XLIBSW) |
---|
[4522] | 471 | AC_SUBST(VTK_TCL_DIR) |
---|
| 472 | AC_SUBST(VTK_VERSION) |
---|
[2555] | 473 | AC_SUBST(XSUBPP) |
---|
[1873] | 474 | |
---|
[1055] | 475 | ac_configure_args="--disable-threads --enable-shared" |
---|
[1018] | 476 | AC_CONFIG_SUBDIRS( [packages/optimizer/src] ) |
---|
[942] | 477 | |
---|
[489] | 478 | dnl read Makefile.in and write Makefile |
---|
[1270] | 479 | AC_CONFIG_FILES([ |
---|
[1159] | 480 | Makefile |
---|
[1087] | 481 | packages/Makefile |
---|
| 482 | src/Makefile |
---|
| 483 | src/core/Makefile |
---|
| 484 | src/core2/Makefile |
---|
| 485 | src/objects/Makefile |
---|
[1270] | 486 | src/objects/RpHash.h |
---|
[1087] | 487 | gui/Makefile |
---|
| 488 | gui/apps/Makefile |
---|
[1111] | 489 | gui/apps/about |
---|
[2790] | 490 | gui/apps/copy_rappture_examples |
---|
[1280] | 491 | gui/apps/encodedata |
---|
[1087] | 492 | gui/apps/rappture |
---|
[1175] | 493 | gui/apps/rappture-csh.env |
---|
[1087] | 494 | gui/apps/rappture.env |
---|
[1633] | 495 | gui/apps/rappture.use |
---|
[1159] | 496 | gui/apps/rerun |
---|
[1087] | 497 | gui/apps/simsim |
---|
[1206] | 498 | gui/apps/xmldiff |
---|
[1087] | 499 | gui/pkgIndex.tcl |
---|
| 500 | gui/scripts/Makefile |
---|
[2118] | 501 | gui/src/Makefile |
---|
[2080] | 502 | builder/Makefile |
---|
| 503 | builder/pkgIndex.tcl |
---|
[2081] | 504 | builder/scripts/Makefile |
---|
[2080] | 505 | tester/Makefile |
---|
| 506 | tester/pkgIndex.tcl |
---|
[2081] | 507 | tester/scripts/Makefile |
---|
[1087] | 508 | lang/Makefile |
---|
[1722] | 509 | lang/java/Makefile |
---|
[1735] | 510 | lang/java/rappture/Makefile |
---|
[1087] | 511 | lang/perl/Makefile |
---|
| 512 | lang/perl/Makefile.PL |
---|
| 513 | lang/python/Makefile |
---|
| 514 | lang/python/setup.py |
---|
| 515 | lang/matlab/Makefile |
---|
| 516 | lang/octave/Makefile |
---|
[1844] | 517 | lang/octave/octave2/Makefile |
---|
| 518 | lang/octave/octave3/Makefile |
---|
[2709] | 519 | lang/R/Makefile |
---|
[1087] | 520 | lang/ruby/Makefile |
---|
| 521 | lang/ruby/build.rb |
---|
| 522 | lang/tcl/Makefile |
---|
| 523 | lang/tcl/pkgIndex.tcl |
---|
[3739] | 524 | lang/tcl/scripts/Makefile |
---|
[1087] | 525 | lang/tcl/src/Makefile |
---|
| 526 | lang/tcl/tests/Makefile |
---|
| 527 | lib/Makefile |
---|
[1096] | 528 | examples/3D/Makefile |
---|
[1087] | 529 | examples/Makefile |
---|
[1096] | 530 | examples/app-fermi/2.0/Makefile |
---|
[1087] | 531 | examples/app-fermi/Makefile |
---|
| 532 | examples/app-fermi/cee/Makefile |
---|
| 533 | examples/app-fermi/fortran/Makefile |
---|
[1722] | 534 | examples/app-fermi/java/Makefile |
---|
[1087] | 535 | examples/app-fermi/matlab/Makefile |
---|
[1222] | 536 | examples/app-fermi/matlab/compiled/Makefile |
---|
| 537 | examples/app-fermi/matlab/uncompiled/Makefile |
---|
[2310] | 538 | examples/app-fermi/octave/octave2/Makefile |
---|
| 539 | examples/app-fermi/octave/octave3/Makefile |
---|
[2058] | 540 | examples/app-fermi/octave/Makefile |
---|
[1087] | 541 | examples/app-fermi/perl/Makefile |
---|
| 542 | examples/app-fermi/python/Makefile |
---|
| 543 | examples/app-fermi/ruby/Makefile |
---|
| 544 | examples/app-fermi/tcl/Makefile |
---|
| 545 | examples/app-fermi/wrapper/Makefile |
---|
| 546 | examples/app-fermi/wrapper/cee/Makefile |
---|
[1850] | 547 | examples/app-fermi/wrapper/perl/Makefile |
---|
[1087] | 548 | examples/app-fermi/wrapper/python/Makefile |
---|
| 549 | examples/app-fermi/wrapper/tcl/Makefile |
---|
[2709] | 550 | examples/app-fermi/R/Makefile |
---|
[1087] | 551 | examples/c-example/Makefile |
---|
| 552 | examples/canvas/Makefile |
---|
| 553 | examples/demo.bash |
---|
[1466] | 554 | examples/flow/Makefile |
---|
| 555 | examples/flow/demo1/Makefile |
---|
| 556 | examples/flow/demo2/Makefile |
---|
| 557 | examples/flow/demo3/Makefile |
---|
[1087] | 558 | examples/graph/Makefile |
---|
[1096] | 559 | examples/objects/Makefile |
---|
[1386] | 560 | examples/objects/axis/Makefile |
---|
| 561 | examples/objects/curve/Makefile |
---|
[1096] | 562 | examples/objects/dxWriter/Makefile |
---|
| 563 | examples/objects/floatBuffer/Makefile |
---|
[1528] | 564 | examples/objects/histogram/Makefile |
---|
[1566] | 565 | examples/objects/library/Makefile |
---|
[1386] | 566 | examples/objects/number/Makefile |
---|
[1528] | 567 | examples/objects/path/Makefile |
---|
[1386] | 568 | examples/objects/plot/Makefile |
---|
[1528] | 569 | examples/objects/scatter/Makefile |
---|
[1386] | 570 | examples/objects/string/Makefile |
---|
[1528] | 571 | examples/objects/tree/Makefile |
---|
| 572 | examples/objects/xmlparser/Makefile |
---|
[1087] | 573 | examples/zoo/Makefile |
---|
| 574 | examples/zoo/binary/Makefile |
---|
| 575 | examples/zoo/boolean/Makefile |
---|
| 576 | examples/zoo/choice/Makefile |
---|
| 577 | examples/zoo/curve/Makefile |
---|
[3049] | 578 | examples/zoo/drawing/Makefile |
---|
[1087] | 579 | examples/zoo/enable/Makefile |
---|
| 580 | examples/zoo/field/Makefile |
---|
| 581 | examples/zoo/group/Makefile |
---|
[2324] | 582 | examples/zoo/histogram/Makefile |
---|
[2313] | 583 | examples/zoo/image/Makefile |
---|
[1087] | 584 | examples/zoo/image/docs/Makefile |
---|
| 585 | examples/zoo/image/examples/Makefile |
---|
| 586 | examples/zoo/integer/Makefile |
---|
| 587 | examples/zoo/integer2/Makefile |
---|
| 588 | examples/zoo/loader/Makefile |
---|
| 589 | examples/zoo/loader/examples/Makefile |
---|
| 590 | examples/zoo/log/Makefile |
---|
[3416] | 591 | examples/zoo/mesh/Makefile |
---|
[1087] | 592 | examples/zoo/note/Makefile |
---|
| 593 | examples/zoo/note/docs/Makefile |
---|
| 594 | examples/zoo/number/Makefile |
---|
| 595 | examples/zoo/number2/Makefile |
---|
[2058] | 596 | examples/zoo/parallelepiped/Makefile |
---|
[1631] | 597 | examples/zoo/periodicelement/Makefile |
---|
[1087] | 598 | examples/zoo/phase/Makefile |
---|
| 599 | examples/zoo/sequence/Makefile |
---|
| 600 | examples/zoo/sequence/examples/Makefile |
---|
| 601 | examples/zoo/string/Makefile |
---|
| 602 | examples/zoo/structure/Makefile |
---|
| 603 | examples/zoo/structure/examples/Makefile |
---|
| 604 | examples/zoo/table/Makefile |
---|
[2890] | 605 | video/Makefile |
---|
| 606 | video/pkgIndex.tcl |
---|
[2038] | 607 | oldtest/Makefile |
---|
| 608 | oldtest/src/Makefile |
---|
[5029] | 609 | puq/Makefile |
---|
[6189] | 610 | puq/puq.sh |
---|
[1018] | 611 | ]) |
---|
[1270] | 612 | AC_OUTPUT |
---|
[5029] | 613 | |
---|