File: configure.in

package info (click to toggle)
kbedic 4.0-4
  • links: PTS
  • area: contrib
  • in suites: sarge
  • size: 740 kB
  • ctags: 386
  • sloc: sh: 3,139; cpp: 2,649; makefile: 63
file content (84 lines) | stat: -rw-r--r-- 1,990 bytes parent folder | download | duplicates (4)
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
dnl Written by Radostin Radnev - radnev@yahoo.com

dnl First check for right directory
AC_INIT(src/main.cpp)

dnl Checks for some stuff
AC_CANONICAL_SYSTEM
AC_ARG_PROGRAM

dnl Make program
AM_INIT_AUTOMAKE(kbedic, 4.0)

dnl Checks for programs
AC_PROG_CC
AC_PROG_CPP
AC_PROG_CXX
AC_PROG_MAKE_SET
AC_PROG_INSTALL

dnl Enable debug information
AC_ENABLE_DEBUG

dnl Checks for header files
AC_HEADER_STDC

dnl Check for X headers and libs
AC_PATH_XTRA
if test "$no_x" = yes; then
   AC_MSG_ERROR(You need to have the X11 libraries and headers installed)
fi

dnl Check for QT libraries
AC_PATH_QT_LIB
if test "$have_qt_lib" = no; then
   AC_MSG_ERROR(You need to have the QT 3.0 or higher libraries installed)
fi

dnl Check for QT includes
AC_PATH_QT_INC
if test "$have_qt_inc" = no; then
   AC_MSG_ERROR(You need to have the QT 3.0 or higher headers installed)
fi

dnl Check for QT version
AC_MSG_CHECKING(for QT 3.0 or higher)
if test ! -r $ac_cv_header_qtinc/qmemarray.h; then
   AC_MSG_ERROR(Your QT version is not 3.0 or higher)
else
   AC_MSG_RESULT(yes)
fi

dnl Get QT meta object compiler (moc)
AC_PATH_QT_MOC

dnl Get data dir
AC_GET_DATA_DIR

dnl Get data to KDE3
AC_PATH_KDE

dnl Output files
AC_OUTPUT(Makefile src/Makefile src/config.h data/Makefile)

echo ""
if test "$have_kde" = yes; then
   echo "KDE 3 support : enabled"
   echo "KDE 3 includes: $kde_includes"
   echo "KDE 3 libs    : $kde_libraries"
else
   echo "KDE 3 support : disabled. To enable use './configure --with-kde'."
fi
echo ""
echo "Qt includes   : $ac_cv_header_qtinc"
echo "Qt libraries  : $ac_cv_lib_qtlib"
echo "Qt moc        : $MOC"
echo ""
echo "Data directory: $DATA_DIR"
echo ""
echo "Good news! Look that you have all needed packages installed"
echo "Type 'make' (or 'gmake') to compile the program"
echo "After that type 'make install' to install the program and data"
echo "For 'make install' you must be root (su)"
echo "At the end in a X terminal window type 'kbedic' to run the program"
echo ""