aboutsummaryrefslogblamecommitdiff
path: root/configure.in
blob: 1e9ec7fec408fe05f2be2a6ccfc8056271fea99e (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

                                                                                                                                               












                                                                  
          

                                        
                  
           
            
 
























                                             
















                                                                  
# http://cvs.sourceforge.net/viewcvs.py/avisynth2/avisynth/build/linux/Attic/configure.in?rev=1.1.2.6.4.17&only_with_tag=avisynth_3_0&view=auto

dnl Process this file with autoconf to produce a configure script.

# get rid of that stupid cache mechanism
rm -f config.cache

AC_INIT(configure.in)
AC_ISC_POSIX
AM_INIT_AUTOMAKE(espik, 0.0.1)
AM_CONFIG_HEADER(config.h)

AC_PROG_CC
AM_PROG_CC_STDC
AC_HEADER_STDC
AC_C_CONST

dnl espik specific check (include in m4)
AC_C___ATTRIBUTE__
AC___GNUC__
AC___GLIBC__

dnl Debug mode
AC_ARG_ENABLE(
   [debug],
   AC_HELP_STRING(
      [--enable-debug],
      [Enable debug mode (default=no)]),
   [if test "$enable_debug" = "no" ; then
       enable_debug="no"
    else
       if test "$enable_debug" = "yes" ; then
          enable_debug="yes"
       fi
    fi],
   [enable_debug="no"])

dnl Check debug mode
if test "$enable_debug" = "yes" ; then
   DEBUG_MODE_CFLAGS="-g -D_ESPIK_DEBUG_"
   our_cxxflags_defaults="-Wall -W"
else
   SPECIFIC_LDFLAGS="-s ${SPECIFIC_LDFLAGS}"
fi

AC_SUBST(DEBUG_MODE_CFLAGS)

AC_ARG_WITH(ecore-config,
[  --with-ecore-config=ECORE_CONFIG  use ecore-config specified ],
[
  ECORE_CONFIG=$withval;
  echo "using "$ECORE_CONFIG" for ecore-config";
],[
  PROG="ecore-config";
  AC_PATH_PROG(ECORE_CONFIG, $PROG, "", $PATH)
])
ecore_cflags=`$ECORE_CONFIG --cflags`
ecore_libs=`$ECORE_CONFIG --libs`
AC_SUBST(ecore_cflags)
AC_SUBST(ecore_libs)

AC_OUTPUT([
Makefile
src/Makefile])