~ubuntu-branches/ubuntu/oneiric/knetworkmanager/oneiric

« back to all changes in this revision

Viewing changes to admin/acinclude.m4.in

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2008-07-14 14:05:44 UTC
  • mfrom: (1.2.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20080714140544-yjhxgrdwartk3kx7
Tags: 1:0.7svn830754-0ubuntu1
New upstream snapshot

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
dnl IMPORTANT NOTE:
23
23
dnl Please do not modify this file unless you expect your modifications to be
24
 
dnl carried into every other module in the repository. 
 
24
dnl carried into every other module in the repository.
25
25
dnl
26
26
dnl Single-module modifications are best placed in configure.in for kdelibs
27
27
dnl and kdebase or configure.in.in if present.
664
664
  kde_have_all_paths=
665
665
  kde_styledir=
666
666
  kde_widgetdir=
667
 
  xdg_appsdir = xdg_menudir= xdg_directorydir= 
 
667
  xdg_appsdir = xdg_menudir= xdg_directorydir=
668
668
  KDE_SET_DEFAULT_PATHS($1)
669
669
  eval "$kde_cv_all_paths"
670
670
  KDE_CHECK_PATHS_FOR_COMPLETENESS
728
728
AC_DEFUN([KDE_MISC_TESTS],
729
729
[
730
730
   dnl Checks for libraries.
731
 
   AC_CHECK_LIB(util, main, [LIBUTIL="-lutil"]) dnl for *BSD 
 
731
   AC_CHECK_LIB(util, main, [LIBUTIL="-lutil"]) dnl for *BSD
732
732
   AC_SUBST(LIBUTIL)
733
733
   AC_CHECK_LIB(compat, main, [LIBCOMPAT="-lcompat"]) dnl for *BSD
734
734
   AC_SUBST(LIBCOMPAT)
768
768
   # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
769
769
   AC_CHECK_FUNC(shmat, ,
770
770
     AC_CHECK_LIB(ipc, shmat, X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"))
771
 
   
 
771
 
772
772
   # more headers that need to be explicitly included on darwin
773
773
   AC_CHECK_HEADERS(sys/types.h stdint.h)
774
774
 
813
813
# darwin needs this to initialize the environment
814
814
AC_CHECK_HEADERS(crt_externs.h)
815
815
AC_CHECK_FUNC(_NSGetEnviron, [AC_DEFINE(HAVE_NSGETENVIRON, 1, [Define if your system needs _NSGetEnviron to set up the environment])])
816
 
 
 
816
 
817
817
AH_VERBATIM(_DARWIN_ENVIRON,
818
818
[
819
819
#if defined(HAVE_NSGETENVIRON) && defined(HAVE_CRT_EXTERNS_H)
1621
1621
</widget>
1622
1622
</UI>
1623
1623
EOF
1624
 
       
 
1624
 
1625
1625
 
1626
1626
 
1627
1627
kde_cv_uic_plugins=no
1647
1647
you need to install kdelibs first.
1648
1648
 
1649
1649
If you did install kdelibs, then the Qt version that is picked up by
1650
 
this configure is not the same version you used to compile kdelibs. 
1651
 
The Qt Plugin installed by kdelibs is *ONLY* loadable if it is the 
 
1650
this configure is not the same version you used to compile kdelibs.
 
1651
The Qt Plugin installed by kdelibs is *ONLY* loadable if it is the
1652
1652
_same Qt version_, compiled with the _same compiler_ and the same Qt
1653
1653
configuration settings.
1654
1654
])
1689
1689
       KDE_USE_CLOSURE_TRUE="#"
1690
1690
       KDE_USE_CLOSURE_FALSE=""
1691
1691
       KDE_NO_UNDEFINED=""
1692
 
       case $host in 
 
1692
       case $host in
1693
1693
         *-*-linux-gnu)
1694
1694
           KDE_CHECK_COMPILER_FLAG([Wl,--no-undefined],
1695
1695
                [KDE_CHECK_COMPILER_FLAG([Wl,--allow-shlib-undefined],
1710
1710
  AC_ARG_ENABLE(new_ldflags,
1711
1711
                AC_HELP_STRING([--enable-new-ldflags],
1712
1712
                [enable the new linker flags]),
1713
 
        kde_use_new_ldflags=$enableval, 
 
1713
        kde_use_new_ldflags=$enableval,
1714
1714
        kde_use_new_ldflags=no)
1715
1715
 
1716
1716
  LDFLAGS_AS_NEEDED=""
1884
1884
fi
1885
1885
 
1886
1886
KDE_DEFAULT_CXXFLAGS="-DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION"
1887
 
 
 
1887
 
1888
1888
KDE_LDFLAGS="-L$kde_libraries"
1889
 
if test ! "$kde_libraries" = "$x_libraries" && test ! "$kde_libraries" = "$qt_libraries" ; then 
 
1889
if test ! "$kde_libraries" = "$x_libraries" && test ! "$kde_libraries" = "$qt_libraries" ; then
1890
1890
 all_libraries="$KDE_LDFLAGS $all_libraries"
1891
1891
fi
1892
1892
 
2063
2063
   AC_REQUIRE([K_PATH_X])
2064
2064
 
2065
2065
if test $kde_qtver = 3; then
2066
 
   case $host in 
 
2066
   case $host in
2067
2067
               *cygwin*) lib_kded="-lkdeinit_kded" ;;
2068
2068
               *) lib_kded="" ;;
2069
2069
       esac
2229
2229
[
2230
2230
        KDE_CHECK_FUNC_EXT(setenv, [
2231
2231
#include <stdlib.h>
2232
 
], 
 
2232
],
2233
2233
                [setenv("VAR", "VALUE", 1);],
2234
2234
                [int setenv (const char *, const char *, int)],
2235
2235
                [SETENV])
2239
2239
[
2240
2240
        KDE_CHECK_FUNC_EXT(unsetenv, [
2241
2241
#include <stdlib.h>
2242
 
], 
 
2242
],
2243
2243
                [unsetenv("VAR");],
2244
2244
                [void unsetenv (const char *)],
2245
2245
                [UNSETENV])
2251
2251
#include <stdlib.h>
2252
2252
#include <unistd.h>
2253
2253
#include <netdb.h>
2254
 
], 
 
2254
],
2255
2255
                [
2256
2256
char buffer[200];
2257
2257
getdomainname(buffer, 200);
2258
 
],      
 
2258
],
2259
2259
                [#include <sys/types.h>
2260
2260
                int getdomainname (char *, size_t)],
2261
2261
                [GETDOMAINNAME])
2266
2266
        KDE_CHECK_FUNC_EXT(gethostname, [
2267
2267
#include <stdlib.h>
2268
2268
#include <unistd.h>
2269
 
], 
 
2269
],
2270
2270
                [
2271
2271
char buffer[200];
2272
2272
gethostname(buffer, 200);
2273
 
],      
 
2273
],
2274
2274
                [int gethostname (char *, unsigned int)],
2275
2275
                [GETHOSTNAME])
2276
2276
])
2279
2279
[
2280
2280
        KDE_CHECK_FUNC_EXT(usleep, [
2281
2281
#include <unistd.h>
2282
 
], 
 
2282
],
2283
2283
                [
2284
2284
usleep(200);
2285
 
],      
 
2285
],
2286
2286
                [int usleep (unsigned int)],
2287
2287
                [USLEEP])
2288
2288
])
2292
2292
[
2293
2293
        KDE_CHECK_FUNC_EXT(random, [
2294
2294
#include <stdlib.h>
2295
 
], 
 
2295
],
2296
2296
                [
2297
2297
random();
2298
 
],      
 
2298
],
2299
2299
                [long int random(void)],
2300
2300
                [RANDOM])
2301
2301
 
2302
2302
        KDE_CHECK_FUNC_EXT(srandom, [
2303
2303
#include <stdlib.h>
2304
 
], 
 
2304
],
2305
2305
                [
2306
2306
srandom(27);
2307
 
],      
 
2307
],
2308
2308
                [void srandom(unsigned int)],
2309
2309
                [SRANDOM])
2310
2310
 
2378
2378
#include <resolv.h>
2379
2379
    ],
2380
2380
    [
2381
 
      res_init(); 
 
2381
      res_init();
2382
2382
    ],
2383
2383
    [
2384
2384
      LIBRESOLV="-lresolv"
2638
2638
  /* this would segfault.. but we only link, don't run */
2639
2639
  (void) gzgets(f, buf, sizeof(buf));
2640
2640
 
2641
 
  return (zlibVersion() == ZLIB_VERSION); 
 
2641
  return (zlibVersion() == ZLIB_VERSION);
2642
2642
],
2643
2643
            eval "ac_cv_lib_z='-lz'",
2644
2644
            eval "ac_cv_lib_z=no")
2650
2650
  LIBZ="$ac_cv_lib_z"
2651
2651
  AC_MSG_RESULT($ac_cv_lib_z)
2652
2652
else
2653
 
  AC_MSG_ERROR(not found. 
 
2653
  AC_MSG_ERROR(not found.
2654
2654
          Possibly configure picks up an outdated version
2655
2655
          installed by XFree86. Remove it from your system.
2656
2656
 
2982
2982
  dnl In theory we have tu run this test against $CC and $CXX
2983
2983
  dnl in C and in C++ mode, because its perfectly legal for
2984
2984
  dnl the user to mix compiler versions, since C has a defined
2985
 
  dnl ABI. 
2986
 
  dnl 
 
2985
  dnl ABI.
 
2986
  dnl
2987
2987
  dnl For now, we assume the user is not on crack.
2988
2988
 
2989
2989
  AC_TRY_COMPILE([
2993
2993
#endif
2994
2994
#endif
2995
2995
], ,
2996
 
  kde_bad_compiler=no, 
 
2996
  kde_bad_compiler=no,
2997
2997
  kde_bad_compiler=yes
2998
2998
)
2999
2999
 
3004
3004
 
3005
3005
This particular compiler version is blacklisted because it
3006
3006
is known to miscompile KDE. Please use a newer version, or
3007
 
if that is not yet available, choose an older version. 
 
3007
if that is not yet available, choose an older version.
3008
3008
 
3009
3009
Please do not report a bug or bother us reporting this
3010
3010
configure error. We know about it, and we introduced
3075
3075
        kde_use_debug_define=yes
3076
3076
        ;;
3077
3077
    esac
3078
 
  ], 
 
3078
  ],
3079
3079
    [kde_use_debug_code="no"
3080
3080
      kde_use_debug_define=no
3081
3081
  ])
3119
3119
  dnl this prevents stupid AC_PROG_CC to add "-g" to the default CFLAGS
3120
3120
  CFLAGS=" $CFLAGS"
3121
3121
 
3122
 
  AC_PROG_CC 
 
3122
  AC_PROG_CC
3123
3123
 
3124
3124
  AC_PROG_CPP
3125
3125
 
3182
3182
 
3183
3183
  if test "$kde_use_debug_define" = "yes"; then
3184
3184
    CXXFLAGS="-DNDEBUG -DNO_DEBUG $CXXFLAGS"
3185
 
  fi  
 
3185
  fi
3186
3186
 
3187
3187
  if test "$kde_use_profiling" = "yes"; then
3188
3188
    KDE_CHECK_COMPILER_FLAG(pg,
3196
3196
      if test "$GCC" = "yes"; then
3197
3197
        CXXFLAGS="-Wall -W -Wpointer-arith $CXXFLAGS"
3198
3198
        case $host in
3199
 
          *-*-linux-gnu)        
 
3199
          *-*-linux-gnu)
3200
3200
            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
3201
 
            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
 
3201
            CXXFLAGS="-D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3202
3202
            KDE_CHECK_COMPILER_FLAG(Wmissing-format-attribute, [CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"])
3203
3203
            KDE_CHECK_C_COMPILER_FLAG(Wmissing-format-attribute, [CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"])
3204
3204
          ;;
3218
3218
     AC_HELP_STRING([--enable-pch],
3219
3219
                    [enables precompiled header support (currently only KCC or gcc >=3.4+unsermake) [default=no]]),
3220
3220
    [ kde_use_pch=$enableval ],[ kde_use_pch=no ])
3221
 
 
 
3221
 
3222
3222
  HAVE_GCC_VISIBILITY=0
3223
3223
  AC_SUBST([HAVE_GCC_VISIBILITY])
3224
3224
 
3284
3284
      dnl   [CXXFLAGS="$CXXFLAGS --pch_dir `pwd`/pcheaders"])
3285
3285
    fi
3286
3286
    dnl this flag controls inlining. by default KCC inlines in optimisation mode
3287
 
    dnl all implementations that are defined inside the class {} declaration. 
 
3287
    dnl all implementations that are defined inside the class {} declaration.
3288
3288
    dnl because of templates-compatibility with broken gcc compilers, this
3289
3289
    dnl can cause excessive inlining. This flag limits it to a sane level
3290
3290
    KDE_CHECK_COMPILER_FLAG(-inline_keyword_space_time=6,[CXXFLAGS="$CXXFLAGS --inline_keyword_space_time=6"])
3307
3307
      *-*-irix*)  test "$GXX" = yes && CXXFLAGS="-D_LANGUAGE_C_PLUS_PLUS -D__LANGUAGE_C_PLUS_PLUS $CXXFLAGS" ;;
3308
3308
      *-*-sysv4.2uw*) CXXFLAGS="-D_UNIXWARE $CXXFLAGS";;
3309
3309
      *-*-sysv5uw7*) CXXFLAGS="-D_UNIXWARE7 $CXXFLAGS";;
3310
 
      *-*-solaris*) 
 
3310
      *-*-solaris*)
3311
3311
        if test "$GXX" = yes; then
3312
3312
          libstdcpp=`$CXX -print-file-name=libstdc++.so`
3313
3313
          if test ! -f $libstdcpp; then
3402
3402
    AC_LANG_CPLUSPLUS
3403
3403
    AC_EGREP_CPP(
3404
3404
       [GCC visibility push],
3405
 
       [ #include <exception> 
3406
 
       ], 
 
3405
       [ #include <exception>
 
3406
       ],
3407
3407
    [
3408
3408
      AC_MSG_RESULT(yes)
3409
3409
      kde_stdc_visibility_patched=yes ],
3410
 
    [ 
 
3410
    [
3411
3411
      AC_MSG_RESULT(no)
3412
 
      AC_MSG_WARN([Your libstdc++ doesn't appear to be patched for 
 
3412
      AC_MSG_WARN([Your libstdc++ doesn't appear to be patched for
3413
3413
                   visibility support. Disabling -fvisibility=hidden])
3414
3414
 
3415
3415
      kde_stdc_visibility_patched=no ])
3417
3417
    AC_LANG_RESTORE
3418
3418
 
3419
3419
    kde_have_gcc_visibility=no
3420
 
    KDE_CHECK_COMPILER_FLAG(fvisibility=hidden, 
 
3420
    KDE_CHECK_COMPILER_FLAG(fvisibility=hidden,
3421
3421
    [
3422
3422
      kde_have_gcc_visibility=yes
3423
3423
      dnl the whole toolchain is just a mess, gcc is just too buggy
3424
 
      dnl to handle STL with visibility enabled. Lets reconsider 
 
3424
      dnl to handle STL with visibility enabled. Lets reconsider
3425
3425
      dnl when gcc 4.2 is out or when things get fixed in the compiler.
3426
3426
      dnl Contact mueller@kde.org for details.
3427
3427
      AC_ARG_ENABLE(gcc-hidden-visibility,
3493
3493
KDE_CHECK_PLUGIN="\$(KDE_PLUGIN) -rpath \$(libdir)"
3494
3494
AC_SUBST(KDE_CHECK_PLUGIN)
3495
3495
 
3496
 
# we patch configure quite some so we better keep that consistent for incremental runs 
 
3496
# we patch configure quite some so we better keep that consistent for incremental runs
3497
3497
AC_SUBST(AUTOCONF,'$(SHELL) $(top_srcdir)/admin/cvs.sh configure || touch configure')
3498
3498
])
3499
3499
 
3503
3503
        AC_HELP_STRING([--enable-libsuffix],
3504
3504
            [/lib directory suffix (64,32,none,auto[=default])]),
3505
3505
            kdelibsuff=$enableval, kdelibsuff="auto")
3506
 
    
 
3506
 
3507
3507
    if test "$kdelibsuff" = "auto"; then
3508
 
    
 
3508
 
3509
3509
cat > conftest.c << EOF
3510
3510
#include <stdio.h>
3511
3511
int main() {
3513
3513
}
3514
3514
EOF
3515
3515
        kdelibsuff=`$CC conftest.c -o conftest.out; ldd conftest.out |sed -ne '/libc.so/{
3516
 
    s,.*/lib\([[^\/]]*\)/.*,\1, 
3517
 
    p 
 
3516
    s,.*/lib\([[^\/]]*\)/.*,\1,
 
3517
    p
3518
3518
}'`
3519
3519
        rm -rf conftest.*
3520
 
    fi  
3521
 
        
 
3520
    fi
 
3521
 
3522
3522
    if test "$kdelibsuff" = "no" || test "$kdelibsuff" = "none"; then
3523
3523
       kdelibsuff=
3524
3524
    fi
4144
4144
        AC_MSG_ERROR([Cannot use use --with-$1-pam, as no PAM was detected.
4145
4145
You may want to enforce it by using --with-pam.])
4146
4146
      fi
4147
 
    ], 
 
4147
    ],
4148
4148
    [ if test "x$use_pam" = xyes; then
4149
4149
        $3_PAM_SERVICE="$pam_service"
4150
4150
      fi
4164
4164
      ac_use_shadow=yes
4165
4165
    ],
4166
4166
    [ dnl for UnixWare
4167
 
      AC_CHECK_LIB(gen, getspent, 
 
4167
      AC_CHECK_LIB(gen, getspent,
4168
4168
        [ LIBGEN="-lgen"
4169
4169
          ac_use_shadow=yes
4170
 
        ], 
4171
 
        [ AC_CHECK_FUNC(getspent, 
 
4170
        ],
 
4171
        [ AC_CHECK_FUNC(getspent,
4172
4172
            [ ac_use_shadow=yes ],
4173
4173
            [ ac_use_shadow=no ])
4174
4174
        ])
4175
4175
    ])
4176
4176
  AC_SUBST(LIBSHADOW)
4177
4177
  AC_SUBST(LIBGEN)
4178
 
  
 
4178
 
4179
4179
  AC_MSG_CHECKING([for shadow passwords])
4180
4180
 
4181
4181
  AC_ARG_WITH(shadow,
4200
4200
 
4201
4201
  dnl finally make the relevant binaries setuid root, if we have shadow passwds.
4202
4202
  dnl this still applies, if we could use it indirectly through pam.
4203
 
  if test "x$use_shadow" = xyes || 
 
4203
  if test "x$use_shadow" = xyes ||
4204
4204
     ( test "x$use_pam" = xyes && test "x$ac_use_shadow" = xyes ); then
4205
4205
      case $host in
4206
4206
      *-*-freebsd* | *-*-netbsd* | *-*-openbsd*)
4218
4218
  AC_REQUIRE([KDE_PAM])
4219
4219
  AC_REQUIRE([KDE_SHADOWPASSWD])
4220
4220
 
4221
 
  if test "x$use_pam" = "xyes"; then 
 
4221
  if test "x$use_pam" = "xyes"; then
4222
4222
    PASSWDLIBS="$PAMLIBS"
4223
4223
  else
4224
4224
    PASSWDLIBS="$LIBCRYPT $LIBSHADOW $LIBGEN"
4356
4356
  dnl This code is here specifically to handle the
4357
4357
  dnl various flavors of threading library on FreeBSD
4358
4358
  dnl 4-, 5-, and 6-, and the (weird) rules around it.
4359
 
  dnl There may be an environment PTHREAD_LIBS that 
 
4359
  dnl There may be an environment PTHREAD_LIBS that
4360
4360
  dnl specifies what to use; otherwise, search for it.
4361
4361
  dnl -pthread is special cased and unsets LIBPTHREAD
4362
4362
  dnl below if found.
4510
4510
AC_DEFUN([KDE_CHECK_PYTHON_DIR],
4511
4511
[
4512
4512
AC_MSG_CHECKING([for Python directory])
4513
 
 
 
4513
 
4514
4514
AC_CACHE_VAL(kde_cv_pythondir,
4515
4515
[
4516
4516
  if test -z "$PYTHONDIR"; then
4519
4519
    kde_cv_pythondir="$PYTHONDIR"
4520
4520
  fi
4521
4521
])
4522
 
 
 
4522
 
4523
4523
AC_ARG_WITH(pythondir,
4524
4524
AC_HELP_STRING([--with-pythondir=pythondir],[use python installed in pythondir]),
4525
4525
[
4526
4526
  ac_python_dir=$withval
4527
4527
], ac_python_dir=$kde_cv_pythondir
4528
4528
)
4529
 
 
 
4529
 
4530
4530
AC_MSG_RESULT($ac_python_dir)
4531
4531
])
4532
4532
 
4590
4590
   test "x$PYTHONLIB" = "x-Lno" && PYTHONLIB=""
4591
4591
   test "x$PYTHONINC" = "x-Ino" && PYTHONINC=""
4592
4592
   $2
4593
 
else 
 
4593
else
4594
4594
  dnl Note: this test is very weak
4595
4595
  kde_python_link_found=no
4596
4596
  KDE_TRY_LINK_PYTHON(normal)
4626
4626
[
4627
4627
  KDE_CHECK_PYTHON_INTERN("2.5",
4628
4628
    [KDE_CHECK_PYTHON_INTERN("2.4",
4629
 
     [KDE_CHECK_PYTHON_INTERN("2.3", 
4630
 
       [KDE_CHECK_PYTHON_INTERN("2.2", 
4631
 
         [KDE_CHECK_PYTHON_INTERN("2.1", 
4632
 
           [KDE_CHECK_PYTHON_INTERN("2.0", 
 
4629
     [KDE_CHECK_PYTHON_INTERN("2.3",
 
4630
       [KDE_CHECK_PYTHON_INTERN("2.2",
 
4631
         [KDE_CHECK_PYTHON_INTERN("2.1",
 
4632
           [KDE_CHECK_PYTHON_INTERN("2.0",
4633
4633
             [KDE_CHECK_PYTHON_INTERN($1, $2) ])
4634
4634
           ])
4635
4635
         ])
5141
5141
        dir=`dirname "$1"`
5142
5142
        base=`basename "$1"`
5143
5143
        list=`ls -1 $dir 2> /dev/null`
5144
 
        for entry in $list; do 
 
5144
        for entry in $list; do
5145
5145
                if test -d $dir/$entry/bin; then
5146
5146
                        case $entry in
5147
5147
                           $base)
5179
5179
   kde_java_libhpidir=no
5180
5180
else
5181
5181
  if test "x$ac_java_dir" = "x"; then
5182
 
     
5183
 
     
 
5182
 
 
5183
 
5184
5184
      dnl No option set -> collect list of candidate paths
5185
5185
      if test -n "$JAVA_HOME"; then
5186
5186
        KDE_JAVA_PREFIX($JAVA_HOME)
5284
5284
 
5285
5285
    jni_includes="-I$kde_java_includedir"
5286
5286
    dnl Strange thing, jni.h requires jni_md.h which is under genunix here..
5287
 
    dnl and under linux here.. 
5288
 
    
 
5287
    dnl and under linux here..
 
5288
 
5289
5289
    dnl not needed for gcj
5290
5290
 
5291
 
    if test "x$kde_java_libgcjdir" = "x"; then 
 
5291
    if test "x$kde_java_libgcjdir" = "x"; then
5292
5292
      test -d "$kde_java_includedir/linux" && jni_includes="$jni_includes -I$kde_java_includedir/linux"
5293
5293
      test -d "$kde_java_includedir/solaris" && jni_includes="$jni_includes -I$kde_java_includedir/solaris"
5294
5294
      test -d "$kde_java_includedir/genunix" && jni_includes="$jni_includes -I$kde_java_includedir/genunix"
5299
5299
    jni_includes=
5300
5300
  fi
5301
5301
 
5302
 
  if test "x$kde_java_libgcjdir" = "x"; then 
 
5302
  if test "x$kde_java_libgcjdir" = "x"; then
5303
5303
     if test ! -r "$kde_java_libjvmdir/libjvm.so"; then
5304
5304
        AC_MSG_ERROR([libjvm.so not found under $kde_java_libjvmdir. Use --without-java.])
5305
 
     fi 
 
5305
     fi
5306
5306
  else
5307
5307
     if test ! -r "$kde_java_libgcjdir/libgcj.so"; then
5308
5308
        AC_MSG_ERROR([libgcj.so not found under $kde_java_libgcjdir. Use --without-java.])
5309
 
     fi 
 
5309
     fi
5310
5310
  fi
5311
5311
 
5312
5312
  if test ! -x "$kde_java_bindir/java"; then
5315
5315
 
5316
5316
  dnl not needed for gcj compile
5317
5317
 
5318
 
  if test "x$kde_java_libgcjdir" = "x"; then 
 
5318
  if test "x$kde_java_libgcjdir" = "x"; then
5319
5319
      if test ! -r "$kde_java_libhpidir/libhpi.so"; then
5320
5320
        AC_MSG_ERROR([libhpi.so not found under $kde_java_libhpidir. Use --without-java.])
5321
5321
      fi
5340
5340
 
5341
5341
    if test $kde_jni_works = no; then
5342
5342
      AC_MSG_ERROR([Incorrect version of $kde_java_includedir/jni.h.
5343
 
                    You need to have Java Development Kit (JDK) version 1.2. 
 
5343
                    You need to have Java Development Kit (JDK) version 1.2.
5344
5344
 
5345
5345
                    Use --with-java to specify another location.
5346
5346
                    Use --without-java to configure without java support.
5347
 
                    Or download a newer JDK and try again. 
 
5347
                    Or download a newer JDK and try again.
5348
5348
                    See e.g. http://java.sun.com/products/jdk/1.2 ])
5349
5349
    fi
5350
5350
 
5351
 
    CXXFLAGS="$ac_cxxflags_safe"    
 
5351
    CXXFLAGS="$ac_cxxflags_safe"
5352
5352
    AC_LANG_RESTORE
5353
5353
 
5354
5354
    dnl All tests ok, inform and subst the variables
5357
5357
    JAVAH=$kde_java_bindir/javah
5358
5358
    JAR=$kde_java_bindir/jar
5359
5359
    AC_DEFINE_UNQUOTED(PATH_JAVA, "$kde_java_bindir/java", [Define where your java executable is])
5360
 
    if test "x$kde_java_libgcjdir" = "x"; then 
 
5360
    if test "x$kde_java_libgcjdir" = "x"; then
5361
5361
      JVMLIBS="-L$kde_java_libjvmdir -ljvm -L$kde_java_libhpidir -lhpi"
5362
5362
    else
5363
5363
      JVMLIBS="-L$kde_java_libgcjdir -lgcj"
5452
5452
 
5453
5453
  AC_ARG_WITH(qtopia-dir,
5454
5454
              AC_HELP_STRING([--with-qtopia-dir=DIR],[where the root of Qtopia is installed]),
5455
 
              [  ac_qtopia_incdir="$withval"/include] ) 
5456
 
  
 
5455
              [  ac_qtopia_incdir="$withval"/include] )
 
5456
 
5457
5457
  qtopia_incdirs=""
5458
5458
  for dir in $kde_qtopia_dirs; do
5459
5459
    qtopia_incdirs="$qtopia_incdirs $dir/include"
5629
5629
   ])dnl
5630
5630
 
5631
5631
   AC_MSG_RESULT($ac_cv_lib_bzip2_prefix)
5632
 
   
 
5632
 
5633
5633
   if test ! "$ac_cv_lib_bzip2_prefix" = no; then
5634
5634
     BZIP2DIR=bzip2
5635
 
    
 
5635
 
5636
5636
     LIBBZ2="$ac_cv_lib_bzip2_prefix"
5637
5637
     AC_SUBST(LIBBZ2)
5638
5638
 
5675
5675
 
5676
5676
AC_CACHE_VAL(ac_cv_have_ssl,
5677
5677
[#try to guess OpenSSL locations
5678
 
  
 
5678
 
5679
5679
  ssl_incdirs="/usr/include /usr/local/include /usr/ssl/include /usr/local/ssl/include $prefix/include $kde_extra_includes"
5680
5680
  ssl_incdirs="$ac_ssl_includes $ssl_incdirs"
5681
5681
  AC_FIND_FILE(openssl/ssl.h, $ssl_incdirs, ssl_incdir)
5742
5742
#include <openssl/opensslv.h>
5743
5743
#include <stdio.h>
5744
5744
    int main() {
5745
 
 
 
5745
 
5746
5746
#ifndef OPENSSL_VERSION_NUMBER
5747
5747
      printf("ssl_version=\\"error\\"\n");
5748
5748
#else
5760
5760
        CPPFLAGS="$CPPFLAGS -I$ac_ssl_includes"
5761
5761
    fi
5762
5762
 
5763
 
    if AC_TRY_EVAL(ac_link); then 
 
5763
    if AC_TRY_EVAL(ac_link); then
5764
5764
 
5765
5765
      if eval `./conftest 2>&5`; then
5766
5766
        if test $ssl_version = error; then
5774
5774
        ac_cv_ssl_version="ssl_version=$ssl_version"
5775
5775
      else
5776
5776
        AC_MSG_ERROR([Your system couldn't run a small SSL test program.
5777
 
        Check config.log, and if you can't figure it out, send a mail to 
 
5777
        Check config.log, and if you can't figure it out, send a mail to
5778
5778
        David Faure <faure@kde.org>, attaching your config.log])
5779
5779
      fi
5780
5780
 
5781
5781
    else
5782
5782
      AC_MSG_ERROR([Your system couldn't link a small SSL test program.
5783
 
      Check config.log, and if you can't figure it out, send a mail to 
 
5783
      Check config.log, and if you can't figure it out, send a mail to
5784
5784
      David Faure <faure@kde.org>, attaching your config.log])
5785
 
    fi 
 
5785
    fi
5786
5786
    CPPFLAGS=$ac_save_CPPFLAGS
5787
5787
 
5788
5788
  ])
5797
5797
  AC_DEFINE(HAVE_SSL, 1, [If we are going to use OpenSSL])
5798
5798
  ac_cv_have_ssl="have_ssl=yes \
5799
5799
    ac_ssl_includes=$ac_ssl_includes ac_ssl_libraries=$ac_ssl_libraries ac_ssl_rsaref=$ac_ssl_rsaref"
5800
 
  
5801
 
  
 
5800
 
 
5801
 
5802
5802
  ssl_libraries="$ac_ssl_libraries"
5803
5803
  ssl_includes="$ac_ssl_includes"
5804
5804
 
5805
5805
  if test "$ac_ssl_rsaref" = yes; then
5806
 
    LIBSSL="-lssl -lcrypto -lRSAglue -lrsaref" 
 
5806
    LIBSSL="-lssl -lcrypto -lRSAglue -lrsaref"
5807
5807
  fi
5808
5808
 
5809
5809
  if test $ssl_version = "old"; then
5847
5847
    ],AC_MSG_RESULT([yes]),[
5848
5848
      AC_MSG_RESULT(no)
5849
5849
      AC_MSG_ERROR([
5850
 
       Apparently on your system our assumption sizeof size_t == sizeof unsigned long 
 
5850
       Apparently on your system our assumption sizeof size_t == sizeof unsigned long
5851
5851
       does not apply. Please mail kde-devel@kde.org with a description of your system!
5852
5852
      ])
5853
5853
  ])
5872
5872
], kde_supports_versionmaps=yes, kde_supports_versionmaps=no)
5873
5873
  LDFLAGS="$kde_save_LDFLAGS"
5874
5874
  rm -f conftest.map
5875
 
  AM_CONDITIONAL(include_VERSION_SCRIPT, 
 
5875
  AM_CONDITIONAL(include_VERSION_SCRIPT,
5876
5876
    [test "$kde_supports_versionmaps" = "yes" && test "$kde_use_debug_code" = "no"])
5877
5877
 
5878
5878
  AC_MSG_RESULT($kde_supports_versionmaps)