Merge lp://staging/~chrisccoulson/gnome-media/ubuntu into lp://staging/~ubuntu-desktop/gnome-media/ubuntu

Proposed by Chris Coulson
Status: Merged
Merged at revision: not available
Proposed branch: lp://staging/~chrisccoulson/gnome-media/ubuntu
Merge into: lp://staging/~ubuntu-desktop/gnome-media/ubuntu
Diff against target: None lines
To merge this branch: bzr merge lp://staging/~chrisccoulson/gnome-media/ubuntu
Reviewer Review Type Date Requested Status
Sebastien Bacher Pending
Review via email: mp+4499@code.staging.launchpad.net
To post a comment you must log in.
Revision history for this message
Chris Coulson (chrisccoulson) wrote :

Hi Sebastien,

I've done some work on gnome-media to build the new gnome-volume-control capplet alongside the existing gst-mixer. I renamed the new capplet to gnome-volume-control-settings.

Both gnome-volume-control-settings and gnome-volume-control-applet build in to a new binary package - gnome-volume-control.

6. By Chris Coulson

Update to version 2.26.0-0ubuntu1

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/changelog'
--- debian/changelog 2009-03-12 21:49:02 +0000
+++ debian/changelog 2009-03-14 23:32:45 +0000
@@ -1,3 +1,22 @@
1gnome-media (2.25.92-0ubuntu3) jaunty; urgency=low
2
3 * debian/patches/05_gst-mix_and_new_gvc_no_conflict.patch:
4 - Make it possible to build the new gnome-volume-control and
5 gst-mixer at the same time without conflicting, by
6 renaming the new gnome-volume-control capplet to
7 gnome-volume-control-settings.
8 * debian/patches/06_autoconf.patch:
9 - Recreate build system.
10 * debian/control{.in},
11 debian/gnome-media-common.install,
12 debian/gnome-media.install,
13 debian/gnome-volume-control.install,
14 debian/rules:
15 - Enable the new gnome-volume-control capplet and gvc-applet
16 and install these in to a new binary package - gnome-volume-control.
17
18 -- Chris Coulson <chrisccoulson@googlemail.com> Sat, 14 Mar 2009 15:25:18 +0000
19
1gnome-media (2.25.92-0ubuntu2) jaunty; urgency=low20gnome-media (2.25.92-0ubuntu2) jaunty; urgency=low
221
3 * debian/patches/04_gst-mixer_help.patch:22 * debian/patches/04_gst-mixer_help.patch:
423
=== modified file 'debian/control'
--- debian/control 2009-03-03 22:22:58 +0000
+++ debian/control 2009-03-14 23:32:45 +0000
@@ -13,6 +13,7 @@
13 libglib2.0-dev (>= 2.16),13 libglib2.0-dev (>= 2.16),
14 libgnome2-dev (>= 2.13.7),14 libgnome2-dev (>= 2.13.7),
15 libesd0-dev (>= 0.2.23),15 libesd0-dev (>= 0.2.23),
16 libpulse-dev,
16 libcanberra-gtk-dev,17 libcanberra-gtk-dev,
17 libgtk2.0-dev (>= 2.13),18 libgtk2.0-dev (>= 2.13),
18 debhelper (>= 5.0.0),19 debhelper (>= 5.0.0),
@@ -82,3 +83,17 @@
82 This package contains static libraries and development headers for the83 This package contains static libraries and development headers for the
83 GNOME media libraries:84 GNOME media libraries:
84 * libgnome-media-profiles, to handle media profiles;85 * libgnome-media-profiles, to handle media profiles;
86
87Package: gnome-volume-control
88Architecture: any
89Depends: ${shlibs:Depends},
90 ${misc:Depends},
91 gnome-media-common (>= ${gnome:Version}),
92 gnome-media-common (<< ${gnome:NextVersion})
93Description: GNOME media utilities - gnome-volume-control
94 This package contains the following media utilities for the
95 GNOME desktop:
96 * gnome-volume-control-settings - A capplet for adjusting sound
97 preferences.
98 * gnome-volume-control-applet - An applet that displays in the
99 notification area for adjusting audio volume.
85100
=== modified file 'debian/control.in'
--- debian/control.in 2009-03-03 22:22:58 +0000
+++ debian/control.in 2009-03-14 23:32:45 +0000
@@ -13,6 +13,7 @@
13 libglib2.0-dev (>= 2.16),13 libglib2.0-dev (>= 2.16),
14 libgnome2-dev (>= 2.13.7),14 libgnome2-dev (>= 2.13.7),
15 libesd0-dev (>= 0.2.23),15 libesd0-dev (>= 0.2.23),
16 libpulse-dev,
16 libcanberra-gtk-dev,17 libcanberra-gtk-dev,
17 libgtk2.0-dev (>= 2.13),18 libgtk2.0-dev (>= 2.13),
18 debhelper (>= 5.0.0),19 debhelper (>= 5.0.0),
@@ -82,3 +83,17 @@
82 This package contains static libraries and development headers for the83 This package contains static libraries and development headers for the
83 GNOME media libraries:84 GNOME media libraries:
84 * libgnome-media-profiles, to handle media profiles;85 * libgnome-media-profiles, to handle media profiles;
86
87Package: gnome-volume-control
88Architecture: any
89Depends: ${shlibs:Depends},
90 ${misc:Depends},
91 gnome-media-common (>= ${gnome:Version}),
92 gnome-media-common (<< ${gnome:NextVersion})
93Description: GNOME media utilities - gnome-volume-control
94 This package contains the following media utilities for the
95 GNOME desktop:
96 * gnome-volume-control-settings - A capplet for adjusting sound
97 preferences.
98 * gnome-volume-control-applet - An applet that displays in the
99 notification area for adjusting audio volume.
85100
=== modified file 'debian/gnome-media.install'
--- debian/gnome-media.install 2009-03-03 22:22:58 +0000
+++ debian/gnome-media.install 2009-03-14 23:32:45 +0000
@@ -1,2 +1,7 @@
1debian/tmp/usr/bin1debian/tmp/usr/bin/gnome-audio-profiles-properties
2debian/tmp/usr/share/applications2debian/tmp/usr/bin/gnome-sound-recorder
3debian/tmp/usr/bin/gnome-volume-control
4debian/tmp/usr/bin/gstreamer-properties
5debian/tmp/usr/share/applications/gnome-sound-recorder.desktop
6debian/tmp/usr/share/applications/gnome-volume-control.desktop
7debian/tmp/usr/share/applications/gstreamer-properties.desktop
38
=== added file 'debian/gnome-volume-control.install'
--- debian/gnome-volume-control.install 1970-01-01 00:00:00 +0000
+++ debian/gnome-volume-control.install 2009-03-14 23:32:45 +0000
@@ -0,0 +1,4 @@
1debian/tmp/etc/xdg/autostart
2debian/tmp/usr/bin/gnome-volume-control-settings
3debian/tmp/usr/bin/gnome-volume-control-applet
4debian/tmp/usr/share/applications/gnome-volume-control-settings.desktop
05
=== added file 'debian/patches/05_gst-mix_and_new_gvc_no_conflict.patch'
--- debian/patches/05_gst-mix_and_new_gvc_no_conflict.patch 1970-01-01 00:00:00 +0000
+++ debian/patches/05_gst-mix_and_new_gvc_no_conflict.patch 2009-03-14 23:32:45 +0000
@@ -0,0 +1,131 @@
1diff -Nur -x '*.orig' -x '*~' gnome-media-2.25.92/configure.ac gnome-media-2.25.92.new/configure.ac
2--- gnome-media-2.25.92/configure.ac 2009-03-14 23:19:32.000000000 +0000
3+++ gnome-media-2.25.92.new/configure.ac 2009-03-14 23:19:34.000000000 +0000
4@@ -570,7 +570,7 @@
5 AS_HELP_STRING([--enable-gstmix], [enable gstreamer mixer]),
6 ,enable_gstmix=yes)
7
8-if test "x$have_pulseaudio" = "xno" && test "x$have_gst" = "xyes" && test "x$enable_gstmix" = "xyes";
9+if test "x$have_gst" = "xyes" && test "x$enable_gstmix" = "xyes";
10 then
11 PKG_CHECK_MODULES(GSTMIXER, [
12 libgnomeui-2.0
13@@ -652,7 +652,7 @@
14 po/Makefile.in
15 gnome-volume-control/Makefile
16 gnome-volume-control/data/Makefile
17-gnome-volume-control/data/gnome-volume-control.desktop.in
18+gnome-volume-control/data/gnome-volume-control-settings.desktop.in
19 gnome-volume-control/data/icons/Makefile
20 gnome-volume-control/data/icons/16x16/Makefile
21 gnome-volume-control/data/icons/16x16/apps/Makefile
22diff -Nur -x '*.orig' -x '*~' gnome-media-2.25.92/gnome-volume-control/data/gnome-volume-control.desktop.in.in gnome-media-2.25.92.new/gnome-volume-control/data/gnome-volume-control.desktop.in.in
23--- gnome-media-2.25.92/gnome-volume-control/data/gnome-volume-control.desktop.in.in 2009-03-03 17:20:56.000000000 +0000
24+++ gnome-media-2.25.92.new/gnome-volume-control/data/gnome-volume-control.desktop.in.in 1970-01-01 01:00:00.000000000 +0100
25@@ -1,14 +0,0 @@
26-[Desktop Entry]
27-_Name=Sound
28-_Comment=Change sound volume and associate sounds with events
29-Exec=gnome-volume-control
30-Icon=gnome-volume-control
31-Terminal=false
32-Type=Application
33-StartupNotify=true
34-Categories=GNOME;GTK;Settings;HardwareSettings;
35-OnlyShowIn=GNOME;
36-X-GNOME-Bugzilla-Bugzilla=GNOME
37-X-GNOME-Bugzilla-Product=gnome-media
38-X-GNOME-Bugzilla-Component=gnome-volume-control
39-X-GNOME-Bugzilla-Version=@VERSION@
40diff -Nur -x '*.orig' -x '*~' gnome-media-2.25.92/gnome-volume-control/data/gnome-volume-control-settings.desktop.in.in gnome-media-2.25.92.new/gnome-volume-control/data/gnome-volume-control-settings.desktop.in.in
41--- gnome-media-2.25.92/gnome-volume-control/data/gnome-volume-control-settings.desktop.in.in 1970-01-01 01:00:00.000000000 +0100
42+++ gnome-media-2.25.92.new/gnome-volume-control/data/gnome-volume-control-settings.desktop.in.in 2009-03-14 23:19:34.000000000 +0000
43@@ -0,0 +1,14 @@
44+[Desktop Entry]
45+_Name=Sound
46+_Comment=Change sound volume and associate sounds with events
47+Exec=gnome-volume-control-settings
48+Icon=gnome-volume-control
49+Terminal=false
50+Type=Application
51+StartupNotify=true
52+Categories=GNOME;GTK;Settings;HardwareSettings;
53+OnlyShowIn=GNOME;
54+X-GNOME-Bugzilla-Bugzilla=GNOME
55+X-GNOME-Bugzilla-Product=gnome-media
56+X-GNOME-Bugzilla-Component=gnome-volume-control
57+X-GNOME-Bugzilla-Version=@VERSION@
58diff -Nur -x '*.orig' -x '*~' gnome-media-2.25.92/gnome-volume-control/data/Makefile.am gnome-media-2.25.92.new/gnome-volume-control/data/Makefile.am
59--- gnome-media-2.25.92/gnome-volume-control/data/Makefile.am 2009-03-03 17:20:56.000000000 +0000
60+++ gnome-media-2.25.92.new/gnome-volume-control/data/Makefile.am 2009-03-14 23:19:34.000000000 +0000
61@@ -11,16 +11,16 @@
62 autostart_DATA = $(autostart_in_files:.desktop.in=.desktop)
63
64 appsdir = $(datadir)/applications
65-apps_in_files = gnome-volume-control.desktop.in
66+apps_in_files = gnome-volume-control-settings.desktop.in
67 apps_DATA = $(apps_in_files:.desktop.in=.desktop)
68
69 EXTRA_DIST = \
70 $(autostart_in_files) \
71- gnome-volume-control.desktop.in.in \
72+ gnome-volume-control-settings.desktop.in.in \
73 $(NULL)
74
75 CLEANFILES = \
76- gnome-volume-control.desktop \
77+ gnome-volume-control-settings.desktop \
78 $(NULL)
79
80 DISTCLEANFILES = \
81diff -Nur -x '*.orig' -x '*~' gnome-media-2.25.92/gnome-volume-control/src/gvc-stream-status-icon.c gnome-media-2.25.92.new/gnome-volume-control/src/gvc-stream-status-icon.c
82--- gnome-media-2.25.92/gnome-volume-control/src/gvc-stream-status-icon.c 2009-03-03 17:20:56.000000000 +0000
83+++ gnome-media-2.25.92.new/gnome-volume-control/src/gvc-stream-status-icon.c 2009-03-14 23:19:56.000000000 +0000
84@@ -200,7 +200,7 @@
85
86 error = NULL;
87 gdk_spawn_command_line_on_screen (gtk_widget_get_screen (icon->priv->dock),
88- "gnome-volume-control",
89+ "gnome-volume-control-settings",
90 &error);
91
92 if (error != NULL) {
93diff -Nur -x '*.orig' -x '*~' gnome-media-2.25.92/gnome-volume-control/src/Makefile.am gnome-media-2.25.92.new/gnome-volume-control/src/Makefile.am
94--- gnome-media-2.25.92/gnome-volume-control/src/Makefile.am 2009-03-03 17:20:56.000000000 +0000
95+++ gnome-media-2.25.92.new/gnome-volume-control/src/Makefile.am 2009-03-14 23:19:34.000000000 +0000
96@@ -2,7 +2,7 @@
97
98 bin_PROGRAMS = \
99 gnome-volume-control-applet \
100- gnome-volume-control \
101+ gnome-volume-control-settings \
102 $(NULL)
103
104 AM_CPPFLAGS = \
105@@ -48,12 +48,12 @@
106 applet-main.c \
107 $(NULL)
108
109-gnome_volume_control_LDADD = \
110+gnome_volume_control_settings_LDADD = \
111 $(VOLUME_CONTROL_LIBS) \
112 $(PULSEAUDIO_LIBS) \
113 $(NULL)
114
115-gnome_volume_control_SOURCES = \
116+gnome_volume_control_settings_SOURCES = \
117 gvc-mixer-stream.h \
118 gvc-mixer-stream.c \
119 gvc-channel-map.h \
120diff -Nur -x '*.orig' -x '*~' gnome-media-2.25.92/po/POTFILES.in gnome-media-2.25.92.new/po/POTFILES.in
121--- gnome-media-2.25.92/po/POTFILES.in 2009-03-03 17:20:59.000000000 +0000
122+++ gnome-media-2.25.92.new/po/POTFILES.in 2009-03-14 23:19:34.000000000 +0000
123@@ -16,7 +16,7 @@
124 gnome-cd/gnome-cd.schemas.in.in
125 gnome-cd/gst-cdrom.c
126 gnome-cd/preferences.c
127-gnome-volume-control/data/gnome-volume-control.desktop.in.in
128+gnome-volume-control/data/gnome-volume-control-settings.desktop.in.in
129 gnome-volume-control/data/gnome-volume-control-applet.desktop.in
130 gnome-volume-control/data/sounds/gnome-sounds-default.xml.in.in
131 gnome-volume-control/src/applet-main.c
0132
=== modified file 'debian/patches/06_autoconf.patch'
--- debian/patches/06_autoconf.patch 2009-03-03 22:22:58 +0000
+++ debian/patches/06_autoconf.patch 2009-03-14 23:32:45 +0000
@@ -1,65 +1,69535 @@
1diff -Nur -x '*.orig' -x '*~' gnome-media-2.25.1/configure gnome-media-2.25.1.new/configure1diff -Nur -x '*.orig' -x '*~' gnome-media-2.25.92/aclocal.m4 gnome-media-2.25.92.new/aclocal.m4
2--- gnome-media-2.25.1/configure 2008-12-16 21:29:07.000000000 +01002--- gnome-media-2.25.92/aclocal.m4 2009-03-03 20:58:32.000000000 +0000
3+++ gnome-media-2.25.1.new/configure 2009-01-05 16:03:15.000000000 +01003+++ gnome-media-2.25.92.new/aclocal.m4 2009-03-14 23:09:57.000000000 +0000
4@@ -9157,12 +9157,14 @@4@@ -1,4 +1,4 @@
5 gstreamer-plugins-base-\$GST_MAJORMINOR >= \$GST_REQ5-# generated automatically by aclocal 1.10.1 -*- Autoconf -*-
6 gtk+-2.0 >= 2.6.06+# generated automatically by aclocal 1.10.2 -*- Autoconf -*-
7 libgnomeui-2.0 >= 1.102.07
8+ launchpad-integration8 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
9 gio-2.0\"") >&59 # 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
10 ($PKG_CONFIG --exists --print-errors "10@@ -13,8399 +13,1777 @@
11 gstreamer-$GST_MAJORMINOR >= $GST_REQ11
12 gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQ12 m4_ifndef([AC_AUTOCONF_VERSION],
13 gtk+-2.0 >= 2.6.013 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
14 libgnomeui-2.0 >= 1.102.014-m4_if(AC_AUTOCONF_VERSION, [2.62],,
15+ launchpad-integration15-[m4_warning([this file was generated for autoconf 2.62.
16 gio-2.0") 2>&516+m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.63],,
17 ac_status=$?17+[m4_warning([this file was generated for autoconf 2.63.
18 echo "$as_me:$LINENO: \$? = $ac_status" >&518 You have another version of autoconf. It may work, but is not guaranteed to.
19@@ -9172,6 +9174,7 @@19 If you have problems, you may need to regenerate the build system entirely.
20 gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQ20 To do so, use the procedure documented by the package, typically `autoreconf'.])])
21 gtk+-2.0 >= 2.6.021
22 libgnomeui-2.0 >= 1.102.022-# Copyright (C) 2002, 2003, 2005, 2006, 2007 Free Software Foundation, Inc.
23+ launchpad-integration23-#
24 gio-2.0" 2>/dev/null`24-# This file is free software; the Free Software Foundation
25 else25-# gives unlimited permission to copy and/or distribute it,
26 pkg_failed=yes26-# with or without modifications, as long as this notice is preserved.
27@@ -9188,12 +9191,14 @@27+dnl AM_GCONF_SOURCE_2
28 gstreamer-plugins-base-\$GST_MAJORMINOR >= \$GST_REQ28+dnl Defines GCONF_SCHEMA_CONFIG_SOURCE which is where you should install schemas
29 gtk+-2.0 >= 2.6.029+dnl (i.e. pass to gconftool-2
30 libgnomeui-2.0 >= 1.102.030+dnl Defines GCONF_SCHEMA_FILE_DIR which is a filesystem directory where
31+ launchpad-integration31+dnl you should install foo.schemas files
32 gio-2.0\"") >&532+dnl
33 ($PKG_CONFIG --exists --print-errors "33
34 gstreamer-$GST_MAJORMINOR >= $GST_REQ34-# AM_AUTOMAKE_VERSION(VERSION)
35 gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQ35-# ----------------------------
36 gtk+-2.0 >= 2.6.036-# Automake X.Y traces this macro to ensure aclocal.m4 has been
37 libgnomeui-2.0 >= 1.102.037-# generated from the m4 files accompanying Automake X.Y.
38+ launchpad-integration38-# (This private macro should not be called outside this file.)
39 gio-2.0") 2>&539-AC_DEFUN([AM_AUTOMAKE_VERSION],
40 ac_status=$?40-[am__api_version='1.10'
41 echo "$as_me:$LINENO: \$? = $ac_status" >&541-dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
42@@ -9203,6 +9208,7 @@42-dnl require some minimum version. Point them to the right macro.
43 gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQ43-m4_if([$1], [1.10.1], [],
44 gtk+-2.0 >= 2.6.044- [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
45 libgnomeui-2.0 >= 1.102.045-])
46+ launchpad-integration46+AC_DEFUN([AM_GCONF_SOURCE_2],
47 gio-2.0" 2>/dev/null`47+[
48 else48+ if test "x$GCONF_SCHEMA_INSTALL_SOURCE" = "x"; then
49 pkg_failed=yes49+ GCONF_SCHEMA_CONFIG_SOURCE=`gconftool-2 --get-default-source`
50@@ -9226,6 +9232,7 @@50+ else
51 gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQ51+ GCONF_SCHEMA_CONFIG_SOURCE=$GCONF_SCHEMA_INSTALL_SOURCE
52 gtk+-2.0 >= 2.6.052+ fi
53 libgnomeui-2.0 >= 1.102.053
54+ launchpad-integration54-# _AM_AUTOCONF_VERSION(VERSION)
55 gio-2.0" 2>&1`55-# -----------------------------
56 else56-# aclocal traces this macro to find the Autoconf version.
57 GSR_PKG_ERRORS=`$PKG_CONFIG --print-errors "57-# This is a private macro too. Using m4_define simplifies
58@@ -9233,6 +9240,7 @@58-# the logic in aclocal, which can simply ignore this definition.
59 gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQ59-m4_define([_AM_AUTOCONF_VERSION], [])
60 gtk+-2.0 >= 2.6.060+ AC_ARG_WITH([gconf-source],
61 libgnomeui-2.0 >= 1.102.061+ AC_HELP_STRING([--with-gconf-source=sourceaddress],
62+ launchpad-integration62+ [Config database for installing schema files.]),
63 gio-2.0" 2>&1`63+ [GCONF_SCHEMA_CONFIG_SOURCE="$withval"],)
64 fi64
65 # Put the nasty error message in config.log where it belongs65-# AM_SET_CURRENT_AUTOMAKE_VERSION
66-# -------------------------------
67-# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
68-# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
69-AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
70-[AM_AUTOMAKE_VERSION([1.10.1])dnl
71-m4_ifndef([AC_AUTOCONF_VERSION],
72- [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
73-_AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)])
74+ AC_SUBST(GCONF_SCHEMA_CONFIG_SOURCE)
75+ AC_MSG_RESULT([Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation])
76
77-# AM_AUX_DIR_EXPAND -*- Autoconf -*-
78+ if test "x$GCONF_SCHEMA_FILE_DIR" = "x"; then
79+ GCONF_SCHEMA_FILE_DIR='$(sysconfdir)/gconf/schemas'
80+ fi
81
82-# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
83-#
84-# This file is free software; the Free Software Foundation
85-# gives unlimited permission to copy and/or distribute it,
86-# with or without modifications, as long as this notice is preserved.
87+ AC_ARG_WITH([gconf-schema-file-dir],
88+ AC_HELP_STRING([--with-gconf-schema-file-dir=dir],
89+ [Directory for installing schema files.]),
90+ [GCONF_SCHEMA_FILE_DIR="$withval"],)
91
92-# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
93-# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
94-# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
95+ AC_SUBST(GCONF_SCHEMA_FILE_DIR)
96+ AC_MSG_RESULT([Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files])
97+
98+ AC_ARG_ENABLE(schemas-install,
99+ [ --disable-schemas-install Disable the schemas installation],
100+ [case ${enableval} in
101+ yes|no) ;;
102+ *) AC_MSG_ERROR(bad value ${enableval} for --enable-schemas-install) ;;
103+ esac])
104+ AM_CONDITIONAL([GCONF_SCHEMAS_INSTALL], [test "$enable_schemas_install" != no])
105+])
106+
107+# Copyright (C) 1995-2002 Free Software Foundation, Inc.
108+# Copyright (C) 2001-2003,2004 Red Hat, Inc.
109 #
110-# Of course, Automake must honor this variable whenever it calls a
111-# tool from the auxiliary directory. The problem is that $srcdir (and
112-# therefore $ac_aux_dir as well) can be either absolute or relative,
113-# depending on how configure is run. This is pretty annoying, since
114-# it makes $ac_aux_dir quite unusable in subdirectories: in the top
115-# source directory, any form will work fine, but in subdirectories a
116-# relative path needs to be adjusted first.
117+# This file is free software, distributed under the terms of the GNU
118+# General Public License. As a special exception to the GNU General
119+# Public License, this file may be distributed as part of a program
120+# that contains a configuration script generated by Autoconf, under
121+# the same distribution terms as the rest of that program.
122 #
123-# $ac_aux_dir/missing
124-# fails when called from a subdirectory if $ac_aux_dir is relative
125-# $top_srcdir/$ac_aux_dir/missing
126-# fails if $ac_aux_dir is absolute,
127-# fails when called from a subdirectory in a VPATH build with
128-# a relative $ac_aux_dir
129+# This file can be copied and used freely without restrictions. It can
130+# be used in projects which are not available under the GNU Public License
131+# but which still want to provide support for the GNU gettext functionality.
132 #
133-# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
134-# are both prefixed by $srcdir. In an in-source build this is usually
135-# harmless because $srcdir is `.', but things will broke when you
136-# start a VPATH build or use an absolute $srcdir.
137+# Macro to add for using GNU gettext.
138+# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
139 #
140-# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
141-# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
142-# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
143-# and then we would define $MISSING as
144-# MISSING="\${SHELL} $am_aux_dir/missing"
145-# This will work as long as MISSING is not called from configure, because
146-# unfortunately $(top_srcdir) has no meaning in configure.
147-# However there are other variables, like CC, which are often used in
148-# configure, and could therefore not use this "fixed" $ac_aux_dir.
149+# Modified to never use included libintl.
150+# Owen Taylor <otaylor@redhat.com>, 12/15/1998
151 #
152-# Another solution, used here, is to always expand $ac_aux_dir to an
153-# absolute PATH. The drawback is that using absolute paths prevent a
154-# configured tree to be moved without reconfiguration.
155-
156-AC_DEFUN([AM_AUX_DIR_EXPAND],
157-[dnl Rely on autoconf to set up CDPATH properly.
158-AC_PREREQ([2.50])dnl
159-# expand $ac_aux_dir to an absolute path
160-am_aux_dir=`cd $ac_aux_dir && pwd`
161-])
162-
163-# AM_CONDITIONAL -*- Autoconf -*-
164-
165-# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
166-# Free Software Foundation, Inc.
167+# Major rework to remove unused code
168+# Owen Taylor <otaylor@redhat.com>, 12/11/2002
169 #
170-# This file is free software; the Free Software Foundation
171-# gives unlimited permission to copy and/or distribute it,
172-# with or without modifications, as long as this notice is preserved.
173+# Added better handling of ALL_LINGUAS from GNU gettext version
174+# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
175+#
176+# Modified to require ngettext
177+# Matthias Clasen <mclasen@redhat.com> 08/06/2004
178+#
179+# We need this here as well, since someone might use autoconf-2.5x
180+# to configure GLib then an older version to configure a package
181+# using AM_GLIB_GNU_GETTEXT
182+AC_PREREQ(2.53)
183
184-# serial 8
185+dnl
186+dnl We go to great lengths to make sure that aclocal won't
187+dnl try to pull in the installed version of these macros
188+dnl when running aclocal in the glib directory.
189+dnl
190+m4_copy([AC_DEFUN],[glib_DEFUN])
191+m4_copy([AC_REQUIRE],[glib_REQUIRE])
192+dnl
193+dnl At the end, if we're not within glib, we'll define the public
194+dnl definitions in terms of our private definitions.
195+dnl
196
197-# AM_CONDITIONAL(NAME, SHELL-CONDITION)
198-# -------------------------------------
199-# Define a conditional.
200-AC_DEFUN([AM_CONDITIONAL],
201-[AC_PREREQ(2.52)dnl
202- ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
203- [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
204-AC_SUBST([$1_TRUE])dnl
205-AC_SUBST([$1_FALSE])dnl
206-_AM_SUBST_NOTMAKE([$1_TRUE])dnl
207-_AM_SUBST_NOTMAKE([$1_FALSE])dnl
208-if $2; then
209- $1_TRUE=
210- $1_FALSE='#'
211+# GLIB_LC_MESSAGES
212+#--------------------
213+glib_DEFUN([GLIB_LC_MESSAGES],
214+ [AC_CHECK_HEADERS([locale.h])
215+ if test $ac_cv_header_locale_h = yes; then
216+ AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
217+ [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
218+ am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
219+ if test $am_cv_val_LC_MESSAGES = yes; then
220+ AC_DEFINE(HAVE_LC_MESSAGES, 1,
221+ [Define if your <locale.h> file defines LC_MESSAGES.])
222+ fi
223+ fi])
224+
225+# GLIB_PATH_PROG_WITH_TEST
226+#----------------------------
227+dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
228+dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
229+glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],
230+[# Extract the first word of "$2", so it can be a program name with args.
231+set dummy $2; ac_word=[$]2
232+AC_MSG_CHECKING([for $ac_word])
233+AC_CACHE_VAL(ac_cv_path_$1,
234+[case "[$]$1" in
235+ /*)
236+ ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
237+ ;;
238+ *)
239+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
240+ for ac_dir in ifelse([$5], , $PATH, [$5]); do
241+ test -z "$ac_dir" && ac_dir=.
242+ if test -f $ac_dir/$ac_word; then
243+ if [$3]; then
244+ ac_cv_path_$1="$ac_dir/$ac_word"
245+ break
246+ fi
247+ fi
248+ done
249+ IFS="$ac_save_ifs"
250+dnl If no 4th arg is given, leave the cache variable unset,
251+dnl so AC_PATH_PROGS will keep looking.
252+ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
253+])dnl
254+ ;;
255+esac])dnl
256+$1="$ac_cv_path_$1"
257+if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
258+ AC_MSG_RESULT([$]$1)
259 else
260- $1_TRUE='#'
261- $1_FALSE=
262+ AC_MSG_RESULT(no)
263 fi
264-AC_CONFIG_COMMANDS_PRE(
265-[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
266- AC_MSG_ERROR([[conditional "$1" was never defined.
267-Usually this means the macro was only invoked conditionally.]])
268-fi])])
269+AC_SUBST($1)dnl
270+])
271
272-# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
273-# Free Software Foundation, Inc.
274-#
275-# This file is free software; the Free Software Foundation
276-# gives unlimited permission to copy and/or distribute it,
277-# with or without modifications, as long as this notice is preserved.
278+# GLIB_WITH_NLS
279+#-----------------
280+glib_DEFUN([GLIB_WITH_NLS],
281+ dnl NLS is obligatory
282+ [USE_NLS=yes
283+ AC_SUBST(USE_NLS)
284
285-# serial 9
286+ gt_cv_have_gettext=no
287
288-# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
289-# written in clear, in which case automake, when reading aclocal.m4,
290-# will think it sees a *use*, and therefore will trigger all it's
291-# C support machinery. Also note that it means that autoscan, seeing
292-# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
293+ CATOBJEXT=NONE
294+ XGETTEXT=:
295+ INTLLIBS=
296
297+ AC_CHECK_HEADER(libintl.h,
298+ [gt_cv_func_dgettext_libintl="no"
299+ libintl_extra_libs=""
300
301-# _AM_DEPENDENCIES(NAME)
302-# ----------------------
303-# See how the compiler implements dependency checking.
304-# NAME is "CC", "CXX", "GCJ", or "OBJC".
305-# We try a few techniques and use that to set a single cache variable.
306-#
307-# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
308-# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
309-# dependency, and given that the user is not expected to run this macro,
310-# just rely on AC_PROG_CC.
311-AC_DEFUN([_AM_DEPENDENCIES],
312-[AC_REQUIRE([AM_SET_DEPDIR])dnl
313-AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
314-AC_REQUIRE([AM_MAKE_INCLUDE])dnl
315-AC_REQUIRE([AM_DEP_TRACK])dnl
316+ #
317+ # First check in libc
318+ #
319+ AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
320+ [AC_TRY_LINK([
321+#include <libintl.h>
322+],
323+ [return !ngettext ("","", 1)],
324+ gt_cv_func_ngettext_libc=yes,
325+ gt_cv_func_ngettext_libc=no)
326+ ])
327+
328+ if test "$gt_cv_func_ngettext_libc" = "yes" ; then
329+ AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
330+ [AC_TRY_LINK([
331+#include <libintl.h>
332+],
333+ [return !dgettext ("","")],
334+ gt_cv_func_dgettext_libc=yes,
335+ gt_cv_func_dgettext_libc=no)
336+ ])
337+ fi
338+
339+ if test "$gt_cv_func_ngettext_libc" = "yes" ; then
340+ AC_CHECK_FUNCS(bind_textdomain_codeset)
341+ fi
342
343-ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
344- [$1], CXX, [depcc="$CXX" am_compiler_list=],
345- [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
346- [$1], UPC, [depcc="$UPC" am_compiler_list=],
347- [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
348- [depcc="$$1" am_compiler_list=])
349+ #
350+ # If we don't have everything we want, check in libintl
351+ #
352+ if test "$gt_cv_func_dgettext_libc" != "yes" \
353+ || test "$gt_cv_func_ngettext_libc" != "yes" \
354+ || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
355+
356+ AC_CHECK_LIB(intl, bindtextdomain,
357+ [AC_CHECK_LIB(intl, ngettext,
358+ [AC_CHECK_LIB(intl, dgettext,
359+ gt_cv_func_dgettext_libintl=yes)])])
360
361-AC_CACHE_CHECK([dependency style of $depcc],
362- [am_cv_$1_dependencies_compiler_type],
363-[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
364- # We make a subdir and do the tests there. Otherwise we can end up
365- # making bogus files that we don't know about and never remove. For
366- # instance it was reported that on HP-UX the gcc test will end up
367- # making a dummy file named `D' -- because `-MD' means `put the output
368- # in D'.
369- mkdir conftest.dir
370- # Copy depcomp to subdir because otherwise we won't find it if we're
371- # using a relative directory.
372- cp "$am_depcomp" conftest.dir
373- cd conftest.dir
374- # We will build objects and dependencies in a subdirectory because
375- # it helps to detect inapplicable dependency modes. For instance
376- # both Tru64's cc and ICC support -MD to output dependencies as a
377- # side effect of compilation, but ICC will put the dependencies in
378- # the current directory while Tru64 will put them in the object
379- # directory.
380- mkdir sub
381+ if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
382+ AC_MSG_CHECKING([if -liconv is needed to use gettext])
383+ AC_MSG_RESULT([])
384+ AC_CHECK_LIB(intl, ngettext,
385+ [AC_CHECK_LIB(intl, dcgettext,
386+ [gt_cv_func_dgettext_libintl=yes
387+ libintl_extra_libs=-liconv],
388+ :,-liconv)],
389+ :,-liconv)
390+ fi
391
392- am_cv_$1_dependencies_compiler_type=none
393- if test "$am_compiler_list" = ""; then
394- am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
395- fi
396- for depmode in $am_compiler_list; do
397- # Setup a source with many dependencies, because some compilers
398- # like to wrap large dependency lists on column 80 (with \), and
399- # we should not choose a depcomp mode which is confused by this.
400- #
401- # We need to recreate these files for each test, as the compiler may
402- # overwrite some of them when testing with obscure command lines.
403- # This happens at least with the AIX C compiler.
404- : > sub/conftest.c
405- for i in 1 2 3 4 5 6; do
406- echo '#include "conftst'$i'.h"' >> sub/conftest.c
407- # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
408- # Solaris 8's {/usr,}/bin/sh.
409- touch sub/conftst$i.h
410- done
411- echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
412+ #
413+ # If we found libintl, then check in it for bind_textdomain_codeset();
414+ # we'll prefer libc if neither have bind_textdomain_codeset(),
415+ # and both have dgettext and ngettext
416+ #
417+ if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
418+ glib_save_LIBS="$LIBS"
419+ LIBS="$LIBS -lintl $libintl_extra_libs"
420+ unset ac_cv_func_bind_textdomain_codeset
421+ AC_CHECK_FUNCS(bind_textdomain_codeset)
422+ LIBS="$glib_save_LIBS"
423
424- case $depmode in
425- nosideeffect)
426- # after this tag, mechanisms are not by side-effect, so they'll
427- # only be used when explicitly requested
428- if test "x$enable_dependency_tracking" = xyes; then
429- continue
430- else
431- break
432- fi
433- ;;
434- none) break ;;
435- esac
436- # We check with `-c' and `-o' for the sake of the "dashmstdout"
437- # mode. It turns out that the SunPro C++ compiler does not properly
438- # handle `-M -o', and we need to detect this.
439- if depmode=$depmode \
440- source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
441- depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
442- $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
443- >/dev/null 2>conftest.err &&
444- grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
445- grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
446- grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
447- ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
448- # icc doesn't choke on unknown options, it will just issue warnings
449- # or remarks (even with -Werror). So we grep stderr for any message
450- # that says an option was ignored or not supported.
451- # When given -MP, icc 7.0 and 7.1 complain thusly:
452- # icc: Command line warning: ignoring option '-M'; no argument required
453- # The diagnosis changed in icc 8.0:
454- # icc: Command line remark: option '-MP' not supported
455- if (grep 'ignoring option' conftest.err ||
456- grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
457- am_cv_$1_dependencies_compiler_type=$depmode
458- break
459+ if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
460+ gt_cv_func_dgettext_libc=no
461+ else
462+ if test "$gt_cv_func_dgettext_libc" = "yes" \
463+ && test "$gt_cv_func_ngettext_libc" = "yes"; then
464+ gt_cv_func_dgettext_libintl=no
465+ fi
466+ fi
467+ fi
468 fi
469- fi
470- done
471-
472- cd ..
473- rm -rf conftest.dir
474-else
475- am_cv_$1_dependencies_compiler_type=none
476-fi
477-])
478-AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
479-AM_CONDITIONAL([am__fastdep$1], [
480- test "x$enable_dependency_tracking" != xno \
481- && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
482-])
483
484+ if test "$gt_cv_func_dgettext_libc" = "yes" \
485+ || test "$gt_cv_func_dgettext_libintl" = "yes"; then
486+ gt_cv_have_gettext=yes
487+ fi
488+
489+ if test "$gt_cv_func_dgettext_libintl" = "yes"; then
490+ INTLLIBS="-lintl $libintl_extra_libs"
491+ fi
492+
493+ if test "$gt_cv_have_gettext" = "yes"; then
494+ AC_DEFINE(HAVE_GETTEXT,1,
495+ [Define if the GNU gettext() function is already present or preinstalled.])
496+ GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
497+ [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
498+ if test "$MSGFMT" != "no"; then
499+ glib_save_LIBS="$LIBS"
500+ LIBS="$LIBS $INTLLIBS"
501+ AC_CHECK_FUNCS(dcgettext)
502+ MSGFMT_OPTS=
503+ AC_MSG_CHECKING([if msgfmt accepts -c])
504+ GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
505+msgid ""
506+msgstr ""
507+"Content-Type: text/plain; charset=UTF-8\n"
508+"Project-Id-Version: test 1.0\n"
509+"PO-Revision-Date: 2007-02-15 12:01+0100\n"
510+"Last-Translator: test <foo@bar.xx>\n"
511+"Language-Team: C <LL@li.org>\n"
512+"MIME-Version: 1.0\n"
513+"Content-Transfer-Encoding: 8bit\n"
514+], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
515+ AC_SUBST(MSGFMT_OPTS)
516+ AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
517+ GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
518+ [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
519+ AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
520+ return _nl_msg_cat_cntr],
521+ [CATOBJEXT=.gmo
522+ DATADIRNAME=share],
523+ [case $host in
524+ *-*-solaris*)
525+ dnl On Solaris, if bind_textdomain_codeset is in libc,
526+ dnl GNU format message catalog is always supported,
527+ dnl since both are added to the libc all together.
528+ dnl Hence, we'd like to go with DATADIRNAME=share and
529+ dnl and CATOBJEXT=.gmo in this case.
530+ AC_CHECK_FUNC(bind_textdomain_codeset,
531+ [CATOBJEXT=.gmo
532+ DATADIRNAME=share],
533+ [CATOBJEXT=.mo
534+ DATADIRNAME=lib])
535+ ;;
536+ *)
537+ CATOBJEXT=.mo
538+ DATADIRNAME=lib
539+ ;;
540+ esac])
541+ LIBS="$glib_save_LIBS"
542+ INSTOBJEXT=.mo
543+ else
544+ gt_cv_have_gettext=no
545+ fi
546+ fi
547+ ])
548
549-# AM_SET_DEPDIR
550-# -------------
551-# Choose a directory name for dependency files.
552-# This macro is AC_REQUIREd in _AM_DEPENDENCIES
553-AC_DEFUN([AM_SET_DEPDIR],
554-[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
555-AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
556-])
557-
558+ if test "$gt_cv_have_gettext" = "yes" ; then
559+ AC_DEFINE(ENABLE_NLS, 1,
560+ [always defined to indicate that i18n is enabled])
561+ fi
562
563-# AM_DEP_TRACK
564-# ------------
565-AC_DEFUN([AM_DEP_TRACK],
566-[AC_ARG_ENABLE(dependency-tracking,
567-[ --disable-dependency-tracking speeds up one-time build
568- --enable-dependency-tracking do not reject slow dependency extractors])
569-if test "x$enable_dependency_tracking" != xno; then
570- am_depcomp="$ac_aux_dir/depcomp"
571- AMDEPBACKSLASH='\'
572-fi
573-AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
574-AC_SUBST([AMDEPBACKSLASH])dnl
575-_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
576-])
577-
578-# Generate code to set up dependency tracking. -*- Autoconf -*-
579-
580-# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
581-# Free Software Foundation, Inc.
582-#
583-# This file is free software; the Free Software Foundation
584-# gives unlimited permission to copy and/or distribute it,
585-# with or without modifications, as long as this notice is preserved.
586-
587-#serial 3
588-
589-# _AM_OUTPUT_DEPENDENCY_COMMANDS
590-# ------------------------------
591-AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
592-[for mf in $CONFIG_FILES; do
593- # Strip MF so we end up with the name of the file.
594- mf=`echo "$mf" | sed -e 's/:.*$//'`
595- # Check whether this is an Automake generated Makefile or not.
596- # We used to match only the files named `Makefile.in', but
597- # some people rename them; so instead we look at the file content.
598- # Grep'ing the first line is not enough: some people post-process
599- # each Makefile.in and add a new line on top of each file to say so.
600- # Grep'ing the whole file is not good either: AIX grep has a line
601- # limit of 2048, but all sed's we know have understand at least 4000.
602- if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
603- dirpart=`AS_DIRNAME("$mf")`
604- else
605- continue
606- fi
607- # Extract the definition of DEPDIR, am__include, and am__quote
608- # from the Makefile without running `make'.
609- DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
610- test -z "$DEPDIR" && continue
611- am__include=`sed -n 's/^am__include = //p' < "$mf"`
612- test -z "am__include" && continue
613- am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
614- # When using ansi2knr, U may be empty or an underscore; expand it
615- U=`sed -n 's/^U = //p' < "$mf"`
616- # Find all dependency output files, they are included files with
617- # $(DEPDIR) in their names. We invoke sed twice because it is the
618- # simplest approach to changing $(DEPDIR) to its actual value in the
619- # expansion.
620- for file in `sed -n "
621- s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
622- sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
623- # Make sure the directory exists.
624- test -f "$dirpart/$file" && continue
625- fdir=`AS_DIRNAME(["$file"])`
626- AS_MKDIR_P([$dirpart/$fdir])
627- # echo "creating $dirpart/$file"
628- echo '# dummy' > "$dirpart/$file"
629- done
630-done
631-])# _AM_OUTPUT_DEPENDENCY_COMMANDS
632-
633-
634-# AM_OUTPUT_DEPENDENCY_COMMANDS
635-# -----------------------------
636-# This macro should only be invoked once -- use via AC_REQUIRE.
637-#
638-# This code is only required when automatic dependency tracking
639-# is enabled. FIXME. This creates each `.P' file that we will
640-# need in order to bootstrap the dependency handling code.
641-AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
642-[AC_CONFIG_COMMANDS([depfiles],
643- [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
644- [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
645-])
646-
647-# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
648-# Free Software Foundation, Inc.
649-#
650-# This file is free software; the Free Software Foundation
651-# gives unlimited permission to copy and/or distribute it,
652-# with or without modifications, as long as this notice is preserved.
653-
654-# serial 8
655-
656-# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
657-AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
658-
659-# Do all the work for Automake. -*- Autoconf -*-
660-
661-# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
662-# 2005, 2006, 2008 Free Software Foundation, Inc.
663-#
664-# This file is free software; the Free Software Foundation
665-# gives unlimited permission to copy and/or distribute it,
666-# with or without modifications, as long as this notice is preserved.
667-
668-# serial 13
669-
670-# This macro actually does too much. Some checks are only needed if
671-# your package does certain things. But this isn't really a big deal.
672-
673-# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
674-# AM_INIT_AUTOMAKE([OPTIONS])
675-# -----------------------------------------------
676-# The call with PACKAGE and VERSION arguments is the old style
677-# call (pre autoconf-2.50), which is being phased out. PACKAGE
678-# and VERSION should now be passed to AC_INIT and removed from
679-# the call to AM_INIT_AUTOMAKE.
680-# We support both call styles for the transition. After
681-# the next Automake release, Autoconf can make the AC_INIT
682-# arguments mandatory, and then we can depend on a new Autoconf
683-# release and drop the old call support.
684-AC_DEFUN([AM_INIT_AUTOMAKE],
685-[AC_PREREQ([2.60])dnl
686-dnl Autoconf wants to disallow AM_ names. We explicitly allow
687-dnl the ones we care about.
688-m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
689-AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
690-AC_REQUIRE([AC_PROG_INSTALL])dnl
691-if test "`cd $srcdir && pwd`" != "`pwd`"; then
692- # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
693- # is not polluted with repeated "-I."
694- AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
695- # test to see if srcdir already configured
696- if test -f $srcdir/config.status; then
697- AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
698- fi
699-fi
700-
701-# test whether we have cygpath
702-if test -z "$CYGPATH_W"; then
703- if (cygpath --version) >/dev/null 2>/dev/null; then
704- CYGPATH_W='cygpath -w'
705- else
706- CYGPATH_W=echo
707- fi
708-fi
709-AC_SUBST([CYGPATH_W])
710-
711-# Define the identity of the package.
712-dnl Distinguish between old-style and new-style calls.
713-m4_ifval([$2],
714-[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
715- AC_SUBST([PACKAGE], [$1])dnl
716- AC_SUBST([VERSION], [$2])],
717-[_AM_SET_OPTIONS([$1])dnl
718-dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
719-m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
720- [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
721- AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
722- AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
723-
724-_AM_IF_OPTION([no-define],,
725-[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
726- AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
727-
728-# Some tools Automake needs.
729-AC_REQUIRE([AM_SANITY_CHECK])dnl
730-AC_REQUIRE([AC_ARG_PROGRAM])dnl
731-AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
732-AM_MISSING_PROG(AUTOCONF, autoconf)
733-AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
734-AM_MISSING_PROG(AUTOHEADER, autoheader)
735-AM_MISSING_PROG(MAKEINFO, makeinfo)
736-AM_PROG_INSTALL_SH
737-AM_PROG_INSTALL_STRIP
738-AC_REQUIRE([AM_PROG_MKDIR_P])dnl
739-# We need awk for the "check" target. The system "awk" is bad on
740-# some platforms.
741-AC_REQUIRE([AC_PROG_AWK])dnl
742-AC_REQUIRE([AC_PROG_MAKE_SET])dnl
743-AC_REQUIRE([AM_SET_LEADING_DOT])dnl
744-_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
745- [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
746- [_AM_PROG_TAR([v7])])])
747-_AM_IF_OPTION([no-dependencies],,
748-[AC_PROVIDE_IFELSE([AC_PROG_CC],
749- [_AM_DEPENDENCIES(CC)],
750- [define([AC_PROG_CC],
751- defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
752-AC_PROVIDE_IFELSE([AC_PROG_CXX],
753- [_AM_DEPENDENCIES(CXX)],
754- [define([AC_PROG_CXX],
755- defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
756-AC_PROVIDE_IFELSE([AC_PROG_OBJC],
757- [_AM_DEPENDENCIES(OBJC)],
758- [define([AC_PROG_OBJC],
759- defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
760-])
761-])
762-
763-
764-# When config.status generates a header, we must update the stamp-h file.
765-# This file resides in the same directory as the config header
766-# that is generated. The stamp files are numbered to have different names.
767-
768-# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
769-# loop where config.status creates the headers, so we can generate
770-# our stamp files there.
771-AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
772-[# Compute $1's index in $config_headers.
773-_am_arg=$1
774-_am_stamp_count=1
775-for _am_header in $config_headers :; do
776- case $_am_header in
777- $_am_arg | $_am_arg:* )
778- break ;;
779- * )
780- _am_stamp_count=`expr $_am_stamp_count + 1` ;;
781- esac
782-done
783-echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
784-
785-# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
786-#
787-# This file is free software; the Free Software Foundation
788-# gives unlimited permission to copy and/or distribute it,
789-# with or without modifications, as long as this notice is preserved.
790-
791-# AM_PROG_INSTALL_SH
792-# ------------------
793-# Define $install_sh.
794-AC_DEFUN([AM_PROG_INSTALL_SH],
795-[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
796-install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
797-AC_SUBST(install_sh)])
798-
799-# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
800-#
801-# This file is free software; the Free Software Foundation
802-# gives unlimited permission to copy and/or distribute it,
803-# with or without modifications, as long as this notice is preserved.
804-
805-# serial 2
806-
807-# Check whether the underlying file-system supports filenames
808-# with a leading dot. For instance MS-DOS doesn't.
809-AC_DEFUN([AM_SET_LEADING_DOT],
810-[rm -rf .tst 2>/dev/null
811-mkdir .tst 2>/dev/null
812-if test -d .tst; then
813- am__leading_dot=.
814-else
815- am__leading_dot=_
816-fi
817-rmdir .tst 2>/dev/null
818-AC_SUBST([am__leading_dot])])
819-
820-# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
821-# From Jim Meyering
822-
823-# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
824-# Free Software Foundation, Inc.
825-#
826-# This file is free software; the Free Software Foundation
827-# gives unlimited permission to copy and/or distribute it,
828-# with or without modifications, as long as this notice is preserved.
829-
830-# serial 4
831-
832-AC_DEFUN([AM_MAINTAINER_MODE],
833-[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
834- dnl maintainer-mode is disabled by default
835- AC_ARG_ENABLE(maintainer-mode,
836-[ --enable-maintainer-mode enable make rules and dependencies not useful
837- (and sometimes confusing) to the casual installer],
838- USE_MAINTAINER_MODE=$enableval,
839- USE_MAINTAINER_MODE=no)
840- AC_MSG_RESULT([$USE_MAINTAINER_MODE])
841- AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
842- MAINT=$MAINTAINER_MODE_TRUE
843- AC_SUBST(MAINT)dnl
844-]
845-)
846-
847-AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
848-
849-# Check to see how 'make' treats includes. -*- Autoconf -*-
850-
851-# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
852-#
853-# This file is free software; the Free Software Foundation
854-# gives unlimited permission to copy and/or distribute it,
855-# with or without modifications, as long as this notice is preserved.
856-
857-# serial 3
858-
859-# AM_MAKE_INCLUDE()
860-# -----------------
861-# Check to see how make treats includes.
862-AC_DEFUN([AM_MAKE_INCLUDE],
863-[am_make=${MAKE-make}
864-cat > confinc << 'END'
865-am__doit:
866- @echo done
867-.PHONY: am__doit
868-END
869-# If we don't find an include directive, just comment out the code.
870-AC_MSG_CHECKING([for style of include used by $am_make])
871-am__include="#"
872-am__quote=
873-_am_result=none
874-# First try GNU make style include.
875-echo "include confinc" > confmf
876-# We grep out `Entering directory' and `Leaving directory'
877-# messages which can occur if `w' ends up in MAKEFLAGS.
878-# In particular we don't look at `^make:' because GNU make might
879-# be invoked under some other name (usually "gmake"), in which
880-# case it prints its new name instead of `make'.
881-if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
882- am__include=include
883- am__quote=
884- _am_result=GNU
885-fi
886-# Now try BSD make style include.
887-if test "$am__include" = "#"; then
888- echo '.include "confinc"' > confmf
889- if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
890- am__include=.include
891- am__quote="\""
892- _am_result=BSD
893- fi
894-fi
895-AC_SUBST([am__include])
896-AC_SUBST([am__quote])
897-AC_MSG_RESULT([$_am_result])
898-rm -f confinc confmf
899-])
900-
901-# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005
902-# Free Software Foundation, Inc.
903-#
904-# This file is free software; the Free Software Foundation
905-# gives unlimited permission to copy and/or distribute it,
906-# with or without modifications, as long as this notice is preserved.
907-
908-# serial 5
909-
910-# AM_PROG_CC_C_O
911-# --------------
912-# Like AC_PROG_CC_C_O, but changed for automake.
913-AC_DEFUN([AM_PROG_CC_C_O],
914-[AC_REQUIRE([AC_PROG_CC_C_O])dnl
915-AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
916-AC_REQUIRE_AUX_FILE([compile])dnl
917-# FIXME: we rely on the cache variable name because
918-# there is no other way.
919-set dummy $CC
920-ac_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
921-if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
922- # Losing compiler, so override with the script.
923- # FIXME: It is wrong to rewrite CC.
924- # But if we don't then we get into trouble of one sort or another.
925- # A longer-term fix would be to have automake use am__CC in this case,
926- # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
927- CC="$am_aux_dir/compile $CC"
928-fi
929-dnl Make sure AC_PROG_CC is never called again, or it will override our
930-dnl setting of CC.
931-m4_define([AC_PROG_CC],
932- [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
933-])
934-
935-# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
936-
937-# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
938-# Free Software Foundation, Inc.
939-#
940-# This file is free software; the Free Software Foundation
941-# gives unlimited permission to copy and/or distribute it,
942-# with or without modifications, as long as this notice is preserved.
943-
944-# serial 5
945-
946-# AM_MISSING_PROG(NAME, PROGRAM)
947-# ------------------------------
948-AC_DEFUN([AM_MISSING_PROG],
949-[AC_REQUIRE([AM_MISSING_HAS_RUN])
950-$1=${$1-"${am_missing_run}$2"}
951-AC_SUBST($1)])
952-
953-
954-# AM_MISSING_HAS_RUN
955-# ------------------
956-# Define MISSING if not defined so far and test if it supports --run.
957-# If it does, set am_missing_run to use it, otherwise, to nothing.
958-AC_DEFUN([AM_MISSING_HAS_RUN],
959-[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
960-AC_REQUIRE_AUX_FILE([missing])dnl
961-test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
962-# Use eval to expand $SHELL
963-if eval "$MISSING --run true"; then
964- am_missing_run="$MISSING --run "
965-else
966- am_missing_run=
967- AC_MSG_WARN([`missing' script is too old or missing])
968-fi
969-])
970-
971-# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
972-#
973-# This file is free software; the Free Software Foundation
974-# gives unlimited permission to copy and/or distribute it,
975-# with or without modifications, as long as this notice is preserved.
976-
977-# AM_PROG_MKDIR_P
978-# ---------------
979-# Check for `mkdir -p'.
980-AC_DEFUN([AM_PROG_MKDIR_P],
981-[AC_PREREQ([2.60])dnl
982-AC_REQUIRE([AC_PROG_MKDIR_P])dnl
983-dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
984-dnl while keeping a definition of mkdir_p for backward compatibility.
985-dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
986-dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
987-dnl Makefile.ins that do not define MKDIR_P, so we do our own
988-dnl adjustment using top_builddir (which is defined more often than
989-dnl MKDIR_P).
990-AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
991-case $mkdir_p in
992- [[\\/$]]* | ?:[[\\/]]*) ;;
993- */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
994-esac
995-])
996-
997-# Helper functions for option handling. -*- Autoconf -*-
998-
999-# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
1000-#
1001-# This file is free software; the Free Software Foundation
1002-# gives unlimited permission to copy and/or distribute it,
1003-# with or without modifications, as long as this notice is preserved.
1004-
1005-# serial 3
1006-
1007-# _AM_MANGLE_OPTION(NAME)
1008-# -----------------------
1009-AC_DEFUN([_AM_MANGLE_OPTION],
1010-[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
1011-
1012-# _AM_SET_OPTION(NAME)
1013-# ------------------------------
1014-# Set option NAME. Presently that only means defining a flag for this option.
1015-AC_DEFUN([_AM_SET_OPTION],
1016-[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
1017-
1018-# _AM_SET_OPTIONS(OPTIONS)
1019-# ----------------------------------
1020-# OPTIONS is a space-separated list of Automake options.
1021-AC_DEFUN([_AM_SET_OPTIONS],
1022-[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
1023-
1024-# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
1025-# -------------------------------------------
1026-# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
1027-AC_DEFUN([_AM_IF_OPTION],
1028-[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
1029-
1030-# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
1031-#
1032-# This file is free software; the Free Software Foundation
1033-# gives unlimited permission to copy and/or distribute it,
1034-# with or without modifications, as long as this notice is preserved.
1035-
1036-# AM_RUN_LOG(COMMAND)
1037-# -------------------
1038-# Run COMMAND, save the exit status in ac_status, and log it.
1039-# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
1040-AC_DEFUN([AM_RUN_LOG],
1041-[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
1042- ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
1043- ac_status=$?
1044- echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1045- (exit $ac_status); }])
1046-
1047-# Check to make sure that the build environment is sane. -*- Autoconf -*-
1048-
1049-# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
1050-# Free Software Foundation, Inc.
1051-#
1052-# This file is free software; the Free Software Foundation
1053-# gives unlimited permission to copy and/or distribute it,
1054-# with or without modifications, as long as this notice is preserved.
1055-
1056-# serial 4
1057-
1058-# AM_SANITY_CHECK
1059-# ---------------
1060-AC_DEFUN([AM_SANITY_CHECK],
1061-[AC_MSG_CHECKING([whether build environment is sane])
1062-# Just in case
1063-sleep 1
1064-echo timestamp > conftest.file
1065-# Do `set' in a subshell so we don't clobber the current shell's
1066-# arguments. Must try -L first in case configure is actually a
1067-# symlink; some systems play weird games with the mod time of symlinks
1068-# (eg FreeBSD returns the mod time of the symlink's containing
1069-# directory).
1070-if (
1071- set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1072- if test "$[*]" = "X"; then
1073- # -L didn't work.
1074- set X `ls -t $srcdir/configure conftest.file`
1075- fi
1076- rm -f conftest.file
1077- if test "$[*]" != "X $srcdir/configure conftest.file" \
1078- && test "$[*]" != "X conftest.file $srcdir/configure"; then
1079-
1080- # If neither matched, then we have a broken ls. This can happen
1081- # if, for instance, CONFIG_SHELL is bash and it inherits a
1082- # broken ls alias from the environment. This has actually
1083- # happened. Such a system could not be considered "sane".
1084- AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
1085-alias in your environment])
1086- fi
1087-
1088- test "$[2]" = conftest.file
1089- )
1090-then
1091- # Ok.
1092- :
1093-else
1094- AC_MSG_ERROR([newly created file is older than distributed files!
1095-Check your system clock])
1096-fi
1097-AC_MSG_RESULT(yes)])
1098-
1099-# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
1100-#
1101-# This file is free software; the Free Software Foundation
1102-# gives unlimited permission to copy and/or distribute it,
1103-# with or without modifications, as long as this notice is preserved.
1104-
1105-# AM_PROG_INSTALL_STRIP
1106-# ---------------------
1107-# One issue with vendor `install' (even GNU) is that you can't
1108-# specify the program used to strip binaries. This is especially
1109-# annoying in cross-compiling environments, where the build's strip
1110-# is unlikely to handle the host's binaries.
1111-# Fortunately install-sh will honor a STRIPPROG variable, so we
1112-# always use install-sh in `make install-strip', and initialize
1113-# STRIPPROG with the value of the STRIP variable (set by the user).
1114-AC_DEFUN([AM_PROG_INSTALL_STRIP],
1115-[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1116-# Installed binaries are usually stripped using `strip' when the user
1117-# run `make install-strip'. However `strip' might not be the right
1118-# tool to use in cross-compilation environments, therefore Automake
1119-# will honor the `STRIP' environment variable to overrule this program.
1120-dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
1121-if test "$cross_compiling" != no; then
1122- AC_CHECK_TOOL([STRIP], [strip], :)
1123-fi
1124-INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1125-AC_SUBST([INSTALL_STRIP_PROGRAM])])
1126-
1127-# Copyright (C) 2006 Free Software Foundation, Inc.
1128-#
1129-# This file is free software; the Free Software Foundation
1130-# gives unlimited permission to copy and/or distribute it,
1131-# with or without modifications, as long as this notice is preserved.
1132-
1133-# _AM_SUBST_NOTMAKE(VARIABLE)
1134-# ---------------------------
1135-# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1136-# This macro is traced by Automake.
1137-AC_DEFUN([_AM_SUBST_NOTMAKE])
1138-
1139-# Check how to create a tarball. -*- Autoconf -*-
1140-
1141-# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
1142-#
1143-# This file is free software; the Free Software Foundation
1144-# gives unlimited permission to copy and/or distribute it,
1145-# with or without modifications, as long as this notice is preserved.
1146-
1147-# serial 2
1148-
1149-# _AM_PROG_TAR(FORMAT)
1150-# --------------------
1151-# Check how to create a tarball in format FORMAT.
1152-# FORMAT should be one of `v7', `ustar', or `pax'.
1153-#
1154-# Substitute a variable $(am__tar) that is a command
1155-# writing to stdout a FORMAT-tarball containing the directory
1156-# $tardir.
1157-# tardir=directory && $(am__tar) > result.tar
1158-#
1159-# Substitute a variable $(am__untar) that extract such
1160-# a tarball read from stdin.
1161-# $(am__untar) < result.tar
1162-AC_DEFUN([_AM_PROG_TAR],
1163-[# Always define AMTAR for backward compatibility.
1164-AM_MISSING_PROG([AMTAR], [tar])
1165-m4_if([$1], [v7],
1166- [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
1167- [m4_case([$1], [ustar],, [pax],,
1168- [m4_fatal([Unknown tar format])])
1169-AC_MSG_CHECKING([how to create a $1 tar archive])
1170-# Loop over all known methods to create a tar archive until one works.
1171-_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1172-_am_tools=${am_cv_prog_tar_$1-$_am_tools}
1173-# Do not fold the above two line into one, because Tru64 sh and
1174-# Solaris sh will not grok spaces in the rhs of `-'.
1175-for _am_tool in $_am_tools
1176-do
1177- case $_am_tool in
1178- gnutar)
1179- for _am_tar in tar gnutar gtar;
1180- do
1181- AM_RUN_LOG([$_am_tar --version]) && break
1182- done
1183- am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1184- am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1185- am__untar="$_am_tar -xf -"
1186- ;;
1187- plaintar)
1188- # Must skip GNU tar: if it does not support --format= it doesn't create
1189- # ustar tarball either.
1190- (tar --version) >/dev/null 2>&1 && continue
1191- am__tar='tar chf - "$$tardir"'
1192- am__tar_='tar chf - "$tardir"'
1193- am__untar='tar xf -'
1194- ;;
1195- pax)
1196- am__tar='pax -L -x $1 -w "$$tardir"'
1197- am__tar_='pax -L -x $1 -w "$tardir"'
1198- am__untar='pax -r'
1199- ;;
1200- cpio)
1201- am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1202- am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1203- am__untar='cpio -i -H $1 -d'
1204- ;;
1205- none)
1206- am__tar=false
1207- am__tar_=false
1208- am__untar=false
1209- ;;
1210- esac
1211-
1212- # If the value was cached, stop now. We just wanted to have am__tar
1213- # and am__untar set.
1214- test -n "${am_cv_prog_tar_$1}" && break
1215-
1216- # tar/untar a dummy directory, and stop if the command works
1217- rm -rf conftest.dir
1218- mkdir conftest.dir
1219- echo GrepMe > conftest.dir/file
1220- AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1221- rm -rf conftest.dir
1222- if test -s conftest.tar; then
1223- AM_RUN_LOG([$am__untar <conftest.tar])
1224- grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1225- fi
1226-done
1227-rm -rf conftest.dir
1228-
1229-AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1230-AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1231-AC_SUBST([am__tar])
1232-AC_SUBST([am__untar])
1233-]) # _AM_PROG_TAR
1234-
1235-dnl AM_GCONF_SOURCE_2
1236-dnl Defines GCONF_SCHEMA_CONFIG_SOURCE which is where you should install schemas
1237-dnl (i.e. pass to gconftool-2
1238-dnl Defines GCONF_SCHEMA_FILE_DIR which is a filesystem directory where
1239-dnl you should install foo.schemas files
1240-dnl
1241-
1242-AC_DEFUN([AM_GCONF_SOURCE_2],
1243-[
1244- if test "x$GCONF_SCHEMA_INSTALL_SOURCE" = "x"; then
1245- GCONF_SCHEMA_CONFIG_SOURCE=`gconftool-2 --get-default-source`
1246- else
1247- GCONF_SCHEMA_CONFIG_SOURCE=$GCONF_SCHEMA_INSTALL_SOURCE
1248- fi
1249-
1250- AC_ARG_WITH([gconf-source],
1251- AC_HELP_STRING([--with-gconf-source=sourceaddress],
1252- [Config database for installing schema files.]),
1253- [GCONF_SCHEMA_CONFIG_SOURCE="$withval"],)
1254-
1255- AC_SUBST(GCONF_SCHEMA_CONFIG_SOURCE)
1256- AC_MSG_RESULT([Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation])
1257-
1258- if test "x$GCONF_SCHEMA_FILE_DIR" = "x"; then
1259- GCONF_SCHEMA_FILE_DIR='$(sysconfdir)/gconf/schemas'
1260- fi
1261-
1262- AC_ARG_WITH([gconf-schema-file-dir],
1263- AC_HELP_STRING([--with-gconf-schema-file-dir=dir],
1264- [Directory for installing schema files.]),
1265- [GCONF_SCHEMA_FILE_DIR="$withval"],)
1266-
1267- AC_SUBST(GCONF_SCHEMA_FILE_DIR)
1268- AC_MSG_RESULT([Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files])
1269-
1270- AC_ARG_ENABLE(schemas-install,
1271- [ --disable-schemas-install Disable the schemas installation],
1272- [case ${enableval} in
1273- yes|no) ;;
1274- *) AC_MSG_ERROR(bad value ${enableval} for --enable-schemas-install) ;;
1275- esac])
1276- AM_CONDITIONAL([GCONF_SCHEMAS_INSTALL], [test "$enable_schemas_install" != no])
1277-])
1278-
1279-# Copyright (C) 1995-2002 Free Software Foundation, Inc.
1280-# Copyright (C) 2001-2003,2004 Red Hat, Inc.
1281-#
1282-# This file is free software, distributed under the terms of the GNU
1283-# General Public License. As a special exception to the GNU General
1284-# Public License, this file may be distributed as part of a program
1285-# that contains a configuration script generated by Autoconf, under
1286-# the same distribution terms as the rest of that program.
1287-#
1288-# This file can be copied and used freely without restrictions. It can
1289-# be used in projects which are not available under the GNU Public License
1290-# but which still want to provide support for the GNU gettext functionality.
1291-#
1292-# Macro to add for using GNU gettext.
1293-# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
1294-#
1295-# Modified to never use included libintl.
1296-# Owen Taylor <otaylor@redhat.com>, 12/15/1998
1297-#
1298-# Major rework to remove unused code
1299-# Owen Taylor <otaylor@redhat.com>, 12/11/2002
1300-#
1301-# Added better handling of ALL_LINGUAS from GNU gettext version
1302-# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
1303-#
1304-# Modified to require ngettext
1305-# Matthias Clasen <mclasen@redhat.com> 08/06/2004
1306-#
1307-# We need this here as well, since someone might use autoconf-2.5x
1308-# to configure GLib then an older version to configure a package
1309-# using AM_GLIB_GNU_GETTEXT
1310-AC_PREREQ(2.53)
1311-
1312-dnl
1313-dnl We go to great lengths to make sure that aclocal won't
1314-dnl try to pull in the installed version of these macros
1315-dnl when running aclocal in the glib directory.
1316-dnl
1317-m4_copy([AC_DEFUN],[glib_DEFUN])
1318-m4_copy([AC_REQUIRE],[glib_REQUIRE])
1319-dnl
1320-dnl At the end, if we're not within glib, we'll define the public
1321-dnl definitions in terms of our private definitions.
1322-dnl
1323-
1324-# GLIB_LC_MESSAGES
1325-#--------------------
1326-glib_DEFUN([GLIB_LC_MESSAGES],
1327- [AC_CHECK_HEADERS([locale.h])
1328- if test $ac_cv_header_locale_h = yes; then
1329- AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
1330- [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
1331- am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
1332- if test $am_cv_val_LC_MESSAGES = yes; then
1333- AC_DEFINE(HAVE_LC_MESSAGES, 1,
1334- [Define if your <locale.h> file defines LC_MESSAGES.])
1335- fi
1336- fi])
1337-
1338-# GLIB_PATH_PROG_WITH_TEST
1339-#----------------------------
1340-dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
1341-dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
1342-glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],
1343-[# Extract the first word of "$2", so it can be a program name with args.
1344-set dummy $2; ac_word=[$]2
1345-AC_MSG_CHECKING([for $ac_word])
1346-AC_CACHE_VAL(ac_cv_path_$1,
1347-[case "[$]$1" in
1348- /*)
1349- ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
1350- ;;
1351- *)
1352- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1353- for ac_dir in ifelse([$5], , $PATH, [$5]); do
1354- test -z "$ac_dir" && ac_dir=.
1355- if test -f $ac_dir/$ac_word; then
1356- if [$3]; then
1357- ac_cv_path_$1="$ac_dir/$ac_word"
1358- break
1359- fi
1360- fi
1361- done
1362- IFS="$ac_save_ifs"
1363-dnl If no 4th arg is given, leave the cache variable unset,
1364-dnl so AC_PATH_PROGS will keep looking.
1365-ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
1366-])dnl
1367- ;;
1368-esac])dnl
1369-$1="$ac_cv_path_$1"
1370-if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
1371- AC_MSG_RESULT([$]$1)
1372-else
1373- AC_MSG_RESULT(no)
1374-fi
1375-AC_SUBST($1)dnl
1376-])
1377-
1378-# GLIB_WITH_NLS
1379-#-----------------
1380-glib_DEFUN([GLIB_WITH_NLS],
1381- dnl NLS is obligatory
1382- [USE_NLS=yes
1383- AC_SUBST(USE_NLS)
1384-
1385- gt_cv_have_gettext=no
1386-
1387- CATOBJEXT=NONE
1388- XGETTEXT=:
1389- INTLLIBS=
1390-
1391- AC_CHECK_HEADER(libintl.h,
1392- [gt_cv_func_dgettext_libintl="no"
1393- libintl_extra_libs=""
1394-
1395- #
1396- # First check in libc
1397- #
1398- AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
1399- [AC_TRY_LINK([
1400-#include <libintl.h>
1401-],
1402- [return !ngettext ("","", 1)],
1403- gt_cv_func_ngettext_libc=yes,
1404- gt_cv_func_ngettext_libc=no)
1405- ])
1406-
1407- if test "$gt_cv_func_ngettext_libc" = "yes" ; then
1408- AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
1409- [AC_TRY_LINK([
1410-#include <libintl.h>
1411-],
1412- [return !dgettext ("","")],
1413- gt_cv_func_dgettext_libc=yes,
1414- gt_cv_func_dgettext_libc=no)
1415- ])
1416- fi
1417-
1418- if test "$gt_cv_func_ngettext_libc" = "yes" ; then
1419- AC_CHECK_FUNCS(bind_textdomain_codeset)
1420- fi
1421-
1422- #
1423- # If we don't have everything we want, check in libintl
1424- #
1425- if test "$gt_cv_func_dgettext_libc" != "yes" \
1426- || test "$gt_cv_func_ngettext_libc" != "yes" \
1427- || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
1428-
1429- AC_CHECK_LIB(intl, bindtextdomain,
1430- [AC_CHECK_LIB(intl, ngettext,
1431- [AC_CHECK_LIB(intl, dgettext,
1432- gt_cv_func_dgettext_libintl=yes)])])
1433-
1434- if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
1435- AC_MSG_CHECKING([if -liconv is needed to use gettext])
1436- AC_MSG_RESULT([])
1437- AC_CHECK_LIB(intl, ngettext,
1438- [AC_CHECK_LIB(intl, dcgettext,
1439- [gt_cv_func_dgettext_libintl=yes
1440- libintl_extra_libs=-liconv],
1441- :,-liconv)],
1442- :,-liconv)
1443- fi
1444-
1445- #
1446- # If we found libintl, then check in it for bind_textdomain_codeset();
1447- # we'll prefer libc if neither have bind_textdomain_codeset(),
1448- # and both have dgettext and ngettext
1449- #
1450- if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
1451- glib_save_LIBS="$LIBS"
1452- LIBS="$LIBS -lintl $libintl_extra_libs"
1453- unset ac_cv_func_bind_textdomain_codeset
1454- AC_CHECK_FUNCS(bind_textdomain_codeset)
1455- LIBS="$glib_save_LIBS"
1456-
1457- if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
1458- gt_cv_func_dgettext_libc=no
1459- else
1460- if test "$gt_cv_func_dgettext_libc" = "yes" \
1461- && test "$gt_cv_func_ngettext_libc" = "yes"; then
1462- gt_cv_func_dgettext_libintl=no
1463- fi
1464- fi
1465- fi
1466- fi
1467-
1468- if test "$gt_cv_func_dgettext_libc" = "yes" \
1469- || test "$gt_cv_func_dgettext_libintl" = "yes"; then
1470- gt_cv_have_gettext=yes
1471- fi
1472-
1473- if test "$gt_cv_func_dgettext_libintl" = "yes"; then
1474- INTLLIBS="-lintl $libintl_extra_libs"
1475- fi
1476-
1477- if test "$gt_cv_have_gettext" = "yes"; then
1478- AC_DEFINE(HAVE_GETTEXT,1,
1479- [Define if the GNU gettext() function is already present or preinstalled.])
1480- GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
1481- [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
1482- if test "$MSGFMT" != "no"; then
1483- glib_save_LIBS="$LIBS"
1484- LIBS="$LIBS $INTLLIBS"
1485- AC_CHECK_FUNCS(dcgettext)
1486- MSGFMT_OPTS=
1487- AC_MSG_CHECKING([if msgfmt accepts -c])
1488- GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
1489-msgid ""
1490-msgstr ""
1491-"Content-Type: text/plain; charset=UTF-8\n"
1492-"Project-Id-Version: test 1.0\n"
1493-"PO-Revision-Date: 2007-02-15 12:01+0100\n"
1494-"Last-Translator: test <foo@bar.xx>\n"
1495-"Language-Team: C <LL@li.org>\n"
1496-"MIME-Version: 1.0\n"
1497-"Content-Transfer-Encoding: 8bit\n"
1498-], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
1499- AC_SUBST(MSGFMT_OPTS)
1500- AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
1501- GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
1502- [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
1503- AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
1504- return _nl_msg_cat_cntr],
1505- [CATOBJEXT=.gmo
1506- DATADIRNAME=share],
1507- [case $host in
1508- *-*-solaris*)
1509- dnl On Solaris, if bind_textdomain_codeset is in libc,
1510- dnl GNU format message catalog is always supported,
1511- dnl since both are added to the libc all together.
1512- dnl Hence, we'd like to go with DATADIRNAME=share and
1513- dnl and CATOBJEXT=.gmo in this case.
1514- AC_CHECK_FUNC(bind_textdomain_codeset,
1515- [CATOBJEXT=.gmo
1516- DATADIRNAME=share],
1517- [CATOBJEXT=.mo
1518- DATADIRNAME=lib])
1519- ;;
1520- *)
1521- CATOBJEXT=.mo
1522- DATADIRNAME=lib
1523- ;;
1524- esac])
1525- LIBS="$glib_save_LIBS"
1526- INSTOBJEXT=.mo
1527- else
1528- gt_cv_have_gettext=no
1529- fi
1530- fi
1531- ])
1532-
1533- if test "$gt_cv_have_gettext" = "yes" ; then
1534- AC_DEFINE(ENABLE_NLS, 1,
1535- [always defined to indicate that i18n is enabled])
1536- fi
1537-
1538- dnl Test whether we really found GNU xgettext.
1539- if test "$XGETTEXT" != ":"; then
1540- dnl If it is not GNU xgettext we define it as : so that the
1541- dnl Makefiles still can work.
1542- if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
1543- : ;
1544- else
1545- AC_MSG_RESULT(
1546- [found xgettext program is not GNU xgettext; ignore it])
1547- XGETTEXT=":"
1548- fi
1549- fi
1550-
1551- # We need to process the po/ directory.
1552- POSUB=po
1553-
1554- AC_OUTPUT_COMMANDS(
1555- [case "$CONFIG_FILES" in *po/Makefile.in*)
1556- sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
1557- esac])
1558-
1559- dnl These rules are solely for the distribution goal. While doing this
1560- dnl we only have to keep exactly one list of the available catalogs
1561- dnl in configure.in.
1562- for lang in $ALL_LINGUAS; do
1563- GMOFILES="$GMOFILES $lang.gmo"
1564- POFILES="$POFILES $lang.po"
1565- done
1566-
1567- dnl Make all variables we use known to autoconf.
1568- AC_SUBST(CATALOGS)
1569- AC_SUBST(CATOBJEXT)
1570- AC_SUBST(DATADIRNAME)
1571- AC_SUBST(GMOFILES)
1572- AC_SUBST(INSTOBJEXT)
1573- AC_SUBST(INTLLIBS)
1574- AC_SUBST(PO_IN_DATADIR_TRUE)
1575- AC_SUBST(PO_IN_DATADIR_FALSE)
1576- AC_SUBST(POFILES)
1577- AC_SUBST(POSUB)
1578- ])
1579-
1580-# AM_GLIB_GNU_GETTEXT
1581-# -------------------
1582-# Do checks necessary for use of gettext. If a suitable implementation
1583-# of gettext is found in either in libintl or in the C library,
1584-# it will set INTLLIBS to the libraries needed for use of gettext
1585-# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
1586-# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
1587-# on various variables needed by the Makefile.in.in installed by
1588-# glib-gettextize.
1589-dnl
1590-glib_DEFUN([GLIB_GNU_GETTEXT],
1591- [AC_REQUIRE([AC_PROG_CC])dnl
1592- AC_REQUIRE([AC_HEADER_STDC])dnl
1593-
1594- GLIB_LC_MESSAGES
1595- GLIB_WITH_NLS
1596-
1597- if test "$gt_cv_have_gettext" = "yes"; then
1598- if test "x$ALL_LINGUAS" = "x"; then
1599- LINGUAS=
1600- else
1601- AC_MSG_CHECKING(for catalogs to be installed)
1602- NEW_LINGUAS=
1603- for presentlang in $ALL_LINGUAS; do
1604- useit=no
1605- if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
1606- desiredlanguages="$LINGUAS"
1607- else
1608- desiredlanguages="$ALL_LINGUAS"
1609- fi
1610- for desiredlang in $desiredlanguages; do
1611- # Use the presentlang catalog if desiredlang is
1612- # a. equal to presentlang, or
1613- # b. a variant of presentlang (because in this case,
1614- # presentlang can be used as a fallback for messages
1615- # which are not translated in the desiredlang catalog).
1616- case "$desiredlang" in
1617- "$presentlang"*) useit=yes;;
1618- esac
1619- done
1620- if test $useit = yes; then
1621- NEW_LINGUAS="$NEW_LINGUAS $presentlang"
1622- fi
1623- done
1624- LINGUAS=$NEW_LINGUAS
1625- AC_MSG_RESULT($LINGUAS)
1626- fi
1627-
1628- dnl Construct list of names of catalog files to be constructed.
1629- if test -n "$LINGUAS"; then
1630- for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
1631- fi
1632- fi
1633-
1634- dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
1635- dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
1636- dnl Try to locate is.
1637- MKINSTALLDIRS=
1638- if test -n "$ac_aux_dir"; then
1639- MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
1640- fi
1641- if test -z "$MKINSTALLDIRS"; then
1642- MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
1643- fi
1644- AC_SUBST(MKINSTALLDIRS)
1645-
1646- dnl Generate list of files to be processed by xgettext which will
1647- dnl be included in po/Makefile.
1648- test -d po || mkdir po
1649- if test "x$srcdir" != "x."; then
1650- if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
1651- posrcprefix="$srcdir/"
1652- else
1653- posrcprefix="../$srcdir/"
1654- fi
1655- else
1656- posrcprefix="../"
1657- fi
1658- rm -f po/POTFILES
1659- sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
1660- < $srcdir/po/POTFILES.in > po/POTFILES
1661- ])
1662-
1663-# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
1664-# -------------------------------
1665-# Define VARIABLE to the location where catalog files will
1666-# be installed by po/Makefile.
1667-glib_DEFUN([GLIB_DEFINE_LOCALEDIR],
1668-[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
1669-glib_save_prefix="$prefix"
1670-glib_save_exec_prefix="$exec_prefix"
1671-glib_save_datarootdir="$datarootdir"
1672-test "x$prefix" = xNONE && prefix=$ac_default_prefix
1673-test "x$exec_prefix" = xNONE && exec_prefix=$prefix
1674-datarootdir=`eval echo "${datarootdir}"`
1675-if test "x$CATOBJEXT" = "x.mo" ; then
1676- localedir=`eval echo "${libdir}/locale"`
1677-else
1678- localedir=`eval echo "${datadir}/locale"`
1679-fi
1680-prefix="$glib_save_prefix"
1681-exec_prefix="$glib_save_exec_prefix"
1682-datarootdir="$glib_save_datarootdir"
1683-AC_DEFINE_UNQUOTED($1, "$localedir",
1684- [Define the location where the catalogs will be installed])
1685-])
1686-
1687-dnl
1688-dnl Now the definitions that aclocal will find
1689-dnl
1690-ifdef(glib_configure_in,[],[
1691-AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
1692-AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
1693-])dnl
1694-
1695-# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
1696-#
1697-# Create a temporary file with TEST-FILE as its contents and pass the
1698-# file name to PROGRAM. Perform ACTION-IF-PASS if PROGRAM exits with
1699-# 0 and perform ACTION-IF-FAIL for any other exit status.
1700-AC_DEFUN([GLIB_RUN_PROG],
1701-[cat >conftest.foo <<_ACEOF
1702-$2
1703-_ACEOF
1704-if AC_RUN_LOG([$1 conftest.foo]); then
1705- m4_ifval([$3], [$3], [:])
1706-m4_ifvaln([$4], [else $4])dnl
1707-echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
1708-sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
1709-fi])
1710-
1711-
1712-dnl GNOME_COMPILE_WARNINGS
1713-dnl Turn on many useful compiler warnings
1714-dnl For now, only works on GCC
1715-AC_DEFUN([GNOME_COMPILE_WARNINGS],[
1716- dnl ******************************
1717- dnl More compiler warnings
1718- dnl ******************************
1719-
1720- AC_ARG_ENABLE(compile-warnings,
1721- AC_HELP_STRING([--enable-compile-warnings=@<:@no/minimum/yes/maximum/error@:>@],
1722- [Turn on compiler warnings]),,
1723- [enable_compile_warnings="m4_default([$1],[yes])"])
1724-
1725- warnCFLAGS=
1726- if test "x$GCC" != xyes; then
1727- enable_compile_warnings=no
1728- fi
1729-
1730- warning_flags=
1731- realsave_CFLAGS="$CFLAGS"
1732-
1733- case "$enable_compile_warnings" in
1734- no)
1735- warning_flags=
1736- ;;
1737- minimum)
1738- warning_flags="-Wall"
1739- ;;
1740- yes)
1741- warning_flags="-Wall -Wmissing-prototypes"
1742- ;;
1743- maximum|error)
1744- warning_flags="-Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith"
1745- CFLAGS="$warning_flags $CFLAGS"
1746- for option in -Wno-sign-compare; do
1747- SAVE_CFLAGS="$CFLAGS"
1748- CFLAGS="$CFLAGS $option"
1749- AC_MSG_CHECKING([whether gcc understands $option])
1750- AC_TRY_COMPILE([], [],
1751- has_option=yes,
1752- has_option=no,)
1753- CFLAGS="$SAVE_CFLAGS"
1754- AC_MSG_RESULT($has_option)
1755- if test $has_option = yes; then
1756- warning_flags="$warning_flags $option"
1757- fi
1758- unset has_option
1759- unset SAVE_CFLAGS
1760- done
1761- unset option
1762- if test "$enable_compile_warnings" = "error" ; then
1763- warning_flags="$warning_flags -Werror"
1764- fi
1765- ;;
1766- *)
1767- AC_MSG_ERROR(Unknown argument '$enable_compile_warnings' to --enable-compile-warnings)
1768- ;;
1769- esac
1770- CFLAGS="$realsave_CFLAGS"
1771- AC_MSG_CHECKING(what warning flags to pass to the C compiler)
1772- AC_MSG_RESULT($warning_flags)
1773-
1774- AC_ARG_ENABLE(iso-c,
1775- AC_HELP_STRING([--enable-iso-c],
1776- [Try to warn if code is not ISO C ]),,
1777- [enable_iso_c=no])
1778-
1779- AC_MSG_CHECKING(what language compliance flags to pass to the C compiler)
1780- complCFLAGS=
1781- if test "x$enable_iso_c" != "xno"; then
1782- if test "x$GCC" = "xyes"; then
1783- case " $CFLAGS " in
1784- *[\ \ ]-ansi[\ \ ]*) ;;
1785- *) complCFLAGS="$complCFLAGS -ansi" ;;
1786- esac
1787- case " $CFLAGS " in
1788- *[\ \ ]-pedantic[\ \ ]*) ;;
1789- *) complCFLAGS="$complCFLAGS -pedantic" ;;
1790- esac
1791- fi
1792- fi
1793- AC_MSG_RESULT($complCFLAGS)
1794-
1795- WARN_CFLAGS="$warning_flags $complCFLAGS"
1796- AC_SUBST(WARN_CFLAGS)
1797-])
1798-
1799-dnl For C++, do basically the same thing.
1800-
1801-AC_DEFUN([GNOME_CXX_WARNINGS],[
1802- AC_ARG_ENABLE(cxx-warnings,
1803- AC_HELP_STRING([--enable-cxx-warnings=@<:@no/minimum/yes@:>@]
1804- [Turn on compiler warnings.]),,
1805- [enable_cxx_warnings="m4_default([$1],[minimum])"])
1806-
1807- AC_MSG_CHECKING(what warning flags to pass to the C++ compiler)
1808- warnCXXFLAGS=
1809- if test "x$GXX" != xyes; then
1810- enable_cxx_warnings=no
1811- fi
1812- if test "x$enable_cxx_warnings" != "xno"; then
1813- if test "x$GXX" = "xyes"; then
1814- case " $CXXFLAGS " in
1815- *[\ \ ]-Wall[\ \ ]*) ;;
1816- *) warnCXXFLAGS="-Wall -Wno-unused" ;;
1817- esac
1818-
1819- ## -W is not all that useful. And it cannot be controlled
1820- ## with individual -Wno-xxx flags, unlike -Wall
1821- if test "x$enable_cxx_warnings" = "xyes"; then
1822- warnCXXFLAGS="$warnCXXFLAGS -Wshadow -Woverloaded-virtual"
1823- fi
1824- fi
1825- fi
1826- AC_MSG_RESULT($warnCXXFLAGS)
1827-
1828- AC_ARG_ENABLE(iso-cxx,
1829- AC_HELP_STRING([--enable-iso-cxx],
1830- [Try to warn if code is not ISO C++ ]),,
1831- [enable_iso_cxx=no])
1832-
1833- AC_MSG_CHECKING(what language compliance flags to pass to the C++ compiler)
1834- complCXXFLAGS=
1835- if test "x$enable_iso_cxx" != "xno"; then
1836- if test "x$GXX" = "xyes"; then
1837- case " $CXXFLAGS " in
1838- *[\ \ ]-ansi[\ \ ]*) ;;
1839- *) complCXXFLAGS="$complCXXFLAGS -ansi" ;;
1840- esac
1841-
1842- case " $CXXFLAGS " in
1843- *[\ \ ]-pedantic[\ \ ]*) ;;
1844- *) complCXXFLAGS="$complCXXFLAGS -pedantic" ;;
1845- esac
1846- fi
1847- fi
1848- AC_MSG_RESULT($complCXXFLAGS)
1849-
1850- WARN_CXXFLAGS="$CXXFLAGS $warnCXXFLAGS $complCXXFLAGS"
1851- AC_SUBST(WARN_CXXFLAGS)
1852-])
1853-
1854-# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
1855-
1856-# serial 52 AC_PROG_LIBTOOL
1857-
1858-
1859-# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
1860-# -----------------------------------------------------------
1861-# If this macro is not defined by Autoconf, define it here.
1862-m4_ifdef([AC_PROVIDE_IFELSE],
1863- [],
1864- [m4_define([AC_PROVIDE_IFELSE],
1865- [m4_ifdef([AC_PROVIDE_$1],
1866- [$2], [$3])])])
1867-
1868-
1869-# AC_PROG_LIBTOOL
1870-# ---------------
1871-AC_DEFUN([AC_PROG_LIBTOOL],
1872-[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
1873-dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
1874-dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
1875- AC_PROVIDE_IFELSE([AC_PROG_CXX],
1876- [AC_LIBTOOL_CXX],
1877- [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
1878- ])])
1879-dnl And a similar setup for Fortran 77 support
1880- AC_PROVIDE_IFELSE([AC_PROG_F77],
1881- [AC_LIBTOOL_F77],
1882- [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
1883-])])
1884-
1885-dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
1886-dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
1887-dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
1888- AC_PROVIDE_IFELSE([AC_PROG_GCJ],
1889- [AC_LIBTOOL_GCJ],
1890- [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
1891- [AC_LIBTOOL_GCJ],
1892- [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
1893- [AC_LIBTOOL_GCJ],
1894- [ifdef([AC_PROG_GCJ],
1895- [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
1896- ifdef([A][M_PROG_GCJ],
1897- [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
1898- ifdef([LT_AC_PROG_GCJ],
1899- [define([LT_AC_PROG_GCJ],
1900- defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
1901-])])# AC_PROG_LIBTOOL
1902-
1903-
1904-# _AC_PROG_LIBTOOL
1905-# ----------------
1906-AC_DEFUN([_AC_PROG_LIBTOOL],
1907-[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
1908-AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
1909-AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
1910-AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
1911-
1912-# This can be used to rebuild libtool when needed
1913-LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
1914-
1915-# Always use our own libtool.
1916-LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1917-AC_SUBST(LIBTOOL)dnl
1918-
1919-# Prevent multiple expansion
1920-define([AC_PROG_LIBTOOL], [])
1921-])# _AC_PROG_LIBTOOL
1922-
1923-
1924-# AC_LIBTOOL_SETUP
1925-# ----------------
1926-AC_DEFUN([AC_LIBTOOL_SETUP],
1927-[AC_PREREQ(2.50)dnl
1928-AC_REQUIRE([AC_ENABLE_SHARED])dnl
1929-AC_REQUIRE([AC_ENABLE_STATIC])dnl
1930-AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
1931-AC_REQUIRE([AC_CANONICAL_HOST])dnl
1932-AC_REQUIRE([AC_CANONICAL_BUILD])dnl
1933-AC_REQUIRE([AC_PROG_CC])dnl
1934-AC_REQUIRE([AC_PROG_LD])dnl
1935-AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
1936-AC_REQUIRE([AC_PROG_NM])dnl
1937-
1938-AC_REQUIRE([AC_PROG_LN_S])dnl
1939-AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
1940-# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1941-AC_REQUIRE([AC_OBJEXT])dnl
1942-AC_REQUIRE([AC_EXEEXT])dnl
1943-dnl
1944-AC_LIBTOOL_SYS_MAX_CMD_LEN
1945-AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
1946-AC_LIBTOOL_OBJDIR
1947-
1948-AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1949-_LT_AC_PROG_ECHO_BACKSLASH
1950-
1951-case $host_os in
1952-aix3*)
1953- # AIX sometimes has problems with the GCC collect2 program. For some
1954- # reason, if we set the COLLECT_NAMES environment variable, the problems
1955- # vanish in a puff of smoke.
1956- if test "X${COLLECT_NAMES+set}" != Xset; then
1957- COLLECT_NAMES=
1958- export COLLECT_NAMES
1959- fi
1960- ;;
1961-esac
1962-
1963-# Sed substitution that helps us do robust quoting. It backslashifies
1964-# metacharacters that are still active within double-quoted strings.
1965-Xsed='sed -e 1s/^X//'
1966-[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
1967-
1968-# Same as above, but do not quote variable references.
1969-[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
1970-
1971-# Sed substitution to delay expansion of an escaped shell variable in a
1972-# double_quote_subst'ed string.
1973-delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1974-
1975-# Sed substitution to avoid accidental globbing in evaled expressions
1976-no_glob_subst='s/\*/\\\*/g'
1977-
1978-# Constants:
1979-rm="rm -f"
1980-
1981-# Global variables:
1982-default_ofile=libtool
1983-can_build_shared=yes
1984-
1985-# All known linkers require a `.a' archive for static linking (except MSVC,
1986-# which needs '.lib').
1987-libext=a
1988-ltmain="$ac_aux_dir/ltmain.sh"
1989-ofile="$default_ofile"
1990-with_gnu_ld="$lt_cv_prog_gnu_ld"
1991-
1992-AC_CHECK_TOOL(AR, ar, false)
1993-AC_CHECK_TOOL(RANLIB, ranlib, :)
1994-AC_CHECK_TOOL(STRIP, strip, :)
1995-
1996-old_CC="$CC"
1997-old_CFLAGS="$CFLAGS"
1998-
1999-# Set sane defaults for various variables
2000-test -z "$AR" && AR=ar
2001-test -z "$AR_FLAGS" && AR_FLAGS=cru
2002-test -z "$AS" && AS=as
2003-test -z "$CC" && CC=cc
2004-test -z "$LTCC" && LTCC=$CC
2005-test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
2006-test -z "$DLLTOOL" && DLLTOOL=dlltool
2007-test -z "$LD" && LD=ld
2008-test -z "$LN_S" && LN_S="ln -s"
2009-test -z "$MAGIC_CMD" && MAGIC_CMD=file
2010-test -z "$NM" && NM=nm
2011-test -z "$SED" && SED=sed
2012-test -z "$OBJDUMP" && OBJDUMP=objdump
2013-test -z "$RANLIB" && RANLIB=:
2014-test -z "$STRIP" && STRIP=:
2015-test -z "$ac_objext" && ac_objext=o
2016-
2017-# Determine commands to create old-style static archives.
2018-old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
2019-old_postinstall_cmds='chmod 644 $oldlib'
2020-old_postuninstall_cmds=
2021-
2022-if test -n "$RANLIB"; then
2023- case $host_os in
2024- openbsd*)
2025- old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
2026- ;;
2027- *)
2028- old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
2029- ;;
2030- esac
2031- old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
2032-fi
2033-
2034-_LT_CC_BASENAME([$compiler])
2035-
2036-# Only perform the check for file, if the check method requires it
2037-case $deplibs_check_method in
2038-file_magic*)
2039- if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2040- AC_PATH_MAGIC
2041- fi
2042- ;;
2043-esac
2044-
2045-_LT_REQUIRED_DARWIN_CHECKS
2046-
2047-AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
2048-AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
2049-enable_win32_dll=yes, enable_win32_dll=no)
2050-
2051-AC_ARG_ENABLE([libtool-lock],
2052- [AC_HELP_STRING([--disable-libtool-lock],
2053- [avoid locking (might break parallel builds)])])
2054-test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
2055-
2056-AC_ARG_WITH([pic],
2057- [AC_HELP_STRING([--with-pic],
2058- [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
2059- [pic_mode="$withval"],
2060- [pic_mode=default])
2061-test -z "$pic_mode" && pic_mode=default
2062-
2063-# Use C for the default configuration in the libtool script
2064-tagname=
2065-AC_LIBTOOL_LANG_C_CONFIG
2066-_LT_AC_TAGCONFIG
2067-])# AC_LIBTOOL_SETUP
2068-
2069-
2070-# _LT_AC_SYS_COMPILER
2071-# -------------------
2072-AC_DEFUN([_LT_AC_SYS_COMPILER],
2073-[AC_REQUIRE([AC_PROG_CC])dnl
2074-
2075-# If no C compiler was specified, use CC.
2076-LTCC=${LTCC-"$CC"}
2077-
2078-# If no C compiler flags were specified, use CFLAGS.
2079-LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
2080-
2081-# Allow CC to be a program name with arguments.
2082-compiler=$CC
2083-])# _LT_AC_SYS_COMPILER
2084-
2085-
2086-# _LT_CC_BASENAME(CC)
2087-# -------------------
2088-# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
2089-AC_DEFUN([_LT_CC_BASENAME],
2090-[for cc_temp in $1""; do
2091- case $cc_temp in
2092- compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
2093- distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
2094- \-*) ;;
2095- *) break;;
2096- esac
2097-done
2098-cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
2099-])
2100-
2101-
2102-# _LT_COMPILER_BOILERPLATE
2103-# ------------------------
2104-# Check for compiler boilerplate output or warnings with
2105-# the simple compiler test code.
2106-AC_DEFUN([_LT_COMPILER_BOILERPLATE],
2107-[AC_REQUIRE([LT_AC_PROG_SED])dnl
2108-ac_outfile=conftest.$ac_objext
2109-echo "$lt_simple_compile_test_code" >conftest.$ac_ext
2110-eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
2111-_lt_compiler_boilerplate=`cat conftest.err`
2112-$rm conftest*
2113-])# _LT_COMPILER_BOILERPLATE
2114-
2115-
2116-# _LT_LINKER_BOILERPLATE
2117-# ----------------------
2118-# Check for linker boilerplate output or warnings with
2119-# the simple link test code.
2120-AC_DEFUN([_LT_LINKER_BOILERPLATE],
2121-[AC_REQUIRE([LT_AC_PROG_SED])dnl
2122-ac_outfile=conftest.$ac_objext
2123-echo "$lt_simple_link_test_code" >conftest.$ac_ext
2124-eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
2125-_lt_linker_boilerplate=`cat conftest.err`
2126-$rm -r conftest*
2127-])# _LT_LINKER_BOILERPLATE
2128-
2129-# _LT_REQUIRED_DARWIN_CHECKS
2130-# --------------------------
2131-# Check for some things on darwin
2132-AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
2133- case $host_os in
2134- rhapsody* | darwin*)
2135- AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
2136- AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
2137-
2138- AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
2139- [lt_cv_apple_cc_single_mod=no
2140- if test -z "${LT_MULTI_MODULE}"; then
2141- # By default we will add the -single_module flag. You can override
2142- # by either setting the environment variable LT_MULTI_MODULE
2143- # non-empty at configure time, or by adding -multi_module to the
2144- # link flags.
2145- echo "int foo(void){return 1;}" > conftest.c
2146- $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
2147- -dynamiclib ${wl}-single_module conftest.c
2148- if test -f libconftest.dylib; then
2149- lt_cv_apple_cc_single_mod=yes
2150- rm -rf libconftest.dylib*
2151- fi
2152- rm conftest.c
2153- fi])
2154- AC_CACHE_CHECK([for -exported_symbols_list linker flag],
2155- [lt_cv_ld_exported_symbols_list],
2156- [lt_cv_ld_exported_symbols_list=no
2157- save_LDFLAGS=$LDFLAGS
2158- echo "_main" > conftest.sym
2159- LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
2160- AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2161- [lt_cv_ld_exported_symbols_list=yes],
2162- [lt_cv_ld_exported_symbols_list=no])
2163- LDFLAGS="$save_LDFLAGS"
2164- ])
2165- case $host_os in
2166- rhapsody* | darwin1.[[0123]])
2167- _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
2168- darwin1.*)
2169- _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
2170- darwin*)
2171- # if running on 10.5 or later, the deployment target defaults
2172- # to the OS version, if on x86, and 10.4, the deployment
2173- # target defaults to 10.4. Don't you love it?
2174- case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
2175- 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
2176- _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
2177- 10.[[012]]*)
2178- _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
2179- 10.*)
2180- _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
2181- esac
2182- ;;
2183- esac
2184- if test "$lt_cv_apple_cc_single_mod" = "yes"; then
2185- _lt_dar_single_mod='$single_module'
2186- fi
2187- if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
2188- _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
2189- else
2190- _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
2191- fi
2192- if test "$DSYMUTIL" != ":"; then
2193- _lt_dsymutil="~$DSYMUTIL \$lib || :"
2194- else
2195- _lt_dsymutil=
2196- fi
2197- ;;
2198- esac
2199-])
2200-
2201-# _LT_AC_SYS_LIBPATH_AIX
2202-# ----------------------
2203-# Links a minimal program and checks the executable
2204-# for the system default hardcoded library path. In most cases,
2205-# this is /usr/lib:/lib, but when the MPI compilers are used
2206-# the location of the communication and MPI libs are included too.
2207-# If we don't find anything, use the default library path according
2208-# to the aix ld manual.
2209-AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
2210-[AC_REQUIRE([LT_AC_PROG_SED])dnl
2211-AC_LINK_IFELSE(AC_LANG_PROGRAM,[
2212-lt_aix_libpath_sed='
2213- /Import File Strings/,/^$/ {
2214- /^0/ {
2215- s/^0 *\(.*\)$/\1/
2216- p
2217- }
2218- }'
2219-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
2220-# Check for a 64-bit object if we didn't find anything.
2221-if test -z "$aix_libpath"; then
2222- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
2223-fi],[])
2224-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
2225-])# _LT_AC_SYS_LIBPATH_AIX
2226-
2227-
2228-# _LT_AC_SHELL_INIT(ARG)
2229-# ----------------------
2230-AC_DEFUN([_LT_AC_SHELL_INIT],
2231-[ifdef([AC_DIVERSION_NOTICE],
2232- [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
2233- [AC_DIVERT_PUSH(NOTICE)])
2234-$1
2235-AC_DIVERT_POP
2236-])# _LT_AC_SHELL_INIT
2237-
2238-
2239-# _LT_AC_PROG_ECHO_BACKSLASH
2240-# --------------------------
2241-# Add some code to the start of the generated configure script which
2242-# will find an echo command which doesn't interpret backslashes.
2243-AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
2244-[_LT_AC_SHELL_INIT([
2245-# Check that we are running under the correct shell.
2246-SHELL=${CONFIG_SHELL-/bin/sh}
2247-
2248-case X$ECHO in
2249-X*--fallback-echo)
2250- # Remove one level of quotation (which was required for Make).
2251- ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
2252- ;;
2253-esac
2254-
2255-echo=${ECHO-echo}
2256-if test "X[$]1" = X--no-reexec; then
2257- # Discard the --no-reexec flag, and continue.
2258- shift
2259-elif test "X[$]1" = X--fallback-echo; then
2260- # Avoid inline document here, it may be left over
2261- :
2262-elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
2263- # Yippee, $echo works!
2264- :
2265-else
2266- # Restart under the correct shell.
2267- exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
2268-fi
2269-
2270-if test "X[$]1" = X--fallback-echo; then
2271- # used as fallback echo
2272- shift
2273- cat <<EOF
2274-[$]*
2275-EOF
2276- exit 0
2277-fi
2278-
2279-# The HP-UX ksh and POSIX shell print the target directory to stdout
2280-# if CDPATH is set.
2281-(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
2282-
2283-if test -z "$ECHO"; then
2284-if test "X${echo_test_string+set}" != Xset; then
2285-# find a string as large as possible, as long as the shell can cope with it
2286- for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
2287- # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
2288- if (echo_test_string=`eval $cmd`) 2>/dev/null &&
2289- echo_test_string=`eval $cmd` &&
2290- (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
2291- then
2292- break
2293- fi
2294- done
2295-fi
2296-
2297-if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
2298- echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
2299- test "X$echo_testing_string" = "X$echo_test_string"; then
2300- :
2301-else
2302- # The Solaris, AIX, and Digital Unix default echo programs unquote
2303- # backslashes. This makes it impossible to quote backslashes using
2304- # echo "$something" | sed 's/\\/\\\\/g'
2305- #
2306- # So, first we look for a working echo in the user's PATH.
2307-
2308- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2309- for dir in $PATH /usr/ucb; do
2310- IFS="$lt_save_ifs"
2311- if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
2312- test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
2313- echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
2314- test "X$echo_testing_string" = "X$echo_test_string"; then
2315- echo="$dir/echo"
2316- break
2317- fi
2318- done
2319- IFS="$lt_save_ifs"
2320-
2321- if test "X$echo" = Xecho; then
2322- # We didn't find a better echo, so look for alternatives.
2323- if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
2324- echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
2325- test "X$echo_testing_string" = "X$echo_test_string"; then
2326- # This shell has a builtin print -r that does the trick.
2327- echo='print -r'
2328- elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
2329- test "X$CONFIG_SHELL" != X/bin/ksh; then
2330- # If we have ksh, try running configure again with it.
2331- ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
2332- export ORIGINAL_CONFIG_SHELL
2333- CONFIG_SHELL=/bin/ksh
2334- export CONFIG_SHELL
2335- exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
2336- else
2337- # Try using printf.
2338- echo='printf %s\n'
2339- if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
2340- echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
2341- test "X$echo_testing_string" = "X$echo_test_string"; then
2342- # Cool, printf works
2343- :
2344- elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
2345- test "X$echo_testing_string" = 'X\t' &&
2346- echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
2347- test "X$echo_testing_string" = "X$echo_test_string"; then
2348- CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
2349- export CONFIG_SHELL
2350- SHELL="$CONFIG_SHELL"
2351- export SHELL
2352- echo="$CONFIG_SHELL [$]0 --fallback-echo"
2353- elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
2354- test "X$echo_testing_string" = 'X\t' &&
2355- echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
2356- test "X$echo_testing_string" = "X$echo_test_string"; then
2357- echo="$CONFIG_SHELL [$]0 --fallback-echo"
2358- else
2359- # maybe with a smaller string...
2360- prev=:
2361-
2362- for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
2363- if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
2364- then
2365- break
2366- fi
2367- prev="$cmd"
2368- done
2369-
2370- if test "$prev" != 'sed 50q "[$]0"'; then
2371- echo_test_string=`eval $prev`
2372- export echo_test_string
2373- exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
2374- else
2375- # Oops. We lost completely, so just stick with echo.
2376- echo=echo
2377- fi
2378- fi
2379- fi
2380- fi
2381-fi
2382-fi
2383-
2384-# Copy echo and quote the copy suitably for passing to libtool from
2385-# the Makefile, instead of quoting the original, which is used later.
2386-ECHO=$echo
2387-if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
2388- ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
2389-fi
2390-
2391-AC_SUBST(ECHO)
2392-])])# _LT_AC_PROG_ECHO_BACKSLASH
2393-
2394-
2395-# _LT_AC_LOCK
2396-# -----------
2397-AC_DEFUN([_LT_AC_LOCK],
2398-[AC_ARG_ENABLE([libtool-lock],
2399- [AC_HELP_STRING([--disable-libtool-lock],
2400- [avoid locking (might break parallel builds)])])
2401-test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
2402-
2403-# Some flags need to be propagated to the compiler or linker for good
2404-# libtool support.
2405-case $host in
2406-ia64-*-hpux*)
2407- # Find out which ABI we are using.
2408- echo 'int i;' > conftest.$ac_ext
2409- if AC_TRY_EVAL(ac_compile); then
2410- case `/usr/bin/file conftest.$ac_objext` in
2411- *ELF-32*)
2412- HPUX_IA64_MODE="32"
2413- ;;
2414- *ELF-64*)
2415- HPUX_IA64_MODE="64"
2416- ;;
2417- esac
2418- fi
2419- rm -rf conftest*
2420- ;;
2421-*-*-irix6*)
2422- # Find out which ABI we are using.
2423- echo '[#]line __oline__ "configure"' > conftest.$ac_ext
2424- if AC_TRY_EVAL(ac_compile); then
2425- if test "$lt_cv_prog_gnu_ld" = yes; then
2426- case `/usr/bin/file conftest.$ac_objext` in
2427- *32-bit*)
2428- LD="${LD-ld} -melf32bsmip"
2429- ;;
2430- *N32*)
2431- LD="${LD-ld} -melf32bmipn32"
2432- ;;
2433- *64-bit*)
2434- LD="${LD-ld} -melf64bmip"
2435- ;;
2436- esac
2437- else
2438- case `/usr/bin/file conftest.$ac_objext` in
2439- *32-bit*)
2440- LD="${LD-ld} -32"
2441- ;;
2442- *N32*)
2443- LD="${LD-ld} -n32"
2444- ;;
2445- *64-bit*)
2446- LD="${LD-ld} -64"
2447- ;;
2448- esac
2449- fi
2450- fi
2451- rm -rf conftest*
2452- ;;
2453-
2454-x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
2455-s390*-*linux*|sparc*-*linux*)
2456- # Find out which ABI we are using.
2457- echo 'int i;' > conftest.$ac_ext
2458- if AC_TRY_EVAL(ac_compile); then
2459- case `/usr/bin/file conftest.o` in
2460- *32-bit*)
2461- case $host in
2462- x86_64-*kfreebsd*-gnu)
2463- LD="${LD-ld} -m elf_i386_fbsd"
2464- ;;
2465- x86_64-*linux*)
2466- LD="${LD-ld} -m elf_i386"
2467- ;;
2468- ppc64-*linux*|powerpc64-*linux*)
2469- LD="${LD-ld} -m elf32ppclinux"
2470- ;;
2471- s390x-*linux*)
2472- LD="${LD-ld} -m elf_s390"
2473- ;;
2474- sparc64-*linux*)
2475- LD="${LD-ld} -m elf32_sparc"
2476- ;;
2477- esac
2478- ;;
2479- *64-bit*)
2480- libsuff=64
2481- case $host in
2482- x86_64-*kfreebsd*-gnu)
2483- LD="${LD-ld} -m elf_x86_64_fbsd"
2484- ;;
2485- x86_64-*linux*)
2486- LD="${LD-ld} -m elf_x86_64"
2487- ;;
2488- ppc*-*linux*|powerpc*-*linux*)
2489- LD="${LD-ld} -m elf64ppc"
2490- ;;
2491- s390*-*linux*)
2492- LD="${LD-ld} -m elf64_s390"
2493- ;;
2494- sparc*-*linux*)
2495- LD="${LD-ld} -m elf64_sparc"
2496- ;;
2497- esac
2498- ;;
2499- esac
2500- fi
2501- rm -rf conftest*
2502- ;;
2503-
2504-*-*-sco3.2v5*)
2505- # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2506- SAVE_CFLAGS="$CFLAGS"
2507- CFLAGS="$CFLAGS -belf"
2508- AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
2509- [AC_LANG_PUSH(C)
2510- AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
2511- AC_LANG_POP])
2512- if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2513- # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2514- CFLAGS="$SAVE_CFLAGS"
2515- fi
2516- ;;
2517-sparc*-*solaris*)
2518- # Find out which ABI we are using.
2519- echo 'int i;' > conftest.$ac_ext
2520- if AC_TRY_EVAL(ac_compile); then
2521- case `/usr/bin/file conftest.o` in
2522- *64-bit*)
2523- case $lt_cv_prog_gnu_ld in
2524- yes*) LD="${LD-ld} -m elf64_sparc" ;;
2525- *)
2526- if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
2527- LD="${LD-ld} -64"
2528- fi
2529- ;;
2530- esac
2531- ;;
2532- esac
2533- fi
2534- rm -rf conftest*
2535- ;;
2536-
2537-AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
2538-[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
2539- AC_CHECK_TOOL(DLLTOOL, dlltool, false)
2540- AC_CHECK_TOOL(AS, as, false)
2541- AC_CHECK_TOOL(OBJDUMP, objdump, false)
2542- ;;
2543- ])
2544-esac
2545-
2546-need_locks="$enable_libtool_lock"
2547-
2548-])# _LT_AC_LOCK
2549-
2550-
2551-# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2552-# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
2553-# ----------------------------------------------------------------
2554-# Check whether the given compiler option works
2555-AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
2556-[AC_REQUIRE([LT_AC_PROG_SED])
2557-AC_CACHE_CHECK([$1], [$2],
2558- [$2=no
2559- ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
2560- echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2561- lt_compiler_flag="$3"
2562- # Insert the option either (1) after the last *FLAGS variable, or
2563- # (2) before a word containing "conftest.", or (3) at the end.
2564- # Note that $ac_compile itself does not contain backslashes and begins
2565- # with a dollar sign (not a hyphen), so the echo should work correctly.
2566- # The option is referenced via a variable to avoid confusing sed.
2567- lt_compile=`echo "$ac_compile" | $SED \
2568- -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2569- -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2570- -e 's:$: $lt_compiler_flag:'`
2571- (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2572- (eval "$lt_compile" 2>conftest.err)
2573- ac_status=$?
2574- cat conftest.err >&AS_MESSAGE_LOG_FD
2575- echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2576- if (exit $ac_status) && test -s "$ac_outfile"; then
2577- # The compiler can only warn and ignore the option if not recognized
2578- # So say no if there are warnings other than the usual output.
2579- $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
2580- $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2581- if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
2582- $2=yes
2583- fi
2584- fi
2585- $rm conftest*
2586-])
2587-
2588-if test x"[$]$2" = xyes; then
2589- ifelse([$5], , :, [$5])
2590-else
2591- ifelse([$6], , :, [$6])
2592-fi
2593-])# AC_LIBTOOL_COMPILER_OPTION
2594-
2595-
2596-# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2597-# [ACTION-SUCCESS], [ACTION-FAILURE])
2598-# ------------------------------------------------------------
2599-# Check whether the given compiler option works
2600-AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
2601-[AC_REQUIRE([LT_AC_PROG_SED])dnl
2602-AC_CACHE_CHECK([$1], [$2],
2603- [$2=no
2604- save_LDFLAGS="$LDFLAGS"
2605- LDFLAGS="$LDFLAGS $3"
2606- echo "$lt_simple_link_test_code" > conftest.$ac_ext
2607- if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
2608- # The linker can only warn and ignore the option if not recognized
2609- # So say no if there are warnings
2610- if test -s conftest.err; then
2611- # Append any errors to the config.log.
2612- cat conftest.err 1>&AS_MESSAGE_LOG_FD
2613- $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
2614- $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2615- if diff conftest.exp conftest.er2 >/dev/null; then
2616- $2=yes
2617- fi
2618- else
2619- $2=yes
2620- fi
2621- fi
2622- $rm -r conftest*
2623- LDFLAGS="$save_LDFLAGS"
2624-])
2625-
2626-if test x"[$]$2" = xyes; then
2627- ifelse([$4], , :, [$4])
2628-else
2629- ifelse([$5], , :, [$5])
2630-fi
2631-])# AC_LIBTOOL_LINKER_OPTION
2632-
2633-
2634-# AC_LIBTOOL_SYS_MAX_CMD_LEN
2635-# --------------------------
2636-AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
2637-[# find the maximum length of command line arguments
2638-AC_MSG_CHECKING([the maximum length of command line arguments])
2639-AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
2640- i=0
2641- teststring="ABCD"
2642-
2643- case $build_os in
2644- msdosdjgpp*)
2645- # On DJGPP, this test can blow up pretty badly due to problems in libc
2646- # (any single argument exceeding 2000 bytes causes a buffer overrun
2647- # during glob expansion). Even if it were fixed, the result of this
2648- # check would be larger than it should be.
2649- lt_cv_sys_max_cmd_len=12288; # 12K is about right
2650- ;;
2651-
2652- gnu*)
2653- # Under GNU Hurd, this test is not required because there is
2654- # no limit to the length of command line arguments.
2655- # Libtool will interpret -1 as no limit whatsoever
2656- lt_cv_sys_max_cmd_len=-1;
2657- ;;
2658-
2659- cygwin* | mingw*)
2660- # On Win9x/ME, this test blows up -- it succeeds, but takes
2661- # about 5 minutes as the teststring grows exponentially.
2662- # Worse, since 9x/ME are not pre-emptively multitasking,
2663- # you end up with a "frozen" computer, even though with patience
2664- # the test eventually succeeds (with a max line length of 256k).
2665- # Instead, let's just punt: use the minimum linelength reported by
2666- # all of the supported platforms: 8192 (on NT/2K/XP).
2667- lt_cv_sys_max_cmd_len=8192;
2668- ;;
2669-
2670- amigaos*)
2671- # On AmigaOS with pdksh, this test takes hours, literally.
2672- # So we just punt and use a minimum line length of 8192.
2673- lt_cv_sys_max_cmd_len=8192;
2674- ;;
2675-
2676- netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
2677- # This has been around since 386BSD, at least. Likely further.
2678- if test -x /sbin/sysctl; then
2679- lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
2680- elif test -x /usr/sbin/sysctl; then
2681- lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
2682- else
2683- lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
2684- fi
2685- # And add a safety zone
2686- lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
2687- lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
2688- ;;
2689-
2690- interix*)
2691- # We know the value 262144 and hardcode it with a safety zone (like BSD)
2692- lt_cv_sys_max_cmd_len=196608
2693- ;;
2694-
2695- osf*)
2696- # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
2697- # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
2698- # nice to cause kernel panics so lets avoid the loop below.
2699- # First set a reasonable default.
2700- lt_cv_sys_max_cmd_len=16384
2701- #
2702- if test -x /sbin/sysconfig; then
2703- case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
2704- *1*) lt_cv_sys_max_cmd_len=-1 ;;
2705- esac
2706- fi
2707- ;;
2708- sco3.2v5*)
2709- lt_cv_sys_max_cmd_len=102400
2710- ;;
2711- sysv5* | sco5v6* | sysv4.2uw2*)
2712- kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
2713- if test -n "$kargmax"; then
2714- lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
2715- else
2716- lt_cv_sys_max_cmd_len=32768
2717- fi
2718- ;;
2719- *)
2720- lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
2721- if test -n "$lt_cv_sys_max_cmd_len"; then
2722- lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
2723- lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
2724- else
2725- SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
2726- while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
2727- = "XX$teststring") >/dev/null 2>&1 &&
2728- new_result=`expr "X$teststring" : ".*" 2>&1` &&
2729- lt_cv_sys_max_cmd_len=$new_result &&
2730- test $i != 17 # 1/2 MB should be enough
2731- do
2732- i=`expr $i + 1`
2733- teststring=$teststring$teststring
2734- done
2735- teststring=
2736- # Add a significant safety factor because C++ compilers can tack on massive
2737- # amounts of additional arguments before passing them to the linker.
2738- # It appears as though 1/2 is a usable value.
2739- lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
2740- fi
2741- ;;
2742- esac
2743-])
2744-if test -n $lt_cv_sys_max_cmd_len ; then
2745- AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
2746-else
2747- AC_MSG_RESULT(none)
2748-fi
2749-])# AC_LIBTOOL_SYS_MAX_CMD_LEN
2750-
2751-
2752-# _LT_AC_CHECK_DLFCN
2753-# ------------------
2754-AC_DEFUN([_LT_AC_CHECK_DLFCN],
2755-[AC_CHECK_HEADERS(dlfcn.h)dnl
2756-])# _LT_AC_CHECK_DLFCN
2757-
2758-
2759-# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
2760-# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
2761-# ---------------------------------------------------------------------
2762-AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
2763-[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
2764-if test "$cross_compiling" = yes; then :
2765- [$4]
2766-else
2767- lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
2768- lt_status=$lt_dlunknown
2769- cat > conftest.$ac_ext <<EOF
2770-[#line __oline__ "configure"
2771-#include "confdefs.h"
2772-
2773-#if HAVE_DLFCN_H
2774-#include <dlfcn.h>
2775-#endif
2776-
2777-#include <stdio.h>
2778-
2779-#ifdef RTLD_GLOBAL
2780-# define LT_DLGLOBAL RTLD_GLOBAL
2781-#else
2782-# ifdef DL_GLOBAL
2783-# define LT_DLGLOBAL DL_GLOBAL
2784-# else
2785-# define LT_DLGLOBAL 0
2786-# endif
2787-#endif
2788-
2789-/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
2790- find out it does not work in some platform. */
2791-#ifndef LT_DLLAZY_OR_NOW
2792-# ifdef RTLD_LAZY
2793-# define LT_DLLAZY_OR_NOW RTLD_LAZY
2794-# else
2795-# ifdef DL_LAZY
2796-# define LT_DLLAZY_OR_NOW DL_LAZY
2797-# else
2798-# ifdef RTLD_NOW
2799-# define LT_DLLAZY_OR_NOW RTLD_NOW
2800-# else
2801-# ifdef DL_NOW
2802-# define LT_DLLAZY_OR_NOW DL_NOW
2803-# else
2804-# define LT_DLLAZY_OR_NOW 0
2805-# endif
2806-# endif
2807-# endif
2808-# endif
2809-#endif
2810-
2811-#ifdef __cplusplus
2812-extern "C" void exit (int);
2813-#endif
2814-
2815-void fnord() { int i=42;}
2816-int main ()
2817-{
2818- void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
2819- int status = $lt_dlunknown;
2820-
2821- if (self)
2822- {
2823- if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
2824- else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
2825- /* dlclose (self); */
2826- }
2827- else
2828- puts (dlerror ());
2829-
2830- exit (status);
2831-}]
2832-EOF
2833- if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
2834- (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
2835- lt_status=$?
2836- case x$lt_status in
2837- x$lt_dlno_uscore) $1 ;;
2838- x$lt_dlneed_uscore) $2 ;;
2839- x$lt_dlunknown|x*) $3 ;;
2840- esac
2841- else :
2842- # compilation failed
2843- $3
2844- fi
2845-fi
2846-rm -fr conftest*
2847-])# _LT_AC_TRY_DLOPEN_SELF
2848-
2849-
2850-# AC_LIBTOOL_DLOPEN_SELF
2851-# ----------------------
2852-AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
2853-[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
2854-if test "x$enable_dlopen" != xyes; then
2855- enable_dlopen=unknown
2856- enable_dlopen_self=unknown
2857- enable_dlopen_self_static=unknown
2858-else
2859- lt_cv_dlopen=no
2860- lt_cv_dlopen_libs=
2861-
2862- case $host_os in
2863- beos*)
2864- lt_cv_dlopen="load_add_on"
2865- lt_cv_dlopen_libs=
2866- lt_cv_dlopen_self=yes
2867- ;;
2868-
2869- mingw* | pw32*)
2870- lt_cv_dlopen="LoadLibrary"
2871- lt_cv_dlopen_libs=
2872- ;;
2873-
2874- cygwin*)
2875- lt_cv_dlopen="dlopen"
2876- lt_cv_dlopen_libs=
2877- ;;
2878-
2879- darwin*)
2880- # if libdl is installed we need to link against it
2881- AC_CHECK_LIB([dl], [dlopen],
2882- [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
2883- lt_cv_dlopen="dyld"
2884- lt_cv_dlopen_libs=
2885- lt_cv_dlopen_self=yes
2886- ])
2887- ;;
2888-
2889- *)
2890- AC_CHECK_FUNC([shl_load],
2891- [lt_cv_dlopen="shl_load"],
2892- [AC_CHECK_LIB([dld], [shl_load],
2893- [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
2894- [AC_CHECK_FUNC([dlopen],
2895- [lt_cv_dlopen="dlopen"],
2896- [AC_CHECK_LIB([dl], [dlopen],
2897- [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
2898- [AC_CHECK_LIB([svld], [dlopen],
2899- [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
2900- [AC_CHECK_LIB([dld], [dld_link],
2901- [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
2902- ])
2903- ])
2904- ])
2905- ])
2906- ])
2907- ;;
2908- esac
2909-
2910- if test "x$lt_cv_dlopen" != xno; then
2911- enable_dlopen=yes
2912- else
2913- enable_dlopen=no
2914- fi
2915-
2916- case $lt_cv_dlopen in
2917- dlopen)
2918- save_CPPFLAGS="$CPPFLAGS"
2919- test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
2920-
2921- save_LDFLAGS="$LDFLAGS"
2922- wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
2923-
2924- save_LIBS="$LIBS"
2925- LIBS="$lt_cv_dlopen_libs $LIBS"
2926-
2927- AC_CACHE_CHECK([whether a program can dlopen itself],
2928- lt_cv_dlopen_self, [dnl
2929- _LT_AC_TRY_DLOPEN_SELF(
2930- lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
2931- lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
2932- ])
2933-
2934- if test "x$lt_cv_dlopen_self" = xyes; then
2935- wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
2936- AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
2937- lt_cv_dlopen_self_static, [dnl
2938- _LT_AC_TRY_DLOPEN_SELF(
2939- lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
2940- lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
2941- ])
2942- fi
2943-
2944- CPPFLAGS="$save_CPPFLAGS"
2945- LDFLAGS="$save_LDFLAGS"
2946- LIBS="$save_LIBS"
2947- ;;
2948- esac
2949-
2950- case $lt_cv_dlopen_self in
2951- yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
2952- *) enable_dlopen_self=unknown ;;
2953- esac
2954-
2955- case $lt_cv_dlopen_self_static in
2956- yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
2957- *) enable_dlopen_self_static=unknown ;;
2958- esac
2959-fi
2960-])# AC_LIBTOOL_DLOPEN_SELF
2961-
2962-
2963-# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
2964-# ---------------------------------
2965-# Check to see if options -c and -o are simultaneously supported by compiler
2966-AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
2967-[AC_REQUIRE([LT_AC_PROG_SED])dnl
2968-AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
2969-AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
2970- [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
2971- [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
2972- $rm -r conftest 2>/dev/null
2973- mkdir conftest
2974- cd conftest
2975- mkdir out
2976- echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2977-
2978- lt_compiler_flag="-o out/conftest2.$ac_objext"
2979- # Insert the option either (1) after the last *FLAGS variable, or
2980- # (2) before a word containing "conftest.", or (3) at the end.
2981- # Note that $ac_compile itself does not contain backslashes and begins
2982- # with a dollar sign (not a hyphen), so the echo should work correctly.
2983- lt_compile=`echo "$ac_compile" | $SED \
2984- -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2985- -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2986- -e 's:$: $lt_compiler_flag:'`
2987- (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2988- (eval "$lt_compile" 2>out/conftest.err)
2989- ac_status=$?
2990- cat out/conftest.err >&AS_MESSAGE_LOG_FD
2991- echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2992- if (exit $ac_status) && test -s out/conftest2.$ac_objext
2993- then
2994- # The compiler can only warn and ignore the option if not recognized
2995- # So say no if there are warnings
2996- $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
2997- $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
2998- if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
2999- _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
3000- fi
3001- fi
3002- chmod u+w . 2>&AS_MESSAGE_LOG_FD
3003- $rm conftest*
3004- # SGI C++ compiler will create directory out/ii_files/ for
3005- # template instantiation
3006- test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
3007- $rm out/* && rmdir out
3008- cd ..
3009- rmdir conftest
3010- $rm conftest*
3011-])
3012-])# AC_LIBTOOL_PROG_CC_C_O
3013-
3014-
3015-# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
3016-# -----------------------------------------
3017-# Check to see if we can do hard links to lock some files if needed
3018-AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
3019-[AC_REQUIRE([_LT_AC_LOCK])dnl
3020-
3021-hard_links="nottested"
3022-if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
3023- # do not overwrite the value of need_locks provided by the user
3024- AC_MSG_CHECKING([if we can lock with hard links])
3025- hard_links=yes
3026- $rm conftest*
3027- ln conftest.a conftest.b 2>/dev/null && hard_links=no
3028- touch conftest.a
3029- ln conftest.a conftest.b 2>&5 || hard_links=no
3030- ln conftest.a conftest.b 2>/dev/null && hard_links=no
3031- AC_MSG_RESULT([$hard_links])
3032- if test "$hard_links" = no; then
3033- AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
3034- need_locks=warn
3035- fi
3036-else
3037- need_locks=no
3038-fi
3039-])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
3040-
3041-
3042-# AC_LIBTOOL_OBJDIR
3043-# -----------------
3044-AC_DEFUN([AC_LIBTOOL_OBJDIR],
3045-[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
3046-[rm -f .libs 2>/dev/null
3047-mkdir .libs 2>/dev/null
3048-if test -d .libs; then
3049- lt_cv_objdir=.libs
3050-else
3051- # MS-DOS does not allow filenames that begin with a dot.
3052- lt_cv_objdir=_libs
3053-fi
3054-rmdir .libs 2>/dev/null])
3055-objdir=$lt_cv_objdir
3056-])# AC_LIBTOOL_OBJDIR
3057-
3058-
3059-# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
3060-# ----------------------------------------------
3061-# Check hardcoding attributes.
3062-AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
3063-[AC_MSG_CHECKING([how to hardcode library paths into programs])
3064-_LT_AC_TAGVAR(hardcode_action, $1)=
3065-if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
3066- test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
3067- test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
3068-
3069- # We can hardcode non-existant directories.
3070- if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
3071- # If the only mechanism to avoid hardcoding is shlibpath_var, we
3072- # have to relink, otherwise we might link with an installed library
3073- # when we should be linking with a yet-to-be-installed one
3074- ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
3075- test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
3076- # Linking always hardcodes the temporary library directory.
3077- _LT_AC_TAGVAR(hardcode_action, $1)=relink
3078- else
3079- # We can link without hardcoding, and we can hardcode nonexisting dirs.
3080- _LT_AC_TAGVAR(hardcode_action, $1)=immediate
3081- fi
3082-else
3083- # We cannot hardcode anything, or else we can only hardcode existing
3084- # directories.
3085- _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
3086-fi
3087-AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
3088-
3089-if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
3090- # Fast installation is not supported
3091- enable_fast_install=no
3092-elif test "$shlibpath_overrides_runpath" = yes ||
3093- test "$enable_shared" = no; then
3094- # Fast installation is not necessary
3095- enable_fast_install=needless
3096-fi
3097-])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
3098-
3099-
3100-# AC_LIBTOOL_SYS_LIB_STRIP
3101-# ------------------------
3102-AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
3103-[striplib=
3104-old_striplib=
3105-AC_MSG_CHECKING([whether stripping libraries is possible])
3106-if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
3107- test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
3108- test -z "$striplib" && striplib="$STRIP --strip-unneeded"
3109- AC_MSG_RESULT([yes])
3110-else
3111-# FIXME - insert some real tests, host_os isn't really good enough
3112- case $host_os in
3113- darwin*)
3114- if test -n "$STRIP" ; then
3115- striplib="$STRIP -x"
3116- old_striplib="$STRIP -S"
3117- AC_MSG_RESULT([yes])
3118- else
3119- AC_MSG_RESULT([no])
3120-fi
3121- ;;
3122- *)
3123- AC_MSG_RESULT([no])
3124- ;;
3125- esac
3126-fi
3127-])# AC_LIBTOOL_SYS_LIB_STRIP
3128-
3129-
3130-# AC_LIBTOOL_SYS_DYNAMIC_LINKER
3131-# -----------------------------
3132-# PORTME Fill in your ld.so characteristics
3133-AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
3134-[AC_REQUIRE([LT_AC_PROG_SED])dnl
3135-AC_MSG_CHECKING([dynamic linker characteristics])
3136-library_names_spec=
3137-libname_spec='lib$name'
3138-soname_spec=
3139-shrext_cmds=".so"
3140-postinstall_cmds=
3141-postuninstall_cmds=
3142-finish_cmds=
3143-finish_eval=
3144-shlibpath_var=
3145-shlibpath_overrides_runpath=unknown
3146-version_type=none
3147-dynamic_linker="$host_os ld.so"
3148-sys_lib_dlsearch_path_spec="/lib /usr/lib"
3149-m4_if($1,[],[
3150-if test "$GCC" = yes; then
3151- case $host_os in
3152- darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
3153- *) lt_awk_arg="/^libraries:/" ;;
3154- esac
3155- lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
3156- if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
3157- # if the path contains ";" then we assume it to be the separator
3158- # otherwise default to the standard path separator (i.e. ":") - it is
3159- # assumed that no part of a normal pathname contains ";" but that should
3160- # okay in the real world where ";" in dirpaths is itself problematic.
3161- lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
3162- else
3163- lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
3164- fi
3165- # Ok, now we have the path, separated by spaces, we can step through it
3166- # and add multilib dir if necessary.
3167- lt_tmp_lt_search_path_spec=
3168- lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
3169- for lt_sys_path in $lt_search_path_spec; do
3170- if test -d "$lt_sys_path/$lt_multi_os_dir"; then
3171- lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
3172- else
3173- test -d "$lt_sys_path" && \
3174- lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
3175- fi
3176- done
3177- lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
3178-BEGIN {RS=" "; FS="/|\n";} {
3179- lt_foo="";
3180- lt_count=0;
3181- for (lt_i = NF; lt_i > 0; lt_i--) {
3182- if ($lt_i != "" && $lt_i != ".") {
3183- if ($lt_i == "..") {
3184- lt_count++;
3185- } else {
3186- if (lt_count == 0) {
3187- lt_foo="/" $lt_i lt_foo;
3188- } else {
3189- lt_count--;
3190- }
3191- }
3192- }
3193- }
3194- if (lt_foo != "") { lt_freq[[lt_foo]]++; }
3195- if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
3196-}'`
3197- sys_lib_search_path_spec=`echo $lt_search_path_spec`
3198-else
3199- sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
3200-fi])
3201-need_lib_prefix=unknown
3202-hardcode_into_libs=no
3203-
3204-# when you set need_version to no, make sure it does not cause -set_version
3205-# flags to be left without arguments
3206-need_version=unknown
3207-
3208-case $host_os in
3209-aix3*)
3210- version_type=linux
3211- library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
3212- shlibpath_var=LIBPATH
3213-
3214- # AIX 3 has no versioning support, so we append a major version to the name.
3215- soname_spec='${libname}${release}${shared_ext}$major'
3216- ;;
3217-
3218-aix[[4-9]]*)
3219- version_type=linux
3220- need_lib_prefix=no
3221- need_version=no
3222- hardcode_into_libs=yes
3223- if test "$host_cpu" = ia64; then
3224- # AIX 5 supports IA64
3225- library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
3226- shlibpath_var=LD_LIBRARY_PATH
3227- else
3228- # With GCC up to 2.95.x, collect2 would create an import file
3229- # for dependence libraries. The import file would start with
3230- # the line `#! .'. This would cause the generated library to
3231- # depend on `.', always an invalid library. This was fixed in
3232- # development snapshots of GCC prior to 3.0.
3233- case $host_os in
3234- aix4 | aix4.[[01]] | aix4.[[01]].*)
3235- if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
3236- echo ' yes '
3237- echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
3238- :
3239- else
3240- can_build_shared=no
3241- fi
3242- ;;
3243- esac
3244- # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
3245- # soname into executable. Probably we can add versioning support to
3246- # collect2, so additional links can be useful in future.
3247- if test "$aix_use_runtimelinking" = yes; then
3248- # If using run time linking (on AIX 4.2 or later) use lib<name>.so
3249- # instead of lib<name>.a to let people know that these are not
3250- # typical AIX shared libraries.
3251- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3252- else
3253- # We preserve .a as extension for shared libraries through AIX4.2
3254- # and later when we are not doing run time linking.
3255- library_names_spec='${libname}${release}.a $libname.a'
3256- soname_spec='${libname}${release}${shared_ext}$major'
3257- fi
3258- shlibpath_var=LIBPATH
3259- fi
3260- ;;
3261-
3262-amigaos*)
3263- library_names_spec='$libname.ixlibrary $libname.a'
3264- # Create ${libname}_ixlibrary.a entries in /sys/libs.
3265- finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
3266- ;;
3267-
3268-beos*)
3269- library_names_spec='${libname}${shared_ext}'
3270- dynamic_linker="$host_os ld.so"
3271- shlibpath_var=LIBRARY_PATH
3272- ;;
3273-
3274-bsdi[[45]]*)
3275- version_type=linux
3276- need_version=no
3277- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3278- soname_spec='${libname}${release}${shared_ext}$major'
3279- finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
3280- shlibpath_var=LD_LIBRARY_PATH
3281- sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
3282- sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
3283- # the default ld.so.conf also contains /usr/contrib/lib and
3284- # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
3285- # libtool to hard-code these into programs
3286- ;;
3287-
3288-cygwin* | mingw* | pw32*)
3289- version_type=windows
3290- shrext_cmds=".dll"
3291- need_version=no
3292- need_lib_prefix=no
3293-
3294- case $GCC,$host_os in
3295- yes,cygwin* | yes,mingw* | yes,pw32*)
3296- library_names_spec='$libname.dll.a'
3297- # DLL is installed to $(libdir)/../bin by postinstall_cmds
3298- postinstall_cmds='base_file=`basename \${file}`~
3299- dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
3300- dldir=$destdir/`dirname \$dlpath`~
3301- test -d \$dldir || mkdir -p \$dldir~
3302- $install_prog $dir/$dlname \$dldir/$dlname~
3303- chmod a+x \$dldir/$dlname'
3304- postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
3305- dlpath=$dir/\$dldll~
3306- $rm \$dlpath'
3307- shlibpath_overrides_runpath=yes
3308-
3309- case $host_os in
3310- cygwin*)
3311- # Cygwin DLLs use 'cyg' prefix rather than 'lib'
3312- soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3313- sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
3314- ;;
3315- mingw*)
3316- # MinGW DLLs use traditional 'lib' prefix
3317- soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3318- sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
3319- if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
3320- # It is most probably a Windows format PATH printed by
3321- # mingw gcc, but we are running on Cygwin. Gcc prints its search
3322- # path with ; separators, and with drive letters. We can handle the
3323- # drive letters (cygwin fileutils understands them), so leave them,
3324- # especially as we might pass files found there to a mingw objdump,
3325- # which wouldn't understand a cygwinified path. Ahh.
3326- sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
3327- else
3328- sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
3329- fi
3330- ;;
3331- pw32*)
3332- # pw32 DLLs use 'pw' prefix rather than 'lib'
3333- library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3334- ;;
3335- esac
3336- ;;
3337-
3338- *)
3339- library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
3340- ;;
3341- esac
3342- dynamic_linker='Win32 ld.exe'
3343- # FIXME: first we should search . and the directory the executable is in
3344- shlibpath_var=PATH
3345- ;;
3346-
3347-darwin* | rhapsody*)
3348- dynamic_linker="$host_os dyld"
3349- version_type=darwin
3350- need_lib_prefix=no
3351- need_version=no
3352- library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
3353- soname_spec='${libname}${release}${major}$shared_ext'
3354- shlibpath_overrides_runpath=yes
3355- shlibpath_var=DYLD_LIBRARY_PATH
3356- shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
3357- m4_if([$1], [],[
3358- sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
3359- sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
3360- ;;
3361-
3362-dgux*)
3363- version_type=linux
3364- need_lib_prefix=no
3365- need_version=no
3366- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
3367- soname_spec='${libname}${release}${shared_ext}$major'
3368- shlibpath_var=LD_LIBRARY_PATH
3369- ;;
3370-
3371-freebsd1*)
3372- dynamic_linker=no
3373- ;;
3374-
3375-freebsd* | dragonfly*)
3376- # DragonFly does not have aout. When/if they implement a new
3377- # versioning mechanism, adjust this.
3378- if test -x /usr/bin/objformat; then
3379- objformat=`/usr/bin/objformat`
3380- else
3381- case $host_os in
3382- freebsd[[123]]*) objformat=aout ;;
3383- *) objformat=elf ;;
3384- esac
3385- fi
3386- version_type=freebsd-$objformat
3387- case $version_type in
3388- freebsd-elf*)
3389- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
3390- need_version=no
3391- need_lib_prefix=no
3392- ;;
3393- freebsd-*)
3394- library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
3395- need_version=yes
3396- ;;
3397- esac
3398- shlibpath_var=LD_LIBRARY_PATH
3399- case $host_os in
3400- freebsd2*)
3401- shlibpath_overrides_runpath=yes
3402- ;;
3403- freebsd3.[[01]]* | freebsdelf3.[[01]]*)
3404- shlibpath_overrides_runpath=yes
3405- hardcode_into_libs=yes
3406- ;;
3407- freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
3408- freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
3409- shlibpath_overrides_runpath=no
3410- hardcode_into_libs=yes
3411- ;;
3412- *) # from 4.6 on, and DragonFly
3413- shlibpath_overrides_runpath=yes
3414- hardcode_into_libs=yes
3415- ;;
3416- esac
3417- ;;
3418-
3419-gnu*)
3420- version_type=linux
3421- need_lib_prefix=no
3422- need_version=no
3423- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
3424- soname_spec='${libname}${release}${shared_ext}$major'
3425- shlibpath_var=LD_LIBRARY_PATH
3426- hardcode_into_libs=yes
3427- ;;
3428-
3429-hpux9* | hpux10* | hpux11*)
3430- # Give a soname corresponding to the major version so that dld.sl refuses to
3431- # link against other versions.
3432- version_type=sunos
3433- need_lib_prefix=no
3434- need_version=no
3435- case $host_cpu in
3436- ia64*)
3437- shrext_cmds='.so'
3438- hardcode_into_libs=yes
3439- dynamic_linker="$host_os dld.so"
3440- shlibpath_var=LD_LIBRARY_PATH
3441- shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
3442- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3443- soname_spec='${libname}${release}${shared_ext}$major'
3444- if test "X$HPUX_IA64_MODE" = X32; then
3445- sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
3446- else
3447- sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
3448- fi
3449- sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3450- ;;
3451- hppa*64*)
3452- shrext_cmds='.sl'
3453- hardcode_into_libs=yes
3454- dynamic_linker="$host_os dld.sl"
3455- shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
3456- shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
3457- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3458- soname_spec='${libname}${release}${shared_ext}$major'
3459- sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
3460- sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3461- ;;
3462- *)
3463- shrext_cmds='.sl'
3464- dynamic_linker="$host_os dld.sl"
3465- shlibpath_var=SHLIB_PATH
3466- shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
3467- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3468- soname_spec='${libname}${release}${shared_ext}$major'
3469- ;;
3470- esac
3471- # HP-UX runs *really* slowly unless shared libraries are mode 555.
3472- postinstall_cmds='chmod 555 $lib'
3473- ;;
3474-
3475-interix[[3-9]]*)
3476- version_type=linux
3477- need_lib_prefix=no
3478- need_version=no
3479- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3480- soname_spec='${libname}${release}${shared_ext}$major'
3481- dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
3482- shlibpath_var=LD_LIBRARY_PATH
3483- shlibpath_overrides_runpath=no
3484- hardcode_into_libs=yes
3485- ;;
3486-
3487-irix5* | irix6* | nonstopux*)
3488- case $host_os in
3489- nonstopux*) version_type=nonstopux ;;
3490- *)
3491- if test "$lt_cv_prog_gnu_ld" = yes; then
3492- version_type=linux
3493- else
3494- version_type=irix
3495- fi ;;
3496- esac
3497- need_lib_prefix=no
3498- need_version=no
3499- soname_spec='${libname}${release}${shared_ext}$major'
3500- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
3501- case $host_os in
3502- irix5* | nonstopux*)
3503- libsuff= shlibsuff=
3504- ;;
3505- *)
3506- case $LD in # libtool.m4 will add one of these switches to LD
3507- *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
3508- libsuff= shlibsuff= libmagic=32-bit;;
3509- *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
3510- libsuff=32 shlibsuff=N32 libmagic=N32;;
3511- *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
3512- libsuff=64 shlibsuff=64 libmagic=64-bit;;
3513- *) libsuff= shlibsuff= libmagic=never-match;;
3514- esac
3515- ;;
3516- esac
3517- shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
3518- shlibpath_overrides_runpath=no
3519- sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
3520- sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
3521- hardcode_into_libs=yes
3522- ;;
3523-
3524-# No shared lib support for Linux oldld, aout, or coff.
3525-linux*oldld* | linux*aout* | linux*coff*)
3526- dynamic_linker=no
3527- ;;
3528-
3529-# This must be Linux ELF.
3530-linux* | k*bsd*-gnu)
3531- version_type=linux
3532- need_lib_prefix=no
3533- need_version=no
3534- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3535- soname_spec='${libname}${release}${shared_ext}$major'
3536- finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
3537- shlibpath_var=LD_LIBRARY_PATH
3538- shlibpath_overrides_runpath=no
3539- # This implies no fast_install, which is unacceptable.
3540- # Some rework will be needed to allow for fast_install
3541- # before this can be enabled.
3542- hardcode_into_libs=yes
3543- sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
3544- sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
3545-
3546- # Append ld.so.conf contents to the search path
3547- if test -f /etc/ld.so.conf; then
3548- lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
3549- sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
3550- fi
3551-
3552- # We used to test for /lib/ld.so.1 and disable shared libraries on
3553- # powerpc, because MkLinux only supported shared libraries with the
3554- # GNU dynamic linker. Since this was broken with cross compilers,
3555- # most powerpc-linux boxes support dynamic linking these days and
3556- # people can always --disable-shared, the test was removed, and we
3557- # assume the GNU/Linux dynamic linker is in use.
3558- dynamic_linker='GNU/Linux ld.so'
3559- ;;
3560-
3561-netbsd*)
3562- version_type=sunos
3563- need_lib_prefix=no
3564- need_version=no
3565- if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3566- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3567- finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3568- dynamic_linker='NetBSD (a.out) ld.so'
3569- else
3570- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3571- soname_spec='${libname}${release}${shared_ext}$major'
3572- dynamic_linker='NetBSD ld.elf_so'
3573- fi
3574- shlibpath_var=LD_LIBRARY_PATH
3575- shlibpath_overrides_runpath=yes
3576- hardcode_into_libs=yes
3577- ;;
3578-
3579-newsos6)
3580- version_type=linux
3581- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3582- shlibpath_var=LD_LIBRARY_PATH
3583- shlibpath_overrides_runpath=yes
3584- ;;
3585-
3586-nto-qnx*)
3587- version_type=linux
3588- need_lib_prefix=no
3589- need_version=no
3590- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3591- soname_spec='${libname}${release}${shared_ext}$major'
3592- shlibpath_var=LD_LIBRARY_PATH
3593- shlibpath_overrides_runpath=yes
3594- ;;
3595-
3596-openbsd*)
3597- version_type=sunos
3598- sys_lib_dlsearch_path_spec="/usr/lib"
3599- need_lib_prefix=no
3600- # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
3601- case $host_os in
3602- openbsd3.3 | openbsd3.3.*) need_version=yes ;;
3603- *) need_version=no ;;
3604- esac
3605- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3606- finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3607- shlibpath_var=LD_LIBRARY_PATH
3608- if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3609- case $host_os in
3610- openbsd2.[[89]] | openbsd2.[[89]].*)
3611- shlibpath_overrides_runpath=no
3612- ;;
3613- *)
3614- shlibpath_overrides_runpath=yes
3615- ;;
3616- esac
3617- else
3618- shlibpath_overrides_runpath=yes
3619- fi
3620- ;;
3621-
3622-os2*)
3623- libname_spec='$name'
3624- shrext_cmds=".dll"
3625- need_lib_prefix=no
3626- library_names_spec='$libname${shared_ext} $libname.a'
3627- dynamic_linker='OS/2 ld.exe'
3628- shlibpath_var=LIBPATH
3629- ;;
3630-
3631-osf3* | osf4* | osf5*)
3632- version_type=osf
3633- need_lib_prefix=no
3634- need_version=no
3635- soname_spec='${libname}${release}${shared_ext}$major'
3636- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3637- shlibpath_var=LD_LIBRARY_PATH
3638- sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
3639- sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
3640- ;;
3641-
3642-rdos*)
3643- dynamic_linker=no
3644- ;;
3645-
3646-solaris*)
3647- version_type=linux
3648- need_lib_prefix=no
3649- need_version=no
3650- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3651- soname_spec='${libname}${release}${shared_ext}$major'
3652- shlibpath_var=LD_LIBRARY_PATH
3653- shlibpath_overrides_runpath=yes
3654- hardcode_into_libs=yes
3655- # ldd complains unless libraries are executable
3656- postinstall_cmds='chmod +x $lib'
3657- ;;
3658-
3659-sunos4*)
3660- version_type=sunos
3661- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3662- finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
3663- shlibpath_var=LD_LIBRARY_PATH
3664- shlibpath_overrides_runpath=yes
3665- if test "$with_gnu_ld" = yes; then
3666- need_lib_prefix=no
3667- fi
3668- need_version=yes
3669- ;;
3670-
3671-sysv4 | sysv4.3*)
3672- version_type=linux
3673- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3674- soname_spec='${libname}${release}${shared_ext}$major'
3675- shlibpath_var=LD_LIBRARY_PATH
3676- case $host_vendor in
3677- sni)
3678- shlibpath_overrides_runpath=no
3679- need_lib_prefix=no
3680- export_dynamic_flag_spec='${wl}-Blargedynsym'
3681- runpath_var=LD_RUN_PATH
3682- ;;
3683- siemens)
3684- need_lib_prefix=no
3685- ;;
3686- motorola)
3687- need_lib_prefix=no
3688- need_version=no
3689- shlibpath_overrides_runpath=no
3690- sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
3691- ;;
3692- esac
3693- ;;
3694-
3695-sysv4*MP*)
3696- if test -d /usr/nec ;then
3697- version_type=linux
3698- library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
3699- soname_spec='$libname${shared_ext}.$major'
3700- shlibpath_var=LD_LIBRARY_PATH
3701- fi
3702- ;;
3703-
3704-sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3705- version_type=freebsd-elf
3706- need_lib_prefix=no
3707- need_version=no
3708- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
3709- soname_spec='${libname}${release}${shared_ext}$major'
3710- shlibpath_var=LD_LIBRARY_PATH
3711- hardcode_into_libs=yes
3712- if test "$with_gnu_ld" = yes; then
3713- sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
3714- shlibpath_overrides_runpath=no
3715- else
3716- sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
3717- shlibpath_overrides_runpath=yes
3718- case $host_os in
3719- sco3.2v5*)
3720- sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
3721- ;;
3722- esac
3723- fi
3724- sys_lib_dlsearch_path_spec='/usr/lib'
3725- ;;
3726-
3727-uts4*)
3728- version_type=linux
3729- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3730- soname_spec='${libname}${release}${shared_ext}$major'
3731- shlibpath_var=LD_LIBRARY_PATH
3732- ;;
3733-
3734-*)
3735- dynamic_linker=no
3736- ;;
3737-esac
3738-AC_MSG_RESULT([$dynamic_linker])
3739-test "$dynamic_linker" = no && can_build_shared=no
3740-
3741-AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec],
3742-[lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"])
3743-sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
3744-AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec],
3745-[lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"])
3746-sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
3747-
3748-variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
3749-if test "$GCC" = yes; then
3750- variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
3751-fi
3752-])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
3753-
3754-
3755-# _LT_AC_TAGCONFIG
3756-# ----------------
3757-AC_DEFUN([_LT_AC_TAGCONFIG],
3758-[AC_REQUIRE([LT_AC_PROG_SED])dnl
3759-AC_ARG_WITH([tags],
3760- [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
3761- [include additional configurations @<:@automatic@:>@])],
3762- [tagnames="$withval"])
3763-
3764-if test -f "$ltmain" && test -n "$tagnames"; then
3765- if test ! -f "${ofile}"; then
3766- AC_MSG_WARN([output file `$ofile' does not exist])
3767- fi
3768-
3769- if test -z "$LTCC"; then
3770- eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
3771- if test -z "$LTCC"; then
3772- AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
3773- else
3774- AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
3775- fi
3776- fi
3777- if test -z "$LTCFLAGS"; then
3778- eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
3779- fi
3780-
3781- # Extract list of available tagged configurations in $ofile.
3782- # Note that this assumes the entire list is on one line.
3783- available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
3784-
3785- lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3786- for tagname in $tagnames; do
3787- IFS="$lt_save_ifs"
3788- # Check whether tagname contains only valid characters
3789- case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
3790- "") ;;
3791- *) AC_MSG_ERROR([invalid tag name: $tagname])
3792- ;;
3793- esac
3794-
3795- if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
3796- then
3797- AC_MSG_ERROR([tag name \"$tagname\" already exists])
3798- fi
3799-
3800- # Update the list of available tags.
3801- if test -n "$tagname"; then
3802- echo appending configuration tag \"$tagname\" to $ofile
3803-
3804- case $tagname in
3805- CXX)
3806- if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
3807- ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
3808- (test "X$CXX" != "Xg++"))) ; then
3809- AC_LIBTOOL_LANG_CXX_CONFIG
3810- else
3811- tagname=""
3812- fi
3813- ;;
3814-
3815- F77)
3816- if test -n "$F77" && test "X$F77" != "Xno"; then
3817- AC_LIBTOOL_LANG_F77_CONFIG
3818- else
3819- tagname=""
3820- fi
3821- ;;
3822-
3823- GCJ)
3824- if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
3825- AC_LIBTOOL_LANG_GCJ_CONFIG
3826- else
3827- tagname=""
3828- fi
3829- ;;
3830-
3831- RC)
3832- AC_LIBTOOL_LANG_RC_CONFIG
3833- ;;
3834-
3835- *)
3836- AC_MSG_ERROR([Unsupported tag name: $tagname])
3837- ;;
3838- esac
3839-
3840- # Append the new tag name to the list of available tags.
3841- if test -n "$tagname" ; then
3842- available_tags="$available_tags $tagname"
3843- fi
3844- fi
3845- done
3846- IFS="$lt_save_ifs"
3847-
3848- # Now substitute the updated list of available tags.
3849- if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
3850- mv "${ofile}T" "$ofile"
3851- chmod +x "$ofile"
3852- else
3853- rm -f "${ofile}T"
3854- AC_MSG_ERROR([unable to update list of available tagged configurations.])
3855- fi
3856-fi
3857-])# _LT_AC_TAGCONFIG
3858-
3859-
3860-# AC_LIBTOOL_DLOPEN
3861-# -----------------
3862-# enable checks for dlopen support
3863-AC_DEFUN([AC_LIBTOOL_DLOPEN],
3864- [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
3865-])# AC_LIBTOOL_DLOPEN
3866-
3867-
3868-# AC_LIBTOOL_WIN32_DLL
3869-# --------------------
3870-# declare package support for building win32 DLLs
3871-AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
3872-[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
3873-])# AC_LIBTOOL_WIN32_DLL
3874-
3875-
3876-# AC_ENABLE_SHARED([DEFAULT])
3877-# ---------------------------
3878-# implement the --enable-shared flag
3879-# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3880-AC_DEFUN([AC_ENABLE_SHARED],
3881-[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
3882-AC_ARG_ENABLE([shared],
3883- [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
3884- [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
3885- [p=${PACKAGE-default}
3886- case $enableval in
3887- yes) enable_shared=yes ;;
3888- no) enable_shared=no ;;
3889- *)
3890- enable_shared=no
3891- # Look at the argument we got. We use all the common list separators.
3892- lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3893- for pkg in $enableval; do
3894- IFS="$lt_save_ifs"
3895- if test "X$pkg" = "X$p"; then
3896- enable_shared=yes
3897- fi
3898- done
3899- IFS="$lt_save_ifs"
3900- ;;
3901- esac],
3902- [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
3903-])# AC_ENABLE_SHARED
3904-
3905-
3906-# AC_DISABLE_SHARED
3907-# -----------------
3908-# set the default shared flag to --disable-shared
3909-AC_DEFUN([AC_DISABLE_SHARED],
3910-[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3911-AC_ENABLE_SHARED(no)
3912-])# AC_DISABLE_SHARED
3913-
3914-
3915-# AC_ENABLE_STATIC([DEFAULT])
3916-# ---------------------------
3917-# implement the --enable-static flag
3918-# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3919-AC_DEFUN([AC_ENABLE_STATIC],
3920-[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
3921-AC_ARG_ENABLE([static],
3922- [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
3923- [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
3924- [p=${PACKAGE-default}
3925- case $enableval in
3926- yes) enable_static=yes ;;
3927- no) enable_static=no ;;
3928- *)
3929- enable_static=no
3930- # Look at the argument we got. We use all the common list separators.
3931- lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3932- for pkg in $enableval; do
3933- IFS="$lt_save_ifs"
3934- if test "X$pkg" = "X$p"; then
3935- enable_static=yes
3936- fi
3937- done
3938- IFS="$lt_save_ifs"
3939- ;;
3940- esac],
3941- [enable_static=]AC_ENABLE_STATIC_DEFAULT)
3942-])# AC_ENABLE_STATIC
3943-
3944-
3945-# AC_DISABLE_STATIC
3946-# -----------------
3947-# set the default static flag to --disable-static
3948-AC_DEFUN([AC_DISABLE_STATIC],
3949-[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3950-AC_ENABLE_STATIC(no)
3951-])# AC_DISABLE_STATIC
3952-
3953-
3954-# AC_ENABLE_FAST_INSTALL([DEFAULT])
3955-# ---------------------------------
3956-# implement the --enable-fast-install flag
3957-# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3958-AC_DEFUN([AC_ENABLE_FAST_INSTALL],
3959-[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
3960-AC_ARG_ENABLE([fast-install],
3961- [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
3962- [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
3963- [p=${PACKAGE-default}
3964- case $enableval in
3965- yes) enable_fast_install=yes ;;
3966- no) enable_fast_install=no ;;
3967- *)
3968- enable_fast_install=no
3969- # Look at the argument we got. We use all the common list separators.
3970- lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3971- for pkg in $enableval; do
3972- IFS="$lt_save_ifs"
3973- if test "X$pkg" = "X$p"; then
3974- enable_fast_install=yes
3975- fi
3976- done
3977- IFS="$lt_save_ifs"
3978- ;;
3979- esac],
3980- [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
3981-])# AC_ENABLE_FAST_INSTALL
3982-
3983-
3984-# AC_DISABLE_FAST_INSTALL
3985-# -----------------------
3986-# set the default to --disable-fast-install
3987-AC_DEFUN([AC_DISABLE_FAST_INSTALL],
3988-[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3989-AC_ENABLE_FAST_INSTALL(no)
3990-])# AC_DISABLE_FAST_INSTALL
3991-
3992-
3993-# AC_LIBTOOL_PICMODE([MODE])
3994-# --------------------------
3995-# implement the --with-pic flag
3996-# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
3997-AC_DEFUN([AC_LIBTOOL_PICMODE],
3998-[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3999-pic_mode=ifelse($#,1,$1,default)
4000-])# AC_LIBTOOL_PICMODE
4001-
4002-
4003-# AC_PROG_EGREP
4004-# -------------
4005-# This is predefined starting with Autoconf 2.54, so this conditional
4006-# definition can be removed once we require Autoconf 2.54 or later.
4007-m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
4008-[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
4009- [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4010- then ac_cv_prog_egrep='grep -E'
4011- else ac_cv_prog_egrep='egrep'
4012- fi])
4013- EGREP=$ac_cv_prog_egrep
4014- AC_SUBST([EGREP])
4015-])])
4016-
4017-
4018-# AC_PATH_TOOL_PREFIX
4019-# -------------------
4020-# find a file program which can recognize shared library
4021-AC_DEFUN([AC_PATH_TOOL_PREFIX],
4022-[AC_REQUIRE([AC_PROG_EGREP])dnl
4023-AC_MSG_CHECKING([for $1])
4024-AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
4025-[case $MAGIC_CMD in
4026-[[\\/*] | ?:[\\/]*])
4027- lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4028- ;;
4029-*)
4030- lt_save_MAGIC_CMD="$MAGIC_CMD"
4031- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4032-dnl $ac_dummy forces splitting on constant user-supplied paths.
4033-dnl POSIX.2 word splitting is done only on the output of word expansions,
4034-dnl not every word. This closes a longstanding sh security hole.
4035- ac_dummy="ifelse([$2], , $PATH, [$2])"
4036- for ac_dir in $ac_dummy; do
4037- IFS="$lt_save_ifs"
4038- test -z "$ac_dir" && ac_dir=.
4039- if test -f $ac_dir/$1; then
4040- lt_cv_path_MAGIC_CMD="$ac_dir/$1"
4041- if test -n "$file_magic_test_file"; then
4042- case $deplibs_check_method in
4043- "file_magic "*)
4044- file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
4045- MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4046- if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4047- $EGREP "$file_magic_regex" > /dev/null; then
4048- :
4049- else
4050- cat <<EOF 1>&2
4051-
4052-*** Warning: the command libtool uses to detect shared libraries,
4053-*** $file_magic_cmd, produces output that libtool cannot recognize.
4054-*** The result is that libtool may fail to recognize shared libraries
4055-*** as such. This will affect the creation of libtool libraries that
4056-*** depend on shared libraries, but programs linked with such libtool
4057-*** libraries will work regardless of this problem. Nevertheless, you
4058-*** may want to report the problem to your system manager and/or to
4059-*** bug-libtool@gnu.org
4060-
4061-EOF
4062- fi ;;
4063- esac
4064- fi
4065- break
4066- fi
4067- done
4068- IFS="$lt_save_ifs"
4069- MAGIC_CMD="$lt_save_MAGIC_CMD"
4070- ;;
4071-esac])
4072-MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4073-if test -n "$MAGIC_CMD"; then
4074- AC_MSG_RESULT($MAGIC_CMD)
4075-else
4076- AC_MSG_RESULT(no)
4077-fi
4078-])# AC_PATH_TOOL_PREFIX
4079-
4080-
4081-# AC_PATH_MAGIC
4082-# -------------
4083-# find a file program which can recognize a shared library
4084-AC_DEFUN([AC_PATH_MAGIC],
4085-[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
4086-if test -z "$lt_cv_path_MAGIC_CMD"; then
4087- if test -n "$ac_tool_prefix"; then
4088- AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
4089- else
4090- MAGIC_CMD=:
4091- fi
4092-fi
4093-])# AC_PATH_MAGIC
4094-
4095-
4096-# AC_PROG_LD
4097-# ----------
4098-# find the pathname to the GNU or non-GNU linker
4099-AC_DEFUN([AC_PROG_LD],
4100-[AC_ARG_WITH([gnu-ld],
4101- [AC_HELP_STRING([--with-gnu-ld],
4102- [assume the C compiler uses GNU ld @<:@default=no@:>@])],
4103- [test "$withval" = no || with_gnu_ld=yes],
4104- [with_gnu_ld=no])
4105-AC_REQUIRE([LT_AC_PROG_SED])dnl
4106-AC_REQUIRE([AC_PROG_CC])dnl
4107-AC_REQUIRE([AC_CANONICAL_HOST])dnl
4108-AC_REQUIRE([AC_CANONICAL_BUILD])dnl
4109-ac_prog=ld
4110-if test "$GCC" = yes; then
4111- # Check if gcc -print-prog-name=ld gives a path.
4112- AC_MSG_CHECKING([for ld used by $CC])
4113- case $host in
4114- *-*-mingw*)
4115- # gcc leaves a trailing carriage return which upsets mingw
4116- ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4117- *)
4118- ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4119- esac
4120- case $ac_prog in
4121- # Accept absolute paths.
4122- [[\\/]]* | ?:[[\\/]]*)
4123- re_direlt='/[[^/]][[^/]]*/\.\./'
4124- # Canonicalize the pathname of ld
4125- ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4126- while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4127- ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4128- done
4129- test -z "$LD" && LD="$ac_prog"
4130- ;;
4131- "")
4132- # If it fails, then pretend we aren't using GCC.
4133- ac_prog=ld
4134- ;;
4135- *)
4136- # If it is relative, then search for the first ld in PATH.
4137- with_gnu_ld=unknown
4138- ;;
4139- esac
4140-elif test "$with_gnu_ld" = yes; then
4141- AC_MSG_CHECKING([for GNU ld])
4142-else
4143- AC_MSG_CHECKING([for non-GNU ld])
4144-fi
4145-AC_CACHE_VAL(lt_cv_path_LD,
4146-[if test -z "$LD"; then
4147- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4148- for ac_dir in $PATH; do
4149- IFS="$lt_save_ifs"
4150- test -z "$ac_dir" && ac_dir=.
4151- if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4152- lt_cv_path_LD="$ac_dir/$ac_prog"
4153- # Check to see if the program is GNU ld. I'd rather use --version,
4154- # but apparently some variants of GNU ld only accept -v.
4155- # Break only if it was the GNU/non-GNU ld that we prefer.
4156- case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4157- *GNU* | *'with BFD'*)
4158- test "$with_gnu_ld" != no && break
4159- ;;
4160- *)
4161- test "$with_gnu_ld" != yes && break
4162- ;;
4163- esac
4164- fi
4165- done
4166- IFS="$lt_save_ifs"
4167-else
4168- lt_cv_path_LD="$LD" # Let the user override the test with a path.
4169-fi])
4170-LD="$lt_cv_path_LD"
4171-if test -n "$LD"; then
4172- AC_MSG_RESULT($LD)
4173-else
4174- AC_MSG_RESULT(no)
4175-fi
4176-test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
4177-AC_PROG_LD_GNU
4178-])# AC_PROG_LD
4179-
4180-
4181-# AC_PROG_LD_GNU
4182-# --------------
4183-AC_DEFUN([AC_PROG_LD_GNU],
4184-[AC_REQUIRE([AC_PROG_EGREP])dnl
4185-AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
4186-[# I'd rather use --version here, but apparently some GNU lds only accept -v.
4187-case `$LD -v 2>&1 </dev/null` in
4188-*GNU* | *'with BFD'*)
4189- lt_cv_prog_gnu_ld=yes
4190- ;;
4191-*)
4192- lt_cv_prog_gnu_ld=no
4193- ;;
4194-esac])
4195-with_gnu_ld=$lt_cv_prog_gnu_ld
4196-])# AC_PROG_LD_GNU
4197-
4198-
4199-# AC_PROG_LD_RELOAD_FLAG
4200-# ----------------------
4201-# find reload flag for linker
4202-# -- PORTME Some linkers may need a different reload flag.
4203-AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
4204-[AC_CACHE_CHECK([for $LD option to reload object files],
4205- lt_cv_ld_reload_flag,
4206- [lt_cv_ld_reload_flag='-r'])
4207-reload_flag=$lt_cv_ld_reload_flag
4208-case $reload_flag in
4209-"" | " "*) ;;
4210-*) reload_flag=" $reload_flag" ;;
4211-esac
4212-reload_cmds='$LD$reload_flag -o $output$reload_objs'
4213-case $host_os in
4214- darwin*)
4215- if test "$GCC" = yes; then
4216- reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4217- else
4218- reload_cmds='$LD$reload_flag -o $output$reload_objs'
4219- fi
4220- ;;
4221-esac
4222-])# AC_PROG_LD_RELOAD_FLAG
4223-
4224-
4225-# AC_DEPLIBS_CHECK_METHOD
4226-# -----------------------
4227-# how to check for library dependencies
4228-# -- PORTME fill in with the dynamic library characteristics
4229-AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
4230-[AC_CACHE_CHECK([how to recognize dependent libraries],
4231-lt_cv_deplibs_check_method,
4232-[lt_cv_file_magic_cmd='$MAGIC_CMD'
4233-lt_cv_file_magic_test_file=
4234-lt_cv_deplibs_check_method='unknown'
4235-# Need to set the preceding variable on all platforms that support
4236-# interlibrary dependencies.
4237-# 'none' -- dependencies not supported.
4238-# `unknown' -- same as none, but documents that we really don't know.
4239-# 'pass_all' -- all dependencies passed with no checks.
4240-# 'test_compile' -- check by making test program.
4241-# 'file_magic [[regex]]' -- check by looking for files in library path
4242-# which responds to the $file_magic_cmd with a given extended regex.
4243-# If you have `file' or equivalent on your system and you're not sure
4244-# whether `pass_all' will *always* work, you probably want this one.
4245-
4246-case $host_os in
4247-aix[[4-9]]*)
4248- lt_cv_deplibs_check_method=pass_all
4249- ;;
4250-
4251-beos*)
4252- lt_cv_deplibs_check_method=pass_all
4253- ;;
4254-
4255-bsdi[[45]]*)
4256- lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
4257- lt_cv_file_magic_cmd='/usr/bin/file -L'
4258- lt_cv_file_magic_test_file=/shlib/libc.so
4259- ;;
4260-
4261-cygwin*)
4262- # func_win32_libid is a shell function defined in ltmain.sh
4263- lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4264- lt_cv_file_magic_cmd='func_win32_libid'
4265- ;;
4266-
4267-mingw* | pw32*)
4268- # Base MSYS/MinGW do not provide the 'file' command needed by
4269- # func_win32_libid shell function, so use a weaker test based on 'objdump',
4270- # unless we find 'file', for example because we are cross-compiling.
4271- if ( file / ) >/dev/null 2>&1; then
4272- lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4273- lt_cv_file_magic_cmd='func_win32_libid'
4274- else
4275- lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4276- lt_cv_file_magic_cmd='$OBJDUMP -f'
4277- fi
4278- ;;
4279-
4280-darwin* | rhapsody*)
4281- lt_cv_deplibs_check_method=pass_all
4282- ;;
4283-
4284-freebsd* | dragonfly*)
4285- if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4286- case $host_cpu in
4287- i*86 )
4288- # Not sure whether the presence of OpenBSD here was a mistake.
4289- # Let's accept both of them until this is cleared up.
4290- lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
4291- lt_cv_file_magic_cmd=/usr/bin/file
4292- lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4293- ;;
4294- esac
4295- else
4296- lt_cv_deplibs_check_method=pass_all
4297- fi
4298- ;;
4299-
4300-gnu*)
4301- lt_cv_deplibs_check_method=pass_all
4302- ;;
4303-
4304-hpux10.20* | hpux11*)
4305- lt_cv_file_magic_cmd=/usr/bin/file
4306- case $host_cpu in
4307- ia64*)
4308- lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
4309- lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4310- ;;
4311- hppa*64*)
4312- [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
4313- lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4314- ;;
4315- *)
4316- lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
4317- lt_cv_file_magic_test_file=/usr/lib/libc.sl
4318- ;;
4319- esac
4320- ;;
4321-
4322-interix[[3-9]]*)
4323- # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4324- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
4325- ;;
4326-
4327-irix5* | irix6* | nonstopux*)
4328- case $LD in
4329- *-32|*"-32 ") libmagic=32-bit;;
4330- *-n32|*"-n32 ") libmagic=N32;;
4331- *-64|*"-64 ") libmagic=64-bit;;
4332- *) libmagic=never-match;;
4333- esac
4334- lt_cv_deplibs_check_method=pass_all
4335- ;;
4336-
4337-# This must be Linux ELF.
4338-linux* | k*bsd*-gnu)
4339- lt_cv_deplibs_check_method=pass_all
4340- ;;
4341-
4342-netbsd*)
4343- if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4344- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
4345- else
4346- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
4347- fi
4348- ;;
4349-
4350-newos6*)
4351- lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
4352- lt_cv_file_magic_cmd=/usr/bin/file
4353- lt_cv_file_magic_test_file=/usr/lib/libnls.so
4354- ;;
4355-
4356-nto-qnx*)
4357- lt_cv_deplibs_check_method=unknown
4358- ;;
4359-
4360-openbsd*)
4361- if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4362- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
4363- else
4364- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
4365- fi
4366- ;;
4367-
4368-osf3* | osf4* | osf5*)
4369- lt_cv_deplibs_check_method=pass_all
4370- ;;
4371-
4372-rdos*)
4373- lt_cv_deplibs_check_method=pass_all
4374- ;;
4375-
4376-solaris*)
4377- lt_cv_deplibs_check_method=pass_all
4378- ;;
4379-
4380-sysv4 | sysv4.3*)
4381- case $host_vendor in
4382- motorola)
4383- 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]]'
4384- lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4385- ;;
4386- ncr)
4387- lt_cv_deplibs_check_method=pass_all
4388- ;;
4389- sequent)
4390- lt_cv_file_magic_cmd='/bin/file'
4391- lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
4392- ;;
4393- sni)
4394- lt_cv_file_magic_cmd='/bin/file'
4395- lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
4396- lt_cv_file_magic_test_file=/lib/libc.so
4397- ;;
4398- siemens)
4399- lt_cv_deplibs_check_method=pass_all
4400- ;;
4401- pc)
4402- lt_cv_deplibs_check_method=pass_all
4403- ;;
4404- esac
4405- ;;
4406-
4407-sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4408- lt_cv_deplibs_check_method=pass_all
4409- ;;
4410-esac
4411-])
4412-file_magic_cmd=$lt_cv_file_magic_cmd
4413-deplibs_check_method=$lt_cv_deplibs_check_method
4414-test -z "$deplibs_check_method" && deplibs_check_method=unknown
4415-])# AC_DEPLIBS_CHECK_METHOD
4416-
4417-
4418-# AC_PROG_NM
4419-# ----------
4420-# find the pathname to a BSD-compatible name lister
4421-AC_DEFUN([AC_PROG_NM],
4422-[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
4423-[if test -n "$NM"; then
4424- # Let the user override the test.
4425- lt_cv_path_NM="$NM"
4426-else
4427- lt_nm_to_check="${ac_tool_prefix}nm"
4428- if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4429- lt_nm_to_check="$lt_nm_to_check nm"
4430- fi
4431- for lt_tmp_nm in $lt_nm_to_check; do
4432- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4433- for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4434- IFS="$lt_save_ifs"
4435- test -z "$ac_dir" && ac_dir=.
4436- tmp_nm="$ac_dir/$lt_tmp_nm"
4437- if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4438- # Check to see if the nm accepts a BSD-compat flag.
4439- # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4440- # nm: unknown option "B" ignored
4441- # Tru64's nm complains that /dev/null is an invalid object file
4442- case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4443- */dev/null* | *'Invalid file or object type'*)
4444- lt_cv_path_NM="$tmp_nm -B"
4445- break
4446- ;;
4447- *)
4448- case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4449- */dev/null*)
4450- lt_cv_path_NM="$tmp_nm -p"
4451- break
4452- ;;
4453- *)
4454- lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4455- continue # so that we can try to find one that supports BSD flags
4456- ;;
4457- esac
4458- ;;
4459- esac
4460- fi
4461- done
4462- IFS="$lt_save_ifs"
4463- done
4464- test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4465-fi])
4466-NM="$lt_cv_path_NM"
4467-])# AC_PROG_NM
4468-
4469-
4470-# AC_CHECK_LIBM
4471-# -------------
4472-# check for math library
4473-AC_DEFUN([AC_CHECK_LIBM],
4474-[AC_REQUIRE([AC_CANONICAL_HOST])dnl
4475-LIBM=
4476-case $host in
4477-*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
4478- # These system don't have libm, or don't need it
4479- ;;
4480-*-ncr-sysv4.3*)
4481- AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
4482- AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
4483- ;;
4484-*)
4485- AC_CHECK_LIB(m, cos, LIBM="-lm")
4486- ;;
4487-esac
4488-])# AC_CHECK_LIBM
4489-
4490-
4491-# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
4492-# -----------------------------------
4493-# sets LIBLTDL to the link flags for the libltdl convenience library and
4494-# LTDLINCL to the include flags for the libltdl header and adds
4495-# --enable-ltdl-convenience to the configure arguments. Note that
4496-# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
4497-# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
4498-# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
4499-# (note the single quotes!). If your package is not flat and you're not
4500-# using automake, define top_builddir and top_srcdir appropriately in
4501-# the Makefiles.
4502-AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
4503-[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
4504- case $enable_ltdl_convenience in
4505- no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
4506- "") enable_ltdl_convenience=yes
4507- ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
4508- esac
4509- LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
4510- LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
4511- # For backwards non-gettext consistent compatibility...
4512- INCLTDL="$LTDLINCL"
4513-])# AC_LIBLTDL_CONVENIENCE
4514-
4515-
4516-# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
4517-# -----------------------------------
4518-# sets LIBLTDL to the link flags for the libltdl installable library and
4519-# LTDLINCL to the include flags for the libltdl header and adds
4520-# --enable-ltdl-install to the configure arguments. Note that
4521-# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
4522-# and an installed libltdl is not found, it is assumed to be `libltdl'.
4523-# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
4524-# '${top_srcdir}/' (note the single quotes!). If your package is not
4525-# flat and you're not using automake, define top_builddir and top_srcdir
4526-# appropriately in the Makefiles.
4527-# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
4528-AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
4529-[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
4530- AC_CHECK_LIB(ltdl, lt_dlinit,
4531- [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
4532- [if test x"$enable_ltdl_install" = xno; then
4533- AC_MSG_WARN([libltdl not installed, but installation disabled])
4534- else
4535- enable_ltdl_install=yes
4536- fi
4537- ])
4538- if test x"$enable_ltdl_install" = x"yes"; then
4539- ac_configure_args="$ac_configure_args --enable-ltdl-install"
4540- LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
4541- LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
4542- else
4543- ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
4544- LIBLTDL="-lltdl"
4545- LTDLINCL=
4546- fi
4547- # For backwards non-gettext consistent compatibility...
4548- INCLTDL="$LTDLINCL"
4549-])# AC_LIBLTDL_INSTALLABLE
4550-
4551-
4552-# AC_LIBTOOL_CXX
4553-# --------------
4554-# enable support for C++ libraries
4555-AC_DEFUN([AC_LIBTOOL_CXX],
4556-[AC_REQUIRE([_LT_AC_LANG_CXX])
4557-])# AC_LIBTOOL_CXX
4558-
4559-
4560-# _LT_AC_LANG_CXX
4561-# ---------------
4562-AC_DEFUN([_LT_AC_LANG_CXX],
4563-[AC_REQUIRE([AC_PROG_CXX])
4564-AC_REQUIRE([_LT_AC_PROG_CXXCPP])
4565-_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
4566-])# _LT_AC_LANG_CXX
4567-
4568-# _LT_AC_PROG_CXXCPP
4569-# ------------------
4570-AC_DEFUN([_LT_AC_PROG_CXXCPP],
4571-[
4572-AC_REQUIRE([AC_PROG_CXX])
4573-if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4574- ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4575- (test "X$CXX" != "Xg++"))) ; then
4576- AC_PROG_CXXCPP
4577-fi
4578-])# _LT_AC_PROG_CXXCPP
4579-
4580-# AC_LIBTOOL_F77
4581-# --------------
4582-# enable support for Fortran 77 libraries
4583-AC_DEFUN([AC_LIBTOOL_F77],
4584-[AC_REQUIRE([_LT_AC_LANG_F77])
4585-])# AC_LIBTOOL_F77
4586-
4587-
4588-# _LT_AC_LANG_F77
4589-# ---------------
4590-AC_DEFUN([_LT_AC_LANG_F77],
4591-[AC_REQUIRE([AC_PROG_F77])
4592-_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
4593-])# _LT_AC_LANG_F77
4594-
4595-
4596-# AC_LIBTOOL_GCJ
4597-# --------------
4598-# enable support for GCJ libraries
4599-AC_DEFUN([AC_LIBTOOL_GCJ],
4600-[AC_REQUIRE([_LT_AC_LANG_GCJ])
4601-])# AC_LIBTOOL_GCJ
4602-
4603-
4604-# _LT_AC_LANG_GCJ
4605-# ---------------
4606-AC_DEFUN([_LT_AC_LANG_GCJ],
4607-[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
4608- [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
4609- [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
4610- [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
4611- [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
4612- [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
4613-_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
4614-])# _LT_AC_LANG_GCJ
4615-
4616-
4617-# AC_LIBTOOL_RC
4618-# -------------
4619-# enable support for Windows resource files
4620-AC_DEFUN([AC_LIBTOOL_RC],
4621-[AC_REQUIRE([LT_AC_PROG_RC])
4622-_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
4623-])# AC_LIBTOOL_RC
4624-
4625-
4626-# AC_LIBTOOL_LANG_C_CONFIG
4627-# ------------------------
4628-# Ensure that the configuration vars for the C compiler are
4629-# suitably defined. Those variables are subsequently used by
4630-# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4631-AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
4632-AC_DEFUN([_LT_AC_LANG_C_CONFIG],
4633-[lt_save_CC="$CC"
4634-AC_LANG_PUSH(C)
4635-
4636-# Source file extension for C test sources.
4637-ac_ext=c
4638-
4639-# Object file extension for compiled C test sources.
4640-objext=o
4641-_LT_AC_TAGVAR(objext, $1)=$objext
4642-
4643-# Code to be used in simple compile tests
4644-lt_simple_compile_test_code="int some_variable = 0;"
4645-
4646-# Code to be used in simple link tests
4647-lt_simple_link_test_code='int main(){return(0);}'
4648-
4649-_LT_AC_SYS_COMPILER
4650-
4651-# save warnings/boilerplate of simple test code
4652-_LT_COMPILER_BOILERPLATE
4653-_LT_LINKER_BOILERPLATE
4654-
4655-AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4656-AC_LIBTOOL_PROG_COMPILER_PIC($1)
4657-AC_LIBTOOL_PROG_CC_C_O($1)
4658-AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4659-AC_LIBTOOL_PROG_LD_SHLIBS($1)
4660-AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4661-AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4662-AC_LIBTOOL_SYS_LIB_STRIP
4663-AC_LIBTOOL_DLOPEN_SELF
4664-
4665-# Report which library types will actually be built
4666-AC_MSG_CHECKING([if libtool supports shared libraries])
4667-AC_MSG_RESULT([$can_build_shared])
4668-
4669-AC_MSG_CHECKING([whether to build shared libraries])
4670-test "$can_build_shared" = "no" && enable_shared=no
4671-
4672-# On AIX, shared libraries and static libraries use the same namespace, and
4673-# are all built from PIC.
4674-case $host_os in
4675-aix3*)
4676- test "$enable_shared" = yes && enable_static=no
4677- if test -n "$RANLIB"; then
4678- archive_cmds="$archive_cmds~\$RANLIB \$lib"
4679- postinstall_cmds='$RANLIB $lib'
4680- fi
4681- ;;
4682-
4683-aix[[4-9]]*)
4684- if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4685- test "$enable_shared" = yes && enable_static=no
The diff has been truncated for viewing.

Subscribers

People subscribed via source and target branches