8076
8076
$as_echo_n "checking dynamic linker characteristics... " >&6; }
8078
8078
if test "$GCC" = yes; then
8079
@@ -11698,1361 +11262,302 @@
8080
case $LD in # libtool.m4 will add one of these switches to LD
8081
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8082
libsuff= shlibsuff= libmagic=32-bit;;
8079
@@ -11689,1370 +11253,320 @@
8082
soname_spec='${libname}${release}${shared_ext}$major'
8083
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8085
- irix5* | nonstopux*)
8086
- libsuff= shlibsuff=
8089
- case $LD in # libtool.m4 will add one of these switches to LD
8090
- *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8091
- libsuff= shlibsuff= libmagic=32-bit;;
8083
8092
- *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8084
8093
- libsuff=32 shlibsuff=N32 libmagic=N32;;
8085
8094
- *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9299
9308
- x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9300
9309
- x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9301
9310
- x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9311
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9313
+ irix5* | nonstopux*)
9314
+ libsuff= shlibsuff=
9317
+ case $LD in # libtool.m4 will add one of these switches to LD
9318
+ *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9319
+ libsuff= shlibsuff= libmagic=32-bit;;
9320
+ *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9321
+ libsuff=32 shlibsuff=N32 libmagic=N32;;
9322
+ *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9323
+ libsuff=64 shlibsuff=64 libmagic=64-bit;;
9324
+ *) libsuff= shlibsuff= libmagic=never-match;;
9304
9327
- # compilation failed
9305
9328
- lt_cv_dlopen_self_static=no
9457
9468
+ dynamic_linker='ldqnx.so'
9462
-{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9463
-$as_echo_n "checking whether stripping libraries is possible... " >&6; }
9464
-if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9465
- test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9466
- test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9467
- { $as_echo "$as_me:$LINENO: result: yes" >&5
9468
-$as_echo "yes" >&6; }
9470
-# FIXME - insert some real tests, host_os isn't really good enough
9472
9472
+ version_type=sunos
9473
9473
+ sys_lib_dlsearch_path_spec="/usr/lib"
9474
9474
+ need_lib_prefix=no
9475
9475
+ # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9478
- if test -n "$STRIP" ; then
9479
- striplib="$STRIP -x"
9480
- old_striplib="$STRIP -S"
9481
- { $as_echo "$as_me:$LINENO: result: yes" >&5
9482
-$as_echo "yes" >&6; }
9484
- { $as_echo "$as_me:$LINENO: result: no" >&5
9485
-$as_echo "no" >&6; }
9489
- { $as_echo "$as_me:$LINENO: result: no" >&5
9490
-$as_echo "no" >&6; }
9492
9477
+ openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9493
9478
+ *) need_version=no ;;
9500
9480
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9501
9481
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9502
9482
+ shlibpath_var=LD_LIBRARY_PATH
9563
9543
+ need_version=yes
9548
-{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9549
-$as_echo_n "checking whether stripping libraries is possible... " >&6; }
9550
-if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9551
- test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9552
- test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9553
- { $as_echo "$as_me:$LINENO: result: yes" >&5
9554
-$as_echo "yes" >&6; }
9556
-# FIXME - insert some real tests, host_os isn't really good enough
9559
- if test -n "$STRIP" ; then
9560
- striplib="$STRIP -x"
9561
- old_striplib="$STRIP -S"
9562
- { $as_echo "$as_me:$LINENO: result: yes" >&5
9563
-$as_echo "yes" >&6; }
9565
- { $as_echo "$as_me:$LINENO: result: no" >&5
9566
-$as_echo "no" >&6; }
9570
- { $as_echo "$as_me:$LINENO: result: no" >&5
9571
-$as_echo "no" >&6; }
9566
9573
+sysv4 | sysv4.3*)
9567
9574
+ version_type=linux
9568
9575
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9622
9627
+ sys_lib_dlsearch_path_spec='/usr/lib'
9631
+ # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9632
+ version_type=linux
9633
+ need_lib_prefix=no
9635
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9636
+ shlibpath_var=LD_LIBRARY_PATH
9637
+ shlibpath_overrides_runpath=no
9638
+ hardcode_into_libs=yes
9642
+ version_type=linux
9643
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9644
+ soname_spec='${libname}${release}${shared_ext}$major'
9645
+ shlibpath_var=LD_LIBRARY_PATH
9652
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9653
+$as_echo "$dynamic_linker" >&6; }
9654
+test "$dynamic_linker" = no && can_build_shared=no
9656
+variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9657
+if test "$GCC" = yes; then
9658
+ variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9661
+if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9662
+ sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9664
+if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9665
+ sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9672
- # Report which library types will actually be built
9673
- { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9674
-$as_echo_n "checking if libtool supports shared libraries... " >&6; }
9675
- { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
9676
-$as_echo "$can_build_shared" >&6; }
9625
9678
- { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9626
9679
-$as_echo_n "checking whether to build shared libraries... " >&6; }
9627
9680
- test "$can_build_shared" = "no" && enable_shared=no
9629
+ # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9630
+ version_type=linux
9631
+ need_lib_prefix=no
9633
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9634
+ shlibpath_var=LD_LIBRARY_PATH
9635
+ shlibpath_overrides_runpath=no
9636
+ hardcode_into_libs=yes
9639
9682
- # On AIX, shared libraries and static libraries use the same namespace, and
9640
9683
- # are all built from PIC.
10586
10605
-static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
10587
10606
-test_array [0] = 0
10593
-rm -f conftest.$ac_objext
10594
-if { (ac_try="$ac_compile"
10595
-case "(($ac_try" in
10596
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10597
- *) ac_try_echo=$ac_try;;
10599
-eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10600
-$as_echo "$ac_try_echo") >&5
10601
- (eval "$ac_compile") 2>conftest.er1
10603
- grep -v '^ *+' conftest.er1 >conftest.err
10604
- rm -f conftest.er1
10605
- cat conftest.err >&5
10606
- $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607
- (exit $ac_status); } && {
10608
- test -z "$ac_c_werror_flag" ||
10609
- test ! -s conftest.err
10610
- } && test -s conftest.$ac_objext; then
10611
- ac_lo=$ac_mid; break
10613
- $as_echo "$as_me: failed program was:" >&5
10614
-sed 's/^/| /' conftest.$ac_ext >&5
10616
- ac_hi=`expr '(' $ac_mid ')' - 1`
10617
- if test $ac_mid -le $ac_hi; then
10621
- ac_mid=`expr 2 '*' $ac_mid`
10624
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10627
- $as_echo "$as_me: failed program was:" >&5
10628
-sed 's/^/| /' conftest.$ac_ext >&5
10636
10607
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10637
10608
+$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10638
10609
+hardcode_action=
10639
10610
+if test -n "$hardcode_libdir_flag_spec" ||
10640
10611
+ test -n "$runpath_var" ||
10641
10612
+ test "X$hardcode_automatic" = "Xyes" ; then
10618
-rm -f conftest.$ac_objext
10619
-if { (ac_try="$ac_compile"
10620
-case "(($ac_try" in
10621
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10622
- *) ac_try_echo=$ac_try;;
10624
-eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10625
-$as_echo "$ac_try_echo") >&5
10626
- (eval "$ac_compile") 2>conftest.er1
10628
- grep -v '^ *+' conftest.er1 >conftest.err
10629
- rm -f conftest.er1
10630
- cat conftest.err >&5
10631
- $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10632
- (exit $ac_status); } && {
10633
- test -z "$ac_c_werror_flag" ||
10634
- test ! -s conftest.err
10635
- } && test -s conftest.$ac_objext; then
10636
- ac_lo=$ac_mid; break
10643
10637
+ # We can hardcode non-existent directories.
10644
10638
+ if test "$hardcode_direct" != no &&
10645
10639
+ # If the only mechanism to avoid hardcoding is shlibpath_var, we
10653
10647
+ # We can link without hardcoding, and we can hardcode nonexisting dirs.
10654
10648
+ hardcode_action=immediate
10651
- $as_echo "$as_me: failed program was:" >&5
10652
-sed 's/^/| /' conftest.$ac_ext >&5
10657
10653
+ # We cannot hardcode anything, or else we can only hardcode existing
10658
10654
+ # directories.
10659
10655
+ hardcode_action=unsupported
10661
10657
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10662
10658
+$as_echo "$hardcode_action" >&6; }
10664
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10660
- ac_hi=`expr '(' $ac_mid ')' - 1`
10661
- if test $ac_mid -le $ac_hi; then
10665
- ac_mid=`expr 2 '*' $ac_mid`
10665
10666
+if test "$hardcode_action" = relink ||
10666
10667
+ test "$inherit_rpath" = yes; then
10667
10668
+ # Fast installation is not supported
11272
11310
+ cat > conftest.$ac_ext <<_LT_EOF
11273
11311
+#line 11973 "configure"
11274
11312
+#include "confdefs.h"
11314
- ac_lo=`expr '(' $ac_mid ')' + 1`
11276
11316
+#if HAVE_DLFCN_H
11277
11317
+#include <dlfcn.h>
11280
+#include <stdio.h>
11320
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11323
-?*) ac_cv_sizeof_int=$ac_lo;;
11324
-'') if test "$ac_cv_type_int" = yes; then
11325
- { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11326
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11327
-{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
11328
-See \`config.log' for more details." >&5
11329
-$as_echo "$as_me: error: cannot compute sizeof (int)
11330
-See \`config.log' for more details." >&2;}
11331
- { (exit 77); exit 77; }; }; }
11333
- ac_cv_sizeof_int=0
11337
- cat >conftest.$ac_ext <<_ACEOF
11340
-cat confdefs.h >>conftest.$ac_ext
11341
-cat >>conftest.$ac_ext <<_ACEOF
11342
-/* end confdefs.h. */
11343
-$ac_includes_default
11344
-static long int longval () { return (long int) (sizeof (int)); }
11345
-static unsigned long int ulongval () { return (long int) (sizeof (int)); }
11347
-#include <stdlib.h>
11282
11351
+#ifdef RTLD_GLOBAL
11283
11352
+# define LT_DLGLOBAL RTLD_GLOBAL
11314
11383
+void fnord() { int i=42;}
11317
-static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
11318
-test_array [0] = 0
11319
11386
+ void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11320
11387
+ int status = $lt_dlunknown;
11389
- FILE *f = fopen ("conftest.val", "w");
11392
- if (((long int) (sizeof (int))) < 0)
11395
- long int i = longval ();
11396
- if (i != ((long int) (sizeof (int))))
11398
- fprintf (f, "%ld", i);
11326
11399
+ if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11327
11400
+ else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11328
11401
+ /* dlclose (self); */
11405
- unsigned long int i = ulongval ();
11406
- if (i != ((long int) (sizeof (int))))
11408
- fprintf (f, "%lu", i);
11410
- /* Do not output a trailing newline, as this causes \r\n confusion
11411
- on some platforms. */
11412
- return ferror (f) || fclose (f) != 0;
11331
11413
+ puts (dlerror ());
11333
11417
+ return status;
11336
-rm -f conftest.$ac_objext
11337
-if { (ac_try="$ac_compile"
11420
-rm -f conftest$ac_exeext
11421
-if { (ac_try="$ac_link"
11338
11422
-case "(($ac_try" in
11339
11423
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11340
11424
- *) ac_try_echo=$ac_try;;
11342
11426
-eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11343
11427
-$as_echo "$ac_try_echo") >&5
11344
- (eval "$ac_compile") 2>conftest.er1
11428
- (eval "$ac_link") 2>&5
11430
- $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431
- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11432
- { (case "(($ac_try" in
11433
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11434
- *) ac_try_echo=$ac_try;;
11436
-eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11437
-$as_echo "$ac_try_echo") >&5
11438
- (eval "$ac_try") 2>&5
11346
11440
+ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11347
11441
+ (eval $ac_link) 2>&5
11349
- grep -v '^ *+' conftest.er1 >conftest.err
11350
- rm -f conftest.er1
11351
- cat conftest.err >&5
11352
11443
- $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11353
- (exit $ac_status); } && {
11354
- test -z "$ac_c_werror_flag" ||
11355
- test ! -s conftest.err
11356
- } && test -s conftest.$ac_objext; then
11444
- (exit $ac_status); }; }; then
11445
- ac_cv_sizeof_int=`cat conftest.val`
11359
- $as_echo "$as_me: failed program was:" >&5
11447
- $as_echo "$as_me: program exited with status $ac_status" >&5
11448
-$as_echo "$as_me: failed program was:" >&5
11360
11449
-sed 's/^/| /' conftest.$ac_ext >&5
11451
-( exit $ac_status )
11452
-if test "$ac_cv_type_int" = yes; then
11453
- { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11454
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11455
-{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
11456
-See \`config.log' for more details." >&5
11457
-$as_echo "$as_me: error: cannot compute sizeof (int)
11458
-See \`config.log' for more details." >&2;}
11459
- { (exit 77); exit 77; }; }; }
11461
- ac_cv_sizeof_int=0
11464
-rm -rf conftest.dSYM
11465
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11361
11466
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11362
11467
+ test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11363
11468
+ (./conftest; exit; ) >&5 2>/dev/null
11371
11476
+ # compilation failed
11372
11477
+ lt_cv_dlopen_self=no
11480
-rm -f conftest.val
11375
11481
+rm -fr conftest*
11378
- ac_lo=`expr '(' $ac_mid ')' + 1`
11485
-{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
11486
-$as_echo "$ac_cv_sizeof_int" >&6; }
11380
11487
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11381
11488
+$as_echo "$lt_cv_dlopen_self" >&6; }
11383
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11386
-?*) ac_cv_sizeof_int=$ac_lo;;
11387
-'') if test "$ac_cv_type_int" = yes; then
11388
- { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11389
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11390
-{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
11391
-See \`config.log' for more details." >&5
11392
-$as_echo "$as_me: error: cannot compute sizeof (int)
11393
-See \`config.log' for more details." >&2;}
11394
- { (exit 77); exit 77; }; }; }
11396
- ac_cv_sizeof_int=0
11399
11490
+ if test "x$lt_cv_dlopen_self" = xyes; then
11400
11491
+ wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11401
11492
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11402
11493
+$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11403
11494
+if test "${lt_cv_dlopen_self_static+set}" = set; then :
11404
11495
+ $as_echo_n "(cached) " >&6
11406
- cat >conftest.$ac_ext <<_ACEOF
11409
-cat confdefs.h >>conftest.$ac_ext
11410
-cat >>conftest.$ac_ext <<_ACEOF
11411
-/* end confdefs.h. */
11412
-$ac_includes_default
11413
-static long int longval () { return (long int) (sizeof (int)); }
11414
-static unsigned long int ulongval () { return (long int) (sizeof (int)); }
11415
11497
+ if test "$cross_compiling" = yes; then :
11416
11498
+ lt_cv_dlopen_self_static=cross
11420
11502
+ cat > conftest.$ac_ext <<_LT_EOF
11421
11503
+#line 12069 "configure"
11422
11504
+#include "confdefs.h"
11424
11506
+#if HAVE_DLFCN_H
11425
11507
+#include <dlfcn.h>
11429
-#include <stdlib.h>
11433
+#ifdef RTLD_GLOBAL
11434
+# define LT_DLGLOBAL RTLD_GLOBAL
11437
+# define LT_DLGLOBAL DL_GLOBAL
11439
+# define LT_DLGLOBAL 0
11443
+/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11444
+ find out it does not work in some platform. */
11445
+#ifndef LT_DLLAZY_OR_NOW
11447
+# define LT_DLLAZY_OR_NOW RTLD_LAZY
11450
+# define LT_DLLAZY_OR_NOW DL_LAZY
11453
+# define LT_DLLAZY_OR_NOW RTLD_NOW
11456
+# define LT_DLLAZY_OR_NOW DL_NOW
11458
+# define LT_DLLAZY_OR_NOW 0
11465
+void fnord() { int i=42;}
11468
+ void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11469
+ int status = $lt_dlunknown;
11471
- FILE *f = fopen ("conftest.val", "w");
11474
- if (((long int) (sizeof (int))) < 0)
11477
- long int i = longval ();
11478
- if (i != ((long int) (sizeof (int))))
11480
- fprintf (f, "%ld", i);
11481
+ if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11482
+ else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11483
+ /* dlclose (self); */
11487
- unsigned long int i = ulongval ();
11488
- if (i != ((long int) (sizeof (int))))
11490
- fprintf (f, "%lu", i);
11492
- /* Do not output a trailing newline, as this causes \r\n confusion
11493
- on some platforms. */
11494
- return ferror (f) || fclose (f) != 0;
11495
+ puts (dlerror ());
11502
-rm -f conftest$ac_exeext
11503
-if { (ac_try="$ac_link"
11504
-case "(($ac_try" in
11505
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11506
- *) ac_try_echo=$ac_try;;
11508
-eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11509
-$as_echo "$ac_try_echo") >&5
11510
- (eval "$ac_link") 2>&5
11512
- $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11513
- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11514
- { (case "(($ac_try" in
11515
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11516
- *) ac_try_echo=$ac_try;;
11518
-eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11519
-$as_echo "$ac_try_echo") >&5
11520
- (eval "$ac_try") 2>&5
11522
+ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11523
+ (eval $ac_link) 2>&5
11525
- $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526
- (exit $ac_status); }; }; then
11527
- ac_cv_sizeof_int=`cat conftest.val`
11529
- $as_echo "$as_me: program exited with status $ac_status" >&5
11530
-$as_echo "$as_me: failed program was:" >&5
11531
-sed 's/^/| /' conftest.$ac_ext >&5
11533
-( exit $ac_status )
11534
-if test "$ac_cv_type_int" = yes; then
11535
- { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11536
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11537
-{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
11538
-See \`config.log' for more details." >&5
11539
-$as_echo "$as_me: error: cannot compute sizeof (int)
11540
-See \`config.log' for more details." >&2;}
11541
- { (exit 77); exit 77; }; }; }
11543
- ac_cv_sizeof_int=0
11546
-rm -rf conftest.dSYM
11547
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11549
-rm -f conftest.val
11550
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11551
+ test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11552
+ (./conftest; exit; ) >&5 2>/dev/null
11554
+ case x$lt_status in
11555
+ x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11556
+ x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11557
+ x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11560
+ # compilation failed
11561
+ lt_cv_dlopen_self_static=no
11564
-{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
11565
-$as_echo "$ac_cv_sizeof_int" >&6; }
11510
+#include <stdio.h>
11569
11512
-cat >>confdefs.h <<_ACEOF
11570
11513
-#define SIZEOF_INT $ac_cv_sizeof_int
11515
+#ifdef RTLD_GLOBAL
11516
+# define LT_DLGLOBAL RTLD_GLOBAL
11519
+# define LT_DLGLOBAL DL_GLOBAL
11521
+# define LT_DLGLOBAL 0
11525
+/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11526
+ find out it does not work in some platform. */
11527
+#ifndef LT_DLLAZY_OR_NOW
11529
+# define LT_DLLAZY_OR_NOW RTLD_LAZY
11532
+# define LT_DLLAZY_OR_NOW DL_LAZY
11535
+# define LT_DLLAZY_OR_NOW RTLD_NOW
11538
+# define LT_DLLAZY_OR_NOW DL_NOW
11540
+# define LT_DLLAZY_OR_NOW 0
11575
11547
-# The cast to long int works around a bug in the HP C Compiler
11576
11548
-# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11592
11564
-$ac_includes_default
11567
+void fnord() { int i=42;}
11596
11570
-static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
11597
11571
-test_array [0] = 0
11572
+ void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11573
+ int status = $lt_dlunknown;
11579
-rm -f conftest.$ac_objext
11580
-if { (ac_try="$ac_compile"
11581
-case "(($ac_try" in
11582
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11583
- *) ac_try_echo=$ac_try;;
11585
-eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11586
-$as_echo "$ac_try_echo") >&5
11587
- (eval "$ac_compile") 2>conftest.er1
11589
- grep -v '^ *+' conftest.er1 >conftest.err
11590
- rm -f conftest.er1
11591
- cat conftest.err >&5
11592
- $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593
- (exit $ac_status); } && {
11594
- test -z "$ac_c_werror_flag" ||
11595
- test ! -s conftest.err
11596
- } && test -s conftest.$ac_objext; then
11599
- cat >conftest.$ac_ext <<_ACEOF
11602
-cat confdefs.h >>conftest.$ac_ext
11603
-cat >>conftest.$ac_ext <<_ACEOF
11604
-/* end confdefs.h. */
11605
-$ac_includes_default
11609
-static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
11610
-test_array [0] = 0
11613
+ if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11614
+ else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11615
+ /* dlclose (self); */
11618
+ puts (dlerror ());
11625
-rm -f conftest.$ac_objext
11626
-if { (ac_try="$ac_compile"
11627
-case "(($ac_try" in
11628
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11629
- *) ac_try_echo=$ac_try;;
11631
-eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11632
-$as_echo "$ac_try_echo") >&5
11633
- (eval "$ac_compile") 2>conftest.er1
11635
+ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11636
+ (eval $ac_link) 2>&5
11638
- grep -v '^ *+' conftest.er1 >conftest.err
11639
- rm -f conftest.er1
11640
- cat conftest.err >&5
11641
- $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642
- (exit $ac_status); } && {
11643
- test -z "$ac_c_werror_flag" ||
11644
- test ! -s conftest.err
11645
- } && test -s conftest.$ac_objext; then
11646
- ac_hi=$ac_mid; break
11648
- $as_echo "$as_me: failed program was:" >&5
11649
-sed 's/^/| /' conftest.$ac_ext >&5
11650
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11651
+ test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11652
+ (./conftest; exit; ) >&5 2>/dev/null
11654
+ case x$lt_status in
11655
+ x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11656
+ x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11657
+ x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11660
+ # compilation failed
11661
+ lt_cv_dlopen_self_static=no
11599
11668
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11600
11669
+$as_echo "$lt_cv_dlopen_self_static" >&6; }
11607
-rm -f conftest.$ac_objext
11608
-if { (ac_try="$ac_compile"
11609
-case "(($ac_try" in
11610
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11611
- *) ac_try_echo=$ac_try;;
11613
-eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11614
-$as_echo "$ac_try_echo") >&5
11615
- (eval "$ac_compile") 2>conftest.er1
11617
- grep -v '^ *+' conftest.er1 >conftest.err
11618
- rm -f conftest.er1
11619
- cat conftest.err >&5
11620
- $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621
- (exit $ac_status); } && {
11622
- test -z "$ac_c_werror_flag" ||
11623
- test ! -s conftest.err
11624
- } && test -s conftest.$ac_objext; then
11627
- cat >conftest.$ac_ext <<_ACEOF
11630
-cat confdefs.h >>conftest.$ac_ext
11631
-cat >>conftest.$ac_ext <<_ACEOF
11632
-/* end confdefs.h. */
11633
-$ac_includes_default
11637
-static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
11638
-test_array [0] = 0
11639
11672
+ CPPFLAGS="$save_CPPFLAGS"
11640
11673
+ LDFLAGS="$save_LDFLAGS"
11641
11674
+ LIBS="$save_LIBS"
11649
-rm -f conftest.$ac_objext
11650
-if { (ac_try="$ac_compile"
11651
-case "(($ac_try" in
11652
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11653
- *) ac_try_echo=$ac_try;;
11655
-eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11656
-$as_echo "$ac_try_echo") >&5
11657
- (eval "$ac_compile") 2>conftest.er1
11659
- grep -v '^ *+' conftest.er1 >conftest.err
11660
- rm -f conftest.er1
11661
- cat conftest.err >&5
11662
- $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663
- (exit $ac_status); } && {
11664
- test -z "$ac_c_werror_flag" ||
11665
- test ! -s conftest.err
11666
- } && test -s conftest.$ac_objext; then
11667
- ac_hi=$ac_mid; break
11669
- $as_echo "$as_me: failed program was:" >&5
11670
-sed 's/^/| /' conftest.$ac_ext >&5
11671
11678
+ case $lt_cv_dlopen_self in
11672
11679
+ yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11673
11680
+ *) enable_dlopen_self=unknown ;;
15714
15706
-cat >>confdefs.h <<\_ACEOF
15715
15707
-#define HAVE_XCURSOR /**/
15717
+$as_echo "#define HAVE_XCURSOR /**/" >>confdefs.h
15721
15712
-{ $as_echo "$as_me:$LINENO: checking libgtop" >&5
15722
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libgtop" >&5
15723
$as_echo_n "checking libgtop... " >&6; }
15724
if $PKG_CONFIG libgtop-2.0; then
15713
-$as_echo_n "checking libgtop... " >&6; }
15714
-if $PKG_CONFIG libgtop-2.0; then
15729
15719
- { $as_echo "$as_me:$LINENO: result: $have_gtop" >&5
15730
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gtop" >&5
15731
$as_echo "$have_gtop" >&6; }
15733
if test x$have_gtop = xyes; then
15734
echo "Building with libgtop"
15735
METACITY_PC_MODULES="$METACITY_PC_MODULES libgtop-2.0"
15720
-$as_echo "$have_gtop" >&6; }
15722
-if test x$have_gtop = xyes; then
15723
- echo "Building with libgtop"
15724
- METACITY_PC_MODULES="$METACITY_PC_MODULES libgtop-2.0"
15737
15726
-cat >>confdefs.h <<\_ACEOF
15738
15727
-#define HAVE_GTOP /**/
15740
+$as_echo "#define HAVE_GTOP /**/" >>confdefs.h
15729
+$as_echo "#define HAVE_XCURSOR /**/" >>confdefs.h