Codebase list libmpc / 94c7470
Imported Upstream version 0.1~r475 Sebastian Dröge 8 years ago
153 changed file(s) with 1289 addition(s) and 42396 deletion(s). Raw diff Collapse all Expand all
00 CMAKE_MINIMUM_REQUIRED(VERSION 2.4)
1 cmake_policy(SET CMP0003 NEW)
12 include(TestBigEndian)
23
34 project(libmpc C)
1415 add_definitions(-DFAST_MATH -DCVD_FASTLOG)
1516
1617 if(NOT MSVC)
17 set(CMAKE_C_FLAGS "-O3 -fomit-frame-pointer -pipe")
18 set(CMAKE_C_FLAGS "-O3 -Wall -fomit-frame-pointer -pipe")
1819 endif(NOT MSVC)
1920
2021 add_subdirectory(libmpcdec)
(No changes)
0 default: all
1
2 all:
3 autoreconf -vif
+0
-720
Makefile.in less more
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
6 # This Makefile.in is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 # PARTICULAR PURPOSE.
14
15 @SET_MAKE@
16 VPATH = @srcdir@
17 pkgdatadir = $(datadir)/@PACKAGE@
18 pkgincludedir = $(includedir)/@PACKAGE@
19 pkglibdir = $(libdir)/@PACKAGE@
20 pkglibexecdir = $(libexecdir)/@PACKAGE@
21 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22 install_sh_DATA = $(install_sh) -c -m 644
23 install_sh_PROGRAM = $(install_sh) -c
24 install_sh_SCRIPT = $(install_sh) -c
25 INSTALL_HEADER = $(INSTALL_DATA)
26 transform = $(program_transform_name)
27 NORMAL_INSTALL = :
28 PRE_INSTALL = :
29 POST_INSTALL = :
30 NORMAL_UNINSTALL = :
31 PRE_UNINSTALL = :
32 POST_UNINSTALL = :
33 build_triplet = @build@
34 host_triplet = @host@
35 subdir = .
36 DIST_COMMON = $(am__configure_deps) $(srcdir)/Makefile.am \
37 $(srcdir)/Makefile.in $(top_srcdir)/configure \
38 config/config.guess config/config.sub config/depcomp \
39 config/install-sh config/ltmain.sh config/missing
40 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
41 am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
42 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
43 $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
44 $(top_srcdir)/configure.in
45 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
46 $(ACLOCAL_M4)
47 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
48 configure.lineno config.status.lineno
49 mkinstalldirs = $(install_sh) -d
50 CONFIG_HEADER = $(top_builddir)/include/config.h
51 CONFIG_CLEAN_FILES =
52 CONFIG_CLEAN_VPATH_FILES =
53 SOURCES =
54 DIST_SOURCES =
55 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
56 html-recursive info-recursive install-data-recursive \
57 install-dvi-recursive install-exec-recursive \
58 install-html-recursive install-info-recursive \
59 install-pdf-recursive install-ps-recursive install-recursive \
60 installcheck-recursive installdirs-recursive pdf-recursive \
61 ps-recursive uninstall-recursive
62 RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
63 distclean-recursive maintainer-clean-recursive
64 AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
65 $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
66 distdir dist dist-all distcheck
67 ETAGS = etags
68 CTAGS = ctags
69 DIST_SUBDIRS = include libmpcdec libmpcenc libmpcpsy libwavformat \
70 mpcenc mpc2sv8 mpccut mpcdec wavcmp mpcchap mpcgain
71 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
72 distdir = $(PACKAGE)-$(VERSION)
73 top_distdir = $(distdir)
74 am__remove_distdir = \
75 { test ! -d "$(distdir)" \
76 || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
77 && rm -fr "$(distdir)"; }; }
78 am__relativize = \
79 dir0=`pwd`; \
80 sed_first='s,^\([^/]*\)/.*$$,\1,'; \
81 sed_rest='s,^[^/]*/*,,'; \
82 sed_last='s,^.*/\([^/]*\)$$,\1,'; \
83 sed_butlast='s,/*[^/]*$$,,'; \
84 while test -n "$$dir1"; do \
85 first=`echo "$$dir1" | sed -e "$$sed_first"`; \
86 if test "$$first" != "."; then \
87 if test "$$first" = ".."; then \
88 dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
89 dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
90 else \
91 first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
92 if test "$$first2" = "$$first"; then \
93 dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
94 else \
95 dir2="../$$dir2"; \
96 fi; \
97 dir0="$$dir0"/"$$first"; \
98 fi; \
99 fi; \
100 dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
101 done; \
102 reldir="$$dir2"
103 DIST_ARCHIVES = $(distdir).tar.gz
104 GZIP_ENV = --best
105 distuninstallcheck_listfiles = find . -type f -print
106 distcleancheck_listfiles = find . -type f -print
107 ACLOCAL = @ACLOCAL@
108 AMTAR = @AMTAR@
109 AR = @AR@
110 AS = @AS@
111 AUTOCONF = @AUTOCONF@
112 AUTOHEADER = @AUTOHEADER@
113 AUTOMAKE = @AUTOMAKE@
114 AWK = @AWK@
115 CC = @CC@
116 CCDEPMODE = @CCDEPMODE@
117 CFLAGS = @CFLAGS@
118 CPP = @CPP@
119 CPPFLAGS = @CPPFLAGS@
120 CYGPATH_W = @CYGPATH_W@
121 DEFS = @DEFS@
122 DEPDIR = @DEPDIR@
123 DLLTOOL = @DLLTOOL@
124 DSYMUTIL = @DSYMUTIL@
125 DUMPBIN = @DUMPBIN@
126 ECHO_C = @ECHO_C@
127 ECHO_N = @ECHO_N@
128 ECHO_T = @ECHO_T@
129 EGREP = @EGREP@
130 EXEEXT = @EXEEXT@
131 EXTRALIBS = @EXTRALIBS@
132 FGREP = @FGREP@
133 GREP = @GREP@
134 INSTALL = @INSTALL@
135 INSTALL_DATA = @INSTALL_DATA@
136 INSTALL_PROGRAM = @INSTALL_PROGRAM@
137 INSTALL_SCRIPT = @INSTALL_SCRIPT@
138 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
139 LD = @LD@
140 LDFLAGS = @LDFLAGS@
141 LIBOBJS = @LIBOBJS@
142 LIBS = @LIBS@
143 LIBTOOL = @LIBTOOL@
144 LIPO = @LIPO@
145 LN_S = @LN_S@
146 LTLIBOBJS = @LTLIBOBJS@
147 MAKEINFO = @MAKEINFO@
148 MKDIR_P = @MKDIR_P@
149 NM = @NM@
150 NMEDIT = @NMEDIT@
151 OBJDUMP = @OBJDUMP@
152 OBJEXT = @OBJEXT@
153 OTOOL = @OTOOL@
154 OTOOL64 = @OTOOL64@
155 PACKAGE = @PACKAGE@
156 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
157 PACKAGE_NAME = @PACKAGE_NAME@
158 PACKAGE_STRING = @PACKAGE_STRING@
159 PACKAGE_TARNAME = @PACKAGE_TARNAME@
160 PACKAGE_URL = @PACKAGE_URL@
161 PACKAGE_VERSION = @PACKAGE_VERSION@
162 PATH_SEPARATOR = @PATH_SEPARATOR@
163 RANLIB = @RANLIB@
164 SED = @SED@
165 SET_MAKE = @SET_MAKE@
166 SHELL = @SHELL@
167 STRIP = @STRIP@
168 VERSION = @VERSION@
169 abs_builddir = @abs_builddir@
170 abs_srcdir = @abs_srcdir@
171 abs_top_builddir = @abs_top_builddir@
172 abs_top_srcdir = @abs_top_srcdir@
173 ac_ct_CC = @ac_ct_CC@
174 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
175 am__include = @am__include@
176 am__leading_dot = @am__leading_dot@
177 am__quote = @am__quote@
178 am__tar = @am__tar@
179 am__untar = @am__untar@
180 bindir = @bindir@
181 build = @build@
182 build_alias = @build_alias@
183 build_cpu = @build_cpu@
184 build_os = @build_os@
185 build_vendor = @build_vendor@
186 builddir = @builddir@
187 datadir = @datadir@
188 datarootdir = @datarootdir@
189 docdir = @docdir@
190 dvidir = @dvidir@
191 exec_prefix = @exec_prefix@
192 host = @host@
193 host_alias = @host_alias@
194 host_cpu = @host_cpu@
195 host_os = @host_os@
196 host_vendor = @host_vendor@
197 htmldir = @htmldir@
198 includedir = @includedir@
199 infodir = @infodir@
200 install_sh = @install_sh@
201 libdir = @libdir@
202 libexecdir = @libexecdir@
203 localedir = @localedir@
204 localstatedir = @localstatedir@
205 lt_ECHO = @lt_ECHO@
206 mandir = @mandir@
207 mkdir_p = @mkdir_p@
208 oldincludedir = @oldincludedir@
209 pdfdir = @pdfdir@
210 prefix = @prefix@
211 program_transform_name = @program_transform_name@
212 psdir = @psdir@
213 sbindir = @sbindir@
214 sharedstatedir = @sharedstatedir@
215 srcdir = @srcdir@
216 sysconfdir = @sysconfdir@
217 target_alias = @target_alias@
218 top_build_prefix = @top_build_prefix@
219 top_builddir = @top_builddir@
220 top_srcdir = @top_srcdir@
221 AUTOMAKE_OPTIONS = foreign
222 ACLOCAL_AMFLAGS = -I m4
223 EXTRA_DIST = CMakeLists.txt libmpc.kdevelop docs win32
224 @MPC_CHAP_TRUE@MPCCHAP_DIR = mpcchap
225 @MPC_GAIN_TRUE@MPCGAIN_DIR = mpcgain
226 SUBDIRS = \
227 include \
228 libmpcdec \
229 libmpcenc \
230 libmpcpsy \
231 libwavformat \
232 mpcenc \
233 mpc2sv8 \
234 mpccut \
235 mpcdec \
236 wavcmp \
237 $(MPCCHAP_DIR) \
238 $(MPCGAIN_DIR)
239
240 all: all-recursive
241
242 .SUFFIXES:
243 am--refresh:
244 @:
245 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
246 @for dep in $?; do \
247 case '$(am__configure_deps)' in \
248 *$$dep*) \
249 echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \
250 $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \
251 && exit 0; \
252 exit 1;; \
253 esac; \
254 done; \
255 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
256 $(am__cd) $(top_srcdir) && \
257 $(AUTOMAKE) --foreign Makefile
258 .PRECIOUS: Makefile
259 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
260 @case '$?' in \
261 *config.status*) \
262 echo ' $(SHELL) ./config.status'; \
263 $(SHELL) ./config.status;; \
264 *) \
265 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
266 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
267 esac;
268
269 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
270 $(SHELL) ./config.status --recheck
271
272 $(top_srcdir)/configure: $(am__configure_deps)
273 $(am__cd) $(srcdir) && $(AUTOCONF)
274 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
275 $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
276 $(am__aclocal_m4_deps):
277
278 mostlyclean-libtool:
279 -rm -f *.lo
280
281 clean-libtool:
282 -rm -rf .libs _libs
283
284 distclean-libtool:
285 -rm -f libtool config.lt
286
287 # This directory's subdirectories are mostly independent; you can cd
288 # into them and run `make' without going through this Makefile.
289 # To change the values of `make' variables: instead of editing Makefiles,
290 # (1) if the variable is set in `config.status', edit `config.status'
291 # (which will cause the Makefiles to be regenerated when you run `make');
292 # (2) otherwise, pass the desired values on the `make' command line.
293 $(RECURSIVE_TARGETS):
294 @fail= failcom='exit 1'; \
295 for f in x $$MAKEFLAGS; do \
296 case $$f in \
297 *=* | --[!k]*);; \
298 *k*) failcom='fail=yes';; \
299 esac; \
300 done; \
301 dot_seen=no; \
302 target=`echo $@ | sed s/-recursive//`; \
303 list='$(SUBDIRS)'; for subdir in $$list; do \
304 echo "Making $$target in $$subdir"; \
305 if test "$$subdir" = "."; then \
306 dot_seen=yes; \
307 local_target="$$target-am"; \
308 else \
309 local_target="$$target"; \
310 fi; \
311 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
312 || eval $$failcom; \
313 done; \
314 if test "$$dot_seen" = "no"; then \
315 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
316 fi; test -z "$$fail"
317
318 $(RECURSIVE_CLEAN_TARGETS):
319 @fail= failcom='exit 1'; \
320 for f in x $$MAKEFLAGS; do \
321 case $$f in \
322 *=* | --[!k]*);; \
323 *k*) failcom='fail=yes';; \
324 esac; \
325 done; \
326 dot_seen=no; \
327 case "$@" in \
328 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
329 *) list='$(SUBDIRS)' ;; \
330 esac; \
331 rev=''; for subdir in $$list; do \
332 if test "$$subdir" = "."; then :; else \
333 rev="$$subdir $$rev"; \
334 fi; \
335 done; \
336 rev="$$rev ."; \
337 target=`echo $@ | sed s/-recursive//`; \
338 for subdir in $$rev; do \
339 echo "Making $$target in $$subdir"; \
340 if test "$$subdir" = "."; then \
341 local_target="$$target-am"; \
342 else \
343 local_target="$$target"; \
344 fi; \
345 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
346 || eval $$failcom; \
347 done && test -z "$$fail"
348 tags-recursive:
349 list='$(SUBDIRS)'; for subdir in $$list; do \
350 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
351 done
352 ctags-recursive:
353 list='$(SUBDIRS)'; for subdir in $$list; do \
354 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
355 done
356
357 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
358 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
359 unique=`for i in $$list; do \
360 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
361 done | \
362 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
363 END { if (nonempty) { for (i in files) print i; }; }'`; \
364 mkid -fID $$unique
365 tags: TAGS
366
367 TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
368 $(TAGS_FILES) $(LISP)
369 set x; \
370 here=`pwd`; \
371 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
372 include_option=--etags-include; \
373 empty_fix=.; \
374 else \
375 include_option=--include; \
376 empty_fix=; \
377 fi; \
378 list='$(SUBDIRS)'; for subdir in $$list; do \
379 if test "$$subdir" = .; then :; else \
380 test ! -f $$subdir/TAGS || \
381 set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
382 fi; \
383 done; \
384 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
385 unique=`for i in $$list; do \
386 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
387 done | \
388 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
389 END { if (nonempty) { for (i in files) print i; }; }'`; \
390 shift; \
391 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
392 test -n "$$unique" || unique=$$empty_fix; \
393 if test $$# -gt 0; then \
394 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
395 "$$@" $$unique; \
396 else \
397 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
398 $$unique; \
399 fi; \
400 fi
401 ctags: CTAGS
402 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
403 $(TAGS_FILES) $(LISP)
404 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
405 unique=`for i in $$list; do \
406 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
407 done | \
408 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
409 END { if (nonempty) { for (i in files) print i; }; }'`; \
410 test -z "$(CTAGS_ARGS)$$unique" \
411 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
412 $$unique
413
414 GTAGS:
415 here=`$(am__cd) $(top_builddir) && pwd` \
416 && $(am__cd) $(top_srcdir) \
417 && gtags -i $(GTAGS_ARGS) "$$here"
418
419 distclean-tags:
420 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
421
422 distdir: $(DISTFILES)
423 $(am__remove_distdir)
424 test -d "$(distdir)" || mkdir "$(distdir)"
425 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
426 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
427 list='$(DISTFILES)'; \
428 dist_files=`for file in $$list; do echo $$file; done | \
429 sed -e "s|^$$srcdirstrip/||;t" \
430 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
431 case $$dist_files in \
432 */*) $(MKDIR_P) `echo "$$dist_files" | \
433 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
434 sort -u` ;; \
435 esac; \
436 for file in $$dist_files; do \
437 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
438 if test -d $$d/$$file; then \
439 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
440 if test -d "$(distdir)/$$file"; then \
441 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
442 fi; \
443 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
444 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
445 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
446 fi; \
447 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
448 else \
449 test -f "$(distdir)/$$file" \
450 || cp -p $$d/$$file "$(distdir)/$$file" \
451 || exit 1; \
452 fi; \
453 done
454 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
455 if test "$$subdir" = .; then :; else \
456 test -d "$(distdir)/$$subdir" \
457 || $(MKDIR_P) "$(distdir)/$$subdir" \
458 || exit 1; \
459 fi; \
460 done
461 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
462 if test "$$subdir" = .; then :; else \
463 dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
464 $(am__relativize); \
465 new_distdir=$$reldir; \
466 dir1=$$subdir; dir2="$(top_distdir)"; \
467 $(am__relativize); \
468 new_top_distdir=$$reldir; \
469 echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
470 echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
471 ($(am__cd) $$subdir && \
472 $(MAKE) $(AM_MAKEFLAGS) \
473 top_distdir="$$new_top_distdir" \
474 distdir="$$new_distdir" \
475 am__remove_distdir=: \
476 am__skip_length_check=: \
477 am__skip_mode_fix=: \
478 distdir) \
479 || exit 1; \
480 fi; \
481 done
482 -test -n "$(am__skip_mode_fix)" \
483 || find "$(distdir)" -type d ! -perm -755 \
484 -exec chmod u+rwx,go+rx {} \; -o \
485 ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
486 ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
487 ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
488 || chmod -R a+r "$(distdir)"
489 dist-gzip: distdir
490 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
491 $(am__remove_distdir)
492
493 dist-bzip2: distdir
494 tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
495 $(am__remove_distdir)
496
497 dist-lzma: distdir
498 tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
499 $(am__remove_distdir)
500
501 dist-xz: distdir
502 tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz
503 $(am__remove_distdir)
504
505 dist-tarZ: distdir
506 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
507 $(am__remove_distdir)
508
509 dist-shar: distdir
510 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
511 $(am__remove_distdir)
512
513 dist-zip: distdir
514 -rm -f $(distdir).zip
515 zip -rq $(distdir).zip $(distdir)
516 $(am__remove_distdir)
517
518 dist dist-all: distdir
519 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
520 $(am__remove_distdir)
521
522 # This target untars the dist file and tries a VPATH configuration. Then
523 # it guarantees that the distribution is self-contained by making another
524 # tarfile.
525 distcheck: dist
526 case '$(DIST_ARCHIVES)' in \
527 *.tar.gz*) \
528 GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
529 *.tar.bz2*) \
530 bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
531 *.tar.lzma*) \
532 lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
533 *.tar.xz*) \
534 xz -dc $(distdir).tar.xz | $(am__untar) ;;\
535 *.tar.Z*) \
536 uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
537 *.shar.gz*) \
538 GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
539 *.zip*) \
540 unzip $(distdir).zip ;;\
541 esac
542 chmod -R a-w $(distdir); chmod a+w $(distdir)
543 mkdir $(distdir)/_build
544 mkdir $(distdir)/_inst
545 chmod a-w $(distdir)
546 test -d $(distdir)/_build || exit 0; \
547 dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
548 && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
549 && am__cwd=`pwd` \
550 && $(am__cd) $(distdir)/_build \
551 && ../configure --srcdir=.. --prefix="$$dc_install_base" \
552 $(DISTCHECK_CONFIGURE_FLAGS) \
553 && $(MAKE) $(AM_MAKEFLAGS) \
554 && $(MAKE) $(AM_MAKEFLAGS) dvi \
555 && $(MAKE) $(AM_MAKEFLAGS) check \
556 && $(MAKE) $(AM_MAKEFLAGS) install \
557 && $(MAKE) $(AM_MAKEFLAGS) installcheck \
558 && $(MAKE) $(AM_MAKEFLAGS) uninstall \
559 && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
560 distuninstallcheck \
561 && chmod -R a-w "$$dc_install_base" \
562 && ({ \
563 (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
564 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
565 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
566 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
567 distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
568 } || { rm -rf "$$dc_destdir"; exit 1; }) \
569 && rm -rf "$$dc_destdir" \
570 && $(MAKE) $(AM_MAKEFLAGS) dist \
571 && rm -rf $(DIST_ARCHIVES) \
572 && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
573 && cd "$$am__cwd" \
574 || exit 1
575 $(am__remove_distdir)
576 @(echo "$(distdir) archives ready for distribution: "; \
577 list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
578 sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
579 distuninstallcheck:
580 @$(am__cd) '$(distuninstallcheck_dir)' \
581 && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
582 || { echo "ERROR: files left after uninstall:" ; \
583 if test -n "$(DESTDIR)"; then \
584 echo " (check DESTDIR support)"; \
585 fi ; \
586 $(distuninstallcheck_listfiles) ; \
587 exit 1; } >&2
588 distcleancheck: distclean
589 @if test '$(srcdir)' = . ; then \
590 echo "ERROR: distcleancheck can only run from a VPATH build" ; \
591 exit 1 ; \
592 fi
593 @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
594 || { echo "ERROR: files left in build directory after distclean:" ; \
595 $(distcleancheck_listfiles) ; \
596 exit 1; } >&2
597 check-am: all-am
598 check: check-recursive
599 all-am: Makefile
600 installdirs: installdirs-recursive
601 installdirs-am:
602 install: install-recursive
603 install-exec: install-exec-recursive
604 install-data: install-data-recursive
605 uninstall: uninstall-recursive
606
607 install-am: all-am
608 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
609
610 installcheck: installcheck-recursive
611 install-strip:
612 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
613 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
614 `test -z '$(STRIP)' || \
615 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
616 mostlyclean-generic:
617
618 clean-generic:
619
620 distclean-generic:
621 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
622 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
623
624 maintainer-clean-generic:
625 @echo "This command is intended for maintainers to use"
626 @echo "it deletes files that may require special tools to rebuild."
627 clean: clean-recursive
628
629 clean-am: clean-generic clean-libtool mostlyclean-am
630
631 distclean: distclean-recursive
632 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
633 -rm -f Makefile
634 distclean-am: clean-am distclean-generic distclean-libtool \
635 distclean-tags
636
637 dvi: dvi-recursive
638
639 dvi-am:
640
641 html: html-recursive
642
643 html-am:
644
645 info: info-recursive
646
647 info-am:
648
649 install-data-am:
650
651 install-dvi: install-dvi-recursive
652
653 install-dvi-am:
654
655 install-exec-am:
656
657 install-html: install-html-recursive
658
659 install-html-am:
660
661 install-info: install-info-recursive
662
663 install-info-am:
664
665 install-man:
666
667 install-pdf: install-pdf-recursive
668
669 install-pdf-am:
670
671 install-ps: install-ps-recursive
672
673 install-ps-am:
674
675 installcheck-am:
676
677 maintainer-clean: maintainer-clean-recursive
678 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
679 -rm -rf $(top_srcdir)/autom4te.cache
680 -rm -f Makefile
681 maintainer-clean-am: distclean-am maintainer-clean-generic
682
683 mostlyclean: mostlyclean-recursive
684
685 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
686
687 pdf: pdf-recursive
688
689 pdf-am:
690
691 ps: ps-recursive
692
693 ps-am:
694
695 uninstall-am:
696
697 .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \
698 install-am install-strip tags-recursive
699
700 .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
701 all all-am am--refresh check check-am clean clean-generic \
702 clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \
703 dist-gzip dist-lzma dist-shar dist-tarZ dist-xz dist-zip \
704 distcheck distclean distclean-generic distclean-libtool \
705 distclean-tags distcleancheck distdir distuninstallcheck dvi \
706 dvi-am html html-am info info-am install install-am \
707 install-data install-data-am install-dvi install-dvi-am \
708 install-exec install-exec-am install-html install-html-am \
709 install-info install-info-am install-man install-pdf \
710 install-pdf-am install-ps install-ps-am install-strip \
711 installcheck installcheck-am installdirs installdirs-am \
712 maintainer-clean maintainer-clean-generic mostlyclean \
713 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
714 tags tags-recursive uninstall uninstall-am
715
716
717 # Tell versions [3.59,3.63) of GNU make to not export all variables.
718 # Otherwise a system limit (for SysV at least) may be exceeded.
719 .NOEXPORT:
+0
-968
aclocal.m4 less more
0 # generated automatically by aclocal 1.11.1 -*- Autoconf -*-
1
2 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
3 # 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
4 # This file is free software; the Free Software Foundation
5 # gives unlimited permission to copy and/or distribute it,
6 # with or without modifications, as long as this notice is preserved.
7
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
10 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11 # PARTICULAR PURPOSE.
12
13 m4_ifndef([AC_AUTOCONF_VERSION],
14 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
15 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],,
16 [m4_warning([this file was generated for autoconf 2.65.
17 You have another version of autoconf. It may work, but is not guaranteed to.
18 If you have problems, you may need to regenerate the build system entirely.
19 To do so, use the procedure documented by the package, typically `autoreconf'.])])
20
21 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
22 #
23 # This file is free software; the Free Software Foundation
24 # gives unlimited permission to copy and/or distribute it,
25 # with or without modifications, as long as this notice is preserved.
26
27 # AM_AUTOMAKE_VERSION(VERSION)
28 # ----------------------------
29 # Automake X.Y traces this macro to ensure aclocal.m4 has been
30 # generated from the m4 files accompanying Automake X.Y.
31 # (This private macro should not be called outside this file.)
32 AC_DEFUN([AM_AUTOMAKE_VERSION],
33 [am__api_version='1.11'
34 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
35 dnl require some minimum version. Point them to the right macro.
36 m4_if([$1], [1.11.1], [],
37 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
38 ])
39
40 # _AM_AUTOCONF_VERSION(VERSION)
41 # -----------------------------
42 # aclocal traces this macro to find the Autoconf version.
43 # This is a private macro too. Using m4_define simplifies
44 # the logic in aclocal, which can simply ignore this definition.
45 m4_define([_AM_AUTOCONF_VERSION], [])
46
47 # AM_SET_CURRENT_AUTOMAKE_VERSION
48 # -------------------------------
49 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
50 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
51 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
52 [AM_AUTOMAKE_VERSION([1.11.1])dnl
53 m4_ifndef([AC_AUTOCONF_VERSION],
54 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
55 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
56
57 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
58
59 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
60 #
61 # This file is free software; the Free Software Foundation
62 # gives unlimited permission to copy and/or distribute it,
63 # with or without modifications, as long as this notice is preserved.
64
65 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
66 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
67 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
68 #
69 # Of course, Automake must honor this variable whenever it calls a
70 # tool from the auxiliary directory. The problem is that $srcdir (and
71 # therefore $ac_aux_dir as well) can be either absolute or relative,
72 # depending on how configure is run. This is pretty annoying, since
73 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
74 # source directory, any form will work fine, but in subdirectories a
75 # relative path needs to be adjusted first.
76 #
77 # $ac_aux_dir/missing
78 # fails when called from a subdirectory if $ac_aux_dir is relative
79 # $top_srcdir/$ac_aux_dir/missing
80 # fails if $ac_aux_dir is absolute,
81 # fails when called from a subdirectory in a VPATH build with
82 # a relative $ac_aux_dir
83 #
84 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
85 # are both prefixed by $srcdir. In an in-source build this is usually
86 # harmless because $srcdir is `.', but things will broke when you
87 # start a VPATH build or use an absolute $srcdir.
88 #
89 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
90 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
91 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
92 # and then we would define $MISSING as
93 # MISSING="\${SHELL} $am_aux_dir/missing"
94 # This will work as long as MISSING is not called from configure, because
95 # unfortunately $(top_srcdir) has no meaning in configure.
96 # However there are other variables, like CC, which are often used in
97 # configure, and could therefore not use this "fixed" $ac_aux_dir.
98 #
99 # Another solution, used here, is to always expand $ac_aux_dir to an
100 # absolute PATH. The drawback is that using absolute paths prevent a
101 # configured tree to be moved without reconfiguration.
102
103 AC_DEFUN([AM_AUX_DIR_EXPAND],
104 [dnl Rely on autoconf to set up CDPATH properly.
105 AC_PREREQ([2.50])dnl
106 # expand $ac_aux_dir to an absolute path
107 am_aux_dir=`cd $ac_aux_dir && pwd`
108 ])
109
110 # AM_CONDITIONAL -*- Autoconf -*-
111
112 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
113 # Free Software Foundation, Inc.
114 #
115 # This file is free software; the Free Software Foundation
116 # gives unlimited permission to copy and/or distribute it,
117 # with or without modifications, as long as this notice is preserved.
118
119 # serial 9
120
121 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
122 # -------------------------------------
123 # Define a conditional.
124 AC_DEFUN([AM_CONDITIONAL],
125 [AC_PREREQ(2.52)dnl
126 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
127 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
128 AC_SUBST([$1_TRUE])dnl
129 AC_SUBST([$1_FALSE])dnl
130 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
131 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
132 m4_define([_AM_COND_VALUE_$1], [$2])dnl
133 if $2; then
134 $1_TRUE=
135 $1_FALSE='#'
136 else
137 $1_TRUE='#'
138 $1_FALSE=
139 fi
140 AC_CONFIG_COMMANDS_PRE(
141 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
142 AC_MSG_ERROR([[conditional "$1" was never defined.
143 Usually this means the macro was only invoked conditionally.]])
144 fi])])
145
146 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
147 # Free Software Foundation, Inc.
148 #
149 # This file is free software; the Free Software Foundation
150 # gives unlimited permission to copy and/or distribute it,
151 # with or without modifications, as long as this notice is preserved.
152
153 # serial 10
154
155 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
156 # written in clear, in which case automake, when reading aclocal.m4,
157 # will think it sees a *use*, and therefore will trigger all it's
158 # C support machinery. Also note that it means that autoscan, seeing
159 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
160
161
162 # _AM_DEPENDENCIES(NAME)
163 # ----------------------
164 # See how the compiler implements dependency checking.
165 # NAME is "CC", "CXX", "GCJ", or "OBJC".
166 # We try a few techniques and use that to set a single cache variable.
167 #
168 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
169 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
170 # dependency, and given that the user is not expected to run this macro,
171 # just rely on AC_PROG_CC.
172 AC_DEFUN([_AM_DEPENDENCIES],
173 [AC_REQUIRE([AM_SET_DEPDIR])dnl
174 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
175 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
176 AC_REQUIRE([AM_DEP_TRACK])dnl
177
178 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
179 [$1], CXX, [depcc="$CXX" am_compiler_list=],
180 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
181 [$1], UPC, [depcc="$UPC" am_compiler_list=],
182 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
183 [depcc="$$1" am_compiler_list=])
184
185 AC_CACHE_CHECK([dependency style of $depcc],
186 [am_cv_$1_dependencies_compiler_type],
187 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
188 # We make a subdir and do the tests there. Otherwise we can end up
189 # making bogus files that we don't know about and never remove. For
190 # instance it was reported that on HP-UX the gcc test will end up
191 # making a dummy file named `D' -- because `-MD' means `put the output
192 # in D'.
193 mkdir conftest.dir
194 # Copy depcomp to subdir because otherwise we won't find it if we're
195 # using a relative directory.
196 cp "$am_depcomp" conftest.dir
197 cd conftest.dir
198 # We will build objects and dependencies in a subdirectory because
199 # it helps to detect inapplicable dependency modes. For instance
200 # both Tru64's cc and ICC support -MD to output dependencies as a
201 # side effect of compilation, but ICC will put the dependencies in
202 # the current directory while Tru64 will put them in the object
203 # directory.
204 mkdir sub
205
206 am_cv_$1_dependencies_compiler_type=none
207 if test "$am_compiler_list" = ""; then
208 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
209 fi
210 am__universal=false
211 m4_case([$1], [CC],
212 [case " $depcc " in #(
213 *\ -arch\ *\ -arch\ *) am__universal=true ;;
214 esac],
215 [CXX],
216 [case " $depcc " in #(
217 *\ -arch\ *\ -arch\ *) am__universal=true ;;
218 esac])
219
220 for depmode in $am_compiler_list; do
221 # Setup a source with many dependencies, because some compilers
222 # like to wrap large dependency lists on column 80 (with \), and
223 # we should not choose a depcomp mode which is confused by this.
224 #
225 # We need to recreate these files for each test, as the compiler may
226 # overwrite some of them when testing with obscure command lines.
227 # This happens at least with the AIX C compiler.
228 : > sub/conftest.c
229 for i in 1 2 3 4 5 6; do
230 echo '#include "conftst'$i'.h"' >> sub/conftest.c
231 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
232 # Solaris 8's {/usr,}/bin/sh.
233 touch sub/conftst$i.h
234 done
235 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
236
237 # We check with `-c' and `-o' for the sake of the "dashmstdout"
238 # mode. It turns out that the SunPro C++ compiler does not properly
239 # handle `-M -o', and we need to detect this. Also, some Intel
240 # versions had trouble with output in subdirs
241 am__obj=sub/conftest.${OBJEXT-o}
242 am__minus_obj="-o $am__obj"
243 case $depmode in
244 gcc)
245 # This depmode causes a compiler race in universal mode.
246 test "$am__universal" = false || continue
247 ;;
248 nosideeffect)
249 # after this tag, mechanisms are not by side-effect, so they'll
250 # only be used when explicitly requested
251 if test "x$enable_dependency_tracking" = xyes; then
252 continue
253 else
254 break
255 fi
256 ;;
257 msvisualcpp | msvcmsys)
258 # This compiler won't grok `-c -o', but also, the minuso test has
259 # not run yet. These depmodes are late enough in the game, and
260 # so weak that their functioning should not be impacted.
261 am__obj=conftest.${OBJEXT-o}
262 am__minus_obj=
263 ;;
264 none) break ;;
265 esac
266 if depmode=$depmode \
267 source=sub/conftest.c object=$am__obj \
268 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
269 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
270 >/dev/null 2>conftest.err &&
271 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
272 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
273 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
274 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
275 # icc doesn't choke on unknown options, it will just issue warnings
276 # or remarks (even with -Werror). So we grep stderr for any message
277 # that says an option was ignored or not supported.
278 # When given -MP, icc 7.0 and 7.1 complain thusly:
279 # icc: Command line warning: ignoring option '-M'; no argument required
280 # The diagnosis changed in icc 8.0:
281 # icc: Command line remark: option '-MP' not supported
282 if (grep 'ignoring option' conftest.err ||
283 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
284 am_cv_$1_dependencies_compiler_type=$depmode
285 break
286 fi
287 fi
288 done
289
290 cd ..
291 rm -rf conftest.dir
292 else
293 am_cv_$1_dependencies_compiler_type=none
294 fi
295 ])
296 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
297 AM_CONDITIONAL([am__fastdep$1], [
298 test "x$enable_dependency_tracking" != xno \
299 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
300 ])
301
302
303 # AM_SET_DEPDIR
304 # -------------
305 # Choose a directory name for dependency files.
306 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
307 AC_DEFUN([AM_SET_DEPDIR],
308 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
309 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
310 ])
311
312
313 # AM_DEP_TRACK
314 # ------------
315 AC_DEFUN([AM_DEP_TRACK],
316 [AC_ARG_ENABLE(dependency-tracking,
317 [ --disable-dependency-tracking speeds up one-time build
318 --enable-dependency-tracking do not reject slow dependency extractors])
319 if test "x$enable_dependency_tracking" != xno; then
320 am_depcomp="$ac_aux_dir/depcomp"
321 AMDEPBACKSLASH='\'
322 fi
323 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
324 AC_SUBST([AMDEPBACKSLASH])dnl
325 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
326 ])
327
328 # Generate code to set up dependency tracking. -*- Autoconf -*-
329
330 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
331 # Free Software Foundation, Inc.
332 #
333 # This file is free software; the Free Software Foundation
334 # gives unlimited permission to copy and/or distribute it,
335 # with or without modifications, as long as this notice is preserved.
336
337 #serial 5
338
339 # _AM_OUTPUT_DEPENDENCY_COMMANDS
340 # ------------------------------
341 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
342 [{
343 # Autoconf 2.62 quotes --file arguments for eval, but not when files
344 # are listed without --file. Let's play safe and only enable the eval
345 # if we detect the quoting.
346 case $CONFIG_FILES in
347 *\'*) eval set x "$CONFIG_FILES" ;;
348 *) set x $CONFIG_FILES ;;
349 esac
350 shift
351 for mf
352 do
353 # Strip MF so we end up with the name of the file.
354 mf=`echo "$mf" | sed -e 's/:.*$//'`
355 # Check whether this is an Automake generated Makefile or not.
356 # We used to match only the files named `Makefile.in', but
357 # some people rename them; so instead we look at the file content.
358 # Grep'ing the first line is not enough: some people post-process
359 # each Makefile.in and add a new line on top of each file to say so.
360 # Grep'ing the whole file is not good either: AIX grep has a line
361 # limit of 2048, but all sed's we know have understand at least 4000.
362 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
363 dirpart=`AS_DIRNAME("$mf")`
364 else
365 continue
366 fi
367 # Extract the definition of DEPDIR, am__include, and am__quote
368 # from the Makefile without running `make'.
369 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
370 test -z "$DEPDIR" && continue
371 am__include=`sed -n 's/^am__include = //p' < "$mf"`
372 test -z "am__include" && continue
373 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
374 # When using ansi2knr, U may be empty or an underscore; expand it
375 U=`sed -n 's/^U = //p' < "$mf"`
376 # Find all dependency output files, they are included files with
377 # $(DEPDIR) in their names. We invoke sed twice because it is the
378 # simplest approach to changing $(DEPDIR) to its actual value in the
379 # expansion.
380 for file in `sed -n "
381 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
382 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
383 # Make sure the directory exists.
384 test -f "$dirpart/$file" && continue
385 fdir=`AS_DIRNAME(["$file"])`
386 AS_MKDIR_P([$dirpart/$fdir])
387 # echo "creating $dirpart/$file"
388 echo '# dummy' > "$dirpart/$file"
389 done
390 done
391 }
392 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
393
394
395 # AM_OUTPUT_DEPENDENCY_COMMANDS
396 # -----------------------------
397 # This macro should only be invoked once -- use via AC_REQUIRE.
398 #
399 # This code is only required when automatic dependency tracking
400 # is enabled. FIXME. This creates each `.P' file that we will
401 # need in order to bootstrap the dependency handling code.
402 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
403 [AC_CONFIG_COMMANDS([depfiles],
404 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
405 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
406 ])
407
408 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
409 # Free Software Foundation, Inc.
410 #
411 # This file is free software; the Free Software Foundation
412 # gives unlimited permission to copy and/or distribute it,
413 # with or without modifications, as long as this notice is preserved.
414
415 # serial 8
416
417 # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
418 AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
419
420 # Do all the work for Automake. -*- Autoconf -*-
421
422 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
423 # 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
424 #
425 # This file is free software; the Free Software Foundation
426 # gives unlimited permission to copy and/or distribute it,
427 # with or without modifications, as long as this notice is preserved.
428
429 # serial 16
430
431 # This macro actually does too much. Some checks are only needed if
432 # your package does certain things. But this isn't really a big deal.
433
434 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
435 # AM_INIT_AUTOMAKE([OPTIONS])
436 # -----------------------------------------------
437 # The call with PACKAGE and VERSION arguments is the old style
438 # call (pre autoconf-2.50), which is being phased out. PACKAGE
439 # and VERSION should now be passed to AC_INIT and removed from
440 # the call to AM_INIT_AUTOMAKE.
441 # We support both call styles for the transition. After
442 # the next Automake release, Autoconf can make the AC_INIT
443 # arguments mandatory, and then we can depend on a new Autoconf
444 # release and drop the old call support.
445 AC_DEFUN([AM_INIT_AUTOMAKE],
446 [AC_PREREQ([2.62])dnl
447 dnl Autoconf wants to disallow AM_ names. We explicitly allow
448 dnl the ones we care about.
449 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
450 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
451 AC_REQUIRE([AC_PROG_INSTALL])dnl
452 if test "`cd $srcdir && pwd`" != "`pwd`"; then
453 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
454 # is not polluted with repeated "-I."
455 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
456 # test to see if srcdir already configured
457 if test -f $srcdir/config.status; then
458 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
459 fi
460 fi
461
462 # test whether we have cygpath
463 if test -z "$CYGPATH_W"; then
464 if (cygpath --version) >/dev/null 2>/dev/null; then
465 CYGPATH_W='cygpath -w'
466 else
467 CYGPATH_W=echo
468 fi
469 fi
470 AC_SUBST([CYGPATH_W])
471
472 # Define the identity of the package.
473 dnl Distinguish between old-style and new-style calls.
474 m4_ifval([$2],
475 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
476 AC_SUBST([PACKAGE], [$1])dnl
477 AC_SUBST([VERSION], [$2])],
478 [_AM_SET_OPTIONS([$1])dnl
479 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
480 m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
481 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
482 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
483 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
484
485 _AM_IF_OPTION([no-define],,
486 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
487 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
488
489 # Some tools Automake needs.
490 AC_REQUIRE([AM_SANITY_CHECK])dnl
491 AC_REQUIRE([AC_ARG_PROGRAM])dnl
492 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
493 AM_MISSING_PROG(AUTOCONF, autoconf)
494 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
495 AM_MISSING_PROG(AUTOHEADER, autoheader)
496 AM_MISSING_PROG(MAKEINFO, makeinfo)
497 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
498 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
499 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
500 # We need awk for the "check" target. The system "awk" is bad on
501 # some platforms.
502 AC_REQUIRE([AC_PROG_AWK])dnl
503 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
504 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
505 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
506 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
507 [_AM_PROG_TAR([v7])])])
508 _AM_IF_OPTION([no-dependencies],,
509 [AC_PROVIDE_IFELSE([AC_PROG_CC],
510 [_AM_DEPENDENCIES(CC)],
511 [define([AC_PROG_CC],
512 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
513 AC_PROVIDE_IFELSE([AC_PROG_CXX],
514 [_AM_DEPENDENCIES(CXX)],
515 [define([AC_PROG_CXX],
516 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
517 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
518 [_AM_DEPENDENCIES(OBJC)],
519 [define([AC_PROG_OBJC],
520 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
521 ])
522 _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
523 dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
524 dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
525 dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
526 AC_CONFIG_COMMANDS_PRE(dnl
527 [m4_provide_if([_AM_COMPILER_EXEEXT],
528 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
529 ])
530
531 dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
532 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
533 dnl mangled by Autoconf and run in a shell conditional statement.
534 m4_define([_AC_COMPILER_EXEEXT],
535 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
536
537
538 # When config.status generates a header, we must update the stamp-h file.
539 # This file resides in the same directory as the config header
540 # that is generated. The stamp files are numbered to have different names.
541
542 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
543 # loop where config.status creates the headers, so we can generate
544 # our stamp files there.
545 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
546 [# Compute $1's index in $config_headers.
547 _am_arg=$1
548 _am_stamp_count=1
549 for _am_header in $config_headers :; do
550 case $_am_header in
551 $_am_arg | $_am_arg:* )
552 break ;;
553 * )
554 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
555 esac
556 done
557 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
558
559 # Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
560 #
561 # This file is free software; the Free Software Foundation
562 # gives unlimited permission to copy and/or distribute it,
563 # with or without modifications, as long as this notice is preserved.
564
565 # AM_PROG_INSTALL_SH
566 # ------------------
567 # Define $install_sh.
568 AC_DEFUN([AM_PROG_INSTALL_SH],
569 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
570 if test x"${install_sh}" != xset; then
571 case $am_aux_dir in
572 *\ * | *\ *)
573 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
574 *)
575 install_sh="\${SHELL} $am_aux_dir/install-sh"
576 esac
577 fi
578 AC_SUBST(install_sh)])
579
580 # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
581 #
582 # This file is free software; the Free Software Foundation
583 # gives unlimited permission to copy and/or distribute it,
584 # with or without modifications, as long as this notice is preserved.
585
586 # serial 2
587
588 # Check whether the underlying file-system supports filenames
589 # with a leading dot. For instance MS-DOS doesn't.
590 AC_DEFUN([AM_SET_LEADING_DOT],
591 [rm -rf .tst 2>/dev/null
592 mkdir .tst 2>/dev/null
593 if test -d .tst; then
594 am__leading_dot=.
595 else
596 am__leading_dot=_
597 fi
598 rmdir .tst 2>/dev/null
599 AC_SUBST([am__leading_dot])])
600
601 # Check to see how 'make' treats includes. -*- Autoconf -*-
602
603 # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
604 #
605 # This file is free software; the Free Software Foundation
606 # gives unlimited permission to copy and/or distribute it,
607 # with or without modifications, as long as this notice is preserved.
608
609 # serial 4
610
611 # AM_MAKE_INCLUDE()
612 # -----------------
613 # Check to see how make treats includes.
614 AC_DEFUN([AM_MAKE_INCLUDE],
615 [am_make=${MAKE-make}
616 cat > confinc << 'END'
617 am__doit:
618 @echo this is the am__doit target
619 .PHONY: am__doit
620 END
621 # If we don't find an include directive, just comment out the code.
622 AC_MSG_CHECKING([for style of include used by $am_make])
623 am__include="#"
624 am__quote=
625 _am_result=none
626 # First try GNU make style include.
627 echo "include confinc" > confmf
628 # Ignore all kinds of additional output from `make'.
629 case `$am_make -s -f confmf 2> /dev/null` in #(
630 *the\ am__doit\ target*)
631 am__include=include
632 am__quote=
633 _am_result=GNU
634 ;;
635 esac
636 # Now try BSD make style include.
637 if test "$am__include" = "#"; then
638 echo '.include "confinc"' > confmf
639 case `$am_make -s -f confmf 2> /dev/null` in #(
640 *the\ am__doit\ target*)
641 am__include=.include
642 am__quote="\""
643 _am_result=BSD
644 ;;
645 esac
646 fi
647 AC_SUBST([am__include])
648 AC_SUBST([am__quote])
649 AC_MSG_RESULT([$_am_result])
650 rm -f confinc confmf
651 ])
652
653 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
654
655 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
656 # Free Software Foundation, Inc.
657 #
658 # This file is free software; the Free Software Foundation
659 # gives unlimited permission to copy and/or distribute it,
660 # with or without modifications, as long as this notice is preserved.
661
662 # serial 6
663
664 # AM_MISSING_PROG(NAME, PROGRAM)
665 # ------------------------------
666 AC_DEFUN([AM_MISSING_PROG],
667 [AC_REQUIRE([AM_MISSING_HAS_RUN])
668 $1=${$1-"${am_missing_run}$2"}
669 AC_SUBST($1)])
670
671
672 # AM_MISSING_HAS_RUN
673 # ------------------
674 # Define MISSING if not defined so far and test if it supports --run.
675 # If it does, set am_missing_run to use it, otherwise, to nothing.
676 AC_DEFUN([AM_MISSING_HAS_RUN],
677 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
678 AC_REQUIRE_AUX_FILE([missing])dnl
679 if test x"${MISSING+set}" != xset; then
680 case $am_aux_dir in
681 *\ * | *\ *)
682 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
683 *)
684 MISSING="\${SHELL} $am_aux_dir/missing" ;;
685 esac
686 fi
687 # Use eval to expand $SHELL
688 if eval "$MISSING --run true"; then
689 am_missing_run="$MISSING --run "
690 else
691 am_missing_run=
692 AC_MSG_WARN([`missing' script is too old or missing])
693 fi
694 ])
695
696 # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
697 #
698 # This file is free software; the Free Software Foundation
699 # gives unlimited permission to copy and/or distribute it,
700 # with or without modifications, as long as this notice is preserved.
701
702 # AM_PROG_MKDIR_P
703 # ---------------
704 # Check for `mkdir -p'.
705 AC_DEFUN([AM_PROG_MKDIR_P],
706 [AC_PREREQ([2.60])dnl
707 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
708 dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
709 dnl while keeping a definition of mkdir_p for backward compatibility.
710 dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
711 dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
712 dnl Makefile.ins that do not define MKDIR_P, so we do our own
713 dnl adjustment using top_builddir (which is defined more often than
714 dnl MKDIR_P).
715 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
716 case $mkdir_p in
717 [[\\/$]]* | ?:[[\\/]]*) ;;
718 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
719 esac
720 ])
721
722 # Helper functions for option handling. -*- Autoconf -*-
723
724 # Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
725 #
726 # This file is free software; the Free Software Foundation
727 # gives unlimited permission to copy and/or distribute it,
728 # with or without modifications, as long as this notice is preserved.
729
730 # serial 4
731
732 # _AM_MANGLE_OPTION(NAME)
733 # -----------------------
734 AC_DEFUN([_AM_MANGLE_OPTION],
735 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
736
737 # _AM_SET_OPTION(NAME)
738 # ------------------------------
739 # Set option NAME. Presently that only means defining a flag for this option.
740 AC_DEFUN([_AM_SET_OPTION],
741 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
742
743 # _AM_SET_OPTIONS(OPTIONS)
744 # ----------------------------------
745 # OPTIONS is a space-separated list of Automake options.
746 AC_DEFUN([_AM_SET_OPTIONS],
747 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
748
749 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
750 # -------------------------------------------
751 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
752 AC_DEFUN([_AM_IF_OPTION],
753 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
754
755 # Check to make sure that the build environment is sane. -*- Autoconf -*-
756
757 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
758 # Free Software Foundation, Inc.
759 #
760 # This file is free software; the Free Software Foundation
761 # gives unlimited permission to copy and/or distribute it,
762 # with or without modifications, as long as this notice is preserved.
763
764 # serial 5
765
766 # AM_SANITY_CHECK
767 # ---------------
768 AC_DEFUN([AM_SANITY_CHECK],
769 [AC_MSG_CHECKING([whether build environment is sane])
770 # Just in case
771 sleep 1
772 echo timestamp > conftest.file
773 # Reject unsafe characters in $srcdir or the absolute working directory
774 # name. Accept space and tab only in the latter.
775 am_lf='
776 '
777 case `pwd` in
778 *[[\\\"\#\$\&\'\`$am_lf]]*)
779 AC_MSG_ERROR([unsafe absolute working directory name]);;
780 esac
781 case $srcdir in
782 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
783 AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
784 esac
785
786 # Do `set' in a subshell so we don't clobber the current shell's
787 # arguments. Must try -L first in case configure is actually a
788 # symlink; some systems play weird games with the mod time of symlinks
789 # (eg FreeBSD returns the mod time of the symlink's containing
790 # directory).
791 if (
792 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
793 if test "$[*]" = "X"; then
794 # -L didn't work.
795 set X `ls -t "$srcdir/configure" conftest.file`
796 fi
797 rm -f conftest.file
798 if test "$[*]" != "X $srcdir/configure conftest.file" \
799 && test "$[*]" != "X conftest.file $srcdir/configure"; then
800
801 # If neither matched, then we have a broken ls. This can happen
802 # if, for instance, CONFIG_SHELL is bash and it inherits a
803 # broken ls alias from the environment. This has actually
804 # happened. Such a system could not be considered "sane".
805 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
806 alias in your environment])
807 fi
808
809 test "$[2]" = conftest.file
810 )
811 then
812 # Ok.
813 :
814 else
815 AC_MSG_ERROR([newly created file is older than distributed files!
816 Check your system clock])
817 fi
818 AC_MSG_RESULT(yes)])
819
820 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
821 #
822 # This file is free software; the Free Software Foundation
823 # gives unlimited permission to copy and/or distribute it,
824 # with or without modifications, as long as this notice is preserved.
825
826 # AM_PROG_INSTALL_STRIP
827 # ---------------------
828 # One issue with vendor `install' (even GNU) is that you can't
829 # specify the program used to strip binaries. This is especially
830 # annoying in cross-compiling environments, where the build's strip
831 # is unlikely to handle the host's binaries.
832 # Fortunately install-sh will honor a STRIPPROG variable, so we
833 # always use install-sh in `make install-strip', and initialize
834 # STRIPPROG with the value of the STRIP variable (set by the user).
835 AC_DEFUN([AM_PROG_INSTALL_STRIP],
836 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
837 # Installed binaries are usually stripped using `strip' when the user
838 # run `make install-strip'. However `strip' might not be the right
839 # tool to use in cross-compilation environments, therefore Automake
840 # will honor the `STRIP' environment variable to overrule this program.
841 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
842 if test "$cross_compiling" != no; then
843 AC_CHECK_TOOL([STRIP], [strip], :)
844 fi
845 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
846 AC_SUBST([INSTALL_STRIP_PROGRAM])])
847
848 # Copyright (C) 2006, 2008 Free Software Foundation, Inc.
849 #
850 # This file is free software; the Free Software Foundation
851 # gives unlimited permission to copy and/or distribute it,
852 # with or without modifications, as long as this notice is preserved.
853
854 # serial 2
855
856 # _AM_SUBST_NOTMAKE(VARIABLE)
857 # ---------------------------
858 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
859 # This macro is traced by Automake.
860 AC_DEFUN([_AM_SUBST_NOTMAKE])
861
862 # AM_SUBST_NOTMAKE(VARIABLE)
863 # ---------------------------
864 # Public sister of _AM_SUBST_NOTMAKE.
865 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
866
867 # Check how to create a tarball. -*- Autoconf -*-
868
869 # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
870 #
871 # This file is free software; the Free Software Foundation
872 # gives unlimited permission to copy and/or distribute it,
873 # with or without modifications, as long as this notice is preserved.
874
875 # serial 2
876
877 # _AM_PROG_TAR(FORMAT)
878 # --------------------
879 # Check how to create a tarball in format FORMAT.
880 # FORMAT should be one of `v7', `ustar', or `pax'.
881 #
882 # Substitute a variable $(am__tar) that is a command
883 # writing to stdout a FORMAT-tarball containing the directory
884 # $tardir.
885 # tardir=directory && $(am__tar) > result.tar
886 #
887 # Substitute a variable $(am__untar) that extract such
888 # a tarball read from stdin.
889 # $(am__untar) < result.tar
890 AC_DEFUN([_AM_PROG_TAR],
891 [# Always define AMTAR for backward compatibility.
892 AM_MISSING_PROG([AMTAR], [tar])
893 m4_if([$1], [v7],
894 [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
895 [m4_case([$1], [ustar],, [pax],,
896 [m4_fatal([Unknown tar format])])
897 AC_MSG_CHECKING([how to create a $1 tar archive])
898 # Loop over all known methods to create a tar archive until one works.
899 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
900 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
901 # Do not fold the above two line into one, because Tru64 sh and
902 # Solaris sh will not grok spaces in the rhs of `-'.
903 for _am_tool in $_am_tools
904 do
905 case $_am_tool in
906 gnutar)
907 for _am_tar in tar gnutar gtar;
908 do
909 AM_RUN_LOG([$_am_tar --version]) && break
910 done
911 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
912 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
913 am__untar="$_am_tar -xf -"
914 ;;
915 plaintar)
916 # Must skip GNU tar: if it does not support --format= it doesn't create
917 # ustar tarball either.
918 (tar --version) >/dev/null 2>&1 && continue
919 am__tar='tar chf - "$$tardir"'
920 am__tar_='tar chf - "$tardir"'
921 am__untar='tar xf -'
922 ;;
923 pax)
924 am__tar='pax -L -x $1 -w "$$tardir"'
925 am__tar_='pax -L -x $1 -w "$tardir"'
926 am__untar='pax -r'
927 ;;
928 cpio)
929 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
930 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
931 am__untar='cpio -i -H $1 -d'
932 ;;
933 none)
934 am__tar=false
935 am__tar_=false
936 am__untar=false
937 ;;
938 esac
939
940 # If the value was cached, stop now. We just wanted to have am__tar
941 # and am__untar set.
942 test -n "${am_cv_prog_tar_$1}" && break
943
944 # tar/untar a dummy directory, and stop if the command works
945 rm -rf conftest.dir
946 mkdir conftest.dir
947 echo GrepMe > conftest.dir/file
948 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
949 rm -rf conftest.dir
950 if test -s conftest.tar; then
951 AM_RUN_LOG([$am__untar <conftest.tar])
952 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
953 fi
954 done
955 rm -rf conftest.dir
956
957 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
958 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
959 AC_SUBST([am__tar])
960 AC_SUBST([am__untar])
961 ]) # _AM_PROG_TAR
962
963 m4_include([m4/libtool.m4])
964 m4_include([m4/ltoptions.m4])
965 m4_include([m4/ltsugar.m4])
966 m4_include([m4/ltversion.m4])
967 m4_include([m4/lt~obsolete.m4])
(No changes)
(No changes)
(No changes)
(No changes)
+0
-1502
config/config.guess less more
0 #! /bin/sh
1 # Attempt to guess a canonical system name.
2 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
4 # Free Software Foundation, Inc.
5
6 timestamp='2009-12-30'
7
8 # This file is free software; you can redistribute it and/or modify it
9 # under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2 of the License, or
11 # (at your option) any later version.
12 #
13 # This program is distributed in the hope that it will be useful, but
14 # WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 # General Public License for more details.
17 #
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
21 # 02110-1301, USA.
22 #
23 # As a special exception to the GNU General Public License, if you
24 # distribute this file as part of a program that contains a
25 # configuration script generated by Autoconf, you may include it under
26 # the same distribution terms that you use for the rest of that program.
27
28
29 # Originally written by Per Bothner. Please send patches (context
30 # diff format) to <config-patches@gnu.org> and include a ChangeLog
31 # entry.
32 #
33 # This script attempts to guess a canonical system name similar to
34 # config.sub. If it succeeds, it prints the system name on stdout, and
35 # exits with 0. Otherwise, it exits with 1.
36 #
37 # You can get the latest version of this script from:
38 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
39
40 me=`echo "$0" | sed -e 's,.*/,,'`
41
42 usage="\
43 Usage: $0 [OPTION]
44
45 Output the configuration name of the system \`$me' is run on.
46
47 Operation modes:
48 -h, --help print this help, then exit
49 -t, --time-stamp print date of last modification, then exit
50 -v, --version print version number, then exit
51
52 Report bugs and patches to <config-patches@gnu.org>."
53
54 version="\
55 GNU config.guess ($timestamp)
56
57 Originally written by Per Bothner.
58 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
59 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
60 Software Foundation, Inc.
61
62 This is free software; see the source for copying conditions. There is NO
63 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
64
65 help="
66 Try \`$me --help' for more information."
67
68 # Parse command line
69 while test $# -gt 0 ; do
70 case $1 in
71 --time-stamp | --time* | -t )
72 echo "$timestamp" ; exit ;;
73 --version | -v )
74 echo "$version" ; exit ;;
75 --help | --h* | -h )
76 echo "$usage"; exit ;;
77 -- ) # Stop option processing
78 shift; break ;;
79 - ) # Use stdin as input.
80 break ;;
81 -* )
82 echo "$me: invalid option $1$help" >&2
83 exit 1 ;;
84 * )
85 break ;;
86 esac
87 done
88
89 if test $# != 0; then
90 echo "$me: too many arguments$help" >&2
91 exit 1
92 fi
93
94 trap 'exit 1' 1 2 15
95
96 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a
97 # compiler to aid in system detection is discouraged as it requires
98 # temporary files to be created and, as you can see below, it is a
99 # headache to deal with in a portable fashion.
100
101 # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
102 # use `HOST_CC' if defined, but it is deprecated.
103
104 # Portable tmp directory creation inspired by the Autoconf team.
105
106 set_cc_for_build='
107 trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
108 trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
109 : ${TMPDIR=/tmp} ;
110 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
111 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
112 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
113 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
114 dummy=$tmp/dummy ;
115 tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
116 case $CC_FOR_BUILD,$HOST_CC,$CC in
117 ,,) echo "int x;" > $dummy.c ;
118 for c in cc gcc c89 c99 ; do
119 if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
120 CC_FOR_BUILD="$c"; break ;
121 fi ;
122 done ;
123 if test x"$CC_FOR_BUILD" = x ; then
124 CC_FOR_BUILD=no_compiler_found ;
125 fi
126 ;;
127 ,,*) CC_FOR_BUILD=$CC ;;
128 ,*,*) CC_FOR_BUILD=$HOST_CC ;;
129 esac ; set_cc_for_build= ;'
130
131 # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
132 # (ghazi@noc.rutgers.edu 1994-08-24)
133 if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
134 PATH=$PATH:/.attbin ; export PATH
135 fi
136
137 UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
138 UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
139 UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
140 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
141
142 # Note: order is significant - the case branches are not exclusive.
143
144 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
145 *:NetBSD:*:*)
146 # NetBSD (nbsd) targets should (where applicable) match one or
147 # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
148 # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
149 # switched to ELF, *-*-netbsd* would select the old
150 # object file format. This provides both forward
151 # compatibility and a consistent mechanism for selecting the
152 # object file format.
153 #
154 # Note: NetBSD doesn't particularly care about the vendor
155 # portion of the name. We always set it to "unknown".
156 sysctl="sysctl -n hw.machine_arch"
157 UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
158 /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
159 case "${UNAME_MACHINE_ARCH}" in
160 armeb) machine=armeb-unknown ;;
161 arm*) machine=arm-unknown ;;
162 sh3el) machine=shl-unknown ;;
163 sh3eb) machine=sh-unknown ;;
164 sh5el) machine=sh5le-unknown ;;
165 *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
166 esac
167 # The Operating System including object format, if it has switched
168 # to ELF recently, or will in the future.
169 case "${UNAME_MACHINE_ARCH}" in
170 arm*|i386|m68k|ns32k|sh3*|sparc|vax)
171 eval $set_cc_for_build
172 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
173 | grep -q __ELF__
174 then
175 # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
176 # Return netbsd for either. FIX?
177 os=netbsd
178 else
179 os=netbsdelf
180 fi
181 ;;
182 *)
183 os=netbsd
184 ;;
185 esac
186 # The OS release
187 # Debian GNU/NetBSD machines have a different userland, and
188 # thus, need a distinct triplet. However, they do not need
189 # kernel version information, so it can be replaced with a
190 # suitable tag, in the style of linux-gnu.
191 case "${UNAME_VERSION}" in
192 Debian*)
193 release='-gnu'
194 ;;
195 *)
196 release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
197 ;;
198 esac
199 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
200 # contains redundant information, the shorter form:
201 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
202 echo "${machine}-${os}${release}"
203 exit ;;
204 *:OpenBSD:*:*)
205 UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
206 echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
207 exit ;;
208 *:ekkoBSD:*:*)
209 echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
210 exit ;;
211 *:SolidBSD:*:*)
212 echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
213 exit ;;
214 macppc:MirBSD:*:*)
215 echo powerpc-unknown-mirbsd${UNAME_RELEASE}
216 exit ;;
217 *:MirBSD:*:*)
218 echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
219 exit ;;
220 alpha:OSF1:*:*)
221 case $UNAME_RELEASE in
222 *4.0)
223 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
224 ;;
225 *5.*)
226 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
227 ;;
228 esac
229 # According to Compaq, /usr/sbin/psrinfo has been available on
230 # OSF/1 and Tru64 systems produced since 1995. I hope that
231 # covers most systems running today. This code pipes the CPU
232 # types through head -n 1, so we only detect the type of CPU 0.
233 ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
234 case "$ALPHA_CPU_TYPE" in
235 "EV4 (21064)")
236 UNAME_MACHINE="alpha" ;;
237 "EV4.5 (21064)")
238 UNAME_MACHINE="alpha" ;;
239 "LCA4 (21066/21068)")
240 UNAME_MACHINE="alpha" ;;
241 "EV5 (21164)")
242 UNAME_MACHINE="alphaev5" ;;
243 "EV5.6 (21164A)")
244 UNAME_MACHINE="alphaev56" ;;
245 "EV5.6 (21164PC)")
246 UNAME_MACHINE="alphapca56" ;;
247 "EV5.7 (21164PC)")
248 UNAME_MACHINE="alphapca57" ;;
249 "EV6 (21264)")
250 UNAME_MACHINE="alphaev6" ;;
251 "EV6.7 (21264A)")
252 UNAME_MACHINE="alphaev67" ;;
253 "EV6.8CB (21264C)")
254 UNAME_MACHINE="alphaev68" ;;
255 "EV6.8AL (21264B)")
256 UNAME_MACHINE="alphaev68" ;;
257 "EV6.8CX (21264D)")
258 UNAME_MACHINE="alphaev68" ;;
259 "EV6.9A (21264/EV69A)")
260 UNAME_MACHINE="alphaev69" ;;
261 "EV7 (21364)")
262 UNAME_MACHINE="alphaev7" ;;
263 "EV7.9 (21364A)")
264 UNAME_MACHINE="alphaev79" ;;
265 esac
266 # A Pn.n version is a patched version.
267 # A Vn.n version is a released version.
268 # A Tn.n version is a released field test version.
269 # A Xn.n version is an unreleased experimental baselevel.
270 # 1.2 uses "1.2" for uname -r.
271 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
272 exit ;;
273 Alpha\ *:Windows_NT*:*)
274 # How do we know it's Interix rather than the generic POSIX subsystem?
275 # Should we change UNAME_MACHINE based on the output of uname instead
276 # of the specific Alpha model?
277 echo alpha-pc-interix
278 exit ;;
279 21064:Windows_NT:50:3)
280 echo alpha-dec-winnt3.5
281 exit ;;
282 Amiga*:UNIX_System_V:4.0:*)
283 echo m68k-unknown-sysv4
284 exit ;;
285 *:[Aa]miga[Oo][Ss]:*:*)
286 echo ${UNAME_MACHINE}-unknown-amigaos
287 exit ;;
288 *:[Mm]orph[Oo][Ss]:*:*)
289 echo ${UNAME_MACHINE}-unknown-morphos
290 exit ;;
291 *:OS/390:*:*)
292 echo i370-ibm-openedition
293 exit ;;
294 *:z/VM:*:*)
295 echo s390-ibm-zvmoe
296 exit ;;
297 *:OS400:*:*)
298 echo powerpc-ibm-os400
299 exit ;;
300 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
301 echo arm-acorn-riscix${UNAME_RELEASE}
302 exit ;;
303 arm:riscos:*:*|arm:RISCOS:*:*)
304 echo arm-unknown-riscos
305 exit ;;
306 SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
307 echo hppa1.1-hitachi-hiuxmpp
308 exit ;;
309 Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
310 # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
311 if test "`(/bin/universe) 2>/dev/null`" = att ; then
312 echo pyramid-pyramid-sysv3
313 else
314 echo pyramid-pyramid-bsd
315 fi
316 exit ;;
317 NILE*:*:*:dcosx)
318 echo pyramid-pyramid-svr4
319 exit ;;
320 DRS?6000:unix:4.0:6*)
321 echo sparc-icl-nx6
322 exit ;;
323 DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
324 case `/usr/bin/uname -p` in
325 sparc) echo sparc-icl-nx7; exit ;;
326 esac ;;
327 s390x:SunOS:*:*)
328 echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
329 exit ;;
330 sun4H:SunOS:5.*:*)
331 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
332 exit ;;
333 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
334 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
335 exit ;;
336 i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
337 echo i386-pc-auroraux${UNAME_RELEASE}
338 exit ;;
339 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
340 eval $set_cc_for_build
341 SUN_ARCH="i386"
342 # If there is a compiler, see if it is configured for 64-bit objects.
343 # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
344 # This test works for both compilers.
345 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
346 if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
347 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
348 grep IS_64BIT_ARCH >/dev/null
349 then
350 SUN_ARCH="x86_64"
351 fi
352 fi
353 echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
354 exit ;;
355 sun4*:SunOS:6*:*)
356 # According to config.sub, this is the proper way to canonicalize
357 # SunOS6. Hard to guess exactly what SunOS6 will be like, but
358 # it's likely to be more like Solaris than SunOS4.
359 echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
360 exit ;;
361 sun4*:SunOS:*:*)
362 case "`/usr/bin/arch -k`" in
363 Series*|S4*)
364 UNAME_RELEASE=`uname -v`
365 ;;
366 esac
367 # Japanese Language versions have a version number like `4.1.3-JL'.
368 echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
369 exit ;;
370 sun3*:SunOS:*:*)
371 echo m68k-sun-sunos${UNAME_RELEASE}
372 exit ;;
373 sun*:*:4.2BSD:*)
374 UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
375 test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
376 case "`/bin/arch`" in
377 sun3)
378 echo m68k-sun-sunos${UNAME_RELEASE}
379 ;;
380 sun4)
381 echo sparc-sun-sunos${UNAME_RELEASE}
382 ;;
383 esac
384 exit ;;
385 aushp:SunOS:*:*)
386 echo sparc-auspex-sunos${UNAME_RELEASE}
387 exit ;;
388 # The situation for MiNT is a little confusing. The machine name
389 # can be virtually everything (everything which is not
390 # "atarist" or "atariste" at least should have a processor
391 # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
392 # to the lowercase version "mint" (or "freemint"). Finally
393 # the system name "TOS" denotes a system which is actually not
394 # MiNT. But MiNT is downward compatible to TOS, so this should
395 # be no problem.
396 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
397 echo m68k-atari-mint${UNAME_RELEASE}
398 exit ;;
399 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
400 echo m68k-atari-mint${UNAME_RELEASE}
401 exit ;;
402 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
403 echo m68k-atari-mint${UNAME_RELEASE}
404 exit ;;
405 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
406 echo m68k-milan-mint${UNAME_RELEASE}
407 exit ;;
408 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
409 echo m68k-hades-mint${UNAME_RELEASE}
410 exit ;;
411 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
412 echo m68k-unknown-mint${UNAME_RELEASE}
413 exit ;;
414 m68k:machten:*:*)
415 echo m68k-apple-machten${UNAME_RELEASE}
416 exit ;;
417 powerpc:machten:*:*)
418 echo powerpc-apple-machten${UNAME_RELEASE}
419 exit ;;
420 RISC*:Mach:*:*)
421 echo mips-dec-mach_bsd4.3
422 exit ;;
423 RISC*:ULTRIX:*:*)
424 echo mips-dec-ultrix${UNAME_RELEASE}
425 exit ;;
426 VAX*:ULTRIX*:*:*)
427 echo vax-dec-ultrix${UNAME_RELEASE}
428 exit ;;
429 2020:CLIX:*:* | 2430:CLIX:*:*)
430 echo clipper-intergraph-clix${UNAME_RELEASE}
431 exit ;;
432 mips:*:*:UMIPS | mips:*:*:RISCos)
433 eval $set_cc_for_build
434 sed 's/^ //' << EOF >$dummy.c
435 #ifdef __cplusplus
436 #include <stdio.h> /* for printf() prototype */
437 int main (int argc, char *argv[]) {
438 #else
439 int main (argc, argv) int argc; char *argv[]; {
440 #endif
441 #if defined (host_mips) && defined (MIPSEB)
442 #if defined (SYSTYPE_SYSV)
443 printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
444 #endif
445 #if defined (SYSTYPE_SVR4)
446 printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
447 #endif
448 #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
449 printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
450 #endif
451 #endif
452 exit (-1);
453 }
454 EOF
455 $CC_FOR_BUILD -o $dummy $dummy.c &&
456 dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
457 SYSTEM_NAME=`$dummy $dummyarg` &&
458 { echo "$SYSTEM_NAME"; exit; }
459 echo mips-mips-riscos${UNAME_RELEASE}
460 exit ;;
461 Motorola:PowerMAX_OS:*:*)
462 echo powerpc-motorola-powermax
463 exit ;;
464 Motorola:*:4.3:PL8-*)
465 echo powerpc-harris-powermax
466 exit ;;
467 Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
468 echo powerpc-harris-powermax
469 exit ;;
470 Night_Hawk:Power_UNIX:*:*)
471 echo powerpc-harris-powerunix
472 exit ;;
473 m88k:CX/UX:7*:*)
474 echo m88k-harris-cxux7
475 exit ;;
476 m88k:*:4*:R4*)
477 echo m88k-motorola-sysv4
478 exit ;;
479 m88k:*:3*:R3*)
480 echo m88k-motorola-sysv3
481 exit ;;
482 AViiON:dgux:*:*)
483 # DG/UX returns AViiON for all architectures
484 UNAME_PROCESSOR=`/usr/bin/uname -p`
485 if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
486 then
487 if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
488 [ ${TARGET_BINARY_INTERFACE}x = x ]
489 then
490 echo m88k-dg-dgux${UNAME_RELEASE}
491 else
492 echo m88k-dg-dguxbcs${UNAME_RELEASE}
493 fi
494 else
495 echo i586-dg-dgux${UNAME_RELEASE}
496 fi
497 exit ;;
498 M88*:DolphinOS:*:*) # DolphinOS (SVR3)
499 echo m88k-dolphin-sysv3
500 exit ;;
501 M88*:*:R3*:*)
502 # Delta 88k system running SVR3
503 echo m88k-motorola-sysv3
504 exit ;;
505 XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
506 echo m88k-tektronix-sysv3
507 exit ;;
508 Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
509 echo m68k-tektronix-bsd
510 exit ;;
511 *:IRIX*:*:*)
512 echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
513 exit ;;
514 ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
515 echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
516 exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
517 i*86:AIX:*:*)
518 echo i386-ibm-aix
519 exit ;;
520 ia64:AIX:*:*)
521 if [ -x /usr/bin/oslevel ] ; then
522 IBM_REV=`/usr/bin/oslevel`
523 else
524 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
525 fi
526 echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
527 exit ;;
528 *:AIX:2:3)
529 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
530 eval $set_cc_for_build
531 sed 's/^ //' << EOF >$dummy.c
532 #include <sys/systemcfg.h>
533
534 main()
535 {
536 if (!__power_pc())
537 exit(1);
538 puts("powerpc-ibm-aix3.2.5");
539 exit(0);
540 }
541 EOF
542 if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
543 then
544 echo "$SYSTEM_NAME"
545 else
546 echo rs6000-ibm-aix3.2.5
547 fi
548 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
549 echo rs6000-ibm-aix3.2.4
550 else
551 echo rs6000-ibm-aix3.2
552 fi
553 exit ;;
554 *:AIX:*:[456])
555 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
556 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
557 IBM_ARCH=rs6000
558 else
559 IBM_ARCH=powerpc
560 fi
561 if [ -x /usr/bin/oslevel ] ; then
562 IBM_REV=`/usr/bin/oslevel`
563 else
564 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
565 fi
566 echo ${IBM_ARCH}-ibm-aix${IBM_REV}
567 exit ;;
568 *:AIX:*:*)
569 echo rs6000-ibm-aix
570 exit ;;
571 ibmrt:4.4BSD:*|romp-ibm:BSD:*)
572 echo romp-ibm-bsd4.4
573 exit ;;
574 ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
575 echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
576 exit ;; # report: romp-ibm BSD 4.3
577 *:BOSX:*:*)
578 echo rs6000-bull-bosx
579 exit ;;
580 DPX/2?00:B.O.S.:*:*)
581 echo m68k-bull-sysv3
582 exit ;;
583 9000/[34]??:4.3bsd:1.*:*)
584 echo m68k-hp-bsd
585 exit ;;
586 hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
587 echo m68k-hp-bsd4.4
588 exit ;;
589 9000/[34678]??:HP-UX:*:*)
590 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
591 case "${UNAME_MACHINE}" in
592 9000/31? ) HP_ARCH=m68000 ;;
593 9000/[34]?? ) HP_ARCH=m68k ;;
594 9000/[678][0-9][0-9])
595 if [ -x /usr/bin/getconf ]; then
596 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
597 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
598 case "${sc_cpu_version}" in
599 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
600 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
601 532) # CPU_PA_RISC2_0
602 case "${sc_kernel_bits}" in
603 32) HP_ARCH="hppa2.0n" ;;
604 64) HP_ARCH="hppa2.0w" ;;
605 '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
606 esac ;;
607 esac
608 fi
609 if [ "${HP_ARCH}" = "" ]; then
610 eval $set_cc_for_build
611 sed 's/^ //' << EOF >$dummy.c
612
613 #define _HPUX_SOURCE
614 #include <stdlib.h>
615 #include <unistd.h>
616
617 int main ()
618 {
619 #if defined(_SC_KERNEL_BITS)
620 long bits = sysconf(_SC_KERNEL_BITS);
621 #endif
622 long cpu = sysconf (_SC_CPU_VERSION);
623
624 switch (cpu)
625 {
626 case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
627 case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
628 case CPU_PA_RISC2_0:
629 #if defined(_SC_KERNEL_BITS)
630 switch (bits)
631 {
632 case 64: puts ("hppa2.0w"); break;
633 case 32: puts ("hppa2.0n"); break;
634 default: puts ("hppa2.0"); break;
635 } break;
636 #else /* !defined(_SC_KERNEL_BITS) */
637 puts ("hppa2.0"); break;
638 #endif
639 default: puts ("hppa1.0"); break;
640 }
641 exit (0);
642 }
643 EOF
644 (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
645 test -z "$HP_ARCH" && HP_ARCH=hppa
646 fi ;;
647 esac
648 if [ ${HP_ARCH} = "hppa2.0w" ]
649 then
650 eval $set_cc_for_build
651
652 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
653 # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
654 # generating 64-bit code. GNU and HP use different nomenclature:
655 #
656 # $ CC_FOR_BUILD=cc ./config.guess
657 # => hppa2.0w-hp-hpux11.23
658 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
659 # => hppa64-hp-hpux11.23
660
661 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
662 grep -q __LP64__
663 then
664 HP_ARCH="hppa2.0w"
665 else
666 HP_ARCH="hppa64"
667 fi
668 fi
669 echo ${HP_ARCH}-hp-hpux${HPUX_REV}
670 exit ;;
671 ia64:HP-UX:*:*)
672 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
673 echo ia64-hp-hpux${HPUX_REV}
674 exit ;;
675 3050*:HI-UX:*:*)
676 eval $set_cc_for_build
677 sed 's/^ //' << EOF >$dummy.c
678 #include <unistd.h>
679 int
680 main ()
681 {
682 long cpu = sysconf (_SC_CPU_VERSION);
683 /* The order matters, because CPU_IS_HP_MC68K erroneously returns
684 true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
685 results, however. */
686 if (CPU_IS_PA_RISC (cpu))
687 {
688 switch (cpu)
689 {
690 case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
691 case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
692 case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
693 default: puts ("hppa-hitachi-hiuxwe2"); break;
694 }
695 }
696 else if (CPU_IS_HP_MC68K (cpu))
697 puts ("m68k-hitachi-hiuxwe2");
698 else puts ("unknown-hitachi-hiuxwe2");
699 exit (0);
700 }
701 EOF
702 $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
703 { echo "$SYSTEM_NAME"; exit; }
704 echo unknown-hitachi-hiuxwe2
705 exit ;;
706 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
707 echo hppa1.1-hp-bsd
708 exit ;;
709 9000/8??:4.3bsd:*:*)
710 echo hppa1.0-hp-bsd
711 exit ;;
712 *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
713 echo hppa1.0-hp-mpeix
714 exit ;;
715 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
716 echo hppa1.1-hp-osf
717 exit ;;
718 hp8??:OSF1:*:*)
719 echo hppa1.0-hp-osf
720 exit ;;
721 i*86:OSF1:*:*)
722 if [ -x /usr/sbin/sysversion ] ; then
723 echo ${UNAME_MACHINE}-unknown-osf1mk
724 else
725 echo ${UNAME_MACHINE}-unknown-osf1
726 fi
727 exit ;;
728 parisc*:Lites*:*:*)
729 echo hppa1.1-hp-lites
730 exit ;;
731 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
732 echo c1-convex-bsd
733 exit ;;
734 C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
735 if getsysinfo -f scalar_acc
736 then echo c32-convex-bsd
737 else echo c2-convex-bsd
738 fi
739 exit ;;
740 C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
741 echo c34-convex-bsd
742 exit ;;
743 C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
744 echo c38-convex-bsd
745 exit ;;
746 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
747 echo c4-convex-bsd
748 exit ;;
749 CRAY*Y-MP:*:*:*)
750 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
751 exit ;;
752 CRAY*[A-Z]90:*:*:*)
753 echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
754 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
755 -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
756 -e 's/\.[^.]*$/.X/'
757 exit ;;
758 CRAY*TS:*:*:*)
759 echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
760 exit ;;
761 CRAY*T3E:*:*:*)
762 echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
763 exit ;;
764 CRAY*SV1:*:*:*)
765 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
766 exit ;;
767 *:UNICOS/mp:*:*)
768 echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
769 exit ;;
770 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
771 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
772 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
773 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
774 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
775 exit ;;
776 5000:UNIX_System_V:4.*:*)
777 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
778 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
779 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
780 exit ;;
781 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
782 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
783 exit ;;
784 sparc*:BSD/OS:*:*)
785 echo sparc-unknown-bsdi${UNAME_RELEASE}
786 exit ;;
787 *:BSD/OS:*:*)
788 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
789 exit ;;
790 *:FreeBSD:*:*)
791 case ${UNAME_MACHINE} in
792 pc98)
793 echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
794 amd64)
795 echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
796 *)
797 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
798 esac
799 exit ;;
800 i*:CYGWIN*:*)
801 echo ${UNAME_MACHINE}-pc-cygwin
802 exit ;;
803 *:MINGW*:*)
804 echo ${UNAME_MACHINE}-pc-mingw32
805 exit ;;
806 i*:windows32*:*)
807 # uname -m includes "-pc" on this system.
808 echo ${UNAME_MACHINE}-mingw32
809 exit ;;
810 i*:PW*:*)
811 echo ${UNAME_MACHINE}-pc-pw32
812 exit ;;
813 *:Interix*:*)
814 case ${UNAME_MACHINE} in
815 x86)
816 echo i586-pc-interix${UNAME_RELEASE}
817 exit ;;
818 authenticamd | genuineintel | EM64T)
819 echo x86_64-unknown-interix${UNAME_RELEASE}
820 exit ;;
821 IA64)
822 echo ia64-unknown-interix${UNAME_RELEASE}
823 exit ;;
824 esac ;;
825 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
826 echo i${UNAME_MACHINE}-pc-mks
827 exit ;;
828 8664:Windows_NT:*)
829 echo x86_64-pc-mks
830 exit ;;
831 i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
832 # How do we know it's Interix rather than the generic POSIX subsystem?
833 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
834 # UNAME_MACHINE based on the output of uname instead of i386?
835 echo i586-pc-interix
836 exit ;;
837 i*:UWIN*:*)
838 echo ${UNAME_MACHINE}-pc-uwin
839 exit ;;
840 amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
841 echo x86_64-unknown-cygwin
842 exit ;;
843 p*:CYGWIN*:*)
844 echo powerpcle-unknown-cygwin
845 exit ;;
846 prep*:SunOS:5.*:*)
847 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
848 exit ;;
849 *:GNU:*:*)
850 # the GNU system
851 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
852 exit ;;
853 *:GNU/*:*:*)
854 # other systems with GNU libc and userland
855 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
856 exit ;;
857 i*86:Minix:*:*)
858 echo ${UNAME_MACHINE}-pc-minix
859 exit ;;
860 alpha:Linux:*:*)
861 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
862 EV5) UNAME_MACHINE=alphaev5 ;;
863 EV56) UNAME_MACHINE=alphaev56 ;;
864 PCA56) UNAME_MACHINE=alphapca56 ;;
865 PCA57) UNAME_MACHINE=alphapca56 ;;
866 EV6) UNAME_MACHINE=alphaev6 ;;
867 EV67) UNAME_MACHINE=alphaev67 ;;
868 EV68*) UNAME_MACHINE=alphaev68 ;;
869 esac
870 objdump --private-headers /bin/sh | grep -q ld.so.1
871 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
872 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
873 exit ;;
874 arm*:Linux:*:*)
875 eval $set_cc_for_build
876 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
877 | grep -q __ARM_EABI__
878 then
879 echo ${UNAME_MACHINE}-unknown-linux-gnu
880 else
881 echo ${UNAME_MACHINE}-unknown-linux-gnueabi
882 fi
883 exit ;;
884 avr32*:Linux:*:*)
885 echo ${UNAME_MACHINE}-unknown-linux-gnu
886 exit ;;
887 cris:Linux:*:*)
888 echo cris-axis-linux-gnu
889 exit ;;
890 crisv32:Linux:*:*)
891 echo crisv32-axis-linux-gnu
892 exit ;;
893 frv:Linux:*:*)
894 echo frv-unknown-linux-gnu
895 exit ;;
896 i*86:Linux:*:*)
897 LIBC=gnu
898 eval $set_cc_for_build
899 sed 's/^ //' << EOF >$dummy.c
900 #ifdef __dietlibc__
901 LIBC=dietlibc
902 #endif
903 EOF
904 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
905 echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
906 exit ;;
907 ia64:Linux:*:*)
908 echo ${UNAME_MACHINE}-unknown-linux-gnu
909 exit ;;
910 m32r*:Linux:*:*)
911 echo ${UNAME_MACHINE}-unknown-linux-gnu
912 exit ;;
913 m68*:Linux:*:*)
914 echo ${UNAME_MACHINE}-unknown-linux-gnu
915 exit ;;
916 mips:Linux:*:* | mips64:Linux:*:*)
917 eval $set_cc_for_build
918 sed 's/^ //' << EOF >$dummy.c
919 #undef CPU
920 #undef ${UNAME_MACHINE}
921 #undef ${UNAME_MACHINE}el
922 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
923 CPU=${UNAME_MACHINE}el
924 #else
925 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
926 CPU=${UNAME_MACHINE}
927 #else
928 CPU=
929 #endif
930 #endif
931 EOF
932 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
933 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
934 ;;
935 or32:Linux:*:*)
936 echo or32-unknown-linux-gnu
937 exit ;;
938 padre:Linux:*:*)
939 echo sparc-unknown-linux-gnu
940 exit ;;
941 parisc64:Linux:*:* | hppa64:Linux:*:*)
942 echo hppa64-unknown-linux-gnu
943 exit ;;
944 parisc:Linux:*:* | hppa:Linux:*:*)
945 # Look for CPU level
946 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
947 PA7*) echo hppa1.1-unknown-linux-gnu ;;
948 PA8*) echo hppa2.0-unknown-linux-gnu ;;
949 *) echo hppa-unknown-linux-gnu ;;
950 esac
951 exit ;;
952 ppc64:Linux:*:*)
953 echo powerpc64-unknown-linux-gnu
954 exit ;;
955 ppc:Linux:*:*)
956 echo powerpc-unknown-linux-gnu
957 exit ;;
958 s390:Linux:*:* | s390x:Linux:*:*)
959 echo ${UNAME_MACHINE}-ibm-linux
960 exit ;;
961 sh64*:Linux:*:*)
962 echo ${UNAME_MACHINE}-unknown-linux-gnu
963 exit ;;
964 sh*:Linux:*:*)
965 echo ${UNAME_MACHINE}-unknown-linux-gnu
966 exit ;;
967 sparc:Linux:*:* | sparc64:Linux:*:*)
968 echo ${UNAME_MACHINE}-unknown-linux-gnu
969 exit ;;
970 vax:Linux:*:*)
971 echo ${UNAME_MACHINE}-dec-linux-gnu
972 exit ;;
973 x86_64:Linux:*:*)
974 echo x86_64-unknown-linux-gnu
975 exit ;;
976 xtensa*:Linux:*:*)
977 echo ${UNAME_MACHINE}-unknown-linux-gnu
978 exit ;;
979 i*86:DYNIX/ptx:4*:*)
980 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
981 # earlier versions are messed up and put the nodename in both
982 # sysname and nodename.
983 echo i386-sequent-sysv4
984 exit ;;
985 i*86:UNIX_SV:4.2MP:2.*)
986 # Unixware is an offshoot of SVR4, but it has its own version
987 # number series starting with 2...
988 # I am not positive that other SVR4 systems won't match this,
989 # I just have to hope. -- rms.
990 # Use sysv4.2uw... so that sysv4* matches it.
991 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
992 exit ;;
993 i*86:OS/2:*:*)
994 # If we were able to find `uname', then EMX Unix compatibility
995 # is probably installed.
996 echo ${UNAME_MACHINE}-pc-os2-emx
997 exit ;;
998 i*86:XTS-300:*:STOP)
999 echo ${UNAME_MACHINE}-unknown-stop
1000 exit ;;
1001 i*86:atheos:*:*)
1002 echo ${UNAME_MACHINE}-unknown-atheos
1003 exit ;;
1004 i*86:syllable:*:*)
1005 echo ${UNAME_MACHINE}-pc-syllable
1006 exit ;;
1007 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
1008 echo i386-unknown-lynxos${UNAME_RELEASE}
1009 exit ;;
1010 i*86:*DOS:*:*)
1011 echo ${UNAME_MACHINE}-pc-msdosdjgpp
1012 exit ;;
1013 i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
1014 UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
1015 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
1016 echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
1017 else
1018 echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
1019 fi
1020 exit ;;
1021 i*86:*:5:[678]*)
1022 # UnixWare 7.x, OpenUNIX and OpenServer 6.
1023 case `/bin/uname -X | grep "^Machine"` in
1024 *486*) UNAME_MACHINE=i486 ;;
1025 *Pentium) UNAME_MACHINE=i586 ;;
1026 *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
1027 esac
1028 echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
1029 exit ;;
1030 i*86:*:3.2:*)
1031 if test -f /usr/options/cb.name; then
1032 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
1033 echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
1034 elif /bin/uname -X 2>/dev/null >/dev/null ; then
1035 UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
1036 (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
1037 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
1038 && UNAME_MACHINE=i586
1039 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
1040 && UNAME_MACHINE=i686
1041 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
1042 && UNAME_MACHINE=i686
1043 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
1044 else
1045 echo ${UNAME_MACHINE}-pc-sysv32
1046 fi
1047 exit ;;
1048 pc:*:*:*)
1049 # Left here for compatibility:
1050 # uname -m prints for DJGPP always 'pc', but it prints nothing about
1051 # the processor, so we play safe by assuming i586.
1052 # Note: whatever this is, it MUST be the same as what config.sub
1053 # prints for the "djgpp" host, or else GDB configury will decide that
1054 # this is a cross-build.
1055 echo i586-pc-msdosdjgpp
1056 exit ;;
1057 Intel:Mach:3*:*)
1058 echo i386-pc-mach3
1059 exit ;;
1060 paragon:*:*:*)
1061 echo i860-intel-osf1
1062 exit ;;
1063 i860:*:4.*:*) # i860-SVR4
1064 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
1065 echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
1066 else # Add other i860-SVR4 vendors below as they are discovered.
1067 echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
1068 fi
1069 exit ;;
1070 mini*:CTIX:SYS*5:*)
1071 # "miniframe"
1072 echo m68010-convergent-sysv
1073 exit ;;
1074 mc68k:UNIX:SYSTEM5:3.51m)
1075 echo m68k-convergent-sysv
1076 exit ;;
1077 M680?0:D-NIX:5.3:*)
1078 echo m68k-diab-dnix
1079 exit ;;
1080 M68*:*:R3V[5678]*:*)
1081 test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
1082 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
1083 OS_REL=''
1084 test -r /etc/.relid \
1085 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1086 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1087 && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1088 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1089 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1090 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1091 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1092 && { echo i486-ncr-sysv4; exit; } ;;
1093 NCR*:*:4.2:* | MPRAS*:*:4.2:*)
1094 OS_REL='.3'
1095 test -r /etc/.relid \
1096 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1097 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1098 && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1099 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1100 && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
1101 /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
1102 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1103 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1104 echo m68k-unknown-lynxos${UNAME_RELEASE}
1105 exit ;;
1106 mc68030:UNIX_System_V:4.*:*)
1107 echo m68k-atari-sysv4
1108 exit ;;
1109 TSUNAMI:LynxOS:2.*:*)
1110 echo sparc-unknown-lynxos${UNAME_RELEASE}
1111 exit ;;
1112 rs6000:LynxOS:2.*:*)
1113 echo rs6000-unknown-lynxos${UNAME_RELEASE}
1114 exit ;;
1115 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
1116 echo powerpc-unknown-lynxos${UNAME_RELEASE}
1117 exit ;;
1118 SM[BE]S:UNIX_SV:*:*)
1119 echo mips-dde-sysv${UNAME_RELEASE}
1120 exit ;;
1121 RM*:ReliantUNIX-*:*:*)
1122 echo mips-sni-sysv4
1123 exit ;;
1124 RM*:SINIX-*:*:*)
1125 echo mips-sni-sysv4
1126 exit ;;
1127 *:SINIX-*:*:*)
1128 if uname -p 2>/dev/null >/dev/null ; then
1129 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1130 echo ${UNAME_MACHINE}-sni-sysv4
1131 else
1132 echo ns32k-sni-sysv
1133 fi
1134 exit ;;
1135 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1136 # says <Richard.M.Bartel@ccMail.Census.GOV>
1137 echo i586-unisys-sysv4
1138 exit ;;
1139 *:UNIX_System_V:4*:FTX*)
1140 # From Gerald Hewes <hewes@openmarket.com>.
1141 # How about differentiating between stratus architectures? -djm
1142 echo hppa1.1-stratus-sysv4
1143 exit ;;
1144 *:*:*:FTX*)
1145 # From seanf@swdc.stratus.com.
1146 echo i860-stratus-sysv4
1147 exit ;;
1148 i*86:VOS:*:*)
1149 # From Paul.Green@stratus.com.
1150 echo ${UNAME_MACHINE}-stratus-vos
1151 exit ;;
1152 *:VOS:*:*)
1153 # From Paul.Green@stratus.com.
1154 echo hppa1.1-stratus-vos
1155 exit ;;
1156 mc68*:A/UX:*:*)
1157 echo m68k-apple-aux${UNAME_RELEASE}
1158 exit ;;
1159 news*:NEWS-OS:6*:*)
1160 echo mips-sony-newsos6
1161 exit ;;
1162 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
1163 if [ -d /usr/nec ]; then
1164 echo mips-nec-sysv${UNAME_RELEASE}
1165 else
1166 echo mips-unknown-sysv${UNAME_RELEASE}
1167 fi
1168 exit ;;
1169 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
1170 echo powerpc-be-beos
1171 exit ;;
1172 BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
1173 echo powerpc-apple-beos
1174 exit ;;
1175 BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
1176 echo i586-pc-beos
1177 exit ;;
1178 BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
1179 echo i586-pc-haiku
1180 exit ;;
1181 SX-4:SUPER-UX:*:*)
1182 echo sx4-nec-superux${UNAME_RELEASE}
1183 exit ;;
1184 SX-5:SUPER-UX:*:*)
1185 echo sx5-nec-superux${UNAME_RELEASE}
1186 exit ;;
1187 SX-6:SUPER-UX:*:*)
1188 echo sx6-nec-superux${UNAME_RELEASE}
1189 exit ;;
1190 SX-7:SUPER-UX:*:*)
1191 echo sx7-nec-superux${UNAME_RELEASE}
1192 exit ;;
1193 SX-8:SUPER-UX:*:*)
1194 echo sx8-nec-superux${UNAME_RELEASE}
1195 exit ;;
1196 SX-8R:SUPER-UX:*:*)
1197 echo sx8r-nec-superux${UNAME_RELEASE}
1198 exit ;;
1199 Power*:Rhapsody:*:*)
1200 echo powerpc-apple-rhapsody${UNAME_RELEASE}
1201 exit ;;
1202 *:Rhapsody:*:*)
1203 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1204 exit ;;
1205 *:Darwin:*:*)
1206 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1207 case $UNAME_PROCESSOR in
1208 i386)
1209 eval $set_cc_for_build
1210 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
1211 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1212 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
1213 grep IS_64BIT_ARCH >/dev/null
1214 then
1215 UNAME_PROCESSOR="x86_64"
1216 fi
1217 fi ;;
1218 unknown) UNAME_PROCESSOR=powerpc ;;
1219 esac
1220 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1221 exit ;;
1222 *:procnto*:*:* | *:QNX:[0123456789]*:*)
1223 UNAME_PROCESSOR=`uname -p`
1224 if test "$UNAME_PROCESSOR" = "x86"; then
1225 UNAME_PROCESSOR=i386
1226 UNAME_MACHINE=pc
1227 fi
1228 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
1229 exit ;;
1230 *:QNX:*:4*)
1231 echo i386-pc-qnx
1232 exit ;;
1233 NSE-?:NONSTOP_KERNEL:*:*)
1234 echo nse-tandem-nsk${UNAME_RELEASE}
1235 exit ;;
1236 NSR-?:NONSTOP_KERNEL:*:*)
1237 echo nsr-tandem-nsk${UNAME_RELEASE}
1238 exit ;;
1239 *:NonStop-UX:*:*)
1240 echo mips-compaq-nonstopux
1241 exit ;;
1242 BS2000:POSIX*:*:*)
1243 echo bs2000-siemens-sysv
1244 exit ;;
1245 DS/*:UNIX_System_V:*:*)
1246 echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
1247 exit ;;
1248 *:Plan9:*:*)
1249 # "uname -m" is not consistent, so use $cputype instead. 386
1250 # is converted to i386 for consistency with other x86
1251 # operating systems.
1252 if test "$cputype" = "386"; then
1253 UNAME_MACHINE=i386
1254 else
1255 UNAME_MACHINE="$cputype"
1256 fi
1257 echo ${UNAME_MACHINE}-unknown-plan9
1258 exit ;;
1259 *:TOPS-10:*:*)
1260 echo pdp10-unknown-tops10
1261 exit ;;
1262 *:TENEX:*:*)
1263 echo pdp10-unknown-tenex
1264 exit ;;
1265 KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
1266 echo pdp10-dec-tops20
1267 exit ;;
1268 XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
1269 echo pdp10-xkl-tops20
1270 exit ;;
1271 *:TOPS-20:*:*)
1272 echo pdp10-unknown-tops20
1273 exit ;;
1274 *:ITS:*:*)
1275 echo pdp10-unknown-its
1276 exit ;;
1277 SEI:*:*:SEIUX)
1278 echo mips-sei-seiux${UNAME_RELEASE}
1279 exit ;;
1280 *:DragonFly:*:*)
1281 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1282 exit ;;
1283 *:*VMS:*:*)
1284 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1285 case "${UNAME_MACHINE}" in
1286 A*) echo alpha-dec-vms ; exit ;;
1287 I*) echo ia64-dec-vms ; exit ;;
1288 V*) echo vax-dec-vms ; exit ;;
1289 esac ;;
1290 *:XENIX:*:SysV)
1291 echo i386-pc-xenix
1292 exit ;;
1293 i*86:skyos:*:*)
1294 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
1295 exit ;;
1296 i*86:rdos:*:*)
1297 echo ${UNAME_MACHINE}-pc-rdos
1298 exit ;;
1299 i*86:AROS:*:*)
1300 echo ${UNAME_MACHINE}-pc-aros
1301 exit ;;
1302 esac
1303
1304 #echo '(No uname command or uname output not recognized.)' 1>&2
1305 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
1306
1307 eval $set_cc_for_build
1308 cat >$dummy.c <<EOF
1309 #ifdef _SEQUENT_
1310 # include <sys/types.h>
1311 # include <sys/utsname.h>
1312 #endif
1313 main ()
1314 {
1315 #if defined (sony)
1316 #if defined (MIPSEB)
1317 /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
1318 I don't know.... */
1319 printf ("mips-sony-bsd\n"); exit (0);
1320 #else
1321 #include <sys/param.h>
1322 printf ("m68k-sony-newsos%s\n",
1323 #ifdef NEWSOS4
1324 "4"
1325 #else
1326 ""
1327 #endif
1328 ); exit (0);
1329 #endif
1330 #endif
1331
1332 #if defined (__arm) && defined (__acorn) && defined (__unix)
1333 printf ("arm-acorn-riscix\n"); exit (0);
1334 #endif
1335
1336 #if defined (hp300) && !defined (hpux)
1337 printf ("m68k-hp-bsd\n"); exit (0);
1338 #endif
1339
1340 #if defined (NeXT)
1341 #if !defined (__ARCHITECTURE__)
1342 #define __ARCHITECTURE__ "m68k"
1343 #endif
1344 int version;
1345 version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
1346 if (version < 4)
1347 printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
1348 else
1349 printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
1350 exit (0);
1351 #endif
1352
1353 #if defined (MULTIMAX) || defined (n16)
1354 #if defined (UMAXV)
1355 printf ("ns32k-encore-sysv\n"); exit (0);
1356 #else
1357 #if defined (CMU)
1358 printf ("ns32k-encore-mach\n"); exit (0);
1359 #else
1360 printf ("ns32k-encore-bsd\n"); exit (0);
1361 #endif
1362 #endif
1363 #endif
1364
1365 #if defined (__386BSD__)
1366 printf ("i386-pc-bsd\n"); exit (0);
1367 #endif
1368
1369 #if defined (sequent)
1370 #if defined (i386)
1371 printf ("i386-sequent-dynix\n"); exit (0);
1372 #endif
1373 #if defined (ns32000)
1374 printf ("ns32k-sequent-dynix\n"); exit (0);
1375 #endif
1376 #endif
1377
1378 #if defined (_SEQUENT_)
1379 struct utsname un;
1380
1381 uname(&un);
1382
1383 if (strncmp(un.version, "V2", 2) == 0) {
1384 printf ("i386-sequent-ptx2\n"); exit (0);
1385 }
1386 if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
1387 printf ("i386-sequent-ptx1\n"); exit (0);
1388 }
1389 printf ("i386-sequent-ptx\n"); exit (0);
1390
1391 #endif
1392
1393 #if defined (vax)
1394 # if !defined (ultrix)
1395 # include <sys/param.h>
1396 # if defined (BSD)
1397 # if BSD == 43
1398 printf ("vax-dec-bsd4.3\n"); exit (0);
1399 # else
1400 # if BSD == 199006
1401 printf ("vax-dec-bsd4.3reno\n"); exit (0);
1402 # else
1403 printf ("vax-dec-bsd\n"); exit (0);
1404 # endif
1405 # endif
1406 # else
1407 printf ("vax-dec-bsd\n"); exit (0);
1408 # endif
1409 # else
1410 printf ("vax-dec-ultrix\n"); exit (0);
1411 # endif
1412 #endif
1413
1414 #if defined (alliant) && defined (i860)
1415 printf ("i860-alliant-bsd\n"); exit (0);
1416 #endif
1417
1418 exit (1);
1419 }
1420 EOF
1421
1422 $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
1423 { echo "$SYSTEM_NAME"; exit; }
1424
1425 # Apollos put the system type in the environment.
1426
1427 test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
1428
1429 # Convex versions that predate uname can use getsysinfo(1)
1430
1431 if [ -x /usr/convex/getsysinfo ]
1432 then
1433 case `getsysinfo -f cpu_type` in
1434 c1*)
1435 echo c1-convex-bsd
1436 exit ;;
1437 c2*)
1438 if getsysinfo -f scalar_acc
1439 then echo c32-convex-bsd
1440 else echo c2-convex-bsd
1441 fi
1442 exit ;;
1443 c34*)
1444 echo c34-convex-bsd
1445 exit ;;
1446 c38*)
1447 echo c38-convex-bsd
1448 exit ;;
1449 c4*)
1450 echo c4-convex-bsd
1451 exit ;;
1452 esac
1453 fi
1454
1455 cat >&2 <<EOF
1456 $0: unable to guess system type
1457
1458 This script, last modified $timestamp, has failed to recognize
1459 the operating system you are using. It is advised that you
1460 download the most up to date version of the config scripts from
1461
1462 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
1463 and
1464 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
1465
1466 If the version you run ($0) is already up to date, please
1467 send the following data and any information you think might be
1468 pertinent to <config-patches@gnu.org> in order to provide the needed
1469 information to handle your system.
1470
1471 config.guess timestamp = $timestamp
1472
1473 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1474 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1475 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1476 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1477
1478 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
1479 /bin/uname -X = `(/bin/uname -X) 2>/dev/null`
1480
1481 hostinfo = `(hostinfo) 2>/dev/null`
1482 /bin/universe = `(/bin/universe) 2>/dev/null`
1483 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
1484 /bin/arch = `(/bin/arch) 2>/dev/null`
1485 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
1486 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
1487
1488 UNAME_MACHINE = ${UNAME_MACHINE}
1489 UNAME_RELEASE = ${UNAME_RELEASE}
1490 UNAME_SYSTEM = ${UNAME_SYSTEM}
1491 UNAME_VERSION = ${UNAME_VERSION}
1492 EOF
1493
1494 exit 1
1495
1496 # Local variables:
1497 # eval: (add-hook 'write-file-hooks 'time-stamp)
1498 # time-stamp-start: "timestamp='"
1499 # time-stamp-format: "%:y-%02m-%02d"
1500 # time-stamp-end: "'"
1501 # End:
+0
-1714
config/config.sub less more
0 #! /bin/sh
1 # Configuration validation subroutine script.
2 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
4 # Free Software Foundation, Inc.
5
6 timestamp='2010-01-22'
7
8 # This file is (in principle) common to ALL GNU software.
9 # The presence of a machine in this file suggests that SOME GNU software
10 # can handle that machine. It does not imply ALL GNU software can.
11 #
12 # This file is free software; you can redistribute it and/or modify
13 # it under the terms of the GNU General Public License as published by
14 # the Free Software Foundation; either version 2 of the License, or
15 # (at your option) any later version.
16 #
17 # This program is distributed in the hope that it will be useful,
18 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 # GNU General Public License for more details.
21 #
22 # You should have received a copy of the GNU General Public License
23 # along with this program; if not, write to the Free Software
24 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
25 # 02110-1301, USA.
26 #
27 # As a special exception to the GNU General Public License, if you
28 # distribute this file as part of a program that contains a
29 # configuration script generated by Autoconf, you may include it under
30 # the same distribution terms that you use for the rest of that program.
31
32
33 # Please send patches to <config-patches@gnu.org>. Submit a context
34 # diff and a properly formatted GNU ChangeLog entry.
35 #
36 # Configuration subroutine to validate and canonicalize a configuration type.
37 # Supply the specified configuration type as an argument.
38 # If it is invalid, we print an error message on stderr and exit with code 1.
39 # Otherwise, we print the canonical config type on stdout and succeed.
40
41 # You can get the latest version of this script from:
42 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
43
44 # This file is supposed to be the same for all GNU packages
45 # and recognize all the CPU types, system types and aliases
46 # that are meaningful with *any* GNU software.
47 # Each package is responsible for reporting which valid configurations
48 # it does not support. The user should be able to distinguish
49 # a failure to support a valid configuration from a meaningless
50 # configuration.
51
52 # The goal of this file is to map all the various variations of a given
53 # machine specification into a single specification in the form:
54 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
55 # or in some cases, the newer four-part form:
56 # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
57 # It is wrong to echo any other type of specification.
58
59 me=`echo "$0" | sed -e 's,.*/,,'`
60
61 usage="\
62 Usage: $0 [OPTION] CPU-MFR-OPSYS
63 $0 [OPTION] ALIAS
64
65 Canonicalize a configuration name.
66
67 Operation modes:
68 -h, --help print this help, then exit
69 -t, --time-stamp print date of last modification, then exit
70 -v, --version print version number, then exit
71
72 Report bugs and patches to <config-patches@gnu.org>."
73
74 version="\
75 GNU config.sub ($timestamp)
76
77 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
78 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
79 Software Foundation, Inc.
80
81 This is free software; see the source for copying conditions. There is NO
82 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
83
84 help="
85 Try \`$me --help' for more information."
86
87 # Parse command line
88 while test $# -gt 0 ; do
89 case $1 in
90 --time-stamp | --time* | -t )
91 echo "$timestamp" ; exit ;;
92 --version | -v )
93 echo "$version" ; exit ;;
94 --help | --h* | -h )
95 echo "$usage"; exit ;;
96 -- ) # Stop option processing
97 shift; break ;;
98 - ) # Use stdin as input.
99 break ;;
100 -* )
101 echo "$me: invalid option $1$help"
102 exit 1 ;;
103
104 *local*)
105 # First pass through any local machine types.
106 echo $1
107 exit ;;
108
109 * )
110 break ;;
111 esac
112 done
113
114 case $# in
115 0) echo "$me: missing argument$help" >&2
116 exit 1;;
117 1) ;;
118 *) echo "$me: too many arguments$help" >&2
119 exit 1;;
120 esac
121
122 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
123 # Here we must recognize all the valid KERNEL-OS combinations.
124 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
125 case $maybe_os in
126 nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
127 uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
128 kopensolaris*-gnu* | \
129 storm-chaos* | os2-emx* | rtmk-nova*)
130 os=-$maybe_os
131 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
132 ;;
133 *)
134 basic_machine=`echo $1 | sed 's/-[^-]*$//'`
135 if [ $basic_machine != $1 ]
136 then os=`echo $1 | sed 's/.*-/-/'`
137 else os=; fi
138 ;;
139 esac
140
141 ### Let's recognize common machines as not being operating systems so
142 ### that things like config.sub decstation-3100 work. We also
143 ### recognize some manufacturers as not being operating systems, so we
144 ### can provide default operating systems below.
145 case $os in
146 -sun*os*)
147 # Prevent following clause from handling this invalid input.
148 ;;
149 -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
150 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
151 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
152 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
153 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
154 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
155 -apple | -axis | -knuth | -cray | -microblaze)
156 os=
157 basic_machine=$1
158 ;;
159 -bluegene*)
160 os=-cnk
161 ;;
162 -sim | -cisco | -oki | -wec | -winbond)
163 os=
164 basic_machine=$1
165 ;;
166 -scout)
167 ;;
168 -wrs)
169 os=-vxworks
170 basic_machine=$1
171 ;;
172 -chorusos*)
173 os=-chorusos
174 basic_machine=$1
175 ;;
176 -chorusrdb)
177 os=-chorusrdb
178 basic_machine=$1
179 ;;
180 -hiux*)
181 os=-hiuxwe2
182 ;;
183 -sco6)
184 os=-sco5v6
185 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
186 ;;
187 -sco5)
188 os=-sco3.2v5
189 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
190 ;;
191 -sco4)
192 os=-sco3.2v4
193 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
194 ;;
195 -sco3.2.[4-9]*)
196 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
197 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
198 ;;
199 -sco3.2v[4-9]*)
200 # Don't forget version if it is 3.2v4 or newer.
201 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
202 ;;
203 -sco5v6*)
204 # Don't forget version if it is 3.2v4 or newer.
205 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
206 ;;
207 -sco*)
208 os=-sco3.2v2
209 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
210 ;;
211 -udk*)
212 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
213 ;;
214 -isc)
215 os=-isc2.2
216 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
217 ;;
218 -clix*)
219 basic_machine=clipper-intergraph
220 ;;
221 -isc*)
222 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
223 ;;
224 -lynx*)
225 os=-lynxos
226 ;;
227 -ptx*)
228 basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
229 ;;
230 -windowsnt*)
231 os=`echo $os | sed -e 's/windowsnt/winnt/'`
232 ;;
233 -psos*)
234 os=-psos
235 ;;
236 -mint | -mint[0-9]*)
237 basic_machine=m68k-atari
238 os=-mint
239 ;;
240 esac
241
242 # Decode aliases for certain CPU-COMPANY combinations.
243 case $basic_machine in
244 # Recognize the basic CPU types without company name.
245 # Some are omitted here because they have special meanings below.
246 1750a | 580 \
247 | a29k \
248 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
249 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
250 | am33_2.0 \
251 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
252 | bfin \
253 | c4x | clipper \
254 | d10v | d30v | dlx | dsp16xx \
255 | fido | fr30 | frv \
256 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
257 | i370 | i860 | i960 | ia64 \
258 | ip2k | iq2000 \
259 | lm32 \
260 | m32c | m32r | m32rle | m68000 | m68k | m88k \
261 | maxq | mb | microblaze | mcore | mep | metag \
262 | mips | mipsbe | mipseb | mipsel | mipsle \
263 | mips16 \
264 | mips64 | mips64el \
265 | mips64octeon | mips64octeonel \
266 | mips64orion | mips64orionel \
267 | mips64r5900 | mips64r5900el \
268 | mips64vr | mips64vrel \
269 | mips64vr4100 | mips64vr4100el \
270 | mips64vr4300 | mips64vr4300el \
271 | mips64vr5000 | mips64vr5000el \
272 | mips64vr5900 | mips64vr5900el \
273 | mipsisa32 | mipsisa32el \
274 | mipsisa32r2 | mipsisa32r2el \
275 | mipsisa64 | mipsisa64el \
276 | mipsisa64r2 | mipsisa64r2el \
277 | mipsisa64sb1 | mipsisa64sb1el \
278 | mipsisa64sr71k | mipsisa64sr71kel \
279 | mipstx39 | mipstx39el \
280 | mn10200 | mn10300 \
281 | moxie \
282 | mt \
283 | msp430 \
284 | nios | nios2 \
285 | ns16k | ns32k \
286 | or32 \
287 | pdp10 | pdp11 | pj | pjl \
288 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
289 | pyramid \
290 | rx \
291 | score \
292 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
293 | sh64 | sh64le \
294 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
295 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
296 | spu | strongarm \
297 | tahoe | thumb | tic4x | tic80 | tron \
298 | ubicom32 \
299 | v850 | v850e \
300 | we32k \
301 | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
302 | z8k | z80)
303 basic_machine=$basic_machine-unknown
304 ;;
305 m6811 | m68hc11 | m6812 | m68hc12 | picochip)
306 # Motorola 68HC11/12.
307 basic_machine=$basic_machine-unknown
308 os=-none
309 ;;
310 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
311 ;;
312 ms1)
313 basic_machine=mt-unknown
314 ;;
315
316 # We use `pc' rather than `unknown'
317 # because (1) that's what they normally are, and
318 # (2) the word "unknown" tends to confuse beginning users.
319 i*86 | x86_64)
320 basic_machine=$basic_machine-pc
321 ;;
322 # Object if more than one company name word.
323 *-*-*)
324 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
325 exit 1
326 ;;
327 # Recognize the basic CPU types with company name.
328 580-* \
329 | a29k-* \
330 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
331 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
332 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
333 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
334 | avr-* | avr32-* \
335 | bfin-* | bs2000-* \
336 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
337 | clipper-* | craynv-* | cydra-* \
338 | d10v-* | d30v-* | dlx-* \
339 | elxsi-* \
340 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
341 | h8300-* | h8500-* \
342 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
343 | i*86-* | i860-* | i960-* | ia64-* \
344 | ip2k-* | iq2000-* \
345 | lm32-* \
346 | m32c-* | m32r-* | m32rle-* \
347 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
348 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
349 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
350 | mips16-* \
351 | mips64-* | mips64el-* \
352 | mips64octeon-* | mips64octeonel-* \
353 | mips64orion-* | mips64orionel-* \
354 | mips64r5900-* | mips64r5900el-* \
355 | mips64vr-* | mips64vrel-* \
356 | mips64vr4100-* | mips64vr4100el-* \
357 | mips64vr4300-* | mips64vr4300el-* \
358 | mips64vr5000-* | mips64vr5000el-* \
359 | mips64vr5900-* | mips64vr5900el-* \
360 | mipsisa32-* | mipsisa32el-* \
361 | mipsisa32r2-* | mipsisa32r2el-* \
362 | mipsisa64-* | mipsisa64el-* \
363 | mipsisa64r2-* | mipsisa64r2el-* \
364 | mipsisa64sb1-* | mipsisa64sb1el-* \
365 | mipsisa64sr71k-* | mipsisa64sr71kel-* \
366 | mipstx39-* | mipstx39el-* \
367 | mmix-* \
368 | mt-* \
369 | msp430-* \
370 | nios-* | nios2-* \
371 | none-* | np1-* | ns16k-* | ns32k-* \
372 | orion-* \
373 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
374 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
375 | pyramid-* \
376 | romp-* | rs6000-* | rx-* \
377 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
378 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
379 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
380 | sparclite-* \
381 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
382 | tahoe-* | thumb-* \
383 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
384 | tile-* | tilegx-* \
385 | tron-* \
386 | ubicom32-* \
387 | v850-* | v850e-* | vax-* \
388 | we32k-* \
389 | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
390 | xstormy16-* | xtensa*-* \
391 | ymp-* \
392 | z8k-* | z80-*)
393 ;;
394 # Recognize the basic CPU types without company name, with glob match.
395 xtensa*)
396 basic_machine=$basic_machine-unknown
397 ;;
398 # Recognize the various machine names and aliases which stand
399 # for a CPU type and a company and sometimes even an OS.
400 386bsd)
401 basic_machine=i386-unknown
402 os=-bsd
403 ;;
404 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
405 basic_machine=m68000-att
406 ;;
407 3b*)
408 basic_machine=we32k-att
409 ;;
410 a29khif)
411 basic_machine=a29k-amd
412 os=-udi
413 ;;
414 abacus)
415 basic_machine=abacus-unknown
416 ;;
417 adobe68k)
418 basic_machine=m68010-adobe
419 os=-scout
420 ;;
421 alliant | fx80)
422 basic_machine=fx80-alliant
423 ;;
424 altos | altos3068)
425 basic_machine=m68k-altos
426 ;;
427 am29k)
428 basic_machine=a29k-none
429 os=-bsd
430 ;;
431 amd64)
432 basic_machine=x86_64-pc
433 ;;
434 amd64-*)
435 basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
436 ;;
437 amdahl)
438 basic_machine=580-amdahl
439 os=-sysv
440 ;;
441 amiga | amiga-*)
442 basic_machine=m68k-unknown
443 ;;
444 amigaos | amigados)
445 basic_machine=m68k-unknown
446 os=-amigaos
447 ;;
448 amigaunix | amix)
449 basic_machine=m68k-unknown
450 os=-sysv4
451 ;;
452 apollo68)
453 basic_machine=m68k-apollo
454 os=-sysv
455 ;;
456 apollo68bsd)
457 basic_machine=m68k-apollo
458 os=-bsd
459 ;;
460 aros)
461 basic_machine=i386-pc
462 os=-aros
463 ;;
464 aux)
465 basic_machine=m68k-apple
466 os=-aux
467 ;;
468 balance)
469 basic_machine=ns32k-sequent
470 os=-dynix
471 ;;
472 blackfin)
473 basic_machine=bfin-unknown
474 os=-linux
475 ;;
476 blackfin-*)
477 basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
478 os=-linux
479 ;;
480 bluegene*)
481 basic_machine=powerpc-ibm
482 os=-cnk
483 ;;
484 c90)
485 basic_machine=c90-cray
486 os=-unicos
487 ;;
488 cegcc)
489 basic_machine=arm-unknown
490 os=-cegcc
491 ;;
492 convex-c1)
493 basic_machine=c1-convex
494 os=-bsd
495 ;;
496 convex-c2)
497 basic_machine=c2-convex
498 os=-bsd
499 ;;
500 convex-c32)
501 basic_machine=c32-convex
502 os=-bsd
503 ;;
504 convex-c34)
505 basic_machine=c34-convex
506 os=-bsd
507 ;;
508 convex-c38)
509 basic_machine=c38-convex
510 os=-bsd
511 ;;
512 cray | j90)
513 basic_machine=j90-cray
514 os=-unicos
515 ;;
516 craynv)
517 basic_machine=craynv-cray
518 os=-unicosmp
519 ;;
520 cr16)
521 basic_machine=cr16-unknown
522 os=-elf
523 ;;
524 crds | unos)
525 basic_machine=m68k-crds
526 ;;
527 crisv32 | crisv32-* | etraxfs*)
528 basic_machine=crisv32-axis
529 ;;
530 cris | cris-* | etrax*)
531 basic_machine=cris-axis
532 ;;
533 crx)
534 basic_machine=crx-unknown
535 os=-elf
536 ;;
537 da30 | da30-*)
538 basic_machine=m68k-da30
539 ;;
540 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
541 basic_machine=mips-dec
542 ;;
543 decsystem10* | dec10*)
544 basic_machine=pdp10-dec
545 os=-tops10
546 ;;
547 decsystem20* | dec20*)
548 basic_machine=pdp10-dec
549 os=-tops20
550 ;;
551 delta | 3300 | motorola-3300 | motorola-delta \
552 | 3300-motorola | delta-motorola)
553 basic_machine=m68k-motorola
554 ;;
555 delta88)
556 basic_machine=m88k-motorola
557 os=-sysv3
558 ;;
559 dicos)
560 basic_machine=i686-pc
561 os=-dicos
562 ;;
563 djgpp)
564 basic_machine=i586-pc
565 os=-msdosdjgpp
566 ;;
567 dpx20 | dpx20-*)
568 basic_machine=rs6000-bull
569 os=-bosx
570 ;;
571 dpx2* | dpx2*-bull)
572 basic_machine=m68k-bull
573 os=-sysv3
574 ;;
575 ebmon29k)
576 basic_machine=a29k-amd
577 os=-ebmon
578 ;;
579 elxsi)
580 basic_machine=elxsi-elxsi
581 os=-bsd
582 ;;
583 encore | umax | mmax)
584 basic_machine=ns32k-encore
585 ;;
586 es1800 | OSE68k | ose68k | ose | OSE)
587 basic_machine=m68k-ericsson
588 os=-ose
589 ;;
590 fx2800)
591 basic_machine=i860-alliant
592 ;;
593 genix)
594 basic_machine=ns32k-ns
595 ;;
596 gmicro)
597 basic_machine=tron-gmicro
598 os=-sysv
599 ;;
600 go32)
601 basic_machine=i386-pc
602 os=-go32
603 ;;
604 h3050r* | hiux*)
605 basic_machine=hppa1.1-hitachi
606 os=-hiuxwe2
607 ;;
608 h8300hms)
609 basic_machine=h8300-hitachi
610 os=-hms
611 ;;
612 h8300xray)
613 basic_machine=h8300-hitachi
614 os=-xray
615 ;;
616 h8500hms)
617 basic_machine=h8500-hitachi
618 os=-hms
619 ;;
620 harris)
621 basic_machine=m88k-harris
622 os=-sysv3
623 ;;
624 hp300-*)
625 basic_machine=m68k-hp
626 ;;
627 hp300bsd)
628 basic_machine=m68k-hp
629 os=-bsd
630 ;;
631 hp300hpux)
632 basic_machine=m68k-hp
633 os=-hpux
634 ;;
635 hp3k9[0-9][0-9] | hp9[0-9][0-9])
636 basic_machine=hppa1.0-hp
637 ;;
638 hp9k2[0-9][0-9] | hp9k31[0-9])
639 basic_machine=m68000-hp
640 ;;
641 hp9k3[2-9][0-9])
642 basic_machine=m68k-hp
643 ;;
644 hp9k6[0-9][0-9] | hp6[0-9][0-9])
645 basic_machine=hppa1.0-hp
646 ;;
647 hp9k7[0-79][0-9] | hp7[0-79][0-9])
648 basic_machine=hppa1.1-hp
649 ;;
650 hp9k78[0-9] | hp78[0-9])
651 # FIXME: really hppa2.0-hp
652 basic_machine=hppa1.1-hp
653 ;;
654 hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
655 # FIXME: really hppa2.0-hp
656 basic_machine=hppa1.1-hp
657 ;;
658 hp9k8[0-9][13679] | hp8[0-9][13679])
659 basic_machine=hppa1.1-hp
660 ;;
661 hp9k8[0-9][0-9] | hp8[0-9][0-9])
662 basic_machine=hppa1.0-hp
663 ;;
664 hppa-next)
665 os=-nextstep3
666 ;;
667 hppaosf)
668 basic_machine=hppa1.1-hp
669 os=-osf
670 ;;
671 hppro)
672 basic_machine=hppa1.1-hp
673 os=-proelf
674 ;;
675 i370-ibm* | ibm*)
676 basic_machine=i370-ibm
677 ;;
678 # I'm not sure what "Sysv32" means. Should this be sysv3.2?
679 i*86v32)
680 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
681 os=-sysv32
682 ;;
683 i*86v4*)
684 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
685 os=-sysv4
686 ;;
687 i*86v)
688 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
689 os=-sysv
690 ;;
691 i*86sol2)
692 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
693 os=-solaris2
694 ;;
695 i386mach)
696 basic_machine=i386-mach
697 os=-mach
698 ;;
699 i386-vsta | vsta)
700 basic_machine=i386-unknown
701 os=-vsta
702 ;;
703 iris | iris4d)
704 basic_machine=mips-sgi
705 case $os in
706 -irix*)
707 ;;
708 *)
709 os=-irix4
710 ;;
711 esac
712 ;;
713 isi68 | isi)
714 basic_machine=m68k-isi
715 os=-sysv
716 ;;
717 m68knommu)
718 basic_machine=m68k-unknown
719 os=-linux
720 ;;
721 m68knommu-*)
722 basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
723 os=-linux
724 ;;
725 m88k-omron*)
726 basic_machine=m88k-omron
727 ;;
728 magnum | m3230)
729 basic_machine=mips-mips
730 os=-sysv
731 ;;
732 merlin)
733 basic_machine=ns32k-utek
734 os=-sysv
735 ;;
736 microblaze)
737 basic_machine=microblaze-xilinx
738 ;;
739 mingw32)
740 basic_machine=i386-pc
741 os=-mingw32
742 ;;
743 mingw32ce)
744 basic_machine=arm-unknown
745 os=-mingw32ce
746 ;;
747 miniframe)
748 basic_machine=m68000-convergent
749 ;;
750 *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
751 basic_machine=m68k-atari
752 os=-mint
753 ;;
754 mips3*-*)
755 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
756 ;;
757 mips3*)
758 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
759 ;;
760 monitor)
761 basic_machine=m68k-rom68k
762 os=-coff
763 ;;
764 morphos)
765 basic_machine=powerpc-unknown
766 os=-morphos
767 ;;
768 msdos)
769 basic_machine=i386-pc
770 os=-msdos
771 ;;
772 ms1-*)
773 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
774 ;;
775 mvs)
776 basic_machine=i370-ibm
777 os=-mvs
778 ;;
779 ncr3000)
780 basic_machine=i486-ncr
781 os=-sysv4
782 ;;
783 netbsd386)
784 basic_machine=i386-unknown
785 os=-netbsd
786 ;;
787 netwinder)
788 basic_machine=armv4l-rebel
789 os=-linux
790 ;;
791 news | news700 | news800 | news900)
792 basic_machine=m68k-sony
793 os=-newsos
794 ;;
795 news1000)
796 basic_machine=m68030-sony
797 os=-newsos
798 ;;
799 news-3600 | risc-news)
800 basic_machine=mips-sony
801 os=-newsos
802 ;;
803 necv70)
804 basic_machine=v70-nec
805 os=-sysv
806 ;;
807 next | m*-next )
808 basic_machine=m68k-next
809 case $os in
810 -nextstep* )
811 ;;
812 -ns2*)
813 os=-nextstep2
814 ;;
815 *)
816 os=-nextstep3
817 ;;
818 esac
819 ;;
820 nh3000)
821 basic_machine=m68k-harris
822 os=-cxux
823 ;;
824 nh[45]000)
825 basic_machine=m88k-harris
826 os=-cxux
827 ;;
828 nindy960)
829 basic_machine=i960-intel
830 os=-nindy
831 ;;
832 mon960)
833 basic_machine=i960-intel
834 os=-mon960
835 ;;
836 nonstopux)
837 basic_machine=mips-compaq
838 os=-nonstopux
839 ;;
840 np1)
841 basic_machine=np1-gould
842 ;;
843 nsr-tandem)
844 basic_machine=nsr-tandem
845 ;;
846 op50n-* | op60c-*)
847 basic_machine=hppa1.1-oki
848 os=-proelf
849 ;;
850 openrisc | openrisc-*)
851 basic_machine=or32-unknown
852 ;;
853 os400)
854 basic_machine=powerpc-ibm
855 os=-os400
856 ;;
857 OSE68000 | ose68000)
858 basic_machine=m68000-ericsson
859 os=-ose
860 ;;
861 os68k)
862 basic_machine=m68k-none
863 os=-os68k
864 ;;
865 pa-hitachi)
866 basic_machine=hppa1.1-hitachi
867 os=-hiuxwe2
868 ;;
869 paragon)
870 basic_machine=i860-intel
871 os=-osf
872 ;;
873 parisc)
874 basic_machine=hppa-unknown
875 os=-linux
876 ;;
877 parisc-*)
878 basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
879 os=-linux
880 ;;
881 pbd)
882 basic_machine=sparc-tti
883 ;;
884 pbb)
885 basic_machine=m68k-tti
886 ;;
887 pc532 | pc532-*)
888 basic_machine=ns32k-pc532
889 ;;
890 pc98)
891 basic_machine=i386-pc
892 ;;
893 pc98-*)
894 basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
895 ;;
896 pentium | p5 | k5 | k6 | nexgen | viac3)
897 basic_machine=i586-pc
898 ;;
899 pentiumpro | p6 | 6x86 | athlon | athlon_*)
900 basic_machine=i686-pc
901 ;;
902 pentiumii | pentium2 | pentiumiii | pentium3)
903 basic_machine=i686-pc
904 ;;
905 pentium4)
906 basic_machine=i786-pc
907 ;;
908 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
909 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
910 ;;
911 pentiumpro-* | p6-* | 6x86-* | athlon-*)
912 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
913 ;;
914 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
915 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
916 ;;
917 pentium4-*)
918 basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
919 ;;
920 pn)
921 basic_machine=pn-gould
922 ;;
923 power) basic_machine=power-ibm
924 ;;
925 ppc) basic_machine=powerpc-unknown
926 ;;
927 ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
928 ;;
929 ppcle | powerpclittle | ppc-le | powerpc-little)
930 basic_machine=powerpcle-unknown
931 ;;
932 ppcle-* | powerpclittle-*)
933 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
934 ;;
935 ppc64) basic_machine=powerpc64-unknown
936 ;;
937 ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
938 ;;
939 ppc64le | powerpc64little | ppc64-le | powerpc64-little)
940 basic_machine=powerpc64le-unknown
941 ;;
942 ppc64le-* | powerpc64little-*)
943 basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
944 ;;
945 ps2)
946 basic_machine=i386-ibm
947 ;;
948 pw32)
949 basic_machine=i586-unknown
950 os=-pw32
951 ;;
952 rdos)
953 basic_machine=i386-pc
954 os=-rdos
955 ;;
956 rom68k)
957 basic_machine=m68k-rom68k
958 os=-coff
959 ;;
960 rm[46]00)
961 basic_machine=mips-siemens
962 ;;
963 rtpc | rtpc-*)
964 basic_machine=romp-ibm
965 ;;
966 s390 | s390-*)
967 basic_machine=s390-ibm
968 ;;
969 s390x | s390x-*)
970 basic_machine=s390x-ibm
971 ;;
972 sa29200)
973 basic_machine=a29k-amd
974 os=-udi
975 ;;
976 sb1)
977 basic_machine=mipsisa64sb1-unknown
978 ;;
979 sb1el)
980 basic_machine=mipsisa64sb1el-unknown
981 ;;
982 sde)
983 basic_machine=mipsisa32-sde
984 os=-elf
985 ;;
986 sei)
987 basic_machine=mips-sei
988 os=-seiux
989 ;;
990 sequent)
991 basic_machine=i386-sequent
992 ;;
993 sh)
994 basic_machine=sh-hitachi
995 os=-hms
996 ;;
997 sh5el)
998 basic_machine=sh5le-unknown
999 ;;
1000 sh64)
1001 basic_machine=sh64-unknown
1002 ;;
1003 sparclite-wrs | simso-wrs)
1004 basic_machine=sparclite-wrs
1005 os=-vxworks
1006 ;;
1007 sps7)
1008 basic_machine=m68k-bull
1009 os=-sysv2
1010 ;;
1011 spur)
1012 basic_machine=spur-unknown
1013 ;;
1014 st2000)
1015 basic_machine=m68k-tandem
1016 ;;
1017 stratus)
1018 basic_machine=i860-stratus
1019 os=-sysv4
1020 ;;
1021 sun2)
1022 basic_machine=m68000-sun
1023 ;;
1024 sun2os3)
1025 basic_machine=m68000-sun
1026 os=-sunos3
1027 ;;
1028 sun2os4)
1029 basic_machine=m68000-sun
1030 os=-sunos4
1031 ;;
1032 sun3os3)
1033 basic_machine=m68k-sun
1034 os=-sunos3
1035 ;;
1036 sun3os4)
1037 basic_machine=m68k-sun
1038 os=-sunos4
1039 ;;
1040 sun4os3)
1041 basic_machine=sparc-sun
1042 os=-sunos3
1043 ;;
1044 sun4os4)
1045 basic_machine=sparc-sun
1046 os=-sunos4
1047 ;;
1048 sun4sol2)
1049 basic_machine=sparc-sun
1050 os=-solaris2
1051 ;;
1052 sun3 | sun3-*)
1053 basic_machine=m68k-sun
1054 ;;
1055 sun4)
1056 basic_machine=sparc-sun
1057 ;;
1058 sun386 | sun386i | roadrunner)
1059 basic_machine=i386-sun
1060 ;;
1061 sv1)
1062 basic_machine=sv1-cray
1063 os=-unicos
1064 ;;
1065 symmetry)
1066 basic_machine=i386-sequent
1067 os=-dynix
1068 ;;
1069 t3e)
1070 basic_machine=alphaev5-cray
1071 os=-unicos
1072 ;;
1073 t90)
1074 basic_machine=t90-cray
1075 os=-unicos
1076 ;;
1077 tic54x | c54x*)
1078 basic_machine=tic54x-unknown
1079 os=-coff
1080 ;;
1081 tic55x | c55x*)
1082 basic_machine=tic55x-unknown
1083 os=-coff
1084 ;;
1085 tic6x | c6x*)
1086 basic_machine=tic6x-unknown
1087 os=-coff
1088 ;;
1089 # This must be matched before tile*.
1090 tilegx*)
1091 basic_machine=tilegx-unknown
1092 os=-linux-gnu
1093 ;;
1094 tile*)
1095 basic_machine=tile-unknown
1096 os=-linux-gnu
1097 ;;
1098 tx39)
1099 basic_machine=mipstx39-unknown
1100 ;;
1101 tx39el)
1102 basic_machine=mipstx39el-unknown
1103 ;;
1104 toad1)
1105 basic_machine=pdp10-xkl
1106 os=-tops20
1107 ;;
1108 tower | tower-32)
1109 basic_machine=m68k-ncr
1110 ;;
1111 tpf)
1112 basic_machine=s390x-ibm
1113 os=-tpf
1114 ;;
1115 udi29k)
1116 basic_machine=a29k-amd
1117 os=-udi
1118 ;;
1119 ultra3)
1120 basic_machine=a29k-nyu
1121 os=-sym1
1122 ;;
1123 v810 | necv810)
1124 basic_machine=v810-nec
1125 os=-none
1126 ;;
1127 vaxv)
1128 basic_machine=vax-dec
1129 os=-sysv
1130 ;;
1131 vms)
1132 basic_machine=vax-dec
1133 os=-vms
1134 ;;
1135 vpp*|vx|vx-*)
1136 basic_machine=f301-fujitsu
1137 ;;
1138 vxworks960)
1139 basic_machine=i960-wrs
1140 os=-vxworks
1141 ;;
1142 vxworks68)
1143 basic_machine=m68k-wrs
1144 os=-vxworks
1145 ;;
1146 vxworks29k)
1147 basic_machine=a29k-wrs
1148 os=-vxworks
1149 ;;
1150 w65*)
1151 basic_machine=w65-wdc
1152 os=-none
1153 ;;
1154 w89k-*)
1155 basic_machine=hppa1.1-winbond
1156 os=-proelf
1157 ;;
1158 xbox)
1159 basic_machine=i686-pc
1160 os=-mingw32
1161 ;;
1162 xps | xps100)
1163 basic_machine=xps100-honeywell
1164 ;;
1165 ymp)
1166 basic_machine=ymp-cray
1167 os=-unicos
1168 ;;
1169 z8k-*-coff)
1170 basic_machine=z8k-unknown
1171 os=-sim
1172 ;;
1173 z80-*-coff)
1174 basic_machine=z80-unknown
1175 os=-sim
1176 ;;
1177 none)
1178 basic_machine=none-none
1179 os=-none
1180 ;;
1181
1182 # Here we handle the default manufacturer of certain CPU types. It is in
1183 # some cases the only manufacturer, in others, it is the most popular.
1184 w89k)
1185 basic_machine=hppa1.1-winbond
1186 ;;
1187 op50n)
1188 basic_machine=hppa1.1-oki
1189 ;;
1190 op60c)
1191 basic_machine=hppa1.1-oki
1192 ;;
1193 romp)
1194 basic_machine=romp-ibm
1195 ;;
1196 mmix)
1197 basic_machine=mmix-knuth
1198 ;;
1199 rs6000)
1200 basic_machine=rs6000-ibm
1201 ;;
1202 vax)
1203 basic_machine=vax-dec
1204 ;;
1205 pdp10)
1206 # there are many clones, so DEC is not a safe bet
1207 basic_machine=pdp10-unknown
1208 ;;
1209 pdp11)
1210 basic_machine=pdp11-dec
1211 ;;
1212 we32k)
1213 basic_machine=we32k-att
1214 ;;
1215 sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
1216 basic_machine=sh-unknown
1217 ;;
1218 sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
1219 basic_machine=sparc-sun
1220 ;;
1221 cydra)
1222 basic_machine=cydra-cydrome
1223 ;;
1224 orion)
1225 basic_machine=orion-highlevel
1226 ;;
1227 orion105)
1228 basic_machine=clipper-highlevel
1229 ;;
1230 mac | mpw | mac-mpw)
1231 basic_machine=m68k-apple
1232 ;;
1233 pmac | pmac-mpw)
1234 basic_machine=powerpc-apple
1235 ;;
1236 *-unknown)
1237 # Make sure to match an already-canonicalized machine name.
1238 ;;
1239 *)
1240 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
1241 exit 1
1242 ;;
1243 esac
1244
1245 # Here we canonicalize certain aliases for manufacturers.
1246 case $basic_machine in
1247 *-digital*)
1248 basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
1249 ;;
1250 *-commodore*)
1251 basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
1252 ;;
1253 *)
1254 ;;
1255 esac
1256
1257 # Decode manufacturer-specific aliases for certain operating systems.
1258
1259 if [ x"$os" != x"" ]
1260 then
1261 case $os in
1262 # First match some system type aliases
1263 # that might get confused with valid system types.
1264 # -solaris* is a basic system type, with this one exception.
1265 -auroraux)
1266 os=-auroraux
1267 ;;
1268 -solaris1 | -solaris1.*)
1269 os=`echo $os | sed -e 's|solaris1|sunos4|'`
1270 ;;
1271 -solaris)
1272 os=-solaris2
1273 ;;
1274 -svr4*)
1275 os=-sysv4
1276 ;;
1277 -unixware*)
1278 os=-sysv4.2uw
1279 ;;
1280 -gnu/linux*)
1281 os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
1282 ;;
1283 # First accept the basic system types.
1284 # The portable systems comes first.
1285 # Each alternative MUST END IN A *, to match a version number.
1286 # -sysv* is not here because it comes later, after sysvr4.
1287 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1288 | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
1289 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
1290 | -sym* | -kopensolaris* \
1291 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1292 | -aos* | -aros* \
1293 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1294 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1295 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1296 | -openbsd* | -solidbsd* \
1297 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1298 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1299 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1300 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1301 | -chorusos* | -chorusrdb* | -cegcc* \
1302 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1303 | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
1304 | -uxpv* | -beos* | -mpeix* | -udk* \
1305 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1306 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1307 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1308 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1309 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1310 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1311 | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
1312 # Remember, each alternative MUST END IN *, to match a version number.
1313 ;;
1314 -qnx*)
1315 case $basic_machine in
1316 x86-* | i*86-*)
1317 ;;
1318 *)
1319 os=-nto$os
1320 ;;
1321 esac
1322 ;;
1323 -nto-qnx*)
1324 ;;
1325 -nto*)
1326 os=`echo $os | sed -e 's|nto|nto-qnx|'`
1327 ;;
1328 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1329 | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
1330 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
1331 ;;
1332 -mac*)
1333 os=`echo $os | sed -e 's|mac|macos|'`
1334 ;;
1335 -linux-dietlibc)
1336 os=-linux-dietlibc
1337 ;;
1338 -linux*)
1339 os=`echo $os | sed -e 's|linux|linux-gnu|'`
1340 ;;
1341 -sunos5*)
1342 os=`echo $os | sed -e 's|sunos5|solaris2|'`
1343 ;;
1344 -sunos6*)
1345 os=`echo $os | sed -e 's|sunos6|solaris3|'`
1346 ;;
1347 -opened*)
1348 os=-openedition
1349 ;;
1350 -os400*)
1351 os=-os400
1352 ;;
1353 -wince*)
1354 os=-wince
1355 ;;
1356 -osfrose*)
1357 os=-osfrose
1358 ;;
1359 -osf*)
1360 os=-osf
1361 ;;
1362 -utek*)
1363 os=-bsd
1364 ;;
1365 -dynix*)
1366 os=-bsd
1367 ;;
1368 -acis*)
1369 os=-aos
1370 ;;
1371 -atheos*)
1372 os=-atheos
1373 ;;
1374 -syllable*)
1375 os=-syllable
1376 ;;
1377 -386bsd)
1378 os=-bsd
1379 ;;
1380 -ctix* | -uts*)
1381 os=-sysv
1382 ;;
1383 -nova*)
1384 os=-rtmk-nova
1385 ;;
1386 -ns2 )
1387 os=-nextstep2
1388 ;;
1389 -nsk*)
1390 os=-nsk
1391 ;;
1392 # Preserve the version number of sinix5.
1393 -sinix5.*)
1394 os=`echo $os | sed -e 's|sinix|sysv|'`
1395 ;;
1396 -sinix*)
1397 os=-sysv4
1398 ;;
1399 -tpf*)
1400 os=-tpf
1401 ;;
1402 -triton*)
1403 os=-sysv3
1404 ;;
1405 -oss*)
1406 os=-sysv3
1407 ;;
1408 -svr4)
1409 os=-sysv4
1410 ;;
1411 -svr3)
1412 os=-sysv3
1413 ;;
1414 -sysvr4)
1415 os=-sysv4
1416 ;;
1417 # This must come after -sysvr4.
1418 -sysv*)
1419 ;;
1420 -ose*)
1421 os=-ose
1422 ;;
1423 -es1800*)
1424 os=-ose
1425 ;;
1426 -xenix)
1427 os=-xenix
1428 ;;
1429 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1430 os=-mint
1431 ;;
1432 -aros*)
1433 os=-aros
1434 ;;
1435 -kaos*)
1436 os=-kaos
1437 ;;
1438 -zvmoe)
1439 os=-zvmoe
1440 ;;
1441 -dicos*)
1442 os=-dicos
1443 ;;
1444 -nacl*)
1445 ;;
1446 -none)
1447 ;;
1448 *)
1449 # Get rid of the `-' at the beginning of $os.
1450 os=`echo $os | sed 's/[^-]*-//'`
1451 echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
1452 exit 1
1453 ;;
1454 esac
1455 else
1456
1457 # Here we handle the default operating systems that come with various machines.
1458 # The value should be what the vendor currently ships out the door with their
1459 # machine or put another way, the most popular os provided with the machine.
1460
1461 # Note that if you're going to try to match "-MANUFACTURER" here (say,
1462 # "-sun"), then you have to tell the case statement up towards the top
1463 # that MANUFACTURER isn't an operating system. Otherwise, code above
1464 # will signal an error saying that MANUFACTURER isn't an operating
1465 # system, and we'll never get to this point.
1466
1467 case $basic_machine in
1468 score-*)
1469 os=-elf
1470 ;;
1471 spu-*)
1472 os=-elf
1473 ;;
1474 *-acorn)
1475 os=-riscix1.2
1476 ;;
1477 arm*-rebel)
1478 os=-linux
1479 ;;
1480 arm*-semi)
1481 os=-aout
1482 ;;
1483 c4x-* | tic4x-*)
1484 os=-coff
1485 ;;
1486 # This must come before the *-dec entry.
1487 pdp10-*)
1488 os=-tops20
1489 ;;
1490 pdp11-*)
1491 os=-none
1492 ;;
1493 *-dec | vax-*)
1494 os=-ultrix4.2
1495 ;;
1496 m68*-apollo)
1497 os=-domain
1498 ;;
1499 i386-sun)
1500 os=-sunos4.0.2
1501 ;;
1502 m68000-sun)
1503 os=-sunos3
1504 # This also exists in the configure program, but was not the
1505 # default.
1506 # os=-sunos4
1507 ;;
1508 m68*-cisco)
1509 os=-aout
1510 ;;
1511 mep-*)
1512 os=-elf
1513 ;;
1514 mips*-cisco)
1515 os=-elf
1516 ;;
1517 mips*-*)
1518 os=-elf
1519 ;;
1520 or32-*)
1521 os=-coff
1522 ;;
1523 *-tti) # must be before sparc entry or we get the wrong os.
1524 os=-sysv3
1525 ;;
1526 sparc-* | *-sun)
1527 os=-sunos4.1.1
1528 ;;
1529 *-be)
1530 os=-beos
1531 ;;
1532 *-haiku)
1533 os=-haiku
1534 ;;
1535 *-ibm)
1536 os=-aix
1537 ;;
1538 *-knuth)
1539 os=-mmixware
1540 ;;
1541 *-wec)
1542 os=-proelf
1543 ;;
1544 *-winbond)
1545 os=-proelf
1546 ;;
1547 *-oki)
1548 os=-proelf
1549 ;;
1550 *-hp)
1551 os=-hpux
1552 ;;
1553 *-hitachi)
1554 os=-hiux
1555 ;;
1556 i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
1557 os=-sysv
1558 ;;
1559 *-cbm)
1560 os=-amigaos
1561 ;;
1562 *-dg)
1563 os=-dgux
1564 ;;
1565 *-dolphin)
1566 os=-sysv3
1567 ;;
1568 m68k-ccur)
1569 os=-rtu
1570 ;;
1571 m88k-omron*)
1572 os=-luna
1573 ;;
1574 *-next )
1575 os=-nextstep
1576 ;;
1577 *-sequent)
1578 os=-ptx
1579 ;;
1580 *-crds)
1581 os=-unos
1582 ;;
1583 *-ns)
1584 os=-genix
1585 ;;
1586 i370-*)
1587 os=-mvs
1588 ;;
1589 *-next)
1590 os=-nextstep3
1591 ;;
1592 *-gould)
1593 os=-sysv
1594 ;;
1595 *-highlevel)
1596 os=-bsd
1597 ;;
1598 *-encore)
1599 os=-bsd
1600 ;;
1601 *-sgi)
1602 os=-irix
1603 ;;
1604 *-siemens)
1605 os=-sysv4
1606 ;;
1607 *-masscomp)
1608 os=-rtu
1609 ;;
1610 f30[01]-fujitsu | f700-fujitsu)
1611 os=-uxpv
1612 ;;
1613 *-rom68k)
1614 os=-coff
1615 ;;
1616 *-*bug)
1617 os=-coff
1618 ;;
1619 *-apple)
1620 os=-macos
1621 ;;
1622 *-atari*)
1623 os=-mint
1624 ;;
1625 *)
1626 os=-none
1627 ;;
1628 esac
1629 fi
1630
1631 # Here we handle the case where we know the os, and the CPU type, but not the
1632 # manufacturer. We pick the logical manufacturer.
1633 vendor=unknown
1634 case $basic_machine in
1635 *-unknown)
1636 case $os in
1637 -riscix*)
1638 vendor=acorn
1639 ;;
1640 -sunos*)
1641 vendor=sun
1642 ;;
1643 -cnk*|-aix*)
1644 vendor=ibm
1645 ;;
1646 -beos*)
1647 vendor=be
1648 ;;
1649 -hpux*)
1650 vendor=hp
1651 ;;
1652 -mpeix*)
1653 vendor=hp
1654 ;;
1655 -hiux*)
1656 vendor=hitachi
1657 ;;
1658 -unos*)
1659 vendor=crds
1660 ;;
1661 -dgux*)
1662 vendor=dg
1663 ;;
1664 -luna*)
1665 vendor=omron
1666 ;;
1667 -genix*)
1668 vendor=ns
1669 ;;
1670 -mvs* | -opened*)
1671 vendor=ibm
1672 ;;
1673 -os400*)
1674 vendor=ibm
1675 ;;
1676 -ptx*)
1677 vendor=sequent
1678 ;;
1679 -tpf*)
1680 vendor=ibm
1681 ;;
1682 -vxsim* | -vxworks* | -windiss*)
1683 vendor=wrs
1684 ;;
1685 -aux*)
1686 vendor=apple
1687 ;;
1688 -hms*)
1689 vendor=hitachi
1690 ;;
1691 -mpw* | -macos*)
1692 vendor=apple
1693 ;;
1694 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1695 vendor=atari
1696 ;;
1697 -vos*)
1698 vendor=stratus
1699 ;;
1700 esac
1701 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
1702 ;;
1703 esac
1704
1705 echo $basic_machine$os
1706 exit
1707
1708 # Local variables:
1709 # eval: (add-hook 'write-file-hooks 'time-stamp)
1710 # time-stamp-start: "timestamp='"
1711 # time-stamp-format: "%:y-%02m-%02d"
1712 # time-stamp-end: "'"
1713 # End:
+0
-630
config/depcomp less more
0 #! /bin/sh
1 # depcomp - compile a program generating dependencies as side-effects
2
3 scriptversion=2009-04-28.21; # UTC
4
5 # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free
6 # Software Foundation, Inc.
7
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2, or (at your option)
11 # any later version.
12
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
17
18 # You should have received a copy of the GNU General Public License
19 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20
21 # As a special exception to the GNU General Public License, if you
22 # distribute this file as part of a program that contains a
23 # configuration script generated by Autoconf, you may include it under
24 # the same distribution terms that you use for the rest of that program.
25
26 # Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.
27
28 case $1 in
29 '')
30 echo "$0: No command. Try \`$0 --help' for more information." 1>&2
31 exit 1;
32 ;;
33 -h | --h*)
34 cat <<\EOF
35 Usage: depcomp [--help] [--version] PROGRAM [ARGS]
36
37 Run PROGRAMS ARGS to compile a file, generating dependencies
38 as side-effects.
39
40 Environment variables:
41 depmode Dependency tracking mode.
42 source Source file read by `PROGRAMS ARGS'.
43 object Object file output by `PROGRAMS ARGS'.
44 DEPDIR directory where to store dependencies.
45 depfile Dependency file to output.
46 tmpdepfile Temporary file to use when outputing dependencies.
47 libtool Whether libtool is used (yes/no).
48
49 Report bugs to <bug-automake@gnu.org>.
50 EOF
51 exit $?
52 ;;
53 -v | --v*)
54 echo "depcomp $scriptversion"
55 exit $?
56 ;;
57 esac
58
59 if test -z "$depmode" || test -z "$source" || test -z "$object"; then
60 echo "depcomp: Variables source, object and depmode must be set" 1>&2
61 exit 1
62 fi
63
64 # Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
65 depfile=${depfile-`echo "$object" |
66 sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
67 tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
68
69 rm -f "$tmpdepfile"
70
71 # Some modes work just like other modes, but use different flags. We
72 # parameterize here, but still list the modes in the big case below,
73 # to make depend.m4 easier to write. Note that we *cannot* use a case
74 # here, because this file can only contain one case statement.
75 if test "$depmode" = hp; then
76 # HP compiler uses -M and no extra arg.
77 gccflag=-M
78 depmode=gcc
79 fi
80
81 if test "$depmode" = dashXmstdout; then
82 # This is just like dashmstdout with a different argument.
83 dashmflag=-xM
84 depmode=dashmstdout
85 fi
86
87 cygpath_u="cygpath -u -f -"
88 if test "$depmode" = msvcmsys; then
89 # This is just like msvisualcpp but w/o cygpath translation.
90 # Just convert the backslash-escaped backslashes to single forward
91 # slashes to satisfy depend.m4
92 cygpath_u="sed s,\\\\\\\\,/,g"
93 depmode=msvisualcpp
94 fi
95
96 case "$depmode" in
97 gcc3)
98 ## gcc 3 implements dependency tracking that does exactly what
99 ## we want. Yay! Note: for some reason libtool 1.4 doesn't like
100 ## it if -MD -MP comes after the -MF stuff. Hmm.
101 ## Unfortunately, FreeBSD c89 acceptance of flags depends upon
102 ## the command line argument order; so add the flags where they
103 ## appear in depend2.am. Note that the slowdown incurred here
104 ## affects only configure: in makefiles, %FASTDEP% shortcuts this.
105 for arg
106 do
107 case $arg in
108 -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;;
109 *) set fnord "$@" "$arg" ;;
110 esac
111 shift # fnord
112 shift # $arg
113 done
114 "$@"
115 stat=$?
116 if test $stat -eq 0; then :
117 else
118 rm -f "$tmpdepfile"
119 exit $stat
120 fi
121 mv "$tmpdepfile" "$depfile"
122 ;;
123
124 gcc)
125 ## There are various ways to get dependency output from gcc. Here's
126 ## why we pick this rather obscure method:
127 ## - Don't want to use -MD because we'd like the dependencies to end
128 ## up in a subdir. Having to rename by hand is ugly.
129 ## (We might end up doing this anyway to support other compilers.)
130 ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
131 ## -MM, not -M (despite what the docs say).
132 ## - Using -M directly means running the compiler twice (even worse
133 ## than renaming).
134 if test -z "$gccflag"; then
135 gccflag=-MD,
136 fi
137 "$@" -Wp,"$gccflag$tmpdepfile"
138 stat=$?
139 if test $stat -eq 0; then :
140 else
141 rm -f "$tmpdepfile"
142 exit $stat
143 fi
144 rm -f "$depfile"
145 echo "$object : \\" > "$depfile"
146 alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
147 ## The second -e expression handles DOS-style file names with drive letters.
148 sed -e 's/^[^:]*: / /' \
149 -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
150 ## This next piece of magic avoids the `deleted header file' problem.
151 ## The problem is that when a header file which appears in a .P file
152 ## is deleted, the dependency causes make to die (because there is
153 ## typically no way to rebuild the header). We avoid this by adding
154 ## dummy dependencies for each header file. Too bad gcc doesn't do
155 ## this for us directly.
156 tr ' ' '
157 ' < "$tmpdepfile" |
158 ## Some versions of gcc put a space before the `:'. On the theory
159 ## that the space means something, we add a space to the output as
160 ## well.
161 ## Some versions of the HPUX 10.20 sed can't process this invocation
162 ## correctly. Breaking it into two sed invocations is a workaround.
163 sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
164 rm -f "$tmpdepfile"
165 ;;
166
167 hp)
168 # This case exists only to let depend.m4 do its work. It works by
169 # looking at the text of this script. This case will never be run,
170 # since it is checked for above.
171 exit 1
172 ;;
173
174 sgi)
175 if test "$libtool" = yes; then
176 "$@" "-Wp,-MDupdate,$tmpdepfile"
177 else
178 "$@" -MDupdate "$tmpdepfile"
179 fi
180 stat=$?
181 if test $stat -eq 0; then :
182 else
183 rm -f "$tmpdepfile"
184 exit $stat
185 fi
186 rm -f "$depfile"
187
188 if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
189 echo "$object : \\" > "$depfile"
190
191 # Clip off the initial element (the dependent). Don't try to be
192 # clever and replace this with sed code, as IRIX sed won't handle
193 # lines with more than a fixed number of characters (4096 in
194 # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
195 # the IRIX cc adds comments like `#:fec' to the end of the
196 # dependency line.
197 tr ' ' '
198 ' < "$tmpdepfile" \
199 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
200 tr '
201 ' ' ' >> "$depfile"
202 echo >> "$depfile"
203
204 # The second pass generates a dummy entry for each header file.
205 tr ' ' '
206 ' < "$tmpdepfile" \
207 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
208 >> "$depfile"
209 else
210 # The sourcefile does not contain any dependencies, so just
211 # store a dummy comment line, to avoid errors with the Makefile
212 # "include basename.Plo" scheme.
213 echo "#dummy" > "$depfile"
214 fi
215 rm -f "$tmpdepfile"
216 ;;
217
218 aix)
219 # The C for AIX Compiler uses -M and outputs the dependencies
220 # in a .u file. In older versions, this file always lives in the
221 # current directory. Also, the AIX compiler puts `$object:' at the
222 # start of each line; $object doesn't have directory information.
223 # Version 6 uses the directory in both cases.
224 dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
225 test "x$dir" = "x$object" && dir=
226 base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
227 if test "$libtool" = yes; then
228 tmpdepfile1=$dir$base.u
229 tmpdepfile2=$base.u
230 tmpdepfile3=$dir.libs/$base.u
231 "$@" -Wc,-M
232 else
233 tmpdepfile1=$dir$base.u
234 tmpdepfile2=$dir$base.u
235 tmpdepfile3=$dir$base.u
236 "$@" -M
237 fi
238 stat=$?
239
240 if test $stat -eq 0; then :
241 else
242 rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
243 exit $stat
244 fi
245
246 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
247 do
248 test -f "$tmpdepfile" && break
249 done
250 if test -f "$tmpdepfile"; then
251 # Each line is of the form `foo.o: dependent.h'.
252 # Do two passes, one to just change these to
253 # `$object: dependent.h' and one to simply `dependent.h:'.
254 sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
255 # That's a tab and a space in the [].
256 sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
257 else
258 # The sourcefile does not contain any dependencies, so just
259 # store a dummy comment line, to avoid errors with the Makefile
260 # "include basename.Plo" scheme.
261 echo "#dummy" > "$depfile"
262 fi
263 rm -f "$tmpdepfile"
264 ;;
265
266 icc)
267 # Intel's C compiler understands `-MD -MF file'. However on
268 # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c
269 # ICC 7.0 will fill foo.d with something like
270 # foo.o: sub/foo.c
271 # foo.o: sub/foo.h
272 # which is wrong. We want:
273 # sub/foo.o: sub/foo.c
274 # sub/foo.o: sub/foo.h
275 # sub/foo.c:
276 # sub/foo.h:
277 # ICC 7.1 will output
278 # foo.o: sub/foo.c sub/foo.h
279 # and will wrap long lines using \ :
280 # foo.o: sub/foo.c ... \
281 # sub/foo.h ... \
282 # ...
283
284 "$@" -MD -MF "$tmpdepfile"
285 stat=$?
286 if test $stat -eq 0; then :
287 else
288 rm -f "$tmpdepfile"
289 exit $stat
290 fi
291 rm -f "$depfile"
292 # Each line is of the form `foo.o: dependent.h',
293 # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
294 # Do two passes, one to just change these to
295 # `$object: dependent.h' and one to simply `dependent.h:'.
296 sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
297 # Some versions of the HPUX 10.20 sed can't process this invocation
298 # correctly. Breaking it into two sed invocations is a workaround.
299 sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" |
300 sed -e 's/$/ :/' >> "$depfile"
301 rm -f "$tmpdepfile"
302 ;;
303
304 hp2)
305 # The "hp" stanza above does not work with aCC (C++) and HP's ia64
306 # compilers, which have integrated preprocessors. The correct option
307 # to use with these is +Maked; it writes dependencies to a file named
308 # 'foo.d', which lands next to the object file, wherever that
309 # happens to be.
310 # Much of this is similar to the tru64 case; see comments there.
311 dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
312 test "x$dir" = "x$object" && dir=
313 base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
314 if test "$libtool" = yes; then
315 tmpdepfile1=$dir$base.d
316 tmpdepfile2=$dir.libs/$base.d
317 "$@" -Wc,+Maked
318 else
319 tmpdepfile1=$dir$base.d
320 tmpdepfile2=$dir$base.d
321 "$@" +Maked
322 fi
323 stat=$?
324 if test $stat -eq 0; then :
325 else
326 rm -f "$tmpdepfile1" "$tmpdepfile2"
327 exit $stat
328 fi
329
330 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2"
331 do
332 test -f "$tmpdepfile" && break
333 done
334 if test -f "$tmpdepfile"; then
335 sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile"
336 # Add `dependent.h:' lines.
337 sed -ne '2,${
338 s/^ *//
339 s/ \\*$//
340 s/$/:/
341 p
342 }' "$tmpdepfile" >> "$depfile"
343 else
344 echo "#dummy" > "$depfile"
345 fi
346 rm -f "$tmpdepfile" "$tmpdepfile2"
347 ;;
348
349 tru64)
350 # The Tru64 compiler uses -MD to generate dependencies as a side
351 # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
352 # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
353 # dependencies in `foo.d' instead, so we check for that too.
354 # Subdirectories are respected.
355 dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
356 test "x$dir" = "x$object" && dir=
357 base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
358
359 if test "$libtool" = yes; then
360 # With Tru64 cc, shared objects can also be used to make a
361 # static library. This mechanism is used in libtool 1.4 series to
362 # handle both shared and static libraries in a single compilation.
363 # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
364 #
365 # With libtool 1.5 this exception was removed, and libtool now
366 # generates 2 separate objects for the 2 libraries. These two
367 # compilations output dependencies in $dir.libs/$base.o.d and
368 # in $dir$base.o.d. We have to check for both files, because
369 # one of the two compilations can be disabled. We should prefer
370 # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
371 # automatically cleaned when .libs/ is deleted, while ignoring
372 # the former would cause a distcleancheck panic.
373 tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4
374 tmpdepfile2=$dir$base.o.d # libtool 1.5
375 tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5
376 tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504
377 "$@" -Wc,-MD
378 else
379 tmpdepfile1=$dir$base.o.d
380 tmpdepfile2=$dir$base.d
381 tmpdepfile3=$dir$base.d
382 tmpdepfile4=$dir$base.d
383 "$@" -MD
384 fi
385
386 stat=$?
387 if test $stat -eq 0; then :
388 else
389 rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
390 exit $stat
391 fi
392
393 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
394 do
395 test -f "$tmpdepfile" && break
396 done
397 if test -f "$tmpdepfile"; then
398 sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
399 # That's a tab and a space in the [].
400 sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
401 else
402 echo "#dummy" > "$depfile"
403 fi
404 rm -f "$tmpdepfile"
405 ;;
406
407 #nosideeffect)
408 # This comment above is used by automake to tell side-effect
409 # dependency tracking mechanisms from slower ones.
410
411 dashmstdout)
412 # Important note: in order to support this mode, a compiler *must*
413 # always write the preprocessed file to stdout, regardless of -o.
414 "$@" || exit $?
415
416 # Remove the call to Libtool.
417 if test "$libtool" = yes; then
418 while test "X$1" != 'X--mode=compile'; do
419 shift
420 done
421 shift
422 fi
423
424 # Remove `-o $object'.
425 IFS=" "
426 for arg
427 do
428 case $arg in
429 -o)
430 shift
431 ;;
432 $object)
433 shift
434 ;;
435 *)
436 set fnord "$@" "$arg"
437 shift # fnord
438 shift # $arg
439 ;;
440 esac
441 done
442
443 test -z "$dashmflag" && dashmflag=-M
444 # Require at least two characters before searching for `:'
445 # in the target name. This is to cope with DOS-style filenames:
446 # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise.
447 "$@" $dashmflag |
448 sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile"
449 rm -f "$depfile"
450 cat < "$tmpdepfile" > "$depfile"
451 tr ' ' '
452 ' < "$tmpdepfile" | \
453 ## Some versions of the HPUX 10.20 sed can't process this invocation
454 ## correctly. Breaking it into two sed invocations is a workaround.
455 sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
456 rm -f "$tmpdepfile"
457 ;;
458
459 dashXmstdout)
460 # This case only exists to satisfy depend.m4. It is never actually
461 # run, as this mode is specially recognized in the preamble.
462 exit 1
463 ;;
464
465 makedepend)
466 "$@" || exit $?
467 # Remove any Libtool call
468 if test "$libtool" = yes; then
469 while test "X$1" != 'X--mode=compile'; do
470 shift
471 done
472 shift
473 fi
474 # X makedepend
475 shift
476 cleared=no eat=no
477 for arg
478 do
479 case $cleared in
480 no)
481 set ""; shift
482 cleared=yes ;;
483 esac
484 if test $eat = yes; then
485 eat=no
486 continue
487 fi
488 case "$arg" in
489 -D*|-I*)
490 set fnord "$@" "$arg"; shift ;;
491 # Strip any option that makedepend may not understand. Remove
492 # the object too, otherwise makedepend will parse it as a source file.
493 -arch)
494 eat=yes ;;
495 -*|$object)
496 ;;
497 *)
498 set fnord "$@" "$arg"; shift ;;
499 esac
500 done
501 obj_suffix=`echo "$object" | sed 's/^.*\././'`
502 touch "$tmpdepfile"
503 ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
504 rm -f "$depfile"
505 cat < "$tmpdepfile" > "$depfile"
506 sed '1,2d' "$tmpdepfile" | tr ' ' '
507 ' | \
508 ## Some versions of the HPUX 10.20 sed can't process this invocation
509 ## correctly. Breaking it into two sed invocations is a workaround.
510 sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
511 rm -f "$tmpdepfile" "$tmpdepfile".bak
512 ;;
513
514 cpp)
515 # Important note: in order to support this mode, a compiler *must*
516 # always write the preprocessed file to stdout.
517 "$@" || exit $?
518
519 # Remove the call to Libtool.
520 if test "$libtool" = yes; then
521 while test "X$1" != 'X--mode=compile'; do
522 shift
523 done
524 shift
525 fi
526
527 # Remove `-o $object'.
528 IFS=" "
529 for arg
530 do
531 case $arg in
532 -o)
533 shift
534 ;;
535 $object)
536 shift
537 ;;
538 *)
539 set fnord "$@" "$arg"
540 shift # fnord
541 shift # $arg
542 ;;
543 esac
544 done
545
546 "$@" -E |
547 sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
548 -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
549 sed '$ s: \\$::' > "$tmpdepfile"
550 rm -f "$depfile"
551 echo "$object : \\" > "$depfile"
552 cat < "$tmpdepfile" >> "$depfile"
553 sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
554 rm -f "$tmpdepfile"
555 ;;
556
557 msvisualcpp)
558 # Important note: in order to support this mode, a compiler *must*
559 # always write the preprocessed file to stdout.
560 "$@" || exit $?
561
562 # Remove the call to Libtool.
563 if test "$libtool" = yes; then
564 while test "X$1" != 'X--mode=compile'; do
565 shift
566 done
567 shift
568 fi
569
570 IFS=" "
571 for arg
572 do
573 case "$arg" in
574 -o)
575 shift
576 ;;
577 $object)
578 shift
579 ;;
580 "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
581 set fnord "$@"
582 shift
583 shift
584 ;;
585 *)
586 set fnord "$@" "$arg"
587 shift
588 shift
589 ;;
590 esac
591 done
592 "$@" -E 2>/dev/null |
593 sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile"
594 rm -f "$depfile"
595 echo "$object : \\" > "$depfile"
596 sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
597 echo " " >> "$depfile"
598 sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile"
599 rm -f "$tmpdepfile"
600 ;;
601
602 msvcmsys)
603 # This case exists only to let depend.m4 do its work. It works by
604 # looking at the text of this script. This case will never be run,
605 # since it is checked for above.
606 exit 1
607 ;;
608
609 none)
610 exec "$@"
611 ;;
612
613 *)
614 echo "Unknown depmode $depmode" 1>&2
615 exit 1
616 ;;
617 esac
618
619 exit 0
620
621 # Local Variables:
622 # mode: shell-script
623 # sh-indentation: 2
624 # eval: (add-hook 'write-file-hooks 'time-stamp)
625 # time-stamp-start: "scriptversion="
626 # time-stamp-format: "%:y-%02m-%02d.%02H"
627 # time-stamp-time-zone: "UTC"
628 # time-stamp-end: "; # UTC"
629 # End:
+0
-520
config/install-sh less more
0 #!/bin/sh
1 # install - install a program, script, or datafile
2
3 scriptversion=2009-04-28.21; # UTC
4
5 # This originates from X11R5 (mit/util/scripts/install.sh), which was
6 # later released in X11R6 (xc/config/util/install.sh) with the
7 # following copyright and license.
8 #
9 # Copyright (C) 1994 X Consortium
10 #
11 # Permission is hereby granted, free of charge, to any person obtaining a copy
12 # of this software and associated documentation files (the "Software"), to
13 # deal in the Software without restriction, including without limitation the
14 # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
15 # sell copies of the Software, and to permit persons to whom the Software is
16 # furnished to do so, subject to the following conditions:
17 #
18 # The above copyright notice and this permission notice shall be included in
19 # all copies or substantial portions of the Software.
20 #
21 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24 # X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
25 # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
26 # TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 #
28 # Except as contained in this notice, the name of the X Consortium shall not
29 # be used in advertising or otherwise to promote the sale, use or other deal-
30 # ings in this Software without prior written authorization from the X Consor-
31 # tium.
32 #
33 #
34 # FSF changes to this file are in the public domain.
35 #
36 # Calling this script install-sh is preferred over install.sh, to prevent
37 # `make' implicit rules from creating a file called install from it
38 # when there is no Makefile.
39 #
40 # This script is compatible with the BSD install script, but was written
41 # from scratch.
42
43 nl='
44 '
45 IFS=" "" $nl"
46
47 # set DOITPROG to echo to test this script
48
49 # Don't use :- since 4.3BSD and earlier shells don't like it.
50 doit=${DOITPROG-}
51 if test -z "$doit"; then
52 doit_exec=exec
53 else
54 doit_exec=$doit
55 fi
56
57 # Put in absolute file names if you don't have them in your path;
58 # or use environment vars.
59
60 chgrpprog=${CHGRPPROG-chgrp}
61 chmodprog=${CHMODPROG-chmod}
62 chownprog=${CHOWNPROG-chown}
63 cmpprog=${CMPPROG-cmp}
64 cpprog=${CPPROG-cp}
65 mkdirprog=${MKDIRPROG-mkdir}
66 mvprog=${MVPROG-mv}
67 rmprog=${RMPROG-rm}
68 stripprog=${STRIPPROG-strip}
69
70 posix_glob='?'
71 initialize_posix_glob='
72 test "$posix_glob" != "?" || {
73 if (set -f) 2>/dev/null; then
74 posix_glob=
75 else
76 posix_glob=:
77 fi
78 }
79 '
80
81 posix_mkdir=
82
83 # Desired mode of installed file.
84 mode=0755
85
86 chgrpcmd=
87 chmodcmd=$chmodprog
88 chowncmd=
89 mvcmd=$mvprog
90 rmcmd="$rmprog -f"
91 stripcmd=
92
93 src=
94 dst=
95 dir_arg=
96 dst_arg=
97
98 copy_on_change=false
99 no_target_directory=
100
101 usage="\
102 Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
103 or: $0 [OPTION]... SRCFILES... DIRECTORY
104 or: $0 [OPTION]... -t DIRECTORY SRCFILES...
105 or: $0 [OPTION]... -d DIRECTORIES...
106
107 In the 1st form, copy SRCFILE to DSTFILE.
108 In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
109 In the 4th, create DIRECTORIES.
110
111 Options:
112 --help display this help and exit.
113 --version display version info and exit.
114
115 -c (ignored)
116 -C install only if different (preserve the last data modification time)
117 -d create directories instead of installing files.
118 -g GROUP $chgrpprog installed files to GROUP.
119 -m MODE $chmodprog installed files to MODE.
120 -o USER $chownprog installed files to USER.
121 -s $stripprog installed files.
122 -t DIRECTORY install into DIRECTORY.
123 -T report an error if DSTFILE is a directory.
124
125 Environment variables override the default commands:
126 CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
127 RMPROG STRIPPROG
128 "
129
130 while test $# -ne 0; do
131 case $1 in
132 -c) ;;
133
134 -C) copy_on_change=true;;
135
136 -d) dir_arg=true;;
137
138 -g) chgrpcmd="$chgrpprog $2"
139 shift;;
140
141 --help) echo "$usage"; exit $?;;
142
143 -m) mode=$2
144 case $mode in
145 *' '* | *' '* | *'
146 '* | *'*'* | *'?'* | *'['*)
147 echo "$0: invalid mode: $mode" >&2
148 exit 1;;
149 esac
150 shift;;
151
152 -o) chowncmd="$chownprog $2"
153 shift;;
154
155 -s) stripcmd=$stripprog;;
156
157 -t) dst_arg=$2
158 shift;;
159
160 -T) no_target_directory=true;;
161
162 --version) echo "$0 $scriptversion"; exit $?;;
163
164 --) shift
165 break;;
166
167 -*) echo "$0: invalid option: $1" >&2
168 exit 1;;
169
170 *) break;;
171 esac
172 shift
173 done
174
175 if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
176 # When -d is used, all remaining arguments are directories to create.
177 # When -t is used, the destination is already specified.
178 # Otherwise, the last argument is the destination. Remove it from $@.
179 for arg
180 do
181 if test -n "$dst_arg"; then
182 # $@ is not empty: it contains at least $arg.
183 set fnord "$@" "$dst_arg"
184 shift # fnord
185 fi
186 shift # arg
187 dst_arg=$arg
188 done
189 fi
190
191 if test $# -eq 0; then
192 if test -z "$dir_arg"; then
193 echo "$0: no input file specified." >&2
194 exit 1
195 fi
196 # It's OK to call `install-sh -d' without argument.
197 # This can happen when creating conditional directories.
198 exit 0
199 fi
200
201 if test -z "$dir_arg"; then
202 trap '(exit $?); exit' 1 2 13 15
203
204 # Set umask so as not to create temps with too-generous modes.
205 # However, 'strip' requires both read and write access to temps.
206 case $mode in
207 # Optimize common cases.
208 *644) cp_umask=133;;
209 *755) cp_umask=22;;
210
211 *[0-7])
212 if test -z "$stripcmd"; then
213 u_plus_rw=
214 else
215 u_plus_rw='% 200'
216 fi
217 cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
218 *)
219 if test -z "$stripcmd"; then
220 u_plus_rw=
221 else
222 u_plus_rw=,u+rw
223 fi
224 cp_umask=$mode$u_plus_rw;;
225 esac
226 fi
227
228 for src
229 do
230 # Protect names starting with `-'.
231 case $src in
232 -*) src=./$src;;
233 esac
234
235 if test -n "$dir_arg"; then
236 dst=$src
237 dstdir=$dst
238 test -d "$dstdir"
239 dstdir_status=$?
240 else
241
242 # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
243 # might cause directories to be created, which would be especially bad
244 # if $src (and thus $dsttmp) contains '*'.
245 if test ! -f "$src" && test ! -d "$src"; then
246 echo "$0: $src does not exist." >&2
247 exit 1
248 fi
249
250 if test -z "$dst_arg"; then
251 echo "$0: no destination specified." >&2
252 exit 1
253 fi
254
255 dst=$dst_arg
256 # Protect names starting with `-'.
257 case $dst in
258 -*) dst=./$dst;;
259 esac
260
261 # If destination is a directory, append the input filename; won't work
262 # if double slashes aren't ignored.
263 if test -d "$dst"; then
264 if test -n "$no_target_directory"; then
265 echo "$0: $dst_arg: Is a directory" >&2
266 exit 1
267 fi
268 dstdir=$dst
269 dst=$dstdir/`basename "$src"`
270 dstdir_status=0
271 else
272 # Prefer dirname, but fall back on a substitute if dirname fails.
273 dstdir=`
274 (dirname "$dst") 2>/dev/null ||
275 expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
276 X"$dst" : 'X\(//\)[^/]' \| \
277 X"$dst" : 'X\(//\)$' \| \
278 X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
279 echo X"$dst" |
280 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
281 s//\1/
282 q
283 }
284 /^X\(\/\/\)[^/].*/{
285 s//\1/
286 q
287 }
288 /^X\(\/\/\)$/{
289 s//\1/
290 q
291 }
292 /^X\(\/\).*/{
293 s//\1/
294 q
295 }
296 s/.*/./; q'
297 `
298
299 test -d "$dstdir"
300 dstdir_status=$?
301 fi
302 fi
303
304 obsolete_mkdir_used=false
305
306 if test $dstdir_status != 0; then
307 case $posix_mkdir in
308 '')
309 # Create intermediate dirs using mode 755 as modified by the umask.
310 # This is like FreeBSD 'install' as of 1997-10-28.
311 umask=`umask`
312 case $stripcmd.$umask in
313 # Optimize common cases.
314 *[2367][2367]) mkdir_umask=$umask;;
315 .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
316
317 *[0-7])
318 mkdir_umask=`expr $umask + 22 \
319 - $umask % 100 % 40 + $umask % 20 \
320 - $umask % 10 % 4 + $umask % 2
321 `;;
322 *) mkdir_umask=$umask,go-w;;
323 esac
324
325 # With -d, create the new directory with the user-specified mode.
326 # Otherwise, rely on $mkdir_umask.
327 if test -n "$dir_arg"; then
328 mkdir_mode=-m$mode
329 else
330 mkdir_mode=
331 fi
332
333 posix_mkdir=false
334 case $umask in
335 *[123567][0-7][0-7])
336 # POSIX mkdir -p sets u+wx bits regardless of umask, which
337 # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
338 ;;
339 *)
340 tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
341 trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
342
343 if (umask $mkdir_umask &&
344 exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
345 then
346 if test -z "$dir_arg" || {
347 # Check for POSIX incompatibilities with -m.
348 # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
349 # other-writeable bit of parent directory when it shouldn't.
350 # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
351 ls_ld_tmpdir=`ls -ld "$tmpdir"`
352 case $ls_ld_tmpdir in
353 d????-?r-*) different_mode=700;;
354 d????-?--*) different_mode=755;;
355 *) false;;
356 esac &&
357 $mkdirprog -m$different_mode -p -- "$tmpdir" && {
358 ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
359 test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
360 }
361 }
362 then posix_mkdir=:
363 fi
364 rmdir "$tmpdir/d" "$tmpdir"
365 else
366 # Remove any dirs left behind by ancient mkdir implementations.
367 rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
368 fi
369 trap '' 0;;
370 esac;;
371 esac
372
373 if
374 $posix_mkdir && (
375 umask $mkdir_umask &&
376 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
377 )
378 then :
379 else
380
381 # The umask is ridiculous, or mkdir does not conform to POSIX,
382 # or it failed possibly due to a race condition. Create the
383 # directory the slow way, step by step, checking for races as we go.
384
385 case $dstdir in
386 /*) prefix='/';;
387 -*) prefix='./';;
388 *) prefix='';;
389 esac
390
391 eval "$initialize_posix_glob"
392
393 oIFS=$IFS
394 IFS=/
395 $posix_glob set -f
396 set fnord $dstdir
397 shift
398 $posix_glob set +f
399 IFS=$oIFS
400
401 prefixes=
402
403 for d
404 do
405 test -z "$d" && continue
406
407 prefix=$prefix$d
408 if test -d "$prefix"; then
409 prefixes=
410 else
411 if $posix_mkdir; then
412 (umask=$mkdir_umask &&
413 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
414 # Don't fail if two instances are running concurrently.
415 test -d "$prefix" || exit 1
416 else
417 case $prefix in
418 *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
419 *) qprefix=$prefix;;
420 esac
421 prefixes="$prefixes '$qprefix'"
422 fi
423 fi
424 prefix=$prefix/
425 done
426
427 if test -n "$prefixes"; then
428 # Don't fail if two instances are running concurrently.
429 (umask $mkdir_umask &&
430 eval "\$doit_exec \$mkdirprog $prefixes") ||
431 test -d "$dstdir" || exit 1
432 obsolete_mkdir_used=true
433 fi
434 fi
435 fi
436
437 if test -n "$dir_arg"; then
438 { test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
439 { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
440 { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
441 test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
442 else
443
444 # Make a couple of temp file names in the proper directory.
445 dsttmp=$dstdir/_inst.$$_
446 rmtmp=$dstdir/_rm.$$_
447
448 # Trap to clean up those temp files at exit.
449 trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
450
451 # Copy the file name to the temp name.
452 (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
453
454 # and set any options; do chmod last to preserve setuid bits.
455 #
456 # If any of these fail, we abort the whole thing. If we want to
457 # ignore errors from any of these, just make sure not to ignore
458 # errors from the above "$doit $cpprog $src $dsttmp" command.
459 #
460 { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
461 { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
462 { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
463 { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
464
465 # If -C, don't bother to copy if it wouldn't change the file.
466 if $copy_on_change &&
467 old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
468 new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
469
470 eval "$initialize_posix_glob" &&
471 $posix_glob set -f &&
472 set X $old && old=:$2:$4:$5:$6 &&
473 set X $new && new=:$2:$4:$5:$6 &&
474 $posix_glob set +f &&
475
476 test "$old" = "$new" &&
477 $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
478 then
479 rm -f "$dsttmp"
480 else
481 # Rename the file to the real destination.
482 $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
483
484 # The rename failed, perhaps because mv can't rename something else
485 # to itself, or perhaps because mv is so ancient that it does not
486 # support -f.
487 {
488 # Now remove or move aside any old file at destination location.
489 # We try this two ways since rm can't unlink itself on some
490 # systems and the destination file might be busy for other
491 # reasons. In this case, the final cleanup might fail but the new
492 # file should still install successfully.
493 {
494 test ! -f "$dst" ||
495 $doit $rmcmd -f "$dst" 2>/dev/null ||
496 { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
497 { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
498 } ||
499 { echo "$0: cannot unlink or rename $dst" >&2
500 (exit 1); exit 1
501 }
502 } &&
503
504 # Now rename the file to the real destination.
505 $doit $mvcmd "$dsttmp" "$dst"
506 }
507 fi || exit 1
508
509 trap '' 0
510 fi
511 done
512
513 # Local variables:
514 # eval: (add-hook 'write-file-hooks 'time-stamp)
515 # time-stamp-start: "scriptversion="
516 # time-stamp-format: "%:y-%02m-%02d.%02H"
517 # time-stamp-time-zone: "UTC"
518 # time-stamp-end: "; # UTC"
519 # End:
+0
-8413
config/ltmain.sh less more
0 # Generated from ltmain.m4sh.
1
2 # ltmain.sh (GNU libtool) 2.2.6b
3 # Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
4
5 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc.
6 # This is free software; see the source for copying conditions. There is NO
7 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
8
9 # GNU Libtool is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; either version 2 of the License, or
12 # (at your option) any later version.
13 #
14 # As a special exception to the GNU General Public License,
15 # if you distribute this file as part of a program or library that
16 # is built using GNU Libtool, you may include this file under the
17 # same distribution terms that you use for the rest of that program.
18 #
19 # GNU Libtool is distributed in the hope that it will be useful, but
20 # WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22 # General Public License for more details.
23 #
24 # You should have received a copy of the GNU General Public License
25 # along with GNU Libtool; see the file COPYING. If not, a copy
26 # can be downloaded from http://www.gnu.org/licenses/gpl.html,
27 # or obtained by writing to the Free Software Foundation, Inc.,
28 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
29
30 # Usage: $progname [OPTION]... [MODE-ARG]...
31 #
32 # Provide generalized library-building support services.
33 #
34 # --config show all configuration variables
35 # --debug enable verbose shell tracing
36 # -n, --dry-run display commands without modifying any files
37 # --features display basic configuration information and exit
38 # --mode=MODE use operation mode MODE
39 # --preserve-dup-deps don't remove duplicate dependency libraries
40 # --quiet, --silent don't print informational messages
41 # --tag=TAG use configuration variables from tag TAG
42 # -v, --verbose print informational messages (default)
43 # --version print version information
44 # -h, --help print short or long help message
45 #
46 # MODE must be one of the following:
47 #
48 # clean remove files from the build directory
49 # compile compile a source file into a libtool object
50 # execute automatically set library path, then run a program
51 # finish complete the installation of libtool libraries
52 # install install libraries or executables
53 # link create a library or an executable
54 # uninstall remove libraries from an installed directory
55 #
56 # MODE-ARGS vary depending on the MODE.
57 # Try `$progname --help --mode=MODE' for a more detailed description of MODE.
58 #
59 # When reporting a bug, please describe a test case to reproduce it and
60 # include the following information:
61 #
62 # host-triplet: $host
63 # shell: $SHELL
64 # compiler: $LTCC
65 # compiler flags: $LTCFLAGS
66 # linker: $LD (gnu? $with_gnu_ld)
67 # $progname: (GNU libtool) 2.2.6b Debian-2.2.6b-2
68 # automake: $automake_version
69 # autoconf: $autoconf_version
70 #
71 # Report bugs to <bug-libtool@gnu.org>.
72
73 PROGRAM=ltmain.sh
74 PACKAGE=libtool
75 VERSION="2.2.6b Debian-2.2.6b-2"
76 TIMESTAMP=""
77 package_revision=1.3017
78
79 # Be Bourne compatible
80 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
81 emulate sh
82 NULLCMD=:
83 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
84 # is contrary to our usage. Disable this feature.
85 alias -g '${1+"$@"}'='"$@"'
86 setopt NO_GLOB_SUBST
87 else
88 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
89 fi
90 BIN_SH=xpg4; export BIN_SH # for Tru64
91 DUALCASE=1; export DUALCASE # for MKS sh
92
93 # NLS nuisances: We save the old values to restore during execute mode.
94 # Only set LANG and LC_ALL to C if already set.
95 # These must not be set unconditionally because not all systems understand
96 # e.g. LANG=C (notably SCO).
97 lt_user_locale=
98 lt_safe_locale=
99 for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
100 do
101 eval "if test \"\${$lt_var+set}\" = set; then
102 save_$lt_var=\$$lt_var
103 $lt_var=C
104 export $lt_var
105 lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\"
106 lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\"
107 fi"
108 done
109
110 $lt_unset CDPATH
111
112
113
114
115
116 : ${CP="cp -f"}
117 : ${ECHO="echo"}
118 : ${EGREP="/bin/grep -E"}
119 : ${FGREP="/bin/grep -F"}
120 : ${GREP="/bin/grep"}
121 : ${LN_S="ln -s"}
122 : ${MAKE="make"}
123 : ${MKDIR="mkdir"}
124 : ${MV="mv -f"}
125 : ${RM="rm -f"}
126 : ${SED="/bin/sed"}
127 : ${SHELL="${CONFIG_SHELL-/bin/sh}"}
128 : ${Xsed="$SED -e 1s/^X//"}
129
130 # Global variables:
131 EXIT_SUCCESS=0
132 EXIT_FAILURE=1
133 EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing.
134 EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake.
135
136 exit_status=$EXIT_SUCCESS
137
138 # Make sure IFS has a sensible default
139 lt_nl='
140 '
141 IFS=" $lt_nl"
142
143 dirname="s,/[^/]*$,,"
144 basename="s,^.*/,,"
145
146 # func_dirname_and_basename file append nondir_replacement
147 # perform func_basename and func_dirname in a single function
148 # call:
149 # dirname: Compute the dirname of FILE. If nonempty,
150 # add APPEND to the result, otherwise set result
151 # to NONDIR_REPLACEMENT.
152 # value returned in "$func_dirname_result"
153 # basename: Compute filename of FILE.
154 # value retuned in "$func_basename_result"
155 # Implementation must be kept synchronized with func_dirname
156 # and func_basename. For efficiency, we do not delegate to
157 # those functions but instead duplicate the functionality here.
158 func_dirname_and_basename ()
159 {
160 # Extract subdirectory from the argument.
161 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
162 if test "X$func_dirname_result" = "X${1}"; then
163 func_dirname_result="${3}"
164 else
165 func_dirname_result="$func_dirname_result${2}"
166 fi
167 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
168 }
169
170 # Generated shell functions inserted here.
171
172 # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
173 # is ksh but when the shell is invoked as "sh" and the current value of
174 # the _XPG environment variable is not equal to 1 (one), the special
175 # positional parameter $0, within a function call, is the name of the
176 # function.
177 progpath="$0"
178
179 # The name of this program:
180 # In the unlikely event $progname began with a '-', it would play havoc with
181 # func_echo (imagine progname=-n), so we prepend ./ in that case:
182 func_dirname_and_basename "$progpath"
183 progname=$func_basename_result
184 case $progname in
185 -*) progname=./$progname ;;
186 esac
187
188 # Make sure we have an absolute path for reexecution:
189 case $progpath in
190 [\\/]*|[A-Za-z]:\\*) ;;
191 *[\\/]*)
192 progdir=$func_dirname_result
193 progdir=`cd "$progdir" && pwd`
194 progpath="$progdir/$progname"
195 ;;
196 *)
197 save_IFS="$IFS"
198 IFS=:
199 for progdir in $PATH; do
200 IFS="$save_IFS"
201 test -x "$progdir/$progname" && break
202 done
203 IFS="$save_IFS"
204 test -n "$progdir" || progdir=`pwd`
205 progpath="$progdir/$progname"
206 ;;
207 esac
208
209 # Sed substitution that helps us do robust quoting. It backslashifies
210 # metacharacters that are still active within double-quoted strings.
211 Xsed="${SED}"' -e 1s/^X//'
212 sed_quote_subst='s/\([`"$\\]\)/\\\1/g'
213
214 # Same as above, but do not quote variable references.
215 double_quote_subst='s/\(["`\\]\)/\\\1/g'
216
217 # Re-`\' parameter expansions in output of double_quote_subst that were
218 # `\'-ed in input to the same. If an odd number of `\' preceded a '$'
219 # in input to double_quote_subst, that '$' was protected from expansion.
220 # Since each input `\' is now two `\'s, look for any number of runs of
221 # four `\'s followed by two `\'s and then a '$'. `\' that '$'.
222 bs='\\'
223 bs2='\\\\'
224 bs4='\\\\\\\\'
225 dollar='\$'
226 sed_double_backslash="\
227 s/$bs4/&\\
228 /g
229 s/^$bs2$dollar/$bs&/
230 s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g
231 s/\n//g"
232
233 # Standard options:
234 opt_dry_run=false
235 opt_help=false
236 opt_quiet=false
237 opt_verbose=false
238 opt_warning=:
239
240 # func_echo arg...
241 # Echo program name prefixed message, along with the current mode
242 # name if it has been set yet.
243 func_echo ()
244 {
245 $ECHO "$progname${mode+: }$mode: $*"
246 }
247
248 # func_verbose arg...
249 # Echo program name prefixed message in verbose mode only.
250 func_verbose ()
251 {
252 $opt_verbose && func_echo ${1+"$@"}
253
254 # A bug in bash halts the script if the last line of a function
255 # fails when set -e is in force, so we need another command to
256 # work around that:
257 :
258 }
259
260 # func_error arg...
261 # Echo program name prefixed message to standard error.
262 func_error ()
263 {
264 $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2
265 }
266
267 # func_warning arg...
268 # Echo program name prefixed warning message to standard error.
269 func_warning ()
270 {
271 $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2
272
273 # bash bug again:
274 :
275 }
276
277 # func_fatal_error arg...
278 # Echo program name prefixed message to standard error, and exit.
279 func_fatal_error ()
280 {
281 func_error ${1+"$@"}
282 exit $EXIT_FAILURE
283 }
284
285 # func_fatal_help arg...
286 # Echo program name prefixed message to standard error, followed by
287 # a help hint, and exit.
288 func_fatal_help ()
289 {
290 func_error ${1+"$@"}
291 func_fatal_error "$help"
292 }
293 help="Try \`$progname --help' for more information." ## default
294
295
296 # func_grep expression filename
297 # Check whether EXPRESSION matches any line of FILENAME, without output.
298 func_grep ()
299 {
300 $GREP "$1" "$2" >/dev/null 2>&1
301 }
302
303
304 # func_mkdir_p directory-path
305 # Make sure the entire path to DIRECTORY-PATH is available.
306 func_mkdir_p ()
307 {
308 my_directory_path="$1"
309 my_dir_list=
310
311 if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then
312
313 # Protect directory names starting with `-'
314 case $my_directory_path in
315 -*) my_directory_path="./$my_directory_path" ;;
316 esac
317
318 # While some portion of DIR does not yet exist...
319 while test ! -d "$my_directory_path"; do
320 # ...make a list in topmost first order. Use a colon delimited
321 # list incase some portion of path contains whitespace.
322 my_dir_list="$my_directory_path:$my_dir_list"
323
324 # If the last portion added has no slash in it, the list is done
325 case $my_directory_path in */*) ;; *) break ;; esac
326
327 # ...otherwise throw away the child directory and loop
328 my_directory_path=`$ECHO "X$my_directory_path" | $Xsed -e "$dirname"`
329 done
330 my_dir_list=`$ECHO "X$my_dir_list" | $Xsed -e 's,:*$,,'`
331
332 save_mkdir_p_IFS="$IFS"; IFS=':'
333 for my_dir in $my_dir_list; do
334 IFS="$save_mkdir_p_IFS"
335 # mkdir can fail with a `File exist' error if two processes
336 # try to create one of the directories concurrently. Don't
337 # stop in that case!
338 $MKDIR "$my_dir" 2>/dev/null || :
339 done
340 IFS="$save_mkdir_p_IFS"
341
342 # Bail out if we (or some other process) failed to create a directory.
343 test -d "$my_directory_path" || \
344 func_fatal_error "Failed to create \`$1'"
345 fi
346 }
347
348
349 # func_mktempdir [string]
350 # Make a temporary directory that won't clash with other running
351 # libtool processes, and avoids race conditions if possible. If
352 # given, STRING is the basename for that directory.
353 func_mktempdir ()
354 {
355 my_template="${TMPDIR-/tmp}/${1-$progname}"
356
357 if test "$opt_dry_run" = ":"; then
358 # Return a directory name, but don't create it in dry-run mode
359 my_tmpdir="${my_template}-$$"
360 else
361
362 # If mktemp works, use that first and foremost
363 my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
364
365 if test ! -d "$my_tmpdir"; then
366 # Failing that, at least try and use $RANDOM to avoid a race
367 my_tmpdir="${my_template}-${RANDOM-0}$$"
368
369 save_mktempdir_umask=`umask`
370 umask 0077
371 $MKDIR "$my_tmpdir"
372 umask $save_mktempdir_umask
373 fi
374
375 # If we're not in dry-run mode, bomb out on failure
376 test -d "$my_tmpdir" || \
377 func_fatal_error "cannot create temporary directory \`$my_tmpdir'"
378 fi
379
380 $ECHO "X$my_tmpdir" | $Xsed
381 }
382
383
384 # func_quote_for_eval arg
385 # Aesthetically quote ARG to be evaled later.
386 # This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT
387 # is double-quoted, suitable for a subsequent eval, whereas
388 # FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters
389 # which are still active within double quotes backslashified.
390 func_quote_for_eval ()
391 {
392 case $1 in
393 *[\\\`\"\$]*)
394 func_quote_for_eval_unquoted_result=`$ECHO "X$1" | $Xsed -e "$sed_quote_subst"` ;;
395 *)
396 func_quote_for_eval_unquoted_result="$1" ;;
397 esac
398
399 case $func_quote_for_eval_unquoted_result in
400 # Double-quote args containing shell metacharacters to delay
401 # word splitting, command substitution and and variable
402 # expansion for a subsequent eval.
403 # Many Bourne shells cannot handle close brackets correctly
404 # in scan sets, so we specify it separately.
405 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
406 func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\""
407 ;;
408 *)
409 func_quote_for_eval_result="$func_quote_for_eval_unquoted_result"
410 esac
411 }
412
413
414 # func_quote_for_expand arg
415 # Aesthetically quote ARG to be evaled later; same as above,
416 # but do not quote variable references.
417 func_quote_for_expand ()
418 {
419 case $1 in
420 *[\\\`\"]*)
421 my_arg=`$ECHO "X$1" | $Xsed \
422 -e "$double_quote_subst" -e "$sed_double_backslash"` ;;
423 *)
424 my_arg="$1" ;;
425 esac
426
427 case $my_arg in
428 # Double-quote args containing shell metacharacters to delay
429 # word splitting and command substitution for a subsequent eval.
430 # Many Bourne shells cannot handle close brackets correctly
431 # in scan sets, so we specify it separately.
432 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
433 my_arg="\"$my_arg\""
434 ;;
435 esac
436
437 func_quote_for_expand_result="$my_arg"
438 }
439
440
441 # func_show_eval cmd [fail_exp]
442 # Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
443 # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
444 # is given, then evaluate it.
445 func_show_eval ()
446 {
447 my_cmd="$1"
448 my_fail_exp="${2-:}"
449
450 ${opt_silent-false} || {
451 func_quote_for_expand "$my_cmd"
452 eval "func_echo $func_quote_for_expand_result"
453 }
454
455 if ${opt_dry_run-false}; then :; else
456 eval "$my_cmd"
457 my_status=$?
458 if test "$my_status" -eq 0; then :; else
459 eval "(exit $my_status); $my_fail_exp"
460 fi
461 fi
462 }
463
464
465 # func_show_eval_locale cmd [fail_exp]
466 # Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
467 # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
468 # is given, then evaluate it. Use the saved locale for evaluation.
469 func_show_eval_locale ()
470 {
471 my_cmd="$1"
472 my_fail_exp="${2-:}"
473
474 ${opt_silent-false} || {
475 func_quote_for_expand "$my_cmd"
476 eval "func_echo $func_quote_for_expand_result"
477 }
478
479 if ${opt_dry_run-false}; then :; else
480 eval "$lt_user_locale
481 $my_cmd"
482 my_status=$?
483 eval "$lt_safe_locale"
484 if test "$my_status" -eq 0; then :; else
485 eval "(exit $my_status); $my_fail_exp"
486 fi
487 fi
488 }
489
490
491
492
493
494 # func_version
495 # Echo version message to standard output and exit.
496 func_version ()
497 {
498 $SED -n '/^# '$PROGRAM' (GNU /,/# warranty; / {
499 s/^# //
500 s/^# *$//
501 s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/
502 p
503 }' < "$progpath"
504 exit $?
505 }
506
507 # func_usage
508 # Echo short help message to standard output and exit.
509 func_usage ()
510 {
511 $SED -n '/^# Usage:/,/# -h/ {
512 s/^# //
513 s/^# *$//
514 s/\$progname/'$progname'/
515 p
516 }' < "$progpath"
517 $ECHO
518 $ECHO "run \`$progname --help | more' for full usage"
519 exit $?
520 }
521
522 # func_help
523 # Echo long help message to standard output and exit.
524 func_help ()
525 {
526 $SED -n '/^# Usage:/,/# Report bugs to/ {
527 s/^# //
528 s/^# *$//
529 s*\$progname*'$progname'*
530 s*\$host*'"$host"'*
531 s*\$SHELL*'"$SHELL"'*
532 s*\$LTCC*'"$LTCC"'*
533 s*\$LTCFLAGS*'"$LTCFLAGS"'*
534 s*\$LD*'"$LD"'*
535 s/\$with_gnu_ld/'"$with_gnu_ld"'/
536 s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/
537 s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/
538 p
539 }' < "$progpath"
540 exit $?
541 }
542
543 # func_missing_arg argname
544 # Echo program name prefixed message to standard error and set global
545 # exit_cmd.
546 func_missing_arg ()
547 {
548 func_error "missing argument for $1"
549 exit_cmd=exit
550 }
551
552 exit_cmd=:
553
554
555
556
557
558 # Check that we have a working $ECHO.
559 if test "X$1" = X--no-reexec; then
560 # Discard the --no-reexec flag, and continue.
561 shift
562 elif test "X$1" = X--fallback-echo; then
563 # Avoid inline document here, it may be left over
564 :
565 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t'; then
566 # Yippee, $ECHO works!
567 :
568 else
569 # Restart under the correct shell, and then maybe $ECHO will work.
570 exec $SHELL "$progpath" --no-reexec ${1+"$@"}
571 fi
572
573 if test "X$1" = X--fallback-echo; then
574 # used as fallback echo
575 shift
576 cat <<EOF
577 $*
578 EOF
579 exit $EXIT_SUCCESS
580 fi
581
582 magic="%%%MAGIC variable%%%"
583 magic_exe="%%%MAGIC EXE variable%%%"
584
585 # Global variables.
586 # $mode is unset
587 nonopt=
588 execute_dlfiles=
589 preserve_args=
590 lo2o="s/\\.lo\$/.${objext}/"
591 o2lo="s/\\.${objext}\$/.lo/"
592 extracted_archives=
593 extracted_serial=0
594
595 opt_dry_run=false
596 opt_duplicate_deps=false
597 opt_silent=false
598 opt_debug=:
599
600 # If this variable is set in any of the actions, the command in it
601 # will be execed at the end. This prevents here-documents from being
602 # left over by shells.
603 exec_cmd=
604
605 # func_fatal_configuration arg...
606 # Echo program name prefixed message to standard error, followed by
607 # a configuration failure hint, and exit.
608 func_fatal_configuration ()
609 {
610 func_error ${1+"$@"}
611 func_error "See the $PACKAGE documentation for more information."
612 func_fatal_error "Fatal configuration error."
613 }
614
615
616 # func_config
617 # Display the configuration for all the tags in this script.
618 func_config ()
619 {
620 re_begincf='^# ### BEGIN LIBTOOL'
621 re_endcf='^# ### END LIBTOOL'
622
623 # Default configuration.
624 $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath"
625
626 # Now print the configurations for the tags.
627 for tagname in $taglist; do
628 $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath"
629 done
630
631 exit $?
632 }
633
634 # func_features
635 # Display the features supported by this script.
636 func_features ()
637 {
638 $ECHO "host: $host"
639 if test "$build_libtool_libs" = yes; then
640 $ECHO "enable shared libraries"
641 else
642 $ECHO "disable shared libraries"
643 fi
644 if test "$build_old_libs" = yes; then
645 $ECHO "enable static libraries"
646 else
647 $ECHO "disable static libraries"
648 fi
649
650 exit $?
651 }
652
653 # func_enable_tag tagname
654 # Verify that TAGNAME is valid, and either flag an error and exit, or
655 # enable the TAGNAME tag. We also add TAGNAME to the global $taglist
656 # variable here.
657 func_enable_tag ()
658 {
659 # Global variable:
660 tagname="$1"
661
662 re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$"
663 re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$"
664 sed_extractcf="/$re_begincf/,/$re_endcf/p"
665
666 # Validate tagname.
667 case $tagname in
668 *[!-_A-Za-z0-9,/]*)
669 func_fatal_error "invalid tag name: $tagname"
670 ;;
671 esac
672
673 # Don't test for the "default" C tag, as we know it's
674 # there but not specially marked.
675 case $tagname in
676 CC) ;;
677 *)
678 if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then
679 taglist="$taglist $tagname"
680
681 # Evaluate the configuration. Be careful to quote the path
682 # and the sed script, to avoid splitting on whitespace, but
683 # also don't use non-portable quotes within backquotes within
684 # quotes we have to do it in 2 steps:
685 extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
686 eval "$extractedcf"
687 else
688 func_error "ignoring unknown tag $tagname"
689 fi
690 ;;
691 esac
692 }
693
694 # Parse options once, thoroughly. This comes as soon as possible in
695 # the script to make things like `libtool --version' happen quickly.
696 {
697
698 # Shorthand for --mode=foo, only valid as the first argument
699 case $1 in
700 clean|clea|cle|cl)
701 shift; set dummy --mode clean ${1+"$@"}; shift
702 ;;
703 compile|compil|compi|comp|com|co|c)
704 shift; set dummy --mode compile ${1+"$@"}; shift
705 ;;
706 execute|execut|execu|exec|exe|ex|e)
707 shift; set dummy --mode execute ${1+"$@"}; shift
708 ;;
709 finish|finis|fini|fin|fi|f)
710 shift; set dummy --mode finish ${1+"$@"}; shift
711 ;;
712 install|instal|insta|inst|ins|in|i)
713 shift; set dummy --mode install ${1+"$@"}; shift
714 ;;
715 link|lin|li|l)
716 shift; set dummy --mode link ${1+"$@"}; shift
717 ;;
718 uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
719 shift; set dummy --mode uninstall ${1+"$@"}; shift
720 ;;
721 esac
722
723 # Parse non-mode specific arguments:
724 while test "$#" -gt 0; do
725 opt="$1"
726 shift
727
728 case $opt in
729 --config) func_config ;;
730
731 --debug) preserve_args="$preserve_args $opt"
732 func_echo "enabling shell trace mode"
733 opt_debug='set -x'
734 $opt_debug
735 ;;
736
737 -dlopen) test "$#" -eq 0 && func_missing_arg "$opt" && break
738 execute_dlfiles="$execute_dlfiles $1"
739 shift
740 ;;
741
742 --dry-run | -n) opt_dry_run=: ;;
743 --features) func_features ;;
744 --finish) mode="finish" ;;
745
746 --mode) test "$#" -eq 0 && func_missing_arg "$opt" && break
747 case $1 in
748 # Valid mode arguments:
749 clean) ;;
750 compile) ;;
751 execute) ;;
752 finish) ;;
753 install) ;;
754 link) ;;
755 relink) ;;
756 uninstall) ;;
757
758 # Catch anything else as an error
759 *) func_error "invalid argument for $opt"
760 exit_cmd=exit
761 break
762 ;;
763 esac
764
765 mode="$1"
766 shift
767 ;;
768
769 --preserve-dup-deps)
770 opt_duplicate_deps=: ;;
771
772 --quiet|--silent) preserve_args="$preserve_args $opt"
773 opt_silent=:
774 ;;
775
776 --verbose| -v) preserve_args="$preserve_args $opt"
777 opt_silent=false
778 ;;
779
780 --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break
781 preserve_args="$preserve_args $opt $1"
782 func_enable_tag "$1" # tagname is set here
783 shift
784 ;;
785
786 # Separate optargs to long options:
787 -dlopen=*|--mode=*|--tag=*)
788 func_opt_split "$opt"
789 set dummy "$func_opt_split_opt" "$func_opt_split_arg" ${1+"$@"}
790 shift
791 ;;
792
793 -\?|-h) func_usage ;;
794 --help) opt_help=: ;;
795 --version) func_version ;;
796
797 -*) func_fatal_help "unrecognized option \`$opt'" ;;
798
799 *) nonopt="$opt"
800 break
801 ;;
802 esac
803 done
804
805
806 case $host in
807 *cygwin* | *mingw* | *pw32* | *cegcc*)
808 # don't eliminate duplications in $postdeps and $predeps
809 opt_duplicate_compiler_generated_deps=:
810 ;;
811 *)
812 opt_duplicate_compiler_generated_deps=$opt_duplicate_deps
813 ;;
814 esac
815
816 # Having warned about all mis-specified options, bail out if
817 # anything was wrong.
818 $exit_cmd $EXIT_FAILURE
819 }
820
821 # func_check_version_match
822 # Ensure that we are using m4 macros, and libtool script from the same
823 # release of libtool.
824 func_check_version_match ()
825 {
826 if test "$package_revision" != "$macro_revision"; then
827 if test "$VERSION" != "$macro_version"; then
828 if test -z "$macro_version"; then
829 cat >&2 <<_LT_EOF
830 $progname: Version mismatch error. This is $PACKAGE $VERSION, but the
831 $progname: definition of this LT_INIT comes from an older release.
832 $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
833 $progname: and run autoconf again.
834 _LT_EOF
835 else
836 cat >&2 <<_LT_EOF
837 $progname: Version mismatch error. This is $PACKAGE $VERSION, but the
838 $progname: definition of this LT_INIT comes from $PACKAGE $macro_version.
839 $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
840 $progname: and run autoconf again.
841 _LT_EOF
842 fi
843 else
844 cat >&2 <<_LT_EOF
845 $progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision,
846 $progname: but the definition of this LT_INIT comes from revision $macro_revision.
847 $progname: You should recreate aclocal.m4 with macros from revision $package_revision
848 $progname: of $PACKAGE $VERSION and run autoconf again.
849 _LT_EOF
850 fi
851
852 exit $EXIT_MISMATCH
853 fi
854 }
855
856
857 ## ----------- ##
858 ## Main. ##
859 ## ----------- ##
860
861 $opt_help || {
862 # Sanity checks first:
863 func_check_version_match
864
865 if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
866 func_fatal_configuration "not configured to build any kind of library"
867 fi
868
869 test -z "$mode" && func_fatal_error "error: you must specify a MODE."
870
871
872 # Darwin sucks
873 eval std_shrext=\"$shrext_cmds\"
874
875
876 # Only execute mode is allowed to have -dlopen flags.
877 if test -n "$execute_dlfiles" && test "$mode" != execute; then
878 func_error "unrecognized option \`-dlopen'"
879 $ECHO "$help" 1>&2
880 exit $EXIT_FAILURE
881 fi
882
883 # Change the help message to a mode-specific one.
884 generic_help="$help"
885 help="Try \`$progname --help --mode=$mode' for more information."
886 }
887
888
889 # func_lalib_p file
890 # True iff FILE is a libtool `.la' library or `.lo' object file.
891 # This function is only a basic sanity check; it will hardly flush out
892 # determined imposters.
893 func_lalib_p ()
894 {
895 test -f "$1" &&
896 $SED -e 4q "$1" 2>/dev/null \
897 | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1
898 }
899
900 # func_lalib_unsafe_p file
901 # True iff FILE is a libtool `.la' library or `.lo' object file.
902 # This function implements the same check as func_lalib_p without
903 # resorting to external programs. To this end, it redirects stdin and
904 # closes it afterwards, without saving the original file descriptor.
905 # As a safety measure, use it only where a negative result would be
906 # fatal anyway. Works if `file' does not exist.
907 func_lalib_unsafe_p ()
908 {
909 lalib_p=no
910 if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then
911 for lalib_p_l in 1 2 3 4
912 do
913 read lalib_p_line
914 case "$lalib_p_line" in
915 \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;;
916 esac
917 done
918 exec 0<&5 5<&-
919 fi
920 test "$lalib_p" = yes
921 }
922
923 # func_ltwrapper_script_p file
924 # True iff FILE is a libtool wrapper script
925 # This function is only a basic sanity check; it will hardly flush out
926 # determined imposters.
927 func_ltwrapper_script_p ()
928 {
929 func_lalib_p "$1"
930 }
931
932 # func_ltwrapper_executable_p file
933 # True iff FILE is a libtool wrapper executable
934 # This function is only a basic sanity check; it will hardly flush out
935 # determined imposters.
936 func_ltwrapper_executable_p ()
937 {
938 func_ltwrapper_exec_suffix=
939 case $1 in
940 *.exe) ;;
941 *) func_ltwrapper_exec_suffix=.exe ;;
942 esac
943 $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1
944 }
945
946 # func_ltwrapper_scriptname file
947 # Assumes file is an ltwrapper_executable
948 # uses $file to determine the appropriate filename for a
949 # temporary ltwrapper_script.
950 func_ltwrapper_scriptname ()
951 {
952 func_ltwrapper_scriptname_result=""
953 if func_ltwrapper_executable_p "$1"; then
954 func_dirname_and_basename "$1" "" "."
955 func_stripname '' '.exe' "$func_basename_result"
956 func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
957 fi
958 }
959
960 # func_ltwrapper_p file
961 # True iff FILE is a libtool wrapper script or wrapper executable
962 # This function is only a basic sanity check; it will hardly flush out
963 # determined imposters.
964 func_ltwrapper_p ()
965 {
966 func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1"
967 }
968
969
970 # func_execute_cmds commands fail_cmd
971 # Execute tilde-delimited COMMANDS.
972 # If FAIL_CMD is given, eval that upon failure.
973 # FAIL_CMD may read-access the current command in variable CMD!
974 func_execute_cmds ()
975 {
976 $opt_debug
977 save_ifs=$IFS; IFS='~'
978 for cmd in $1; do
979 IFS=$save_ifs
980 eval cmd=\"$cmd\"
981 func_show_eval "$cmd" "${2-:}"
982 done
983 IFS=$save_ifs
984 }
985
986
987 # func_source file
988 # Source FILE, adding directory component if necessary.
989 # Note that it is not necessary on cygwin/mingw to append a dot to
990 # FILE even if both FILE and FILE.exe exist: automatic-append-.exe
991 # behavior happens only for exec(3), not for open(2)! Also, sourcing
992 # `FILE.' does not work on cygwin managed mounts.
993 func_source ()
994 {
995 $opt_debug
996 case $1 in
997 */* | *\\*) . "$1" ;;
998 *) . "./$1" ;;
999 esac
1000 }
1001
1002
1003 # func_infer_tag arg
1004 # Infer tagged configuration to use if any are available and
1005 # if one wasn't chosen via the "--tag" command line option.
1006 # Only attempt this if the compiler in the base compile
1007 # command doesn't match the default compiler.
1008 # arg is usually of the form 'gcc ...'
1009 func_infer_tag ()
1010 {
1011 $opt_debug
1012 if test -n "$available_tags" && test -z "$tagname"; then
1013 CC_quoted=
1014 for arg in $CC; do
1015 func_quote_for_eval "$arg"
1016 CC_quoted="$CC_quoted $func_quote_for_eval_result"
1017 done
1018 case $@ in
1019 # Blanks in the command may have been stripped by the calling shell,
1020 # but not from the CC environment variable when configure was run.
1021 " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) ;;
1022 # Blanks at the start of $base_compile will cause this to fail
1023 # if we don't check for them as well.
1024 *)
1025 for z in $available_tags; do
1026 if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
1027 # Evaluate the configuration.
1028 eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
1029 CC_quoted=
1030 for arg in $CC; do
1031 # Double-quote args containing other shell metacharacters.
1032 func_quote_for_eval "$arg"
1033 CC_quoted="$CC_quoted $func_quote_for_eval_result"
1034 done
1035 case "$@ " in
1036 " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*)
1037 # The compiler in the base compile command matches
1038 # the one in the tagged configuration.
1039 # Assume this is the tagged configuration we want.
1040 tagname=$z
1041 break
1042 ;;
1043 esac
1044 fi
1045 done
1046 # If $tagname still isn't set, then no tagged configuration
1047 # was found and let the user know that the "--tag" command
1048 # line option must be used.
1049 if test -z "$tagname"; then
1050 func_echo "unable to infer tagged configuration"
1051 func_fatal_error "specify a tag with \`--tag'"
1052 # else
1053 # func_verbose "using $tagname tagged configuration"
1054 fi
1055 ;;
1056 esac
1057 fi
1058 }
1059
1060
1061
1062 # func_write_libtool_object output_name pic_name nonpic_name
1063 # Create a libtool object file (analogous to a ".la" file),
1064 # but don't create it if we're doing a dry run.
1065 func_write_libtool_object ()
1066 {
1067 write_libobj=${1}
1068 if test "$build_libtool_libs" = yes; then
1069 write_lobj=\'${2}\'
1070 else
1071 write_lobj=none
1072 fi
1073
1074 if test "$build_old_libs" = yes; then
1075 write_oldobj=\'${3}\'
1076 else
1077 write_oldobj=none
1078 fi
1079
1080 $opt_dry_run || {
1081 cat >${write_libobj}T <<EOF
1082 # $write_libobj - a libtool object file
1083 # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
1084 #
1085 # Please DO NOT delete this file!
1086 # It is necessary for linking the library.
1087
1088 # Name of the PIC object.
1089 pic_object=$write_lobj
1090
1091 # Name of the non-PIC object
1092 non_pic_object=$write_oldobj
1093
1094 EOF
1095 $MV "${write_libobj}T" "${write_libobj}"
1096 }
1097 }
1098
1099 # func_mode_compile arg...
1100 func_mode_compile ()
1101 {
1102 $opt_debug
1103 # Get the compilation command and the source file.
1104 base_compile=
1105 srcfile="$nonopt" # always keep a non-empty value in "srcfile"
1106 suppress_opt=yes
1107 suppress_output=
1108 arg_mode=normal
1109 libobj=
1110 later=
1111 pie_flag=
1112
1113 for arg
1114 do
1115 case $arg_mode in
1116 arg )
1117 # do not "continue". Instead, add this to base_compile
1118 lastarg="$arg"
1119 arg_mode=normal
1120 ;;
1121
1122 target )
1123 libobj="$arg"
1124 arg_mode=normal
1125 continue
1126 ;;
1127
1128 normal )
1129 # Accept any command-line options.
1130 case $arg in
1131 -o)
1132 test -n "$libobj" && \
1133 func_fatal_error "you cannot specify \`-o' more than once"
1134 arg_mode=target
1135 continue
1136 ;;
1137
1138 -pie | -fpie | -fPIE)
1139 pie_flag="$pie_flag $arg"
1140 continue
1141 ;;
1142
1143 -shared | -static | -prefer-pic | -prefer-non-pic)
1144 later="$later $arg"
1145 continue
1146 ;;
1147
1148 -no-suppress)
1149 suppress_opt=no
1150 continue
1151 ;;
1152
1153 -Xcompiler)
1154 arg_mode=arg # the next one goes into the "base_compile" arg list
1155 continue # The current "srcfile" will either be retained or
1156 ;; # replaced later. I would guess that would be a bug.
1157
1158 -Wc,*)
1159 func_stripname '-Wc,' '' "$arg"
1160 args=$func_stripname_result
1161 lastarg=
1162 save_ifs="$IFS"; IFS=','
1163 for arg in $args; do
1164 IFS="$save_ifs"
1165 func_quote_for_eval "$arg"
1166 lastarg="$lastarg $func_quote_for_eval_result"
1167 done
1168 IFS="$save_ifs"
1169 func_stripname ' ' '' "$lastarg"
1170 lastarg=$func_stripname_result
1171
1172 # Add the arguments to base_compile.
1173 base_compile="$base_compile $lastarg"
1174 continue
1175 ;;
1176
1177 *)
1178 # Accept the current argument as the source file.
1179 # The previous "srcfile" becomes the current argument.
1180 #
1181 lastarg="$srcfile"
1182 srcfile="$arg"
1183 ;;
1184 esac # case $arg
1185 ;;
1186 esac # case $arg_mode
1187
1188 # Aesthetically quote the previous argument.
1189 func_quote_for_eval "$lastarg"
1190 base_compile="$base_compile $func_quote_for_eval_result"
1191 done # for arg
1192
1193 case $arg_mode in
1194 arg)
1195 func_fatal_error "you must specify an argument for -Xcompile"
1196 ;;
1197 target)
1198 func_fatal_error "you must specify a target with \`-o'"
1199 ;;
1200 *)
1201 # Get the name of the library object.
1202 test -z "$libobj" && {
1203 func_basename "$srcfile"
1204 libobj="$func_basename_result"
1205 }
1206 ;;
1207 esac
1208
1209 # Recognize several different file suffixes.
1210 # If the user specifies -o file.o, it is replaced with file.lo
1211 case $libobj in
1212 *.[cCFSifmso] | \
1213 *.ada | *.adb | *.ads | *.asm | \
1214 *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \
1215 *.[fF][09]? | *.for | *.java | *.obj | *.sx)
1216 func_xform "$libobj"
1217 libobj=$func_xform_result
1218 ;;
1219 esac
1220
1221 case $libobj in
1222 *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;;
1223 *)
1224 func_fatal_error "cannot determine name of library object from \`$libobj'"
1225 ;;
1226 esac
1227
1228 func_infer_tag $base_compile
1229
1230 for arg in $later; do
1231 case $arg in
1232 -shared)
1233 test "$build_libtool_libs" != yes && \
1234 func_fatal_configuration "can not build a shared library"
1235 build_old_libs=no
1236 continue
1237 ;;
1238
1239 -static)
1240 build_libtool_libs=no
1241 build_old_libs=yes
1242 continue
1243 ;;
1244
1245 -prefer-pic)
1246 pic_mode=yes
1247 continue
1248 ;;
1249
1250 -prefer-non-pic)
1251 pic_mode=no
1252 continue
1253 ;;
1254 esac
1255 done
1256
1257 func_quote_for_eval "$libobj"
1258 test "X$libobj" != "X$func_quote_for_eval_result" \
1259 && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \
1260 && func_warning "libobj name \`$libobj' may not contain shell special characters."
1261 func_dirname_and_basename "$obj" "/" ""
1262 objname="$func_basename_result"
1263 xdir="$func_dirname_result"
1264 lobj=${xdir}$objdir/$objname
1265
1266 test -z "$base_compile" && \
1267 func_fatal_help "you must specify a compilation command"
1268
1269 # Delete any leftover library objects.
1270 if test "$build_old_libs" = yes; then
1271 removelist="$obj $lobj $libobj ${libobj}T"
1272 else
1273 removelist="$lobj $libobj ${libobj}T"
1274 fi
1275
1276 # On Cygwin there's no "real" PIC flag so we must build both object types
1277 case $host_os in
1278 cygwin* | mingw* | pw32* | os2* | cegcc*)
1279 pic_mode=default
1280 ;;
1281 esac
1282 if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
1283 # non-PIC code in shared libraries is not supported
1284 pic_mode=default
1285 fi
1286
1287 # Calculate the filename of the output object if compiler does
1288 # not support -o with -c
1289 if test "$compiler_c_o" = no; then
1290 output_obj=`$ECHO "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
1291 lockfile="$output_obj.lock"
1292 else
1293 output_obj=
1294 need_locks=no
1295 lockfile=
1296 fi
1297
1298 # Lock this critical section if it is needed
1299 # We use this script file to make the link, it avoids creating a new file
1300 if test "$need_locks" = yes; then
1301 until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
1302 func_echo "Waiting for $lockfile to be removed"
1303 sleep 2
1304 done
1305 elif test "$need_locks" = warn; then
1306 if test -f "$lockfile"; then
1307 $ECHO "\
1308 *** ERROR, $lockfile exists and contains:
1309 `cat $lockfile 2>/dev/null`
1310
1311 This indicates that another process is trying to use the same
1312 temporary object file, and libtool could not work around it because
1313 your compiler does not support \`-c' and \`-o' together. If you
1314 repeat this compilation, it may succeed, by chance, but you had better
1315 avoid parallel builds (make -j) in this platform, or get a better
1316 compiler."
1317
1318 $opt_dry_run || $RM $removelist
1319 exit $EXIT_FAILURE
1320 fi
1321 removelist="$removelist $output_obj"
1322 $ECHO "$srcfile" > "$lockfile"
1323 fi
1324
1325 $opt_dry_run || $RM $removelist
1326 removelist="$removelist $lockfile"
1327 trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15
1328
1329 if test -n "$fix_srcfile_path"; then
1330 eval srcfile=\"$fix_srcfile_path\"
1331 fi
1332 func_quote_for_eval "$srcfile"
1333 qsrcfile=$func_quote_for_eval_result
1334
1335 # Only build a PIC object if we are building libtool libraries.
1336 if test "$build_libtool_libs" = yes; then
1337 # Without this assignment, base_compile gets emptied.
1338 fbsd_hideous_sh_bug=$base_compile
1339
1340 if test "$pic_mode" != no; then
1341 command="$base_compile $qsrcfile $pic_flag"
1342 else
1343 # Don't build PIC code
1344 command="$base_compile $qsrcfile"
1345 fi
1346
1347 func_mkdir_p "$xdir$objdir"
1348
1349 if test -z "$output_obj"; then
1350 # Place PIC objects in $objdir
1351 command="$command -o $lobj"
1352 fi
1353
1354 func_show_eval_locale "$command" \
1355 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
1356
1357 if test "$need_locks" = warn &&
1358 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
1359 $ECHO "\
1360 *** ERROR, $lockfile contains:
1361 `cat $lockfile 2>/dev/null`
1362
1363 but it should contain:
1364 $srcfile
1365
1366 This indicates that another process is trying to use the same
1367 temporary object file, and libtool could not work around it because
1368 your compiler does not support \`-c' and \`-o' together. If you
1369 repeat this compilation, it may succeed, by chance, but you had better
1370 avoid parallel builds (make -j) in this platform, or get a better
1371 compiler."
1372
1373 $opt_dry_run || $RM $removelist
1374 exit $EXIT_FAILURE
1375 fi
1376
1377 # Just move the object if needed, then go on to compile the next one
1378 if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
1379 func_show_eval '$MV "$output_obj" "$lobj"' \
1380 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
1381 fi
1382
1383 # Allow error messages only from the first compilation.
1384 if test "$suppress_opt" = yes; then
1385 suppress_output=' >/dev/null 2>&1'
1386 fi
1387 fi
1388
1389 # Only build a position-dependent object if we build old libraries.
1390 if test "$build_old_libs" = yes; then
1391 if test "$pic_mode" != yes; then
1392 # Don't build PIC code
1393 command="$base_compile $qsrcfile$pie_flag"
1394 else
1395 command="$base_compile $qsrcfile $pic_flag"
1396 fi
1397 if test "$compiler_c_o" = yes; then
1398 command="$command -o $obj"
1399 fi
1400
1401 # Suppress compiler output if we already did a PIC compilation.
1402 command="$command$suppress_output"
1403 func_show_eval_locale "$command" \
1404 '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
1405
1406 if test "$need_locks" = warn &&
1407 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
1408 $ECHO "\
1409 *** ERROR, $lockfile contains:
1410 `cat $lockfile 2>/dev/null`
1411
1412 but it should contain:
1413 $srcfile
1414
1415 This indicates that another process is trying to use the same
1416 temporary object file, and libtool could not work around it because
1417 your compiler does not support \`-c' and \`-o' together. If you
1418 repeat this compilation, it may succeed, by chance, but you had better
1419 avoid parallel builds (make -j) in this platform, or get a better
1420 compiler."
1421
1422 $opt_dry_run || $RM $removelist
1423 exit $EXIT_FAILURE
1424 fi
1425
1426 # Just move the object if needed
1427 if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
1428 func_show_eval '$MV "$output_obj" "$obj"' \
1429 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
1430 fi
1431 fi
1432
1433 $opt_dry_run || {
1434 func_write_libtool_object "$libobj" "$objdir/$objname" "$objname"
1435
1436 # Unlock the critical section if it was locked
1437 if test "$need_locks" != no; then
1438 removelist=$lockfile
1439 $RM "$lockfile"
1440 fi
1441 }
1442
1443 exit $EXIT_SUCCESS
1444 }
1445
1446 $opt_help || {
1447 test "$mode" = compile && func_mode_compile ${1+"$@"}
1448 }
1449
1450 func_mode_help ()
1451 {
1452 # We need to display help for each of the modes.
1453 case $mode in
1454 "")
1455 # Generic help is extracted from the usage comments
1456 # at the start of this file.
1457 func_help
1458 ;;
1459
1460 clean)
1461 $ECHO \
1462 "Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
1463
1464 Remove files from the build directory.
1465
1466 RM is the name of the program to use to delete files associated with each FILE
1467 (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
1468 to RM.
1469
1470 If FILE is a libtool library, object or program, all the files associated
1471 with it are deleted. Otherwise, only FILE itself is deleted using RM."
1472 ;;
1473
1474 compile)
1475 $ECHO \
1476 "Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
1477
1478 Compile a source file into a libtool library object.
1479
1480 This mode accepts the following additional options:
1481
1482 -o OUTPUT-FILE set the output file name to OUTPUT-FILE
1483 -no-suppress do not suppress compiler output for multiple passes
1484 -prefer-pic try to building PIC objects only
1485 -prefer-non-pic try to building non-PIC objects only
1486 -shared do not build a \`.o' file suitable for static linking
1487 -static only build a \`.o' file suitable for static linking
1488
1489 COMPILE-COMMAND is a command to be used in creating a \`standard' object file
1490 from the given SOURCEFILE.
1491
1492 The output file name is determined by removing the directory component from
1493 SOURCEFILE, then substituting the C source code suffix \`.c' with the
1494 library object suffix, \`.lo'."
1495 ;;
1496
1497 execute)
1498 $ECHO \
1499 "Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]...
1500
1501 Automatically set library path, then run a program.
1502
1503 This mode accepts the following additional options:
1504
1505 -dlopen FILE add the directory containing FILE to the library path
1506
1507 This mode sets the library path environment variable according to \`-dlopen'
1508 flags.
1509
1510 If any of the ARGS are libtool executable wrappers, then they are translated
1511 into their corresponding uninstalled binary, and any of their required library
1512 directories are added to the library path.
1513
1514 Then, COMMAND is executed, with ARGS as arguments."
1515 ;;
1516
1517 finish)
1518 $ECHO \
1519 "Usage: $progname [OPTION]... --mode=finish [LIBDIR]...
1520
1521 Complete the installation of libtool libraries.
1522
1523 Each LIBDIR is a directory that contains libtool libraries.
1524
1525 The commands that this mode executes may require superuser privileges. Use
1526 the \`--dry-run' option if you just want to see what would be executed."
1527 ;;
1528
1529 install)
1530 $ECHO \
1531 "Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND...
1532
1533 Install executables or libraries.
1534
1535 INSTALL-COMMAND is the installation command. The first component should be
1536 either the \`install' or \`cp' program.
1537
1538 The following components of INSTALL-COMMAND are treated specially:
1539
1540 -inst-prefix PREFIX-DIR Use PREFIX-DIR as a staging area for installation
1541
1542 The rest of the components are interpreted as arguments to that command (only
1543 BSD-compatible install options are recognized)."
1544 ;;
1545
1546 link)
1547 $ECHO \
1548 "Usage: $progname [OPTION]... --mode=link LINK-COMMAND...
1549
1550 Link object files or libraries together to form another library, or to
1551 create an executable program.
1552
1553 LINK-COMMAND is a command using the C compiler that you would use to create
1554 a program from several object files.
1555
1556 The following components of LINK-COMMAND are treated specially:
1557
1558 -all-static do not do any dynamic linking at all
1559 -avoid-version do not add a version suffix if possible
1560 -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
1561 -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
1562 -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
1563 -export-symbols SYMFILE
1564 try to export only the symbols listed in SYMFILE
1565 -export-symbols-regex REGEX
1566 try to export only the symbols matching REGEX
1567 -LLIBDIR search LIBDIR for required installed libraries
1568 -lNAME OUTPUT-FILE requires the installed library libNAME
1569 -module build a library that can dlopened
1570 -no-fast-install disable the fast-install mode
1571 -no-install link a not-installable executable
1572 -no-undefined declare that a library does not refer to external symbols
1573 -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
1574 -objectlist FILE Use a list of object files found in FILE to specify objects
1575 -precious-files-regex REGEX
1576 don't remove output files matching REGEX
1577 -release RELEASE specify package release information
1578 -rpath LIBDIR the created library will eventually be installed in LIBDIR
1579 -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
1580 -shared only do dynamic linking of libtool libraries
1581 -shrext SUFFIX override the standard shared library file extension
1582 -static do not do any dynamic linking of uninstalled libtool libraries
1583 -static-libtool-libs
1584 do not do any dynamic linking of libtool libraries
1585 -version-info CURRENT[:REVISION[:AGE]]
1586 specify library version info [each variable defaults to 0]
1587 -weak LIBNAME declare that the target provides the LIBNAME interface
1588
1589 All other options (arguments beginning with \`-') are ignored.
1590
1591 Every other argument is treated as a filename. Files ending in \`.la' are
1592 treated as uninstalled libtool libraries, other files are standard or library
1593 object files.
1594
1595 If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
1596 only library objects (\`.lo' files) may be specified, and \`-rpath' is
1597 required, except when creating a convenience library.
1598
1599 If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
1600 using \`ar' and \`ranlib', or on Windows using \`lib'.
1601
1602 If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
1603 is created, otherwise an executable program is created."
1604 ;;
1605
1606 uninstall)
1607 $ECHO \
1608 "Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
1609
1610 Remove libraries from an installation directory.
1611
1612 RM is the name of the program to use to delete files associated with each FILE
1613 (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
1614 to RM.
1615
1616 If FILE is a libtool library, all the files associated with it are deleted.
1617 Otherwise, only FILE itself is deleted using RM."
1618 ;;
1619
1620 *)
1621 func_fatal_help "invalid operation mode \`$mode'"
1622 ;;
1623 esac
1624
1625 $ECHO
1626 $ECHO "Try \`$progname --help' for more information about other modes."
1627
1628 exit $?
1629 }
1630
1631 # Now that we've collected a possible --mode arg, show help if necessary
1632 $opt_help && func_mode_help
1633
1634
1635 # func_mode_execute arg...
1636 func_mode_execute ()
1637 {
1638 $opt_debug
1639 # The first argument is the command name.
1640 cmd="$nonopt"
1641 test -z "$cmd" && \
1642 func_fatal_help "you must specify a COMMAND"
1643
1644 # Handle -dlopen flags immediately.
1645 for file in $execute_dlfiles; do
1646 test -f "$file" \
1647 || func_fatal_help "\`$file' is not a file"
1648
1649 dir=
1650 case $file in
1651 *.la)
1652 # Check to see that this really is a libtool archive.
1653 func_lalib_unsafe_p "$file" \
1654 || func_fatal_help "\`$lib' is not a valid libtool archive"
1655
1656 # Read the libtool library.
1657 dlname=
1658 library_names=
1659 func_source "$file"
1660
1661 # Skip this library if it cannot be dlopened.
1662 if test -z "$dlname"; then
1663 # Warn if it was a shared library.
1664 test -n "$library_names" && \
1665 func_warning "\`$file' was not linked with \`-export-dynamic'"
1666 continue
1667 fi
1668
1669 func_dirname "$file" "" "."
1670 dir="$func_dirname_result"
1671
1672 if test -f "$dir/$objdir/$dlname"; then
1673 dir="$dir/$objdir"
1674 else
1675 if test ! -f "$dir/$dlname"; then
1676 func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'"
1677 fi
1678 fi
1679 ;;
1680
1681 *.lo)
1682 # Just add the directory containing the .lo file.
1683 func_dirname "$file" "" "."
1684 dir="$func_dirname_result"
1685 ;;
1686
1687 *)
1688 func_warning "\`-dlopen' is ignored for non-libtool libraries and objects"
1689 continue
1690 ;;
1691 esac
1692
1693 # Get the absolute pathname.
1694 absdir=`cd "$dir" && pwd`
1695 test -n "$absdir" && dir="$absdir"
1696
1697 # Now add the directory to shlibpath_var.
1698 if eval "test -z \"\$$shlibpath_var\""; then
1699 eval "$shlibpath_var=\"\$dir\""
1700 else
1701 eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
1702 fi
1703 done
1704
1705 # This variable tells wrapper scripts just to set shlibpath_var
1706 # rather than running their programs.
1707 libtool_execute_magic="$magic"
1708
1709 # Check if any of the arguments is a wrapper script.
1710 args=
1711 for file
1712 do
1713 case $file in
1714 -*) ;;
1715 *)
1716 # Do a test to see if this is really a libtool program.
1717 if func_ltwrapper_script_p "$file"; then
1718 func_source "$file"
1719 # Transform arg to wrapped name.
1720 file="$progdir/$program"
1721 elif func_ltwrapper_executable_p "$file"; then
1722 func_ltwrapper_scriptname "$file"
1723 func_source "$func_ltwrapper_scriptname_result"
1724 # Transform arg to wrapped name.
1725 file="$progdir/$program"
1726 fi
1727 ;;
1728 esac
1729 # Quote arguments (to preserve shell metacharacters).
1730 func_quote_for_eval "$file"
1731 args="$args $func_quote_for_eval_result"
1732 done
1733
1734 if test "X$opt_dry_run" = Xfalse; then
1735 if test -n "$shlibpath_var"; then
1736 # Export the shlibpath_var.
1737 eval "export $shlibpath_var"
1738 fi
1739
1740 # Restore saved environment variables
1741 for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
1742 do
1743 eval "if test \"\${save_$lt_var+set}\" = set; then
1744 $lt_var=\$save_$lt_var; export $lt_var
1745 else
1746 $lt_unset $lt_var
1747 fi"
1748 done
1749
1750 # Now prepare to actually exec the command.
1751 exec_cmd="\$cmd$args"
1752 else
1753 # Display what would be done.
1754 if test -n "$shlibpath_var"; then
1755 eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
1756 $ECHO "export $shlibpath_var"
1757 fi
1758 $ECHO "$cmd$args"
1759 exit $EXIT_SUCCESS
1760 fi
1761 }
1762
1763 test "$mode" = execute && func_mode_execute ${1+"$@"}
1764
1765
1766 # func_mode_finish arg...
1767 func_mode_finish ()
1768 {
1769 $opt_debug
1770 libdirs="$nonopt"
1771 admincmds=
1772
1773 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
1774 for dir
1775 do
1776 libdirs="$libdirs $dir"
1777 done
1778
1779 for libdir in $libdirs; do
1780 if test -n "$finish_cmds"; then
1781 # Do each command in the finish commands.
1782 func_execute_cmds "$finish_cmds" 'admincmds="$admincmds
1783 '"$cmd"'"'
1784 fi
1785 if test -n "$finish_eval"; then
1786 # Do the single finish_eval.
1787 eval cmds=\"$finish_eval\"
1788 $opt_dry_run || eval "$cmds" || admincmds="$admincmds
1789 $cmds"
1790 fi
1791 done
1792 fi
1793
1794 # Exit here if they wanted silent mode.
1795 $opt_silent && exit $EXIT_SUCCESS
1796
1797 $ECHO "X----------------------------------------------------------------------" | $Xsed
1798 $ECHO "Libraries have been installed in:"
1799 for libdir in $libdirs; do
1800 $ECHO " $libdir"
1801 done
1802 $ECHO
1803 $ECHO "If you ever happen to want to link against installed libraries"
1804 $ECHO "in a given directory, LIBDIR, you must either use libtool, and"
1805 $ECHO "specify the full pathname of the library, or use the \`-LLIBDIR'"
1806 $ECHO "flag during linking and do at least one of the following:"
1807 if test -n "$shlibpath_var"; then
1808 $ECHO " - add LIBDIR to the \`$shlibpath_var' environment variable"
1809 $ECHO " during execution"
1810 fi
1811 if test -n "$runpath_var"; then
1812 $ECHO " - add LIBDIR to the \`$runpath_var' environment variable"
1813 $ECHO " during linking"
1814 fi
1815 if test -n "$hardcode_libdir_flag_spec"; then
1816 libdir=LIBDIR
1817 eval flag=\"$hardcode_libdir_flag_spec\"
1818
1819 $ECHO " - use the \`$flag' linker flag"
1820 fi
1821 if test -n "$admincmds"; then
1822 $ECHO " - have your system administrator run these commands:$admincmds"
1823 fi
1824 if test -f /etc/ld.so.conf; then
1825 $ECHO " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
1826 fi
1827 $ECHO
1828
1829 $ECHO "See any operating system documentation about shared libraries for"
1830 case $host in
1831 solaris2.[6789]|solaris2.1[0-9])
1832 $ECHO "more information, such as the ld(1), crle(1) and ld.so(8) manual"
1833 $ECHO "pages."
1834 ;;
1835 *)
1836 $ECHO "more information, such as the ld(1) and ld.so(8) manual pages."
1837 ;;
1838 esac
1839 $ECHO "X----------------------------------------------------------------------" | $Xsed
1840 exit $EXIT_SUCCESS
1841 }
1842
1843 test "$mode" = finish && func_mode_finish ${1+"$@"}
1844
1845
1846 # func_mode_install arg...
1847 func_mode_install ()
1848 {
1849 $opt_debug
1850 # There may be an optional sh(1) argument at the beginning of
1851 # install_prog (especially on Windows NT).
1852 if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
1853 # Allow the use of GNU shtool's install command.
1854 $ECHO "X$nonopt" | $GREP shtool >/dev/null; then
1855 # Aesthetically quote it.
1856 func_quote_for_eval "$nonopt"
1857 install_prog="$func_quote_for_eval_result "
1858 arg=$1
1859 shift
1860 else
1861 install_prog=
1862 arg=$nonopt
1863 fi
1864
1865 # The real first argument should be the name of the installation program.
1866 # Aesthetically quote it.
1867 func_quote_for_eval "$arg"
1868 install_prog="$install_prog$func_quote_for_eval_result"
1869
1870 # We need to accept at least all the BSD install flags.
1871 dest=
1872 files=
1873 opts=
1874 prev=
1875 install_type=
1876 isdir=no
1877 stripme=
1878 for arg
1879 do
1880 if test -n "$dest"; then
1881 files="$files $dest"
1882 dest=$arg
1883 continue
1884 fi
1885
1886 case $arg in
1887 -d) isdir=yes ;;
1888 -f)
1889 case " $install_prog " in
1890 *[\\\ /]cp\ *) ;;
1891 *) prev=$arg ;;
1892 esac
1893 ;;
1894 -g | -m | -o)
1895 prev=$arg
1896 ;;
1897 -s)
1898 stripme=" -s"
1899 continue
1900 ;;
1901 -*)
1902 ;;
1903 *)
1904 # If the previous option needed an argument, then skip it.
1905 if test -n "$prev"; then
1906 prev=
1907 else
1908 dest=$arg
1909 continue
1910 fi
1911 ;;
1912 esac
1913
1914 # Aesthetically quote the argument.
1915 func_quote_for_eval "$arg"
1916 install_prog="$install_prog $func_quote_for_eval_result"
1917 done
1918
1919 test -z "$install_prog" && \
1920 func_fatal_help "you must specify an install program"
1921
1922 test -n "$prev" && \
1923 func_fatal_help "the \`$prev' option requires an argument"
1924
1925 if test -z "$files"; then
1926 if test -z "$dest"; then
1927 func_fatal_help "no file or destination specified"
1928 else
1929 func_fatal_help "you must specify a destination"
1930 fi
1931 fi
1932
1933 # Strip any trailing slash from the destination.
1934 func_stripname '' '/' "$dest"
1935 dest=$func_stripname_result
1936
1937 # Check to see that the destination is a directory.
1938 test -d "$dest" && isdir=yes
1939 if test "$isdir" = yes; then
1940 destdir="$dest"
1941 destname=
1942 else
1943 func_dirname_and_basename "$dest" "" "."
1944 destdir="$func_dirname_result"
1945 destname="$func_basename_result"
1946
1947 # Not a directory, so check to see that there is only one file specified.
1948 set dummy $files; shift
1949 test "$#" -gt 1 && \
1950 func_fatal_help "\`$dest' is not a directory"
1951 fi
1952 case $destdir in
1953 [\\/]* | [A-Za-z]:[\\/]*) ;;
1954 *)
1955 for file in $files; do
1956 case $file in
1957 *.lo) ;;
1958 *)
1959 func_fatal_help "\`$destdir' must be an absolute directory name"
1960 ;;
1961 esac
1962 done
1963 ;;
1964 esac
1965
1966 # This variable tells wrapper scripts just to set variables rather
1967 # than running their programs.
1968 libtool_install_magic="$magic"
1969
1970 staticlibs=
1971 future_libdirs=
1972 current_libdirs=
1973 for file in $files; do
1974
1975 # Do each installation.
1976 case $file in
1977 *.$libext)
1978 # Do the static libraries later.
1979 staticlibs="$staticlibs $file"
1980 ;;
1981
1982 *.la)
1983 # Check to see that this really is a libtool archive.
1984 func_lalib_unsafe_p "$file" \
1985 || func_fatal_help "\`$file' is not a valid libtool archive"
1986
1987 library_names=
1988 old_library=
1989 relink_command=
1990 func_source "$file"
1991
1992 # Add the libdir to current_libdirs if it is the destination.
1993 if test "X$destdir" = "X$libdir"; then
1994 case "$current_libdirs " in
1995 *" $libdir "*) ;;
1996 *) current_libdirs="$current_libdirs $libdir" ;;
1997 esac
1998 else
1999 # Note the libdir as a future libdir.
2000 case "$future_libdirs " in
2001 *" $libdir "*) ;;
2002 *) future_libdirs="$future_libdirs $libdir" ;;
2003 esac
2004 fi
2005
2006 func_dirname "$file" "/" ""
2007 dir="$func_dirname_result"
2008 dir="$dir$objdir"
2009
2010 if test -n "$relink_command"; then
2011 # Determine the prefix the user has applied to our future dir.
2012 inst_prefix_dir=`$ECHO "X$destdir" | $Xsed -e "s%$libdir\$%%"`
2013
2014 # Don't allow the user to place us outside of our expected
2015 # location b/c this prevents finding dependent libraries that
2016 # are installed to the same prefix.
2017 # At present, this check doesn't affect windows .dll's that
2018 # are installed into $libdir/../bin (currently, that works fine)
2019 # but it's something to keep an eye on.
2020 test "$inst_prefix_dir" = "$destdir" && \
2021 func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"
2022
2023 if test -n "$inst_prefix_dir"; then
2024 # Stick the inst_prefix_dir data into the link command.
2025 relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
2026 else
2027 relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%%"`
2028 fi
2029
2030 func_warning "relinking \`$file'"
2031 func_show_eval "$relink_command" \
2032 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"'
2033 fi
2034
2035 # See the names of the shared library.
2036 set dummy $library_names; shift
2037 if test -n "$1"; then
2038 realname="$1"
2039 shift
2040
2041 srcname="$realname"
2042 test -n "$relink_command" && srcname="$realname"T
2043
2044 # Install the shared library and build the symlinks.
2045 func_show_eval "$install_prog $dir/$srcname $destdir/$realname" \
2046 'exit $?'
2047 tstripme="$stripme"
2048 case $host_os in
2049 cygwin* | mingw* | pw32* | cegcc*)
2050 case $realname in
2051 *.dll.a)
2052 tstripme=""
2053 ;;
2054 esac
2055 ;;
2056 esac
2057 if test -n "$tstripme" && test -n "$striplib"; then
2058 func_show_eval "$striplib $destdir/$realname" 'exit $?'
2059 fi
2060
2061 if test "$#" -gt 0; then
2062 # Delete the old symlinks, and create new ones.
2063 # Try `ln -sf' first, because the `ln' binary might depend on
2064 # the symlink we replace! Solaris /bin/ln does not understand -f,
2065 # so we also need to try rm && ln -s.
2066 for linkname
2067 do
2068 test "$linkname" != "$realname" \
2069 && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })"
2070 done
2071 fi
2072
2073 # Do each command in the postinstall commands.
2074 lib="$destdir/$realname"
2075 func_execute_cmds "$postinstall_cmds" 'exit $?'
2076 fi
2077
2078 # Install the pseudo-library for information purposes.
2079 func_basename "$file"
2080 name="$func_basename_result"
2081 instname="$dir/$name"i
2082 func_show_eval "$install_prog $instname $destdir/$name" 'exit $?'
2083
2084 # Maybe install the static library, too.
2085 test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
2086 ;;
2087
2088 *.lo)
2089 # Install (i.e. copy) a libtool object.
2090
2091 # Figure out destination file name, if it wasn't already specified.
2092 if test -n "$destname"; then
2093 destfile="$destdir/$destname"
2094 else
2095 func_basename "$file"
2096 destfile="$func_basename_result"
2097 destfile="$destdir/$destfile"
2098 fi
2099
2100 # Deduce the name of the destination old-style object file.
2101 case $destfile in
2102 *.lo)
2103 func_lo2o "$destfile"
2104 staticdest=$func_lo2o_result
2105 ;;
2106 *.$objext)
2107 staticdest="$destfile"
2108 destfile=
2109 ;;
2110 *)
2111 func_fatal_help "cannot copy a libtool object to \`$destfile'"
2112 ;;
2113 esac
2114
2115 # Install the libtool object if requested.
2116 test -n "$destfile" && \
2117 func_show_eval "$install_prog $file $destfile" 'exit $?'
2118
2119 # Install the old object if enabled.
2120 if test "$build_old_libs" = yes; then
2121 # Deduce the name of the old-style object file.
2122 func_lo2o "$file"
2123 staticobj=$func_lo2o_result
2124 func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?'
2125 fi
2126 exit $EXIT_SUCCESS
2127 ;;
2128
2129 *)
2130 # Figure out destination file name, if it wasn't already specified.
2131 if test -n "$destname"; then
2132 destfile="$destdir/$destname"
2133 else
2134 func_basename "$file"
2135 destfile="$func_basename_result"
2136 destfile="$destdir/$destfile"
2137 fi
2138
2139 # If the file is missing, and there is a .exe on the end, strip it
2140 # because it is most likely a libtool script we actually want to
2141 # install
2142 stripped_ext=""
2143 case $file in
2144 *.exe)
2145 if test ! -f "$file"; then
2146 func_stripname '' '.exe' "$file"
2147 file=$func_stripname_result
2148 stripped_ext=".exe"
2149 fi
2150 ;;
2151 esac
2152
2153 # Do a test to see if this is really a libtool program.
2154 case $host in
2155 *cygwin* | *mingw*)
2156 if func_ltwrapper_executable_p "$file"; then
2157 func_ltwrapper_scriptname "$file"
2158 wrapper=$func_ltwrapper_scriptname_result
2159 else
2160 func_stripname '' '.exe' "$file"
2161 wrapper=$func_stripname_result
2162 fi
2163 ;;
2164 *)
2165 wrapper=$file
2166 ;;
2167 esac
2168 if func_ltwrapper_script_p "$wrapper"; then
2169 notinst_deplibs=
2170 relink_command=
2171
2172 func_source "$wrapper"
2173
2174 # Check the variables that should have been set.
2175 test -z "$generated_by_libtool_version" && \
2176 func_fatal_error "invalid libtool wrapper script \`$wrapper'"
2177
2178 finalize=yes
2179 for lib in $notinst_deplibs; do
2180 # Check to see that each library is installed.
2181 libdir=
2182 if test -f "$lib"; then
2183 func_source "$lib"
2184 fi
2185 libfile="$libdir/"`$ECHO "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
2186 if test -n "$libdir" && test ! -f "$libfile"; then
2187 func_warning "\`$lib' has not been installed in \`$libdir'"
2188 finalize=no
2189 fi
2190 done
2191
2192 relink_command=
2193 func_source "$wrapper"
2194
2195 outputname=
2196 if test "$fast_install" = no && test -n "$relink_command"; then
2197 $opt_dry_run || {
2198 if test "$finalize" = yes; then
2199 tmpdir=`func_mktempdir`
2200 func_basename "$file$stripped_ext"
2201 file="$func_basename_result"
2202 outputname="$tmpdir/$file"
2203 # Replace the output file specification.
2204 relink_command=`$ECHO "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
2205
2206 $opt_silent || {
2207 func_quote_for_expand "$relink_command"
2208 eval "func_echo $func_quote_for_expand_result"
2209 }
2210 if eval "$relink_command"; then :
2211 else
2212 func_error "error: relink \`$file' with the above command before installing it"
2213 $opt_dry_run || ${RM}r "$tmpdir"
2214 continue
2215 fi
2216 file="$outputname"
2217 else
2218 func_warning "cannot relink \`$file'"
2219 fi
2220 }
2221 else
2222 # Install the binary that we compiled earlier.
2223 file=`$ECHO "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
2224 fi
2225 fi
2226
2227 # remove .exe since cygwin /usr/bin/install will append another
2228 # one anyway
2229 case $install_prog,$host in
2230 */usr/bin/install*,*cygwin*)
2231 case $file:$destfile in
2232 *.exe:*.exe)
2233 # this is ok
2234 ;;
2235 *.exe:*)
2236 destfile=$destfile.exe
2237 ;;
2238 *:*.exe)
2239 func_stripname '' '.exe' "$destfile"
2240 destfile=$func_stripname_result
2241 ;;
2242 esac
2243 ;;
2244 esac
2245 func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?'
2246 $opt_dry_run || if test -n "$outputname"; then
2247 ${RM}r "$tmpdir"
2248 fi
2249 ;;
2250 esac
2251 done
2252
2253 for file in $staticlibs; do
2254 func_basename "$file"
2255 name="$func_basename_result"
2256
2257 # Set up the ranlib parameters.
2258 oldlib="$destdir/$name"
2259
2260 func_show_eval "$install_prog \$file \$oldlib" 'exit $?'
2261
2262 if test -n "$stripme" && test -n "$old_striplib"; then
2263 func_show_eval "$old_striplib $oldlib" 'exit $?'
2264 fi
2265
2266 # Do each command in the postinstall commands.
2267 func_execute_cmds "$old_postinstall_cmds" 'exit $?'
2268 done
2269
2270 test -n "$future_libdirs" && \
2271 func_warning "remember to run \`$progname --finish$future_libdirs'"
2272
2273 if test -n "$current_libdirs"; then
2274 # Maybe just do a dry run.
2275 $opt_dry_run && current_libdirs=" -n$current_libdirs"
2276 exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
2277 else
2278 exit $EXIT_SUCCESS
2279 fi
2280 }
2281
2282 test "$mode" = install && func_mode_install ${1+"$@"}
2283
2284
2285 # func_generate_dlsyms outputname originator pic_p
2286 # Extract symbols from dlprefiles and create ${outputname}S.o with
2287 # a dlpreopen symbol table.
2288 func_generate_dlsyms ()
2289 {
2290 $opt_debug
2291 my_outputname="$1"
2292 my_originator="$2"
2293 my_pic_p="${3-no}"
2294 my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'`
2295 my_dlsyms=
2296
2297 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
2298 if test -n "$NM" && test -n "$global_symbol_pipe"; then
2299 my_dlsyms="${my_outputname}S.c"
2300 else
2301 func_error "not configured to extract global symbols from dlpreopened files"
2302 fi
2303 fi
2304
2305 if test -n "$my_dlsyms"; then
2306 case $my_dlsyms in
2307 "") ;;
2308 *.c)
2309 # Discover the nlist of each of the dlfiles.
2310 nlist="$output_objdir/${my_outputname}.nm"
2311
2312 func_show_eval "$RM $nlist ${nlist}S ${nlist}T"
2313
2314 # Parse the name list into a source file.
2315 func_verbose "creating $output_objdir/$my_dlsyms"
2316
2317 $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\
2318 /* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */
2319 /* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */
2320
2321 #ifdef __cplusplus
2322 extern \"C\" {
2323 #endif
2324
2325 /* External symbol declarations for the compiler. */\
2326 "
2327
2328 if test "$dlself" = yes; then
2329 func_verbose "generating symbol list for \`$output'"
2330
2331 $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist"
2332
2333 # Add our own program objects to the symbol list.
2334 progfiles=`$ECHO "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
2335 for progfile in $progfiles; do
2336 func_verbose "extracting global C symbols from \`$progfile'"
2337 $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'"
2338 done
2339
2340 if test -n "$exclude_expsyms"; then
2341 $opt_dry_run || {
2342 eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
2343 eval '$MV "$nlist"T "$nlist"'
2344 }
2345 fi
2346
2347 if test -n "$export_symbols_regex"; then
2348 $opt_dry_run || {
2349 eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
2350 eval '$MV "$nlist"T "$nlist"'
2351 }
2352 fi
2353
2354 # Prepare the list of exported symbols
2355 if test -z "$export_symbols"; then
2356 export_symbols="$output_objdir/$outputname.exp"
2357 $opt_dry_run || {
2358 $RM $export_symbols
2359 eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
2360 case $host in
2361 *cygwin* | *mingw* | *cegcc* )
2362 eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
2363 eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
2364 ;;
2365 esac
2366 }
2367 else
2368 $opt_dry_run || {
2369 eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
2370 eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
2371 eval '$MV "$nlist"T "$nlist"'
2372 case $host in
2373 *cygwin | *mingw* | *cegcc* )
2374 eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
2375 eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
2376 ;;
2377 esac
2378 }
2379 fi
2380 fi
2381
2382 for dlprefile in $dlprefiles; do
2383 func_verbose "extracting global C symbols from \`$dlprefile'"
2384 func_basename "$dlprefile"
2385 name="$func_basename_result"
2386 $opt_dry_run || {
2387 eval '$ECHO ": $name " >> "$nlist"'
2388 eval "$NM $dlprefile 2>/dev/null | $global_symbol_pipe >> '$nlist'"
2389 }
2390 done
2391
2392 $opt_dry_run || {
2393 # Make sure we have at least an empty file.
2394 test -f "$nlist" || : > "$nlist"
2395
2396 if test -n "$exclude_expsyms"; then
2397 $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
2398 $MV "$nlist"T "$nlist"
2399 fi
2400
2401 # Try sorting and uniquifying the output.
2402 if $GREP -v "^: " < "$nlist" |
2403 if sort -k 3 </dev/null >/dev/null 2>&1; then
2404 sort -k 3
2405 else
2406 sort +2
2407 fi |
2408 uniq > "$nlist"S; then
2409 :
2410 else
2411 $GREP -v "^: " < "$nlist" > "$nlist"S
2412 fi
2413
2414 if test -f "$nlist"S; then
2415 eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"'
2416 else
2417 $ECHO '/* NONE */' >> "$output_objdir/$my_dlsyms"
2418 fi
2419
2420 $ECHO >> "$output_objdir/$my_dlsyms" "\
2421
2422 /* The mapping between symbol names and symbols. */
2423 typedef struct {
2424 const char *name;
2425 void *address;
2426 } lt_dlsymlist;
2427 "
2428 case $host in
2429 *cygwin* | *mingw* | *cegcc* )
2430 $ECHO >> "$output_objdir/$my_dlsyms" "\
2431 /* DATA imports from DLLs on WIN32 con't be const, because
2432 runtime relocations are performed -- see ld's documentation
2433 on pseudo-relocs. */"
2434 lt_dlsym_const= ;;
2435 *osf5*)
2436 echo >> "$output_objdir/$my_dlsyms" "\
2437 /* This system does not cope well with relocations in const data */"
2438 lt_dlsym_const= ;;
2439 *)
2440 lt_dlsym_const=const ;;
2441 esac
2442
2443 $ECHO >> "$output_objdir/$my_dlsyms" "\
2444 extern $lt_dlsym_const lt_dlsymlist
2445 lt_${my_prefix}_LTX_preloaded_symbols[];
2446 $lt_dlsym_const lt_dlsymlist
2447 lt_${my_prefix}_LTX_preloaded_symbols[] =
2448 {\
2449 { \"$my_originator\", (void *) 0 },"
2450
2451 case $need_lib_prefix in
2452 no)
2453 eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms"
2454 ;;
2455 *)
2456 eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms"
2457 ;;
2458 esac
2459 $ECHO >> "$output_objdir/$my_dlsyms" "\
2460 {0, (void *) 0}
2461 };
2462
2463 /* This works around a problem in FreeBSD linker */
2464 #ifdef FREEBSD_WORKAROUND
2465 static const void *lt_preloaded_setup() {
2466 return lt_${my_prefix}_LTX_preloaded_symbols;
2467 }
2468 #endif
2469
2470 #ifdef __cplusplus
2471 }
2472 #endif\
2473 "
2474 } # !$opt_dry_run
2475
2476 pic_flag_for_symtable=
2477 case "$compile_command " in
2478 *" -static "*) ;;
2479 *)
2480 case $host in
2481 # compiling the symbol table file with pic_flag works around
2482 # a FreeBSD bug that causes programs to crash when -lm is
2483 # linked before any other PIC object. But we must not use
2484 # pic_flag when linking with -static. The problem exists in
2485 # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
2486 *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
2487 pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
2488 *-*-hpux*)
2489 pic_flag_for_symtable=" $pic_flag" ;;
2490 *)
2491 if test "X$my_pic_p" != Xno; then
2492 pic_flag_for_symtable=" $pic_flag"
2493 fi
2494 ;;
2495 esac
2496 ;;
2497 esac
2498 symtab_cflags=
2499 for arg in $LTCFLAGS; do
2500 case $arg in
2501 -pie | -fpie | -fPIE) ;;
2502 *) symtab_cflags="$symtab_cflags $arg" ;;
2503 esac
2504 done
2505
2506 # Now compile the dynamic symbol file.
2507 func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?'
2508
2509 # Clean up the generated files.
2510 func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"'
2511
2512 # Transform the symbol file into the correct name.
2513 symfileobj="$output_objdir/${my_outputname}S.$objext"
2514 case $host in
2515 *cygwin* | *mingw* | *cegcc* )
2516 if test -f "$output_objdir/$my_outputname.def"; then
2517 compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
2518 finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
2519 else
2520 compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
2521 finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
2522 fi
2523 ;;
2524 *)
2525 compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
2526 finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
2527 ;;
2528 esac
2529 ;;
2530 *)
2531 func_fatal_error "unknown suffix for \`$my_dlsyms'"
2532 ;;
2533 esac
2534 else
2535 # We keep going just in case the user didn't refer to
2536 # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
2537 # really was required.
2538
2539 # Nullify the symbol file.
2540 compile_command=`$ECHO "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
2541 finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
2542 fi
2543 }
2544
2545 # func_win32_libid arg
2546 # return the library type of file 'arg'
2547 #
2548 # Need a lot of goo to handle *both* DLLs and import libs
2549 # Has to be a shell function in order to 'eat' the argument
2550 # that is supplied when $file_magic_command is called.
2551 func_win32_libid ()
2552 {
2553 $opt_debug
2554 win32_libid_type="unknown"
2555 win32_fileres=`file -L $1 2>/dev/null`
2556 case $win32_fileres in
2557 *ar\ archive\ import\ library*) # definitely import
2558 win32_libid_type="x86 archive import"
2559 ;;
2560 *ar\ archive*) # could be an import, or static
2561 if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
2562 $EGREP 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
2563 win32_nmres=`eval $NM -f posix -A $1 |
2564 $SED -n -e '
2565 1,100{
2566 / I /{
2567 s,.*,import,
2568 p
2569 q
2570 }
2571 }'`
2572 case $win32_nmres in
2573 import*) win32_libid_type="x86 archive import";;
2574 *) win32_libid_type="x86 archive static";;
2575 esac
2576 fi
2577 ;;
2578 *DLL*)
2579 win32_libid_type="x86 DLL"
2580 ;;
2581 *executable*) # but shell scripts are "executable" too...
2582 case $win32_fileres in
2583 *MS\ Windows\ PE\ Intel*)
2584 win32_libid_type="x86 DLL"
2585 ;;
2586 esac
2587 ;;
2588 esac
2589 $ECHO "$win32_libid_type"
2590 }
2591
2592
2593
2594 # func_extract_an_archive dir oldlib
2595 func_extract_an_archive ()
2596 {
2597 $opt_debug
2598 f_ex_an_ar_dir="$1"; shift
2599 f_ex_an_ar_oldlib="$1"
2600 func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" 'exit $?'
2601 if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
2602 :
2603 else
2604 func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib"
2605 fi
2606 }
2607
2608
2609 # func_extract_archives gentop oldlib ...
2610 func_extract_archives ()
2611 {
2612 $opt_debug
2613 my_gentop="$1"; shift
2614 my_oldlibs=${1+"$@"}
2615 my_oldobjs=""
2616 my_xlib=""
2617 my_xabs=""
2618 my_xdir=""
2619
2620 for my_xlib in $my_oldlibs; do
2621 # Extract the objects.
2622 case $my_xlib in
2623 [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
2624 *) my_xabs=`pwd`"/$my_xlib" ;;
2625 esac
2626 func_basename "$my_xlib"
2627 my_xlib="$func_basename_result"
2628 my_xlib_u=$my_xlib
2629 while :; do
2630 case " $extracted_archives " in
2631 *" $my_xlib_u "*)
2632 func_arith $extracted_serial + 1
2633 extracted_serial=$func_arith_result
2634 my_xlib_u=lt$extracted_serial-$my_xlib ;;
2635 *) break ;;
2636 esac
2637 done
2638 extracted_archives="$extracted_archives $my_xlib_u"
2639 my_xdir="$my_gentop/$my_xlib_u"
2640
2641 func_mkdir_p "$my_xdir"
2642
2643 case $host in
2644 *-darwin*)
2645 func_verbose "Extracting $my_xabs"
2646 # Do not bother doing anything if just a dry run
2647 $opt_dry_run || {
2648 darwin_orig_dir=`pwd`
2649 cd $my_xdir || exit $?
2650 darwin_archive=$my_xabs
2651 darwin_curdir=`pwd`
2652 darwin_base_archive=`basename "$darwin_archive"`
2653 darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true`
2654 if test -n "$darwin_arches"; then
2655 darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'`
2656 darwin_arch=
2657 func_verbose "$darwin_base_archive has multiple architectures $darwin_arches"
2658 for darwin_arch in $darwin_arches ; do
2659 func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
2660 $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
2661 cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
2662 func_extract_an_archive "`pwd`" "${darwin_base_archive}"
2663 cd "$darwin_curdir"
2664 $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
2665 done # $darwin_arches
2666 ## Okay now we've a bunch of thin objects, gotta fatten them up :)
2667 darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u`
2668 darwin_file=
2669 darwin_files=
2670 for darwin_file in $darwin_filelist; do
2671 darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
2672 $LIPO -create -output "$darwin_file" $darwin_files
2673 done # $darwin_filelist
2674 $RM -rf unfat-$$
2675 cd "$darwin_orig_dir"
2676 else
2677 cd $darwin_orig_dir
2678 func_extract_an_archive "$my_xdir" "$my_xabs"
2679 fi # $darwin_arches
2680 } # !$opt_dry_run
2681 ;;
2682 *)
2683 func_extract_an_archive "$my_xdir" "$my_xabs"
2684 ;;
2685 esac
2686 my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
2687 done
2688
2689 func_extract_archives_result="$my_oldobjs"
2690 }
2691
2692
2693
2694 # func_emit_wrapper_part1 [arg=no]
2695 #
2696 # Emit the first part of a libtool wrapper script on stdout.
2697 # For more information, see the description associated with
2698 # func_emit_wrapper(), below.
2699 func_emit_wrapper_part1 ()
2700 {
2701 func_emit_wrapper_part1_arg1=no
2702 if test -n "$1" ; then
2703 func_emit_wrapper_part1_arg1=$1
2704 fi
2705
2706 $ECHO "\
2707 #! $SHELL
2708
2709 # $output - temporary wrapper script for $objdir/$outputname
2710 # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
2711 #
2712 # The $output program cannot be directly executed until all the libtool
2713 # libraries that it depends on are installed.
2714 #
2715 # This wrapper script should never be moved out of the build directory.
2716 # If it is, it will not operate correctly.
2717
2718 # Sed substitution that helps us do robust quoting. It backslashifies
2719 # metacharacters that are still active within double-quoted strings.
2720 Xsed='${SED} -e 1s/^X//'
2721 sed_quote_subst='$sed_quote_subst'
2722
2723 # Be Bourne compatible
2724 if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
2725 emulate sh
2726 NULLCMD=:
2727 # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
2728 # is contrary to our usage. Disable this feature.
2729 alias -g '\${1+\"\$@\"}'='\"\$@\"'
2730 setopt NO_GLOB_SUBST
2731 else
2732 case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
2733 fi
2734 BIN_SH=xpg4; export BIN_SH # for Tru64
2735 DUALCASE=1; export DUALCASE # for MKS sh
2736
2737 # The HP-UX ksh and POSIX shell print the target directory to stdout
2738 # if CDPATH is set.
2739 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
2740
2741 relink_command=\"$relink_command\"
2742
2743 # This environment variable determines our operation mode.
2744 if test \"\$libtool_install_magic\" = \"$magic\"; then
2745 # install mode needs the following variables:
2746 generated_by_libtool_version='$macro_version'
2747 notinst_deplibs='$notinst_deplibs'
2748 else
2749 # When we are sourced in execute mode, \$file and \$ECHO are already set.
2750 if test \"\$libtool_execute_magic\" != \"$magic\"; then
2751 ECHO=\"$qecho\"
2752 file=\"\$0\"
2753 # Make sure echo works.
2754 if test \"X\$1\" = X--no-reexec; then
2755 # Discard the --no-reexec flag, and continue.
2756 shift
2757 elif test \"X\`{ \$ECHO '\t'; } 2>/dev/null\`\" = 'X\t'; then
2758 # Yippee, \$ECHO works!
2759 :
2760 else
2761 # Restart under the correct shell, and then maybe \$ECHO will work.
2762 exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
2763 fi
2764 fi\
2765 "
2766 $ECHO "\
2767
2768 # Find the directory that this script lives in.
2769 thisdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
2770 test \"x\$thisdir\" = \"x\$file\" && thisdir=.
2771
2772 # Follow symbolic links until we get to the real thisdir.
2773 file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
2774 while test -n \"\$file\"; do
2775 destdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
2776
2777 # If there was a directory component, then change thisdir.
2778 if test \"x\$destdir\" != \"x\$file\"; then
2779 case \"\$destdir\" in
2780 [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
2781 *) thisdir=\"\$thisdir/\$destdir\" ;;
2782 esac
2783 fi
2784
2785 file=\`\$ECHO \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
2786 file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
2787 done
2788 "
2789 }
2790 # end: func_emit_wrapper_part1
2791
2792 # func_emit_wrapper_part2 [arg=no]
2793 #
2794 # Emit the second part of a libtool wrapper script on stdout.
2795 # For more information, see the description associated with
2796 # func_emit_wrapper(), below.
2797 func_emit_wrapper_part2 ()
2798 {
2799 func_emit_wrapper_part2_arg1=no
2800 if test -n "$1" ; then
2801 func_emit_wrapper_part2_arg1=$1
2802 fi
2803
2804 $ECHO "\
2805
2806 # Usually 'no', except on cygwin/mingw when embedded into
2807 # the cwrapper.
2808 WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_part2_arg1
2809 if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then
2810 # special case for '.'
2811 if test \"\$thisdir\" = \".\"; then
2812 thisdir=\`pwd\`
2813 fi
2814 # remove .libs from thisdir
2815 case \"\$thisdir\" in
2816 *[\\\\/]$objdir ) thisdir=\`\$ECHO \"X\$thisdir\" | \$Xsed -e 's%[\\\\/][^\\\\/]*$%%'\` ;;
2817 $objdir ) thisdir=. ;;
2818 esac
2819 fi
2820
2821 # Try to get the absolute directory name.
2822 absdir=\`cd \"\$thisdir\" && pwd\`
2823 test -n \"\$absdir\" && thisdir=\"\$absdir\"
2824 "
2825
2826 if test "$fast_install" = yes; then
2827 $ECHO "\
2828 program=lt-'$outputname'$exeext
2829 progdir=\"\$thisdir/$objdir\"
2830
2831 if test ! -f \"\$progdir/\$program\" ||
2832 { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
2833 test \"X\$file\" != \"X\$progdir/\$program\"; }; then
2834
2835 file=\"\$\$-\$program\"
2836
2837 if test ! -d \"\$progdir\"; then
2838 $MKDIR \"\$progdir\"
2839 else
2840 $RM \"\$progdir/\$file\"
2841 fi"
2842
2843 $ECHO "\
2844
2845 # relink executable if necessary
2846 if test -n \"\$relink_command\"; then
2847 if relink_command_output=\`eval \$relink_command 2>&1\`; then :
2848 else
2849 $ECHO \"\$relink_command_output\" >&2
2850 $RM \"\$progdir/\$file\"
2851 exit 1
2852 fi
2853 fi
2854
2855 $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
2856 { $RM \"\$progdir/\$program\";
2857 $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; }
2858 $RM \"\$progdir/\$file\"
2859 fi"
2860 else
2861 $ECHO "\
2862 program='$outputname'
2863 progdir=\"\$thisdir/$objdir\"
2864 "
2865 fi
2866
2867 $ECHO "\
2868
2869 if test -f \"\$progdir/\$program\"; then"
2870
2871 # Export our shlibpath_var if we have one.
2872 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
2873 $ECHO "\
2874 # Add our own library path to $shlibpath_var
2875 $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
2876
2877 # Some systems cannot cope with colon-terminated $shlibpath_var
2878 # The second colon is a workaround for a bug in BeOS R4 sed
2879 $shlibpath_var=\`\$ECHO \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
2880
2881 export $shlibpath_var
2882 "
2883 fi
2884
2885 # fixup the dll searchpath if we need to.
2886 if test -n "$dllsearchpath"; then
2887 $ECHO "\
2888 # Add the dll search path components to the executable PATH
2889 PATH=$dllsearchpath:\$PATH
2890 "
2891 fi
2892
2893 $ECHO "\
2894 if test \"\$libtool_execute_magic\" != \"$magic\"; then
2895 # Run the actual program with our arguments.
2896 "
2897 case $host in
2898 # Backslashes separate directories on plain windows
2899 *-*-mingw | *-*-os2* | *-cegcc*)
2900 $ECHO "\
2901 exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
2902 "
2903 ;;
2904
2905 *)
2906 $ECHO "\
2907 exec \"\$progdir/\$program\" \${1+\"\$@\"}
2908 "
2909 ;;
2910 esac
2911 $ECHO "\
2912 \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
2913 exit 1
2914 fi
2915 else
2916 # The program doesn't exist.
2917 \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
2918 \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
2919 $ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
2920 exit 1
2921 fi
2922 fi\
2923 "
2924 }
2925 # end: func_emit_wrapper_part2
2926
2927
2928 # func_emit_wrapper [arg=no]
2929 #
2930 # Emit a libtool wrapper script on stdout.
2931 # Don't directly open a file because we may want to
2932 # incorporate the script contents within a cygwin/mingw
2933 # wrapper executable. Must ONLY be called from within
2934 # func_mode_link because it depends on a number of variables
2935 # set therein.
2936 #
2937 # ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR
2938 # variable will take. If 'yes', then the emitted script
2939 # will assume that the directory in which it is stored is
2940 # the $objdir directory. This is a cygwin/mingw-specific
2941 # behavior.
2942 func_emit_wrapper ()
2943 {
2944 func_emit_wrapper_arg1=no
2945 if test -n "$1" ; then
2946 func_emit_wrapper_arg1=$1
2947 fi
2948
2949 # split this up so that func_emit_cwrapperexe_src
2950 # can call each part independently.
2951 func_emit_wrapper_part1 "${func_emit_wrapper_arg1}"
2952 func_emit_wrapper_part2 "${func_emit_wrapper_arg1}"
2953 }
2954
2955
2956 # func_to_host_path arg
2957 #
2958 # Convert paths to host format when used with build tools.
2959 # Intended for use with "native" mingw (where libtool itself
2960 # is running under the msys shell), or in the following cross-
2961 # build environments:
2962 # $build $host
2963 # mingw (msys) mingw [e.g. native]
2964 # cygwin mingw
2965 # *nix + wine mingw
2966 # where wine is equipped with the `winepath' executable.
2967 # In the native mingw case, the (msys) shell automatically
2968 # converts paths for any non-msys applications it launches,
2969 # but that facility isn't available from inside the cwrapper.
2970 # Similar accommodations are necessary for $host mingw and
2971 # $build cygwin. Calling this function does no harm for other
2972 # $host/$build combinations not listed above.
2973 #
2974 # ARG is the path (on $build) that should be converted to
2975 # the proper representation for $host. The result is stored
2976 # in $func_to_host_path_result.
2977 func_to_host_path ()
2978 {
2979 func_to_host_path_result="$1"
2980 if test -n "$1" ; then
2981 case $host in
2982 *mingw* )
2983 lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
2984 case $build in
2985 *mingw* ) # actually, msys
2986 # awkward: cmd appends spaces to result
2987 lt_sed_strip_trailing_spaces="s/[ ]*\$//"
2988 func_to_host_path_tmp1=`( cmd //c echo "$1" |\
2989 $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
2990 func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
2991 $SED -e "$lt_sed_naive_backslashify"`
2992 ;;
2993 *cygwin* )
2994 func_to_host_path_tmp1=`cygpath -w "$1"`
2995 func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
2996 $SED -e "$lt_sed_naive_backslashify"`
2997 ;;
2998 * )
2999 # Unfortunately, winepath does not exit with a non-zero
3000 # error code, so we are forced to check the contents of
3001 # stdout. On the other hand, if the command is not
3002 # found, the shell will set an exit code of 127 and print
3003 # *an error message* to stdout. So we must check for both
3004 # error code of zero AND non-empty stdout, which explains
3005 # the odd construction:
3006 func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null`
3007 if test "$?" -eq 0 && test -n "${func_to_host_path_tmp1}"; then
3008 func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
3009 $SED -e "$lt_sed_naive_backslashify"`
3010 else
3011 # Allow warning below.
3012 func_to_host_path_result=""
3013 fi
3014 ;;
3015 esac
3016 if test -z "$func_to_host_path_result" ; then
3017 func_error "Could not determine host path corresponding to"
3018 func_error " '$1'"
3019 func_error "Continuing, but uninstalled executables may not work."
3020 # Fallback:
3021 func_to_host_path_result="$1"
3022 fi
3023 ;;
3024 esac
3025 fi
3026 }
3027 # end: func_to_host_path
3028
3029 # func_to_host_pathlist arg
3030 #
3031 # Convert pathlists to host format when used with build tools.
3032 # See func_to_host_path(), above. This function supports the
3033 # following $build/$host combinations (but does no harm for
3034 # combinations not listed here):
3035 # $build $host
3036 # mingw (msys) mingw [e.g. native]
3037 # cygwin mingw
3038 # *nix + wine mingw
3039 #
3040 # Path separators are also converted from $build format to
3041 # $host format. If ARG begins or ends with a path separator
3042 # character, it is preserved (but converted to $host format)
3043 # on output.
3044 #
3045 # ARG is a pathlist (on $build) that should be converted to
3046 # the proper representation on $host. The result is stored
3047 # in $func_to_host_pathlist_result.
3048 func_to_host_pathlist ()
3049 {
3050 func_to_host_pathlist_result="$1"
3051 if test -n "$1" ; then
3052 case $host in
3053 *mingw* )
3054 lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
3055 # Remove leading and trailing path separator characters from
3056 # ARG. msys behavior is inconsistent here, cygpath turns them
3057 # into '.;' and ';.', and winepath ignores them completely.
3058 func_to_host_pathlist_tmp2="$1"
3059 # Once set for this call, this variable should not be
3060 # reassigned. It is used in tha fallback case.
3061 func_to_host_pathlist_tmp1=`echo "$func_to_host_pathlist_tmp2" |\
3062 $SED -e 's|^:*||' -e 's|:*$||'`
3063 case $build in
3064 *mingw* ) # Actually, msys.
3065 # Awkward: cmd appends spaces to result.
3066 lt_sed_strip_trailing_spaces="s/[ ]*\$//"
3067 func_to_host_pathlist_tmp2=`( cmd //c echo "$func_to_host_pathlist_tmp1" |\
3068 $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
3069 func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
3070 $SED -e "$lt_sed_naive_backslashify"`
3071 ;;
3072 *cygwin* )
3073 func_to_host_pathlist_tmp2=`cygpath -w -p "$func_to_host_pathlist_tmp1"`
3074 func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
3075 $SED -e "$lt_sed_naive_backslashify"`
3076 ;;
3077 * )
3078 # unfortunately, winepath doesn't convert pathlists
3079 func_to_host_pathlist_result=""
3080 func_to_host_pathlist_oldIFS=$IFS
3081 IFS=:
3082 for func_to_host_pathlist_f in $func_to_host_pathlist_tmp1 ; do
3083 IFS=$func_to_host_pathlist_oldIFS
3084 if test -n "$func_to_host_pathlist_f" ; then
3085 func_to_host_path "$func_to_host_pathlist_f"
3086 if test -n "$func_to_host_path_result" ; then
3087 if test -z "$func_to_host_pathlist_result" ; then
3088 func_to_host_pathlist_result="$func_to_host_path_result"
3089 else
3090 func_to_host_pathlist_result="$func_to_host_pathlist_result;$func_to_host_path_result"
3091 fi
3092 fi
3093 fi
3094 IFS=:
3095 done
3096 IFS=$func_to_host_pathlist_oldIFS
3097 ;;
3098 esac
3099 if test -z "$func_to_host_pathlist_result" ; then
3100 func_error "Could not determine the host path(s) corresponding to"
3101 func_error " '$1'"
3102 func_error "Continuing, but uninstalled executables may not work."
3103 # Fallback. This may break if $1 contains DOS-style drive
3104 # specifications. The fix is not to complicate the expression
3105 # below, but for the user to provide a working wine installation
3106 # with winepath so that path translation in the cross-to-mingw
3107 # case works properly.
3108 lt_replace_pathsep_nix_to_dos="s|:|;|g"
3109 func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp1" |\
3110 $SED -e "$lt_replace_pathsep_nix_to_dos"`
3111 fi
3112 # Now, add the leading and trailing path separators back
3113 case "$1" in
3114 :* ) func_to_host_pathlist_result=";$func_to_host_pathlist_result"
3115 ;;
3116 esac
3117 case "$1" in
3118 *: ) func_to_host_pathlist_result="$func_to_host_pathlist_result;"
3119 ;;
3120 esac
3121 ;;
3122 esac
3123 fi
3124 }
3125 # end: func_to_host_pathlist
3126
3127 # func_emit_cwrapperexe_src
3128 # emit the source code for a wrapper executable on stdout
3129 # Must ONLY be called from within func_mode_link because
3130 # it depends on a number of variable set therein.
3131 func_emit_cwrapperexe_src ()
3132 {
3133 cat <<EOF
3134
3135 /* $cwrappersource - temporary wrapper executable for $objdir/$outputname
3136 Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
3137
3138 The $output program cannot be directly executed until all the libtool
3139 libraries that it depends on are installed.
3140
3141 This wrapper executable should never be moved out of the build directory.
3142 If it is, it will not operate correctly.
3143
3144 Currently, it simply execs the wrapper *script* "$SHELL $output",
3145 but could eventually absorb all of the scripts functionality and
3146 exec $objdir/$outputname directly.
3147 */
3148 EOF
3149 cat <<"EOF"
3150 #include <stdio.h>
3151 #include <stdlib.h>
3152 #ifdef _MSC_VER
3153 # include <direct.h>
3154 # include <process.h>
3155 # include <io.h>
3156 # define setmode _setmode
3157 #else
3158 # include <unistd.h>
3159 # include <stdint.h>
3160 # ifdef __CYGWIN__
3161 # include <io.h>
3162 # define HAVE_SETENV
3163 # ifdef __STRICT_ANSI__
3164 char *realpath (const char *, char *);
3165 int putenv (char *);
3166 int setenv (const char *, const char *, int);
3167 # endif
3168 # endif
3169 #endif
3170 #include <malloc.h>
3171 #include <stdarg.h>
3172 #include <assert.h>
3173 #include <string.h>
3174 #include <ctype.h>
3175 #include <errno.h>
3176 #include <fcntl.h>
3177 #include <sys/stat.h>
3178
3179 #if defined(PATH_MAX)
3180 # define LT_PATHMAX PATH_MAX
3181 #elif defined(MAXPATHLEN)
3182 # define LT_PATHMAX MAXPATHLEN
3183 #else
3184 # define LT_PATHMAX 1024
3185 #endif
3186
3187 #ifndef S_IXOTH
3188 # define S_IXOTH 0
3189 #endif
3190 #ifndef S_IXGRP
3191 # define S_IXGRP 0
3192 #endif
3193
3194 #ifdef _MSC_VER
3195 # define S_IXUSR _S_IEXEC
3196 # define stat _stat
3197 # ifndef _INTPTR_T_DEFINED
3198 # define intptr_t int
3199 # endif
3200 #endif
3201
3202 #ifndef DIR_SEPARATOR
3203 # define DIR_SEPARATOR '/'
3204 # define PATH_SEPARATOR ':'
3205 #endif
3206
3207 #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
3208 defined (__OS2__)
3209 # define HAVE_DOS_BASED_FILE_SYSTEM
3210 # define FOPEN_WB "wb"
3211 # ifndef DIR_SEPARATOR_2
3212 # define DIR_SEPARATOR_2 '\\'
3213 # endif
3214 # ifndef PATH_SEPARATOR_2
3215 # define PATH_SEPARATOR_2 ';'
3216 # endif
3217 #endif
3218
3219 #ifndef DIR_SEPARATOR_2
3220 # define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
3221 #else /* DIR_SEPARATOR_2 */
3222 # define IS_DIR_SEPARATOR(ch) \
3223 (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
3224 #endif /* DIR_SEPARATOR_2 */
3225
3226 #ifndef PATH_SEPARATOR_2
3227 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
3228 #else /* PATH_SEPARATOR_2 */
3229 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
3230 #endif /* PATH_SEPARATOR_2 */
3231
3232 #ifdef __CYGWIN__
3233 # define FOPEN_WB "wb"
3234 #endif
3235
3236 #ifndef FOPEN_WB
3237 # define FOPEN_WB "w"
3238 #endif
3239 #ifndef _O_BINARY
3240 # define _O_BINARY 0
3241 #endif
3242
3243 #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
3244 #define XFREE(stale) do { \
3245 if (stale) { free ((void *) stale); stale = 0; } \
3246 } while (0)
3247
3248 #undef LTWRAPPER_DEBUGPRINTF
3249 #if defined DEBUGWRAPPER
3250 # define LTWRAPPER_DEBUGPRINTF(args) ltwrapper_debugprintf args
3251 static void
3252 ltwrapper_debugprintf (const char *fmt, ...)
3253 {
3254 va_list args;
3255 va_start (args, fmt);
3256 (void) vfprintf (stderr, fmt, args);
3257 va_end (args);
3258 }
3259 #else
3260 # define LTWRAPPER_DEBUGPRINTF(args)
3261 #endif
3262
3263 const char *program_name = NULL;
3264
3265 void *xmalloc (size_t num);
3266 char *xstrdup (const char *string);
3267 const char *base_name (const char *name);
3268 char *find_executable (const char *wrapper);
3269 char *chase_symlinks (const char *pathspec);
3270 int make_executable (const char *path);
3271 int check_executable (const char *path);
3272 char *strendzap (char *str, const char *pat);
3273 void lt_fatal (const char *message, ...);
3274 void lt_setenv (const char *name, const char *value);
3275 char *lt_extend_str (const char *orig_value, const char *add, int to_end);
3276 void lt_opt_process_env_set (const char *arg);
3277 void lt_opt_process_env_prepend (const char *arg);
3278 void lt_opt_process_env_append (const char *arg);
3279 int lt_split_name_value (const char *arg, char** name, char** value);
3280 void lt_update_exe_path (const char *name, const char *value);
3281 void lt_update_lib_path (const char *name, const char *value);
3282
3283 static const char *script_text_part1 =
3284 EOF
3285
3286 func_emit_wrapper_part1 yes |
3287 $SED -e 's/\([\\"]\)/\\\1/g' \
3288 -e 's/^/ "/' -e 's/$/\\n"/'
3289 echo ";"
3290 cat <<EOF
3291
3292 static const char *script_text_part2 =
3293 EOF
3294 func_emit_wrapper_part2 yes |
3295 $SED -e 's/\([\\"]\)/\\\1/g' \
3296 -e 's/^/ "/' -e 's/$/\\n"/'
3297 echo ";"
3298
3299 cat <<EOF
3300 const char * MAGIC_EXE = "$magic_exe";
3301 const char * LIB_PATH_VARNAME = "$shlibpath_var";
3302 EOF
3303
3304 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
3305 func_to_host_pathlist "$temp_rpath"
3306 cat <<EOF
3307 const char * LIB_PATH_VALUE = "$func_to_host_pathlist_result";
3308 EOF
3309 else
3310 cat <<"EOF"
3311 const char * LIB_PATH_VALUE = "";
3312 EOF
3313 fi
3314
3315 if test -n "$dllsearchpath"; then
3316 func_to_host_pathlist "$dllsearchpath:"
3317 cat <<EOF
3318 const char * EXE_PATH_VARNAME = "PATH";
3319 const char * EXE_PATH_VALUE = "$func_to_host_pathlist_result";
3320 EOF
3321 else
3322 cat <<"EOF"
3323 const char * EXE_PATH_VARNAME = "";
3324 const char * EXE_PATH_VALUE = "";
3325 EOF
3326 fi
3327
3328 if test "$fast_install" = yes; then
3329 cat <<EOF
3330 const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */
3331 EOF
3332 else
3333 cat <<EOF
3334 const char * TARGET_PROGRAM_NAME = "$outputname"; /* hopefully, no .exe */
3335 EOF
3336 fi
3337
3338
3339 cat <<"EOF"
3340
3341 #define LTWRAPPER_OPTION_PREFIX "--lt-"
3342 #define LTWRAPPER_OPTION_PREFIX_LENGTH 5
3343
3344 static const size_t opt_prefix_len = LTWRAPPER_OPTION_PREFIX_LENGTH;
3345 static const char *ltwrapper_option_prefix = LTWRAPPER_OPTION_PREFIX;
3346
3347 static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script";
3348
3349 static const size_t env_set_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 7;
3350 static const char *env_set_opt = LTWRAPPER_OPTION_PREFIX "env-set";
3351 /* argument is putenv-style "foo=bar", value of foo is set to bar */
3352
3353 static const size_t env_prepend_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 11;
3354 static const char *env_prepend_opt = LTWRAPPER_OPTION_PREFIX "env-prepend";
3355 /* argument is putenv-style "foo=bar", new value of foo is bar${foo} */
3356
3357 static const size_t env_append_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 10;
3358 static const char *env_append_opt = LTWRAPPER_OPTION_PREFIX "env-append";
3359 /* argument is putenv-style "foo=bar", new value of foo is ${foo}bar */
3360
3361 int
3362 main (int argc, char *argv[])
3363 {
3364 char **newargz;
3365 int newargc;
3366 char *tmp_pathspec;
3367 char *actual_cwrapper_path;
3368 char *actual_cwrapper_name;
3369 char *target_name;
3370 char *lt_argv_zero;
3371 intptr_t rval = 127;
3372
3373 int i;
3374
3375 program_name = (char *) xstrdup (base_name (argv[0]));
3376 LTWRAPPER_DEBUGPRINTF (("(main) argv[0] : %s\n", argv[0]));
3377 LTWRAPPER_DEBUGPRINTF (("(main) program_name : %s\n", program_name));
3378
3379 /* very simple arg parsing; don't want to rely on getopt */
3380 for (i = 1; i < argc; i++)
3381 {
3382 if (strcmp (argv[i], dumpscript_opt) == 0)
3383 {
3384 EOF
3385 case "$host" in
3386 *mingw* | *cygwin* )
3387 # make stdout use "unix" line endings
3388 echo " setmode(1,_O_BINARY);"
3389 ;;
3390 esac
3391
3392 cat <<"EOF"
3393 printf ("%s", script_text_part1);
3394 printf ("%s", script_text_part2);
3395 return 0;
3396 }
3397 }
3398
3399 newargz = XMALLOC (char *, argc + 1);
3400 tmp_pathspec = find_executable (argv[0]);
3401 if (tmp_pathspec == NULL)
3402 lt_fatal ("Couldn't find %s", argv[0]);
3403 LTWRAPPER_DEBUGPRINTF (("(main) found exe (before symlink chase) at : %s\n",
3404 tmp_pathspec));
3405
3406 actual_cwrapper_path = chase_symlinks (tmp_pathspec);
3407 LTWRAPPER_DEBUGPRINTF (("(main) found exe (after symlink chase) at : %s\n",
3408 actual_cwrapper_path));
3409 XFREE (tmp_pathspec);
3410
3411 actual_cwrapper_name = xstrdup( base_name (actual_cwrapper_path));
3412 strendzap (actual_cwrapper_path, actual_cwrapper_name);
3413
3414 /* wrapper name transforms */
3415 strendzap (actual_cwrapper_name, ".exe");
3416 tmp_pathspec = lt_extend_str (actual_cwrapper_name, ".exe", 1);
3417 XFREE (actual_cwrapper_name);
3418 actual_cwrapper_name = tmp_pathspec;
3419 tmp_pathspec = 0;
3420
3421 /* target_name transforms -- use actual target program name; might have lt- prefix */
3422 target_name = xstrdup (base_name (TARGET_PROGRAM_NAME));
3423 strendzap (target_name, ".exe");
3424 tmp_pathspec = lt_extend_str (target_name, ".exe", 1);
3425 XFREE (target_name);
3426 target_name = tmp_pathspec;
3427 tmp_pathspec = 0;
3428
3429 LTWRAPPER_DEBUGPRINTF (("(main) libtool target name: %s\n",
3430 target_name));
3431 EOF
3432
3433 cat <<EOF
3434 newargz[0] =
3435 XMALLOC (char, (strlen (actual_cwrapper_path) +
3436 strlen ("$objdir") + 1 + strlen (actual_cwrapper_name) + 1));
3437 strcpy (newargz[0], actual_cwrapper_path);
3438 strcat (newargz[0], "$objdir");
3439 strcat (newargz[0], "/");
3440 EOF
3441
3442 cat <<"EOF"
3443 /* stop here, and copy so we don't have to do this twice */
3444 tmp_pathspec = xstrdup (newargz[0]);
3445
3446 /* do NOT want the lt- prefix here, so use actual_cwrapper_name */
3447 strcat (newargz[0], actual_cwrapper_name);
3448
3449 /* DO want the lt- prefix here if it exists, so use target_name */
3450 lt_argv_zero = lt_extend_str (tmp_pathspec, target_name, 1);
3451 XFREE (tmp_pathspec);
3452 tmp_pathspec = NULL;
3453 EOF
3454
3455 case $host_os in
3456 mingw*)
3457 cat <<"EOF"
3458 {
3459 char* p;
3460 while ((p = strchr (newargz[0], '\\')) != NULL)
3461 {
3462 *p = '/';
3463 }
3464 while ((p = strchr (lt_argv_zero, '\\')) != NULL)
3465 {
3466 *p = '/';
3467 }
3468 }
3469 EOF
3470 ;;
3471 esac
3472
3473 cat <<"EOF"
3474 XFREE (target_name);
3475 XFREE (actual_cwrapper_path);
3476 XFREE (actual_cwrapper_name);
3477
3478 lt_setenv ("BIN_SH", "xpg4"); /* for Tru64 */
3479 lt_setenv ("DUALCASE", "1"); /* for MSK sh */
3480 lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE);
3481 lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE);
3482
3483 newargc=0;
3484 for (i = 1; i < argc; i++)
3485 {
3486 if (strncmp (argv[i], env_set_opt, env_set_opt_len) == 0)
3487 {
3488 if (argv[i][env_set_opt_len] == '=')
3489 {
3490 const char *p = argv[i] + env_set_opt_len + 1;
3491 lt_opt_process_env_set (p);
3492 }
3493 else if (argv[i][env_set_opt_len] == '\0' && i + 1 < argc)
3494 {
3495 lt_opt_process_env_set (argv[++i]); /* don't copy */
3496 }
3497 else
3498 lt_fatal ("%s missing required argument", env_set_opt);
3499 continue;
3500 }
3501 if (strncmp (argv[i], env_prepend_opt, env_prepend_opt_len) == 0)
3502 {
3503 if (argv[i][env_prepend_opt_len] == '=')
3504 {
3505 const char *p = argv[i] + env_prepend_opt_len + 1;
3506 lt_opt_process_env_prepend (p);
3507 }
3508 else if (argv[i][env_prepend_opt_len] == '\0' && i + 1 < argc)
3509 {
3510 lt_opt_process_env_prepend (argv[++i]); /* don't copy */
3511 }
3512 else
3513 lt_fatal ("%s missing required argument", env_prepend_opt);
3514 continue;
3515 }
3516 if (strncmp (argv[i], env_append_opt, env_append_opt_len) == 0)
3517 {
3518 if (argv[i][env_append_opt_len] == '=')
3519 {
3520 const char *p = argv[i] + env_append_opt_len + 1;
3521 lt_opt_process_env_append (p);
3522 }
3523 else if (argv[i][env_append_opt_len] == '\0' && i + 1 < argc)
3524 {
3525 lt_opt_process_env_append (argv[++i]); /* don't copy */
3526 }
3527 else
3528 lt_fatal ("%s missing required argument", env_append_opt);
3529 continue;
3530 }
3531 if (strncmp (argv[i], ltwrapper_option_prefix, opt_prefix_len) == 0)
3532 {
3533 /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
3534 namespace, but it is not one of the ones we know about and
3535 have already dealt with, above (inluding dump-script), then
3536 report an error. Otherwise, targets might begin to believe
3537 they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
3538 namespace. The first time any user complains about this, we'll
3539 need to make LTWRAPPER_OPTION_PREFIX a configure-time option
3540 or a configure.ac-settable value.
3541 */
3542 lt_fatal ("Unrecognized option in %s namespace: '%s'",
3543 ltwrapper_option_prefix, argv[i]);
3544 }
3545 /* otherwise ... */
3546 newargz[++newargc] = xstrdup (argv[i]);
3547 }
3548 newargz[++newargc] = NULL;
3549
3550 LTWRAPPER_DEBUGPRINTF (("(main) lt_argv_zero : %s\n", (lt_argv_zero ? lt_argv_zero : "<NULL>")));
3551 for (i = 0; i < newargc; i++)
3552 {
3553 LTWRAPPER_DEBUGPRINTF (("(main) newargz[%d] : %s\n", i, (newargz[i] ? newargz[i] : "<NULL>")));
3554 }
3555
3556 EOF
3557
3558 case $host_os in
3559 mingw*)
3560 cat <<"EOF"
3561 /* execv doesn't actually work on mingw as expected on unix */
3562 rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
3563 if (rval == -1)
3564 {
3565 /* failed to start process */
3566 LTWRAPPER_DEBUGPRINTF (("(main) failed to launch target \"%s\": errno = %d\n", lt_argv_zero, errno));
3567 return 127;
3568 }
3569 return rval;
3570 EOF
3571 ;;
3572 *)
3573 cat <<"EOF"
3574 execv (lt_argv_zero, newargz);
3575 return rval; /* =127, but avoids unused variable warning */
3576 EOF
3577 ;;
3578 esac
3579
3580 cat <<"EOF"
3581 }
3582
3583 void *
3584 xmalloc (size_t num)
3585 {
3586 void *p = (void *) malloc (num);
3587 if (!p)
3588 lt_fatal ("Memory exhausted");
3589
3590 return p;
3591 }
3592
3593 char *
3594 xstrdup (const char *string)
3595 {
3596 return string ? strcpy ((char *) xmalloc (strlen (string) + 1),
3597 string) : NULL;
3598 }
3599
3600 const char *
3601 base_name (const char *name)
3602 {
3603 const char *base;
3604
3605 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
3606 /* Skip over the disk name in MSDOS pathnames. */
3607 if (isalpha ((unsigned char) name[0]) && name[1] == ':')
3608 name += 2;
3609 #endif
3610
3611 for (base = name; *name; name++)
3612 if (IS_DIR_SEPARATOR (*name))
3613 base = name + 1;
3614 return base;
3615 }
3616
3617 int
3618 check_executable (const char *path)
3619 {
3620 struct stat st;
3621
3622 LTWRAPPER_DEBUGPRINTF (("(check_executable) : %s\n",
3623 path ? (*path ? path : "EMPTY!") : "NULL!"));
3624 if ((!path) || (!*path))
3625 return 0;
3626
3627 if ((stat (path, &st) >= 0)
3628 && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)))
3629 return 1;
3630 else
3631 return 0;
3632 }
3633
3634 int
3635 make_executable (const char *path)
3636 {
3637 int rval = 0;
3638 struct stat st;
3639
3640 LTWRAPPER_DEBUGPRINTF (("(make_executable) : %s\n",
3641 path ? (*path ? path : "EMPTY!") : "NULL!"));
3642 if ((!path) || (!*path))
3643 return 0;
3644
3645 if (stat (path, &st) >= 0)
3646 {
3647 rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR);
3648 }
3649 return rval;
3650 }
3651
3652 /* Searches for the full path of the wrapper. Returns
3653 newly allocated full path name if found, NULL otherwise
3654 Does not chase symlinks, even on platforms that support them.
3655 */
3656 char *
3657 find_executable (const char *wrapper)
3658 {
3659 int has_slash = 0;
3660 const char *p;
3661 const char *p_next;
3662 /* static buffer for getcwd */
3663 char tmp[LT_PATHMAX + 1];
3664 int tmp_len;
3665 char *concat_name;
3666
3667 LTWRAPPER_DEBUGPRINTF (("(find_executable) : %s\n",
3668 wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!"));
3669
3670 if ((wrapper == NULL) || (*wrapper == '\0'))
3671 return NULL;
3672
3673 /* Absolute path? */
3674 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
3675 if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':')
3676 {
3677 concat_name = xstrdup (wrapper);
3678 if (check_executable (concat_name))
3679 return concat_name;
3680 XFREE (concat_name);
3681 }
3682 else
3683 {
3684 #endif
3685 if (IS_DIR_SEPARATOR (wrapper[0]))
3686 {
3687 concat_name = xstrdup (wrapper);
3688 if (check_executable (concat_name))
3689 return concat_name;
3690 XFREE (concat_name);
3691 }
3692 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
3693 }
3694 #endif
3695
3696 for (p = wrapper; *p; p++)
3697 if (*p == '/')
3698 {
3699 has_slash = 1;
3700 break;
3701 }
3702 if (!has_slash)
3703 {
3704 /* no slashes; search PATH */
3705 const char *path = getenv ("PATH");
3706 if (path != NULL)
3707 {
3708 for (p = path; *p; p = p_next)
3709 {
3710 const char *q;
3711 size_t p_len;
3712 for (q = p; *q; q++)
3713 if (IS_PATH_SEPARATOR (*q))
3714 break;
3715 p_len = q - p;
3716 p_next = (*q == '\0' ? q : q + 1);
3717 if (p_len == 0)
3718 {
3719 /* empty path: current directory */
3720 if (getcwd (tmp, LT_PATHMAX) == NULL)
3721 lt_fatal ("getcwd failed");
3722 tmp_len = strlen (tmp);
3723 concat_name =
3724 XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
3725 memcpy (concat_name, tmp, tmp_len);
3726 concat_name[tmp_len] = '/';
3727 strcpy (concat_name + tmp_len + 1, wrapper);
3728 }
3729 else
3730 {
3731 concat_name =
3732 XMALLOC (char, p_len + 1 + strlen (wrapper) + 1);
3733 memcpy (concat_name, p, p_len);
3734 concat_name[p_len] = '/';
3735 strcpy (concat_name + p_len + 1, wrapper);
3736 }
3737 if (check_executable (concat_name))
3738 return concat_name;
3739 XFREE (concat_name);
3740 }
3741 }
3742 /* not found in PATH; assume curdir */
3743 }
3744 /* Relative path | not found in path: prepend cwd */
3745 if (getcwd (tmp, LT_PATHMAX) == NULL)
3746 lt_fatal ("getcwd failed");
3747 tmp_len = strlen (tmp);
3748 concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
3749 memcpy (concat_name, tmp, tmp_len);
3750 concat_name[tmp_len] = '/';
3751 strcpy (concat_name + tmp_len + 1, wrapper);
3752
3753 if (check_executable (concat_name))
3754 return concat_name;
3755 XFREE (concat_name);
3756 return NULL;
3757 }
3758
3759 char *
3760 chase_symlinks (const char *pathspec)
3761 {
3762 #ifndef S_ISLNK
3763 return xstrdup (pathspec);
3764 #else
3765 char buf[LT_PATHMAX];
3766 struct stat s;
3767 char *tmp_pathspec = xstrdup (pathspec);
3768 char *p;
3769 int has_symlinks = 0;
3770 while (strlen (tmp_pathspec) && !has_symlinks)
3771 {
3772 LTWRAPPER_DEBUGPRINTF (("checking path component for symlinks: %s\n",
3773 tmp_pathspec));
3774 if (lstat (tmp_pathspec, &s) == 0)
3775 {
3776 if (S_ISLNK (s.st_mode) != 0)
3777 {
3778 has_symlinks = 1;
3779 break;
3780 }
3781
3782 /* search backwards for last DIR_SEPARATOR */
3783 p = tmp_pathspec + strlen (tmp_pathspec) - 1;
3784 while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
3785 p--;
3786 if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
3787 {
3788 /* no more DIR_SEPARATORS left */
3789 break;
3790 }
3791 *p = '\0';
3792 }
3793 else
3794 {
3795 char *errstr = strerror (errno);
3796 lt_fatal ("Error accessing file %s (%s)", tmp_pathspec, errstr);
3797 }
3798 }
3799 XFREE (tmp_pathspec);
3800
3801 if (!has_symlinks)
3802 {
3803 return xstrdup (pathspec);
3804 }
3805
3806 tmp_pathspec = realpath (pathspec, buf);
3807 if (tmp_pathspec == 0)
3808 {
3809 lt_fatal ("Could not follow symlinks for %s", pathspec);
3810 }
3811 return xstrdup (tmp_pathspec);
3812 #endif
3813 }
3814
3815 char *
3816 strendzap (char *str, const char *pat)
3817 {
3818 size_t len, patlen;
3819
3820 assert (str != NULL);
3821 assert (pat != NULL);
3822
3823 len = strlen (str);
3824 patlen = strlen (pat);
3825
3826 if (patlen <= len)
3827 {
3828 str += len - patlen;
3829 if (strcmp (str, pat) == 0)
3830 *str = '\0';
3831 }
3832 return str;
3833 }
3834
3835 static void
3836 lt_error_core (int exit_status, const char *mode,
3837 const char *message, va_list ap)
3838 {
3839 fprintf (stderr, "%s: %s: ", program_name, mode);
3840 vfprintf (stderr, message, ap);
3841 fprintf (stderr, ".\n");
3842
3843 if (exit_status >= 0)
3844 exit (exit_status);
3845 }
3846
3847 void
3848 lt_fatal (const char *message, ...)
3849 {
3850 va_list ap;
3851 va_start (ap, message);
3852 lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
3853 va_end (ap);
3854 }
3855
3856 void
3857 lt_setenv (const char *name, const char *value)
3858 {
3859 LTWRAPPER_DEBUGPRINTF (("(lt_setenv) setting '%s' to '%s'\n",
3860 (name ? name : "<NULL>"),
3861 (value ? value : "<NULL>")));
3862 {
3863 #ifdef HAVE_SETENV
3864 /* always make a copy, for consistency with !HAVE_SETENV */
3865 char *str = xstrdup (value);
3866 setenv (name, str, 1);
3867 #else
3868 int len = strlen (name) + 1 + strlen (value) + 1;
3869 char *str = XMALLOC (char, len);
3870 sprintf (str, "%s=%s", name, value);
3871 if (putenv (str) != EXIT_SUCCESS)
3872 {
3873 XFREE (str);
3874 }
3875 #endif
3876 }
3877 }
3878
3879 char *
3880 lt_extend_str (const char *orig_value, const char *add, int to_end)
3881 {
3882 char *new_value;
3883 if (orig_value && *orig_value)
3884 {
3885 int orig_value_len = strlen (orig_value);
3886 int add_len = strlen (add);
3887 new_value = XMALLOC (char, add_len + orig_value_len + 1);
3888 if (to_end)
3889 {
3890 strcpy (new_value, orig_value);
3891 strcpy (new_value + orig_value_len, add);
3892 }
3893 else
3894 {
3895 strcpy (new_value, add);
3896 strcpy (new_value + add_len, orig_value);
3897 }
3898 }
3899 else
3900 {
3901 new_value = xstrdup (add);
3902 }
3903 return new_value;
3904 }
3905
3906 int
3907 lt_split_name_value (const char *arg, char** name, char** value)
3908 {
3909 const char *p;
3910 int len;
3911 if (!arg || !*arg)
3912 return 1;
3913
3914 p = strchr (arg, (int)'=');
3915
3916 if (!p)
3917 return 1;
3918
3919 *value = xstrdup (++p);
3920
3921 len = strlen (arg) - strlen (*value);
3922 *name = XMALLOC (char, len);
3923 strncpy (*name, arg, len-1);
3924 (*name)[len - 1] = '\0';
3925
3926 return 0;
3927 }
3928
3929 void
3930 lt_opt_process_env_set (const char *arg)
3931 {
3932 char *name = NULL;
3933 char *value = NULL;
3934
3935 if (lt_split_name_value (arg, &name, &value) != 0)
3936 {
3937 XFREE (name);
3938 XFREE (value);
3939 lt_fatal ("bad argument for %s: '%s'", env_set_opt, arg);
3940 }
3941
3942 lt_setenv (name, value);
3943 XFREE (name);
3944 XFREE (value);
3945 }
3946
3947 void
3948 lt_opt_process_env_prepend (const char *arg)
3949 {
3950 char *name = NULL;
3951 char *value = NULL;
3952 char *new_value = NULL;
3953
3954 if (lt_split_name_value (arg, &name, &value) != 0)
3955 {
3956 XFREE (name);
3957 XFREE (value);
3958 lt_fatal ("bad argument for %s: '%s'", env_prepend_opt, arg);
3959 }
3960
3961 new_value = lt_extend_str (getenv (name), value, 0);
3962 lt_setenv (name, new_value);
3963 XFREE (new_value);
3964 XFREE (name);
3965 XFREE (value);
3966 }
3967
3968 void
3969 lt_opt_process_env_append (const char *arg)
3970 {
3971 char *name = NULL;
3972 char *value = NULL;
3973 char *new_value = NULL;
3974
3975 if (lt_split_name_value (arg, &name, &value) != 0)
3976 {
3977 XFREE (name);
3978 XFREE (value);
3979 lt_fatal ("bad argument for %s: '%s'", env_append_opt, arg);
3980 }
3981
3982 new_value = lt_extend_str (getenv (name), value, 1);
3983 lt_setenv (name, new_value);
3984 XFREE (new_value);
3985 XFREE (name);
3986 XFREE (value);
3987 }
3988
3989 void
3990 lt_update_exe_path (const char *name, const char *value)
3991 {
3992 LTWRAPPER_DEBUGPRINTF (("(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
3993 (name ? name : "<NULL>"),
3994 (value ? value : "<NULL>")));
3995
3996 if (name && *name && value && *value)
3997 {
3998 char *new_value = lt_extend_str (getenv (name), value, 0);
3999 /* some systems can't cope with a ':'-terminated path #' */
4000 int len = strlen (new_value);
4001 while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
4002 {
4003 new_value[len-1] = '\0';
4004 }
4005 lt_setenv (name, new_value);
4006 XFREE (new_value);
4007 }
4008 }
4009
4010 void
4011 lt_update_lib_path (const char *name, const char *value)
4012 {
4013 LTWRAPPER_DEBUGPRINTF (("(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
4014 (name ? name : "<NULL>"),
4015 (value ? value : "<NULL>")));
4016
4017 if (name && *name && value && *value)
4018 {
4019 char *new_value = lt_extend_str (getenv (name), value, 0);
4020 lt_setenv (name, new_value);
4021 XFREE (new_value);
4022 }
4023 }
4024
4025
4026 EOF
4027 }
4028 # end: func_emit_cwrapperexe_src
4029
4030 # func_mode_link arg...
4031 func_mode_link ()
4032 {
4033 $opt_debug
4034 case $host in
4035 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
4036 # It is impossible to link a dll without this setting, and
4037 # we shouldn't force the makefile maintainer to figure out
4038 # which system we are compiling for in order to pass an extra
4039 # flag for every libtool invocation.
4040 # allow_undefined=no
4041
4042 # FIXME: Unfortunately, there are problems with the above when trying
4043 # to make a dll which has undefined symbols, in which case not
4044 # even a static library is built. For now, we need to specify
4045 # -no-undefined on the libtool link line when we can be certain
4046 # that all symbols are satisfied, otherwise we get a static library.
4047 allow_undefined=yes
4048 ;;
4049 *)
4050 allow_undefined=yes
4051 ;;
4052 esac
4053 libtool_args=$nonopt
4054 base_compile="$nonopt $@"
4055 compile_command=$nonopt
4056 finalize_command=$nonopt
4057
4058 compile_rpath=
4059 finalize_rpath=
4060 compile_shlibpath=
4061 finalize_shlibpath=
4062 convenience=
4063 old_convenience=
4064 deplibs=
4065 old_deplibs=
4066 compiler_flags=
4067 linker_flags=
4068 dllsearchpath=
4069 lib_search_path=`pwd`
4070 inst_prefix_dir=
4071 new_inherited_linker_flags=
4072
4073 avoid_version=no
4074 dlfiles=
4075 dlprefiles=
4076 dlself=no
4077 export_dynamic=no
4078 export_symbols=
4079 export_symbols_regex=
4080 generated=
4081 libobjs=
4082 ltlibs=
4083 module=no
4084 no_install=no
4085 objs=
4086 non_pic_objects=
4087 precious_files_regex=
4088 prefer_static_libs=no
4089 preload=no
4090 prev=
4091 prevarg=
4092 release=
4093 rpath=
4094 xrpath=
4095 perm_rpath=
4096 temp_rpath=
4097 thread_safe=no
4098 vinfo=
4099 vinfo_number=no
4100 weak_libs=
4101 single_module="${wl}-single_module"
4102 func_infer_tag $base_compile
4103
4104 # We need to know -static, to get the right output filenames.
4105 for arg
4106 do
4107 case $arg in
4108 -shared)
4109 test "$build_libtool_libs" != yes && \
4110 func_fatal_configuration "can not build a shared library"
4111 build_old_libs=no
4112 break
4113 ;;
4114 -all-static | -static | -static-libtool-libs)
4115 case $arg in
4116 -all-static)
4117 if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
4118 func_warning "complete static linking is impossible in this configuration"
4119 fi
4120 if test -n "$link_static_flag"; then
4121 dlopen_self=$dlopen_self_static
4122 fi
4123 prefer_static_libs=yes
4124 ;;
4125 -static)
4126 if test -z "$pic_flag" && test -n "$link_static_flag"; then
4127 dlopen_self=$dlopen_self_static
4128 fi
4129 prefer_static_libs=built
4130 ;;
4131 -static-libtool-libs)
4132 if test -z "$pic_flag" && test -n "$link_static_flag"; then
4133 dlopen_self=$dlopen_self_static
4134 fi
4135 prefer_static_libs=yes
4136 ;;
4137 esac
4138 build_libtool_libs=no
4139 build_old_libs=yes
4140 break
4141 ;;
4142 esac
4143 done
4144
4145 # See if our shared archives depend on static archives.
4146 test -n "$old_archive_from_new_cmds" && build_old_libs=yes
4147
4148 # Go through the arguments, transforming them on the way.
4149 while test "$#" -gt 0; do
4150 arg="$1"
4151 shift
4152 func_quote_for_eval "$arg"
4153 qarg=$func_quote_for_eval_unquoted_result
4154 func_append libtool_args " $func_quote_for_eval_result"
4155
4156 # If the previous option needs an argument, assign it.
4157 if test -n "$prev"; then
4158 case $prev in
4159 output)
4160 func_append compile_command " @OUTPUT@"
4161 func_append finalize_command " @OUTPUT@"
4162 ;;
4163 esac
4164
4165 case $prev in
4166 dlfiles|dlprefiles)
4167 if test "$preload" = no; then
4168 # Add the symbol object into the linking commands.
4169 func_append compile_command " @SYMFILE@"
4170 func_append finalize_command " @SYMFILE@"
4171 preload=yes
4172 fi
4173 case $arg in
4174 *.la | *.lo) ;; # We handle these cases below.
4175 force)
4176 if test "$dlself" = no; then
4177 dlself=needless
4178 export_dynamic=yes
4179 fi
4180 prev=
4181 continue
4182 ;;
4183 self)
4184 if test "$prev" = dlprefiles; then
4185 dlself=yes
4186 elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
4187 dlself=yes
4188 else
4189 dlself=needless
4190 export_dynamic=yes
4191 fi
4192 prev=
4193 continue
4194 ;;
4195 *)
4196 if test "$prev" = dlfiles; then
4197 dlfiles="$dlfiles $arg"
4198 else
4199 dlprefiles="$dlprefiles $arg"
4200 fi
4201 prev=
4202 continue
4203 ;;
4204 esac
4205 ;;
4206 expsyms)
4207 export_symbols="$arg"
4208 test -f "$arg" \
4209 || func_fatal_error "symbol file \`$arg' does not exist"
4210 prev=
4211 continue
4212 ;;
4213 expsyms_regex)
4214 export_symbols_regex="$arg"
4215 prev=
4216 continue
4217 ;;
4218 framework)
4219 case $host in
4220 *-*-darwin*)
4221 case "$deplibs " in
4222 *" $qarg.ltframework "*) ;;
4223 *) deplibs="$deplibs $qarg.ltframework" # this is fixed later
4224 ;;
4225 esac
4226 ;;
4227 esac
4228 prev=
4229 continue
4230 ;;
4231 inst_prefix)
4232 inst_prefix_dir="$arg"
4233 prev=
4234 continue
4235 ;;
4236 objectlist)
4237 if test -f "$arg"; then
4238 save_arg=$arg
4239 moreargs=
4240 for fil in `cat "$save_arg"`
4241 do
4242 # moreargs="$moreargs $fil"
4243 arg=$fil
4244 # A libtool-controlled object.
4245
4246 # Check to see that this really is a libtool object.
4247 if func_lalib_unsafe_p "$arg"; then
4248 pic_object=
4249 non_pic_object=
4250
4251 # Read the .lo file
4252 func_source "$arg"
4253
4254 if test -z "$pic_object" ||
4255 test -z "$non_pic_object" ||
4256 test "$pic_object" = none &&
4257 test "$non_pic_object" = none; then
4258 func_fatal_error "cannot find name of object for \`$arg'"
4259 fi
4260
4261 # Extract subdirectory from the argument.
4262 func_dirname "$arg" "/" ""
4263 xdir="$func_dirname_result"
4264
4265 if test "$pic_object" != none; then
4266 # Prepend the subdirectory the object is found in.
4267 pic_object="$xdir$pic_object"
4268
4269 if test "$prev" = dlfiles; then
4270 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
4271 dlfiles="$dlfiles $pic_object"
4272 prev=
4273 continue
4274 else
4275 # If libtool objects are unsupported, then we need to preload.
4276 prev=dlprefiles
4277 fi
4278 fi
4279
4280 # CHECK ME: I think I busted this. -Ossama
4281 if test "$prev" = dlprefiles; then
4282 # Preload the old-style object.
4283 dlprefiles="$dlprefiles $pic_object"
4284 prev=
4285 fi
4286
4287 # A PIC object.
4288 func_append libobjs " $pic_object"
4289 arg="$pic_object"
4290 fi
4291
4292 # Non-PIC object.
4293 if test "$non_pic_object" != none; then
4294 # Prepend the subdirectory the object is found in.
4295 non_pic_object="$xdir$non_pic_object"
4296
4297 # A standard non-PIC object
4298 func_append non_pic_objects " $non_pic_object"
4299 if test -z "$pic_object" || test "$pic_object" = none ; then
4300 arg="$non_pic_object"
4301 fi
4302 else
4303 # If the PIC object exists, use it instead.
4304 # $xdir was prepended to $pic_object above.
4305 non_pic_object="$pic_object"
4306 func_append non_pic_objects " $non_pic_object"
4307 fi
4308 else
4309 # Only an error if not doing a dry-run.
4310 if $opt_dry_run; then
4311 # Extract subdirectory from the argument.
4312 func_dirname "$arg" "/" ""
4313 xdir="$func_dirname_result"
4314
4315 func_lo2o "$arg"
4316 pic_object=$xdir$objdir/$func_lo2o_result
4317 non_pic_object=$xdir$func_lo2o_result
4318 func_append libobjs " $pic_object"
4319 func_append non_pic_objects " $non_pic_object"
4320 else
4321 func_fatal_error "\`$arg' is not a valid libtool object"
4322 fi
4323 fi
4324 done
4325 else
4326 func_fatal_error "link input file \`$arg' does not exist"
4327 fi
4328 arg=$save_arg
4329 prev=
4330 continue
4331 ;;
4332 precious_regex)
4333 precious_files_regex="$arg"
4334 prev=
4335 continue
4336 ;;
4337 release)
4338 release="-$arg"
4339 prev=
4340 continue
4341 ;;
4342 rpath | xrpath)
4343 # We need an absolute path.
4344 case $arg in
4345 [\\/]* | [A-Za-z]:[\\/]*) ;;
4346 *)
4347 func_fatal_error "only absolute run-paths are allowed"
4348 ;;
4349 esac
4350 if test "$prev" = rpath; then
4351 case "$rpath " in
4352 *" $arg "*) ;;
4353 *) rpath="$rpath $arg" ;;
4354 esac
4355 else
4356 case "$xrpath " in
4357 *" $arg "*) ;;
4358 *) xrpath="$xrpath $arg" ;;
4359 esac
4360 fi
4361 prev=
4362 continue
4363 ;;
4364 shrext)
4365 shrext_cmds="$arg"
4366 prev=
4367 continue
4368 ;;
4369 weak)
4370 weak_libs="$weak_libs $arg"
4371 prev=
4372 continue
4373 ;;
4374 xcclinker)
4375 linker_flags="$linker_flags $qarg"
4376 compiler_flags="$compiler_flags $qarg"
4377 prev=
4378 func_append compile_command " $qarg"
4379 func_append finalize_command " $qarg"
4380 continue
4381 ;;
4382 xcompiler)
4383 compiler_flags="$compiler_flags $qarg"
4384 prev=
4385 func_append compile_command " $qarg"
4386 func_append finalize_command " $qarg"
4387 continue
4388 ;;
4389 xlinker)
4390 linker_flags="$linker_flags $qarg"
4391 compiler_flags="$compiler_flags $wl$qarg"
4392 prev=
4393 func_append compile_command " $wl$qarg"
4394 func_append finalize_command " $wl$qarg"
4395 continue
4396 ;;
4397 *)
4398 eval "$prev=\"\$arg\""
4399 prev=
4400 continue
4401 ;;
4402 esac
4403 fi # test -n "$prev"
4404
4405 prevarg="$arg"
4406
4407 case $arg in
4408 -all-static)
4409 if test -n "$link_static_flag"; then
4410 # See comment for -static flag below, for more details.
4411 func_append compile_command " $link_static_flag"
4412 func_append finalize_command " $link_static_flag"
4413 fi
4414 continue
4415 ;;
4416
4417 -allow-undefined)
4418 # FIXME: remove this flag sometime in the future.
4419 func_fatal_error "\`-allow-undefined' must not be used because it is the default"
4420 ;;
4421
4422 -avoid-version)
4423 avoid_version=yes
4424 continue
4425 ;;
4426
4427 -dlopen)
4428 prev=dlfiles
4429 continue
4430 ;;
4431
4432 -dlpreopen)
4433 prev=dlprefiles
4434 continue
4435 ;;
4436
4437 -export-dynamic)
4438 export_dynamic=yes
4439 continue
4440 ;;
4441
4442 -export-symbols | -export-symbols-regex)
4443 if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
4444 func_fatal_error "more than one -exported-symbols argument is not allowed"
4445 fi
4446 if test "X$arg" = "X-export-symbols"; then
4447 prev=expsyms
4448 else
4449 prev=expsyms_regex
4450 fi
4451 continue
4452 ;;
4453
4454 -framework)
4455 prev=framework
4456 continue
4457 ;;
4458
4459 -inst-prefix-dir)
4460 prev=inst_prefix
4461 continue
4462 ;;
4463
4464 # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
4465 # so, if we see these flags be careful not to treat them like -L
4466 -L[A-Z][A-Z]*:*)
4467 case $with_gcc/$host in
4468 no/*-*-irix* | /*-*-irix*)
4469 func_append compile_command " $arg"
4470 func_append finalize_command " $arg"
4471 ;;
4472 esac
4473 continue
4474 ;;
4475
4476 -L*)
4477 func_stripname '-L' '' "$arg"
4478 dir=$func_stripname_result
4479 if test -z "$dir"; then
4480 if test "$#" -gt 0; then
4481 func_fatal_error "require no space between \`-L' and \`$1'"
4482 else
4483 func_fatal_error "need path for \`-L' option"
4484 fi
4485 fi
4486 # We need an absolute path.
4487 case $dir in
4488 [\\/]* | [A-Za-z]:[\\/]*) ;;
4489 *)
4490 absdir=`cd "$dir" && pwd`
4491 test -z "$absdir" && \
4492 func_fatal_error "cannot determine absolute directory name of \`$dir'"
4493 dir="$absdir"
4494 ;;
4495 esac
4496 case "$deplibs " in
4497 *" -L$dir "*) ;;
4498 *)
4499 deplibs="$deplibs -L$dir"
4500 lib_search_path="$lib_search_path $dir"
4501 ;;
4502 esac
4503 case $host in
4504 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
4505 testbindir=`$ECHO "X$dir" | $Xsed -e 's*/lib$*/bin*'`
4506 case :$dllsearchpath: in
4507 *":$dir:"*) ;;
4508 ::) dllsearchpath=$dir;;
4509 *) dllsearchpath="$dllsearchpath:$dir";;
4510 esac
4511 case :$dllsearchpath: in
4512 *":$testbindir:"*) ;;
4513 ::) dllsearchpath=$testbindir;;
4514 *) dllsearchpath="$dllsearchpath:$testbindir";;
4515 esac
4516 ;;
4517 esac
4518 continue
4519 ;;
4520
4521 -l*)
4522 if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
4523 case $host in
4524 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc*)
4525 # These systems don't actually have a C or math library (as such)
4526 continue
4527 ;;
4528 *-*-os2*)
4529 # These systems don't actually have a C library (as such)
4530 test "X$arg" = "X-lc" && continue
4531 ;;
4532 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
4533 # Do not include libc due to us having libc/libc_r.
4534 test "X$arg" = "X-lc" && continue
4535 ;;
4536 *-*-rhapsody* | *-*-darwin1.[012])
4537 # Rhapsody C and math libraries are in the System framework
4538 deplibs="$deplibs System.ltframework"
4539 continue
4540 ;;
4541 *-*-sco3.2v5* | *-*-sco5v6*)
4542 # Causes problems with __ctype
4543 test "X$arg" = "X-lc" && continue
4544 ;;
4545 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
4546 # Compiler inserts libc in the correct place for threads to work
4547 test "X$arg" = "X-lc" && continue
4548 ;;
4549 esac
4550 elif test "X$arg" = "X-lc_r"; then
4551 case $host in
4552 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
4553 # Do not include libc_r directly, use -pthread flag.
4554 continue
4555 ;;
4556 esac
4557 fi
4558 deplibs="$deplibs $arg"
4559 continue
4560 ;;
4561
4562 -module)
4563 module=yes
4564 continue
4565 ;;
4566
4567 # Tru64 UNIX uses -model [arg] to determine the layout of C++
4568 # classes, name mangling, and exception handling.
4569 # Darwin uses the -arch flag to determine output architecture.
4570 -model|-arch|-isysroot)
4571 compiler_flags="$compiler_flags $arg"
4572 func_append compile_command " $arg"
4573 func_append finalize_command " $arg"
4574 prev=xcompiler
4575 continue
4576 ;;
4577
4578 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
4579 compiler_flags="$compiler_flags $arg"
4580 func_append compile_command " $arg"
4581 func_append finalize_command " $arg"
4582 case "$new_inherited_linker_flags " in
4583 *" $arg "*) ;;
4584 * ) new_inherited_linker_flags="$new_inherited_linker_flags $arg" ;;
4585 esac
4586 continue
4587 ;;
4588
4589 -multi_module)
4590 single_module="${wl}-multi_module"
4591 continue
4592 ;;
4593
4594 -no-fast-install)
4595 fast_install=no
4596 continue
4597 ;;
4598
4599 -no-install)
4600 case $host in
4601 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
4602 # The PATH hackery in wrapper scripts is required on Windows
4603 # and Darwin in order for the loader to find any dlls it needs.
4604 func_warning "\`-no-install' is ignored for $host"
4605 func_warning "assuming \`-no-fast-install' instead"
4606 fast_install=no
4607 ;;
4608 *) no_install=yes ;;
4609 esac
4610 continue
4611 ;;
4612
4613 -no-undefined)
4614 allow_undefined=no
4615 continue
4616 ;;
4617
4618 -objectlist)
4619 prev=objectlist
4620 continue
4621 ;;
4622
4623 -o) prev=output ;;
4624
4625 -precious-files-regex)
4626 prev=precious_regex
4627 continue
4628 ;;
4629
4630 -release)
4631 prev=release
4632 continue
4633 ;;
4634
4635 -rpath)
4636 prev=rpath
4637 continue
4638 ;;
4639
4640 -R)
4641 prev=xrpath
4642 continue
4643 ;;
4644
4645 -R*)
4646 func_stripname '-R' '' "$arg"
4647 dir=$func_stripname_result
4648 # We need an absolute path.
4649 case $dir in
4650 [\\/]* | [A-Za-z]:[\\/]*) ;;
4651 *)
4652 func_fatal_error "only absolute run-paths are allowed"
4653 ;;
4654 esac
4655 case "$xrpath " in
4656 *" $dir "*) ;;
4657 *) xrpath="$xrpath $dir" ;;
4658 esac
4659 continue
4660 ;;
4661
4662 -shared)
4663 # The effects of -shared are defined in a previous loop.
4664 continue
4665 ;;
4666
4667 -shrext)
4668 prev=shrext
4669 continue
4670 ;;
4671
4672 -static | -static-libtool-libs)
4673 # The effects of -static are defined in a previous loop.
4674 # We used to do the same as -all-static on platforms that
4675 # didn't have a PIC flag, but the assumption that the effects
4676 # would be equivalent was wrong. It would break on at least
4677 # Digital Unix and AIX.
4678 continue
4679 ;;
4680
4681 -thread-safe)
4682 thread_safe=yes
4683 continue
4684 ;;
4685
4686 -version-info)
4687 prev=vinfo
4688 continue
4689 ;;
4690
4691 -version-number)
4692 prev=vinfo
4693 vinfo_number=yes
4694 continue
4695 ;;
4696
4697 -weak)
4698 prev=weak
4699 continue
4700 ;;
4701
4702 -Wc,*)
4703 func_stripname '-Wc,' '' "$arg"
4704 args=$func_stripname_result
4705 arg=
4706 save_ifs="$IFS"; IFS=','
4707 for flag in $args; do
4708 IFS="$save_ifs"
4709 func_quote_for_eval "$flag"
4710 arg="$arg $wl$func_quote_for_eval_result"
4711 compiler_flags="$compiler_flags $func_quote_for_eval_result"
4712 done
4713 IFS="$save_ifs"
4714 func_stripname ' ' '' "$arg"
4715 arg=$func_stripname_result
4716 ;;
4717
4718 -Wl,*)
4719 func_stripname '-Wl,' '' "$arg"
4720 args=$func_stripname_result
4721 arg=
4722 save_ifs="$IFS"; IFS=','
4723 for flag in $args; do
4724 IFS="$save_ifs"
4725 func_quote_for_eval "$flag"
4726 arg="$arg $wl$func_quote_for_eval_result"
4727 compiler_flags="$compiler_flags $wl$func_quote_for_eval_result"
4728 linker_flags="$linker_flags $func_quote_for_eval_result"
4729 done
4730 IFS="$save_ifs"
4731 func_stripname ' ' '' "$arg"
4732 arg=$func_stripname_result
4733 ;;
4734
4735 -Xcompiler)
4736 prev=xcompiler
4737 continue
4738 ;;
4739
4740 -Xlinker)
4741 prev=xlinker
4742 continue
4743 ;;
4744
4745 -XCClinker)
4746 prev=xcclinker
4747 continue
4748 ;;
4749
4750 # -msg_* for osf cc
4751 -msg_*)
4752 func_quote_for_eval "$arg"
4753 arg="$func_quote_for_eval_result"
4754 ;;
4755
4756 # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
4757 # -r[0-9][0-9]* specifies the processor on the SGI compiler
4758 # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
4759 # +DA*, +DD* enable 64-bit mode on the HP compiler
4760 # -q* pass through compiler args for the IBM compiler
4761 # -m*, -t[45]*, -txscale* pass through architecture-specific
4762 # compiler args for GCC
4763 # -F/path gives path to uninstalled frameworks, gcc on darwin
4764 # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
4765 # @file GCC response files
4766 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
4767 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*)
4768 func_quote_for_eval "$arg"
4769 arg="$func_quote_for_eval_result"
4770 func_append compile_command " $arg"
4771 func_append finalize_command " $arg"
4772 compiler_flags="$compiler_flags $arg"
4773 continue
4774 ;;
4775
4776 # Some other compiler flag.
4777 -* | +*)
4778 func_quote_for_eval "$arg"
4779 arg="$func_quote_for_eval_result"
4780 ;;
4781
4782 *.$objext)
4783 # A standard object.
4784 objs="$objs $arg"
4785 ;;
4786
4787 *.lo)
4788 # A libtool-controlled object.
4789
4790 # Check to see that this really is a libtool object.
4791 if func_lalib_unsafe_p "$arg"; then
4792 pic_object=
4793 non_pic_object=
4794
4795 # Read the .lo file
4796 func_source "$arg"
4797
4798 if test -z "$pic_object" ||
4799 test -z "$non_pic_object" ||
4800 test "$pic_object" = none &&
4801 test "$non_pic_object" = none; then
4802 func_fatal_error "cannot find name of object for \`$arg'"
4803 fi
4804
4805 # Extract subdirectory from the argument.
4806 func_dirname "$arg" "/" ""
4807 xdir="$func_dirname_result"
4808
4809 if test "$pic_object" != none; then
4810 # Prepend the subdirectory the object is found in.
4811 pic_object="$xdir$pic_object"
4812
4813 if test "$prev" = dlfiles; then
4814 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
4815 dlfiles="$dlfiles $pic_object"
4816 prev=
4817 continue
4818 else
4819 # If libtool objects are unsupported, then we need to preload.
4820 prev=dlprefiles
4821 fi
4822 fi
4823
4824 # CHECK ME: I think I busted this. -Ossama
4825 if test "$prev" = dlprefiles; then
4826 # Preload the old-style object.
4827 dlprefiles="$dlprefiles $pic_object"
4828 prev=
4829 fi
4830
4831 # A PIC object.
4832 func_append libobjs " $pic_object"
4833 arg="$pic_object"
4834 fi
4835
4836 # Non-PIC object.
4837 if test "$non_pic_object" != none; then
4838 # Prepend the subdirectory the object is found in.
4839 non_pic_object="$xdir$non_pic_object"
4840
4841 # A standard non-PIC object
4842 func_append non_pic_objects " $non_pic_object"
4843 if test -z "$pic_object" || test "$pic_object" = none ; then
4844 arg="$non_pic_object"
4845 fi
4846 else
4847 # If the PIC object exists, use it instead.
4848 # $xdir was prepended to $pic_object above.
4849 non_pic_object="$pic_object"
4850 func_append non_pic_objects " $non_pic_object"
4851 fi
4852 else
4853 # Only an error if not doing a dry-run.
4854 if $opt_dry_run; then
4855 # Extract subdirectory from the argument.
4856 func_dirname "$arg" "/" ""
4857 xdir="$func_dirname_result"
4858
4859 func_lo2o "$arg"
4860 pic_object=$xdir$objdir/$func_lo2o_result
4861 non_pic_object=$xdir$func_lo2o_result
4862 func_append libobjs " $pic_object"
4863 func_append non_pic_objects " $non_pic_object"
4864 else
4865 func_fatal_error "\`$arg' is not a valid libtool object"
4866 fi
4867 fi
4868 ;;
4869
4870 *.$libext)
4871 # An archive.
4872 deplibs="$deplibs $arg"
4873 old_deplibs="$old_deplibs $arg"
4874 continue
4875 ;;
4876
4877 *.la)
4878 # A libtool-controlled library.
4879
4880 if test "$prev" = dlfiles; then
4881 # This library was specified with -dlopen.
4882 dlfiles="$dlfiles $arg"
4883 prev=
4884 elif test "$prev" = dlprefiles; then
4885 # The library was specified with -dlpreopen.
4886 dlprefiles="$dlprefiles $arg"
4887 prev=
4888 else
4889 deplibs="$deplibs $arg"
4890 fi
4891 continue
4892 ;;
4893
4894 # Some other compiler argument.
4895 *)
4896 # Unknown arguments in both finalize_command and compile_command need
4897 # to be aesthetically quoted because they are evaled later.
4898 func_quote_for_eval "$arg"
4899 arg="$func_quote_for_eval_result"
4900 ;;
4901 esac # arg
4902
4903 # Now actually substitute the argument into the commands.
4904 if test -n "$arg"; then
4905 func_append compile_command " $arg"
4906 func_append finalize_command " $arg"
4907 fi
4908 done # argument parsing loop
4909
4910 test -n "$prev" && \
4911 func_fatal_help "the \`$prevarg' option requires an argument"
4912
4913 if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
4914 eval arg=\"$export_dynamic_flag_spec\"
4915 func_append compile_command " $arg"
4916 func_append finalize_command " $arg"
4917 fi
4918
4919 oldlibs=
4920 # calculate the name of the file, without its directory
4921 func_basename "$output"
4922 outputname="$func_basename_result"
4923 libobjs_save="$libobjs"
4924
4925 if test -n "$shlibpath_var"; then
4926 # get the directories listed in $shlibpath_var
4927 eval shlib_search_path=\`\$ECHO \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
4928 else
4929 shlib_search_path=
4930 fi
4931 eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
4932 eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
4933
4934 func_dirname "$output" "/" ""
4935 output_objdir="$func_dirname_result$objdir"
4936 # Create the object directory.
4937 func_mkdir_p "$output_objdir"
4938
4939 # Determine the type of output
4940 case $output in
4941 "")
4942 func_fatal_help "you must specify an output file"
4943 ;;
4944 *.$libext) linkmode=oldlib ;;
4945 *.lo | *.$objext) linkmode=obj ;;
4946 *.la) linkmode=lib ;;
4947 *) linkmode=prog ;; # Anything else should be a program.
4948 esac
4949
4950 specialdeplibs=
4951
4952 libs=
4953 # Find all interdependent deplibs by searching for libraries
4954 # that are linked more than once (e.g. -la -lb -la)
4955 for deplib in $deplibs; do
4956 if $opt_duplicate_deps ; then
4957 case "$libs " in
4958 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
4959 esac
4960 fi
4961 libs="$libs $deplib"
4962 done
4963
4964 if test "$linkmode" = lib; then
4965 libs="$predeps $libs $compiler_lib_search_path $postdeps"
4966
4967 # Compute libraries that are listed more than once in $predeps
4968 # $postdeps and mark them as special (i.e., whose duplicates are
4969 # not to be eliminated).
4970 pre_post_deps=
4971 if $opt_duplicate_compiler_generated_deps; then
4972 for pre_post_dep in $predeps $postdeps; do
4973 case "$pre_post_deps " in
4974 *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
4975 esac
4976 pre_post_deps="$pre_post_deps $pre_post_dep"
4977 done
4978 fi
4979 pre_post_deps=
4980 fi
4981
4982 deplibs=
4983 newdependency_libs=
4984 newlib_search_path=
4985 need_relink=no # whether we're linking any uninstalled libtool libraries
4986 notinst_deplibs= # not-installed libtool libraries
4987 notinst_path= # paths that contain not-installed libtool libraries
4988
4989 case $linkmode in
4990 lib)
4991 passes="conv dlpreopen link"
4992 for file in $dlfiles $dlprefiles; do
4993 case $file in
4994 *.la) ;;
4995 *)
4996 func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file"
4997 ;;
4998 esac
4999 done
5000 ;;
5001 prog)
5002 compile_deplibs=
5003 finalize_deplibs=
5004 alldeplibs=no
5005 newdlfiles=
5006 newdlprefiles=
5007 passes="conv scan dlopen dlpreopen link"
5008 ;;
5009 *) passes="conv"
5010 ;;
5011 esac
5012
5013 for pass in $passes; do
5014 # The preopen pass in lib mode reverses $deplibs; put it back here
5015 # so that -L comes before libs that need it for instance...
5016 if test "$linkmode,$pass" = "lib,link"; then
5017 ## FIXME: Find the place where the list is rebuilt in the wrong
5018 ## order, and fix it there properly
5019 tmp_deplibs=
5020 for deplib in $deplibs; do
5021 tmp_deplibs="$deplib $tmp_deplibs"
5022 done
5023 deplibs="$tmp_deplibs"
5024 fi
5025
5026 if test "$linkmode,$pass" = "lib,link" ||
5027 test "$linkmode,$pass" = "prog,scan"; then
5028 libs="$deplibs"
5029 deplibs=
5030 fi
5031 if test "$linkmode" = prog; then
5032 case $pass in
5033 dlopen) libs="$dlfiles" ;;
5034 dlpreopen) libs="$dlprefiles" ;;
5035 link)
5036 libs="$deplibs %DEPLIBS%"
5037 test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
5038 ;;
5039 esac
5040 fi
5041 if test "$linkmode,$pass" = "lib,dlpreopen"; then
5042 # Collect and forward deplibs of preopened libtool libs
5043 for lib in $dlprefiles; do
5044 # Ignore non-libtool-libs
5045 dependency_libs=
5046 case $lib in
5047 *.la) func_source "$lib" ;;
5048 esac
5049
5050 # Collect preopened libtool deplibs, except any this library
5051 # has declared as weak libs
5052 for deplib in $dependency_libs; do
5053 deplib_base=`$ECHO "X$deplib" | $Xsed -e "$basename"`
5054 case " $weak_libs " in
5055 *" $deplib_base "*) ;;
5056 *) deplibs="$deplibs $deplib" ;;
5057 esac
5058 done
5059 done
5060 libs="$dlprefiles"
5061 fi
5062 if test "$pass" = dlopen; then
5063 # Collect dlpreopened libraries
5064 save_deplibs="$deplibs"
5065 deplibs=
5066 fi
5067
5068 for deplib in $libs; do
5069 lib=
5070 found=no
5071 case $deplib in
5072 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
5073 if test "$linkmode,$pass" = "prog,link"; then
5074 compile_deplibs="$deplib $compile_deplibs"
5075 finalize_deplibs="$deplib $finalize_deplibs"
5076 else
5077 compiler_flags="$compiler_flags $deplib"
5078 if test "$linkmode" = lib ; then
5079 case "$new_inherited_linker_flags " in
5080 *" $deplib "*) ;;
5081 * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
5082 esac
5083 fi
5084 fi
5085 continue
5086 ;;
5087 -l*)
5088 if test "$linkmode" != lib && test "$linkmode" != prog; then
5089 func_warning "\`-l' is ignored for archives/objects"
5090 continue
5091 fi
5092 func_stripname '-l' '' "$deplib"
5093 name=$func_stripname_result
5094 if test "$linkmode" = lib; then
5095 searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
5096 else
5097 searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
5098 fi
5099 for searchdir in $searchdirs; do
5100 for search_ext in .la $std_shrext .so .a; do
5101 # Search the libtool library
5102 lib="$searchdir/lib${name}${search_ext}"
5103 if test -f "$lib"; then
5104 if test "$search_ext" = ".la"; then
5105 found=yes
5106 else
5107 found=no
5108 fi
5109 break 2
5110 fi
5111 done
5112 done
5113 if test "$found" != yes; then
5114 # deplib doesn't seem to be a libtool library
5115 if test "$linkmode,$pass" = "prog,link"; then
5116 compile_deplibs="$deplib $compile_deplibs"
5117 finalize_deplibs="$deplib $finalize_deplibs"
5118 else
5119 deplibs="$deplib $deplibs"
5120 test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
5121 fi
5122 continue
5123 else # deplib is a libtool library
5124 # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
5125 # We need to do some special things here, and not later.
5126 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
5127 case " $predeps $postdeps " in
5128 *" $deplib "*)
5129 if func_lalib_p "$lib"; then
5130 library_names=
5131 old_library=
5132 func_source "$lib"
5133 for l in $old_library $library_names; do
5134 ll="$l"
5135 done
5136 if test "X$ll" = "X$old_library" ; then # only static version available
5137 found=no
5138 func_dirname "$lib" "" "."
5139 ladir="$func_dirname_result"
5140 lib=$ladir/$old_library
5141 if test "$linkmode,$pass" = "prog,link"; then
5142 compile_deplibs="$deplib $compile_deplibs"
5143 finalize_deplibs="$deplib $finalize_deplibs"
5144 else
5145 deplibs="$deplib $deplibs"
5146 test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
5147 fi
5148 continue
5149 fi
5150 fi
5151 ;;
5152 *) ;;
5153 esac
5154 fi
5155 fi
5156 ;; # -l
5157 *.ltframework)
5158 if test "$linkmode,$pass" = "prog,link"; then
5159 compile_deplibs="$deplib $compile_deplibs"
5160 finalize_deplibs="$deplib $finalize_deplibs"
5161 else
5162 deplibs="$deplib $deplibs"
5163 if test "$linkmode" = lib ; then
5164 case "$new_inherited_linker_flags " in
5165 *" $deplib "*) ;;
5166 * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
5167 esac
5168 fi
5169 fi
5170 continue
5171 ;;
5172 -L*)
5173 case $linkmode in
5174 lib)
5175 deplibs="$deplib $deplibs"
5176 test "$pass" = conv && continue
5177 newdependency_libs="$deplib $newdependency_libs"
5178 func_stripname '-L' '' "$deplib"
5179 newlib_search_path="$newlib_search_path $func_stripname_result"
5180 ;;
5181 prog)
5182 if test "$pass" = conv; then
5183 deplibs="$deplib $deplibs"
5184 continue
5185 fi
5186 if test "$pass" = scan; then
5187 deplibs="$deplib $deplibs"
5188 else
5189 compile_deplibs="$deplib $compile_deplibs"
5190 finalize_deplibs="$deplib $finalize_deplibs"
5191 fi
5192 func_stripname '-L' '' "$deplib"
5193 newlib_search_path="$newlib_search_path $func_stripname_result"
5194 ;;
5195 *)
5196 func_warning "\`-L' is ignored for archives/objects"
5197 ;;
5198 esac # linkmode
5199 continue
5200 ;; # -L
5201 -R*)
5202 if test "$pass" = link; then
5203 func_stripname '-R' '' "$deplib"
5204 dir=$func_stripname_result
5205 # Make sure the xrpath contains only unique directories.
5206 case "$xrpath " in
5207 *" $dir "*) ;;
5208 *) xrpath="$xrpath $dir" ;;
5209 esac
5210 fi
5211 deplibs="$deplib $deplibs"
5212 continue
5213 ;;
5214 *.la) lib="$deplib" ;;
5215 *.$libext)
5216 if test "$pass" = conv; then
5217 deplibs="$deplib $deplibs"
5218 continue
5219 fi
5220 case $linkmode in
5221 lib)
5222 # Linking convenience modules into shared libraries is allowed,
5223 # but linking other static libraries is non-portable.
5224 case " $dlpreconveniencelibs " in
5225 *" $deplib "*) ;;
5226 *)
5227 valid_a_lib=no
5228 case $deplibs_check_method in
5229 match_pattern*)
5230 set dummy $deplibs_check_method; shift
5231 match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
5232 if eval "\$ECHO \"X$deplib\"" 2>/dev/null | $Xsed -e 10q \
5233 | $EGREP "$match_pattern_regex" > /dev/null; then
5234 valid_a_lib=yes
5235 fi
5236 ;;
5237 pass_all)
5238 valid_a_lib=yes
5239 ;;
5240 esac
5241 if test "$valid_a_lib" != yes; then
5242 $ECHO
5243 $ECHO "*** Warning: Trying to link with static lib archive $deplib."
5244 $ECHO "*** I have the capability to make that library automatically link in when"
5245 $ECHO "*** you link to this library. But I can only do this if you have a"
5246 $ECHO "*** shared version of the library, which you do not appear to have"
5247 $ECHO "*** because the file extensions .$libext of this argument makes me believe"
5248 $ECHO "*** that it is just a static archive that I should not use here."
5249 else
5250 $ECHO
5251 $ECHO "*** Warning: Linking the shared library $output against the"
5252 $ECHO "*** static library $deplib is not portable!"
5253 deplibs="$deplib $deplibs"
5254 fi
5255 ;;
5256 esac
5257 continue
5258 ;;
5259 prog)
5260 if test "$pass" != link; then
5261 deplibs="$deplib $deplibs"
5262 else
5263 compile_deplibs="$deplib $compile_deplibs"
5264 finalize_deplibs="$deplib $finalize_deplibs"
5265 fi
5266 continue
5267 ;;
5268 esac # linkmode
5269 ;; # *.$libext
5270 *.lo | *.$objext)
5271 if test "$pass" = conv; then
5272 deplibs="$deplib $deplibs"
5273 elif test "$linkmode" = prog; then
5274 if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
5275 # If there is no dlopen support or we're linking statically,
5276 # we need to preload.
5277 newdlprefiles="$newdlprefiles $deplib"
5278 compile_deplibs="$deplib $compile_deplibs"
5279 finalize_deplibs="$deplib $finalize_deplibs"
5280 else
5281 newdlfiles="$newdlfiles $deplib"
5282 fi
5283 fi
5284 continue
5285 ;;
5286 %DEPLIBS%)
5287 alldeplibs=yes
5288 continue
5289 ;;
5290 esac # case $deplib
5291
5292 if test "$found" = yes || test -f "$lib"; then :
5293 else
5294 func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'"
5295 fi
5296
5297 # Check to see that this really is a libtool archive.
5298 func_lalib_unsafe_p "$lib" \
5299 || func_fatal_error "\`$lib' is not a valid libtool archive"
5300
5301 func_dirname "$lib" "" "."
5302 ladir="$func_dirname_result"
5303
5304 dlname=
5305 dlopen=
5306 dlpreopen=
5307 libdir=
5308 library_names=
5309 old_library=
5310 inherited_linker_flags=
5311 # If the library was installed with an old release of libtool,
5312 # it will not redefine variables installed, or shouldnotlink
5313 installed=yes
5314 shouldnotlink=no
5315 avoidtemprpath=
5316
5317
5318 # Read the .la file
5319 func_source "$lib"
5320
5321 # Convert "-framework foo" to "foo.ltframework"
5322 if test -n "$inherited_linker_flags"; then
5323 tmp_inherited_linker_flags=`$ECHO "X$inherited_linker_flags" | $Xsed -e 's/-framework \([^ $]*\)/\1.ltframework/g'`
5324 for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do
5325 case " $new_inherited_linker_flags " in
5326 *" $tmp_inherited_linker_flag "*) ;;
5327 *) new_inherited_linker_flags="$new_inherited_linker_flags $tmp_inherited_linker_flag";;
5328 esac
5329 done
5330 fi
5331 dependency_libs=`$ECHO "X $dependency_libs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
5332 if test "$linkmode,$pass" = "lib,link" ||
5333 test "$linkmode,$pass" = "prog,scan" ||
5334 { test "$linkmode" != prog && test "$linkmode" != lib; }; then
5335 test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
5336 test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
5337 fi
5338
5339 if test "$pass" = conv; then
5340 # Only check for convenience libraries
5341 deplibs="$lib $deplibs"
5342 if test -z "$libdir"; then
5343 if test -z "$old_library"; then
5344 func_fatal_error "cannot find name of link library for \`$lib'"
5345 fi
5346 # It is a libtool convenience library, so add in its objects.
5347 convenience="$convenience $ladir/$objdir/$old_library"
5348 old_convenience="$old_convenience $ladir/$objdir/$old_library"
5349 tmp_libs=
5350 for deplib in $dependency_libs; do
5351 deplibs="$deplib $deplibs"
5352 if $opt_duplicate_deps ; then
5353 case "$tmp_libs " in
5354 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
5355 esac
5356 fi
5357 tmp_libs="$tmp_libs $deplib"
5358 done
5359 elif test "$linkmode" != prog && test "$linkmode" != lib; then
5360 func_fatal_error "\`$lib' is not a convenience library"
5361 fi
5362 continue
5363 fi # $pass = conv
5364
5365
5366 # Get the name of the library we link against.
5367 linklib=
5368 for l in $old_library $library_names; do
5369 linklib="$l"
5370 done
5371 if test -z "$linklib"; then
5372 func_fatal_error "cannot find name of link library for \`$lib'"
5373 fi
5374
5375 # This library was specified with -dlopen.
5376 if test "$pass" = dlopen; then
5377 if test -z "$libdir"; then
5378 func_fatal_error "cannot -dlopen a convenience library: \`$lib'"
5379 fi
5380 if test -z "$dlname" ||
5381 test "$dlopen_support" != yes ||
5382 test "$build_libtool_libs" = no; then
5383 # If there is no dlname, no dlopen support or we're linking
5384 # statically, we need to preload. We also need to preload any
5385 # dependent libraries so libltdl's deplib preloader doesn't
5386 # bomb out in the load deplibs phase.
5387 dlprefiles="$dlprefiles $lib $dependency_libs"
5388 else
5389 newdlfiles="$newdlfiles $lib"
5390 fi
5391 continue
5392 fi # $pass = dlopen
5393
5394 # We need an absolute path.
5395 case $ladir in
5396 [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
5397 *)
5398 abs_ladir=`cd "$ladir" && pwd`
5399 if test -z "$abs_ladir"; then
5400 func_warning "cannot determine absolute directory name of \`$ladir'"
5401 func_warning "passing it literally to the linker, although it might fail"
5402 abs_ladir="$ladir"
5403 fi
5404 ;;
5405 esac
5406 func_basename "$lib"
5407 laname="$func_basename_result"
5408
5409 # Find the relevant object directory and library name.
5410 if test "X$installed" = Xyes; then
5411 if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
5412 func_warning "library \`$lib' was moved."
5413 dir="$ladir"
5414 absdir="$abs_ladir"
5415 libdir="$abs_ladir"
5416 else
5417 dir="$libdir"
5418 absdir="$libdir"
5419 fi
5420 test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
5421 else
5422 if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
5423 dir="$ladir"
5424 absdir="$abs_ladir"
5425 # Remove this search path later
5426 notinst_path="$notinst_path $abs_ladir"
5427 else
5428 dir="$ladir/$objdir"
5429 absdir="$abs_ladir/$objdir"
5430 # Remove this search path later
5431 notinst_path="$notinst_path $abs_ladir"
5432 fi
5433 fi # $installed = yes
5434 func_stripname 'lib' '.la' "$laname"
5435 name=$func_stripname_result
5436
5437 # This library was specified with -dlpreopen.
5438 if test "$pass" = dlpreopen; then
5439 if test -z "$libdir" && test "$linkmode" = prog; then
5440 func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
5441 fi
5442 # Prefer using a static library (so that no silly _DYNAMIC symbols
5443 # are required to link).
5444 if test -n "$old_library"; then
5445 newdlprefiles="$newdlprefiles $dir/$old_library"
5446 # Keep a list of preopened convenience libraries to check
5447 # that they are being used correctly in the link pass.
5448 test -z "$libdir" && \
5449 dlpreconveniencelibs="$dlpreconveniencelibs $dir/$old_library"
5450 # Otherwise, use the dlname, so that lt_dlopen finds it.
5451 elif test -n "$dlname"; then
5452 newdlprefiles="$newdlprefiles $dir/$dlname"
5453 else
5454 newdlprefiles="$newdlprefiles $dir/$linklib"
5455 fi
5456 fi # $pass = dlpreopen
5457
5458 if test -z "$libdir"; then
5459 # Link the convenience library
5460 if test "$linkmode" = lib; then
5461 deplibs="$dir/$old_library $deplibs"
5462 elif test "$linkmode,$pass" = "prog,link"; then
5463 compile_deplibs="$dir/$old_library $compile_deplibs"
5464 finalize_deplibs="$dir/$old_library $finalize_deplibs"
5465 else
5466 deplibs="$lib $deplibs" # used for prog,scan pass
5467 fi
5468 continue
5469 fi
5470
5471
5472 if test "$linkmode" = prog && test "$pass" != link; then
5473 newlib_search_path="$newlib_search_path $ladir"
5474 deplibs="$lib $deplibs"
5475
5476 linkalldeplibs=no
5477 if test "$link_all_deplibs" != no || test -z "$library_names" ||
5478 test "$build_libtool_libs" = no; then
5479 linkalldeplibs=yes
5480 fi
5481
5482 tmp_libs=
5483 for deplib in $dependency_libs; do
5484 case $deplib in
5485 -L*) func_stripname '-L' '' "$deplib"
5486 newlib_search_path="$newlib_search_path $func_stripname_result"
5487 ;;
5488 esac
5489 # Need to link against all dependency_libs?
5490 if test "$linkalldeplibs" = yes; then
5491 deplibs="$deplib $deplibs"
5492 else
5493 # Need to hardcode shared library paths
5494 # or/and link against static libraries
5495 newdependency_libs="$deplib $newdependency_libs"
5496 fi
5497 if $opt_duplicate_deps ; then
5498 case "$tmp_libs " in
5499 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
5500 esac
5501 fi
5502 tmp_libs="$tmp_libs $deplib"
5503 done # for deplib
5504 continue
5505 fi # $linkmode = prog...
5506
5507 if test "$linkmode,$pass" = "prog,link"; then
5508 if test -n "$library_names" &&
5509 { { test "$prefer_static_libs" = no ||
5510 test "$prefer_static_libs,$installed" = "built,yes"; } ||
5511 test -z "$old_library"; }; then
5512 # We need to hardcode the library path
5513 if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
5514 # Make sure the rpath contains only unique directories.
5515 case "$temp_rpath:" in
5516 *"$absdir:"*) ;;
5517 *) temp_rpath="$temp_rpath$absdir:" ;;
5518 esac
5519 fi
5520
5521 # Hardcode the library path.
5522 # Skip directories that are in the system default run-time
5523 # search path.
5524 case " $sys_lib_dlsearch_path " in
5525 *" $absdir "*) ;;
5526 *)
5527 case "$compile_rpath " in
5528 *" $absdir "*) ;;
5529 *) compile_rpath="$compile_rpath $absdir"
5530 esac
5531 ;;
5532 esac
5533 case " $sys_lib_dlsearch_path " in
5534 *" $libdir "*) ;;
5535 *)
5536 case "$finalize_rpath " in
5537 *" $libdir "*) ;;
5538 *) finalize_rpath="$finalize_rpath $libdir"
5539 esac
5540 ;;
5541 esac
5542 fi # $linkmode,$pass = prog,link...
5543
5544 if test "$alldeplibs" = yes &&
5545 { test "$deplibs_check_method" = pass_all ||
5546 { test "$build_libtool_libs" = yes &&
5547 test -n "$library_names"; }; }; then
5548 # We only need to search for static libraries
5549 continue
5550 fi
5551 fi
5552
5553 link_static=no # Whether the deplib will be linked statically
5554 use_static_libs=$prefer_static_libs
5555 if test "$use_static_libs" = built && test "$installed" = yes; then
5556 use_static_libs=no
5557 fi
5558 if test -n "$library_names" &&
5559 { test "$use_static_libs" = no || test -z "$old_library"; }; then
5560 case $host in
5561 *cygwin* | *mingw* | *cegcc*)
5562 # No point in relinking DLLs because paths are not encoded
5563 notinst_deplibs="$notinst_deplibs $lib"
5564 need_relink=no
5565 ;;
5566 *)
5567 if test "$installed" = no; then
5568 notinst_deplibs="$notinst_deplibs $lib"
5569 need_relink=yes
5570 fi
5571 ;;
5572 esac
5573 # This is a shared library
5574
5575 # Warn about portability, can't link against -module's on some
5576 # systems (darwin). Don't bleat about dlopened modules though!
5577 dlopenmodule=""
5578 for dlpremoduletest in $dlprefiles; do
5579 if test "X$dlpremoduletest" = "X$lib"; then
5580 dlopenmodule="$dlpremoduletest"
5581 break
5582 fi
5583 done
5584 if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then
5585 $ECHO
5586 if test "$linkmode" = prog; then
5587 $ECHO "*** Warning: Linking the executable $output against the loadable module"
5588 else
5589 $ECHO "*** Warning: Linking the shared library $output against the loadable module"
5590 fi
5591 $ECHO "*** $linklib is not portable!"
5592 fi
5593 if test "$linkmode" = lib &&
5594 test "$hardcode_into_libs" = yes; then
5595 # Hardcode the library path.
5596 # Skip directories that are in the system default run-time
5597 # search path.
5598 case " $sys_lib_dlsearch_path " in
5599 *" $absdir "*) ;;
5600 *)
5601 case "$compile_rpath " in
5602 *" $absdir "*) ;;
5603 *) compile_rpath="$compile_rpath $absdir"
5604 esac
5605 ;;
5606 esac
5607 case " $sys_lib_dlsearch_path " in
5608 *" $libdir "*) ;;
5609 *)
5610 case "$finalize_rpath " in
5611 *" $libdir "*) ;;
5612 *) finalize_rpath="$finalize_rpath $libdir"
5613 esac
5614 ;;
5615 esac
5616 fi
5617
5618 if test -n "$old_archive_from_expsyms_cmds"; then
5619 # figure out the soname
5620 set dummy $library_names
5621 shift
5622 realname="$1"
5623 shift
5624 libname=`eval "\\$ECHO \"$libname_spec\""`
5625 # use dlname if we got it. it's perfectly good, no?
5626 if test -n "$dlname"; then
5627 soname="$dlname"
5628 elif test -n "$soname_spec"; then
5629 # bleh windows
5630 case $host in
5631 *cygwin* | mingw* | *cegcc*)
5632 func_arith $current - $age
5633 major=$func_arith_result
5634 versuffix="-$major"
5635 ;;
5636 esac
5637 eval soname=\"$soname_spec\"
5638 else
5639 soname="$realname"
5640 fi
5641
5642 # Make a new name for the extract_expsyms_cmds to use
5643 soroot="$soname"
5644 func_basename "$soroot"
5645 soname="$func_basename_result"
5646 func_stripname 'lib' '.dll' "$soname"
5647 newlib=libimp-$func_stripname_result.a
5648
5649 # If the library has no export list, then create one now
5650 if test -f "$output_objdir/$soname-def"; then :
5651 else
5652 func_verbose "extracting exported symbol list from \`$soname'"
5653 func_execute_cmds "$extract_expsyms_cmds" 'exit $?'
5654 fi
5655
5656 # Create $newlib
5657 if test -f "$output_objdir/$newlib"; then :; else
5658 func_verbose "generating import library for \`$soname'"
5659 func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?'
5660 fi
5661 # make sure the library variables are pointing to the new library
5662 dir=$output_objdir
5663 linklib=$newlib
5664 fi # test -n "$old_archive_from_expsyms_cmds"
5665
5666 if test "$linkmode" = prog || test "$mode" != relink; then
5667 add_shlibpath=
5668 add_dir=
5669 add=
5670 lib_linked=yes
5671 case $hardcode_action in
5672 immediate | unsupported)
5673 if test "$hardcode_direct" = no; then
5674 add="$dir/$linklib"
5675 case $host in
5676 *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
5677 *-*-sysv4*uw2*) add_dir="-L$dir" ;;
5678 *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
5679 *-*-unixware7*) add_dir="-L$dir" ;;
5680 *-*-darwin* )
5681 # if the lib is a (non-dlopened) module then we can not
5682 # link against it, someone is ignoring the earlier warnings
5683 if /usr/bin/file -L $add 2> /dev/null |
5684 $GREP ": [^:]* bundle" >/dev/null ; then
5685 if test "X$dlopenmodule" != "X$lib"; then
5686 $ECHO "*** Warning: lib $linklib is a module, not a shared library"
5687 if test -z "$old_library" ; then
5688 $ECHO
5689 $ECHO "*** And there doesn't seem to be a static archive available"
5690 $ECHO "*** The link will probably fail, sorry"
5691 else
5692 add="$dir/$old_library"
5693 fi
5694 elif test -n "$old_library"; then
5695 add="$dir/$old_library"
5696 fi
5697 fi
5698 esac
5699 elif test "$hardcode_minus_L" = no; then
5700 case $host in
5701 *-*-sunos*) add_shlibpath="$dir" ;;
5702 esac
5703 add_dir="-L$dir"
5704 add="-l$name"
5705 elif test "$hardcode_shlibpath_var" = no; then
5706 add_shlibpath="$dir"
5707 add="-l$name"
5708 else
5709 lib_linked=no
5710 fi
5711 ;;
5712 relink)
5713 if test "$hardcode_direct" = yes &&
5714 test "$hardcode_direct_absolute" = no; then
5715 add="$dir/$linklib"
5716 elif test "$hardcode_minus_L" = yes; then
5717 add_dir="-L$dir"
5718 # Try looking first in the location we're being installed to.
5719 if test -n "$inst_prefix_dir"; then
5720 case $libdir in
5721 [\\/]*)
5722 add_dir="$add_dir -L$inst_prefix_dir$libdir"
5723 ;;
5724 esac
5725 fi
5726 add="-l$name"
5727 elif test "$hardcode_shlibpath_var" = yes; then
5728 add_shlibpath="$dir"
5729 add="-l$name"
5730 else
5731 lib_linked=no
5732 fi
5733 ;;
5734 *) lib_linked=no ;;
5735 esac
5736
5737 if test "$lib_linked" != yes; then
5738 func_fatal_configuration "unsupported hardcode properties"
5739 fi
5740
5741 if test -n "$add_shlibpath"; then
5742 case :$compile_shlibpath: in
5743 *":$add_shlibpath:"*) ;;
5744 *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
5745 esac
5746 fi
5747 if test "$linkmode" = prog; then
5748 test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
5749 test -n "$add" && compile_deplibs="$add $compile_deplibs"
5750 else
5751 test -n "$add_dir" && deplibs="$add_dir $deplibs"
5752 test -n "$add" && deplibs="$add $deplibs"
5753 if test "$hardcode_direct" != yes &&
5754 test "$hardcode_minus_L" != yes &&
5755 test "$hardcode_shlibpath_var" = yes; then
5756 case :$finalize_shlibpath: in
5757 *":$libdir:"*) ;;
5758 *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
5759 esac
5760 fi
5761 fi
5762 fi
5763
5764 if test "$linkmode" = prog || test "$mode" = relink; then
5765 add_shlibpath=
5766 add_dir=
5767 add=
5768 # Finalize command for both is simple: just hardcode it.
5769 if test "$hardcode_direct" = yes &&
5770 test "$hardcode_direct_absolute" = no; then
5771 add="$libdir/$linklib"
5772 elif test "$hardcode_minus_L" = yes; then
5773 add_dir="-L$libdir"
5774 add="-l$name"
5775 elif test "$hardcode_shlibpath_var" = yes; then
5776 case :$finalize_shlibpath: in
5777 *":$libdir:"*) ;;
5778 *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
5779 esac
5780 add="-l$name"
5781 elif test "$hardcode_automatic" = yes; then
5782 if test -n "$inst_prefix_dir" &&
5783 test -f "$inst_prefix_dir$libdir/$linklib" ; then
5784 add="$inst_prefix_dir$libdir/$linklib"
5785 else
5786 add="$libdir/$linklib"
5787 fi
5788 else
5789 # We cannot seem to hardcode it, guess we'll fake it.
5790 add_dir="-L$libdir"
5791 # Try looking first in the location we're being installed to.
5792 if test -n "$inst_prefix_dir"; then
5793 case $libdir in
5794 [\\/]*)
5795 add_dir="$add_dir -L$inst_prefix_dir$libdir"
5796 ;;
5797 esac
5798 fi
5799 add="-l$name"
5800 fi
5801
5802 if test "$linkmode" = prog; then
5803 test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
5804 test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
5805 else
5806 test -n "$add_dir" && deplibs="$add_dir $deplibs"
5807 test -n "$add" && deplibs="$add $deplibs"
5808 fi
5809 fi
5810 elif test "$linkmode" = prog; then
5811 # Here we assume that one of hardcode_direct or hardcode_minus_L
5812 # is not unsupported. This is valid on all known static and
5813 # shared platforms.
5814 if test "$hardcode_direct" != unsupported; then
5815 test -n "$old_library" && linklib="$old_library"
5816 compile_deplibs="$dir/$linklib $compile_deplibs"
5817 finalize_deplibs="$dir/$linklib $finalize_deplibs"
5818 else
5819 compile_deplibs="-l$name -L$dir $compile_deplibs"
5820 finalize_deplibs="-l$name -L$dir $finalize_deplibs"
5821 fi
5822 elif test "$build_libtool_libs" = yes; then
5823 # Not a shared library
5824 if test "$deplibs_check_method" != pass_all; then
5825 # We're trying link a shared library against a static one
5826 # but the system doesn't support it.
5827
5828 # Just print a warning and add the library to dependency_libs so
5829 # that the program can be linked against the static library.
5830 $ECHO
5831 $ECHO "*** Warning: This system can not link to static lib archive $lib."
5832 $ECHO "*** I have the capability to make that library automatically link in when"
5833 $ECHO "*** you link to this library. But I can only do this if you have a"
5834 $ECHO "*** shared version of the library, which you do not appear to have."
5835 if test "$module" = yes; then
5836 $ECHO "*** But as you try to build a module library, libtool will still create "
5837 $ECHO "*** a static module, that should work as long as the dlopening application"
5838 $ECHO "*** is linked with the -dlopen flag to resolve symbols at runtime."
5839 if test -z "$global_symbol_pipe"; then
5840 $ECHO
5841 $ECHO "*** However, this would only work if libtool was able to extract symbol"
5842 $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
5843 $ECHO "*** not find such a program. So, this module is probably useless."
5844 $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
5845 fi
5846 if test "$build_old_libs" = no; then
5847 build_libtool_libs=module
5848 build_old_libs=yes
5849 else
5850 build_libtool_libs=no
5851 fi
5852 fi
5853 else
5854 deplibs="$dir/$old_library $deplibs"
5855 link_static=yes
5856 fi
5857 fi # link shared/static library?
5858
5859 if test "$linkmode" = lib; then
5860 if test -n "$dependency_libs" &&
5861 { test "$hardcode_into_libs" != yes ||
5862 test "$build_old_libs" = yes ||
5863 test "$link_static" = yes; }; then
5864 # Extract -R from dependency_libs
5865 temp_deplibs=
5866 for libdir in $dependency_libs; do
5867 case $libdir in
5868 -R*) func_stripname '-R' '' "$libdir"
5869 temp_xrpath=$func_stripname_result
5870 case " $xrpath " in
5871 *" $temp_xrpath "*) ;;
5872 *) xrpath="$xrpath $temp_xrpath";;
5873 esac;;
5874 *) temp_deplibs="$temp_deplibs $libdir";;
5875 esac
5876 done
5877 dependency_libs="$temp_deplibs"
5878 fi
5879
5880 newlib_search_path="$newlib_search_path $absdir"
5881 # Link against this library
5882 test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
5883 # ... and its dependency_libs
5884 tmp_libs=
5885 for deplib in $dependency_libs; do
5886 newdependency_libs="$deplib $newdependency_libs"
5887 if $opt_duplicate_deps ; then
5888 case "$tmp_libs " in
5889 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
5890 esac
5891 fi
5892 tmp_libs="$tmp_libs $deplib"
5893 done
5894
5895 if test "$link_all_deplibs" != no; then
5896 # Add the search paths of all dependency libraries
5897 for deplib in $dependency_libs; do
5898 path=
5899 case $deplib in
5900 -L*) path="$deplib" ;;
5901 *.la)
5902 func_dirname "$deplib" "" "."
5903 dir="$func_dirname_result"
5904 # We need an absolute path.
5905 case $dir in
5906 [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
5907 *)
5908 absdir=`cd "$dir" && pwd`
5909 if test -z "$absdir"; then
5910 func_warning "cannot determine absolute directory name of \`$dir'"
5911 absdir="$dir"
5912 fi
5913 ;;
5914 esac
5915 if $GREP "^installed=no" $deplib > /dev/null; then
5916 case $host in
5917 *-*-darwin*)
5918 depdepl=
5919 eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
5920 if test -n "$deplibrary_names" ; then
5921 for tmp in $deplibrary_names ; do
5922 depdepl=$tmp
5923 done
5924 if test -f "$absdir/$objdir/$depdepl" ; then
5925 depdepl="$absdir/$objdir/$depdepl"
5926 darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
5927 if test -z "$darwin_install_name"; then
5928 darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
5929 fi
5930 compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
5931 linker_flags="$linker_flags -dylib_file ${darwin_install_name}:${depdepl}"
5932 path=
5933 fi
5934 fi
5935 ;;
5936 *)
5937 path="-L$absdir/$objdir"
5938 ;;
5939 esac
5940 else
5941 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
5942 test -z "$libdir" && \
5943 func_fatal_error "\`$deplib' is not a valid libtool archive"
5944 test "$absdir" != "$libdir" && \
5945 func_warning "\`$deplib' seems to be moved"
5946
5947 path="-L$absdir"
5948 fi
5949 ;;
5950 esac
5951 case " $deplibs " in
5952 *" $path "*) ;;
5953 *) deplibs="$path $deplibs" ;;
5954 esac
5955 done
5956 fi # link_all_deplibs != no
5957 fi # linkmode = lib
5958 done # for deplib in $libs
5959 if test "$pass" = link; then
5960 if test "$linkmode" = "prog"; then
5961 compile_deplibs="$new_inherited_linker_flags $compile_deplibs"
5962 finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs"
5963 else
5964 compiler_flags="$compiler_flags "`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
5965 fi
5966 fi
5967 dependency_libs="$newdependency_libs"
5968 if test "$pass" = dlpreopen; then
5969 # Link the dlpreopened libraries before other libraries
5970 for deplib in $save_deplibs; do
5971 deplibs="$deplib $deplibs"
5972 done
5973 fi
5974 if test "$pass" != dlopen; then
5975 if test "$pass" != conv; then
5976 # Make sure lib_search_path contains only unique directories.
5977 lib_search_path=
5978 for dir in $newlib_search_path; do
5979 case "$lib_search_path " in
5980 *" $dir "*) ;;
5981 *) lib_search_path="$lib_search_path $dir" ;;
5982 esac
5983 done
5984 newlib_search_path=
5985 fi
5986
5987 if test "$linkmode,$pass" != "prog,link"; then
5988 vars="deplibs"
5989 else
5990 vars="compile_deplibs finalize_deplibs"
5991 fi
5992 for var in $vars dependency_libs; do
5993 # Add libraries to $var in reverse order
5994 eval tmp_libs=\"\$$var\"
5995 new_libs=
5996 for deplib in $tmp_libs; do
5997 # FIXME: Pedantically, this is the right thing to do, so
5998 # that some nasty dependency loop isn't accidentally
5999 # broken:
6000 #new_libs="$deplib $new_libs"
6001 # Pragmatically, this seems to cause very few problems in
6002 # practice:
6003 case $deplib in
6004 -L*) new_libs="$deplib $new_libs" ;;
6005 -R*) ;;
6006 *)
6007 # And here is the reason: when a library appears more
6008 # than once as an explicit dependence of a library, or
6009 # is implicitly linked in more than once by the
6010 # compiler, it is considered special, and multiple
6011 # occurrences thereof are not removed. Compare this
6012 # with having the same library being listed as a
6013 # dependency of multiple other libraries: in this case,
6014 # we know (pedantically, we assume) the library does not
6015 # need to be listed more than once, so we keep only the
6016 # last copy. This is not always right, but it is rare
6017 # enough that we require users that really mean to play
6018 # such unportable linking tricks to link the library
6019 # using -Wl,-lname, so that libtool does not consider it
6020 # for duplicate removal.
6021 case " $specialdeplibs " in
6022 *" $deplib "*) new_libs="$deplib $new_libs" ;;
6023 *)
6024 case " $new_libs " in
6025 *" $deplib "*) ;;
6026 *) new_libs="$deplib $new_libs" ;;
6027 esac
6028 ;;
6029 esac
6030 ;;
6031 esac
6032 done
6033 tmp_libs=
6034 for deplib in $new_libs; do
6035 case $deplib in
6036 -L*)
6037 case " $tmp_libs " in
6038 *" $deplib "*) ;;
6039 *) tmp_libs="$tmp_libs $deplib" ;;
6040 esac
6041 ;;
6042 *) tmp_libs="$tmp_libs $deplib" ;;
6043 esac
6044 done
6045 eval $var=\"$tmp_libs\"
6046 done # for var
6047 fi
6048 # Last step: remove runtime libs from dependency_libs
6049 # (they stay in deplibs)
6050 tmp_libs=
6051 for i in $dependency_libs ; do
6052 case " $predeps $postdeps $compiler_lib_search_path " in
6053 *" $i "*)
6054 i=""
6055 ;;
6056 esac
6057 if test -n "$i" ; then
6058 tmp_libs="$tmp_libs $i"
6059 fi
6060 done
6061 dependency_libs=$tmp_libs
6062 done # for pass
6063 if test "$linkmode" = prog; then
6064 dlfiles="$newdlfiles"
6065 fi
6066 if test "$linkmode" = prog || test "$linkmode" = lib; then
6067 dlprefiles="$newdlprefiles"
6068 fi
6069
6070 case $linkmode in
6071 oldlib)
6072 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
6073 func_warning "\`-dlopen' is ignored for archives"
6074 fi
6075
6076 case " $deplibs" in
6077 *\ -l* | *\ -L*)
6078 func_warning "\`-l' and \`-L' are ignored for archives" ;;
6079 esac
6080
6081 test -n "$rpath" && \
6082 func_warning "\`-rpath' is ignored for archives"
6083
6084 test -n "$xrpath" && \
6085 func_warning "\`-R' is ignored for archives"
6086
6087 test -n "$vinfo" && \
6088 func_warning "\`-version-info/-version-number' is ignored for archives"
6089
6090 test -n "$release" && \
6091 func_warning "\`-release' is ignored for archives"
6092
6093 test -n "$export_symbols$export_symbols_regex" && \
6094 func_warning "\`-export-symbols' is ignored for archives"
6095
6096 # Now set the variables for building old libraries.
6097 build_libtool_libs=no
6098 oldlibs="$output"
6099 objs="$objs$old_deplibs"
6100 ;;
6101
6102 lib)
6103 # Make sure we only generate libraries of the form `libNAME.la'.
6104 case $outputname in
6105 lib*)
6106 func_stripname 'lib' '.la' "$outputname"
6107 name=$func_stripname_result
6108 eval shared_ext=\"$shrext_cmds\"
6109 eval libname=\"$libname_spec\"
6110 ;;
6111 *)
6112 test "$module" = no && \
6113 func_fatal_help "libtool library \`$output' must begin with \`lib'"
6114
6115 if test "$need_lib_prefix" != no; then
6116 # Add the "lib" prefix for modules if required
6117 func_stripname '' '.la' "$outputname"
6118 name=$func_stripname_result
6119 eval shared_ext=\"$shrext_cmds\"
6120 eval libname=\"$libname_spec\"
6121 else
6122 func_stripname '' '.la' "$outputname"
6123 libname=$func_stripname_result
6124 fi
6125 ;;
6126 esac
6127
6128 if test -n "$objs"; then
6129 if test "$deplibs_check_method" != pass_all; then
6130 func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs"
6131 else
6132 $ECHO
6133 $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
6134 $ECHO "*** objects $objs is not portable!"
6135 libobjs="$libobjs $objs"
6136 fi
6137 fi
6138
6139 test "$dlself" != no && \
6140 func_warning "\`-dlopen self' is ignored for libtool libraries"
6141
6142 set dummy $rpath
6143 shift
6144 test "$#" -gt 1 && \
6145 func_warning "ignoring multiple \`-rpath's for a libtool library"
6146
6147 install_libdir="$1"
6148
6149 oldlibs=
6150 if test -z "$rpath"; then
6151 if test "$build_libtool_libs" = yes; then
6152 # Building a libtool convenience library.
6153 # Some compilers have problems with a `.al' extension so
6154 # convenience libraries should have the same extension an
6155 # archive normally would.
6156 oldlibs="$output_objdir/$libname.$libext $oldlibs"
6157 build_libtool_libs=convenience
6158 build_old_libs=yes
6159 fi
6160
6161 test -n "$vinfo" && \
6162 func_warning "\`-version-info/-version-number' is ignored for convenience libraries"
6163
6164 test -n "$release" && \
6165 func_warning "\`-release' is ignored for convenience libraries"
6166 else
6167
6168 # Parse the version information argument.
6169 save_ifs="$IFS"; IFS=':'
6170 set dummy $vinfo 0 0 0
6171 shift
6172 IFS="$save_ifs"
6173
6174 test -n "$7" && \
6175 func_fatal_help "too many parameters to \`-version-info'"
6176
6177 # convert absolute version numbers to libtool ages
6178 # this retains compatibility with .la files and attempts
6179 # to make the code below a bit more comprehensible
6180
6181 case $vinfo_number in
6182 yes)
6183 number_major="$1"
6184 number_minor="$2"
6185 number_revision="$3"
6186 #
6187 # There are really only two kinds -- those that
6188 # use the current revision as the major version
6189 # and those that subtract age and use age as
6190 # a minor version. But, then there is irix
6191 # which has an extra 1 added just for fun
6192 #
6193 case $version_type in
6194 darwin|linux|osf|windows|none)
6195 func_arith $number_major + $number_minor
6196 current=$func_arith_result
6197 age="$number_minor"
6198 revision="$number_revision"
6199 ;;
6200 freebsd-aout|freebsd-elf|sunos)
6201 current="$number_major"
6202 revision="$number_minor"
6203 age="0"
6204 ;;
6205 irix|nonstopux)
6206 func_arith $number_major + $number_minor
6207 current=$func_arith_result
6208 age="$number_minor"
6209 revision="$number_minor"
6210 lt_irix_increment=no
6211 ;;
6212 *)
6213 func_fatal_configuration "$modename: unknown library version type \`$version_type'"
6214 ;;
6215 esac
6216 ;;
6217 no)
6218 current="$1"
6219 revision="$2"
6220 age="$3"
6221 ;;
6222 esac
6223
6224 # Check that each of the things are valid numbers.
6225 case $current in
6226 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
6227 *)
6228 func_error "CURRENT \`$current' must be a nonnegative integer"
6229 func_fatal_error "\`$vinfo' is not valid version information"
6230 ;;
6231 esac
6232
6233 case $revision in
6234 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
6235 *)
6236 func_error "REVISION \`$revision' must be a nonnegative integer"
6237 func_fatal_error "\`$vinfo' is not valid version information"
6238 ;;
6239 esac
6240
6241 case $age in
6242 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
6243 *)
6244 func_error "AGE \`$age' must be a nonnegative integer"
6245 func_fatal_error "\`$vinfo' is not valid version information"
6246 ;;
6247 esac
6248
6249 if test "$age" -gt "$current"; then
6250 func_error "AGE \`$age' is greater than the current interface number \`$current'"
6251 func_fatal_error "\`$vinfo' is not valid version information"
6252 fi
6253
6254 # Calculate the version variables.
6255 major=
6256 versuffix=
6257 verstring=
6258 case $version_type in
6259 none) ;;
6260
6261 darwin)
6262 # Like Linux, but with the current version available in
6263 # verstring for coding it into the library header
6264 func_arith $current - $age
6265 major=.$func_arith_result
6266 versuffix="$major.$age.$revision"
6267 # Darwin ld doesn't like 0 for these options...
6268 func_arith $current + 1
6269 minor_current=$func_arith_result
6270 xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
6271 verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
6272 ;;
6273
6274 freebsd-aout)
6275 major=".$current"
6276 versuffix=".$current.$revision";
6277 ;;
6278
6279 freebsd-elf)
6280 major=".$current"
6281 versuffix=".$current"
6282 ;;
6283
6284 irix | nonstopux)
6285 if test "X$lt_irix_increment" = "Xno"; then
6286 func_arith $current - $age
6287 else
6288 func_arith $current - $age + 1
6289 fi
6290 major=$func_arith_result
6291
6292 case $version_type in
6293 nonstopux) verstring_prefix=nonstopux ;;
6294 *) verstring_prefix=sgi ;;
6295 esac
6296 verstring="$verstring_prefix$major.$revision"
6297
6298 # Add in all the interfaces that we are compatible with.
6299 loop=$revision
6300 while test "$loop" -ne 0; do
6301 func_arith $revision - $loop
6302 iface=$func_arith_result
6303 func_arith $loop - 1
6304 loop=$func_arith_result
6305 verstring="$verstring_prefix$major.$iface:$verstring"
6306 done
6307
6308 # Before this point, $major must not contain `.'.
6309 major=.$major
6310 versuffix="$major.$revision"
6311 ;;
6312
6313 linux)
6314 func_arith $current - $age
6315 major=.$func_arith_result
6316 versuffix="$major.$age.$revision"
6317 ;;
6318
6319 osf)
6320 func_arith $current - $age
6321 major=.$func_arith_result
6322 versuffix=".$current.$age.$revision"
6323 verstring="$current.$age.$revision"
6324
6325 # Add in all the interfaces that we are compatible with.
6326 loop=$age
6327 while test "$loop" -ne 0; do
6328 func_arith $current - $loop
6329 iface=$func_arith_result
6330 func_arith $loop - 1
6331 loop=$func_arith_result
6332 verstring="$verstring:${iface}.0"
6333 done
6334
6335 # Make executables depend on our current version.
6336 verstring="$verstring:${current}.0"
6337 ;;
6338
6339 qnx)
6340 major=".$current"
6341 versuffix=".$current"
6342 ;;
6343
6344 sunos)
6345 major=".$current"
6346 versuffix=".$current.$revision"
6347 ;;
6348
6349 windows)
6350 # Use '-' rather than '.', since we only want one
6351 # extension on DOS 8.3 filesystems.
6352 func_arith $current - $age
6353 major=$func_arith_result
6354 versuffix="-$major"
6355 ;;
6356
6357 *)
6358 func_fatal_configuration "unknown library version type \`$version_type'"
6359 ;;
6360 esac
6361
6362 # Clear the version info if we defaulted, and they specified a release.
6363 if test -z "$vinfo" && test -n "$release"; then
6364 major=
6365 case $version_type in
6366 darwin)
6367 # we can't check for "0.0" in archive_cmds due to quoting
6368 # problems, so we reset it completely
6369 verstring=
6370 ;;
6371 *)
6372 verstring="0.0"
6373 ;;
6374 esac
6375 if test "$need_version" = no; then
6376 versuffix=
6377 else
6378 versuffix=".0.0"
6379 fi
6380 fi
6381
6382 # Remove version info from name if versioning should be avoided
6383 if test "$avoid_version" = yes && test "$need_version" = no; then
6384 major=
6385 versuffix=
6386 verstring=""
6387 fi
6388
6389 # Check to see if the archive will have undefined symbols.
6390 if test "$allow_undefined" = yes; then
6391 if test "$allow_undefined_flag" = unsupported; then
6392 func_warning "undefined symbols not allowed in $host shared libraries"
6393 build_libtool_libs=no
6394 build_old_libs=yes
6395 fi
6396 else
6397 # Don't allow undefined symbols.
6398 allow_undefined_flag="$no_undefined_flag"
6399 fi
6400
6401 fi
6402
6403 func_generate_dlsyms "$libname" "$libname" "yes"
6404 libobjs="$libobjs $symfileobj"
6405 test "X$libobjs" = "X " && libobjs=
6406
6407 if test "$mode" != relink; then
6408 # Remove our outputs, but don't remove object files since they
6409 # may have been created when compiling PIC objects.
6410 removelist=
6411 tempremovelist=`$ECHO "$output_objdir/*"`
6412 for p in $tempremovelist; do
6413 case $p in
6414 *.$objext | *.gcno)
6415 ;;
6416 $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
6417 if test "X$precious_files_regex" != "X"; then
6418 if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
6419 then
6420 continue
6421 fi
6422 fi
6423 removelist="$removelist $p"
6424 ;;
6425 *) ;;
6426 esac
6427 done
6428 test -n "$removelist" && \
6429 func_show_eval "${RM}r \$removelist"
6430 fi
6431
6432 # Now set the variables for building old libraries.
6433 if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
6434 oldlibs="$oldlibs $output_objdir/$libname.$libext"
6435
6436 # Transform .lo files to .o files.
6437 oldobjs="$objs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
6438 fi
6439
6440 # Eliminate all temporary directories.
6441 #for path in $notinst_path; do
6442 # lib_search_path=`$ECHO "X$lib_search_path " | $Xsed -e "s% $path % %g"`
6443 # deplibs=`$ECHO "X$deplibs " | $Xsed -e "s% -L$path % %g"`
6444 # dependency_libs=`$ECHO "X$dependency_libs " | $Xsed -e "s% -L$path % %g"`
6445 #done
6446
6447 if test -n "$xrpath"; then
6448 # If the user specified any rpath flags, then add them.
6449 temp_xrpath=
6450 for libdir in $xrpath; do
6451 temp_xrpath="$temp_xrpath -R$libdir"
6452 case "$finalize_rpath " in
6453 *" $libdir "*) ;;
6454 *) finalize_rpath="$finalize_rpath $libdir" ;;
6455 esac
6456 done
6457 if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
6458 dependency_libs="$temp_xrpath $dependency_libs"
6459 fi
6460 fi
6461
6462 # Make sure dlfiles contains only unique files that won't be dlpreopened
6463 old_dlfiles="$dlfiles"
6464 dlfiles=
6465 for lib in $old_dlfiles; do
6466 case " $dlprefiles $dlfiles " in
6467 *" $lib "*) ;;
6468 *) dlfiles="$dlfiles $lib" ;;
6469 esac
6470 done
6471
6472 # Make sure dlprefiles contains only unique files
6473 old_dlprefiles="$dlprefiles"
6474 dlprefiles=
6475 for lib in $old_dlprefiles; do
6476 case "$dlprefiles " in
6477 *" $lib "*) ;;
6478 *) dlprefiles="$dlprefiles $lib" ;;
6479 esac
6480 done
6481
6482 if test "$build_libtool_libs" = yes; then
6483 if test -n "$rpath"; then
6484 case $host in
6485 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc*)
6486 # these systems don't actually have a c library (as such)!
6487 ;;
6488 *-*-rhapsody* | *-*-darwin1.[012])
6489 # Rhapsody C library is in the System framework
6490 deplibs="$deplibs System.ltframework"
6491 ;;
6492 *-*-netbsd*)
6493 # Don't link with libc until the a.out ld.so is fixed.
6494 ;;
6495 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
6496 # Do not include libc due to us having libc/libc_r.
6497 ;;
6498 *-*-sco3.2v5* | *-*-sco5v6*)
6499 # Causes problems with __ctype
6500 ;;
6501 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
6502 # Compiler inserts libc in the correct place for threads to work
6503 ;;
6504 *)
6505 # Add libc to deplibs on all other systems if necessary.
6506 if test "$build_libtool_need_lc" = "yes"; then
6507 deplibs="$deplibs -lc"
6508 fi
6509 ;;
6510 esac
6511 fi
6512
6513 # Transform deplibs into only deplibs that can be linked in shared.
6514 name_save=$name
6515 libname_save=$libname
6516 release_save=$release
6517 versuffix_save=$versuffix
6518 major_save=$major
6519 # I'm not sure if I'm treating the release correctly. I think
6520 # release should show up in the -l (ie -lgmp5) so we don't want to
6521 # add it in twice. Is that correct?
6522 release=""
6523 versuffix=""
6524 major=""
6525 newdeplibs=
6526 droppeddeps=no
6527 case $deplibs_check_method in
6528 pass_all)
6529 # Don't check for shared/static. Everything works.
6530 # This might be a little naive. We might want to check
6531 # whether the library exists or not. But this is on
6532 # osf3 & osf4 and I'm not really sure... Just
6533 # implementing what was already the behavior.
6534 newdeplibs=$deplibs
6535 ;;
6536 test_compile)
6537 # This code stresses the "libraries are programs" paradigm to its
6538 # limits. Maybe even breaks it. We compile a program, linking it
6539 # against the deplibs as a proxy for the library. Then we can check
6540 # whether they linked in statically or dynamically with ldd.
6541 $opt_dry_run || $RM conftest.c
6542 cat > conftest.c <<EOF
6543 int main() { return 0; }
6544 EOF
6545 $opt_dry_run || $RM conftest
6546 if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
6547 ldd_output=`ldd conftest`
6548 for i in $deplibs; do
6549 case $i in
6550 -l*)
6551 func_stripname -l '' "$i"
6552 name=$func_stripname_result
6553 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
6554 case " $predeps $postdeps " in
6555 *" $i "*)
6556 newdeplibs="$newdeplibs $i"
6557 i=""
6558 ;;
6559 esac
6560 fi
6561 if test -n "$i" ; then
6562 libname=`eval "\\$ECHO \"$libname_spec\""`
6563 deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
6564 set dummy $deplib_matches; shift
6565 deplib_match=$1
6566 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
6567 newdeplibs="$newdeplibs $i"
6568 else
6569 droppeddeps=yes
6570 $ECHO
6571 $ECHO "*** Warning: dynamic linker does not accept needed library $i."
6572 $ECHO "*** I have the capability to make that library automatically link in when"
6573 $ECHO "*** you link to this library. But I can only do this if you have a"
6574 $ECHO "*** shared version of the library, which I believe you do not have"
6575 $ECHO "*** because a test_compile did reveal that the linker did not use it for"
6576 $ECHO "*** its dynamic dependency list that programs get resolved with at runtime."
6577 fi
6578 fi
6579 ;;
6580 *)
6581 newdeplibs="$newdeplibs $i"
6582 ;;
6583 esac
6584 done
6585 else
6586 # Error occurred in the first compile. Let's try to salvage
6587 # the situation: Compile a separate program for each library.
6588 for i in $deplibs; do
6589 case $i in
6590 -l*)
6591 func_stripname -l '' "$i"
6592 name=$func_stripname_result
6593 $opt_dry_run || $RM conftest
6594 if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
6595 ldd_output=`ldd conftest`
6596 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
6597 case " $predeps $postdeps " in
6598 *" $i "*)
6599 newdeplibs="$newdeplibs $i"
6600 i=""
6601 ;;
6602 esac
6603 fi
6604 if test -n "$i" ; then
6605 libname=`eval "\\$ECHO \"$libname_spec\""`
6606 deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
6607 set dummy $deplib_matches; shift
6608 deplib_match=$1
6609 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
6610 newdeplibs="$newdeplibs $i"
6611 else
6612 droppeddeps=yes
6613 $ECHO
6614 $ECHO "*** Warning: dynamic linker does not accept needed library $i."
6615 $ECHO "*** I have the capability to make that library automatically link in when"
6616 $ECHO "*** you link to this library. But I can only do this if you have a"
6617 $ECHO "*** shared version of the library, which you do not appear to have"
6618 $ECHO "*** because a test_compile did reveal that the linker did not use this one"
6619 $ECHO "*** as a dynamic dependency that programs can get resolved with at runtime."
6620 fi
6621 fi
6622 else
6623 droppeddeps=yes
6624 $ECHO
6625 $ECHO "*** Warning! Library $i is needed by this library but I was not able to"
6626 $ECHO "*** make it link in! You will probably need to install it or some"
6627 $ECHO "*** library that it depends on before this library will be fully"
6628 $ECHO "*** functional. Installing it before continuing would be even better."
6629 fi
6630 ;;
6631 *)
6632 newdeplibs="$newdeplibs $i"
6633 ;;
6634 esac
6635 done
6636 fi
6637 ;;
6638 file_magic*)
6639 set dummy $deplibs_check_method; shift
6640 file_magic_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
6641 for a_deplib in $deplibs; do
6642 case $a_deplib in
6643 -l*)
6644 func_stripname -l '' "$a_deplib"
6645 name=$func_stripname_result
6646 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
6647 case " $predeps $postdeps " in
6648 *" $a_deplib "*)
6649 newdeplibs="$newdeplibs $a_deplib"
6650 a_deplib=""
6651 ;;
6652 esac
6653 fi
6654 if test -n "$a_deplib" ; then
6655 libname=`eval "\\$ECHO \"$libname_spec\""`
6656 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
6657 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
6658 for potent_lib in $potential_libs; do
6659 # Follow soft links.
6660 if ls -lLd "$potent_lib" 2>/dev/null |
6661 $GREP " -> " >/dev/null; then
6662 continue
6663 fi
6664 # The statement above tries to avoid entering an
6665 # endless loop below, in case of cyclic links.
6666 # We might still enter an endless loop, since a link
6667 # loop can be closed while we follow links,
6668 # but so what?
6669 potlib="$potent_lib"
6670 while test -h "$potlib" 2>/dev/null; do
6671 potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
6672 case $potliblink in
6673 [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
6674 *) potlib=`$ECHO "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
6675 esac
6676 done
6677 if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
6678 $SED -e 10q |
6679 $EGREP "$file_magic_regex" > /dev/null; then
6680 newdeplibs="$newdeplibs $a_deplib"
6681 a_deplib=""
6682 break 2
6683 fi
6684 done
6685 done
6686 fi
6687 if test -n "$a_deplib" ; then
6688 droppeddeps=yes
6689 $ECHO
6690 $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
6691 $ECHO "*** I have the capability to make that library automatically link in when"
6692 $ECHO "*** you link to this library. But I can only do this if you have a"
6693 $ECHO "*** shared version of the library, which you do not appear to have"
6694 $ECHO "*** because I did check the linker path looking for a file starting"
6695 if test -z "$potlib" ; then
6696 $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
6697 else
6698 $ECHO "*** with $libname and none of the candidates passed a file format test"
6699 $ECHO "*** using a file magic. Last file checked: $potlib"
6700 fi
6701 fi
6702 ;;
6703 *)
6704 # Add a -L argument.
6705 newdeplibs="$newdeplibs $a_deplib"
6706 ;;
6707 esac
6708 done # Gone through all deplibs.
6709 ;;
6710 match_pattern*)
6711 set dummy $deplibs_check_method; shift
6712 match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
6713 for a_deplib in $deplibs; do
6714 case $a_deplib in
6715 -l*)
6716 func_stripname -l '' "$a_deplib"
6717 name=$func_stripname_result
6718 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
6719 case " $predeps $postdeps " in
6720 *" $a_deplib "*)
6721 newdeplibs="$newdeplibs $a_deplib"
6722 a_deplib=""
6723 ;;
6724 esac
6725 fi
6726 if test -n "$a_deplib" ; then
6727 libname=`eval "\\$ECHO \"$libname_spec\""`
6728 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
6729 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
6730 for potent_lib in $potential_libs; do
6731 potlib="$potent_lib" # see symlink-check above in file_magic test
6732 if eval "\$ECHO \"X$potent_lib\"" 2>/dev/null | $Xsed -e 10q | \
6733 $EGREP "$match_pattern_regex" > /dev/null; then
6734 newdeplibs="$newdeplibs $a_deplib"
6735 a_deplib=""
6736 break 2
6737 fi
6738 done
6739 done
6740 fi
6741 if test -n "$a_deplib" ; then
6742 droppeddeps=yes
6743 $ECHO
6744 $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
6745 $ECHO "*** I have the capability to make that library automatically link in when"
6746 $ECHO "*** you link to this library. But I can only do this if you have a"
6747 $ECHO "*** shared version of the library, which you do not appear to have"
6748 $ECHO "*** because I did check the linker path looking for a file starting"
6749 if test -z "$potlib" ; then
6750 $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
6751 else
6752 $ECHO "*** with $libname and none of the candidates passed a file format test"
6753 $ECHO "*** using a regex pattern. Last file checked: $potlib"
6754 fi
6755 fi
6756 ;;
6757 *)
6758 # Add a -L argument.
6759 newdeplibs="$newdeplibs $a_deplib"
6760 ;;
6761 esac
6762 done # Gone through all deplibs.
6763 ;;
6764 none | unknown | *)
6765 newdeplibs=""
6766 tmp_deplibs=`$ECHO "X $deplibs" | $Xsed \
6767 -e 's/ -lc$//' -e 's/ -[LR][^ ]*//g'`
6768 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
6769 for i in $predeps $postdeps ; do
6770 # can't use Xsed below, because $i might contain '/'
6771 tmp_deplibs=`$ECHO "X $tmp_deplibs" | $Xsed -e "s,$i,,"`
6772 done
6773 fi
6774 if $ECHO "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' |
6775 $GREP . >/dev/null; then
6776 $ECHO
6777 if test "X$deplibs_check_method" = "Xnone"; then
6778 $ECHO "*** Warning: inter-library dependencies are not supported in this platform."
6779 else
6780 $ECHO "*** Warning: inter-library dependencies are not known to be supported."
6781 fi
6782 $ECHO "*** All declared inter-library dependencies are being dropped."
6783 droppeddeps=yes
6784 fi
6785 ;;
6786 esac
6787 versuffix=$versuffix_save
6788 major=$major_save
6789 release=$release_save
6790 libname=$libname_save
6791 name=$name_save
6792
6793 case $host in
6794 *-*-rhapsody* | *-*-darwin1.[012])
6795 # On Rhapsody replace the C library with the System framework
6796 newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
6797 ;;
6798 esac
6799
6800 if test "$droppeddeps" = yes; then
6801 if test "$module" = yes; then
6802 $ECHO
6803 $ECHO "*** Warning: libtool could not satisfy all declared inter-library"
6804 $ECHO "*** dependencies of module $libname. Therefore, libtool will create"
6805 $ECHO "*** a static module, that should work as long as the dlopening"
6806 $ECHO "*** application is linked with the -dlopen flag."
6807 if test -z "$global_symbol_pipe"; then
6808 $ECHO
6809 $ECHO "*** However, this would only work if libtool was able to extract symbol"
6810 $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
6811 $ECHO "*** not find such a program. So, this module is probably useless."
6812 $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
6813 fi
6814 if test "$build_old_libs" = no; then
6815 oldlibs="$output_objdir/$libname.$libext"
6816 build_libtool_libs=module
6817 build_old_libs=yes
6818 else
6819 build_libtool_libs=no
6820 fi
6821 else
6822 $ECHO "*** The inter-library dependencies that have been dropped here will be"
6823 $ECHO "*** automatically added whenever a program is linked with this library"
6824 $ECHO "*** or is declared to -dlopen it."
6825
6826 if test "$allow_undefined" = no; then
6827 $ECHO
6828 $ECHO "*** Since this library must not contain undefined symbols,"
6829 $ECHO "*** because either the platform does not support them or"
6830 $ECHO "*** it was explicitly requested with -no-undefined,"
6831 $ECHO "*** libtool will only create a static version of it."
6832 if test "$build_old_libs" = no; then
6833 oldlibs="$output_objdir/$libname.$libext"
6834 build_libtool_libs=module
6835 build_old_libs=yes
6836 else
6837 build_libtool_libs=no
6838 fi
6839 fi
6840 fi
6841 fi
6842 # Done checking deplibs!
6843 deplibs=$newdeplibs
6844 fi
6845 # Time to change all our "foo.ltframework" stuff back to "-framework foo"
6846 case $host in
6847 *-*-darwin*)
6848 newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
6849 new_inherited_linker_flags=`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
6850 deplibs=`$ECHO "X $deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
6851 ;;
6852 esac
6853
6854 # move library search paths that coincide with paths to not yet
6855 # installed libraries to the beginning of the library search list
6856 new_libs=
6857 for path in $notinst_path; do
6858 case " $new_libs " in
6859 *" -L$path/$objdir "*) ;;
6860 *)
6861 case " $deplibs " in
6862 *" -L$path/$objdir "*)
6863 new_libs="$new_libs -L$path/$objdir" ;;
6864 esac
6865 ;;
6866 esac
6867 done
6868 for deplib in $deplibs; do
6869 case $deplib in
6870 -L*)
6871 case " $new_libs " in
6872 *" $deplib "*) ;;
6873 *) new_libs="$new_libs $deplib" ;;
6874 esac
6875 ;;
6876 *) new_libs="$new_libs $deplib" ;;
6877 esac
6878 done
6879 deplibs="$new_libs"
6880
6881 # All the library-specific variables (install_libdir is set above).
6882 library_names=
6883 old_library=
6884 dlname=
6885
6886 # Test again, we may have decided not to build it any more
6887 if test "$build_libtool_libs" = yes; then
6888 if test "$hardcode_into_libs" = yes; then
6889 # Hardcode the library paths
6890 hardcode_libdirs=
6891 dep_rpath=
6892 rpath="$finalize_rpath"
6893 test "$mode" != relink && rpath="$compile_rpath$rpath"
6894 for libdir in $rpath; do
6895 if test -n "$hardcode_libdir_flag_spec"; then
6896 if test -n "$hardcode_libdir_separator"; then
6897 if test -z "$hardcode_libdirs"; then
6898 hardcode_libdirs="$libdir"
6899 else
6900 # Just accumulate the unique libdirs.
6901 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
6902 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
6903 ;;
6904 *)
6905 hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
6906 ;;
6907 esac
6908 fi
6909 else
6910 eval flag=\"$hardcode_libdir_flag_spec\"
6911 dep_rpath="$dep_rpath $flag"
6912 fi
6913 elif test -n "$runpath_var"; then
6914 case "$perm_rpath " in
6915 *" $libdir "*) ;;
6916 *) perm_rpath="$perm_rpath $libdir" ;;
6917 esac
6918 fi
6919 done
6920 # Substitute the hardcoded libdirs into the rpath.
6921 if test -n "$hardcode_libdir_separator" &&
6922 test -n "$hardcode_libdirs"; then
6923 libdir="$hardcode_libdirs"
6924 if test -n "$hardcode_libdir_flag_spec_ld"; then
6925 eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
6926 else
6927 eval dep_rpath=\"$hardcode_libdir_flag_spec\"
6928 fi
6929 fi
6930 if test -n "$runpath_var" && test -n "$perm_rpath"; then
6931 # We should set the runpath_var.
6932 rpath=
6933 for dir in $perm_rpath; do
6934 rpath="$rpath$dir:"
6935 done
6936 eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
6937 fi
6938 test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
6939 fi
6940
6941 shlibpath="$finalize_shlibpath"
6942 test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
6943 if test -n "$shlibpath"; then
6944 eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
6945 fi
6946
6947 # Get the real and link names of the library.
6948 eval shared_ext=\"$shrext_cmds\"
6949 eval library_names=\"$library_names_spec\"
6950 set dummy $library_names
6951 shift
6952 realname="$1"
6953 shift
6954
6955 if test -n "$soname_spec"; then
6956 eval soname=\"$soname_spec\"
6957 else
6958 soname="$realname"
6959 fi
6960 if test -z "$dlname"; then
6961 dlname=$soname
6962 fi
6963
6964 lib="$output_objdir/$realname"
6965 linknames=
6966 for link
6967 do
6968 linknames="$linknames $link"
6969 done
6970
6971 # Use standard objects if they are pic
6972 test -z "$pic_flag" && libobjs=`$ECHO "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
6973 test "X$libobjs" = "X " && libobjs=
6974
6975 delfiles=
6976 if test -n "$export_symbols" && test -n "$include_expsyms"; then
6977 $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
6978 export_symbols="$output_objdir/$libname.uexp"
6979 delfiles="$delfiles $export_symbols"
6980 fi
6981
6982 orig_export_symbols=
6983 case $host_os in
6984 cygwin* | mingw* | cegcc*)
6985 if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
6986 # exporting using user supplied symfile
6987 if test "x`$SED 1q $export_symbols`" != xEXPORTS; then
6988 # and it's NOT already a .def file. Must figure out
6989 # which of the given symbols are data symbols and tag
6990 # them as such. So, trigger use of export_symbols_cmds.
6991 # export_symbols gets reassigned inside the "prepare
6992 # the list of exported symbols" if statement, so the
6993 # include_expsyms logic still works.
6994 orig_export_symbols="$export_symbols"
6995 export_symbols=
6996 always_export_symbols=yes
6997 fi
6998 fi
6999 ;;
7000 esac
7001
7002 # Prepare the list of exported symbols
7003 if test -z "$export_symbols"; then
7004 if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
7005 func_verbose "generating symbol list for \`$libname.la'"
7006 export_symbols="$output_objdir/$libname.exp"
7007 $opt_dry_run || $RM $export_symbols
7008 cmds=$export_symbols_cmds
7009 save_ifs="$IFS"; IFS='~'
7010 for cmd in $cmds; do
7011 IFS="$save_ifs"
7012 eval cmd=\"$cmd\"
7013 func_len " $cmd"
7014 len=$func_len_result
7015 if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
7016 func_show_eval "$cmd" 'exit $?'
7017 skipped_export=false
7018 else
7019 # The command line is too long to execute in one step.
7020 func_verbose "using reloadable object file for export list..."
7021 skipped_export=:
7022 # Break out early, otherwise skipped_export may be
7023 # set to false by a later but shorter cmd.
7024 break
7025 fi
7026 done
7027 IFS="$save_ifs"
7028 if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then
7029 func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
7030 func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
7031 fi
7032 fi
7033 fi
7034
7035 if test -n "$export_symbols" && test -n "$include_expsyms"; then
7036 tmp_export_symbols="$export_symbols"
7037 test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
7038 $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
7039 fi
7040
7041 if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then
7042 # The given exports_symbols file has to be filtered, so filter it.
7043 func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
7044 # FIXME: $output_objdir/$libname.filter potentially contains lots of
7045 # 's' commands which not all seds can handle. GNU sed should be fine
7046 # though. Also, the filter scales superlinearly with the number of
7047 # global variables. join(1) would be nice here, but unfortunately
7048 # isn't a blessed tool.
7049 $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
7050 delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
7051 export_symbols=$output_objdir/$libname.def
7052 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
7053 fi
7054
7055 tmp_deplibs=
7056 for test_deplib in $deplibs; do
7057 case " $convenience " in
7058 *" $test_deplib "*) ;;
7059 *)
7060 tmp_deplibs="$tmp_deplibs $test_deplib"
7061 ;;
7062 esac
7063 done
7064 deplibs="$tmp_deplibs"
7065
7066 if test -n "$convenience"; then
7067 if test -n "$whole_archive_flag_spec" &&
7068 test "$compiler_needs_object" = yes &&
7069 test -z "$libobjs"; then
7070 # extract the archives, so we have objects to list.
7071 # TODO: could optimize this to just extract one archive.
7072 whole_archive_flag_spec=
7073 fi
7074 if test -n "$whole_archive_flag_spec"; then
7075 save_libobjs=$libobjs
7076 eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
7077 test "X$libobjs" = "X " && libobjs=
7078 else
7079 gentop="$output_objdir/${outputname}x"
7080 generated="$generated $gentop"
7081
7082 func_extract_archives $gentop $convenience
7083 libobjs="$libobjs $func_extract_archives_result"
7084 test "X$libobjs" = "X " && libobjs=
7085 fi
7086 fi
7087
7088 if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
7089 eval flag=\"$thread_safe_flag_spec\"
7090 linker_flags="$linker_flags $flag"
7091 fi
7092
7093 # Make a backup of the uninstalled library when relinking
7094 if test "$mode" = relink; then
7095 $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
7096 fi
7097
7098 # Do each of the archive commands.
7099 if test "$module" = yes && test -n "$module_cmds" ; then
7100 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
7101 eval test_cmds=\"$module_expsym_cmds\"
7102 cmds=$module_expsym_cmds
7103 else
7104 eval test_cmds=\"$module_cmds\"
7105 cmds=$module_cmds
7106 fi
7107 else
7108 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
7109 eval test_cmds=\"$archive_expsym_cmds\"
7110 cmds=$archive_expsym_cmds
7111 else
7112 eval test_cmds=\"$archive_cmds\"
7113 cmds=$archive_cmds
7114 fi
7115 fi
7116
7117 if test "X$skipped_export" != "X:" &&
7118 func_len " $test_cmds" &&
7119 len=$func_len_result &&
7120 test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
7121 :
7122 else
7123 # The command line is too long to link in one step, link piecewise
7124 # or, if using GNU ld and skipped_export is not :, use a linker
7125 # script.
7126
7127 # Save the value of $output and $libobjs because we want to
7128 # use them later. If we have whole_archive_flag_spec, we
7129 # want to use save_libobjs as it was before
7130 # whole_archive_flag_spec was expanded, because we can't
7131 # assume the linker understands whole_archive_flag_spec.
7132 # This may have to be revisited, in case too many
7133 # convenience libraries get linked in and end up exceeding
7134 # the spec.
7135 if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
7136 save_libobjs=$libobjs
7137 fi
7138 save_output=$output
7139 output_la=`$ECHO "X$output" | $Xsed -e "$basename"`
7140
7141 # Clear the reloadable object creation command queue and
7142 # initialize k to one.
7143 test_cmds=
7144 concat_cmds=
7145 objlist=
7146 last_robj=
7147 k=1
7148
7149 if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then
7150 output=${output_objdir}/${output_la}.lnkscript
7151 func_verbose "creating GNU ld script: $output"
7152 $ECHO 'INPUT (' > $output
7153 for obj in $save_libobjs
7154 do
7155 $ECHO "$obj" >> $output
7156 done
7157 $ECHO ')' >> $output
7158 delfiles="$delfiles $output"
7159 elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
7160 output=${output_objdir}/${output_la}.lnk
7161 func_verbose "creating linker input file list: $output"
7162 : > $output
7163 set x $save_libobjs
7164 shift
7165 firstobj=
7166 if test "$compiler_needs_object" = yes; then
7167 firstobj="$1 "
7168 shift
7169 fi
7170 for obj
7171 do
7172 $ECHO "$obj" >> $output
7173 done
7174 delfiles="$delfiles $output"
7175 output=$firstobj\"$file_list_spec$output\"
7176 else
7177 if test -n "$save_libobjs"; then
7178 func_verbose "creating reloadable object files..."
7179 output=$output_objdir/$output_la-${k}.$objext
7180 eval test_cmds=\"$reload_cmds\"
7181 func_len " $test_cmds"
7182 len0=$func_len_result
7183 len=$len0
7184
7185 # Loop over the list of objects to be linked.
7186 for obj in $save_libobjs
7187 do
7188 func_len " $obj"
7189 func_arith $len + $func_len_result
7190 len=$func_arith_result
7191 if test "X$objlist" = X ||
7192 test "$len" -lt "$max_cmd_len"; then
7193 func_append objlist " $obj"
7194 else
7195 # The command $test_cmds is almost too long, add a
7196 # command to the queue.
7197 if test "$k" -eq 1 ; then
7198 # The first file doesn't have a previous command to add.
7199 eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
7200 else
7201 # All subsequent reloadable object files will link in
7202 # the last one created.
7203 eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj~\$RM $last_robj\"
7204 fi
7205 last_robj=$output_objdir/$output_la-${k}.$objext
7206 func_arith $k + 1
7207 k=$func_arith_result
7208 output=$output_objdir/$output_la-${k}.$objext
7209 objlist=$obj
7210 func_len " $last_robj"
7211 func_arith $len0 + $func_len_result
7212 len=$func_arith_result
7213 fi
7214 done
7215 # Handle the remaining objects by creating one last
7216 # reloadable object file. All subsequent reloadable object
7217 # files will link in the last one created.
7218 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
7219 eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
7220 if test -n "$last_robj"; then
7221 eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"
7222 fi
7223 delfiles="$delfiles $output"
7224
7225 else
7226 output=
7227 fi
7228
7229 if ${skipped_export-false}; then
7230 func_verbose "generating symbol list for \`$libname.la'"
7231 export_symbols="$output_objdir/$libname.exp"
7232 $opt_dry_run || $RM $export_symbols
7233 libobjs=$output
7234 # Append the command to create the export file.
7235 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
7236 eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\"
7237 if test -n "$last_robj"; then
7238 eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
7239 fi
7240 fi
7241
7242 test -n "$save_libobjs" &&
7243 func_verbose "creating a temporary reloadable object file: $output"
7244
7245 # Loop through the commands generated above and execute them.
7246 save_ifs="$IFS"; IFS='~'
7247 for cmd in $concat_cmds; do
7248 IFS="$save_ifs"
7249 $opt_silent || {
7250 func_quote_for_expand "$cmd"
7251 eval "func_echo $func_quote_for_expand_result"
7252 }
7253 $opt_dry_run || eval "$cmd" || {
7254 lt_exit=$?
7255
7256 # Restore the uninstalled library and exit
7257 if test "$mode" = relink; then
7258 ( cd "$output_objdir" && \
7259 $RM "${realname}T" && \
7260 $MV "${realname}U" "$realname" )
7261 fi
7262
7263 exit $lt_exit
7264 }
7265 done
7266 IFS="$save_ifs"
7267
7268 if test -n "$export_symbols_regex" && ${skipped_export-false}; then
7269 func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
7270 func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
7271 fi
7272 fi
7273
7274 if ${skipped_export-false}; then
7275 if test -n "$export_symbols" && test -n "$include_expsyms"; then
7276 tmp_export_symbols="$export_symbols"
7277 test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
7278 $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
7279 fi
7280
7281 if test -n "$orig_export_symbols"; then
7282 # The given exports_symbols file has to be filtered, so filter it.
7283 func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
7284 # FIXME: $output_objdir/$libname.filter potentially contains lots of
7285 # 's' commands which not all seds can handle. GNU sed should be fine
7286 # though. Also, the filter scales superlinearly with the number of
7287 # global variables. join(1) would be nice here, but unfortunately
7288 # isn't a blessed tool.
7289 $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
7290 delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
7291 export_symbols=$output_objdir/$libname.def
7292 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
7293 fi
7294 fi
7295
7296 libobjs=$output
7297 # Restore the value of output.
7298 output=$save_output
7299
7300 if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
7301 eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
7302 test "X$libobjs" = "X " && libobjs=
7303 fi
7304 # Expand the library linking commands again to reset the
7305 # value of $libobjs for piecewise linking.
7306
7307 # Do each of the archive commands.
7308 if test "$module" = yes && test -n "$module_cmds" ; then
7309 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
7310 cmds=$module_expsym_cmds
7311 else
7312 cmds=$module_cmds
7313 fi
7314 else
7315 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
7316 cmds=$archive_expsym_cmds
7317 else
7318 cmds=$archive_cmds
7319 fi
7320 fi
7321 fi
7322
7323 if test -n "$delfiles"; then
7324 # Append the command to remove temporary files to $cmds.
7325 eval cmds=\"\$cmds~\$RM $delfiles\"
7326 fi
7327
7328 # Add any objects from preloaded convenience libraries
7329 if test -n "$dlprefiles"; then
7330 gentop="$output_objdir/${outputname}x"
7331 generated="$generated $gentop"
7332
7333 func_extract_archives $gentop $dlprefiles
7334 libobjs="$libobjs $func_extract_archives_result"
7335 test "X$libobjs" = "X " && libobjs=
7336 fi
7337
7338 save_ifs="$IFS"; IFS='~'
7339 for cmd in $cmds; do
7340 IFS="$save_ifs"
7341 eval cmd=\"$cmd\"
7342 $opt_silent || {
7343 func_quote_for_expand "$cmd"
7344 eval "func_echo $func_quote_for_expand_result"
7345 }
7346 $opt_dry_run || eval "$cmd" || {
7347 lt_exit=$?
7348
7349 # Restore the uninstalled library and exit
7350 if test "$mode" = relink; then
7351 ( cd "$output_objdir" && \
7352 $RM "${realname}T" && \
7353 $MV "${realname}U" "$realname" )
7354 fi
7355
7356 exit $lt_exit
7357 }
7358 done
7359 IFS="$save_ifs"
7360
7361 # Restore the uninstalled library and exit
7362 if test "$mode" = relink; then
7363 $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
7364
7365 if test -n "$convenience"; then
7366 if test -z "$whole_archive_flag_spec"; then
7367 func_show_eval '${RM}r "$gentop"'
7368 fi
7369 fi
7370
7371 exit $EXIT_SUCCESS
7372 fi
7373
7374 # Create links to the real library.
7375 for linkname in $linknames; do
7376 if test "$realname" != "$linkname"; then
7377 func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?'
7378 fi
7379 done
7380
7381 # If -module or -export-dynamic was specified, set the dlname.
7382 if test "$module" = yes || test "$export_dynamic" = yes; then
7383 # On all known operating systems, these are identical.
7384 dlname="$soname"
7385 fi
7386 fi
7387 ;;
7388
7389 obj)
7390 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
7391 func_warning "\`-dlopen' is ignored for objects"
7392 fi
7393
7394 case " $deplibs" in
7395 *\ -l* | *\ -L*)
7396 func_warning "\`-l' and \`-L' are ignored for objects" ;;
7397 esac
7398
7399 test -n "$rpath" && \
7400 func_warning "\`-rpath' is ignored for objects"
7401
7402 test -n "$xrpath" && \
7403 func_warning "\`-R' is ignored for objects"
7404
7405 test -n "$vinfo" && \
7406 func_warning "\`-version-info' is ignored for objects"
7407
7408 test -n "$release" && \
7409 func_warning "\`-release' is ignored for objects"
7410
7411 case $output in
7412 *.lo)
7413 test -n "$objs$old_deplibs" && \
7414 func_fatal_error "cannot build library object \`$output' from non-libtool objects"
7415
7416 libobj=$output
7417 func_lo2o "$libobj"
7418 obj=$func_lo2o_result
7419 ;;
7420 *)
7421 libobj=
7422 obj="$output"
7423 ;;
7424 esac
7425
7426 # Delete the old objects.
7427 $opt_dry_run || $RM $obj $libobj
7428
7429 # Objects from convenience libraries. This assumes
7430 # single-version convenience libraries. Whenever we create
7431 # different ones for PIC/non-PIC, this we'll have to duplicate
7432 # the extraction.
7433 reload_conv_objs=
7434 gentop=
7435 # reload_cmds runs $LD directly, so let us get rid of
7436 # -Wl from whole_archive_flag_spec and hope we can get by with
7437 # turning comma into space..
7438 wl=
7439
7440 if test -n "$convenience"; then
7441 if test -n "$whole_archive_flag_spec"; then
7442 eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
7443 reload_conv_objs=$reload_objs\ `$ECHO "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
7444 else
7445 gentop="$output_objdir/${obj}x"
7446 generated="$generated $gentop"
7447
7448 func_extract_archives $gentop $convenience
7449 reload_conv_objs="$reload_objs $func_extract_archives_result"
7450 fi
7451 fi
7452
7453 # Create the old-style object.
7454 reload_objs="$objs$old_deplibs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
7455
7456 output="$obj"
7457 func_execute_cmds "$reload_cmds" 'exit $?'
7458
7459 # Exit if we aren't doing a library object file.
7460 if test -z "$libobj"; then
7461 if test -n "$gentop"; then
7462 func_show_eval '${RM}r "$gentop"'
7463 fi
7464
7465 exit $EXIT_SUCCESS
7466 fi
7467
7468 if test "$build_libtool_libs" != yes; then
7469 if test -n "$gentop"; then
7470 func_show_eval '${RM}r "$gentop"'
7471 fi
7472
7473 # Create an invalid libtool object if no PIC, so that we don't
7474 # accidentally link it into a program.
7475 # $show "echo timestamp > $libobj"
7476 # $opt_dry_run || eval "echo timestamp > $libobj" || exit $?
7477 exit $EXIT_SUCCESS
7478 fi
7479
7480 if test -n "$pic_flag" || test "$pic_mode" != default; then
7481 # Only do commands if we really have different PIC objects.
7482 reload_objs="$libobjs $reload_conv_objs"
7483 output="$libobj"
7484 func_execute_cmds "$reload_cmds" 'exit $?'
7485 fi
7486
7487 if test -n "$gentop"; then
7488 func_show_eval '${RM}r "$gentop"'
7489 fi
7490
7491 exit $EXIT_SUCCESS
7492 ;;
7493
7494 prog)
7495 case $host in
7496 *cygwin*) func_stripname '' '.exe' "$output"
7497 output=$func_stripname_result.exe;;
7498 esac
7499 test -n "$vinfo" && \
7500 func_warning "\`-version-info' is ignored for programs"
7501
7502 test -n "$release" && \
7503 func_warning "\`-release' is ignored for programs"
7504
7505 test "$preload" = yes \
7506 && test "$dlopen_support" = unknown \
7507 && test "$dlopen_self" = unknown \
7508 && test "$dlopen_self_static" = unknown && \
7509 func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support."
7510
7511 case $host in
7512 *-*-rhapsody* | *-*-darwin1.[012])
7513 # On Rhapsody replace the C library is the System framework
7514 compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
7515 finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
7516 ;;
7517 esac
7518
7519 case $host in
7520 *-*-darwin*)
7521 # Don't allow lazy linking, it breaks C++ global constructors
7522 # But is supposedly fixed on 10.4 or later (yay!).
7523 if test "$tagname" = CXX ; then
7524 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7525 10.[0123])
7526 compile_command="$compile_command ${wl}-bind_at_load"
7527 finalize_command="$finalize_command ${wl}-bind_at_load"
7528 ;;
7529 esac
7530 fi
7531 # Time to change all our "foo.ltframework" stuff back to "-framework foo"
7532 compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
7533 finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
7534 ;;
7535 esac
7536
7537
7538 # move library search paths that coincide with paths to not yet
7539 # installed libraries to the beginning of the library search list
7540 new_libs=
7541 for path in $notinst_path; do
7542 case " $new_libs " in
7543 *" -L$path/$objdir "*) ;;
7544 *)
7545 case " $compile_deplibs " in
7546 *" -L$path/$objdir "*)
7547 new_libs="$new_libs -L$path/$objdir" ;;
7548 esac
7549 ;;
7550 esac
7551 done
7552 for deplib in $compile_deplibs; do
7553 case $deplib in
7554 -L*)
7555 case " $new_libs " in
7556 *" $deplib "*) ;;
7557 *) new_libs="$new_libs $deplib" ;;
7558 esac
7559 ;;
7560 *) new_libs="$new_libs $deplib" ;;
7561 esac
7562 done
7563 compile_deplibs="$new_libs"
7564
7565
7566 compile_command="$compile_command $compile_deplibs"
7567 finalize_command="$finalize_command $finalize_deplibs"
7568
7569 if test -n "$rpath$xrpath"; then
7570 # If the user specified any rpath flags, then add them.
7571 for libdir in $rpath $xrpath; do
7572 # This is the magic to use -rpath.
7573 case "$finalize_rpath " in
7574 *" $libdir "*) ;;
7575 *) finalize_rpath="$finalize_rpath $libdir" ;;
7576 esac
7577 done
7578 fi
7579
7580 # Now hardcode the library paths
7581 rpath=
7582 hardcode_libdirs=
7583 for libdir in $compile_rpath $finalize_rpath; do
7584 if test -n "$hardcode_libdir_flag_spec"; then
7585 if test -n "$hardcode_libdir_separator"; then
7586 if test -z "$hardcode_libdirs"; then
7587 hardcode_libdirs="$libdir"
7588 else
7589 # Just accumulate the unique libdirs.
7590 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
7591 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
7592 ;;
7593 *)
7594 hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
7595 ;;
7596 esac
7597 fi
7598 else
7599 eval flag=\"$hardcode_libdir_flag_spec\"
7600 rpath="$rpath $flag"
7601 fi
7602 elif test -n "$runpath_var"; then
7603 case "$perm_rpath " in
7604 *" $libdir "*) ;;
7605 *) perm_rpath="$perm_rpath $libdir" ;;
7606 esac
7607 fi
7608 case $host in
7609 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
7610 testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'`
7611 case :$dllsearchpath: in
7612 *":$libdir:"*) ;;
7613 ::) dllsearchpath=$libdir;;
7614 *) dllsearchpath="$dllsearchpath:$libdir";;
7615 esac
7616 case :$dllsearchpath: in
7617 *":$testbindir:"*) ;;
7618 ::) dllsearchpath=$testbindir;;
7619 *) dllsearchpath="$dllsearchpath:$testbindir";;
7620 esac
7621 ;;
7622 esac
7623 done
7624 # Substitute the hardcoded libdirs into the rpath.
7625 if test -n "$hardcode_libdir_separator" &&
7626 test -n "$hardcode_libdirs"; then
7627 libdir="$hardcode_libdirs"
7628 eval rpath=\" $hardcode_libdir_flag_spec\"
7629 fi
7630 compile_rpath="$rpath"
7631
7632 rpath=
7633 hardcode_libdirs=
7634 for libdir in $finalize_rpath; do
7635 if test -n "$hardcode_libdir_flag_spec"; then
7636 if test -n "$hardcode_libdir_separator"; then
7637 if test -z "$hardcode_libdirs"; then
7638 hardcode_libdirs="$libdir"
7639 else
7640 # Just accumulate the unique libdirs.
7641 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
7642 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
7643 ;;
7644 *)
7645 hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
7646 ;;
7647 esac
7648 fi
7649 else
7650 eval flag=\"$hardcode_libdir_flag_spec\"
7651 rpath="$rpath $flag"
7652 fi
7653 elif test -n "$runpath_var"; then
7654 case "$finalize_perm_rpath " in
7655 *" $libdir "*) ;;
7656 *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
7657 esac
7658 fi
7659 done
7660 # Substitute the hardcoded libdirs into the rpath.
7661 if test -n "$hardcode_libdir_separator" &&
7662 test -n "$hardcode_libdirs"; then
7663 libdir="$hardcode_libdirs"
7664 eval rpath=\" $hardcode_libdir_flag_spec\"
7665 fi
7666 finalize_rpath="$rpath"
7667
7668 if test -n "$libobjs" && test "$build_old_libs" = yes; then
7669 # Transform all the library objects into standard objects.
7670 compile_command=`$ECHO "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
7671 finalize_command=`$ECHO "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
7672 fi
7673
7674 func_generate_dlsyms "$outputname" "@PROGRAM@" "no"
7675
7676 # template prelinking step
7677 if test -n "$prelink_cmds"; then
7678 func_execute_cmds "$prelink_cmds" 'exit $?'
7679 fi
7680
7681 wrappers_required=yes
7682 case $host in
7683 *cygwin* | *mingw* )
7684 if test "$build_libtool_libs" != yes; then
7685 wrappers_required=no
7686 fi
7687 ;;
7688 *cegcc)
7689 # Disable wrappers for cegcc, we are cross compiling anyway.
7690 wrappers_required=no
7691 ;;
7692 *)
7693 if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
7694 wrappers_required=no
7695 fi
7696 ;;
7697 esac
7698 if test "$wrappers_required" = no; then
7699 # Replace the output file specification.
7700 compile_command=`$ECHO "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
7701 link_command="$compile_command$compile_rpath"
7702
7703 # We have no uninstalled library dependencies, so finalize right now.
7704 exit_status=0
7705 func_show_eval "$link_command" 'exit_status=$?'
7706
7707 # Delete the generated files.
7708 if test -f "$output_objdir/${outputname}S.${objext}"; then
7709 func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"'
7710 fi
7711
7712 exit $exit_status
7713 fi
7714
7715 if test -n "$compile_shlibpath$finalize_shlibpath"; then
7716 compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
7717 fi
7718 if test -n "$finalize_shlibpath"; then
7719 finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
7720 fi
7721
7722 compile_var=
7723 finalize_var=
7724 if test -n "$runpath_var"; then
7725 if test -n "$perm_rpath"; then
7726 # We should set the runpath_var.
7727 rpath=
7728 for dir in $perm_rpath; do
7729 rpath="$rpath$dir:"
7730 done
7731 compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
7732 fi
7733 if test -n "$finalize_perm_rpath"; then
7734 # We should set the runpath_var.
7735 rpath=
7736 for dir in $finalize_perm_rpath; do
7737 rpath="$rpath$dir:"
7738 done
7739 finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
7740 fi
7741 fi
7742
7743 if test "$no_install" = yes; then
7744 # We don't need to create a wrapper script.
7745 link_command="$compile_var$compile_command$compile_rpath"
7746 # Replace the output file specification.
7747 link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
7748 # Delete the old output file.
7749 $opt_dry_run || $RM $output
7750 # Link the executable and exit
7751 func_show_eval "$link_command" 'exit $?'
7752 exit $EXIT_SUCCESS
7753 fi
7754
7755 if test "$hardcode_action" = relink; then
7756 # Fast installation is not supported
7757 link_command="$compile_var$compile_command$compile_rpath"
7758 relink_command="$finalize_var$finalize_command$finalize_rpath"
7759
7760 func_warning "this platform does not like uninstalled shared libraries"
7761 func_warning "\`$output' will be relinked during installation"
7762 else
7763 if test "$fast_install" != no; then
7764 link_command="$finalize_var$compile_command$finalize_rpath"
7765 if test "$fast_install" = yes; then
7766 relink_command=`$ECHO "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
7767 else
7768 # fast_install is set to needless
7769 relink_command=
7770 fi
7771 else
7772 link_command="$compile_var$compile_command$compile_rpath"
7773 relink_command="$finalize_var$finalize_command$finalize_rpath"
7774 fi
7775 fi
7776
7777 # Replace the output file specification.
7778 link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
7779
7780 # Delete the old output files.
7781 $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
7782
7783 func_show_eval "$link_command" 'exit $?'
7784
7785 # Now create the wrapper script.
7786 func_verbose "creating $output"
7787
7788 # Quote the relink command for shipping.
7789 if test -n "$relink_command"; then
7790 # Preserve any variables that may affect compiler behavior
7791 for var in $variables_saved_for_relink; do
7792 if eval test -z \"\${$var+set}\"; then
7793 relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
7794 elif eval var_value=\$$var; test -z "$var_value"; then
7795 relink_command="$var=; export $var; $relink_command"
7796 else
7797 func_quote_for_eval "$var_value"
7798 relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
7799 fi
7800 done
7801 relink_command="(cd `pwd`; $relink_command)"
7802 relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
7803 fi
7804
7805 # Quote $ECHO for shipping.
7806 if test "X$ECHO" = "X$SHELL $progpath --fallback-echo"; then
7807 case $progpath in
7808 [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
7809 *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
7810 esac
7811 qecho=`$ECHO "X$qecho" | $Xsed -e "$sed_quote_subst"`
7812 else
7813 qecho=`$ECHO "X$ECHO" | $Xsed -e "$sed_quote_subst"`
7814 fi
7815
7816 # Only actually do things if not in dry run mode.
7817 $opt_dry_run || {
7818 # win32 will think the script is a binary if it has
7819 # a .exe suffix, so we strip it off here.
7820 case $output in
7821 *.exe) func_stripname '' '.exe' "$output"
7822 output=$func_stripname_result ;;
7823 esac
7824 # test for cygwin because mv fails w/o .exe extensions
7825 case $host in
7826 *cygwin*)
7827 exeext=.exe
7828 func_stripname '' '.exe' "$outputname"
7829 outputname=$func_stripname_result ;;
7830 *) exeext= ;;
7831 esac
7832 case $host in
7833 *cygwin* | *mingw* )
7834 func_dirname_and_basename "$output" "" "."
7835 output_name=$func_basename_result
7836 output_path=$func_dirname_result
7837 cwrappersource="$output_path/$objdir/lt-$output_name.c"
7838 cwrapper="$output_path/$output_name.exe"
7839 $RM $cwrappersource $cwrapper
7840 trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
7841
7842 func_emit_cwrapperexe_src > $cwrappersource
7843
7844 # The wrapper executable is built using the $host compiler,
7845 # because it contains $host paths and files. If cross-
7846 # compiling, it, like the target executable, must be
7847 # executed on the $host or under an emulation environment.
7848 $opt_dry_run || {
7849 $LTCC $LTCFLAGS -o $cwrapper $cwrappersource
7850 $STRIP $cwrapper
7851 }
7852
7853 # Now, create the wrapper script for func_source use:
7854 func_ltwrapper_scriptname $cwrapper
7855 $RM $func_ltwrapper_scriptname_result
7856 trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15
7857 $opt_dry_run || {
7858 # note: this script will not be executed, so do not chmod.
7859 if test "x$build" = "x$host" ; then
7860 $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
7861 else
7862 func_emit_wrapper no > $func_ltwrapper_scriptname_result
7863 fi
7864 }
7865 ;;
7866 * )
7867 $RM $output
7868 trap "$RM $output; exit $EXIT_FAILURE" 1 2 15
7869
7870 func_emit_wrapper no > $output
7871 chmod +x $output
7872 ;;
7873 esac
7874 }
7875 exit $EXIT_SUCCESS
7876 ;;
7877 esac
7878
7879 # See if we need to build an old-fashioned archive.
7880 for oldlib in $oldlibs; do
7881
7882 if test "$build_libtool_libs" = convenience; then
7883 oldobjs="$libobjs_save $symfileobj"
7884 addlibs="$convenience"
7885 build_libtool_libs=no
7886 else
7887 if test "$build_libtool_libs" = module; then
7888 oldobjs="$libobjs_save"
7889 build_libtool_libs=no
7890 else
7891 oldobjs="$old_deplibs $non_pic_objects"
7892 if test "$preload" = yes && test -f "$symfileobj"; then
7893 oldobjs="$oldobjs $symfileobj"
7894 fi
7895 fi
7896 addlibs="$old_convenience"
7897 fi
7898
7899 if test -n "$addlibs"; then
7900 gentop="$output_objdir/${outputname}x"
7901 generated="$generated $gentop"
7902
7903 func_extract_archives $gentop $addlibs
7904 oldobjs="$oldobjs $func_extract_archives_result"
7905 fi
7906
7907 # Do each command in the archive commands.
7908 if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
7909 cmds=$old_archive_from_new_cmds
7910 else
7911
7912 # Add any objects from preloaded convenience libraries
7913 if test -n "$dlprefiles"; then
7914 gentop="$output_objdir/${outputname}x"
7915 generated="$generated $gentop"
7916
7917 func_extract_archives $gentop $dlprefiles
7918 oldobjs="$oldobjs $func_extract_archives_result"
7919 fi
7920
7921 # POSIX demands no paths to be encoded in archives. We have
7922 # to avoid creating archives with duplicate basenames if we
7923 # might have to extract them afterwards, e.g., when creating a
7924 # static archive out of a convenience library, or when linking
7925 # the entirety of a libtool archive into another (currently
7926 # not supported by libtool).
7927 if (for obj in $oldobjs
7928 do
7929 func_basename "$obj"
7930 $ECHO "$func_basename_result"
7931 done | sort | sort -uc >/dev/null 2>&1); then
7932 :
7933 else
7934 $ECHO "copying selected object files to avoid basename conflicts..."
7935 gentop="$output_objdir/${outputname}x"
7936 generated="$generated $gentop"
7937 func_mkdir_p "$gentop"
7938 save_oldobjs=$oldobjs
7939 oldobjs=
7940 counter=1
7941 for obj in $save_oldobjs
7942 do
7943 func_basename "$obj"
7944 objbase="$func_basename_result"
7945 case " $oldobjs " in
7946 " ") oldobjs=$obj ;;
7947 *[\ /]"$objbase "*)
7948 while :; do
7949 # Make sure we don't pick an alternate name that also
7950 # overlaps.
7951 newobj=lt$counter-$objbase
7952 func_arith $counter + 1
7953 counter=$func_arith_result
7954 case " $oldobjs " in
7955 *[\ /]"$newobj "*) ;;
7956 *) if test ! -f "$gentop/$newobj"; then break; fi ;;
7957 esac
7958 done
7959 func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
7960 oldobjs="$oldobjs $gentop/$newobj"
7961 ;;
7962 *) oldobjs="$oldobjs $obj" ;;
7963 esac
7964 done
7965 fi
7966 eval cmds=\"$old_archive_cmds\"
7967
7968 func_len " $cmds"
7969 len=$func_len_result
7970 if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
7971 cmds=$old_archive_cmds
7972 else
7973 # the command line is too long to link in one step, link in parts
7974 func_verbose "using piecewise archive linking..."
7975 save_RANLIB=$RANLIB
7976 RANLIB=:
7977 objlist=
7978 concat_cmds=
7979 save_oldobjs=$oldobjs
7980 oldobjs=
7981 # Is there a better way of finding the last object in the list?
7982 for obj in $save_oldobjs
7983 do
7984 last_oldobj=$obj
7985 done
7986 eval test_cmds=\"$old_archive_cmds\"
7987 func_len " $test_cmds"
7988 len0=$func_len_result
7989 len=$len0
7990 for obj in $save_oldobjs
7991 do
7992 func_len " $obj"
7993 func_arith $len + $func_len_result
7994 len=$func_arith_result
7995 func_append objlist " $obj"
7996 if test "$len" -lt "$max_cmd_len"; then
7997 :
7998 else
7999 # the above command should be used before it gets too long
8000 oldobjs=$objlist
8001 if test "$obj" = "$last_oldobj" ; then
8002 RANLIB=$save_RANLIB
8003 fi
8004 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
8005 eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
8006 objlist=
8007 len=$len0
8008 fi
8009 done
8010 RANLIB=$save_RANLIB
8011 oldobjs=$objlist
8012 if test "X$oldobjs" = "X" ; then
8013 eval cmds=\"\$concat_cmds\"
8014 else
8015 eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
8016 fi
8017 fi
8018 fi
8019 func_execute_cmds "$cmds" 'exit $?'
8020 done
8021
8022 test -n "$generated" && \
8023 func_show_eval "${RM}r$generated"
8024
8025 # Now create the libtool archive.
8026 case $output in
8027 *.la)
8028 old_library=
8029 test "$build_old_libs" = yes && old_library="$libname.$libext"
8030 func_verbose "creating $output"
8031
8032 # Preserve any variables that may affect compiler behavior
8033 for var in $variables_saved_for_relink; do
8034 if eval test -z \"\${$var+set}\"; then
8035 relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
8036 elif eval var_value=\$$var; test -z "$var_value"; then
8037 relink_command="$var=; export $var; $relink_command"
8038 else
8039 func_quote_for_eval "$var_value"
8040 relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
8041 fi
8042 done
8043 # Quote the link command for shipping.
8044 relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
8045 relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
8046 if test "$hardcode_automatic" = yes ; then
8047 relink_command=
8048 fi
8049
8050 # Only create the output if not a dry run.
8051 $opt_dry_run || {
8052 for installed in no yes; do
8053 if test "$installed" = yes; then
8054 if test -z "$install_libdir"; then
8055 break
8056 fi
8057 output="$output_objdir/$outputname"i
8058 # Replace all uninstalled libtool libraries with the installed ones
8059 newdependency_libs=
8060 for deplib in $dependency_libs; do
8061 case $deplib in
8062 *.la)
8063 func_basename "$deplib"
8064 name="$func_basename_result"
8065 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
8066 test -z "$libdir" && \
8067 func_fatal_error "\`$deplib' is not a valid libtool archive"
8068 newdependency_libs="$newdependency_libs $libdir/$name"
8069 ;;
8070 *) newdependency_libs="$newdependency_libs $deplib" ;;
8071 esac
8072 done
8073 dependency_libs="$newdependency_libs"
8074 newdlfiles=
8075
8076 for lib in $dlfiles; do
8077 case $lib in
8078 *.la)
8079 func_basename "$lib"
8080 name="$func_basename_result"
8081 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
8082 test -z "$libdir" && \
8083 func_fatal_error "\`$lib' is not a valid libtool archive"
8084 newdlfiles="$newdlfiles $libdir/$name"
8085 ;;
8086 *) newdlfiles="$newdlfiles $lib" ;;
8087 esac
8088 done
8089 dlfiles="$newdlfiles"
8090 newdlprefiles=
8091 for lib in $dlprefiles; do
8092 case $lib in
8093 *.la)
8094 # Only pass preopened files to the pseudo-archive (for
8095 # eventual linking with the app. that links it) if we
8096 # didn't already link the preopened objects directly into
8097 # the library:
8098 func_basename "$lib"
8099 name="$func_basename_result"
8100 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
8101 test -z "$libdir" && \
8102 func_fatal_error "\`$lib' is not a valid libtool archive"
8103 newdlprefiles="$newdlprefiles $libdir/$name"
8104 ;;
8105 esac
8106 done
8107 dlprefiles="$newdlprefiles"
8108 else
8109 newdlfiles=
8110 for lib in $dlfiles; do
8111 case $lib in
8112 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
8113 *) abs=`pwd`"/$lib" ;;
8114 esac
8115 newdlfiles="$newdlfiles $abs"
8116 done
8117 dlfiles="$newdlfiles"
8118 newdlprefiles=
8119 for lib in $dlprefiles; do
8120 case $lib in
8121 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
8122 *) abs=`pwd`"/$lib" ;;
8123 esac
8124 newdlprefiles="$newdlprefiles $abs"
8125 done
8126 dlprefiles="$newdlprefiles"
8127 fi
8128 $RM $output
8129 # place dlname in correct position for cygwin
8130 tdlname=$dlname
8131 case $host,$output,$installed,$module,$dlname in
8132 *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
8133 esac
8134 $ECHO > $output "\
8135 # $outputname - a libtool library file
8136 # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
8137 #
8138 # Please DO NOT delete this file!
8139 # It is necessary for linking the library.
8140
8141 # The name that we can dlopen(3).
8142 dlname='$tdlname'
8143
8144 # Names of this library.
8145 library_names='$library_names'
8146
8147 # The name of the static archive.
8148 old_library='$old_library'
8149
8150 # Linker flags that can not go in dependency_libs.
8151 inherited_linker_flags='$new_inherited_linker_flags'
8152
8153 # Libraries that this one depends upon.
8154 dependency_libs='$dependency_libs'
8155
8156 # Names of additional weak libraries provided by this library
8157 weak_library_names='$weak_libs'
8158
8159 # Version information for $libname.
8160 current=$current
8161 age=$age
8162 revision=$revision
8163
8164 # Is this an already installed library?
8165 installed=$installed
8166
8167 # Should we warn about portability when linking against -modules?
8168 shouldnotlink=$module
8169
8170 # Files to dlopen/dlpreopen
8171 dlopen='$dlfiles'
8172 dlpreopen='$dlprefiles'
8173
8174 # Directory that this library needs to be installed in:
8175 libdir='$install_libdir'"
8176 if test "$installed" = no && test "$need_relink" = yes; then
8177 $ECHO >> $output "\
8178 relink_command=\"$relink_command\""
8179 fi
8180 done
8181 }
8182
8183 # Do a symbolic link so that the libtool archive can be found in
8184 # LD_LIBRARY_PATH before the program is installed.
8185 func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?'
8186 ;;
8187 esac
8188 exit $EXIT_SUCCESS
8189 }
8190
8191 { test "$mode" = link || test "$mode" = relink; } &&
8192 func_mode_link ${1+"$@"}
8193
8194
8195 # func_mode_uninstall arg...
8196 func_mode_uninstall ()
8197 {
8198 $opt_debug
8199 RM="$nonopt"
8200 files=
8201 rmforce=
8202 exit_status=0
8203
8204 # This variable tells wrapper scripts just to set variables rather
8205 # than running their programs.
8206 libtool_install_magic="$magic"
8207
8208 for arg
8209 do
8210 case $arg in
8211 -f) RM="$RM $arg"; rmforce=yes ;;
8212 -*) RM="$RM $arg" ;;
8213 *) files="$files $arg" ;;
8214 esac
8215 done
8216
8217 test -z "$RM" && \
8218 func_fatal_help "you must specify an RM program"
8219
8220 rmdirs=
8221
8222 origobjdir="$objdir"
8223 for file in $files; do
8224 func_dirname "$file" "" "."
8225 dir="$func_dirname_result"
8226 if test "X$dir" = X.; then
8227 objdir="$origobjdir"
8228 else
8229 objdir="$dir/$origobjdir"
8230 fi
8231 func_basename "$file"
8232 name="$func_basename_result"
8233 test "$mode" = uninstall && objdir="$dir"
8234
8235 # Remember objdir for removal later, being careful to avoid duplicates
8236 if test "$mode" = clean; then
8237 case " $rmdirs " in
8238 *" $objdir "*) ;;
8239 *) rmdirs="$rmdirs $objdir" ;;
8240 esac
8241 fi
8242
8243 # Don't error if the file doesn't exist and rm -f was used.
8244 if { test -L "$file"; } >/dev/null 2>&1 ||
8245 { test -h "$file"; } >/dev/null 2>&1 ||
8246 test -f "$file"; then
8247 :
8248 elif test -d "$file"; then
8249 exit_status=1
8250 continue
8251 elif test "$rmforce" = yes; then
8252 continue
8253 fi
8254
8255 rmfiles="$file"
8256
8257 case $name in
8258 *.la)
8259 # Possibly a libtool archive, so verify it.
8260 if func_lalib_p "$file"; then
8261 func_source $dir/$name
8262
8263 # Delete the libtool libraries and symlinks.
8264 for n in $library_names; do
8265 rmfiles="$rmfiles $objdir/$n"
8266 done
8267 test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
8268
8269 case "$mode" in
8270 clean)
8271 case " $library_names " in
8272 # " " in the beginning catches empty $dlname
8273 *" $dlname "*) ;;
8274 *) rmfiles="$rmfiles $objdir/$dlname" ;;
8275 esac
8276 test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
8277 ;;
8278 uninstall)
8279 if test -n "$library_names"; then
8280 # Do each command in the postuninstall commands.
8281 func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
8282 fi
8283
8284 if test -n "$old_library"; then
8285 # Do each command in the old_postuninstall commands.
8286 func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
8287 fi
8288 # FIXME: should reinstall the best remaining shared library.
8289 ;;
8290 esac
8291 fi
8292 ;;
8293
8294 *.lo)
8295 # Possibly a libtool object, so verify it.
8296 if func_lalib_p "$file"; then
8297
8298 # Read the .lo file
8299 func_source $dir/$name
8300
8301 # Add PIC object to the list of files to remove.
8302 if test -n "$pic_object" &&
8303 test "$pic_object" != none; then
8304 rmfiles="$rmfiles $dir/$pic_object"
8305 fi
8306
8307 # Add non-PIC object to the list of files to remove.
8308 if test -n "$non_pic_object" &&
8309 test "$non_pic_object" != none; then
8310 rmfiles="$rmfiles $dir/$non_pic_object"
8311 fi
8312 fi
8313 ;;
8314
8315 *)
8316 if test "$mode" = clean ; then
8317 noexename=$name
8318 case $file in
8319 *.exe)
8320 func_stripname '' '.exe' "$file"
8321 file=$func_stripname_result
8322 func_stripname '' '.exe' "$name"
8323 noexename=$func_stripname_result
8324 # $file with .exe has already been added to rmfiles,
8325 # add $file without .exe
8326 rmfiles="$rmfiles $file"
8327 ;;
8328 esac
8329 # Do a test to see if this is a libtool program.
8330 if func_ltwrapper_p "$file"; then
8331 if func_ltwrapper_executable_p "$file"; then
8332 func_ltwrapper_scriptname "$file"
8333 relink_command=
8334 func_source $func_ltwrapper_scriptname_result
8335 rmfiles="$rmfiles $func_ltwrapper_scriptname_result"
8336 else
8337 relink_command=
8338 func_source $dir/$noexename
8339 fi
8340
8341 # note $name still contains .exe if it was in $file originally
8342 # as does the version of $file that was added into $rmfiles
8343 rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}"
8344 if test "$fast_install" = yes && test -n "$relink_command"; then
8345 rmfiles="$rmfiles $objdir/lt-$name"
8346 fi
8347 if test "X$noexename" != "X$name" ; then
8348 rmfiles="$rmfiles $objdir/lt-${noexename}.c"
8349 fi
8350 fi
8351 fi
8352 ;;
8353 esac
8354 func_show_eval "$RM $rmfiles" 'exit_status=1'
8355 done
8356 objdir="$origobjdir"
8357
8358 # Try to remove the ${objdir}s in the directories where we deleted files
8359 for dir in $rmdirs; do
8360 if test -d "$dir"; then
8361 func_show_eval "rmdir $dir >/dev/null 2>&1"
8362 fi
8363 done
8364
8365 exit $exit_status
8366 }
8367
8368 { test "$mode" = uninstall || test "$mode" = clean; } &&
8369 func_mode_uninstall ${1+"$@"}
8370
8371 test -z "$mode" && {
8372 help="$generic_help"
8373 func_fatal_help "you must specify a MODE"
8374 }
8375
8376 test -z "$exec_cmd" && \
8377 func_fatal_help "invalid operation mode \`$mode'"
8378
8379 if test -n "$exec_cmd"; then
8380 eval exec "$exec_cmd"
8381 exit $EXIT_FAILURE
8382 fi
8383
8384 exit $exit_status
8385
8386
8387 # The TAGs below are defined such that we never get into a situation
8388 # in which we disable both kinds of libraries. Given conflicting
8389 # choices, we go for a static library, that is the most portable,
8390 # since we can't tell whether shared libraries were disabled because
8391 # the user asked for that or because the platform doesn't support
8392 # them. This is particularly important on AIX, because we don't
8393 # support having both static and shared libraries enabled at the same
8394 # time on that platform, so we default to a shared-only configuration.
8395 # If a disable-shared tag is given, we'll fallback to a static-only
8396 # configuration. But we'll never go from static-only to shared-only.
8397
8398 # ### BEGIN LIBTOOL TAG CONFIG: disable-shared
8399 build_libtool_libs=no
8400 build_old_libs=yes
8401 # ### END LIBTOOL TAG CONFIG: disable-shared
8402
8403 # ### BEGIN LIBTOOL TAG CONFIG: disable-static
8404 build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
8405 # ### END LIBTOOL TAG CONFIG: disable-static
8406
8407 # Local Variables:
8408 # mode:shell-script
8409 # sh-indentation:2
8410 # End:
8411 # vi:sw=2
8412
+0
-376
config/missing less more
0 #! /bin/sh
1 # Common stub for a few missing GNU programs while installing.
2
3 scriptversion=2009-04-28.21; # UTC
4
5 # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
6 # 2008, 2009 Free Software Foundation, Inc.
7 # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
8
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; either version 2, or (at your option)
12 # any later version.
13
14 # This program is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 # GNU General Public License for more details.
18
19 # You should have received a copy of the GNU General Public License
20 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21
22 # As a special exception to the GNU General Public License, if you
23 # distribute this file as part of a program that contains a
24 # configuration script generated by Autoconf, you may include it under
25 # the same distribution terms that you use for the rest of that program.
26
27 if test $# -eq 0; then
28 echo 1>&2 "Try \`$0 --help' for more information"
29 exit 1
30 fi
31
32 run=:
33 sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
34 sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
35
36 # In the cases where this matters, `missing' is being run in the
37 # srcdir already.
38 if test -f configure.ac; then
39 configure_ac=configure.ac
40 else
41 configure_ac=configure.in
42 fi
43
44 msg="missing on your system"
45
46 case $1 in
47 --run)
48 # Try to run requested program, and just exit if it succeeds.
49 run=
50 shift
51 "$@" && exit 0
52 # Exit code 63 means version mismatch. This often happens
53 # when the user try to use an ancient version of a tool on
54 # a file that requires a minimum version. In this case we
55 # we should proceed has if the program had been absent, or
56 # if --run hadn't been passed.
57 if test $? = 63; then
58 run=:
59 msg="probably too old"
60 fi
61 ;;
62
63 -h|--h|--he|--hel|--help)
64 echo "\
65 $0 [OPTION]... PROGRAM [ARGUMENT]...
66
67 Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
68 error status if there is no known handling for PROGRAM.
69
70 Options:
71 -h, --help display this help and exit
72 -v, --version output version information and exit
73 --run try to run the given command, and emulate it if it fails
74
75 Supported PROGRAM values:
76 aclocal touch file \`aclocal.m4'
77 autoconf touch file \`configure'
78 autoheader touch file \`config.h.in'
79 autom4te touch the output file, or create a stub one
80 automake touch all \`Makefile.in' files
81 bison create \`y.tab.[ch]', if possible, from existing .[ch]
82 flex create \`lex.yy.c', if possible, from existing .c
83 help2man touch the output file
84 lex create \`lex.yy.c', if possible, from existing .c
85 makeinfo touch the output file
86 tar try tar, gnutar, gtar, then tar without non-portable flags
87 yacc create \`y.tab.[ch]', if possible, from existing .[ch]
88
89 Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and
90 \`g' are ignored when checking the name.
91
92 Send bug reports to <bug-automake@gnu.org>."
93 exit $?
94 ;;
95
96 -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
97 echo "missing $scriptversion (GNU Automake)"
98 exit $?
99 ;;
100
101 -*)
102 echo 1>&2 "$0: Unknown \`$1' option"
103 echo 1>&2 "Try \`$0 --help' for more information"
104 exit 1
105 ;;
106
107 esac
108
109 # normalize program name to check for.
110 program=`echo "$1" | sed '
111 s/^gnu-//; t
112 s/^gnu//; t
113 s/^g//; t'`
114
115 # Now exit if we have it, but it failed. Also exit now if we
116 # don't have it and --version was passed (most likely to detect
117 # the program). This is about non-GNU programs, so use $1 not
118 # $program.
119 case $1 in
120 lex*|yacc*)
121 # Not GNU programs, they don't have --version.
122 ;;
123
124 tar*)
125 if test -n "$run"; then
126 echo 1>&2 "ERROR: \`tar' requires --run"
127 exit 1
128 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
129 exit 1
130 fi
131 ;;
132
133 *)
134 if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
135 # We have it, but it failed.
136 exit 1
137 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
138 # Could not run --version or --help. This is probably someone
139 # running `$TOOL --version' or `$TOOL --help' to check whether
140 # $TOOL exists and not knowing $TOOL uses missing.
141 exit 1
142 fi
143 ;;
144 esac
145
146 # If it does not exist, or fails to run (possibly an outdated version),
147 # try to emulate it.
148 case $program in
149 aclocal*)
150 echo 1>&2 "\
151 WARNING: \`$1' is $msg. You should only need it if
152 you modified \`acinclude.m4' or \`${configure_ac}'. You might want
153 to install the \`Automake' and \`Perl' packages. Grab them from
154 any GNU archive site."
155 touch aclocal.m4
156 ;;
157
158 autoconf*)
159 echo 1>&2 "\
160 WARNING: \`$1' is $msg. You should only need it if
161 you modified \`${configure_ac}'. You might want to install the
162 \`Autoconf' and \`GNU m4' packages. Grab them from any GNU
163 archive site."
164 touch configure
165 ;;
166
167 autoheader*)
168 echo 1>&2 "\
169 WARNING: \`$1' is $msg. You should only need it if
170 you modified \`acconfig.h' or \`${configure_ac}'. You might want
171 to install the \`Autoconf' and \`GNU m4' packages. Grab them
172 from any GNU archive site."
173 files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
174 test -z "$files" && files="config.h"
175 touch_files=
176 for f in $files; do
177 case $f in
178 *:*) touch_files="$touch_files "`echo "$f" |
179 sed -e 's/^[^:]*://' -e 's/:.*//'`;;
180 *) touch_files="$touch_files $f.in";;
181 esac
182 done
183 touch $touch_files
184 ;;
185
186 automake*)
187 echo 1>&2 "\
188 WARNING: \`$1' is $msg. You should only need it if
189 you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
190 You might want to install the \`Automake' and \`Perl' packages.
191 Grab them from any GNU archive site."
192 find . -type f -name Makefile.am -print |
193 sed 's/\.am$/.in/' |
194 while read f; do touch "$f"; done
195 ;;
196
197 autom4te*)
198 echo 1>&2 "\
199 WARNING: \`$1' is needed, but is $msg.
200 You might have modified some files without having the
201 proper tools for further handling them.
202 You can get \`$1' as part of \`Autoconf' from any GNU
203 archive site."
204
205 file=`echo "$*" | sed -n "$sed_output"`
206 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
207 if test -f "$file"; then
208 touch $file
209 else
210 test -z "$file" || exec >$file
211 echo "#! /bin/sh"
212 echo "# Created by GNU Automake missing as a replacement of"
213 echo "# $ $@"
214 echo "exit 0"
215 chmod +x $file
216 exit 1
217 fi
218 ;;
219
220 bison*|yacc*)
221 echo 1>&2 "\
222 WARNING: \`$1' $msg. You should only need it if
223 you modified a \`.y' file. You may need the \`Bison' package
224 in order for those modifications to take effect. You can get
225 \`Bison' from any GNU archive site."
226 rm -f y.tab.c y.tab.h
227 if test $# -ne 1; then
228 eval LASTARG="\${$#}"
229 case $LASTARG in
230 *.y)
231 SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
232 if test -f "$SRCFILE"; then
233 cp "$SRCFILE" y.tab.c
234 fi
235 SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
236 if test -f "$SRCFILE"; then
237 cp "$SRCFILE" y.tab.h
238 fi
239 ;;
240 esac
241 fi
242 if test ! -f y.tab.h; then
243 echo >y.tab.h
244 fi
245 if test ! -f y.tab.c; then
246 echo 'main() { return 0; }' >y.tab.c
247 fi
248 ;;
249
250 lex*|flex*)
251 echo 1>&2 "\
252 WARNING: \`$1' is $msg. You should only need it if
253 you modified a \`.l' file. You may need the \`Flex' package
254 in order for those modifications to take effect. You can get
255 \`Flex' from any GNU archive site."
256 rm -f lex.yy.c
257 if test $# -ne 1; then
258 eval LASTARG="\${$#}"
259 case $LASTARG in
260 *.l)
261 SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
262 if test -f "$SRCFILE"; then
263 cp "$SRCFILE" lex.yy.c
264 fi
265 ;;
266 esac
267 fi
268 if test ! -f lex.yy.c; then
269 echo 'main() { return 0; }' >lex.yy.c
270 fi
271 ;;
272
273 help2man*)
274 echo 1>&2 "\
275 WARNING: \`$1' is $msg. You should only need it if
276 you modified a dependency of a manual page. You may need the
277 \`Help2man' package in order for those modifications to take
278 effect. You can get \`Help2man' from any GNU archive site."
279
280 file=`echo "$*" | sed -n "$sed_output"`
281 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
282 if test -f "$file"; then
283 touch $file
284 else
285 test -z "$file" || exec >$file
286 echo ".ab help2man is required to generate this page"
287 exit $?
288 fi
289 ;;
290
291 makeinfo*)
292 echo 1>&2 "\
293 WARNING: \`$1' is $msg. You should only need it if
294 you modified a \`.texi' or \`.texinfo' file, or any other file
295 indirectly affecting the aspect of the manual. The spurious
296 call might also be the consequence of using a buggy \`make' (AIX,
297 DU, IRIX). You might want to install the \`Texinfo' package or
298 the \`GNU make' package. Grab either from any GNU archive site."
299 # The file to touch is that specified with -o ...
300 file=`echo "$*" | sed -n "$sed_output"`
301 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
302 if test -z "$file"; then
303 # ... or it is the one specified with @setfilename ...
304 infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
305 file=`sed -n '
306 /^@setfilename/{
307 s/.* \([^ ]*\) *$/\1/
308 p
309 q
310 }' $infile`
311 # ... or it is derived from the source name (dir/f.texi becomes f.info)
312 test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
313 fi
314 # If the file does not exist, the user really needs makeinfo;
315 # let's fail without touching anything.
316 test -f $file || exit 1
317 touch $file
318 ;;
319
320 tar*)
321 shift
322
323 # We have already tried tar in the generic part.
324 # Look for gnutar/gtar before invocation to avoid ugly error
325 # messages.
326 if (gnutar --version > /dev/null 2>&1); then
327 gnutar "$@" && exit 0
328 fi
329 if (gtar --version > /dev/null 2>&1); then
330 gtar "$@" && exit 0
331 fi
332 firstarg="$1"
333 if shift; then
334 case $firstarg in
335 *o*)
336 firstarg=`echo "$firstarg" | sed s/o//`
337 tar "$firstarg" "$@" && exit 0
338 ;;
339 esac
340 case $firstarg in
341 *h*)
342 firstarg=`echo "$firstarg" | sed s/h//`
343 tar "$firstarg" "$@" && exit 0
344 ;;
345 esac
346 fi
347
348 echo 1>&2 "\
349 WARNING: I can't seem to be able to run \`tar' with the given arguments.
350 You may want to install GNU tar or Free paxutils, or check the
351 command line arguments."
352 exit 1
353 ;;
354
355 *)
356 echo 1>&2 "\
357 WARNING: \`$1' is needed, and is $msg.
358 You might have modified some files without having the
359 proper tools for further handling them. Check the \`README' file,
360 it often tells you about the needed prerequisites for installing
361 this package. You may also peek at any GNU archive site, in case
362 some other package would contain this missing \`$1' program."
363 exit 1
364 ;;
365 esac
366
367 exit 0
368
369 # Local variables:
370 # eval: (add-hook 'write-file-hooks 'time-stamp)
371 # time-stamp-start: "scriptversion="
372 # time-stamp-format: "%:y-%02m-%02d.%02H"
373 # time-stamp-time-zone: "UTC"
374 # time-stamp-end: "; # UTC"
375 # End:
+0
-13136
configure less more
0 #! /bin/sh
1 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.65 for libmpcs 0.1.
3 #
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
7 # Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19 emulate sh
20 NULLCMD=:
21 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25 else
26 case `(set -o) 2>/dev/null` in #(
27 *posix*) :
28 set -o posix ;; #(
29 *) :
30 ;;
31 esac
32 fi
33
34
35 as_nl='
36 '
37 export as_nl
38 # Printing a long string crashes Solaris 7 /usr/bin/printf.
39 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
42 # Prefer a ksh shell builtin over an external printf program on Solaris,
43 # but without wasting forks for bash or zsh.
44 if test -z "$BASH_VERSION$ZSH_VERSION" \
45 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo='print -r --'
47 as_echo_n='print -rn --'
48 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='printf %s\n'
50 as_echo_n='printf %s'
51 else
52 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
53 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
54 as_echo_n='/usr/ucb/echo -n'
55 else
56 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
57 as_echo_n_body='eval
58 arg=$1;
59 case $arg in #(
60 *"$as_nl"*)
61 expr "X$arg" : "X\\(.*\\)$as_nl";
62 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 esac;
64 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 '
66 export as_echo_n_body
67 as_echo_n='sh -c $as_echo_n_body as_echo'
68 fi
69 export as_echo_body
70 as_echo='sh -c $as_echo_body as_echo'
71 fi
72
73 # The user is always right.
74 if test "${PATH_SEPARATOR+set}" != set; then
75 PATH_SEPARATOR=:
76 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
77 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
78 PATH_SEPARATOR=';'
79 }
80 fi
81
82
83 # IFS
84 # We need space, tab and new line, in precisely that order. Quoting is
85 # there to prevent editors from complaining about space-tab.
86 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
87 # splitting by setting IFS to empty value.)
88 IFS=" "" $as_nl"
89
90 # Find who we are. Look in the path if we contain no directory separator.
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 if test "x$CONFIG_SHELL" = x; then
136 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
137 emulate sh
138 NULLCMD=:
139 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
140 # is contrary to our usage. Disable this feature.
141 alias -g '\${1+\"\$@\"}'='\"\$@\"'
142 setopt NO_GLOB_SUBST
143 else
144 case \`(set -o) 2>/dev/null\` in #(
145 *posix*) :
146 set -o posix ;; #(
147 *) :
148 ;;
149 esac
150 fi
151 "
152 as_required="as_fn_return () { (exit \$1); }
153 as_fn_success () { as_fn_return 0; }
154 as_fn_failure () { as_fn_return 1; }
155 as_fn_ret_success () { return 0; }
156 as_fn_ret_failure () { return 1; }
157
158 exitcode=0
159 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
160 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
161 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
162 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
163 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164
165 else
166 exitcode=1; echo positional parameters were not saved.
167 fi
168 test x\$exitcode = x0 || exit 1"
169 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
170 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
171 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
172 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
173 test \$(( 1 + 1 )) = 2 || exit 1"
174 if (eval "$as_required") 2>/dev/null; then :
175 as_have_required=yes
176 else
177 as_have_required=no
178 fi
179 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
180
181 else
182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
183 as_found=false
184 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
185 do
186 IFS=$as_save_IFS
187 test -z "$as_dir" && as_dir=.
188 as_found=:
189 case $as_dir in #(
190 /*)
191 for as_base in sh bash ksh sh5; do
192 # Try only shells that exist, to save several forks.
193 as_shell=$as_dir/$as_base
194 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
195 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
196 CONFIG_SHELL=$as_shell as_have_required=yes
197 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 break 2
199 fi
200 fi
201 done;;
202 esac
203 as_found=false
204 done
205 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
206 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
207 CONFIG_SHELL=$SHELL as_have_required=yes
208 fi; }
209 IFS=$as_save_IFS
210
211
212 if test "x$CONFIG_SHELL" != x; then :
213 # We cannot yet assume a decent shell, so we have to provide a
214 # neutralization value for shells without unset; and this also
215 # works around shells that cannot unset nonexistent variables.
216 BASH_ENV=/dev/null
217 ENV=/dev/null
218 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
219 export CONFIG_SHELL
220 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
221 fi
222
223 if test x$as_have_required = xno; then :
224 $as_echo "$0: This script requires a shell more modern than all"
225 $as_echo "$0: the shells that I found on your system."
226 if test x${ZSH_VERSION+set} = xset ; then
227 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
228 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
229 else
230 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
231 $0: including any error possibly output before this
232 $0: message. Then install a modern shell, or manually run
233 $0: the script under such a shell if you do have one."
234 fi
235 exit 1
236 fi
237 fi
238 fi
239 SHELL=${CONFIG_SHELL-/bin/sh}
240 export SHELL
241 # Unset more variables known to interfere with behavior of common tools.
242 CLICOLOR_FORCE= GREP_OPTIONS=
243 unset CLICOLOR_FORCE GREP_OPTIONS
244
245 ## --------------------- ##
246 ## M4sh Shell Functions. ##
247 ## --------------------- ##
248 # as_fn_unset VAR
249 # ---------------
250 # Portably unset VAR.
251 as_fn_unset ()
252 {
253 { eval $1=; unset $1;}
254 }
255 as_unset=as_fn_unset
256
257 # as_fn_set_status STATUS
258 # -----------------------
259 # Set $? to STATUS, without forking.
260 as_fn_set_status ()
261 {
262 return $1
263 } # as_fn_set_status
264
265 # as_fn_exit STATUS
266 # -----------------
267 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
268 as_fn_exit ()
269 {
270 set +e
271 as_fn_set_status $1
272 exit $1
273 } # as_fn_exit
274
275 # as_fn_mkdir_p
276 # -------------
277 # Create "$as_dir" as a directory, including parents if necessary.
278 as_fn_mkdir_p ()
279 {
280
281 case $as_dir in #(
282 -*) as_dir=./$as_dir;;
283 esac
284 test -d "$as_dir" || eval $as_mkdir_p || {
285 as_dirs=
286 while :; do
287 case $as_dir in #(
288 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
289 *) as_qdir=$as_dir;;
290 esac
291 as_dirs="'$as_qdir' $as_dirs"
292 as_dir=`$as_dirname -- "$as_dir" ||
293 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
294 X"$as_dir" : 'X\(//\)[^/]' \| \
295 X"$as_dir" : 'X\(//\)$' \| \
296 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
297 $as_echo X"$as_dir" |
298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
299 s//\1/
300 q
301 }
302 /^X\(\/\/\)[^/].*/{
303 s//\1/
304 q
305 }
306 /^X\(\/\/\)$/{
307 s//\1/
308 q
309 }
310 /^X\(\/\).*/{
311 s//\1/
312 q
313 }
314 s/.*/./; q'`
315 test -d "$as_dir" && break
316 done
317 test -z "$as_dirs" || eval "mkdir $as_dirs"
318 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
319
320
321 } # as_fn_mkdir_p
322 # as_fn_append VAR VALUE
323 # ----------------------
324 # Append the text in VALUE to the end of the definition contained in VAR. Take
325 # advantage of any shell optimizations that allow amortized linear growth over
326 # repeated appends, instead of the typical quadratic growth present in naive
327 # implementations.
328 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
329 eval 'as_fn_append ()
330 {
331 eval $1+=\$2
332 }'
333 else
334 as_fn_append ()
335 {
336 eval $1=\$$1\$2
337 }
338 fi # as_fn_append
339
340 # as_fn_arith ARG...
341 # ------------------
342 # Perform arithmetic evaluation on the ARGs, and store the result in the
343 # global $as_val. Take advantage of shells that can avoid forks. The arguments
344 # must be portable across $(()) and expr.
345 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
346 eval 'as_fn_arith ()
347 {
348 as_val=$(( $* ))
349 }'
350 else
351 as_fn_arith ()
352 {
353 as_val=`expr "$@" || test $? -eq 1`
354 }
355 fi # as_fn_arith
356
357
358 # as_fn_error ERROR [LINENO LOG_FD]
359 # ---------------------------------
360 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
361 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
362 # script with status $?, using 1 if that was 0.
363 as_fn_error ()
364 {
365 as_status=$?; test $as_status -eq 0 && as_status=1
366 if test "$3"; then
367 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
368 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 fi
370 $as_echo "$as_me: error: $1" >&2
371 as_fn_exit $as_status
372 } # as_fn_error
373
374 if expr a : '\(a\)' >/dev/null 2>&1 &&
375 test "X`expr 00001 : '.*\(...\)'`" = X001; then
376 as_expr=expr
377 else
378 as_expr=false
379 fi
380
381 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
382 as_basename=basename
383 else
384 as_basename=false
385 fi
386
387 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
388 as_dirname=dirname
389 else
390 as_dirname=false
391 fi
392
393 as_me=`$as_basename -- "$0" ||
394 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
395 X"$0" : 'X\(//\)$' \| \
396 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
397 $as_echo X/"$0" |
398 sed '/^.*\/\([^/][^/]*\)\/*$/{
399 s//\1/
400 q
401 }
402 /^X\/\(\/\/\)$/{
403 s//\1/
404 q
405 }
406 /^X\/\(\/\).*/{
407 s//\1/
408 q
409 }
410 s/.*/./; q'`
411
412 # Avoid depending upon Character Ranges.
413 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
414 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
415 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
416 as_cr_digits='0123456789'
417 as_cr_alnum=$as_cr_Letters$as_cr_digits
418
419
420 as_lineno_1=$LINENO as_lineno_1a=$LINENO
421 as_lineno_2=$LINENO as_lineno_2a=$LINENO
422 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
423 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
424 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
425 sed -n '
426 p
427 /[$]LINENO/=
428 ' <$as_myself |
429 sed '
430 s/[$]LINENO.*/&-/
431 t lineno
432 b
433 :lineno
434 N
435 :loop
436 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
437 t loop
438 s/-\n.*//
439 ' >$as_me.lineno &&
440 chmod +x "$as_me.lineno" ||
441 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
442
443 # Don't try to exec as it changes $[0], causing all sort of problems
444 # (the dirname of $[0] is not the place where we might find the
445 # original and so on. Autoconf is especially sensitive to this).
446 . "./$as_me.lineno"
447 # Exit status is that of the last command.
448 exit
449 }
450
451 ECHO_C= ECHO_N= ECHO_T=
452 case `echo -n x` in #(((((
453 -n*)
454 case `echo 'xy\c'` in
455 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
456 xy) ECHO_C='\c';;
457 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
458 ECHO_T=' ';;
459 esac;;
460 *)
461 ECHO_N='-n';;
462 esac
463
464 rm -f conf$$ conf$$.exe conf$$.file
465 if test -d conf$$.dir; then
466 rm -f conf$$.dir/conf$$.file
467 else
468 rm -f conf$$.dir
469 mkdir conf$$.dir 2>/dev/null
470 fi
471 if (echo >conf$$.file) 2>/dev/null; then
472 if ln -s conf$$.file conf$$ 2>/dev/null; then
473 as_ln_s='ln -s'
474 # ... but there are two gotchas:
475 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
476 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
477 # In both cases, we have to default to `cp -p'.
478 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
479 as_ln_s='cp -p'
480 elif ln conf$$.file conf$$ 2>/dev/null; then
481 as_ln_s=ln
482 else
483 as_ln_s='cp -p'
484 fi
485 else
486 as_ln_s='cp -p'
487 fi
488 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
489 rmdir conf$$.dir 2>/dev/null
490
491 if mkdir -p . 2>/dev/null; then
492 as_mkdir_p='mkdir -p "$as_dir"'
493 else
494 test -d ./-p && rmdir ./-p
495 as_mkdir_p=false
496 fi
497
498 if test -x / >/dev/null 2>&1; then
499 as_test_x='test -x'
500 else
501 if ls -dL / >/dev/null 2>&1; then
502 as_ls_L_option=L
503 else
504 as_ls_L_option=
505 fi
506 as_test_x='
507 eval sh -c '\''
508 if test -d "$1"; then
509 test -d "$1/.";
510 else
511 case $1 in #(
512 -*)set "./$1";;
513 esac;
514 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
515 ???[sx]*):;;*)false;;esac;fi
516 '\'' sh
517 '
518 fi
519 as_executable_p=$as_test_x
520
521 # Sed expression to map a string onto a valid CPP name.
522 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523
524 # Sed expression to map a string onto a valid variable name.
525 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
526
527
528
529 # Check that we are running under the correct shell.
530 SHELL=${CONFIG_SHELL-/bin/sh}
531
532 case X$lt_ECHO in
533 X*--fallback-echo)
534 # Remove one level of quotation (which was required for Make).
535 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
536 ;;
537 esac
538
539 ECHO=${lt_ECHO-echo}
540 if test "X$1" = X--no-reexec; then
541 # Discard the --no-reexec flag, and continue.
542 shift
543 elif test "X$1" = X--fallback-echo; then
544 # Avoid inline document here, it may be left over
545 :
546 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
547 # Yippee, $ECHO works!
548 :
549 else
550 # Restart under the correct shell.
551 exec $SHELL "$0" --no-reexec ${1+"$@"}
552 fi
553
554 if test "X$1" = X--fallback-echo; then
555 # used as fallback echo
556 shift
557 cat <<_LT_EOF
558 $*
559 _LT_EOF
560 exit 0
561 fi
562
563 # The HP-UX ksh and POSIX shell print the target directory to stdout
564 # if CDPATH is set.
565 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
566
567 if test -z "$lt_ECHO"; then
568 if test "X${echo_test_string+set}" != Xset; then
569 # find a string as large as possible, as long as the shell can cope with it
570 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
571 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
572 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
573 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
574 then
575 break
576 fi
577 done
578 fi
579
580 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
581 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
582 test "X$echo_testing_string" = "X$echo_test_string"; then
583 :
584 else
585 # The Solaris, AIX, and Digital Unix default echo programs unquote
586 # backslashes. This makes it impossible to quote backslashes using
587 # echo "$something" | sed 's/\\/\\\\/g'
588 #
589 # So, first we look for a working echo in the user's PATH.
590
591 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
592 for dir in $PATH /usr/ucb; do
593 IFS="$lt_save_ifs"
594 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
595 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
596 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
597 test "X$echo_testing_string" = "X$echo_test_string"; then
598 ECHO="$dir/echo"
599 break
600 fi
601 done
602 IFS="$lt_save_ifs"
603
604 if test "X$ECHO" = Xecho; then
605 # We didn't find a better echo, so look for alternatives.
606 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
607 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
608 test "X$echo_testing_string" = "X$echo_test_string"; then
609 # This shell has a builtin print -r that does the trick.
610 ECHO='print -r'
611 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
612 test "X$CONFIG_SHELL" != X/bin/ksh; then
613 # If we have ksh, try running configure again with it.
614 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
615 export ORIGINAL_CONFIG_SHELL
616 CONFIG_SHELL=/bin/ksh
617 export CONFIG_SHELL
618 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
619 else
620 # Try using printf.
621 ECHO='printf %s\n'
622 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
623 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
624 test "X$echo_testing_string" = "X$echo_test_string"; then
625 # Cool, printf works
626 :
627 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
628 test "X$echo_testing_string" = 'X\t' &&
629 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
630 test "X$echo_testing_string" = "X$echo_test_string"; then
631 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
632 export CONFIG_SHELL
633 SHELL="$CONFIG_SHELL"
634 export SHELL
635 ECHO="$CONFIG_SHELL $0 --fallback-echo"
636 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
637 test "X$echo_testing_string" = 'X\t' &&
638 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
639 test "X$echo_testing_string" = "X$echo_test_string"; then
640 ECHO="$CONFIG_SHELL $0 --fallback-echo"
641 else
642 # maybe with a smaller string...
643 prev=:
644
645 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
646 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
647 then
648 break
649 fi
650 prev="$cmd"
651 done
652
653 if test "$prev" != 'sed 50q "$0"'; then
654 echo_test_string=`eval $prev`
655 export echo_test_string
656 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
657 else
658 # Oops. We lost completely, so just stick with echo.
659 ECHO=echo
660 fi
661 fi
662 fi
663 fi
664 fi
665 fi
666
667 # Copy echo and quote the copy suitably for passing to libtool from
668 # the Makefile, instead of quoting the original, which is used later.
669 lt_ECHO=$ECHO
670 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
671 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
672 fi
673
674
675
676
677 test -n "$DJDIR" || exec 7<&0 </dev/null
678 exec 6>&1
679
680 # Name of the host.
681 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
682 # so uname gets run too.
683 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
684
685 #
686 # Initializations.
687 #
688 ac_default_prefix=/usr/local
689 ac_clean_files=
690 ac_config_libobj_dir=.
691 LIBOBJS=
692 cross_compiling=no
693 subdirs=
694 MFLAGS=
695 MAKEFLAGS=
696
697 # Identity of this package.
698 PACKAGE_NAME='libmpcs'
699 PACKAGE_TARNAME='libmpcs'
700 PACKAGE_VERSION='0.1'
701 PACKAGE_STRING='libmpcs 0.1'
702 PACKAGE_BUGREPORT=''
703 PACKAGE_URL=''
704
705 ac_unique_file="libmpcdec/mpc_reader.c"
706 # Factoring default headers for most tests.
707 ac_includes_default="\
708 #include <stdio.h>
709 #ifdef HAVE_SYS_TYPES_H
710 # include <sys/types.h>
711 #endif
712 #ifdef HAVE_SYS_STAT_H
713 # include <sys/stat.h>
714 #endif
715 #ifdef STDC_HEADERS
716 # include <stdlib.h>
717 # include <stddef.h>
718 #else
719 # ifdef HAVE_STDLIB_H
720 # include <stdlib.h>
721 # endif
722 #endif
723 #ifdef HAVE_STRING_H
724 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
725 # include <memory.h>
726 # endif
727 # include <string.h>
728 #endif
729 #ifdef HAVE_STRINGS_H
730 # include <strings.h>
731 #endif
732 #ifdef HAVE_INTTYPES_H
733 # include <inttypes.h>
734 #endif
735 #ifdef HAVE_STDINT_H
736 # include <stdint.h>
737 #endif
738 #ifdef HAVE_UNISTD_H
739 # include <unistd.h>
740 #endif"
741
742 ac_subst_vars='am__EXEEXT_FALSE
743 am__EXEEXT_TRUE
744 LTLIBOBJS
745 LIBOBJS
746 HAVE_VISIBILITY_FALSE
747 HAVE_VISIBILITY_TRUE
748 MPC_CHAP_FALSE
749 MPC_CHAP_TRUE
750 EXTRALIBS
751 MPC_GAIN_FALSE
752 MPC_GAIN_TRUE
753 CPP
754 OTOOL64
755 OTOOL
756 LIPO
757 NMEDIT
758 DSYMUTIL
759 lt_ECHO
760 RANLIB
761 AR
762 LN_S
763 NM
764 ac_ct_DUMPBIN
765 DUMPBIN
766 LD
767 FGREP
768 EGREP
769 GREP
770 SED
771 LIBTOOL
772 OBJDUMP
773 DLLTOOL
774 AS
775 host_os
776 host_vendor
777 host_cpu
778 host
779 build_os
780 build_vendor
781 build_cpu
782 build
783 am__fastdepCC_FALSE
784 am__fastdepCC_TRUE
785 CCDEPMODE
786 AMDEPBACKSLASH
787 AMDEP_FALSE
788 AMDEP_TRUE
789 am__quote
790 am__include
791 DEPDIR
792 OBJEXT
793 EXEEXT
794 ac_ct_CC
795 CPPFLAGS
796 LDFLAGS
797 CFLAGS
798 CC
799 am__untar
800 am__tar
801 AMTAR
802 am__leading_dot
803 SET_MAKE
804 AWK
805 mkdir_p
806 MKDIR_P
807 INSTALL_STRIP_PROGRAM
808 STRIP
809 install_sh
810 MAKEINFO
811 AUTOHEADER
812 AUTOMAKE
813 AUTOCONF
814 ACLOCAL
815 VERSION
816 PACKAGE
817 CYGPATH_W
818 am__isrc
819 INSTALL_DATA
820 INSTALL_SCRIPT
821 INSTALL_PROGRAM
822 target_alias
823 host_alias
824 build_alias
825 LIBS
826 ECHO_T
827 ECHO_N
828 ECHO_C
829 DEFS
830 mandir
831 localedir
832 libdir
833 psdir
834 pdfdir
835 dvidir
836 htmldir
837 infodir
838 docdir
839 oldincludedir
840 includedir
841 localstatedir
842 sharedstatedir
843 sysconfdir
844 datadir
845 datarootdir
846 libexecdir
847 sbindir
848 bindir
849 program_transform_name
850 prefix
851 exec_prefix
852 PACKAGE_URL
853 PACKAGE_BUGREPORT
854 PACKAGE_STRING
855 PACKAGE_VERSION
856 PACKAGE_TARNAME
857 PACKAGE_NAME
858 PATH_SEPARATOR
859 SHELL'
860 ac_subst_files=''
861 ac_user_opts='
862 enable_option_checking
863 enable_dependency_tracking
864 enable_shared
865 enable_static
866 with_pic
867 enable_fast_install
868 with_gnu_ld
869 enable_libtool_lock
870 enable_mpcchap
871 '
872 ac_precious_vars='build_alias
873 host_alias
874 target_alias
875 CC
876 CFLAGS
877 LDFLAGS
878 LIBS
879 CPPFLAGS
880 CPP'
881
882
883 # Initialize some variables set by options.
884 ac_init_help=
885 ac_init_version=false
886 ac_unrecognized_opts=
887 ac_unrecognized_sep=
888 # The variables have the same names as the options, with
889 # dashes changed to underlines.
890 cache_file=/dev/null
891 exec_prefix=NONE
892 no_create=
893 no_recursion=
894 prefix=NONE
895 program_prefix=NONE
896 program_suffix=NONE
897 program_transform_name=s,x,x,
898 silent=
899 site=
900 srcdir=
901 verbose=
902 x_includes=NONE
903 x_libraries=NONE
904
905 # Installation directory options.
906 # These are left unexpanded so users can "make install exec_prefix=/foo"
907 # and all the variables that are supposed to be based on exec_prefix
908 # by default will actually change.
909 # Use braces instead of parens because sh, perl, etc. also accept them.
910 # (The list follows the same order as the GNU Coding Standards.)
911 bindir='${exec_prefix}/bin'
912 sbindir='${exec_prefix}/sbin'
913 libexecdir='${exec_prefix}/libexec'
914 datarootdir='${prefix}/share'
915 datadir='${datarootdir}'
916 sysconfdir='${prefix}/etc'
917 sharedstatedir='${prefix}/com'
918 localstatedir='${prefix}/var'
919 includedir='${prefix}/include'
920 oldincludedir='/usr/include'
921 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
922 infodir='${datarootdir}/info'
923 htmldir='${docdir}'
924 dvidir='${docdir}'
925 pdfdir='${docdir}'
926 psdir='${docdir}'
927 libdir='${exec_prefix}/lib'
928 localedir='${datarootdir}/locale'
929 mandir='${datarootdir}/man'
930
931 ac_prev=
932 ac_dashdash=
933 for ac_option
934 do
935 # If the previous option needs an argument, assign it.
936 if test -n "$ac_prev"; then
937 eval $ac_prev=\$ac_option
938 ac_prev=
939 continue
940 fi
941
942 case $ac_option in
943 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
944 *) ac_optarg=yes ;;
945 esac
946
947 # Accept the important Cygnus configure options, so we can diagnose typos.
948
949 case $ac_dashdash$ac_option in
950 --)
951 ac_dashdash=yes ;;
952
953 -bindir | --bindir | --bindi | --bind | --bin | --bi)
954 ac_prev=bindir ;;
955 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
956 bindir=$ac_optarg ;;
957
958 -build | --build | --buil | --bui | --bu)
959 ac_prev=build_alias ;;
960 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
961 build_alias=$ac_optarg ;;
962
963 -cache-file | --cache-file | --cache-fil | --cache-fi \
964 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
965 ac_prev=cache_file ;;
966 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
967 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
968 cache_file=$ac_optarg ;;
969
970 --config-cache | -C)
971 cache_file=config.cache ;;
972
973 -datadir | --datadir | --datadi | --datad)
974 ac_prev=datadir ;;
975 -datadir=* | --datadir=* | --datadi=* | --datad=*)
976 datadir=$ac_optarg ;;
977
978 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
979 | --dataroo | --dataro | --datar)
980 ac_prev=datarootdir ;;
981 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
982 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
983 datarootdir=$ac_optarg ;;
984
985 -disable-* | --disable-*)
986 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
987 # Reject names that are not valid shell variable names.
988 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
989 as_fn_error "invalid feature name: $ac_useropt"
990 ac_useropt_orig=$ac_useropt
991 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
992 case $ac_user_opts in
993 *"
994 "enable_$ac_useropt"
995 "*) ;;
996 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
997 ac_unrecognized_sep=', ';;
998 esac
999 eval enable_$ac_useropt=no ;;
1000
1001 -docdir | --docdir | --docdi | --doc | --do)
1002 ac_prev=docdir ;;
1003 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1004 docdir=$ac_optarg ;;
1005
1006 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1007 ac_prev=dvidir ;;
1008 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1009 dvidir=$ac_optarg ;;
1010
1011 -enable-* | --enable-*)
1012 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1013 # Reject names that are not valid shell variable names.
1014 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1015 as_fn_error "invalid feature name: $ac_useropt"
1016 ac_useropt_orig=$ac_useropt
1017 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1018 case $ac_user_opts in
1019 *"
1020 "enable_$ac_useropt"
1021 "*) ;;
1022 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1023 ac_unrecognized_sep=', ';;
1024 esac
1025 eval enable_$ac_useropt=\$ac_optarg ;;
1026
1027 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1028 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1029 | --exec | --exe | --ex)
1030 ac_prev=exec_prefix ;;
1031 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1032 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1033 | --exec=* | --exe=* | --ex=*)
1034 exec_prefix=$ac_optarg ;;
1035
1036 -gas | --gas | --ga | --g)
1037 # Obsolete; use --with-gas.
1038 with_gas=yes ;;
1039
1040 -help | --help | --hel | --he | -h)
1041 ac_init_help=long ;;
1042 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1043 ac_init_help=recursive ;;
1044 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1045 ac_init_help=short ;;
1046
1047 -host | --host | --hos | --ho)
1048 ac_prev=host_alias ;;
1049 -host=* | --host=* | --hos=* | --ho=*)
1050 host_alias=$ac_optarg ;;
1051
1052 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1053 ac_prev=htmldir ;;
1054 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1055 | --ht=*)
1056 htmldir=$ac_optarg ;;
1057
1058 -includedir | --includedir | --includedi | --included | --include \
1059 | --includ | --inclu | --incl | --inc)
1060 ac_prev=includedir ;;
1061 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1062 | --includ=* | --inclu=* | --incl=* | --inc=*)
1063 includedir=$ac_optarg ;;
1064
1065 -infodir | --infodir | --infodi | --infod | --info | --inf)
1066 ac_prev=infodir ;;
1067 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1068 infodir=$ac_optarg ;;
1069
1070 -libdir | --libdir | --libdi | --libd)
1071 ac_prev=libdir ;;
1072 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1073 libdir=$ac_optarg ;;
1074
1075 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1076 | --libexe | --libex | --libe)
1077 ac_prev=libexecdir ;;
1078 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1079 | --libexe=* | --libex=* | --libe=*)
1080 libexecdir=$ac_optarg ;;
1081
1082 -localedir | --localedir | --localedi | --localed | --locale)
1083 ac_prev=localedir ;;
1084 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1085 localedir=$ac_optarg ;;
1086
1087 -localstatedir | --localstatedir | --localstatedi | --localstated \
1088 | --localstate | --localstat | --localsta | --localst | --locals)
1089 ac_prev=localstatedir ;;
1090 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1091 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1092 localstatedir=$ac_optarg ;;
1093
1094 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1095 ac_prev=mandir ;;
1096 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1097 mandir=$ac_optarg ;;
1098
1099 -nfp | --nfp | --nf)
1100 # Obsolete; use --without-fp.
1101 with_fp=no ;;
1102
1103 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1104 | --no-cr | --no-c | -n)
1105 no_create=yes ;;
1106
1107 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1108 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1109 no_recursion=yes ;;
1110
1111 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1112 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1113 | --oldin | --oldi | --old | --ol | --o)
1114 ac_prev=oldincludedir ;;
1115 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1116 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1117 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1118 oldincludedir=$ac_optarg ;;
1119
1120 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1121 ac_prev=prefix ;;
1122 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1123 prefix=$ac_optarg ;;
1124
1125 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1126 | --program-pre | --program-pr | --program-p)
1127 ac_prev=program_prefix ;;
1128 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1129 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1130 program_prefix=$ac_optarg ;;
1131
1132 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1133 | --program-suf | --program-su | --program-s)
1134 ac_prev=program_suffix ;;
1135 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1136 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1137 program_suffix=$ac_optarg ;;
1138
1139 -program-transform-name | --program-transform-name \
1140 | --program-transform-nam | --program-transform-na \
1141 | --program-transform-n | --program-transform- \
1142 | --program-transform | --program-transfor \
1143 | --program-transfo | --program-transf \
1144 | --program-trans | --program-tran \
1145 | --progr-tra | --program-tr | --program-t)
1146 ac_prev=program_transform_name ;;
1147 -program-transform-name=* | --program-transform-name=* \
1148 | --program-transform-nam=* | --program-transform-na=* \
1149 | --program-transform-n=* | --program-transform-=* \
1150 | --program-transform=* | --program-transfor=* \
1151 | --program-transfo=* | --program-transf=* \
1152 | --program-trans=* | --program-tran=* \
1153 | --progr-tra=* | --program-tr=* | --program-t=*)
1154 program_transform_name=$ac_optarg ;;
1155
1156 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1157 ac_prev=pdfdir ;;
1158 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1159 pdfdir=$ac_optarg ;;
1160
1161 -psdir | --psdir | --psdi | --psd | --ps)
1162 ac_prev=psdir ;;
1163 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1164 psdir=$ac_optarg ;;
1165
1166 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1167 | -silent | --silent | --silen | --sile | --sil)
1168 silent=yes ;;
1169
1170 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1171 ac_prev=sbindir ;;
1172 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1173 | --sbi=* | --sb=*)
1174 sbindir=$ac_optarg ;;
1175
1176 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1177 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1178 | --sharedst | --shareds | --shared | --share | --shar \
1179 | --sha | --sh)
1180 ac_prev=sharedstatedir ;;
1181 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1182 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1183 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1184 | --sha=* | --sh=*)
1185 sharedstatedir=$ac_optarg ;;
1186
1187 -site | --site | --sit)
1188 ac_prev=site ;;
1189 -site=* | --site=* | --sit=*)
1190 site=$ac_optarg ;;
1191
1192 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1193 ac_prev=srcdir ;;
1194 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1195 srcdir=$ac_optarg ;;
1196
1197 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1198 | --syscon | --sysco | --sysc | --sys | --sy)
1199 ac_prev=sysconfdir ;;
1200 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1201 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1202 sysconfdir=$ac_optarg ;;
1203
1204 -target | --target | --targe | --targ | --tar | --ta | --t)
1205 ac_prev=target_alias ;;
1206 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1207 target_alias=$ac_optarg ;;
1208
1209 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1210 verbose=yes ;;
1211
1212 -version | --version | --versio | --versi | --vers | -V)
1213 ac_init_version=: ;;
1214
1215 -with-* | --with-*)
1216 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1217 # Reject names that are not valid shell variable names.
1218 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1219 as_fn_error "invalid package name: $ac_useropt"
1220 ac_useropt_orig=$ac_useropt
1221 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1222 case $ac_user_opts in
1223 *"
1224 "with_$ac_useropt"
1225 "*) ;;
1226 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1227 ac_unrecognized_sep=', ';;
1228 esac
1229 eval with_$ac_useropt=\$ac_optarg ;;
1230
1231 -without-* | --without-*)
1232 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1233 # Reject names that are not valid shell variable names.
1234 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1235 as_fn_error "invalid package name: $ac_useropt"
1236 ac_useropt_orig=$ac_useropt
1237 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1238 case $ac_user_opts in
1239 *"
1240 "with_$ac_useropt"
1241 "*) ;;
1242 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1243 ac_unrecognized_sep=', ';;
1244 esac
1245 eval with_$ac_useropt=no ;;
1246
1247 --x)
1248 # Obsolete; use --with-x.
1249 with_x=yes ;;
1250
1251 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1252 | --x-incl | --x-inc | --x-in | --x-i)
1253 ac_prev=x_includes ;;
1254 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1255 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1256 x_includes=$ac_optarg ;;
1257
1258 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1259 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1260 ac_prev=x_libraries ;;
1261 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1262 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1263 x_libraries=$ac_optarg ;;
1264
1265 -*) as_fn_error "unrecognized option: \`$ac_option'
1266 Try \`$0 --help' for more information."
1267 ;;
1268
1269 *=*)
1270 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1271 # Reject names that are not valid shell variable names.
1272 case $ac_envvar in #(
1273 '' | [0-9]* | *[!_$as_cr_alnum]* )
1274 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1275 esac
1276 eval $ac_envvar=\$ac_optarg
1277 export $ac_envvar ;;
1278
1279 *)
1280 # FIXME: should be removed in autoconf 3.0.
1281 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1282 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1283 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1284 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1285 ;;
1286
1287 esac
1288 done
1289
1290 if test -n "$ac_prev"; then
1291 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1292 as_fn_error "missing argument to $ac_option"
1293 fi
1294
1295 if test -n "$ac_unrecognized_opts"; then
1296 case $enable_option_checking in
1297 no) ;;
1298 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1299 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1300 esac
1301 fi
1302
1303 # Check all directory arguments for consistency.
1304 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1305 datadir sysconfdir sharedstatedir localstatedir includedir \
1306 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1307 libdir localedir mandir
1308 do
1309 eval ac_val=\$$ac_var
1310 # Remove trailing slashes.
1311 case $ac_val in
1312 */ )
1313 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1314 eval $ac_var=\$ac_val;;
1315 esac
1316 # Be sure to have absolute directory names.
1317 case $ac_val in
1318 [\\/$]* | ?:[\\/]* ) continue;;
1319 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1320 esac
1321 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1322 done
1323
1324 # There might be people who depend on the old broken behavior: `$host'
1325 # used to hold the argument of --host etc.
1326 # FIXME: To remove some day.
1327 build=$build_alias
1328 host=$host_alias
1329 target=$target_alias
1330
1331 # FIXME: To remove some day.
1332 if test "x$host_alias" != x; then
1333 if test "x$build_alias" = x; then
1334 cross_compiling=maybe
1335 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1336 If a cross compiler is detected then cross compile mode will be used." >&2
1337 elif test "x$build_alias" != "x$host_alias"; then
1338 cross_compiling=yes
1339 fi
1340 fi
1341
1342 ac_tool_prefix=
1343 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1344
1345 test "$silent" = yes && exec 6>/dev/null
1346
1347
1348 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1349 ac_ls_di=`ls -di .` &&
1350 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1351 as_fn_error "working directory cannot be determined"
1352 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1353 as_fn_error "pwd does not report name of working directory"
1354
1355
1356 # Find the source files, if location was not specified.
1357 if test -z "$srcdir"; then
1358 ac_srcdir_defaulted=yes
1359 # Try the directory containing this script, then the parent directory.
1360 ac_confdir=`$as_dirname -- "$as_myself" ||
1361 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1362 X"$as_myself" : 'X\(//\)[^/]' \| \
1363 X"$as_myself" : 'X\(//\)$' \| \
1364 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1365 $as_echo X"$as_myself" |
1366 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1367 s//\1/
1368 q
1369 }
1370 /^X\(\/\/\)[^/].*/{
1371 s//\1/
1372 q
1373 }
1374 /^X\(\/\/\)$/{
1375 s//\1/
1376 q
1377 }
1378 /^X\(\/\).*/{
1379 s//\1/
1380 q
1381 }
1382 s/.*/./; q'`
1383 srcdir=$ac_confdir
1384 if test ! -r "$srcdir/$ac_unique_file"; then
1385 srcdir=..
1386 fi
1387 else
1388 ac_srcdir_defaulted=no
1389 fi
1390 if test ! -r "$srcdir/$ac_unique_file"; then
1391 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1392 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1393 fi
1394 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1395 ac_abs_confdir=`(
1396 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1397 pwd)`
1398 # When building in place, set srcdir=.
1399 if test "$ac_abs_confdir" = "$ac_pwd"; then
1400 srcdir=.
1401 fi
1402 # Remove unnecessary trailing slashes from srcdir.
1403 # Double slashes in file names in object file debugging info
1404 # mess up M-x gdb in Emacs.
1405 case $srcdir in
1406 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1407 esac
1408 for ac_var in $ac_precious_vars; do
1409 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1410 eval ac_env_${ac_var}_value=\$${ac_var}
1411 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1412 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1413 done
1414
1415 #
1416 # Report the --help message.
1417 #
1418 if test "$ac_init_help" = "long"; then
1419 # Omit some internal or obsolete options to make the list less imposing.
1420 # This message is too long to be a string in the A/UX 3.1 sh.
1421 cat <<_ACEOF
1422 \`configure' configures libmpcs 0.1 to adapt to many kinds of systems.
1423
1424 Usage: $0 [OPTION]... [VAR=VALUE]...
1425
1426 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1427 VAR=VALUE. See below for descriptions of some of the useful variables.
1428
1429 Defaults for the options are specified in brackets.
1430
1431 Configuration:
1432 -h, --help display this help and exit
1433 --help=short display options specific to this package
1434 --help=recursive display the short help of all the included packages
1435 -V, --version display version information and exit
1436 -q, --quiet, --silent do not print \`checking...' messages
1437 --cache-file=FILE cache test results in FILE [disabled]
1438 -C, --config-cache alias for \`--cache-file=config.cache'
1439 -n, --no-create do not create output files
1440 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1441
1442 Installation directories:
1443 --prefix=PREFIX install architecture-independent files in PREFIX
1444 [$ac_default_prefix]
1445 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1446 [PREFIX]
1447
1448 By default, \`make install' will install all the files in
1449 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1450 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1451 for instance \`--prefix=\$HOME'.
1452
1453 For better control, use the options below.
1454
1455 Fine tuning of the installation directories:
1456 --bindir=DIR user executables [EPREFIX/bin]
1457 --sbindir=DIR system admin executables [EPREFIX/sbin]
1458 --libexecdir=DIR program executables [EPREFIX/libexec]
1459 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1460 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1461 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1462 --libdir=DIR object code libraries [EPREFIX/lib]
1463 --includedir=DIR C header files [PREFIX/include]
1464 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1465 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1466 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1467 --infodir=DIR info documentation [DATAROOTDIR/info]
1468 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1469 --mandir=DIR man documentation [DATAROOTDIR/man]
1470 --docdir=DIR documentation root [DATAROOTDIR/doc/libmpcs]
1471 --htmldir=DIR html documentation [DOCDIR]
1472 --dvidir=DIR dvi documentation [DOCDIR]
1473 --pdfdir=DIR pdf documentation [DOCDIR]
1474 --psdir=DIR ps documentation [DOCDIR]
1475 _ACEOF
1476
1477 cat <<\_ACEOF
1478
1479 Program names:
1480 --program-prefix=PREFIX prepend PREFIX to installed program names
1481 --program-suffix=SUFFIX append SUFFIX to installed program names
1482 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1483
1484 System types:
1485 --build=BUILD configure for building on BUILD [guessed]
1486 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1487 _ACEOF
1488 fi
1489
1490 if test -n "$ac_init_help"; then
1491 case $ac_init_help in
1492 short | recursive ) echo "Configuration of libmpcs 0.1:";;
1493 esac
1494 cat <<\_ACEOF
1495
1496 Optional Features:
1497 --disable-option-checking ignore unrecognized --enable/--with options
1498 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1499 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1500 --disable-dependency-tracking speeds up one-time build
1501 --enable-dependency-tracking do not reject slow dependency extractors
1502 --enable-shared[=PKGS] build shared libraries [default=yes]
1503 --enable-static[=PKGS] build static libraries [default=yes]
1504 --enable-fast-install[=PKGS]
1505 optimize for fast installation [default=yes]
1506 --disable-libtool-lock avoid locking (might break parallel builds)
1507 --enable-mpcchap enable building mpcchap
1508
1509 Optional Packages:
1510 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1511 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1512 --with-pic try to use only PIC/non-PIC objects [default=use
1513 both]
1514 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1515
1516 Some influential environment variables:
1517 CC C compiler command
1518 CFLAGS C compiler flags
1519 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1520 nonstandard directory <lib dir>
1521 LIBS libraries to pass to the linker, e.g. -l<library>
1522 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1523 you have headers in a nonstandard directory <include dir>
1524 CPP C preprocessor
1525
1526 Use these variables to override the choices made by `configure' or to help
1527 it to find libraries and programs with nonstandard names/locations.
1528
1529 Report bugs to the package provider.
1530 _ACEOF
1531 ac_status=$?
1532 fi
1533
1534 if test "$ac_init_help" = "recursive"; then
1535 # If there are subdirs, report their specific --help.
1536 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1537 test -d "$ac_dir" ||
1538 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1539 continue
1540 ac_builddir=.
1541
1542 case "$ac_dir" in
1543 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1544 *)
1545 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1546 # A ".." for each directory in $ac_dir_suffix.
1547 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1548 case $ac_top_builddir_sub in
1549 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1550 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1551 esac ;;
1552 esac
1553 ac_abs_top_builddir=$ac_pwd
1554 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1555 # for backward compatibility:
1556 ac_top_builddir=$ac_top_build_prefix
1557
1558 case $srcdir in
1559 .) # We are building in place.
1560 ac_srcdir=.
1561 ac_top_srcdir=$ac_top_builddir_sub
1562 ac_abs_top_srcdir=$ac_pwd ;;
1563 [\\/]* | ?:[\\/]* ) # Absolute name.
1564 ac_srcdir=$srcdir$ac_dir_suffix;
1565 ac_top_srcdir=$srcdir
1566 ac_abs_top_srcdir=$srcdir ;;
1567 *) # Relative name.
1568 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1569 ac_top_srcdir=$ac_top_build_prefix$srcdir
1570 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1571 esac
1572 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1573
1574 cd "$ac_dir" || { ac_status=$?; continue; }
1575 # Check for guested configure.
1576 if test -f "$ac_srcdir/configure.gnu"; then
1577 echo &&
1578 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1579 elif test -f "$ac_srcdir/configure"; then
1580 echo &&
1581 $SHELL "$ac_srcdir/configure" --help=recursive
1582 else
1583 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1584 fi || ac_status=$?
1585 cd "$ac_pwd" || { ac_status=$?; break; }
1586 done
1587 fi
1588
1589 test -n "$ac_init_help" && exit $ac_status
1590 if $ac_init_version; then
1591 cat <<\_ACEOF
1592 libmpcs configure 0.1
1593 generated by GNU Autoconf 2.65
1594
1595 Copyright (C) 2009 Free Software Foundation, Inc.
1596 This configure script is free software; the Free Software Foundation
1597 gives unlimited permission to copy, distribute and modify it.
1598 _ACEOF
1599 exit
1600 fi
1601
1602 ## ------------------------ ##
1603 ## Autoconf initialization. ##
1604 ## ------------------------ ##
1605
1606 # ac_fn_c_try_compile LINENO
1607 # --------------------------
1608 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1609 ac_fn_c_try_compile ()
1610 {
1611 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1612 rm -f conftest.$ac_objext
1613 if { { ac_try="$ac_compile"
1614 case "(($ac_try" in
1615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1616 *) ac_try_echo=$ac_try;;
1617 esac
1618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1619 $as_echo "$ac_try_echo"; } >&5
1620 (eval "$ac_compile") 2>conftest.err
1621 ac_status=$?
1622 if test -s conftest.err; then
1623 grep -v '^ *+' conftest.err >conftest.er1
1624 cat conftest.er1 >&5
1625 mv -f conftest.er1 conftest.err
1626 fi
1627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1628 test $ac_status = 0; } && {
1629 test -z "$ac_c_werror_flag" ||
1630 test ! -s conftest.err
1631 } && test -s conftest.$ac_objext; then :
1632 ac_retval=0
1633 else
1634 $as_echo "$as_me: failed program was:" >&5
1635 sed 's/^/| /' conftest.$ac_ext >&5
1636
1637 ac_retval=1
1638 fi
1639 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1640 as_fn_set_status $ac_retval
1641
1642 } # ac_fn_c_try_compile
1643
1644 # ac_fn_c_try_link LINENO
1645 # -----------------------
1646 # Try to link conftest.$ac_ext, and return whether this succeeded.
1647 ac_fn_c_try_link ()
1648 {
1649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650 rm -f conftest.$ac_objext conftest$ac_exeext
1651 if { { ac_try="$ac_link"
1652 case "(($ac_try" in
1653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1654 *) ac_try_echo=$ac_try;;
1655 esac
1656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657 $as_echo "$ac_try_echo"; } >&5
1658 (eval "$ac_link") 2>conftest.err
1659 ac_status=$?
1660 if test -s conftest.err; then
1661 grep -v '^ *+' conftest.err >conftest.er1
1662 cat conftest.er1 >&5
1663 mv -f conftest.er1 conftest.err
1664 fi
1665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1666 test $ac_status = 0; } && {
1667 test -z "$ac_c_werror_flag" ||
1668 test ! -s conftest.err
1669 } && test -s conftest$ac_exeext && {
1670 test "$cross_compiling" = yes ||
1671 $as_test_x conftest$ac_exeext
1672 }; then :
1673 ac_retval=0
1674 else
1675 $as_echo "$as_me: failed program was:" >&5
1676 sed 's/^/| /' conftest.$ac_ext >&5
1677
1678 ac_retval=1
1679 fi
1680 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1681 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1682 # interfere with the next link command; also delete a directory that is
1683 # left behind by Apple's compiler. We do this before executing the actions.
1684 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1685 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1686 as_fn_set_status $ac_retval
1687
1688 } # ac_fn_c_try_link
1689
1690 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1691 # -------------------------------------------------------
1692 # Tests whether HEADER exists and can be compiled using the include files in
1693 # INCLUDES, setting the cache variable VAR accordingly.
1694 ac_fn_c_check_header_compile ()
1695 {
1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1698 $as_echo_n "checking for $2... " >&6; }
1699 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1700 $as_echo_n "(cached) " >&6
1701 else
1702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1703 /* end confdefs.h. */
1704 $4
1705 #include <$2>
1706 _ACEOF
1707 if ac_fn_c_try_compile "$LINENO"; then :
1708 eval "$3=yes"
1709 else
1710 eval "$3=no"
1711 fi
1712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1713 fi
1714 eval ac_res=\$$3
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1716 $as_echo "$ac_res" >&6; }
1717 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1718
1719 } # ac_fn_c_check_header_compile
1720
1721 # ac_fn_c_try_cpp LINENO
1722 # ----------------------
1723 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1724 ac_fn_c_try_cpp ()
1725 {
1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727 if { { ac_try="$ac_cpp conftest.$ac_ext"
1728 case "(($ac_try" in
1729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730 *) ac_try_echo=$ac_try;;
1731 esac
1732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733 $as_echo "$ac_try_echo"; } >&5
1734 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1735 ac_status=$?
1736 if test -s conftest.err; then
1737 grep -v '^ *+' conftest.err >conftest.er1
1738 cat conftest.er1 >&5
1739 mv -f conftest.er1 conftest.err
1740 fi
1741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742 test $ac_status = 0; } >/dev/null && {
1743 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1744 test ! -s conftest.err
1745 }; then :
1746 ac_retval=0
1747 else
1748 $as_echo "$as_me: failed program was:" >&5
1749 sed 's/^/| /' conftest.$ac_ext >&5
1750
1751 ac_retval=1
1752 fi
1753 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1754 as_fn_set_status $ac_retval
1755
1756 } # ac_fn_c_try_cpp
1757
1758 # ac_fn_c_try_run LINENO
1759 # ----------------------
1760 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1761 # that executables *can* be run.
1762 ac_fn_c_try_run ()
1763 {
1764 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765 if { { ac_try="$ac_link"
1766 case "(($ac_try" in
1767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1768 *) ac_try_echo=$ac_try;;
1769 esac
1770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1771 $as_echo "$ac_try_echo"; } >&5
1772 (eval "$ac_link") 2>&5
1773 ac_status=$?
1774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1775 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1776 { { case "(($ac_try" in
1777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1778 *) ac_try_echo=$ac_try;;
1779 esac
1780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1781 $as_echo "$ac_try_echo"; } >&5
1782 (eval "$ac_try") 2>&5
1783 ac_status=$?
1784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1785 test $ac_status = 0; }; }; then :
1786 ac_retval=0
1787 else
1788 $as_echo "$as_me: program exited with status $ac_status" >&5
1789 $as_echo "$as_me: failed program was:" >&5
1790 sed 's/^/| /' conftest.$ac_ext >&5
1791
1792 ac_retval=$ac_status
1793 fi
1794 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1795 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1796 as_fn_set_status $ac_retval
1797
1798 } # ac_fn_c_try_run
1799
1800 # ac_fn_c_check_func LINENO FUNC VAR
1801 # ----------------------------------
1802 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1803 ac_fn_c_check_func ()
1804 {
1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1807 $as_echo_n "checking for $2... " >&6; }
1808 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1809 $as_echo_n "(cached) " >&6
1810 else
1811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1812 /* end confdefs.h. */
1813 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1814 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1815 #define $2 innocuous_$2
1816
1817 /* System header to define __stub macros and hopefully few prototypes,
1818 which can conflict with char $2 (); below.
1819 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1820 <limits.h> exists even on freestanding compilers. */
1821
1822 #ifdef __STDC__
1823 # include <limits.h>
1824 #else
1825 # include <assert.h>
1826 #endif
1827
1828 #undef $2
1829
1830 /* Override any GCC internal prototype to avoid an error.
1831 Use char because int might match the return type of a GCC
1832 builtin and then its argument prototype would still apply. */
1833 #ifdef __cplusplus
1834 extern "C"
1835 #endif
1836 char $2 ();
1837 /* The GNU C library defines this for functions which it implements
1838 to always fail with ENOSYS. Some functions are actually named
1839 something starting with __ and the normal name is an alias. */
1840 #if defined __stub_$2 || defined __stub___$2
1841 choke me
1842 #endif
1843
1844 int
1845 main ()
1846 {
1847 return $2 ();
1848 ;
1849 return 0;
1850 }
1851 _ACEOF
1852 if ac_fn_c_try_link "$LINENO"; then :
1853 eval "$3=yes"
1854 else
1855 eval "$3=no"
1856 fi
1857 rm -f core conftest.err conftest.$ac_objext \
1858 conftest$ac_exeext conftest.$ac_ext
1859 fi
1860 eval ac_res=\$$3
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1862 $as_echo "$ac_res" >&6; }
1863 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1864
1865 } # ac_fn_c_check_func
1866
1867 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1868 # -------------------------------------------------------
1869 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1870 # the include files in INCLUDES and setting the cache variable VAR
1871 # accordingly.
1872 ac_fn_c_check_header_mongrel ()
1873 {
1874 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1875 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1877 $as_echo_n "checking for $2... " >&6; }
1878 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1879 $as_echo_n "(cached) " >&6
1880 fi
1881 eval ac_res=\$$3
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1883 $as_echo "$ac_res" >&6; }
1884 else
1885 # Is the header compilable?
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1887 $as_echo_n "checking $2 usability... " >&6; }
1888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1889 /* end confdefs.h. */
1890 $4
1891 #include <$2>
1892 _ACEOF
1893 if ac_fn_c_try_compile "$LINENO"; then :
1894 ac_header_compiler=yes
1895 else
1896 ac_header_compiler=no
1897 fi
1898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1900 $as_echo "$ac_header_compiler" >&6; }
1901
1902 # Is the header present?
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1904 $as_echo_n "checking $2 presence... " >&6; }
1905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1906 /* end confdefs.h. */
1907 #include <$2>
1908 _ACEOF
1909 if ac_fn_c_try_cpp "$LINENO"; then :
1910 ac_header_preproc=yes
1911 else
1912 ac_header_preproc=no
1913 fi
1914 rm -f conftest.err conftest.$ac_ext
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1916 $as_echo "$ac_header_preproc" >&6; }
1917
1918 # So? What about this header?
1919 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1920 yes:no: )
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1922 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1924 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1925 ;;
1926 no:yes:* )
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1928 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1930 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1932 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1934 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1936 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1937 ;;
1938 esac
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1940 $as_echo_n "checking for $2... " >&6; }
1941 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1942 $as_echo_n "(cached) " >&6
1943 else
1944 eval "$3=\$ac_header_compiler"
1945 fi
1946 eval ac_res=\$$3
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1948 $as_echo "$ac_res" >&6; }
1949 fi
1950 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1951
1952 } # ac_fn_c_check_header_mongrel
1953 cat >config.log <<_ACEOF
1954 This file contains any messages produced by compilers while
1955 running configure, to aid debugging if configure makes a mistake.
1956
1957 It was created by libmpcs $as_me 0.1, which was
1958 generated by GNU Autoconf 2.65. Invocation command line was
1959
1960 $ $0 $@
1961
1962 _ACEOF
1963 exec 5>>config.log
1964 {
1965 cat <<_ASUNAME
1966 ## --------- ##
1967 ## Platform. ##
1968 ## --------- ##
1969
1970 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1971 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1972 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1973 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1974 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1975
1976 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1977 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1978
1979 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1980 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1981 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1982 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1983 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1984 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1985 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1986
1987 _ASUNAME
1988
1989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1990 for as_dir in $PATH
1991 do
1992 IFS=$as_save_IFS
1993 test -z "$as_dir" && as_dir=.
1994 $as_echo "PATH: $as_dir"
1995 done
1996 IFS=$as_save_IFS
1997
1998 } >&5
1999
2000 cat >&5 <<_ACEOF
2001
2002
2003 ## ----------- ##
2004 ## Core tests. ##
2005 ## ----------- ##
2006
2007 _ACEOF
2008
2009
2010 # Keep a trace of the command line.
2011 # Strip out --no-create and --no-recursion so they do not pile up.
2012 # Strip out --silent because we don't want to record it for future runs.
2013 # Also quote any args containing shell meta-characters.
2014 # Make two passes to allow for proper duplicate-argument suppression.
2015 ac_configure_args=
2016 ac_configure_args0=
2017 ac_configure_args1=
2018 ac_must_keep_next=false
2019 for ac_pass in 1 2
2020 do
2021 for ac_arg
2022 do
2023 case $ac_arg in
2024 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2025 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2026 | -silent | --silent | --silen | --sile | --sil)
2027 continue ;;
2028 *\'*)
2029 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2030 esac
2031 case $ac_pass in
2032 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2033 2)
2034 as_fn_append ac_configure_args1 " '$ac_arg'"
2035 if test $ac_must_keep_next = true; then
2036 ac_must_keep_next=false # Got value, back to normal.
2037 else
2038 case $ac_arg in
2039 *=* | --config-cache | -C | -disable-* | --disable-* \
2040 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2041 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2042 | -with-* | --with-* | -without-* | --without-* | --x)
2043 case "$ac_configure_args0 " in
2044 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2045 esac
2046 ;;
2047 -* ) ac_must_keep_next=true ;;
2048 esac
2049 fi
2050 as_fn_append ac_configure_args " '$ac_arg'"
2051 ;;
2052 esac
2053 done
2054 done
2055 { ac_configure_args0=; unset ac_configure_args0;}
2056 { ac_configure_args1=; unset ac_configure_args1;}
2057
2058 # When interrupted or exit'd, cleanup temporary files, and complete
2059 # config.log. We remove comments because anyway the quotes in there
2060 # would cause problems or look ugly.
2061 # WARNING: Use '\'' to represent an apostrophe within the trap.
2062 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2063 trap 'exit_status=$?
2064 # Save into config.log some information that might help in debugging.
2065 {
2066 echo
2067
2068 cat <<\_ASBOX
2069 ## ---------------- ##
2070 ## Cache variables. ##
2071 ## ---------------- ##
2072 _ASBOX
2073 echo
2074 # The following way of writing the cache mishandles newlines in values,
2075 (
2076 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2077 eval ac_val=\$$ac_var
2078 case $ac_val in #(
2079 *${as_nl}*)
2080 case $ac_var in #(
2081 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2082 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2083 esac
2084 case $ac_var in #(
2085 _ | IFS | as_nl) ;; #(
2086 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2087 *) { eval $ac_var=; unset $ac_var;} ;;
2088 esac ;;
2089 esac
2090 done
2091 (set) 2>&1 |
2092 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2093 *${as_nl}ac_space=\ *)
2094 sed -n \
2095 "s/'\''/'\''\\\\'\'''\''/g;
2096 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2097 ;; #(
2098 *)
2099 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2100 ;;
2101 esac |
2102 sort
2103 )
2104 echo
2105
2106 cat <<\_ASBOX
2107 ## ----------------- ##
2108 ## Output variables. ##
2109 ## ----------------- ##
2110 _ASBOX
2111 echo
2112 for ac_var in $ac_subst_vars
2113 do
2114 eval ac_val=\$$ac_var
2115 case $ac_val in
2116 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2117 esac
2118 $as_echo "$ac_var='\''$ac_val'\''"
2119 done | sort
2120 echo
2121
2122 if test -n "$ac_subst_files"; then
2123 cat <<\_ASBOX
2124 ## ------------------- ##
2125 ## File substitutions. ##
2126 ## ------------------- ##
2127 _ASBOX
2128 echo
2129 for ac_var in $ac_subst_files
2130 do
2131 eval ac_val=\$$ac_var
2132 case $ac_val in
2133 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2134 esac
2135 $as_echo "$ac_var='\''$ac_val'\''"
2136 done | sort
2137 echo
2138 fi
2139
2140 if test -s confdefs.h; then
2141 cat <<\_ASBOX
2142 ## ----------- ##
2143 ## confdefs.h. ##
2144 ## ----------- ##
2145 _ASBOX
2146 echo
2147 cat confdefs.h
2148 echo
2149 fi
2150 test "$ac_signal" != 0 &&
2151 $as_echo "$as_me: caught signal $ac_signal"
2152 $as_echo "$as_me: exit $exit_status"
2153 } >&5
2154 rm -f core *.core core.conftest.* &&
2155 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2156 exit $exit_status
2157 ' 0
2158 for ac_signal in 1 2 13 15; do
2159 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2160 done
2161 ac_signal=0
2162
2163 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2164 rm -f -r conftest* confdefs.h
2165
2166 $as_echo "/* confdefs.h */" > confdefs.h
2167
2168 # Predefined preprocessor variables.
2169
2170 cat >>confdefs.h <<_ACEOF
2171 #define PACKAGE_NAME "$PACKAGE_NAME"
2172 _ACEOF
2173
2174 cat >>confdefs.h <<_ACEOF
2175 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2176 _ACEOF
2177
2178 cat >>confdefs.h <<_ACEOF
2179 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2180 _ACEOF
2181
2182 cat >>confdefs.h <<_ACEOF
2183 #define PACKAGE_STRING "$PACKAGE_STRING"
2184 _ACEOF
2185
2186 cat >>confdefs.h <<_ACEOF
2187 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2188 _ACEOF
2189
2190 cat >>confdefs.h <<_ACEOF
2191 #define PACKAGE_URL "$PACKAGE_URL"
2192 _ACEOF
2193
2194
2195 # Let the site file select an alternate cache file if it wants to.
2196 # Prefer an explicitly selected file to automatically selected ones.
2197 ac_site_file1=NONE
2198 ac_site_file2=NONE
2199 if test -n "$CONFIG_SITE"; then
2200 ac_site_file1=$CONFIG_SITE
2201 elif test "x$prefix" != xNONE; then
2202 ac_site_file1=$prefix/share/config.site
2203 ac_site_file2=$prefix/etc/config.site
2204 else
2205 ac_site_file1=$ac_default_prefix/share/config.site
2206 ac_site_file2=$ac_default_prefix/etc/config.site
2207 fi
2208 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2209 do
2210 test "x$ac_site_file" = xNONE && continue
2211 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2213 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2214 sed 's/^/| /' "$ac_site_file" >&5
2215 . "$ac_site_file"
2216 fi
2217 done
2218
2219 if test -r "$cache_file"; then
2220 # Some versions of bash will fail to source /dev/null (special files
2221 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2222 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2224 $as_echo "$as_me: loading cache $cache_file" >&6;}
2225 case $cache_file in
2226 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2227 *) . "./$cache_file";;
2228 esac
2229 fi
2230 else
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2232 $as_echo "$as_me: creating cache $cache_file" >&6;}
2233 >$cache_file
2234 fi
2235
2236 # Check that the precious variables saved in the cache have kept the same
2237 # value.
2238 ac_cache_corrupted=false
2239 for ac_var in $ac_precious_vars; do
2240 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2241 eval ac_new_set=\$ac_env_${ac_var}_set
2242 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2243 eval ac_new_val=\$ac_env_${ac_var}_value
2244 case $ac_old_set,$ac_new_set in
2245 set,)
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2247 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2248 ac_cache_corrupted=: ;;
2249 ,set)
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2251 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2252 ac_cache_corrupted=: ;;
2253 ,);;
2254 *)
2255 if test "x$ac_old_val" != "x$ac_new_val"; then
2256 # differences in whitespace do not lead to failure.
2257 ac_old_val_w=`echo x $ac_old_val`
2258 ac_new_val_w=`echo x $ac_new_val`
2259 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2261 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2262 ac_cache_corrupted=:
2263 else
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2265 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2266 eval $ac_var=\$ac_old_val
2267 fi
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2269 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2271 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2272 fi;;
2273 esac
2274 # Pass precious variables to config.status.
2275 if test "$ac_new_set" = set; then
2276 case $ac_new_val in
2277 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2278 *) ac_arg=$ac_var=$ac_new_val ;;
2279 esac
2280 case " $ac_configure_args " in
2281 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2282 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2283 esac
2284 fi
2285 done
2286 if $ac_cache_corrupted; then
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2288 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2290 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2291 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2292 fi
2293 ## -------------------- ##
2294 ## Main body of script. ##
2295 ## -------------------- ##
2296
2297 ac_ext=c
2298 ac_cpp='$CPP $CPPFLAGS'
2299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2302
2303
2304 ac_aux_dir=
2305 for ac_dir in config "$srcdir"/config; do
2306 for ac_t in install-sh install.sh shtool; do
2307 if test -f "$ac_dir/$ac_t"; then
2308 ac_aux_dir=$ac_dir
2309 ac_install_sh="$ac_aux_dir/$ac_t -c"
2310 break 2
2311 fi
2312 done
2313 done
2314 if test -z "$ac_aux_dir"; then
2315 as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2316 fi
2317
2318 # These three variables are undocumented and unsupported,
2319 # and are intended to be withdrawn in a future Autoconf release.
2320 # They can cause serious problems if a builder's source tree is in a directory
2321 # whose full name contains unusual characters.
2322 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2323 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2324 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2325
2326
2327
2328
2329 ac_config_headers="$ac_config_headers include/config.h"
2330
2331 am__api_version='1.11'
2332
2333 # Find a good install program. We prefer a C program (faster),
2334 # so one script is as good as another. But avoid the broken or
2335 # incompatible versions:
2336 # SysV /etc/install, /usr/sbin/install
2337 # SunOS /usr/etc/install
2338 # IRIX /sbin/install
2339 # AIX /bin/install
2340 # AmigaOS /C/install, which installs bootblocks on floppy discs
2341 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2342 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2343 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2344 # OS/2's system install, which has a completely different semantic
2345 # ./install, which can be erroneously created by make from ./install.sh.
2346 # Reject install programs that cannot install multiple files.
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2348 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2349 if test -z "$INSTALL"; then
2350 if test "${ac_cv_path_install+set}" = set; then :
2351 $as_echo_n "(cached) " >&6
2352 else
2353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2354 for as_dir in $PATH
2355 do
2356 IFS=$as_save_IFS
2357 test -z "$as_dir" && as_dir=.
2358 # Account for people who put trailing slashes in PATH elements.
2359 case $as_dir/ in #((
2360 ./ | .// | /[cC]/* | \
2361 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2362 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2363 /usr/ucb/* ) ;;
2364 *)
2365 # OSF1 and SCO ODT 3.0 have their own names for install.
2366 # Don't use installbsd from OSF since it installs stuff as root
2367 # by default.
2368 for ac_prog in ginstall scoinst install; do
2369 for ac_exec_ext in '' $ac_executable_extensions; do
2370 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2371 if test $ac_prog = install &&
2372 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2373 # AIX install. It has an incompatible calling convention.
2374 :
2375 elif test $ac_prog = install &&
2376 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2377 # program-specific install script used by HP pwplus--don't use.
2378 :
2379 else
2380 rm -rf conftest.one conftest.two conftest.dir
2381 echo one > conftest.one
2382 echo two > conftest.two
2383 mkdir conftest.dir
2384 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2385 test -s conftest.one && test -s conftest.two &&
2386 test -s conftest.dir/conftest.one &&
2387 test -s conftest.dir/conftest.two
2388 then
2389 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2390 break 3
2391 fi
2392 fi
2393 fi
2394 done
2395 done
2396 ;;
2397 esac
2398
2399 done
2400 IFS=$as_save_IFS
2401
2402 rm -rf conftest.one conftest.two conftest.dir
2403
2404 fi
2405 if test "${ac_cv_path_install+set}" = set; then
2406 INSTALL=$ac_cv_path_install
2407 else
2408 # As a last resort, use the slow shell script. Don't cache a
2409 # value for INSTALL within a source directory, because that will
2410 # break other packages using the cache if that directory is
2411 # removed, or if the value is a relative name.
2412 INSTALL=$ac_install_sh
2413 fi
2414 fi
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2416 $as_echo "$INSTALL" >&6; }
2417
2418 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2419 # It thinks the first close brace ends the variable substitution.
2420 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2421
2422 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2423
2424 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2425
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2427 $as_echo_n "checking whether build environment is sane... " >&6; }
2428 # Just in case
2429 sleep 1
2430 echo timestamp > conftest.file
2431 # Reject unsafe characters in $srcdir or the absolute working directory
2432 # name. Accept space and tab only in the latter.
2433 am_lf='
2434 '
2435 case `pwd` in
2436 *[\\\"\#\$\&\'\`$am_lf]*)
2437 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2438 esac
2439 case $srcdir in
2440 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2441 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2442 esac
2443
2444 # Do `set' in a subshell so we don't clobber the current shell's
2445 # arguments. Must try -L first in case configure is actually a
2446 # symlink; some systems play weird games with the mod time of symlinks
2447 # (eg FreeBSD returns the mod time of the symlink's containing
2448 # directory).
2449 if (
2450 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2451 if test "$*" = "X"; then
2452 # -L didn't work.
2453 set X `ls -t "$srcdir/configure" conftest.file`
2454 fi
2455 rm -f conftest.file
2456 if test "$*" != "X $srcdir/configure conftest.file" \
2457 && test "$*" != "X conftest.file $srcdir/configure"; then
2458
2459 # If neither matched, then we have a broken ls. This can happen
2460 # if, for instance, CONFIG_SHELL is bash and it inherits a
2461 # broken ls alias from the environment. This has actually
2462 # happened. Such a system could not be considered "sane".
2463 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2464 alias in your environment" "$LINENO" 5
2465 fi
2466
2467 test "$2" = conftest.file
2468 )
2469 then
2470 # Ok.
2471 :
2472 else
2473 as_fn_error "newly created file is older than distributed files!
2474 Check your system clock" "$LINENO" 5
2475 fi
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2477 $as_echo "yes" >&6; }
2478 test "$program_prefix" != NONE &&
2479 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2480 # Use a double $ so make ignores it.
2481 test "$program_suffix" != NONE &&
2482 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2483 # Double any \ or $.
2484 # By default was `s,x,x', remove it if useless.
2485 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2486 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2487
2488 # expand $ac_aux_dir to an absolute path
2489 am_aux_dir=`cd $ac_aux_dir && pwd`
2490
2491 if test x"${MISSING+set}" != xset; then
2492 case $am_aux_dir in
2493 *\ * | *\ *)
2494 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2495 *)
2496 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2497 esac
2498 fi
2499 # Use eval to expand $SHELL
2500 if eval "$MISSING --run true"; then
2501 am_missing_run="$MISSING --run "
2502 else
2503 am_missing_run=
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2505 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2506 fi
2507
2508 if test x"${install_sh}" != xset; then
2509 case $am_aux_dir in
2510 *\ * | *\ *)
2511 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2512 *)
2513 install_sh="\${SHELL} $am_aux_dir/install-sh"
2514 esac
2515 fi
2516
2517 # Installed binaries are usually stripped using `strip' when the user
2518 # run `make install-strip'. However `strip' might not be the right
2519 # tool to use in cross-compilation environments, therefore Automake
2520 # will honor the `STRIP' environment variable to overrule this program.
2521 if test "$cross_compiling" != no; then
2522 if test -n "$ac_tool_prefix"; then
2523 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2524 set dummy ${ac_tool_prefix}strip; ac_word=$2
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2526 $as_echo_n "checking for $ac_word... " >&6; }
2527 if test "${ac_cv_prog_STRIP+set}" = set; then :
2528 $as_echo_n "(cached) " >&6
2529 else
2530 if test -n "$STRIP"; then
2531 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2532 else
2533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2534 for as_dir in $PATH
2535 do
2536 IFS=$as_save_IFS
2537 test -z "$as_dir" && as_dir=.
2538 for ac_exec_ext in '' $ac_executable_extensions; do
2539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2540 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2542 break 2
2543 fi
2544 done
2545 done
2546 IFS=$as_save_IFS
2547
2548 fi
2549 fi
2550 STRIP=$ac_cv_prog_STRIP
2551 if test -n "$STRIP"; then
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2553 $as_echo "$STRIP" >&6; }
2554 else
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2556 $as_echo "no" >&6; }
2557 fi
2558
2559
2560 fi
2561 if test -z "$ac_cv_prog_STRIP"; then
2562 ac_ct_STRIP=$STRIP
2563 # Extract the first word of "strip", so it can be a program name with args.
2564 set dummy strip; ac_word=$2
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2566 $as_echo_n "checking for $ac_word... " >&6; }
2567 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2568 $as_echo_n "(cached) " >&6
2569 else
2570 if test -n "$ac_ct_STRIP"; then
2571 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2572 else
2573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2574 for as_dir in $PATH
2575 do
2576 IFS=$as_save_IFS
2577 test -z "$as_dir" && as_dir=.
2578 for ac_exec_ext in '' $ac_executable_extensions; do
2579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2580 ac_cv_prog_ac_ct_STRIP="strip"
2581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2582 break 2
2583 fi
2584 done
2585 done
2586 IFS=$as_save_IFS
2587
2588 fi
2589 fi
2590 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2591 if test -n "$ac_ct_STRIP"; then
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2593 $as_echo "$ac_ct_STRIP" >&6; }
2594 else
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2596 $as_echo "no" >&6; }
2597 fi
2598
2599 if test "x$ac_ct_STRIP" = x; then
2600 STRIP=":"
2601 else
2602 case $cross_compiling:$ac_tool_warned in
2603 yes:)
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2605 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2606 ac_tool_warned=yes ;;
2607 esac
2608 STRIP=$ac_ct_STRIP
2609 fi
2610 else
2611 STRIP="$ac_cv_prog_STRIP"
2612 fi
2613
2614 fi
2615 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2616
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2618 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2619 if test -z "$MKDIR_P"; then
2620 if test "${ac_cv_path_mkdir+set}" = set; then :
2621 $as_echo_n "(cached) " >&6
2622 else
2623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2624 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2625 do
2626 IFS=$as_save_IFS
2627 test -z "$as_dir" && as_dir=.
2628 for ac_prog in mkdir gmkdir; do
2629 for ac_exec_ext in '' $ac_executable_extensions; do
2630 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2631 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2632 'mkdir (GNU coreutils) '* | \
2633 'mkdir (coreutils) '* | \
2634 'mkdir (fileutils) '4.1*)
2635 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2636 break 3;;
2637 esac
2638 done
2639 done
2640 done
2641 IFS=$as_save_IFS
2642
2643 fi
2644
2645 test -d ./--version && rmdir ./--version
2646 if test "${ac_cv_path_mkdir+set}" = set; then
2647 MKDIR_P="$ac_cv_path_mkdir -p"
2648 else
2649 # As a last resort, use the slow shell script. Don't cache a
2650 # value for MKDIR_P within a source directory, because that will
2651 # break other packages using the cache if that directory is
2652 # removed, or if the value is a relative name.
2653 MKDIR_P="$ac_install_sh -d"
2654 fi
2655 fi
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2657 $as_echo "$MKDIR_P" >&6; }
2658
2659 mkdir_p="$MKDIR_P"
2660 case $mkdir_p in
2661 [\\/$]* | ?:[\\/]*) ;;
2662 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2663 esac
2664
2665 for ac_prog in gawk mawk nawk awk
2666 do
2667 # Extract the first word of "$ac_prog", so it can be a program name with args.
2668 set dummy $ac_prog; ac_word=$2
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2670 $as_echo_n "checking for $ac_word... " >&6; }
2671 if test "${ac_cv_prog_AWK+set}" = set; then :
2672 $as_echo_n "(cached) " >&6
2673 else
2674 if test -n "$AWK"; then
2675 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2676 else
2677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678 for as_dir in $PATH
2679 do
2680 IFS=$as_save_IFS
2681 test -z "$as_dir" && as_dir=.
2682 for ac_exec_ext in '' $ac_executable_extensions; do
2683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2684 ac_cv_prog_AWK="$ac_prog"
2685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2686 break 2
2687 fi
2688 done
2689 done
2690 IFS=$as_save_IFS
2691
2692 fi
2693 fi
2694 AWK=$ac_cv_prog_AWK
2695 if test -n "$AWK"; then
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2697 $as_echo "$AWK" >&6; }
2698 else
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2700 $as_echo "no" >&6; }
2701 fi
2702
2703
2704 test -n "$AWK" && break
2705 done
2706
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2708 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2709 set x ${MAKE-make}
2710 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2711 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2712 $as_echo_n "(cached) " >&6
2713 else
2714 cat >conftest.make <<\_ACEOF
2715 SHELL = /bin/sh
2716 all:
2717 @echo '@@@%%%=$(MAKE)=@@@%%%'
2718 _ACEOF
2719 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2720 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2721 *@@@%%%=?*=@@@%%%*)
2722 eval ac_cv_prog_make_${ac_make}_set=yes;;
2723 *)
2724 eval ac_cv_prog_make_${ac_make}_set=no;;
2725 esac
2726 rm -f conftest.make
2727 fi
2728 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2730 $as_echo "yes" >&6; }
2731 SET_MAKE=
2732 else
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2734 $as_echo "no" >&6; }
2735 SET_MAKE="MAKE=${MAKE-make}"
2736 fi
2737
2738 rm -rf .tst 2>/dev/null
2739 mkdir .tst 2>/dev/null
2740 if test -d .tst; then
2741 am__leading_dot=.
2742 else
2743 am__leading_dot=_
2744 fi
2745 rmdir .tst 2>/dev/null
2746
2747 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2748 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2749 # is not polluted with repeated "-I."
2750 am__isrc=' -I$(srcdir)'
2751 # test to see if srcdir already configured
2752 if test -f $srcdir/config.status; then
2753 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2754 fi
2755 fi
2756
2757 # test whether we have cygpath
2758 if test -z "$CYGPATH_W"; then
2759 if (cygpath --version) >/dev/null 2>/dev/null; then
2760 CYGPATH_W='cygpath -w'
2761 else
2762 CYGPATH_W=echo
2763 fi
2764 fi
2765
2766
2767 # Define the identity of the package.
2768 PACKAGE='libmpcs'
2769 VERSION='0.1'
2770
2771
2772 cat >>confdefs.h <<_ACEOF
2773 #define PACKAGE "$PACKAGE"
2774 _ACEOF
2775
2776
2777 cat >>confdefs.h <<_ACEOF
2778 #define VERSION "$VERSION"
2779 _ACEOF
2780
2781 # Some tools Automake needs.
2782
2783 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2784
2785
2786 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2787
2788
2789 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2790
2791
2792 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2793
2794
2795 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2796
2797 # We need awk for the "check" target. The system "awk" is bad on
2798 # some platforms.
2799 # Always define AMTAR for backward compatibility.
2800
2801 AMTAR=${AMTAR-"${am_missing_run}tar"}
2802
2803 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2804
2805
2806
2807
2808
2809
2810 ac_ext=c
2811 ac_cpp='$CPP $CPPFLAGS'
2812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2815
2816 ac_ext=c
2817 ac_cpp='$CPP $CPPFLAGS'
2818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2821 if test -n "$ac_tool_prefix"; then
2822 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2823 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2825 $as_echo_n "checking for $ac_word... " >&6; }
2826 if test "${ac_cv_prog_CC+set}" = set; then :
2827 $as_echo_n "(cached) " >&6
2828 else
2829 if test -n "$CC"; then
2830 ac_cv_prog_CC="$CC" # Let the user override the test.
2831 else
2832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2833 for as_dir in $PATH
2834 do
2835 IFS=$as_save_IFS
2836 test -z "$as_dir" && as_dir=.
2837 for ac_exec_ext in '' $ac_executable_extensions; do
2838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2839 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2841 break 2
2842 fi
2843 done
2844 done
2845 IFS=$as_save_IFS
2846
2847 fi
2848 fi
2849 CC=$ac_cv_prog_CC
2850 if test -n "$CC"; then
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2852 $as_echo "$CC" >&6; }
2853 else
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2855 $as_echo "no" >&6; }
2856 fi
2857
2858
2859 fi
2860 if test -z "$ac_cv_prog_CC"; then
2861 ac_ct_CC=$CC
2862 # Extract the first word of "gcc", so it can be a program name with args.
2863 set dummy gcc; ac_word=$2
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2865 $as_echo_n "checking for $ac_word... " >&6; }
2866 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2867 $as_echo_n "(cached) " >&6
2868 else
2869 if test -n "$ac_ct_CC"; then
2870 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2871 else
2872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2873 for as_dir in $PATH
2874 do
2875 IFS=$as_save_IFS
2876 test -z "$as_dir" && as_dir=.
2877 for ac_exec_ext in '' $ac_executable_extensions; do
2878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2879 ac_cv_prog_ac_ct_CC="gcc"
2880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2881 break 2
2882 fi
2883 done
2884 done
2885 IFS=$as_save_IFS
2886
2887 fi
2888 fi
2889 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2890 if test -n "$ac_ct_CC"; then
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2892 $as_echo "$ac_ct_CC" >&6; }
2893 else
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2895 $as_echo "no" >&6; }
2896 fi
2897
2898 if test "x$ac_ct_CC" = x; then
2899 CC=""
2900 else
2901 case $cross_compiling:$ac_tool_warned in
2902 yes:)
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2904 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2905 ac_tool_warned=yes ;;
2906 esac
2907 CC=$ac_ct_CC
2908 fi
2909 else
2910 CC="$ac_cv_prog_CC"
2911 fi
2912
2913 if test -z "$CC"; then
2914 if test -n "$ac_tool_prefix"; then
2915 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2916 set dummy ${ac_tool_prefix}cc; ac_word=$2
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2918 $as_echo_n "checking for $ac_word... " >&6; }
2919 if test "${ac_cv_prog_CC+set}" = set; then :
2920 $as_echo_n "(cached) " >&6
2921 else
2922 if test -n "$CC"; then
2923 ac_cv_prog_CC="$CC" # Let the user override the test.
2924 else
2925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2926 for as_dir in $PATH
2927 do
2928 IFS=$as_save_IFS
2929 test -z "$as_dir" && as_dir=.
2930 for ac_exec_ext in '' $ac_executable_extensions; do
2931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2932 ac_cv_prog_CC="${ac_tool_prefix}cc"
2933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2934 break 2
2935 fi
2936 done
2937 done
2938 IFS=$as_save_IFS
2939
2940 fi
2941 fi
2942 CC=$ac_cv_prog_CC
2943 if test -n "$CC"; then
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2945 $as_echo "$CC" >&6; }
2946 else
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2948 $as_echo "no" >&6; }
2949 fi
2950
2951
2952 fi
2953 fi
2954 if test -z "$CC"; then
2955 # Extract the first word of "cc", so it can be a program name with args.
2956 set dummy cc; ac_word=$2
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2958 $as_echo_n "checking for $ac_word... " >&6; }
2959 if test "${ac_cv_prog_CC+set}" = set; then :
2960 $as_echo_n "(cached) " >&6
2961 else
2962 if test -n "$CC"; then
2963 ac_cv_prog_CC="$CC" # Let the user override the test.
2964 else
2965 ac_prog_rejected=no
2966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2967 for as_dir in $PATH
2968 do
2969 IFS=$as_save_IFS
2970 test -z "$as_dir" && as_dir=.
2971 for ac_exec_ext in '' $ac_executable_extensions; do
2972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2973 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2974 ac_prog_rejected=yes
2975 continue
2976 fi
2977 ac_cv_prog_CC="cc"
2978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2979 break 2
2980 fi
2981 done
2982 done
2983 IFS=$as_save_IFS
2984
2985 if test $ac_prog_rejected = yes; then
2986 # We found a bogon in the path, so make sure we never use it.
2987 set dummy $ac_cv_prog_CC
2988 shift
2989 if test $# != 0; then
2990 # We chose a different compiler from the bogus one.
2991 # However, it has the same basename, so the bogon will be chosen
2992 # first if we set CC to just the basename; use the full file name.
2993 shift
2994 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2995 fi
2996 fi
2997 fi
2998 fi
2999 CC=$ac_cv_prog_CC
3000 if test -n "$CC"; then
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3002 $as_echo "$CC" >&6; }
3003 else
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3005 $as_echo "no" >&6; }
3006 fi
3007
3008
3009 fi
3010 if test -z "$CC"; then
3011 if test -n "$ac_tool_prefix"; then
3012 for ac_prog in cl.exe
3013 do
3014 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3015 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3017 $as_echo_n "checking for $ac_word... " >&6; }
3018 if test "${ac_cv_prog_CC+set}" = set; then :
3019 $as_echo_n "(cached) " >&6
3020 else
3021 if test -n "$CC"; then
3022 ac_cv_prog_CC="$CC" # Let the user override the test.
3023 else
3024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3025 for as_dir in $PATH
3026 do
3027 IFS=$as_save_IFS
3028 test -z "$as_dir" && as_dir=.
3029 for ac_exec_ext in '' $ac_executable_extensions; do
3030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3031 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3033 break 2
3034 fi
3035 done
3036 done
3037 IFS=$as_save_IFS
3038
3039 fi
3040 fi
3041 CC=$ac_cv_prog_CC
3042 if test -n "$CC"; then
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3044 $as_echo "$CC" >&6; }
3045 else
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3047 $as_echo "no" >&6; }
3048 fi
3049
3050
3051 test -n "$CC" && break
3052 done
3053 fi
3054 if test -z "$CC"; then
3055 ac_ct_CC=$CC
3056 for ac_prog in cl.exe
3057 do
3058 # Extract the first word of "$ac_prog", so it can be a program name with args.
3059 set dummy $ac_prog; ac_word=$2
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3061 $as_echo_n "checking for $ac_word... " >&6; }
3062 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3063 $as_echo_n "(cached) " >&6
3064 else
3065 if test -n "$ac_ct_CC"; then
3066 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3067 else
3068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3069 for as_dir in $PATH
3070 do
3071 IFS=$as_save_IFS
3072 test -z "$as_dir" && as_dir=.
3073 for ac_exec_ext in '' $ac_executable_extensions; do
3074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3075 ac_cv_prog_ac_ct_CC="$ac_prog"
3076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3077 break 2
3078 fi
3079 done
3080 done
3081 IFS=$as_save_IFS
3082
3083 fi
3084 fi
3085 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3086 if test -n "$ac_ct_CC"; then
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3088 $as_echo "$ac_ct_CC" >&6; }
3089 else
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3091 $as_echo "no" >&6; }
3092 fi
3093
3094
3095 test -n "$ac_ct_CC" && break
3096 done
3097
3098 if test "x$ac_ct_CC" = x; then
3099 CC=""
3100 else
3101 case $cross_compiling:$ac_tool_warned in
3102 yes:)
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3104 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3105 ac_tool_warned=yes ;;
3106 esac
3107 CC=$ac_ct_CC
3108 fi
3109 fi
3110
3111 fi
3112
3113
3114 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3115 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3116 as_fn_error "no acceptable C compiler found in \$PATH
3117 See \`config.log' for more details." "$LINENO" 5; }
3118
3119 # Provide some information about the compiler.
3120 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3121 set X $ac_compile
3122 ac_compiler=$2
3123 for ac_option in --version -v -V -qversion; do
3124 { { ac_try="$ac_compiler $ac_option >&5"
3125 case "(($ac_try" in
3126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127 *) ac_try_echo=$ac_try;;
3128 esac
3129 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3130 $as_echo "$ac_try_echo"; } >&5
3131 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3132 ac_status=$?
3133 if test -s conftest.err; then
3134 sed '10a\
3135 ... rest of stderr output deleted ...
3136 10q' conftest.err >conftest.er1
3137 cat conftest.er1 >&5
3138 fi
3139 rm -f conftest.er1 conftest.err
3140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3141 test $ac_status = 0; }
3142 done
3143
3144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3145 /* end confdefs.h. */
3146
3147 int
3148 main ()
3149 {
3150
3151 ;
3152 return 0;
3153 }
3154 _ACEOF
3155 ac_clean_files_save=$ac_clean_files
3156 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3157 # Try to create an executable without -o first, disregard a.out.
3158 # It will help us diagnose broken compilers, and finding out an intuition
3159 # of exeext.
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3161 $as_echo_n "checking whether the C compiler works... " >&6; }
3162 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3163
3164 # The possible output files:
3165 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3166
3167 ac_rmfiles=
3168 for ac_file in $ac_files
3169 do
3170 case $ac_file in
3171 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3172 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3173 esac
3174 done
3175 rm -f $ac_rmfiles
3176
3177 if { { ac_try="$ac_link_default"
3178 case "(($ac_try" in
3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180 *) ac_try_echo=$ac_try;;
3181 esac
3182 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3183 $as_echo "$ac_try_echo"; } >&5
3184 (eval "$ac_link_default") 2>&5
3185 ac_status=$?
3186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3187 test $ac_status = 0; }; then :
3188 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3189 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3190 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3191 # so that the user can short-circuit this test for compilers unknown to
3192 # Autoconf.
3193 for ac_file in $ac_files ''
3194 do
3195 test -f "$ac_file" || continue
3196 case $ac_file in
3197 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3198 ;;
3199 [ab].out )
3200 # We found the default executable, but exeext='' is most
3201 # certainly right.
3202 break;;
3203 *.* )
3204 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3205 then :; else
3206 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3207 fi
3208 # We set ac_cv_exeext here because the later test for it is not
3209 # safe: cross compilers may not add the suffix if given an `-o'
3210 # argument, so we may need to know it at that point already.
3211 # Even if this section looks crufty: it has the advantage of
3212 # actually working.
3213 break;;
3214 * )
3215 break;;
3216 esac
3217 done
3218 test "$ac_cv_exeext" = no && ac_cv_exeext=
3219
3220 else
3221 ac_file=''
3222 fi
3223 if test -z "$ac_file"; then :
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3225 $as_echo "no" >&6; }
3226 $as_echo "$as_me: failed program was:" >&5
3227 sed 's/^/| /' conftest.$ac_ext >&5
3228
3229 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3230 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3231 { as_fn_set_status 77
3232 as_fn_error "C compiler cannot create executables
3233 See \`config.log' for more details." "$LINENO" 5; }; }
3234 else
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3236 $as_echo "yes" >&6; }
3237 fi
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3239 $as_echo_n "checking for C compiler default output file name... " >&6; }
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3241 $as_echo "$ac_file" >&6; }
3242 ac_exeext=$ac_cv_exeext
3243
3244 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3245 ac_clean_files=$ac_clean_files_save
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3247 $as_echo_n "checking for suffix of executables... " >&6; }
3248 if { { ac_try="$ac_link"
3249 case "(($ac_try" in
3250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3251 *) ac_try_echo=$ac_try;;
3252 esac
3253 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3254 $as_echo "$ac_try_echo"; } >&5
3255 (eval "$ac_link") 2>&5
3256 ac_status=$?
3257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3258 test $ac_status = 0; }; then :
3259 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3260 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3261 # work properly (i.e., refer to `conftest.exe'), while it won't with
3262 # `rm'.
3263 for ac_file in conftest.exe conftest conftest.*; do
3264 test -f "$ac_file" || continue
3265 case $ac_file in
3266 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3267 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3268 break;;
3269 * ) break;;
3270 esac
3271 done
3272 else
3273 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3274 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3275 as_fn_error "cannot compute suffix of executables: cannot compile and link
3276 See \`config.log' for more details." "$LINENO" 5; }
3277 fi
3278 rm -f conftest conftest$ac_cv_exeext
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3280 $as_echo "$ac_cv_exeext" >&6; }
3281
3282 rm -f conftest.$ac_ext
3283 EXEEXT=$ac_cv_exeext
3284 ac_exeext=$EXEEXT
3285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3286 /* end confdefs.h. */
3287 #include <stdio.h>
3288 int
3289 main ()
3290 {
3291 FILE *f = fopen ("conftest.out", "w");
3292 return ferror (f) || fclose (f) != 0;
3293
3294 ;
3295 return 0;
3296 }
3297 _ACEOF
3298 ac_clean_files="$ac_clean_files conftest.out"
3299 # Check that the compiler produces executables we can run. If not, either
3300 # the compiler is broken, or we cross compile.
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3302 $as_echo_n "checking whether we are cross compiling... " >&6; }
3303 if test "$cross_compiling" != yes; then
3304 { { ac_try="$ac_link"
3305 case "(($ac_try" in
3306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3307 *) ac_try_echo=$ac_try;;
3308 esac
3309 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3310 $as_echo "$ac_try_echo"; } >&5
3311 (eval "$ac_link") 2>&5
3312 ac_status=$?
3313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3314 test $ac_status = 0; }
3315 if { ac_try='./conftest$ac_cv_exeext'
3316 { { case "(($ac_try" in
3317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318 *) ac_try_echo=$ac_try;;
3319 esac
3320 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3321 $as_echo "$ac_try_echo"; } >&5
3322 (eval "$ac_try") 2>&5
3323 ac_status=$?
3324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3325 test $ac_status = 0; }; }; then
3326 cross_compiling=no
3327 else
3328 if test "$cross_compiling" = maybe; then
3329 cross_compiling=yes
3330 else
3331 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3332 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3333 as_fn_error "cannot run C compiled programs.
3334 If you meant to cross compile, use \`--host'.
3335 See \`config.log' for more details." "$LINENO" 5; }
3336 fi
3337 fi
3338 fi
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3340 $as_echo "$cross_compiling" >&6; }
3341
3342 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3343 ac_clean_files=$ac_clean_files_save
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3345 $as_echo_n "checking for suffix of object files... " >&6; }
3346 if test "${ac_cv_objext+set}" = set; then :
3347 $as_echo_n "(cached) " >&6
3348 else
3349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3350 /* end confdefs.h. */
3351
3352 int
3353 main ()
3354 {
3355
3356 ;
3357 return 0;
3358 }
3359 _ACEOF
3360 rm -f conftest.o conftest.obj
3361 if { { ac_try="$ac_compile"
3362 case "(($ac_try" in
3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364 *) ac_try_echo=$ac_try;;
3365 esac
3366 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3367 $as_echo "$ac_try_echo"; } >&5
3368 (eval "$ac_compile") 2>&5
3369 ac_status=$?
3370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3371 test $ac_status = 0; }; then :
3372 for ac_file in conftest.o conftest.obj conftest.*; do
3373 test -f "$ac_file" || continue;
3374 case $ac_file in
3375 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3376 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3377 break;;
3378 esac
3379 done
3380 else
3381 $as_echo "$as_me: failed program was:" >&5
3382 sed 's/^/| /' conftest.$ac_ext >&5
3383
3384 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3385 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3386 as_fn_error "cannot compute suffix of object files: cannot compile
3387 See \`config.log' for more details." "$LINENO" 5; }
3388 fi
3389 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3390 fi
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3392 $as_echo "$ac_cv_objext" >&6; }
3393 OBJEXT=$ac_cv_objext
3394 ac_objext=$OBJEXT
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3396 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3397 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3398 $as_echo_n "(cached) " >&6
3399 else
3400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3401 /* end confdefs.h. */
3402
3403 int
3404 main ()
3405 {
3406 #ifndef __GNUC__
3407 choke me
3408 #endif
3409
3410 ;
3411 return 0;
3412 }
3413 _ACEOF
3414 if ac_fn_c_try_compile "$LINENO"; then :
3415 ac_compiler_gnu=yes
3416 else
3417 ac_compiler_gnu=no
3418 fi
3419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3420 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3421
3422 fi
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3424 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3425 if test $ac_compiler_gnu = yes; then
3426 GCC=yes
3427 else
3428 GCC=
3429 fi
3430 ac_test_CFLAGS=${CFLAGS+set}
3431 ac_save_CFLAGS=$CFLAGS
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3433 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3434 if test "${ac_cv_prog_cc_g+set}" = set; then :
3435 $as_echo_n "(cached) " >&6
3436 else
3437 ac_save_c_werror_flag=$ac_c_werror_flag
3438 ac_c_werror_flag=yes
3439 ac_cv_prog_cc_g=no
3440 CFLAGS="-g"
3441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3442 /* end confdefs.h. */
3443
3444 int
3445 main ()
3446 {
3447
3448 ;
3449 return 0;
3450 }
3451 _ACEOF
3452 if ac_fn_c_try_compile "$LINENO"; then :
3453 ac_cv_prog_cc_g=yes
3454 else
3455 CFLAGS=""
3456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3457 /* end confdefs.h. */
3458
3459 int
3460 main ()
3461 {
3462
3463 ;
3464 return 0;
3465 }
3466 _ACEOF
3467 if ac_fn_c_try_compile "$LINENO"; then :
3468
3469 else
3470 ac_c_werror_flag=$ac_save_c_werror_flag
3471 CFLAGS="-g"
3472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3473 /* end confdefs.h. */
3474
3475 int
3476 main ()
3477 {
3478
3479 ;
3480 return 0;
3481 }
3482 _ACEOF
3483 if ac_fn_c_try_compile "$LINENO"; then :
3484 ac_cv_prog_cc_g=yes
3485 fi
3486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3487 fi
3488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3489 fi
3490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3491 ac_c_werror_flag=$ac_save_c_werror_flag
3492 fi
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3494 $as_echo "$ac_cv_prog_cc_g" >&6; }
3495 if test "$ac_test_CFLAGS" = set; then
3496 CFLAGS=$ac_save_CFLAGS
3497 elif test $ac_cv_prog_cc_g = yes; then
3498 if test "$GCC" = yes; then
3499 CFLAGS="-g -O2"
3500 else
3501 CFLAGS="-g"
3502 fi
3503 else
3504 if test "$GCC" = yes; then
3505 CFLAGS="-O2"
3506 else
3507 CFLAGS=
3508 fi
3509 fi
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3511 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3512 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3513 $as_echo_n "(cached) " >&6
3514 else
3515 ac_cv_prog_cc_c89=no
3516 ac_save_CC=$CC
3517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3518 /* end confdefs.h. */
3519 #include <stdarg.h>
3520 #include <stdio.h>
3521 #include <sys/types.h>
3522 #include <sys/stat.h>
3523 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3524 struct buf { int x; };
3525 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3526 static char *e (p, i)
3527 char **p;
3528 int i;
3529 {
3530 return p[i];
3531 }
3532 static char *f (char * (*g) (char **, int), char **p, ...)
3533 {
3534 char *s;
3535 va_list v;
3536 va_start (v,p);
3537 s = g (p, va_arg (v,int));
3538 va_end (v);
3539 return s;
3540 }
3541
3542 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3543 function prototypes and stuff, but not '\xHH' hex character constants.
3544 These don't provoke an error unfortunately, instead are silently treated
3545 as 'x'. The following induces an error, until -std is added to get
3546 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3547 array size at least. It's necessary to write '\x00'==0 to get something
3548 that's true only with -std. */
3549 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3550
3551 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3552 inside strings and character constants. */
3553 #define FOO(x) 'x'
3554 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3555
3556 int test (int i, double x);
3557 struct s1 {int (*f) (int a);};
3558 struct s2 {int (*f) (double a);};
3559 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3560 int argc;
3561 char **argv;
3562 int
3563 main ()
3564 {
3565 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3566 ;
3567 return 0;
3568 }
3569 _ACEOF
3570 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3571 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3572 do
3573 CC="$ac_save_CC $ac_arg"
3574 if ac_fn_c_try_compile "$LINENO"; then :
3575 ac_cv_prog_cc_c89=$ac_arg
3576 fi
3577 rm -f core conftest.err conftest.$ac_objext
3578 test "x$ac_cv_prog_cc_c89" != "xno" && break
3579 done
3580 rm -f conftest.$ac_ext
3581 CC=$ac_save_CC
3582
3583 fi
3584 # AC_CACHE_VAL
3585 case "x$ac_cv_prog_cc_c89" in
3586 x)
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3588 $as_echo "none needed" >&6; } ;;
3589 xno)
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3591 $as_echo "unsupported" >&6; } ;;
3592 *)
3593 CC="$CC $ac_cv_prog_cc_c89"
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3595 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3596 esac
3597 if test "x$ac_cv_prog_cc_c89" != xno; then :
3598
3599 fi
3600
3601 ac_ext=c
3602 ac_cpp='$CPP $CPPFLAGS'
3603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3606 DEPDIR="${am__leading_dot}deps"
3607
3608 ac_config_commands="$ac_config_commands depfiles"
3609
3610
3611 am_make=${MAKE-make}
3612 cat > confinc << 'END'
3613 am__doit:
3614 @echo this is the am__doit target
3615 .PHONY: am__doit
3616 END
3617 # If we don't find an include directive, just comment out the code.
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3619 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3620 am__include="#"
3621 am__quote=
3622 _am_result=none
3623 # First try GNU make style include.
3624 echo "include confinc" > confmf
3625 # Ignore all kinds of additional output from `make'.
3626 case `$am_make -s -f confmf 2> /dev/null` in #(
3627 *the\ am__doit\ target*)
3628 am__include=include
3629 am__quote=
3630 _am_result=GNU
3631 ;;
3632 esac
3633 # Now try BSD make style include.
3634 if test "$am__include" = "#"; then
3635 echo '.include "confinc"' > confmf
3636 case `$am_make -s -f confmf 2> /dev/null` in #(
3637 *the\ am__doit\ target*)
3638 am__include=.include
3639 am__quote="\""
3640 _am_result=BSD
3641 ;;
3642 esac
3643 fi
3644
3645
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3647 $as_echo "$_am_result" >&6; }
3648 rm -f confinc confmf
3649
3650 # Check whether --enable-dependency-tracking was given.
3651 if test "${enable_dependency_tracking+set}" = set; then :
3652 enableval=$enable_dependency_tracking;
3653 fi
3654
3655 if test "x$enable_dependency_tracking" != xno; then
3656 am_depcomp="$ac_aux_dir/depcomp"
3657 AMDEPBACKSLASH='\'
3658 fi
3659 if test "x$enable_dependency_tracking" != xno; then
3660 AMDEP_TRUE=
3661 AMDEP_FALSE='#'
3662 else
3663 AMDEP_TRUE='#'
3664 AMDEP_FALSE=
3665 fi
3666
3667
3668
3669 depcc="$CC" am_compiler_list=
3670
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3672 $as_echo_n "checking dependency style of $depcc... " >&6; }
3673 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3674 $as_echo_n "(cached) " >&6
3675 else
3676 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3677 # We make a subdir and do the tests there. Otherwise we can end up
3678 # making bogus files that we don't know about and never remove. For
3679 # instance it was reported that on HP-UX the gcc test will end up
3680 # making a dummy file named `D' -- because `-MD' means `put the output
3681 # in D'.
3682 mkdir conftest.dir
3683 # Copy depcomp to subdir because otherwise we won't find it if we're
3684 # using a relative directory.
3685 cp "$am_depcomp" conftest.dir
3686 cd conftest.dir
3687 # We will build objects and dependencies in a subdirectory because
3688 # it helps to detect inapplicable dependency modes. For instance
3689 # both Tru64's cc and ICC support -MD to output dependencies as a
3690 # side effect of compilation, but ICC will put the dependencies in
3691 # the current directory while Tru64 will put them in the object
3692 # directory.
3693 mkdir sub
3694
3695 am_cv_CC_dependencies_compiler_type=none
3696 if test "$am_compiler_list" = ""; then
3697 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3698 fi
3699 am__universal=false
3700 case " $depcc " in #(
3701 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3702 esac
3703
3704 for depmode in $am_compiler_list; do
3705 # Setup a source with many dependencies, because some compilers
3706 # like to wrap large dependency lists on column 80 (with \), and
3707 # we should not choose a depcomp mode which is confused by this.
3708 #
3709 # We need to recreate these files for each test, as the compiler may
3710 # overwrite some of them when testing with obscure command lines.
3711 # This happens at least with the AIX C compiler.
3712 : > sub/conftest.c
3713 for i in 1 2 3 4 5 6; do
3714 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3715 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3716 # Solaris 8's {/usr,}/bin/sh.
3717 touch sub/conftst$i.h
3718 done
3719 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3720
3721 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3722 # mode. It turns out that the SunPro C++ compiler does not properly
3723 # handle `-M -o', and we need to detect this. Also, some Intel
3724 # versions had trouble with output in subdirs
3725 am__obj=sub/conftest.${OBJEXT-o}
3726 am__minus_obj="-o $am__obj"
3727 case $depmode in
3728 gcc)
3729 # This depmode causes a compiler race in universal mode.
3730 test "$am__universal" = false || continue
3731 ;;
3732 nosideeffect)
3733 # after this tag, mechanisms are not by side-effect, so they'll
3734 # only be used when explicitly requested
3735 if test "x$enable_dependency_tracking" = xyes; then
3736 continue
3737 else
3738 break
3739 fi
3740 ;;
3741 msvisualcpp | msvcmsys)
3742 # This compiler won't grok `-c -o', but also, the minuso test has
3743 # not run yet. These depmodes are late enough in the game, and
3744 # so weak that their functioning should not be impacted.
3745 am__obj=conftest.${OBJEXT-o}
3746 am__minus_obj=
3747 ;;
3748 none) break ;;
3749 esac
3750 if depmode=$depmode \
3751 source=sub/conftest.c object=$am__obj \
3752 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3753 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3754 >/dev/null 2>conftest.err &&
3755 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3756 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3757 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3758 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3759 # icc doesn't choke on unknown options, it will just issue warnings
3760 # or remarks (even with -Werror). So we grep stderr for any message
3761 # that says an option was ignored or not supported.
3762 # When given -MP, icc 7.0 and 7.1 complain thusly:
3763 # icc: Command line warning: ignoring option '-M'; no argument required
3764 # The diagnosis changed in icc 8.0:
3765 # icc: Command line remark: option '-MP' not supported
3766 if (grep 'ignoring option' conftest.err ||
3767 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3768 am_cv_CC_dependencies_compiler_type=$depmode
3769 break
3770 fi
3771 fi
3772 done
3773
3774 cd ..
3775 rm -rf conftest.dir
3776 else
3777 am_cv_CC_dependencies_compiler_type=none
3778 fi
3779
3780 fi
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3782 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3783 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3784
3785 if
3786 test "x$enable_dependency_tracking" != xno \
3787 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3788 am__fastdepCC_TRUE=
3789 am__fastdepCC_FALSE='#'
3790 else
3791 am__fastdepCC_TRUE='#'
3792 am__fastdepCC_FALSE=
3793 fi
3794
3795
3796 # Make sure we can run config.sub.
3797 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3798 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3799
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3801 $as_echo_n "checking build system type... " >&6; }
3802 if test "${ac_cv_build+set}" = set; then :
3803 $as_echo_n "(cached) " >&6
3804 else
3805 ac_build_alias=$build_alias
3806 test "x$ac_build_alias" = x &&
3807 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3808 test "x$ac_build_alias" = x &&
3809 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3810 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3811 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3812
3813 fi
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3815 $as_echo "$ac_cv_build" >&6; }
3816 case $ac_cv_build in
3817 *-*-*) ;;
3818 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3819 esac
3820 build=$ac_cv_build
3821 ac_save_IFS=$IFS; IFS='-'
3822 set x $ac_cv_build
3823 shift
3824 build_cpu=$1
3825 build_vendor=$2
3826 shift; shift
3827 # Remember, the first character of IFS is used to create $*,
3828 # except with old shells:
3829 build_os=$*
3830 IFS=$ac_save_IFS
3831 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3832
3833
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3835 $as_echo_n "checking host system type... " >&6; }
3836 if test "${ac_cv_host+set}" = set; then :
3837 $as_echo_n "(cached) " >&6
3838 else
3839 if test "x$host_alias" = x; then
3840 ac_cv_host=$ac_cv_build
3841 else
3842 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3843 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3844 fi
3845
3846 fi
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3848 $as_echo "$ac_cv_host" >&6; }
3849 case $ac_cv_host in
3850 *-*-*) ;;
3851 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3852 esac
3853 host=$ac_cv_host
3854 ac_save_IFS=$IFS; IFS='-'
3855 set x $ac_cv_host
3856 shift
3857 host_cpu=$1
3858 host_vendor=$2
3859 shift; shift
3860 # Remember, the first character of IFS is used to create $*,
3861 # except with old shells:
3862 host_os=$*
3863 IFS=$ac_save_IFS
3864 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3865
3866
3867 enable_win32_dll=yes
3868
3869 case $host in
3870 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
3871 if test -n "$ac_tool_prefix"; then
3872 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3873 set dummy ${ac_tool_prefix}as; ac_word=$2
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3875 $as_echo_n "checking for $ac_word... " >&6; }
3876 if test "${ac_cv_prog_AS+set}" = set; then :
3877 $as_echo_n "(cached) " >&6
3878 else
3879 if test -n "$AS"; then
3880 ac_cv_prog_AS="$AS" # Let the user override the test.
3881 else
3882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3883 for as_dir in $PATH
3884 do
3885 IFS=$as_save_IFS
3886 test -z "$as_dir" && as_dir=.
3887 for ac_exec_ext in '' $ac_executable_extensions; do
3888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3889 ac_cv_prog_AS="${ac_tool_prefix}as"
3890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3891 break 2
3892 fi
3893 done
3894 done
3895 IFS=$as_save_IFS
3896
3897 fi
3898 fi
3899 AS=$ac_cv_prog_AS
3900 if test -n "$AS"; then
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
3902 $as_echo "$AS" >&6; }
3903 else
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3905 $as_echo "no" >&6; }
3906 fi
3907
3908
3909 fi
3910 if test -z "$ac_cv_prog_AS"; then
3911 ac_ct_AS=$AS
3912 # Extract the first word of "as", so it can be a program name with args.
3913 set dummy as; ac_word=$2
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3915 $as_echo_n "checking for $ac_word... " >&6; }
3916 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
3917 $as_echo_n "(cached) " >&6
3918 else
3919 if test -n "$ac_ct_AS"; then
3920 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3921 else
3922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3923 for as_dir in $PATH
3924 do
3925 IFS=$as_save_IFS
3926 test -z "$as_dir" && as_dir=.
3927 for ac_exec_ext in '' $ac_executable_extensions; do
3928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3929 ac_cv_prog_ac_ct_AS="as"
3930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3931 break 2
3932 fi
3933 done
3934 done
3935 IFS=$as_save_IFS
3936
3937 fi
3938 fi
3939 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3940 if test -n "$ac_ct_AS"; then
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
3942 $as_echo "$ac_ct_AS" >&6; }
3943 else
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3945 $as_echo "no" >&6; }
3946 fi
3947
3948 if test "x$ac_ct_AS" = x; then
3949 AS="false"
3950 else
3951 case $cross_compiling:$ac_tool_warned in
3952 yes:)
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3954 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3955 ac_tool_warned=yes ;;
3956 esac
3957 AS=$ac_ct_AS
3958 fi
3959 else
3960 AS="$ac_cv_prog_AS"
3961 fi
3962
3963 if test -n "$ac_tool_prefix"; then
3964 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3965 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3967 $as_echo_n "checking for $ac_word... " >&6; }
3968 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
3969 $as_echo_n "(cached) " >&6
3970 else
3971 if test -n "$DLLTOOL"; then
3972 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3973 else
3974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3975 for as_dir in $PATH
3976 do
3977 IFS=$as_save_IFS
3978 test -z "$as_dir" && as_dir=.
3979 for ac_exec_ext in '' $ac_executable_extensions; do
3980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3981 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3983 break 2
3984 fi
3985 done
3986 done
3987 IFS=$as_save_IFS
3988
3989 fi
3990 fi
3991 DLLTOOL=$ac_cv_prog_DLLTOOL
3992 if test -n "$DLLTOOL"; then
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
3994 $as_echo "$DLLTOOL" >&6; }
3995 else
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3997 $as_echo "no" >&6; }
3998 fi
3999
4000
4001 fi
4002 if test -z "$ac_cv_prog_DLLTOOL"; then
4003 ac_ct_DLLTOOL=$DLLTOOL
4004 # Extract the first word of "dlltool", so it can be a program name with args.
4005 set dummy dlltool; ac_word=$2
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4007 $as_echo_n "checking for $ac_word... " >&6; }
4008 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
4009 $as_echo_n "(cached) " >&6
4010 else
4011 if test -n "$ac_ct_DLLTOOL"; then
4012 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4013 else
4014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4015 for as_dir in $PATH
4016 do
4017 IFS=$as_save_IFS
4018 test -z "$as_dir" && as_dir=.
4019 for ac_exec_ext in '' $ac_executable_extensions; do
4020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4021 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4023 break 2
4024 fi
4025 done
4026 done
4027 IFS=$as_save_IFS
4028
4029 fi
4030 fi
4031 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4032 if test -n "$ac_ct_DLLTOOL"; then
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4034 $as_echo "$ac_ct_DLLTOOL" >&6; }
4035 else
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4037 $as_echo "no" >&6; }
4038 fi
4039
4040 if test "x$ac_ct_DLLTOOL" = x; then
4041 DLLTOOL="false"
4042 else
4043 case $cross_compiling:$ac_tool_warned in
4044 yes:)
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4046 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4047 ac_tool_warned=yes ;;
4048 esac
4049 DLLTOOL=$ac_ct_DLLTOOL
4050 fi
4051 else
4052 DLLTOOL="$ac_cv_prog_DLLTOOL"
4053 fi
4054
4055 if test -n "$ac_tool_prefix"; then
4056 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4057 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4059 $as_echo_n "checking for $ac_word... " >&6; }
4060 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4061 $as_echo_n "(cached) " >&6
4062 else
4063 if test -n "$OBJDUMP"; then
4064 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4065 else
4066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4067 for as_dir in $PATH
4068 do
4069 IFS=$as_save_IFS
4070 test -z "$as_dir" && as_dir=.
4071 for ac_exec_ext in '' $ac_executable_extensions; do
4072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4073 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4075 break 2
4076 fi
4077 done
4078 done
4079 IFS=$as_save_IFS
4080
4081 fi
4082 fi
4083 OBJDUMP=$ac_cv_prog_OBJDUMP
4084 if test -n "$OBJDUMP"; then
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4086 $as_echo "$OBJDUMP" >&6; }
4087 else
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4089 $as_echo "no" >&6; }
4090 fi
4091
4092
4093 fi
4094 if test -z "$ac_cv_prog_OBJDUMP"; then
4095 ac_ct_OBJDUMP=$OBJDUMP
4096 # Extract the first word of "objdump", so it can be a program name with args.
4097 set dummy objdump; ac_word=$2
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4099 $as_echo_n "checking for $ac_word... " >&6; }
4100 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4101 $as_echo_n "(cached) " >&6
4102 else
4103 if test -n "$ac_ct_OBJDUMP"; then
4104 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4105 else
4106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4107 for as_dir in $PATH
4108 do
4109 IFS=$as_save_IFS
4110 test -z "$as_dir" && as_dir=.
4111 for ac_exec_ext in '' $ac_executable_extensions; do
4112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4113 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4115 break 2
4116 fi
4117 done
4118 done
4119 IFS=$as_save_IFS
4120
4121 fi
4122 fi
4123 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4124 if test -n "$ac_ct_OBJDUMP"; then
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4126 $as_echo "$ac_ct_OBJDUMP" >&6; }
4127 else
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4129 $as_echo "no" >&6; }
4130 fi
4131
4132 if test "x$ac_ct_OBJDUMP" = x; then
4133 OBJDUMP="false"
4134 else
4135 case $cross_compiling:$ac_tool_warned in
4136 yes:)
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4138 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4139 ac_tool_warned=yes ;;
4140 esac
4141 OBJDUMP=$ac_ct_OBJDUMP
4142 fi
4143 else
4144 OBJDUMP="$ac_cv_prog_OBJDUMP"
4145 fi
4146
4147 ;;
4148 esac
4149
4150 test -z "$AS" && AS=as
4151
4152
4153
4154
4155
4156 test -z "$DLLTOOL" && DLLTOOL=dlltool
4157
4158
4159
4160
4161
4162 test -z "$OBJDUMP" && OBJDUMP=objdump
4163
4164
4165
4166
4167
4168
4169
4170 case `pwd` in
4171 *\ * | *\ *)
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4173 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4174 esac
4175
4176
4177
4178 macro_version='2.2.6b'
4179 macro_revision='1.3017'
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193 ltmain="$ac_aux_dir/ltmain.sh"
4194
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4196 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4197 if test "${ac_cv_path_SED+set}" = set; then :
4198 $as_echo_n "(cached) " >&6
4199 else
4200 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4201 for ac_i in 1 2 3 4 5 6 7; do
4202 ac_script="$ac_script$as_nl$ac_script"
4203 done
4204 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4205 { ac_script=; unset ac_script;}
4206 if test -z "$SED"; then
4207 ac_path_SED_found=false
4208 # Loop through the user's path and test for each of PROGNAME-LIST
4209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4210 for as_dir in $PATH
4211 do
4212 IFS=$as_save_IFS
4213 test -z "$as_dir" && as_dir=.
4214 for ac_prog in sed gsed; do
4215 for ac_exec_ext in '' $ac_executable_extensions; do
4216 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4217 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4218 # Check for GNU ac_path_SED and select it if it is found.
4219 # Check for GNU $ac_path_SED
4220 case `"$ac_path_SED" --version 2>&1` in
4221 *GNU*)
4222 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4223 *)
4224 ac_count=0
4225 $as_echo_n 0123456789 >"conftest.in"
4226 while :
4227 do
4228 cat "conftest.in" "conftest.in" >"conftest.tmp"
4229 mv "conftest.tmp" "conftest.in"
4230 cp "conftest.in" "conftest.nl"
4231 $as_echo '' >> "conftest.nl"
4232 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4233 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4234 as_fn_arith $ac_count + 1 && ac_count=$as_val
4235 if test $ac_count -gt ${ac_path_SED_max-0}; then
4236 # Best one so far, save it but keep looking for a better one
4237 ac_cv_path_SED="$ac_path_SED"
4238 ac_path_SED_max=$ac_count
4239 fi
4240 # 10*(2^10) chars as input seems more than enough
4241 test $ac_count -gt 10 && break
4242 done
4243 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4244 esac
4245
4246 $ac_path_SED_found && break 3
4247 done
4248 done
4249 done
4250 IFS=$as_save_IFS
4251 if test -z "$ac_cv_path_SED"; then
4252 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4253 fi
4254 else
4255 ac_cv_path_SED=$SED
4256 fi
4257
4258 fi
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4260 $as_echo "$ac_cv_path_SED" >&6; }
4261 SED="$ac_cv_path_SED"
4262 rm -f conftest.sed
4263
4264 test -z "$SED" && SED=sed
4265 Xsed="$SED -e 1s/^X//"
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4278 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4279 if test "${ac_cv_path_GREP+set}" = set; then :
4280 $as_echo_n "(cached) " >&6
4281 else
4282 if test -z "$GREP"; then
4283 ac_path_GREP_found=false
4284 # Loop through the user's path and test for each of PROGNAME-LIST
4285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4286 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4287 do
4288 IFS=$as_save_IFS
4289 test -z "$as_dir" && as_dir=.
4290 for ac_prog in grep ggrep; do
4291 for ac_exec_ext in '' $ac_executable_extensions; do
4292 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4293 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4294 # Check for GNU ac_path_GREP and select it if it is found.
4295 # Check for GNU $ac_path_GREP
4296 case `"$ac_path_GREP" --version 2>&1` in
4297 *GNU*)
4298 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4299 *)
4300 ac_count=0
4301 $as_echo_n 0123456789 >"conftest.in"
4302 while :
4303 do
4304 cat "conftest.in" "conftest.in" >"conftest.tmp"
4305 mv "conftest.tmp" "conftest.in"
4306 cp "conftest.in" "conftest.nl"
4307 $as_echo 'GREP' >> "conftest.nl"
4308 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4309 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4310 as_fn_arith $ac_count + 1 && ac_count=$as_val
4311 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4312 # Best one so far, save it but keep looking for a better one
4313 ac_cv_path_GREP="$ac_path_GREP"
4314 ac_path_GREP_max=$ac_count
4315 fi
4316 # 10*(2^10) chars as input seems more than enough
4317 test $ac_count -gt 10 && break
4318 done
4319 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4320 esac
4321
4322 $ac_path_GREP_found && break 3
4323 done
4324 done
4325 done
4326 IFS=$as_save_IFS
4327 if test -z "$ac_cv_path_GREP"; then
4328 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4329 fi
4330 else
4331 ac_cv_path_GREP=$GREP
4332 fi
4333
4334 fi
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4336 $as_echo "$ac_cv_path_GREP" >&6; }
4337 GREP="$ac_cv_path_GREP"
4338
4339
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4341 $as_echo_n "checking for egrep... " >&6; }
4342 if test "${ac_cv_path_EGREP+set}" = set; then :
4343 $as_echo_n "(cached) " >&6
4344 else
4345 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4346 then ac_cv_path_EGREP="$GREP -E"
4347 else
4348 if test -z "$EGREP"; then
4349 ac_path_EGREP_found=false
4350 # Loop through the user's path and test for each of PROGNAME-LIST
4351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4352 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4353 do
4354 IFS=$as_save_IFS
4355 test -z "$as_dir" && as_dir=.
4356 for ac_prog in egrep; do
4357 for ac_exec_ext in '' $ac_executable_extensions; do
4358 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4359 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4360 # Check for GNU ac_path_EGREP and select it if it is found.
4361 # Check for GNU $ac_path_EGREP
4362 case `"$ac_path_EGREP" --version 2>&1` in
4363 *GNU*)
4364 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4365 *)
4366 ac_count=0
4367 $as_echo_n 0123456789 >"conftest.in"
4368 while :
4369 do
4370 cat "conftest.in" "conftest.in" >"conftest.tmp"
4371 mv "conftest.tmp" "conftest.in"
4372 cp "conftest.in" "conftest.nl"
4373 $as_echo 'EGREP' >> "conftest.nl"
4374 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4375 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4376 as_fn_arith $ac_count + 1 && ac_count=$as_val
4377 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4378 # Best one so far, save it but keep looking for a better one
4379 ac_cv_path_EGREP="$ac_path_EGREP"
4380 ac_path_EGREP_max=$ac_count
4381 fi
4382 # 10*(2^10) chars as input seems more than enough
4383 test $ac_count -gt 10 && break
4384 done
4385 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4386 esac
4387
4388 $ac_path_EGREP_found && break 3
4389 done
4390 done
4391 done
4392 IFS=$as_save_IFS
4393 if test -z "$ac_cv_path_EGREP"; then
4394 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4395 fi
4396 else
4397 ac_cv_path_EGREP=$EGREP
4398 fi
4399
4400 fi
4401 fi
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4403 $as_echo "$ac_cv_path_EGREP" >&6; }
4404 EGREP="$ac_cv_path_EGREP"
4405
4406
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4408 $as_echo_n "checking for fgrep... " >&6; }
4409 if test "${ac_cv_path_FGREP+set}" = set; then :
4410 $as_echo_n "(cached) " >&6
4411 else
4412 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4413 then ac_cv_path_FGREP="$GREP -F"
4414 else
4415 if test -z "$FGREP"; then
4416 ac_path_FGREP_found=false
4417 # Loop through the user's path and test for each of PROGNAME-LIST
4418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4419 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4420 do
4421 IFS=$as_save_IFS
4422 test -z "$as_dir" && as_dir=.
4423 for ac_prog in fgrep; do
4424 for ac_exec_ext in '' $ac_executable_extensions; do
4425 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4426 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4427 # Check for GNU ac_path_FGREP and select it if it is found.
4428 # Check for GNU $ac_path_FGREP
4429 case `"$ac_path_FGREP" --version 2>&1` in
4430 *GNU*)
4431 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4432 *)
4433 ac_count=0
4434 $as_echo_n 0123456789 >"conftest.in"
4435 while :
4436 do
4437 cat "conftest.in" "conftest.in" >"conftest.tmp"
4438 mv "conftest.tmp" "conftest.in"
4439 cp "conftest.in" "conftest.nl"
4440 $as_echo 'FGREP' >> "conftest.nl"
4441 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4442 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4443 as_fn_arith $ac_count + 1 && ac_count=$as_val
4444 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4445 # Best one so far, save it but keep looking for a better one
4446 ac_cv_path_FGREP="$ac_path_FGREP"
4447 ac_path_FGREP_max=$ac_count
4448 fi
4449 # 10*(2^10) chars as input seems more than enough
4450 test $ac_count -gt 10 && break
4451 done
4452 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4453 esac
4454
4455 $ac_path_FGREP_found && break 3
4456 done
4457 done
4458 done
4459 IFS=$as_save_IFS
4460 if test -z "$ac_cv_path_FGREP"; then
4461 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4462 fi
4463 else
4464 ac_cv_path_FGREP=$FGREP
4465 fi
4466
4467 fi
4468 fi
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4470 $as_echo "$ac_cv_path_FGREP" >&6; }
4471 FGREP="$ac_cv_path_FGREP"
4472
4473
4474 test -z "$GREP" && GREP=grep
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494 # Check whether --with-gnu-ld was given.
4495 if test "${with_gnu_ld+set}" = set; then :
4496 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4497 else
4498 with_gnu_ld=no
4499 fi
4500
4501 ac_prog=ld
4502 if test "$GCC" = yes; then
4503 # Check if gcc -print-prog-name=ld gives a path.
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4505 $as_echo_n "checking for ld used by $CC... " >&6; }
4506 case $host in
4507 *-*-mingw*)
4508 # gcc leaves a trailing carriage return which upsets mingw
4509 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4510 *)
4511 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4512 esac
4513 case $ac_prog in
4514 # Accept absolute paths.
4515 [\\/]* | ?:[\\/]*)
4516 re_direlt='/[^/][^/]*/\.\./'
4517 # Canonicalize the pathname of ld
4518 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4519 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4520 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4521 done
4522 test -z "$LD" && LD="$ac_prog"
4523 ;;
4524 "")
4525 # If it fails, then pretend we aren't using GCC.
4526 ac_prog=ld
4527 ;;
4528 *)
4529 # If it is relative, then search for the first ld in PATH.
4530 with_gnu_ld=unknown
4531 ;;
4532 esac
4533 elif test "$with_gnu_ld" = yes; then
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4535 $as_echo_n "checking for GNU ld... " >&6; }
4536 else
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4538 $as_echo_n "checking for non-GNU ld... " >&6; }
4539 fi
4540 if test "${lt_cv_path_LD+set}" = set; then :
4541 $as_echo_n "(cached) " >&6
4542 else
4543 if test -z "$LD"; then
4544 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4545 for ac_dir in $PATH; do
4546 IFS="$lt_save_ifs"
4547 test -z "$ac_dir" && ac_dir=.
4548 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4549 lt_cv_path_LD="$ac_dir/$ac_prog"
4550 # Check to see if the program is GNU ld. I'd rather use --version,
4551 # but apparently some variants of GNU ld only accept -v.
4552 # Break only if it was the GNU/non-GNU ld that we prefer.
4553 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4554 *GNU* | *'with BFD'*)
4555 test "$with_gnu_ld" != no && break
4556 ;;
4557 *)
4558 test "$with_gnu_ld" != yes && break
4559 ;;
4560 esac
4561 fi
4562 done
4563 IFS="$lt_save_ifs"
4564 else
4565 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4566 fi
4567 fi
4568
4569 LD="$lt_cv_path_LD"
4570 if test -n "$LD"; then
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4572 $as_echo "$LD" >&6; }
4573 else
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4575 $as_echo "no" >&6; }
4576 fi
4577 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4579 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4580 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4581 $as_echo_n "(cached) " >&6
4582 else
4583 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4584 case `$LD -v 2>&1 </dev/null` in
4585 *GNU* | *'with BFD'*)
4586 lt_cv_prog_gnu_ld=yes
4587 ;;
4588 *)
4589 lt_cv_prog_gnu_ld=no
4590 ;;
4591 esac
4592 fi
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4594 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4595 with_gnu_ld=$lt_cv_prog_gnu_ld
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4606 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4607 if test "${lt_cv_path_NM+set}" = set; then :
4608 $as_echo_n "(cached) " >&6
4609 else
4610 if test -n "$NM"; then
4611 # Let the user override the test.
4612 lt_cv_path_NM="$NM"
4613 else
4614 lt_nm_to_check="${ac_tool_prefix}nm"
4615 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4616 lt_nm_to_check="$lt_nm_to_check nm"
4617 fi
4618 for lt_tmp_nm in $lt_nm_to_check; do
4619 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4620 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4621 IFS="$lt_save_ifs"
4622 test -z "$ac_dir" && ac_dir=.
4623 tmp_nm="$ac_dir/$lt_tmp_nm"
4624 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4625 # Check to see if the nm accepts a BSD-compat flag.
4626 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4627 # nm: unknown option "B" ignored
4628 # Tru64's nm complains that /dev/null is an invalid object file
4629 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4630 */dev/null* | *'Invalid file or object type'*)
4631 lt_cv_path_NM="$tmp_nm -B"
4632 break
4633 ;;
4634 *)
4635 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4636 */dev/null*)
4637 lt_cv_path_NM="$tmp_nm -p"
4638 break
4639 ;;
4640 *)
4641 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4642 continue # so that we can try to find one that supports BSD flags
4643 ;;
4644 esac
4645 ;;
4646 esac
4647 fi
4648 done
4649 IFS="$lt_save_ifs"
4650 done
4651 : ${lt_cv_path_NM=no}
4652 fi
4653 fi
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4655 $as_echo "$lt_cv_path_NM" >&6; }
4656 if test "$lt_cv_path_NM" != "no"; then
4657 NM="$lt_cv_path_NM"
4658 else
4659 # Didn't find any BSD compatible name lister, look for dumpbin.
4660 if test -n "$ac_tool_prefix"; then
4661 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4662 do
4663 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4664 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4666 $as_echo_n "checking for $ac_word... " >&6; }
4667 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4668 $as_echo_n "(cached) " >&6
4669 else
4670 if test -n "$DUMPBIN"; then
4671 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4672 else
4673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4674 for as_dir in $PATH
4675 do
4676 IFS=$as_save_IFS
4677 test -z "$as_dir" && as_dir=.
4678 for ac_exec_ext in '' $ac_executable_extensions; do
4679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4680 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4682 break 2
4683 fi
4684 done
4685 done
4686 IFS=$as_save_IFS
4687
4688 fi
4689 fi
4690 DUMPBIN=$ac_cv_prog_DUMPBIN
4691 if test -n "$DUMPBIN"; then
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4693 $as_echo "$DUMPBIN" >&6; }
4694 else
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4696 $as_echo "no" >&6; }
4697 fi
4698
4699
4700 test -n "$DUMPBIN" && break
4701 done
4702 fi
4703 if test -z "$DUMPBIN"; then
4704 ac_ct_DUMPBIN=$DUMPBIN
4705 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4706 do
4707 # Extract the first word of "$ac_prog", so it can be a program name with args.
4708 set dummy $ac_prog; ac_word=$2
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4710 $as_echo_n "checking for $ac_word... " >&6; }
4711 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4712 $as_echo_n "(cached) " >&6
4713 else
4714 if test -n "$ac_ct_DUMPBIN"; then
4715 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4716 else
4717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4718 for as_dir in $PATH
4719 do
4720 IFS=$as_save_IFS
4721 test -z "$as_dir" && as_dir=.
4722 for ac_exec_ext in '' $ac_executable_extensions; do
4723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4724 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4726 break 2
4727 fi
4728 done
4729 done
4730 IFS=$as_save_IFS
4731
4732 fi
4733 fi
4734 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4735 if test -n "$ac_ct_DUMPBIN"; then
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4737 $as_echo "$ac_ct_DUMPBIN" >&6; }
4738 else
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4740 $as_echo "no" >&6; }
4741 fi
4742
4743
4744 test -n "$ac_ct_DUMPBIN" && break
4745 done
4746
4747 if test "x$ac_ct_DUMPBIN" = x; then
4748 DUMPBIN=":"
4749 else
4750 case $cross_compiling:$ac_tool_warned in
4751 yes:)
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4753 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4754 ac_tool_warned=yes ;;
4755 esac
4756 DUMPBIN=$ac_ct_DUMPBIN
4757 fi
4758 fi
4759
4760
4761 if test "$DUMPBIN" != ":"; then
4762 NM="$DUMPBIN"
4763 fi
4764 fi
4765 test -z "$NM" && NM=nm
4766
4767
4768
4769
4770
4771
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4773 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4774 if test "${lt_cv_nm_interface+set}" = set; then :
4775 $as_echo_n "(cached) " >&6
4776 else
4777 lt_cv_nm_interface="BSD nm"
4778 echo "int some_variable = 0;" > conftest.$ac_ext
4779 (eval echo "\"\$as_me:4780: $ac_compile\"" >&5)
4780 (eval "$ac_compile" 2>conftest.err)
4781 cat conftest.err >&5
4782 (eval echo "\"\$as_me:4783: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4783 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4784 cat conftest.err >&5
4785 (eval echo "\"\$as_me:4786: output\"" >&5)
4786 cat conftest.out >&5
4787 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4788 lt_cv_nm_interface="MS dumpbin"
4789 fi
4790 rm -f conftest*
4791 fi
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4793 $as_echo "$lt_cv_nm_interface" >&6; }
4794
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4796 $as_echo_n "checking whether ln -s works... " >&6; }
4797 LN_S=$as_ln_s
4798 if test "$LN_S" = "ln -s"; then
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4800 $as_echo "yes" >&6; }
4801 else
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4803 $as_echo "no, using $LN_S" >&6; }
4804 fi
4805
4806 # find the maximum length of command line arguments
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4808 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4809 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4810 $as_echo_n "(cached) " >&6
4811 else
4812 i=0
4813 teststring="ABCD"
4814
4815 case $build_os in
4816 msdosdjgpp*)
4817 # On DJGPP, this test can blow up pretty badly due to problems in libc
4818 # (any single argument exceeding 2000 bytes causes a buffer overrun
4819 # during glob expansion). Even if it were fixed, the result of this
4820 # check would be larger than it should be.
4821 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4822 ;;
4823
4824 gnu*)
4825 # Under GNU Hurd, this test is not required because there is
4826 # no limit to the length of command line arguments.
4827 # Libtool will interpret -1 as no limit whatsoever
4828 lt_cv_sys_max_cmd_len=-1;
4829 ;;
4830
4831 cygwin* | mingw* | cegcc*)
4832 # On Win9x/ME, this test blows up -- it succeeds, but takes
4833 # about 5 minutes as the teststring grows exponentially.
4834 # Worse, since 9x/ME are not pre-emptively multitasking,
4835 # you end up with a "frozen" computer, even though with patience
4836 # the test eventually succeeds (with a max line length of 256k).
4837 # Instead, let's just punt: use the minimum linelength reported by
4838 # all of the supported platforms: 8192 (on NT/2K/XP).
4839 lt_cv_sys_max_cmd_len=8192;
4840 ;;
4841
4842 amigaos*)
4843 # On AmigaOS with pdksh, this test takes hours, literally.
4844 # So we just punt and use a minimum line length of 8192.
4845 lt_cv_sys_max_cmd_len=8192;
4846 ;;
4847
4848 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4849 # This has been around since 386BSD, at least. Likely further.
4850 if test -x /sbin/sysctl; then
4851 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4852 elif test -x /usr/sbin/sysctl; then
4853 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4854 else
4855 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4856 fi
4857 # And add a safety zone
4858 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4859 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4860 ;;
4861
4862 interix*)
4863 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4864 lt_cv_sys_max_cmd_len=196608
4865 ;;
4866
4867 osf*)
4868 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4869 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4870 # nice to cause kernel panics so lets avoid the loop below.
4871 # First set a reasonable default.
4872 lt_cv_sys_max_cmd_len=16384
4873 #
4874 if test -x /sbin/sysconfig; then
4875 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4876 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4877 esac
4878 fi
4879 ;;
4880 sco3.2v5*)
4881 lt_cv_sys_max_cmd_len=102400
4882 ;;
4883 sysv5* | sco5v6* | sysv4.2uw2*)
4884 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4885 if test -n "$kargmax"; then
4886 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4887 else
4888 lt_cv_sys_max_cmd_len=32768
4889 fi
4890 ;;
4891 *)
4892 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4893 if test -n "$lt_cv_sys_max_cmd_len"; then
4894 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4895 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4896 else
4897 # Make teststring a little bigger before we do anything with it.
4898 # a 1K string should be a reasonable start.
4899 for i in 1 2 3 4 5 6 7 8 ; do
4900 teststring=$teststring$teststring
4901 done
4902 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4903 # If test is not a shell built-in, we'll probably end up computing a
4904 # maximum length that is only half of the actual maximum length, but
4905 # we can't tell.
4906 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4907 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4908 test $i != 17 # 1/2 MB should be enough
4909 do
4910 i=`expr $i + 1`
4911 teststring=$teststring$teststring
4912 done
4913 # Only check the string length outside the loop.
4914 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4915 teststring=
4916 # Add a significant safety factor because C++ compilers can tack on
4917 # massive amounts of additional arguments before passing them to the
4918 # linker. It appears as though 1/2 is a usable value.
4919 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4920 fi
4921 ;;
4922 esac
4923
4924 fi
4925
4926 if test -n $lt_cv_sys_max_cmd_len ; then
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4928 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4929 else
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4931 $as_echo "none" >&6; }
4932 fi
4933 max_cmd_len=$lt_cv_sys_max_cmd_len
4934
4935
4936
4937
4938
4939
4940 : ${CP="cp -f"}
4941 : ${MV="mv -f"}
4942 : ${RM="rm -f"}
4943
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4945 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4946 # Try some XSI features
4947 xsi_shell=no
4948 ( _lt_dummy="a/b/c"
4949 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4950 = c,a/b,, \
4951 && eval 'test $(( 1 + 1 )) -eq 2 \
4952 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4953 && xsi_shell=yes
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4955 $as_echo "$xsi_shell" >&6; }
4956
4957
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4959 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4960 lt_shell_append=no
4961 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4962 >/dev/null 2>&1 \
4963 && lt_shell_append=yes
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4965 $as_echo "$lt_shell_append" >&6; }
4966
4967
4968 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4969 lt_unset=unset
4970 else
4971 lt_unset=false
4972 fi
4973
4974
4975
4976
4977
4978 # test EBCDIC or ASCII
4979 case `echo X|tr X '\101'` in
4980 A) # ASCII based system
4981 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4982 lt_SP2NL='tr \040 \012'
4983 lt_NL2SP='tr \015\012 \040\040'
4984 ;;
4985 *) # EBCDIC based system
4986 lt_SP2NL='tr \100 \n'
4987 lt_NL2SP='tr \r\n \100\100'
4988 ;;
4989 esac
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5000 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5001 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5002 $as_echo_n "(cached) " >&6
5003 else
5004 lt_cv_ld_reload_flag='-r'
5005 fi
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5007 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5008 reload_flag=$lt_cv_ld_reload_flag
5009 case $reload_flag in
5010 "" | " "*) ;;
5011 *) reload_flag=" $reload_flag" ;;
5012 esac
5013 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5014 case $host_os in
5015 darwin*)
5016 if test "$GCC" = yes; then
5017 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5018 else
5019 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5020 fi
5021 ;;
5022 esac
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032 if test -n "$ac_tool_prefix"; then
5033 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5034 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5036 $as_echo_n "checking for $ac_word... " >&6; }
5037 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5038 $as_echo_n "(cached) " >&6
5039 else
5040 if test -n "$OBJDUMP"; then
5041 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5042 else
5043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5044 for as_dir in $PATH
5045 do
5046 IFS=$as_save_IFS
5047 test -z "$as_dir" && as_dir=.
5048 for ac_exec_ext in '' $ac_executable_extensions; do
5049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5050 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5052 break 2
5053 fi
5054 done
5055 done
5056 IFS=$as_save_IFS
5057
5058 fi
5059 fi
5060 OBJDUMP=$ac_cv_prog_OBJDUMP
5061 if test -n "$OBJDUMP"; then
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5063 $as_echo "$OBJDUMP" >&6; }
5064 else
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5066 $as_echo "no" >&6; }
5067 fi
5068
5069
5070 fi
5071 if test -z "$ac_cv_prog_OBJDUMP"; then
5072 ac_ct_OBJDUMP=$OBJDUMP
5073 # Extract the first word of "objdump", so it can be a program name with args.
5074 set dummy objdump; ac_word=$2
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5076 $as_echo_n "checking for $ac_word... " >&6; }
5077 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5078 $as_echo_n "(cached) " >&6
5079 else
5080 if test -n "$ac_ct_OBJDUMP"; then
5081 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5082 else
5083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5084 for as_dir in $PATH
5085 do
5086 IFS=$as_save_IFS
5087 test -z "$as_dir" && as_dir=.
5088 for ac_exec_ext in '' $ac_executable_extensions; do
5089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5090 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5092 break 2
5093 fi
5094 done
5095 done
5096 IFS=$as_save_IFS
5097
5098 fi
5099 fi
5100 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5101 if test -n "$ac_ct_OBJDUMP"; then
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5103 $as_echo "$ac_ct_OBJDUMP" >&6; }
5104 else
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5106 $as_echo "no" >&6; }
5107 fi
5108
5109 if test "x$ac_ct_OBJDUMP" = x; then
5110 OBJDUMP="false"
5111 else
5112 case $cross_compiling:$ac_tool_warned in
5113 yes:)
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5115 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5116 ac_tool_warned=yes ;;
5117 esac
5118 OBJDUMP=$ac_ct_OBJDUMP
5119 fi
5120 else
5121 OBJDUMP="$ac_cv_prog_OBJDUMP"
5122 fi
5123
5124 test -z "$OBJDUMP" && OBJDUMP=objdump
5125
5126
5127
5128
5129
5130
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5132 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5133 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5134 $as_echo_n "(cached) " >&6
5135 else
5136 lt_cv_file_magic_cmd='$MAGIC_CMD'
5137 lt_cv_file_magic_test_file=
5138 lt_cv_deplibs_check_method='unknown'
5139 # Need to set the preceding variable on all platforms that support
5140 # interlibrary dependencies.
5141 # 'none' -- dependencies not supported.
5142 # `unknown' -- same as none, but documents that we really don't know.
5143 # 'pass_all' -- all dependencies passed with no checks.
5144 # 'test_compile' -- check by making test program.
5145 # 'file_magic [[regex]]' -- check by looking for files in library path
5146 # which responds to the $file_magic_cmd with a given extended regex.
5147 # If you have `file' or equivalent on your system and you're not sure
5148 # whether `pass_all' will *always* work, you probably want this one.
5149
5150 case $host_os in
5151 aix[4-9]*)
5152 lt_cv_deplibs_check_method=pass_all
5153 ;;
5154
5155 beos*)
5156 lt_cv_deplibs_check_method=pass_all
5157 ;;
5158
5159 bsdi[45]*)
5160 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5161 lt_cv_file_magic_cmd='/usr/bin/file -L'
5162 lt_cv_file_magic_test_file=/shlib/libc.so
5163 ;;
5164
5165 cygwin*)
5166 # func_win32_libid is a shell function defined in ltmain.sh
5167 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5168 lt_cv_file_magic_cmd='func_win32_libid'
5169 ;;
5170
5171 mingw* | pw32*)
5172 # Base MSYS/MinGW do not provide the 'file' command needed by
5173 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5174 # unless we find 'file', for example because we are cross-compiling.
5175 if ( file / ) >/dev/null 2>&1; then
5176 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5177 lt_cv_file_magic_cmd='func_win32_libid'
5178 else
5179 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5180 lt_cv_file_magic_cmd='$OBJDUMP -f'
5181 fi
5182 ;;
5183
5184 cegcc)
5185 # use the weaker test based on 'objdump'. See mingw*.
5186 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5187 lt_cv_file_magic_cmd='$OBJDUMP -f'
5188 ;;
5189
5190 darwin* | rhapsody*)
5191 lt_cv_deplibs_check_method=pass_all
5192 ;;
5193
5194 freebsd* | dragonfly*)
5195 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5196 case $host_cpu in
5197 i*86 )
5198 # Not sure whether the presence of OpenBSD here was a mistake.
5199 # Let's accept both of them until this is cleared up.
5200 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5201 lt_cv_file_magic_cmd=/usr/bin/file
5202 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5203 ;;
5204 esac
5205 else
5206 lt_cv_deplibs_check_method=pass_all
5207 fi
5208 ;;
5209
5210 gnu*)
5211 lt_cv_deplibs_check_method=pass_all
5212 ;;
5213
5214 hpux10.20* | hpux11*)
5215 lt_cv_file_magic_cmd=/usr/bin/file
5216 case $host_cpu in
5217 ia64*)
5218 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5219 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5220 ;;
5221 hppa*64*)
5222 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5223 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5224 ;;
5225 *)
5226 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5227 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5228 ;;
5229 esac
5230 ;;
5231
5232 interix[3-9]*)
5233 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5234 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5235 ;;
5236
5237 irix5* | irix6* | nonstopux*)
5238 case $LD in
5239 *-32|*"-32 ") libmagic=32-bit;;
5240 *-n32|*"-n32 ") libmagic=N32;;
5241 *-64|*"-64 ") libmagic=64-bit;;
5242 *) libmagic=never-match;;
5243 esac
5244 lt_cv_deplibs_check_method=pass_all
5245 ;;
5246
5247 # This must be Linux ELF.
5248 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5249 lt_cv_deplibs_check_method=pass_all
5250 ;;
5251
5252 netbsd* | netbsdelf*-gnu)
5253 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5254 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5255 else
5256 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5257 fi
5258 ;;
5259
5260 newos6*)
5261 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5262 lt_cv_file_magic_cmd=/usr/bin/file
5263 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5264 ;;
5265
5266 *nto* | *qnx*)
5267 lt_cv_deplibs_check_method=pass_all
5268 ;;
5269
5270 openbsd*)
5271 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5272 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5273 else
5274 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5275 fi
5276 ;;
5277
5278 osf3* | osf4* | osf5*)
5279 lt_cv_deplibs_check_method=pass_all
5280 ;;
5281
5282 rdos*)
5283 lt_cv_deplibs_check_method=pass_all
5284 ;;
5285
5286 solaris*)
5287 lt_cv_deplibs_check_method=pass_all
5288 ;;
5289
5290 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5291 lt_cv_deplibs_check_method=pass_all
5292 ;;
5293
5294 sysv4 | sysv4.3*)
5295 case $host_vendor in
5296 motorola)
5297 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]'
5298 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5299 ;;
5300 ncr)
5301 lt_cv_deplibs_check_method=pass_all
5302 ;;
5303 sequent)
5304 lt_cv_file_magic_cmd='/bin/file'
5305 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5306 ;;
5307 sni)
5308 lt_cv_file_magic_cmd='/bin/file'
5309 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5310 lt_cv_file_magic_test_file=/lib/libc.so
5311 ;;
5312 siemens)
5313 lt_cv_deplibs_check_method=pass_all
5314 ;;
5315 pc)
5316 lt_cv_deplibs_check_method=pass_all
5317 ;;
5318 esac
5319 ;;
5320
5321 tpf*)
5322 lt_cv_deplibs_check_method=pass_all
5323 ;;
5324 esac
5325
5326 fi
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5328 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5329 file_magic_cmd=$lt_cv_file_magic_cmd
5330 deplibs_check_method=$lt_cv_deplibs_check_method
5331 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344 if test -n "$ac_tool_prefix"; then
5345 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5346 set dummy ${ac_tool_prefix}ar; ac_word=$2
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5348 $as_echo_n "checking for $ac_word... " >&6; }
5349 if test "${ac_cv_prog_AR+set}" = set; then :
5350 $as_echo_n "(cached) " >&6
5351 else
5352 if test -n "$AR"; then
5353 ac_cv_prog_AR="$AR" # Let the user override the test.
5354 else
5355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5356 for as_dir in $PATH
5357 do
5358 IFS=$as_save_IFS
5359 test -z "$as_dir" && as_dir=.
5360 for ac_exec_ext in '' $ac_executable_extensions; do
5361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5362 ac_cv_prog_AR="${ac_tool_prefix}ar"
5363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5364 break 2
5365 fi
5366 done
5367 done
5368 IFS=$as_save_IFS
5369
5370 fi
5371 fi
5372 AR=$ac_cv_prog_AR
5373 if test -n "$AR"; then
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5375 $as_echo "$AR" >&6; }
5376 else
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5378 $as_echo "no" >&6; }
5379 fi
5380
5381
5382 fi
5383 if test -z "$ac_cv_prog_AR"; then
5384 ac_ct_AR=$AR
5385 # Extract the first word of "ar", so it can be a program name with args.
5386 set dummy ar; ac_word=$2
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5388 $as_echo_n "checking for $ac_word... " >&6; }
5389 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5390 $as_echo_n "(cached) " >&6
5391 else
5392 if test -n "$ac_ct_AR"; then
5393 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5394 else
5395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5396 for as_dir in $PATH
5397 do
5398 IFS=$as_save_IFS
5399 test -z "$as_dir" && as_dir=.
5400 for ac_exec_ext in '' $ac_executable_extensions; do
5401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5402 ac_cv_prog_ac_ct_AR="ar"
5403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5404 break 2
5405 fi
5406 done
5407 done
5408 IFS=$as_save_IFS
5409
5410 fi
5411 fi
5412 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5413 if test -n "$ac_ct_AR"; then
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5415 $as_echo "$ac_ct_AR" >&6; }
5416 else
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5418 $as_echo "no" >&6; }
5419 fi
5420
5421 if test "x$ac_ct_AR" = x; then
5422 AR="false"
5423 else
5424 case $cross_compiling:$ac_tool_warned in
5425 yes:)
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5427 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5428 ac_tool_warned=yes ;;
5429 esac
5430 AR=$ac_ct_AR
5431 fi
5432 else
5433 AR="$ac_cv_prog_AR"
5434 fi
5435
5436 test -z "$AR" && AR=ar
5437 test -z "$AR_FLAGS" && AR_FLAGS=cru
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449 if test -n "$ac_tool_prefix"; then
5450 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5451 set dummy ${ac_tool_prefix}strip; ac_word=$2
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5453 $as_echo_n "checking for $ac_word... " >&6; }
5454 if test "${ac_cv_prog_STRIP+set}" = set; then :
5455 $as_echo_n "(cached) " >&6
5456 else
5457 if test -n "$STRIP"; then
5458 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5459 else
5460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5461 for as_dir in $PATH
5462 do
5463 IFS=$as_save_IFS
5464 test -z "$as_dir" && as_dir=.
5465 for ac_exec_ext in '' $ac_executable_extensions; do
5466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5467 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5469 break 2
5470 fi
5471 done
5472 done
5473 IFS=$as_save_IFS
5474
5475 fi
5476 fi
5477 STRIP=$ac_cv_prog_STRIP
5478 if test -n "$STRIP"; then
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5480 $as_echo "$STRIP" >&6; }
5481 else
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5483 $as_echo "no" >&6; }
5484 fi
5485
5486
5487 fi
5488 if test -z "$ac_cv_prog_STRIP"; then
5489 ac_ct_STRIP=$STRIP
5490 # Extract the first word of "strip", so it can be a program name with args.
5491 set dummy strip; ac_word=$2
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5493 $as_echo_n "checking for $ac_word... " >&6; }
5494 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5495 $as_echo_n "(cached) " >&6
5496 else
5497 if test -n "$ac_ct_STRIP"; then
5498 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5499 else
5500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5501 for as_dir in $PATH
5502 do
5503 IFS=$as_save_IFS
5504 test -z "$as_dir" && as_dir=.
5505 for ac_exec_ext in '' $ac_executable_extensions; do
5506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5507 ac_cv_prog_ac_ct_STRIP="strip"
5508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5509 break 2
5510 fi
5511 done
5512 done
5513 IFS=$as_save_IFS
5514
5515 fi
5516 fi
5517 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5518 if test -n "$ac_ct_STRIP"; then
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5520 $as_echo "$ac_ct_STRIP" >&6; }
5521 else
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5523 $as_echo "no" >&6; }
5524 fi
5525
5526 if test "x$ac_ct_STRIP" = x; then
5527 STRIP=":"
5528 else
5529 case $cross_compiling:$ac_tool_warned in
5530 yes:)
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5532 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5533 ac_tool_warned=yes ;;
5534 esac
5535 STRIP=$ac_ct_STRIP
5536 fi
5537 else
5538 STRIP="$ac_cv_prog_STRIP"
5539 fi
5540
5541 test -z "$STRIP" && STRIP=:
5542
5543
5544
5545
5546
5547
5548 if test -n "$ac_tool_prefix"; then
5549 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5550 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5552 $as_echo_n "checking for $ac_word... " >&6; }
5553 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5554 $as_echo_n "(cached) " >&6
5555 else
5556 if test -n "$RANLIB"; then
5557 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5558 else
5559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5560 for as_dir in $PATH
5561 do
5562 IFS=$as_save_IFS
5563 test -z "$as_dir" && as_dir=.
5564 for ac_exec_ext in '' $ac_executable_extensions; do
5565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5566 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5568 break 2
5569 fi
5570 done
5571 done
5572 IFS=$as_save_IFS
5573
5574 fi
5575 fi
5576 RANLIB=$ac_cv_prog_RANLIB
5577 if test -n "$RANLIB"; then
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5579 $as_echo "$RANLIB" >&6; }
5580 else
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5582 $as_echo "no" >&6; }
5583 fi
5584
5585
5586 fi
5587 if test -z "$ac_cv_prog_RANLIB"; then
5588 ac_ct_RANLIB=$RANLIB
5589 # Extract the first word of "ranlib", so it can be a program name with args.
5590 set dummy ranlib; ac_word=$2
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5592 $as_echo_n "checking for $ac_word... " >&6; }
5593 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5594 $as_echo_n "(cached) " >&6
5595 else
5596 if test -n "$ac_ct_RANLIB"; then
5597 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5598 else
5599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5600 for as_dir in $PATH
5601 do
5602 IFS=$as_save_IFS
5603 test -z "$as_dir" && as_dir=.
5604 for ac_exec_ext in '' $ac_executable_extensions; do
5605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5606 ac_cv_prog_ac_ct_RANLIB="ranlib"
5607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5608 break 2
5609 fi
5610 done
5611 done
5612 IFS=$as_save_IFS
5613
5614 fi
5615 fi
5616 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5617 if test -n "$ac_ct_RANLIB"; then
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5619 $as_echo "$ac_ct_RANLIB" >&6; }
5620 else
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5622 $as_echo "no" >&6; }
5623 fi
5624
5625 if test "x$ac_ct_RANLIB" = x; then
5626 RANLIB=":"
5627 else
5628 case $cross_compiling:$ac_tool_warned in
5629 yes:)
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5631 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5632 ac_tool_warned=yes ;;
5633 esac
5634 RANLIB=$ac_ct_RANLIB
5635 fi
5636 else
5637 RANLIB="$ac_cv_prog_RANLIB"
5638 fi
5639
5640 test -z "$RANLIB" && RANLIB=:
5641
5642
5643
5644
5645
5646
5647 # Determine commands to create old-style static archives.
5648 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5649 old_postinstall_cmds='chmod 644 $oldlib'
5650 old_postuninstall_cmds=
5651
5652 if test -n "$RANLIB"; then
5653 case $host_os in
5654 openbsd*)
5655 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5656 ;;
5657 *)
5658 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5659 ;;
5660 esac
5661 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5662 fi
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697 # If no C compiler was specified, use CC.
5698 LTCC=${LTCC-"$CC"}
5699
5700 # If no C compiler flags were specified, use CFLAGS.
5701 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5702
5703 # Allow CC to be a program name with arguments.
5704 compiler=$CC
5705
5706
5707 # Check for command to grab the raw symbol name followed by C symbol from nm.
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5709 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5710 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5711 $as_echo_n "(cached) " >&6
5712 else
5713
5714 # These are sane defaults that work on at least a few old systems.
5715 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5716
5717 # Character class describing NM global symbol codes.
5718 symcode='[BCDEGRST]'
5719
5720 # Regexp to match symbols that can be accessed directly from C.
5721 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5722
5723 # Define system-specific variables.
5724 case $host_os in
5725 aix*)
5726 symcode='[BCDT]'
5727 ;;
5728 cygwin* | mingw* | pw32* | cegcc*)
5729 symcode='[ABCDGISTW]'
5730 ;;
5731 hpux*)
5732 if test "$host_cpu" = ia64; then
5733 symcode='[ABCDEGRST]'
5734 fi
5735 ;;
5736 irix* | nonstopux*)
5737 symcode='[BCDEGRST]'
5738 ;;
5739 osf*)
5740 symcode='[BCDEGQRST]'
5741 ;;
5742 solaris*)
5743 symcode='[BDRT]'
5744 ;;
5745 sco3.2v5*)
5746 symcode='[DT]'
5747 ;;
5748 sysv4.2uw2*)
5749 symcode='[DT]'
5750 ;;
5751 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5752 symcode='[ABDT]'
5753 ;;
5754 sysv4)
5755 symcode='[DFNSTU]'
5756 ;;
5757 esac
5758
5759 # If we're using GNU nm, then use its standard symbol codes.
5760 case `$NM -V 2>&1` in
5761 *GNU* | *'with BFD'*)
5762 symcode='[ABCDGIRSTW]' ;;
5763 esac
5764
5765 # Transform an extracted symbol line into a proper C declaration.
5766 # Some systems (esp. on ia64) link data and code symbols differently,
5767 # so use this general approach.
5768 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5769
5770 # Transform an extracted symbol line into symbol name and symbol address
5771 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5772 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5773
5774 # Handle CRLF in mingw tool chain
5775 opt_cr=
5776 case $build_os in
5777 mingw*)
5778 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5779 ;;
5780 esac
5781
5782 # Try without a prefix underscore, then with it.
5783 for ac_symprfx in "" "_"; do
5784
5785 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5786 symxfrm="\\1 $ac_symprfx\\2 \\2"
5787
5788 # Write the raw and C identifiers.
5789 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5790 # Fake it for dumpbin and say T for any non-static function
5791 # and D for any global variable.
5792 # Also find C++ and __fastcall symbols from MSVC++,
5793 # which start with @ or ?.
5794 lt_cv_sys_global_symbol_pipe="$AWK '"\
5795 " {last_section=section; section=\$ 3};"\
5796 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5797 " \$ 0!~/External *\|/{next};"\
5798 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5799 " {if(hide[section]) next};"\
5800 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5801 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5802 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5803 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5804 " ' prfx=^$ac_symprfx"
5805 else
5806 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5807 fi
5808
5809 # Check to see that the pipe works correctly.
5810 pipe_works=no
5811
5812 rm -f conftest*
5813 cat > conftest.$ac_ext <<_LT_EOF
5814 #ifdef __cplusplus
5815 extern "C" {
5816 #endif
5817 char nm_test_var;
5818 void nm_test_func(void);
5819 void nm_test_func(void){}
5820 #ifdef __cplusplus
5821 }
5822 #endif
5823 int main(){nm_test_var='a';nm_test_func();return(0);}
5824 _LT_EOF
5825
5826 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5827 (eval $ac_compile) 2>&5
5828 ac_status=$?
5829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5830 test $ac_status = 0; }; then
5831 # Now try to grab the symbols.
5832 nlist=conftest.nm
5833 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5834 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5835 ac_status=$?
5836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5837 test $ac_status = 0; } && test -s "$nlist"; then
5838 # Try sorting and uniquifying the output.
5839 if sort "$nlist" | uniq > "$nlist"T; then
5840 mv -f "$nlist"T "$nlist"
5841 else
5842 rm -f "$nlist"T
5843 fi
5844
5845 # Make sure that we snagged all the symbols we need.
5846 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5847 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5848 cat <<_LT_EOF > conftest.$ac_ext
5849 #ifdef __cplusplus
5850 extern "C" {
5851 #endif
5852
5853 _LT_EOF
5854 # Now generate the symbol file.
5855 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5856
5857 cat <<_LT_EOF >> conftest.$ac_ext
5858
5859 /* The mapping between symbol names and symbols. */
5860 const struct {
5861 const char *name;
5862 void *address;
5863 }
5864 lt__PROGRAM__LTX_preloaded_symbols[] =
5865 {
5866 { "@PROGRAM@", (void *) 0 },
5867 _LT_EOF
5868 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5869 cat <<\_LT_EOF >> conftest.$ac_ext
5870 {0, (void *) 0}
5871 };
5872
5873 /* This works around a problem in FreeBSD linker */
5874 #ifdef FREEBSD_WORKAROUND
5875 static const void *lt_preloaded_setup() {
5876 return lt__PROGRAM__LTX_preloaded_symbols;
5877 }
5878 #endif
5879
5880 #ifdef __cplusplus
5881 }
5882 #endif
5883 _LT_EOF
5884 # Now try linking the two files.
5885 mv conftest.$ac_objext conftstm.$ac_objext
5886 lt_save_LIBS="$LIBS"
5887 lt_save_CFLAGS="$CFLAGS"
5888 LIBS="conftstm.$ac_objext"
5889 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5890 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5891 (eval $ac_link) 2>&5
5892 ac_status=$?
5893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5894 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5895 pipe_works=yes
5896 fi
5897 LIBS="$lt_save_LIBS"
5898 CFLAGS="$lt_save_CFLAGS"
5899 else
5900 echo "cannot find nm_test_func in $nlist" >&5
5901 fi
5902 else
5903 echo "cannot find nm_test_var in $nlist" >&5
5904 fi
5905 else
5906 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5907 fi
5908 else
5909 echo "$progname: failed program was:" >&5
5910 cat conftest.$ac_ext >&5
5911 fi
5912 rm -rf conftest* conftst*
5913
5914 # Do not use the global_symbol_pipe unless it works.
5915 if test "$pipe_works" = yes; then
5916 break
5917 else
5918 lt_cv_sys_global_symbol_pipe=
5919 fi
5920 done
5921
5922 fi
5923
5924 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5925 lt_cv_sys_global_symbol_to_cdecl=
5926 fi
5927 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5929 $as_echo "failed" >&6; }
5930 else
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5932 $as_echo "ok" >&6; }
5933 fi
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957 # Check whether --enable-libtool-lock was given.
5958 if test "${enable_libtool_lock+set}" = set; then :
5959 enableval=$enable_libtool_lock;
5960 fi
5961
5962 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5963
5964 # Some flags need to be propagated to the compiler or linker for good
5965 # libtool support.
5966 case $host in
5967 ia64-*-hpux*)
5968 # Find out which ABI we are using.
5969 echo 'int i;' > conftest.$ac_ext
5970 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5971 (eval $ac_compile) 2>&5
5972 ac_status=$?
5973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5974 test $ac_status = 0; }; then
5975 case `/usr/bin/file conftest.$ac_objext` in
5976 *ELF-32*)
5977 HPUX_IA64_MODE="32"
5978 ;;
5979 *ELF-64*)
5980 HPUX_IA64_MODE="64"
5981 ;;
5982 esac
5983 fi
5984 rm -rf conftest*
5985 ;;
5986 *-*-irix6*)
5987 # Find out which ABI we are using.
5988 echo '#line 5989 "configure"' > conftest.$ac_ext
5989 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5990 (eval $ac_compile) 2>&5
5991 ac_status=$?
5992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5993 test $ac_status = 0; }; then
5994 if test "$lt_cv_prog_gnu_ld" = yes; then
5995 case `/usr/bin/file conftest.$ac_objext` in
5996 *32-bit*)
5997 LD="${LD-ld} -melf32bsmip"
5998 ;;
5999 *N32*)
6000 LD="${LD-ld} -melf32bmipn32"
6001 ;;
6002 *64-bit*)
6003 LD="${LD-ld} -melf64bmip"
6004 ;;
6005 esac
6006 else
6007 case `/usr/bin/file conftest.$ac_objext` in
6008 *32-bit*)
6009 LD="${LD-ld} -32"
6010 ;;
6011 *N32*)
6012 LD="${LD-ld} -n32"
6013 ;;
6014 *64-bit*)
6015 LD="${LD-ld} -64"
6016 ;;
6017 esac
6018 fi
6019 fi
6020 rm -rf conftest*
6021 ;;
6022
6023 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6024 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6025 # Find out which ABI we are using.
6026 echo 'int i;' > conftest.$ac_ext
6027 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6028 (eval $ac_compile) 2>&5
6029 ac_status=$?
6030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6031 test $ac_status = 0; }; then
6032 case `/usr/bin/file conftest.o` in
6033 *32-bit*)
6034 case $host in
6035 x86_64-*kfreebsd*-gnu)
6036 LD="${LD-ld} -m elf_i386_fbsd"
6037 ;;
6038 x86_64-*linux*)
6039 LD="${LD-ld} -m elf_i386"
6040 ;;
6041 ppc64-*linux*|powerpc64-*linux*)
6042 LD="${LD-ld} -m elf32ppclinux"
6043 ;;
6044 s390x-*linux*)
6045 LD="${LD-ld} -m elf_s390"
6046 ;;
6047 sparc64-*linux*)
6048 LD="${LD-ld} -m elf32_sparc"
6049 ;;
6050 esac
6051 ;;
6052 *64-bit*)
6053 case $host in
6054 x86_64-*kfreebsd*-gnu)
6055 LD="${LD-ld} -m elf_x86_64_fbsd"
6056 ;;
6057 x86_64-*linux*)
6058 LD="${LD-ld} -m elf_x86_64"
6059 ;;
6060 ppc*-*linux*|powerpc*-*linux*)
6061 LD="${LD-ld} -m elf64ppc"
6062 ;;
6063 s390*-*linux*|s390*-*tpf*)
6064 LD="${LD-ld} -m elf64_s390"
6065 ;;
6066 sparc*-*linux*)
6067 LD="${LD-ld} -m elf64_sparc"
6068 ;;
6069 esac
6070 ;;
6071 esac
6072 fi
6073 rm -rf conftest*
6074 ;;
6075
6076 *-*-sco3.2v5*)
6077 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6078 SAVE_CFLAGS="$CFLAGS"
6079 CFLAGS="$CFLAGS -belf"
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6081 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6082 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6083 $as_echo_n "(cached) " >&6
6084 else
6085 ac_ext=c
6086 ac_cpp='$CPP $CPPFLAGS'
6087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6090
6091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6092 /* end confdefs.h. */
6093
6094 int
6095 main ()
6096 {
6097
6098 ;
6099 return 0;
6100 }
6101 _ACEOF
6102 if ac_fn_c_try_link "$LINENO"; then :
6103 lt_cv_cc_needs_belf=yes
6104 else
6105 lt_cv_cc_needs_belf=no
6106 fi
6107 rm -f core conftest.err conftest.$ac_objext \
6108 conftest$ac_exeext conftest.$ac_ext
6109 ac_ext=c
6110 ac_cpp='$CPP $CPPFLAGS'
6111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6114
6115 fi
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6117 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6118 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6119 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6120 CFLAGS="$SAVE_CFLAGS"
6121 fi
6122 ;;
6123 sparc*-*solaris*)
6124 # Find out which ABI we are using.
6125 echo 'int i;' > conftest.$ac_ext
6126 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6127 (eval $ac_compile) 2>&5
6128 ac_status=$?
6129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6130 test $ac_status = 0; }; then
6131 case `/usr/bin/file conftest.o` in
6132 *64-bit*)
6133 case $lt_cv_prog_gnu_ld in
6134 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6135 *)
6136 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6137 LD="${LD-ld} -64"
6138 fi
6139 ;;
6140 esac
6141 ;;
6142 esac
6143 fi
6144 rm -rf conftest*
6145 ;;
6146 esac
6147
6148 need_locks="$enable_libtool_lock"
6149
6150
6151 case $host_os in
6152 rhapsody* | darwin*)
6153 if test -n "$ac_tool_prefix"; then
6154 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6155 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6157 $as_echo_n "checking for $ac_word... " >&6; }
6158 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6159 $as_echo_n "(cached) " >&6
6160 else
6161 if test -n "$DSYMUTIL"; then
6162 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6163 else
6164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6165 for as_dir in $PATH
6166 do
6167 IFS=$as_save_IFS
6168 test -z "$as_dir" && as_dir=.
6169 for ac_exec_ext in '' $ac_executable_extensions; do
6170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6171 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6173 break 2
6174 fi
6175 done
6176 done
6177 IFS=$as_save_IFS
6178
6179 fi
6180 fi
6181 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6182 if test -n "$DSYMUTIL"; then
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6184 $as_echo "$DSYMUTIL" >&6; }
6185 else
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6187 $as_echo "no" >&6; }
6188 fi
6189
6190
6191 fi
6192 if test -z "$ac_cv_prog_DSYMUTIL"; then
6193 ac_ct_DSYMUTIL=$DSYMUTIL
6194 # Extract the first word of "dsymutil", so it can be a program name with args.
6195 set dummy dsymutil; ac_word=$2
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6197 $as_echo_n "checking for $ac_word... " >&6; }
6198 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6199 $as_echo_n "(cached) " >&6
6200 else
6201 if test -n "$ac_ct_DSYMUTIL"; then
6202 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6203 else
6204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6205 for as_dir in $PATH
6206 do
6207 IFS=$as_save_IFS
6208 test -z "$as_dir" && as_dir=.
6209 for ac_exec_ext in '' $ac_executable_extensions; do
6210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6211 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6213 break 2
6214 fi
6215 done
6216 done
6217 IFS=$as_save_IFS
6218
6219 fi
6220 fi
6221 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6222 if test -n "$ac_ct_DSYMUTIL"; then
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6224 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6225 else
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6227 $as_echo "no" >&6; }
6228 fi
6229
6230 if test "x$ac_ct_DSYMUTIL" = x; then
6231 DSYMUTIL=":"
6232 else
6233 case $cross_compiling:$ac_tool_warned in
6234 yes:)
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6236 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6237 ac_tool_warned=yes ;;
6238 esac
6239 DSYMUTIL=$ac_ct_DSYMUTIL
6240 fi
6241 else
6242 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6243 fi
6244
6245 if test -n "$ac_tool_prefix"; then
6246 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6247 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6249 $as_echo_n "checking for $ac_word... " >&6; }
6250 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6251 $as_echo_n "(cached) " >&6
6252 else
6253 if test -n "$NMEDIT"; then
6254 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6255 else
6256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6257 for as_dir in $PATH
6258 do
6259 IFS=$as_save_IFS
6260 test -z "$as_dir" && as_dir=.
6261 for ac_exec_ext in '' $ac_executable_extensions; do
6262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6263 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6265 break 2
6266 fi
6267 done
6268 done
6269 IFS=$as_save_IFS
6270
6271 fi
6272 fi
6273 NMEDIT=$ac_cv_prog_NMEDIT
6274 if test -n "$NMEDIT"; then
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6276 $as_echo "$NMEDIT" >&6; }
6277 else
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6279 $as_echo "no" >&6; }
6280 fi
6281
6282
6283 fi
6284 if test -z "$ac_cv_prog_NMEDIT"; then
6285 ac_ct_NMEDIT=$NMEDIT
6286 # Extract the first word of "nmedit", so it can be a program name with args.
6287 set dummy nmedit; ac_word=$2
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6289 $as_echo_n "checking for $ac_word... " >&6; }
6290 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6291 $as_echo_n "(cached) " >&6
6292 else
6293 if test -n "$ac_ct_NMEDIT"; then
6294 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6295 else
6296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6297 for as_dir in $PATH
6298 do
6299 IFS=$as_save_IFS
6300 test -z "$as_dir" && as_dir=.
6301 for ac_exec_ext in '' $ac_executable_extensions; do
6302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6303 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6305 break 2
6306 fi
6307 done
6308 done
6309 IFS=$as_save_IFS
6310
6311 fi
6312 fi
6313 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6314 if test -n "$ac_ct_NMEDIT"; then
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6316 $as_echo "$ac_ct_NMEDIT" >&6; }
6317 else
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6319 $as_echo "no" >&6; }
6320 fi
6321
6322 if test "x$ac_ct_NMEDIT" = x; then
6323 NMEDIT=":"
6324 else
6325 case $cross_compiling:$ac_tool_warned in
6326 yes:)
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6328 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6329 ac_tool_warned=yes ;;
6330 esac
6331 NMEDIT=$ac_ct_NMEDIT
6332 fi
6333 else
6334 NMEDIT="$ac_cv_prog_NMEDIT"
6335 fi
6336
6337 if test -n "$ac_tool_prefix"; then
6338 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6339 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6341 $as_echo_n "checking for $ac_word... " >&6; }
6342 if test "${ac_cv_prog_LIPO+set}" = set; then :
6343 $as_echo_n "(cached) " >&6
6344 else
6345 if test -n "$LIPO"; then
6346 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6347 else
6348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6349 for as_dir in $PATH
6350 do
6351 IFS=$as_save_IFS
6352 test -z "$as_dir" && as_dir=.
6353 for ac_exec_ext in '' $ac_executable_extensions; do
6354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6355 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6357 break 2
6358 fi
6359 done
6360 done
6361 IFS=$as_save_IFS
6362
6363 fi
6364 fi
6365 LIPO=$ac_cv_prog_LIPO
6366 if test -n "$LIPO"; then
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6368 $as_echo "$LIPO" >&6; }
6369 else
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6371 $as_echo "no" >&6; }
6372 fi
6373
6374
6375 fi
6376 if test -z "$ac_cv_prog_LIPO"; then
6377 ac_ct_LIPO=$LIPO
6378 # Extract the first word of "lipo", so it can be a program name with args.
6379 set dummy lipo; ac_word=$2
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6381 $as_echo_n "checking for $ac_word... " >&6; }
6382 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6383 $as_echo_n "(cached) " >&6
6384 else
6385 if test -n "$ac_ct_LIPO"; then
6386 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6387 else
6388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6389 for as_dir in $PATH
6390 do
6391 IFS=$as_save_IFS
6392 test -z "$as_dir" && as_dir=.
6393 for ac_exec_ext in '' $ac_executable_extensions; do
6394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6395 ac_cv_prog_ac_ct_LIPO="lipo"
6396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6397 break 2
6398 fi
6399 done
6400 done
6401 IFS=$as_save_IFS
6402
6403 fi
6404 fi
6405 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6406 if test -n "$ac_ct_LIPO"; then
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6408 $as_echo "$ac_ct_LIPO" >&6; }
6409 else
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6411 $as_echo "no" >&6; }
6412 fi
6413
6414 if test "x$ac_ct_LIPO" = x; then
6415 LIPO=":"
6416 else
6417 case $cross_compiling:$ac_tool_warned in
6418 yes:)
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6420 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6421 ac_tool_warned=yes ;;
6422 esac
6423 LIPO=$ac_ct_LIPO
6424 fi
6425 else
6426 LIPO="$ac_cv_prog_LIPO"
6427 fi
6428
6429 if test -n "$ac_tool_prefix"; then
6430 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6431 set dummy ${ac_tool_prefix}otool; ac_word=$2
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6433 $as_echo_n "checking for $ac_word... " >&6; }
6434 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6435 $as_echo_n "(cached) " >&6
6436 else
6437 if test -n "$OTOOL"; then
6438 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6439 else
6440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6441 for as_dir in $PATH
6442 do
6443 IFS=$as_save_IFS
6444 test -z "$as_dir" && as_dir=.
6445 for ac_exec_ext in '' $ac_executable_extensions; do
6446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6447 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6449 break 2
6450 fi
6451 done
6452 done
6453 IFS=$as_save_IFS
6454
6455 fi
6456 fi
6457 OTOOL=$ac_cv_prog_OTOOL
6458 if test -n "$OTOOL"; then
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6460 $as_echo "$OTOOL" >&6; }
6461 else
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6463 $as_echo "no" >&6; }
6464 fi
6465
6466
6467 fi
6468 if test -z "$ac_cv_prog_OTOOL"; then
6469 ac_ct_OTOOL=$OTOOL
6470 # Extract the first word of "otool", so it can be a program name with args.
6471 set dummy otool; ac_word=$2
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6473 $as_echo_n "checking for $ac_word... " >&6; }
6474 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6475 $as_echo_n "(cached) " >&6
6476 else
6477 if test -n "$ac_ct_OTOOL"; then
6478 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6479 else
6480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6481 for as_dir in $PATH
6482 do
6483 IFS=$as_save_IFS
6484 test -z "$as_dir" && as_dir=.
6485 for ac_exec_ext in '' $ac_executable_extensions; do
6486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6487 ac_cv_prog_ac_ct_OTOOL="otool"
6488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6489 break 2
6490 fi
6491 done
6492 done
6493 IFS=$as_save_IFS
6494
6495 fi
6496 fi
6497 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6498 if test -n "$ac_ct_OTOOL"; then
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6500 $as_echo "$ac_ct_OTOOL" >&6; }
6501 else
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6503 $as_echo "no" >&6; }
6504 fi
6505
6506 if test "x$ac_ct_OTOOL" = x; then
6507 OTOOL=":"
6508 else
6509 case $cross_compiling:$ac_tool_warned in
6510 yes:)
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6512 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6513 ac_tool_warned=yes ;;
6514 esac
6515 OTOOL=$ac_ct_OTOOL
6516 fi
6517 else
6518 OTOOL="$ac_cv_prog_OTOOL"
6519 fi
6520
6521 if test -n "$ac_tool_prefix"; then
6522 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6523 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6525 $as_echo_n "checking for $ac_word... " >&6; }
6526 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6527 $as_echo_n "(cached) " >&6
6528 else
6529 if test -n "$OTOOL64"; then
6530 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6531 else
6532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6533 for as_dir in $PATH
6534 do
6535 IFS=$as_save_IFS
6536 test -z "$as_dir" && as_dir=.
6537 for ac_exec_ext in '' $ac_executable_extensions; do
6538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6539 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6541 break 2
6542 fi
6543 done
6544 done
6545 IFS=$as_save_IFS
6546
6547 fi
6548 fi
6549 OTOOL64=$ac_cv_prog_OTOOL64
6550 if test -n "$OTOOL64"; then
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6552 $as_echo "$OTOOL64" >&6; }
6553 else
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6555 $as_echo "no" >&6; }
6556 fi
6557
6558
6559 fi
6560 if test -z "$ac_cv_prog_OTOOL64"; then
6561 ac_ct_OTOOL64=$OTOOL64
6562 # Extract the first word of "otool64", so it can be a program name with args.
6563 set dummy otool64; ac_word=$2
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6565 $as_echo_n "checking for $ac_word... " >&6; }
6566 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6567 $as_echo_n "(cached) " >&6
6568 else
6569 if test -n "$ac_ct_OTOOL64"; then
6570 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6571 else
6572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6573 for as_dir in $PATH
6574 do
6575 IFS=$as_save_IFS
6576 test -z "$as_dir" && as_dir=.
6577 for ac_exec_ext in '' $ac_executable_extensions; do
6578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6579 ac_cv_prog_ac_ct_OTOOL64="otool64"
6580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6581 break 2
6582 fi
6583 done
6584 done
6585 IFS=$as_save_IFS
6586
6587 fi
6588 fi
6589 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6590 if test -n "$ac_ct_OTOOL64"; then
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6592 $as_echo "$ac_ct_OTOOL64" >&6; }
6593 else
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6595 $as_echo "no" >&6; }
6596 fi
6597
6598 if test "x$ac_ct_OTOOL64" = x; then
6599 OTOOL64=":"
6600 else
6601 case $cross_compiling:$ac_tool_warned in
6602 yes:)
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6604 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6605 ac_tool_warned=yes ;;
6606 esac
6607 OTOOL64=$ac_ct_OTOOL64
6608 fi
6609 else
6610 OTOOL64="$ac_cv_prog_OTOOL64"
6611 fi
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6640 $as_echo_n "checking for -single_module linker flag... " >&6; }
6641 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6642 $as_echo_n "(cached) " >&6
6643 else
6644 lt_cv_apple_cc_single_mod=no
6645 if test -z "${LT_MULTI_MODULE}"; then
6646 # By default we will add the -single_module flag. You can override
6647 # by either setting the environment variable LT_MULTI_MODULE
6648 # non-empty at configure time, or by adding -multi_module to the
6649 # link flags.
6650 rm -rf libconftest.dylib*
6651 echo "int foo(void){return 1;}" > conftest.c
6652 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6653 -dynamiclib -Wl,-single_module conftest.c" >&5
6654 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6655 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6656 _lt_result=$?
6657 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6658 lt_cv_apple_cc_single_mod=yes
6659 else
6660 cat conftest.err >&5
6661 fi
6662 rm -rf libconftest.dylib*
6663 rm -f conftest.*
6664 fi
6665 fi
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6667 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6669 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6670 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6671 $as_echo_n "(cached) " >&6
6672 else
6673 lt_cv_ld_exported_symbols_list=no
6674 save_LDFLAGS=$LDFLAGS
6675 echo "_main" > conftest.sym
6676 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6678 /* end confdefs.h. */
6679
6680 int
6681 main ()
6682 {
6683
6684 ;
6685 return 0;
6686 }
6687 _ACEOF
6688 if ac_fn_c_try_link "$LINENO"; then :
6689 lt_cv_ld_exported_symbols_list=yes
6690 else
6691 lt_cv_ld_exported_symbols_list=no
6692 fi
6693 rm -f core conftest.err conftest.$ac_objext \
6694 conftest$ac_exeext conftest.$ac_ext
6695 LDFLAGS="$save_LDFLAGS"
6696
6697 fi
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6699 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6700 case $host_os in
6701 rhapsody* | darwin1.[012])
6702 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6703 darwin1.*)
6704 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6705 darwin*) # darwin 5.x on
6706 # if running on 10.5 or later, the deployment target defaults
6707 # to the OS version, if on x86, and 10.4, the deployment
6708 # target defaults to 10.4. Don't you love it?
6709 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6710 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6711 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6712 10.[012]*)
6713 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6714 10.*)
6715 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6716 esac
6717 ;;
6718 esac
6719 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6720 _lt_dar_single_mod='$single_module'
6721 fi
6722 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6723 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6724 else
6725 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6726 fi
6727 if test "$DSYMUTIL" != ":"; then
6728 _lt_dsymutil='~$DSYMUTIL $lib || :'
6729 else
6730 _lt_dsymutil=
6731 fi
6732 ;;
6733 esac
6734
6735 ac_ext=c
6736 ac_cpp='$CPP $CPPFLAGS'
6737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6741 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6742 # On Suns, sometimes $CPP names a directory.
6743 if test -n "$CPP" && test -d "$CPP"; then
6744 CPP=
6745 fi
6746 if test -z "$CPP"; then
6747 if test "${ac_cv_prog_CPP+set}" = set; then :
6748 $as_echo_n "(cached) " >&6
6749 else
6750 # Double quotes because CPP needs to be expanded
6751 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6752 do
6753 ac_preproc_ok=false
6754 for ac_c_preproc_warn_flag in '' yes
6755 do
6756 # Use a header file that comes with gcc, so configuring glibc
6757 # with a fresh cross-compiler works.
6758 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6759 # <limits.h> exists even on freestanding compilers.
6760 # On the NeXT, cc -E runs the code through the compiler's parser,
6761 # not just through cpp. "Syntax error" is here to catch this case.
6762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6763 /* end confdefs.h. */
6764 #ifdef __STDC__
6765 # include <limits.h>
6766 #else
6767 # include <assert.h>
6768 #endif
6769 Syntax error
6770 _ACEOF
6771 if ac_fn_c_try_cpp "$LINENO"; then :
6772
6773 else
6774 # Broken: fails on valid input.
6775 continue
6776 fi
6777 rm -f conftest.err conftest.$ac_ext
6778
6779 # OK, works on sane cases. Now check whether nonexistent headers
6780 # can be detected and how.
6781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6782 /* end confdefs.h. */
6783 #include <ac_nonexistent.h>
6784 _ACEOF
6785 if ac_fn_c_try_cpp "$LINENO"; then :
6786 # Broken: success on invalid input.
6787 continue
6788 else
6789 # Passes both tests.
6790 ac_preproc_ok=:
6791 break
6792 fi
6793 rm -f conftest.err conftest.$ac_ext
6794
6795 done
6796 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6797 rm -f conftest.err conftest.$ac_ext
6798 if $ac_preproc_ok; then :
6799 break
6800 fi
6801
6802 done
6803 ac_cv_prog_CPP=$CPP
6804
6805 fi
6806 CPP=$ac_cv_prog_CPP
6807 else
6808 ac_cv_prog_CPP=$CPP
6809 fi
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6811 $as_echo "$CPP" >&6; }
6812 ac_preproc_ok=false
6813 for ac_c_preproc_warn_flag in '' yes
6814 do
6815 # Use a header file that comes with gcc, so configuring glibc
6816 # with a fresh cross-compiler works.
6817 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6818 # <limits.h> exists even on freestanding compilers.
6819 # On the NeXT, cc -E runs the code through the compiler's parser,
6820 # not just through cpp. "Syntax error" is here to catch this case.
6821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6822 /* end confdefs.h. */
6823 #ifdef __STDC__
6824 # include <limits.h>
6825 #else
6826 # include <assert.h>
6827 #endif
6828 Syntax error
6829 _ACEOF
6830 if ac_fn_c_try_cpp "$LINENO"; then :
6831
6832 else
6833 # Broken: fails on valid input.
6834 continue
6835 fi
6836 rm -f conftest.err conftest.$ac_ext
6837
6838 # OK, works on sane cases. Now check whether nonexistent headers
6839 # can be detected and how.
6840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6841 /* end confdefs.h. */
6842 #include <ac_nonexistent.h>
6843 _ACEOF
6844 if ac_fn_c_try_cpp "$LINENO"; then :
6845 # Broken: success on invalid input.
6846 continue
6847 else
6848 # Passes both tests.
6849 ac_preproc_ok=:
6850 break
6851 fi
6852 rm -f conftest.err conftest.$ac_ext
6853
6854 done
6855 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6856 rm -f conftest.err conftest.$ac_ext
6857 if $ac_preproc_ok; then :
6858
6859 else
6860 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6861 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6862 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6863 See \`config.log' for more details." "$LINENO" 5; }
6864 fi
6865
6866 ac_ext=c
6867 ac_cpp='$CPP $CPPFLAGS'
6868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6871
6872
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6874 $as_echo_n "checking for ANSI C header files... " >&6; }
6875 if test "${ac_cv_header_stdc+set}" = set; then :
6876 $as_echo_n "(cached) " >&6
6877 else
6878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6879 /* end confdefs.h. */
6880 #include <stdlib.h>
6881 #include <stdarg.h>
6882 #include <string.h>
6883 #include <float.h>
6884
6885 int
6886 main ()
6887 {
6888
6889 ;
6890 return 0;
6891 }
6892 _ACEOF
6893 if ac_fn_c_try_compile "$LINENO"; then :
6894 ac_cv_header_stdc=yes
6895 else
6896 ac_cv_header_stdc=no
6897 fi
6898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6899
6900 if test $ac_cv_header_stdc = yes; then
6901 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6903 /* end confdefs.h. */
6904 #include <string.h>
6905
6906 _ACEOF
6907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6908 $EGREP "memchr" >/dev/null 2>&1; then :
6909
6910 else
6911 ac_cv_header_stdc=no
6912 fi
6913 rm -f conftest*
6914
6915 fi
6916
6917 if test $ac_cv_header_stdc = yes; then
6918 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6920 /* end confdefs.h. */
6921 #include <stdlib.h>
6922
6923 _ACEOF
6924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6925 $EGREP "free" >/dev/null 2>&1; then :
6926
6927 else
6928 ac_cv_header_stdc=no
6929 fi
6930 rm -f conftest*
6931
6932 fi
6933
6934 if test $ac_cv_header_stdc = yes; then
6935 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6936 if test "$cross_compiling" = yes; then :
6937 :
6938 else
6939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6940 /* end confdefs.h. */
6941 #include <ctype.h>
6942 #include <stdlib.h>
6943 #if ((' ' & 0x0FF) == 0x020)
6944 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6945 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6946 #else
6947 # define ISLOWER(c) \
6948 (('a' <= (c) && (c) <= 'i') \
6949 || ('j' <= (c) && (c) <= 'r') \
6950 || ('s' <= (c) && (c) <= 'z'))
6951 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6952 #endif
6953
6954 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6955 int
6956 main ()
6957 {
6958 int i;
6959 for (i = 0; i < 256; i++)
6960 if (XOR (islower (i), ISLOWER (i))
6961 || toupper (i) != TOUPPER (i))
6962 return 2;
6963 return 0;
6964 }
6965 _ACEOF
6966 if ac_fn_c_try_run "$LINENO"; then :
6967
6968 else
6969 ac_cv_header_stdc=no
6970 fi
6971 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6972 conftest.$ac_objext conftest.beam conftest.$ac_ext
6973 fi
6974
6975 fi
6976 fi
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6978 $as_echo "$ac_cv_header_stdc" >&6; }
6979 if test $ac_cv_header_stdc = yes; then
6980
6981 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6982
6983 fi
6984
6985 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6986 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6987 inttypes.h stdint.h unistd.h
6988 do :
6989 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6990 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6991 "
6992 eval as_val=\$$as_ac_Header
6993 if test "x$as_val" = x""yes; then :
6994 cat >>confdefs.h <<_ACEOF
6995 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6996 _ACEOF
6997
6998 fi
6999
7000 done
7001
7002
7003 for ac_header in dlfcn.h
7004 do :
7005 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7006 "
7007 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7008 cat >>confdefs.h <<_ACEOF
7009 #define HAVE_DLFCN_H 1
7010 _ACEOF
7011
7012 fi
7013
7014 done
7015
7016
7017
7018 # Set options
7019
7020
7021
7022 enable_dlopen=no
7023
7024
7025
7026 # Check whether --enable-shared was given.
7027 if test "${enable_shared+set}" = set; then :
7028 enableval=$enable_shared; p=${PACKAGE-default}
7029 case $enableval in
7030 yes) enable_shared=yes ;;
7031 no) enable_shared=no ;;
7032 *)
7033 enable_shared=no
7034 # Look at the argument we got. We use all the common list separators.
7035 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7036 for pkg in $enableval; do
7037 IFS="$lt_save_ifs"
7038 if test "X$pkg" = "X$p"; then
7039 enable_shared=yes
7040 fi
7041 done
7042 IFS="$lt_save_ifs"
7043 ;;
7044 esac
7045 else
7046 enable_shared=yes
7047 fi
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057 # Check whether --enable-static was given.
7058 if test "${enable_static+set}" = set; then :
7059 enableval=$enable_static; p=${PACKAGE-default}
7060 case $enableval in
7061 yes) enable_static=yes ;;
7062 no) enable_static=no ;;
7063 *)
7064 enable_static=no
7065 # Look at the argument we got. We use all the common list separators.
7066 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7067 for pkg in $enableval; do
7068 IFS="$lt_save_ifs"
7069 if test "X$pkg" = "X$p"; then
7070 enable_static=yes
7071 fi
7072 done
7073 IFS="$lt_save_ifs"
7074 ;;
7075 esac
7076 else
7077 enable_static=yes
7078 fi
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089 # Check whether --with-pic was given.
7090 if test "${with_pic+set}" = set; then :
7091 withval=$with_pic; pic_mode="$withval"
7092 else
7093 pic_mode=default
7094 fi
7095
7096
7097 test -z "$pic_mode" && pic_mode=default
7098
7099
7100
7101
7102
7103
7104
7105 # Check whether --enable-fast-install was given.
7106 if test "${enable_fast_install+set}" = set; then :
7107 enableval=$enable_fast_install; p=${PACKAGE-default}
7108 case $enableval in
7109 yes) enable_fast_install=yes ;;
7110 no) enable_fast_install=no ;;
7111 *)
7112 enable_fast_install=no
7113 # Look at the argument we got. We use all the common list separators.
7114 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7115 for pkg in $enableval; do
7116 IFS="$lt_save_ifs"
7117 if test "X$pkg" = "X$p"; then
7118 enable_fast_install=yes
7119 fi
7120 done
7121 IFS="$lt_save_ifs"
7122 ;;
7123 esac
7124 else
7125 enable_fast_install=yes
7126 fi
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138 # This can be used to rebuild libtool when needed
7139 LIBTOOL_DEPS="$ltmain"
7140
7141 # Always use our own libtool.
7142 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168 test -z "$LN_S" && LN_S="ln -s"
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183 if test -n "${ZSH_VERSION+set}" ; then
7184 setopt NO_GLOB_SUBST
7185 fi
7186
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7188 $as_echo_n "checking for objdir... " >&6; }
7189 if test "${lt_cv_objdir+set}" = set; then :
7190 $as_echo_n "(cached) " >&6
7191 else
7192 rm -f .libs 2>/dev/null
7193 mkdir .libs 2>/dev/null
7194 if test -d .libs; then
7195 lt_cv_objdir=.libs
7196 else
7197 # MS-DOS does not allow filenames that begin with a dot.
7198 lt_cv_objdir=_libs
7199 fi
7200 rmdir .libs 2>/dev/null
7201 fi
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7203 $as_echo "$lt_cv_objdir" >&6; }
7204 objdir=$lt_cv_objdir
7205
7206
7207
7208
7209
7210 cat >>confdefs.h <<_ACEOF
7211 #define LT_OBJDIR "$lt_cv_objdir/"
7212 _ACEOF
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230 case $host_os in
7231 aix3*)
7232 # AIX sometimes has problems with the GCC collect2 program. For some
7233 # reason, if we set the COLLECT_NAMES environment variable, the problems
7234 # vanish in a puff of smoke.
7235 if test "X${COLLECT_NAMES+set}" != Xset; then
7236 COLLECT_NAMES=
7237 export COLLECT_NAMES
7238 fi
7239 ;;
7240 esac
7241
7242 # Sed substitution that helps us do robust quoting. It backslashifies
7243 # metacharacters that are still active within double-quoted strings.
7244 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7245
7246 # Same as above, but do not quote variable references.
7247 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7248
7249 # Sed substitution to delay expansion of an escaped shell variable in a
7250 # double_quote_subst'ed string.
7251 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7252
7253 # Sed substitution to delay expansion of an escaped single quote.
7254 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7255
7256 # Sed substitution to avoid accidental globbing in evaled expressions
7257 no_glob_subst='s/\*/\\\*/g'
7258
7259 # Global variables:
7260 ofile=libtool
7261 can_build_shared=yes
7262
7263 # All known linkers require a `.a' archive for static linking (except MSVC,
7264 # which needs '.lib').
7265 libext=a
7266
7267 with_gnu_ld="$lt_cv_prog_gnu_ld"
7268
7269 old_CC="$CC"
7270 old_CFLAGS="$CFLAGS"
7271
7272 # Set sane defaults for various variables
7273 test -z "$CC" && CC=cc
7274 test -z "$LTCC" && LTCC=$CC
7275 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7276 test -z "$LD" && LD=ld
7277 test -z "$ac_objext" && ac_objext=o
7278
7279 for cc_temp in $compiler""; do
7280 case $cc_temp in
7281 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7282 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7283 \-*) ;;
7284 *) break;;
7285 esac
7286 done
7287 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7288
7289
7290 # Only perform the check for file, if the check method requires it
7291 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7292 case $deplibs_check_method in
7293 file_magic*)
7294 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7296 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7297 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7298 $as_echo_n "(cached) " >&6
7299 else
7300 case $MAGIC_CMD in
7301 [\\/*] | ?:[\\/]*)
7302 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7303 ;;
7304 *)
7305 lt_save_MAGIC_CMD="$MAGIC_CMD"
7306 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7307 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7308 for ac_dir in $ac_dummy; do
7309 IFS="$lt_save_ifs"
7310 test -z "$ac_dir" && ac_dir=.
7311 if test -f $ac_dir/${ac_tool_prefix}file; then
7312 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7313 if test -n "$file_magic_test_file"; then
7314 case $deplibs_check_method in
7315 "file_magic "*)
7316 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7317 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7318 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7319 $EGREP "$file_magic_regex" > /dev/null; then
7320 :
7321 else
7322 cat <<_LT_EOF 1>&2
7323
7324 *** Warning: the command libtool uses to detect shared libraries,
7325 *** $file_magic_cmd, produces output that libtool cannot recognize.
7326 *** The result is that libtool may fail to recognize shared libraries
7327 *** as such. This will affect the creation of libtool libraries that
7328 *** depend on shared libraries, but programs linked with such libtool
7329 *** libraries will work regardless of this problem. Nevertheless, you
7330 *** may want to report the problem to your system manager and/or to
7331 *** bug-libtool@gnu.org
7332
7333 _LT_EOF
7334 fi ;;
7335 esac
7336 fi
7337 break
7338 fi
7339 done
7340 IFS="$lt_save_ifs"
7341 MAGIC_CMD="$lt_save_MAGIC_CMD"
7342 ;;
7343 esac
7344 fi
7345
7346 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7347 if test -n "$MAGIC_CMD"; then
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7349 $as_echo "$MAGIC_CMD" >&6; }
7350 else
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7352 $as_echo "no" >&6; }
7353 fi
7354
7355
7356
7357
7358
7359 if test -z "$lt_cv_path_MAGIC_CMD"; then
7360 if test -n "$ac_tool_prefix"; then
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7362 $as_echo_n "checking for file... " >&6; }
7363 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7364 $as_echo_n "(cached) " >&6
7365 else
7366 case $MAGIC_CMD in
7367 [\\/*] | ?:[\\/]*)
7368 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7369 ;;
7370 *)
7371 lt_save_MAGIC_CMD="$MAGIC_CMD"
7372 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7373 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7374 for ac_dir in $ac_dummy; do
7375 IFS="$lt_save_ifs"
7376 test -z "$ac_dir" && ac_dir=.
7377 if test -f $ac_dir/file; then
7378 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7379 if test -n "$file_magic_test_file"; then
7380 case $deplibs_check_method in
7381 "file_magic "*)
7382 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7383 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7384 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7385 $EGREP "$file_magic_regex" > /dev/null; then
7386 :
7387 else
7388 cat <<_LT_EOF 1>&2
7389
7390 *** Warning: the command libtool uses to detect shared libraries,
7391 *** $file_magic_cmd, produces output that libtool cannot recognize.
7392 *** The result is that libtool may fail to recognize shared libraries
7393 *** as such. This will affect the creation of libtool libraries that
7394 *** depend on shared libraries, but programs linked with such libtool
7395 *** libraries will work regardless of this problem. Nevertheless, you
7396 *** may want to report the problem to your system manager and/or to
7397 *** bug-libtool@gnu.org
7398
7399 _LT_EOF
7400 fi ;;
7401 esac
7402 fi
7403 break
7404 fi
7405 done
7406 IFS="$lt_save_ifs"
7407 MAGIC_CMD="$lt_save_MAGIC_CMD"
7408 ;;
7409 esac
7410 fi
7411
7412 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7413 if test -n "$MAGIC_CMD"; then
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7415 $as_echo "$MAGIC_CMD" >&6; }
7416 else
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7418 $as_echo "no" >&6; }
7419 fi
7420
7421
7422 else
7423 MAGIC_CMD=:
7424 fi
7425 fi
7426
7427 fi
7428 ;;
7429 esac
7430
7431 # Use C for the default configuration in the libtool script
7432
7433 lt_save_CC="$CC"
7434 ac_ext=c
7435 ac_cpp='$CPP $CPPFLAGS'
7436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7439
7440
7441 # Source file extension for C test sources.
7442 ac_ext=c
7443
7444 # Object file extension for compiled C test sources.
7445 objext=o
7446 objext=$objext
7447
7448 # Code to be used in simple compile tests
7449 lt_simple_compile_test_code="int some_variable = 0;"
7450
7451 # Code to be used in simple link tests
7452 lt_simple_link_test_code='int main(){return(0);}'
7453
7454
7455
7456
7457
7458
7459
7460 # If no C compiler was specified, use CC.
7461 LTCC=${LTCC-"$CC"}
7462
7463 # If no C compiler flags were specified, use CFLAGS.
7464 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7465
7466 # Allow CC to be a program name with arguments.
7467 compiler=$CC
7468
7469 # Save the default compiler, since it gets overwritten when the other
7470 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7471 compiler_DEFAULT=$CC
7472
7473 # save warnings/boilerplate of simple test code
7474 ac_outfile=conftest.$ac_objext
7475 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7476 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7477 _lt_compiler_boilerplate=`cat conftest.err`
7478 $RM conftest*
7479
7480 ac_outfile=conftest.$ac_objext
7481 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7482 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7483 _lt_linker_boilerplate=`cat conftest.err`
7484 $RM -r conftest*
7485
7486
7487 ## CAVEAT EMPTOR:
7488 ## There is no encapsulation within the following macros, do not change
7489 ## the running order or otherwise move them around unless you know exactly
7490 ## what you are doing...
7491 if test -n "$compiler"; then
7492
7493 lt_prog_compiler_no_builtin_flag=
7494
7495 if test "$GCC" = yes; then
7496 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7497
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7499 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7500 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7501 $as_echo_n "(cached) " >&6
7502 else
7503 lt_cv_prog_compiler_rtti_exceptions=no
7504 ac_outfile=conftest.$ac_objext
7505 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7506 lt_compiler_flag="-fno-rtti -fno-exceptions"
7507 # Insert the option either (1) after the last *FLAGS variable, or
7508 # (2) before a word containing "conftest.", or (3) at the end.
7509 # Note that $ac_compile itself does not contain backslashes and begins
7510 # with a dollar sign (not a hyphen), so the echo should work correctly.
7511 # The option is referenced via a variable to avoid confusing sed.
7512 lt_compile=`echo "$ac_compile" | $SED \
7513 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7514 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7515 -e 's:$: $lt_compiler_flag:'`
7516 (eval echo "\"\$as_me:7517: $lt_compile\"" >&5)
7517 (eval "$lt_compile" 2>conftest.err)
7518 ac_status=$?
7519 cat conftest.err >&5
7520 echo "$as_me:7521: \$? = $ac_status" >&5
7521 if (exit $ac_status) && test -s "$ac_outfile"; then
7522 # The compiler can only warn and ignore the option if not recognized
7523 # So say no if there are warnings other than the usual output.
7524 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7525 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7526 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7527 lt_cv_prog_compiler_rtti_exceptions=yes
7528 fi
7529 fi
7530 $RM conftest*
7531
7532 fi
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7534 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7535
7536 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7537 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7538 else
7539 :
7540 fi
7541
7542 fi
7543
7544
7545
7546
7547
7548
7549 lt_prog_compiler_wl=
7550 lt_prog_compiler_pic=
7551 lt_prog_compiler_static=
7552
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7554 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7555
7556 if test "$GCC" = yes; then
7557 lt_prog_compiler_wl='-Wl,'
7558 lt_prog_compiler_static='-static'
7559
7560 case $host_os in
7561 aix*)
7562 # All AIX code is PIC.
7563 if test "$host_cpu" = ia64; then
7564 # AIX 5 now supports IA64 processor
7565 lt_prog_compiler_static='-Bstatic'
7566 fi
7567 ;;
7568
7569 amigaos*)
7570 case $host_cpu in
7571 powerpc)
7572 # see comment about AmigaOS4 .so support
7573 lt_prog_compiler_pic='-fPIC'
7574 ;;
7575 m68k)
7576 # FIXME: we need at least 68020 code to build shared libraries, but
7577 # adding the `-m68020' flag to GCC prevents building anything better,
7578 # like `-m68040'.
7579 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7580 ;;
7581 esac
7582 ;;
7583
7584 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7585 # PIC is the default for these OSes.
7586 ;;
7587
7588 mingw* | cygwin* | pw32* | os2* | cegcc*)
7589 # This hack is so that the source file can tell whether it is being
7590 # built for inclusion in a dll (and should export symbols for example).
7591 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7592 # (--disable-auto-import) libraries
7593 lt_prog_compiler_pic='-DDLL_EXPORT'
7594 ;;
7595
7596 darwin* | rhapsody*)
7597 # PIC is the default on this platform
7598 # Common symbols not allowed in MH_DYLIB files
7599 lt_prog_compiler_pic='-fno-common'
7600 ;;
7601
7602 hpux*)
7603 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7604 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7605 # sets the default TLS model and affects inlining.
7606 case $host_cpu in
7607 hppa*64*)
7608 # +Z the default
7609 ;;
7610 *)
7611 lt_prog_compiler_pic='-fPIC'
7612 ;;
7613 esac
7614 ;;
7615
7616 interix[3-9]*)
7617 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7618 # Instead, we relocate shared libraries at runtime.
7619 ;;
7620
7621 msdosdjgpp*)
7622 # Just because we use GCC doesn't mean we suddenly get shared libraries
7623 # on systems that don't support them.
7624 lt_prog_compiler_can_build_shared=no
7625 enable_shared=no
7626 ;;
7627
7628 *nto* | *qnx*)
7629 # QNX uses GNU C++, but need to define -shared option too, otherwise
7630 # it will coredump.
7631 lt_prog_compiler_pic='-fPIC -shared'
7632 ;;
7633
7634 sysv4*MP*)
7635 if test -d /usr/nec; then
7636 lt_prog_compiler_pic=-Kconform_pic
7637 fi
7638 ;;
7639
7640 *)
7641 lt_prog_compiler_pic='-fPIC'
7642 ;;
7643 esac
7644 else
7645 # PORTME Check for flag to pass linker flags through the system compiler.
7646 case $host_os in
7647 aix*)
7648 lt_prog_compiler_wl='-Wl,'
7649 if test "$host_cpu" = ia64; then
7650 # AIX 5 now supports IA64 processor
7651 lt_prog_compiler_static='-Bstatic'
7652 else
7653 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7654 fi
7655 ;;
7656
7657 mingw* | cygwin* | pw32* | os2* | cegcc*)
7658 # This hack is so that the source file can tell whether it is being
7659 # built for inclusion in a dll (and should export symbols for example).
7660 lt_prog_compiler_pic='-DDLL_EXPORT'
7661 ;;
7662
7663 hpux9* | hpux10* | hpux11*)
7664 lt_prog_compiler_wl='-Wl,'
7665 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7666 # not for PA HP-UX.
7667 case $host_cpu in
7668 hppa*64*|ia64*)
7669 # +Z the default
7670 ;;
7671 *)
7672 lt_prog_compiler_pic='+Z'
7673 ;;
7674 esac
7675 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7676 lt_prog_compiler_static='${wl}-a ${wl}archive'
7677 ;;
7678
7679 irix5* | irix6* | nonstopux*)
7680 lt_prog_compiler_wl='-Wl,'
7681 # PIC (with -KPIC) is the default.
7682 lt_prog_compiler_static='-non_shared'
7683 ;;
7684
7685 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7686 case $cc_basename in
7687 # old Intel for x86_64 which still supported -KPIC.
7688 ecc*)
7689 lt_prog_compiler_wl='-Wl,'
7690 lt_prog_compiler_pic='-KPIC'
7691 lt_prog_compiler_static='-static'
7692 ;;
7693 # icc used to be incompatible with GCC.
7694 # ICC 10 doesn't accept -KPIC any more.
7695 icc* | ifort*)
7696 lt_prog_compiler_wl='-Wl,'
7697 lt_prog_compiler_pic='-fPIC'
7698 lt_prog_compiler_static='-static'
7699 ;;
7700 # Lahey Fortran 8.1.
7701 lf95*)
7702 lt_prog_compiler_wl='-Wl,'
7703 lt_prog_compiler_pic='--shared'
7704 lt_prog_compiler_static='--static'
7705 ;;
7706 pgcc* | pgf77* | pgf90* | pgf95*)
7707 # Portland Group compilers (*not* the Pentium gcc compiler,
7708 # which looks to be a dead project)
7709 lt_prog_compiler_wl='-Wl,'
7710 lt_prog_compiler_pic='-fpic'
7711 lt_prog_compiler_static='-Bstatic'
7712 ;;
7713 ccc*)
7714 lt_prog_compiler_wl='-Wl,'
7715 # All Alpha code is PIC.
7716 lt_prog_compiler_static='-non_shared'
7717 ;;
7718 xl*)
7719 # IBM XL C 8.0/Fortran 10.1 on PPC
7720 lt_prog_compiler_wl='-Wl,'
7721 lt_prog_compiler_pic='-qpic'
7722 lt_prog_compiler_static='-qstaticlink'
7723 ;;
7724 *)
7725 case `$CC -V 2>&1 | sed 5q` in
7726 *Sun\ C*)
7727 # Sun C 5.9
7728 lt_prog_compiler_pic='-KPIC'
7729 lt_prog_compiler_static='-Bstatic'
7730 lt_prog_compiler_wl='-Wl,'
7731 ;;
7732 *Sun\ F*)
7733 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7734 lt_prog_compiler_pic='-KPIC'
7735 lt_prog_compiler_static='-Bstatic'
7736 lt_prog_compiler_wl=''
7737 ;;
7738 esac
7739 ;;
7740 esac
7741 ;;
7742
7743 newsos6)
7744 lt_prog_compiler_pic='-KPIC'
7745 lt_prog_compiler_static='-Bstatic'
7746 ;;
7747
7748 *nto* | *qnx*)
7749 # QNX uses GNU C++, but need to define -shared option too, otherwise
7750 # it will coredump.
7751 lt_prog_compiler_pic='-fPIC -shared'
7752 ;;
7753
7754 osf3* | osf4* | osf5*)
7755 lt_prog_compiler_wl='-Wl,'
7756 # All OSF/1 code is PIC.
7757 lt_prog_compiler_static='-non_shared'
7758 ;;
7759
7760 rdos*)
7761 lt_prog_compiler_static='-non_shared'
7762 ;;
7763
7764 solaris*)
7765 lt_prog_compiler_pic='-KPIC'
7766 lt_prog_compiler_static='-Bstatic'
7767 case $cc_basename in
7768 f77* | f90* | f95*)
7769 lt_prog_compiler_wl='-Qoption ld ';;
7770 *)
7771 lt_prog_compiler_wl='-Wl,';;
7772 esac
7773 ;;
7774
7775 sunos4*)
7776 lt_prog_compiler_wl='-Qoption ld '
7777 lt_prog_compiler_pic='-PIC'
7778 lt_prog_compiler_static='-Bstatic'
7779 ;;
7780
7781 sysv4 | sysv4.2uw2* | sysv4.3*)
7782 lt_prog_compiler_wl='-Wl,'
7783 lt_prog_compiler_pic='-KPIC'
7784 lt_prog_compiler_static='-Bstatic'
7785 ;;
7786
7787 sysv4*MP*)
7788 if test -d /usr/nec ;then
7789 lt_prog_compiler_pic='-Kconform_pic'
7790 lt_prog_compiler_static='-Bstatic'
7791 fi
7792 ;;
7793
7794 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7795 lt_prog_compiler_wl='-Wl,'
7796 lt_prog_compiler_pic='-KPIC'
7797 lt_prog_compiler_static='-Bstatic'
7798 ;;
7799
7800 unicos*)
7801 lt_prog_compiler_wl='-Wl,'
7802 lt_prog_compiler_can_build_shared=no
7803 ;;
7804
7805 uts4*)
7806 lt_prog_compiler_pic='-pic'
7807 lt_prog_compiler_static='-Bstatic'
7808 ;;
7809
7810 *)
7811 lt_prog_compiler_can_build_shared=no
7812 ;;
7813 esac
7814 fi
7815
7816 case $host_os in
7817 # For platforms which do not support PIC, -DPIC is meaningless:
7818 *djgpp*)
7819 lt_prog_compiler_pic=
7820 ;;
7821 *)
7822 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7823 ;;
7824 esac
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7826 $as_echo "$lt_prog_compiler_pic" >&6; }
7827
7828
7829
7830
7831
7832
7833 #
7834 # Check to make sure the PIC flag actually works.
7835 #
7836 if test -n "$lt_prog_compiler_pic"; then
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7838 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7839 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7840 $as_echo_n "(cached) " >&6
7841 else
7842 lt_cv_prog_compiler_pic_works=no
7843 ac_outfile=conftest.$ac_objext
7844 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7845 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7846 # Insert the option either (1) after the last *FLAGS variable, or
7847 # (2) before a word containing "conftest.", or (3) at the end.
7848 # Note that $ac_compile itself does not contain backslashes and begins
7849 # with a dollar sign (not a hyphen), so the echo should work correctly.
7850 # The option is referenced via a variable to avoid confusing sed.
7851 lt_compile=`echo "$ac_compile" | $SED \
7852 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7853 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7854 -e 's:$: $lt_compiler_flag:'`
7855 (eval echo "\"\$as_me:7856: $lt_compile\"" >&5)
7856 (eval "$lt_compile" 2>conftest.err)
7857 ac_status=$?
7858 cat conftest.err >&5
7859 echo "$as_me:7860: \$? = $ac_status" >&5
7860 if (exit $ac_status) && test -s "$ac_outfile"; then
7861 # The compiler can only warn and ignore the option if not recognized
7862 # So say no if there are warnings other than the usual output.
7863 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7864 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7865 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7866 lt_cv_prog_compiler_pic_works=yes
7867 fi
7868 fi
7869 $RM conftest*
7870
7871 fi
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7873 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7874
7875 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7876 case $lt_prog_compiler_pic in
7877 "" | " "*) ;;
7878 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7879 esac
7880 else
7881 lt_prog_compiler_pic=
7882 lt_prog_compiler_can_build_shared=no
7883 fi
7884
7885 fi
7886
7887
7888
7889
7890
7891
7892 #
7893 # Check to make sure the static flag actually works.
7894 #
7895 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7897 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7898 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7899 $as_echo_n "(cached) " >&6
7900 else
7901 lt_cv_prog_compiler_static_works=no
7902 save_LDFLAGS="$LDFLAGS"
7903 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7904 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7905 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7906 # The linker can only warn and ignore the option if not recognized
7907 # So say no if there are warnings
7908 if test -s conftest.err; then
7909 # Append any errors to the config.log.
7910 cat conftest.err 1>&5
7911 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7912 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7913 if diff conftest.exp conftest.er2 >/dev/null; then
7914 lt_cv_prog_compiler_static_works=yes
7915 fi
7916 else
7917 lt_cv_prog_compiler_static_works=yes
7918 fi
7919 fi
7920 $RM -r conftest*
7921 LDFLAGS="$save_LDFLAGS"
7922
7923 fi
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7925 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7926
7927 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7928 :
7929 else
7930 lt_prog_compiler_static=
7931 fi
7932
7933
7934
7935
7936
7937
7938
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7940 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7941 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7942 $as_echo_n "(cached) " >&6
7943 else
7944 lt_cv_prog_compiler_c_o=no
7945 $RM -r conftest 2>/dev/null
7946 mkdir conftest
7947 cd conftest
7948 mkdir out
7949 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7950
7951 lt_compiler_flag="-o out/conftest2.$ac_objext"
7952 # Insert the option either (1) after the last *FLAGS variable, or
7953 # (2) before a word containing "conftest.", or (3) at the end.
7954 # Note that $ac_compile itself does not contain backslashes and begins
7955 # with a dollar sign (not a hyphen), so the echo should work correctly.
7956 lt_compile=`echo "$ac_compile" | $SED \
7957 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7958 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7959 -e 's:$: $lt_compiler_flag:'`
7960 (eval echo "\"\$as_me:7961: $lt_compile\"" >&5)
7961 (eval "$lt_compile" 2>out/conftest.err)
7962 ac_status=$?
7963 cat out/conftest.err >&5
7964 echo "$as_me:7965: \$? = $ac_status" >&5
7965 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7966 then
7967 # The compiler can only warn and ignore the option if not recognized
7968 # So say no if there are warnings
7969 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7970 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7971 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7972 lt_cv_prog_compiler_c_o=yes
7973 fi
7974 fi
7975 chmod u+w . 2>&5
7976 $RM conftest*
7977 # SGI C++ compiler will create directory out/ii_files/ for
7978 # template instantiation
7979 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7980 $RM out/* && rmdir out
7981 cd ..
7982 $RM -r conftest
7983 $RM conftest*
7984
7985 fi
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7987 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7988
7989
7990
7991
7992
7993
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7995 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7996 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7997 $as_echo_n "(cached) " >&6
7998 else
7999 lt_cv_prog_compiler_c_o=no
8000 $RM -r conftest 2>/dev/null
8001 mkdir conftest
8002 cd conftest
8003 mkdir out
8004 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8005
8006 lt_compiler_flag="-o out/conftest2.$ac_objext"
8007 # Insert the option either (1) after the last *FLAGS variable, or
8008 # (2) before a word containing "conftest.", or (3) at the end.
8009 # Note that $ac_compile itself does not contain backslashes and begins
8010 # with a dollar sign (not a hyphen), so the echo should work correctly.
8011 lt_compile=`echo "$ac_compile" | $SED \
8012 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8013 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8014 -e 's:$: $lt_compiler_flag:'`
8015 (eval echo "\"\$as_me:8016: $lt_compile\"" >&5)
8016 (eval "$lt_compile" 2>out/conftest.err)
8017 ac_status=$?
8018 cat out/conftest.err >&5
8019 echo "$as_me:8020: \$? = $ac_status" >&5
8020 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8021 then
8022 # The compiler can only warn and ignore the option if not recognized
8023 # So say no if there are warnings
8024 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8025 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8026 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8027 lt_cv_prog_compiler_c_o=yes
8028 fi
8029 fi
8030 chmod u+w . 2>&5
8031 $RM conftest*
8032 # SGI C++ compiler will create directory out/ii_files/ for
8033 # template instantiation
8034 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8035 $RM out/* && rmdir out
8036 cd ..
8037 $RM -r conftest
8038 $RM conftest*
8039
8040 fi
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8042 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8043
8044
8045
8046
8047 hard_links="nottested"
8048 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8049 # do not overwrite the value of need_locks provided by the user
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8051 $as_echo_n "checking if we can lock with hard links... " >&6; }
8052 hard_links=yes
8053 $RM conftest*
8054 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8055 touch conftest.a
8056 ln conftest.a conftest.b 2>&5 || hard_links=no
8057 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8059 $as_echo "$hard_links" >&6; }
8060 if test "$hard_links" = no; then
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8062 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8063 need_locks=warn
8064 fi
8065 else
8066 need_locks=no
8067 fi
8068
8069
8070
8071
8072
8073
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8075 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8076
8077 runpath_var=
8078 allow_undefined_flag=
8079 always_export_symbols=no
8080 archive_cmds=
8081 archive_expsym_cmds=
8082 compiler_needs_object=no
8083 enable_shared_with_static_runtimes=no
8084 export_dynamic_flag_spec=
8085 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8086 hardcode_automatic=no
8087 hardcode_direct=no
8088 hardcode_direct_absolute=no
8089 hardcode_libdir_flag_spec=
8090 hardcode_libdir_flag_spec_ld=
8091 hardcode_libdir_separator=
8092 hardcode_minus_L=no
8093 hardcode_shlibpath_var=unsupported
8094 inherit_rpath=no
8095 link_all_deplibs=unknown
8096 module_cmds=
8097 module_expsym_cmds=
8098 old_archive_from_new_cmds=
8099 old_archive_from_expsyms_cmds=
8100 thread_safe_flag_spec=
8101 whole_archive_flag_spec=
8102 # include_expsyms should be a list of space-separated symbols to be *always*
8103 # included in the symbol list
8104 include_expsyms=
8105 # exclude_expsyms can be an extended regexp of symbols to exclude
8106 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8107 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8108 # as well as any symbol that contains `d'.
8109 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8110 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8111 # platforms (ab)use it in PIC code, but their linkers get confused if
8112 # the symbol is explicitly referenced. Since portable code cannot
8113 # rely on this symbol name, it's probably fine to never include it in
8114 # preloaded symbol tables.
8115 # Exclude shared library initialization/finalization symbols.
8116 extract_expsyms_cmds=
8117
8118 case $host_os in
8119 cygwin* | mingw* | pw32* | cegcc*)
8120 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8121 # When not using gcc, we currently assume that we are using
8122 # Microsoft Visual C++.
8123 if test "$GCC" != yes; then
8124 with_gnu_ld=no
8125 fi
8126 ;;
8127 interix*)
8128 # we just hope/assume this is gcc and not c89 (= MSVC++)
8129 with_gnu_ld=yes
8130 ;;
8131 openbsd*)
8132 with_gnu_ld=no
8133 ;;
8134 linux* | k*bsd*-gnu)
8135 link_all_deplibs=no
8136 ;;
8137 esac
8138
8139 ld_shlibs=yes
8140 if test "$with_gnu_ld" = yes; then
8141 # If archive_cmds runs LD, not CC, wlarc should be empty
8142 wlarc='${wl}'
8143
8144 # Set some defaults for GNU ld with shared library support. These
8145 # are reset later if shared libraries are not supported. Putting them
8146 # here allows them to be overridden if necessary.
8147 runpath_var=LD_RUN_PATH
8148 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8149 export_dynamic_flag_spec='${wl}--export-dynamic'
8150 # ancient GNU ld didn't support --whole-archive et. al.
8151 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8152 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8153 else
8154 whole_archive_flag_spec=
8155 fi
8156 supports_anon_versioning=no
8157 case `$LD -v 2>&1` in
8158 *GNU\ gold*) supports_anon_versioning=yes ;;
8159 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8160 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8161 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8162 *\ 2.11.*) ;; # other 2.11 versions
8163 *) supports_anon_versioning=yes ;;
8164 esac
8165
8166 # See if GNU ld supports shared libraries.
8167 case $host_os in
8168 aix[3-9]*)
8169 # On AIX/PPC, the GNU linker is very broken
8170 if test "$host_cpu" != ia64; then
8171 ld_shlibs=no
8172 cat <<_LT_EOF 1>&2
8173
8174 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8175 *** to be unable to reliably create shared libraries on AIX.
8176 *** Therefore, libtool is disabling shared libraries support. If you
8177 *** really care for shared libraries, you may want to modify your PATH
8178 *** so that a non-GNU linker is found, and then restart.
8179
8180 _LT_EOF
8181 fi
8182 ;;
8183
8184 amigaos*)
8185 case $host_cpu in
8186 powerpc)
8187 # see comment about AmigaOS4 .so support
8188 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8189 archive_expsym_cmds=''
8190 ;;
8191 m68k)
8192 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8193 hardcode_libdir_flag_spec='-L$libdir'
8194 hardcode_minus_L=yes
8195 ;;
8196 esac
8197 ;;
8198
8199 beos*)
8200 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8201 allow_undefined_flag=unsupported
8202 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8203 # support --undefined. This deserves some investigation. FIXME
8204 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8205 else
8206 ld_shlibs=no
8207 fi
8208 ;;
8209
8210 cygwin* | mingw* | pw32* | cegcc*)
8211 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8212 # as there is no search path for DLLs.
8213 hardcode_libdir_flag_spec='-L$libdir'
8214 allow_undefined_flag=unsupported
8215 always_export_symbols=no
8216 enable_shared_with_static_runtimes=yes
8217 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8218
8219 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8220 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8221 # If the export-symbols file already is a .def file (1st line
8222 # is EXPORTS), use it as is; otherwise, prepend...
8223 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8224 cp $export_symbols $output_objdir/$soname.def;
8225 else
8226 echo EXPORTS > $output_objdir/$soname.def;
8227 cat $export_symbols >> $output_objdir/$soname.def;
8228 fi~
8229 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8230 else
8231 ld_shlibs=no
8232 fi
8233 ;;
8234
8235 interix[3-9]*)
8236 hardcode_direct=no
8237 hardcode_shlibpath_var=no
8238 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8239 export_dynamic_flag_spec='${wl}-E'
8240 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8241 # Instead, shared libraries are loaded at an image base (0x10000000 by
8242 # default) and relocated if they conflict, which is a slow very memory
8243 # consuming and fragmenting process. To avoid this, we pick a random,
8244 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8245 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8246 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8247 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8248 ;;
8249
8250 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8251 tmp_diet=no
8252 if test "$host_os" = linux-dietlibc; then
8253 case $cc_basename in
8254 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8255 esac
8256 fi
8257 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8258 && test "$tmp_diet" = no
8259 then
8260 tmp_addflag=
8261 tmp_sharedflag='-shared'
8262 case $cc_basename,$host_cpu in
8263 pgcc*) # Portland Group C compiler
8264 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8265 tmp_addflag=' $pic_flag'
8266 ;;
8267 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8268 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8269 tmp_addflag=' $pic_flag -Mnomain' ;;
8270 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8271 tmp_addflag=' -i_dynamic' ;;
8272 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8273 tmp_addflag=' -i_dynamic -nofor_main' ;;
8274 ifc* | ifort*) # Intel Fortran compiler
8275 tmp_addflag=' -nofor_main' ;;
8276 lf95*) # Lahey Fortran 8.1
8277 whole_archive_flag_spec=
8278 tmp_sharedflag='--shared' ;;
8279 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8280 tmp_sharedflag='-qmkshrobj'
8281 tmp_addflag= ;;
8282 esac
8283 case `$CC -V 2>&1 | sed 5q` in
8284 *Sun\ C*) # Sun C 5.9
8285 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8286 compiler_needs_object=yes
8287 tmp_sharedflag='-G' ;;
8288 *Sun\ F*) # Sun Fortran 8.3
8289 tmp_sharedflag='-G' ;;
8290 esac
8291 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8292
8293 if test "x$supports_anon_versioning" = xyes; then
8294 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8295 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8296 echo "local: *; };" >> $output_objdir/$libname.ver~
8297 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8298 fi
8299
8300 case $cc_basename in
8301 xlf*)
8302 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8303 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8304 hardcode_libdir_flag_spec=
8305 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8306 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8307 if test "x$supports_anon_versioning" = xyes; then
8308 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8309 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8310 echo "local: *; };" >> $output_objdir/$libname.ver~
8311 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8312 fi
8313 ;;
8314 esac
8315 else
8316 ld_shlibs=no
8317 fi
8318 ;;
8319
8320 netbsd* | netbsdelf*-gnu)
8321 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8322 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8323 wlarc=
8324 else
8325 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8326 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8327 fi
8328 ;;
8329
8330 solaris*)
8331 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8332 ld_shlibs=no
8333 cat <<_LT_EOF 1>&2
8334
8335 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8336 *** create shared libraries on Solaris systems. Therefore, libtool
8337 *** is disabling shared libraries support. We urge you to upgrade GNU
8338 *** binutils to release 2.9.1 or newer. Another option is to modify
8339 *** your PATH or compiler configuration so that the native linker is
8340 *** used, and then restart.
8341
8342 _LT_EOF
8343 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8344 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8345 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8346 else
8347 ld_shlibs=no
8348 fi
8349 ;;
8350
8351 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8352 case `$LD -v 2>&1` in
8353 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8354 ld_shlibs=no
8355 cat <<_LT_EOF 1>&2
8356
8357 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8358 *** reliably create shared libraries on SCO systems. Therefore, libtool
8359 *** is disabling shared libraries support. We urge you to upgrade GNU
8360 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8361 *** your PATH or compiler configuration so that the native linker is
8362 *** used, and then restart.
8363
8364 _LT_EOF
8365 ;;
8366 *)
8367 # For security reasons, it is highly recommended that you always
8368 # use absolute paths for naming shared libraries, and exclude the
8369 # DT_RUNPATH tag from executables and libraries. But doing so
8370 # requires that you compile everything twice, which is a pain.
8371 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8372 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8373 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8374 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8375 else
8376 ld_shlibs=no
8377 fi
8378 ;;
8379 esac
8380 ;;
8381
8382 sunos4*)
8383 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8384 wlarc=
8385 hardcode_direct=yes
8386 hardcode_shlibpath_var=no
8387 ;;
8388
8389 *)
8390 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8391 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8392 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8393 else
8394 ld_shlibs=no
8395 fi
8396 ;;
8397 esac
8398
8399 if test "$ld_shlibs" = no; then
8400 runpath_var=
8401 hardcode_libdir_flag_spec=
8402 export_dynamic_flag_spec=
8403 whole_archive_flag_spec=
8404 fi
8405 else
8406 # PORTME fill in a description of your system's linker (not GNU ld)
8407 case $host_os in
8408 aix3*)
8409 allow_undefined_flag=unsupported
8410 always_export_symbols=yes
8411 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8412 # Note: this linker hardcodes the directories in LIBPATH if there
8413 # are no directories specified by -L.
8414 hardcode_minus_L=yes
8415 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8416 # Neither direct hardcoding nor static linking is supported with a
8417 # broken collect2.
8418 hardcode_direct=unsupported
8419 fi
8420 ;;
8421
8422 aix[4-9]*)
8423 if test "$host_cpu" = ia64; then
8424 # On IA64, the linker does run time linking by default, so we don't
8425 # have to do anything special.
8426 aix_use_runtimelinking=no
8427 exp_sym_flag='-Bexport'
8428 no_entry_flag=""
8429 else
8430 # If we're using GNU nm, then we don't want the "-C" option.
8431 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8432 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8433 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8434 else
8435 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8436 fi
8437 aix_use_runtimelinking=no
8438
8439 # Test if we are trying to use run time linking or normal
8440 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8441 # need to do runtime linking.
8442 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8443 for ld_flag in $LDFLAGS; do
8444 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8445 aix_use_runtimelinking=yes
8446 break
8447 fi
8448 done
8449 ;;
8450 esac
8451
8452 exp_sym_flag='-bexport'
8453 no_entry_flag='-bnoentry'
8454 fi
8455
8456 # When large executables or shared objects are built, AIX ld can
8457 # have problems creating the table of contents. If linking a library
8458 # or program results in "error TOC overflow" add -mminimal-toc to
8459 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8460 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8461
8462 archive_cmds=''
8463 hardcode_direct=yes
8464 hardcode_direct_absolute=yes
8465 hardcode_libdir_separator=':'
8466 link_all_deplibs=yes
8467 file_list_spec='${wl}-f,'
8468
8469 if test "$GCC" = yes; then
8470 case $host_os in aix4.[012]|aix4.[012].*)
8471 # We only want to do this on AIX 4.2 and lower, the check
8472 # below for broken collect2 doesn't work under 4.3+
8473 collect2name=`${CC} -print-prog-name=collect2`
8474 if test -f "$collect2name" &&
8475 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8476 then
8477 # We have reworked collect2
8478 :
8479 else
8480 # We have old collect2
8481 hardcode_direct=unsupported
8482 # It fails to find uninstalled libraries when the uninstalled
8483 # path is not listed in the libpath. Setting hardcode_minus_L
8484 # to unsupported forces relinking
8485 hardcode_minus_L=yes
8486 hardcode_libdir_flag_spec='-L$libdir'
8487 hardcode_libdir_separator=
8488 fi
8489 ;;
8490 esac
8491 shared_flag='-shared'
8492 if test "$aix_use_runtimelinking" = yes; then
8493 shared_flag="$shared_flag "'${wl}-G'
8494 fi
8495 link_all_deplibs=no
8496 else
8497 # not using gcc
8498 if test "$host_cpu" = ia64; then
8499 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8500 # chokes on -Wl,-G. The following line is correct:
8501 shared_flag='-G'
8502 else
8503 if test "$aix_use_runtimelinking" = yes; then
8504 shared_flag='${wl}-G'
8505 else
8506 shared_flag='${wl}-bM:SRE'
8507 fi
8508 fi
8509 fi
8510
8511 export_dynamic_flag_spec='${wl}-bexpall'
8512 # It seems that -bexpall does not export symbols beginning with
8513 # underscore (_), so it is better to generate a list of symbols to export.
8514 always_export_symbols=yes
8515 if test "$aix_use_runtimelinking" = yes; then
8516 # Warning - without using the other runtime loading flags (-brtl),
8517 # -berok will link without error, but may produce a broken library.
8518 allow_undefined_flag='-berok'
8519 # Determine the default libpath from the value encoded in an
8520 # empty executable.
8521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8522 /* end confdefs.h. */
8523
8524 int
8525 main ()
8526 {
8527
8528 ;
8529 return 0;
8530 }
8531 _ACEOF
8532 if ac_fn_c_try_link "$LINENO"; then :
8533
8534 lt_aix_libpath_sed='
8535 /Import File Strings/,/^$/ {
8536 /^0/ {
8537 s/^0 *\(.*\)$/\1/
8538 p
8539 }
8540 }'
8541 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8542 # Check for a 64-bit object if we didn't find anything.
8543 if test -z "$aix_libpath"; then
8544 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8545 fi
8546 fi
8547 rm -f core conftest.err conftest.$ac_objext \
8548 conftest$ac_exeext conftest.$ac_ext
8549 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8550
8551 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8552 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8553 else
8554 if test "$host_cpu" = ia64; then
8555 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8556 allow_undefined_flag="-z nodefs"
8557 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8558 else
8559 # Determine the default libpath from the value encoded in an
8560 # empty executable.
8561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8562 /* end confdefs.h. */
8563
8564 int
8565 main ()
8566 {
8567
8568 ;
8569 return 0;
8570 }
8571 _ACEOF
8572 if ac_fn_c_try_link "$LINENO"; then :
8573
8574 lt_aix_libpath_sed='
8575 /Import File Strings/,/^$/ {
8576 /^0/ {
8577 s/^0 *\(.*\)$/\1/
8578 p
8579 }
8580 }'
8581 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8582 # Check for a 64-bit object if we didn't find anything.
8583 if test -z "$aix_libpath"; then
8584 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8585 fi
8586 fi
8587 rm -f core conftest.err conftest.$ac_objext \
8588 conftest$ac_exeext conftest.$ac_ext
8589 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8590
8591 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8592 # Warning - without using the other run time loading flags,
8593 # -berok will link without error, but may produce a broken library.
8594 no_undefined_flag=' ${wl}-bernotok'
8595 allow_undefined_flag=' ${wl}-berok'
8596 # Exported symbols can be pulled into shared objects from archives
8597 whole_archive_flag_spec='$convenience'
8598 archive_cmds_need_lc=yes
8599 # This is similar to how AIX traditionally builds its shared libraries.
8600 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8601 fi
8602 fi
8603 ;;
8604
8605 amigaos*)
8606 case $host_cpu in
8607 powerpc)
8608 # see comment about AmigaOS4 .so support
8609 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8610 archive_expsym_cmds=''
8611 ;;
8612 m68k)
8613 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8614 hardcode_libdir_flag_spec='-L$libdir'
8615 hardcode_minus_L=yes
8616 ;;
8617 esac
8618 ;;
8619
8620 bsdi[45]*)
8621 export_dynamic_flag_spec=-rdynamic
8622 ;;
8623
8624 cygwin* | mingw* | pw32* | cegcc*)
8625 # When not using gcc, we currently assume that we are using
8626 # Microsoft Visual C++.
8627 # hardcode_libdir_flag_spec is actually meaningless, as there is
8628 # no search path for DLLs.
8629 hardcode_libdir_flag_spec=' '
8630 allow_undefined_flag=unsupported
8631 # Tell ltmain to make .lib files, not .a files.
8632 libext=lib
8633 # Tell ltmain to make .dll files, not .so files.
8634 shrext_cmds=".dll"
8635 # FIXME: Setting linknames here is a bad hack.
8636 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8637 # The linker will automatically build a .lib file if we build a DLL.
8638 old_archive_from_new_cmds='true'
8639 # FIXME: Should let the user specify the lib program.
8640 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8641 fix_srcfile_path='`cygpath -w "$srcfile"`'
8642 enable_shared_with_static_runtimes=yes
8643 ;;
8644
8645 darwin* | rhapsody*)
8646
8647
8648 archive_cmds_need_lc=no
8649 hardcode_direct=no
8650 hardcode_automatic=yes
8651 hardcode_shlibpath_var=unsupported
8652 whole_archive_flag_spec=''
8653 link_all_deplibs=yes
8654 allow_undefined_flag="$_lt_dar_allow_undefined"
8655 case $cc_basename in
8656 ifort*) _lt_dar_can_shared=yes ;;
8657 *) _lt_dar_can_shared=$GCC ;;
8658 esac
8659 if test "$_lt_dar_can_shared" = "yes"; then
8660 output_verbose_link_cmd=echo
8661 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8662 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8663 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8664 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8665
8666 else
8667 ld_shlibs=no
8668 fi
8669
8670 ;;
8671
8672 dgux*)
8673 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8674 hardcode_libdir_flag_spec='-L$libdir'
8675 hardcode_shlibpath_var=no
8676 ;;
8677
8678 freebsd1*)
8679 ld_shlibs=no
8680 ;;
8681
8682 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8683 # support. Future versions do this automatically, but an explicit c++rt0.o
8684 # does not break anything, and helps significantly (at the cost of a little
8685 # extra space).
8686 freebsd2.2*)
8687 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8688 hardcode_libdir_flag_spec='-R$libdir'
8689 hardcode_direct=yes
8690 hardcode_shlibpath_var=no
8691 ;;
8692
8693 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8694 freebsd2*)
8695 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8696 hardcode_direct=yes
8697 hardcode_minus_L=yes
8698 hardcode_shlibpath_var=no
8699 ;;
8700
8701 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8702 freebsd* | dragonfly*)
8703 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8704 hardcode_libdir_flag_spec='-R$libdir'
8705 hardcode_direct=yes
8706 hardcode_shlibpath_var=no
8707 ;;
8708
8709 hpux9*)
8710 if test "$GCC" = yes; then
8711 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8712 else
8713 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8714 fi
8715 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8716 hardcode_libdir_separator=:
8717 hardcode_direct=yes
8718
8719 # hardcode_minus_L: Not really in the search PATH,
8720 # but as the default location of the library.
8721 hardcode_minus_L=yes
8722 export_dynamic_flag_spec='${wl}-E'
8723 ;;
8724
8725 hpux10*)
8726 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8727 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8728 else
8729 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8730 fi
8731 if test "$with_gnu_ld" = no; then
8732 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8733 hardcode_libdir_flag_spec_ld='+b $libdir'
8734 hardcode_libdir_separator=:
8735 hardcode_direct=yes
8736 hardcode_direct_absolute=yes
8737 export_dynamic_flag_spec='${wl}-E'
8738 # hardcode_minus_L: Not really in the search PATH,
8739 # but as the default location of the library.
8740 hardcode_minus_L=yes
8741 fi
8742 ;;
8743
8744 hpux11*)
8745 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8746 case $host_cpu in
8747 hppa*64*)
8748 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8749 ;;
8750 ia64*)
8751 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8752 ;;
8753 *)
8754 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8755 ;;
8756 esac
8757 else
8758 case $host_cpu in
8759 hppa*64*)
8760 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8761 ;;
8762 ia64*)
8763 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8764 ;;
8765 *)
8766 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8767 ;;
8768 esac
8769 fi
8770 if test "$with_gnu_ld" = no; then
8771 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8772 hardcode_libdir_separator=:
8773
8774 case $host_cpu in
8775 hppa*64*|ia64*)
8776 hardcode_direct=no
8777 hardcode_shlibpath_var=no
8778 ;;
8779 *)
8780 hardcode_direct=yes
8781 hardcode_direct_absolute=yes
8782 export_dynamic_flag_spec='${wl}-E'
8783
8784 # hardcode_minus_L: Not really in the search PATH,
8785 # but as the default location of the library.
8786 hardcode_minus_L=yes
8787 ;;
8788 esac
8789 fi
8790 ;;
8791
8792 irix5* | irix6* | nonstopux*)
8793 if test "$GCC" = yes; then
8794 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8795 # Try to use the -exported_symbol ld option, if it does not
8796 # work, assume that -exports_file does not work either and
8797 # implicitly export all symbols.
8798 save_LDFLAGS="$LDFLAGS"
8799 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8801 /* end confdefs.h. */
8802 int foo(void) {}
8803 _ACEOF
8804 if ac_fn_c_try_link "$LINENO"; then :
8805 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8806
8807 fi
8808 rm -f core conftest.err conftest.$ac_objext \
8809 conftest$ac_exeext conftest.$ac_ext
8810 LDFLAGS="$save_LDFLAGS"
8811 else
8812 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8813 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8814 fi
8815 archive_cmds_need_lc='no'
8816 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8817 hardcode_libdir_separator=:
8818 inherit_rpath=yes
8819 link_all_deplibs=yes
8820 ;;
8821
8822 netbsd* | netbsdelf*-gnu)
8823 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8824 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8825 else
8826 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8827 fi
8828 hardcode_libdir_flag_spec='-R$libdir'
8829 hardcode_direct=yes
8830 hardcode_shlibpath_var=no
8831 ;;
8832
8833 newsos6)
8834 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8835 hardcode_direct=yes
8836 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8837 hardcode_libdir_separator=:
8838 hardcode_shlibpath_var=no
8839 ;;
8840
8841 *nto* | *qnx*)
8842 ;;
8843
8844 openbsd*)
8845 if test -f /usr/libexec/ld.so; then
8846 hardcode_direct=yes
8847 hardcode_shlibpath_var=no
8848 hardcode_direct_absolute=yes
8849 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8850 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8851 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8852 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8853 export_dynamic_flag_spec='${wl}-E'
8854 else
8855 case $host_os in
8856 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8857 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8858 hardcode_libdir_flag_spec='-R$libdir'
8859 ;;
8860 *)
8861 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8862 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8863 ;;
8864 esac
8865 fi
8866 else
8867 ld_shlibs=no
8868 fi
8869 ;;
8870
8871 os2*)
8872 hardcode_libdir_flag_spec='-L$libdir'
8873 hardcode_minus_L=yes
8874 allow_undefined_flag=unsupported
8875 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8876 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8877 ;;
8878
8879 osf3*)
8880 if test "$GCC" = yes; then
8881 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8882 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8883 else
8884 allow_undefined_flag=' -expect_unresolved \*'
8885 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8886 fi
8887 archive_cmds_need_lc='no'
8888 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8889 hardcode_libdir_separator=:
8890 ;;
8891
8892 osf4* | osf5*) # as osf3* with the addition of -msym flag
8893 if test "$GCC" = yes; then
8894 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8895 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8896 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8897 else
8898 allow_undefined_flag=' -expect_unresolved \*'
8899 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8900 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
8901 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8902
8903 # Both c and cxx compiler support -rpath directly
8904 hardcode_libdir_flag_spec='-rpath $libdir'
8905 fi
8906 archive_cmds_need_lc='no'
8907 hardcode_libdir_separator=:
8908 ;;
8909
8910 solaris*)
8911 no_undefined_flag=' -z defs'
8912 if test "$GCC" = yes; then
8913 wlarc='${wl}'
8914 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8915 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8916 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8917 else
8918 case `$CC -V 2>&1` in
8919 *"Compilers 5.0"*)
8920 wlarc=''
8921 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8922 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8923 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8924 ;;
8925 *)
8926 wlarc='${wl}'
8927 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8928 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8929 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8930 ;;
8931 esac
8932 fi
8933 hardcode_libdir_flag_spec='-R$libdir'
8934 hardcode_shlibpath_var=no
8935 case $host_os in
8936 solaris2.[0-5] | solaris2.[0-5].*) ;;
8937 *)
8938 # The compiler driver will combine and reorder linker options,
8939 # but understands `-z linker_flag'. GCC discards it without `$wl',
8940 # but is careful enough not to reorder.
8941 # Supported since Solaris 2.6 (maybe 2.5.1?)
8942 if test "$GCC" = yes; then
8943 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8944 else
8945 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8946 fi
8947 ;;
8948 esac
8949 link_all_deplibs=yes
8950 ;;
8951
8952 sunos4*)
8953 if test "x$host_vendor" = xsequent; then
8954 # Use $CC to link under sequent, because it throws in some extra .o
8955 # files that make .init and .fini sections work.
8956 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8957 else
8958 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8959 fi
8960 hardcode_libdir_flag_spec='-L$libdir'
8961 hardcode_direct=yes
8962 hardcode_minus_L=yes
8963 hardcode_shlibpath_var=no
8964 ;;
8965
8966 sysv4)
8967 case $host_vendor in
8968 sni)
8969 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8970 hardcode_direct=yes # is this really true???
8971 ;;
8972 siemens)
8973 ## LD is ld it makes a PLAMLIB
8974 ## CC just makes a GrossModule.
8975 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8976 reload_cmds='$CC -r -o $output$reload_objs'
8977 hardcode_direct=no
8978 ;;
8979 motorola)
8980 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8981 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8982 ;;
8983 esac
8984 runpath_var='LD_RUN_PATH'
8985 hardcode_shlibpath_var=no
8986 ;;
8987
8988 sysv4.3*)
8989 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8990 hardcode_shlibpath_var=no
8991 export_dynamic_flag_spec='-Bexport'
8992 ;;
8993
8994 sysv4*MP*)
8995 if test -d /usr/nec; then
8996 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8997 hardcode_shlibpath_var=no
8998 runpath_var=LD_RUN_PATH
8999 hardcode_runpath_var=yes
9000 ld_shlibs=yes
9001 fi
9002 ;;
9003
9004 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9005 no_undefined_flag='${wl}-z,text'
9006 archive_cmds_need_lc=no
9007 hardcode_shlibpath_var=no
9008 runpath_var='LD_RUN_PATH'
9009
9010 if test "$GCC" = yes; then
9011 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9012 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9013 else
9014 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9015 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9016 fi
9017 ;;
9018
9019 sysv5* | sco3.2v5* | sco5v6*)
9020 # Note: We can NOT use -z defs as we might desire, because we do not
9021 # link with -lc, and that would cause any symbols used from libc to
9022 # always be unresolved, which means just about no library would
9023 # ever link correctly. If we're not using GNU ld we use -z text
9024 # though, which does catch some bad symbols but isn't as heavy-handed
9025 # as -z defs.
9026 no_undefined_flag='${wl}-z,text'
9027 allow_undefined_flag='${wl}-z,nodefs'
9028 archive_cmds_need_lc=no
9029 hardcode_shlibpath_var=no
9030 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9031 hardcode_libdir_separator=':'
9032 link_all_deplibs=yes
9033 export_dynamic_flag_spec='${wl}-Bexport'
9034 runpath_var='LD_RUN_PATH'
9035
9036 if test "$GCC" = yes; then
9037 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9038 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9039 else
9040 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9041 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9042 fi
9043 ;;
9044
9045 uts4*)
9046 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9047 hardcode_libdir_flag_spec='-L$libdir'
9048 hardcode_shlibpath_var=no
9049 ;;
9050
9051 *)
9052 ld_shlibs=no
9053 ;;
9054 esac
9055
9056 if test x$host_vendor = xsni; then
9057 case $host in
9058 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9059 export_dynamic_flag_spec='${wl}-Blargedynsym'
9060 ;;
9061 esac
9062 fi
9063 fi
9064
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9066 $as_echo "$ld_shlibs" >&6; }
9067 test "$ld_shlibs" = no && can_build_shared=no
9068
9069 with_gnu_ld=$with_gnu_ld
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085 #
9086 # Do we need to explicitly link libc?
9087 #
9088 case "x$archive_cmds_need_lc" in
9089 x|xyes)
9090 # Assume -lc should be added
9091 archive_cmds_need_lc=yes
9092
9093 if test "$enable_shared" = yes && test "$GCC" = yes; then
9094 case $archive_cmds in
9095 *'~'*)
9096 # FIXME: we may have to deal with multi-command sequences.
9097 ;;
9098 '$CC '*)
9099 # Test whether the compiler implicitly links with -lc since on some
9100 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9101 # to ld, don't add -lc before -lgcc.
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9103 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9104 $RM conftest*
9105 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9106
9107 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9108 (eval $ac_compile) 2>&5
9109 ac_status=$?
9110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9111 test $ac_status = 0; } 2>conftest.err; then
9112 soname=conftest
9113 lib=conftest
9114 libobjs=conftest.$ac_objext
9115 deplibs=
9116 wl=$lt_prog_compiler_wl
9117 pic_flag=$lt_prog_compiler_pic
9118 compiler_flags=-v
9119 linker_flags=-v
9120 verstring=
9121 output_objdir=.
9122 libname=conftest
9123 lt_save_allow_undefined_flag=$allow_undefined_flag
9124 allow_undefined_flag=
9125 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9126 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9127 ac_status=$?
9128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9129 test $ac_status = 0; }
9130 then
9131 archive_cmds_need_lc=no
9132 else
9133 archive_cmds_need_lc=yes
9134 fi
9135 allow_undefined_flag=$lt_save_allow_undefined_flag
9136 else
9137 cat conftest.err 1>&5
9138 fi
9139 $RM conftest*
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9141 $as_echo "$archive_cmds_need_lc" >&6; }
9142 ;;
9143 esac
9144 fi
9145 ;;
9146 esac
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9305 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9306
9307 if test "$GCC" = yes; then
9308 case $host_os in
9309 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9310 *) lt_awk_arg="/^libraries:/" ;;
9311 esac
9312 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9313 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9314 # if the path contains ";" then we assume it to be the separator
9315 # otherwise default to the standard path separator (i.e. ":") - it is
9316 # assumed that no part of a normal pathname contains ";" but that should
9317 # okay in the real world where ";" in dirpaths is itself problematic.
9318 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9319 else
9320 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9321 fi
9322 # Ok, now we have the path, separated by spaces, we can step through it
9323 # and add multilib dir if necessary.
9324 lt_tmp_lt_search_path_spec=
9325 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9326 for lt_sys_path in $lt_search_path_spec; do
9327 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9328 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9329 else
9330 test -d "$lt_sys_path" && \
9331 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9332 fi
9333 done
9334 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9335 BEGIN {RS=" "; FS="/|\n";} {
9336 lt_foo="";
9337 lt_count=0;
9338 for (lt_i = NF; lt_i > 0; lt_i--) {
9339 if ($lt_i != "" && $lt_i != ".") {
9340 if ($lt_i == "..") {
9341 lt_count++;
9342 } else {
9343 if (lt_count == 0) {
9344 lt_foo="/" $lt_i lt_foo;
9345 } else {
9346 lt_count--;
9347 }
9348 }
9349 }
9350 }
9351 if (lt_foo != "") { lt_freq[lt_foo]++; }
9352 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9353 }'`
9354 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9355 else
9356 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9357 fi
9358 library_names_spec=
9359 libname_spec='lib$name'
9360 soname_spec=
9361 shrext_cmds=".so"
9362 postinstall_cmds=
9363 postuninstall_cmds=
9364 finish_cmds=
9365 finish_eval=
9366 shlibpath_var=
9367 shlibpath_overrides_runpath=unknown
9368 version_type=none
9369 dynamic_linker="$host_os ld.so"
9370 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9371 need_lib_prefix=unknown
9372 hardcode_into_libs=no
9373
9374 # when you set need_version to no, make sure it does not cause -set_version
9375 # flags to be left without arguments
9376 need_version=unknown
9377
9378 case $host_os in
9379 aix3*)
9380 version_type=linux
9381 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9382 shlibpath_var=LIBPATH
9383
9384 # AIX 3 has no versioning support, so we append a major version to the name.
9385 soname_spec='${libname}${release}${shared_ext}$major'
9386 ;;
9387
9388 aix[4-9]*)
9389 version_type=linux
9390 need_lib_prefix=no
9391 need_version=no
9392 hardcode_into_libs=yes
9393 if test "$host_cpu" = ia64; then
9394 # AIX 5 supports IA64
9395 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9396 shlibpath_var=LD_LIBRARY_PATH
9397 else
9398 # With GCC up to 2.95.x, collect2 would create an import file
9399 # for dependence libraries. The import file would start with
9400 # the line `#! .'. This would cause the generated library to
9401 # depend on `.', always an invalid library. This was fixed in
9402 # development snapshots of GCC prior to 3.0.
9403 case $host_os in
9404 aix4 | aix4.[01] | aix4.[01].*)
9405 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9406 echo ' yes '
9407 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9408 :
9409 else
9410 can_build_shared=no
9411 fi
9412 ;;
9413 esac
9414 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9415 # soname into executable. Probably we can add versioning support to
9416 # collect2, so additional links can be useful in future.
9417 if test "$aix_use_runtimelinking" = yes; then
9418 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9419 # instead of lib<name>.a to let people know that these are not
9420 # typical AIX shared libraries.
9421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9422 else
9423 # We preserve .a as extension for shared libraries through AIX4.2
9424 # and later when we are not doing run time linking.
9425 library_names_spec='${libname}${release}.a $libname.a'
9426 soname_spec='${libname}${release}${shared_ext}$major'
9427 fi
9428 shlibpath_var=LIBPATH
9429 fi
9430 ;;
9431
9432 amigaos*)
9433 case $host_cpu in
9434 powerpc)
9435 # Since July 2007 AmigaOS4 officially supports .so libraries.
9436 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9438 ;;
9439 m68k)
9440 library_names_spec='$libname.ixlibrary $libname.a'
9441 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9442 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'
9443 ;;
9444 esac
9445 ;;
9446
9447 beos*)
9448 library_names_spec='${libname}${shared_ext}'
9449 dynamic_linker="$host_os ld.so"
9450 shlibpath_var=LIBRARY_PATH
9451 ;;
9452
9453 bsdi[45]*)
9454 version_type=linux
9455 need_version=no
9456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9457 soname_spec='${libname}${release}${shared_ext}$major'
9458 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9459 shlibpath_var=LD_LIBRARY_PATH
9460 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9461 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9462 # the default ld.so.conf also contains /usr/contrib/lib and
9463 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9464 # libtool to hard-code these into programs
9465 ;;
9466
9467 cygwin* | mingw* | pw32* | cegcc*)
9468 version_type=windows
9469 shrext_cmds=".dll"
9470 need_version=no
9471 need_lib_prefix=no
9472
9473 case $GCC,$host_os in
9474 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9475 library_names_spec='$libname.dll.a'
9476 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9477 postinstall_cmds='base_file=`basename \${file}`~
9478 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9479 dldir=$destdir/`dirname \$dlpath`~
9480 test -d \$dldir || mkdir -p \$dldir~
9481 $install_prog $dir/$dlname \$dldir/$dlname~
9482 chmod a+x \$dldir/$dlname~
9483 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9484 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9485 fi'
9486 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9487 dlpath=$dir/\$dldll~
9488 $RM \$dlpath'
9489 shlibpath_overrides_runpath=yes
9490
9491 case $host_os in
9492 cygwin*)
9493 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9494 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9495 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9496 ;;
9497 mingw* | cegcc*)
9498 # MinGW DLLs use traditional 'lib' prefix
9499 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9500 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9501 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9502 # It is most probably a Windows format PATH printed by
9503 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9504 # path with ; separators, and with drive letters. We can handle the
9505 # drive letters (cygwin fileutils understands them), so leave them,
9506 # especially as we might pass files found there to a mingw objdump,
9507 # which wouldn't understand a cygwinified path. Ahh.
9508 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9509 else
9510 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9511 fi
9512 ;;
9513 pw32*)
9514 # pw32 DLLs use 'pw' prefix rather than 'lib'
9515 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9516 ;;
9517 esac
9518 ;;
9519
9520 *)
9521 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9522 ;;
9523 esac
9524 dynamic_linker='Win32 ld.exe'
9525 # FIXME: first we should search . and the directory the executable is in
9526 shlibpath_var=PATH
9527 ;;
9528
9529 darwin* | rhapsody*)
9530 dynamic_linker="$host_os dyld"
9531 version_type=darwin
9532 need_lib_prefix=no
9533 need_version=no
9534 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9535 soname_spec='${libname}${release}${major}$shared_ext'
9536 shlibpath_overrides_runpath=yes
9537 shlibpath_var=DYLD_LIBRARY_PATH
9538 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9539
9540 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9541 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9542 ;;
9543
9544 dgux*)
9545 version_type=linux
9546 need_lib_prefix=no
9547 need_version=no
9548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9549 soname_spec='${libname}${release}${shared_ext}$major'
9550 shlibpath_var=LD_LIBRARY_PATH
9551 ;;
9552
9553 freebsd1*)
9554 dynamic_linker=no
9555 ;;
9556
9557 freebsd* | dragonfly*)
9558 # DragonFly does not have aout. When/if they implement a new
9559 # versioning mechanism, adjust this.
9560 if test -x /usr/bin/objformat; then
9561 objformat=`/usr/bin/objformat`
9562 else
9563 case $host_os in
9564 freebsd[123]*) objformat=aout ;;
9565 *) objformat=elf ;;
9566 esac
9567 fi
9568 version_type=freebsd-$objformat
9569 case $version_type in
9570 freebsd-elf*)
9571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9572 need_version=no
9573 need_lib_prefix=no
9574 ;;
9575 freebsd-*)
9576 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9577 need_version=yes
9578 ;;
9579 esac
9580 shlibpath_var=LD_LIBRARY_PATH
9581 case $host_os in
9582 freebsd2*)
9583 shlibpath_overrides_runpath=yes
9584 ;;
9585 freebsd3.[01]* | freebsdelf3.[01]*)
9586 shlibpath_overrides_runpath=yes
9587 hardcode_into_libs=yes
9588 ;;
9589 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9590 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9591 shlibpath_overrides_runpath=no
9592 hardcode_into_libs=yes
9593 ;;
9594 *) # from 4.6 on, and DragonFly
9595 shlibpath_overrides_runpath=yes
9596 hardcode_into_libs=yes
9597 ;;
9598 esac
9599 ;;
9600
9601 gnu*)
9602 version_type=linux
9603 need_lib_prefix=no
9604 need_version=no
9605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9606 soname_spec='${libname}${release}${shared_ext}$major'
9607 shlibpath_var=LD_LIBRARY_PATH
9608 hardcode_into_libs=yes
9609 ;;
9610
9611 hpux9* | hpux10* | hpux11*)
9612 # Give a soname corresponding to the major version so that dld.sl refuses to
9613 # link against other versions.
9614 version_type=sunos
9615 need_lib_prefix=no
9616 need_version=no
9617 case $host_cpu in
9618 ia64*)
9619 shrext_cmds='.so'
9620 hardcode_into_libs=yes
9621 dynamic_linker="$host_os dld.so"
9622 shlibpath_var=LD_LIBRARY_PATH
9623 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9625 soname_spec='${libname}${release}${shared_ext}$major'
9626 if test "X$HPUX_IA64_MODE" = X32; then
9627 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9628 else
9629 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9630 fi
9631 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9632 ;;
9633 hppa*64*)
9634 shrext_cmds='.sl'
9635 hardcode_into_libs=yes
9636 dynamic_linker="$host_os dld.sl"
9637 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9638 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9640 soname_spec='${libname}${release}${shared_ext}$major'
9641 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9642 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9643 ;;
9644 *)
9645 shrext_cmds='.sl'
9646 dynamic_linker="$host_os dld.sl"
9647 shlibpath_var=SHLIB_PATH
9648 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9650 soname_spec='${libname}${release}${shared_ext}$major'
9651 ;;
9652 esac
9653 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9654 postinstall_cmds='chmod 555 $lib'
9655 ;;
9656
9657 interix[3-9]*)
9658 version_type=linux
9659 need_lib_prefix=no
9660 need_version=no
9661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9662 soname_spec='${libname}${release}${shared_ext}$major'
9663 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9664 shlibpath_var=LD_LIBRARY_PATH
9665 shlibpath_overrides_runpath=no
9666 hardcode_into_libs=yes
9667 ;;
9668
9669 irix5* | irix6* | nonstopux*)
9670 case $host_os in
9671 nonstopux*) version_type=nonstopux ;;
9672 *)
9673 if test "$lt_cv_prog_gnu_ld" = yes; then
9674 version_type=linux
9675 else
9676 version_type=irix
9677 fi ;;
9678 esac
9679 need_lib_prefix=no
9680 need_version=no
9681 soname_spec='${libname}${release}${shared_ext}$major'
9682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9683 case $host_os in
9684 irix5* | nonstopux*)
9685 libsuff= shlibsuff=
9686 ;;
9687 *)
9688 case $LD in # libtool.m4 will add one of these switches to LD
9689 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9690 libsuff= shlibsuff= libmagic=32-bit;;
9691 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9692 libsuff=32 shlibsuff=N32 libmagic=N32;;
9693 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9694 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9695 *) libsuff= shlibsuff= libmagic=never-match;;
9696 esac
9697 ;;
9698 esac
9699 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9700 shlibpath_overrides_runpath=no
9701 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9702 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9703 hardcode_into_libs=yes
9704 ;;
9705
9706 # No shared lib support for Linux oldld, aout, or coff.
9707 linux*oldld* | linux*aout* | linux*coff*)
9708 dynamic_linker=no
9709 ;;
9710
9711 # This must be Linux ELF.
9712 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9713 version_type=linux
9714 need_lib_prefix=no
9715 need_version=no
9716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9717 soname_spec='${libname}${release}${shared_ext}$major'
9718 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9719 shlibpath_var=LD_LIBRARY_PATH
9720 shlibpath_overrides_runpath=no
9721 # Some binutils ld are patched to set DT_RUNPATH
9722 save_LDFLAGS=$LDFLAGS
9723 save_libdir=$libdir
9724 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9725 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9727 /* end confdefs.h. */
9728
9729 int
9730 main ()
9731 {
9732
9733 ;
9734 return 0;
9735 }
9736 _ACEOF
9737 if ac_fn_c_try_link "$LINENO"; then :
9738 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9739 shlibpath_overrides_runpath=yes
9740 fi
9741 fi
9742 rm -f core conftest.err conftest.$ac_objext \
9743 conftest$ac_exeext conftest.$ac_ext
9744 LDFLAGS=$save_LDFLAGS
9745 libdir=$save_libdir
9746
9747 # This implies no fast_install, which is unacceptable.
9748 # Some rework will be needed to allow for fast_install
9749 # before this can be enabled.
9750 hardcode_into_libs=yes
9751
9752 # Append ld.so.conf contents to the search path
9753 if test -f /etc/ld.so.conf; then
9754 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9755 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9756 fi
9757
9758 # We used to test for /lib/ld.so.1 and disable shared libraries on
9759 # powerpc, because MkLinux only supported shared libraries with the
9760 # GNU dynamic linker. Since this was broken with cross compilers,
9761 # most powerpc-linux boxes support dynamic linking these days and
9762 # people can always --disable-shared, the test was removed, and we
9763 # assume the GNU/Linux dynamic linker is in use.
9764 dynamic_linker='GNU/Linux ld.so'
9765 ;;
9766
9767 netbsdelf*-gnu)
9768 version_type=linux
9769 need_lib_prefix=no
9770 need_version=no
9771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9772 soname_spec='${libname}${release}${shared_ext}$major'
9773 shlibpath_var=LD_LIBRARY_PATH
9774 shlibpath_overrides_runpath=no
9775 hardcode_into_libs=yes
9776 dynamic_linker='NetBSD ld.elf_so'
9777 ;;
9778
9779 netbsd*)
9780 version_type=sunos
9781 need_lib_prefix=no
9782 need_version=no
9783 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9785 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9786 dynamic_linker='NetBSD (a.out) ld.so'
9787 else
9788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9789 soname_spec='${libname}${release}${shared_ext}$major'
9790 dynamic_linker='NetBSD ld.elf_so'
9791 fi
9792 shlibpath_var=LD_LIBRARY_PATH
9793 shlibpath_overrides_runpath=yes
9794 hardcode_into_libs=yes
9795 ;;
9796
9797 newsos6)
9798 version_type=linux
9799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9800 shlibpath_var=LD_LIBRARY_PATH
9801 shlibpath_overrides_runpath=yes
9802 ;;
9803
9804 *nto* | *qnx*)
9805 version_type=qnx
9806 need_lib_prefix=no
9807 need_version=no
9808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9809 soname_spec='${libname}${release}${shared_ext}$major'
9810 shlibpath_var=LD_LIBRARY_PATH
9811 shlibpath_overrides_runpath=no
9812 hardcode_into_libs=yes
9813 dynamic_linker='ldqnx.so'
9814 ;;
9815
9816 openbsd*)
9817 version_type=sunos
9818 sys_lib_dlsearch_path_spec="/usr/lib"
9819 need_lib_prefix=no
9820 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9821 case $host_os in
9822 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9823 *) need_version=no ;;
9824 esac
9825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9826 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9827 shlibpath_var=LD_LIBRARY_PATH
9828 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9829 case $host_os in
9830 openbsd2.[89] | openbsd2.[89].*)
9831 shlibpath_overrides_runpath=no
9832 ;;
9833 *)
9834 shlibpath_overrides_runpath=yes
9835 ;;
9836 esac
9837 else
9838 shlibpath_overrides_runpath=yes
9839 fi
9840 ;;
9841
9842 os2*)
9843 libname_spec='$name'
9844 shrext_cmds=".dll"
9845 need_lib_prefix=no
9846 library_names_spec='$libname${shared_ext} $libname.a'
9847 dynamic_linker='OS/2 ld.exe'
9848 shlibpath_var=LIBPATH
9849 ;;
9850
9851 osf3* | osf4* | osf5*)
9852 version_type=osf
9853 need_lib_prefix=no
9854 need_version=no
9855 soname_spec='${libname}${release}${shared_ext}$major'
9856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9857 shlibpath_var=LD_LIBRARY_PATH
9858 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9859 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9860 ;;
9861
9862 rdos*)
9863 dynamic_linker=no
9864 ;;
9865
9866 solaris*)
9867 version_type=linux
9868 need_lib_prefix=no
9869 need_version=no
9870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9871 soname_spec='${libname}${release}${shared_ext}$major'
9872 shlibpath_var=LD_LIBRARY_PATH
9873 shlibpath_overrides_runpath=yes
9874 hardcode_into_libs=yes
9875 # ldd complains unless libraries are executable
9876 postinstall_cmds='chmod +x $lib'
9877 ;;
9878
9879 sunos4*)
9880 version_type=sunos
9881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9882 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9883 shlibpath_var=LD_LIBRARY_PATH
9884 shlibpath_overrides_runpath=yes
9885 if test "$with_gnu_ld" = yes; then
9886 need_lib_prefix=no
9887 fi
9888 need_version=yes
9889 ;;
9890
9891 sysv4 | sysv4.3*)
9892 version_type=linux
9893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9894 soname_spec='${libname}${release}${shared_ext}$major'
9895 shlibpath_var=LD_LIBRARY_PATH
9896 case $host_vendor in
9897 sni)
9898 shlibpath_overrides_runpath=no
9899 need_lib_prefix=no
9900 runpath_var=LD_RUN_PATH
9901 ;;
9902 siemens)
9903 need_lib_prefix=no
9904 ;;
9905 motorola)
9906 need_lib_prefix=no
9907 need_version=no
9908 shlibpath_overrides_runpath=no
9909 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9910 ;;
9911 esac
9912 ;;
9913
9914 sysv4*MP*)
9915 if test -d /usr/nec ;then
9916 version_type=linux
9917 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9918 soname_spec='$libname${shared_ext}.$major'
9919 shlibpath_var=LD_LIBRARY_PATH
9920 fi
9921 ;;
9922
9923 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9924 version_type=freebsd-elf
9925 need_lib_prefix=no
9926 need_version=no
9927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9928 soname_spec='${libname}${release}${shared_ext}$major'
9929 shlibpath_var=LD_LIBRARY_PATH
9930 shlibpath_overrides_runpath=yes
9931 hardcode_into_libs=yes
9932 if test "$with_gnu_ld" = yes; then
9933 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9934 else
9935 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9936 case $host_os in
9937 sco3.2v5*)
9938 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9939 ;;
9940 esac
9941 fi
9942 sys_lib_dlsearch_path_spec='/usr/lib'
9943 ;;
9944
9945 tpf*)
9946 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9947 version_type=linux
9948 need_lib_prefix=no
9949 need_version=no
9950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9951 shlibpath_var=LD_LIBRARY_PATH
9952 shlibpath_overrides_runpath=no
9953 hardcode_into_libs=yes
9954 ;;
9955
9956 uts4*)
9957 version_type=linux
9958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9959 soname_spec='${libname}${release}${shared_ext}$major'
9960 shlibpath_var=LD_LIBRARY_PATH
9961 ;;
9962
9963 *)
9964 dynamic_linker=no
9965 ;;
9966 esac
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9968 $as_echo "$dynamic_linker" >&6; }
9969 test "$dynamic_linker" = no && can_build_shared=no
9970
9971 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9972 if test "$GCC" = yes; then
9973 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9974 fi
9975
9976 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9977 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9978 fi
9979 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9980 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9981 fi
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10070 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10071 hardcode_action=
10072 if test -n "$hardcode_libdir_flag_spec" ||
10073 test -n "$runpath_var" ||
10074 test "X$hardcode_automatic" = "Xyes" ; then
10075
10076 # We can hardcode non-existent directories.
10077 if test "$hardcode_direct" != no &&
10078 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10079 # have to relink, otherwise we might link with an installed library
10080 # when we should be linking with a yet-to-be-installed one
10081 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10082 test "$hardcode_minus_L" != no; then
10083 # Linking always hardcodes the temporary library directory.
10084 hardcode_action=relink
10085 else
10086 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10087 hardcode_action=immediate
10088 fi
10089 else
10090 # We cannot hardcode anything, or else we can only hardcode existing
10091 # directories.
10092 hardcode_action=unsupported
10093 fi
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10095 $as_echo "$hardcode_action" >&6; }
10096
10097 if test "$hardcode_action" = relink ||
10098 test "$inherit_rpath" = yes; then
10099 # Fast installation is not supported
10100 enable_fast_install=no
10101 elif test "$shlibpath_overrides_runpath" = yes ||
10102 test "$enable_shared" = no; then
10103 # Fast installation is not necessary
10104 enable_fast_install=needless
10105 fi
10106
10107
10108
10109
10110
10111
10112 if test "x$enable_dlopen" != xyes; then
10113 enable_dlopen=unknown
10114 enable_dlopen_self=unknown
10115 enable_dlopen_self_static=unknown
10116 else
10117 lt_cv_dlopen=no
10118 lt_cv_dlopen_libs=
10119
10120 case $host_os in
10121 beos*)
10122 lt_cv_dlopen="load_add_on"
10123 lt_cv_dlopen_libs=
10124 lt_cv_dlopen_self=yes
10125 ;;
10126
10127 mingw* | pw32* | cegcc*)
10128 lt_cv_dlopen="LoadLibrary"
10129 lt_cv_dlopen_libs=
10130 ;;
10131
10132 cygwin*)
10133 lt_cv_dlopen="dlopen"
10134 lt_cv_dlopen_libs=
10135 ;;
10136
10137 darwin*)
10138 # if libdl is installed we need to link against it
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10140 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10141 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10142 $as_echo_n "(cached) " >&6
10143 else
10144 ac_check_lib_save_LIBS=$LIBS
10145 LIBS="-ldl $LIBS"
10146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10147 /* end confdefs.h. */
10148
10149 /* Override any GCC internal prototype to avoid an error.
10150 Use char because int might match the return type of a GCC
10151 builtin and then its argument prototype would still apply. */
10152 #ifdef __cplusplus
10153 extern "C"
10154 #endif
10155 char dlopen ();
10156 int
10157 main ()
10158 {
10159 return dlopen ();
10160 ;
10161 return 0;
10162 }
10163 _ACEOF
10164 if ac_fn_c_try_link "$LINENO"; then :
10165 ac_cv_lib_dl_dlopen=yes
10166 else
10167 ac_cv_lib_dl_dlopen=no
10168 fi
10169 rm -f core conftest.err conftest.$ac_objext \
10170 conftest$ac_exeext conftest.$ac_ext
10171 LIBS=$ac_check_lib_save_LIBS
10172 fi
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10174 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10175 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10176 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10177 else
10178
10179 lt_cv_dlopen="dyld"
10180 lt_cv_dlopen_libs=
10181 lt_cv_dlopen_self=yes
10182
10183 fi
10184
10185 ;;
10186
10187 *)
10188 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10189 if test "x$ac_cv_func_shl_load" = x""yes; then :
10190 lt_cv_dlopen="shl_load"
10191 else
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10193 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10194 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10195 $as_echo_n "(cached) " >&6
10196 else
10197 ac_check_lib_save_LIBS=$LIBS
10198 LIBS="-ldld $LIBS"
10199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10200 /* end confdefs.h. */
10201
10202 /* Override any GCC internal prototype to avoid an error.
10203 Use char because int might match the return type of a GCC
10204 builtin and then its argument prototype would still apply. */
10205 #ifdef __cplusplus
10206 extern "C"
10207 #endif
10208 char shl_load ();
10209 int
10210 main ()
10211 {
10212 return shl_load ();
10213 ;
10214 return 0;
10215 }
10216 _ACEOF
10217 if ac_fn_c_try_link "$LINENO"; then :
10218 ac_cv_lib_dld_shl_load=yes
10219 else
10220 ac_cv_lib_dld_shl_load=no
10221 fi
10222 rm -f core conftest.err conftest.$ac_objext \
10223 conftest$ac_exeext conftest.$ac_ext
10224 LIBS=$ac_check_lib_save_LIBS
10225 fi
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10227 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10228 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10229 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10230 else
10231 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10232 if test "x$ac_cv_func_dlopen" = x""yes; then :
10233 lt_cv_dlopen="dlopen"
10234 else
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10236 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10237 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10238 $as_echo_n "(cached) " >&6
10239 else
10240 ac_check_lib_save_LIBS=$LIBS
10241 LIBS="-ldl $LIBS"
10242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10243 /* end confdefs.h. */
10244
10245 /* Override any GCC internal prototype to avoid an error.
10246 Use char because int might match the return type of a GCC
10247 builtin and then its argument prototype would still apply. */
10248 #ifdef __cplusplus
10249 extern "C"
10250 #endif
10251 char dlopen ();
10252 int
10253 main ()
10254 {
10255 return dlopen ();
10256 ;
10257 return 0;
10258 }
10259 _ACEOF
10260 if ac_fn_c_try_link "$LINENO"; then :
10261 ac_cv_lib_dl_dlopen=yes
10262 else
10263 ac_cv_lib_dl_dlopen=no
10264 fi
10265 rm -f core conftest.err conftest.$ac_objext \
10266 conftest$ac_exeext conftest.$ac_ext
10267 LIBS=$ac_check_lib_save_LIBS
10268 fi
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10270 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10271 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10272 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10273 else
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10275 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10276 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10277 $as_echo_n "(cached) " >&6
10278 else
10279 ac_check_lib_save_LIBS=$LIBS
10280 LIBS="-lsvld $LIBS"
10281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10282 /* end confdefs.h. */
10283
10284 /* Override any GCC internal prototype to avoid an error.
10285 Use char because int might match the return type of a GCC
10286 builtin and then its argument prototype would still apply. */
10287 #ifdef __cplusplus
10288 extern "C"
10289 #endif
10290 char dlopen ();
10291 int
10292 main ()
10293 {
10294 return dlopen ();
10295 ;
10296 return 0;
10297 }
10298 _ACEOF
10299 if ac_fn_c_try_link "$LINENO"; then :
10300 ac_cv_lib_svld_dlopen=yes
10301 else
10302 ac_cv_lib_svld_dlopen=no
10303 fi
10304 rm -f core conftest.err conftest.$ac_objext \
10305 conftest$ac_exeext conftest.$ac_ext
10306 LIBS=$ac_check_lib_save_LIBS
10307 fi
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10309 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10310 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10311 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10312 else
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10314 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10315 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10316 $as_echo_n "(cached) " >&6
10317 else
10318 ac_check_lib_save_LIBS=$LIBS
10319 LIBS="-ldld $LIBS"
10320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10321 /* end confdefs.h. */
10322
10323 /* Override any GCC internal prototype to avoid an error.
10324 Use char because int might match the return type of a GCC
10325 builtin and then its argument prototype would still apply. */
10326 #ifdef __cplusplus
10327 extern "C"
10328 #endif
10329 char dld_link ();
10330 int
10331 main ()
10332 {
10333 return dld_link ();
10334 ;
10335 return 0;
10336 }
10337 _ACEOF
10338 if ac_fn_c_try_link "$LINENO"; then :
10339 ac_cv_lib_dld_dld_link=yes
10340 else
10341 ac_cv_lib_dld_dld_link=no
10342 fi
10343 rm -f core conftest.err conftest.$ac_objext \
10344 conftest$ac_exeext conftest.$ac_ext
10345 LIBS=$ac_check_lib_save_LIBS
10346 fi
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10348 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10349 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10350 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10351 fi
10352
10353
10354 fi
10355
10356
10357 fi
10358
10359
10360 fi
10361
10362
10363 fi
10364
10365
10366 fi
10367
10368 ;;
10369 esac
10370
10371 if test "x$lt_cv_dlopen" != xno; then
10372 enable_dlopen=yes
10373 else
10374 enable_dlopen=no
10375 fi
10376
10377 case $lt_cv_dlopen in
10378 dlopen)
10379 save_CPPFLAGS="$CPPFLAGS"
10380 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10381
10382 save_LDFLAGS="$LDFLAGS"
10383 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10384
10385 save_LIBS="$LIBS"
10386 LIBS="$lt_cv_dlopen_libs $LIBS"
10387
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10389 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10390 if test "${lt_cv_dlopen_self+set}" = set; then :
10391 $as_echo_n "(cached) " >&6
10392 else
10393 if test "$cross_compiling" = yes; then :
10394 lt_cv_dlopen_self=cross
10395 else
10396 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10397 lt_status=$lt_dlunknown
10398 cat > conftest.$ac_ext <<_LT_EOF
10399 #line 10400 "configure"
10400 #include "confdefs.h"
10401
10402 #if HAVE_DLFCN_H
10403 #include <dlfcn.h>
10404 #endif
10405
10406 #include <stdio.h>
10407
10408 #ifdef RTLD_GLOBAL
10409 # define LT_DLGLOBAL RTLD_GLOBAL
10410 #else
10411 # ifdef DL_GLOBAL
10412 # define LT_DLGLOBAL DL_GLOBAL
10413 # else
10414 # define LT_DLGLOBAL 0
10415 # endif
10416 #endif
10417
10418 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10419 find out it does not work in some platform. */
10420 #ifndef LT_DLLAZY_OR_NOW
10421 # ifdef RTLD_LAZY
10422 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10423 # else
10424 # ifdef DL_LAZY
10425 # define LT_DLLAZY_OR_NOW DL_LAZY
10426 # else
10427 # ifdef RTLD_NOW
10428 # define LT_DLLAZY_OR_NOW RTLD_NOW
10429 # else
10430 # ifdef DL_NOW
10431 # define LT_DLLAZY_OR_NOW DL_NOW
10432 # else
10433 # define LT_DLLAZY_OR_NOW 0
10434 # endif
10435 # endif
10436 # endif
10437 # endif
10438 #endif
10439
10440 void fnord() { int i=42;}
10441 int main ()
10442 {
10443 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10444 int status = $lt_dlunknown;
10445
10446 if (self)
10447 {
10448 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10449 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10450 /* dlclose (self); */
10451 }
10452 else
10453 puts (dlerror ());
10454
10455 return status;
10456 }
10457 _LT_EOF
10458 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10459 (eval $ac_link) 2>&5
10460 ac_status=$?
10461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10462 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10463 (./conftest; exit; ) >&5 2>/dev/null
10464 lt_status=$?
10465 case x$lt_status in
10466 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10467 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10468 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10469 esac
10470 else :
10471 # compilation failed
10472 lt_cv_dlopen_self=no
10473 fi
10474 fi
10475 rm -fr conftest*
10476
10477
10478 fi
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10480 $as_echo "$lt_cv_dlopen_self" >&6; }
10481
10482 if test "x$lt_cv_dlopen_self" = xyes; then
10483 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10485 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10486 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10487 $as_echo_n "(cached) " >&6
10488 else
10489 if test "$cross_compiling" = yes; then :
10490 lt_cv_dlopen_self_static=cross
10491 else
10492 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10493 lt_status=$lt_dlunknown
10494 cat > conftest.$ac_ext <<_LT_EOF
10495 #line 10496 "configure"
10496 #include "confdefs.h"
10497
10498 #if HAVE_DLFCN_H
10499 #include <dlfcn.h>
10500 #endif
10501
10502 #include <stdio.h>
10503
10504 #ifdef RTLD_GLOBAL
10505 # define LT_DLGLOBAL RTLD_GLOBAL
10506 #else
10507 # ifdef DL_GLOBAL
10508 # define LT_DLGLOBAL DL_GLOBAL
10509 # else
10510 # define LT_DLGLOBAL 0
10511 # endif
10512 #endif
10513
10514 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10515 find out it does not work in some platform. */
10516 #ifndef LT_DLLAZY_OR_NOW
10517 # ifdef RTLD_LAZY
10518 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10519 # else
10520 # ifdef DL_LAZY
10521 # define LT_DLLAZY_OR_NOW DL_LAZY
10522 # else
10523 # ifdef RTLD_NOW
10524 # define LT_DLLAZY_OR_NOW RTLD_NOW
10525 # else
10526 # ifdef DL_NOW
10527 # define LT_DLLAZY_OR_NOW DL_NOW
10528 # else
10529 # define LT_DLLAZY_OR_NOW 0
10530 # endif
10531 # endif
10532 # endif
10533 # endif
10534 #endif
10535
10536 void fnord() { int i=42;}
10537 int main ()
10538 {
10539 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10540 int status = $lt_dlunknown;
10541
10542 if (self)
10543 {
10544 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10545 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10546 /* dlclose (self); */
10547 }
10548 else
10549 puts (dlerror ());
10550
10551 return status;
10552 }
10553 _LT_EOF
10554 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10555 (eval $ac_link) 2>&5
10556 ac_status=$?
10557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10558 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10559 (./conftest; exit; ) >&5 2>/dev/null
10560 lt_status=$?
10561 case x$lt_status in
10562 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10563 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10564 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10565 esac
10566 else :
10567 # compilation failed
10568 lt_cv_dlopen_self_static=no
10569 fi
10570 fi
10571 rm -fr conftest*
10572
10573
10574 fi
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10576 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10577 fi
10578
10579 CPPFLAGS="$save_CPPFLAGS"
10580 LDFLAGS="$save_LDFLAGS"
10581 LIBS="$save_LIBS"
10582 ;;
10583 esac
10584
10585 case $lt_cv_dlopen_self in
10586 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10587 *) enable_dlopen_self=unknown ;;
10588 esac
10589
10590 case $lt_cv_dlopen_self_static in
10591 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10592 *) enable_dlopen_self_static=unknown ;;
10593 esac
10594 fi
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612 striplib=
10613 old_striplib=
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10615 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10616 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10617 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10618 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10620 $as_echo "yes" >&6; }
10621 else
10622 # FIXME - insert some real tests, host_os isn't really good enough
10623 case $host_os in
10624 darwin*)
10625 if test -n "$STRIP" ; then
10626 striplib="$STRIP -x"
10627 old_striplib="$STRIP -S"
10628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10629 $as_echo "yes" >&6; }
10630 else
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10632 $as_echo "no" >&6; }
10633 fi
10634 ;;
10635 *)
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10637 $as_echo "no" >&6; }
10638 ;;
10639 esac
10640 fi
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653 # Report which library types will actually be built
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10655 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10657 $as_echo "$can_build_shared" >&6; }
10658
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10660 $as_echo_n "checking whether to build shared libraries... " >&6; }
10661 test "$can_build_shared" = "no" && enable_shared=no
10662
10663 # On AIX, shared libraries and static libraries use the same namespace, and
10664 # are all built from PIC.
10665 case $host_os in
10666 aix3*)
10667 test "$enable_shared" = yes && enable_static=no
10668 if test -n "$RANLIB"; then
10669 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10670 postinstall_cmds='$RANLIB $lib'
10671 fi
10672 ;;
10673
10674 aix[4-9]*)
10675 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10676 test "$enable_shared" = yes && enable_static=no
10677 fi
10678 ;;
10679 esac
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10681 $as_echo "$enable_shared" >&6; }
10682
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10684 $as_echo_n "checking whether to build static libraries... " >&6; }
10685 # Make sure either enable_shared or enable_static is yes.
10686 test "$enable_shared" = yes || enable_static=yes
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10688 $as_echo "$enable_static" >&6; }
10689
10690
10691
10692
10693 fi
10694 ac_ext=c
10695 ac_cpp='$CPP $CPPFLAGS'
10696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10699
10700 CC="$lt_save_CC"
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714 ac_config_commands="$ac_config_commands libtool"
10715
10716
10717
10718
10719 # Only expand once:
10720
10721
10722
10723 for ac_header in replaygain/gain_analysis.h
10724 do :
10725 ac_fn_c_check_header_mongrel "$LINENO" "replaygain/gain_analysis.h" "ac_cv_header_replaygain_gain_analysis_h" "$ac_includes_default"
10726 if test "x$ac_cv_header_replaygain_gain_analysis_h" = x""yes; then :
10727 cat >>confdefs.h <<_ACEOF
10728 #define HAVE_REPLAYGAIN_GAIN_ANALYSIS_H 1
10729 _ACEOF
10730
10731 fi
10732
10733 done
10734
10735 if test "x$ac_cv_header_replaygain_gain_analysis_h" = xyes; then
10736 MPC_GAIN_TRUE=
10737 MPC_GAIN_FALSE='#'
10738 else
10739 MPC_GAIN_TRUE='#'
10740 MPC_GAIN_FALSE=
10741 fi
10742
10743
10744
10745 case $host_os in
10746 *mingw32* )
10747 LDFLAGS="${LDFLAGS} -mwindows"
10748 EXTRALIBS="-lwinmm"
10749 ;;
10750 * )
10751 EXTRALIBS=""
10752 ;;
10753 esac
10754
10755
10756
10757 # Check whether --enable-mpcchap was given.
10758 if test "${enable_mpcchap+set}" = set; then :
10759 enableval=$enable_mpcchap;
10760 fi
10761
10762 if test "x$enable_mpcchap" = xyes; then
10763 MPC_CHAP_TRUE=
10764 MPC_CHAP_FALSE='#'
10765 else
10766 MPC_CHAP_TRUE='#'
10767 MPC_CHAP_FALSE=
10768 fi
10769
10770
10771 if true; then
10772 HAVE_VISIBILITY_TRUE=
10773 HAVE_VISIBILITY_FALSE='#'
10774 else
10775 HAVE_VISIBILITY_TRUE='#'
10776 HAVE_VISIBILITY_FALSE=
10777 fi
10778
10779
10780
10781 ac_config_files="$ac_config_files Makefile include/Makefile libmpcdec/Makefile libmpcenc/Makefile libmpcpsy/Makefile libwavformat/Makefile mpc2sv8/Makefile mpcchap/Makefile mpccut/Makefile mpcdec/Makefile mpcenc/Makefile mpcgain/Makefile wavcmp/Makefile"
10782
10783
10784 cat >confcache <<\_ACEOF
10785 # This file is a shell script that caches the results of configure
10786 # tests run on this system so they can be shared between configure
10787 # scripts and configure runs, see configure's option --config-cache.
10788 # It is not useful on other systems. If it contains results you don't
10789 # want to keep, you may remove or edit it.
10790 #
10791 # config.status only pays attention to the cache file if you give it
10792 # the --recheck option to rerun configure.
10793 #
10794 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10795 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10796 # following values.
10797
10798 _ACEOF
10799
10800 # The following way of writing the cache mishandles newlines in values,
10801 # but we know of no workaround that is simple, portable, and efficient.
10802 # So, we kill variables containing newlines.
10803 # Ultrix sh set writes to stderr and can't be redirected directly,
10804 # and sets the high bit in the cache file unless we assign to the vars.
10805 (
10806 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10807 eval ac_val=\$$ac_var
10808 case $ac_val in #(
10809 *${as_nl}*)
10810 case $ac_var in #(
10811 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10812 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10813 esac
10814 case $ac_var in #(
10815 _ | IFS | as_nl) ;; #(
10816 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10817 *) { eval $ac_var=; unset $ac_var;} ;;
10818 esac ;;
10819 esac
10820 done
10821
10822 (set) 2>&1 |
10823 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10824 *${as_nl}ac_space=\ *)
10825 # `set' does not quote correctly, so add quotes: double-quote
10826 # substitution turns \\\\ into \\, and sed turns \\ into \.
10827 sed -n \
10828 "s/'/'\\\\''/g;
10829 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10830 ;; #(
10831 *)
10832 # `set' quotes correctly as required by POSIX, so do not add quotes.
10833 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10834 ;;
10835 esac |
10836 sort
10837 ) |
10838 sed '
10839 /^ac_cv_env_/b end
10840 t clear
10841 :clear
10842 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10843 t end
10844 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10845 :end' >>confcache
10846 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10847 if test -w "$cache_file"; then
10848 test "x$cache_file" != "x/dev/null" &&
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10850 $as_echo "$as_me: updating cache $cache_file" >&6;}
10851 cat confcache >$cache_file
10852 else
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10854 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10855 fi
10856 fi
10857 rm -f confcache
10858
10859 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10860 # Let make expand exec_prefix.
10861 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10862
10863 DEFS=-DHAVE_CONFIG_H
10864
10865 ac_libobjs=
10866 ac_ltlibobjs=
10867 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10868 # 1. Remove the extension, and $U if already installed.
10869 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10870 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10871 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10872 # will be set to the directory where LIBOBJS objects are built.
10873 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10874 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10875 done
10876 LIBOBJS=$ac_libobjs
10877
10878 LTLIBOBJS=$ac_ltlibobjs
10879
10880
10881 if test -n "$EXEEXT"; then
10882 am__EXEEXT_TRUE=
10883 am__EXEEXT_FALSE='#'
10884 else
10885 am__EXEEXT_TRUE='#'
10886 am__EXEEXT_FALSE=
10887 fi
10888
10889 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10890 as_fn_error "conditional \"AMDEP\" was never defined.
10891 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10892 fi
10893 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10894 as_fn_error "conditional \"am__fastdepCC\" was never defined.
10895 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10896 fi
10897 if test -z "${MPC_GAIN_TRUE}" && test -z "${MPC_GAIN_FALSE}"; then
10898 as_fn_error "conditional \"MPC_GAIN\" was never defined.
10899 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10900 fi
10901 if test -z "${MPC_CHAP_TRUE}" && test -z "${MPC_CHAP_FALSE}"; then
10902 as_fn_error "conditional \"MPC_CHAP\" was never defined.
10903 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10904 fi
10905 if test -z "${HAVE_VISIBILITY_TRUE}" && test -z "${HAVE_VISIBILITY_FALSE}"; then
10906 as_fn_error "conditional \"HAVE_VISIBILITY\" was never defined.
10907 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10908 fi
10909
10910 : ${CONFIG_STATUS=./config.status}
10911 ac_write_fail=0
10912 ac_clean_files_save=$ac_clean_files
10913 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10915 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10916 as_write_fail=0
10917 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10918 #! $SHELL
10919 # Generated by $as_me.
10920 # Run this file to recreate the current configuration.
10921 # Compiler output produced by configure, useful for debugging
10922 # configure, is in config.log if it exists.
10923
10924 debug=false
10925 ac_cs_recheck=false
10926 ac_cs_silent=false
10927
10928 SHELL=\${CONFIG_SHELL-$SHELL}
10929 export SHELL
10930 _ASEOF
10931 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10932 ## -------------------- ##
10933 ## M4sh Initialization. ##
10934 ## -------------------- ##
10935
10936 # Be more Bourne compatible
10937 DUALCASE=1; export DUALCASE # for MKS sh
10938 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10939 emulate sh
10940 NULLCMD=:
10941 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10942 # is contrary to our usage. Disable this feature.
10943 alias -g '${1+"$@"}'='"$@"'
10944 setopt NO_GLOB_SUBST
10945 else
10946 case `(set -o) 2>/dev/null` in #(
10947 *posix*) :
10948 set -o posix ;; #(
10949 *) :
10950 ;;
10951 esac
10952 fi
10953
10954
10955 as_nl='
10956 '
10957 export as_nl
10958 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10959 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10960 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10961 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10962 # Prefer a ksh shell builtin over an external printf program on Solaris,
10963 # but without wasting forks for bash or zsh.
10964 if test -z "$BASH_VERSION$ZSH_VERSION" \
10965 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10966 as_echo='print -r --'
10967 as_echo_n='print -rn --'
10968 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10969 as_echo='printf %s\n'
10970 as_echo_n='printf %s'
10971 else
10972 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10973 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10974 as_echo_n='/usr/ucb/echo -n'
10975 else
10976 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10977 as_echo_n_body='eval
10978 arg=$1;
10979 case $arg in #(
10980 *"$as_nl"*)
10981 expr "X$arg" : "X\\(.*\\)$as_nl";
10982 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10983 esac;
10984 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10985 '
10986 export as_echo_n_body
10987 as_echo_n='sh -c $as_echo_n_body as_echo'
10988 fi
10989 export as_echo_body
10990 as_echo='sh -c $as_echo_body as_echo'
10991 fi
10992
10993 # The user is always right.
10994 if test "${PATH_SEPARATOR+set}" != set; then
10995 PATH_SEPARATOR=:
10996 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10997 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10998 PATH_SEPARATOR=';'
10999 }
11000 fi
11001
11002
11003 # IFS
11004 # We need space, tab and new line, in precisely that order. Quoting is
11005 # there to prevent editors from complaining about space-tab.
11006 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11007 # splitting by setting IFS to empty value.)
11008 IFS=" "" $as_nl"
11009
11010 # Find who we are. Look in the path if we contain no directory separator.
11011 case $0 in #((
11012 *[\\/]* ) as_myself=$0 ;;
11013 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11014 for as_dir in $PATH
11015 do
11016 IFS=$as_save_IFS
11017 test -z "$as_dir" && as_dir=.
11018 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11019 done
11020 IFS=$as_save_IFS
11021
11022 ;;
11023 esac
11024 # We did not find ourselves, most probably we were run as `sh COMMAND'
11025 # in which case we are not to be found in the path.
11026 if test "x$as_myself" = x; then
11027 as_myself=$0
11028 fi
11029 if test ! -f "$as_myself"; then
11030 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11031 exit 1
11032 fi
11033
11034 # Unset variables that we do not need and which cause bugs (e.g. in
11035 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11036 # suppresses any "Segmentation fault" message there. '((' could
11037 # trigger a bug in pdksh 5.2.14.
11038 for as_var in BASH_ENV ENV MAIL MAILPATH
11039 do eval test x\${$as_var+set} = xset \
11040 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11041 done
11042 PS1='$ '
11043 PS2='> '
11044 PS4='+ '
11045
11046 # NLS nuisances.
11047 LC_ALL=C
11048 export LC_ALL
11049 LANGUAGE=C
11050 export LANGUAGE
11051
11052 # CDPATH.
11053 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11054
11055
11056 # as_fn_error ERROR [LINENO LOG_FD]
11057 # ---------------------------------
11058 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11059 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11060 # script with status $?, using 1 if that was 0.
11061 as_fn_error ()
11062 {
11063 as_status=$?; test $as_status -eq 0 && as_status=1
11064 if test "$3"; then
11065 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11066 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11067 fi
11068 $as_echo "$as_me: error: $1" >&2
11069 as_fn_exit $as_status
11070 } # as_fn_error
11071
11072
11073 # as_fn_set_status STATUS
11074 # -----------------------
11075 # Set $? to STATUS, without forking.
11076 as_fn_set_status ()
11077 {
11078 return $1
11079 } # as_fn_set_status
11080
11081 # as_fn_exit STATUS
11082 # -----------------
11083 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11084 as_fn_exit ()
11085 {
11086 set +e
11087 as_fn_set_status $1
11088 exit $1
11089 } # as_fn_exit
11090
11091 # as_fn_unset VAR
11092 # ---------------
11093 # Portably unset VAR.
11094 as_fn_unset ()
11095 {
11096 { eval $1=; unset $1;}
11097 }
11098 as_unset=as_fn_unset
11099 # as_fn_append VAR VALUE
11100 # ----------------------
11101 # Append the text in VALUE to the end of the definition contained in VAR. Take
11102 # advantage of any shell optimizations that allow amortized linear growth over
11103 # repeated appends, instead of the typical quadratic growth present in naive
11104 # implementations.
11105 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11106 eval 'as_fn_append ()
11107 {
11108 eval $1+=\$2
11109 }'
11110 else
11111 as_fn_append ()
11112 {
11113 eval $1=\$$1\$2
11114 }
11115 fi # as_fn_append
11116
11117 # as_fn_arith ARG...
11118 # ------------------
11119 # Perform arithmetic evaluation on the ARGs, and store the result in the
11120 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11121 # must be portable across $(()) and expr.
11122 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11123 eval 'as_fn_arith ()
11124 {
11125 as_val=$(( $* ))
11126 }'
11127 else
11128 as_fn_arith ()
11129 {
11130 as_val=`expr "$@" || test $? -eq 1`
11131 }
11132 fi # as_fn_arith
11133
11134
11135 if expr a : '\(a\)' >/dev/null 2>&1 &&
11136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11137 as_expr=expr
11138 else
11139 as_expr=false
11140 fi
11141
11142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11143 as_basename=basename
11144 else
11145 as_basename=false
11146 fi
11147
11148 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11149 as_dirname=dirname
11150 else
11151 as_dirname=false
11152 fi
11153
11154 as_me=`$as_basename -- "$0" ||
11155 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11156 X"$0" : 'X\(//\)$' \| \
11157 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11158 $as_echo X/"$0" |
11159 sed '/^.*\/\([^/][^/]*\)\/*$/{
11160 s//\1/
11161 q
11162 }
11163 /^X\/\(\/\/\)$/{
11164 s//\1/
11165 q
11166 }
11167 /^X\/\(\/\).*/{
11168 s//\1/
11169 q
11170 }
11171 s/.*/./; q'`
11172
11173 # Avoid depending upon Character Ranges.
11174 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11175 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11176 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11177 as_cr_digits='0123456789'
11178 as_cr_alnum=$as_cr_Letters$as_cr_digits
11179
11180 ECHO_C= ECHO_N= ECHO_T=
11181 case `echo -n x` in #(((((
11182 -n*)
11183 case `echo 'xy\c'` in
11184 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11185 xy) ECHO_C='\c';;
11186 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11187 ECHO_T=' ';;
11188 esac;;
11189 *)
11190 ECHO_N='-n';;
11191 esac
11192
11193 rm -f conf$$ conf$$.exe conf$$.file
11194 if test -d conf$$.dir; then
11195 rm -f conf$$.dir/conf$$.file
11196 else
11197 rm -f conf$$.dir
11198 mkdir conf$$.dir 2>/dev/null
11199 fi
11200 if (echo >conf$$.file) 2>/dev/null; then
11201 if ln -s conf$$.file conf$$ 2>/dev/null; then
11202 as_ln_s='ln -s'
11203 # ... but there are two gotchas:
11204 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11205 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11206 # In both cases, we have to default to `cp -p'.
11207 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11208 as_ln_s='cp -p'
11209 elif ln conf$$.file conf$$ 2>/dev/null; then
11210 as_ln_s=ln
11211 else
11212 as_ln_s='cp -p'
11213 fi
11214 else
11215 as_ln_s='cp -p'
11216 fi
11217 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11218 rmdir conf$$.dir 2>/dev/null
11219
11220
11221 # as_fn_mkdir_p
11222 # -------------
11223 # Create "$as_dir" as a directory, including parents if necessary.
11224 as_fn_mkdir_p ()
11225 {
11226
11227 case $as_dir in #(
11228 -*) as_dir=./$as_dir;;
11229 esac
11230 test -d "$as_dir" || eval $as_mkdir_p || {
11231 as_dirs=
11232 while :; do
11233 case $as_dir in #(
11234 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11235 *) as_qdir=$as_dir;;
11236 esac
11237 as_dirs="'$as_qdir' $as_dirs"
11238 as_dir=`$as_dirname -- "$as_dir" ||
11239 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11240 X"$as_dir" : 'X\(//\)[^/]' \| \
11241 X"$as_dir" : 'X\(//\)$' \| \
11242 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11243 $as_echo X"$as_dir" |
11244 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11245 s//\1/
11246 q
11247 }
11248 /^X\(\/\/\)[^/].*/{
11249 s//\1/
11250 q
11251 }
11252 /^X\(\/\/\)$/{
11253 s//\1/
11254 q
11255 }
11256 /^X\(\/\).*/{
11257 s//\1/
11258 q
11259 }
11260 s/.*/./; q'`
11261 test -d "$as_dir" && break
11262 done
11263 test -z "$as_dirs" || eval "mkdir $as_dirs"
11264 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11265
11266
11267 } # as_fn_mkdir_p
11268 if mkdir -p . 2>/dev/null; then
11269 as_mkdir_p='mkdir -p "$as_dir"'
11270 else
11271 test -d ./-p && rmdir ./-p
11272 as_mkdir_p=false
11273 fi
11274
11275 if test -x / >/dev/null 2>&1; then
11276 as_test_x='test -x'
11277 else
11278 if ls -dL / >/dev/null 2>&1; then
11279 as_ls_L_option=L
11280 else
11281 as_ls_L_option=
11282 fi
11283 as_test_x='
11284 eval sh -c '\''
11285 if test -d "$1"; then
11286 test -d "$1/.";
11287 else
11288 case $1 in #(
11289 -*)set "./$1";;
11290 esac;
11291 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11292 ???[sx]*):;;*)false;;esac;fi
11293 '\'' sh
11294 '
11295 fi
11296 as_executable_p=$as_test_x
11297
11298 # Sed expression to map a string onto a valid CPP name.
11299 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11300
11301 # Sed expression to map a string onto a valid variable name.
11302 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11303
11304
11305 exec 6>&1
11306 ## ----------------------------------- ##
11307 ## Main body of $CONFIG_STATUS script. ##
11308 ## ----------------------------------- ##
11309 _ASEOF
11310 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11311
11312 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11313 # Save the log message, to keep $0 and so on meaningful, and to
11314 # report actual input values of CONFIG_FILES etc. instead of their
11315 # values after options handling.
11316 ac_log="
11317 This file was extended by libmpcs $as_me 0.1, which was
11318 generated by GNU Autoconf 2.65. Invocation command line was
11319
11320 CONFIG_FILES = $CONFIG_FILES
11321 CONFIG_HEADERS = $CONFIG_HEADERS
11322 CONFIG_LINKS = $CONFIG_LINKS
11323 CONFIG_COMMANDS = $CONFIG_COMMANDS
11324 $ $0 $@
11325
11326 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11327 "
11328
11329 _ACEOF
11330
11331 case $ac_config_files in *"
11332 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11333 esac
11334
11335 case $ac_config_headers in *"
11336 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11337 esac
11338
11339
11340 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11341 # Files that config.status was made for.
11342 config_files="$ac_config_files"
11343 config_headers="$ac_config_headers"
11344 config_commands="$ac_config_commands"
11345
11346 _ACEOF
11347
11348 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11349 ac_cs_usage="\
11350 \`$as_me' instantiates files and other configuration actions
11351 from templates according to the current configuration. Unless the files
11352 and actions are specified as TAGs, all are instantiated by default.
11353
11354 Usage: $0 [OPTION]... [TAG]...
11355
11356 -h, --help print this help, then exit
11357 -V, --version print version number and configuration settings, then exit
11358 --config print configuration, then exit
11359 -q, --quiet, --silent
11360 do not print progress messages
11361 -d, --debug don't remove temporary files
11362 --recheck update $as_me by reconfiguring in the same conditions
11363 --file=FILE[:TEMPLATE]
11364 instantiate the configuration file FILE
11365 --header=FILE[:TEMPLATE]
11366 instantiate the configuration header FILE
11367
11368 Configuration files:
11369 $config_files
11370
11371 Configuration headers:
11372 $config_headers
11373
11374 Configuration commands:
11375 $config_commands
11376
11377 Report bugs to the package provider."
11378
11379 _ACEOF
11380 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11381 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11382 ac_cs_version="\\
11383 libmpcs config.status 0.1
11384 configured by $0, generated by GNU Autoconf 2.65,
11385 with options \\"\$ac_cs_config\\"
11386
11387 Copyright (C) 2009 Free Software Foundation, Inc.
11388 This config.status script is free software; the Free Software Foundation
11389 gives unlimited permission to copy, distribute and modify it."
11390
11391 ac_pwd='$ac_pwd'
11392 srcdir='$srcdir'
11393 INSTALL='$INSTALL'
11394 MKDIR_P='$MKDIR_P'
11395 AWK='$AWK'
11396 test -n "\$AWK" || AWK=awk
11397 _ACEOF
11398
11399 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11400 # The default lists apply if the user does not specify any file.
11401 ac_need_defaults=:
11402 while test $# != 0
11403 do
11404 case $1 in
11405 --*=*)
11406 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11407 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11408 ac_shift=:
11409 ;;
11410 *)
11411 ac_option=$1
11412 ac_optarg=$2
11413 ac_shift=shift
11414 ;;
11415 esac
11416
11417 case $ac_option in
11418 # Handling of the options.
11419 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11420 ac_cs_recheck=: ;;
11421 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11422 $as_echo "$ac_cs_version"; exit ;;
11423 --config | --confi | --conf | --con | --co | --c )
11424 $as_echo "$ac_cs_config"; exit ;;
11425 --debug | --debu | --deb | --de | --d | -d )
11426 debug=: ;;
11427 --file | --fil | --fi | --f )
11428 $ac_shift
11429 case $ac_optarg in
11430 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11431 esac
11432 as_fn_append CONFIG_FILES " '$ac_optarg'"
11433 ac_need_defaults=false;;
11434 --header | --heade | --head | --hea )
11435 $ac_shift
11436 case $ac_optarg in
11437 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11438 esac
11439 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11440 ac_need_defaults=false;;
11441 --he | --h)
11442 # Conflict between --help and --header
11443 as_fn_error "ambiguous option: \`$1'
11444 Try \`$0 --help' for more information.";;
11445 --help | --hel | -h )
11446 $as_echo "$ac_cs_usage"; exit ;;
11447 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11448 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11449 ac_cs_silent=: ;;
11450
11451 # This is an error.
11452 -*) as_fn_error "unrecognized option: \`$1'
11453 Try \`$0 --help' for more information." ;;
11454
11455 *) as_fn_append ac_config_targets " $1"
11456 ac_need_defaults=false ;;
11457
11458 esac
11459 shift
11460 done
11461
11462 ac_configure_extra_args=
11463
11464 if $ac_cs_silent; then
11465 exec 6>/dev/null
11466 ac_configure_extra_args="$ac_configure_extra_args --silent"
11467 fi
11468
11469 _ACEOF
11470 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11471 if \$ac_cs_recheck; then
11472 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11473 shift
11474 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11475 CONFIG_SHELL='$SHELL'
11476 export CONFIG_SHELL
11477 exec "\$@"
11478 fi
11479
11480 _ACEOF
11481 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11482 exec 5>>config.log
11483 {
11484 echo
11485 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11486 ## Running $as_me. ##
11487 _ASBOX
11488 $as_echo "$ac_log"
11489 } >&5
11490
11491 _ACEOF
11492 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11493 #
11494 # INIT-COMMANDS
11495 #
11496 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11497
11498
11499 # The HP-UX ksh and POSIX shell print the target directory to stdout
11500 # if CDPATH is set.
11501 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11502
11503 sed_quote_subst='$sed_quote_subst'
11504 double_quote_subst='$double_quote_subst'
11505 delay_variable_subst='$delay_variable_subst'
11506 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
11507 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
11508 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
11509 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
11510 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
11511 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
11512 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
11513 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
11514 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
11515 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
11516 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
11517 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
11518 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
11519 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
11520 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
11521 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
11522 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
11523 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
11524 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
11525 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
11526 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
11527 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
11528 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
11529 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
11530 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
11531 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
11532 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
11533 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
11534 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
11535 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
11536 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11537 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
11538 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
11539 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
11540 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11541 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
11542 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
11543 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11544 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11545 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11546 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
11547 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11548 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
11549 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
11550 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
11551 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
11552 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
11553 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11554 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
11555 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
11556 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
11557 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
11558 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
11559 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
11560 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
11561 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
11562 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
11563 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
11564 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
11565 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
11566 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
11567 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
11568 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
11569 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
11570 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11571 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11572 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
11573 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
11574 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11575 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11576 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
11577 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11578 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11579 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11580 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11581 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11582 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11583 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
11584 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11585 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11586 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11587 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
11588 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
11589 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
11590 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
11591 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
11592 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11593 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
11594 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
11595 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
11596 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
11597 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
11598 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11599 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11600 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11601 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11602 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
11603 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
11604 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11605 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
11606 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
11607 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11608 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11609 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
11610 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11611 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
11612 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11613 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11614 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11615 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11616 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
11617 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
11618 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11619 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11620 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
11621 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
11622 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
11623 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
11624 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
11625 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
11626
11627 LTCC='$LTCC'
11628 LTCFLAGS='$LTCFLAGS'
11629 compiler='$compiler_DEFAULT'
11630
11631 # Quote evaled strings.
11632 for var in SED \
11633 GREP \
11634 EGREP \
11635 FGREP \
11636 LD \
11637 NM \
11638 LN_S \
11639 lt_SP2NL \
11640 lt_NL2SP \
11641 reload_flag \
11642 deplibs_check_method \
11643 file_magic_cmd \
11644 AR \
11645 AR_FLAGS \
11646 STRIP \
11647 RANLIB \
11648 CC \
11649 CFLAGS \
11650 compiler \
11651 lt_cv_sys_global_symbol_pipe \
11652 lt_cv_sys_global_symbol_to_cdecl \
11653 lt_cv_sys_global_symbol_to_c_name_address \
11654 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
11655 SHELL \
11656 ECHO \
11657 lt_prog_compiler_no_builtin_flag \
11658 lt_prog_compiler_wl \
11659 lt_prog_compiler_pic \
11660 lt_prog_compiler_static \
11661 lt_cv_prog_compiler_c_o \
11662 need_locks \
11663 DSYMUTIL \
11664 NMEDIT \
11665 LIPO \
11666 OTOOL \
11667 OTOOL64 \
11668 shrext_cmds \
11669 export_dynamic_flag_spec \
11670 whole_archive_flag_spec \
11671 compiler_needs_object \
11672 with_gnu_ld \
11673 allow_undefined_flag \
11674 no_undefined_flag \
11675 hardcode_libdir_flag_spec \
11676 hardcode_libdir_flag_spec_ld \
11677 hardcode_libdir_separator \
11678 fix_srcfile_path \
11679 exclude_expsyms \
11680 include_expsyms \
11681 file_list_spec \
11682 variables_saved_for_relink \
11683 libname_spec \
11684 library_names_spec \
11685 soname_spec \
11686 finish_eval \
11687 old_striplib \
11688 striplib; do
11689 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11690 *[\\\\\\\`\\"\\\$]*)
11691 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
11692 ;;
11693 *)
11694 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11695 ;;
11696 esac
11697 done
11698
11699 # Double-quote double-evaled strings.
11700 for var in reload_cmds \
11701 old_postinstall_cmds \
11702 old_postuninstall_cmds \
11703 old_archive_cmds \
11704 extract_expsyms_cmds \
11705 old_archive_from_new_cmds \
11706 old_archive_from_expsyms_cmds \
11707 archive_cmds \
11708 archive_expsym_cmds \
11709 module_cmds \
11710 module_expsym_cmds \
11711 export_symbols_cmds \
11712 prelink_cmds \
11713 postinstall_cmds \
11714 postuninstall_cmds \
11715 finish_cmds \
11716 sys_lib_search_path_spec \
11717 sys_lib_dlsearch_path_spec; do
11718 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11719 *[\\\\\\\`\\"\\\$]*)
11720 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
11721 ;;
11722 *)
11723 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11724 ;;
11725 esac
11726 done
11727
11728 # Fix-up fallback echo if it was mangled by the above quoting rules.
11729 case \$lt_ECHO in
11730 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
11731 ;;
11732 esac
11733
11734 ac_aux_dir='$ac_aux_dir'
11735 xsi_shell='$xsi_shell'
11736 lt_shell_append='$lt_shell_append'
11737
11738 # See if we are running on zsh, and set the options which allow our
11739 # commands through without removal of \ escapes INIT.
11740 if test -n "\${ZSH_VERSION+set}" ; then
11741 setopt NO_GLOB_SUBST
11742 fi
11743
11744
11745 PACKAGE='$PACKAGE'
11746 VERSION='$VERSION'
11747 TIMESTAMP='$TIMESTAMP'
11748 RM='$RM'
11749 ofile='$ofile'
11750
11751
11752
11753
11754 _ACEOF
11755
11756 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11757
11758 # Handling of arguments.
11759 for ac_config_target in $ac_config_targets
11760 do
11761 case $ac_config_target in
11762 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
11763 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11764 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
11765 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11766 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
11767 "libmpcdec/Makefile") CONFIG_FILES="$CONFIG_FILES libmpcdec/Makefile" ;;
11768 "libmpcenc/Makefile") CONFIG_FILES="$CONFIG_FILES libmpcenc/Makefile" ;;
11769 "libmpcpsy/Makefile") CONFIG_FILES="$CONFIG_FILES libmpcpsy/Makefile" ;;
11770 "libwavformat/Makefile") CONFIG_FILES="$CONFIG_FILES libwavformat/Makefile" ;;
11771 "mpc2sv8/Makefile") CONFIG_FILES="$CONFIG_FILES mpc2sv8/Makefile" ;;
11772 "mpcchap/Makefile") CONFIG_FILES="$CONFIG_FILES mpcchap/Makefile" ;;
11773 "mpccut/Makefile") CONFIG_FILES="$CONFIG_FILES mpccut/Makefile" ;;
11774 "mpcdec/Makefile") CONFIG_FILES="$CONFIG_FILES mpcdec/Makefile" ;;
11775 "mpcenc/Makefile") CONFIG_FILES="$CONFIG_FILES mpcenc/Makefile" ;;
11776 "mpcgain/Makefile") CONFIG_FILES="$CONFIG_FILES mpcgain/Makefile" ;;
11777 "wavcmp/Makefile") CONFIG_FILES="$CONFIG_FILES wavcmp/Makefile" ;;
11778
11779 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11780 esac
11781 done
11782
11783
11784 # If the user did not use the arguments to specify the items to instantiate,
11785 # then the envvar interface is used. Set only those that are not.
11786 # We use the long form for the default assignment because of an extremely
11787 # bizarre bug on SunOS 4.1.3.
11788 if $ac_need_defaults; then
11789 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11790 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11791 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11792 fi
11793
11794 # Have a temporary directory for convenience. Make it in the build tree
11795 # simply because there is no reason against having it here, and in addition,
11796 # creating and moving files from /tmp can sometimes cause problems.
11797 # Hook for its removal unless debugging.
11798 # Note that there is a small window in which the directory will not be cleaned:
11799 # after its creation but before its name has been assigned to `$tmp'.
11800 $debug ||
11801 {
11802 tmp=
11803 trap 'exit_status=$?
11804 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11805 ' 0
11806 trap 'as_fn_exit 1' 1 2 13 15
11807 }
11808 # Create a (secure) tmp directory for tmp files.
11809
11810 {
11811 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11812 test -n "$tmp" && test -d "$tmp"
11813 } ||
11814 {
11815 tmp=./conf$$-$RANDOM
11816 (umask 077 && mkdir "$tmp")
11817 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
11818
11819 # Set up the scripts for CONFIG_FILES section.
11820 # No need to generate them if there are no CONFIG_FILES.
11821 # This happens for instance with `./config.status config.h'.
11822 if test -n "$CONFIG_FILES"; then
11823
11824
11825 ac_cr=`echo X | tr X '\015'`
11826 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11827 # But we know of no other shell where ac_cr would be empty at this
11828 # point, so we can use a bashism as a fallback.
11829 if test "x$ac_cr" = x; then
11830 eval ac_cr=\$\'\\r\'
11831 fi
11832 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11833 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11834 ac_cs_awk_cr='\r'
11835 else
11836 ac_cs_awk_cr=$ac_cr
11837 fi
11838
11839 echo 'BEGIN {' >"$tmp/subs1.awk" &&
11840 _ACEOF
11841
11842
11843 {
11844 echo "cat >conf$$subs.awk <<_ACEOF" &&
11845 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11846 echo "_ACEOF"
11847 } >conf$$subs.sh ||
11848 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11849 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
11850 ac_delim='%!_!# '
11851 for ac_last_try in false false false false false :; do
11852 . ./conf$$subs.sh ||
11853 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11854
11855 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11856 if test $ac_delim_n = $ac_delim_num; then
11857 break
11858 elif $ac_last_try; then
11859 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11860 else
11861 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11862 fi
11863 done
11864 rm -f conf$$subs.sh
11865
11866 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11867 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11868 _ACEOF
11869 sed -n '
11870 h
11871 s/^/S["/; s/!.*/"]=/
11872 p
11873 g
11874 s/^[^!]*!//
11875 :repl
11876 t repl
11877 s/'"$ac_delim"'$//
11878 t delim
11879 :nl
11880 h
11881 s/\(.\{148\}\)..*/\1/
11882 t more1
11883 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11884 p
11885 n
11886 b repl
11887 :more1
11888 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11889 p
11890 g
11891 s/.\{148\}//
11892 t nl
11893 :delim
11894 h
11895 s/\(.\{148\}\)..*/\1/
11896 t more2
11897 s/["\\]/\\&/g; s/^/"/; s/$/"/
11898 p
11899 b
11900 :more2
11901 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11902 p
11903 g
11904 s/.\{148\}//
11905 t delim
11906 ' <conf$$subs.awk | sed '
11907 /^[^""]/{
11908 N
11909 s/\n//
11910 }
11911 ' >>$CONFIG_STATUS || ac_write_fail=1
11912 rm -f conf$$subs.awk
11913 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11914 _ACAWK
11915 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11916 for (key in S) S_is_set[key] = 1
11917 FS = ""
11918
11919 }
11920 {
11921 line = $ 0
11922 nfields = split(line, field, "@")
11923 substed = 0
11924 len = length(field[1])
11925 for (i = 2; i < nfields; i++) {
11926 key = field[i]
11927 keylen = length(key)
11928 if (S_is_set[key]) {
11929 value = S[key]
11930 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11931 len += length(value) + length(field[++i])
11932 substed = 1
11933 } else
11934 len += 1 + keylen
11935 }
11936
11937 print line
11938 }
11939
11940 _ACAWK
11941 _ACEOF
11942 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11943 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11944 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11945 else
11946 cat
11947 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
11948 || as_fn_error "could not setup config files machinery" "$LINENO" 5
11949 _ACEOF
11950
11951 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11952 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11953 # trailing colons and then remove the whole line if VPATH becomes empty
11954 # (actually we leave an empty line to preserve line numbers).
11955 if test "x$srcdir" = x.; then
11956 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11957 s/:*\$(srcdir):*/:/
11958 s/:*\${srcdir}:*/:/
11959 s/:*@srcdir@:*/:/
11960 s/^\([^=]*=[ ]*\):*/\1/
11961 s/:*$//
11962 s/^[^=]*=[ ]*$//
11963 }'
11964 fi
11965
11966 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11967 fi # test -n "$CONFIG_FILES"
11968
11969 # Set up the scripts for CONFIG_HEADERS section.
11970 # No need to generate them if there are no CONFIG_HEADERS.
11971 # This happens for instance with `./config.status Makefile'.
11972 if test -n "$CONFIG_HEADERS"; then
11973 cat >"$tmp/defines.awk" <<\_ACAWK ||
11974 BEGIN {
11975 _ACEOF
11976
11977 # Transform confdefs.h into an awk script `defines.awk', embedded as
11978 # here-document in config.status, that substitutes the proper values into
11979 # config.h.in to produce config.h.
11980
11981 # Create a delimiter string that does not exist in confdefs.h, to ease
11982 # handling of long lines.
11983 ac_delim='%!_!# '
11984 for ac_last_try in false false :; do
11985 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
11986 if test -z "$ac_t"; then
11987 break
11988 elif $ac_last_try; then
11989 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
11990 else
11991 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11992 fi
11993 done
11994
11995 # For the awk script, D is an array of macro values keyed by name,
11996 # likewise P contains macro parameters if any. Preserve backslash
11997 # newline sequences.
11998
11999 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12000 sed -n '
12001 s/.\{148\}/&'"$ac_delim"'/g
12002 t rset
12003 :rset
12004 s/^[ ]*#[ ]*define[ ][ ]*/ /
12005 t def
12006 d
12007 :def
12008 s/\\$//
12009 t bsnl
12010 s/["\\]/\\&/g
12011 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12012 D["\1"]=" \3"/p
12013 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12014 d
12015 :bsnl
12016 s/["\\]/\\&/g
12017 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12018 D["\1"]=" \3\\\\\\n"\\/p
12019 t cont
12020 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12021 t cont
12022 d
12023 :cont
12024 n
12025 s/.\{148\}/&'"$ac_delim"'/g
12026 t clear
12027 :clear
12028 s/\\$//
12029 t bsnlc
12030 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12031 d
12032 :bsnlc
12033 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12034 b cont
12035 ' <confdefs.h | sed '
12036 s/'"$ac_delim"'/"\\\
12037 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12038
12039 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12040 for (key in D) D_is_set[key] = 1
12041 FS = ""
12042 }
12043 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12044 line = \$ 0
12045 split(line, arg, " ")
12046 if (arg[1] == "#") {
12047 defundef = arg[2]
12048 mac1 = arg[3]
12049 } else {
12050 defundef = substr(arg[1], 2)
12051 mac1 = arg[2]
12052 }
12053 split(mac1, mac2, "(") #)
12054 macro = mac2[1]
12055 prefix = substr(line, 1, index(line, defundef) - 1)
12056 if (D_is_set[macro]) {
12057 # Preserve the white space surrounding the "#".
12058 print prefix "define", macro P[macro] D[macro]
12059 next
12060 } else {
12061 # Replace #undef with comments. This is necessary, for example,
12062 # in the case of _POSIX_SOURCE, which is predefined and required
12063 # on some systems where configure will not decide to define it.
12064 if (defundef == "undef") {
12065 print "/*", prefix defundef, macro, "*/"
12066 next
12067 }
12068 }
12069 }
12070 { print }
12071 _ACAWK
12072 _ACEOF
12073 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12074 as_fn_error "could not setup config headers machinery" "$LINENO" 5
12075 fi # test -n "$CONFIG_HEADERS"
12076
12077
12078 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12079 shift
12080 for ac_tag
12081 do
12082 case $ac_tag in
12083 :[FHLC]) ac_mode=$ac_tag; continue;;
12084 esac
12085 case $ac_mode$ac_tag in
12086 :[FHL]*:*);;
12087 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12088 :[FH]-) ac_tag=-:-;;
12089 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12090 esac
12091 ac_save_IFS=$IFS
12092 IFS=:
12093 set x $ac_tag
12094 IFS=$ac_save_IFS
12095 shift
12096 ac_file=$1
12097 shift
12098
12099 case $ac_mode in
12100 :L) ac_source=$1;;
12101 :[FH])
12102 ac_file_inputs=
12103 for ac_f
12104 do
12105 case $ac_f in
12106 -) ac_f="$tmp/stdin";;
12107 *) # Look for the file first in the build tree, then in the source tree
12108 # (if the path is not absolute). The absolute path cannot be DOS-style,
12109 # because $ac_f cannot contain `:'.
12110 test -f "$ac_f" ||
12111 case $ac_f in
12112 [\\/$]*) false;;
12113 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12114 esac ||
12115 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12116 esac
12117 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12118 as_fn_append ac_file_inputs " '$ac_f'"
12119 done
12120
12121 # Let's still pretend it is `configure' which instantiates (i.e., don't
12122 # use $as_me), people would be surprised to read:
12123 # /* config.h. Generated by config.status. */
12124 configure_input='Generated from '`
12125 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12126 `' by configure.'
12127 if test x"$ac_file" != x-; then
12128 configure_input="$ac_file. $configure_input"
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12130 $as_echo "$as_me: creating $ac_file" >&6;}
12131 fi
12132 # Neutralize special characters interpreted by sed in replacement strings.
12133 case $configure_input in #(
12134 *\&* | *\|* | *\\* )
12135 ac_sed_conf_input=`$as_echo "$configure_input" |
12136 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12137 *) ac_sed_conf_input=$configure_input;;
12138 esac
12139
12140 case $ac_tag in
12141 *:-:* | *:-) cat >"$tmp/stdin" \
12142 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12143 esac
12144 ;;
12145 esac
12146
12147 ac_dir=`$as_dirname -- "$ac_file" ||
12148 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12149 X"$ac_file" : 'X\(//\)[^/]' \| \
12150 X"$ac_file" : 'X\(//\)$' \| \
12151 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12152 $as_echo X"$ac_file" |
12153 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12154 s//\1/
12155 q
12156 }
12157 /^X\(\/\/\)[^/].*/{
12158 s//\1/
12159 q
12160 }
12161 /^X\(\/\/\)$/{
12162 s//\1/
12163 q
12164 }
12165 /^X\(\/\).*/{
12166 s//\1/
12167 q
12168 }
12169 s/.*/./; q'`
12170 as_dir="$ac_dir"; as_fn_mkdir_p
12171 ac_builddir=.
12172
12173 case "$ac_dir" in
12174 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12175 *)
12176 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12177 # A ".." for each directory in $ac_dir_suffix.
12178 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12179 case $ac_top_builddir_sub in
12180 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12181 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12182 esac ;;
12183 esac
12184 ac_abs_top_builddir=$ac_pwd
12185 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12186 # for backward compatibility:
12187 ac_top_builddir=$ac_top_build_prefix
12188
12189 case $srcdir in
12190 .) # We are building in place.
12191 ac_srcdir=.
12192 ac_top_srcdir=$ac_top_builddir_sub
12193 ac_abs_top_srcdir=$ac_pwd ;;
12194 [\\/]* | ?:[\\/]* ) # Absolute name.
12195 ac_srcdir=$srcdir$ac_dir_suffix;
12196 ac_top_srcdir=$srcdir
12197 ac_abs_top_srcdir=$srcdir ;;
12198 *) # Relative name.
12199 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12200 ac_top_srcdir=$ac_top_build_prefix$srcdir
12201 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12202 esac
12203 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12204
12205
12206 case $ac_mode in
12207 :F)
12208 #
12209 # CONFIG_FILE
12210 #
12211
12212 case $INSTALL in
12213 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12214 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12215 esac
12216 ac_MKDIR_P=$MKDIR_P
12217 case $MKDIR_P in
12218 [\\/$]* | ?:[\\/]* ) ;;
12219 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12220 esac
12221 _ACEOF
12222
12223 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12224 # If the template does not know about datarootdir, expand it.
12225 # FIXME: This hack should be removed a few years after 2.60.
12226 ac_datarootdir_hack=; ac_datarootdir_seen=
12227 ac_sed_dataroot='
12228 /datarootdir/ {
12229 p
12230 q
12231 }
12232 /@datadir@/p
12233 /@docdir@/p
12234 /@infodir@/p
12235 /@localedir@/p
12236 /@mandir@/p'
12237 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12238 *datarootdir*) ac_datarootdir_seen=yes;;
12239 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12241 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12242 _ACEOF
12243 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12244 ac_datarootdir_hack='
12245 s&@datadir@&$datadir&g
12246 s&@docdir@&$docdir&g
12247 s&@infodir@&$infodir&g
12248 s&@localedir@&$localedir&g
12249 s&@mandir@&$mandir&g
12250 s&\\\${datarootdir}&$datarootdir&g' ;;
12251 esac
12252 _ACEOF
12253
12254 # Neutralize VPATH when `$srcdir' = `.'.
12255 # Shell code in configure.ac might set extrasub.
12256 # FIXME: do we really want to maintain this feature?
12257 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12258 ac_sed_extra="$ac_vpsub
12259 $extrasub
12260 _ACEOF
12261 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12262 :t
12263 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12264 s|@configure_input@|$ac_sed_conf_input|;t t
12265 s&@top_builddir@&$ac_top_builddir_sub&;t t
12266 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12267 s&@srcdir@&$ac_srcdir&;t t
12268 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12269 s&@top_srcdir@&$ac_top_srcdir&;t t
12270 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12271 s&@builddir@&$ac_builddir&;t t
12272 s&@abs_builddir@&$ac_abs_builddir&;t t
12273 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12274 s&@INSTALL@&$ac_INSTALL&;t t
12275 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12276 $ac_datarootdir_hack
12277 "
12278 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12279 || as_fn_error "could not create $ac_file" "$LINENO" 5
12280
12281 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12282 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12283 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12285 which seems to be undefined. Please make sure it is defined." >&5
12286 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12287 which seems to be undefined. Please make sure it is defined." >&2;}
12288
12289 rm -f "$tmp/stdin"
12290 case $ac_file in
12291 -) cat "$tmp/out" && rm -f "$tmp/out";;
12292 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12293 esac \
12294 || as_fn_error "could not create $ac_file" "$LINENO" 5
12295 ;;
12296 :H)
12297 #
12298 # CONFIG_HEADER
12299 #
12300 if test x"$ac_file" != x-; then
12301 {
12302 $as_echo "/* $configure_input */" \
12303 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12304 } >"$tmp/config.h" \
12305 || as_fn_error "could not create $ac_file" "$LINENO" 5
12306 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12308 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12309 else
12310 rm -f "$ac_file"
12311 mv "$tmp/config.h" "$ac_file" \
12312 || as_fn_error "could not create $ac_file" "$LINENO" 5
12313 fi
12314 else
12315 $as_echo "/* $configure_input */" \
12316 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12317 || as_fn_error "could not create -" "$LINENO" 5
12318 fi
12319 # Compute "$ac_file"'s index in $config_headers.
12320 _am_arg="$ac_file"
12321 _am_stamp_count=1
12322 for _am_header in $config_headers :; do
12323 case $_am_header in
12324 $_am_arg | $_am_arg:* )
12325 break ;;
12326 * )
12327 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12328 esac
12329 done
12330 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12331 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12332 X"$_am_arg" : 'X\(//\)[^/]' \| \
12333 X"$_am_arg" : 'X\(//\)$' \| \
12334 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12335 $as_echo X"$_am_arg" |
12336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12337 s//\1/
12338 q
12339 }
12340 /^X\(\/\/\)[^/].*/{
12341 s//\1/
12342 q
12343 }
12344 /^X\(\/\/\)$/{
12345 s//\1/
12346 q
12347 }
12348 /^X\(\/\).*/{
12349 s//\1/
12350 q
12351 }
12352 s/.*/./; q'`/stamp-h$_am_stamp_count
12353 ;;
12354
12355 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12356 $as_echo "$as_me: executing $ac_file commands" >&6;}
12357 ;;
12358 esac
12359
12360
12361 case $ac_file$ac_mode in
12362 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12363 # Autoconf 2.62 quotes --file arguments for eval, but not when files
12364 # are listed without --file. Let's play safe and only enable the eval
12365 # if we detect the quoting.
12366 case $CONFIG_FILES in
12367 *\'*) eval set x "$CONFIG_FILES" ;;
12368 *) set x $CONFIG_FILES ;;
12369 esac
12370 shift
12371 for mf
12372 do
12373 # Strip MF so we end up with the name of the file.
12374 mf=`echo "$mf" | sed -e 's/:.*$//'`
12375 # Check whether this is an Automake generated Makefile or not.
12376 # We used to match only the files named `Makefile.in', but
12377 # some people rename them; so instead we look at the file content.
12378 # Grep'ing the first line is not enough: some people post-process
12379 # each Makefile.in and add a new line on top of each file to say so.
12380 # Grep'ing the whole file is not good either: AIX grep has a line
12381 # limit of 2048, but all sed's we know have understand at least 4000.
12382 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12383 dirpart=`$as_dirname -- "$mf" ||
12384 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12385 X"$mf" : 'X\(//\)[^/]' \| \
12386 X"$mf" : 'X\(//\)$' \| \
12387 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12388 $as_echo X"$mf" |
12389 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12390 s//\1/
12391 q
12392 }
12393 /^X\(\/\/\)[^/].*/{
12394 s//\1/
12395 q
12396 }
12397 /^X\(\/\/\)$/{
12398 s//\1/
12399 q
12400 }
12401 /^X\(\/\).*/{
12402 s//\1/
12403 q
12404 }
12405 s/.*/./; q'`
12406 else
12407 continue
12408 fi
12409 # Extract the definition of DEPDIR, am__include, and am__quote
12410 # from the Makefile without running `make'.
12411 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12412 test -z "$DEPDIR" && continue
12413 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12414 test -z "am__include" && continue
12415 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12416 # When using ansi2knr, U may be empty or an underscore; expand it
12417 U=`sed -n 's/^U = //p' < "$mf"`
12418 # Find all dependency output files, they are included files with
12419 # $(DEPDIR) in their names. We invoke sed twice because it is the
12420 # simplest approach to changing $(DEPDIR) to its actual value in the
12421 # expansion.
12422 for file in `sed -n "
12423 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12424 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12425 # Make sure the directory exists.
12426 test -f "$dirpart/$file" && continue
12427 fdir=`$as_dirname -- "$file" ||
12428 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12429 X"$file" : 'X\(//\)[^/]' \| \
12430 X"$file" : 'X\(//\)$' \| \
12431 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12432 $as_echo X"$file" |
12433 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12434 s//\1/
12435 q
12436 }
12437 /^X\(\/\/\)[^/].*/{
12438 s//\1/
12439 q
12440 }
12441 /^X\(\/\/\)$/{
12442 s//\1/
12443 q
12444 }
12445 /^X\(\/\).*/{
12446 s//\1/
12447 q
12448 }
12449 s/.*/./; q'`
12450 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12451 # echo "creating $dirpart/$file"
12452 echo '# dummy' > "$dirpart/$file"
12453 done
12454 done
12455 }
12456 ;;
12457 "libtool":C)
12458
12459 # See if we are running on zsh, and set the options which allow our
12460 # commands through without removal of \ escapes.
12461 if test -n "${ZSH_VERSION+set}" ; then
12462 setopt NO_GLOB_SUBST
12463 fi
12464
12465 cfgfile="${ofile}T"
12466 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12467 $RM "$cfgfile"
12468
12469 cat <<_LT_EOF >> "$cfgfile"
12470 #! $SHELL
12471
12472 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12473 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12474 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12475 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12476 #
12477 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12478 # 2006, 2007, 2008 Free Software Foundation, Inc.
12479 # Written by Gordon Matzigkeit, 1996
12480 #
12481 # This file is part of GNU Libtool.
12482 #
12483 # GNU Libtool is free software; you can redistribute it and/or
12484 # modify it under the terms of the GNU General Public License as
12485 # published by the Free Software Foundation; either version 2 of
12486 # the License, or (at your option) any later version.
12487 #
12488 # As a special exception to the GNU General Public License,
12489 # if you distribute this file as part of a program or library that
12490 # is built using GNU Libtool, you may include this file under the
12491 # same distribution terms that you use for the rest of that program.
12492 #
12493 # GNU Libtool is distributed in the hope that it will be useful,
12494 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12495 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12496 # GNU General Public License for more details.
12497 #
12498 # You should have received a copy of the GNU General Public License
12499 # along with GNU Libtool; see the file COPYING. If not, a copy
12500 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12501 # obtained by writing to the Free Software Foundation, Inc.,
12502 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12503
12504
12505 # The names of the tagged configurations supported by this script.
12506 available_tags=""
12507
12508 # ### BEGIN LIBTOOL CONFIG
12509
12510 # Assembler program.
12511 AS=$AS
12512
12513 # DLL creation program.
12514 DLLTOOL=$DLLTOOL
12515
12516 # Object dumper program.
12517 OBJDUMP=$OBJDUMP
12518
12519 # Which release of libtool.m4 was used?
12520 macro_version=$macro_version
12521 macro_revision=$macro_revision
12522
12523 # Whether or not to build shared libraries.
12524 build_libtool_libs=$enable_shared
12525
12526 # Whether or not to build static libraries.
12527 build_old_libs=$enable_static
12528
12529 # What type of objects to build.
12530 pic_mode=$pic_mode
12531
12532 # Whether or not to optimize for fast installation.
12533 fast_install=$enable_fast_install
12534
12535 # The host system.
12536 host_alias=$host_alias
12537 host=$host
12538 host_os=$host_os
12539
12540 # The build system.
12541 build_alias=$build_alias
12542 build=$build
12543 build_os=$build_os
12544
12545 # A sed program that does not truncate output.
12546 SED=$lt_SED
12547
12548 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12549 Xsed="\$SED -e 1s/^X//"
12550
12551 # A grep program that handles long lines.
12552 GREP=$lt_GREP
12553
12554 # An ERE matcher.
12555 EGREP=$lt_EGREP
12556
12557 # A literal string matcher.
12558 FGREP=$lt_FGREP
12559
12560 # A BSD- or MS-compatible name lister.
12561 NM=$lt_NM
12562
12563 # Whether we need soft or hard links.
12564 LN_S=$lt_LN_S
12565
12566 # What is the maximum length of a command?
12567 max_cmd_len=$max_cmd_len
12568
12569 # Object file suffix (normally "o").
12570 objext=$ac_objext
12571
12572 # Executable file suffix (normally "").
12573 exeext=$exeext
12574
12575 # whether the shell understands "unset".
12576 lt_unset=$lt_unset
12577
12578 # turn spaces into newlines.
12579 SP2NL=$lt_lt_SP2NL
12580
12581 # turn newlines into spaces.
12582 NL2SP=$lt_lt_NL2SP
12583
12584 # How to create reloadable object files.
12585 reload_flag=$lt_reload_flag
12586 reload_cmds=$lt_reload_cmds
12587
12588 # Method to check whether dependent libraries are shared objects.
12589 deplibs_check_method=$lt_deplibs_check_method
12590
12591 # Command to use when deplibs_check_method == "file_magic".
12592 file_magic_cmd=$lt_file_magic_cmd
12593
12594 # The archiver.
12595 AR=$lt_AR
12596 AR_FLAGS=$lt_AR_FLAGS
12597
12598 # A symbol stripping program.
12599 STRIP=$lt_STRIP
12600
12601 # Commands used to install an old-style archive.
12602 RANLIB=$lt_RANLIB
12603 old_postinstall_cmds=$lt_old_postinstall_cmds
12604 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12605
12606 # A C compiler.
12607 LTCC=$lt_CC
12608
12609 # LTCC compiler flags.
12610 LTCFLAGS=$lt_CFLAGS
12611
12612 # Take the output of nm and produce a listing of raw symbols and C names.
12613 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12614
12615 # Transform the output of nm in a proper C declaration.
12616 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12617
12618 # Transform the output of nm in a C name address pair.
12619 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12620
12621 # Transform the output of nm in a C name address pair when lib prefix is needed.
12622 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
12623
12624 # The name of the directory that contains temporary libtool files.
12625 objdir=$objdir
12626
12627 # Shell to use when invoking shell scripts.
12628 SHELL=$lt_SHELL
12629
12630 # An echo program that does not interpret backslashes.
12631 ECHO=$lt_ECHO
12632
12633 # Used to examine libraries when file_magic_cmd begins with "file".
12634 MAGIC_CMD=$MAGIC_CMD
12635
12636 # Must we lock files when doing compilation?
12637 need_locks=$lt_need_locks
12638
12639 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
12640 DSYMUTIL=$lt_DSYMUTIL
12641
12642 # Tool to change global to local symbols on Mac OS X.
12643 NMEDIT=$lt_NMEDIT
12644
12645 # Tool to manipulate fat objects and archives on Mac OS X.
12646 LIPO=$lt_LIPO
12647
12648 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
12649 OTOOL=$lt_OTOOL
12650
12651 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
12652 OTOOL64=$lt_OTOOL64
12653
12654 # Old archive suffix (normally "a").
12655 libext=$libext
12656
12657 # Shared library suffix (normally ".so").
12658 shrext_cmds=$lt_shrext_cmds
12659
12660 # The commands to extract the exported symbol list from a shared archive.
12661 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12662
12663 # Variables whose values should be saved in libtool wrapper scripts and
12664 # restored at link time.
12665 variables_saved_for_relink=$lt_variables_saved_for_relink
12666
12667 # Do we need the "lib" prefix for modules?
12668 need_lib_prefix=$need_lib_prefix
12669
12670 # Do we need a version for libraries?
12671 need_version=$need_version
12672
12673 # Library versioning type.
12674 version_type=$version_type
12675
12676 # Shared library runtime path variable.
12677 runpath_var=$runpath_var
12678
12679 # Shared library path variable.
12680 shlibpath_var=$shlibpath_var
12681
12682 # Is shlibpath searched before the hard-coded library search path?
12683 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12684
12685 # Format of library name prefix.
12686 libname_spec=$lt_libname_spec
12687
12688 # List of archive names. First name is the real one, the rest are links.
12689 # The last name is the one that the linker finds with -lNAME
12690 library_names_spec=$lt_library_names_spec
12691
12692 # The coded name of the library, if different from the real name.
12693 soname_spec=$lt_soname_spec
12694
12695 # Command to use after installation of a shared archive.
12696 postinstall_cmds=$lt_postinstall_cmds
12697
12698 # Command to use after uninstallation of a shared archive.
12699 postuninstall_cmds=$lt_postuninstall_cmds
12700
12701 # Commands used to finish a libtool library installation in a directory.
12702 finish_cmds=$lt_finish_cmds
12703
12704 # As "finish_cmds", except a single script fragment to be evaled but
12705 # not shown.
12706 finish_eval=$lt_finish_eval
12707
12708 # Whether we should hardcode library paths into libraries.
12709 hardcode_into_libs=$hardcode_into_libs
12710
12711 # Compile-time system search path for libraries.
12712 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12713
12714 # Run-time system search path for libraries.
12715 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12716
12717 # Whether dlopen is supported.
12718 dlopen_support=$enable_dlopen
12719
12720 # Whether dlopen of programs is supported.
12721 dlopen_self=$enable_dlopen_self
12722
12723 # Whether dlopen of statically linked programs is supported.
12724 dlopen_self_static=$enable_dlopen_self_static
12725
12726 # Commands to strip libraries.
12727 old_striplib=$lt_old_striplib
12728 striplib=$lt_striplib
12729
12730
12731 # The linker used to build libraries.
12732 LD=$lt_LD
12733
12734 # Commands used to build an old-style archive.
12735 old_archive_cmds=$lt_old_archive_cmds
12736
12737 # A language specific compiler.
12738 CC=$lt_compiler
12739
12740 # Is the compiler the GNU compiler?
12741 with_gcc=$GCC
12742
12743 # Compiler flag to turn off builtin functions.
12744 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12745
12746 # How to pass a linker flag through the compiler.
12747 wl=$lt_lt_prog_compiler_wl
12748
12749 # Additional compiler flags for building library objects.
12750 pic_flag=$lt_lt_prog_compiler_pic
12751
12752 # Compiler flag to prevent dynamic linking.
12753 link_static_flag=$lt_lt_prog_compiler_static
12754
12755 # Does compiler simultaneously support -c and -o options?
12756 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12757
12758 # Whether or not to add -lc for building shared libraries.
12759 build_libtool_need_lc=$archive_cmds_need_lc
12760
12761 # Whether or not to disallow shared libs when runtime libs are static.
12762 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12763
12764 # Compiler flag to allow reflexive dlopens.
12765 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12766
12767 # Compiler flag to generate shared objects directly from archives.
12768 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12769
12770 # Whether the compiler copes with passing no objects directly.
12771 compiler_needs_object=$lt_compiler_needs_object
12772
12773 # Create an old-style archive from a shared archive.
12774 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12775
12776 # Create a temporary old-style archive to link instead of a shared archive.
12777 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12778
12779 # Commands used to build a shared archive.
12780 archive_cmds=$lt_archive_cmds
12781 archive_expsym_cmds=$lt_archive_expsym_cmds
12782
12783 # Commands used to build a loadable module if different from building
12784 # a shared archive.
12785 module_cmds=$lt_module_cmds
12786 module_expsym_cmds=$lt_module_expsym_cmds
12787
12788 # Whether we are building with GNU ld or not.
12789 with_gnu_ld=$lt_with_gnu_ld
12790
12791 # Flag that allows shared libraries with undefined symbols to be built.
12792 allow_undefined_flag=$lt_allow_undefined_flag
12793
12794 # Flag that enforces no undefined symbols.
12795 no_undefined_flag=$lt_no_undefined_flag
12796
12797 # Flag to hardcode \$libdir into a binary during linking.
12798 # This must work even if \$libdir does not exist
12799 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12800
12801 # If ld is used when linking, flag to hardcode \$libdir into a binary
12802 # during linking. This must work even if \$libdir does not exist.
12803 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12804
12805 # Whether we need a single "-rpath" flag with a separated argument.
12806 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12807
12808 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12809 # DIR into the resulting binary.
12810 hardcode_direct=$hardcode_direct
12811
12812 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12813 # DIR into the resulting binary and the resulting library dependency is
12814 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
12815 # library is relocated.
12816 hardcode_direct_absolute=$hardcode_direct_absolute
12817
12818 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
12819 # into the resulting binary.
12820 hardcode_minus_L=$hardcode_minus_L
12821
12822 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
12823 # into the resulting binary.
12824 hardcode_shlibpath_var=$hardcode_shlibpath_var
12825
12826 # Set to "yes" if building a shared library automatically hardcodes DIR
12827 # into the library and all subsequent libraries and executables linked
12828 # against it.
12829 hardcode_automatic=$hardcode_automatic
12830
12831 # Set to yes if linker adds runtime paths of dependent libraries
12832 # to runtime path list.
12833 inherit_rpath=$inherit_rpath
12834
12835 # Whether libtool must link a program against all its dependency libraries.
12836 link_all_deplibs=$link_all_deplibs
12837
12838 # Fix the shell variable \$srcfile for the compiler.
12839 fix_srcfile_path=$lt_fix_srcfile_path
12840
12841 # Set to "yes" if exported symbols are required.
12842 always_export_symbols=$always_export_symbols
12843
12844 # The commands to list exported symbols.
12845 export_symbols_cmds=$lt_export_symbols_cmds
12846
12847 # Symbols that should not be listed in the preloaded symbols.
12848 exclude_expsyms=$lt_exclude_expsyms
12849
12850 # Symbols that must always be exported.
12851 include_expsyms=$lt_include_expsyms
12852
12853 # Commands necessary for linking programs (against libraries) with templates.
12854 prelink_cmds=$lt_prelink_cmds
12855
12856 # Specify filename containing input files.
12857 file_list_spec=$lt_file_list_spec
12858
12859 # How to hardcode a shared library path into an executable.
12860 hardcode_action=$hardcode_action
12861
12862 # ### END LIBTOOL CONFIG
12863
12864 _LT_EOF
12865
12866 case $host_os in
12867 aix3*)
12868 cat <<\_LT_EOF >> "$cfgfile"
12869 # AIX sometimes has problems with the GCC collect2 program. For some
12870 # reason, if we set the COLLECT_NAMES environment variable, the problems
12871 # vanish in a puff of smoke.
12872 if test "X${COLLECT_NAMES+set}" != Xset; then
12873 COLLECT_NAMES=
12874 export COLLECT_NAMES
12875 fi
12876 _LT_EOF
12877 ;;
12878 esac
12879
12880
12881 ltmain="$ac_aux_dir/ltmain.sh"
12882
12883
12884 # We use sed instead of cat because bash on DJGPP gets confused if
12885 # if finds mixed CR/LF and LF-only lines. Since sed operates in
12886 # text mode, it properly converts lines to CR/LF. This bash problem
12887 # is reportedly fixed, but why not run on old versions too?
12888 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
12889 || (rm -f "$cfgfile"; exit 1)
12890
12891 case $xsi_shell in
12892 yes)
12893 cat << \_LT_EOF >> "$cfgfile"
12894
12895 # func_dirname file append nondir_replacement
12896 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
12897 # otherwise set result to NONDIR_REPLACEMENT.
12898 func_dirname ()
12899 {
12900 case ${1} in
12901 */*) func_dirname_result="${1%/*}${2}" ;;
12902 * ) func_dirname_result="${3}" ;;
12903 esac
12904 }
12905
12906 # func_basename file
12907 func_basename ()
12908 {
12909 func_basename_result="${1##*/}"
12910 }
12911
12912 # func_dirname_and_basename file append nondir_replacement
12913 # perform func_basename and func_dirname in a single function
12914 # call:
12915 # dirname: Compute the dirname of FILE. If nonempty,
12916 # add APPEND to the result, otherwise set result
12917 # to NONDIR_REPLACEMENT.
12918 # value returned in "$func_dirname_result"
12919 # basename: Compute filename of FILE.
12920 # value retuned in "$func_basename_result"
12921 # Implementation must be kept synchronized with func_dirname
12922 # and func_basename. For efficiency, we do not delegate to
12923 # those functions but instead duplicate the functionality here.
12924 func_dirname_and_basename ()
12925 {
12926 case ${1} in
12927 */*) func_dirname_result="${1%/*}${2}" ;;
12928 * ) func_dirname_result="${3}" ;;
12929 esac
12930 func_basename_result="${1##*/}"
12931 }
12932
12933 # func_stripname prefix suffix name
12934 # strip PREFIX and SUFFIX off of NAME.
12935 # PREFIX and SUFFIX must not contain globbing or regex special
12936 # characters, hashes, percent signs, but SUFFIX may contain a leading
12937 # dot (in which case that matches only a dot).
12938 func_stripname ()
12939 {
12940 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
12941 # positional parameters, so assign one to ordinary parameter first.
12942 func_stripname_result=${3}
12943 func_stripname_result=${func_stripname_result#"${1}"}
12944 func_stripname_result=${func_stripname_result%"${2}"}
12945 }
12946
12947 # func_opt_split
12948 func_opt_split ()
12949 {
12950 func_opt_split_opt=${1%%=*}
12951 func_opt_split_arg=${1#*=}
12952 }
12953
12954 # func_lo2o object
12955 func_lo2o ()
12956 {
12957 case ${1} in
12958 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
12959 *) func_lo2o_result=${1} ;;
12960 esac
12961 }
12962
12963 # func_xform libobj-or-source
12964 func_xform ()
12965 {
12966 func_xform_result=${1%.*}.lo
12967 }
12968
12969 # func_arith arithmetic-term...
12970 func_arith ()
12971 {
12972 func_arith_result=$(( $* ))
12973 }
12974
12975 # func_len string
12976 # STRING may not start with a hyphen.
12977 func_len ()
12978 {
12979 func_len_result=${#1}
12980 }
12981
12982 _LT_EOF
12983 ;;
12984 *) # Bourne compatible functions.
12985 cat << \_LT_EOF >> "$cfgfile"
12986
12987 # func_dirname file append nondir_replacement
12988 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
12989 # otherwise set result to NONDIR_REPLACEMENT.
12990 func_dirname ()
12991 {
12992 # Extract subdirectory from the argument.
12993 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
12994 if test "X$func_dirname_result" = "X${1}"; then
12995 func_dirname_result="${3}"
12996 else
12997 func_dirname_result="$func_dirname_result${2}"
12998 fi
12999 }
13000
13001 # func_basename file
13002 func_basename ()
13003 {
13004 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13005 }
13006
13007
13008 # func_stripname prefix suffix name
13009 # strip PREFIX and SUFFIX off of NAME.
13010 # PREFIX and SUFFIX must not contain globbing or regex special
13011 # characters, hashes, percent signs, but SUFFIX may contain a leading
13012 # dot (in which case that matches only a dot).
13013 # func_strip_suffix prefix name
13014 func_stripname ()
13015 {
13016 case ${2} in
13017 .*) func_stripname_result=`$ECHO "X${3}" \
13018 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13019 *) func_stripname_result=`$ECHO "X${3}" \
13020 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13021 esac
13022 }
13023
13024 # sed scripts:
13025 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13026 my_sed_long_arg='1s/^-[^=]*=//'
13027
13028 # func_opt_split
13029 func_opt_split ()
13030 {
13031 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13032 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13033 }
13034
13035 # func_lo2o object
13036 func_lo2o ()
13037 {
13038 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13039 }
13040
13041 # func_xform libobj-or-source
13042 func_xform ()
13043 {
13044 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13045 }
13046
13047 # func_arith arithmetic-term...
13048 func_arith ()
13049 {
13050 func_arith_result=`expr "$@"`
13051 }
13052
13053 # func_len string
13054 # STRING may not start with a hyphen.
13055 func_len ()
13056 {
13057 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13058 }
13059
13060 _LT_EOF
13061 esac
13062
13063 case $lt_shell_append in
13064 yes)
13065 cat << \_LT_EOF >> "$cfgfile"
13066
13067 # func_append var value
13068 # Append VALUE to the end of shell variable VAR.
13069 func_append ()
13070 {
13071 eval "$1+=\$2"
13072 }
13073 _LT_EOF
13074 ;;
13075 *)
13076 cat << \_LT_EOF >> "$cfgfile"
13077
13078 # func_append var value
13079 # Append VALUE to the end of shell variable VAR.
13080 func_append ()
13081 {
13082 eval "$1=\$$1\$2"
13083 }
13084
13085 _LT_EOF
13086 ;;
13087 esac
13088
13089
13090 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13091 || (rm -f "$cfgfile"; exit 1)
13092
13093 mv -f "$cfgfile" "$ofile" ||
13094 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13095 chmod +x "$ofile"
13096
13097 ;;
13098
13099 esac
13100 done # for ac_tag
13101
13102
13103 as_fn_exit 0
13104 _ACEOF
13105 ac_clean_files=$ac_clean_files_save
13106
13107 test $ac_write_fail = 0 ||
13108 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
13109
13110
13111 # configure is writing to config.log, and then calls config.status.
13112 # config.status does its own redirection, appending to config.log.
13113 # Unfortunately, on DOS this fails, as config.log is still kept open
13114 # by configure, so config.status won't be able to write to it; its
13115 # output is simply discarded. So we exec the FD to /dev/null,
13116 # effectively closing config.log, so it can be properly (re)opened and
13117 # appended to by config.status. When coming back to configure, we
13118 # need to make the FD available again.
13119 if test "$no_create" != yes; then
13120 ac_cs_success=:
13121 ac_config_status_args=
13122 test "$silent" = yes &&
13123 ac_config_status_args="$ac_config_status_args --quiet"
13124 exec 5>/dev/null
13125 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13126 exec 5>>config.log
13127 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13128 # would make configure fail if this is the last instruction.
13129 $ac_cs_success || as_fn_exit $?
13130 fi
13131 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13133 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13134 fi
13135
2828 AC_ARG_ENABLE([mpcchap], [AS_HELP_STRING([--enable-mpcchap], [enable building mpcchap])])
2929 AM_CONDITIONAL([MPC_CHAP], [test "x$enable_mpcchap" = xyes])
3030
31 AM_CONDITIONAL([HAVE_VISIBILITY], true)
3231
32 CHECK_VISIBILITY
3333
3434 AC_CONFIG_FILES([
3535 Makefile
(No changes)
(No changes)
(No changes)
0 INSTALL(DIRECTORY mpc DESTINATION include)
(No changes)
+0
-482
include/Makefile.in less more
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
6 # This Makefile.in is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 # PARTICULAR PURPOSE.
14
15 @SET_MAKE@
16
17 VPATH = @srcdir@
18 pkgdatadir = $(datadir)/@PACKAGE@
19 pkgincludedir = $(includedir)/@PACKAGE@
20 pkglibdir = $(libdir)/@PACKAGE@
21 pkglibexecdir = $(libexecdir)/@PACKAGE@
22 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
23 install_sh_DATA = $(install_sh) -c -m 644
24 install_sh_PROGRAM = $(install_sh) -c
25 install_sh_SCRIPT = $(install_sh) -c
26 INSTALL_HEADER = $(INSTALL_DATA)
27 transform = $(program_transform_name)
28 NORMAL_INSTALL = :
29 PRE_INSTALL = :
30 POST_INSTALL = :
31 NORMAL_UNINSTALL = :
32 PRE_UNINSTALL = :
33 POST_UNINSTALL = :
34 build_triplet = @build@
35 host_triplet = @host@
36 subdir = include
37 DIST_COMMON = $(nobase_include_HEADERS) $(srcdir)/Makefile.am \
38 $(srcdir)/Makefile.in $(srcdir)/config.h.in
39 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
40 am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
42 $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
43 $(top_srcdir)/configure.in
44 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
45 $(ACLOCAL_M4)
46 mkinstalldirs = $(install_sh) -d
47 CONFIG_HEADER = config.h
48 CONFIG_CLEAN_FILES =
49 CONFIG_CLEAN_VPATH_FILES =
50 SOURCES =
51 DIST_SOURCES =
52 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
53 am__vpath_adj = case $$p in \
54 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
55 *) f=$$p;; \
56 esac;
57 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
58 am__install_max = 40
59 am__nobase_strip_setup = \
60 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
61 am__nobase_strip = \
62 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
63 am__nobase_list = $(am__nobase_strip_setup); \
64 for p in $$list; do echo "$$p $$p"; done | \
65 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
66 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
67 if (++n[$$2] == $(am__install_max)) \
68 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
69 END { for (dir in files) print dir, files[dir] }'
70 am__base_list = \
71 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
72 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
73 am__installdirs = "$(DESTDIR)$(includedir)"
74 HEADERS = $(nobase_include_HEADERS)
75 ETAGS = etags
76 CTAGS = ctags
77 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
78 ACLOCAL = @ACLOCAL@
79 AMTAR = @AMTAR@
80 AR = @AR@
81 AS = @AS@
82 AUTOCONF = @AUTOCONF@
83 AUTOHEADER = @AUTOHEADER@
84 AUTOMAKE = @AUTOMAKE@
85 AWK = @AWK@
86 CC = @CC@
87 CCDEPMODE = @CCDEPMODE@
88 CFLAGS = @CFLAGS@
89 CPP = @CPP@
90 CPPFLAGS = @CPPFLAGS@
91 CYGPATH_W = @CYGPATH_W@
92 DEFS = @DEFS@
93 DEPDIR = @DEPDIR@
94 DLLTOOL = @DLLTOOL@
95 DSYMUTIL = @DSYMUTIL@
96 DUMPBIN = @DUMPBIN@
97 ECHO_C = @ECHO_C@
98 ECHO_N = @ECHO_N@
99 ECHO_T = @ECHO_T@
100 EGREP = @EGREP@
101 EXEEXT = @EXEEXT@
102 EXTRALIBS = @EXTRALIBS@
103 FGREP = @FGREP@
104 GREP = @GREP@
105 INSTALL = @INSTALL@
106 INSTALL_DATA = @INSTALL_DATA@
107 INSTALL_PROGRAM = @INSTALL_PROGRAM@
108 INSTALL_SCRIPT = @INSTALL_SCRIPT@
109 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
110 LD = @LD@
111 LDFLAGS = @LDFLAGS@
112 LIBOBJS = @LIBOBJS@
113 LIBS = @LIBS@
114 LIBTOOL = @LIBTOOL@
115 LIPO = @LIPO@
116 LN_S = @LN_S@
117 LTLIBOBJS = @LTLIBOBJS@
118 MAKEINFO = @MAKEINFO@
119 MKDIR_P = @MKDIR_P@
120 NM = @NM@
121 NMEDIT = @NMEDIT@
122 OBJDUMP = @OBJDUMP@
123 OBJEXT = @OBJEXT@
124 OTOOL = @OTOOL@
125 OTOOL64 = @OTOOL64@
126 PACKAGE = @PACKAGE@
127 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
128 PACKAGE_NAME = @PACKAGE_NAME@
129 PACKAGE_STRING = @PACKAGE_STRING@
130 PACKAGE_TARNAME = @PACKAGE_TARNAME@
131 PACKAGE_URL = @PACKAGE_URL@
132 PACKAGE_VERSION = @PACKAGE_VERSION@
133 PATH_SEPARATOR = @PATH_SEPARATOR@
134 RANLIB = @RANLIB@
135 SED = @SED@
136 SET_MAKE = @SET_MAKE@
137 SHELL = @SHELL@
138 STRIP = @STRIP@
139 VERSION = @VERSION@
140 abs_builddir = @abs_builddir@
141 abs_srcdir = @abs_srcdir@
142 abs_top_builddir = @abs_top_builddir@
143 abs_top_srcdir = @abs_top_srcdir@
144 ac_ct_CC = @ac_ct_CC@
145 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
146 am__include = @am__include@
147 am__leading_dot = @am__leading_dot@
148 am__quote = @am__quote@
149 am__tar = @am__tar@
150 am__untar = @am__untar@
151 bindir = @bindir@
152 build = @build@
153 build_alias = @build_alias@
154 build_cpu = @build_cpu@
155 build_os = @build_os@
156 build_vendor = @build_vendor@
157 builddir = @builddir@
158 datadir = @datadir@
159 datarootdir = @datarootdir@
160 docdir = @docdir@
161 dvidir = @dvidir@
162 exec_prefix = @exec_prefix@
163 host = @host@
164 host_alias = @host_alias@
165 host_cpu = @host_cpu@
166 host_os = @host_os@
167 host_vendor = @host_vendor@
168 htmldir = @htmldir@
169 includedir = @includedir@
170 infodir = @infodir@
171 install_sh = @install_sh@
172 libdir = @libdir@
173 libexecdir = @libexecdir@
174 localedir = @localedir@
175 localstatedir = @localstatedir@
176 lt_ECHO = @lt_ECHO@
177 mandir = @mandir@
178 mkdir_p = @mkdir_p@
179 oldincludedir = @oldincludedir@
180 pdfdir = @pdfdir@
181 prefix = @prefix@
182 program_transform_name = @program_transform_name@
183 psdir = @psdir@
184 sbindir = @sbindir@
185 sharedstatedir = @sharedstatedir@
186 srcdir = @srcdir@
187 sysconfdir = @sysconfdir@
188 target_alias = @target_alias@
189 top_build_prefix = @top_build_prefix@
190 top_builddir = @top_builddir@
191 top_srcdir = @top_srcdir@
192 AUTOMAKE_OPTIONS = foreign
193 nobase_include_HEADERS = \
194 mpc/datatypes.h \
195 mpc/minimax.h \
196 mpc/mpcmath.h \
197 mpc/mpc_types.h \
198 mpc/mpcdec.h \
199 mpc/reader.h \
200 mpc/streaminfo.h
201
202 all: config.h
203 $(MAKE) $(AM_MAKEFLAGS) all-am
204
205 .SUFFIXES:
206 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
207 @for dep in $?; do \
208 case '$(am__configure_deps)' in \
209 *$$dep*) \
210 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
211 && { if test -f $@; then exit 0; else break; fi; }; \
212 exit 1;; \
213 esac; \
214 done; \
215 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign include/Makefile'; \
216 $(am__cd) $(top_srcdir) && \
217 $(AUTOMAKE) --foreign include/Makefile
218 .PRECIOUS: Makefile
219 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
220 @case '$?' in \
221 *config.status*) \
222 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
223 *) \
224 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
225 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
226 esac;
227
228 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
229 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
230
231 $(top_srcdir)/configure: $(am__configure_deps)
232 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
233 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
234 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
235 $(am__aclocal_m4_deps):
236
237 config.h: stamp-h1
238 @if test ! -f $@; then \
239 rm -f stamp-h1; \
240 $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \
241 else :; fi
242
243 stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
244 @rm -f stamp-h1
245 cd $(top_builddir) && $(SHELL) ./config.status include/config.h
246 $(srcdir)/config.h.in: $(am__configure_deps)
247 ($(am__cd) $(top_srcdir) && $(AUTOHEADER))
248 rm -f stamp-h1
249 touch $@
250
251 distclean-hdr:
252 -rm -f config.h stamp-h1
253
254 mostlyclean-libtool:
255 -rm -f *.lo
256
257 clean-libtool:
258 -rm -rf .libs _libs
259 install-nobase_includeHEADERS: $(nobase_include_HEADERS)
260 @$(NORMAL_INSTALL)
261 test -z "$(includedir)" || $(MKDIR_P) "$(DESTDIR)$(includedir)"
262 @list='$(nobase_include_HEADERS)'; test -n "$(includedir)" || list=; \
263 $(am__nobase_list) | while read dir files; do \
264 xfiles=; for file in $$files; do \
265 if test -f "$$file"; then xfiles="$$xfiles $$file"; \
266 else xfiles="$$xfiles $(srcdir)/$$file"; fi; done; \
267 test -z "$$xfiles" || { \
268 test "x$$dir" = x. || { \
269 echo "$(MKDIR_P) '$(DESTDIR)$(includedir)/$$dir'"; \
270 $(MKDIR_P) "$(DESTDIR)$(includedir)/$$dir"; }; \
271 echo " $(INSTALL_HEADER) $$xfiles '$(DESTDIR)$(includedir)/$$dir'"; \
272 $(INSTALL_HEADER) $$xfiles "$(DESTDIR)$(includedir)/$$dir" || exit $$?; }; \
273 done
274
275 uninstall-nobase_includeHEADERS:
276 @$(NORMAL_UNINSTALL)
277 @list='$(nobase_include_HEADERS)'; test -n "$(includedir)" || list=; \
278 $(am__nobase_strip_setup); files=`$(am__nobase_strip)`; \
279 test -n "$$files" || exit 0; \
280 echo " ( cd '$(DESTDIR)$(includedir)' && rm -f" $$files ")"; \
281 cd "$(DESTDIR)$(includedir)" && rm -f $$files
282
283 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
284 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
285 unique=`for i in $$list; do \
286 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
287 done | \
288 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
289 END { if (nonempty) { for (i in files) print i; }; }'`; \
290 mkid -fID $$unique
291 tags: TAGS
292
293 TAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
294 $(TAGS_FILES) $(LISP)
295 set x; \
296 here=`pwd`; \
297 list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
298 unique=`for i in $$list; do \
299 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
300 done | \
301 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
302 END { if (nonempty) { for (i in files) print i; }; }'`; \
303 shift; \
304 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
305 test -n "$$unique" || unique=$$empty_fix; \
306 if test $$# -gt 0; then \
307 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
308 "$$@" $$unique; \
309 else \
310 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
311 $$unique; \
312 fi; \
313 fi
314 ctags: CTAGS
315 CTAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
316 $(TAGS_FILES) $(LISP)
317 list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
318 unique=`for i in $$list; do \
319 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
320 done | \
321 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
322 END { if (nonempty) { for (i in files) print i; }; }'`; \
323 test -z "$(CTAGS_ARGS)$$unique" \
324 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
325 $$unique
326
327 GTAGS:
328 here=`$(am__cd) $(top_builddir) && pwd` \
329 && $(am__cd) $(top_srcdir) \
330 && gtags -i $(GTAGS_ARGS) "$$here"
331
332 distclean-tags:
333 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
334
335 distdir: $(DISTFILES)
336 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
337 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
338 list='$(DISTFILES)'; \
339 dist_files=`for file in $$list; do echo $$file; done | \
340 sed -e "s|^$$srcdirstrip/||;t" \
341 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
342 case $$dist_files in \
343 */*) $(MKDIR_P) `echo "$$dist_files" | \
344 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
345 sort -u` ;; \
346 esac; \
347 for file in $$dist_files; do \
348 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
349 if test -d $$d/$$file; then \
350 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
351 if test -d "$(distdir)/$$file"; then \
352 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
353 fi; \
354 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
355 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
356 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
357 fi; \
358 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
359 else \
360 test -f "$(distdir)/$$file" \
361 || cp -p $$d/$$file "$(distdir)/$$file" \
362 || exit 1; \
363 fi; \
364 done
365 check-am: all-am
366 check: check-am
367 all-am: Makefile $(HEADERS) config.h
368 installdirs:
369 for dir in "$(DESTDIR)$(includedir)"; do \
370 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
371 done
372 install: install-am
373 install-exec: install-exec-am
374 install-data: install-data-am
375 uninstall: uninstall-am
376
377 install-am: all-am
378 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
379
380 installcheck: installcheck-am
381 install-strip:
382 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
383 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
384 `test -z '$(STRIP)' || \
385 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
386 mostlyclean-generic:
387
388 clean-generic:
389
390 distclean-generic:
391 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
392 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
393
394 maintainer-clean-generic:
395 @echo "This command is intended for maintainers to use"
396 @echo "it deletes files that may require special tools to rebuild."
397 clean: clean-am
398
399 clean-am: clean-generic clean-libtool mostlyclean-am
400
401 distclean: distclean-am
402 -rm -f Makefile
403 distclean-am: clean-am distclean-generic distclean-hdr distclean-tags
404
405 dvi: dvi-am
406
407 dvi-am:
408
409 html: html-am
410
411 html-am:
412
413 info: info-am
414
415 info-am:
416
417 install-data-am: install-nobase_includeHEADERS
418
419 install-dvi: install-dvi-am
420
421 install-dvi-am:
422
423 install-exec-am:
424
425 install-html: install-html-am
426
427 install-html-am:
428
429 install-info: install-info-am
430
431 install-info-am:
432
433 install-man:
434
435 install-pdf: install-pdf-am
436
437 install-pdf-am:
438
439 install-ps: install-ps-am
440
441 install-ps-am:
442
443 installcheck-am:
444
445 maintainer-clean: maintainer-clean-am
446 -rm -f Makefile
447 maintainer-clean-am: distclean-am maintainer-clean-generic
448
449 mostlyclean: mostlyclean-am
450
451 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
452
453 pdf: pdf-am
454
455 pdf-am:
456
457 ps: ps-am
458
459 ps-am:
460
461 uninstall-am: uninstall-nobase_includeHEADERS
462
463 .MAKE: all install-am install-strip
464
465 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
466 clean-libtool ctags distclean distclean-generic distclean-hdr \
467 distclean-libtool distclean-tags distdir dvi dvi-am html \
468 html-am info info-am install install-am install-data \
469 install-data-am install-dvi install-dvi-am install-exec \
470 install-exec-am install-html install-html-am install-info \
471 install-info-am install-man install-nobase_includeHEADERS \
472 install-pdf install-pdf-am install-ps install-ps-am \
473 install-strip installcheck installcheck-am installdirs \
474 maintainer-clean maintainer-clean-generic mostlyclean \
475 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
476 tags uninstall uninstall-am uninstall-nobase_includeHEADERS
477
478
479 # Tell versions [3.59,3.63) of GNU make to not export all variables.
480 # Otherwise a system limit (for SysV at least) may be exceeded.
481 .NOEXPORT:
+0
-65
include/config.h.in less more
0 /* include/config.h.in. Generated from configure.in by autoheader. */
1
2 /* Define to 1 if you have the <dlfcn.h> header file. */
3 #undef HAVE_DLFCN_H
4
5 /* Define to 1 if you have the <inttypes.h> header file. */
6 #undef HAVE_INTTYPES_H
7
8 /* Define to 1 if you have the <memory.h> header file. */
9 #undef HAVE_MEMORY_H
10
11 /* Define to 1 if you have the <replaygain/gain_analysis.h> header file. */
12 #undef HAVE_REPLAYGAIN_GAIN_ANALYSIS_H
13
14 /* Define to 1 if you have the <stdint.h> header file. */
15 #undef HAVE_STDINT_H
16
17 /* Define to 1 if you have the <stdlib.h> header file. */
18 #undef HAVE_STDLIB_H
19
20 /* Define to 1 if you have the <strings.h> header file. */
21 #undef HAVE_STRINGS_H
22
23 /* Define to 1 if you have the <string.h> header file. */
24 #undef HAVE_STRING_H
25
26 /* Define to 1 if you have the <sys/stat.h> header file. */
27 #undef HAVE_SYS_STAT_H
28
29 /* Define to 1 if you have the <sys/types.h> header file. */
30 #undef HAVE_SYS_TYPES_H
31
32 /* Define to 1 if you have the <unistd.h> header file. */
33 #undef HAVE_UNISTD_H
34
35 /* Define to the sub-directory in which libtool stores uninstalled libraries.
36 */
37 #undef LT_OBJDIR
38
39 /* Name of package */
40 #undef PACKAGE
41
42 /* Define to the address where bug reports for this package should be sent. */
43 #undef PACKAGE_BUGREPORT
44
45 /* Define to the full name of this package. */
46 #undef PACKAGE_NAME
47
48 /* Define to the full name and version of this package. */
49 #undef PACKAGE_STRING
50
51 /* Define to the one symbol short name of this package. */
52 #undef PACKAGE_TARNAME
53
54 /* Define to the home page for this package. */
55 #undef PACKAGE_URL
56
57 /* Define to the version of this package. */
58 #undef PACKAGE_VERSION
59
60 /* Define to 1 if you have the ANSI C header files. */
61 #undef STDC_HEADERS
62
63 /* Version number of package */
64 #undef VERSION
0 K 25
1 svn:wc:ra_dav:version-url
2 V 38
3 /!svn/ver/474/libmpc/trunk/include/mpc
4 END
5 mpcmath.h
6 K 25
7 svn:wc:ra_dav:version-url
8 V 48
9 /!svn/ver/448/libmpc/trunk/include/mpc/mpcmath.h
10 END
11 mpcdec.h
12 K 25
13 svn:wc:ra_dav:version-url
14 V 47
15 /!svn/ver/431/libmpc/trunk/include/mpc/mpcdec.h
16 END
17 datatypes.h
18 K 25
19 svn:wc:ra_dav:version-url
20 V 50
21 /!svn/ver/294/libmpc/trunk/include/mpc/datatypes.h
22 END
23 minimax.h
24 K 25
25 svn:wc:ra_dav:version-url
26 V 48
27 /!svn/ver/294/libmpc/trunk/include/mpc/minimax.h
28 END
29 reader.h
30 K 25
31 svn:wc:ra_dav:version-url
32 V 47
33 /!svn/ver/431/libmpc/trunk/include/mpc/reader.h
34 END
35 mpc_types.h
36 K 25
37 svn:wc:ra_dav:version-url
38 V 50
39 /!svn/ver/474/libmpc/trunk/include/mpc/mpc_types.h
40 END
41 streaminfo.h
42 K 25
43 svn:wc:ra_dav:version-url
44 V 51
45 /!svn/ver/431/libmpc/trunk/include/mpc/streaminfo.h
46 END
0 10
1
2 dir
3 475
4 http://svn.musepack.net/libmpc/trunk/include/mpc
5 http://svn.musepack.net
6
7
8
9 2011-07-28T18:52:38.341038Z
10 474
11 r2d
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26 c51c8d5e-032a-db11-a0f2-0002b3467eef
27
28 mpcmath.h
29 file
30
31
32
33
34 2009-07-31T12:37:44.714135Z
35 5864a365d13acd3dfcad6b415ca47ab7
36 2009-07-31T12:37:44.714135Z
37 448
38 r2d
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60 4640
61
62 mpcdec.h
63 file
64
65
66
67
68 2009-02-23T18:44:04.679955Z
69 df197a367c35e2087310a8dd6601da30
70 2009-02-23T18:44:04.679955Z
71 431
72 r2d
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94 6019
95
96 datatypes.h
97 file
98
99
100
101
102 2006-12-19T19:48:37.131091Z
103 28eba7b06a1097cced74126de5591864
104 2006-12-19T19:48:37.131091Z
105 166
106 zorg
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128 1245
129
130 minimax.h
131 file
132
133
134
135
136 2006-11-14T23:14:23.915140Z
137 e16ea369f1f8f048a68be7a0e541d655
138 2006-11-14T23:14:23.915140Z
139 137
140 r2d
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162 1748
163
164 reader.h
165 file
166
167
168
169
170 2009-02-23T18:44:04.679955Z
171 e1dc3d18cb0008dd9452ca5c34e6a03d
172 2009-02-23T18:44:04.679955Z
173 431
174 r2d
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196 3594
197
198 mpc_types.h
199 file
200
201
202
203
204 2011-07-28T18:52:38.341038Z
205 c60439b860e4554aa3319788ac352c59
206 2011-07-28T18:52:38.341038Z
207 474
208 r2d
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230 4317
231
232 streaminfo.h
233 file
234
235
236
237
238 2009-02-23T18:44:04.679955Z
239 b5430525e3cc9a87ade3287cbcad7b7e
240 2009-02-23T18:44:04.679955Z
241 431
242 r2d
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264 4497
265
0 /*
1 * Musepack audio compression
2 *
3 * This library is free software; you can redistribute it and/or
4 * modify it under the terms of the GNU Lesser General Public
5 * License as published by the Free Software Foundation; either
6 * version 2.1 of the License, or (at your option) any later version.
7 *
8 * This library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * Lesser General Public License for more details.
12 *
13 * You should have received a copy of the GNU Lesser General Public
14 * License along with this library; if not, write to the Free Software
15 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16 */
17
18 #pragma once
19
20 // mpcenc.h
21 #define CENTER 448 // offset for centering current data in Main-array
22 #define BLOCK 1152 // blocksize
23 #define ANABUFFER (BLOCK + CENTER) // size of PCM-data array for analysis
24
25
26 typedef struct {
27 float L [36];
28 float R [36];
29 } SubbandFloatTyp;
30
31 typedef struct {
32 float L [ANABUFFER];
33 float R [ANABUFFER];
34 float M [ANABUFFER];
35 float S [ANABUFFER];
36 } PCMDataTyp;
37
0 /*
1 * Musepack audio compression
2 * Copyright (C) 1999-2004 Buschmann/Klemm/Piecha/Wolf
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 */
18
19 #pragma once
20
21 # define clip(x,min,max) ( (x) < (min) ? (min) : (x) > (max) ? (max) : (x) )
22
23 #ifdef __cplusplus
24
25 # define maxi(A,B) ( (A) >? (B) )
26 # define mini(A,B) ( (A) <? (B) )
27 # define maxd(A,B) ( (A) >? (B) )
28 # define mind(A,B) ( (A) <? (B) )
29 # define maxf(A,B) ( (A) >? (B) )
30 # define minf(A,B) ( (A) <? (B) )
31
32 #else
33
34 # define maxi(A,B) ( (A) > (B) ? (A) : (B) )
35 # define mini(A,B) ( (A) < (B) ? (A) : (B) )
36 # define maxd(A,B) ( (A) > (B) ? (A) : (B) )
37 # define mind(A,B) ( (A) < (B) ? (A) : (B) )
38 # define maxf(A,B) ( (A) > (B) ? (A) : (B) )
39 # define minf(A,B) ( (A) < (B) ? (A) : (B) )
40
41 #endif
42
43 #ifdef __GNUC__
44
45 # define absi(A) abs (A)
46 # define absf(A) fabsf (A)
47 # define absd(A) fabs (A)
48
49 #else
50
51 # define absi(A) ( (A) >= 0 ? (A) : -(A) )
52 # define absf(A) ( (A) >= 0.f ? (A) : -(A) )
53 # define absd(A) ( (A) >= 0. ? (A) : -(A) )
54
55 #endif
56
0 /*
1 Copyright (c) 2005-2009, The Musepack Development Team
2 All rights reserved.
3
4 Redistribution and use in source and binary forms, with or without
5 modification, are permitted provided that the following conditions are
6 met:
7
8 * Redistributions of source code must retain the above copyright
9 notice, this list of conditions and the following disclaimer.
10
11 * Redistributions in binary form must reproduce the above
12 copyright notice, this list of conditions and the following
13 disclaimer in the documentation and/or other materials provided
14 with the distribution.
15
16 * Neither the name of the The Musepack Development Team nor the
17 names of its contributors may be used to endorse or promote
18 products derived from this software without specific prior
19 written permission.
20
21 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 */
33 #ifndef _MPC_TYPES_H_
34 #define _MPC_TYPES_H_
35 #ifdef WIN32
36 #pragma once
37 #endif
38
39 #include <stdlib.h>
40 #include <memory.h>
41
42 #ifdef __cplusplus
43 extern "C" {
44 #endif
45
46 #ifdef _MSC_VER
47 typedef __int8 mpc_int8_t;
48 typedef unsigned __int8 mpc_uint8_t;
49 typedef __int16 mpc_int16_t;
50 typedef unsigned __int16 mpc_uint16_t;
51 typedef __int32 mpc_int32_t;
52 typedef unsigned __int32 mpc_uint32_t;
53 typedef __int64 mpc_int64_t;
54 typedef unsigned __int64 mpc_uint64_t;
55 #define mpc_inline __inline
56 #else
57 #include <stdint.h>
58 typedef int8_t mpc_int8_t;
59 typedef uint8_t mpc_uint8_t;
60 typedef int16_t mpc_int16_t;
61 typedef uint16_t mpc_uint16_t;
62 typedef int32_t mpc_int32_t;
63 typedef uint32_t mpc_uint32_t;
64 typedef int64_t mpc_int64_t;
65 typedef uint64_t mpc_uint64_t;
66 #define mpc_inline inline
67 #endif
68
69 typedef int mpc_int_t;
70 typedef unsigned int mpc_uint_t;
71 typedef size_t mpc_size_t;
72 typedef mpc_uint8_t mpc_bool_t;
73
74 // #define LONG_SEEK_TABLE
75 #ifdef LONG_SEEK_TABLE // define as needed (mpc_uint32_t supports files up to 512 MB)
76 typedef mpc_uint64_t mpc_seek_t;
77 #else
78 typedef mpc_uint32_t mpc_seek_t;
79 #endif
80
81 # define mpc_int64_min -9223372036854775808ll
82 # define mpc_int64_max 9223372036854775807ll
83
84 typedef struct mpc_quantizer {
85 mpc_int16_t L [36];
86 mpc_int16_t R [36];
87 } mpc_quantizer;
88
89 /// Libmpcdec error codes
90 typedef enum mpc_status {
91 // Success.
92 MPC_STATUS_OK = 0,
93 // Generic failure (I/O error or invalid file).
94 MPC_STATUS_FAIL = -1
95 } mpc_status;
96
97
98 #define MPC_FIXED_POINT_SHIFT 16
99
100 #ifdef MPC_FIXED_POINT
101 # define MPC_FIXED_POINT_FRACTPART 14
102 # define MPC_FIXED_POINT_SCALE_SHIFT (MPC_FIXED_POINT_SHIFT + MPC_FIXED_POINT_FRACTPART)
103 # define MPC_FIXED_POINT_SCALE (1 << (MPC_FIXED_POINT_SCALE_SHIFT - 1))
104 typedef mpc_int32_t MPC_SAMPLE_FORMAT;
105 #else
106 typedef float MPC_SAMPLE_FORMAT;
107 #endif
108
109 enum {
110 MPC_FALSE = 0,
111 MPC_TRUE = !MPC_FALSE
112 };
113
114 //// 'Cdecl' forces the use of standard C/C++ calling convention ///////
115 #if defined _WIN32
116 # define mpc_cdecl __cdecl
117 #elif defined __ZTC__
118 # define mpc_cdecl _cdecl
119 #elif defined __TURBOC__
120 # define mpc_cdecl cdecl
121 #else
122 # define mpc_cdecl
123 #endif
124
125 /* DLL building support on win32 hosts */
126 #ifndef MPC_API
127 # ifdef DLL_EXPORT /* defined by libtool (if required) */
128 # define MPC_API __declspec(dllexport)
129 # endif
130 # ifdef MPC_DLL_IMPORT /* define if linking with this dll */
131 # define MPC_API __declspec(dllimport)
132 # endif
133 # ifndef MPC_API /* static linking or !_WIN32 */
134 # if defined(__GNUC__) && (__GNUC__ >= 4)
135 # define MPC_API __attribute__ ((visibility("default")))
136 # else
137 # define MPC_API
138 # endif
139 # endif
140 #endif
141
142 #ifdef __cplusplus
143 }
144 #endif
145 #endif
0 /*
1 Copyright (c) 2005-2009, The Musepack Development Team
2 All rights reserved.
3
4 Redistribution and use in source and binary forms, with or without
5 modification, are permitted provided that the following conditions are
6 met:
7
8 * Redistributions of source code must retain the above copyright
9 notice, this list of conditions and the following disclaimer.
10
11 * Redistributions in binary form must reproduce the above
12 copyright notice, this list of conditions and the following
13 disclaimer in the documentation and/or other materials provided
14 with the distribution.
15
16 * Neither the name of the The Musepack Development Team nor the
17 names of its contributors may be used to endorse or promote
18 products derived from this software without specific prior
19 written permission.
20
21 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 */
33 /// \file mpcdec.h
34 /// Top level include file for libmpcdec.
35 #ifndef _MPCDEC_H_
36 #define _MPCDEC_H_
37 #ifdef WIN32
38 #pragma once
39 #endif
40
41 #include "reader.h"
42 #include "streaminfo.h"
43
44 #ifdef __cplusplus
45 extern "C" {
46 #endif
47
48 enum {
49 MPC_FRAME_LENGTH = (36 * 32), ///< Samples per mpc frame
50 MPC_DECODER_BUFFER_LENGTH = (MPC_FRAME_LENGTH * 4), ///< Required buffer size for decoder
51 MPC_DECODER_SYNTH_DELAY = 481
52 };
53
54 typedef struct mpc_decoder_t mpc_decoder;
55 typedef struct mpc_demux_t mpc_demux;
56
57 typedef struct mpc_bits_reader_t {
58 unsigned char * buff; /// pointer on current byte
59 unsigned int count; /// unread bits in current byte
60 } mpc_bits_reader;
61
62 typedef struct mpc_frame_info_t {
63 mpc_uint32_t samples; /// number of samples in the frame (counting once for multiple channels)
64 mpc_int32_t bits; /// number of bits consumed by this frame (-1) if end of stream
65 MPC_SAMPLE_FORMAT * buffer; /// frame samples buffer (size = samples * channels * sizeof(MPC_SAMPLE_FORMAT))
66 mpc_bool_t is_key_frame; /// 1 if this frame is a key frame (first in block) 0 else. Set by the demuxer.
67 } mpc_frame_info;
68
69 typedef struct mpc_chap_info_t {
70 mpc_uint64_t sample; /// sample where the chapter starts
71 mpc_uint16_t gain; /// replaygain chapter value
72 mpc_uint16_t peak; /// peak chapter loudness level
73 mpc_uint_t tag_size; /// size of the tag element (0 if no tag is present for this chapter)
74 char * tag; /// pointer to an APEv2 tag without the preamble
75 } mpc_chap_info;
76
77 /// Initializes mpc decoder with the supplied stream info parameters.
78 /// \param si streaminfo structure indicating format of source stream
79 /// \return pointer on the initialized decoder structure if successful, 0 if not
80 MPC_API mpc_decoder * mpc_decoder_init(mpc_streaminfo *si);
81
82 /// Releases input mpc decoder
83 MPC_API void mpc_decoder_exit(mpc_decoder *p_dec);
84
85 /**
86 * Sets decoder sample scaling factor. All decoded samples will be multiplied
87 * by this factor. Useful for applying replay gain.
88 * @param scale_factor multiplicative scaling factor
89 */
90 MPC_API void mpc_decoder_scale_output(mpc_decoder *p_dec, double scale_factor);
91
92 MPC_API void mpc_decoder_decode_frame(mpc_decoder * d, mpc_bits_reader * r, mpc_frame_info * i);
93
94 // This is the gain reference used in old replaygain
95 #define MPC_OLD_GAIN_REF 64.82
96
97 /**
98 * init demuxer
99 * @param p_reader initialized mpc_reader pointer
100 * @return an initialized mpc_demux pointer
101 */
102 MPC_API mpc_demux * mpc_demux_init(mpc_reader * p_reader);
103 /// free demuxer
104 MPC_API void mpc_demux_exit(mpc_demux * d);
105 /**
106 * Calls mpc_decoder_scale_output to set the scaling factor according to the
107 * replay gain stream information and the supplied ouput level
108 * @param d pointer to a musepack demuxer
109 * @param level the desired ouput level (in db). Must be MPC_OLD_GAIN_REF (64.82 db) if you want to get the old replaygain behavior
110 * @param use_gain set it to MPC_TRUE if you want to set the scaling factor according to the stream gain
111 * @param use_title MPC_TRUE : uses the title gain, MPC_FALSE : uses the album gain
112 * @param clip_prevention MPC_TRUE : uses cliping prevention
113 */
114 MPC_API void mpc_set_replay_level(mpc_demux * d, float level, mpc_bool_t use_gain,
115 mpc_bool_t use_title, mpc_bool_t clip_prevention);
116 /// decode frame
117 MPC_API mpc_status mpc_demux_decode(mpc_demux * d, mpc_frame_info * i);
118 /// get streaminfo
119 MPC_API void mpc_demux_get_info(mpc_demux * d, mpc_streaminfo * i);
120 /// seeks to a given sample
121 MPC_API mpc_status mpc_demux_seek_sample(mpc_demux * d, mpc_uint64_t destsample);
122 /// seeks to a given second
123 MPC_API mpc_status mpc_demux_seek_second(mpc_demux * d, double seconds);
124
125 /// \return the current position in the stream (in bits) from the beginning of the file
126 MPC_API mpc_seek_t mpc_demux_pos(mpc_demux * d);
127
128 /// chapters : only for sv8 streams
129 /**
130 * Gets the number of chapters in the stream
131 * @param d pointer to a musepack demuxer
132 * @return the number of chapters found in the stream
133 */
134 MPC_API mpc_int_t mpc_demux_chap_nb(mpc_demux * d);
135 /**
136 * Gets datas associated to a given chapter
137 * The chapter tag is an APEv2 tag without the preamble
138 * @param d pointer to a musepack demuxer
139 * @param chap_nb chapter number you want datas (from 0 to mpc_demux_chap_nb(d) - 1)
140 * @return the chapter information structure
141 */
142 MPC_API mpc_chap_info const * mpc_demux_chap(mpc_demux * d, int chap_nb);
143
144 #ifdef __cplusplus
145 }
146 #endif
147 #endif
0 /*
1 * Musepack audio compression
2 *
3 * This library is free software; you can redistribute it and/or
4 * modify it under the terms of the GNU Lesser General Public
5 * License as published by the Free Software Foundation; either
6 * version 2.1 of the License, or (at your option) any later version.
7 *
8 * This library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * Lesser General Public License for more details.
12 *
13 * You should have received a copy of the GNU Lesser General Public
14 * License along with this library; if not, write to the Free Software
15 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16 */
17
18 #include <math.h>
19
20 #include <mpc/mpc_types.h>
21
22 typedef union mpc_floatint
23 {
24 float f;
25 mpc_int32_t n;
26 } mpc_floatint;
27
28 typedef union mpc_doubleint
29 {
30 double d;
31 mpc_int32_t n[2];
32 } mpc_doubleint;
33
34 static mpc_inline mpc_int32_t mpc_lrintf(float fVal)
35 {
36 mpc_floatint tmp;
37 tmp.f = fVal + 0x00FF8000;
38 return tmp.n - 0x4B7F8000;
39 }
40
41 #define mpc_round32 mpc_lrintf
42 #define mpc_nearbyintf mpc_lrintf
43
44
45 #ifndef M_PI
46 # define M_PI 3.1415926535897932384626433832795029 // 4*atan(1)
47 # define M_PIl 3.1415926535897932384626433832795029L
48 # define M_LN2 0.6931471805599453094172321214581766 // ln(2)
49 # define M_LN2l 0.6931471805599453094172321214581766L
50 # define M_LN10 2.3025850929940456840179914546843642 // ln 10 */
51 # define M_LN10l 2.3025850929940456840179914546843642L
52 #endif
53
54 // fast but maybe more inaccurate, use if you need speed
55 #if defined(__GNUC__) && !defined(__APPLE__)
56 # define SIN(x) sinf ((float)(x))
57 # define COS(x) cosf ((float)(x))
58 # define ATAN2(x,y) atan2f ((float)(x), (float)(y))
59 # define SQRT(x) sqrtf ((float)(x))
60 # define LOG(x) logf ((float)(x))
61 # define LOG10(x) log10f ((float)(x))
62 # define POW(x,y) expf (logf(x) * (y))
63 # define POW10(x) expf (M_LN10 * (x))
64 # define FLOOR(x) floorf ((float)(x))
65 # define IFLOOR(x) (int) floorf ((float)(x))
66 # define FABS(x) fabsf ((float)(x))
67 #else
68 # define SIN(x) (float) sin (x)
69 # define COS(x) (float) cos (x)
70 # define ATAN2(x,y) (float) atan2 (x, y)
71 # define SQRT(x) (float) sqrt (x)
72 # define LOG(x) (float) log (x)
73 # define LOG10(x) (float) log10 (x)
74 # define POW(x,y) (float) pow (x,y)
75 # define POW10(x) (float) pow (10., (x))
76 # define FLOOR(x) (float) floor (x)
77 # define IFLOOR(x) (int) floor (x)
78 # define FABS(x) (float) fabs (x)
79 #endif
80
81 #define SQRTF(x) SQRT (x)
82 #ifdef FAST_MATH
83 # define TABSTEP 64
84 # define COSF(x) my_cos ((float)(x))
85 # define ATAN2F(x,y) my_atan2 ((float)(x), (float)(y))
86 # define IFLOORF(x) my_ifloor ((float)(x))
87
88 void Init_FastMath ( void );
89 extern const float tabatan2 [] [2];
90 extern const float tabcos [] [2];
91 extern const float tabsqrt_ex [];
92 extern const float tabsqrt_m [] [2];
93
94 static mpc_inline float my_atan2 ( float x, float y )
95 {
96 float t, ret; int i; mpc_floatint mx, my;
97
98 mx.f = x;
99 my.f = y;
100 if ( (mx.n & 0x7FFFFFFF) < (my.n & 0x7FFFFFFF) ) {
101 i = mpc_round32 (t = TABSTEP * (mx.f / my.f));
102 ret = tabatan2 [1*TABSTEP+i][0] + tabatan2 [1*TABSTEP+i][1] * (t-i);
103 if ( my.n < 0 )
104 ret = (float)(ret - M_PI);
105 }
106 else if ( mx.n < 0 ) {
107 i = mpc_round32 (t = TABSTEP * (my.f / mx.f));
108 ret = - M_PI/2 - tabatan2 [1*TABSTEP+i][0] + tabatan2 [1*TABSTEP+i][1] * (i-t);
109 }
110 else if ( mx.n > 0 ) {
111 i = mpc_round32 (t = TABSTEP * (my.f / mx.f));
112 ret = + M_PI/2 - tabatan2 [1*TABSTEP+i][0] + tabatan2 [1*TABSTEP+i][1] * (i-t);
113 }
114 else {
115 ret = 0.;
116 }
117 return ret;
118 }
119
120
121 static mpc_inline float my_cos ( float x )
122 {
123 float t, ret; int i;
124 i = mpc_round32 (t = TABSTEP * x);
125 ret = tabcos [13*TABSTEP+i][0] + tabcos [13*TABSTEP+i][1] * (t-i);
126 return ret;
127 }
128
129
130 static mpc_inline int my_ifloor ( float x )
131 {
132 mpc_floatint mx;
133 mx.f = (float) (x + (0x0C00000L + 0.500000001));
134 return mx.n - 1262485505;
135 }
136
137
138 static mpc_inline float my_sqrt ( float x )
139 {
140 float ret; int i, ex; mpc_floatint mx;
141 mx.f = x;
142 ex = mx.n >> 23; // get the exponent
143 mx.n = (mx.n & 0x7FFFFF) | 0x42800000; // delete the exponent
144 i = mpc_round32 (mx.f); // Integer-part of the mantissa (round ????????????)
145 ret = tabsqrt_m [i-TABSTEP][0] + tabsqrt_m [i-TABSTEP][1] * (mx.f-i); // calculate value
146 ret *= tabsqrt_ex [ex];
147 return ret;
148 }
149 #else
150 # define COSF(x) COS (x)
151 # define ATAN2F(x,y) ATAN2 (x,y)
152 # define IFLOORF(x) IFLOOR (x)
153 #endif
154
0 /*
1 Copyright (c) 2005-2009, The Musepack Development Team
2 All rights reserved.
3
4 Redistribution and use in source and binary forms, with or without
5 modification, are permitted provided that the following conditions are
6 met:
7
8 * Redistributions of source code must retain the above copyright
9 notice, this list of conditions and the following disclaimer.
10
11 * Redistributions in binary form must reproduce the above
12 copyright notice, this list of conditions and the following
13 disclaimer in the documentation and/or other materials provided
14 with the distribution.
15
16 * Neither the name of the The Musepack Development Team nor the
17 names of its contributors may be used to endorse or promote
18 products derived from this software without specific prior
19 written permission.
20
21 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 */
33 /// \file reader.h
34 #ifndef _MPCDEC_READER_H_
35 #define _MPCDEC_READER_H_
36 #ifdef WIN32
37 #pragma once
38 #endif
39
40 #include <mpc/mpc_types.h>
41 #include <stdio.h>
42
43 #ifdef __cplusplus
44 extern "C" {
45 #endif
46
47
48 /// \brief Stream reader interface structure.
49 ///
50 /// This is the structure you must supply to the musepack decoding library
51 /// to feed it with raw data. Implement the five member functions to provide
52 /// a functional reader.
53 typedef struct mpc_reader_t mpc_reader;
54 struct mpc_reader_t {
55 /// Reads size bytes of data into buffer at ptr.
56 mpc_int32_t (*read)(mpc_reader *p_reader, void *ptr, mpc_int32_t size);
57
58 /// Seeks to byte position offset.
59 mpc_bool_t (*seek)(mpc_reader *p_reader, mpc_int32_t offset);
60
61 /// Returns the current byte offset in the stream.
62 mpc_int32_t (*tell)(mpc_reader *p_reader);
63
64 /// Returns the total length of the source stream, in bytes.
65 mpc_int32_t (*get_size)(mpc_reader *p_reader);
66
67 /// True if the stream is a seekable stream.
68 mpc_bool_t (*canseek)(mpc_reader *p_reader);
69
70 /// Field that can be used to identify a particular instance of
71 /// reader or carry along data associated with that reader.
72 void *data;
73 };
74
75 /// Initializes reader with default stdio file reader implementation. Use
76 /// this if you're just reading from a plain file.
77 ///
78 /// \param r p_reader handle to initialize
79 /// \param filename input filename to attach to the reader
80 MPC_API mpc_status mpc_reader_init_stdio(mpc_reader *p_reader, const char *filename);
81
82 /// Initializes reader with default stdio file reader implementation. Use
83 /// this if you prefer to open the file yourself.
84 ///
85 /// \param r p_reader handle to initialize
86 /// \param p_file input file handle (already open)
87 MPC_API mpc_status mpc_reader_init_stdio_stream(mpc_reader * p_reader, FILE * p_file);
88
89 /// Release reader with default stdio file reader implementation.
90 ///
91 /// \param r reader handle to release
92 MPC_API void mpc_reader_exit_stdio(mpc_reader *p_reader);
93
94 #ifdef __cplusplus
95 }
96 #endif
97 #endif
0 /*
1 Copyright (c) 2005-2009, The Musepack Development Team
2 All rights reserved.
3
4 Redistribution and use in source and binary forms, with or without
5 modification, are permitted provided that the following conditions are
6 met:
7
8 * Redistributions of source code must retain the above copyright
9 notice, this list of conditions and the following disclaimer.
10
11 * Redistributions in binary form must reproduce the above
12 copyright notice, this list of conditions and the following
13 disclaimer in the documentation and/or other materials provided
14 with the distribution.
15
16 * Neither the name of the The Musepack Development Team nor the
17 names of its contributors may be used to endorse or promote
18 products derived from this software without specific prior
19 written permission.
20
21 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 */
33 /// \file streaminfo.h
34 #ifndef _MPCDEC_STREAMINFO_H_
35 #define _MPCDEC_STREAMINFO_H_
36 #ifdef WIN32
37 #pragma once
38 #endif
39
40 #include <mpc/mpc_types.h>
41
42 #ifdef __cplusplus
43 extern "C" {
44 #endif
45
46
47 typedef mpc_int32_t mpc_streaminfo_off_t;
48
49 /// \brief mpc stream properties structure
50 ///
51 /// Structure containing all the properties of an mpc stream. Populated
52 /// by the streaminfo_read function.
53 typedef struct mpc_streaminfo {
54 /// @name Core mpc stream properties
55 //@{
56 mpc_uint32_t sample_freq; ///< Sample frequency of stream
57 mpc_uint32_t channels; ///< Number of channels in stream
58 mpc_uint32_t stream_version; ///< Streamversion of stream
59 mpc_uint32_t bitrate; ///< Bitrate of stream file (in bps)
60 double average_bitrate; ///< Average bitrate of stream (in bits/sec)
61 mpc_uint32_t max_band; ///< Maximum band-index used in stream (0...31)
62 mpc_uint32_t ms; ///< Mid/side stereo (0: off, 1: on)
63 mpc_uint32_t fast_seek; ///< True if stream supports fast-seeking (sv7)
64 mpc_uint32_t block_pwr; ///< Number of frames in a block = 2^block_pwr (sv8)
65 //@}
66
67 /// @name Replaygain properties
68 //@{
69 mpc_uint16_t gain_title; ///< Replaygain title value
70 mpc_uint16_t gain_album; ///< Replaygain album value
71 mpc_uint16_t peak_album; ///< Peak album loudness level
72 mpc_uint16_t peak_title; ///< Peak title loudness level
73 //@}
74
75 /// @name True gapless properties
76 //@{
77 mpc_uint32_t is_true_gapless; ///< True gapless? (0: no, 1: yes)
78 mpc_uint64_t samples; ///< Number of samples in the stream
79 mpc_uint64_t beg_silence; ///< Number of samples that must not be played at the beginning of the stream
80 //@}
81
82 /// @name Encoder informations
83 //@{
84 mpc_uint32_t encoder_version; ///< Version of encoder used
85 char encoder[256]; ///< Encoder name
86 mpc_bool_t pns; ///< pns used
87 float profile; ///< Quality profile of stream
88 const char* profile_name; ///< Name of profile used by stream
89 //@}
90
91
92 mpc_streaminfo_off_t header_position; ///< Byte offset of position of header in stream
93 mpc_streaminfo_off_t tag_offset; ///< Offset to file tags
94 mpc_streaminfo_off_t total_file_length; ///< Total length of underlying file
95 } mpc_streaminfo;
96
97 /// Gets length of stream si, in seconds.
98 /// \return length of stream in seconds
99 MPC_API double mpc_streaminfo_get_length(mpc_streaminfo *si);
100
101 /// Returns length of stream si, in samples.
102 /// \return length of stream in samples
103 MPC_API mpc_int64_t mpc_streaminfo_get_length_samples(mpc_streaminfo *si);
104
105 #ifdef __cplusplus
106 }
107 #endif
108 #endif
(No changes)
8888
8989 /// Libmpcdec error codes
9090 typedef enum mpc_status {
91 // Success.
9192 MPC_STATUS_OK = 0,
92 MPC_STATUS_FILE = -1,
93 MPC_STATUS_SV7BETA = -2,
94 MPC_STATUS_CBR = -3,
95 MPC_STATUS_IS = -4,
96 MPC_STATUS_BLOCKSIZE = -5,
97 MPC_STATUS_INVALIDSV = -6
93 // Generic failure (I/O error or invalid file).
94 MPC_STATUS_FAIL = -1
9895 } mpc_status;
9996
10097
(No changes)
(No changes)
(No changes)
(No changes)
(No changes)
00 include_directories(${libmpc_SOURCE_DIR}/include)
11 if(SHARED)
2 add_library(mpcdec_shared SHARED huffman mpc_decoder mpc_reader streaminfo mpc_bits_reader mpc_demux requant synth_filter ${libmpc_SOURCE_DIR}/common/crc32)
2 add_library(mpcdec SHARED huffman mpc_decoder mpc_reader streaminfo mpc_bits_reader mpc_demux requant synth_filter ${libmpc_SOURCE_DIR}/common/crc32)
33 else(SHARED)
44 add_library(mpcdec_static STATIC huffman mpc_decoder mpc_reader streaminfo mpc_bits_reader mpc_demux requant synth_filter ${libmpc_SOURCE_DIR}/common/crc32)
55 endif(SHARED)
(No changes)
(No changes)
(No changes)
+0
-559
libmpcdec/Makefile.in less more
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
6 # This Makefile.in is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 # PARTICULAR PURPOSE.
14
15 @SET_MAKE@
16
17 VPATH = @srcdir@
18 pkgdatadir = $(datadir)/@PACKAGE@
19 pkgincludedir = $(includedir)/@PACKAGE@
20 pkglibdir = $(libdir)/@PACKAGE@
21 pkglibexecdir = $(libexecdir)/@PACKAGE@
22 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
23 install_sh_DATA = $(install_sh) -c -m 644
24 install_sh_PROGRAM = $(install_sh) -c
25 install_sh_SCRIPT = $(install_sh) -c
26 INSTALL_HEADER = $(INSTALL_DATA)
27 transform = $(program_transform_name)
28 NORMAL_INSTALL = :
29 PRE_INSTALL = :
30 POST_INSTALL = :
31 NORMAL_UNINSTALL = :
32 PRE_UNINSTALL = :
33 POST_UNINSTALL = :
34 build_triplet = @build@
35 host_triplet = @host@
36 subdir = libmpcdec
37 DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
38 AUTHORS COPYING ChangeLog
39 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
40 am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
42 $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
43 $(top_srcdir)/configure.in
44 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
45 $(ACLOCAL_M4)
46 mkinstalldirs = $(install_sh) -d
47 CONFIG_HEADER = $(top_builddir)/include/config.h
48 CONFIG_CLEAN_FILES =
49 CONFIG_CLEAN_VPATH_FILES =
50 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
51 am__vpath_adj = case $$p in \
52 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
53 *) f=$$p;; \
54 esac;
55 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
56 am__install_max = 40
57 am__nobase_strip_setup = \
58 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
59 am__nobase_strip = \
60 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
61 am__nobase_list = $(am__nobase_strip_setup); \
62 for p in $$list; do echo "$$p $$p"; done | \
63 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
64 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
65 if (++n[$$2] == $(am__install_max)) \
66 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
67 END { for (dir in files) print dir, files[dir] }'
68 am__base_list = \
69 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
70 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
71 am__installdirs = "$(DESTDIR)$(libdir)"
72 LTLIBRARIES = $(lib_LTLIBRARIES)
73 libmpcdec_la_LIBADD =
74 am__objects_1 = crc32.lo huffman-bcl.lo
75 am_libmpcdec_la_OBJECTS = huffman.lo mpc_decoder.lo mpc_reader.lo \
76 requant.lo streaminfo.lo synth_filter.lo mpc_bits_reader.lo \
77 mpc_demux.lo $(am__objects_1)
78 libmpcdec_la_OBJECTS = $(am_libmpcdec_la_OBJECTS)
79 libmpcdec_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
80 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
81 $(libmpcdec_la_LDFLAGS) $(LDFLAGS) -o $@
82 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include
83 depcomp = $(SHELL) $(top_srcdir)/config/depcomp
84 am__depfiles_maybe = depfiles
85 am__mv = mv -f
86 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
87 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
88 LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
89 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
90 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
91 CCLD = $(CC)
92 LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
93 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
94 $(LDFLAGS) -o $@
95 SOURCES = $(libmpcdec_la_SOURCES)
96 DIST_SOURCES = $(libmpcdec_la_SOURCES)
97 ETAGS = etags
98 CTAGS = ctags
99 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
100 ACLOCAL = @ACLOCAL@
101 AMTAR = @AMTAR@
102 AR = @AR@
103 AS = @AS@
104 AUTOCONF = @AUTOCONF@
105 AUTOHEADER = @AUTOHEADER@
106 AUTOMAKE = @AUTOMAKE@
107 AWK = @AWK@
108 CC = @CC@
109 CCDEPMODE = @CCDEPMODE@
110 CFLAGS = @CFLAGS@
111 CPP = @CPP@
112 CPPFLAGS = @CPPFLAGS@
113 CYGPATH_W = @CYGPATH_W@
114 DEFS = @DEFS@
115 DEPDIR = @DEPDIR@
116 DLLTOOL = @DLLTOOL@
117 DSYMUTIL = @DSYMUTIL@
118 DUMPBIN = @DUMPBIN@
119 ECHO_C = @ECHO_C@
120 ECHO_N = @ECHO_N@
121 ECHO_T = @ECHO_T@
122 EGREP = @EGREP@
123 EXEEXT = @EXEEXT@
124 EXTRALIBS = @EXTRALIBS@
125 FGREP = @FGREP@
126 GREP = @GREP@
127 INSTALL = @INSTALL@
128 INSTALL_DATA = @INSTALL_DATA@
129 INSTALL_PROGRAM = @INSTALL_PROGRAM@
130 INSTALL_SCRIPT = @INSTALL_SCRIPT@
131 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
132 LD = @LD@
133 LDFLAGS = @LDFLAGS@
134 LIBOBJS = @LIBOBJS@
135 LIBS = @LIBS@
136 LIBTOOL = @LIBTOOL@
137 LIPO = @LIPO@
138 LN_S = @LN_S@
139 LTLIBOBJS = @LTLIBOBJS@
140 MAKEINFO = @MAKEINFO@
141 MKDIR_P = @MKDIR_P@
142 NM = @NM@
143 NMEDIT = @NMEDIT@
144 OBJDUMP = @OBJDUMP@
145 OBJEXT = @OBJEXT@
146 OTOOL = @OTOOL@
147 OTOOL64 = @OTOOL64@
148 PACKAGE = @PACKAGE@
149 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
150 PACKAGE_NAME = @PACKAGE_NAME@
151 PACKAGE_STRING = @PACKAGE_STRING@
152 PACKAGE_TARNAME = @PACKAGE_TARNAME@
153 PACKAGE_URL = @PACKAGE_URL@
154 PACKAGE_VERSION = @PACKAGE_VERSION@
155 PATH_SEPARATOR = @PATH_SEPARATOR@
156 RANLIB = @RANLIB@
157 SED = @SED@
158 SET_MAKE = @SET_MAKE@
159 SHELL = @SHELL@
160 STRIP = @STRIP@
161 VERSION = @VERSION@
162 abs_builddir = @abs_builddir@
163 abs_srcdir = @abs_srcdir@
164 abs_top_builddir = @abs_top_builddir@
165 abs_top_srcdir = @abs_top_srcdir@
166 ac_ct_CC = @ac_ct_CC@
167 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
168 am__include = @am__include@
169 am__leading_dot = @am__leading_dot@
170 am__quote = @am__quote@
171 am__tar = @am__tar@
172 am__untar = @am__untar@
173 bindir = @bindir@
174 build = @build@
175 build_alias = @build_alias@
176 build_cpu = @build_cpu@
177 build_os = @build_os@
178 build_vendor = @build_vendor@
179 builddir = @builddir@
180 datadir = @datadir@
181 datarootdir = @datarootdir@
182 docdir = @docdir@
183 dvidir = @dvidir@
184 exec_prefix = @exec_prefix@
185 host = @host@
186 host_alias = @host_alias@
187 host_cpu = @host_cpu@
188 host_os = @host_os@
189 host_vendor = @host_vendor@
190 htmldir = @htmldir@
191 includedir = @includedir@
192 infodir = @infodir@
193 install_sh = @install_sh@
194 libdir = @libdir@
195 libexecdir = @libexecdir@
196 localedir = @localedir@
197 localstatedir = @localstatedir@
198 lt_ECHO = @lt_ECHO@
199 mandir = @mandir@
200 mkdir_p = @mkdir_p@
201 oldincludedir = @oldincludedir@
202 pdfdir = @pdfdir@
203 prefix = @prefix@
204 program_transform_name = @program_transform_name@
205 psdir = @psdir@
206 sbindir = @sbindir@
207 sharedstatedir = @sharedstatedir@
208 srcdir = @srcdir@
209 sysconfdir = @sysconfdir@
210 target_alias = @target_alias@
211 top_build_prefix = @top_build_prefix@
212 top_builddir = @top_builddir@
213 top_srcdir = @top_srcdir@
214 EXTRA_DIST = CMakeLists.txt
215 AM_CPPFLAGS = -I$(top_srcdir)/include
216 @HAVE_VISIBILITY_TRUE@AM_CFLAGS = -fvisibility=hidden
217 common_sources = ../common/crc32.c \
218 ../common/huffman-bcl.c
219
220 METASOURCES = AUTO
221 lib_LTLIBRARIES = libmpcdec.la
222 libmpcdec_la_SOURCES = huffman.c mpc_decoder.c mpc_reader.c \
223 requant.c streaminfo.c synth_filter.c mpc_bits_reader.c mpc_demux.c \
224 mpc_bits_reader.h huffman.h decoder.h internal.h requant.h mpcdec_math.h \
225 $(common_sources)
226
227 libmpcdec_la_LDFLAGS = -no-undefined -version-info 7:0:1
228 all: all-am
229
230 .SUFFIXES:
231 .SUFFIXES: .c .lo .o .obj
232 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
233 @for dep in $?; do \
234 case '$(am__configure_deps)' in \
235 *$$dep*) \
236 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
237 && { if test -f $@; then exit 0; else break; fi; }; \
238 exit 1;; \
239 esac; \
240 done; \
241 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu libmpcdec/Makefile'; \
242 $(am__cd) $(top_srcdir) && \
243 $(AUTOMAKE) --gnu libmpcdec/Makefile
244 .PRECIOUS: Makefile
245 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
246 @case '$?' in \
247 *config.status*) \
248 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
249 *) \
250 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
251 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
252 esac;
253
254 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
255 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
256
257 $(top_srcdir)/configure: $(am__configure_deps)
258 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
259 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
261 $(am__aclocal_m4_deps):
262 install-libLTLIBRARIES: $(lib_LTLIBRARIES)
263 @$(NORMAL_INSTALL)
264 test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
265 @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
266 list2=; for p in $$list; do \
267 if test -f $$p; then \
268 list2="$$list2 $$p"; \
269 else :; fi; \
270 done; \
271 test -z "$$list2" || { \
272 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
273 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
274 }
275
276 uninstall-libLTLIBRARIES:
277 @$(NORMAL_UNINSTALL)
278 @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
279 for p in $$list; do \
280 $(am__strip_dir) \
281 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \
282 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \
283 done
284
285 clean-libLTLIBRARIES:
286 -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
287 @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
288 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
289 test "$$dir" != "$$p" || dir=.; \
290 echo "rm -f \"$${dir}/so_locations\""; \
291 rm -f "$${dir}/so_locations"; \
292 done
293 libmpcdec.la: $(libmpcdec_la_OBJECTS) $(libmpcdec_la_DEPENDENCIES)
294 $(libmpcdec_la_LINK) -rpath $(libdir) $(libmpcdec_la_OBJECTS) $(libmpcdec_la_LIBADD) $(LIBS)
295
296 mostlyclean-compile:
297 -rm -f *.$(OBJEXT)
298
299 distclean-compile:
300 -rm -f *.tab.c
301
302 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/crc32.Plo@am__quote@
303 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/huffman-bcl.Plo@am__quote@
304 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/huffman.Plo@am__quote@
305 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mpc_bits_reader.Plo@am__quote@
306 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mpc_decoder.Plo@am__quote@
307 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mpc_demux.Plo@am__quote@
308 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mpc_reader.Plo@am__quote@
309 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/requant.Plo@am__quote@
310 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/streaminfo.Plo@am__quote@
311 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/synth_filter.Plo@am__quote@
312
313 .c.o:
314 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
315 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
316 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
317 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
318 @am__fastdepCC_FALSE@ $(COMPILE) -c $<
319
320 .c.obj:
321 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
322 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
323 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
324 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
325 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
326
327 .c.lo:
328 @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
329 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
330 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
331 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
332 @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
333
334 crc32.lo: ../common/crc32.c
335 @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT crc32.lo -MD -MP -MF $(DEPDIR)/crc32.Tpo -c -o crc32.lo `test -f '../common/crc32.c' || echo '$(srcdir)/'`../common/crc32.c
336 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/crc32.Tpo $(DEPDIR)/crc32.Plo
337 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../common/crc32.c' object='crc32.lo' libtool=yes @AMDEPBACKSLASH@
338 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
339 @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o crc32.lo `test -f '../common/crc32.c' || echo '$(srcdir)/'`../common/crc32.c
340
341 huffman-bcl.lo: ../common/huffman-bcl.c
342 @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT huffman-bcl.lo -MD -MP -MF $(DEPDIR)/huffman-bcl.Tpo -c -o huffman-bcl.lo `test -f '../common/huffman-bcl.c' || echo '$(srcdir)/'`../common/huffman-bcl.c
343 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/huffman-bcl.Tpo $(DEPDIR)/huffman-bcl.Plo
344 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../common/huffman-bcl.c' object='huffman-bcl.lo' libtool=yes @AMDEPBACKSLASH@
345 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
346 @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o huffman-bcl.lo `test -f '../common/huffman-bcl.c' || echo '$(srcdir)/'`../common/huffman-bcl.c
347
348 mostlyclean-libtool:
349 -rm -f *.lo
350
351 clean-libtool:
352 -rm -rf .libs _libs
353
354 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
355 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
356 unique=`for i in $$list; do \
357 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
358 done | \
359 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
360 END { if (nonempty) { for (i in files) print i; }; }'`; \
361 mkid -fID $$unique
362 tags: TAGS
363
364 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
365 $(TAGS_FILES) $(LISP)
366 set x; \
367 here=`pwd`; \
368 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
369 unique=`for i in $$list; do \
370 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
371 done | \
372 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
373 END { if (nonempty) { for (i in files) print i; }; }'`; \
374 shift; \
375 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
376 test -n "$$unique" || unique=$$empty_fix; \
377 if test $$# -gt 0; then \
378 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
379 "$$@" $$unique; \
380 else \
381 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
382 $$unique; \
383 fi; \
384 fi
385 ctags: CTAGS
386 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
387 $(TAGS_FILES) $(LISP)
388 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
389 unique=`for i in $$list; do \
390 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
391 done | \
392 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
393 END { if (nonempty) { for (i in files) print i; }; }'`; \
394 test -z "$(CTAGS_ARGS)$$unique" \
395 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
396 $$unique
397
398 GTAGS:
399 here=`$(am__cd) $(top_builddir) && pwd` \
400 && $(am__cd) $(top_srcdir) \
401 && gtags -i $(GTAGS_ARGS) "$$here"
402
403 distclean-tags:
404 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
405
406 distdir: $(DISTFILES)
407 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
408 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
409 list='$(DISTFILES)'; \
410 dist_files=`for file in $$list; do echo $$file; done | \
411 sed -e "s|^$$srcdirstrip/||;t" \
412 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
413 case $$dist_files in \
414 */*) $(MKDIR_P) `echo "$$dist_files" | \
415 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
416 sort -u` ;; \
417 esac; \
418 for file in $$dist_files; do \
419 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
420 if test -d $$d/$$file; then \
421 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
422 if test -d "$(distdir)/$$file"; then \
423 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
424 fi; \
425 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
426 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
427 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
428 fi; \
429 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
430 else \
431 test -f "$(distdir)/$$file" \
432 || cp -p $$d/$$file "$(distdir)/$$file" \
433 || exit 1; \
434 fi; \
435 done
436 check-am: all-am
437 check: check-am
438 all-am: Makefile $(LTLIBRARIES)
439 installdirs:
440 for dir in "$(DESTDIR)$(libdir)"; do \
441 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
442 done
443 install: install-am
444 install-exec: install-exec-am
445 install-data: install-data-am
446 uninstall: uninstall-am
447
448 install-am: all-am
449 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
450
451 installcheck: installcheck-am
452 install-strip:
453 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
454 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
455 `test -z '$(STRIP)' || \
456 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
457 mostlyclean-generic:
458
459 clean-generic:
460
461 distclean-generic:
462 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
463 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
464
465 maintainer-clean-generic:
466 @echo "This command is intended for maintainers to use"
467 @echo "it deletes files that may require special tools to rebuild."
468 clean: clean-am
469
470 clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
471 mostlyclean-am
472
473 distclean: distclean-am
474 -rm -rf ./$(DEPDIR)
475 -rm -f Makefile
476 distclean-am: clean-am distclean-compile distclean-generic \
477 distclean-tags
478
479 dvi: dvi-am
480
481 dvi-am:
482
483 html: html-am
484
485 html-am:
486
487 info: info-am
488
489 info-am:
490
491 install-data-am:
492
493 install-dvi: install-dvi-am
494
495 install-dvi-am:
496
497 install-exec-am: install-libLTLIBRARIES
498
499 install-html: install-html-am
500
501 install-html-am:
502
503 install-info: install-info-am
504
505 install-info-am:
506
507 install-man:
508
509 install-pdf: install-pdf-am
510
511 install-pdf-am:
512
513 install-ps: install-ps-am
514
515 install-ps-am:
516
517 installcheck-am:
518
519 maintainer-clean: maintainer-clean-am
520 -rm -rf ./$(DEPDIR)
521 -rm -f Makefile
522 maintainer-clean-am: distclean-am maintainer-clean-generic
523
524 mostlyclean: mostlyclean-am
525
526 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
527 mostlyclean-libtool
528
529 pdf: pdf-am
530
531 pdf-am:
532
533 ps: ps-am
534
535 ps-am:
536
537 uninstall-am: uninstall-libLTLIBRARIES
538
539 .MAKE: install-am install-strip
540
541 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
542 clean-libLTLIBRARIES clean-libtool ctags distclean \
543 distclean-compile distclean-generic distclean-libtool \
544 distclean-tags distdir dvi dvi-am html html-am info info-am \
545 install install-am install-data install-data-am install-dvi \
546 install-dvi-am install-exec install-exec-am install-html \
547 install-html-am install-info install-info-am \
548 install-libLTLIBRARIES install-man install-pdf install-pdf-am \
549 install-ps install-ps-am install-strip installcheck \
550 installcheck-am installdirs maintainer-clean \
551 maintainer-clean-generic mostlyclean mostlyclean-compile \
552 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
553 tags uninstall uninstall-am uninstall-libLTLIBRARIES
554
555
556 # Tell versions [3.59,3.63) of GNU make to not export all variables.
557 # Otherwise a system limit (for SysV at least) may be exceeded.
558 .NOEXPORT:
(No changes)
(No changes)
(No changes)
(No changes)
8585 /**
8686 * checks if a block key is valid
8787 * @param key the two caracters key to check
88 * @return MPC_STATUS_INVALIDSV if the key is invalid, MPC_STATUS_OK else
88 * @return MPC_STATUS_FAIL if the key is invalid, MPC_STATUS_OK else
8989 */
9090 static mpc_inline mpc_status mpc_check_key(char * key)
9191 {
9292 if (key[0] < 65 || key[0] > 90 || key[1] < 65 || key[1] > 90)
93 return MPC_STATUS_INVALIDSV;
93 return MPC_STATUS_FAIL;
9494 return MPC_STATUS_OK;
9595 }
9696
9999 void mpc_decoder_init_quant(mpc_decoder *d, double scale_factor);
100100 void mpc_decoder_synthese_filter_float(mpc_decoder *d, MPC_SAMPLE_FORMAT* OutData, mpc_int_t channels);
101101
102 #define MPC_IS_FAILURE(X) ((int)(X) < (int)MPC_STATUS_OK)
103 #define MPC_AUTO_FAIL(X) { mpc_status s = (X); if (MPC_IS_FAILURE(s)) return s; }
104
105
102106 #ifdef __cplusplus
103107 }
104108 #endif
135135 mpc_uint32_t mpc_bits_log_dec(mpc_bits_reader * r, mpc_uint_t max)
136136 {
137137 mpc_uint32_t value = 0;
138 if (max == 0)
139 return 0;
138140 if (log2[max - 1] > 1)
139141 value = mpc_bits_read(r, log2[max - 1] - 1);
140142 if (value >= log2_lost[max - 1])
528528 }
529529
530530 if (d->ms) {
531 int cnt = 0, tot = 0;
531 mpc_uint_t cnt = 0, tot = 0;
532532 mpc_uint32_t tmp = 0;
533533 for( n = 0; n < Max_used_Band; n++)
534534 if ( d->Res_L[n] != 0 || d->Res_R[n] != 0 )
610610 {6, 5, 4, 5, 6, 5, 4, 3, 4, 5, 4, 3, 2, 3, 4, 5, 4, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 4, 5, 4, 3, 2, 3, 4, 3, 2, 1, 2, 3, 4, 3, 2, 3, 4, 5, 4, 3, 4, 5, 4, 3, 2, 3, 4, 3, 2, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 2, 3, 4, 3, 2, 3, 4, 5, 4, 3, 4, 5, 4, 3, 2, 3, 4, 3, 2, 1, 2, 3, 4, 3, 2, 3, 4, 5, 4, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 4, 5, 4, 3, 2, 3, 4, 5, 4, 3, 4, 5, 6, 5, 4, 5, 6};
611611
612612 do {
613 mpc_int32_t k = 0, idx = 1;
613 mpc_uint32_t k = 0, idx = 1;
614614 if (Res != 0) {
615615 if (Res == 2) {
616616 Tables[0] = & mpc_can_Q [0][0];
626626 } else if (Res == 1) {
627627 Table = & mpc_can_Q1;
628628 for( ; k < 36; ){
629 int kmax = k + 18;
629 mpc_uint32_t kmax = k + 18;
630630 mpc_uint_t cnt = mpc_bits_can_dec(r, Table);
631631 idx = 0;
632632 if (cnt > 0 && cnt < 18)
3535 #include <string.h>
3636 #include <mpc/streaminfo.h>
3737 #include <mpc/mpcdec.h>
38 #include <mpc/minimax.h>
3839 #include "internal.h"
3940 #include "decoder.h"
4041 #include "huffman.h"
6970 d->block_frames = 0;
7071 }
7172
73 // Returns the amount of unread bytes in the demux buffer.
74 // Unchecked version - may return a negative value when we've been reading
75 // past the end of the valid data as a result of some problem with the file.
76 static mpc_int32_t mpc_unread_bytes_unchecked(mpc_demux * d) {
77 return d->bytes_total + d->buffer - d->bits_reader.buff - ((8 - d->bits_reader.count) >> 3);
78 }
79
80 // Returns the amount of unread bytes in the demux buffer.
81 static mpc_uint32_t mpc_unread_bytes(mpc_demux * d) {
82 mpc_int32_t unread_bytes = mpc_unread_bytes_unchecked(d);
83
84 if (unread_bytes < 0) return 0;
85
86 return (mpc_uint32_t) unread_bytes;
87 }
88
89
90
91 // Returns the number of bytes available in the buffer.
7292 static mpc_uint32_t
7393 mpc_demux_fill(mpc_demux * d, mpc_uint32_t min_bytes, int flags)
7494 {
75 mpc_uint32_t unread_bytes = d->bytes_total + d->buffer - d->bits_reader.buff
76 - ((8 - d->bits_reader.count) >> 3);
95 mpc_uint32_t unread_bytes = (mpc_uint32_t) mpc_unread_bytes_unchecked(d);
7796 int offset = 0;
7897
98 if ((mpc_int32_t)
99 unread_bytes < 0) return 0; // Error - we've been reading past the end of the buffer - abort
100
79101 if (min_bytes == 0 || min_bytes > DEMUX_BUFFER_SIZE ||
80 (unread_bytes < min_bytes && flags & MPC_BUFFER_FULL))
102 (unread_bytes < min_bytes && (flags & MPC_BUFFER_FULL) != 0 ))
81103 min_bytes = DEMUX_BUFFER_SIZE;
82104
83105 if (unread_bytes < min_bytes) {
84106 mpc_uint32_t bytes2read = min_bytes - unread_bytes;
85107 mpc_uint32_t bytes_free = DEMUX_BUFFER_SIZE - d->bytes_total;
108 mpc_uint32_t bytesread;
86109
87110 if (flags & MPC_BUFFER_SWAP) {
88111 bytes2read &= -1 << 2;
99122 d->bits_reader.buff = d->buffer + offset;
100123 d->bytes_total = unread_bytes + offset;
101124 }
102 bytes2read = d->r->read(d->r, d->buffer + d->bytes_total, bytes2read);
103 if (flags & MPC_BUFFER_SWAP){
125 bytesread = d->r->read(d->r, d->buffer + d->bytes_total, bytes2read);
126 if (bytesread < bytes2read) {
127 memset(d->buffer + d->bytes_total + bytesread, 0, bytes2read - bytesread); // FIXME : why ?
128 }
129 if (flags & MPC_BUFFER_SWAP) {
104130 unsigned int i, * tmp = (unsigned int *) (d->buffer + d->bytes_total);
105131 for(i = 0 ;i < (bytes2read >> 2); i++)
106132 tmp[i] = mpc_swap32(tmp[i]);
107133 }
108 d->bytes_total += bytes2read;
109 return bytes2read;
110 }
111
112 return (mpc_uint32_t) -1;
134 d->bytes_total += bytesread;
135 unread_bytes += bytesread;
136 }
137
138 return unread_bytes;
113139 }
114140
115141 /**
118144 * @param fpos position in the stream in bits from the beginning of mpc datas
119145 * @param min_bytes number of bytes to load after seeking
120146 */
121 static void
147 static mpc_status
122148 mpc_demux_seek(mpc_demux * d, mpc_seek_t fpos, mpc_uint32_t min_bytes) {
123149 mpc_seek_t start_pos, end_pos;
124150 mpc_int_t bit_offset;
130156 if (fpos >= start_pos && fpos < end_pos) {
131157 d->bits_reader.buff = d->buffer + ((fpos - start_pos) >> 3);
132158 bit_offset = fpos & 7;
159 d->block_bits = 0;
160 d->block_frames = 0;
133161 } else {
134162 mpc_seek_t next_pos = fpos >> 3;
135163 if (d->si.stream_version == 7)
136164 next_pos = ((next_pos - d->si.header_position) & (-1 << 2)) + d->si.header_position;
137165 bit_offset = (int) (fpos - (next_pos << 3));
138166
139 d->r->seek(d->r, (mpc_int32_t) next_pos);
140167 mpc_demux_clear_buff(d);
168 if (!d->r->seek(d->r, (mpc_int32_t) next_pos))
169 return MPC_STATUS_FAIL;
141170 }
142171
143172 if (d->si.stream_version == 7)
146175 mpc_demux_fill(d, min_bytes + ((bit_offset + 7) >> 3), 0);
147176 d->bits_reader.buff += bit_offset >> 3;
148177 d->bits_reader.count = 8 - (bit_offset & 7);
178
179 return MPC_STATUS_OK;
149180 }
150181
151182 /**
165196 *
166197 * @param d demuxer context
167198 * @return size of tag, in bytes
168 * @return MPC_STATUS_FILE on errors of any kind
199 * @return MPC_STATUS_FAIL on errors of any kind
169200 */
170201 static mpc_int32_t mpc_demux_skip_id3v2(mpc_demux * d)
171202 {
188219 tmp[0] = mpc_bits_read(&d->bits_reader, 8); // read flags
189220 footerPresent = tmp[0] & 0x10;
190221 if ( tmp[0] & 0x0F )
191 return MPC_STATUS_FILE; // not (yet???) allowed
222 return MPC_STATUS_FAIL; // not (yet???) allowed
192223
193224 tmp[0] = mpc_bits_read(&d->bits_reader, 8); // read size
194225 tmp[1] = mpc_bits_read(&d->bits_reader, 8); // read size
196227 tmp[3] = mpc_bits_read(&d->bits_reader, 8); // read size
197228
198229 if ( (tmp[0] | tmp[1] | tmp[2] | tmp[3]) & 0x80 )
199 return MPC_STATUS_FILE; // not allowed
230 return MPC_STATUS_FAIL; // not allowed
200231
201232 // read headerSize (syncsave: 4 * $0xxxxxxx = 28 significant bits)
202233 size = tmp[0] << 21;
210241
211242 // This is called before file headers get read, streamversion etc isn't yet known, demuxing isn't properly initialized and we can't call mpc_demux_seek() from here.
212243 mpc_demux_clear_buff(d);
213 if (!d->r->seek(d->r, size)) return MPC_STATUS_FILE;
244 if (!d->r->seek(d->r, size))
245 return MPC_STATUS_FAIL;
214246
215247 return size;
216248 }
231263 }
232264 d->seek_table = malloc((size_t)(seek_table_size * sizeof(mpc_seek_t)));
233265 if (d->seek_table == 0)
234 return MPC_STATUS_FILE;
266 return MPC_STATUS_FAIL;
235267 d->seek_table[0] = (mpc_seek_t)mpc_demux_pos(d);
236268 d->seek_table_size = 1;
237269
238270 return MPC_STATUS_OK;
239271 }
240272
241 static void mpc_demux_ST(mpc_demux * d)
273 static mpc_status mpc_demux_ST(mpc_demux * d)
242274 {
243275 mpc_uint64_t tmp;
244276 mpc_seek_t * table, last[2];
247279 mpc_uint32_t file_table_size;
248280
249281 if (d->seek_table != 0)
250 return;
282 return MPC_STATUS_OK;
251283
252284 mpc_bits_get_size(&r, &tmp);
253285 file_table_size = (mpc_seek_t) tmp;
269301 table[0] = last[0] = (mpc_seek_t) (tmp + d->si.header_position) * 8;
270302
271303 if (d->seek_table_size == 1)
272 return;
304 return MPC_STATUS_OK;
273305
274306 mpc_bits_get_size(&r, &tmp);
275307 last[1] = (mpc_seek_t) (tmp + d->si.header_position) * 8;
285317 if ((i & mask) == 0)
286318 table[i >> diff_pwr] = last[i & 1];
287319 }
288 }
289
290 static void mpc_demux_SP(mpc_demux * d, int size, int block_size)
320 return MPC_STATUS_OK;
321 }
322
323 static mpc_status mpc_demux_SP(mpc_demux * d, int size, int block_size)
291324 {
292325 mpc_seek_t cur;
293326 mpc_uint64_t ptr;
296329
297330 cur = mpc_demux_pos(d);
298331 mpc_bits_get_size(&d->bits_reader, &ptr);
299 mpc_demux_seek(d, (ptr - size) * 8 + cur, 11);
332 MPC_AUTO_FAIL( mpc_demux_seek(d, (ptr - size) * 8 + cur, 11) );
300333 st_head_size = mpc_bits_get_block(&d->bits_reader, &b);
301334 if (memcmp(b.key, "ST", 2) == 0) {
302335 d->chap_pos = (ptr - size + b.size + st_head_size) * 8 + cur;
303336 d->chap_nb = -1;
304 mpc_demux_fill(d, (mpc_uint32_t) b.size, 0);
305 mpc_demux_ST(d);
306 }
307 mpc_demux_seek(d, cur, 11 + block_size);
308 }
309
310 static void mpc_demux_chap_find(mpc_demux * d)
337 if (mpc_demux_fill(d, (mpc_uint32_t) b.size, 0) < b.size)
338 return MPC_STATUS_FAIL;
339 MPC_AUTO_FAIL( mpc_demux_ST(d) );
340 }
341 return mpc_demux_seek(d, cur, 11 + block_size);
342 }
343
344 static void mpc_demux_chap_empty(mpc_demux * d) {
345 free(d->chap); d->chap = 0;
346 d->chap_nb = 0; // -1 for undefined, 0 for no chapters
347 d->chap_pos = 0;
348 }
349
350 static mpc_status mpc_demux_chap_find_inner(mpc_demux * d)
311351 {
312352 mpc_block b;
313353 int tag_size = 0, chap_size = 0, size, i = 0;
315355 d->chap_nb = 0;
316356
317357 if (d->si.stream_version < 8)
318 return;
358 return MPC_STATUS_OK;
319359
320360 if (d->chap_pos == 0) {
321361 mpc_uint64_t cur_pos = (d->si.header_position + 4) * 8;
322 mpc_demux_seek(d, cur_pos, 11); // seek to the beginning of the stream
362 MPC_AUTO_FAIL( mpc_demux_seek(d, cur_pos, 11) ); // seek to the beginning of the stream
323363 size = mpc_bits_get_block(&d->bits_reader, &b);
324364 while (memcmp(b.key, "SE", 2) != 0) {
325 if (mpc_check_key(b.key) != MPC_STATUS_OK)
326 return;
365 mpc_uint64_t new_pos = cur_pos + (size + b.size) * 8;
366 MPC_AUTO_FAIL(mpc_check_key(b.key));
367
327368 if (memcmp(b.key, "CT", 2) == 0) {
328369 if (d->chap_pos == 0) d->chap_pos = cur_pos;
329 } else
370 } else {
330371 d->chap_pos = 0;
331 cur_pos += (size + b.size) * 8;
332 mpc_demux_seek(d, cur_pos, 11);
372 }
373 if (new_pos <= cur_pos)
374 return MPC_STATUS_FAIL;
375 cur_pos = new_pos;
376
377 MPC_AUTO_FAIL( mpc_demux_seek(d, cur_pos, 11) );
333378 size = mpc_bits_get_block(&d->bits_reader, &b);
334379 }
335380 if (d->chap_pos == 0)
345390 size = mpc_bits_get_size(&d->bits_reader, &chap_sample) + 4;
346391 chap_size += size;
347392 tag_size += b.size - size;
348 mpc_demux_seek(d, d->chap_pos + (chap_size + tag_size) * 8, 20);
393 MPC_AUTO_FAIL( mpc_demux_seek(d, d->chap_pos + (chap_size + tag_size) * 8, 20) );
349394 size = mpc_bits_get_block(&d->bits_reader, &b);
350395 }
351396
352397 if (d->chap_nb > 0) {
353398 char * ptag;
354399 d->chap = malloc(sizeof(mpc_chap_info) * d->chap_nb + tag_size);
400 if (d->chap == 0)
401 return MPC_STATUS_FAIL;
402
355403 ptag = (char*)(d->chap + d->chap_nb);
356404
357 mpc_demux_seek(d, d->chap_pos, 11);
405 MPC_AUTO_FAIL( mpc_demux_seek(d, d->chap_pos, 11) );
358406 size = mpc_bits_get_block(&d->bits_reader, &b);
359407 while (memcmp(b.key, "CT", 2) == 0) {
360 mpc_demux_fill(d, 11 + (mpc_uint32_t) b.size, 0);
408 mpc_uint_t tmp_size;
409 char * tmp_ptag = ptag;
410 if (mpc_demux_fill(d, 11 + (mpc_uint32_t) b.size, 0) < b.size)
411 return MPC_STATUS_FAIL;
361412 size = mpc_bits_get_size(&d->bits_reader, &d->chap[i].sample) + 4;
362413 d->chap[i].gain = (mpc_uint16_t) mpc_bits_read(&d->bits_reader, 16);
363414 d->chap[i].peak = (mpc_uint16_t) mpc_bits_read(&d->bits_reader, 16);
364 memcpy(ptag, d->bits_reader.buff + ((8 - d->bits_reader.count) >> 3), b.size - size);
365 d->bits_reader.buff += b.size - size;
415
416 tmp_size = b.size - size;
417 do {
418 mpc_uint_t rd_size = tmp_size;
419 mpc_uint8_t * tmp_buff = d->bits_reader.buff + ((8 - d->bits_reader.count) >> 3);
420 mpc_uint32_t avail_bytes = d->bytes_total + d->buffer - tmp_buff;
421 rd_size = mini(rd_size, avail_bytes);
422 memcpy(tmp_ptag, tmp_buff, rd_size);
423 tmp_size -= rd_size;
424 tmp_ptag += rd_size;
425 d->bits_reader.buff += rd_size;
426 mpc_demux_fill(d, tmp_size, 0);
427 } while (tmp_size > 0);
428
366429 d->chap[i].tag_size = b.size - size;
367430 d->chap[i].tag = ptag;
368431 ptag += b.size - size;
372435 }
373436
374437 d->bits_reader.buff -= size;
438 return MPC_STATUS_OK;
439 }
440
441 static mpc_status mpc_demux_chap_find(mpc_demux * d) {
442 mpc_status s = mpc_demux_chap_find_inner(d);
443 if (MPC_IS_FAILURE(s))
444 mpc_demux_chap_empty(d);
445 return s;
375446 }
376447
377448 /**
411482
412483 // get header position
413484 d->si.header_position = mpc_demux_skip_id3v2(d);
414 if(d->si.header_position < 0) return MPC_STATUS_FILE;
485 if(d->si.header_position < 0)
486 return MPC_STATUS_FAIL;
415487
416488 d->si.tag_offset = d->si.total_file_length = d->r->get_size(d->r);
417489
424496 if (memcmp(magic, "MP+", 3) == 0) {
425497 d->si.stream_version = magic[3] & 15;
426498 d->si.pns = magic[3] >> 4;
427 if (d->si.stream_version == 7) {
428 mpc_status ret;
429 mpc_demux_fill(d, 6 * 4, MPC_BUFFER_SWAP); // header block size + endian convertion
430 ret = streaminfo_read_header_sv7(&d->si, &d->bits_reader);
431 if (ret != MPC_STATUS_OK) return ret;
432 } else {
433 return MPC_STATUS_INVALIDSV;
434 }
499 if (d->si.stream_version != 7)
500 return MPC_STATUS_FAIL;
501 if (mpc_demux_fill(d, 6 * 4, MPC_BUFFER_SWAP) < 6 * 4) // header block size + endian convertion
502 return MPC_STATUS_FAIL;
503 MPC_AUTO_FAIL( streaminfo_read_header_sv7(&d->si, &d->bits_reader) );
435504 } else if (memcmp(magic, "MPCK", 4) == 0) {
436505 mpc_block b;
437506 int size;
439508 size = mpc_bits_get_block(&d->bits_reader, &b);
440509 while( memcmp(b.key, "AP", 2) != 0 ){ // scan all blocks until audio
441510 if (mpc_check_key(b.key) != MPC_STATUS_OK)
442 return MPC_STATUS_INVALIDSV;
511 return MPC_STATUS_FAIL;
443512 if (b.size > (mpc_uint64_t) DEMUX_BUFFER_SIZE - 11)
444 return MPC_STATUS_INVALIDSV;
445 mpc_demux_fill(d, 11 + (mpc_uint32_t) b.size, 0);
446 if (memcmp(b.key, "SH", 2) == 0){
447 int ret = streaminfo_read_header_sv8(&d->si, &d->bits_reader, (mpc_uint32_t) b.size);
448 if (ret != MPC_STATUS_OK) return ret;
449 } else if (memcmp(b.key, "RG", 2) == 0)
513 return MPC_STATUS_FAIL;
514
515 if (mpc_demux_fill(d, 11 + (mpc_uint32_t) b.size, 0) <= b.size)
516 return MPC_STATUS_FAIL;
517
518 if (memcmp(b.key, "SH", 2) == 0) {
519 MPC_AUTO_FAIL( streaminfo_read_header_sv8(&d->si, &d->bits_reader, (mpc_uint32_t) b.size) );
520 } else if (memcmp(b.key, "RG", 2) == 0) {
450521 streaminfo_gain(&d->si, &d->bits_reader);
451 else if (memcmp(b.key, "EI", 2) == 0)
522 } else if (memcmp(b.key, "EI", 2) == 0) {
452523 streaminfo_encoder_info(&d->si, &d->bits_reader);
453 else if (memcmp(b.key, "SO", 2) == 0)
454 mpc_demux_SP(d, size, (mpc_uint32_t) b.size);
455 else if (memcmp(b.key, "ST", 2) == 0)
456 mpc_demux_ST(d);
524 } else if (memcmp(b.key, "SO", 2) == 0) {
525 MPC_AUTO_FAIL( mpc_demux_SP(d, size, (mpc_uint32_t) b.size) );
526 } else if (memcmp(b.key, "ST", 2) == 0) {
527 MPC_AUTO_FAIL( mpc_demux_ST(d) );
528 }
457529 d->bits_reader.buff += b.size;
458530 size = mpc_bits_get_block(&d->bits_reader, &b);
459531 }
460532 d->bits_reader.buff -= size;
461533 if (d->si.stream_version == 0) // si not initialized !!!
462 return MPC_STATUS_INVALIDSV;
463 } else
464 return MPC_STATUS_INVALIDSV;
534 return MPC_STATUS_FAIL;
535 } else {
536 return MPC_STATUS_FAIL;
537 }
465538
466539 return MPC_STATUS_OK;
467540 }
502575 memcpy(i, &d->si, sizeof d->si);
503576 }
504577
505 mpc_status mpc_demux_decode(mpc_demux * d, mpc_frame_info * i)
578 static mpc_status mpc_demux_decode_inner(mpc_demux * d, mpc_frame_info * i)
506579 {
507580 mpc_bits_reader r;
508581 if (d->si.stream_version >= 8) {
515588 d->seek_table[d->seek_table_size] = (mpc_seek_t) mpc_demux_pos(d);
516589 d->seek_table_size ++;
517590 }
518 mpc_demux_fill(d, 11, 0); // max header block size
591 mpc_demux_fill(d, 11, MPC_BUFFER_FULL); // max header block size
519592 mpc_bits_get_block(&d->bits_reader, &b);
520593 while( memcmp(b.key, "AP", 2) != 0 ) { // scan all blocks until audio
521 if (mpc_check_key(b.key) != MPC_STATUS_OK)
522 goto error;
594 MPC_AUTO_FAIL( mpc_check_key(b.key) );
595
523596 if (memcmp(b.key, "SE", 2) == 0) { // end block
524597 i->bits = -1;
525598 return MPC_STATUS_OK;
526599 }
527 if (mpc_demux_fill(d, 11 + (mpc_uint32_t) b.size, 0) == 0)
528 goto error;
600
601 if (mpc_demux_fill(d, 11 + (mpc_uint32_t) b.size, MPC_BUFFER_FULL) < b.size)
602 return MPC_STATUS_FAIL;
603
529604 d->bits_reader.buff += b.size;
530605 mpc_bits_get_block(&d->bits_reader, &b);
531606 }
534609 i->is_key_frame = MPC_TRUE;
535610 }
536611 if (d->buffer + d->bytes_total - d->bits_reader.buff <= MAX_FRAME_SIZE)
537 mpc_demux_fill(d, (d->block_bits >> 3) + 1, 0);
612 mpc_demux_fill(d, (d->block_bits >> 3) + 1, MPC_BUFFER_FULL);
538613 r = d->bits_reader;
539614 mpc_decoder_decode_frame(d->d, &d->bits_reader, i);
540615 d->block_bits -= ((d->bits_reader.buff - r.buff) << 3) + r.count - d->bits_reader.count;
541616 d->block_frames--;
542617 if (d->block_bits < 0 || (d->block_frames == 0 && d->block_bits > 7))
543 goto error;
618 return MPC_STATUS_FAIL;
544619 } else {
545620 if (d->d->decoded_samples == (d->seek_table_size << d->seek_pwr) * MPC_FRAME_LENGTH) {
546621 d->seek_table[d->seek_table_size] = (mpc_seek_t) mpc_demux_pos(d);
552627 r = d->bits_reader;
553628 mpc_decoder_decode_frame(d->d, &d->bits_reader, i);
554629 if (i->bits != -1 && d->block_bits != ((d->bits_reader.buff - r.buff) << 3) + r.count - d->bits_reader.count)
555 goto error;
630 return MPC_STATUS_FAIL;
556631 }
557632 if (i->bits != -1 && d->buffer + d->bytes_total < d->bits_reader.buff + ((8 - d->bits_reader.count) >> 3))
558 goto error;
633 return MPC_STATUS_FAIL;
559634
560635 return MPC_STATUS_OK;
561 error:
636 }
637
638 mpc_status mpc_demux_decode(mpc_demux * d, mpc_frame_info * i) {
639 mpc_status s = mpc_demux_decode_inner(d, i);
640 if (MPC_IS_FAILURE(s))
562641 i->bits = -1; // we pretend it's end of file
563 return MPC_STATUS_INVALIDSV;
642 return s;
564643 }
565644
566645 mpc_status mpc_demux_seek_second(mpc_demux * d, double seconds)
635714 void mpc_set_replay_level(mpc_demux * d, float level, mpc_bool_t use_gain,
636715 mpc_bool_t use_title, mpc_bool_t clip_prevention)
637716 {
638 float peak = use_title ? d->si.peak_title : d->si.peak_album;
639 float gain = use_title ? d->si.gain_title : d->si.gain_album;
717 float peak = (float) ( use_title ? d->si.peak_title : d->si.peak_album );
718 float gain = (float) ( use_title ? d->si.gain_title : d->si.gain_album );
640719
641720 if(!use_gain && !clip_prevention)
642721 return;
644723 if(!peak)
645724 peak = 1.;
646725 else
647 peak = (1 << 15) / pow(10, peak / (20 * 256));
726 peak = (float) ( (1 << 15) / pow(10, peak / (20 * 256)) );
648727
649728 if(!gain)
650729 gain = 1.;
651730 else
652 gain = pow(10, (level - gain / 256) / 20);
731 gain = (float) pow(10, (level - gain / 256) / 20);
653732
654733 if(clip_prevention && (peak < gain || !use_gain))
655734 gain = peak;
4949 read_stdio(mpc_reader *p_reader, void *ptr, mpc_int32_t size)
5050 {
5151 mpc_reader_stdio *p_stdio = (mpc_reader_stdio*) p_reader->data;
52 if(p_stdio->magic != STDIO_MAGIC) return MPC_STATUS_FILE;
52 if(p_stdio->magic != STDIO_MAGIC) return MPC_STATUS_FAIL;
5353 return (mpc_int32_t) fread(ptr, 1, size, p_stdio->p_file);
5454 }
5555
6565 tell_stdio(mpc_reader *p_reader)
6666 {
6767 mpc_reader_stdio *p_stdio = (mpc_reader_stdio*) p_reader->data;
68 if(p_stdio->magic != STDIO_MAGIC) return MPC_STATUS_FILE;
68 if(p_stdio->magic != STDIO_MAGIC) return MPC_STATUS_FAIL;
6969 return ftell(p_stdio->p_file);
7070 }
7171
7373 get_size_stdio(mpc_reader *p_reader)
7474 {
7575 mpc_reader_stdio *p_stdio = (mpc_reader_stdio*) p_reader->data;
76 if(p_stdio->magic != STDIO_MAGIC) return MPC_STATUS_FILE;
76 if(p_stdio->magic != STDIO_MAGIC) return MPC_STATUS_FAIL;
7777 return p_stdio->file_size;
7878 }
7979
9393 p_stdio = NULL;
9494 memset(&tmp_reader, 0, sizeof tmp_reader);
9595 p_stdio = malloc(sizeof *p_stdio);
96 if(!p_stdio) return MPC_STATUS_FILE;
96 if(!p_stdio) return MPC_STATUS_FAIL;
9797 memset(p_stdio, 0, sizeof *p_stdio);
9898
9999 p_stdio->magic = STDIO_MAGIC;
120120 if(p_stdio && p_stdio->p_file)
121121 fclose(p_stdio->p_file);
122122 free(p_stdio);
123 return MPC_STATUS_FILE;
123 return MPC_STATUS_FAIL;
124124 }
125125
126126 mpc_status
127127 mpc_reader_init_stdio(mpc_reader *p_reader, const char *filename)
128128 {
129129 FILE * stream = fopen(filename, "rb");
130 if (stream == NULL) return MPC_STATUS_FILE;
130 if (stream == NULL) return MPC_STATUS_FAIL;
131131 return mpc_reader_init_stdio_stream(p_reader,stream);
132132 }
133133
(No changes)
(No changes)
9898 static mpc_status check_streaminfo(mpc_streaminfo * si)
9999 {
100100 if (si->max_band == 0 || si->max_band >= 32
101 || si->channels > 2)
102 return MPC_STATUS_FILE;
101 || si->channels > 2 || si->channels == 0 || si->sample_freq == 0)
102 return MPC_STATUS_FAIL;
103103 return MPC_STATUS_OK;
104104 }
105105
154154 mpc_get_encoder_string(si);
155155
156156 if (last_frame_samples == 0) last_frame_samples = MPC_FRAME_LENGTH;
157 else if (last_frame_samples > MPC_FRAME_LENGTH) return MPC_STATUS_FAIL;
157158 si->samples = (mpc_int64_t) frames * MPC_FRAME_LENGTH;
158159 if (si->is_true_gapless)
159160 si->samples -= (MPC_FRAME_LENGTH - last_frame_samples);
190191
191192 CRC = (mpc_bits_read(&r, 16) << 16) | mpc_bits_read(&r, 16);
192193 if (CRC != mpc_crc32(r.buff + 1 - (r.count >> 3), (int)block_size - 4))
193 return MPC_STATUS_FILE;
194 return MPC_STATUS_FAIL;
194195
195196 si->stream_version = mpc_bits_read(&r, 8);
196197 if (si->stream_version != 8)
197 return MPC_STATUS_INVALIDSV;
198 return MPC_STATUS_FAIL;
198199
199200 mpc_bits_get_size(&r, &si->samples);
200201 mpc_bits_get_size(&r, &si->beg_silence);
(No changes)
+0
-476
libmpcenc/Makefile.in less more
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
6 # This Makefile.in is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 # PARTICULAR PURPOSE.
14
15 @SET_MAKE@
16
17 VPATH = @srcdir@
18 pkgdatadir = $(datadir)/@PACKAGE@
19 pkgincludedir = $(includedir)/@PACKAGE@
20 pkglibdir = $(libdir)/@PACKAGE@
21 pkglibexecdir = $(libexecdir)/@PACKAGE@
22 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
23 install_sh_DATA = $(install_sh) -c -m 644
24 install_sh_PROGRAM = $(install_sh) -c
25 install_sh_SCRIPT = $(install_sh) -c
26 INSTALL_HEADER = $(INSTALL_DATA)
27 transform = $(program_transform_name)
28 NORMAL_INSTALL = :
29 PRE_INSTALL = :
30 POST_INSTALL = :
31 NORMAL_UNINSTALL = :
32 PRE_UNINSTALL = :
33 POST_UNINSTALL = :
34 build_triplet = @build@
35 host_triplet = @host@
36 subdir = libmpcenc
37 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
38 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
39 am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
40 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
41 $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
42 $(top_srcdir)/configure.in
43 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45 mkinstalldirs = $(install_sh) -d
46 CONFIG_HEADER = $(top_builddir)/include/config.h
47 CONFIG_CLEAN_FILES =
48 CONFIG_CLEAN_VPATH_FILES =
49 LIBRARIES = $(noinst_LIBRARIES)
50 ARFLAGS = cru
51 libmpcenc_a_AR = $(AR) $(ARFLAGS)
52 libmpcenc_a_LIBADD =
53 am_libmpcenc_a_OBJECTS = analy_filter.$(OBJEXT) bitstream.$(OBJEXT) \
54 encode_sv7.$(OBJEXT) huffsv7.$(OBJEXT) quant.$(OBJEXT)
55 libmpcenc_a_OBJECTS = $(am_libmpcenc_a_OBJECTS)
56 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include
57 depcomp = $(SHELL) $(top_srcdir)/config/depcomp
58 am__depfiles_maybe = depfiles
59 am__mv = mv -f
60 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
61 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
62 LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
63 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
64 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65 CCLD = $(CC)
66 LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
67 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
68 $(LDFLAGS) -o $@
69 SOURCES = $(libmpcenc_a_SOURCES)
70 DIST_SOURCES = $(libmpcenc_a_SOURCES)
71 ETAGS = etags
72 CTAGS = ctags
73 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
74 ACLOCAL = @ACLOCAL@
75 AMTAR = @AMTAR@
76 AR = @AR@
77 AS = @AS@
78 AUTOCONF = @AUTOCONF@
79 AUTOHEADER = @AUTOHEADER@
80 AUTOMAKE = @AUTOMAKE@
81 AWK = @AWK@
82 CC = @CC@
83 CCDEPMODE = @CCDEPMODE@
84 CFLAGS = @CFLAGS@
85 CPP = @CPP@
86 CPPFLAGS = @CPPFLAGS@
87 CYGPATH_W = @CYGPATH_W@
88 DEFS = @DEFS@
89 DEPDIR = @DEPDIR@
90 DLLTOOL = @DLLTOOL@
91 DSYMUTIL = @DSYMUTIL@
92 DUMPBIN = @DUMPBIN@
93 ECHO_C = @ECHO_C@
94 ECHO_N = @ECHO_N@
95 ECHO_T = @ECHO_T@
96 EGREP = @EGREP@
97 EXEEXT = @EXEEXT@
98 EXTRALIBS = @EXTRALIBS@
99 FGREP = @FGREP@
100 GREP = @GREP@
101 INSTALL = @INSTALL@
102 INSTALL_DATA = @INSTALL_DATA@
103 INSTALL_PROGRAM = @INSTALL_PROGRAM@
104 INSTALL_SCRIPT = @INSTALL_SCRIPT@
105 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
106 LD = @LD@
107 LDFLAGS = @LDFLAGS@
108 LIBOBJS = @LIBOBJS@
109 LIBS = @LIBS@
110 LIBTOOL = @LIBTOOL@
111 LIPO = @LIPO@
112 LN_S = @LN_S@
113 LTLIBOBJS = @LTLIBOBJS@
114 MAKEINFO = @MAKEINFO@
115 MKDIR_P = @MKDIR_P@
116 NM = @NM@
117 NMEDIT = @NMEDIT@
118 OBJDUMP = @OBJDUMP@
119 OBJEXT = @OBJEXT@
120 OTOOL = @OTOOL@
121 OTOOL64 = @OTOOL64@
122 PACKAGE = @PACKAGE@
123 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
124 PACKAGE_NAME = @PACKAGE_NAME@
125 PACKAGE_STRING = @PACKAGE_STRING@
126 PACKAGE_TARNAME = @PACKAGE_TARNAME@
127 PACKAGE_URL = @PACKAGE_URL@
128 PACKAGE_VERSION = @PACKAGE_VERSION@
129 PATH_SEPARATOR = @PATH_SEPARATOR@
130 RANLIB = @RANLIB@
131 SED = @SED@
132 SET_MAKE = @SET_MAKE@
133 SHELL = @SHELL@
134 STRIP = @STRIP@
135 VERSION = @VERSION@
136 abs_builddir = @abs_builddir@
137 abs_srcdir = @abs_srcdir@
138 abs_top_builddir = @abs_top_builddir@
139 abs_top_srcdir = @abs_top_srcdir@
140 ac_ct_CC = @ac_ct_CC@
141 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
142 am__include = @am__include@
143 am__leading_dot = @am__leading_dot@
144 am__quote = @am__quote@
145 am__tar = @am__tar@
146 am__untar = @am__untar@
147 bindir = @bindir@
148 build = @build@
149 build_alias = @build_alias@
150 build_cpu = @build_cpu@
151 build_os = @build_os@
152 build_vendor = @build_vendor@
153 builddir = @builddir@
154 datadir = @datadir@
155 datarootdir = @datarootdir@
156 docdir = @docdir@
157 dvidir = @dvidir@
158 exec_prefix = @exec_prefix@
159 host = @host@
160 host_alias = @host_alias@
161 host_cpu = @host_cpu@
162 host_os = @host_os@
163 host_vendor = @host_vendor@
164 htmldir = @htmldir@
165 includedir = @includedir@
166 infodir = @infodir@
167 install_sh = @install_sh@
168 libdir = @libdir@
169 libexecdir = @libexecdir@
170 localedir = @localedir@
171 localstatedir = @localstatedir@
172 lt_ECHO = @lt_ECHO@
173 mandir = @mandir@
174 mkdir_p = @mkdir_p@
175 oldincludedir = @oldincludedir@
176 pdfdir = @pdfdir@
177 prefix = @prefix@
178 program_transform_name = @program_transform_name@
179 psdir = @psdir@
180 sbindir = @sbindir@
181 sharedstatedir = @sharedstatedir@
182 srcdir = @srcdir@
183 sysconfdir = @sysconfdir@
184 target_alias = @target_alias@
185 top_build_prefix = @top_build_prefix@
186 top_builddir = @top_builddir@
187 top_srcdir = @top_srcdir@
188 EXTRA_DIST = CMakeLists.txt
189 AM_CPPFLAGS = -I$(top_srcdir)/include
190 @HAVE_VISIBILITY_TRUE@AM_CFLAGS = -fvisibility=hidden
191 METASOURCES = AUTO
192 noinst_LIBRARIES = libmpcenc.a
193 libmpcenc_a_SOURCES = analy_filter.c bitstream.c encode_sv7.c huffsv7.c quant.c libmpcenc.h
194 all: all-am
195
196 .SUFFIXES:
197 .SUFFIXES: .c .lo .o .obj
198 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
199 @for dep in $?; do \
200 case '$(am__configure_deps)' in \
201 *$$dep*) \
202 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
203 && { if test -f $@; then exit 0; else break; fi; }; \
204 exit 1;; \
205 esac; \
206 done; \
207 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu libmpcenc/Makefile'; \
208 $(am__cd) $(top_srcdir) && \
209 $(AUTOMAKE) --gnu libmpcenc/Makefile
210 .PRECIOUS: Makefile
211 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
212 @case '$?' in \
213 *config.status*) \
214 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
215 *) \
216 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
217 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
218 esac;
219
220 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
221 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
222
223 $(top_srcdir)/configure: $(am__configure_deps)
224 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
225 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
226 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
227 $(am__aclocal_m4_deps):
228
229 clean-noinstLIBRARIES:
230 -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
231 libmpcenc.a: $(libmpcenc_a_OBJECTS) $(libmpcenc_a_DEPENDENCIES)
232 -rm -f libmpcenc.a
233 $(libmpcenc_a_AR) libmpcenc.a $(libmpcenc_a_OBJECTS) $(libmpcenc_a_LIBADD)
234 $(RANLIB) libmpcenc.a
235
236 mostlyclean-compile:
237 -rm -f *.$(OBJEXT)
238
239 distclean-compile:
240 -rm -f *.tab.c
241
242 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/analy_filter.Po@am__quote@
243 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bitstream.Po@am__quote@
244 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/encode_sv7.Po@am__quote@
245 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/huffsv7.Po@am__quote@
246 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/quant.Po@am__quote@
247
248 .c.o:
249 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
250 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
251 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
252 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
253 @am__fastdepCC_FALSE@ $(COMPILE) -c $<
254
255 .c.obj:
256 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
257 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
258 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
259 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
260 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
261
262 .c.lo:
263 @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
264 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
265 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
266 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
267 @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
268
269 mostlyclean-libtool:
270 -rm -f *.lo
271
272 clean-libtool:
273 -rm -rf .libs _libs
274
275 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
276 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
277 unique=`for i in $$list; do \
278 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
279 done | \
280 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
281 END { if (nonempty) { for (i in files) print i; }; }'`; \
282 mkid -fID $$unique
283 tags: TAGS
284
285 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
286 $(TAGS_FILES) $(LISP)
287 set x; \
288 here=`pwd`; \
289 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
290 unique=`for i in $$list; do \
291 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
292 done | \
293 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
294 END { if (nonempty) { for (i in files) print i; }; }'`; \
295 shift; \
296 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
297 test -n "$$unique" || unique=$$empty_fix; \
298 if test $$# -gt 0; then \
299 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
300 "$$@" $$unique; \
301 else \
302 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
303 $$unique; \
304 fi; \
305 fi
306 ctags: CTAGS
307 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
308 $(TAGS_FILES) $(LISP)
309 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
310 unique=`for i in $$list; do \
311 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
312 done | \
313 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
314 END { if (nonempty) { for (i in files) print i; }; }'`; \
315 test -z "$(CTAGS_ARGS)$$unique" \
316 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
317 $$unique
318
319 GTAGS:
320 here=`$(am__cd) $(top_builddir) && pwd` \
321 && $(am__cd) $(top_srcdir) \
322 && gtags -i $(GTAGS_ARGS) "$$here"
323
324 distclean-tags:
325 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
326
327 distdir: $(DISTFILES)
328 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
329 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
330 list='$(DISTFILES)'; \
331 dist_files=`for file in $$list; do echo $$file; done | \
332 sed -e "s|^$$srcdirstrip/||;t" \
333 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
334 case $$dist_files in \
335 */*) $(MKDIR_P) `echo "$$dist_files" | \
336 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
337 sort -u` ;; \
338 esac; \
339 for file in $$dist_files; do \
340 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
341 if test -d $$d/$$file; then \
342 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
343 if test -d "$(distdir)/$$file"; then \
344 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
345 fi; \
346 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
347 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
348 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
349 fi; \
350 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
351 else \
352 test -f "$(distdir)/$$file" \
353 || cp -p $$d/$$file "$(distdir)/$$file" \
354 || exit 1; \
355 fi; \
356 done
357 check-am: all-am
358 check: check-am
359 all-am: Makefile $(LIBRARIES)
360 installdirs:
361 install: install-am
362 install-exec: install-exec-am
363 install-data: install-data-am
364 uninstall: uninstall-am
365
366 install-am: all-am
367 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
368
369 installcheck: installcheck-am
370 install-strip:
371 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
372 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
373 `test -z '$(STRIP)' || \
374 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
375 mostlyclean-generic:
376
377 clean-generic:
378
379 distclean-generic:
380 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
381 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
382
383 maintainer-clean-generic:
384 @echo "This command is intended for maintainers to use"
385 @echo "it deletes files that may require special tools to rebuild."
386 clean: clean-am
387
388 clean-am: clean-generic clean-libtool clean-noinstLIBRARIES \
389 mostlyclean-am
390
391 distclean: distclean-am
392 -rm -rf ./$(DEPDIR)
393 -rm -f Makefile
394 distclean-am: clean-am distclean-compile distclean-generic \
395 distclean-tags
396
397 dvi: dvi-am
398
399 dvi-am:
400
401 html: html-am
402
403 html-am:
404
405 info: info-am
406
407 info-am:
408
409 install-data-am:
410
411 install-dvi: install-dvi-am
412
413 install-dvi-am:
414
415 install-exec-am:
416
417 install-html: install-html-am
418
419 install-html-am:
420
421 install-info: install-info-am
422
423 install-info-am:
424
425 install-man:
426
427 install-pdf: install-pdf-am
428
429 install-pdf-am:
430
431 install-ps: install-ps-am
432
433 install-ps-am:
434
435 installcheck-am:
436
437 maintainer-clean: maintainer-clean-am
438 -rm -rf ./$(DEPDIR)
439 -rm -f Makefile
440 maintainer-clean-am: distclean-am maintainer-clean-generic
441
442 mostlyclean: mostlyclean-am
443
444 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
445 mostlyclean-libtool
446
447 pdf: pdf-am
448
449 pdf-am:
450
451 ps: ps-am
452
453 ps-am:
454
455 uninstall-am:
456
457 .MAKE: install-am install-strip
458
459 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
460 clean-libtool clean-noinstLIBRARIES ctags distclean \
461 distclean-compile distclean-generic distclean-libtool \
462 distclean-tags distdir dvi dvi-am html html-am info info-am \
463 install install-am install-data install-data-am install-dvi \
464 install-dvi-am install-exec install-exec-am install-html \
465 install-html-am install-info install-info-am install-man \
466 install-pdf install-pdf-am install-ps install-ps-am \
467 install-strip installcheck installcheck-am installdirs \
468 maintainer-clean maintainer-clean-generic mostlyclean \
469 mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
470 pdf pdf-am ps ps-am tags uninstall uninstall-am
471
472
473 # Tell versions [3.59,3.63) of GNU make to not export all variables.
474 # Otherwise a system limit (for SysV at least) may be exceeded.
475 .NOEXPORT:
(No changes)
(No changes)
(No changes)
(No changes)
(No changes)
+0
-481
libmpcpsy/Makefile.in less more
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
6 # This Makefile.in is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 # PARTICULAR PURPOSE.
14
15 @SET_MAKE@
16
17 VPATH = @srcdir@
18 pkgdatadir = $(datadir)/@PACKAGE@
19 pkgincludedir = $(includedir)/@PACKAGE@
20 pkglibdir = $(libdir)/@PACKAGE@
21 pkglibexecdir = $(libexecdir)/@PACKAGE@
22 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
23 install_sh_DATA = $(install_sh) -c -m 644
24 install_sh_PROGRAM = $(install_sh) -c
25 install_sh_SCRIPT = $(install_sh) -c
26 INSTALL_HEADER = $(INSTALL_DATA)
27 transform = $(program_transform_name)
28 NORMAL_INSTALL = :
29 PRE_INSTALL = :
30 POST_INSTALL = :
31 NORMAL_UNINSTALL = :
32 PRE_UNINSTALL = :
33 POST_UNINSTALL = :
34 build_triplet = @build@
35 host_triplet = @host@
36 subdir = libmpcpsy
37 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
38 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
39 am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
40 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
41 $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
42 $(top_srcdir)/configure.in
43 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45 mkinstalldirs = $(install_sh) -d
46 CONFIG_HEADER = $(top_builddir)/include/config.h
47 CONFIG_CLEAN_FILES =
48 CONFIG_CLEAN_VPATH_FILES =
49 LIBRARIES = $(noinst_LIBRARIES)
50 ARFLAGS = cru
51 libmpcpsy_a_AR = $(AR) $(ARFLAGS)
52 libmpcpsy_a_LIBADD =
53 am_libmpcpsy_a_OBJECTS = ans.$(OBJEXT) cvd.$(OBJEXT) fft4g.$(OBJEXT) \
54 fft_routines.$(OBJEXT) psy.$(OBJEXT) psy_tab.$(OBJEXT) \
55 profile.$(OBJEXT)
56 libmpcpsy_a_OBJECTS = $(am_libmpcpsy_a_OBJECTS)
57 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include
58 depcomp = $(SHELL) $(top_srcdir)/config/depcomp
59 am__depfiles_maybe = depfiles
60 am__mv = mv -f
61 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
62 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
63 LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
64 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
65 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
66 CCLD = $(CC)
67 LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
68 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
69 $(LDFLAGS) -o $@
70 SOURCES = $(libmpcpsy_a_SOURCES)
71 DIST_SOURCES = $(libmpcpsy_a_SOURCES)
72 ETAGS = etags
73 CTAGS = ctags
74 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
75 ACLOCAL = @ACLOCAL@
76 AMTAR = @AMTAR@
77 AR = @AR@
78 AS = @AS@
79 AUTOCONF = @AUTOCONF@
80 AUTOHEADER = @AUTOHEADER@
81 AUTOMAKE = @AUTOMAKE@
82 AWK = @AWK@
83 CC = @CC@
84 CCDEPMODE = @CCDEPMODE@
85 CFLAGS = @CFLAGS@
86 CPP = @CPP@
87 CPPFLAGS = @CPPFLAGS@
88 CYGPATH_W = @CYGPATH_W@
89 DEFS = @DEFS@
90 DEPDIR = @DEPDIR@
91 DLLTOOL = @DLLTOOL@
92 DSYMUTIL = @DSYMUTIL@
93 DUMPBIN = @DUMPBIN@
94 ECHO_C = @ECHO_C@
95 ECHO_N = @ECHO_N@
96 ECHO_T = @ECHO_T@
97 EGREP = @EGREP@
98 EXEEXT = @EXEEXT@
99 EXTRALIBS = @EXTRALIBS@
100 FGREP = @FGREP@
101 GREP = @GREP@
102 INSTALL = @INSTALL@
103 INSTALL_DATA = @INSTALL_DATA@
104 INSTALL_PROGRAM = @INSTALL_PROGRAM@
105 INSTALL_SCRIPT = @INSTALL_SCRIPT@
106 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
107 LD = @LD@
108 LDFLAGS = @LDFLAGS@
109 LIBOBJS = @LIBOBJS@
110 LIBS = @LIBS@
111 LIBTOOL = @LIBTOOL@
112 LIPO = @LIPO@
113 LN_S = @LN_S@
114 LTLIBOBJS = @LTLIBOBJS@
115 MAKEINFO = @MAKEINFO@
116 MKDIR_P = @MKDIR_P@
117 NM = @NM@
118 NMEDIT = @NMEDIT@
119 OBJDUMP = @OBJDUMP@
120 OBJEXT = @OBJEXT@
121 OTOOL = @OTOOL@
122 OTOOL64 = @OTOOL64@
123 PACKAGE = @PACKAGE@
124 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
125 PACKAGE_NAME = @PACKAGE_NAME@
126 PACKAGE_STRING = @PACKAGE_STRING@
127 PACKAGE_TARNAME = @PACKAGE_TARNAME@
128 PACKAGE_URL = @PACKAGE_URL@
129 PACKAGE_VERSION = @PACKAGE_VERSION@
130 PATH_SEPARATOR = @PATH_SEPARATOR@
131 RANLIB = @RANLIB@
132 SED = @SED@
133 SET_MAKE = @SET_MAKE@
134 SHELL = @SHELL@
135 STRIP = @STRIP@
136 VERSION = @VERSION@
137 abs_builddir = @abs_builddir@
138 abs_srcdir = @abs_srcdir@
139 abs_top_builddir = @abs_top_builddir@
140 abs_top_srcdir = @abs_top_srcdir@
141 ac_ct_CC = @ac_ct_CC@
142 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
143 am__include = @am__include@
144 am__leading_dot = @am__leading_dot@
145 am__quote = @am__quote@
146 am__tar = @am__tar@
147 am__untar = @am__untar@
148 bindir = @bindir@
149 build = @build@
150 build_alias = @build_alias@
151 build_cpu = @build_cpu@
152 build_os = @build_os@
153 build_vendor = @build_vendor@
154 builddir = @builddir@
155 datadir = @datadir@
156 datarootdir = @datarootdir@
157 docdir = @docdir@
158 dvidir = @dvidir@
159 exec_prefix = @exec_prefix@
160 host = @host@
161 host_alias = @host_alias@
162 host_cpu = @host_cpu@
163 host_os = @host_os@
164 host_vendor = @host_vendor@
165 htmldir = @htmldir@
166 includedir = @includedir@
167 infodir = @infodir@
168 install_sh = @install_sh@
169 libdir = @libdir@
170 libexecdir = @libexecdir@
171 localedir = @localedir@
172 localstatedir = @localstatedir@
173 lt_ECHO = @lt_ECHO@
174 mandir = @mandir@
175 mkdir_p = @mkdir_p@
176 oldincludedir = @oldincludedir@
177 pdfdir = @pdfdir@
178 prefix = @prefix@
179 program_transform_name = @program_transform_name@
180 psdir = @psdir@
181 sbindir = @sbindir@
182 sharedstatedir = @sharedstatedir@
183 srcdir = @srcdir@
184 sysconfdir = @sysconfdir@
185 target_alias = @target_alias@
186 top_build_prefix = @top_build_prefix@
187 top_builddir = @top_builddir@
188 top_srcdir = @top_srcdir@
189 EXTRA_DIST = CMakeLists.txt
190 AM_CPPFLAGS = -I$(top_srcdir)/include
191 @HAVE_VISIBILITY_TRUE@AM_CFLAGS = -fvisibility=hidden
192 METASOURCES = AUTO
193 noinst_LIBRARIES = libmpcpsy.a
194 libmpcpsy_a_SOURCES = ans.c cvd.c fft4g.c fft_routines.c psy.c psy_tab.c \
195 profile.c libmpcpsy.h
196
197 all: all-am
198
199 .SUFFIXES:
200 .SUFFIXES: .c .lo .o .obj
201 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
202 @for dep in $?; do \
203 case '$(am__configure_deps)' in \
204 *$$dep*) \
205 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
206 && { if test -f $@; then exit 0; else break; fi; }; \
207 exit 1;; \
208 esac; \
209 done; \
210 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu libmpcpsy/Makefile'; \
211 $(am__cd) $(top_srcdir) && \
212 $(AUTOMAKE) --gnu libmpcpsy/Makefile
213 .PRECIOUS: Makefile
214 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
215 @case '$?' in \
216 *config.status*) \
217 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
218 *) \
219 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
220 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
221 esac;
222
223 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
224 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
225
226 $(top_srcdir)/configure: $(am__configure_deps)
227 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
228 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
229 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
230 $(am__aclocal_m4_deps):
231
232 clean-noinstLIBRARIES:
233 -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
234 libmpcpsy.a: $(libmpcpsy_a_OBJECTS) $(libmpcpsy_a_DEPENDENCIES)
235 -rm -f libmpcpsy.a
236 $(libmpcpsy_a_AR) libmpcpsy.a $(libmpcpsy_a_OBJECTS) $(libmpcpsy_a_LIBADD)
237 $(RANLIB) libmpcpsy.a
238
239 mostlyclean-compile:
240 -rm -f *.$(OBJEXT)
241
242 distclean-compile:
243 -rm -f *.tab.c
244
245 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ans.Po@am__quote@
246 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cvd.Po@am__quote@
247 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fft4g.Po@am__quote@
248 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fft_routines.Po@am__quote@
249 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/profile.Po@am__quote@
250 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/psy.Po@am__quote@
251 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/psy_tab.Po@am__quote@
252
253 .c.o:
254 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
255 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
256 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
257 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
258 @am__fastdepCC_FALSE@ $(COMPILE) -c $<
259
260 .c.obj:
261 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
262 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
263 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
264 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
265 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
266
267 .c.lo:
268 @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
269 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
270 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
271 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
272 @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
273
274 mostlyclean-libtool:
275 -rm -f *.lo
276
277 clean-libtool:
278 -rm -rf .libs _libs
279
280 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
281 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
282 unique=`for i in $$list; do \
283 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
284 done | \
285 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
286 END { if (nonempty) { for (i in files) print i; }; }'`; \
287 mkid -fID $$unique
288 tags: TAGS
289
290 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
291 $(TAGS_FILES) $(LISP)
292 set x; \
293 here=`pwd`; \
294 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
295 unique=`for i in $$list; do \
296 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
297 done | \
298 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
299 END { if (nonempty) { for (i in files) print i; }; }'`; \
300 shift; \
301 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
302 test -n "$$unique" || unique=$$empty_fix; \
303 if test $$# -gt 0; then \
304 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
305 "$$@" $$unique; \
306 else \
307 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
308 $$unique; \
309 fi; \
310 fi
311 ctags: CTAGS
312 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
313 $(TAGS_FILES) $(LISP)
314 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
315 unique=`for i in $$list; do \
316 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
317 done | \
318 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
319 END { if (nonempty) { for (i in files) print i; }; }'`; \
320 test -z "$(CTAGS_ARGS)$$unique" \
321 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
322 $$unique
323
324 GTAGS:
325 here=`$(am__cd) $(top_builddir) && pwd` \
326 && $(am__cd) $(top_srcdir) \
327 && gtags -i $(GTAGS_ARGS) "$$here"
328
329 distclean-tags:
330 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
331
332 distdir: $(DISTFILES)
333 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
334 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
335 list='$(DISTFILES)'; \
336 dist_files=`for file in $$list; do echo $$file; done | \
337 sed -e "s|^$$srcdirstrip/||;t" \
338 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
339 case $$dist_files in \
340 */*) $(MKDIR_P) `echo "$$dist_files" | \
341 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
342 sort -u` ;; \
343 esac; \
344 for file in $$dist_files; do \
345 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
346 if test -d $$d/$$file; then \
347 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
348 if test -d "$(distdir)/$$file"; then \
349 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
350 fi; \
351 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
352 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
353 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
354 fi; \
355 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
356 else \
357 test -f "$(distdir)/$$file" \
358 || cp -p $$d/$$file "$(distdir)/$$file" \
359 || exit 1; \
360 fi; \
361 done
362 check-am: all-am
363 check: check-am
364 all-am: Makefile $(LIBRARIES)
365 installdirs:
366 install: install-am
367 install-exec: install-exec-am
368 install-data: install-data-am
369 uninstall: uninstall-am
370
371 install-am: all-am
372 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
373
374 installcheck: installcheck-am
375 install-strip:
376 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
377 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
378 `test -z '$(STRIP)' || \
379 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
380 mostlyclean-generic:
381
382 clean-generic:
383
384 distclean-generic:
385 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
386 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
387
388 maintainer-clean-generic:
389 @echo "This command is intended for maintainers to use"
390 @echo "it deletes files that may require special tools to rebuild."
391 clean: clean-am
392
393 clean-am: clean-generic clean-libtool clean-noinstLIBRARIES \
394 mostlyclean-am
395
396 distclean: distclean-am
397 -rm -rf ./$(DEPDIR)
398 -rm -f Makefile
399 distclean-am: clean-am distclean-compile distclean-generic \
400 distclean-tags
401
402 dvi: dvi-am
403
404 dvi-am:
405
406 html: html-am
407
408 html-am:
409
410 info: info-am
411
412 info-am:
413
414 install-data-am:
415
416 install-dvi: install-dvi-am
417
418 install-dvi-am:
419
420 install-exec-am:
421
422 install-html: install-html-am
423
424 install-html-am:
425
426 install-info: install-info-am
427
428 install-info-am:
429
430 install-man:
431
432 install-pdf: install-pdf-am
433
434 install-pdf-am:
435
436 install-ps: install-ps-am
437
438 install-ps-am:
439
440 installcheck-am:
441
442 maintainer-clean: maintainer-clean-am
443 -rm -rf ./$(DEPDIR)
444 -rm -f Makefile
445 maintainer-clean-am: distclean-am maintainer-clean-generic
446
447 mostlyclean: mostlyclean-am
448
449 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
450 mostlyclean-libtool
451
452 pdf: pdf-am
453
454 pdf-am:
455
456 ps: ps-am
457
458 ps-am:
459
460 uninstall-am:
461
462 .MAKE: install-am install-strip
463
464 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
465 clean-libtool clean-noinstLIBRARIES ctags distclean \
466 distclean-compile distclean-generic distclean-libtool \
467 distclean-tags distdir dvi dvi-am html html-am info info-am \
468 install install-am install-data install-data-am install-dvi \
469 install-dvi-am install-exec install-exec-am install-html \
470 install-html-am install-info install-info-am install-man \
471 install-pdf install-pdf-am install-ps install-ps-am \
472 install-strip installcheck installcheck-am installdirs \
473 maintainer-clean maintainer-clean-generic mostlyclean \
474 mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
475 pdf pdf-am ps ps-am tags uninstall uninstall-am
476
477
478 # Tell versions [3.59,3.63) of GNU make to not export all variables.
479 # Otherwise a system limit (for SysV at least) may be exceeded.
480 .NOEXPORT:
(No changes)
(No changes)
(No changes)
(No changes)
(No changes)
(No changes)
(No changes)
+0
-471
libwavformat/Makefile.in less more
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
6 # This Makefile.in is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 # PARTICULAR PURPOSE.
14
15 @SET_MAKE@
16
17 VPATH = @srcdir@
18 pkgdatadir = $(datadir)/@PACKAGE@
19 pkgincludedir = $(includedir)/@PACKAGE@
20 pkglibdir = $(libdir)/@PACKAGE@
21 pkglibexecdir = $(libexecdir)/@PACKAGE@
22 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
23 install_sh_DATA = $(install_sh) -c -m 644
24 install_sh_PROGRAM = $(install_sh) -c
25 install_sh_SCRIPT = $(install_sh) -c
26 INSTALL_HEADER = $(INSTALL_DATA)
27 transform = $(program_transform_name)
28 NORMAL_INSTALL = :
29 PRE_INSTALL = :
30 POST_INSTALL = :
31 NORMAL_UNINSTALL = :
32 PRE_UNINSTALL = :
33 POST_UNINSTALL = :
34 build_triplet = @build@
35 host_triplet = @host@
36 subdir = libwavformat
37 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
38 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
39 am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
40 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
41 $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
42 $(top_srcdir)/configure.in
43 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45 mkinstalldirs = $(install_sh) -d
46 CONFIG_HEADER = $(top_builddir)/include/config.h
47 CONFIG_CLEAN_FILES =
48 CONFIG_CLEAN_VPATH_FILES =
49 LIBRARIES = $(noinst_LIBRARIES)
50 ARFLAGS = cru
51 libwavformat_a_AR = $(AR) $(ARFLAGS)
52 libwavformat_a_LIBADD =
53 am_libwavformat_a_OBJECTS = input.$(OBJEXT) output.$(OBJEXT)
54 libwavformat_a_OBJECTS = $(am_libwavformat_a_OBJECTS)
55 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include
56 depcomp = $(SHELL) $(top_srcdir)/config/depcomp
57 am__depfiles_maybe = depfiles
58 am__mv = mv -f
59 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
60 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
61 LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
62 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
63 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
64 CCLD = $(CC)
65 LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
66 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
67 $(LDFLAGS) -o $@
68 SOURCES = $(libwavformat_a_SOURCES)
69 DIST_SOURCES = $(libwavformat_a_SOURCES)
70 ETAGS = etags
71 CTAGS = ctags
72 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
73 ACLOCAL = @ACLOCAL@
74 AMTAR = @AMTAR@
75 AR = @AR@
76 AS = @AS@
77 AUTOCONF = @AUTOCONF@
78 AUTOHEADER = @AUTOHEADER@
79 AUTOMAKE = @AUTOMAKE@
80 AWK = @AWK@
81 CC = @CC@
82 CCDEPMODE = @CCDEPMODE@
83 CFLAGS = @CFLAGS@
84 CPP = @CPP@
85 CPPFLAGS = @CPPFLAGS@
86 CYGPATH_W = @CYGPATH_W@
87 DEFS = @DEFS@
88 DEPDIR = @DEPDIR@
89 DLLTOOL = @DLLTOOL@
90 DSYMUTIL = @DSYMUTIL@
91 DUMPBIN = @DUMPBIN@
92 ECHO_C = @ECHO_C@
93 ECHO_N = @ECHO_N@
94 ECHO_T = @ECHO_T@
95 EGREP = @EGREP@
96 EXEEXT = @EXEEXT@
97 EXTRALIBS = @EXTRALIBS@
98 FGREP = @FGREP@
99 GREP = @GREP@
100 INSTALL = @INSTALL@
101 INSTALL_DATA = @INSTALL_DATA@
102 INSTALL_PROGRAM = @INSTALL_PROGRAM@
103 INSTALL_SCRIPT = @INSTALL_SCRIPT@
104 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
105 LD = @LD@
106 LDFLAGS = @LDFLAGS@
107 LIBOBJS = @LIBOBJS@
108 LIBS = @LIBS@
109 LIBTOOL = @LIBTOOL@
110 LIPO = @LIPO@
111 LN_S = @LN_S@
112 LTLIBOBJS = @LTLIBOBJS@
113 MAKEINFO = @MAKEINFO@
114 MKDIR_P = @MKDIR_P@
115 NM = @NM@
116 NMEDIT = @NMEDIT@
117 OBJDUMP = @OBJDUMP@
118 OBJEXT = @OBJEXT@
119 OTOOL = @OTOOL@
120 OTOOL64 = @OTOOL64@
121 PACKAGE = @PACKAGE@
122 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
123 PACKAGE_NAME = @PACKAGE_NAME@
124 PACKAGE_STRING = @PACKAGE_STRING@
125 PACKAGE_TARNAME = @PACKAGE_TARNAME@
126 PACKAGE_URL = @PACKAGE_URL@
127 PACKAGE_VERSION = @PACKAGE_VERSION@
128 PATH_SEPARATOR = @PATH_SEPARATOR@
129 RANLIB = @RANLIB@
130 SED = @SED@
131 SET_MAKE = @SET_MAKE@
132 SHELL = @SHELL@
133 STRIP = @STRIP@
134 VERSION = @VERSION@
135 abs_builddir = @abs_builddir@
136 abs_srcdir = @abs_srcdir@
137 abs_top_builddir = @abs_top_builddir@
138 abs_top_srcdir = @abs_top_srcdir@
139 ac_ct_CC = @ac_ct_CC@
140 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
141 am__include = @am__include@
142 am__leading_dot = @am__leading_dot@
143 am__quote = @am__quote@
144 am__tar = @am__tar@
145 am__untar = @am__untar@
146 bindir = @bindir@
147 build = @build@
148 build_alias = @build_alias@
149 build_cpu = @build_cpu@
150 build_os = @build_os@
151 build_vendor = @build_vendor@
152 builddir = @builddir@
153 datadir = @datadir@
154 datarootdir = @datarootdir@
155 docdir = @docdir@
156 dvidir = @dvidir@
157 exec_prefix = @exec_prefix@
158 host = @host@
159 host_alias = @host_alias@
160 host_cpu = @host_cpu@
161 host_os = @host_os@
162 host_vendor = @host_vendor@
163 htmldir = @htmldir@
164 includedir = @includedir@
165 infodir = @infodir@
166 install_sh = @install_sh@
167 libdir = @libdir@
168 libexecdir = @libexecdir@
169 localedir = @localedir@
170 localstatedir = @localstatedir@
171 lt_ECHO = @lt_ECHO@
172 mandir = @mandir@
173 mkdir_p = @mkdir_p@
174 oldincludedir = @oldincludedir@
175 pdfdir = @pdfdir@
176 prefix = @prefix@
177 program_transform_name = @program_transform_name@
178 psdir = @psdir@
179 sbindir = @sbindir@
180 sharedstatedir = @sharedstatedir@
181 srcdir = @srcdir@
182 sysconfdir = @sysconfdir@
183 target_alias = @target_alias@
184 top_build_prefix = @top_build_prefix@
185 top_builddir = @top_builddir@
186 top_srcdir = @top_srcdir@
187 EXTRA_DIST = CMakeLists.txt
188 @HAVE_VISIBILITY_TRUE@AM_CFLAGS = -fvisibility=hidden
189 METASOURCES = AUTO
190 noinst_LIBRARIES = libwavformat.a
191 libwavformat_a_SOURCES = input.c output.c libwaveformat.h
192 all: all-am
193
194 .SUFFIXES:
195 .SUFFIXES: .c .lo .o .obj
196 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
197 @for dep in $?; do \
198 case '$(am__configure_deps)' in \
199 *$$dep*) \
200 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
201 && { if test -f $@; then exit 0; else break; fi; }; \
202 exit 1;; \
203 esac; \
204 done; \
205 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu libwavformat/Makefile'; \
206 $(am__cd) $(top_srcdir) && \
207 $(AUTOMAKE) --gnu libwavformat/Makefile
208 .PRECIOUS: Makefile
209 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
210 @case '$?' in \
211 *config.status*) \
212 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
213 *) \
214 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
215 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
216 esac;
217
218 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
219 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
220
221 $(top_srcdir)/configure: $(am__configure_deps)
222 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
223 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
224 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
225 $(am__aclocal_m4_deps):
226
227 clean-noinstLIBRARIES:
228 -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
229 libwavformat.a: $(libwavformat_a_OBJECTS) $(libwavformat_a_DEPENDENCIES)
230 -rm -f libwavformat.a
231 $(libwavformat_a_AR) libwavformat.a $(libwavformat_a_OBJECTS) $(libwavformat_a_LIBADD)
232 $(RANLIB) libwavformat.a
233
234 mostlyclean-compile:
235 -rm -f *.$(OBJEXT)
236
237 distclean-compile:
238 -rm -f *.tab.c
239
240 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/input.Po@am__quote@
241 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/output.Po@am__quote@
242
243 .c.o:
244 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
245 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
246 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
247 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
248 @am__fastdepCC_FALSE@ $(COMPILE) -c $<
249
250 .c.obj:
251 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
252 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
253 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
254 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
255 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
256
257 .c.lo:
258 @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
259 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
260 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
261 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
262 @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
263
264 mostlyclean-libtool:
265 -rm -f *.lo
266
267 clean-libtool:
268 -rm -rf .libs _libs
269
270 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
271 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
272 unique=`for i in $$list; do \
273 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
274 done | \
275 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
276 END { if (nonempty) { for (i in files) print i; }; }'`; \
277 mkid -fID $$unique
278 tags: TAGS
279
280 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
281 $(TAGS_FILES) $(LISP)
282 set x; \
283 here=`pwd`; \
284 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
285 unique=`for i in $$list; do \
286 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
287 done | \
288 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
289 END { if (nonempty) { for (i in files) print i; }; }'`; \
290 shift; \
291 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
292 test -n "$$unique" || unique=$$empty_fix; \
293 if test $$# -gt 0; then \
294 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
295 "$$@" $$unique; \
296 else \
297 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
298 $$unique; \
299 fi; \
300 fi
301 ctags: CTAGS
302 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
303 $(TAGS_FILES) $(LISP)
304 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
305 unique=`for i in $$list; do \
306 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
307 done | \
308 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
309 END { if (nonempty) { for (i in files) print i; }; }'`; \
310 test -z "$(CTAGS_ARGS)$$unique" \
311 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
312 $$unique
313
314 GTAGS:
315 here=`$(am__cd) $(top_builddir) && pwd` \
316 && $(am__cd) $(top_srcdir) \
317 && gtags -i $(GTAGS_ARGS) "$$here"
318
319 distclean-tags:
320 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
321
322 distdir: $(DISTFILES)
323 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
324 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
325 list='$(DISTFILES)'; \
326 dist_files=`for file in $$list; do echo $$file; done | \
327 sed -e "s|^$$srcdirstrip/||;t" \
328 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
329 case $$dist_files in \
330 */*) $(MKDIR_P) `echo "$$dist_files" | \
331 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
332 sort -u` ;; \
333 esac; \
334 for file in $$dist_files; do \
335 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
336 if test -d $$d/$$file; then \
337 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
338 if test -d "$(distdir)/$$file"; then \
339 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
340 fi; \
341 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
342 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
343 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
344 fi; \
345 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
346 else \
347 test -f "$(distdir)/$$file" \
348 || cp -p $$d/$$file "$(distdir)/$$file" \
349 || exit 1; \
350 fi; \
351 done
352 check-am: all-am
353 check: check-am
354 all-am: Makefile $(LIBRARIES)
355 installdirs:
356 install: install-am
357 install-exec: install-exec-am
358 install-data: install-data-am
359 uninstall: uninstall-am
360
361 install-am: all-am
362 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
363
364 installcheck: installcheck-am
365 install-strip:
366 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
367 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
368 `test -z '$(STRIP)' || \
369 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
370 mostlyclean-generic:
371
372 clean-generic:
373
374 distclean-generic:
375 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
376 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
377
378 maintainer-clean-generic:
379 @echo "This command is intended for maintainers to use"
380 @echo "it deletes files that may require special tools to rebuild."
381 clean: clean-am
382
383 clean-am: clean-generic clean-libtool clean-noinstLIBRARIES \
384 mostlyclean-am
385
386 distclean: distclean-am
387 -rm -rf ./$(DEPDIR)
388 -rm -f Makefile
389 distclean-am: clean-am distclean-compile distclean-generic \
390 distclean-tags
391
392 dvi: dvi-am
393
394 dvi-am:
395
396 html: html-am
397
398 html-am:
399
400 info: info-am
401
402 info-am:
403
404 install-data-am:
405
406 install-dvi: install-dvi-am
407
408 install-dvi-am:
409
410 install-exec-am:
411
412 install-html: install-html-am
413
414 install-html-am:
415
416 install-info: install-info-am
417
418 install-info-am:
419
420 install-man:
421
422 install-pdf: install-pdf-am
423
424 install-pdf-am:
425
426 install-ps: install-ps-am
427
428 install-ps-am:
429
430 installcheck-am:
431
432 maintainer-clean: maintainer-clean-am
433 -rm -rf ./$(DEPDIR)
434 -rm -f Makefile
435 maintainer-clean-am: distclean-am maintainer-clean-generic
436
437 mostlyclean: mostlyclean-am
438
439 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
440 mostlyclean-libtool
441
442 pdf: pdf-am
443
444 pdf-am:
445
446 ps: ps-am
447
448 ps-am:
449
450 uninstall-am:
451
452 .MAKE: install-am install-strip
453
454 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
455 clean-libtool clean-noinstLIBRARIES ctags distclean \
456 distclean-compile distclean-generic distclean-libtool \
457 distclean-tags distdir dvi dvi-am html html-am info info-am \
458 install install-am install-data install-data-am install-dvi \
459 install-dvi-am install-exec install-exec-am install-html \
460 install-html-am install-info install-info-am install-man \
461 install-pdf install-pdf-am install-ps install-ps-am \
462 install-strip installcheck installcheck-am installdirs \
463 maintainer-clean maintainer-clean-generic mostlyclean \
464 mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
465 pdf pdf-am ps ps-am tags uninstall uninstall-am
466
467
468 # Tell versions [3.59,3.63) of GNU make to not export all variables.
469 # Otherwise a system limit (for SysV at least) may be exceeded.
470 .NOEXPORT:
(No changes)
(No changes)
+0
-7377
m4/libtool.m4 less more
0 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
1 #
2 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
3 # 2006, 2007, 2008 Free Software Foundation, Inc.
4 # Written by Gordon Matzigkeit, 1996
5 #
6 # This file is free software; the Free Software Foundation gives
7 # unlimited permission to copy and/or distribute it, with or without
8 # modifications, as long as this notice is preserved.
9
10 m4_define([_LT_COPYING], [dnl
11 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12 # 2006, 2007, 2008 Free Software Foundation, Inc.
13 # Written by Gordon Matzigkeit, 1996
14 #
15 # This file is part of GNU Libtool.
16 #
17 # GNU Libtool is free software; you can redistribute it and/or
18 # modify it under the terms of the GNU General Public License as
19 # published by the Free Software Foundation; either version 2 of
20 # the License, or (at your option) any later version.
21 #
22 # As a special exception to the GNU General Public License,
23 # if you distribute this file as part of a program or library that
24 # is built using GNU Libtool, you may include this file under the
25 # same distribution terms that you use for the rest of that program.
26 #
27 # GNU Libtool is distributed in the hope that it will be useful,
28 # but WITHOUT ANY WARRANTY; without even the implied warranty of
29 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30 # GNU General Public License for more details.
31 #
32 # You should have received a copy of the GNU General Public License
33 # along with GNU Libtool; see the file COPYING. If not, a copy
34 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
35 # obtained by writing to the Free Software Foundation, Inc.,
36 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
37 ])
38
39 # serial 56 LT_INIT
40
41
42 # LT_PREREQ(VERSION)
43 # ------------------
44 # Complain and exit if this libtool version is less that VERSION.
45 m4_defun([LT_PREREQ],
46 [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
47 [m4_default([$3],
48 [m4_fatal([Libtool version $1 or higher is required],
49 63)])],
50 [$2])])
51
52
53 # _LT_CHECK_BUILDDIR
54 # ------------------
55 # Complain if the absolute build directory name contains unusual characters
56 m4_defun([_LT_CHECK_BUILDDIR],
57 [case `pwd` in
58 *\ * | *\ *)
59 AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
60 esac
61 ])
62
63
64 # LT_INIT([OPTIONS])
65 # ------------------
66 AC_DEFUN([LT_INIT],
67 [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
68 AC_BEFORE([$0], [LT_LANG])dnl
69 AC_BEFORE([$0], [LT_OUTPUT])dnl
70 AC_BEFORE([$0], [LTDL_INIT])dnl
71 m4_require([_LT_CHECK_BUILDDIR])dnl
72
73 dnl Autoconf doesn't catch unexpanded LT_ macros by default:
74 m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
75 m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
76 dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
77 dnl unless we require an AC_DEFUNed macro:
78 AC_REQUIRE([LTOPTIONS_VERSION])dnl
79 AC_REQUIRE([LTSUGAR_VERSION])dnl
80 AC_REQUIRE([LTVERSION_VERSION])dnl
81 AC_REQUIRE([LTOBSOLETE_VERSION])dnl
82 m4_require([_LT_PROG_LTMAIN])dnl
83
84 dnl Parse OPTIONS
85 _LT_SET_OPTIONS([$0], [$1])
86
87 # This can be used to rebuild libtool when needed
88 LIBTOOL_DEPS="$ltmain"
89
90 # Always use our own libtool.
91 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
92 AC_SUBST(LIBTOOL)dnl
93
94 _LT_SETUP
95
96 # Only expand once:
97 m4_define([LT_INIT])
98 ])# LT_INIT
99
100 # Old names:
101 AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
102 AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
103 dnl aclocal-1.4 backwards compatibility:
104 dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
105 dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
106
107
108 # _LT_CC_BASENAME(CC)
109 # -------------------
110 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
111 m4_defun([_LT_CC_BASENAME],
112 [for cc_temp in $1""; do
113 case $cc_temp in
114 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
115 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
116 \-*) ;;
117 *) break;;
118 esac
119 done
120 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
121 ])
122
123
124 # _LT_FILEUTILS_DEFAULTS
125 # ----------------------
126 # It is okay to use these file commands and assume they have been set
127 # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
128 m4_defun([_LT_FILEUTILS_DEFAULTS],
129 [: ${CP="cp -f"}
130 : ${MV="mv -f"}
131 : ${RM="rm -f"}
132 ])# _LT_FILEUTILS_DEFAULTS
133
134
135 # _LT_SETUP
136 # ---------
137 m4_defun([_LT_SETUP],
138 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
139 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
140 _LT_DECL([], [host_alias], [0], [The host system])dnl
141 _LT_DECL([], [host], [0])dnl
142 _LT_DECL([], [host_os], [0])dnl
143 dnl
144 _LT_DECL([], [build_alias], [0], [The build system])dnl
145 _LT_DECL([], [build], [0])dnl
146 _LT_DECL([], [build_os], [0])dnl
147 dnl
148 AC_REQUIRE([AC_PROG_CC])dnl
149 AC_REQUIRE([LT_PATH_LD])dnl
150 AC_REQUIRE([LT_PATH_NM])dnl
151 dnl
152 AC_REQUIRE([AC_PROG_LN_S])dnl
153 test -z "$LN_S" && LN_S="ln -s"
154 _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
155 dnl
156 AC_REQUIRE([LT_CMD_MAX_LEN])dnl
157 _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
158 _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
159 dnl
160 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
161 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
162 m4_require([_LT_CMD_RELOAD])dnl
163 m4_require([_LT_CHECK_MAGIC_METHOD])dnl
164 m4_require([_LT_CMD_OLD_ARCHIVE])dnl
165 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
166
167 _LT_CONFIG_LIBTOOL_INIT([
168 # See if we are running on zsh, and set the options which allow our
169 # commands through without removal of \ escapes INIT.
170 if test -n "\${ZSH_VERSION+set}" ; then
171 setopt NO_GLOB_SUBST
172 fi
173 ])
174 if test -n "${ZSH_VERSION+set}" ; then
175 setopt NO_GLOB_SUBST
176 fi
177
178 _LT_CHECK_OBJDIR
179
180 m4_require([_LT_TAG_COMPILER])dnl
181 _LT_PROG_ECHO_BACKSLASH
182
183 case $host_os in
184 aix3*)
185 # AIX sometimes has problems with the GCC collect2 program. For some
186 # reason, if we set the COLLECT_NAMES environment variable, the problems
187 # vanish in a puff of smoke.
188 if test "X${COLLECT_NAMES+set}" != Xset; then
189 COLLECT_NAMES=
190 export COLLECT_NAMES
191 fi
192 ;;
193 esac
194
195 # Sed substitution that helps us do robust quoting. It backslashifies
196 # metacharacters that are still active within double-quoted strings.
197 sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
198
199 # Same as above, but do not quote variable references.
200 double_quote_subst='s/\([["`\\]]\)/\\\1/g'
201
202 # Sed substitution to delay expansion of an escaped shell variable in a
203 # double_quote_subst'ed string.
204 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
205
206 # Sed substitution to delay expansion of an escaped single quote.
207 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
208
209 # Sed substitution to avoid accidental globbing in evaled expressions
210 no_glob_subst='s/\*/\\\*/g'
211
212 # Global variables:
213 ofile=libtool
214 can_build_shared=yes
215
216 # All known linkers require a `.a' archive for static linking (except MSVC,
217 # which needs '.lib').
218 libext=a
219
220 with_gnu_ld="$lt_cv_prog_gnu_ld"
221
222 old_CC="$CC"
223 old_CFLAGS="$CFLAGS"
224
225 # Set sane defaults for various variables
226 test -z "$CC" && CC=cc
227 test -z "$LTCC" && LTCC=$CC
228 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
229 test -z "$LD" && LD=ld
230 test -z "$ac_objext" && ac_objext=o
231
232 _LT_CC_BASENAME([$compiler])
233
234 # Only perform the check for file, if the check method requires it
235 test -z "$MAGIC_CMD" && MAGIC_CMD=file
236 case $deplibs_check_method in
237 file_magic*)
238 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
239 _LT_PATH_MAGIC
240 fi
241 ;;
242 esac
243
244 # Use C for the default configuration in the libtool script
245 LT_SUPPORTED_TAG([CC])
246 _LT_LANG_C_CONFIG
247 _LT_LANG_DEFAULT_CONFIG
248 _LT_CONFIG_COMMANDS
249 ])# _LT_SETUP
250
251
252 # _LT_PROG_LTMAIN
253 # ---------------
254 # Note that this code is called both from `configure', and `config.status'
255 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
256 # `config.status' has no value for ac_aux_dir unless we are using Automake,
257 # so we pass a copy along to make sure it has a sensible value anyway.
258 m4_defun([_LT_PROG_LTMAIN],
259 [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
260 _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
261 ltmain="$ac_aux_dir/ltmain.sh"
262 ])# _LT_PROG_LTMAIN
263
264
265 ## ------------------------------------- ##
266 ## Accumulate code for creating libtool. ##
267 ## ------------------------------------- ##
268
269 # So that we can recreate a full libtool script including additional
270 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
271 # in macros and then make a single call at the end using the `libtool'
272 # label.
273
274
275 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
276 # ----------------------------------------
277 # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
278 m4_define([_LT_CONFIG_LIBTOOL_INIT],
279 [m4_ifval([$1],
280 [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
281 [$1
282 ])])])
283
284 # Initialize.
285 m4_define([_LT_OUTPUT_LIBTOOL_INIT])
286
287
288 # _LT_CONFIG_LIBTOOL([COMMANDS])
289 # ------------------------------
290 # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
291 m4_define([_LT_CONFIG_LIBTOOL],
292 [m4_ifval([$1],
293 [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
294 [$1
295 ])])])
296
297 # Initialize.
298 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
299
300
301 # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
302 # -----------------------------------------------------
303 m4_defun([_LT_CONFIG_SAVE_COMMANDS],
304 [_LT_CONFIG_LIBTOOL([$1])
305 _LT_CONFIG_LIBTOOL_INIT([$2])
306 ])
307
308
309 # _LT_FORMAT_COMMENT([COMMENT])
310 # -----------------------------
311 # Add leading comment marks to the start of each line, and a trailing
312 # full-stop to the whole comment if one is not present already.
313 m4_define([_LT_FORMAT_COMMENT],
314 [m4_ifval([$1], [
315 m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
316 [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
317 )])
318
319
320
321 ## ------------------------ ##
322 ## FIXME: Eliminate VARNAME ##
323 ## ------------------------ ##
324
325
326 # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
327 # -------------------------------------------------------------------
328 # CONFIGNAME is the name given to the value in the libtool script.
329 # VARNAME is the (base) name used in the configure script.
330 # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
331 # VARNAME. Any other value will be used directly.
332 m4_define([_LT_DECL],
333 [lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
334 [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
335 [m4_ifval([$1], [$1], [$2])])
336 lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
337 m4_ifval([$4],
338 [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
339 lt_dict_add_subkey([lt_decl_dict], [$2],
340 [tagged?], [m4_ifval([$5], [yes], [no])])])
341 ])
342
343
344 # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
345 # --------------------------------------------------------
346 m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
347
348
349 # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
350 # ------------------------------------------------
351 m4_define([lt_decl_tag_varnames],
352 [_lt_decl_filter([tagged?], [yes], $@)])
353
354
355 # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
356 # ---------------------------------------------------------
357 m4_define([_lt_decl_filter],
358 [m4_case([$#],
359 [0], [m4_fatal([$0: too few arguments: $#])],
360 [1], [m4_fatal([$0: too few arguments: $#: $1])],
361 [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
362 [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
363 [lt_dict_filter([lt_decl_dict], $@)])[]dnl
364 ])
365
366
367 # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
368 # --------------------------------------------------
369 m4_define([lt_decl_quote_varnames],
370 [_lt_decl_filter([value], [1], $@)])
371
372
373 # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
374 # ---------------------------------------------------
375 m4_define([lt_decl_dquote_varnames],
376 [_lt_decl_filter([value], [2], $@)])
377
378
379 # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
380 # ---------------------------------------------------
381 m4_define([lt_decl_varnames_tagged],
382 [m4_assert([$# <= 2])dnl
383 _$0(m4_quote(m4_default([$1], [[, ]])),
384 m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
385 m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
386 m4_define([_lt_decl_varnames_tagged],
387 [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
388
389
390 # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
391 # ------------------------------------------------
392 m4_define([lt_decl_all_varnames],
393 [_$0(m4_quote(m4_default([$1], [[, ]])),
394 m4_if([$2], [],
395 m4_quote(lt_decl_varnames),
396 m4_quote(m4_shift($@))))[]dnl
397 ])
398 m4_define([_lt_decl_all_varnames],
399 [lt_join($@, lt_decl_varnames_tagged([$1],
400 lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
401 ])
402
403
404 # _LT_CONFIG_STATUS_DECLARE([VARNAME])
405 # ------------------------------------
406 # Quote a variable value, and forward it to `config.status' so that its
407 # declaration there will have the same value as in `configure'. VARNAME
408 # must have a single quote delimited value for this to work.
409 m4_define([_LT_CONFIG_STATUS_DECLARE],
410 [$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
411
412
413 # _LT_CONFIG_STATUS_DECLARATIONS
414 # ------------------------------
415 # We delimit libtool config variables with single quotes, so when
416 # we write them to config.status, we have to be sure to quote all
417 # embedded single quotes properly. In configure, this macro expands
418 # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
419 #
420 # <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
421 m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
422 [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
423 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
424
425
426 # _LT_LIBTOOL_TAGS
427 # ----------------
428 # Output comment and list of tags supported by the script
429 m4_defun([_LT_LIBTOOL_TAGS],
430 [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
431 available_tags="_LT_TAGS"dnl
432 ])
433
434
435 # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
436 # -----------------------------------
437 # Extract the dictionary values for VARNAME (optionally with TAG) and
438 # expand to a commented shell variable setting:
439 #
440 # # Some comment about what VAR is for.
441 # visible_name=$lt_internal_name
442 m4_define([_LT_LIBTOOL_DECLARE],
443 [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
444 [description])))[]dnl
445 m4_pushdef([_libtool_name],
446 m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
447 m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
448 [0], [_libtool_name=[$]$1],
449 [1], [_libtool_name=$lt_[]$1],
450 [2], [_libtool_name=$lt_[]$1],
451 [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
452 m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
453 ])
454
455
456 # _LT_LIBTOOL_CONFIG_VARS
457 # -----------------------
458 # Produce commented declarations of non-tagged libtool config variables
459 # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
460 # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
461 # section) are produced by _LT_LIBTOOL_TAG_VARS.
462 m4_defun([_LT_LIBTOOL_CONFIG_VARS],
463 [m4_foreach([_lt_var],
464 m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
465 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
466
467
468 # _LT_LIBTOOL_TAG_VARS(TAG)
469 # -------------------------
470 m4_define([_LT_LIBTOOL_TAG_VARS],
471 [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
472 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
473
474
475 # _LT_TAGVAR(VARNAME, [TAGNAME])
476 # ------------------------------
477 m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
478
479
480 # _LT_CONFIG_COMMANDS
481 # -------------------
482 # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
483 # variables for single and double quote escaping we saved from calls
484 # to _LT_DECL, we can put quote escaped variables declarations
485 # into `config.status', and then the shell code to quote escape them in
486 # for loops in `config.status'. Finally, any additional code accumulated
487 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
488 m4_defun([_LT_CONFIG_COMMANDS],
489 [AC_PROVIDE_IFELSE([LT_OUTPUT],
490 dnl If the libtool generation code has been placed in $CONFIG_LT,
491 dnl instead of duplicating it all over again into config.status,
492 dnl then we will have config.status run $CONFIG_LT later, so it
493 dnl needs to know what name is stored there:
494 [AC_CONFIG_COMMANDS([libtool],
495 [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
496 dnl If the libtool generation code is destined for config.status,
497 dnl expand the accumulated commands and init code now:
498 [AC_CONFIG_COMMANDS([libtool],
499 [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
500 ])#_LT_CONFIG_COMMANDS
501
502
503 # Initialize.
504 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
505 [
506
507 # The HP-UX ksh and POSIX shell print the target directory to stdout
508 # if CDPATH is set.
509 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
510
511 sed_quote_subst='$sed_quote_subst'
512 double_quote_subst='$double_quote_subst'
513 delay_variable_subst='$delay_variable_subst'
514 _LT_CONFIG_STATUS_DECLARATIONS
515 LTCC='$LTCC'
516 LTCFLAGS='$LTCFLAGS'
517 compiler='$compiler_DEFAULT'
518
519 # Quote evaled strings.
520 for var in lt_decl_all_varnames([[ \
521 ]], lt_decl_quote_varnames); do
522 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
523 *[[\\\\\\\`\\"\\\$]]*)
524 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
525 ;;
526 *)
527 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
528 ;;
529 esac
530 done
531
532 # Double-quote double-evaled strings.
533 for var in lt_decl_all_varnames([[ \
534 ]], lt_decl_dquote_varnames); do
535 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
536 *[[\\\\\\\`\\"\\\$]]*)
537 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
538 ;;
539 *)
540 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
541 ;;
542 esac
543 done
544
545 # Fix-up fallback echo if it was mangled by the above quoting rules.
546 case \$lt_ECHO in
547 *'\\\[$]0 --fallback-echo"')dnl "
548 lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
549 ;;
550 esac
551
552 _LT_OUTPUT_LIBTOOL_INIT
553 ])
554
555
556 # LT_OUTPUT
557 # ---------
558 # This macro allows early generation of the libtool script (before
559 # AC_OUTPUT is called), incase it is used in configure for compilation
560 # tests.
561 AC_DEFUN([LT_OUTPUT],
562 [: ${CONFIG_LT=./config.lt}
563 AC_MSG_NOTICE([creating $CONFIG_LT])
564 cat >"$CONFIG_LT" <<_LTEOF
565 #! $SHELL
566 # Generated by $as_me.
567 # Run this file to recreate a libtool stub with the current configuration.
568
569 lt_cl_silent=false
570 SHELL=\${CONFIG_SHELL-$SHELL}
571 _LTEOF
572
573 cat >>"$CONFIG_LT" <<\_LTEOF
574 AS_SHELL_SANITIZE
575 _AS_PREPARE
576
577 exec AS_MESSAGE_FD>&1
578 exec AS_MESSAGE_LOG_FD>>config.log
579 {
580 echo
581 AS_BOX([Running $as_me.])
582 } >&AS_MESSAGE_LOG_FD
583
584 lt_cl_help="\
585 \`$as_me' creates a local libtool stub from the current configuration,
586 for use in further configure time tests before the real libtool is
587 generated.
588
589 Usage: $[0] [[OPTIONS]]
590
591 -h, --help print this help, then exit
592 -V, --version print version number, then exit
593 -q, --quiet do not print progress messages
594 -d, --debug don't remove temporary files
595
596 Report bugs to <bug-libtool@gnu.org>."
597
598 lt_cl_version="\
599 m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
600 m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
601 configured by $[0], generated by m4_PACKAGE_STRING.
602
603 Copyright (C) 2008 Free Software Foundation, Inc.
604 This config.lt script is free software; the Free Software Foundation
605 gives unlimited permision to copy, distribute and modify it."
606
607 while test $[#] != 0
608 do
609 case $[1] in
610 --version | --v* | -V )
611 echo "$lt_cl_version"; exit 0 ;;
612 --help | --h* | -h )
613 echo "$lt_cl_help"; exit 0 ;;
614 --debug | --d* | -d )
615 debug=: ;;
616 --quiet | --q* | --silent | --s* | -q )
617 lt_cl_silent=: ;;
618
619 -*) AC_MSG_ERROR([unrecognized option: $[1]
620 Try \`$[0] --help' for more information.]) ;;
621
622 *) AC_MSG_ERROR([unrecognized argument: $[1]
623 Try \`$[0] --help' for more information.]) ;;
624 esac
625 shift
626 done
627
628 if $lt_cl_silent; then
629 exec AS_MESSAGE_FD>/dev/null
630 fi
631 _LTEOF
632
633 cat >>"$CONFIG_LT" <<_LTEOF
634 _LT_OUTPUT_LIBTOOL_COMMANDS_INIT
635 _LTEOF
636
637 cat >>"$CONFIG_LT" <<\_LTEOF
638 AC_MSG_NOTICE([creating $ofile])
639 _LT_OUTPUT_LIBTOOL_COMMANDS
640 AS_EXIT(0)
641 _LTEOF
642 chmod +x "$CONFIG_LT"
643
644 # configure is writing to config.log, but config.lt does its own redirection,
645 # appending to config.log, which fails on DOS, as config.log is still kept
646 # open by configure. Here we exec the FD to /dev/null, effectively closing
647 # config.log, so it can be properly (re)opened and appended to by config.lt.
648 if test "$no_create" != yes; then
649 lt_cl_success=:
650 test "$silent" = yes &&
651 lt_config_lt_args="$lt_config_lt_args --quiet"
652 exec AS_MESSAGE_LOG_FD>/dev/null
653 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
654 exec AS_MESSAGE_LOG_FD>>config.log
655 $lt_cl_success || AS_EXIT(1)
656 fi
657 ])# LT_OUTPUT
658
659
660 # _LT_CONFIG(TAG)
661 # ---------------
662 # If TAG is the built-in tag, create an initial libtool script with a
663 # default configuration from the untagged config vars. Otherwise add code
664 # to config.status for appending the configuration named by TAG from the
665 # matching tagged config vars.
666 m4_defun([_LT_CONFIG],
667 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
668 _LT_CONFIG_SAVE_COMMANDS([
669 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
670 m4_if(_LT_TAG, [C], [
671 # See if we are running on zsh, and set the options which allow our
672 # commands through without removal of \ escapes.
673 if test -n "${ZSH_VERSION+set}" ; then
674 setopt NO_GLOB_SUBST
675 fi
676
677 cfgfile="${ofile}T"
678 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
679 $RM "$cfgfile"
680
681 cat <<_LT_EOF >> "$cfgfile"
682 #! $SHELL
683
684 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
685 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
686 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
687 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
688 #
689 _LT_COPYING
690 _LT_LIBTOOL_TAGS
691
692 # ### BEGIN LIBTOOL CONFIG
693 _LT_LIBTOOL_CONFIG_VARS
694 _LT_LIBTOOL_TAG_VARS
695 # ### END LIBTOOL CONFIG
696
697 _LT_EOF
698
699 case $host_os in
700 aix3*)
701 cat <<\_LT_EOF >> "$cfgfile"
702 # AIX sometimes has problems with the GCC collect2 program. For some
703 # reason, if we set the COLLECT_NAMES environment variable, the problems
704 # vanish in a puff of smoke.
705 if test "X${COLLECT_NAMES+set}" != Xset; then
706 COLLECT_NAMES=
707 export COLLECT_NAMES
708 fi
709 _LT_EOF
710 ;;
711 esac
712
713 _LT_PROG_LTMAIN
714
715 # We use sed instead of cat because bash on DJGPP gets confused if
716 # if finds mixed CR/LF and LF-only lines. Since sed operates in
717 # text mode, it properly converts lines to CR/LF. This bash problem
718 # is reportedly fixed, but why not run on old versions too?
719 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
720 || (rm -f "$cfgfile"; exit 1)
721
722 _LT_PROG_XSI_SHELLFNS
723
724 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
725 || (rm -f "$cfgfile"; exit 1)
726
727 mv -f "$cfgfile" "$ofile" ||
728 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
729 chmod +x "$ofile"
730 ],
731 [cat <<_LT_EOF >> "$ofile"
732
733 dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
734 dnl in a comment (ie after a #).
735 # ### BEGIN LIBTOOL TAG CONFIG: $1
736 _LT_LIBTOOL_TAG_VARS(_LT_TAG)
737 # ### END LIBTOOL TAG CONFIG: $1
738 _LT_EOF
739 ])dnl /m4_if
740 ],
741 [m4_if([$1], [], [
742 PACKAGE='$PACKAGE'
743 VERSION='$VERSION'
744 TIMESTAMP='$TIMESTAMP'
745 RM='$RM'
746 ofile='$ofile'], [])
747 ])dnl /_LT_CONFIG_SAVE_COMMANDS
748 ])# _LT_CONFIG
749
750
751 # LT_SUPPORTED_TAG(TAG)
752 # ---------------------
753 # Trace this macro to discover what tags are supported by the libtool
754 # --tag option, using:
755 # autoconf --trace 'LT_SUPPORTED_TAG:$1'
756 AC_DEFUN([LT_SUPPORTED_TAG], [])
757
758
759 # C support is built-in for now
760 m4_define([_LT_LANG_C_enabled], [])
761 m4_define([_LT_TAGS], [])
762
763
764 # LT_LANG(LANG)
765 # -------------
766 # Enable libtool support for the given language if not already enabled.
767 AC_DEFUN([LT_LANG],
768 [AC_BEFORE([$0], [LT_OUTPUT])dnl
769 m4_case([$1],
770 [C], [_LT_LANG(C)],
771 [C++], [_LT_LANG(CXX)],
772 [Java], [_LT_LANG(GCJ)],
773 [Fortran 77], [_LT_LANG(F77)],
774 [Fortran], [_LT_LANG(FC)],
775 [Windows Resource], [_LT_LANG(RC)],
776 [m4_ifdef([_LT_LANG_]$1[_CONFIG],
777 [_LT_LANG($1)],
778 [m4_fatal([$0: unsupported language: "$1"])])])dnl
779 ])# LT_LANG
780
781
782 # _LT_LANG(LANGNAME)
783 # ------------------
784 m4_defun([_LT_LANG],
785 [m4_ifdef([_LT_LANG_]$1[_enabled], [],
786 [LT_SUPPORTED_TAG([$1])dnl
787 m4_append([_LT_TAGS], [$1 ])dnl
788 m4_define([_LT_LANG_]$1[_enabled], [])dnl
789 _LT_LANG_$1_CONFIG($1)])dnl
790 ])# _LT_LANG
791
792
793 # _LT_LANG_DEFAULT_CONFIG
794 # -----------------------
795 m4_defun([_LT_LANG_DEFAULT_CONFIG],
796 [AC_PROVIDE_IFELSE([AC_PROG_CXX],
797 [LT_LANG(CXX)],
798 [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
799
800 AC_PROVIDE_IFELSE([AC_PROG_F77],
801 [LT_LANG(F77)],
802 [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
803
804 AC_PROVIDE_IFELSE([AC_PROG_FC],
805 [LT_LANG(FC)],
806 [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
807
808 dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
809 dnl pulling things in needlessly.
810 AC_PROVIDE_IFELSE([AC_PROG_GCJ],
811 [LT_LANG(GCJ)],
812 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
813 [LT_LANG(GCJ)],
814 [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
815 [LT_LANG(GCJ)],
816 [m4_ifdef([AC_PROG_GCJ],
817 [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
818 m4_ifdef([A][M_PROG_GCJ],
819 [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
820 m4_ifdef([LT_PROG_GCJ],
821 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
822
823 AC_PROVIDE_IFELSE([LT_PROG_RC],
824 [LT_LANG(RC)],
825 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
826 ])# _LT_LANG_DEFAULT_CONFIG
827
828 # Obsolete macros:
829 AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
830 AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
831 AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
832 AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
833 dnl aclocal-1.4 backwards compatibility:
834 dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
835 dnl AC_DEFUN([AC_LIBTOOL_F77], [])
836 dnl AC_DEFUN([AC_LIBTOOL_FC], [])
837 dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
838
839
840 # _LT_TAG_COMPILER
841 # ----------------
842 m4_defun([_LT_TAG_COMPILER],
843 [AC_REQUIRE([AC_PROG_CC])dnl
844
845 _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
846 _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
847 _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
848 _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
849
850 # If no C compiler was specified, use CC.
851 LTCC=${LTCC-"$CC"}
852
853 # If no C compiler flags were specified, use CFLAGS.
854 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
855
856 # Allow CC to be a program name with arguments.
857 compiler=$CC
858 ])# _LT_TAG_COMPILER
859
860
861 # _LT_COMPILER_BOILERPLATE
862 # ------------------------
863 # Check for compiler boilerplate output or warnings with
864 # the simple compiler test code.
865 m4_defun([_LT_COMPILER_BOILERPLATE],
866 [m4_require([_LT_DECL_SED])dnl
867 ac_outfile=conftest.$ac_objext
868 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
869 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
870 _lt_compiler_boilerplate=`cat conftest.err`
871 $RM conftest*
872 ])# _LT_COMPILER_BOILERPLATE
873
874
875 # _LT_LINKER_BOILERPLATE
876 # ----------------------
877 # Check for linker boilerplate output or warnings with
878 # the simple link test code.
879 m4_defun([_LT_LINKER_BOILERPLATE],
880 [m4_require([_LT_DECL_SED])dnl
881 ac_outfile=conftest.$ac_objext
882 echo "$lt_simple_link_test_code" >conftest.$ac_ext
883 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
884 _lt_linker_boilerplate=`cat conftest.err`
885 $RM -r conftest*
886 ])# _LT_LINKER_BOILERPLATE
887
888 # _LT_REQUIRED_DARWIN_CHECKS
889 # -------------------------
890 m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
891 case $host_os in
892 rhapsody* | darwin*)
893 AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
894 AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
895 AC_CHECK_TOOL([LIPO], [lipo], [:])
896 AC_CHECK_TOOL([OTOOL], [otool], [:])
897 AC_CHECK_TOOL([OTOOL64], [otool64], [:])
898 _LT_DECL([], [DSYMUTIL], [1],
899 [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
900 _LT_DECL([], [NMEDIT], [1],
901 [Tool to change global to local symbols on Mac OS X])
902 _LT_DECL([], [LIPO], [1],
903 [Tool to manipulate fat objects and archives on Mac OS X])
904 _LT_DECL([], [OTOOL], [1],
905 [ldd/readelf like tool for Mach-O binaries on Mac OS X])
906 _LT_DECL([], [OTOOL64], [1],
907 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
908
909 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
910 [lt_cv_apple_cc_single_mod=no
911 if test -z "${LT_MULTI_MODULE}"; then
912 # By default we will add the -single_module flag. You can override
913 # by either setting the environment variable LT_MULTI_MODULE
914 # non-empty at configure time, or by adding -multi_module to the
915 # link flags.
916 rm -rf libconftest.dylib*
917 echo "int foo(void){return 1;}" > conftest.c
918 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
919 -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
920 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
921 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
922 _lt_result=$?
923 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
924 lt_cv_apple_cc_single_mod=yes
925 else
926 cat conftest.err >&AS_MESSAGE_LOG_FD
927 fi
928 rm -rf libconftest.dylib*
929 rm -f conftest.*
930 fi])
931 AC_CACHE_CHECK([for -exported_symbols_list linker flag],
932 [lt_cv_ld_exported_symbols_list],
933 [lt_cv_ld_exported_symbols_list=no
934 save_LDFLAGS=$LDFLAGS
935 echo "_main" > conftest.sym
936 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
937 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
938 [lt_cv_ld_exported_symbols_list=yes],
939 [lt_cv_ld_exported_symbols_list=no])
940 LDFLAGS="$save_LDFLAGS"
941 ])
942 case $host_os in
943 rhapsody* | darwin1.[[012]])
944 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
945 darwin1.*)
946 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
947 darwin*) # darwin 5.x on
948 # if running on 10.5 or later, the deployment target defaults
949 # to the OS version, if on x86, and 10.4, the deployment
950 # target defaults to 10.4. Don't you love it?
951 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
952 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
953 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
954 10.[[012]]*)
955 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
956 10.*)
957 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
958 esac
959 ;;
960 esac
961 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
962 _lt_dar_single_mod='$single_module'
963 fi
964 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
965 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
966 else
967 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
968 fi
969 if test "$DSYMUTIL" != ":"; then
970 _lt_dsymutil='~$DSYMUTIL $lib || :'
971 else
972 _lt_dsymutil=
973 fi
974 ;;
975 esac
976 ])
977
978
979 # _LT_DARWIN_LINKER_FEATURES
980 # --------------------------
981 # Checks for linker and compiler features on darwin
982 m4_defun([_LT_DARWIN_LINKER_FEATURES],
983 [
984 m4_require([_LT_REQUIRED_DARWIN_CHECKS])
985 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
986 _LT_TAGVAR(hardcode_direct, $1)=no
987 _LT_TAGVAR(hardcode_automatic, $1)=yes
988 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
989 _LT_TAGVAR(whole_archive_flag_spec, $1)=''
990 _LT_TAGVAR(link_all_deplibs, $1)=yes
991 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
992 case $cc_basename in
993 ifort*) _lt_dar_can_shared=yes ;;
994 *) _lt_dar_can_shared=$GCC ;;
995 esac
996 if test "$_lt_dar_can_shared" = "yes"; then
997 output_verbose_link_cmd=echo
998 _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
999 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1000 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
1001 _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
1002 m4_if([$1], [CXX],
1003 [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
1004 _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
1005 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
1006 fi
1007 ],[])
1008 else
1009 _LT_TAGVAR(ld_shlibs, $1)=no
1010 fi
1011 ])
1012
1013 # _LT_SYS_MODULE_PATH_AIX
1014 # -----------------------
1015 # Links a minimal program and checks the executable
1016 # for the system default hardcoded library path. In most cases,
1017 # this is /usr/lib:/lib, but when the MPI compilers are used
1018 # the location of the communication and MPI libs are included too.
1019 # If we don't find anything, use the default library path according
1020 # to the aix ld manual.
1021 m4_defun([_LT_SYS_MODULE_PATH_AIX],
1022 [m4_require([_LT_DECL_SED])dnl
1023 AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1024 lt_aix_libpath_sed='
1025 /Import File Strings/,/^$/ {
1026 /^0/ {
1027 s/^0 *\(.*\)$/\1/
1028 p
1029 }
1030 }'
1031 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1032 # Check for a 64-bit object if we didn't find anything.
1033 if test -z "$aix_libpath"; then
1034 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1035 fi],[])
1036 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1037 ])# _LT_SYS_MODULE_PATH_AIX
1038
1039
1040 # _LT_SHELL_INIT(ARG)
1041 # -------------------
1042 m4_define([_LT_SHELL_INIT],
1043 [ifdef([AC_DIVERSION_NOTICE],
1044 [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1045 [AC_DIVERT_PUSH(NOTICE)])
1046 $1
1047 AC_DIVERT_POP
1048 ])# _LT_SHELL_INIT
1049
1050
1051 # _LT_PROG_ECHO_BACKSLASH
1052 # -----------------------
1053 # Add some code to the start of the generated configure script which
1054 # will find an echo command which doesn't interpret backslashes.
1055 m4_defun([_LT_PROG_ECHO_BACKSLASH],
1056 [_LT_SHELL_INIT([
1057 # Check that we are running under the correct shell.
1058 SHELL=${CONFIG_SHELL-/bin/sh}
1059
1060 case X$lt_ECHO in
1061 X*--fallback-echo)
1062 # Remove one level of quotation (which was required for Make).
1063 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1064 ;;
1065 esac
1066
1067 ECHO=${lt_ECHO-echo}
1068 if test "X[$]1" = X--no-reexec; then
1069 # Discard the --no-reexec flag, and continue.
1070 shift
1071 elif test "X[$]1" = X--fallback-echo; then
1072 # Avoid inline document here, it may be left over
1073 :
1074 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
1075 # Yippee, $ECHO works!
1076 :
1077 else
1078 # Restart under the correct shell.
1079 exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
1080 fi
1081
1082 if test "X[$]1" = X--fallback-echo; then
1083 # used as fallback echo
1084 shift
1085 cat <<_LT_EOF
1086 [$]*
1087 _LT_EOF
1088 exit 0
1089 fi
1090
1091 # The HP-UX ksh and POSIX shell print the target directory to stdout
1092 # if CDPATH is set.
1093 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1094
1095 if test -z "$lt_ECHO"; then
1096 if test "X${echo_test_string+set}" != Xset; then
1097 # find a string as large as possible, as long as the shell can cope with it
1098 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1099 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1100 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
1101 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
1102 then
1103 break
1104 fi
1105 done
1106 fi
1107
1108 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1109 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1110 test "X$echo_testing_string" = "X$echo_test_string"; then
1111 :
1112 else
1113 # The Solaris, AIX, and Digital Unix default echo programs unquote
1114 # backslashes. This makes it impossible to quote backslashes using
1115 # echo "$something" | sed 's/\\/\\\\/g'
1116 #
1117 # So, first we look for a working echo in the user's PATH.
1118
1119 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1120 for dir in $PATH /usr/ucb; do
1121 IFS="$lt_save_ifs"
1122 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1123 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1124 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1125 test "X$echo_testing_string" = "X$echo_test_string"; then
1126 ECHO="$dir/echo"
1127 break
1128 fi
1129 done
1130 IFS="$lt_save_ifs"
1131
1132 if test "X$ECHO" = Xecho; then
1133 # We didn't find a better echo, so look for alternatives.
1134 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
1135 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
1136 test "X$echo_testing_string" = "X$echo_test_string"; then
1137 # This shell has a builtin print -r that does the trick.
1138 ECHO='print -r'
1139 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
1140 test "X$CONFIG_SHELL" != X/bin/ksh; then
1141 # If we have ksh, try running configure again with it.
1142 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1143 export ORIGINAL_CONFIG_SHELL
1144 CONFIG_SHELL=/bin/ksh
1145 export CONFIG_SHELL
1146 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1147 else
1148 # Try using printf.
1149 ECHO='printf %s\n'
1150 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1151 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1152 test "X$echo_testing_string" = "X$echo_test_string"; then
1153 # Cool, printf works
1154 :
1155 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1156 test "X$echo_testing_string" = 'X\t' &&
1157 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1158 test "X$echo_testing_string" = "X$echo_test_string"; then
1159 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1160 export CONFIG_SHELL
1161 SHELL="$CONFIG_SHELL"
1162 export SHELL
1163 ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1164 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1165 test "X$echo_testing_string" = 'X\t' &&
1166 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1167 test "X$echo_testing_string" = "X$echo_test_string"; then
1168 ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1169 else
1170 # maybe with a smaller string...
1171 prev=:
1172
1173 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1174 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
1175 then
1176 break
1177 fi
1178 prev="$cmd"
1179 done
1180
1181 if test "$prev" != 'sed 50q "[$]0"'; then
1182 echo_test_string=`eval $prev`
1183 export echo_test_string
1184 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1185 else
1186 # Oops. We lost completely, so just stick with echo.
1187 ECHO=echo
1188 fi
1189 fi
1190 fi
1191 fi
1192 fi
1193 fi
1194
1195 # Copy echo and quote the copy suitably for passing to libtool from
1196 # the Makefile, instead of quoting the original, which is used later.
1197 lt_ECHO=$ECHO
1198 if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1199 lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1200 fi
1201
1202 AC_SUBST(lt_ECHO)
1203 ])
1204 _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1205 _LT_DECL([], [ECHO], [1],
1206 [An echo program that does not interpret backslashes])
1207 ])# _LT_PROG_ECHO_BACKSLASH
1208
1209
1210 # _LT_ENABLE_LOCK
1211 # ---------------
1212 m4_defun([_LT_ENABLE_LOCK],
1213 [AC_ARG_ENABLE([libtool-lock],
1214 [AS_HELP_STRING([--disable-libtool-lock],
1215 [avoid locking (might break parallel builds)])])
1216 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1217
1218 # Some flags need to be propagated to the compiler or linker for good
1219 # libtool support.
1220 case $host in
1221 ia64-*-hpux*)
1222 # Find out which ABI we are using.
1223 echo 'int i;' > conftest.$ac_ext
1224 if AC_TRY_EVAL(ac_compile); then
1225 case `/usr/bin/file conftest.$ac_objext` in
1226 *ELF-32*)
1227 HPUX_IA64_MODE="32"
1228 ;;
1229 *ELF-64*)
1230 HPUX_IA64_MODE="64"
1231 ;;
1232 esac
1233 fi
1234 rm -rf conftest*
1235 ;;
1236 *-*-irix6*)
1237 # Find out which ABI we are using.
1238 echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1239 if AC_TRY_EVAL(ac_compile); then
1240 if test "$lt_cv_prog_gnu_ld" = yes; then
1241 case `/usr/bin/file conftest.$ac_objext` in
1242 *32-bit*)
1243 LD="${LD-ld} -melf32bsmip"
1244 ;;
1245 *N32*)
1246 LD="${LD-ld} -melf32bmipn32"
1247 ;;
1248 *64-bit*)
1249 LD="${LD-ld} -melf64bmip"
1250 ;;
1251 esac
1252 else
1253 case `/usr/bin/file conftest.$ac_objext` in
1254 *32-bit*)
1255 LD="${LD-ld} -32"
1256 ;;
1257 *N32*)
1258 LD="${LD-ld} -n32"
1259 ;;
1260 *64-bit*)
1261 LD="${LD-ld} -64"
1262 ;;
1263 esac
1264 fi
1265 fi
1266 rm -rf conftest*
1267 ;;
1268
1269 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
1270 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
1271 # Find out which ABI we are using.
1272 echo 'int i;' > conftest.$ac_ext
1273 if AC_TRY_EVAL(ac_compile); then
1274 case `/usr/bin/file conftest.o` in
1275 *32-bit*)
1276 case $host in
1277 x86_64-*kfreebsd*-gnu)
1278 LD="${LD-ld} -m elf_i386_fbsd"
1279 ;;
1280 x86_64-*linux*)
1281 LD="${LD-ld} -m elf_i386"
1282 ;;
1283 ppc64-*linux*|powerpc64-*linux*)
1284 LD="${LD-ld} -m elf32ppclinux"
1285 ;;
1286 s390x-*linux*)
1287 LD="${LD-ld} -m elf_s390"
1288 ;;
1289 sparc64-*linux*)
1290 LD="${LD-ld} -m elf32_sparc"
1291 ;;
1292 esac
1293 ;;
1294 *64-bit*)
1295 case $host in
1296 x86_64-*kfreebsd*-gnu)
1297 LD="${LD-ld} -m elf_x86_64_fbsd"
1298 ;;
1299 x86_64-*linux*)
1300 LD="${LD-ld} -m elf_x86_64"
1301 ;;
1302 ppc*-*linux*|powerpc*-*linux*)
1303 LD="${LD-ld} -m elf64ppc"
1304 ;;
1305 s390*-*linux*|s390*-*tpf*)
1306 LD="${LD-ld} -m elf64_s390"
1307 ;;
1308 sparc*-*linux*)
1309 LD="${LD-ld} -m elf64_sparc"
1310 ;;
1311 esac
1312 ;;
1313 esac
1314 fi
1315 rm -rf conftest*
1316 ;;
1317
1318 *-*-sco3.2v5*)
1319 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1320 SAVE_CFLAGS="$CFLAGS"
1321 CFLAGS="$CFLAGS -belf"
1322 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1323 [AC_LANG_PUSH(C)
1324 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1325 AC_LANG_POP])
1326 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1327 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1328 CFLAGS="$SAVE_CFLAGS"
1329 fi
1330 ;;
1331 sparc*-*solaris*)
1332 # Find out which ABI we are using.
1333 echo 'int i;' > conftest.$ac_ext
1334 if AC_TRY_EVAL(ac_compile); then
1335 case `/usr/bin/file conftest.o` in
1336 *64-bit*)
1337 case $lt_cv_prog_gnu_ld in
1338 yes*) LD="${LD-ld} -m elf64_sparc" ;;
1339 *)
1340 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1341 LD="${LD-ld} -64"
1342 fi
1343 ;;
1344 esac
1345 ;;
1346 esac
1347 fi
1348 rm -rf conftest*
1349 ;;
1350 esac
1351
1352 need_locks="$enable_libtool_lock"
1353 ])# _LT_ENABLE_LOCK
1354
1355
1356 # _LT_CMD_OLD_ARCHIVE
1357 # -------------------
1358 m4_defun([_LT_CMD_OLD_ARCHIVE],
1359 [AC_CHECK_TOOL(AR, ar, false)
1360 test -z "$AR" && AR=ar
1361 test -z "$AR_FLAGS" && AR_FLAGS=cru
1362 _LT_DECL([], [AR], [1], [The archiver])
1363 _LT_DECL([], [AR_FLAGS], [1])
1364
1365 AC_CHECK_TOOL(STRIP, strip, :)
1366 test -z "$STRIP" && STRIP=:
1367 _LT_DECL([], [STRIP], [1], [A symbol stripping program])
1368
1369 AC_CHECK_TOOL(RANLIB, ranlib, :)
1370 test -z "$RANLIB" && RANLIB=:
1371 _LT_DECL([], [RANLIB], [1],
1372 [Commands used to install an old-style archive])
1373
1374 # Determine commands to create old-style static archives.
1375 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1376 old_postinstall_cmds='chmod 644 $oldlib'
1377 old_postuninstall_cmds=
1378
1379 if test -n "$RANLIB"; then
1380 case $host_os in
1381 openbsd*)
1382 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
1383 ;;
1384 *)
1385 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
1386 ;;
1387 esac
1388 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1389 fi
1390 _LT_DECL([], [old_postinstall_cmds], [2])
1391 _LT_DECL([], [old_postuninstall_cmds], [2])
1392 _LT_TAGDECL([], [old_archive_cmds], [2],
1393 [Commands used to build an old-style archive])
1394 ])# _LT_CMD_OLD_ARCHIVE
1395
1396
1397 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1398 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1399 # ----------------------------------------------------------------
1400 # Check whether the given compiler option works
1401 AC_DEFUN([_LT_COMPILER_OPTION],
1402 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1403 m4_require([_LT_DECL_SED])dnl
1404 AC_CACHE_CHECK([$1], [$2],
1405 [$2=no
1406 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1407 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1408 lt_compiler_flag="$3"
1409 # Insert the option either (1) after the last *FLAGS variable, or
1410 # (2) before a word containing "conftest.", or (3) at the end.
1411 # Note that $ac_compile itself does not contain backslashes and begins
1412 # with a dollar sign (not a hyphen), so the echo should work correctly.
1413 # The option is referenced via a variable to avoid confusing sed.
1414 lt_compile=`echo "$ac_compile" | $SED \
1415 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1416 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1417 -e 's:$: $lt_compiler_flag:'`
1418 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1419 (eval "$lt_compile" 2>conftest.err)
1420 ac_status=$?
1421 cat conftest.err >&AS_MESSAGE_LOG_FD
1422 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1423 if (exit $ac_status) && test -s "$ac_outfile"; then
1424 # The compiler can only warn and ignore the option if not recognized
1425 # So say no if there are warnings other than the usual output.
1426 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
1427 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1428 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1429 $2=yes
1430 fi
1431 fi
1432 $RM conftest*
1433 ])
1434
1435 if test x"[$]$2" = xyes; then
1436 m4_if([$5], , :, [$5])
1437 else
1438 m4_if([$6], , :, [$6])
1439 fi
1440 ])# _LT_COMPILER_OPTION
1441
1442 # Old name:
1443 AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
1444 dnl aclocal-1.4 backwards compatibility:
1445 dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
1446
1447
1448 # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1449 # [ACTION-SUCCESS], [ACTION-FAILURE])
1450 # ----------------------------------------------------
1451 # Check whether the given linker option works
1452 AC_DEFUN([_LT_LINKER_OPTION],
1453 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1454 m4_require([_LT_DECL_SED])dnl
1455 AC_CACHE_CHECK([$1], [$2],
1456 [$2=no
1457 save_LDFLAGS="$LDFLAGS"
1458 LDFLAGS="$LDFLAGS $3"
1459 echo "$lt_simple_link_test_code" > conftest.$ac_ext
1460 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1461 # The linker can only warn and ignore the option if not recognized
1462 # So say no if there are warnings
1463 if test -s conftest.err; then
1464 # Append any errors to the config.log.
1465 cat conftest.err 1>&AS_MESSAGE_LOG_FD
1466 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
1467 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1468 if diff conftest.exp conftest.er2 >/dev/null; then
1469 $2=yes
1470 fi
1471 else
1472 $2=yes
1473 fi
1474 fi
1475 $RM -r conftest*
1476 LDFLAGS="$save_LDFLAGS"
1477 ])
1478
1479 if test x"[$]$2" = xyes; then
1480 m4_if([$4], , :, [$4])
1481 else
1482 m4_if([$5], , :, [$5])
1483 fi
1484 ])# _LT_LINKER_OPTION
1485
1486 # Old name:
1487 AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
1488 dnl aclocal-1.4 backwards compatibility:
1489 dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
1490
1491
1492 # LT_CMD_MAX_LEN
1493 #---------------
1494 AC_DEFUN([LT_CMD_MAX_LEN],
1495 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
1496 # find the maximum length of command line arguments
1497 AC_MSG_CHECKING([the maximum length of command line arguments])
1498 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1499 i=0
1500 teststring="ABCD"
1501
1502 case $build_os in
1503 msdosdjgpp*)
1504 # On DJGPP, this test can blow up pretty badly due to problems in libc
1505 # (any single argument exceeding 2000 bytes causes a buffer overrun
1506 # during glob expansion). Even if it were fixed, the result of this
1507 # check would be larger than it should be.
1508 lt_cv_sys_max_cmd_len=12288; # 12K is about right
1509 ;;
1510
1511 gnu*)
1512 # Under GNU Hurd, this test is not required because there is
1513 # no limit to the length of command line arguments.
1514 # Libtool will interpret -1 as no limit whatsoever
1515 lt_cv_sys_max_cmd_len=-1;
1516 ;;
1517
1518 cygwin* | mingw* | cegcc*)
1519 # On Win9x/ME, this test blows up -- it succeeds, but takes
1520 # about 5 minutes as the teststring grows exponentially.
1521 # Worse, since 9x/ME are not pre-emptively multitasking,
1522 # you end up with a "frozen" computer, even though with patience
1523 # the test eventually succeeds (with a max line length of 256k).
1524 # Instead, let's just punt: use the minimum linelength reported by
1525 # all of the supported platforms: 8192 (on NT/2K/XP).
1526 lt_cv_sys_max_cmd_len=8192;
1527 ;;
1528
1529 amigaos*)
1530 # On AmigaOS with pdksh, this test takes hours, literally.
1531 # So we just punt and use a minimum line length of 8192.
1532 lt_cv_sys_max_cmd_len=8192;
1533 ;;
1534
1535 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
1536 # This has been around since 386BSD, at least. Likely further.
1537 if test -x /sbin/sysctl; then
1538 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
1539 elif test -x /usr/sbin/sysctl; then
1540 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1541 else
1542 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
1543 fi
1544 # And add a safety zone
1545 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1546 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1547 ;;
1548
1549 interix*)
1550 # We know the value 262144 and hardcode it with a safety zone (like BSD)
1551 lt_cv_sys_max_cmd_len=196608
1552 ;;
1553
1554 osf*)
1555 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
1556 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
1557 # nice to cause kernel panics so lets avoid the loop below.
1558 # First set a reasonable default.
1559 lt_cv_sys_max_cmd_len=16384
1560 #
1561 if test -x /sbin/sysconfig; then
1562 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
1563 *1*) lt_cv_sys_max_cmd_len=-1 ;;
1564 esac
1565 fi
1566 ;;
1567 sco3.2v5*)
1568 lt_cv_sys_max_cmd_len=102400
1569 ;;
1570 sysv5* | sco5v6* | sysv4.2uw2*)
1571 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
1572 if test -n "$kargmax"; then
1573 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
1574 else
1575 lt_cv_sys_max_cmd_len=32768
1576 fi
1577 ;;
1578 *)
1579 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
1580 if test -n "$lt_cv_sys_max_cmd_len"; then
1581 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1582 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1583 else
1584 # Make teststring a little bigger before we do anything with it.
1585 # a 1K string should be a reasonable start.
1586 for i in 1 2 3 4 5 6 7 8 ; do
1587 teststring=$teststring$teststring
1588 done
1589 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1590 # If test is not a shell built-in, we'll probably end up computing a
1591 # maximum length that is only half of the actual maximum length, but
1592 # we can't tell.
1593 while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
1594 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
1595 test $i != 17 # 1/2 MB should be enough
1596 do
1597 i=`expr $i + 1`
1598 teststring=$teststring$teststring
1599 done
1600 # Only check the string length outside the loop.
1601 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
1602 teststring=
1603 # Add a significant safety factor because C++ compilers can tack on
1604 # massive amounts of additional arguments before passing them to the
1605 # linker. It appears as though 1/2 is a usable value.
1606 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1607 fi
1608 ;;
1609 esac
1610 ])
1611 if test -n $lt_cv_sys_max_cmd_len ; then
1612 AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
1613 else
1614 AC_MSG_RESULT(none)
1615 fi
1616 max_cmd_len=$lt_cv_sys_max_cmd_len
1617 _LT_DECL([], [max_cmd_len], [0],
1618 [What is the maximum length of a command?])
1619 ])# LT_CMD_MAX_LEN
1620
1621 # Old name:
1622 AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
1623 dnl aclocal-1.4 backwards compatibility:
1624 dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
1625
1626
1627 # _LT_HEADER_DLFCN
1628 # ----------------
1629 m4_defun([_LT_HEADER_DLFCN],
1630 [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
1631 ])# _LT_HEADER_DLFCN
1632
1633
1634 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1635 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1636 # ----------------------------------------------------------------
1637 m4_defun([_LT_TRY_DLOPEN_SELF],
1638 [m4_require([_LT_HEADER_DLFCN])dnl
1639 if test "$cross_compiling" = yes; then :
1640 [$4]
1641 else
1642 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1643 lt_status=$lt_dlunknown
1644 cat > conftest.$ac_ext <<_LT_EOF
1645 [#line __oline__ "configure"
1646 #include "confdefs.h"
1647
1648 #if HAVE_DLFCN_H
1649 #include <dlfcn.h>
1650 #endif
1651
1652 #include <stdio.h>
1653
1654 #ifdef RTLD_GLOBAL
1655 # define LT_DLGLOBAL RTLD_GLOBAL
1656 #else
1657 # ifdef DL_GLOBAL
1658 # define LT_DLGLOBAL DL_GLOBAL
1659 # else
1660 # define LT_DLGLOBAL 0
1661 # endif
1662 #endif
1663
1664 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1665 find out it does not work in some platform. */
1666 #ifndef LT_DLLAZY_OR_NOW
1667 # ifdef RTLD_LAZY
1668 # define LT_DLLAZY_OR_NOW RTLD_LAZY
1669 # else
1670 # ifdef DL_LAZY
1671 # define LT_DLLAZY_OR_NOW DL_LAZY
1672 # else
1673 # ifdef RTLD_NOW
1674 # define LT_DLLAZY_OR_NOW RTLD_NOW
1675 # else
1676 # ifdef DL_NOW
1677 # define LT_DLLAZY_OR_NOW DL_NOW
1678 # else
1679 # define LT_DLLAZY_OR_NOW 0
1680 # endif
1681 # endif
1682 # endif
1683 # endif
1684 #endif
1685
1686 void fnord() { int i=42;}
1687 int main ()
1688 {
1689 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1690 int status = $lt_dlunknown;
1691
1692 if (self)
1693 {
1694 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1695 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1696 /* dlclose (self); */
1697 }
1698 else
1699 puts (dlerror ());
1700
1701 return status;
1702 }]
1703 _LT_EOF
1704 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1705 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
1706 lt_status=$?
1707 case x$lt_status in
1708 x$lt_dlno_uscore) $1 ;;
1709 x$lt_dlneed_uscore) $2 ;;
1710 x$lt_dlunknown|x*) $3 ;;
1711 esac
1712 else :
1713 # compilation failed
1714 $3
1715 fi
1716 fi
1717 rm -fr conftest*
1718 ])# _LT_TRY_DLOPEN_SELF
1719
1720
1721 # LT_SYS_DLOPEN_SELF
1722 # ------------------
1723 AC_DEFUN([LT_SYS_DLOPEN_SELF],
1724 [m4_require([_LT_HEADER_DLFCN])dnl
1725 if test "x$enable_dlopen" != xyes; then
1726 enable_dlopen=unknown
1727 enable_dlopen_self=unknown
1728 enable_dlopen_self_static=unknown
1729 else
1730 lt_cv_dlopen=no
1731 lt_cv_dlopen_libs=
1732
1733 case $host_os in
1734 beos*)
1735 lt_cv_dlopen="load_add_on"
1736 lt_cv_dlopen_libs=
1737 lt_cv_dlopen_self=yes
1738 ;;
1739
1740 mingw* | pw32* | cegcc*)
1741 lt_cv_dlopen="LoadLibrary"
1742 lt_cv_dlopen_libs=
1743 ;;
1744
1745 cygwin*)
1746 lt_cv_dlopen="dlopen"
1747 lt_cv_dlopen_libs=
1748 ;;
1749
1750 darwin*)
1751 # if libdl is installed we need to link against it
1752 AC_CHECK_LIB([dl], [dlopen],
1753 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
1754 lt_cv_dlopen="dyld"
1755 lt_cv_dlopen_libs=
1756 lt_cv_dlopen_self=yes
1757 ])
1758 ;;
1759
1760 *)
1761 AC_CHECK_FUNC([shl_load],
1762 [lt_cv_dlopen="shl_load"],
1763 [AC_CHECK_LIB([dld], [shl_load],
1764 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
1765 [AC_CHECK_FUNC([dlopen],
1766 [lt_cv_dlopen="dlopen"],
1767 [AC_CHECK_LIB([dl], [dlopen],
1768 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1769 [AC_CHECK_LIB([svld], [dlopen],
1770 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1771 [AC_CHECK_LIB([dld], [dld_link],
1772 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
1773 ])
1774 ])
1775 ])
1776 ])
1777 ])
1778 ;;
1779 esac
1780
1781 if test "x$lt_cv_dlopen" != xno; then
1782 enable_dlopen=yes
1783 else
1784 enable_dlopen=no
1785 fi
1786
1787 case $lt_cv_dlopen in
1788 dlopen)
1789 save_CPPFLAGS="$CPPFLAGS"
1790 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1791
1792 save_LDFLAGS="$LDFLAGS"
1793 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1794
1795 save_LIBS="$LIBS"
1796 LIBS="$lt_cv_dlopen_libs $LIBS"
1797
1798 AC_CACHE_CHECK([whether a program can dlopen itself],
1799 lt_cv_dlopen_self, [dnl
1800 _LT_TRY_DLOPEN_SELF(
1801 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1802 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1803 ])
1804
1805 if test "x$lt_cv_dlopen_self" = xyes; then
1806 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1807 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1808 lt_cv_dlopen_self_static, [dnl
1809 _LT_TRY_DLOPEN_SELF(
1810 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1811 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
1812 ])
1813 fi
1814
1815 CPPFLAGS="$save_CPPFLAGS"
1816 LDFLAGS="$save_LDFLAGS"
1817 LIBS="$save_LIBS"
1818 ;;
1819 esac
1820
1821 case $lt_cv_dlopen_self in
1822 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
1823 *) enable_dlopen_self=unknown ;;
1824 esac
1825
1826 case $lt_cv_dlopen_self_static in
1827 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
1828 *) enable_dlopen_self_static=unknown ;;
1829 esac
1830 fi
1831 _LT_DECL([dlopen_support], [enable_dlopen], [0],
1832 [Whether dlopen is supported])
1833 _LT_DECL([dlopen_self], [enable_dlopen_self], [0],
1834 [Whether dlopen of programs is supported])
1835 _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
1836 [Whether dlopen of statically linked programs is supported])
1837 ])# LT_SYS_DLOPEN_SELF
1838
1839 # Old name:
1840 AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
1841 dnl aclocal-1.4 backwards compatibility:
1842 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
1843
1844
1845 # _LT_COMPILER_C_O([TAGNAME])
1846 # ---------------------------
1847 # Check to see if options -c and -o are simultaneously supported by compiler.
1848 # This macro does not hard code the compiler like AC_PROG_CC_C_O.
1849 m4_defun([_LT_COMPILER_C_O],
1850 [m4_require([_LT_DECL_SED])dnl
1851 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1852 m4_require([_LT_TAG_COMPILER])dnl
1853 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1854 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1855 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1856 $RM -r conftest 2>/dev/null
1857 mkdir conftest
1858 cd conftest
1859 mkdir out
1860 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1861
1862 lt_compiler_flag="-o out/conftest2.$ac_objext"
1863 # Insert the option either (1) after the last *FLAGS variable, or
1864 # (2) before a word containing "conftest.", or (3) at the end.
1865 # Note that $ac_compile itself does not contain backslashes and begins
1866 # with a dollar sign (not a hyphen), so the echo should work correctly.
1867 lt_compile=`echo "$ac_compile" | $SED \
1868 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1869 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1870 -e 's:$: $lt_compiler_flag:'`
1871 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1872 (eval "$lt_compile" 2>out/conftest.err)
1873 ac_status=$?
1874 cat out/conftest.err >&AS_MESSAGE_LOG_FD
1875 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1876 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1877 then
1878 # The compiler can only warn and ignore the option if not recognized
1879 # So say no if there are warnings
1880 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1881 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1882 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1883 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1884 fi
1885 fi
1886 chmod u+w . 2>&AS_MESSAGE_LOG_FD
1887 $RM conftest*
1888 # SGI C++ compiler will create directory out/ii_files/ for
1889 # template instantiation
1890 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
1891 $RM out/* && rmdir out
1892 cd ..
1893 $RM -r conftest
1894 $RM conftest*
1895 ])
1896 _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
1897 [Does compiler simultaneously support -c and -o options?])
1898 ])# _LT_COMPILER_C_O
1899
1900
1901 # _LT_COMPILER_FILE_LOCKS([TAGNAME])
1902 # ----------------------------------
1903 # Check to see if we can do hard links to lock some files if needed
1904 m4_defun([_LT_COMPILER_FILE_LOCKS],
1905 [m4_require([_LT_ENABLE_LOCK])dnl
1906 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1907 _LT_COMPILER_C_O([$1])
1908
1909 hard_links="nottested"
1910 if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1911 # do not overwrite the value of need_locks provided by the user
1912 AC_MSG_CHECKING([if we can lock with hard links])
1913 hard_links=yes
1914 $RM conftest*
1915 ln conftest.a conftest.b 2>/dev/null && hard_links=no
1916 touch conftest.a
1917 ln conftest.a conftest.b 2>&5 || hard_links=no
1918 ln conftest.a conftest.b 2>/dev/null && hard_links=no
1919 AC_MSG_RESULT([$hard_links])
1920 if test "$hard_links" = no; then
1921 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
1922 need_locks=warn
1923 fi
1924 else
1925 need_locks=no
1926 fi
1927 _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
1928 ])# _LT_COMPILER_FILE_LOCKS
1929
1930
1931 # _LT_CHECK_OBJDIR
1932 # ----------------
1933 m4_defun([_LT_CHECK_OBJDIR],
1934 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
1935 [rm -f .libs 2>/dev/null
1936 mkdir .libs 2>/dev/null
1937 if test -d .libs; then
1938 lt_cv_objdir=.libs
1939 else
1940 # MS-DOS does not allow filenames that begin with a dot.
1941 lt_cv_objdir=_libs
1942 fi
1943 rmdir .libs 2>/dev/null])
1944 objdir=$lt_cv_objdir
1945 _LT_DECL([], [objdir], [0],
1946 [The name of the directory that contains temporary libtool files])dnl
1947 m4_pattern_allow([LT_OBJDIR])dnl
1948 AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
1949 [Define to the sub-directory in which libtool stores uninstalled libraries.])
1950 ])# _LT_CHECK_OBJDIR
1951
1952
1953 # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
1954 # --------------------------------------
1955 # Check hardcoding attributes.
1956 m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
1957 [AC_MSG_CHECKING([how to hardcode library paths into programs])
1958 _LT_TAGVAR(hardcode_action, $1)=
1959 if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
1960 test -n "$_LT_TAGVAR(runpath_var, $1)" ||
1961 test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1962
1963 # We can hardcode non-existent directories.
1964 if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
1965 # If the only mechanism to avoid hardcoding is shlibpath_var, we
1966 # have to relink, otherwise we might link with an installed library
1967 # when we should be linking with a yet-to-be-installed one
1968 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
1969 test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
1970 # Linking always hardcodes the temporary library directory.
1971 _LT_TAGVAR(hardcode_action, $1)=relink
1972 else
1973 # We can link without hardcoding, and we can hardcode nonexisting dirs.
1974 _LT_TAGVAR(hardcode_action, $1)=immediate
1975 fi
1976 else
1977 # We cannot hardcode anything, or else we can only hardcode existing
1978 # directories.
1979 _LT_TAGVAR(hardcode_action, $1)=unsupported
1980 fi
1981 AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
1982
1983 if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
1984 test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
1985 # Fast installation is not supported
1986 enable_fast_install=no
1987 elif test "$shlibpath_overrides_runpath" = yes ||
1988 test "$enable_shared" = no; then
1989 # Fast installation is not necessary
1990 enable_fast_install=needless
1991 fi
1992 _LT_TAGDECL([], [hardcode_action], [0],
1993 [How to hardcode a shared library path into an executable])
1994 ])# _LT_LINKER_HARDCODE_LIBPATH
1995
1996
1997 # _LT_CMD_STRIPLIB
1998 # ----------------
1999 m4_defun([_LT_CMD_STRIPLIB],
2000 [m4_require([_LT_DECL_EGREP])
2001 striplib=
2002 old_striplib=
2003 AC_MSG_CHECKING([whether stripping libraries is possible])
2004 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
2005 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2006 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2007 AC_MSG_RESULT([yes])
2008 else
2009 # FIXME - insert some real tests, host_os isn't really good enough
2010 case $host_os in
2011 darwin*)
2012 if test -n "$STRIP" ; then
2013 striplib="$STRIP -x"
2014 old_striplib="$STRIP -S"
2015 AC_MSG_RESULT([yes])
2016 else
2017 AC_MSG_RESULT([no])
2018 fi
2019 ;;
2020 *)
2021 AC_MSG_RESULT([no])
2022 ;;
2023 esac
2024 fi
2025 _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
2026 _LT_DECL([], [striplib], [1])
2027 ])# _LT_CMD_STRIPLIB
2028
2029
2030 # _LT_SYS_DYNAMIC_LINKER([TAG])
2031 # -----------------------------
2032 # PORTME Fill in your ld.so characteristics
2033 m4_defun([_LT_SYS_DYNAMIC_LINKER],
2034 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
2035 m4_require([_LT_DECL_EGREP])dnl
2036 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2037 m4_require([_LT_DECL_OBJDUMP])dnl
2038 m4_require([_LT_DECL_SED])dnl
2039 AC_MSG_CHECKING([dynamic linker characteristics])
2040 m4_if([$1],
2041 [], [
2042 if test "$GCC" = yes; then
2043 case $host_os in
2044 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2045 *) lt_awk_arg="/^libraries:/" ;;
2046 esac
2047 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2048 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
2049 # if the path contains ";" then we assume it to be the separator
2050 # otherwise default to the standard path separator (i.e. ":") - it is
2051 # assumed that no part of a normal pathname contains ";" but that should
2052 # okay in the real world where ";" in dirpaths is itself problematic.
2053 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
2054 else
2055 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2056 fi
2057 # Ok, now we have the path, separated by spaces, we can step through it
2058 # and add multilib dir if necessary.
2059 lt_tmp_lt_search_path_spec=
2060 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2061 for lt_sys_path in $lt_search_path_spec; do
2062 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
2063 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
2064 else
2065 test -d "$lt_sys_path" && \
2066 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2067 fi
2068 done
2069 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
2070 BEGIN {RS=" "; FS="/|\n";} {
2071 lt_foo="";
2072 lt_count=0;
2073 for (lt_i = NF; lt_i > 0; lt_i--) {
2074 if ($lt_i != "" && $lt_i != ".") {
2075 if ($lt_i == "..") {
2076 lt_count++;
2077 } else {
2078 if (lt_count == 0) {
2079 lt_foo="/" $lt_i lt_foo;
2080 } else {
2081 lt_count--;
2082 }
2083 }
2084 }
2085 }
2086 if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2087 if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2088 }'`
2089 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
2090 else
2091 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2092 fi])
2093 library_names_spec=
2094 libname_spec='lib$name'
2095 soname_spec=
2096 shrext_cmds=".so"
2097 postinstall_cmds=
2098 postuninstall_cmds=
2099 finish_cmds=
2100 finish_eval=
2101 shlibpath_var=
2102 shlibpath_overrides_runpath=unknown
2103 version_type=none
2104 dynamic_linker="$host_os ld.so"
2105 sys_lib_dlsearch_path_spec="/lib /usr/lib"
2106 need_lib_prefix=unknown
2107 hardcode_into_libs=no
2108
2109 # when you set need_version to no, make sure it does not cause -set_version
2110 # flags to be left without arguments
2111 need_version=unknown
2112
2113 case $host_os in
2114 aix3*)
2115 version_type=linux
2116 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2117 shlibpath_var=LIBPATH
2118
2119 # AIX 3 has no versioning support, so we append a major version to the name.
2120 soname_spec='${libname}${release}${shared_ext}$major'
2121 ;;
2122
2123 aix[[4-9]]*)
2124 version_type=linux
2125 need_lib_prefix=no
2126 need_version=no
2127 hardcode_into_libs=yes
2128 if test "$host_cpu" = ia64; then
2129 # AIX 5 supports IA64
2130 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2131 shlibpath_var=LD_LIBRARY_PATH
2132 else
2133 # With GCC up to 2.95.x, collect2 would create an import file
2134 # for dependence libraries. The import file would start with
2135 # the line `#! .'. This would cause the generated library to
2136 # depend on `.', always an invalid library. This was fixed in
2137 # development snapshots of GCC prior to 3.0.
2138 case $host_os in
2139 aix4 | aix4.[[01]] | aix4.[[01]].*)
2140 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2141 echo ' yes '
2142 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
2143 :
2144 else
2145 can_build_shared=no
2146 fi
2147 ;;
2148 esac
2149 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2150 # soname into executable. Probably we can add versioning support to
2151 # collect2, so additional links can be useful in future.
2152 if test "$aix_use_runtimelinking" = yes; then
2153 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
2154 # instead of lib<name>.a to let people know that these are not
2155 # typical AIX shared libraries.
2156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2157 else
2158 # We preserve .a as extension for shared libraries through AIX4.2
2159 # and later when we are not doing run time linking.
2160 library_names_spec='${libname}${release}.a $libname.a'
2161 soname_spec='${libname}${release}${shared_ext}$major'
2162 fi
2163 shlibpath_var=LIBPATH
2164 fi
2165 ;;
2166
2167 amigaos*)
2168 case $host_cpu in
2169 powerpc)
2170 # Since July 2007 AmigaOS4 officially supports .so libraries.
2171 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
2172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2173 ;;
2174 m68k)
2175 library_names_spec='$libname.ixlibrary $libname.a'
2176 # Create ${libname}_ixlibrary.a entries in /sys/libs.
2177 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'
2178 ;;
2179 esac
2180 ;;
2181
2182 beos*)
2183 library_names_spec='${libname}${shared_ext}'
2184 dynamic_linker="$host_os ld.so"
2185 shlibpath_var=LIBRARY_PATH
2186 ;;
2187
2188 bsdi[[45]]*)
2189 version_type=linux
2190 need_version=no
2191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2192 soname_spec='${libname}${release}${shared_ext}$major'
2193 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2194 shlibpath_var=LD_LIBRARY_PATH
2195 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2196 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2197 # the default ld.so.conf also contains /usr/contrib/lib and
2198 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2199 # libtool to hard-code these into programs
2200 ;;
2201
2202 cygwin* | mingw* | pw32* | cegcc*)
2203 version_type=windows
2204 shrext_cmds=".dll"
2205 need_version=no
2206 need_lib_prefix=no
2207
2208 case $GCC,$host_os in
2209 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
2210 library_names_spec='$libname.dll.a'
2211 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2212 postinstall_cmds='base_file=`basename \${file}`~
2213 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2214 dldir=$destdir/`dirname \$dlpath`~
2215 test -d \$dldir || mkdir -p \$dldir~
2216 $install_prog $dir/$dlname \$dldir/$dlname~
2217 chmod a+x \$dldir/$dlname~
2218 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2219 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
2220 fi'
2221 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2222 dlpath=$dir/\$dldll~
2223 $RM \$dlpath'
2224 shlibpath_overrides_runpath=yes
2225
2226 case $host_os in
2227 cygwin*)
2228 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2229 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2230 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
2231 ;;
2232 mingw* | cegcc*)
2233 # MinGW DLLs use traditional 'lib' prefix
2234 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2235 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2236 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2237 # It is most probably a Windows format PATH printed by
2238 # mingw gcc, but we are running on Cygwin. Gcc prints its search
2239 # path with ; separators, and with drive letters. We can handle the
2240 # drive letters (cygwin fileutils understands them), so leave them,
2241 # especially as we might pass files found there to a mingw objdump,
2242 # which wouldn't understand a cygwinified path. Ahh.
2243 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2244 else
2245 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2246 fi
2247 ;;
2248 pw32*)
2249 # pw32 DLLs use 'pw' prefix rather than 'lib'
2250 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2251 ;;
2252 esac
2253 ;;
2254
2255 *)
2256 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2257 ;;
2258 esac
2259 dynamic_linker='Win32 ld.exe'
2260 # FIXME: first we should search . and the directory the executable is in
2261 shlibpath_var=PATH
2262 ;;
2263
2264 darwin* | rhapsody*)
2265 dynamic_linker="$host_os dyld"
2266 version_type=darwin
2267 need_lib_prefix=no
2268 need_version=no
2269 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2270 soname_spec='${libname}${release}${major}$shared_ext'
2271 shlibpath_overrides_runpath=yes
2272 shlibpath_var=DYLD_LIBRARY_PATH
2273 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2274 m4_if([$1], [],[
2275 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
2276 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2277 ;;
2278
2279 dgux*)
2280 version_type=linux
2281 need_lib_prefix=no
2282 need_version=no
2283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
2284 soname_spec='${libname}${release}${shared_ext}$major'
2285 shlibpath_var=LD_LIBRARY_PATH
2286 ;;
2287
2288 freebsd1*)
2289 dynamic_linker=no
2290 ;;
2291
2292 freebsd* | dragonfly*)
2293 # DragonFly does not have aout. When/if they implement a new
2294 # versioning mechanism, adjust this.
2295 if test -x /usr/bin/objformat; then
2296 objformat=`/usr/bin/objformat`
2297 else
2298 case $host_os in
2299 freebsd[[123]]*) objformat=aout ;;
2300 *) objformat=elf ;;
2301 esac
2302 fi
2303 version_type=freebsd-$objformat
2304 case $version_type in
2305 freebsd-elf*)
2306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2307 need_version=no
2308 need_lib_prefix=no
2309 ;;
2310 freebsd-*)
2311 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
2312 need_version=yes
2313 ;;
2314 esac
2315 shlibpath_var=LD_LIBRARY_PATH
2316 case $host_os in
2317 freebsd2*)
2318 shlibpath_overrides_runpath=yes
2319 ;;
2320 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2321 shlibpath_overrides_runpath=yes
2322 hardcode_into_libs=yes
2323 ;;
2324 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
2325 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
2326 shlibpath_overrides_runpath=no
2327 hardcode_into_libs=yes
2328 ;;
2329 *) # from 4.6 on, and DragonFly
2330 shlibpath_overrides_runpath=yes
2331 hardcode_into_libs=yes
2332 ;;
2333 esac
2334 ;;
2335
2336 gnu*)
2337 version_type=linux
2338 need_lib_prefix=no
2339 need_version=no
2340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2341 soname_spec='${libname}${release}${shared_ext}$major'
2342 shlibpath_var=LD_LIBRARY_PATH
2343 hardcode_into_libs=yes
2344 ;;
2345
2346 hpux9* | hpux10* | hpux11*)
2347 # Give a soname corresponding to the major version so that dld.sl refuses to
2348 # link against other versions.
2349 version_type=sunos
2350 need_lib_prefix=no
2351 need_version=no
2352 case $host_cpu in
2353 ia64*)
2354 shrext_cmds='.so'
2355 hardcode_into_libs=yes
2356 dynamic_linker="$host_os dld.so"
2357 shlibpath_var=LD_LIBRARY_PATH
2358 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2360 soname_spec='${libname}${release}${shared_ext}$major'
2361 if test "X$HPUX_IA64_MODE" = X32; then
2362 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
2363 else
2364 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2365 fi
2366 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2367 ;;
2368 hppa*64*)
2369 shrext_cmds='.sl'
2370 hardcode_into_libs=yes
2371 dynamic_linker="$host_os dld.sl"
2372 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2373 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2375 soname_spec='${libname}${release}${shared_ext}$major'
2376 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2377 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2378 ;;
2379 *)
2380 shrext_cmds='.sl'
2381 dynamic_linker="$host_os dld.sl"
2382 shlibpath_var=SHLIB_PATH
2383 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2385 soname_spec='${libname}${release}${shared_ext}$major'
2386 ;;
2387 esac
2388 # HP-UX runs *really* slowly unless shared libraries are mode 555.
2389 postinstall_cmds='chmod 555 $lib'
2390 ;;
2391
2392 interix[[3-9]]*)
2393 version_type=linux
2394 need_lib_prefix=no
2395 need_version=no
2396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2397 soname_spec='${libname}${release}${shared_ext}$major'
2398 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
2399 shlibpath_var=LD_LIBRARY_PATH
2400 shlibpath_overrides_runpath=no
2401 hardcode_into_libs=yes
2402 ;;
2403
2404 irix5* | irix6* | nonstopux*)
2405 case $host_os in
2406 nonstopux*) version_type=nonstopux ;;
2407 *)
2408 if test "$lt_cv_prog_gnu_ld" = yes; then
2409 version_type=linux
2410 else
2411 version_type=irix
2412 fi ;;
2413 esac
2414 need_lib_prefix=no
2415 need_version=no
2416 soname_spec='${libname}${release}${shared_ext}$major'
2417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
2418 case $host_os in
2419 irix5* | nonstopux*)
2420 libsuff= shlibsuff=
2421 ;;
2422 *)
2423 case $LD in # libtool.m4 will add one of these switches to LD
2424 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2425 libsuff= shlibsuff= libmagic=32-bit;;
2426 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2427 libsuff=32 shlibsuff=N32 libmagic=N32;;
2428 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2429 libsuff=64 shlibsuff=64 libmagic=64-bit;;
2430 *) libsuff= shlibsuff= libmagic=never-match;;
2431 esac
2432 ;;
2433 esac
2434 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
2435 shlibpath_overrides_runpath=no
2436 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
2437 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
2438 hardcode_into_libs=yes
2439 ;;
2440
2441 # No shared lib support for Linux oldld, aout, or coff.
2442 linux*oldld* | linux*aout* | linux*coff*)
2443 dynamic_linker=no
2444 ;;
2445
2446 # This must be Linux ELF.
2447 linux* | k*bsd*-gnu | kopensolaris*-gnu)
2448 version_type=linux
2449 need_lib_prefix=no
2450 need_version=no
2451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2452 soname_spec='${libname}${release}${shared_ext}$major'
2453 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2454 shlibpath_var=LD_LIBRARY_PATH
2455 shlibpath_overrides_runpath=no
2456 # Some binutils ld are patched to set DT_RUNPATH
2457 save_LDFLAGS=$LDFLAGS
2458 save_libdir=$libdir
2459 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
2460 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
2461 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2462 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2463 [shlibpath_overrides_runpath=yes])])
2464 LDFLAGS=$save_LDFLAGS
2465 libdir=$save_libdir
2466
2467 # This implies no fast_install, which is unacceptable.
2468 # Some rework will be needed to allow for fast_install
2469 # before this can be enabled.
2470 hardcode_into_libs=yes
2471
2472 # Append ld.so.conf contents to the search path
2473 if test -f /etc/ld.so.conf; then
2474 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
2475 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2476 fi
2477
2478 # We used to test for /lib/ld.so.1 and disable shared libraries on
2479 # powerpc, because MkLinux only supported shared libraries with the
2480 # GNU dynamic linker. Since this was broken with cross compilers,
2481 # most powerpc-linux boxes support dynamic linking these days and
2482 # people can always --disable-shared, the test was removed, and we
2483 # assume the GNU/Linux dynamic linker is in use.
2484 dynamic_linker='GNU/Linux ld.so'
2485 ;;
2486
2487 netbsdelf*-gnu)
2488 version_type=linux
2489 need_lib_prefix=no
2490 need_version=no
2491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2492 soname_spec='${libname}${release}${shared_ext}$major'
2493 shlibpath_var=LD_LIBRARY_PATH
2494 shlibpath_overrides_runpath=no
2495 hardcode_into_libs=yes
2496 dynamic_linker='NetBSD ld.elf_so'
2497 ;;
2498
2499 netbsd*)
2500 version_type=sunos
2501 need_lib_prefix=no
2502 need_version=no
2503 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
2504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2505 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2506 dynamic_linker='NetBSD (a.out) ld.so'
2507 else
2508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2509 soname_spec='${libname}${release}${shared_ext}$major'
2510 dynamic_linker='NetBSD ld.elf_so'
2511 fi
2512 shlibpath_var=LD_LIBRARY_PATH
2513 shlibpath_overrides_runpath=yes
2514 hardcode_into_libs=yes
2515 ;;
2516
2517 newsos6)
2518 version_type=linux
2519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2520 shlibpath_var=LD_LIBRARY_PATH
2521 shlibpath_overrides_runpath=yes
2522 ;;
2523
2524 *nto* | *qnx*)
2525 version_type=qnx
2526 need_lib_prefix=no
2527 need_version=no
2528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2529 soname_spec='${libname}${release}${shared_ext}$major'
2530 shlibpath_var=LD_LIBRARY_PATH
2531 shlibpath_overrides_runpath=no
2532 hardcode_into_libs=yes
2533 dynamic_linker='ldqnx.so'
2534 ;;
2535
2536 openbsd*)
2537 version_type=sunos
2538 sys_lib_dlsearch_path_spec="/usr/lib"
2539 need_lib_prefix=no
2540 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
2541 case $host_os in
2542 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
2543 *) need_version=no ;;
2544 esac
2545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2546 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2547 shlibpath_var=LD_LIBRARY_PATH
2548 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2549 case $host_os in
2550 openbsd2.[[89]] | openbsd2.[[89]].*)
2551 shlibpath_overrides_runpath=no
2552 ;;
2553 *)
2554 shlibpath_overrides_runpath=yes
2555 ;;
2556 esac
2557 else
2558 shlibpath_overrides_runpath=yes
2559 fi
2560 ;;
2561
2562 os2*)
2563 libname_spec='$name'
2564 shrext_cmds=".dll"
2565 need_lib_prefix=no
2566 library_names_spec='$libname${shared_ext} $libname.a'
2567 dynamic_linker='OS/2 ld.exe'
2568 shlibpath_var=LIBPATH
2569 ;;
2570
2571 osf3* | osf4* | osf5*)
2572 version_type=osf
2573 need_lib_prefix=no
2574 need_version=no
2575 soname_spec='${libname}${release}${shared_ext}$major'
2576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2577 shlibpath_var=LD_LIBRARY_PATH
2578 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
2579 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
2580 ;;
2581
2582 rdos*)
2583 dynamic_linker=no
2584 ;;
2585
2586 solaris*)
2587 version_type=linux
2588 need_lib_prefix=no
2589 need_version=no
2590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2591 soname_spec='${libname}${release}${shared_ext}$major'
2592 shlibpath_var=LD_LIBRARY_PATH
2593 shlibpath_overrides_runpath=yes
2594 hardcode_into_libs=yes
2595 # ldd complains unless libraries are executable
2596 postinstall_cmds='chmod +x $lib'
2597 ;;
2598
2599 sunos4*)
2600 version_type=sunos
2601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2602 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
2603 shlibpath_var=LD_LIBRARY_PATH
2604 shlibpath_overrides_runpath=yes
2605 if test "$with_gnu_ld" = yes; then
2606 need_lib_prefix=no
2607 fi
2608 need_version=yes
2609 ;;
2610
2611 sysv4 | sysv4.3*)
2612 version_type=linux
2613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2614 soname_spec='${libname}${release}${shared_ext}$major'
2615 shlibpath_var=LD_LIBRARY_PATH
2616 case $host_vendor in
2617 sni)
2618 shlibpath_overrides_runpath=no
2619 need_lib_prefix=no
2620 runpath_var=LD_RUN_PATH
2621 ;;
2622 siemens)
2623 need_lib_prefix=no
2624 ;;
2625 motorola)
2626 need_lib_prefix=no
2627 need_version=no
2628 shlibpath_overrides_runpath=no
2629 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
2630 ;;
2631 esac
2632 ;;
2633
2634 sysv4*MP*)
2635 if test -d /usr/nec ;then
2636 version_type=linux
2637 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
2638 soname_spec='$libname${shared_ext}.$major'
2639 shlibpath_var=LD_LIBRARY_PATH
2640 fi
2641 ;;
2642
2643 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2644 version_type=freebsd-elf
2645 need_lib_prefix=no
2646 need_version=no
2647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2648 soname_spec='${libname}${release}${shared_ext}$major'
2649 shlibpath_var=LD_LIBRARY_PATH
2650 shlibpath_overrides_runpath=yes
2651 hardcode_into_libs=yes
2652 if test "$with_gnu_ld" = yes; then
2653 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
2654 else
2655 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
2656 case $host_os in
2657 sco3.2v5*)
2658 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
2659 ;;
2660 esac
2661 fi
2662 sys_lib_dlsearch_path_spec='/usr/lib'
2663 ;;
2664
2665 tpf*)
2666 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
2667 version_type=linux
2668 need_lib_prefix=no
2669 need_version=no
2670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2671 shlibpath_var=LD_LIBRARY_PATH
2672 shlibpath_overrides_runpath=no
2673 hardcode_into_libs=yes
2674 ;;
2675
2676 uts4*)
2677 version_type=linux
2678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2679 soname_spec='${libname}${release}${shared_ext}$major'
2680 shlibpath_var=LD_LIBRARY_PATH
2681 ;;
2682
2683 *)
2684 dynamic_linker=no
2685 ;;
2686 esac
2687 AC_MSG_RESULT([$dynamic_linker])
2688 test "$dynamic_linker" = no && can_build_shared=no
2689
2690 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
2691 if test "$GCC" = yes; then
2692 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2693 fi
2694
2695 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
2696 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
2697 fi
2698 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
2699 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
2700 fi
2701
2702 _LT_DECL([], [variables_saved_for_relink], [1],
2703 [Variables whose values should be saved in libtool wrapper scripts and
2704 restored at link time])
2705 _LT_DECL([], [need_lib_prefix], [0],
2706 [Do we need the "lib" prefix for modules?])
2707 _LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
2708 _LT_DECL([], [version_type], [0], [Library versioning type])
2709 _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
2710 _LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
2711 _LT_DECL([], [shlibpath_overrides_runpath], [0],
2712 [Is shlibpath searched before the hard-coded library search path?])
2713 _LT_DECL([], [libname_spec], [1], [Format of library name prefix])
2714 _LT_DECL([], [library_names_spec], [1],
2715 [[List of archive names. First name is the real one, the rest are links.
2716 The last name is the one that the linker finds with -lNAME]])
2717 _LT_DECL([], [soname_spec], [1],
2718 [[The coded name of the library, if different from the real name]])
2719 _LT_DECL([], [postinstall_cmds], [2],
2720 [Command to use after installation of a shared archive])
2721 _LT_DECL([], [postuninstall_cmds], [2],
2722 [Command to use after uninstallation of a shared archive])
2723 _LT_DECL([], [finish_cmds], [2],
2724 [Commands used to finish a libtool library installation in a directory])
2725 _LT_DECL([], [finish_eval], [1],
2726 [[As "finish_cmds", except a single script fragment to be evaled but
2727 not shown]])
2728 _LT_DECL([], [hardcode_into_libs], [0],
2729 [Whether we should hardcode library paths into libraries])
2730 _LT_DECL([], [sys_lib_search_path_spec], [2],
2731 [Compile-time system search path for libraries])
2732 _LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
2733 [Run-time system search path for libraries])
2734 ])# _LT_SYS_DYNAMIC_LINKER
2735
2736
2737 # _LT_PATH_TOOL_PREFIX(TOOL)
2738 # --------------------------
2739 # find a file program which can recognize shared library
2740 AC_DEFUN([_LT_PATH_TOOL_PREFIX],
2741 [m4_require([_LT_DECL_EGREP])dnl
2742 AC_MSG_CHECKING([for $1])
2743 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
2744 [case $MAGIC_CMD in
2745 [[\\/*] | ?:[\\/]*])
2746 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2747 ;;
2748 *)
2749 lt_save_MAGIC_CMD="$MAGIC_CMD"
2750 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2751 dnl $ac_dummy forces splitting on constant user-supplied paths.
2752 dnl POSIX.2 word splitting is done only on the output of word expansions,
2753 dnl not every word. This closes a longstanding sh security hole.
2754 ac_dummy="m4_if([$2], , $PATH, [$2])"
2755 for ac_dir in $ac_dummy; do
2756 IFS="$lt_save_ifs"
2757 test -z "$ac_dir" && ac_dir=.
2758 if test -f $ac_dir/$1; then
2759 lt_cv_path_MAGIC_CMD="$ac_dir/$1"
2760 if test -n "$file_magic_test_file"; then
2761 case $deplibs_check_method in
2762 "file_magic "*)
2763 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
2764 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2765 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2766 $EGREP "$file_magic_regex" > /dev/null; then
2767 :
2768 else
2769 cat <<_LT_EOF 1>&2
2770
2771 *** Warning: the command libtool uses to detect shared libraries,
2772 *** $file_magic_cmd, produces output that libtool cannot recognize.
2773 *** The result is that libtool may fail to recognize shared libraries
2774 *** as such. This will affect the creation of libtool libraries that
2775 *** depend on shared libraries, but programs linked with such libtool
2776 *** libraries will work regardless of this problem. Nevertheless, you
2777 *** may want to report the problem to your system manager and/or to
2778 *** bug-libtool@gnu.org
2779
2780 _LT_EOF
2781 fi ;;
2782 esac
2783 fi
2784 break
2785 fi
2786 done
2787 IFS="$lt_save_ifs"
2788 MAGIC_CMD="$lt_save_MAGIC_CMD"
2789 ;;
2790 esac])
2791 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2792 if test -n "$MAGIC_CMD"; then
2793 AC_MSG_RESULT($MAGIC_CMD)
2794 else
2795 AC_MSG_RESULT(no)
2796 fi
2797 _LT_DECL([], [MAGIC_CMD], [0],
2798 [Used to examine libraries when file_magic_cmd begins with "file"])dnl
2799 ])# _LT_PATH_TOOL_PREFIX
2800
2801 # Old name:
2802 AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
2803 dnl aclocal-1.4 backwards compatibility:
2804 dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
2805
2806
2807 # _LT_PATH_MAGIC
2808 # --------------
2809 # find a file program which can recognize a shared library
2810 m4_defun([_LT_PATH_MAGIC],
2811 [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2812 if test -z "$lt_cv_path_MAGIC_CMD"; then
2813 if test -n "$ac_tool_prefix"; then
2814 _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
2815 else
2816 MAGIC_CMD=:
2817 fi
2818 fi
2819 ])# _LT_PATH_MAGIC
2820
2821
2822 # LT_PATH_LD
2823 # ----------
2824 # find the pathname to the GNU or non-GNU linker
2825 AC_DEFUN([LT_PATH_LD],
2826 [AC_REQUIRE([AC_PROG_CC])dnl
2827 AC_REQUIRE([AC_CANONICAL_HOST])dnl
2828 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2829 m4_require([_LT_DECL_SED])dnl
2830 m4_require([_LT_DECL_EGREP])dnl
2831
2832 AC_ARG_WITH([gnu-ld],
2833 [AS_HELP_STRING([--with-gnu-ld],
2834 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
2835 [test "$withval" = no || with_gnu_ld=yes],
2836 [with_gnu_ld=no])dnl
2837
2838 ac_prog=ld
2839 if test "$GCC" = yes; then
2840 # Check if gcc -print-prog-name=ld gives a path.
2841 AC_MSG_CHECKING([for ld used by $CC])
2842 case $host in
2843 *-*-mingw*)
2844 # gcc leaves a trailing carriage return which upsets mingw
2845 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2846 *)
2847 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2848 esac
2849 case $ac_prog in
2850 # Accept absolute paths.
2851 [[\\/]]* | ?:[[\\/]]*)
2852 re_direlt='/[[^/]][[^/]]*/\.\./'
2853 # Canonicalize the pathname of ld
2854 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
2855 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
2856 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
2857 done
2858 test -z "$LD" && LD="$ac_prog"
2859 ;;
2860 "")
2861 # If it fails, then pretend we aren't using GCC.
2862 ac_prog=ld
2863 ;;
2864 *)
2865 # If it is relative, then search for the first ld in PATH.
2866 with_gnu_ld=unknown
2867 ;;
2868 esac
2869 elif test "$with_gnu_ld" = yes; then
2870 AC_MSG_CHECKING([for GNU ld])
2871 else
2872 AC_MSG_CHECKING([for non-GNU ld])
2873 fi
2874 AC_CACHE_VAL(lt_cv_path_LD,
2875 [if test -z "$LD"; then
2876 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2877 for ac_dir in $PATH; do
2878 IFS="$lt_save_ifs"
2879 test -z "$ac_dir" && ac_dir=.
2880 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2881 lt_cv_path_LD="$ac_dir/$ac_prog"
2882 # Check to see if the program is GNU ld. I'd rather use --version,
2883 # but apparently some variants of GNU ld only accept -v.
2884 # Break only if it was the GNU/non-GNU ld that we prefer.
2885 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2886 *GNU* | *'with BFD'*)
2887 test "$with_gnu_ld" != no && break
2888 ;;
2889 *)
2890 test "$with_gnu_ld" != yes && break
2891 ;;
2892 esac
2893 fi
2894 done
2895 IFS="$lt_save_ifs"
2896 else
2897 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2898 fi])
2899 LD="$lt_cv_path_LD"
2900 if test -n "$LD"; then
2901 AC_MSG_RESULT($LD)
2902 else
2903 AC_MSG_RESULT(no)
2904 fi
2905 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
2906 _LT_PATH_LD_GNU
2907 AC_SUBST([LD])
2908
2909 _LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
2910 ])# LT_PATH_LD
2911
2912 # Old names:
2913 AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
2914 AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
2915 dnl aclocal-1.4 backwards compatibility:
2916 dnl AC_DEFUN([AM_PROG_LD], [])
2917 dnl AC_DEFUN([AC_PROG_LD], [])
2918
2919
2920 # _LT_PATH_LD_GNU
2921 #- --------------
2922 m4_defun([_LT_PATH_LD_GNU],
2923 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2924 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
2925 case `$LD -v 2>&1 </dev/null` in
2926 *GNU* | *'with BFD'*)
2927 lt_cv_prog_gnu_ld=yes
2928 ;;
2929 *)
2930 lt_cv_prog_gnu_ld=no
2931 ;;
2932 esac])
2933 with_gnu_ld=$lt_cv_prog_gnu_ld
2934 ])# _LT_PATH_LD_GNU
2935
2936
2937 # _LT_CMD_RELOAD
2938 # --------------
2939 # find reload flag for linker
2940 # -- PORTME Some linkers may need a different reload flag.
2941 m4_defun([_LT_CMD_RELOAD],
2942 [AC_CACHE_CHECK([for $LD option to reload object files],
2943 lt_cv_ld_reload_flag,
2944 [lt_cv_ld_reload_flag='-r'])
2945 reload_flag=$lt_cv_ld_reload_flag
2946 case $reload_flag in
2947 "" | " "*) ;;
2948 *) reload_flag=" $reload_flag" ;;
2949 esac
2950 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2951 case $host_os in
2952 darwin*)
2953 if test "$GCC" = yes; then
2954 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
2955 else
2956 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2957 fi
2958 ;;
2959 esac
2960 _LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
2961 _LT_DECL([], [reload_cmds], [2])dnl
2962 ])# _LT_CMD_RELOAD
2963
2964
2965 # _LT_CHECK_MAGIC_METHOD
2966 # ----------------------
2967 # how to check for library dependencies
2968 # -- PORTME fill in with the dynamic library characteristics
2969 m4_defun([_LT_CHECK_MAGIC_METHOD],
2970 [m4_require([_LT_DECL_EGREP])
2971 m4_require([_LT_DECL_OBJDUMP])
2972 AC_CACHE_CHECK([how to recognize dependent libraries],
2973 lt_cv_deplibs_check_method,
2974 [lt_cv_file_magic_cmd='$MAGIC_CMD'
2975 lt_cv_file_magic_test_file=
2976 lt_cv_deplibs_check_method='unknown'
2977 # Need to set the preceding variable on all platforms that support
2978 # interlibrary dependencies.
2979 # 'none' -- dependencies not supported.
2980 # `unknown' -- same as none, but documents that we really don't know.
2981 # 'pass_all' -- all dependencies passed with no checks.
2982 # 'test_compile' -- check by making test program.
2983 # 'file_magic [[regex]]' -- check by looking for files in library path
2984 # which responds to the $file_magic_cmd with a given extended regex.
2985 # If you have `file' or equivalent on your system and you're not sure
2986 # whether `pass_all' will *always* work, you probably want this one.
2987
2988 case $host_os in
2989 aix[[4-9]]*)
2990 lt_cv_deplibs_check_method=pass_all
2991 ;;
2992
2993 beos*)
2994 lt_cv_deplibs_check_method=pass_all
2995 ;;
2996
2997 bsdi[[45]]*)
2998 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
2999 lt_cv_file_magic_cmd='/usr/bin/file -L'
3000 lt_cv_file_magic_test_file=/shlib/libc.so
3001 ;;
3002
3003 cygwin*)
3004 # func_win32_libid is a shell function defined in ltmain.sh
3005 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3006 lt_cv_file_magic_cmd='func_win32_libid'
3007 ;;
3008
3009 mingw* | pw32*)
3010 # Base MSYS/MinGW do not provide the 'file' command needed by
3011 # func_win32_libid shell function, so use a weaker test based on 'objdump',
3012 # unless we find 'file', for example because we are cross-compiling.
3013 if ( file / ) >/dev/null 2>&1; then
3014 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3015 lt_cv_file_magic_cmd='func_win32_libid'
3016 else
3017 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3018 lt_cv_file_magic_cmd='$OBJDUMP -f'
3019 fi
3020 ;;
3021
3022 cegcc)
3023 # use the weaker test based on 'objdump'. See mingw*.
3024 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3025 lt_cv_file_magic_cmd='$OBJDUMP -f'
3026 ;;
3027
3028 darwin* | rhapsody*)
3029 lt_cv_deplibs_check_method=pass_all
3030 ;;
3031
3032 freebsd* | dragonfly*)
3033 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3034 case $host_cpu in
3035 i*86 )
3036 # Not sure whether the presence of OpenBSD here was a mistake.
3037 # Let's accept both of them until this is cleared up.
3038 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
3039 lt_cv_file_magic_cmd=/usr/bin/file
3040 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3041 ;;
3042 esac
3043 else
3044 lt_cv_deplibs_check_method=pass_all
3045 fi
3046 ;;
3047
3048 gnu*)
3049 lt_cv_deplibs_check_method=pass_all
3050 ;;
3051
3052 hpux10.20* | hpux11*)
3053 lt_cv_file_magic_cmd=/usr/bin/file
3054 case $host_cpu in
3055 ia64*)
3056 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3057 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3058 ;;
3059 hppa*64*)
3060 [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
3061 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3062 ;;
3063 *)
3064 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
3065 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3066 ;;
3067 esac
3068 ;;
3069
3070 interix[[3-9]]*)
3071 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3072 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
3073 ;;
3074
3075 irix5* | irix6* | nonstopux*)
3076 case $LD in
3077 *-32|*"-32 ") libmagic=32-bit;;
3078 *-n32|*"-n32 ") libmagic=N32;;
3079 *-64|*"-64 ") libmagic=64-bit;;
3080 *) libmagic=never-match;;
3081 esac
3082 lt_cv_deplibs_check_method=pass_all
3083 ;;
3084
3085 # This must be Linux ELF.
3086 linux* | k*bsd*-gnu | kopensolaris*-gnu)
3087 lt_cv_deplibs_check_method=pass_all
3088 ;;
3089
3090 netbsd* | netbsdelf*-gnu)
3091 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3092 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3093 else
3094 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3095 fi
3096 ;;
3097
3098 newos6*)
3099 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3100 lt_cv_file_magic_cmd=/usr/bin/file
3101 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3102 ;;
3103
3104 *nto* | *qnx*)
3105 lt_cv_deplibs_check_method=pass_all
3106 ;;
3107
3108 openbsd*)
3109 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3110 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3111 else
3112 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3113 fi
3114 ;;
3115
3116 osf3* | osf4* | osf5*)
3117 lt_cv_deplibs_check_method=pass_all
3118 ;;
3119
3120 rdos*)
3121 lt_cv_deplibs_check_method=pass_all
3122 ;;
3123
3124 solaris*)
3125 lt_cv_deplibs_check_method=pass_all
3126 ;;
3127
3128 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3129 lt_cv_deplibs_check_method=pass_all
3130 ;;
3131
3132 sysv4 | sysv4.3*)
3133 case $host_vendor in
3134 motorola)
3135 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]]'
3136 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3137 ;;
3138 ncr)
3139 lt_cv_deplibs_check_method=pass_all
3140 ;;
3141 sequent)
3142 lt_cv_file_magic_cmd='/bin/file'
3143 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
3144 ;;
3145 sni)
3146 lt_cv_file_magic_cmd='/bin/file'
3147 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3148 lt_cv_file_magic_test_file=/lib/libc.so
3149 ;;
3150 siemens)
3151 lt_cv_deplibs_check_method=pass_all
3152 ;;
3153 pc)
3154 lt_cv_deplibs_check_method=pass_all
3155 ;;
3156 esac
3157 ;;
3158
3159 tpf*)
3160 lt_cv_deplibs_check_method=pass_all
3161 ;;
3162 esac
3163 ])
3164 file_magic_cmd=$lt_cv_file_magic_cmd
3165 deplibs_check_method=$lt_cv_deplibs_check_method
3166 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3167
3168 _LT_DECL([], [deplibs_check_method], [1],
3169 [Method to check whether dependent libraries are shared objects])
3170 _LT_DECL([], [file_magic_cmd], [1],
3171 [Command to use when deplibs_check_method == "file_magic"])
3172 ])# _LT_CHECK_MAGIC_METHOD
3173
3174
3175 # LT_PATH_NM
3176 # ----------
3177 # find the pathname to a BSD- or MS-compatible name lister
3178 AC_DEFUN([LT_PATH_NM],
3179 [AC_REQUIRE([AC_PROG_CC])dnl
3180 AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
3181 [if test -n "$NM"; then
3182 # Let the user override the test.
3183 lt_cv_path_NM="$NM"
3184 else
3185 lt_nm_to_check="${ac_tool_prefix}nm"
3186 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3187 lt_nm_to_check="$lt_nm_to_check nm"
3188 fi
3189 for lt_tmp_nm in $lt_nm_to_check; do
3190 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3191 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3192 IFS="$lt_save_ifs"
3193 test -z "$ac_dir" && ac_dir=.
3194 tmp_nm="$ac_dir/$lt_tmp_nm"
3195 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3196 # Check to see if the nm accepts a BSD-compat flag.
3197 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3198 # nm: unknown option "B" ignored
3199 # Tru64's nm complains that /dev/null is an invalid object file
3200 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3201 */dev/null* | *'Invalid file or object type'*)
3202 lt_cv_path_NM="$tmp_nm -B"
3203 break
3204 ;;
3205 *)
3206 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3207 */dev/null*)
3208 lt_cv_path_NM="$tmp_nm -p"
3209 break
3210 ;;
3211 *)
3212 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3213 continue # so that we can try to find one that supports BSD flags
3214 ;;
3215 esac
3216 ;;
3217 esac
3218 fi
3219 done
3220 IFS="$lt_save_ifs"
3221 done
3222 : ${lt_cv_path_NM=no}
3223 fi])
3224 if test "$lt_cv_path_NM" != "no"; then
3225 NM="$lt_cv_path_NM"
3226 else
3227 # Didn't find any BSD compatible name lister, look for dumpbin.
3228 AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
3229 AC_SUBST([DUMPBIN])
3230 if test "$DUMPBIN" != ":"; then
3231 NM="$DUMPBIN"
3232 fi
3233 fi
3234 test -z "$NM" && NM=nm
3235 AC_SUBST([NM])
3236 _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
3237
3238 AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
3239 [lt_cv_nm_interface="BSD nm"
3240 echo "int some_variable = 0;" > conftest.$ac_ext
3241 (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
3242 (eval "$ac_compile" 2>conftest.err)
3243 cat conftest.err >&AS_MESSAGE_LOG_FD
3244 (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
3245 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3246 cat conftest.err >&AS_MESSAGE_LOG_FD
3247 (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
3248 cat conftest.out >&AS_MESSAGE_LOG_FD
3249 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3250 lt_cv_nm_interface="MS dumpbin"
3251 fi
3252 rm -f conftest*])
3253 ])# LT_PATH_NM
3254
3255 # Old names:
3256 AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
3257 AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
3258 dnl aclocal-1.4 backwards compatibility:
3259 dnl AC_DEFUN([AM_PROG_NM], [])
3260 dnl AC_DEFUN([AC_PROG_NM], [])
3261
3262
3263 # LT_LIB_M
3264 # --------
3265 # check for math library
3266 AC_DEFUN([LT_LIB_M],
3267 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
3268 LIBM=
3269 case $host in
3270 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
3271 # These system don't have libm, or don't need it
3272 ;;
3273 *-ncr-sysv4.3*)
3274 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3275 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3276 ;;
3277 *)
3278 AC_CHECK_LIB(m, cos, LIBM="-lm")
3279 ;;
3280 esac
3281 AC_SUBST([LIBM])
3282 ])# LT_LIB_M
3283
3284 # Old name:
3285 AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
3286 dnl aclocal-1.4 backwards compatibility:
3287 dnl AC_DEFUN([AC_CHECK_LIBM], [])
3288
3289
3290 # _LT_COMPILER_NO_RTTI([TAGNAME])
3291 # -------------------------------
3292 m4_defun([_LT_COMPILER_NO_RTTI],
3293 [m4_require([_LT_TAG_COMPILER])dnl
3294
3295 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3296
3297 if test "$GCC" = yes; then
3298 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3299
3300 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3301 lt_cv_prog_compiler_rtti_exceptions,
3302 [-fno-rtti -fno-exceptions], [],
3303 [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
3304 fi
3305 _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
3306 [Compiler flag to turn off builtin functions])
3307 ])# _LT_COMPILER_NO_RTTI
3308
3309
3310 # _LT_CMD_GLOBAL_SYMBOLS
3311 # ----------------------
3312 m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
3313 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
3314 AC_REQUIRE([AC_PROG_CC])dnl
3315 AC_REQUIRE([LT_PATH_NM])dnl
3316 AC_REQUIRE([LT_PATH_LD])dnl
3317 m4_require([_LT_DECL_SED])dnl
3318 m4_require([_LT_DECL_EGREP])dnl
3319 m4_require([_LT_TAG_COMPILER])dnl
3320
3321 # Check for command to grab the raw symbol name followed by C symbol from nm.
3322 AC_MSG_CHECKING([command to parse $NM output from $compiler object])
3323 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
3324 [
3325 # These are sane defaults that work on at least a few old systems.
3326 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3327
3328 # Character class describing NM global symbol codes.
3329 symcode='[[BCDEGRST]]'
3330
3331 # Regexp to match symbols that can be accessed directly from C.
3332 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
3333
3334 # Define system-specific variables.
3335 case $host_os in
3336 aix*)
3337 symcode='[[BCDT]]'
3338 ;;
3339 cygwin* | mingw* | pw32* | cegcc*)
3340 symcode='[[ABCDGISTW]]'
3341 ;;
3342 hpux*)
3343 if test "$host_cpu" = ia64; then
3344 symcode='[[ABCDEGRST]]'
3345 fi
3346 ;;
3347 irix* | nonstopux*)
3348 symcode='[[BCDEGRST]]'
3349 ;;
3350 osf*)
3351 symcode='[[BCDEGQRST]]'
3352 ;;
3353 solaris*)
3354 symcode='[[BDRT]]'
3355 ;;
3356 sco3.2v5*)
3357 symcode='[[DT]]'
3358 ;;
3359 sysv4.2uw2*)
3360 symcode='[[DT]]'
3361 ;;
3362 sysv5* | sco5v6* | unixware* | OpenUNIX*)
3363 symcode='[[ABDT]]'
3364 ;;
3365 sysv4)
3366 symcode='[[DFNSTU]]'
3367 ;;
3368 esac
3369
3370 # If we're using GNU nm, then use its standard symbol codes.
3371 case `$NM -V 2>&1` in
3372 *GNU* | *'with BFD'*)
3373 symcode='[[ABCDGIRSTW]]' ;;
3374 esac
3375
3376 # Transform an extracted symbol line into a proper C declaration.
3377 # Some systems (esp. on ia64) link data and code symbols differently,
3378 # so use this general approach.
3379 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3380
3381 # Transform an extracted symbol line into symbol name and symbol address
3382 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
3383 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
3384
3385 # Handle CRLF in mingw tool chain
3386 opt_cr=
3387 case $build_os in
3388 mingw*)
3389 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3390 ;;
3391 esac
3392
3393 # Try without a prefix underscore, then with it.
3394 for ac_symprfx in "" "_"; do
3395
3396 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
3397 symxfrm="\\1 $ac_symprfx\\2 \\2"
3398
3399 # Write the raw and C identifiers.
3400 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3401 # Fake it for dumpbin and say T for any non-static function
3402 # and D for any global variable.
3403 # Also find C++ and __fastcall symbols from MSVC++,
3404 # which start with @ or ?.
3405 lt_cv_sys_global_symbol_pipe="$AWK ['"\
3406 " {last_section=section; section=\$ 3};"\
3407 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
3408 " \$ 0!~/External *\|/{next};"\
3409 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
3410 " {if(hide[section]) next};"\
3411 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
3412 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
3413 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
3414 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
3415 " ' prfx=^$ac_symprfx]"
3416 else
3417 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
3418 fi
3419
3420 # Check to see that the pipe works correctly.
3421 pipe_works=no
3422
3423 rm -f conftest*
3424 cat > conftest.$ac_ext <<_LT_EOF
3425 #ifdef __cplusplus
3426 extern "C" {
3427 #endif
3428 char nm_test_var;
3429 void nm_test_func(void);
3430 void nm_test_func(void){}
3431 #ifdef __cplusplus
3432 }
3433 #endif
3434 int main(){nm_test_var='a';nm_test_func();return(0);}
3435 _LT_EOF
3436
3437 if AC_TRY_EVAL(ac_compile); then
3438 # Now try to grab the symbols.
3439 nlist=conftest.nm
3440 if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
3441 # Try sorting and uniquifying the output.
3442 if sort "$nlist" | uniq > "$nlist"T; then
3443 mv -f "$nlist"T "$nlist"
3444 else
3445 rm -f "$nlist"T
3446 fi
3447
3448 # Make sure that we snagged all the symbols we need.
3449 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
3450 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
3451 cat <<_LT_EOF > conftest.$ac_ext
3452 #ifdef __cplusplus
3453 extern "C" {
3454 #endif
3455
3456 _LT_EOF
3457 # Now generate the symbol file.
3458 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
3459
3460 cat <<_LT_EOF >> conftest.$ac_ext
3461
3462 /* The mapping between symbol names and symbols. */
3463 const struct {
3464 const char *name;
3465 void *address;
3466 }
3467 lt__PROGRAM__LTX_preloaded_symbols[[]] =
3468 {
3469 { "@PROGRAM@", (void *) 0 },
3470 _LT_EOF
3471 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
3472 cat <<\_LT_EOF >> conftest.$ac_ext
3473 {0, (void *) 0}
3474 };
3475
3476 /* This works around a problem in FreeBSD linker */
3477 #ifdef FREEBSD_WORKAROUND
3478 static const void *lt_preloaded_setup() {
3479 return lt__PROGRAM__LTX_preloaded_symbols;
3480 }
3481 #endif
3482
3483 #ifdef __cplusplus
3484 }
3485 #endif
3486 _LT_EOF
3487 # Now try linking the two files.
3488 mv conftest.$ac_objext conftstm.$ac_objext
3489 lt_save_LIBS="$LIBS"
3490 lt_save_CFLAGS="$CFLAGS"
3491 LIBS="conftstm.$ac_objext"
3492 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
3493 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
3494 pipe_works=yes
3495 fi
3496 LIBS="$lt_save_LIBS"
3497 CFLAGS="$lt_save_CFLAGS"
3498 else
3499 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
3500 fi
3501 else
3502 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
3503 fi
3504 else
3505 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
3506 fi
3507 else
3508 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
3509 cat conftest.$ac_ext >&5
3510 fi
3511 rm -rf conftest* conftst*
3512
3513 # Do not use the global_symbol_pipe unless it works.
3514 if test "$pipe_works" = yes; then
3515 break
3516 else
3517 lt_cv_sys_global_symbol_pipe=
3518 fi
3519 done
3520 ])
3521 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3522 lt_cv_sys_global_symbol_to_cdecl=
3523 fi
3524 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
3525 AC_MSG_RESULT(failed)
3526 else
3527 AC_MSG_RESULT(ok)
3528 fi
3529
3530 _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
3531 [Take the output of nm and produce a listing of raw symbols and C names])
3532 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
3533 [Transform the output of nm in a proper C declaration])
3534 _LT_DECL([global_symbol_to_c_name_address],
3535 [lt_cv_sys_global_symbol_to_c_name_address], [1],
3536 [Transform the output of nm in a C name address pair])
3537 _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
3538 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
3539 [Transform the output of nm in a C name address pair when lib prefix is needed])
3540 ]) # _LT_CMD_GLOBAL_SYMBOLS
3541
3542
3543 # _LT_COMPILER_PIC([TAGNAME])
3544 # ---------------------------
3545 m4_defun([_LT_COMPILER_PIC],
3546 [m4_require([_LT_TAG_COMPILER])dnl
3547 _LT_TAGVAR(lt_prog_compiler_wl, $1)=
3548 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3549 _LT_TAGVAR(lt_prog_compiler_static, $1)=
3550
3551 AC_MSG_CHECKING([for $compiler option to produce PIC])
3552 m4_if([$1], [CXX], [
3553 # C++ specific cases for pic, static, wl, etc.
3554 if test "$GXX" = yes; then
3555 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3556 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
3557
3558 case $host_os in
3559 aix*)
3560 # All AIX code is PIC.
3561 if test "$host_cpu" = ia64; then
3562 # AIX 5 now supports IA64 processor
3563 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3564 fi
3565 ;;
3566
3567 amigaos*)
3568 case $host_cpu in
3569 powerpc)
3570 # see comment about AmigaOS4 .so support
3571 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3572 ;;
3573 m68k)
3574 # FIXME: we need at least 68020 code to build shared libraries, but
3575 # adding the `-m68020' flag to GCC prevents building anything better,
3576 # like `-m68040'.
3577 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
3578 ;;
3579 esac
3580 ;;
3581
3582 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
3583 # PIC is the default for these OSes.
3584 ;;
3585 mingw* | cygwin* | os2* | pw32* | cegcc*)
3586 # This hack is so that the source file can tell whether it is being
3587 # built for inclusion in a dll (and should export symbols for example).
3588 # Although the cygwin gcc ignores -fPIC, still need this for old-style
3589 # (--disable-auto-import) libraries
3590 m4_if([$1], [GCJ], [],
3591 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
3592 ;;
3593 darwin* | rhapsody*)
3594 # PIC is the default on this platform
3595 # Common symbols not allowed in MH_DYLIB files
3596 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
3597 ;;
3598 *djgpp*)
3599 # DJGPP does not support shared libraries at all
3600 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3601 ;;
3602 interix[[3-9]]*)
3603 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
3604 # Instead, we relocate shared libraries at runtime.
3605 ;;
3606 sysv4*MP*)
3607 if test -d /usr/nec; then
3608 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
3609 fi
3610 ;;
3611 hpux*)
3612 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
3613 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
3614 # sets the default TLS model and affects inlining.
3615 case $host_cpu in
3616 hppa*64*)
3617 ;;
3618 *)
3619 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3620 ;;
3621 esac
3622 ;;
3623 *qnx* | *nto*)
3624 # QNX uses GNU C++, but need to define -shared option too, otherwise
3625 # it will coredump.
3626 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
3627 ;;
3628 *)
3629 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3630 ;;
3631 esac
3632 else
3633 case $host_os in
3634 aix[[4-9]]*)
3635 # All AIX code is PIC.
3636 if test "$host_cpu" = ia64; then
3637 # AIX 5 now supports IA64 processor
3638 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3639 else
3640 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
3641 fi
3642 ;;
3643 chorus*)
3644 case $cc_basename in
3645 cxch68*)
3646 # Green Hills C++ Compiler
3647 # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
3648 ;;
3649 esac
3650 ;;
3651 dgux*)
3652 case $cc_basename in
3653 ec++*)
3654 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3655 ;;
3656 ghcx*)
3657 # Green Hills C++ Compiler
3658 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3659 ;;
3660 *)
3661 ;;
3662 esac
3663 ;;
3664 freebsd* | dragonfly*)
3665 # FreeBSD uses GNU C++
3666 ;;
3667 hpux9* | hpux10* | hpux11*)
3668 case $cc_basename in
3669 CC*)
3670 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3671 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
3672 if test "$host_cpu" != ia64; then
3673 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
3674 fi
3675 ;;
3676 aCC*)
3677 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3678 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
3679 case $host_cpu in
3680 hppa*64*|ia64*)
3681 # +Z the default
3682 ;;
3683 *)
3684 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
3685 ;;
3686 esac
3687 ;;
3688 *)
3689 ;;
3690 esac
3691 ;;
3692 interix*)
3693 # This is c89, which is MS Visual C++ (no shared libs)
3694 # Anyone wants to do a port?
3695 ;;
3696 irix5* | irix6* | nonstopux*)
3697 case $cc_basename in
3698 CC*)
3699 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3700 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3701 # CC pic flag -KPIC is the default.
3702 ;;
3703 *)
3704 ;;
3705 esac
3706 ;;
3707 linux* | k*bsd*-gnu | kopensolaris*-gnu)
3708 case $cc_basename in
3709 KCC*)
3710 # KAI C++ Compiler
3711 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
3712 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3713 ;;
3714 ecpc* )
3715 # old Intel C++ for x86_64 which still supported -KPIC.
3716 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3717 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3718 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
3719 ;;
3720 icpc* )
3721 # Intel C++, used to be incompatible with GCC.
3722 # ICC 10 doesn't accept -KPIC any more.
3723 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3724 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3725 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
3726 ;;
3727 pgCC* | pgcpp*)
3728 # Portland Group C++ compiler
3729 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3730 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
3731 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3732 ;;
3733 cxx*)
3734 # Compaq C++
3735 # Make sure the PIC flag is empty. It appears that all Alpha
3736 # Linux and Compaq Tru64 Unix objects are PIC.
3737 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3738 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3739 ;;
3740 xlc* | xlC*)
3741 # IBM XL 8.0 on PPC
3742 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3743 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
3744 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
3745 ;;
3746 *)
3747 case `$CC -V 2>&1 | sed 5q` in
3748 *Sun\ C*)
3749 # Sun C++ 5.9
3750 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3751 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3752 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
3753 ;;
3754 esac
3755 ;;
3756 esac
3757 ;;
3758 lynxos*)
3759 ;;
3760 m88k*)
3761 ;;
3762 mvs*)
3763 case $cc_basename in
3764 cxx*)
3765 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
3766 ;;
3767 *)
3768 ;;
3769 esac
3770 ;;
3771 netbsd* | netbsdelf*-gnu)
3772 ;;
3773 *qnx* | *nto*)
3774 # QNX uses GNU C++, but need to define -shared option too, otherwise
3775 # it will coredump.
3776 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
3777 ;;
3778 osf3* | osf4* | osf5*)
3779 case $cc_basename in
3780 KCC*)
3781 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
3782 ;;
3783 RCC*)
3784 # Rational C++ 2.4.1
3785 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3786 ;;
3787 cxx*)
3788 # Digital/Compaq C++
3789 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3790 # Make sure the PIC flag is empty. It appears that all Alpha
3791 # Linux and Compaq Tru64 Unix objects are PIC.
3792 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3793 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3794 ;;
3795 *)
3796 ;;
3797 esac
3798 ;;
3799 psos*)
3800 ;;
3801 solaris*)
3802 case $cc_basename in
3803 CC*)
3804 # Sun C++ 4.2, 5.x and Centerline C++
3805 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3806 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3807 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
3808 ;;
3809 gcx*)
3810 # Green Hills C++ Compiler
3811 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
3812 ;;
3813 *)
3814 ;;
3815 esac
3816 ;;
3817 sunos4*)
3818 case $cc_basename in
3819 CC*)
3820 # Sun C++ 4.x
3821 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3822 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3823 ;;
3824 lcc*)
3825 # Lucid
3826 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3827 ;;
3828 *)
3829 ;;
3830 esac
3831 ;;
3832 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
3833 case $cc_basename in
3834 CC*)
3835 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3836 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3837 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3838 ;;
3839 esac
3840 ;;
3841 tandem*)
3842 case $cc_basename in
3843 NCC*)
3844 # NonStop-UX NCC 3.20
3845 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3846 ;;
3847 *)
3848 ;;
3849 esac
3850 ;;
3851 vxworks*)
3852 ;;
3853 *)
3854 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
3855 ;;
3856 esac
3857 fi
3858 ],
3859 [
3860 if test "$GCC" = yes; then
3861 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3862 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
3863
3864 case $host_os in
3865 aix*)
3866 # All AIX code is PIC.
3867 if test "$host_cpu" = ia64; then
3868 # AIX 5 now supports IA64 processor
3869 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3870 fi
3871 ;;
3872
3873 amigaos*)
3874 case $host_cpu in
3875 powerpc)
3876 # see comment about AmigaOS4 .so support
3877 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3878 ;;
3879 m68k)
3880 # FIXME: we need at least 68020 code to build shared libraries, but
3881 # adding the `-m68020' flag to GCC prevents building anything better,
3882 # like `-m68040'.
3883 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
3884 ;;
3885 esac
3886 ;;
3887
3888 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
3889 # PIC is the default for these OSes.
3890 ;;
3891
3892 mingw* | cygwin* | pw32* | os2* | cegcc*)
3893 # This hack is so that the source file can tell whether it is being
3894 # built for inclusion in a dll (and should export symbols for example).
3895 # Although the cygwin gcc ignores -fPIC, still need this for old-style
3896 # (--disable-auto-import) libraries
3897 m4_if([$1], [GCJ], [],
3898 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
3899 ;;
3900
3901 darwin* | rhapsody*)
3902 # PIC is the default on this platform
3903 # Common symbols not allowed in MH_DYLIB files
3904 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
3905 ;;
3906
3907 hpux*)
3908 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
3909 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
3910 # sets the default TLS model and affects inlining.
3911 case $host_cpu in
3912 hppa*64*)
3913 # +Z the default
3914 ;;
3915 *)
3916 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3917 ;;
3918 esac
3919 ;;
3920
3921 interix[[3-9]]*)
3922 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
3923 # Instead, we relocate shared libraries at runtime.
3924 ;;
3925
3926 msdosdjgpp*)
3927 # Just because we use GCC doesn't mean we suddenly get shared libraries
3928 # on systems that don't support them.
3929 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
3930 enable_shared=no
3931 ;;
3932
3933 *nto* | *qnx*)
3934 # QNX uses GNU C++, but need to define -shared option too, otherwise
3935 # it will coredump.
3936 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
3937 ;;
3938
3939 sysv4*MP*)
3940 if test -d /usr/nec; then
3941 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
3942 fi
3943 ;;
3944
3945 *)
3946 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3947 ;;
3948 esac
3949 else
3950 # PORTME Check for flag to pass linker flags through the system compiler.
3951 case $host_os in
3952 aix*)
3953 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3954 if test "$host_cpu" = ia64; then
3955 # AIX 5 now supports IA64 processor
3956 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3957 else
3958 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
3959 fi
3960 ;;
3961
3962 mingw* | cygwin* | pw32* | os2* | cegcc*)
3963 # This hack is so that the source file can tell whether it is being
3964 # built for inclusion in a dll (and should export symbols for example).
3965 m4_if([$1], [GCJ], [],
3966 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
3967 ;;
3968
3969 hpux9* | hpux10* | hpux11*)
3970 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3971 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
3972 # not for PA HP-UX.
3973 case $host_cpu in
3974 hppa*64*|ia64*)
3975 # +Z the default
3976 ;;
3977 *)
3978 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
3979 ;;
3980 esac
3981 # Is there a better lt_prog_compiler_static that works with the bundled CC?
3982 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
3983 ;;
3984
3985 irix5* | irix6* | nonstopux*)
3986 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3987 # PIC (with -KPIC) is the default.
3988 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3989 ;;
3990
3991 linux* | k*bsd*-gnu | kopensolaris*-gnu)
3992 case $cc_basename in
3993 # old Intel for x86_64 which still supported -KPIC.
3994 ecc*)
3995 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3996 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3997 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
3998 ;;
3999 # icc used to be incompatible with GCC.
4000 # ICC 10 doesn't accept -KPIC any more.
4001 icc* | ifort*)
4002 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4003 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4004 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4005 ;;
4006 # Lahey Fortran 8.1.
4007 lf95*)
4008 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4009 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4010 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4011 ;;
4012 pgcc* | pgf77* | pgf90* | pgf95*)
4013 # Portland Group compilers (*not* the Pentium gcc compiler,
4014 # which looks to be a dead project)
4015 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4016 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4017 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4018 ;;
4019 ccc*)
4020 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4021 # All Alpha code is PIC.
4022 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4023 ;;
4024 xl*)
4025 # IBM XL C 8.0/Fortran 10.1 on PPC
4026 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4027 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4028 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4029 ;;
4030 *)
4031 case `$CC -V 2>&1 | sed 5q` in
4032 *Sun\ C*)
4033 # Sun C 5.9
4034 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4035 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4036 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4037 ;;
4038 *Sun\ F*)
4039 # Sun Fortran 8.3 passes all unrecognized flags to the linker
4040 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4041 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4042 _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4043 ;;
4044 esac
4045 ;;
4046 esac
4047 ;;
4048
4049 newsos6)
4050 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4051 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4052 ;;
4053
4054 *nto* | *qnx*)
4055 # QNX uses GNU C++, but need to define -shared option too, otherwise
4056 # it will coredump.
4057 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4058 ;;
4059
4060 osf3* | osf4* | osf5*)
4061 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4062 # All OSF/1 code is PIC.
4063 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4064 ;;
4065
4066 rdos*)
4067 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4068 ;;
4069
4070 solaris*)
4071 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4072 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4073 case $cc_basename in
4074 f77* | f90* | f95*)
4075 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4076 *)
4077 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4078 esac
4079 ;;
4080
4081 sunos4*)
4082 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4083 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4084 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4085 ;;
4086
4087 sysv4 | sysv4.2uw2* | sysv4.3*)
4088 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4089 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4090 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4091 ;;
4092
4093 sysv4*MP*)
4094 if test -d /usr/nec ;then
4095 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
4096 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4097 fi
4098 ;;
4099
4100 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4101 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4102 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4103 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4104 ;;
4105
4106 unicos*)
4107 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4108 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4109 ;;
4110
4111 uts4*)
4112 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4113 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4114 ;;
4115
4116 *)
4117 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4118 ;;
4119 esac
4120 fi
4121 ])
4122 case $host_os in
4123 # For platforms which do not support PIC, -DPIC is meaningless:
4124 *djgpp*)
4125 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4126 ;;
4127 *)
4128 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
4129 ;;
4130 esac
4131 AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4132 _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4133 [How to pass a linker flag through the compiler])
4134
4135 #
4136 # Check to make sure the PIC flag actually works.
4137 #
4138 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4139 _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
4140 [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
4141 [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
4142 [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
4143 "" | " "*) ;;
4144 *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
4145 esac],
4146 [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4147 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
4148 fi
4149 _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
4150 [Additional compiler flags for building library objects])
4151
4152 #
4153 # Check to make sure the static flag actually works.
4154 #
4155 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
4156 _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
4157 _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
4158 $lt_tmp_static_flag,
4159 [],
4160 [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
4161 _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
4162 [Compiler flag to prevent dynamic linking])
4163 ])# _LT_COMPILER_PIC
4164
4165
4166 # _LT_LINKER_SHLIBS([TAGNAME])
4167 # ----------------------------
4168 # See if the linker supports building shared libraries.
4169 m4_defun([_LT_LINKER_SHLIBS],
4170 [AC_REQUIRE([LT_PATH_LD])dnl
4171 AC_REQUIRE([LT_PATH_NM])dnl
4172 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4173 m4_require([_LT_DECL_EGREP])dnl
4174 m4_require([_LT_DECL_SED])dnl
4175 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
4176 m4_require([_LT_TAG_COMPILER])dnl
4177 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4178 m4_if([$1], [CXX], [
4179 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4180 case $host_os in
4181 aix[[4-9]]*)
4182 # If we're using GNU nm, then we don't want the "-C" option.
4183 # -C means demangle to AIX nm, but means don't demangle with GNU nm
4184 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4185 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4186 else
4187 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4188 fi
4189 ;;
4190 pw32*)
4191 _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4192 ;;
4193 cygwin* | mingw* | cegcc*)
4194 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
4195 ;;
4196 linux* | k*bsd*-gnu)
4197 _LT_TAGVAR(link_all_deplibs, $1)=no
4198 ;;
4199 *)
4200 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4201 ;;
4202 esac
4203 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4204 ], [
4205 runpath_var=
4206 _LT_TAGVAR(allow_undefined_flag, $1)=
4207 _LT_TAGVAR(always_export_symbols, $1)=no
4208 _LT_TAGVAR(archive_cmds, $1)=
4209 _LT_TAGVAR(archive_expsym_cmds, $1)=
4210 _LT_TAGVAR(compiler_needs_object, $1)=no
4211 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4212 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
4213 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4214 _LT_TAGVAR(hardcode_automatic, $1)=no
4215 _LT_TAGVAR(hardcode_direct, $1)=no
4216 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
4217 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4218 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4219 _LT_TAGVAR(hardcode_libdir_separator, $1)=
4220 _LT_TAGVAR(hardcode_minus_L, $1)=no
4221 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4222 _LT_TAGVAR(inherit_rpath, $1)=no
4223 _LT_TAGVAR(link_all_deplibs, $1)=unknown
4224 _LT_TAGVAR(module_cmds, $1)=
4225 _LT_TAGVAR(module_expsym_cmds, $1)=
4226 _LT_TAGVAR(old_archive_from_new_cmds, $1)=
4227 _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
4228 _LT_TAGVAR(thread_safe_flag_spec, $1)=
4229 _LT_TAGVAR(whole_archive_flag_spec, $1)=
4230 # include_expsyms should be a list of space-separated symbols to be *always*
4231 # included in the symbol list
4232 _LT_TAGVAR(include_expsyms, $1)=
4233 # exclude_expsyms can be an extended regexp of symbols to exclude
4234 # it will be wrapped by ` (' and `)$', so one must not match beginning or
4235 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4236 # as well as any symbol that contains `d'.
4237 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4238 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4239 # platforms (ab)use it in PIC code, but their linkers get confused if
4240 # the symbol is explicitly referenced. Since portable code cannot
4241 # rely on this symbol name, it's probably fine to never include it in
4242 # preloaded symbol tables.
4243 # Exclude shared library initialization/finalization symbols.
4244 dnl Note also adjust exclude_expsyms for C++ above.
4245 extract_expsyms_cmds=
4246
4247 case $host_os in
4248 cygwin* | mingw* | pw32* | cegcc*)
4249 # FIXME: the MSVC++ port hasn't been tested in a loooong time
4250 # When not using gcc, we currently assume that we are using
4251 # Microsoft Visual C++.
4252 if test "$GCC" != yes; then
4253 with_gnu_ld=no
4254 fi
4255 ;;
4256 interix*)
4257 # we just hope/assume this is gcc and not c89 (= MSVC++)
4258 with_gnu_ld=yes
4259 ;;
4260 openbsd*)
4261 with_gnu_ld=no
4262 ;;
4263 linux* | k*bsd*-gnu)
4264 _LT_TAGVAR(link_all_deplibs, $1)=no
4265 ;;
4266 esac
4267
4268 _LT_TAGVAR(ld_shlibs, $1)=yes
4269 if test "$with_gnu_ld" = yes; then
4270 # If archive_cmds runs LD, not CC, wlarc should be empty
4271 wlarc='${wl}'
4272
4273 # Set some defaults for GNU ld with shared library support. These
4274 # are reset later if shared libraries are not supported. Putting them
4275 # here allows them to be overridden if necessary.
4276 runpath_var=LD_RUN_PATH
4277 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4278 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4279 # ancient GNU ld didn't support --whole-archive et. al.
4280 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
4281 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4282 else
4283 _LT_TAGVAR(whole_archive_flag_spec, $1)=
4284 fi
4285 supports_anon_versioning=no
4286 case `$LD -v 2>&1` in
4287 *GNU\ gold*) supports_anon_versioning=yes ;;
4288 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
4289 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
4290 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
4291 *\ 2.11.*) ;; # other 2.11 versions
4292 *) supports_anon_versioning=yes ;;
4293 esac
4294
4295 # See if GNU ld supports shared libraries.
4296 case $host_os in
4297 aix[[3-9]]*)
4298 # On AIX/PPC, the GNU linker is very broken
4299 if test "$host_cpu" != ia64; then
4300 _LT_TAGVAR(ld_shlibs, $1)=no
4301 cat <<_LT_EOF 1>&2
4302
4303 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
4304 *** to be unable to reliably create shared libraries on AIX.
4305 *** Therefore, libtool is disabling shared libraries support. If you
4306 *** really care for shared libraries, you may want to modify your PATH
4307 *** so that a non-GNU linker is found, and then restart.
4308
4309 _LT_EOF
4310 fi
4311 ;;
4312
4313 amigaos*)
4314 case $host_cpu in
4315 powerpc)
4316 # see comment about AmigaOS4 .so support
4317 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4318 _LT_TAGVAR(archive_expsym_cmds, $1)=''
4319 ;;
4320 m68k)
4321 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
4322 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4323 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4324 ;;
4325 esac
4326 ;;
4327
4328 beos*)
4329 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4330 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4331 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4332 # support --undefined. This deserves some investigation. FIXME
4333 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4334 else
4335 _LT_TAGVAR(ld_shlibs, $1)=no
4336 fi
4337 ;;
4338
4339 cygwin* | mingw* | pw32* | cegcc*)
4340 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
4341 # as there is no search path for DLLs.
4342 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4343 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4344 _LT_TAGVAR(always_export_symbols, $1)=no
4345 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4346 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
4347
4348 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
4349 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
4350 # If the export-symbols file already is a .def file (1st line
4351 # is EXPORTS), use it as is; otherwise, prepend...
4352 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
4353 cp $export_symbols $output_objdir/$soname.def;
4354 else
4355 echo EXPORTS > $output_objdir/$soname.def;
4356 cat $export_symbols >> $output_objdir/$soname.def;
4357 fi~
4358 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
4359 else
4360 _LT_TAGVAR(ld_shlibs, $1)=no
4361 fi
4362 ;;
4363
4364 interix[[3-9]]*)
4365 _LT_TAGVAR(hardcode_direct, $1)=no
4366 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4367 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4368 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4369 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
4370 # Instead, shared libraries are loaded at an image base (0x10000000 by
4371 # default) and relocated if they conflict, which is a slow very memory
4372 # consuming and fragmenting process. To avoid this, we pick a random,
4373 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
4374 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
4375 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
4376 _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
4377 ;;
4378
4379 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
4380 tmp_diet=no
4381 if test "$host_os" = linux-dietlibc; then
4382 case $cc_basename in
4383 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
4384 esac
4385 fi
4386 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
4387 && test "$tmp_diet" = no
4388 then
4389 tmp_addflag=
4390 tmp_sharedflag='-shared'
4391 case $cc_basename,$host_cpu in
4392 pgcc*) # Portland Group C compiler
4393 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
4394 tmp_addflag=' $pic_flag'
4395 ;;
4396 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
4397 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
4398 tmp_addflag=' $pic_flag -Mnomain' ;;
4399 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
4400 tmp_addflag=' -i_dynamic' ;;
4401 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
4402 tmp_addflag=' -i_dynamic -nofor_main' ;;
4403 ifc* | ifort*) # Intel Fortran compiler
4404 tmp_addflag=' -nofor_main' ;;
4405 lf95*) # Lahey Fortran 8.1
4406 _LT_TAGVAR(whole_archive_flag_spec, $1)=
4407 tmp_sharedflag='--shared' ;;
4408 xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
4409 tmp_sharedflag='-qmkshrobj'
4410 tmp_addflag= ;;
4411 esac
4412 case `$CC -V 2>&1 | sed 5q` in
4413 *Sun\ C*) # Sun C 5.9
4414 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
4415 _LT_TAGVAR(compiler_needs_object, $1)=yes
4416 tmp_sharedflag='-G' ;;
4417 *Sun\ F*) # Sun Fortran 8.3
4418 tmp_sharedflag='-G' ;;
4419 esac
4420 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4421
4422 if test "x$supports_anon_versioning" = xyes; then
4423 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
4424 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4425 echo "local: *; };" >> $output_objdir/$libname.ver~
4426 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
4427 fi
4428
4429 case $cc_basename in
4430 xlf*)
4431 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
4432 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
4433 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4434 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
4435 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
4436 if test "x$supports_anon_versioning" = xyes; then
4437 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
4438 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4439 echo "local: *; };" >> $output_objdir/$libname.ver~
4440 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
4441 fi
4442 ;;
4443 esac
4444 else
4445 _LT_TAGVAR(ld_shlibs, $1)=no
4446 fi
4447 ;;
4448
4449 netbsd* | netbsdelf*-gnu)
4450 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4451 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4452 wlarc=
4453 else
4454 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4455 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4456 fi
4457 ;;
4458
4459 solaris*)
4460 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
4461 _LT_TAGVAR(ld_shlibs, $1)=no
4462 cat <<_LT_EOF 1>&2
4463
4464 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
4465 *** create shared libraries on Solaris systems. Therefore, libtool
4466 *** is disabling shared libraries support. We urge you to upgrade GNU
4467 *** binutils to release 2.9.1 or newer. Another option is to modify
4468 *** your PATH or compiler configuration so that the native linker is
4469 *** used, and then restart.
4470
4471 _LT_EOF
4472 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4473 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4474 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4475 else
4476 _LT_TAGVAR(ld_shlibs, $1)=no
4477 fi
4478 ;;
4479
4480 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
4481 case `$LD -v 2>&1` in
4482 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
4483 _LT_TAGVAR(ld_shlibs, $1)=no
4484 cat <<_LT_EOF 1>&2
4485
4486 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
4487 *** reliably create shared libraries on SCO systems. Therefore, libtool
4488 *** is disabling shared libraries support. We urge you to upgrade GNU
4489 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
4490 *** your PATH or compiler configuration so that the native linker is
4491 *** used, and then restart.
4492
4493 _LT_EOF
4494 ;;
4495 *)
4496 # For security reasons, it is highly recommended that you always
4497 # use absolute paths for naming shared libraries, and exclude the
4498 # DT_RUNPATH tag from executables and libraries. But doing so
4499 # requires that you compile everything twice, which is a pain.
4500 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4501 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4502 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4503 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4504 else
4505 _LT_TAGVAR(ld_shlibs, $1)=no
4506 fi
4507 ;;
4508 esac
4509 ;;
4510
4511 sunos4*)
4512 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4513 wlarc=
4514 _LT_TAGVAR(hardcode_direct, $1)=yes
4515 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4516 ;;
4517
4518 *)
4519 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4520 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4521 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4522 else
4523 _LT_TAGVAR(ld_shlibs, $1)=no
4524 fi
4525 ;;
4526 esac
4527
4528 if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
4529 runpath_var=
4530 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4531 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
4532 _LT_TAGVAR(whole_archive_flag_spec, $1)=
4533 fi
4534 else
4535 # PORTME fill in a description of your system's linker (not GNU ld)
4536 case $host_os in
4537 aix3*)
4538 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4539 _LT_TAGVAR(always_export_symbols, $1)=yes
4540 _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
4541 # Note: this linker hardcodes the directories in LIBPATH if there
4542 # are no directories specified by -L.
4543 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4544 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
4545 # Neither direct hardcoding nor static linking is supported with a
4546 # broken collect2.
4547 _LT_TAGVAR(hardcode_direct, $1)=unsupported
4548 fi
4549 ;;
4550
4551 aix[[4-9]]*)
4552 if test "$host_cpu" = ia64; then
4553 # On IA64, the linker does run time linking by default, so we don't
4554 # have to do anything special.
4555 aix_use_runtimelinking=no
4556 exp_sym_flag='-Bexport'
4557 no_entry_flag=""
4558 else
4559 # If we're using GNU nm, then we don't want the "-C" option.
4560 # -C means demangle to AIX nm, but means don't demangle with GNU nm
4561 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4562 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4563 else
4564 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4565 fi
4566 aix_use_runtimelinking=no
4567
4568 # Test if we are trying to use run time linking or normal
4569 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
4570 # need to do runtime linking.
4571 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
4572 for ld_flag in $LDFLAGS; do
4573 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
4574 aix_use_runtimelinking=yes
4575 break
4576 fi
4577 done
4578 ;;
4579 esac
4580
4581 exp_sym_flag='-bexport'
4582 no_entry_flag='-bnoentry'
4583 fi
4584
4585 # When large executables or shared objects are built, AIX ld can
4586 # have problems creating the table of contents. If linking a library
4587 # or program results in "error TOC overflow" add -mminimal-toc to
4588 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
4589 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
4590
4591 _LT_TAGVAR(archive_cmds, $1)=''
4592 _LT_TAGVAR(hardcode_direct, $1)=yes
4593 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
4594 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
4595 _LT_TAGVAR(link_all_deplibs, $1)=yes
4596 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
4597
4598 if test "$GCC" = yes; then
4599 case $host_os in aix4.[[012]]|aix4.[[012]].*)
4600 # We only want to do this on AIX 4.2 and lower, the check
4601 # below for broken collect2 doesn't work under 4.3+
4602 collect2name=`${CC} -print-prog-name=collect2`
4603 if test -f "$collect2name" &&
4604 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
4605 then
4606 # We have reworked collect2
4607 :
4608 else
4609 # We have old collect2
4610 _LT_TAGVAR(hardcode_direct, $1)=unsupported
4611 # It fails to find uninstalled libraries when the uninstalled
4612 # path is not listed in the libpath. Setting hardcode_minus_L
4613 # to unsupported forces relinking
4614 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4615 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4616 _LT_TAGVAR(hardcode_libdir_separator, $1)=
4617 fi
4618 ;;
4619 esac
4620 shared_flag='-shared'
4621 if test "$aix_use_runtimelinking" = yes; then
4622 shared_flag="$shared_flag "'${wl}-G'
4623 fi
4624 _LT_TAGVAR(link_all_deplibs, $1)=no
4625 else
4626 # not using gcc
4627 if test "$host_cpu" = ia64; then
4628 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
4629 # chokes on -Wl,-G. The following line is correct:
4630 shared_flag='-G'
4631 else
4632 if test "$aix_use_runtimelinking" = yes; then
4633 shared_flag='${wl}-G'
4634 else
4635 shared_flag='${wl}-bM:SRE'
4636 fi
4637 fi
4638 fi
4639
4640 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
4641 # It seems that -bexpall does not export symbols beginning with
4642 # underscore (_), so it is better to generate a list of symbols to export.
4643 _LT_TAGVAR(always_export_symbols, $1)=yes
4644 if test "$aix_use_runtimelinking" = yes; then
4645 # Warning - without using the other runtime loading flags (-brtl),
4646 # -berok will link without error, but may produce a broken library.
4647 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
4648 # Determine the default libpath from the value encoded in an
4649 # empty executable.
4650 _LT_SYS_MODULE_PATH_AIX
4651 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4652 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
4653 else
4654 if test "$host_cpu" = ia64; then
4655 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
4656 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
4657 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
4658 else
4659 # Determine the default libpath from the value encoded in an
4660 # empty executable.
4661 _LT_SYS_MODULE_PATH_AIX
4662 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4663 # Warning - without using the other run time loading flags,
4664 # -berok will link without error, but may produce a broken library.
4665 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
4666 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
4667 # Exported symbols can be pulled into shared objects from archives
4668 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
4669 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
4670 # This is similar to how AIX traditionally builds its shared libraries.
4671 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
4672 fi
4673 fi
4674 ;;
4675
4676 amigaos*)
4677 case $host_cpu in
4678 powerpc)
4679 # see comment about AmigaOS4 .so support
4680 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4681 _LT_TAGVAR(archive_expsym_cmds, $1)=''
4682 ;;
4683 m68k)
4684 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
4685 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4686 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4687 ;;
4688 esac
4689 ;;
4690
4691 bsdi[[45]]*)
4692 _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
4693 ;;
4694
4695 cygwin* | mingw* | pw32* | cegcc*)
4696 # When not using gcc, we currently assume that we are using
4697 # Microsoft Visual C++.
4698 # hardcode_libdir_flag_spec is actually meaningless, as there is
4699 # no search path for DLLs.
4700 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
4701 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4702 # Tell ltmain to make .lib files, not .a files.
4703 libext=lib
4704 # Tell ltmain to make .dll files, not .so files.
4705 shrext_cmds=".dll"
4706 # FIXME: Setting linknames here is a bad hack.
4707 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
4708 # The linker will automatically build a .lib file if we build a DLL.
4709 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
4710 # FIXME: Should let the user specify the lib program.
4711 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
4712 _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
4713 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4714 ;;
4715
4716 darwin* | rhapsody*)
4717 _LT_DARWIN_LINKER_FEATURES($1)
4718 ;;
4719
4720 dgux*)
4721 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4722 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4723 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4724 ;;
4725
4726 freebsd1*)
4727 _LT_TAGVAR(ld_shlibs, $1)=no
4728 ;;
4729
4730 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
4731 # support. Future versions do this automatically, but an explicit c++rt0.o
4732 # does not break anything, and helps significantly (at the cost of a little
4733 # extra space).
4734 freebsd2.2*)
4735 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
4736 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4737 _LT_TAGVAR(hardcode_direct, $1)=yes
4738 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4739 ;;
4740
4741 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
4742 freebsd2*)
4743 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4744 _LT_TAGVAR(hardcode_direct, $1)=yes
4745 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4746 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4747 ;;
4748
4749 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
4750 freebsd* | dragonfly*)
4751 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
4752 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4753 _LT_TAGVAR(hardcode_direct, $1)=yes
4754 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4755 ;;
4756
4757 hpux9*)
4758 if test "$GCC" = yes; then
4759 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
4760 else
4761 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
4762 fi
4763 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4764 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4765 _LT_TAGVAR(hardcode_direct, $1)=yes
4766
4767 # hardcode_minus_L: Not really in the search PATH,
4768 # but as the default location of the library.
4769 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4770 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4771 ;;
4772
4773 hpux10*)
4774 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
4775 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
4776 else
4777 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
4778 fi
4779 if test "$with_gnu_ld" = no; then
4780 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4781 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
4782 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4783 _LT_TAGVAR(hardcode_direct, $1)=yes
4784 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
4785 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4786 # hardcode_minus_L: Not really in the search PATH,
4787 # but as the default location of the library.
4788 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4789 fi
4790 ;;
4791
4792 hpux11*)
4793 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
4794 case $host_cpu in
4795 hppa*64*)
4796 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4797 ;;
4798 ia64*)
4799 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
4800 ;;
4801 *)
4802 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
4803 ;;
4804 esac
4805 else
4806 case $host_cpu in
4807 hppa*64*)
4808 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4809 ;;
4810 ia64*)
4811 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
4812 ;;
4813 *)
4814 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
4815 ;;
4816 esac
4817 fi
4818 if test "$with_gnu_ld" = no; then
4819 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4820 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4821
4822 case $host_cpu in
4823 hppa*64*|ia64*)
4824 _LT_TAGVAR(hardcode_direct, $1)=no
4825 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4826 ;;
4827 *)
4828 _LT_TAGVAR(hardcode_direct, $1)=yes
4829 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
4830 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4831
4832 # hardcode_minus_L: Not really in the search PATH,
4833 # but as the default location of the library.
4834 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4835 ;;
4836 esac
4837 fi
4838 ;;
4839
4840 irix5* | irix6* | nonstopux*)
4841 if test "$GCC" = yes; then
4842 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4843 # Try to use the -exported_symbol ld option, if it does not
4844 # work, assume that -exports_file does not work either and
4845 # implicitly export all symbols.
4846 save_LDFLAGS="$LDFLAGS"
4847 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
4848 AC_LINK_IFELSE(int foo(void) {},
4849 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
4850 )
4851 LDFLAGS="$save_LDFLAGS"
4852 else
4853 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
4854 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
4855 fi
4856 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4857 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4858 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4859 _LT_TAGVAR(inherit_rpath, $1)=yes
4860 _LT_TAGVAR(link_all_deplibs, $1)=yes
4861 ;;
4862
4863 netbsd* | netbsdelf*-gnu)
4864 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4865 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
4866 else
4867 _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
4868 fi
4869 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4870 _LT_TAGVAR(hardcode_direct, $1)=yes
4871 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4872 ;;
4873
4874 newsos6)
4875 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4876 _LT_TAGVAR(hardcode_direct, $1)=yes
4877 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4878 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4879 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4880 ;;
4881
4882 *nto* | *qnx*)
4883 ;;
4884
4885 openbsd*)
4886 if test -f /usr/libexec/ld.so; then
4887 _LT_TAGVAR(hardcode_direct, $1)=yes
4888 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4889 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
4890 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4891 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
4892 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
4893 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4894 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4895 else
4896 case $host_os in
4897 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
4898 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4899 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4900 ;;
4901 *)
4902 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
4903 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4904 ;;
4905 esac
4906 fi
4907 else
4908 _LT_TAGVAR(ld_shlibs, $1)=no
4909 fi
4910 ;;
4911
4912 os2*)
4913 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4914 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4915 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4916 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
4917 _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
4918 ;;
4919
4920 osf3*)
4921 if test "$GCC" = yes; then
4922 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4923 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4924 else
4925 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4926 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
4927 fi
4928 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4929 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4930 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4931 ;;
4932
4933 osf4* | osf5*) # as osf3* with the addition of -msym flag
4934 if test "$GCC" = yes; then
4935 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4936 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4937 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4938 else
4939 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4940 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
4941 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
4942 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
4943
4944 # Both c and cxx compiler support -rpath directly
4945 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4946 fi
4947 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4948 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4949 ;;
4950
4951 solaris*)
4952 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
4953 if test "$GCC" = yes; then
4954 wlarc='${wl}'
4955 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4956 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
4957 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
4958 else
4959 case `$CC -V 2>&1` in
4960 *"Compilers 5.0"*)
4961 wlarc=''
4962 _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4963 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
4964 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
4965 ;;
4966 *)
4967 wlarc='${wl}'
4968 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
4969 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
4970 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
4971 ;;
4972 esac
4973 fi
4974 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4975 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4976 case $host_os in
4977 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4978 *)
4979 # The compiler driver will combine and reorder linker options,
4980 # but understands `-z linker_flag'. GCC discards it without `$wl',
4981 # but is careful enough not to reorder.
4982 # Supported since Solaris 2.6 (maybe 2.5.1?)
4983 if test "$GCC" = yes; then
4984 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
4985 else
4986 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
4987 fi
4988 ;;
4989 esac
4990 _LT_TAGVAR(link_all_deplibs, $1)=yes
4991 ;;
4992
4993 sunos4*)
4994 if test "x$host_vendor" = xsequent; then
4995 # Use $CC to link under sequent, because it throws in some extra .o
4996 # files that make .init and .fini sections work.
4997 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
4998 else
4999 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5000 fi
5001 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5002 _LT_TAGVAR(hardcode_direct, $1)=yes
5003 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5004 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5005 ;;
5006
5007 sysv4)
5008 case $host_vendor in
5009 sni)
5010 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5011 _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
5012 ;;
5013 siemens)
5014 ## LD is ld it makes a PLAMLIB
5015 ## CC just makes a GrossModule.
5016 _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5017 _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
5018 _LT_TAGVAR(hardcode_direct, $1)=no
5019 ;;
5020 motorola)
5021 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5022 _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
5023 ;;
5024 esac
5025 runpath_var='LD_RUN_PATH'
5026 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5027 ;;
5028
5029 sysv4.3*)
5030 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5031 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5032 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
5033 ;;
5034
5035 sysv4*MP*)
5036 if test -d /usr/nec; then
5037 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5038 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5039 runpath_var=LD_RUN_PATH
5040 hardcode_runpath_var=yes
5041 _LT_TAGVAR(ld_shlibs, $1)=yes
5042 fi
5043 ;;
5044
5045 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
5046 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5047 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5048 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5049 runpath_var='LD_RUN_PATH'
5050
5051 if test "$GCC" = yes; then
5052 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5053 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5054 else
5055 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5056 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5057 fi
5058 ;;
5059
5060 sysv5* | sco3.2v5* | sco5v6*)
5061 # Note: We can NOT use -z defs as we might desire, because we do not
5062 # link with -lc, and that would cause any symbols used from libc to
5063 # always be unresolved, which means just about no library would
5064 # ever link correctly. If we're not using GNU ld we use -z text
5065 # though, which does catch some bad symbols but isn't as heavy-handed
5066 # as -z defs.
5067 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5068 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
5069 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5070 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5071 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
5072 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5073 _LT_TAGVAR(link_all_deplibs, $1)=yes
5074 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
5075 runpath_var='LD_RUN_PATH'
5076
5077 if test "$GCC" = yes; then
5078 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5079 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5080 else
5081 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5082 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5083 fi
5084 ;;
5085
5086 uts4*)
5087 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5088 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5089 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5090 ;;
5091
5092 *)
5093 _LT_TAGVAR(ld_shlibs, $1)=no
5094 ;;
5095 esac
5096
5097 if test x$host_vendor = xsni; then
5098 case $host in
5099 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5100 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
5101 ;;
5102 esac
5103 fi
5104 fi
5105 ])
5106 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
5107 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5108
5109 _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
5110
5111 _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
5112 _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
5113 _LT_DECL([], [extract_expsyms_cmds], [2],
5114 [The commands to extract the exported symbol list from a shared archive])
5115
5116 #
5117 # Do we need to explicitly link libc?
5118 #
5119 case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
5120 x|xyes)
5121 # Assume -lc should be added
5122 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5123
5124 if test "$enable_shared" = yes && test "$GCC" = yes; then
5125 case $_LT_TAGVAR(archive_cmds, $1) in
5126 *'~'*)
5127 # FIXME: we may have to deal with multi-command sequences.
5128 ;;
5129 '$CC '*)
5130 # Test whether the compiler implicitly links with -lc since on some
5131 # systems, -lgcc has to come before -lc. If gcc already passes -lc
5132 # to ld, don't add -lc before -lgcc.
5133 AC_MSG_CHECKING([whether -lc should be explicitly linked in])
5134 $RM conftest*
5135 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5136
5137 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5138 soname=conftest
5139 lib=conftest
5140 libobjs=conftest.$ac_objext
5141 deplibs=
5142 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5143 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5144 compiler_flags=-v
5145 linker_flags=-v
5146 verstring=
5147 output_objdir=.
5148 libname=conftest
5149 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5150 _LT_TAGVAR(allow_undefined_flag, $1)=
5151 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5152 then
5153 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5154 else
5155 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5156 fi
5157 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5158 else
5159 cat conftest.err 1>&5
5160 fi
5161 $RM conftest*
5162 AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
5163 ;;
5164 esac
5165 fi
5166 ;;
5167 esac
5168
5169 _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
5170 [Whether or not to add -lc for building shared libraries])
5171 _LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
5172 [enable_shared_with_static_runtimes], [0],
5173 [Whether or not to disallow shared libs when runtime libs are static])
5174 _LT_TAGDECL([], [export_dynamic_flag_spec], [1],
5175 [Compiler flag to allow reflexive dlopens])
5176 _LT_TAGDECL([], [whole_archive_flag_spec], [1],
5177 [Compiler flag to generate shared objects directly from archives])
5178 _LT_TAGDECL([], [compiler_needs_object], [1],
5179 [Whether the compiler copes with passing no objects directly])
5180 _LT_TAGDECL([], [old_archive_from_new_cmds], [2],
5181 [Create an old-style archive from a shared archive])
5182 _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
5183 [Create a temporary old-style archive to link instead of a shared archive])
5184 _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
5185 _LT_TAGDECL([], [archive_expsym_cmds], [2])
5186 _LT_TAGDECL([], [module_cmds], [2],
5187 [Commands used to build a loadable module if different from building
5188 a shared archive.])
5189 _LT_TAGDECL([], [module_expsym_cmds], [2])
5190 _LT_TAGDECL([], [with_gnu_ld], [1],
5191 [Whether we are building with GNU ld or not])
5192 _LT_TAGDECL([], [allow_undefined_flag], [1],
5193 [Flag that allows shared libraries with undefined symbols to be built])
5194 _LT_TAGDECL([], [no_undefined_flag], [1],
5195 [Flag that enforces no undefined symbols])
5196 _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
5197 [Flag to hardcode $libdir into a binary during linking.
5198 This must work even if $libdir does not exist])
5199 _LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
5200 [[If ld is used when linking, flag to hardcode $libdir into a binary
5201 during linking. This must work even if $libdir does not exist]])
5202 _LT_TAGDECL([], [hardcode_libdir_separator], [1],
5203 [Whether we need a single "-rpath" flag with a separated argument])
5204 _LT_TAGDECL([], [hardcode_direct], [0],
5205 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5206 DIR into the resulting binary])
5207 _LT_TAGDECL([], [hardcode_direct_absolute], [0],
5208 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5209 DIR into the resulting binary and the resulting library dependency is
5210 "absolute", i.e impossible to change by setting ${shlibpath_var} if the
5211 library is relocated])
5212 _LT_TAGDECL([], [hardcode_minus_L], [0],
5213 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
5214 into the resulting binary])
5215 _LT_TAGDECL([], [hardcode_shlibpath_var], [0],
5216 [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
5217 into the resulting binary])
5218 _LT_TAGDECL([], [hardcode_automatic], [0],
5219 [Set to "yes" if building a shared library automatically hardcodes DIR
5220 into the library and all subsequent libraries and executables linked
5221 against it])
5222 _LT_TAGDECL([], [inherit_rpath], [0],
5223 [Set to yes if linker adds runtime paths of dependent libraries
5224 to runtime path list])
5225 _LT_TAGDECL([], [link_all_deplibs], [0],
5226 [Whether libtool must link a program against all its dependency libraries])
5227 _LT_TAGDECL([], [fix_srcfile_path], [1],
5228 [Fix the shell variable $srcfile for the compiler])
5229 _LT_TAGDECL([], [always_export_symbols], [0],
5230 [Set to "yes" if exported symbols are required])
5231 _LT_TAGDECL([], [export_symbols_cmds], [2],
5232 [The commands to list exported symbols])
5233 _LT_TAGDECL([], [exclude_expsyms], [1],
5234 [Symbols that should not be listed in the preloaded symbols])
5235 _LT_TAGDECL([], [include_expsyms], [1],
5236 [Symbols that must always be exported])
5237 _LT_TAGDECL([], [prelink_cmds], [2],
5238 [Commands necessary for linking programs (against libraries) with templates])
5239 _LT_TAGDECL([], [file_list_spec], [1],
5240 [Specify filename containing input files])
5241 dnl FIXME: Not yet implemented
5242 dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
5243 dnl [Compiler flag to generate thread safe objects])
5244 ])# _LT_LINKER_SHLIBS
5245
5246
5247 # _LT_LANG_C_CONFIG([TAG])
5248 # ------------------------
5249 # Ensure that the configuration variables for a C compiler are suitably
5250 # defined. These variables are subsequently used by _LT_CONFIG to write
5251 # the compiler configuration to `libtool'.
5252 m4_defun([_LT_LANG_C_CONFIG],
5253 [m4_require([_LT_DECL_EGREP])dnl
5254 lt_save_CC="$CC"
5255 AC_LANG_PUSH(C)
5256
5257 # Source file extension for C test sources.
5258 ac_ext=c
5259
5260 # Object file extension for compiled C test sources.
5261 objext=o
5262 _LT_TAGVAR(objext, $1)=$objext
5263
5264 # Code to be used in simple compile tests
5265 lt_simple_compile_test_code="int some_variable = 0;"
5266
5267 # Code to be used in simple link tests
5268 lt_simple_link_test_code='int main(){return(0);}'
5269
5270 _LT_TAG_COMPILER
5271 # Save the default compiler, since it gets overwritten when the other
5272 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
5273 compiler_DEFAULT=$CC
5274
5275 # save warnings/boilerplate of simple test code
5276 _LT_COMPILER_BOILERPLATE
5277 _LT_LINKER_BOILERPLATE
5278
5279 ## CAVEAT EMPTOR:
5280 ## There is no encapsulation within the following macros, do not change
5281 ## the running order or otherwise move them around unless you know exactly
5282 ## what you are doing...
5283 if test -n "$compiler"; then
5284 _LT_COMPILER_NO_RTTI($1)
5285 _LT_COMPILER_PIC($1)
5286 _LT_COMPILER_C_O($1)
5287 _LT_COMPILER_FILE_LOCKS($1)
5288 _LT_LINKER_SHLIBS($1)
5289 _LT_SYS_DYNAMIC_LINKER($1)
5290 _LT_LINKER_HARDCODE_LIBPATH($1)
5291 LT_SYS_DLOPEN_SELF
5292 _LT_CMD_STRIPLIB
5293
5294 # Report which library types will actually be built
5295 AC_MSG_CHECKING([if libtool supports shared libraries])
5296 AC_MSG_RESULT([$can_build_shared])
5297
5298 AC_MSG_CHECKING([whether to build shared libraries])
5299 test "$can_build_shared" = "no" && enable_shared=no
5300
5301 # On AIX, shared libraries and static libraries use the same namespace, and
5302 # are all built from PIC.
5303 case $host_os in
5304 aix3*)
5305 test "$enable_shared" = yes && enable_static=no
5306 if test -n "$RANLIB"; then
5307 archive_cmds="$archive_cmds~\$RANLIB \$lib"
5308 postinstall_cmds='$RANLIB $lib'
5309 fi
5310 ;;
5311
5312 aix[[4-9]]*)
5313 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5314 test "$enable_shared" = yes && enable_static=no
5315 fi
5316 ;;
5317 esac
5318 AC_MSG_RESULT([$enable_shared])
5319
5320 AC_MSG_CHECKING([whether to build static libraries])
5321 # Make sure either enable_shared or enable_static is yes.
5322 test "$enable_shared" = yes || enable_static=yes
5323 AC_MSG_RESULT([$enable_static])
5324
5325 _LT_CONFIG($1)
5326 fi
5327 AC_LANG_POP
5328 CC="$lt_save_CC"
5329 ])# _LT_LANG_C_CONFIG
5330
5331
5332 # _LT_PROG_CXX
5333 # ------------
5334 # Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
5335 # compiler, we have our own version here.
5336 m4_defun([_LT_PROG_CXX],
5337 [
5338 pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
5339 AC_PROG_CXX
5340 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5341 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5342 (test "X$CXX" != "Xg++"))) ; then
5343 AC_PROG_CXXCPP
5344 else
5345 _lt_caught_CXX_error=yes
5346 fi
5347 popdef([AC_MSG_ERROR])
5348 ])# _LT_PROG_CXX
5349
5350 dnl aclocal-1.4 backwards compatibility:
5351 dnl AC_DEFUN([_LT_PROG_CXX], [])
5352
5353
5354 # _LT_LANG_CXX_CONFIG([TAG])
5355 # --------------------------
5356 # Ensure that the configuration variables for a C++ compiler are suitably
5357 # defined. These variables are subsequently used by _LT_CONFIG to write
5358 # the compiler configuration to `libtool'.
5359 m4_defun([_LT_LANG_CXX_CONFIG],
5360 [AC_REQUIRE([_LT_PROG_CXX])dnl
5361 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5362 m4_require([_LT_DECL_EGREP])dnl
5363
5364 AC_LANG_PUSH(C++)
5365 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5366 _LT_TAGVAR(allow_undefined_flag, $1)=
5367 _LT_TAGVAR(always_export_symbols, $1)=no
5368 _LT_TAGVAR(archive_expsym_cmds, $1)=
5369 _LT_TAGVAR(compiler_needs_object, $1)=no
5370 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
5371 _LT_TAGVAR(hardcode_direct, $1)=no
5372 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
5373 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5374 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5375 _LT_TAGVAR(hardcode_libdir_separator, $1)=
5376 _LT_TAGVAR(hardcode_minus_L, $1)=no
5377 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5378 _LT_TAGVAR(hardcode_automatic, $1)=no
5379 _LT_TAGVAR(inherit_rpath, $1)=no
5380 _LT_TAGVAR(module_cmds, $1)=
5381 _LT_TAGVAR(module_expsym_cmds, $1)=
5382 _LT_TAGVAR(link_all_deplibs, $1)=unknown
5383 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5384 _LT_TAGVAR(no_undefined_flag, $1)=
5385 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5386 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5387
5388 # Source file extension for C++ test sources.
5389 ac_ext=cpp
5390
5391 # Object file extension for compiled C++ test sources.
5392 objext=o
5393 _LT_TAGVAR(objext, $1)=$objext
5394
5395 # No sense in running all these tests if we already determined that
5396 # the CXX compiler isn't working. Some variables (like enable_shared)
5397 # are currently assumed to apply to all compilers on this platform,
5398 # and will be corrupted by setting them based on a non-working compiler.
5399 if test "$_lt_caught_CXX_error" != yes; then
5400 # Code to be used in simple compile tests
5401 lt_simple_compile_test_code="int some_variable = 0;"
5402
5403 # Code to be used in simple link tests
5404 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
5405
5406 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
5407 _LT_TAG_COMPILER
5408
5409 # save warnings/boilerplate of simple test code
5410 _LT_COMPILER_BOILERPLATE
5411 _LT_LINKER_BOILERPLATE
5412
5413 # Allow CC to be a program name with arguments.
5414 lt_save_CC=$CC
5415 lt_save_LD=$LD
5416 lt_save_GCC=$GCC
5417 GCC=$GXX
5418 lt_save_with_gnu_ld=$with_gnu_ld
5419 lt_save_path_LD=$lt_cv_path_LD
5420 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
5421 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
5422 else
5423 $as_unset lt_cv_prog_gnu_ld
5424 fi
5425 if test -n "${lt_cv_path_LDCXX+set}"; then
5426 lt_cv_path_LD=$lt_cv_path_LDCXX
5427 else
5428 $as_unset lt_cv_path_LD
5429 fi
5430 test -z "${LDCXX+set}" || LD=$LDCXX
5431 CC=${CXX-"c++"}
5432 compiler=$CC
5433 _LT_TAGVAR(compiler, $1)=$CC
5434 _LT_CC_BASENAME([$compiler])
5435
5436 if test -n "$compiler"; then
5437 # We don't want -fno-exception when compiling C++ code, so set the
5438 # no_builtin_flag separately
5439 if test "$GXX" = yes; then
5440 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5441 else
5442 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5443 fi
5444
5445 if test "$GXX" = yes; then
5446 # Set up default GNU C++ configuration
5447
5448 LT_PATH_LD
5449
5450 # Check if GNU C++ uses GNU ld as the underlying linker, since the
5451 # archiving commands below assume that GNU ld is being used.
5452 if test "$with_gnu_ld" = yes; then
5453 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5454 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5455
5456 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5457 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5458
5459 # If archive_cmds runs LD, not CC, wlarc should be empty
5460 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
5461 # investigate it a little bit more. (MM)
5462 wlarc='${wl}'
5463
5464 # ancient GNU ld didn't support --whole-archive et. al.
5465 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
5466 $GREP 'no-whole-archive' > /dev/null; then
5467 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5468 else
5469 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5470 fi
5471 else
5472 with_gnu_ld=no
5473 wlarc=
5474
5475 # A generic and very simple default shared library creation
5476 # command for GNU C++ for the case where it uses the native
5477 # linker, instead of GNU ld. If possible, this setting should
5478 # overridden to take advantage of the native linker features on
5479 # the platform it is being used on.
5480 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
5481 fi
5482
5483 # Commands to make compiler produce verbose output that lists
5484 # what "hidden" libraries, object files and flags are used when
5485 # linking a shared library.
5486 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
5487
5488 else
5489 GXX=no
5490 with_gnu_ld=no
5491 wlarc=
5492 fi
5493
5494 # PORTME: fill in a description of your system's C++ link characteristics
5495 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5496 _LT_TAGVAR(ld_shlibs, $1)=yes
5497 case $host_os in
5498 aix3*)
5499 # FIXME: insert proper C++ library support
5500 _LT_TAGVAR(ld_shlibs, $1)=no
5501 ;;
5502 aix[[4-9]]*)
5503 if test "$host_cpu" = ia64; then
5504 # On IA64, the linker does run time linking by default, so we don't
5505 # have to do anything special.
5506 aix_use_runtimelinking=no
5507 exp_sym_flag='-Bexport'
5508 no_entry_flag=""
5509 else
5510 aix_use_runtimelinking=no
5511
5512 # Test if we are trying to use run time linking or normal
5513 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5514 # need to do runtime linking.
5515 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5516 for ld_flag in $LDFLAGS; do
5517 case $ld_flag in
5518 *-brtl*)
5519 aix_use_runtimelinking=yes
5520 break
5521 ;;
5522 esac
5523 done
5524 ;;
5525 esac
5526
5527 exp_sym_flag='-bexport'
5528 no_entry_flag='-bnoentry'
5529 fi
5530
5531 # When large executables or shared objects are built, AIX ld can
5532 # have problems creating the table of contents. If linking a library
5533 # or program results in "error TOC overflow" add -mminimal-toc to
5534 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5535 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5536
5537 _LT_TAGVAR(archive_cmds, $1)=''
5538 _LT_TAGVAR(hardcode_direct, $1)=yes
5539 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5540 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5541 _LT_TAGVAR(link_all_deplibs, $1)=yes
5542 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
5543
5544 if test "$GXX" = yes; then
5545 case $host_os in aix4.[[012]]|aix4.[[012]].*)
5546 # We only want to do this on AIX 4.2 and lower, the check
5547 # below for broken collect2 doesn't work under 4.3+
5548 collect2name=`${CC} -print-prog-name=collect2`
5549 if test -f "$collect2name" &&
5550 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
5551 then
5552 # We have reworked collect2
5553 :
5554 else
5555 # We have old collect2
5556 _LT_TAGVAR(hardcode_direct, $1)=unsupported
5557 # It fails to find uninstalled libraries when the uninstalled
5558 # path is not listed in the libpath. Setting hardcode_minus_L
5559 # to unsupported forces relinking
5560 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5561 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5562 _LT_TAGVAR(hardcode_libdir_separator, $1)=
5563 fi
5564 esac
5565 shared_flag='-shared'
5566 if test "$aix_use_runtimelinking" = yes; then
5567 shared_flag="$shared_flag "'${wl}-G'
5568 fi
5569 else
5570 # not using gcc
5571 if test "$host_cpu" = ia64; then
5572 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5573 # chokes on -Wl,-G. The following line is correct:
5574 shared_flag='-G'
5575 else
5576 if test "$aix_use_runtimelinking" = yes; then
5577 shared_flag='${wl}-G'
5578 else
5579 shared_flag='${wl}-bM:SRE'
5580 fi
5581 fi
5582 fi
5583
5584 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
5585 # It seems that -bexpall does not export symbols beginning with
5586 # underscore (_), so it is better to generate a list of symbols to
5587 # export.
5588 _LT_TAGVAR(always_export_symbols, $1)=yes
5589 if test "$aix_use_runtimelinking" = yes; then
5590 # Warning - without using the other runtime loading flags (-brtl),
5591 # -berok will link without error, but may produce a broken library.
5592 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5593 # Determine the default libpath from the value encoded in an empty
5594 # executable.
5595 _LT_SYS_MODULE_PATH_AIX
5596 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5597
5598 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5599 else
5600 if test "$host_cpu" = ia64; then
5601 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5602 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5603 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
5604 else
5605 # Determine the default libpath from the value encoded in an
5606 # empty executable.
5607 _LT_SYS_MODULE_PATH_AIX
5608 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5609 # Warning - without using the other run time loading flags,
5610 # -berok will link without error, but may produce a broken library.
5611 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5612 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5613 # Exported symbols can be pulled into shared objects from archives
5614 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5615 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5616 # This is similar to how AIX traditionally builds its shared
5617 # libraries.
5618 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
5619 fi
5620 fi
5621 ;;
5622
5623 beos*)
5624 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5625 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5626 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5627 # support --undefined. This deserves some investigation. FIXME
5628 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5629 else
5630 _LT_TAGVAR(ld_shlibs, $1)=no
5631 fi
5632 ;;
5633
5634 chorus*)
5635 case $cc_basename in
5636 *)
5637 # FIXME: insert proper C++ library support
5638 _LT_TAGVAR(ld_shlibs, $1)=no
5639 ;;
5640 esac
5641 ;;
5642
5643 cygwin* | mingw* | pw32* | cegcc*)
5644 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5645 # as there is no search path for DLLs.
5646 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5647 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5648 _LT_TAGVAR(always_export_symbols, $1)=no
5649 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5650
5651 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5652 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5653 # If the export-symbols file already is a .def file (1st line
5654 # is EXPORTS), use it as is; otherwise, prepend...
5655 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5656 cp $export_symbols $output_objdir/$soname.def;
5657 else
5658 echo EXPORTS > $output_objdir/$soname.def;
5659 cat $export_symbols >> $output_objdir/$soname.def;
5660 fi~
5661 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5662 else
5663 _LT_TAGVAR(ld_shlibs, $1)=no
5664 fi
5665 ;;
5666 darwin* | rhapsody*)
5667 _LT_DARWIN_LINKER_FEATURES($1)
5668 ;;
5669
5670 dgux*)
5671 case $cc_basename in
5672 ec++*)
5673 # FIXME: insert proper C++ library support
5674 _LT_TAGVAR(ld_shlibs, $1)=no
5675 ;;
5676 ghcx*)
5677 # Green Hills C++ Compiler
5678 # FIXME: insert proper C++ library support
5679 _LT_TAGVAR(ld_shlibs, $1)=no
5680 ;;
5681 *)
5682 # FIXME: insert proper C++ library support
5683 _LT_TAGVAR(ld_shlibs, $1)=no
5684 ;;
5685 esac
5686 ;;
5687
5688 freebsd[[12]]*)
5689 # C++ shared libraries reported to be fairly broken before
5690 # switch to ELF
5691 _LT_TAGVAR(ld_shlibs, $1)=no
5692 ;;
5693
5694 freebsd-elf*)
5695 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5696 ;;
5697
5698 freebsd* | dragonfly*)
5699 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
5700 # conventions
5701 _LT_TAGVAR(ld_shlibs, $1)=yes
5702 ;;
5703
5704 gnu*)
5705 ;;
5706
5707 hpux9*)
5708 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5709 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5710 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5711 _LT_TAGVAR(hardcode_direct, $1)=yes
5712 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
5713 # but as the default
5714 # location of the library.
5715
5716 case $cc_basename in
5717 CC*)
5718 # FIXME: insert proper C++ library support
5719 _LT_TAGVAR(ld_shlibs, $1)=no
5720 ;;
5721 aCC*)
5722 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5723 # Commands to make compiler produce verbose output that lists
5724 # what "hidden" libraries, object files and flags are used when
5725 # linking a shared library.
5726 #
5727 # There doesn't appear to be a way to prevent this compiler from
5728 # explicitly linking system object files so we need to strip them
5729 # from the output so that they don't get included in the library
5730 # dependencies.
5731 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
5732 ;;
5733 *)
5734 if test "$GXX" = yes; then
5735 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5736 else
5737 # FIXME: insert proper C++ library support
5738 _LT_TAGVAR(ld_shlibs, $1)=no
5739 fi
5740 ;;
5741 esac
5742 ;;
5743
5744 hpux10*|hpux11*)
5745 if test $with_gnu_ld = no; then
5746 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5747 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5748
5749 case $host_cpu in
5750 hppa*64*|ia64*)
5751 ;;
5752 *)
5753 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5754 ;;
5755 esac
5756 fi
5757 case $host_cpu in
5758 hppa*64*|ia64*)
5759 _LT_TAGVAR(hardcode_direct, $1)=no
5760 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5761 ;;
5762 *)
5763 _LT_TAGVAR(hardcode_direct, $1)=yes
5764 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5765 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
5766 # but as the default
5767 # location of the library.
5768 ;;
5769 esac
5770
5771 case $cc_basename in
5772 CC*)
5773 # FIXME: insert proper C++ library support
5774 _LT_TAGVAR(ld_shlibs, $1)=no
5775 ;;
5776 aCC*)
5777 case $host_cpu in
5778 hppa*64*)
5779 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5780 ;;
5781 ia64*)
5782 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5783 ;;
5784 *)
5785 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5786 ;;
5787 esac
5788 # Commands to make compiler produce verbose output that lists
5789 # what "hidden" libraries, object files and flags are used when
5790 # linking a shared library.
5791 #
5792 # There doesn't appear to be a way to prevent this compiler from
5793 # explicitly linking system object files so we need to strip them
5794 # from the output so that they don't get included in the library
5795 # dependencies.
5796 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
5797 ;;
5798 *)
5799 if test "$GXX" = yes; then
5800 if test $with_gnu_ld = no; then
5801 case $host_cpu in
5802 hppa*64*)
5803 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5804 ;;
5805 ia64*)
5806 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5807 ;;
5808 *)
5809 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5810 ;;
5811 esac
5812 fi
5813 else
5814 # FIXME: insert proper C++ library support
5815 _LT_TAGVAR(ld_shlibs, $1)=no
5816 fi
5817 ;;
5818 esac
5819 ;;
5820
5821 interix[[3-9]]*)
5822 _LT_TAGVAR(hardcode_direct, $1)=no
5823 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5824 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5825 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5826 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5827 # Instead, shared libraries are loaded at an image base (0x10000000 by
5828 # default) and relocated if they conflict, which is a slow very memory
5829 # consuming and fragmenting process. To avoid this, we pick a random,
5830 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5831 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
5832 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5833 _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5834 ;;
5835 irix5* | irix6*)
5836 case $cc_basename in
5837 CC*)
5838 # SGI C++
5839 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
5840
5841 # Archives containing C++ object files must be created using
5842 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
5843 # necessary to make sure instantiated templates are included
5844 # in the archive.
5845 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
5846 ;;
5847 *)
5848 if test "$GXX" = yes; then
5849 if test "$with_gnu_ld" = no; then
5850 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5851 else
5852 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
5853 fi
5854 fi
5855 _LT_TAGVAR(link_all_deplibs, $1)=yes
5856 ;;
5857 esac
5858 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5859 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5860 _LT_TAGVAR(inherit_rpath, $1)=yes
5861 ;;
5862
5863 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5864 case $cc_basename in
5865 KCC*)
5866 # Kuck and Associates, Inc. (KAI) C++ Compiler
5867
5868 # KCC will only create a shared library if the output file
5869 # ends with ".so" (or ".sl" for HP-UX), so rename the library
5870 # to its proper name (with version) after linking.
5871 _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
5872 _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
5873 # Commands to make compiler produce verbose output that lists
5874 # what "hidden" libraries, object files and flags are used when
5875 # linking a shared library.
5876 #
5877 # There doesn't appear to be a way to prevent this compiler from
5878 # explicitly linking system object files so we need to strip them
5879 # from the output so that they don't get included in the library
5880 # dependencies.
5881 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
5882
5883 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5884 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5885
5886 # Archives containing C++ object files must be created using
5887 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
5888 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
5889 ;;
5890 icpc* | ecpc* )
5891 # Intel C++
5892 with_gnu_ld=yes
5893 # version 8.0 and above of icpc choke on multiply defined symbols
5894 # if we add $predep_objects and $postdep_objects, however 7.1 and
5895 # earlier do not add the objects themselves.
5896 case `$CC -V 2>&1` in
5897 *"Version 7."*)
5898 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5899 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5900 ;;
5901 *) # Version 8.0 or newer
5902 tmp_idyn=
5903 case $host_cpu in
5904 ia64*) tmp_idyn=' -i_dynamic';;
5905 esac
5906 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5907 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5908 ;;
5909 esac
5910 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5911 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5912 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5913 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
5914 ;;
5915 pgCC* | pgcpp*)
5916 # Portland Group C++ compiler
5917 case `$CC -V` in
5918 *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
5919 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
5920 rm -rf $tpldir~
5921 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
5922 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
5923 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
5924 rm -rf $tpldir~
5925 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
5926 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
5927 $RANLIB $oldlib'
5928 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
5929 rm -rf $tpldir~
5930 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
5931 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
5932 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
5933 rm -rf $tpldir~
5934 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
5935 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
5936 ;;
5937 *) # Version 6 will use weak symbols
5938 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
5939 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
5940 ;;
5941 esac
5942
5943 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5944 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5945 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
5946 ;;
5947 cxx*)
5948 # Compaq C++
5949 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5950 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
5951
5952 runpath_var=LD_RUN_PATH
5953 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5954 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5955
5956 # Commands to make compiler produce verbose output that lists
5957 # what "hidden" libraries, object files and flags are used when
5958 # linking a shared library.
5959 #
5960 # There doesn't appear to be a way to prevent this compiler from
5961 # explicitly linking system object files so we need to strip them
5962 # from the output so that they don't get included in the library
5963 # dependencies.
5964 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
5965 ;;
5966 xl*)
5967 # IBM XL 8.0 on PPC, with GNU ld
5968 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5969 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5970 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5971 if test "x$supports_anon_versioning" = xyes; then
5972 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5973 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5974 echo "local: *; };" >> $output_objdir/$libname.ver~
5975 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5976 fi
5977 ;;
5978 *)
5979 case `$CC -V 2>&1 | sed 5q` in
5980 *Sun\ C*)
5981 # Sun C++ 5.9
5982 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
5983 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5984 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
5985 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5986 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
5987 _LT_TAGVAR(compiler_needs_object, $1)=yes
5988
5989 # Not sure whether something based on
5990 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
5991 # would be better.
5992 output_verbose_link_cmd='echo'
5993
5994 # Archives containing C++ object files must be created using
5995 # "CC -xar", where "CC" is the Sun C++ compiler. This is
5996 # necessary to make sure instantiated templates are included
5997 # in the archive.
5998 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
5999 ;;
6000 esac
6001 ;;
6002 esac
6003 ;;
6004
6005 lynxos*)
6006 # FIXME: insert proper C++ library support
6007 _LT_TAGVAR(ld_shlibs, $1)=no
6008 ;;
6009
6010 m88k*)
6011 # FIXME: insert proper C++ library support
6012 _LT_TAGVAR(ld_shlibs, $1)=no
6013 ;;
6014
6015 mvs*)
6016 case $cc_basename in
6017 cxx*)
6018 # FIXME: insert proper C++ library support
6019 _LT_TAGVAR(ld_shlibs, $1)=no
6020 ;;
6021 *)
6022 # FIXME: insert proper C++ library support
6023 _LT_TAGVAR(ld_shlibs, $1)=no
6024 ;;
6025 esac
6026 ;;
6027
6028 netbsd*)
6029 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6030 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
6031 wlarc=
6032 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6033 _LT_TAGVAR(hardcode_direct, $1)=yes
6034 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6035 fi
6036 # Workaround some broken pre-1.5 toolchains
6037 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
6038 ;;
6039
6040 *nto* | *qnx*)
6041 _LT_TAGVAR(ld_shlibs, $1)=yes
6042 ;;
6043
6044 openbsd2*)
6045 # C++ shared libraries are fairly broken
6046 _LT_TAGVAR(ld_shlibs, $1)=no
6047 ;;
6048
6049 openbsd*)
6050 if test -f /usr/libexec/ld.so; then
6051 _LT_TAGVAR(hardcode_direct, $1)=yes
6052 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6053 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6054 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6055 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6056 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6057 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
6058 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6059 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6060 fi
6061 output_verbose_link_cmd=echo
6062 else
6063 _LT_TAGVAR(ld_shlibs, $1)=no
6064 fi
6065 ;;
6066
6067 osf3* | osf4* | osf5*)
6068 case $cc_basename in
6069 KCC*)
6070 # Kuck and Associates, Inc. (KAI) C++ Compiler
6071
6072 # KCC will only create a shared library if the output file
6073 # ends with ".so" (or ".sl" for HP-UX), so rename the library
6074 # to its proper name (with version) after linking.
6075 _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
6076
6077 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6078 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6079
6080 # Archives containing C++ object files must be created using
6081 # the KAI C++ compiler.
6082 case $host in
6083 osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
6084 *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
6085 esac
6086 ;;
6087 RCC*)
6088 # Rational C++ 2.4.1
6089 # FIXME: insert proper C++ library support
6090 _LT_TAGVAR(ld_shlibs, $1)=no
6091 ;;
6092 cxx*)
6093 case $host in
6094 osf3*)
6095 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6096 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6097 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6098 ;;
6099 *)
6100 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6101 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6102 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6103 echo "-hidden">> $lib.exp~
6104 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
6105 $RM $lib.exp'
6106 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6107 ;;
6108 esac
6109
6110 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6111
6112 # Commands to make compiler produce verbose output that lists
6113 # what "hidden" libraries, object files and flags are used when
6114 # linking a shared library.
6115 #
6116 # There doesn't appear to be a way to prevent this compiler from
6117 # explicitly linking system object files so we need to strip them
6118 # from the output so that they don't get included in the library
6119 # dependencies.
6120 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
6121 ;;
6122 *)
6123 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6124 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6125 case $host in
6126 osf3*)
6127 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6128 ;;
6129 *)
6130 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6131 ;;
6132 esac
6133
6134 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6135 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6136
6137 # Commands to make compiler produce verbose output that lists
6138 # what "hidden" libraries, object files and flags are used when
6139 # linking a shared library.
6140 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6141
6142 else
6143 # FIXME: insert proper C++ library support
6144 _LT_TAGVAR(ld_shlibs, $1)=no
6145 fi
6146 ;;
6147 esac
6148 ;;
6149
6150 psos*)
6151 # FIXME: insert proper C++ library support
6152 _LT_TAGVAR(ld_shlibs, $1)=no
6153 ;;
6154
6155 sunos4*)
6156 case $cc_basename in
6157 CC*)
6158 # Sun C++ 4.x
6159 # FIXME: insert proper C++ library support
6160 _LT_TAGVAR(ld_shlibs, $1)=no
6161 ;;
6162 lcc*)
6163 # Lucid
6164 # FIXME: insert proper C++ library support
6165 _LT_TAGVAR(ld_shlibs, $1)=no
6166 ;;
6167 *)
6168 # FIXME: insert proper C++ library support
6169 _LT_TAGVAR(ld_shlibs, $1)=no
6170 ;;
6171 esac
6172 ;;
6173
6174 solaris*)
6175 case $cc_basename in
6176 CC*)
6177 # Sun C++ 4.2, 5.x and Centerline C++
6178 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
6179 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6180 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6181 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6182 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6183
6184 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6185 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6186 case $host_os in
6187 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6188 *)
6189 # The compiler driver will combine and reorder linker options,
6190 # but understands `-z linker_flag'.
6191 # Supported since Solaris 2.6 (maybe 2.5.1?)
6192 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6193 ;;
6194 esac
6195 _LT_TAGVAR(link_all_deplibs, $1)=yes
6196
6197 output_verbose_link_cmd='echo'
6198
6199 # Archives containing C++ object files must be created using
6200 # "CC -xar", where "CC" is the Sun C++ compiler. This is
6201 # necessary to make sure instantiated templates are included
6202 # in the archive.
6203 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6204 ;;
6205 gcx*)
6206 # Green Hills C++ Compiler
6207 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6208
6209 # The C++ compiler must be used to create the archive.
6210 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
6211 ;;
6212 *)
6213 # GNU C++ compiler with Solaris linker
6214 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6215 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
6216 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6217 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6218 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6219 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6220
6221 # Commands to make compiler produce verbose output that lists
6222 # what "hidden" libraries, object files and flags are used when
6223 # linking a shared library.
6224 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6225 else
6226 # g++ 2.7 appears to require `-G' NOT `-shared' on this
6227 # platform.
6228 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6229 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6230 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6231
6232 # Commands to make compiler produce verbose output that lists
6233 # what "hidden" libraries, object files and flags are used when
6234 # linking a shared library.
6235 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6236 fi
6237
6238 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
6239 case $host_os in
6240 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6241 *)
6242 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6243 ;;
6244 esac
6245 fi
6246 ;;
6247 esac
6248 ;;
6249
6250 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6251 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6252 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6253 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6254 runpath_var='LD_RUN_PATH'
6255
6256 case $cc_basename in
6257 CC*)
6258 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6259 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6260 ;;
6261 *)
6262 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6263 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6264 ;;
6265 esac
6266 ;;
6267
6268 sysv5* | sco3.2v5* | sco5v6*)
6269 # Note: We can NOT use -z defs as we might desire, because we do not
6270 # link with -lc, and that would cause any symbols used from libc to
6271 # always be unresolved, which means just about no library would
6272 # ever link correctly. If we're not using GNU ld we use -z text
6273 # though, which does catch some bad symbols but isn't as heavy-handed
6274 # as -z defs.
6275 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6276 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6277 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6278 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6279 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
6280 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6281 _LT_TAGVAR(link_all_deplibs, $1)=yes
6282 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6283 runpath_var='LD_RUN_PATH'
6284
6285 case $cc_basename in
6286 CC*)
6287 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6288 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6289 ;;
6290 *)
6291 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6292 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6293 ;;
6294 esac
6295 ;;
6296
6297 tandem*)
6298 case $cc_basename in
6299 NCC*)
6300 # NonStop-UX NCC 3.20
6301 # FIXME: insert proper C++ library support
6302 _LT_TAGVAR(ld_shlibs, $1)=no
6303 ;;
6304 *)
6305 # FIXME: insert proper C++ library support
6306 _LT_TAGVAR(ld_shlibs, $1)=no
6307 ;;
6308 esac
6309 ;;
6310
6311 vxworks*)
6312 # FIXME: insert proper C++ library support
6313 _LT_TAGVAR(ld_shlibs, $1)=no
6314 ;;
6315
6316 *)
6317 # FIXME: insert proper C++ library support
6318 _LT_TAGVAR(ld_shlibs, $1)=no
6319 ;;
6320 esac
6321
6322 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
6323 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6324
6325 _LT_TAGVAR(GCC, $1)="$GXX"
6326 _LT_TAGVAR(LD, $1)="$LD"
6327
6328 ## CAVEAT EMPTOR:
6329 ## There is no encapsulation within the following macros, do not change
6330 ## the running order or otherwise move them around unless you know exactly
6331 ## what you are doing...
6332 _LT_SYS_HIDDEN_LIBDEPS($1)
6333 _LT_COMPILER_PIC($1)
6334 _LT_COMPILER_C_O($1)
6335 _LT_COMPILER_FILE_LOCKS($1)
6336 _LT_LINKER_SHLIBS($1)
6337 _LT_SYS_DYNAMIC_LINKER($1)
6338 _LT_LINKER_HARDCODE_LIBPATH($1)
6339
6340 _LT_CONFIG($1)
6341 fi # test -n "$compiler"
6342
6343 CC=$lt_save_CC
6344 LDCXX=$LD
6345 LD=$lt_save_LD
6346 GCC=$lt_save_GCC
6347 with_gnu_ld=$lt_save_with_gnu_ld
6348 lt_cv_path_LDCXX=$lt_cv_path_LD
6349 lt_cv_path_LD=$lt_save_path_LD
6350 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
6351 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
6352 fi # test "$_lt_caught_CXX_error" != yes
6353
6354 AC_LANG_POP
6355 ])# _LT_LANG_CXX_CONFIG
6356
6357
6358 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
6359 # ---------------------------------
6360 # Figure out "hidden" library dependencies from verbose
6361 # compiler output when linking a shared library.
6362 # Parse the compiler output and extract the necessary
6363 # objects, libraries and library flags.
6364 m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
6365 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6366 # Dependencies to place before and after the object being linked:
6367 _LT_TAGVAR(predep_objects, $1)=
6368 _LT_TAGVAR(postdep_objects, $1)=
6369 _LT_TAGVAR(predeps, $1)=
6370 _LT_TAGVAR(postdeps, $1)=
6371 _LT_TAGVAR(compiler_lib_search_path, $1)=
6372
6373 dnl we can't use the lt_simple_compile_test_code here,
6374 dnl because it contains code intended for an executable,
6375 dnl not a library. It's possible we should let each
6376 dnl tag define a new lt_????_link_test_code variable,
6377 dnl but it's only used here...
6378 m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
6379 int a;
6380 void foo (void) { a = 0; }
6381 _LT_EOF
6382 ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
6383 class Foo
6384 {
6385 public:
6386 Foo (void) { a = 0; }
6387 private:
6388 int a;
6389 };
6390 _LT_EOF
6391 ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
6392 subroutine foo
6393 implicit none
6394 integer*4 a
6395 a=0
6396 return
6397 end
6398 _LT_EOF
6399 ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
6400 subroutine foo
6401 implicit none
6402 integer a
6403 a=0
6404 return
6405 end
6406 _LT_EOF
6407 ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
6408 public class foo {
6409 private int a;
6410 public void bar (void) {
6411 a = 0;
6412 }
6413 };
6414 _LT_EOF
6415 ])
6416 dnl Parse the compiler output and extract the necessary
6417 dnl objects, libraries and library flags.
6418 if AC_TRY_EVAL(ac_compile); then
6419 # Parse the compiler output and extract the necessary
6420 # objects, libraries and library flags.
6421
6422 # Sentinel used to keep track of whether or not we are before
6423 # the conftest object file.
6424 pre_test_object_deps_done=no
6425
6426 for p in `eval "$output_verbose_link_cmd"`; do
6427 case $p in
6428
6429 -L* | -R* | -l*)
6430 # Some compilers place space between "-{L,R}" and the path.
6431 # Remove the space.
6432 if test $p = "-L" ||
6433 test $p = "-R"; then
6434 prev=$p
6435 continue
6436 else
6437 prev=
6438 fi
6439
6440 if test "$pre_test_object_deps_done" = no; then
6441 case $p in
6442 -L* | -R*)
6443 # Internal compiler library paths should come after those
6444 # provided the user. The postdeps already come after the
6445 # user supplied libs so there is no need to process them.
6446 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
6447 _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
6448 else
6449 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
6450 fi
6451 ;;
6452 # The "-l" case would never come before the object being
6453 # linked, so don't bother handling this case.
6454 esac
6455 else
6456 if test -z "$_LT_TAGVAR(postdeps, $1)"; then
6457 _LT_TAGVAR(postdeps, $1)="${prev}${p}"
6458 else
6459 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
6460 fi
6461 fi
6462 ;;
6463
6464 *.$objext)
6465 # This assumes that the test object file only shows up
6466 # once in the compiler output.
6467 if test "$p" = "conftest.$objext"; then
6468 pre_test_object_deps_done=yes
6469 continue
6470 fi
6471
6472 if test "$pre_test_object_deps_done" = no; then
6473 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
6474 _LT_TAGVAR(predep_objects, $1)="$p"
6475 else
6476 _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
6477 fi
6478 else
6479 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
6480 _LT_TAGVAR(postdep_objects, $1)="$p"
6481 else
6482 _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
6483 fi
6484 fi
6485 ;;
6486
6487 *) ;; # Ignore the rest.
6488
6489 esac
6490 done
6491
6492 # Clean up.
6493 rm -f a.out a.exe
6494 else
6495 echo "libtool.m4: error: problem compiling $1 test program"
6496 fi
6497
6498 $RM -f confest.$objext
6499
6500 # PORTME: override above test on systems where it is broken
6501 m4_if([$1], [CXX],
6502 [case $host_os in
6503 interix[[3-9]]*)
6504 # Interix 3.5 installs completely hosed .la files for C++, so rather than
6505 # hack all around it, let's just trust "g++" to DTRT.
6506 _LT_TAGVAR(predep_objects,$1)=
6507 _LT_TAGVAR(postdep_objects,$1)=
6508 _LT_TAGVAR(postdeps,$1)=
6509 ;;
6510
6511 linux*)
6512 case `$CC -V 2>&1 | sed 5q` in
6513 *Sun\ C*)
6514 # Sun C++ 5.9
6515
6516 # The more standards-conforming stlport4 library is
6517 # incompatible with the Cstd library. Avoid specifying
6518 # it if it's in CXXFLAGS. Ignore libCrun as
6519 # -library=stlport4 depends on it.
6520 case " $CXX $CXXFLAGS " in
6521 *" -library=stlport4 "*)
6522 solaris_use_stlport4=yes
6523 ;;
6524 esac
6525
6526 if test "$solaris_use_stlport4" != yes; then
6527 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
6528 fi
6529 ;;
6530 esac
6531 ;;
6532
6533 solaris*)
6534 case $cc_basename in
6535 CC*)
6536 # The more standards-conforming stlport4 library is
6537 # incompatible with the Cstd library. Avoid specifying
6538 # it if it's in CXXFLAGS. Ignore libCrun as
6539 # -library=stlport4 depends on it.
6540 case " $CXX $CXXFLAGS " in
6541 *" -library=stlport4 "*)
6542 solaris_use_stlport4=yes
6543 ;;
6544 esac
6545
6546 # Adding this requires a known-good setup of shared libraries for
6547 # Sun compiler versions before 5.6, else PIC objects from an old
6548 # archive will be linked into the output, leading to subtle bugs.
6549 if test "$solaris_use_stlport4" != yes; then
6550 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
6551 fi
6552 ;;
6553 esac
6554 ;;
6555 esac
6556 ])
6557
6558 case " $_LT_TAGVAR(postdeps, $1) " in
6559 *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
6560 esac
6561 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
6562 if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
6563 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
6564 fi
6565 _LT_TAGDECL([], [compiler_lib_search_dirs], [1],
6566 [The directories searched by this compiler when creating a shared library])
6567 _LT_TAGDECL([], [predep_objects], [1],
6568 [Dependencies to place before and after the objects being linked to
6569 create a shared library])
6570 _LT_TAGDECL([], [postdep_objects], [1])
6571 _LT_TAGDECL([], [predeps], [1])
6572 _LT_TAGDECL([], [postdeps], [1])
6573 _LT_TAGDECL([], [compiler_lib_search_path], [1],
6574 [The library search path used internally by the compiler when linking
6575 a shared library])
6576 ])# _LT_SYS_HIDDEN_LIBDEPS
6577
6578
6579 # _LT_PROG_F77
6580 # ------------
6581 # Since AC_PROG_F77 is broken, in that it returns the empty string
6582 # if there is no fortran compiler, we have our own version here.
6583 m4_defun([_LT_PROG_F77],
6584 [
6585 pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
6586 AC_PROG_F77
6587 if test -z "$F77" || test "X$F77" = "Xno"; then
6588 _lt_disable_F77=yes
6589 fi
6590 popdef([AC_MSG_ERROR])
6591 ])# _LT_PROG_F77
6592
6593 dnl aclocal-1.4 backwards compatibility:
6594 dnl AC_DEFUN([_LT_PROG_F77], [])
6595
6596
6597 # _LT_LANG_F77_CONFIG([TAG])
6598 # --------------------------
6599 # Ensure that the configuration variables for a Fortran 77 compiler are
6600 # suitably defined. These variables are subsequently used by _LT_CONFIG
6601 # to write the compiler configuration to `libtool'.
6602 m4_defun([_LT_LANG_F77_CONFIG],
6603 [AC_REQUIRE([_LT_PROG_F77])dnl
6604 AC_LANG_PUSH(Fortran 77)
6605
6606 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6607 _LT_TAGVAR(allow_undefined_flag, $1)=
6608 _LT_TAGVAR(always_export_symbols, $1)=no
6609 _LT_TAGVAR(archive_expsym_cmds, $1)=
6610 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
6611 _LT_TAGVAR(hardcode_direct, $1)=no
6612 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
6613 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6614 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6615 _LT_TAGVAR(hardcode_libdir_separator, $1)=
6616 _LT_TAGVAR(hardcode_minus_L, $1)=no
6617 _LT_TAGVAR(hardcode_automatic, $1)=no
6618 _LT_TAGVAR(inherit_rpath, $1)=no
6619 _LT_TAGVAR(module_cmds, $1)=
6620 _LT_TAGVAR(module_expsym_cmds, $1)=
6621 _LT_TAGVAR(link_all_deplibs, $1)=unknown
6622 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6623 _LT_TAGVAR(no_undefined_flag, $1)=
6624 _LT_TAGVAR(whole_archive_flag_spec, $1)=
6625 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6626
6627 # Source file extension for f77 test sources.
6628 ac_ext=f
6629
6630 # Object file extension for compiled f77 test sources.
6631 objext=o
6632 _LT_TAGVAR(objext, $1)=$objext
6633
6634 # No sense in running all these tests if we already determined that
6635 # the F77 compiler isn't working. Some variables (like enable_shared)
6636 # are currently assumed to apply to all compilers on this platform,
6637 # and will be corrupted by setting them based on a non-working compiler.
6638 if test "$_lt_disable_F77" != yes; then
6639 # Code to be used in simple compile tests
6640 lt_simple_compile_test_code="\
6641 subroutine t
6642 return
6643 end
6644 "
6645
6646 # Code to be used in simple link tests
6647 lt_simple_link_test_code="\
6648 program t
6649 end
6650 "
6651
6652 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
6653 _LT_TAG_COMPILER
6654
6655 # save warnings/boilerplate of simple test code
6656 _LT_COMPILER_BOILERPLATE
6657 _LT_LINKER_BOILERPLATE
6658
6659 # Allow CC to be a program name with arguments.
6660 lt_save_CC="$CC"
6661 lt_save_GCC=$GCC
6662 CC=${F77-"f77"}
6663 compiler=$CC
6664 _LT_TAGVAR(compiler, $1)=$CC
6665 _LT_CC_BASENAME([$compiler])
6666 GCC=$G77
6667 if test -n "$compiler"; then
6668 AC_MSG_CHECKING([if libtool supports shared libraries])
6669 AC_MSG_RESULT([$can_build_shared])
6670
6671 AC_MSG_CHECKING([whether to build shared libraries])
6672 test "$can_build_shared" = "no" && enable_shared=no
6673
6674 # On AIX, shared libraries and static libraries use the same namespace, and
6675 # are all built from PIC.
6676 case $host_os in
6677 aix3*)
6678 test "$enable_shared" = yes && enable_static=no
6679 if test -n "$RANLIB"; then
6680 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6681 postinstall_cmds='$RANLIB $lib'
6682 fi
6683 ;;
6684 aix[[4-9]]*)
6685 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6686 test "$enable_shared" = yes && enable_static=no
6687 fi
6688 ;;
6689 esac
6690 AC_MSG_RESULT([$enable_shared])
6691
6692 AC_MSG_CHECKING([whether to build static libraries])
6693 # Make sure either enable_shared or enable_static is yes.
6694 test "$enable_shared" = yes || enable_static=yes
6695 AC_MSG_RESULT([$enable_static])
6696
6697 _LT_TAGVAR(GCC, $1)="$G77"
6698 _LT_TAGVAR(LD, $1)="$LD"
6699
6700 ## CAVEAT EMPTOR:
6701 ## There is no encapsulation within the following macros, do not change
6702 ## the running order or otherwise move them around unless you know exactly
6703 ## what you are doing...
6704 _LT_COMPILER_PIC($1)
6705 _LT_COMPILER_C_O($1)
6706 _LT_COMPILER_FILE_LOCKS($1)
6707 _LT_LINKER_SHLIBS($1)
6708 _LT_SYS_DYNAMIC_LINKER($1)
6709 _LT_LINKER_HARDCODE_LIBPATH($1)
6710
6711 _LT_CONFIG($1)
6712 fi # test -n "$compiler"
6713
6714 GCC=$lt_save_GCC
6715 CC="$lt_save_CC"
6716 fi # test "$_lt_disable_F77" != yes
6717
6718 AC_LANG_POP
6719 ])# _LT_LANG_F77_CONFIG
6720
6721
6722 # _LT_PROG_FC
6723 # -----------
6724 # Since AC_PROG_FC is broken, in that it returns the empty string
6725 # if there is no fortran compiler, we have our own version here.
6726 m4_defun([_LT_PROG_FC],
6727 [
6728 pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
6729 AC_PROG_FC
6730 if test -z "$FC" || test "X$FC" = "Xno"; then
6731 _lt_disable_FC=yes
6732 fi
6733 popdef([AC_MSG_ERROR])
6734 ])# _LT_PROG_FC
6735
6736 dnl aclocal-1.4 backwards compatibility:
6737 dnl AC_DEFUN([_LT_PROG_FC], [])
6738
6739
6740 # _LT_LANG_FC_CONFIG([TAG])
6741 # -------------------------
6742 # Ensure that the configuration variables for a Fortran compiler are
6743 # suitably defined. These variables are subsequently used by _LT_CONFIG
6744 # to write the compiler configuration to `libtool'.
6745 m4_defun([_LT_LANG_FC_CONFIG],
6746 [AC_REQUIRE([_LT_PROG_FC])dnl
6747 AC_LANG_PUSH(Fortran)
6748
6749 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6750 _LT_TAGVAR(allow_undefined_flag, $1)=
6751 _LT_TAGVAR(always_export_symbols, $1)=no
6752 _LT_TAGVAR(archive_expsym_cmds, $1)=
6753 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
6754 _LT_TAGVAR(hardcode_direct, $1)=no
6755 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
6756 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6757 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6758 _LT_TAGVAR(hardcode_libdir_separator, $1)=
6759 _LT_TAGVAR(hardcode_minus_L, $1)=no
6760 _LT_TAGVAR(hardcode_automatic, $1)=no
6761 _LT_TAGVAR(inherit_rpath, $1)=no
6762 _LT_TAGVAR(module_cmds, $1)=
6763 _LT_TAGVAR(module_expsym_cmds, $1)=
6764 _LT_TAGVAR(link_all_deplibs, $1)=unknown
6765 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6766 _LT_TAGVAR(no_undefined_flag, $1)=
6767 _LT_TAGVAR(whole_archive_flag_spec, $1)=
6768 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6769
6770 # Source file extension for fc test sources.
6771 ac_ext=${ac_fc_srcext-f}
6772
6773 # Object file extension for compiled fc test sources.
6774 objext=o
6775 _LT_TAGVAR(objext, $1)=$objext
6776
6777 # No sense in running all these tests if we already determined that
6778 # the FC compiler isn't working. Some variables (like enable_shared)
6779 # are currently assumed to apply to all compilers on this platform,
6780 # and will be corrupted by setting them based on a non-working compiler.
6781 if test "$_lt_disable_FC" != yes; then
6782 # Code to be used in simple compile tests
6783 lt_simple_compile_test_code="\
6784 subroutine t
6785 return
6786 end
6787 "
6788
6789 # Code to be used in simple link tests
6790 lt_simple_link_test_code="\
6791 program t
6792 end
6793 "
6794
6795 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
6796 _LT_TAG_COMPILER
6797
6798 # save warnings/boilerplate of simple test code
6799 _LT_COMPILER_BOILERPLATE
6800 _LT_LINKER_BOILERPLATE
6801
6802 # Allow CC to be a program name with arguments.
6803 lt_save_CC="$CC"
6804 lt_save_GCC=$GCC
6805 CC=${FC-"f95"}
6806 compiler=$CC
6807 GCC=$ac_cv_fc_compiler_gnu
6808
6809 _LT_TAGVAR(compiler, $1)=$CC
6810 _LT_CC_BASENAME([$compiler])
6811
6812 if test -n "$compiler"; then
6813 AC_MSG_CHECKING([if libtool supports shared libraries])
6814 AC_MSG_RESULT([$can_build_shared])
6815
6816 AC_MSG_CHECKING([whether to build shared libraries])
6817 test "$can_build_shared" = "no" && enable_shared=no
6818
6819 # On AIX, shared libraries and static libraries use the same namespace, and
6820 # are all built from PIC.
6821 case $host_os in
6822 aix3*)
6823 test "$enable_shared" = yes && enable_static=no
6824 if test -n "$RANLIB"; then
6825 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6826 postinstall_cmds='$RANLIB $lib'
6827 fi
6828 ;;
6829 aix[[4-9]]*)
6830 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6831 test "$enable_shared" = yes && enable_static=no
6832 fi
6833 ;;
6834 esac
6835 AC_MSG_RESULT([$enable_shared])
6836
6837 AC_MSG_CHECKING([whether to build static libraries])
6838 # Make sure either enable_shared or enable_static is yes.
6839 test "$enable_shared" = yes || enable_static=yes
6840 AC_MSG_RESULT([$enable_static])
6841
6842 _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
6843 _LT_TAGVAR(LD, $1)="$LD"
6844
6845 ## CAVEAT EMPTOR:
6846 ## There is no encapsulation within the following macros, do not change
6847 ## the running order or otherwise move them around unless you know exactly
6848 ## what you are doing...
6849 _LT_SYS_HIDDEN_LIBDEPS($1)
6850 _LT_COMPILER_PIC($1)
6851 _LT_COMPILER_C_O($1)
6852 _LT_COMPILER_FILE_LOCKS($1)
6853 _LT_LINKER_SHLIBS($1)
6854 _LT_SYS_DYNAMIC_LINKER($1)
6855 _LT_LINKER_HARDCODE_LIBPATH($1)
6856
6857 _LT_CONFIG($1)
6858 fi # test -n "$compiler"
6859
6860 GCC=$lt_save_GCC
6861 CC="$lt_save_CC"
6862 fi # test "$_lt_disable_FC" != yes
6863
6864 AC_LANG_POP
6865 ])# _LT_LANG_FC_CONFIG
6866
6867
6868 # _LT_LANG_GCJ_CONFIG([TAG])
6869 # --------------------------
6870 # Ensure that the configuration variables for the GNU Java Compiler compiler
6871 # are suitably defined. These variables are subsequently used by _LT_CONFIG
6872 # to write the compiler configuration to `libtool'.
6873 m4_defun([_LT_LANG_GCJ_CONFIG],
6874 [AC_REQUIRE([LT_PROG_GCJ])dnl
6875 AC_LANG_SAVE
6876
6877 # Source file extension for Java test sources.
6878 ac_ext=java
6879
6880 # Object file extension for compiled Java test sources.
6881 objext=o
6882 _LT_TAGVAR(objext, $1)=$objext
6883
6884 # Code to be used in simple compile tests
6885 lt_simple_compile_test_code="class foo {}"
6886
6887 # Code to be used in simple link tests
6888 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
6889
6890 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
6891 _LT_TAG_COMPILER
6892
6893 # save warnings/boilerplate of simple test code
6894 _LT_COMPILER_BOILERPLATE
6895 _LT_LINKER_BOILERPLATE
6896
6897 # Allow CC to be a program name with arguments.
6898 lt_save_CC="$CC"
6899 lt_save_GCC=$GCC
6900 GCC=yes
6901 CC=${GCJ-"gcj"}
6902 compiler=$CC
6903 _LT_TAGVAR(compiler, $1)=$CC
6904 _LT_TAGVAR(LD, $1)="$LD"
6905 _LT_CC_BASENAME([$compiler])
6906
6907 # GCJ did not exist at the time GCC didn't implicitly link libc in.
6908 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6909
6910 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6911
6912 ## CAVEAT EMPTOR:
6913 ## There is no encapsulation within the following macros, do not change
6914 ## the running order or otherwise move them around unless you know exactly
6915 ## what you are doing...
6916 if test -n "$compiler"; then
6917 _LT_COMPILER_NO_RTTI($1)
6918 _LT_COMPILER_PIC($1)
6919 _LT_COMPILER_C_O($1)
6920 _LT_COMPILER_FILE_LOCKS($1)
6921 _LT_LINKER_SHLIBS($1)
6922 _LT_LINKER_HARDCODE_LIBPATH($1)
6923
6924 _LT_CONFIG($1)
6925 fi
6926
6927 AC_LANG_RESTORE
6928
6929 GCC=$lt_save_GCC
6930 CC="$lt_save_CC"
6931 ])# _LT_LANG_GCJ_CONFIG
6932
6933
6934 # _LT_LANG_RC_CONFIG([TAG])
6935 # -------------------------
6936 # Ensure that the configuration variables for the Windows resource compiler
6937 # are suitably defined. These variables are subsequently used by _LT_CONFIG
6938 # to write the compiler configuration to `libtool'.
6939 m4_defun([_LT_LANG_RC_CONFIG],
6940 [AC_REQUIRE([LT_PROG_RC])dnl
6941 AC_LANG_SAVE
6942
6943 # Source file extension for RC test sources.
6944 ac_ext=rc
6945
6946 # Object file extension for compiled RC test sources.
6947 objext=o
6948 _LT_TAGVAR(objext, $1)=$objext
6949
6950 # Code to be used in simple compile tests
6951 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
6952
6953 # Code to be used in simple link tests
6954 lt_simple_link_test_code="$lt_simple_compile_test_code"
6955
6956 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
6957 _LT_TAG_COMPILER
6958
6959 # save warnings/boilerplate of simple test code
6960 _LT_COMPILER_BOILERPLATE
6961 _LT_LINKER_BOILERPLATE
6962
6963 # Allow CC to be a program name with arguments.
6964 lt_save_CC="$CC"
6965 lt_save_GCC=$GCC
6966 GCC=
6967 CC=${RC-"windres"}
6968 compiler=$CC
6969 _LT_TAGVAR(compiler, $1)=$CC
6970 _LT_CC_BASENAME([$compiler])
6971 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
6972
6973 if test -n "$compiler"; then
6974 :
6975 _LT_CONFIG($1)
6976 fi
6977
6978 GCC=$lt_save_GCC
6979 AC_LANG_RESTORE
6980 CC="$lt_save_CC"
6981 ])# _LT_LANG_RC_CONFIG
6982
6983
6984 # LT_PROG_GCJ
6985 # -----------
6986 AC_DEFUN([LT_PROG_GCJ],
6987 [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
6988 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
6989 [AC_CHECK_TOOL(GCJ, gcj,)
6990 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
6991 AC_SUBST(GCJFLAGS)])])[]dnl
6992 ])
6993
6994 # Old name:
6995 AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
6996 dnl aclocal-1.4 backwards compatibility:
6997 dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
6998
6999
7000 # LT_PROG_RC
7001 # ----------
7002 AC_DEFUN([LT_PROG_RC],
7003 [AC_CHECK_TOOL(RC, windres,)
7004 ])
7005
7006 # Old name:
7007 AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
7008 dnl aclocal-1.4 backwards compatibility:
7009 dnl AC_DEFUN([LT_AC_PROG_RC], [])
7010
7011
7012 # _LT_DECL_EGREP
7013 # --------------
7014 # If we don't have a new enough Autoconf to choose the best grep
7015 # available, choose the one first in the user's PATH.
7016 m4_defun([_LT_DECL_EGREP],
7017 [AC_REQUIRE([AC_PROG_EGREP])dnl
7018 AC_REQUIRE([AC_PROG_FGREP])dnl
7019 test -z "$GREP" && GREP=grep
7020 _LT_DECL([], [GREP], [1], [A grep program that handles long lines])
7021 _LT_DECL([], [EGREP], [1], [An ERE matcher])
7022 _LT_DECL([], [FGREP], [1], [A literal string matcher])
7023 dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
7024 AC_SUBST([GREP])
7025 ])
7026
7027
7028 # _LT_DECL_OBJDUMP
7029 # --------------
7030 # If we don't have a new enough Autoconf to choose the best objdump
7031 # available, choose the one first in the user's PATH.
7032 m4_defun([_LT_DECL_OBJDUMP],
7033 [AC_CHECK_TOOL(OBJDUMP, objdump, false)
7034 test -z "$OBJDUMP" && OBJDUMP=objdump
7035 _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
7036 AC_SUBST([OBJDUMP])
7037 ])
7038
7039
7040 # _LT_DECL_SED
7041 # ------------
7042 # Check for a fully-functional sed program, that truncates
7043 # as few characters as possible. Prefer GNU sed if found.
7044 m4_defun([_LT_DECL_SED],
7045 [AC_PROG_SED
7046 test -z "$SED" && SED=sed
7047 Xsed="$SED -e 1s/^X//"
7048 _LT_DECL([], [SED], [1], [A sed program that does not truncate output])
7049 _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
7050 [Sed that helps us avoid accidentally triggering echo(1) options like -n])
7051 ])# _LT_DECL_SED
7052
7053 m4_ifndef([AC_PROG_SED], [
7054 ############################################################
7055 # NOTE: This macro has been submitted for inclusion into #
7056 # GNU Autoconf as AC_PROG_SED. When it is available in #
7057 # a released version of Autoconf we should remove this #
7058 # macro and use it instead. #
7059 ############################################################
7060
7061 m4_defun([AC_PROG_SED],
7062 [AC_MSG_CHECKING([for a sed that does not truncate output])
7063 AC_CACHE_VAL(lt_cv_path_SED,
7064 [# Loop through the user's path and test for sed and gsed.
7065 # Then use that list of sed's as ones to test for truncation.
7066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7067 for as_dir in $PATH
7068 do
7069 IFS=$as_save_IFS
7070 test -z "$as_dir" && as_dir=.
7071 for lt_ac_prog in sed gsed; do
7072 for ac_exec_ext in '' $ac_executable_extensions; do
7073 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
7074 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7075 fi
7076 done
7077 done
7078 done
7079 IFS=$as_save_IFS
7080 lt_ac_max=0
7081 lt_ac_count=0
7082 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
7083 # along with /bin/sed that truncates output.
7084 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7085 test ! -f $lt_ac_sed && continue
7086 cat /dev/null > conftest.in
7087 lt_ac_count=0
7088 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
7089 # Check for GNU sed and select it if it is found.
7090 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7091 lt_cv_path_SED=$lt_ac_sed
7092 break
7093 fi
7094 while true; do
7095 cat conftest.in conftest.in >conftest.tmp
7096 mv conftest.tmp conftest.in
7097 cp conftest.in conftest.nl
7098 echo >>conftest.nl
7099 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7100 cmp -s conftest.out conftest.nl || break
7101 # 10000 chars as input seems more than enough
7102 test $lt_ac_count -gt 10 && break
7103 lt_ac_count=`expr $lt_ac_count + 1`
7104 if test $lt_ac_count -gt $lt_ac_max; then
7105 lt_ac_max=$lt_ac_count
7106 lt_cv_path_SED=$lt_ac_sed
7107 fi
7108 done
7109 done
7110 ])
7111 SED=$lt_cv_path_SED
7112 AC_SUBST([SED])
7113 AC_MSG_RESULT([$SED])
7114 ])#AC_PROG_SED
7115 ])#m4_ifndef
7116
7117 # Old name:
7118 AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
7119 dnl aclocal-1.4 backwards compatibility:
7120 dnl AC_DEFUN([LT_AC_PROG_SED], [])
7121
7122
7123 # _LT_CHECK_SHELL_FEATURES
7124 # ------------------------
7125 # Find out whether the shell is Bourne or XSI compatible,
7126 # or has some other useful features.
7127 m4_defun([_LT_CHECK_SHELL_FEATURES],
7128 [AC_MSG_CHECKING([whether the shell understands some XSI constructs])
7129 # Try some XSI features
7130 xsi_shell=no
7131 ( _lt_dummy="a/b/c"
7132 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7133 = c,a/b,, \
7134 && eval 'test $(( 1 + 1 )) -eq 2 \
7135 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7136 && xsi_shell=yes
7137 AC_MSG_RESULT([$xsi_shell])
7138 _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
7139
7140 AC_MSG_CHECKING([whether the shell understands "+="])
7141 lt_shell_append=no
7142 ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
7143 >/dev/null 2>&1 \
7144 && lt_shell_append=yes
7145 AC_MSG_RESULT([$lt_shell_append])
7146 _LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
7147
7148 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7149 lt_unset=unset
7150 else
7151 lt_unset=false
7152 fi
7153 _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
7154
7155 # test EBCDIC or ASCII
7156 case `echo X|tr X '\101'` in
7157 A) # ASCII based system
7158 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7159 lt_SP2NL='tr \040 \012'
7160 lt_NL2SP='tr \015\012 \040\040'
7161 ;;
7162 *) # EBCDIC based system
7163 lt_SP2NL='tr \100 \n'
7164 lt_NL2SP='tr \r\n \100\100'
7165 ;;
7166 esac
7167 _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
7168 _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
7169 ])# _LT_CHECK_SHELL_FEATURES
7170
7171
7172 # _LT_PROG_XSI_SHELLFNS
7173 # ---------------------
7174 # Bourne and XSI compatible variants of some useful shell functions.
7175 m4_defun([_LT_PROG_XSI_SHELLFNS],
7176 [case $xsi_shell in
7177 yes)
7178 cat << \_LT_EOF >> "$cfgfile"
7179
7180 # func_dirname file append nondir_replacement
7181 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
7182 # otherwise set result to NONDIR_REPLACEMENT.
7183 func_dirname ()
7184 {
7185 case ${1} in
7186 */*) func_dirname_result="${1%/*}${2}" ;;
7187 * ) func_dirname_result="${3}" ;;
7188 esac
7189 }
7190
7191 # func_basename file
7192 func_basename ()
7193 {
7194 func_basename_result="${1##*/}"
7195 }
7196
7197 # func_dirname_and_basename file append nondir_replacement
7198 # perform func_basename and func_dirname in a single function
7199 # call:
7200 # dirname: Compute the dirname of FILE. If nonempty,
7201 # add APPEND to the result, otherwise set result
7202 # to NONDIR_REPLACEMENT.
7203 # value returned in "$func_dirname_result"
7204 # basename: Compute filename of FILE.
7205 # value retuned in "$func_basename_result"
7206 # Implementation must be kept synchronized with func_dirname
7207 # and func_basename. For efficiency, we do not delegate to
7208 # those functions but instead duplicate the functionality here.
7209 func_dirname_and_basename ()
7210 {
7211 case ${1} in
7212 */*) func_dirname_result="${1%/*}${2}" ;;
7213 * ) func_dirname_result="${3}" ;;
7214 esac
7215 func_basename_result="${1##*/}"
7216 }
7217
7218 # func_stripname prefix suffix name
7219 # strip PREFIX and SUFFIX off of NAME.
7220 # PREFIX and SUFFIX must not contain globbing or regex special
7221 # characters, hashes, percent signs, but SUFFIX may contain a leading
7222 # dot (in which case that matches only a dot).
7223 func_stripname ()
7224 {
7225 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7226 # positional parameters, so assign one to ordinary parameter first.
7227 func_stripname_result=${3}
7228 func_stripname_result=${func_stripname_result#"${1}"}
7229 func_stripname_result=${func_stripname_result%"${2}"}
7230 }
7231
7232 # func_opt_split
7233 func_opt_split ()
7234 {
7235 func_opt_split_opt=${1%%=*}
7236 func_opt_split_arg=${1#*=}
7237 }
7238
7239 # func_lo2o object
7240 func_lo2o ()
7241 {
7242 case ${1} in
7243 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7244 *) func_lo2o_result=${1} ;;
7245 esac
7246 }
7247
7248 # func_xform libobj-or-source
7249 func_xform ()
7250 {
7251 func_xform_result=${1%.*}.lo
7252 }
7253
7254 # func_arith arithmetic-term...
7255 func_arith ()
7256 {
7257 func_arith_result=$(( $[*] ))
7258 }
7259
7260 # func_len string
7261 # STRING may not start with a hyphen.
7262 func_len ()
7263 {
7264 func_len_result=${#1}
7265 }
7266
7267 _LT_EOF
7268 ;;
7269 *) # Bourne compatible functions.
7270 cat << \_LT_EOF >> "$cfgfile"
7271
7272 # func_dirname file append nondir_replacement
7273 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
7274 # otherwise set result to NONDIR_REPLACEMENT.
7275 func_dirname ()
7276 {
7277 # Extract subdirectory from the argument.
7278 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
7279 if test "X$func_dirname_result" = "X${1}"; then
7280 func_dirname_result="${3}"
7281 else
7282 func_dirname_result="$func_dirname_result${2}"
7283 fi
7284 }
7285
7286 # func_basename file
7287 func_basename ()
7288 {
7289 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
7290 }
7291
7292 dnl func_dirname_and_basename
7293 dnl A portable version of this function is already defined in general.m4sh
7294 dnl so there is no need for it here.
7295
7296 # func_stripname prefix suffix name
7297 # strip PREFIX and SUFFIX off of NAME.
7298 # PREFIX and SUFFIX must not contain globbing or regex special
7299 # characters, hashes, percent signs, but SUFFIX may contain a leading
7300 # dot (in which case that matches only a dot).
7301 # func_strip_suffix prefix name
7302 func_stripname ()
7303 {
7304 case ${2} in
7305 .*) func_stripname_result=`$ECHO "X${3}" \
7306 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
7307 *) func_stripname_result=`$ECHO "X${3}" \
7308 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
7309 esac
7310 }
7311
7312 # sed scripts:
7313 my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
7314 my_sed_long_arg='1s/^-[[^=]]*=//'
7315
7316 # func_opt_split
7317 func_opt_split ()
7318 {
7319 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
7320 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
7321 }
7322
7323 # func_lo2o object
7324 func_lo2o ()
7325 {
7326 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
7327 }
7328
7329 # func_xform libobj-or-source
7330 func_xform ()
7331 {
7332 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
7333 }
7334
7335 # func_arith arithmetic-term...
7336 func_arith ()
7337 {
7338 func_arith_result=`expr "$[@]"`
7339 }
7340
7341 # func_len string
7342 # STRING may not start with a hyphen.
7343 func_len ()
7344 {
7345 func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
7346 }
7347
7348 _LT_EOF
7349 esac
7350
7351 case $lt_shell_append in
7352 yes)
7353 cat << \_LT_EOF >> "$cfgfile"
7354
7355 # func_append var value
7356 # Append VALUE to the end of shell variable VAR.
7357 func_append ()
7358 {
7359 eval "$[1]+=\$[2]"
7360 }
7361 _LT_EOF
7362 ;;
7363 *)
7364 cat << \_LT_EOF >> "$cfgfile"
7365
7366 # func_append var value
7367 # Append VALUE to the end of shell variable VAR.
7368 func_append ()
7369 {
7370 eval "$[1]=\$$[1]\$[2]"
7371 }
7372
7373 _LT_EOF
7374 ;;
7375 esac
7376 ])
+0
-368
m4/ltoptions.m4 less more
0 # Helper functions for option handling. -*- Autoconf -*-
1 #
2 # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
3 # Written by Gary V. Vaughan, 2004
4 #
5 # This file is free software; the Free Software Foundation gives
6 # unlimited permission to copy and/or distribute it, with or without
7 # modifications, as long as this notice is preserved.
8
9 # serial 6 ltoptions.m4
10
11 # This is to help aclocal find these macros, as it can't see m4_define.
12 AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
13
14
15 # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
16 # ------------------------------------------
17 m4_define([_LT_MANGLE_OPTION],
18 [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
19
20
21 # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
22 # ---------------------------------------
23 # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
24 # matching handler defined, dispatch to it. Other OPTION-NAMEs are
25 # saved as a flag.
26 m4_define([_LT_SET_OPTION],
27 [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
28 m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
29 _LT_MANGLE_DEFUN([$1], [$2]),
30 [m4_warning([Unknown $1 option `$2'])])[]dnl
31 ])
32
33
34 # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
35 # ------------------------------------------------------------
36 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
37 m4_define([_LT_IF_OPTION],
38 [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
39
40
41 # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
42 # -------------------------------------------------------
43 # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
44 # are set.
45 m4_define([_LT_UNLESS_OPTIONS],
46 [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
47 [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
48 [m4_define([$0_found])])])[]dnl
49 m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
50 ])[]dnl
51 ])
52
53
54 # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
55 # ----------------------------------------
56 # OPTION-LIST is a space-separated list of Libtool options associated
57 # with MACRO-NAME. If any OPTION has a matching handler declared with
58 # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
59 # the unknown option and exit.
60 m4_defun([_LT_SET_OPTIONS],
61 [# Set options
62 m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
63 [_LT_SET_OPTION([$1], _LT_Option)])
64
65 m4_if([$1],[LT_INIT],[
66 dnl
67 dnl Simply set some default values (i.e off) if boolean options were not
68 dnl specified:
69 _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
70 ])
71 _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
72 ])
73 dnl
74 dnl If no reference was made to various pairs of opposing options, then
75 dnl we run the default mode handler for the pair. For example, if neither
76 dnl `shared' nor `disable-shared' was passed, we enable building of shared
77 dnl archives by default:
78 _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
79 _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
80 _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
81 _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
82 [_LT_ENABLE_FAST_INSTALL])
83 ])
84 ])# _LT_SET_OPTIONS
85
86
87 ## --------------------------------- ##
88 ## Macros to handle LT_INIT options. ##
89 ## --------------------------------- ##
90
91 # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
92 # -----------------------------------------
93 m4_define([_LT_MANGLE_DEFUN],
94 [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
95
96
97 # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
98 # -----------------------------------------------
99 m4_define([LT_OPTION_DEFINE],
100 [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
101 ])# LT_OPTION_DEFINE
102
103
104 # dlopen
105 # ------
106 LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
107 ])
108
109 AU_DEFUN([AC_LIBTOOL_DLOPEN],
110 [_LT_SET_OPTION([LT_INIT], [dlopen])
111 AC_DIAGNOSE([obsolete],
112 [$0: Remove this warning and the call to _LT_SET_OPTION when you
113 put the `dlopen' option into LT_INIT's first parameter.])
114 ])
115
116 dnl aclocal-1.4 backwards compatibility:
117 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
118
119
120 # win32-dll
121 # ---------
122 # Declare package support for building win32 dll's.
123 LT_OPTION_DEFINE([LT_INIT], [win32-dll],
124 [enable_win32_dll=yes
125
126 case $host in
127 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
128 AC_CHECK_TOOL(AS, as, false)
129 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
130 AC_CHECK_TOOL(OBJDUMP, objdump, false)
131 ;;
132 esac
133
134 test -z "$AS" && AS=as
135 _LT_DECL([], [AS], [0], [Assembler program])dnl
136
137 test -z "$DLLTOOL" && DLLTOOL=dlltool
138 _LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
139
140 test -z "$OBJDUMP" && OBJDUMP=objdump
141 _LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
142 ])# win32-dll
143
144 AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
145 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
146 _LT_SET_OPTION([LT_INIT], [win32-dll])
147 AC_DIAGNOSE([obsolete],
148 [$0: Remove this warning and the call to _LT_SET_OPTION when you
149 put the `win32-dll' option into LT_INIT's first parameter.])
150 ])
151
152 dnl aclocal-1.4 backwards compatibility:
153 dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
154
155
156 # _LT_ENABLE_SHARED([DEFAULT])
157 # ----------------------------
158 # implement the --enable-shared flag, and supports the `shared' and
159 # `disable-shared' LT_INIT options.
160 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
161 m4_define([_LT_ENABLE_SHARED],
162 [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
163 AC_ARG_ENABLE([shared],
164 [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
165 [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
166 [p=${PACKAGE-default}
167 case $enableval in
168 yes) enable_shared=yes ;;
169 no) enable_shared=no ;;
170 *)
171 enable_shared=no
172 # Look at the argument we got. We use all the common list separators.
173 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
174 for pkg in $enableval; do
175 IFS="$lt_save_ifs"
176 if test "X$pkg" = "X$p"; then
177 enable_shared=yes
178 fi
179 done
180 IFS="$lt_save_ifs"
181 ;;
182 esac],
183 [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
184
185 _LT_DECL([build_libtool_libs], [enable_shared], [0],
186 [Whether or not to build shared libraries])
187 ])# _LT_ENABLE_SHARED
188
189 LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
190 LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
191
192 # Old names:
193 AC_DEFUN([AC_ENABLE_SHARED],
194 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
195 ])
196
197 AC_DEFUN([AC_DISABLE_SHARED],
198 [_LT_SET_OPTION([LT_INIT], [disable-shared])
199 ])
200
201 AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
202 AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
203
204 dnl aclocal-1.4 backwards compatibility:
205 dnl AC_DEFUN([AM_ENABLE_SHARED], [])
206 dnl AC_DEFUN([AM_DISABLE_SHARED], [])
207
208
209
210 # _LT_ENABLE_STATIC([DEFAULT])
211 # ----------------------------
212 # implement the --enable-static flag, and support the `static' and
213 # `disable-static' LT_INIT options.
214 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
215 m4_define([_LT_ENABLE_STATIC],
216 [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
217 AC_ARG_ENABLE([static],
218 [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
219 [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
220 [p=${PACKAGE-default}
221 case $enableval in
222 yes) enable_static=yes ;;
223 no) enable_static=no ;;
224 *)
225 enable_static=no
226 # Look at the argument we got. We use all the common list separators.
227 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
228 for pkg in $enableval; do
229 IFS="$lt_save_ifs"
230 if test "X$pkg" = "X$p"; then
231 enable_static=yes
232 fi
233 done
234 IFS="$lt_save_ifs"
235 ;;
236 esac],
237 [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
238
239 _LT_DECL([build_old_libs], [enable_static], [0],
240 [Whether or not to build static libraries])
241 ])# _LT_ENABLE_STATIC
242
243 LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
244 LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
245
246 # Old names:
247 AC_DEFUN([AC_ENABLE_STATIC],
248 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
249 ])
250
251 AC_DEFUN([AC_DISABLE_STATIC],
252 [_LT_SET_OPTION([LT_INIT], [disable-static])
253 ])
254
255 AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
256 AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
257
258 dnl aclocal-1.4 backwards compatibility:
259 dnl AC_DEFUN([AM_ENABLE_STATIC], [])
260 dnl AC_DEFUN([AM_DISABLE_STATIC], [])
261
262
263
264 # _LT_ENABLE_FAST_INSTALL([DEFAULT])
265 # ----------------------------------
266 # implement the --enable-fast-install flag, and support the `fast-install'
267 # and `disable-fast-install' LT_INIT options.
268 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
269 m4_define([_LT_ENABLE_FAST_INSTALL],
270 [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
271 AC_ARG_ENABLE([fast-install],
272 [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
273 [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
274 [p=${PACKAGE-default}
275 case $enableval in
276 yes) enable_fast_install=yes ;;
277 no) enable_fast_install=no ;;
278 *)
279 enable_fast_install=no
280 # Look at the argument we got. We use all the common list separators.
281 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
282 for pkg in $enableval; do
283 IFS="$lt_save_ifs"
284 if test "X$pkg" = "X$p"; then
285 enable_fast_install=yes
286 fi
287 done
288 IFS="$lt_save_ifs"
289 ;;
290 esac],
291 [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
292
293 _LT_DECL([fast_install], [enable_fast_install], [0],
294 [Whether or not to optimize for fast installation])dnl
295 ])# _LT_ENABLE_FAST_INSTALL
296
297 LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
298 LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
299
300 # Old names:
301 AU_DEFUN([AC_ENABLE_FAST_INSTALL],
302 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
303 AC_DIAGNOSE([obsolete],
304 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
305 the `fast-install' option into LT_INIT's first parameter.])
306 ])
307
308 AU_DEFUN([AC_DISABLE_FAST_INSTALL],
309 [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
310 AC_DIAGNOSE([obsolete],
311 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
312 the `disable-fast-install' option into LT_INIT's first parameter.])
313 ])
314
315 dnl aclocal-1.4 backwards compatibility:
316 dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
317 dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
318
319
320 # _LT_WITH_PIC([MODE])
321 # --------------------
322 # implement the --with-pic flag, and support the `pic-only' and `no-pic'
323 # LT_INIT options.
324 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
325 m4_define([_LT_WITH_PIC],
326 [AC_ARG_WITH([pic],
327 [AS_HELP_STRING([--with-pic],
328 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
329 [pic_mode="$withval"],
330 [pic_mode=default])
331
332 test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
333
334 _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
335 ])# _LT_WITH_PIC
336
337 LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
338 LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
339
340 # Old name:
341 AU_DEFUN([AC_LIBTOOL_PICMODE],
342 [_LT_SET_OPTION([LT_INIT], [pic-only])
343 AC_DIAGNOSE([obsolete],
344 [$0: Remove this warning and the call to _LT_SET_OPTION when you
345 put the `pic-only' option into LT_INIT's first parameter.])
346 ])
347
348 dnl aclocal-1.4 backwards compatibility:
349 dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
350
351 ## ----------------- ##
352 ## LTDL_INIT Options ##
353 ## ----------------- ##
354
355 m4_define([_LTDL_MODE], [])
356 LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
357 [m4_define([_LTDL_MODE], [nonrecursive])])
358 LT_OPTION_DEFINE([LTDL_INIT], [recursive],
359 [m4_define([_LTDL_MODE], [recursive])])
360 LT_OPTION_DEFINE([LTDL_INIT], [subproject],
361 [m4_define([_LTDL_MODE], [subproject])])
362
363 m4_define([_LTDL_TYPE], [])
364 LT_OPTION_DEFINE([LTDL_INIT], [installable],
365 [m4_define([_LTDL_TYPE], [installable])])
366 LT_OPTION_DEFINE([LTDL_INIT], [convenience],
367 [m4_define([_LTDL_TYPE], [convenience])])
+0
-123
m4/ltsugar.m4 less more
0 # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
1 #
2 # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
3 # Written by Gary V. Vaughan, 2004
4 #
5 # This file is free software; the Free Software Foundation gives
6 # unlimited permission to copy and/or distribute it, with or without
7 # modifications, as long as this notice is preserved.
8
9 # serial 6 ltsugar.m4
10
11 # This is to help aclocal find these macros, as it can't see m4_define.
12 AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
13
14
15 # lt_join(SEP, ARG1, [ARG2...])
16 # -----------------------------
17 # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
18 # associated separator.
19 # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
20 # versions in m4sugar had bugs.
21 m4_define([lt_join],
22 [m4_if([$#], [1], [],
23 [$#], [2], [[$2]],
24 [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
25 m4_define([_lt_join],
26 [m4_if([$#$2], [2], [],
27 [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
28
29
30 # lt_car(LIST)
31 # lt_cdr(LIST)
32 # ------------
33 # Manipulate m4 lists.
34 # These macros are necessary as long as will still need to support
35 # Autoconf-2.59 which quotes differently.
36 m4_define([lt_car], [[$1]])
37 m4_define([lt_cdr],
38 [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
39 [$#], 1, [],
40 [m4_dquote(m4_shift($@))])])
41 m4_define([lt_unquote], $1)
42
43
44 # lt_append(MACRO-NAME, STRING, [SEPARATOR])
45 # ------------------------------------------
46 # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
47 # Note that neither SEPARATOR nor STRING are expanded; they are appended
48 # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
49 # No SEPARATOR is output if MACRO-NAME was previously undefined (different
50 # than defined and empty).
51 #
52 # This macro is needed until we can rely on Autoconf 2.62, since earlier
53 # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
54 m4_define([lt_append],
55 [m4_define([$1],
56 m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
57
58
59
60 # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
61 # ----------------------------------------------------------
62 # Produce a SEP delimited list of all paired combinations of elements of
63 # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
64 # has the form PREFIXmINFIXSUFFIXn.
65 # Needed until we can rely on m4_combine added in Autoconf 2.62.
66 m4_define([lt_combine],
67 [m4_if(m4_eval([$# > 3]), [1],
68 [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
69 [[m4_foreach([_Lt_prefix], [$2],
70 [m4_foreach([_Lt_suffix],
71 ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
72 [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
73
74
75 # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
76 # -----------------------------------------------------------------------
77 # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
78 # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
79 m4_define([lt_if_append_uniq],
80 [m4_ifdef([$1],
81 [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
82 [lt_append([$1], [$2], [$3])$4],
83 [$5])],
84 [lt_append([$1], [$2], [$3])$4])])
85
86
87 # lt_dict_add(DICT, KEY, VALUE)
88 # -----------------------------
89 m4_define([lt_dict_add],
90 [m4_define([$1($2)], [$3])])
91
92
93 # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
94 # --------------------------------------------
95 m4_define([lt_dict_add_subkey],
96 [m4_define([$1($2:$3)], [$4])])
97
98
99 # lt_dict_fetch(DICT, KEY, [SUBKEY])
100 # ----------------------------------
101 m4_define([lt_dict_fetch],
102 [m4_ifval([$3],
103 m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
104 m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
105
106
107 # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
108 # -----------------------------------------------------------------
109 m4_define([lt_if_dict_fetch],
110 [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
111 [$5],
112 [$6])])
113
114
115 # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
116 # --------------------------------------------------------------
117 m4_define([lt_dict_filter],
118 [m4_if([$5], [], [],
119 [lt_join(m4_quote(m4_default([$4], [[, ]])),
120 lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
121 [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
122 ])
+0
-23
m4/ltversion.m4 less more
0 # ltversion.m4 -- version numbers -*- Autoconf -*-
1 #
2 # Copyright (C) 2004 Free Software Foundation, Inc.
3 # Written by Scott James Remnant, 2004
4 #
5 # This file is free software; the Free Software Foundation gives
6 # unlimited permission to copy and/or distribute it, with or without
7 # modifications, as long as this notice is preserved.
8
9 # Generated from ltversion.in.
10
11 # serial 3017 ltversion.m4
12 # This file is part of GNU Libtool
13
14 m4_define([LT_PACKAGE_VERSION], [2.2.6b])
15 m4_define([LT_PACKAGE_REVISION], [1.3017])
16
17 AC_DEFUN([LTVERSION_VERSION],
18 [macro_version='2.2.6b'
19 macro_revision='1.3017'
20 _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
21 _LT_DECL(, macro_revision, 0)
22 ])
+0
-92
m4/lt~obsolete.m4 less more
0 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
1 #
2 # Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
3 # Written by Scott James Remnant, 2004.
4 #
5 # This file is free software; the Free Software Foundation gives
6 # unlimited permission to copy and/or distribute it, with or without
7 # modifications, as long as this notice is preserved.
8
9 # serial 4 lt~obsolete.m4
10
11 # These exist entirely to fool aclocal when bootstrapping libtool.
12 #
13 # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
14 # which have later been changed to m4_define as they aren't part of the
15 # exported API, or moved to Autoconf or Automake where they belong.
16 #
17 # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
18 # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
19 # using a macro with the same name in our local m4/libtool.m4 it'll
20 # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
21 # and doesn't know about Autoconf macros at all.)
22 #
23 # So we provide this file, which has a silly filename so it's always
24 # included after everything else. This provides aclocal with the
25 # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
26 # because those macros already exist, or will be overwritten later.
27 # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
28 #
29 # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
30 # Yes, that means every name once taken will need to remain here until
31 # we give up compatibility with versions before 1.7, at which point
32 # we need to keep only those names which we still refer to.
33
34 # This is to help aclocal find these macros, as it can't see m4_define.
35 AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
36
37 m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
38 m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
39 m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
40 m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
41 m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
42 m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
43 m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
44 m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
45 m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
46 m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
47 m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
48 m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
49 m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
50 m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
51 m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
52 m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
53 m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
54 m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
55 m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
56 m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
57 m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
58 m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
59 m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
60 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
61 m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
62 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
63 m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
64 m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
65 m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
66 m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
67 m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
68 m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
69 m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
70 m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
71 m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
72 m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
73 m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
74 m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
75 m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
76 m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
77 m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
78 m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
79 m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
80 m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
81 m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
82 m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
83 m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
84 m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
85 m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
86 m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
87 m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
88 m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
89 m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
90 m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
91 m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
66
77 if(MSVC)
88 include_directories(${libmpc_SOURCE_DIR}/win32)
9 add_executable(mpc2sv8 mpc2sv8.c ${libmpc_SOURCE_DIR}/win32/attgetopt ${libmpc_SOURCE_DIR}/win32/basename ${libmpc_SOURCE_DIR}/win32/dirent)
9 add_executable(mpc2sv8 mpc2sv8.c ${libmpc_SOURCE_DIR}/win32/attgetopt.c ${libmpc_SOURCE_DIR}/win32/basename.c ${libmpc_SOURCE_DIR}/win32/dirent.c)
1010 endif(MSVC)
1111
1212 add_executable(mpc2sv8 mpc2sv8.c)
1313
1414 if(SHARED)
15 target_link_libraries(mpc2sv8 mpcdec_shared)
15 target_link_libraries(mpc2sv8 mpcdec)
1616 else(SHARED)
1717 target_link_libraries(mpc2sv8 mpcdec_static)
1818 endif(SHARED)
(No changes)
+0
-534
mpc2sv8/Makefile.in less more
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
6 # This Makefile.in is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 # PARTICULAR PURPOSE.
14
15 @SET_MAKE@
16
17 VPATH = @srcdir@
18 pkgdatadir = $(datadir)/@PACKAGE@
19 pkgincludedir = $(includedir)/@PACKAGE@
20 pkglibdir = $(libdir)/@PACKAGE@
21 pkglibexecdir = $(libexecdir)/@PACKAGE@
22 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
23 install_sh_DATA = $(install_sh) -c -m 644
24 install_sh_PROGRAM = $(install_sh) -c
25 install_sh_SCRIPT = $(install_sh) -c
26 INSTALL_HEADER = $(INSTALL_DATA)
27 transform = $(program_transform_name)
28 NORMAL_INSTALL = :
29 PRE_INSTALL = :
30 POST_INSTALL = :
31 NORMAL_UNINSTALL = :
32 PRE_UNINSTALL = :
33 POST_UNINSTALL = :
34 build_triplet = @build@
35 host_triplet = @host@
36 bin_PROGRAMS = mpc2sv8$(EXEEXT)
37 subdir = mpc2sv8
38 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
39 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
40 am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
42 $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
43 $(top_srcdir)/configure.in
44 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
45 $(ACLOCAL_M4)
46 mkinstalldirs = $(install_sh) -d
47 CONFIG_HEADER = $(top_builddir)/include/config.h
48 CONFIG_CLEAN_FILES =
49 CONFIG_CLEAN_VPATH_FILES =
50 am__installdirs = "$(DESTDIR)$(bindir)"
51 PROGRAMS = $(bin_PROGRAMS)
52 am__objects_1 = crc32.$(OBJEXT)
53 am_mpc2sv8_OBJECTS = mpc2sv8.$(OBJEXT) $(am__objects_1)
54 mpc2sv8_OBJECTS = $(am_mpc2sv8_OBJECTS)
55 mpc2sv8_DEPENDENCIES = $(top_builddir)/libmpcdec/libmpcdec.la \
56 $(top_builddir)/libmpcenc/libmpcenc.a
57 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include
58 depcomp = $(SHELL) $(top_srcdir)/config/depcomp
59 am__depfiles_maybe = depfiles
60 am__mv = mv -f
61 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
62 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
63 LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
64 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
65 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
66 CCLD = $(CC)
67 LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
68 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
69 $(LDFLAGS) -o $@
70 SOURCES = $(mpc2sv8_SOURCES)
71 DIST_SOURCES = $(mpc2sv8_SOURCES)
72 ETAGS = etags
73 CTAGS = ctags
74 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
75 ACLOCAL = @ACLOCAL@
76 AMTAR = @AMTAR@
77 AR = @AR@
78 AS = @AS@
79 AUTOCONF = @AUTOCONF@
80 AUTOHEADER = @AUTOHEADER@
81 AUTOMAKE = @AUTOMAKE@
82 AWK = @AWK@
83 CC = @CC@
84 CCDEPMODE = @CCDEPMODE@
85 CFLAGS = @CFLAGS@
86 CPP = @CPP@
87 CPPFLAGS = @CPPFLAGS@
88 CYGPATH_W = @CYGPATH_W@
89 DEFS = @DEFS@
90 DEPDIR = @DEPDIR@
91 DLLTOOL = @DLLTOOL@
92 DSYMUTIL = @DSYMUTIL@
93 DUMPBIN = @DUMPBIN@
94 ECHO_C = @ECHO_C@
95 ECHO_N = @ECHO_N@
96 ECHO_T = @ECHO_T@
97 EGREP = @EGREP@
98 EXEEXT = @EXEEXT@
99 EXTRALIBS = @EXTRALIBS@
100 FGREP = @FGREP@
101 GREP = @GREP@
102 INSTALL = @INSTALL@
103 INSTALL_DATA = @INSTALL_DATA@
104 INSTALL_PROGRAM = @INSTALL_PROGRAM@
105 INSTALL_SCRIPT = @INSTALL_SCRIPT@
106 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
107 LD = @LD@
108 LDFLAGS = @LDFLAGS@
109 LIBOBJS = @LIBOBJS@
110 LIBS = @LIBS@
111 LIBTOOL = @LIBTOOL@
112 LIPO = @LIPO@
113 LN_S = @LN_S@
114 LTLIBOBJS = @LTLIBOBJS@
115 MAKEINFO = @MAKEINFO@
116 MKDIR_P = @MKDIR_P@
117 NM = @NM@
118 NMEDIT = @NMEDIT@
119 OBJDUMP = @OBJDUMP@
120 OBJEXT = @OBJEXT@
121 OTOOL = @OTOOL@
122 OTOOL64 = @OTOOL64@
123 PACKAGE = @PACKAGE@
124 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
125 PACKAGE_NAME = @PACKAGE_NAME@
126 PACKAGE_STRING = @PACKAGE_STRING@
127 PACKAGE_TARNAME = @PACKAGE_TARNAME@
128 PACKAGE_URL = @PACKAGE_URL@
129 PACKAGE_VERSION = @PACKAGE_VERSION@
130 PATH_SEPARATOR = @PATH_SEPARATOR@
131 RANLIB = @RANLIB@
132 SED = @SED@
133 SET_MAKE = @SET_MAKE@
134 SHELL = @SHELL@
135 STRIP = @STRIP@
136 VERSION = @VERSION@
137 abs_builddir = @abs_builddir@
138 abs_srcdir = @abs_srcdir@
139 abs_top_builddir = @abs_top_builddir@
140 abs_top_srcdir = @abs_top_srcdir@
141 ac_ct_CC = @ac_ct_CC@
142 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
143 am__include = @am__include@
144 am__leading_dot = @am__leading_dot@
145 am__quote = @am__quote@
146 am__tar = @am__tar@
147 am__untar = @am__untar@
148 bindir = @bindir@
149 build = @build@
150 build_alias = @build_alias@
151 build_cpu = @build_cpu@
152 build_os = @build_os@
153 build_vendor = @build_vendor@
154 builddir = @builddir@
155 datadir = @datadir@
156 datarootdir = @datarootdir@
157 docdir = @docdir@
158 dvidir = @dvidir@
159 exec_prefix = @exec_prefix@
160 host = @host@
161 host_alias = @host_alias@
162 host_cpu = @host_cpu@
163 host_os = @host_os@
164 host_vendor = @host_vendor@
165 htmldir = @htmldir@
166 includedir = @includedir@
167 infodir = @infodir@
168 install_sh = @install_sh@
169 libdir = @libdir@
170 libexecdir = @libexecdir@
171 localedir = @localedir@
172 localstatedir = @localstatedir@
173 lt_ECHO = @lt_ECHO@
174 mandir = @mandir@
175 mkdir_p = @mkdir_p@
176 oldincludedir = @oldincludedir@
177 pdfdir = @pdfdir@
178 prefix = @prefix@
179 program_transform_name = @program_transform_name@
180 psdir = @psdir@
181 sbindir = @sbindir@
182 sharedstatedir = @sharedstatedir@
183 srcdir = @srcdir@
184 sysconfdir = @sysconfdir@
185 target_alias = @target_alias@
186 top_build_prefix = @top_build_prefix@
187 top_builddir = @top_builddir@
188 top_srcdir = @top_srcdir@
189 EXTRA_DIST = CMakeLists.txt
190 AM_CPPFLAGS = -I$(top_srcdir)/include
191 @HAVE_VISIBILITY_TRUE@AM_CFLAGS = -fvisibility=hidden
192 common_sources = ../common/crc32.c
193 METASOURCES = AUTO
194 mpc2sv8_SOURCES = mpc2sv8.c $(common_sources)
195 mpc2sv8_LDADD = -lm \
196 $(top_builddir)/libmpcdec/libmpcdec.la \
197 $(top_builddir)/libmpcenc/libmpcenc.a
198
199 all: all-am
200
201 .SUFFIXES:
202 .SUFFIXES: .c .lo .o .obj
203 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
204 @for dep in $?; do \
205 case '$(am__configure_deps)' in \
206 *$$dep*) \
207 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
208 && { if test -f $@; then exit 0; else break; fi; }; \
209 exit 1;; \
210 esac; \
211 done; \
212 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu mpc2sv8/Makefile'; \
213 $(am__cd) $(top_srcdir) && \
214 $(AUTOMAKE) --gnu mpc2sv8/Makefile
215 .PRECIOUS: Makefile
216 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
217 @case '$?' in \
218 *config.status*) \
219 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
220 *) \
221 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
222 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
223 esac;
224
225 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
226 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
227
228 $(top_srcdir)/configure: $(am__configure_deps)
229 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
230 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
231 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
232 $(am__aclocal_m4_deps):
233 install-binPROGRAMS: $(bin_PROGRAMS)
234 @$(NORMAL_INSTALL)
235 test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
236 @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
237 for p in $$list; do echo "$$p $$p"; done | \
238 sed 's/$(EXEEXT)$$//' | \
239 while read p p1; do if test -f $$p || test -f $$p1; \
240 then echo "$$p"; echo "$$p"; else :; fi; \
241 done | \
242 sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \
243 -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
244 sed 'N;N;N;s,\n, ,g' | \
245 $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
246 { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
247 if ($$2 == $$4) files[d] = files[d] " " $$1; \
248 else { print "f", $$3 "/" $$4, $$1; } } \
249 END { for (d in files) print "f", d, files[d] }' | \
250 while read type dir files; do \
251 if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
252 test -z "$$files" || { \
253 echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \
254 $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
255 } \
256 ; done
257
258 uninstall-binPROGRAMS:
259 @$(NORMAL_UNINSTALL)
260 @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
261 files=`for p in $$list; do echo "$$p"; done | \
262 sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
263 -e 's/$$/$(EXEEXT)/' `; \
264 test -n "$$list" || exit 0; \
265 echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
266 cd "$(DESTDIR)$(bindir)" && rm -f $$files
267
268 clean-binPROGRAMS:
269 @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \
270 echo " rm -f" $$list; \
271 rm -f $$list || exit $$?; \
272 test -n "$(EXEEXT)" || exit 0; \
273 list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
274 echo " rm -f" $$list; \
275 rm -f $$list
276 mpc2sv8$(EXEEXT): $(mpc2sv8_OBJECTS) $(mpc2sv8_DEPENDENCIES)
277 @rm -f mpc2sv8$(EXEEXT)
278 $(LINK) $(mpc2sv8_OBJECTS) $(mpc2sv8_LDADD) $(LIBS)
279
280 mostlyclean-compile:
281 -rm -f *.$(OBJEXT)
282
283 distclean-compile:
284 -rm -f *.tab.c
285
286 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/crc32.Po@am__quote@
287 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mpc2sv8.Po@am__quote@
288
289 .c.o:
290 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
291 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
292 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
293 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
294 @am__fastdepCC_FALSE@ $(COMPILE) -c $<
295
296 .c.obj:
297 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
298 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
299 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
300 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
301 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
302
303 .c.lo:
304 @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
305 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
306 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
307 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
308 @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
309
310 crc32.o: ../common/crc32.c
311 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT crc32.o -MD -MP -MF $(DEPDIR)/crc32.Tpo -c -o crc32.o `test -f '../common/crc32.c' || echo '$(srcdir)/'`../common/crc32.c
312 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/crc32.Tpo $(DEPDIR)/crc32.Po
313 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../common/crc32.c' object='crc32.o' libtool=no @AMDEPBACKSLASH@
314 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
315 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o crc32.o `test -f '../common/crc32.c' || echo '$(srcdir)/'`../common/crc32.c
316
317 crc32.obj: ../common/crc32.c
318 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT crc32.obj -MD -MP -MF $(DEPDIR)/crc32.Tpo -c -o crc32.obj `if test -f '../common/crc32.c'; then $(CYGPATH_W) '../common/crc32.c'; else $(CYGPATH_W) '$(srcdir)/../common/crc32.c'; fi`
319 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/crc32.Tpo $(DEPDIR)/crc32.Po
320 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../common/crc32.c' object='crc32.obj' libtool=no @AMDEPBACKSLASH@
321 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
322 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o crc32.obj `if test -f '../common/crc32.c'; then $(CYGPATH_W) '../common/crc32.c'; else $(CYGPATH_W) '$(srcdir)/../common/crc32.c'; fi`
323
324 mostlyclean-libtool:
325 -rm -f *.lo
326
327 clean-libtool:
328 -rm -rf .libs _libs
329
330 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
331 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
332 unique=`for i in $$list; do \
333 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
334 done | \
335 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
336 END { if (nonempty) { for (i in files) print i; }; }'`; \
337 mkid -fID $$unique
338 tags: TAGS
339
340 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
341 $(TAGS_FILES) $(LISP)
342 set x; \
343 here=`pwd`; \
344 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
345 unique=`for i in $$list; do \
346 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
347 done | \
348 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
349 END { if (nonempty) { for (i in files) print i; }; }'`; \
350 shift; \
351 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
352 test -n "$$unique" || unique=$$empty_fix; \
353 if test $$# -gt 0; then \
354 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
355 "$$@" $$unique; \
356 else \
357 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
358 $$unique; \
359 fi; \
360 fi
361 ctags: CTAGS
362 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
363 $(TAGS_FILES) $(LISP)
364 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
365 unique=`for i in $$list; do \
366 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
367 done | \
368 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
369 END { if (nonempty) { for (i in files) print i; }; }'`; \
370 test -z "$(CTAGS_ARGS)$$unique" \
371 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
372 $$unique
373
374 GTAGS:
375 here=`$(am__cd) $(top_builddir) && pwd` \
376 && $(am__cd) $(top_srcdir) \
377 && gtags -i $(GTAGS_ARGS) "$$here"
378
379 distclean-tags:
380 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
381
382 distdir: $(DISTFILES)
383 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
384 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
385 list='$(DISTFILES)'; \
386 dist_files=`for file in $$list; do echo $$file; done | \
387 sed -e "s|^$$srcdirstrip/||;t" \
388 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
389 case $$dist_files in \
390 */*) $(MKDIR_P) `echo "$$dist_files" | \
391 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
392 sort -u` ;; \
393 esac; \
394 for file in $$dist_files; do \
395 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
396 if test -d $$d/$$file; then \
397 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
398 if test -d "$(distdir)/$$file"; then \
399 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
400 fi; \
401 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
402 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
403 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
404 fi; \
405 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
406 else \
407 test -f "$(distdir)/$$file" \
408 || cp -p $$d/$$file "$(distdir)/$$file" \
409 || exit 1; \
410 fi; \
411 done
412 check-am: all-am
413 check: check-am
414 all-am: Makefile $(PROGRAMS)
415 installdirs:
416 for dir in "$(DESTDIR)$(bindir)"; do \
417 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
418 done
419 install: install-am
420 install-exec: install-exec-am
421 install-data: install-data-am
422 uninstall: uninstall-am
423
424 install-am: all-am
425 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
426
427 installcheck: installcheck-am
428 install-strip:
429 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
430 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
431 `test -z '$(STRIP)' || \
432 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
433 mostlyclean-generic:
434
435 clean-generic:
436
437 distclean-generic:
438 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
439 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
440
441 maintainer-clean-generic:
442 @echo "This command is intended for maintainers to use"
443 @echo "it deletes files that may require special tools to rebuild."
444 clean: clean-am
445
446 clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am
447
448 distclean: distclean-am
449 -rm -rf ./$(DEPDIR)
450 -rm -f Makefile
451 distclean-am: clean-am distclean-compile distclean-generic \
452 distclean-tags
453
454 dvi: dvi-am
455
456 dvi-am:
457
458 html: html-am
459
460 html-am:
461
462 info: info-am
463
464 info-am:
465
466 install-data-am:
467
468 install-dvi: install-dvi-am
469
470 install-dvi-am:
471
472 install-exec-am: install-binPROGRAMS
473
474 install-html: install-html-am
475
476 install-html-am:
477
478 install-info: install-info-am
479
480 install-info-am:
481
482 install-man:
483
484 install-pdf: install-pdf-am
485
486 install-pdf-am:
487
488 install-ps: install-ps-am
489
490 install-ps-am:
491
492 installcheck-am:
493
494 maintainer-clean: maintainer-clean-am
495 -rm -rf ./$(DEPDIR)
496 -rm -f Makefile
497 maintainer-clean-am: distclean-am maintainer-clean-generic
498
499 mostlyclean: mostlyclean-am
500
501 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
502 mostlyclean-libtool
503
504 pdf: pdf-am
505
506 pdf-am:
507
508 ps: ps-am
509
510 ps-am:
511
512 uninstall-am: uninstall-binPROGRAMS
513
514 .MAKE: install-am install-strip
515
516 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
517 clean-generic clean-libtool ctags distclean distclean-compile \
518 distclean-generic distclean-libtool distclean-tags distdir dvi \
519 dvi-am html html-am info info-am install install-am \
520 install-binPROGRAMS install-data install-data-am install-dvi \
521 install-dvi-am install-exec install-exec-am install-html \
522 install-html-am install-info install-info-am install-man \
523 install-pdf install-pdf-am install-ps install-ps-am \
524 install-strip installcheck installcheck-am installdirs \
525 maintainer-clean maintainer-clean-generic mostlyclean \
526 mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
527 pdf pdf-am ps ps-am tags uninstall uninstall-am \
528 uninstall-binPROGRAMS
529
530
531 # Tell versions [3.59,3.63) of GNU make to not export all variables.
532 # Otherwise a system limit (for SysV at least) may be exceeded.
533 .NOEXPORT:
135135 size_t tmp_size = fread(buf, 1, mini(TMP_BUF_SIZE, r_size), in_file);
136136 if (fwrite(buf, 1, tmp_size, e.outputFile) != tmp_size) {
137137 fprintf(stderr, "Error writing to target file : \"%s\"\n", sv8file);
138 err = MPC_STATUS_FILE;
138 err = MPC_STATUS_FAIL;
139139 goto IN_FILE_ERR;
140140 }
141141 r_size -= tmp_size;
1111 link_directories(${libmpc_BINARY_DIR}/libmpcdec)
1212 link_directories(${libmpc_BINARY_DIR}/libmpcenc)
1313
14 add_executable(mpcchap mpcchap dictionary iniparser ${libmpc_SOURCE_DIR}/common/tags)
14 add_executable(mpcchap mpcchap.c dictionary.c iniparser.c ${libmpc_SOURCE_DIR}/common/tags.c)
1515
1616 if(SHARED)
17 target_link_libraries(mpcchap mpcdec_shared)
17 target_link_libraries(mpcchap mpcdec)
1818 else(SHARED)
1919 target_link_libraries(mpcchap mpcdec_static)
2020 endif(SHARED)
(No changes)
+0
-554
mpcchap/Makefile.in less more
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
6 # This Makefile.in is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 # PARTICULAR PURPOSE.
14
15 @SET_MAKE@
16
17 VPATH = @srcdir@
18 pkgdatadir = $(datadir)/@PACKAGE@
19 pkgincludedir = $(includedir)/@PACKAGE@
20 pkglibdir = $(libdir)/@PACKAGE@
21 pkglibexecdir = $(libexecdir)/@PACKAGE@
22 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
23 install_sh_DATA = $(install_sh) -c -m 644
24 install_sh_PROGRAM = $(install_sh) -c
25 install_sh_SCRIPT = $(install_sh) -c
26 INSTALL_HEADER = $(INSTALL_DATA)
27 transform = $(program_transform_name)
28 NORMAL_INSTALL = :
29 PRE_INSTALL = :
30 POST_INSTALL = :
31 NORMAL_UNINSTALL = :
32 PRE_UNINSTALL = :
33 POST_UNINSTALL = :
34 build_triplet = @build@
35 host_triplet = @host@
36 bin_PROGRAMS = mpcchap$(EXEEXT)
37 subdir = mpcchap
38 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
39 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
40 am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
42 $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
43 $(top_srcdir)/configure.in
44 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
45 $(ACLOCAL_M4)
46 mkinstalldirs = $(install_sh) -d
47 CONFIG_HEADER = $(top_builddir)/include/config.h
48 CONFIG_CLEAN_FILES =
49 CONFIG_CLEAN_VPATH_FILES =
50 am__installdirs = "$(DESTDIR)$(bindir)"
51 PROGRAMS = $(bin_PROGRAMS)
52 am__objects_1 = tags.$(OBJEXT) crc32.$(OBJEXT)
53 am_mpcchap_OBJECTS = dictionary.$(OBJEXT) iniparser.$(OBJEXT) \
54 mpcchap.$(OBJEXT) $(am__objects_1)
55 mpcchap_OBJECTS = $(am_mpcchap_OBJECTS)
56 mpcchap_DEPENDENCIES = $(top_builddir)/libmpcdec/libmpcdec.la \
57 $(top_builddir)/libmpcenc/libmpcenc.a
58 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include
59 depcomp = $(SHELL) $(top_srcdir)/config/depcomp
60 am__depfiles_maybe = depfiles
61 am__mv = mv -f
62 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
63 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
64 LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
65 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
66 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
67 CCLD = $(CC)
68 LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
69 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
70 $(LDFLAGS) -o $@
71 SOURCES = $(mpcchap_SOURCES)
72 DIST_SOURCES = $(mpcchap_SOURCES)
73 ETAGS = etags
74 CTAGS = ctags
75 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
76 ACLOCAL = @ACLOCAL@
77 AMTAR = @AMTAR@
78 AR = @AR@
79 AS = @AS@
80 AUTOCONF = @AUTOCONF@
81 AUTOHEADER = @AUTOHEADER@
82 AUTOMAKE = @AUTOMAKE@
83 AWK = @AWK@
84 CC = @CC@
85 CCDEPMODE = @CCDEPMODE@
86 CFLAGS = @CFLAGS@
87 CPP = @CPP@
88 CPPFLAGS = @CPPFLAGS@
89 CYGPATH_W = @CYGPATH_W@
90 DEFS = @DEFS@
91 DEPDIR = @DEPDIR@
92 DLLTOOL = @DLLTOOL@
93 DSYMUTIL = @DSYMUTIL@
94 DUMPBIN = @DUMPBIN@
95 ECHO_C = @ECHO_C@
96 ECHO_N = @ECHO_N@
97 ECHO_T = @ECHO_T@
98 EGREP = @EGREP@
99 EXEEXT = @EXEEXT@
100 EXTRALIBS = @EXTRALIBS@
101 FGREP = @FGREP@
102 GREP = @GREP@
103 INSTALL = @INSTALL@
104 INSTALL_DATA = @INSTALL_DATA@
105 INSTALL_PROGRAM = @INSTALL_PROGRAM@
106 INSTALL_SCRIPT = @INSTALL_SCRIPT@
107 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
108 LD = @LD@
109 LDFLAGS = @LDFLAGS@
110 LIBOBJS = @LIBOBJS@
111 LIBS = @LIBS@
112 LIBTOOL = @LIBTOOL@
113 LIPO = @LIPO@
114 LN_S = @LN_S@
115 LTLIBOBJS = @LTLIBOBJS@
116 MAKEINFO = @MAKEINFO@
117 MKDIR_P = @MKDIR_P@
118 NM = @NM@
119 NMEDIT = @NMEDIT@
120 OBJDUMP = @OBJDUMP@
121 OBJEXT = @OBJEXT@
122 OTOOL = @OTOOL@
123 OTOOL64 = @OTOOL64@
124 PACKAGE = @PACKAGE@
125 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
126 PACKAGE_NAME = @PACKAGE_NAME@
127 PACKAGE_STRING = @PACKAGE_STRING@
128 PACKAGE_TARNAME = @PACKAGE_TARNAME@
129 PACKAGE_URL = @PACKAGE_URL@
130 PACKAGE_VERSION = @PACKAGE_VERSION@
131 PATH_SEPARATOR = @PATH_SEPARATOR@
132 RANLIB = @RANLIB@
133 SED = @SED@
134 SET_MAKE = @SET_MAKE@
135 SHELL = @SHELL@
136 STRIP = @STRIP@
137 VERSION = @VERSION@
138 abs_builddir = @abs_builddir@
139 abs_srcdir = @abs_srcdir@
140 abs_top_builddir = @abs_top_builddir@
141 abs_top_srcdir = @abs_top_srcdir@
142 ac_ct_CC = @ac_ct_CC@
143 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
144 am__include = @am__include@
145 am__leading_dot = @am__leading_dot@
146 am__quote = @am__quote@
147 am__tar = @am__tar@
148 am__untar = @am__untar@
149 bindir = @bindir@
150 build = @build@
151 build_alias = @build_alias@
152 build_cpu = @build_cpu@
153 build_os = @build_os@
154 build_vendor = @build_vendor@
155 builddir = @builddir@
156 datadir = @datadir@
157 datarootdir = @datarootdir@
158 docdir = @docdir@
159 dvidir = @dvidir@
160 exec_prefix = @exec_prefix@
161 host = @host@
162 host_alias = @host_alias@
163 host_cpu = @host_cpu@
164 host_os = @host_os@
165 host_vendor = @host_vendor@
166 htmldir = @htmldir@
167 includedir = @includedir@
168 infodir = @infodir@
169 install_sh = @install_sh@
170 libdir = @libdir@
171 libexecdir = @libexecdir@
172 localedir = @localedir@
173 localstatedir = @localstatedir@
174 lt_ECHO = @lt_ECHO@
175 mandir = @mandir@
176 mkdir_p = @mkdir_p@
177 oldincludedir = @oldincludedir@
178 pdfdir = @pdfdir@
179 prefix = @prefix@
180 program_transform_name = @program_transform_name@
181 psdir = @psdir@
182 sbindir = @sbindir@
183 sharedstatedir = @sharedstatedir@
184 srcdir = @srcdir@
185 sysconfdir = @sysconfdir@
186 target_alias = @target_alias@
187 top_build_prefix = @top_build_prefix@
188 top_builddir = @top_builddir@
189 top_srcdir = @top_srcdir@
190 EXTRA_DIST = CMakeLists.txt
191 common_sources = ../common/tags.c ../common/crc32.c
192 AM_CPPFLAGS = -I$(top_srcdir)/include
193 @HAVE_VISIBILITY_TRUE@AM_CFLAGS = -fvisibility=hidden
194 METASOURCES = AUTO
195 mpcchap_SOURCES = dictionary.c iniparser.c mpcchap.c $(common_sources) \
196 dictionary.h iniparser.h
197
198 mpcchap_LDADD = $(top_builddir)/libmpcdec/libmpcdec.la \
199 $(top_builddir)/libmpcenc/libmpcenc.a \
200 -lm -lcuefile
201
202 all: all-am
203
204 .SUFFIXES:
205 .SUFFIXES: .c .lo .o .obj
206 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
207 @for dep in $?; do \
208 case '$(am__configure_deps)' in \
209 *$$dep*) \
210 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
211 && { if test -f $@; then exit 0; else break; fi; }; \
212 exit 1;; \
213 esac; \
214 done; \
215 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu mpcchap/Makefile'; \
216 $(am__cd) $(top_srcdir) && \
217 $(AUTOMAKE) --gnu mpcchap/Makefile
218 .PRECIOUS: Makefile
219 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
220 @case '$?' in \
221 *config.status*) \
222 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
223 *) \
224 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
225 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
226 esac;
227
228 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
229 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
230
231 $(top_srcdir)/configure: $(am__configure_deps)
232 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
233 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
234 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
235 $(am__aclocal_m4_deps):
236 install-binPROGRAMS: $(bin_PROGRAMS)
237 @$(NORMAL_INSTALL)
238 test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
239 @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
240 for p in $$list; do echo "$$p $$p"; done | \
241 sed 's/$(EXEEXT)$$//' | \
242 while read p p1; do if test -f $$p || test -f $$p1; \
243 then echo "$$p"; echo "$$p"; else :; fi; \
244 done | \
245 sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \
246 -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
247 sed 'N;N;N;s,\n, ,g' | \
248 $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
249 { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
250 if ($$2 == $$4) files[d] = files[d] " " $$1; \
251 else { print "f", $$3 "/" $$4, $$1; } } \
252 END { for (d in files) print "f", d, files[d] }' | \
253 while read type dir files; do \
254 if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
255 test -z "$$files" || { \
256 echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \
257 $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
258 } \
259 ; done
260
261 uninstall-binPROGRAMS:
262 @$(NORMAL_UNINSTALL)
263 @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
264 files=`for p in $$list; do echo "$$p"; done | \
265 sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
266 -e 's/$$/$(EXEEXT)/' `; \
267 test -n "$$list" || exit 0; \
268 echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
269 cd "$(DESTDIR)$(bindir)" && rm -f $$files
270
271 clean-binPROGRAMS:
272 @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \
273 echo " rm -f" $$list; \
274 rm -f $$list || exit $$?; \
275 test -n "$(EXEEXT)" || exit 0; \
276 list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
277 echo " rm -f" $$list; \
278 rm -f $$list
279 mpcchap$(EXEEXT): $(mpcchap_OBJECTS) $(mpcchap_DEPENDENCIES)
280 @rm -f mpcchap$(EXEEXT)
281 $(LINK) $(mpcchap_OBJECTS) $(mpcchap_LDADD) $(LIBS)
282
283 mostlyclean-compile:
284 -rm -f *.$(OBJEXT)
285
286 distclean-compile:
287 -rm -f *.tab.c
288
289 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/crc32.Po@am__quote@
290 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dictionary.Po@am__quote@
291 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/iniparser.Po@am__quote@
292 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mpcchap.Po@am__quote@
293 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tags.Po@am__quote@
294
295 .c.o:
296 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
297 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
298 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
299 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
300 @am__fastdepCC_FALSE@ $(COMPILE) -c $<
301
302 .c.obj:
303 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
304 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
305 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
306 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
307 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
308
309 .c.lo:
310 @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
311 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
312 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
313 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
314 @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
315
316 tags.o: ../common/tags.c
317 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT tags.o -MD -MP -MF $(DEPDIR)/tags.Tpo -c -o tags.o `test -f '../common/tags.c' || echo '$(srcdir)/'`../common/tags.c
318 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/tags.Tpo $(DEPDIR)/tags.Po
319 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../common/tags.c' object='tags.o' libtool=no @AMDEPBACKSLASH@
320 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
321 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o tags.o `test -f '../common/tags.c' || echo '$(srcdir)/'`../common/tags.c
322
323 tags.obj: ../common/tags.c
324 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT tags.obj -MD -MP -MF $(DEPDIR)/tags.Tpo -c -o tags.obj `if test -f '../common/tags.c'; then $(CYGPATH_W) '../common/tags.c'; else $(CYGPATH_W) '$(srcdir)/../common/tags.c'; fi`
325 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/tags.Tpo $(DEPDIR)/tags.Po
326 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../common/tags.c' object='tags.obj' libtool=no @AMDEPBACKSLASH@
327 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
328 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o tags.obj `if test -f '../common/tags.c'; then $(CYGPATH_W) '../common/tags.c'; else $(CYGPATH_W) '$(srcdir)/../common/tags.c'; fi`
329
330 crc32.o: ../common/crc32.c
331 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT crc32.o -MD -MP -MF $(DEPDIR)/crc32.Tpo -c -o crc32.o `test -f '../common/crc32.c' || echo '$(srcdir)/'`../common/crc32.c
332 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/crc32.Tpo $(DEPDIR)/crc32.Po
333 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../common/crc32.c' object='crc32.o' libtool=no @AMDEPBACKSLASH@
334 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
335 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o crc32.o `test -f '../common/crc32.c' || echo '$(srcdir)/'`../common/crc32.c
336
337 crc32.obj: ../common/crc32.c
338 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT crc32.obj -MD -MP -MF $(DEPDIR)/crc32.Tpo -c -o crc32.obj `if test -f '../common/crc32.c'; then $(CYGPATH_W) '../common/crc32.c'; else $(CYGPATH_W) '$(srcdir)/../common/crc32.c'; fi`
339 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/crc32.Tpo $(DEPDIR)/crc32.Po
340 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../common/crc32.c' object='crc32.obj' libtool=no @AMDEPBACKSLASH@
341 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
342 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o crc32.obj `if test -f '../common/crc32.c'; then $(CYGPATH_W) '../common/crc32.c'; else $(CYGPATH_W) '$(srcdir)/../common/crc32.c'; fi`
343
344 mostlyclean-libtool:
345 -rm -f *.lo
346
347 clean-libtool:
348 -rm -rf .libs _libs
349
350 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
351 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
352 unique=`for i in $$list; do \
353 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
354 done | \
355 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
356 END { if (nonempty) { for (i in files) print i; }; }'`; \
357 mkid -fID $$unique
358 tags: TAGS
359
360 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
361 $(TAGS_FILES) $(LISP)
362 set x; \
363 here=`pwd`; \
364 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
365 unique=`for i in $$list; do \
366 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
367 done | \
368 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
369 END { if (nonempty) { for (i in files) print i; }; }'`; \
370 shift; \
371 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
372 test -n "$$unique" || unique=$$empty_fix; \
373 if test $$# -gt 0; then \
374 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
375 "$$@" $$unique; \
376 else \
377 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
378 $$unique; \
379 fi; \
380 fi
381 ctags: CTAGS
382 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
383 $(TAGS_FILES) $(LISP)
384 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
385 unique=`for i in $$list; do \
386 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
387 done | \
388 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
389 END { if (nonempty) { for (i in files) print i; }; }'`; \
390 test -z "$(CTAGS_ARGS)$$unique" \
391 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
392 $$unique
393
394 GTAGS:
395 here=`$(am__cd) $(top_builddir) && pwd` \
396 && $(am__cd) $(top_srcdir) \
397 && gtags -i $(GTAGS_ARGS) "$$here"
398
399 distclean-tags:
400 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
401
402 distdir: $(DISTFILES)
403 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
404 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
405 list='$(DISTFILES)'; \
406 dist_files=`for file in $$list; do echo $$file; done | \
407 sed -e "s|^$$srcdirstrip/||;t" \
408 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
409 case $$dist_files in \
410 */*) $(MKDIR_P) `echo "$$dist_files" | \
411 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
412 sort -u` ;; \
413 esac; \
414 for file in $$dist_files; do \
415 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
416 if test -d $$d/$$file; then \
417 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
418 if test -d "$(distdir)/$$file"; then \
419 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
420 fi; \
421 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
422 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
423 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
424 fi; \
425 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
426 else \
427 test -f "$(distdir)/$$file" \
428 || cp -p $$d/$$file "$(distdir)/$$file" \
429 || exit 1; \
430 fi; \
431 done
432 check-am: all-am
433 check: check-am
434 all-am: Makefile $(PROGRAMS)
435 installdirs:
436 for dir in "$(DESTDIR)$(bindir)"; do \
437 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
438 done
439 install: install-am
440 install-exec: install-exec-am
441 install-data: install-data-am
442 uninstall: uninstall-am
443
444 install-am: all-am
445 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
446
447 installcheck: installcheck-am
448 install-strip:
449 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
450 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
451 `test -z '$(STRIP)' || \
452 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
453 mostlyclean-generic:
454
455 clean-generic:
456
457 distclean-generic:
458 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
459 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
460
461 maintainer-clean-generic:
462 @echo "This command is intended for maintainers to use"
463 @echo "it deletes files that may require special tools to rebuild."
464 clean: clean-am
465
466 clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am
467
468 distclean: distclean-am
469 -rm -rf ./$(DEPDIR)
470 -rm -f Makefile
471 distclean-am: clean-am distclean-compile distclean-generic \
472 distclean-tags
473
474 dvi: dvi-am
475
476 dvi-am:
477
478 html: html-am
479
480 html-am:
481
482 info: info-am
483
484 info-am:
485
486 install-data-am:
487
488 install-dvi: install-dvi-am
489
490 install-dvi-am:
491
492 install-exec-am: install-binPROGRAMS
493
494 install-html: install-html-am
495
496 install-html-am:
497
498 install-info: install-info-am
499
500 install-info-am:
501
502 install-man:
503
504 install-pdf: install-pdf-am
505
506 install-pdf-am:
507
508 install-ps: install-ps-am
509
510 install-ps-am:
511
512 installcheck-am:
513
514 maintainer-clean: maintainer-clean-am
515 -rm -rf ./$(DEPDIR)
516 -rm -f Makefile
517 maintainer-clean-am: distclean-am maintainer-clean-generic
518
519 mostlyclean: mostlyclean-am
520
521 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
522 mostlyclean-libtool
523
524 pdf: pdf-am
525
526 pdf-am:
527
528 ps: ps-am
529
530 ps-am:
531
532 uninstall-am: uninstall-binPROGRAMS
533
534 .MAKE: install-am install-strip
535
536 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
537 clean-generic clean-libtool ctags distclean distclean-compile \
538 distclean-generic distclean-libtool distclean-tags distdir dvi \
539 dvi-am html html-am info info-am install install-am \
540 install-binPROGRAMS install-data install-data-am install-dvi \
541 install-dvi-am install-exec install-exec-am install-html \
542 install-html-am install-info install-info-am install-man \
543 install-pdf install-pdf-am install-ps install-ps-am \
544 install-strip installcheck installcheck-am installdirs \
545 maintainer-clean maintainer-clean-generic mostlyclean \
546 mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
547 pdf pdf-am ps ps-am tags uninstall uninstall-am \
548 uninstall-binPROGRAMS
549
550
551 # Tell versions [3.59,3.63) of GNU make to not export all variables.
552 # Otherwise a system limit (for SysV at least) may be exceeded.
553 .NOEXPORT:
(No changes)
(No changes)
(No changes)
(No changes)
(No changes)
99 add_executable(mpccut mpccut ${libmpc_SOURCE_DIR}/win32/attgetopt)
1010 endif(MSVC)
1111
12 add_executable(mpccut mpccut)
12 add_executable(mpccut mpccut.c)
1313
1414 if(SHARED)
15 target_link_libraries(mpccut mpcdec_shared)
15 target_link_libraries(mpccut mpcdec)
1616 else(SHARED)
1717 target_link_libraries(mpccut mpcdec_static)
1818 endif(SHARED)
(No changes)
+0
-533
mpccut/Makefile.in less more
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
6 # This Makefile.in is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 # PARTICULAR PURPOSE.
14
15 @SET_MAKE@
16
17 VPATH = @srcdir@
18 pkgdatadir = $(datadir)/@PACKAGE@
19 pkgincludedir = $(includedir)/@PACKAGE@
20 pkglibdir = $(libdir)/@PACKAGE@
21 pkglibexecdir = $(libexecdir)/@PACKAGE@
22 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
23 install_sh_DATA = $(install_sh) -c -m 644
24 install_sh_PROGRAM = $(install_sh) -c
25 install_sh_SCRIPT = $(install_sh) -c
26 INSTALL_HEADER = $(INSTALL_DATA)
27 transform = $(program_transform_name)
28 NORMAL_INSTALL = :
29 PRE_INSTALL = :
30 POST_INSTALL = :
31 NORMAL_UNINSTALL = :
32 PRE_UNINSTALL = :
33 POST_UNINSTALL = :
34 build_triplet = @build@
35 host_triplet = @host@
36 bin_PROGRAMS = mpccut$(EXEEXT)
37 subdir = mpccut
38 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
39 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
40 am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
42 $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
43 $(top_srcdir)/configure.in
44 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
45 $(ACLOCAL_M4)
46 mkinstalldirs = $(install_sh) -d
47 CONFIG_HEADER = $(top_builddir)/include/config.h
48 CONFIG_CLEAN_FILES =
49 CONFIG_CLEAN_VPATH_FILES =
50 am__installdirs = "$(DESTDIR)$(bindir)"
51 PROGRAMS = $(bin_PROGRAMS)
52 am__objects_1 = crc32.$(OBJEXT)
53 am_mpccut_OBJECTS = mpccut.$(OBJEXT) $(am__objects_1)
54 mpccut_OBJECTS = $(am_mpccut_OBJECTS)
55 mpccut_DEPENDENCIES = $(top_builddir)/libmpcenc/libmpcenc.a \
56 $(top_builddir)/libmpcdec/libmpcdec.la
57 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include
58 depcomp = $(SHELL) $(top_srcdir)/config/depcomp
59 am__depfiles_maybe = depfiles
60 am__mv = mv -f
61 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
62 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
63 LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
64 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
65 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
66 CCLD = $(CC)
67 LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
68 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
69 $(LDFLAGS) -o $@
70 SOURCES = $(mpccut_SOURCES)
71 DIST_SOURCES = $(mpccut_SOURCES)
72 ETAGS = etags
73 CTAGS = ctags
74 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
75 ACLOCAL = @ACLOCAL@
76 AMTAR = @AMTAR@
77 AR = @AR@
78 AS = @AS@
79 AUTOCONF = @AUTOCONF@
80 AUTOHEADER = @AUTOHEADER@
81 AUTOMAKE = @AUTOMAKE@
82 AWK = @AWK@
83 CC = @CC@
84 CCDEPMODE = @CCDEPMODE@
85 CFLAGS = @CFLAGS@
86 CPP = @CPP@
87 CPPFLAGS = @CPPFLAGS@
88 CYGPATH_W = @CYGPATH_W@
89 DEFS = @DEFS@
90 DEPDIR = @DEPDIR@
91 DLLTOOL = @DLLTOOL@
92 DSYMUTIL = @DSYMUTIL@
93 DUMPBIN = @DUMPBIN@
94 ECHO_C = @ECHO_C@
95 ECHO_N = @ECHO_N@
96 ECHO_T = @ECHO_T@
97 EGREP = @EGREP@
98 EXEEXT = @EXEEXT@
99 EXTRALIBS = @EXTRALIBS@
100 FGREP = @FGREP@
101 GREP = @GREP@
102 INSTALL = @INSTALL@
103 INSTALL_DATA = @INSTALL_DATA@
104 INSTALL_PROGRAM = @INSTALL_PROGRAM@
105 INSTALL_SCRIPT = @INSTALL_SCRIPT@
106 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
107 LD = @LD@
108 LDFLAGS = @LDFLAGS@
109 LIBOBJS = @LIBOBJS@
110 LIBS = @LIBS@
111 LIBTOOL = @LIBTOOL@
112 LIPO = @LIPO@
113 LN_S = @LN_S@
114 LTLIBOBJS = @LTLIBOBJS@
115 MAKEINFO = @MAKEINFO@
116 MKDIR_P = @MKDIR_P@
117 NM = @NM@
118 NMEDIT = @NMEDIT@
119 OBJDUMP = @OBJDUMP@
120 OBJEXT = @OBJEXT@
121 OTOOL = @OTOOL@
122 OTOOL64 = @OTOOL64@
123 PACKAGE = @PACKAGE@
124 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
125 PACKAGE_NAME = @PACKAGE_NAME@
126 PACKAGE_STRING = @PACKAGE_STRING@
127 PACKAGE_TARNAME = @PACKAGE_TARNAME@
128 PACKAGE_URL = @PACKAGE_URL@
129 PACKAGE_VERSION = @PACKAGE_VERSION@
130 PATH_SEPARATOR = @PATH_SEPARATOR@
131 RANLIB = @RANLIB@
132 SED = @SED@
133 SET_MAKE = @SET_MAKE@
134 SHELL = @SHELL@
135 STRIP = @STRIP@
136 VERSION = @VERSION@
137 abs_builddir = @abs_builddir@
138 abs_srcdir = @abs_srcdir@
139 abs_top_builddir = @abs_top_builddir@
140 abs_top_srcdir = @abs_top_srcdir@
141 ac_ct_CC = @ac_ct_CC@
142 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
143 am__include = @am__include@
144 am__leading_dot = @am__leading_dot@
145 am__quote = @am__quote@
146 am__tar = @am__tar@
147 am__untar = @am__untar@
148 bindir = @bindir@
149 build = @build@
150 build_alias = @build_alias@
151 build_cpu = @build_cpu@
152 build_os = @build_os@
153 build_vendor = @build_vendor@
154 builddir = @builddir@
155 datadir = @datadir@
156 datarootdir = @datarootdir@
157 docdir = @docdir@
158 dvidir = @dvidir@
159 exec_prefix = @exec_prefix@
160 host = @host@
161 host_alias = @host_alias@
162 host_cpu = @host_cpu@
163 host_os = @host_os@
164 host_vendor = @host_vendor@
165 htmldir = @htmldir@
166 includedir = @includedir@
167 infodir = @infodir@
168 install_sh = @install_sh@
169 libdir = @libdir@
170 libexecdir = @libexecdir@
171 localedir = @localedir@
172 localstatedir = @localstatedir@
173 lt_ECHO = @lt_ECHO@
174 mandir = @mandir@
175 mkdir_p = @mkdir_p@
176 oldincludedir = @oldincludedir@
177 pdfdir = @pdfdir@
178 prefix = @prefix@
179 program_transform_name = @program_transform_name@
180 psdir = @psdir@
181 sbindir = @sbindir@
182 sharedstatedir = @sharedstatedir@
183 srcdir = @srcdir@
184 sysconfdir = @sysconfdir@
185 target_alias = @target_alias@
186 top_build_prefix = @top_build_prefix@
187 top_builddir = @top_builddir@
188 top_srcdir = @top_srcdir@
189 EXTRA_DIST = CMakeLists.txt
190 AM_CPPFLAGS = -I$(top_srcdir)/include
191 @HAVE_VISIBILITY_TRUE@AM_CFLAGS = -fvisibility=hidden
192 common_sources = ../common/crc32.c
193 METASOURCES = AUTO
194 mpccut_SOURCES = mpccut.c $(common_sources)
195 mpccut_LDADD = $(top_builddir)/libmpcenc/libmpcenc.a \
196 $(top_builddir)/libmpcdec/libmpcdec.la -lm
197
198 all: all-am
199
200 .SUFFIXES:
201 .SUFFIXES: .c .lo .o .obj
202 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
203 @for dep in $?; do \
204 case '$(am__configure_deps)' in \
205 *$$dep*) \
206 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
207 && { if test -f $@; then exit 0; else break; fi; }; \
208 exit 1;; \
209 esac; \
210 done; \
211 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu mpccut/Makefile'; \
212 $(am__cd) $(top_srcdir) && \
213 $(AUTOMAKE) --gnu mpccut/Makefile
214 .PRECIOUS: Makefile
215 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
216 @case '$?' in \
217 *config.status*) \
218 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
219 *) \
220 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
221 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
222 esac;
223
224 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
225 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
226
227 $(top_srcdir)/configure: $(am__configure_deps)
228 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
229 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
230 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
231 $(am__aclocal_m4_deps):
232 install-binPROGRAMS: $(bin_PROGRAMS)
233 @$(NORMAL_INSTALL)
234 test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
235 @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
236 for p in $$list; do echo "$$p $$p"; done | \
237 sed 's/$(EXEEXT)$$//' | \
238 while read p p1; do if test -f $$p || test -f $$p1; \
239 then echo "$$p"; echo "$$p"; else :; fi; \
240 done | \
241 sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \
242 -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
243 sed 'N;N;N;s,\n, ,g' | \
244 $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
245 { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
246 if ($$2 == $$4) files[d] = files[d] " " $$1; \
247 else { print "f", $$3 "/" $$4, $$1; } } \
248 END { for (d in files) print "f", d, files[d] }' | \
249 while read type dir files; do \
250 if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
251 test -z "$$files" || { \
252 echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \
253 $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
254 } \
255 ; done
256
257 uninstall-binPROGRAMS:
258 @$(NORMAL_UNINSTALL)
259 @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
260 files=`for p in $$list; do echo "$$p"; done | \
261 sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
262 -e 's/$$/$(EXEEXT)/' `; \
263 test -n "$$list" || exit 0; \
264 echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
265 cd "$(DESTDIR)$(bindir)" && rm -f $$files
266
267 clean-binPROGRAMS:
268 @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \
269 echo " rm -f" $$list; \
270 rm -f $$list || exit $$?; \
271 test -n "$(EXEEXT)" || exit 0; \
272 list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
273 echo " rm -f" $$list; \
274 rm -f $$list
275 mpccut$(EXEEXT): $(mpccut_OBJECTS) $(mpccut_DEPENDENCIES)
276 @rm -f mpccut$(EXEEXT)
277 $(LINK) $(mpccut_OBJECTS) $(mpccut_LDADD) $(LIBS)
278
279 mostlyclean-compile:
280 -rm -f *.$(OBJEXT)
281
282 distclean-compile:
283 -rm -f *.tab.c
284
285 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/crc32.Po@am__quote@
286 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mpccut.Po@am__quote@
287
288 .c.o:
289 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
290 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
291 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
292 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
293 @am__fastdepCC_FALSE@ $(COMPILE) -c $<
294
295 .c.obj:
296 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
297 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
298 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
299 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
300 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
301
302 .c.lo:
303 @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
304 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
305 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
306 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
307 @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
308
309 crc32.o: ../common/crc32.c
310 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT crc32.o -MD -MP -MF $(DEPDIR)/crc32.Tpo -c -o crc32.o `test -f '../common/crc32.c' || echo '$(srcdir)/'`../common/crc32.c
311 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/crc32.Tpo $(DEPDIR)/crc32.Po
312 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../common/crc32.c' object='crc32.o' libtool=no @AMDEPBACKSLASH@
313 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
314 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o crc32.o `test -f '../common/crc32.c' || echo '$(srcdir)/'`../common/crc32.c
315
316 crc32.obj: ../common/crc32.c
317 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT crc32.obj -MD -MP -MF $(DEPDIR)/crc32.Tpo -c -o crc32.obj `if test -f '../common/crc32.c'; then $(CYGPATH_W) '../common/crc32.c'; else $(CYGPATH_W) '$(srcdir)/../common/crc32.c'; fi`
318 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/crc32.Tpo $(DEPDIR)/crc32.Po
319 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../common/crc32.c' object='crc32.obj' libtool=no @AMDEPBACKSLASH@
320 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
321 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o crc32.obj `if test -f '../common/crc32.c'; then $(CYGPATH_W) '../common/crc32.c'; else $(CYGPATH_W) '$(srcdir)/../common/crc32.c'; fi`
322
323 mostlyclean-libtool:
324 -rm -f *.lo
325
326 clean-libtool:
327 -rm -rf .libs _libs
328
329 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
330 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
331 unique=`for i in $$list; do \
332 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
333 done | \
334 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
335 END { if (nonempty) { for (i in files) print i; }; }'`; \
336 mkid -fID $$unique
337 tags: TAGS
338
339 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
340 $(TAGS_FILES) $(LISP)
341 set x; \
342 here=`pwd`; \
343 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
344 unique=`for i in $$list; do \
345 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
346 done | \
347 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
348 END { if (nonempty) { for (i in files) print i; }; }'`; \
349 shift; \
350 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
351 test -n "$$unique" || unique=$$empty_fix; \
352 if test $$# -gt 0; then \
353 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
354 "$$@" $$unique; \
355 else \
356 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
357 $$unique; \
358 fi; \
359 fi
360 ctags: CTAGS
361 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
362 $(TAGS_FILES) $(LISP)
363 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
364 unique=`for i in $$list; do \
365 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
366 done | \
367 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
368 END { if (nonempty) { for (i in files) print i; }; }'`; \
369 test -z "$(CTAGS_ARGS)$$unique" \
370 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
371 $$unique
372
373 GTAGS:
374 here=`$(am__cd) $(top_builddir) && pwd` \
375 && $(am__cd) $(top_srcdir) \
376 && gtags -i $(GTAGS_ARGS) "$$here"
377
378 distclean-tags:
379 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
380
381 distdir: $(DISTFILES)
382 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
383 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
384 list='$(DISTFILES)'; \
385 dist_files=`for file in $$list; do echo $$file; done | \
386 sed -e "s|^$$srcdirstrip/||;t" \
387 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
388 case $$dist_files in \
389 */*) $(MKDIR_P) `echo "$$dist_files" | \
390 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
391 sort -u` ;; \
392 esac; \
393 for file in $$dist_files; do \
394 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
395 if test -d $$d/$$file; then \
396 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
397 if test -d "$(distdir)/$$file"; then \
398 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
399 fi; \
400 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
401 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
402 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
403 fi; \
404 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
405 else \
406 test -f "$(distdir)/$$file" \
407 || cp -p $$d/$$file "$(distdir)/$$file" \
408 || exit 1; \
409 fi; \
410 done
411 check-am: all-am
412 check: check-am
413 all-am: Makefile $(PROGRAMS)
414 installdirs:
415 for dir in "$(DESTDIR)$(bindir)"; do \
416 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
417 done
418 install: install-am
419 install-exec: install-exec-am
420 install-data: install-data-am
421 uninstall: uninstall-am
422
423 install-am: all-am
424 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
425
426 installcheck: installcheck-am
427 install-strip:
428 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
429 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
430 `test -z '$(STRIP)' || \
431 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
432 mostlyclean-generic:
433
434 clean-generic:
435
436 distclean-generic:
437 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
438 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
439
440 maintainer-clean-generic:
441 @echo "This command is intended for maintainers to use"
442 @echo "it deletes files that may require special tools to rebuild."
443 clean: clean-am
444
445 clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am
446
447 distclean: distclean-am
448 -rm -rf ./$(DEPDIR)
449 -rm -f Makefile
450 distclean-am: clean-am distclean-compile distclean-generic \
451 distclean-tags
452
453 dvi: dvi-am
454
455 dvi-am:
456
457 html: html-am
458
459 html-am:
460
461 info: info-am
462
463 info-am:
464
465 install-data-am:
466
467 install-dvi: install-dvi-am
468
469 install-dvi-am:
470
471 install-exec-am: install-binPROGRAMS
472
473 install-html: install-html-am
474
475 install-html-am:
476
477 install-info: install-info-am
478
479 install-info-am:
480
481 install-man:
482
483 install-pdf: install-pdf-am
484
485 install-pdf-am:
486
487 install-ps: install-ps-am
488
489 install-ps-am:
490
491 installcheck-am:
492
493 maintainer-clean: maintainer-clean-am
494 -rm -rf ./$(DEPDIR)
495 -rm -f Makefile
496 maintainer-clean-am: distclean-am maintainer-clean-generic
497
498 mostlyclean: mostlyclean-am
499
500 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
501 mostlyclean-libtool
502
503 pdf: pdf-am
504
505 pdf-am:
506
507 ps: ps-am
508
509 ps-am:
510
511 uninstall-am: uninstall-binPROGRAMS
512
513 .MAKE: install-am install-strip
514
515 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
516 clean-generic clean-libtool ctags distclean distclean-compile \
517 distclean-generic distclean-libtool distclean-tags distdir dvi \
518 dvi-am html html-am info info-am install install-am \
519 install-binPROGRAMS install-data install-data-am install-dvi \
520 install-dvi-am install-exec install-exec-am install-html \
521 install-html-am install-info install-info-am install-man \
522 install-pdf install-pdf-am install-ps install-ps-am \
523 install-strip installcheck installcheck-am installdirs \
524 maintainer-clean maintainer-clean-generic mostlyclean \
525 mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
526 pdf pdf-am ps ps-am tags uninstall uninstall-am \
527 uninstall-binPROGRAMS
528
529
530 # Tell versions [3.59,3.63) of GNU make to not export all variables.
531 # Otherwise a system limit (for SysV at least) may be exceeded.
532 .NOEXPORT:
141141 e.outputFile = fopen( argv[optind + 1], "rb" );
142142 if ( e.outputFile != 0 ) {
143143 fprintf(stderr, "Error : output file \"%s\" already exists\n", argv[optind + 1]);
144 exit(MPC_STATUS_FILE);
144 exit(MPC_STATUS_FAIL);
145145 }
146146 e.outputFile = fopen( argv[optind + 1], "w+b" );
147147
66
77 if(MSVC)
88 include_directories(${libmpc_SOURCE_DIR}/win32)
9 add_executable(mpcdec mpcdec ${libmpc_SOURCE_DIR}/win32/attgetopt)
9 add_executable(mpcdec_cmd mpcdec.c ${libmpc_SOURCE_DIR}/win32/attgetopt)
1010 endif(MSVC)
1111
12 add_executable(mpcdec mpcdec)
12 add_executable(mpcdec_cmd mpcdec.c)
1313
1414 if(NOT MSVC)
15 target_link_libraries(mpcdec m)
15 target_link_libraries(mpcdec_cmd m)
1616 endif(NOT MSVC)
1717
18 target_link_libraries(mpcdec wavformat_static)
18 target_link_libraries(mpcdec_cmd wavformat_static)
1919
2020 if(SHARED)
21 target_link_libraries(mpcdec mpcdec_shared)
21 target_link_libraries(mpcdec_cmd mpcdec)
2222 else(SHARED)
23 target_link_libraries(mpcdec mpcdec_static)
23 target_link_libraries(mpcdec_cmd mpcdec_static)
2424 endif(SHARED)
2525
26 install(TARGETS mpcdec RUNTIME DESTINATION bin)
26 SET_TARGET_PROPERTIES(mpcdec_cmd PROPERTIES OUTPUT_NAME "mpcdec")
27
28 install(TARGETS mpcdec_cmd RUNTIME DESTINATION bin)
(No changes)
+0
-517
mpcdec/Makefile.in less more
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
6 # This Makefile.in is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 # PARTICULAR PURPOSE.
14
15 @SET_MAKE@
16
17 VPATH = @srcdir@
18 pkgdatadir = $(datadir)/@PACKAGE@
19 pkgincludedir = $(includedir)/@PACKAGE@
20 pkglibdir = $(libdir)/@PACKAGE@
21 pkglibexecdir = $(libexecdir)/@PACKAGE@
22 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
23 install_sh_DATA = $(install_sh) -c -m 644
24 install_sh_PROGRAM = $(install_sh) -c
25 install_sh_SCRIPT = $(install_sh) -c
26 INSTALL_HEADER = $(INSTALL_DATA)
27 transform = $(program_transform_name)
28 NORMAL_INSTALL = :
29 PRE_INSTALL = :
30 POST_INSTALL = :
31 NORMAL_UNINSTALL = :
32 PRE_UNINSTALL = :
33 POST_UNINSTALL = :
34 build_triplet = @build@
35 host_triplet = @host@
36 bin_PROGRAMS = mpcdec$(EXEEXT)
37 subdir = mpcdec
38 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
39 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
40 am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
42 $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
43 $(top_srcdir)/configure.in
44 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
45 $(ACLOCAL_M4)
46 mkinstalldirs = $(install_sh) -d
47 CONFIG_HEADER = $(top_builddir)/include/config.h
48 CONFIG_CLEAN_FILES =
49 CONFIG_CLEAN_VPATH_FILES =
50 am__installdirs = "$(DESTDIR)$(bindir)"
51 PROGRAMS = $(bin_PROGRAMS)
52 am_mpcdec_OBJECTS = mpcdec.$(OBJEXT)
53 mpcdec_OBJECTS = $(am_mpcdec_OBJECTS)
54 mpcdec_DEPENDENCIES = $(top_builddir)/libmpcdec/libmpcdec.la \
55 $(top_builddir)/libwavformat/libwavformat.a
56 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include
57 depcomp = $(SHELL) $(top_srcdir)/config/depcomp
58 am__depfiles_maybe = depfiles
59 am__mv = mv -f
60 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
61 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
62 LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
63 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
64 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65 CCLD = $(CC)
66 LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
67 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
68 $(LDFLAGS) -o $@
69 SOURCES = $(mpcdec_SOURCES)
70 DIST_SOURCES = $(mpcdec_SOURCES)
71 ETAGS = etags
72 CTAGS = ctags
73 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
74 ACLOCAL = @ACLOCAL@
75 AMTAR = @AMTAR@
76 AR = @AR@
77 AS = @AS@
78 AUTOCONF = @AUTOCONF@
79 AUTOHEADER = @AUTOHEADER@
80 AUTOMAKE = @AUTOMAKE@
81 AWK = @AWK@
82 CC = @CC@
83 CCDEPMODE = @CCDEPMODE@
84 CFLAGS = @CFLAGS@
85 CPP = @CPP@
86 CPPFLAGS = @CPPFLAGS@
87 CYGPATH_W = @CYGPATH_W@
88 DEFS = @DEFS@
89 DEPDIR = @DEPDIR@
90 DLLTOOL = @DLLTOOL@
91 DSYMUTIL = @DSYMUTIL@
92 DUMPBIN = @DUMPBIN@
93 ECHO_C = @ECHO_C@
94 ECHO_N = @ECHO_N@
95 ECHO_T = @ECHO_T@
96 EGREP = @EGREP@
97 EXEEXT = @EXEEXT@
98 EXTRALIBS = @EXTRALIBS@
99 FGREP = @FGREP@
100 GREP = @GREP@
101 INSTALL = @INSTALL@
102 INSTALL_DATA = @INSTALL_DATA@
103 INSTALL_PROGRAM = @INSTALL_PROGRAM@
104 INSTALL_SCRIPT = @INSTALL_SCRIPT@
105 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
106 LD = @LD@
107 LDFLAGS = @LDFLAGS@
108 LIBOBJS = @LIBOBJS@
109 LIBS = @LIBS@
110 LIBTOOL = @LIBTOOL@
111 LIPO = @LIPO@
112 LN_S = @LN_S@
113 LTLIBOBJS = @LTLIBOBJS@
114 MAKEINFO = @MAKEINFO@
115 MKDIR_P = @MKDIR_P@
116 NM = @NM@
117 NMEDIT = @NMEDIT@
118 OBJDUMP = @OBJDUMP@
119 OBJEXT = @OBJEXT@
120 OTOOL = @OTOOL@
121 OTOOL64 = @OTOOL64@
122 PACKAGE = @PACKAGE@
123 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
124 PACKAGE_NAME = @PACKAGE_NAME@
125 PACKAGE_STRING = @PACKAGE_STRING@
126 PACKAGE_TARNAME = @PACKAGE_TARNAME@
127 PACKAGE_URL = @PACKAGE_URL@
128 PACKAGE_VERSION = @PACKAGE_VERSION@
129 PATH_SEPARATOR = @PATH_SEPARATOR@
130 RANLIB = @RANLIB@
131 SED = @SED@
132 SET_MAKE = @SET_MAKE@
133 SHELL = @SHELL@
134 STRIP = @STRIP@
135 VERSION = @VERSION@
136 abs_builddir = @abs_builddir@
137 abs_srcdir = @abs_srcdir@
138 abs_top_builddir = @abs_top_builddir@
139 abs_top_srcdir = @abs_top_srcdir@
140 ac_ct_CC = @ac_ct_CC@
141 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
142 am__include = @am__include@
143 am__leading_dot = @am__leading_dot@
144 am__quote = @am__quote@
145 am__tar = @am__tar@
146 am__untar = @am__untar@
147 bindir = @bindir@
148 build = @build@
149 build_alias = @build_alias@
150 build_cpu = @build_cpu@
151 build_os = @build_os@
152 build_vendor = @build_vendor@
153 builddir = @builddir@
154 datadir = @datadir@
155 datarootdir = @datarootdir@
156 docdir = @docdir@
157 dvidir = @dvidir@
158 exec_prefix = @exec_prefix@
159 host = @host@
160 host_alias = @host_alias@
161 host_cpu = @host_cpu@
162 host_os = @host_os@
163 host_vendor = @host_vendor@
164 htmldir = @htmldir@
165 includedir = @includedir@
166 infodir = @infodir@
167 install_sh = @install_sh@
168 libdir = @libdir@
169 libexecdir = @libexecdir@
170 localedir = @localedir@
171 localstatedir = @localstatedir@
172 lt_ECHO = @lt_ECHO@
173 mandir = @mandir@
174 mkdir_p = @mkdir_p@
175 oldincludedir = @oldincludedir@
176 pdfdir = @pdfdir@
177 prefix = @prefix@
178 program_transform_name = @program_transform_name@
179 psdir = @psdir@
180 sbindir = @sbindir@
181 sharedstatedir = @sharedstatedir@
182 srcdir = @srcdir@
183 sysconfdir = @sysconfdir@
184 target_alias = @target_alias@
185 top_build_prefix = @top_build_prefix@
186 top_builddir = @top_builddir@
187 top_srcdir = @top_srcdir@
188 EXTRA_DIST = CMakeLists.txt
189 AM_CPPFLAGS = -I$(top_srcdir)/libwavformat -I$(top_srcdir)/include
190 @HAVE_VISIBILITY_TRUE@AM_CFLAGS = -fvisibility=hidden
191 METASOURCES = AUTO
192 mpcdec_SOURCES = mpcdec.c
193 mpcdec_LDADD = -lm \
194 $(top_builddir)/libmpcdec/libmpcdec.la \
195 $(top_builddir)/libwavformat/libwavformat.a
196
197 all: all-am
198
199 .SUFFIXES:
200 .SUFFIXES: .c .lo .o .obj
201 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
202 @for dep in $?; do \
203 case '$(am__configure_deps)' in \
204 *$$dep*) \
205 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
206 && { if test -f $@; then exit 0; else break; fi; }; \
207 exit 1;; \
208 esac; \
209 done; \
210 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu mpcdec/Makefile'; \
211 $(am__cd) $(top_srcdir) && \
212 $(AUTOMAKE) --gnu mpcdec/Makefile
213 .PRECIOUS: Makefile
214 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
215 @case '$?' in \
216 *config.status*) \
217 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
218 *) \
219 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
220 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
221 esac;
222
223 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
224 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
225
226 $(top_srcdir)/configure: $(am__configure_deps)
227 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
228 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
229 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
230 $(am__aclocal_m4_deps):
231 install-binPROGRAMS: $(bin_PROGRAMS)
232 @$(NORMAL_INSTALL)
233 test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
234 @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
235 for p in $$list; do echo "$$p $$p"; done | \
236 sed 's/$(EXEEXT)$$//' | \
237 while read p p1; do if test -f $$p || test -f $$p1; \
238 then echo "$$p"; echo "$$p"; else :; fi; \
239 done | \
240 sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \
241 -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
242 sed 'N;N;N;s,\n, ,g' | \
243 $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
244 { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
245 if ($$2 == $$4) files[d] = files[d] " " $$1; \
246 else { print "f", $$3 "/" $$4, $$1; } } \
247 END { for (d in files) print "f", d, files[d] }' | \
248 while read type dir files; do \
249 if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
250 test -z "$$files" || { \
251 echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \
252 $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
253 } \
254 ; done
255
256 uninstall-binPROGRAMS:
257 @$(NORMAL_UNINSTALL)
258 @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
259 files=`for p in $$list; do echo "$$p"; done | \
260 sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
261 -e 's/$$/$(EXEEXT)/' `; \
262 test -n "$$list" || exit 0; \
263 echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
264 cd "$(DESTDIR)$(bindir)" && rm -f $$files
265
266 clean-binPROGRAMS:
267 @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \
268 echo " rm -f" $$list; \
269 rm -f $$list || exit $$?; \
270 test -n "$(EXEEXT)" || exit 0; \
271 list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
272 echo " rm -f" $$list; \
273 rm -f $$list
274 mpcdec$(EXEEXT): $(mpcdec_OBJECTS) $(mpcdec_DEPENDENCIES)
275 @rm -f mpcdec$(EXEEXT)
276 $(LINK) $(mpcdec_OBJECTS) $(mpcdec_LDADD) $(LIBS)
277
278 mostlyclean-compile:
279 -rm -f *.$(OBJEXT)
280
281 distclean-compile:
282 -rm -f *.tab.c
283
284 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mpcdec.Po@am__quote@
285
286 .c.o:
287 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
288 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
289 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
290 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
291 @am__fastdepCC_FALSE@ $(COMPILE) -c $<
292
293 .c.obj:
294 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
295 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
296 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
297 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
298 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
299
300 .c.lo:
301 @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
302 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
303 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
304 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
305 @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
306
307 mostlyclean-libtool:
308 -rm -f *.lo
309
310 clean-libtool:
311 -rm -rf .libs _libs
312
313 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
314 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
315 unique=`for i in $$list; do \
316 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
317 done | \
318 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
319 END { if (nonempty) { for (i in files) print i; }; }'`; \
320 mkid -fID $$unique
321 tags: TAGS
322
323 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
324 $(TAGS_FILES) $(LISP)
325 set x; \
326 here=`pwd`; \
327 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
328 unique=`for i in $$list; do \
329 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
330 done | \
331 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
332 END { if (nonempty) { for (i in files) print i; }; }'`; \
333 shift; \
334 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
335 test -n "$$unique" || unique=$$empty_fix; \
336 if test $$# -gt 0; then \
337 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
338 "$$@" $$unique; \
339 else \
340 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
341 $$unique; \
342 fi; \
343 fi
344 ctags: CTAGS
345 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
346 $(TAGS_FILES) $(LISP)
347 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
348 unique=`for i in $$list; do \
349 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
350 done | \
351 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
352 END { if (nonempty) { for (i in files) print i; }; }'`; \
353 test -z "$(CTAGS_ARGS)$$unique" \
354 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
355 $$unique
356
357 GTAGS:
358 here=`$(am__cd) $(top_builddir) && pwd` \
359 && $(am__cd) $(top_srcdir) \
360 && gtags -i $(GTAGS_ARGS) "$$here"
361
362 distclean-tags:
363 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
364
365 distdir: $(DISTFILES)
366 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
367 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
368 list='$(DISTFILES)'; \
369 dist_files=`for file in $$list; do echo $$file; done | \
370 sed -e "s|^$$srcdirstrip/||;t" \
371 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
372 case $$dist_files in \
373 */*) $(MKDIR_P) `echo "$$dist_files" | \
374 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
375 sort -u` ;; \
376 esac; \
377 for file in $$dist_files; do \
378 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
379 if test -d $$d/$$file; then \
380 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
381 if test -d "$(distdir)/$$file"; then \
382 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
383 fi; \
384 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
385 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
386 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
387 fi; \
388 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
389 else \
390 test -f "$(distdir)/$$file" \
391 || cp -p $$d/$$file "$(distdir)/$$file" \
392 || exit 1; \
393 fi; \
394 done
395 check-am: all-am
396 check: check-am
397 all-am: Makefile $(PROGRAMS)
398 installdirs:
399 for dir in "$(DESTDIR)$(bindir)"; do \
400 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
401 done
402 install: install-am
403 install-exec: install-exec-am
404 install-data: install-data-am
405 uninstall: uninstall-am
406
407 install-am: all-am
408 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
409
410 installcheck: installcheck-am
411 install-strip:
412 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
413 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
414 `test -z '$(STRIP)' || \
415 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
416 mostlyclean-generic:
417
418 clean-generic:
419
420 distclean-generic:
421 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
422 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
423
424 maintainer-clean-generic:
425 @echo "This command is intended for maintainers to use"
426 @echo "it deletes files that may require special tools to rebuild."
427 clean: clean-am
428
429 clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am
430
431 distclean: distclean-am
432 -rm -rf ./$(DEPDIR)
433 -rm -f Makefile
434 distclean-am: clean-am distclean-compile distclean-generic \
435 distclean-tags
436
437 dvi: dvi-am
438
439 dvi-am:
440
441 html: html-am
442
443 html-am:
444
445 info: info-am
446
447 info-am:
448
449 install-data-am:
450
451 install-dvi: install-dvi-am
452
453 install-dvi-am:
454
455 install-exec-am: install-binPROGRAMS
456
457 install-html: install-html-am
458
459 install-html-am:
460
461 install-info: install-info-am
462
463 install-info-am:
464
465 install-man:
466
467 install-pdf: install-pdf-am
468
469 install-pdf-am:
470
471 install-ps: install-ps-am
472
473 install-ps-am:
474
475 installcheck-am:
476
477 maintainer-clean: maintainer-clean-am
478 -rm -rf ./$(DEPDIR)
479 -rm -f Makefile
480 maintainer-clean-am: distclean-am maintainer-clean-generic
481
482 mostlyclean: mostlyclean-am
483
484 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
485 mostlyclean-libtool
486
487 pdf: pdf-am
488
489 pdf-am:
490
491 ps: ps-am
492
493 ps-am:
494
495 uninstall-am: uninstall-binPROGRAMS
496
497 .MAKE: install-am install-strip
498
499 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
500 clean-generic clean-libtool ctags distclean distclean-compile \
501 distclean-generic distclean-libtool distclean-tags distdir dvi \
502 dvi-am html html-am info info-am install install-am \
503 install-binPROGRAMS install-data install-data-am install-dvi \
504 install-dvi-am install-exec install-exec-am install-html \
505 install-html-am install-info install-info-am install-man \
506 install-pdf install-pdf-am install-ps install-ps-am \
507 install-strip installcheck installcheck-am installdirs \
508 maintainer-clean maintainer-clean-generic mostlyclean \
509 mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
510 pdf pdf-am ps ps-am tags uninstall uninstall-am \
511 uninstall-binPROGRAMS
512
513
514 # Tell versions [3.59,3.63) of GNU make to not export all variables.
515 # Otherwise a system limit (for SysV at least) may be exceeded.
516 .NOEXPORT:
(No changes)
88 link_directories(${libmpc_BINARY_DIR}/libmpcpsy)
99 link_directories(${libmpc_BINARY_DIR}/libmpcenc)
1010
11 add_executable(mpcenc keyboard mpcenc pipeopen stderr ${libmpc_SOURCE_DIR}/common/tags wave_in winmsg)
11 add_executable(mpcenc keyboard.c mpcenc.c pipeopen.c stderr.c ${libmpc_SOURCE_DIR}/common/tags.c wave_in.c winmsg.c)
1212
1313 target_link_libraries(mpcenc mpcpsy_static)
1414 target_link_libraries(mpcenc mpcenc_static)
(No changes)
+0
-607
mpcenc/Makefile.in less more
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
6 # This Makefile.in is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 # PARTICULAR PURPOSE.
14
15 @SET_MAKE@
16
17 VPATH = @srcdir@
18 pkgdatadir = $(datadir)/@PACKAGE@
19 pkgincludedir = $(includedir)/@PACKAGE@
20 pkglibdir = $(libdir)/@PACKAGE@
21 pkglibexecdir = $(libexecdir)/@PACKAGE@
22 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
23 install_sh_DATA = $(install_sh) -c -m 644
24 install_sh_PROGRAM = $(install_sh) -c
25 install_sh_SCRIPT = $(install_sh) -c
26 INSTALL_HEADER = $(INSTALL_DATA)
27 transform = $(program_transform_name)
28 NORMAL_INSTALL = :
29 PRE_INSTALL = :
30 POST_INSTALL = :
31 NORMAL_UNINSTALL = :
32 PRE_UNINSTALL = :
33 POST_UNINSTALL = :
34 build_triplet = @build@
35 host_triplet = @host@
36 bin_PROGRAMS = mpcenc$(EXEEXT)
37 subdir = mpcenc
38 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
39 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
40 am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
42 $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
43 $(top_srcdir)/configure.in
44 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
45 $(ACLOCAL_M4)
46 mkinstalldirs = $(install_sh) -d
47 CONFIG_HEADER = $(top_builddir)/include/config.h
48 CONFIG_CLEAN_FILES =
49 CONFIG_CLEAN_VPATH_FILES =
50 am__installdirs = "$(DESTDIR)$(bindir)"
51 PROGRAMS = $(bin_PROGRAMS)
52 am__objects_1 = crc32.$(OBJEXT) huffman-bcl.$(OBJEXT) \
53 fastmath.$(OBJEXT) tags.$(OBJEXT)
54 am_mpcenc_OBJECTS = keyboard.$(OBJEXT) mpcenc.$(OBJEXT) \
55 pipeopen.$(OBJEXT) stderr.$(OBJEXT) wave_in.$(OBJEXT) \
56 winmsg.$(OBJEXT) $(am__objects_1)
57 mpcenc_OBJECTS = $(am_mpcenc_OBJECTS)
58 am__DEPENDENCIES_1 =
59 mpcenc_DEPENDENCIES = $(am__DEPENDENCIES_1) \
60 $(top_builddir)/libmpcpsy/libmpcpsy.a \
61 $(top_builddir)/libmpcenc/libmpcenc.a
62 mpcenc_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
63 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(mpcenc_LDFLAGS) \
64 $(LDFLAGS) -o $@
65 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include
66 depcomp = $(SHELL) $(top_srcdir)/config/depcomp
67 am__depfiles_maybe = depfiles
68 am__mv = mv -f
69 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
70 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
71 LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
72 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
73 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
74 CCLD = $(CC)
75 LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
76 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
77 $(LDFLAGS) -o $@
78 SOURCES = $(mpcenc_SOURCES)
79 DIST_SOURCES = $(mpcenc_SOURCES)
80 ETAGS = etags
81 CTAGS = ctags
82 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
83 ACLOCAL = @ACLOCAL@
84 AMTAR = @AMTAR@
85 AR = @AR@
86 AS = @AS@
87 AUTOCONF = @AUTOCONF@
88 AUTOHEADER = @AUTOHEADER@
89 AUTOMAKE = @AUTOMAKE@
90 AWK = @AWK@
91 CC = @CC@
92 CCDEPMODE = @CCDEPMODE@
93 CFLAGS = @CFLAGS@
94 CPP = @CPP@
95 CPPFLAGS = @CPPFLAGS@
96 CYGPATH_W = @CYGPATH_W@
97 DEFS = @DEFS@
98 DEPDIR = @DEPDIR@
99 DLLTOOL = @DLLTOOL@
100 DSYMUTIL = @DSYMUTIL@
101 DUMPBIN = @DUMPBIN@
102 ECHO_C = @ECHO_C@
103 ECHO_N = @ECHO_N@
104 ECHO_T = @ECHO_T@
105 EGREP = @EGREP@
106 EXEEXT = @EXEEXT@
107 EXTRALIBS = @EXTRALIBS@
108 FGREP = @FGREP@
109 GREP = @GREP@
110 INSTALL = @INSTALL@
111 INSTALL_DATA = @INSTALL_DATA@
112 INSTALL_PROGRAM = @INSTALL_PROGRAM@
113 INSTALL_SCRIPT = @INSTALL_SCRIPT@
114 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
115 LD = @LD@
116 LDFLAGS = @LDFLAGS@
117 LIBOBJS = @LIBOBJS@
118 LIBS = @LIBS@
119 LIBTOOL = @LIBTOOL@
120 LIPO = @LIPO@
121 LN_S = @LN_S@
122 LTLIBOBJS = @LTLIBOBJS@
123 MAKEINFO = @MAKEINFO@
124 MKDIR_P = @MKDIR_P@
125 NM = @NM@
126 NMEDIT = @NMEDIT@
127 OBJDUMP = @OBJDUMP@
128 OBJEXT = @OBJEXT@
129 OTOOL = @OTOOL@
130 OTOOL64 = @OTOOL64@
131 PACKAGE = @PACKAGE@
132 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
133 PACKAGE_NAME = @PACKAGE_NAME@
134 PACKAGE_STRING = @PACKAGE_STRING@
135 PACKAGE_TARNAME = @PACKAGE_TARNAME@
136 PACKAGE_URL = @PACKAGE_URL@
137 PACKAGE_VERSION = @PACKAGE_VERSION@
138 PATH_SEPARATOR = @PATH_SEPARATOR@
139 RANLIB = @RANLIB@
140 SED = @SED@
141 SET_MAKE = @SET_MAKE@
142 SHELL = @SHELL@
143 STRIP = @STRIP@
144 VERSION = @VERSION@
145 abs_builddir = @abs_builddir@
146 abs_srcdir = @abs_srcdir@
147 abs_top_builddir = @abs_top_builddir@
148 abs_top_srcdir = @abs_top_srcdir@
149 ac_ct_CC = @ac_ct_CC@
150 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
151 am__include = @am__include@
152 am__leading_dot = @am__leading_dot@
153 am__quote = @am__quote@
154 am__tar = @am__tar@
155 am__untar = @am__untar@
156 bindir = @bindir@
157 build = @build@
158 build_alias = @build_alias@
159 build_cpu = @build_cpu@
160 build_os = @build_os@
161 build_vendor = @build_vendor@
162 builddir = @builddir@
163 datadir = @datadir@
164 datarootdir = @datarootdir@
165 docdir = @docdir@
166 dvidir = @dvidir@
167 exec_prefix = @exec_prefix@
168 host = @host@
169 host_alias = @host_alias@
170 host_cpu = @host_cpu@
171 host_os = @host_os@
172 host_vendor = @host_vendor@
173 htmldir = @htmldir@
174 includedir = @includedir@
175 infodir = @infodir@
176 install_sh = @install_sh@
177 libdir = @libdir@
178 libexecdir = @libexecdir@
179 localedir = @localedir@
180 localstatedir = @localstatedir@
181 lt_ECHO = @lt_ECHO@
182 mandir = @mandir@
183 mkdir_p = @mkdir_p@
184 oldincludedir = @oldincludedir@
185 pdfdir = @pdfdir@
186 prefix = @prefix@
187 program_transform_name = @program_transform_name@
188 psdir = @psdir@
189 sbindir = @sbindir@
190 sharedstatedir = @sharedstatedir@
191 srcdir = @srcdir@
192 sysconfdir = @sysconfdir@
193 target_alias = @target_alias@
194 top_build_prefix = @top_build_prefix@
195 top_builddir = @top_builddir@
196 top_srcdir = @top_srcdir@
197 EXTRA_DIST = CMakeLists.txt
198 @HAVE_VISIBILITY_TRUE@AM_CFLAGS = -fvisibility=hidden
199 common_sources = ../common/crc32.c \
200 ../common/huffman-bcl.c \
201 ../common/fastmath.c \
202 ../common/tags.c
203
204
205 # set the include path found by configure
206 AM_CPPFLAGS = -I$(top_srcdir)/libmpcenc -I$(top_srcdir)/libmpcpsy \
207 -I$(top_srcdir)/include/ $(all_includes) \
208 -DTRUE=1 -DFALSE=0
209
210
211 # the library search path.
212 mpcenc_LDFLAGS = $(all_libraries)
213 mpcenc_SOURCES = keyboard.c mpcenc.c pipeopen.c stderr.c wave_in.c winmsg.c \
214 $(common_sources) \
215 mpcenc.h predict.h config.h
216
217 mpcenc_LDADD = -lm \
218 $(EXTRALIBS) \
219 $(top_builddir)/libmpcpsy/libmpcpsy.a \
220 $(top_builddir)/libmpcenc/libmpcenc.a
221
222 all: all-am
223
224 .SUFFIXES:
225 .SUFFIXES: .c .lo .o .obj
226 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
227 @for dep in $?; do \
228 case '$(am__configure_deps)' in \
229 *$$dep*) \
230 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
231 && { if test -f $@; then exit 0; else break; fi; }; \
232 exit 1;; \
233 esac; \
234 done; \
235 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu mpcenc/Makefile'; \
236 $(am__cd) $(top_srcdir) && \
237 $(AUTOMAKE) --gnu mpcenc/Makefile
238 .PRECIOUS: Makefile
239 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
240 @case '$?' in \
241 *config.status*) \
242 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
243 *) \
244 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
245 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
246 esac;
247
248 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
249 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
250
251 $(top_srcdir)/configure: $(am__configure_deps)
252 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
253 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
254 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
255 $(am__aclocal_m4_deps):
256 install-binPROGRAMS: $(bin_PROGRAMS)
257 @$(NORMAL_INSTALL)
258 test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
259 @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
260 for p in $$list; do echo "$$p $$p"; done | \
261 sed 's/$(EXEEXT)$$//' | \
262 while read p p1; do if test -f $$p || test -f $$p1; \
263 then echo "$$p"; echo "$$p"; else :; fi; \
264 done | \
265 sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \
266 -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
267 sed 'N;N;N;s,\n, ,g' | \
268 $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
269 { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
270 if ($$2 == $$4) files[d] = files[d] " " $$1; \
271 else { print "f", $$3 "/" $$4, $$1; } } \
272 END { for (d in files) print "f", d, files[d] }' | \
273 while read type dir files; do \
274 if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
275 test -z "$$files" || { \
276 echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \
277 $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
278 } \
279 ; done
280
281 uninstall-binPROGRAMS:
282 @$(NORMAL_UNINSTALL)
283 @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
284 files=`for p in $$list; do echo "$$p"; done | \
285 sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
286 -e 's/$$/$(EXEEXT)/' `; \
287 test -n "$$list" || exit 0; \
288 echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
289 cd "$(DESTDIR)$(bindir)" && rm -f $$files
290
291 clean-binPROGRAMS:
292 @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \
293 echo " rm -f" $$list; \
294 rm -f $$list || exit $$?; \
295 test -n "$(EXEEXT)" || exit 0; \
296 list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
297 echo " rm -f" $$list; \
298 rm -f $$list
299 mpcenc$(EXEEXT): $(mpcenc_OBJECTS) $(mpcenc_DEPENDENCIES)
300 @rm -f mpcenc$(EXEEXT)
301 $(mpcenc_LINK) $(mpcenc_OBJECTS) $(mpcenc_LDADD) $(LIBS)
302
303 mostlyclean-compile:
304 -rm -f *.$(OBJEXT)
305
306 distclean-compile:
307 -rm -f *.tab.c
308
309 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/crc32.Po@am__quote@
310 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fastmath.Po@am__quote@
311 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/huffman-bcl.Po@am__quote@
312 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/keyboard.Po@am__quote@
313 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mpcenc.Po@am__quote@
314 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pipeopen.Po@am__quote@
315 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/stderr.Po@am__quote@
316 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tags.Po@am__quote@
317 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/wave_in.Po@am__quote@
318 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/winmsg.Po@am__quote@
319
320 .c.o:
321 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
322 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
323 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
324 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
325 @am__fastdepCC_FALSE@ $(COMPILE) -c $<
326
327 .c.obj:
328 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
329 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
330 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
331 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
332 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
333
334 .c.lo:
335 @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
336 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
337 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
338 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
339 @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
340
341 crc32.o: ../common/crc32.c
342 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT crc32.o -MD -MP -MF $(DEPDIR)/crc32.Tpo -c -o crc32.o `test -f '../common/crc32.c' || echo '$(srcdir)/'`../common/crc32.c
343 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/crc32.Tpo $(DEPDIR)/crc32.Po
344 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../common/crc32.c' object='crc32.o' libtool=no @AMDEPBACKSLASH@
345 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
346 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o crc32.o `test -f '../common/crc32.c' || echo '$(srcdir)/'`../common/crc32.c
347
348 crc32.obj: ../common/crc32.c
349 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT crc32.obj -MD -MP -MF $(DEPDIR)/crc32.Tpo -c -o crc32.obj `if test -f '../common/crc32.c'; then $(CYGPATH_W) '../common/crc32.c'; else $(CYGPATH_W) '$(srcdir)/../common/crc32.c'; fi`
350 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/crc32.Tpo $(DEPDIR)/crc32.Po
351 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../common/crc32.c' object='crc32.obj' libtool=no @AMDEPBACKSLASH@
352 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
353 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o crc32.obj `if test -f '../common/crc32.c'; then $(CYGPATH_W) '../common/crc32.c'; else $(CYGPATH_W) '$(srcdir)/../common/crc32.c'; fi`
354
355 huffman-bcl.o: ../common/huffman-bcl.c
356 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT huffman-bcl.o -MD -MP -MF $(DEPDIR)/huffman-bcl.Tpo -c -o huffman-bcl.o `test -f '../common/huffman-bcl.c' || echo '$(srcdir)/'`../common/huffman-bcl.c
357 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/huffman-bcl.Tpo $(DEPDIR)/huffman-bcl.Po
358 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../common/huffman-bcl.c' object='huffman-bcl.o' libtool=no @AMDEPBACKSLASH@
359 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
360 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o huffman-bcl.o `test -f '../common/huffman-bcl.c' || echo '$(srcdir)/'`../common/huffman-bcl.c
361
362 huffman-bcl.obj: ../common/huffman-bcl.c
363 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT huffman-bcl.obj -MD -MP -MF $(DEPDIR)/huffman-bcl.Tpo -c -o huffman-bcl.obj `if test -f '../common/huffman-bcl.c'; then $(CYGPATH_W) '../common/huffman-bcl.c'; else $(CYGPATH_W) '$(srcdir)/../common/huffman-bcl.c'; fi`
364 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/huffman-bcl.Tpo $(DEPDIR)/huffman-bcl.Po
365 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../common/huffman-bcl.c' object='huffman-bcl.obj' libtool=no @AMDEPBACKSLASH@
366 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
367 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o huffman-bcl.obj `if test -f '../common/huffman-bcl.c'; then $(CYGPATH_W) '../common/huffman-bcl.c'; else $(CYGPATH_W) '$(srcdir)/../common/huffman-bcl.c'; fi`
368
369 fastmath.o: ../common/fastmath.c
370 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT fastmath.o -MD -MP -MF $(DEPDIR)/fastmath.Tpo -c -o fastmath.o `test -f '../common/fastmath.c' || echo '$(srcdir)/'`../common/fastmath.c
371 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/fastmath.Tpo $(DEPDIR)/fastmath.Po
372 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../common/fastmath.c' object='fastmath.o' libtool=no @AMDEPBACKSLASH@
373 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
374 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o fastmath.o `test -f '../common/fastmath.c' || echo '$(srcdir)/'`../common/fastmath.c
375
376 fastmath.obj: ../common/fastmath.c
377 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT fastmath.obj -MD -MP -MF $(DEPDIR)/fastmath.Tpo -c -o fastmath.obj `if test -f '../common/fastmath.c'; then $(CYGPATH_W) '../common/fastmath.c'; else $(CYGPATH_W) '$(srcdir)/../common/fastmath.c'; fi`
378 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/fastmath.Tpo $(DEPDIR)/fastmath.Po
379 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../common/fastmath.c' object='fastmath.obj' libtool=no @AMDEPBACKSLASH@
380 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
381 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o fastmath.obj `if test -f '../common/fastmath.c'; then $(CYGPATH_W) '../common/fastmath.c'; else $(CYGPATH_W) '$(srcdir)/../common/fastmath.c'; fi`
382
383 tags.o: ../common/tags.c
384 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT tags.o -MD -MP -MF $(DEPDIR)/tags.Tpo -c -o tags.o `test -f '../common/tags.c' || echo '$(srcdir)/'`../common/tags.c
385 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/tags.Tpo $(DEPDIR)/tags.Po
386 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../common/tags.c' object='tags.o' libtool=no @AMDEPBACKSLASH@
387 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
388 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o tags.o `test -f '../common/tags.c' || echo '$(srcdir)/'`../common/tags.c
389
390 tags.obj: ../common/tags.c
391 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT tags.obj -MD -MP -MF $(DEPDIR)/tags.Tpo -c -o tags.obj `if test -f '../common/tags.c'; then $(CYGPATH_W) '../common/tags.c'; else $(CYGPATH_W) '$(srcdir)/../common/tags.c'; fi`
392 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/tags.Tpo $(DEPDIR)/tags.Po
393 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../common/tags.c' object='tags.obj' libtool=no @AMDEPBACKSLASH@
394 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
395 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o tags.obj `if test -f '../common/tags.c'; then $(CYGPATH_W) '../common/tags.c'; else $(CYGPATH_W) '$(srcdir)/../common/tags.c'; fi`
396
397 mostlyclean-libtool:
398 -rm -f *.lo
399
400 clean-libtool:
401 -rm -rf .libs _libs
402
403 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
404 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
405 unique=`for i in $$list; do \
406 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
407 done | \
408 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
409 END { if (nonempty) { for (i in files) print i; }; }'`; \
410 mkid -fID $$unique
411 tags: TAGS
412
413 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
414 $(TAGS_FILES) $(LISP)
415 set x; \
416 here=`pwd`; \
417 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
418 unique=`for i in $$list; do \
419 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
420 done | \
421 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
422 END { if (nonempty) { for (i in files) print i; }; }'`; \
423 shift; \
424 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
425 test -n "$$unique" || unique=$$empty_fix; \
426 if test $$# -gt 0; then \
427 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
428 "$$@" $$unique; \
429 else \
430 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
431 $$unique; \
432 fi; \
433 fi
434 ctags: CTAGS
435 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
436 $(TAGS_FILES) $(LISP)
437 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
438 unique=`for i in $$list; do \
439 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
440 done | \
441 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
442 END { if (nonempty) { for (i in files) print i; }; }'`; \
443 test -z "$(CTAGS_ARGS)$$unique" \
444 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
445 $$unique
446
447 GTAGS:
448 here=`$(am__cd) $(top_builddir) && pwd` \
449 && $(am__cd) $(top_srcdir) \
450 && gtags -i $(GTAGS_ARGS) "$$here"
451
452 distclean-tags:
453 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
454
455 distdir: $(DISTFILES)
456 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
457 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
458 list='$(DISTFILES)'; \
459 dist_files=`for file in $$list; do echo $$file; done | \
460 sed -e "s|^$$srcdirstrip/||;t" \
461 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
462 case $$dist_files in \
463 */*) $(MKDIR_P) `echo "$$dist_files" | \
464 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
465 sort -u` ;; \
466 esac; \
467 for file in $$dist_files; do \
468 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
469 if test -d $$d/$$file; then \
470 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
471 if test -d "$(distdir)/$$file"; then \
472 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
473 fi; \
474 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
475 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
476 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
477 fi; \
478 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
479 else \
480 test -f "$(distdir)/$$file" \
481 || cp -p $$d/$$file "$(distdir)/$$file" \
482 || exit 1; \
483 fi; \
484 done
485 check-am: all-am
486 check: check-am
487 all-am: Makefile $(PROGRAMS)
488 installdirs:
489 for dir in "$(DESTDIR)$(bindir)"; do \
490 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
491 done
492 install: install-am
493 install-exec: install-exec-am
494 install-data: install-data-am
495 uninstall: uninstall-am
496
497 install-am: all-am
498 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
499
500 installcheck: installcheck-am
501 install-strip:
502 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
503 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
504 `test -z '$(STRIP)' || \
505 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
506 mostlyclean-generic:
507
508 clean-generic:
509
510 distclean-generic:
511 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
512 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
513
514 maintainer-clean-generic:
515 @echo "This command is intended for maintainers to use"
516 @echo "it deletes files that may require special tools to rebuild."
517 clean: clean-am
518
519 clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am
520
521 distclean: distclean-am
522 -rm -rf ./$(DEPDIR)
523 -rm -f Makefile
524 distclean-am: clean-am distclean-compile distclean-generic \
525 distclean-tags
526
527 dvi: dvi-am
528
529 dvi-am:
530
531 html: html-am
532
533 html-am:
534
535 info: info-am
536
537 info-am:
538
539 install-data-am:
540
541 install-dvi: install-dvi-am
542
543 install-dvi-am:
544
545 install-exec-am: install-binPROGRAMS
546
547 install-html: install-html-am
548
549 install-html-am:
550
551 install-info: install-info-am
552
553 install-info-am:
554
555 install-man:
556
557 install-pdf: install-pdf-am
558
559 install-pdf-am:
560
561 install-ps: install-ps-am
562
563 install-ps-am:
564
565 installcheck-am:
566
567 maintainer-clean: maintainer-clean-am
568 -rm -rf ./$(DEPDIR)
569 -rm -f Makefile
570 maintainer-clean-am: distclean-am maintainer-clean-generic
571
572 mostlyclean: mostlyclean-am
573
574 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
575 mostlyclean-libtool
576
577 pdf: pdf-am
578
579 pdf-am:
580
581 ps: ps-am
582
583 ps-am:
584
585 uninstall-am: uninstall-binPROGRAMS
586
587 .MAKE: install-am install-strip
588
589 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
590 clean-generic clean-libtool ctags distclean distclean-compile \
591 distclean-generic distclean-libtool distclean-tags distdir dvi \
592 dvi-am html html-am info info-am install install-am \
593 install-binPROGRAMS install-data install-data-am install-dvi \
594 install-dvi-am install-exec install-exec-am install-html \
595 install-html-am install-info install-info-am install-man \
596 install-pdf install-pdf-am install-ps install-ps-am \
597 install-strip installcheck installcheck-am installdirs \
598 maintainer-clean maintainer-clean-generic mostlyclean \
599 mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
600 pdf pdf-am ps ps-am tags uninstall uninstall-am \
601 uninstall-binPROGRAMS
602
603
604 # Tell versions [3.59,3.63) of GNU make to not export all variables.
605 # Otherwise a system limit (for SysV at least) may be exceeded.
606 .NOEXPORT:
(No changes)
(No changes)
(No changes)
(No changes)
(No changes)
(No changes)
5252 {
5353 char buff [2 * 1024 + 3072];
5454 char* p = buff;
55 char* q;
5655 int ret;
5756 va_list v;
5857
7574 // for Windows systems we must merge carriage returns into the stream to avoid staircases
7675 // Also escape sequences must be detected and replaced (incomplete now)
7776
78 char buff [128];
77 char buff [128], *q;
7978 static int init = 0;
8079 CONSOLE_SCREEN_BUFFER_INFO con_info;
8180 static HANDLE hSTDERR;
166165 }
167166
168167 #else
169
168 char * q;
170169 // for non-Unix systems we must merge carriage returns into the stream to avoid staircases
171170 while ( ( q = strchr (p, '\n')) != NULL ) {
172171 WRITE ( stderr, p, q-p );
(No changes)
(No changes)
1919 target_link_libraries(mpcgain ${REPLAY_GAIN_LIBRARY})
2020
2121 if(SHARED)
22 target_link_libraries(mpcgain mpcdec_shared)
22 target_link_libraries(mpcgain mpcdec)
2323 else(SHARED)
2424 target_link_libraries(mpcgain mpcdec_static)
2525 endif(SHARED)
(No changes)
+0
-516
mpcgain/Makefile.in less more
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
6 # This Makefile.in is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 # PARTICULAR PURPOSE.
14
15 @SET_MAKE@
16
17 VPATH = @srcdir@
18 pkgdatadir = $(datadir)/@PACKAGE@
19 pkgincludedir = $(includedir)/@PACKAGE@
20 pkglibdir = $(libdir)/@PACKAGE@
21 pkglibexecdir = $(libexecdir)/@PACKAGE@
22 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
23 install_sh_DATA = $(install_sh) -c -m 644
24 install_sh_PROGRAM = $(install_sh) -c
25 install_sh_SCRIPT = $(install_sh) -c
26 INSTALL_HEADER = $(INSTALL_DATA)
27 transform = $(program_transform_name)
28 NORMAL_INSTALL = :
29 PRE_INSTALL = :
30 POST_INSTALL = :
31 NORMAL_UNINSTALL = :
32 PRE_UNINSTALL = :
33 POST_UNINSTALL = :
34 build_triplet = @build@
35 host_triplet = @host@
36 @HAVE_VISIBILITY_TRUE@am__append_1 = -fvisibility=hidden
37 bin_PROGRAMS = mpcgain$(EXEEXT)
38 subdir = mpcgain
39 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
40 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
41 am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
42 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
43 $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
44 $(top_srcdir)/configure.in
45 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
46 $(ACLOCAL_M4)
47 mkinstalldirs = $(install_sh) -d
48 CONFIG_HEADER = $(top_builddir)/include/config.h
49 CONFIG_CLEAN_FILES =
50 CONFIG_CLEAN_VPATH_FILES =
51 am__installdirs = "$(DESTDIR)$(bindir)"
52 PROGRAMS = $(bin_PROGRAMS)
53 am_mpcgain_OBJECTS = mpcgain.$(OBJEXT)
54 mpcgain_OBJECTS = $(am_mpcgain_OBJECTS)
55 mpcgain_DEPENDENCIES = $(top_builddir)/libmpcdec/libmpcdec.la
56 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include
57 depcomp = $(SHELL) $(top_srcdir)/config/depcomp
58 am__depfiles_maybe = depfiles
59 am__mv = mv -f
60 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
61 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
62 LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
63 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
64 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65 CCLD = $(CC)
66 LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
67 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
68 $(LDFLAGS) -o $@
69 SOURCES = $(mpcgain_SOURCES)
70 DIST_SOURCES = $(mpcgain_SOURCES)
71 ETAGS = etags
72 CTAGS = ctags
73 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
74 ACLOCAL = @ACLOCAL@
75 AMTAR = @AMTAR@
76 AR = @AR@
77 AS = @AS@
78 AUTOCONF = @AUTOCONF@
79 AUTOHEADER = @AUTOHEADER@
80 AUTOMAKE = @AUTOMAKE@
81 AWK = @AWK@
82 CC = @CC@
83 CCDEPMODE = @CCDEPMODE@
84 CFLAGS = @CFLAGS@
85 CPP = @CPP@
86 CPPFLAGS = @CPPFLAGS@
87 CYGPATH_W = @CYGPATH_W@
88 DEFS = @DEFS@
89 DEPDIR = @DEPDIR@
90 DLLTOOL = @DLLTOOL@
91 DSYMUTIL = @DSYMUTIL@
92 DUMPBIN = @DUMPBIN@
93 ECHO_C = @ECHO_C@
94 ECHO_N = @ECHO_N@
95 ECHO_T = @ECHO_T@
96 EGREP = @EGREP@
97 EXEEXT = @EXEEXT@
98 EXTRALIBS = @EXTRALIBS@
99 FGREP = @FGREP@
100 GREP = @GREP@
101 INSTALL = @INSTALL@
102 INSTALL_DATA = @INSTALL_DATA@
103 INSTALL_PROGRAM = @INSTALL_PROGRAM@
104 INSTALL_SCRIPT = @INSTALL_SCRIPT@
105 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
106 LD = @LD@
107 LDFLAGS = @LDFLAGS@
108 LIBOBJS = @LIBOBJS@
109 LIBS = @LIBS@
110 LIBTOOL = @LIBTOOL@
111 LIPO = @LIPO@
112 LN_S = @LN_S@
113 LTLIBOBJS = @LTLIBOBJS@
114 MAKEINFO = @MAKEINFO@
115 MKDIR_P = @MKDIR_P@
116 NM = @NM@
117 NMEDIT = @NMEDIT@
118 OBJDUMP = @OBJDUMP@
119 OBJEXT = @OBJEXT@
120 OTOOL = @OTOOL@
121 OTOOL64 = @OTOOL64@
122 PACKAGE = @PACKAGE@
123 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
124 PACKAGE_NAME = @PACKAGE_NAME@
125 PACKAGE_STRING = @PACKAGE_STRING@
126 PACKAGE_TARNAME = @PACKAGE_TARNAME@
127 PACKAGE_URL = @PACKAGE_URL@
128 PACKAGE_VERSION = @PACKAGE_VERSION@
129 PATH_SEPARATOR = @PATH_SEPARATOR@
130 RANLIB = @RANLIB@
131 SED = @SED@
132 SET_MAKE = @SET_MAKE@
133 SHELL = @SHELL@
134 STRIP = @STRIP@
135 VERSION = @VERSION@
136 abs_builddir = @abs_builddir@
137 abs_srcdir = @abs_srcdir@
138 abs_top_builddir = @abs_top_builddir@
139 abs_top_srcdir = @abs_top_srcdir@
140 ac_ct_CC = @ac_ct_CC@
141 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
142 am__include = @am__include@
143 am__leading_dot = @am__leading_dot@
144 am__quote = @am__quote@
145 am__tar = @am__tar@
146 am__untar = @am__untar@
147 bindir = @bindir@
148 build = @build@
149 build_alias = @build_alias@
150 build_cpu = @build_cpu@
151 build_os = @build_os@
152 build_vendor = @build_vendor@
153 builddir = @builddir@
154 datadir = @datadir@
155 datarootdir = @datarootdir@
156 docdir = @docdir@
157 dvidir = @dvidir@
158 exec_prefix = @exec_prefix@
159 host = @host@
160 host_alias = @host_alias@
161 host_cpu = @host_cpu@
162 host_os = @host_os@
163 host_vendor = @host_vendor@
164 htmldir = @htmldir@
165 includedir = @includedir@
166 infodir = @infodir@
167 install_sh = @install_sh@
168 libdir = @libdir@
169 libexecdir = @libexecdir@
170 localedir = @localedir@
171 localstatedir = @localstatedir@
172 lt_ECHO = @lt_ECHO@
173 mandir = @mandir@
174 mkdir_p = @mkdir_p@
175 oldincludedir = @oldincludedir@
176 pdfdir = @pdfdir@
177 prefix = @prefix@
178 program_transform_name = @program_transform_name@
179 psdir = @psdir@
180 sbindir = @sbindir@
181 sharedstatedir = @sharedstatedir@
182 srcdir = @srcdir@
183 sysconfdir = @sysconfdir@
184 target_alias = @target_alias@
185 top_build_prefix = @top_build_prefix@
186 top_builddir = @top_builddir@
187 top_srcdir = @top_srcdir@
188 EXTRA_DIST = CMakeLists.txt
189 AM_CPPFLAGS = -I$(top_srcdir)/include
190 AM_CFLAGS = -ffast-math $(am__append_1)
191 METASOURCES = AUTO
192 mpcgain_LDADD = -lm -lreplaygain \
193 $(top_builddir)/libmpcdec/libmpcdec.la
194
195 mpcgain_SOURCES = mpcgain.c
196 all: all-am
197
198 .SUFFIXES:
199 .SUFFIXES: .c .lo .o .obj
200 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
201 @for dep in $?; do \
202 case '$(am__configure_deps)' in \
203 *$$dep*) \
204 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
205 && { if test -f $@; then exit 0; else break; fi; }; \
206 exit 1;; \
207 esac; \
208 done; \
209 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu mpcgain/Makefile'; \
210 $(am__cd) $(top_srcdir) && \
211 $(AUTOMAKE) --gnu mpcgain/Makefile
212 .PRECIOUS: Makefile
213 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
214 @case '$?' in \
215 *config.status*) \
216 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
217 *) \
218 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
219 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
220 esac;
221
222 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
223 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
224
225 $(top_srcdir)/configure: $(am__configure_deps)
226 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
227 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
228 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
229 $(am__aclocal_m4_deps):
230 install-binPROGRAMS: $(bin_PROGRAMS)
231 @$(NORMAL_INSTALL)
232 test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
233 @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
234 for p in $$list; do echo "$$p $$p"; done | \
235 sed 's/$(EXEEXT)$$//' | \
236 while read p p1; do if test -f $$p || test -f $$p1; \
237 then echo "$$p"; echo "$$p"; else :; fi; \
238 done | \
239 sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \
240 -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
241 sed 'N;N;N;s,\n, ,g' | \
242 $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
243 { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
244 if ($$2 == $$4) files[d] = files[d] " " $$1; \
245 else { print "f", $$3 "/" $$4, $$1; } } \
246 END { for (d in files) print "f", d, files[d] }' | \
247 while read type dir files; do \
248 if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
249 test -z "$$files" || { \
250 echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \
251 $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
252 } \
253 ; done
254
255 uninstall-binPROGRAMS:
256 @$(NORMAL_UNINSTALL)
257 @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
258 files=`for p in $$list; do echo "$$p"; done | \
259 sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
260 -e 's/$$/$(EXEEXT)/' `; \
261 test -n "$$list" || exit 0; \
262 echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
263 cd "$(DESTDIR)$(bindir)" && rm -f $$files
264
265 clean-binPROGRAMS:
266 @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \
267 echo " rm -f" $$list; \
268 rm -f $$list || exit $$?; \
269 test -n "$(EXEEXT)" || exit 0; \
270 list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
271 echo " rm -f" $$list; \
272 rm -f $$list
273 mpcgain$(EXEEXT): $(mpcgain_OBJECTS) $(mpcgain_DEPENDENCIES)
274 @rm -f mpcgain$(EXEEXT)
275 $(LINK) $(mpcgain_OBJECTS) $(mpcgain_LDADD) $(LIBS)
276
277 mostlyclean-compile:
278 -rm -f *.$(OBJEXT)
279
280 distclean-compile:
281 -rm -f *.tab.c
282
283 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mpcgain.Po@am__quote@
284
285 .c.o:
286 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
287 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
288 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
289 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
290 @am__fastdepCC_FALSE@ $(COMPILE) -c $<
291
292 .c.obj:
293 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
294 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
295 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
296 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
297 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
298
299 .c.lo:
300 @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
301 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
302 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
303 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
304 @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
305
306 mostlyclean-libtool:
307 -rm -f *.lo
308
309 clean-libtool:
310 -rm -rf .libs _libs
311
312 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
313 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
314 unique=`for i in $$list; do \
315 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
316 done | \
317 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
318 END { if (nonempty) { for (i in files) print i; }; }'`; \
319 mkid -fID $$unique
320 tags: TAGS
321
322 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
323 $(TAGS_FILES) $(LISP)
324 set x; \
325 here=`pwd`; \
326 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
327 unique=`for i in $$list; do \
328 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
329 done | \
330 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
331 END { if (nonempty) { for (i in files) print i; }; }'`; \
332 shift; \
333 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
334 test -n "$$unique" || unique=$$empty_fix; \
335 if test $$# -gt 0; then \
336 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
337 "$$@" $$unique; \
338 else \
339 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
340 $$unique; \
341 fi; \
342 fi
343 ctags: CTAGS
344 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
345 $(TAGS_FILES) $(LISP)
346 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
347 unique=`for i in $$list; do \
348 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
349 done | \
350 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
351 END { if (nonempty) { for (i in files) print i; }; }'`; \
352 test -z "$(CTAGS_ARGS)$$unique" \
353 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
354 $$unique
355
356 GTAGS:
357 here=`$(am__cd) $(top_builddir) && pwd` \
358 && $(am__cd) $(top_srcdir) \
359 && gtags -i $(GTAGS_ARGS) "$$here"
360
361 distclean-tags:
362 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
363
364 distdir: $(DISTFILES)
365 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
366 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
367 list='$(DISTFILES)'; \
368 dist_files=`for file in $$list; do echo $$file; done | \
369 sed -e "s|^$$srcdirstrip/||;t" \
370 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
371 case $$dist_files in \
372 */*) $(MKDIR_P) `echo "$$dist_files" | \
373 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
374 sort -u` ;; \
375 esac; \
376 for file in $$dist_files; do \
377 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
378 if test -d $$d/$$file; then \
379 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
380 if test -d "$(distdir)/$$file"; then \
381 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
382 fi; \
383 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
384 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
385 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
386 fi; \
387 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
388 else \
389 test -f "$(distdir)/$$file" \
390 || cp -p $$d/$$file "$(distdir)/$$file" \
391 || exit 1; \
392 fi; \
393 done
394 check-am: all-am
395 check: check-am
396 all-am: Makefile $(PROGRAMS)
397 installdirs:
398 for dir in "$(DESTDIR)$(bindir)"; do \
399 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
400 done
401 install: install-am
402 install-exec: install-exec-am
403 install-data: install-data-am
404 uninstall: uninstall-am
405
406 install-am: all-am
407 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
408
409 installcheck: installcheck-am
410 install-strip:
411 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
412 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
413 `test -z '$(STRIP)' || \
414 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
415 mostlyclean-generic:
416
417 clean-generic:
418
419 distclean-generic:
420 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
421 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
422
423 maintainer-clean-generic:
424 @echo "This command is intended for maintainers to use"
425 @echo "it deletes files that may require special tools to rebuild."
426 clean: clean-am
427
428 clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am
429
430 distclean: distclean-am
431 -rm -rf ./$(DEPDIR)
432 -rm -f Makefile
433 distclean-am: clean-am distclean-compile distclean-generic \
434 distclean-tags
435
436 dvi: dvi-am
437
438 dvi-am:
439
440 html: html-am
441
442 html-am:
443
444 info: info-am
445
446 info-am:
447
448 install-data-am:
449
450 install-dvi: install-dvi-am
451
452 install-dvi-am:
453
454 install-exec-am: install-binPROGRAMS
455
456 install-html: install-html-am
457
458 install-html-am:
459
460 install-info: install-info-am
461
462 install-info-am:
463
464 install-man:
465
466 install-pdf: install-pdf-am
467
468 install-pdf-am:
469
470 install-ps: install-ps-am
471
472 install-ps-am:
473
474 installcheck-am:
475
476 maintainer-clean: maintainer-clean-am
477 -rm -rf ./$(DEPDIR)
478 -rm -f Makefile
479 maintainer-clean-am: distclean-am maintainer-clean-generic
480
481 mostlyclean: mostlyclean-am
482
483 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
484 mostlyclean-libtool
485
486 pdf: pdf-am
487
488 pdf-am:
489
490 ps: ps-am
491
492 ps-am:
493
494 uninstall-am: uninstall-binPROGRAMS
495
496 .MAKE: install-am install-strip
497
498 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
499 clean-generic clean-libtool ctags distclean distclean-compile \
500 distclean-generic distclean-libtool distclean-tags distdir dvi \
501 dvi-am html html-am info info-am install install-am \
502 install-binPROGRAMS install-data install-data-am install-dvi \
503 install-dvi-am install-exec install-exec-am install-html \
504 install-html-am install-info install-info-am install-man \
505 install-pdf install-pdf-am install-ps install-ps-am \
506 install-strip installcheck installcheck-am installdirs \
507 maintainer-clean maintainer-clean-generic mostlyclean \
508 mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
509 pdf pdf-am ps ps-am tags uninstall uninstall-am \
510 uninstall-binPROGRAMS
511
512
513 # Tell versions [3.59,3.63) of GNU make to not export all variables.
514 # Otherwise a system limit (for SysV at least) may be exceeded.
515 .NOEXPORT:
(No changes)
0 include_directories(${libmpc_SOURCE_DIR}/libwavformat)
1 link_directories(${libmpc_BINARY_DIR}/libwavformat)
2
3 add_executable(wavcmp wavcmp.c)
4
5 target_link_libraries(wavcmp wavformat_static)
6
7 install(TARGETS wavcmp RUNTIME DESTINATION bin)
(No changes)
+0
-512
wavcmp/Makefile.in less more
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
6 # This Makefile.in is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 # PARTICULAR PURPOSE.
14
15 @SET_MAKE@
16
17 VPATH = @srcdir@
18 pkgdatadir = $(datadir)/@PACKAGE@
19 pkgincludedir = $(includedir)/@PACKAGE@
20 pkglibdir = $(libdir)/@PACKAGE@
21 pkglibexecdir = $(libexecdir)/@PACKAGE@
22 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
23 install_sh_DATA = $(install_sh) -c -m 644
24 install_sh_PROGRAM = $(install_sh) -c
25 install_sh_SCRIPT = $(install_sh) -c
26 INSTALL_HEADER = $(INSTALL_DATA)
27 transform = $(program_transform_name)
28 NORMAL_INSTALL = :
29 PRE_INSTALL = :
30 POST_INSTALL = :
31 NORMAL_UNINSTALL = :
32 PRE_UNINSTALL = :
33 POST_UNINSTALL = :
34 build_triplet = @build@
35 host_triplet = @host@
36 bin_PROGRAMS = wavcmp$(EXEEXT)
37 subdir = wavcmp
38 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
39 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
40 am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
42 $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
43 $(top_srcdir)/configure.in
44 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
45 $(ACLOCAL_M4)
46 mkinstalldirs = $(install_sh) -d
47 CONFIG_HEADER = $(top_builddir)/include/config.h
48 CONFIG_CLEAN_FILES =
49 CONFIG_CLEAN_VPATH_FILES =
50 am__installdirs = "$(DESTDIR)$(bindir)"
51 PROGRAMS = $(bin_PROGRAMS)
52 am_wavcmp_OBJECTS = wavcmp.$(OBJEXT)
53 wavcmp_OBJECTS = $(am_wavcmp_OBJECTS)
54 wavcmp_DEPENDENCIES = $(top_builddir)/libwavformat/libwavformat.a
55 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include
56 depcomp = $(SHELL) $(top_srcdir)/config/depcomp
57 am__depfiles_maybe = depfiles
58 am__mv = mv -f
59 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
60 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
61 LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
62 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
63 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
64 CCLD = $(CC)
65 LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
66 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
67 $(LDFLAGS) -o $@
68 SOURCES = $(wavcmp_SOURCES)
69 DIST_SOURCES = $(wavcmp_SOURCES)
70 ETAGS = etags
71 CTAGS = ctags
72 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
73 ACLOCAL = @ACLOCAL@
74 AMTAR = @AMTAR@
75 AR = @AR@
76 AS = @AS@
77 AUTOCONF = @AUTOCONF@
78 AUTOHEADER = @AUTOHEADER@
79 AUTOMAKE = @AUTOMAKE@
80 AWK = @AWK@
81 CC = @CC@
82 CCDEPMODE = @CCDEPMODE@
83 CFLAGS = @CFLAGS@
84 CPP = @CPP@
85 CPPFLAGS = @CPPFLAGS@
86 CYGPATH_W = @CYGPATH_W@
87 DEFS = @DEFS@
88 DEPDIR = @DEPDIR@
89 DLLTOOL = @DLLTOOL@
90 DSYMUTIL = @DSYMUTIL@
91 DUMPBIN = @DUMPBIN@
92 ECHO_C = @ECHO_C@
93 ECHO_N = @ECHO_N@
94 ECHO_T = @ECHO_T@
95 EGREP = @EGREP@
96 EXEEXT = @EXEEXT@
97 EXTRALIBS = @EXTRALIBS@
98 FGREP = @FGREP@
99 GREP = @GREP@
100 INSTALL = @INSTALL@
101 INSTALL_DATA = @INSTALL_DATA@
102 INSTALL_PROGRAM = @INSTALL_PROGRAM@
103 INSTALL_SCRIPT = @INSTALL_SCRIPT@
104 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
105 LD = @LD@
106 LDFLAGS = @LDFLAGS@
107 LIBOBJS = @LIBOBJS@
108 LIBS = @LIBS@
109 LIBTOOL = @LIBTOOL@
110 LIPO = @LIPO@
111 LN_S = @LN_S@
112 LTLIBOBJS = @LTLIBOBJS@
113 MAKEINFO = @MAKEINFO@
114 MKDIR_P = @MKDIR_P@
115 NM = @NM@
116 NMEDIT = @NMEDIT@
117 OBJDUMP = @OBJDUMP@
118 OBJEXT = @OBJEXT@
119 OTOOL = @OTOOL@
120 OTOOL64 = @OTOOL64@
121 PACKAGE = @PACKAGE@
122 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
123 PACKAGE_NAME = @PACKAGE_NAME@
124 PACKAGE_STRING = @PACKAGE_STRING@
125 PACKAGE_TARNAME = @PACKAGE_TARNAME@
126 PACKAGE_URL = @PACKAGE_URL@
127 PACKAGE_VERSION = @PACKAGE_VERSION@
128 PATH_SEPARATOR = @PATH_SEPARATOR@
129 RANLIB = @RANLIB@
130 SED = @SED@
131 SET_MAKE = @SET_MAKE@
132 SHELL = @SHELL@
133 STRIP = @STRIP@
134 VERSION = @VERSION@
135 abs_builddir = @abs_builddir@
136 abs_srcdir = @abs_srcdir@
137 abs_top_builddir = @abs_top_builddir@
138 abs_top_srcdir = @abs_top_srcdir@
139 ac_ct_CC = @ac_ct_CC@
140 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
141 am__include = @am__include@
142 am__leading_dot = @am__leading_dot@
143 am__quote = @am__quote@
144 am__tar = @am__tar@
145 am__untar = @am__untar@
146 bindir = @bindir@
147 build = @build@
148 build_alias = @build_alias@
149 build_cpu = @build_cpu@
150 build_os = @build_os@
151 build_vendor = @build_vendor@
152 builddir = @builddir@
153 datadir = @datadir@
154 datarootdir = @datarootdir@
155 docdir = @docdir@
156 dvidir = @dvidir@
157 exec_prefix = @exec_prefix@
158 host = @host@
159 host_alias = @host_alias@
160 host_cpu = @host_cpu@
161 host_os = @host_os@
162 host_vendor = @host_vendor@
163 htmldir = @htmldir@
164 includedir = @includedir@
165 infodir = @infodir@
166 install_sh = @install_sh@
167 libdir = @libdir@
168 libexecdir = @libexecdir@
169 localedir = @localedir@
170 localstatedir = @localstatedir@
171 lt_ECHO = @lt_ECHO@
172 mandir = @mandir@
173 mkdir_p = @mkdir_p@
174 oldincludedir = @oldincludedir@
175 pdfdir = @pdfdir@
176 prefix = @prefix@
177 program_transform_name = @program_transform_name@
178 psdir = @psdir@
179 sbindir = @sbindir@
180 sharedstatedir = @sharedstatedir@
181 srcdir = @srcdir@
182 sysconfdir = @sysconfdir@
183 target_alias = @target_alias@
184 top_build_prefix = @top_build_prefix@
185 top_builddir = @top_builddir@
186 top_srcdir = @top_srcdir@
187 AM_CPPFLAGS = -I$(top_srcdir)/libwavformat
188 @HAVE_VISIBILITY_TRUE@AM_CFLAGS = -fvisibility=hidden
189 METASOURCES = AUTO
190 wavcmp_SOURCES = wavcmp.c
191 wavcmp_LDADD = $(top_builddir)/libwavformat/libwavformat.a
192 all: all-am
193
194 .SUFFIXES:
195 .SUFFIXES: .c .lo .o .obj
196 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
197 @for dep in $?; do \
198 case '$(am__configure_deps)' in \
199 *$$dep*) \
200 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
201 && { if test -f $@; then exit 0; else break; fi; }; \
202 exit 1;; \
203 esac; \
204 done; \
205 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu wavcmp/Makefile'; \
206 $(am__cd) $(top_srcdir) && \
207 $(AUTOMAKE) --gnu wavcmp/Makefile
208 .PRECIOUS: Makefile
209 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
210 @case '$?' in \
211 *config.status*) \
212 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
213 *) \
214 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
215 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
216 esac;
217
218 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
219 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
220
221 $(top_srcdir)/configure: $(am__configure_deps)
222 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
223 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
224 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
225 $(am__aclocal_m4_deps):
226 install-binPROGRAMS: $(bin_PROGRAMS)
227 @$(NORMAL_INSTALL)
228 test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
229 @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
230 for p in $$list; do echo "$$p $$p"; done | \
231 sed 's/$(EXEEXT)$$//' | \
232 while read p p1; do if test -f $$p || test -f $$p1; \
233 then echo "$$p"; echo "$$p"; else :; fi; \
234 done | \
235 sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \
236 -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
237 sed 'N;N;N;s,\n, ,g' | \
238 $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
239 { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
240 if ($$2 == $$4) files[d] = files[d] " " $$1; \
241 else { print "f", $$3 "/" $$4, $$1; } } \
242 END { for (d in files) print "f", d, files[d] }' | \
243 while read type dir files; do \
244 if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
245 test -z "$$files" || { \
246 echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \
247 $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
248 } \
249 ; done
250
251 uninstall-binPROGRAMS:
252 @$(NORMAL_UNINSTALL)
253 @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
254 files=`for p in $$list; do echo "$$p"; done | \
255 sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
256 -e 's/$$/$(EXEEXT)/' `; \
257 test -n "$$list" || exit 0; \
258 echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
259 cd "$(DESTDIR)$(bindir)" && rm -f $$files
260
261 clean-binPROGRAMS:
262 @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \
263 echo " rm -f" $$list; \
264 rm -f $$list || exit $$?; \
265 test -n "$(EXEEXT)" || exit 0; \
266 list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
267 echo " rm -f" $$list; \
268 rm -f $$list
269 wavcmp$(EXEEXT): $(wavcmp_OBJECTS) $(wavcmp_DEPENDENCIES)
270 @rm -f wavcmp$(EXEEXT)
271 $(LINK) $(wavcmp_OBJECTS) $(wavcmp_LDADD) $(LIBS)
272
273 mostlyclean-compile:
274 -rm -f *.$(OBJEXT)
275
276 distclean-compile:
277 -rm -f *.tab.c
278
279 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/wavcmp.Po@am__quote@
280
281 .c.o:
282 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
283 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
284 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
285 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
286 @am__fastdepCC_FALSE@ $(COMPILE) -c $<
287
288 .c.obj:
289 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
290 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
291 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
292 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
293 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
294
295 .c.lo:
296 @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
297 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
298 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
299 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
300 @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
301
302 mostlyclean-libtool:
303 -rm -f *.lo
304
305 clean-libtool:
306 -rm -rf .libs _libs
307
308 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
309 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
310 unique=`for i in $$list; do \
311 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
312 done | \
313 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
314 END { if (nonempty) { for (i in files) print i; }; }'`; \
315 mkid -fID $$unique
316 tags: TAGS
317
318 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
319 $(TAGS_FILES) $(LISP)
320 set x; \
321 here=`pwd`; \
322 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
323 unique=`for i in $$list; do \
324 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
325 done | \
326 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
327 END { if (nonempty) { for (i in files) print i; }; }'`; \
328 shift; \
329 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
330 test -n "$$unique" || unique=$$empty_fix; \
331 if test $$# -gt 0; then \
332 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
333 "$$@" $$unique; \
334 else \
335 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
336 $$unique; \
337 fi; \
338 fi
339 ctags: CTAGS
340 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
341 $(TAGS_FILES) $(LISP)
342 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
343 unique=`for i in $$list; do \
344 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
345 done | \
346 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
347 END { if (nonempty) { for (i in files) print i; }; }'`; \
348 test -z "$(CTAGS_ARGS)$$unique" \
349 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
350 $$unique
351
352 GTAGS:
353 here=`$(am__cd) $(top_builddir) && pwd` \
354 && $(am__cd) $(top_srcdir) \
355 && gtags -i $(GTAGS_ARGS) "$$here"
356
357 distclean-tags:
358 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
359
360 distdir: $(DISTFILES)
361 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
362 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
363 list='$(DISTFILES)'; \
364 dist_files=`for file in $$list; do echo $$file; done | \
365 sed -e "s|^$$srcdirstrip/||;t" \
366 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
367 case $$dist_files in \
368 */*) $(MKDIR_P) `echo "$$dist_files" | \
369 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
370 sort -u` ;; \
371 esac; \
372 for file in $$dist_files; do \
373 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
374 if test -d $$d/$$file; then \
375 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
376 if test -d "$(distdir)/$$file"; then \
377 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
378 fi; \
379 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
380 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
381 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
382 fi; \
383 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
384 else \
385 test -f "$(distdir)/$$file" \
386 || cp -p $$d/$$file "$(distdir)/$$file" \
387 || exit 1; \
388 fi; \
389 done
390 check-am: all-am
391 check: check-am
392 all-am: Makefile $(PROGRAMS)
393 installdirs:
394 for dir in "$(DESTDIR)$(bindir)"; do \
395 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
396 done
397 install: install-am
398 install-exec: install-exec-am
399 install-data: install-data-am
400 uninstall: uninstall-am
401
402 install-am: all-am
403 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
404
405 installcheck: installcheck-am
406 install-strip:
407 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
408 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
409 `test -z '$(STRIP)' || \
410 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
411 mostlyclean-generic:
412
413 clean-generic:
414
415 distclean-generic:
416 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
417 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
418
419 maintainer-clean-generic:
420 @echo "This command is intended for maintainers to use"
421 @echo "it deletes files that may require special tools to rebuild."
422 clean: clean-am
423
424 clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am
425
426 distclean: distclean-am
427 -rm -rf ./$(DEPDIR)
428 -rm -f Makefile
429 distclean-am: clean-am distclean-compile distclean-generic \
430 distclean-tags
431
432 dvi: dvi-am
433
434 dvi-am:
435
436 html: html-am
437
438 html-am:
439
440 info: info-am
441
442 info-am:
443
444 install-data-am:
445
446 install-dvi: install-dvi-am
447
448 install-dvi-am:
449
450 install-exec-am: install-binPROGRAMS
451
452 install-html: install-html-am
453
454 install-html-am:
455
456 install-info: install-info-am
457
458 install-info-am:
459
460 install-man:
461
462 install-pdf: install-pdf-am
463
464 install-pdf-am:
465
466 install-ps: install-ps-am
467
468 install-ps-am:
469
470 installcheck-am:
471
472 maintainer-clean: maintainer-clean-am
473 -rm -rf ./$(DEPDIR)
474 -rm -f Makefile
475 maintainer-clean-am: distclean-am maintainer-clean-generic
476
477 mostlyclean: mostlyclean-am
478
479 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
480 mostlyclean-libtool
481
482 pdf: pdf-am
483
484 pdf-am:
485
486 ps: ps-am
487
488 ps-am:
489
490 uninstall-am: uninstall-binPROGRAMS
491
492 .MAKE: install-am install-strip
493
494 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
495 clean-generic clean-libtool ctags distclean distclean-compile \
496 distclean-generic distclean-libtool distclean-tags distdir dvi \
497 dvi-am html html-am info info-am install install-am \
498 install-binPROGRAMS install-data install-data-am install-dvi \
499 install-dvi-am install-exec install-exec-am install-html \
500 install-html-am install-info install-info-am install-man \
501 install-pdf install-pdf-am install-ps install-ps-am \
502 install-strip installcheck installcheck-am installdirs \
503 maintainer-clean maintainer-clean-generic mostlyclean \
504 mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
505 pdf pdf-am ps ps-am tags uninstall uninstall-am \
506 uninstall-binPROGRAMS
507
508
509 # Tell versions [3.59,3.63) of GNU make to not export all variables.
510 # Otherwise a system limit (for SysV at least) may be exceeded.
511 .NOEXPORT:
(No changes)
(No changes)
(No changes)
(No changes)
(No changes)
(No changes)
(No changes)
(No changes)
(No changes)
(No changes)
(No changes)
(No changes)
(No changes)