~noskcaj/ubuntu/trusty/libextractor/merge

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2009-11-17 20:27:32 UTC
  • mfrom: (1.10.4 upstream) (5.2.5 sid)
  • Revision ID: james.westby@ubuntu.com-20091117202732-ipm2h3gks5bdw2vx
Tags: 0.5.23+dfsg-3
* Building against libltdl7.
* Updating to standards version 3.8.3.
* Adding maintainer homepage field to control.
* Marking maintainer homepage field to be also included in binary
  packages and changelog.
* Adding README.source.
* Simplifying autotools handling in rules.
* Updating README.source.
* Moving maintainer homepage field from control to copyright.
* Dropping la files.
* Simplyfing debhelper install files.
* Bumping versioned build-depends on debhelper.
* Adding depends to dpkg install info.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# Process this file with autoconf to produce a configure script.
2
2
AC_PREREQ(2.61)
3
 
AC_INIT([libextractor], [0.5.21], [bug-libextractor@gnu.org])
4
 
AM_INIT_AUTOMAKE([libextractor], [0.5.21])
 
3
AC_INIT([libextractor], [0.5.23], [bug-libextractor@gnu.org])
 
4
AC_CONFIG_AUX_DIR([libltdl/config])
 
5
AM_INIT_AUTOMAKE([libextractor], [0.5.23])
5
6
AC_CONFIG_HEADERS([config.h])
6
7
AH_TOP([#define _GNU_SOURCE  1])
7
8
 
23
24
AC_PROG_INSTALL
24
25
AC_PROG_LN_S
25
26
AC_PROG_MAKE_SET
26
 
AC_LIBTOOL_DLOPEN
27
 
AC_DISABLE_STATIC
28
 
AC_LIBTOOL_WIN32_DLL
29
 
AC_LIBLTDL_INSTALLABLE
30
 
AC_PROG_LIBTOOL
31
 
AC_LIB_LTDL
 
27
LT_CONFIG_LTDL_DIR([libltdl])
32
28
AC_CANONICAL_HOST
 
29
LT_INIT([disable-static dlopen win32-dll])
 
30
LTDL_INIT
33
31
AC_SUBST(LTDLINCL)
34
32
AC_SUBST(LIBLTDL)
35
33
AC_SUBST(MKDIR_P)
36
34
 
37
 
 
38
 
 
39
35
case "$host_os" in
40
36
linux*)
41
37
     AC_DEFINE(LINUX,1,[This is a Linux system])
515
511
                [set FFmpeg --arch setting for cross-compiling.]),
516
512
        [ffmpegarch=$withval])
517
513
 
 
514
 
 
515
LE_INTLINCL=""
 
516
LE_LIBINTL="$LTLIBINTL"
 
517
AC_ARG_ENABLE(framework, [  --enable-framework      enable Mac OS X framework build helpers],enable_framework_build=$enableval)
 
518
AM_CONDITIONAL(WANT_FRAMEWORK, test x$enable_framework_build = xyes)
 
519
if test x$enable_framework_build = xyes
 
520
then
 
521
  AC_DEFINE([FRAMEWORK_BUILD], 1, [Build a Mac OS X Framework])
 
522
  LE_INTLINCL='-I$(top_srcdir)/src/intlemu'
 
523
  LE_LIBINTL='$(top_builddir)/src/intlemu/libintlemu.la -framework CoreFoundation'
 
524
  AC_LIB_APPENDTOVAR([CPPFLAGS], [$LE_INTLINCL]) 
 
525
fi
 
526
 
 
527
 
 
528
LE_LIB_LDFLAGS="-export-dynamic -no-undefined"
 
529
LE_PLUGIN_LDFLAGS="-export-dynamic -avoid-version -module -no-undefined"
 
530
 
 
531
 
 
532
dnl TODO insert a proper check here
 
533
AC_CACHE_CHECK([whether -export-symbols-regex works],
 
534
 gn_cv_export_symbols_regex_works, 
 
535
 [
 
536
  case "$host_os" in
 
537
  mingw*) gn_cv_export_symbols_regex_works=no;;
 
538
  *) gn_cv_export_symbols_regex_works=yes;;
 
539
  esac
 
540
 ])
 
541
if test "x$gn_cv_export_symbols_regex_works" = "xyes"
 
542
then
 
543
 LE_LIB_LDFLAGS="$LE_LIB_LDFLAGS -export-symbols-regex \"EXTRACTOR_@<:@a-zA-Z0-9_@:>@*\""
 
544
 LE_PLUGIN_LDFLAGS="$LE_PLUGIN_LDFLAGS -export-symbols-regex \"libextractor_@<:@a-zA-Z0-9_@:>@*_extract\""
 
545
fi
 
546
AC_SUBST(LE_LIB_LDFLAGS)
 
547
AC_SUBST(LE_PLUGIN_LDFLAGS)
 
548
AC_SUBST(LE_INTLINCL)
 
549
AC_SUBST(LE_LIBINTL)
 
550
 
518
551
AC_SUBST(CPPFLAGS)
519
552
AC_SUBST(LDFLAGS)
520
553
AC_SUBST(XTRA_CPPLIBS)
521
554
AC_SUBST(LIBEXT)
522
555
 
 
556
PACKAGE_VERSION_NOALPHA=`echo $PACKAGE_VERSION | sed "s/@<:@A-Za-z@:>@*//g;"`
 
557
AC_SUBST(PACKAGE_VERSION_NOALPHA)
 
558
 
523
559
AC_CONFIG_FILES([Makefile po/Makefile.in m4/Makefile
524
560
 
525
561
 
526
562
contrib/macosx/Info.plist
 
563
contrib/macosx/Pkg-Info.plist
527
564
doc/Makefile
528
565
src/Makefile
529
566
src/include/Makefile
 
567
src/intlemu/Makefile
 
568
src/common/Makefile
530
569
src/main/Makefile
531
570
src/plugins/Makefile
532
571
src/plugins/ole2/Makefile
541
580
src/test/Makefile
542
581
])
543
582
 
544
 
LIBEXTRACTOR_VERSION="0.5.18a"
545
583
AX_CREATE_PKGCONFIG_INFO([libextractor.pc],,[-lextractor],[Metadata extraction library],,)
546
584
 
547
585
if test "x$ffmpeg_enabled" = "x1"
552
590
 then
553
591
   FFMPEGARCH="--enable-cross-compile --arch=$ffmpegarch"
554
592
 fi
555
 
 cd src/plugins/thumbnailffmpeg/ffmpeg/
 
593
 cd src/plugins/ffmpeg/
556
594
 if ! ./configure                       \
557
595
        --cc="$CC"                      \
558
596
        $FFMPEGARCH                     \
587
625
  then
588
626
    AC_MSG_ERROR([FFmpeg configure failed.])
589
627
  fi
590
 
  cd ../../../../
 
628
  cd ../../../
591
629
fi
592
630
 
593
631
AC_OUTPUT
624
662
 AC_MSG_NOTICE([NOTICE: FFmpeg thumbnailer plugin enabled (security untested)])
625
663
fi
626
664
 
627
 
if test "x$without_gtk" = "xtrue" -a "x$qt" = "x0" -a "x$ffmpeg_enabled" = "x0"
 
665
if test "x$without_gtk" = "xtrue" -a "x$qt" = "x0" -a "x$qt4" = "x0" -a "x$ffmpeg_enabled" = "x0"
628
666
then
629
667
 AC_MSG_NOTICE([NOTICE: neither gtk nor Qt not found, no thumbnail support])
630
668
fi