1# generated automatically by aclocal 1.9.6 -*- Autoconf -*- 2 3# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 4# 2005 Free Software Foundation, Inc. 5# This file is free software; the Free Software Foundation 6# gives unlimited permission to copy and/or distribute it, 7# with or without modifications, as long as this notice is preserved. 8 9# This program is distributed in the hope that it will be useful, 10# but WITHOUT ANY WARRANTY, to the extent permitted by law; without 11# even the implied warranty of MERCHANTABILITY or FITNESS FOR A 12# PARTICULAR PURPOSE. 13 14# Configure paths for the Audio File Library 15# Bertrand Guiheneuf 98-10-21 16# stolen from esd.m4 in esound : 17# Manish Singh 98-9-30 18# stolen back from Frank Belew 19# stolen from Manish Singh 20# Shamelessly stolen from Owen Taylor 21 22dnl AM_PATH_AUDIOFILE([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]]) 23dnl Test for Audio File Library, and define AUDIOFILE_CFLAGS and AUDIOFILE_LIBS. 24dnl 25AC_DEFUN(AM_PATH_AUDIOFILE, 26[dnl 27dnl Get compiler flags and libraries from the audiofile-config script. 28dnl 29AC_ARG_WITH(audiofile-prefix,[ --with-audiofile-prefix=PFX Prefix where Audio File Library is installed (optional)], 30 audiofile_prefix="$withval", audiofile_prefix="") 31AC_ARG_WITH(audiofile-exec-prefix,[ --with-audiofile-exec-prefix=PFX Exec prefix where Audio File Library is installed (optional)], 32 audiofile_exec_prefix="$withval", audiofile_exec_prefix="") 33AC_ARG_ENABLE(audiofiletest, [ --disable-audiofiletest Do not try to compile and run a test Audio File Library program], , enable_audiofiletest=yes) 34 35 if test x$audiofile_exec_prefix != x ; then 36 audiofile_args="$audiofile_args --exec-prefix=$audiofile_exec_prefix" 37 if test x${AUDIOFILE_CONFIG+set} != xset ; then 38 AUDIOFILE_CONFIG=$audiofile_exec_prefix/bin/audiofile-config 39 fi 40 fi 41 if test x$audiofile_prefix != x ; then 42 audiofile_args="$audiofile_args --prefix=$audiofile_prefix" 43 if test x${AUDIOFILE_CONFIG+set} != xset ; then 44 AUDIOFILE_CONFIG=$audiofile_prefix/bin/audiofile-config 45 fi 46 fi 47 48 AC_PATH_PROG(AUDIOFILE_CONFIG, audiofile-config, no) 49 min_audiofile_version=ifelse([$1], ,0.2.5,$1) 50 AC_MSG_CHECKING(for Audio File Library - version >= $min_audiofile_version) 51 no_audiofile="" 52 if test "$AUDIOFILE_CONFIG" = "no" ; then 53 no_audiofile=yes 54 else 55 AUDIOFILE_LIBS=`$AUDIOFILE_CONFIG $audiofileconf_args --libs` 56 AUDIOFILE_CFLAGS=`$AUDIOFILE_CONFIG $audiofileconf_args --cflags` 57 audiofile_major_version=`$AUDIOFILE_CONFIG $audiofile_args --version | \ 58 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` 59 audiofile_minor_version=`$AUDIOFILE_CONFIG $audiofile_args --version | \ 60 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` 61 audiofile_micro_version=`$AUDIOFILE_CONFIG $audiofile_config_args --version | \ 62 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` 63 if test "x$enable_audiofiletest" = "xyes" ; then 64 AC_LANG_SAVE 65 AC_LANG_C 66 ac_save_CFLAGS="$CFLAGS" 67 ac_save_LIBS="$LIBS" 68 CFLAGS="$CFLAGS $AUDIOFILE_CFLAGS" 69 LIBS="$LIBS $AUDIOFILE_LIBS" 70dnl 71dnl Now check if the installed Audio File Library is sufficiently new. 72dnl (Also checks the sanity of the results of audiofile-config to some extent.) 73dnl 74 rm -f conf.audiofiletest 75 AC_TRY_RUN([ 76#include <stdio.h> 77#include <stdlib.h> 78#include <string.h> 79#include <audiofile.h> 80 81char* 82my_strdup (char *str) 83{ 84 char *new_str; 85 86 if (str) 87 { 88 new_str = malloc ((strlen (str) + 1) * sizeof(char)); 89 strcpy (new_str, str); 90 } 91 else 92 new_str = NULL; 93 94 return new_str; 95} 96 97int main () 98{ 99 int major, minor, micro; 100 char *tmp_version; 101 102 system ("touch conf.audiofiletest"); 103 104 /* HP/UX 9 (%@#!) writes to sscanf strings */ 105 tmp_version = my_strdup("$min_audiofile_version"); 106 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 107 printf("%s, bad version string\n", "$min_audiofile_version"); 108 exit(1); 109 } 110 111 if (($audiofile_major_version > major) || 112 (($audiofile_major_version == major) && ($audiofile_minor_version > minor)) || 113 (($audiofile_major_version == major) && ($audiofile_minor_version == minor) && ($audiofile_micro_version >= micro))) 114 { 115 return 0; 116 } 117 else 118 { 119 printf("\n*** 'audiofile-config --version' returned %d.%d.%d, but the minimum version\n", $audiofile_major_version, $audiofile_minor_version, $audiofile_micro_version); 120 printf("*** of the Audio File Library required is %d.%d.%d. If audiofile-config is correct, then it is\n", major, minor, micro); 121 printf("*** best to upgrade to the required version.\n"); 122 printf("*** If audiofile-config was wrong, set the environment variable AUDIOFILE_CONFIG\n"); 123 printf("*** to point to the correct copy of audiofile-config, and remove the file\n"); 124 printf("*** config.cache before re-running configure\n"); 125 return 1; 126 } 127} 128 129],, no_audiofile=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) 130 CFLAGS="$ac_save_CFLAGS" 131 LIBS="$ac_save_LIBS" 132 AC_LANG_RESTORE 133 fi 134 fi 135 if test "x$no_audiofile" = x ; then 136 AC_MSG_RESULT(yes) 137 ifelse([$2], , :, [$2]) 138 else 139 AC_MSG_RESULT(no) 140 if test "$AUDIOFILE_CONFIG" = "no" ; then 141 cat <<END 142*** The audiofile-config script installed by the Audio File Library could 143*** not be found. If the Audio File Library was installed in PREFIX, make 144*** sure PREFIX/bin is in your path, or set the AUDIOFILE_CONFIG 145*** environment variable to the full path to audiofile-config. 146END 147 else 148 if test -f conf.audiofiletest ; then 149 : 150 else 151 echo "*** Could not run Audio File Library test program; checking why..." 152 AC_LANG_SAVE 153 AC_LANG_C 154 CFLAGS="$CFLAGS $AUDIOFILE_CFLAGS" 155 LIBS="$LIBS $AUDIOFILE_LIBS" 156 AC_TRY_LINK([ 157#include <stdio.h> 158#include <audiofile.h> 159], [ return 0; ], 160 [ cat <<END 161*** The test program compiled, but did not run. This usually means that 162*** the run-time linker is not finding Audio File Library or finding the 163*** wrong version of Audio File Library. 164*** 165*** If it is not finding Audio File Library, you'll need to set your 166*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point 167*** to the installed location. Also, make sure you have run ldconfig if 168*** that is required on your system. 169*** 170*** If you have an old version installed, it is best to remove it, although 171*** you may also be able to get things to work by modifying 172*** LD_LIBRARY_PATH. 173END 174 ], 175 [ echo "*** The test program failed to compile or link. See the file config.log" 176 echo "*** for the exact error that occured. This usually means the Audio File" 177 echo "*** Library was incorrectly installed or that you have moved the Audio" 178 echo "*** File Library since it was installed. In the latter case, you may want" 179 echo "*** to edit the audiofile-config script: $AUDIOFILE_CONFIG" ]) 180 CFLAGS="$ac_save_CFLAGS" 181 LIBS="$ac_save_LIBS" 182 AC_LANG_RESTORE 183 fi 184 fi 185 AUDIOFILE_CFLAGS="" 186 AUDIOFILE_LIBS="" 187 ifelse([$3], , :, [$3]) 188 fi 189 AC_SUBST(AUDIOFILE_CFLAGS) 190 AC_SUBST(AUDIOFILE_LIBS) 191 rm -f conf.audiofiletest 192]) 193 194# Configure paths for GLIB 195# Owen Taylor 97-11-3 196 197dnl AM_PATH_GLIB([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]]) 198dnl Test for GLIB, and define GLIB_CFLAGS and GLIB_LIBS, if "gmodule" or 199dnl gthread is specified in MODULES, pass to glib-config 200dnl 201AC_DEFUN(AM_PATH_GLIB, 202[dnl 203dnl Get the cflags and libraries from the glib-config script 204dnl 205AC_ARG_WITH(glib-prefix,[ --with-glib-prefix=PFX Prefix where GLIB is installed (optional)], 206 glib_config_prefix="$withval", glib_config_prefix="") 207AC_ARG_WITH(glib-exec-prefix,[ --with-glib-exec-prefix=PFX Exec prefix where GLIB is installed (optional)], 208 glib_config_exec_prefix="$withval", glib_config_exec_prefix="") 209AC_ARG_ENABLE(glibtest, [ --disable-glibtest Do not try to compile and run a test GLIB program], 210 , enable_glibtest=yes) 211 212 if test x$glib_config_exec_prefix != x ; then 213 glib_config_args="$glib_config_args --exec-prefix=$glib_config_exec_prefix" 214 if test x${GLIB_CONFIG+set} != xset ; then 215 GLIB_CONFIG=$glib_config_exec_prefix/bin/glib-config 216 fi 217 fi 218 if test x$glib_config_prefix != x ; then 219 glib_config_args="$glib_config_args --prefix=$glib_config_prefix" 220 if test x${GLIB_CONFIG+set} != xset ; then 221 GLIB_CONFIG=$glib_config_prefix/bin/glib-config 222 fi 223 fi 224 225 for module in . $4 226 do 227 case "$module" in 228 gmodule) 229 glib_config_args="$glib_config_args gmodule" 230 ;; 231 gthread) 232 glib_config_args="$glib_config_args gthread" 233 ;; 234 esac 235 done 236 237 AC_PATH_PROG(GLIB_CONFIG, glib-config, no) 238 min_glib_version=ifelse([$1], ,0.99.7,$1) 239 AC_MSG_CHECKING(for GLIB - version >= $min_glib_version) 240 no_glib="" 241 if test "$GLIB_CONFIG" = "no" ; then 242 no_glib=yes 243 else 244 GLIB_CFLAGS=`$GLIB_CONFIG $glib_config_args --cflags` 245 GLIB_LIBS=`$GLIB_CONFIG $glib_config_args --libs` 246 glib_config_major_version=`$GLIB_CONFIG $glib_config_args --version | \ 247 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` 248 glib_config_minor_version=`$GLIB_CONFIG $glib_config_args --version | \ 249 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` 250 glib_config_micro_version=`$GLIB_CONFIG $glib_config_args --version | \ 251 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` 252 if test "x$enable_glibtest" = "xyes" ; then 253 ac_save_CFLAGS="$CFLAGS" 254 ac_save_LIBS="$LIBS" 255 CFLAGS="$CFLAGS $GLIB_CFLAGS" 256 LIBS="$GLIB_LIBS $LIBS" 257dnl 258dnl Now check if the installed GLIB is sufficiently new. (Also sanity 259dnl checks the results of glib-config to some extent 260dnl 261 rm -f conf.glibtest 262 AC_TRY_RUN([ 263#include <glib.h> 264#include <stdio.h> 265#include <stdlib.h> 266 267int 268main () 269{ 270 int major, minor, micro; 271 char *tmp_version; 272 273 system ("touch conf.glibtest"); 274 275 /* HP/UX 9 (%@#!) writes to sscanf strings */ 276 tmp_version = g_strdup("$min_glib_version"); 277 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 278 printf("%s, bad version string\n", "$min_glib_version"); 279 exit(1); 280 } 281 282 if ((glib_major_version != $glib_config_major_version) || 283 (glib_minor_version != $glib_config_minor_version) || 284 (glib_micro_version != $glib_config_micro_version)) 285 { 286 printf("\n*** 'glib-config --version' returned %d.%d.%d, but GLIB (%d.%d.%d)\n", 287 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version, 288 glib_major_version, glib_minor_version, glib_micro_version); 289 printf ("*** was found! If glib-config was correct, then it is best\n"); 290 printf ("*** to remove the old version of GLIB. You may also be able to fix the error\n"); 291 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); 292 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); 293 printf("*** required on your system.\n"); 294 printf("*** If glib-config was wrong, set the environment variable GLIB_CONFIG\n"); 295 printf("*** to point to the correct copy of glib-config, and remove the file config.cache\n"); 296 printf("*** before re-running configure\n"); 297 } 298 else if ((glib_major_version != GLIB_MAJOR_VERSION) || 299 (glib_minor_version != GLIB_MINOR_VERSION) || 300 (glib_micro_version != GLIB_MICRO_VERSION)) 301 { 302 printf("*** GLIB header files (version %d.%d.%d) do not match\n", 303 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION); 304 printf("*** library (version %d.%d.%d)\n", 305 glib_major_version, glib_minor_version, glib_micro_version); 306 } 307 else 308 { 309 if ((glib_major_version > major) || 310 ((glib_major_version == major) && (glib_minor_version > minor)) || 311 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro))) 312 { 313 return 0; 314 } 315 else 316 { 317 printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n", 318 glib_major_version, glib_minor_version, glib_micro_version); 319 printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n", 320 major, minor, micro); 321 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n"); 322 printf("***\n"); 323 printf("*** If you have already installed a sufficiently new version, this error\n"); 324 printf("*** probably means that the wrong copy of the glib-config shell script is\n"); 325 printf("*** being found. The easiest way to fix this is to remove the old version\n"); 326 printf("*** of GLIB, but you can also set the GLIB_CONFIG environment to point to the\n"); 327 printf("*** correct copy of glib-config. (In this case, you will have to\n"); 328 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); 329 printf("*** so that the correct libraries are found at run-time))\n"); 330 } 331 } 332 return 1; 333} 334],, no_glib=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) 335 CFLAGS="$ac_save_CFLAGS" 336 LIBS="$ac_save_LIBS" 337 fi 338 fi 339 if test "x$no_glib" = x ; then 340 AC_MSG_RESULT(yes) 341 ifelse([$2], , :, [$2]) 342 else 343 AC_MSG_RESULT(no) 344 if test "$GLIB_CONFIG" = "no" ; then 345 echo "*** The glib-config script installed by GLIB could not be found" 346 echo "*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in" 347 echo "*** your path, or set the GLIB_CONFIG environment variable to the" 348 echo "*** full path to glib-config." 349 else 350 if test -f conf.glibtest ; then 351 : 352 else 353 echo "*** Could not run GLIB test program, checking why..." 354 CFLAGS="$CFLAGS $GLIB_CFLAGS" 355 LIBS="$LIBS $GLIB_LIBS" 356 AC_TRY_LINK([ 357#include <glib.h> 358#include <stdio.h> 359], [ return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); ], 360 [ echo "*** The test program compiled, but did not run. This usually means" 361 echo "*** that the run-time linker is not finding GLIB or finding the wrong" 362 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your" 363 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 364 echo "*** to the installed location Also, make sure you have run ldconfig if that" 365 echo "*** is required on your system" 366 echo "***" 367 echo "*** If you have an old version installed, it is best to remove it, although" 368 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 369 echo "***" 370 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" 371 echo "*** came with the system with the command" 372 echo "***" 373 echo "*** rpm --erase --nodeps gtk gtk-devel" ], 374 [ echo "*** The test program failed to compile or link. See the file config.log for the" 375 echo "*** exact error that occured. This usually means GLIB was incorrectly installed" 376 echo "*** or that you have moved GLIB since it was installed. In the latter case, you" 377 echo "*** may want to edit the glib-config script: $GLIB_CONFIG" ]) 378 CFLAGS="$ac_save_CFLAGS" 379 LIBS="$ac_save_LIBS" 380 fi 381 fi 382 GLIB_CFLAGS="" 383 GLIB_LIBS="" 384 ifelse([$3], , :, [$3]) 385 fi 386 AC_SUBST(GLIB_CFLAGS) 387 AC_SUBST(GLIB_LIBS) 388 rm -f conf.glibtest 389]) 390 391# Configure paths for GTK+ 392# Owen Taylor 97-11-3 393 394dnl AM_PATH_GTK([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]]) 395dnl Test for GTK, and define GTK_CFLAGS and GTK_LIBS 396dnl 397AC_DEFUN(AM_PATH_GTK, 398[dnl 399dnl Get the cflags and libraries from the gtk-config script 400dnl 401AC_ARG_WITH(gtk-prefix,[ --with-gtk-prefix=PFX Prefix where GTK is installed (optional)], 402 gtk_config_prefix="$withval", gtk_config_prefix="") 403AC_ARG_WITH(gtk-exec-prefix,[ --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)], 404 gtk_config_exec_prefix="$withval", gtk_config_exec_prefix="") 405AC_ARG_ENABLE(gtktest, [ --disable-gtktest Do not try to compile and run a test GTK program], 406 , enable_gtktest=yes) 407 408 for module in . $4 409 do 410 case "$module" in 411 gthread) 412 gtk_config_args="$gtk_config_args gthread" 413 ;; 414 esac 415 done 416 417 if test x$gtk_config_exec_prefix != x ; then 418 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" 419 if test x${GTK_CONFIG+set} != xset ; then 420 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config 421 fi 422 fi 423 if test x$gtk_config_prefix != x ; then 424 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" 425 if test x${GTK_CONFIG+set} != xset ; then 426 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config 427 fi 428 fi 429 430 AC_PATH_PROG(GTK_CONFIG, gtk-config, no) 431 min_gtk_version=ifelse([$1], ,0.99.7,$1) 432 AC_MSG_CHECKING(for GTK - version >= $min_gtk_version) 433 no_gtk="" 434 if test "$GTK_CONFIG" = "no" ; then 435 no_gtk=yes 436 else 437 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` 438 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` 439 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ 440 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` 441 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ 442 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` 443 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ 444 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` 445 if test "x$enable_gtktest" = "xyes" ; then 446 ac_save_CFLAGS="$CFLAGS" 447 ac_save_LIBS="$LIBS" 448 CFLAGS="$CFLAGS $GTK_CFLAGS" 449 LIBS="$GTK_LIBS $LIBS" 450dnl 451dnl Now check if the installed GTK is sufficiently new. (Also sanity 452dnl checks the results of gtk-config to some extent 453dnl 454 rm -f conf.gtktest 455 AC_TRY_RUN([ 456#include <gtk/gtk.h> 457#include <stdio.h> 458#include <stdlib.h> 459 460int 461main () 462{ 463 int major, minor, micro; 464 char *tmp_version; 465 466 system ("touch conf.gtktest"); 467 468 /* HP/UX 9 (%@#!) writes to sscanf strings */ 469 tmp_version = g_strdup("$min_gtk_version"); 470 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 471 printf("%s, bad version string\n", "$min_gtk_version"); 472 exit(1); 473 } 474 475 if ((gtk_major_version != $gtk_config_major_version) || 476 (gtk_minor_version != $gtk_config_minor_version) || 477 (gtk_micro_version != $gtk_config_micro_version)) 478 { 479 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", 480 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, 481 gtk_major_version, gtk_minor_version, gtk_micro_version); 482 printf ("*** was found! If gtk-config was correct, then it is best\n"); 483 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); 484 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); 485 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); 486 printf("*** required on your system.\n"); 487 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); 488 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); 489 printf("*** before re-running configure\n"); 490 } 491#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) 492 else if ((gtk_major_version != GTK_MAJOR_VERSION) || 493 (gtk_minor_version != GTK_MINOR_VERSION) || 494 (gtk_micro_version != GTK_MICRO_VERSION)) 495 { 496 printf("*** GTK+ header files (version %d.%d.%d) do not match\n", 497 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); 498 printf("*** library (version %d.%d.%d)\n", 499 gtk_major_version, gtk_minor_version, gtk_micro_version); 500 } 501#endif /* defined (GTK_MAJOR_VERSION) ... */ 502 else 503 { 504 if ((gtk_major_version > major) || 505 ((gtk_major_version == major) && (gtk_minor_version > minor)) || 506 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) 507 { 508 return 0; 509 } 510 else 511 { 512 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", 513 gtk_major_version, gtk_minor_version, gtk_micro_version); 514 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", 515 major, minor, micro); 516 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); 517 printf("***\n"); 518 printf("*** If you have already installed a sufficiently new version, this error\n"); 519 printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); 520 printf("*** being found. The easiest way to fix this is to remove the old version\n"); 521 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); 522 printf("*** correct copy of gtk-config. (In this case, you will have to\n"); 523 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); 524 printf("*** so that the correct libraries are found at run-time))\n"); 525 } 526 } 527 return 1; 528} 529],, no_gtk=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) 530 CFLAGS="$ac_save_CFLAGS" 531 LIBS="$ac_save_LIBS" 532 fi 533 fi 534 if test "x$no_gtk" = x ; then 535 AC_MSG_RESULT(yes) 536 ifelse([$2], , :, [$2]) 537 else 538 AC_MSG_RESULT(no) 539 if test "$GTK_CONFIG" = "no" ; then 540 echo "*** The gtk-config script installed by GTK could not be found" 541 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" 542 echo "*** your path, or set the GTK_CONFIG environment variable to the" 543 echo "*** full path to gtk-config." 544 else 545 if test -f conf.gtktest ; then 546 : 547 else 548 echo "*** Could not run GTK test program, checking why..." 549 CFLAGS="$CFLAGS $GTK_CFLAGS" 550 LIBS="$LIBS $GTK_LIBS" 551 AC_TRY_LINK([ 552#include <gtk/gtk.h> 553#include <stdio.h> 554], [ return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); ], 555 [ echo "*** The test program compiled, but did not run. This usually means" 556 echo "*** that the run-time linker is not finding GTK or finding the wrong" 557 echo "*** version of GTK. If it is not finding GTK, you'll need to set your" 558 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 559 echo "*** to the installed location Also, make sure you have run ldconfig if that" 560 echo "*** is required on your system" 561 echo "***" 562 echo "*** If you have an old version installed, it is best to remove it, although" 563 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 564 echo "***" 565 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" 566 echo "*** came with the system with the command" 567 echo "***" 568 echo "*** rpm --erase --nodeps gtk gtk-devel" ], 569 [ echo "*** The test program failed to compile or link. See the file config.log for the" 570 echo "*** exact error that occured. This usually means GTK was incorrectly installed" 571 echo "*** or that you have moved GTK since it was installed. In the latter case, you" 572 echo "*** may want to edit the gtk-config script: $GTK_CONFIG" ]) 573 CFLAGS="$ac_save_CFLAGS" 574 LIBS="$ac_save_LIBS" 575 fi 576 fi 577 GTK_CFLAGS="" 578 GTK_LIBS="" 579 ifelse([$3], , :, [$3]) 580 fi 581 AC_SUBST(GTK_CFLAGS) 582 AC_SUBST(GTK_LIBS) 583 rm -f conf.gtktest 584]) 585 586# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- 587 588# serial 47 AC_PROG_LIBTOOL 589 590 591# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) 592# ----------------------------------------------------------- 593# If this macro is not defined by Autoconf, define it here. 594m4_ifdef([AC_PROVIDE_IFELSE], 595 [], 596 [m4_define([AC_PROVIDE_IFELSE], 597 [m4_ifdef([AC_PROVIDE_$1], 598 [$2], [$3])])]) 599 600 601# AC_PROG_LIBTOOL 602# --------------- 603AC_DEFUN([AC_PROG_LIBTOOL], 604[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl 605dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX 606dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX. 607 AC_PROVIDE_IFELSE([AC_PROG_CXX], 608 [AC_LIBTOOL_CXX], 609 [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX 610 ])]) 611dnl And a similar setup for Fortran 77 support 612 AC_PROVIDE_IFELSE([AC_PROG_F77], 613 [AC_LIBTOOL_F77], 614 [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77 615])]) 616 617dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly. 618dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run 619dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both. 620 AC_PROVIDE_IFELSE([AC_PROG_GCJ], 621 [AC_LIBTOOL_GCJ], 622 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], 623 [AC_LIBTOOL_GCJ], 624 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ], 625 [AC_LIBTOOL_GCJ], 626 [ifdef([AC_PROG_GCJ], 627 [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])]) 628 ifdef([A][M_PROG_GCJ], 629 [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])]) 630 ifdef([LT_AC_PROG_GCJ], 631 [define([LT_AC_PROG_GCJ], 632 defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])]) 633])])# AC_PROG_LIBTOOL 634 635 636# _AC_PROG_LIBTOOL 637# ---------------- 638AC_DEFUN([_AC_PROG_LIBTOOL], 639[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl 640AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl 641AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl 642AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl 643 644# This can be used to rebuild libtool when needed 645LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 646 647# Always use our own libtool. 648LIBTOOL='$(SHELL) $(top_builddir)/libtool' 649AC_SUBST(LIBTOOL)dnl 650 651# Prevent multiple expansion 652define([AC_PROG_LIBTOOL], []) 653])# _AC_PROG_LIBTOOL 654 655 656# AC_LIBTOOL_SETUP 657# ---------------- 658AC_DEFUN([AC_LIBTOOL_SETUP], 659[AC_PREREQ(2.50)dnl 660AC_REQUIRE([AC_ENABLE_SHARED])dnl 661AC_REQUIRE([AC_ENABLE_STATIC])dnl 662AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl 663AC_REQUIRE([AC_CANONICAL_HOST])dnl 664AC_REQUIRE([AC_CANONICAL_BUILD])dnl 665AC_REQUIRE([AC_PROG_CC])dnl 666AC_REQUIRE([AC_PROG_LD])dnl 667AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl 668AC_REQUIRE([AC_PROG_NM])dnl 669 670AC_REQUIRE([AC_PROG_LN_S])dnl 671AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl 672# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 673AC_REQUIRE([AC_OBJEXT])dnl 674AC_REQUIRE([AC_EXEEXT])dnl 675dnl 676 677AC_LIBTOOL_SYS_MAX_CMD_LEN 678AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE 679AC_LIBTOOL_OBJDIR 680 681AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl 682_LT_AC_PROG_ECHO_BACKSLASH 683 684case $host_os in 685aix3*) 686 # AIX sometimes has problems with the GCC collect2 program. For some 687 # reason, if we set the COLLECT_NAMES environment variable, the problems 688 # vanish in a puff of smoke. 689 if test "X${COLLECT_NAMES+set}" != Xset; then 690 COLLECT_NAMES= 691 export COLLECT_NAMES 692 fi 693 ;; 694esac 695 696# Sed substitution that helps us do robust quoting. It backslashifies 697# metacharacters that are still active within double-quoted strings. 698Xsed='sed -e 1s/^X//' 699[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] 700 701# Same as above, but do not quote variable references. 702[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'] 703 704# Sed substitution to delay expansion of an escaped shell variable in a 705# double_quote_subst'ed string. 706delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 707 708# Sed substitution to avoid accidental globbing in evaled expressions 709no_glob_subst='s/\*/\\\*/g' 710 711# Constants: 712rm="rm -f" 713 714# Global variables: 715default_ofile=libtool 716can_build_shared=yes 717 718# All known linkers require a `.a' archive for static linking (except MSVC, 719# which needs '.lib'). 720libext=a 721ltmain="$ac_aux_dir/ltmain.sh" 722ofile="$default_ofile" 723with_gnu_ld="$lt_cv_prog_gnu_ld" 724 725AC_CHECK_TOOL(AR, ar, false) 726AC_CHECK_TOOL(RANLIB, ranlib, :) 727AC_CHECK_TOOL(STRIP, strip, :) 728 729old_CC="$CC" 730old_CFLAGS="$CFLAGS" 731 732# Set sane defaults for various variables 733test -z "$AR" && AR=ar 734test -z "$AR_FLAGS" && AR_FLAGS=cru 735test -z "$AS" && AS=as 736test -z "$CC" && CC=cc 737test -z "$LTCC" && LTCC=$CC 738test -z "$DLLTOOL" && DLLTOOL=dlltool 739test -z "$LD" && LD=ld 740test -z "$LN_S" && LN_S="ln -s" 741test -z "$MAGIC_CMD" && MAGIC_CMD=file 742test -z "$NM" && NM=nm 743test -z "$SED" && SED=sed 744test -z "$OBJDUMP" && OBJDUMP=objdump 745test -z "$RANLIB" && RANLIB=: 746test -z "$STRIP" && STRIP=: 747test -z "$ac_objext" && ac_objext=o 748 749# Determine commands to create old-style static archives. 750old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 751old_postinstall_cmds='chmod 644 $oldlib' 752old_postuninstall_cmds= 753 754if test -n "$RANLIB"; then 755 case $host_os in 756 openbsd*) 757 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" 758 ;; 759 *) 760 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" 761 ;; 762 esac 763 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 764fi 765 766_LT_CC_BASENAME([$compiler]) 767 768# Only perform the check for file, if the check method requires it 769case $deplibs_check_method in 770file_magic*) 771 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 772 AC_PATH_MAGIC 773 fi 774 ;; 775esac 776 777AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no) 778AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], 779enable_win32_dll=yes, enable_win32_dll=no) 780 781AC_ARG_ENABLE([libtool-lock], 782 [AC_HELP_STRING([--disable-libtool-lock], 783 [avoid locking (might break parallel builds)])]) 784test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 785 786AC_ARG_WITH([pic], 787 [AC_HELP_STRING([--with-pic], 788 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], 789 [pic_mode="$withval"], 790 [pic_mode=default]) 791test -z "$pic_mode" && pic_mode=default 792 793# Use C for the default configuration in the libtool script 794tagname= 795AC_LIBTOOL_LANG_C_CONFIG 796_LT_AC_TAGCONFIG 797])# AC_LIBTOOL_SETUP 798 799 800# _LT_AC_SYS_COMPILER 801# ------------------- 802AC_DEFUN([_LT_AC_SYS_COMPILER], 803[AC_REQUIRE([AC_PROG_CC])dnl 804 805# If no C compiler was specified, use CC. 806LTCC=${LTCC-"$CC"} 807 808# Allow CC to be a program name with arguments. 809compiler=$CC 810])# _LT_AC_SYS_COMPILER 811 812 813# _LT_CC_BASENAME(CC) 814# ------------------- 815# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 816AC_DEFUN([_LT_CC_BASENAME], 817[for cc_temp in $1""; do 818 case $cc_temp in 819 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; 820 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; 821 \-*) ;; 822 *) break;; 823 esac 824done 825cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 826]) 827 828 829# _LT_COMPILER_BOILERPLATE 830# ------------------------ 831# Check for compiler boilerplate output or warnings with 832# the simple compiler test code. 833AC_DEFUN([_LT_COMPILER_BOILERPLATE], 834[ac_outfile=conftest.$ac_objext 835printf "$lt_simple_compile_test_code" >conftest.$ac_ext 836eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 837_lt_compiler_boilerplate=`cat conftest.err` 838$rm conftest* 839])# _LT_COMPILER_BOILERPLATE 840 841 842# _LT_LINKER_BOILERPLATE 843# ---------------------- 844# Check for linker boilerplate output or warnings with 845# the simple link test code. 846AC_DEFUN([_LT_LINKER_BOILERPLATE], 847[ac_outfile=conftest.$ac_objext 848printf "$lt_simple_link_test_code" >conftest.$ac_ext 849eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 850_lt_linker_boilerplate=`cat conftest.err` 851$rm conftest* 852])# _LT_LINKER_BOILERPLATE 853 854 855# _LT_AC_SYS_LIBPATH_AIX 856# ---------------------- 857# Links a minimal program and checks the executable 858# for the system default hardcoded library path. In most cases, 859# this is /usr/lib:/lib, but when the MPI compilers are used 860# the location of the communication and MPI libs are included too. 861# If we don't find anything, use the default library path according 862# to the aix ld manual. 863AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX], 864[AC_LINK_IFELSE(AC_LANG_PROGRAM,[ 865aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 866}'` 867# Check for a 64-bit object if we didn't find anything. 868if 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; } 869}'`; fi],[]) 870if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 871])# _LT_AC_SYS_LIBPATH_AIX 872 873 874# _LT_AC_SHELL_INIT(ARG) 875# ---------------------- 876AC_DEFUN([_LT_AC_SHELL_INIT], 877[ifdef([AC_DIVERSION_NOTICE], 878 [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], 879 [AC_DIVERT_PUSH(NOTICE)]) 880$1 881AC_DIVERT_POP 882])# _LT_AC_SHELL_INIT 883 884 885# _LT_AC_PROG_ECHO_BACKSLASH 886# -------------------------- 887# Add some code to the start of the generated configure script which 888# will find an echo command which doesn't interpret backslashes. 889AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], 890[_LT_AC_SHELL_INIT([ 891# Check that we are running under the correct shell. 892SHELL=${CONFIG_SHELL-/bin/sh} 893 894case X$ECHO in 895X*--fallback-echo) 896 # Remove one level of quotation (which was required for Make). 897 ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` 898 ;; 899esac 900 901echo=${ECHO-echo} 902if test "X[$]1" = X--no-reexec; then 903 # Discard the --no-reexec flag, and continue. 904 shift 905elif test "X[$]1" = X--fallback-echo; then 906 # Avoid inline document here, it may be left over 907 : 908elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 909 # Yippee, $echo works! 910 : 911else 912 # Restart under the correct shell. 913 exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} 914fi 915 916if test "X[$]1" = X--fallback-echo; then 917 # used as fallback echo 918 shift 919 cat <<EOF 920[$]* 921EOF 922 exit 0 923fi 924 925# The HP-UX ksh and POSIX shell print the target directory to stdout 926# if CDPATH is set. 927(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 928 929if test -z "$ECHO"; then 930if test "X${echo_test_string+set}" != Xset; then 931# find a string as large as possible, as long as the shell can cope with it 932 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do 933 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 934 if (echo_test_string=`eval $cmd`) 2>/dev/null && 935 echo_test_string=`eval $cmd` && 936 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 937 then 938 break 939 fi 940 done 941fi 942 943if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 944 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 945 test "X$echo_testing_string" = "X$echo_test_string"; then 946 : 947else 948 # The Solaris, AIX, and Digital Unix default echo programs unquote 949 # backslashes. This makes it impossible to quote backslashes using 950 # echo "$something" | sed 's/\\/\\\\/g' 951 # 952 # So, first we look for a working echo in the user's PATH. 953 954 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 955 for dir in $PATH /usr/ucb; do 956 IFS="$lt_save_ifs" 957 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 958 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 959 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 960 test "X$echo_testing_string" = "X$echo_test_string"; then 961 echo="$dir/echo" 962 break 963 fi 964 done 965 IFS="$lt_save_ifs" 966 967 if test "X$echo" = Xecho; then 968 # We didn't find a better echo, so look for alternatives. 969 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 970 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 971 test "X$echo_testing_string" = "X$echo_test_string"; then 972 # This shell has a builtin print -r that does the trick. 973 echo='print -r' 974 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 975 test "X$CONFIG_SHELL" != X/bin/ksh; then 976 # If we have ksh, try running configure again with it. 977 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 978 export ORIGINAL_CONFIG_SHELL 979 CONFIG_SHELL=/bin/ksh 980 export CONFIG_SHELL 981 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} 982 else 983 # Try using printf. 984 echo='printf %s\n' 985 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 986 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 987 test "X$echo_testing_string" = "X$echo_test_string"; then 988 # Cool, printf works 989 : 990 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && 991 test "X$echo_testing_string" = 'X\t' && 992 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && 993 test "X$echo_testing_string" = "X$echo_test_string"; then 994 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 995 export CONFIG_SHELL 996 SHELL="$CONFIG_SHELL" 997 export SHELL 998 echo="$CONFIG_SHELL [$]0 --fallback-echo" 999 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && 1000 test "X$echo_testing_string" = 'X\t' && 1001 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && 1002 test "X$echo_testing_string" = "X$echo_test_string"; then 1003 echo="$CONFIG_SHELL [$]0 --fallback-echo" 1004 else 1005 # maybe with a smaller string... 1006 prev=: 1007 1008 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do 1009 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 1010 then 1011 break 1012 fi 1013 prev="$cmd" 1014 done 1015 1016 if test "$prev" != 'sed 50q "[$]0"'; then 1017 echo_test_string=`eval $prev` 1018 export echo_test_string 1019 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} 1020 else 1021 # Oops. We lost completely, so just stick with echo. 1022 echo=echo 1023 fi 1024 fi 1025 fi 1026 fi 1027fi 1028fi 1029 1030# Copy echo and quote the copy suitably for passing to libtool from 1031# the Makefile, instead of quoting the original, which is used later. 1032ECHO=$echo 1033if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then 1034 ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" 1035fi 1036 1037AC_SUBST(ECHO) 1038])])# _LT_AC_PROG_ECHO_BACKSLASH 1039 1040 1041# _LT_AC_LOCK 1042# ----------- 1043AC_DEFUN([_LT_AC_LOCK], 1044[AC_ARG_ENABLE([libtool-lock], 1045 [AC_HELP_STRING([--disable-libtool-lock], 1046 [avoid locking (might break parallel builds)])]) 1047test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 1048 1049# Some flags need to be propagated to the compiler or linker for good 1050# libtool support. 1051case $host in 1052ia64-*-hpux*) 1053 # Find out which ABI we are using. 1054 echo 'int i;' > conftest.$ac_ext 1055 if AC_TRY_EVAL(ac_compile); then 1056 case `/usr/bin/file conftest.$ac_objext` in 1057 *ELF-32*) 1058 HPUX_IA64_MODE="32" 1059 ;; 1060 *ELF-64*) 1061 HPUX_IA64_MODE="64" 1062 ;; 1063 esac 1064 fi 1065 rm -rf conftest* 1066 ;; 1067*-*-irix6*) 1068 # Find out which ABI we are using. 1069 echo '[#]line __oline__ "configure"' > conftest.$ac_ext 1070 if AC_TRY_EVAL(ac_compile); then 1071 if test "$lt_cv_prog_gnu_ld" = yes; then 1072 case `/usr/bin/file conftest.$ac_objext` in 1073 *32-bit*) 1074 LD="${LD-ld} -melf32bsmip" 1075 ;; 1076 *N32*) 1077 LD="${LD-ld} -melf32bmipn32" 1078 ;; 1079 *64-bit*) 1080 LD="${LD-ld} -melf64bmip" 1081 ;; 1082 esac 1083 else 1084 case `/usr/bin/file conftest.$ac_objext` in 1085 *32-bit*) 1086 LD="${LD-ld} -32" 1087 ;; 1088 *N32*) 1089 LD="${LD-ld} -n32" 1090 ;; 1091 *64-bit*) 1092 LD="${LD-ld} -64" 1093 ;; 1094 esac 1095 fi 1096 fi 1097 rm -rf conftest* 1098 ;; 1099 1100x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 1101 # Find out which ABI we are using. 1102 echo 'int i;' > conftest.$ac_ext 1103 if AC_TRY_EVAL(ac_compile); then 1104 case `/usr/bin/file conftest.o` in 1105 *32-bit*) 1106 case $host in 1107 x86_64-*linux*) 1108 LD="${LD-ld} -m elf_i386" 1109 ;; 1110 ppc64-*linux*|powerpc64-*linux*) 1111 LD="${LD-ld} -m elf32ppclinux" 1112 ;; 1113 s390x-*linux*) 1114 LD="${LD-ld} -m elf_s390" 1115 ;; 1116 sparc64-*linux*) 1117 LD="${LD-ld} -m elf32_sparc" 1118 ;; 1119 esac 1120 ;; 1121 *64-bit*) 1122 case $host in 1123 x86_64-*linux*) 1124 LD="${LD-ld} -m elf_x86_64" 1125 ;; 1126 ppc*-*linux*|powerpc*-*linux*) 1127 LD="${LD-ld} -m elf64ppc" 1128 ;; 1129 s390*-*linux*) 1130 LD="${LD-ld} -m elf64_s390" 1131 ;; 1132 sparc*-*linux*) 1133 LD="${LD-ld} -m elf64_sparc" 1134 ;; 1135 esac 1136 ;; 1137 esac 1138 fi 1139 rm -rf conftest* 1140 ;; 1141 1142*-*-sco3.2v5*) 1143 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 1144 SAVE_CFLAGS="$CFLAGS" 1145 CFLAGS="$CFLAGS -belf" 1146 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, 1147 [AC_LANG_PUSH(C) 1148 AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) 1149 AC_LANG_POP]) 1150 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 1151 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 1152 CFLAGS="$SAVE_CFLAGS" 1153 fi 1154 ;; 1155AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], 1156[*-*-cygwin* | *-*-mingw* | *-*-pw32*) 1157 AC_CHECK_TOOL(DLLTOOL, dlltool, false) 1158 AC_CHECK_TOOL(AS, as, false) 1159 AC_CHECK_TOOL(OBJDUMP, objdump, false) 1160 ;; 1161 ]) 1162esac 1163 1164need_locks="$enable_libtool_lock" 1165 1166])# _LT_AC_LOCK 1167 1168 1169# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 1170# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) 1171# ---------------------------------------------------------------- 1172# Check whether the given compiler option works 1173AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], 1174[AC_REQUIRE([LT_AC_PROG_SED]) 1175AC_CACHE_CHECK([$1], [$2], 1176 [$2=no 1177 ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) 1178 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 1179 lt_compiler_flag="$3" 1180 # Insert the option either (1) after the last *FLAGS variable, or 1181 # (2) before a word containing "conftest.", or (3) at the end. 1182 # Note that $ac_compile itself does not contain backslashes and begins 1183 # with a dollar sign (not a hyphen), so the echo should work correctly. 1184 # The option is referenced via a variable to avoid confusing sed. 1185 lt_compile=`echo "$ac_compile" | $SED \ 1186 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 1187 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 1188 -e 's:$: $lt_compiler_flag:'` 1189 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 1190 (eval "$lt_compile" 2>conftest.err) 1191 ac_status=$? 1192 cat conftest.err >&AS_MESSAGE_LOG_FD 1193 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 1194 if (exit $ac_status) && test -s "$ac_outfile"; then 1195 # The compiler can only warn and ignore the option if not recognized 1196 # So say no if there are warnings other than the usual output. 1197 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 1198 $SED '/^$/d' conftest.err >conftest.er2 1199 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 1200 $2=yes 1201 fi 1202 fi 1203 $rm conftest* 1204]) 1205 1206if test x"[$]$2" = xyes; then 1207 ifelse([$5], , :, [$5]) 1208else 1209 ifelse([$6], , :, [$6]) 1210fi 1211])# AC_LIBTOOL_COMPILER_OPTION 1212 1213 1214# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 1215# [ACTION-SUCCESS], [ACTION-FAILURE]) 1216# ------------------------------------------------------------ 1217# Check whether the given compiler option works 1218AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], 1219[AC_CACHE_CHECK([$1], [$2], 1220 [$2=no 1221 save_LDFLAGS="$LDFLAGS" 1222 LDFLAGS="$LDFLAGS $3" 1223 printf "$lt_simple_link_test_code" > conftest.$ac_ext 1224 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 1225 # The linker can only warn and ignore the option if not recognized 1226 # So say no if there are warnings 1227 if test -s conftest.err; then 1228 # Append any errors to the config.log. 1229 cat conftest.err 1>&AS_MESSAGE_LOG_FD 1230 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp 1231 $SED '/^$/d' conftest.err >conftest.er2 1232 if diff conftest.exp conftest.er2 >/dev/null; then 1233 $2=yes 1234 fi 1235 else 1236 $2=yes 1237 fi 1238 fi 1239 $rm conftest* 1240 LDFLAGS="$save_LDFLAGS" 1241]) 1242 1243if test x"[$]$2" = xyes; then 1244 ifelse([$4], , :, [$4]) 1245else 1246 ifelse([$5], , :, [$5]) 1247fi 1248])# AC_LIBTOOL_LINKER_OPTION 1249 1250 1251# AC_LIBTOOL_SYS_MAX_CMD_LEN 1252# -------------------------- 1253AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], 1254[# find the maximum length of command line arguments 1255AC_MSG_CHECKING([the maximum length of command line arguments]) 1256AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl 1257 i=0 1258 teststring="ABCD" 1259 1260 case $build_os in 1261 msdosdjgpp*) 1262 # On DJGPP, this test can blow up pretty badly due to problems in libc 1263 # (any single argument exceeding 2000 bytes causes a buffer overrun 1264 # during glob expansion). Even if it were fixed, the result of this 1265 # check would be larger than it should be. 1266 lt_cv_sys_max_cmd_len=12288; # 12K is about right 1267 ;; 1268 1269 gnu*) 1270 # Under GNU Hurd, this test is not required because there is 1271 # no limit to the length of command line arguments. 1272 # Libtool will interpret -1 as no limit whatsoever 1273 lt_cv_sys_max_cmd_len=-1; 1274 ;; 1275 1276 cygwin* | mingw*) 1277 # On Win9x/ME, this test blows up -- it succeeds, but takes 1278 # about 5 minutes as the teststring grows exponentially. 1279 # Worse, since 9x/ME are not pre-emptively multitasking, 1280 # you end up with a "frozen" computer, even though with patience 1281 # the test eventually succeeds (with a max line length of 256k). 1282 # Instead, let's just punt: use the minimum linelength reported by 1283 # all of the supported platforms: 8192 (on NT/2K/XP). 1284 lt_cv_sys_max_cmd_len=8192; 1285 ;; 1286 1287 amigaos*) 1288 # On AmigaOS with pdksh, this test takes hours, literally. 1289 # So we just punt and use a minimum line length of 8192. 1290 lt_cv_sys_max_cmd_len=8192; 1291 ;; 1292 1293 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 1294 # This has been around since 386BSD, at least. Likely further. 1295 if test -x /sbin/sysctl; then 1296 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 1297 elif test -x /usr/sbin/sysctl; then 1298 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 1299 else 1300 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 1301 fi 1302 # And add a safety zone 1303 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 1304 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 1305 ;; 1306 osf*) 1307 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 1308 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 1309 # nice to cause kernel panics so lets avoid the loop below. 1310 # First set a reasonable default. 1311 lt_cv_sys_max_cmd_len=16384 1312 # 1313 if test -x /sbin/sysconfig; then 1314 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 1315 *1*) lt_cv_sys_max_cmd_len=-1 ;; 1316 esac 1317 fi 1318 ;; 1319 *) 1320 # If test is not a shell built-in, we'll probably end up computing a 1321 # maximum length that is only half of the actual maximum length, but 1322 # we can't tell. 1323 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 1324 while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ 1325 = "XX$teststring") >/dev/null 2>&1 && 1326 new_result=`expr "X$teststring" : ".*" 2>&1` && 1327 lt_cv_sys_max_cmd_len=$new_result && 1328 test $i != 17 # 1/2 MB should be enough 1329 do 1330 i=`expr $i + 1` 1331 teststring=$teststring$teststring 1332 done 1333 teststring= 1334 # Add a significant safety factor because C++ compilers can tack on massive 1335 # amounts of additional arguments before passing them to the linker. 1336 # It appears as though 1/2 is a usable value. 1337 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 1338 ;; 1339 esac 1340]) 1341if test -n $lt_cv_sys_max_cmd_len ; then 1342 AC_MSG_RESULT($lt_cv_sys_max_cmd_len) 1343else 1344 AC_MSG_RESULT(none) 1345fi 1346])# AC_LIBTOOL_SYS_MAX_CMD_LEN 1347 1348 1349# _LT_AC_CHECK_DLFCN 1350# -------------------- 1351AC_DEFUN([_LT_AC_CHECK_DLFCN], 1352[AC_CHECK_HEADERS(dlfcn.h)dnl 1353])# _LT_AC_CHECK_DLFCN 1354 1355 1356# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, 1357# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) 1358# ------------------------------------------------------------------ 1359AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], 1360[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl 1361if test "$cross_compiling" = yes; then : 1362 [$4] 1363else 1364 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 1365 lt_status=$lt_dlunknown 1366 cat > conftest.$ac_ext <<EOF 1367[#line __oline__ "configure" 1368#include "confdefs.h" 1369 1370#if HAVE_DLFCN_H 1371#include <dlfcn.h> 1372#endif 1373 1374#include <stdio.h> 1375 1376#ifdef RTLD_GLOBAL 1377# define LT_DLGLOBAL RTLD_GLOBAL 1378#else 1379# ifdef DL_GLOBAL 1380# define LT_DLGLOBAL DL_GLOBAL 1381# else 1382# define LT_DLGLOBAL 0 1383# endif 1384#endif 1385 1386/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 1387 find out it does not work in some platform. */ 1388#ifndef LT_DLLAZY_OR_NOW 1389# ifdef RTLD_LAZY 1390# define LT_DLLAZY_OR_NOW RTLD_LAZY 1391# else 1392# ifdef DL_LAZY 1393# define LT_DLLAZY_OR_NOW DL_LAZY 1394# else 1395# ifdef RTLD_NOW 1396# define LT_DLLAZY_OR_NOW RTLD_NOW 1397# else 1398# ifdef DL_NOW 1399# define LT_DLLAZY_OR_NOW DL_NOW 1400# else 1401# define LT_DLLAZY_OR_NOW 0 1402# endif 1403# endif 1404# endif 1405# endif 1406#endif 1407 1408#ifdef __cplusplus 1409extern "C" void exit (int); 1410#endif 1411 1412void fnord() { int i=42;} 1413int main () 1414{ 1415 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 1416 int status = $lt_dlunknown; 1417 1418 if (self) 1419 { 1420 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 1421 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 1422 /* dlclose (self); */ 1423 } 1424 1425 exit (status); 1426}] 1427EOF 1428 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then 1429 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null 1430 lt_status=$? 1431 case x$lt_status in 1432 x$lt_dlno_uscore) $1 ;; 1433 x$lt_dlneed_uscore) $2 ;; 1434 x$lt_unknown|x*) $3 ;; 1435 esac 1436 else : 1437 # compilation failed 1438 $3 1439 fi 1440fi 1441rm -fr conftest* 1442])# _LT_AC_TRY_DLOPEN_SELF 1443 1444 1445# AC_LIBTOOL_DLOPEN_SELF 1446# ------------------- 1447AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], 1448[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl 1449if test "x$enable_dlopen" != xyes; then 1450 enable_dlopen=unknown 1451 enable_dlopen_self=unknown 1452 enable_dlopen_self_static=unknown 1453else 1454 lt_cv_dlopen=no 1455 lt_cv_dlopen_libs= 1456 1457 case $host_os in 1458 beos*) 1459 lt_cv_dlopen="load_add_on" 1460 lt_cv_dlopen_libs= 1461 lt_cv_dlopen_self=yes 1462 ;; 1463 1464 mingw* | pw32*) 1465 lt_cv_dlopen="LoadLibrary" 1466 lt_cv_dlopen_libs= 1467 ;; 1468 1469 cygwin*) 1470 lt_cv_dlopen="dlopen" 1471 lt_cv_dlopen_libs= 1472 ;; 1473 1474 darwin*) 1475 # if libdl is installed we need to link against it 1476 AC_CHECK_LIB([dl], [dlopen], 1477 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ 1478 lt_cv_dlopen="dyld" 1479 lt_cv_dlopen_libs= 1480 lt_cv_dlopen_self=yes 1481 ]) 1482 ;; 1483 1484 *) 1485 AC_CHECK_FUNC([shl_load], 1486 [lt_cv_dlopen="shl_load"], 1487 [AC_CHECK_LIB([dld], [shl_load], 1488 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"], 1489 [AC_CHECK_FUNC([dlopen], 1490 [lt_cv_dlopen="dlopen"], 1491 [AC_CHECK_LIB([dl], [dlopen], 1492 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], 1493 [AC_CHECK_LIB([svld], [dlopen], 1494 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], 1495 [AC_CHECK_LIB([dld], [dld_link], 1496 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"]) 1497 ]) 1498 ]) 1499 ]) 1500 ]) 1501 ]) 1502 ;; 1503 esac 1504 1505 if test "x$lt_cv_dlopen" != xno; then 1506 enable_dlopen=yes 1507 else 1508 enable_dlopen=no 1509 fi 1510 1511 case $lt_cv_dlopen in 1512 dlopen) 1513 save_CPPFLAGS="$CPPFLAGS" 1514 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 1515 1516 save_LDFLAGS="$LDFLAGS" 1517 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 1518 1519 save_LIBS="$LIBS" 1520 LIBS="$lt_cv_dlopen_libs $LIBS" 1521 1522 AC_CACHE_CHECK([whether a program can dlopen itself], 1523 lt_cv_dlopen_self, [dnl 1524 _LT_AC_TRY_DLOPEN_SELF( 1525 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, 1526 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) 1527 ]) 1528 1529 if test "x$lt_cv_dlopen_self" = xyes; then 1530 LDFLAGS="$LDFLAGS $link_static_flag" 1531 AC_CACHE_CHECK([whether a statically linked program can dlopen itself], 1532 lt_cv_dlopen_self_static, [dnl 1533 _LT_AC_TRY_DLOPEN_SELF( 1534 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, 1535 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) 1536 ]) 1537 fi 1538 1539 CPPFLAGS="$save_CPPFLAGS" 1540 LDFLAGS="$save_LDFLAGS" 1541 LIBS="$save_LIBS" 1542 ;; 1543 esac 1544 1545 case $lt_cv_dlopen_self in 1546 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 1547 *) enable_dlopen_self=unknown ;; 1548 esac 1549 1550 case $lt_cv_dlopen_self_static in 1551 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 1552 *) enable_dlopen_self_static=unknown ;; 1553 esac 1554fi 1555])# AC_LIBTOOL_DLOPEN_SELF 1556 1557 1558# AC_LIBTOOL_PROG_CC_C_O([TAGNAME]) 1559# --------------------------------- 1560# Check to see if options -c and -o are simultaneously supported by compiler 1561AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O], 1562[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl 1563AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], 1564 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)], 1565 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no 1566 $rm -r conftest 2>/dev/null 1567 mkdir conftest 1568 cd conftest 1569 mkdir out 1570 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 1571 1572 lt_compiler_flag="-o out/conftest2.$ac_objext" 1573 # Insert the option either (1) after the last *FLAGS variable, or 1574 # (2) before a word containing "conftest.", or (3) at the end. 1575 # Note that $ac_compile itself does not contain backslashes and begins 1576 # with a dollar sign (not a hyphen), so the echo should work correctly. 1577 lt_compile=`echo "$ac_compile" | $SED \ 1578 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 1579 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 1580 -e 's:$: $lt_compiler_flag:'` 1581 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 1582 (eval "$lt_compile" 2>out/conftest.err) 1583 ac_status=$? 1584 cat out/conftest.err >&AS_MESSAGE_LOG_FD 1585 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 1586 if (exit $ac_status) && test -s out/conftest2.$ac_objext 1587 then 1588 # The compiler can only warn and ignore the option if not recognized 1589 # So say no if there are warnings 1590 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp 1591 $SED '/^$/d' out/conftest.err >out/conftest.er2 1592 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then 1593 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 1594 fi 1595 fi 1596 chmod u+w . 2>&AS_MESSAGE_LOG_FD 1597 $rm conftest* 1598 # SGI C++ compiler will create directory out/ii_files/ for 1599 # template instantiation 1600 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 1601 $rm out/* && rmdir out 1602 cd .. 1603 rmdir conftest 1604 $rm conftest* 1605]) 1606])# AC_LIBTOOL_PROG_CC_C_O 1607 1608 1609# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME]) 1610# ----------------------------------------- 1611# Check to see if we can do hard links to lock some files if needed 1612AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], 1613[AC_REQUIRE([_LT_AC_LOCK])dnl 1614 1615hard_links="nottested" 1616if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then 1617 # do not overwrite the value of need_locks provided by the user 1618 AC_MSG_CHECKING([if we can lock with hard links]) 1619 hard_links=yes 1620 $rm conftest* 1621 ln conftest.a conftest.b 2>/dev/null && hard_links=no 1622 touch conftest.a 1623 ln conftest.a conftest.b 2>&5 || hard_links=no 1624 ln conftest.a conftest.b 2>/dev/null && hard_links=no 1625 AC_MSG_RESULT([$hard_links]) 1626 if test "$hard_links" = no; then 1627 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) 1628 need_locks=warn 1629 fi 1630else 1631 need_locks=no 1632fi 1633])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS 1634 1635 1636# AC_LIBTOOL_OBJDIR 1637# ----------------- 1638AC_DEFUN([AC_LIBTOOL_OBJDIR], 1639[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], 1640[rm -f .libs 2>/dev/null 1641mkdir .libs 2>/dev/null 1642if test -d .libs; then 1643 lt_cv_objdir=.libs 1644else 1645 # MS-DOS does not allow filenames that begin with a dot. 1646 lt_cv_objdir=_libs 1647fi 1648rmdir .libs 2>/dev/null]) 1649objdir=$lt_cv_objdir 1650])# AC_LIBTOOL_OBJDIR 1651 1652 1653# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME]) 1654# ---------------------------------------------- 1655# Check hardcoding attributes. 1656AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], 1657[AC_MSG_CHECKING([how to hardcode library paths into programs]) 1658_LT_AC_TAGVAR(hardcode_action, $1)= 1659if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ 1660 test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \ 1661 test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then 1662 1663 # We can hardcode non-existant directories. 1664 if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && 1665 # If the only mechanism to avoid hardcoding is shlibpath_var, we 1666 # have to relink, otherwise we might link with an installed library 1667 # when we should be linking with a yet-to-be-installed one 1668 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no && 1669 test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then 1670 # Linking always hardcodes the temporary library directory. 1671 _LT_AC_TAGVAR(hardcode_action, $1)=relink 1672 else 1673 # We can link without hardcoding, and we can hardcode nonexisting dirs. 1674 _LT_AC_TAGVAR(hardcode_action, $1)=immediate 1675 fi 1676else 1677 # We cannot hardcode anything, or else we can only hardcode existing 1678 # directories. 1679 _LT_AC_TAGVAR(hardcode_action, $1)=unsupported 1680fi 1681AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)]) 1682 1683if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then 1684 # Fast installation is not supported 1685 enable_fast_install=no 1686elif test "$shlibpath_overrides_runpath" = yes || 1687 test "$enable_shared" = no; then 1688 # Fast installation is not necessary 1689 enable_fast_install=needless 1690fi 1691])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH 1692 1693 1694# AC_LIBTOOL_SYS_LIB_STRIP 1695# ------------------------ 1696AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP], 1697[striplib= 1698old_striplib= 1699AC_MSG_CHECKING([whether stripping libraries is possible]) 1700if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 1701 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 1702 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 1703 AC_MSG_RESULT([yes]) 1704else 1705# FIXME - insert some real tests, host_os isn't really good enough 1706 case $host_os in 1707 darwin*) 1708 if test -n "$STRIP" ; then 1709 striplib="$STRIP -x" 1710 AC_MSG_RESULT([yes]) 1711 else 1712 AC_MSG_RESULT([no]) 1713fi 1714 ;; 1715 *) 1716 AC_MSG_RESULT([no]) 1717 ;; 1718 esac 1719fi 1720])# AC_LIBTOOL_SYS_LIB_STRIP 1721 1722 1723# AC_LIBTOOL_SYS_DYNAMIC_LINKER 1724# ----------------------------- 1725# PORTME Fill in your ld.so characteristics 1726AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER], 1727[AC_MSG_CHECKING([dynamic linker characteristics]) 1728library_names_spec= 1729libname_spec='lib$name' 1730soname_spec= 1731shrext_cmds=".so" 1732postinstall_cmds= 1733postuninstall_cmds= 1734finish_cmds= 1735finish_eval= 1736shlibpath_var= 1737shlibpath_overrides_runpath=unknown 1738version_type=none 1739dynamic_linker="$host_os ld.so" 1740sys_lib_dlsearch_path_spec="/lib /usr/lib" 1741if test "$GCC" = yes; then 1742 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 1743 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 1744 # if the path contains ";" then we assume it to be the separator 1745 # otherwise default to the standard path separator (i.e. ":") - it is 1746 # assumed that no part of a normal pathname contains ";" but that should 1747 # okay in the real world where ";" in dirpaths is itself problematic. 1748 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 1749 else 1750 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 1751 fi 1752else 1753 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 1754fi 1755need_lib_prefix=unknown 1756hardcode_into_libs=no 1757 1758# when you set need_version to no, make sure it does not cause -set_version 1759# flags to be left without arguments 1760need_version=unknown 1761 1762case $host_os in 1763aix3*) 1764 version_type=linux 1765 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 1766 shlibpath_var=LIBPATH 1767 1768 # AIX 3 has no versioning support, so we append a major version to the name. 1769 soname_spec='${libname}${release}${shared_ext}$major' 1770 ;; 1771 1772aix4* | aix5*) 1773 version_type=linux 1774 need_lib_prefix=no 1775 need_version=no 1776 hardcode_into_libs=yes 1777 if test "$host_cpu" = ia64; then 1778 # AIX 5 supports IA64 1779 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 1780 shlibpath_var=LD_LIBRARY_PATH 1781 else 1782 # With GCC up to 2.95.x, collect2 would create an import file 1783 # for dependence libraries. The import file would start with 1784 # the line `#! .'. This would cause the generated library to 1785 # depend on `.', always an invalid library. This was fixed in 1786 # development snapshots of GCC prior to 3.0. 1787 case $host_os in 1788 aix4 | aix4.[[01]] | aix4.[[01]].*) 1789 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 1790 echo ' yes ' 1791 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 1792 : 1793 else 1794 can_build_shared=no 1795 fi 1796 ;; 1797 esac 1798 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 1799 # soname into executable. Probably we can add versioning support to 1800 # collect2, so additional links can be useful in future. 1801 if test "$aix_use_runtimelinking" = yes; then 1802 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 1803 # instead of lib<name>.a to let people know that these are not 1804 # typical AIX shared libraries. 1805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 1806 else 1807 # We preserve .a as extension for shared libraries through AIX4.2 1808 # and later when we are not doing run time linking. 1809 library_names_spec='${libname}${release}.a $libname.a' 1810 soname_spec='${libname}${release}${shared_ext}$major' 1811 fi 1812 shlibpath_var=LIBPATH 1813 fi 1814 ;; 1815 1816amigaos*) 1817 library_names_spec='$libname.ixlibrary $libname.a' 1818 # Create ${libname}_ixlibrary.a entries in /sys/libs. 1819 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 1820 ;; 1821 1822beos*) 1823 library_names_spec='${libname}${shared_ext}' 1824 dynamic_linker="$host_os ld.so" 1825 shlibpath_var=LIBRARY_PATH 1826 ;; 1827 1828bsdi[[45]]*) 1829 version_type=linux 1830 need_version=no 1831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 1832 soname_spec='${libname}${release}${shared_ext}$major' 1833 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 1834 shlibpath_var=LD_LIBRARY_PATH 1835 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 1836 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 1837 # the default ld.so.conf also contains /usr/contrib/lib and 1838 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 1839 # libtool to hard-code these into programs 1840 ;; 1841 1842cygwin* | mingw* | pw32*) 1843 version_type=windows 1844 shrext_cmds=".dll" 1845 need_version=no 1846 need_lib_prefix=no 1847 1848 case $GCC,$host_os in 1849 yes,cygwin* | yes,mingw* | yes,pw32*) 1850 library_names_spec='$libname.dll.a' 1851 # DLL is installed to $(libdir)/../bin by postinstall_cmds 1852 postinstall_cmds='base_file=`basename \${file}`~ 1853 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 1854 dldir=$destdir/`dirname \$dlpath`~ 1855 test -d \$dldir || mkdir -p \$dldir~ 1856 $install_prog $dir/$dlname \$dldir/$dlname~ 1857 chmod a+x \$dldir/$dlname' 1858 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 1859 dlpath=$dir/\$dldll~ 1860 $rm \$dlpath' 1861 shlibpath_overrides_runpath=yes 1862 1863 case $host_os in 1864 cygwin*) 1865 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 1866 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 1867 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 1868 ;; 1869 mingw*) 1870 # MinGW DLLs use traditional 'lib' prefix 1871 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 1872 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 1873 if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then 1874 # It is most probably a Windows format PATH printed by 1875 # mingw gcc, but we are running on Cygwin. Gcc prints its search 1876 # path with ; separators, and with drive letters. We can handle the 1877 # drive letters (cygwin fileutils understands them), so leave them, 1878 # especially as we might pass files found there to a mingw objdump, 1879 # which wouldn't understand a cygwinified path. Ahh. 1880 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 1881 else 1882 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 1883 fi 1884 ;; 1885 pw32*) 1886 # pw32 DLLs use 'pw' prefix rather than 'lib' 1887 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 1888 ;; 1889 esac 1890 ;; 1891 1892 *) 1893 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' 1894 ;; 1895 esac 1896 dynamic_linker='Win32 ld.exe' 1897 # FIXME: first we should search . and the directory the executable is in 1898 shlibpath_var=PATH 1899 ;; 1900 1901darwin* | rhapsody*) 1902 dynamic_linker="$host_os dyld" 1903 version_type=darwin 1904 need_lib_prefix=no 1905 need_version=no 1906 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 1907 soname_spec='${libname}${release}${major}$shared_ext' 1908 shlibpath_overrides_runpath=yes 1909 shlibpath_var=DYLD_LIBRARY_PATH 1910 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 1911 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 1912 if test "$GCC" = yes; then 1913 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"` 1914 else 1915 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 1916 fi 1917 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 1918 ;; 1919 1920dgux*) 1921 version_type=linux 1922 need_lib_prefix=no 1923 need_version=no 1924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 1925 soname_spec='${libname}${release}${shared_ext}$major' 1926 shlibpath_var=LD_LIBRARY_PATH 1927 ;; 1928 1929freebsd1*) 1930 dynamic_linker=no 1931 ;; 1932 1933kfreebsd*-gnu) 1934 version_type=linux 1935 need_lib_prefix=no 1936 need_version=no 1937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 1938 soname_spec='${libname}${release}${shared_ext}$major' 1939 shlibpath_var=LD_LIBRARY_PATH 1940 shlibpath_overrides_runpath=no 1941 hardcode_into_libs=yes 1942 dynamic_linker='GNU ld.so' 1943 ;; 1944 1945freebsd* | dragonfly*) 1946 # DragonFly does not have aout. When/if they implement a new 1947 # versioning mechanism, adjust this. 1948 if test -x /usr/bin/objformat; then 1949 objformat=`/usr/bin/objformat` 1950 else 1951 case $host_os in 1952 freebsd[[123]]*) objformat=aout ;; 1953 *) objformat=elf ;; 1954 esac 1955 fi 1956 version_type=freebsd-$objformat 1957 case $version_type in 1958 freebsd-elf*) 1959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 1960 need_version=no 1961 need_lib_prefix=no 1962 ;; 1963 freebsd-*) 1964 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 1965 need_version=yes 1966 ;; 1967 esac 1968 shlibpath_var=LD_LIBRARY_PATH 1969 case $host_os in 1970 freebsd2*) 1971 shlibpath_overrides_runpath=yes 1972 ;; 1973 freebsd3.[[01]]* | freebsdelf3.[[01]]*) 1974 shlibpath_overrides_runpath=yes 1975 hardcode_into_libs=yes 1976 ;; 1977 *) # from 3.2 on 1978 shlibpath_overrides_runpath=no 1979 hardcode_into_libs=yes 1980 ;; 1981 esac 1982 ;; 1983 1984gnu*) 1985 version_type=linux 1986 need_lib_prefix=no 1987 need_version=no 1988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 1989 soname_spec='${libname}${release}${shared_ext}$major' 1990 shlibpath_var=LD_LIBRARY_PATH 1991 hardcode_into_libs=yes 1992 ;; 1993 1994hpux9* | hpux10* | hpux11*) 1995 # Give a soname corresponding to the major version so that dld.sl refuses to 1996 # link against other versions. 1997 version_type=sunos 1998 need_lib_prefix=no 1999 need_version=no 2000 case $host_cpu in 2001 ia64*) 2002 shrext_cmds='.so' 2003 hardcode_into_libs=yes 2004 dynamic_linker="$host_os dld.so" 2005 shlibpath_var=LD_LIBRARY_PATH 2006 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 2007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2008 soname_spec='${libname}${release}${shared_ext}$major' 2009 if test "X$HPUX_IA64_MODE" = X32; then 2010 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 2011 else 2012 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 2013 fi 2014 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 2015 ;; 2016 hppa*64*) 2017 shrext_cmds='.sl' 2018 hardcode_into_libs=yes 2019 dynamic_linker="$host_os dld.sl" 2020 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 2021 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 2022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2023 soname_spec='${libname}${release}${shared_ext}$major' 2024 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 2025 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 2026 ;; 2027 *) 2028 shrext_cmds='.sl' 2029 dynamic_linker="$host_os dld.sl" 2030 shlibpath_var=SHLIB_PATH 2031 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 2032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2033 soname_spec='${libname}${release}${shared_ext}$major' 2034 ;; 2035 esac 2036 # HP-UX runs *really* slowly unless shared libraries are mode 555. 2037 postinstall_cmds='chmod 555 $lib' 2038 ;; 2039 2040irix5* | irix6* | nonstopux*) 2041 case $host_os in 2042 nonstopux*) version_type=nonstopux ;; 2043 *) 2044 if test "$lt_cv_prog_gnu_ld" = yes; then 2045 version_type=linux 2046 else 2047 version_type=irix 2048 fi ;; 2049 esac 2050 need_lib_prefix=no 2051 need_version=no 2052 soname_spec='${libname}${release}${shared_ext}$major' 2053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 2054 case $host_os in 2055 irix5* | nonstopux*) 2056 libsuff= shlibsuff= 2057 ;; 2058 *) 2059 case $LD in # libtool.m4 will add one of these switches to LD 2060 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 2061 libsuff= shlibsuff= libmagic=32-bit;; 2062 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 2063 libsuff=32 shlibsuff=N32 libmagic=N32;; 2064 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 2065 libsuff=64 shlibsuff=64 libmagic=64-bit;; 2066 *) libsuff= shlibsuff= libmagic=never-match;; 2067 esac 2068 ;; 2069 esac 2070 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 2071 shlibpath_overrides_runpath=no 2072 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 2073 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 2074 hardcode_into_libs=yes 2075 ;; 2076 2077# No shared lib support for Linux oldld, aout, or coff. 2078linux*oldld* | linux*aout* | linux*coff*) 2079 dynamic_linker=no 2080 ;; 2081 2082# This must be Linux ELF. 2083linux*) 2084 version_type=linux 2085 need_lib_prefix=no 2086 need_version=no 2087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2088 soname_spec='${libname}${release}${shared_ext}$major' 2089 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 2090 shlibpath_var=LD_LIBRARY_PATH 2091 shlibpath_overrides_runpath=no 2092 # This implies no fast_install, which is unacceptable. 2093 # Some rework will be needed to allow for fast_install 2094 # before this can be enabled. 2095 hardcode_into_libs=yes 2096 2097 # Append ld.so.conf contents to the search path 2098 if test -f /etc/ld.so.conf; then 2099 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' ' '` 2100 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 2101 fi 2102 2103 # We used to test for /lib/ld.so.1 and disable shared libraries on 2104 # powerpc, because MkLinux only supported shared libraries with the 2105 # GNU dynamic linker. Since this was broken with cross compilers, 2106 # most powerpc-linux boxes support dynamic linking these days and 2107 # people can always --disable-shared, the test was removed, and we 2108 # assume the GNU/Linux dynamic linker is in use. 2109 dynamic_linker='GNU/Linux ld.so' 2110 ;; 2111 2112knetbsd*-gnu) 2113 version_type=linux 2114 need_lib_prefix=no 2115 need_version=no 2116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 2117 soname_spec='${libname}${release}${shared_ext}$major' 2118 shlibpath_var=LD_LIBRARY_PATH 2119 shlibpath_overrides_runpath=no 2120 hardcode_into_libs=yes 2121 dynamic_linker='GNU ld.so' 2122 ;; 2123 2124netbsd*) 2125 version_type=sunos 2126 need_lib_prefix=no 2127 need_version=no 2128 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 2129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 2130 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 2131 dynamic_linker='NetBSD (a.out) ld.so' 2132 else 2133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 2134 soname_spec='${libname}${release}${shared_ext}$major' 2135 dynamic_linker='NetBSD ld.elf_so' 2136 fi 2137 shlibpath_var=LD_LIBRARY_PATH 2138 shlibpath_overrides_runpath=yes 2139 hardcode_into_libs=yes 2140 ;; 2141 2142newsos6) 2143 version_type=linux 2144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2145 shlibpath_var=LD_LIBRARY_PATH 2146 shlibpath_overrides_runpath=yes 2147 ;; 2148 2149nto-qnx*) 2150 version_type=linux 2151 need_lib_prefix=no 2152 need_version=no 2153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2154 soname_spec='${libname}${release}${shared_ext}$major' 2155 shlibpath_var=LD_LIBRARY_PATH 2156 shlibpath_overrides_runpath=yes 2157 ;; 2158 2159openbsd*) 2160 version_type=sunos 2161 need_lib_prefix=no 2162 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 2163 case $host_os in 2164 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 2165 *) need_version=no ;; 2166 esac 2167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 2168 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 2169 shlibpath_var=LD_LIBRARY_PATH 2170 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 2171 case $host_os in 2172 openbsd2.[[89]] | openbsd2.[[89]].*) 2173 shlibpath_overrides_runpath=no 2174 ;; 2175 *) 2176 shlibpath_overrides_runpath=yes 2177 ;; 2178 esac 2179 else 2180 shlibpath_overrides_runpath=yes 2181 fi 2182 ;; 2183 2184os2*) 2185 libname_spec='$name' 2186 shrext_cmds=".dll" 2187 need_lib_prefix=no 2188 library_names_spec='$libname${shared_ext} $libname.a' 2189 dynamic_linker='OS/2 ld.exe' 2190 shlibpath_var=LIBPATH 2191 ;; 2192 2193osf3* | osf4* | osf5*) 2194 version_type=osf 2195 need_lib_prefix=no 2196 need_version=no 2197 soname_spec='${libname}${release}${shared_ext}$major' 2198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2199 shlibpath_var=LD_LIBRARY_PATH 2200 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 2201 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 2202 ;; 2203 2204sco3.2v5*) 2205 version_type=osf 2206 soname_spec='${libname}${release}${shared_ext}$major' 2207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2208 shlibpath_var=LD_LIBRARY_PATH 2209 ;; 2210 2211solaris*) 2212 version_type=linux 2213 need_lib_prefix=no 2214 need_version=no 2215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2216 soname_spec='${libname}${release}${shared_ext}$major' 2217 shlibpath_var=LD_LIBRARY_PATH 2218 shlibpath_overrides_runpath=yes 2219 hardcode_into_libs=yes 2220 # ldd complains unless libraries are executable 2221 postinstall_cmds='chmod +x $lib' 2222 ;; 2223 2224sunos4*) 2225 version_type=sunos 2226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 2227 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 2228 shlibpath_var=LD_LIBRARY_PATH 2229 shlibpath_overrides_runpath=yes 2230 if test "$with_gnu_ld" = yes; then 2231 need_lib_prefix=no 2232 fi 2233 need_version=yes 2234 ;; 2235 2236sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 2237 version_type=linux 2238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2239 soname_spec='${libname}${release}${shared_ext}$major' 2240 shlibpath_var=LD_LIBRARY_PATH 2241 case $host_vendor in 2242 sni) 2243 shlibpath_overrides_runpath=no 2244 need_lib_prefix=no 2245 export_dynamic_flag_spec='${wl}-Blargedynsym' 2246 runpath_var=LD_RUN_PATH 2247 ;; 2248 siemens) 2249 need_lib_prefix=no 2250 ;; 2251 motorola) 2252 need_lib_prefix=no 2253 need_version=no 2254 shlibpath_overrides_runpath=no 2255 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 2256 ;; 2257 esac 2258 ;; 2259 2260sysv4*MP*) 2261 if test -d /usr/nec ;then 2262 version_type=linux 2263 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 2264 soname_spec='$libname${shared_ext}.$major' 2265 shlibpath_var=LD_LIBRARY_PATH 2266 fi 2267 ;; 2268 2269uts4*) 2270 version_type=linux 2271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2272 soname_spec='${libname}${release}${shared_ext}$major' 2273 shlibpath_var=LD_LIBRARY_PATH 2274 ;; 2275 2276*) 2277 dynamic_linker=no 2278 ;; 2279esac 2280AC_MSG_RESULT([$dynamic_linker]) 2281test "$dynamic_linker" = no && can_build_shared=no 2282])# AC_LIBTOOL_SYS_DYNAMIC_LINKER 2283 2284 2285# _LT_AC_TAGCONFIG 2286# ---------------- 2287AC_DEFUN([_LT_AC_TAGCONFIG], 2288[AC_ARG_WITH([tags], 2289 [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@], 2290 [include additional configurations @<:@automatic@:>@])], 2291 [tagnames="$withval"]) 2292 2293if test -f "$ltmain" && test -n "$tagnames"; then 2294 if test ! -f "${ofile}"; then 2295 AC_MSG_WARN([output file `$ofile' does not exist]) 2296 fi 2297 2298 if test -z "$LTCC"; then 2299 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 2300 if test -z "$LTCC"; then 2301 AC_MSG_WARN([output file `$ofile' does not look like a libtool script]) 2302 else 2303 AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) 2304 fi 2305 fi 2306 2307 # Extract list of available tagged configurations in $ofile. 2308 # Note that this assumes the entire list is on one line. 2309 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 2310 2311 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2312 for tagname in $tagnames; do 2313 IFS="$lt_save_ifs" 2314 # Check whether tagname contains only valid characters 2315 case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in 2316 "") ;; 2317 *) AC_MSG_ERROR([invalid tag name: $tagname]) 2318 ;; 2319 esac 2320 2321 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 2322 then 2323 AC_MSG_ERROR([tag name \"$tagname\" already exists]) 2324 fi 2325 2326 # Update the list of available tags. 2327 if test -n "$tagname"; then 2328 echo appending configuration tag \"$tagname\" to $ofile 2329 2330 case $tagname in 2331 CXX) 2332 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 2333 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 2334 (test "X$CXX" != "Xg++"))) ; then 2335 AC_LIBTOOL_LANG_CXX_CONFIG 2336 else 2337 tagname="" 2338 fi 2339 ;; 2340 2341 F77) 2342 if test -n "$F77" && test "X$F77" != "Xno"; then 2343 AC_LIBTOOL_LANG_F77_CONFIG 2344 else 2345 tagname="" 2346 fi 2347 ;; 2348 2349 GCJ) 2350 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 2351 AC_LIBTOOL_LANG_GCJ_CONFIG 2352 else 2353 tagname="" 2354 fi 2355 ;; 2356 2357 RC) 2358 AC_LIBTOOL_LANG_RC_CONFIG 2359 ;; 2360 2361 *) 2362 AC_MSG_ERROR([Unsupported tag name: $tagname]) 2363 ;; 2364 esac 2365 2366 # Append the new tag name to the list of available tags. 2367 if test -n "$tagname" ; then 2368 available_tags="$available_tags $tagname" 2369 fi 2370 fi 2371 done 2372 IFS="$lt_save_ifs" 2373 2374 # Now substitute the updated list of available tags. 2375 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 2376 mv "${ofile}T" "$ofile" 2377 chmod +x "$ofile" 2378 else 2379 rm -f "${ofile}T" 2380 AC_MSG_ERROR([unable to update list of available tagged configurations.]) 2381 fi 2382fi 2383])# _LT_AC_TAGCONFIG 2384 2385 2386# AC_LIBTOOL_DLOPEN 2387# ----------------- 2388# enable checks for dlopen support 2389AC_DEFUN([AC_LIBTOOL_DLOPEN], 2390 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP]) 2391])# AC_LIBTOOL_DLOPEN 2392 2393 2394# AC_LIBTOOL_WIN32_DLL 2395# -------------------- 2396# declare package support for building win32 DLLs 2397AC_DEFUN([AC_LIBTOOL_WIN32_DLL], 2398[AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) 2399])# AC_LIBTOOL_WIN32_DLL 2400 2401 2402# AC_ENABLE_SHARED([DEFAULT]) 2403# --------------------------- 2404# implement the --enable-shared flag 2405# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 2406AC_DEFUN([AC_ENABLE_SHARED], 2407[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl 2408AC_ARG_ENABLE([shared], 2409 [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@], 2410 [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])], 2411 [p=${PACKAGE-default} 2412 case $enableval in 2413 yes) enable_shared=yes ;; 2414 no) enable_shared=no ;; 2415 *) 2416 enable_shared=no 2417 # Look at the argument we got. We use all the common list separators. 2418 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2419 for pkg in $enableval; do 2420 IFS="$lt_save_ifs" 2421 if test "X$pkg" = "X$p"; then 2422 enable_shared=yes 2423 fi 2424 done 2425 IFS="$lt_save_ifs" 2426 ;; 2427 esac], 2428 [enable_shared=]AC_ENABLE_SHARED_DEFAULT) 2429])# AC_ENABLE_SHARED 2430 2431 2432# AC_DISABLE_SHARED 2433# ----------------- 2434#- set the default shared flag to --disable-shared 2435AC_DEFUN([AC_DISABLE_SHARED], 2436[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 2437AC_ENABLE_SHARED(no) 2438])# AC_DISABLE_SHARED 2439 2440 2441# AC_ENABLE_STATIC([DEFAULT]) 2442# --------------------------- 2443# implement the --enable-static flag 2444# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 2445AC_DEFUN([AC_ENABLE_STATIC], 2446[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl 2447AC_ARG_ENABLE([static], 2448 [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@], 2449 [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])], 2450 [p=${PACKAGE-default} 2451 case $enableval in 2452 yes) enable_static=yes ;; 2453 no) enable_static=no ;; 2454 *) 2455 enable_static=no 2456 # Look at the argument we got. We use all the common list separators. 2457 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2458 for pkg in $enableval; do 2459 IFS="$lt_save_ifs" 2460 if test "X$pkg" = "X$p"; then 2461 enable_static=yes 2462 fi 2463 done 2464 IFS="$lt_save_ifs" 2465 ;; 2466 esac], 2467 [enable_static=]AC_ENABLE_STATIC_DEFAULT) 2468])# AC_ENABLE_STATIC 2469 2470 2471# AC_DISABLE_STATIC 2472# ----------------- 2473# set the default static flag to --disable-static 2474AC_DEFUN([AC_DISABLE_STATIC], 2475[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 2476AC_ENABLE_STATIC(no) 2477])# AC_DISABLE_STATIC 2478 2479 2480# AC_ENABLE_FAST_INSTALL([DEFAULT]) 2481# --------------------------------- 2482# implement the --enable-fast-install flag 2483# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 2484AC_DEFUN([AC_ENABLE_FAST_INSTALL], 2485[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl 2486AC_ARG_ENABLE([fast-install], 2487 [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], 2488 [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], 2489 [p=${PACKAGE-default} 2490 case $enableval in 2491 yes) enable_fast_install=yes ;; 2492 no) enable_fast_install=no ;; 2493 *) 2494 enable_fast_install=no 2495 # Look at the argument we got. We use all the common list separators. 2496 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2497 for pkg in $enableval; do 2498 IFS="$lt_save_ifs" 2499 if test "X$pkg" = "X$p"; then 2500 enable_fast_install=yes 2501 fi 2502 done 2503 IFS="$lt_save_ifs" 2504 ;; 2505 esac], 2506 [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT) 2507])# AC_ENABLE_FAST_INSTALL 2508 2509 2510# AC_DISABLE_FAST_INSTALL 2511# ----------------------- 2512# set the default to --disable-fast-install 2513AC_DEFUN([AC_DISABLE_FAST_INSTALL], 2514[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 2515AC_ENABLE_FAST_INSTALL(no) 2516])# AC_DISABLE_FAST_INSTALL 2517 2518 2519# AC_LIBTOOL_PICMODE([MODE]) 2520# -------------------------- 2521# implement the --with-pic flag 2522# MODE is either `yes' or `no'. If omitted, it defaults to `both'. 2523AC_DEFUN([AC_LIBTOOL_PICMODE], 2524[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 2525pic_mode=ifelse($#,1,$1,default) 2526])# AC_LIBTOOL_PICMODE 2527 2528 2529# AC_PROG_EGREP 2530# ------------- 2531# This is predefined starting with Autoconf 2.54, so this conditional 2532# definition can be removed once we require Autoconf 2.54 or later. 2533m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP], 2534[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep], 2535 [if echo a | (grep -E '(a|b)') >/dev/null 2>&1 2536 then ac_cv_prog_egrep='grep -E' 2537 else ac_cv_prog_egrep='egrep' 2538 fi]) 2539 EGREP=$ac_cv_prog_egrep 2540 AC_SUBST([EGREP]) 2541])]) 2542 2543 2544# AC_PATH_TOOL_PREFIX 2545# ------------------- 2546# find a file program which can recognise shared library 2547AC_DEFUN([AC_PATH_TOOL_PREFIX], 2548[AC_REQUIRE([AC_PROG_EGREP])dnl 2549AC_MSG_CHECKING([for $1]) 2550AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, 2551[case $MAGIC_CMD in 2552[[\\/*] | ?:[\\/]*]) 2553 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 2554 ;; 2555*) 2556 lt_save_MAGIC_CMD="$MAGIC_CMD" 2557 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 2558dnl $ac_dummy forces splitting on constant user-supplied paths. 2559dnl POSIX.2 word splitting is done only on the output of word expansions, 2560dnl not every word. This closes a longstanding sh security hole. 2561 ac_dummy="ifelse([$2], , $PATH, [$2])" 2562 for ac_dir in $ac_dummy; do 2563 IFS="$lt_save_ifs" 2564 test -z "$ac_dir" && ac_dir=. 2565 if test -f $ac_dir/$1; then 2566 lt_cv_path_MAGIC_CMD="$ac_dir/$1" 2567 if test -n "$file_magic_test_file"; then 2568 case $deplibs_check_method in 2569 "file_magic "*) 2570 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 2571 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 2572 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 2573 $EGREP "$file_magic_regex" > /dev/null; then 2574 : 2575 else 2576 cat <<EOF 1>&2 2577 2578*** Warning: the command libtool uses to detect shared libraries, 2579*** $file_magic_cmd, produces output that libtool cannot recognize. 2580*** The result is that libtool may fail to recognize shared libraries 2581*** as such. This will affect the creation of libtool libraries that 2582*** depend on shared libraries, but programs linked with such libtool 2583*** libraries will work regardless of this problem. Nevertheless, you 2584*** may want to report the problem to your system manager and/or to 2585*** bug-libtool@gnu.org 2586 2587EOF 2588 fi ;; 2589 esac 2590 fi 2591 break 2592 fi 2593 done 2594 IFS="$lt_save_ifs" 2595 MAGIC_CMD="$lt_save_MAGIC_CMD" 2596 ;; 2597esac]) 2598MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 2599if test -n "$MAGIC_CMD"; then 2600 AC_MSG_RESULT($MAGIC_CMD) 2601else 2602 AC_MSG_RESULT(no) 2603fi 2604])# AC_PATH_TOOL_PREFIX 2605 2606 2607# AC_PATH_MAGIC 2608# ------------- 2609# find a file program which can recognise a shared library 2610AC_DEFUN([AC_PATH_MAGIC], 2611[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) 2612if test -z "$lt_cv_path_MAGIC_CMD"; then 2613 if test -n "$ac_tool_prefix"; then 2614 AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) 2615 else 2616 MAGIC_CMD=: 2617 fi 2618fi 2619])# AC_PATH_MAGIC 2620 2621 2622# AC_PROG_LD 2623# ---------- 2624# find the pathname to the GNU or non-GNU linker 2625AC_DEFUN([AC_PROG_LD], 2626[AC_ARG_WITH([gnu-ld], 2627 [AC_HELP_STRING([--with-gnu-ld], 2628 [assume the C compiler uses GNU ld @<:@default=no@:>@])], 2629 [test "$withval" = no || with_gnu_ld=yes], 2630 [with_gnu_ld=no]) 2631AC_REQUIRE([LT_AC_PROG_SED])dnl 2632AC_REQUIRE([AC_PROG_CC])dnl 2633AC_REQUIRE([AC_CANONICAL_HOST])dnl 2634AC_REQUIRE([AC_CANONICAL_BUILD])dnl 2635ac_prog=ld 2636if test "$GCC" = yes; then 2637 # Check if gcc -print-prog-name=ld gives a path. 2638 AC_MSG_CHECKING([for ld used by $CC]) 2639 case $host in 2640 *-*-mingw*) 2641 # gcc leaves a trailing carriage return which upsets mingw 2642 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 2643 *) 2644 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 2645 esac 2646 case $ac_prog in 2647 # Accept absolute paths. 2648 [[\\/]]* | ?:[[\\/]]*) 2649 re_direlt='/[[^/]][[^/]]*/\.\./' 2650 # Canonicalize the pathname of ld 2651 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 2652 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 2653 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 2654 done 2655 test -z "$LD" && LD="$ac_prog" 2656 ;; 2657 "") 2658 # If it fails, then pretend we aren't using GCC. 2659 ac_prog=ld 2660 ;; 2661 *) 2662 # If it is relative, then search for the first ld in PATH. 2663 with_gnu_ld=unknown 2664 ;; 2665 esac 2666elif test "$with_gnu_ld" = yes; then 2667 AC_MSG_CHECKING([for GNU ld]) 2668else 2669 AC_MSG_CHECKING([for non-GNU ld]) 2670fi 2671AC_CACHE_VAL(lt_cv_path_LD, 2672[if test -z "$LD"; then 2673 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 2674 for ac_dir in $PATH; do 2675 IFS="$lt_save_ifs" 2676 test -z "$ac_dir" && ac_dir=. 2677 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 2678 lt_cv_path_LD="$ac_dir/$ac_prog" 2679 # Check to see if the program is GNU ld. I'd rather use --version, 2680 # but apparently some variants of GNU ld only accept -v. 2681 # Break only if it was the GNU/non-GNU ld that we prefer. 2682 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 2683 *GNU* | *'with BFD'*) 2684 test "$with_gnu_ld" != no && break 2685 ;; 2686 *) 2687 test "$with_gnu_ld" != yes && break 2688 ;; 2689 esac 2690 fi 2691 done 2692 IFS="$lt_save_ifs" 2693else 2694 lt_cv_path_LD="$LD" # Let the user override the test with a path. 2695fi]) 2696LD="$lt_cv_path_LD" 2697if test -n "$LD"; then 2698 AC_MSG_RESULT($LD) 2699else 2700 AC_MSG_RESULT(no) 2701fi 2702test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) 2703AC_PROG_LD_GNU 2704])# AC_PROG_LD 2705 2706 2707# AC_PROG_LD_GNU 2708# -------------- 2709AC_DEFUN([AC_PROG_LD_GNU], 2710[AC_REQUIRE([AC_PROG_EGREP])dnl 2711AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, 2712[# I'd rather use --version here, but apparently some GNU lds only accept -v. 2713case `$LD -v 2>&1 </dev/null` in 2714*GNU* | *'with BFD'*) 2715 lt_cv_prog_gnu_ld=yes 2716 ;; 2717*) 2718 lt_cv_prog_gnu_ld=no 2719 ;; 2720esac]) 2721with_gnu_ld=$lt_cv_prog_gnu_ld 2722])# AC_PROG_LD_GNU 2723 2724 2725# AC_PROG_LD_RELOAD_FLAG 2726# ---------------------- 2727# find reload flag for linker 2728# -- PORTME Some linkers may need a different reload flag. 2729AC_DEFUN([AC_PROG_LD_RELOAD_FLAG], 2730[AC_CACHE_CHECK([for $LD option to reload object files], 2731 lt_cv_ld_reload_flag, 2732 [lt_cv_ld_reload_flag='-r']) 2733reload_flag=$lt_cv_ld_reload_flag 2734case $reload_flag in 2735"" | " "*) ;; 2736*) reload_flag=" $reload_flag" ;; 2737esac 2738reload_cmds='$LD$reload_flag -o $output$reload_objs' 2739case $host_os in 2740 darwin*) 2741 if test "$GCC" = yes; then 2742 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs' 2743 else 2744 reload_cmds='$LD$reload_flag -o $output$reload_objs' 2745 fi 2746 ;; 2747esac 2748])# AC_PROG_LD_RELOAD_FLAG 2749 2750 2751# AC_DEPLIBS_CHECK_METHOD 2752# ----------------------- 2753# how to check for library dependencies 2754# -- PORTME fill in with the dynamic library characteristics 2755AC_DEFUN([AC_DEPLIBS_CHECK_METHOD], 2756[AC_CACHE_CHECK([how to recognise dependent libraries], 2757lt_cv_deplibs_check_method, 2758[lt_cv_file_magic_cmd='$MAGIC_CMD' 2759lt_cv_file_magic_test_file= 2760lt_cv_deplibs_check_method='unknown' 2761# Need to set the preceding variable on all platforms that support 2762# interlibrary dependencies. 2763# 'none' -- dependencies not supported. 2764# `unknown' -- same as none, but documents that we really don't know. 2765# 'pass_all' -- all dependencies passed with no checks. 2766# 'test_compile' -- check by making test program. 2767# 'file_magic [[regex]]' -- check by looking for files in library path 2768# which responds to the $file_magic_cmd with a given extended regex. 2769# If you have `file' or equivalent on your system and you're not sure 2770# whether `pass_all' will *always* work, you probably want this one. 2771 2772case $host_os in 2773aix4* | aix5*) 2774 lt_cv_deplibs_check_method=pass_all 2775 ;; 2776 2777beos*) 2778 lt_cv_deplibs_check_method=pass_all 2779 ;; 2780 2781bsdi[[45]]*) 2782 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' 2783 lt_cv_file_magic_cmd='/usr/bin/file -L' 2784 lt_cv_file_magic_test_file=/shlib/libc.so 2785 ;; 2786 2787cygwin*) 2788 # func_win32_libid is a shell function defined in ltmain.sh 2789 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 2790 lt_cv_file_magic_cmd='func_win32_libid' 2791 ;; 2792 2793mingw* | pw32*) 2794 # Base MSYS/MinGW do not provide the 'file' command needed by 2795 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 2796 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 2797 lt_cv_file_magic_cmd='$OBJDUMP -f' 2798 ;; 2799 2800darwin* | rhapsody*) 2801 lt_cv_deplibs_check_method=pass_all 2802 ;; 2803 2804freebsd* | kfreebsd*-gnu | dragonfly*) 2805 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 2806 case $host_cpu in 2807 i*86 ) 2808 # Not sure whether the presence of OpenBSD here was a mistake. 2809 # Let's accept both of them until this is cleared up. 2810 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' 2811 lt_cv_file_magic_cmd=/usr/bin/file 2812 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 2813 ;; 2814 esac 2815 else 2816 lt_cv_deplibs_check_method=pass_all 2817 fi 2818 ;; 2819 2820gnu*) 2821 lt_cv_deplibs_check_method=pass_all 2822 ;; 2823 2824hpux10.20* | hpux11*) 2825 lt_cv_file_magic_cmd=/usr/bin/file 2826 case $host_cpu in 2827 ia64*) 2828 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' 2829 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 2830 ;; 2831 hppa*64*) 2832 [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'] 2833 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 2834 ;; 2835 *) 2836 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' 2837 lt_cv_file_magic_test_file=/usr/lib/libc.sl 2838 ;; 2839 esac 2840 ;; 2841 2842irix5* | irix6* | nonstopux*) 2843 case $LD in 2844 *-32|*"-32 ") libmagic=32-bit;; 2845 *-n32|*"-n32 ") libmagic=N32;; 2846 *-64|*"-64 ") libmagic=64-bit;; 2847 *) libmagic=never-match;; 2848 esac 2849 lt_cv_deplibs_check_method=pass_all 2850 ;; 2851 2852# This must be Linux ELF. 2853linux*) 2854 lt_cv_deplibs_check_method=pass_all 2855 ;; 2856 2857netbsd*) 2858 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 2859 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 2860 else 2861 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' 2862 fi 2863 ;; 2864 2865newos6*) 2866 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' 2867 lt_cv_file_magic_cmd=/usr/bin/file 2868 lt_cv_file_magic_test_file=/usr/lib/libnls.so 2869 ;; 2870 2871nto-qnx*) 2872 lt_cv_deplibs_check_method=unknown 2873 ;; 2874 2875openbsd*) 2876 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 2877 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' 2878 else 2879 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 2880 fi 2881 ;; 2882 2883osf3* | osf4* | osf5*) 2884 lt_cv_deplibs_check_method=pass_all 2885 ;; 2886 2887sco3.2v5*) 2888 lt_cv_deplibs_check_method=pass_all 2889 ;; 2890 2891solaris*) 2892 lt_cv_deplibs_check_method=pass_all 2893 ;; 2894 2895sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 2896 case $host_vendor in 2897 motorola) 2898 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' 2899 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 2900 ;; 2901 ncr) 2902 lt_cv_deplibs_check_method=pass_all 2903 ;; 2904 sequent) 2905 lt_cv_file_magic_cmd='/bin/file' 2906 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' 2907 ;; 2908 sni) 2909 lt_cv_file_magic_cmd='/bin/file' 2910 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" 2911 lt_cv_file_magic_test_file=/lib/libc.so 2912 ;; 2913 siemens) 2914 lt_cv_deplibs_check_method=pass_all 2915 ;; 2916 esac 2917 ;; 2918 2919sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*) 2920 lt_cv_deplibs_check_method=pass_all 2921 ;; 2922esac 2923]) 2924file_magic_cmd=$lt_cv_file_magic_cmd 2925deplibs_check_method=$lt_cv_deplibs_check_method 2926test -z "$deplibs_check_method" && deplibs_check_method=unknown 2927])# AC_DEPLIBS_CHECK_METHOD 2928 2929 2930# AC_PROG_NM 2931# ---------- 2932# find the pathname to a BSD-compatible name lister 2933AC_DEFUN([AC_PROG_NM], 2934[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM, 2935[if test -n "$NM"; then 2936 # Let the user override the test. 2937 lt_cv_path_NM="$NM" 2938else 2939 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 2940 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 2941 IFS="$lt_save_ifs" 2942 test -z "$ac_dir" && ac_dir=. 2943 tmp_nm="$ac_dir/${ac_tool_prefix}nm" 2944 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 2945 # Check to see if the nm accepts a BSD-compat flag. 2946 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 2947 # nm: unknown option "B" ignored 2948 # Tru64's nm complains that /dev/null is an invalid object file 2949 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 2950 */dev/null* | *'Invalid file or object type'*) 2951 lt_cv_path_NM="$tmp_nm -B" 2952 break 2953 ;; 2954 *) 2955 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 2956 */dev/null*) 2957 lt_cv_path_NM="$tmp_nm -p" 2958 break 2959 ;; 2960 *) 2961 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 2962 continue # so that we can try to find one that supports BSD flags 2963 ;; 2964 esac 2965 esac 2966 fi 2967 done 2968 IFS="$lt_save_ifs" 2969 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 2970fi]) 2971NM="$lt_cv_path_NM" 2972])# AC_PROG_NM 2973 2974 2975# AC_CHECK_LIBM 2976# ------------- 2977# check for math library 2978AC_DEFUN([AC_CHECK_LIBM], 2979[AC_REQUIRE([AC_CANONICAL_HOST])dnl 2980LIBM= 2981case $host in 2982*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) 2983 # These system don't have libm, or don't need it 2984 ;; 2985*-ncr-sysv4.3*) 2986 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") 2987 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") 2988 ;; 2989*) 2990 AC_CHECK_LIB(m, cos, LIBM="-lm") 2991 ;; 2992esac 2993])# AC_CHECK_LIBM 2994 2995 2996# AC_LIBLTDL_CONVENIENCE([DIRECTORY]) 2997# ----------------------------------- 2998# sets LIBLTDL to the link flags for the libltdl convenience library and 2999# LTDLINCL to the include flags for the libltdl header and adds 3000# --enable-ltdl-convenience to the configure arguments. Note that 3001# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, 3002# it is assumed to be `libltdl'. LIBLTDL will be prefixed with 3003# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/' 3004# (note the single quotes!). If your package is not flat and you're not 3005# using automake, define top_builddir and top_srcdir appropriately in 3006# the Makefiles. 3007AC_DEFUN([AC_LIBLTDL_CONVENIENCE], 3008[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 3009 case $enable_ltdl_convenience in 3010 no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; 3011 "") enable_ltdl_convenience=yes 3012 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; 3013 esac 3014 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la 3015 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) 3016 # For backwards non-gettext consistent compatibility... 3017 INCLTDL="$LTDLINCL" 3018])# AC_LIBLTDL_CONVENIENCE 3019 3020 3021# AC_LIBLTDL_INSTALLABLE([DIRECTORY]) 3022# ----------------------------------- 3023# sets LIBLTDL to the link flags for the libltdl installable library and 3024# LTDLINCL to the include flags for the libltdl header and adds 3025# --enable-ltdl-install to the configure arguments. Note that 3026# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, 3027# and an installed libltdl is not found, it is assumed to be `libltdl'. 3028# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with 3029# '${top_srcdir}/' (note the single quotes!). If your package is not 3030# flat and you're not using automake, define top_builddir and top_srcdir 3031# appropriately in the Makefiles. 3032# In the future, this macro may have to be called after AC_PROG_LIBTOOL. 3033AC_DEFUN([AC_LIBLTDL_INSTALLABLE], 3034[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 3035 AC_CHECK_LIB(ltdl, lt_dlinit, 3036 [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], 3037 [if test x"$enable_ltdl_install" = xno; then 3038 AC_MSG_WARN([libltdl not installed, but installation disabled]) 3039 else 3040 enable_ltdl_install=yes 3041 fi 3042 ]) 3043 if test x"$enable_ltdl_install" = x"yes"; then 3044 ac_configure_args="$ac_configure_args --enable-ltdl-install" 3045 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la 3046 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) 3047 else 3048 ac_configure_args="$ac_configure_args --enable-ltdl-install=no" 3049 LIBLTDL="-lltdl" 3050 LTDLINCL= 3051 fi 3052 # For backwards non-gettext consistent compatibility... 3053 INCLTDL="$LTDLINCL" 3054])# AC_LIBLTDL_INSTALLABLE 3055 3056 3057# AC_LIBTOOL_CXX 3058# -------------- 3059# enable support for C++ libraries 3060AC_DEFUN([AC_LIBTOOL_CXX], 3061[AC_REQUIRE([_LT_AC_LANG_CXX]) 3062])# AC_LIBTOOL_CXX 3063 3064 3065# _LT_AC_LANG_CXX 3066# --------------- 3067AC_DEFUN([_LT_AC_LANG_CXX], 3068[AC_REQUIRE([AC_PROG_CXX]) 3069AC_REQUIRE([_LT_AC_PROG_CXXCPP]) 3070_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) 3071])# _LT_AC_LANG_CXX 3072 3073# _LT_AC_PROG_CXXCPP 3074# --------------- 3075AC_DEFUN([_LT_AC_PROG_CXXCPP], 3076[ 3077AC_REQUIRE([AC_PROG_CXX]) 3078if test -n "$CXX" && ( test "X$CXX" != "Xno" && 3079 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 3080 (test "X$CXX" != "Xg++"))) ; then 3081 AC_PROG_CXXCPP 3082fi 3083])# _LT_AC_PROG_CXXCPP 3084 3085# AC_LIBTOOL_F77 3086# -------------- 3087# enable support for Fortran 77 libraries 3088AC_DEFUN([AC_LIBTOOL_F77], 3089[AC_REQUIRE([_LT_AC_LANG_F77]) 3090])# AC_LIBTOOL_F77 3091 3092 3093# _LT_AC_LANG_F77 3094# --------------- 3095AC_DEFUN([_LT_AC_LANG_F77], 3096[AC_REQUIRE([AC_PROG_F77]) 3097_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77]) 3098])# _LT_AC_LANG_F77 3099 3100 3101# AC_LIBTOOL_GCJ 3102# -------------- 3103# enable support for GCJ libraries 3104AC_DEFUN([AC_LIBTOOL_GCJ], 3105[AC_REQUIRE([_LT_AC_LANG_GCJ]) 3106])# AC_LIBTOOL_GCJ 3107 3108 3109# _LT_AC_LANG_GCJ 3110# --------------- 3111AC_DEFUN([_LT_AC_LANG_GCJ], 3112[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[], 3113 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[], 3114 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[], 3115 [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])], 3116 [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])], 3117 [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])]) 3118_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ]) 3119])# _LT_AC_LANG_GCJ 3120 3121 3122# AC_LIBTOOL_RC 3123# -------------- 3124# enable support for Windows resource files 3125AC_DEFUN([AC_LIBTOOL_RC], 3126[AC_REQUIRE([LT_AC_PROG_RC]) 3127_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC]) 3128])# AC_LIBTOOL_RC 3129 3130 3131# AC_LIBTOOL_LANG_C_CONFIG 3132# ------------------------ 3133# Ensure that the configuration vars for the C compiler are 3134# suitably defined. Those variables are subsequently used by 3135# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 3136AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG]) 3137AC_DEFUN([_LT_AC_LANG_C_CONFIG], 3138[lt_save_CC="$CC" 3139AC_LANG_PUSH(C) 3140 3141# Source file extension for C test sources. 3142ac_ext=c 3143 3144# Object file extension for compiled C test sources. 3145objext=o 3146_LT_AC_TAGVAR(objext, $1)=$objext 3147 3148# Code to be used in simple compile tests 3149lt_simple_compile_test_code="int some_variable = 0;\n" 3150 3151# Code to be used in simple link tests 3152lt_simple_link_test_code='int main(){return(0);}\n' 3153 3154_LT_AC_SYS_COMPILER 3155 3156# save warnings/boilerplate of simple test code 3157_LT_COMPILER_BOILERPLATE 3158_LT_LINKER_BOILERPLATE 3159 3160# 3161# Check for any special shared library compilation flags. 3162# 3163_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)= 3164if test "$GCC" = no; then 3165 case $host_os in 3166 sco3.2v5*) 3167 _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf' 3168 ;; 3169 esac 3170fi 3171if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then 3172 AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries]) 3173 if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then : 3174 else 3175 AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure]) 3176 _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no 3177 fi 3178fi 3179 3180 3181# 3182# Check to make sure the static flag actually works. 3183# 3184AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works], 3185 _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1), 3186 $_LT_AC_TAGVAR(lt_prog_compiler_static, $1), 3187 [], 3188 [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=]) 3189 3190 3191AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) 3192AC_LIBTOOL_PROG_COMPILER_PIC($1) 3193AC_LIBTOOL_PROG_CC_C_O($1) 3194AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) 3195AC_LIBTOOL_PROG_LD_SHLIBS($1) 3196AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 3197AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 3198AC_LIBTOOL_SYS_LIB_STRIP 3199AC_LIBTOOL_DLOPEN_SELF($1) 3200 3201# Report which librarie types wil actually be built 3202AC_MSG_CHECKING([if libtool supports shared libraries]) 3203AC_MSG_RESULT([$can_build_shared]) 3204 3205AC_MSG_CHECKING([whether to build shared libraries]) 3206test "$can_build_shared" = "no" && enable_shared=no 3207 3208# On AIX, shared libraries and static libraries use the same namespace, and 3209# are all built from PIC. 3210case $host_os in 3211aix3*) 3212 test "$enable_shared" = yes && enable_static=no 3213 if test -n "$RANLIB"; then 3214 archive_cmds="$archive_cmds~\$RANLIB \$lib" 3215 postinstall_cmds='$RANLIB $lib' 3216 fi 3217 ;; 3218 3219aix4* | aix5*) 3220 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 3221 test "$enable_shared" = yes && enable_static=no 3222 fi 3223 ;; 3224esac 3225AC_MSG_RESULT([$enable_shared]) 3226 3227AC_MSG_CHECKING([whether to build static libraries]) 3228# Make sure either enable_shared or enable_static is yes. 3229test "$enable_shared" = yes || enable_static=yes 3230AC_MSG_RESULT([$enable_static]) 3231 3232AC_LIBTOOL_CONFIG($1) 3233 3234AC_LANG_POP 3235CC="$lt_save_CC" 3236])# AC_LIBTOOL_LANG_C_CONFIG 3237 3238 3239# AC_LIBTOOL_LANG_CXX_CONFIG 3240# -------------------------- 3241# Ensure that the configuration vars for the C compiler are 3242# suitably defined. Those variables are subsequently used by 3243# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 3244AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)]) 3245AC_DEFUN([_LT_AC_LANG_CXX_CONFIG], 3246[AC_LANG_PUSH(C++) 3247AC_REQUIRE([AC_PROG_CXX]) 3248AC_REQUIRE([_LT_AC_PROG_CXXCPP]) 3249 3250_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 3251_LT_AC_TAGVAR(allow_undefined_flag, $1)= 3252_LT_AC_TAGVAR(always_export_symbols, $1)=no 3253_LT_AC_TAGVAR(archive_expsym_cmds, $1)= 3254_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= 3255_LT_AC_TAGVAR(hardcode_direct, $1)=no 3256_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= 3257_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 3258_LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 3259_LT_AC_TAGVAR(hardcode_minus_L, $1)=no 3260_LT_AC_TAGVAR(hardcode_automatic, $1)=no 3261_LT_AC_TAGVAR(module_cmds, $1)= 3262_LT_AC_TAGVAR(module_expsym_cmds, $1)= 3263_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown 3264_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 3265_LT_AC_TAGVAR(no_undefined_flag, $1)= 3266_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 3267_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no 3268 3269# Dependencies to place before and after the object being linked: 3270_LT_AC_TAGVAR(predep_objects, $1)= 3271_LT_AC_TAGVAR(postdep_objects, $1)= 3272_LT_AC_TAGVAR(predeps, $1)= 3273_LT_AC_TAGVAR(postdeps, $1)= 3274_LT_AC_TAGVAR(compiler_lib_search_path, $1)= 3275 3276# Source file extension for C++ test sources. 3277ac_ext=cpp 3278 3279# Object file extension for compiled C++ test sources. 3280objext=o 3281_LT_AC_TAGVAR(objext, $1)=$objext 3282 3283# Code to be used in simple compile tests 3284lt_simple_compile_test_code="int some_variable = 0;\n" 3285 3286# Code to be used in simple link tests 3287lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' 3288 3289# ltmain only uses $CC for tagged configurations so make sure $CC is set. 3290_LT_AC_SYS_COMPILER 3291 3292# save warnings/boilerplate of simple test code 3293_LT_COMPILER_BOILERPLATE 3294_LT_LINKER_BOILERPLATE 3295 3296# Allow CC to be a program name with arguments. 3297lt_save_CC=$CC 3298lt_save_LD=$LD 3299lt_save_GCC=$GCC 3300GCC=$GXX 3301lt_save_with_gnu_ld=$with_gnu_ld 3302lt_save_path_LD=$lt_cv_path_LD 3303if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 3304 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 3305else 3306 unset lt_cv_prog_gnu_ld 3307fi 3308if test -n "${lt_cv_path_LDCXX+set}"; then 3309 lt_cv_path_LD=$lt_cv_path_LDCXX 3310else 3311 unset lt_cv_path_LD 3312fi 3313test -z "${LDCXX+set}" || LD=$LDCXX 3314CC=${CXX-"c++"} 3315compiler=$CC 3316_LT_AC_TAGVAR(compiler, $1)=$CC 3317_LT_CC_BASENAME([$compiler]) 3318 3319# We don't want -fno-exception wen compiling C++ code, so set the 3320# no_builtin_flag separately 3321if test "$GXX" = yes; then 3322 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' 3323else 3324 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 3325fi 3326 3327if test "$GXX" = yes; then 3328 # Set up default GNU C++ configuration 3329 3330 AC_PROG_LD 3331 3332 # Check if GNU C++ uses GNU ld as the underlying linker, since the 3333 # archiving commands below assume that GNU ld is being used. 3334 if test "$with_gnu_ld" = yes; then 3335 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 3336 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 3337 3338 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' 3339 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 3340 3341 # If archive_cmds runs LD, not CC, wlarc should be empty 3342 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 3343 # investigate it a little bit more. (MM) 3344 wlarc='${wl}' 3345 3346 # ancient GNU ld didn't support --whole-archive et. al. 3347 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 3348 grep 'no-whole-archive' > /dev/null; then 3349 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 3350 else 3351 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 3352 fi 3353 else 3354 with_gnu_ld=no 3355 wlarc= 3356 3357 # A generic and very simple default shared library creation 3358 # command for GNU C++ for the case where it uses the native 3359 # linker, instead of GNU ld. If possible, this setting should 3360 # overridden to take advantage of the native linker features on 3361 # the platform it is being used on. 3362 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 3363 fi 3364 3365 # Commands to make compiler produce verbose output that lists 3366 # what "hidden" libraries, object files and flags are used when 3367 # linking a shared library. 3368 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 3369 3370else 3371 GXX=no 3372 with_gnu_ld=no 3373 wlarc= 3374fi 3375 3376# PORTME: fill in a description of your system's C++ link characteristics 3377AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 3378_LT_AC_TAGVAR(ld_shlibs, $1)=yes 3379case $host_os in 3380 aix3*) 3381 # FIXME: insert proper C++ library support 3382 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3383 ;; 3384 aix4* | aix5*) 3385 if test "$host_cpu" = ia64; then 3386 # On IA64, the linker does run time linking by default, so we don't 3387 # have to do anything special. 3388 aix_use_runtimelinking=no 3389 exp_sym_flag='-Bexport' 3390 no_entry_flag="" 3391 else 3392 aix_use_runtimelinking=no 3393 3394 # Test if we are trying to use run time linking or normal 3395 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 3396 # need to do runtime linking. 3397 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) 3398 for ld_flag in $LDFLAGS; do 3399 case $ld_flag in 3400 *-brtl*) 3401 aix_use_runtimelinking=yes 3402 break 3403 ;; 3404 esac 3405 done 3406 esac 3407 3408 exp_sym_flag='-bexport' 3409 no_entry_flag='-bnoentry' 3410 fi 3411 3412 # When large executables or shared objects are built, AIX ld can 3413 # have problems creating the table of contents. If linking a library 3414 # or program results in "error TOC overflow" add -mminimal-toc to 3415 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 3416 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 3417 3418 _LT_AC_TAGVAR(archive_cmds, $1)='' 3419 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 3420 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' 3421 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 3422 3423 if test "$GXX" = yes; then 3424 case $host_os in aix4.[[012]]|aix4.[[012]].*) 3425 # We only want to do this on AIX 4.2 and lower, the check 3426 # below for broken collect2 doesn't work under 4.3+ 3427 collect2name=`${CC} -print-prog-name=collect2` 3428 if test -f "$collect2name" && \ 3429 strings "$collect2name" | grep resolve_lib_name >/dev/null 3430 then 3431 # We have reworked collect2 3432 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 3433 else 3434 # We have old collect2 3435 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported 3436 # It fails to find uninstalled libraries when the uninstalled 3437 # path is not listed in the libpath. Setting hardcode_minus_L 3438 # to unsupported forces relinking 3439 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 3440 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 3441 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 3442 fi 3443 esac 3444 shared_flag='-shared' 3445 if test "$aix_use_runtimelinking" = yes; then 3446 shared_flag="$shared_flag "'${wl}-G' 3447 fi 3448 else 3449 # not using gcc 3450 if test "$host_cpu" = ia64; then 3451 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 3452 # chokes on -Wl,-G. The following line is correct: 3453 shared_flag='-G' 3454 else 3455 if test "$aix_use_runtimelinking" = yes; then 3456 shared_flag='${wl}-G' 3457 else 3458 shared_flag='${wl}-bM:SRE' 3459 fi 3460 fi 3461 fi 3462 3463 # It seems that -bexpall does not export symbols beginning with 3464 # underscore (_), so it is better to generate a list of symbols to export. 3465 _LT_AC_TAGVAR(always_export_symbols, $1)=yes 3466 if test "$aix_use_runtimelinking" = yes; then 3467 # Warning - without using the other runtime loading flags (-brtl), 3468 # -berok will link without error, but may produce a broken library. 3469 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' 3470 # Determine the default libpath from the value encoded in an empty executable. 3471 _LT_AC_SYS_LIBPATH_AIX 3472 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 3473 3474 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 3475 else 3476 if test "$host_cpu" = ia64; then 3477 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' 3478 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 3479 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 3480 else 3481 # Determine the default libpath from the value encoded in an empty executable. 3482 _LT_AC_SYS_LIBPATH_AIX 3483 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 3484 # Warning - without using the other run time loading flags, 3485 # -berok will link without error, but may produce a broken library. 3486 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 3487 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 3488 # -bexpall does not export symbols beginning with underscore (_) 3489 _LT_AC_TAGVAR(always_export_symbols, $1)=yes 3490 # Exported symbols can be pulled into shared objects from archives 3491 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' ' 3492 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes 3493 # This is similar to how AIX traditionally builds its shared libraries. 3494 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 3495 fi 3496 fi 3497 ;; 3498 chorus*) 3499 case $cc_basename in 3500 *) 3501 # FIXME: insert proper C++ library support 3502 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3503 ;; 3504 esac 3505 ;; 3506 3507 3508 cygwin* | mingw* | pw32*) 3509 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 3510 # as there is no search path for DLLs. 3511 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 3512 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 3513 _LT_AC_TAGVAR(always_export_symbols, $1)=no 3514 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 3515 3516 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 3517 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 3518 # If the export-symbols file already is a .def file (1st line 3519 # is EXPORTS), use it as is; otherwise, prepend... 3520 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 3521 cp $export_symbols $output_objdir/$soname.def; 3522 else 3523 echo EXPORTS > $output_objdir/$soname.def; 3524 cat $export_symbols >> $output_objdir/$soname.def; 3525 fi~ 3526 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 3527 else 3528 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3529 fi 3530 ;; 3531 darwin* | rhapsody*) 3532 case $host_os in 3533 rhapsody* | darwin1.[[012]]) 3534 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' 3535 ;; 3536 *) # Darwin 1.3 on 3537 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 3538 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 3539 else 3540 case ${MACOSX_DEPLOYMENT_TARGET} in 3541 10.[[012]]) 3542 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 3543 ;; 3544 10.*) 3545 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' 3546 ;; 3547 esac 3548 fi 3549 ;; 3550 esac 3551 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 3552 _LT_AC_TAGVAR(hardcode_direct, $1)=no 3553 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes 3554 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 3555 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' 3556 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 3557 3558 if test "$GXX" = yes ; then 3559 lt_int_apple_cc_single_mod=no 3560 output_verbose_link_cmd='echo' 3561 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 3562 lt_int_apple_cc_single_mod=yes 3563 fi 3564 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 3565 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 3566 else 3567 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 3568 fi 3569 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 3570 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 3571 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 3572 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 3573 else 3574 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 3575 fi 3576 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 3577 else 3578 case $cc_basename in 3579 xlc*) 3580 output_verbose_link_cmd='echo' 3581 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 3582 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 3583 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 3584 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 3585 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 3586 ;; 3587 *) 3588 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3589 ;; 3590 esac 3591 fi 3592 ;; 3593 3594 dgux*) 3595 case $cc_basename in 3596 ec++*) 3597 # FIXME: insert proper C++ library support 3598 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3599 ;; 3600 ghcx*) 3601 # Green Hills C++ Compiler 3602 # FIXME: insert proper C++ library support 3603 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3604 ;; 3605 *) 3606 # FIXME: insert proper C++ library support 3607 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3608 ;; 3609 esac 3610 ;; 3611 freebsd[[12]]*) 3612 # C++ shared libraries reported to be fairly broken before switch to ELF 3613 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3614 ;; 3615 freebsd-elf*) 3616 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 3617 ;; 3618 freebsd* | kfreebsd*-gnu | dragonfly*) 3619 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 3620 # conventions 3621 _LT_AC_TAGVAR(ld_shlibs, $1)=yes 3622 ;; 3623 gnu*) 3624 ;; 3625 hpux9*) 3626 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 3627 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 3628 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 3629 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 3630 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 3631 # but as the default 3632 # location of the library. 3633 3634 case $cc_basename in 3635 CC*) 3636 # FIXME: insert proper C++ library support 3637 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3638 ;; 3639 aCC*) 3640 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 3641 # Commands to make compiler produce verbose output that lists 3642 # what "hidden" libraries, object files and flags are used when 3643 # linking a shared library. 3644 # 3645 # There doesn't appear to be a way to prevent this compiler from 3646 # explicitly linking system object files so we need to strip them 3647 # from the output so that they don't get included in the library 3648 # dependencies. 3649 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 3650 ;; 3651 *) 3652 if test "$GXX" = yes; then 3653 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 3654 else 3655 # FIXME: insert proper C++ library support 3656 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3657 fi 3658 ;; 3659 esac 3660 ;; 3661 hpux10*|hpux11*) 3662 if test $with_gnu_ld = no; then 3663 case $host_cpu in 3664 hppa*64*) 3665 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 3666 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' 3667 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 3668 ;; 3669 ia64*) 3670 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 3671 ;; 3672 *) 3673 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 3674 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 3675 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 3676 ;; 3677 esac 3678 fi 3679 case $host_cpu in 3680 hppa*64*) 3681 _LT_AC_TAGVAR(hardcode_direct, $1)=no 3682 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 3683 ;; 3684 ia64*) 3685 _LT_AC_TAGVAR(hardcode_direct, $1)=no 3686 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 3687 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 3688 # but as the default 3689 # location of the library. 3690 ;; 3691 *) 3692 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 3693 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 3694 # but as the default 3695 # location of the library. 3696 ;; 3697 esac 3698 3699 case $cc_basename in 3700 CC*) 3701 # FIXME: insert proper C++ library support 3702 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3703 ;; 3704 aCC*) 3705 case $host_cpu in 3706 hppa*64*|ia64*) 3707 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 3708 ;; 3709 *) 3710 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 3711 ;; 3712 esac 3713 # Commands to make compiler produce verbose output that lists 3714 # what "hidden" libraries, object files and flags are used when 3715 # linking a shared library. 3716 # 3717 # There doesn't appear to be a way to prevent this compiler from 3718 # explicitly linking system object files so we need to strip them 3719 # from the output so that they don't get included in the library 3720 # dependencies. 3721 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 3722 ;; 3723 *) 3724 if test "$GXX" = yes; then 3725 if test $with_gnu_ld = no; then 3726 case $host_cpu in 3727 ia64*|hppa*64*) 3728 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 3729 ;; 3730 *) 3731 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 3732 ;; 3733 esac 3734 fi 3735 else 3736 # FIXME: insert proper C++ library support 3737 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3738 fi 3739 ;; 3740 esac 3741 ;; 3742 irix5* | irix6*) 3743 case $cc_basename in 3744 CC*) 3745 # SGI C++ 3746 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 3747 3748 # Archives containing C++ object files must be created using 3749 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 3750 # necessary to make sure instantiated templates are included 3751 # in the archive. 3752 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' 3753 ;; 3754 *) 3755 if test "$GXX" = yes; then 3756 if test "$with_gnu_ld" = no; then 3757 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 3758 else 3759 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' 3760 fi 3761 fi 3762 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 3763 ;; 3764 esac 3765 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 3766 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 3767 ;; 3768 linux*) 3769 case $cc_basename in 3770 KCC*) 3771 # Kuck and Associates, Inc. (KAI) C++ Compiler 3772 3773 # KCC will only create a shared library if the output file 3774 # ends with ".so" (or ".sl" for HP-UX), so rename the library 3775 # to its proper name (with version) after linking. 3776 _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 3777 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' 3778 # Commands to make compiler produce verbose output that lists 3779 # what "hidden" libraries, object files and flags are used when 3780 # linking a shared library. 3781 # 3782 # There doesn't appear to be a way to prevent this compiler from 3783 # explicitly linking system object files so we need to strip them 3784 # from the output so that they don't get included in the library 3785 # dependencies. 3786 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 3787 3788 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir' 3789 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 3790 3791 # Archives containing C++ object files must be created using 3792 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 3793 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' 3794 ;; 3795 icpc*) 3796 # Intel C++ 3797 with_gnu_ld=yes 3798 # version 8.0 and above of icpc choke on multiply defined symbols 3799 # if we add $predep_objects and $postdep_objects, however 7.1 and 3800 # earlier do not add the objects themselves. 3801 case `$CC -V 2>&1` in 3802 *"Version 7."*) 3803 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 3804 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 3805 ;; 3806 *) # Version 8.0 or newer 3807 tmp_idyn= 3808 case $host_cpu in 3809 ia64*) tmp_idyn=' -i_dynamic';; 3810 esac 3811 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 3812 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 3813 ;; 3814 esac 3815 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 3816 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 3817 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 3818 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 3819 ;; 3820 pgCC*) 3821 # Portland Group C++ compiler 3822 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 3823 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 3824 3825 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' 3826 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 3827 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 3828 ;; 3829 cxx*) 3830 # Compaq C++ 3831 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 3832 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' 3833 3834 runpath_var=LD_RUN_PATH 3835 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 3836 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 3837 3838 # Commands to make compiler produce verbose output that lists 3839 # what "hidden" libraries, object files and flags are used when 3840 # linking a shared library. 3841 # 3842 # There doesn't appear to be a way to prevent this compiler from 3843 # explicitly linking system object files so we need to strip them 3844 # from the output so that they don't get included in the library 3845 # dependencies. 3846 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' 3847 ;; 3848 esac 3849 ;; 3850 lynxos*) 3851 # FIXME: insert proper C++ library support 3852 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3853 ;; 3854 m88k*) 3855 # FIXME: insert proper C++ library support 3856 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3857 ;; 3858 mvs*) 3859 case $cc_basename in 3860 cxx*) 3861 # FIXME: insert proper C++ library support 3862 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3863 ;; 3864 *) 3865 # FIXME: insert proper C++ library support 3866 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3867 ;; 3868 esac 3869 ;; 3870 netbsd*) 3871 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 3872 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 3873 wlarc= 3874 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 3875 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 3876 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 3877 fi 3878 # Workaround some broken pre-1.5 toolchains 3879 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 3880 ;; 3881 openbsd2*) 3882 # C++ shared libraries are fairly broken 3883 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3884 ;; 3885 openbsd*) 3886 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 3887 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 3888 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 3889 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 3890 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 3891 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 3892 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 3893 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 3894 fi 3895 output_verbose_link_cmd='echo' 3896 ;; 3897 osf3*) 3898 case $cc_basename in 3899 KCC*) 3900 # Kuck and Associates, Inc. (KAI) C++ Compiler 3901 3902 # KCC will only create a shared library if the output file 3903 # ends with ".so" (or ".sl" for HP-UX), so rename the library 3904 # to its proper name (with version) after linking. 3905 _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 3906 3907 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 3908 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 3909 3910 # Archives containing C++ object files must be created using 3911 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 3912 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' 3913 3914 ;; 3915 RCC*) 3916 # Rational C++ 2.4.1 3917 # FIXME: insert proper C++ library support 3918 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3919 ;; 3920 cxx*) 3921 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 3922 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 3923 3924 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 3925 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 3926 3927 # Commands to make compiler produce verbose output that lists 3928 # what "hidden" libraries, object files and flags are used when 3929 # linking a shared library. 3930 # 3931 # There doesn't appear to be a way to prevent this compiler from 3932 # explicitly linking system object files so we need to strip them 3933 # from the output so that they don't get included in the library 3934 # dependencies. 3935 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "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' 3936 ;; 3937 *) 3938 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 3939 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 3940 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 3941 3942 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 3943 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 3944 3945 # Commands to make compiler produce verbose output that lists 3946 # what "hidden" libraries, object files and flags are used when 3947 # linking a shared library. 3948 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 3949 3950 else 3951 # FIXME: insert proper C++ library support 3952 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3953 fi 3954 ;; 3955 esac 3956 ;; 3957 osf4* | osf5*) 3958 case $cc_basename in 3959 KCC*) 3960 # Kuck and Associates, Inc. (KAI) C++ Compiler 3961 3962 # KCC will only create a shared library if the output file 3963 # ends with ".so" (or ".sl" for HP-UX), so rename the library 3964 # to its proper name (with version) after linking. 3965 _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 3966 3967 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 3968 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 3969 3970 # Archives containing C++ object files must be created using 3971 # the KAI C++ compiler. 3972 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' 3973 ;; 3974 RCC*) 3975 # Rational C++ 2.4.1 3976 # FIXME: insert proper C++ library support 3977 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3978 ;; 3979 cxx*) 3980 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 3981 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 3982 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 3983 echo "-hidden">> $lib.exp~ 3984 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ 3985 $rm $lib.exp' 3986 3987 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 3988 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 3989 3990 # Commands to make compiler produce verbose output that lists 3991 # what "hidden" libraries, object files and flags are used when 3992 # linking a shared library. 3993 # 3994 # There doesn't appear to be a way to prevent this compiler from 3995 # explicitly linking system object files so we need to strip them 3996 # from the output so that they don't get included in the library 3997 # dependencies. 3998 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "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' 3999 ;; 4000 *) 4001 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 4002 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 4003 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 4004 4005 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 4006 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 4007 4008 # Commands to make compiler produce verbose output that lists 4009 # what "hidden" libraries, object files and flags are used when 4010 # linking a shared library. 4011 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 4012 4013 else 4014 # FIXME: insert proper C++ library support 4015 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4016 fi 4017 ;; 4018 esac 4019 ;; 4020 psos*) 4021 # FIXME: insert proper C++ library support 4022 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4023 ;; 4024 sco*) 4025 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 4026 case $cc_basename in 4027 CC*) 4028 # FIXME: insert proper C++ library support 4029 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4030 ;; 4031 *) 4032 # FIXME: insert proper C++ library support 4033 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4034 ;; 4035 esac 4036 ;; 4037 sunos4*) 4038 case $cc_basename in 4039 CC*) 4040 # Sun C++ 4.x 4041 # FIXME: insert proper C++ library support 4042 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4043 ;; 4044 lcc*) 4045 # Lucid 4046 # FIXME: insert proper C++ library support 4047 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4048 ;; 4049 *) 4050 # FIXME: insert proper C++ library support 4051 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4052 ;; 4053 esac 4054 ;; 4055 solaris*) 4056 case $cc_basename in 4057 CC*) 4058 # Sun C++ 4.2, 5.x and Centerline C++ 4059 _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes 4060 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' 4061 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 4062 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 4063 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 4064 4065 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 4066 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 4067 case $host_os in 4068 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 4069 *) 4070 # The C++ compiler is used as linker so we must use $wl 4071 # flag to pass the commands to the underlying system 4072 # linker. We must also pass each convience library through 4073 # to the system linker between allextract/defaultextract. 4074 # The C++ compiler will combine linker options so we 4075 # cannot just pass the convience library names through 4076 # without $wl. 4077 # Supported since Solaris 2.6 (maybe 2.5.1?) 4078 _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' 4079 ;; 4080 esac 4081 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 4082 4083 output_verbose_link_cmd='echo' 4084 4085 # Archives containing C++ object files must be created using 4086 # "CC -xar", where "CC" is the Sun C++ compiler. This is 4087 # necessary to make sure instantiated templates are included 4088 # in the archive. 4089 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 4090 ;; 4091 gcx*) 4092 # Green Hills C++ Compiler 4093 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 4094 4095 # The C++ compiler must be used to create the archive. 4096 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 4097 ;; 4098 *) 4099 # GNU C++ compiler with Solaris linker 4100 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 4101 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' 4102 if $CC --version | grep -v '^2\.7' > /dev/null; then 4103 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 4104 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 4105 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 4106 4107 # Commands to make compiler produce verbose output that lists 4108 # what "hidden" libraries, object files and flags are used when 4109 # linking a shared library. 4110 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 4111 else 4112 # g++ 2.7 appears to require `-G' NOT `-shared' on this 4113 # platform. 4114 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 4115 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 4116 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 4117 4118 # Commands to make compiler produce verbose output that lists 4119 # what "hidden" libraries, object files and flags are used when 4120 # linking a shared library. 4121 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 4122 fi 4123 4124 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' 4125 fi 4126 ;; 4127 esac 4128 ;; 4129 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*) 4130 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 4131 ;; 4132 tandem*) 4133 case $cc_basename in 4134 NCC*) 4135 # NonStop-UX NCC 3.20 4136 # FIXME: insert proper C++ library support 4137 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4138 ;; 4139 *) 4140 # FIXME: insert proper C++ library support 4141 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4142 ;; 4143 esac 4144 ;; 4145 vxworks*) 4146 # FIXME: insert proper C++ library support 4147 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4148 ;; 4149 *) 4150 # FIXME: insert proper C++ library support 4151 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4152 ;; 4153esac 4154AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) 4155test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no 4156 4157_LT_AC_TAGVAR(GCC, $1)="$GXX" 4158_LT_AC_TAGVAR(LD, $1)="$LD" 4159 4160AC_LIBTOOL_POSTDEP_PREDEP($1) 4161AC_LIBTOOL_PROG_COMPILER_PIC($1) 4162AC_LIBTOOL_PROG_CC_C_O($1) 4163AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) 4164AC_LIBTOOL_PROG_LD_SHLIBS($1) 4165AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 4166AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 4167AC_LIBTOOL_SYS_LIB_STRIP 4168AC_LIBTOOL_DLOPEN_SELF($1) 4169 4170AC_LIBTOOL_CONFIG($1) 4171 4172AC_LANG_POP 4173CC=$lt_save_CC 4174LDCXX=$LD 4175LD=$lt_save_LD 4176GCC=$lt_save_GCC 4177with_gnu_ldcxx=$with_gnu_ld 4178with_gnu_ld=$lt_save_with_gnu_ld 4179lt_cv_path_LDCXX=$lt_cv_path_LD 4180lt_cv_path_LD=$lt_save_path_LD 4181lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 4182lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 4183])# AC_LIBTOOL_LANG_CXX_CONFIG 4184 4185# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME]) 4186# ------------------------ 4187# Figure out "hidden" library dependencies from verbose 4188# compiler output when linking a shared library. 4189# Parse the compiler output and extract the necessary 4190# objects, libraries and library flags. 4191AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[ 4192dnl we can't use the lt_simple_compile_test_code here, 4193dnl because it contains code intended for an executable, 4194dnl not a library. It's possible we should let each 4195dnl tag define a new lt_????_link_test_code variable, 4196dnl but it's only used here... 4197ifelse([$1],[],[cat > conftest.$ac_ext <<EOF 4198int a; 4199void foo (void) { a = 0; } 4200EOF 4201],[$1],[CXX],[cat > conftest.$ac_ext <<EOF 4202class Foo 4203{ 4204public: 4205 Foo (void) { a = 0; } 4206private: 4207 int a; 4208}; 4209EOF 4210],[$1],[F77],[cat > conftest.$ac_ext <<EOF 4211 subroutine foo 4212 implicit none 4213 integer*4 a 4214 a=0 4215 return 4216 end 4217EOF 4218],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF 4219public class foo { 4220 private int a; 4221 public void bar (void) { 4222 a = 0; 4223 } 4224}; 4225EOF 4226]) 4227dnl Parse the compiler output and extract the necessary 4228dnl objects, libraries and library flags. 4229if AC_TRY_EVAL(ac_compile); then 4230 # Parse the compiler output and extract the necessary 4231 # objects, libraries and library flags. 4232 4233 # Sentinel used to keep track of whether or not we are before 4234 # the conftest object file. 4235 pre_test_object_deps_done=no 4236 4237 # The `*' in the case matches for architectures that use `case' in 4238 # $output_verbose_cmd can trigger glob expansion during the loop 4239 # eval without this substitution. 4240 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 4241 4242 for p in `eval $output_verbose_link_cmd`; do 4243 case $p in 4244 4245 -L* | -R* | -l*) 4246 # Some compilers place space between "-{L,R}" and the path. 4247 # Remove the space. 4248 if test $p = "-L" \ 4249 || test $p = "-R"; then 4250 prev=$p 4251 continue 4252 else 4253 prev= 4254 fi 4255 4256 if test "$pre_test_object_deps_done" = no; then 4257 case $p in 4258 -L* | -R*) 4259 # Internal compiler library paths should come after those 4260 # provided the user. The postdeps already come after the 4261 # user supplied libs so there is no need to process them. 4262 if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then 4263 _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" 4264 else 4265 _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" 4266 fi 4267 ;; 4268 # The "-l" case would never come before the object being 4269 # linked, so don't bother handling this case. 4270 esac 4271 else 4272 if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then 4273 _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}" 4274 else 4275 _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}" 4276 fi 4277 fi 4278 ;; 4279 4280 *.$objext) 4281 # This assumes that the test object file only shows up 4282 # once in the compiler output. 4283 if test "$p" = "conftest.$objext"; then 4284 pre_test_object_deps_done=yes 4285 continue 4286 fi 4287 4288 if test "$pre_test_object_deps_done" = no; then 4289 if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then 4290 _LT_AC_TAGVAR(predep_objects, $1)="$p" 4291 else 4292 _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p" 4293 fi 4294 else 4295 if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then 4296 _LT_AC_TAGVAR(postdep_objects, $1)="$p" 4297 else 4298 _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p" 4299 fi 4300 fi 4301 ;; 4302 4303 *) ;; # Ignore the rest. 4304 4305 esac 4306 done 4307 4308 # Clean up. 4309 rm -f a.out a.exe 4310else 4311 echo "libtool.m4: error: problem compiling $1 test program" 4312fi 4313 4314$rm -f confest.$objext 4315 4316# PORTME: override above test on systems where it is broken 4317ifelse([$1],[CXX], 4318[case $host_os in 4319solaris*) 4320 case $cc_basename in 4321 CC*) 4322 # Adding this requires a known-good setup of shared libraries for 4323 # Sun compiler versions before 5.6, else PIC objects from an old 4324 # archive will be linked into the output, leading to subtle bugs. 4325 _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun' 4326 ;; 4327 esac 4328esac 4329]) 4330 4331case " $_LT_AC_TAGVAR(postdeps, $1) " in 4332*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;; 4333esac 4334])# AC_LIBTOOL_POSTDEP_PREDEP 4335 4336# AC_LIBTOOL_LANG_F77_CONFIG 4337# ------------------------ 4338# Ensure that the configuration vars for the C compiler are 4339# suitably defined. Those variables are subsequently used by 4340# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 4341AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)]) 4342AC_DEFUN([_LT_AC_LANG_F77_CONFIG], 4343[AC_REQUIRE([AC_PROG_F77]) 4344AC_LANG_PUSH(Fortran 77) 4345 4346_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 4347_LT_AC_TAGVAR(allow_undefined_flag, $1)= 4348_LT_AC_TAGVAR(always_export_symbols, $1)=no 4349_LT_AC_TAGVAR(archive_expsym_cmds, $1)= 4350_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= 4351_LT_AC_TAGVAR(hardcode_direct, $1)=no 4352_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= 4353_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 4354_LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 4355_LT_AC_TAGVAR(hardcode_minus_L, $1)=no 4356_LT_AC_TAGVAR(hardcode_automatic, $1)=no 4357_LT_AC_TAGVAR(module_cmds, $1)= 4358_LT_AC_TAGVAR(module_expsym_cmds, $1)= 4359_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown 4360_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 4361_LT_AC_TAGVAR(no_undefined_flag, $1)= 4362_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 4363_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no 4364 4365# Source file extension for f77 test sources. 4366ac_ext=f 4367 4368# Object file extension for compiled f77 test sources. 4369objext=o 4370_LT_AC_TAGVAR(objext, $1)=$objext 4371 4372# Code to be used in simple compile tests 4373lt_simple_compile_test_code=" subroutine t\n return\n end\n" 4374 4375# Code to be used in simple link tests 4376lt_simple_link_test_code=" program t\n end\n" 4377 4378# ltmain only uses $CC for tagged configurations so make sure $CC is set. 4379_LT_AC_SYS_COMPILER 4380 4381# save warnings/boilerplate of simple test code 4382_LT_COMPILER_BOILERPLATE 4383_LT_LINKER_BOILERPLATE 4384 4385# Allow CC to be a program name with arguments. 4386lt_save_CC="$CC" 4387CC=${F77-"f77"} 4388compiler=$CC 4389_LT_AC_TAGVAR(compiler, $1)=$CC 4390_LT_CC_BASENAME([$compiler]) 4391 4392AC_MSG_CHECKING([if libtool supports shared libraries]) 4393AC_MSG_RESULT([$can_build_shared]) 4394 4395AC_MSG_CHECKING([whether to build shared libraries]) 4396test "$can_build_shared" = "no" && enable_shared=no 4397 4398# On AIX, shared libraries and static libraries use the same namespace, and 4399# are all built from PIC. 4400case $host_os in 4401aix3*) 4402 test "$enable_shared" = yes && enable_static=no 4403 if test -n "$RANLIB"; then 4404 archive_cmds="$archive_cmds~\$RANLIB \$lib" 4405 postinstall_cmds='$RANLIB $lib' 4406 fi 4407 ;; 4408aix4* | aix5*) 4409 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 4410 test "$enable_shared" = yes && enable_static=no 4411 fi 4412 ;; 4413esac 4414AC_MSG_RESULT([$enable_shared]) 4415 4416AC_MSG_CHECKING([whether to build static libraries]) 4417# Make sure either enable_shared or enable_static is yes. 4418test "$enable_shared" = yes || enable_static=yes 4419AC_MSG_RESULT([$enable_static]) 4420 4421test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no 4422 4423_LT_AC_TAGVAR(GCC, $1)="$G77" 4424_LT_AC_TAGVAR(LD, $1)="$LD" 4425 4426AC_LIBTOOL_PROG_COMPILER_PIC($1) 4427AC_LIBTOOL_PROG_CC_C_O($1) 4428AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) 4429AC_LIBTOOL_PROG_LD_SHLIBS($1) 4430AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 4431AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 4432AC_LIBTOOL_SYS_LIB_STRIP 4433 4434 4435AC_LIBTOOL_CONFIG($1) 4436 4437AC_LANG_POP 4438CC="$lt_save_CC" 4439])# AC_LIBTOOL_LANG_F77_CONFIG 4440 4441 4442# AC_LIBTOOL_LANG_GCJ_CONFIG 4443# -------------------------- 4444# Ensure that the configuration vars for the C compiler are 4445# suitably defined. Those variables are subsequently used by 4446# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 4447AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)]) 4448AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG], 4449[AC_LANG_SAVE 4450 4451# Source file extension for Java test sources. 4452ac_ext=java 4453 4454# Object file extension for compiled Java test sources. 4455objext=o 4456_LT_AC_TAGVAR(objext, $1)=$objext 4457 4458# Code to be used in simple compile tests 4459lt_simple_compile_test_code="class foo {}\n" 4460 4461# Code to be used in simple link tests 4462lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n' 4463 4464# ltmain only uses $CC for tagged configurations so make sure $CC is set. 4465_LT_AC_SYS_COMPILER 4466 4467# save warnings/boilerplate of simple test code 4468_LT_COMPILER_BOILERPLATE 4469_LT_LINKER_BOILERPLATE 4470 4471# Allow CC to be a program name with arguments. 4472lt_save_CC="$CC" 4473CC=${GCJ-"gcj"} 4474compiler=$CC 4475_LT_AC_TAGVAR(compiler, $1)=$CC 4476_LT_CC_BASENAME([$compiler]) 4477 4478# GCJ did not exist at the time GCC didn't implicitly link libc in. 4479_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 4480 4481_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 4482 4483AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) 4484AC_LIBTOOL_PROG_COMPILER_PIC($1) 4485AC_LIBTOOL_PROG_CC_C_O($1) 4486AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) 4487AC_LIBTOOL_PROG_LD_SHLIBS($1) 4488AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 4489AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 4490AC_LIBTOOL_SYS_LIB_STRIP 4491AC_LIBTOOL_DLOPEN_SELF($1) 4492 4493AC_LIBTOOL_CONFIG($1) 4494 4495AC_LANG_RESTORE 4496CC="$lt_save_CC" 4497])# AC_LIBTOOL_LANG_GCJ_CONFIG 4498 4499 4500# AC_LIBTOOL_LANG_RC_CONFIG 4501# -------------------------- 4502# Ensure that the configuration vars for the Windows resource compiler are 4503# suitably defined. Those variables are subsequently used by 4504# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 4505AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)]) 4506AC_DEFUN([_LT_AC_LANG_RC_CONFIG], 4507[AC_LANG_SAVE 4508 4509# Source file extension for RC test sources. 4510ac_ext=rc 4511 4512# Object file extension for compiled RC test sources. 4513objext=o 4514_LT_AC_TAGVAR(objext, $1)=$objext 4515 4516# Code to be used in simple compile tests 4517lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 4518 4519# Code to be used in simple link tests 4520lt_simple_link_test_code="$lt_simple_compile_test_code" 4521 4522# ltmain only uses $CC for tagged configurations so make sure $CC is set. 4523_LT_AC_SYS_COMPILER 4524 4525# save warnings/boilerplate of simple test code 4526_LT_COMPILER_BOILERPLATE 4527_LT_LINKER_BOILERPLATE 4528 4529# Allow CC to be a program name with arguments. 4530lt_save_CC="$CC" 4531CC=${RC-"windres"} 4532compiler=$CC 4533_LT_AC_TAGVAR(compiler, $1)=$CC 4534_LT_CC_BASENAME([$compiler]) 4535_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 4536 4537AC_LIBTOOL_CONFIG($1) 4538 4539AC_LANG_RESTORE 4540CC="$lt_save_CC" 4541])# AC_LIBTOOL_LANG_RC_CONFIG 4542 4543 4544# AC_LIBTOOL_CONFIG([TAGNAME]) 4545# ---------------------------- 4546# If TAGNAME is not passed, then create an initial libtool script 4547# with a default configuration from the untagged config vars. Otherwise 4548# add code to config.status for appending the configuration named by 4549# TAGNAME from the matching tagged config vars. 4550AC_DEFUN([AC_LIBTOOL_CONFIG], 4551[# The else clause should only fire when bootstrapping the 4552# libtool distribution, otherwise you forgot to ship ltmain.sh 4553# with your package, and you will get complaints that there are 4554# no rules to generate ltmain.sh. 4555if test -f "$ltmain"; then 4556 # See if we are running on zsh, and set the options which allow our commands through 4557 # without removal of \ escapes. 4558 if test -n "${ZSH_VERSION+set}" ; then 4559 setopt NO_GLOB_SUBST 4560 fi 4561 # Now quote all the things that may contain metacharacters while being 4562 # careful not to overquote the AC_SUBSTed values. We take copies of the 4563 # variables and quote the copies for generation of the libtool script. 4564 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 4565 SED SHELL STRIP \ 4566 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 4567 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 4568 deplibs_check_method reload_flag reload_cmds need_locks \ 4569 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 4570 lt_cv_sys_global_symbol_to_c_name_address \ 4571 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 4572 old_postinstall_cmds old_postuninstall_cmds \ 4573 _LT_AC_TAGVAR(compiler, $1) \ 4574 _LT_AC_TAGVAR(CC, $1) \ 4575 _LT_AC_TAGVAR(LD, $1) \ 4576 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \ 4577 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \ 4578 _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \ 4579 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \ 4580 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \ 4581 _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \ 4582 _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \ 4583 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \ 4584 _LT_AC_TAGVAR(old_archive_cmds, $1) \ 4585 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \ 4586 _LT_AC_TAGVAR(predep_objects, $1) \ 4587 _LT_AC_TAGVAR(postdep_objects, $1) \ 4588 _LT_AC_TAGVAR(predeps, $1) \ 4589 _LT_AC_TAGVAR(postdeps, $1) \ 4590 _LT_AC_TAGVAR(compiler_lib_search_path, $1) \ 4591 _LT_AC_TAGVAR(archive_cmds, $1) \ 4592 _LT_AC_TAGVAR(archive_expsym_cmds, $1) \ 4593 _LT_AC_TAGVAR(postinstall_cmds, $1) \ 4594 _LT_AC_TAGVAR(postuninstall_cmds, $1) \ 4595 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \ 4596 _LT_AC_TAGVAR(allow_undefined_flag, $1) \ 4597 _LT_AC_TAGVAR(no_undefined_flag, $1) \ 4598 _LT_AC_TAGVAR(export_symbols_cmds, $1) \ 4599 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \ 4600 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \ 4601 _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \ 4602 _LT_AC_TAGVAR(hardcode_automatic, $1) \ 4603 _LT_AC_TAGVAR(module_cmds, $1) \ 4604 _LT_AC_TAGVAR(module_expsym_cmds, $1) \ 4605 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \ 4606 _LT_AC_TAGVAR(exclude_expsyms, $1) \ 4607 _LT_AC_TAGVAR(include_expsyms, $1); do 4608 4609 case $var in 4610 _LT_AC_TAGVAR(old_archive_cmds, $1) | \ 4611 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \ 4612 _LT_AC_TAGVAR(archive_cmds, $1) | \ 4613 _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \ 4614 _LT_AC_TAGVAR(module_cmds, $1) | \ 4615 _LT_AC_TAGVAR(module_expsym_cmds, $1) | \ 4616 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \ 4617 _LT_AC_TAGVAR(export_symbols_cmds, $1) | \ 4618 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 4619 postinstall_cmds | postuninstall_cmds | \ 4620 old_postinstall_cmds | old_postuninstall_cmds | \ 4621 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 4622 # Double-quote double-evaled strings. 4623 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 4624 ;; 4625 *) 4626 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 4627 ;; 4628 esac 4629 done 4630 4631 case $lt_echo in 4632 *'\[$]0 --fallback-echo"') 4633 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'` 4634 ;; 4635 esac 4636 4637ifelse([$1], [], 4638 [cfgfile="${ofile}T" 4639 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 4640 $rm -f "$cfgfile" 4641 AC_MSG_NOTICE([creating $ofile])], 4642 [cfgfile="$ofile"]) 4643 4644 cat <<__EOF__ >> "$cfgfile" 4645ifelse([$1], [], 4646[#! $SHELL 4647 4648# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 4649# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 4650# NOTE: Changes made to this file will be lost: look at ltmain.sh. 4651# 4652# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 4653# Free Software Foundation, Inc. 4654# 4655# This file is part of GNU Libtool: 4656# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 4657# 4658# This program is free software; you can redistribute it and/or modify 4659# it under the terms of the GNU General Public License as published by 4660# the Free Software Foundation; either version 2 of the License, or 4661# (at your option) any later version. 4662# 4663# This program is distributed in the hope that it will be useful, but 4664# WITHOUT ANY WARRANTY; without even the implied warranty of 4665# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 4666# General Public License for more details. 4667# 4668# You should have received a copy of the GNU General Public License 4669# along with this program; if not, write to the Free Software 4670# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 4671# 4672# As a special exception to the GNU General Public License, if you 4673# distribute this file as part of a program that contains a 4674# configuration script generated by Autoconf, you may include it under 4675# the same distribution terms that you use for the rest of that program. 4676 4677# A sed program that does not truncate output. 4678SED=$lt_SED 4679 4680# Sed that helps us avoid accidentally triggering echo(1) options like -n. 4681Xsed="$SED -e 1s/^X//" 4682 4683# The HP-UX ksh and POSIX shell print the target directory to stdout 4684# if CDPATH is set. 4685(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 4686 4687# The names of the tagged configurations supported by this script. 4688available_tags= 4689 4690# ### BEGIN LIBTOOL CONFIG], 4691[# ### BEGIN LIBTOOL TAG CONFIG: $tagname]) 4692 4693# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 4694 4695# Shell to use when invoking shell scripts. 4696SHELL=$lt_SHELL 4697 4698# Whether or not to build shared libraries. 4699build_libtool_libs=$enable_shared 4700 4701# Whether or not to build static libraries. 4702build_old_libs=$enable_static 4703 4704# Whether or not to add -lc for building shared libraries. 4705build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1) 4706 4707# Whether or not to disallow shared libs when runtime libs are static 4708allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) 4709 4710# Whether or not to optimize for fast installation. 4711fast_install=$enable_fast_install 4712 4713# The host system. 4714host_alias=$host_alias 4715host=$host 4716host_os=$host_os 4717 4718# The build system. 4719build_alias=$build_alias 4720build=$build 4721build_os=$build_os 4722 4723# An echo program that does not interpret backslashes. 4724echo=$lt_echo 4725 4726# The archiver. 4727AR=$lt_AR 4728AR_FLAGS=$lt_AR_FLAGS 4729 4730# A C compiler. 4731LTCC=$lt_LTCC 4732 4733# A language-specific compiler. 4734CC=$lt_[]_LT_AC_TAGVAR(compiler, $1) 4735 4736# Is the compiler the GNU C compiler? 4737with_gcc=$_LT_AC_TAGVAR(GCC, $1) 4738 4739# An ERE matcher. 4740EGREP=$lt_EGREP 4741 4742# The linker used to build libraries. 4743LD=$lt_[]_LT_AC_TAGVAR(LD, $1) 4744 4745# Whether we need hard or soft links. 4746LN_S=$lt_LN_S 4747 4748# A BSD-compatible nm program. 4749NM=$lt_NM 4750 4751# A symbol stripping program 4752STRIP=$lt_STRIP 4753 4754# Used to examine libraries when file_magic_cmd begins "file" 4755MAGIC_CMD=$MAGIC_CMD 4756 4757# Used on cygwin: DLL creation program. 4758DLLTOOL="$DLLTOOL" 4759 4760# Used on cygwin: object dumper. 4761OBJDUMP="$OBJDUMP" 4762 4763# Used on cygwin: assembler. 4764AS="$AS" 4765 4766# The name of the directory that contains temporary libtool files. 4767objdir=$objdir 4768 4769# How to create reloadable object files. 4770reload_flag=$lt_reload_flag 4771reload_cmds=$lt_reload_cmds 4772 4773# How to pass a linker flag through the compiler. 4774wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) 4775 4776# Object file suffix (normally "o"). 4777objext="$ac_objext" 4778 4779# Old archive suffix (normally "a"). 4780libext="$libext" 4781 4782# Shared library suffix (normally ".so"). 4783shrext_cmds='$shrext_cmds' 4784 4785# Executable file suffix (normally ""). 4786exeext="$exeext" 4787 4788# Additional compiler flags for building library objects. 4789pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) 4790pic_mode=$pic_mode 4791 4792# What is the maximum length of a command? 4793max_cmd_len=$lt_cv_sys_max_cmd_len 4794 4795# Does compiler simultaneously support -c and -o options? 4796compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) 4797 4798# Must we lock files when doing compilation? 4799need_locks=$lt_need_locks 4800 4801# Do we need the lib prefix for modules? 4802need_lib_prefix=$need_lib_prefix 4803 4804# Do we need a version for libraries? 4805need_version=$need_version 4806 4807# Whether dlopen is supported. 4808dlopen_support=$enable_dlopen 4809 4810# Whether dlopen of programs is supported. 4811dlopen_self=$enable_dlopen_self 4812 4813# Whether dlopen of statically linked programs is supported. 4814dlopen_self_static=$enable_dlopen_self_static 4815 4816# Compiler flag to prevent dynamic linking. 4817link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1) 4818 4819# Compiler flag to turn off builtin functions. 4820no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) 4821 4822# Compiler flag to allow reflexive dlopens. 4823export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) 4824 4825# Compiler flag to generate shared objects directly from archives. 4826whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1) 4827 4828# Compiler flag to generate thread-safe objects. 4829thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1) 4830 4831# Library versioning type. 4832version_type=$version_type 4833 4834# Format of library name prefix. 4835libname_spec=$lt_libname_spec 4836 4837# List of archive names. First name is the real one, the rest are links. 4838# The last name is the one that the linker finds with -lNAME. 4839library_names_spec=$lt_library_names_spec 4840 4841# The coded name of the library, if different from the real name. 4842soname_spec=$lt_soname_spec 4843 4844# Commands used to build and install an old-style archive. 4845RANLIB=$lt_RANLIB 4846old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1) 4847old_postinstall_cmds=$lt_old_postinstall_cmds 4848old_postuninstall_cmds=$lt_old_postuninstall_cmds 4849 4850# Create an old-style archive from a shared archive. 4851old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) 4852 4853# Create a temporary old-style archive to link instead of a shared archive. 4854old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) 4855 4856# Commands used to build and install a shared archive. 4857archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1) 4858archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1) 4859postinstall_cmds=$lt_postinstall_cmds 4860postuninstall_cmds=$lt_postuninstall_cmds 4861 4862# Commands used to build a loadable module (assumed same as above if empty) 4863module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1) 4864module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1) 4865 4866# Commands to strip libraries. 4867old_striplib=$lt_old_striplib 4868striplib=$lt_striplib 4869 4870# Dependencies to place before the objects being linked to create a 4871# shared library. 4872predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1) 4873 4874# Dependencies to place after the objects being linked to create a 4875# shared library. 4876postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1) 4877 4878# Dependencies to place before the objects being linked to create a 4879# shared library. 4880predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1) 4881 4882# Dependencies to place after the objects being linked to create a 4883# shared library. 4884postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1) 4885 4886# The library search path used internally by the compiler when linking 4887# a shared library. 4888compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1) 4889 4890# Method to check whether dependent libraries are shared objects. 4891deplibs_check_method=$lt_deplibs_check_method 4892 4893# Command to use when deplibs_check_method == file_magic. 4894file_magic_cmd=$lt_file_magic_cmd 4895 4896# Flag that allows shared libraries with undefined symbols to be built. 4897allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1) 4898 4899# Flag that forces no undefined symbols. 4900no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1) 4901 4902# Commands used to finish a libtool library installation in a directory. 4903finish_cmds=$lt_finish_cmds 4904 4905# Same as above, but a single script fragment to be evaled but not shown. 4906finish_eval=$lt_finish_eval 4907 4908# Take the output of nm and produce a listing of raw symbols and C names. 4909global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 4910 4911# Transform the output of nm in a proper C declaration 4912global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 4913 4914# Transform the output of nm in a C name address pair 4915global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 4916 4917# This is the shared library runtime path variable. 4918runpath_var=$runpath_var 4919 4920# This is the shared library path variable. 4921shlibpath_var=$shlibpath_var 4922 4923# Is shlibpath searched before the hard-coded library search path? 4924shlibpath_overrides_runpath=$shlibpath_overrides_runpath 4925 4926# How to hardcode a shared library path into an executable. 4927hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1) 4928 4929# Whether we should hardcode library paths into libraries. 4930hardcode_into_libs=$hardcode_into_libs 4931 4932# Flag to hardcode \$libdir into a binary during linking. 4933# This must work even if \$libdir does not exist. 4934hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) 4935 4936# If ld is used when linking, flag to hardcode \$libdir into 4937# a binary during linking. This must work even if \$libdir does 4938# not exist. 4939hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) 4940 4941# Whether we need a single -rpath flag with a separated argument. 4942hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1) 4943 4944# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 4945# resulting binary. 4946hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1) 4947 4948# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 4949# resulting binary. 4950hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1) 4951 4952# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 4953# the resulting binary. 4954hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1) 4955 4956# Set to yes if building a shared library automatically hardcodes DIR into the library 4957# and all subsequent libraries and executables linked against it. 4958hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1) 4959 4960# Variables whose values should be saved in libtool wrapper scripts and 4961# restored at relink time. 4962variables_saved_for_relink="$variables_saved_for_relink" 4963 4964# Whether libtool must link a program against all its dependency libraries. 4965link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1) 4966 4967# Compile-time system search path for libraries 4968sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 4969 4970# Run-time system search path for libraries 4971sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 4972 4973# Fix the shell variable \$srcfile for the compiler. 4974fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)" 4975 4976# Set to yes if exported symbols are required. 4977always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1) 4978 4979# The commands to list exported symbols. 4980export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1) 4981 4982# The commands to extract the exported symbol list from a shared archive. 4983extract_expsyms_cmds=$lt_extract_expsyms_cmds 4984 4985# Symbols that should not be listed in the preloaded symbols. 4986exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1) 4987 4988# Symbols that must always be exported. 4989include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1) 4990 4991ifelse([$1],[], 4992[# ### END LIBTOOL CONFIG], 4993[# ### END LIBTOOL TAG CONFIG: $tagname]) 4994 4995__EOF__ 4996 4997ifelse([$1],[], [ 4998 case $host_os in 4999 aix3*) 5000 cat <<\EOF >> "$cfgfile" 5001 5002# AIX sometimes has problems with the GCC collect2 program. For some 5003# reason, if we set the COLLECT_NAMES environment variable, the problems 5004# vanish in a puff of smoke. 5005if test "X${COLLECT_NAMES+set}" != Xset; then 5006 COLLECT_NAMES= 5007 export COLLECT_NAMES 5008fi 5009EOF 5010 ;; 5011 esac 5012 5013 # We use sed instead of cat because bash on DJGPP gets confused if 5014 # if finds mixed CR/LF and LF-only lines. Since sed operates in 5015 # text mode, it properly converts lines to CR/LF. This bash problem 5016 # is reportedly fixed, but why not run on old versions too? 5017 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 5018 5019 mv -f "$cfgfile" "$ofile" || \ 5020 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 5021 chmod +x "$ofile" 5022]) 5023else 5024 # If there is no Makefile yet, we rely on a make rule to execute 5025 # `config.status --recheck' to rerun these tests and create the 5026 # libtool script then. 5027 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 5028 if test -f "$ltmain_in"; then 5029 test -f Makefile && make "$ltmain" 5030 fi 5031fi 5032])# AC_LIBTOOL_CONFIG 5033 5034 5035# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME]) 5036# ------------------------------------------- 5037AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], 5038[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl 5039 5040_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 5041 5042if test "$GCC" = yes; then 5043 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' 5044 5045 AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], 5046 lt_cv_prog_compiler_rtti_exceptions, 5047 [-fno-rtti -fno-exceptions], [], 5048 [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) 5049fi 5050])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI 5051 5052 5053# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE 5054# --------------------------------- 5055AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], 5056[AC_REQUIRE([AC_CANONICAL_HOST]) 5057AC_REQUIRE([AC_PROG_NM]) 5058AC_REQUIRE([AC_OBJEXT]) 5059# Check for command to grab the raw symbol name followed by C symbol from nm. 5060AC_MSG_CHECKING([command to parse $NM output from $compiler object]) 5061AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], 5062[ 5063# These are sane defaults that work on at least a few old systems. 5064# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5065 5066# Character class describing NM global symbol codes. 5067symcode='[[BCDEGRST]]' 5068 5069# Regexp to match symbols that can be accessed directly from C. 5070sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' 5071 5072# Transform an extracted symbol line into a proper C declaration 5073lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 5074 5075# Transform an extracted symbol line into symbol name and symbol address 5076lt_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'" 5077 5078# Define system-specific variables. 5079case $host_os in 5080aix*) 5081 symcode='[[BCDT]]' 5082 ;; 5083cygwin* | mingw* | pw32*) 5084 symcode='[[ABCDGISTW]]' 5085 ;; 5086hpux*) # Its linker distinguishes data from code symbols 5087 if test "$host_cpu" = ia64; then 5088 symcode='[[ABCDEGRST]]' 5089 fi 5090 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5091 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'" 5092 ;; 5093linux*) 5094 if test "$host_cpu" = ia64; then 5095 symcode='[[ABCDGIRSTW]]' 5096 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5097 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'" 5098 fi 5099 ;; 5100irix* | nonstopux*) 5101 symcode='[[BCDEGRST]]' 5102 ;; 5103osf*) 5104 symcode='[[BCDEGQRST]]' 5105 ;; 5106solaris* | sysv5*) 5107 symcode='[[BDRT]]' 5108 ;; 5109sysv4) 5110 symcode='[[DFNSTU]]' 5111 ;; 5112esac 5113 5114# Handle CRLF in mingw tool chain 5115opt_cr= 5116case $build_os in 5117mingw*) 5118 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5119 ;; 5120esac 5121 5122# If we're using GNU nm, then use its standard symbol codes. 5123case `$NM -V 2>&1` in 5124*GNU* | *'with BFD'*) 5125 symcode='[[ABCDGIRSTW]]' ;; 5126esac 5127 5128# Try without a prefix undercore, then with it. 5129for ac_symprfx in "" "_"; do 5130 5131 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5132 symxfrm="\\1 $ac_symprfx\\2 \\2" 5133 5134 # Write the raw and C identifiers. 5135 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5136 5137 # Check to see that the pipe works correctly. 5138 pipe_works=no 5139 5140 rm -f conftest* 5141 cat > conftest.$ac_ext <<EOF 5142#ifdef __cplusplus 5143extern "C" { 5144#endif 5145char nm_test_var; 5146void nm_test_func(){} 5147#ifdef __cplusplus 5148} 5149#endif 5150int main(){nm_test_var='a';nm_test_func();return(0);} 5151EOF 5152 5153 if AC_TRY_EVAL(ac_compile); then 5154 # Now try to grab the symbols. 5155 nlist=conftest.nm 5156 if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then 5157 # Try sorting and uniquifying the output. 5158 if sort "$nlist" | uniq > "$nlist"T; then 5159 mv -f "$nlist"T "$nlist" 5160 else 5161 rm -f "$nlist"T 5162 fi 5163 5164 # Make sure that we snagged all the symbols we need. 5165 if grep ' nm_test_var$' "$nlist" >/dev/null; then 5166 if grep ' nm_test_func$' "$nlist" >/dev/null; then 5167 cat <<EOF > conftest.$ac_ext 5168#ifdef __cplusplus 5169extern "C" { 5170#endif 5171 5172EOF 5173 # Now generate the symbol file. 5174 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 5175 5176 cat <<EOF >> conftest.$ac_ext 5177#if defined (__STDC__) && __STDC__ 5178# define lt_ptr_t void * 5179#else 5180# define lt_ptr_t char * 5181# define const 5182#endif 5183 5184/* The mapping between symbol names and symbols. */ 5185const struct { 5186 const char *name; 5187 lt_ptr_t address; 5188} 5189lt_preloaded_symbols[[]] = 5190{ 5191EOF 5192 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 5193 cat <<\EOF >> conftest.$ac_ext 5194 {0, (lt_ptr_t) 0} 5195}; 5196 5197#ifdef __cplusplus 5198} 5199#endif 5200EOF 5201 # Now try linking the two files. 5202 mv conftest.$ac_objext conftstm.$ac_objext 5203 lt_save_LIBS="$LIBS" 5204 lt_save_CFLAGS="$CFLAGS" 5205 LIBS="conftstm.$ac_objext" 5206 CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" 5207 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then 5208 pipe_works=yes 5209 fi 5210 LIBS="$lt_save_LIBS" 5211 CFLAGS="$lt_save_CFLAGS" 5212 else 5213 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD 5214 fi 5215 else 5216 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD 5217 fi 5218 else 5219 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD 5220 fi 5221 else 5222 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD 5223 cat conftest.$ac_ext >&5 5224 fi 5225 rm -f conftest* conftst* 5226 5227 # Do not use the global_symbol_pipe unless it works. 5228 if test "$pipe_works" = yes; then 5229 break 5230 else 5231 lt_cv_sys_global_symbol_pipe= 5232 fi 5233done 5234]) 5235if test -z "$lt_cv_sys_global_symbol_pipe"; then 5236 lt_cv_sys_global_symbol_to_cdecl= 5237fi 5238if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5239 AC_MSG_RESULT(failed) 5240else 5241 AC_MSG_RESULT(ok) 5242fi 5243]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE 5244 5245 5246# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME]) 5247# --------------------------------------- 5248AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC], 5249[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)= 5250_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 5251_LT_AC_TAGVAR(lt_prog_compiler_static, $1)= 5252 5253AC_MSG_CHECKING([for $compiler option to produce PIC]) 5254 ifelse([$1],[CXX],[ 5255 # C++ specific cases for pic, static, wl, etc. 5256 if test "$GXX" = yes; then 5257 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5258 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 5259 5260 case $host_os in 5261 aix*) 5262 # All AIX code is PIC. 5263 if test "$host_cpu" = ia64; then 5264 # AIX 5 now supports IA64 processor 5265 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5266 fi 5267 ;; 5268 amigaos*) 5269 # FIXME: we need at least 68020 code to build shared libraries, but 5270 # adding the `-m68020' flag to GCC prevents building anything better, 5271 # like `-m68040'. 5272 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 5273 ;; 5274 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 5275 # PIC is the default for these OSes. 5276 ;; 5277 mingw* | os2* | pw32*) 5278 # This hack is so that the source file can tell whether it is being 5279 # built for inclusion in a dll (and should export symbols for example). 5280 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' 5281 ;; 5282 darwin* | rhapsody*) 5283 # PIC is the default on this platform 5284 # Common symbols not allowed in MH_DYLIB files 5285 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 5286 ;; 5287 *djgpp*) 5288 # DJGPP does not support shared libraries at all 5289 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 5290 ;; 5291 sysv4*MP*) 5292 if test -d /usr/nec; then 5293 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 5294 fi 5295 ;; 5296 hpux*) 5297 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 5298 # not for PA HP-UX. 5299 case $host_cpu in 5300 hppa*64*|ia64*) 5301 ;; 5302 *) 5303 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5304 ;; 5305 esac 5306 ;; 5307 *) 5308 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5309 ;; 5310 esac 5311 else 5312 case $host_os in 5313 aix4* | aix5*) 5314 # All AIX code is PIC. 5315 if test "$host_cpu" = ia64; then 5316 # AIX 5 now supports IA64 processor 5317 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5318 else 5319 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 5320 fi 5321 ;; 5322 chorus*) 5323 case $cc_basename in 5324 cxch68*) 5325 # Green Hills C++ Compiler 5326 # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" 5327 ;; 5328 esac 5329 ;; 5330 darwin*) 5331 # PIC is the default on this platform 5332 # Common symbols not allowed in MH_DYLIB files 5333 case $cc_basename in 5334 xlc*) 5335 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' 5336 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5337 ;; 5338 esac 5339 ;; 5340 dgux*) 5341 case $cc_basename in 5342 ec++*) 5343 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5344 ;; 5345 ghcx*) 5346 # Green Hills C++ Compiler 5347 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 5348 ;; 5349 *) 5350 ;; 5351 esac 5352 ;; 5353 freebsd* | kfreebsd*-gnu | dragonfly*) 5354 # FreeBSD uses GNU C++ 5355 ;; 5356 hpux9* | hpux10* | hpux11*) 5357 case $cc_basename in 5358 CC*) 5359 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5360 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 5361 if test "$host_cpu" != ia64; then 5362 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 5363 fi 5364 ;; 5365 aCC*) 5366 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5367 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 5368 case $host_cpu in 5369 hppa*64*|ia64*) 5370 # +Z the default 5371 ;; 5372 *) 5373 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 5374 ;; 5375 esac 5376 ;; 5377 *) 5378 ;; 5379 esac 5380 ;; 5381 irix5* | irix6* | nonstopux*) 5382 case $cc_basename in 5383 CC*) 5384 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5385 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 5386 # CC pic flag -KPIC is the default. 5387 ;; 5388 *) 5389 ;; 5390 esac 5391 ;; 5392 linux*) 5393 case $cc_basename in 5394 KCC*) 5395 # KAI C++ Compiler 5396 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 5397 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5398 ;; 5399 icpc* | ecpc*) 5400 # Intel C++ 5401 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5402 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5403 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 5404 ;; 5405 pgCC*) 5406 # Portland Group C++ compiler. 5407 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5408 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 5409 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5410 ;; 5411 cxx*) 5412 # Compaq C++ 5413 # Make sure the PIC flag is empty. It appears that all Alpha 5414 # Linux and Compaq Tru64 Unix objects are PIC. 5415 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 5416 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 5417 ;; 5418 *) 5419 ;; 5420 esac 5421 ;; 5422 lynxos*) 5423 ;; 5424 m88k*) 5425 ;; 5426 mvs*) 5427 case $cc_basename in 5428 cxx*) 5429 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' 5430 ;; 5431 *) 5432 ;; 5433 esac 5434 ;; 5435 netbsd*) 5436 ;; 5437 osf3* | osf4* | osf5*) 5438 case $cc_basename in 5439 KCC*) 5440 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 5441 ;; 5442 RCC*) 5443 # Rational C++ 2.4.1 5444 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 5445 ;; 5446 cxx*) 5447 # Digital/Compaq C++ 5448 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5449 # Make sure the PIC flag is empty. It appears that all Alpha 5450 # Linux and Compaq Tru64 Unix objects are PIC. 5451 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 5452 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 5453 ;; 5454 *) 5455 ;; 5456 esac 5457 ;; 5458 psos*) 5459 ;; 5460 sco*) 5461 case $cc_basename in 5462 CC*) 5463 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5464 ;; 5465 *) 5466 ;; 5467 esac 5468 ;; 5469 solaris*) 5470 case $cc_basename in 5471 CC*) 5472 # Sun C++ 4.2, 5.x and Centerline C++ 5473 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5474 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5475 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 5476 ;; 5477 gcx*) 5478 # Green Hills C++ Compiler 5479 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 5480 ;; 5481 *) 5482 ;; 5483 esac 5484 ;; 5485 sunos4*) 5486 case $cc_basename in 5487 CC*) 5488 # Sun C++ 4.x 5489 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 5490 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5491 ;; 5492 lcc*) 5493 # Lucid 5494 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 5495 ;; 5496 *) 5497 ;; 5498 esac 5499 ;; 5500 tandem*) 5501 case $cc_basename in 5502 NCC*) 5503 # NonStop-UX NCC 3.20 5504 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5505 ;; 5506 *) 5507 ;; 5508 esac 5509 ;; 5510 unixware*) 5511 ;; 5512 vxworks*) 5513 ;; 5514 *) 5515 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 5516 ;; 5517 esac 5518 fi 5519], 5520[ 5521 if test "$GCC" = yes; then 5522 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5523 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 5524 5525 case $host_os in 5526 aix*) 5527 # All AIX code is PIC. 5528 if test "$host_cpu" = ia64; then 5529 # AIX 5 now supports IA64 processor 5530 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5531 fi 5532 ;; 5533 5534 amigaos*) 5535 # FIXME: we need at least 68020 code to build shared libraries, but 5536 # adding the `-m68020' flag to GCC prevents building anything better, 5537 # like `-m68040'. 5538 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 5539 ;; 5540 5541 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 5542 # PIC is the default for these OSes. 5543 ;; 5544 5545 mingw* | pw32* | os2*) 5546 # This hack is so that the source file can tell whether it is being 5547 # built for inclusion in a dll (and should export symbols for example). 5548 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' 5549 ;; 5550 5551 darwin* | rhapsody*) 5552 # PIC is the default on this platform 5553 # Common symbols not allowed in MH_DYLIB files 5554 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 5555 ;; 5556 5557 msdosdjgpp*) 5558 # Just because we use GCC doesn't mean we suddenly get shared libraries 5559 # on systems that don't support them. 5560 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 5561 enable_shared=no 5562 ;; 5563 5564 sysv4*MP*) 5565 if test -d /usr/nec; then 5566 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 5567 fi 5568 ;; 5569 5570 hpux*) 5571 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 5572 # not for PA HP-UX. 5573 case $host_cpu in 5574 hppa*64*|ia64*) 5575 # +Z the default 5576 ;; 5577 *) 5578 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5579 ;; 5580 esac 5581 ;; 5582 5583 *) 5584 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5585 ;; 5586 esac 5587 else 5588 # PORTME Check for flag to pass linker flags through the system compiler. 5589 case $host_os in 5590 aix*) 5591 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5592 if test "$host_cpu" = ia64; then 5593 # AIX 5 now supports IA64 processor 5594 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5595 else 5596 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 5597 fi 5598 ;; 5599 darwin*) 5600 # PIC is the default on this platform 5601 # Common symbols not allowed in MH_DYLIB files 5602 case $cc_basename in 5603 xlc*) 5604 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' 5605 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5606 ;; 5607 esac 5608 ;; 5609 5610 mingw* | pw32* | os2*) 5611 # This hack is so that the source file can tell whether it is being 5612 # built for inclusion in a dll (and should export symbols for example). 5613 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' 5614 ;; 5615 5616 hpux9* | hpux10* | hpux11*) 5617 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5618 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 5619 # not for PA HP-UX. 5620 case $host_cpu in 5621 hppa*64*|ia64*) 5622 # +Z the default 5623 ;; 5624 *) 5625 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 5626 ;; 5627 esac 5628 # Is there a better lt_prog_compiler_static that works with the bundled CC? 5629 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 5630 ;; 5631 5632 irix5* | irix6* | nonstopux*) 5633 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5634 # PIC (with -KPIC) is the default. 5635 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 5636 ;; 5637 5638 newsos6) 5639 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5640 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5641 ;; 5642 5643 linux*) 5644 case $cc_basename in 5645 icc* | ecc*) 5646 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5647 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5648 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 5649 ;; 5650 pgcc* | pgf77* | pgf90* | pgf95*) 5651 # Portland Group compilers (*not* the Pentium gcc compiler, 5652 # which looks to be a dead project) 5653 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5654 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 5655 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5656 ;; 5657 ccc*) 5658 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5659 # All Alpha code is PIC. 5660 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 5661 ;; 5662 esac 5663 ;; 5664 5665 osf3* | osf4* | osf5*) 5666 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5667 # All OSF/1 code is PIC. 5668 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 5669 ;; 5670 5671 sco3.2v5*) 5672 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic' 5673 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn' 5674 ;; 5675 5676 solaris*) 5677 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5678 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5679 case $cc_basename in 5680 f77* | f90* | f95*) 5681 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; 5682 *) 5683 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; 5684 esac 5685 ;; 5686 5687 sunos4*) 5688 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 5689 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 5690 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5691 ;; 5692 5693 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 5694 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5695 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5696 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5697 ;; 5698 5699 sysv4*MP*) 5700 if test -d /usr/nec ;then 5701 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' 5702 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5703 fi 5704 ;; 5705 5706 unicos*) 5707 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5708 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 5709 ;; 5710 5711 uts4*) 5712 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 5713 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5714 ;; 5715 5716 *) 5717 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 5718 ;; 5719 esac 5720 fi 5721]) 5722AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)]) 5723 5724# 5725# Check to make sure the PIC flag actually works. 5726# 5727if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then 5728 AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works], 5729 _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1), 5730 [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [], 5731 [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in 5732 "" | " "*) ;; 5733 *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;; 5734 esac], 5735 [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 5736 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) 5737fi 5738case $host_os in 5739 # For platforms which do not support PIC, -DPIC is meaningless: 5740 *djgpp*) 5741 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 5742 ;; 5743 *) 5744 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])" 5745 ;; 5746esac 5747]) 5748 5749 5750# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME]) 5751# ------------------------------------ 5752# See if the linker supports building shared libraries. 5753AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS], 5754[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 5755ifelse([$1],[CXX],[ 5756 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 5757 case $host_os in 5758 aix4* | aix5*) 5759 # If we're using GNU nm, then we don't want the "-C" option. 5760 # -C means demangle to AIX nm, but means don't demangle with GNU nm 5761 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 5762 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' 5763 else 5764 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' 5765 fi 5766 ;; 5767 pw32*) 5768 _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" 5769 ;; 5770 cygwin* | mingw*) 5771 _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' 5772 ;; 5773 *) 5774 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 5775 ;; 5776 esac 5777],[ 5778 runpath_var= 5779 _LT_AC_TAGVAR(allow_undefined_flag, $1)= 5780 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no 5781 _LT_AC_TAGVAR(archive_cmds, $1)= 5782 _LT_AC_TAGVAR(archive_expsym_cmds, $1)= 5783 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)= 5784 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)= 5785 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= 5786 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 5787 _LT_AC_TAGVAR(thread_safe_flag_spec, $1)= 5788 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= 5789 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 5790 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 5791 _LT_AC_TAGVAR(hardcode_direct, $1)=no 5792 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no 5793 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 5794 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown 5795 _LT_AC_TAGVAR(hardcode_automatic, $1)=no 5796 _LT_AC_TAGVAR(module_cmds, $1)= 5797 _LT_AC_TAGVAR(module_expsym_cmds, $1)= 5798 _LT_AC_TAGVAR(always_export_symbols, $1)=no 5799 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 5800 # include_expsyms should be a list of space-separated symbols to be *always* 5801 # included in the symbol list 5802 _LT_AC_TAGVAR(include_expsyms, $1)= 5803 # exclude_expsyms can be an extended regexp of symbols to exclude 5804 # it will be wrapped by ` (' and `)$', so one must not match beginning or 5805 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 5806 # as well as any symbol that contains `d'. 5807 _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_" 5808 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 5809 # platforms (ab)use it in PIC code, but their linkers get confused if 5810 # the symbol is explicitly referenced. Since portable code cannot 5811 # rely on this symbol name, it's probably fine to never include it in 5812 # preloaded symbol tables. 5813 extract_expsyms_cmds= 5814 # Just being paranoid about ensuring that cc_basename is set. 5815 _LT_CC_BASENAME([$compiler]) 5816 case $host_os in 5817 cygwin* | mingw* | pw32*) 5818 # FIXME: the MSVC++ port hasn't been tested in a loooong time 5819 # When not using gcc, we currently assume that we are using 5820 # Microsoft Visual C++. 5821 if test "$GCC" != yes; then 5822 with_gnu_ld=no 5823 fi 5824 ;; 5825 openbsd*) 5826 with_gnu_ld=no 5827 ;; 5828 esac 5829 5830 _LT_AC_TAGVAR(ld_shlibs, $1)=yes 5831 if test "$with_gnu_ld" = yes; then 5832 # If archive_cmds runs LD, not CC, wlarc should be empty 5833 wlarc='${wl}' 5834 5835 # Set some defaults for GNU ld with shared library support. These 5836 # are reset later if shared libraries are not supported. Putting them 5837 # here allows them to be overridden if necessary. 5838 runpath_var=LD_RUN_PATH 5839 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' 5840 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 5841 # ancient GNU ld didn't support --whole-archive et. al. 5842 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 5843 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 5844 else 5845 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 5846 fi 5847 supports_anon_versioning=no 5848 case `$LD -v 2>/dev/null` in 5849 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 5850 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 5851 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 5852 *\ 2.11.*) ;; # other 2.11 versions 5853 *) supports_anon_versioning=yes ;; 5854 esac 5855 5856 # See if GNU ld supports shared libraries. 5857 case $host_os in 5858 aix3* | aix4* | aix5*) 5859 # On AIX/PPC, the GNU linker is very broken 5860 if test "$host_cpu" != ia64; then 5861 _LT_AC_TAGVAR(ld_shlibs, $1)=no 5862 cat <<EOF 1>&2 5863 5864*** Warning: the GNU linker, at least up to release 2.9.1, is reported 5865*** to be unable to reliably create shared libraries on AIX. 5866*** Therefore, libtool is disabling shared libraries support. If you 5867*** really care for shared libraries, you may want to modify your PATH 5868*** so that a non-GNU linker is found, and then restart. 5869 5870EOF 5871 fi 5872 ;; 5873 5874 amigaos*) 5875 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 5876 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5877 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 5878 5879 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 5880 # that the semantics of dynamic libraries on AmigaOS, at least up 5881 # to version 4, is to share data among multiple programs linked 5882 # with the same dynamic library. Since this doesn't match the 5883 # behavior of shared libraries on other platforms, we can't use 5884 # them. 5885 _LT_AC_TAGVAR(ld_shlibs, $1)=no 5886 ;; 5887 5888 beos*) 5889 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 5890 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 5891 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 5892 # support --undefined. This deserves some investigation. FIXME 5893 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5894 else 5895 _LT_AC_TAGVAR(ld_shlibs, $1)=no 5896 fi 5897 ;; 5898 5899 cygwin* | mingw* | pw32*) 5900 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 5901 # as there is no search path for DLLs. 5902 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5903 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 5904 _LT_AC_TAGVAR(always_export_symbols, $1)=no 5905 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 5906 _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' 5907 5908 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 5909 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 5910 # If the export-symbols file already is a .def file (1st line 5911 # is EXPORTS), use it as is; otherwise, prepend... 5912 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 5913 cp $export_symbols $output_objdir/$soname.def; 5914 else 5915 echo EXPORTS > $output_objdir/$soname.def; 5916 cat $export_symbols >> $output_objdir/$soname.def; 5917 fi~ 5918 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 5919 else 5920 _LT_AC_TAGVAR(ld_shlibs, $1)=no 5921 fi 5922 ;; 5923 5924 linux*) 5925 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 5926 tmp_addflag= 5927 case $cc_basename,$host_cpu in 5928 pgcc*) # Portland Group C compiler 5929 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 5930 tmp_addflag=' $pic_flag' 5931 ;; 5932 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 5933 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 5934 tmp_addflag=' $pic_flag -Mnomain' ;; 5935 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 5936 tmp_addflag=' -i_dynamic' ;; 5937 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 5938 tmp_addflag=' -i_dynamic -nofor_main' ;; 5939 ifc* | ifort*) # Intel Fortran compiler 5940 tmp_addflag=' -nofor_main' ;; 5941 esac 5942 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5943 5944 if test $supports_anon_versioning = yes; then 5945 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~ 5946 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 5947 $echo "local: *; };" >> $output_objdir/$libname.ver~ 5948 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 5949 fi 5950 else 5951 _LT_AC_TAGVAR(ld_shlibs, $1)=no 5952 fi 5953 ;; 5954 5955 netbsd*) 5956 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 5957 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 5958 wlarc= 5959 else 5960 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5961 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 5962 fi 5963 ;; 5964 5965 solaris* | sysv5*) 5966 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 5967 _LT_AC_TAGVAR(ld_shlibs, $1)=no 5968 cat <<EOF 1>&2 5969 5970*** Warning: The releases 2.8.* of the GNU linker cannot reliably 5971*** create shared libraries on Solaris systems. Therefore, libtool 5972*** is disabling shared libraries support. We urge you to upgrade GNU 5973*** binutils to release 2.9.1 or newer. Another option is to modify 5974*** your PATH or compiler configuration so that the native linker is 5975*** used, and then restart. 5976 5977EOF 5978 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 5979 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5980 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 5981 else 5982 _LT_AC_TAGVAR(ld_shlibs, $1)=no 5983 fi 5984 ;; 5985 5986 sunos4*) 5987 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 5988 wlarc= 5989 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 5990 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 5991 ;; 5992 5993 *) 5994 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 5995 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5996 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 5997 else 5998 _LT_AC_TAGVAR(ld_shlibs, $1)=no 5999 fi 6000 ;; 6001 esac 6002 6003 if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then 6004 runpath_var= 6005 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= 6006 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= 6007 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 6008 fi 6009 else 6010 # PORTME fill in a description of your system's linker (not GNU ld) 6011 case $host_os in 6012 aix3*) 6013 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 6014 _LT_AC_TAGVAR(always_export_symbols, $1)=yes 6015 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 6016 # Note: this linker hardcodes the directories in LIBPATH if there 6017 # are no directories specified by -L. 6018 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 6019 if test "$GCC" = yes && test -z "$link_static_flag"; then 6020 # Neither direct hardcoding nor static linking is supported with a 6021 # broken collect2. 6022 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported 6023 fi 6024 ;; 6025 6026 aix4* | aix5*) 6027 if test "$host_cpu" = ia64; then 6028 # On IA64, the linker does run time linking by default, so we don't 6029 # have to do anything special. 6030 aix_use_runtimelinking=no 6031 exp_sym_flag='-Bexport' 6032 no_entry_flag="" 6033 else 6034 # If we're using GNU nm, then we don't want the "-C" option. 6035 # -C means demangle to AIX nm, but means don't demangle with GNU nm 6036 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 6037 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' 6038 else 6039 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' 6040 fi 6041 aix_use_runtimelinking=no 6042 6043 # Test if we are trying to use run time linking or normal 6044 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 6045 # need to do runtime linking. 6046 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) 6047 for ld_flag in $LDFLAGS; do 6048 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 6049 aix_use_runtimelinking=yes 6050 break 6051 fi 6052 done 6053 esac 6054 6055 exp_sym_flag='-bexport' 6056 no_entry_flag='-bnoentry' 6057 fi 6058 6059 # When large executables or shared objects are built, AIX ld can 6060 # have problems creating the table of contents. If linking a library 6061 # or program results in "error TOC overflow" add -mminimal-toc to 6062 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 6063 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 6064 6065 _LT_AC_TAGVAR(archive_cmds, $1)='' 6066 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 6067 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' 6068 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 6069 6070 if test "$GCC" = yes; then 6071 case $host_os in aix4.[[012]]|aix4.[[012]].*) 6072 # We only want to do this on AIX 4.2 and lower, the check 6073 # below for broken collect2 doesn't work under 4.3+ 6074 collect2name=`${CC} -print-prog-name=collect2` 6075 if test -f "$collect2name" && \ 6076 strings "$collect2name" | grep resolve_lib_name >/dev/null 6077 then 6078 # We have reworked collect2 6079 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 6080 else 6081 # We have old collect2 6082 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported 6083 # It fails to find uninstalled libraries when the uninstalled 6084 # path is not listed in the libpath. Setting hardcode_minus_L 6085 # to unsupported forces relinking 6086 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 6087 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6088 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 6089 fi 6090 esac 6091 shared_flag='-shared' 6092 if test "$aix_use_runtimelinking" = yes; then 6093 shared_flag="$shared_flag "'${wl}-G' 6094 fi 6095 else 6096 # not using gcc 6097 if test "$host_cpu" = ia64; then 6098 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 6099 # chokes on -Wl,-G. The following line is correct: 6100 shared_flag='-G' 6101 else 6102 if test "$aix_use_runtimelinking" = yes; then 6103 shared_flag='${wl}-G' 6104 else 6105 shared_flag='${wl}-bM:SRE' 6106 fi 6107 fi 6108 fi 6109 6110 # It seems that -bexpall does not export symbols beginning with 6111 # underscore (_), so it is better to generate a list of symbols to export. 6112 _LT_AC_TAGVAR(always_export_symbols, $1)=yes 6113 if test "$aix_use_runtimelinking" = yes; then 6114 # Warning - without using the other runtime loading flags (-brtl), 6115 # -berok will link without error, but may produce a broken library. 6116 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' 6117 # Determine the default libpath from the value encoded in an empty executable. 6118 _LT_AC_SYS_LIBPATH_AIX 6119 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 6120 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 6121 else 6122 if test "$host_cpu" = ia64; then 6123 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' 6124 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 6125 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 6126 else 6127 # Determine the default libpath from the value encoded in an empty executable. 6128 _LT_AC_SYS_LIBPATH_AIX 6129 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 6130 # Warning - without using the other run time loading flags, 6131 # -berok will link without error, but may produce a broken library. 6132 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 6133 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 6134 # -bexpall does not export symbols beginning with underscore (_) 6135 _LT_AC_TAGVAR(always_export_symbols, $1)=yes 6136 # Exported symbols can be pulled into shared objects from archives 6137 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' ' 6138 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes 6139 # This is similar to how AIX traditionally builds its shared libraries. 6140 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 6141 fi 6142 fi 6143 ;; 6144 6145 amigaos*) 6146 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 6147 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6148 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 6149 # see comment about different semantics on the GNU ld section 6150 _LT_AC_TAGVAR(ld_shlibs, $1)=no 6151 ;; 6152 6153 bsdi[[45]]*) 6154 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic 6155 ;; 6156 6157 cygwin* | mingw* | pw32*) 6158 # When not using gcc, we currently assume that we are using 6159 # Microsoft Visual C++. 6160 # hardcode_libdir_flag_spec is actually meaningless, as there is 6161 # no search path for DLLs. 6162 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 6163 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 6164 # Tell ltmain to make .lib files, not .a files. 6165 libext=lib 6166 # Tell ltmain to make .dll files, not .so files. 6167 shrext_cmds=".dll" 6168 # FIXME: Setting linknames here is a bad hack. 6169 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 6170 # The linker will automatically build a .lib file if we build a DLL. 6171 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' 6172 # FIXME: Should let the user specify the lib program. 6173 _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs' 6174 _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' 6175 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 6176 ;; 6177 6178 darwin* | rhapsody*) 6179 case $host_os in 6180 rhapsody* | darwin1.[[012]]) 6181 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' 6182 ;; 6183 *) # Darwin 1.3 on 6184 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 6185 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 6186 else 6187 case ${MACOSX_DEPLOYMENT_TARGET} in 6188 10.[[012]]) 6189 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 6190 ;; 6191 10.*) 6192 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' 6193 ;; 6194 esac 6195 fi 6196 ;; 6197 esac 6198 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 6199 _LT_AC_TAGVAR(hardcode_direct, $1)=no 6200 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes 6201 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 6202 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' 6203 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 6204 if test "$GCC" = yes ; then 6205 output_verbose_link_cmd='echo' 6206 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 6207 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 6208 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 6209 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 6210 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 6211 else 6212 case $cc_basename in 6213 xlc*) 6214 output_verbose_link_cmd='echo' 6215 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 6216 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 6217 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 6218 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 6219 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 6220 ;; 6221 *) 6222 _LT_AC_TAGVAR(ld_shlibs, $1)=no 6223 ;; 6224 esac 6225 fi 6226 ;; 6227 6228 dgux*) 6229 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6230 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6231 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6232 ;; 6233 6234 freebsd1*) 6235 _LT_AC_TAGVAR(ld_shlibs, $1)=no 6236 ;; 6237 6238 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 6239 # support. Future versions do this automatically, but an explicit c++rt0.o 6240 # does not break anything, and helps significantly (at the cost of a little 6241 # extra space). 6242 freebsd2.2*) 6243 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 6244 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 6245 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 6246 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6247 ;; 6248 6249 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 6250 freebsd2*) 6251 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6252 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 6253 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 6254 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6255 ;; 6256 6257 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 6258 freebsd* | kfreebsd*-gnu | dragonfly*) 6259 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 6260 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 6261 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 6262 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6263 ;; 6264 6265 hpux9*) 6266 if test "$GCC" = yes; then 6267 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 6268 else 6269 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 6270 fi 6271 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 6272 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 6273 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 6274 6275 # hardcode_minus_L: Not really in the search PATH, 6276 # but as the default location of the library. 6277 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 6278 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 6279 ;; 6280 6281 hpux10* | hpux11*) 6282 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 6283 case $host_cpu in 6284 hppa*64*|ia64*) 6285 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 6286 ;; 6287 *) 6288 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 6289 ;; 6290 esac 6291 else 6292 case $host_cpu in 6293 hppa*64*|ia64*) 6294 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 6295 ;; 6296 *) 6297 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 6298 ;; 6299 esac 6300 fi 6301 if test "$with_gnu_ld" = no; then 6302 case $host_cpu in 6303 hppa*64*) 6304 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 6305 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' 6306 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 6307 _LT_AC_TAGVAR(hardcode_direct, $1)=no 6308 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6309 ;; 6310 ia64*) 6311 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6312 _LT_AC_TAGVAR(hardcode_direct, $1)=no 6313 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6314 6315 # hardcode_minus_L: Not really in the search PATH, 6316 # but as the default location of the library. 6317 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 6318 ;; 6319 *) 6320 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 6321 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 6322 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 6323 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 6324 6325 # hardcode_minus_L: Not really in the search PATH, 6326 # but as the default location of the library. 6327 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 6328 ;; 6329 esac 6330 fi 6331 ;; 6332 6333 irix5* | irix6* | nonstopux*) 6334 if test "$GCC" = yes; then 6335 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 6336 else 6337 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 6338 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' 6339 fi 6340 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 6341 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 6342 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 6343 ;; 6344 6345 netbsd*) 6346 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 6347 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 6348 else 6349 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 6350 fi 6351 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 6352 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 6353 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6354 ;; 6355 6356 newsos6) 6357 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6358 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 6359 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 6360 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 6361 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6362 ;; 6363 6364 openbsd*) 6365 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 6366 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6367 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6368 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 6369 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 6370 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 6371 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 6372 else 6373 case $host_os in 6374 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) 6375 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6376 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 6377 ;; 6378 *) 6379 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 6380 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 6381 ;; 6382 esac 6383 fi 6384 ;; 6385 6386 os2*) 6387 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6388 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 6389 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 6390 _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 6391 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 6392 ;; 6393 6394 osf3*) 6395 if test "$GCC" = yes; then 6396 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 6397 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 6398 else 6399 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 6400 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 6401 fi 6402 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 6403 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 6404 ;; 6405 6406 osf4* | osf5*) # as osf3* with the addition of -msym flag 6407 if test "$GCC" = yes; then 6408 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 6409 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 6410 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 6411 else 6412 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 6413 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 6414 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 6415 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 6416 6417 # Both c and cxx compiler support -rpath directly 6418 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 6419 fi 6420 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 6421 ;; 6422 6423 sco3.2v5*) 6424 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6425 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6426 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' 6427 runpath_var=LD_RUN_PATH 6428 hardcode_runpath_var=yes 6429 ;; 6430 6431 solaris*) 6432 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' 6433 if test "$GCC" = yes; then 6434 wlarc='${wl}' 6435 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 6436 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 6437 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 6438 else 6439 wlarc='' 6440 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 6441 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 6442 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 6443 fi 6444 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 6445 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6446 case $host_os in 6447 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 6448 *) 6449 # The compiler driver will combine linker options so we 6450 # cannot just pass the convience library names through 6451 # without $wl, iff we do not link with $LD. 6452 # Luckily, gcc supports the same syntax we need for Sun Studio. 6453 # Supported since Solaris 2.6 (maybe 2.5.1?) 6454 case $wlarc in 6455 '') 6456 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; 6457 *) 6458 _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' ;; 6459 esac ;; 6460 esac 6461 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 6462 ;; 6463 6464 sunos4*) 6465 if test "x$host_vendor" = xsequent; then 6466 # Use $CC to link under sequent, because it throws in some extra .o 6467 # files that make .init and .fini sections work. 6468 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 6469 else 6470 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 6471 fi 6472 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6473 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 6474 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 6475 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6476 ;; 6477 6478 sysv4) 6479 case $host_vendor in 6480 sni) 6481 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6482 _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true??? 6483 ;; 6484 siemens) 6485 ## LD is ld it makes a PLAMLIB 6486 ## CC just makes a GrossModule. 6487 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' 6488 _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' 6489 _LT_AC_TAGVAR(hardcode_direct, $1)=no 6490 ;; 6491 motorola) 6492 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6493 _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie 6494 ;; 6495 esac 6496 runpath_var='LD_RUN_PATH' 6497 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6498 ;; 6499 6500 sysv4.3*) 6501 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6502 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6503 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' 6504 ;; 6505 6506 sysv4*MP*) 6507 if test -d /usr/nec; then 6508 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6509 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6510 runpath_var=LD_RUN_PATH 6511 hardcode_runpath_var=yes 6512 _LT_AC_TAGVAR(ld_shlibs, $1)=yes 6513 fi 6514 ;; 6515 6516 sysv4.2uw2*) 6517 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' 6518 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 6519 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no 6520 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6521 hardcode_runpath_var=yes 6522 runpath_var=LD_RUN_PATH 6523 ;; 6524 6525 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*) 6526 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text' 6527 if test "$GCC" = yes; then 6528 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 6529 else 6530 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 6531 fi 6532 runpath_var='LD_RUN_PATH' 6533 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6534 ;; 6535 6536 sysv5*) 6537 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' 6538 # $CC -shared without GNU ld will not create a library from C++ 6539 # object files and a static libstdc++, better avoid it by now 6540 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 6541 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 6542 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 6543 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= 6544 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6545 runpath_var='LD_RUN_PATH' 6546 ;; 6547 6548 uts4*) 6549 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6550 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6551 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6552 ;; 6553 6554 *) 6555 _LT_AC_TAGVAR(ld_shlibs, $1)=no 6556 ;; 6557 esac 6558 fi 6559]) 6560AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) 6561test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no 6562 6563variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 6564if test "$GCC" = yes; then 6565 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 6566fi 6567 6568# 6569# Do we need to explicitly link libc? 6570# 6571case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in 6572x|xyes) 6573 # Assume -lc should be added 6574 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes 6575 6576 if test "$enable_shared" = yes && test "$GCC" = yes; then 6577 case $_LT_AC_TAGVAR(archive_cmds, $1) in 6578 *'~'*) 6579 # FIXME: we may have to deal with multi-command sequences. 6580 ;; 6581 '$CC '*) 6582 # Test whether the compiler implicitly links with -lc since on some 6583 # systems, -lgcc has to come before -lc. If gcc already passes -lc 6584 # to ld, don't add -lc before -lgcc. 6585 AC_MSG_CHECKING([whether -lc should be explicitly linked in]) 6586 $rm conftest* 6587 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6588 6589 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then 6590 soname=conftest 6591 lib=conftest 6592 libobjs=conftest.$ac_objext 6593 deplibs= 6594 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) 6595 compiler_flags=-v 6596 linker_flags=-v 6597 verstring= 6598 output_objdir=. 6599 libname=conftest 6600 lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1) 6601 _LT_AC_TAGVAR(allow_undefined_flag, $1)= 6602 if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 6603 then 6604 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 6605 else 6606 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes 6607 fi 6608 _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag 6609 else 6610 cat conftest.err 1>&5 6611 fi 6612 $rm conftest* 6613 AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)]) 6614 ;; 6615 esac 6616 fi 6617 ;; 6618esac 6619])# AC_LIBTOOL_PROG_LD_SHLIBS 6620 6621 6622# _LT_AC_FILE_LTDLL_C 6623# ------------------- 6624# Be careful that the start marker always follows a newline. 6625AC_DEFUN([_LT_AC_FILE_LTDLL_C], [ 6626# /* ltdll.c starts here */ 6627# #define WIN32_LEAN_AND_MEAN 6628# #include <windows.h> 6629# #undef WIN32_LEAN_AND_MEAN 6630# #include <stdio.h> 6631# 6632# #ifndef __CYGWIN__ 6633# # ifdef __CYGWIN32__ 6634# # define __CYGWIN__ __CYGWIN32__ 6635# # endif 6636# #endif 6637# 6638# #ifdef __cplusplus 6639# extern "C" { 6640# #endif 6641# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); 6642# #ifdef __cplusplus 6643# } 6644# #endif 6645# 6646# #ifdef __CYGWIN__ 6647# #include <cygwin/cygwin_dll.h> 6648# DECLARE_CYGWIN_DLL( DllMain ); 6649# #endif 6650# HINSTANCE __hDllInstance_base; 6651# 6652# BOOL APIENTRY 6653# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) 6654# { 6655# __hDllInstance_base = hInst; 6656# return TRUE; 6657# } 6658# /* ltdll.c ends here */ 6659])# _LT_AC_FILE_LTDLL_C 6660 6661 6662# _LT_AC_TAGVAR(VARNAME, [TAGNAME]) 6663# --------------------------------- 6664AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])]) 6665 6666 6667# old names 6668AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL]) 6669AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) 6670AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) 6671AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) 6672AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) 6673AC_DEFUN([AM_PROG_LD], [AC_PROG_LD]) 6674AC_DEFUN([AM_PROG_NM], [AC_PROG_NM]) 6675 6676# This is just to silence aclocal about the macro not being used 6677ifelse([AC_DISABLE_FAST_INSTALL]) 6678 6679AC_DEFUN([LT_AC_PROG_GCJ], 6680[AC_CHECK_TOOL(GCJ, gcj, no) 6681 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" 6682 AC_SUBST(GCJFLAGS) 6683]) 6684 6685AC_DEFUN([LT_AC_PROG_RC], 6686[AC_CHECK_TOOL(RC, windres, no) 6687]) 6688 6689# NOTE: This macro has been submitted for inclusion into # 6690# GNU Autoconf as AC_PROG_SED. When it is available in # 6691# a released version of Autoconf we should remove this # 6692# macro and use it instead. # 6693# LT_AC_PROG_SED 6694# -------------- 6695# Check for a fully-functional sed program, that truncates 6696# as few characters as possible. Prefer GNU sed if found. 6697AC_DEFUN([LT_AC_PROG_SED], 6698[AC_MSG_CHECKING([for a sed that does not truncate output]) 6699AC_CACHE_VAL(lt_cv_path_SED, 6700[# Loop through the user's path and test for sed and gsed. 6701# Then use that list of sed's as ones to test for truncation. 6702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6703for as_dir in $PATH 6704do 6705 IFS=$as_save_IFS 6706 test -z "$as_dir" && as_dir=. 6707 for lt_ac_prog in sed gsed; do 6708 for ac_exec_ext in '' $ac_executable_extensions; do 6709 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 6710 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 6711 fi 6712 done 6713 done 6714done 6715lt_ac_max=0 6716lt_ac_count=0 6717# Add /usr/xpg4/bin/sed as it is typically found on Solaris 6718# along with /bin/sed that truncates output. 6719for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 6720 test ! -f $lt_ac_sed && continue 6721 cat /dev/null > conftest.in 6722 lt_ac_count=0 6723 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 6724 # Check for GNU sed and select it if it is found. 6725 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 6726 lt_cv_path_SED=$lt_ac_sed 6727 break 6728 fi 6729 while true; do 6730 cat conftest.in conftest.in >conftest.tmp 6731 mv conftest.tmp conftest.in 6732 cp conftest.in conftest.nl 6733 echo >>conftest.nl 6734 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 6735 cmp -s conftest.out conftest.nl || break 6736 # 10000 chars as input seems more than enough 6737 test $lt_ac_count -gt 10 && break 6738 lt_ac_count=`expr $lt_ac_count + 1` 6739 if test $lt_ac_count -gt $lt_ac_max; then 6740 lt_ac_max=$lt_ac_count 6741 lt_cv_path_SED=$lt_ac_sed 6742 fi 6743 done 6744done 6745]) 6746SED=$lt_cv_path_SED 6747AC_MSG_RESULT([$SED]) 6748]) 6749 6750# CFLAGS and library paths for XMMS 6751# written 15 December 1999 by Ben Gertzfield <che@debian.org> 6752 6753dnl Usage: 6754dnl AM_PATH_XMMS([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]]) 6755dnl 6756dnl Example: 6757dnl AM_PATH_XMMS(0.9.5.1, , AC_MSG_ERROR([*** XMMS >= 0.9.5.1 not installed - please install first ***])) 6758dnl 6759dnl Defines XMMS_CFLAGS, XMMS_LIBS, XMMS_DATA_DIR, XMMS_PLUGIN_DIR, 6760dnl XMMS_VISUALIZATION_PLUGIN_DIR, XMMS_INPUT_PLUGIN_DIR, 6761dnl XMMS_OUTPUT_PLUGIN_DIR, XMMS_GENERAL_PLUGIN_DIR, XMMS_EFFECT_PLUGIN_DIR, 6762dnl and XMMS_VERSION for your plugin pleasure. 6763dnl 6764 6765dnl XMMS_TEST_VERSION(AVAILABLE-VERSION, NEEDED-VERSION [, ACTION-IF-OKAY [, ACTION-IF-NOT-OKAY]]) 6766AC_DEFUN(XMMS_TEST_VERSION, [ 6767 6768# Determine which version number is greater. Prints 2 to stdout if 6769# the second number is greater, 1 if the first number is greater, 6770# 0 if the numbers are equal. 6771 6772# Written 15 December 1999 by Ben Gertzfield <che@debian.org> 6773# Revised 15 December 1999 by Jim Monty <monty@primenet.com> 6774 6775 AC_PROG_AWK 6776 xmms_got_version=[` $AWK ' \ 6777BEGIN { \ 6778 print vercmp(ARGV[1], ARGV[2]); \ 6779} \ 6780 \ 6781function vercmp(ver1, ver2, ver1arr, ver2arr, \ 6782 ver1len, ver2len, \ 6783 ver1int, ver2int, len, i, p) { \ 6784 \ 6785 ver1len = split(ver1, ver1arr, /\./); \ 6786 ver2len = split(ver2, ver2arr, /\./); \ 6787 \ 6788 len = ver1len > ver2len ? ver1len : ver2len; \ 6789 \ 6790 for (i = 1; i <= len; i++) { \ 6791 p = 1000 ^ (len - i); \ 6792 ver1int += ver1arr[i] * p; \ 6793 ver2int += ver2arr[i] * p; \ 6794 } \ 6795 \ 6796 if (ver1int < ver2int) \ 6797 return 2; \ 6798 else if (ver1int > ver2int) \ 6799 return 1; \ 6800 else \ 6801 return 0; \ 6802}' $1 $2`] 6803 6804 if test $xmms_got_version -eq 2; then # failure 6805 ifelse([$4], , :, $4) 6806 else # success! 6807 ifelse([$3], , :, $3) 6808 fi 6809]) 6810 6811AC_DEFUN(AM_PATH_XMMS, 6812[ 6813AC_ARG_WITH(xmms-prefix,[ --with-xmms-prefix=PFX Prefix where XMMS is installed (optional)], 6814 xmms_config_prefix="$withval", xmms_config_prefix="") 6815AC_ARG_WITH(xmms-exec-prefix,[ --with-xmms-exec-prefix=PFX Exec prefix where XMMS is installed (optional)], 6816 xmms_config_exec_prefix="$withval", xmms_config_exec_prefix="") 6817 6818if test x$xmms_config_exec_prefix != x; then 6819 xmms_config_args="$xmms_config_args --exec-prefix=$xmms_config_exec_prefix" 6820 if test x${XMMS_CONFIG+set} != xset; then 6821 XMMS_CONFIG=$xmms_config_exec_prefix/bin/xmms-config 6822 fi 6823fi 6824 6825if test x$xmms_config_prefix != x; then 6826 xmms_config_args="$xmms_config_args --prefix=$xmms_config_prefix" 6827 if test x${XMMS_CONFIG+set} != xset; then 6828 XMMS_CONFIG=$xmms_config_prefix/bin/xmms-config 6829 fi 6830fi 6831 6832AC_PATH_PROG(XMMS_CONFIG, xmms-config, no) 6833min_xmms_version=ifelse([$1], ,0.9.5.1, $1) 6834 6835if test "$XMMS_CONFIG" = "no"; then 6836 no_xmms=yes 6837else 6838 XMMS_CFLAGS=`$XMMS_CONFIG $xmms_config_args --cflags` 6839 XMMS_LIBS=`$XMMS_CONFIG $xmms_config_args --libs` 6840 XMMS_VERSION=`$XMMS_CONFIG $xmms_config_args --version` 6841 XMMS_DATA_DIR=`$XMMS_CONFIG $xmms_config_args --data-dir` 6842 XMMS_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --plugin-dir` 6843 XMMS_VISUALIZATION_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args \ 6844 --visualization-plugin-dir` 6845 XMMS_INPUT_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --input-plugin-dir` 6846 XMMS_OUTPUT_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --output-plugin-dir` 6847 XMMS_EFFECT_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --effect-plugin-dir` 6848 XMMS_GENERAL_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --general-plugin-dir` 6849 6850 XMMS_TEST_VERSION($XMMS_VERSION, $min_xmms_version, ,no_xmms=version) 6851fi 6852 6853AC_MSG_CHECKING(for XMMS - version >= $min_xmms_version) 6854 6855if test "x$no_xmms" = x; then 6856 AC_MSG_RESULT(yes) 6857 ifelse([$2], , :, [$2]) 6858else 6859 AC_MSG_RESULT(no) 6860 6861 if test "$XMMS_CONFIG" = "no" ; then 6862 echo "*** The xmms-config script installed by XMMS could not be found." 6863 echo "*** If XMMS was installed in PREFIX, make sure PREFIX/bin is in" 6864 echo "*** your path, or set the XMMS_CONFIG environment variable to the" 6865 echo "*** full path to xmms-config." 6866 else 6867 if test "$no_xmms" = "version"; then 6868 echo "*** An old version of XMMS, $XMMS_VERSION, was found." 6869 echo "*** You need a version of XMMS newer than $min_xmms_version." 6870 echo "*** The latest version of XMMS is always available from" 6871 echo "*** http://www.xmms.org/" 6872 echo "***" 6873 6874 echo "*** If you have already installed a sufficiently new version, this error" 6875 echo "*** probably means that the wrong copy of the xmms-config shell script is" 6876 echo "*** being found. The easiest way to fix this is to remove the old version" 6877 echo "*** of XMMS, but you can also set the XMMS_CONFIG environment to point to the" 6878 echo "*** correct copy of xmms-config. (In this case, you will have to" 6879 echo "*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf" 6880 echo "*** so that the correct libraries are found at run-time)" 6881 fi 6882 fi 6883 XMMS_CFLAGS="" 6884 XMMS_LIBS="" 6885 ifelse([$3], , :, [$3]) 6886fi 6887AC_SUBST(XMMS_CFLAGS) 6888AC_SUBST(XMMS_LIBS) 6889AC_SUBST(XMMS_VERSION) 6890AC_SUBST(XMMS_DATA_DIR) 6891AC_SUBST(XMMS_PLUGIN_DIR) 6892AC_SUBST(XMMS_VISUALIZATION_PLUGIN_DIR) 6893AC_SUBST(XMMS_INPUT_PLUGIN_DIR) 6894AC_SUBST(XMMS_OUTPUT_PLUGIN_DIR) 6895AC_SUBST(XMMS_GENERAL_PLUGIN_DIR) 6896AC_SUBST(XMMS_EFFECT_PLUGIN_DIR) 6897]) 6898 6899# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc. 6900# 6901# This file is free software; the Free Software Foundation 6902# gives unlimited permission to copy and/or distribute it, 6903# with or without modifications, as long as this notice is preserved. 6904 6905# AM_AUTOMAKE_VERSION(VERSION) 6906# ---------------------------- 6907# Automake X.Y traces this macro to ensure aclocal.m4 has been 6908# generated from the m4 files accompanying Automake X.Y. 6909AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"]) 6910 6911# AM_SET_CURRENT_AUTOMAKE_VERSION 6912# ------------------------------- 6913# Call AM_AUTOMAKE_VERSION so it can be traced. 6914# This function is AC_REQUIREd by AC_INIT_AUTOMAKE. 6915AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 6916 [AM_AUTOMAKE_VERSION([1.9.6])]) 6917 6918# AM_AUX_DIR_EXPAND -*- Autoconf -*- 6919 6920# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 6921# 6922# This file is free software; the Free Software Foundation 6923# gives unlimited permission to copy and/or distribute it, 6924# with or without modifications, as long as this notice is preserved. 6925 6926# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets 6927# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to 6928# `$srcdir', `$srcdir/..', or `$srcdir/../..'. 6929# 6930# Of course, Automake must honor this variable whenever it calls a 6931# tool from the auxiliary directory. The problem is that $srcdir (and 6932# therefore $ac_aux_dir as well) can be either absolute or relative, 6933# depending on how configure is run. This is pretty annoying, since 6934# it makes $ac_aux_dir quite unusable in subdirectories: in the top 6935# source directory, any form will work fine, but in subdirectories a 6936# relative path needs to be adjusted first. 6937# 6938# $ac_aux_dir/missing 6939# fails when called from a subdirectory if $ac_aux_dir is relative 6940# $top_srcdir/$ac_aux_dir/missing 6941# fails if $ac_aux_dir is absolute, 6942# fails when called from a subdirectory in a VPATH build with 6943# a relative $ac_aux_dir 6944# 6945# The reason of the latter failure is that $top_srcdir and $ac_aux_dir 6946# are both prefixed by $srcdir. In an in-source build this is usually 6947# harmless because $srcdir is `.', but things will broke when you 6948# start a VPATH build or use an absolute $srcdir. 6949# 6950# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, 6951# iff we strip the leading $srcdir from $ac_aux_dir. That would be: 6952# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` 6953# and then we would define $MISSING as 6954# MISSING="\${SHELL} $am_aux_dir/missing" 6955# This will work as long as MISSING is not called from configure, because 6956# unfortunately $(top_srcdir) has no meaning in configure. 6957# However there are other variables, like CC, which are often used in 6958# configure, and could therefore not use this "fixed" $ac_aux_dir. 6959# 6960# Another solution, used here, is to always expand $ac_aux_dir to an 6961# absolute PATH. The drawback is that using absolute paths prevent a 6962# configured tree to be moved without reconfiguration. 6963 6964AC_DEFUN([AM_AUX_DIR_EXPAND], 6965[dnl Rely on autoconf to set up CDPATH properly. 6966AC_PREREQ([2.50])dnl 6967# expand $ac_aux_dir to an absolute path 6968am_aux_dir=`cd $ac_aux_dir && pwd` 6969]) 6970 6971# AM_CONDITIONAL -*- Autoconf -*- 6972 6973# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005 6974# Free Software Foundation, Inc. 6975# 6976# This file is free software; the Free Software Foundation 6977# gives unlimited permission to copy and/or distribute it, 6978# with or without modifications, as long as this notice is preserved. 6979 6980# serial 7 6981 6982# AM_CONDITIONAL(NAME, SHELL-CONDITION) 6983# ------------------------------------- 6984# Define a conditional. 6985AC_DEFUN([AM_CONDITIONAL], 6986[AC_PREREQ(2.52)dnl 6987 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], 6988 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl 6989AC_SUBST([$1_TRUE]) 6990AC_SUBST([$1_FALSE]) 6991if $2; then 6992 $1_TRUE= 6993 $1_FALSE='#' 6994else 6995 $1_TRUE='#' 6996 $1_FALSE= 6997fi 6998AC_CONFIG_COMMANDS_PRE( 6999[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then 7000 AC_MSG_ERROR([[conditional "$1" was never defined. 7001Usually this means the macro was only invoked conditionally.]]) 7002fi])]) 7003 7004 7005# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 7006# Free Software Foundation, Inc. 7007# 7008# This file is free software; the Free Software Foundation 7009# gives unlimited permission to copy and/or distribute it, 7010# with or without modifications, as long as this notice is preserved. 7011 7012# serial 8 7013 7014# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be 7015# written in clear, in which case automake, when reading aclocal.m4, 7016# will think it sees a *use*, and therefore will trigger all it's 7017# C support machinery. Also note that it means that autoscan, seeing 7018# CC etc. in the Makefile, will ask for an AC_PROG_CC use... 7019 7020 7021# _AM_DEPENDENCIES(NAME) 7022# ---------------------- 7023# See how the compiler implements dependency checking. 7024# NAME is "CC", "CXX", "GCJ", or "OBJC". 7025# We try a few techniques and use that to set a single cache variable. 7026# 7027# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was 7028# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular 7029# dependency, and given that the user is not expected to run this macro, 7030# just rely on AC_PROG_CC. 7031AC_DEFUN([_AM_DEPENDENCIES], 7032[AC_REQUIRE([AM_SET_DEPDIR])dnl 7033AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl 7034AC_REQUIRE([AM_MAKE_INCLUDE])dnl 7035AC_REQUIRE([AM_DEP_TRACK])dnl 7036 7037ifelse([$1], CC, [depcc="$CC" am_compiler_list=], 7038 [$1], CXX, [depcc="$CXX" am_compiler_list=], 7039 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], 7040 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 7041 [depcc="$$1" am_compiler_list=]) 7042 7043AC_CACHE_CHECK([dependency style of $depcc], 7044 [am_cv_$1_dependencies_compiler_type], 7045[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 7046 # We make a subdir and do the tests there. Otherwise we can end up 7047 # making bogus files that we don't know about and never remove. For 7048 # instance it was reported that on HP-UX the gcc test will end up 7049 # making a dummy file named `D' -- because `-MD' means `put the output 7050 # in D'. 7051 mkdir conftest.dir 7052 # Copy depcomp to subdir because otherwise we won't find it if we're 7053 # using a relative directory. 7054 cp "$am_depcomp" conftest.dir 7055 cd conftest.dir 7056 # We will build objects and dependencies in a subdirectory because 7057 # it helps to detect inapplicable dependency modes. For instance 7058 # both Tru64's cc and ICC support -MD to output dependencies as a 7059 # side effect of compilation, but ICC will put the dependencies in 7060 # the current directory while Tru64 will put them in the object 7061 # directory. 7062 mkdir sub 7063 7064 am_cv_$1_dependencies_compiler_type=none 7065 if test "$am_compiler_list" = ""; then 7066 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` 7067 fi 7068 for depmode in $am_compiler_list; do 7069 # Setup a source with many dependencies, because some compilers 7070 # like to wrap large dependency lists on column 80 (with \), and 7071 # we should not choose a depcomp mode which is confused by this. 7072 # 7073 # We need to recreate these files for each test, as the compiler may 7074 # overwrite some of them when testing with obscure command lines. 7075 # This happens at least with the AIX C compiler. 7076 : > sub/conftest.c 7077 for i in 1 2 3 4 5 6; do 7078 echo '#include "conftst'$i'.h"' >> sub/conftest.c 7079 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 7080 # Solaris 8's {/usr,}/bin/sh. 7081 touch sub/conftst$i.h 7082 done 7083 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 7084 7085 case $depmode in 7086 nosideeffect) 7087 # after this tag, mechanisms are not by side-effect, so they'll 7088 # only be used when explicitly requested 7089 if test "x$enable_dependency_tracking" = xyes; then 7090 continue 7091 else 7092 break 7093 fi 7094 ;; 7095 none) break ;; 7096 esac 7097 # We check with `-c' and `-o' for the sake of the "dashmstdout" 7098 # mode. It turns out that the SunPro C++ compiler does not properly 7099 # handle `-M -o', and we need to detect this. 7100 if depmode=$depmode \ 7101 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 7102 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 7103 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 7104 >/dev/null 2>conftest.err && 7105 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 7106 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 7107 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 7108 # icc doesn't choke on unknown options, it will just issue warnings 7109 # or remarks (even with -Werror). So we grep stderr for any message 7110 # that says an option was ignored or not supported. 7111 # When given -MP, icc 7.0 and 7.1 complain thusly: 7112 # icc: Command line warning: ignoring option '-M'; no argument required 7113 # The diagnosis changed in icc 8.0: 7114 # icc: Command line remark: option '-MP' not supported 7115 if (grep 'ignoring option' conftest.err || 7116 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 7117 am_cv_$1_dependencies_compiler_type=$depmode 7118 break 7119 fi 7120 fi 7121 done 7122 7123 cd .. 7124 rm -rf conftest.dir 7125else 7126 am_cv_$1_dependencies_compiler_type=none 7127fi 7128]) 7129AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) 7130AM_CONDITIONAL([am__fastdep$1], [ 7131 test "x$enable_dependency_tracking" != xno \ 7132 && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) 7133]) 7134 7135 7136# AM_SET_DEPDIR 7137# ------------- 7138# Choose a directory name for dependency files. 7139# This macro is AC_REQUIREd in _AM_DEPENDENCIES 7140AC_DEFUN([AM_SET_DEPDIR], 7141[AC_REQUIRE([AM_SET_LEADING_DOT])dnl 7142AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl 7143]) 7144 7145 7146# AM_DEP_TRACK 7147# ------------ 7148AC_DEFUN([AM_DEP_TRACK], 7149[AC_ARG_ENABLE(dependency-tracking, 7150[ --disable-dependency-tracking speeds up one-time build 7151 --enable-dependency-tracking do not reject slow dependency extractors]) 7152if test "x$enable_dependency_tracking" != xno; then 7153 am_depcomp="$ac_aux_dir/depcomp" 7154 AMDEPBACKSLASH='\' 7155fi 7156AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) 7157AC_SUBST([AMDEPBACKSLASH]) 7158]) 7159 7160# Generate code to set up dependency tracking. -*- Autoconf -*- 7161 7162# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 7163# Free Software Foundation, Inc. 7164# 7165# This file is free software; the Free Software Foundation 7166# gives unlimited permission to copy and/or distribute it, 7167# with or without modifications, as long as this notice is preserved. 7168 7169#serial 3 7170 7171# _AM_OUTPUT_DEPENDENCY_COMMANDS 7172# ------------------------------ 7173AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], 7174[for mf in $CONFIG_FILES; do 7175 # Strip MF so we end up with the name of the file. 7176 mf=`echo "$mf" | sed -e 's/:.*$//'` 7177 # Check whether this is an Automake generated Makefile or not. 7178 # We used to match only the files named `Makefile.in', but 7179 # some people rename them; so instead we look at the file content. 7180 # Grep'ing the first line is not enough: some people post-process 7181 # each Makefile.in and add a new line on top of each file to say so. 7182 # So let's grep whole file. 7183 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 7184 dirpart=`AS_DIRNAME("$mf")` 7185 else 7186 continue 7187 fi 7188 # Extract the definition of DEPDIR, am__include, and am__quote 7189 # from the Makefile without running `make'. 7190 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 7191 test -z "$DEPDIR" && continue 7192 am__include=`sed -n 's/^am__include = //p' < "$mf"` 7193 test -z "am__include" && continue 7194 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 7195 # When using ansi2knr, U may be empty or an underscore; expand it 7196 U=`sed -n 's/^U = //p' < "$mf"` 7197 # Find all dependency output files, they are included files with 7198 # $(DEPDIR) in their names. We invoke sed twice because it is the 7199 # simplest approach to changing $(DEPDIR) to its actual value in the 7200 # expansion. 7201 for file in `sed -n " 7202 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 7203 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 7204 # Make sure the directory exists. 7205 test -f "$dirpart/$file" && continue 7206 fdir=`AS_DIRNAME(["$file"])` 7207 AS_MKDIR_P([$dirpart/$fdir]) 7208 # echo "creating $dirpart/$file" 7209 echo '# dummy' > "$dirpart/$file" 7210 done 7211done 7212])# _AM_OUTPUT_DEPENDENCY_COMMANDS 7213 7214 7215# AM_OUTPUT_DEPENDENCY_COMMANDS 7216# ----------------------------- 7217# This macro should only be invoked once -- use via AC_REQUIRE. 7218# 7219# This code is only required when automatic dependency tracking 7220# is enabled. FIXME. This creates each `.P' file that we will 7221# need in order to bootstrap the dependency handling code. 7222AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], 7223[AC_CONFIG_COMMANDS([depfiles], 7224 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], 7225 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) 7226]) 7227 7228# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 7229# Free Software Foundation, Inc. 7230# 7231# This file is free software; the Free Software Foundation 7232# gives unlimited permission to copy and/or distribute it, 7233# with or without modifications, as long as this notice is preserved. 7234 7235# serial 8 7236 7237# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS. 7238AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)]) 7239 7240# Do all the work for Automake. -*- Autoconf -*- 7241 7242# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 7243# Free Software Foundation, Inc. 7244# 7245# This file is free software; the Free Software Foundation 7246# gives unlimited permission to copy and/or distribute it, 7247# with or without modifications, as long as this notice is preserved. 7248 7249# serial 12 7250 7251# This macro actually does too much. Some checks are only needed if 7252# your package does certain things. But this isn't really a big deal. 7253 7254# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) 7255# AM_INIT_AUTOMAKE([OPTIONS]) 7256# ----------------------------------------------- 7257# The call with PACKAGE and VERSION arguments is the old style 7258# call (pre autoconf-2.50), which is being phased out. PACKAGE 7259# and VERSION should now be passed to AC_INIT and removed from 7260# the call to AM_INIT_AUTOMAKE. 7261# We support both call styles for the transition. After 7262# the next Automake release, Autoconf can make the AC_INIT 7263# arguments mandatory, and then we can depend on a new Autoconf 7264# release and drop the old call support. 7265AC_DEFUN([AM_INIT_AUTOMAKE], 7266[AC_PREREQ([2.58])dnl 7267dnl Autoconf wants to disallow AM_ names. We explicitly allow 7268dnl the ones we care about. 7269m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl 7270AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl 7271AC_REQUIRE([AC_PROG_INSTALL])dnl 7272# test to see if srcdir already configured 7273if test "`cd $srcdir && pwd`" != "`pwd`" && 7274 test -f $srcdir/config.status; then 7275 AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 7276fi 7277 7278# test whether we have cygpath 7279if test -z "$CYGPATH_W"; then 7280 if (cygpath --version) >/dev/null 2>/dev/null; then 7281 CYGPATH_W='cygpath -w' 7282 else 7283 CYGPATH_W=echo 7284 fi 7285fi 7286AC_SUBST([CYGPATH_W]) 7287 7288# Define the identity of the package. 7289dnl Distinguish between old-style and new-style calls. 7290m4_ifval([$2], 7291[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl 7292 AC_SUBST([PACKAGE], [$1])dnl 7293 AC_SUBST([VERSION], [$2])], 7294[_AM_SET_OPTIONS([$1])dnl 7295 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl 7296 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl 7297 7298_AM_IF_OPTION([no-define],, 7299[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) 7300 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl 7301 7302# Some tools Automake needs. 7303AC_REQUIRE([AM_SANITY_CHECK])dnl 7304AC_REQUIRE([AC_ARG_PROGRAM])dnl 7305AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) 7306AM_MISSING_PROG(AUTOCONF, autoconf) 7307AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) 7308AM_MISSING_PROG(AUTOHEADER, autoheader) 7309AM_MISSING_PROG(MAKEINFO, makeinfo) 7310AM_PROG_INSTALL_SH 7311AM_PROG_INSTALL_STRIP 7312AC_REQUIRE([AM_PROG_MKDIR_P])dnl 7313# We need awk for the "check" target. The system "awk" is bad on 7314# some platforms. 7315AC_REQUIRE([AC_PROG_AWK])dnl 7316AC_REQUIRE([AC_PROG_MAKE_SET])dnl 7317AC_REQUIRE([AM_SET_LEADING_DOT])dnl 7318_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], 7319 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], 7320 [_AM_PROG_TAR([v7])])]) 7321_AM_IF_OPTION([no-dependencies],, 7322[AC_PROVIDE_IFELSE([AC_PROG_CC], 7323 [_AM_DEPENDENCIES(CC)], 7324 [define([AC_PROG_CC], 7325 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl 7326AC_PROVIDE_IFELSE([AC_PROG_CXX], 7327 [_AM_DEPENDENCIES(CXX)], 7328 [define([AC_PROG_CXX], 7329 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl 7330]) 7331]) 7332 7333 7334# When config.status generates a header, we must update the stamp-h file. 7335# This file resides in the same directory as the config header 7336# that is generated. The stamp files are numbered to have different names. 7337 7338# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the 7339# loop where config.status creates the headers, so we can generate 7340# our stamp files there. 7341AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], 7342[# Compute $1's index in $config_headers. 7343_am_stamp_count=1 7344for _am_header in $config_headers :; do 7345 case $_am_header in 7346 $1 | $1:* ) 7347 break ;; 7348 * ) 7349 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 7350 esac 7351done 7352echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) 7353 7354# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 7355# 7356# This file is free software; the Free Software Foundation 7357# gives unlimited permission to copy and/or distribute it, 7358# with or without modifications, as long as this notice is preserved. 7359 7360# AM_PROG_INSTALL_SH 7361# ------------------ 7362# Define $install_sh. 7363AC_DEFUN([AM_PROG_INSTALL_SH], 7364[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 7365install_sh=${install_sh-"$am_aux_dir/install-sh"} 7366AC_SUBST(install_sh)]) 7367 7368# Copyright (C) 2003, 2005 Free Software Foundation, Inc. 7369# 7370# This file is free software; the Free Software Foundation 7371# gives unlimited permission to copy and/or distribute it, 7372# with or without modifications, as long as this notice is preserved. 7373 7374# serial 2 7375 7376# Check whether the underlying file-system supports filenames 7377# with a leading dot. For instance MS-DOS doesn't. 7378AC_DEFUN([AM_SET_LEADING_DOT], 7379[rm -rf .tst 2>/dev/null 7380mkdir .tst 2>/dev/null 7381if test -d .tst; then 7382 am__leading_dot=. 7383else 7384 am__leading_dot=_ 7385fi 7386rmdir .tst 2>/dev/null 7387AC_SUBST([am__leading_dot])]) 7388 7389# Check to see how 'make' treats includes. -*- Autoconf -*- 7390 7391# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. 7392# 7393# This file is free software; the Free Software Foundation 7394# gives unlimited permission to copy and/or distribute it, 7395# with or without modifications, as long as this notice is preserved. 7396 7397# serial 3 7398 7399# AM_MAKE_INCLUDE() 7400# ----------------- 7401# Check to see how make treats includes. 7402AC_DEFUN([AM_MAKE_INCLUDE], 7403[am_make=${MAKE-make} 7404cat > confinc << 'END' 7405am__doit: 7406 @echo done 7407.PHONY: am__doit 7408END 7409# If we don't find an include directive, just comment out the code. 7410AC_MSG_CHECKING([for style of include used by $am_make]) 7411am__include="#" 7412am__quote= 7413_am_result=none 7414# First try GNU make style include. 7415echo "include confinc" > confmf 7416# We grep out `Entering directory' and `Leaving directory' 7417# messages which can occur if `w' ends up in MAKEFLAGS. 7418# In particular we don't look at `^make:' because GNU make might 7419# be invoked under some other name (usually "gmake"), in which 7420# case it prints its new name instead of `make'. 7421if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 7422 am__include=include 7423 am__quote= 7424 _am_result=GNU 7425fi 7426# Now try BSD make style include. 7427if test "$am__include" = "#"; then 7428 echo '.include "confinc"' > confmf 7429 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 7430 am__include=.include 7431 am__quote="\"" 7432 _am_result=BSD 7433 fi 7434fi 7435AC_SUBST([am__include]) 7436AC_SUBST([am__quote]) 7437AC_MSG_RESULT([$_am_result]) 7438rm -f confinc confmf 7439]) 7440 7441# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- 7442 7443# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005 7444# Free Software Foundation, Inc. 7445# 7446# This file is free software; the Free Software Foundation 7447# gives unlimited permission to copy and/or distribute it, 7448# with or without modifications, as long as this notice is preserved. 7449 7450# serial 4 7451 7452# AM_MISSING_PROG(NAME, PROGRAM) 7453# ------------------------------ 7454AC_DEFUN([AM_MISSING_PROG], 7455[AC_REQUIRE([AM_MISSING_HAS_RUN]) 7456$1=${$1-"${am_missing_run}$2"} 7457AC_SUBST($1)]) 7458 7459 7460# AM_MISSING_HAS_RUN 7461# ------------------ 7462# Define MISSING if not defined so far and test if it supports --run. 7463# If it does, set am_missing_run to use it, otherwise, to nothing. 7464AC_DEFUN([AM_MISSING_HAS_RUN], 7465[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 7466test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 7467# Use eval to expand $SHELL 7468if eval "$MISSING --run true"; then 7469 am_missing_run="$MISSING --run " 7470else 7471 am_missing_run= 7472 AC_MSG_WARN([`missing' script is too old or missing]) 7473fi 7474]) 7475 7476# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc. 7477# 7478# This file is free software; the Free Software Foundation 7479# gives unlimited permission to copy and/or distribute it, 7480# with or without modifications, as long as this notice is preserved. 7481 7482# AM_PROG_MKDIR_P 7483# --------------- 7484# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise. 7485# 7486# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories 7487# created by `make install' are always world readable, even if the 7488# installer happens to have an overly restrictive umask (e.g. 077). 7489# This was a mistake. There are at least two reasons why we must not 7490# use `-m 0755': 7491# - it causes special bits like SGID to be ignored, 7492# - it may be too restrictive (some setups expect 775 directories). 7493# 7494# Do not use -m 0755 and let people choose whatever they expect by 7495# setting umask. 7496# 7497# We cannot accept any implementation of `mkdir' that recognizes `-p'. 7498# Some implementations (such as Solaris 8's) are not thread-safe: if a 7499# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c' 7500# concurrently, both version can detect that a/ is missing, but only 7501# one can create it and the other will error out. Consequently we 7502# restrict ourselves to GNU make (using the --version option ensures 7503# this.) 7504AC_DEFUN([AM_PROG_MKDIR_P], 7505[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 7506 # We used to keeping the `.' as first argument, in order to 7507 # allow $(mkdir_p) to be used without argument. As in 7508 # $(mkdir_p) $(somedir) 7509 # where $(somedir) is conditionally defined. However this is wrong 7510 # for two reasons: 7511 # 1. if the package is installed by a user who cannot write `.' 7512 # make install will fail, 7513 # 2. the above comment should most certainly read 7514 # $(mkdir_p) $(DESTDIR)$(somedir) 7515 # so it does not work when $(somedir) is undefined and 7516 # $(DESTDIR) is not. 7517 # To support the latter case, we have to write 7518 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 7519 # so the `.' trick is pointless. 7520 mkdir_p='mkdir -p --' 7521else 7522 # On NextStep and OpenStep, the `mkdir' command does not 7523 # recognize any option. It will interpret all options as 7524 # directories to create, and then abort because `.' already 7525 # exists. 7526 for d in ./-p ./--version; 7527 do 7528 test -d $d && rmdir $d 7529 done 7530 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 7531 if test -f "$ac_aux_dir/mkinstalldirs"; then 7532 mkdir_p='$(mkinstalldirs)' 7533 else 7534 mkdir_p='$(install_sh) -d' 7535 fi 7536fi 7537AC_SUBST([mkdir_p])]) 7538 7539# Helper functions for option handling. -*- Autoconf -*- 7540 7541# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. 7542# 7543# This file is free software; the Free Software Foundation 7544# gives unlimited permission to copy and/or distribute it, 7545# with or without modifications, as long as this notice is preserved. 7546 7547# serial 3 7548 7549# _AM_MANGLE_OPTION(NAME) 7550# ----------------------- 7551AC_DEFUN([_AM_MANGLE_OPTION], 7552[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) 7553 7554# _AM_SET_OPTION(NAME) 7555# ------------------------------ 7556# Set option NAME. Presently that only means defining a flag for this option. 7557AC_DEFUN([_AM_SET_OPTION], 7558[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) 7559 7560# _AM_SET_OPTIONS(OPTIONS) 7561# ---------------------------------- 7562# OPTIONS is a space-separated list of Automake options. 7563AC_DEFUN([_AM_SET_OPTIONS], 7564[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) 7565 7566# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) 7567# ------------------------------------------- 7568# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 7569AC_DEFUN([_AM_IF_OPTION], 7570[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 7571 7572# Check to make sure that the build environment is sane. -*- Autoconf -*- 7573 7574# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 7575# Free Software Foundation, Inc. 7576# 7577# This file is free software; the Free Software Foundation 7578# gives unlimited permission to copy and/or distribute it, 7579# with or without modifications, as long as this notice is preserved. 7580 7581# serial 4 7582 7583# AM_SANITY_CHECK 7584# --------------- 7585AC_DEFUN([AM_SANITY_CHECK], 7586[AC_MSG_CHECKING([whether build environment is sane]) 7587# Just in case 7588sleep 1 7589echo timestamp > conftest.file 7590# Do `set' in a subshell so we don't clobber the current shell's 7591# arguments. Must try -L first in case configure is actually a 7592# symlink; some systems play weird games with the mod time of symlinks 7593# (eg FreeBSD returns the mod time of the symlink's containing 7594# directory). 7595if ( 7596 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 7597 if test "$[*]" = "X"; then 7598 # -L didn't work. 7599 set X `ls -t $srcdir/configure conftest.file` 7600 fi 7601 rm -f conftest.file 7602 if test "$[*]" != "X $srcdir/configure conftest.file" \ 7603 && test "$[*]" != "X conftest.file $srcdir/configure"; then 7604 7605 # If neither matched, then we have a broken ls. This can happen 7606 # if, for instance, CONFIG_SHELL is bash and it inherits a 7607 # broken ls alias from the environment. This has actually 7608 # happened. Such a system could not be considered "sane". 7609 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 7610alias in your environment]) 7611 fi 7612 7613 test "$[2]" = conftest.file 7614 ) 7615then 7616 # Ok. 7617 : 7618else 7619 AC_MSG_ERROR([newly created file is older than distributed files! 7620Check your system clock]) 7621fi 7622AC_MSG_RESULT(yes)]) 7623 7624# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 7625# 7626# This file is free software; the Free Software Foundation 7627# gives unlimited permission to copy and/or distribute it, 7628# with or without modifications, as long as this notice is preserved. 7629 7630# AM_PROG_INSTALL_STRIP 7631# --------------------- 7632# One issue with vendor `install' (even GNU) is that you can't 7633# specify the program used to strip binaries. This is especially 7634# annoying in cross-compiling environments, where the build's strip 7635# is unlikely to handle the host's binaries. 7636# Fortunately install-sh will honor a STRIPPROG variable, so we 7637# always use install-sh in `make install-strip', and initialize 7638# STRIPPROG with the value of the STRIP variable (set by the user). 7639AC_DEFUN([AM_PROG_INSTALL_STRIP], 7640[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 7641# Installed binaries are usually stripped using `strip' when the user 7642# run `make install-strip'. However `strip' might not be the right 7643# tool to use in cross-compilation environments, therefore Automake 7644# will honor the `STRIP' environment variable to overrule this program. 7645dnl Don't test for $cross_compiling = yes, because it might be `maybe'. 7646if test "$cross_compiling" != no; then 7647 AC_CHECK_TOOL([STRIP], [strip], :) 7648fi 7649INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 7650AC_SUBST([INSTALL_STRIP_PROGRAM])]) 7651 7652# Check how to create a tarball. -*- Autoconf -*- 7653 7654# Copyright (C) 2004, 2005 Free Software Foundation, Inc. 7655# 7656# This file is free software; the Free Software Foundation 7657# gives unlimited permission to copy and/or distribute it, 7658# with or without modifications, as long as this notice is preserved. 7659 7660# serial 2 7661 7662# _AM_PROG_TAR(FORMAT) 7663# -------------------- 7664# Check how to create a tarball in format FORMAT. 7665# FORMAT should be one of `v7', `ustar', or `pax'. 7666# 7667# Substitute a variable $(am__tar) that is a command 7668# writing to stdout a FORMAT-tarball containing the directory 7669# $tardir. 7670# tardir=directory && $(am__tar) > result.tar 7671# 7672# Substitute a variable $(am__untar) that extract such 7673# a tarball read from stdin. 7674# $(am__untar) < result.tar 7675AC_DEFUN([_AM_PROG_TAR], 7676[# Always define AMTAR for backward compatibility. 7677AM_MISSING_PROG([AMTAR], [tar]) 7678m4_if([$1], [v7], 7679 [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], 7680 [m4_case([$1], [ustar],, [pax],, 7681 [m4_fatal([Unknown tar format])]) 7682AC_MSG_CHECKING([how to create a $1 tar archive]) 7683# Loop over all known methods to create a tar archive until one works. 7684_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' 7685_am_tools=${am_cv_prog_tar_$1-$_am_tools} 7686# Do not fold the above two line into one, because Tru64 sh and 7687# Solaris sh will not grok spaces in the rhs of `-'. 7688for _am_tool in $_am_tools 7689do 7690 case $_am_tool in 7691 gnutar) 7692 for _am_tar in tar gnutar gtar; 7693 do 7694 AM_RUN_LOG([$_am_tar --version]) && break 7695 done 7696 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' 7697 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' 7698 am__untar="$_am_tar -xf -" 7699 ;; 7700 plaintar) 7701 # Must skip GNU tar: if it does not support --format= it doesn't create 7702 # ustar tarball either. 7703 (tar --version) >/dev/null 2>&1 && continue 7704 am__tar='tar chf - "$$tardir"' 7705 am__tar_='tar chf - "$tardir"' 7706 am__untar='tar xf -' 7707 ;; 7708 pax) 7709 am__tar='pax -L -x $1 -w "$$tardir"' 7710 am__tar_='pax -L -x $1 -w "$tardir"' 7711 am__untar='pax -r' 7712 ;; 7713 cpio) 7714 am__tar='find "$$tardir" -print | cpio -o -H $1 -L' 7715 am__tar_='find "$tardir" -print | cpio -o -H $1 -L' 7716 am__untar='cpio -i -H $1 -d' 7717 ;; 7718 none) 7719 am__tar=false 7720 am__tar_=false 7721 am__untar=false 7722 ;; 7723 esac 7724 7725 # If the value was cached, stop now. We just wanted to have am__tar 7726 # and am__untar set. 7727 test -n "${am_cv_prog_tar_$1}" && break 7728 7729 # tar/untar a dummy directory, and stop if the command works 7730 rm -rf conftest.dir 7731 mkdir conftest.dir 7732 echo GrepMe > conftest.dir/file 7733 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) 7734 rm -rf conftest.dir 7735 if test -s conftest.tar; then 7736 AM_RUN_LOG([$am__untar <conftest.tar]) 7737 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 7738 fi 7739done 7740rm -rf conftest.dir 7741 7742AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) 7743AC_MSG_RESULT([$am_cv_prog_tar_$1])]) 7744AC_SUBST([am__tar]) 7745AC_SUBST([am__untar]) 7746]) # _AM_PROG_TAR 7747 7748m4_include([m4/gettext.m4]) 7749m4_include([m4/iconv.m4]) 7750m4_include([m4/lib-ld.m4]) 7751m4_include([m4/lib-link.m4]) 7752m4_include([m4/lib-prefix.m4]) 7753m4_include([m4/nls.m4]) 7754m4_include([m4/po.m4]) 7755m4_include([m4/progtest.m4]) 7756m4_include([acinclude.m4]) 7757