[Legacy] Clamav/SOSDG For Win32
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

19527 lines
630 KiB

  1. diff -urN -x .build -x .inst -x .sinst -x '*.orig' clamav-0.88.2-orig/INSTALL clamav-0.88.2/INSTALL
  2. --- clamav-0.88.2-orig/INSTALL 2005-06-23 20:03:08.000000000 +0000
  3. +++ clamav-0.88.2/INSTALL 2006-04-05 10:02:15.000000000 +0000
  4. @@ -1,13 +1,16 @@
  5. -Copyright 1994, 1995, 1996, 1999, 2000, 2001 Free Software Foundation,
  6. -Inc.
  7. +Installation Instructions
  8. +*************************
  9. - This file is free documentation; the Free Software Foundation gives
  10. +Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005 Free
  11. +Software Foundation, Inc.
  12. +
  13. +This file is free documentation; the Free Software Foundation gives
  14. unlimited permission to copy, distribute and modify it.
  15. Basic Installation
  16. ==================
  17. - These are generic installation instructions.
  18. +These are generic installation instructions.
  19. The `configure' shell script attempts to guess correct values for
  20. various system-dependent variables used during compilation. It uses
  21. @@ -67,12 +70,13 @@
  22. Compilers and Options
  23. =====================
  24. - Some systems require unusual options for compilation or linking that
  25. -the `configure' script does not know about. Run `./configure --help'
  26. -for details on some of the pertinent environment variables.
  27. -
  28. - You can give `configure' initial values for variables by setting
  29. -them in the environment. You can do that on the command line like this:
  30. +Some systems require unusual options for compilation or linking that the
  31. +`configure' script does not know about. Run `./configure --help' for
  32. +details on some of the pertinent environment variables.
  33. +
  34. + You can give `configure' initial values for configuration parameters
  35. +by setting variables in the command line or in the environment. Here
  36. +is an example:
  37. ./configure CC=c89 CFLAGS=-O2 LIBS=-lposix
  38. @@ -81,7 +85,7 @@
  39. Compiling For Multiple Architectures
  40. ====================================
  41. - You can compile the package for more than one kind of computer at the
  42. +You can compile the package for more than one kind of computer at the
  43. same time, by placing the object files for each architecture in their
  44. own directory. To do this, you must use a version of `make' that
  45. supports the `VPATH' variable, such as GNU `make'. `cd' to the
  46. @@ -98,19 +102,19 @@
  47. Installation Names
  48. ==================
  49. - By default, `make install' will install the package's files in
  50. -`/usr/local/bin', `/usr/local/man', etc. You can specify an
  51. -installation prefix other than `/usr/local' by giving `configure' the
  52. -option `--prefix=PATH'.
  53. +By default, `make install' installs the package's commands under
  54. +`/usr/local/bin', include files under `/usr/local/include', etc. You
  55. +can specify an installation prefix other than `/usr/local' by giving
  56. +`configure' the option `--prefix=PREFIX'.
  57. You can specify separate installation prefixes for
  58. architecture-specific files and architecture-independent files. If you
  59. -give `configure' the option `--exec-prefix=PATH', the package will use
  60. -PATH as the prefix for installing programs and libraries.
  61. -Documentation and other data files will still use the regular prefix.
  62. +pass the option `--exec-prefix=PREFIX' to `configure', the package uses
  63. +PREFIX as the prefix for installing programs and libraries.
  64. +Documentation and other data files still use the regular prefix.
  65. In addition, if you use an unusual directory layout you can give
  66. -options like `--bindir=PATH' to specify different values for particular
  67. +options like `--bindir=DIR' to specify different values for particular
  68. kinds of files. Run `configure --help' for a list of the directories
  69. you can set and what kinds of files go in them.
  70. @@ -121,7 +125,7 @@
  71. Optional Features
  72. =================
  73. - Some packages pay attention to `--enable-FEATURE' options to
  74. +Some packages pay attention to `--enable-FEATURE' options to
  75. `configure', where FEATURE indicates an optional part of the package.
  76. They may also pay attention to `--with-PACKAGE' options, where PACKAGE
  77. is something like `gnu-as' or `x' (for the X Window System). The
  78. @@ -136,10 +140,11 @@
  79. Specifying the System Type
  80. ==========================
  81. - There may be some features `configure' cannot figure out
  82. -automatically, but needs to determine by the type of host the package
  83. -will run on. Usually `configure' can figure that out, but if it prints
  84. -a message saying it cannot guess the host type, give it the
  85. +There may be some features `configure' cannot figure out automatically,
  86. +but needs to determine by the type of machine the package will run on.
  87. +Usually, assuming the package is built to be run on the _same_
  88. +architectures, `configure' can figure that out, but if it prints a
  89. +message saying it cannot guess the machine type, give it the
  90. `--build=TYPE' option. TYPE can either be a short name for the system
  91. type, such as `sun4', or a canonical name which has the form:
  92. @@ -151,27 +156,23 @@
  93. See the file `config.sub' for the possible values of each field. If
  94. `config.sub' isn't included in this package, then this package doesn't
  95. -need to know the host type.
  96. +need to know the machine type.
  97. If you are _building_ compiler tools for cross-compiling, you should
  98. -use the `--target=TYPE' option to select the type of system they will
  99. +use the option `--target=TYPE' to select the type of system they will
  100. produce code for.
  101. If you want to _use_ a cross compiler, that generates code for a
  102. -platform different from the build platform, you should specify the host
  103. -platform (i.e., that on which the generated programs will eventually be
  104. -run) with `--host=TYPE'. In this case, you should also specify the
  105. -build platform with `--build=TYPE', because, in this case, it may not
  106. -be possible to guess the build platform (it sometimes involves
  107. -compiling and running simple test programs, and this can't be done if
  108. -the compiler is a cross compiler).
  109. +platform different from the build platform, you should specify the
  110. +"host" platform (i.e., that on which the generated programs will
  111. +eventually be run) with `--host=TYPE'.
  112. Sharing Defaults
  113. ================
  114. - If you want to set default values for `configure' scripts to share,
  115. -you can create a site shell script called `config.site' that gives
  116. -default values for variables like `CC', `cache_file', and `prefix'.
  117. +If you want to set default values for `configure' scripts to share, you
  118. +can create a site shell script called `config.site' that gives default
  119. +values for variables like `CC', `cache_file', and `prefix'.
  120. `configure' looks for `PREFIX/share/config.site' if it exists, then
  121. `PREFIX/etc/config.site' if it exists. Or, you can set the
  122. `CONFIG_SITE' environment variable to the location of the site script.
  123. @@ -180,7 +181,7 @@
  124. Defining Variables
  125. ==================
  126. - Variables not defined in a site shell script can be set in the
  127. +Variables not defined in a site shell script can be set in the
  128. environment passed to `configure'. However, some packages may run
  129. configure again during the build, and the customized values of these
  130. variables may be lost. In order to avoid this problem, you should set
  131. @@ -188,14 +189,18 @@
  132. ./configure CC=/usr/local2/bin/gcc
  133. -will cause the specified gcc to be used as the C compiler (unless it is
  134. -overridden in the site shell script).
  135. +causes the specified `gcc' to be used as the C compiler (unless it is
  136. +overridden in the site shell script). Here is a another example:
  137. +
  138. + /bin/bash ./configure CONFIG_SHELL=/bin/bash
  139. +
  140. +Here the `CONFIG_SHELL=/bin/bash' operand causes subsequent
  141. +configuration-related scripts to be executed by `/bin/bash'.
  142. `configure' Invocation
  143. ======================
  144. - `configure' recognizes the following options to control how it
  145. -operates.
  146. +`configure' recognizes the following options to control how it operates.
  147. `--help'
  148. `-h'
  149. diff -urN -x .build -x .inst -x .sinst -x '*.orig' clamav-0.88.2-orig/acinclude.m4 clamav-0.88.2/acinclude.m4
  150. --- clamav-0.88.2-orig/acinclude.m4 2005-06-23 20:03:08.000000000 +0000
  151. +++ clamav-0.88.2/acinclude.m4 2006-02-26 14:47:07.000000000 +0000
  152. @@ -487,3601 +487,6 @@
  153. *) host_cpu_arch="$target_cpu" ;;
  154. esac
  155. ])
  156. -# libtool.m4 - Configure libtool for the host system. -*-Shell-script-*-
  157. -## Copyright 1996, 1997, 1998, 1999, 2000, 2001
  158. -## Free Software Foundation, Inc.
  159. -## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  160. -##
  161. -## This program is free software; you can redistribute it and/or modify
  162. -## it under the terms of the GNU General Public License as published by
  163. -## the Free Software Foundation; either version 2 of the License, or
  164. -## (at your option) any later version.
  165. -##
  166. -## This program is distributed in the hope that it will be useful, but
  167. -## WITHOUT ANY WARRANTY; without even the implied warranty of
  168. -## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  169. -## General Public License for more details.
  170. -##
  171. -## You should have received a copy of the GNU General Public License
  172. -## along with this program; if not, write to the Free Software
  173. -## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  174. -##
  175. -## As a special exception to the GNU General Public License, if you
  176. -## distribute this file as part of a program that contains a
  177. -## configuration script generated by Autoconf, you may include it under
  178. -## the same distribution terms that you use for the rest of that program.
  179. -
  180. -# serial 46 AC_PROG_LIBTOOL
  181. -
  182. -AC_DEFUN([AC_PROG_LIBTOOL],
  183. -[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
  184. -
  185. -# This can be used to rebuild libtool when needed
  186. -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  187. -
  188. -# Always use our own libtool.
  189. -LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  190. -AC_SUBST(LIBTOOL)dnl
  191. -
  192. -# Prevent multiple expansion
  193. -define([AC_PROG_LIBTOOL], [])
  194. -])
  195. -
  196. -AC_DEFUN([AC_LIBTOOL_SETUP],
  197. -[AC_PREREQ(2.13)dnl
  198. -AC_REQUIRE([AC_ENABLE_SHARED])dnl
  199. -AC_REQUIRE([AC_ENABLE_STATIC])dnl
  200. -AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
  201. -AC_REQUIRE([AC_CANONICAL_HOST])dnl
  202. -AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  203. -AC_REQUIRE([AC_PROG_CC])dnl
  204. -AC_REQUIRE([AC_PROG_LD])dnl
  205. -AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
  206. -AC_REQUIRE([AC_PROG_NM])dnl
  207. -AC_REQUIRE([AC_PROG_LN_S])dnl
  208. -AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
  209. -AC_REQUIRE([AC_OBJEXT])dnl
  210. -AC_REQUIRE([AC_EXEEXT])dnl
  211. -dnl
  212. -
  213. -_LT_AC_PROG_ECHO_BACKSLASH
  214. -# Only perform the check for file, if the check method requires it
  215. -case $deplibs_check_method in
  216. -file_magic*)
  217. - if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  218. - AC_PATH_MAGIC
  219. - fi
  220. - ;;
  221. -esac
  222. -
  223. -AC_CHECK_TOOL(RANLIB, ranlib, :)
  224. -AC_CHECK_TOOL(STRIP, strip, :)
  225. -
  226. -ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
  227. -ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
  228. -enable_win32_dll=yes, enable_win32_dll=no)
  229. -
  230. -AC_ARG_ENABLE(libtool-lock,
  231. - [ --disable-libtool-lock avoid locking (might break parallel builds)])
  232. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  233. -
  234. -# Some flags need to be propagated to the compiler or linker for good
  235. -# libtool support.
  236. -case $host in
  237. -*-*-irix6*)
  238. - # Find out which ABI we are using.
  239. - echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  240. - if AC_TRY_EVAL(ac_compile); then
  241. - case `/usr/bin/file conftest.$ac_objext` in
  242. - *32-bit*)
  243. - LD="${LD-ld} -32"
  244. - ;;
  245. - *N32*)
  246. - LD="${LD-ld} -n32"
  247. - ;;
  248. - *64-bit*)
  249. - LD="${LD-ld} -64"
  250. - ;;
  251. - esac
  252. - fi
  253. - rm -rf conftest*
  254. - ;;
  255. -
  256. -*-*-linux*)
  257. - # Test if the compiler is 64bit
  258. - echo 'int i;' > conftest.$ac_ext
  259. - lt_cv_cc_64bit_output=no
  260. - if AC_TRY_EVAL(ac_compile); then
  261. - case `/usr/bin/file conftest.$ac_objext` in
  262. - *"ELF 64"*)
  263. - lt_cv_cc_64bit_output=yes
  264. - ;;
  265. - esac
  266. - fi
  267. - rm -rf conftest*
  268. - ;;
  269. -
  270. -*-*-sco3.2v5*)
  271. - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  272. - SAVE_CFLAGS="$CFLAGS"
  273. - CFLAGS="$CFLAGS -belf"
  274. - AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  275. - [AC_LANG_SAVE
  276. - AC_LANG_C
  277. - AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  278. - AC_LANG_RESTORE])
  279. - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  280. - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  281. - CFLAGS="$SAVE_CFLAGS"
  282. - fi
  283. - ;;
  284. -
  285. -ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
  286. -[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
  287. - AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  288. - AC_CHECK_TOOL(AS, as, false)
  289. - AC_CHECK_TOOL(OBJDUMP, objdump, false)
  290. -
  291. - # recent cygwin and mingw systems supply a stub DllMain which the user
  292. - # can override, but on older systems we have to supply one
  293. - AC_CACHE_CHECK([if libtool should supply DllMain function], lt_cv_need_dllmain,
  294. - [AC_TRY_LINK([],
  295. - [extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
  296. - DllMain (0, 0, 0);],
  297. - [lt_cv_need_dllmain=no],[lt_cv_need_dllmain=yes])])
  298. -
  299. - case $host/$CC in
  300. - *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
  301. - # old mingw systems require "-dll" to link a DLL, while more recent ones
  302. - # require "-mdll"
  303. - SAVE_CFLAGS="$CFLAGS"
  304. - CFLAGS="$CFLAGS -mdll"
  305. - AC_CACHE_CHECK([how to link DLLs], lt_cv_cc_dll_switch,
  306. - [AC_TRY_LINK([], [], [lt_cv_cc_dll_switch=-mdll],[lt_cv_cc_dll_switch=-dll])])
  307. - CFLAGS="$SAVE_CFLAGS" ;;
  308. - *-*-cygwin* | *-*-pw32*)
  309. - # cygwin systems need to pass --dll to the linker, and not link
  310. - # crt.o which will require a WinMain@16 definition.
  311. - lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
  312. - esac
  313. - ;;
  314. - ])
  315. -esac
  316. -
  317. -_LT_AC_LTCONFIG_HACK
  318. -
  319. -])
  320. -
  321. -# AC_LIBTOOL_HEADER_ASSERT
  322. -# ------------------------
  323. -AC_DEFUN([AC_LIBTOOL_HEADER_ASSERT],
  324. -[AC_CACHE_CHECK([whether $CC supports assert without backlinking],
  325. - [lt_cv_func_assert_works],
  326. - [case $host in
  327. - *-*-solaris*)
  328. - if test "$GCC" = yes && test "$with_gnu_ld" != yes; then
  329. - case `$CC --version 2>/dev/null` in
  330. - [[12]].*) lt_cv_func_assert_works=no ;;
  331. - *) lt_cv_func_assert_works=yes ;;
  332. - esac
  333. - fi
  334. - ;;
  335. - esac])
  336. -
  337. -if test "x$lt_cv_func_assert_works" = xyes; then
  338. - AC_CHECK_HEADERS(assert.h)
  339. -fi
  340. -])# AC_LIBTOOL_HEADER_ASSERT
  341. -
  342. -# _LT_AC_CHECK_DLFCN
  343. -# --------------------
  344. -AC_DEFUN([_LT_AC_CHECK_DLFCN],
  345. -[AC_CHECK_HEADERS(dlfcn.h)
  346. -])# _LT_AC_CHECK_DLFCN
  347. -
  348. -# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  349. -# ---------------------------------
  350. -AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
  351. -[AC_REQUIRE([AC_CANONICAL_HOST])
  352. -AC_REQUIRE([AC_PROG_NM])
  353. -AC_REQUIRE([AC_OBJEXT])
  354. -# Check for command to grab the raw symbol name followed by C symbol from nm.
  355. -AC_MSG_CHECKING([command to parse $NM output])
  356. -AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], [dnl
  357. -
  358. -# These are sane defaults that work on at least a few old systems.
  359. -# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  360. -
  361. -# Character class describing NM global symbol codes.
  362. -symcode='[[BCDEGRST]]'
  363. -
  364. -# Regexp to match symbols that can be accessed directly from C.
  365. -sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  366. -
  367. -# Transform the above into a raw symbol and a C symbol.
  368. -symxfrm='\1 \2\3 \3'
  369. -
  370. -# Transform an extracted symbol line into a proper C declaration
  371. -lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
  372. -
  373. -# Transform an extracted symbol line into symbol name and symbol address
  374. -lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  375. -
  376. -# Define system-specific variables.
  377. -case $host_os in
  378. -aix*)
  379. - symcode='[[BCDT]]'
  380. - ;;
  381. -cygwin* | mingw* | pw32*)
  382. - symcode='[[ABCDGISTW]]'
  383. - ;;
  384. -hpux*) # Its linker distinguishes data from code symbols
  385. - lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  386. - lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  387. - ;;
  388. -irix*)
  389. - symcode='[[BCDEGRST]]'
  390. - ;;
  391. -solaris* | sysv5*)
  392. - symcode='[[BDT]]'
  393. - ;;
  394. -sysv4)
  395. - symcode='[[DFNSTU]]'
  396. - ;;
  397. -esac
  398. -
  399. -# Handle CRLF in mingw tool chain
  400. -opt_cr=
  401. -case $host_os in
  402. -mingw*)
  403. - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  404. - ;;
  405. -esac
  406. -
  407. -# If we're using GNU nm, then use its standard symbol codes.
  408. -if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
  409. - symcode='[[ABCDGISTW]]'
  410. -fi
  411. -
  412. -# Try without a prefix undercore, then with it.
  413. -for ac_symprfx in "" "_"; do
  414. -
  415. - # Write the raw and C identifiers.
  416. -lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
  417. -
  418. - # Check to see that the pipe works correctly.
  419. - pipe_works=no
  420. - rm -f conftest*
  421. - cat > conftest.$ac_ext <<EOF
  422. -#ifdef __cplusplus
  423. -extern "C" {
  424. -#endif
  425. -char nm_test_var;
  426. -void nm_test_func(){}
  427. -#ifdef __cplusplus
  428. -}
  429. -#endif
  430. -int main(){nm_test_var='a';nm_test_func();return(0);}
  431. -EOF
  432. -
  433. - if AC_TRY_EVAL(ac_compile); then
  434. - # Now try to grab the symbols.
  435. - nlist=conftest.nm
  436. - if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  437. - # Try sorting and uniquifying the output.
  438. - if sort "$nlist" | uniq > "$nlist"T; then
  439. - mv -f "$nlist"T "$nlist"
  440. - else
  441. - rm -f "$nlist"T
  442. - fi
  443. -
  444. - # Make sure that we snagged all the symbols we need.
  445. - if egrep ' nm_test_var$' "$nlist" >/dev/null; then
  446. - if egrep ' nm_test_func$' "$nlist" >/dev/null; then
  447. - cat <<EOF > conftest.$ac_ext
  448. -#ifdef __cplusplus
  449. -extern "C" {
  450. -#endif
  451. -
  452. -EOF
  453. - # Now generate the symbol file.
  454. - eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
  455. -
  456. - cat <<EOF >> conftest.$ac_ext
  457. -#if defined (__STDC__) && __STDC__
  458. -# define lt_ptr void *
  459. -#else
  460. -# define lt_ptr char *
  461. -# define const
  462. -#endif
  463. -
  464. -/* The mapping between symbol names and symbols. */
  465. -const struct {
  466. - const char *name;
  467. - lt_ptr address;
  468. -}
  469. -lt_preloaded_symbols[[]] =
  470. -{
  471. -EOF
  472. - sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
  473. - cat <<\EOF >> conftest.$ac_ext
  474. - {0, (lt_ptr) 0}
  475. -};
  476. -
  477. -#ifdef __cplusplus
  478. -}
  479. -#endif
  480. -EOF
  481. - # Now try linking the two files.
  482. - mv conftest.$ac_objext conftstm.$ac_objext
  483. - save_LIBS="$LIBS"
  484. - save_CFLAGS="$CFLAGS"
  485. - LIBS="conftstm.$ac_objext"
  486. - CFLAGS="$CFLAGS$no_builtin_flag"
  487. - if AC_TRY_EVAL(ac_link) && test -s conftest; then
  488. - pipe_works=yes
  489. - fi
  490. - LIBS="$save_LIBS"
  491. - CFLAGS="$save_CFLAGS"
  492. - else
  493. - echo "cannot find nm_test_func in $nlist" >&AC_FD_CC
  494. - fi
  495. - else
  496. - echo "cannot find nm_test_var in $nlist" >&AC_FD_CC
  497. - fi
  498. - else
  499. - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AC_FD_CC
  500. - fi
  501. - else
  502. - echo "$progname: failed program was:" >&AC_FD_CC
  503. - cat conftest.$ac_ext >&5
  504. - fi
  505. - rm -f conftest* conftst*
  506. -
  507. - # Do not use the global_symbol_pipe unless it works.
  508. - if test "$pipe_works" = yes; then
  509. - break
  510. - else
  511. - lt_cv_sys_global_symbol_pipe=
  512. - fi
  513. -done
  514. -])
  515. -global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
  516. -if test -z "$lt_cv_sys_global_symbol_pipe"; then
  517. - global_symbol_to_cdecl=
  518. - global_symbol_to_c_name_address=
  519. -else
  520. - global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
  521. - global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
  522. -fi
  523. -if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
  524. -then
  525. - AC_MSG_RESULT(failed)
  526. -else
  527. - AC_MSG_RESULT(ok)
  528. -fi
  529. -]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  530. -
  531. -# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
  532. -# ---------------------------------
  533. -AC_DEFUN([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR],
  534. -[# Find the correct PATH separator. Usually this is `:', but
  535. -# DJGPP uses `;' like DOS.
  536. -if test "X${PATH_SEPARATOR+set}" != Xset; then
  537. - UNAME=${UNAME-`uname 2>/dev/null`}
  538. - case X$UNAME in
  539. - *-DOS) lt_cv_sys_path_separator=';' ;;
  540. - *) lt_cv_sys_path_separator=':' ;;
  541. - esac
  542. - PATH_SEPARATOR=$lt_cv_sys_path_separator
  543. -fi
  544. -])# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
  545. -
  546. -# _LT_AC_PROG_ECHO_BACKSLASH
  547. -# --------------------------
  548. -# Add some code to the start of the generated configure script which
  549. -# will find an echo command which doesn't interpret backslashes.
  550. -AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
  551. -[ifdef([AC_DIVERSION_NOTICE], [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  552. - [AC_DIVERT_PUSH(NOTICE)])
  553. -_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
  554. -
  555. -# Check that we are running under the correct shell.
  556. -SHELL=${CONFIG_SHELL-/bin/sh}
  557. -
  558. -case X$ECHO in
  559. -X*--fallback-echo)
  560. - # Remove one level of quotation (which was required for Make).
  561. - ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  562. - ;;
  563. -esac
  564. -
  565. -echo=${ECHO-echo}
  566. -if test "X[$]1" = X--no-reexec; then
  567. - # Discard the --no-reexec flag, and continue.
  568. - shift
  569. -elif test "X[$]1" = X--fallback-echo; then
  570. - # Avoid inline document here, it may be left over
  571. - :
  572. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
  573. - # Yippee, $echo works!
  574. - :
  575. -else
  576. - # Restart under the correct shell.
  577. - exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
  578. -fi
  579. -
  580. -if test "X[$]1" = X--fallback-echo; then
  581. - # used as fallback echo
  582. - shift
  583. - cat <<EOF
  584. -$*
  585. -EOF
  586. - exit 0
  587. -fi
  588. -
  589. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  590. -# if CDPATH is set.
  591. -if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
  592. -
  593. -if test -z "$ECHO"; then
  594. -if test "X${echo_test_string+set}" != Xset; then
  595. -# find a string as large as possible, as long as the shell can cope with it
  596. - for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  597. - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  598. - if (echo_test_string="`eval $cmd`") 2>/dev/null &&
  599. - echo_test_string="`eval $cmd`" &&
  600. - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  601. - then
  602. - break
  603. - fi
  604. - done
  605. -fi
  606. -
  607. -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  608. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  609. - test "X$echo_testing_string" = "X$echo_test_string"; then
  610. - :
  611. -else
  612. - # The Solaris, AIX, and Digital Unix default echo programs unquote
  613. - # backslashes. This makes it impossible to quote backslashes using
  614. - # echo "$something" | sed 's/\\/\\\\/g'
  615. - #
  616. - # So, first we look for a working echo in the user's PATH.
  617. -
  618. - IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  619. - for dir in $PATH /usr/ucb; do
  620. - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  621. - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  622. - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  623. - test "X$echo_testing_string" = "X$echo_test_string"; then
  624. - echo="$dir/echo"
  625. - break
  626. - fi
  627. - done
  628. - IFS="$save_ifs"
  629. -
  630. - if test "X$echo" = Xecho; then
  631. - # We didn't find a better echo, so look for alternatives.
  632. - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  633. - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  634. - test "X$echo_testing_string" = "X$echo_test_string"; then
  635. - # This shell has a builtin print -r that does the trick.
  636. - echo='print -r'
  637. - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  638. - test "X$CONFIG_SHELL" != X/bin/ksh; then
  639. - # If we have ksh, try running configure again with it.
  640. - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  641. - export ORIGINAL_CONFIG_SHELL
  642. - CONFIG_SHELL=/bin/ksh
  643. - export CONFIG_SHELL
  644. - exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  645. - else
  646. - # Try using printf.
  647. - echo='printf %s\n'
  648. - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  649. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  650. - test "X$echo_testing_string" = "X$echo_test_string"; then
  651. - # Cool, printf works
  652. - :
  653. - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  654. - test "X$echo_testing_string" = 'X\t' &&
  655. - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  656. - test "X$echo_testing_string" = "X$echo_test_string"; then
  657. - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  658. - export CONFIG_SHELL
  659. - SHELL="$CONFIG_SHELL"
  660. - export SHELL
  661. - echo="$CONFIG_SHELL [$]0 --fallback-echo"
  662. - elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  663. - test "X$echo_testing_string" = 'X\t' &&
  664. - echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  665. - test "X$echo_testing_string" = "X$echo_test_string"; then
  666. - echo="$CONFIG_SHELL [$]0 --fallback-echo"
  667. - else
  668. - # maybe with a smaller string...
  669. - prev=:
  670. -
  671. - for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  672. - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  673. - then
  674. - break
  675. - fi
  676. - prev="$cmd"
  677. - done
  678. -
  679. - if test "$prev" != 'sed 50q "[$]0"'; then
  680. - echo_test_string=`eval $prev`
  681. - export echo_test_string
  682. - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  683. - else
  684. - # Oops. We lost completely, so just stick with echo.
  685. - echo=echo
  686. - fi
  687. - fi
  688. - fi
  689. - fi
  690. -fi
  691. -fi
  692. -
  693. -# Copy echo and quote the copy suitably for passing to libtool from
  694. -# the Makefile, instead of quoting the original, which is used later.
  695. -ECHO=$echo
  696. -if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  697. - ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  698. -fi
  699. -
  700. -AC_SUBST(ECHO)
  701. -AC_DIVERT_POP
  702. -])# _LT_AC_PROG_ECHO_BACKSLASH
  703. -
  704. -# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  705. -# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  706. -# ------------------------------------------------------------------
  707. -AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
  708. -[if test "$cross_compiling" = yes; then :
  709. - [$4]
  710. -else
  711. - AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  712. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  713. - lt_status=$lt_dlunknown
  714. - cat > conftest.$ac_ext <<EOF
  715. -[#line __oline__ "configure"
  716. -#include "confdefs.h"
  717. -
  718. -#if HAVE_DLFCN_H
  719. -#include <dlfcn.h>
  720. -#endif
  721. -
  722. -#include <stdio.h>
  723. -
  724. -#ifdef RTLD_GLOBAL
  725. -# define LT_DLGLOBAL RTLD_GLOBAL
  726. -#else
  727. -# ifdef DL_GLOBAL
  728. -# define LT_DLGLOBAL DL_GLOBAL
  729. -# else
  730. -# define LT_DLGLOBAL 0
  731. -# endif
  732. -#endif
  733. -
  734. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  735. - find out it does not work in some platform. */
  736. -#ifndef LT_DLLAZY_OR_NOW
  737. -# ifdef RTLD_LAZY
  738. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  739. -# else
  740. -# ifdef DL_LAZY
  741. -# define LT_DLLAZY_OR_NOW DL_LAZY
  742. -# else
  743. -# ifdef RTLD_NOW
  744. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  745. -# else
  746. -# ifdef DL_NOW
  747. -# define LT_DLLAZY_OR_NOW DL_NOW
  748. -# else
  749. -# define LT_DLLAZY_OR_NOW 0
  750. -# endif
  751. -# endif
  752. -# endif
  753. -# endif
  754. -#endif
  755. -
  756. -#ifdef __cplusplus
  757. -extern "C" void exit (int);
  758. -#endif
  759. -
  760. -void fnord() { int i=42;}
  761. -int main ()
  762. -{
  763. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  764. - int status = $lt_dlunknown;
  765. -
  766. - if (self)
  767. - {
  768. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  769. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  770. - /* dlclose (self); */
  771. - }
  772. -
  773. - exit (status);
  774. -}]
  775. -EOF
  776. - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  777. - (./conftest; exit; ) 2>/dev/null
  778. - lt_status=$?
  779. - case x$lt_status in
  780. - x$lt_dlno_uscore) $1 ;;
  781. - x$lt_dlneed_uscore) $2 ;;
  782. - x$lt_unknown|x*) $3 ;;
  783. - esac
  784. - else :
  785. - # compilation failed
  786. - $3
  787. - fi
  788. -fi
  789. -rm -fr conftest*
  790. -])# _LT_AC_TRY_DLOPEN_SELF
  791. -
  792. -# AC_LIBTOOL_DLOPEN_SELF
  793. -# -------------------
  794. -AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
  795. -[if test "x$enable_dlopen" != xyes; then
  796. - enable_dlopen=unknown
  797. - enable_dlopen_self=unknown
  798. - enable_dlopen_self_static=unknown
  799. -else
  800. - lt_cv_dlopen=no
  801. - lt_cv_dlopen_libs=
  802. -
  803. - case $host_os in
  804. - beos*)
  805. - lt_cv_dlopen="load_add_on"
  806. - lt_cv_dlopen_libs=
  807. - lt_cv_dlopen_self=yes
  808. - ;;
  809. -
  810. - cygwin* | mingw* | pw32*)
  811. - lt_cv_dlopen="LoadLibrary"
  812. - lt_cv_dlopen_libs=
  813. - ;;
  814. -
  815. - *)
  816. - AC_CHECK_FUNC([shl_load],
  817. - [lt_cv_dlopen="shl_load"],
  818. - [AC_CHECK_LIB([dld], [shl_load],
  819. - [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
  820. - [AC_CHECK_FUNC([dlopen],
  821. - [lt_cv_dlopen="dlopen"],
  822. - [AC_CHECK_LIB([dl], [dlopen],
  823. - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  824. - [AC_CHECK_LIB([svld], [dlopen],
  825. - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  826. - [AC_CHECK_LIB([dld], [dld_link],
  827. - [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
  828. - ])
  829. - ])
  830. - ])
  831. - ])
  832. - ])
  833. - ;;
  834. - esac
  835. -
  836. - if test "x$lt_cv_dlopen" != xno; then
  837. - enable_dlopen=yes
  838. - else
  839. - enable_dlopen=no
  840. - fi
  841. -
  842. - case $lt_cv_dlopen in
  843. - dlopen)
  844. - save_CPPFLAGS="$CPPFLAGS"
  845. - AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  846. - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  847. -
  848. - save_LDFLAGS="$LDFLAGS"
  849. - eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  850. -
  851. - save_LIBS="$LIBS"
  852. - LIBS="$lt_cv_dlopen_libs $LIBS"
  853. -
  854. - AC_CACHE_CHECK([whether a program can dlopen itself],
  855. - lt_cv_dlopen_self, [dnl
  856. - _LT_AC_TRY_DLOPEN_SELF(
  857. - lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  858. - lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  859. - ])
  860. -
  861. - if test "x$lt_cv_dlopen_self" = xyes; then
  862. - LDFLAGS="$LDFLAGS $link_static_flag"
  863. - AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  864. - lt_cv_dlopen_self_static, [dnl
  865. - _LT_AC_TRY_DLOPEN_SELF(
  866. - lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  867. - lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  868. - ])
  869. - fi
  870. -
  871. - CPPFLAGS="$save_CPPFLAGS"
  872. - LDFLAGS="$save_LDFLAGS"
  873. - LIBS="$save_LIBS"
  874. - ;;
  875. - esac
  876. -
  877. - case $lt_cv_dlopen_self in
  878. - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  879. - *) enable_dlopen_self=unknown ;;
  880. - esac
  881. -
  882. - case $lt_cv_dlopen_self_static in
  883. - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  884. - *) enable_dlopen_self_static=unknown ;;
  885. - esac
  886. -fi
  887. -])# AC_LIBTOOL_DLOPEN_SELF
  888. -
  889. -AC_DEFUN([_LT_AC_LTCONFIG_HACK],
  890. -[AC_REQUIRE([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])dnl
  891. -# Sed substitution that helps us do robust quoting. It backslashifies
  892. -# metacharacters that are still active within double-quoted strings.
  893. -Xsed='sed -e s/^X//'
  894. -sed_quote_subst='s/\([[\\"\\`$\\\\]]\)/\\\1/g'
  895. -
  896. -# Same as above, but do not quote variable references.
  897. -double_quote_subst='s/\([[\\"\\`\\\\]]\)/\\\1/g'
  898. -
  899. -# Sed substitution to delay expansion of an escaped shell variable in a
  900. -# double_quote_subst'ed string.
  901. -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  902. -
  903. -# Constants:
  904. -rm="rm -f"
  905. -
  906. -# Global variables:
  907. -default_ofile=libtool
  908. -can_build_shared=yes
  909. -
  910. -# All known linkers require a `.a' archive for static linking (except M$VC,
  911. -# which needs '.lib').
  912. -libext=a
  913. -ltmain="$ac_aux_dir/ltmain.sh"
  914. -ofile="$default_ofile"
  915. -with_gnu_ld="$lt_cv_prog_gnu_ld"
  916. -need_locks="$enable_libtool_lock"
  917. -
  918. -old_CC="$CC"
  919. -old_CFLAGS="$CFLAGS"
  920. -
  921. -# Set sane defaults for various variables
  922. -test -z "$AR" && AR=ar
  923. -test -z "$AR_FLAGS" && AR_FLAGS=cru
  924. -test -z "$AS" && AS=as
  925. -test -z "$CC" && CC=cc
  926. -test -z "$DLLTOOL" && DLLTOOL=dlltool
  927. -test -z "$LD" && LD=ld
  928. -test -z "$LN_S" && LN_S="ln -s"
  929. -test -z "$MAGIC_CMD" && MAGIC_CMD=file
  930. -test -z "$NM" && NM=nm
  931. -test -z "$OBJDUMP" && OBJDUMP=objdump
  932. -test -z "$RANLIB" && RANLIB=:
  933. -test -z "$STRIP" && STRIP=:
  934. -test -z "$ac_objext" && ac_objext=o
  935. -
  936. -if test x"$host" != x"$build"; then
  937. - ac_tool_prefix=${host_alias}-
  938. -else
  939. - ac_tool_prefix=
  940. -fi
  941. -
  942. -# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
  943. -case $host_os in
  944. -linux-gnu*) ;;
  945. -linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
  946. -esac
  947. -
  948. -case $host_os in
  949. -aix3*)
  950. - # AIX sometimes has problems with the GCC collect2 program. For some
  951. - # reason, if we set the COLLECT_NAMES environment variable, the problems
  952. - # vanish in a puff of smoke.
  953. - if test "X${COLLECT_NAMES+set}" != Xset; then
  954. - COLLECT_NAMES=
  955. - export COLLECT_NAMES
  956. - fi
  957. - ;;
  958. -esac
  959. -
  960. -# Determine commands to create old-style static archives.
  961. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  962. -old_postinstall_cmds='chmod 644 $oldlib'
  963. -old_postuninstall_cmds=
  964. -
  965. -if test -n "$RANLIB"; then
  966. - case $host_os in
  967. - openbsd*)
  968. - old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
  969. - ;;
  970. - *)
  971. - old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
  972. - ;;
  973. - esac
  974. - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  975. -fi
  976. -
  977. -# Allow CC to be a program name with arguments.
  978. -set dummy $CC
  979. -compiler="[$]2"
  980. -
  981. -## FIXME: this should be a separate macro
  982. -##
  983. -AC_MSG_CHECKING([for objdir])
  984. -rm -f .libs 2>/dev/null
  985. -mkdir .libs 2>/dev/null
  986. -if test -d .libs; then
  987. - objdir=.libs
  988. -else
  989. - # MS-DOS does not allow filenames that begin with a dot.
  990. - objdir=_libs
  991. -fi
  992. -rmdir .libs 2>/dev/null
  993. -AC_MSG_RESULT($objdir)
  994. -##
  995. -## END FIXME
  996. -
  997. -
  998. -## FIXME: this should be a separate macro
  999. -##
  1000. -AC_ARG_WITH(pic,
  1001. -[ --with-pic try to use only PIC/non-PIC objects [default=use both]],
  1002. -pic_mode="$withval", pic_mode=default)
  1003. -test -z "$pic_mode" && pic_mode=default
  1004. -
  1005. -# We assume here that the value for lt_cv_prog_cc_pic will not be cached
  1006. -# in isolation, and that seeing it set (from the cache) indicates that
  1007. -# the associated values are set (in the cache) correctly too.
  1008. -AC_MSG_CHECKING([for $compiler option to produce PIC])
  1009. -AC_CACHE_VAL(lt_cv_prog_cc_pic,
  1010. -[ lt_cv_prog_cc_pic=
  1011. - lt_cv_prog_cc_shlib=
  1012. - lt_cv_prog_cc_wl=
  1013. - lt_cv_prog_cc_static=
  1014. - lt_cv_prog_cc_no_builtin=
  1015. - lt_cv_prog_cc_can_build_shared=$can_build_shared
  1016. -
  1017. - if test "$GCC" = yes; then
  1018. - lt_cv_prog_cc_wl='-Wl,'
  1019. - lt_cv_prog_cc_static='-static'
  1020. -
  1021. - case $host_os in
  1022. - aix*)
  1023. - # Below there is a dirty hack to force normal static linking with -ldl
  1024. - # The problem is because libdl dynamically linked with both libc and
  1025. - # libC (AIX C++ library), which obviously doesn't included in libraries
  1026. - # list by gcc. This cause undefined symbols with -static flags.
  1027. - # This hack allows C programs to be linked with "-static -ldl", but
  1028. - # not sure about C++ programs.
  1029. - lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
  1030. - ;;
  1031. - amigaos*)
  1032. - # FIXME: we need at least 68020 code to build shared libraries, but
  1033. - # adding the `-m68020' flag to GCC prevents building anything better,
  1034. - # like `-m68040'.
  1035. - lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
  1036. - ;;
  1037. - beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
  1038. - # PIC is the default for these OSes.
  1039. - ;;
  1040. - darwin* | rhapsody*)
  1041. - # PIC is the default on this platform
  1042. - # Common symbols not allowed in MH_DYLIB files
  1043. - lt_cv_prog_cc_pic='-fno-common'
  1044. - ;;
  1045. - cygwin* | mingw* | pw32* | os2*)
  1046. - # This hack is so that the source file can tell whether it is being
  1047. - # built for inclusion in a dll (and should export symbols for example).
  1048. - lt_cv_prog_cc_pic='-DDLL_EXPORT'
  1049. - ;;
  1050. - sysv4*MP*)
  1051. - if test -d /usr/nec; then
  1052. - lt_cv_prog_cc_pic=-Kconform_pic
  1053. - fi
  1054. - ;;
  1055. - *)
  1056. - lt_cv_prog_cc_pic='-fPIC'
  1057. - ;;
  1058. - esac
  1059. - else
  1060. - # PORTME Check for PIC flags for the system compiler.
  1061. - case $host_os in
  1062. - aix3* | aix4* | aix5*)
  1063. - lt_cv_prog_cc_wl='-Wl,'
  1064. - # All AIX code is PIC.
  1065. - if test "$host_cpu" = ia64; then
  1066. - # AIX 5 now supports IA64 processor
  1067. - lt_cv_prog_cc_static='-Bstatic'
  1068. - else
  1069. - lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
  1070. - fi
  1071. - ;;
  1072. -
  1073. - hpux9* | hpux10* | hpux11*)
  1074. - # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
  1075. - lt_cv_prog_cc_wl='-Wl,'
  1076. - lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
  1077. - lt_cv_prog_cc_pic='+Z'
  1078. - ;;
  1079. -
  1080. - irix5* | irix6*)
  1081. - lt_cv_prog_cc_wl='-Wl,'
  1082. - lt_cv_prog_cc_static='-non_shared'
  1083. - # PIC (with -KPIC) is the default.
  1084. - ;;
  1085. -
  1086. - cygwin* | mingw* | pw32* | os2*)
  1087. - # This hack is so that the source file can tell whether it is being
  1088. - # built for inclusion in a dll (and should export symbols for example).
  1089. - lt_cv_prog_cc_pic='-DDLL_EXPORT'
  1090. - ;;
  1091. -
  1092. - newsos6)
  1093. - lt_cv_prog_cc_pic='-KPIC'
  1094. - lt_cv_prog_cc_static='-Bstatic'
  1095. - ;;
  1096. -
  1097. - osf3* | osf4* | osf5*)
  1098. - # All OSF/1 code is PIC.
  1099. - lt_cv_prog_cc_wl='-Wl,'
  1100. - lt_cv_prog_cc_static='-non_shared'
  1101. - ;;
  1102. -
  1103. - sco3.2v5*)
  1104. - lt_cv_prog_cc_pic='-Kpic'
  1105. - lt_cv_prog_cc_static='-dn'
  1106. - lt_cv_prog_cc_shlib='-belf'
  1107. - ;;
  1108. -
  1109. - solaris*)
  1110. - lt_cv_prog_cc_pic='-KPIC'
  1111. - lt_cv_prog_cc_static='-Bstatic'
  1112. - lt_cv_prog_cc_wl='-Wl,'
  1113. - ;;
  1114. -