Codebase list policykit-1-gnome / e121dda
Merge commit 'upstream/0.101' into experimental Michael Biebl 13 years ago
19 changed file(s) with 5333 addition(s) and 3109 deletion(s). Raw diff Collapse all Expand all
132132 DEFS = @DEFS@
133133 DEPDIR = @DEPDIR@
134134 DISABLE_DEPRECATED = @DISABLE_DEPRECATED@
135 DLLTOOL = @DLLTOOL@
135136 DSYMUTIL = @DSYMUTIL@
136137 DUMPBIN = @DUMPBIN@
137138 ECHO_C = @ECHO_C@
182183 LT_REVISION = @LT_REVISION@
183184 MAINT = @MAINT@
184185 MAKEINFO = @MAKEINFO@
186 MANIFEST_TOOL = @MANIFEST_TOOL@
185187 MKDIR_P = @MKDIR_P@
186188 MKINSTALLDIRS = @MKINSTALLDIRS@
187189 MSGFMT = @MSGFMT@
225227 abs_srcdir = @abs_srcdir@
226228 abs_top_builddir = @abs_top_builddir@
227229 abs_top_srcdir = @abs_top_srcdir@
230 ac_ct_AR = @ac_ct_AR@
228231 ac_ct_CC = @ac_ct_CC@
229232 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
230233 am__include = @am__include@
0 ==========
1 polkit-gnome 0.101
2 ==========
3
4 This is polkit-gnome version 0.101.
5
6 Build requirements
7
8 polkit >= 0.96
9 gtk+-2.0 >= 2.17.1 OR gtk+-3.0
10
11 Changes since 0.100:
12
13 David Zeuthen (7):
14 Post-release version bump to 0.101
15 Return error when authentication dialog is dismissed
16 Fix crashers if icons cannot be loaded
17 Don't use deprecated polkit API
18 Fix warnings with gcc 4.6
19 Update NEWS for release
20 Update POTFILES.in
21
22 Matthias Clasen (1):
23 Connect to the session bus
24
25 Thanks to our contributors.
26
27 David Zeuthen,
28 March 3, 2011
29
030 ==========
131 polkit-gnome 0.100
232 ==========
+2136
-1742
aclocal.m4 less more
1212
1313 m4_ifndef([AC_AUTOCONF_VERSION],
1414 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
15 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.66],,
16 [m4_warning([this file was generated for autoconf 2.66.
15 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
16 [m4_warning([this file was generated for autoconf 2.68.
1717 You have another version of autoconf. It may work, but is not guaranteed to.
1818 If you have problems, you may need to regenerate the build system entirely.
1919 To do so, use the procedure documented by the package, typically `autoreconf'.])])
2020
21 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
21 # Copyright (C) 1995-2002 Free Software Foundation, Inc.
22 # Copyright (C) 2001-2003,2004 Red Hat, Inc.
2223 #
23 # This file is free software; the Free Software Foundation
24 # gives unlimited permission to copy and/or distribute it,
25 # with or without modifications, as long as this notice is preserved.
26
27 # AM_AUTOMAKE_VERSION(VERSION)
28 # ----------------------------
29 # Automake X.Y traces this macro to ensure aclocal.m4 has been
30 # generated from the m4 files accompanying Automake X.Y.
31 # (This private macro should not be called outside this file.)
32 AC_DEFUN([AM_AUTOMAKE_VERSION],
33 [am__api_version='1.11'
34 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
35 dnl require some minimum version. Point them to the right macro.
36 m4_if([$1], [1.11.1], [],
37 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
38 ])
39
40 # _AM_AUTOCONF_VERSION(VERSION)
41 # -----------------------------
42 # aclocal traces this macro to find the Autoconf version.
43 # This is a private macro too. Using m4_define simplifies
44 # the logic in aclocal, which can simply ignore this definition.
45 m4_define([_AM_AUTOCONF_VERSION], [])
46
47 # AM_SET_CURRENT_AUTOMAKE_VERSION
48 # -------------------------------
49 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
50 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
51 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
52 [AM_AUTOMAKE_VERSION([1.11.1])dnl
53 m4_ifndef([AC_AUTOCONF_VERSION],
54 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
55 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
56
57 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
58
59 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
24 # This file is free software, distributed under the terms of the GNU
25 # General Public License. As a special exception to the GNU General
26 # Public License, this file may be distributed as part of a program
27 # that contains a configuration script generated by Autoconf, under
28 # the same distribution terms as the rest of that program.
6029 #
61 # This file is free software; the Free Software Foundation
62 # gives unlimited permission to copy and/or distribute it,
63 # with or without modifications, as long as this notice is preserved.
64
65 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
66 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
67 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
30 # This file can be copied and used freely without restrictions. It can
31 # be used in projects which are not available under the GNU Public License
32 # but which still want to provide support for the GNU gettext functionality.
6833 #
69 # Of course, Automake must honor this variable whenever it calls a
70 # tool from the auxiliary directory. The problem is that $srcdir (and
71 # therefore $ac_aux_dir as well) can be either absolute or relative,
72 # depending on how configure is run. This is pretty annoying, since
73 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
74 # source directory, any form will work fine, but in subdirectories a
75 # relative path needs to be adjusted first.
34 # Macro to add for using GNU gettext.
35 # Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
7636 #
77 # $ac_aux_dir/missing
78 # fails when called from a subdirectory if $ac_aux_dir is relative
79 # $top_srcdir/$ac_aux_dir/missing
80 # fails if $ac_aux_dir is absolute,
81 # fails when called from a subdirectory in a VPATH build with
82 # a relative $ac_aux_dir
37 # Modified to never use included libintl.
38 # Owen Taylor <otaylor@redhat.com>, 12/15/1998
8339 #
84 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
85 # are both prefixed by $srcdir. In an in-source build this is usually
86 # harmless because $srcdir is `.', but things will broke when you
87 # start a VPATH build or use an absolute $srcdir.
40 # Major rework to remove unused code
41 # Owen Taylor <otaylor@redhat.com>, 12/11/2002
8842 #
89 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
90 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
91 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
92 # and then we would define $MISSING as
93 # MISSING="\${SHELL} $am_aux_dir/missing"
94 # This will work as long as MISSING is not called from configure, because
95 # unfortunately $(top_srcdir) has no meaning in configure.
96 # However there are other variables, like CC, which are often used in
97 # configure, and could therefore not use this "fixed" $ac_aux_dir.
43 # Added better handling of ALL_LINGUAS from GNU gettext version
44 # written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
9845 #
99 # Another solution, used here, is to always expand $ac_aux_dir to an
100 # absolute PATH. The drawback is that using absolute paths prevent a
101 # configured tree to be moved without reconfiguration.
102
103 AC_DEFUN([AM_AUX_DIR_EXPAND],
104 [dnl Rely on autoconf to set up CDPATH properly.
105 AC_PREREQ([2.50])dnl
106 # expand $ac_aux_dir to an absolute path
107 am_aux_dir=`cd $ac_aux_dir && pwd`
108 ])
109
110 # AM_CONDITIONAL -*- Autoconf -*-
111
112 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
113 # Free Software Foundation, Inc.
46 # Modified to require ngettext
47 # Matthias Clasen <mclasen@redhat.com> 08/06/2004
11448 #
115 # This file is free software; the Free Software Foundation
116 # gives unlimited permission to copy and/or distribute it,
117 # with or without modifications, as long as this notice is preserved.
118
119 # serial 9
120
121 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
122 # -------------------------------------
123 # Define a conditional.
124 AC_DEFUN([AM_CONDITIONAL],
125 [AC_PREREQ(2.52)dnl
126 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
127 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
128 AC_SUBST([$1_TRUE])dnl
129 AC_SUBST([$1_FALSE])dnl
130 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
131 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
132 m4_define([_AM_COND_VALUE_$1], [$2])dnl
133 if $2; then
134 $1_TRUE=
135 $1_FALSE='#'
136 else
137 $1_TRUE='#'
138 $1_FALSE=
139 fi
140 AC_CONFIG_COMMANDS_PRE(
141 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
142 AC_MSG_ERROR([[conditional "$1" was never defined.
143 Usually this means the macro was only invoked conditionally.]])
144 fi])])
145
146 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
147 # Free Software Foundation, Inc.
148 #
149 # This file is free software; the Free Software Foundation
150 # gives unlimited permission to copy and/or distribute it,
151 # with or without modifications, as long as this notice is preserved.
152
153 # serial 10
154
155 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
156 # written in clear, in which case automake, when reading aclocal.m4,
157 # will think it sees a *use*, and therefore will trigger all it's
158 # C support machinery. Also note that it means that autoscan, seeing
159 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
160
161
162 # _AM_DEPENDENCIES(NAME)
163 # ----------------------
164 # See how the compiler implements dependency checking.
165 # NAME is "CC", "CXX", "GCJ", or "OBJC".
166 # We try a few techniques and use that to set a single cache variable.
167 #
168 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
169 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
170 # dependency, and given that the user is not expected to run this macro,
171 # just rely on AC_PROG_CC.
172 AC_DEFUN([_AM_DEPENDENCIES],
173 [AC_REQUIRE([AM_SET_DEPDIR])dnl
174 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
175 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
176 AC_REQUIRE([AM_DEP_TRACK])dnl
177
178 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
179 [$1], CXX, [depcc="$CXX" am_compiler_list=],
180 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
181 [$1], UPC, [depcc="$UPC" am_compiler_list=],
182 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
183 [depcc="$$1" am_compiler_list=])
184
185 AC_CACHE_CHECK([dependency style of $depcc],
186 [am_cv_$1_dependencies_compiler_type],
187 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
188 # We make a subdir and do the tests there. Otherwise we can end up
189 # making bogus files that we don't know about and never remove. For
190 # instance it was reported that on HP-UX the gcc test will end up
191 # making a dummy file named `D' -- because `-MD' means `put the output
192 # in D'.
193 mkdir conftest.dir
194 # Copy depcomp to subdir because otherwise we won't find it if we're
195 # using a relative directory.
196 cp "$am_depcomp" conftest.dir
197 cd conftest.dir
198 # We will build objects and dependencies in a subdirectory because
199 # it helps to detect inapplicable dependency modes. For instance
200 # both Tru64's cc and ICC support -MD to output dependencies as a
201 # side effect of compilation, but ICC will put the dependencies in
202 # the current directory while Tru64 will put them in the object
203 # directory.
204 mkdir sub
205
206 am_cv_$1_dependencies_compiler_type=none
207 if test "$am_compiler_list" = ""; then
208 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
209 fi
210 am__universal=false
211 m4_case([$1], [CC],
212 [case " $depcc " in #(
213 *\ -arch\ *\ -arch\ *) am__universal=true ;;
214 esac],
215 [CXX],
216 [case " $depcc " in #(
217 *\ -arch\ *\ -arch\ *) am__universal=true ;;
218 esac])
219
220 for depmode in $am_compiler_list; do
221 # Setup a source with many dependencies, because some compilers
222 # like to wrap large dependency lists on column 80 (with \), and
223 # we should not choose a depcomp mode which is confused by this.
224 #
225 # We need to recreate these files for each test, as the compiler may
226 # overwrite some of them when testing with obscure command lines.
227 # This happens at least with the AIX C compiler.
228 : > sub/conftest.c
229 for i in 1 2 3 4 5 6; do
230 echo '#include "conftst'$i'.h"' >> sub/conftest.c
231 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
232 # Solaris 8's {/usr,}/bin/sh.
233 touch sub/conftst$i.h
234 done
235 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
236
237 # We check with `-c' and `-o' for the sake of the "dashmstdout"
238 # mode. It turns out that the SunPro C++ compiler does not properly
239 # handle `-M -o', and we need to detect this. Also, some Intel
240 # versions had trouble with output in subdirs
241 am__obj=sub/conftest.${OBJEXT-o}
242 am__minus_obj="-o $am__obj"
243 case $depmode in
244 gcc)
245 # This depmode causes a compiler race in universal mode.
246 test "$am__universal" = false || continue
247 ;;
248 nosideeffect)
249 # after this tag, mechanisms are not by side-effect, so they'll
250 # only be used when explicitly requested
251 if test "x$enable_dependency_tracking" = xyes; then
252 continue
253 else
49 # We need this here as well, since someone might use autoconf-2.5x
50 # to configure GLib then an older version to configure a package
51 # using AM_GLIB_GNU_GETTEXT
52 AC_PREREQ(2.53)
53
54 dnl
55 dnl We go to great lengths to make sure that aclocal won't
56 dnl try to pull in the installed version of these macros
57 dnl when running aclocal in the glib directory.
58 dnl
59 m4_copy([AC_DEFUN],[glib_DEFUN])
60 m4_copy([AC_REQUIRE],[glib_REQUIRE])
61 dnl
62 dnl At the end, if we're not within glib, we'll define the public
63 dnl definitions in terms of our private definitions.
64 dnl
65
66 # GLIB_LC_MESSAGES
67 #--------------------
68 glib_DEFUN([GLIB_LC_MESSAGES],
69 [AC_CHECK_HEADERS([locale.h])
70 if test $ac_cv_header_locale_h = yes; then
71 AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
72 [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
73 am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
74 if test $am_cv_val_LC_MESSAGES = yes; then
75 AC_DEFINE(HAVE_LC_MESSAGES, 1,
76 [Define if your <locale.h> file defines LC_MESSAGES.])
77 fi
78 fi])
79
80 # GLIB_PATH_PROG_WITH_TEST
81 #----------------------------
82 dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
83 dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
84 glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],
85 [# Extract the first word of "$2", so it can be a program name with args.
86 set dummy $2; ac_word=[$]2
87 AC_MSG_CHECKING([for $ac_word])
88 AC_CACHE_VAL(ac_cv_path_$1,
89 [case "[$]$1" in
90 /*)
91 ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
92 ;;
93 *)
94 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
95 for ac_dir in ifelse([$5], , $PATH, [$5]); do
96 test -z "$ac_dir" && ac_dir=.
97 if test -f $ac_dir/$ac_word; then
98 if [$3]; then
99 ac_cv_path_$1="$ac_dir/$ac_word"
254100 break
255 fi
256 ;;
257 msvisualcpp | msvcmsys)
258 # This compiler won't grok `-c -o', but also, the minuso test has
259 # not run yet. These depmodes are late enough in the game, and
260 # so weak that their functioning should not be impacted.
261 am__obj=conftest.${OBJEXT-o}
262 am__minus_obj=
263 ;;
264 none) break ;;
265 esac
266 if depmode=$depmode \
267 source=sub/conftest.c object=$am__obj \
268 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
269 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
270 >/dev/null 2>conftest.err &&
271 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
272 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
273 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
274 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
275 # icc doesn't choke on unknown options, it will just issue warnings
276 # or remarks (even with -Werror). So we grep stderr for any message
277 # that says an option was ignored or not supported.
278 # When given -MP, icc 7.0 and 7.1 complain thusly:
279 # icc: Command line warning: ignoring option '-M'; no argument required
280 # The diagnosis changed in icc 8.0:
281 # icc: Command line remark: option '-MP' not supported
282 if (grep 'ignoring option' conftest.err ||
283 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
284 am_cv_$1_dependencies_compiler_type=$depmode
285 break
286101 fi
287102 fi
288103 done
289
290 cd ..
291 rm -rf conftest.dir
104 IFS="$ac_save_ifs"
105 dnl If no 4th arg is given, leave the cache variable unset,
106 dnl so AC_PATH_PROGS will keep looking.
107 ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
108 ])dnl
109 ;;
110 esac])dnl
111 $1="$ac_cv_path_$1"
112 if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
113 AC_MSG_RESULT([$]$1)
292114 else
293 am_cv_$1_dependencies_compiler_type=none
115 AC_MSG_RESULT(no)
294116 fi
117 AC_SUBST($1)dnl
295118 ])
296 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
297 AM_CONDITIONAL([am__fastdep$1], [
298 test "x$enable_dependency_tracking" != xno \
299 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
119
120 # GLIB_WITH_NLS
121 #-----------------
122 glib_DEFUN([GLIB_WITH_NLS],
123 dnl NLS is obligatory
124 [USE_NLS=yes
125 AC_SUBST(USE_NLS)
126
127 gt_cv_have_gettext=no
128
129 CATOBJEXT=NONE
130 XGETTEXT=:
131 INTLLIBS=
132
133 AC_CHECK_HEADER(libintl.h,
134 [gt_cv_func_dgettext_libintl="no"
135 libintl_extra_libs=""
136
137 #
138 # First check in libc
139 #
140 AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
141 [AC_TRY_LINK([
142 #include <libintl.h>
143 ],
144 [return !ngettext ("","", 1)],
145 gt_cv_func_ngettext_libc=yes,
146 gt_cv_func_ngettext_libc=no)
147 ])
148
149 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
150 AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
151 [AC_TRY_LINK([
152 #include <libintl.h>
153 ],
154 [return !dgettext ("","")],
155 gt_cv_func_dgettext_libc=yes,
156 gt_cv_func_dgettext_libc=no)
157 ])
158 fi
159
160 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
161 AC_CHECK_FUNCS(bind_textdomain_codeset)
162 fi
163
164 #
165 # If we don't have everything we want, check in libintl
166 #
167 if test "$gt_cv_func_dgettext_libc" != "yes" \
168 || test "$gt_cv_func_ngettext_libc" != "yes" \
169 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
170
171 AC_CHECK_LIB(intl, bindtextdomain,
172 [AC_CHECK_LIB(intl, ngettext,
173 [AC_CHECK_LIB(intl, dgettext,
174 gt_cv_func_dgettext_libintl=yes)])])
175
176 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
177 AC_MSG_CHECKING([if -liconv is needed to use gettext])
178 AC_MSG_RESULT([])
179 AC_CHECK_LIB(intl, ngettext,
180 [AC_CHECK_LIB(intl, dcgettext,
181 [gt_cv_func_dgettext_libintl=yes
182 libintl_extra_libs=-liconv],
183 :,-liconv)],
184 :,-liconv)
185 fi
186
187 #
188 # If we found libintl, then check in it for bind_textdomain_codeset();
189 # we'll prefer libc if neither have bind_textdomain_codeset(),
190 # and both have dgettext and ngettext
191 #
192 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
193 glib_save_LIBS="$LIBS"
194 LIBS="$LIBS -lintl $libintl_extra_libs"
195 unset ac_cv_func_bind_textdomain_codeset
196 AC_CHECK_FUNCS(bind_textdomain_codeset)
197 LIBS="$glib_save_LIBS"
198
199 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
200 gt_cv_func_dgettext_libc=no
201 else
202 if test "$gt_cv_func_dgettext_libc" = "yes" \
203 && test "$gt_cv_func_ngettext_libc" = "yes"; then
204 gt_cv_func_dgettext_libintl=no
205 fi
206 fi
207 fi
208 fi
209
210 if test "$gt_cv_func_dgettext_libc" = "yes" \
211 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
212 gt_cv_have_gettext=yes
213 fi
214
215 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
216 INTLLIBS="-lintl $libintl_extra_libs"
217 fi
218
219 if test "$gt_cv_have_gettext" = "yes"; then
220 AC_DEFINE(HAVE_GETTEXT,1,
221 [Define if the GNU gettext() function is already present or preinstalled.])
222 GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
223 [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
224 if test "$MSGFMT" != "no"; then
225 glib_save_LIBS="$LIBS"
226 LIBS="$LIBS $INTLLIBS"
227 AC_CHECK_FUNCS(dcgettext)
228 MSGFMT_OPTS=
229 AC_MSG_CHECKING([if msgfmt accepts -c])
230 GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
231 msgid ""
232 msgstr ""
233 "Content-Type: text/plain; charset=UTF-8\n"
234 "Project-Id-Version: test 1.0\n"
235 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
236 "Last-Translator: test <foo@bar.xx>\n"
237 "Language-Team: C <LL@li.org>\n"
238 "MIME-Version: 1.0\n"
239 "Content-Transfer-Encoding: 8bit\n"
240 ], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
241 AC_SUBST(MSGFMT_OPTS)
242 AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
243 GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
244 [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
245 AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
246 return _nl_msg_cat_cntr],
247 [CATOBJEXT=.gmo
248 DATADIRNAME=share],
249 [case $host in
250 *-*-solaris*)
251 dnl On Solaris, if bind_textdomain_codeset is in libc,
252 dnl GNU format message catalog is always supported,
253 dnl since both are added to the libc all together.
254 dnl Hence, we'd like to go with DATADIRNAME=share and
255 dnl and CATOBJEXT=.gmo in this case.
256 AC_CHECK_FUNC(bind_textdomain_codeset,
257 [CATOBJEXT=.gmo
258 DATADIRNAME=share],
259 [CATOBJEXT=.mo
260 DATADIRNAME=lib])
261 ;;
262 *)
263 CATOBJEXT=.mo
264 DATADIRNAME=lib
265 ;;
266 esac])
267 LIBS="$glib_save_LIBS"
268 INSTOBJEXT=.mo
269 else
270 gt_cv_have_gettext=no
271 fi
272 fi
273 ])
274
275 if test "$gt_cv_have_gettext" = "yes" ; then
276 AC_DEFINE(ENABLE_NLS, 1,
277 [always defined to indicate that i18n is enabled])
278 fi
279
280 dnl Test whether we really found GNU xgettext.
281 if test "$XGETTEXT" != ":"; then
282 dnl If it is not GNU xgettext we define it as : so that the
283 dnl Makefiles still can work.
284 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
285 : ;
286 else
287 AC_MSG_RESULT(
288 [found xgettext program is not GNU xgettext; ignore it])
289 XGETTEXT=":"
290 fi
291 fi
292
293 # We need to process the po/ directory.
294 POSUB=po
295
296 AC_OUTPUT_COMMANDS(
297 [case "$CONFIG_FILES" in *po/Makefile.in*)
298 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
299 esac])
300
301 dnl These rules are solely for the distribution goal. While doing this
302 dnl we only have to keep exactly one list of the available catalogs
303 dnl in configure.ac.
304 for lang in $ALL_LINGUAS; do
305 GMOFILES="$GMOFILES $lang.gmo"
306 POFILES="$POFILES $lang.po"
307 done
308
309 dnl Make all variables we use known to autoconf.
310 AC_SUBST(CATALOGS)
311 AC_SUBST(CATOBJEXT)
312 AC_SUBST(DATADIRNAME)
313 AC_SUBST(GMOFILES)
314 AC_SUBST(INSTOBJEXT)
315 AC_SUBST(INTLLIBS)
316 AC_SUBST(PO_IN_DATADIR_TRUE)
317 AC_SUBST(PO_IN_DATADIR_FALSE)
318 AC_SUBST(POFILES)
319 AC_SUBST(POSUB)
320 ])
321
322 # AM_GLIB_GNU_GETTEXT
323 # -------------------
324 # Do checks necessary for use of gettext. If a suitable implementation
325 # of gettext is found in either in libintl or in the C library,
326 # it will set INTLLIBS to the libraries needed for use of gettext
327 # and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
328 # gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
329 # on various variables needed by the Makefile.in.in installed by
330 # glib-gettextize.
331 dnl
332 glib_DEFUN([GLIB_GNU_GETTEXT],
333 [AC_REQUIRE([AC_PROG_CC])dnl
334 AC_REQUIRE([AC_HEADER_STDC])dnl
335
336 GLIB_LC_MESSAGES
337 GLIB_WITH_NLS
338
339 if test "$gt_cv_have_gettext" = "yes"; then
340 if test "x$ALL_LINGUAS" = "x"; then
341 LINGUAS=
342 else
343 AC_MSG_CHECKING(for catalogs to be installed)
344 NEW_LINGUAS=
345 for presentlang in $ALL_LINGUAS; do
346 useit=no
347 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
348 desiredlanguages="$LINGUAS"
349 else
350 desiredlanguages="$ALL_LINGUAS"
351 fi
352 for desiredlang in $desiredlanguages; do
353 # Use the presentlang catalog if desiredlang is
354 # a. equal to presentlang, or
355 # b. a variant of presentlang (because in this case,
356 # presentlang can be used as a fallback for messages
357 # which are not translated in the desiredlang catalog).
358 case "$desiredlang" in
359 "$presentlang"*) useit=yes;;
360 esac
361 done
362 if test $useit = yes; then
363 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
364 fi
365 done
366 LINGUAS=$NEW_LINGUAS
367 AC_MSG_RESULT($LINGUAS)
368 fi
369
370 dnl Construct list of names of catalog files to be constructed.
371 if test -n "$LINGUAS"; then
372 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
373 fi
374 fi
375
376 dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
377 dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
378 dnl Try to locate is.
379 MKINSTALLDIRS=
380 if test -n "$ac_aux_dir"; then
381 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
382 fi
383 if test -z "$MKINSTALLDIRS"; then
384 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
385 fi
386 AC_SUBST(MKINSTALLDIRS)
387
388 dnl Generate list of files to be processed by xgettext which will
389 dnl be included in po/Makefile.
390 test -d po || mkdir po
391 if test "x$srcdir" != "x."; then
392 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
393 posrcprefix="$srcdir/"
394 else
395 posrcprefix="../$srcdir/"
396 fi
397 else
398 posrcprefix="../"
399 fi
400 rm -f po/POTFILES
401 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
402 < $srcdir/po/POTFILES.in > po/POTFILES
403 ])
404
405 # AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
406 # -------------------------------
407 # Define VARIABLE to the location where catalog files will
408 # be installed by po/Makefile.
409 glib_DEFUN([GLIB_DEFINE_LOCALEDIR],
410 [glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
411 glib_save_prefix="$prefix"
412 glib_save_exec_prefix="$exec_prefix"
413 glib_save_datarootdir="$datarootdir"
414 test "x$prefix" = xNONE && prefix=$ac_default_prefix
415 test "x$exec_prefix" = xNONE && exec_prefix=$prefix
416 datarootdir=`eval echo "${datarootdir}"`
417 if test "x$CATOBJEXT" = "x.mo" ; then
418 localedir=`eval echo "${libdir}/locale"`
419 else
420 localedir=`eval echo "${datadir}/locale"`
421 fi
422 prefix="$glib_save_prefix"
423 exec_prefix="$glib_save_exec_prefix"
424 datarootdir="$glib_save_datarootdir"
425 AC_DEFINE_UNQUOTED($1, "$localedir",
426 [Define the location where the catalogs will be installed])
300427 ])
301428
302
303 # AM_SET_DEPDIR
304 # -------------
305 # Choose a directory name for dependency files.
306 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
307 AC_DEFUN([AM_SET_DEPDIR],
308 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
309 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
310 ])
311
312
313 # AM_DEP_TRACK
314 # ------------
315 AC_DEFUN([AM_DEP_TRACK],
316 [AC_ARG_ENABLE(dependency-tracking,
317 [ --disable-dependency-tracking speeds up one-time build
318 --enable-dependency-tracking do not reject slow dependency extractors])
319 if test "x$enable_dependency_tracking" != xno; then
320 am_depcomp="$ac_aux_dir/depcomp"
321 AMDEPBACKSLASH='\'
322 fi
323 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
324 AC_SUBST([AMDEPBACKSLASH])dnl
325 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
326 ])
327
328 # Generate code to set up dependency tracking. -*- Autoconf -*-
329
330 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
331 # Free Software Foundation, Inc.
332 #
333 # This file is free software; the Free Software Foundation
334 # gives unlimited permission to copy and/or distribute it,
335 # with or without modifications, as long as this notice is preserved.
336
337 #serial 5
338
339 # _AM_OUTPUT_DEPENDENCY_COMMANDS
340 # ------------------------------
341 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
342 [{
343 # Autoconf 2.62 quotes --file arguments for eval, but not when files
344 # are listed without --file. Let's play safe and only enable the eval
345 # if we detect the quoting.
346 case $CONFIG_FILES in
347 *\'*) eval set x "$CONFIG_FILES" ;;
348 *) set x $CONFIG_FILES ;;
349 esac
350 shift
351 for mf
352 do
353 # Strip MF so we end up with the name of the file.
354 mf=`echo "$mf" | sed -e 's/:.*$//'`
355 # Check whether this is an Automake generated Makefile or not.
356 # We used to match only the files named `Makefile.in', but
357 # some people rename them; so instead we look at the file content.
358 # Grep'ing the first line is not enough: some people post-process
359 # each Makefile.in and add a new line on top of each file to say so.
360 # Grep'ing the whole file is not good either: AIX grep has a line
361 # limit of 2048, but all sed's we know have understand at least 4000.
362 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
363 dirpart=`AS_DIRNAME("$mf")`
364 else
365 continue
366 fi
367 # Extract the definition of DEPDIR, am__include, and am__quote
368 # from the Makefile without running `make'.
369 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
370 test -z "$DEPDIR" && continue
371 am__include=`sed -n 's/^am__include = //p' < "$mf"`
372 test -z "am__include" && continue
373 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
374 # When using ansi2knr, U may be empty or an underscore; expand it
375 U=`sed -n 's/^U = //p' < "$mf"`
376 # Find all dependency output files, they are included files with
377 # $(DEPDIR) in their names. We invoke sed twice because it is the
378 # simplest approach to changing $(DEPDIR) to its actual value in the
379 # expansion.
380 for file in `sed -n "
381 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
382 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
383 # Make sure the directory exists.
384 test -f "$dirpart/$file" && continue
385 fdir=`AS_DIRNAME(["$file"])`
386 AS_MKDIR_P([$dirpart/$fdir])
387 # echo "creating $dirpart/$file"
388 echo '# dummy' > "$dirpart/$file"
389 done
390 done
391 }
392 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
393
394
395 # AM_OUTPUT_DEPENDENCY_COMMANDS
396 # -----------------------------
397 # This macro should only be invoked once -- use via AC_REQUIRE.
398 #
399 # This code is only required when automatic dependency tracking
400 # is enabled. FIXME. This creates each `.P' file that we will
401 # need in order to bootstrap the dependency handling code.
402 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
403 [AC_CONFIG_COMMANDS([depfiles],
404 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
405 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
406 ])
407
408 # Do all the work for Automake. -*- Autoconf -*-
409
410 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
411 # 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
412 #
413 # This file is free software; the Free Software Foundation
414 # gives unlimited permission to copy and/or distribute it,
415 # with or without modifications, as long as this notice is preserved.
416
417 # serial 16
418
419 # This macro actually does too much. Some checks are only needed if
420 # your package does certain things. But this isn't really a big deal.
421
422 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
423 # AM_INIT_AUTOMAKE([OPTIONS])
424 # -----------------------------------------------
425 # The call with PACKAGE and VERSION arguments is the old style
426 # call (pre autoconf-2.50), which is being phased out. PACKAGE
427 # and VERSION should now be passed to AC_INIT and removed from
428 # the call to AM_INIT_AUTOMAKE.
429 # We support both call styles for the transition. After
430 # the next Automake release, Autoconf can make the AC_INIT
431 # arguments mandatory, and then we can depend on a new Autoconf
432 # release and drop the old call support.
433 AC_DEFUN([AM_INIT_AUTOMAKE],
434 [AC_PREREQ([2.62])dnl
435 dnl Autoconf wants to disallow AM_ names. We explicitly allow
436 dnl the ones we care about.
437 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
438 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
439 AC_REQUIRE([AC_PROG_INSTALL])dnl
440 if test "`cd $srcdir && pwd`" != "`pwd`"; then
441 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
442 # is not polluted with repeated "-I."
443 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
444 # test to see if srcdir already configured
445 if test -f $srcdir/config.status; then
446 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
447 fi
448 fi
449
450 # test whether we have cygpath
451 if test -z "$CYGPATH_W"; then
452 if (cygpath --version) >/dev/null 2>/dev/null; then
453 CYGPATH_W='cygpath -w'
454 else
455 CYGPATH_W=echo
456 fi
457 fi
458 AC_SUBST([CYGPATH_W])
459
460 # Define the identity of the package.
461 dnl Distinguish between old-style and new-style calls.
462 m4_ifval([$2],
463 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
464 AC_SUBST([PACKAGE], [$1])dnl
465 AC_SUBST([VERSION], [$2])],
466 [_AM_SET_OPTIONS([$1])dnl
467 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
468 m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
469 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
470 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
471 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
472
473 _AM_IF_OPTION([no-define],,
474 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
475 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
476
477 # Some tools Automake needs.
478 AC_REQUIRE([AM_SANITY_CHECK])dnl
479 AC_REQUIRE([AC_ARG_PROGRAM])dnl
480 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
481 AM_MISSING_PROG(AUTOCONF, autoconf)
482 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
483 AM_MISSING_PROG(AUTOHEADER, autoheader)
484 AM_MISSING_PROG(MAKEINFO, makeinfo)
485 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
486 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
487 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
488 # We need awk for the "check" target. The system "awk" is bad on
489 # some platforms.
490 AC_REQUIRE([AC_PROG_AWK])dnl
491 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
492 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
493 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
494 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
495 [_AM_PROG_TAR([v7])])])
496 _AM_IF_OPTION([no-dependencies],,
497 [AC_PROVIDE_IFELSE([AC_PROG_CC],
498 [_AM_DEPENDENCIES(CC)],
499 [define([AC_PROG_CC],
500 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
501 AC_PROVIDE_IFELSE([AC_PROG_CXX],
502 [_AM_DEPENDENCIES(CXX)],
503 [define([AC_PROG_CXX],
504 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
505 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
506 [_AM_DEPENDENCIES(OBJC)],
507 [define([AC_PROG_OBJC],
508 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
509 ])
510 _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
511 dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
512 dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
513 dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
514 AC_CONFIG_COMMANDS_PRE(dnl
515 [m4_provide_if([_AM_COMPILER_EXEEXT],
516 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
517 ])
518
519 dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
520 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
521 dnl mangled by Autoconf and run in a shell conditional statement.
522 m4_define([_AC_COMPILER_EXEEXT],
523 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
524
525
526 # When config.status generates a header, we must update the stamp-h file.
527 # This file resides in the same directory as the config header
528 # that is generated. The stamp files are numbered to have different names.
529
530 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
531 # loop where config.status creates the headers, so we can generate
532 # our stamp files there.
533 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
534 [# Compute $1's index in $config_headers.
535 _am_arg=$1
536 _am_stamp_count=1
537 for _am_header in $config_headers :; do
538 case $_am_header in
539 $_am_arg | $_am_arg:* )
540 break ;;
541 * )
542 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
543 esac
544 done
545 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
546
547 # Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
548 #
549 # This file is free software; the Free Software Foundation
550 # gives unlimited permission to copy and/or distribute it,
551 # with or without modifications, as long as this notice is preserved.
552
553 # AM_PROG_INSTALL_SH
554 # ------------------
555 # Define $install_sh.
556 AC_DEFUN([AM_PROG_INSTALL_SH],
557 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
558 if test x"${install_sh}" != xset; then
559 case $am_aux_dir in
560 *\ * | *\ *)
561 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
562 *)
563 install_sh="\${SHELL} $am_aux_dir/install-sh"
564 esac
565 fi
566 AC_SUBST(install_sh)])
567
568 # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
569 #
570 # This file is free software; the Free Software Foundation
571 # gives unlimited permission to copy and/or distribute it,
572 # with or without modifications, as long as this notice is preserved.
573
574 # serial 2
575
576 # Check whether the underlying file-system supports filenames
577 # with a leading dot. For instance MS-DOS doesn't.
578 AC_DEFUN([AM_SET_LEADING_DOT],
579 [rm -rf .tst 2>/dev/null
580 mkdir .tst 2>/dev/null
581 if test -d .tst; then
582 am__leading_dot=.
583 else
584 am__leading_dot=_
585 fi
586 rmdir .tst 2>/dev/null
587 AC_SUBST([am__leading_dot])])
588
589 # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
590 # From Jim Meyering
591
592 # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
593 # Free Software Foundation, Inc.
594 #
595 # This file is free software; the Free Software Foundation
596 # gives unlimited permission to copy and/or distribute it,
597 # with or without modifications, as long as this notice is preserved.
598
599 # serial 5
600
601 # AM_MAINTAINER_MODE([DEFAULT-MODE])
602 # ----------------------------------
603 # Control maintainer-specific portions of Makefiles.
604 # Default is to disable them, unless `enable' is passed literally.
605 # For symmetry, `disable' may be passed as well. Anyway, the user
606 # can override the default with the --enable/--disable switch.
607 AC_DEFUN([AM_MAINTAINER_MODE],
608 [m4_case(m4_default([$1], [disable]),
609 [enable], [m4_define([am_maintainer_other], [disable])],
610 [disable], [m4_define([am_maintainer_other], [enable])],
611 [m4_define([am_maintainer_other], [enable])
612 m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
613 AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
614 dnl maintainer-mode's default is 'disable' unless 'enable' is passed
615 AC_ARG_ENABLE([maintainer-mode],
616 [ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
617 (and sometimes confusing) to the casual installer],
618 [USE_MAINTAINER_MODE=$enableval],
619 [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
620 AC_MSG_RESULT([$USE_MAINTAINER_MODE])
621 AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
622 MAINT=$MAINTAINER_MODE_TRUE
623 AC_SUBST([MAINT])dnl
624 ]
625 )
626
627 AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
628
629 # Check to see how 'make' treats includes. -*- Autoconf -*-
630
631 # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
632 #
633 # This file is free software; the Free Software Foundation
634 # gives unlimited permission to copy and/or distribute it,
635 # with or without modifications, as long as this notice is preserved.
636
637 # serial 4
638
639 # AM_MAKE_INCLUDE()
640 # -----------------
641 # Check to see how make treats includes.
642 AC_DEFUN([AM_MAKE_INCLUDE],
643 [am_make=${MAKE-make}
644 cat > confinc << 'END'
645 am__doit:
646 @echo this is the am__doit target
647 .PHONY: am__doit
648 END
649 # If we don't find an include directive, just comment out the code.
650 AC_MSG_CHECKING([for style of include used by $am_make])
651 am__include="#"
652 am__quote=
653 _am_result=none
654 # First try GNU make style include.
655 echo "include confinc" > confmf
656 # Ignore all kinds of additional output from `make'.
657 case `$am_make -s -f confmf 2> /dev/null` in #(
658 *the\ am__doit\ target*)
659 am__include=include
660 am__quote=
661 _am_result=GNU
662 ;;
663 esac
664 # Now try BSD make style include.
665 if test "$am__include" = "#"; then
666 echo '.include "confinc"' > confmf
667 case `$am_make -s -f confmf 2> /dev/null` in #(
668 *the\ am__doit\ target*)
669 am__include=.include
670 am__quote="\""
671 _am_result=BSD
672 ;;
673 esac
674 fi
675 AC_SUBST([am__include])
676 AC_SUBST([am__quote])
677 AC_MSG_RESULT([$_am_result])
678 rm -f confinc confmf
679 ])
680
681 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
682
683 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
684 # Free Software Foundation, Inc.
685 #
686 # This file is free software; the Free Software Foundation
687 # gives unlimited permission to copy and/or distribute it,
688 # with or without modifications, as long as this notice is preserved.
689
690 # serial 6
691
692 # AM_MISSING_PROG(NAME, PROGRAM)
693 # ------------------------------
694 AC_DEFUN([AM_MISSING_PROG],
695 [AC_REQUIRE([AM_MISSING_HAS_RUN])
696 $1=${$1-"${am_missing_run}$2"}
697 AC_SUBST($1)])
698
699
700 # AM_MISSING_HAS_RUN
701 # ------------------
702 # Define MISSING if not defined so far and test if it supports --run.
703 # If it does, set am_missing_run to use it, otherwise, to nothing.
704 AC_DEFUN([AM_MISSING_HAS_RUN],
705 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
706 AC_REQUIRE_AUX_FILE([missing])dnl
707 if test x"${MISSING+set}" != xset; then
708 case $am_aux_dir in
709 *\ * | *\ *)
710 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
711 *)
712 MISSING="\${SHELL} $am_aux_dir/missing" ;;
713 esac
714 fi
715 # Use eval to expand $SHELL
716 if eval "$MISSING --run true"; then
717 am_missing_run="$MISSING --run "
718 else
719 am_missing_run=
720 AC_MSG_WARN([`missing' script is too old or missing])
721 fi
722 ])
723
724 # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
725 #
726 # This file is free software; the Free Software Foundation
727 # gives unlimited permission to copy and/or distribute it,
728 # with or without modifications, as long as this notice is preserved.
729
730 # AM_PROG_MKDIR_P
731 # ---------------
732 # Check for `mkdir -p'.
733 AC_DEFUN([AM_PROG_MKDIR_P],
734 [AC_PREREQ([2.60])dnl
735 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
736 dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
737 dnl while keeping a definition of mkdir_p for backward compatibility.
738 dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
739 dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
740 dnl Makefile.ins that do not define MKDIR_P, so we do our own
741 dnl adjustment using top_builddir (which is defined more often than
742 dnl MKDIR_P).
743 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
744 case $mkdir_p in
745 [[\\/$]]* | ?:[[\\/]]*) ;;
746 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
747 esac
748 ])
749
750 # Helper functions for option handling. -*- Autoconf -*-
751
752 # Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
753 #
754 # This file is free software; the Free Software Foundation
755 # gives unlimited permission to copy and/or distribute it,
756 # with or without modifications, as long as this notice is preserved.
757
758 # serial 4
759
760 # _AM_MANGLE_OPTION(NAME)
761 # -----------------------
762 AC_DEFUN([_AM_MANGLE_OPTION],
763 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
764
765 # _AM_SET_OPTION(NAME)
766 # ------------------------------
767 # Set option NAME. Presently that only means defining a flag for this option.
768 AC_DEFUN([_AM_SET_OPTION],
769 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
770
771 # _AM_SET_OPTIONS(OPTIONS)
772 # ----------------------------------
773 # OPTIONS is a space-separated list of Automake options.
774 AC_DEFUN([_AM_SET_OPTIONS],
775 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
776
777 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
778 # -------------------------------------------
779 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
780 AC_DEFUN([_AM_IF_OPTION],
781 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
782
783 # Check to make sure that the build environment is sane. -*- Autoconf -*-
784
785 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
786 # Free Software Foundation, Inc.
787 #
788 # This file is free software; the Free Software Foundation
789 # gives unlimited permission to copy and/or distribute it,
790 # with or without modifications, as long as this notice is preserved.
791
792 # serial 5
793
794 # AM_SANITY_CHECK
795 # ---------------
796 AC_DEFUN([AM_SANITY_CHECK],
797 [AC_MSG_CHECKING([whether build environment is sane])
798 # Just in case
799 sleep 1
800 echo timestamp > conftest.file
801 # Reject unsafe characters in $srcdir or the absolute working directory
802 # name. Accept space and tab only in the latter.
803 am_lf='
804 '
805 case `pwd` in
806 *[[\\\"\#\$\&\'\`$am_lf]]*)
807 AC_MSG_ERROR([unsafe absolute working directory name]);;
808 esac
809 case $srcdir in
810 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
811 AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
812 esac
813
814 # Do `set' in a subshell so we don't clobber the current shell's
815 # arguments. Must try -L first in case configure is actually a
816 # symlink; some systems play weird games with the mod time of symlinks
817 # (eg FreeBSD returns the mod time of the symlink's containing
818 # directory).
819 if (
820 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
821 if test "$[*]" = "X"; then
822 # -L didn't work.
823 set X `ls -t "$srcdir/configure" conftest.file`
824 fi
825 rm -f conftest.file
826 if test "$[*]" != "X $srcdir/configure conftest.file" \
827 && test "$[*]" != "X conftest.file $srcdir/configure"; then
828
829 # If neither matched, then we have a broken ls. This can happen
830 # if, for instance, CONFIG_SHELL is bash and it inherits a
831 # broken ls alias from the environment. This has actually
832 # happened. Such a system could not be considered "sane".
833 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
834 alias in your environment])
835 fi
836
837 test "$[2]" = conftest.file
838 )
839 then
840 # Ok.
841 :
842 else
843 AC_MSG_ERROR([newly created file is older than distributed files!
844 Check your system clock])
845 fi
846 AC_MSG_RESULT(yes)])
847
848 # Copyright (C) 2009 Free Software Foundation, Inc.
849 #
850 # This file is free software; the Free Software Foundation
851 # gives unlimited permission to copy and/or distribute it,
852 # with or without modifications, as long as this notice is preserved.
853
854 # serial 1
855
856 # AM_SILENT_RULES([DEFAULT])
857 # --------------------------
858 # Enable less verbose build rules; with the default set to DEFAULT
859 # (`yes' being less verbose, `no' or empty being verbose).
860 AC_DEFUN([AM_SILENT_RULES],
861 [AC_ARG_ENABLE([silent-rules],
862 [ --enable-silent-rules less verbose build output (undo: `make V=1')
863 --disable-silent-rules verbose build output (undo: `make V=0')])
864 case $enable_silent_rules in
865 yes) AM_DEFAULT_VERBOSITY=0;;
866 no) AM_DEFAULT_VERBOSITY=1;;
867 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
868 esac
869 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
870 AM_BACKSLASH='\'
871 AC_SUBST([AM_BACKSLASH])dnl
872 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
873 ])
874
875 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
876 #
877 # This file is free software; the Free Software Foundation
878 # gives unlimited permission to copy and/or distribute it,
879 # with or without modifications, as long as this notice is preserved.
880
881 # AM_PROG_INSTALL_STRIP
882 # ---------------------
883 # One issue with vendor `install' (even GNU) is that you can't
884 # specify the program used to strip binaries. This is especially
885 # annoying in cross-compiling environments, where the build's strip
886 # is unlikely to handle the host's binaries.
887 # Fortunately install-sh will honor a STRIPPROG variable, so we
888 # always use install-sh in `make install-strip', and initialize
889 # STRIPPROG with the value of the STRIP variable (set by the user).
890 AC_DEFUN([AM_PROG_INSTALL_STRIP],
891 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
892 # Installed binaries are usually stripped using `strip' when the user
893 # run `make install-strip'. However `strip' might not be the right
894 # tool to use in cross-compilation environments, therefore Automake
895 # will honor the `STRIP' environment variable to overrule this program.
896 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
897 if test "$cross_compiling" != no; then
898 AC_CHECK_TOOL([STRIP], [strip], :)
899 fi
900 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
901 AC_SUBST([INSTALL_STRIP_PROGRAM])])
902
903 # Copyright (C) 2006, 2008 Free Software Foundation, Inc.
904 #
905 # This file is free software; the Free Software Foundation
906 # gives unlimited permission to copy and/or distribute it,
907 # with or without modifications, as long as this notice is preserved.
908
909 # serial 2
910
911 # _AM_SUBST_NOTMAKE(VARIABLE)
912 # ---------------------------
913 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
914 # This macro is traced by Automake.
915 AC_DEFUN([_AM_SUBST_NOTMAKE])
916
917 # AM_SUBST_NOTMAKE(VARIABLE)
918 # ---------------------------
919 # Public sister of _AM_SUBST_NOTMAKE.
920 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
921
922 # Check how to create a tarball. -*- Autoconf -*-
923
924 # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
925 #
926 # This file is free software; the Free Software Foundation
927 # gives unlimited permission to copy and/or distribute it,
928 # with or without modifications, as long as this notice is preserved.
929
930 # serial 2
931
932 # _AM_PROG_TAR(FORMAT)
933 # --------------------
934 # Check how to create a tarball in format FORMAT.
935 # FORMAT should be one of `v7', `ustar', or `pax'.
936 #
937 # Substitute a variable $(am__tar) that is a command
938 # writing to stdout a FORMAT-tarball containing the directory
939 # $tardir.
940 # tardir=directory && $(am__tar) > result.tar
941 #
942 # Substitute a variable $(am__untar) that extract such
943 # a tarball read from stdin.
944 # $(am__untar) < result.tar
945 AC_DEFUN([_AM_PROG_TAR],
946 [# Always define AMTAR for backward compatibility.
947 AM_MISSING_PROG([AMTAR], [tar])
948 m4_if([$1], [v7],
949 [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
950 [m4_case([$1], [ustar],, [pax],,
951 [m4_fatal([Unknown tar format])])
952 AC_MSG_CHECKING([how to create a $1 tar archive])
953 # Loop over all known methods to create a tar archive until one works.
954 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
955 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
956 # Do not fold the above two line into one, because Tru64 sh and
957 # Solaris sh will not grok spaces in the rhs of `-'.
958 for _am_tool in $_am_tools
959 do
960 case $_am_tool in
961 gnutar)
962 for _am_tar in tar gnutar gtar;
963 do
964 AM_RUN_LOG([$_am_tar --version]) && break
965 done
966 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
967 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
968 am__untar="$_am_tar -xf -"
969 ;;
970 plaintar)
971 # Must skip GNU tar: if it does not support --format= it doesn't create
972 # ustar tarball either.
973 (tar --version) >/dev/null 2>&1 && continue
974 am__tar='tar chf - "$$tardir"'
975 am__tar_='tar chf - "$tardir"'
976 am__untar='tar xf -'
977 ;;
978 pax)
979 am__tar='pax -L -x $1 -w "$$tardir"'
980 am__tar_='pax -L -x $1 -w "$tardir"'
981 am__untar='pax -r'
982 ;;
983 cpio)
984 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
985 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
986 am__untar='cpio -i -H $1 -d'
987 ;;
988 none)
989 am__tar=false
990 am__tar_=false
991 am__untar=false
992 ;;
993 esac
994
995 # If the value was cached, stop now. We just wanted to have am__tar
996 # and am__untar set.
997 test -n "${am_cv_prog_tar_$1}" && break
998
999 # tar/untar a dummy directory, and stop if the command works
1000 rm -rf conftest.dir
1001 mkdir conftest.dir
1002 echo GrepMe > conftest.dir/file
1003 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1004 rm -rf conftest.dir
1005 if test -s conftest.tar; then
1006 AM_RUN_LOG([$am__untar <conftest.tar])
1007 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1008 fi
1009 done
1010 rm -rf conftest.dir
1011
1012 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1013 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1014 AC_SUBST([am__tar])
1015 AC_SUBST([am__untar])
1016 ]) # _AM_PROG_TAR
429 dnl
430 dnl Now the definitions that aclocal will find
431 dnl
432 ifdef(glib_configure_ac,[],[
433 AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
434 AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
435 ])dnl
436
437 # GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
438 #
439 # Create a temporary file with TEST-FILE as its contents and pass the
440 # file name to PROGRAM. Perform ACTION-IF-PASS if PROGRAM exits with
441 # 0 and perform ACTION-IF-FAIL for any other exit status.
442 AC_DEFUN([GLIB_RUN_PROG],
443 [cat >conftest.foo <<_ACEOF
444 $2
445 _ACEOF
446 if AC_RUN_LOG([$1 conftest.foo]); then
447 m4_ifval([$3], [$3], [:])
448 m4_ifvaln([$4], [else $4])dnl
449 echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
450 sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
451 fi])
452
1017453
1018454 # gnome-common.m4
1019455 #
16341070 dnl
16351071 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
16361072 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
1073 m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
16371074 m4_require([_LT_CMD_RELOAD])dnl
16381075 m4_require([_LT_CHECK_MAGIC_METHOD])dnl
1076 m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
16391077 m4_require([_LT_CMD_OLD_ARCHIVE])dnl
16401078 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
1079 m4_require([_LT_WITH_SYSROOT])dnl
16411080
16421081 _LT_CONFIG_LIBTOOL_INIT([
16431082 # See if we are running on zsh, and set the options which allow our
22081647 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22091648 # text mode, it properly converts lines to CR/LF. This bash problem
22101649 # is reportedly fixed, but why not run on old versions too?
2211 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
2212 || (rm -f "$cfgfile"; exit 1)
2213
2214 _LT_PROG_XSI_SHELLFNS
2215
2216 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
2217 || (rm -f "$cfgfile"; exit 1)
2218
2219 mv -f "$cfgfile" "$ofile" ||
1650 sed '$q' "$ltmain" >> "$cfgfile" \
1651 || (rm -f "$cfgfile"; exit 1)
1652
1653 _LT_PROG_REPLACE_SHELLFNS
1654
1655 mv -f "$cfgfile" "$ofile" ||
22201656 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22211657 chmod +x "$ofile"
22221658 ],
25331969 fi
25341970 ])
25351971
2536 # _LT_SYS_MODULE_PATH_AIX
2537 # -----------------------
1972 # _LT_SYS_MODULE_PATH_AIX([TAGNAME])
1973 # ----------------------------------
25381974 # Links a minimal program and checks the executable
25391975 # for the system default hardcoded library path. In most cases,
25401976 # this is /usr/lib:/lib, but when the MPI compilers are used
25411977 # the location of the communication and MPI libs are included too.
25421978 # If we don't find anything, use the default library path according
25431979 # to the aix ld manual.
1980 # Store the results from the different compilers for each TAGNAME.
1981 # Allow to override them for all tags through lt_cv_aix_libpath.
25441982 m4_defun([_LT_SYS_MODULE_PATH_AIX],
25451983 [m4_require([_LT_DECL_SED])dnl
2546 AC_LINK_IFELSE(AC_LANG_PROGRAM,[
2547 lt_aix_libpath_sed='
2548 /Import File Strings/,/^$/ {
2549 /^0/ {
2550 s/^0 *\(.*\)$/\1/
2551 p
2552 }
2553 }'
2554 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
2555 # Check for a 64-bit object if we didn't find anything.
2556 if test -z "$aix_libpath"; then
2557 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
2558 fi],[])
2559 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1984 if test "${lt_cv_aix_libpath+set}" = set; then
1985 aix_libpath=$lt_cv_aix_libpath
1986 else
1987 AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
1988 [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
1989 lt_aix_libpath_sed='[
1990 /Import File Strings/,/^$/ {
1991 /^0/ {
1992 s/^0 *\([^ ]*\) *$/\1/
1993 p
1994 }
1995 }]'
1996 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1997 # Check for a 64-bit object if we didn't find anything.
1998 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1999 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
2000 fi],[])
2001 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
2002 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
2003 fi
2004 ])
2005 aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
2006 fi
25602007 ])# _LT_SYS_MODULE_PATH_AIX
25612008
25622009
25812028
25822029 AC_MSG_CHECKING([how to print strings])
25832030 # Test print first, because it will be a builtin if present.
2584 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
2031 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
25852032 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
25862033 ECHO='print -r --'
25872034 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
26242071 _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
26252072 ])# _LT_PROG_ECHO_BACKSLASH
26262073
2074
2075 # _LT_WITH_SYSROOT
2076 # ----------------
2077 AC_DEFUN([_LT_WITH_SYSROOT],
2078 [AC_MSG_CHECKING([for sysroot])
2079 AC_ARG_WITH([sysroot],
2080 [ --with-sysroot[=DIR] Search for dependent libraries within DIR
2081 (or the compiler's sysroot if not specified).],
2082 [], [with_sysroot=no])
2083
2084 dnl lt_sysroot will always be passed unquoted. We quote it here
2085 dnl in case the user passed a directory name.
2086 lt_sysroot=
2087 case ${with_sysroot} in #(
2088 yes)
2089 if test "$GCC" = yes; then
2090 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
2091 fi
2092 ;; #(
2093 /*)
2094 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
2095 ;; #(
2096 no|'')
2097 ;; #(
2098 *)
2099 AC_MSG_RESULT([${with_sysroot}])
2100 AC_MSG_ERROR([The sysroot must be an absolute path.])
2101 ;;
2102 esac
2103
2104 AC_MSG_RESULT([${lt_sysroot:-no}])
2105 _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
2106 [dependent libraries, and in which our libraries should be installed.])])
26272107
26282108 # _LT_ENABLE_LOCK
26292109 # ---------------
27712251 ])# _LT_ENABLE_LOCK
27722252
27732253
2254 # _LT_PROG_AR
2255 # -----------
2256 m4_defun([_LT_PROG_AR],
2257 [AC_CHECK_TOOLS(AR, [ar], false)
2258 : ${AR=ar}
2259 : ${AR_FLAGS=cru}
2260 _LT_DECL([], [AR], [1], [The archiver])
2261 _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
2262
2263 AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
2264 [lt_cv_ar_at_file=no
2265 AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
2266 [echo conftest.$ac_objext > conftest.lst
2267 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
2268 AC_TRY_EVAL([lt_ar_try])
2269 if test "$ac_status" -eq 0; then
2270 # Ensure the archiver fails upon bogus file names.
2271 rm -f conftest.$ac_objext libconftest.a
2272 AC_TRY_EVAL([lt_ar_try])
2273 if test "$ac_status" -ne 0; then
2274 lt_cv_ar_at_file=@
2275 fi
2276 fi
2277 rm -f conftest.* libconftest.a
2278 ])
2279 ])
2280
2281 if test "x$lt_cv_ar_at_file" = xno; then
2282 archiver_list_spec=
2283 else
2284 archiver_list_spec=$lt_cv_ar_at_file
2285 fi
2286 _LT_DECL([], [archiver_list_spec], [1],
2287 [How to feed a file listing to the archiver])
2288 ])# _LT_PROG_AR
2289
2290
27742291 # _LT_CMD_OLD_ARCHIVE
27752292 # -------------------
27762293 m4_defun([_LT_CMD_OLD_ARCHIVE],
2777 [AC_CHECK_TOOL(AR, ar, false)
2778 test -z "$AR" && AR=ar
2779 test -z "$AR_FLAGS" && AR_FLAGS=cru
2780 _LT_DECL([], [AR], [1], [The archiver])
2781 _LT_DECL([], [AR_FLAGS], [1])
2294 [_LT_PROG_AR
27822295
27832296 AC_CHECK_TOOL(STRIP, strip, :)
27842297 test -z "$STRIP" && STRIP=:
31182631 /* When -fvisbility=hidden is used, assume the code has been annotated
31192632 correspondingly for the symbols needed. */
31202633 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
3121 void fnord () __attribute__((visibility("default")));
2634 int fnord () __attribute__((visibility("default")));
31222635 #endif
31232636
3124 void fnord () { int i=42; }
2637 int fnord () { return 42; }
31252638 int main ()
31262639 {
31272640 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
36613174 need_version=no
36623175 need_lib_prefix=no
36633176
3664 case $GCC,$host_os in
3665 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
3177 case $GCC,$cc_basename in
3178 yes,*)
3179 # gcc
36663180 library_names_spec='$libname.dll.a'
36673181 # DLL is installed to $(libdir)/../bin by postinstall_cmds
36683182 postinstall_cmds='base_file=`basename \${file}`~
36953209 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
36963210 ;;
36973211 esac
3212 dynamic_linker='Win32 ld.exe'
36983213 ;;
36993214
3215 *,cl*)
3216 # Native MSVC
3217 libname_spec='$name'
3218 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3219 library_names_spec='${libname}.dll.lib'
3220
3221 case $build_os in
3222 mingw*)
3223 sys_lib_search_path_spec=
3224 lt_save_ifs=$IFS
3225 IFS=';'
3226 for lt_path in $LIB
3227 do
3228 IFS=$lt_save_ifs
3229 # Let DOS variable expansion print the short 8.3 style file name.
3230 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
3231 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
3232 done
3233 IFS=$lt_save_ifs
3234 # Convert to MSYS style.
3235 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
3236 ;;
3237 cygwin*)
3238 # Convert to unix form, then to dos form, then back to unix form
3239 # but this time dos style (no spaces!) so that the unix form looks
3240 # like /cygdrive/c/PROGRA~1:/cygdr...
3241 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
3242 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
3243 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
3244 ;;
3245 *)
3246 sys_lib_search_path_spec="$LIB"
3247 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
3248 # It is most probably a Windows format PATH.
3249 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
3250 else
3251 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
3252 fi
3253 # FIXME: find the short name or the path components, as spaces are
3254 # common. (e.g. "Program Files" -> "PROGRA~1")
3255 ;;
3256 esac
3257
3258 # DLL is installed to $(libdir)/../bin by postinstall_cmds
3259 postinstall_cmds='base_file=`basename \${file}`~
3260 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
3261 dldir=$destdir/`dirname \$dlpath`~
3262 test -d \$dldir || mkdir -p \$dldir~
3263 $install_prog $dir/$dlname \$dldir/$dlname'
3264 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
3265 dlpath=$dir/\$dldll~
3266 $RM \$dlpath'
3267 shlibpath_overrides_runpath=yes
3268 dynamic_linker='Win32 link.exe'
3269 ;;
3270
37003271 *)
3272 # Assume MSVC wrapper
37013273 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
3274 dynamic_linker='Win32 ld.exe'
37023275 ;;
37033276 esac
3704 dynamic_linker='Win32 ld.exe'
37053277 # FIXME: first we should search . and the directory the executable is in
37063278 shlibpath_var=PATH
37073279 ;;
44093981 esac
44103982 reload_cmds='$LD$reload_flag -o $output$reload_objs'
44113983 case $host_os in
3984 cygwin* | mingw* | pw32* | cegcc*)
3985 if test "$GCC" != yes; then
3986 reload_cmds=false
3987 fi
3988 ;;
44123989 darwin*)
44133990 if test "$GCC" = yes; then
44143991 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
46274204 ;;
46284205 esac
46294206 ])
4207
4208 file_magic_glob=
4209 want_nocaseglob=no
4210 if test "$build" = "$host"; then
4211 case $host_os in
4212 mingw* | pw32*)
4213 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4214 want_nocaseglob=yes
4215 else
4216 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
4217 fi
4218 ;;
4219 esac
4220 fi
4221
46304222 file_magic_cmd=$lt_cv_file_magic_cmd
46314223 deplibs_check_method=$lt_cv_deplibs_check_method
46324224 test -z "$deplibs_check_method" && deplibs_check_method=unknown
46344226 _LT_DECL([], [deplibs_check_method], [1],
46354227 [Method to check whether dependent libraries are shared objects])
46364228 _LT_DECL([], [file_magic_cmd], [1],
4637 [Command to use when deplibs_check_method == "file_magic"])
4229 [Command to use when deplibs_check_method = "file_magic"])
4230 _LT_DECL([], [file_magic_glob], [1],
4231 [How to find potential files when deplibs_check_method = "file_magic"])
4232 _LT_DECL([], [want_nocaseglob], [1],
4233 [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
46384234 ])# _LT_CHECK_MAGIC_METHOD
46394235
46404236
47374333 dnl AC_DEFUN([AM_PROG_NM], [])
47384334 dnl AC_DEFUN([AC_PROG_NM], [])
47394335
4336 # _LT_CHECK_SHAREDLIB_FROM_LINKLIB
4337 # --------------------------------
4338 # how to determine the name of the shared library
4339 # associated with a specific link library.
4340 # -- PORTME fill in with the dynamic library characteristics
4341 m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
4342 [m4_require([_LT_DECL_EGREP])
4343 m4_require([_LT_DECL_OBJDUMP])
4344 m4_require([_LT_DECL_DLLTOOL])
4345 AC_CACHE_CHECK([how to associate runtime and link libraries],
4346 lt_cv_sharedlib_from_linklib_cmd,
4347 [lt_cv_sharedlib_from_linklib_cmd='unknown'
4348
4349 case $host_os in
4350 cygwin* | mingw* | pw32* | cegcc*)
4351 # two different shell functions defined in ltmain.sh
4352 # decide which to use based on capabilities of $DLLTOOL
4353 case `$DLLTOOL --help 2>&1` in
4354 *--identify-strict*)
4355 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
4356 ;;
4357 *)
4358 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
4359 ;;
4360 esac
4361 ;;
4362 *)
4363 # fallback: assume linklib IS sharedlib
4364 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
4365 ;;
4366 esac
4367 ])
4368 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
4369 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
4370
4371 _LT_DECL([], [sharedlib_from_linklib_cmd], [1],
4372 [Command to associate shared and link libraries])
4373 ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
4374
4375
4376 # _LT_PATH_MANIFEST_TOOL
4377 # ----------------------
4378 # locate the manifest tool
4379 m4_defun([_LT_PATH_MANIFEST_TOOL],
4380 [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
4381 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
4382 AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
4383 [lt_cv_path_mainfest_tool=no
4384 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
4385 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
4386 cat conftest.err >&AS_MESSAGE_LOG_FD
4387 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
4388 lt_cv_path_mainfest_tool=yes
4389 fi
4390 rm -f conftest*])
4391 if test "x$lt_cv_path_mainfest_tool" != xyes; then
4392 MANIFEST_TOOL=:
4393 fi
4394 _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
4395 ])# _LT_PATH_MANIFEST_TOOL
4396
47404397
47414398 # LT_LIB_M
47424399 # --------
48634520 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
48644521
48654522 # Transform an extracted symbol line into symbol name and symbol address
4866 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
4867 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
4523 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
4524 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
48684525
48694526 # Handle CRLF in mingw tool chain
48704527 opt_cr=
49004557 else
49014558 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
49024559 fi
4560 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
49034561
49044562 # Check to see that the pipe works correctly.
49054563 pipe_works=no
49334591 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
49344592 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
49354593 cat <<_LT_EOF > conftest.$ac_ext
4594 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
4595 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
4596 /* DATA imports from DLLs on WIN32 con't be const, because runtime
4597 relocations are performed -- see ld's documentation on pseudo-relocs. */
4598 # define LT@&t@_DLSYM_CONST
4599 #elif defined(__osf__)
4600 /* This system does not cope well with relocations in const data. */
4601 # define LT@&t@_DLSYM_CONST
4602 #else
4603 # define LT@&t@_DLSYM_CONST const
4604 #endif
4605
49364606 #ifdef __cplusplus
49374607 extern "C" {
49384608 #endif
49444614 cat <<_LT_EOF >> conftest.$ac_ext
49454615
49464616 /* The mapping between symbol names and symbols. */
4947 const struct {
4617 LT@&t@_DLSYM_CONST struct {
49484618 const char *name;
49494619 void *address;
49504620 }
49704640 _LT_EOF
49714641 # Now try linking the two files.
49724642 mv conftest.$ac_objext conftstm.$ac_objext
4973 lt_save_LIBS="$LIBS"
4974 lt_save_CFLAGS="$CFLAGS"
4643 lt_globsym_save_LIBS=$LIBS
4644 lt_globsym_save_CFLAGS=$CFLAGS
49754645 LIBS="conftstm.$ac_objext"
49764646 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
49774647 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
49784648 pipe_works=yes
49794649 fi
4980 LIBS="$lt_save_LIBS"
4981 CFLAGS="$lt_save_CFLAGS"
4650 LIBS=$lt_globsym_save_LIBS
4651 CFLAGS=$lt_globsym_save_CFLAGS
49824652 else
49834653 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
49844654 fi
50114681 AC_MSG_RESULT(ok)
50124682 fi
50134683
4684 # Response file support.
4685 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4686 nm_file_list_spec='@'
4687 elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
4688 nm_file_list_spec='@'
4689 fi
4690
50144691 _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
50154692 [Take the output of nm and produce a listing of raw symbols and C names])
50164693 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
50214698 _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
50224699 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
50234700 [Transform the output of nm in a C name address pair when lib prefix is needed])
4701 _LT_DECL([], [nm_file_list_spec], [1],
4702 [Specify filename containing input files for $NM])
50244703 ]) # _LT_CMD_GLOBAL_SYMBOLS
50254704
50264705
50324711 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
50334712 _LT_TAGVAR(lt_prog_compiler_static, $1)=
50344713
5035 AC_MSG_CHECKING([for $compiler option to produce PIC])
50364714 m4_if([$1], [CXX], [
50374715 # C++ specific cases for pic, static, wl, etc.
50384716 if test "$GXX" = yes; then
51364814 # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
51374815 ;;
51384816 esac
4817 ;;
4818 mingw* | cygwin* | os2* | pw32* | cegcc*)
4819 # This hack is so that the source file can tell whether it is being
4820 # built for inclusion in a dll (and should export symbols for example).
4821 m4_if([$1], [GCJ], [],
4822 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
51394823 ;;
51404824 dgux*)
51414825 case $cc_basename in
55115195 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
55125196 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
55135197 ;;
5198 nagfor*)
5199 # NAG Fortran compiler
5200 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
5201 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5202 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5203 ;;
55145204 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
55155205 # Portland Group compilers (*not* the Pentium gcc compiler,
55165206 # which looks to be a dead project)
56305320 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
56315321 ;;
56325322 esac
5633 AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
5634 _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
5635 [How to pass a linker flag through the compiler])
5323
5324 AC_CACHE_CHECK([for $compiler option to produce PIC],
5325 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
5326 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
5327 _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
56365328
56375329 #
56385330 # Check to make sure the PIC flag actually works.
56515343 _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
56525344 [Additional compiler flags for building library objects])
56535345
5346 _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
5347 [How to pass a linker flag through the compiler])
56545348 #
56555349 # Check to make sure the static flag actually works.
56565350 #
56715365 m4_defun([_LT_LINKER_SHLIBS],
56725366 [AC_REQUIRE([LT_PATH_LD])dnl
56735367 AC_REQUIRE([LT_PATH_NM])dnl
5368 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
56745369 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
56755370 m4_require([_LT_DECL_EGREP])dnl
56765371 m4_require([_LT_DECL_SED])dnl
56795374 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
56805375 m4_if([$1], [CXX], [
56815376 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5377 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
56825378 case $host_os in
56835379 aix[[4-9]]*)
56845380 # If we're using GNU nm, then we don't want the "-C" option.
56935389 ;;
56945390 pw32*)
56955391 _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5696 ;;
5392 ;;
56975393 cygwin* | mingw* | cegcc*)
5698 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
5699 ;;
5394 case $cc_basename in
5395 cl*) ;;
5396 *)
5397 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
5398 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
5399 ;;
5400 esac
5401 ;;
57005402 *)
57015403 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5702 ;;
5404 ;;
57035405 esac
5704 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
57055406 ], [
57065407 runpath_var=
57075408 _LT_TAGVAR(allow_undefined_flag, $1)=
58695570 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
58705571 _LT_TAGVAR(always_export_symbols, $1)=no
58715572 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5872 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
5573 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
5574 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
58735575
58745576 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
58755577 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
59175619 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
59185620 && test "$tmp_diet" = no
59195621 then
5920 tmp_addflag=
5622 tmp_addflag=' $pic_flag'
59215623 tmp_sharedflag='-shared'
59225624 case $cc_basename,$host_cpu in
59235625 pgcc*) # Portland Group C compiler
59875689 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
59885690 wlarc=
59895691 else
5990 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5991 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5692 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5693 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
59925694 fi
59935695 ;;
59945696
60065708
60075709 _LT_EOF
60085710 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6009 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6010 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5711 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5712 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
60115713 else
60125714 _LT_TAGVAR(ld_shlibs, $1)=no
60135715 fi
60535755
60545756 *)
60555757 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6056 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6057 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5758 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5759 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
60585760 else
60595761 _LT_TAGVAR(ld_shlibs, $1)=no
60605762 fi
61845886 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
61855887 # Determine the default libpath from the value encoded in an
61865888 # empty executable.
6187 _LT_SYS_MODULE_PATH_AIX
5889 _LT_SYS_MODULE_PATH_AIX([$1])
61885890 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
61895891 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
61905892 else
61955897 else
61965898 # Determine the default libpath from the value encoded in an
61975899 # empty executable.
6198 _LT_SYS_MODULE_PATH_AIX
5900 _LT_SYS_MODULE_PATH_AIX([$1])
61995901 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
62005902 # Warning - without using the other run time loading flags,
62015903 # -berok will link without error, but may produce a broken library.
62395941 # Microsoft Visual C++.
62405942 # hardcode_libdir_flag_spec is actually meaningless, as there is
62415943 # no search path for DLLs.
6242 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6243 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6244 # Tell ltmain to make .lib files, not .a files.
6245 libext=lib
6246 # Tell ltmain to make .dll files, not .so files.
6247 shrext_cmds=".dll"
6248 # FIXME: Setting linknames here is a bad hack.
6249 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
6250 # The linker will automatically build a .lib file if we build a DLL.
6251 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6252 # FIXME: Should let the user specify the lib program.
6253 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
6254 _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
6255 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5944 case $cc_basename in
5945 cl*)
5946 # Native MSVC
5947 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5948 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5949 _LT_TAGVAR(always_export_symbols, $1)=yes
5950 _LT_TAGVAR(file_list_spec, $1)='@'
5951 # Tell ltmain to make .lib files, not .a files.
5952 libext=lib
5953 # Tell ltmain to make .dll files, not .so files.
5954 shrext_cmds=".dll"
5955 # FIXME: Setting linknames here is a bad hack.
5956 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
5957 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5958 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
5959 else
5960 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
5961 fi~
5962 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
5963 linknames='
5964 # The linker will not automatically build a static lib if we build a DLL.
5965 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5966 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5967 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
5968 # Don't use ranlib
5969 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
5970 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
5971 lt_tool_outputfile="@TOOL_OUTPUT@"~
5972 case $lt_outputfile in
5973 *.exe|*.EXE) ;;
5974 *)
5975 lt_outputfile="$lt_outputfile.exe"
5976 lt_tool_outputfile="$lt_tool_outputfile.exe"
5977 ;;
5978 esac~
5979 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
5980 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
5981 $RM "$lt_outputfile.manifest";
5982 fi'
5983 ;;
5984 *)
5985 # Assume MSVC wrapper
5986 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5987 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5988 # Tell ltmain to make .lib files, not .a files.
5989 libext=lib
5990 # Tell ltmain to make .dll files, not .so files.
5991 shrext_cmds=".dll"
5992 # FIXME: Setting linknames here is a bad hack.
5993 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
5994 # The linker will automatically build a .lib file if we build a DLL.
5995 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5996 # FIXME: Should let the user specify the lib program.
5997 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5998 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5999 ;;
6000 esac
62566001 ;;
62576002
62586003 darwin* | rhapsody*)
62906035
62916036 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
62926037 freebsd* | dragonfly*)
6293 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6038 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
62946039 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
62956040 _LT_TAGVAR(hardcode_direct, $1)=yes
62966041 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
62986043
62996044 hpux9*)
63006045 if test "$GCC" = yes; then
6301 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6046 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
63026047 else
63036048 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
63046049 fi
63146059
63156060 hpux10*)
63166061 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
6317 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6062 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
63186063 else
63196064 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
63206065 fi
63386083 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
63396084 ;;
63406085 ia64*)
6341 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6086 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
63426087 ;;
63436088 *)
6344 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6089 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
63456090 ;;
63466091 esac
63476092 else
63886133
63896134 irix5* | irix6* | nonstopux*)
63906135 if test "$GCC" = yes; then
6391 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6136 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
63926137 # Try to use the -exported_symbol ld option, if it does not
63936138 # work, assume that -exports_file does not work either and
63946139 # implicitly export all symbols.
6395 save_LDFLAGS="$LDFLAGS"
6396 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
6397 AC_LINK_IFELSE(int foo(void) {},
6398 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
6399 )
6400 LDFLAGS="$save_LDFLAGS"
6140 # This should be the same for all languages, so no per-tag cache variable.
6141 AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
6142 [lt_cv_irix_exported_symbol],
6143 [save_LDFLAGS="$LDFLAGS"
6144 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
6145 AC_LINK_IFELSE(
6146 [AC_LANG_SOURCE(
6147 [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
6148 [C++], [[int foo (void) { return 0; }]],
6149 [Fortran 77], [[
6150 subroutine foo
6151 end]],
6152 [Fortran], [[
6153 subroutine foo
6154 end]])])],
6155 [lt_cv_irix_exported_symbol=yes],
6156 [lt_cv_irix_exported_symbol=no])
6157 LDFLAGS="$save_LDFLAGS"])
6158 if test "$lt_cv_irix_exported_symbol" = yes; then
6159 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
6160 fi
64016161 else
64026162 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
64036163 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
64826242 osf4* | osf5*) # as osf3* with the addition of -msym flag
64836243 if test "$GCC" = yes; then
64846244 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6485 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6245 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
64866246 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
64876247 else
64886248 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
65016261 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
65026262 if test "$GCC" = yes; then
65036263 wlarc='${wl}'
6504 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6264 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
65056265 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6506 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
6266 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
65076267 else
65086268 case `$CC -V 2>&1` in
65096269 *"Compilers 5.0"*)
67756535 to runtime path list])
67766536 _LT_TAGDECL([], [link_all_deplibs], [0],
67776537 [Whether libtool must link a program against all its dependency libraries])
6778 _LT_TAGDECL([], [fix_srcfile_path], [1],
6779 [Fix the shell variable $srcfile for the compiler])
67806538 _LT_TAGDECL([], [always_export_symbols], [0],
67816539 [Set to "yes" if exported symbols are required])
67826540 _LT_TAGDECL([], [export_symbols_cmds], [2],
67876545 [Symbols that must always be exported])
67886546 _LT_TAGDECL([], [prelink_cmds], [2],
67896547 [Commands necessary for linking programs (against libraries) with templates])
6548 _LT_TAGDECL([], [postlink_cmds], [2],
6549 [Commands necessary for finishing linking programs])
67906550 _LT_TAGDECL([], [file_list_spec], [1],
67916551 [Specify filename containing input files])
67926552 dnl FIXME: Not yet implemented
68846644 m4_defun([_LT_LANG_CXX_CONFIG],
68856645 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
68866646 m4_require([_LT_DECL_EGREP])dnl
6647 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
68876648 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
68886649 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
68896650 (test "X$CXX" != "Xg++"))) ; then
69456706
69466707 # Allow CC to be a program name with arguments.
69476708 lt_save_CC=$CC
6709 lt_save_CFLAGS=$CFLAGS
69486710 lt_save_LD=$LD
69496711 lt_save_GCC=$GCC
69506712 GCC=$GXX
69626724 fi
69636725 test -z "${LDCXX+set}" || LD=$LDCXX
69646726 CC=${CXX-"c++"}
6727 CFLAGS=$CXXFLAGS
69656728 compiler=$CC
69666729 _LT_TAGVAR(compiler, $1)=$CC
69676730 _LT_CC_BASENAME([$compiler])
69836746 # Check if GNU C++ uses GNU ld as the underlying linker, since the
69846747 # archiving commands below assume that GNU ld is being used.
69856748 if test "$with_gnu_ld" = yes; then
6986 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6987 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6749 _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6750 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
69886751
69896752 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
69906753 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
71256888 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
71266889 # Determine the default libpath from the value encoded in an empty
71276890 # executable.
7128 _LT_SYS_MODULE_PATH_AIX
6891 _LT_SYS_MODULE_PATH_AIX([$1])
71296892 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
71306893
71316894 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
71376900 else
71386901 # Determine the default libpath from the value encoded in an
71396902 # empty executable.
7140 _LT_SYS_MODULE_PATH_AIX
6903 _LT_SYS_MODULE_PATH_AIX([$1])
71416904 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
71426905 # Warning - without using the other run time loading flags,
71436906 # -berok will link without error, but may produce a broken library.
71796942 ;;
71806943
71816944 cygwin* | mingw* | pw32* | cegcc*)
7182 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
7183 # as there is no search path for DLLs.
7184 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7185 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
7186 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
7187 _LT_TAGVAR(always_export_symbols, $1)=no
7188 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
7189
7190 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7191 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7192 # If the export-symbols file already is a .def file (1st line
7193 # is EXPORTS), use it as is; otherwise, prepend...
7194 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7195 cp $export_symbols $output_objdir/$soname.def;
7196 else
7197 echo EXPORTS > $output_objdir/$soname.def;
7198 cat $export_symbols >> $output_objdir/$soname.def;
7199 fi~
7200 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7201 else
7202 _LT_TAGVAR(ld_shlibs, $1)=no
7203 fi
7204 ;;
6945 case $GXX,$cc_basename in
6946 ,cl* | no,cl*)
6947 # Native MSVC
6948 # hardcode_libdir_flag_spec is actually meaningless, as there is
6949 # no search path for DLLs.
6950 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6951 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6952 _LT_TAGVAR(always_export_symbols, $1)=yes
6953 _LT_TAGVAR(file_list_spec, $1)='@'
6954 # Tell ltmain to make .lib files, not .a files.
6955 libext=lib
6956 # Tell ltmain to make .dll files, not .so files.
6957 shrext_cmds=".dll"
6958 # FIXME: Setting linknames here is a bad hack.
6959 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
6960 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6961 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
6962 else
6963 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
6964 fi~
6965 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
6966 linknames='
6967 # The linker will not automatically build a static lib if we build a DLL.
6968 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6969 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6970 # Don't use ranlib
6971 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
6972 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
6973 lt_tool_outputfile="@TOOL_OUTPUT@"~
6974 case $lt_outputfile in
6975 *.exe|*.EXE) ;;
6976 *)
6977 lt_outputfile="$lt_outputfile.exe"
6978 lt_tool_outputfile="$lt_tool_outputfile.exe"
6979 ;;
6980 esac~
6981 func_to_tool_file "$lt_outputfile"~
6982 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
6983 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
6984 $RM "$lt_outputfile.manifest";
6985 fi'
6986 ;;
6987 *)
6988 # g++
6989 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6990 # as there is no search path for DLLs.
6991 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6992 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
6993 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6994 _LT_TAGVAR(always_export_symbols, $1)=no
6995 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6996
6997 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6998 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6999 # If the export-symbols file already is a .def file (1st line
7000 # is EXPORTS), use it as is; otherwise, prepend...
7001 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7002 cp $export_symbols $output_objdir/$soname.def;
7003 else
7004 echo EXPORTS > $output_objdir/$soname.def;
7005 cat $export_symbols >> $output_objdir/$soname.def;
7006 fi~
7007 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7008 else
7009 _LT_TAGVAR(ld_shlibs, $1)=no
7010 fi
7011 ;;
7012 esac
7013 ;;
72057014 darwin* | rhapsody*)
72067015 _LT_DARWIN_LINKER_FEATURES($1)
72077016 ;;
72767085 ;;
72777086 *)
72787087 if test "$GXX" = yes; then
7279 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7088 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
72807089 else
72817090 # FIXME: insert proper C++ library support
72827091 _LT_TAGVAR(ld_shlibs, $1)=no
73477156 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
73487157 ;;
73497158 ia64*)
7350 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7159 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
73517160 ;;
73527161 *)
7353 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7162 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
73547163 ;;
73557164 esac
73567165 fi
73917200 *)
73927201 if test "$GXX" = yes; then
73937202 if test "$with_gnu_ld" = no; then
7394 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7203 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
73957204 else
7396 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
7205 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
73977206 fi
73987207 fi
73997208 _LT_TAGVAR(link_all_deplibs, $1)=yes
76717480 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
76727481 ;;
76737482 *)
7674 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7483 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
76757484 ;;
76767485 esac
76777486
77587567 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
77597568 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
77607569 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
7761 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7570 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
77627571 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7763 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7572 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
77647573
77657574 # Commands to make compiler produce verbose output that lists
77667575 # what "hidden" libraries, object files and flags are used when
78897698 fi # test -n "$compiler"
78907699
78917700 CC=$lt_save_CC
7701 CFLAGS=$lt_save_CFLAGS
78927702 LDCXX=$LD
78937703 LD=$lt_save_LD
78947704 GCC=$lt_save_GCC
79037713 ])# _LT_LANG_CXX_CONFIG
79047714
79057715
7716 # _LT_FUNC_STRIPNAME_CNF
7717 # ----------------------
7718 # func_stripname_cnf prefix suffix name
7719 # strip PREFIX and SUFFIX off of NAME.
7720 # PREFIX and SUFFIX must not contain globbing or regex special
7721 # characters, hashes, percent signs, but SUFFIX may contain a leading
7722 # dot (in which case that matches only a dot).
7723 #
7724 # This function is identical to the (non-XSI) version of func_stripname,
7725 # except this one can be used by m4 code that may be executed by configure,
7726 # rather than the libtool script.
7727 m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
7728 AC_REQUIRE([_LT_DECL_SED])
7729 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
7730 func_stripname_cnf ()
7731 {
7732 case ${2} in
7733 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
7734 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7735 esac
7736 } # func_stripname_cnf
7737 ])# _LT_FUNC_STRIPNAME_CNF
7738
79067739 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
79077740 # ---------------------------------
79087741 # Figure out "hidden" library dependencies from verbose
79117744 # objects, libraries and library flags.
79127745 m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
79137746 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
7747 AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
79147748 # Dependencies to place before and after the object being linked:
79157749 _LT_TAGVAR(predep_objects, $1)=
79167750 _LT_TAGVAR(postdep_objects, $1)=
79617795 };
79627796 _LT_EOF
79637797 ])
7798
7799 _lt_libdeps_save_CFLAGS=$CFLAGS
7800 case "$CC $CFLAGS " in #(
7801 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
7802 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
7803 esac
7804
79647805 dnl Parse the compiler output and extract the necessary
79657806 dnl objects, libraries and library flags.
79667807 if AC_TRY_EVAL(ac_compile); then
79727813 pre_test_object_deps_done=no
79737814
79747815 for p in `eval "$output_verbose_link_cmd"`; do
7975 case $p in
7816 case ${prev}${p} in
79767817
79777818 -L* | -R* | -l*)
79787819 # Some compilers place space between "-{L,R}" and the path.
79817822 test $p = "-R"; then
79827823 prev=$p
79837824 continue
7984 else
7985 prev=
79867825 fi
79877826
7827 # Expand the sysroot to ease extracting the directories later.
7828 if test -z "$prev"; then
7829 case $p in
7830 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
7831 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
7832 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
7833 esac
7834 fi
7835 case $p in
7836 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
7837 esac
79887838 if test "$pre_test_object_deps_done" = no; then
7989 case $p in
7990 -L* | -R*)
7839 case ${prev} in
7840 -L | -R)
79917841 # Internal compiler library paths should come after those
79927842 # provided the user. The postdeps already come after the
79937843 # user supplied libs so there is no need to process them.
80077857 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
80087858 fi
80097859 fi
7860 prev=
80107861 ;;
80117862
7863 *.lto.$objext) ;; # Ignore GCC LTO objects
80127864 *.$objext)
80137865 # This assumes that the test object file only shows up
80147866 # once in the compiler output.
80447896 fi
80457897
80467898 $RM -f confest.$objext
7899 CFLAGS=$_lt_libdeps_save_CFLAGS
80477900
80487901 # PORTME: override above test on systems where it is broken
80497902 m4_if([$1], [CXX],
81938046 # Allow CC to be a program name with arguments.
81948047 lt_save_CC="$CC"
81958048 lt_save_GCC=$GCC
8049 lt_save_CFLAGS=$CFLAGS
81968050 CC=${F77-"f77"}
8051 CFLAGS=$FFLAGS
81978052 compiler=$CC
81988053 _LT_TAGVAR(compiler, $1)=$CC
81998054 _LT_CC_BASENAME([$compiler])
82478102
82488103 GCC=$lt_save_GCC
82498104 CC="$lt_save_CC"
8105 CFLAGS="$lt_save_CFLAGS"
82508106 fi # test "$_lt_disable_F77" != yes
82518107
82528108 AC_LANG_POP
83238179 # Allow CC to be a program name with arguments.
83248180 lt_save_CC="$CC"
83258181 lt_save_GCC=$GCC
8182 lt_save_CFLAGS=$CFLAGS
83268183 CC=${FC-"f95"}
8184 CFLAGS=$FCFLAGS
83278185 compiler=$CC
83288186 GCC=$ac_cv_fc_compiler_gnu
83298187
83798237 fi # test -n "$compiler"
83808238
83818239 GCC=$lt_save_GCC
8382 CC="$lt_save_CC"
8240 CC=$lt_save_CC
8241 CFLAGS=$lt_save_CFLAGS
83838242 fi # test "$_lt_disable_FC" != yes
83848243
83858244 AC_LANG_POP
84168275 _LT_LINKER_BOILERPLATE
84178276
84188277 # Allow CC to be a program name with arguments.
8419 lt_save_CC="$CC"
8278 lt_save_CC=$CC
8279 lt_save_CFLAGS=$CFLAGS
84208280 lt_save_GCC=$GCC
84218281 GCC=yes
84228282 CC=${GCJ-"gcj"}
8283 CFLAGS=$GCJFLAGS
84238284 compiler=$CC
84248285 _LT_TAGVAR(compiler, $1)=$CC
84258286 _LT_TAGVAR(LD, $1)="$LD"
84468307 AC_LANG_RESTORE
84478308
84488309 GCC=$lt_save_GCC
8449 CC="$lt_save_CC"
8310 CC=$lt_save_CC
8311 CFLAGS=$lt_save_CFLAGS
84508312 ])# _LT_LANG_GCJ_CONFIG
84518313
84528314
84818343
84828344 # Allow CC to be a program name with arguments.
84838345 lt_save_CC="$CC"
8346 lt_save_CFLAGS=$CFLAGS
84848347 lt_save_GCC=$GCC
84858348 GCC=
84868349 CC=${RC-"windres"}
8350 CFLAGS=
84878351 compiler=$CC
84888352 _LT_TAGVAR(compiler, $1)=$CC
84898353 _LT_CC_BASENAME([$compiler])
84968360
84978361 GCC=$lt_save_GCC
84988362 AC_LANG_RESTORE
8499 CC="$lt_save_CC"
8363 CC=$lt_save_CC
8364 CFLAGS=$lt_save_CFLAGS
85008365 ])# _LT_LANG_RC_CONFIG
85018366
85028367
85558420 AC_SUBST([OBJDUMP])
85568421 ])
85578422
8423 # _LT_DECL_DLLTOOL
8424 # ----------------
8425 # Ensure DLLTOOL variable is set.
8426 m4_defun([_LT_DECL_DLLTOOL],
8427 [AC_CHECK_TOOL(DLLTOOL, dlltool, false)
8428 test -z "$DLLTOOL" && DLLTOOL=dlltool
8429 _LT_DECL([], [DLLTOOL], [1], [DLL creation program])
8430 AC_SUBST([DLLTOOL])
8431 ])
85588432
85598433 # _LT_DECL_SED
85608434 # ------------
86468520 # Try some XSI features
86478521 xsi_shell=no
86488522 ( _lt_dummy="a/b/c"
8649 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
8650 = c,a/b,, \
8523 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
8524 = c,a/b,b/c, \
86518525 && eval 'test $(( 1 + 1 )) -eq 2 \
86528526 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
86538527 && xsi_shell=yes
86868560 ])# _LT_CHECK_SHELL_FEATURES
86878561
86888562
8689 # _LT_PROG_XSI_SHELLFNS
8690 # ---------------------
8691 # Bourne and XSI compatible variants of some useful shell functions.
8692 m4_defun([_LT_PROG_XSI_SHELLFNS],
8693 [case $xsi_shell in
8694 yes)
8695 cat << \_LT_EOF >> "$cfgfile"
8696
8697 # func_dirname file append nondir_replacement
8698 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
8699 # otherwise set result to NONDIR_REPLACEMENT.
8700 func_dirname ()
8701 {
8702 case ${1} in
8703 */*) func_dirname_result="${1%/*}${2}" ;;
8704 * ) func_dirname_result="${3}" ;;
8705 esac
8706 }
8707
8708 # func_basename file
8709 func_basename ()
8710 {
8711 func_basename_result="${1##*/}"
8712 }
8713
8714 # func_dirname_and_basename file append nondir_replacement
8715 # perform func_basename and func_dirname in a single function
8716 # call:
8717 # dirname: Compute the dirname of FILE. If nonempty,
8718 # add APPEND to the result, otherwise set result
8719 # to NONDIR_REPLACEMENT.
8720 # value returned in "$func_dirname_result"
8721 # basename: Compute filename of FILE.
8722 # value retuned in "$func_basename_result"
8723 # Implementation must be kept synchronized with func_dirname
8724 # and func_basename. For efficiency, we do not delegate to
8725 # those functions but instead duplicate the functionality here.
8726 func_dirname_and_basename ()
8727 {
8728 case ${1} in
8729 */*) func_dirname_result="${1%/*}${2}" ;;
8730 * ) func_dirname_result="${3}" ;;
8731 esac
8732 func_basename_result="${1##*/}"
8733 }
8734
8735 # func_stripname prefix suffix name
8736 # strip PREFIX and SUFFIX off of NAME.
8737 # PREFIX and SUFFIX must not contain globbing or regex special
8738 # characters, hashes, percent signs, but SUFFIX may contain a leading
8739 # dot (in which case that matches only a dot).
8740 func_stripname ()
8741 {
8742 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
8743 # positional parameters, so assign one to ordinary parameter first.
8744 func_stripname_result=${3}
8745 func_stripname_result=${func_stripname_result#"${1}"}
8746 func_stripname_result=${func_stripname_result%"${2}"}
8747 }
8748
8749 # func_opt_split
8750 func_opt_split ()
8751 {
8752 func_opt_split_opt=${1%%=*}
8753 func_opt_split_arg=${1#*=}
8754 }
8755
8756 # func_lo2o object
8757 func_lo2o ()
8758 {
8759 case ${1} in
8760 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
8761 *) func_lo2o_result=${1} ;;
8762 esac
8763 }
8764
8765 # func_xform libobj-or-source
8766 func_xform ()
8767 {
8768 func_xform_result=${1%.*}.lo
8769 }
8770
8771 # func_arith arithmetic-term...
8772 func_arith ()
8773 {
8774 func_arith_result=$(( $[*] ))
8775 }
8776
8777 # func_len string
8778 # STRING may not start with a hyphen.
8779 func_len ()
8780 {
8781 func_len_result=${#1}
8782 }
8783
8784 _LT_EOF
8563 # _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
8564 # ------------------------------------------------------
8565 # In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
8566 # '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
8567 m4_defun([_LT_PROG_FUNCTION_REPLACE],
8568 [dnl {
8569 sed -e '/^$1 ()$/,/^} # $1 /c\
8570 $1 ()\
8571 {\
8572 m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1])
8573 } # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
8574 && mv -f "$cfgfile.tmp" "$cfgfile" \
8575 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
8576 test 0 -eq $? || _lt_function_replace_fail=:
8577 ])
8578
8579
8580 # _LT_PROG_REPLACE_SHELLFNS
8581 # -------------------------
8582 # Replace existing portable implementations of several shell functions with
8583 # equivalent extended shell implementations where those features are available..
8584 m4_defun([_LT_PROG_REPLACE_SHELLFNS],
8585 [if test x"$xsi_shell" = xyes; then
8586 _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
8587 case ${1} in
8588 */*) func_dirname_result="${1%/*}${2}" ;;
8589 * ) func_dirname_result="${3}" ;;
8590 esac])
8591
8592 _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
8593 func_basename_result="${1##*/}"])
8594
8595 _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
8596 case ${1} in
8597 */*) func_dirname_result="${1%/*}${2}" ;;
8598 * ) func_dirname_result="${3}" ;;
8599 esac
8600 func_basename_result="${1##*/}"])
8601
8602 _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
8603 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
8604 # positional parameters, so assign one to ordinary parameter first.
8605 func_stripname_result=${3}
8606 func_stripname_result=${func_stripname_result#"${1}"}
8607 func_stripname_result=${func_stripname_result%"${2}"}])
8608
8609 _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
8610 func_split_long_opt_name=${1%%=*}
8611 func_split_long_opt_arg=${1#*=}])
8612
8613 _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
8614 func_split_short_opt_arg=${1#??}
8615 func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
8616
8617 _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
8618 case ${1} in
8619 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
8620 *) func_lo2o_result=${1} ;;
8621 esac])
8622
8623 _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo])
8624
8625 _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))])
8626
8627 _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}])
8628 fi
8629
8630 if test x"$lt_shell_append" = xyes; then
8631 _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"])
8632
8633 _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
8634 func_quote_for_eval "${2}"
8635 dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
8636 eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
8637
8638 # Save a `func_append' function call where possible by direct use of '+='
8639 sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
8640 && mv -f "$cfgfile.tmp" "$cfgfile" \
8641 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
8642 test 0 -eq $? || _lt_function_replace_fail=:
8643 else
8644 # Save a `func_append' function call even when '+=' is not available
8645 sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
8646 && mv -f "$cfgfile.tmp" "$cfgfile" \
8647 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
8648 test 0 -eq $? || _lt_function_replace_fail=:
8649 fi
8650
8651 if test x"$_lt_function_replace_fail" = x":"; then
8652 AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
8653 fi
8654 ])
8655
8656 # _LT_PATH_CONVERSION_FUNCTIONS
8657 # -----------------------------
8658 # Determine which file name conversion functions should be used by
8659 # func_to_host_file (and, implicitly, by func_to_host_path). These are needed
8660 # for certain cross-compile configurations and native mingw.
8661 m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
8662 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
8663 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
8664 AC_MSG_CHECKING([how to convert $build file names to $host format])
8665 AC_CACHE_VAL(lt_cv_to_host_file_cmd,
8666 [case $host in
8667 *-*-mingw* )
8668 case $build in
8669 *-*-mingw* ) # actually msys
8670 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8671 ;;
8672 *-*-cygwin* )
8673 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8674 ;;
8675 * ) # otherwise, assume *nix
8676 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8677 ;;
8678 esac
87858679 ;;
8786 *) # Bourne compatible functions.
8787 cat << \_LT_EOF >> "$cfgfile"
8788
8789 # func_dirname file append nondir_replacement
8790 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
8791 # otherwise set result to NONDIR_REPLACEMENT.
8792 func_dirname ()
8793 {
8794 # Extract subdirectory from the argument.
8795 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
8796 if test "X$func_dirname_result" = "X${1}"; then
8797 func_dirname_result="${3}"
8798 else
8799 func_dirname_result="$func_dirname_result${2}"
8800 fi
8801 }
8802
8803 # func_basename file
8804 func_basename ()
8805 {
8806 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
8807 }
8808
8809 dnl func_dirname_and_basename
8810 dnl A portable version of this function is already defined in general.m4sh
8811 dnl so there is no need for it here.
8812
8813 # func_stripname prefix suffix name
8814 # strip PREFIX and SUFFIX off of NAME.
8815 # PREFIX and SUFFIX must not contain globbing or regex special
8816 # characters, hashes, percent signs, but SUFFIX may contain a leading
8817 # dot (in which case that matches only a dot).
8818 # func_strip_suffix prefix name
8819 func_stripname ()
8820 {
8821 case ${2} in
8822 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8823 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8824 esac
8825 }
8826
8827 # sed scripts:
8828 my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
8829 my_sed_long_arg='1s/^-[[^=]]*=//'
8830
8831 # func_opt_split
8832 func_opt_split ()
8833 {
8834 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
8835 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
8836 }
8837
8838 # func_lo2o object
8839 func_lo2o ()
8840 {
8841 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
8842 }
8843
8844 # func_xform libobj-or-source
8845 func_xform ()
8846 {
8847 func_xform_result=`$ECHO "${1}" | $SED 's/\.[[^.]]*$/.lo/'`
8848 }
8849
8850 # func_arith arithmetic-term...
8851 func_arith ()
8852 {
8853 func_arith_result=`expr "$[@]"`
8854 }
8855
8856 # func_len string
8857 # STRING may not start with a hyphen.
8858 func_len ()
8859 {
8860 func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
8861 }
8862
8863 _LT_EOF
8680 *-*-cygwin* )
8681 case $build in
8682 *-*-mingw* ) # actually msys
8683 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8684 ;;
8685 *-*-cygwin* )
8686 lt_cv_to_host_file_cmd=func_convert_file_noop
8687 ;;
8688 * ) # otherwise, assume *nix
8689 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8690 ;;
8691 esac
8692 ;;
8693 * ) # unhandled hosts (and "normal" native builds)
8694 lt_cv_to_host_file_cmd=func_convert_file_noop
8695 ;;
88648696 esac
8865
8866 case $lt_shell_append in
8867 yes)
8868 cat << \_LT_EOF >> "$cfgfile"
8869
8870 # func_append var value
8871 # Append VALUE to the end of shell variable VAR.
8872 func_append ()
8873 {
8874 eval "$[1]+=\$[2]"
8875 }
8876 _LT_EOF
8697 ])
8698 to_host_file_cmd=$lt_cv_to_host_file_cmd
8699 AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
8700 _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
8701 [0], [convert $build file names to $host format])dnl
8702
8703 AC_MSG_CHECKING([how to convert $build file names to toolchain format])
8704 AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
8705 [#assume ordinary cross tools, or native build.
8706 lt_cv_to_tool_file_cmd=func_convert_file_noop
8707 case $host in
8708 *-*-mingw* )
8709 case $build in
8710 *-*-mingw* ) # actually msys
8711 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8712 ;;
8713 esac
88778714 ;;
8878 *)
8879 cat << \_LT_EOF >> "$cfgfile"
8880
8881 # func_append var value
8882 # Append VALUE to the end of shell variable VAR.
8883 func_append ()
8884 {
8885 eval "$[1]=\$$[1]\$[2]"
8886 }
8887
8888 _LT_EOF
8889 ;;
8890 esac
8715 esac
88918716 ])
8717 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8718 AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
8719 _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
8720 [0], [convert $build files to toolchain format])dnl
8721 ])# _LT_PATH_CONVERSION_FUNCTIONS
88928722
88938723 # Helper functions for option handling. -*- Autoconf -*-
88948724 #
93879217 # unlimited permission to copy and/or distribute it, with or without
93889218 # modifications, as long as this notice is preserved.
93899219
9390 # Generated from ltversion.in.
9391
9392 # serial 3175 ltversion.m4
9220 # @configure_input@
9221
9222 # serial 3293 ltversion.m4
93939223 # This file is part of GNU Libtool
93949224
9395 m4_define([LT_PACKAGE_VERSION], [2.2.10])
9396 m4_define([LT_PACKAGE_REVISION], [1.3175])
9225 m4_define([LT_PACKAGE_VERSION], [2.4])
9226 m4_define([LT_PACKAGE_REVISION], [1.3293])
93979227
93989228 AC_DEFUN([LTVERSION_VERSION],
9399 [macro_version='2.2.10'
9400 macro_revision='1.3175'
9229 [macro_version='2.4'
9230 macro_revision='1.3293'
94019231 _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
94029232 _LT_DECL(, macro_revision, 0)
94039233 ])
96929522 fi[]dnl
96939523 ])# PKG_CHECK_MODULES
96949524
9695 # Copyright (C) 1995-2002 Free Software Foundation, Inc.
9696 # Copyright (C) 2001-2003,2004 Red Hat, Inc.
9525 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
96979526 #
9698 # This file is free software, distributed under the terms of the GNU
9699 # General Public License. As a special exception to the GNU General
9700 # Public License, this file may be distributed as part of a program
9701 # that contains a configuration script generated by Autoconf, under
9702 # the same distribution terms as the rest of that program.
9527 # This file is free software; the Free Software Foundation
9528 # gives unlimited permission to copy and/or distribute it,
9529 # with or without modifications, as long as this notice is preserved.
9530
9531 # AM_AUTOMAKE_VERSION(VERSION)
9532 # ----------------------------
9533 # Automake X.Y traces this macro to ensure aclocal.m4 has been
9534 # generated from the m4 files accompanying Automake X.Y.
9535 # (This private macro should not be called outside this file.)
9536 AC_DEFUN([AM_AUTOMAKE_VERSION],
9537 [am__api_version='1.11'
9538 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
9539 dnl require some minimum version. Point them to the right macro.
9540 m4_if([$1], [1.11.1], [],
9541 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
9542 ])
9543
9544 # _AM_AUTOCONF_VERSION(VERSION)
9545 # -----------------------------
9546 # aclocal traces this macro to find the Autoconf version.
9547 # This is a private macro too. Using m4_define simplifies
9548 # the logic in aclocal, which can simply ignore this definition.
9549 m4_define([_AM_AUTOCONF_VERSION], [])
9550
9551 # AM_SET_CURRENT_AUTOMAKE_VERSION
9552 # -------------------------------
9553 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
9554 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
9555 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
9556 [AM_AUTOMAKE_VERSION([1.11.1])dnl
9557 m4_ifndef([AC_AUTOCONF_VERSION],
9558 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
9559 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
9560
9561 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
9562
9563 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
97039564 #
9704 # This file can be copied and used freely without restrictions. It can
9705 # be used in projects which are not available under the GNU Public License
9706 # but which still want to provide support for the GNU gettext functionality.
9565 # This file is free software; the Free Software Foundation
9566 # gives unlimited permission to copy and/or distribute it,
9567 # with or without modifications, as long as this notice is preserved.
9568
9569 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
9570 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
9571 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
97079572 #
9708 # Macro to add for using GNU gettext.
9709 # Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
9573 # Of course, Automake must honor this variable whenever it calls a
9574 # tool from the auxiliary directory. The problem is that $srcdir (and
9575 # therefore $ac_aux_dir as well) can be either absolute or relative,
9576 # depending on how configure is run. This is pretty annoying, since
9577 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
9578 # source directory, any form will work fine, but in subdirectories a
9579 # relative path needs to be adjusted first.
97109580 #
9711 # Modified to never use included libintl.
9712 # Owen Taylor <otaylor@redhat.com>, 12/15/1998
9581 # $ac_aux_dir/missing
9582 # fails when called from a subdirectory if $ac_aux_dir is relative
9583 # $top_srcdir/$ac_aux_dir/missing
9584 # fails if $ac_aux_dir is absolute,
9585 # fails when called from a subdirectory in a VPATH build with
9586 # a relative $ac_aux_dir
97139587 #
9714 # Major rework to remove unused code
9715 # Owen Taylor <otaylor@redhat.com>, 12/11/2002
9588 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
9589 # are both prefixed by $srcdir. In an in-source build this is usually
9590 # harmless because $srcdir is `.', but things will broke when you
9591 # start a VPATH build or use an absolute $srcdir.
97169592 #
9717 # Added better handling of ALL_LINGUAS from GNU gettext version
9718 # written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
9593 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
9594 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
9595 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
9596 # and then we would define $MISSING as
9597 # MISSING="\${SHELL} $am_aux_dir/missing"
9598 # This will work as long as MISSING is not called from configure, because
9599 # unfortunately $(top_srcdir) has no meaning in configure.
9600 # However there are other variables, like CC, which are often used in
9601 # configure, and could therefore not use this "fixed" $ac_aux_dir.
97199602 #
9720 # Modified to require ngettext
9721 # Matthias Clasen <mclasen@redhat.com> 08/06/2004
9603 # Another solution, used here, is to always expand $ac_aux_dir to an
9604 # absolute PATH. The drawback is that using absolute paths prevent a
9605 # configured tree to be moved without reconfiguration.
9606
9607 AC_DEFUN([AM_AUX_DIR_EXPAND],
9608 [dnl Rely on autoconf to set up CDPATH properly.
9609 AC_PREREQ([2.50])dnl
9610 # expand $ac_aux_dir to an absolute path
9611 am_aux_dir=`cd $ac_aux_dir && pwd`
9612 ])
9613
9614 # AM_CONDITIONAL -*- Autoconf -*-
9615
9616 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
9617 # Free Software Foundation, Inc.
97229618 #
9723 # We need this here as well, since someone might use autoconf-2.5x
9724 # to configure GLib then an older version to configure a package
9725 # using AM_GLIB_GNU_GETTEXT
9726 AC_PREREQ(2.53)
9727
9728 dnl
9729 dnl We go to great lengths to make sure that aclocal won't
9730 dnl try to pull in the installed version of these macros
9731 dnl when running aclocal in the glib directory.
9732 dnl
9733 m4_copy([AC_DEFUN],[glib_DEFUN])
9734 m4_copy([AC_REQUIRE],[glib_REQUIRE])
9735 dnl
9736 dnl At the end, if we're not within glib, we'll define the public
9737 dnl definitions in terms of our private definitions.
9738 dnl
9739
9740 # GLIB_LC_MESSAGES
9741 #--------------------
9742 glib_DEFUN([GLIB_LC_MESSAGES],
9743 [AC_CHECK_HEADERS([locale.h])
9744 if test $ac_cv_header_locale_h = yes; then
9745 AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
9746 [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
9747 am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
9748 if test $am_cv_val_LC_MESSAGES = yes; then
9749 AC_DEFINE(HAVE_LC_MESSAGES, 1,
9750 [Define if your <locale.h> file defines LC_MESSAGES.])
9751 fi
9752 fi])
9753
9754 # GLIB_PATH_PROG_WITH_TEST
9755 #----------------------------
9756 dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
9757 dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
9758 glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],
9759 [# Extract the first word of "$2", so it can be a program name with args.
9760 set dummy $2; ac_word=[$]2
9761 AC_MSG_CHECKING([for $ac_word])
9762 AC_CACHE_VAL(ac_cv_path_$1,
9763 [case "[$]$1" in
9764 /*)
9765 ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
9766 ;;
9767 *)
9768 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
9769 for ac_dir in ifelse([$5], , $PATH, [$5]); do
9770 test -z "$ac_dir" && ac_dir=.
9771 if test -f $ac_dir/$ac_word; then
9772 if [$3]; then
9773 ac_cv_path_$1="$ac_dir/$ac_word"
9619 # This file is free software; the Free Software Foundation
9620 # gives unlimited permission to copy and/or distribute it,
9621 # with or without modifications, as long as this notice is preserved.
9622
9623 # serial 9
9624
9625 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
9626 # -------------------------------------
9627 # Define a conditional.
9628 AC_DEFUN([AM_CONDITIONAL],
9629 [AC_PREREQ(2.52)dnl
9630 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
9631 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
9632 AC_SUBST([$1_TRUE])dnl
9633 AC_SUBST([$1_FALSE])dnl
9634 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
9635 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
9636 m4_define([_AM_COND_VALUE_$1], [$2])dnl
9637 if $2; then
9638 $1_TRUE=
9639 $1_FALSE='#'
9640 else
9641 $1_TRUE='#'
9642 $1_FALSE=
9643 fi
9644 AC_CONFIG_COMMANDS_PRE(
9645 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
9646 AC_MSG_ERROR([[conditional "$1" was never defined.
9647 Usually this means the macro was only invoked conditionally.]])
9648 fi])])
9649
9650 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
9651 # Free Software Foundation, Inc.
9652 #
9653 # This file is free software; the Free Software Foundation
9654 # gives unlimited permission to copy and/or distribute it,
9655 # with or without modifications, as long as this notice is preserved.
9656
9657 # serial 10
9658
9659 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
9660 # written in clear, in which case automake, when reading aclocal.m4,
9661 # will think it sees a *use*, and therefore will trigger all it's
9662 # C support machinery. Also note that it means that autoscan, seeing
9663 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
9664
9665
9666 # _AM_DEPENDENCIES(NAME)
9667 # ----------------------
9668 # See how the compiler implements dependency checking.
9669 # NAME is "CC", "CXX", "GCJ", or "OBJC".
9670 # We try a few techniques and use that to set a single cache variable.
9671 #
9672 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
9673 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
9674 # dependency, and given that the user is not expected to run this macro,
9675 # just rely on AC_PROG_CC.
9676 AC_DEFUN([_AM_DEPENDENCIES],
9677 [AC_REQUIRE([AM_SET_DEPDIR])dnl
9678 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
9679 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
9680 AC_REQUIRE([AM_DEP_TRACK])dnl
9681
9682 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
9683 [$1], CXX, [depcc="$CXX" am_compiler_list=],
9684 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
9685 [$1], UPC, [depcc="$UPC" am_compiler_list=],
9686 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
9687 [depcc="$$1" am_compiler_list=])
9688
9689 AC_CACHE_CHECK([dependency style of $depcc],
9690 [am_cv_$1_dependencies_compiler_type],
9691 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
9692 # We make a subdir and do the tests there. Otherwise we can end up
9693 # making bogus files that we don't know about and never remove. For
9694 # instance it was reported that on HP-UX the gcc test will end up
9695 # making a dummy file named `D' -- because `-MD' means `put the output
9696 # in D'.
9697 mkdir conftest.dir
9698 # Copy depcomp to subdir because otherwise we won't find it if we're
9699 # using a relative directory.
9700 cp "$am_depcomp" conftest.dir
9701 cd conftest.dir
9702 # We will build objects and dependencies in a subdirectory because
9703 # it helps to detect inapplicable dependency modes. For instance
9704 # both Tru64's cc and ICC support -MD to output dependencies as a
9705 # side effect of compilation, but ICC will put the dependencies in
9706 # the current directory while Tru64 will put them in the object
9707 # directory.
9708 mkdir sub
9709
9710 am_cv_$1_dependencies_compiler_type=none
9711 if test "$am_compiler_list" = ""; then
9712 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
9713 fi
9714 am__universal=false
9715 m4_case([$1], [CC],
9716 [case " $depcc " in #(
9717 *\ -arch\ *\ -arch\ *) am__universal=true ;;
9718 esac],
9719 [CXX],
9720 [case " $depcc " in #(
9721 *\ -arch\ *\ -arch\ *) am__universal=true ;;
9722 esac])
9723
9724 for depmode in $am_compiler_list; do
9725 # Setup a source with many dependencies, because some compilers
9726 # like to wrap large dependency lists on column 80 (with \), and
9727 # we should not choose a depcomp mode which is confused by this.
9728 #
9729 # We need to recreate these files for each test, as the compiler may
9730 # overwrite some of them when testing with obscure command lines.
9731 # This happens at least with the AIX C compiler.
9732 : > sub/conftest.c
9733 for i in 1 2 3 4 5 6; do
9734 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9735 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9736 # Solaris 8's {/usr,}/bin/sh.
9737 touch sub/conftst$i.h
9738 done
9739 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9740
9741 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9742 # mode. It turns out that the SunPro C++ compiler does not properly
9743 # handle `-M -o', and we need to detect this. Also, some Intel
9744 # versions had trouble with output in subdirs
9745 am__obj=sub/conftest.${OBJEXT-o}
9746 am__minus_obj="-o $am__obj"
9747 case $depmode in
9748 gcc)
9749 # This depmode causes a compiler race in universal mode.
9750 test "$am__universal" = false || continue
9751 ;;
9752 nosideeffect)
9753 # after this tag, mechanisms are not by side-effect, so they'll
9754 # only be used when explicitly requested
9755 if test "x$enable_dependency_tracking" = xyes; then
9756 continue
9757 else
97749758 break
9759 fi
9760 ;;
9761 msvisualcpp | msvcmsys)
9762 # This compiler won't grok `-c -o', but also, the minuso test has
9763 # not run yet. These depmodes are late enough in the game, and
9764 # so weak that their functioning should not be impacted.
9765 am__obj=conftest.${OBJEXT-o}
9766 am__minus_obj=
9767 ;;
9768 none) break ;;
9769 esac
9770 if depmode=$depmode \
9771 source=sub/conftest.c object=$am__obj \
9772 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9773 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
9774 >/dev/null 2>conftest.err &&
9775 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
9776 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
9777 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
9778 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9779 # icc doesn't choke on unknown options, it will just issue warnings
9780 # or remarks (even with -Werror). So we grep stderr for any message
9781 # that says an option was ignored or not supported.
9782 # When given -MP, icc 7.0 and 7.1 complain thusly:
9783 # icc: Command line warning: ignoring option '-M'; no argument required
9784 # The diagnosis changed in icc 8.0:
9785 # icc: Command line remark: option '-MP' not supported
9786 if (grep 'ignoring option' conftest.err ||
9787 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9788 am_cv_$1_dependencies_compiler_type=$depmode
9789 break
97759790 fi
97769791 fi
97779792 done
9778 IFS="$ac_save_ifs"
9779 dnl If no 4th arg is given, leave the cache variable unset,
9780 dnl so AC_PATH_PROGS will keep looking.
9781 ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
9782 ])dnl
9793
9794 cd ..
9795 rm -rf conftest.dir
9796 else
9797 am_cv_$1_dependencies_compiler_type=none
9798 fi
9799 ])
9800 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
9801 AM_CONDITIONAL([am__fastdep$1], [
9802 test "x$enable_dependency_tracking" != xno \
9803 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
9804 ])
9805
9806
9807 # AM_SET_DEPDIR
9808 # -------------
9809 # Choose a directory name for dependency files.
9810 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
9811 AC_DEFUN([AM_SET_DEPDIR],
9812 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
9813 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
9814 ])
9815
9816
9817 # AM_DEP_TRACK
9818 # ------------
9819 AC_DEFUN([AM_DEP_TRACK],
9820 [AC_ARG_ENABLE(dependency-tracking,
9821 [ --disable-dependency-tracking speeds up one-time build
9822 --enable-dependency-tracking do not reject slow dependency extractors])
9823 if test "x$enable_dependency_tracking" != xno; then
9824 am_depcomp="$ac_aux_dir/depcomp"
9825 AMDEPBACKSLASH='\'
9826 fi
9827 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
9828 AC_SUBST([AMDEPBACKSLASH])dnl
9829 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
9830 ])
9831
9832 # Generate code to set up dependency tracking. -*- Autoconf -*-
9833
9834 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
9835 # Free Software Foundation, Inc.
9836 #
9837 # This file is free software; the Free Software Foundation
9838 # gives unlimited permission to copy and/or distribute it,
9839 # with or without modifications, as long as this notice is preserved.
9840
9841 #serial 5
9842
9843 # _AM_OUTPUT_DEPENDENCY_COMMANDS
9844 # ------------------------------
9845 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
9846 [{
9847 # Autoconf 2.62 quotes --file arguments for eval, but not when files
9848 # are listed without --file. Let's play safe and only enable the eval
9849 # if we detect the quoting.
9850 case $CONFIG_FILES in
9851 *\'*) eval set x "$CONFIG_FILES" ;;
9852 *) set x $CONFIG_FILES ;;
9853 esac
9854 shift
9855 for mf
9856 do
9857 # Strip MF so we end up with the name of the file.
9858 mf=`echo "$mf" | sed -e 's/:.*$//'`
9859 # Check whether this is an Automake generated Makefile or not.
9860 # We used to match only the files named `Makefile.in', but
9861 # some people rename them; so instead we look at the file content.
9862 # Grep'ing the first line is not enough: some people post-process
9863 # each Makefile.in and add a new line on top of each file to say so.
9864 # Grep'ing the whole file is not good either: AIX grep has a line
9865 # limit of 2048, but all sed's we know have understand at least 4000.
9866 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9867 dirpart=`AS_DIRNAME("$mf")`
9868 else
9869 continue
9870 fi
9871 # Extract the definition of DEPDIR, am__include, and am__quote
9872 # from the Makefile without running `make'.
9873 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9874 test -z "$DEPDIR" && continue
9875 am__include=`sed -n 's/^am__include = //p' < "$mf"`
9876 test -z "am__include" && continue
9877 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9878 # When using ansi2knr, U may be empty or an underscore; expand it
9879 U=`sed -n 's/^U = //p' < "$mf"`
9880 # Find all dependency output files, they are included files with
9881 # $(DEPDIR) in their names. We invoke sed twice because it is the
9882 # simplest approach to changing $(DEPDIR) to its actual value in the
9883 # expansion.
9884 for file in `sed -n "
9885 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9886 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9887 # Make sure the directory exists.
9888 test -f "$dirpart/$file" && continue
9889 fdir=`AS_DIRNAME(["$file"])`
9890 AS_MKDIR_P([$dirpart/$fdir])
9891 # echo "creating $dirpart/$file"
9892 echo '# dummy' > "$dirpart/$file"
9893 done
9894 done
9895 }
9896 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
9897
9898
9899 # AM_OUTPUT_DEPENDENCY_COMMANDS
9900 # -----------------------------
9901 # This macro should only be invoked once -- use via AC_REQUIRE.
9902 #
9903 # This code is only required when automatic dependency tracking
9904 # is enabled. FIXME. This creates each `.P' file that we will
9905 # need in order to bootstrap the dependency handling code.
9906 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
9907 [AC_CONFIG_COMMANDS([depfiles],
9908 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
9909 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
9910 ])
9911
9912 # Do all the work for Automake. -*- Autoconf -*-
9913
9914 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
9915 # 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
9916 #
9917 # This file is free software; the Free Software Foundation
9918 # gives unlimited permission to copy and/or distribute it,
9919 # with or without modifications, as long as this notice is preserved.
9920
9921 # serial 16
9922
9923 # This macro actually does too much. Some checks are only needed if
9924 # your package does certain things. But this isn't really a big deal.
9925
9926 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
9927 # AM_INIT_AUTOMAKE([OPTIONS])
9928 # -----------------------------------------------
9929 # The call with PACKAGE and VERSION arguments is the old style
9930 # call (pre autoconf-2.50), which is being phased out. PACKAGE
9931 # and VERSION should now be passed to AC_INIT and removed from
9932 # the call to AM_INIT_AUTOMAKE.
9933 # We support both call styles for the transition. After
9934 # the next Automake release, Autoconf can make the AC_INIT
9935 # arguments mandatory, and then we can depend on a new Autoconf
9936 # release and drop the old call support.
9937 AC_DEFUN([AM_INIT_AUTOMAKE],
9938 [AC_PREREQ([2.62])dnl
9939 dnl Autoconf wants to disallow AM_ names. We explicitly allow
9940 dnl the ones we care about.
9941 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
9942 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
9943 AC_REQUIRE([AC_PROG_INSTALL])dnl
9944 if test "`cd $srcdir && pwd`" != "`pwd`"; then
9945 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
9946 # is not polluted with repeated "-I."
9947 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
9948 # test to see if srcdir already configured
9949 if test -f $srcdir/config.status; then
9950 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
9951 fi
9952 fi
9953
9954 # test whether we have cygpath
9955 if test -z "$CYGPATH_W"; then
9956 if (cygpath --version) >/dev/null 2>/dev/null; then
9957 CYGPATH_W='cygpath -w'
9958 else
9959 CYGPATH_W=echo
9960 fi
9961 fi
9962 AC_SUBST([CYGPATH_W])
9963
9964 # Define the identity of the package.
9965 dnl Distinguish between old-style and new-style calls.
9966 m4_ifval([$2],
9967 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
9968 AC_SUBST([PACKAGE], [$1])dnl
9969 AC_SUBST([VERSION], [$2])],
9970 [_AM_SET_OPTIONS([$1])dnl
9971 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
9972 m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
9973 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
9974 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
9975 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
9976
9977 _AM_IF_OPTION([no-define],,
9978 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
9979 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
9980
9981 # Some tools Automake needs.
9982 AC_REQUIRE([AM_SANITY_CHECK])dnl
9983 AC_REQUIRE([AC_ARG_PROGRAM])dnl
9984 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
9985 AM_MISSING_PROG(AUTOCONF, autoconf)
9986 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
9987 AM_MISSING_PROG(AUTOHEADER, autoheader)
9988 AM_MISSING_PROG(MAKEINFO, makeinfo)
9989 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
9990 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
9991 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
9992 # We need awk for the "check" target. The system "awk" is bad on
9993 # some platforms.
9994 AC_REQUIRE([AC_PROG_AWK])dnl
9995 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
9996 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
9997 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
9998 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
9999 [_AM_PROG_TAR([v7])])])
10000 _AM_IF_OPTION([no-dependencies],,
10001 [AC_PROVIDE_IFELSE([AC_PROG_CC],
10002 [_AM_DEPENDENCIES(CC)],
10003 [define([AC_PROG_CC],
10004 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
10005 AC_PROVIDE_IFELSE([AC_PROG_CXX],
10006 [_AM_DEPENDENCIES(CXX)],
10007 [define([AC_PROG_CXX],
10008 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
10009 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
10010 [_AM_DEPENDENCIES(OBJC)],
10011 [define([AC_PROG_OBJC],
10012 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
10013 ])
10014 _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
10015 dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
10016 dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
10017 dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
10018 AC_CONFIG_COMMANDS_PRE(dnl
10019 [m4_provide_if([_AM_COMPILER_EXEEXT],
10020 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
10021 ])
10022
10023 dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
10024 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
10025 dnl mangled by Autoconf and run in a shell conditional statement.
10026 m4_define([_AC_COMPILER_EXEEXT],
10027 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
10028
10029
10030 # When config.status generates a header, we must update the stamp-h file.
10031 # This file resides in the same directory as the config header
10032 # that is generated. The stamp files are numbered to have different names.
10033
10034 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
10035 # loop where config.status creates the headers, so we can generate
10036 # our stamp files there.
10037 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
10038 [# Compute $1's index in $config_headers.
10039 _am_arg=$1
10040 _am_stamp_count=1
10041 for _am_header in $config_headers :; do
10042 case $_am_header in
10043 $_am_arg | $_am_arg:* )
10044 break ;;
10045 * )
10046 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10047 esac
10048 done
10049 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
10050
10051 # Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
10052 #
10053 # This file is free software; the Free Software Foundation
10054 # gives unlimited permission to copy and/or distribute it,
10055 # with or without modifications, as long as this notice is preserved.
10056
10057 # AM_PROG_INSTALL_SH
10058 # ------------------
10059 # Define $install_sh.
10060 AC_DEFUN([AM_PROG_INSTALL_SH],
10061 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
10062 if test x"${install_sh}" != xset; then
10063 case $am_aux_dir in
10064 *\ * | *\ *)
10065 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
10066 *)
10067 install_sh="\${SHELL} $am_aux_dir/install-sh"
10068 esac
10069 fi
10070 AC_SUBST(install_sh)])
10071
10072 # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
10073 #
10074 # This file is free software; the Free Software Foundation
10075 # gives unlimited permission to copy and/or distribute it,
10076 # with or without modifications, as long as this notice is preserved.
10077
10078 # serial 2
10079
10080 # Check whether the underlying file-system supports filenames
10081 # with a leading dot. For instance MS-DOS doesn't.
10082 AC_DEFUN([AM_SET_LEADING_DOT],
10083 [rm -rf .tst 2>/dev/null
10084 mkdir .tst 2>/dev/null
10085 if test -d .tst; then
10086 am__leading_dot=.
10087 else
10088 am__leading_dot=_
10089 fi
10090 rmdir .tst 2>/dev/null
10091 AC_SUBST([am__leading_dot])])
10092
10093 # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
10094 # From Jim Meyering
10095
10096 # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
10097 # Free Software Foundation, Inc.
10098 #
10099 # This file is free software; the Free Software Foundation
10100 # gives unlimited permission to copy and/or distribute it,
10101 # with or without modifications, as long as this notice is preserved.
10102
10103 # serial 5
10104
10105 # AM_MAINTAINER_MODE([DEFAULT-MODE])
10106 # ----------------------------------
10107 # Control maintainer-specific portions of Makefiles.
10108 # Default is to disable them, unless `enable' is passed literally.
10109 # For symmetry, `disable' may be passed as well. Anyway, the user
10110 # can override the default with the --enable/--disable switch.
10111 AC_DEFUN([AM_MAINTAINER_MODE],
10112 [m4_case(m4_default([$1], [disable]),
10113 [enable], [m4_define([am_maintainer_other], [disable])],
10114 [disable], [m4_define([am_maintainer_other], [enable])],
10115 [m4_define([am_maintainer_other], [enable])
10116 m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
10117 AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
10118 dnl maintainer-mode's default is 'disable' unless 'enable' is passed
10119 AC_ARG_ENABLE([maintainer-mode],
10120 [ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
10121 (and sometimes confusing) to the casual installer],
10122 [USE_MAINTAINER_MODE=$enableval],
10123 [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
10124 AC_MSG_RESULT([$USE_MAINTAINER_MODE])
10125 AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
10126 MAINT=$MAINTAINER_MODE_TRUE
10127 AC_SUBST([MAINT])dnl
10128 ]
10129 )
10130
10131 AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
10132
10133 # Check to see how 'make' treats includes. -*- Autoconf -*-
10134
10135 # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
10136 #
10137 # This file is free software; the Free Software Foundation
10138 # gives unlimited permission to copy and/or distribute it,
10139 # with or without modifications, as long as this notice is preserved.
10140
10141 # serial 4
10142
10143 # AM_MAKE_INCLUDE()
10144 # -----------------
10145 # Check to see how make treats includes.
10146 AC_DEFUN([AM_MAKE_INCLUDE],
10147 [am_make=${MAKE-make}
10148 cat > confinc << 'END'
10149 am__doit:
10150 @echo this is the am__doit target
10151 .PHONY: am__doit
10152 END
10153 # If we don't find an include directive, just comment out the code.
10154 AC_MSG_CHECKING([for style of include used by $am_make])
10155 am__include="#"
10156 am__quote=
10157 _am_result=none
10158 # First try GNU make style include.
10159 echo "include confinc" > confmf
10160 # Ignore all kinds of additional output from `make'.
10161 case `$am_make -s -f confmf 2> /dev/null` in #(
10162 *the\ am__doit\ target*)
10163 am__include=include
10164 am__quote=
10165 _am_result=GNU
978310166 ;;
9784 esac])dnl
9785 $1="$ac_cv_path_$1"
9786 if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
9787 AC_MSG_RESULT([$]$1)
10167 esac
10168 # Now try BSD make style include.
10169 if test "$am__include" = "#"; then
10170 echo '.include "confinc"' > confmf
10171 case `$am_make -s -f confmf 2> /dev/null` in #(
10172 *the\ am__doit\ target*)
10173 am__include=.include
10174 am__quote="\""
10175 _am_result=BSD
10176 ;;
10177 esac
10178 fi
10179 AC_SUBST([am__include])
10180 AC_SUBST([am__quote])
10181 AC_MSG_RESULT([$_am_result])
10182 rm -f confinc confmf
10183 ])
10184
10185 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
10186
10187 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
10188 # Free Software Foundation, Inc.
10189 #
10190 # This file is free software; the Free Software Foundation
10191 # gives unlimited permission to copy and/or distribute it,
10192 # with or without modifications, as long as this notice is preserved.
10193
10194 # serial 6
10195
10196 # AM_MISSING_PROG(NAME, PROGRAM)
10197 # ------------------------------
10198 AC_DEFUN([AM_MISSING_PROG],
10199 [AC_REQUIRE([AM_MISSING_HAS_RUN])
10200 $1=${$1-"${am_missing_run}$2"}
10201 AC_SUBST($1)])
10202
10203
10204 # AM_MISSING_HAS_RUN
10205 # ------------------
10206 # Define MISSING if not defined so far and test if it supports --run.
10207 # If it does, set am_missing_run to use it, otherwise, to nothing.
10208 AC_DEFUN([AM_MISSING_HAS_RUN],
10209 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
10210 AC_REQUIRE_AUX_FILE([missing])dnl
10211 if test x"${MISSING+set}" != xset; then
10212 case $am_aux_dir in
10213 *\ * | *\ *)
10214 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
10215 *)
10216 MISSING="\${SHELL} $am_aux_dir/missing" ;;
10217 esac
10218 fi
10219 # Use eval to expand $SHELL
10220 if eval "$MISSING --run true"; then
10221 am_missing_run="$MISSING --run "
978810222 else
9789 AC_MSG_RESULT(no)
10223 am_missing_run=
10224 AC_MSG_WARN([`missing' script is too old or missing])
979010225 fi
9791 AC_SUBST($1)dnl
979210226 ])
979310227
9794 # GLIB_WITH_NLS
9795 #-----------------
9796 glib_DEFUN([GLIB_WITH_NLS],
9797 dnl NLS is obligatory
9798 [USE_NLS=yes
9799 AC_SUBST(USE_NLS)
9800
9801 gt_cv_have_gettext=no
9802
9803 CATOBJEXT=NONE
9804 XGETTEXT=:
9805 INTLLIBS=
9806
9807 AC_CHECK_HEADER(libintl.h,
9808 [gt_cv_func_dgettext_libintl="no"
9809 libintl_extra_libs=""
9810
9811 #
9812 # First check in libc
9813 #
9814 AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
9815 [AC_TRY_LINK([
9816 #include <libintl.h>
9817 ],
9818 [return !ngettext ("","", 1)],
9819 gt_cv_func_ngettext_libc=yes,
9820 gt_cv_func_ngettext_libc=no)
9821 ])
9822
9823 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
9824 AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
9825 [AC_TRY_LINK([
9826 #include <libintl.h>
9827 ],
9828 [return !dgettext ("","")],
9829 gt_cv_func_dgettext_libc=yes,
9830 gt_cv_func_dgettext_libc=no)
9831 ])
9832 fi
9833
9834 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
9835 AC_CHECK_FUNCS(bind_textdomain_codeset)
9836 fi
9837
9838 #
9839 # If we don't have everything we want, check in libintl
9840 #
9841 if test "$gt_cv_func_dgettext_libc" != "yes" \
9842 || test "$gt_cv_func_ngettext_libc" != "yes" \
9843 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
9844
9845 AC_CHECK_LIB(intl, bindtextdomain,
9846 [AC_CHECK_LIB(intl, ngettext,
9847 [AC_CHECK_LIB(intl, dgettext,
9848 gt_cv_func_dgettext_libintl=yes)])])
9849
9850 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
9851 AC_MSG_CHECKING([if -liconv is needed to use gettext])
9852 AC_MSG_RESULT([])
9853 AC_CHECK_LIB(intl, ngettext,
9854 [AC_CHECK_LIB(intl, dcgettext,
9855 [gt_cv_func_dgettext_libintl=yes
9856 libintl_extra_libs=-liconv],
9857 :,-liconv)],
9858 :,-liconv)
9859 fi
9860
9861 #
9862 # If we found libintl, then check in it for bind_textdomain_codeset();
9863 # we'll prefer libc if neither have bind_textdomain_codeset(),
9864 # and both have dgettext and ngettext
9865 #
9866 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
9867 glib_save_LIBS="$LIBS"
9868 LIBS="$LIBS -lintl $libintl_extra_libs"
9869 unset ac_cv_func_bind_textdomain_codeset
9870 AC_CHECK_FUNCS(bind_textdomain_codeset)
9871 LIBS="$glib_save_LIBS"
9872
9873 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
9874 gt_cv_func_dgettext_libc=no
9875 else
9876 if test "$gt_cv_func_dgettext_libc" = "yes" \
9877 && test "$gt_cv_func_ngettext_libc" = "yes"; then
9878 gt_cv_func_dgettext_libintl=no
9879 fi
9880 fi
9881 fi
9882 fi
9883
9884 if test "$gt_cv_func_dgettext_libc" = "yes" \
9885 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
9886 gt_cv_have_gettext=yes
9887 fi
9888
9889 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
9890 INTLLIBS="-lintl $libintl_extra_libs"
9891 fi
9892
9893 if test "$gt_cv_have_gettext" = "yes"; then
9894 AC_DEFINE(HAVE_GETTEXT,1,
9895 [Define if the GNU gettext() function is already present or preinstalled.])
9896 GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
9897 [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
9898 if test "$MSGFMT" != "no"; then
9899 glib_save_LIBS="$LIBS"
9900 LIBS="$LIBS $INTLLIBS"
9901 AC_CHECK_FUNCS(dcgettext)
9902 MSGFMT_OPTS=
9903 AC_MSG_CHECKING([if msgfmt accepts -c])
9904 GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
9905 msgid ""
9906 msgstr ""
9907 "Content-Type: text/plain; charset=UTF-8\n"
9908 "Project-Id-Version: test 1.0\n"
9909 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
9910 "Last-Translator: test <foo@bar.xx>\n"
9911 "Language-Team: C <LL@li.org>\n"
9912 "MIME-Version: 1.0\n"
9913 "Content-Transfer-Encoding: 8bit\n"
9914 ], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
9915 AC_SUBST(MSGFMT_OPTS)
9916 AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
9917 GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
9918 [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
9919 AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
9920 return _nl_msg_cat_cntr],
9921 [CATOBJEXT=.gmo
9922 DATADIRNAME=share],
9923 [case $host in
9924 *-*-solaris*)
9925 dnl On Solaris, if bind_textdomain_codeset is in libc,
9926 dnl GNU format message catalog is always supported,
9927 dnl since both are added to the libc all together.
9928 dnl Hence, we'd like to go with DATADIRNAME=share and
9929 dnl and CATOBJEXT=.gmo in this case.
9930 AC_CHECK_FUNC(bind_textdomain_codeset,
9931 [CATOBJEXT=.gmo
9932 DATADIRNAME=share],
9933 [CATOBJEXT=.mo
9934 DATADIRNAME=lib])
9935 ;;
9936 *)
9937 CATOBJEXT=.mo
9938 DATADIRNAME=lib
9939 ;;
9940 esac])
9941 LIBS="$glib_save_LIBS"
9942 INSTOBJEXT=.mo
9943 else
9944 gt_cv_have_gettext=no
9945 fi
9946 fi
9947 ])
9948
9949 if test "$gt_cv_have_gettext" = "yes" ; then
9950 AC_DEFINE(ENABLE_NLS, 1,
9951 [always defined to indicate that i18n is enabled])
9952 fi
9953
9954 dnl Test whether we really found GNU xgettext.
9955 if test "$XGETTEXT" != ":"; then
9956 dnl If it is not GNU xgettext we define it as : so that the
9957 dnl Makefiles still can work.
9958 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
9959 : ;
9960 else
9961 AC_MSG_RESULT(
9962 [found xgettext program is not GNU xgettext; ignore it])
9963 XGETTEXT=":"
9964 fi
9965 fi
9966
9967 # We need to process the po/ directory.
9968 POSUB=po
9969
9970 AC_OUTPUT_COMMANDS(
9971 [case "$CONFIG_FILES" in *po/Makefile.in*)
9972 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
9973 esac])
9974
9975 dnl These rules are solely for the distribution goal. While doing this
9976 dnl we only have to keep exactly one list of the available catalogs
9977 dnl in configure.ac.
9978 for lang in $ALL_LINGUAS; do
9979 GMOFILES="$GMOFILES $lang.gmo"
9980 POFILES="$POFILES $lang.po"
10228 # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10229 #
10230 # This file is free software; the Free Software Foundation
10231 # gives unlimited permission to copy and/or distribute it,
10232 # with or without modifications, as long as this notice is preserved.
10233
10234 # AM_PROG_MKDIR_P
10235 # ---------------
10236 # Check for `mkdir -p'.
10237 AC_DEFUN([AM_PROG_MKDIR_P],
10238 [AC_PREREQ([2.60])dnl
10239 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
10240 dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
10241 dnl while keeping a definition of mkdir_p for backward compatibility.
10242 dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
10243 dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
10244 dnl Makefile.ins that do not define MKDIR_P, so we do our own
10245 dnl adjustment using top_builddir (which is defined more often than
10246 dnl MKDIR_P).
10247 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
10248 case $mkdir_p in
10249 [[\\/$]]* | ?:[[\\/]]*) ;;
10250 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
10251 esac
10252 ])
10253
10254 # Helper functions for option handling. -*- Autoconf -*-
10255
10256 # Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
10257 #
10258 # This file is free software; the Free Software Foundation
10259 # gives unlimited permission to copy and/or distribute it,
10260 # with or without modifications, as long as this notice is preserved.
10261
10262 # serial 4
10263
10264 # _AM_MANGLE_OPTION(NAME)
10265 # -----------------------
10266 AC_DEFUN([_AM_MANGLE_OPTION],
10267 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
10268
10269 # _AM_SET_OPTION(NAME)
10270 # ------------------------------
10271 # Set option NAME. Presently that only means defining a flag for this option.
10272 AC_DEFUN([_AM_SET_OPTION],
10273 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
10274
10275 # _AM_SET_OPTIONS(OPTIONS)
10276 # ----------------------------------
10277 # OPTIONS is a space-separated list of Automake options.
10278 AC_DEFUN([_AM_SET_OPTIONS],
10279 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
10280
10281 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
10282 # -------------------------------------------
10283 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
10284 AC_DEFUN([_AM_IF_OPTION],
10285 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
10286
10287 # Check to make sure that the build environment is sane. -*- Autoconf -*-
10288
10289 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
10290 # Free Software Foundation, Inc.
10291 #
10292 # This file is free software; the Free Software Foundation
10293 # gives unlimited permission to copy and/or distribute it,
10294 # with or without modifications, as long as this notice is preserved.
10295
10296 # serial 5
10297
10298 # AM_SANITY_CHECK
10299 # ---------------
10300 AC_DEFUN([AM_SANITY_CHECK],
10301 [AC_MSG_CHECKING([whether build environment is sane])
10302 # Just in case
10303 sleep 1
10304 echo timestamp > conftest.file
10305 # Reject unsafe characters in $srcdir or the absolute working directory
10306 # name. Accept space and tab only in the latter.
10307 am_lf='
10308 '
10309 case `pwd` in
10310 *[[\\\"\#\$\&\'\`$am_lf]]*)
10311 AC_MSG_ERROR([unsafe absolute working directory name]);;
10312 esac
10313 case $srcdir in
10314 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
10315 AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
10316 esac
10317
10318 # Do `set' in a subshell so we don't clobber the current shell's
10319 # arguments. Must try -L first in case configure is actually a
10320 # symlink; some systems play weird games with the mod time of symlinks
10321 # (eg FreeBSD returns the mod time of the symlink's containing
10322 # directory).
10323 if (
10324 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
10325 if test "$[*]" = "X"; then
10326 # -L didn't work.
10327 set X `ls -t "$srcdir/configure" conftest.file`
10328 fi
10329 rm -f conftest.file
10330 if test "$[*]" != "X $srcdir/configure conftest.file" \
10331 && test "$[*]" != "X conftest.file $srcdir/configure"; then
10332
10333 # If neither matched, then we have a broken ls. This can happen
10334 # if, for instance, CONFIG_SHELL is bash and it inherits a
10335 # broken ls alias from the environment. This has actually
10336 # happened. Such a system could not be considered "sane".
10337 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
10338 alias in your environment])
10339 fi
10340
10341 test "$[2]" = conftest.file
10342 )
10343 then
10344 # Ok.
10345 :
10346 else
10347 AC_MSG_ERROR([newly created file is older than distributed files!
10348 Check your system clock])
10349 fi
10350 AC_MSG_RESULT(yes)])
10351
10352 # Copyright (C) 2009 Free Software Foundation, Inc.
10353 #
10354 # This file is free software; the Free Software Foundation
10355 # gives unlimited permission to copy and/or distribute it,
10356 # with or without modifications, as long as this notice is preserved.
10357
10358 # serial 1
10359
10360 # AM_SILENT_RULES([DEFAULT])
10361 # --------------------------
10362 # Enable less verbose build rules; with the default set to DEFAULT
10363 # (`yes' being less verbose, `no' or empty being verbose).
10364 AC_DEFUN([AM_SILENT_RULES],
10365 [AC_ARG_ENABLE([silent-rules],
10366 [ --enable-silent-rules less verbose build output (undo: `make V=1')
10367 --disable-silent-rules verbose build output (undo: `make V=0')])
10368 case $enable_silent_rules in
10369 yes) AM_DEFAULT_VERBOSITY=0;;
10370 no) AM_DEFAULT_VERBOSITY=1;;
10371 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
10372 esac
10373 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
10374 AM_BACKSLASH='\'
10375 AC_SUBST([AM_BACKSLASH])dnl
10376 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
10377 ])
10378
10379 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
10380 #
10381 # This file is free software; the Free Software Foundation
10382 # gives unlimited permission to copy and/or distribute it,
10383 # with or without modifications, as long as this notice is preserved.
10384
10385 # AM_PROG_INSTALL_STRIP
10386 # ---------------------
10387 # One issue with vendor `install' (even GNU) is that you can't
10388 # specify the program used to strip binaries. This is especially
10389 # annoying in cross-compiling environments, where the build's strip
10390 # is unlikely to handle the host's binaries.
10391 # Fortunately install-sh will honor a STRIPPROG variable, so we
10392 # always use install-sh in `make install-strip', and initialize
10393 # STRIPPROG with the value of the STRIP variable (set by the user).
10394 AC_DEFUN([AM_PROG_INSTALL_STRIP],
10395 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
10396 # Installed binaries are usually stripped using `strip' when the user
10397 # run `make install-strip'. However `strip' might not be the right
10398 # tool to use in cross-compilation environments, therefore Automake
10399 # will honor the `STRIP' environment variable to overrule this program.
10400 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
10401 if test "$cross_compiling" != no; then
10402 AC_CHECK_TOOL([STRIP], [strip], :)
10403 fi
10404 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
10405 AC_SUBST([INSTALL_STRIP_PROGRAM])])
10406
10407 # Copyright (C) 2006, 2008 Free Software Foundation, Inc.
10408 #
10409 # This file is free software; the Free Software Foundation
10410 # gives unlimited permission to copy and/or distribute it,
10411 # with or without modifications, as long as this notice is preserved.
10412
10413 # serial 2
10414
10415 # _AM_SUBST_NOTMAKE(VARIABLE)
10416 # ---------------------------
10417 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
10418 # This macro is traced by Automake.
10419 AC_DEFUN([_AM_SUBST_NOTMAKE])
10420
10421 # AM_SUBST_NOTMAKE(VARIABLE)
10422 # ---------------------------
10423 # Public sister of _AM_SUBST_NOTMAKE.
10424 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
10425
10426 # Check how to create a tarball. -*- Autoconf -*-
10427
10428 # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
10429 #
10430 # This file is free software; the Free Software Foundation
10431 # gives unlimited permission to copy and/or distribute it,
10432 # with or without modifications, as long as this notice is preserved.
10433
10434 # serial 2
10435
10436 # _AM_PROG_TAR(FORMAT)
10437 # --------------------
10438 # Check how to create a tarball in format FORMAT.
10439 # FORMAT should be one of `v7', `ustar', or `pax'.
10440 #
10441 # Substitute a variable $(am__tar) that is a command
10442 # writing to stdout a FORMAT-tarball containing the directory
10443 # $tardir.
10444 # tardir=directory && $(am__tar) > result.tar
10445 #
10446 # Substitute a variable $(am__untar) that extract such
10447 # a tarball read from stdin.
10448 # $(am__untar) < result.tar
10449 AC_DEFUN([_AM_PROG_TAR],
10450 [# Always define AMTAR for backward compatibility.
10451 AM_MISSING_PROG([AMTAR], [tar])
10452 m4_if([$1], [v7],
10453 [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
10454 [m4_case([$1], [ustar],, [pax],,
10455 [m4_fatal([Unknown tar format])])
10456 AC_MSG_CHECKING([how to create a $1 tar archive])
10457 # Loop over all known methods to create a tar archive until one works.
10458 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
10459 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
10460 # Do not fold the above two line into one, because Tru64 sh and
10461 # Solaris sh will not grok spaces in the rhs of `-'.
10462 for _am_tool in $_am_tools
10463 do
10464 case $_am_tool in
10465 gnutar)
10466 for _am_tar in tar gnutar gtar;
10467 do
10468 AM_RUN_LOG([$_am_tar --version]) && break
998110469 done
9982
9983 dnl Make all variables we use known to autoconf.
9984 AC_SUBST(CATALOGS)
9985 AC_SUBST(CATOBJEXT)
9986 AC_SUBST(DATADIRNAME)
9987 AC_SUBST(GMOFILES)
9988 AC_SUBST(INSTOBJEXT)
9989 AC_SUBST(INTLLIBS)
9990 AC_SUBST(PO_IN_DATADIR_TRUE)
9991 AC_SUBST(PO_IN_DATADIR_FALSE)
9992 AC_SUBST(POFILES)
9993 AC_SUBST(POSUB)
9994 ])
9995
9996 # AM_GLIB_GNU_GETTEXT
9997 # -------------------
9998 # Do checks necessary for use of gettext. If a suitable implementation
9999 # of gettext is found in either in libintl or in the C library,
10000 # it will set INTLLIBS to the libraries needed for use of gettext
10001 # and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
10002 # gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
10003 # on various variables needed by the Makefile.in.in installed by
10004 # glib-gettextize.
10005 dnl
10006 glib_DEFUN([GLIB_GNU_GETTEXT],
10007 [AC_REQUIRE([AC_PROG_CC])dnl
10008 AC_REQUIRE([AC_HEADER_STDC])dnl
10009
10010 GLIB_LC_MESSAGES
10011 GLIB_WITH_NLS
10012
10013 if test "$gt_cv_have_gettext" = "yes"; then
10014 if test "x$ALL_LINGUAS" = "x"; then
10015 LINGUAS=
10016 else
10017 AC_MSG_CHECKING(for catalogs to be installed)
10018 NEW_LINGUAS=
10019 for presentlang in $ALL_LINGUAS; do
10020 useit=no
10021 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
10022 desiredlanguages="$LINGUAS"
10023 else
10024 desiredlanguages="$ALL_LINGUAS"
10025 fi
10026 for desiredlang in $desiredlanguages; do
10027 # Use the presentlang catalog if desiredlang is
10028 # a. equal to presentlang, or
10029 # b. a variant of presentlang (because in this case,
10030 # presentlang can be used as a fallback for messages
10031 # which are not translated in the desiredlang catalog).
10032 case "$desiredlang" in
10033 "$presentlang"*) useit=yes;;
10034 esac
10035 done
10036 if test $useit = yes; then
10037 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
10038 fi
10039 done
10040 LINGUAS=$NEW_LINGUAS
10041 AC_MSG_RESULT($LINGUAS)
10042 fi
10043
10044 dnl Construct list of names of catalog files to be constructed.
10045 if test -n "$LINGUAS"; then
10046 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
10047 fi
10048 fi
10049
10050 dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
10051 dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
10052 dnl Try to locate is.
10053 MKINSTALLDIRS=
10054 if test -n "$ac_aux_dir"; then
10055 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
10056 fi
10057 if test -z "$MKINSTALLDIRS"; then
10058 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
10059 fi
10060 AC_SUBST(MKINSTALLDIRS)
10061
10062 dnl Generate list of files to be processed by xgettext which will
10063 dnl be included in po/Makefile.
10064 test -d po || mkdir po
10065 if test "x$srcdir" != "x."; then
10066 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
10067 posrcprefix="$srcdir/"
10068 else
10069 posrcprefix="../$srcdir/"
10070 fi
10071 else
10072 posrcprefix="../"
10073 fi
10074 rm -f po/POTFILES
10075 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
10076 < $srcdir/po/POTFILES.in > po/POTFILES
10077 ])
10078
10079 # AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
10080 # -------------------------------
10081 # Define VARIABLE to the location where catalog files will
10082 # be installed by po/Makefile.
10083 glib_DEFUN([GLIB_DEFINE_LOCALEDIR],
10084 [glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
10085 glib_save_prefix="$prefix"
10086 glib_save_exec_prefix="$exec_prefix"
10087 glib_save_datarootdir="$datarootdir"
10088 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10089 test "x$exec_prefix" = xNONE && exec_prefix=$prefix
10090 datarootdir=`eval echo "${datarootdir}"`
10091 if test "x$CATOBJEXT" = "x.mo" ; then
10092 localedir=`eval echo "${libdir}/locale"`
10093 else
10094 localedir=`eval echo "${datadir}/locale"`
10095 fi
10096 prefix="$glib_save_prefix"
10097 exec_prefix="$glib_save_exec_prefix"
10098 datarootdir="$glib_save_datarootdir"
10099 AC_DEFINE_UNQUOTED($1, "$localedir",
10100 [Define the location where the catalogs will be installed])
10101 ])
10102
10103 dnl
10104 dnl Now the definitions that aclocal will find
10105 dnl
10106 ifdef(glib_configure_ac,[],[
10107 AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
10108 AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
10109 ])dnl
10110
10111 # GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
10112 #
10113 # Create a temporary file with TEST-FILE as its contents and pass the
10114 # file name to PROGRAM. Perform ACTION-IF-PASS if PROGRAM exits with
10115 # 0 and perform ACTION-IF-FAIL for any other exit status.
10116 AC_DEFUN([GLIB_RUN_PROG],
10117 [cat >conftest.foo <<_ACEOF
10118 $2
10119 _ACEOF
10120 if AC_RUN_LOG([$1 conftest.foo]); then
10121 m4_ifval([$3], [$3], [:])
10122 m4_ifvaln([$4], [else $4])dnl
10123 echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
10124 sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
10125 fi])
10126
10127
10470 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
10471 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
10472 am__untar="$_am_tar -xf -"
10473 ;;
10474 plaintar)
10475 # Must skip GNU tar: if it does not support --format= it doesn't create
10476 # ustar tarball either.
10477 (tar --version) >/dev/null 2>&1 && continue
10478 am__tar='tar chf - "$$tardir"'
10479 am__tar_='tar chf - "$tardir"'
10480 am__untar='tar xf -'
10481 ;;
10482 pax)
10483 am__tar='pax -L -x $1 -w "$$tardir"'
10484 am__tar_='pax -L -x $1 -w "$tardir"'
10485 am__untar='pax -r'
10486 ;;
10487 cpio)
10488 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
10489 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
10490 am__untar='cpio -i -H $1 -d'
10491 ;;
10492 none)
10493 am__tar=false
10494 am__tar_=false
10495 am__untar=false
10496 ;;
10497 esac
10498
10499 # If the value was cached, stop now. We just wanted to have am__tar
10500 # and am__untar set.
10501 test -n "${am_cv_prog_tar_$1}" && break
10502
10503 # tar/untar a dummy directory, and stop if the command works
10504 rm -rf conftest.dir
10505 mkdir conftest.dir
10506 echo GrepMe > conftest.dir/file
10507 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
10508 rm -rf conftest.dir
10509 if test -s conftest.tar; then
10510 AM_RUN_LOG([$am__untar <conftest.tar])
10511 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
10512 fi
10513 done
10514 rm -rf conftest.dir
10515
10516 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
10517 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
10518 AC_SUBST([am__tar])
10519 AC_SUBST([am__untar])
10520 ]) # _AM_PROG_TAR
10521
+1229
-539
configure less more
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.66 for polkit-gnome 0.100.
2 # Generated by GNU Autoconf 2.68 for polkit-gnome 0.101.
33 #
44 # Report bugs to <http://lists.freedesktop.org/mailman/listinfo/polkit-devel>.
55 #
9090 IFS=" "" $as_nl"
9191
9292 # Find who we are. Look in the path if we contain no directory separator.
93 as_myself=
9394 case $0 in #((
9495 *[\\/]* ) as_myself=$0 ;;
9596 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
223224 # We cannot yet assume a decent shell, so we have to provide a
224225 # neutralization value for shells without unset; and this also
225226 # works around shells that cannot unset nonexistent variables.
227 # Preserve -v and -x to the replacement shell.
226228 BASH_ENV=/dev/null
227229 ENV=/dev/null
228230 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
229231 export CONFIG_SHELL
230 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
232 case $- in # ((((
233 *v*x* | *x*v* ) as_opts=-vx ;;
234 *v* ) as_opts=-v ;;
235 *x* ) as_opts=-x ;;
236 * ) as_opts= ;;
237 esac
238 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
231239 fi
232240
233241 if test x$as_have_required = xno; then :
562570 # Identity of this package.
563571 PACKAGE_NAME='polkit-gnome'
564572 PACKAGE_TARNAME='polkit-gnome'
565 PACKAGE_VERSION='0.100'
566 PACKAGE_STRING='polkit-gnome 0.100'
573 PACKAGE_VERSION='0.101'
574 PACKAGE_STRING='polkit-gnome 0.101'
567575 PACKAGE_BUGREPORT='http://lists.freedesktop.org/mailman/listinfo/polkit-devel'
568576 PACKAGE_URL=''
569577
697705 LIPO
698706 NMEDIT
699707 DSYMUTIL
708 MANIFEST_TOOL
700709 RANLIB
710 ac_ct_AR
701711 AR
712 DLLTOOL
702713 OBJDUMP
703714 LN_S
704715 NM
815826 with_pic
816827 enable_fast_install
817828 with_gnu_ld
829 with_sysroot
818830 enable_libtool_lock
819831 with_html_dir
820832 enable_gtk_doc
837849 LIBS
838850 CPPFLAGS
839851 CPP
852 CPPFLAGS
840853 PKG_CONFIG
841854 PKG_CONFIG_PATH
842855 PKG_CONFIG_LIBDIR
910923 fi
911924
912925 case $ac_option in
913 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
914 *) ac_optarg=yes ;;
926 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
927 *=) ac_optarg= ;;
928 *) ac_optarg=yes ;;
915929 esac
916930
917931 # Accept the important Cygnus configure options, so we can diagnose typos.
12511265 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
12521266 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
12531267 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1254 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1268 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
12551269 ;;
12561270
12571271 esac
13891403 # Omit some internal or obsolete options to make the list less imposing.
13901404 # This message is too long to be a string in the A/UX 3.1 sh.
13911405 cat <<_ACEOF
1392 \`configure' configures polkit-gnome 0.100 to adapt to many kinds of systems.
1406 \`configure' configures polkit-gnome 0.101 to adapt to many kinds of systems.
13931407
13941408 Usage: $0 [OPTION]... [VAR=VALUE]...
13951409
14591473
14601474 if test -n "$ac_init_help"; then
14611475 case $ac_init_help in
1462 short | recursive ) echo "Configuration of polkit-gnome 0.100:";;
1476 short | recursive ) echo "Configuration of polkit-gnome 0.101:";;
14631477 esac
14641478 cat <<\_ACEOF
14651479
14951509 --with-pic try to use only PIC/non-PIC objects [default=use
14961510 both]
14971511 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1512 --with-sysroot=DIR Search for dependent libraries within DIR
1513 (or the compiler's sysroot if not specified).
14981514 --with-html-dir=PATH path to installed docs
14991515 --with-gtk=2.0|3.0 which gtk+ version to compile against (default: 2.0)
15001516
15931609 test -n "$ac_init_help" && exit $ac_status
15941610 if $ac_init_version; then
15951611 cat <<\_ACEOF
1596 polkit-gnome configure 0.100
1597 generated by GNU Autoconf 2.66
1612 polkit-gnome configure 0.101
1613 generated by GNU Autoconf 2.68
15981614
15991615 Copyright (C) 2010 Free Software Foundation, Inc.
16001616 This configure script is free software; the Free Software Foundation
16401656
16411657 ac_retval=1
16421658 fi
1643 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1659 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
16441660 as_fn_set_status $ac_retval
16451661
16461662 } # ac_fn_c_try_compile
16861702 # interfere with the next link command; also delete a directory that is
16871703 # left behind by Apple's compiler. We do this before executing the actions.
16881704 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1689 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
16901706 as_fn_set_status $ac_retval
16911707
16921708 } # ac_fn_c_try_link
17121728 mv -f conftest.er1 conftest.err
17131729 fi
17141730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715 test $ac_status = 0; } >/dev/null && {
1731 test $ac_status = 0; } > conftest.i && {
17161732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17171733 test ! -s conftest.err
17181734 }; then :
17231739
17241740 ac_retval=1
17251741 fi
1726 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1742 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
17271743 as_fn_set_status $ac_retval
17281744
17291745 } # ac_fn_c_try_cpp
17651781 ac_retval=$ac_status
17661782 fi
17671783 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1768 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1784 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
17691785 as_fn_set_status $ac_retval
17701786
17711787 } # ac_fn_c_try_run
17791795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17801796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
17811797 $as_echo_n "checking for $2... " >&6; }
1782 if eval "test \"\${$3+set}\"" = set; then :
1798 if eval \${$3+:} false; then :
17831799 $as_echo_n "(cached) " >&6
17841800 else
17851801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17971813 eval ac_res=\$$3
17981814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17991815 $as_echo "$ac_res" >&6; }
1800 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1816 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
18011817
18021818 } # ac_fn_c_check_header_compile
18031819
18091825 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18101826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
18111827 $as_echo_n "checking for $2... " >&6; }
1812 if eval "test \"\${$3+set}\"" = set; then :
1828 if eval \${$3+:} false; then :
18131829 $as_echo_n "(cached) " >&6
18141830 else
18151831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18641880 eval ac_res=\$$3
18651881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18661882 $as_echo "$ac_res" >&6; }
1867 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1883 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
18681884
18691885 } # ac_fn_c_check_func
18701886
18761892 ac_fn_c_check_header_mongrel ()
18771893 {
18781894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1879 if eval "test \"\${$3+set}\"" = set; then :
1895 if eval \${$3+:} false; then :
18801896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
18811897 $as_echo_n "checking for $2... " >&6; }
1882 if eval "test \"\${$3+set}\"" = set; then :
1898 if eval \${$3+:} false; then :
18831899 $as_echo_n "(cached) " >&6
18841900 fi
18851901 eval ac_res=\$$3
19151931 else
19161932 ac_header_preproc=no
19171933 fi
1918 rm -f conftest.err conftest.$ac_ext
1934 rm -f conftest.err conftest.i conftest.$ac_ext
19191935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
19201936 $as_echo "$ac_header_preproc" >&6; }
19211937
19461962 esac
19471963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
19481964 $as_echo_n "checking for $2... " >&6; }
1949 if eval "test \"\${$3+set}\"" = set; then :
1965 if eval \${$3+:} false; then :
19501966 $as_echo_n "(cached) " >&6
19511967 else
19521968 eval "$3=\$ac_header_compiler"
19551971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19561972 $as_echo "$ac_res" >&6; }
19571973 fi
1958 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1974 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
19591975
19601976 } # ac_fn_c_check_header_mongrel
19611977 cat >config.log <<_ACEOF
19621978 This file contains any messages produced by compilers while
19631979 running configure, to aid debugging if configure makes a mistake.
19641980
1965 It was created by polkit-gnome $as_me 0.100, which was
1966 generated by GNU Autoconf 2.66. Invocation command line was
1981 It was created by polkit-gnome $as_me 0.101, which was
1982 generated by GNU Autoconf 2.68. Invocation command line was
19671983
19681984 $ $0 $@
19691985
23592375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
23602376 $as_echo_n "checking for a BSD-compatible install... " >&6; }
23612377 if test -z "$INSTALL"; then
2362 if test "${ac_cv_path_install+set}" = set; then :
2378 if ${ac_cv_path_install+:} false; then :
23632379 $as_echo_n "(cached) " >&6
23642380 else
23652381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25362552 set dummy ${ac_tool_prefix}strip; ac_word=$2
25372553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25382554 $as_echo_n "checking for $ac_word... " >&6; }
2539 if test "${ac_cv_prog_STRIP+set}" = set; then :
2555 if ${ac_cv_prog_STRIP+:} false; then :
25402556 $as_echo_n "(cached) " >&6
25412557 else
25422558 if test -n "$STRIP"; then
25762592 set dummy strip; ac_word=$2
25772593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25782594 $as_echo_n "checking for $ac_word... " >&6; }
2579 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2595 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
25802596 $as_echo_n "(cached) " >&6
25812597 else
25822598 if test -n "$ac_ct_STRIP"; then
26292645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
26302646 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
26312647 if test -z "$MKDIR_P"; then
2632 if test "${ac_cv_path_mkdir+set}" = set; then :
2648 if ${ac_cv_path_mkdir+:} false; then :
26332649 $as_echo_n "(cached) " >&6
26342650 else
26352651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26802696 set dummy $ac_prog; ac_word=$2
26812697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26822698 $as_echo_n "checking for $ac_word... " >&6; }
2683 if test "${ac_cv_prog_AWK+set}" = set; then :
2699 if ${ac_cv_prog_AWK+:} false; then :
26842700 $as_echo_n "(cached) " >&6
26852701 else
26862702 if test -n "$AWK"; then
27202736 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
27212737 set x ${MAKE-make}
27222738 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2723 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2739 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
27242740 $as_echo_n "(cached) " >&6
27252741 else
27262742 cat >conftest.make <<\_ACEOF
27782794
27792795 # Define the identity of the package.
27802796 PACKAGE='polkit-gnome'
2781 VERSION='0.100'
2797 VERSION='0.101'
27822798
27832799
27842800 cat >>confdefs.h <<_ACEOF
28812897 set dummy ${ac_tool_prefix}gcc; ac_word=$2
28822898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28832899 $as_echo_n "checking for $ac_word... " >&6; }
2884 if test "${ac_cv_prog_CC+set}" = set; then :
2900 if ${ac_cv_prog_CC+:} false; then :
28852901 $as_echo_n "(cached) " >&6
28862902 else
28872903 if test -n "$CC"; then
29212937 set dummy gcc; ac_word=$2
29222938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29232939 $as_echo_n "checking for $ac_word... " >&6; }
2924 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2940 if ${ac_cv_prog_ac_ct_CC+:} false; then :
29252941 $as_echo_n "(cached) " >&6
29262942 else
29272943 if test -n "$ac_ct_CC"; then
29742990 set dummy ${ac_tool_prefix}cc; ac_word=$2
29752991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29762992 $as_echo_n "checking for $ac_word... " >&6; }
2977 if test "${ac_cv_prog_CC+set}" = set; then :
2993 if ${ac_cv_prog_CC+:} false; then :
29782994 $as_echo_n "(cached) " >&6
29792995 else
29802996 if test -n "$CC"; then
30143030 set dummy cc; ac_word=$2
30153031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30163032 $as_echo_n "checking for $ac_word... " >&6; }
3017 if test "${ac_cv_prog_CC+set}" = set; then :
3033 if ${ac_cv_prog_CC+:} false; then :
30183034 $as_echo_n "(cached) " >&6
30193035 else
30203036 if test -n "$CC"; then
30733089 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
30743090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30753091 $as_echo_n "checking for $ac_word... " >&6; }
3076 if test "${ac_cv_prog_CC+set}" = set; then :
3092 if ${ac_cv_prog_CC+:} false; then :
30773093 $as_echo_n "(cached) " >&6
30783094 else
30793095 if test -n "$CC"; then
31173133 set dummy $ac_prog; ac_word=$2
31183134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31193135 $as_echo_n "checking for $ac_word... " >&6; }
3120 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3136 if ${ac_cv_prog_ac_ct_CC+:} false; then :
31213137 $as_echo_n "(cached) " >&6
31223138 else
31233139 if test -n "$ac_ct_CC"; then
34003416 ac_clean_files=$ac_clean_files_save
34013417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
34023418 $as_echo_n "checking for suffix of object files... " >&6; }
3403 if test "${ac_cv_objext+set}" = set; then :
3419 if ${ac_cv_objext+:} false; then :
34043420 $as_echo_n "(cached) " >&6
34053421 else
34063422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34513467 ac_objext=$OBJEXT
34523468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
34533469 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3454 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3470 if ${ac_cv_c_compiler_gnu+:} false; then :
34553471 $as_echo_n "(cached) " >&6
34563472 else
34573473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34883504 ac_save_CFLAGS=$CFLAGS
34893505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
34903506 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3491 if test "${ac_cv_prog_cc_g+set}" = set; then :
3507 if ${ac_cv_prog_cc_g+:} false; then :
34923508 $as_echo_n "(cached) " >&6
34933509 else
34943510 ac_save_c_werror_flag=$ac_c_werror_flag
35663582 fi
35673583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
35683584 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3569 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3585 if ${ac_cv_prog_cc_c89+:} false; then :
35703586 $as_echo_n "(cached) " >&6
35713587 else
35723588 ac_cv_prog_cc_c89=no
37273743
37283744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
37293745 $as_echo_n "checking dependency style of $depcc... " >&6; }
3730 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3746 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
37313747 $as_echo_n "(cached) " >&6
37323748 else
37333749 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
38533869
38543870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
38553871 $as_echo_n "checking for library containing strerror... " >&6; }
3856 if test "${ac_cv_search_strerror+set}" = set; then :
3872 if ${ac_cv_search_strerror+:} false; then :
38573873 $as_echo_n "(cached) " >&6
38583874 else
38593875 ac_func_search_save_LIBS=$LIBS
38873903 fi
38883904 rm -f core conftest.err conftest.$ac_objext \
38893905 conftest$ac_exeext
3890 if test "${ac_cv_search_strerror+set}" = set; then :
3906 if ${ac_cv_search_strerror+:} false; then :
38913907 break
38923908 fi
38933909 done
3894 if test "${ac_cv_search_strerror+set}" = set; then :
3910 if ${ac_cv_search_strerror+:} false; then :
38953911
38963912 else
38973913 ac_cv_search_strerror=no
39193935 CPP=
39203936 fi
39213937 if test -z "$CPP"; then
3922 if test "${ac_cv_prog_CPP+set}" = set; then :
3938 if ${ac_cv_prog_CPP+:} false; then :
39233939 $as_echo_n "(cached) " >&6
39243940 else
39253941 # Double quotes because CPP needs to be expanded
39493965 # Broken: fails on valid input.
39503966 continue
39513967 fi
3952 rm -f conftest.err conftest.$ac_ext
3968 rm -f conftest.err conftest.i conftest.$ac_ext
39533969
39543970 # OK, works on sane cases. Now check whether nonexistent headers
39553971 # can be detected and how.
39653981 ac_preproc_ok=:
39663982 break
39673983 fi
3968 rm -f conftest.err conftest.$ac_ext
3984 rm -f conftest.err conftest.i conftest.$ac_ext
39693985
39703986 done
39713987 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3972 rm -f conftest.err conftest.$ac_ext
3988 rm -f conftest.i conftest.err conftest.$ac_ext
39733989 if $ac_preproc_ok; then :
39743990 break
39753991 fi
40084024 # Broken: fails on valid input.
40094025 continue
40104026 fi
4011 rm -f conftest.err conftest.$ac_ext
4027 rm -f conftest.err conftest.i conftest.$ac_ext
40124028
40134029 # OK, works on sane cases. Now check whether nonexistent headers
40144030 # can be detected and how.
40244040 ac_preproc_ok=:
40254041 break
40264042 fi
4027 rm -f conftest.err conftest.$ac_ext
4043 rm -f conftest.err conftest.i conftest.$ac_ext
40284044
40294045 done
40304046 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4031 rm -f conftest.err conftest.$ac_ext
4047 rm -f conftest.i conftest.err conftest.$ac_ext
40324048 if $ac_preproc_ok; then :
40334049
40344050 else
40474063
40484064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
40494065 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4050 if test "${ac_cv_path_GREP+set}" = set; then :
4066 if ${ac_cv_path_GREP+:} false; then :
40514067 $as_echo_n "(cached) " >&6
40524068 else
40534069 if test -z "$GREP"; then
41104126
41114127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
41124128 $as_echo_n "checking for egrep... " >&6; }
4113 if test "${ac_cv_path_EGREP+set}" = set; then :
4129 if ${ac_cv_path_EGREP+:} false; then :
41144130 $as_echo_n "(cached) " >&6
41154131 else
41164132 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
41774193
41784194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
41794195 $as_echo_n "checking for ANSI C header files... " >&6; }
4180 if test "${ac_cv_header_stdc+set}" = set; then :
4196 if ${ac_cv_header_stdc+:} false; then :
41814197 $as_echo_n "(cached) " >&6
41824198 else
41834199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42954311
42964312
42974313
4298 macro_version='2.2.10'
4299 macro_revision='1.3175'
4314 macro_version='2.4'
4315 macro_revision='1.3293'
43004316
43014317
43024318
43184334
43194335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
43204336 $as_echo_n "checking build system type... " >&6; }
4321 if test "${ac_cv_build+set}" = set; then :
4337 if ${ac_cv_build+:} false; then :
43224338 $as_echo_n "(cached) " >&6
43234339 else
43244340 ac_build_alias=$build_alias
43524368
43534369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
43544370 $as_echo_n "checking host system type... " >&6; }
4355 if test "${ac_cv_host+set}" = set; then :
4371 if ${ac_cv_host+:} false; then :
43564372 $as_echo_n "(cached) " >&6
43574373 else
43584374 if test "x$host_alias" = x; then
44074423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
44084424 $as_echo_n "checking how to print strings... " >&6; }
44094425 # Test print first, because it will be a builtin if present.
4410 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4426 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
44114427 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
44124428 ECHO='print -r --'
44134429 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
44544470
44554471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
44564472 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4457 if test "${ac_cv_path_SED+set}" = set; then :
4473 if ${ac_cv_path_SED+:} false; then :
44584474 $as_echo_n "(cached) " >&6
44594475 else
44604476 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
45364552
45374553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
45384554 $as_echo_n "checking for fgrep... " >&6; }
4539 if test "${ac_cv_path_FGREP+set}" = set; then :
4555 if ${ac_cv_path_FGREP+:} false; then :
45404556 $as_echo_n "(cached) " >&6
45414557 else
45424558 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
46674683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
46684684 $as_echo_n "checking for non-GNU ld... " >&6; }
46694685 fi
4670 if test "${lt_cv_path_LD+set}" = set; then :
4686 if ${lt_cv_path_LD+:} false; then :
46714687 $as_echo_n "(cached) " >&6
46724688 else
46734689 if test -z "$LD"; then
47074723 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
47084724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
47094725 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4710 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4726 if ${lt_cv_prog_gnu_ld+:} false; then :
47114727 $as_echo_n "(cached) " >&6
47124728 else
47134729 # I'd rather use --version here, but apparently some GNU lds only accept -v.
47344750
47354751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
47364752 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4737 if test "${lt_cv_path_NM+set}" = set; then :
4753 if ${lt_cv_path_NM+:} false; then :
47384754 $as_echo_n "(cached) " >&6
47394755 else
47404756 if test -n "$NM"; then
47974813 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
47984814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
47994815 $as_echo_n "checking for $ac_word... " >&6; }
4800 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4816 if ${ac_cv_prog_DUMPBIN+:} false; then :
48014817 $as_echo_n "(cached) " >&6
48024818 else
48034819 if test -n "$DUMPBIN"; then
48414857 set dummy $ac_prog; ac_word=$2
48424858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
48434859 $as_echo_n "checking for $ac_word... " >&6; }
4844 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4860 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
48454861 $as_echo_n "(cached) " >&6
48464862 else
48474863 if test -n "$ac_ct_DUMPBIN"; then
49134929
49144930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
49154931 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4916 if test "${lt_cv_nm_interface+set}" = set; then :
4932 if ${lt_cv_nm_interface+:} false; then :
49174933 $as_echo_n "(cached) " >&6
49184934 else
49194935 lt_cv_nm_interface="BSD nm"
49484964 # find the maximum length of command line arguments
49494965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
49504966 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4951 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4967 if ${lt_cv_sys_max_cmd_len+:} false; then :
49524968 $as_echo_n "(cached) " >&6
49534969 else
49544970 i=0
50935109 # Try some XSI features
50945110 xsi_shell=no
50955111 ( _lt_dummy="a/b/c"
5096 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5097 = c,a/b,, \
5112 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5113 = c,a/b,b/c, \
50985114 && eval 'test $(( 1 + 1 )) -eq 2 \
50995115 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
51005116 && xsi_shell=yes
51435159
51445160
51455161
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5163 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5164 if ${lt_cv_to_host_file_cmd+:} false; then :
5165 $as_echo_n "(cached) " >&6
5166 else
5167 case $host in
5168 *-*-mingw* )
5169 case $build in
5170 *-*-mingw* ) # actually msys
5171 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5172 ;;
5173 *-*-cygwin* )
5174 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5175 ;;
5176 * ) # otherwise, assume *nix
5177 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5178 ;;
5179 esac
5180 ;;
5181 *-*-cygwin* )
5182 case $build in
5183 *-*-mingw* ) # actually msys
5184 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5185 ;;
5186 *-*-cygwin* )
5187 lt_cv_to_host_file_cmd=func_convert_file_noop
5188 ;;
5189 * ) # otherwise, assume *nix
5190 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5191 ;;
5192 esac
5193 ;;
5194 * ) # unhandled hosts (and "normal" native builds)
5195 lt_cv_to_host_file_cmd=func_convert_file_noop
5196 ;;
5197 esac
5198
5199 fi
5200
5201 to_host_file_cmd=$lt_cv_to_host_file_cmd
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5203 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5204
5205
5206
5207
5208
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5210 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5211 if ${lt_cv_to_tool_file_cmd+:} false; then :
5212 $as_echo_n "(cached) " >&6
5213 else
5214 #assume ordinary cross tools, or native build.
5215 lt_cv_to_tool_file_cmd=func_convert_file_noop
5216 case $host in
5217 *-*-mingw* )
5218 case $build in
5219 *-*-mingw* ) # actually msys
5220 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5221 ;;
5222 esac
5223 ;;
5224 esac
5225
5226 fi
5227
5228 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5230 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5231
5232
5233
5234
5235
51465236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
51475237 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5148 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5238 if ${lt_cv_ld_reload_flag+:} false; then :
51495239 $as_echo_n "(cached) " >&6
51505240 else
51515241 lt_cv_ld_reload_flag='-r'
51595249 esac
51605250 reload_cmds='$LD$reload_flag -o $output$reload_objs'
51615251 case $host_os in
5252 cygwin* | mingw* | pw32* | cegcc*)
5253 if test "$GCC" != yes; then
5254 reload_cmds=false
5255 fi
5256 ;;
51625257 darwin*)
51635258 if test "$GCC" = yes; then
51645259 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
51815276 set dummy ${ac_tool_prefix}objdump; ac_word=$2
51825277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
51835278 $as_echo_n "checking for $ac_word... " >&6; }
5184 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5279 if ${ac_cv_prog_OBJDUMP+:} false; then :
51855280 $as_echo_n "(cached) " >&6
51865281 else
51875282 if test -n "$OBJDUMP"; then
52215316 set dummy objdump; ac_word=$2
52225317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
52235318 $as_echo_n "checking for $ac_word... " >&6; }
5224 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5319 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
52255320 $as_echo_n "(cached) " >&6
52265321 else
52275322 if test -n "$ac_ct_OBJDUMP"; then
52805375
52815376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
52825377 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5283 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5378 if ${lt_cv_deplibs_check_method+:} false; then :
52845379 $as_echo_n "(cached) " >&6
52855380 else
52865381 lt_cv_file_magic_cmd='$MAGIC_CMD'
54825577 fi
54835578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
54845579 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5580
5581 file_magic_glob=
5582 want_nocaseglob=no
5583 if test "$build" = "$host"; then
5584 case $host_os in
5585 mingw* | pw32*)
5586 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5587 want_nocaseglob=yes
5588 else
5589 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5590 fi
5591 ;;
5592 esac
5593 fi
5594
54855595 file_magic_cmd=$lt_cv_file_magic_cmd
54865596 deplibs_check_method=$lt_cv_deplibs_check_method
54875597 test -z "$deplibs_check_method" && deplibs_check_method=unknown
54975607
54985608
54995609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
55005620 if test -n "$ac_tool_prefix"; then
5501 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5502 set dummy ${ac_tool_prefix}ar; ac_word=$2
5621 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5622 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
55035623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
55045624 $as_echo_n "checking for $ac_word... " >&6; }
5505 if test "${ac_cv_prog_AR+set}" = set; then :
5625 if ${ac_cv_prog_DLLTOOL+:} false; then :
55065626 $as_echo_n "(cached) " >&6
55075627 else
5508 if test -n "$AR"; then
5509 ac_cv_prog_AR="$AR" # Let the user override the test.
5628 if test -n "$DLLTOOL"; then
5629 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
55105630 else
55115631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
55125632 for as_dir in $PATH
55155635 test -z "$as_dir" && as_dir=.
55165636 for ac_exec_ext in '' $ac_executable_extensions; do
55175637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5518 ac_cv_prog_AR="${ac_tool_prefix}ar"
5638 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
55195639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
55205640 break 2
55215641 fi
55255645
55265646 fi
55275647 fi
5528 AR=$ac_cv_prog_AR
5529 if test -n "$AR"; then
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5531 $as_echo "$AR" >&6; }
5648 DLLTOOL=$ac_cv_prog_DLLTOOL
5649 if test -n "$DLLTOOL"; then
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5651 $as_echo "$DLLTOOL" >&6; }
55325652 else
55335653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55345654 $as_echo "no" >&6; }
55365656
55375657
55385658 fi
5539 if test -z "$ac_cv_prog_AR"; then
5540 ac_ct_AR=$AR
5541 # Extract the first word of "ar", so it can be a program name with args.
5542 set dummy ar; ac_word=$2
5659 if test -z "$ac_cv_prog_DLLTOOL"; then
5660 ac_ct_DLLTOOL=$DLLTOOL
5661 # Extract the first word of "dlltool", so it can be a program name with args.
5662 set dummy dlltool; ac_word=$2
55435663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
55445664 $as_echo_n "checking for $ac_word... " >&6; }
5545 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5665 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
55465666 $as_echo_n "(cached) " >&6
55475667 else
5548 if test -n "$ac_ct_AR"; then
5549 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5668 if test -n "$ac_ct_DLLTOOL"; then
5669 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
55505670 else
55515671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
55525672 for as_dir in $PATH
55555675 test -z "$as_dir" && as_dir=.
55565676 for ac_exec_ext in '' $ac_executable_extensions; do
55575677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5558 ac_cv_prog_ac_ct_AR="ar"
5678 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
55595679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
55605680 break 2
55615681 fi
55655685
55665686 fi
55675687 fi
5688 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5689 if test -n "$ac_ct_DLLTOOL"; then
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5691 $as_echo "$ac_ct_DLLTOOL" >&6; }
5692 else
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5694 $as_echo "no" >&6; }
5695 fi
5696
5697 if test "x$ac_ct_DLLTOOL" = x; then
5698 DLLTOOL="false"
5699 else
5700 case $cross_compiling:$ac_tool_warned in
5701 yes:)
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5703 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5704 ac_tool_warned=yes ;;
5705 esac
5706 DLLTOOL=$ac_ct_DLLTOOL
5707 fi
5708 else
5709 DLLTOOL="$ac_cv_prog_DLLTOOL"
5710 fi
5711
5712 test -z "$DLLTOOL" && DLLTOOL=dlltool
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5724 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5725 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5726 $as_echo_n "(cached) " >&6
5727 else
5728 lt_cv_sharedlib_from_linklib_cmd='unknown'
5729
5730 case $host_os in
5731 cygwin* | mingw* | pw32* | cegcc*)
5732 # two different shell functions defined in ltmain.sh
5733 # decide which to use based on capabilities of $DLLTOOL
5734 case `$DLLTOOL --help 2>&1` in
5735 *--identify-strict*)
5736 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5737 ;;
5738 *)
5739 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5740 ;;
5741 esac
5742 ;;
5743 *)
5744 # fallback: assume linklib IS sharedlib
5745 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5746 ;;
5747 esac
5748
5749 fi
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5751 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5752 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5753 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5754
5755
5756
5757
5758
5759
5760
5761 if test -n "$ac_tool_prefix"; then
5762 for ac_prog in ar
5763 do
5764 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5765 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5767 $as_echo_n "checking for $ac_word... " >&6; }
5768 if ${ac_cv_prog_AR+:} false; then :
5769 $as_echo_n "(cached) " >&6
5770 else
5771 if test -n "$AR"; then
5772 ac_cv_prog_AR="$AR" # Let the user override the test.
5773 else
5774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5775 for as_dir in $PATH
5776 do
5777 IFS=$as_save_IFS
5778 test -z "$as_dir" && as_dir=.
5779 for ac_exec_ext in '' $ac_executable_extensions; do
5780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5781 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5783 break 2
5784 fi
5785 done
5786 done
5787 IFS=$as_save_IFS
5788
5789 fi
5790 fi
5791 AR=$ac_cv_prog_AR
5792 if test -n "$AR"; then
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5794 $as_echo "$AR" >&6; }
5795 else
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5797 $as_echo "no" >&6; }
5798 fi
5799
5800
5801 test -n "$AR" && break
5802 done
5803 fi
5804 if test -z "$AR"; then
5805 ac_ct_AR=$AR
5806 for ac_prog in ar
5807 do
5808 # Extract the first word of "$ac_prog", so it can be a program name with args.
5809 set dummy $ac_prog; ac_word=$2
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5811 $as_echo_n "checking for $ac_word... " >&6; }
5812 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5813 $as_echo_n "(cached) " >&6
5814 else
5815 if test -n "$ac_ct_AR"; then
5816 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5817 else
5818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5819 for as_dir in $PATH
5820 do
5821 IFS=$as_save_IFS
5822 test -z "$as_dir" && as_dir=.
5823 for ac_exec_ext in '' $ac_executable_extensions; do
5824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5825 ac_cv_prog_ac_ct_AR="$ac_prog"
5826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5827 break 2
5828 fi
5829 done
5830 done
5831 IFS=$as_save_IFS
5832
5833 fi
5834 fi
55685835 ac_ct_AR=$ac_cv_prog_ac_ct_AR
55695836 if test -n "$ac_ct_AR"; then
55705837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
55735840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55745841 $as_echo "no" >&6; }
55755842 fi
5843
5844
5845 test -n "$ac_ct_AR" && break
5846 done
55765847
55775848 if test "x$ac_ct_AR" = x; then
55785849 AR="false"
55855856 esac
55865857 AR=$ac_ct_AR
55875858 fi
5588 else
5589 AR="$ac_cv_prog_AR"
5590 fi
5591
5592 test -z "$AR" && AR=ar
5593 test -z "$AR_FLAGS" && AR_FLAGS=cru
5594
5595
5596
5597
5859 fi
5860
5861 : ${AR=ar}
5862 : ${AR_FLAGS=cru}
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5875 $as_echo_n "checking for archiver @FILE support... " >&6; }
5876 if ${lt_cv_ar_at_file+:} false; then :
5877 $as_echo_n "(cached) " >&6
5878 else
5879 lt_cv_ar_at_file=no
5880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5881 /* end confdefs.h. */
5882
5883 int
5884 main ()
5885 {
5886
5887 ;
5888 return 0;
5889 }
5890 _ACEOF
5891 if ac_fn_c_try_compile "$LINENO"; then :
5892 echo conftest.$ac_objext > conftest.lst
5893 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5894 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5895 (eval $lt_ar_try) 2>&5
5896 ac_status=$?
5897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5898 test $ac_status = 0; }
5899 if test "$ac_status" -eq 0; then
5900 # Ensure the archiver fails upon bogus file names.
5901 rm -f conftest.$ac_objext libconftest.a
5902 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5903 (eval $lt_ar_try) 2>&5
5904 ac_status=$?
5905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5906 test $ac_status = 0; }
5907 if test "$ac_status" -ne 0; then
5908 lt_cv_ar_at_file=@
5909 fi
5910 fi
5911 rm -f conftest.* libconftest.a
5912
5913 fi
5914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5915
5916 fi
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5918 $as_echo "$lt_cv_ar_at_file" >&6; }
5919
5920 if test "x$lt_cv_ar_at_file" = xno; then
5921 archiver_list_spec=
5922 else
5923 archiver_list_spec=$lt_cv_ar_at_file
5924 fi
55985925
55995926
56005927
56075934 set dummy ${ac_tool_prefix}strip; ac_word=$2
56085935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
56095936 $as_echo_n "checking for $ac_word... " >&6; }
5610 if test "${ac_cv_prog_STRIP+set}" = set; then :
5937 if ${ac_cv_prog_STRIP+:} false; then :
56115938 $as_echo_n "(cached) " >&6
56125939 else
56135940 if test -n "$STRIP"; then
56475974 set dummy strip; ac_word=$2
56485975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
56495976 $as_echo_n "checking for $ac_word... " >&6; }
5650 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5977 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
56515978 $as_echo_n "(cached) " >&6
56525979 else
56535980 if test -n "$ac_ct_STRIP"; then
57066033 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
57076034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
57086035 $as_echo_n "checking for $ac_word... " >&6; }
5709 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6036 if ${ac_cv_prog_RANLIB+:} false; then :
57106037 $as_echo_n "(cached) " >&6
57116038 else
57126039 if test -n "$RANLIB"; then
57466073 set dummy ranlib; ac_word=$2
57476074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
57486075 $as_echo_n "checking for $ac_word... " >&6; }
5749 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6076 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
57506077 $as_echo_n "(cached) " >&6
57516078 else
57526079 if test -n "$ac_ct_RANLIB"; then
58756202 # Check for command to grab the raw symbol name followed by C symbol from nm.
58766203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
58776204 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5878 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6205 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
58796206 $as_echo_n "(cached) " >&6
58806207 else
58816208
59366263 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
59376264
59386265 # Transform an extracted symbol line into symbol name and symbol address
5939 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5940 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6266 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6267 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
59416268
59426269 # Handle CRLF in mingw tool chain
59436270 opt_cr=
59736300 else
59746301 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
59756302 fi
6303 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
59766304
59776305 # Check to see that the pipe works correctly.
59786306 pipe_works=no
60146342 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
60156343 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
60166344 cat <<_LT_EOF > conftest.$ac_ext
6345 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6346 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6347 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6348 relocations are performed -- see ld's documentation on pseudo-relocs. */
6349 # define LT_DLSYM_CONST
6350 #elif defined(__osf__)
6351 /* This system does not cope well with relocations in const data. */
6352 # define LT_DLSYM_CONST
6353 #else
6354 # define LT_DLSYM_CONST const
6355 #endif
6356
60176357 #ifdef __cplusplus
60186358 extern "C" {
60196359 #endif
60256365 cat <<_LT_EOF >> conftest.$ac_ext
60266366
60276367 /* The mapping between symbol names and symbols. */
6028 const struct {
6368 LT_DLSYM_CONST struct {
60296369 const char *name;
60306370 void *address;
60316371 }
60516391 _LT_EOF
60526392 # Now try linking the two files.
60536393 mv conftest.$ac_objext conftstm.$ac_objext
6054 lt_save_LIBS="$LIBS"
6055 lt_save_CFLAGS="$CFLAGS"
6394 lt_globsym_save_LIBS=$LIBS
6395 lt_globsym_save_CFLAGS=$CFLAGS
60566396 LIBS="conftstm.$ac_objext"
60576397 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
60586398 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
60626402 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
60636403 pipe_works=yes
60646404 fi
6065 LIBS="$lt_save_LIBS"
6066 CFLAGS="$lt_save_CFLAGS"
6405 LIBS=$lt_globsym_save_LIBS
6406 CFLAGS=$lt_globsym_save_CFLAGS
60676407 else
60686408 echo "cannot find nm_test_func in $nlist" >&5
60696409 fi
61006440 $as_echo "ok" >&6; }
61016441 fi
61026442
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6443 # Response file support.
6444 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6445 nm_file_list_spec='@'
6446 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6447 nm_file_list_spec='@'
6448 fi
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6477 $as_echo_n "checking for sysroot... " >&6; }
6478
6479 # Check whether --with-sysroot was given.
6480 if test "${with_sysroot+set}" = set; then :
6481 withval=$with_sysroot;
6482 else
6483 with_sysroot=no
6484 fi
6485
6486
6487 lt_sysroot=
6488 case ${with_sysroot} in #(
6489 yes)
6490 if test "$GCC" = yes; then
6491 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6492 fi
6493 ;; #(
6494 /*)
6495 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6496 ;; #(
6497 no|'')
6498 ;; #(
6499 *)
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6501 $as_echo "${with_sysroot}" >&6; }
6502 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6503 ;;
6504 esac
6505
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6507 $as_echo "${lt_sysroot:-no}" >&6; }
61196508
61206509
61216510
62466635 CFLAGS="$CFLAGS -belf"
62476636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
62486637 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6249 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6638 if ${lt_cv_cc_needs_belf+:} false; then :
62506639 $as_echo_n "(cached) " >&6
62516640 else
62526641 ac_ext=c
63146703
63156704 need_locks="$enable_libtool_lock"
63166705
6706 if test -n "$ac_tool_prefix"; then
6707 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6708 set dummy ${ac_tool_prefix}mt; ac_word=$2
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6710 $as_echo_n "checking for $ac_word... " >&6; }
6711 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6712 $as_echo_n "(cached) " >&6
6713 else
6714 if test -n "$MANIFEST_TOOL"; then
6715 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6716 else
6717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6718 for as_dir in $PATH
6719 do
6720 IFS=$as_save_IFS
6721 test -z "$as_dir" && as_dir=.
6722 for ac_exec_ext in '' $ac_executable_extensions; do
6723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6724 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6726 break 2
6727 fi
6728 done
6729 done
6730 IFS=$as_save_IFS
6731
6732 fi
6733 fi
6734 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6735 if test -n "$MANIFEST_TOOL"; then
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6737 $as_echo "$MANIFEST_TOOL" >&6; }
6738 else
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6740 $as_echo "no" >&6; }
6741 fi
6742
6743
6744 fi
6745 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6746 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6747 # Extract the first word of "mt", so it can be a program name with args.
6748 set dummy mt; ac_word=$2
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6750 $as_echo_n "checking for $ac_word... " >&6; }
6751 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6752 $as_echo_n "(cached) " >&6
6753 else
6754 if test -n "$ac_ct_MANIFEST_TOOL"; then
6755 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6756 else
6757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6758 for as_dir in $PATH
6759 do
6760 IFS=$as_save_IFS
6761 test -z "$as_dir" && as_dir=.
6762 for ac_exec_ext in '' $ac_executable_extensions; do
6763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6764 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6766 break 2
6767 fi
6768 done
6769 done
6770 IFS=$as_save_IFS
6771
6772 fi
6773 fi
6774 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6775 if test -n "$ac_ct_MANIFEST_TOOL"; then
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6777 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6778 else
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6780 $as_echo "no" >&6; }
6781 fi
6782
6783 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6784 MANIFEST_TOOL=":"
6785 else
6786 case $cross_compiling:$ac_tool_warned in
6787 yes:)
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6789 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6790 ac_tool_warned=yes ;;
6791 esac
6792 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6793 fi
6794 else
6795 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6796 fi
6797
6798 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6800 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6801 if ${lt_cv_path_mainfest_tool+:} false; then :
6802 $as_echo_n "(cached) " >&6
6803 else
6804 lt_cv_path_mainfest_tool=no
6805 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6806 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6807 cat conftest.err >&5
6808 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6809 lt_cv_path_mainfest_tool=yes
6810 fi
6811 rm -f conftest*
6812 fi
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6814 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6815 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6816 MANIFEST_TOOL=:
6817 fi
6818
6819
6820
6821
6822
63176823
63186824 case $host_os in
63196825 rhapsody* | darwin*)
63226828 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
63236829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
63246830 $as_echo_n "checking for $ac_word... " >&6; }
6325 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6831 if ${ac_cv_prog_DSYMUTIL+:} false; then :
63266832 $as_echo_n "(cached) " >&6
63276833 else
63286834 if test -n "$DSYMUTIL"; then
63626868 set dummy dsymutil; ac_word=$2
63636869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
63646870 $as_echo_n "checking for $ac_word... " >&6; }
6365 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6871 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
63666872 $as_echo_n "(cached) " >&6
63676873 else
63686874 if test -n "$ac_ct_DSYMUTIL"; then
64146920 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
64156921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
64166922 $as_echo_n "checking for $ac_word... " >&6; }
6417 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6923 if ${ac_cv_prog_NMEDIT+:} false; then :
64186924 $as_echo_n "(cached) " >&6
64196925 else
64206926 if test -n "$NMEDIT"; then
64546960 set dummy nmedit; ac_word=$2
64556961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
64566962 $as_echo_n "checking for $ac_word... " >&6; }
6457 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6963 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
64586964 $as_echo_n "(cached) " >&6
64596965 else
64606966 if test -n "$ac_ct_NMEDIT"; then
65067012 set dummy ${ac_tool_prefix}lipo; ac_word=$2
65077013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
65087014 $as_echo_n "checking for $ac_word... " >&6; }
6509 if test "${ac_cv_prog_LIPO+set}" = set; then :
7015 if ${ac_cv_prog_LIPO+:} false; then :
65107016 $as_echo_n "(cached) " >&6
65117017 else
65127018 if test -n "$LIPO"; then
65467052 set dummy lipo; ac_word=$2
65477053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
65487054 $as_echo_n "checking for $ac_word... " >&6; }
6549 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7055 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
65507056 $as_echo_n "(cached) " >&6
65517057 else
65527058 if test -n "$ac_ct_LIPO"; then
65987104 set dummy ${ac_tool_prefix}otool; ac_word=$2
65997105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
66007106 $as_echo_n "checking for $ac_word... " >&6; }
6601 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7107 if ${ac_cv_prog_OTOOL+:} false; then :
66027108 $as_echo_n "(cached) " >&6
66037109 else
66047110 if test -n "$OTOOL"; then
66387144 set dummy otool; ac_word=$2
66397145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
66407146 $as_echo_n "checking for $ac_word... " >&6; }
6641 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7147 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
66427148 $as_echo_n "(cached) " >&6
66437149 else
66447150 if test -n "$ac_ct_OTOOL"; then
66907196 set dummy ${ac_tool_prefix}otool64; ac_word=$2
66917197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
66927198 $as_echo_n "checking for $ac_word... " >&6; }
6693 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7199 if ${ac_cv_prog_OTOOL64+:} false; then :
66947200 $as_echo_n "(cached) " >&6
66957201 else
66967202 if test -n "$OTOOL64"; then
67307236 set dummy otool64; ac_word=$2
67317237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
67327238 $as_echo_n "checking for $ac_word... " >&6; }
6733 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7239 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
67347240 $as_echo_n "(cached) " >&6
67357241 else
67367242 if test -n "$ac_ct_OTOOL64"; then
68057311
68067312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
68077313 $as_echo_n "checking for -single_module linker flag... " >&6; }
6808 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7314 if ${lt_cv_apple_cc_single_mod+:} false; then :
68097315 $as_echo_n "(cached) " >&6
68107316 else
68117317 lt_cv_apple_cc_single_mod=no
68347340 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
68357341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
68367342 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6837 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7343 if ${lt_cv_ld_exported_symbols_list+:} false; then :
68387344 $as_echo_n "(cached) " >&6
68397345 else
68407346 lt_cv_ld_exported_symbols_list=no
68667372 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
68677373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
68687374 $as_echo_n "checking for -force_load linker flag... " >&6; }
6869 if test "${lt_cv_ld_force_load+set}" = set; then :
7375 if ${lt_cv_ld_force_load+:} false; then :
68707376 $as_echo_n "(cached) " >&6
68717377 else
68727378 lt_cv_ld_force_load=no
69527458 do :
69537459 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
69547460 "
6955 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7461 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
69567462 cat >>confdefs.h <<_ACEOF
69577463 #define HAVE_DLFCN_H 1
69587464 _ACEOF
71397645
71407646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
71417647 $as_echo_n "checking for objdir... " >&6; }
7142 if test "${lt_cv_objdir+set}" = set; then :
7648 if ${lt_cv_objdir+:} false; then :
71437649 $as_echo_n "(cached) " >&6
71447650 else
71457651 rm -f .libs 2>/dev/null
72177723 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
72187724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
72197725 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7220 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7726 if ${lt_cv_path_MAGIC_CMD+:} false; then :
72217727 $as_echo_n "(cached) " >&6
72227728 else
72237729 case $MAGIC_CMD in
72837789 if test -n "$ac_tool_prefix"; then
72847790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
72857791 $as_echo_n "checking for file... " >&6; }
7286 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7792 if ${lt_cv_path_MAGIC_CMD+:} false; then :
72877793 $as_echo_n "(cached) " >&6
72887794 else
72897795 case $MAGIC_CMD in
74217927
74227928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
74237929 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7424 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7930 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
74257931 $as_echo_n "(cached) " >&6
74267932 else
74277933 lt_cv_prog_compiler_rtti_exceptions=no
74747980 lt_prog_compiler_pic=
74757981 lt_prog_compiler_static=
74767982
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7478 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
74797983
74807984 if test "$GCC" = yes; then
74817985 lt_prog_compiler_wl='-Wl,'
76398143 lt_prog_compiler_wl='-Wl,'
76408144 lt_prog_compiler_pic='--shared'
76418145 lt_prog_compiler_static='--static'
8146 ;;
8147 nagfor*)
8148 # NAG Fortran compiler
8149 lt_prog_compiler_wl='-Wl,-Wl,,'
8150 lt_prog_compiler_pic='-PIC'
8151 lt_prog_compiler_static='-Bstatic'
76428152 ;;
76438153 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
76448154 # Portland Group compilers (*not* the Pentium gcc compiler,
77598269 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
77608270 ;;
77618271 esac
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7763 $as_echo "$lt_prog_compiler_pic" >&6; }
7764
7765
7766
7767
7768
8272
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8274 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8275 if ${lt_cv_prog_compiler_pic+:} false; then :
8276 $as_echo_n "(cached) " >&6
8277 else
8278 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8279 fi
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8281 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8282 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
77698283
77708284 #
77718285 # Check to make sure the PIC flag actually works.
77738287 if test -n "$lt_prog_compiler_pic"; then
77748288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
77758289 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7776 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8290 if ${lt_cv_prog_compiler_pic_works+:} false; then :
77778291 $as_echo_n "(cached) " >&6
77788292 else
77798293 lt_cv_prog_compiler_pic_works=no
78268340
78278341
78288342
8343
8344
8345
8346
8347
78298348 #
78308349 # Check to make sure the static flag actually works.
78318350 #
78328351 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
78338352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
78348353 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7835 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8354 if ${lt_cv_prog_compiler_static_works+:} false; then :
78368355 $as_echo_n "(cached) " >&6
78378356 else
78388357 lt_cv_prog_compiler_static_works=no
78758394
78768395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
78778396 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7878 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8397 if ${lt_cv_prog_compiler_c_o+:} false; then :
78798398 $as_echo_n "(cached) " >&6
78808399 else
78818400 lt_cv_prog_compiler_c_o=no
79308449
79318450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
79328451 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7933 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8452 if ${lt_cv_prog_compiler_c_o+:} false; then :
79348453 $as_echo_n "(cached) " >&6
79358454 else
79368455 lt_cv_prog_compiler_c_o=no
81768695 allow_undefined_flag=unsupported
81778696 always_export_symbols=no
81788697 enable_shared_with_static_runtimes=yes
8179 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8698 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8699 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
81808700
81818701 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
81828702 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
82248744 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
82258745 && test "$tmp_diet" = no
82268746 then
8227 tmp_addflag=
8747 tmp_addflag=' $pic_flag'
82288748 tmp_sharedflag='-shared'
82298749 case $cc_basename,$host_cpu in
82308750 pgcc*) # Portland Group C compiler
82948814 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
82958815 wlarc=
82968816 else
8297 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8298 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8817 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8818 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
82998819 fi
83008820 ;;
83018821
83138833
83148834 _LT_EOF
83158835 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8316 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8317 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8836 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8837 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
83188838 else
83198839 ld_shlibs=no
83208840 fi
83608880
83618881 *)
83628882 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8363 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8364 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8883 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8884 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
83658885 else
83668886 ld_shlibs=no
83678887 fi
84919011 allow_undefined_flag='-berok'
84929012 # Determine the default libpath from the value encoded in an
84939013 # empty executable.
8494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9014 if test "${lt_cv_aix_libpath+set}" = set; then
9015 aix_libpath=$lt_cv_aix_libpath
9016 else
9017 if ${lt_cv_aix_libpath_+:} false; then :
9018 $as_echo_n "(cached) " >&6
9019 else
9020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
84959021 /* end confdefs.h. */
84969022
84979023 int
85049030 _ACEOF
85059031 if ac_fn_c_try_link "$LINENO"; then :
85069032
8507 lt_aix_libpath_sed='
8508 /Import File Strings/,/^$/ {
8509 /^0/ {
8510 s/^0 *\(.*\)$/\1/
8511 p
8512 }
8513 }'
8514 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8515 # Check for a 64-bit object if we didn't find anything.
8516 if test -z "$aix_libpath"; then
8517 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8518 fi
9033 lt_aix_libpath_sed='
9034 /Import File Strings/,/^$/ {
9035 /^0/ {
9036 s/^0 *\([^ ]*\) *$/\1/
9037 p
9038 }
9039 }'
9040 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9041 # Check for a 64-bit object if we didn't find anything.
9042 if test -z "$lt_cv_aix_libpath_"; then
9043 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9044 fi
85199045 fi
85209046 rm -f core conftest.err conftest.$ac_objext \
85219047 conftest$ac_exeext conftest.$ac_ext
8522 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9048 if test -z "$lt_cv_aix_libpath_"; then
9049 lt_cv_aix_libpath_="/usr/lib:/lib"
9050 fi
9051
9052 fi
9053
9054 aix_libpath=$lt_cv_aix_libpath_
9055 fi
85239056
85249057 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
85259058 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
85319064 else
85329065 # Determine the default libpath from the value encoded in an
85339066 # empty executable.
8534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9067 if test "${lt_cv_aix_libpath+set}" = set; then
9068 aix_libpath=$lt_cv_aix_libpath
9069 else
9070 if ${lt_cv_aix_libpath_+:} false; then :
9071 $as_echo_n "(cached) " >&6
9072 else
9073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
85359074 /* end confdefs.h. */
85369075
85379076 int
85449083 _ACEOF
85459084 if ac_fn_c_try_link "$LINENO"; then :
85469085
8547 lt_aix_libpath_sed='
8548 /Import File Strings/,/^$/ {
8549 /^0/ {
8550 s/^0 *\(.*\)$/\1/
8551 p
8552 }
8553 }'
8554 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8555 # Check for a 64-bit object if we didn't find anything.
8556 if test -z "$aix_libpath"; then
8557 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8558 fi
9086 lt_aix_libpath_sed='
9087 /Import File Strings/,/^$/ {
9088 /^0/ {
9089 s/^0 *\([^ ]*\) *$/\1/
9090 p
9091 }
9092 }'
9093 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9094 # Check for a 64-bit object if we didn't find anything.
9095 if test -z "$lt_cv_aix_libpath_"; then
9096 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9097 fi
85599098 fi
85609099 rm -f core conftest.err conftest.$ac_objext \
85619100 conftest$ac_exeext conftest.$ac_ext
8562 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9101 if test -z "$lt_cv_aix_libpath_"; then
9102 lt_cv_aix_libpath_="/usr/lib:/lib"
9103 fi
9104
9105 fi
9106
9107 aix_libpath=$lt_cv_aix_libpath_
9108 fi
85639109
85649110 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
85659111 # Warning - without using the other run time loading flags,
86049150 # Microsoft Visual C++.
86059151 # hardcode_libdir_flag_spec is actually meaningless, as there is
86069152 # no search path for DLLs.
8607 hardcode_libdir_flag_spec=' '
8608 allow_undefined_flag=unsupported
8609 # Tell ltmain to make .lib files, not .a files.
8610 libext=lib
8611 # Tell ltmain to make .dll files, not .so files.
8612 shrext_cmds=".dll"
8613 # FIXME: Setting linknames here is a bad hack.
8614 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8615 # The linker will automatically build a .lib file if we build a DLL.
8616 old_archive_from_new_cmds='true'
8617 # FIXME: Should let the user specify the lib program.
8618 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8619 fix_srcfile_path='`cygpath -w "$srcfile"`'
8620 enable_shared_with_static_runtimes=yes
9153 case $cc_basename in
9154 cl*)
9155 # Native MSVC
9156 hardcode_libdir_flag_spec=' '
9157 allow_undefined_flag=unsupported
9158 always_export_symbols=yes
9159 file_list_spec='@'
9160 # Tell ltmain to make .lib files, not .a files.
9161 libext=lib
9162 # Tell ltmain to make .dll files, not .so files.
9163 shrext_cmds=".dll"
9164 # FIXME: Setting linknames here is a bad hack.
9165 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9166 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9167 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9168 else
9169 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9170 fi~
9171 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9172 linknames='
9173 # The linker will not automatically build a static lib if we build a DLL.
9174 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9175 enable_shared_with_static_runtimes=yes
9176 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9177 # Don't use ranlib
9178 old_postinstall_cmds='chmod 644 $oldlib'
9179 postlink_cmds='lt_outputfile="@OUTPUT@"~
9180 lt_tool_outputfile="@TOOL_OUTPUT@"~
9181 case $lt_outputfile in
9182 *.exe|*.EXE) ;;
9183 *)
9184 lt_outputfile="$lt_outputfile.exe"
9185 lt_tool_outputfile="$lt_tool_outputfile.exe"
9186 ;;
9187 esac~
9188 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9189 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9190 $RM "$lt_outputfile.manifest";
9191 fi'
9192 ;;
9193 *)
9194 # Assume MSVC wrapper
9195 hardcode_libdir_flag_spec=' '
9196 allow_undefined_flag=unsupported
9197 # Tell ltmain to make .lib files, not .a files.
9198 libext=lib
9199 # Tell ltmain to make .dll files, not .so files.
9200 shrext_cmds=".dll"
9201 # FIXME: Setting linknames here is a bad hack.
9202 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9203 # The linker will automatically build a .lib file if we build a DLL.
9204 old_archive_from_new_cmds='true'
9205 # FIXME: Should let the user specify the lib program.
9206 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9207 enable_shared_with_static_runtimes=yes
9208 ;;
9209 esac
86219210 ;;
86229211
86239212 darwin* | rhapsody*)
86829271
86839272 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
86849273 freebsd* | dragonfly*)
8685 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9274 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
86869275 hardcode_libdir_flag_spec='-R$libdir'
86879276 hardcode_direct=yes
86889277 hardcode_shlibpath_var=no
86909279
86919280 hpux9*)
86929281 if test "$GCC" = yes; then
8693 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9282 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
86949283 else
86959284 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
86969285 fi
87069295
87079296 hpux10*)
87089297 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8709 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9298 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
87109299 else
87119300 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
87129301 fi
87309319 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
87319320 ;;
87329321 ia64*)
8733 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9322 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
87349323 ;;
87359324 *)
8736 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9325 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
87379326 ;;
87389327 esac
87399328 else
87509339 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
87519340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
87529341 $as_echo_n "checking if $CC understands -b... " >&6; }
8753 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9342 if ${lt_cv_prog_compiler__b+:} false; then :
87549343 $as_echo_n "(cached) " >&6
87559344 else
87569345 lt_cv_prog_compiler__b=no
88129401
88139402 irix5* | irix6* | nonstopux*)
88149403 if test "$GCC" = yes; then
8815 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9404 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
88169405 # Try to use the -exported_symbol ld option, if it does not
88179406 # work, assume that -exports_file does not work either and
88189407 # implicitly export all symbols.
8819 save_LDFLAGS="$LDFLAGS"
8820 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9408 # This should be the same for all languages, so no per-tag cache variable.
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9410 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9411 if ${lt_cv_irix_exported_symbol+:} false; then :
9412 $as_echo_n "(cached) " >&6
9413 else
9414 save_LDFLAGS="$LDFLAGS"
9415 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
88229417 /* end confdefs.h. */
8823 int foo(void) {}
9418 int foo (void) { return 0; }
88249419 _ACEOF
88259420 if ac_fn_c_try_link "$LINENO"; then :
8826 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8827
9421 lt_cv_irix_exported_symbol=yes
9422 else
9423 lt_cv_irix_exported_symbol=no
88289424 fi
88299425 rm -f core conftest.err conftest.$ac_objext \
88309426 conftest$ac_exeext conftest.$ac_ext
8831 LDFLAGS="$save_LDFLAGS"
9427 LDFLAGS="$save_LDFLAGS"
9428 fi
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9430 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9431 if test "$lt_cv_irix_exported_symbol" = yes; then
9432 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9433 fi
88329434 else
88339435 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
88349436 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
89139515 osf4* | osf5*) # as osf3* with the addition of -msym flag
89149516 if test "$GCC" = yes; then
89159517 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8916 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9518 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
89179519 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
89189520 else
89199521 allow_undefined_flag=' -expect_unresolved \*'
89329534 no_undefined_flag=' -z defs'
89339535 if test "$GCC" = yes; then
89349536 wlarc='${wl}'
8935 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9537 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
89369538 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8937 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9539 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
89389540 else
89399541 case `$CC -V 2>&1` in
89409542 *"Compilers 5.0"*)
91229724 # to ld, don't add -lc before -lgcc.
91239725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
91249726 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9125 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9727 if ${lt_cv_archive_cmds_need_lc+:} false; then :
91269728 $as_echo_n "(cached) " >&6
91279729 else
91289730 $RM conftest*
951010112 need_version=no
951110113 need_lib_prefix=no
951210114
9513 case $GCC,$host_os in
9514 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10115 case $GCC,$cc_basename in
10116 yes,*)
10117 # gcc
951510118 library_names_spec='$libname.dll.a'
951610119 # DLL is installed to $(libdir)/../bin by postinstall_cmds
951710120 postinstall_cmds='base_file=`basename \${file}`~
954410147 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
954510148 ;;
954610149 esac
10150 dynamic_linker='Win32 ld.exe'
954710151 ;;
954810152
10153 *,cl*)
10154 # Native MSVC
10155 libname_spec='$name'
10156 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10157 library_names_spec='${libname}.dll.lib'
10158
10159 case $build_os in
10160 mingw*)
10161 sys_lib_search_path_spec=
10162 lt_save_ifs=$IFS
10163 IFS=';'
10164 for lt_path in $LIB
10165 do
10166 IFS=$lt_save_ifs
10167 # Let DOS variable expansion print the short 8.3 style file name.
10168 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10169 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10170 done
10171 IFS=$lt_save_ifs
10172 # Convert to MSYS style.
10173 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10174 ;;
10175 cygwin*)
10176 # Convert to unix form, then to dos form, then back to unix form
10177 # but this time dos style (no spaces!) so that the unix form looks
10178 # like /cygdrive/c/PROGRA~1:/cygdr...
10179 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10180 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10181 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10182 ;;
10183 *)
10184 sys_lib_search_path_spec="$LIB"
10185 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10186 # It is most probably a Windows format PATH.
10187 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10188 else
10189 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10190 fi
10191 # FIXME: find the short name or the path components, as spaces are
10192 # common. (e.g. "Program Files" -> "PROGRA~1")
10193 ;;
10194 esac
10195
10196 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10197 postinstall_cmds='base_file=`basename \${file}`~
10198 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10199 dldir=$destdir/`dirname \$dlpath`~
10200 test -d \$dldir || mkdir -p \$dldir~
10201 $install_prog $dir/$dlname \$dldir/$dlname'
10202 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10203 dlpath=$dir/\$dldll~
10204 $RM \$dlpath'
10205 shlibpath_overrides_runpath=yes
10206 dynamic_linker='Win32 link.exe'
10207 ;;
10208
954910209 *)
10210 # Assume MSVC wrapper
955010211 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10212 dynamic_linker='Win32 ld.exe'
955110213 ;;
955210214 esac
9553 dynamic_linker='Win32 ld.exe'
955410215 # FIXME: first we should search . and the directory the executable is in
955510216 shlibpath_var=PATH
955610217 ;;
976410425 shlibpath_overrides_runpath=no
976510426
976610427 # Some binutils ld are patched to set DT_RUNPATH
9767 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10428 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
976810429 $as_echo_n "(cached) " >&6
976910430 else
977010431 lt_cv_shlibpath_overrides_runpath=no
1018810849 # if libdl is installed we need to link against it
1018910850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
1019010851 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10191 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10852 if ${ac_cv_lib_dl_dlopen+:} false; then :
1019210853 $as_echo_n "(cached) " >&6
1019310854 else
1019410855 ac_check_lib_save_LIBS=$LIBS
1022210883 fi
1022310884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
1022410885 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10225 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10886 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1022610887 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
1022710888 else
1022810889
1023610897
1023710898 *)
1023810899 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10239 if test "x$ac_cv_func_shl_load" = x""yes; then :
10900 if test "x$ac_cv_func_shl_load" = xyes; then :
1024010901 lt_cv_dlopen="shl_load"
1024110902 else
1024210903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
1024310904 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10244 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10905 if ${ac_cv_lib_dld_shl_load+:} false; then :
1024510906 $as_echo_n "(cached) " >&6
1024610907 else
1024710908 ac_check_lib_save_LIBS=$LIBS
1027510936 fi
1027610937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
1027710938 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10278 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10939 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
1027910940 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
1028010941 else
1028110942 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10282 if test "x$ac_cv_func_dlopen" = x""yes; then :
10943 if test "x$ac_cv_func_dlopen" = xyes; then :
1028310944 lt_cv_dlopen="dlopen"
1028410945 else
1028510946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
1028610947 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10287 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10948 if ${ac_cv_lib_dl_dlopen+:} false; then :
1028810949 $as_echo_n "(cached) " >&6
1028910950 else
1029010951 ac_check_lib_save_LIBS=$LIBS
1031810979 fi
1031910980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
1032010981 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10321 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10982 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1032210983 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
1032310984 else
1032410985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
1032510986 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10326 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10987 if ${ac_cv_lib_svld_dlopen+:} false; then :
1032710988 $as_echo_n "(cached) " >&6
1032810989 else
1032910990 ac_check_lib_save_LIBS=$LIBS
1035711018 fi
1035811019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
1035911020 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10360 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11021 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
1036111022 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
1036211023 else
1036311024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
1036411025 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10365 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11026 if ${ac_cv_lib_dld_dld_link+:} false; then :
1036611027 $as_echo_n "(cached) " >&6
1036711028 else
1036811029 ac_check_lib_save_LIBS=$LIBS
1039611057 fi
1039711058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
1039811059 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10399 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11060 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
1040011061 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
1040111062 fi
1040211063
1043711098
1043811099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
1043911100 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10440 if test "${lt_cv_dlopen_self+set}" = set; then :
11101 if ${lt_cv_dlopen_self+:} false; then :
1044111102 $as_echo_n "(cached) " >&6
1044211103 else
1044311104 if test "$cross_compiling" = yes; then :
1049011151 /* When -fvisbility=hidden is used, assume the code has been annotated
1049111152 correspondingly for the symbols needed. */
1049211153 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10493 void fnord () __attribute__((visibility("default")));
11154 int fnord () __attribute__((visibility("default")));
1049411155 #endif
1049511156
10496 void fnord () { int i=42; }
11157 int fnord () { return 42; }
1049711158 int main ()
1049811159 {
1049911160 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1054311204 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1054411205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
1054511206 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10546 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11207 if ${lt_cv_dlopen_self_static+:} false; then :
1054711208 $as_echo_n "(cached) " >&6
1054811209 else
1054911210 if test "$cross_compiling" = yes; then :
1059611257 /* When -fvisbility=hidden is used, assume the code has been annotated
1059711258 correspondingly for the symbols needed. */
1059811259 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10599 void fnord () __attribute__((visibility("default")));
11260 int fnord () __attribute__((visibility("default")));
1060011261 #endif
1060111262
10602 void fnord () { int i=42; }
11263 int fnord () { return 42; }
1060311264 int main ()
1060411265 {
1060511266 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1080211463 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
1080311464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1080411465 $as_echo_n "checking for $ac_word... " >&6; }
10805 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11466 if ${ac_cv_path_PKG_CONFIG+:} false; then :
1080611467 $as_echo_n "(cached) " >&6
1080711468 else
1080811469 case $PKG_CONFIG in
1084511506 set dummy pkg-config; ac_word=$2
1084611507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1084711508 $as_echo_n "checking for $ac_word... " >&6; }
10848 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
11509 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
1084911510 $as_echo_n "(cached) " >&6
1085011511 else
1085111512 case $ac_pt_PKG_CONFIG in
1091511576 set dummy gtkdoc-check; ac_word=$2
1091611577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1091711578 $as_echo_n "checking for $ac_word... " >&6; }
10918 if test "${ac_cv_path_GTKDOC_CHECK+set}" = set; then :
11579 if ${ac_cv_path_GTKDOC_CHECK+:} false; then :
1091911580 $as_echo_n "(cached) " >&6
1092011581 else
1092111582 case $GTKDOC_CHECK in
1095711618 set dummy $ac_prog; ac_word=$2
1095811619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1095911620 $as_echo_n "checking for $ac_word... " >&6; }
10960 if test "${ac_cv_path_GTKDOC_REBASE+set}" = set; then :
11621 if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
1096111622 $as_echo_n "(cached) " >&6
1096211623 else
1096311624 case $GTKDOC_REBASE in
1100111662 set dummy gtkdoc-mkpdf; ac_word=$2
1100211663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1100311664 $as_echo_n "checking for $ac_word... " >&6; }
11004 if test "${ac_cv_path_GTKDOC_MKPDF+set}" = set; then :
11665 if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
1100511666 $as_echo_n "(cached) " >&6
1100611667 else
1100711668 case $GTKDOC_MKPDF in
1186812529 set dummy intltool-update; ac_word=$2
1186912530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1187012531 $as_echo_n "checking for $ac_word... " >&6; }
11871 if test "${ac_cv_path_INTLTOOL_UPDATE+set}" = set; then :
12532 if ${ac_cv_path_INTLTOOL_UPDATE+:} false; then :
1187212533 $as_echo_n "(cached) " >&6
1187312534 else
1187412535 case $INTLTOOL_UPDATE in
1190812569 set dummy intltool-merge; ac_word=$2
1190912570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1191012571 $as_echo_n "checking for $ac_word... " >&6; }
11911 if test "${ac_cv_path_INTLTOOL_MERGE+set}" = set; then :
12572 if ${ac_cv_path_INTLTOOL_MERGE+:} false; then :
1191212573 $as_echo_n "(cached) " >&6
1191312574 else
1191412575 case $INTLTOOL_MERGE in
1194812609 set dummy intltool-extract; ac_word=$2
1194912610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1195012611 $as_echo_n "checking for $ac_word... " >&6; }
11951 if test "${ac_cv_path_INTLTOOL_EXTRACT+set}" = set; then :
12612 if ${ac_cv_path_INTLTOOL_EXTRACT+:} false; then :
1195212613 $as_echo_n "(cached) " >&6
1195312614 else
1195412615 case $INTLTOOL_EXTRACT in
1210912770 set dummy xgettext; ac_word=$2
1211012771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1211112772 $as_echo_n "checking for $ac_word... " >&6; }
12112 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
12773 if ${ac_cv_path_XGETTEXT+:} false; then :
1211312774 $as_echo_n "(cached) " >&6
1211412775 else
1211512776 case $XGETTEXT in
1214912810 set dummy msgmerge; ac_word=$2
1215012811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1215112812 $as_echo_n "checking for $ac_word... " >&6; }
12152 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
12813 if ${ac_cv_path_MSGMERGE+:} false; then :
1215312814 $as_echo_n "(cached) " >&6
1215412815 else
1215512816 case $MSGMERGE in
1218912850 set dummy msgfmt; ac_word=$2
1219012851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1219112852 $as_echo_n "checking for $ac_word... " >&6; }
12192 if test "${ac_cv_path_MSGFMT+set}" = set; then :
12853 if ${ac_cv_path_MSGFMT+:} false; then :
1219312854 $as_echo_n "(cached) " >&6
1219412855 else
1219512856 case $MSGFMT in
1222912890 set dummy gmsgfmt; ac_word=$2
1223012891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1223112892 $as_echo_n "checking for $ac_word... " >&6; }
12232 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
12893 if ${ac_cv_path_GMSGFMT+:} false; then :
1223312894 $as_echo_n "(cached) " >&6
1223412895 else
1223512896 case $GMSGFMT in
1228012941 set dummy perl; ac_word=$2
1228112942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1228212943 $as_echo_n "checking for $ac_word... " >&6; }
12283 if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then :
12944 if ${ac_cv_path_INTLTOOL_PERL+:} false; then :
1228412945 $as_echo_n "(cached) " >&6
1228512946 else
1228612947 case $INTLTOOL_PERL in
1236413025 case $host in
1236513026 *-*-solaris*)
1236613027 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
12367 if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
13028 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
1236813029 DATADIRNAME=share
1236913030 else
1237013031 DATADIRNAME=lib
1239113052 for ac_header in locale.h
1239213053 do :
1239313054 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
12394 if test "x$ac_cv_header_locale_h" = x""yes; then :
13055 if test "x$ac_cv_header_locale_h" = xyes; then :
1239513056 cat >>confdefs.h <<_ACEOF
1239613057 #define HAVE_LOCALE_H 1
1239713058 _ACEOF
1240313064 if test $ac_cv_header_locale_h = yes; then
1240413065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
1240513066 $as_echo_n "checking for LC_MESSAGES... " >&6; }
12406 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
13067 if ${am_cv_val_LC_MESSAGES+:} false; then :
1240713068 $as_echo_n "(cached) " >&6
1240813069 else
1240913070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1244313104 INTLLIBS=
1244413105
1244513106 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
12446 if test "x$ac_cv_header_libintl_h" = x""yes; then :
13107 if test "x$ac_cv_header_libintl_h" = xyes; then :
1244713108 gt_cv_func_dgettext_libintl="no"
1244813109 libintl_extra_libs=""
1244913110
1245213113 #
1245313114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in libc" >&5
1245413115 $as_echo_n "checking for ngettext in libc... " >&6; }
12455 if test "${gt_cv_func_ngettext_libc+set}" = set; then :
13116 if ${gt_cv_func_ngettext_libc+:} false; then :
1245613117 $as_echo_n "(cached) " >&6
1245713118 else
1245813119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1248313144 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
1248413145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in libc" >&5
1248513146 $as_echo_n "checking for dgettext in libc... " >&6; }
12486 if test "${gt_cv_func_dgettext_libc+set}" = set; then :
13147 if ${gt_cv_func_dgettext_libc+:} false; then :
1248713148 $as_echo_n "(cached) " >&6
1248813149 else
1248913150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1251613177 for ac_func in bind_textdomain_codeset
1251713178 do :
1251813179 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
12519 if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
13180 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
1252013181 cat >>confdefs.h <<_ACEOF
1252113182 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
1252213183 _ACEOF
1253513196
1253613197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5
1253713198 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
12538 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then :
13199 if ${ac_cv_lib_intl_bindtextdomain+:} false; then :
1253913200 $as_echo_n "(cached) " >&6
1254013201 else
1254113202 ac_check_lib_save_LIBS=$LIBS
1256913230 fi
1257013231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5
1257113232 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
12572 if test "x$ac_cv_lib_intl_bindtextdomain" = x""yes; then :
13233 if test "x$ac_cv_lib_intl_bindtextdomain" = xyes; then :
1257313234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
1257413235 $as_echo_n "checking for ngettext in -lintl... " >&6; }
12575 if test "${ac_cv_lib_intl_ngettext+set}" = set; then :
13236 if ${ac_cv_lib_intl_ngettext+:} false; then :
1257613237 $as_echo_n "(cached) " >&6
1257713238 else
1257813239 ac_check_lib_save_LIBS=$LIBS
1260613267 fi
1260713268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
1260813269 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
12609 if test "x$ac_cv_lib_intl_ngettext" = x""yes; then :
13270 if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
1261013271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
1261113272 $as_echo_n "checking for dgettext in -lintl... " >&6; }
12612 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
13273 if ${ac_cv_lib_intl_dgettext+:} false; then :
1261313274 $as_echo_n "(cached) " >&6
1261413275 else
1261513276 ac_check_lib_save_LIBS=$LIBS
1264313304 fi
1264413305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
1264513306 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
12646 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
13307 if test "x$ac_cv_lib_intl_dgettext" = xyes; then :
1264713308 gt_cv_func_dgettext_libintl=yes
1264813309 fi
1264913310
1265913320 $as_echo "" >&6; }
1266013321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
1266113322 $as_echo_n "checking for ngettext in -lintl... " >&6; }
12662 if test "${ac_cv_lib_intl_ngettext+set}" = set; then :
13323 if ${ac_cv_lib_intl_ngettext+:} false; then :
1266313324 $as_echo_n "(cached) " >&6
1266413325 else
1266513326 ac_check_lib_save_LIBS=$LIBS
1269313354 fi
1269413355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
1269513356 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
12696 if test "x$ac_cv_lib_intl_ngettext" = x""yes; then :
13357 if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
1269713358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcgettext in -lintl" >&5
1269813359 $as_echo_n "checking for dcgettext in -lintl... " >&6; }
12699 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then :
13360 if ${ac_cv_lib_intl_dcgettext+:} false; then :
1270013361 $as_echo_n "(cached) " >&6
1270113362 else
1270213363 ac_check_lib_save_LIBS=$LIBS
1273013391 fi
1273113392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dcgettext" >&5
1273213393 $as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
12733 if test "x$ac_cv_lib_intl_dcgettext" = x""yes; then :
13394 if test "x$ac_cv_lib_intl_dcgettext" = xyes; then :
1273413395 gt_cv_func_dgettext_libintl=yes
1273513396 libintl_extra_libs=-liconv
1273613397 else
1275513416 for ac_func in bind_textdomain_codeset
1275613417 do :
1275713418 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
12758 if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
13419 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
1275913420 cat >>confdefs.h <<_ACEOF
1276013421 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
1276113422 _ACEOF
1279313454 set dummy msgfmt; ac_word=$2
1279413455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1279513456 $as_echo_n "checking for $ac_word... " >&6; }
12796 if test "${ac_cv_path_MSGFMT+set}" = set; then :
13457 if ${ac_cv_path_MSGFMT+:} false; then :
1279713458 $as_echo_n "(cached) " >&6
1279813459 else
1279913460 case "$MSGFMT" in
1283013491 for ac_func in dcgettext
1283113492 do :
1283213493 ac_fn_c_check_func "$LINENO" "dcgettext" "ac_cv_func_dcgettext"
12833 if test "x$ac_cv_func_dcgettext" = x""yes; then :
13494 if test "x$ac_cv_func_dcgettext" = xyes; then :
1283413495 cat >>confdefs.h <<_ACEOF
1283513496 #define HAVE_DCGETTEXT 1
1283613497 _ACEOF
1287113532 set dummy gmsgfmt; ac_word=$2
1287213533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1287313534 $as_echo_n "checking for $ac_word... " >&6; }
12874 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
13535 if ${ac_cv_path_GMSGFMT+:} false; then :
1287513536 $as_echo_n "(cached) " >&6
1287613537 else
1287713538 case $GMSGFMT in
1291213573 set dummy xgettext; ac_word=$2
1291313574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1291413575 $as_echo_n "checking for $ac_word... " >&6; }
12915 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
13576 if ${ac_cv_path_XGETTEXT+:} false; then :
1291613577 $as_echo_n "(cached) " >&6
1291713578 else
1291813579 case "$XGETTEXT" in
1296313624 case $host in
1296413625 *-*-solaris*)
1296513626 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
12966 if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
13627 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
1296713628 CATOBJEXT=.gmo
1296813629 DATADIRNAME=share
1296913630 else
1317213833 :end' >>confcache
1317313834 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
1317413835 if test -w "$cache_file"; then
13175 test "x$cache_file" != "x/dev/null" &&
13836 if test "x$cache_file" != "x/dev/null"; then
1317613837 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
1317713838 $as_echo "$as_me: updating cache $cache_file" >&6;}
13178 cat confcache >$cache_file
13839 if test ! -f "$cache_file" || test -h "$cache_file"; then
13840 cat confcache >"$cache_file"
13841 else
13842 case $cache_file in #(
13843 */* | ?:*)
13844 mv -f confcache "$cache_file"$$ &&
13845 mv -f "$cache_file"$$ "$cache_file" ;; #(
13846 *)
13847 mv -f confcache "$cache_file" ;;
13848 esac
13849 fi
13850 fi
1317913851 else
1318013852 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
1318113853 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1325913931
1326013932
1326113933
13262 : ${CONFIG_STATUS=./config.status}
13934 : "${CONFIG_STATUS=./config.status}"
1326313935 ac_write_fail=0
1326413936 ac_clean_files_save=$ac_clean_files
1326513937 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1336014032 IFS=" "" $as_nl"
1336114033
1336214034 # Find who we are. Look in the path if we contain no directory separator.
14035 as_myself=
1336314036 case $0 in #((
1336414037 *[\\/]* ) as_myself=$0 ;;
1336514038 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1366614339 # report actual input values of CONFIG_FILES etc. instead of their
1366714340 # values after options handling.
1366814341 ac_log="
13669 This file was extended by polkit-gnome $as_me 0.100, which was
13670 generated by GNU Autoconf 2.66. Invocation command line was
14342 This file was extended by polkit-gnome $as_me 0.101, which was
14343 generated by GNU Autoconf 2.68. Invocation command line was
1367114344
1367214345 CONFIG_FILES = $CONFIG_FILES
1367314346 CONFIG_HEADERS = $CONFIG_HEADERS
1373214405 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1373314406 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1373414407 ac_cs_version="\\
13735 polkit-gnome config.status 0.100
13736 configured by $0, generated by GNU Autoconf 2.66,
14408 polkit-gnome config.status 0.101
14409 configured by $0, generated by GNU Autoconf 2.68,
1373714410 with options \\"\$ac_cs_config\\"
1373814411
1373914412 Copyright (C) 2010 Free Software Foundation, Inc.
1375414427 while test $# != 0
1375514428 do
1375614429 case $1 in
13757 --*=*)
14430 --*=?*)
1375814431 ac_option=`expr "X$1" : 'X\([^=]*\)='`
1375914432 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14433 ac_shift=:
14434 ;;
14435 --*=)
14436 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14437 ac_optarg=
1376014438 ac_shift=:
1376114439 ;;
1376214440 *)
1378014458 $ac_shift
1378114459 case $ac_optarg in
1378214460 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14461 '') as_fn_error $? "missing file argument" ;;
1378314462 esac
1378414463 as_fn_append CONFIG_FILES " '$ac_optarg'"
1378514464 ac_need_defaults=false;;
1388314562 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
1388414563 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
1388514564 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14565 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14566 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
1388614567 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
1388714568 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
1388814569 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
1388914570 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
1389014571 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14572 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14573 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14574 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14575 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
1389114576 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
1389214577 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14578 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
1389314579 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
1389414580 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
1389514581 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
1390414590 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
1390514591 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
1390614592 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
14593 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14594 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
1390714595 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
1390814596 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
1390914597 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14598 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
1391014599 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13911 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
1391214600 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
1391314601 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
1391414602 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14603 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
1391514604 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
1391614605 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
1391714606 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
1394414633 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
1394514634 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
1394614635 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13947 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
1394814636 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
1394914637 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
1395014638 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
1395114639 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
1395214640 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14641 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
1395314642 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
1395414643 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
1395514644 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
1400414693 OBJDUMP \
1400514694 deplibs_check_method \
1400614695 file_magic_cmd \
14696 file_magic_glob \
14697 want_nocaseglob \
14698 DLLTOOL \
14699 sharedlib_from_linklib_cmd \
1400714700 AR \
1400814701 AR_FLAGS \
14702 archiver_list_spec \
1400914703 STRIP \
1401014704 RANLIB \
1401114705 CC \
1401514709 lt_cv_sys_global_symbol_to_cdecl \
1401614710 lt_cv_sys_global_symbol_to_c_name_address \
1401714711 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14712 nm_file_list_spec \
1401814713 lt_prog_compiler_no_builtin_flag \
14714 lt_prog_compiler_pic \
1401914715 lt_prog_compiler_wl \
14020 lt_prog_compiler_pic \
1402114716 lt_prog_compiler_static \
1402214717 lt_cv_prog_compiler_c_o \
1402314718 need_locks \
14719 MANIFEST_TOOL \
1402414720 DSYMUTIL \
1402514721 NMEDIT \
1402614722 LIPO \
1403614732 hardcode_libdir_flag_spec \
1403714733 hardcode_libdir_flag_spec_ld \
1403814734 hardcode_libdir_separator \
14039 fix_srcfile_path \
1404014735 exclude_expsyms \
1404114736 include_expsyms \
1404214737 file_list_spec \
1407214767 module_expsym_cmds \
1407314768 export_symbols_cmds \
1407414769 prelink_cmds \
14770 postlink_cmds \
1407514771 postinstall_cmds \
1407614772 postuninstall_cmds \
1407714773 finish_cmds \
1415214848 # after its creation but before its name has been assigned to `$tmp'.
1415314849 $debug ||
1415414850 {
14155 tmp=
14851 tmp= ac_tmp=
1415614852 trap 'exit_status=$?
14157 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14853 : "${ac_tmp:=$tmp}"
14854 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
1415814855 ' 0
1415914856 trap 'as_fn_exit 1' 1 2 13 15
1416014857 }
1416214859
1416314860 {
1416414861 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14165 test -n "$tmp" && test -d "$tmp"
14862 test -d "$tmp"
1416614863 } ||
1416714864 {
1416814865 tmp=./conf$$-$RANDOM
1416914866 (umask 077 && mkdir "$tmp")
1417014867 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14868 ac_tmp=$tmp
1417114869
1417214870 # Set up the scripts for CONFIG_FILES section.
1417314871 # No need to generate them if there are no CONFIG_FILES.
1418914887 ac_cs_awk_cr=$ac_cr
1419014888 fi
1419114889
14192 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14890 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
1419314891 _ACEOF
1419414892
1419514893
1421714915 rm -f conf$$subs.sh
1421814916
1421914917 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14220 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14918 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
1422114919 _ACEOF
1422214920 sed -n '
1422314921 h
1426514963 rm -f conf$$subs.awk
1426614964 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1426714965 _ACAWK
14268 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14966 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
1426914967 for (key in S) S_is_set[key] = 1
1427014968 FS = ""
1427114969
1429714995 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
1429814996 else
1429914997 cat
14300 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14998 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
1430114999 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
1430215000 _ACEOF
1430315001
1433115029 # No need to generate them if there are no CONFIG_HEADERS.
1433215030 # This happens for instance with `./config.status Makefile'.
1433315031 if test -n "$CONFIG_HEADERS"; then
14334 cat >"$tmp/defines.awk" <<\_ACAWK ||
15032 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
1433515033 BEGIN {
1433615034 _ACEOF
1433715035
1434315041 # handling of long lines.
1434415042 ac_delim='%!_!# '
1434515043 for ac_last_try in false false :; do
14346 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14347 if test -z "$ac_t"; then
15044 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15045 if test -z "$ac_tt"; then
1434815046 break
1434915047 elif $ac_last_try; then
1435015048 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
1446415162 for ac_f
1446515163 do
1446615164 case $ac_f in
14467 -) ac_f="$tmp/stdin";;
15165 -) ac_f="$ac_tmp/stdin";;
1446815166 *) # Look for the file first in the build tree, then in the source tree
1446915167 # (if the path is not absolute). The absolute path cannot be DOS-style,
1447015168 # because $ac_f cannot contain `:'.
1449915197 esac
1450015198
1450115199 case $ac_tag in
14502 *:-:* | *:-) cat >"$tmp/stdin" \
15200 *:-:* | *:-) cat >"$ac_tmp/stdin" \
1450315201 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
1450415202 esac
1450515203 ;;
1463615334 s&@MKDIR_P@&$ac_MKDIR_P&;t t
1463715335 $ac_datarootdir_hack
1463815336 "
14639 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14640 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15337 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15338 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1464115339
1464215340 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14643 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14644 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15341 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15342 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15343 "$ac_tmp/out"`; test -z "$ac_out"; } &&
1464515344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1464615345 which seems to be undefined. Please make sure it is defined" >&5
1464715346 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1464815347 which seems to be undefined. Please make sure it is defined" >&2;}
1464915348
14650 rm -f "$tmp/stdin"
15349 rm -f "$ac_tmp/stdin"
1465115350 case $ac_file in
14652 -) cat "$tmp/out" && rm -f "$tmp/out";;
14653 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15351 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15352 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
1465415353 esac \
1465515354 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1465615355 ;;
1466115360 if test x"$ac_file" != x-; then
1466215361 {
1466315362 $as_echo "/* $configure_input */" \
14664 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14665 } >"$tmp/config.h" \
15363 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15364 } >"$ac_tmp/config.h" \
1466615365 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14667 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15366 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
1466815367 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
1466915368 $as_echo "$as_me: $ac_file is unchanged" >&6;}
1467015369 else
1467115370 rm -f "$ac_file"
14672 mv "$tmp/config.h" "$ac_file" \
15371 mv "$ac_tmp/config.h" "$ac_file" \
1467315372 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1467415373 fi
1467515374 else
1467615375 $as_echo "/* $configure_input */" \
14677 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15376 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
1467815377 || as_fn_error $? "could not create -" "$LINENO" 5
1467915378 fi
1468015379 # Compute "$ac_file"'s index in $config_headers.
1494015639 # turn newlines into spaces.
1494115640 NL2SP=$lt_lt_NL2SP
1494215641
15642 # convert \$build file names to \$host format.
15643 to_host_file_cmd=$lt_cv_to_host_file_cmd
15644
15645 # convert \$build files to toolchain format.
15646 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15647
1494315648 # An object symbol dumper.
1494415649 OBJDUMP=$lt_OBJDUMP
1494515650
1494615651 # Method to check whether dependent libraries are shared objects.
1494715652 deplibs_check_method=$lt_deplibs_check_method
1494815653
14949 # Command to use when deplibs_check_method == "file_magic".
15654 # Command to use when deplibs_check_method = "file_magic".
1495015655 file_magic_cmd=$lt_file_magic_cmd
15656
15657 # How to find potential files when deplibs_check_method = "file_magic".
15658 file_magic_glob=$lt_file_magic_glob
15659
15660 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15661 want_nocaseglob=$lt_want_nocaseglob
15662
15663 # DLL creation program.
15664 DLLTOOL=$lt_DLLTOOL
15665
15666 # Command to associate shared and link libraries.
15667 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
1495115668
1495215669 # The archiver.
1495315670 AR=$lt_AR
15671
15672 # Flags to create an archive.
1495415673 AR_FLAGS=$lt_AR_FLAGS
15674
15675 # How to feed a file listing to the archiver.
15676 archiver_list_spec=$lt_archiver_list_spec
1495515677
1495615678 # A symbol stripping program.
1495715679 STRIP=$lt_STRIP
1498215704 # Transform the output of nm in a C name address pair when lib prefix is needed.
1498315705 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
1498415706
15707 # Specify filename containing input files for \$NM.
15708 nm_file_list_spec=$lt_nm_file_list_spec
15709
15710 # The root where to search for dependent libraries,and in which our libraries should be installed.
15711 lt_sysroot=$lt_sysroot
15712
1498515713 # The name of the directory that contains temporary libtool files.
1498615714 objdir=$objdir
1498715715
1499015718
1499115719 # Must we lock files when doing compilation?
1499215720 need_locks=$lt_need_locks
15721
15722 # Manifest tool.
15723 MANIFEST_TOOL=$lt_MANIFEST_TOOL
1499315724
1499415725 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
1499515726 DSYMUTIL=$lt_DSYMUTIL
1510515836 # Compiler flag to turn off builtin functions.
1510615837 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
1510715838
15839 # Additional compiler flags for building library objects.
15840 pic_flag=$lt_lt_prog_compiler_pic
15841
1510815842 # How to pass a linker flag through the compiler.
1510915843 wl=$lt_lt_prog_compiler_wl
15110
15111 # Additional compiler flags for building library objects.
15112 pic_flag=$lt_lt_prog_compiler_pic
1511315844
1511415845 # Compiler flag to prevent dynamic linking.
1511515846 link_static_flag=$lt_lt_prog_compiler_static
1519715928 # Whether libtool must link a program against all its dependency libraries.
1519815929 link_all_deplibs=$link_all_deplibs
1519915930
15200 # Fix the shell variable \$srcfile for the compiler.
15201 fix_srcfile_path=$lt_fix_srcfile_path
15202
1520315931 # Set to "yes" if exported symbols are required.
1520415932 always_export_symbols=$always_export_symbols
1520515933
1521415942
1521515943 # Commands necessary for linking programs (against libraries) with templates.
1521615944 prelink_cmds=$lt_prelink_cmds
15945
15946 # Commands necessary for finishing linking programs.
15947 postlink_cmds=$lt_postlink_cmds
1521715948
1521815949 # Specify filename containing input files.
1521915950 file_list_spec=$lt_file_list_spec
1524715978 # if finds mixed CR/LF and LF-only lines. Since sed operates in
1524815979 # text mode, it properly converts lines to CR/LF. This bash problem
1524915980 # is reportedly fixed, but why not run on old versions too?
15250 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15251 || (rm -f "$cfgfile"; exit 1)
15252
15253 case $xsi_shell in
15254 yes)
15255 cat << \_LT_EOF >> "$cfgfile"
15256
15257 # func_dirname file append nondir_replacement
15258 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15259 # otherwise set result to NONDIR_REPLACEMENT.
15260 func_dirname ()
15261 {
15262 case ${1} in
15263 */*) func_dirname_result="${1%/*}${2}" ;;
15264 * ) func_dirname_result="${3}" ;;
15265 esac
15266 }
15267
15268 # func_basename file
15269 func_basename ()
15270 {
15271 func_basename_result="${1##*/}"
15272 }
15273
15274 # func_dirname_and_basename file append nondir_replacement
15275 # perform func_basename and func_dirname in a single function
15276 # call:
15277 # dirname: Compute the dirname of FILE. If nonempty,
15278 # add APPEND to the result, otherwise set result
15279 # to NONDIR_REPLACEMENT.
15280 # value returned in "$func_dirname_result"
15281 # basename: Compute filename of FILE.
15282 # value retuned in "$func_basename_result"
15283 # Implementation must be kept synchronized with func_dirname
15284 # and func_basename. For efficiency, we do not delegate to
15285 # those functions but instead duplicate the functionality here.
15286 func_dirname_and_basename ()
15287 {
15288 case ${1} in
15289 */*) func_dirname_result="${1%/*}${2}" ;;
15290 * ) func_dirname_result="${3}" ;;
15291 esac
15292 func_basename_result="${1##*/}"
15293 }
15294
15295 # func_stripname prefix suffix name
15296 # strip PREFIX and SUFFIX off of NAME.
15297 # PREFIX and SUFFIX must not contain globbing or regex special
15298 # characters, hashes, percent signs, but SUFFIX may contain a leading
15299 # dot (in which case that matches only a dot).
15300 func_stripname ()
15301 {
15302 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15303 # positional parameters, so assign one to ordinary parameter first.
15304 func_stripname_result=${3}
15305 func_stripname_result=${func_stripname_result#"${1}"}
15306 func_stripname_result=${func_stripname_result%"${2}"}
15307 }
15308
15309 # func_opt_split
15310 func_opt_split ()
15311 {
15312 func_opt_split_opt=${1%%=*}
15313 func_opt_split_arg=${1#*=}
15314 }
15315
15316 # func_lo2o object
15317 func_lo2o ()
15318 {
15319 case ${1} in
15320 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15321 *) func_lo2o_result=${1} ;;
15322 esac
15323 }
15324
15325 # func_xform libobj-or-source
15326 func_xform ()
15327 {
15328 func_xform_result=${1%.*}.lo
15329 }
15330
15331 # func_arith arithmetic-term...
15332 func_arith ()
15333 {
15334 func_arith_result=$(( $* ))
15335 }
15336
15337 # func_len string
15338 # STRING may not start with a hyphen.
15339 func_len ()
15340 {
15341 func_len_result=${#1}
15342 }
15343
15344 _LT_EOF
15345 ;;
15346 *) # Bourne compatible functions.
15347 cat << \_LT_EOF >> "$cfgfile"
15348
15349 # func_dirname file append nondir_replacement
15350 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15351 # otherwise set result to NONDIR_REPLACEMENT.
15352 func_dirname ()
15353 {
15354 # Extract subdirectory from the argument.
15355 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
15356 if test "X$func_dirname_result" = "X${1}"; then
15357 func_dirname_result="${3}"
15358 else
15359 func_dirname_result="$func_dirname_result${2}"
15360 fi
15361 }
15362
15363 # func_basename file
15364 func_basename ()
15365 {
15366 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
15367 }
15368
15369
15370 # func_stripname prefix suffix name
15371 # strip PREFIX and SUFFIX off of NAME.
15372 # PREFIX and SUFFIX must not contain globbing or regex special
15373 # characters, hashes, percent signs, but SUFFIX may contain a leading
15374 # dot (in which case that matches only a dot).
15375 # func_strip_suffix prefix name
15376 func_stripname ()
15377 {
15378 case ${2} in
15379 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
15380 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
15381 esac
15382 }
15383
15384 # sed scripts:
15385 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15386 my_sed_long_arg='1s/^-[^=]*=//'
15387
15388 # func_opt_split
15389 func_opt_split ()
15390 {
15391 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
15392 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
15393 }
15394
15395 # func_lo2o object
15396 func_lo2o ()
15397 {
15398 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
15399 }
15400
15401 # func_xform libobj-or-source
15402 func_xform ()
15403 {
15404 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
15405 }
15406
15407 # func_arith arithmetic-term...
15408 func_arith ()
15409 {
15410 func_arith_result=`expr "$@"`
15411 }
15412
15413 # func_len string
15414 # STRING may not start with a hyphen.
15415 func_len ()
15416 {
15417 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15418 }
15419
15420 _LT_EOF
15421 esac
15422
15423 case $lt_shell_append in
15424 yes)
15425 cat << \_LT_EOF >> "$cfgfile"
15426
15427 # func_append var value
15428 # Append VALUE to the end of shell variable VAR.
15429 func_append ()
15430 {
15431 eval "$1+=\$2"
15432 }
15433 _LT_EOF
15434 ;;
15435 *)
15436 cat << \_LT_EOF >> "$cfgfile"
15437
15438 # func_append var value
15439 # Append VALUE to the end of shell variable VAR.
15440 func_append ()
15441 {
15442 eval "$1=\$$1\$2"
15443 }
15444
15445 _LT_EOF
15446 ;;
15447 esac
15448
15449
15450 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15451 || (rm -f "$cfgfile"; exit 1)
15452
15453 mv -f "$cfgfile" "$ofile" ||
15981 sed '$q' "$ltmain" >> "$cfgfile" \
15982 || (rm -f "$cfgfile"; exit 1)
15983
15984 if test x"$xsi_shell" = xyes; then
15985 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15986 func_dirname ()\
15987 {\
15988 \ case ${1} in\
15989 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15990 \ * ) func_dirname_result="${3}" ;;\
15991 \ esac\
15992 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15993 && mv -f "$cfgfile.tmp" "$cfgfile" \
15994 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15995 test 0 -eq $? || _lt_function_replace_fail=:
15996
15997
15998 sed -e '/^func_basename ()$/,/^} # func_basename /c\
15999 func_basename ()\
16000 {\
16001 \ func_basename_result="${1##*/}"\
16002 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
16003 && mv -f "$cfgfile.tmp" "$cfgfile" \
16004 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16005 test 0 -eq $? || _lt_function_replace_fail=:
16006
16007
16008 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
16009 func_dirname_and_basename ()\
16010 {\
16011 \ case ${1} in\
16012 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16013 \ * ) func_dirname_result="${3}" ;;\
16014 \ esac\
16015 \ func_basename_result="${1##*/}"\
16016 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
16017 && mv -f "$cfgfile.tmp" "$cfgfile" \
16018 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16019 test 0 -eq $? || _lt_function_replace_fail=:
16020
16021
16022 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
16023 func_stripname ()\
16024 {\
16025 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
16026 \ # positional parameters, so assign one to ordinary parameter first.\
16027 \ func_stripname_result=${3}\
16028 \ func_stripname_result=${func_stripname_result#"${1}"}\
16029 \ func_stripname_result=${func_stripname_result%"${2}"}\
16030 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
16031 && mv -f "$cfgfile.tmp" "$cfgfile" \
16032 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16033 test 0 -eq $? || _lt_function_replace_fail=:
16034
16035
16036 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
16037 func_split_long_opt ()\
16038 {\
16039 \ func_split_long_opt_name=${1%%=*}\
16040 \ func_split_long_opt_arg=${1#*=}\
16041 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
16042 && mv -f "$cfgfile.tmp" "$cfgfile" \
16043 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16044 test 0 -eq $? || _lt_function_replace_fail=:
16045
16046
16047 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
16048 func_split_short_opt ()\
16049 {\
16050 \ func_split_short_opt_arg=${1#??}\
16051 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
16052 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
16053 && mv -f "$cfgfile.tmp" "$cfgfile" \
16054 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16055 test 0 -eq $? || _lt_function_replace_fail=:
16056
16057
16058 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
16059 func_lo2o ()\
16060 {\
16061 \ case ${1} in\
16062 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
16063 \ *) func_lo2o_result=${1} ;;\
16064 \ esac\
16065 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
16066 && mv -f "$cfgfile.tmp" "$cfgfile" \
16067 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16068 test 0 -eq $? || _lt_function_replace_fail=:
16069
16070
16071 sed -e '/^func_xform ()$/,/^} # func_xform /c\
16072 func_xform ()\
16073 {\
16074 func_xform_result=${1%.*}.lo\
16075 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
16076 && mv -f "$cfgfile.tmp" "$cfgfile" \
16077 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16078 test 0 -eq $? || _lt_function_replace_fail=:
16079
16080
16081 sed -e '/^func_arith ()$/,/^} # func_arith /c\
16082 func_arith ()\
16083 {\
16084 func_arith_result=$(( $* ))\
16085 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
16086 && mv -f "$cfgfile.tmp" "$cfgfile" \
16087 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16088 test 0 -eq $? || _lt_function_replace_fail=:
16089
16090
16091 sed -e '/^func_len ()$/,/^} # func_len /c\
16092 func_len ()\
16093 {\
16094 func_len_result=${#1}\
16095 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
16096 && mv -f "$cfgfile.tmp" "$cfgfile" \
16097 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16098 test 0 -eq $? || _lt_function_replace_fail=:
16099
16100 fi
16101
16102 if test x"$lt_shell_append" = xyes; then
16103 sed -e '/^func_append ()$/,/^} # func_append /c\
16104 func_append ()\
16105 {\
16106 eval "${1}+=\\${2}"\
16107 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
16108 && mv -f "$cfgfile.tmp" "$cfgfile" \
16109 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16110 test 0 -eq $? || _lt_function_replace_fail=:
16111
16112
16113 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
16114 func_append_quoted ()\
16115 {\
16116 \ func_quote_for_eval "${2}"\
16117 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
16118 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
16119 && mv -f "$cfgfile.tmp" "$cfgfile" \
16120 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16121 test 0 -eq $? || _lt_function_replace_fail=:
16122
16123
16124 # Save a `func_append' function call where possible by direct use of '+='
16125 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
16126 && mv -f "$cfgfile.tmp" "$cfgfile" \
16127 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16128 test 0 -eq $? || _lt_function_replace_fail=:
16129 else
16130 # Save a `func_append' function call even when '+=' is not available
16131 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
16132 && mv -f "$cfgfile.tmp" "$cfgfile" \
16133 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16134 test 0 -eq $? || _lt_function_replace_fail=:
16135 fi
16136
16137 if test x"$_lt_function_replace_fail" = x":"; then
16138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
16139 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
16140 fi
16141
16142
16143 mv -f "$cfgfile" "$ofile" ||
1545416144 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
1545516145 chmod +x "$ofile"
1545616146
0 AC_INIT([polkit-gnome],[0.100],[http://lists.freedesktop.org/mailman/listinfo/polkit-devel],[polkit-gnome])
0 AC_INIT([polkit-gnome],[0.101],[http://lists.freedesktop.org/mailman/listinfo/polkit-devel],[polkit-gnome])
11
22 AM_INIT_AUTOMAKE([1.9 foreign dist-bzip2 no-dist-gzip])
33
8484 DEFS = @DEFS@
8585 DEPDIR = @DEPDIR@
8686 DISABLE_DEPRECATED = @DISABLE_DEPRECATED@
87 DLLTOOL = @DLLTOOL@
8788 DSYMUTIL = @DSYMUTIL@
8889 DUMPBIN = @DUMPBIN@
8990 ECHO_C = @ECHO_C@
134135 LT_REVISION = @LT_REVISION@
135136 MAINT = @MAINT@
136137 MAKEINFO = @MAKEINFO@
138 MANIFEST_TOOL = @MANIFEST_TOOL@
137139 MKDIR_P = @MKDIR_P@
138140 MKINSTALLDIRS = @MKINSTALLDIRS@
139141 MSGFMT = @MSGFMT@
177179 abs_srcdir = @abs_srcdir@
178180 abs_top_builddir = @abs_top_builddir@
179181 abs_top_srcdir = @abs_top_srcdir@
182 ac_ct_AR = @ac_ct_AR@
180183 ac_ct_CC = @ac_ct_CC@
181184 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
182185 am__include = @am__include@
308311 @ENABLE_GTK_DOC_TRUE@ $(DOC_MODULE)-sections.txt \
309312 @ENABLE_GTK_DOC_TRUE@ $(DOC_MODULE)-overrides.txt
310313
311 @ENABLE_GTK_DOC_TRUE@DOC_STAMPS = scan-build.stamp tmpl-build.stamp sgml-build.stamp html-build.stamp \
312 @ENABLE_GTK_DOC_TRUE@ pdf-build.stamp \
313 @ENABLE_GTK_DOC_TRUE@ $(srcdir)/tmpl.stamp $(srcdir)/sgml.stamp $(srcdir)/html.stamp \
314 @ENABLE_GTK_DOC_TRUE@ $(srcdir)/pdf.stamp
314 @ENABLE_GTK_DOC_TRUE@DOC_STAMPS = setup-build.stamp scan-build.stamp tmpl-build.stamp sgml-build.stamp \
315 @ENABLE_GTK_DOC_TRUE@ html-build.stamp pdf-build.stamp \
316 @ENABLE_GTK_DOC_TRUE@ setup.stamp tmpl.stamp sgml.stamp html.stamp pdf.stamp
315317
316318 @ENABLE_GTK_DOC_TRUE@SCANOBJ_FILES = \
317319 @ENABLE_GTK_DOC_TRUE@ $(DOC_MODULE).args \
561563
562564 @ENABLE_GTK_DOC_TRUE@$(REPORT_FILES): sgml-build.stamp
563565
566 #### setup ####
567
568 @ENABLE_GTK_DOC_TRUE@setup-build.stamp::
569 @ENABLE_GTK_DOC_TRUE@ -@if test "$(abs_srcdir)" != "$(abs_builddir)" ; then \
570 @ENABLE_GTK_DOC_TRUE@ cp -a $(abs_srcdir)/$(DOC_MAIN_SGML_FILE) $(abs_builddir)/; \
571 @ENABLE_GTK_DOC_TRUE@ cp -a $(abs_srcdir)/$(DOC_MODULE)* $(abs_builddir)/; \
572 @ENABLE_GTK_DOC_TRUE@ if test "x$(content_files)" != "x" ; then \
573 @ENABLE_GTK_DOC_TRUE@ for file in $(content_files) ; do \
574 @ENABLE_GTK_DOC_TRUE@ test -f $(abs_srcdir)/$$file || \
575 @ENABLE_GTK_DOC_TRUE@ cp -a $(abs_srcdir)/$$file $(abs_builddir)/; \
576 @ENABLE_GTK_DOC_TRUE@ done \
577 @ENABLE_GTK_DOC_TRUE@ fi \
578 @ENABLE_GTK_DOC_TRUE@ fi
579
580 @ENABLE_GTK_DOC_TRUE@setup.stamp: setup-build.stamp
581 @ENABLE_GTK_DOC_TRUE@ @true
582
564583 #### scan ####
565584
566585 @ENABLE_GTK_DOC_TRUE@scan-build.stamp: $(HFILE_GLOB) $(CFILE_GLOB)
567586 @ENABLE_GTK_DOC_TRUE@ @echo 'gtk-doc: Scanning header files'
568 @ENABLE_GTK_DOC_TRUE@ @-chmod -R u+w $(srcdir)
569 @ENABLE_GTK_DOC_TRUE@ @_source_dir='' ; for i in $(DOC_SOURCE_DIR) ; do \
587 @ENABLE_GTK_DOC_TRUE@ @_source_dir='' ;
588 @ENABLE_GTK_DOC_TRUE@ for i in $(DOC_SOURCE_DIR) ; do \
570589 @ENABLE_GTK_DOC_TRUE@ _source_dir="$${_source_dir} --source-dir=$$i" ; \
571 @ENABLE_GTK_DOC_TRUE@ done ; \
572 @ENABLE_GTK_DOC_TRUE@ cd $(srcdir) && \
573 @ENABLE_GTK_DOC_TRUE@ gtkdoc-scan --module=$(DOC_MODULE) --ignore-headers="$(IGNORE_HFILES)" $${_source_dir} $(SCAN_OPTIONS) $(EXTRA_HFILES)
574 @ENABLE_GTK_DOC_TRUE@ @if grep -l '^..*$$' $(srcdir)/$(DOC_MODULE).types > /dev/null 2>&1 ; then \
575 @ENABLE_GTK_DOC_TRUE@ CC="$(GTKDOC_CC)" LD="$(GTKDOC_LD)" RUN="$(GTKDOC_RUN)" CFLAGS="$(GTKDOC_CFLAGS) $(CFLAGS)" LDFLAGS="$(GTKDOC_LIBS) $(LDFLAGS)" gtkdoc-scangobj $(SCANGOBJ_OPTIONS) --module=$(DOC_MODULE) --output-dir=$(srcdir) ; \
590 @ENABLE_GTK_DOC_TRUE@ done ; \
591 @ENABLE_GTK_DOC_TRUE@ gtkdoc-scan --module=$(DOC_MODULE) --ignore-headers="$(IGNORE_HFILES)" $${_source_dir} $(SCAN_OPTIONS) $(EXTRA_HFILES)
592 @ENABLE_GTK_DOC_TRUE@ @if grep -l '^..*$$' $(DOC_MODULE).types > /dev/null 2>&1 ; then \
593 @ENABLE_GTK_DOC_TRUE@ CC="$(GTKDOC_CC)" LD="$(GTKDOC_LD)" RUN="$(GTKDOC_RUN)" CFLAGS="$(GTKDOC_CFLAGS) $(CFLAGS)" LDFLAGS="$(GTKDOC_LIBS) $(LDFLAGS)" gtkdoc-scangobj $(SCANGOBJ_OPTIONS) --module=$(DOC_MODULE) ; \
576594 @ENABLE_GTK_DOC_TRUE@ else \
577 @ENABLE_GTK_DOC_TRUE@ cd $(srcdir) ; \
578595 @ENABLE_GTK_DOC_TRUE@ for i in $(SCANOBJ_FILES) ; do \
579596 @ENABLE_GTK_DOC_TRUE@ test -f $$i || touch $$i ; \
580597 @ENABLE_GTK_DOC_TRUE@ done \
588605
589606 @ENABLE_GTK_DOC_TRUE@tmpl-build.stamp: $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt
590607 @ENABLE_GTK_DOC_TRUE@ @echo 'gtk-doc: Rebuilding template files'
591 @ENABLE_GTK_DOC_TRUE@ @-chmod -R u+w $(srcdir)
592 @ENABLE_GTK_DOC_TRUE@ @cd $(srcdir) && gtkdoc-mktmpl --module=$(DOC_MODULE) $(MKTMPL_OPTIONS)
608 @ENABLE_GTK_DOC_TRUE@ @gtkdoc-mktmpl --module=$(DOC_MODULE) $(MKTMPL_OPTIONS)
593609 @ENABLE_GTK_DOC_TRUE@ @touch tmpl-build.stamp
594610
595611 @ENABLE_GTK_DOC_TRUE@tmpl.stamp: tmpl-build.stamp
603619 @ENABLE_GTK_DOC_TRUE@sgml-build.stamp: tmpl.stamp $(DOC_MODULE)-sections.txt $(srcdir)/tmpl/*.sgml $(expand_content_files)
604620 @ENABLE_GTK_DOC_TRUE@ @echo 'gtk-doc: Building XML'
605621 @ENABLE_GTK_DOC_TRUE@ @-chmod -R u+w $(srcdir)
606 @ENABLE_GTK_DOC_TRUE@ @_source_dir='' ; for i in $(DOC_SOURCE_DIR) ; do \
622 @ENABLE_GTK_DOC_TRUE@ @_source_dir='' ; \
623 @ENABLE_GTK_DOC_TRUE@ for i in $(DOC_SOURCE_DIR) ; do \
607624 @ENABLE_GTK_DOC_TRUE@ _source_dir="$${_source_dir} --source-dir=$$i" ; \
608 @ENABLE_GTK_DOC_TRUE@ done ; \
609 @ENABLE_GTK_DOC_TRUE@ cd $(srcdir) && \
610 @ENABLE_GTK_DOC_TRUE@ gtkdoc-mkdb --module=$(DOC_MODULE) --output-format=xml --expand-content-files="$(expand_content_files)" --main-sgml-file=$(DOC_MAIN_SGML_FILE) $${_source_dir} $(MKDB_OPTIONS)
625 @ENABLE_GTK_DOC_TRUE@ done ; \
626 @ENABLE_GTK_DOC_TRUE@ gtkdoc-mkdb --module=$(DOC_MODULE) --output-format=xml --expand-content-files="$(expand_content_files)" --main-sgml-file=$(DOC_MAIN_SGML_FILE) $${_source_dir} $(MKDB_OPTIONS)
611627 @ENABLE_GTK_DOC_TRUE@ @touch sgml-build.stamp
612628
613629 @ENABLE_GTK_DOC_TRUE@sgml.stamp: sgml-build.stamp
617633
618634 @ENABLE_GTK_DOC_TRUE@html-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files)
619635 @ENABLE_GTK_DOC_TRUE@ @echo 'gtk-doc: Building HTML'
620 @ENABLE_GTK_DOC_TRUE@ @-chmod -R u+w $(srcdir)
621 @ENABLE_GTK_DOC_TRUE@ @rm -rf $(srcdir)/html
622 @ENABLE_GTK_DOC_TRUE@ @mkdir $(srcdir)/html
636 @ENABLE_GTK_DOC_TRUE@ @rm -rf html
637 @ENABLE_GTK_DOC_TRUE@ @mkdir html
623638 @ENABLE_GTK_DOC_TRUE@ @mkhtml_options=""; \
624639 @ENABLE_GTK_DOC_TRUE@ gtkdoc-mkhtml 2>&1 --help | grep >/dev/null "\-\-path"; \
625640 @ENABLE_GTK_DOC_TRUE@ if test "$(?)" = "0"; then \
626 @ENABLE_GTK_DOC_TRUE@ mkhtml_options=--path="$(srcdir)"; \
641 @ENABLE_GTK_DOC_TRUE@ mkhtml_options=--path="$(abs_srcdir)"; \
627642 @ENABLE_GTK_DOC_TRUE@ fi; \
628 @ENABLE_GTK_DOC_TRUE@ cd $(srcdir)/html && gtkdoc-mkhtml $$mkhtml_options $(MKHTML_OPTIONS) $(DOC_MODULE) ../$(DOC_MAIN_SGML_FILE)
629 @ENABLE_GTK_DOC_TRUE@ @test "x$(HTML_IMAGES)" = "x" || ( cd $(srcdir) && cp $(HTML_IMAGES) html )
643 @ENABLE_GTK_DOC_TRUE@ cd html && gtkdoc-mkhtml $$mkhtml_options $(MKHTML_OPTIONS) $(DOC_MODULE) ../$(DOC_MAIN_SGML_FILE)
644 @ENABLE_GTK_DOC_TRUE@ @test "x$(HTML_IMAGES)" = "x" || ( cd $(srcdir) && cp $(HTML_IMAGES) $(abs_builddir)/html )
630645 @ENABLE_GTK_DOC_TRUE@ @echo 'gtk-doc: Fixing cross-references'
631 @ENABLE_GTK_DOC_TRUE@ @cd $(srcdir) && gtkdoc-fixxref --module=$(DOC_MODULE) --module-dir=html --html-dir=$(HTML_DIR) $(FIXXREF_OPTIONS)
646 @ENABLE_GTK_DOC_TRUE@ @gtkdoc-fixxref --module=$(DOC_MODULE) --module-dir=html --html-dir=$(HTML_DIR) $(FIXXREF_OPTIONS)
632647 @ENABLE_GTK_DOC_TRUE@ @touch html-build.stamp
633648
634649 #### pdf ####
635650
636651 @ENABLE_GTK_DOC_TRUE@pdf-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files)
637652 @ENABLE_GTK_DOC_TRUE@ @echo 'gtk-doc: Building PDF'
638 @ENABLE_GTK_DOC_TRUE@ @-chmod -R u+w $(srcdir)
639 @ENABLE_GTK_DOC_TRUE@ @rm -rf $(srcdir)/$(DOC_MODULE).pdf
653 @ENABLE_GTK_DOC_TRUE@ @rm -rf $(DOC_MODULE).pdf
640654 @ENABLE_GTK_DOC_TRUE@ @mkpdf_imgdirs=""; \
641655 @ENABLE_GTK_DOC_TRUE@ if test "x$(HTML_IMAGES)" != "x"; then \
642656 @ENABLE_GTK_DOC_TRUE@ for img in $(HTML_IMAGES); do \
647661 @ENABLE_GTK_DOC_TRUE@ fi; \
648662 @ENABLE_GTK_DOC_TRUE@ done; \
649663 @ENABLE_GTK_DOC_TRUE@ fi; \
650 @ENABLE_GTK_DOC_TRUE@ cd $(srcdir) && gtkdoc-mkpdf --path="$(abs_srcdir)" $$mkpdf_imgdirs $(DOC_MODULE) $(DOC_MAIN_SGML_FILE) $(MKPDF_OPTIONS)
664 @ENABLE_GTK_DOC_TRUE@ gtkdoc-mkpdf --path="$(abs_srcdir)" $$mkpdf_imgdirs $(DOC_MODULE) $(DOC_MAIN_SGML_FILE) $(MKPDF_OPTIONS)
651665 @ENABLE_GTK_DOC_TRUE@ @touch pdf-build.stamp
652666
653667 ##############
657671 @ENABLE_GTK_DOC_TRUE@ rm -rf .libs
658672
659673 @ENABLE_GTK_DOC_TRUE@distclean-local:
660 @ENABLE_GTK_DOC_TRUE@ cd $(srcdir) && \
661 @ENABLE_GTK_DOC_TRUE@ rm -rf xml $(REPORT_FILES) $(DOC_MODULE).pdf \
662 @ENABLE_GTK_DOC_TRUE@ $(DOC_MODULE)-decl-list.txt $(DOC_MODULE)-decl.txt
674 @ENABLE_GTK_DOC_TRUE@ rm -rf xml $(REPORT_FILES) $(DOC_MODULE).pdf \
675 @ENABLE_GTK_DOC_TRUE@ $(DOC_MODULE)-decl-list.txt $(DOC_MODULE)-decl.txt
676 @ENABLE_GTK_DOC_TRUE@ if test "$(abs_srcdir)" != "$(abs_builddir)" ; then \
677 @ENABLE_GTK_DOC_TRUE@ rm -f $(DOC_MAIN_SGML_FILE) $(DOC_MODULE)*; \
678 @ENABLE_GTK_DOC_TRUE@ fi
663679
664680 @ENABLE_GTK_DOC_TRUE@maintainer-clean-local: clean
665 @ENABLE_GTK_DOC_TRUE@ cd $(srcdir) && rm -rf xml html
681 @ENABLE_GTK_DOC_TRUE@ rm -rf xml html
666682
667683 @ENABLE_GTK_DOC_TRUE@install-data-local:
668684 @ENABLE_GTK_DOC_TRUE@ @installfiles=`echo $(srcdir)/html/*`; \
2929 $(DOC_MODULE)-sections.txt \
3030 $(DOC_MODULE)-overrides.txt
3131
32 DOC_STAMPS=scan-build.stamp tmpl-build.stamp sgml-build.stamp html-build.stamp \
33 pdf-build.stamp \
34 $(srcdir)/tmpl.stamp $(srcdir)/sgml.stamp $(srcdir)/html.stamp \
35 $(srcdir)/pdf.stamp
32 DOC_STAMPS=setup-build.stamp scan-build.stamp tmpl-build.stamp sgml-build.stamp \
33 html-build.stamp pdf-build.stamp \
34 setup.stamp tmpl.stamp sgml.stamp html.stamp pdf.stamp
3635
3736 SCANOBJ_FILES = \
3837 $(DOC_MODULE).args \
6968
7069 $(REPORT_FILES): sgml-build.stamp
7170
71 #### setup ####
72
73 setup-build.stamp::
74 -@if test "$(abs_srcdir)" != "$(abs_builddir)" ; then \
75 cp -a $(abs_srcdir)/$(DOC_MAIN_SGML_FILE) $(abs_builddir)/; \
76 cp -a $(abs_srcdir)/$(DOC_MODULE)* $(abs_builddir)/; \
77 if test "x$(content_files)" != "x" ; then \
78 for file in $(content_files) ; do \
79 test -f $(abs_srcdir)/$$file || \
80 cp -a $(abs_srcdir)/$$file $(abs_builddir)/; \
81 done \
82 fi \
83 fi
84
85
86 setup.stamp: setup-build.stamp
87 @true
88
89
7290 #### scan ####
7391
7492 scan-build.stamp: $(HFILE_GLOB) $(CFILE_GLOB)
7593 @echo 'gtk-doc: Scanning header files'
76 @-chmod -R u+w $(srcdir)
77 @_source_dir='' ; for i in $(DOC_SOURCE_DIR) ; do \
94 @_source_dir='' ;
95 for i in $(DOC_SOURCE_DIR) ; do \
7896 _source_dir="$${_source_dir} --source-dir=$$i" ; \
79 done ; \
80 cd $(srcdir) && \
81 gtkdoc-scan --module=$(DOC_MODULE) --ignore-headers="$(IGNORE_HFILES)" $${_source_dir} $(SCAN_OPTIONS) $(EXTRA_HFILES)
82 @if grep -l '^..*$$' $(srcdir)/$(DOC_MODULE).types > /dev/null 2>&1 ; then \
83 CC="$(GTKDOC_CC)" LD="$(GTKDOC_LD)" RUN="$(GTKDOC_RUN)" CFLAGS="$(GTKDOC_CFLAGS) $(CFLAGS)" LDFLAGS="$(GTKDOC_LIBS) $(LDFLAGS)" gtkdoc-scangobj $(SCANGOBJ_OPTIONS) --module=$(DOC_MODULE) --output-dir=$(srcdir) ; \
97 done ; \
98 gtkdoc-scan --module=$(DOC_MODULE) --ignore-headers="$(IGNORE_HFILES)" $${_source_dir} $(SCAN_OPTIONS) $(EXTRA_HFILES)
99 @if grep -l '^..*$$' $(DOC_MODULE).types > /dev/null 2>&1 ; then \
100 CC="$(GTKDOC_CC)" LD="$(GTKDOC_LD)" RUN="$(GTKDOC_RUN)" CFLAGS="$(GTKDOC_CFLAGS) $(CFLAGS)" LDFLAGS="$(GTKDOC_LIBS) $(LDFLAGS)" gtkdoc-scangobj $(SCANGOBJ_OPTIONS) --module=$(DOC_MODULE) ; \
84101 else \
85 cd $(srcdir) ; \
86102 for i in $(SCANOBJ_FILES) ; do \
87103 test -f $$i || touch $$i ; \
88104 done \
96112
97113 tmpl-build.stamp: $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt
98114 @echo 'gtk-doc: Rebuilding template files'
99 @-chmod -R u+w $(srcdir)
100 @cd $(srcdir) && gtkdoc-mktmpl --module=$(DOC_MODULE) $(MKTMPL_OPTIONS)
115 @gtkdoc-mktmpl --module=$(DOC_MODULE) $(MKTMPL_OPTIONS)
101116 @touch tmpl-build.stamp
102117
103118 tmpl.stamp: tmpl-build.stamp
111126 sgml-build.stamp: tmpl.stamp $(DOC_MODULE)-sections.txt $(srcdir)/tmpl/*.sgml $(expand_content_files)
112127 @echo 'gtk-doc: Building XML'
113128 @-chmod -R u+w $(srcdir)
114 @_source_dir='' ; for i in $(DOC_SOURCE_DIR) ; do \
129 @_source_dir='' ; \
130 for i in $(DOC_SOURCE_DIR) ; do \
115131 _source_dir="$${_source_dir} --source-dir=$$i" ; \
116 done ; \
117 cd $(srcdir) && \
118 gtkdoc-mkdb --module=$(DOC_MODULE) --output-format=xml --expand-content-files="$(expand_content_files)" --main-sgml-file=$(DOC_MAIN_SGML_FILE) $${_source_dir} $(MKDB_OPTIONS)
132 done ; \
133 gtkdoc-mkdb --module=$(DOC_MODULE) --output-format=xml --expand-content-files="$(expand_content_files)" --main-sgml-file=$(DOC_MAIN_SGML_FILE) $${_source_dir} $(MKDB_OPTIONS)
119134 @touch sgml-build.stamp
120135
121136 sgml.stamp: sgml-build.stamp
125140
126141 html-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files)
127142 @echo 'gtk-doc: Building HTML'
128 @-chmod -R u+w $(srcdir)
129 @rm -rf $(srcdir)/html
130 @mkdir $(srcdir)/html
143 @rm -rf html
144 @mkdir html
131145 @mkhtml_options=""; \
132146 gtkdoc-mkhtml 2>&1 --help | grep >/dev/null "\-\-path"; \
133147 if test "$(?)" = "0"; then \
134 mkhtml_options=--path="$(srcdir)"; \
148 mkhtml_options=--path="$(abs_srcdir)"; \
135149 fi; \
136 cd $(srcdir)/html && gtkdoc-mkhtml $$mkhtml_options $(MKHTML_OPTIONS) $(DOC_MODULE) ../$(DOC_MAIN_SGML_FILE)
137 @test "x$(HTML_IMAGES)" = "x" || ( cd $(srcdir) && cp $(HTML_IMAGES) html )
150 cd html && gtkdoc-mkhtml $$mkhtml_options $(MKHTML_OPTIONS) $(DOC_MODULE) ../$(DOC_MAIN_SGML_FILE)
151 @test "x$(HTML_IMAGES)" = "x" || ( cd $(srcdir) && cp $(HTML_IMAGES) $(abs_builddir)/html )
138152 @echo 'gtk-doc: Fixing cross-references'
139 @cd $(srcdir) && gtkdoc-fixxref --module=$(DOC_MODULE) --module-dir=html --html-dir=$(HTML_DIR) $(FIXXREF_OPTIONS)
153 @gtkdoc-fixxref --module=$(DOC_MODULE) --module-dir=html --html-dir=$(HTML_DIR) $(FIXXREF_OPTIONS)
140154 @touch html-build.stamp
141155
142156 #### pdf ####
143157
144158 pdf-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files)
145159 @echo 'gtk-doc: Building PDF'
146 @-chmod -R u+w $(srcdir)
147 @rm -rf $(srcdir)/$(DOC_MODULE).pdf
160 @rm -rf $(DOC_MODULE).pdf
148161 @mkpdf_imgdirs=""; \
149162 if test "x$(HTML_IMAGES)" != "x"; then \
150163 for img in $(HTML_IMAGES); do \
155168 fi; \
156169 done; \
157170 fi; \
158 cd $(srcdir) && gtkdoc-mkpdf --path="$(abs_srcdir)" $$mkpdf_imgdirs $(DOC_MODULE) $(DOC_MAIN_SGML_FILE) $(MKPDF_OPTIONS)
171 gtkdoc-mkpdf --path="$(abs_srcdir)" $$mkpdf_imgdirs $(DOC_MODULE) $(DOC_MAIN_SGML_FILE) $(MKPDF_OPTIONS)
159172 @touch pdf-build.stamp
160173
161174 ##############
165178 rm -rf .libs
166179
167180 distclean-local:
168 cd $(srcdir) && \
169 rm -rf xml $(REPORT_FILES) $(DOC_MODULE).pdf \
170 $(DOC_MODULE)-decl-list.txt $(DOC_MODULE)-decl.txt
181 rm -rf xml $(REPORT_FILES) $(DOC_MODULE).pdf \
182 $(DOC_MODULE)-decl-list.txt $(DOC_MODULE)-decl.txt
183 if test "$(abs_srcdir)" != "$(abs_builddir)" ; then \
184 rm -f $(DOC_MAIN_SGML_FILE) $(DOC_MODULE)*; \
185 fi
171186
172187 maintainer-clean-local: clean
173 cd $(srcdir) && rm -rf xml html
188 rm -rf xml html
174189
175190 install-data-local:
176191 @installfiles=`echo $(srcdir)/html/*`; \
+1636
-745
ltmain.sh less more
0 # Generated from ltmain.m4sh.
1
2 # libtool (GNU libtool) 2.2.10
0
1 # libtool (GNU libtool) 2.4
32 # Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
43
54 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
6968 # compiler: $LTCC
7069 # compiler flags: $LTCFLAGS
7170 # linker: $LD (gnu? $with_gnu_ld)
72 # $progname: (GNU libtool) 2.2.10
71 # $progname: (GNU libtool) 2.4
7372 # automake: $automake_version
7473 # autoconf: $autoconf_version
7574 #
7675 # Report bugs to <bug-libtool@gnu.org>.
76 # GNU libtool home page: <http://www.gnu.org/software/libtool/>.
77 # General help using GNU software: <http://www.gnu.org/gethelp/>.
7778
7879 PROGRAM=libtool
7980 PACKAGE=libtool
80 VERSION=2.2.10
81 VERSION=2.4
8182 TIMESTAMP=""
82 package_revision=1.3175
83 package_revision=1.3293
8384
8485 # Be Bourne compatible
8586 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
162163 dirname="s,/[^/]*$,,"
163164 basename="s,^.*/,,"
164165
166 # func_dirname file append nondir_replacement
167 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
168 # otherwise set result to NONDIR_REPLACEMENT.
169 func_dirname ()
170 {
171 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
172 if test "X$func_dirname_result" = "X${1}"; then
173 func_dirname_result="${3}"
174 else
175 func_dirname_result="$func_dirname_result${2}"
176 fi
177 } # func_dirname may be replaced by extended shell implementation
178
179
180 # func_basename file
181 func_basename ()
182 {
183 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
184 } # func_basename may be replaced by extended shell implementation
185
186
165187 # func_dirname_and_basename file append nondir_replacement
166188 # perform func_basename and func_dirname in a single function
167189 # call:
176198 # those functions but instead duplicate the functionality here.
177199 func_dirname_and_basename ()
178200 {
179 # Extract subdirectory from the argument.
180 func_dirname_result=`$ECHO "${1}" | $SED -e "$dirname"`
181 if test "X$func_dirname_result" = "X${1}"; then
182 func_dirname_result="${3}"
183 else
184 func_dirname_result="$func_dirname_result${2}"
185 fi
186 func_basename_result=`$ECHO "${1}" | $SED -e "$basename"`
187 }
188
189 # Generated shell functions inserted here.
201 # Extract subdirectory from the argument.
202 func_dirname_result=`$ECHO "${1}" | $SED -e "$dirname"`
203 if test "X$func_dirname_result" = "X${1}"; then
204 func_dirname_result="${3}"
205 else
206 func_dirname_result="$func_dirname_result${2}"
207 fi
208 func_basename_result=`$ECHO "${1}" | $SED -e "$basename"`
209 } # func_dirname_and_basename may be replaced by extended shell implementation
210
211
212 # func_stripname prefix suffix name
213 # strip PREFIX and SUFFIX off of NAME.
214 # PREFIX and SUFFIX must not contain globbing or regex special
215 # characters, hashes, percent signs, but SUFFIX may contain a leading
216 # dot (in which case that matches only a dot).
217 # func_strip_suffix prefix name
218 func_stripname ()
219 {
220 case ${2} in
221 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
222 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
223 esac
224 } # func_stripname may be replaced by extended shell implementation
225
190226
191227 # These SED scripts presuppose an absolute path with a trailing slash.
192228 pathcar='s,^/\([^/]*\).*$,\1,'
369405 # Same as above, but do not quote variable references.
370406 double_quote_subst='s/\(["`\\]\)/\\\1/g'
371407
408 # Sed substitution that turns a string into a regex matching for the
409 # string literally.
410 sed_make_literal_regex='s,[].[^$\\*\/],\\&,g'
411
412 # Sed substitution that converts a w32 file name or path
413 # which contains forward slashes, into one that contains
414 # (escaped) backslashes. A very naive implementation.
415 lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
416
372417 # Re-`\' parameter expansions in output of double_quote_subst that were
373418 # `\'-ed in input to the same. If an odd number of `\' preceded a '$'
374419 # in input to double_quote_subst, that '$' was protected from expansion.
397442 # name if it has been set yet.
398443 func_echo ()
399444 {
400 $ECHO "$progname${mode+: }$mode: $*"
445 $ECHO "$progname: ${opt_mode+$opt_mode: }$*"
401446 }
402447
403448 # func_verbose arg...
423468 # Echo program name prefixed message to standard error.
424469 func_error ()
425470 {
426 $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2
471 $ECHO "$progname: ${opt_mode+$opt_mode: }"${1+"$@"} 1>&2
427472 }
428473
429474 # func_warning arg...
430475 # Echo program name prefixed warning message to standard error.
431476 func_warning ()
432477 {
433 $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2
478 $opt_warning && $ECHO "$progname: ${opt_mode+$opt_mode: }warning: "${1+"$@"} 1>&2
434479
435480 # bash bug again:
436481 :
649694 fi
650695 }
651696
697 # func_tr_sh
698 # Turn $1 into a string suitable for a shell variable name.
699 # Result is stored in $func_tr_sh_result. All characters
700 # not in the set a-zA-Z0-9_ are replaced with '_'. Further,
701 # if $1 begins with a digit, a '_' is prepended as well.
702 func_tr_sh ()
703 {
704 case $1 in
705 [0-9]* | *[!a-zA-Z0-9_]*)
706 func_tr_sh_result=`$ECHO "$1" | $SED 's/^\([0-9]\)/_\1/; s/[^a-zA-Z0-9_]/_/g'`
707 ;;
708 * )
709 func_tr_sh_result=$1
710 ;;
711 esac
712 }
713
652714
653715 # func_version
654716 # Echo version message to standard output and exit.
655717 func_version ()
656718 {
719 $opt_debug
720
657721 $SED -n '/(C)/!b go
658722 :more
659723 /\./!{
675739 # Echo short help message to standard output and exit.
676740 func_usage ()
677741 {
742 $opt_debug
743
678744 $SED -n '/^# Usage:/,/^# *.*--help/ {
679745 s/^# //
680746 s/^# *$//
691757 # unless 'noexit' is passed as argument.
692758 func_help ()
693759 {
760 $opt_debug
761
694762 $SED -n '/^# Usage:/,/# Report bugs to/ {
763 :print
695764 s/^# //
696765 s/^# *$//
697766 s*\$progname*'$progname'*
704773 s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/
705774 s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/
706775 p
707 }' < "$progpath"
776 d
777 }
778 /^# .* home page:/b print
779 /^# General help using/b print
780 ' < "$progpath"
708781 ret=$?
709782 if test -z "$1"; then
710783 exit $ret
716789 # exit_cmd.
717790 func_missing_arg ()
718791 {
792 $opt_debug
793
719794 func_error "missing argument for $1."
720795 exit_cmd=exit
721796 }
722797
798
799 # func_split_short_opt shortopt
800 # Set func_split_short_opt_name and func_split_short_opt_arg shell
801 # variables after splitting SHORTOPT after the 2nd character.
802 func_split_short_opt ()
803 {
804 my_sed_short_opt='1s/^\(..\).*$/\1/;q'
805 my_sed_short_rest='1s/^..\(.*\)$/\1/;q'
806
807 func_split_short_opt_name=`$ECHO "$1" | $SED "$my_sed_short_opt"`
808 func_split_short_opt_arg=`$ECHO "$1" | $SED "$my_sed_short_rest"`
809 } # func_split_short_opt may be replaced by extended shell implementation
810
811
812 # func_split_long_opt longopt
813 # Set func_split_long_opt_name and func_split_long_opt_arg shell
814 # variables after splitting LONGOPT at the `=' sign.
815 func_split_long_opt ()
816 {
817 my_sed_long_opt='1s/^\(--[^=]*\)=.*/\1/;q'
818 my_sed_long_arg='1s/^--[^=]*=//'
819
820 func_split_long_opt_name=`$ECHO "$1" | $SED "$my_sed_long_opt"`
821 func_split_long_opt_arg=`$ECHO "$1" | $SED "$my_sed_long_arg"`
822 } # func_split_long_opt may be replaced by extended shell implementation
823
723824 exit_cmd=:
724
725825
726826
727827
731831 magic_exe="%%%MAGIC EXE variable%%%"
732832
733833 # Global variables.
734 # $mode is unset
735834 nonopt=
736 execute_dlfiles=
737835 preserve_args=
738836 lo2o="s/\\.lo\$/.${objext}/"
739837 o2lo="s/\\.${objext}\$/.lo/"
740838 extracted_archives=
741839 extracted_serial=0
742840
743 opt_dry_run=false
744 opt_duplicate_deps=false
745 opt_silent=false
746 opt_debug=:
747
748841 # If this variable is set in any of the actions, the command in it
749842 # will be execed at the end. This prevents here-documents from being
750843 # left over by shells.
751844 exec_cmd=
845
846 # func_append var value
847 # Append VALUE to the end of shell variable VAR.
848 func_append ()
849 {
850 eval "${1}=\$${1}\${2}"
851 } # func_append may be replaced by extended shell implementation
852
853 # func_append_quoted var value
854 # Quote VALUE and append to the end of shell variable VAR, separated
855 # by a space.
856 func_append_quoted ()
857 {
858 func_quote_for_eval "${2}"
859 eval "${1}=\$${1}\\ \$func_quote_for_eval_result"
860 } # func_append_quoted may be replaced by extended shell implementation
861
862
863 # func_arith arithmetic-term...
864 func_arith ()
865 {
866 func_arith_result=`expr "${@}"`
867 } # func_arith may be replaced by extended shell implementation
868
869
870 # func_len string
871 # STRING may not start with a hyphen.
872 func_len ()
873 {
874 func_len_result=`expr "${1}" : ".*" 2>/dev/null || echo $max_cmd_len`
875 } # func_len may be replaced by extended shell implementation
876
877
878 # func_lo2o object
879 func_lo2o ()
880 {
881 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
882 } # func_lo2o may be replaced by extended shell implementation
883
884
885 # func_xform libobj-or-source
886 func_xform ()
887 {
888 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
889 } # func_xform may be replaced by extended shell implementation
890
752891
753892 # func_fatal_configuration arg...
754893 # Echo program name prefixed message to standard error, followed by
837976 fi
838977 ;;
839978 esac
840 }
841
842 # Parse options once, thoroughly. This comes as soon as possible in
843 # the script to make things like `libtool --version' happen quickly.
844 {
845
846 # Shorthand for --mode=foo, only valid as the first argument
847 case $1 in
848 clean|clea|cle|cl)
849 shift; set dummy --mode clean ${1+"$@"}; shift
850 ;;
851 compile|compil|compi|comp|com|co|c)
852 shift; set dummy --mode compile ${1+"$@"}; shift
853 ;;
854 execute|execut|execu|exec|exe|ex|e)
855 shift; set dummy --mode execute ${1+"$@"}; shift
856 ;;
857 finish|finis|fini|fin|fi|f)
858 shift; set dummy --mode finish ${1+"$@"}; shift
859 ;;
860 install|instal|insta|inst|ins|in|i)
861 shift; set dummy --mode install ${1+"$@"}; shift
862 ;;
863 link|lin|li|l)
864 shift; set dummy --mode link ${1+"$@"}; shift
865 ;;
866 uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
867 shift; set dummy --mode uninstall ${1+"$@"}; shift
868 ;;
869 esac
870
871 # Parse non-mode specific arguments:
872 while test "$#" -gt 0; do
873 opt="$1"
874 shift
875
876 case $opt in
877 --config) func_config ;;
878
879 --debug) preserve_args="$preserve_args $opt"
880 func_echo "enabling shell trace mode"
881 opt_debug='set -x'
882 $opt_debug
883 ;;
884
885 -dlopen) test "$#" -eq 0 && func_missing_arg "$opt" && break
886 execute_dlfiles="$execute_dlfiles $1"
887 shift
888 ;;
889
890 --dry-run | -n) opt_dry_run=: ;;
891 --features) func_features ;;
892 --finish) mode="finish" ;;
893
894 --mode) test "$#" -eq 0 && func_missing_arg "$opt" && break
895 case $1 in
896 # Valid mode arguments:
897 clean) ;;
898 compile) ;;
899 execute) ;;
900 finish) ;;
901 install) ;;
902 link) ;;
903 relink) ;;
904 uninstall) ;;
905
906 # Catch anything else as an error
907 *) func_error "invalid argument for $opt"
908 exit_cmd=exit
909 break
910 ;;
911 esac
912
913 mode="$1"
914 shift
915 ;;
916
917 --preserve-dup-deps)
918 opt_duplicate_deps=: ;;
919
920 --quiet|--silent) preserve_args="$preserve_args $opt"
921 opt_silent=:
922 opt_verbose=false
923 ;;
924
925 --no-quiet|--no-silent)
926 preserve_args="$preserve_args $opt"
927 opt_silent=false
928 ;;
929
930 --verbose| -v) preserve_args="$preserve_args $opt"
931 opt_silent=false
932 opt_verbose=:
933 ;;
934
935 --no-verbose) preserve_args="$preserve_args $opt"
936 opt_verbose=false
937 ;;
938
939 --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break
940 preserve_args="$preserve_args $opt $1"
941 func_enable_tag "$1" # tagname is set here
942 shift
943 ;;
944
945 # Separate optargs to long options:
946 -dlopen=*|--mode=*|--tag=*)
947 func_opt_split "$opt"
948 set dummy "$func_opt_split_opt" "$func_opt_split_arg" ${1+"$@"}
949 shift
950 ;;
951
952 -\?|-h) func_usage ;;
953 --help) opt_help=: ;;
954 --help-all) opt_help=': help-all' ;;
955 --version) func_version ;;
956
957 -*) func_fatal_help "unrecognized option \`$opt'" ;;
958
959 *) nonopt="$opt"
960 break
961 ;;
962 esac
963 done
964
965
966 case $host in
967 *cygwin* | *mingw* | *pw32* | *cegcc*)
968 # don't eliminate duplications in $postdeps and $predeps
969 opt_duplicate_compiler_generated_deps=:
970 ;;
971 *)
972 opt_duplicate_compiler_generated_deps=$opt_duplicate_deps
973 ;;
974 esac
975
976 # Having warned about all mis-specified options, bail out if
977 # anything was wrong.
978 $exit_cmd $EXIT_FAILURE
979979 }
980980
981981 # func_check_version_match
10141014 }
10151015
10161016
1017 # Shorthand for --mode=foo, only valid as the first argument
1018 case $1 in
1019 clean|clea|cle|cl)
1020 shift; set dummy --mode clean ${1+"$@"}; shift
1021 ;;
1022 compile|compil|compi|comp|com|co|c)
1023 shift; set dummy --mode compile ${1+"$@"}; shift
1024 ;;
1025 execute|execut|execu|exec|exe|ex|e)
1026 shift; set dummy --mode execute ${1+"$@"}; shift
1027 ;;
1028 finish|finis|fini|fin|fi|f)
1029 shift; set dummy --mode finish ${1+"$@"}; shift
1030 ;;
1031 install|instal|insta|inst|ins|in|i)
1032 shift; set dummy --mode install ${1+"$@"}; shift
1033 ;;
1034 link|lin|li|l)
1035 shift; set dummy --mode link ${1+"$@"}; shift
1036 ;;
1037 uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
1038 shift; set dummy --mode uninstall ${1+"$@"}; shift
1039 ;;
1040 esac
1041
1042
1043
1044 # Option defaults:
1045 opt_debug=:
1046 opt_dry_run=false
1047 opt_config=false
1048 opt_preserve_dup_deps=false
1049 opt_features=false
1050 opt_finish=false
1051 opt_help=false
1052 opt_help_all=false
1053 opt_silent=:
1054 opt_verbose=:
1055 opt_silent=false
1056 opt_verbose=false
1057
1058
1059 # Parse options once, thoroughly. This comes as soon as possible in the
1060 # script to make things like `--version' happen as quickly as we can.
1061 {
1062 # this just eases exit handling
1063 while test $# -gt 0; do
1064 opt="$1"
1065 shift
1066 case $opt in
1067 --debug|-x) opt_debug='set -x'
1068 func_echo "enabling shell trace mode"
1069 $opt_debug
1070 ;;
1071 --dry-run|--dryrun|-n)
1072 opt_dry_run=:
1073 ;;
1074 --config)
1075 opt_config=:
1076 func_config
1077 ;;
1078 --dlopen|-dlopen)
1079 optarg="$1"
1080 opt_dlopen="${opt_dlopen+$opt_dlopen
1081 }$optarg"
1082 shift
1083 ;;
1084 --preserve-dup-deps)
1085 opt_preserve_dup_deps=:
1086 ;;
1087 --features)
1088 opt_features=:
1089 func_features
1090 ;;
1091 --finish)
1092 opt_finish=:
1093 set dummy --mode finish ${1+"$@"}; shift
1094 ;;
1095 --help)
1096 opt_help=:
1097 ;;
1098 --help-all)
1099 opt_help_all=:
1100 opt_help=': help-all'
1101 ;;
1102 --mode)
1103 test $# = 0 && func_missing_arg $opt && break
1104 optarg="$1"
1105 opt_mode="$optarg"
1106 case $optarg in
1107 # Valid mode arguments:
1108 clean|compile|execute|finish|install|link|relink|uninstall) ;;
1109
1110 # Catch anything else as an error
1111 *) func_error "invalid argument for $opt"
1112 exit_cmd=exit
1113 break
1114 ;;
1115 esac
1116 shift
1117 ;;
1118 --no-silent|--no-quiet)
1119 opt_silent=false
1120 func_append preserve_args " $opt"
1121 ;;
1122 --no-verbose)
1123 opt_verbose=false
1124 func_append preserve_args " $opt"
1125 ;;
1126 --silent|--quiet)
1127 opt_silent=:
1128 func_append preserve_args " $opt"
1129 opt_verbose=false
1130 ;;
1131 --verbose|-v)
1132 opt_verbose=:
1133 func_append preserve_args " $opt"
1134 opt_silent=false
1135 ;;
1136 --tag)
1137 test $# = 0 && func_missing_arg $opt && break
1138 optarg="$1"
1139 opt_tag="$optarg"
1140 func_append preserve_args " $opt $optarg"
1141 func_enable_tag "$optarg"
1142 shift
1143 ;;
1144
1145 -\?|-h) func_usage ;;
1146 --help) func_help ;;
1147 --version) func_version ;;
1148
1149 # Separate optargs to long options:
1150 --*=*)
1151 func_split_long_opt "$opt"
1152 set dummy "$func_split_long_opt_name" "$func_split_long_opt_arg" ${1+"$@"}
1153 shift
1154 ;;
1155
1156 # Separate non-argument short options:
1157 -\?*|-h*|-n*|-v*)
1158 func_split_short_opt "$opt"
1159 set dummy "$func_split_short_opt_name" "-$func_split_short_opt_arg" ${1+"$@"}
1160 shift
1161 ;;
1162
1163 --) break ;;
1164 -*) func_fatal_help "unrecognized option \`$opt'" ;;
1165 *) set dummy "$opt" ${1+"$@"}; shift; break ;;
1166 esac
1167 done
1168
1169 # Validate options:
1170
1171 # save first non-option argument
1172 if test "$#" -gt 0; then
1173 nonopt="$opt"
1174 shift
1175 fi
1176
1177 # preserve --debug
1178 test "$opt_debug" = : || func_append preserve_args " --debug"
1179
1180 case $host in
1181 *cygwin* | *mingw* | *pw32* | *cegcc*)
1182 # don't eliminate duplications in $postdeps and $predeps
1183 opt_duplicate_compiler_generated_deps=:
1184 ;;
1185 *)
1186 opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps
1187 ;;
1188 esac
1189
1190 $opt_help || {
1191 # Sanity checks first:
1192 func_check_version_match
1193
1194 if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
1195 func_fatal_configuration "not configured to build any kind of library"
1196 fi
1197
1198 # Darwin sucks
1199 eval std_shrext=\"$shrext_cmds\"
1200
1201 # Only execute mode is allowed to have -dlopen flags.
1202 if test -n "$opt_dlopen" && test "$opt_mode" != execute; then
1203 func_error "unrecognized option \`-dlopen'"
1204 $ECHO "$help" 1>&2
1205 exit $EXIT_FAILURE
1206 fi
1207
1208 # Change the help message to a mode-specific one.
1209 generic_help="$help"
1210 help="Try \`$progname --help --mode=$opt_mode' for more information."
1211 }
1212
1213
1214 # Bail if the options were screwed
1215 $exit_cmd $EXIT_FAILURE
1216 }
1217
1218
1219
1220
10171221 ## ----------- ##
10181222 ## Main. ##
10191223 ## ----------- ##
1020
1021 $opt_help || {
1022 # Sanity checks first:
1023 func_check_version_match
1024
1025 if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
1026 func_fatal_configuration "not configured to build any kind of library"
1027 fi
1028
1029 test -z "$mode" && func_fatal_error "error: you must specify a MODE."
1030
1031
1032 # Darwin sucks
1033 eval std_shrext=\"$shrext_cmds\"
1034
1035
1036 # Only execute mode is allowed to have -dlopen flags.
1037 if test -n "$execute_dlfiles" && test "$mode" != execute; then
1038 func_error "unrecognized option \`-dlopen'"
1039 $ECHO "$help" 1>&2
1040 exit $EXIT_FAILURE
1041 fi
1042
1043 # Change the help message to a mode-specific one.
1044 generic_help="$help"
1045 help="Try \`$progname --help --mode=$mode' for more information."
1046 }
1047
10481224
10491225 # func_lalib_p file
10501226 # True iff FILE is a libtool `.la' library or `.lo' object file.
11091285 # temporary ltwrapper_script.
11101286 func_ltwrapper_scriptname ()
11111287 {
1112 func_ltwrapper_scriptname_result=""
1113 if func_ltwrapper_executable_p "$1"; then
1114 func_dirname_and_basename "$1" "" "."
1115 func_stripname '' '.exe' "$func_basename_result"
1116 func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
1117 fi
1288 func_dirname_and_basename "$1" "" "."
1289 func_stripname '' '.exe' "$func_basename_result"
1290 func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
11181291 }
11191292
11201293 # func_ltwrapper_p file
11601333 }
11611334
11621335
1336 # func_resolve_sysroot PATH
1337 # Replace a leading = in PATH with a sysroot. Store the result into
1338 # func_resolve_sysroot_result
1339 func_resolve_sysroot ()
1340 {
1341 func_resolve_sysroot_result=$1
1342 case $func_resolve_sysroot_result in
1343 =*)
1344 func_stripname '=' '' "$func_resolve_sysroot_result"
1345 func_resolve_sysroot_result=$lt_sysroot$func_stripname_result
1346 ;;
1347 esac
1348 }
1349
1350 # func_replace_sysroot PATH
1351 # If PATH begins with the sysroot, replace it with = and
1352 # store the result into func_replace_sysroot_result.
1353 func_replace_sysroot ()
1354 {
1355 case "$lt_sysroot:$1" in
1356 ?*:"$lt_sysroot"*)
1357 func_stripname "$lt_sysroot" '' "$1"
1358 func_replace_sysroot_result="=$func_stripname_result"
1359 ;;
1360 *)
1361 # Including no sysroot.
1362 func_replace_sysroot_result=$1
1363 ;;
1364 esac
1365 }
1366
11631367 # func_infer_tag arg
11641368 # Infer tagged configuration to use if any are available and
11651369 # if one wasn't chosen via the "--tag" command line option.
11721376 if test -n "$available_tags" && test -z "$tagname"; then
11731377 CC_quoted=
11741378 for arg in $CC; do
1175 func_quote_for_eval "$arg"
1176 CC_quoted="$CC_quoted $func_quote_for_eval_result"
1379 func_append_quoted CC_quoted "$arg"
11771380 done
11781381 CC_expanded=`func_echo_all $CC`
11791382 CC_quoted_expanded=`func_echo_all $CC_quoted`
11921395 CC_quoted=
11931396 for arg in $CC; do
11941397 # Double-quote args containing other shell metacharacters.
1195 func_quote_for_eval "$arg"
1196 CC_quoted="$CC_quoted $func_quote_for_eval_result"
1398 func_append_quoted CC_quoted "$arg"
11971399 done
11981400 CC_expanded=`func_echo_all $CC`
11991401 CC_quoted_expanded=`func_echo_all $CC_quoted`
12621464 }
12631465 }
12641466
1467
1468 ##################################################
1469 # FILE NAME AND PATH CONVERSION HELPER FUNCTIONS #
1470 ##################################################
1471
1472 # func_convert_core_file_wine_to_w32 ARG
1473 # Helper function used by file name conversion functions when $build is *nix,
1474 # and $host is mingw, cygwin, or some other w32 environment. Relies on a
1475 # correctly configured wine environment available, with the winepath program
1476 # in $build's $PATH.
1477 #
1478 # ARG is the $build file name to be converted to w32 format.
1479 # Result is available in $func_convert_core_file_wine_to_w32_result, and will
1480 # be empty on error (or when ARG is empty)
1481 func_convert_core_file_wine_to_w32 ()
1482 {
1483 $opt_debug
1484 func_convert_core_file_wine_to_w32_result="$1"
1485 if test -n "$1"; then
1486 # Unfortunately, winepath does not exit with a non-zero error code, so we
1487 # are forced to check the contents of stdout. On the other hand, if the
1488 # command is not found, the shell will set an exit code of 127 and print
1489 # *an error message* to stdout. So we must check for both error code of
1490 # zero AND non-empty stdout, which explains the odd construction:
1491 func_convert_core_file_wine_to_w32_tmp=`winepath -w "$1" 2>/dev/null`
1492 if test "$?" -eq 0 && test -n "${func_convert_core_file_wine_to_w32_tmp}"; then
1493 func_convert_core_file_wine_to_w32_result=`$ECHO "$func_convert_core_file_wine_to_w32_tmp" |
1494 $SED -e "$lt_sed_naive_backslashify"`
1495 else
1496 func_convert_core_file_wine_to_w32_result=
1497 fi
1498 fi
1499 }
1500 # end: func_convert_core_file_wine_to_w32
1501
1502
1503 # func_convert_core_path_wine_to_w32 ARG
1504 # Helper function used by path conversion functions when $build is *nix, and
1505 # $host is mingw, cygwin, or some other w32 environment. Relies on a correctly
1506 # configured wine environment available, with the winepath program in $build's
1507 # $PATH. Assumes ARG has no leading or trailing path separator characters.
1508 #
1509 # ARG is path to be converted from $build format to win32.
1510 # Result is available in $func_convert_core_path_wine_to_w32_result.
1511 # Unconvertible file (directory) names in ARG are skipped; if no directory names
1512 # are convertible, then the result may be empty.
1513 func_convert_core_path_wine_to_w32 ()
1514 {
1515 $opt_debug
1516 # unfortunately, winepath doesn't convert paths, only file names
1517 func_convert_core_path_wine_to_w32_result=""
1518 if test -n "$1"; then
1519 oldIFS=$IFS
1520 IFS=:
1521 for func_convert_core_path_wine_to_w32_f in $1; do
1522 IFS=$oldIFS
1523 func_convert_core_file_wine_to_w32 "$func_convert_core_path_wine_to_w32_f"
1524 if test -n "$func_convert_core_file_wine_to_w32_result" ; then
1525 if test -z "$func_convert_core_path_wine_to_w32_result"; then
1526 func_convert_core_path_wine_to_w32_result="$func_convert_core_file_wine_to_w32_result"
1527 else
1528 func_append func_convert_core_path_wine_to_w32_result ";$func_convert_core_file_wine_to_w32_result"
1529 fi
1530 fi
1531 done
1532 IFS=$oldIFS
1533 fi
1534 }
1535 # end: func_convert_core_path_wine_to_w32
1536
1537
1538 # func_cygpath ARGS...
1539 # Wrapper around calling the cygpath program via LT_CYGPATH. This is used when
1540 # when (1) $build is *nix and Cygwin is hosted via a wine environment; or (2)
1541 # $build is MSYS and $host is Cygwin, or (3) $build is Cygwin. In case (1) or
1542 # (2), returns the Cygwin file name or path in func_cygpath_result (input
1543 # file name or path is assumed to be in w32 format, as previously converted
1544 # from $build's *nix or MSYS format). In case (3), returns the w32 file name
1545 # or path in func_cygpath_result (input file name or path is assumed to be in
1546 # Cygwin format). Returns an empty string on error.
1547 #
1548 # ARGS are passed to cygpath, with the last one being the file name or path to
1549 # be converted.
1550 #
1551 # Specify the absolute *nix (or w32) name to cygpath in the LT_CYGPATH
1552 # environment variable; do not put it in $PATH.
1553 func_cygpath ()
1554 {
1555 $opt_debug
1556 if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then
1557 func_cygpath_result=`$LT_CYGPATH "$@" 2>/dev/null`
1558 if test "$?" -ne 0; then
1559 # on failure, ensure result is empty
1560 func_cygpath_result=
1561 fi
1562 else
1563 func_cygpath_result=
1564 func_error "LT_CYGPATH is empty or specifies non-existent file: \`$LT_CYGPATH'"
1565 fi
1566 }
1567 #end: func_cygpath
1568
1569
1570 # func_convert_core_msys_to_w32 ARG
1571 # Convert file name or path ARG from MSYS format to w32 format. Return
1572 # result in func_convert_core_msys_to_w32_result.
1573 func_convert_core_msys_to_w32 ()
1574 {
1575 $opt_debug
1576 # awkward: cmd appends spaces to result
1577 func_convert_core_msys_to_w32_result=`( cmd //c echo "$1" ) 2>/dev/null |
1578 $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"`
1579 }
1580 #end: func_convert_core_msys_to_w32
1581
1582
1583 # func_convert_file_check ARG1 ARG2
1584 # Verify that ARG1 (a file name in $build format) was converted to $host
1585 # format in ARG2. Otherwise, emit an error message, but continue (resetting
1586 # func_to_host_file_result to ARG1).
1587 func_convert_file_check ()
1588 {
1589 $opt_debug
1590 if test -z "$2" && test -n "$1" ; then
1591 func_error "Could not determine host file name corresponding to"
1592 func_error " \`$1'"
1593 func_error "Continuing, but uninstalled executables may not work."
1594 # Fallback:
1595 func_to_host_file_result="$1"
1596 fi
1597 }
1598 # end func_convert_file_check
1599
1600
1601 # func_convert_path_check FROM_PATHSEP TO_PATHSEP FROM_PATH TO_PATH
1602 # Verify that FROM_PATH (a path in $build format) was converted to $host
1603 # format in TO_PATH. Otherwise, emit an error message, but continue, resetting
1604 # func_to_host_file_result to a simplistic fallback value (see below).
1605 func_convert_path_check ()
1606 {
1607 $opt_debug
1608 if test -z "$4" && test -n "$3"; then
1609 func_error "Could not determine the host path corresponding to"
1610 func_error " \`$3'"
1611 func_error "Continuing, but uninstalled executables may not work."
1612 # Fallback. This is a deliberately simplistic "conversion" and
1613 # should not be "improved". See libtool.info.
1614 if test "x$1" != "x$2"; then
1615 lt_replace_pathsep_chars="s|$1|$2|g"
1616 func_to_host_path_result=`echo "$3" |
1617 $SED -e "$lt_replace_pathsep_chars"`
1618 else
1619 func_to_host_path_result="$3"
1620 fi
1621 fi
1622 }
1623 # end func_convert_path_check
1624
1625
1626 # func_convert_path_front_back_pathsep FRONTPAT BACKPAT REPL ORIG
1627 # Modifies func_to_host_path_result by prepending REPL if ORIG matches FRONTPAT
1628 # and appending REPL if ORIG matches BACKPAT.
1629 func_convert_path_front_back_pathsep ()
1630 {
1631 $opt_debug
1632 case $4 in
1633 $1 ) func_to_host_path_result="$3$func_to_host_path_result"
1634 ;;
1635 esac
1636 case $4 in
1637 $2 ) func_append func_to_host_path_result "$3"
1638 ;;
1639 esac
1640 }
1641 # end func_convert_path_front_back_pathsep
1642
1643
1644 ##################################################
1645 # $build to $host FILE NAME CONVERSION FUNCTIONS #
1646 ##################################################
1647 # invoked via `$to_host_file_cmd ARG'
1648 #
1649 # In each case, ARG is the path to be converted from $build to $host format.
1650 # Result will be available in $func_to_host_file_result.
1651
1652
1653 # func_to_host_file ARG
1654 # Converts the file name ARG from $build format to $host format. Return result
1655 # in func_to_host_file_result.
1656 func_to_host_file ()
1657 {
1658 $opt_debug
1659 $to_host_file_cmd "$1"
1660 }
1661 # end func_to_host_file
1662
1663
1664 # func_to_tool_file ARG LAZY
1665 # converts the file name ARG from $build format to toolchain format. Return
1666 # result in func_to_tool_file_result. If the conversion in use is listed
1667 # in (the comma separated) LAZY, no conversion takes place.
1668 func_to_tool_file ()
1669 {
1670 $opt_debug
1671 case ,$2, in
1672 *,"$to_tool_file_cmd",*)
1673 func_to_tool_file_result=$1
1674 ;;
1675 *)
1676 $to_tool_file_cmd "$1"
1677 func_to_tool_file_result=$func_to_host_file_result
1678 ;;
1679 esac
1680 }
1681 # end func_to_tool_file
1682
1683
1684 # func_convert_file_noop ARG
1685 # Copy ARG to func_to_host_file_result.
1686 func_convert_file_noop ()
1687 {
1688 func_to_host_file_result="$1"
1689 }
1690 # end func_convert_file_noop
1691
1692
1693 # func_convert_file_msys_to_w32 ARG
1694 # Convert file name ARG from (mingw) MSYS to (mingw) w32 format; automatic
1695 # conversion to w32 is not available inside the cwrapper. Returns result in
1696 # func_to_host_file_result.
1697 func_convert_file_msys_to_w32 ()
1698 {
1699 $opt_debug
1700 func_to_host_file_result="$1"
1701 if test -n "$1"; then
1702 func_convert_core_msys_to_w32 "$1"
1703 func_to_host_file_result="$func_convert_core_msys_to_w32_result"
1704 fi
1705 func_convert_file_check "$1" "$func_to_host_file_result"
1706 }
1707 # end func_convert_file_msys_to_w32
1708
1709
1710 # func_convert_file_cygwin_to_w32 ARG
1711 # Convert file name ARG from Cygwin to w32 format. Returns result in
1712 # func_to_host_file_result.
1713 func_convert_file_cygwin_to_w32 ()
1714 {
1715 $opt_debug
1716 func_to_host_file_result="$1"
1717 if test -n "$1"; then
1718 # because $build is cygwin, we call "the" cygpath in $PATH; no need to use
1719 # LT_CYGPATH in this case.
1720 func_to_host_file_result=`cygpath -m "$1"`
1721 fi
1722 func_convert_file_check "$1" "$func_to_host_file_result"
1723 }
1724 # end func_convert_file_cygwin_to_w32
1725
1726
1727 # func_convert_file_nix_to_w32 ARG
1728 # Convert file name ARG from *nix to w32 format. Requires a wine environment
1729 # and a working winepath. Returns result in func_to_host_file_result.
1730 func_convert_file_nix_to_w32 ()
1731 {
1732 $opt_debug
1733 func_to_host_file_result="$1"
1734 if test -n "$1"; then
1735 func_convert_core_file_wine_to_w32 "$1"
1736 func_to_host_file_result="$func_convert_core_file_wine_to_w32_result"
1737 fi
1738 func_convert_file_check "$1" "$func_to_host_file_result"
1739 }
1740 # end func_convert_file_nix_to_w32
1741
1742
1743 # func_convert_file_msys_to_cygwin ARG
1744 # Convert file name ARG from MSYS to Cygwin format. Requires LT_CYGPATH set.
1745 # Returns result in func_to_host_file_result.
1746 func_convert_file_msys_to_cygwin ()
1747 {
1748 $opt_debug
1749 func_to_host_file_result="$1"
1750 if test -n "$1"; then
1751 func_convert_core_msys_to_w32 "$1"
1752 func_cygpath -u "$func_convert_core_msys_to_w32_result"
1753 func_to_host_file_result="$func_cygpath_result"
1754 fi
1755 func_convert_file_check "$1" "$func_to_host_file_result"
1756 }
1757 # end func_convert_file_msys_to_cygwin
1758
1759
1760 # func_convert_file_nix_to_cygwin ARG
1761 # Convert file name ARG from *nix to Cygwin format. Requires Cygwin installed
1762 # in a wine environment, working winepath, and LT_CYGPATH set. Returns result
1763 # in func_to_host_file_result.
1764 func_convert_file_nix_to_cygwin ()
1765 {
1766 $opt_debug
1767 func_to_host_file_result="$1"
1768 if test -n "$1"; then
1769 # convert from *nix to w32, then use cygpath to convert from w32 to cygwin.
1770 func_convert_core_file_wine_to_w32 "$1"
1771 func_cygpath -u "$func_convert_core_file_wine_to_w32_result"
1772 func_to_host_file_result="$func_cygpath_result"
1773 fi
1774 func_convert_file_check "$1" "$func_to_host_file_result"
1775 }
1776 # end func_convert_file_nix_to_cygwin
1777
1778
1779 #############################################
1780 # $build to $host PATH CONVERSION FUNCTIONS #
1781 #############################################
1782 # invoked via `$to_host_path_cmd ARG'
1783 #
1784 # In each case, ARG is the path to be converted from $build to $host format.
1785 # The result will be available in $func_to_host_path_result.
1786 #
1787 # Path separators are also converted from $build format to $host format. If
1788 # ARG begins or ends with a path separator character, it is preserved (but
1789 # converted to $host format) on output.
1790 #
1791 # All path conversion functions are named using the following convention:
1792 # file name conversion function : func_convert_file_X_to_Y ()
1793 # path conversion function : func_convert_path_X_to_Y ()
1794 # where, for any given $build/$host combination the 'X_to_Y' value is the
1795 # same. If conversion functions are added for new $build/$host combinations,
1796 # the two new functions must follow this pattern, or func_init_to_host_path_cmd
1797 # will break.
1798
1799
1800 # func_init_to_host_path_cmd
1801 # Ensures that function "pointer" variable $to_host_path_cmd is set to the
1802 # appropriate value, based on the value of $to_host_file_cmd.
1803 to_host_path_cmd=
1804 func_init_to_host_path_cmd ()
1805 {
1806 $opt_debug
1807 if test -z "$to_host_path_cmd"; then
1808 func_stripname 'func_convert_file_' '' "$to_host_file_cmd"
1809 to_host_path_cmd="func_convert_path_${func_stripname_result}"
1810 fi
1811 }
1812
1813
1814 # func_to_host_path ARG
1815 # Converts the path ARG from $build format to $host format. Return result
1816 # in func_to_host_path_result.
1817 func_to_host_path ()
1818 {
1819 $opt_debug
1820 func_init_to_host_path_cmd
1821 $to_host_path_cmd "$1"
1822 }
1823 # end func_to_host_path
1824
1825
1826 # func_convert_path_noop ARG
1827 # Copy ARG to func_to_host_path_result.
1828 func_convert_path_noop ()
1829 {
1830 func_to_host_path_result="$1"
1831 }
1832 # end func_convert_path_noop
1833
1834
1835 # func_convert_path_msys_to_w32 ARG
1836 # Convert path ARG from (mingw) MSYS to (mingw) w32 format; automatic
1837 # conversion to w32 is not available inside the cwrapper. Returns result in
1838 # func_to_host_path_result.
1839 func_convert_path_msys_to_w32 ()
1840 {
1841 $opt_debug
1842 func_to_host_path_result="$1"
1843 if test -n "$1"; then
1844 # Remove leading and trailing path separator characters from ARG. MSYS
1845 # behavior is inconsistent here; cygpath turns them into '.;' and ';.';
1846 # and winepath ignores them completely.
1847 func_stripname : : "$1"
1848 func_to_host_path_tmp1=$func_stripname_result
1849 func_convert_core_msys_to_w32 "$func_to_host_path_tmp1"
1850 func_to_host_path_result="$func_convert_core_msys_to_w32_result"
1851 func_convert_path_check : ";" \
1852 "$func_to_host_path_tmp1" "$func_to_host_path_result"
1853 func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
1854 fi
1855 }
1856 # end func_convert_path_msys_to_w32
1857
1858
1859 # func_convert_path_cygwin_to_w32 ARG
1860 # Convert path ARG from Cygwin to w32 format. Returns result in
1861 # func_to_host_file_result.
1862 func_convert_path_cygwin_to_w32 ()
1863 {
1864 $opt_debug
1865 func_to_host_path_result="$1"
1866 if test -n "$1"; then
1867 # See func_convert_path_msys_to_w32:
1868 func_stripname : : "$1"
1869 func_to_host_path_tmp1=$func_stripname_result
1870 func_to_host_path_result=`cygpath -m -p "$func_to_host_path_tmp1"`
1871 func_convert_path_check : ";" \
1872 "$func_to_host_path_tmp1" "$func_to_host_path_result"
1873 func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
1874 fi
1875 }
1876 # end func_convert_path_cygwin_to_w32
1877
1878
1879 # func_convert_path_nix_to_w32 ARG
1880 # Convert path ARG from *nix to w32 format. Requires a wine environment and
1881 # a working winepath. Returns result in func_to_host_file_result.
1882 func_convert_path_nix_to_w32 ()
1883 {
1884 $opt_debug
1885 func_to_host_path_result="$1"
1886 if test -n "$1"; then
1887 # See func_convert_path_msys_to_w32:
1888 func_stripname : : "$1"
1889 func_to_host_path_tmp1=$func_stripname_result
1890 func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1"
1891 func_to_host_path_result="$func_convert_core_path_wine_to_w32_result"
1892 func_convert_path_check : ";" \
1893 "$func_to_host_path_tmp1" "$func_to_host_path_result"
1894 func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
1895 fi
1896 }
1897 # end func_convert_path_nix_to_w32
1898
1899
1900 # func_convert_path_msys_to_cygwin ARG
1901 # Convert path ARG from MSYS to Cygwin format. Requires LT_CYGPATH set.
1902 # Returns result in func_to_host_file_result.
1903 func_convert_path_msys_to_cygwin ()
1904 {
1905 $opt_debug
1906 func_to_host_path_result="$1"
1907 if test -n "$1"; then
1908 # See func_convert_path_msys_to_w32:
1909 func_stripname : : "$1"
1910 func_to_host_path_tmp1=$func_stripname_result
1911 func_convert_core_msys_to_w32 "$func_to_host_path_tmp1"
1912 func_cygpath -u -p "$func_convert_core_msys_to_w32_result"
1913 func_to_host_path_result="$func_cygpath_result"
1914 func_convert_path_check : : \
1915 "$func_to_host_path_tmp1" "$func_to_host_path_result"
1916 func_convert_path_front_back_pathsep ":*" "*:" : "$1"
1917 fi
1918 }
1919 # end func_convert_path_msys_to_cygwin
1920
1921
1922 # func_convert_path_nix_to_cygwin ARG
1923 # Convert path ARG from *nix to Cygwin format. Requires Cygwin installed in a
1924 # a wine environment, working winepath, and LT_CYGPATH set. Returns result in
1925 # func_to_host_file_result.
1926 func_convert_path_nix_to_cygwin ()
1927 {
1928 $opt_debug
1929 func_to_host_path_result="$1"
1930 if test -n "$1"; then
1931 # Remove leading and trailing path separator characters from
1932 # ARG. msys behavior is inconsistent here, cygpath turns them
1933 # into '.;' and ';.', and winepath ignores them completely.
1934 func_stripname : : "$1"
1935 func_to_host_path_tmp1=$func_stripname_result
1936 func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1"
1937 func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result"
1938 func_to_host_path_result="$func_cygpath_result"
1939 func_convert_path_check : : \
1940 "$func_to_host_path_tmp1" "$func_to_host_path_result"
1941 func_convert_path_front_back_pathsep ":*" "*:" : "$1"
1942 fi
1943 }
1944 # end func_convert_path_nix_to_cygwin
1945
1946
12651947 # func_mode_compile arg...
12661948 func_mode_compile ()
12671949 {
13021984 ;;
13031985
13041986 -pie | -fpie | -fPIE)
1305 pie_flag="$pie_flag $arg"
1987 func_append pie_flag " $arg"
13061988 continue
13071989 ;;
13081990
13091991 -shared | -static | -prefer-pic | -prefer-non-pic)
1310 later="$later $arg"
1992 func_append later " $arg"
13111993 continue
13121994 ;;
13131995
13282010 save_ifs="$IFS"; IFS=','
13292011 for arg in $args; do
13302012 IFS="$save_ifs"
1331 func_quote_for_eval "$arg"
1332 lastarg="$lastarg $func_quote_for_eval_result"
2013 func_append_quoted lastarg "$arg"
13332014 done
13342015 IFS="$save_ifs"
13352016 func_stripname ' ' '' "$lastarg"
13362017 lastarg=$func_stripname_result
13372018
13382019 # Add the arguments to base_compile.
1339 base_compile="$base_compile $lastarg"
2020 func_append base_compile " $lastarg"
13402021 continue
13412022 ;;
13422023
13522033 esac # case $arg_mode
13532034
13542035 # Aesthetically quote the previous argument.
1355 func_quote_for_eval "$lastarg"
1356 base_compile="$base_compile $func_quote_for_eval_result"
2036 func_append_quoted base_compile "$lastarg"
13572037 done # for arg
13582038
13592039 case $arg_mode in
14842164 $opt_dry_run || $RM $removelist
14852165 exit $EXIT_FAILURE
14862166 fi
1487 removelist="$removelist $output_obj"
2167 func_append removelist " $output_obj"
14882168 $ECHO "$srcfile" > "$lockfile"
14892169 fi
14902170
14912171 $opt_dry_run || $RM $removelist
1492 removelist="$removelist $lockfile"
2172 func_append removelist " $lockfile"
14932173 trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15
14942174
1495 if test -n "$fix_srcfile_path"; then
1496 eval srcfile=\"$fix_srcfile_path\"
1497 fi
2175 func_to_tool_file "$srcfile" func_convert_file_msys_to_w32
2176 srcfile=$func_to_tool_file_result
14982177 func_quote_for_eval "$srcfile"
14992178 qsrcfile=$func_quote_for_eval_result
15002179
15142193
15152194 if test -z "$output_obj"; then
15162195 # Place PIC objects in $objdir
1517 command="$command -o $lobj"
2196 func_append command " -o $lobj"
15182197 fi
15192198
15202199 func_show_eval_locale "$command" \
15612240 command="$base_compile $qsrcfile $pic_flag"
15622241 fi
15632242 if test "$compiler_c_o" = yes; then
1564 command="$command -o $obj"
2243 func_append command " -o $obj"
15652244 fi
15662245
15672246 # Suppress compiler output if we already did a PIC compilation.
1568 command="$command$suppress_output"
2247 func_append command "$suppress_output"
15692248 func_show_eval_locale "$command" \
15702249 '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
15712250
16102289 }
16112290
16122291 $opt_help || {
1613 test "$mode" = compile && func_mode_compile ${1+"$@"}
2292 test "$opt_mode" = compile && func_mode_compile ${1+"$@"}
16142293 }
16152294
16162295 func_mode_help ()
16172296 {
16182297 # We need to display help for each of the modes.
1619 case $mode in
2298 case $opt_mode in
16202299 "")
16212300 # Generic help is extracted from the usage comments
16222301 # at the start of this file.
17922471 ;;
17932472
17942473 *)
1795 func_fatal_help "invalid operation mode \`$mode'"
2474 func_fatal_help "invalid operation mode \`$opt_mode'"
17962475 ;;
17972476 esac
17982477
18072486 else
18082487 {
18092488 func_help noexit
1810 for mode in compile link execute install finish uninstall clean; do
2489 for opt_mode in compile link execute install finish uninstall clean; do
18112490 func_mode_help
18122491 done
18132492 } | sed -n '1p; 2,$s/^Usage:/ or: /p'
18142493 {
18152494 func_help noexit
1816 for mode in compile link execute install finish uninstall clean; do
2495 for opt_mode in compile link execute install finish uninstall clean; do
18172496 echo
18182497 func_mode_help
18192498 done
18422521 func_fatal_help "you must specify a COMMAND"
18432522
18442523 # Handle -dlopen flags immediately.
1845 for file in $execute_dlfiles; do
2524 for file in $opt_dlopen; do
18462525 test -f "$file" \
18472526 || func_fatal_help "\`$file' is not a file"
18482527
18492528 dir=
18502529 case $file in
18512530 *.la)
2531 func_resolve_sysroot "$file"
2532 file=$func_resolve_sysroot_result
2533
18522534 # Check to see that this really is a libtool archive.
18532535 func_lalib_unsafe_p "$file" \
18542536 || func_fatal_help "\`$lib' is not a valid libtool archive"
18702552 dir="$func_dirname_result"
18712553
18722554 if test -f "$dir/$objdir/$dlname"; then
1873 dir="$dir/$objdir"
2555 func_append dir "/$objdir"
18742556 else
18752557 if test ! -f "$dir/$dlname"; then
18762558 func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'"
19272609 ;;
19282610 esac
19292611 # Quote arguments (to preserve shell metacharacters).
1930 func_quote_for_eval "$file"
1931 args="$args $func_quote_for_eval_result"
2612 func_append_quoted args "$file"
19322613 done
19332614
19342615 if test "X$opt_dry_run" = Xfalse; then
19602641 fi
19612642 }
19622643
1963 test "$mode" = execute && func_mode_execute ${1+"$@"}
2644 test "$opt_mode" = execute && func_mode_execute ${1+"$@"}
19642645
19652646
19662647 # func_mode_finish arg...
19672648 func_mode_finish ()
19682649 {
19692650 $opt_debug
1970 libdirs="$nonopt"
2651 libs=
2652 libdirs=
19712653 admincmds=
19722654
2655 for opt in "$nonopt" ${1+"$@"}
2656 do
2657 if test -d "$opt"; then
2658 func_append libdirs " $opt"
2659
2660 elif test -f "$opt"; then
2661 if func_lalib_unsafe_p "$opt"; then
2662 func_append libs " $opt"
2663 else
2664 func_warning "\`$opt' is not a valid libtool archive"
2665 fi
2666
2667 else
2668 func_fatal_error "invalid argument \`$opt'"
2669 fi
2670 done
2671
2672 if test -n "$libs"; then
2673 if test -n "$lt_sysroot"; then
2674 sysroot_regex=`$ECHO "$lt_sysroot" | $SED "$sed_make_literal_regex"`
2675 sysroot_cmd="s/\([ ']\)$sysroot_regex/\1/g;"
2676 else
2677 sysroot_cmd=
2678 fi
2679
2680 # Remove sysroot references
2681 if $opt_dry_run; then
2682 for lib in $libs; do
2683 echo "removing references to $lt_sysroot and \`=' prefixes from $lib"
2684 done
2685 else
2686 tmpdir=`func_mktempdir`
2687 for lib in $libs; do
2688 sed -e "${sysroot_cmd} s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \
2689 > $tmpdir/tmp-la
2690 mv -f $tmpdir/tmp-la $lib
2691 done
2692 ${RM}r "$tmpdir"
2693 fi
2694 fi
2695
19732696 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
1974 for dir
1975 do
1976 libdirs="$libdirs $dir"
1977 done
1978
19792697 for libdir in $libdirs; do
19802698 if test -n "$finish_cmds"; then
19812699 # Do each command in the finish commands.
19852703 if test -n "$finish_eval"; then
19862704 # Do the single finish_eval.
19872705 eval cmds=\"$finish_eval\"
1988 $opt_dry_run || eval "$cmds" || admincmds="$admincmds
2706 $opt_dry_run || eval "$cmds" || func_append admincmds "
19892707 $cmds"
19902708 fi
19912709 done
19942712 # Exit here if they wanted silent mode.
19952713 $opt_silent && exit $EXIT_SUCCESS
19962714
1997 echo "----------------------------------------------------------------------"
1998 echo "Libraries have been installed in:"
1999 for libdir in $libdirs; do
2000 $ECHO " $libdir"
2001 done
2002 echo
2003 echo "If you ever happen to want to link against installed libraries"
2004 echo "in a given directory, LIBDIR, you must either use libtool, and"
2005 echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
2006 echo "flag during linking and do at least one of the following:"
2007 if test -n "$shlibpath_var"; then
2008 echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
2009 echo " during execution"
2715 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
2716 echo "----------------------------------------------------------------------"
2717 echo "Libraries have been installed in:"
2718 for libdir in $libdirs; do
2719 $ECHO " $libdir"
2720 done
2721 echo
2722 echo "If you ever happen to want to link against installed libraries"
2723 echo "in a given directory, LIBDIR, you must either use libtool, and"
2724 echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
2725 echo "flag during linking and do at least one of the following:"
2726 if test -n "$shlibpath_var"; then
2727 echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
2728 echo " during execution"
2729 fi
2730 if test -n "$runpath_var"; then
2731 echo " - add LIBDIR to the \`$runpath_var' environment variable"
2732 echo " during linking"
2733 fi
2734 if test -n "$hardcode_libdir_flag_spec"; then
2735 libdir=LIBDIR
2736 eval flag=\"$hardcode_libdir_flag_spec\"
2737
2738 $ECHO " - use the \`$flag' linker flag"
2739 fi
2740 if test -n "$admincmds"; then
2741 $ECHO " - have your system administrator run these commands:$admincmds"
2742 fi
2743 if test -f /etc/ld.so.conf; then
2744 echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
2745 fi
2746 echo
2747
2748 echo "See any operating system documentation about shared libraries for"
2749 case $host in
2750 solaris2.[6789]|solaris2.1[0-9])
2751 echo "more information, such as the ld(1), crle(1) and ld.so(8) manual"
2752 echo "pages."
2753 ;;
2754 *)
2755 echo "more information, such as the ld(1) and ld.so(8) manual pages."
2756 ;;
2757 esac
2758 echo "----------------------------------------------------------------------"
20102759 fi
2011 if test -n "$runpath_var"; then
2012 echo " - add LIBDIR to the \`$runpath_var' environment variable"
2013 echo " during linking"
2014 fi
2015 if test -n "$hardcode_libdir_flag_spec"; then
2016 libdir=LIBDIR
2017 eval flag=\"$hardcode_libdir_flag_spec\"
2018
2019 $ECHO " - use the \`$flag' linker flag"
2020 fi
2021 if test -n "$admincmds"; then
2022 $ECHO " - have your system administrator run these commands:$admincmds"
2023 fi
2024 if test -f /etc/ld.so.conf; then
2025 echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
2026 fi
2027 echo
2028
2029 echo "See any operating system documentation about shared libraries for"
2030 case $host in
2031 solaris2.[6789]|solaris2.1[0-9])
2032 echo "more information, such as the ld(1), crle(1) and ld.so(8) manual"
2033 echo "pages."
2034 ;;
2035 *)
2036 echo "more information, such as the ld(1) and ld.so(8) manual pages."
2037 ;;
2038 esac
2039 echo "----------------------------------------------------------------------"
20402760 exit $EXIT_SUCCESS
20412761 }
20422762
2043 test "$mode" = finish && func_mode_finish ${1+"$@"}
2763 test "$opt_mode" = finish && func_mode_finish ${1+"$@"}
20442764
20452765
20462766 # func_mode_install arg...
20652785 # The real first argument should be the name of the installation program.
20662786 # Aesthetically quote it.
20672787 func_quote_for_eval "$arg"
2068 install_prog="$install_prog$func_quote_for_eval_result"
2788 func_append install_prog "$func_quote_for_eval_result"
20692789 install_shared_prog=$install_prog
20702790 case " $install_prog " in
20712791 *[\\\ /]cp\ *) install_cp=: ;;
20852805 do
20862806 arg2=
20872807 if test -n "$dest"; then
2088 files="$files $dest"
2808 func_append files " $dest"
20892809 dest=$arg
20902810 continue
20912811 fi
21232843
21242844 # Aesthetically quote the argument.
21252845 func_quote_for_eval "$arg"
2126 install_prog="$install_prog $func_quote_for_eval_result"
2846 func_append install_prog " $func_quote_for_eval_result"
21272847 if test -n "$arg2"; then
21282848 func_quote_for_eval "$arg2"
21292849 fi
2130 install_shared_prog="$install_shared_prog $func_quote_for_eval_result"
2850 func_append install_shared_prog " $func_quote_for_eval_result"
21312851 done
21322852
21332853 test -z "$install_prog" && \
21392859 if test -n "$install_override_mode" && $no_mode; then
21402860 if $install_cp; then :; else
21412861 func_quote_for_eval "$install_override_mode"
2142 install_shared_prog="$install_shared_prog -m $func_quote_for_eval_result"
2862 func_append install_shared_prog " -m $func_quote_for_eval_result"
21432863 fi
21442864 fi
21452865
21972917 case $file in
21982918 *.$libext)
21992919 # Do the static libraries later.
2200 staticlibs="$staticlibs $file"
2920 func_append staticlibs " $file"
22012921 ;;
22022922
22032923 *.la)
2924 func_resolve_sysroot "$file"
2925 file=$func_resolve_sysroot_result
2926
22042927 # Check to see that this really is a libtool archive.
22052928 func_lalib_unsafe_p "$file" \
22062929 || func_fatal_help "\`$file' is not a valid libtool archive"
22142937 if test "X$destdir" = "X$libdir"; then
22152938 case "$current_libdirs " in
22162939 *" $libdir "*) ;;
2217 *) current_libdirs="$current_libdirs $libdir" ;;
2940 *) func_append current_libdirs " $libdir" ;;
22182941 esac
22192942 else
22202943 # Note the libdir as a future libdir.
22212944 case "$future_libdirs " in
22222945 *" $libdir "*) ;;
2223 *) future_libdirs="$future_libdirs $libdir" ;;
2946 *) func_append future_libdirs " $libdir" ;;
22242947 esac
22252948 fi
22262949
22272950 func_dirname "$file" "/" ""
22282951 dir="$func_dirname_result"
2229 dir="$dir$objdir"
2952 func_append dir "$objdir"
22302953
22312954 if test -n "$relink_command"; then
22322955 # Determine the prefix the user has applied to our future dir.
23033026 func_show_eval "$install_prog $instname $destdir/$name" 'exit $?'
23043027
23053028 # Maybe install the static library, too.
2306 test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
3029 test -n "$old_library" && func_append staticlibs " $dir/$old_library"
23073030 ;;
23083031
23093032 *.lo)
25003223 fi
25013224 }
25023225
2503 test "$mode" = install && func_mode_install ${1+"$@"}
3226 test "$opt_mode" = install && func_mode_install ${1+"$@"}
25043227
25053228
25063229 # func_generate_dlsyms outputname originator pic_p
25473270 #pragma GCC diagnostic ignored \"-Wstrict-prototypes\"
25483271 #endif
25493272
3273 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
3274 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
3275 /* DATA imports from DLLs on WIN32 con't be const, because runtime
3276 relocations are performed -- see ld's documentation on pseudo-relocs. */
3277 # define LT_DLSYM_CONST
3278 #elif defined(__osf__)
3279 /* This system does not cope well with relocations in const data. */
3280 # define LT_DLSYM_CONST
3281 #else
3282 # define LT_DLSYM_CONST const
3283 #endif
3284
25503285 /* External symbol declarations for the compiler. */\
25513286 "
25523287
25583293 # Add our own program objects to the symbol list.
25593294 progfiles=`$ECHO "$objs$old_deplibs" | $SP2NL | $SED "$lo2o" | $NL2SP`
25603295 for progfile in $progfiles; do
2561 func_verbose "extracting global C symbols from \`$progfile'"
2562 $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'"
3296 func_to_tool_file "$progfile" func_convert_file_msys_to_w32
3297 func_verbose "extracting global C symbols from \`$func_to_tool_file_result'"
3298 $opt_dry_run || eval "$NM $func_to_tool_file_result | $global_symbol_pipe >> '$nlist'"
25633299 done
25643300
25653301 if test -n "$exclude_expsyms"; then
26083344 func_verbose "extracting global C symbols from \`$dlprefile'"
26093345 func_basename "$dlprefile"
26103346 name="$func_basename_result"
2611 $opt_dry_run || {
2612 eval '$ECHO ": $name " >> "$nlist"'
2613 eval "$NM $dlprefile 2>/dev/null | $global_symbol_pipe >> '$nlist'"
2614 }
3347 case $host in
3348 *cygwin* | *mingw* | *cegcc* )
3349 # if an import library, we need to obtain dlname
3350 if func_win32_import_lib_p "$dlprefile"; then
3351 func_tr_sh "$dlprefile"
3352 eval "curr_lafile=\$libfile_$func_tr_sh_result"
3353 dlprefile_dlbasename=""
3354 if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then
3355 # Use subshell, to avoid clobbering current variable values
3356 dlprefile_dlname=`source "$curr_lafile" && echo "$dlname"`
3357 if test -n "$dlprefile_dlname" ; then
3358 func_basename "$dlprefile_dlname"
3359 dlprefile_dlbasename="$func_basename_result"
3360 else
3361 # no lafile. user explicitly requested -dlpreopen <import library>.
3362 $sharedlib_from_linklib_cmd "$dlprefile"
3363 dlprefile_dlbasename=$sharedlib_from_linklib_result
3364 fi
3365 fi
3366 $opt_dry_run || {
3367 if test -n "$dlprefile_dlbasename" ; then
3368 eval '$ECHO ": $dlprefile_dlbasename" >> "$nlist"'
3369 else
3370 func_warning "Could not compute DLL name from $name"
3371 eval '$ECHO ": $name " >> "$nlist"'
3372 fi
3373 func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
3374 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe |
3375 $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/_nm__//' >> '$nlist'"
3376 }
3377 else # not an import lib
3378 $opt_dry_run || {
3379 eval '$ECHO ": $name " >> "$nlist"'
3380 func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
3381 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'"
3382 }
3383 fi
3384 ;;
3385 *)
3386 $opt_dry_run || {
3387 eval '$ECHO ": $name " >> "$nlist"'
3388 func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
3389 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'"
3390 }
3391 ;;
3392 esac
26153393 done
26163394
26173395 $opt_dry_run || {
26493427 const char *name;
26503428 void *address;
26513429 } lt_dlsymlist;
2652 "
2653 case $host in
2654 *cygwin* | *mingw* | *cegcc* )
2655 echo >> "$output_objdir/$my_dlsyms" "\
2656 /* DATA imports from DLLs on WIN32 con't be const, because
2657 runtime relocations are performed -- see ld's documentation
2658 on pseudo-relocs. */"
2659 lt_dlsym_const= ;;
2660 *osf5*)
2661 echo >> "$output_objdir/$my_dlsyms" "\
2662 /* This system does not cope well with relocations in const data */"
2663 lt_dlsym_const= ;;
2664 *)
2665 lt_dlsym_const=const ;;
2666 esac
2667
2668 echo >> "$output_objdir/$my_dlsyms" "\
2669 extern $lt_dlsym_const lt_dlsymlist
3430 extern LT_DLSYM_CONST lt_dlsymlist
26703431 lt_${my_prefix}_LTX_preloaded_symbols[];
2671 $lt_dlsym_const lt_dlsymlist
3432 LT_DLSYM_CONST lt_dlsymlist
26723433 lt_${my_prefix}_LTX_preloaded_symbols[] =
26733434 {\
26743435 { \"$my_originator\", (void *) 0 },"
27243485 for arg in $LTCFLAGS; do
27253486 case $arg in
27263487 -pie | -fpie | -fPIE) ;;
2727 *) symtab_cflags="$symtab_cflags $arg" ;;
3488 *) func_append symtab_cflags " $arg" ;;
27283489 esac
27293490 done
27303491
27873548 # Keep the egrep pattern in sync with the one in _LT_CHECK_MAGIC_METHOD.
27883549 if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
27893550 $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then
2790 win32_nmres=`eval $NM -f posix -A $1 |
3551 func_to_tool_file "$1" func_convert_file_msys_to_w32
3552 win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" |
27913553 $SED -n -e '
27923554 1,100{
27933555 / I /{
28163578 $ECHO "$win32_libid_type"
28173579 }
28183580
3581 # func_cygming_dll_for_implib ARG
3582 #
3583 # Platform-specific function to extract the
3584 # name of the DLL associated with the specified
3585 # import library ARG.
3586 # Invoked by eval'ing the libtool variable
3587 # $sharedlib_from_linklib_cmd
3588 # Result is available in the variable
3589 # $sharedlib_from_linklib_result
3590 func_cygming_dll_for_implib ()
3591 {
3592 $opt_debug
3593 sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"`
3594 }
3595
3596 # func_cygming_dll_for_implib_fallback_core SECTION_NAME LIBNAMEs
3597 #
3598 # The is the core of a fallback implementation of a
3599 # platform-specific function to extract the name of the
3600 # DLL associated with the specified import library LIBNAME.
3601 #
3602 # SECTION_NAME is either .idata$6 or .idata$7, depending
3603 # on the platform and compiler that created the implib.
3604 #
3605 # Echos the name of the DLL associated with the
3606 # specified import library.
3607 func_cygming_dll_for_implib_fallback_core ()
3608 {
3609 $opt_debug
3610 match_literal=`$ECHO "$1" | $SED "$sed_make_literal_regex"`
3611 $OBJDUMP -s --section "$1" "$2" 2>/dev/null |
3612 $SED '/^Contents of section '"$match_literal"':/{
3613 # Place marker at beginning of archive member dllname section
3614 s/.*/====MARK====/
3615 p
3616 d
3617 }
3618 # These lines can sometimes be longer than 43 characters, but
3619 # are always uninteresting
3620 /:[ ]*file format pe[i]\{,1\}-/d
3621 /^In archive [^:]*:/d
3622 # Ensure marker is printed
3623 /^====MARK====/p
3624 # Remove all lines with less than 43 characters
3625 /^.\{43\}/!d
3626 # From remaining lines, remove first 43 characters
3627 s/^.\{43\}//' |
3628 $SED -n '
3629 # Join marker and all lines until next marker into a single line
3630 /^====MARK====/ b para
3631 H
3632 $ b para
3633 b
3634 :para
3635 x
3636 s/\n//g
3637 # Remove the marker
3638 s/^====MARK====//
3639 # Remove trailing dots and whitespace
3640 s/[\. \t]*$//
3641 # Print
3642 /./p' |
3643 # we now have a list, one entry per line, of the stringified
3644 # contents of the appropriate section of all members of the
3645 # archive which possess that section. Heuristic: eliminate
3646 # all those which have a first or second character that is
3647 # a '.' (that is, objdump's representation of an unprintable
3648 # character.) This should work for all archives with less than
3649 # 0x302f exports -- but will fail for DLLs whose name actually
3650 # begins with a literal '.' or a single character followed by
3651 # a '.'.
3652 #
3653 # Of those that remain, print the first one.
3654 $SED -e '/^\./d;/^.\./d;q'
3655 }
3656
3657 # func_cygming_gnu_implib_p ARG
3658 # This predicate returns with zero status (TRUE) if
3659 # ARG is a GNU/binutils-style import library. Returns
3660 # with nonzero status (FALSE) otherwise.
3661 func_cygming_gnu_implib_p ()
3662 {
3663 $opt_debug
3664 func_to_tool_file "$1" func_convert_file_msys_to_w32
3665 func_cygming_gnu_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad]l*_iname)$'`
3666 test -n "$func_cygming_gnu_implib_tmp"
3667 }
3668
3669 # func_cygming_ms_implib_p ARG
3670 # This predicate returns with zero status (TRUE) if
3671 # ARG is an MS-style import library. Returns
3672 # with nonzero status (FALSE) otherwise.
3673 func_cygming_ms_implib_p ()
3674 {
3675 $opt_debug
3676 func_to_tool_file "$1" func_convert_file_msys_to_w32
3677 func_cygming_ms_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $GREP '_NULL_IMPORT_DESCRIPTOR'`
3678 test -n "$func_cygming_ms_implib_tmp"
3679 }
3680
3681 # func_cygming_dll_for_implib_fallback ARG
3682 # Platform-specific function to extract the
3683 # name of the DLL associated with the specified
3684 # import library ARG.
3685 #
3686 # This fallback implementation is for use when $DLLTOOL
3687 # does not support the --identify-strict option.
3688 # Invoked by eval'ing the libtool variable
3689 # $sharedlib_from_linklib_cmd
3690 # Result is available in the variable
3691 # $sharedlib_from_linklib_result
3692 func_cygming_dll_for_implib_fallback ()
3693 {
3694 $opt_debug
3695 if func_cygming_gnu_implib_p "$1" ; then
3696 # binutils import library
3697 sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$7' "$1"`
3698 elif func_cygming_ms_implib_p "$1" ; then
3699 # ms-generated import library
3700 sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$6' "$1"`
3701 else
3702 # unknown
3703 sharedlib_from_linklib_result=""
3704 fi
3705 }
28193706
28203707
28213708 # func_extract_an_archive dir oldlib
31944081
31954082 if test -f \"\$progdir/\$program\"; then"
31964083
4084 # fixup the dll searchpath if we need to.
4085 #
4086 # Fix the DLL searchpath if we need to. Do this before prepending
4087 # to shlibpath, because on Windows, both are PATH and uninstalled
4088 # libraries must come first.
4089 if test -n "$dllsearchpath"; then
4090 $ECHO "\
4091 # Add the dll search path components to the executable PATH
4092 PATH=$dllsearchpath:\$PATH
4093 "
4094 fi
4095
31974096 # Export our shlibpath_var if we have one.
31984097 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
31994098 $ECHO "\
32054104 $shlibpath_var=\`\$ECHO \"\$$shlibpath_var\" | $SED 's/::*\$//'\`
32064105
32074106 export $shlibpath_var
3208 "
3209 fi
3210
3211 # fixup the dll searchpath if we need to.
3212 if test -n "$dllsearchpath"; then
3213 $ECHO "\
3214 # Add the dll search path components to the executable PATH
3215 PATH=$dllsearchpath:\$PATH
32164107 "
32174108 fi
32184109
32324123 "
32334124 }
32344125
3235
3236 # func_to_host_path arg
3237 #
3238 # Convert paths to host format when used with build tools.
3239 # Intended for use with "native" mingw (where libtool itself
3240 # is running under the msys shell), or in the following cross-
3241 # build environments:
3242 # $build $host
3243 # mingw (msys) mingw [e.g. native]
3244 # cygwin mingw
3245 # *nix + wine mingw
3246 # where wine is equipped with the `winepath' executable.
3247 # In the native mingw case, the (msys) shell automatically
3248 # converts paths for any non-msys applications it launches,
3249 # but that facility isn't available from inside the cwrapper.
3250 # Similar accommodations are necessary for $host mingw and
3251 # $build cygwin. Calling this function does no harm for other
3252 # $host/$build combinations not listed above.
3253 #
3254 # ARG is the path (on $build) that should be converted to
3255 # the proper representation for $host. The result is stored
3256 # in $func_to_host_path_result.
3257 func_to_host_path ()
3258 {
3259 func_to_host_path_result="$1"
3260 if test -n "$1"; then
3261 case $host in
3262 *mingw* )
3263 lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
3264 case $build in
3265 *mingw* ) # actually, msys
3266 # awkward: cmd appends spaces to result
3267 func_to_host_path_result=`( cmd //c echo "$1" ) 2>/dev/null |
3268 $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"`
3269 ;;
3270 *cygwin* )
3271 func_to_host_path_result=`cygpath -w "$1" |
3272 $SED -e "$lt_sed_naive_backslashify"`
3273 ;;
3274 * )
3275 # Unfortunately, winepath does not exit with a non-zero
3276 # error code, so we are forced to check the contents of
3277 # stdout. On the other hand, if the command is not
3278 # found, the shell will set an exit code of 127 and print
3279 # *an error message* to stdout. So we must check for both
3280 # error code of zero AND non-empty stdout, which explains
3281 # the odd construction:
3282 func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null`
3283 if test "$?" -eq 0 && test -n "${func_to_host_path_tmp1}"; then
3284 func_to_host_path_result=`$ECHO "$func_to_host_path_tmp1" |
3285 $SED -e "$lt_sed_naive_backslashify"`
3286 else
3287 # Allow warning below.
3288 func_to_host_path_result=
3289 fi
3290 ;;
3291 esac
3292 if test -z "$func_to_host_path_result" ; then
3293 func_error "Could not determine host path corresponding to"
3294 func_error " \`$1'"
3295 func_error "Continuing, but uninstalled executables may not work."
3296 # Fallback:
3297 func_to_host_path_result="$1"
3298 fi
3299 ;;
3300 esac
3301 fi
3302 }
3303 # end: func_to_host_path
3304
3305 # func_to_host_pathlist arg
3306 #
3307 # Convert pathlists to host format when used with build tools.
3308 # See func_to_host_path(), above. This function supports the
3309 # following $build/$host combinations (but does no harm for
3310 # combinations not listed here):
3311 # $build $host
3312 # mingw (msys) mingw [e.g. native]
3313 # cygwin mingw
3314 # *nix + wine mingw
3315 #
3316 # Path separators are also converted from $build format to
3317 # $host format. If ARG begins or ends with a path separator
3318 # character, it is preserved (but converted to $host format)
3319 # on output.
3320 #
3321 # ARG is a pathlist (on $build) that should be converted to
3322 # the proper representation on $host. The result is stored
3323 # in $func_to_host_pathlist_result.
3324 func_to_host_pathlist ()
3325 {
3326 func_to_host_pathlist_result="$1"
3327 if test -n "$1"; then
3328 case $host in
3329 *mingw* )
3330 lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
3331 # Remove leading and trailing path separator characters from
3332 # ARG. msys behavior is inconsistent here, cygpath turns them
3333 # into '.;' and ';.', and winepath ignores them completely.
3334 func_stripname : : "$1"
3335 func_to_host_pathlist_tmp1=$func_stripname_result
3336 case $build in
3337 *mingw* ) # Actually, msys.
3338 # Awkward: cmd appends spaces to result.
3339 func_to_host_pathlist_result=`
3340 ( cmd //c echo "$func_to_host_pathlist_tmp1" ) 2>/dev/null |
3341 $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"`
3342 ;;
3343 *cygwin* )
3344 func_to_host_pathlist_result=`cygpath -w -p "$func_to_host_pathlist_tmp1" |
3345 $SED -e "$lt_sed_naive_backslashify"`
3346 ;;
3347 * )
3348 # unfortunately, winepath doesn't convert pathlists
3349 func_to_host_pathlist_result=""
3350 func_to_host_pathlist_oldIFS=$IFS
3351 IFS=:
3352 for func_to_host_pathlist_f in $func_to_host_pathlist_tmp1 ; do
3353 IFS=$func_to_host_pathlist_oldIFS
3354 if test -n "$func_to_host_pathlist_f" ; then
3355 func_to_host_path "$func_to_host_pathlist_f"
3356 if test -n "$func_to_host_path_result" ; then
3357 if test -z "$func_to_host_pathlist_result" ; then
3358 func_to_host_pathlist_result="$func_to_host_path_result"
3359 else
3360 func_append func_to_host_pathlist_result ";$func_to_host_path_result"
3361 fi
3362 fi
3363 fi
3364 done
3365 IFS=$func_to_host_pathlist_oldIFS
3366 ;;
3367 esac
3368 if test -z "$func_to_host_pathlist_result"; then
3369 func_error "Could not determine the host path(s) corresponding to"
3370 func_error " \`$1'"
3371 func_error "Continuing, but uninstalled executables may not work."
3372 # Fallback. This may break if $1 contains DOS-style drive
3373 # specifications. The fix is not to complicate the expression
3374 # below, but for the user to provide a working wine installation
3375 # with winepath so that path translation in the cross-to-mingw
3376 # case works properly.
3377 lt_replace_pathsep_nix_to_dos="s|:|;|g"
3378 func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp1" |\
3379 $SED -e "$lt_replace_pathsep_nix_to_dos"`
3380 fi
3381 # Now, add the leading and trailing path separators back
3382 case "$1" in
3383 :* ) func_to_host_pathlist_result=";$func_to_host_pathlist_result"
3384 ;;
3385 esac
3386 case "$1" in
3387 *: ) func_append func_to_host_pathlist_result ";"
3388 ;;
3389 esac
3390 ;;
3391 esac
3392 fi
3393 }
3394 # end: func_to_host_pathlist
33954126
33964127 # func_emit_cwrapperexe_src
33974128 # emit the source code for a wrapper executable on stdout
35624293 EOF
35634294
35644295 cat <<EOF
3565 const char * MAGIC_EXE = "$magic_exe";
4296 volatile const char * MAGIC_EXE = "$magic_exe";
35664297 const char * LIB_PATH_VARNAME = "$shlibpath_var";
35674298 EOF
35684299
35694300 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
3570 func_to_host_pathlist "$temp_rpath"
4301 func_to_host_path "$temp_rpath"
35714302 cat <<EOF
3572 const char * LIB_PATH_VALUE = "$func_to_host_pathlist_result";
4303 const char * LIB_PATH_VALUE = "$func_to_host_path_result";
35734304 EOF
35744305 else
35754306 cat <<"EOF"
35784309 fi
35794310
35804311 if test -n "$dllsearchpath"; then
3581 func_to_host_pathlist "$dllsearchpath:"
4312 func_to_host_path "$dllsearchpath:"
35824313 cat <<EOF
35834314 const char * EXE_PATH_VARNAME = "PATH";
3584 const char * EXE_PATH_VALUE = "$func_to_host_pathlist_result";
4315 const char * EXE_PATH_VALUE = "$func_to_host_path_result";
35854316 EOF
35864317 else
35874318 cat <<"EOF"
37644495
37654496 lt_setenv ("BIN_SH", "xpg4"); /* for Tru64 */
37664497 lt_setenv ("DUALCASE", "1"); /* for MSK sh */
4498 /* Update the DLL searchpath. EXE_PATH_VALUE ($dllsearchpath) must
4499 be prepended before (that is, appear after) LIB_PATH_VALUE ($temp_rpath)
4500 because on Windows, both *_VARNAMEs are PATH but uninstalled
4501 libraries must come first. */
4502 lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE);
37674503 lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE);
3768 lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE);
37694504
37704505 lt_debugprintf (__FILE__, __LINE__, "(main) lt_argv_zero: %s\n",
37714506 nonnull (lt_argv_zero));
45145249 ;;
45155250 *)
45165251 if test "$prev" = dlfiles; then
4517 dlfiles="$dlfiles $arg"
5252 func_append dlfiles " $arg"
45185253 else
4519 dlprefiles="$dlprefiles $arg"
5254 func_append dlprefiles " $arg"
45205255 fi
45215256 prev=
45225257 continue
45405275 *-*-darwin*)
45415276 case "$deplibs " in
45425277 *" $qarg.ltframework "*) ;;
4543 *) deplibs="$deplibs $qarg.ltframework" # this is fixed later
5278 *) func_append deplibs " $qarg.ltframework" # this is fixed later
45445279 ;;
45455280 esac
45465281 ;;
45595294 moreargs=
45605295 for fil in `cat "$save_arg"`
45615296 do
4562 # moreargs="$moreargs $fil"
5297 # func_append moreargs " $fil"
45635298 arg=$fil
45645299 # A libtool-controlled object.
45655300
45885323
45895324 if test "$prev" = dlfiles; then
45905325 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
4591 dlfiles="$dlfiles $pic_object"
5326 func_append dlfiles " $pic_object"
45925327 prev=
45935328 continue
45945329 else
46005335 # CHECK ME: I think I busted this. -Ossama
46015336 if test "$prev" = dlprefiles; then
46025337 # Preload the old-style object.
4603 dlprefiles="$dlprefiles $pic_object"
5338 func_append dlprefiles " $pic_object"
46045339 prev=
46055340 fi
46065341
46705405 if test "$prev" = rpath; then
46715406 case "$rpath " in
46725407 *" $arg "*) ;;
4673 *) rpath="$rpath $arg" ;;
5408 *) func_append rpath " $arg" ;;
46745409 esac
46755410 else
46765411 case "$xrpath " in
46775412 *" $arg "*) ;;
4678 *) xrpath="$xrpath $arg" ;;
5413 *) func_append xrpath " $arg" ;;
46795414 esac
46805415 fi
46815416 prev=
46875422 continue
46885423 ;;
46895424 weak)
4690 weak_libs="$weak_libs $arg"
5425 func_append weak_libs " $arg"
46915426 prev=
46925427 continue
46935428 ;;
46945429 xcclinker)
4695 linker_flags="$linker_flags $qarg"
4696 compiler_flags="$compiler_flags $qarg"
5430 func_append linker_flags " $qarg"
5431 func_append compiler_flags " $qarg"
46975432 prev=
46985433 func_append compile_command " $qarg"
46995434 func_append finalize_command " $qarg"
47005435 continue
47015436 ;;
47025437 xcompiler)
4703 compiler_flags="$compiler_flags $qarg"
5438 func_append compiler_flags " $qarg"
47045439 prev=
47055440 func_append compile_command " $qarg"
47065441 func_append finalize_command " $qarg"
47075442 continue
47085443 ;;
47095444 xlinker)
4710 linker_flags="$linker_flags $qarg"
4711 compiler_flags="$compiler_flags $wl$qarg"
5445 func_append linker_flags " $qarg"
5446 func_append compiler_flags " $wl$qarg"
47125447 prev=
47135448 func_append compile_command " $wl$qarg"
47145449 func_append finalize_command " $wl$qarg"
47995534 ;;
48005535
48015536 -L*)
4802 func_stripname '-L' '' "$arg"
4803 dir=$func_stripname_result
4804 if test -z "$dir"; then
5537 func_stripname "-L" '' "$arg"
5538 if test -z "$func_stripname_result"; then
48055539 if test "$#" -gt 0; then
48065540 func_fatal_error "require no space between \`-L' and \`$1'"
48075541 else
48085542 func_fatal_error "need path for \`-L' option"
48095543 fi
48105544 fi
5545 func_resolve_sysroot "$func_stripname_result"
5546 dir=$func_resolve_sysroot_result
48115547 # We need an absolute path.
48125548 case $dir in
48135549 [\\/]* | [A-Za-z]:[\\/]*) ;;
48195555 ;;
48205556 esac
48215557 case "$deplibs " in
4822 *" -L$dir "*) ;;
5558 *" -L$dir "* | *" $arg "*)
5559 # Will only happen for absolute or sysroot arguments
5560 ;;
48235561 *)
4824 deplibs="$deplibs -L$dir"
4825 lib_search_path="$lib_search_path $dir"
5562 # Preserve sysroot, but never include relative directories
5563 case $dir in
5564 [\\/]* | [A-Za-z]:[\\/]* | =*) func_append deplibs " $arg" ;;
5565 *) func_append deplibs " -L$dir" ;;
5566 esac
5567 func_append lib_search_path " $dir"
48265568 ;;
48275569 esac
48285570 case $host in
48315573 case :$dllsearchpath: in
48325574 *":$dir:"*) ;;
48335575 ::) dllsearchpath=$dir;;
4834 *) dllsearchpath="$dllsearchpath:$dir";;
5576 *) func_append dllsearchpath ":$dir";;
48355577 esac
48365578 case :$dllsearchpath: in
48375579 *":$testbindir:"*) ;;
48385580 ::) dllsearchpath=$testbindir;;
4839 *) dllsearchpath="$dllsearchpath:$testbindir";;
5581 *) func_append dllsearchpath ":$testbindir";;
48405582 esac
48415583 ;;
48425584 esac
48605602 ;;
48615603 *-*-rhapsody* | *-*-darwin1.[012])
48625604 # Rhapsody C and math libraries are in the System framework
4863 deplibs="$deplibs System.ltframework"
5605 func_append deplibs " System.ltframework"
48645606 continue
48655607 ;;
48665608 *-*-sco3.2v5* | *-*-sco5v6*)
48805622 ;;
48815623 esac
48825624 fi
4883 deplibs="$deplibs $arg"
5625 func_append deplibs " $arg"
48845626 continue
48855627 ;;
48865628
48925634 # Tru64 UNIX uses -model [arg] to determine the layout of C++
48935635 # classes, name mangling, and exception handling.
48945636 # Darwin uses the -arch flag to determine output architecture.
4895 -model|-arch|-isysroot)
4896 compiler_flags="$compiler_flags $arg"
5637 -model|-arch|-isysroot|--sysroot)
5638 func_append compiler_flags " $arg"
48975639 func_append compile_command " $arg"
48985640 func_append finalize_command " $arg"
48995641 prev=xcompiler
49015643 ;;
49025644
49035645 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
4904 compiler_flags="$compiler_flags $arg"
5646 func_append compiler_flags " $arg"
49055647 func_append compile_command " $arg"
49065648 func_append finalize_command " $arg"
49075649 case "$new_inherited_linker_flags " in
49085650 *" $arg "*) ;;
4909 * ) new_inherited_linker_flags="$new_inherited_linker_flags $arg" ;;
5651 * ) func_append new_inherited_linker_flags " $arg" ;;
49105652 esac
49115653 continue
49125654 ;;
49735715 # We need an absolute path.
49745716 case $dir in
49755717 [\\/]* | [A-Za-z]:[\\/]*) ;;
5718 =*)
5719 func_stripname '=' '' "$dir"
5720 dir=$lt_sysroot$func_stripname_result
5721 ;;
49765722 *)
49775723 func_fatal_error "only absolute run-paths are allowed"
49785724 ;;
49795725 esac
49805726 case "$xrpath " in
49815727 *" $dir "*) ;;
4982 *) xrpath="$xrpath $dir" ;;
5728 *) func_append xrpath " $dir" ;;
49835729 esac
49845730 continue
49855731 ;;
50325778 for flag in $args; do
50335779 IFS="$save_ifs"
50345780 func_quote_for_eval "$flag"
5035 arg="$arg $func_quote_for_eval_result"
5036 compiler_flags="$compiler_flags $func_quote_for_eval_result"
5781 func_append arg " $func_quote_for_eval_result"
5782 func_append compiler_flags " $func_quote_for_eval_result"
50375783 done
50385784 IFS="$save_ifs"
50395785 func_stripname ' ' '' "$arg"
50485794 for flag in $args; do
50495795 IFS="$save_ifs"
50505796 func_quote_for_eval "$flag"
5051 arg="$arg $wl$func_quote_for_eval_result"
5052 compiler_flags="$compiler_flags $wl$func_quote_for_eval_result"
5053 linker_flags="$linker_flags $func_quote_for_eval_result"
5797 func_append arg " $wl$func_quote_for_eval_result"
5798 func_append compiler_flags " $wl$func_quote_for_eval_result"
5799 func_append linker_flags " $func_quote_for_eval_result"
50545800 done
50555801 IFS="$save_ifs"
50565802 func_stripname ' ' '' "$arg"
50895835 # -p, -pg, --coverage, -fprofile-* profiling flags for GCC
50905836 # @file GCC response files
50915837 # -tp=* Portland pgcc target processor selection
5838 # --sysroot=* for sysroot support
5839 # -O*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
50925840 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
5093 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*)
5841 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
5842 -O*|-flto*|-fwhopr*|-fuse-linker-plugin)
50945843 func_quote_for_eval "$arg"
50955844 arg="$func_quote_for_eval_result"
50965845 func_append compile_command " $arg"
50975846 func_append finalize_command " $arg"
5098 compiler_flags="$compiler_flags $arg"
5847 func_append compiler_flags " $arg"
50995848 continue
51005849 ;;
51015850
51075856
51085857 *.$objext)
51095858 # A standard object.
5110 objs="$objs $arg"
5859 func_append objs " $arg"
51115860 ;;
51125861
51135862 *.lo)
51385887
51395888 if test "$prev" = dlfiles; then
51405889 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
5141 dlfiles="$dlfiles $pic_object"
5890 func_append dlfiles " $pic_object"
51425891 prev=
51435892 continue
51445893 else
51505899 # CHECK ME: I think I busted this. -Ossama
51515900 if test "$prev" = dlprefiles; then
51525901 # Preload the old-style object.
5153 dlprefiles="$dlprefiles $pic_object"
5902 func_append dlprefiles " $pic_object"
51545903 prev=
51555904 fi
51565905
51955944
51965945 *.$libext)
51975946 # An archive.
5198 deplibs="$deplibs $arg"
5199 old_deplibs="$old_deplibs $arg"
5947 func_append deplibs " $arg"
5948 func_append old_deplibs " $arg"
52005949 continue
52015950 ;;
52025951
52035952 *.la)
52045953 # A libtool-controlled library.
52055954
5955 func_resolve_sysroot "$arg"
52065956 if test "$prev" = dlfiles; then
52075957 # This library was specified with -dlopen.
5208 dlfiles="$dlfiles $arg"
5958 func_append dlfiles " $func_resolve_sysroot_result"
52095959 prev=
52105960 elif test "$prev" = dlprefiles; then
52115961 # The library was specified with -dlpreopen.
5212 dlprefiles="$dlprefiles $arg"
5962 func_append dlprefiles " $func_resolve_sysroot_result"
52135963 prev=
52145964 else
5215 deplibs="$deplibs $arg"
5965 func_append deplibs " $func_resolve_sysroot_result"
52165966 fi
52175967 continue
52185968 ;;
52596009
52606010 func_dirname "$output" "/" ""
52616011 output_objdir="$func_dirname_result$objdir"
6012 func_to_tool_file "$output_objdir/"
6013 tool_output_objdir=$func_to_tool_file_result
52626014 # Create the object directory.
52636015 func_mkdir_p "$output_objdir"
52646016
52796031 # Find all interdependent deplibs by searching for libraries
52806032 # that are linked more than once (e.g. -la -lb -la)
52816033 for deplib in $deplibs; do
5282 if $opt_duplicate_deps ; then
6034 if $opt_preserve_dup_deps ; then
52836035 case "$libs " in
5284 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
6036 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
52856037 esac
52866038 fi
5287 libs="$libs $deplib"
6039 func_append libs " $deplib"
52886040 done
52896041
52906042 if test "$linkmode" = lib; then
52976049 if $opt_duplicate_compiler_generated_deps; then
52986050 for pre_post_dep in $predeps $postdeps; do
52996051 case "$pre_post_deps " in
5300 *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
6052 *" $pre_post_dep "*) func_append specialdeplibs " $pre_post_deps" ;;
53016053 esac
5302 pre_post_deps="$pre_post_deps $pre_post_dep"
6054 func_append pre_post_deps " $pre_post_dep"
53036055 done
53046056 fi
53056057 pre_post_deps=
53666118 for lib in $dlprefiles; do
53676119 # Ignore non-libtool-libs
53686120 dependency_libs=
6121 func_resolve_sysroot "$lib"
53696122 case $lib in
5370 *.la) func_source "$lib" ;;
6123 *.la) func_source "$func_resolve_sysroot_result" ;;
53716124 esac
53726125
53736126 # Collect preopened libtool deplibs, except any this library
53776130 deplib_base=$func_basename_result
53786131 case " $weak_libs " in
53796132 *" $deplib_base "*) ;;
5380 *) deplibs="$deplibs $deplib" ;;
6133 *) func_append deplibs " $deplib" ;;
53816134 esac
53826135 done
53836136 done
53986151 compile_deplibs="$deplib $compile_deplibs"
53996152 finalize_deplibs="$deplib $finalize_deplibs"
54006153 else
5401 compiler_flags="$compiler_flags $deplib"
6154 func_append compiler_flags " $deplib"
54026155 if test "$linkmode" = lib ; then
54036156 case "$new_inherited_linker_flags " in
54046157 *" $deplib "*) ;;
5405 * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
6158 * ) func_append new_inherited_linker_flags " $deplib" ;;
54066159 esac
54076160 fi
54086161 fi
54876240 if test "$linkmode" = lib ; then
54886241 case "$new_inherited_linker_flags " in
54896242 *" $deplib "*) ;;
5490 * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
6243 * ) func_append new_inherited_linker_flags " $deplib" ;;
54916244 esac
54926245 fi
54936246 fi
55006253 test "$pass" = conv && continue
55016254 newdependency_libs="$deplib $newdependency_libs"
55026255 func_stripname '-L' '' "$deplib"
5503 newlib_search_path="$newlib_search_path $func_stripname_result"
6256 func_resolve_sysroot "$func_stripname_result"
6257 func_append newlib_search_path " $func_resolve_sysroot_result"
55046258 ;;
55056259 prog)
55066260 if test "$pass" = conv; then
55146268 finalize_deplibs="$deplib $finalize_deplibs"
55156269 fi
55166270 func_stripname '-L' '' "$deplib"
5517 newlib_search_path="$newlib_search_path $func_stripname_result"
6271 func_resolve_sysroot "$func_stripname_result"
6272 func_append newlib_search_path " $func_resolve_sysroot_result"
55186273 ;;
55196274 *)
55206275 func_warning "\`-L' is ignored for archives/objects"
55256280 -R*)
55266281 if test "$pass" = link; then
55276282 func_stripname '-R' '' "$deplib"
5528 dir=$func_stripname_result
6283 func_resolve_sysroot "$func_stripname_result"
6284 dir=$func_resolve_sysroot_result
55296285 # Make sure the xrpath contains only unique directories.
55306286 case "$xrpath " in
55316287 *" $dir "*) ;;
5532 *) xrpath="$xrpath $dir" ;;
6288 *) func_append xrpath " $dir" ;;
55336289 esac
55346290 fi
55356291 deplibs="$deplib $deplibs"
55366292 continue
55376293 ;;
5538 *.la) lib="$deplib" ;;
6294 *.la)
6295 func_resolve_sysroot "$deplib"
6296 lib=$func_resolve_sysroot_result
6297 ;;
55396298 *.$libext)
55406299 if test "$pass" = conv; then
55416300 deplibs="$deplib $deplibs"
55986357 if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
55996358 # If there is no dlopen support or we're linking statically,
56006359 # we need to preload.
5601 newdlprefiles="$newdlprefiles $deplib"
6360 func_append newdlprefiles " $deplib"
56026361 compile_deplibs="$deplib $compile_deplibs"
56036362 finalize_deplibs="$deplib $finalize_deplibs"
56046363 else
5605 newdlfiles="$newdlfiles $deplib"
6364 func_append newdlfiles " $deplib"
56066365 fi
56076366 fi
56086367 continue
56486407 for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do
56496408 case " $new_inherited_linker_flags " in
56506409 *" $tmp_inherited_linker_flag "*) ;;
5651 *) new_inherited_linker_flags="$new_inherited_linker_flags $tmp_inherited_linker_flag";;
6410 *) func_append new_inherited_linker_flags " $tmp_inherited_linker_flag";;
56526411 esac
56536412 done
56546413 fi
56566415 if test "$linkmode,$pass" = "lib,link" ||
56576416 test "$linkmode,$pass" = "prog,scan" ||
56586417 { test "$linkmode" != prog && test "$linkmode" != lib; }; then
5659 test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
5660 test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
6418 test -n "$dlopen" && func_append dlfiles " $dlopen"
6419 test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen"
56616420 fi
56626421
56636422 if test "$pass" = conv; then
56686427 func_fatal_error "cannot find name of link library for \`$lib'"
56696428 fi
56706429 # It is a libtool convenience library, so add in its objects.
5671 convenience="$convenience $ladir/$objdir/$old_library"
5672 old_convenience="$old_convenience $ladir/$objdir/$old_library"
6430 func_append convenience " $ladir/$objdir/$old_library"
6431 func_append old_convenience " $ladir/$objdir/$old_library"
56736432 elif test "$linkmode" != prog && test "$linkmode" != lib; then
56746433 func_fatal_error "\`$lib' is not a convenience library"
56756434 fi
56766435 tmp_libs=
56776436 for deplib in $dependency_libs; do
56786437 deplibs="$deplib $deplibs"
5679 if $opt_duplicate_deps ; then
6438 if $opt_preserve_dup_deps ; then
56806439 case "$tmp_libs " in
5681 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
6440 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
56826441 esac
56836442 fi
5684 tmp_libs="$tmp_libs $deplib"
6443 func_append tmp_libs " $deplib"
56856444 done
56866445 continue
56876446 fi # $pass = conv
56896448
56906449 # Get the name of the library we link against.
56916450 linklib=
5692 for l in $old_library $library_names; do
5693 linklib="$l"
5694 done
6451 if test -n "$old_library" &&
6452 { test "$prefer_static_libs" = yes ||
6453 test "$prefer_static_libs,$installed" = "built,no"; }; then
6454 linklib=$old_library
6455 else
6456 for l in $old_library $library_names; do
6457 linklib="$l"
6458 done
6459 fi
56956460 if test -z "$linklib"; then
56966461 func_fatal_error "cannot find name of link library for \`$lib'"
56976462 fi
57086473 # statically, we need to preload. We also need to preload any
57096474 # dependent libraries so libltdl's deplib preloader doesn't
57106475 # bomb out in the load deplibs phase.
5711 dlprefiles="$dlprefiles $lib $dependency_libs"
6476 func_append dlprefiles " $lib $dependency_libs"
57126477 else
5713 newdlfiles="$newdlfiles $lib"
6478 func_append newdlfiles " $lib"
57146479 fi
57156480 continue
57166481 fi # $pass = dlopen
57326497
57336498 # Find the relevant object directory and library name.
57346499 if test "X$installed" = Xyes; then
5735 if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
6500 if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
57366501 func_warning "library \`$lib' was moved."
57376502 dir="$ladir"
57386503 absdir="$abs_ladir"
57396504 libdir="$abs_ladir"
57406505 else
5741 dir="$libdir"
5742 absdir="$libdir"
6506 dir="$lt_sysroot$libdir"
6507 absdir="$lt_sysroot$libdir"
57436508 fi
57446509 test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
57456510 else
57476512 dir="$ladir"
57486513 absdir="$abs_ladir"
57496514 # Remove this search path later
5750 notinst_path="$notinst_path $abs_ladir"
6515 func_append notinst_path " $abs_ladir"
57516516 else
57526517 dir="$ladir/$objdir"
57536518 absdir="$abs_ladir/$objdir"
57546519 # Remove this search path later
5755 notinst_path="$notinst_path $abs_ladir"
6520 func_append notinst_path " $abs_ladir"
57566521 fi
57576522 fi # $installed = yes
57586523 func_stripname 'lib' '.la' "$laname"
57636528 if test -z "$libdir" && test "$linkmode" = prog; then
57646529 func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
57656530 fi
5766 # Prefer using a static library (so that no silly _DYNAMIC symbols
5767 # are required to link).
5768 if test -n "$old_library"; then
5769 newdlprefiles="$newdlprefiles $dir/$old_library"
5770 # Keep a list of preopened convenience libraries to check
5771 # that they are being used correctly in the link pass.
5772 test -z "$libdir" && \
5773 dlpreconveniencelibs="$dlpreconveniencelibs $dir/$old_library"
5774 # Otherwise, use the dlname, so that lt_dlopen finds it.
5775 elif test -n "$dlname"; then
5776 newdlprefiles="$newdlprefiles $dir/$dlname"
5777 else
5778 newdlprefiles="$newdlprefiles $dir/$linklib"
5779 fi
6531 case "$host" in
6532 # special handling for platforms with PE-DLLs.
6533 *cygwin* | *mingw* | *cegcc* )
6534 # Linker will automatically link against shared library if both
6535 # static and shared are present. Therefore, ensure we extract
6536 # symbols from the import library if a shared library is present
6537 # (otherwise, the dlopen module name will be incorrect). We do
6538 # this by putting the import library name into $newdlprefiles.
6539 # We recover the dlopen module name by 'saving' the la file
6540 # name in a special purpose variable, and (later) extracting the
6541 # dlname from the la file.
6542 if test -n "$dlname"; then
6543 func_tr_sh "$dir/$linklib"
6544 eval "libfile_$func_tr_sh_result=\$abs_ladir/\$laname"
6545 func_append newdlprefiles " $dir/$linklib"
6546 else
6547 func_append newdlprefiles " $dir/$old_library"
6548 # Keep a list of preopened convenience libraries to check
6549 # that they are being used correctly in the link pass.
6550 test -z "$libdir" && \
6551 func_append dlpreconveniencelibs " $dir/$old_library"
6552 fi
6553 ;;
6554 * )
6555 # Prefer using a static library (so that no silly _DYNAMIC symbols
6556 # are required to link).
6557 if test -n "$old_library"; then
6558 func_append newdlprefiles " $dir/$old_library"
6559 # Keep a list of preopened convenience libraries to check
6560 # that they are being used correctly in the link pass.
6561 test -z "$libdir" && \
6562 func_append dlpreconveniencelibs " $dir/$old_library"
6563 # Otherwise, use the dlname, so that lt_dlopen finds it.
6564 elif test -n "$dlname"; then
6565 func_append newdlprefiles " $dir/$dlname"
6566 else
6567 func_append newdlprefiles " $dir/$linklib"
6568 fi
6569 ;;
6570 esac
57806571 fi # $pass = dlpreopen
57816572
57826573 if test -z "$libdir"; then
57946585
57956586
57966587 if test "$linkmode" = prog && test "$pass" != link; then
5797 newlib_search_path="$newlib_search_path $ladir"
6588 func_append newlib_search_path " $ladir"
57986589 deplibs="$lib $deplibs"
57996590
58006591 linkalldeplibs=no
58076598 for deplib in $dependency_libs; do
58086599 case $deplib in
58096600 -L*) func_stripname '-L' '' "$deplib"
5810 newlib_search_path="$newlib_search_path $func_stripname_result"
6601 func_resolve_sysroot "$func_stripname_result"
6602 func_append newlib_search_path " $func_resolve_sysroot_result"
58116603 ;;
58126604 esac
58136605 # Need to link against all dependency_libs?
58186610 # or/and link against static libraries
58196611 newdependency_libs="$deplib $newdependency_libs"
58206612 fi
5821 if $opt_duplicate_deps ; then
6613 if $opt_preserve_dup_deps ; then
58226614 case "$tmp_libs " in
5823 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
6615 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
58246616 esac
58256617 fi
5826 tmp_libs="$tmp_libs $deplib"
6618 func_append tmp_libs " $deplib"
58276619 done # for deplib
58286620 continue
58296621 fi # $linkmode = prog...
58386630 # Make sure the rpath contains only unique directories.
58396631 case "$temp_rpath:" in
58406632 *"$absdir:"*) ;;
5841 *) temp_rpath="$temp_rpath$absdir:" ;;
6633 *) func_append temp_rpath "$absdir:" ;;
58426634 esac
58436635 fi
58446636
58506642 *)
58516643 case "$compile_rpath " in
58526644 *" $absdir "*) ;;
5853 *) compile_rpath="$compile_rpath $absdir"
6645 *) func_append compile_rpath " $absdir" ;;
58546646 esac
58556647 ;;
58566648 esac
58596651 *)
58606652 case "$finalize_rpath " in
58616653 *" $libdir "*) ;;
5862 *) finalize_rpath="$finalize_rpath $libdir"
6654 *) func_append finalize_rpath " $libdir" ;;
58636655 esac
58646656 ;;
58656657 esac
58846676 case $host in
58856677 *cygwin* | *mingw* | *cegcc*)
58866678 # No point in relinking DLLs because paths are not encoded
5887 notinst_deplibs="$notinst_deplibs $lib"
6679 func_append notinst_deplibs " $lib"
58886680 need_relink=no
58896681 ;;
58906682 *)
58916683 if test "$installed" = no; then
5892 notinst_deplibs="$notinst_deplibs $lib"
6684 func_append notinst_deplibs " $lib"
58936685 need_relink=yes
58946686 fi
58956687 ;;
59246716 *)
59256717 case "$compile_rpath " in
59266718 *" $absdir "*) ;;
5927 *) compile_rpath="$compile_rpath $absdir"
6719 *) func_append compile_rpath " $absdir" ;;
59286720 esac
59296721 ;;
59306722 esac
59336725 *)
59346726 case "$finalize_rpath " in
59356727 *" $libdir "*) ;;
5936 *) finalize_rpath="$finalize_rpath $libdir"
6728 *) func_append finalize_rpath " $libdir" ;;
59376729 esac
59386730 ;;
59396731 esac
59876779 linklib=$newlib
59886780 fi # test -n "$old_archive_from_expsyms_cmds"
59896781
5990 if test "$linkmode" = prog || test "$mode" != relink; then
6782 if test "$linkmode" = prog || test "$opt_mode" != relink; then
59916783 add_shlibpath=
59926784 add_dir=
59936785 add=
60436835 if test -n "$inst_prefix_dir"; then
60446836 case $libdir in
60456837 [\\/]*)
6046 add_dir="$add_dir -L$inst_prefix_dir$libdir"
6838 func_append add_dir " -L$inst_prefix_dir$libdir"
60476839 ;;
60486840 esac
60496841 fi
60656857 if test -n "$add_shlibpath"; then
60666858 case :$compile_shlibpath: in
60676859 *":$add_shlibpath:"*) ;;
6068 *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
6860 *) func_append compile_shlibpath "$add_shlibpath:" ;;
60696861 esac
60706862 fi
60716863 if test "$linkmode" = prog; then
60796871 test "$hardcode_shlibpath_var" = yes; then
60806872 case :$finalize_shlibpath: in
60816873 *":$libdir:"*) ;;
6082 *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
6874 *) func_append finalize_shlibpath "$libdir:" ;;
60836875 esac
60846876 fi
60856877 fi
60866878 fi
60876879
6088 if test "$linkmode" = prog || test "$mode" = relink; then
6880 if test "$linkmode" = prog || test "$opt_mode" = relink; then
60896881 add_shlibpath=
60906882 add_dir=
60916883 add=
60996891 elif test "$hardcode_shlibpath_var" = yes; then
61006892 case :$finalize_shlibpath: in
61016893 *":$libdir:"*) ;;
6102 *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
6894 *) func_append finalize_shlibpath "$libdir:" ;;
61036895 esac
61046896 add="-l$name"
61056897 elif test "$hardcode_automatic" = yes; then
61166908 if test -n "$inst_prefix_dir"; then
61176909 case $libdir in
61186910 [\\/]*)
6119 add_dir="$add_dir -L$inst_prefix_dir$libdir"
6911 func_append add_dir " -L$inst_prefix_dir$libdir"
61206912 ;;
61216913 esac
61226914 fi
61936985 temp_xrpath=$func_stripname_result
61946986 case " $xrpath " in
61956987 *" $temp_xrpath "*) ;;
6196 *) xrpath="$xrpath $temp_xrpath";;
6988 *) func_append xrpath " $temp_xrpath";;
61976989 esac;;
6198 *) temp_deplibs="$temp_deplibs $libdir";;
6990 *) func_append temp_deplibs " $libdir";;
61996991 esac
62006992 done
62016993 dependency_libs="$temp_deplibs"
62026994 fi
62036995
6204 newlib_search_path="$newlib_search_path $absdir"
6996 func_append newlib_search_path " $absdir"
62056997 # Link against this library
62066998 test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
62076999 # ... and its dependency_libs
62087000 tmp_libs=
62097001 for deplib in $dependency_libs; do
62107002 newdependency_libs="$deplib $newdependency_libs"
6211 if $opt_duplicate_deps ; then
7003 case $deplib in
7004 -L*) func_stripname '-L' '' "$deplib"
7005 func_resolve_sysroot "$func_stripname_result";;
7006 *) func_resolve_sysroot "$deplib" ;;
7007 esac
7008 if $opt_preserve_dup_deps ; then
62127009 case "$tmp_libs " in
6213 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
7010 *" $func_resolve_sysroot_result "*)
7011 func_append specialdeplibs " $func_resolve_sysroot_result" ;;
62147012 esac
62157013 fi
6216 tmp_libs="$tmp_libs $deplib"
7014 func_append tmp_libs " $func_resolve_sysroot_result"
62177015 done
62187016
62197017 if test "$link_all_deplibs" != no; then
62237021 case $deplib in
62247022 -L*) path="$deplib" ;;
62257023 *.la)
7024 func_resolve_sysroot "$deplib"
7025 deplib=$func_resolve_sysroot_result
62267026 func_dirname "$deplib" "" "."
6227 dir="$func_dirname_result"
7027 dir=$func_dirname_result
62287028 # We need an absolute path.
62297029 case $dir in
62307030 [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
62517051 if test -z "$darwin_install_name"; then
62527052 darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
62537053 fi
6254 compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
6255 linker_flags="$linker_flags -dylib_file ${darwin_install_name}:${depdepl}"
7054 func_append compiler_flags " ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
7055 func_append linker_flags " -dylib_file ${darwin_install_name}:${depdepl}"
62567056 path=
62577057 fi
62587058 fi
63027102 for dir in $newlib_search_path; do
63037103 case "$lib_search_path " in
63047104 *" $dir "*) ;;
6305 *) lib_search_path="$lib_search_path $dir" ;;
7105 *) func_append lib_search_path " $dir" ;;
63067106 esac
63077107 done
63087108 newlib_search_path=
63607160 -L*)
63617161 case " $tmp_libs " in
63627162 *" $deplib "*) ;;
6363 *) tmp_libs="$tmp_libs $deplib" ;;
7163 *) func_append tmp_libs " $deplib" ;;
63647164 esac
63657165 ;;
6366 *) tmp_libs="$tmp_libs $deplib" ;;
7166 *) func_append tmp_libs " $deplib" ;;
63677167 esac
63687168 done
63697169 eval $var=\"$tmp_libs\"
63797179 ;;
63807180 esac
63817181 if test -n "$i" ; then
6382 tmp_libs="$tmp_libs $i"
7182 func_append tmp_libs " $i"
63837183 fi
63847184 done
63857185 dependency_libs=$tmp_libs
64207220 # Now set the variables for building old libraries.
64217221 build_libtool_libs=no
64227222 oldlibs="$output"
6423 objs="$objs$old_deplibs"
7223 func_append objs "$old_deplibs"
64247224 ;;
64257225
64267226 lib)
64567256 echo
64577257 $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
64587258 $ECHO "*** objects $objs is not portable!"
6459 libobjs="$libobjs $objs"
7259 func_append libobjs " $objs"
64607260 fi
64617261 fi
64627262
66547454 done
66557455
66567456 # Make executables depend on our current version.
6657 verstring="$verstring:${current}.0"
7457 func_append verstring ":${current}.0"
66587458 ;;
66597459
66607460 qnx)
67227522 fi
67237523
67247524 func_generate_dlsyms "$libname" "$libname" "yes"
6725 libobjs="$libobjs $symfileobj"
7525 func_append libobjs " $symfileobj"
67267526 test "X$libobjs" = "X " && libobjs=
67277527
6728 if test "$mode" != relink; then
7528 if test "$opt_mode" != relink; then
67297529 # Remove our outputs, but don't remove object files since they
67307530 # may have been created when compiling PIC objects.
67317531 removelist=
67417541 continue
67427542 fi
67437543 fi
6744 removelist="$removelist $p"
7544 func_append removelist " $p"
67457545 ;;
67467546 *) ;;
67477547 esac
67527552
67537553 # Now set the variables for building old libraries.
67547554 if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
6755 oldlibs="$oldlibs $output_objdir/$libname.$libext"
7555 func_append oldlibs " $output_objdir/$libname.$libext"
67567556
67577557 # Transform .lo files to .o files.
67587558 oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; $lo2o" | $NL2SP`
67697569 # If the user specified any rpath flags, then add them.
67707570 temp_xrpath=
67717571 for libdir in $xrpath; do
6772 temp_xrpath="$temp_xrpath -R$libdir"
7572 func_replace_sysroot "$libdir"
7573 func_append temp_xrpath " -R$func_replace_sysroot_result"
67737574 case "$finalize_rpath " in
67747575 *" $libdir "*) ;;
6775 *) finalize_rpath="$finalize_rpath $libdir" ;;
7576 *) func_append finalize_rpath " $libdir" ;;
67767577 esac
67777578 done
67787579 if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
67867587 for lib in $old_dlfiles; do
67877588 case " $dlprefiles $dlfiles " in
67887589 *" $lib "*) ;;
6789 *) dlfiles="$dlfiles $lib" ;;
7590 *) func_append dlfiles " $lib" ;;
67907591 esac
67917592 done
67927593
67967597 for lib in $old_dlprefiles; do
67977598 case "$dlprefiles " in
67987599 *" $lib "*) ;;
6799 *) dlprefiles="$dlprefiles $lib" ;;
7600 *) func_append dlprefiles " $lib" ;;
68007601 esac
68017602 done
68027603
68087609 ;;
68097610 *-*-rhapsody* | *-*-darwin1.[012])
68107611 # Rhapsody C library is in the System framework
6811 deplibs="$deplibs System.ltframework"
7612 func_append deplibs " System.ltframework"
68127613 ;;
68137614 *-*-netbsd*)
68147615 # Don't link with libc until the a.out ld.so is fixed.
68257626 *)
68267627 # Add libc to deplibs on all other systems if necessary.
68277628 if test "$build_libtool_need_lc" = "yes"; then
6828 deplibs="$deplibs -lc"
7629 func_append deplibs " -lc"
68297630 fi
68307631 ;;
68317632 esac
68747675 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
68757676 case " $predeps $postdeps " in
68767677 *" $i "*)
6877 newdeplibs="$newdeplibs $i"
7678 func_append newdeplibs " $i"
68787679 i=""
68797680 ;;
68807681 esac
68857686 set dummy $deplib_matches; shift
68867687 deplib_match=$1
68877688 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
6888 newdeplibs="$newdeplibs $i"
7689 func_append newdeplibs " $i"
68897690 else
68907691 droppeddeps=yes
68917692 echo
68997700 fi
69007701 ;;
69017702 *)
6902 newdeplibs="$newdeplibs $i"
7703 func_append newdeplibs " $i"
69037704 ;;
69047705 esac
69057706 done
69177718 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
69187719 case " $predeps $postdeps " in
69197720 *" $i "*)
6920 newdeplibs="$newdeplibs $i"
7721 func_append newdeplibs " $i"
69217722 i=""
69227723 ;;
69237724 esac
69287729 set dummy $deplib_matches; shift
69297730 deplib_match=$1
69307731 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
6931 newdeplibs="$newdeplibs $i"
7732 func_append newdeplibs " $i"
69327733 else
69337734 droppeddeps=yes
69347735 echo
69507751 fi
69517752 ;;
69527753 *)
6953 newdeplibs="$newdeplibs $i"
7754 func_append newdeplibs " $i"
69547755 ;;
69557756 esac
69567757 done
69677768 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
69687769 case " $predeps $postdeps " in
69697770 *" $a_deplib "*)
6970 newdeplibs="$newdeplibs $a_deplib"
7771 func_append newdeplibs " $a_deplib"
69717772 a_deplib=""
69727773 ;;
69737774 esac
69747775 fi
69757776 if test -n "$a_deplib" ; then
69767777 libname=`eval "\\$ECHO \"$libname_spec\""`
7778 if test -n "$file_magic_glob"; then
7779 libnameglob=`func_echo_all "$libname" | $SED -e $file_magic_glob`
7780 else
7781 libnameglob=$libname
7782 fi
7783 test "$want_nocaseglob" = yes && nocaseglob=`shopt -p nocaseglob`
69777784 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
6978 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
7785 if test "$want_nocaseglob" = yes; then
7786 shopt -s nocaseglob
7787 potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
7788 $nocaseglob
7789 else
7790 potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
7791 fi
69797792 for potent_lib in $potential_libs; do
69807793 # Follow soft links.
69817794 if ls -lLd "$potent_lib" 2>/dev/null |
69987811 if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
69997812 $SED -e 10q |
70007813 $EGREP "$file_magic_regex" > /dev/null; then
7001 newdeplibs="$newdeplibs $a_deplib"
7814 func_append newdeplibs " $a_deplib"
70027815 a_deplib=""
70037816 break 2
70047817 fi
70237836 ;;
70247837 *)
70257838 # Add a -L argument.
7026 newdeplibs="$newdeplibs $a_deplib"
7839 func_append newdeplibs " $a_deplib"
70277840 ;;
70287841 esac
70297842 done # Gone through all deplibs.
70397852 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
70407853 case " $predeps $postdeps " in
70417854 *" $a_deplib "*)
7042 newdeplibs="$newdeplibs $a_deplib"
7855 func_append newdeplibs " $a_deplib"
70437856 a_deplib=""
70447857 ;;
70457858 esac
70527865 potlib="$potent_lib" # see symlink-check above in file_magic test
70537866 if eval "\$ECHO \"$potent_lib\"" 2>/dev/null | $SED 10q | \
70547867 $EGREP "$match_pattern_regex" > /dev/null; then
7055 newdeplibs="$newdeplibs $a_deplib"
7868 func_append newdeplibs " $a_deplib"
70567869 a_deplib=""
70577870 break 2
70587871 fi
70777890 ;;
70787891 *)
70797892 # Add a -L argument.
7080 newdeplibs="$newdeplibs $a_deplib"
7893 func_append newdeplibs " $a_deplib"
70817894 ;;
70827895 esac
70837896 done # Gone through all deplibs.
71817994 *)
71827995 case " $deplibs " in
71837996 *" -L$path/$objdir "*)
7184 new_libs="$new_libs -L$path/$objdir" ;;
7997 func_append new_libs " -L$path/$objdir" ;;
71857998 esac
71867999 ;;
71878000 esac
71918004 -L*)
71928005 case " $new_libs " in
71938006 *" $deplib "*) ;;
7194 *) new_libs="$new_libs $deplib" ;;
8007 *) func_append new_libs " $deplib" ;;
71958008 esac
71968009 ;;
7197 *) new_libs="$new_libs $deplib" ;;
8010 *) func_append new_libs " $deplib" ;;
71988011 esac
71998012 done
72008013 deplibs="$new_libs"
72118024 hardcode_libdirs=
72128025 dep_rpath=
72138026 rpath="$finalize_rpath"
7214 test "$mode" != relink && rpath="$compile_rpath$rpath"
8027 test "$opt_mode" != relink && rpath="$compile_rpath$rpath"
72158028 for libdir in $rpath; do
72168029 if test -n "$hardcode_libdir_flag_spec"; then
72178030 if test -n "$hardcode_libdir_separator"; then
8031 func_replace_sysroot "$libdir"
8032 libdir=$func_replace_sysroot_result
72188033 if test -z "$hardcode_libdirs"; then
72198034 hardcode_libdirs="$libdir"
72208035 else
72238038 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
72248039 ;;
72258040 *)
7226 hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
8041 func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
72278042 ;;
72288043 esac
72298044 fi
72308045 else
72318046 eval flag=\"$hardcode_libdir_flag_spec\"
7232 dep_rpath="$dep_rpath $flag"
8047 func_append dep_rpath " $flag"
72338048 fi
72348049 elif test -n "$runpath_var"; then
72358050 case "$perm_rpath " in
72368051 *" $libdir "*) ;;
7237 *) perm_rpath="$perm_rpath $libdir" ;;
8052 *) func_apped perm_rpath " $libdir" ;;
72388053 esac
72398054 fi
72408055 done
72528067 # We should set the runpath_var.
72538068 rpath=
72548069 for dir in $perm_rpath; do
7255 rpath="$rpath$dir:"
8070 func_append rpath "$dir:"
72568071 done
72578072 eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
72588073 fi
72608075 fi
72618076
72628077 shlibpath="$finalize_shlibpath"
7263 test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
8078 test "$opt_mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
72648079 if test -n "$shlibpath"; then
72658080 eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
72668081 fi
72868101 linknames=
72878102 for link
72888103 do
7289 linknames="$linknames $link"
8104 func_append linknames " $link"
72908105 done
72918106
72928107 # Use standard objects if they are pic
72978112 if test -n "$export_symbols" && test -n "$include_expsyms"; then
72988113 $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
72998114 export_symbols="$output_objdir/$libname.uexp"
7300 delfiles="$delfiles $export_symbols"
8115 func_append delfiles " $export_symbols"
73018116 fi
73028117
73038118 orig_export_symbols=
73288143 $opt_dry_run || $RM $export_symbols
73298144 cmds=$export_symbols_cmds
73308145 save_ifs="$IFS"; IFS='~'
7331 for cmd in $cmds; do
8146 for cmd1 in $cmds; do
73328147 IFS="$save_ifs"
7333 eval cmd=\"$cmd\"
7334 func_len " $cmd"
7335 len=$func_len_result
7336 if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
8148 # Take the normal branch if the nm_file_list_spec branch
8149 # doesn't work or if tool conversion is not needed.
8150 case $nm_file_list_spec~$to_tool_file_cmd in
8151 *~func_convert_file_noop | *~func_convert_file_msys_to_w32 | ~*)
8152 try_normal_branch=yes
8153 eval cmd=\"$cmd1\"
8154 func_len " $cmd"
8155 len=$func_len_result
8156 ;;
8157 *)
8158 try_normal_branch=no
8159 ;;
8160 esac
8161 if test "$try_normal_branch" = yes \
8162 && { test "$len" -lt "$max_cmd_len" \
8163 || test "$max_cmd_len" -le -1; }
8164 then
73378165 func_show_eval "$cmd" 'exit $?'
8166 skipped_export=false
8167 elif test -n "$nm_file_list_spec"; then
8168 func_basename "$output"
8169 output_la=$func_basename_result
8170 save_libobjs=$libobjs
8171 save_output=$output
8172 output=${output_objdir}/${output_la}.nm
8173 func_to_tool_file "$output"
8174 libobjs=$nm_file_list_spec$func_to_tool_file_result
8175 func_append delfiles " $output"
8176 func_verbose "creating $NM input file list: $output"
8177 for obj in $save_libobjs; do
8178 func_to_tool_file "$obj"
8179 $ECHO "$func_to_tool_file_result"
8180 done > "$output"
8181 eval cmd=\"$cmd1\"
8182 func_show_eval "$cmd" 'exit $?'
8183 output=$save_output
8184 libobjs=$save_libobjs
73388185 skipped_export=false
73398186 else
73408187 # The command line is too long to execute in one step.
73688215 # global variables. join(1) would be nice here, but unfortunately
73698216 # isn't a blessed tool.
73708217 $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
7371 delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
8218 func_append delfiles " $export_symbols $output_objdir/$libname.filter"
73728219 export_symbols=$output_objdir/$libname.def
73738220 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
73748221 fi
73788225 case " $convenience " in
73798226 *" $test_deplib "*) ;;
73808227 *)
7381 tmp_deplibs="$tmp_deplibs $test_deplib"
8228 func_append tmp_deplibs " $test_deplib"
73828229 ;;
73838230 esac
73848231 done
73988245 test "X$libobjs" = "X " && libobjs=
73998246 else
74008247 gentop="$output_objdir/${outputname}x"
7401 generated="$generated $gentop"
8248 func_append generated " $gentop"
74028249
74038250 func_extract_archives $gentop $convenience
7404 libobjs="$libobjs $func_extract_archives_result"
8251 func_append libobjs " $func_extract_archives_result"
74058252 test "X$libobjs" = "X " && libobjs=
74068253 fi
74078254 fi
74088255
74098256 if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
74108257 eval flag=\"$thread_safe_flag_spec\"
7411 linker_flags="$linker_flags $flag"
8258 func_append linker_flags " $flag"
74128259 fi
74138260
74148261 # Make a backup of the uninstalled library when relinking
7415 if test "$mode" = relink; then
8262 if test "$opt_mode" = relink; then
74168263 $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
74178264 fi
74188265
74748321 echo 'INPUT (' > $output
74758322 for obj in $save_libobjs
74768323 do
7477 $ECHO "$obj" >> $output
8324 func_to_tool_file "$obj"
8325 $ECHO "$func_to_tool_file_result" >> $output
74788326 done
74798327 echo ')' >> $output
7480 delfiles="$delfiles $output"
8328 func_append delfiles " $output"
8329 func_to_tool_file "$output"
8330 output=$func_to_tool_file_result
74818331 elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
74828332 output=${output_objdir}/${output_la}.lnk
74838333 func_verbose "creating linker input file list: $output"
74918341 fi
74928342 for obj
74938343 do
7494 $ECHO "$obj" >> $output
8344 func_to_tool_file "$obj"
8345 $ECHO "$func_to_tool_file_result" >> $output
74958346 done
7496 delfiles="$delfiles $output"
7497 output=$firstobj\"$file_list_spec$output\"
8347 func_append delfiles " $output"
8348 func_to_tool_file "$output"
8349 output=$firstobj\"$file_list_spec$func_to_tool_file_result\"
74988350 else
74998351 if test -n "$save_libobjs"; then
75008352 func_verbose "creating reloadable object files..."
75458397 if test -n "$last_robj"; then
75468398 eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"
75478399 fi
7548 delfiles="$delfiles $output"
8400 func_append delfiles " $output"
75498401
75508402 else
75518403 output=
75798431 lt_exit=$?
75808432
75818433 # Restore the uninstalled library and exit
7582 if test "$mode" = relink; then
8434 if test "$opt_mode" = relink; then
75838435 ( cd "$output_objdir" && \
75848436 $RM "${realname}T" && \
75858437 $MV "${realname}U" "$realname" )
76128464 # global variables. join(1) would be nice here, but unfortunately
76138465 # isn't a blessed tool.
76148466 $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
7615 delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
8467 func_append delfiles " $export_symbols $output_objdir/$libname.filter"
76168468 export_symbols=$output_objdir/$libname.def
76178469 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
76188470 fi
76538505 # Add any objects from preloaded convenience libraries
76548506 if test -n "$dlprefiles"; then
76558507 gentop="$output_objdir/${outputname}x"
7656 generated="$generated $gentop"
8508 func_append generated " $gentop"
76578509
76588510 func_extract_archives $gentop $dlprefiles
7659 libobjs="$libobjs $func_extract_archives_result"
8511 func_append libobjs " $func_extract_archives_result"
76608512 test "X$libobjs" = "X " && libobjs=
76618513 fi
76628514
76728524 lt_exit=$?
76738525
76748526 # Restore the uninstalled library and exit
7675 if test "$mode" = relink; then
8527 if test "$opt_mode" = relink; then
76768528 ( cd "$output_objdir" && \
76778529 $RM "${realname}T" && \
76788530 $MV "${realname}U" "$realname" )
76848536 IFS="$save_ifs"
76858537
76868538 # Restore the uninstalled library and exit
7687 if test "$mode" = relink; then
8539 if test "$opt_mode" = relink; then
76888540 $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
76898541
76908542 if test -n "$convenience"; then
77688620 reload_conv_objs=$reload_objs\ `$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'`
77698621 else
77708622 gentop="$output_objdir/${obj}x"
7771 generated="$generated $gentop"
8623 func_append generated " $gentop"
77728624
77738625 func_extract_archives $gentop $convenience
77748626 reload_conv_objs="$reload_objs $func_extract_archives_result"
77758627 fi
77768628 fi
8629
8630 # If we're not building shared, we need to use non_pic_objs
8631 test "$build_libtool_libs" != yes && libobjs="$non_pic_objects"
77778632
77788633 # Create the old-style object.
77798634 reload_objs="$objs$old_deplibs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; /\.lib$/d; $lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
78488703 if test "$tagname" = CXX ; then
78498704 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
78508705 10.[0123])
7851 compile_command="$compile_command ${wl}-bind_at_load"
7852 finalize_command="$finalize_command ${wl}-bind_at_load"
8706 func_append compile_command " ${wl}-bind_at_load"
8707 func_append finalize_command " ${wl}-bind_at_load"
78538708 ;;
78548709 esac
78558710 fi
78698724 *)
78708725 case " $compile_deplibs " in
78718726 *" -L$path/$objdir "*)
7872 new_libs="$new_libs -L$path/$objdir" ;;
8727 func_append new_libs " -L$path/$objdir" ;;
78738728 esac
78748729 ;;
78758730 esac
78798734 -L*)
78808735 case " $new_libs " in
78818736 *" $deplib "*) ;;
7882 *) new_libs="$new_libs $deplib" ;;
8737 *) func_append new_libs " $deplib" ;;
78838738 esac
78848739 ;;
7885 *) new_libs="$new_libs $deplib" ;;
8740 *) func_append new_libs " $deplib" ;;
78868741 esac
78878742 done
78888743 compile_deplibs="$new_libs"
78898744
78908745
7891 compile_command="$compile_command $compile_deplibs"
7892 finalize_command="$finalize_command $finalize_deplibs"
8746 func_append compile_command " $compile_deplibs"
8747 func_append finalize_command " $finalize_deplibs"
78938748
78948749 if test -n "$rpath$xrpath"; then
78958750 # If the user specified any rpath flags, then add them.
78978752 # This is the magic to use -rpath.
78988753 case "$finalize_rpath " in
78998754 *" $libdir "*) ;;
7900 *) finalize_rpath="$finalize_rpath $libdir" ;;
8755 *) func_append finalize_rpath " $libdir" ;;
79018756 esac
79028757 done
79038758 fi
79168771 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
79178772 ;;
79188773 *)
7919 hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
8774 func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
79208775 ;;
79218776 esac
79228777 fi
79238778 else
79248779 eval flag=\"$hardcode_libdir_flag_spec\"
7925 rpath="$rpath $flag"
8780 func_append rpath " $flag"
79268781 fi
79278782 elif test -n "$runpath_var"; then
79288783 case "$perm_rpath " in
79298784 *" $libdir "*) ;;
7930 *) perm_rpath="$perm_rpath $libdir" ;;
8785 *) func_append perm_rpath " $libdir" ;;
79318786 esac
79328787 fi
79338788 case $host in
79368791 case :$dllsearchpath: in
79378792 *":$libdir:"*) ;;
79388793 ::) dllsearchpath=$libdir;;
7939 *) dllsearchpath="$dllsearchpath:$libdir";;
8794 *) func_append dllsearchpath ":$libdir";;
79408795 esac
79418796 case :$dllsearchpath: in
79428797 *":$testbindir:"*) ;;
79438798 ::) dllsearchpath=$testbindir;;
7944 *) dllsearchpath="$dllsearchpath:$testbindir";;
8799 *) func_append dllsearchpath ":$testbindir";;
79458800 esac
79468801 ;;
79478802 esac
79678822 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
79688823 ;;
79698824 *)
7970 hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
8825 func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
79718826 ;;
79728827 esac
79738828 fi
79748829 else
79758830 eval flag=\"$hardcode_libdir_flag_spec\"
7976 rpath="$rpath $flag"
8831 func_append rpath " $flag"
79778832 fi
79788833 elif test -n "$runpath_var"; then
79798834 case "$finalize_perm_rpath " in
79808835 *" $libdir "*) ;;
7981 *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
8836 *) func_append finalize_perm_rpath " $libdir" ;;
79828837 esac
79838838 fi
79848839 done
80298884 exit_status=0
80308885 func_show_eval "$link_command" 'exit_status=$?'
80318886
8887 if test -n "$postlink_cmds"; then
8888 func_to_tool_file "$output"
8889 postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'`
8890 func_execute_cmds "$postlink_cmds" 'exit $?'
8891 fi
8892
80328893 # Delete the generated files.
80338894 if test -f "$output_objdir/${outputname}S.${objext}"; then
80348895 func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"'
80518912 # We should set the runpath_var.
80528913 rpath=
80538914 for dir in $perm_rpath; do
8054 rpath="$rpath$dir:"
8915 func_append rpath "$dir:"
80558916 done
80568917 compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
80578918 fi
80598920 # We should set the runpath_var.
80608921 rpath=
80618922 for dir in $finalize_perm_rpath; do
8062 rpath="$rpath$dir:"
8923 func_append rpath "$dir:"
80638924 done
80648925 finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
80658926 fi
80748935 $opt_dry_run || $RM $output
80758936 # Link the executable and exit
80768937 func_show_eval "$link_command" 'exit $?'
8938
8939 if test -n "$postlink_cmds"; then
8940 func_to_tool_file "$output"
8941 postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'`
8942 func_execute_cmds "$postlink_cmds" 'exit $?'
8943 fi
8944
80778945 exit $EXIT_SUCCESS
80788946 fi
80798947
81068974 $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
81078975
81088976 func_show_eval "$link_command" 'exit $?'
8977
8978 if test -n "$postlink_cmds"; then
8979 func_to_tool_file "$output_objdir/$outputname"
8980 postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'`
8981 func_execute_cmds "$postlink_cmds" 'exit $?'
8982 fi
81098983
81108984 # Now create the wrapper script.
81118985 func_verbose "creating $output"
82049078 else
82059079 oldobjs="$old_deplibs $non_pic_objects"
82069080 if test "$preload" = yes && test -f "$symfileobj"; then
8207 oldobjs="$oldobjs $symfileobj"
9081 func_append oldobjs " $symfileobj"
82089082 fi
82099083 fi
82109084 addlibs="$old_convenience"
82129086
82139087 if test -n "$addlibs"; then
82149088 gentop="$output_objdir/${outputname}x"
8215 generated="$generated $gentop"
9089 func_append generated " $gentop"
82169090
82179091 func_extract_archives $gentop $addlibs
8218 oldobjs="$oldobjs $func_extract_archives_result"
9092 func_append oldobjs " $func_extract_archives_result"
82199093 fi
82209094
82219095 # Do each command in the archive commands.
82269100 # Add any objects from preloaded convenience libraries
82279101 if test -n "$dlprefiles"; then
82289102 gentop="$output_objdir/${outputname}x"
8229 generated="$generated $gentop"
9103 func_append generated " $gentop"
82309104
82319105 func_extract_archives $gentop $dlprefiles
8232 oldobjs="$oldobjs $func_extract_archives_result"
9106 func_append oldobjs " $func_extract_archives_result"
82339107 fi
82349108
82359109 # POSIX demands no paths to be encoded in archives. We have
82479121 else
82489122 echo "copying selected object files to avoid basename conflicts..."
82499123 gentop="$output_objdir/${outputname}x"
8250 generated="$generated $gentop"
9124 func_append generated " $gentop"
82519125 func_mkdir_p "$gentop"
82529126 save_oldobjs=$oldobjs
82539127 oldobjs=
82719145 esac
82729146 done
82739147 func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
8274 oldobjs="$oldobjs $gentop/$newobj"
9148 func_append oldobjs " $gentop/$newobj"
82759149 ;;
8276 *) oldobjs="$oldobjs $obj" ;;
9150 *) func_append oldobjs " $obj" ;;
82779151 esac
82789152 done
82799153 fi
82829156 func_len " $cmds"
82839157 len=$func_len_result
82849158 if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
9159 cmds=$old_archive_cmds
9160 elif test -n "$archiver_list_spec"; then
9161 func_verbose "using command file archive linking..."
9162 for obj in $oldobjs
9163 do
9164 func_to_tool_file "$obj"
9165 $ECHO "$func_to_tool_file_result"
9166 done > $output_objdir/$libname.libcmd
9167 func_to_tool_file "$output_objdir/$libname.libcmd"
9168 oldobjs=" $archiver_list_spec$func_to_tool_file_result"
82859169 cmds=$old_archive_cmds
82869170 else
82879171 # the command line is too long to link in one step, link in parts
83799263 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
83809264 test -z "$libdir" && \
83819265 func_fatal_error "\`$deplib' is not a valid libtool archive"
8382 newdependency_libs="$newdependency_libs $libdir/$name"
9266 func_append newdependency_libs " ${lt_sysroot:+=}$libdir/$name"
83839267 ;;
8384 *) newdependency_libs="$newdependency_libs $deplib" ;;
9268 -L*)
9269 func_stripname -L '' "$deplib"
9270 func_replace_sysroot "$func_stripname_result"
9271 func_append newdependency_libs " -L$func_replace_sysroot_result"
9272 ;;
9273 -R*)
9274 func_stripname -R '' "$deplib"
9275 func_replace_sysroot "$func_stripname_result"
9276 func_append newdependency_libs " -R$func_replace_sysroot_result"
9277 ;;
9278 *) func_append newdependency_libs " $deplib" ;;
83859279 esac
83869280 done
83879281 dependency_libs="$newdependency_libs"
83959289 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
83969290 test -z "$libdir" && \
83979291 func_fatal_error "\`$lib' is not a valid libtool archive"
8398 newdlfiles="$newdlfiles $libdir/$name"
9292 func_append newdlfiles " ${lt_sysroot:+=}$libdir/$name"
83999293 ;;
8400 *) newdlfiles="$newdlfiles $lib" ;;
9294 *) func_append newdlfiles " $lib" ;;
84019295 esac
84029296 done
84039297 dlfiles="$newdlfiles"
84149308 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
84159309 test -z "$libdir" && \
84169310 func_fatal_error "\`$lib' is not a valid libtool archive"
8417 newdlprefiles="$newdlprefiles $libdir/$name"
9311 func_append newdlprefiles " ${lt_sysroot:+=}$libdir/$name"
84189312 ;;
84199313 esac
84209314 done
84269320 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
84279321 *) abs=`pwd`"/$lib" ;;
84289322 esac
8429 newdlfiles="$newdlfiles $abs"
9323 func_append newdlfiles " $abs"
84309324 done
84319325 dlfiles="$newdlfiles"
84329326 newdlprefiles=
84359329 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
84369330 *) abs=`pwd`"/$lib" ;;
84379331 esac
8438 newdlprefiles="$newdlprefiles $abs"
9332 func_append newdlprefiles " $abs"
84399333 done
84409334 dlprefiles="$newdlprefiles"
84419335 fi
85209414 exit $EXIT_SUCCESS
85219415 }
85229416
8523 { test "$mode" = link || test "$mode" = relink; } &&
9417 { test "$opt_mode" = link || test "$opt_mode" = relink; } &&
85249418 func_mode_link ${1+"$@"}
85259419
85269420
85409434 for arg
85419435 do
85429436 case $arg in
8543 -f) RM="$RM $arg"; rmforce=yes ;;
8544 -*) RM="$RM $arg" ;;
8545 *) files="$files $arg" ;;
9437 -f) func_append RM " $arg"; rmforce=yes ;;
9438 -*) func_append RM " $arg" ;;
9439 *) func_append files " $arg" ;;
85469440 esac
85479441 done
85489442
85519445
85529446 rmdirs=
85539447
8554 origobjdir="$objdir"
85559448 for file in $files; do
85569449 func_dirname "$file" "" "."
85579450 dir="$func_dirname_result"
85589451 if test "X$dir" = X.; then
8559 objdir="$origobjdir"
9452 odir="$objdir"
85609453 else
8561 objdir="$dir/$origobjdir"
9454 odir="$dir/$objdir"
85629455 fi
85639456 func_basename "$file"
85649457 name="$func_basename_result"
8565 test "$mode" = uninstall && objdir="$dir"
8566
8567 # Remember objdir for removal later, being careful to avoid duplicates
8568 if test "$mode" = clean; then
9458 test "$opt_mode" = uninstall && odir="$dir"
9459
9460 # Remember odir for removal later, being careful to avoid duplicates
9461 if test "$opt_mode" = clean; then
85699462 case " $rmdirs " in
8570 *" $objdir "*) ;;
8571 *) rmdirs="$rmdirs $objdir" ;;
9463 *" $odir "*) ;;
9464 *) func_append rmdirs " $odir" ;;
85729465 esac
85739466 fi
85749467
85949487
85959488 # Delete the libtool libraries and symlinks.
85969489 for n in $library_names; do
8597 rmfiles="$rmfiles $objdir/$n"
9490 func_append rmfiles " $odir/$n"
85989491 done
8599 test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
8600
8601 case "$mode" in
9492 test -n "$old_library" && func_append rmfiles " $odir/$old_library"
9493
9494 case "$opt_mode" in
86029495 clean)
8603 case " $library_names " in
8604 # " " in the beginning catches empty $dlname
9496 case " $library_names " in
86059497 *" $dlname "*) ;;
8606 *) rmfiles="$rmfiles $objdir/$dlname" ;;
9498 *) test -n "$dlname" && func_append rmfiles " $odir/$dlname" ;;
86079499 esac
8608 test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
9500 test -n "$libdir" && func_append rmfiles " $odir/$name $odir/${name}i"
86099501 ;;
86109502 uninstall)
86119503 if test -n "$library_names"; then
86339525 # Add PIC object to the list of files to remove.
86349526 if test -n "$pic_object" &&
86359527 test "$pic_object" != none; then
8636 rmfiles="$rmfiles $dir/$pic_object"
9528 func_append rmfiles " $dir/$pic_object"
86379529 fi
86389530
86399531 # Add non-PIC object to the list of files to remove.
86409532 if test -n "$non_pic_object" &&
86419533 test "$non_pic_object" != none; then
8642 rmfiles="$rmfiles $dir/$non_pic_object"
9534 func_append rmfiles " $dir/$non_pic_object"
86439535 fi
86449536 fi
86459537 ;;
86469538
86479539 *)
8648 if test "$mode" = clean ; then
9540 if test "$opt_mode" = clean ; then
86499541 noexename=$name
86509542 case $file in
86519543 *.exe)
86559547 noexename=$func_stripname_result
86569548 # $file with .exe has already been added to rmfiles,
86579549 # add $file without .exe
8658 rmfiles="$rmfiles $file"
9550 func_append rmfiles " $file"
86599551 ;;
86609552 esac
86619553 # Do a test to see if this is a libtool program.
86649556 func_ltwrapper_scriptname "$file"
86659557 relink_command=
86669558 func_source $func_ltwrapper_scriptname_result
8667 rmfiles="$rmfiles $func_ltwrapper_scriptname_result"
9559 func_append rmfiles " $func_ltwrapper_scriptname_result"
86689560 else
86699561 relink_command=
86709562 func_source $dir/$noexename
86729564
86739565 # note $name still contains .exe if it was in $file originally
86749566 # as does the version of $file that was added into $rmfiles
8675 rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}"
9567 func_append rmfiles " $odir/$name $odir/${name}S.${objext}"
86769568 if test "$fast_install" = yes && test -n "$relink_command"; then
8677 rmfiles="$rmfiles $objdir/lt-$name"
9569 func_append rmfiles " $odir/lt-$name"
86789570 fi
86799571 if test "X$noexename" != "X$name" ; then
8680 rmfiles="$rmfiles $objdir/lt-${noexename}.c"
9572 func_append rmfiles " $odir/lt-${noexename}.c"
86819573 fi
86829574 fi
86839575 fi
86859577 esac
86869578 func_show_eval "$RM $rmfiles" 'exit_status=1'
86879579 done
8688 objdir="$origobjdir"
86899580
86909581 # Try to remove the ${objdir}s in the directories where we deleted files
86919582 for dir in $rmdirs; do
86979588 exit $exit_status
86989589 }
86999590
8700 { test "$mode" = uninstall || test "$mode" = clean; } &&
9591 { test "$opt_mode" = uninstall || test "$opt_mode" = clean; } &&
87019592 func_mode_uninstall ${1+"$@"}
87029593
8703 test -z "$mode" && {
9594 test -z "$opt_mode" && {
87049595 help="$generic_help"
87059596 func_fatal_help "you must specify a MODE"
87069597 }
87079598
87089599 test -z "$exec_cmd" && \
8709 func_fatal_help "invalid operation mode \`$mode'"
9600 func_fatal_help "invalid operation mode \`$opt_mode'"
87109601
87119602 if test -n "$exec_cmd"; then
87129603 eval exec "$exec_cmd"
44 src/main.c
55 src/polkitgnomeauthenticationdialog.c
66 src/polkitgnomeauthenticator.c
7 src/polkitgnomelistener.c
155155 DEFS = @DEFS@
156156 DEPDIR = @DEPDIR@
157157 DISABLE_DEPRECATED = @DISABLE_DEPRECATED@
158 DLLTOOL = @DLLTOOL@
158159 DSYMUTIL = @DSYMUTIL@
159160 DUMPBIN = @DUMPBIN@
160161 ECHO_C = @ECHO_C@
205206 LT_REVISION = @LT_REVISION@
206207 MAINT = @MAINT@
207208 MAKEINFO = @MAKEINFO@
209 MANIFEST_TOOL = @MANIFEST_TOOL@
208210 MKDIR_P = @MKDIR_P@
209211 MKINSTALLDIRS = @MKINSTALLDIRS@
210212 MSGFMT = @MSGFMT@
248250 abs_srcdir = @abs_srcdir@
249251 abs_top_builddir = @abs_top_builddir@
250252 abs_top_srcdir = @abs_top_srcdir@
253 ac_ct_AR = @ac_ct_AR@
251254 ac_ct_CC = @ac_ct_CC@
252255 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
253256 am__include = @am__include@
0
1 NULL =
02
13 FULL_LIBEXECDIR=$(libexecdir)
24
35 libexec_PROGRAMS = polkit-gnome-authentication-agent-1
6
7 polkitgnomemarshal.h polkitgnomemarshal.c : Makefile.am $(srcdir)/polkitgnomemarshal.list
8 glib-genmarshal --prefix=_polkit_gnome_marshal $(srcdir)/polkitgnomemarshal.list --header > polkitgnomemarshal.h.tmp && mv polkitgnomemarshal.h.tmp polkitgnomemarshal.h
9 (echo "#include \"polkitgnomemarshal.h\""; glib-genmarshal --prefix=_polkit_gnome_marshal $(srcdir)/polkitgnomemarshal.list --body) > polkitgnomemarshal.c.tmp && mv polkitgnomemarshal.c.tmp polkitgnomemarshal.c
10 touch polkitgnomemarshal.stamp
11
12 BUILT_SOURCES = polkitgnomemarshal.h polkitgnomemarshal.c
413
514 polkit_gnome_authentication_agent_1_SOURCES = \
615 polkitgnomelistener.h polkitgnomelistener.c \
716 polkitgnomeauthenticator.h polkitgnomeauthenticator.c \
817 polkitgnomeauthenticationdialog.h polkitgnomeauthenticationdialog.c \
918 main.c \
10 $(BUILT_SOURCES)
19 $(BUILT_SOURCES) \
20 $(NULL)
1121
1222 polkit_gnome_authentication_agent_1_CPPFLAGS = \
1323 -I$(top_srcdir) \
3646 $(POLKIT_GOBJECT_LIBS) \
3747 $(INTLLIBS)
3848
39 EXTRA_DIST =
49 EXTRA_DIST = polkitgnomemarshal.list
4050
4151 clean-local :
4252 rm -f *~
4646 CONFIG_CLEAN_VPATH_FILES =
4747 am__installdirs = "$(DESTDIR)$(libexecdir)"
4848 PROGRAMS = $(libexec_PROGRAMS)
49 am__objects_1 = polkit_gnome_authentication_agent_1-polkitgnomemarshal.$(OBJEXT)
50 am__objects_2 =
4951 am_polkit_gnome_authentication_agent_1_OBJECTS = polkit_gnome_authentication_agent_1-polkitgnomelistener.$(OBJEXT) \
5052 polkit_gnome_authentication_agent_1-polkitgnomeauthenticator.$(OBJEXT) \
5153 polkit_gnome_authentication_agent_1-polkitgnomeauthenticationdialog.$(OBJEXT) \
52 polkit_gnome_authentication_agent_1-main.$(OBJEXT)
54 polkit_gnome_authentication_agent_1-main.$(OBJEXT) \
55 $(am__objects_1) $(am__objects_2)
5356 polkit_gnome_authentication_agent_1_OBJECTS = \
5457 $(am_polkit_gnome_authentication_agent_1_OBJECTS)
5558 am__DEPENDENCIES_1 =
121124 DEFS = @DEFS@
122125 DEPDIR = @DEPDIR@
123126 DISABLE_DEPRECATED = @DISABLE_DEPRECATED@
127 DLLTOOL = @DLLTOOL@
124128 DSYMUTIL = @DSYMUTIL@
125129 DUMPBIN = @DUMPBIN@
126130 ECHO_C = @ECHO_C@
171175 LT_REVISION = @LT_REVISION@
172176 MAINT = @MAINT@
173177 MAKEINFO = @MAKEINFO@
178 MANIFEST_TOOL = @MANIFEST_TOOL@
174179 MKDIR_P = @MKDIR_P@
175180 MKINSTALLDIRS = @MKINSTALLDIRS@
176181 MSGFMT = @MSGFMT@
214219 abs_srcdir = @abs_srcdir@
215220 abs_top_builddir = @abs_top_builddir@
216221 abs_top_srcdir = @abs_top_srcdir@
222 ac_ct_AR = @ac_ct_AR@
217223 ac_ct_CC = @ac_ct_CC@
218224 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
219225 am__include = @am__include@
261267 top_build_prefix = @top_build_prefix@
262268 top_builddir = @top_builddir@
263269 top_srcdir = @top_srcdir@
270 NULL =
264271 FULL_LIBEXECDIR = $(libexecdir)
272 BUILT_SOURCES = polkitgnomemarshal.h polkitgnomemarshal.c
265273 polkit_gnome_authentication_agent_1_SOURCES = \
266274 polkitgnomelistener.h polkitgnomelistener.c \
267275 polkitgnomeauthenticator.h polkitgnomeauthenticator.c \
268276 polkitgnomeauthenticationdialog.h polkitgnomeauthenticationdialog.c \
269277 main.c \
270 $(BUILT_SOURCES)
278 $(BUILT_SOURCES) \
279 $(NULL)
271280
272281 polkit_gnome_authentication_agent_1_CPPFLAGS = \
273282 -I$(top_srcdir) \
296305 $(POLKIT_GOBJECT_LIBS) \
297306 $(INTLLIBS)
298307
299 EXTRA_DIST =
300 all: all-am
308 EXTRA_DIST = polkitgnomemarshal.list
309 all: $(BUILT_SOURCES)
310 $(MAKE) $(AM_MAKEFLAGS) all-am
301311
302312 .SUFFIXES:
303313 .SUFFIXES: .c .lo .o .obj
388398 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/polkit_gnome_authentication_agent_1-polkitgnomeauthenticationdialog.Po@am__quote@
389399 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/polkit_gnome_authentication_agent_1-polkitgnomeauthenticator.Po@am__quote@
390400 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/polkit_gnome_authentication_agent_1-polkitgnomelistener.Po@am__quote@
401 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/polkit_gnome_authentication_agent_1-polkitgnomemarshal.Po@am__quote@
391402
392403 .c.o:
393404 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
476487 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='main.c' object='polkit_gnome_authentication_agent_1-main.obj' libtool=no @AMDEPBACKSLASH@
477488 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
478489 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(polkit_gnome_authentication_agent_1_CPPFLAGS) $(CPPFLAGS) $(polkit_gnome_authentication_agent_1_CFLAGS) $(CFLAGS) -c -o polkit_gnome_authentication_agent_1-main.obj `if test -f 'main.c'; then $(CYGPATH_W) 'main.c'; else $(CYGPATH_W) '$(srcdir)/main.c'; fi`
490
491 polkit_gnome_authentication_agent_1-polkitgnomemarshal.o: polkitgnomemarshal.c
492 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(polkit_gnome_authentication_agent_1_CPPFLAGS) $(CPPFLAGS) $(polkit_gnome_authentication_agent_1_CFLAGS) $(CFLAGS) -MT polkit_gnome_authentication_agent_1-polkitgnomemarshal.o -MD -MP -MF $(DEPDIR)/polkit_gnome_authentication_agent_1-polkitgnomemarshal.Tpo -c -o polkit_gnome_authentication_agent_1-polkitgnomemarshal.o `test -f 'polkitgnomemarshal.c' || echo '$(srcdir)/'`polkitgnomemarshal.c
493 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/polkit_gnome_authentication_agent_1-polkitgnomemarshal.Tpo $(DEPDIR)/polkit_gnome_authentication_agent_1-polkitgnomemarshal.Po
494 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
495 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='polkitgnomemarshal.c' object='polkit_gnome_authentication_agent_1-polkitgnomemarshal.o' libtool=no @AMDEPBACKSLASH@
496 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
497 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(polkit_gnome_authentication_agent_1_CPPFLAGS) $(CPPFLAGS) $(polkit_gnome_authentication_agent_1_CFLAGS) $(CFLAGS) -c -o polkit_gnome_authentication_agent_1-polkitgnomemarshal.o `test -f 'polkitgnomemarshal.c' || echo '$(srcdir)/'`polkitgnomemarshal.c
498
499 polkit_gnome_authentication_agent_1-polkitgnomemarshal.obj: polkitgnomemarshal.c
500 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(polkit_gnome_authentication_agent_1_CPPFLAGS) $(CPPFLAGS) $(polkit_gnome_authentication_agent_1_CFLAGS) $(CFLAGS) -MT polkit_gnome_authentication_agent_1-polkitgnomemarshal.obj -MD -MP -MF $(DEPDIR)/polkit_gnome_authentication_agent_1-polkitgnomemarshal.Tpo -c -o polkit_gnome_authentication_agent_1-polkitgnomemarshal.obj `if test -f 'polkitgnomemarshal.c'; then $(CYGPATH_W) 'polkitgnomemarshal.c'; else $(CYGPATH_W) '$(srcdir)/polkitgnomemarshal.c'; fi`
501 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/polkit_gnome_authentication_agent_1-polkitgnomemarshal.Tpo $(DEPDIR)/polkit_gnome_authentication_agent_1-polkitgnomemarshal.Po
502 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
503 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='polkitgnomemarshal.c' object='polkit_gnome_authentication_agent_1-polkitgnomemarshal.obj' libtool=no @AMDEPBACKSLASH@
504 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
505 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(polkit_gnome_authentication_agent_1_CPPFLAGS) $(CPPFLAGS) $(polkit_gnome_authentication_agent_1_CFLAGS) $(CFLAGS) -c -o polkit_gnome_authentication_agent_1-polkitgnomemarshal.obj `if test -f 'polkitgnomemarshal.c'; then $(CYGPATH_W) 'polkitgnomemarshal.c'; else $(CYGPATH_W) '$(srcdir)/polkitgnomemarshal.c'; fi`
479506
480507 mostlyclean-libtool:
481508 -rm -f *.lo
566593 fi; \
567594 done
568595 check-am: all-am
569 check: check-am
596 check: $(BUILT_SOURCES)
597 $(MAKE) $(AM_MAKEFLAGS) check-am
570598 all-am: Makefile $(PROGRAMS)
571599 installdirs:
572600 for dir in "$(DESTDIR)$(libexecdir)"; do \
573601 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
574602 done
575 install: install-am
603 install: $(BUILT_SOURCES)
604 $(MAKE) $(AM_MAKEFLAGS) install-am
576605 install-exec: install-exec-am
577606 install-data: install-data-am
578607 uninstall: uninstall-am
597626 maintainer-clean-generic:
598627 @echo "This command is intended for maintainers to use"
599628 @echo "it deletes files that may require special tools to rebuild."
629 -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
600630 clean: clean-am
601631
602632 clean-am: clean-generic clean-libexecPROGRAMS clean-libtool \
668698
669699 uninstall-am: uninstall-libexecPROGRAMS
670700
671 .MAKE: install-am install-strip
701 .MAKE: all check install install-am install-strip
672702
673703 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
674704 clean-libexecPROGRAMS clean-libtool clean-local ctags \
686716 uninstall-libexecPROGRAMS
687717
688718
719 polkitgnomemarshal.h polkitgnomemarshal.c : Makefile.am $(srcdir)/polkitgnomemarshal.list
720 glib-genmarshal --prefix=_polkit_gnome_marshal $(srcdir)/polkitgnomemarshal.list --header > polkitgnomemarshal.h.tmp && mv polkitgnomemarshal.h.tmp polkitgnomemarshal.h
721 (echo "#include \"polkitgnomemarshal.h\""; glib-genmarshal --prefix=_polkit_gnome_marshal $(srcdir)/polkitgnomemarshal.list --body) > polkitgnomemarshal.c.tmp && mv polkitgnomemarshal.c.tmp polkitgnomemarshal.c
722 touch polkitgnomemarshal.stamp
723
689724 clean-local :
690725 rm -f *~
691726
3434
3535 /* the session we are servicing */
3636 static PolkitSubject *session = NULL;
37
38 static GDBusConnection *session_bus_connection = NULL;
3739
3840 int
3941 main (int argc, char **argv)
8183 }
8284
8385 error = NULL;
84 if (!polkit_agent_register_listener (listener,
86 if (!polkit_agent_listener_register (listener,
87 POLKIT_AGENT_REGISTER_FLAGS_NONE,
8588 session,
8689 "/org/gnome/PolicyKit1/AuthenticationAgent",
90 NULL, /* GCancellable */
8791 &error))
8892 {
8993 g_printerr ("Cannot register authentication agent: %s\n", error->message);
9094 g_error_free (error);
9195 goto out;
9296 }
97
98 /* Poor mans session management - connect to the session bus
99 * so we get killed when it goes away
100 */
101 session_bus_connection = g_bus_get_sync (G_BUS_TYPE_SESSION, NULL, NULL);
93102
94103 g_main_loop_run (loop);
95104
269269 GdkPixbuf *vendor_pixbuf;
270270 GtkWidget *image;
271271
272 image = NULL;
272273 pixbuf = NULL;
273274 copy_pixbuf = NULL;
274275 vendor_pixbuf = NULL;
298299 0,
299300 NULL);
300301 if (pixbuf == NULL)
301 goto out;
302 {
303 g_warning ("Unable to get a pixbuf for GTK_STOCK_DIALOG_AUTHENTICATION (%s) at size 48",
304 GTK_STOCK_DIALOG_AUTHENTICATION);
305 image = gtk_image_new_from_pixbuf (vendor_pixbuf);
306 goto out;
307 }
302308
303309 /* need to copy the pixbuf since we're modifying it */
304310 copy_pixbuf = gdk_pixbuf_copy (pixbuf);
3131
3232 #include "polkitgnomeauthenticator.h"
3333 #include "polkitgnomeauthenticationdialog.h"
34 #include "polkitgnomemarshal.h"
3435
3536 struct _PolkitGnomeAuthenticator
3637 {
125126 * PolkitGnomeAuthenticator::completed:
126127 * @authenticator: A #PolkitGnomeAuthenticator.
127128 * @gained_authorization: Whether the authorization was gained.
129 * @dismissed: Whether the dialog was dismissed.
128130 *
129131 * Emitted when the authentication is completed. The user is supposed to dispose of @authenticator
130132 * upon receiving this signal.
135137 0, /* class offset */
136138 NULL, /* accumulator */
137139 NULL, /* accumulator data */
138 g_cclosure_marshal_VOID__BOOLEAN,
140 _polkit_gnome_marshal_VOID__BOOLEAN_BOOLEAN,
139141 G_TYPE_NONE,
140 1,
142 2,
143 G_TYPE_BOOLEAN,
141144 G_TYPE_BOOLEAN);
142145 }
143146
470473 }
471474
472475 out:
473 g_signal_emit_by_name (authenticator, "completed", authenticator->gained_authorization);
476 g_signal_emit_by_name (authenticator,
477 "completed",
478 authenticator->gained_authorization,
479 authenticator->was_cancelled);
474480
475481 g_object_unref (authenticator);
476482
2222 #include "config.h"
2323
2424 #include <string.h>
25 #include <glib/gi18n.h>
2526
2627 #include "polkitgnomelistener.h"
2728 #include "polkitgnomeauthenticator.h"
6667 static void
6768 polkit_gnome_listener_finalize (GObject *object)
6869 {
69 PolkitGnomeListener *listener;
70
71 listener = POLKIT_GNOME_LISTENER (object);
72
7370 if (G_OBJECT_CLASS (polkit_gnome_listener_parent_class)->finalize != NULL)
7471 G_OBJECT_CLASS (polkit_gnome_listener_parent_class)->finalize (object);
7572 }
147144 static void
148145 authenticator_completed (PolkitGnomeAuthenticator *authenticator,
149146 gboolean gained_authorization,
147 gboolean dismissed,
150148 gpointer user_data)
151149 {
152150 AuthData *data = user_data;
157155
158156 g_object_unref (authenticator);
159157
158 if (dismissed)
159 {
160 g_simple_async_result_set_error (data->simple,
161 POLKIT_ERROR,
162 POLKIT_ERROR_CANCELLED,
163 _("Authentation dialog was dismissed by the user"));
164 }
160165 g_simple_async_result_complete (data->simple);
161166 g_object_unref (data->simple);
162167
0 #include "polkitgnomemarshal.h"
1
2 #include <glib-object.h>
3
4
5 #ifdef G_ENABLE_DEBUG
6 #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v)
7 #define g_marshal_value_peek_char(v) g_value_get_char (v)
8 #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v)
9 #define g_marshal_value_peek_int(v) g_value_get_int (v)
10 #define g_marshal_value_peek_uint(v) g_value_get_uint (v)
11 #define g_marshal_value_peek_long(v) g_value_get_long (v)
12 #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v)
13 #define g_marshal_value_peek_int64(v) g_value_get_int64 (v)
14 #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v)
15 #define g_marshal_value_peek_enum(v) g_value_get_enum (v)
16 #define g_marshal_value_peek_flags(v) g_value_get_flags (v)
17 #define g_marshal_value_peek_float(v) g_value_get_float (v)
18 #define g_marshal_value_peek_double(v) g_value_get_double (v)
19 #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v)
20 #define g_marshal_value_peek_param(v) g_value_get_param (v)
21 #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v)
22 #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v)
23 #define g_marshal_value_peek_object(v) g_value_get_object (v)
24 #define g_marshal_value_peek_variant(v) g_value_get_variant (v)
25 #else /* !G_ENABLE_DEBUG */
26 /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API.
27 * Do not access GValues directly in your code. Instead, use the
28 * g_value_get_*() functions
29 */
30 #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int
31 #define g_marshal_value_peek_char(v) (v)->data[0].v_int
32 #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint
33 #define g_marshal_value_peek_int(v) (v)->data[0].v_int
34 #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint
35 #define g_marshal_value_peek_long(v) (v)->data[0].v_long
36 #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong
37 #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64
38 #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64
39 #define g_marshal_value_peek_enum(v) (v)->data[0].v_long
40 #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong
41 #define g_marshal_value_peek_float(v) (v)->data[0].v_float
42 #define g_marshal_value_peek_double(v) (v)->data[0].v_double
43 #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer
44 #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer
45 #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer
46 #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer
47 #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer
48 #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer
49 #endif /* !G_ENABLE_DEBUG */
50
51
52 /* VOID:BOOLEAN,BOOLEAN (./polkitgnomemarshal.list:1) */
53 void
54 _polkit_gnome_marshal_VOID__BOOLEAN_BOOLEAN (GClosure *closure,
55 GValue *return_value G_GNUC_UNUSED,
56 guint n_param_values,
57 const GValue *param_values,
58 gpointer invocation_hint G_GNUC_UNUSED,
59 gpointer marshal_data)
60 {
61 typedef void (*GMarshalFunc_VOID__BOOLEAN_BOOLEAN) (gpointer data1,
62 gboolean arg_1,
63 gboolean arg_2,
64 gpointer data2);
65 register GMarshalFunc_VOID__BOOLEAN_BOOLEAN callback;
66 register GCClosure *cc = (GCClosure*) closure;
67 register gpointer data1, data2;
68
69 g_return_if_fail (n_param_values == 3);
70
71 if (G_CCLOSURE_SWAP_DATA (closure))
72 {
73 data1 = closure->data;
74 data2 = g_value_peek_pointer (param_values + 0);
75 }
76 else
77 {
78 data1 = g_value_peek_pointer (param_values + 0);
79 data2 = closure->data;
80 }
81 callback = (GMarshalFunc_VOID__BOOLEAN_BOOLEAN) (marshal_data ? marshal_data : cc->callback);
82
83 callback (data1,
84 g_marshal_value_peek_boolean (param_values + 1),
85 g_marshal_value_peek_boolean (param_values + 2),
86 data2);
87 }
88
0
1 #ifndef ___polkit_gnome_marshal_MARSHAL_H__
2 #define ___polkit_gnome_marshal_MARSHAL_H__
3
4 #include <glib-object.h>
5
6 G_BEGIN_DECLS
7
8 /* VOID:BOOLEAN,BOOLEAN (./polkitgnomemarshal.list:1) */
9 extern void _polkit_gnome_marshal_VOID__BOOLEAN_BOOLEAN (GClosure *closure,
10 GValue *return_value,
11 guint n_param_values,
12 const GValue *param_values,
13 gpointer invocation_hint,
14 gpointer marshal_data);
15
16 G_END_DECLS
17
18 #endif /* ___polkit_gnome_marshal_MARSHAL_H__ */
19
0 VOID:BOOLEAN,BOOLEAN