Merge lp:~noskcaj/ubuntu/trusty/cogl/1.16.2 into lp:ubuntu/trusty/cogl

Proposed by Jackson Doak
Status: Work in progress
Proposed branch: lp:~noskcaj/ubuntu/trusty/cogl/1.16.2
Merge into: lp:ubuntu/trusty/cogl
Diff against target: 57345 lines (+2595/-45495)
246 files modified
.pc/0001-Fix-build-on-big-endian.patch/cogl/cogl-texture-2d.c (+0/-653)
.pc/99-ppc64el-support.patch/build/autotools/libtool.m4 (+0/-7982)
.pc/99-ppc64el-support.patch/configure (+0/-31882)
.pc/applied-patches (+0/-2)
Makefile.in (+7/-13)
NEWS (+27/-0)
aclocal.m4 (+39/-103)
build/Makefile.in (+1/-1)
build/autotools/Makefile.am.release (+1/-1)
build/autotools/gtk-doc.m4 (+1/-5)
build/autotools/libtool.m4 (+10/-6)
build/config.guess (+64/-87)
build/config.sub (+17/-15)
build/win32/Makefile.in (+1/-1)
build/win32/vs10/Makefile.in (+1/-1)
build/win32/vs10/test-conformance-cogl.vcxproj (+2/-0)
build/win32/vs10/test-conformance-cogl.vcxproj.filters (+2/-0)
build/win32/vs9/Makefile.in (+1/-1)
build/win32/vs9/test-conformance-cogl.vcproj (+2/-0)
cogl-gles2/Makefile.in (+3/-3)
cogl-gst/Makefile.in (+3/-3)
cogl-gst/cogl-gst-video-sink.c (+53/-8)
cogl-pango/Makefile.in (+3/-3)
cogl-pango/cogl-pango.rc (+4/-4)
cogl-path/Makefile.in (+3/-3)
cogl/Makefile.in (+3/-3)
cogl/cogl-attribute-buffer.c (+0/-1)
cogl/cogl-attribute.c (+1/-0)
cogl/cogl-clip-stack.c (+1/-1)
cogl/cogl-display-private.h (+0/-3)
cogl/cogl-framebuffer-private.h (+3/-0)
cogl/cogl-framebuffer.c (+10/-1)
cogl/cogl-pipeline.c (+31/-18)
cogl/cogl-texture-2d.c (+2/-3)
cogl/cogl-util.h (+2/-20)
cogl/cogl.rc (+4/-4)
cogl/cogl.symbols (+1/-0)
cogl/winsys/cogl-winsys-egl-feature-functions.h (+1/-1)
cogl/winsys/cogl-winsys-egl-private.h (+22/-1)
cogl/winsys/cogl-winsys-egl.c (+1/-1)
cogl/winsys/cogl-winsys-glx.c (+16/-12)
cogl/winsys/cogl-winsys-wgl.c (+0/-2)
config.h.in (+3/-0)
config.h.win32 (+2/-2)
configure (+182/-195)
configure.ac (+4/-4)
debian/changelog (+7/-0)
debian/patches/0001-Fix-build-on-big-endian.patch (+0/-29)
debian/patches/99-ppc64el-support.patch (+0/-55)
debian/patches/series (+0/-2)
deps/Makefile.in (+1/-1)
deps/glib/Makefile.in (+3/-3)
deps/gmodule/Makefile.in (+3/-3)
doc/Makefile.in (+1/-1)
doc/reference/Makefile.in (+1/-1)
doc/reference/cogl-2.0-experimental/Makefile.in (+38/-51)
doc/reference/cogl-2.0-experimental/cogl-2.0-experimental-docs.xml (+1/-1)
doc/reference/cogl-2.0-experimental/html/ch01.html (+3/-3)
doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-2D-textures.html (+10/-10)
doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-3-Component-Vectors.html (+8/-112)
doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-3D-textures.html (+6/-6)
doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-Bitmap.html (+12/-12)
doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-CoglAttributeBuffer---Buffers-of-vertex-attributes.html (+9/-9)
doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-CoglBuffer---The-Buffer-Interface.html (+8/-8)
doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-CoglDisplay---Setup-a-display-pipeline.html (+7/-7)
doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-CoglFramebuffer---The-Framebuffer-Interface.html (+66/-140)
doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-CoglIndexBuffer---Buffers-of-vertex-indices.html (+4/-4)
doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-CoglOnscreen---The-Onscreen-Framebuffer-Interface.html (+4/-4)
doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-CoglOnscreenTemplate---Describe-a-template-for-onscreen-framebuffers.html (+4/-4)
doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-CoglRenderer---Connect-to-a-backend-renderer.html (+11/-11)
doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-Color-Type.html (+8/-8)
doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-Common-Types.html (+3/-3)
doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-Depth-State.html (+2/-2)
doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-Eulers-(Rotations).html (+4/-4)
doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-Exception-handling.html (+30/-140)
doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-GLES-2.0-context.html (+14/-14)
doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-GPU-synchronisation-fences.html (+3/-3)
doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-GType-Integration-API.html (+4/-4)
doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-High-Level-Meta-Textures.html (+2/-2)
doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-Indices.html (+13/-53)
doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-Low-level-primitive-textures.html (+4/-4)
doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-Main-loop-integration.html (+17/-17)
doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-Matrices.html (+67/-253)
doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-Matrix-Stacks.html (+17/-17)
doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-Offscreen-Framebuffers.html (+5/-5)
doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-Path-Primitives.html (+2/-2)
doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-Pipeline.html (+34/-172)
doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-Primitives.html (+86/-374)
doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-Quaternions-(Rotations).html (+9/-115)
doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-Rectangle-textures-(non-normalized-coordinates).html (+7/-7)
doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-Rectangles.html (+2/-2)
doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-SDL-Integration.html (+56/-134)
doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-Shader-snippets.html (+10/-10)
doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-Sliced-Textures.html (+13/-13)
doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-Sub-Textures.html (+4/-4)
doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-The-Object-Interface.html (+22/-58)
doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-The-Texture-Interface.html (+16/-88)
doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-The-Top-Level-Context.html (+20/-20)
doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-Versioning-utility-macros.html (+25/-211)
doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-Vertex-Attributes.html (+12/-86)
doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-X11-Texture-From-Pixmap.html (+8/-32)
doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental.devhelp2 (+0/-4)
doc/reference/cogl-2.0-experimental/html/cogl-Blend-Strings.html (+3/-3)
doc/reference/cogl-2.0-experimental/html/cogl-buffer-apis.html (+2/-2)
doc/reference/cogl-2.0-experimental/html/cogl-buffer-layout-apis.html (+2/-2)
doc/reference/cogl-2.0-experimental/html/cogl-context-apis.html (+2/-2)
doc/reference/cogl-2.0-experimental/html/cogl-framebuffer-apis.html (+2/-2)
doc/reference/cogl-2.0-experimental/html/cogl-general-apis.html (+2/-2)
doc/reference/cogl-2.0-experimental/html/cogl-integration.html (+2/-2)
doc/reference/cogl-2.0-experimental/html/cogl-meta-textures.html (+2/-2)
doc/reference/cogl-2.0-experimental/html/cogl-pipeline-apis.html (+2/-2)
doc/reference/cogl-2.0-experimental/html/cogl-primitive-apis.html (+2/-2)
doc/reference/cogl-2.0-experimental/html/cogl-primitive-textures.html (+2/-2)
doc/reference/cogl-2.0-experimental/html/cogl-textures.html (+2/-2)
doc/reference/cogl-2.0-experimental/html/cogl-utilities.html (+2/-2)
doc/reference/cogl-2.0-experimental/html/coglglossary.html (+18/-18)
doc/reference/cogl-2.0-experimental/html/index.html (+3/-3)
doc/reference/cogl-2.0-experimental/html/index.sgml (+6/-10)
doc/reference/cogl-2.0-experimental/html/ix01.html (+8/-8)
doc/reference/cogl-2.0-experimental/html/ix02.html (+3/-3)
doc/reference/cogl-2.0-experimental/html/ix03.html (+3/-3)
doc/reference/cogl-2.0-experimental/html/ix04.html (+4/-4)
doc/reference/cogl-2.0-experimental/html/ix05.html (+3/-3)
doc/reference/cogl-2.0-experimental/html/ix06.html (+3/-3)
doc/reference/cogl-2.0-experimental/html/license.html (+2/-2)
doc/reference/cogl-gst/Makefile.in (+39/-52)
doc/reference/cogl-gst/cogl-gst-docs.xml (+1/-1)
doc/reference/cogl-gst/html/CoglGstVideoSink.html (+39/-39)
doc/reference/cogl-gst/html/ch01.html (+3/-3)
doc/reference/cogl-gst/html/cogl-gst-general-apis.html (+2/-2)
doc/reference/cogl-gst/html/coglglossary.html (+6/-8)
doc/reference/cogl-gst/html/index.html (+4/-4)
doc/reference/cogl-gst/html/index.sgml (+2/-2)
doc/reference/cogl-gst/html/ix01.html (+3/-3)
doc/reference/cogl-gst/html/license.html (+2/-2)
doc/reference/cogl/Makefile.in (+39/-52)
doc/reference/cogl/cogl-docs.xml (+1/-1)
doc/reference/cogl/html/ch01.html (+3/-3)
doc/reference/cogl/html/ch02.html (+3/-3)
doc/reference/cogl/html/ch03.html (+3/-3)
doc/reference/cogl/html/cogl-3D-textures.html (+23/-23)
doc/reference/cogl/html/cogl-Bitmaps.html (+16/-16)
doc/reference/cogl/html/cogl-Blend-Strings.html (+3/-3)
doc/reference/cogl/html/cogl-Buffers.html (+34/-34)
doc/reference/cogl/html/cogl-Clipping-(Deprecated).html (+4/-4)
doc/reference/cogl/html/cogl-Clipping.html (+5/-5)
doc/reference/cogl/html/cogl-Color-Type.html (+10/-10)
doc/reference/cogl/html/cogl-Fixed-Point-API.html (+4/-38)
doc/reference/cogl/html/cogl-GType-Integration-API.html (+4/-4)
doc/reference/cogl/html/cogl-General-API-(Deprecated).html (+20/-56)
doc/reference/cogl/html/cogl-General-API.html (+109/-389)
doc/reference/cogl/html/cogl-Materials-(Deprecated).html (+4/-4)
doc/reference/cogl/html/cogl-Materials.html (+105/-281)
doc/reference/cogl/html/cogl-Matrices.html (+69/-219)
doc/reference/cogl/html/cogl-Offscreen-Buffers-(Deprecated).html (+4/-4)
doc/reference/cogl/html/cogl-Offscreen-Buffers.html (+80/-118)
doc/reference/cogl/html/cogl-Path-Primitives.html (+2/-2)
doc/reference/cogl/html/cogl-Primitives.html (+6/-6)
doc/reference/cogl/html/cogl-Quaternions-(Rotations).html (+11/-117)
doc/reference/cogl/html/cogl-Shaders-and-Programmable-Pipeline-(Deprecated).html (+14/-14)
doc/reference/cogl/html/cogl-Shaders-and-Programmable-Pipeline.html (+33/-33)
doc/reference/cogl/html/cogl-Textures-(Deprecated).html (+4/-4)
doc/reference/cogl/html/cogl-Textures.html (+74/-74)
doc/reference/cogl/html/cogl-Vectors.html (+12/-116)
doc/reference/cogl/html/cogl-Vertex-Buffers-(Deprecated).html (+2/-2)
doc/reference/cogl/html/cogl-Vertex-Buffers.html (+26/-26)
doc/reference/cogl/html/coglglossary.html (+13/-13)
doc/reference/cogl/html/index.html (+4/-4)
doc/reference/cogl/html/index.sgml (+4/-4)
doc/reference/cogl/html/ix01.html (+75/-75)
doc/reference/cogl/html/ix02.html (+3/-3)
doc/reference/cogl/html/ix03.html (+3/-3)
doc/reference/cogl/html/ix04.html (+3/-3)
doc/reference/cogl/html/ix05.html (+3/-3)
doc/reference/cogl/html/ix06.html (+3/-3)
doc/reference/cogl/html/ix07.html (+3/-3)
doc/reference/cogl/html/ix08.html (+3/-3)
doc/reference/cogl/html/license.html (+2/-2)
examples/Makefile.in (+3/-3)
gtk-doc.make (+25/-45)
po/an.po (+1/-1)
po/ar.po (+1/-1)
po/as.po (+1/-1)
po/ast.po (+1/-1)
po/be.po (+1/-1)
po/bg.po (+1/-1)
po/ca.po (+1/-1)
po/ca@valencia.po (+1/-1)
po/cogl.pot (+2/-2)
po/cs.po (+1/-1)
po/da.po (+1/-1)
po/de.po (+1/-1)
po/el.po (+1/-1)
po/en_CA.po (+1/-1)
po/en_GB.po (+1/-1)
po/eo.po (+1/-1)
po/es.po (+1/-1)
po/eu.po (+1/-1)
po/fa.po (+1/-1)
po/fr.po (+1/-1)
po/gl.po (+1/-1)
po/he.po (+1/-1)
po/hi.po (+1/-1)
po/hu.po (+1/-1)
po/id.po (+1/-1)
po/it.po (+1/-1)
po/ja.po (+1/-1)
po/km.po (+1/-1)
po/kn.po (+1/-1)
po/ko.po (+1/-1)
po/lt.po (+1/-1)
po/lv.po (+1/-1)
po/ml.po (+1/-1)
po/nb.po (+1/-1)
po/nl.po (+1/-1)
po/or.po (+1/-1)
po/pa.po (+1/-1)
po/pl.po (+1/-1)
po/pt.po (+1/-1)
po/pt_BR.po (+1/-1)
po/ru.po (+1/-1)
po/sk.po (+1/-1)
po/sl.po (+1/-1)
po/sr.po (+1/-1)
po/sr@latin.po (+1/-1)
po/sv.po (+1/-1)
po/ta.po (+1/-1)
po/te.po (+1/-1)
po/th.po (+1/-1)
po/tr.po (+1/-1)
po/ug.po (+1/-1)
po/uk.po (+1/-1)
po/vi.po (+1/-1)
po/zh_CN.po (+1/-1)
po/zh_HK.po (+1/-1)
po/zh_TW.po (+1/-1)
test-fixtures/Makefile.in (+3/-3)
tests/Makefile.in (+1/-1)
tests/conform/Makefile.am (+4/-1)
tests/conform/Makefile.in (+44/-8)
tests/conform/test-conform-main.c (+2/-0)
tests/conform/test-path-clip.c (+68/-0)
tests/conform/test-pipeline-shader-state.c (+94/-0)
tests/data/Makefile.in (+1/-1)
tests/micro-perf/Makefile.in (+3/-3)
tests/unit/Makefile.in (+3/-3)
To merge this branch: bzr merge lp:~noskcaj/ubuntu/trusty/cogl/1.16.2
Reviewer Review Type Date Requested Status
Martin Pitt Needs Fixing
Review via email: mp+204787@code.launchpad.net

Description of the change

New upstream release

To post a comment you must log in.
Revision history for this message
Martin Pitt (pitti) wrote :

Can you please re-do that as merge against Debian? http://packages.qa.debian.org/c/cogl/news/20140211T183843Z.html

Also, this drops debian/patches/99-ppc64el-support.patch, which previously had:

- ppc64-*linux*|powerpc64-*linux*)
+ powerpc64le-*)
+ LD="${LD-ld} -m elf32lppclinux"
+ ;;
+ powerpc64-*)
+ LD="${LD-ld} -m elf32ppclinux"

but this isn't in upstream's libtool.m4. That also changes some ppc stuff, but not for "powerpc64le-*".

review: Needs Fixing
Revision history for this message
Martin Pitt (pitti) wrote :

Setting to WIP. Please set back to "Needs review" once this is fixed, so that it re-appears in the sponsoring queue. Thanks!

Unmerged revisions

26. By Jackson Doak

* New upstream release.
* Drop patches

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== removed directory '.pc/0001-Fix-build-on-big-endian.patch'
2=== removed directory '.pc/0001-Fix-build-on-big-endian.patch/cogl'
3=== removed file '.pc/0001-Fix-build-on-big-endian.patch/cogl/cogl-texture-2d.c'
4--- .pc/0001-Fix-build-on-big-endian.patch/cogl/cogl-texture-2d.c 2013-10-14 21:37:33 +0000
5+++ .pc/0001-Fix-build-on-big-endian.patch/cogl/cogl-texture-2d.c 1970-01-01 00:00:00 +0000
6@@ -1,653 +0,0 @@
7-/*
8- * Cogl
9- *
10- * An object oriented GL/GLES Abstraction/Utility Layer
11- *
12- * Copyright (C) 2009 Intel Corporation.
13- *
14- * This library is free software; you can redistribute it and/or
15- * modify it under the terms of the GNU Lesser General Public
16- * License as published by the Free Software Foundation; either
17- * version 2 of the License, or (at your option) any later version.
18- *
19- * This library is distributed in the hope that it will be useful,
20- * but WITHOUT ANY WARRANTY; without even the implied warranty of
21- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22- * Lesser General Public License for more details.
23- *
24- * You should have received a copy of the GNU Lesser General Public
25- * License along with this library. If not, see <http://www.gnu.org/licenses/>.
26- *
27- *
28- *
29- * Authors:
30- * Neil Roberts <neil@linux.intel.com>
31- */
32-
33-#ifdef HAVE_CONFIG_H
34-#include "config.h"
35-#endif
36-
37-#include "cogl-private.h"
38-#include "cogl-util.h"
39-#include "cogl-texture-private.h"
40-#include "cogl-texture-2d-private.h"
41-#include "cogl-texture-2d-gl-private.h"
42-#include "cogl-texture-driver.h"
43-#include "cogl-context-private.h"
44-#include "cogl-object-private.h"
45-#include "cogl-journal-private.h"
46-#include "cogl-pipeline-opengl-private.h"
47-#include "cogl-framebuffer-private.h"
48-#include "cogl-error-private.h"
49-#ifdef COGL_HAS_EGL_SUPPORT
50-#include "cogl-winsys-egl-private.h"
51-#endif
52-
53-#include <string.h>
54-#include <math.h>
55-
56-#ifdef COGL_HAS_WAYLAND_EGL_SERVER_SUPPORT
57-#include "cogl-wayland-server.h"
58-#endif
59-
60-static void _cogl_texture_2d_free (CoglTexture2D *tex_2d);
61-
62-COGL_TEXTURE_DEFINE (Texture2D, texture_2d);
63-
64-static const CoglTextureVtable cogl_texture_2d_vtable;
65-
66-typedef struct _CoglTexture2DManualRepeatData
67-{
68- CoglTexture2D *tex_2d;
69- CoglMetaTextureCallback callback;
70- void *user_data;
71-} CoglTexture2DManualRepeatData;
72-
73-static void
74-_cogl_texture_2d_free (CoglTexture2D *tex_2d)
75-{
76- CoglContext *ctx = COGL_TEXTURE (tex_2d)->context;
77-
78- ctx->driver_vtable->texture_2d_free (tex_2d);
79-
80- /* Chain up */
81- _cogl_texture_free (COGL_TEXTURE (tex_2d));
82-}
83-
84-static CoglBool
85-_cogl_texture_2d_can_create (CoglContext *ctx,
86- unsigned int width,
87- unsigned int height,
88- CoglPixelFormat internal_format)
89-{
90- /* If NPOT textures aren't supported then the size must be a power
91- of two */
92- if (!cogl_has_feature (ctx, COGL_FEATURE_ID_TEXTURE_NPOT_BASIC) &&
93- (!_cogl_util_is_pot (width) ||
94- !_cogl_util_is_pot (height)))
95- return FALSE;
96-
97- return ctx->driver_vtable->texture_2d_can_create (ctx,
98- width,
99- height,
100- internal_format);
101-}
102-
103-void
104-_cogl_texture_2d_set_auto_mipmap (CoglTexture *tex,
105- CoglBool value)
106-{
107- CoglTexture2D *tex_2d = COGL_TEXTURE_2D (tex);
108-
109- tex_2d->auto_mipmap = value;
110-}
111-
112-CoglTexture2D *
113-_cogl_texture_2d_create_base (CoglContext *ctx,
114- int width,
115- int height,
116- CoglPixelFormat internal_format)
117-{
118- CoglTexture2D *tex_2d = g_new (CoglTexture2D, 1);
119- CoglTexture *tex = COGL_TEXTURE (tex_2d);
120-
121- _cogl_texture_init (tex, ctx, width, height, &cogl_texture_2d_vtable);
122-
123- tex_2d->mipmaps_dirty = TRUE;
124- tex_2d->auto_mipmap = TRUE;
125-
126- tex_2d->is_foreign = FALSE;
127-
128- tex_2d->internal_format = internal_format;
129-
130- ctx->driver_vtable->texture_2d_init (tex_2d);
131-
132- return _cogl_texture_2d_object_new (tex_2d);
133-}
134-
135-CoglTexture2D *
136-cogl_texture_2d_new_with_size (CoglContext *ctx,
137- int width,
138- int height,
139- CoglPixelFormat internal_format)
140-{
141- /* Since no data, we need some internal format */
142- if (internal_format == COGL_PIXEL_FORMAT_ANY)
143- internal_format = COGL_PIXEL_FORMAT_RGBA_8888_PRE;
144-
145- return _cogl_texture_2d_create_base (ctx,
146- width, height,
147- internal_format);
148-}
149-
150-static CoglBool
151-_cogl_texture_2d_allocate (CoglTexture *tex,
152- CoglError **error)
153-{
154- CoglContext *ctx = tex->context;
155- return ctx->driver_vtable->texture_2d_allocate (tex, error);
156-}
157-
158-CoglTexture2D *
159-_cogl_texture_2d_new_from_bitmap (CoglBitmap *bmp,
160- CoglPixelFormat internal_format,
161- CoglBool can_convert_in_place,
162- CoglError **error)
163-{
164- CoglContext *ctx;
165-
166- _COGL_RETURN_VAL_IF_FAIL (bmp != NULL, NULL);
167-
168- ctx = _cogl_bitmap_get_context (bmp);
169-
170- internal_format =
171- _cogl_texture_determine_internal_format (cogl_bitmap_get_format (bmp),
172- internal_format);
173-
174- if (!_cogl_texture_2d_can_create (ctx,
175- cogl_bitmap_get_width (bmp),
176- cogl_bitmap_get_height (bmp),
177- internal_format))
178- {
179- _cogl_set_error (error, COGL_TEXTURE_ERROR,
180- COGL_TEXTURE_ERROR_SIZE,
181- "Failed to create texture 2d due to size/format"
182- " constraints");
183- return NULL;
184- }
185-
186- return ctx->driver_vtable->texture_2d_new_from_bitmap (bmp,
187- internal_format,
188- can_convert_in_place,
189- error);
190-}
191-
192-CoglTexture2D *
193-cogl_texture_2d_new_from_bitmap (CoglBitmap *bmp,
194- CoglPixelFormat internal_format,
195- CoglError **error)
196-{
197- return _cogl_texture_2d_new_from_bitmap (bmp, internal_format, FALSE, error);
198-}
199-
200-CoglTexture2D *
201-cogl_texture_2d_new_from_file (CoglContext *ctx,
202- const char *filename,
203- CoglPixelFormat internal_format,
204- CoglError **error)
205-{
206- CoglBitmap *bmp;
207- CoglTexture2D *tex_2d = NULL;
208-
209- _COGL_RETURN_VAL_IF_FAIL (error == NULL || *error == NULL, NULL);
210-
211- bmp = _cogl_bitmap_from_file (ctx, filename, error);
212- if (bmp == NULL)
213- return NULL;
214-
215- tex_2d = _cogl_texture_2d_new_from_bitmap (bmp,
216- internal_format,
217- TRUE, /* can convert in-place */
218- error);
219-
220- cogl_object_unref (bmp);
221-
222- return tex_2d;
223-}
224-
225-CoglTexture2D *
226-cogl_texture_2d_new_from_data (CoglContext *ctx,
227- int width,
228- int height,
229- CoglPixelFormat format,
230- CoglPixelFormat internal_format,
231- int rowstride,
232- const uint8_t *data,
233- CoglError **error)
234-{
235- CoglBitmap *bmp;
236- CoglTexture2D *tex_2d;
237-
238- _COGL_RETURN_VAL_IF_FAIL (format != COGL_PIXEL_FORMAT_ANY, NULL);
239- _COGL_RETURN_VAL_IF_FAIL (data != NULL, NULL);
240-
241- /* Rowstride from width if not given */
242- if (rowstride == 0)
243- rowstride = width * _cogl_pixel_format_get_bytes_per_pixel (format);
244-
245- /* Wrap the data into a bitmap */
246- bmp = cogl_bitmap_new_for_data (ctx,
247- width, height,
248- format,
249- rowstride,
250- (uint8_t *) data);
251-
252- tex_2d = cogl_texture_2d_new_from_bitmap (bmp,
253- internal_format,
254- error);
255-
256- cogl_object_unref (bmp);
257-
258- return tex_2d;
259-}
260-
261-#if defined (COGL_HAS_EGL_SUPPORT) && defined (EGL_KHR_image_base)
262-/* NB: The reason we require the width, height and format to be passed
263- * even though they may seem redundant is because GLES 1/2 don't
264- * provide a way to query these properties. */
265-CoglTexture2D *
266-_cogl_egl_texture_2d_new_from_image (CoglContext *ctx,
267- int width,
268- int height,
269- CoglPixelFormat format,
270- EGLImageKHR image,
271- CoglError **error)
272-{
273- _COGL_RETURN_VAL_IF_FAIL (_cogl_context_get_winsys (ctx)->constraints &
274- COGL_RENDERER_CONSTRAINT_USES_EGL,
275- NULL);
276-
277- _COGL_RETURN_VAL_IF_FAIL (ctx->private_feature_flags &
278- COGL_PRIVATE_FEATURE_TEXTURE_2D_FROM_EGL_IMAGE,
279- NULL);
280-
281- if (ctx->driver_vtable->egl_texture_2d_new_from_image)
282- return ctx->driver_vtable->egl_texture_2d_new_from_image (ctx,
283- width,
284- height,
285- format,
286- image,
287- error);
288- else
289- {
290- _cogl_set_error (error,
291- COGL_SYSTEM_ERROR,
292- COGL_SYSTEM_ERROR_UNSUPPORTED,
293- "Creating 2D textures from EGL images is not "
294- "supported by the current driver");
295- return NULL;
296- }
297-}
298-#endif /* defined (COGL_HAS_EGL_SUPPORT) && defined (EGL_KHR_image_base) */
299-
300-#ifdef COGL_HAS_WAYLAND_EGL_SERVER_SUPPORT
301-CoglTexture2D *
302-cogl_wayland_texture_2d_new_from_buffer (CoglContext *ctx,
303- struct wl_resource *buffer_resource,
304- CoglError **error)
305-{
306- struct wl_shm_buffer *shm_buffer;
307-
308- shm_buffer = wl_shm_buffer_get (buffer_resource);
309-
310- if (shm_buffer)
311- {
312- int stride = wl_shm_buffer_get_stride (shm_buffer);
313- CoglPixelFormat format;
314- CoglPixelFormat internal_format = COGL_PIXEL_FORMAT_ANY;
315- int width = wl_shm_buffer_get_width (shm_buffer);
316- int height = wl_shm_buffer_get_height (shm_buffer);
317-
318- switch (wl_shm_buffer_get_format (shm_buffer))
319- {
320-#if G_BYTE_ORDER == G_BIG_ENDIAN
321- case WL_SHM_FORMAT_ARGB8888:
322- format = COGL_PIXEL_FORMAT_ARGB_8888_PRE;
323- break;
324- case WL_SHM_FORMAT_XRGB32:
325- format = COGL_PIXEL_FORMAT_ARGB_8888;
326- internal_format = COGL_PIXEL_FORMAT_RGB_888;
327- break;
328-#elif G_BYTE_ORDER == G_LITTLE_ENDIAN
329- case WL_SHM_FORMAT_ARGB8888:
330- format = COGL_PIXEL_FORMAT_BGRA_8888_PRE;
331- break;
332- case WL_SHM_FORMAT_XRGB8888:
333- format = COGL_PIXEL_FORMAT_BGRA_8888;
334- internal_format = COGL_PIXEL_FORMAT_BGR_888;
335- break;
336-#endif
337- default:
338- g_warn_if_reached ();
339- format = COGL_PIXEL_FORMAT_ARGB_8888;
340- }
341-
342- return cogl_texture_2d_new_from_data (ctx,
343- width, height,
344- format,
345- internal_format,
346- stride,
347- wl_shm_buffer_get_data (shm_buffer),
348- error);
349- }
350- else
351- {
352- struct wl_buffer *buffer = (struct wl_buffer *) buffer_resource;
353- int format, width, height;
354-
355- if (_cogl_egl_query_wayland_buffer (ctx,
356- buffer,
357- EGL_TEXTURE_FORMAT,
358- &format) &&
359- _cogl_egl_query_wayland_buffer (ctx,
360- buffer,
361- EGL_WIDTH,
362- &width) &&
363- _cogl_egl_query_wayland_buffer (ctx,
364- buffer,
365- EGL_HEIGHT,
366- &height))
367- {
368- EGLImageKHR image;
369- CoglTexture2D *tex = NULL;
370- CoglPixelFormat internal_format;
371-
372- _COGL_RETURN_VAL_IF_FAIL (_cogl_context_get_winsys (ctx)->constraints &
373- COGL_RENDERER_CONSTRAINT_USES_EGL,
374- NULL);
375-
376- switch (format)
377- {
378- case EGL_TEXTURE_RGB:
379- internal_format = COGL_PIXEL_FORMAT_RGB_888;
380- break;
381- case EGL_TEXTURE_RGBA:
382- internal_format = COGL_PIXEL_FORMAT_RGBA_8888_PRE;
383- break;
384- default:
385- _cogl_set_error (error,
386- COGL_SYSTEM_ERROR,
387- COGL_SYSTEM_ERROR_UNSUPPORTED,
388- "Can't create texture from unknown "
389- "wayland buffer format %d\n", format);
390- return NULL;
391- }
392-
393- image = _cogl_egl_create_image (ctx,
394- EGL_WAYLAND_BUFFER_WL,
395- buffer,
396- NULL);
397- tex = _cogl_egl_texture_2d_new_from_image (ctx,
398- width, height,
399- internal_format,
400- image,
401- error);
402- _cogl_egl_destroy_image (ctx, image);
403- return tex;
404- }
405- }
406-
407- _cogl_set_error (error,
408- COGL_SYSTEM_ERROR,
409- COGL_SYSTEM_ERROR_UNSUPPORTED,
410- "Can't create texture from unknown "
411- "wayland buffer type\n");
412- return NULL;
413-}
414-#endif /* COGL_HAS_WAYLAND_EGL_SERVER_SUPPORT */
415-
416-void
417-_cogl_texture_2d_externally_modified (CoglTexture *texture)
418-{
419- if (!cogl_is_texture_2d (texture))
420- return;
421-
422- COGL_TEXTURE_2D (texture)->mipmaps_dirty = TRUE;
423-}
424-
425-void
426-_cogl_texture_2d_copy_from_framebuffer (CoglTexture2D *tex_2d,
427- int src_x,
428- int src_y,
429- int width,
430- int height,
431- CoglFramebuffer *src_fb,
432- int dst_x,
433- int dst_y,
434- int level)
435-{
436- CoglTexture *tex = COGL_TEXTURE (tex_2d);
437- CoglContext *ctx = tex->context;
438-
439- /* Assert that the storage for this texture has been allocated */
440- cogl_texture_allocate (tex, NULL); /* (abort on error) */
441-
442- ctx->driver_vtable->texture_2d_copy_from_framebuffer (tex_2d,
443- src_x,
444- src_y,
445- width,
446- height,
447- src_fb,
448- dst_x,
449- dst_y,
450- level);
451-
452- tex_2d->mipmaps_dirty = TRUE;
453-}
454-
455-static int
456-_cogl_texture_2d_get_max_waste (CoglTexture *tex)
457-{
458- return -1;
459-}
460-
461-static CoglBool
462-_cogl_texture_2d_is_sliced (CoglTexture *tex)
463-{
464- return FALSE;
465-}
466-
467-static CoglBool
468-_cogl_texture_2d_can_hardware_repeat (CoglTexture *tex)
469-{
470- CoglContext *ctx = tex->context;
471-
472- if (cogl_has_feature (ctx, COGL_FEATURE_ID_TEXTURE_NPOT_REPEAT) ||
473- (_cogl_util_is_pot (tex->width) &&
474- _cogl_util_is_pot (tex->height)))
475- return TRUE;
476- else
477- return FALSE;
478-}
479-
480-static void
481-_cogl_texture_2d_transform_coords_to_gl (CoglTexture *tex,
482- float *s,
483- float *t)
484-{
485- /* The texture coordinates map directly so we don't need to do
486- anything */
487-}
488-
489-static CoglTransformResult
490-_cogl_texture_2d_transform_quad_coords_to_gl (CoglTexture *tex,
491- float *coords)
492-{
493- /* The texture coordinates map directly so we don't need to do
494- anything other than check for repeats */
495-
496- int i;
497-
498- for (i = 0; i < 4; i++)
499- if (coords[i] < 0.0f || coords[i] > 1.0f)
500- {
501- /* Repeat is needed */
502- return (_cogl_texture_2d_can_hardware_repeat (tex) ?
503- COGL_TRANSFORM_HARDWARE_REPEAT :
504- COGL_TRANSFORM_SOFTWARE_REPEAT);
505- }
506-
507- /* No repeat is needed */
508- return COGL_TRANSFORM_NO_REPEAT;
509-}
510-
511-static CoglBool
512-_cogl_texture_2d_get_gl_texture (CoglTexture *tex,
513- GLuint *out_gl_handle,
514- GLenum *out_gl_target)
515-{
516- CoglContext *ctx = tex->context;
517- CoglTexture2D *tex_2d = COGL_TEXTURE_2D (tex);
518-
519- if (ctx->driver_vtable->texture_2d_get_gl_handle)
520- {
521- GLuint handle;
522-
523- if (out_gl_target)
524- *out_gl_target = GL_TEXTURE_2D;
525-
526- handle = ctx->driver_vtable->texture_2d_get_gl_handle (tex_2d);
527-
528- if (out_gl_handle)
529- *out_gl_handle = handle;
530-
531- return handle ? TRUE : FALSE;
532- }
533- else
534- return FALSE;
535-}
536-
537-static void
538-_cogl_texture_2d_pre_paint (CoglTexture *tex, CoglTexturePrePaintFlags flags)
539-{
540- CoglTexture2D *tex_2d = COGL_TEXTURE_2D (tex);
541-
542- /* Only update if the mipmaps are dirty */
543- if ((flags & COGL_TEXTURE_NEEDS_MIPMAP) &&
544- tex_2d->auto_mipmap && tex_2d->mipmaps_dirty)
545- {
546- CoglContext *ctx = tex->context;
547-
548- ctx->driver_vtable->texture_2d_generate_mipmap (tex_2d);
549-
550- tex_2d->mipmaps_dirty = FALSE;
551- }
552-}
553-
554-static void
555-_cogl_texture_2d_ensure_non_quad_rendering (CoglTexture *tex)
556-{
557- /* Nothing needs to be done */
558-}
559-
560-static CoglBool
561-_cogl_texture_2d_set_region (CoglTexture *tex,
562- int src_x,
563- int src_y,
564- int dst_x,
565- int dst_y,
566- int width,
567- int height,
568- int level,
569- CoglBitmap *bmp,
570- CoglError **error)
571-{
572- CoglContext *ctx = tex->context;
573- CoglTexture2D *tex_2d = COGL_TEXTURE_2D (tex);
574-
575- if (!ctx->driver_vtable->texture_2d_copy_from_bitmap (tex_2d,
576- src_x,
577- src_y,
578- width,
579- height,
580- bmp,
581- dst_x,
582- dst_y,
583- level,
584- error))
585- {
586- return FALSE;
587- }
588-
589- tex_2d->mipmaps_dirty = TRUE;
590-
591- return TRUE;
592-}
593-
594-static CoglBool
595-_cogl_texture_2d_get_data (CoglTexture *tex,
596- CoglPixelFormat format,
597- int rowstride,
598- uint8_t *data)
599-{
600- CoglContext *ctx = tex->context;
601-
602- if (ctx->driver_vtable->texture_2d_get_data)
603- {
604- CoglTexture2D *tex_2d = COGL_TEXTURE_2D (tex);
605- ctx->driver_vtable->texture_2d_get_data (tex_2d, format, rowstride, data);
606- return TRUE;
607- }
608- else
609- return FALSE;
610-}
611-
612-static CoglPixelFormat
613-_cogl_texture_2d_get_format (CoglTexture *tex)
614-{
615- return COGL_TEXTURE_2D (tex)->internal_format;
616-}
617-
618-static GLenum
619-_cogl_texture_2d_get_gl_format (CoglTexture *tex)
620-{
621- return COGL_TEXTURE_2D (tex)->gl_internal_format;
622-}
623-
624-static CoglBool
625-_cogl_texture_2d_is_foreign (CoglTexture *tex)
626-{
627- return COGL_TEXTURE_2D (tex)->is_foreign;
628-}
629-
630-static CoglTextureType
631-_cogl_texture_2d_get_type (CoglTexture *tex)
632-{
633- return COGL_TEXTURE_TYPE_2D;
634-}
635-
636-static const CoglTextureVtable
637-cogl_texture_2d_vtable =
638- {
639- TRUE, /* primitive */
640- _cogl_texture_2d_allocate,
641- _cogl_texture_2d_set_region,
642- _cogl_texture_2d_get_data,
643- NULL, /* foreach_sub_texture_in_region */
644- _cogl_texture_2d_get_max_waste,
645- _cogl_texture_2d_is_sliced,
646- _cogl_texture_2d_can_hardware_repeat,
647- _cogl_texture_2d_transform_coords_to_gl,
648- _cogl_texture_2d_transform_quad_coords_to_gl,
649- _cogl_texture_2d_get_gl_texture,
650- _cogl_texture_2d_gl_flush_legacy_texobj_filters,
651- _cogl_texture_2d_pre_paint,
652- _cogl_texture_2d_ensure_non_quad_rendering,
653- _cogl_texture_2d_gl_flush_legacy_texobj_wrap_modes,
654- _cogl_texture_2d_get_format,
655- _cogl_texture_2d_get_gl_format,
656- _cogl_texture_2d_get_type,
657- _cogl_texture_2d_is_foreign,
658- _cogl_texture_2d_set_auto_mipmap
659- };
660
661=== removed directory '.pc/99-ppc64el-support.patch'
662=== removed directory '.pc/99-ppc64el-support.patch/build'
663=== removed directory '.pc/99-ppc64el-support.patch/build/autotools'
664=== removed file '.pc/99-ppc64el-support.patch/build/autotools/libtool.m4'
665--- .pc/99-ppc64el-support.patch/build/autotools/libtool.m4 2014-01-02 19:37:38 +0000
666+++ .pc/99-ppc64el-support.patch/build/autotools/libtool.m4 1970-01-01 00:00:00 +0000
667@@ -1,7982 +0,0 @@
668-# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
669-#
670-# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
671-# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
672-# Foundation, Inc.
673-# Written by Gordon Matzigkeit, 1996
674-#
675-# This file is free software; the Free Software Foundation gives
676-# unlimited permission to copy and/or distribute it, with or without
677-# modifications, as long as this notice is preserved.
678-
679-m4_define([_LT_COPYING], [dnl
680-# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
681-# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
682-# Foundation, Inc.
683-# Written by Gordon Matzigkeit, 1996
684-#
685-# This file is part of GNU Libtool.
686-#
687-# GNU Libtool is free software; you can redistribute it and/or
688-# modify it under the terms of the GNU General Public License as
689-# published by the Free Software Foundation; either version 2 of
690-# the License, or (at your option) any later version.
691-#
692-# As a special exception to the GNU General Public License,
693-# if you distribute this file as part of a program or library that
694-# is built using GNU Libtool, you may include this file under the
695-# same distribution terms that you use for the rest of that program.
696-#
697-# GNU Libtool is distributed in the hope that it will be useful,
698-# but WITHOUT ANY WARRANTY; without even the implied warranty of
699-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
700-# GNU General Public License for more details.
701-#
702-# You should have received a copy of the GNU General Public License
703-# along with GNU Libtool; see the file COPYING. If not, a copy
704-# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
705-# obtained by writing to the Free Software Foundation, Inc.,
706-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
707-])
708-
709-# serial 57 LT_INIT
710-
711-
712-# LT_PREREQ(VERSION)
713-# ------------------
714-# Complain and exit if this libtool version is less that VERSION.
715-m4_defun([LT_PREREQ],
716-[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
717- [m4_default([$3],
718- [m4_fatal([Libtool version $1 or higher is required],
719- 63)])],
720- [$2])])
721-
722-
723-# _LT_CHECK_BUILDDIR
724-# ------------------
725-# Complain if the absolute build directory name contains unusual characters
726-m4_defun([_LT_CHECK_BUILDDIR],
727-[case `pwd` in
728- *\ * | *\ *)
729- AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
730-esac
731-])
732-
733-
734-# LT_INIT([OPTIONS])
735-# ------------------
736-AC_DEFUN([LT_INIT],
737-[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
738-AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
739-AC_BEFORE([$0], [LT_LANG])dnl
740-AC_BEFORE([$0], [LT_OUTPUT])dnl
741-AC_BEFORE([$0], [LTDL_INIT])dnl
742-m4_require([_LT_CHECK_BUILDDIR])dnl
743-
744-dnl Autoconf doesn't catch unexpanded LT_ macros by default:
745-m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
746-m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
747-dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
748-dnl unless we require an AC_DEFUNed macro:
749-AC_REQUIRE([LTOPTIONS_VERSION])dnl
750-AC_REQUIRE([LTSUGAR_VERSION])dnl
751-AC_REQUIRE([LTVERSION_VERSION])dnl
752-AC_REQUIRE([LTOBSOLETE_VERSION])dnl
753-m4_require([_LT_PROG_LTMAIN])dnl
754-
755-_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
756-
757-dnl Parse OPTIONS
758-_LT_SET_OPTIONS([$0], [$1])
759-
760-# This can be used to rebuild libtool when needed
761-LIBTOOL_DEPS="$ltmain"
762-
763-# Always use our own libtool.
764-LIBTOOL='$(SHELL) $(top_builddir)/libtool'
765-AC_SUBST(LIBTOOL)dnl
766-
767-_LT_SETUP
768-
769-# Only expand once:
770-m4_define([LT_INIT])
771-])# LT_INIT
772-
773-# Old names:
774-AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
775-AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
776-dnl aclocal-1.4 backwards compatibility:
777-dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
778-dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
779-
780-
781-# _LT_CC_BASENAME(CC)
782-# -------------------
783-# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
784-m4_defun([_LT_CC_BASENAME],
785-[for cc_temp in $1""; do
786- case $cc_temp in
787- compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
788- distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
789- \-*) ;;
790- *) break;;
791- esac
792-done
793-cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
794-])
795-
796-
797-# _LT_FILEUTILS_DEFAULTS
798-# ----------------------
799-# It is okay to use these file commands and assume they have been set
800-# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
801-m4_defun([_LT_FILEUTILS_DEFAULTS],
802-[: ${CP="cp -f"}
803-: ${MV="mv -f"}
804-: ${RM="rm -f"}
805-])# _LT_FILEUTILS_DEFAULTS
806-
807-
808-# _LT_SETUP
809-# ---------
810-m4_defun([_LT_SETUP],
811-[AC_REQUIRE([AC_CANONICAL_HOST])dnl
812-AC_REQUIRE([AC_CANONICAL_BUILD])dnl
813-AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
814-AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
815-
816-_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
817-dnl
818-_LT_DECL([], [host_alias], [0], [The host system])dnl
819-_LT_DECL([], [host], [0])dnl
820-_LT_DECL([], [host_os], [0])dnl
821-dnl
822-_LT_DECL([], [build_alias], [0], [The build system])dnl
823-_LT_DECL([], [build], [0])dnl
824-_LT_DECL([], [build_os], [0])dnl
825-dnl
826-AC_REQUIRE([AC_PROG_CC])dnl
827-AC_REQUIRE([LT_PATH_LD])dnl
828-AC_REQUIRE([LT_PATH_NM])dnl
829-dnl
830-AC_REQUIRE([AC_PROG_LN_S])dnl
831-test -z "$LN_S" && LN_S="ln -s"
832-_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
833-dnl
834-AC_REQUIRE([LT_CMD_MAX_LEN])dnl
835-_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
836-_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
837-dnl
838-m4_require([_LT_FILEUTILS_DEFAULTS])dnl
839-m4_require([_LT_CHECK_SHELL_FEATURES])dnl
840-m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
841-m4_require([_LT_CMD_RELOAD])dnl
842-m4_require([_LT_CHECK_MAGIC_METHOD])dnl
843-m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
844-m4_require([_LT_CMD_OLD_ARCHIVE])dnl
845-m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
846-m4_require([_LT_WITH_SYSROOT])dnl
847-
848-_LT_CONFIG_LIBTOOL_INIT([
849-# See if we are running on zsh, and set the options which allow our
850-# commands through without removal of \ escapes INIT.
851-if test -n "\${ZSH_VERSION+set}" ; then
852- setopt NO_GLOB_SUBST
853-fi
854-])
855-if test -n "${ZSH_VERSION+set}" ; then
856- setopt NO_GLOB_SUBST
857-fi
858-
859-_LT_CHECK_OBJDIR
860-
861-m4_require([_LT_TAG_COMPILER])dnl
862-
863-case $host_os in
864-aix3*)
865- # AIX sometimes has problems with the GCC collect2 program. For some
866- # reason, if we set the COLLECT_NAMES environment variable, the problems
867- # vanish in a puff of smoke.
868- if test "X${COLLECT_NAMES+set}" != Xset; then
869- COLLECT_NAMES=
870- export COLLECT_NAMES
871- fi
872- ;;
873-esac
874-
875-# Global variables:
876-ofile=libtool
877-can_build_shared=yes
878-
879-# All known linkers require a `.a' archive for static linking (except MSVC,
880-# which needs '.lib').
881-libext=a
882-
883-with_gnu_ld="$lt_cv_prog_gnu_ld"
884-
885-old_CC="$CC"
886-old_CFLAGS="$CFLAGS"
887-
888-# Set sane defaults for various variables
889-test -z "$CC" && CC=cc
890-test -z "$LTCC" && LTCC=$CC
891-test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
892-test -z "$LD" && LD=ld
893-test -z "$ac_objext" && ac_objext=o
894-
895-_LT_CC_BASENAME([$compiler])
896-
897-# Only perform the check for file, if the check method requires it
898-test -z "$MAGIC_CMD" && MAGIC_CMD=file
899-case $deplibs_check_method in
900-file_magic*)
901- if test "$file_magic_cmd" = '$MAGIC_CMD'; then
902- _LT_PATH_MAGIC
903- fi
904- ;;
905-esac
906-
907-# Use C for the default configuration in the libtool script
908-LT_SUPPORTED_TAG([CC])
909-_LT_LANG_C_CONFIG
910-_LT_LANG_DEFAULT_CONFIG
911-_LT_CONFIG_COMMANDS
912-])# _LT_SETUP
913-
914-
915-# _LT_PREPARE_SED_QUOTE_VARS
916-# --------------------------
917-# Define a few sed substitution that help us do robust quoting.
918-m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
919-[# Backslashify metacharacters that are still active within
920-# double-quoted strings.
921-sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
922-
923-# Same as above, but do not quote variable references.
924-double_quote_subst='s/\([["`\\]]\)/\\\1/g'
925-
926-# Sed substitution to delay expansion of an escaped shell variable in a
927-# double_quote_subst'ed string.
928-delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
929-
930-# Sed substitution to delay expansion of an escaped single quote.
931-delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
932-
933-# Sed substitution to avoid accidental globbing in evaled expressions
934-no_glob_subst='s/\*/\\\*/g'
935-])
936-
937-# _LT_PROG_LTMAIN
938-# ---------------
939-# Note that this code is called both from `configure', and `config.status'
940-# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
941-# `config.status' has no value for ac_aux_dir unless we are using Automake,
942-# so we pass a copy along to make sure it has a sensible value anyway.
943-m4_defun([_LT_PROG_LTMAIN],
944-[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
945-_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
946-ltmain="$ac_aux_dir/ltmain.sh"
947-])# _LT_PROG_LTMAIN
948-
949-
950-## ------------------------------------- ##
951-## Accumulate code for creating libtool. ##
952-## ------------------------------------- ##
953-
954-# So that we can recreate a full libtool script including additional
955-# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
956-# in macros and then make a single call at the end using the `libtool'
957-# label.
958-
959-
960-# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
961-# ----------------------------------------
962-# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
963-m4_define([_LT_CONFIG_LIBTOOL_INIT],
964-[m4_ifval([$1],
965- [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
966- [$1
967-])])])
968-
969-# Initialize.
970-m4_define([_LT_OUTPUT_LIBTOOL_INIT])
971-
972-
973-# _LT_CONFIG_LIBTOOL([COMMANDS])
974-# ------------------------------
975-# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
976-m4_define([_LT_CONFIG_LIBTOOL],
977-[m4_ifval([$1],
978- [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
979- [$1
980-])])])
981-
982-# Initialize.
983-m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
984-
985-
986-# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
987-# -----------------------------------------------------
988-m4_defun([_LT_CONFIG_SAVE_COMMANDS],
989-[_LT_CONFIG_LIBTOOL([$1])
990-_LT_CONFIG_LIBTOOL_INIT([$2])
991-])
992-
993-
994-# _LT_FORMAT_COMMENT([COMMENT])
995-# -----------------------------
996-# Add leading comment marks to the start of each line, and a trailing
997-# full-stop to the whole comment if one is not present already.
998-m4_define([_LT_FORMAT_COMMENT],
999-[m4_ifval([$1], [
1000-m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
1001- [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
1002-)])
1003-
1004-
1005-
1006-## ------------------------ ##
1007-## FIXME: Eliminate VARNAME ##
1008-## ------------------------ ##
1009-
1010-
1011-# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
1012-# -------------------------------------------------------------------
1013-# CONFIGNAME is the name given to the value in the libtool script.
1014-# VARNAME is the (base) name used in the configure script.
1015-# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
1016-# VARNAME. Any other value will be used directly.
1017-m4_define([_LT_DECL],
1018-[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
1019- [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
1020- [m4_ifval([$1], [$1], [$2])])
1021- lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
1022- m4_ifval([$4],
1023- [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
1024- lt_dict_add_subkey([lt_decl_dict], [$2],
1025- [tagged?], [m4_ifval([$5], [yes], [no])])])
1026-])
1027-
1028-
1029-# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
1030-# --------------------------------------------------------
1031-m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
1032-
1033-
1034-# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
1035-# ------------------------------------------------
1036-m4_define([lt_decl_tag_varnames],
1037-[_lt_decl_filter([tagged?], [yes], $@)])
1038-
1039-
1040-# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
1041-# ---------------------------------------------------------
1042-m4_define([_lt_decl_filter],
1043-[m4_case([$#],
1044- [0], [m4_fatal([$0: too few arguments: $#])],
1045- [1], [m4_fatal([$0: too few arguments: $#: $1])],
1046- [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
1047- [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
1048- [lt_dict_filter([lt_decl_dict], $@)])[]dnl
1049-])
1050-
1051-
1052-# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
1053-# --------------------------------------------------
1054-m4_define([lt_decl_quote_varnames],
1055-[_lt_decl_filter([value], [1], $@)])
1056-
1057-
1058-# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
1059-# ---------------------------------------------------
1060-m4_define([lt_decl_dquote_varnames],
1061-[_lt_decl_filter([value], [2], $@)])
1062-
1063-
1064-# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
1065-# ---------------------------------------------------
1066-m4_define([lt_decl_varnames_tagged],
1067-[m4_assert([$# <= 2])dnl
1068-_$0(m4_quote(m4_default([$1], [[, ]])),
1069- m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
1070- m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
1071-m4_define([_lt_decl_varnames_tagged],
1072-[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
1073-
1074-
1075-# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
1076-# ------------------------------------------------
1077-m4_define([lt_decl_all_varnames],
1078-[_$0(m4_quote(m4_default([$1], [[, ]])),
1079- m4_if([$2], [],
1080- m4_quote(lt_decl_varnames),
1081- m4_quote(m4_shift($@))))[]dnl
1082-])
1083-m4_define([_lt_decl_all_varnames],
1084-[lt_join($@, lt_decl_varnames_tagged([$1],
1085- lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
1086-])
1087-
1088-
1089-# _LT_CONFIG_STATUS_DECLARE([VARNAME])
1090-# ------------------------------------
1091-# Quote a variable value, and forward it to `config.status' so that its
1092-# declaration there will have the same value as in `configure'. VARNAME
1093-# must have a single quote delimited value for this to work.
1094-m4_define([_LT_CONFIG_STATUS_DECLARE],
1095-[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
1096-
1097-
1098-# _LT_CONFIG_STATUS_DECLARATIONS
1099-# ------------------------------
1100-# We delimit libtool config variables with single quotes, so when
1101-# we write them to config.status, we have to be sure to quote all
1102-# embedded single quotes properly. In configure, this macro expands
1103-# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
1104-#
1105-# <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
1106-m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
1107-[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
1108- [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
1109-
1110-
1111-# _LT_LIBTOOL_TAGS
1112-# ----------------
1113-# Output comment and list of tags supported by the script
1114-m4_defun([_LT_LIBTOOL_TAGS],
1115-[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
1116-available_tags="_LT_TAGS"dnl
1117-])
1118-
1119-
1120-# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
1121-# -----------------------------------
1122-# Extract the dictionary values for VARNAME (optionally with TAG) and
1123-# expand to a commented shell variable setting:
1124-#
1125-# # Some comment about what VAR is for.
1126-# visible_name=$lt_internal_name
1127-m4_define([_LT_LIBTOOL_DECLARE],
1128-[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
1129- [description])))[]dnl
1130-m4_pushdef([_libtool_name],
1131- m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
1132-m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
1133- [0], [_libtool_name=[$]$1],
1134- [1], [_libtool_name=$lt_[]$1],
1135- [2], [_libtool_name=$lt_[]$1],
1136- [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
1137-m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
1138-])
1139-
1140-
1141-# _LT_LIBTOOL_CONFIG_VARS
1142-# -----------------------
1143-# Produce commented declarations of non-tagged libtool config variables
1144-# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
1145-# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
1146-# section) are produced by _LT_LIBTOOL_TAG_VARS.
1147-m4_defun([_LT_LIBTOOL_CONFIG_VARS],
1148-[m4_foreach([_lt_var],
1149- m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
1150- [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
1151-
1152-
1153-# _LT_LIBTOOL_TAG_VARS(TAG)
1154-# -------------------------
1155-m4_define([_LT_LIBTOOL_TAG_VARS],
1156-[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
1157- [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
1158-
1159-
1160-# _LT_TAGVAR(VARNAME, [TAGNAME])
1161-# ------------------------------
1162-m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
1163-
1164-
1165-# _LT_CONFIG_COMMANDS
1166-# -------------------
1167-# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
1168-# variables for single and double quote escaping we saved from calls
1169-# to _LT_DECL, we can put quote escaped variables declarations
1170-# into `config.status', and then the shell code to quote escape them in
1171-# for loops in `config.status'. Finally, any additional code accumulated
1172-# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
1173-m4_defun([_LT_CONFIG_COMMANDS],
1174-[AC_PROVIDE_IFELSE([LT_OUTPUT],
1175- dnl If the libtool generation code has been placed in $CONFIG_LT,
1176- dnl instead of duplicating it all over again into config.status,
1177- dnl then we will have config.status run $CONFIG_LT later, so it
1178- dnl needs to know what name is stored there:
1179- [AC_CONFIG_COMMANDS([libtool],
1180- [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
1181- dnl If the libtool generation code is destined for config.status,
1182- dnl expand the accumulated commands and init code now:
1183- [AC_CONFIG_COMMANDS([libtool],
1184- [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
1185-])#_LT_CONFIG_COMMANDS
1186-
1187-
1188-# Initialize.
1189-m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
1190-[
1191-
1192-# The HP-UX ksh and POSIX shell print the target directory to stdout
1193-# if CDPATH is set.
1194-(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1195-
1196-sed_quote_subst='$sed_quote_subst'
1197-double_quote_subst='$double_quote_subst'
1198-delay_variable_subst='$delay_variable_subst'
1199-_LT_CONFIG_STATUS_DECLARATIONS
1200-LTCC='$LTCC'
1201-LTCFLAGS='$LTCFLAGS'
1202-compiler='$compiler_DEFAULT'
1203-
1204-# A function that is used when there is no print builtin or printf.
1205-func_fallback_echo ()
1206-{
1207- eval 'cat <<_LTECHO_EOF
1208-\$[]1
1209-_LTECHO_EOF'
1210-}
1211-
1212-# Quote evaled strings.
1213-for var in lt_decl_all_varnames([[ \
1214-]], lt_decl_quote_varnames); do
1215- case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1216- *[[\\\\\\\`\\"\\\$]]*)
1217- eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1218- ;;
1219- *)
1220- eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1221- ;;
1222- esac
1223-done
1224-
1225-# Double-quote double-evaled strings.
1226-for var in lt_decl_all_varnames([[ \
1227-]], lt_decl_dquote_varnames); do
1228- case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1229- *[[\\\\\\\`\\"\\\$]]*)
1230- eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1231- ;;
1232- *)
1233- eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1234- ;;
1235- esac
1236-done
1237-
1238-_LT_OUTPUT_LIBTOOL_INIT
1239-])
1240-
1241-# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
1242-# ------------------------------------
1243-# Generate a child script FILE with all initialization necessary to
1244-# reuse the environment learned by the parent script, and make the
1245-# file executable. If COMMENT is supplied, it is inserted after the
1246-# `#!' sequence but before initialization text begins. After this
1247-# macro, additional text can be appended to FILE to form the body of
1248-# the child script. The macro ends with non-zero status if the
1249-# file could not be fully written (such as if the disk is full).
1250-m4_ifdef([AS_INIT_GENERATED],
1251-[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
1252-[m4_defun([_LT_GENERATED_FILE_INIT],
1253-[m4_require([AS_PREPARE])]dnl
1254-[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
1255-[lt_write_fail=0
1256-cat >$1 <<_ASEOF || lt_write_fail=1
1257-#! $SHELL
1258-# Generated by $as_me.
1259-$2
1260-SHELL=\${CONFIG_SHELL-$SHELL}
1261-export SHELL
1262-_ASEOF
1263-cat >>$1 <<\_ASEOF || lt_write_fail=1
1264-AS_SHELL_SANITIZE
1265-_AS_PREPARE
1266-exec AS_MESSAGE_FD>&1
1267-_ASEOF
1268-test $lt_write_fail = 0 && chmod +x $1[]dnl
1269-m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
1270-
1271-# LT_OUTPUT
1272-# ---------
1273-# This macro allows early generation of the libtool script (before
1274-# AC_OUTPUT is called), incase it is used in configure for compilation
1275-# tests.
1276-AC_DEFUN([LT_OUTPUT],
1277-[: ${CONFIG_LT=./config.lt}
1278-AC_MSG_NOTICE([creating $CONFIG_LT])
1279-_LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
1280-[# Run this file to recreate a libtool stub with the current configuration.])
1281-
1282-cat >>"$CONFIG_LT" <<\_LTEOF
1283-lt_cl_silent=false
1284-exec AS_MESSAGE_LOG_FD>>config.log
1285-{
1286- echo
1287- AS_BOX([Running $as_me.])
1288-} >&AS_MESSAGE_LOG_FD
1289-
1290-lt_cl_help="\
1291-\`$as_me' creates a local libtool stub from the current configuration,
1292-for use in further configure time tests before the real libtool is
1293-generated.
1294-
1295-Usage: $[0] [[OPTIONS]]
1296-
1297- -h, --help print this help, then exit
1298- -V, --version print version number, then exit
1299- -q, --quiet do not print progress messages
1300- -d, --debug don't remove temporary files
1301-
1302-Report bugs to <bug-libtool@gnu.org>."
1303-
1304-lt_cl_version="\
1305-m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
1306-m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
1307-configured by $[0], generated by m4_PACKAGE_STRING.
1308-
1309-Copyright (C) 2011 Free Software Foundation, Inc.
1310-This config.lt script is free software; the Free Software Foundation
1311-gives unlimited permision to copy, distribute and modify it."
1312-
1313-while test $[#] != 0
1314-do
1315- case $[1] in
1316- --version | --v* | -V )
1317- echo "$lt_cl_version"; exit 0 ;;
1318- --help | --h* | -h )
1319- echo "$lt_cl_help"; exit 0 ;;
1320- --debug | --d* | -d )
1321- debug=: ;;
1322- --quiet | --q* | --silent | --s* | -q )
1323- lt_cl_silent=: ;;
1324-
1325- -*) AC_MSG_ERROR([unrecognized option: $[1]
1326-Try \`$[0] --help' for more information.]) ;;
1327-
1328- *) AC_MSG_ERROR([unrecognized argument: $[1]
1329-Try \`$[0] --help' for more information.]) ;;
1330- esac
1331- shift
1332-done
1333-
1334-if $lt_cl_silent; then
1335- exec AS_MESSAGE_FD>/dev/null
1336-fi
1337-_LTEOF
1338-
1339-cat >>"$CONFIG_LT" <<_LTEOF
1340-_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
1341-_LTEOF
1342-
1343-cat >>"$CONFIG_LT" <<\_LTEOF
1344-AC_MSG_NOTICE([creating $ofile])
1345-_LT_OUTPUT_LIBTOOL_COMMANDS
1346-AS_EXIT(0)
1347-_LTEOF
1348-chmod +x "$CONFIG_LT"
1349-
1350-# configure is writing to config.log, but config.lt does its own redirection,
1351-# appending to config.log, which fails on DOS, as config.log is still kept
1352-# open by configure. Here we exec the FD to /dev/null, effectively closing
1353-# config.log, so it can be properly (re)opened and appended to by config.lt.
1354-lt_cl_success=:
1355-test "$silent" = yes &&
1356- lt_config_lt_args="$lt_config_lt_args --quiet"
1357-exec AS_MESSAGE_LOG_FD>/dev/null
1358-$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
1359-exec AS_MESSAGE_LOG_FD>>config.log
1360-$lt_cl_success || AS_EXIT(1)
1361-])# LT_OUTPUT
1362-
1363-
1364-# _LT_CONFIG(TAG)
1365-# ---------------
1366-# If TAG is the built-in tag, create an initial libtool script with a
1367-# default configuration from the untagged config vars. Otherwise add code
1368-# to config.status for appending the configuration named by TAG from the
1369-# matching tagged config vars.
1370-m4_defun([_LT_CONFIG],
1371-[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1372-_LT_CONFIG_SAVE_COMMANDS([
1373- m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
1374- m4_if(_LT_TAG, [C], [
1375- # See if we are running on zsh, and set the options which allow our
1376- # commands through without removal of \ escapes.
1377- if test -n "${ZSH_VERSION+set}" ; then
1378- setopt NO_GLOB_SUBST
1379- fi
1380-
1381- cfgfile="${ofile}T"
1382- trap "$RM \"$cfgfile\"; exit 1" 1 2 15
1383- $RM "$cfgfile"
1384-
1385- cat <<_LT_EOF >> "$cfgfile"
1386-#! $SHELL
1387-
1388-# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
1389-# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1390-# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1391-# NOTE: Changes made to this file will be lost: look at ltmain.sh.
1392-#
1393-_LT_COPYING
1394-_LT_LIBTOOL_TAGS
1395-
1396-# ### BEGIN LIBTOOL CONFIG
1397-_LT_LIBTOOL_CONFIG_VARS
1398-_LT_LIBTOOL_TAG_VARS
1399-# ### END LIBTOOL CONFIG
1400-
1401-_LT_EOF
1402-
1403- case $host_os in
1404- aix3*)
1405- cat <<\_LT_EOF >> "$cfgfile"
1406-# AIX sometimes has problems with the GCC collect2 program. For some
1407-# reason, if we set the COLLECT_NAMES environment variable, the problems
1408-# vanish in a puff of smoke.
1409-if test "X${COLLECT_NAMES+set}" != Xset; then
1410- COLLECT_NAMES=
1411- export COLLECT_NAMES
1412-fi
1413-_LT_EOF
1414- ;;
1415- esac
1416-
1417- _LT_PROG_LTMAIN
1418-
1419- # We use sed instead of cat because bash on DJGPP gets confused if
1420- # if finds mixed CR/LF and LF-only lines. Since sed operates in
1421- # text mode, it properly converts lines to CR/LF. This bash problem
1422- # is reportedly fixed, but why not run on old versions too?
1423- sed '$q' "$ltmain" >> "$cfgfile" \
1424- || (rm -f "$cfgfile"; exit 1)
1425-
1426- _LT_PROG_REPLACE_SHELLFNS
1427-
1428- mv -f "$cfgfile" "$ofile" ||
1429- (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
1430- chmod +x "$ofile"
1431-],
1432-[cat <<_LT_EOF >> "$ofile"
1433-
1434-dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
1435-dnl in a comment (ie after a #).
1436-# ### BEGIN LIBTOOL TAG CONFIG: $1
1437-_LT_LIBTOOL_TAG_VARS(_LT_TAG)
1438-# ### END LIBTOOL TAG CONFIG: $1
1439-_LT_EOF
1440-])dnl /m4_if
1441-],
1442-[m4_if([$1], [], [
1443- PACKAGE='$PACKAGE'
1444- VERSION='$VERSION'
1445- TIMESTAMP='$TIMESTAMP'
1446- RM='$RM'
1447- ofile='$ofile'], [])
1448-])dnl /_LT_CONFIG_SAVE_COMMANDS
1449-])# _LT_CONFIG
1450-
1451-
1452-# LT_SUPPORTED_TAG(TAG)
1453-# ---------------------
1454-# Trace this macro to discover what tags are supported by the libtool
1455-# --tag option, using:
1456-# autoconf --trace 'LT_SUPPORTED_TAG:$1'
1457-AC_DEFUN([LT_SUPPORTED_TAG], [])
1458-
1459-
1460-# C support is built-in for now
1461-m4_define([_LT_LANG_C_enabled], [])
1462-m4_define([_LT_TAGS], [])
1463-
1464-
1465-# LT_LANG(LANG)
1466-# -------------
1467-# Enable libtool support for the given language if not already enabled.
1468-AC_DEFUN([LT_LANG],
1469-[AC_BEFORE([$0], [LT_OUTPUT])dnl
1470-m4_case([$1],
1471- [C], [_LT_LANG(C)],
1472- [C++], [_LT_LANG(CXX)],
1473- [Go], [_LT_LANG(GO)],
1474- [Java], [_LT_LANG(GCJ)],
1475- [Fortran 77], [_LT_LANG(F77)],
1476- [Fortran], [_LT_LANG(FC)],
1477- [Windows Resource], [_LT_LANG(RC)],
1478- [m4_ifdef([_LT_LANG_]$1[_CONFIG],
1479- [_LT_LANG($1)],
1480- [m4_fatal([$0: unsupported language: "$1"])])])dnl
1481-])# LT_LANG
1482-
1483-
1484-# _LT_LANG(LANGNAME)
1485-# ------------------
1486-m4_defun([_LT_LANG],
1487-[m4_ifdef([_LT_LANG_]$1[_enabled], [],
1488- [LT_SUPPORTED_TAG([$1])dnl
1489- m4_append([_LT_TAGS], [$1 ])dnl
1490- m4_define([_LT_LANG_]$1[_enabled], [])dnl
1491- _LT_LANG_$1_CONFIG($1)])dnl
1492-])# _LT_LANG
1493-
1494-
1495-m4_ifndef([AC_PROG_GO], [
1496-############################################################
1497-# NOTE: This macro has been submitted for inclusion into #
1498-# GNU Autoconf as AC_PROG_GO. When it is available in #
1499-# a released version of Autoconf we should remove this #
1500-# macro and use it instead. #
1501-############################################################
1502-m4_defun([AC_PROG_GO],
1503-[AC_LANG_PUSH(Go)dnl
1504-AC_ARG_VAR([GOC], [Go compiler command])dnl
1505-AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
1506-_AC_ARG_VAR_LDFLAGS()dnl
1507-AC_CHECK_TOOL(GOC, gccgo)
1508-if test -z "$GOC"; then
1509- if test -n "$ac_tool_prefix"; then
1510- AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
1511- fi
1512-fi
1513-if test -z "$GOC"; then
1514- AC_CHECK_PROG(GOC, gccgo, gccgo, false)
1515-fi
1516-])#m4_defun
1517-])#m4_ifndef
1518-
1519-
1520-# _LT_LANG_DEFAULT_CONFIG
1521-# -----------------------
1522-m4_defun([_LT_LANG_DEFAULT_CONFIG],
1523-[AC_PROVIDE_IFELSE([AC_PROG_CXX],
1524- [LT_LANG(CXX)],
1525- [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
1526-
1527-AC_PROVIDE_IFELSE([AC_PROG_F77],
1528- [LT_LANG(F77)],
1529- [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
1530-
1531-AC_PROVIDE_IFELSE([AC_PROG_FC],
1532- [LT_LANG(FC)],
1533- [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
1534-
1535-dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
1536-dnl pulling things in needlessly.
1537-AC_PROVIDE_IFELSE([AC_PROG_GCJ],
1538- [LT_LANG(GCJ)],
1539- [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
1540- [LT_LANG(GCJ)],
1541- [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
1542- [LT_LANG(GCJ)],
1543- [m4_ifdef([AC_PROG_GCJ],
1544- [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
1545- m4_ifdef([A][M_PROG_GCJ],
1546- [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
1547- m4_ifdef([LT_PROG_GCJ],
1548- [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
1549-
1550-AC_PROVIDE_IFELSE([AC_PROG_GO],
1551- [LT_LANG(GO)],
1552- [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
1553-
1554-AC_PROVIDE_IFELSE([LT_PROG_RC],
1555- [LT_LANG(RC)],
1556- [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
1557-])# _LT_LANG_DEFAULT_CONFIG
1558-
1559-# Obsolete macros:
1560-AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
1561-AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
1562-AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
1563-AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
1564-AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
1565-dnl aclocal-1.4 backwards compatibility:
1566-dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
1567-dnl AC_DEFUN([AC_LIBTOOL_F77], [])
1568-dnl AC_DEFUN([AC_LIBTOOL_FC], [])
1569-dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
1570-dnl AC_DEFUN([AC_LIBTOOL_RC], [])
1571-
1572-
1573-# _LT_TAG_COMPILER
1574-# ----------------
1575-m4_defun([_LT_TAG_COMPILER],
1576-[AC_REQUIRE([AC_PROG_CC])dnl
1577-
1578-_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
1579-_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
1580-_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
1581-_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
1582-
1583-# If no C compiler was specified, use CC.
1584-LTCC=${LTCC-"$CC"}
1585-
1586-# If no C compiler flags were specified, use CFLAGS.
1587-LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1588-
1589-# Allow CC to be a program name with arguments.
1590-compiler=$CC
1591-])# _LT_TAG_COMPILER
1592-
1593-
1594-# _LT_COMPILER_BOILERPLATE
1595-# ------------------------
1596-# Check for compiler boilerplate output or warnings with
1597-# the simple compiler test code.
1598-m4_defun([_LT_COMPILER_BOILERPLATE],
1599-[m4_require([_LT_DECL_SED])dnl
1600-ac_outfile=conftest.$ac_objext
1601-echo "$lt_simple_compile_test_code" >conftest.$ac_ext
1602-eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1603-_lt_compiler_boilerplate=`cat conftest.err`
1604-$RM conftest*
1605-])# _LT_COMPILER_BOILERPLATE
1606-
1607-
1608-# _LT_LINKER_BOILERPLATE
1609-# ----------------------
1610-# Check for linker boilerplate output or warnings with
1611-# the simple link test code.
1612-m4_defun([_LT_LINKER_BOILERPLATE],
1613-[m4_require([_LT_DECL_SED])dnl
1614-ac_outfile=conftest.$ac_objext
1615-echo "$lt_simple_link_test_code" >conftest.$ac_ext
1616-eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1617-_lt_linker_boilerplate=`cat conftest.err`
1618-$RM -r conftest*
1619-])# _LT_LINKER_BOILERPLATE
1620-
1621-# _LT_REQUIRED_DARWIN_CHECKS
1622-# -------------------------
1623-m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
1624- case $host_os in
1625- rhapsody* | darwin*)
1626- AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
1627- AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
1628- AC_CHECK_TOOL([LIPO], [lipo], [:])
1629- AC_CHECK_TOOL([OTOOL], [otool], [:])
1630- AC_CHECK_TOOL([OTOOL64], [otool64], [:])
1631- _LT_DECL([], [DSYMUTIL], [1],
1632- [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
1633- _LT_DECL([], [NMEDIT], [1],
1634- [Tool to change global to local symbols on Mac OS X])
1635- _LT_DECL([], [LIPO], [1],
1636- [Tool to manipulate fat objects and archives on Mac OS X])
1637- _LT_DECL([], [OTOOL], [1],
1638- [ldd/readelf like tool for Mach-O binaries on Mac OS X])
1639- _LT_DECL([], [OTOOL64], [1],
1640- [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
1641-
1642- AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
1643- [lt_cv_apple_cc_single_mod=no
1644- if test -z "${LT_MULTI_MODULE}"; then
1645- # By default we will add the -single_module flag. You can override
1646- # by either setting the environment variable LT_MULTI_MODULE
1647- # non-empty at configure time, or by adding -multi_module to the
1648- # link flags.
1649- rm -rf libconftest.dylib*
1650- echo "int foo(void){return 1;}" > conftest.c
1651- echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1652--dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
1653- $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1654- -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
1655- _lt_result=$?
1656- # If there is a non-empty error log, and "single_module"
1657- # appears in it, assume the flag caused a linker warning
1658- if test -s conftest.err && $GREP single_module conftest.err; then
1659- cat conftest.err >&AS_MESSAGE_LOG_FD
1660- # Otherwise, if the output was created with a 0 exit code from
1661- # the compiler, it worked.
1662- elif test -f libconftest.dylib && test $_lt_result -eq 0; then
1663- lt_cv_apple_cc_single_mod=yes
1664- else
1665- cat conftest.err >&AS_MESSAGE_LOG_FD
1666- fi
1667- rm -rf libconftest.dylib*
1668- rm -f conftest.*
1669- fi])
1670-
1671- AC_CACHE_CHECK([for -exported_symbols_list linker flag],
1672- [lt_cv_ld_exported_symbols_list],
1673- [lt_cv_ld_exported_symbols_list=no
1674- save_LDFLAGS=$LDFLAGS
1675- echo "_main" > conftest.sym
1676- LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1677- AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
1678- [lt_cv_ld_exported_symbols_list=yes],
1679- [lt_cv_ld_exported_symbols_list=no])
1680- LDFLAGS="$save_LDFLAGS"
1681- ])
1682-
1683- AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
1684- [lt_cv_ld_force_load=no
1685- cat > conftest.c << _LT_EOF
1686-int forced_loaded() { return 2;}
1687-_LT_EOF
1688- echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
1689- $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
1690- echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
1691- $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
1692- echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
1693- $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
1694- cat > conftest.c << _LT_EOF
1695-int main() { return 0;}
1696-_LT_EOF
1697- echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
1698- $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
1699- _lt_result=$?
1700- if test -s conftest.err && $GREP force_load conftest.err; then
1701- cat conftest.err >&AS_MESSAGE_LOG_FD
1702- elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
1703- lt_cv_ld_force_load=yes
1704- else
1705- cat conftest.err >&AS_MESSAGE_LOG_FD
1706- fi
1707- rm -f conftest.err libconftest.a conftest conftest.c
1708- rm -rf conftest.dSYM
1709- ])
1710- case $host_os in
1711- rhapsody* | darwin1.[[012]])
1712- _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1713- darwin1.*)
1714- _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1715- darwin*) # darwin 5.x on
1716- # if running on 10.5 or later, the deployment target defaults
1717- # to the OS version, if on x86, and 10.4, the deployment
1718- # target defaults to 10.4. Don't you love it?
1719- case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
1720- 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
1721- _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1722- 10.[[012]]*)
1723- _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1724- 10.*)
1725- _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1726- esac
1727- ;;
1728- esac
1729- if test "$lt_cv_apple_cc_single_mod" = "yes"; then
1730- _lt_dar_single_mod='$single_module'
1731- fi
1732- if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
1733- _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
1734- else
1735- _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1736- fi
1737- if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
1738- _lt_dsymutil='~$DSYMUTIL $lib || :'
1739- else
1740- _lt_dsymutil=
1741- fi
1742- ;;
1743- esac
1744-])
1745-
1746-
1747-# _LT_DARWIN_LINKER_FEATURES([TAG])
1748-# ---------------------------------
1749-# Checks for linker and compiler features on darwin
1750-m4_defun([_LT_DARWIN_LINKER_FEATURES],
1751-[
1752- m4_require([_LT_REQUIRED_DARWIN_CHECKS])
1753- _LT_TAGVAR(archive_cmds_need_lc, $1)=no
1754- _LT_TAGVAR(hardcode_direct, $1)=no
1755- _LT_TAGVAR(hardcode_automatic, $1)=yes
1756- _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1757- if test "$lt_cv_ld_force_load" = "yes"; then
1758- _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
1759- m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
1760- [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes])
1761- else
1762- _LT_TAGVAR(whole_archive_flag_spec, $1)=''
1763- fi
1764- _LT_TAGVAR(link_all_deplibs, $1)=yes
1765- _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
1766- case $cc_basename in
1767- ifort*) _lt_dar_can_shared=yes ;;
1768- *) _lt_dar_can_shared=$GCC ;;
1769- esac
1770- if test "$_lt_dar_can_shared" = "yes"; then
1771- output_verbose_link_cmd=func_echo_all
1772- _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}"
1773- _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1774- _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}"
1775- _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}"
1776- m4_if([$1], [CXX],
1777-[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
1778- _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}"
1779- _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}"
1780- fi
1781-],[])
1782- else
1783- _LT_TAGVAR(ld_shlibs, $1)=no
1784- fi
1785-])
1786-
1787-# _LT_SYS_MODULE_PATH_AIX([TAGNAME])
1788-# ----------------------------------
1789-# Links a minimal program and checks the executable
1790-# for the system default hardcoded library path. In most cases,
1791-# this is /usr/lib:/lib, but when the MPI compilers are used
1792-# the location of the communication and MPI libs are included too.
1793-# If we don't find anything, use the default library path according
1794-# to the aix ld manual.
1795-# Store the results from the different compilers for each TAGNAME.
1796-# Allow to override them for all tags through lt_cv_aix_libpath.
1797-m4_defun([_LT_SYS_MODULE_PATH_AIX],
1798-[m4_require([_LT_DECL_SED])dnl
1799-if test "${lt_cv_aix_libpath+set}" = set; then
1800- aix_libpath=$lt_cv_aix_libpath
1801-else
1802- AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
1803- [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
1804- lt_aix_libpath_sed='[
1805- /Import File Strings/,/^$/ {
1806- /^0/ {
1807- s/^0 *\([^ ]*\) *$/\1/
1808- p
1809- }
1810- }]'
1811- _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1812- # Check for a 64-bit object if we didn't find anything.
1813- if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1814- _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1815- fi],[])
1816- if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1817- _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
1818- fi
1819- ])
1820- aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
1821-fi
1822-])# _LT_SYS_MODULE_PATH_AIX
1823-
1824-
1825-# _LT_SHELL_INIT(ARG)
1826-# -------------------
1827-m4_define([_LT_SHELL_INIT],
1828-[m4_divert_text([M4SH-INIT], [$1
1829-])])# _LT_SHELL_INIT
1830-
1831-
1832-
1833-# _LT_PROG_ECHO_BACKSLASH
1834-# -----------------------
1835-# Find how we can fake an echo command that does not interpret backslash.
1836-# In particular, with Autoconf 2.60 or later we add some code to the start
1837-# of the generated configure script which will find a shell with a builtin
1838-# printf (which we can use as an echo command).
1839-m4_defun([_LT_PROG_ECHO_BACKSLASH],
1840-[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1841-ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1842-ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1843-
1844-AC_MSG_CHECKING([how to print strings])
1845-# Test print first, because it will be a builtin if present.
1846-if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
1847- test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
1848- ECHO='print -r --'
1849-elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
1850- ECHO='printf %s\n'
1851-else
1852- # Use this function as a fallback that always works.
1853- func_fallback_echo ()
1854- {
1855- eval 'cat <<_LTECHO_EOF
1856-$[]1
1857-_LTECHO_EOF'
1858- }
1859- ECHO='func_fallback_echo'
1860-fi
1861-
1862-# func_echo_all arg...
1863-# Invoke $ECHO with all args, space-separated.
1864-func_echo_all ()
1865-{
1866- $ECHO "$*"
1867-}
1868-
1869-case "$ECHO" in
1870- printf*) AC_MSG_RESULT([printf]) ;;
1871- print*) AC_MSG_RESULT([print -r]) ;;
1872- *) AC_MSG_RESULT([cat]) ;;
1873-esac
1874-
1875-m4_ifdef([_AS_DETECT_SUGGESTED],
1876-[_AS_DETECT_SUGGESTED([
1877- test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
1878- ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1879- ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1880- ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1881- PATH=/empty FPATH=/empty; export PATH FPATH
1882- test "X`printf %s $ECHO`" = "X$ECHO" \
1883- || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
1884-
1885-_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1886-_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
1887-])# _LT_PROG_ECHO_BACKSLASH
1888-
1889-
1890-# _LT_WITH_SYSROOT
1891-# ----------------
1892-AC_DEFUN([_LT_WITH_SYSROOT],
1893-[AC_MSG_CHECKING([for sysroot])
1894-AC_ARG_WITH([sysroot],
1895-[ --with-sysroot[=DIR] Search for dependent libraries within DIR
1896- (or the compiler's sysroot if not specified).],
1897-[], [with_sysroot=no])
1898-
1899-dnl lt_sysroot will always be passed unquoted. We quote it here
1900-dnl in case the user passed a directory name.
1901-lt_sysroot=
1902-case ${with_sysroot} in #(
1903- yes)
1904- if test "$GCC" = yes; then
1905- lt_sysroot=`$CC --print-sysroot 2>/dev/null`
1906- fi
1907- ;; #(
1908- /*)
1909- lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
1910- ;; #(
1911- no|'')
1912- ;; #(
1913- *)
1914- AC_MSG_RESULT([${with_sysroot}])
1915- AC_MSG_ERROR([The sysroot must be an absolute path.])
1916- ;;
1917-esac
1918-
1919- AC_MSG_RESULT([${lt_sysroot:-no}])
1920-_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
1921-[dependent libraries, and in which our libraries should be installed.])])
1922-
1923-# _LT_ENABLE_LOCK
1924-# ---------------
1925-m4_defun([_LT_ENABLE_LOCK],
1926-[AC_ARG_ENABLE([libtool-lock],
1927- [AS_HELP_STRING([--disable-libtool-lock],
1928- [avoid locking (might break parallel builds)])])
1929-test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1930-
1931-# Some flags need to be propagated to the compiler or linker for good
1932-# libtool support.
1933-case $host in
1934-ia64-*-hpux*)
1935- # Find out which ABI we are using.
1936- echo 'int i;' > conftest.$ac_ext
1937- if AC_TRY_EVAL(ac_compile); then
1938- case `/usr/bin/file conftest.$ac_objext` in
1939- *ELF-32*)
1940- HPUX_IA64_MODE="32"
1941- ;;
1942- *ELF-64*)
1943- HPUX_IA64_MODE="64"
1944- ;;
1945- esac
1946- fi
1947- rm -rf conftest*
1948- ;;
1949-*-*-irix6*)
1950- # Find out which ABI we are using.
1951- echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
1952- if AC_TRY_EVAL(ac_compile); then
1953- if test "$lt_cv_prog_gnu_ld" = yes; then
1954- case `/usr/bin/file conftest.$ac_objext` in
1955- *32-bit*)
1956- LD="${LD-ld} -melf32bsmip"
1957- ;;
1958- *N32*)
1959- LD="${LD-ld} -melf32bmipn32"
1960- ;;
1961- *64-bit*)
1962- LD="${LD-ld} -melf64bmip"
1963- ;;
1964- esac
1965- else
1966- case `/usr/bin/file conftest.$ac_objext` in
1967- *32-bit*)
1968- LD="${LD-ld} -32"
1969- ;;
1970- *N32*)
1971- LD="${LD-ld} -n32"
1972- ;;
1973- *64-bit*)
1974- LD="${LD-ld} -64"
1975- ;;
1976- esac
1977- fi
1978- fi
1979- rm -rf conftest*
1980- ;;
1981-
1982-x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
1983-s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
1984- # Find out which ABI we are using.
1985- echo 'int i;' > conftest.$ac_ext
1986- if AC_TRY_EVAL(ac_compile); then
1987- case `/usr/bin/file conftest.o` in
1988- *32-bit*)
1989- case $host in
1990- x86_64-*kfreebsd*-gnu)
1991- LD="${LD-ld} -m elf_i386_fbsd"
1992- ;;
1993- x86_64-*linux*)
1994- LD="${LD-ld} -m elf_i386"
1995- ;;
1996- ppc64-*linux*|powerpc64-*linux*)
1997- LD="${LD-ld} -m elf32ppclinux"
1998- ;;
1999- s390x-*linux*)
2000- LD="${LD-ld} -m elf_s390"
2001- ;;
2002- sparc64-*linux*)
2003- LD="${LD-ld} -m elf32_sparc"
2004- ;;
2005- esac
2006- ;;
2007- *64-bit*)
2008- case $host in
2009- x86_64-*kfreebsd*-gnu)
2010- LD="${LD-ld} -m elf_x86_64_fbsd"
2011- ;;
2012- x86_64-*linux*)
2013- LD="${LD-ld} -m elf_x86_64"
2014- ;;
2015- ppc*-*linux*|powerpc*-*linux*)
2016- LD="${LD-ld} -m elf64ppc"
2017- ;;
2018- s390*-*linux*|s390*-*tpf*)
2019- LD="${LD-ld} -m elf64_s390"
2020- ;;
2021- sparc*-*linux*)
2022- LD="${LD-ld} -m elf64_sparc"
2023- ;;
2024- esac
2025- ;;
2026- esac
2027- fi
2028- rm -rf conftest*
2029- ;;
2030-
2031-*-*-sco3.2v5*)
2032- # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2033- SAVE_CFLAGS="$CFLAGS"
2034- CFLAGS="$CFLAGS -belf"
2035- AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
2036- [AC_LANG_PUSH(C)
2037- AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
2038- AC_LANG_POP])
2039- if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2040- # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2041- CFLAGS="$SAVE_CFLAGS"
2042- fi
2043- ;;
2044-*-*solaris*)
2045- # Find out which ABI we are using.
2046- echo 'int i;' > conftest.$ac_ext
2047- if AC_TRY_EVAL(ac_compile); then
2048- case `/usr/bin/file conftest.o` in
2049- *64-bit*)
2050- case $lt_cv_prog_gnu_ld in
2051- yes*)
2052- case $host in
2053- i?86-*-solaris*)
2054- LD="${LD-ld} -m elf_x86_64"
2055- ;;
2056- sparc*-*-solaris*)
2057- LD="${LD-ld} -m elf64_sparc"
2058- ;;
2059- esac
2060- # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
2061- if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
2062- LD="${LD-ld}_sol2"
2063- fi
2064- ;;
2065- *)
2066- if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
2067- LD="${LD-ld} -64"
2068- fi
2069- ;;
2070- esac
2071- ;;
2072- esac
2073- fi
2074- rm -rf conftest*
2075- ;;
2076-esac
2077-
2078-need_locks="$enable_libtool_lock"
2079-])# _LT_ENABLE_LOCK
2080-
2081-
2082-# _LT_PROG_AR
2083-# -----------
2084-m4_defun([_LT_PROG_AR],
2085-[AC_CHECK_TOOLS(AR, [ar], false)
2086-: ${AR=ar}
2087-: ${AR_FLAGS=cru}
2088-_LT_DECL([], [AR], [1], [The archiver])
2089-_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
2090-
2091-AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
2092- [lt_cv_ar_at_file=no
2093- AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
2094- [echo conftest.$ac_objext > conftest.lst
2095- lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
2096- AC_TRY_EVAL([lt_ar_try])
2097- if test "$ac_status" -eq 0; then
2098- # Ensure the archiver fails upon bogus file names.
2099- rm -f conftest.$ac_objext libconftest.a
2100- AC_TRY_EVAL([lt_ar_try])
2101- if test "$ac_status" -ne 0; then
2102- lt_cv_ar_at_file=@
2103- fi
2104- fi
2105- rm -f conftest.* libconftest.a
2106- ])
2107- ])
2108-
2109-if test "x$lt_cv_ar_at_file" = xno; then
2110- archiver_list_spec=
2111-else
2112- archiver_list_spec=$lt_cv_ar_at_file
2113-fi
2114-_LT_DECL([], [archiver_list_spec], [1],
2115- [How to feed a file listing to the archiver])
2116-])# _LT_PROG_AR
2117-
2118-
2119-# _LT_CMD_OLD_ARCHIVE
2120-# -------------------
2121-m4_defun([_LT_CMD_OLD_ARCHIVE],
2122-[_LT_PROG_AR
2123-
2124-AC_CHECK_TOOL(STRIP, strip, :)
2125-test -z "$STRIP" && STRIP=:
2126-_LT_DECL([], [STRIP], [1], [A symbol stripping program])
2127-
2128-AC_CHECK_TOOL(RANLIB, ranlib, :)
2129-test -z "$RANLIB" && RANLIB=:
2130-_LT_DECL([], [RANLIB], [1],
2131- [Commands used to install an old-style archive])
2132-
2133-# Determine commands to create old-style static archives.
2134-old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
2135-old_postinstall_cmds='chmod 644 $oldlib'
2136-old_postuninstall_cmds=
2137-
2138-if test -n "$RANLIB"; then
2139- case $host_os in
2140- openbsd*)
2141- old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
2142- ;;
2143- *)
2144- old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
2145- ;;
2146- esac
2147- old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
2148-fi
2149-
2150-case $host_os in
2151- darwin*)
2152- lock_old_archive_extraction=yes ;;
2153- *)
2154- lock_old_archive_extraction=no ;;
2155-esac
2156-_LT_DECL([], [old_postinstall_cmds], [2])
2157-_LT_DECL([], [old_postuninstall_cmds], [2])
2158-_LT_TAGDECL([], [old_archive_cmds], [2],
2159- [Commands used to build an old-style archive])
2160-_LT_DECL([], [lock_old_archive_extraction], [0],
2161- [Whether to use a lock for old archive extraction])
2162-])# _LT_CMD_OLD_ARCHIVE
2163-
2164-
2165-# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2166-# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
2167-# ----------------------------------------------------------------
2168-# Check whether the given compiler option works
2169-AC_DEFUN([_LT_COMPILER_OPTION],
2170-[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2171-m4_require([_LT_DECL_SED])dnl
2172-AC_CACHE_CHECK([$1], [$2],
2173- [$2=no
2174- m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
2175- echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2176- lt_compiler_flag="$3"
2177- # Insert the option either (1) after the last *FLAGS variable, or
2178- # (2) before a word containing "conftest.", or (3) at the end.
2179- # Note that $ac_compile itself does not contain backslashes and begins
2180- # with a dollar sign (not a hyphen), so the echo should work correctly.
2181- # The option is referenced via a variable to avoid confusing sed.
2182- lt_compile=`echo "$ac_compile" | $SED \
2183- -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2184- -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2185- -e 's:$: $lt_compiler_flag:'`
2186- (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2187- (eval "$lt_compile" 2>conftest.err)
2188- ac_status=$?
2189- cat conftest.err >&AS_MESSAGE_LOG_FD
2190- echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2191- if (exit $ac_status) && test -s "$ac_outfile"; then
2192- # The compiler can only warn and ignore the option if not recognized
2193- # So say no if there are warnings other than the usual output.
2194- $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
2195- $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2196- if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
2197- $2=yes
2198- fi
2199- fi
2200- $RM conftest*
2201-])
2202-
2203-if test x"[$]$2" = xyes; then
2204- m4_if([$5], , :, [$5])
2205-else
2206- m4_if([$6], , :, [$6])
2207-fi
2208-])# _LT_COMPILER_OPTION
2209-
2210-# Old name:
2211-AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
2212-dnl aclocal-1.4 backwards compatibility:
2213-dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
2214-
2215-
2216-# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2217-# [ACTION-SUCCESS], [ACTION-FAILURE])
2218-# ----------------------------------------------------
2219-# Check whether the given linker option works
2220-AC_DEFUN([_LT_LINKER_OPTION],
2221-[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2222-m4_require([_LT_DECL_SED])dnl
2223-AC_CACHE_CHECK([$1], [$2],
2224- [$2=no
2225- save_LDFLAGS="$LDFLAGS"
2226- LDFLAGS="$LDFLAGS $3"
2227- echo "$lt_simple_link_test_code" > conftest.$ac_ext
2228- if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
2229- # The linker can only warn and ignore the option if not recognized
2230- # So say no if there are warnings
2231- if test -s conftest.err; then
2232- # Append any errors to the config.log.
2233- cat conftest.err 1>&AS_MESSAGE_LOG_FD
2234- $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
2235- $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2236- if diff conftest.exp conftest.er2 >/dev/null; then
2237- $2=yes
2238- fi
2239- else
2240- $2=yes
2241- fi
2242- fi
2243- $RM -r conftest*
2244- LDFLAGS="$save_LDFLAGS"
2245-])
2246-
2247-if test x"[$]$2" = xyes; then
2248- m4_if([$4], , :, [$4])
2249-else
2250- m4_if([$5], , :, [$5])
2251-fi
2252-])# _LT_LINKER_OPTION
2253-
2254-# Old name:
2255-AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
2256-dnl aclocal-1.4 backwards compatibility:
2257-dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
2258-
2259-
2260-# LT_CMD_MAX_LEN
2261-#---------------
2262-AC_DEFUN([LT_CMD_MAX_LEN],
2263-[AC_REQUIRE([AC_CANONICAL_HOST])dnl
2264-# find the maximum length of command line arguments
2265-AC_MSG_CHECKING([the maximum length of command line arguments])
2266-AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
2267- i=0
2268- teststring="ABCD"
2269-
2270- case $build_os in
2271- msdosdjgpp*)
2272- # On DJGPP, this test can blow up pretty badly due to problems in libc
2273- # (any single argument exceeding 2000 bytes causes a buffer overrun
2274- # during glob expansion). Even if it were fixed, the result of this
2275- # check would be larger than it should be.
2276- lt_cv_sys_max_cmd_len=12288; # 12K is about right
2277- ;;
2278-
2279- gnu*)
2280- # Under GNU Hurd, this test is not required because there is
2281- # no limit to the length of command line arguments.
2282- # Libtool will interpret -1 as no limit whatsoever
2283- lt_cv_sys_max_cmd_len=-1;
2284- ;;
2285-
2286- cygwin* | mingw* | cegcc*)
2287- # On Win9x/ME, this test blows up -- it succeeds, but takes
2288- # about 5 minutes as the teststring grows exponentially.
2289- # Worse, since 9x/ME are not pre-emptively multitasking,
2290- # you end up with a "frozen" computer, even though with patience
2291- # the test eventually succeeds (with a max line length of 256k).
2292- # Instead, let's just punt: use the minimum linelength reported by
2293- # all of the supported platforms: 8192 (on NT/2K/XP).
2294- lt_cv_sys_max_cmd_len=8192;
2295- ;;
2296-
2297- mint*)
2298- # On MiNT this can take a long time and run out of memory.
2299- lt_cv_sys_max_cmd_len=8192;
2300- ;;
2301-
2302- amigaos*)
2303- # On AmigaOS with pdksh, this test takes hours, literally.
2304- # So we just punt and use a minimum line length of 8192.
2305- lt_cv_sys_max_cmd_len=8192;
2306- ;;
2307-
2308- netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
2309- # This has been around since 386BSD, at least. Likely further.
2310- if test -x /sbin/sysctl; then
2311- lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
2312- elif test -x /usr/sbin/sysctl; then
2313- lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
2314- else
2315- lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
2316- fi
2317- # And add a safety zone
2318- lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
2319- lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
2320- ;;
2321-
2322- interix*)
2323- # We know the value 262144 and hardcode it with a safety zone (like BSD)
2324- lt_cv_sys_max_cmd_len=196608
2325- ;;
2326-
2327- os2*)
2328- # The test takes a long time on OS/2.
2329- lt_cv_sys_max_cmd_len=8192
2330- ;;
2331-
2332- osf*)
2333- # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
2334- # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
2335- # nice to cause kernel panics so lets avoid the loop below.
2336- # First set a reasonable default.
2337- lt_cv_sys_max_cmd_len=16384
2338- #
2339- if test -x /sbin/sysconfig; then
2340- case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
2341- *1*) lt_cv_sys_max_cmd_len=-1 ;;
2342- esac
2343- fi
2344- ;;
2345- sco3.2v5*)
2346- lt_cv_sys_max_cmd_len=102400
2347- ;;
2348- sysv5* | sco5v6* | sysv4.2uw2*)
2349- kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
2350- if test -n "$kargmax"; then
2351- lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
2352- else
2353- lt_cv_sys_max_cmd_len=32768
2354- fi
2355- ;;
2356- *)
2357- lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
2358- if test -n "$lt_cv_sys_max_cmd_len"; then
2359- lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
2360- lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
2361- else
2362- # Make teststring a little bigger before we do anything with it.
2363- # a 1K string should be a reasonable start.
2364- for i in 1 2 3 4 5 6 7 8 ; do
2365- teststring=$teststring$teststring
2366- done
2367- SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
2368- # If test is not a shell built-in, we'll probably end up computing a
2369- # maximum length that is only half of the actual maximum length, but
2370- # we can't tell.
2371- while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
2372- = "X$teststring$teststring"; } >/dev/null 2>&1 &&
2373- test $i != 17 # 1/2 MB should be enough
2374- do
2375- i=`expr $i + 1`
2376- teststring=$teststring$teststring
2377- done
2378- # Only check the string length outside the loop.
2379- lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
2380- teststring=
2381- # Add a significant safety factor because C++ compilers can tack on
2382- # massive amounts of additional arguments before passing them to the
2383- # linker. It appears as though 1/2 is a usable value.
2384- lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
2385- fi
2386- ;;
2387- esac
2388-])
2389-if test -n $lt_cv_sys_max_cmd_len ; then
2390- AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
2391-else
2392- AC_MSG_RESULT(none)
2393-fi
2394-max_cmd_len=$lt_cv_sys_max_cmd_len
2395-_LT_DECL([], [max_cmd_len], [0],
2396- [What is the maximum length of a command?])
2397-])# LT_CMD_MAX_LEN
2398-
2399-# Old name:
2400-AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
2401-dnl aclocal-1.4 backwards compatibility:
2402-dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
2403-
2404-
2405-# _LT_HEADER_DLFCN
2406-# ----------------
2407-m4_defun([_LT_HEADER_DLFCN],
2408-[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
2409-])# _LT_HEADER_DLFCN
2410-
2411-
2412-# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
2413-# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
2414-# ----------------------------------------------------------------
2415-m4_defun([_LT_TRY_DLOPEN_SELF],
2416-[m4_require([_LT_HEADER_DLFCN])dnl
2417-if test "$cross_compiling" = yes; then :
2418- [$4]
2419-else
2420- lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
2421- lt_status=$lt_dlunknown
2422- cat > conftest.$ac_ext <<_LT_EOF
2423-[#line $LINENO "configure"
2424-#include "confdefs.h"
2425-
2426-#if HAVE_DLFCN_H
2427-#include <dlfcn.h>
2428-#endif
2429-
2430-#include <stdio.h>
2431-
2432-#ifdef RTLD_GLOBAL
2433-# define LT_DLGLOBAL RTLD_GLOBAL
2434-#else
2435-# ifdef DL_GLOBAL
2436-# define LT_DLGLOBAL DL_GLOBAL
2437-# else
2438-# define LT_DLGLOBAL 0
2439-# endif
2440-#endif
2441-
2442-/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
2443- find out it does not work in some platform. */
2444-#ifndef LT_DLLAZY_OR_NOW
2445-# ifdef RTLD_LAZY
2446-# define LT_DLLAZY_OR_NOW RTLD_LAZY
2447-# else
2448-# ifdef DL_LAZY
2449-# define LT_DLLAZY_OR_NOW DL_LAZY
2450-# else
2451-# ifdef RTLD_NOW
2452-# define LT_DLLAZY_OR_NOW RTLD_NOW
2453-# else
2454-# ifdef DL_NOW
2455-# define LT_DLLAZY_OR_NOW DL_NOW
2456-# else
2457-# define LT_DLLAZY_OR_NOW 0
2458-# endif
2459-# endif
2460-# endif
2461-# endif
2462-#endif
2463-
2464-/* When -fvisbility=hidden is used, assume the code has been annotated
2465- correspondingly for the symbols needed. */
2466-#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
2467-int fnord () __attribute__((visibility("default")));
2468-#endif
2469-
2470-int fnord () { return 42; }
2471-int main ()
2472-{
2473- void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
2474- int status = $lt_dlunknown;
2475-
2476- if (self)
2477- {
2478- if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
2479- else
2480- {
2481- if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
2482- else puts (dlerror ());
2483- }
2484- /* dlclose (self); */
2485- }
2486- else
2487- puts (dlerror ());
2488-
2489- return status;
2490-}]
2491-_LT_EOF
2492- if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
2493- (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
2494- lt_status=$?
2495- case x$lt_status in
2496- x$lt_dlno_uscore) $1 ;;
2497- x$lt_dlneed_uscore) $2 ;;
2498- x$lt_dlunknown|x*) $3 ;;
2499- esac
2500- else :
2501- # compilation failed
2502- $3
2503- fi
2504-fi
2505-rm -fr conftest*
2506-])# _LT_TRY_DLOPEN_SELF
2507-
2508-
2509-# LT_SYS_DLOPEN_SELF
2510-# ------------------
2511-AC_DEFUN([LT_SYS_DLOPEN_SELF],
2512-[m4_require([_LT_HEADER_DLFCN])dnl
2513-if test "x$enable_dlopen" != xyes; then
2514- enable_dlopen=unknown
2515- enable_dlopen_self=unknown
2516- enable_dlopen_self_static=unknown
2517-else
2518- lt_cv_dlopen=no
2519- lt_cv_dlopen_libs=
2520-
2521- case $host_os in
2522- beos*)
2523- lt_cv_dlopen="load_add_on"
2524- lt_cv_dlopen_libs=
2525- lt_cv_dlopen_self=yes
2526- ;;
2527-
2528- mingw* | pw32* | cegcc*)
2529- lt_cv_dlopen="LoadLibrary"
2530- lt_cv_dlopen_libs=
2531- ;;
2532-
2533- cygwin*)
2534- lt_cv_dlopen="dlopen"
2535- lt_cv_dlopen_libs=
2536- ;;
2537-
2538- darwin*)
2539- # if libdl is installed we need to link against it
2540- AC_CHECK_LIB([dl], [dlopen],
2541- [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
2542- lt_cv_dlopen="dyld"
2543- lt_cv_dlopen_libs=
2544- lt_cv_dlopen_self=yes
2545- ])
2546- ;;
2547-
2548- *)
2549- AC_CHECK_FUNC([shl_load],
2550- [lt_cv_dlopen="shl_load"],
2551- [AC_CHECK_LIB([dld], [shl_load],
2552- [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
2553- [AC_CHECK_FUNC([dlopen],
2554- [lt_cv_dlopen="dlopen"],
2555- [AC_CHECK_LIB([dl], [dlopen],
2556- [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
2557- [AC_CHECK_LIB([svld], [dlopen],
2558- [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
2559- [AC_CHECK_LIB([dld], [dld_link],
2560- [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
2561- ])
2562- ])
2563- ])
2564- ])
2565- ])
2566- ;;
2567- esac
2568-
2569- if test "x$lt_cv_dlopen" != xno; then
2570- enable_dlopen=yes
2571- else
2572- enable_dlopen=no
2573- fi
2574-
2575- case $lt_cv_dlopen in
2576- dlopen)
2577- save_CPPFLAGS="$CPPFLAGS"
2578- test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
2579-
2580- save_LDFLAGS="$LDFLAGS"
2581- wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
2582-
2583- save_LIBS="$LIBS"
2584- LIBS="$lt_cv_dlopen_libs $LIBS"
2585-
2586- AC_CACHE_CHECK([whether a program can dlopen itself],
2587- lt_cv_dlopen_self, [dnl
2588- _LT_TRY_DLOPEN_SELF(
2589- lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
2590- lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
2591- ])
2592-
2593- if test "x$lt_cv_dlopen_self" = xyes; then
2594- wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
2595- AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
2596- lt_cv_dlopen_self_static, [dnl
2597- _LT_TRY_DLOPEN_SELF(
2598- lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
2599- lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
2600- ])
2601- fi
2602-
2603- CPPFLAGS="$save_CPPFLAGS"
2604- LDFLAGS="$save_LDFLAGS"
2605- LIBS="$save_LIBS"
2606- ;;
2607- esac
2608-
2609- case $lt_cv_dlopen_self in
2610- yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
2611- *) enable_dlopen_self=unknown ;;
2612- esac
2613-
2614- case $lt_cv_dlopen_self_static in
2615- yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
2616- *) enable_dlopen_self_static=unknown ;;
2617- esac
2618-fi
2619-_LT_DECL([dlopen_support], [enable_dlopen], [0],
2620- [Whether dlopen is supported])
2621-_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
2622- [Whether dlopen of programs is supported])
2623-_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
2624- [Whether dlopen of statically linked programs is supported])
2625-])# LT_SYS_DLOPEN_SELF
2626-
2627-# Old name:
2628-AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
2629-dnl aclocal-1.4 backwards compatibility:
2630-dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
2631-
2632-
2633-# _LT_COMPILER_C_O([TAGNAME])
2634-# ---------------------------
2635-# Check to see if options -c and -o are simultaneously supported by compiler.
2636-# This macro does not hard code the compiler like AC_PROG_CC_C_O.
2637-m4_defun([_LT_COMPILER_C_O],
2638-[m4_require([_LT_DECL_SED])dnl
2639-m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2640-m4_require([_LT_TAG_COMPILER])dnl
2641-AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
2642- [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
2643- [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
2644- $RM -r conftest 2>/dev/null
2645- mkdir conftest
2646- cd conftest
2647- mkdir out
2648- echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2649-
2650- lt_compiler_flag="-o out/conftest2.$ac_objext"
2651- # Insert the option either (1) after the last *FLAGS variable, or
2652- # (2) before a word containing "conftest.", or (3) at the end.
2653- # Note that $ac_compile itself does not contain backslashes and begins
2654- # with a dollar sign (not a hyphen), so the echo should work correctly.
2655- lt_compile=`echo "$ac_compile" | $SED \
2656- -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2657- -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2658- -e 's:$: $lt_compiler_flag:'`
2659- (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2660- (eval "$lt_compile" 2>out/conftest.err)
2661- ac_status=$?
2662- cat out/conftest.err >&AS_MESSAGE_LOG_FD
2663- echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2664- if (exit $ac_status) && test -s out/conftest2.$ac_objext
2665- then
2666- # The compiler can only warn and ignore the option if not recognized
2667- # So say no if there are warnings
2668- $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
2669- $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
2670- if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
2671- _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2672- fi
2673- fi
2674- chmod u+w . 2>&AS_MESSAGE_LOG_FD
2675- $RM conftest*
2676- # SGI C++ compiler will create directory out/ii_files/ for
2677- # template instantiation
2678- test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
2679- $RM out/* && rmdir out
2680- cd ..
2681- $RM -r conftest
2682- $RM conftest*
2683-])
2684-_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
2685- [Does compiler simultaneously support -c and -o options?])
2686-])# _LT_COMPILER_C_O
2687-
2688-
2689-# _LT_COMPILER_FILE_LOCKS([TAGNAME])
2690-# ----------------------------------
2691-# Check to see if we can do hard links to lock some files if needed
2692-m4_defun([_LT_COMPILER_FILE_LOCKS],
2693-[m4_require([_LT_ENABLE_LOCK])dnl
2694-m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2695-_LT_COMPILER_C_O([$1])
2696-
2697-hard_links="nottested"
2698-if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
2699- # do not overwrite the value of need_locks provided by the user
2700- AC_MSG_CHECKING([if we can lock with hard links])
2701- hard_links=yes
2702- $RM conftest*
2703- ln conftest.a conftest.b 2>/dev/null && hard_links=no
2704- touch conftest.a
2705- ln conftest.a conftest.b 2>&5 || hard_links=no
2706- ln conftest.a conftest.b 2>/dev/null && hard_links=no
2707- AC_MSG_RESULT([$hard_links])
2708- if test "$hard_links" = no; then
2709- AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
2710- need_locks=warn
2711- fi
2712-else
2713- need_locks=no
2714-fi
2715-_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
2716-])# _LT_COMPILER_FILE_LOCKS
2717-
2718-
2719-# _LT_CHECK_OBJDIR
2720-# ----------------
2721-m4_defun([_LT_CHECK_OBJDIR],
2722-[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
2723-[rm -f .libs 2>/dev/null
2724-mkdir .libs 2>/dev/null
2725-if test -d .libs; then
2726- lt_cv_objdir=.libs
2727-else
2728- # MS-DOS does not allow filenames that begin with a dot.
2729- lt_cv_objdir=_libs
2730-fi
2731-rmdir .libs 2>/dev/null])
2732-objdir=$lt_cv_objdir
2733-_LT_DECL([], [objdir], [0],
2734- [The name of the directory that contains temporary libtool files])dnl
2735-m4_pattern_allow([LT_OBJDIR])dnl
2736-AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
2737- [Define to the sub-directory in which libtool stores uninstalled libraries.])
2738-])# _LT_CHECK_OBJDIR
2739-
2740-
2741-# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
2742-# --------------------------------------
2743-# Check hardcoding attributes.
2744-m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
2745-[AC_MSG_CHECKING([how to hardcode library paths into programs])
2746-_LT_TAGVAR(hardcode_action, $1)=
2747-if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
2748- test -n "$_LT_TAGVAR(runpath_var, $1)" ||
2749- test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
2750-
2751- # We can hardcode non-existent directories.
2752- if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
2753- # If the only mechanism to avoid hardcoding is shlibpath_var, we
2754- # have to relink, otherwise we might link with an installed library
2755- # when we should be linking with a yet-to-be-installed one
2756- ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2757- test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
2758- # Linking always hardcodes the temporary library directory.
2759- _LT_TAGVAR(hardcode_action, $1)=relink
2760- else
2761- # We can link without hardcoding, and we can hardcode nonexisting dirs.
2762- _LT_TAGVAR(hardcode_action, $1)=immediate
2763- fi
2764-else
2765- # We cannot hardcode anything, or else we can only hardcode existing
2766- # directories.
2767- _LT_TAGVAR(hardcode_action, $1)=unsupported
2768-fi
2769-AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
2770-
2771-if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
2772- test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
2773- # Fast installation is not supported
2774- enable_fast_install=no
2775-elif test "$shlibpath_overrides_runpath" = yes ||
2776- test "$enable_shared" = no; then
2777- # Fast installation is not necessary
2778- enable_fast_install=needless
2779-fi
2780-_LT_TAGDECL([], [hardcode_action], [0],
2781- [How to hardcode a shared library path into an executable])
2782-])# _LT_LINKER_HARDCODE_LIBPATH
2783-
2784-
2785-# _LT_CMD_STRIPLIB
2786-# ----------------
2787-m4_defun([_LT_CMD_STRIPLIB],
2788-[m4_require([_LT_DECL_EGREP])
2789-striplib=
2790-old_striplib=
2791-AC_MSG_CHECKING([whether stripping libraries is possible])
2792-if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
2793- test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2794- test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2795- AC_MSG_RESULT([yes])
2796-else
2797-# FIXME - insert some real tests, host_os isn't really good enough
2798- case $host_os in
2799- darwin*)
2800- if test -n "$STRIP" ; then
2801- striplib="$STRIP -x"
2802- old_striplib="$STRIP -S"
2803- AC_MSG_RESULT([yes])
2804- else
2805- AC_MSG_RESULT([no])
2806- fi
2807- ;;
2808- *)
2809- AC_MSG_RESULT([no])
2810- ;;
2811- esac
2812-fi
2813-_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
2814-_LT_DECL([], [striplib], [1])
2815-])# _LT_CMD_STRIPLIB
2816-
2817-
2818-# _LT_SYS_DYNAMIC_LINKER([TAG])
2819-# -----------------------------
2820-# PORTME Fill in your ld.so characteristics
2821-m4_defun([_LT_SYS_DYNAMIC_LINKER],
2822-[AC_REQUIRE([AC_CANONICAL_HOST])dnl
2823-m4_require([_LT_DECL_EGREP])dnl
2824-m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2825-m4_require([_LT_DECL_OBJDUMP])dnl
2826-m4_require([_LT_DECL_SED])dnl
2827-m4_require([_LT_CHECK_SHELL_FEATURES])dnl
2828-AC_MSG_CHECKING([dynamic linker characteristics])
2829-m4_if([$1],
2830- [], [
2831-if test "$GCC" = yes; then
2832- case $host_os in
2833- darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2834- *) lt_awk_arg="/^libraries:/" ;;
2835- esac
2836- case $host_os in
2837- mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
2838- *) lt_sed_strip_eq="s,=/,/,g" ;;
2839- esac
2840- lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
2841- case $lt_search_path_spec in
2842- *\;*)
2843- # if the path contains ";" then we assume it to be the separator
2844- # otherwise default to the standard path separator (i.e. ":") - it is
2845- # assumed that no part of a normal pathname contains ";" but that should
2846- # okay in the real world where ";" in dirpaths is itself problematic.
2847- lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
2848- ;;
2849- *)
2850- lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
2851- ;;
2852- esac
2853- # Ok, now we have the path, separated by spaces, we can step through it
2854- # and add multilib dir if necessary.
2855- lt_tmp_lt_search_path_spec=
2856- lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2857- for lt_sys_path in $lt_search_path_spec; do
2858- if test -d "$lt_sys_path/$lt_multi_os_dir"; then
2859- lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
2860- else
2861- test -d "$lt_sys_path" && \
2862- lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2863- fi
2864- done
2865- lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
2866-BEGIN {RS=" "; FS="/|\n";} {
2867- lt_foo="";
2868- lt_count=0;
2869- for (lt_i = NF; lt_i > 0; lt_i--) {
2870- if ($lt_i != "" && $lt_i != ".") {
2871- if ($lt_i == "..") {
2872- lt_count++;
2873- } else {
2874- if (lt_count == 0) {
2875- lt_foo="/" $lt_i lt_foo;
2876- } else {
2877- lt_count--;
2878- }
2879- }
2880- }
2881- }
2882- if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2883- if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2884-}'`
2885- # AWK program above erroneously prepends '/' to C:/dos/paths
2886- # for these hosts.
2887- case $host_os in
2888- mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
2889- $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
2890- esac
2891- sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
2892-else
2893- sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2894-fi])
2895-library_names_spec=
2896-libname_spec='lib$name'
2897-soname_spec=
2898-shrext_cmds=".so"
2899-postinstall_cmds=
2900-postuninstall_cmds=
2901-finish_cmds=
2902-finish_eval=
2903-shlibpath_var=
2904-shlibpath_overrides_runpath=unknown
2905-version_type=none
2906-dynamic_linker="$host_os ld.so"
2907-sys_lib_dlsearch_path_spec="/lib /usr/lib"
2908-need_lib_prefix=unknown
2909-hardcode_into_libs=no
2910-
2911-# when you set need_version to no, make sure it does not cause -set_version
2912-# flags to be left without arguments
2913-need_version=unknown
2914-
2915-case $host_os in
2916-aix3*)
2917- version_type=linux # correct to gnu/linux during the next big refactor
2918- library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2919- shlibpath_var=LIBPATH
2920-
2921- # AIX 3 has no versioning support, so we append a major version to the name.
2922- soname_spec='${libname}${release}${shared_ext}$major'
2923- ;;
2924-
2925-aix[[4-9]]*)
2926- version_type=linux # correct to gnu/linux during the next big refactor
2927- need_lib_prefix=no
2928- need_version=no
2929- hardcode_into_libs=yes
2930- if test "$host_cpu" = ia64; then
2931- # AIX 5 supports IA64
2932- library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2933- shlibpath_var=LD_LIBRARY_PATH
2934- else
2935- # With GCC up to 2.95.x, collect2 would create an import file
2936- # for dependence libraries. The import file would start with
2937- # the line `#! .'. This would cause the generated library to
2938- # depend on `.', always an invalid library. This was fixed in
2939- # development snapshots of GCC prior to 3.0.
2940- case $host_os in
2941- aix4 | aix4.[[01]] | aix4.[[01]].*)
2942- if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2943- echo ' yes '
2944- echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
2945- :
2946- else
2947- can_build_shared=no
2948- fi
2949- ;;
2950- esac
2951- # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2952- # soname into executable. Probably we can add versioning support to
2953- # collect2, so additional links can be useful in future.
2954- if test "$aix_use_runtimelinking" = yes; then
2955- # If using run time linking (on AIX 4.2 or later) use lib<name>.so
2956- # instead of lib<name>.a to let people know that these are not
2957- # typical AIX shared libraries.
2958- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2959- else
2960- # We preserve .a as extension for shared libraries through AIX4.2
2961- # and later when we are not doing run time linking.
2962- library_names_spec='${libname}${release}.a $libname.a'
2963- soname_spec='${libname}${release}${shared_ext}$major'
2964- fi
2965- shlibpath_var=LIBPATH
2966- fi
2967- ;;
2968-
2969-amigaos*)
2970- case $host_cpu in
2971- powerpc)
2972- # Since July 2007 AmigaOS4 officially supports .so libraries.
2973- # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
2974- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2975- ;;
2976- m68k)
2977- library_names_spec='$libname.ixlibrary $libname.a'
2978- # Create ${libname}_ixlibrary.a entries in /sys/libs.
2979- finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
2980- ;;
2981- esac
2982- ;;
2983-
2984-beos*)
2985- library_names_spec='${libname}${shared_ext}'
2986- dynamic_linker="$host_os ld.so"
2987- shlibpath_var=LIBRARY_PATH
2988- ;;
2989-
2990-bsdi[[45]]*)
2991- version_type=linux # correct to gnu/linux during the next big refactor
2992- need_version=no
2993- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2994- soname_spec='${libname}${release}${shared_ext}$major'
2995- finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2996- shlibpath_var=LD_LIBRARY_PATH
2997- sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2998- sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2999- # the default ld.so.conf also contains /usr/contrib/lib and
3000- # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
3001- # libtool to hard-code these into programs
3002- ;;
3003-
3004-cygwin* | mingw* | pw32* | cegcc*)
3005- version_type=windows
3006- shrext_cmds=".dll"
3007- need_version=no
3008- need_lib_prefix=no
3009-
3010- case $GCC,$cc_basename in
3011- yes,*)
3012- # gcc
3013- library_names_spec='$libname.dll.a'
3014- # DLL is installed to $(libdir)/../bin by postinstall_cmds
3015- postinstall_cmds='base_file=`basename \${file}`~
3016- dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
3017- dldir=$destdir/`dirname \$dlpath`~
3018- test -d \$dldir || mkdir -p \$dldir~
3019- $install_prog $dir/$dlname \$dldir/$dlname~
3020- chmod a+x \$dldir/$dlname~
3021- if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
3022- eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
3023- fi'
3024- postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
3025- dlpath=$dir/\$dldll~
3026- $RM \$dlpath'
3027- shlibpath_overrides_runpath=yes
3028-
3029- case $host_os in
3030- cygwin*)
3031- # Cygwin DLLs use 'cyg' prefix rather than 'lib'
3032- soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3033-m4_if([$1], [],[
3034- sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
3035- ;;
3036- mingw* | cegcc*)
3037- # MinGW DLLs use traditional 'lib' prefix
3038- soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3039- ;;
3040- pw32*)
3041- # pw32 DLLs use 'pw' prefix rather than 'lib'
3042- library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3043- ;;
3044- esac
3045- dynamic_linker='Win32 ld.exe'
3046- ;;
3047-
3048- *,cl*)
3049- # Native MSVC
3050- libname_spec='$name'
3051- soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3052- library_names_spec='${libname}.dll.lib'
3053-
3054- case $build_os in
3055- mingw*)
3056- sys_lib_search_path_spec=
3057- lt_save_ifs=$IFS
3058- IFS=';'
3059- for lt_path in $LIB
3060- do
3061- IFS=$lt_save_ifs
3062- # Let DOS variable expansion print the short 8.3 style file name.
3063- lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
3064- sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
3065- done
3066- IFS=$lt_save_ifs
3067- # Convert to MSYS style.
3068- sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
3069- ;;
3070- cygwin*)
3071- # Convert to unix form, then to dos form, then back to unix form
3072- # but this time dos style (no spaces!) so that the unix form looks
3073- # like /cygdrive/c/PROGRA~1:/cygdr...
3074- sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
3075- sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
3076- sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
3077- ;;
3078- *)
3079- sys_lib_search_path_spec="$LIB"
3080- if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
3081- # It is most probably a Windows format PATH.
3082- sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
3083- else
3084- sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
3085- fi
3086- # FIXME: find the short name or the path components, as spaces are
3087- # common. (e.g. "Program Files" -> "PROGRA~1")
3088- ;;
3089- esac
3090-
3091- # DLL is installed to $(libdir)/../bin by postinstall_cmds
3092- postinstall_cmds='base_file=`basename \${file}`~
3093- dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
3094- dldir=$destdir/`dirname \$dlpath`~
3095- test -d \$dldir || mkdir -p \$dldir~
3096- $install_prog $dir/$dlname \$dldir/$dlname'
3097- postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
3098- dlpath=$dir/\$dldll~
3099- $RM \$dlpath'
3100- shlibpath_overrides_runpath=yes
3101- dynamic_linker='Win32 link.exe'
3102- ;;
3103-
3104- *)
3105- # Assume MSVC wrapper
3106- library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
3107- dynamic_linker='Win32 ld.exe'
3108- ;;
3109- esac
3110- # FIXME: first we should search . and the directory the executable is in
3111- shlibpath_var=PATH
3112- ;;
3113-
3114-darwin* | rhapsody*)
3115- dynamic_linker="$host_os dyld"
3116- version_type=darwin
3117- need_lib_prefix=no
3118- need_version=no
3119- library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
3120- soname_spec='${libname}${release}${major}$shared_ext'
3121- shlibpath_overrides_runpath=yes
3122- shlibpath_var=DYLD_LIBRARY_PATH
3123- shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
3124-m4_if([$1], [],[
3125- sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
3126- sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
3127- ;;
3128-
3129-dgux*)
3130- version_type=linux # correct to gnu/linux during the next big refactor
3131- need_lib_prefix=no
3132- need_version=no
3133- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
3134- soname_spec='${libname}${release}${shared_ext}$major'
3135- shlibpath_var=LD_LIBRARY_PATH
3136- ;;
3137-
3138-freebsd* | dragonfly*)
3139- # DragonFly does not have aout. When/if they implement a new
3140- # versioning mechanism, adjust this.
3141- if test -x /usr/bin/objformat; then
3142- objformat=`/usr/bin/objformat`
3143- else
3144- case $host_os in
3145- freebsd[[23]].*) objformat=aout ;;
3146- *) objformat=elf ;;
3147- esac
3148- fi
3149- version_type=freebsd-$objformat
3150- case $version_type in
3151- freebsd-elf*)
3152- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
3153- need_version=no
3154- need_lib_prefix=no
3155- ;;
3156- freebsd-*)
3157- library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
3158- need_version=yes
3159- ;;
3160- esac
3161- shlibpath_var=LD_LIBRARY_PATH
3162- case $host_os in
3163- freebsd2.*)
3164- shlibpath_overrides_runpath=yes
3165- ;;
3166- freebsd3.[[01]]* | freebsdelf3.[[01]]*)
3167- shlibpath_overrides_runpath=yes
3168- hardcode_into_libs=yes
3169- ;;
3170- freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
3171- freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
3172- shlibpath_overrides_runpath=no
3173- hardcode_into_libs=yes
3174- ;;
3175- *) # from 4.6 on, and DragonFly
3176- shlibpath_overrides_runpath=yes
3177- hardcode_into_libs=yes
3178- ;;
3179- esac
3180- ;;
3181-
3182-gnu*)
3183- version_type=linux # correct to gnu/linux during the next big refactor
3184- need_lib_prefix=no
3185- need_version=no
3186- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
3187- soname_spec='${libname}${release}${shared_ext}$major'
3188- shlibpath_var=LD_LIBRARY_PATH
3189- shlibpath_overrides_runpath=no
3190- hardcode_into_libs=yes
3191- ;;
3192-
3193-haiku*)
3194- version_type=linux # correct to gnu/linux during the next big refactor
3195- need_lib_prefix=no
3196- need_version=no
3197- dynamic_linker="$host_os runtime_loader"
3198- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
3199- soname_spec='${libname}${release}${shared_ext}$major'
3200- shlibpath_var=LIBRARY_PATH
3201- shlibpath_overrides_runpath=yes
3202- sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
3203- hardcode_into_libs=yes
3204- ;;
3205-
3206-hpux9* | hpux10* | hpux11*)
3207- # Give a soname corresponding to the major version so that dld.sl refuses to
3208- # link against other versions.
3209- version_type=sunos
3210- need_lib_prefix=no
3211- need_version=no
3212- case $host_cpu in
3213- ia64*)
3214- shrext_cmds='.so'
3215- hardcode_into_libs=yes
3216- dynamic_linker="$host_os dld.so"
3217- shlibpath_var=LD_LIBRARY_PATH
3218- shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
3219- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3220- soname_spec='${libname}${release}${shared_ext}$major'
3221- if test "X$HPUX_IA64_MODE" = X32; then
3222- sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
3223- else
3224- sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
3225- fi
3226- sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3227- ;;
3228- hppa*64*)
3229- shrext_cmds='.sl'
3230- hardcode_into_libs=yes
3231- dynamic_linker="$host_os dld.sl"
3232- shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
3233- shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
3234- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3235- soname_spec='${libname}${release}${shared_ext}$major'
3236- sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
3237- sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3238- ;;
3239- *)
3240- shrext_cmds='.sl'
3241- dynamic_linker="$host_os dld.sl"
3242- shlibpath_var=SHLIB_PATH
3243- shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
3244- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3245- soname_spec='${libname}${release}${shared_ext}$major'
3246- ;;
3247- esac
3248- # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
3249- postinstall_cmds='chmod 555 $lib'
3250- # or fails outright, so override atomically:
3251- install_override_mode=555
3252- ;;
3253-
3254-interix[[3-9]]*)
3255- version_type=linux # correct to gnu/linux during the next big refactor
3256- need_lib_prefix=no
3257- need_version=no
3258- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3259- soname_spec='${libname}${release}${shared_ext}$major'
3260- dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
3261- shlibpath_var=LD_LIBRARY_PATH
3262- shlibpath_overrides_runpath=no
3263- hardcode_into_libs=yes
3264- ;;
3265-
3266-irix5* | irix6* | nonstopux*)
3267- case $host_os in
3268- nonstopux*) version_type=nonstopux ;;
3269- *)
3270- if test "$lt_cv_prog_gnu_ld" = yes; then
3271- version_type=linux # correct to gnu/linux during the next big refactor
3272- else
3273- version_type=irix
3274- fi ;;
3275- esac
3276- need_lib_prefix=no
3277- need_version=no
3278- soname_spec='${libname}${release}${shared_ext}$major'
3279- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
3280- case $host_os in
3281- irix5* | nonstopux*)
3282- libsuff= shlibsuff=
3283- ;;
3284- *)
3285- case $LD in # libtool.m4 will add one of these switches to LD
3286- *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
3287- libsuff= shlibsuff= libmagic=32-bit;;
3288- *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
3289- libsuff=32 shlibsuff=N32 libmagic=N32;;
3290- *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
3291- libsuff=64 shlibsuff=64 libmagic=64-bit;;
3292- *) libsuff= shlibsuff= libmagic=never-match;;
3293- esac
3294- ;;
3295- esac
3296- shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
3297- shlibpath_overrides_runpath=no
3298- sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
3299- sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
3300- hardcode_into_libs=yes
3301- ;;
3302-
3303-# No shared lib support for Linux oldld, aout, or coff.
3304-linux*oldld* | linux*aout* | linux*coff*)
3305- dynamic_linker=no
3306- ;;
3307-
3308-# This must be glibc/ELF.
3309-linux* | k*bsd*-gnu | kopensolaris*-gnu)
3310- version_type=linux # correct to gnu/linux during the next big refactor
3311- need_lib_prefix=no
3312- need_version=no
3313- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3314- soname_spec='${libname}${release}${shared_ext}$major'
3315- finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
3316- shlibpath_var=LD_LIBRARY_PATH
3317- shlibpath_overrides_runpath=no
3318-
3319- # Some binutils ld are patched to set DT_RUNPATH
3320- AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
3321- [lt_cv_shlibpath_overrides_runpath=no
3322- save_LDFLAGS=$LDFLAGS
3323- save_libdir=$libdir
3324- eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
3325- LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
3326- AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
3327- [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
3328- [lt_cv_shlibpath_overrides_runpath=yes])])
3329- LDFLAGS=$save_LDFLAGS
3330- libdir=$save_libdir
3331- ])
3332- shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
3333-
3334- # This implies no fast_install, which is unacceptable.
3335- # Some rework will be needed to allow for fast_install
3336- # before this can be enabled.
3337- hardcode_into_libs=yes
3338-
3339- # Append ld.so.conf contents to the search path
3340- if test -f /etc/ld.so.conf; then
3341- 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;s/"//g;/^$/d' | tr '\n' ' '`
3342- sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
3343- fi
3344-
3345- # We used to test for /lib/ld.so.1 and disable shared libraries on
3346- # powerpc, because MkLinux only supported shared libraries with the
3347- # GNU dynamic linker. Since this was broken with cross compilers,
3348- # most powerpc-linux boxes support dynamic linking these days and
3349- # people can always --disable-shared, the test was removed, and we
3350- # assume the GNU/Linux dynamic linker is in use.
3351- dynamic_linker='GNU/Linux ld.so'
3352- ;;
3353-
3354-netbsd*)
3355- version_type=sunos
3356- need_lib_prefix=no
3357- need_version=no
3358- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
3359- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3360- finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3361- dynamic_linker='NetBSD (a.out) ld.so'
3362- else
3363- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3364- soname_spec='${libname}${release}${shared_ext}$major'
3365- dynamic_linker='NetBSD ld.elf_so'
3366- fi
3367- shlibpath_var=LD_LIBRARY_PATH
3368- shlibpath_overrides_runpath=yes
3369- hardcode_into_libs=yes
3370- ;;
3371-
3372-newsos6)
3373- version_type=linux # correct to gnu/linux during the next big refactor
3374- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3375- shlibpath_var=LD_LIBRARY_PATH
3376- shlibpath_overrides_runpath=yes
3377- ;;
3378-
3379-*nto* | *qnx*)
3380- version_type=qnx
3381- need_lib_prefix=no
3382- need_version=no
3383- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3384- soname_spec='${libname}${release}${shared_ext}$major'
3385- shlibpath_var=LD_LIBRARY_PATH
3386- shlibpath_overrides_runpath=no
3387- hardcode_into_libs=yes
3388- dynamic_linker='ldqnx.so'
3389- ;;
3390-
3391-openbsd*)
3392- version_type=sunos
3393- sys_lib_dlsearch_path_spec="/usr/lib"
3394- need_lib_prefix=no
3395- # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
3396- case $host_os in
3397- openbsd3.3 | openbsd3.3.*) need_version=yes ;;
3398- *) need_version=no ;;
3399- esac
3400- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3401- finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3402- shlibpath_var=LD_LIBRARY_PATH
3403- if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3404- case $host_os in
3405- openbsd2.[[89]] | openbsd2.[[89]].*)
3406- shlibpath_overrides_runpath=no
3407- ;;
3408- *)
3409- shlibpath_overrides_runpath=yes
3410- ;;
3411- esac
3412- else
3413- shlibpath_overrides_runpath=yes
3414- fi
3415- ;;
3416-
3417-os2*)
3418- libname_spec='$name'
3419- shrext_cmds=".dll"
3420- need_lib_prefix=no
3421- library_names_spec='$libname${shared_ext} $libname.a'
3422- dynamic_linker='OS/2 ld.exe'
3423- shlibpath_var=LIBPATH
3424- ;;
3425-
3426-osf3* | osf4* | osf5*)
3427- version_type=osf
3428- need_lib_prefix=no
3429- need_version=no
3430- soname_spec='${libname}${release}${shared_ext}$major'
3431- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3432- shlibpath_var=LD_LIBRARY_PATH
3433- sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
3434- sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
3435- ;;
3436-
3437-rdos*)
3438- dynamic_linker=no
3439- ;;
3440-
3441-solaris*)
3442- version_type=linux # correct to gnu/linux during the next big refactor
3443- need_lib_prefix=no
3444- need_version=no
3445- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3446- soname_spec='${libname}${release}${shared_ext}$major'
3447- shlibpath_var=LD_LIBRARY_PATH
3448- shlibpath_overrides_runpath=yes
3449- hardcode_into_libs=yes
3450- # ldd complains unless libraries are executable
3451- postinstall_cmds='chmod +x $lib'
3452- ;;
3453-
3454-sunos4*)
3455- version_type=sunos
3456- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3457- finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
3458- shlibpath_var=LD_LIBRARY_PATH
3459- shlibpath_overrides_runpath=yes
3460- if test "$with_gnu_ld" = yes; then
3461- need_lib_prefix=no
3462- fi
3463- need_version=yes
3464- ;;
3465-
3466-sysv4 | sysv4.3*)
3467- version_type=linux # correct to gnu/linux during the next big refactor
3468- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3469- soname_spec='${libname}${release}${shared_ext}$major'
3470- shlibpath_var=LD_LIBRARY_PATH
3471- case $host_vendor in
3472- sni)
3473- shlibpath_overrides_runpath=no
3474- need_lib_prefix=no
3475- runpath_var=LD_RUN_PATH
3476- ;;
3477- siemens)
3478- need_lib_prefix=no
3479- ;;
3480- motorola)
3481- need_lib_prefix=no
3482- need_version=no
3483- shlibpath_overrides_runpath=no
3484- sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
3485- ;;
3486- esac
3487- ;;
3488-
3489-sysv4*MP*)
3490- if test -d /usr/nec ;then
3491- version_type=linux # correct to gnu/linux during the next big refactor
3492- library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
3493- soname_spec='$libname${shared_ext}.$major'
3494- shlibpath_var=LD_LIBRARY_PATH
3495- fi
3496- ;;
3497-
3498-sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3499- version_type=freebsd-elf
3500- need_lib_prefix=no
3501- need_version=no
3502- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
3503- soname_spec='${libname}${release}${shared_ext}$major'
3504- shlibpath_var=LD_LIBRARY_PATH
3505- shlibpath_overrides_runpath=yes
3506- hardcode_into_libs=yes
3507- if test "$with_gnu_ld" = yes; then
3508- sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
3509- else
3510- sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
3511- case $host_os in
3512- sco3.2v5*)
3513- sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
3514- ;;
3515- esac
3516- fi
3517- sys_lib_dlsearch_path_spec='/usr/lib'
3518- ;;
3519-
3520-tpf*)
3521- # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
3522- version_type=linux # correct to gnu/linux during the next big refactor
3523- need_lib_prefix=no
3524- need_version=no
3525- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3526- shlibpath_var=LD_LIBRARY_PATH
3527- shlibpath_overrides_runpath=no
3528- hardcode_into_libs=yes
3529- ;;
3530-
3531-uts4*)
3532- version_type=linux # correct to gnu/linux during the next big refactor
3533- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3534- soname_spec='${libname}${release}${shared_ext}$major'
3535- shlibpath_var=LD_LIBRARY_PATH
3536- ;;
3537-
3538-*)
3539- dynamic_linker=no
3540- ;;
3541-esac
3542-AC_MSG_RESULT([$dynamic_linker])
3543-test "$dynamic_linker" = no && can_build_shared=no
3544-
3545-variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
3546-if test "$GCC" = yes; then
3547- variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
3548-fi
3549-
3550-if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
3551- sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
3552-fi
3553-if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
3554- sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
3555-fi
3556-
3557-_LT_DECL([], [variables_saved_for_relink], [1],
3558- [Variables whose values should be saved in libtool wrapper scripts and
3559- restored at link time])
3560-_LT_DECL([], [need_lib_prefix], [0],
3561- [Do we need the "lib" prefix for modules?])
3562-_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
3563-_LT_DECL([], [version_type], [0], [Library versioning type])
3564-_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
3565-_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
3566-_LT_DECL([], [shlibpath_overrides_runpath], [0],
3567- [Is shlibpath searched before the hard-coded library search path?])
3568-_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
3569-_LT_DECL([], [library_names_spec], [1],
3570- [[List of archive names. First name is the real one, the rest are links.
3571- The last name is the one that the linker finds with -lNAME]])
3572-_LT_DECL([], [soname_spec], [1],
3573- [[The coded name of the library, if different from the real name]])
3574-_LT_DECL([], [install_override_mode], [1],
3575- [Permission mode override for installation of shared libraries])
3576-_LT_DECL([], [postinstall_cmds], [2],
3577- [Command to use after installation of a shared archive])
3578-_LT_DECL([], [postuninstall_cmds], [2],
3579- [Command to use after uninstallation of a shared archive])
3580-_LT_DECL([], [finish_cmds], [2],
3581- [Commands used to finish a libtool library installation in a directory])
3582-_LT_DECL([], [finish_eval], [1],
3583- [[As "finish_cmds", except a single script fragment to be evaled but
3584- not shown]])
3585-_LT_DECL([], [hardcode_into_libs], [0],
3586- [Whether we should hardcode library paths into libraries])
3587-_LT_DECL([], [sys_lib_search_path_spec], [2],
3588- [Compile-time system search path for libraries])
3589-_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
3590- [Run-time system search path for libraries])
3591-])# _LT_SYS_DYNAMIC_LINKER
3592-
3593-
3594-# _LT_PATH_TOOL_PREFIX(TOOL)
3595-# --------------------------
3596-# find a file program which can recognize shared library
3597-AC_DEFUN([_LT_PATH_TOOL_PREFIX],
3598-[m4_require([_LT_DECL_EGREP])dnl
3599-AC_MSG_CHECKING([for $1])
3600-AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
3601-[case $MAGIC_CMD in
3602-[[\\/*] | ?:[\\/]*])
3603- lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3604- ;;
3605-*)
3606- lt_save_MAGIC_CMD="$MAGIC_CMD"
3607- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3608-dnl $ac_dummy forces splitting on constant user-supplied paths.
3609-dnl POSIX.2 word splitting is done only on the output of word expansions,
3610-dnl not every word. This closes a longstanding sh security hole.
3611- ac_dummy="m4_if([$2], , $PATH, [$2])"
3612- for ac_dir in $ac_dummy; do
3613- IFS="$lt_save_ifs"
3614- test -z "$ac_dir" && ac_dir=.
3615- if test -f $ac_dir/$1; then
3616- lt_cv_path_MAGIC_CMD="$ac_dir/$1"
3617- if test -n "$file_magic_test_file"; then
3618- case $deplibs_check_method in
3619- "file_magic "*)
3620- file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
3621- MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3622- if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3623- $EGREP "$file_magic_regex" > /dev/null; then
3624- :
3625- else
3626- cat <<_LT_EOF 1>&2
3627-
3628-*** Warning: the command libtool uses to detect shared libraries,
3629-*** $file_magic_cmd, produces output that libtool cannot recognize.
3630-*** The result is that libtool may fail to recognize shared libraries
3631-*** as such. This will affect the creation of libtool libraries that
3632-*** depend on shared libraries, but programs linked with such libtool
3633-*** libraries will work regardless of this problem. Nevertheless, you
3634-*** may want to report the problem to your system manager and/or to
3635-*** bug-libtool@gnu.org
3636-
3637-_LT_EOF
3638- fi ;;
3639- esac
3640- fi
3641- break
3642- fi
3643- done
3644- IFS="$lt_save_ifs"
3645- MAGIC_CMD="$lt_save_MAGIC_CMD"
3646- ;;
3647-esac])
3648-MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3649-if test -n "$MAGIC_CMD"; then
3650- AC_MSG_RESULT($MAGIC_CMD)
3651-else
3652- AC_MSG_RESULT(no)
3653-fi
3654-_LT_DECL([], [MAGIC_CMD], [0],
3655- [Used to examine libraries when file_magic_cmd begins with "file"])dnl
3656-])# _LT_PATH_TOOL_PREFIX
3657-
3658-# Old name:
3659-AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
3660-dnl aclocal-1.4 backwards compatibility:
3661-dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
3662-
3663-
3664-# _LT_PATH_MAGIC
3665-# --------------
3666-# find a file program which can recognize a shared library
3667-m4_defun([_LT_PATH_MAGIC],
3668-[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
3669-if test -z "$lt_cv_path_MAGIC_CMD"; then
3670- if test -n "$ac_tool_prefix"; then
3671- _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
3672- else
3673- MAGIC_CMD=:
3674- fi
3675-fi
3676-])# _LT_PATH_MAGIC
3677-
3678-
3679-# LT_PATH_LD
3680-# ----------
3681-# find the pathname to the GNU or non-GNU linker
3682-AC_DEFUN([LT_PATH_LD],
3683-[AC_REQUIRE([AC_PROG_CC])dnl
3684-AC_REQUIRE([AC_CANONICAL_HOST])dnl
3685-AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3686-m4_require([_LT_DECL_SED])dnl
3687-m4_require([_LT_DECL_EGREP])dnl
3688-m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
3689-
3690-AC_ARG_WITH([gnu-ld],
3691- [AS_HELP_STRING([--with-gnu-ld],
3692- [assume the C compiler uses GNU ld @<:@default=no@:>@])],
3693- [test "$withval" = no || with_gnu_ld=yes],
3694- [with_gnu_ld=no])dnl
3695-
3696-ac_prog=ld
3697-if test "$GCC" = yes; then
3698- # Check if gcc -print-prog-name=ld gives a path.
3699- AC_MSG_CHECKING([for ld used by $CC])
3700- case $host in
3701- *-*-mingw*)
3702- # gcc leaves a trailing carriage return which upsets mingw
3703- ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3704- *)
3705- ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3706- esac
3707- case $ac_prog in
3708- # Accept absolute paths.
3709- [[\\/]]* | ?:[[\\/]]*)
3710- re_direlt='/[[^/]][[^/]]*/\.\./'
3711- # Canonicalize the pathname of ld
3712- ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3713- while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3714- ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3715- done
3716- test -z "$LD" && LD="$ac_prog"
3717- ;;
3718- "")
3719- # If it fails, then pretend we aren't using GCC.
3720- ac_prog=ld
3721- ;;
3722- *)
3723- # If it is relative, then search for the first ld in PATH.
3724- with_gnu_ld=unknown
3725- ;;
3726- esac
3727-elif test "$with_gnu_ld" = yes; then
3728- AC_MSG_CHECKING([for GNU ld])
3729-else
3730- AC_MSG_CHECKING([for non-GNU ld])
3731-fi
3732-AC_CACHE_VAL(lt_cv_path_LD,
3733-[if test -z "$LD"; then
3734- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3735- for ac_dir in $PATH; do
3736- IFS="$lt_save_ifs"
3737- test -z "$ac_dir" && ac_dir=.
3738- if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3739- lt_cv_path_LD="$ac_dir/$ac_prog"
3740- # Check to see if the program is GNU ld. I'd rather use --version,
3741- # but apparently some variants of GNU ld only accept -v.
3742- # Break only if it was the GNU/non-GNU ld that we prefer.
3743- case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3744- *GNU* | *'with BFD'*)
3745- test "$with_gnu_ld" != no && break
3746- ;;
3747- *)
3748- test "$with_gnu_ld" != yes && break
3749- ;;
3750- esac
3751- fi
3752- done
3753- IFS="$lt_save_ifs"
3754-else
3755- lt_cv_path_LD="$LD" # Let the user override the test with a path.
3756-fi])
3757-LD="$lt_cv_path_LD"
3758-if test -n "$LD"; then
3759- AC_MSG_RESULT($LD)
3760-else
3761- AC_MSG_RESULT(no)
3762-fi
3763-test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3764-_LT_PATH_LD_GNU
3765-AC_SUBST([LD])
3766-
3767-_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
3768-])# LT_PATH_LD
3769-
3770-# Old names:
3771-AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
3772-AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
3773-dnl aclocal-1.4 backwards compatibility:
3774-dnl AC_DEFUN([AM_PROG_LD], [])
3775-dnl AC_DEFUN([AC_PROG_LD], [])
3776-
3777-
3778-# _LT_PATH_LD_GNU
3779-#- --------------
3780-m4_defun([_LT_PATH_LD_GNU],
3781-[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3782-[# I'd rather use --version here, but apparently some GNU lds only accept -v.
3783-case `$LD -v 2>&1 </dev/null` in
3784-*GNU* | *'with BFD'*)
3785- lt_cv_prog_gnu_ld=yes
3786- ;;
3787-*)
3788- lt_cv_prog_gnu_ld=no
3789- ;;
3790-esac])
3791-with_gnu_ld=$lt_cv_prog_gnu_ld
3792-])# _LT_PATH_LD_GNU
3793-
3794-
3795-# _LT_CMD_RELOAD
3796-# --------------
3797-# find reload flag for linker
3798-# -- PORTME Some linkers may need a different reload flag.
3799-m4_defun([_LT_CMD_RELOAD],
3800-[AC_CACHE_CHECK([for $LD option to reload object files],
3801- lt_cv_ld_reload_flag,
3802- [lt_cv_ld_reload_flag='-r'])
3803-reload_flag=$lt_cv_ld_reload_flag
3804-case $reload_flag in
3805-"" | " "*) ;;
3806-*) reload_flag=" $reload_flag" ;;
3807-esac
3808-reload_cmds='$LD$reload_flag -o $output$reload_objs'
3809-case $host_os in
3810- cygwin* | mingw* | pw32* | cegcc*)
3811- if test "$GCC" != yes; then
3812- reload_cmds=false
3813- fi
3814- ;;
3815- darwin*)
3816- if test "$GCC" = yes; then
3817- reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3818- else
3819- reload_cmds='$LD$reload_flag -o $output$reload_objs'
3820- fi
3821- ;;
3822-esac
3823-_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
3824-_LT_TAGDECL([], [reload_cmds], [2])dnl
3825-])# _LT_CMD_RELOAD
3826-
3827-
3828-# _LT_CHECK_MAGIC_METHOD
3829-# ----------------------
3830-# how to check for library dependencies
3831-# -- PORTME fill in with the dynamic library characteristics
3832-m4_defun([_LT_CHECK_MAGIC_METHOD],
3833-[m4_require([_LT_DECL_EGREP])
3834-m4_require([_LT_DECL_OBJDUMP])
3835-AC_CACHE_CHECK([how to recognize dependent libraries],
3836-lt_cv_deplibs_check_method,
3837-[lt_cv_file_magic_cmd='$MAGIC_CMD'
3838-lt_cv_file_magic_test_file=
3839-lt_cv_deplibs_check_method='unknown'
3840-# Need to set the preceding variable on all platforms that support
3841-# interlibrary dependencies.
3842-# 'none' -- dependencies not supported.
3843-# `unknown' -- same as none, but documents that we really don't know.
3844-# 'pass_all' -- all dependencies passed with no checks.
3845-# 'test_compile' -- check by making test program.
3846-# 'file_magic [[regex]]' -- check by looking for files in library path
3847-# which responds to the $file_magic_cmd with a given extended regex.
3848-# If you have `file' or equivalent on your system and you're not sure
3849-# whether `pass_all' will *always* work, you probably want this one.
3850-
3851-case $host_os in
3852-aix[[4-9]]*)
3853- lt_cv_deplibs_check_method=pass_all
3854- ;;
3855-
3856-beos*)
3857- lt_cv_deplibs_check_method=pass_all
3858- ;;
3859-
3860-bsdi[[45]]*)
3861- lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3862- lt_cv_file_magic_cmd='/usr/bin/file -L'
3863- lt_cv_file_magic_test_file=/shlib/libc.so
3864- ;;
3865-
3866-cygwin*)
3867- # func_win32_libid is a shell function defined in ltmain.sh
3868- lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3869- lt_cv_file_magic_cmd='func_win32_libid'
3870- ;;
3871-
3872-mingw* | pw32*)
3873- # Base MSYS/MinGW do not provide the 'file' command needed by
3874- # func_win32_libid shell function, so use a weaker test based on 'objdump',
3875- # unless we find 'file', for example because we are cross-compiling.
3876- # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
3877- if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
3878- lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3879- lt_cv_file_magic_cmd='func_win32_libid'
3880- else
3881- # Keep this pattern in sync with the one in func_win32_libid.
3882- lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
3883- lt_cv_file_magic_cmd='$OBJDUMP -f'
3884- fi
3885- ;;
3886-
3887-cegcc*)
3888- # use the weaker test based on 'objdump'. See mingw*.
3889- lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3890- lt_cv_file_magic_cmd='$OBJDUMP -f'
3891- ;;
3892-
3893-darwin* | rhapsody*)
3894- lt_cv_deplibs_check_method=pass_all
3895- ;;
3896-
3897-freebsd* | dragonfly*)
3898- if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3899- case $host_cpu in
3900- i*86 )
3901- # Not sure whether the presence of OpenBSD here was a mistake.
3902- # Let's accept both of them until this is cleared up.
3903- lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
3904- lt_cv_file_magic_cmd=/usr/bin/file
3905- lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3906- ;;
3907- esac
3908- else
3909- lt_cv_deplibs_check_method=pass_all
3910- fi
3911- ;;
3912-
3913-gnu*)
3914- lt_cv_deplibs_check_method=pass_all
3915- ;;
3916-
3917-haiku*)
3918- lt_cv_deplibs_check_method=pass_all
3919- ;;
3920-
3921-hpux10.20* | hpux11*)
3922- lt_cv_file_magic_cmd=/usr/bin/file
3923- case $host_cpu in
3924- ia64*)
3925- lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3926- lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3927- ;;
3928- hppa*64*)
3929- [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]']
3930- lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3931- ;;
3932- *)
3933- lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
3934- lt_cv_file_magic_test_file=/usr/lib/libc.sl
3935- ;;
3936- esac
3937- ;;
3938-
3939-interix[[3-9]]*)
3940- # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3941- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
3942- ;;
3943-
3944-irix5* | irix6* | nonstopux*)
3945- case $LD in
3946- *-32|*"-32 ") libmagic=32-bit;;
3947- *-n32|*"-n32 ") libmagic=N32;;
3948- *-64|*"-64 ") libmagic=64-bit;;
3949- *) libmagic=never-match;;
3950- esac
3951- lt_cv_deplibs_check_method=pass_all
3952- ;;
3953-
3954-# This must be glibc/ELF.
3955-linux* | k*bsd*-gnu | kopensolaris*-gnu)
3956- lt_cv_deplibs_check_method=pass_all
3957- ;;
3958-
3959-netbsd*)
3960- if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3961- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3962- else
3963- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3964- fi
3965- ;;
3966-
3967-newos6*)
3968- lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3969- lt_cv_file_magic_cmd=/usr/bin/file
3970- lt_cv_file_magic_test_file=/usr/lib/libnls.so
3971- ;;
3972-
3973-*nto* | *qnx*)
3974- lt_cv_deplibs_check_method=pass_all
3975- ;;
3976-
3977-openbsd*)
3978- if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3979- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3980- else
3981- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3982- fi
3983- ;;
3984-
3985-osf3* | osf4* | osf5*)
3986- lt_cv_deplibs_check_method=pass_all
3987- ;;
3988-
3989-rdos*)
3990- lt_cv_deplibs_check_method=pass_all
3991- ;;
3992-
3993-solaris*)
3994- lt_cv_deplibs_check_method=pass_all
3995- ;;
3996-
3997-sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3998- lt_cv_deplibs_check_method=pass_all
3999- ;;
4000-
4001-sysv4 | sysv4.3*)
4002- case $host_vendor in
4003- motorola)
4004- 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]]'
4005- lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4006- ;;
4007- ncr)
4008- lt_cv_deplibs_check_method=pass_all
4009- ;;
4010- sequent)
4011- lt_cv_file_magic_cmd='/bin/file'
4012- lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
4013- ;;
4014- sni)
4015- lt_cv_file_magic_cmd='/bin/file'
4016- lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
4017- lt_cv_file_magic_test_file=/lib/libc.so
4018- ;;
4019- siemens)
4020- lt_cv_deplibs_check_method=pass_all
4021- ;;
4022- pc)
4023- lt_cv_deplibs_check_method=pass_all
4024- ;;
4025- esac
4026- ;;
4027-
4028-tpf*)
4029- lt_cv_deplibs_check_method=pass_all
4030- ;;
4031-esac
4032-])
4033-
4034-file_magic_glob=
4035-want_nocaseglob=no
4036-if test "$build" = "$host"; then
4037- case $host_os in
4038- mingw* | pw32*)
4039- if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4040- want_nocaseglob=yes
4041- else
4042- file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
4043- fi
4044- ;;
4045- esac
4046-fi
4047-
4048-file_magic_cmd=$lt_cv_file_magic_cmd
4049-deplibs_check_method=$lt_cv_deplibs_check_method
4050-test -z "$deplibs_check_method" && deplibs_check_method=unknown
4051-
4052-_LT_DECL([], [deplibs_check_method], [1],
4053- [Method to check whether dependent libraries are shared objects])
4054-_LT_DECL([], [file_magic_cmd], [1],
4055- [Command to use when deplibs_check_method = "file_magic"])
4056-_LT_DECL([], [file_magic_glob], [1],
4057- [How to find potential files when deplibs_check_method = "file_magic"])
4058-_LT_DECL([], [want_nocaseglob], [1],
4059- [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
4060-])# _LT_CHECK_MAGIC_METHOD
4061-
4062-
4063-# LT_PATH_NM
4064-# ----------
4065-# find the pathname to a BSD- or MS-compatible name lister
4066-AC_DEFUN([LT_PATH_NM],
4067-[AC_REQUIRE([AC_PROG_CC])dnl
4068-AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
4069-[if test -n "$NM"; then
4070- # Let the user override the test.
4071- lt_cv_path_NM="$NM"
4072-else
4073- lt_nm_to_check="${ac_tool_prefix}nm"
4074- if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4075- lt_nm_to_check="$lt_nm_to_check nm"
4076- fi
4077- for lt_tmp_nm in $lt_nm_to_check; do
4078- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4079- for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4080- IFS="$lt_save_ifs"
4081- test -z "$ac_dir" && ac_dir=.
4082- tmp_nm="$ac_dir/$lt_tmp_nm"
4083- if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4084- # Check to see if the nm accepts a BSD-compat flag.
4085- # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4086- # nm: unknown option "B" ignored
4087- # Tru64's nm complains that /dev/null is an invalid object file
4088- case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4089- */dev/null* | *'Invalid file or object type'*)
4090- lt_cv_path_NM="$tmp_nm -B"
4091- break
4092- ;;
4093- *)
4094- case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4095- */dev/null*)
4096- lt_cv_path_NM="$tmp_nm -p"
4097- break
4098- ;;
4099- *)
4100- lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4101- continue # so that we can try to find one that supports BSD flags
4102- ;;
4103- esac
4104- ;;
4105- esac
4106- fi
4107- done
4108- IFS="$lt_save_ifs"
4109- done
4110- : ${lt_cv_path_NM=no}
4111-fi])
4112-if test "$lt_cv_path_NM" != "no"; then
4113- NM="$lt_cv_path_NM"
4114-else
4115- # Didn't find any BSD compatible name lister, look for dumpbin.
4116- if test -n "$DUMPBIN"; then :
4117- # Let the user override the test.
4118- else
4119- AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
4120- case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4121- *COFF*)
4122- DUMPBIN="$DUMPBIN -symbols"
4123- ;;
4124- *)
4125- DUMPBIN=:
4126- ;;
4127- esac
4128- fi
4129- AC_SUBST([DUMPBIN])
4130- if test "$DUMPBIN" != ":"; then
4131- NM="$DUMPBIN"
4132- fi
4133-fi
4134-test -z "$NM" && NM=nm
4135-AC_SUBST([NM])
4136-_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
4137-
4138-AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
4139- [lt_cv_nm_interface="BSD nm"
4140- echo "int some_variable = 0;" > conftest.$ac_ext
4141- (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
4142- (eval "$ac_compile" 2>conftest.err)
4143- cat conftest.err >&AS_MESSAGE_LOG_FD
4144- (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
4145- (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4146- cat conftest.err >&AS_MESSAGE_LOG_FD
4147- (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
4148- cat conftest.out >&AS_MESSAGE_LOG_FD
4149- if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4150- lt_cv_nm_interface="MS dumpbin"
4151- fi
4152- rm -f conftest*])
4153-])# LT_PATH_NM
4154-
4155-# Old names:
4156-AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
4157-AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
4158-dnl aclocal-1.4 backwards compatibility:
4159-dnl AC_DEFUN([AM_PROG_NM], [])
4160-dnl AC_DEFUN([AC_PROG_NM], [])
4161-
4162-# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
4163-# --------------------------------
4164-# how to determine the name of the shared library
4165-# associated with a specific link library.
4166-# -- PORTME fill in with the dynamic library characteristics
4167-m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
4168-[m4_require([_LT_DECL_EGREP])
4169-m4_require([_LT_DECL_OBJDUMP])
4170-m4_require([_LT_DECL_DLLTOOL])
4171-AC_CACHE_CHECK([how to associate runtime and link libraries],
4172-lt_cv_sharedlib_from_linklib_cmd,
4173-[lt_cv_sharedlib_from_linklib_cmd='unknown'
4174-
4175-case $host_os in
4176-cygwin* | mingw* | pw32* | cegcc*)
4177- # two different shell functions defined in ltmain.sh
4178- # decide which to use based on capabilities of $DLLTOOL
4179- case `$DLLTOOL --help 2>&1` in
4180- *--identify-strict*)
4181- lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
4182- ;;
4183- *)
4184- lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
4185- ;;
4186- esac
4187- ;;
4188-*)
4189- # fallback: assume linklib IS sharedlib
4190- lt_cv_sharedlib_from_linklib_cmd="$ECHO"
4191- ;;
4192-esac
4193-])
4194-sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
4195-test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
4196-
4197-_LT_DECL([], [sharedlib_from_linklib_cmd], [1],
4198- [Command to associate shared and link libraries])
4199-])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
4200-
4201-
4202-# _LT_PATH_MANIFEST_TOOL
4203-# ----------------------
4204-# locate the manifest tool
4205-m4_defun([_LT_PATH_MANIFEST_TOOL],
4206-[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
4207-test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
4208-AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
4209- [lt_cv_path_mainfest_tool=no
4210- echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
4211- $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
4212- cat conftest.err >&AS_MESSAGE_LOG_FD
4213- if $GREP 'Manifest Tool' conftest.out > /dev/null; then
4214- lt_cv_path_mainfest_tool=yes
4215- fi
4216- rm -f conftest*])
4217-if test "x$lt_cv_path_mainfest_tool" != xyes; then
4218- MANIFEST_TOOL=:
4219-fi
4220-_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
4221-])# _LT_PATH_MANIFEST_TOOL
4222-
4223-
4224-# LT_LIB_M
4225-# --------
4226-# check for math library
4227-AC_DEFUN([LT_LIB_M],
4228-[AC_REQUIRE([AC_CANONICAL_HOST])dnl
4229-LIBM=
4230-case $host in
4231-*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
4232- # These system don't have libm, or don't need it
4233- ;;
4234-*-ncr-sysv4.3*)
4235- AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
4236- AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
4237- ;;
4238-*)
4239- AC_CHECK_LIB(m, cos, LIBM="-lm")
4240- ;;
4241-esac
4242-AC_SUBST([LIBM])
4243-])# LT_LIB_M
4244-
4245-# Old name:
4246-AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
4247-dnl aclocal-1.4 backwards compatibility:
4248-dnl AC_DEFUN([AC_CHECK_LIBM], [])
4249-
4250-
4251-# _LT_COMPILER_NO_RTTI([TAGNAME])
4252-# -------------------------------
4253-m4_defun([_LT_COMPILER_NO_RTTI],
4254-[m4_require([_LT_TAG_COMPILER])dnl
4255-
4256-_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4257-
4258-if test "$GCC" = yes; then
4259- case $cc_basename in
4260- nvcc*)
4261- _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
4262- *)
4263- _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
4264- esac
4265-
4266- _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
4267- lt_cv_prog_compiler_rtti_exceptions,
4268- [-fno-rtti -fno-exceptions], [],
4269- [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
4270-fi
4271-_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
4272- [Compiler flag to turn off builtin functions])
4273-])# _LT_COMPILER_NO_RTTI
4274-
4275-
4276-# _LT_CMD_GLOBAL_SYMBOLS
4277-# ----------------------
4278-m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
4279-[AC_REQUIRE([AC_CANONICAL_HOST])dnl
4280-AC_REQUIRE([AC_PROG_CC])dnl
4281-AC_REQUIRE([AC_PROG_AWK])dnl
4282-AC_REQUIRE([LT_PATH_NM])dnl
4283-AC_REQUIRE([LT_PATH_LD])dnl
4284-m4_require([_LT_DECL_SED])dnl
4285-m4_require([_LT_DECL_EGREP])dnl
4286-m4_require([_LT_TAG_COMPILER])dnl
4287-
4288-# Check for command to grab the raw symbol name followed by C symbol from nm.
4289-AC_MSG_CHECKING([command to parse $NM output from $compiler object])
4290-AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
4291-[
4292-# These are sane defaults that work on at least a few old systems.
4293-# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4294-
4295-# Character class describing NM global symbol codes.
4296-symcode='[[BCDEGRST]]'
4297-
4298-# Regexp to match symbols that can be accessed directly from C.
4299-sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
4300-
4301-# Define system-specific variables.
4302-case $host_os in
4303-aix*)
4304- symcode='[[BCDT]]'
4305- ;;
4306-cygwin* | mingw* | pw32* | cegcc*)
4307- symcode='[[ABCDGISTW]]'
4308- ;;
4309-hpux*)
4310- if test "$host_cpu" = ia64; then
4311- symcode='[[ABCDEGRST]]'
4312- fi
4313- ;;
4314-irix* | nonstopux*)
4315- symcode='[[BCDEGRST]]'
4316- ;;
4317-osf*)
4318- symcode='[[BCDEGQRST]]'
4319- ;;
4320-solaris*)
4321- symcode='[[BDRT]]'
4322- ;;
4323-sco3.2v5*)
4324- symcode='[[DT]]'
4325- ;;
4326-sysv4.2uw2*)
4327- symcode='[[DT]]'
4328- ;;
4329-sysv5* | sco5v6* | unixware* | OpenUNIX*)
4330- symcode='[[ABDT]]'
4331- ;;
4332-sysv4)
4333- symcode='[[DFNSTU]]'
4334- ;;
4335-esac
4336-
4337-# If we're using GNU nm, then use its standard symbol codes.
4338-case `$NM -V 2>&1` in
4339-*GNU* | *'with BFD'*)
4340- symcode='[[ABCDGIRSTW]]' ;;
4341-esac
4342-
4343-# Transform an extracted symbol line into a proper C declaration.
4344-# Some systems (esp. on ia64) link data and code symbols differently,
4345-# so use this general approach.
4346-lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4347-
4348-# Transform an extracted symbol line into symbol name and symbol address
4349-lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
4350-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'"
4351-
4352-# Handle CRLF in mingw tool chain
4353-opt_cr=
4354-case $build_os in
4355-mingw*)
4356- opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4357- ;;
4358-esac
4359-
4360-# Try without a prefix underscore, then with it.
4361-for ac_symprfx in "" "_"; do
4362-
4363- # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4364- symxfrm="\\1 $ac_symprfx\\2 \\2"
4365-
4366- # Write the raw and C identifiers.
4367- if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4368- # Fake it for dumpbin and say T for any non-static function
4369- # and D for any global variable.
4370- # Also find C++ and __fastcall symbols from MSVC++,
4371- # which start with @ or ?.
4372- lt_cv_sys_global_symbol_pipe="$AWK ['"\
4373-" {last_section=section; section=\$ 3};"\
4374-" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
4375-" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4376-" \$ 0!~/External *\|/{next};"\
4377-" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4378-" {if(hide[section]) next};"\
4379-" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4380-" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4381-" s[1]~/^[@?]/{print s[1], s[1]; next};"\
4382-" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4383-" ' prfx=^$ac_symprfx]"
4384- else
4385- lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4386- fi
4387- lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
4388-
4389- # Check to see that the pipe works correctly.
4390- pipe_works=no
4391-
4392- rm -f conftest*
4393- cat > conftest.$ac_ext <<_LT_EOF
4394-#ifdef __cplusplus
4395-extern "C" {
4396-#endif
4397-char nm_test_var;
4398-void nm_test_func(void);
4399-void nm_test_func(void){}
4400-#ifdef __cplusplus
4401-}
4402-#endif
4403-int main(){nm_test_var='a';nm_test_func();return(0);}
4404-_LT_EOF
4405-
4406- if AC_TRY_EVAL(ac_compile); then
4407- # Now try to grab the symbols.
4408- nlist=conftest.nm
4409- if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
4410- # Try sorting and uniquifying the output.
4411- if sort "$nlist" | uniq > "$nlist"T; then
4412- mv -f "$nlist"T "$nlist"
4413- else
4414- rm -f "$nlist"T
4415- fi
4416-
4417- # Make sure that we snagged all the symbols we need.
4418- if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4419- if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4420- cat <<_LT_EOF > conftest.$ac_ext
4421-/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
4422-#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
4423-/* DATA imports from DLLs on WIN32 con't be const, because runtime
4424- relocations are performed -- see ld's documentation on pseudo-relocs. */
4425-# define LT@&t@_DLSYM_CONST
4426-#elif defined(__osf__)
4427-/* This system does not cope well with relocations in const data. */
4428-# define LT@&t@_DLSYM_CONST
4429-#else
4430-# define LT@&t@_DLSYM_CONST const
4431-#endif
4432-
4433-#ifdef __cplusplus
4434-extern "C" {
4435-#endif
4436-
4437-_LT_EOF
4438- # Now generate the symbol file.
4439- eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4440-
4441- cat <<_LT_EOF >> conftest.$ac_ext
4442-
4443-/* The mapping between symbol names and symbols. */
4444-LT@&t@_DLSYM_CONST struct {
4445- const char *name;
4446- void *address;
4447-}
4448-lt__PROGRAM__LTX_preloaded_symbols[[]] =
4449-{
4450- { "@PROGRAM@", (void *) 0 },
4451-_LT_EOF
4452- $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4453- cat <<\_LT_EOF >> conftest.$ac_ext
4454- {0, (void *) 0}
4455-};
4456-
4457-/* This works around a problem in FreeBSD linker */
4458-#ifdef FREEBSD_WORKAROUND
4459-static const void *lt_preloaded_setup() {
4460- return lt__PROGRAM__LTX_preloaded_symbols;
4461-}
4462-#endif
4463-
4464-#ifdef __cplusplus
4465-}
4466-#endif
4467-_LT_EOF
4468- # Now try linking the two files.
4469- mv conftest.$ac_objext conftstm.$ac_objext
4470- lt_globsym_save_LIBS=$LIBS
4471- lt_globsym_save_CFLAGS=$CFLAGS
4472- LIBS="conftstm.$ac_objext"
4473- CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
4474- if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
4475- pipe_works=yes
4476- fi
4477- LIBS=$lt_globsym_save_LIBS
4478- CFLAGS=$lt_globsym_save_CFLAGS
4479- else
4480- echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
4481- fi
4482- else
4483- echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
4484- fi
4485- else
4486- echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
4487- fi
4488- else
4489- echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
4490- cat conftest.$ac_ext >&5
4491- fi
4492- rm -rf conftest* conftst*
4493-
4494- # Do not use the global_symbol_pipe unless it works.
4495- if test "$pipe_works" = yes; then
4496- break
4497- else
4498- lt_cv_sys_global_symbol_pipe=
4499- fi
4500-done
4501-])
4502-if test -z "$lt_cv_sys_global_symbol_pipe"; then
4503- lt_cv_sys_global_symbol_to_cdecl=
4504-fi
4505-if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4506- AC_MSG_RESULT(failed)
4507-else
4508- AC_MSG_RESULT(ok)
4509-fi
4510-
4511-# Response file support.
4512-if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4513- nm_file_list_spec='@'
4514-elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
4515- nm_file_list_spec='@'
4516-fi
4517-
4518-_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
4519- [Take the output of nm and produce a listing of raw symbols and C names])
4520-_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
4521- [Transform the output of nm in a proper C declaration])
4522-_LT_DECL([global_symbol_to_c_name_address],
4523- [lt_cv_sys_global_symbol_to_c_name_address], [1],
4524- [Transform the output of nm in a C name address pair])
4525-_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
4526- [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
4527- [Transform the output of nm in a C name address pair when lib prefix is needed])
4528-_LT_DECL([], [nm_file_list_spec], [1],
4529- [Specify filename containing input files for $NM])
4530-]) # _LT_CMD_GLOBAL_SYMBOLS
4531-
4532-
4533-# _LT_COMPILER_PIC([TAGNAME])
4534-# ---------------------------
4535-m4_defun([_LT_COMPILER_PIC],
4536-[m4_require([_LT_TAG_COMPILER])dnl
4537-_LT_TAGVAR(lt_prog_compiler_wl, $1)=
4538-_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4539-_LT_TAGVAR(lt_prog_compiler_static, $1)=
4540-
4541-m4_if([$1], [CXX], [
4542- # C++ specific cases for pic, static, wl, etc.
4543- if test "$GXX" = yes; then
4544- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4545- _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4546-
4547- case $host_os in
4548- aix*)
4549- # All AIX code is PIC.
4550- if test "$host_cpu" = ia64; then
4551- # AIX 5 now supports IA64 processor
4552- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4553- fi
4554- ;;
4555-
4556- amigaos*)
4557- case $host_cpu in
4558- powerpc)
4559- # see comment about AmigaOS4 .so support
4560- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4561- ;;
4562- m68k)
4563- # FIXME: we need at least 68020 code to build shared libraries, but
4564- # adding the `-m68020' flag to GCC prevents building anything better,
4565- # like `-m68040'.
4566- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4567- ;;
4568- esac
4569- ;;
4570-
4571- beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4572- # PIC is the default for these OSes.
4573- ;;
4574- mingw* | cygwin* | os2* | pw32* | cegcc*)
4575- # This hack is so that the source file can tell whether it is being
4576- # built for inclusion in a dll (and should export symbols for example).
4577- # Although the cygwin gcc ignores -fPIC, still need this for old-style
4578- # (--disable-auto-import) libraries
4579- m4_if([$1], [GCJ], [],
4580- [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4581- ;;
4582- darwin* | rhapsody*)
4583- # PIC is the default on this platform
4584- # Common symbols not allowed in MH_DYLIB files
4585- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4586- ;;
4587- *djgpp*)
4588- # DJGPP does not support shared libraries at all
4589- _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4590- ;;
4591- haiku*)
4592- # PIC is the default for Haiku.
4593- # The "-static" flag exists, but is broken.
4594- _LT_TAGVAR(lt_prog_compiler_static, $1)=
4595- ;;
4596- interix[[3-9]]*)
4597- # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4598- # Instead, we relocate shared libraries at runtime.
4599- ;;
4600- sysv4*MP*)
4601- if test -d /usr/nec; then
4602- _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4603- fi
4604- ;;
4605- hpux*)
4606- # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4607- # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
4608- # sets the default TLS model and affects inlining.
4609- case $host_cpu in
4610- hppa*64*)
4611- ;;
4612- *)
4613- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4614- ;;
4615- esac
4616- ;;
4617- *qnx* | *nto*)
4618- # QNX uses GNU C++, but need to define -shared option too, otherwise
4619- # it will coredump.
4620- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4621- ;;
4622- *)
4623- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4624- ;;
4625- esac
4626- else
4627- case $host_os in
4628- aix[[4-9]]*)
4629- # All AIX code is PIC.
4630- if test "$host_cpu" = ia64; then
4631- # AIX 5 now supports IA64 processor
4632- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4633- else
4634- _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4635- fi
4636- ;;
4637- chorus*)
4638- case $cc_basename in
4639- cxch68*)
4640- # Green Hills C++ Compiler
4641- # _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"
4642- ;;
4643- esac
4644- ;;
4645- mingw* | cygwin* | os2* | pw32* | cegcc*)
4646- # This hack is so that the source file can tell whether it is being
4647- # built for inclusion in a dll (and should export symbols for example).
4648- m4_if([$1], [GCJ], [],
4649- [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4650- ;;
4651- dgux*)
4652- case $cc_basename in
4653- ec++*)
4654- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4655- ;;
4656- ghcx*)
4657- # Green Hills C++ Compiler
4658- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4659- ;;
4660- *)
4661- ;;
4662- esac
4663- ;;
4664- freebsd* | dragonfly*)
4665- # FreeBSD uses GNU C++
4666- ;;
4667- hpux9* | hpux10* | hpux11*)
4668- case $cc_basename in
4669- CC*)
4670- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4671- _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4672- if test "$host_cpu" != ia64; then
4673- _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4674- fi
4675- ;;
4676- aCC*)
4677- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4678- _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4679- case $host_cpu in
4680- hppa*64*|ia64*)
4681- # +Z the default
4682- ;;
4683- *)
4684- _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4685- ;;
4686- esac
4687- ;;
4688- *)
4689- ;;
4690- esac
4691- ;;
4692- interix*)
4693- # This is c89, which is MS Visual C++ (no shared libs)
4694- # Anyone wants to do a port?
4695- ;;
4696- irix5* | irix6* | nonstopux*)
4697- case $cc_basename in
4698- CC*)
4699- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4700- _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4701- # CC pic flag -KPIC is the default.
4702- ;;
4703- *)
4704- ;;
4705- esac
4706- ;;
4707- linux* | k*bsd*-gnu | kopensolaris*-gnu)
4708- case $cc_basename in
4709- KCC*)
4710- # KAI C++ Compiler
4711- _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4712- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4713- ;;
4714- ecpc* )
4715- # old Intel C++ for x86_64 which still supported -KPIC.
4716- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4717- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4718- _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4719- ;;
4720- icpc* )
4721- # Intel C++, used to be incompatible with GCC.
4722- # ICC 10 doesn't accept -KPIC any more.
4723- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4724- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4725- _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4726- ;;
4727- pgCC* | pgcpp*)
4728- # Portland Group C++ compiler
4729- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4730- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4731- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4732- ;;
4733- cxx*)
4734- # Compaq C++
4735- # Make sure the PIC flag is empty. It appears that all Alpha
4736- # Linux and Compaq Tru64 Unix objects are PIC.
4737- _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4738- _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4739- ;;
4740- xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
4741- # IBM XL 8.0, 9.0 on PPC and BlueGene
4742- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4743- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4744- _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4745- ;;
4746- *)
4747- case `$CC -V 2>&1 | sed 5q` in
4748- *Sun\ C*)
4749- # Sun C++ 5.9
4750- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4751- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4752- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4753- ;;
4754- esac
4755- ;;
4756- esac
4757- ;;
4758- lynxos*)
4759- ;;
4760- m88k*)
4761- ;;
4762- mvs*)
4763- case $cc_basename in
4764- cxx*)
4765- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
4766- ;;
4767- *)
4768- ;;
4769- esac
4770- ;;
4771- netbsd*)
4772- ;;
4773- *qnx* | *nto*)
4774- # QNX uses GNU C++, but need to define -shared option too, otherwise
4775- # it will coredump.
4776- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4777- ;;
4778- osf3* | osf4* | osf5*)
4779- case $cc_basename in
4780- KCC*)
4781- _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4782- ;;
4783- RCC*)
4784- # Rational C++ 2.4.1
4785- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4786- ;;
4787- cxx*)
4788- # Digital/Compaq C++
4789- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4790- # Make sure the PIC flag is empty. It appears that all Alpha
4791- # Linux and Compaq Tru64 Unix objects are PIC.
4792- _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4793- _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4794- ;;
4795- *)
4796- ;;
4797- esac
4798- ;;
4799- psos*)
4800- ;;
4801- solaris*)
4802- case $cc_basename in
4803- CC* | sunCC*)
4804- # Sun C++ 4.2, 5.x and Centerline C++
4805- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4806- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4807- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4808- ;;
4809- gcx*)
4810- # Green Hills C++ Compiler
4811- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4812- ;;
4813- *)
4814- ;;
4815- esac
4816- ;;
4817- sunos4*)
4818- case $cc_basename in
4819- CC*)
4820- # Sun C++ 4.x
4821- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4822- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4823- ;;
4824- lcc*)
4825- # Lucid
4826- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4827- ;;
4828- *)
4829- ;;
4830- esac
4831- ;;
4832- sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4833- case $cc_basename in
4834- CC*)
4835- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4836- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4837- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4838- ;;
4839- esac
4840- ;;
4841- tandem*)
4842- case $cc_basename in
4843- NCC*)
4844- # NonStop-UX NCC 3.20
4845- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4846- ;;
4847- *)
4848- ;;
4849- esac
4850- ;;
4851- vxworks*)
4852- ;;
4853- *)
4854- _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4855- ;;
4856- esac
4857- fi
4858-],
4859-[
4860- if test "$GCC" = yes; then
4861- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4862- _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4863-
4864- case $host_os in
4865- aix*)
4866- # All AIX code is PIC.
4867- if test "$host_cpu" = ia64; then
4868- # AIX 5 now supports IA64 processor
4869- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4870- fi
4871- ;;
4872-
4873- amigaos*)
4874- case $host_cpu in
4875- powerpc)
4876- # see comment about AmigaOS4 .so support
4877- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4878- ;;
4879- m68k)
4880- # FIXME: we need at least 68020 code to build shared libraries, but
4881- # adding the `-m68020' flag to GCC prevents building anything better,
4882- # like `-m68040'.
4883- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4884- ;;
4885- esac
4886- ;;
4887-
4888- beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4889- # PIC is the default for these OSes.
4890- ;;
4891-
4892- mingw* | cygwin* | pw32* | os2* | cegcc*)
4893- # This hack is so that the source file can tell whether it is being
4894- # built for inclusion in a dll (and should export symbols for example).
4895- # Although the cygwin gcc ignores -fPIC, still need this for old-style
4896- # (--disable-auto-import) libraries
4897- m4_if([$1], [GCJ], [],
4898- [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4899- ;;
4900-
4901- darwin* | rhapsody*)
4902- # PIC is the default on this platform
4903- # Common symbols not allowed in MH_DYLIB files
4904- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4905- ;;
4906-
4907- haiku*)
4908- # PIC is the default for Haiku.
4909- # The "-static" flag exists, but is broken.
4910- _LT_TAGVAR(lt_prog_compiler_static, $1)=
4911- ;;
4912-
4913- hpux*)
4914- # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4915- # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
4916- # sets the default TLS model and affects inlining.
4917- case $host_cpu in
4918- hppa*64*)
4919- # +Z the default
4920- ;;
4921- *)
4922- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4923- ;;
4924- esac
4925- ;;
4926-
4927- interix[[3-9]]*)
4928- # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4929- # Instead, we relocate shared libraries at runtime.
4930- ;;
4931-
4932- msdosdjgpp*)
4933- # Just because we use GCC doesn't mean we suddenly get shared libraries
4934- # on systems that don't support them.
4935- _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4936- enable_shared=no
4937- ;;
4938-
4939- *nto* | *qnx*)
4940- # QNX uses GNU C++, but need to define -shared option too, otherwise
4941- # it will coredump.
4942- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4943- ;;
4944-
4945- sysv4*MP*)
4946- if test -d /usr/nec; then
4947- _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4948- fi
4949- ;;
4950-
4951- *)
4952- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4953- ;;
4954- esac
4955-
4956- case $cc_basename in
4957- nvcc*) # Cuda Compiler Driver 2.2
4958- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
4959- if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4960- _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
4961- fi
4962- ;;
4963- esac
4964- else
4965- # PORTME Check for flag to pass linker flags through the system compiler.
4966- case $host_os in
4967- aix*)
4968- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4969- if test "$host_cpu" = ia64; then
4970- # AIX 5 now supports IA64 processor
4971- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4972- else
4973- _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4974- fi
4975- ;;
4976-
4977- mingw* | cygwin* | pw32* | os2* | cegcc*)
4978- # This hack is so that the source file can tell whether it is being
4979- # built for inclusion in a dll (and should export symbols for example).
4980- m4_if([$1], [GCJ], [],
4981- [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4982- ;;
4983-
4984- hpux9* | hpux10* | hpux11*)
4985- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4986- # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4987- # not for PA HP-UX.
4988- case $host_cpu in
4989- hppa*64*|ia64*)
4990- # +Z the default
4991- ;;
4992- *)
4993- _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4994- ;;
4995- esac
4996- # Is there a better lt_prog_compiler_static that works with the bundled CC?
4997- _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4998- ;;
4999-
5000- irix5* | irix6* | nonstopux*)
The diff has been truncated for viewing.

Subscribers

People subscribed via source and target branches

to all changes: