~ubuntu-branches/ubuntu/trusty/gstreamer1.0/trusty-proposed

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Package Import Robot
  • Author(s): Sebastian Dröge
  • Date: 2012-08-08 18:12:33 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20120808181233-riejwxprfsxh1njl
Tags: 0.11.93-1
* New upstream release:
  + debian/libgstreamer.symbols:
    - Update symbols file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
dnl initialize autoconf
4
4
dnl when going to/from release please set the nano (fourth number) right !
5
5
dnl releases only do Wall, git and prerelease does Werror too
6
 
AC_INIT(GStreamer, 0.11.92,
 
6
AC_INIT(GStreamer, 0.11.93,
7
7
    http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer,
8
8
    gstreamer)
9
9
AG_GST_INIT
164
164
  AC_MSG_WARN([Sissy ! By asking to not build the tests known to fail, you hereby waive your right to customer support.  If you do not agree with this EULA, please press Ctrl-C before the next line is printed.  By allowing the next line to be printed, you expressly acknowledge your acceptance of this EULA.])
165
165
fi
166
166
 
 
167
dnl building of benchmarks
 
168
AC_ARG_ENABLE(benchmarks,
 
169
  AC_HELP_STRING([--disable-benchmarks], [disable building benchmarks apps]),
 
170
  [
 
171
    case "${enableval}" in
 
172
      yes) BUILD_BENCHMARKS=yes ;;
 
173
      no)  BUILD_BENCHMARKS=no ;;
 
174
      *)   AC_MSG_ERROR(bad value ${enableval} for --disable-benchmarks) ;;
 
175
    esac
 
176
  ],
 
177
[BUILD_BENCHMARKS=yes]) dnl Default value
 
178
AM_CONDITIONAL(BUILD_BENCHMARKS, test "x$BUILD_BENCHMARKS" = "xyes")
 
179
 
 
180
dnl building of tools
 
181
AC_ARG_ENABLE(tools,
 
182
  AC_HELP_STRING([--disable-tools], [disable building tools]),
 
183
  [
 
184
    case "${enableval}" in
 
185
      yes) BUILD_TOOLS=yes ;;
 
186
      no)  BUILD_TOOLS=no ;;
 
187
      *)   AC_MSG_ERROR(bad value ${enableval} for --disable-tools) ;;
 
188
    esac
 
189
  ],
 
190
[BUILD_TOOLS=yes]) dnl Default value
 
191
AM_CONDITIONAL(BUILD_TOOLS, test "x$BUILD_TOOLS" = "xyes")
 
192
 
167
193
dnl poison destroyed objects
168
194
AC_ARG_ENABLE(poisoning,
169
195
  AC_HELP_STRING([--enable-poisoning],
270
296
AC_HEADER_STDC
271
297
 
272
298
dnl Check for ucontext.h
273
 
AC_CHECK_HEADERS([ucontext.h])
 
299
AC_CHECK_HEADERS([ucontext.h], [], [], [AC_INCLUDES_DEFAULT])
274
300
 
275
301
dnl Check for sys/socket.h
276
 
AC_CHECK_HEADERS([sys/socket.h], HAVE_SYS_SOCKET_H=yes)
 
302
AC_CHECK_HEADERS([sys/socket.h], [HAVE_SYS_SOCKET_H=yes], [HAVE_SYS_SOCKET_H=no], [AC_INCLUDES_DEFAULT])
277
303
AM_CONDITIONAL(HAVE_SYS_SOCKET_H, test "x$HAVE_SYS_SOCKET_H" = "xyes")
278
304
 
279
305
dnl check for sys/times.h for tests/examples/adapter/
280
 
AC_CHECK_HEADERS([sys/times.h], HAVE_SYS_TIMES_H=yes)
281
 
AC_CHECK_HEADERS([unistd.h], HAVE_UNISTD_H=yes)
 
306
AC_CHECK_HEADERS([sys/times.h], [HAVE_SYS_TIMES_H=yes], [HAVE_SYS_TIME_H=no], [AC_INCLUDES_DEFAULT])
 
307
AC_CHECK_HEADERS([unistd.h], [HAVE_UNISTD_H=yes], [HAVE_UNISTD_H=no], [AC_INCLUDES_DEFAULT])
282
308
AM_CONDITIONAL(HAVE_SYS_TIMES_H_AND_UNISTD_H, test "x$HAVE_SYS_TIMES_H" = "xyes" -a "x$HAVE_UNISTD_H" = "xyes")
283
309
 
284
310
dnl Check for process.h for getpid() on win32
285
 
AC_CHECK_HEADERS([process.h])
 
311
AC_CHECK_HEADERS([process.h], [], [], [AC_INCLUDES_DEFAULT])
286
312
 
287
313
dnl Check for sys/utsname.h for uname
288
 
AC_CHECK_HEADERS([sys/utsname.h])
 
314
AC_CHECK_HEADERS([sys/utsname.h], [], [], [AC_INCLUDES_DEFAULT])
289
315
 
290
316
dnl Check for stdio_ext.f for __fbufsize
291
 
AC_CHECK_HEADERS([stdio_ext.h])
 
317
AC_CHECK_HEADERS([stdio_ext.h], [], [], [AC_INCLUDES_DEFAULT])
292
318
 
293
319
dnl check for pthreads
294
 
AC_CHECK_HEADERS([pthread.h], HAVE_PTHREAD_H=yes)
 
320
AC_CHECK_HEADERS([pthread.h], [HAVE_PTHREAD_H=yes], [HAVE_PTHREAD_H=no], [AC_INCLUDES_DEFAULT])
295
321
AM_CONDITIONAL(HAVE_PTHREAD_H, test "x$HAVE_PTHREAD_H" = "xyes")
296
322
 
297
323
dnl check for sys/prctl for setting thread name on Linux
298
 
AC_CHECK_HEADERS([sys/prctl.h], HAVE_SYS_PRCTL_H=yes)
 
324
AC_CHECK_HEADERS([sys/prctl.h], [], [], [AC_INCLUDES_DEFAULT])
299
325
 
300
326
dnl Check for valgrind.h
301
327
dnl separate from HAVE_VALGRIND because you can have the program, but not
302
328
dnl the dev package
303
 
AC_CHECK_HEADERS([valgrind/valgrind.h], HAVE_VALGRIND_H=yes)
 
329
AC_CHECK_HEADERS([valgrind/valgrind.h], [], [], [AC_INCLUDES_DEFAULT])
304
330
 
305
331
dnl used in gst/gstpoll.c
306
 
AC_CHECK_HEADERS([winsock2.h], HAVE_WINSOCK2_H=yes)
 
332
AC_CHECK_HEADERS([winsock2.h], [HAVE_WINSOCK2_H=yes], [HAVE_WINSOCK2_H=no], [AC_INCLUDES_DEFAULT])
307
333
AM_CONDITIONAL(HAVE_WINSOCK2_H, test "x$HAVE_WINSOCK2_H" = "xyes")
308
334
if test "x$HAVE_WINSOCK2_H" = "xyes"; then
309
335
  WIN32_LIBS="-lws2_32"
382
408
AC_CHECK_FUNCS([fsetpos])
383
409
 
384
410
dnl check for poll(), ppoll() and pselect()
 
411
AC_CHECK_HEADERS([sys/poll.h], [], [], [AC_INCLUDES_DEFAULT])
 
412
AC_CHECK_HEADERS([poll.h], [], [], [AC_INCLUDES_DEFAULT])
385
413
AC_CHECK_FUNCS([poll])
386
414
AC_CHECK_FUNCS([ppoll])
387
415
AC_CHECK_FUNCS([pselect])
388
416
 
389
 
AC_CHECK_HEADERS([sys/poll.h])
390
 
 
391
417
dnl ****************************************
392
418
dnl *** GLib POLL* compatibility defines ***
393
419
dnl ****************************************
396
422
AC_RUN_IFELSE([AC_LANG_SOURCE([[
397
423
        #include <stdlib.h>
398
424
        #include <fcntl.h>
399
 
        #include <poll.h>
400
425
        #ifdef HAVE_SYS_POLL_H
401
426
        #include <sys/poll.h>
402
427
        #endif
 
428
        #ifdef HAVE_POLL_H
 
429
        #include <poll.h>
 
430
        #endif
403
431
        int main(void) {
404
432
          struct pollfd fds[1];
405
433
          int fd;
519
547
dnl *** checks for dependency libraries ***
520
548
 
521
549
dnl GLib
522
 
GLIB_REQ=2.31.14
 
550
GLIB_REQ=2.32.0
523
551
AG_GST_GLIB_CHECK([$GLIB_REQ])
524
552
 
525
553
dnl Check for documentation xrefs
735
763
tests/examples/helloworld/Makefile
736
764
tests/examples/launch/Makefile
737
765
tests/examples/manual/Makefile
 
766
tests/examples/memory/Makefile
738
767
tests/examples/metadata/Makefile
739
768
tests/examples/queue/Makefile
740
769
tests/examples/streams/Makefile
844
873
        Debug                      : ${USE_DEBUG}
845
874
        Profiling                  : ${USE_PROFILING}
846
875
 
 
876
        Building benchmarks        : ${BUILD_BENCHMARKS}
847
877
        Building examples          : ${BUILD_EXAMPLES}
848
878
        Building test apps         : ${BUILD_TESTS}
849
879
        Building tests that fail   : ${BUILD_FAILING_TESTS}
 
880
        Building tools             : ${BUILD_TOOLS}
850
881
"