aboutsummaryrefslogtreecommitdiff
path: root/configure.in
blob: 7d68c420ee07eab7c64fd239415487ec671a988e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# 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
AC_C_INLINE

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

AC_ARG_WITH(ecore-config,
  [  --with-ecore-config=ECORE_CONFIG_PATH  use ecore-config specified ],
  [ECORE_CONFIG=$withval;
   if ! test -x "$ECORE_CONFIG"; then
     AC_MSG_ERROR([$ECORE_CONFIG not found])
   fi ],
  [PROG="ecore-config";
   AC_PATH_PROG(ECORE_CONFIG, $PROG, "", $PATH)
   if test -z "$ECORE_CONFIG"; then
     AC_MSG_ERROR([You need ecore !])
   fi
  ])

ecore_cflags=`$ECORE_CONFIG --cflags`
ecore_libs=`$ECORE_CONFIG --libs`
AC_SUBST(ecore_cflags)
AC_SUBST(ecore_libs)

AC_OUTPUT([
  Makefile
  src/Makefile
])