File: configure.in.in

package info (click to toggle)
kompose 0.5.4-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 9,548 kB
  • ctags: 698
  • sloc: sh: 9,065; cpp: 4,384; perl: 2,730; makefile: 103
file content (91 lines) | stat: -rw-r--r-- 2,652 bytes parent folder | download | duplicates (2)
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
#MIN_CONFIG(3.2)

CXXFLAGS="$CXXFLAGS $KDE_DEFAULT_CXXFLAGS"
AM_INIT_AUTOMAKE(kompose, 0.6)
AC_C_BIGENDIAN
AC_CHECK_KDEMAXPATHLEN

AC_PREREQ(2.52)

X_LIBS="$X_PRE_LIBS $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"

dnl --- XDamage check
AC_CHECK_HEADER(X11/extensions/Xdamage.h, [
    AC_CHECK_LIB(Xdamage, XDamageQueryExtension, [
      AC_DEFINE(HAVE_XDAMAGE, 1, [Define if you have the XDamage extens
ion])
      LIB_XDAMAGE="-lXdamage -lXfixes"],, [ -L/usr/X11R6/lib $X_PRE_LIBS $X_LIBS -lXext -lX11 $X_EXTRA_LIBS ])
  ],, [#include <X11/Xlib.h>])
AC_SUBST(LIB_XDAMAGE)

dnl --- XComposite check
AC_CHECK_HEADER(X11/extensions/Xcomposite.h, [
    AC_CHECK_LIB(Xcomposite, XCompositeQueryExtension, [
      AC_DEFINE(HAVE_XCOMPOSITE, 1, [Define if you have the XComposite extens
ion])
      LIB_XCOMPOSITE="-lXcomposite"],, [ -L/usr/X11R6/lib $X_PRE_LIBS $X_LIBS -lXext -lX11 $X_EXTRA_LIBS ])
  ],, [#include <X11/Xlib.h>])
AC_SUBST(LIB_XCOMPOSITE)


# modified kuickshow imlib search
#
# checking for Imlib2...
dnl --- Imlib2 check

AC_DEFUN([KDE_FIND_IMLIB2_CONFIG],
   [AC_MSG_CHECKING([for imlib2-config])

imlib2_config_given=NO
ac_imlib2_config=""

AC_ARG_WITH(imlib2-config,
AC_HELP_STRING([--with-imlib2-config=DIR],[directory where "imlib2-config" is located]),
[  ac_imlib2_config="$withval/imlib2-config"
   imlib2_config_given=yes
])

if test "$imlib2_config_given" = "yes"; then
  if test ! -r $ac_imlib2_config; then
    AC_MSG_RESULT(wrong file specified)
    ac_imlib2_config=""
  else
    AC_MSG_RESULT($ac_imlib2_config)
    LIB_IMLIB2=`$ac_imlib2_config --libs`
    AC_SUBST(LIB_IMLIB2)
  fi
else
  ac_imlib2_config=`which imlib2-config 2>/dev/null`
  if test -z "$ac_imlib2_config"; then
    AC_MSG_RESULT(no)
  else
    dummy=`echo "$ac_imlib2_config" | grep '/imlib2-config'`
    if test -z "$dummy"; then
      AC_MSG_RESULT(no)
      ac_imlib2_config=""
    else
      LIB_IMLIB2=`$ac_imlib2_config --libs`
      IMLIB2_CFLAGS=`$ac_imlib2_config --cflags`
      imlib2_config=`echo "$LIB_IMLIB2" | grep lImlib2`
      if test -z "$imlib2_config"; then
        AC_MSG_RESULT(no)
        ac_imlib2_config=""
      else
        AC_SUBST(LIB_IMLIB2)
        AC_SUBST(IMLIB2_CFLAGS)
        AC_MSG_RESULT($ac_imlib2_config)
      fi
    fi
  fi
fi

])

dnl Check if Imlib2 is installed properly
KDE_FIND_IMLIB2_CONFIG
 
if test -z "$ac_imlib2_config"; then
dnl  AC_MSG_ERROR([You need to install Imlib2 1.x from http://www.enlightenment.org/pages/imlib2.html if your distributor doesn't have a package])
 echo imlib2-config not found
 #DO_NOT_COMPILE="$DO_NOT_COMPILE kompose" # maybe one day we'll be in KDE, so I'll leave this here :)
fi