23 |
## the same distribution terms that you use for the rest of that program. |
## the same distribution terms that you use for the rest of that program. |
24 |
|
|
25 |
# serial 46 AC_PROG_LIBTOOL |
# serial 46 AC_PROG_LIBTOOL |
26 |
|
|
27 |
AC_DEFUN([AC_PROG_LIBTOOL], |
AC_DEFUN([AC_PROG_LIBTOOL], |
28 |
[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl |
[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl |
29 |
|
|
49 |
AC_REQUIRE([AC_PROG_LD])dnl |
AC_REQUIRE([AC_PROG_LD])dnl |
50 |
AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl |
AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl |
51 |
AC_REQUIRE([AC_PROG_NM])dnl |
AC_REQUIRE([AC_PROG_NM])dnl |
52 |
|
AC_REQUIRE([LT_AC_PROG_SED])dnl |
53 |
|
|
54 |
AC_REQUIRE([AC_PROG_LN_S])dnl |
AC_REQUIRE([AC_PROG_LN_S])dnl |
55 |
AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl |
AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl |
56 |
AC_REQUIRE([AC_OBJEXT])dnl |
AC_REQUIRE([AC_OBJEXT])dnl |
151 |
|
|
152 |
]) |
]) |
153 |
|
|
154 |
|
# AC_LIBTOOL_HEADER_ASSERT |
155 |
|
# ------------------------ |
156 |
|
AC_DEFUN([AC_LIBTOOL_HEADER_ASSERT], |
157 |
|
[AC_CACHE_CHECK([whether $CC supports assert without backlinking], |
158 |
|
[lt_cv_func_assert_works], |
159 |
|
[case $host in |
160 |
|
*-*-solaris*) |
161 |
|
if test "$GCC" = yes && test "$with_gnu_ld" != yes; then |
162 |
|
case `$CC --version 2>/dev/null` in |
163 |
|
[[12]].*) lt_cv_func_assert_works=no ;; |
164 |
|
*) lt_cv_func_assert_works=yes ;; |
165 |
|
esac |
166 |
|
fi |
167 |
|
;; |
168 |
|
esac]) |
169 |
|
|
170 |
|
if test "x$lt_cv_func_assert_works" = xyes; then |
171 |
|
AC_CHECK_HEADERS(assert.h) |
172 |
|
fi |
173 |
|
])# AC_LIBTOOL_HEADER_ASSERT |
174 |
|
|
175 |
# _LT_AC_CHECK_DLFCN |
# _LT_AC_CHECK_DLFCN |
176 |
# -------------------- |
# -------------------- |
177 |
AC_DEFUN(_LT_AC_CHECK_DLFCN, |
AC_DEFUN([_LT_AC_CHECK_DLFCN], |
178 |
[AC_CHECK_HEADERS(dlfcn.h) |
[AC_CHECK_HEADERS(dlfcn.h) |
179 |
])# _LT_AC_CHECK_DLFCN |
])# _LT_AC_CHECK_DLFCN |
180 |
|
|
192 |
# [They come from Ultrix. What could be older than Ultrix?!! ;)] |
# [They come from Ultrix. What could be older than Ultrix?!! ;)] |
193 |
|
|
194 |
# Character class describing NM global symbol codes. |
# Character class describing NM global symbol codes. |
195 |
[symcode='[BCDEGRST]'] |
symcode='[[BCDEGRST]]' |
196 |
|
|
197 |
# Regexp to match symbols that can be accessed directly from C. |
# Regexp to match symbols that can be accessed directly from C. |
198 |
[sympat='\([_A-Za-z][_A-Za-z0-9]*\)'] |
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' |
199 |
|
|
200 |
# Transform the above into a raw symbol and a C symbol. |
# Transform the above into a raw symbol and a C symbol. |
201 |
symxfrm='\1 \2\3 \3' |
symxfrm='\1 \2\3 \3' |
203 |
# Transform an extracted symbol line into a proper C declaration |
# Transform an extracted symbol line into a proper C declaration |
204 |
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'" |
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'" |
205 |
|
|
206 |
|
# Transform an extracted symbol line into symbol name and symbol address |
207 |
|
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'" |
208 |
|
|
209 |
# Define system-specific variables. |
# Define system-specific variables. |
210 |
case $host_os in |
case $host_os in |
211 |
aix*) |
aix*) |
212 |
[symcode='[BCDT]'] |
symcode='[[BCDT]]' |
213 |
;; |
;; |
214 |
cygwin* | mingw* | pw32*) |
cygwin* | mingw* | pw32*) |
215 |
[symcode='[ABCDGISTW]'] |
symcode='[[ABCDGISTW]]' |
216 |
;; |
;; |
217 |
hpux*) # Its linker distinguishes data from code symbols |
hpux*) # Its linker distinguishes data from code symbols |
218 |
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
219 |
|
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'" |
220 |
|
;; |
221 |
|
irix* | nonstopux*) |
222 |
|
symcode='[[BCDEGRST]]' |
223 |
;; |
;; |
224 |
irix*) |
osf*) |
225 |
[symcode='[BCDEGRST]'] |
symcode='[[BCDEGQRST]]' |
226 |
;; |
;; |
227 |
solaris* | sysv5*) |
solaris* | sysv5*) |
228 |
[symcode='[BDT]'] |
symcode='[[BDT]]' |
229 |
;; |
;; |
230 |
sysv4) |
sysv4) |
231 |
[symcode='[DFNSTU]'] |
symcode='[[DFNSTU]]' |
232 |
;; |
;; |
233 |
esac |
esac |
234 |
|
|
242 |
|
|
243 |
# If we're using GNU nm, then use its standard symbol codes. |
# If we're using GNU nm, then use its standard symbol codes. |
244 |
if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then |
if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then |
245 |
[symcode='[ABCDGISTW]'] |
symcode='[[ABCDGISTW]]' |
246 |
fi |
fi |
247 |
|
|
248 |
# Try without a prefix undercore, then with it. |
# Try without a prefix undercore, then with it. |
249 |
for ac_symprfx in "" "_"; do |
for ac_symprfx in "" "_"; do |
250 |
|
|
251 |
# Write the raw and C identifiers. |
# Write the raw and C identifiers. |
252 |
[lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"] |
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" |
253 |
|
|
254 |
# Check to see that the pipe works correctly. |
# Check to see that the pipe works correctly. |
255 |
pipe_works=no |
pipe_works=no |
291 |
|
|
292 |
cat <<EOF >> conftest.$ac_ext |
cat <<EOF >> conftest.$ac_ext |
293 |
#if defined (__STDC__) && __STDC__ |
#if defined (__STDC__) && __STDC__ |
294 |
# define lt_ptr_t void * |
# define lt_ptr void * |
295 |
#else |
#else |
296 |
# define lt_ptr_t char * |
# define lt_ptr char * |
297 |
# define const |
# define const |
298 |
#endif |
#endif |
299 |
|
|
300 |
/* The mapping between symbol names and symbols. */ |
/* The mapping between symbol names and symbols. */ |
301 |
const struct { |
const struct { |
302 |
const char *name; |
const char *name; |
303 |
lt_ptr_t address; |
lt_ptr address; |
304 |
} |
} |
305 |
[lt_preloaded_symbols[] =] |
lt_preloaded_symbols[[]] = |
306 |
{ |
{ |
307 |
EOF |
EOF |
308 |
sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" >> conftest.$ac_ext |
sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext |
309 |
cat <<\EOF >> conftest.$ac_ext |
cat <<\EOF >> conftest.$ac_ext |
310 |
{0, (lt_ptr_t) 0} |
{0, (lt_ptr) 0} |
311 |
}; |
}; |
312 |
|
|
313 |
#ifdef __cplusplus |
#ifdef __cplusplus |
320 |
save_CFLAGS="$CFLAGS" |
save_CFLAGS="$CFLAGS" |
321 |
LIBS="conftstm.$ac_objext" |
LIBS="conftstm.$ac_objext" |
322 |
CFLAGS="$CFLAGS$no_builtin_flag" |
CFLAGS="$CFLAGS$no_builtin_flag" |
323 |
if AC_TRY_EVAL(ac_link) && test -s conftest; then |
if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then |
324 |
pipe_works=yes |
pipe_works=yes |
325 |
fi |
fi |
326 |
LIBS="$save_LIBS" |
LIBS="$save_LIBS" |
351 |
global_symbol_pipe="$lt_cv_sys_global_symbol_pipe" |
global_symbol_pipe="$lt_cv_sys_global_symbol_pipe" |
352 |
if test -z "$lt_cv_sys_global_symbol_pipe"; then |
if test -z "$lt_cv_sys_global_symbol_pipe"; then |
353 |
global_symbol_to_cdecl= |
global_symbol_to_cdecl= |
354 |
|
global_symbol_to_c_name_address= |
355 |
else |
else |
356 |
global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl" |
global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl" |
357 |
|
global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address" |
358 |
fi |
fi |
359 |
if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then |
if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address"; |
360 |
|
then |
361 |
AC_MSG_RESULT(failed) |
AC_MSG_RESULT(failed) |
362 |
else |
else |
363 |
AC_MSG_RESULT(ok) |
AC_MSG_RESULT(ok) |
375 |
*-DOS) lt_cv_sys_path_separator=';' ;; |
*-DOS) lt_cv_sys_path_separator=';' ;; |
376 |
*) lt_cv_sys_path_separator=':' ;; |
*) lt_cv_sys_path_separator=':' ;; |
377 |
esac |
esac |
378 |
|
PATH_SEPARATOR=$lt_cv_sys_path_separator |
379 |
fi |
fi |
380 |
])# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR |
])# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR |
381 |
|
|
382 |
# _LT_AC_PROG_ECHO_BACKSLASH |
# _LT_AC_PROG_ECHO_BACKSLASH |
383 |
# -------------------------- |
# -------------------------- |
384 |
# Add some code to the start of the generated configure script which |
# Add some code to the start of the generated configure script which |
385 |
# will find an echo command which doesn;t interpret backslashes. |
# will find an echo command which doesn't interpret backslashes. |
386 |
AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], |
AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], |
387 |
[ifdef([AC_DIVERSION_NOTICE], [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], |
[ifdef([AC_DIVERSION_NOTICE], [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], |
388 |
[AC_DIVERT_PUSH(NOTICE)]) |
[AC_DIVERT_PUSH(NOTICE)]) |
451 |
# |
# |
452 |
# So, first we look for a working echo in the user's PATH. |
# So, first we look for a working echo in the user's PATH. |
453 |
|
|
454 |
IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}" |
IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
455 |
for dir in $PATH /usr/ucb; do |
for dir in $PATH /usr/ucb; do |
456 |
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
457 |
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
540 |
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, |
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, |
541 |
# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) |
# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) |
542 |
# ------------------------------------------------------------------ |
# ------------------------------------------------------------------ |
543 |
AC_DEFUN(_LT_AC_TRY_DLOPEN_SELF, |
AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], |
544 |
[if test "$cross_compiling" = yes; then : |
[if test "$cross_compiling" = yes; then : |
545 |
[$4] |
[$4] |
546 |
else |
else |
627 |
|
|
628 |
# AC_LIBTOOL_DLOPEN_SELF |
# AC_LIBTOOL_DLOPEN_SELF |
629 |
# ------------------- |
# ------------------- |
630 |
AC_DEFUN(AC_LIBTOOL_DLOPEN_SELF, |
AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], |
631 |
[if test "x$enable_dlopen" != xyes; then |
[if test "x$enable_dlopen" != xyes; then |
632 |
enable_dlopen=unknown |
enable_dlopen=unknown |
633 |
enable_dlopen_self=unknown |
enable_dlopen_self=unknown |
649 |
;; |
;; |
650 |
|
|
651 |
*) |
*) |
652 |
AC_CHECK_LIB(dl, dlopen, [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], |
AC_CHECK_FUNC([shl_load], |
653 |
[AC_CHECK_FUNC(dlopen, lt_cv_dlopen="dlopen", |
[lt_cv_dlopen="shl_load"], |
654 |
[AC_CHECK_FUNC(shl_load, lt_cv_dlopen="shl_load", |
[AC_CHECK_LIB([dld], [shl_load], |
655 |
[AC_CHECK_LIB(svld, dlopen, |
[lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"], |
656 |
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], |
[AC_CHECK_FUNC([dlopen], |
657 |
[AC_CHECK_LIB(dld, shl_load, |
[lt_cv_dlopen="dlopen"], |
658 |
[lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"]) |
[AC_CHECK_LIB([dl], [dlopen], |
659 |
|
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], |
660 |
|
[AC_CHECK_LIB([svld], [dlopen], |
661 |
|
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], |
662 |
|
[AC_CHECK_LIB([dld], [dld_link], |
663 |
|
[lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"]) |
664 |
|
]) |
665 |
]) |
]) |
666 |
]) |
]) |
667 |
]) |
]) |
697 |
if test "x$lt_cv_dlopen_self" = xyes; then |
if test "x$lt_cv_dlopen_self" = xyes; then |
698 |
LDFLAGS="$LDFLAGS $link_static_flag" |
LDFLAGS="$LDFLAGS $link_static_flag" |
699 |
AC_CACHE_CHECK([whether a statically linked program can dlopen itself], |
AC_CACHE_CHECK([whether a statically linked program can dlopen itself], |
700 |
lt_cv_dlopen_self_static, [dnl |
lt_cv_dlopen_self_static, [dnl |
701 |
_LT_AC_TRY_DLOPEN_SELF( |
_LT_AC_TRY_DLOPEN_SELF( |
702 |
lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, |
lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, |
703 |
lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) |
lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) |
727 |
# Sed substitution that helps us do robust quoting. It backslashifies |
# Sed substitution that helps us do robust quoting. It backslashifies |
728 |
# metacharacters that are still active within double-quoted strings. |
# metacharacters that are still active within double-quoted strings. |
729 |
Xsed='sed -e s/^X//' |
Xsed='sed -e s/^X//' |
730 |
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] |
sed_quote_subst='s/\([[\\"\\`$\\\\]]\)/\\\1/g' |
731 |
|
|
732 |
# Same as above, but do not quote variable references. |
# Same as above, but do not quote variable references. |
733 |
[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'] |
double_quote_subst='s/\([[\\"\\`\\\\]]\)/\\\1/g' |
734 |
|
|
735 |
# Sed substitution to delay expansion of an escaped shell variable in a |
# Sed substitution to delay expansion of an escaped shell variable in a |
736 |
# double_quote_subst'ed string. |
# double_quote_subst'ed string. |
799 |
old_postuninstall_cmds= |
old_postuninstall_cmds= |
800 |
|
|
801 |
if test -n "$RANLIB"; then |
if test -n "$RANLIB"; then |
802 |
|
case $host_os in |
803 |
|
openbsd*) |
804 |
|
old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" |
805 |
|
;; |
806 |
|
*) |
807 |
|
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" |
808 |
|
;; |
809 |
|
esac |
810 |
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
|
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" |
|
811 |
fi |
fi |
812 |
|
|
813 |
# Allow CC to be a program name with arguments. |
# Allow CC to be a program name with arguments. |
861 |
# libC (AIX C++ library), which obviously doesn't included in libraries |
# libC (AIX C++ library), which obviously doesn't included in libraries |
862 |
# list by gcc. This cause undefined symbols with -static flags. |
# list by gcc. This cause undefined symbols with -static flags. |
863 |
# This hack allows C programs to be linked with "-static -ldl", but |
# This hack allows C programs to be linked with "-static -ldl", but |
864 |
# we not sure about C++ programs. |
# not sure about C++ programs. |
865 |
lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC" |
lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC" |
866 |
;; |
;; |
867 |
amigaos*) |
amigaos*) |
870 |
# like `-m68040'. |
# like `-m68040'. |
871 |
lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4' |
lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4' |
872 |
;; |
;; |
873 |
beos* | irix5* | irix6* | osf3* | osf4* | osf5*) |
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
874 |
# PIC is the default for these OSes. |
# PIC is the default for these OSes. |
875 |
;; |
;; |
876 |
darwin* | rhapsody*) |
darwin* | rhapsody*) |
896 |
# PORTME Check for PIC flags for the system compiler. |
# PORTME Check for PIC flags for the system compiler. |
897 |
case $host_os in |
case $host_os in |
898 |
aix3* | aix4* | aix5*) |
aix3* | aix4* | aix5*) |
899 |
|
lt_cv_prog_cc_wl='-Wl,' |
900 |
# All AIX code is PIC. |
# All AIX code is PIC. |
901 |
if test "$host_cpu" = ia64; then |
if test "$host_cpu" = ia64; then |
902 |
# AIX 5 now supports IA64 processor |
# AIX 5 now supports IA64 processor |
903 |
lt_cv_prog_cc_static='-Bstatic' |
lt_cv_prog_cc_static='-Bstatic' |
|
lt_cv_prog_cc_wl='-Wl,' |
|
904 |
else |
else |
905 |
lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp' |
lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp' |
906 |
fi |
fi |
913 |
lt_cv_prog_cc_pic='+Z' |
lt_cv_prog_cc_pic='+Z' |
914 |
;; |
;; |
915 |
|
|
916 |
irix5* | irix6*) |
irix5* | irix6* | nonstopux*) |
917 |
lt_cv_prog_cc_wl='-Wl,' |
lt_cv_prog_cc_wl='-Wl,' |
918 |
lt_cv_prog_cc_static='-non_shared' |
lt_cv_prog_cc_static='-non_shared' |
919 |
# PIC (with -KPIC) is the default. |
# PIC (with -KPIC) is the default. |
957 |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
958 |
lt_cv_prog_cc_pic='-KPIC' |
lt_cv_prog_cc_pic='-KPIC' |
959 |
lt_cv_prog_cc_static='-Bstatic' |
lt_cv_prog_cc_static='-Bstatic' |
960 |
if test "x$host_vendor" = xsni; then |
lt_cv_prog_cc_wl='-Wl,' |
|
lt_cv_prog_cc_wl='-LD' |
|
|
else |
|
|
lt_cv_prog_cc_wl='-Wl,' |
|
|
fi |
|
961 |
;; |
;; |
962 |
|
|
963 |
uts4*) |
uts4*) |
1025 |
# Check for any special shared library compilation flags. |
# Check for any special shared library compilation flags. |
1026 |
if test -n "$lt_cv_prog_cc_shlib"; then |
if test -n "$lt_cv_prog_cc_shlib"; then |
1027 |
AC_MSG_WARN([\`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries]) |
AC_MSG_WARN([\`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries]) |
1028 |
if echo "$old_CC $old_CFLAGS " | [egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]"] >/dev/null; then : |
if echo "$old_CC $old_CFLAGS " | egrep -e "[[ ]]$lt_cv_prog_cc_shlib[[ ]]" >/dev/null; then : |
1029 |
else |
else |
1030 |
AC_MSG_WARN([add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure]) |
AC_MSG_WARN([add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure]) |
1031 |
lt_cv_prog_cc_can_build_shared=no |
lt_cv_prog_cc_can_build_shared=no |
1107 |
lt_cv_compiler_o_lo=no |
lt_cv_compiler_o_lo=no |
1108 |
save_CFLAGS="$CFLAGS" |
save_CFLAGS="$CFLAGS" |
1109 |
CFLAGS="$CFLAGS -c -o conftest.lo" |
CFLAGS="$CFLAGS -c -o conftest.lo" |
1110 |
|
save_objext="$ac_objext" |
1111 |
|
ac_objext=lo |
1112 |
AC_TRY_COMPILE([], [int some_variable = 0;], [dnl |
AC_TRY_COMPILE([], [int some_variable = 0;], [dnl |
1113 |
# The compiler can only warn and ignore the option if not recognized |
# The compiler can only warn and ignore the option if not recognized |
1114 |
# So say no if there are warnings |
# So say no if there are warnings |
1118 |
lt_cv_compiler_o_lo=yes |
lt_cv_compiler_o_lo=yes |
1119 |
fi |
fi |
1120 |
]) |
]) |
1121 |
|
ac_objext="$save_objext" |
1122 |
CFLAGS="$save_CFLAGS" |
CFLAGS="$save_CFLAGS" |
1123 |
]) |
]) |
1124 |
compiler_o_lo=$lt_cv_compiler_o_lo |
compiler_o_lo=$lt_cv_compiler_o_lo |
1227 |
extract_expsyms_cmds= |
extract_expsyms_cmds= |
1228 |
|
|
1229 |
case $host_os in |
case $host_os in |
1230 |
cygwin* | mingw* | pw32* ) |
cygwin* | mingw* | pw32*) |
1231 |
# FIXME: the MSVC++ port hasn't been tested in a loooong time |
# FIXME: the MSVC++ port hasn't been tested in a loooong time |
1232 |
# When not using gcc, we currently assume that we are using |
# When not using gcc, we currently assume that we are using |
1233 |
# Microsoft Visual C++. |
# Microsoft Visual C++. |
1235 |
with_gnu_ld=no |
with_gnu_ld=no |
1236 |
fi |
fi |
1237 |
;; |
;; |
1238 |
|
openbsd*) |
1239 |
|
with_gnu_ld=no |
1240 |
|
;; |
1241 |
esac |
esac |
1242 |
|
|
1243 |
ld_shlibs=yes |
ld_shlibs=yes |
1324 |
# can override, but on older systems we have to supply one (in ltdll.c) |
# can override, but on older systems we have to supply one (in ltdll.c) |
1325 |
if test "x$lt_cv_need_dllmain" = "xyes"; then |
if test "x$lt_cv_need_dllmain" = "xyes"; then |
1326 |
ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " |
ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " |
1327 |
ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < [$]0 > $output_objdir/$soname-ltdll.c~ |
ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~ |
1328 |
test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' |
test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' |
1329 |
else |
else |
1330 |
ltdll_obj= |
ltdll_obj= |
1337 |
# Be careful not to strip the DATA tag left be newer dlltools. |
# Be careful not to strip the DATA tag left be newer dlltools. |
1338 |
export_symbols_cmds="$ltdll_cmds"' |
export_symbols_cmds="$ltdll_cmds"' |
1339 |
$DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ |
$DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ |
1340 |
[sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//"] < $output_objdir/$soname-def > $export_symbols' |
sed -e "1,/EXPORTS/d" -e "s/ @ [[0-9]]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols' |
1341 |
|
|
1342 |
# If the export-symbols file already is a .def file (1st line |
# If the export-symbols file already is a .def file (1st line |
1343 |
# is EXPORTS), use it as is. |
# is EXPORTS), use it as is. |
1344 |
# If DATA tags from a recent dlltool are present, honour them! |
# If DATA tags from a recent dlltool are present, honour them! |
1345 |
archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then |
archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then |
1346 |
cp $export_symbols $output_objdir/$soname-def; |
cp $export_symbols $output_objdir/$soname-def; |
1347 |
else |
else |
1348 |
echo EXPORTS > $output_objdir/$soname-def; |
echo EXPORTS > $output_objdir/$soname-def; |
1351 |
set dummy \$symbol; |
set dummy \$symbol; |
1352 |
case \[$]# in |
case \[$]# in |
1353 |
2) echo " \[$]2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; |
2) echo " \[$]2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; |
1354 |
|
4) echo " \[$]2 \[$]3 \[$]4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;; |
1355 |
*) echo " \[$]2 @ \$_lt_hint \[$]3 ; " >> $output_objdir/$soname-def;; |
*) echo " \[$]2 @ \$_lt_hint \[$]3 ; " >> $output_objdir/$soname-def;; |
1356 |
esac; |
esac; |
1357 |
_lt_hint=`expr 1 + \$_lt_hint`; |
_lt_hint=`expr 1 + \$_lt_hint`; |
1450 |
;; |
;; |
1451 |
|
|
1452 |
aix4* | aix5*) |
aix4* | aix5*) |
1453 |
|
if test "$host_cpu" = ia64; then |
1454 |
|
# On IA64, the linker does run time linking by default, so we don't |
1455 |
|
# have to do anything special. |
1456 |
|
aix_use_runtimelinking=no |
1457 |
|
exp_sym_flag='-Bexport' |
1458 |
|
no_entry_flag="" |
1459 |
|
else |
1460 |
|
aix_use_runtimelinking=no |
1461 |
|
|
1462 |
|
# Test if we are trying to use run time linking or normal |
1463 |
|
# AIX style linking. If -brtl is somewhere in LDFLAGS, we |
1464 |
|
# need to do runtime linking. |
1465 |
|
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) |
1466 |
|
for ld_flag in $LDFLAGS; do |
1467 |
|
case $ld_flag in |
1468 |
|
*-brtl*) |
1469 |
|
aix_use_runtimelinking=yes |
1470 |
|
break |
1471 |
|
;; |
1472 |
|
esac |
1473 |
|
done |
1474 |
|
esac |
1475 |
|
|
1476 |
|
exp_sym_flag='-bexport' |
1477 |
|
no_entry_flag='-bnoentry' |
1478 |
|
fi |
1479 |
|
|
1480 |
# When large executables or shared objects are built, AIX ld can |
# When large executables or shared objects are built, AIX ld can |
1481 |
# have problems creating the table of contents. If linking a library |
# have problems creating the table of contents. If linking a library |
1482 |
# or program results in "error TOC overflow" add -mminimal-toc to |
# or program results in "error TOC overflow" add -mminimal-toc to |
1483 |
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
1484 |
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
1485 |
|
|
1486 |
|
hardcode_direct=yes |
1487 |
archive_cmds='' |
archive_cmds='' |
1488 |
hardcode_libdir_separator=':' |
hardcode_libdir_separator=':' |
1489 |
if test "$GCC" = yes; then |
if test "$GCC" = yes; then |
1490 |
collect2name=`${CC} -print-prog-name=collect2` |
case $host_os in aix4.[[012]]|aix4.[[012]].*) |
1491 |
if test -f "$collect2name" && \ |
collect2name=`${CC} -print-prog-name=collect2` |
1492 |
strings "$collect2name" | grep resolve_lib_name >/dev/null |
if test -f "$collect2name" && \ |
1493 |
then |
strings "$collect2name" | grep resolve_lib_name >/dev/null |
1494 |
# We have reworked collect2 |
then |
1495 |
hardcode_direct=yes |
# We have reworked collect2 |
1496 |
else |
hardcode_direct=yes |
1497 |
# We have old collect2 |
else |
1498 |
hardcode_direct=unsupported |
# We have old collect2 |
1499 |
# It fails to find uninstalled libraries when the uninstalled |
hardcode_direct=unsupported |
1500 |
# path is not listed in the libpath. Setting hardcode_minus_L |
# It fails to find uninstalled libraries when the uninstalled |
1501 |
# to unsupported forces relinking |
# path is not listed in the libpath. Setting hardcode_minus_L |
1502 |
hardcode_minus_L=yes |
# to unsupported forces relinking |
1503 |
hardcode_libdir_flag_spec='-L$libdir' |
hardcode_minus_L=yes |
1504 |
hardcode_libdir_separator= |
hardcode_libdir_flag_spec='-L$libdir' |
1505 |
fi |
hardcode_libdir_separator= |
1506 |
|
fi |
1507 |
|
esac |
1508 |
|
|
1509 |
shared_flag='-shared' |
shared_flag='-shared' |
1510 |
else |
else |
1511 |
|
# not using gcc |
1512 |
if test "$host_cpu" = ia64; then |
if test "$host_cpu" = ia64; then |
1513 |
shared_flag='-G' |
shared_flag='${wl}-G' |
1514 |
else |
else |
1515 |
shared_flag='${wl}-bM:SRE' |
if test "$aix_use_runtimelinking" = yes; then |
1516 |
|
shared_flag='${wl}-G' |
1517 |
|
else |
1518 |
|
shared_flag='${wl}-bM:SRE' |
1519 |
|
fi |
1520 |
fi |
fi |
|
hardcode_direct=yes |
|
1521 |
fi |
fi |
1522 |
|
|
|
if test "$host_cpu" = ia64; then |
|
|
# On IA64, the linker does run time linking by default, so we don't |
|
|
# have to do anything special. |
|
|
aix_use_runtimelinking=no |
|
|
exp_sym_flag='-Bexport' |
|
|
no_entry_flag="" |
|
|
else |
|
|
# Test if we are trying to use run time linking, or normal AIX style linking. |
|
|
# If -brtl is somewhere in LDFLAGS, we need to do run time linking. |
|
|
aix_use_runtimelinking=no |
|
|
for ld_flag in $LDFLAGS; do |
|
|
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl" ); then |
|
|
aix_use_runtimelinking=yes |
|
|
break |
|
|
fi |
|
|
done |
|
|
exp_sym_flag='-bexport' |
|
|
no_entry_flag='-bnoentry' |
|
|
fi |
|
1523 |
# It seems that -bexpall can do strange things, so it is better to |
# It seems that -bexpall can do strange things, so it is better to |
1524 |
# generate a list of symbols to export. |
# generate a list of symbols to export. |
1525 |
always_export_symbols=yes |
always_export_symbols=yes |
1526 |
if test "$aix_use_runtimelinking" = yes; then |
if test "$aix_use_runtimelinking" = yes; then |
1527 |
|
# Warning - without using the other runtime loading flags (-brtl), |
1528 |
|
# -berok will link without error, but may produce a broken library. |
1529 |
|
allow_undefined_flag='-berok' |
1530 |
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib' |
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib' |
1531 |
allow_undefined_flag=' -Wl,-G' |
archive_expsym_cmds="\$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" |
|
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
|
1532 |
else |
else |
1533 |
if test "$host_cpu" = ia64; then |
if test "$host_cpu" = ia64; then |
1534 |
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
1535 |
allow_undefined_flag="-znodefs" |
allow_undefined_flag="-z nodefs" |
1536 |
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
1537 |
else |
else |
1538 |
hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib' |
hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib' |
1539 |
# Warning - without using the other run time loading flags, -berok will |
# Warning - without using the other run time loading flags, |
1540 |
# link without error, but may produce a broken library. |
# -berok will link without error, but may produce a broken library. |
1541 |
allow_undefined_flag='${wl}-berok' |
allow_undefined_flag='${wl}-berok' |
1542 |
# This is a bit strange, but is similar to how AIX traditionally builds |
# This is a bit strange, but is similar to how AIX traditionally builds |
1543 |
# it's shared libraries. |
# it's shared libraries. |
1573 |
;; |
;; |
1574 |
|
|
1575 |
darwin* | rhapsody*) |
darwin* | rhapsody*) |
1576 |
allow_undefined_flag='-undefined suppress' |
case "$host_os" in |
1577 |
|
rhapsody* | darwin1.[[012]]) |
1578 |
|
allow_undefined_flag='-undefined suppress' |
1579 |
|
;; |
1580 |
|
*) # Darwin 1.3 on |
1581 |
|
allow_undefined_flag='-flat_namespace -undefined suppress' |
1582 |
|
;; |
1583 |
|
esac |
1584 |
# FIXME: Relying on posixy $() will cause problems for |
# FIXME: Relying on posixy $() will cause problems for |
1585 |
# cross-compilation, but unfortunately the echo tests do not |
# cross-compilation, but unfortunately the echo tests do not |
1586 |
# yet detect zsh echo's removal of \ escapes. |
# yet detect zsh echo's removal of \ escapes. Also zsh mangles |
1587 |
archive_cmds='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linkopts -install_name $rpath/$soname $(test -n "$verstring" -a x$verstring != x0.0 && echo $verstring)' |
# `"' quotes if we put them in here... so don't! |
1588 |
|
archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)' |
1589 |
# We need to add '_' to the symbols in $export_symbols first |
# We need to add '_' to the symbols in $export_symbols first |
1590 |
#archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols' |
#archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols' |
1591 |
hardcode_direct=yes |
hardcode_direct=yes |
1637 |
export_dynamic_flag_spec='${wl}-E' |
export_dynamic_flag_spec='${wl}-E' |
1638 |
;; |
;; |
1639 |
|
|
1640 |
irix5* | irix6*) |
irix5* | irix6* | nonstopux*) |
1641 |
if test "$GCC" = yes; then |
if test "$GCC" = yes; then |
1642 |
archive_cmds='$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' |
archive_cmds='$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' |
1643 |
|
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
1644 |
else |
else |
1645 |
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
1646 |
|
hardcode_libdir_flag_spec='-rpath $libdir' |
1647 |
fi |
fi |
|
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|
1648 |
hardcode_libdir_separator=: |
hardcode_libdir_separator=: |
1649 |
link_all_deplibs=yes |
link_all_deplibs=yes |
1650 |
;; |
;; |
1661 |
;; |
;; |
1662 |
|
|
1663 |
newsos6) |
newsos6) |
1664 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts' |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
1665 |
hardcode_direct=yes |
hardcode_direct=yes |
1666 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
1667 |
hardcode_libdir_separator=: |
hardcode_libdir_separator=: |
1669 |
;; |
;; |
1670 |
|
|
1671 |
openbsd*) |
openbsd*) |
|
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
|
hardcode_libdir_flag_spec='-R$libdir' |
|
1672 |
hardcode_direct=yes |
hardcode_direct=yes |
1673 |
hardcode_shlibpath_var=no |
hardcode_shlibpath_var=no |
1674 |
|
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
1675 |
|
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
1676 |
|
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
1677 |
|
export_dynamic_flag_spec='${wl}-E' |
1678 |
|
else |
1679 |
|
case "$host_os" in |
1680 |
|
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) |
1681 |
|
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
1682 |
|
hardcode_libdir_flag_spec='-R$libdir' |
1683 |
|
;; |
1684 |
|
*) |
1685 |
|
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
1686 |
|
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
1687 |
|
;; |
1688 |
|
esac |
1689 |
|
fi |
1690 |
;; |
;; |
1691 |
|
|
1692 |
os2*) |
os2*) |
1731 |
hardcode_shlibpath_var=no |
hardcode_shlibpath_var=no |
1732 |
runpath_var=LD_RUN_PATH |
runpath_var=LD_RUN_PATH |
1733 |
hardcode_runpath_var=yes |
hardcode_runpath_var=yes |
1734 |
|
export_dynamic_flag_spec='${wl}-Bexport' |
1735 |
;; |
;; |
1736 |
|
|
1737 |
solaris*) |
solaris*) |
1738 |
|
# gcc --version < 3.0 without binutils cannot create self contained |
1739 |
|
# shared libraries reliably, requiring libgcc.a to resolve some of |
1740 |
|
# the object symbols generated in some cases. Libraries that use |
1741 |
|
# assert need libgcc.a to resolve __eprintf, for example. Linking |
1742 |
|
# a copy of libgcc.a into every shared library to guarantee resolving |
1743 |
|
# such symbols causes other problems: According to Tim Van Holder |
1744 |
|
# <tim.van.holder@pandora.be>, C++ libraries end up with a separate |
1745 |
|
# (to the application) exception stack for one thing. |
1746 |
no_undefined_flag=' -z defs' |
no_undefined_flag=' -z defs' |
1747 |
|
if test "$GCC" = yes; then |
1748 |
|
case `$CC --version 2>/dev/null` in |
1749 |
|
[[12]].*) |
1750 |
|
cat <<EOF 1>&2 |
1751 |
|
|
1752 |
|
*** Warning: Releases of GCC earlier than version 3.0 cannot reliably |
1753 |
|
*** create self contained shared libraries on Solaris systems, without |
1754 |
|
*** introducing a dependency on libgcc.a. Therefore, libtool is disabling |
1755 |
|
*** -no-undefined support, which will at least allow you to build shared |
1756 |
|
*** libraries. However, you may find that when you link such libraries |
1757 |
|
*** into an application without using GCC, you have to manually add |
1758 |
|
*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to |
1759 |
|
*** upgrade to a newer version of GCC. Another option is to rebuild your |
1760 |
|
*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer. |
1761 |
|
|
1762 |
|
EOF |
1763 |
|
no_undefined_flag= |
1764 |
|
;; |
1765 |
|
esac |
1766 |
|
fi |
1767 |
# $CC -shared without GNU ld will not create a library from C++ |
# $CC -shared without GNU ld will not create a library from C++ |
1768 |
# object files and a static libstdc++, better avoid it by now |
# object files and a static libstdc++, better avoid it by now |
1769 |
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
1772 |
hardcode_libdir_flag_spec='-R$libdir' |
hardcode_libdir_flag_spec='-R$libdir' |
1773 |
hardcode_shlibpath_var=no |
hardcode_shlibpath_var=no |
1774 |
case $host_os in |
case $host_os in |
1775 |
[solaris2.[0-5] | solaris2.[0-5].*]) ;; |
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; |
1776 |
*) # Supported since Solaris 2.6 (maybe 2.5.1?) |
*) # Supported since Solaris 2.6 (maybe 2.5.1?) |
1777 |
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
1778 |
esac |
esac |
1794 |
;; |
;; |
1795 |
|
|
1796 |
sysv4) |
sysv4) |
1797 |
if test "x$host_vendor" = xsno; then |
case $host_vendor in |
1798 |
archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts' |
sni) |
1799 |
hardcode_direct=yes # is this really true??? |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
1800 |
else |
hardcode_direct=yes # is this really true??? |
1801 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
;; |
1802 |
hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
siemens) |
1803 |
fi |
## LD is ld it makes a PLAMLIB |
1804 |
|
## CC just makes a GrossModule. |
1805 |
|
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
1806 |
|
reload_cmds='$CC -r -o $output$reload_objs' |
1807 |
|
hardcode_direct=no |
1808 |
|
;; |
1809 |
|
motorola) |
1810 |
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
1811 |
|
hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
1812 |
|
;; |
1813 |
|
esac |
1814 |
runpath_var='LD_RUN_PATH' |
runpath_var='LD_RUN_PATH' |
1815 |
hardcode_shlibpath_var=no |
hardcode_shlibpath_var=no |
1816 |
;; |
;; |
1963 |
|
|
1964 |
aix4* | aix5*) |
aix4* | aix5*) |
1965 |
version_type=linux |
version_type=linux |
1966 |
|
need_lib_prefix=no |
1967 |
|
need_version=no |
1968 |
|
hardcode_into_libs=yes |
1969 |
if test "$host_cpu" = ia64; then |
if test "$host_cpu" = ia64; then |
1970 |
# AIX 5 supports IA64 |
# AIX 5 supports IA64 |
1971 |
library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' |
library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' |
1977 |
# depend on `.', always an invalid library. This was fixed in |
# depend on `.', always an invalid library. This was fixed in |
1978 |
# development snapshots of GCC prior to 3.0. |
# development snapshots of GCC prior to 3.0. |
1979 |
case $host_os in |
case $host_os in |
1980 |
[ aix4 | aix4.[01] | aix4.[01].*)] |
aix4 | aix4.[[01]] | aix4.[[01]].*) |
1981 |
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
1982 |
echo ' yes ' |
echo ' yes ' |
1983 |
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
1984 |
: |
: |
1985 |
else |
else |
1986 |
can_build_shared=no |
can_build_shared=no |
1987 |
fi |
fi |
1988 |
;; |
;; |
1989 |
esac |
esac |
1990 |
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
# AIX (on Power*) has no versioning support, so currently we can |
1991 |
# soname into executable. Probably we can add versioning support to |
# not hardcode correct soname into executable. Probably we can |
1992 |
# collect2, so additional links can be useful in future. |
# add versioning support to collect2, so additional links can |
1993 |
|
# be useful in future. |
1994 |
if test "$aix_use_runtimelinking" = yes; then |
if test "$aix_use_runtimelinking" = yes; then |
1995 |
# If using run time linking (on AIX 4.2 or later) use lib<name>.so instead of |
# If using run time linking (on AIX 4.2 or later) use lib<name>.so |
1996 |
# lib<name>.a to let people know that these are not typical AIX shared libraries. |
# instead of lib<name>.a to let people know that these are not |
1997 |
|
# typical AIX shared libraries. |
1998 |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
1999 |
else |
else |
2000 |
# We preserve .a as extension for shared libraries through AIX4.2 |
# We preserve .a as extension for shared libraries through AIX4.2 |
2003 |
soname_spec='${libname}${release}.so$major' |
soname_spec='${libname}${release}.so$major' |
2004 |
fi |
fi |
2005 |
shlibpath_var=LIBPATH |
shlibpath_var=LIBPATH |
|
deplibs_check_method=pass_all |
|
2006 |
fi |
fi |
2007 |
|
hardcode_into_libs=yes |
2008 |
;; |
;; |
2009 |
|
|
2010 |
amigaos*) |
amigaos*) |
2011 |
library_names_spec='$libname.ixlibrary $libname.a' |
library_names_spec='$libname.ixlibrary $libname.a' |
2012 |
# Create ${libname}_ixlibrary.a entries in /sys/libs. |
# Create ${libname}_ixlibrary.a entries in /sys/libs. |
2013 |
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' |
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' |
2014 |
;; |
;; |
2015 |
|
|
2016 |
beos*) |
beos*) |
2041 |
case $GCC,$host_os in |
case $GCC,$host_os in |
2042 |
yes,cygwin*) |
yes,cygwin*) |
2043 |
library_names_spec='$libname.dll.a' |
library_names_spec='$libname.dll.a' |
2044 |
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | [sed -e 's/[.]/-/g']`${versuffix}.dll' |
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll' |
2045 |
postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~ |
postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~ |
2046 |
dldir=$destdir/`dirname \$dlpath`~ |
dldir=$destdir/`dirname \$dlpath`~ |
2047 |
test -d \$dldir || mkdir -p \$dldir~ |
test -d \$dldir || mkdir -p \$dldir~ |
2051 |
$rm \$dlpath' |
$rm \$dlpath' |
2052 |
;; |
;; |
2053 |
yes,mingw*) |
yes,mingw*) |
2054 |
library_names_spec='${libname}`echo ${release} | [sed -e 's/[.]/-/g']`${versuffix}.dll' |
library_names_spec='${libname}`echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll' |
2055 |
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"` |
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"` |
2056 |
;; |
;; |
2057 |
yes,pw32*) |
yes,pw32*) |
2058 |
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' |
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' |
2059 |
;; |
;; |
2060 |
*) |
*) |
2061 |
library_names_spec='${libname}`echo ${release} | [sed -e 's/[.]/-/g']`${versuffix}.dll $libname.lib' |
library_names_spec='${libname}`echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll $libname.lib' |
2062 |
;; |
;; |
2063 |
esac |
esac |
2064 |
dynamic_linker='Win32 ld.exe' |
dynamic_linker='Win32 ld.exe' |
2135 |
postinstall_cmds='chmod 555 $lib' |
postinstall_cmds='chmod 555 $lib' |
2136 |
;; |
;; |
2137 |
|
|
2138 |
irix5* | irix6*) |
irix5* | irix6* | nonstopux*) |
2139 |
version_type=irix |
case $host_os in |
2140 |
|
nonstopux*) version_type=nonstopux ;; |
2141 |
|
*) version_type=irix ;; |
2142 |
|
esac |
2143 |
need_lib_prefix=no |
need_lib_prefix=no |
2144 |
need_version=no |
need_version=no |
2145 |
soname_spec='${libname}${release}.so$major' |
soname_spec='${libname}${release}.so$major' |
2146 |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' |
2147 |
case $host_os in |
case $host_os in |
2148 |
irix5*) |
irix5* | nonstopux*) |
2149 |
libsuff= shlibsuff= |
libsuff= shlibsuff= |
2150 |
;; |
;; |
2151 |
*) |
*) |
2190 |
# people can always --disable-shared, the test was removed, and we |
# people can always --disable-shared, the test was removed, and we |
2191 |
# assume the GNU/Linux dynamic linker is in use. |
# assume the GNU/Linux dynamic linker is in use. |
2192 |
dynamic_linker='GNU/Linux ld.so' |
dynamic_linker='GNU/Linux ld.so' |
2193 |
|
|
2194 |
|
# Find out which ABI we are using (multilib Linux x86_64 hack). |
2195 |
|
libsuff= |
2196 |
|
case "$host_cpu" in |
2197 |
|
x86_64*|s390x*) |
2198 |
|
echo '[#]line __oline__ "configure"' > conftest.$ac_ext |
2199 |
|
if AC_TRY_EVAL(ac_compile); then |
2200 |
|
case `/usr/bin/file conftest.$ac_objext` in |
2201 |
|
*64-bit*) |
2202 |
|
libsuff=64 |
2203 |
|
;; |
2204 |
|
esac |
2205 |
|
fi |
2206 |
|
rm -rf conftest* |
2207 |
|
;; |
2208 |
|
*) |
2209 |
|
;; |
2210 |
|
esac |
2211 |
|
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" |
2212 |
|
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
2213 |
;; |
;; |
2214 |
|
|
2215 |
netbsd*) |
netbsd*) |
2239 |
|
|
2240 |
openbsd*) |
openbsd*) |
2241 |
version_type=sunos |
version_type=sunos |
2242 |
if test "$with_gnu_ld" = yes; then |
need_lib_prefix=no |
2243 |
need_lib_prefix=no |
need_version=no |
2244 |
need_version=no |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
2245 |
|
case "$host_os" in |
2246 |
|
openbsd2.[[89]] | openbsd2.[[89]].*) |
2247 |
|
shlibpath_overrides_runpath=no |
2248 |
|
;; |
2249 |
|
*) |
2250 |
|
shlibpath_overrides_runpath=yes |
2251 |
|
;; |
2252 |
|
esac |
2253 |
|
else |
2254 |
|
shlibpath_overrides_runpath=yes |
2255 |
fi |
fi |
2256 |
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
2257 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
2269 |
osf3* | osf4* | osf5*) |
osf3* | osf4* | osf5*) |
2270 |
version_type=osf |
version_type=osf |
2271 |
need_version=no |
need_version=no |
2272 |
soname_spec='${libname}${release}.so' |
soname_spec='${libname}${release}.so$major' |
2273 |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
2274 |
shlibpath_var=LD_LIBRARY_PATH |
shlibpath_var=LD_LIBRARY_PATH |
2275 |
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
2276 |
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
2277 |
|
hardcode_into_libs=yes |
2278 |
;; |
;; |
2279 |
|
|
2280 |
sco3.2v5*) |
sco3.2v5*) |
2317 |
case $host_vendor in |
case $host_vendor in |
2318 |
sni) |
sni) |
2319 |
shlibpath_overrides_runpath=no |
shlibpath_overrides_runpath=no |
2320 |
|
need_lib_prefix=no |
2321 |
|
export_dynamic_flag_spec='${wl}-Blargedynsym' |
2322 |
|
runpath_var=LD_RUN_PATH |
2323 |
|
;; |
2324 |
|
siemens) |
2325 |
|
need_lib_prefix=no |
2326 |
;; |
;; |
2327 |
motorola) |
motorola) |
2328 |
need_lib_prefix=no |
need_lib_prefix=no |
2375 |
## |
## |
2376 |
## END FIXME |
## END FIXME |
2377 |
|
|
2378 |
|
## FIXME: this should be a separate macro |
2379 |
|
## |
2380 |
|
AC_MSG_CHECKING([whether to build shared libraries]) |
2381 |
|
test "$can_build_shared" = "no" && enable_shared=no |
2382 |
|
|
2383 |
|
# On AIX, shared libraries and static libraries use the same namespace, and |
2384 |
|
# are all built from PIC. |
2385 |
|
case "$host_os" in |
2386 |
|
aix3*) |
2387 |
|
test "$enable_shared" = yes && enable_static=no |
2388 |
|
if test -n "$RANLIB"; then |
2389 |
|
archive_cmds="$archive_cmds~\$RANLIB \$lib" |
2390 |
|
postinstall_cmds='$RANLIB $lib' |
2391 |
|
fi |
2392 |
|
;; |
2393 |
|
|
2394 |
|
aix4*) |
2395 |
|
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
2396 |
|
test "$enable_shared" = yes && enable_static=no |
2397 |
|
fi |
2398 |
|
;; |
2399 |
|
esac |
2400 |
|
AC_MSG_RESULT([$enable_shared]) |
2401 |
|
## |
2402 |
|
## END FIXME |
2403 |
|
|
2404 |
|
## FIXME: this should be a separate macro |
2405 |
|
## |
2406 |
|
AC_MSG_CHECKING([whether to build static libraries]) |
2407 |
|
# Make sure either enable_shared or enable_static is yes. |
2408 |
|
test "$enable_shared" = yes || enable_static=yes |
2409 |
|
AC_MSG_RESULT([$enable_static]) |
2410 |
|
## |
2411 |
|
## END FIXME |
2412 |
|
|
2413 |
if test "$hardcode_action" = relink; then |
if test "$hardcode_action" = relink; then |
2414 |
# Fast installation is not supported |
# Fast installation is not supported |
2415 |
enable_fast_install=no |
enable_fast_install=no |
2497 |
# Now quote all the things that may contain metacharacters while being |
# Now quote all the things that may contain metacharacters while being |
2498 |
# careful not to overquote the AC_SUBSTed values. We take copies of the |
# careful not to overquote the AC_SUBSTed values. We take copies of the |
2499 |
# variables and quote the copies for generation of the libtool script. |
# variables and quote the copies for generation of the libtool script. |
2500 |
for var in echo old_CC old_CFLAGS \ |
for var in echo old_CC old_CFLAGS SED \ |
2501 |
AR AR_FLAGS CC LD LN_S NM SHELL \ |
AR AR_FLAGS CC LD LN_S NM SHELL \ |
2502 |
reload_flag reload_cmds wl \ |
reload_flag reload_cmds wl \ |
2503 |
pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \ |
pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \ |
2509 |
old_striplib striplib file_magic_cmd export_symbols_cmds \ |
old_striplib striplib file_magic_cmd export_symbols_cmds \ |
2510 |
deplibs_check_method allow_undefined_flag no_undefined_flag \ |
deplibs_check_method allow_undefined_flag no_undefined_flag \ |
2511 |
finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \ |
finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \ |
2512 |
|
global_symbol_to_c_name_address \ |
2513 |
hardcode_libdir_flag_spec hardcode_libdir_separator \ |
hardcode_libdir_flag_spec hardcode_libdir_separator \ |
2514 |
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
2515 |
compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do |
compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do |
2559 |
# configuration script generated by Autoconf, you may include it under |
# configuration script generated by Autoconf, you may include it under |
2560 |
# the same distribution terms that you use for the rest of that program. |
# the same distribution terms that you use for the rest of that program. |
2561 |
|
|
2562 |
|
# A sed that does not truncate output. |
2563 |
|
SED=$lt_SED |
2564 |
|
|
2565 |
# Sed that helps us avoid accidentally triggering echo(1) options like -n. |
# Sed that helps us avoid accidentally triggering echo(1) options like -n. |
2566 |
Xsed="sed -e s/^X//" |
Xsed="${SED} -e s/^X//" |
2567 |
|
|
2568 |
# The HP-UX ksh and POSIX shell print the target directory to stdout |
# The HP-UX ksh and POSIX shell print the target directory to stdout |
2569 |
# if CDPATH is set. |
# if CDPATH is set. |
2579 |
# Whether or not to build shared libraries. |
# Whether or not to build shared libraries. |
2580 |
build_libtool_libs=$enable_shared |
build_libtool_libs=$enable_shared |
2581 |
|
|
|
# Whether or not to add -lc for building shared libraries. |
|
|
build_libtool_need_lc=$need_lc |
|
|
|
|
2582 |
# Whether or not to build static libraries. |
# Whether or not to build static libraries. |
2583 |
build_old_libs=$enable_static |
build_old_libs=$enable_static |
2584 |
|
|
2585 |
|
# Whether or not to add -lc for building shared libraries. |
2586 |
|
build_libtool_need_lc=$need_lc |
2587 |
|
|
2588 |
# Whether or not to optimize for fast installation. |
# Whether or not to optimize for fast installation. |
2589 |
fast_install=$enable_fast_install |
fast_install=$enable_fast_install |
2590 |
|
|
2750 |
# Transform the output of nm in a proper C declaration |
# Transform the output of nm in a proper C declaration |
2751 |
global_symbol_to_cdecl=$lt_global_symbol_to_cdecl |
global_symbol_to_cdecl=$lt_global_symbol_to_cdecl |
2752 |
|
|
2753 |
|
# Transform the output of nm in a C name address pair |
2754 |
|
global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address |
2755 |
|
|
2756 |
# This is the shared library runtime path variable. |
# This is the shared library runtime path variable. |
2757 |
runpath_var=$runpath_var |
runpath_var=$runpath_var |
2758 |
|
|
2954 |
# |
# |
2955 |
# dll = open(filename, O_RDONLY|O_BINARY); |
# dll = open(filename, O_RDONLY|O_BINARY); |
2956 |
# if (dll < 1) |
# if (dll < 1) |
2957 |
# return 1; |
# return 1; |
2958 |
# |
# |
2959 |
# dll_name = filename; |
# dll_name = filename; |
2960 |
# |
# |
2961 |
# for (i=0; filename[i]; i++) |
# for (i=0; filename[i]; i++) |
2962 |
# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':') |
# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':') |
2963 |
# dll_name = filename + i +1; |
# dll_name = filename + i +1; |
2964 |
# |
# |
2965 |
# pe_header_offset = pe_get32 (dll, 0x3c); |
# pe_header_offset = pe_get32 (dll, 0x3c); |
2966 |
# opthdr_ofs = pe_header_offset + 4 + 20; |
# opthdr_ofs = pe_header_offset + 4 + 20; |
2967 |
# num_entries = pe_get32 (dll, opthdr_ofs + 92); |
# num_entries = pe_get32 (dll, opthdr_ofs + 92); |
2968 |
# |
# |
2969 |
# if (num_entries < 1) /* no exports */ |
# if (num_entries < 1) /* no exports */ |
2970 |
# return 1; |
# return 1; |
2971 |
# |
# |
2972 |
# export_rva = pe_get32 (dll, opthdr_ofs + 96); |
# export_rva = pe_get32 (dll, opthdr_ofs + 96); |
2973 |
# export_size = pe_get32 (dll, opthdr_ofs + 100); |
# export_size = pe_get32 (dll, opthdr_ofs + 100); |
2974 |
# nsections = pe_get16 (dll, pe_header_offset + 4 +2); |
# nsections = pe_get16 (dll, pe_header_offset + 4 +2); |
2975 |
# secptr = (pe_header_offset + 4 + 20 + |
# secptr = (pe_header_offset + 4 + 20 + |
2976 |
# pe_get16 (dll, pe_header_offset + 4 + 16)); |
# pe_get16 (dll, pe_header_offset + 4 + 16)); |
2977 |
# |
# |
2978 |
# expptr = 0; |
# expptr = 0; |
2979 |
# for (i = 0; i < nsections; i++) |
# for (i = 0; i < nsections; i++) |
2980 |
# { |
# { |
2981 |
# char sname[8]; |
# char sname[8]; |
2982 |
# unsigned long secptr1 = secptr + 40 * i; |
# unsigned long secptr1 = secptr + 40 * i; |
2983 |
# unsigned long vaddr = pe_get32 (dll, secptr1 + 12); |
# unsigned long vaddr = pe_get32 (dll, secptr1 + 12); |
2984 |
# unsigned long vsize = pe_get32 (dll, secptr1 + 16); |
# unsigned long vsize = pe_get32 (dll, secptr1 + 16); |
2985 |
# unsigned long fptr = pe_get32 (dll, secptr1 + 20); |
# unsigned long fptr = pe_get32 (dll, secptr1 + 20); |
2986 |
# lseek(dll, secptr1, SEEK_SET); |
# lseek(dll, secptr1, SEEK_SET); |
2987 |
# read(dll, sname, 8); |
# read(dll, sname, 8); |
2988 |
# if (vaddr <= export_rva && vaddr+vsize > export_rva) |
# if (vaddr <= export_rva && vaddr+vsize > export_rva) |
2989 |
# { |
# { |
2990 |
# expptr = fptr + (export_rva - vaddr); |
# expptr = fptr + (export_rva - vaddr); |
2991 |
# if (export_rva + export_size > vaddr + vsize) |
# if (export_rva + export_size > vaddr + vsize) |
2992 |
# export_size = vsize - (export_rva - vaddr); |
# export_size = vsize - (export_rva - vaddr); |
2993 |
# break; |
# break; |
2994 |
# } |
# } |
2995 |
# } |
# } |
2996 |
# |
# |
2997 |
# expdata = (unsigned char*)malloc(export_size); |
# expdata = (unsigned char*)malloc(export_size); |
3005 |
# printf ("EXPORTS\n"); |
# printf ("EXPORTS\n"); |
3006 |
# for (i = 0; i<nexp; i++) |
# for (i = 0; i<nexp; i++) |
3007 |
# { |
# { |
3008 |
# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4); |
# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4); |
3009 |
# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i); |
# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i); |
3010 |
# } |
# } |
3011 |
# |
# |
3012 |
# return 0; |
# return 0; |
3055 |
*) |
*) |
3056 |
enable_shared=no |
enable_shared=no |
3057 |
# Look at the argument we got. We use all the common list separators. |
# Look at the argument we got. We use all the common list separators. |
3058 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
3059 |
for pkg in $enableval; do |
for pkg in $enableval; do |
3060 |
if test "X$pkg" = "X$p"; then |
if test "X$pkg" = "X$p"; then |
3061 |
enable_shared=yes |
enable_shared=yes |
3089 |
*) |
*) |
3090 |
enable_static=no |
enable_static=no |
3091 |
# Look at the argument we got. We use all the common list separators. |
# Look at the argument we got. We use all the common list separators. |
3092 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
3093 |
for pkg in $enableval; do |
for pkg in $enableval; do |
3094 |
if test "X$pkg" = "X$p"; then |
if test "X$pkg" = "X$p"; then |
3095 |
enable_static=yes |
enable_static=yes |
3124 |
*) |
*) |
3125 |
enable_fast_install=no |
enable_fast_install=no |
3126 |
# Look at the argument we got. We use all the common list separators. |
# Look at the argument we got. We use all the common list separators. |
3127 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
3128 |
for pkg in $enableval; do |
for pkg in $enableval; do |
3129 |
if test "X$pkg" = "X$p"; then |
if test "X$pkg" = "X$p"; then |
3130 |
enable_fast_install=yes |
enable_fast_install=yes |
3234 |
AC_REQUIRE([AC_PROG_CC])dnl |
AC_REQUIRE([AC_PROG_CC])dnl |
3235 |
AC_REQUIRE([AC_CANONICAL_HOST])dnl |
AC_REQUIRE([AC_CANONICAL_HOST])dnl |
3236 |
AC_REQUIRE([AC_CANONICAL_BUILD])dnl |
AC_REQUIRE([AC_CANONICAL_BUILD])dnl |
3237 |
|
AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl |
3238 |
ac_prog=ld |
ac_prog=ld |
3239 |
if test "$GCC" = yes; then |
if test "$GCC" = yes; then |
3240 |
# Check if gcc -print-prog-name=ld gives a path. |
# Check if gcc -print-prog-name=ld gives a path. |
3248 |
esac |
esac |
3249 |
case $ac_prog in |
case $ac_prog in |
3250 |
# Accept absolute paths. |
# Accept absolute paths. |
3251 |
[[\\/]* | [A-Za-z]:[\\/]*)] |
[[\\/]]* | [[A-Za-z]]:[[\\/]]*) |
3252 |
[re_direlt='/[^/][^/]*/\.\./'] |
re_direlt='/[[^/]][[^/]]*/\.\./' |
3253 |
# Canonicalize the path of ld |
# Canonicalize the path of ld |
3254 |
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
3255 |
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
3273 |
fi |
fi |
3274 |
AC_CACHE_VAL(lt_cv_path_LD, |
AC_CACHE_VAL(lt_cv_path_LD, |
3275 |
[if test -z "$LD"; then |
[if test -z "$LD"; then |
3276 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
3277 |
for ac_dir in $PATH; do |
for ac_dir in $PATH; do |
3278 |
test -z "$ac_dir" && ac_dir=. |
test -z "$ac_dir" && ac_dir=. |
3279 |
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
3326 |
# AC_DEPLIBS_CHECK_METHOD - how to check for library dependencies |
# AC_DEPLIBS_CHECK_METHOD - how to check for library dependencies |
3327 |
# -- PORTME fill in with the dynamic library characteristics |
# -- PORTME fill in with the dynamic library characteristics |
3328 |
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD], |
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD], |
3329 |
[AC_CACHE_CHECK([how to recognise dependant libraries], |
[AC_CACHE_CHECK([how to recognise dependent libraries], |
3330 |
lt_cv_deplibs_check_method, |
lt_cv_deplibs_check_method, |
3331 |
[lt_cv_file_magic_cmd='$MAGIC_CMD' |
[lt_cv_file_magic_cmd='$MAGIC_CMD' |
3332 |
lt_cv_file_magic_test_file= |
lt_cv_file_magic_test_file= |
3337 |
# `unknown' -- same as none, but documents that we really don't know. |
# `unknown' -- same as none, but documents that we really don't know. |
3338 |
# 'pass_all' -- all dependencies passed with no checks. |
# 'pass_all' -- all dependencies passed with no checks. |
3339 |
# 'test_compile' -- check by making test program. |
# 'test_compile' -- check by making test program. |
3340 |
# ['file_magic [regex]'] -- check by looking for files in library path |
# 'file_magic [[regex]]' -- check by looking for files in library path |
3341 |
# which responds to the $file_magic_cmd with a given egrep regex. |
# which responds to the $file_magic_cmd with a given egrep regex. |
3342 |
# If you have `file' or equivalent on your system and you're not sure |
# If you have `file' or equivalent on your system and you're not sure |
3343 |
# whether `pass_all' will *always* work, you probably want this one. |
# whether `pass_all' will *always* work, you probably want this one. |
3352 |
;; |
;; |
3353 |
|
|
3354 |
bsdi4*) |
bsdi4*) |
3355 |
[lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'] |
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' |
3356 |
lt_cv_file_magic_cmd='/usr/bin/file -L' |
lt_cv_file_magic_cmd='/usr/bin/file -L' |
3357 |
lt_cv_file_magic_test_file=/shlib/libc.so |
lt_cv_file_magic_test_file=/shlib/libc.so |
3358 |
;; |
;; |
3366 |
lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' |
lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' |
3367 |
lt_cv_file_magic_cmd='/usr/bin/file -L' |
lt_cv_file_magic_cmd='/usr/bin/file -L' |
3368 |
case "$host_os" in |
case "$host_os" in |
3369 |
rhapsody* | darwin1.[012]) |
rhapsody* | darwin1.[[012]]) |
3370 |
lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1` |
lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1` |
3371 |
;; |
;; |
3372 |
*) # Darwin 1.3 on |
*) # Darwin 1.3 on |
3381 |
i*86 ) |
i*86 ) |
3382 |
# Not sure whether the presence of OpenBSD here was a mistake. |
# Not sure whether the presence of OpenBSD here was a mistake. |
3383 |
# Let's accept both of them until this is cleared up. |
# Let's accept both of them until this is cleared up. |
3384 |
[lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'] |
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library' |
3385 |
lt_cv_file_magic_cmd=/usr/bin/file |
lt_cv_file_magic_cmd=/usr/bin/file |
3386 |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
3387 |
;; |
;; |
3396 |
;; |
;; |
3397 |
|
|
3398 |
hpux10.20*|hpux11*) |
hpux10.20*|hpux11*) |
3399 |
[lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'] |
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' |
3400 |
lt_cv_file_magic_cmd=/usr/bin/file |
lt_cv_file_magic_cmd=/usr/bin/file |
3401 |
lt_cv_file_magic_test_file=/usr/lib/libc.sl |
lt_cv_file_magic_test_file=/usr/lib/libc.sl |
3402 |
;; |
;; |
3403 |
|
|
3404 |
irix5* | irix6*) |
irix5* | irix6* | nonstopux*) |
3405 |
case $host_os in |
case $host_os in |
3406 |
irix5*) |
irix5* | nonstopux*) |
3407 |
# this will be overridden with pass_all, but let us keep it just in case |
# this will be overridden with pass_all, but let us keep it just in case |
3408 |
lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" |
lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" |
3409 |
;; |
;; |
3415 |
*) libmagic=never-match;; |
*) libmagic=never-match;; |
3416 |
esac |
esac |
3417 |
# this will be overridden with pass_all, but let us keep it just in case |
# this will be overridden with pass_all, but let us keep it just in case |
3418 |
[lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"] |
lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[[1234]] dynamic lib MIPS - version 1" |
3419 |
;; |
;; |
3420 |
esac |
esac |
3421 |
lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` |
lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` |
3425 |
# This must be Linux ELF. |
# This must be Linux ELF. |
3426 |
linux-gnu*) |
linux-gnu*) |
3427 |
case $host_cpu in |
case $host_cpu in |
3428 |
alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* | s390* ) |
alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | s390* | x86_64*) |
3429 |
lt_cv_deplibs_check_method=pass_all ;; |
lt_cv_deplibs_check_method=pass_all ;; |
3430 |
*) |
*) |
3431 |
# glibc up to 2.1.1 does not perform some relocations on ARM |
# glibc up to 2.1.1 does not perform some relocations on ARM |
3432 |
[lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;] |
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;; |
3433 |
esac |
esac |
3434 |
lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
3435 |
;; |
;; |
3436 |
|
|
3437 |
netbsd*) |
netbsd*) |
3438 |
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
3439 |
[lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'] |
lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so\.[[0-9]]+\.[[0-9]]+$' |
3440 |
else |
else |
3441 |
[lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'] |
lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so$' |
3442 |
fi |
fi |
3443 |
;; |
;; |
3444 |
|
|
3445 |
newos6*) |
newos6*) |
3446 |
[lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'] |
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' |
3447 |
lt_cv_file_magic_cmd=/usr/bin/file |
lt_cv_file_magic_cmd=/usr/bin/file |
3448 |
lt_cv_file_magic_test_file=/usr/lib/libnls.so |
lt_cv_file_magic_test_file=/usr/lib/libnls.so |
3449 |
;; |
;; |
3450 |
|
|
3451 |
|
openbsd*) |
3452 |
|
lt_cv_file_magic_cmd=/usr/bin/file |
3453 |
|
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
3454 |
|
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
3455 |
|
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object' |
3456 |
|
else |
3457 |
|
lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' |
3458 |
|
fi |
3459 |
|
;; |
3460 |
|
|
3461 |
osf3* | osf4* | osf5*) |
osf3* | osf4* | osf5*) |
3462 |
# this will be overridden with pass_all, but let us keep it just in case |
# this will be overridden with pass_all, but let us keep it just in case |
3463 |
lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' |
lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' |
3474 |
lt_cv_file_magic_test_file=/lib/libc.so |
lt_cv_file_magic_test_file=/lib/libc.so |
3475 |
;; |
;; |
3476 |
|
|
3477 |
[sysv5uw[78]* | sysv4*uw2*)] |
sysv5uw[[78]]* | sysv4*uw2*) |
3478 |
lt_cv_deplibs_check_method=pass_all |
lt_cv_deplibs_check_method=pass_all |
3479 |
;; |
;; |
3480 |
|
|
3481 |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
3482 |
case $host_vendor in |
case $host_vendor in |
3483 |
motorola) |
motorola) |
3484 |
[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]'] |
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]]' |
3485 |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
3486 |
;; |
;; |
3487 |
ncr) |
ncr) |
3489 |
;; |
;; |
3490 |
sequent) |
sequent) |
3491 |
lt_cv_file_magic_cmd='/bin/file' |
lt_cv_file_magic_cmd='/bin/file' |
3492 |
[lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'] |
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' |
3493 |
;; |
;; |
3494 |
sni) |
sni) |
3495 |
lt_cv_file_magic_cmd='/bin/file' |
lt_cv_file_magic_cmd='/bin/file' |
3496 |
[lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"] |
lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" |
3497 |
lt_cv_file_magic_test_file=/lib/libc.so |
lt_cv_file_magic_test_file=/lib/libc.so |
3498 |
;; |
;; |
3499 |
|
siemens) |
3500 |
|
lt_cv_deplibs_check_method=pass_all |
3501 |
|
;; |
3502 |
esac |
esac |
3503 |
;; |
;; |
3504 |
esac |
esac |
3510 |
|
|
3511 |
# AC_PROG_NM - find the path to a BSD-compatible name lister |
# AC_PROG_NM - find the path to a BSD-compatible name lister |
3512 |
AC_DEFUN([AC_PROG_NM], |
AC_DEFUN([AC_PROG_NM], |
3513 |
[AC_MSG_CHECKING([for BSD-compatible nm]) |
[AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl |
3514 |
|
AC_MSG_CHECKING([for BSD-compatible nm]) |
3515 |
AC_CACHE_VAL(lt_cv_path_NM, |
AC_CACHE_VAL(lt_cv_path_NM, |
3516 |
[if test -n "$NM"; then |
[if test -n "$NM"; then |
3517 |
# Let the user override the test. |
# Let the user override the test. |
3518 |
lt_cv_path_NM="$NM" |
lt_cv_path_NM="$NM" |
3519 |
else |
else |
3520 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
3521 |
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
3522 |
test -z "$ac_dir" && ac_dir=. |
test -z "$ac_dir" && ac_dir=. |
3523 |
tmp_nm=$ac_dir/${ac_tool_prefix}nm |
tmp_nm=$ac_dir/${ac_tool_prefix}nm |
3564 |
]) |
]) |
3565 |
|
|
3566 |
# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for |
# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for |
3567 |
# the libltdl convenience library and INCLTDL to the include flags for |
# the libltdl convenience library and LTDLINCL to the include flags for |
3568 |
# the libltdl header and adds --enable-ltdl-convenience to the |
# the libltdl header and adds --enable-ltdl-convenience to the |
3569 |
# configure arguments. Note that LIBLTDL and INCLTDL are not |
# configure arguments. Note that LIBLTDL and LTDLINCL are not |
3570 |
# AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If DIR is not |
# AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If DIR is not |
3571 |
# provided, it is assumed to be `libltdl'. LIBLTDL will be prefixed |
# provided, it is assumed to be `libltdl'. LIBLTDL will be prefixed |
3572 |
# with '${top_builddir}/' and INCLTDL will be prefixed with |
# with '${top_builddir}/' and LTDLINCL will be prefixed with |
3573 |
# '${top_srcdir}/' (note the single quotes!). If your package is not |
# '${top_srcdir}/' (note the single quotes!). If your package is not |
3574 |
# flat and you're not using automake, define top_builddir and |
# flat and you're not using automake, define top_builddir and |
3575 |
# top_srcdir appropriately in the Makefiles. |
# top_srcdir appropriately in the Makefiles. |
3581 |
ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; |
ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; |
3582 |
esac |
esac |
3583 |
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la |
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la |
3584 |
INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) |
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) |
3585 |
|
# For backwards non-gettext consistent compatibility... |
3586 |
|
INCLTDL="$LTDLINCL" |
3587 |
]) |
]) |
3588 |
|
|
3589 |
# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for |
# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for |
3590 |
# the libltdl installable library and INCLTDL to the include flags for |
# the libltdl installable library and LTDLINCL to the include flags for |
3591 |
# the libltdl header and adds --enable-ltdl-install to the configure |
# the libltdl header and adds --enable-ltdl-install to the configure |
3592 |
# arguments. Note that LIBLTDL and INCLTDL are not AC_SUBSTed, nor is |
# arguments. Note that LIBLTDL and LTDLINCL are not AC_SUBSTed, nor is |
3593 |
# AC_CONFIG_SUBDIRS called. If DIR is not provided and an installed |
# AC_CONFIG_SUBDIRS called. If DIR is not provided and an installed |
3594 |
# libltdl is not found, it is assumed to be `libltdl'. LIBLTDL will |
# libltdl is not found, it is assumed to be `libltdl'. LIBLTDL will |
3595 |
# be prefixed with '${top_builddir}/' and INCLTDL will be prefixed |
# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed |
3596 |
# with '${top_srcdir}/' (note the single quotes!). If your package is |
# with '${top_srcdir}/' (note the single quotes!). If your package is |
3597 |
# not flat and you're not using automake, define top_builddir and |
# not flat and you're not using automake, define top_builddir and |
3598 |
# top_srcdir appropriately in the Makefiles. |
# top_srcdir appropriately in the Makefiles. |
3610 |
if test x"$enable_ltdl_install" = x"yes"; then |
if test x"$enable_ltdl_install" = x"yes"; then |
3611 |
ac_configure_args="$ac_configure_args --enable-ltdl-install" |
ac_configure_args="$ac_configure_args --enable-ltdl-install" |
3612 |
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la |
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la |
3613 |
INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) |
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) |
3614 |
else |
else |
3615 |
ac_configure_args="$ac_configure_args --enable-ltdl-install=no" |
ac_configure_args="$ac_configure_args --enable-ltdl-install=no" |
3616 |
LIBLTDL="-lltdl" |
LIBLTDL="-lltdl" |
3617 |
INCLTDL= |
LTDLINCL= |
3618 |
fi |
fi |
3619 |
|
# For backwards non-gettext consistent compatibility... |
3620 |
|
INCLTDL="$LTDLINCL" |
3621 |
]) |
]) |
3622 |
|
|
3623 |
# old names |
# old names |
3631 |
|
|
3632 |
# This is just to silence aclocal about the macro not being used |
# This is just to silence aclocal about the macro not being used |
3633 |
ifelse([AC_DISABLE_FAST_INSTALL]) |
ifelse([AC_DISABLE_FAST_INSTALL]) |
3634 |
|
|
3635 |
|
############################################################ |
3636 |
|
# NOTE: This macro has been submitted for inclusion into # |
3637 |
|
# GNU Autoconf as AC_PROG_SED. When it is available in # |
3638 |
|
# a released version of Autoconf we should remove this # |
3639 |
|
# macro and use it instead. # |
3640 |
|
############################################################ |
3641 |
|
# LT_AC_PROG_SED |
3642 |
|
# -------------- |
3643 |
|
# Check for a fully-functional sed program, that truncates |
3644 |
|
# as few characters as possible. Prefer GNU sed if found. |
3645 |
|
AC_DEFUN([LT_AC_PROG_SED], |
3646 |
|
[AC_MSG_CHECKING([for a sed that does not truncate output]) |
3647 |
|
AC_CACHE_VAL(lt_cv_path_SED, |
3648 |
|
[# Loop through the user's path and test for sed and gsed. |
3649 |
|
# Then use that list of sed's as ones to test for truncation. |
3650 |
|
as_executable_p="test -f" |
3651 |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3652 |
|
for as_dir in $PATH |
3653 |
|
do |
3654 |
|
IFS=$as_save_IFS |
3655 |
|
test -z "$as_dir" && as_dir=. |
3656 |
|
for ac_prog in sed gsed; do |
3657 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
3658 |
|
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
3659 |
|
_sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext" |
3660 |
|
fi |
3661 |
|
done |
3662 |
|
done |
3663 |
|
done |
3664 |
|
|
3665 |
|
# Create a temporary directory, and hook for its removal unless debugging. |
3666 |
|
$debug || |
3667 |
|
{ |
3668 |
|
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
3669 |
|
trap '{ (exit 1); exit 1; }' 1 2 13 15 |
3670 |
|
} |
3671 |
|
|
3672 |
|
# Create a (secure) tmp directory for tmp files. |
3673 |
|
: ${TMPDIR=/tmp} |
3674 |
|
{ |
3675 |
|
tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` && |
3676 |
|
test -n "$tmp" && test -d "$tmp" |
3677 |
|
} || |
3678 |
|
{ |
3679 |
|
tmp=$TMPDIR/sed$$-$RANDOM |
3680 |
|
(umask 077 && mkdir $tmp) |
3681 |
|
} || |
3682 |
|
{ |
3683 |
|
echo "$me: cannot create a temporary directory in $TMPDIR" >&2 |
3684 |
|
{ (exit 1); exit 1; } |
3685 |
|
} |
3686 |
|
_max=0 |
3687 |
|
_count=0 |
3688 |
|
# Add /usr/xpg4/bin/sed as it is typically found on Solaris |
3689 |
|
# along with /bin/sed that truncates output. |
3690 |
|
for _sed in $_sed_list /usr/xpg4/bin/sed; do |
3691 |
|
test ! -f ${_sed} && break |
3692 |
|
cat /dev/null > "$tmp/sed.in" |
3693 |
|
_count=0 |
3694 |
|
echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in" |
3695 |
|
# Check for GNU sed and select it if it is found. |
3696 |
|
if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then |
3697 |
|
lt_cv_path_SED=${_sed} |
3698 |
|
break |
3699 |
|
fi |
3700 |
|
while true; do |
3701 |
|
cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp" |
3702 |
|
mv "$tmp/sed.tmp" "$tmp/sed.in" |
3703 |
|
cp "$tmp/sed.in" "$tmp/sed.nl" |
3704 |
|
echo >>"$tmp/sed.nl" |
3705 |
|
${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break |
3706 |
|
cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break |
3707 |
|
# 40000 chars as input seems more than enough |
3708 |
|
test $_count -gt 10 && break |
3709 |
|
_count=`expr $_count + 1` |
3710 |
|
if test $_count -gt $_max; then |
3711 |
|
_max=$_count |
3712 |
|
lt_cv_path_SED=$_sed |
3713 |
|
fi |
3714 |
|
done |
3715 |
|
done |
3716 |
|
rm -rf "$tmp" |
3717 |
|
]) |
3718 |
|
if test "X$SED" != "X"; then |
3719 |
|
lt_cv_path_SED=$SED |
3720 |
|
else |
3721 |
|
SED=$lt_cv_path_SED |
3722 |
|
fi |
3723 |
|
AC_MSG_RESULT([$SED]) |
3724 |
|
]) |