~ubuntu-branches/ubuntu/wily/alsaplayer/wily

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Hubert Chathi
  • Date: 2007-10-10 15:33:10 UTC
  • mto: (9.2.5 sid)
  • mto: This revision was merged to the branch mainline in revision 15.
  • Revision ID: james.westby@ubuntu.com-20071010153310-h3holq75eu2cigb0
Tags: upstream-0.99.80~rc4
ImportĀ upstreamĀ versionĀ 0.99.80~rc4

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
You have another version of autoconf.  If you want to use that,
17
17
you should regenerate the build system entirely.], [63])])
18
18
 
19
 
# Configure paths for GLIB
20
 
# Owen Taylor     97-11-3
21
 
 
22
 
dnl AM_PATH_GLIB([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]])
23
 
dnl Test for GLIB, and define GLIB_CFLAGS and GLIB_LIBS, if "gmodule" or 
24
 
dnl gthread is specified in MODULES, pass to glib-config
25
 
dnl
26
 
AC_DEFUN([AM_PATH_GLIB],
27
 
[dnl 
28
 
dnl Get the cflags and libraries from the glib-config script
29
 
dnl
30
 
AC_ARG_WITH(glib-prefix,[  --with-glib-prefix=PFX   Prefix where GLIB is installed (optional)],
31
 
            glib_config_prefix="$withval", glib_config_prefix="")
32
 
AC_ARG_WITH(glib-exec-prefix,[  --with-glib-exec-prefix=PFX Exec prefix where GLIB is installed (optional)],
33
 
            glib_config_exec_prefix="$withval", glib_config_exec_prefix="")
34
 
AC_ARG_ENABLE(glibtest, [  --disable-glibtest       Do not try to compile and run a test GLIB program],
35
 
                    , enable_glibtest=yes)
36
 
 
37
 
  if test x$glib_config_exec_prefix != x ; then
38
 
     glib_config_args="$glib_config_args --exec-prefix=$glib_config_exec_prefix"
39
 
     if test x${GLIB_CONFIG+set} != xset ; then
40
 
        GLIB_CONFIG=$glib_config_exec_prefix/bin/glib-config
41
 
     fi
42
 
  fi
43
 
  if test x$glib_config_prefix != x ; then
44
 
     glib_config_args="$glib_config_args --prefix=$glib_config_prefix"
45
 
     if test x${GLIB_CONFIG+set} != xset ; then
46
 
        GLIB_CONFIG=$glib_config_prefix/bin/glib-config
47
 
     fi
48
 
  fi
49
 
 
50
 
  for module in . $4
51
 
  do
52
 
      case "$module" in
53
 
         gmodule) 
54
 
             glib_config_args="$glib_config_args gmodule"
55
 
         ;;
56
 
         gthread) 
57
 
             glib_config_args="$glib_config_args gthread"
58
 
         ;;
59
 
      esac
60
 
  done
61
 
 
62
 
  AC_PATH_PROG(GLIB_CONFIG, glib-config, no)
63
 
  min_glib_version=ifelse([$1], ,0.99.7,$1)
64
 
  AC_MSG_CHECKING(for GLIB - version >= $min_glib_version)
65
 
  no_glib=""
66
 
  if test "$GLIB_CONFIG" = "no" ; then
67
 
    no_glib=yes
68
 
  else
69
 
    GLIB_CFLAGS=`$GLIB_CONFIG $glib_config_args --cflags`
70
 
    GLIB_LIBS=`$GLIB_CONFIG $glib_config_args --libs`
71
 
    glib_config_major_version=`$GLIB_CONFIG $glib_config_args --version | \
72
 
           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
73
 
    glib_config_minor_version=`$GLIB_CONFIG $glib_config_args --version | \
74
 
           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
75
 
    glib_config_micro_version=`$GLIB_CONFIG $glib_config_args --version | \
76
 
           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
77
 
    if test "x$enable_glibtest" = "xyes" ; then
78
 
      ac_save_CFLAGS="$CFLAGS"
79
 
      ac_save_LIBS="$LIBS"
80
 
      CFLAGS="$CFLAGS $GLIB_CFLAGS"
81
 
      LIBS="$GLIB_LIBS $LIBS"
82
 
dnl
83
 
dnl Now check if the installed GLIB is sufficiently new. (Also sanity
84
 
dnl checks the results of glib-config to some extent
85
 
dnl
86
 
      rm -f conf.glibtest
87
 
      AC_TRY_RUN([
88
 
#include <glib.h>
89
 
#include <stdio.h>
90
 
#include <stdlib.h>
91
 
 
92
 
int 
93
 
main ()
94
 
{
95
 
  int major, minor, micro;
96
 
  char *tmp_version;
97
 
 
98
 
  system ("touch conf.glibtest");
99
 
 
100
 
  /* HP/UX 9 (%@#!) writes to sscanf strings */
101
 
  tmp_version = g_strdup("$min_glib_version");
102
 
  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
103
 
     printf("%s, bad version string\n", "$min_glib_version");
104
 
     exit(1);
105
 
   }
106
 
 
107
 
  if ((glib_major_version != $glib_config_major_version) ||
108
 
      (glib_minor_version != $glib_config_minor_version) ||
109
 
      (glib_micro_version != $glib_config_micro_version))
110
 
    {
111
 
      printf("\n*** 'glib-config --version' returned %d.%d.%d, but GLIB (%d.%d.%d)\n", 
112
 
             $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
113
 
             glib_major_version, glib_minor_version, glib_micro_version);
114
 
      printf ("*** was found! If glib-config was correct, then it is best\n");
115
 
      printf ("*** to remove the old version of GLIB. You may also be able to fix the error\n");
116
 
      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
117
 
      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
118
 
      printf("*** required on your system.\n");
119
 
      printf("*** If glib-config was wrong, set the environment variable GLIB_CONFIG\n");
120
 
      printf("*** to point to the correct copy of glib-config, and remove the file config.cache\n");
121
 
      printf("*** before re-running configure\n");
122
 
    } 
123
 
  else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
124
 
           (glib_minor_version != GLIB_MINOR_VERSION) ||
125
 
           (glib_micro_version != GLIB_MICRO_VERSION))
126
 
    {
127
 
      printf("*** GLIB header files (version %d.%d.%d) do not match\n",
128
 
             GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
129
 
      printf("*** library (version %d.%d.%d)\n",
130
 
             glib_major_version, glib_minor_version, glib_micro_version);
131
 
    }
132
 
  else
133
 
    {
134
 
      if ((glib_major_version > major) ||
135
 
        ((glib_major_version == major) && (glib_minor_version > minor)) ||
136
 
        ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
137
 
      {
138
 
        return 0;
139
 
       }
140
 
     else
141
 
      {
142
 
        printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
143
 
               glib_major_version, glib_minor_version, glib_micro_version);
144
 
        printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
145
 
               major, minor, micro);
146
 
        printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
147
 
        printf("***\n");
148
 
        printf("*** If you have already installed a sufficiently new version, this error\n");
149
 
        printf("*** probably means that the wrong copy of the glib-config shell script is\n");
150
 
        printf("*** being found. The easiest way to fix this is to remove the old version\n");
151
 
        printf("*** of GLIB, but you can also set the GLIB_CONFIG environment to point to the\n");
152
 
        printf("*** correct copy of glib-config. (In this case, you will have to\n");
153
 
        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
154
 
        printf("*** so that the correct libraries are found at run-time))\n");
155
 
      }
156
 
    }
157
 
  return 1;
158
 
}
159
 
],, no_glib=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
160
 
       CFLAGS="$ac_save_CFLAGS"
161
 
       LIBS="$ac_save_LIBS"
162
 
     fi
163
 
  fi
164
 
  if test "x$no_glib" = x ; then
165
 
     AC_MSG_RESULT(yes)
166
 
     ifelse([$2], , :, [$2])     
167
 
  else
168
 
     AC_MSG_RESULT(no)
169
 
     if test "$GLIB_CONFIG" = "no" ; then
170
 
       echo "*** The glib-config script installed by GLIB could not be found"
171
 
       echo "*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in"
172
 
       echo "*** your path, or set the GLIB_CONFIG environment variable to the"
173
 
       echo "*** full path to glib-config."
174
 
     else
175
 
       if test -f conf.glibtest ; then
176
 
        :
177
 
       else
178
 
          echo "*** Could not run GLIB test program, checking why..."
179
 
          CFLAGS="$CFLAGS $GLIB_CFLAGS"
180
 
          LIBS="$LIBS $GLIB_LIBS"
181
 
          AC_TRY_LINK([
182
 
#include <glib.h>
183
 
#include <stdio.h>
184
 
],      [ return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); ],
185
 
        [ echo "*** The test program compiled, but did not run. This usually means"
186
 
          echo "*** that the run-time linker is not finding GLIB or finding the wrong"
187
 
          echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
188
 
          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
189
 
          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
190
 
          echo "*** is required on your system"
191
 
          echo "***"
192
 
          echo "*** If you have an old version installed, it is best to remove it, although"
193
 
          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
194
 
          echo "***"
195
 
          echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
196
 
          echo "*** came with the system with the command"
197
 
          echo "***"
198
 
          echo "***    rpm --erase --nodeps gtk gtk-devel" ],
199
 
        [ echo "*** The test program failed to compile or link. See the file config.log for the"
200
 
          echo "*** exact error that occured. This usually means GLIB was incorrectly installed"
201
 
          echo "*** or that you have moved GLIB since it was installed. In the latter case, you"
202
 
          echo "*** may want to edit the glib-config script: $GLIB_CONFIG" ])
203
 
          CFLAGS="$ac_save_CFLAGS"
204
 
          LIBS="$ac_save_LIBS"
205
 
       fi
206
 
     fi
207
 
     GLIB_CFLAGS=""
208
 
     GLIB_LIBS=""
209
 
     ifelse([$3], , :, [$3])
210
 
  fi
211
 
  AC_SUBST(GLIB_CFLAGS)
212
 
  AC_SUBST(GLIB_LIBS)
213
 
  rm -f conf.glibtest
214
 
])
215
 
 
216
19
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
217
20
 
218
 
# serial 48 AC_PROG_LIBTOOL
 
21
# serial 50 AC_PROG_LIBTOOL
219
22
 
220
23
 
221
24
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
448
251
*** \$ltmain is not defined, please check the patch for consistency! ***
449
252
])
450
253
fi
451
 
gentoo_lt_version="1.5.22"
 
254
gentoo_lt_version="1.5.23b"
452
255
gentoo_ltmain_version=`sed -n '/^[[     ]]*VERSION=/{s/^[[      ]]*VERSION=//;p;q;}' "$ltmain"`
453
256
if test "x$gentoo_lt_version" != "x$gentoo_ltmain_version" ; then
454
257
  AC_MSG_RESULT(no)
508
311
# Check for compiler boilerplate output or warnings with
509
312
# the simple compiler test code.
510
313
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
511
 
[ac_outfile=conftest.$ac_objext
512
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
314
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
315
ac_outfile=conftest.$ac_objext
 
316
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
513
317
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
514
318
_lt_compiler_boilerplate=`cat conftest.err`
515
319
$rm conftest*
521
325
# Check for linker boilerplate output or warnings with
522
326
# the simple link test code.
523
327
AC_DEFUN([_LT_LINKER_BOILERPLATE],
524
 
[ac_outfile=conftest.$ac_objext
525
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
328
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
329
ac_outfile=conftest.$ac_objext
 
330
echo "$lt_simple_link_test_code" >conftest.$ac_ext
526
331
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
527
332
_lt_linker_boilerplate=`cat conftest.err`
528
333
$rm conftest*
538
343
# If we don't find anything, use the default library path according
539
344
# to the aix ld manual.
540
345
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
541
 
[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
542
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
543
 
}'`
 
346
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
347
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
 
348
lt_aix_libpath_sed='
 
349
    /Import File Strings/,/^$/ {
 
350
        /^0/ {
 
351
            s/^0  *\(.*\)$/\1/
 
352
            p
 
353
        }
 
354
    }'
 
355
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
544
356
# Check for a 64-bit object if we didn't find anything.
545
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
546
 
}'`; fi],[])
 
357
if test -z "$aix_libpath"; then
 
358
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
359
fi],[])
547
360
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
548
361
])# _LT_AC_SYS_LIBPATH_AIX
549
362
 
774
587
  rm -rf conftest*
775
588
  ;;
776
589
 
777
 
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
590
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
591
s390*-*linux*|sparc*-*linux*)
778
592
  # Find out which ABI we are using.
779
593
  echo 'int i;' > conftest.$ac_ext
780
594
  if AC_TRY_EVAL(ac_compile); then
781
595
    case `/usr/bin/file conftest.o` in
782
596
    *32-bit*)
783
597
      case $host in
 
598
        x86_64-*kfreebsd*-gnu)
 
599
          LD="${LD-ld} -m elf_i386_fbsd"
 
600
          ;;
784
601
        x86_64-*linux*)
785
602
          LD="${LD-ld} -m elf_i386"
786
603
          ;;
797
614
      ;;
798
615
    *64-bit*)
799
616
      case $host in
 
617
        x86_64-*kfreebsd*-gnu)
 
618
          LD="${LD-ld} -m elf_x86_64_fbsd"
 
619
          ;;
800
620
        x86_64-*linux*)
801
621
          LD="${LD-ld} -m elf_x86_64"
802
622
          ;;
868
688
AC_CACHE_CHECK([$1], [$2],
869
689
  [$2=no
870
690
  ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
871
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
691
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
872
692
   lt_compiler_flag="$3"
873
693
   # Insert the option either (1) after the last *FLAGS variable, or
874
694
   # (2) before a word containing "conftest.", or (3) at the end.
909
729
# ------------------------------------------------------------
910
730
# Check whether the given compiler option works
911
731
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
912
 
[AC_CACHE_CHECK([$1], [$2],
 
732
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
733
AC_CACHE_CHECK([$1], [$2],
913
734
  [$2=no
914
735
   save_LDFLAGS="$LDFLAGS"
915
736
   LDFLAGS="$LDFLAGS $3"
916
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
737
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
917
738
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
918
739
     # The linker can only warn and ignore the option if not recognized
919
740
     # So say no if there are warnings
1271
1092
# ---------------------------------
1272
1093
# Check to see if options -c and -o are simultaneously supported by compiler
1273
1094
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1274
 
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
 
1095
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1096
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1275
1097
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1276
1098
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1277
1099
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1279
1101
   mkdir conftest
1280
1102
   cd conftest
1281
1103
   mkdir out
1282
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
1104
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1283
1105
 
1284
1106
   lt_compiler_flag="-o out/conftest2.$ac_objext"
1285
1107
   # Insert the option either (1) after the last *FLAGS variable, or
1419
1241
   darwin*)
1420
1242
       if test -n "$STRIP" ; then
1421
1243
         striplib="$STRIP -x"
 
1244
         old_striplib="$STRIP -S"
1422
1245
         AC_MSG_RESULT([yes])
1423
1246
       else
1424
1247
  AC_MSG_RESULT([no])
1436
1259
# -----------------------------
1437
1260
# PORTME Fill in your ld.so characteristics
1438
1261
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1439
 
[AC_MSG_CHECKING([dynamic linker characteristics])
 
1262
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1263
AC_MSG_CHECKING([dynamic linker characteristics])
1440
1264
library_names_spec=
1441
1265
libname_spec='lib$name'
1442
1266
soname_spec=
1450
1274
version_type=none
1451
1275
dynamic_linker="$host_os ld.so"
1452
1276
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
1277
m4_if($1,[],[
1453
1278
if test "$GCC" = yes; then
1454
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1455
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
1279
  case $host_os in
 
1280
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
1281
    *) lt_awk_arg="/^libraries:/" ;;
 
1282
  esac
 
1283
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
1284
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
1456
1285
    # if the path contains ";" then we assume it to be the separator
1457
1286
    # otherwise default to the standard path separator (i.e. ":") - it is
1458
1287
    # assumed that no part of a normal pathname contains ";" but that should
1459
1288
    # okay in the real world where ";" in dirpaths is itself problematic.
1460
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
1289
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
1461
1290
  else
1462
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
1291
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
1463
1292
  fi
 
1293
  # Ok, now we have the path, separated by spaces, we can step through it
 
1294
  # and add multilib dir if necessary.
 
1295
  lt_tmp_lt_search_path_spec=
 
1296
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
1297
  for lt_sys_path in $lt_search_path_spec; do
 
1298
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
1299
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
1300
    else
 
1301
      test -d "$lt_sys_path" && \
 
1302
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
1303
    fi
 
1304
  done
 
1305
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
 
1306
BEGIN {RS=" "; FS="/|\n";} {
 
1307
  lt_foo="";
 
1308
  lt_count=0;
 
1309
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
1310
    if ($lt_i != "" && $lt_i != ".") {
 
1311
      if ($lt_i == "..") {
 
1312
        lt_count++;
 
1313
      } else {
 
1314
        if (lt_count == 0) {
 
1315
          lt_foo="/" $lt_i lt_foo;
 
1316
        } else {
 
1317
          lt_count--;
 
1318
        }
 
1319
      }
 
1320
    }
 
1321
  }
 
1322
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
 
1323
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
 
1324
}'`
 
1325
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
1464
1326
else
1465
1327
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1466
 
fi
 
1328
fi])
1467
1329
need_lib_prefix=unknown
1468
1330
hardcode_into_libs=no
1469
1331
 
1601
1463
    esac
1602
1464
    ;;
1603
1465
 
1604
 
  linux*)
1605
 
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
1606
 
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1607
 
      supports_anon_versioning=no
1608
 
      case `$LD -v 2>/dev/null` in
1609
 
        *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
1610
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
1611
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
1612
 
        *\ 2.11.*) ;; # other 2.11 versions
1613
 
        *) supports_anon_versioning=yes ;;
1614
 
      esac
1615
 
      if test $supports_anon_versioning = yes; then
1616
 
        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
1617
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
1618
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
1619
 
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
1620
 
      else
1621
 
        $archive_expsym_cmds="$archive_cmds"
1622
 
      fi
1623
 
    else
1624
 
      ld_shlibs=no
1625
 
    fi
1626
 
    ;;
1627
 
 
1628
1466
  *)
1629
1467
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
1630
1468
    ;;
1644
1482
  shlibpath_overrides_runpath=yes
1645
1483
  shlibpath_var=DYLD_LIBRARY_PATH
1646
1484
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1647
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
1648
 
  if test "$GCC" = yes; then
1649
 
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
1650
 
  else
1651
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
1652
 
  fi
 
1485
  m4_if([$1], [],[
 
1486
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 
1653
1487
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1654
1488
  ;;
1655
1489
 
1666
1500
  dynamic_linker=no
1667
1501
  ;;
1668
1502
 
1669
 
kfreebsd*-gnu)
1670
 
  version_type=linux
1671
 
  need_lib_prefix=no
1672
 
  need_version=no
1673
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1674
 
  soname_spec='${libname}${release}${shared_ext}$major'
1675
 
  shlibpath_var=LD_LIBRARY_PATH
1676
 
  shlibpath_overrides_runpath=no
1677
 
  hardcode_into_libs=yes
1678
 
  dynamic_linker='GNU ld.so'
1679
 
  ;;
1680
 
 
1681
1503
freebsd* | dragonfly*)
1682
1504
  # DragonFly does not have aout.  When/if they implement a new
1683
1505
  # versioning mechanism, adjust this.
1728
1550
    shlibpath_overrides_runpath=no
1729
1551
    hardcode_into_libs=yes
1730
1552
    ;;
1731
 
  freebsd*) # from 4.6 on
 
1553
  *) # from 4.6 on, and DragonFly
1732
1554
    shlibpath_overrides_runpath=yes
1733
1555
    hardcode_into_libs=yes
1734
1556
    ;;
1846
1668
  ;;
1847
1669
 
1848
1670
# This must be Linux ELF.
1849
 
linux*)
 
1671
linux* | k*bsd*-gnu)
1850
1672
  version_type=linux
1851
1673
  need_lib_prefix=no
1852
1674
  need_version=no
1862
1684
 
1863
1685
  # Append ld.so.conf contents to the search path
1864
1686
  if test -f /etc/ld.so.conf; then
1865
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
1687
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1866
1688
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1867
1689
  fi
1868
1690
 
1875
1697
  dynamic_linker='GNU/Linux ld.so'
1876
1698
  ;;
1877
1699
 
1878
 
knetbsd*-gnu)
1879
 
  version_type=linux
1880
 
  need_lib_prefix=no
1881
 
  need_version=no
1882
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1883
 
  soname_spec='${libname}${release}${shared_ext}$major'
1884
 
  shlibpath_var=LD_LIBRARY_PATH
1885
 
  shlibpath_overrides_runpath=no
1886
 
  hardcode_into_libs=yes
1887
 
  dynamic_linker='GNU ld.so'
1888
 
  ;;
1889
 
 
1890
1700
netbsd*)
1891
1701
  version_type=sunos
1892
1702
  need_lib_prefix=no
1968
1778
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1969
1779
  ;;
1970
1780
 
 
1781
rdos*)
 
1782
  dynamic_linker=no
 
1783
  ;;
 
1784
 
1971
1785
solaris*)
1972
1786
  version_type=linux
1973
1787
  need_lib_prefix=no
2073
1887
# _LT_AC_TAGCONFIG
2074
1888
# ----------------
2075
1889
AC_DEFUN([_LT_AC_TAGCONFIG],
2076
 
[AC_ARG_WITH([tags],
 
1890
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1891
AC_ARG_WITH([tags],
2077
1892
    [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
2078
1893
        [include additional configurations @<:@automatic@:>@])],
2079
1894
    [tagnames="$withval"])
2334
2149
 
2335
2150
# AC_PATH_TOOL_PREFIX
2336
2151
# -------------------
2337
 
# find a file program which can recognise shared library
 
2152
# find a file program which can recognize shared library
2338
2153
AC_DEFUN([AC_PATH_TOOL_PREFIX],
2339
2154
[AC_REQUIRE([AC_PROG_EGREP])dnl
2340
2155
AC_MSG_CHECKING([for $1])
2397
2212
 
2398
2213
# AC_PATH_MAGIC
2399
2214
# -------------
2400
 
# find a file program which can recognise a shared library
 
2215
# find a file program which can recognize a shared library
2401
2216
AC_DEFUN([AC_PATH_MAGIC],
2402
2217
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2403
2218
if test -z "$lt_cv_path_MAGIC_CMD"; then
2544
2359
# how to check for library dependencies
2545
2360
#  -- PORTME fill in with the dynamic library characteristics
2546
2361
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2547
 
[AC_CACHE_CHECK([how to recognise dependent libraries],
 
2362
[AC_CACHE_CHECK([how to recognize dependent libraries],
2548
2363
lt_cv_deplibs_check_method,
2549
2364
[lt_cv_file_magic_cmd='$MAGIC_CMD'
2550
2365
lt_cv_file_magic_test_file=
2583
2398
 
2584
2399
mingw* | pw32*)
2585
2400
  # Base MSYS/MinGW do not provide the 'file' command needed by
2586
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
2587
 
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2588
 
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
2401
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
2402
  # unless we find 'file', for example because we are cross-compiling.
 
2403
  if ( file / ) >/dev/null 2>&1; then
 
2404
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
2405
    lt_cv_file_magic_cmd='func_win32_libid'
 
2406
  else
 
2407
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
2408
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
2409
  fi
2589
2410
  ;;
2590
2411
 
2591
2412
darwin* | rhapsody*)
2592
2413
  lt_cv_deplibs_check_method=pass_all
2593
2414
  ;;
2594
2415
 
2595
 
freebsd* | kfreebsd*-gnu | dragonfly*)
 
2416
freebsd* | dragonfly*)
2596
2417
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2597
2418
    case $host_cpu in
2598
2419
    i*86 )
2646
2467
  ;;
2647
2468
 
2648
2469
# This must be Linux ELF.
2649
 
linux*)
 
2470
linux* | k*bsd*-gnu)
2650
2471
  lt_cv_deplibs_check_method=pass_all
2651
2472
  ;;
2652
2473
 
2680
2501
  lt_cv_deplibs_check_method=pass_all
2681
2502
  ;;
2682
2503
 
 
2504
rdos*)
 
2505
  lt_cv_deplibs_check_method=pass_all
 
2506
  ;;
 
2507
 
2683
2508
solaris*)
2684
2509
  lt_cv_deplibs_check_method=pass_all
2685
2510
  ;;
2732
2557
  lt_cv_path_NM="$NM"
2733
2558
else
2734
2559
  lt_nm_to_check="${ac_tool_prefix}nm"
2735
 
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 
 
2560
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
2736
2561
    lt_nm_to_check="$lt_nm_to_check nm"
2737
2562
  fi
2738
2563
  for lt_tmp_nm in $lt_nm_to_check; do
2948
2773
_LT_AC_TAGVAR(objext, $1)=$objext
2949
2774
 
2950
2775
# Code to be used in simple compile tests
2951
 
lt_simple_compile_test_code="int some_variable = 0;\n"
 
2776
lt_simple_compile_test_code="int some_variable = 0;"
2952
2777
 
2953
2778
# Code to be used in simple link tests
2954
 
lt_simple_link_test_code='int main(){return(0);}\n'
 
2779
lt_simple_link_test_code='int main(){return(0);}'
2955
2780
 
2956
2781
_LT_AC_SYS_COMPILER
2957
2782
 
3053
2878
_LT_AC_TAGVAR(objext, $1)=$objext
3054
2879
 
3055
2880
# Code to be used in simple compile tests
3056
 
lt_simple_compile_test_code="int some_variable = 0;\n"
 
2881
lt_simple_compile_test_code="int some_variable = 0;"
3057
2882
 
3058
2883
# Code to be used in simple link tests
3059
 
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
 
2884
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
3060
2885
 
3061
2886
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3062
2887
_LT_AC_SYS_COMPILER
3202
3027
           strings "$collect2name" | grep resolve_lib_name >/dev/null
3203
3028
        then
3204
3029
          # We have reworked collect2
3205
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
3030
          :
3206
3031
        else
3207
3032
          # We have old collect2
3208
3033
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3398
3223
  freebsd-elf*)
3399
3224
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3400
3225
    ;;
3401
 
  freebsd* | kfreebsd*-gnu | dragonfly*)
 
3226
  freebsd* | dragonfly*)
3402
3227
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3403
3228
    # conventions
3404
3229
    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3447
3272
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3448
3273
 
3449
3274
      case $host_cpu in
3450
 
      hppa*64*|ia64*)
3451
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3452
 
        ;;
 
3275
      hppa*64*|ia64*) ;;
3453
3276
      *)
3454
3277
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3455
3278
        ;;
3557
3380
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3558
3381
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3559
3382
    ;;
3560
 
  linux*)
 
3383
  linux* | k*bsd*-gnu)
3561
3384
    case $cc_basename in
3562
3385
      KCC*)
3563
3386
        # Kuck and Associates, Inc. (KAI) C++ Compiler
3637
3460
        # dependencies.
3638
3461
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3639
3462
        ;;
 
3463
      *)
 
3464
        case `$CC -V 2>&1 | sed 5q` in
 
3465
        *Sun\ C*)
 
3466
          # Sun C++ 5.9
 
3467
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 
3468
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
3469
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
 
3470
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
3471
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
3472
 
 
3473
          # Not sure whether something based on
 
3474
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
3475
          # would be better.
 
3476
          output_verbose_link_cmd='echo'
 
3477
 
 
3478
          # Archives containing C++ object files must be created using
 
3479
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
3480
          # necessary to make sure instantiated templates are included
 
3481
          # in the archive.
 
3482
          _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 
3483
          ;;
 
3484
        esac
 
3485
        ;;
3640
3486
    esac
3641
3487
    ;;
3642
3488
  lynxos*)
3846
3692
        case $host_os in
3847
3693
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3848
3694
          *)
3849
 
            # The C++ compiler is used as linker so we must use $wl
3850
 
            # flag to pass the commands to the underlying system
3851
 
            # linker. We must also pass each convience library through
3852
 
            # to the system linker between allextract/defaultextract.
3853
 
            # The C++ compiler will combine linker options so we
3854
 
            # cannot just pass the convience library names through
3855
 
            # without $wl.
 
3695
            # The compiler driver will combine and reorder linker options,
 
3696
            # but understands `-z linker_flag'.
3856
3697
            # Supported since Solaris 2.6 (maybe 2.5.1?)
3857
 
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
 
3698
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
3858
3699
            ;;
3859
3700
        esac
3860
3701
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3901
3742
          fi
3902
3743
 
3903
3744
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
 
3745
          case $host_os in
 
3746
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 
3747
          *)
 
3748
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
3749
            ;;
 
3750
          esac
3904
3751
        fi
3905
3752
        ;;
3906
3753
    esac
4152
3999
  _LT_AC_TAGVAR(postdeps,$1)=
4153
4000
  ;;
4154
4001
 
 
4002
linux*)
 
4003
  case `$CC -V 2>&1 | sed 5q` in
 
4004
  *Sun\ C*)
 
4005
    # Sun C++ 5.9
 
4006
    #
 
4007
    # The more standards-conforming stlport4 library is
 
4008
    # incompatible with the Cstd library. Avoid specifying
 
4009
    # it if it's in CXXFLAGS. Ignore libCrun as
 
4010
    # -library=stlport4 depends on it.
 
4011
    case " $CXX $CXXFLAGS " in
 
4012
    *" -library=stlport4 "*)
 
4013
      solaris_use_stlport4=yes
 
4014
      ;;
 
4015
    esac
 
4016
    if test "$solaris_use_stlport4" != yes; then
 
4017
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
4018
    fi
 
4019
    ;;
 
4020
  esac
 
4021
  ;;
 
4022
 
4155
4023
solaris*)
4156
4024
  case $cc_basename in
4157
4025
  CC*)
 
4026
    # The more standards-conforming stlport4 library is
 
4027
    # incompatible with the Cstd library. Avoid specifying
 
4028
    # it if it's in CXXFLAGS. Ignore libCrun as
 
4029
    # -library=stlport4 depends on it.
 
4030
    case " $CXX $CXXFLAGS " in
 
4031
    *" -library=stlport4 "*)
 
4032
      solaris_use_stlport4=yes
 
4033
      ;;
 
4034
    esac
 
4035
 
4158
4036
    # Adding this requires a known-good setup of shared libraries for
4159
4037
    # Sun compiler versions before 5.6, else PIC objects from an old
4160
4038
    # archive will be linked into the output, leading to subtle bugs.
4161
 
    _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
 
4039
    if test "$solaris_use_stlport4" != yes; then
 
4040
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
4041
    fi
4162
4042
    ;;
4163
4043
  esac
4164
4044
  ;;
4207
4087
_LT_AC_TAGVAR(objext, $1)=$objext
4208
4088
 
4209
4089
# Code to be used in simple compile tests
4210
 
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
4090
lt_simple_compile_test_code="\
 
4091
      subroutine t
 
4092
      return
 
4093
      end
 
4094
"
4211
4095
 
4212
4096
# Code to be used in simple link tests
4213
 
lt_simple_link_test_code="      program t\n      end\n"
 
4097
lt_simple_link_test_code="\
 
4098
      program t
 
4099
      end
 
4100
"
4214
4101
 
4215
4102
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4216
4103
_LT_AC_SYS_COMPILER
4289
4176
_LT_AC_TAGVAR(objext, $1)=$objext
4290
4177
 
4291
4178
# Code to be used in simple compile tests
4292
 
lt_simple_compile_test_code="class foo {}\n"
 
4179
lt_simple_compile_test_code="class foo {}"
4293
4180
 
4294
4181
# Code to be used in simple link tests
4295
 
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
 
4182
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
4296
4183
 
4297
4184
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4298
4185
_LT_AC_SYS_COMPILER
4345
4232
_LT_AC_TAGVAR(objext, $1)=$objext
4346
4233
 
4347
4234
# Code to be used in simple compile tests
4348
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
4235
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
4349
4236
 
4350
4237
# Code to be used in simple link tests
4351
4238
lt_simple_link_test_code="$lt_simple_compile_test_code"
4480
4367
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4481
4368
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
4482
4369
#
4483
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
4370
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
4484
4371
# Free Software Foundation, Inc.
4485
4372
#
4486
4373
# This file is part of GNU Libtool:
4888
4775
# ---------------------------------
4889
4776
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
4890
4777
[AC_REQUIRE([AC_CANONICAL_HOST])
 
4778
AC_REQUIRE([LT_AC_PROG_SED])
4891
4779
AC_REQUIRE([AC_PROG_NM])
4892
4780
AC_REQUIRE([AC_OBJEXT])
4893
4781
# Check for command to grab the raw symbol name followed by C symbol from nm.
4924
4812
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4925
4813
  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
4926
4814
  ;;
4927
 
linux*)
 
4815
linux* | k*bsd*-gnu)
4928
4816
  if test "$host_cpu" = ia64; then
4929
4817
    symcode='[[ABCDGIRSTW]]'
4930
4818
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5114
5002
      # like `-m68040'.
5115
5003
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5116
5004
      ;;
5117
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
5005
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5118
5006
      # PIC is the default for these OSes.
5119
5007
      ;;
5120
 
    mingw* | os2* | pw32*)
 
5008
    mingw* | cygwin* | os2* | pw32*)
5121
5009
      # This hack is so that the source file can tell whether it is being
5122
5010
      # built for inclusion in a dll (and should export symbols for example).
 
5011
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
5012
      # (--disable-auto-import) libraries
5123
5013
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5124
5014
      ;;
5125
5015
    darwin* | rhapsody*)
5197
5087
            ;;
5198
5088
        esac
5199
5089
        ;;
5200
 
      freebsd* | kfreebsd*-gnu | dragonfly*)
 
5090
      freebsd* | dragonfly*)
5201
5091
        # FreeBSD uses GNU C++
5202
5092
        ;;
5203
5093
      hpux9* | hpux10* | hpux11*)
5240
5130
            ;;
5241
5131
        esac
5242
5132
        ;;
5243
 
      linux*)
 
5133
      linux* | k*bsd*-gnu)
5244
5134
        case $cc_basename in
5245
5135
          KCC*)
5246
5136
            # KAI C++ Compiler
5267
5157
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5268
5158
            ;;
5269
5159
          *)
 
5160
            case `$CC -V 2>&1 | sed 5q` in
 
5161
            *Sun\ C*)
 
5162
              # Sun C++ 5.9
 
5163
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5164
              _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5165
              _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
5166
              ;;
 
5167
            esac
5270
5168
            ;;
5271
5169
        esac
5272
5170
        ;;
5387
5285
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5388
5286
      ;;
5389
5287
 
5390
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
5288
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5391
5289
      # PIC is the default for these OSes.
5392
5290
      ;;
5393
5291
 
5394
 
    mingw* | pw32* | os2*)
 
5292
    mingw* | cygwin* | pw32* | os2*)
5395
5293
      # This hack is so that the source file can tell whether it is being
5396
5294
      # built for inclusion in a dll (and should export symbols for example).
 
5295
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
5296
      # (--disable-auto-import) libraries
5397
5297
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5398
5298
      ;;
5399
5299
 
5461
5361
       esac
5462
5362
       ;;
5463
5363
 
5464
 
    mingw* | pw32* | os2*)
 
5364
    mingw* | cygwin* | pw32* | os2*)
5465
5365
      # This hack is so that the source file can tell whether it is being
5466
5366
      # built for inclusion in a dll (and should export symbols for example).
5467
5367
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5494
5394
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5495
5395
      ;;
5496
5396
 
5497
 
    linux*)
 
5397
    linux* | k*bsd*-gnu)
5498
5398
      case $cc_basename in
5499
5399
      icc* | ecc*)
5500
5400
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5513
5413
        # All Alpha code is PIC.
5514
5414
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5515
5415
        ;;
 
5416
      *)
 
5417
        case `$CC -V 2>&1 | sed 5q` in
 
5418
        *Sun\ C*)
 
5419
          # Sun C 5.9
 
5420
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5421
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5422
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5423
          ;;
 
5424
        *Sun\ F*)
 
5425
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
5426
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5427
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5428
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
 
5429
          ;;
 
5430
        esac
 
5431
        ;;
5516
5432
      esac
5517
5433
      ;;
5518
5434
 
5522
5438
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5523
5439
      ;;
5524
5440
 
 
5441
    rdos*)
 
5442
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
5443
      ;;
 
5444
 
5525
5445
    solaris*)
5526
5446
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5527
5447
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5616
5536
# ------------------------------------
5617
5537
# See if the linker supports building shared libraries.
5618
5538
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
5619
 
[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 
5539
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
5540
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5620
5541
ifelse([$1],[CXX],[
5621
5542
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5622
5543
  case $host_os in
5633
5554
    _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5634
5555
  ;;
5635
5556
  cygwin* | mingw*)
5636
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
 
5557
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
5637
5558
  ;;
5638
5559
  *)
5639
5560
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5772
5693
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5773
5694
      _LT_AC_TAGVAR(always_export_symbols, $1)=no
5774
5695
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5775
 
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
 
5696
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
5776
5697
 
5777
5698
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5778
5699
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5805
5726
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5806
5727
      ;;
5807
5728
 
5808
 
    linux*)
 
5729
    gnu* | linux* | k*bsd*-gnu)
5809
5730
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5810
5731
        tmp_addflag=
5811
5732
        case $cc_basename,$host_cpu in
5823
5744
        ifc* | ifort*)                  # Intel Fortran compiler
5824
5745
          tmp_addflag=' -nofor_main' ;;
5825
5746
        esac
5826
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5747
        case `$CC -V 2>&1 | sed 5q` in
 
5748
        *Sun\ C*)                       # Sun C 5.9
 
5749
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
5750
          tmp_sharedflag='-G' ;;
 
5751
        *Sun\ F*)                       # Sun Fortran 8.3
 
5752
          tmp_sharedflag='-G' ;;
 
5753
        *)
 
5754
          tmp_sharedflag='-shared' ;;
 
5755
        esac
 
5756
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5827
5757
 
5828
5758
        if test $supports_anon_versioning = yes; then
5829
5759
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5830
5760
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5831
5761
  $echo "local: *; };" >> $output_objdir/$libname.ver~
5832
 
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
5762
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5833
5763
        fi
5834
5764
      else
5835
5765
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5869
5799
 
5870
5800
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5871
5801
      case `$LD -v 2>&1` in
5872
 
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 
 
5802
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5873
5803
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5874
5804
        cat <<_LT_EOF 1>&2
5875
5805
 
5988
5918
           strings "$collect2name" | grep resolve_lib_name >/dev/null
5989
5919
          then
5990
5920
          # We have reworked collect2
5991
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
5921
          :
5992
5922
          else
5993
5923
          # We have old collect2
5994
5924
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
6081
6011
      # The linker will automatically build a .lib file if we build a DLL.
6082
6012
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
6083
6013
      # FIXME: Should let the user specify the lib program.
6084
 
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
6014
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
6085
6015
      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
6086
6016
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6087
6017
      ;;
6166
6096
      ;;
6167
6097
 
6168
6098
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6169
 
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
6099
    freebsd* | dragonfly*)
6170
6100
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6171
6101
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6172
6102
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6364
6294
      case $host_os in
6365
6295
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6366
6296
      *)
6367
 
        # The compiler driver will combine linker options so we
6368
 
        # cannot just pass the convience library names through
6369
 
        # without $wl, iff we do not link with $LD.
6370
 
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
6297
        # The compiler driver will combine and reorder linker options,
 
6298
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
6299
        # but is careful enough not to reorder.
6371
6300
        # Supported since Solaris 2.6 (maybe 2.5.1?)
6372
 
        case $wlarc in
6373
 
        '')
6374
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
6375
 
        *)
6376
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
6377
 
        esac ;;
 
6301
        if test "$GCC" = yes; then
 
6302
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
6303
        else
 
6304
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 
6305
        fi
 
6306
        ;;
6378
6307
      esac
6379
6308
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6380
6309
      ;;
6431
6360
      fi
6432
6361
      ;;
6433
6362
 
6434
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
 
6363
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6435
6364
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6436
6365
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6437
6366
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6506
6435
      # to ld, don't add -lc before -lgcc.
6507
6436
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6508
6437
      $rm conftest*
6509
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6438
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6510
6439
 
6511
6440
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6512
6441
        soname=conftest
6609
6538
[AC_CHECK_TOOL(RC, windres, no)
6610
6539
])
6611
6540
 
 
6541
 
 
6542
# Cheap backport of AS_EXECUTABLE_P and required macros
 
6543
# from Autoconf 2.59; we should not use $as_executable_p directly.
 
6544
 
 
6545
# _AS_TEST_PREPARE
 
6546
# ----------------
 
6547
m4_ifndef([_AS_TEST_PREPARE],
 
6548
[m4_defun([_AS_TEST_PREPARE],
 
6549
[if test -x / >/dev/null 2>&1; then
 
6550
  as_executable_p='test -x'
 
6551
else
 
6552
  as_executable_p='test -f'
 
6553
fi
 
6554
])])# _AS_TEST_PREPARE
 
6555
 
 
6556
# AS_EXECUTABLE_P
 
6557
# ---------------
 
6558
# Check whether a file is executable.
 
6559
m4_ifndef([AS_EXECUTABLE_P],
 
6560
[m4_defun([AS_EXECUTABLE_P],
 
6561
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
 
6562
$as_executable_p $1[]dnl
 
6563
])])# AS_EXECUTABLE_P
 
6564
 
6612
6565
# NOTE: This macro has been submitted for inclusion into   #
6613
6566
#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
6614
6567
#  a released version of Autoconf we should remove this    #
6629
6582
  test -z "$as_dir" && as_dir=.
6630
6583
  for lt_ac_prog in sed gsed; do
6631
6584
    for ac_exec_ext in '' $ac_executable_extensions; do
6632
 
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
6585
      if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
6633
6586
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6634
6587
      fi
6635
6588
    done
6636
6589
  done
6637
6590
done
 
6591
IFS=$as_save_IFS
6638
6592
lt_ac_max=0
6639
6593
lt_ac_count=0
6640
6594
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6667
6621
done
6668
6622
])
6669
6623
SED=$lt_cv_path_SED
 
6624
AC_SUBST([SED])
6670
6625
AC_MSG_RESULT([$SED])
6671
6626
])
6672
6627
 
7430
7385
rm -f confinc confmf
7431
7386
])
7432
7387
 
 
7388
# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005
 
7389
# Free Software Foundation, Inc.
 
7390
#
 
7391
# This file is free software; the Free Software Foundation
 
7392
# gives unlimited permission to copy and/or distribute it,
 
7393
# with or without modifications, as long as this notice is preserved.
 
7394
 
 
7395
# serial 5
 
7396
 
 
7397
# AM_PROG_CC_C_O
 
7398
# --------------
 
7399
# Like AC_PROG_CC_C_O, but changed for automake.
 
7400
AC_DEFUN([AM_PROG_CC_C_O],
 
7401
[AC_REQUIRE([AC_PROG_CC_C_O])dnl
 
7402
AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
7403
AC_REQUIRE_AUX_FILE([compile])dnl
 
7404
# FIXME: we rely on the cache variable name because
 
7405
# there is no other way.
 
7406
set dummy $CC
 
7407
ac_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
 
7408
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
 
7409
   # Losing compiler, so override with the script.
 
7410
   # FIXME: It is wrong to rewrite CC.
 
7411
   # But if we don't then we get into trouble of one sort or another.
 
7412
   # A longer-term fix would be to have automake use am__CC in this case,
 
7413
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
 
7414
   CC="$am_aux_dir/compile $CC"
 
7415
fi
 
7416
dnl Make sure AC_PROG_CC is never called again, or it will override our
 
7417
dnl setting of CC.
 
7418
m4_define([AC_PROG_CC],
 
7419
          [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
 
7420
])
 
7421
 
7433
7422
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
7434
7423
 
7435
7424
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005