|
Lines 24-30
AC_DEFUN([GNASH_PATH_KDE4],
Link Here
|
| 24 |
with_kde4_incl=${withval}) |
24 |
with_kde4_incl=${withval}) |
| 25 |
dnl make sure the path is a useable one |
25 |
dnl make sure the path is a useable one |
| 26 |
if test x"${with_kde4_incl}" != x ; then |
26 |
if test x"${with_kde4_incl}" != x ; then |
| 27 |
if test ! -f ${with_kde4_incl}/kapp.h ; then |
27 |
if test ! -f ${with_kde4_incl}/kapplication.h ; then |
| 28 |
AC_MSG_ERROR([${with_kde4_incl} directory doesn't contain any KDE 4.x headers]) |
28 |
AC_MSG_ERROR([${with_kde4_incl} directory doesn't contain any KDE 4.x headers]) |
| 29 |
fi |
29 |
fi |
| 30 |
fi |
30 |
fi |
|
Lines 38-44
AC_DEFUN([GNASH_PATH_KDE4],
Link Here
|
| 38 |
with_kde4_lib=${withval}) |
38 |
with_kde4_lib=${withval}) |
| 39 |
dnl make sure the path is a useable one |
39 |
dnl make sure the path is a useable one |
| 40 |
if test x"${with_kde4_lib}" != x ; then |
40 |
if test x"${with_kde4_lib}" != x ; then |
| 41 |
if test ! -f ${with_kde4_lib}/libkdeui.la; then |
41 |
if test ! -f ${with_kde4_lib}/libkdeui.so; then |
| 42 |
AC_MSG_ERROR([${with_kde4_lib} directory doesn't contain any KDE 4.x libraries!]) |
42 |
AC_MSG_ERROR([${with_kde4_lib} directory doesn't contain any KDE 4.x libraries!]) |
| 43 |
fi |
43 |
fi |
| 44 |
fi |
44 |
fi |
|
Lines 136-142
AC_DEFUN([GNASH_PATH_KDE4],
Link Here
|
| 136 |
dnl Look for the libraries |
136 |
dnl Look for the libraries |
| 137 |
AC_CACHE_VAL(ac_cv_path_kde4_lib, [ |
137 |
AC_CACHE_VAL(ac_cv_path_kde4_lib, [ |
| 138 |
if test x"${with_kde4_lib}" != x ; then |
138 |
if test x"${with_kde4_lib}" != x ; then |
| 139 |
if test -f ${with_kde4_lib}/libkdeui.la; then |
139 |
if test -f ${with_kde4_lib}/libkdeui.so; then |
| 140 |
ac_cv_path_kde4_lib="-L`(cd ${with_kde4_lib}; pwd)`" |
140 |
ac_cv_path_kde4_lib="-L`(cd ${with_kde4_lib}; pwd)`" |
| 141 |
else |
141 |
else |
| 142 |
AC_MSG_ERROR([${with_kde4_lib} directory doesn't contain KDE 4.x libraries.]) |
142 |
AC_MSG_ERROR([${with_kde4_lib} directory doesn't contain KDE 4.x libraries.]) |
|
Lines 146-152
AC_DEFUN([GNASH_PATH_KDE4],
Link Here
|
| 146 |
AC_MSG_CHECKING([for kdeui library]) |
146 |
AC_MSG_CHECKING([for kdeui library]) |
| 147 |
kde4_topdir= |
147 |
kde4_topdir= |
| 148 |
for i in ${kde4_prefix}/lib64 ${kde4_prefix}/lib $libslist ; do |
148 |
for i in ${kde4_prefix}/lib64 ${kde4_prefix}/lib $libslist ; do |
| 149 |
if test -f $i/libkdeui.${shlibext} -o -f $i/libkdeui.la; then |
149 |
if test -f $i/libkdeui.${shlibext} -o -f $i/libkdeui.so; then |
| 150 |
kde4_topdir=$i |
150 |
kde4_topdir=$i |
| 151 |
AC_MSG_RESULT(${kde4_topdir}/libkdeui) |
151 |
AC_MSG_RESULT(${kde4_topdir}/libkdeui) |
| 152 |
if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then |
152 |
if test ! x"$i" = x"/usr/lib" -a ! x"$i" = x"/usr/lib64"; then |
|
Lines 169-187
AC_DEFUN([GNASH_PATH_KDE4],
Link Here
|
| 169 |
AC_MSG_RESULT(no) |
169 |
AC_MSG_RESULT(no) |
| 170 |
fi |
170 |
fi |
| 171 |
fi |
171 |
fi |
| 172 |
dnl Look for the kdeprint library, which is required |
|
|
| 173 |
AC_MSG_CHECKING([for kdeprint library]) |
| 174 |
if test x"${libkdeprint}" = x; then |
| 175 |
if test -f ${kde4_topdir}/libkdeprint.la -o -f ${kde4_topdir}/libkdeprint.${shlibext}; then |
| 176 |
ac_cv_path_kde4_lib="${ac_cv_path_kde4_lib} -lkdeprint" |
| 177 |
AC_MSG_RESULT(${kde4_topdir}/libkdeprint) |
| 178 |
else |
| 179 |
AC_MSG_RESULT(no) |
| 180 |
fi |
| 181 |
else |
| 182 |
AC_MSG_RESULT(${libkdeprint}) |
| 183 |
ac_cv_path_kde4_lib="${ac_cv_path_kde4_lib} ${libkdeprint}" |
| 184 |
fi |
| 185 |
]) dnl end of cache ac_cv_path_kde4_lib |
172 |
]) dnl end of cache ac_cv_path_kde4_lib |
| 186 |
fi dnl end of build_kde4 |
173 |
fi dnl end of build_kde4 |
| 187 |
|
174 |
|
|
Lines 218-224
AC_DEFUN([GNASH_PATH_KDE4],
Link Here
|
| 218 |
fi dnl end of build_kparts4 |
205 |
fi dnl end of build_kparts4 |
| 219 |
|
206 |
|
| 220 |
if test x"${ac_cv_path_kde4_incl}" != x ; then |
207 |
if test x"${ac_cv_path_kde4_incl}" != x ; then |
| 221 |
if test x"${ac_cv_path_kde3_incl}" != x"-I/usr/include"; then |
208 |
if test x"${ac_cv_path_kde4_incl}" != x"-I/usr/include"; then |
| 222 |
KDE4_CFLAGS="${ac_cv_path_kde4_incl}" |
209 |
KDE4_CFLAGS="${ac_cv_path_kde4_incl}" |
| 223 |
else |
210 |
else |
| 224 |
KDE4_CFLAGS="" |
211 |
KDE4_CFLAGS="" |