Ignore:
Timestamp:
07/30/09 00:00:32 (15 years ago)
Author:
r2d
Message:
  • autotool changes to support symbol visibility on MinGW.
  • mpcchap build must be enabled with --enable-mpcchap
  • mpcgain is built only if replaygain is installed
  • -fvisibility-hidden is added only for gcc4 on Linux
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libmpc/trunk/configure.in

    r410 r445  
    1 AC_INIT(configure.in)
    2 AC_CONFIG_AUX_DIR(config)
    3 
    4 AM_CONFIG_HEADER(include/config.h)
    5 AM_INIT_AUTOMAKE(libmpcs, 0.1)
     1AC_INIT([libmpcs], [0.1])
     2AC_CONFIG_AUX_DIR([config])
     3AC_CONFIG_MACRO_DIR([m4])
     4AC_CONFIG_SRCDIR([libmpcdec/mpc_reader.c])
     5AM_CONFIG_HEADER([include/config.h])
     6AM_INIT_AUTOMAKE
    67
    78AC_LANG_C
    89AC_PROG_CC
    9 AM_PROG_LIBTOOL
     10AC_LIBTOOL_WIN32_DLL
     11AC_PROG_LIBTOOL
    1012
    11 AC_CHECK_HEADERS(replaygain/gain_analysis.h)
     13AC_CHECK_HEADERS([replaygain/gain_analysis.h])
     14AM_CONDITIONAL([MPC_GAIN], [test "x$ac_cv_header_replaygain_gain_analysis_h" = xyes])
    1215
    1316AC_CANONICAL_HOST()
     
    2427AC_SUBST([EXTRALIBS])
    2528
    26 AC_OUTPUT(Makefile include/Makefile libmpcdec/Makefile libmpcenc/Makefile \
    27         libmpcpsy/Makefile libwavformat/Makefile mpc2sv8/Makefile mpcchap/Makefile mpccut/Makefile \
    28         mpcdec/Makefile mpcenc/Makefile mpcgain/Makefile wavcmp/Makefile)
     29AC_ARG_ENABLE([mpcchap], [AS_HELP_STRING([--enable-mpcchap], [enable building mpcchap])])
     30AM_CONDITIONAL([MPC_CHAP], [test "x$enable_mpcchap" = xyes])
     31
     32
     33CHECK_VISIBILITY
     34
     35AC_CONFIG_FILES([
     36Makefile
     37include/Makefile
     38libmpcdec/Makefile
     39libmpcenc/Makefile
     40libmpcpsy/Makefile
     41libwavformat/Makefile
     42mpc2sv8/Makefile
     43mpcchap/Makefile
     44mpccut/Makefile
     45mpcdec/Makefile
     46mpcenc/Makefile
     47mpcgain/Makefile
     48wavcmp/Makefile
     49])
     50
     51AC_OUTPUT
Note: See TracChangeset for help on using the changeset viewer.