Gentoo Archives: gentoo-commits

From: "Fabian Groffen (grobian)" <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-alt r1693 - in trunk/baselayout-prefix: . gnulib gnulib/build-aux gnulib/gllib gnulib/glm4
Date: Thu, 31 Mar 2011 16:44:25
Message-Id: 20110331164347.9634920054@flycatcher.gentoo.org
1 Author: grobian
2 Date: 2011-03-31 16:43:45 +0000 (Thu, 31 Mar 2011)
3 New Revision: 1693
4
5 Added:
6 trunk/baselayout-prefix/gnulib/
7 trunk/baselayout-prefix/gnulib/Makefile.am
8 trunk/baselayout-prefix/gnulib/Makefile.in
9 trunk/baselayout-prefix/gnulib/aclocal.m4
10 trunk/baselayout-prefix/gnulib/build-aux/
11 trunk/baselayout-prefix/gnulib/build-aux/config.guess
12 trunk/baselayout-prefix/gnulib/build-aux/config.sub
13 trunk/baselayout-prefix/gnulib/build-aux/depcomp
14 trunk/baselayout-prefix/gnulib/build-aux/install-sh
15 trunk/baselayout-prefix/gnulib/build-aux/link-warning.h
16 trunk/baselayout-prefix/gnulib/build-aux/missing
17 trunk/baselayout-prefix/gnulib/config.h.in
18 trunk/baselayout-prefix/gnulib/configure
19 trunk/baselayout-prefix/gnulib/configure.ac
20 trunk/baselayout-prefix/gnulib/gllib/
21 trunk/baselayout-prefix/gnulib/gllib/Makefile.am
22 trunk/baselayout-prefix/gnulib/gllib/Makefile.in
23 trunk/baselayout-prefix/gnulib/gllib/dummy.c
24 trunk/baselayout-prefix/gnulib/gllib/getopt.c
25 trunk/baselayout-prefix/gnulib/gllib/getopt.in.h
26 trunk/baselayout-prefix/gnulib/gllib/getopt1.c
27 trunk/baselayout-prefix/gnulib/gllib/getopt_int.h
28 trunk/baselayout-prefix/gnulib/gllib/gettext.h
29 trunk/baselayout-prefix/gnulib/gllib/string.in.h
30 trunk/baselayout-prefix/gnulib/gllib/strndup.c
31 trunk/baselayout-prefix/gnulib/gllib/strnlen.c
32 trunk/baselayout-prefix/gnulib/gllib/strsep.c
33 trunk/baselayout-prefix/gnulib/gllib/unistd.in.h
34 trunk/baselayout-prefix/gnulib/glm4/
35 trunk/baselayout-prefix/gnulib/glm4/00gnulib.m4
36 trunk/baselayout-prefix/gnulib/glm4/Makefile.am
37 trunk/baselayout-prefix/gnulib/glm4/Makefile.in
38 trunk/baselayout-prefix/gnulib/glm4/extensions.m4
39 trunk/baselayout-prefix/gnulib/glm4/getopt.m4
40 trunk/baselayout-prefix/gnulib/glm4/gnulib-common.m4
41 trunk/baselayout-prefix/gnulib/glm4/include_next.m4
42 trunk/baselayout-prefix/gnulib/glm4/onceonly.m4
43 trunk/baselayout-prefix/gnulib/glm4/string_h.m4
44 trunk/baselayout-prefix/gnulib/glm4/strndup.m4
45 trunk/baselayout-prefix/gnulib/glm4/strnlen.m4
46 trunk/baselayout-prefix/gnulib/glm4/strsep.m4
47 trunk/baselayout-prefix/gnulib/glm4/unistd_h.m4
48 Log:
49 add contents of baselayout-1.12.5-gnulib-2.tar.bz2
50
51 Added: trunk/baselayout-prefix/gnulib/Makefile.am
52 ===================================================================
53 --- trunk/baselayout-prefix/gnulib/Makefile.am (rev 0)
54 +++ trunk/baselayout-prefix/gnulib/Makefile.am 2011-03-31 16:43:45 UTC (rev 1693)
55 @@ -0,0 +1,7 @@
56 +## Process this file with automake to produce Makefile.in.
57 +
58 +AUTOMAKE_OPTIONS = 1.5 foreign
59 +
60 +SUBDIRS = gllib glm4
61 +
62 +ACLOCAL_AMFLAGS = -I glm4
63
64 Added: trunk/baselayout-prefix/gnulib/Makefile.in
65 ===================================================================
66 --- trunk/baselayout-prefix/gnulib/Makefile.in (rev 0)
67 +++ trunk/baselayout-prefix/gnulib/Makefile.in 2011-03-31 16:43:45 UTC (rev 1693)
68 @@ -0,0 +1,812 @@
69 +# Makefile.in generated by automake 1.11.1 from Makefile.am.
70 +# @configure_input@
71 +
72 +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
73 +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
74 +# Inc.
75 +# This Makefile.in is free software; the Free Software Foundation
76 +# gives unlimited permission to copy and/or distribute it,
77 +# with or without modifications, as long as this notice is preserved.
78 +
79 +# This program is distributed in the hope that it will be useful,
80 +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
81 +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
82 +# PARTICULAR PURPOSE.
83 +
84 +@SET_MAKE@
85 +VPATH = @srcdir@
86 +pkgdatadir = $(datadir)/@PACKAGE@
87 +pkgincludedir = $(includedir)/@PACKAGE@
88 +pkglibdir = $(libdir)/@PACKAGE@
89 +pkglibexecdir = $(libexecdir)/@PACKAGE@
90 +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
91 +install_sh_DATA = $(install_sh) -c -m 644
92 +install_sh_PROGRAM = $(install_sh) -c
93 +install_sh_SCRIPT = $(install_sh) -c
94 +INSTALL_HEADER = $(INSTALL_DATA)
95 +transform = $(program_transform_name)
96 +NORMAL_INSTALL = :
97 +PRE_INSTALL = :
98 +POST_INSTALL = :
99 +NORMAL_UNINSTALL = :
100 +PRE_UNINSTALL = :
101 +POST_UNINSTALL = :
102 +build_triplet = @build@
103 +host_triplet = @host@
104 +subdir = .
105 +DIST_COMMON = $(am__configure_deps) $(srcdir)/Makefile.am \
106 + $(srcdir)/Makefile.in $(srcdir)/config.h.in \
107 + $(top_srcdir)/configure build-aux/config.guess \
108 + build-aux/config.sub build-aux/depcomp build-aux/install-sh \
109 + build-aux/missing
110 +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
111 +am__aclocal_m4_deps = $(top_srcdir)/glm4/00gnulib.m4 \
112 + $(top_srcdir)/glm4/extensions.m4 $(top_srcdir)/glm4/getopt.m4 \
113 + $(top_srcdir)/glm4/gnulib-common.m4 \
114 + $(top_srcdir)/glm4/include_next.m4 \
115 + $(top_srcdir)/glm4/onceonly.m4 $(top_srcdir)/glm4/string_h.m4 \
116 + $(top_srcdir)/glm4/strndup.m4 $(top_srcdir)/glm4/strnlen.m4 \
117 + $(top_srcdir)/glm4/strsep.m4 $(top_srcdir)/glm4/unistd_h.m4 \
118 + $(top_srcdir)/configure.ac
119 +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
120 + $(ACLOCAL_M4)
121 +am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
122 + configure.lineno config.status.lineno
123 +mkinstalldirs = $(install_sh) -d
124 +CONFIG_HEADER = config.h
125 +CONFIG_CLEAN_FILES =
126 +CONFIG_CLEAN_VPATH_FILES =
127 +SOURCES =
128 +DIST_SOURCES =
129 +RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
130 + html-recursive info-recursive install-data-recursive \
131 + install-dvi-recursive install-exec-recursive \
132 + install-html-recursive install-info-recursive \
133 + install-pdf-recursive install-ps-recursive install-recursive \
134 + installcheck-recursive installdirs-recursive pdf-recursive \
135 + ps-recursive uninstall-recursive
136 +RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
137 + distclean-recursive maintainer-clean-recursive
138 +AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
139 + $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
140 + distdir dist dist-all distcheck
141 +ETAGS = etags
142 +CTAGS = ctags
143 +DIST_SUBDIRS = $(SUBDIRS)
144 +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
145 +distdir = $(PACKAGE)-$(VERSION)
146 +top_distdir = $(distdir)
147 +am__remove_distdir = \
148 + { test ! -d "$(distdir)" \
149 + || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
150 + && rm -fr "$(distdir)"; }; }
151 +am__relativize = \
152 + dir0=`pwd`; \
153 + sed_first='s,^\([^/]*\)/.*$$,\1,'; \
154 + sed_rest='s,^[^/]*/*,,'; \
155 + sed_last='s,^.*/\([^/]*\)$$,\1,'; \
156 + sed_butlast='s,/*[^/]*$$,,'; \
157 + while test -n "$$dir1"; do \
158 + first=`echo "$$dir1" | sed -e "$$sed_first"`; \
159 + if test "$$first" != "."; then \
160 + if test "$$first" = ".."; then \
161 + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
162 + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
163 + else \
164 + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
165 + if test "$$first2" = "$$first"; then \
166 + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
167 + else \
168 + dir2="../$$dir2"; \
169 + fi; \
170 + dir0="$$dir0"/"$$first"; \
171 + fi; \
172 + fi; \
173 + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
174 + done; \
175 + reldir="$$dir2"
176 +DIST_ARCHIVES = $(distdir).tar.gz
177 +GZIP_ENV = --best
178 +distuninstallcheck_listfiles = find . -type f -print
179 +distcleancheck_listfiles = find . -type f -print
180 +ACLOCAL = @ACLOCAL@
181 +AMTAR = @AMTAR@
182 +AUTOCONF = @AUTOCONF@
183 +AUTOHEADER = @AUTOHEADER@
184 +AUTOMAKE = @AUTOMAKE@
185 +AWK = @AWK@
186 +CC = @CC@
187 +CCDEPMODE = @CCDEPMODE@
188 +CFLAGS = @CFLAGS@
189 +CPP = @CPP@
190 +CPPFLAGS = @CPPFLAGS@
191 +CYGPATH_W = @CYGPATH_W@
192 +DEFS = @DEFS@
193 +DEPDIR = @DEPDIR@
194 +ECHO_C = @ECHO_C@
195 +ECHO_N = @ECHO_N@
196 +ECHO_T = @ECHO_T@
197 +EGREP = @EGREP@
198 +EXEEXT = @EXEEXT@
199 +GETOPT_H = @GETOPT_H@
200 +GNULIB_CHOWN = @GNULIB_CHOWN@
201 +GNULIB_CLOSE = @GNULIB_CLOSE@
202 +GNULIB_DUP2 = @GNULIB_DUP2@
203 +GNULIB_ENVIRON = @GNULIB_ENVIRON@
204 +GNULIB_EUIDACCESS = @GNULIB_EUIDACCESS@
205 +GNULIB_FCHDIR = @GNULIB_FCHDIR@
206 +GNULIB_FSYNC = @GNULIB_FSYNC@
207 +GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@
208 +GNULIB_GETCWD = @GNULIB_GETCWD@
209 +GNULIB_GETDOMAINNAME = @GNULIB_GETDOMAINNAME@
210 +GNULIB_GETDTABLESIZE = @GNULIB_GETDTABLESIZE@
211 +GNULIB_GETHOSTNAME = @GNULIB_GETHOSTNAME@
212 +GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@
213 +GNULIB_GETPAGESIZE = @GNULIB_GETPAGESIZE@
214 +GNULIB_GETUSERSHELL = @GNULIB_GETUSERSHELL@
215 +GNULIB_LCHOWN = @GNULIB_LCHOWN@
216 +GNULIB_LINK = @GNULIB_LINK@
217 +GNULIB_LSEEK = @GNULIB_LSEEK@
218 +GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@
219 +GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@
220 +GNULIB_MBSCHR = @GNULIB_MBSCHR@
221 +GNULIB_MBSCSPN = @GNULIB_MBSCSPN@
222 +GNULIB_MBSLEN = @GNULIB_MBSLEN@
223 +GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@
224 +GNULIB_MBSNLEN = @GNULIB_MBSNLEN@
225 +GNULIB_MBSPBRK = @GNULIB_MBSPBRK@
226 +GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@
227 +GNULIB_MBSRCHR = @GNULIB_MBSRCHR@
228 +GNULIB_MBSSEP = @GNULIB_MBSSEP@
229 +GNULIB_MBSSPN = @GNULIB_MBSSPN@
230 +GNULIB_MBSSTR = @GNULIB_MBSSTR@
231 +GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@
232 +GNULIB_MEMMEM = @GNULIB_MEMMEM@
233 +GNULIB_MEMPCPY = @GNULIB_MEMPCPY@
234 +GNULIB_MEMRCHR = @GNULIB_MEMRCHR@
235 +GNULIB_RAWMEMCHR = @GNULIB_RAWMEMCHR@
236 +GNULIB_READLINK = @GNULIB_READLINK@
237 +GNULIB_SLEEP = @GNULIB_SLEEP@
238 +GNULIB_STPCPY = @GNULIB_STPCPY@
239 +GNULIB_STPNCPY = @GNULIB_STPNCPY@
240 +GNULIB_STRCASESTR = @GNULIB_STRCASESTR@
241 +GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@
242 +GNULIB_STRDUP = @GNULIB_STRDUP@
243 +GNULIB_STRERROR = @GNULIB_STRERROR@
244 +GNULIB_STRNDUP = @GNULIB_STRNDUP@
245 +GNULIB_STRNLEN = @GNULIB_STRNLEN@
246 +GNULIB_STRPBRK = @GNULIB_STRPBRK@
247 +GNULIB_STRSEP = @GNULIB_STRSEP@
248 +GNULIB_STRSIGNAL = @GNULIB_STRSIGNAL@
249 +GNULIB_STRSTR = @GNULIB_STRSTR@
250 +GNULIB_STRTOK_R = @GNULIB_STRTOK_R@
251 +GNULIB_STRVERSCMP = @GNULIB_STRVERSCMP@
252 +GNULIB_UNISTD_H_SIGPIPE = @GNULIB_UNISTD_H_SIGPIPE@
253 +GNULIB_WRITE = @GNULIB_WRITE@
254 +GREP = @GREP@
255 +HAVE_DECL_ENVIRON = @HAVE_DECL_ENVIRON@
256 +HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@
257 +HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@
258 +HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@
259 +HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@
260 +HAVE_DECL_STRERROR = @HAVE_DECL_STRERROR@
261 +HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@
262 +HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@
263 +HAVE_DECL_STRSIGNAL = @HAVE_DECL_STRSIGNAL@
264 +HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@
265 +HAVE_DUP2 = @HAVE_DUP2@
266 +HAVE_EUIDACCESS = @HAVE_EUIDACCESS@
267 +HAVE_FSYNC = @HAVE_FSYNC@
268 +HAVE_FTRUNCATE = @HAVE_FTRUNCATE@
269 +HAVE_GETDOMAINNAME = @HAVE_GETDOMAINNAME@
270 +HAVE_GETDTABLESIZE = @HAVE_GETDTABLESIZE@
271 +HAVE_GETHOSTNAME = @HAVE_GETHOSTNAME@
272 +HAVE_GETPAGESIZE = @HAVE_GETPAGESIZE@
273 +HAVE_GETUSERSHELL = @HAVE_GETUSERSHELL@
274 +HAVE_LINK = @HAVE_LINK@
275 +HAVE_MEMPCPY = @HAVE_MEMPCPY@
276 +HAVE_OS_H = @HAVE_OS_H@
277 +HAVE_RAWMEMCHR = @HAVE_RAWMEMCHR@
278 +HAVE_READLINK = @HAVE_READLINK@
279 +HAVE_SLEEP = @HAVE_SLEEP@
280 +HAVE_STPCPY = @HAVE_STPCPY@
281 +HAVE_STPNCPY = @HAVE_STPNCPY@
282 +HAVE_STRCASESTR = @HAVE_STRCASESTR@
283 +HAVE_STRCHRNUL = @HAVE_STRCHRNUL@
284 +HAVE_STRNDUP = @HAVE_STRNDUP@
285 +HAVE_STRPBRK = @HAVE_STRPBRK@
286 +HAVE_STRSEP = @HAVE_STRSEP@
287 +HAVE_STRVERSCMP = @HAVE_STRVERSCMP@
288 +HAVE_SYS_PARAM_H = @HAVE_SYS_PARAM_H@
289 +HAVE_UNISTD_H = @HAVE_UNISTD_H@
290 +INCLUDE_NEXT = @INCLUDE_NEXT@
291 +INCLUDE_NEXT_AS_FIRST_DIRECTIVE = @INCLUDE_NEXT_AS_FIRST_DIRECTIVE@
292 +INSTALL = @INSTALL@
293 +INSTALL_DATA = @INSTALL_DATA@
294 +INSTALL_PROGRAM = @INSTALL_PROGRAM@
295 +INSTALL_SCRIPT = @INSTALL_SCRIPT@
296 +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
297 +LDFLAGS = @LDFLAGS@
298 +LIBGNU_LIBDEPS = @LIBGNU_LIBDEPS@
299 +LIBGNU_LTLIBDEPS = @LIBGNU_LTLIBDEPS@
300 +LIBINTL = @LIBINTL@
301 +LIBOBJS = @LIBOBJS@
302 +LIBS = @LIBS@
303 +LTLIBINTL = @LTLIBINTL@
304 +LTLIBOBJS = @LTLIBOBJS@
305 +MAKEINFO = @MAKEINFO@
306 +MKDIR_P = @MKDIR_P@
307 +NEXT_STRING_H = @NEXT_STRING_H@
308 +NEXT_UNISTD_H = @NEXT_UNISTD_H@
309 +OBJEXT = @OBJEXT@
310 +PACKAGE = @PACKAGE@
311 +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
312 +PACKAGE_NAME = @PACKAGE_NAME@
313 +PACKAGE_STRING = @PACKAGE_STRING@
314 +PACKAGE_TARNAME = @PACKAGE_TARNAME@
315 +PACKAGE_URL = @PACKAGE_URL@
316 +PACKAGE_VERSION = @PACKAGE_VERSION@
317 +PATH_SEPARATOR = @PATH_SEPARATOR@
318 +PRAGMA_SYSTEM_HEADER = @PRAGMA_SYSTEM_HEADER@
319 +RANLIB = @RANLIB@
320 +REPLACE_CHOWN = @REPLACE_CHOWN@
321 +REPLACE_CLOSE = @REPLACE_CLOSE@
322 +REPLACE_FCHDIR = @REPLACE_FCHDIR@
323 +REPLACE_GETCWD = @REPLACE_GETCWD@
324 +REPLACE_GETPAGESIZE = @REPLACE_GETPAGESIZE@
325 +REPLACE_LCHOWN = @REPLACE_LCHOWN@
326 +REPLACE_LSEEK = @REPLACE_LSEEK@
327 +REPLACE_MEMMEM = @REPLACE_MEMMEM@
328 +REPLACE_STRCASESTR = @REPLACE_STRCASESTR@
329 +REPLACE_STRDUP = @REPLACE_STRDUP@
330 +REPLACE_STRERROR = @REPLACE_STRERROR@
331 +REPLACE_STRSIGNAL = @REPLACE_STRSIGNAL@
332 +REPLACE_STRSTR = @REPLACE_STRSTR@
333 +REPLACE_WRITE = @REPLACE_WRITE@
334 +SET_MAKE = @SET_MAKE@
335 +SHELL = @SHELL@
336 +STRIP = @STRIP@
337 +UNISTD_H_HAVE_WINSOCK2_H = @UNISTD_H_HAVE_WINSOCK2_H@
338 +VERSION = @VERSION@
339 +abs_builddir = @abs_builddir@
340 +abs_srcdir = @abs_srcdir@
341 +abs_top_builddir = @abs_top_builddir@
342 +abs_top_srcdir = @abs_top_srcdir@
343 +ac_ct_CC = @ac_ct_CC@
344 +am__include = @am__include@
345 +am__leading_dot = @am__leading_dot@
346 +am__quote = @am__quote@
347 +am__tar = @am__tar@
348 +am__untar = @am__untar@
349 +bindir = @bindir@
350 +build = @build@
351 +build_alias = @build_alias@
352 +build_cpu = @build_cpu@
353 +build_os = @build_os@
354 +build_vendor = @build_vendor@
355 +builddir = @builddir@
356 +datadir = @datadir@
357 +datarootdir = @datarootdir@
358 +docdir = @docdir@
359 +dvidir = @dvidir@
360 +exec_prefix = @exec_prefix@
361 +gl_LIBOBJS = @gl_LIBOBJS@
362 +gl_LTLIBOBJS = @gl_LTLIBOBJS@
363 +host = @host@
364 +host_alias = @host_alias@
365 +host_cpu = @host_cpu@
366 +host_os = @host_os@
367 +host_vendor = @host_vendor@
368 +htmldir = @htmldir@
369 +includedir = @includedir@
370 +infodir = @infodir@
371 +install_sh = @install_sh@
372 +libdir = @libdir@
373 +libexecdir = @libexecdir@
374 +localedir = @localedir@
375 +localstatedir = @localstatedir@
376 +mandir = @mandir@
377 +mkdir_p = @mkdir_p@
378 +oldincludedir = @oldincludedir@
379 +pdfdir = @pdfdir@
380 +prefix = @prefix@
381 +program_transform_name = @program_transform_name@
382 +psdir = @psdir@
383 +sbindir = @sbindir@
384 +sharedstatedir = @sharedstatedir@
385 +srcdir = @srcdir@
386 +sysconfdir = @sysconfdir@
387 +target_alias = @target_alias@
388 +top_build_prefix = @top_build_prefix@
389 +top_builddir = @top_builddir@
390 +top_srcdir = @top_srcdir@
391 +AUTOMAKE_OPTIONS = 1.5 foreign
392 +SUBDIRS = gllib glm4
393 +ACLOCAL_AMFLAGS = -I glm4
394 +all: config.h
395 + $(MAKE) $(AM_MAKEFLAGS) all-recursive
396 +
397 +.SUFFIXES:
398 +am--refresh:
399 + @:
400 +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
401 + @for dep in $?; do \
402 + case '$(am__configure_deps)' in \
403 + *$$dep*) \
404 + echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \
405 + $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \
406 + && exit 0; \
407 + exit 1;; \
408 + esac; \
409 + done; \
410 + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
411 + $(am__cd) $(top_srcdir) && \
412 + $(AUTOMAKE) --foreign Makefile
413 +.PRECIOUS: Makefile
414 +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
415 + @case '$?' in \
416 + *config.status*) \
417 + echo ' $(SHELL) ./config.status'; \
418 + $(SHELL) ./config.status;; \
419 + *) \
420 + echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
421 + cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
422 + esac;
423 +
424 +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
425 + $(SHELL) ./config.status --recheck
426 +
427 +$(top_srcdir)/configure: $(am__configure_deps)
428 + $(am__cd) $(srcdir) && $(AUTOCONF)
429 +$(ACLOCAL_M4): $(am__aclocal_m4_deps)
430 + $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
431 +$(am__aclocal_m4_deps):
432 +
433 +config.h: stamp-h1
434 + @if test ! -f $@; then \
435 + rm -f stamp-h1; \
436 + $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \
437 + else :; fi
438 +
439 +stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
440 + @rm -f stamp-h1
441 + cd $(top_builddir) && $(SHELL) ./config.status config.h
442 +$(srcdir)/config.h.in: $(am__configure_deps)
443 + ($(am__cd) $(top_srcdir) && $(AUTOHEADER))
444 + rm -f stamp-h1
445 + touch $@
446 +
447 +distclean-hdr:
448 + -rm -f config.h stamp-h1
449 +
450 +# This directory's subdirectories are mostly independent; you can cd
451 +# into them and run `make' without going through this Makefile.
452 +# To change the values of `make' variables: instead of editing Makefiles,
453 +# (1) if the variable is set in `config.status', edit `config.status'
454 +# (which will cause the Makefiles to be regenerated when you run `make');
455 +# (2) otherwise, pass the desired values on the `make' command line.
456 +$(RECURSIVE_TARGETS):
457 + @fail= failcom='exit 1'; \
458 + for f in x $$MAKEFLAGS; do \
459 + case $$f in \
460 + *=* | --[!k]*);; \
461 + *k*) failcom='fail=yes';; \
462 + esac; \
463 + done; \
464 + dot_seen=no; \
465 + target=`echo $@ | sed s/-recursive//`; \
466 + list='$(SUBDIRS)'; for subdir in $$list; do \
467 + echo "Making $$target in $$subdir"; \
468 + if test "$$subdir" = "."; then \
469 + dot_seen=yes; \
470 + local_target="$$target-am"; \
471 + else \
472 + local_target="$$target"; \
473 + fi; \
474 + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
475 + || eval $$failcom; \
476 + done; \
477 + if test "$$dot_seen" = "no"; then \
478 + $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
479 + fi; test -z "$$fail"
480 +
481 +$(RECURSIVE_CLEAN_TARGETS):
482 + @fail= failcom='exit 1'; \
483 + for f in x $$MAKEFLAGS; do \
484 + case $$f in \
485 + *=* | --[!k]*);; \
486 + *k*) failcom='fail=yes';; \
487 + esac; \
488 + done; \
489 + dot_seen=no; \
490 + case "$@" in \
491 + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
492 + *) list='$(SUBDIRS)' ;; \
493 + esac; \
494 + rev=''; for subdir in $$list; do \
495 + if test "$$subdir" = "."; then :; else \
496 + rev="$$subdir $$rev"; \
497 + fi; \
498 + done; \
499 + rev="$$rev ."; \
500 + target=`echo $@ | sed s/-recursive//`; \
501 + for subdir in $$rev; do \
502 + echo "Making $$target in $$subdir"; \
503 + if test "$$subdir" = "."; then \
504 + local_target="$$target-am"; \
505 + else \
506 + local_target="$$target"; \
507 + fi; \
508 + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
509 + || eval $$failcom; \
510 + done && test -z "$$fail"
511 +tags-recursive:
512 + list='$(SUBDIRS)'; for subdir in $$list; do \
513 + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
514 + done
515 +ctags-recursive:
516 + list='$(SUBDIRS)'; for subdir in $$list; do \
517 + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
518 + done
519 +
520 +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
521 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
522 + unique=`for i in $$list; do \
523 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
524 + done | \
525 + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
526 + END { if (nonempty) { for (i in files) print i; }; }'`; \
527 + mkid -fID $$unique
528 +tags: TAGS
529 +
530 +TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
531 + $(TAGS_FILES) $(LISP)
532 + set x; \
533 + here=`pwd`; \
534 + if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
535 + include_option=--etags-include; \
536 + empty_fix=.; \
537 + else \
538 + include_option=--include; \
539 + empty_fix=; \
540 + fi; \
541 + list='$(SUBDIRS)'; for subdir in $$list; do \
542 + if test "$$subdir" = .; then :; else \
543 + test ! -f $$subdir/TAGS || \
544 + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
545 + fi; \
546 + done; \
547 + list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
548 + unique=`for i in $$list; do \
549 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
550 + done | \
551 + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
552 + END { if (nonempty) { for (i in files) print i; }; }'`; \
553 + shift; \
554 + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
555 + test -n "$$unique" || unique=$$empty_fix; \
556 + if test $$# -gt 0; then \
557 + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
558 + "$$@" $$unique; \
559 + else \
560 + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
561 + $$unique; \
562 + fi; \
563 + fi
564 +ctags: CTAGS
565 +CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
566 + $(TAGS_FILES) $(LISP)
567 + list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
568 + unique=`for i in $$list; do \
569 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
570 + done | \
571 + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
572 + END { if (nonempty) { for (i in files) print i; }; }'`; \
573 + test -z "$(CTAGS_ARGS)$$unique" \
574 + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
575 + $$unique
576 +
577 +GTAGS:
578 + here=`$(am__cd) $(top_builddir) && pwd` \
579 + && $(am__cd) $(top_srcdir) \
580 + && gtags -i $(GTAGS_ARGS) "$$here"
581 +
582 +distclean-tags:
583 + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
584 +
585 +distdir: $(DISTFILES)
586 + $(am__remove_distdir)
587 + test -d "$(distdir)" || mkdir "$(distdir)"
588 + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
589 + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
590 + list='$(DISTFILES)'; \
591 + dist_files=`for file in $$list; do echo $$file; done | \
592 + sed -e "s|^$$srcdirstrip/||;t" \
593 + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
594 + case $$dist_files in \
595 + */*) $(MKDIR_P) `echo "$$dist_files" | \
596 + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
597 + sort -u` ;; \
598 + esac; \
599 + for file in $$dist_files; do \
600 + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
601 + if test -d $$d/$$file; then \
602 + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
603 + if test -d "$(distdir)/$$file"; then \
604 + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
605 + fi; \
606 + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
607 + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
608 + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
609 + fi; \
610 + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
611 + else \
612 + test -f "$(distdir)/$$file" \
613 + || cp -p $$d/$$file "$(distdir)/$$file" \
614 + || exit 1; \
615 + fi; \
616 + done
617 + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
618 + if test "$$subdir" = .; then :; else \
619 + test -d "$(distdir)/$$subdir" \
620 + || $(MKDIR_P) "$(distdir)/$$subdir" \
621 + || exit 1; \
622 + fi; \
623 + done
624 + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
625 + if test "$$subdir" = .; then :; else \
626 + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
627 + $(am__relativize); \
628 + new_distdir=$$reldir; \
629 + dir1=$$subdir; dir2="$(top_distdir)"; \
630 + $(am__relativize); \
631 + new_top_distdir=$$reldir; \
632 + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
633 + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
634 + ($(am__cd) $$subdir && \
635 + $(MAKE) $(AM_MAKEFLAGS) \
636 + top_distdir="$$new_top_distdir" \
637 + distdir="$$new_distdir" \
638 + am__remove_distdir=: \
639 + am__skip_length_check=: \
640 + am__skip_mode_fix=: \
641 + distdir) \
642 + || exit 1; \
643 + fi; \
644 + done
645 + -test -n "$(am__skip_mode_fix)" \
646 + || find "$(distdir)" -type d ! -perm -755 \
647 + -exec chmod u+rwx,go+rx {} \; -o \
648 + ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
649 + ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
650 + ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
651 + || chmod -R a+r "$(distdir)"
652 +dist-gzip: distdir
653 + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
654 + $(am__remove_distdir)
655 +
656 +dist-bzip2: distdir
657 + tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
658 + $(am__remove_distdir)
659 +
660 +dist-lzma: distdir
661 + tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
662 + $(am__remove_distdir)
663 +
664 +dist-xz: distdir
665 + tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz
666 + $(am__remove_distdir)
667 +
668 +dist-tarZ: distdir
669 + tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
670 + $(am__remove_distdir)
671 +
672 +dist-shar: distdir
673 + shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
674 + $(am__remove_distdir)
675 +
676 +dist-zip: distdir
677 + -rm -f $(distdir).zip
678 + zip -rq $(distdir).zip $(distdir)
679 + $(am__remove_distdir)
680 +
681 +dist dist-all: distdir
682 + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
683 + $(am__remove_distdir)
684 +
685 +# This target untars the dist file and tries a VPATH configuration. Then
686 +# it guarantees that the distribution is self-contained by making another
687 +# tarfile.
688 +distcheck: dist
689 + case '$(DIST_ARCHIVES)' in \
690 + *.tar.gz*) \
691 + GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
692 + *.tar.bz2*) \
693 + bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
694 + *.tar.lzma*) \
695 + lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
696 + *.tar.xz*) \
697 + xz -dc $(distdir).tar.xz | $(am__untar) ;;\
698 + *.tar.Z*) \
699 + uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
700 + *.shar.gz*) \
701 + GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
702 + *.zip*) \
703 + unzip $(distdir).zip ;;\
704 + esac
705 + chmod -R a-w $(distdir); chmod a+w $(distdir)
706 + mkdir $(distdir)/_build
707 + mkdir $(distdir)/_inst
708 + chmod a-w $(distdir)
709 + test -d $(distdir)/_build || exit 0; \
710 + dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
711 + && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
712 + && am__cwd=`pwd` \
713 + && $(am__cd) $(distdir)/_build \
714 + && ../configure --srcdir=.. --prefix="$$dc_install_base" \
715 + $(DISTCHECK_CONFIGURE_FLAGS) \
716 + && $(MAKE) $(AM_MAKEFLAGS) \
717 + && $(MAKE) $(AM_MAKEFLAGS) dvi \
718 + && $(MAKE) $(AM_MAKEFLAGS) check \
719 + && $(MAKE) $(AM_MAKEFLAGS) install \
720 + && $(MAKE) $(AM_MAKEFLAGS) installcheck \
721 + && $(MAKE) $(AM_MAKEFLAGS) uninstall \
722 + && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
723 + distuninstallcheck \
724 + && chmod -R a-w "$$dc_install_base" \
725 + && ({ \
726 + (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
727 + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
728 + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
729 + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
730 + distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
731 + } || { rm -rf "$$dc_destdir"; exit 1; }) \
732 + && rm -rf "$$dc_destdir" \
733 + && $(MAKE) $(AM_MAKEFLAGS) dist \
734 + && rm -rf $(DIST_ARCHIVES) \
735 + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
736 + && cd "$$am__cwd" \
737 + || exit 1
738 + $(am__remove_distdir)
739 + @(echo "$(distdir) archives ready for distribution: "; \
740 + list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
741 + sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
742 +distuninstallcheck:
743 + @$(am__cd) '$(distuninstallcheck_dir)' \
744 + && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
745 + || { echo "ERROR: files left after uninstall:" ; \
746 + if test -n "$(DESTDIR)"; then \
747 + echo " (check DESTDIR support)"; \
748 + fi ; \
749 + $(distuninstallcheck_listfiles) ; \
750 + exit 1; } >&2
751 +distcleancheck: distclean
752 + @if test '$(srcdir)' = . ; then \
753 + echo "ERROR: distcleancheck can only run from a VPATH build" ; \
754 + exit 1 ; \
755 + fi
756 + @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
757 + || { echo "ERROR: files left in build directory after distclean:" ; \
758 + $(distcleancheck_listfiles) ; \
759 + exit 1; } >&2
760 +check-am: all-am
761 +check: check-recursive
762 +all-am: Makefile config.h
763 +installdirs: installdirs-recursive
764 +installdirs-am:
765 +install: install-recursive
766 +install-exec: install-exec-recursive
767 +install-data: install-data-recursive
768 +uninstall: uninstall-recursive
769 +
770 +install-am: all-am
771 + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
772 +
773 +installcheck: installcheck-recursive
774 +install-strip:
775 + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
776 + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
777 + `test -z '$(STRIP)' || \
778 + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
779 +mostlyclean-generic:
780 +
781 +clean-generic:
782 +
783 +distclean-generic:
784 + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
785 + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
786 +
787 +maintainer-clean-generic:
788 + @echo "This command is intended for maintainers to use"
789 + @echo "it deletes files that may require special tools to rebuild."
790 +clean: clean-recursive
791 +
792 +clean-am: clean-generic mostlyclean-am
793 +
794 +distclean: distclean-recursive
795 + -rm -f $(am__CONFIG_DISTCLEAN_FILES)
796 + -rm -f Makefile
797 +distclean-am: clean-am distclean-generic distclean-hdr distclean-tags
798 +
799 +dvi: dvi-recursive
800 +
801 +dvi-am:
802 +
803 +html: html-recursive
804 +
805 +html-am:
806 +
807 +info: info-recursive
808 +
809 +info-am:
810 +
811 +install-data-am:
812 +
813 +install-dvi: install-dvi-recursive
814 +
815 +install-dvi-am:
816 +
817 +install-exec-am:
818 +
819 +install-html: install-html-recursive
820 +
821 +install-html-am:
822 +
823 +install-info: install-info-recursive
824 +
825 +install-info-am:
826 +
827 +install-man:
828 +
829 +install-pdf: install-pdf-recursive
830 +
831 +install-pdf-am:
832 +
833 +install-ps: install-ps-recursive
834 +
835 +install-ps-am:
836 +
837 +installcheck-am:
838 +
839 +maintainer-clean: maintainer-clean-recursive
840 + -rm -f $(am__CONFIG_DISTCLEAN_FILES)
841 + -rm -rf $(top_srcdir)/autom4te.cache
842 + -rm -f Makefile
843 +maintainer-clean-am: distclean-am maintainer-clean-generic
844 +
845 +mostlyclean: mostlyclean-recursive
846 +
847 +mostlyclean-am: mostlyclean-generic
848 +
849 +pdf: pdf-recursive
850 +
851 +pdf-am:
852 +
853 +ps: ps-recursive
854 +
855 +ps-am:
856 +
857 +uninstall-am:
858 +
859 +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \
860 + ctags-recursive install-am install-strip tags-recursive
861 +
862 +.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
863 + all all-am am--refresh check check-am clean clean-generic \
864 + ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \
865 + dist-lzma dist-shar dist-tarZ dist-xz dist-zip distcheck \
866 + distclean distclean-generic distclean-hdr distclean-tags \
867 + distcleancheck distdir distuninstallcheck dvi dvi-am html \
868 + html-am info info-am install install-am install-data \
869 + install-data-am install-dvi install-dvi-am install-exec \
870 + install-exec-am install-html install-html-am install-info \
871 + install-info-am install-man install-pdf install-pdf-am \
872 + install-ps install-ps-am install-strip installcheck \
873 + installcheck-am installdirs installdirs-am maintainer-clean \
874 + maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
875 + pdf-am ps ps-am tags tags-recursive uninstall uninstall-am
876 +
877 +
878 +# Tell versions [3.59,3.63) of GNU make to not export all variables.
879 +# Otherwise a system limit (for SysV at least) may be exceeded.
880 +.NOEXPORT:
881
882 Added: trunk/baselayout-prefix/gnulib/aclocal.m4
883 ===================================================================
884 --- trunk/baselayout-prefix/gnulib/aclocal.m4 (rev 0)
885 +++ trunk/baselayout-prefix/gnulib/aclocal.m4 2011-03-31 16:43:45 UTC (rev 1693)
886 @@ -0,0 +1,974 @@
887 +# generated automatically by aclocal 1.11.1 -*- Autoconf -*-
888 +
889 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
890 +# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
891 +# This file is free software; the Free Software Foundation
892 +# gives unlimited permission to copy and/or distribute it,
893 +# with or without modifications, as long as this notice is preserved.
894 +
895 +# This program is distributed in the hope that it will be useful,
896 +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
897 +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
898 +# PARTICULAR PURPOSE.
899 +
900 +m4_ifndef([AC_AUTOCONF_VERSION],
901 + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
902 +m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
903 +[m4_warning([this file was generated for autoconf 2.68.
904 +You have another version of autoconf. It may work, but is not guaranteed to.
905 +If you have problems, you may need to regenerate the build system entirely.
906 +To do so, use the procedure documented by the package, typically `autoreconf'.])])
907 +
908 +# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
909 +#
910 +# This file is free software; the Free Software Foundation
911 +# gives unlimited permission to copy and/or distribute it,
912 +# with or without modifications, as long as this notice is preserved.
913 +
914 +# AM_AUTOMAKE_VERSION(VERSION)
915 +# ----------------------------
916 +# Automake X.Y traces this macro to ensure aclocal.m4 has been
917 +# generated from the m4 files accompanying Automake X.Y.
918 +# (This private macro should not be called outside this file.)
919 +AC_DEFUN([AM_AUTOMAKE_VERSION],
920 +[am__api_version='1.11'
921 +dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
922 +dnl require some minimum version. Point them to the right macro.
923 +m4_if([$1], [1.11.1], [],
924 + [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
925 +])
926 +
927 +# _AM_AUTOCONF_VERSION(VERSION)
928 +# -----------------------------
929 +# aclocal traces this macro to find the Autoconf version.
930 +# This is a private macro too. Using m4_define simplifies
931 +# the logic in aclocal, which can simply ignore this definition.
932 +m4_define([_AM_AUTOCONF_VERSION], [])
933 +
934 +# AM_SET_CURRENT_AUTOMAKE_VERSION
935 +# -------------------------------
936 +# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
937 +# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
938 +AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
939 +[AM_AUTOMAKE_VERSION([1.11.1])dnl
940 +m4_ifndef([AC_AUTOCONF_VERSION],
941 + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
942 +_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
943 +
944 +# AM_AUX_DIR_EXPAND -*- Autoconf -*-
945 +
946 +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
947 +#
948 +# This file is free software; the Free Software Foundation
949 +# gives unlimited permission to copy and/or distribute it,
950 +# with or without modifications, as long as this notice is preserved.
951 +
952 +# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
953 +# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
954 +# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
955 +#
956 +# Of course, Automake must honor this variable whenever it calls a
957 +# tool from the auxiliary directory. The problem is that $srcdir (and
958 +# therefore $ac_aux_dir as well) can be either absolute or relative,
959 +# depending on how configure is run. This is pretty annoying, since
960 +# it makes $ac_aux_dir quite unusable in subdirectories: in the top
961 +# source directory, any form will work fine, but in subdirectories a
962 +# relative path needs to be adjusted first.
963 +#
964 +# $ac_aux_dir/missing
965 +# fails when called from a subdirectory if $ac_aux_dir is relative
966 +# $top_srcdir/$ac_aux_dir/missing
967 +# fails if $ac_aux_dir is absolute,
968 +# fails when called from a subdirectory in a VPATH build with
969 +# a relative $ac_aux_dir
970 +#
971 +# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
972 +# are both prefixed by $srcdir. In an in-source build this is usually
973 +# harmless because $srcdir is `.', but things will broke when you
974 +# start a VPATH build or use an absolute $srcdir.
975 +#
976 +# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
977 +# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
978 +# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
979 +# and then we would define $MISSING as
980 +# MISSING="\${SHELL} $am_aux_dir/missing"
981 +# This will work as long as MISSING is not called from configure, because
982 +# unfortunately $(top_srcdir) has no meaning in configure.
983 +# However there are other variables, like CC, which are often used in
984 +# configure, and could therefore not use this "fixed" $ac_aux_dir.
985 +#
986 +# Another solution, used here, is to always expand $ac_aux_dir to an
987 +# absolute PATH. The drawback is that using absolute paths prevent a
988 +# configured tree to be moved without reconfiguration.
989 +
990 +AC_DEFUN([AM_AUX_DIR_EXPAND],
991 +[dnl Rely on autoconf to set up CDPATH properly.
992 +AC_PREREQ([2.50])dnl
993 +# expand $ac_aux_dir to an absolute path
994 +am_aux_dir=`cd $ac_aux_dir && pwd`
995 +])
996 +
997 +# AM_CONDITIONAL -*- Autoconf -*-
998 +
999 +# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
1000 +# Free Software Foundation, Inc.
1001 +#
1002 +# This file is free software; the Free Software Foundation
1003 +# gives unlimited permission to copy and/or distribute it,
1004 +# with or without modifications, as long as this notice is preserved.
1005 +
1006 +# serial 9
1007 +
1008 +# AM_CONDITIONAL(NAME, SHELL-CONDITION)
1009 +# -------------------------------------
1010 +# Define a conditional.
1011 +AC_DEFUN([AM_CONDITIONAL],
1012 +[AC_PREREQ(2.52)dnl
1013 + ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
1014 + [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
1015 +AC_SUBST([$1_TRUE])dnl
1016 +AC_SUBST([$1_FALSE])dnl
1017 +_AM_SUBST_NOTMAKE([$1_TRUE])dnl
1018 +_AM_SUBST_NOTMAKE([$1_FALSE])dnl
1019 +m4_define([_AM_COND_VALUE_$1], [$2])dnl
1020 +if $2; then
1021 + $1_TRUE=
1022 + $1_FALSE='#'
1023 +else
1024 + $1_TRUE='#'
1025 + $1_FALSE=
1026 +fi
1027 +AC_CONFIG_COMMANDS_PRE(
1028 +[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
1029 + AC_MSG_ERROR([[conditional "$1" was never defined.
1030 +Usually this means the macro was only invoked conditionally.]])
1031 +fi])])
1032 +
1033 +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
1034 +# Free Software Foundation, Inc.
1035 +#
1036 +# This file is free software; the Free Software Foundation
1037 +# gives unlimited permission to copy and/or distribute it,
1038 +# with or without modifications, as long as this notice is preserved.
1039 +
1040 +# serial 10
1041 +
1042 +# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
1043 +# written in clear, in which case automake, when reading aclocal.m4,
1044 +# will think it sees a *use*, and therefore will trigger all it's
1045 +# C support machinery. Also note that it means that autoscan, seeing
1046 +# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
1047 +
1048 +
1049 +# _AM_DEPENDENCIES(NAME)
1050 +# ----------------------
1051 +# See how the compiler implements dependency checking.
1052 +# NAME is "CC", "CXX", "GCJ", or "OBJC".
1053 +# We try a few techniques and use that to set a single cache variable.
1054 +#
1055 +# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
1056 +# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
1057 +# dependency, and given that the user is not expected to run this macro,
1058 +# just rely on AC_PROG_CC.
1059 +AC_DEFUN([_AM_DEPENDENCIES],
1060 +[AC_REQUIRE([AM_SET_DEPDIR])dnl
1061 +AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
1062 +AC_REQUIRE([AM_MAKE_INCLUDE])dnl
1063 +AC_REQUIRE([AM_DEP_TRACK])dnl
1064 +
1065 +ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
1066 + [$1], CXX, [depcc="$CXX" am_compiler_list=],
1067 + [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
1068 + [$1], UPC, [depcc="$UPC" am_compiler_list=],
1069 + [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
1070 + [depcc="$$1" am_compiler_list=])
1071 +
1072 +AC_CACHE_CHECK([dependency style of $depcc],
1073 + [am_cv_$1_dependencies_compiler_type],
1074 +[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
1075 + # We make a subdir and do the tests there. Otherwise we can end up
1076 + # making bogus files that we don't know about and never remove. For
1077 + # instance it was reported that on HP-UX the gcc test will end up
1078 + # making a dummy file named `D' -- because `-MD' means `put the output
1079 + # in D'.
1080 + mkdir conftest.dir
1081 + # Copy depcomp to subdir because otherwise we won't find it if we're
1082 + # using a relative directory.
1083 + cp "$am_depcomp" conftest.dir
1084 + cd conftest.dir
1085 + # We will build objects and dependencies in a subdirectory because
1086 + # it helps to detect inapplicable dependency modes. For instance
1087 + # both Tru64's cc and ICC support -MD to output dependencies as a
1088 + # side effect of compilation, but ICC will put the dependencies in
1089 + # the current directory while Tru64 will put them in the object
1090 + # directory.
1091 + mkdir sub
1092 +
1093 + am_cv_$1_dependencies_compiler_type=none
1094 + if test "$am_compiler_list" = ""; then
1095 + am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
1096 + fi
1097 + am__universal=false
1098 + m4_case([$1], [CC],
1099 + [case " $depcc " in #(
1100 + *\ -arch\ *\ -arch\ *) am__universal=true ;;
1101 + esac],
1102 + [CXX],
1103 + [case " $depcc " in #(
1104 + *\ -arch\ *\ -arch\ *) am__universal=true ;;
1105 + esac])
1106 +
1107 + for depmode in $am_compiler_list; do
1108 + # Setup a source with many dependencies, because some compilers
1109 + # like to wrap large dependency lists on column 80 (with \), and
1110 + # we should not choose a depcomp mode which is confused by this.
1111 + #
1112 + # We need to recreate these files for each test, as the compiler may
1113 + # overwrite some of them when testing with obscure command lines.
1114 + # This happens at least with the AIX C compiler.
1115 + : > sub/conftest.c
1116 + for i in 1 2 3 4 5 6; do
1117 + echo '#include "conftst'$i'.h"' >> sub/conftest.c
1118 + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
1119 + # Solaris 8's {/usr,}/bin/sh.
1120 + touch sub/conftst$i.h
1121 + done
1122 + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1123 +
1124 + # We check with `-c' and `-o' for the sake of the "dashmstdout"
1125 + # mode. It turns out that the SunPro C++ compiler does not properly
1126 + # handle `-M -o', and we need to detect this. Also, some Intel
1127 + # versions had trouble with output in subdirs
1128 + am__obj=sub/conftest.${OBJEXT-o}
1129 + am__minus_obj="-o $am__obj"
1130 + case $depmode in
1131 + gcc)
1132 + # This depmode causes a compiler race in universal mode.
1133 + test "$am__universal" = false || continue
1134 + ;;
1135 + nosideeffect)
1136 + # after this tag, mechanisms are not by side-effect, so they'll
1137 + # only be used when explicitly requested
1138 + if test "x$enable_dependency_tracking" = xyes; then
1139 + continue
1140 + else
1141 + break
1142 + fi
1143 + ;;
1144 + msvisualcpp | msvcmsys)
1145 + # This compiler won't grok `-c -o', but also, the minuso test has
1146 + # not run yet. These depmodes are late enough in the game, and
1147 + # so weak that their functioning should not be impacted.
1148 + am__obj=conftest.${OBJEXT-o}
1149 + am__minus_obj=
1150 + ;;
1151 + none) break ;;
1152 + esac
1153 + if depmode=$depmode \
1154 + source=sub/conftest.c object=$am__obj \
1155 + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1156 + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
1157 + >/dev/null 2>conftest.err &&
1158 + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1159 + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1160 + grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
1161 + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1162 + # icc doesn't choke on unknown options, it will just issue warnings
1163 + # or remarks (even with -Werror). So we grep stderr for any message
1164 + # that says an option was ignored or not supported.
1165 + # When given -MP, icc 7.0 and 7.1 complain thusly:
1166 + # icc: Command line warning: ignoring option '-M'; no argument required
1167 + # The diagnosis changed in icc 8.0:
1168 + # icc: Command line remark: option '-MP' not supported
1169 + if (grep 'ignoring option' conftest.err ||
1170 + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
1171 + am_cv_$1_dependencies_compiler_type=$depmode
1172 + break
1173 + fi
1174 + fi
1175 + done
1176 +
1177 + cd ..
1178 + rm -rf conftest.dir
1179 +else
1180 + am_cv_$1_dependencies_compiler_type=none
1181 +fi
1182 +])
1183 +AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
1184 +AM_CONDITIONAL([am__fastdep$1], [
1185 + test "x$enable_dependency_tracking" != xno \
1186 + && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
1187 +])
1188 +
1189 +
1190 +# AM_SET_DEPDIR
1191 +# -------------
1192 +# Choose a directory name for dependency files.
1193 +# This macro is AC_REQUIREd in _AM_DEPENDENCIES
1194 +AC_DEFUN([AM_SET_DEPDIR],
1195 +[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
1196 +AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
1197 +])
1198 +
1199 +
1200 +# AM_DEP_TRACK
1201 +# ------------
1202 +AC_DEFUN([AM_DEP_TRACK],
1203 +[AC_ARG_ENABLE(dependency-tracking,
1204 +[ --disable-dependency-tracking speeds up one-time build
1205 + --enable-dependency-tracking do not reject slow dependency extractors])
1206 +if test "x$enable_dependency_tracking" != xno; then
1207 + am_depcomp="$ac_aux_dir/depcomp"
1208 + AMDEPBACKSLASH='\'
1209 +fi
1210 +AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
1211 +AC_SUBST([AMDEPBACKSLASH])dnl
1212 +_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
1213 +])
1214 +
1215 +# Generate code to set up dependency tracking. -*- Autoconf -*-
1216 +
1217 +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
1218 +# Free Software Foundation, Inc.
1219 +#
1220 +# This file is free software; the Free Software Foundation
1221 +# gives unlimited permission to copy and/or distribute it,
1222 +# with or without modifications, as long as this notice is preserved.
1223 +
1224 +#serial 5
1225 +
1226 +# _AM_OUTPUT_DEPENDENCY_COMMANDS
1227 +# ------------------------------
1228 +AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
1229 +[{
1230 + # Autoconf 2.62 quotes --file arguments for eval, but not when files
1231 + # are listed without --file. Let's play safe and only enable the eval
1232 + # if we detect the quoting.
1233 + case $CONFIG_FILES in
1234 + *\'*) eval set x "$CONFIG_FILES" ;;
1235 + *) set x $CONFIG_FILES ;;
1236 + esac
1237 + shift
1238 + for mf
1239 + do
1240 + # Strip MF so we end up with the name of the file.
1241 + mf=`echo "$mf" | sed -e 's/:.*$//'`
1242 + # Check whether this is an Automake generated Makefile or not.
1243 + # We used to match only the files named `Makefile.in', but
1244 + # some people rename them; so instead we look at the file content.
1245 + # Grep'ing the first line is not enough: some people post-process
1246 + # each Makefile.in and add a new line on top of each file to say so.
1247 + # Grep'ing the whole file is not good either: AIX grep has a line
1248 + # limit of 2048, but all sed's we know have understand at least 4000.
1249 + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
1250 + dirpart=`AS_DIRNAME("$mf")`
1251 + else
1252 + continue
1253 + fi
1254 + # Extract the definition of DEPDIR, am__include, and am__quote
1255 + # from the Makefile without running `make'.
1256 + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
1257 + test -z "$DEPDIR" && continue
1258 + am__include=`sed -n 's/^am__include = //p' < "$mf"`
1259 + test -z "am__include" && continue
1260 + am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
1261 + # When using ansi2knr, U may be empty or an underscore; expand it
1262 + U=`sed -n 's/^U = //p' < "$mf"`
1263 + # Find all dependency output files, they are included files with
1264 + # $(DEPDIR) in their names. We invoke sed twice because it is the
1265 + # simplest approach to changing $(DEPDIR) to its actual value in the
1266 + # expansion.
1267 + for file in `sed -n "
1268 + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
1269 + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
1270 + # Make sure the directory exists.
1271 + test -f "$dirpart/$file" && continue
1272 + fdir=`AS_DIRNAME(["$file"])`
1273 + AS_MKDIR_P([$dirpart/$fdir])
1274 + # echo "creating $dirpart/$file"
1275 + echo '# dummy' > "$dirpart/$file"
1276 + done
1277 + done
1278 +}
1279 +])# _AM_OUTPUT_DEPENDENCY_COMMANDS
1280 +
1281 +
1282 +# AM_OUTPUT_DEPENDENCY_COMMANDS
1283 +# -----------------------------
1284 +# This macro should only be invoked once -- use via AC_REQUIRE.
1285 +#
1286 +# This code is only required when automatic dependency tracking
1287 +# is enabled. FIXME. This creates each `.P' file that we will
1288 +# need in order to bootstrap the dependency handling code.
1289 +AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
1290 +[AC_CONFIG_COMMANDS([depfiles],
1291 + [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
1292 + [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
1293 +])
1294 +
1295 +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
1296 +# Free Software Foundation, Inc.
1297 +#
1298 +# This file is free software; the Free Software Foundation
1299 +# gives unlimited permission to copy and/or distribute it,
1300 +# with or without modifications, as long as this notice is preserved.
1301 +
1302 +# serial 8
1303 +
1304 +# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
1305 +AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
1306 +
1307 +# Do all the work for Automake. -*- Autoconf -*-
1308 +
1309 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
1310 +# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
1311 +#
1312 +# This file is free software; the Free Software Foundation
1313 +# gives unlimited permission to copy and/or distribute it,
1314 +# with or without modifications, as long as this notice is preserved.
1315 +
1316 +# serial 16
1317 +
1318 +# This macro actually does too much. Some checks are only needed if
1319 +# your package does certain things. But this isn't really a big deal.
1320 +
1321 +# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
1322 +# AM_INIT_AUTOMAKE([OPTIONS])
1323 +# -----------------------------------------------
1324 +# The call with PACKAGE and VERSION arguments is the old style
1325 +# call (pre autoconf-2.50), which is being phased out. PACKAGE
1326 +# and VERSION should now be passed to AC_INIT and removed from
1327 +# the call to AM_INIT_AUTOMAKE.
1328 +# We support both call styles for the transition. After
1329 +# the next Automake release, Autoconf can make the AC_INIT
1330 +# arguments mandatory, and then we can depend on a new Autoconf
1331 +# release and drop the old call support.
1332 +AC_DEFUN([AM_INIT_AUTOMAKE],
1333 +[AC_PREREQ([2.62])dnl
1334 +dnl Autoconf wants to disallow AM_ names. We explicitly allow
1335 +dnl the ones we care about.
1336 +m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
1337 +AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
1338 +AC_REQUIRE([AC_PROG_INSTALL])dnl
1339 +if test "`cd $srcdir && pwd`" != "`pwd`"; then
1340 + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
1341 + # is not polluted with repeated "-I."
1342 + AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
1343 + # test to see if srcdir already configured
1344 + if test -f $srcdir/config.status; then
1345 + AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
1346 + fi
1347 +fi
1348 +
1349 +# test whether we have cygpath
1350 +if test -z "$CYGPATH_W"; then
1351 + if (cygpath --version) >/dev/null 2>/dev/null; then
1352 + CYGPATH_W='cygpath -w'
1353 + else
1354 + CYGPATH_W=echo
1355 + fi
1356 +fi
1357 +AC_SUBST([CYGPATH_W])
1358 +
1359 +# Define the identity of the package.
1360 +dnl Distinguish between old-style and new-style calls.
1361 +m4_ifval([$2],
1362 +[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
1363 + AC_SUBST([PACKAGE], [$1])dnl
1364 + AC_SUBST([VERSION], [$2])],
1365 +[_AM_SET_OPTIONS([$1])dnl
1366 +dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
1367 +m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
1368 + [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
1369 + AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
1370 + AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
1371 +
1372 +_AM_IF_OPTION([no-define],,
1373 +[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
1374 + AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
1375 +
1376 +# Some tools Automake needs.
1377 +AC_REQUIRE([AM_SANITY_CHECK])dnl
1378 +AC_REQUIRE([AC_ARG_PROGRAM])dnl
1379 +AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
1380 +AM_MISSING_PROG(AUTOCONF, autoconf)
1381 +AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
1382 +AM_MISSING_PROG(AUTOHEADER, autoheader)
1383 +AM_MISSING_PROG(MAKEINFO, makeinfo)
1384 +AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1385 +AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
1386 +AC_REQUIRE([AM_PROG_MKDIR_P])dnl
1387 +# We need awk for the "check" target. The system "awk" is bad on
1388 +# some platforms.
1389 +AC_REQUIRE([AC_PROG_AWK])dnl
1390 +AC_REQUIRE([AC_PROG_MAKE_SET])dnl
1391 +AC_REQUIRE([AM_SET_LEADING_DOT])dnl
1392 +_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
1393 + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
1394 + [_AM_PROG_TAR([v7])])])
1395 +_AM_IF_OPTION([no-dependencies],,
1396 +[AC_PROVIDE_IFELSE([AC_PROG_CC],
1397 + [_AM_DEPENDENCIES(CC)],
1398 + [define([AC_PROG_CC],
1399 + defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
1400 +AC_PROVIDE_IFELSE([AC_PROG_CXX],
1401 + [_AM_DEPENDENCIES(CXX)],
1402 + [define([AC_PROG_CXX],
1403 + defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
1404 +AC_PROVIDE_IFELSE([AC_PROG_OBJC],
1405 + [_AM_DEPENDENCIES(OBJC)],
1406 + [define([AC_PROG_OBJC],
1407 + defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
1408 +])
1409 +_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
1410 +dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
1411 +dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
1412 +dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
1413 +AC_CONFIG_COMMANDS_PRE(dnl
1414 +[m4_provide_if([_AM_COMPILER_EXEEXT],
1415 + [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
1416 +])
1417 +
1418 +dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
1419 +dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
1420 +dnl mangled by Autoconf and run in a shell conditional statement.
1421 +m4_define([_AC_COMPILER_EXEEXT],
1422 +m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
1423 +
1424 +
1425 +# When config.status generates a header, we must update the stamp-h file.
1426 +# This file resides in the same directory as the config header
1427 +# that is generated. The stamp files are numbered to have different names.
1428 +
1429 +# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
1430 +# loop where config.status creates the headers, so we can generate
1431 +# our stamp files there.
1432 +AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
1433 +[# Compute $1's index in $config_headers.
1434 +_am_arg=$1
1435 +_am_stamp_count=1
1436 +for _am_header in $config_headers :; do
1437 + case $_am_header in
1438 + $_am_arg | $_am_arg:* )
1439 + break ;;
1440 + * )
1441 + _am_stamp_count=`expr $_am_stamp_count + 1` ;;
1442 + esac
1443 +done
1444 +echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
1445 +
1446 +# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
1447 +#
1448 +# This file is free software; the Free Software Foundation
1449 +# gives unlimited permission to copy and/or distribute it,
1450 +# with or without modifications, as long as this notice is preserved.
1451 +
1452 +# AM_PROG_INSTALL_SH
1453 +# ------------------
1454 +# Define $install_sh.
1455 +AC_DEFUN([AM_PROG_INSTALL_SH],
1456 +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1457 +if test x"${install_sh}" != xset; then
1458 + case $am_aux_dir in
1459 + *\ * | *\ *)
1460 + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
1461 + *)
1462 + install_sh="\${SHELL} $am_aux_dir/install-sh"
1463 + esac
1464 +fi
1465 +AC_SUBST(install_sh)])
1466 +
1467 +# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
1468 +#
1469 +# This file is free software; the Free Software Foundation
1470 +# gives unlimited permission to copy and/or distribute it,
1471 +# with or without modifications, as long as this notice is preserved.
1472 +
1473 +# serial 2
1474 +
1475 +# Check whether the underlying file-system supports filenames
1476 +# with a leading dot. For instance MS-DOS doesn't.
1477 +AC_DEFUN([AM_SET_LEADING_DOT],
1478 +[rm -rf .tst 2>/dev/null
1479 +mkdir .tst 2>/dev/null
1480 +if test -d .tst; then
1481 + am__leading_dot=.
1482 +else
1483 + am__leading_dot=_
1484 +fi
1485 +rmdir .tst 2>/dev/null
1486 +AC_SUBST([am__leading_dot])])
1487 +
1488 +# Check to see how 'make' treats includes. -*- Autoconf -*-
1489 +
1490 +# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
1491 +#
1492 +# This file is free software; the Free Software Foundation
1493 +# gives unlimited permission to copy and/or distribute it,
1494 +# with or without modifications, as long as this notice is preserved.
1495 +
1496 +# serial 4
1497 +
1498 +# AM_MAKE_INCLUDE()
1499 +# -----------------
1500 +# Check to see how make treats includes.
1501 +AC_DEFUN([AM_MAKE_INCLUDE],
1502 +[am_make=${MAKE-make}
1503 +cat > confinc << 'END'
1504 +am__doit:
1505 + @echo this is the am__doit target
1506 +.PHONY: am__doit
1507 +END
1508 +# If we don't find an include directive, just comment out the code.
1509 +AC_MSG_CHECKING([for style of include used by $am_make])
1510 +am__include="#"
1511 +am__quote=
1512 +_am_result=none
1513 +# First try GNU make style include.
1514 +echo "include confinc" > confmf
1515 +# Ignore all kinds of additional output from `make'.
1516 +case `$am_make -s -f confmf 2> /dev/null` in #(
1517 +*the\ am__doit\ target*)
1518 + am__include=include
1519 + am__quote=
1520 + _am_result=GNU
1521 + ;;
1522 +esac
1523 +# Now try BSD make style include.
1524 +if test "$am__include" = "#"; then
1525 + echo '.include "confinc"' > confmf
1526 + case `$am_make -s -f confmf 2> /dev/null` in #(
1527 + *the\ am__doit\ target*)
1528 + am__include=.include
1529 + am__quote="\""
1530 + _am_result=BSD
1531 + ;;
1532 + esac
1533 +fi
1534 +AC_SUBST([am__include])
1535 +AC_SUBST([am__quote])
1536 +AC_MSG_RESULT([$_am_result])
1537 +rm -f confinc confmf
1538 +])
1539 +
1540 +# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
1541 +
1542 +# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
1543 +# Free Software Foundation, Inc.
1544 +#
1545 +# This file is free software; the Free Software Foundation
1546 +# gives unlimited permission to copy and/or distribute it,
1547 +# with or without modifications, as long as this notice is preserved.
1548 +
1549 +# serial 6
1550 +
1551 +# AM_MISSING_PROG(NAME, PROGRAM)
1552 +# ------------------------------
1553 +AC_DEFUN([AM_MISSING_PROG],
1554 +[AC_REQUIRE([AM_MISSING_HAS_RUN])
1555 +$1=${$1-"${am_missing_run}$2"}
1556 +AC_SUBST($1)])
1557 +
1558 +
1559 +# AM_MISSING_HAS_RUN
1560 +# ------------------
1561 +# Define MISSING if not defined so far and test if it supports --run.
1562 +# If it does, set am_missing_run to use it, otherwise, to nothing.
1563 +AC_DEFUN([AM_MISSING_HAS_RUN],
1564 +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1565 +AC_REQUIRE_AUX_FILE([missing])dnl
1566 +if test x"${MISSING+set}" != xset; then
1567 + case $am_aux_dir in
1568 + *\ * | *\ *)
1569 + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
1570 + *)
1571 + MISSING="\${SHELL} $am_aux_dir/missing" ;;
1572 + esac
1573 +fi
1574 +# Use eval to expand $SHELL
1575 +if eval "$MISSING --run true"; then
1576 + am_missing_run="$MISSING --run "
1577 +else
1578 + am_missing_run=
1579 + AC_MSG_WARN([`missing' script is too old or missing])
1580 +fi
1581 +])
1582 +
1583 +# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1584 +#
1585 +# This file is free software; the Free Software Foundation
1586 +# gives unlimited permission to copy and/or distribute it,
1587 +# with or without modifications, as long as this notice is preserved.
1588 +
1589 +# AM_PROG_MKDIR_P
1590 +# ---------------
1591 +# Check for `mkdir -p'.
1592 +AC_DEFUN([AM_PROG_MKDIR_P],
1593 +[AC_PREREQ([2.60])dnl
1594 +AC_REQUIRE([AC_PROG_MKDIR_P])dnl
1595 +dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
1596 +dnl while keeping a definition of mkdir_p for backward compatibility.
1597 +dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
1598 +dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
1599 +dnl Makefile.ins that do not define MKDIR_P, so we do our own
1600 +dnl adjustment using top_builddir (which is defined more often than
1601 +dnl MKDIR_P).
1602 +AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
1603 +case $mkdir_p in
1604 + [[\\/$]]* | ?:[[\\/]]*) ;;
1605 + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
1606 +esac
1607 +])
1608 +
1609 +# Helper functions for option handling. -*- Autoconf -*-
1610 +
1611 +# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
1612 +#
1613 +# This file is free software; the Free Software Foundation
1614 +# gives unlimited permission to copy and/or distribute it,
1615 +# with or without modifications, as long as this notice is preserved.
1616 +
1617 +# serial 4
1618 +
1619 +# _AM_MANGLE_OPTION(NAME)
1620 +# -----------------------
1621 +AC_DEFUN([_AM_MANGLE_OPTION],
1622 +[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
1623 +
1624 +# _AM_SET_OPTION(NAME)
1625 +# ------------------------------
1626 +# Set option NAME. Presently that only means defining a flag for this option.
1627 +AC_DEFUN([_AM_SET_OPTION],
1628 +[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
1629 +
1630 +# _AM_SET_OPTIONS(OPTIONS)
1631 +# ----------------------------------
1632 +# OPTIONS is a space-separated list of Automake options.
1633 +AC_DEFUN([_AM_SET_OPTIONS],
1634 +[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
1635 +
1636 +# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
1637 +# -------------------------------------------
1638 +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
1639 +AC_DEFUN([_AM_IF_OPTION],
1640 +[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
1641 +
1642 +# Check to make sure that the build environment is sane. -*- Autoconf -*-
1643 +
1644 +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
1645 +# Free Software Foundation, Inc.
1646 +#
1647 +# This file is free software; the Free Software Foundation
1648 +# gives unlimited permission to copy and/or distribute it,
1649 +# with or without modifications, as long as this notice is preserved.
1650 +
1651 +# serial 5
1652 +
1653 +# AM_SANITY_CHECK
1654 +# ---------------
1655 +AC_DEFUN([AM_SANITY_CHECK],
1656 +[AC_MSG_CHECKING([whether build environment is sane])
1657 +# Just in case
1658 +sleep 1
1659 +echo timestamp > conftest.file
1660 +# Reject unsafe characters in $srcdir or the absolute working directory
1661 +# name. Accept space and tab only in the latter.
1662 +am_lf='
1663 +'
1664 +case `pwd` in
1665 + *[[\\\"\#\$\&\'\`$am_lf]]*)
1666 + AC_MSG_ERROR([unsafe absolute working directory name]);;
1667 +esac
1668 +case $srcdir in
1669 + *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
1670 + AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
1671 +esac
1672 +
1673 +# Do `set' in a subshell so we don't clobber the current shell's
1674 +# arguments. Must try -L first in case configure is actually a
1675 +# symlink; some systems play weird games with the mod time of symlinks
1676 +# (eg FreeBSD returns the mod time of the symlink's containing
1677 +# directory).
1678 +if (
1679 + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1680 + if test "$[*]" = "X"; then
1681 + # -L didn't work.
1682 + set X `ls -t "$srcdir/configure" conftest.file`
1683 + fi
1684 + rm -f conftest.file
1685 + if test "$[*]" != "X $srcdir/configure conftest.file" \
1686 + && test "$[*]" != "X conftest.file $srcdir/configure"; then
1687 +
1688 + # If neither matched, then we have a broken ls. This can happen
1689 + # if, for instance, CONFIG_SHELL is bash and it inherits a
1690 + # broken ls alias from the environment. This has actually
1691 + # happened. Such a system could not be considered "sane".
1692 + AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
1693 +alias in your environment])
1694 + fi
1695 +
1696 + test "$[2]" = conftest.file
1697 + )
1698 +then
1699 + # Ok.
1700 + :
1701 +else
1702 + AC_MSG_ERROR([newly created file is older than distributed files!
1703 +Check your system clock])
1704 +fi
1705 +AC_MSG_RESULT(yes)])
1706 +
1707 +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
1708 +#
1709 +# This file is free software; the Free Software Foundation
1710 +# gives unlimited permission to copy and/or distribute it,
1711 +# with or without modifications, as long as this notice is preserved.
1712 +
1713 +# AM_PROG_INSTALL_STRIP
1714 +# ---------------------
1715 +# One issue with vendor `install' (even GNU) is that you can't
1716 +# specify the program used to strip binaries. This is especially
1717 +# annoying in cross-compiling environments, where the build's strip
1718 +# is unlikely to handle the host's binaries.
1719 +# Fortunately install-sh will honor a STRIPPROG variable, so we
1720 +# always use install-sh in `make install-strip', and initialize
1721 +# STRIPPROG with the value of the STRIP variable (set by the user).
1722 +AC_DEFUN([AM_PROG_INSTALL_STRIP],
1723 +[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1724 +# Installed binaries are usually stripped using `strip' when the user
1725 +# run `make install-strip'. However `strip' might not be the right
1726 +# tool to use in cross-compilation environments, therefore Automake
1727 +# will honor the `STRIP' environment variable to overrule this program.
1728 +dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
1729 +if test "$cross_compiling" != no; then
1730 + AC_CHECK_TOOL([STRIP], [strip], :)
1731 +fi
1732 +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1733 +AC_SUBST([INSTALL_STRIP_PROGRAM])])
1734 +
1735 +# Copyright (C) 2006, 2008 Free Software Foundation, Inc.
1736 +#
1737 +# This file is free software; the Free Software Foundation
1738 +# gives unlimited permission to copy and/or distribute it,
1739 +# with or without modifications, as long as this notice is preserved.
1740 +
1741 +# serial 2
1742 +
1743 +# _AM_SUBST_NOTMAKE(VARIABLE)
1744 +# ---------------------------
1745 +# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1746 +# This macro is traced by Automake.
1747 +AC_DEFUN([_AM_SUBST_NOTMAKE])
1748 +
1749 +# AM_SUBST_NOTMAKE(VARIABLE)
1750 +# ---------------------------
1751 +# Public sister of _AM_SUBST_NOTMAKE.
1752 +AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
1753 +
1754 +# Check how to create a tarball. -*- Autoconf -*-
1755 +
1756 +# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
1757 +#
1758 +# This file is free software; the Free Software Foundation
1759 +# gives unlimited permission to copy and/or distribute it,
1760 +# with or without modifications, as long as this notice is preserved.
1761 +
1762 +# serial 2
1763 +
1764 +# _AM_PROG_TAR(FORMAT)
1765 +# --------------------
1766 +# Check how to create a tarball in format FORMAT.
1767 +# FORMAT should be one of `v7', `ustar', or `pax'.
1768 +#
1769 +# Substitute a variable $(am__tar) that is a command
1770 +# writing to stdout a FORMAT-tarball containing the directory
1771 +# $tardir.
1772 +# tardir=directory && $(am__tar) > result.tar
1773 +#
1774 +# Substitute a variable $(am__untar) that extract such
1775 +# a tarball read from stdin.
1776 +# $(am__untar) < result.tar
1777 +AC_DEFUN([_AM_PROG_TAR],
1778 +[# Always define AMTAR for backward compatibility.
1779 +AM_MISSING_PROG([AMTAR], [tar])
1780 +m4_if([$1], [v7],
1781 + [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
1782 + [m4_case([$1], [ustar],, [pax],,
1783 + [m4_fatal([Unknown tar format])])
1784 +AC_MSG_CHECKING([how to create a $1 tar archive])
1785 +# Loop over all known methods to create a tar archive until one works.
1786 +_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1787 +_am_tools=${am_cv_prog_tar_$1-$_am_tools}
1788 +# Do not fold the above two line into one, because Tru64 sh and
1789 +# Solaris sh will not grok spaces in the rhs of `-'.
1790 +for _am_tool in $_am_tools
1791 +do
1792 + case $_am_tool in
1793 + gnutar)
1794 + for _am_tar in tar gnutar gtar;
1795 + do
1796 + AM_RUN_LOG([$_am_tar --version]) && break
1797 + done
1798 + am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1799 + am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1800 + am__untar="$_am_tar -xf -"
1801 + ;;
1802 + plaintar)
1803 + # Must skip GNU tar: if it does not support --format= it doesn't create
1804 + # ustar tarball either.
1805 + (tar --version) >/dev/null 2>&1 && continue
1806 + am__tar='tar chf - "$$tardir"'
1807 + am__tar_='tar chf - "$tardir"'
1808 + am__untar='tar xf -'
1809 + ;;
1810 + pax)
1811 + am__tar='pax -L -x $1 -w "$$tardir"'
1812 + am__tar_='pax -L -x $1 -w "$tardir"'
1813 + am__untar='pax -r'
1814 + ;;
1815 + cpio)
1816 + am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1817 + am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1818 + am__untar='cpio -i -H $1 -d'
1819 + ;;
1820 + none)
1821 + am__tar=false
1822 + am__tar_=false
1823 + am__untar=false
1824 + ;;
1825 + esac
1826 +
1827 + # If the value was cached, stop now. We just wanted to have am__tar
1828 + # and am__untar set.
1829 + test -n "${am_cv_prog_tar_$1}" && break
1830 +
1831 + # tar/untar a dummy directory, and stop if the command works
1832 + rm -rf conftest.dir
1833 + mkdir conftest.dir
1834 + echo GrepMe > conftest.dir/file
1835 + AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1836 + rm -rf conftest.dir
1837 + if test -s conftest.tar; then
1838 + AM_RUN_LOG([$am__untar <conftest.tar])
1839 + grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1840 + fi
1841 +done
1842 +rm -rf conftest.dir
1843 +
1844 +AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1845 +AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1846 +AC_SUBST([am__tar])
1847 +AC_SUBST([am__untar])
1848 +]) # _AM_PROG_TAR
1849 +
1850 +m4_include([glm4/00gnulib.m4])
1851 +m4_include([glm4/extensions.m4])
1852 +m4_include([glm4/getopt.m4])
1853 +m4_include([glm4/gnulib-common.m4])
1854 +m4_include([glm4/include_next.m4])
1855 +m4_include([glm4/onceonly.m4])
1856 +m4_include([glm4/string_h.m4])
1857 +m4_include([glm4/strndup.m4])
1858 +m4_include([glm4/strnlen.m4])
1859 +m4_include([glm4/strsep.m4])
1860 +m4_include([glm4/unistd_h.m4])
1861
1862 Added: trunk/baselayout-prefix/gnulib/build-aux/config.guess
1863 ===================================================================
1864 --- trunk/baselayout-prefix/gnulib/build-aux/config.guess (rev 0)
1865 +++ trunk/baselayout-prefix/gnulib/build-aux/config.guess 2011-03-31 16:43:45 UTC (rev 1693)
1866 @@ -0,0 +1,1526 @@
1867 +#! /bin/sh
1868 +# Attempt to guess a canonical system name.
1869 +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
1870 +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
1871 +# 2011 Free Software Foundation, Inc.
1872 +
1873 +timestamp='2011-02-02'
1874 +
1875 +# This file is free software; you can redistribute it and/or modify it
1876 +# under the terms of the GNU General Public License as published by
1877 +# the Free Software Foundation; either version 2 of the License, or
1878 +# (at your option) any later version.
1879 +#
1880 +# This program is distributed in the hope that it will be useful, but
1881 +# WITHOUT ANY WARRANTY; without even the implied warranty of
1882 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1883 +# General Public License for more details.
1884 +#
1885 +# You should have received a copy of the GNU General Public License
1886 +# along with this program; if not, write to the Free Software
1887 +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
1888 +# 02110-1301, USA.
1889 +#
1890 +# As a special exception to the GNU General Public License, if you
1891 +# distribute this file as part of a program that contains a
1892 +# configuration script generated by Autoconf, you may include it under
1893 +# the same distribution terms that you use for the rest of that program.
1894 +
1895 +
1896 +# Originally written by Per Bothner. Please send patches (context
1897 +# diff format) to <config-patches@×××.org> and include a ChangeLog
1898 +# entry.
1899 +#
1900 +# This script attempts to guess a canonical system name similar to
1901 +# config.sub. If it succeeds, it prints the system name on stdout, and
1902 +# exits with 0. Otherwise, it exits with 1.
1903 +#
1904 +# You can get the latest version of this script from:
1905 +# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
1906 +
1907 +me=`echo "$0" | sed -e 's,.*/,,'`
1908 +
1909 +usage="\
1910 +Usage: $0 [OPTION]
1911 +
1912 +Output the configuration name of the system \`$me' is run on.
1913 +
1914 +Operation modes:
1915 + -h, --help print this help, then exit
1916 + -t, --time-stamp print date of last modification, then exit
1917 + -v, --version print version number, then exit
1918 +
1919 +Report bugs and patches to <config-patches@×××.org>."
1920 +
1921 +version="\
1922 +GNU config.guess ($timestamp)
1923 +
1924 +Originally written by Per Bothner.
1925 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
1926 +2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free
1927 +Software Foundation, Inc.
1928 +
1929 +This is free software; see the source for copying conditions. There is NO
1930 +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
1931 +
1932 +help="
1933 +Try \`$me --help' for more information."
1934 +
1935 +# Parse command line
1936 +while test $# -gt 0 ; do
1937 + case $1 in
1938 + --time-stamp | --time* | -t )
1939 + echo "$timestamp" ; exit ;;
1940 + --version | -v )
1941 + echo "$version" ; exit ;;
1942 + --help | --h* | -h )
1943 + echo "$usage"; exit ;;
1944 + -- ) # Stop option processing
1945 + shift; break ;;
1946 + - ) # Use stdin as input.
1947 + break ;;
1948 + -* )
1949 + echo "$me: invalid option $1$help" >&2
1950 + exit 1 ;;
1951 + * )
1952 + break ;;
1953 + esac
1954 +done
1955 +
1956 +if test $# != 0; then
1957 + echo "$me: too many arguments$help" >&2
1958 + exit 1
1959 +fi
1960 +
1961 +trap 'exit 1' 1 2 15
1962 +
1963 +# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
1964 +# compiler to aid in system detection is discouraged as it requires
1965 +# temporary files to be created and, as you can see below, it is a
1966 +# headache to deal with in a portable fashion.
1967 +
1968 +# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
1969 +# use `HOST_CC' if defined, but it is deprecated.
1970 +
1971 +# Portable tmp directory creation inspired by the Autoconf team.
1972 +
1973 +set_cc_for_build='
1974 +trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
1975 +trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
1976 +: ${TMPDIR=/tmp} ;
1977 + { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
1978 + { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
1979 + { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
1980 + { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
1981 +dummy=$tmp/dummy ;
1982 +tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
1983 +case $CC_FOR_BUILD,$HOST_CC,$CC in
1984 + ,,) echo "int x;" > $dummy.c ;
1985 + for c in cc gcc c89 c99 ; do
1986 + if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
1987 + CC_FOR_BUILD="$c"; break ;
1988 + fi ;
1989 + done ;
1990 + if test x"$CC_FOR_BUILD" = x ; then
1991 + CC_FOR_BUILD=no_compiler_found ;
1992 + fi
1993 + ;;
1994 + ,,*) CC_FOR_BUILD=$CC ;;
1995 + ,*,*) CC_FOR_BUILD=$HOST_CC ;;
1996 +esac ; set_cc_for_build= ;'
1997 +
1998 +# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
1999 +# (ghazi@×××××××××××.edu 1994-08-24)
2000 +if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
2001 + PATH=$PATH:/.attbin ; export PATH
2002 +fi
2003 +
2004 +UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
2005 +UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
2006 +UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
2007 +UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
2008 +
2009 +case "${UNAME_SYSTEM}" in
2010 +Linux|GNU/*)
2011 + eval $set_cc_for_build
2012 + cat <<-EOF > $dummy.c
2013 + #include <features.h>
2014 + #ifdef __UCLIBC__
2015 + # ifdef __UCLIBC_CONFIG_VERSION__
2016 + LIBC=uclibc __UCLIBC_CONFIG_VERSION__
2017 + # else
2018 + LIBC=uclibc
2019 + # endif
2020 + #else
2021 + # ifdef __dietlibc__
2022 + LIBC=dietlibc
2023 + # else
2024 + LIBC=gnu
2025 + # endif
2026 + #endif
2027 + EOF
2028 + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
2029 + ;;
2030 +esac
2031 +
2032 +# Note: order is significant - the case branches are not exclusive.
2033 +
2034 +case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
2035 + *:NetBSD:*:*)
2036 + # NetBSD (nbsd) targets should (where applicable) match one or
2037 + # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
2038 + # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
2039 + # switched to ELF, *-*-netbsd* would select the old
2040 + # object file format. This provides both forward
2041 + # compatibility and a consistent mechanism for selecting the
2042 + # object file format.
2043 + #
2044 + # Note: NetBSD doesn't particularly care about the vendor
2045 + # portion of the name. We always set it to "unknown".
2046 + sysctl="sysctl -n hw.machine_arch"
2047 + UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
2048 + /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
2049 + case "${UNAME_MACHINE_ARCH}" in
2050 + armeb) machine=armeb-unknown ;;
2051 + arm*) machine=arm-unknown ;;
2052 + sh3el) machine=shl-unknown ;;
2053 + sh3eb) machine=sh-unknown ;;
2054 + sh5el) machine=sh5le-unknown ;;
2055 + *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
2056 + esac
2057 + # The Operating System including object format, if it has switched
2058 + # to ELF recently, or will in the future.
2059 + case "${UNAME_MACHINE_ARCH}" in
2060 + arm*|i386|m68k|ns32k|sh3*|sparc|vax)
2061 + eval $set_cc_for_build
2062 + if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
2063 + | grep -q __ELF__
2064 + then
2065 + # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
2066 + # Return netbsd for either. FIX?
2067 + os=netbsd
2068 + else
2069 + os=netbsdelf
2070 + fi
2071 + ;;
2072 + *)
2073 + os=netbsd
2074 + ;;
2075 + esac
2076 + # The OS release
2077 + # Debian GNU/NetBSD machines have a different userland, and
2078 + # thus, need a distinct triplet. However, they do not need
2079 + # kernel version information, so it can be replaced with a
2080 + # suitable tag, in the style of linux-gnu.
2081 + case "${UNAME_VERSION}" in
2082 + Debian*)
2083 + release='-gnu'
2084 + ;;
2085 + *)
2086 + release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
2087 + ;;
2088 + esac
2089 + # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
2090 + # contains redundant information, the shorter form:
2091 + # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
2092 + echo "${machine}-${os}${release}"
2093 + exit ;;
2094 + *:OpenBSD:*:*)
2095 + UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
2096 + echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
2097 + exit ;;
2098 + *:ekkoBSD:*:*)
2099 + echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
2100 + exit ;;
2101 + *:SolidBSD:*:*)
2102 + echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
2103 + exit ;;
2104 + macppc:MirBSD:*:*)
2105 + echo powerpc-unknown-mirbsd${UNAME_RELEASE}
2106 + exit ;;
2107 + *:MirBSD:*:*)
2108 + echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
2109 + exit ;;
2110 + alpha:OSF1:*:*)
2111 + case $UNAME_RELEASE in
2112 + *4.0)
2113 + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
2114 + ;;
2115 + *5.*)
2116 + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
2117 + ;;
2118 + esac
2119 + # According to Compaq, /usr/sbin/psrinfo has been available on
2120 + # OSF/1 and Tru64 systems produced since 1995. I hope that
2121 + # covers most systems running today. This code pipes the CPU
2122 + # types through head -n 1, so we only detect the type of CPU 0.
2123 + ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
2124 + case "$ALPHA_CPU_TYPE" in
2125 + "EV4 (21064)")
2126 + UNAME_MACHINE="alpha" ;;
2127 + "EV4.5 (21064)")
2128 + UNAME_MACHINE="alpha" ;;
2129 + "LCA4 (21066/21068)")
2130 + UNAME_MACHINE="alpha" ;;
2131 + "EV5 (21164)")
2132 + UNAME_MACHINE="alphaev5" ;;
2133 + "EV5.6 (21164A)")
2134 + UNAME_MACHINE="alphaev56" ;;
2135 + "EV5.6 (21164PC)")
2136 + UNAME_MACHINE="alphapca56" ;;
2137 + "EV5.7 (21164PC)")
2138 + UNAME_MACHINE="alphapca57" ;;
2139 + "EV6 (21264)")
2140 + UNAME_MACHINE="alphaev6" ;;
2141 + "EV6.7 (21264A)")
2142 + UNAME_MACHINE="alphaev67" ;;
2143 + "EV6.8CB (21264C)")
2144 + UNAME_MACHINE="alphaev68" ;;
2145 + "EV6.8AL (21264B)")
2146 + UNAME_MACHINE="alphaev68" ;;
2147 + "EV6.8CX (21264D)")
2148 + UNAME_MACHINE="alphaev68" ;;
2149 + "EV6.9A (21264/EV69A)")
2150 + UNAME_MACHINE="alphaev69" ;;
2151 + "EV7 (21364)")
2152 + UNAME_MACHINE="alphaev7" ;;
2153 + "EV7.9 (21364A)")
2154 + UNAME_MACHINE="alphaev79" ;;
2155 + esac
2156 + # A Pn.n version is a patched version.
2157 + # A Vn.n version is a released version.
2158 + # A Tn.n version is a released field test version.
2159 + # A Xn.n version is an unreleased experimental baselevel.
2160 + # 1.2 uses "1.2" for uname -r.
2161 + echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
2162 + # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
2163 + exitcode=$?
2164 + trap '' 0
2165 + exit $exitcode ;;
2166 + Alpha\ *:Windows_NT*:*)
2167 + # How do we know it's Interix rather than the generic POSIX subsystem?
2168 + # Should we change UNAME_MACHINE based on the output of uname instead
2169 + # of the specific Alpha model?
2170 + echo alpha-pc-interix
2171 + exit ;;
2172 + 21064:Windows_NT:50:3)
2173 + echo alpha-dec-winnt3.5
2174 + exit ;;
2175 + Amiga*:UNIX_System_V:4.0:*)
2176 + echo m68k-unknown-sysv4
2177 + exit ;;
2178 + *:[Aa]miga[Oo][Ss]:*:*)
2179 + echo ${UNAME_MACHINE}-unknown-amigaos
2180 + exit ;;
2181 + *:[Mm]orph[Oo][Ss]:*:*)
2182 + echo ${UNAME_MACHINE}-unknown-morphos
2183 + exit ;;
2184 + *:OS/390:*:*)
2185 + echo i370-ibm-openedition
2186 + exit ;;
2187 + *:z/VM:*:*)
2188 + echo s390-ibm-zvmoe
2189 + exit ;;
2190 + *:OS400:*:*)
2191 + echo powerpc-ibm-os400
2192 + exit ;;
2193 + arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
2194 + echo arm-acorn-riscix${UNAME_RELEASE}
2195 + exit ;;
2196 + arm:riscos:*:*|arm:RISCOS:*:*)
2197 + echo arm-unknown-riscos
2198 + exit ;;
2199 + SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
2200 + echo hppa1.1-hitachi-hiuxmpp
2201 + exit ;;
2202 + Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
2203 + # akee@××××××××××××××××.mil (Earle F. Ake) contributed MIS and NILE.
2204 + if test "`(/bin/universe) 2>/dev/null`" = att ; then
2205 + echo pyramid-pyramid-sysv3
2206 + else
2207 + echo pyramid-pyramid-bsd
2208 + fi
2209 + exit ;;
2210 + NILE*:*:*:dcosx)
2211 + echo pyramid-pyramid-svr4
2212 + exit ;;
2213 + DRS?6000:unix:4.0:6*)
2214 + echo sparc-icl-nx6
2215 + exit ;;
2216 + DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
2217 + case `/usr/bin/uname -p` in
2218 + sparc) echo sparc-icl-nx7; exit ;;
2219 + esac ;;
2220 + s390x:SunOS:*:*)
2221 + echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
2222 + exit ;;
2223 + sun4H:SunOS:5.*:*)
2224 + echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
2225 + exit ;;
2226 + sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
2227 + echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
2228 + exit ;;
2229 + i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
2230 + echo i386-pc-auroraux${UNAME_RELEASE}
2231 + exit ;;
2232 + i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
2233 + eval $set_cc_for_build
2234 + SUN_ARCH="i386"
2235 + # If there is a compiler, see if it is configured for 64-bit objects.
2236 + # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
2237 + # This test works for both compilers.
2238 + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
2239 + if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
2240 + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
2241 + grep IS_64BIT_ARCH >/dev/null
2242 + then
2243 + SUN_ARCH="x86_64"
2244 + fi
2245 + fi
2246 + echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
2247 + exit ;;
2248 + sun4*:SunOS:6*:*)
2249 + # According to config.sub, this is the proper way to canonicalize
2250 + # SunOS6. Hard to guess exactly what SunOS6 will be like, but
2251 + # it's likely to be more like Solaris than SunOS4.
2252 + echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
2253 + exit ;;
2254 + sun4*:SunOS:*:*)
2255 + case "`/usr/bin/arch -k`" in
2256 + Series*|S4*)
2257 + UNAME_RELEASE=`uname -v`
2258 + ;;
2259 + esac
2260 + # Japanese Language versions have a version number like `4.1.3-JL'.
2261 + echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
2262 + exit ;;
2263 + sun3*:SunOS:*:*)
2264 + echo m68k-sun-sunos${UNAME_RELEASE}
2265 + exit ;;
2266 + sun*:*:4.2BSD:*)
2267 + UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
2268 + test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
2269 + case "`/bin/arch`" in
2270 + sun3)
2271 + echo m68k-sun-sunos${UNAME_RELEASE}
2272 + ;;
2273 + sun4)
2274 + echo sparc-sun-sunos${UNAME_RELEASE}
2275 + ;;
2276 + esac
2277 + exit ;;
2278 + aushp:SunOS:*:*)
2279 + echo sparc-auspex-sunos${UNAME_RELEASE}
2280 + exit ;;
2281 + # The situation for MiNT is a little confusing. The machine name
2282 + # can be virtually everything (everything which is not
2283 + # "atarist" or "atariste" at least should have a processor
2284 + # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
2285 + # to the lowercase version "mint" (or "freemint"). Finally
2286 + # the system name "TOS" denotes a system which is actually not
2287 + # MiNT. But MiNT is downward compatible to TOS, so this should
2288 + # be no problem.
2289 + atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
2290 + echo m68k-atari-mint${UNAME_RELEASE}
2291 + exit ;;
2292 + atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
2293 + echo m68k-atari-mint${UNAME_RELEASE}
2294 + exit ;;
2295 + *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
2296 + echo m68k-atari-mint${UNAME_RELEASE}
2297 + exit ;;
2298 + milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
2299 + echo m68k-milan-mint${UNAME_RELEASE}
2300 + exit ;;
2301 + hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
2302 + echo m68k-hades-mint${UNAME_RELEASE}
2303 + exit ;;
2304 + *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
2305 + echo m68k-unknown-mint${UNAME_RELEASE}
2306 + exit ;;
2307 + m68k:machten:*:*)
2308 + echo m68k-apple-machten${UNAME_RELEASE}
2309 + exit ;;
2310 + powerpc:machten:*:*)
2311 + echo powerpc-apple-machten${UNAME_RELEASE}
2312 + exit ;;
2313 + RISC*:Mach:*:*)
2314 + echo mips-dec-mach_bsd4.3
2315 + exit ;;
2316 + RISC*:ULTRIX:*:*)
2317 + echo mips-dec-ultrix${UNAME_RELEASE}
2318 + exit ;;
2319 + VAX*:ULTRIX*:*:*)
2320 + echo vax-dec-ultrix${UNAME_RELEASE}
2321 + exit ;;
2322 + 2020:CLIX:*:* | 2430:CLIX:*:*)
2323 + echo clipper-intergraph-clix${UNAME_RELEASE}
2324 + exit ;;
2325 + mips:*:*:UMIPS | mips:*:*:RISCos)
2326 + eval $set_cc_for_build
2327 + sed 's/^ //' << EOF >$dummy.c
2328 +#ifdef __cplusplus
2329 +#include <stdio.h> /* for printf() prototype */
2330 + int main (int argc, char *argv[]) {
2331 +#else
2332 + int main (argc, argv) int argc; char *argv[]; {
2333 +#endif
2334 + #if defined (host_mips) && defined (MIPSEB)
2335 + #if defined (SYSTYPE_SYSV)
2336 + printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
2337 + #endif
2338 + #if defined (SYSTYPE_SVR4)
2339 + printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
2340 + #endif
2341 + #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
2342 + printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
2343 + #endif
2344 + #endif
2345 + exit (-1);
2346 + }
2347 +EOF
2348 + $CC_FOR_BUILD -o $dummy $dummy.c &&
2349 + dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
2350 + SYSTEM_NAME=`$dummy $dummyarg` &&
2351 + { echo "$SYSTEM_NAME"; exit; }
2352 + echo mips-mips-riscos${UNAME_RELEASE}
2353 + exit ;;
2354 + Motorola:PowerMAX_OS:*:*)
2355 + echo powerpc-motorola-powermax
2356 + exit ;;
2357 + Motorola:*:4.3:PL8-*)
2358 + echo powerpc-harris-powermax
2359 + exit ;;
2360 + Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
2361 + echo powerpc-harris-powermax
2362 + exit ;;
2363 + Night_Hawk:Power_UNIX:*:*)
2364 + echo powerpc-harris-powerunix
2365 + exit ;;
2366 + m88k:CX/UX:7*:*)
2367 + echo m88k-harris-cxux7
2368 + exit ;;
2369 + m88k:*:4*:R4*)
2370 + echo m88k-motorola-sysv4
2371 + exit ;;
2372 + m88k:*:3*:R3*)
2373 + echo m88k-motorola-sysv3
2374 + exit ;;
2375 + AViiON:dgux:*:*)
2376 + # DG/UX returns AViiON for all architectures
2377 + UNAME_PROCESSOR=`/usr/bin/uname -p`
2378 + if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
2379 + then
2380 + if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
2381 + [ ${TARGET_BINARY_INTERFACE}x = x ]
2382 + then
2383 + echo m88k-dg-dgux${UNAME_RELEASE}
2384 + else
2385 + echo m88k-dg-dguxbcs${UNAME_RELEASE}
2386 + fi
2387 + else
2388 + echo i586-dg-dgux${UNAME_RELEASE}
2389 + fi
2390 + exit ;;
2391 + M88*:DolphinOS:*:*) # DolphinOS (SVR3)
2392 + echo m88k-dolphin-sysv3
2393 + exit ;;
2394 + M88*:*:R3*:*)
2395 + # Delta 88k system running SVR3
2396 + echo m88k-motorola-sysv3
2397 + exit ;;
2398 + XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
2399 + echo m88k-tektronix-sysv3
2400 + exit ;;
2401 + Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
2402 + echo m68k-tektronix-bsd
2403 + exit ;;
2404 + *:IRIX*:*:*)
2405 + echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
2406 + exit ;;
2407 + ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
2408 + echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
2409 + exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
2410 + i*86:AIX:*:*)
2411 + echo i386-ibm-aix
2412 + exit ;;
2413 + ia64:AIX:*:*)
2414 + if [ -x /usr/bin/oslevel ] ; then
2415 + IBM_REV=`/usr/bin/oslevel`
2416 + else
2417 + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
2418 + fi
2419 + echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
2420 + exit ;;
2421 + *:AIX:2:3)
2422 + if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
2423 + eval $set_cc_for_build
2424 + sed 's/^ //' << EOF >$dummy.c
2425 + #include <sys/systemcfg.h>
2426 +
2427 + main()
2428 + {
2429 + if (!__power_pc())
2430 + exit(1);
2431 + puts("powerpc-ibm-aix3.2.5");
2432 + exit(0);
2433 + }
2434 +EOF
2435 + if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
2436 + then
2437 + echo "$SYSTEM_NAME"
2438 + else
2439 + echo rs6000-ibm-aix3.2.5
2440 + fi
2441 + elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
2442 + echo rs6000-ibm-aix3.2.4
2443 + else
2444 + echo rs6000-ibm-aix3.2
2445 + fi
2446 + exit ;;
2447 + *:AIX:*:[4567])
2448 + IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
2449 + if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
2450 + IBM_ARCH=rs6000
2451 + else
2452 + IBM_ARCH=powerpc
2453 + fi
2454 + if [ -x /usr/bin/oslevel ] ; then
2455 + IBM_REV=`/usr/bin/oslevel`
2456 + else
2457 + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
2458 + fi
2459 + echo ${IBM_ARCH}-ibm-aix${IBM_REV}
2460 + exit ;;
2461 + *:AIX:*:*)
2462 + echo rs6000-ibm-aix
2463 + exit ;;
2464 + ibmrt:4.4BSD:*|romp-ibm:BSD:*)
2465 + echo romp-ibm-bsd4.4
2466 + exit ;;
2467 + ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
2468 + echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
2469 + exit ;; # report: romp-ibm BSD 4.3
2470 + *:BOSX:*:*)
2471 + echo rs6000-bull-bosx
2472 + exit ;;
2473 + DPX/2?00:B.O.S.:*:*)
2474 + echo m68k-bull-sysv3
2475 + exit ;;
2476 + 9000/[34]??:4.3bsd:1.*:*)
2477 + echo m68k-hp-bsd
2478 + exit ;;
2479 + hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
2480 + echo m68k-hp-bsd4.4
2481 + exit ;;
2482 + 9000/[34678]??:HP-UX:*:*)
2483 + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
2484 + case "${UNAME_MACHINE}" in
2485 + 9000/31? ) HP_ARCH=m68000 ;;
2486 + 9000/[34]?? ) HP_ARCH=m68k ;;
2487 + 9000/[678][0-9][0-9])
2488 + if [ -x /usr/bin/getconf ]; then
2489 + sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
2490 + sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
2491 + case "${sc_cpu_version}" in
2492 + 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
2493 + 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
2494 + 532) # CPU_PA_RISC2_0
2495 + case "${sc_kernel_bits}" in
2496 + 32) HP_ARCH="hppa2.0n" ;;
2497 + 64) HP_ARCH="hppa2.0w" ;;
2498 + '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
2499 + esac ;;
2500 + esac
2501 + fi
2502 + if [ "${HP_ARCH}" = "" ]; then
2503 + eval $set_cc_for_build
2504 + sed 's/^ //' << EOF >$dummy.c
2505 +
2506 + #define _HPUX_SOURCE
2507 + #include <stdlib.h>
2508 + #include <unistd.h>
2509 +
2510 + int main ()
2511 + {
2512 + #if defined(_SC_KERNEL_BITS)
2513 + long bits = sysconf(_SC_KERNEL_BITS);
2514 + #endif
2515 + long cpu = sysconf (_SC_CPU_VERSION);
2516 +
2517 + switch (cpu)
2518 + {
2519 + case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
2520 + case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
2521 + case CPU_PA_RISC2_0:
2522 + #if defined(_SC_KERNEL_BITS)
2523 + switch (bits)
2524 + {
2525 + case 64: puts ("hppa2.0w"); break;
2526 + case 32: puts ("hppa2.0n"); break;
2527 + default: puts ("hppa2.0"); break;
2528 + } break;
2529 + #else /* !defined(_SC_KERNEL_BITS) */
2530 + puts ("hppa2.0"); break;
2531 + #endif
2532 + default: puts ("hppa1.0"); break;
2533 + }
2534 + exit (0);
2535 + }
2536 +EOF
2537 + (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
2538 + test -z "$HP_ARCH" && HP_ARCH=hppa
2539 + fi ;;
2540 + esac
2541 + if [ ${HP_ARCH} = "hppa2.0w" ]
2542 + then
2543 + eval $set_cc_for_build
2544 +
2545 + # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
2546 + # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
2547 + # generating 64-bit code. GNU and HP use different nomenclature:
2548 + #
2549 + # $ CC_FOR_BUILD=cc ./config.guess
2550 + # => hppa2.0w-hp-hpux11.23
2551 + # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
2552 + # => hppa64-hp-hpux11.23
2553 +
2554 + if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
2555 + grep -q __LP64__
2556 + then
2557 + HP_ARCH="hppa2.0w"
2558 + else
2559 + HP_ARCH="hppa64"
2560 + fi
2561 + fi
2562 + echo ${HP_ARCH}-hp-hpux${HPUX_REV}
2563 + exit ;;
2564 + ia64:HP-UX:*:*)
2565 + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
2566 + echo ia64-hp-hpux${HPUX_REV}
2567 + exit ;;
2568 + 3050*:HI-UX:*:*)
2569 + eval $set_cc_for_build
2570 + sed 's/^ //' << EOF >$dummy.c
2571 + #include <unistd.h>
2572 + int
2573 + main ()
2574 + {
2575 + long cpu = sysconf (_SC_CPU_VERSION);
2576 + /* The order matters, because CPU_IS_HP_MC68K erroneously returns
2577 + true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
2578 + results, however. */
2579 + if (CPU_IS_PA_RISC (cpu))
2580 + {
2581 + switch (cpu)
2582 + {
2583 + case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
2584 + case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
2585 + case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
2586 + default: puts ("hppa-hitachi-hiuxwe2"); break;
2587 + }
2588 + }
2589 + else if (CPU_IS_HP_MC68K (cpu))
2590 + puts ("m68k-hitachi-hiuxwe2");
2591 + else puts ("unknown-hitachi-hiuxwe2");
2592 + exit (0);
2593 + }
2594 +EOF
2595 + $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
2596 + { echo "$SYSTEM_NAME"; exit; }
2597 + echo unknown-hitachi-hiuxwe2
2598 + exit ;;
2599 + 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
2600 + echo hppa1.1-hp-bsd
2601 + exit ;;
2602 + 9000/8??:4.3bsd:*:*)
2603 + echo hppa1.0-hp-bsd
2604 + exit ;;
2605 + *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
2606 + echo hppa1.0-hp-mpeix
2607 + exit ;;
2608 + hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
2609 + echo hppa1.1-hp-osf
2610 + exit ;;
2611 + hp8??:OSF1:*:*)
2612 + echo hppa1.0-hp-osf
2613 + exit ;;
2614 + i*86:OSF1:*:*)
2615 + if [ -x /usr/sbin/sysversion ] ; then
2616 + echo ${UNAME_MACHINE}-unknown-osf1mk
2617 + else
2618 + echo ${UNAME_MACHINE}-unknown-osf1
2619 + fi
2620 + exit ;;
2621 + parisc*:Lites*:*:*)
2622 + echo hppa1.1-hp-lites
2623 + exit ;;
2624 + C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
2625 + echo c1-convex-bsd
2626 + exit ;;
2627 + C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
2628 + if getsysinfo -f scalar_acc
2629 + then echo c32-convex-bsd
2630 + else echo c2-convex-bsd
2631 + fi
2632 + exit ;;
2633 + C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
2634 + echo c34-convex-bsd
2635 + exit ;;
2636 + C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
2637 + echo c38-convex-bsd
2638 + exit ;;
2639 + C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
2640 + echo c4-convex-bsd
2641 + exit ;;
2642 + CRAY*Y-MP:*:*:*)
2643 + echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
2644 + exit ;;
2645 + CRAY*[A-Z]90:*:*:*)
2646 + echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
2647 + | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
2648 + -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
2649 + -e 's/\.[^.]*$/.X/'
2650 + exit ;;
2651 + CRAY*TS:*:*:*)
2652 + echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
2653 + exit ;;
2654 + CRAY*T3E:*:*:*)
2655 + echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
2656 + exit ;;
2657 + CRAY*SV1:*:*:*)
2658 + echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
2659 + exit ;;
2660 + *:UNICOS/mp:*:*)
2661 + echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
2662 + exit ;;
2663 + F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
2664 + FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
2665 + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
2666 + FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
2667 + echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
2668 + exit ;;
2669 + 5000:UNIX_System_V:4.*:*)
2670 + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
2671 + FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
2672 + echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
2673 + exit ;;
2674 + i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
2675 + echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
2676 + exit ;;
2677 + sparc*:BSD/OS:*:*)
2678 + echo sparc-unknown-bsdi${UNAME_RELEASE}
2679 + exit ;;
2680 + *:BSD/OS:*:*)
2681 + echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
2682 + exit ;;
2683 + *:FreeBSD:*:*)
2684 + case ${UNAME_MACHINE} in
2685 + pc98)
2686 + echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
2687 + amd64)
2688 + echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
2689 + *)
2690 + echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
2691 + esac
2692 + exit ;;
2693 + i*:CYGWIN*:*)
2694 + echo ${UNAME_MACHINE}-pc-cygwin
2695 + exit ;;
2696 + *:MINGW*:*)
2697 + echo ${UNAME_MACHINE}-pc-mingw32
2698 + exit ;;
2699 + i*:windows32*:*)
2700 + # uname -m includes "-pc" on this system.
2701 + echo ${UNAME_MACHINE}-mingw32
2702 + exit ;;
2703 + i*:PW*:*)
2704 + echo ${UNAME_MACHINE}-pc-pw32
2705 + exit ;;
2706 + *:Interix*:*)
2707 + case ${UNAME_MACHINE} in
2708 + x86)
2709 + echo i586-pc-interix${UNAME_RELEASE}
2710 + exit ;;
2711 + authenticamd | genuineintel | EM64T)
2712 + echo x86_64-unknown-interix${UNAME_RELEASE}
2713 + exit ;;
2714 + IA64)
2715 + echo ia64-unknown-interix${UNAME_RELEASE}
2716 + exit ;;
2717 + esac ;;
2718 + [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
2719 + echo i${UNAME_MACHINE}-pc-mks
2720 + exit ;;
2721 + 8664:Windows_NT:*)
2722 + echo x86_64-pc-mks
2723 + exit ;;
2724 + i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
2725 + # How do we know it's Interix rather than the generic POSIX subsystem?
2726 + # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
2727 + # UNAME_MACHINE based on the output of uname instead of i386?
2728 + echo i586-pc-interix
2729 + exit ;;
2730 + i*:UWIN*:*)
2731 + echo ${UNAME_MACHINE}-pc-uwin
2732 + exit ;;
2733 + amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
2734 + echo x86_64-unknown-cygwin
2735 + exit ;;
2736 + p*:CYGWIN*:*)
2737 + echo powerpcle-unknown-cygwin
2738 + exit ;;
2739 + prep*:SunOS:5.*:*)
2740 + echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
2741 + exit ;;
2742 + *:GNU:*:*)
2743 + # the GNU system
2744 + echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
2745 + exit ;;
2746 + *:GNU/*:*:*)
2747 + # other systems with GNU libc and userland
2748 + echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
2749 + exit ;;
2750 + i*86:Minix:*:*)
2751 + echo ${UNAME_MACHINE}-pc-minix
2752 + exit ;;
2753 + alpha:Linux:*:*)
2754 + case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
2755 + EV5) UNAME_MACHINE=alphaev5 ;;
2756 + EV56) UNAME_MACHINE=alphaev56 ;;
2757 + PCA56) UNAME_MACHINE=alphapca56 ;;
2758 + PCA57) UNAME_MACHINE=alphapca56 ;;
2759 + EV6) UNAME_MACHINE=alphaev6 ;;
2760 + EV67) UNAME_MACHINE=alphaev67 ;;
2761 + EV68*) UNAME_MACHINE=alphaev68 ;;
2762 + esac
2763 + objdump --private-headers /bin/sh | grep -q ld.so.1
2764 + if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
2765 + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
2766 + exit ;;
2767 + arm*:Linux:*:*)
2768 + eval $set_cc_for_build
2769 + if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
2770 + | grep -q __ARM_EABI__
2771 + then
2772 + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
2773 + else
2774 + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
2775 + fi
2776 + exit ;;
2777 + avr32*:Linux:*:*)
2778 + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
2779 + exit ;;
2780 + cris:Linux:*:*)
2781 + echo cris-axis-linux-${LIBC}
2782 + exit ;;
2783 + crisv32:Linux:*:*)
2784 + echo crisv32-axis-linux-${LIBC}
2785 + exit ;;
2786 + frv:Linux:*:*)
2787 + echo frv-unknown-linux-${LIBC}
2788 + exit ;;
2789 + i*86:Linux:*:*)
2790 + echo ${UNAME_MACHINE}-pc-linux-${LIBC}
2791 + exit ;;
2792 + ia64:Linux:*:*)
2793 + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
2794 + exit ;;
2795 + m32r*:Linux:*:*)
2796 + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
2797 + exit ;;
2798 + m68*:Linux:*:*)
2799 + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
2800 + exit ;;
2801 + mips:Linux:*:* | mips64:Linux:*:*)
2802 + eval $set_cc_for_build
2803 + sed 's/^ //' << EOF >$dummy.c
2804 + #undef CPU
2805 + #undef ${UNAME_MACHINE}
2806 + #undef ${UNAME_MACHINE}el
2807 + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
2808 + CPU=${UNAME_MACHINE}el
2809 + #else
2810 + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
2811 + CPU=${UNAME_MACHINE}
2812 + #else
2813 + CPU=
2814 + #endif
2815 + #endif
2816 +EOF
2817 + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
2818 + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
2819 + ;;
2820 + or32:Linux:*:*)
2821 + echo or32-unknown-linux-${LIBC}
2822 + exit ;;
2823 + padre:Linux:*:*)
2824 + echo sparc-unknown-linux-${LIBC}
2825 + exit ;;
2826 + parisc64:Linux:*:* | hppa64:Linux:*:*)
2827 + echo hppa64-unknown-linux-${LIBC}
2828 + exit ;;
2829 + parisc:Linux:*:* | hppa:Linux:*:*)
2830 + # Look for CPU level
2831 + case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
2832 + PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
2833 + PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
2834 + *) echo hppa-unknown-linux-${LIBC} ;;
2835 + esac
2836 + exit ;;
2837 + ppc64:Linux:*:*)
2838 + echo powerpc64-unknown-linux-${LIBC}
2839 + exit ;;
2840 + ppc:Linux:*:*)
2841 + echo powerpc-unknown-linux-${LIBC}
2842 + exit ;;
2843 + s390:Linux:*:* | s390x:Linux:*:*)
2844 + echo ${UNAME_MACHINE}-ibm-linux
2845 + exit ;;
2846 + sh64*:Linux:*:*)
2847 + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
2848 + exit ;;
2849 + sh*:Linux:*:*)
2850 + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
2851 + exit ;;
2852 + sparc:Linux:*:* | sparc64:Linux:*:*)
2853 + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
2854 + exit ;;
2855 + tile*:Linux:*:*)
2856 + echo ${UNAME_MACHINE}-tilera-linux-gnu
2857 + exit ;;
2858 + vax:Linux:*:*)
2859 + echo ${UNAME_MACHINE}-dec-linux-${LIBC}
2860 + exit ;;
2861 + x86_64:Linux:*:*)
2862 + echo x86_64-unknown-linux-${LIBC}
2863 + exit ;;
2864 + xtensa*:Linux:*:*)
2865 + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
2866 + exit ;;
2867 + i*86:DYNIX/ptx:4*:*)
2868 + # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
2869 + # earlier versions are messed up and put the nodename in both
2870 + # sysname and nodename.
2871 + echo i386-sequent-sysv4
2872 + exit ;;
2873 + i*86:UNIX_SV:4.2MP:2.*)
2874 + # Unixware is an offshoot of SVR4, but it has its own version
2875 + # number series starting with 2...
2876 + # I am not positive that other SVR4 systems won't match this,
2877 + # I just have to hope. -- rms.
2878 + # Use sysv4.2uw... so that sysv4* matches it.
2879 + echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
2880 + exit ;;
2881 + i*86:OS/2:*:*)
2882 + # If we were able to find `uname', then EMX Unix compatibility
2883 + # is probably installed.
2884 + echo ${UNAME_MACHINE}-pc-os2-emx
2885 + exit ;;
2886 + i*86:XTS-300:*:STOP)
2887 + echo ${UNAME_MACHINE}-unknown-stop
2888 + exit ;;
2889 + i*86:atheos:*:*)
2890 + echo ${UNAME_MACHINE}-unknown-atheos
2891 + exit ;;
2892 + i*86:syllable:*:*)
2893 + echo ${UNAME_MACHINE}-pc-syllable
2894 + exit ;;
2895 + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
2896 + echo i386-unknown-lynxos${UNAME_RELEASE}
2897 + exit ;;
2898 + i*86:*DOS:*:*)
2899 + echo ${UNAME_MACHINE}-pc-msdosdjgpp
2900 + exit ;;
2901 + i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
2902 + UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
2903 + if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
2904 + echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
2905 + else
2906 + echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
2907 + fi
2908 + exit ;;
2909 + i*86:*:5:[678]*)
2910 + # UnixWare 7.x, OpenUNIX and OpenServer 6.
2911 + case `/bin/uname -X | grep "^Machine"` in
2912 + *486*) UNAME_MACHINE=i486 ;;
2913 + *Pentium) UNAME_MACHINE=i586 ;;
2914 + *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
2915 + esac
2916 + echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
2917 + exit ;;
2918 + i*86:*:3.2:*)
2919 + if test -f /usr/options/cb.name; then
2920 + UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
2921 + echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
2922 + elif /bin/uname -X 2>/dev/null >/dev/null ; then
2923 + UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
2924 + (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
2925 + (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
2926 + && UNAME_MACHINE=i586
2927 + (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
2928 + && UNAME_MACHINE=i686
2929 + (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
2930 + && UNAME_MACHINE=i686
2931 + echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
2932 + else
2933 + echo ${UNAME_MACHINE}-pc-sysv32
2934 + fi
2935 + exit ;;
2936 + pc:*:*:*)
2937 + # Left here for compatibility:
2938 + # uname -m prints for DJGPP always 'pc', but it prints nothing about
2939 + # the processor, so we play safe by assuming i586.
2940 + # Note: whatever this is, it MUST be the same as what config.sub
2941 + # prints for the "djgpp" host, or else GDB configury will decide that
2942 + # this is a cross-build.
2943 + echo i586-pc-msdosdjgpp
2944 + exit ;;
2945 + Intel:Mach:3*:*)
2946 + echo i386-pc-mach3
2947 + exit ;;
2948 + paragon:*:*:*)
2949 + echo i860-intel-osf1
2950 + exit ;;
2951 + i860:*:4.*:*) # i860-SVR4
2952 + if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
2953 + echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
2954 + else # Add other i860-SVR4 vendors below as they are discovered.
2955 + echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
2956 + fi
2957 + exit ;;
2958 + mini*:CTIX:SYS*5:*)
2959 + # "miniframe"
2960 + echo m68010-convergent-sysv
2961 + exit ;;
2962 + mc68k:UNIX:SYSTEM5:3.51m)
2963 + echo m68k-convergent-sysv
2964 + exit ;;
2965 + M680?0:D-NIX:5.3:*)
2966 + echo m68k-diab-dnix
2967 + exit ;;
2968 + M68*:*:R3V[5678]*:*)
2969 + test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
2970 + 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
2971 + OS_REL=''
2972 + test -r /etc/.relid \
2973 + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
2974 + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
2975 + && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
2976 + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
2977 + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
2978 + 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
2979 + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
2980 + && { echo i486-ncr-sysv4; exit; } ;;
2981 + NCR*:*:4.2:* | MPRAS*:*:4.2:*)
2982 + OS_REL='.3'
2983 + test -r /etc/.relid \
2984 + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
2985 + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
2986 + && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
2987 + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
2988 + && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
2989 + /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
2990 + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
2991 + m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
2992 + echo m68k-unknown-lynxos${UNAME_RELEASE}
2993 + exit ;;
2994 + mc68030:UNIX_System_V:4.*:*)
2995 + echo m68k-atari-sysv4
2996 + exit ;;
2997 + TSUNAMI:LynxOS:2.*:*)
2998 + echo sparc-unknown-lynxos${UNAME_RELEASE}
2999 + exit ;;
3000 + rs6000:LynxOS:2.*:*)
3001 + echo rs6000-unknown-lynxos${UNAME_RELEASE}
3002 + exit ;;
3003 + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
3004 + echo powerpc-unknown-lynxos${UNAME_RELEASE}
3005 + exit ;;
3006 + SM[BE]S:UNIX_SV:*:*)
3007 + echo mips-dde-sysv${UNAME_RELEASE}
3008 + exit ;;
3009 + RM*:ReliantUNIX-*:*:*)
3010 + echo mips-sni-sysv4
3011 + exit ;;
3012 + RM*:SINIX-*:*:*)
3013 + echo mips-sni-sysv4
3014 + exit ;;
3015 + *:SINIX-*:*:*)
3016 + if uname -p 2>/dev/null >/dev/null ; then
3017 + UNAME_MACHINE=`(uname -p) 2>/dev/null`
3018 + echo ${UNAME_MACHINE}-sni-sysv4
3019 + else
3020 + echo ns32k-sni-sysv
3021 + fi
3022 + exit ;;
3023 + PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
3024 + # says <Richard.M.Bartel@×××××××××××××.GOV>
3025 + echo i586-unisys-sysv4
3026 + exit ;;
3027 + *:UNIX_System_V:4*:FTX*)
3028 + # From Gerald Hewes <hewes@××××××××××.com>.
3029 + # How about differentiating between stratus architectures? -djm
3030 + echo hppa1.1-stratus-sysv4
3031 + exit ;;
3032 + *:*:*:FTX*)
3033 + # From seanf@××××××××××××.com.
3034 + echo i860-stratus-sysv4
3035 + exit ;;
3036 + i*86:VOS:*:*)
3037 + # From Paul.Green@×××××××.com.
3038 + echo ${UNAME_MACHINE}-stratus-vos
3039 + exit ;;
3040 + *:VOS:*:*)
3041 + # From Paul.Green@×××××××.com.
3042 + echo hppa1.1-stratus-vos
3043 + exit ;;
3044 + mc68*:A/UX:*:*)
3045 + echo m68k-apple-aux${UNAME_RELEASE}
3046 + exit ;;
3047 + news*:NEWS-OS:6*:*)
3048 + echo mips-sony-newsos6
3049 + exit ;;
3050 + R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
3051 + if [ -d /usr/nec ]; then
3052 + echo mips-nec-sysv${UNAME_RELEASE}
3053 + else
3054 + echo mips-unknown-sysv${UNAME_RELEASE}
3055 + fi
3056 + exit ;;
3057 + BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
3058 + echo powerpc-be-beos
3059 + exit ;;
3060 + BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
3061 + echo powerpc-apple-beos
3062 + exit ;;
3063 + BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
3064 + echo i586-pc-beos
3065 + exit ;;
3066 + BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
3067 + echo i586-pc-haiku
3068 + exit ;;
3069 + SX-4:SUPER-UX:*:*)
3070 + echo sx4-nec-superux${UNAME_RELEASE}
3071 + exit ;;
3072 + SX-5:SUPER-UX:*:*)
3073 + echo sx5-nec-superux${UNAME_RELEASE}
3074 + exit ;;
3075 + SX-6:SUPER-UX:*:*)
3076 + echo sx6-nec-superux${UNAME_RELEASE}
3077 + exit ;;
3078 + SX-7:SUPER-UX:*:*)
3079 + echo sx7-nec-superux${UNAME_RELEASE}
3080 + exit ;;
3081 + SX-8:SUPER-UX:*:*)
3082 + echo sx8-nec-superux${UNAME_RELEASE}
3083 + exit ;;
3084 + SX-8R:SUPER-UX:*:*)
3085 + echo sx8r-nec-superux${UNAME_RELEASE}
3086 + exit ;;
3087 + Power*:Rhapsody:*:*)
3088 + echo powerpc-apple-rhapsody${UNAME_RELEASE}
3089 + exit ;;
3090 + *:Rhapsody:*:*)
3091 + echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
3092 + exit ;;
3093 + *:Darwin:*:*)
3094 + UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
3095 + case $UNAME_PROCESSOR in
3096 + i386)
3097 + eval $set_cc_for_build
3098 + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
3099 + if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
3100 + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
3101 + grep IS_64BIT_ARCH >/dev/null
3102 + then
3103 + UNAME_PROCESSOR="x86_64"
3104 + fi
3105 + fi ;;
3106 + unknown) UNAME_PROCESSOR=powerpc ;;
3107 + esac
3108 + echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
3109 + exit ;;
3110 + *:procnto*:*:* | *:QNX:[0123456789]*:*)
3111 + UNAME_PROCESSOR=`uname -p`
3112 + if test "$UNAME_PROCESSOR" = "x86"; then
3113 + UNAME_PROCESSOR=i386
3114 + UNAME_MACHINE=pc
3115 + fi
3116 + echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
3117 + exit ;;
3118 + *:QNX:*:4*)
3119 + echo i386-pc-qnx
3120 + exit ;;
3121 + NEO-?:NONSTOP_KERNEL:*:*)
3122 + echo neo-tandem-nsk${UNAME_RELEASE}
3123 + exit ;;
3124 + NSE-?:NONSTOP_KERNEL:*:*)
3125 + echo nse-tandem-nsk${UNAME_RELEASE}
3126 + exit ;;
3127 + NSR-?:NONSTOP_KERNEL:*:*)
3128 + echo nsr-tandem-nsk${UNAME_RELEASE}
3129 + exit ;;
3130 + *:NonStop-UX:*:*)
3131 + echo mips-compaq-nonstopux
3132 + exit ;;
3133 + BS2000:POSIX*:*:*)
3134 + echo bs2000-siemens-sysv
3135 + exit ;;
3136 + DS/*:UNIX_System_V:*:*)
3137 + echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
3138 + exit ;;
3139 + *:Plan9:*:*)
3140 + # "uname -m" is not consistent, so use $cputype instead. 386
3141 + # is converted to i386 for consistency with other x86
3142 + # operating systems.
3143 + if test "$cputype" = "386"; then
3144 + UNAME_MACHINE=i386
3145 + else
3146 + UNAME_MACHINE="$cputype"
3147 + fi
3148 + echo ${UNAME_MACHINE}-unknown-plan9
3149 + exit ;;
3150 + *:TOPS-10:*:*)
3151 + echo pdp10-unknown-tops10
3152 + exit ;;
3153 + *:TENEX:*:*)
3154 + echo pdp10-unknown-tenex
3155 + exit ;;
3156 + KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
3157 + echo pdp10-dec-tops20
3158 + exit ;;
3159 + XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
3160 + echo pdp10-xkl-tops20
3161 + exit ;;
3162 + *:TOPS-20:*:*)
3163 + echo pdp10-unknown-tops20
3164 + exit ;;
3165 + *:ITS:*:*)
3166 + echo pdp10-unknown-its
3167 + exit ;;
3168 + SEI:*:*:SEIUX)
3169 + echo mips-sei-seiux${UNAME_RELEASE}
3170 + exit ;;
3171 + *:DragonFly:*:*)
3172 + echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
3173 + exit ;;
3174 + *:*VMS:*:*)
3175 + UNAME_MACHINE=`(uname -p) 2>/dev/null`
3176 + case "${UNAME_MACHINE}" in
3177 + A*) echo alpha-dec-vms ; exit ;;
3178 + I*) echo ia64-dec-vms ; exit ;;
3179 + V*) echo vax-dec-vms ; exit ;;
3180 + esac ;;
3181 + *:XENIX:*:SysV)
3182 + echo i386-pc-xenix
3183 + exit ;;
3184 + i*86:skyos:*:*)
3185 + echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
3186 + exit ;;
3187 + i*86:rdos:*:*)
3188 + echo ${UNAME_MACHINE}-pc-rdos
3189 + exit ;;
3190 + i*86:AROS:*:*)
3191 + echo ${UNAME_MACHINE}-pc-aros
3192 + exit ;;
3193 +esac
3194 +
3195 +#echo '(No uname command or uname output not recognized.)' 1>&2
3196 +#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
3197 +
3198 +eval $set_cc_for_build
3199 +cat >$dummy.c <<EOF
3200 +#ifdef _SEQUENT_
3201 +# include <sys/types.h>
3202 +# include <sys/utsname.h>
3203 +#endif
3204 +main ()
3205 +{
3206 +#if defined (sony)
3207 +#if defined (MIPSEB)
3208 + /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
3209 + I don't know.... */
3210 + printf ("mips-sony-bsd\n"); exit (0);
3211 +#else
3212 +#include <sys/param.h>
3213 + printf ("m68k-sony-newsos%s\n",
3214 +#ifdef NEWSOS4
3215 + "4"
3216 +#else
3217 + ""
3218 +#endif
3219 + ); exit (0);
3220 +#endif
3221 +#endif
3222 +
3223 +#if defined (__arm) && defined (__acorn) && defined (__unix)
3224 + printf ("arm-acorn-riscix\n"); exit (0);
3225 +#endif
3226 +
3227 +#if defined (hp300) && !defined (hpux)
3228 + printf ("m68k-hp-bsd\n"); exit (0);
3229 +#endif
3230 +
3231 +#if defined (NeXT)
3232 +#if !defined (__ARCHITECTURE__)
3233 +#define __ARCHITECTURE__ "m68k"
3234 +#endif
3235 + int version;
3236 + version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
3237 + if (version < 4)
3238 + printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
3239 + else
3240 + printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
3241 + exit (0);
3242 +#endif
3243 +
3244 +#if defined (MULTIMAX) || defined (n16)
3245 +#if defined (UMAXV)
3246 + printf ("ns32k-encore-sysv\n"); exit (0);
3247 +#else
3248 +#if defined (CMU)
3249 + printf ("ns32k-encore-mach\n"); exit (0);
3250 +#else
3251 + printf ("ns32k-encore-bsd\n"); exit (0);
3252 +#endif
3253 +#endif
3254 +#endif
3255 +
3256 +#if defined (__386BSD__)
3257 + printf ("i386-pc-bsd\n"); exit (0);
3258 +#endif
3259 +
3260 +#if defined (sequent)
3261 +#if defined (i386)
3262 + printf ("i386-sequent-dynix\n"); exit (0);
3263 +#endif
3264 +#if defined (ns32000)
3265 + printf ("ns32k-sequent-dynix\n"); exit (0);
3266 +#endif
3267 +#endif
3268 +
3269 +#if defined (_SEQUENT_)
3270 + struct utsname un;
3271 +
3272 + uname(&un);
3273 +
3274 + if (strncmp(un.version, "V2", 2) == 0) {
3275 + printf ("i386-sequent-ptx2\n"); exit (0);
3276 + }
3277 + if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
3278 + printf ("i386-sequent-ptx1\n"); exit (0);
3279 + }
3280 + printf ("i386-sequent-ptx\n"); exit (0);
3281 +
3282 +#endif
3283 +
3284 +#if defined (vax)
3285 +# if !defined (ultrix)
3286 +# include <sys/param.h>
3287 +# if defined (BSD)
3288 +# if BSD == 43
3289 + printf ("vax-dec-bsd4.3\n"); exit (0);
3290 +# else
3291 +# if BSD == 199006
3292 + printf ("vax-dec-bsd4.3reno\n"); exit (0);
3293 +# else
3294 + printf ("vax-dec-bsd\n"); exit (0);
3295 +# endif
3296 +# endif
3297 +# else
3298 + printf ("vax-dec-bsd\n"); exit (0);
3299 +# endif
3300 +# else
3301 + printf ("vax-dec-ultrix\n"); exit (0);
3302 +# endif
3303 +#endif
3304 +
3305 +#if defined (alliant) && defined (i860)
3306 + printf ("i860-alliant-bsd\n"); exit (0);
3307 +#endif
3308 +
3309 + exit (1);
3310 +}
3311 +EOF
3312 +
3313 +$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
3314 + { echo "$SYSTEM_NAME"; exit; }
3315 +
3316 +# Apollos put the system type in the environment.
3317 +
3318 +test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
3319 +
3320 +# Convex versions that predate uname can use getsysinfo(1)
3321 +
3322 +if [ -x /usr/convex/getsysinfo ]
3323 +then
3324 + case `getsysinfo -f cpu_type` in
3325 + c1*)
3326 + echo c1-convex-bsd
3327 + exit ;;
3328 + c2*)
3329 + if getsysinfo -f scalar_acc
3330 + then echo c32-convex-bsd
3331 + else echo c2-convex-bsd
3332 + fi
3333 + exit ;;
3334 + c34*)
3335 + echo c34-convex-bsd
3336 + exit ;;
3337 + c38*)
3338 + echo c38-convex-bsd
3339 + exit ;;
3340 + c4*)
3341 + echo c4-convex-bsd
3342 + exit ;;
3343 + esac
3344 +fi
3345 +
3346 +cat >&2 <<EOF
3347 +$0: unable to guess system type
3348 +
3349 +This script, last modified $timestamp, has failed to recognize
3350 +the operating system you are using. It is advised that you
3351 +download the most up to date version of the config scripts from
3352 +
3353 + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
3354 +and
3355 + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
3356 +
3357 +If the version you run ($0) is already up to date, please
3358 +send the following data and any information you think might be
3359 +pertinent to <config-patches@×××.org> in order to provide the needed
3360 +information to handle your system.
3361 +
3362 +config.guess timestamp = $timestamp
3363 +
3364 +uname -m = `(uname -m) 2>/dev/null || echo unknown`
3365 +uname -r = `(uname -r) 2>/dev/null || echo unknown`
3366 +uname -s = `(uname -s) 2>/dev/null || echo unknown`
3367 +uname -v = `(uname -v) 2>/dev/null || echo unknown`
3368 +
3369 +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
3370 +/bin/uname -X = `(/bin/uname -X) 2>/dev/null`
3371 +
3372 +hostinfo = `(hostinfo) 2>/dev/null`
3373 +/bin/universe = `(/bin/universe) 2>/dev/null`
3374 +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
3375 +/bin/arch = `(/bin/arch) 2>/dev/null`
3376 +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
3377 +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
3378 +
3379 +UNAME_MACHINE = ${UNAME_MACHINE}
3380 +UNAME_RELEASE = ${UNAME_RELEASE}
3381 +UNAME_SYSTEM = ${UNAME_SYSTEM}
3382 +UNAME_VERSION = ${UNAME_VERSION}
3383 +EOF
3384 +
3385 +exit 1
3386 +
3387 +# Local variables:
3388 +# eval: (add-hook 'write-file-hooks 'time-stamp)
3389 +# time-stamp-start: "timestamp='"
3390 +# time-stamp-format: "%:y-%02m-%02d"
3391 +# time-stamp-end: "'"
3392 +# End:
3393
3394
3395 Property changes on: trunk/baselayout-prefix/gnulib/build-aux/config.guess
3396 ___________________________________________________________________
3397 Added: svn:executable
3398 + *
3399
3400 Added: trunk/baselayout-prefix/gnulib/build-aux/config.sub
3401 ===================================================================
3402 --- trunk/baselayout-prefix/gnulib/build-aux/config.sub (rev 0)
3403 +++ trunk/baselayout-prefix/gnulib/build-aux/config.sub 2011-03-31 16:43:45 UTC (rev 1693)
3404 @@ -0,0 +1,1757 @@
3405 +#! /bin/sh
3406 +# Configuration validation subroutine script.
3407 +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3408 +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
3409 +# 2011 Free Software Foundation, Inc.
3410 +
3411 +timestamp='2011-02-02'
3412 +
3413 +# This file is (in principle) common to ALL GNU software.
3414 +# The presence of a machine in this file suggests that SOME GNU software
3415 +# can handle that machine. It does not imply ALL GNU software can.
3416 +#
3417 +# This file is free software; you can redistribute it and/or modify
3418 +# it under the terms of the GNU General Public License as published by
3419 +# the Free Software Foundation; either version 2 of the License, or
3420 +# (at your option) any later version.
3421 +#
3422 +# This program is distributed in the hope that it will be useful,
3423 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
3424 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
3425 +# GNU General Public License for more details.
3426 +#
3427 +# You should have received a copy of the GNU General Public License
3428 +# along with this program; if not, write to the Free Software
3429 +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
3430 +# 02110-1301, USA.
3431 +#
3432 +# As a special exception to the GNU General Public License, if you
3433 +# distribute this file as part of a program that contains a
3434 +# configuration script generated by Autoconf, you may include it under
3435 +# the same distribution terms that you use for the rest of that program.
3436 +
3437 +
3438 +# Please send patches to <config-patches@×××.org>. Submit a context
3439 +# diff and a properly formatted GNU ChangeLog entry.
3440 +#
3441 +# Configuration subroutine to validate and canonicalize a configuration type.
3442 +# Supply the specified configuration type as an argument.
3443 +# If it is invalid, we print an error message on stderr and exit with code 1.
3444 +# Otherwise, we print the canonical config type on stdout and succeed.
3445 +
3446 +# You can get the latest version of this script from:
3447 +# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
3448 +
3449 +# This file is supposed to be the same for all GNU packages
3450 +# and recognize all the CPU types, system types and aliases
3451 +# that are meaningful with *any* GNU software.
3452 +# Each package is responsible for reporting which valid configurations
3453 +# it does not support. The user should be able to distinguish
3454 +# a failure to support a valid configuration from a meaningless
3455 +# configuration.
3456 +
3457 +# The goal of this file is to map all the various variations of a given
3458 +# machine specification into a single specification in the form:
3459 +# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
3460 +# or in some cases, the newer four-part form:
3461 +# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
3462 +# It is wrong to echo any other type of specification.
3463 +
3464 +me=`echo "$0" | sed -e 's,.*/,,'`
3465 +
3466 +usage="\
3467 +Usage: $0 [OPTION] CPU-MFR-OPSYS
3468 + $0 [OPTION] ALIAS
3469 +
3470 +Canonicalize a configuration name.
3471 +
3472 +Operation modes:
3473 + -h, --help print this help, then exit
3474 + -t, --time-stamp print date of last modification, then exit
3475 + -v, --version print version number, then exit
3476 +
3477 +Report bugs and patches to <config-patches@×××.org>."
3478 +
3479 +version="\
3480 +GNU config.sub ($timestamp)
3481 +
3482 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
3483 +2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
3484 +Software Foundation, Inc.
3485 +
3486 +This is free software; see the source for copying conditions. There is NO
3487 +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
3488 +
3489 +help="
3490 +Try \`$me --help' for more information."
3491 +
3492 +# Parse command line
3493 +while test $# -gt 0 ; do
3494 + case $1 in
3495 + --time-stamp | --time* | -t )
3496 + echo "$timestamp" ; exit ;;
3497 + --version | -v )
3498 + echo "$version" ; exit ;;
3499 + --help | --h* | -h )
3500 + echo "$usage"; exit ;;
3501 + -- ) # Stop option processing
3502 + shift; break ;;
3503 + - ) # Use stdin as input.
3504 + break ;;
3505 + -* )
3506 + echo "$me: invalid option $1$help"
3507 + exit 1 ;;
3508 +
3509 + *local*)
3510 + # First pass through any local machine types.
3511 + echo $1
3512 + exit ;;
3513 +
3514 + * )
3515 + break ;;
3516 + esac
3517 +done
3518 +
3519 +case $# in
3520 + 0) echo "$me: missing argument$help" >&2
3521 + exit 1;;
3522 + 1) ;;
3523 + *) echo "$me: too many arguments$help" >&2
3524 + exit 1;;
3525 +esac
3526 +
3527 +# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
3528 +# Here we must recognize all the valid KERNEL-OS combinations.
3529 +maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
3530 +case $maybe_os in
3531 + nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
3532 + linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
3533 + knetbsd*-gnu* | netbsd*-gnu* | \
3534 + kopensolaris*-gnu* | \
3535 + storm-chaos* | os2-emx* | rtmk-nova*)
3536 + os=-$maybe_os
3537 + basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
3538 + ;;
3539 + *)
3540 + basic_machine=`echo $1 | sed 's/-[^-]*$//'`
3541 + if [ $basic_machine != $1 ]
3542 + then os=`echo $1 | sed 's/.*-/-/'`
3543 + else os=; fi
3544 + ;;
3545 +esac
3546 +
3547 +### Let's recognize common machines as not being operating systems so
3548 +### that things like config.sub decstation-3100 work. We also
3549 +### recognize some manufacturers as not being operating systems, so we
3550 +### can provide default operating systems below.
3551 +case $os in
3552 + -sun*os*)
3553 + # Prevent following clause from handling this invalid input.
3554 + ;;
3555 + -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
3556 + -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
3557 + -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
3558 + -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
3559 + -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
3560 + -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
3561 + -apple | -axis | -knuth | -cray | -microblaze)
3562 + os=
3563 + basic_machine=$1
3564 + ;;
3565 + -bluegene*)
3566 + os=-cnk
3567 + ;;
3568 + -sim | -cisco | -oki | -wec | -winbond)
3569 + os=
3570 + basic_machine=$1
3571 + ;;
3572 + -scout)
3573 + ;;
3574 + -wrs)
3575 + os=-vxworks
3576 + basic_machine=$1
3577 + ;;
3578 + -chorusos*)
3579 + os=-chorusos
3580 + basic_machine=$1
3581 + ;;
3582 + -chorusrdb)
3583 + os=-chorusrdb
3584 + basic_machine=$1
3585 + ;;
3586 + -hiux*)
3587 + os=-hiuxwe2
3588 + ;;
3589 + -sco6)
3590 + os=-sco5v6
3591 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
3592 + ;;
3593 + -sco5)
3594 + os=-sco3.2v5
3595 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
3596 + ;;
3597 + -sco4)
3598 + os=-sco3.2v4
3599 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
3600 + ;;
3601 + -sco3.2.[4-9]*)
3602 + os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
3603 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
3604 + ;;
3605 + -sco3.2v[4-9]*)
3606 + # Don't forget version if it is 3.2v4 or newer.
3607 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
3608 + ;;
3609 + -sco5v6*)
3610 + # Don't forget version if it is 3.2v4 or newer.
3611 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
3612 + ;;
3613 + -sco*)
3614 + os=-sco3.2v2
3615 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
3616 + ;;
3617 + -udk*)
3618 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
3619 + ;;
3620 + -isc)
3621 + os=-isc2.2
3622 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
3623 + ;;
3624 + -clix*)
3625 + basic_machine=clipper-intergraph
3626 + ;;
3627 + -isc*)
3628 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
3629 + ;;
3630 + -lynx*)
3631 + os=-lynxos
3632 + ;;
3633 + -ptx*)
3634 + basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
3635 + ;;
3636 + -windowsnt*)
3637 + os=`echo $os | sed -e 's/windowsnt/winnt/'`
3638 + ;;
3639 + -psos*)
3640 + os=-psos
3641 + ;;
3642 + -mint | -mint[0-9]*)
3643 + basic_machine=m68k-atari
3644 + os=-mint
3645 + ;;
3646 +esac
3647 +
3648 +# Decode aliases for certain CPU-COMPANY combinations.
3649 +case $basic_machine in
3650 + # Recognize the basic CPU types without company name.
3651 + # Some are omitted here because they have special meanings below.
3652 + 1750a | 580 \
3653 + | a29k \
3654 + | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
3655 + | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
3656 + | am33_2.0 \
3657 + | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
3658 + | bfin \
3659 + | c4x | clipper \
3660 + | d10v | d30v | dlx | dsp16xx | dvp \
3661 + | fido | fr30 | frv \
3662 + | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
3663 + | i370 | i860 | i960 | ia64 \
3664 + | ip2k | iq2000 \
3665 + | lm32 \
3666 + | m32c | m32r | m32rle | m68000 | m68k | m88k \
3667 + | maxq | mb | microblaze | mcore | mep | metag \
3668 + | mips | mipsbe | mipseb | mipsel | mipsle \
3669 + | mips16 \
3670 + | mips64 | mips64el \
3671 + | mips64octeon | mips64octeonel \
3672 + | mips64orion | mips64orionel \
3673 + | mips64r5900 | mips64r5900el \
3674 + | mips64vr | mips64vrel \
3675 + | mips64vr4100 | mips64vr4100el \
3676 + | mips64vr4300 | mips64vr4300el \
3677 + | mips64vr5000 | mips64vr5000el \
3678 + | mips64vr5900 | mips64vr5900el \
3679 + | mipsisa32 | mipsisa32el \
3680 + | mipsisa32r2 | mipsisa32r2el \
3681 + | mipsisa64 | mipsisa64el \
3682 + | mipsisa64r2 | mipsisa64r2el \
3683 + | mipsisa64sb1 | mipsisa64sb1el \
3684 + | mipsisa64sr71k | mipsisa64sr71kel \
3685 + | mipstx39 | mipstx39el \
3686 + | mn10200 | mn10300 \
3687 + | moxie \
3688 + | mt \
3689 + | msp430 \
3690 + | nds32 | nds32le | nds32be \
3691 + | nios | nios2 \
3692 + | ns16k | ns32k \
3693 + | or32 \
3694 + | pdp10 | pdp11 | pj | pjl \
3695 + | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
3696 + | pyramid \
3697 + | rx \
3698 + | score \
3699 + | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
3700 + | sh64 | sh64le \
3701 + | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
3702 + | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
3703 + | spu | strongarm \
3704 + | tahoe | thumb | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
3705 + | ubicom32 \
3706 + | v850 | v850e \
3707 + | we32k \
3708 + | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
3709 + | z8k | z80)
3710 + basic_machine=$basic_machine-unknown
3711 + ;;
3712 + c54x)
3713 + basic_machine=tic54x-unknown
3714 + ;;
3715 + c55x)
3716 + basic_machine=tic55x-unknown
3717 + ;;
3718 + c6x)
3719 + basic_machine=tic6x-unknown
3720 + ;;
3721 + m6811 | m68hc11 | m6812 | m68hc12 | picochip)
3722 + # Motorola 68HC11/12.
3723 + basic_machine=$basic_machine-unknown
3724 + os=-none
3725 + ;;
3726 + m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
3727 + ;;
3728 + ms1)
3729 + basic_machine=mt-unknown
3730 + ;;
3731 +
3732 + # We use `pc' rather than `unknown'
3733 + # because (1) that's what they normally are, and
3734 + # (2) the word "unknown" tends to confuse beginning users.
3735 + i*86 | x86_64)
3736 + basic_machine=$basic_machine-pc
3737 + ;;
3738 + # Object if more than one company name word.
3739 + *-*-*)
3740 + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
3741 + exit 1
3742 + ;;
3743 + # Recognize the basic CPU types with company name.
3744 + 580-* \
3745 + | a29k-* \
3746 + | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
3747 + | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
3748 + | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
3749 + | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
3750 + | avr-* | avr32-* \
3751 + | bfin-* | bs2000-* \
3752 + | c[123]* | c30-* | [cjt]90-* | c4x-* \
3753 + | clipper-* | craynv-* | cydra-* \
3754 + | d10v-* | d30v-* | dlx-* \
3755 + | elxsi-* \
3756 + | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
3757 + | h8300-* | h8500-* \
3758 + | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
3759 + | i*86-* | i860-* | i960-* | ia64-* \
3760 + | ip2k-* | iq2000-* \
3761 + | lm32-* \
3762 + | m32c-* | m32r-* | m32rle-* \
3763 + | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
3764 + | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
3765 + | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
3766 + | mips16-* \
3767 + | mips64-* | mips64el-* \
3768 + | mips64octeon-* | mips64octeonel-* \
3769 + | mips64orion-* | mips64orionel-* \
3770 + | mips64r5900-* | mips64r5900el-* \
3771 + | mips64vr-* | mips64vrel-* \
3772 + | mips64vr4100-* | mips64vr4100el-* \
3773 + | mips64vr4300-* | mips64vr4300el-* \
3774 + | mips64vr5000-* | mips64vr5000el-* \
3775 + | mips64vr5900-* | mips64vr5900el-* \
3776 + | mipsisa32-* | mipsisa32el-* \
3777 + | mipsisa32r2-* | mipsisa32r2el-* \
3778 + | mipsisa64-* | mipsisa64el-* \
3779 + | mipsisa64r2-* | mipsisa64r2el-* \
3780 + | mipsisa64sb1-* | mipsisa64sb1el-* \
3781 + | mipsisa64sr71k-* | mipsisa64sr71kel-* \
3782 + | mipstx39-* | mipstx39el-* \
3783 + | mmix-* \
3784 + | mt-* \
3785 + | msp430-* \
3786 + | nds32-* | nds32le-* | nds32be-* \
3787 + | nios-* | nios2-* \
3788 + | none-* | np1-* | ns16k-* | ns32k-* \
3789 + | orion-* \
3790 + | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
3791 + | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
3792 + | pyramid-* \
3793 + | romp-* | rs6000-* | rx-* \
3794 + | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
3795 + | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
3796 + | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
3797 + | sparclite-* \
3798 + | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
3799 + | tahoe-* | thumb-* \
3800 + | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
3801 + | tile-* | tilegx-* \
3802 + | tron-* \
3803 + | ubicom32-* \
3804 + | v850-* | v850e-* | vax-* \
3805 + | we32k-* \
3806 + | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
3807 + | xstormy16-* | xtensa*-* \
3808 + | ymp-* \
3809 + | z8k-* | z80-*)
3810 + ;;
3811 + # Recognize the basic CPU types without company name, with glob match.
3812 + xtensa*)
3813 + basic_machine=$basic_machine-unknown
3814 + ;;
3815 + # Recognize the various machine names and aliases which stand
3816 + # for a CPU type and a company and sometimes even an OS.
3817 + 386bsd)
3818 + basic_machine=i386-unknown
3819 + os=-bsd
3820 + ;;
3821 + 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
3822 + basic_machine=m68000-att
3823 + ;;
3824 + 3b*)
3825 + basic_machine=we32k-att
3826 + ;;
3827 + a29khif)
3828 + basic_machine=a29k-amd
3829 + os=-udi
3830 + ;;
3831 + abacus)
3832 + basic_machine=abacus-unknown
3833 + ;;
3834 + adobe68k)
3835 + basic_machine=m68010-adobe
3836 + os=-scout
3837 + ;;
3838 + alliant | fx80)
3839 + basic_machine=fx80-alliant
3840 + ;;
3841 + altos | altos3068)
3842 + basic_machine=m68k-altos
3843 + ;;
3844 + am29k)
3845 + basic_machine=a29k-none
3846 + os=-bsd
3847 + ;;
3848 + amd64)
3849 + basic_machine=x86_64-pc
3850 + ;;
3851 + amd64-*)
3852 + basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
3853 + ;;
3854 + amdahl)
3855 + basic_machine=580-amdahl
3856 + os=-sysv
3857 + ;;
3858 + amiga | amiga-*)
3859 + basic_machine=m68k-unknown
3860 + ;;
3861 + amigaos | amigados)
3862 + basic_machine=m68k-unknown
3863 + os=-amigaos
3864 + ;;
3865 + amigaunix | amix)
3866 + basic_machine=m68k-unknown
3867 + os=-sysv4
3868 + ;;
3869 + apollo68)
3870 + basic_machine=m68k-apollo
3871 + os=-sysv
3872 + ;;
3873 + apollo68bsd)
3874 + basic_machine=m68k-apollo
3875 + os=-bsd
3876 + ;;
3877 + aros)
3878 + basic_machine=i386-pc
3879 + os=-aros
3880 + ;;
3881 + aux)
3882 + basic_machine=m68k-apple
3883 + os=-aux
3884 + ;;
3885 + balance)
3886 + basic_machine=ns32k-sequent
3887 + os=-dynix
3888 + ;;
3889 + blackfin)
3890 + basic_machine=bfin-unknown
3891 + os=-linux
3892 + ;;
3893 + blackfin-*)
3894 + basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
3895 + os=-linux
3896 + ;;
3897 + bluegene*)
3898 + basic_machine=powerpc-ibm
3899 + os=-cnk
3900 + ;;
3901 + c54x-*)
3902 + basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
3903 + ;;
3904 + c55x-*)
3905 + basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
3906 + ;;
3907 + c6x-*)
3908 + basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
3909 + ;;
3910 + c90)
3911 + basic_machine=c90-cray
3912 + os=-unicos
3913 + ;;
3914 + cegcc)
3915 + basic_machine=arm-unknown
3916 + os=-cegcc
3917 + ;;
3918 + convex-c1)
3919 + basic_machine=c1-convex
3920 + os=-bsd
3921 + ;;
3922 + convex-c2)
3923 + basic_machine=c2-convex
3924 + os=-bsd
3925 + ;;
3926 + convex-c32)
3927 + basic_machine=c32-convex
3928 + os=-bsd
3929 + ;;
3930 + convex-c34)
3931 + basic_machine=c34-convex
3932 + os=-bsd
3933 + ;;
3934 + convex-c38)
3935 + basic_machine=c38-convex
3936 + os=-bsd
3937 + ;;
3938 + cray | j90)
3939 + basic_machine=j90-cray
3940 + os=-unicos
3941 + ;;
3942 + craynv)
3943 + basic_machine=craynv-cray
3944 + os=-unicosmp
3945 + ;;
3946 + cr16 | cr16-*)
3947 + basic_machine=cr16-unknown
3948 + os=-elf
3949 + ;;
3950 + crds | unos)
3951 + basic_machine=m68k-crds
3952 + ;;
3953 + crisv32 | crisv32-* | etraxfs*)
3954 + basic_machine=crisv32-axis
3955 + ;;
3956 + cris | cris-* | etrax*)
3957 + basic_machine=cris-axis
3958 + ;;
3959 + crx)
3960 + basic_machine=crx-unknown
3961 + os=-elf
3962 + ;;
3963 + da30 | da30-*)
3964 + basic_machine=m68k-da30
3965 + ;;
3966 + decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
3967 + basic_machine=mips-dec
3968 + ;;
3969 + decsystem10* | dec10*)
3970 + basic_machine=pdp10-dec
3971 + os=-tops10
3972 + ;;
3973 + decsystem20* | dec20*)
3974 + basic_machine=pdp10-dec
3975 + os=-tops20
3976 + ;;
3977 + delta | 3300 | motorola-3300 | motorola-delta \
3978 + | 3300-motorola | delta-motorola)
3979 + basic_machine=m68k-motorola
3980 + ;;
3981 + delta88)
3982 + basic_machine=m88k-motorola
3983 + os=-sysv3
3984 + ;;
3985 + dicos)
3986 + basic_machine=i686-pc
3987 + os=-dicos
3988 + ;;
3989 + djgpp)
3990 + basic_machine=i586-pc
3991 + os=-msdosdjgpp
3992 + ;;
3993 + dpx20 | dpx20-*)
3994 + basic_machine=rs6000-bull
3995 + os=-bosx
3996 + ;;
3997 + dpx2* | dpx2*-bull)
3998 + basic_machine=m68k-bull
3999 + os=-sysv3
4000 + ;;
4001 + ebmon29k)
4002 + basic_machine=a29k-amd
4003 + os=-ebmon
4004 + ;;
4005 + elxsi)
4006 + basic_machine=elxsi-elxsi
4007 + os=-bsd
4008 + ;;
4009 + encore | umax | mmax)
4010 + basic_machine=ns32k-encore
4011 + ;;
4012 + es1800 | OSE68k | ose68k | ose | OSE)
4013 + basic_machine=m68k-ericsson
4014 + os=-ose
4015 + ;;
4016 + fx2800)
4017 + basic_machine=i860-alliant
4018 + ;;
4019 + genix)
4020 + basic_machine=ns32k-ns
4021 + ;;
4022 + gmicro)
4023 + basic_machine=tron-gmicro
4024 + os=-sysv
4025 + ;;
4026 + go32)
4027 + basic_machine=i386-pc
4028 + os=-go32
4029 + ;;
4030 + h3050r* | hiux*)
4031 + basic_machine=hppa1.1-hitachi
4032 + os=-hiuxwe2
4033 + ;;
4034 + h8300hms)
4035 + basic_machine=h8300-hitachi
4036 + os=-hms
4037 + ;;
4038 + h8300xray)
4039 + basic_machine=h8300-hitachi
4040 + os=-xray
4041 + ;;
4042 + h8500hms)
4043 + basic_machine=h8500-hitachi
4044 + os=-hms
4045 + ;;
4046 + harris)
4047 + basic_machine=m88k-harris
4048 + os=-sysv3
4049 + ;;
4050 + hp300-*)
4051 + basic_machine=m68k-hp
4052 + ;;
4053 + hp300bsd)
4054 + basic_machine=m68k-hp
4055 + os=-bsd
4056 + ;;
4057 + hp300hpux)
4058 + basic_machine=m68k-hp
4059 + os=-hpux
4060 + ;;
4061 + hp3k9[0-9][0-9] | hp9[0-9][0-9])
4062 + basic_machine=hppa1.0-hp
4063 + ;;
4064 + hp9k2[0-9][0-9] | hp9k31[0-9])
4065 + basic_machine=m68000-hp
4066 + ;;
4067 + hp9k3[2-9][0-9])
4068 + basic_machine=m68k-hp
4069 + ;;
4070 + hp9k6[0-9][0-9] | hp6[0-9][0-9])
4071 + basic_machine=hppa1.0-hp
4072 + ;;
4073 + hp9k7[0-79][0-9] | hp7[0-79][0-9])
4074 + basic_machine=hppa1.1-hp
4075 + ;;
4076 + hp9k78[0-9] | hp78[0-9])
4077 + # FIXME: really hppa2.0-hp
4078 + basic_machine=hppa1.1-hp
4079 + ;;
4080 + hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
4081 + # FIXME: really hppa2.0-hp
4082 + basic_machine=hppa1.1-hp
4083 + ;;
4084 + hp9k8[0-9][13679] | hp8[0-9][13679])
4085 + basic_machine=hppa1.1-hp
4086 + ;;
4087 + hp9k8[0-9][0-9] | hp8[0-9][0-9])
4088 + basic_machine=hppa1.0-hp
4089 + ;;
4090 + hppa-next)
4091 + os=-nextstep3
4092 + ;;
4093 + hppaosf)
4094 + basic_machine=hppa1.1-hp
4095 + os=-osf
4096 + ;;
4097 + hppro)
4098 + basic_machine=hppa1.1-hp
4099 + os=-proelf
4100 + ;;
4101 + i370-ibm* | ibm*)
4102 + basic_machine=i370-ibm
4103 + ;;
4104 +# I'm not sure what "Sysv32" means. Should this be sysv3.2?
4105 + i*86v32)
4106 + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
4107 + os=-sysv32
4108 + ;;
4109 + i*86v4*)
4110 + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
4111 + os=-sysv4
4112 + ;;
4113 + i*86v)
4114 + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
4115 + os=-sysv
4116 + ;;
4117 + i*86sol2)
4118 + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
4119 + os=-solaris2
4120 + ;;
4121 + i386mach)
4122 + basic_machine=i386-mach
4123 + os=-mach
4124 + ;;
4125 + i386-vsta | vsta)
4126 + basic_machine=i386-unknown
4127 + os=-vsta
4128 + ;;
4129 + iris | iris4d)
4130 + basic_machine=mips-sgi
4131 + case $os in
4132 + -irix*)
4133 + ;;
4134 + *)
4135 + os=-irix4
4136 + ;;
4137 + esac
4138 + ;;
4139 + isi68 | isi)
4140 + basic_machine=m68k-isi
4141 + os=-sysv
4142 + ;;
4143 + m68knommu)
4144 + basic_machine=m68k-unknown
4145 + os=-linux
4146 + ;;
4147 + m68knommu-*)
4148 + basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
4149 + os=-linux
4150 + ;;
4151 + m88k-omron*)
4152 + basic_machine=m88k-omron
4153 + ;;
4154 + magnum | m3230)
4155 + basic_machine=mips-mips
4156 + os=-sysv
4157 + ;;
4158 + merlin)
4159 + basic_machine=ns32k-utek
4160 + os=-sysv
4161 + ;;
4162 + microblaze)
4163 + basic_machine=microblaze-xilinx
4164 + ;;
4165 + mingw32)
4166 + basic_machine=i386-pc
4167 + os=-mingw32
4168 + ;;
4169 + mingw32ce)
4170 + basic_machine=arm-unknown
4171 + os=-mingw32ce
4172 + ;;
4173 + miniframe)
4174 + basic_machine=m68000-convergent
4175 + ;;
4176 + *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
4177 + basic_machine=m68k-atari
4178 + os=-mint
4179 + ;;
4180 + mipsEE* | ee | ps2)
4181 + basic_machine=mips64r5900el-scei
4182 + case $os in
4183 + -linux*)
4184 + ;;
4185 + *)
4186 + os=-elf
4187 + ;;
4188 + esac
4189 + ;;
4190 + iop)
4191 + basic_machine=mipsel-scei
4192 + os=-irx
4193 + ;;
4194 + dvp)
4195 + basic_machine=dvp-scei
4196 + os=-elf
4197 + ;;
4198 + mips3*-*)
4199 + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
4200 + ;;
4201 + mips3*)
4202 + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
4203 + ;;
4204 + monitor)
4205 + basic_machine=m68k-rom68k
4206 + os=-coff
4207 + ;;
4208 + morphos)
4209 + basic_machine=powerpc-unknown
4210 + os=-morphos
4211 + ;;
4212 + msdos)
4213 + basic_machine=i386-pc
4214 + os=-msdos
4215 + ;;
4216 + ms1-*)
4217 + basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
4218 + ;;
4219 + mvs)
4220 + basic_machine=i370-ibm
4221 + os=-mvs
4222 + ;;
4223 + ncr3000)
4224 + basic_machine=i486-ncr
4225 + os=-sysv4
4226 + ;;
4227 + netbsd386)
4228 + basic_machine=i386-unknown
4229 + os=-netbsd
4230 + ;;
4231 + netwinder)
4232 + basic_machine=armv4l-rebel
4233 + os=-linux
4234 + ;;
4235 + news | news700 | news800 | news900)
4236 + basic_machine=m68k-sony
4237 + os=-newsos
4238 + ;;
4239 + news1000)
4240 + basic_machine=m68030-sony
4241 + os=-newsos
4242 + ;;
4243 + news-3600 | risc-news)
4244 + basic_machine=mips-sony
4245 + os=-newsos
4246 + ;;
4247 + necv70)
4248 + basic_machine=v70-nec
4249 + os=-sysv
4250 + ;;
4251 + next | m*-next )
4252 + basic_machine=m68k-next
4253 + case $os in
4254 + -nextstep* )
4255 + ;;
4256 + -ns2*)
4257 + os=-nextstep2
4258 + ;;
4259 + *)
4260 + os=-nextstep3
4261 + ;;
4262 + esac
4263 + ;;
4264 + nh3000)
4265 + basic_machine=m68k-harris
4266 + os=-cxux
4267 + ;;
4268 + nh[45]000)
4269 + basic_machine=m88k-harris
4270 + os=-cxux
4271 + ;;
4272 + nindy960)
4273 + basic_machine=i960-intel
4274 + os=-nindy
4275 + ;;
4276 + mon960)
4277 + basic_machine=i960-intel
4278 + os=-mon960
4279 + ;;
4280 + nonstopux)
4281 + basic_machine=mips-compaq
4282 + os=-nonstopux
4283 + ;;
4284 + np1)
4285 + basic_machine=np1-gould
4286 + ;;
4287 + neo-tandem)
4288 + basic_machine=neo-tandem
4289 + ;;
4290 + nse-tandem)
4291 + basic_machine=nse-tandem
4292 + ;;
4293 + nsr-tandem)
4294 + basic_machine=nsr-tandem
4295 + ;;
4296 + op50n-* | op60c-*)
4297 + basic_machine=hppa1.1-oki
4298 + os=-proelf
4299 + ;;
4300 + openrisc | openrisc-*)
4301 + basic_machine=or32-unknown
4302 + ;;
4303 + os400)
4304 + basic_machine=powerpc-ibm
4305 + os=-os400
4306 + ;;
4307 + OSE68000 | ose68000)
4308 + basic_machine=m68000-ericsson
4309 + os=-ose
4310 + ;;
4311 + os68k)
4312 + basic_machine=m68k-none
4313 + os=-os68k
4314 + ;;
4315 + pa-hitachi)
4316 + basic_machine=hppa1.1-hitachi
4317 + os=-hiuxwe2
4318 + ;;
4319 + paragon)
4320 + basic_machine=i860-intel
4321 + os=-osf
4322 + ;;
4323 + parisc)
4324 + basic_machine=hppa-unknown
4325 + os=-linux
4326 + ;;
4327 + parisc-*)
4328 + basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
4329 + os=-linux
4330 + ;;
4331 + pbd)
4332 + basic_machine=sparc-tti
4333 + ;;
4334 + pbb)
4335 + basic_machine=m68k-tti
4336 + ;;
4337 + pc532 | pc532-*)
4338 + basic_machine=ns32k-pc532
4339 + ;;
4340 + pc98)
4341 + basic_machine=i386-pc
4342 + ;;
4343 + pc98-*)
4344 + basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
4345 + ;;
4346 + pentium | p5 | k5 | k6 | nexgen | viac3)
4347 + basic_machine=i586-pc
4348 + ;;
4349 + pentiumpro | p6 | 6x86 | athlon | athlon_*)
4350 + basic_machine=i686-pc
4351 + ;;
4352 + pentiumii | pentium2 | pentiumiii | pentium3)
4353 + basic_machine=i686-pc
4354 + ;;
4355 + pentium4)
4356 + basic_machine=i786-pc
4357 + ;;
4358 + pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
4359 + basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
4360 + ;;
4361 + pentiumpro-* | p6-* | 6x86-* | athlon-*)
4362 + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
4363 + ;;
4364 + pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
4365 + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
4366 + ;;
4367 + pentium4-*)
4368 + basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
4369 + ;;
4370 + pn)
4371 + basic_machine=pn-gould
4372 + ;;
4373 + power) basic_machine=power-ibm
4374 + ;;
4375 + ppc) basic_machine=powerpc-unknown
4376 + ;;
4377 + ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
4378 + ;;
4379 + ppcle | powerpclittle | ppc-le | powerpc-little)
4380 + basic_machine=powerpcle-unknown
4381 + ;;
4382 + ppcle-* | powerpclittle-*)
4383 + basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
4384 + ;;
4385 + ppc64) basic_machine=powerpc64-unknown
4386 + ;;
4387 + ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
4388 + ;;
4389 + ppc64le | powerpc64little | ppc64-le | powerpc64-little)
4390 + basic_machine=powerpc64le-unknown
4391 + ;;
4392 + ppc64le-* | powerpc64little-*)
4393 + basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
4394 + ;;
4395 + ps2)
4396 + basic_machine=i386-ibm
4397 + ;;
4398 + pw32)
4399 + basic_machine=i586-unknown
4400 + os=-pw32
4401 + ;;
4402 + rdos)
4403 + basic_machine=i386-pc
4404 + os=-rdos
4405 + ;;
4406 + rom68k)
4407 + basic_machine=m68k-rom68k
4408 + os=-coff
4409 + ;;
4410 + rm[46]00)
4411 + basic_machine=mips-siemens
4412 + ;;
4413 + rtpc | rtpc-*)
4414 + basic_machine=romp-ibm
4415 + ;;
4416 + s390 | s390-*)
4417 + basic_machine=s390-ibm
4418 + ;;
4419 + s390x | s390x-*)
4420 + basic_machine=s390x-ibm
4421 + ;;
4422 + sa29200)
4423 + basic_machine=a29k-amd
4424 + os=-udi
4425 + ;;
4426 + sb1)
4427 + basic_machine=mipsisa64sb1-unknown
4428 + ;;
4429 + sb1el)
4430 + basic_machine=mipsisa64sb1el-unknown
4431 + ;;
4432 + sde)
4433 + basic_machine=mipsisa32-sde
4434 + os=-elf
4435 + ;;
4436 + sei)
4437 + basic_machine=mips-sei
4438 + os=-seiux
4439 + ;;
4440 + sequent)
4441 + basic_machine=i386-sequent
4442 + ;;
4443 + sh)
4444 + basic_machine=sh-hitachi
4445 + os=-hms
4446 + ;;
4447 + sh5el)
4448 + basic_machine=sh5le-unknown
4449 + ;;
4450 + sh64)
4451 + basic_machine=sh64-unknown
4452 + ;;
4453 + sparclite-wrs | simso-wrs)
4454 + basic_machine=sparclite-wrs
4455 + os=-vxworks
4456 + ;;
4457 + sps7)
4458 + basic_machine=m68k-bull
4459 + os=-sysv2
4460 + ;;
4461 + spur)
4462 + basic_machine=spur-unknown
4463 + ;;
4464 + st2000)
4465 + basic_machine=m68k-tandem
4466 + ;;
4467 + stratus)
4468 + basic_machine=i860-stratus
4469 + os=-sysv4
4470 + ;;
4471 + sun2)
4472 + basic_machine=m68000-sun
4473 + ;;
4474 + sun2os3)
4475 + basic_machine=m68000-sun
4476 + os=-sunos3
4477 + ;;
4478 + sun2os4)
4479 + basic_machine=m68000-sun
4480 + os=-sunos4
4481 + ;;
4482 + sun3os3)
4483 + basic_machine=m68k-sun
4484 + os=-sunos3
4485 + ;;
4486 + sun3os4)
4487 + basic_machine=m68k-sun
4488 + os=-sunos4
4489 + ;;
4490 + sun4os3)
4491 + basic_machine=sparc-sun
4492 + os=-sunos3
4493 + ;;
4494 + sun4os4)
4495 + basic_machine=sparc-sun
4496 + os=-sunos4
4497 + ;;
4498 + sun4sol2)
4499 + basic_machine=sparc-sun
4500 + os=-solaris2
4501 + ;;
4502 + sun3 | sun3-*)
4503 + basic_machine=m68k-sun
4504 + ;;
4505 + sun4)
4506 + basic_machine=sparc-sun
4507 + ;;
4508 + sun386 | sun386i | roadrunner)
4509 + basic_machine=i386-sun
4510 + ;;
4511 + sv1)
4512 + basic_machine=sv1-cray
4513 + os=-unicos
4514 + ;;
4515 + symmetry)
4516 + basic_machine=i386-sequent
4517 + os=-dynix
4518 + ;;
4519 + t3e)
4520 + basic_machine=alphaev5-cray
4521 + os=-unicos
4522 + ;;
4523 + t90)
4524 + basic_machine=t90-cray
4525 + os=-unicos
4526 + ;;
4527 + # This must be matched before tile*.
4528 + tilegx*)
4529 + basic_machine=tilegx-unknown
4530 + os=-linux-gnu
4531 + ;;
4532 + tile*)
4533 + basic_machine=tile-unknown
4534 + os=-linux-gnu
4535 + ;;
4536 + tx39)
4537 + basic_machine=mipstx39-unknown
4538 + ;;
4539 + tx39el)
4540 + basic_machine=mipstx39el-unknown
4541 + ;;
4542 + toad1)
4543 + basic_machine=pdp10-xkl
4544 + os=-tops20
4545 + ;;
4546 + tower | tower-32)
4547 + basic_machine=m68k-ncr
4548 + ;;
4549 + tpf)
4550 + basic_machine=s390x-ibm
4551 + os=-tpf
4552 + ;;
4553 + udi29k)
4554 + basic_machine=a29k-amd
4555 + os=-udi
4556 + ;;
4557 + ultra3)
4558 + basic_machine=a29k-nyu
4559 + os=-sym1
4560 + ;;
4561 + v810 | necv810)
4562 + basic_machine=v810-nec
4563 + os=-none
4564 + ;;
4565 + vaxv)
4566 + basic_machine=vax-dec
4567 + os=-sysv
4568 + ;;
4569 + vms)
4570 + basic_machine=vax-dec
4571 + os=-vms
4572 + ;;
4573 + vpp*|vx|vx-*)
4574 + basic_machine=f301-fujitsu
4575 + ;;
4576 + vxworks960)
4577 + basic_machine=i960-wrs
4578 + os=-vxworks
4579 + ;;
4580 + vxworks68)
4581 + basic_machine=m68k-wrs
4582 + os=-vxworks
4583 + ;;
4584 + vxworks29k)
4585 + basic_machine=a29k-wrs
4586 + os=-vxworks
4587 + ;;
4588 + w65*)
4589 + basic_machine=w65-wdc
4590 + os=-none
4591 + ;;
4592 + w89k-*)
4593 + basic_machine=hppa1.1-winbond
4594 + os=-proelf
4595 + ;;
4596 + xbox)
4597 + basic_machine=i686-pc
4598 + os=-mingw32
4599 + ;;
4600 + xps | xps100)
4601 + basic_machine=xps100-honeywell
4602 + ;;
4603 + ymp)
4604 + basic_machine=ymp-cray
4605 + os=-unicos
4606 + ;;
4607 + z8k-*-coff)
4608 + basic_machine=z8k-unknown
4609 + os=-sim
4610 + ;;
4611 + z80-*-coff)
4612 + basic_machine=z80-unknown
4613 + os=-sim
4614 + ;;
4615 + none)
4616 + basic_machine=none-none
4617 + os=-none
4618 + ;;
4619 +
4620 +# Here we handle the default manufacturer of certain CPU types. It is in
4621 +# some cases the only manufacturer, in others, it is the most popular.
4622 + w89k)
4623 + basic_machine=hppa1.1-winbond
4624 + ;;
4625 + op50n)
4626 + basic_machine=hppa1.1-oki
4627 + ;;
4628 + op60c)
4629 + basic_machine=hppa1.1-oki
4630 + ;;
4631 + romp)
4632 + basic_machine=romp-ibm
4633 + ;;
4634 + mmix)
4635 + basic_machine=mmix-knuth
4636 + ;;
4637 + rs6000)
4638 + basic_machine=rs6000-ibm
4639 + ;;
4640 + vax)
4641 + basic_machine=vax-dec
4642 + ;;
4643 + pdp10)
4644 + # there are many clones, so DEC is not a safe bet
4645 + basic_machine=pdp10-unknown
4646 + ;;
4647 + pdp11)
4648 + basic_machine=pdp11-dec
4649 + ;;
4650 + we32k)
4651 + basic_machine=we32k-att
4652 + ;;
4653 + sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
4654 + basic_machine=sh-unknown
4655 + ;;
4656 + sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
4657 + basic_machine=sparc-sun
4658 + ;;
4659 + cydra)
4660 + basic_machine=cydra-cydrome
4661 + ;;
4662 + orion)
4663 + basic_machine=orion-highlevel
4664 + ;;
4665 + orion105)
4666 + basic_machine=clipper-highlevel
4667 + ;;
4668 + mac | mpw | mac-mpw)
4669 + basic_machine=m68k-apple
4670 + ;;
4671 + pmac | pmac-mpw)
4672 + basic_machine=powerpc-apple
4673 + ;;
4674 + *-unknown)
4675 + # Make sure to match an already-canonicalized machine name.
4676 + ;;
4677 + *)
4678 + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
4679 + exit 1
4680 + ;;
4681 +esac
4682 +
4683 +# Here we canonicalize certain aliases for manufacturers.
4684 +case $basic_machine in
4685 + *-digital*)
4686 + basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
4687 + ;;
4688 + *-commodore*)
4689 + basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
4690 + ;;
4691 + *)
4692 + ;;
4693 +esac
4694 +
4695 +# Decode manufacturer-specific aliases for certain operating systems.
4696 +
4697 +if [ x"$os" != x"" ]
4698 +then
4699 +case $os in
4700 + # First match some system type aliases
4701 + # that might get confused with valid system types.
4702 + # -solaris* is a basic system type, with this one exception.
4703 + -auroraux)
4704 + os=-auroraux
4705 + ;;
4706 + -solaris1 | -solaris1.*)
4707 + os=`echo $os | sed -e 's|solaris1|sunos4|'`
4708 + ;;
4709 + -solaris)
4710 + os=-solaris2
4711 + ;;
4712 + -svr4*)
4713 + os=-sysv4
4714 + ;;
4715 + -unixware*)
4716 + os=-sysv4.2uw
4717 + ;;
4718 + -gnu/linux*)
4719 + os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
4720 + ;;
4721 + # First accept the basic system types.
4722 + # The portable systems comes first.
4723 + # Each alternative MUST END IN A *, to match a version number.
4724 + # -sysv* is not here because it comes later, after sysvr4.
4725 + -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
4726 + | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
4727 + | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
4728 + | -sym* | -kopensolaris* \
4729 + | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
4730 + | -aos* | -aros* \
4731 + | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
4732 + | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
4733 + | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
4734 + | -openbsd* | -solidbsd* \
4735 + | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
4736 + | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
4737 + | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
4738 + | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
4739 + | -chorusos* | -chorusrdb* | -cegcc* \
4740 + | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
4741 + | -mingw32* | -linux-gnu* | -linux-android* \
4742 + | -linux-newlib* | -linux-uclibc* \
4743 + | -uxpv* | -beos* | -mpeix* | -udk* \
4744 + | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
4745 + | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
4746 + | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* | -irx* \
4747 + | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
4748 + | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
4749 + | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
4750 + | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
4751 + # Remember, each alternative MUST END IN *, to match a version number.
4752 + ;;
4753 + -qnx*)
4754 + case $basic_machine in
4755 + x86-* | i*86-*)
4756 + ;;
4757 + *)
4758 + os=-nto$os
4759 + ;;
4760 + esac
4761 + ;;
4762 + -nto-qnx*)
4763 + ;;
4764 + -nto*)
4765 + os=`echo $os | sed -e 's|nto|nto-qnx|'`
4766 + ;;
4767 + -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
4768 + | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
4769 + | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
4770 + ;;
4771 + -mac*)
4772 + os=`echo $os | sed -e 's|mac|macos|'`
4773 + ;;
4774 + -linux-dietlibc)
4775 + os=-linux-dietlibc
4776 + ;;
4777 + -linux*)
4778 + os=`echo $os | sed -e 's|linux|linux-gnu|'`
4779 + ;;
4780 + -sunos5*)
4781 + os=`echo $os | sed -e 's|sunos5|solaris2|'`
4782 + ;;
4783 + -sunos6*)
4784 + os=`echo $os | sed -e 's|sunos6|solaris3|'`
4785 + ;;
4786 + -opened*)
4787 + os=-openedition
4788 + ;;
4789 + -os400*)
4790 + os=-os400
4791 + ;;
4792 + -wince*)
4793 + os=-wince
4794 + ;;
4795 + -osfrose*)
4796 + os=-osfrose
4797 + ;;
4798 + -osf*)
4799 + os=-osf
4800 + ;;
4801 + -utek*)
4802 + os=-bsd
4803 + ;;
4804 + -dynix*)
4805 + os=-bsd
4806 + ;;
4807 + -acis*)
4808 + os=-aos
4809 + ;;
4810 + -atheos*)
4811 + os=-atheos
4812 + ;;
4813 + -syllable*)
4814 + os=-syllable
4815 + ;;
4816 + -386bsd)
4817 + os=-bsd
4818 + ;;
4819 + -ctix* | -uts*)
4820 + os=-sysv
4821 + ;;
4822 + -nova*)
4823 + os=-rtmk-nova
4824 + ;;
4825 + -ns2 )
4826 + os=-nextstep2
4827 + ;;
4828 + -nsk*)
4829 + os=-nsk
4830 + ;;
4831 + # Preserve the version number of sinix5.
4832 + -sinix5.*)
4833 + os=`echo $os | sed -e 's|sinix|sysv|'`
4834 + ;;
4835 + -sinix*)
4836 + os=-sysv4
4837 + ;;
4838 + -tpf*)
4839 + os=-tpf
4840 + ;;
4841 + -triton*)
4842 + os=-sysv3
4843 + ;;
4844 + -oss*)
4845 + os=-sysv3
4846 + ;;
4847 + -svr4)
4848 + os=-sysv4
4849 + ;;
4850 + -svr3)
4851 + os=-sysv3
4852 + ;;
4853 + -sysvr4)
4854 + os=-sysv4
4855 + ;;
4856 + # This must come after -sysvr4.
4857 + -sysv*)
4858 + ;;
4859 + -ose*)
4860 + os=-ose
4861 + ;;
4862 + -es1800*)
4863 + os=-ose
4864 + ;;
4865 + -xenix)
4866 + os=-xenix
4867 + ;;
4868 + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
4869 + os=-mint
4870 + ;;
4871 + -aros*)
4872 + os=-aros
4873 + ;;
4874 + -kaos*)
4875 + os=-kaos
4876 + ;;
4877 + -zvmoe)
4878 + os=-zvmoe
4879 + ;;
4880 + -dicos*)
4881 + os=-dicos
4882 + ;;
4883 + -nacl*)
4884 + ;;
4885 + -none)
4886 + ;;
4887 + *)
4888 + # Get rid of the `-' at the beginning of $os.
4889 + os=`echo $os | sed 's/[^-]*-//'`
4890 + echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
4891 + exit 1
4892 + ;;
4893 +esac
4894 +else
4895 +
4896 +# Here we handle the default operating systems that come with various machines.
4897 +# The value should be what the vendor currently ships out the door with their
4898 +# machine or put another way, the most popular os provided with the machine.
4899 +
4900 +# Note that if you're going to try to match "-MANUFACTURER" here (say,
4901 +# "-sun"), then you have to tell the case statement up towards the top
4902 +# that MANUFACTURER isn't an operating system. Otherwise, code above
4903 +# will signal an error saying that MANUFACTURER isn't an operating
4904 +# system, and we'll never get to this point.
4905 +
4906 +case $basic_machine in
4907 + score-*)
4908 + os=-elf
4909 + ;;
4910 + spu-*)
4911 + os=-elf
4912 + ;;
4913 + *-acorn)
4914 + os=-riscix1.2
4915 + ;;
4916 + arm*-rebel)
4917 + os=-linux
4918 + ;;
4919 + arm*-semi)
4920 + os=-aout
4921 + ;;
4922 + c4x-* | tic4x-*)
4923 + os=-coff
4924 + ;;
4925 + tic54x-*)
4926 + os=-coff
4927 + ;;
4928 + tic55x-*)
4929 + os=-coff
4930 + ;;
4931 + tic6x-*)
4932 + os=-coff
4933 + ;;
4934 + # This must come before the *-dec entry.
4935 + pdp10-*)
4936 + os=-tops20
4937 + ;;
4938 + pdp11-*)
4939 + os=-none
4940 + ;;
4941 + *-dec | vax-*)
4942 + os=-ultrix4.2
4943 + ;;
4944 + m68*-apollo)
4945 + os=-domain
4946 + ;;
4947 + i386-sun)
4948 + os=-sunos4.0.2
4949 + ;;
4950 + m68000-sun)
4951 + os=-sunos3
4952 + # This also exists in the configure program, but was not the
4953 + # default.
4954 + # os=-sunos4
4955 + ;;
4956 + m68*-cisco)
4957 + os=-aout
4958 + ;;
4959 + mep-*)
4960 + os=-elf
4961 + ;;
4962 + mips*-cisco)
4963 + os=-elf
4964 + ;;
4965 + mips*-*)
4966 + os=-elf
4967 + ;;
4968 + or32-*)
4969 + os=-coff
4970 + ;;
4971 + *-tti) # must be before sparc entry or we get the wrong os.
4972 + os=-sysv3
4973 + ;;
4974 + sparc-* | *-sun)
4975 + os=-sunos4.1.1
4976 + ;;
4977 + *-be)
4978 + os=-beos
4979 + ;;
4980 + *-haiku)
4981 + os=-haiku
4982 + ;;
4983 + *-ibm)
4984 + os=-aix
4985 + ;;
4986 + *-knuth)
4987 + os=-mmixware
4988 + ;;
4989 + *-wec)
4990 + os=-proelf
4991 + ;;
4992 + *-winbond)
4993 + os=-proelf
4994 + ;;
4995 + *-oki)
4996 + os=-proelf
4997 + ;;
4998 + *-hp)
4999 + os=-hpux
5000 + ;;
5001 + *-hitachi)
5002 + os=-hiux
5003 + ;;
5004 + i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
5005 + os=-sysv
5006 + ;;
5007 + *-cbm)
5008 + os=-amigaos
5009 + ;;
5010 + *-dg)
5011 + os=-dgux
5012 + ;;
5013 + *-dolphin)
5014 + os=-sysv3
5015 + ;;
5016 + m68k-ccur)
5017 + os=-rtu
5018 + ;;
5019 + m88k-omron*)
5020 + os=-luna
5021 + ;;
5022 + *-next )
5023 + os=-nextstep
5024 + ;;
5025 + *-sequent)
5026 + os=-ptx
5027 + ;;
5028 + *-crds)
5029 + os=-unos
5030 + ;;
5031 + *-ns)
5032 + os=-genix
5033 + ;;
5034 + i370-*)
5035 + os=-mvs
5036 + ;;
5037 + *-next)
5038 + os=-nextstep3
5039 + ;;
5040 + *-gould)
5041 + os=-sysv
5042 + ;;
5043 + *-highlevel)
5044 + os=-bsd
5045 + ;;
5046 + *-encore)
5047 + os=-bsd
5048 + ;;
5049 + *-sgi)
5050 + os=-irix
5051 + ;;
5052 + *-siemens)
5053 + os=-sysv4
5054 + ;;
5055 + *-masscomp)
5056 + os=-rtu
5057 + ;;
5058 + f30[01]-fujitsu | f700-fujitsu)
5059 + os=-uxpv
5060 + ;;
5061 + *-rom68k)
5062 + os=-coff
5063 + ;;
5064 + *-*bug)
5065 + os=-coff
5066 + ;;
5067 + *-apple)
5068 + os=-macos
5069 + ;;
5070 + *-atari*)
5071 + os=-mint
5072 + ;;
5073 + *)
5074 + os=-none
5075 + ;;
5076 +esac
5077 +fi
5078 +
5079 +# Here we handle the case where we know the os, and the CPU type, but not the
5080 +# manufacturer. We pick the logical manufacturer.
5081 +vendor=unknown
5082 +case $basic_machine in
5083 + *-unknown)
5084 + case $os in
5085 + -riscix*)
5086 + vendor=acorn
5087 + ;;
5088 + -sunos*)
5089 + vendor=sun
5090 + ;;
5091 + -cnk*|-aix*)
5092 + vendor=ibm
5093 + ;;
5094 + -beos*)
5095 + vendor=be
5096 + ;;
5097 + -hpux*)
5098 + vendor=hp
5099 + ;;
5100 + -mpeix*)
5101 + vendor=hp
5102 + ;;
5103 + -hiux*)
5104 + vendor=hitachi
5105 + ;;
5106 + -unos*)
5107 + vendor=crds
5108 + ;;
5109 + -dgux*)
5110 + vendor=dg
5111 + ;;
5112 + -luna*)
5113 + vendor=omron
5114 + ;;
5115 + -genix*)
5116 + vendor=ns
5117 + ;;
5118 + -mvs* | -opened*)
5119 + vendor=ibm
5120 + ;;
5121 + -os400*)
5122 + vendor=ibm
5123 + ;;
5124 + -ptx*)
5125 + vendor=sequent
5126 + ;;
5127 + -tpf*)
5128 + vendor=ibm
5129 + ;;
5130 + -vxsim* | -vxworks* | -windiss*)
5131 + vendor=wrs
5132 + ;;
5133 + -aux*)
5134 + vendor=apple
5135 + ;;
5136 + -hms*)
5137 + vendor=hitachi
5138 + ;;
5139 + -mpw* | -macos*)
5140 + vendor=apple
5141 + ;;
5142 + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
5143 + vendor=atari
5144 + ;;
5145 + -vos*)
5146 + vendor=stratus
5147 + ;;
5148 + esac
5149 + basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
5150 + ;;
5151 +esac
5152 +
5153 +echo $basic_machine$os
5154 +exit
5155 +
5156 +# Local variables:
5157 +# eval: (add-hook 'write-file-hooks 'time-stamp)
5158 +# time-stamp-start: "timestamp='"
5159 +# time-stamp-format: "%:y-%02m-%02d"
5160 +# time-stamp-end: "'"
5161 +# End:
5162
5163
5164 Property changes on: trunk/baselayout-prefix/gnulib/build-aux/config.sub
5165 ___________________________________________________________________
5166 Added: svn:executable
5167 + *
5168
5169 Added: trunk/baselayout-prefix/gnulib/build-aux/depcomp
5170 ===================================================================
5171 --- trunk/baselayout-prefix/gnulib/build-aux/depcomp (rev 0)
5172 +++ trunk/baselayout-prefix/gnulib/build-aux/depcomp 2011-03-31 16:43:45 UTC (rev 1693)
5173 @@ -0,0 +1,630 @@
5174 +#! /bin/sh
5175 +# depcomp - compile a program generating dependencies as side-effects
5176 +
5177 +scriptversion=2009-04-28.21; # UTC
5178 +
5179 +# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free
5180 +# Software Foundation, Inc.
5181 +
5182 +# This program is free software; you can redistribute it and/or modify
5183 +# it under the terms of the GNU General Public License as published by
5184 +# the Free Software Foundation; either version 2, or (at your option)
5185 +# any later version.
5186 +
5187 +# This program is distributed in the hope that it will be useful,
5188 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
5189 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5190 +# GNU General Public License for more details.
5191 +
5192 +# You should have received a copy of the GNU General Public License
5193 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
5194 +
5195 +# As a special exception to the GNU General Public License, if you
5196 +# distribute this file as part of a program that contains a
5197 +# configuration script generated by Autoconf, you may include it under
5198 +# the same distribution terms that you use for the rest of that program.
5199 +
5200 +# Originally written by Alexandre Oliva <oliva@×××××××××××.br>.
5201 +
5202 +case $1 in
5203 + '')
5204 + echo "$0: No command. Try \`$0 --help' for more information." 1>&2
5205 + exit 1;
5206 + ;;
5207 + -h | --h*)
5208 + cat <<\EOF
5209 +Usage: depcomp [--help] [--version] PROGRAM [ARGS]
5210 +
5211 +Run PROGRAMS ARGS to compile a file, generating dependencies
5212 +as side-effects.
5213 +
5214 +Environment variables:
5215 + depmode Dependency tracking mode.
5216 + source Source file read by `PROGRAMS ARGS'.
5217 + object Object file output by `PROGRAMS ARGS'.
5218 + DEPDIR directory where to store dependencies.
5219 + depfile Dependency file to output.
5220 + tmpdepfile Temporary file to use when outputing dependencies.
5221 + libtool Whether libtool is used (yes/no).
5222 +
5223 +Report bugs to <bug-automake@×××.org>.
5224 +EOF
5225 + exit $?
5226 + ;;
5227 + -v | --v*)
5228 + echo "depcomp $scriptversion"
5229 + exit $?
5230 + ;;
5231 +esac
5232 +
5233 +if test -z "$depmode" || test -z "$source" || test -z "$object"; then
5234 + echo "depcomp: Variables source, object and depmode must be set" 1>&2
5235 + exit 1
5236 +fi
5237 +
5238 +# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
5239 +depfile=${depfile-`echo "$object" |
5240 + sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
5241 +tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
5242 +
5243 +rm -f "$tmpdepfile"
5244 +
5245 +# Some modes work just like other modes, but use different flags. We
5246 +# parameterize here, but still list the modes in the big case below,
5247 +# to make depend.m4 easier to write. Note that we *cannot* use a case
5248 +# here, because this file can only contain one case statement.
5249 +if test "$depmode" = hp; then
5250 + # HP compiler uses -M and no extra arg.
5251 + gccflag=-M
5252 + depmode=gcc
5253 +fi
5254 +
5255 +if test "$depmode" = dashXmstdout; then
5256 + # This is just like dashmstdout with a different argument.
5257 + dashmflag=-xM
5258 + depmode=dashmstdout
5259 +fi
5260 +
5261 +cygpath_u="cygpath -u -f -"
5262 +if test "$depmode" = msvcmsys; then
5263 + # This is just like msvisualcpp but w/o cygpath translation.
5264 + # Just convert the backslash-escaped backslashes to single forward
5265 + # slashes to satisfy depend.m4
5266 + cygpath_u="sed s,\\\\\\\\,/,g"
5267 + depmode=msvisualcpp
5268 +fi
5269 +
5270 +case "$depmode" in
5271 +gcc3)
5272 +## gcc 3 implements dependency tracking that does exactly what
5273 +## we want. Yay! Note: for some reason libtool 1.4 doesn't like
5274 +## it if -MD -MP comes after the -MF stuff. Hmm.
5275 +## Unfortunately, FreeBSD c89 acceptance of flags depends upon
5276 +## the command line argument order; so add the flags where they
5277 +## appear in depend2.am. Note that the slowdown incurred here
5278 +## affects only configure: in makefiles, %FASTDEP% shortcuts this.
5279 + for arg
5280 + do
5281 + case $arg in
5282 + -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;;
5283 + *) set fnord "$@" "$arg" ;;
5284 + esac
5285 + shift # fnord
5286 + shift # $arg
5287 + done
5288 + "$@"
5289 + stat=$?
5290 + if test $stat -eq 0; then :
5291 + else
5292 + rm -f "$tmpdepfile"
5293 + exit $stat
5294 + fi
5295 + mv "$tmpdepfile" "$depfile"
5296 + ;;
5297 +
5298 +gcc)
5299 +## There are various ways to get dependency output from gcc. Here's
5300 +## why we pick this rather obscure method:
5301 +## - Don't want to use -MD because we'd like the dependencies to end
5302 +## up in a subdir. Having to rename by hand is ugly.
5303 +## (We might end up doing this anyway to support other compilers.)
5304 +## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
5305 +## -MM, not -M (despite what the docs say).
5306 +## - Using -M directly means running the compiler twice (even worse
5307 +## than renaming).
5308 + if test -z "$gccflag"; then
5309 + gccflag=-MD,
5310 + fi
5311 + "$@" -Wp,"$gccflag$tmpdepfile"
5312 + stat=$?
5313 + if test $stat -eq 0; then :
5314 + else
5315 + rm -f "$tmpdepfile"
5316 + exit $stat
5317 + fi
5318 + rm -f "$depfile"
5319 + echo "$object : \\" > "$depfile"
5320 + alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
5321 +## The second -e expression handles DOS-style file names with drive letters.
5322 + sed -e 's/^[^:]*: / /' \
5323 + -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
5324 +## This next piece of magic avoids the `deleted header file' problem.
5325 +## The problem is that when a header file which appears in a .P file
5326 +## is deleted, the dependency causes make to die (because there is
5327 +## typically no way to rebuild the header). We avoid this by adding
5328 +## dummy dependencies for each header file. Too bad gcc doesn't do
5329 +## this for us directly.
5330 + tr ' ' '
5331 +' < "$tmpdepfile" |
5332 +## Some versions of gcc put a space before the `:'. On the theory
5333 +## that the space means something, we add a space to the output as
5334 +## well.
5335 +## Some versions of the HPUX 10.20 sed can't process this invocation
5336 +## correctly. Breaking it into two sed invocations is a workaround.
5337 + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
5338 + rm -f "$tmpdepfile"
5339 + ;;
5340 +
5341 +hp)
5342 + # This case exists only to let depend.m4 do its work. It works by
5343 + # looking at the text of this script. This case will never be run,
5344 + # since it is checked for above.
5345 + exit 1
5346 + ;;
5347 +
5348 +sgi)
5349 + if test "$libtool" = yes; then
5350 + "$@" "-Wp,-MDupdate,$tmpdepfile"
5351 + else
5352 + "$@" -MDupdate "$tmpdepfile"
5353 + fi
5354 + stat=$?
5355 + if test $stat -eq 0; then :
5356 + else
5357 + rm -f "$tmpdepfile"
5358 + exit $stat
5359 + fi
5360 + rm -f "$depfile"
5361 +
5362 + if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
5363 + echo "$object : \\" > "$depfile"
5364 +
5365 + # Clip off the initial element (the dependent). Don't try to be
5366 + # clever and replace this with sed code, as IRIX sed won't handle
5367 + # lines with more than a fixed number of characters (4096 in
5368 + # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
5369 + # the IRIX cc adds comments like `#:fec' to the end of the
5370 + # dependency line.
5371 + tr ' ' '
5372 +' < "$tmpdepfile" \
5373 + | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
5374 + tr '
5375 +' ' ' >> "$depfile"
5376 + echo >> "$depfile"
5377 +
5378 + # The second pass generates a dummy entry for each header file.
5379 + tr ' ' '
5380 +' < "$tmpdepfile" \
5381 + | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
5382 + >> "$depfile"
5383 + else
5384 + # The sourcefile does not contain any dependencies, so just
5385 + # store a dummy comment line, to avoid errors with the Makefile
5386 + # "include basename.Plo" scheme.
5387 + echo "#dummy" > "$depfile"
5388 + fi
5389 + rm -f "$tmpdepfile"
5390 + ;;
5391 +
5392 +aix)
5393 + # The C for AIX Compiler uses -M and outputs the dependencies
5394 + # in a .u file. In older versions, this file always lives in the
5395 + # current directory. Also, the AIX compiler puts `$object:' at the
5396 + # start of each line; $object doesn't have directory information.
5397 + # Version 6 uses the directory in both cases.
5398 + dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
5399 + test "x$dir" = "x$object" && dir=
5400 + base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
5401 + if test "$libtool" = yes; then
5402 + tmpdepfile1=$dir$base.u
5403 + tmpdepfile2=$base.u
5404 + tmpdepfile3=$dir.libs/$base.u
5405 + "$@" -Wc,-M
5406 + else
5407 + tmpdepfile1=$dir$base.u
5408 + tmpdepfile2=$dir$base.u
5409 + tmpdepfile3=$dir$base.u
5410 + "$@" -M
5411 + fi
5412 + stat=$?
5413 +
5414 + if test $stat -eq 0; then :
5415 + else
5416 + rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
5417 + exit $stat
5418 + fi
5419 +
5420 + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
5421 + do
5422 + test -f "$tmpdepfile" && break
5423 + done
5424 + if test -f "$tmpdepfile"; then
5425 + # Each line is of the form `foo.o: dependent.h'.
5426 + # Do two passes, one to just change these to
5427 + # `$object: dependent.h' and one to simply `dependent.h:'.
5428 + sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
5429 + # That's a tab and a space in the [].
5430 + sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
5431 + else
5432 + # The sourcefile does not contain any dependencies, so just
5433 + # store a dummy comment line, to avoid errors with the Makefile
5434 + # "include basename.Plo" scheme.
5435 + echo "#dummy" > "$depfile"
5436 + fi
5437 + rm -f "$tmpdepfile"
5438 + ;;
5439 +
5440 +icc)
5441 + # Intel's C compiler understands `-MD -MF file'. However on
5442 + # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c
5443 + # ICC 7.0 will fill foo.d with something like
5444 + # foo.o: sub/foo.c
5445 + # foo.o: sub/foo.h
5446 + # which is wrong. We want:
5447 + # sub/foo.o: sub/foo.c
5448 + # sub/foo.o: sub/foo.h
5449 + # sub/foo.c:
5450 + # sub/foo.h:
5451 + # ICC 7.1 will output
5452 + # foo.o: sub/foo.c sub/foo.h
5453 + # and will wrap long lines using \ :
5454 + # foo.o: sub/foo.c ... \
5455 + # sub/foo.h ... \
5456 + # ...
5457 +
5458 + "$@" -MD -MF "$tmpdepfile"
5459 + stat=$?
5460 + if test $stat -eq 0; then :
5461 + else
5462 + rm -f "$tmpdepfile"
5463 + exit $stat
5464 + fi
5465 + rm -f "$depfile"
5466 + # Each line is of the form `foo.o: dependent.h',
5467 + # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
5468 + # Do two passes, one to just change these to
5469 + # `$object: dependent.h' and one to simply `dependent.h:'.
5470 + sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
5471 + # Some versions of the HPUX 10.20 sed can't process this invocation
5472 + # correctly. Breaking it into two sed invocations is a workaround.
5473 + sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" |
5474 + sed -e 's/$/ :/' >> "$depfile"
5475 + rm -f "$tmpdepfile"
5476 + ;;
5477 +
5478 +hp2)
5479 + # The "hp" stanza above does not work with aCC (C++) and HP's ia64
5480 + # compilers, which have integrated preprocessors. The correct option
5481 + # to use with these is +Maked; it writes dependencies to a file named
5482 + # 'foo.d', which lands next to the object file, wherever that
5483 + # happens to be.
5484 + # Much of this is similar to the tru64 case; see comments there.
5485 + dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
5486 + test "x$dir" = "x$object" && dir=
5487 + base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
5488 + if test "$libtool" = yes; then
5489 + tmpdepfile1=$dir$base.d
5490 + tmpdepfile2=$dir.libs/$base.d
5491 + "$@" -Wc,+Maked
5492 + else
5493 + tmpdepfile1=$dir$base.d
5494 + tmpdepfile2=$dir$base.d
5495 + "$@" +Maked
5496 + fi
5497 + stat=$?
5498 + if test $stat -eq 0; then :
5499 + else
5500 + rm -f "$tmpdepfile1" "$tmpdepfile2"
5501 + exit $stat
5502 + fi
5503 +
5504 + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2"
5505 + do
5506 + test -f "$tmpdepfile" && break
5507 + done
5508 + if test -f "$tmpdepfile"; then
5509 + sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile"
5510 + # Add `dependent.h:' lines.
5511 + sed -ne '2,${
5512 + s/^ *//
5513 + s/ \\*$//
5514 + s/$/:/
5515 + p
5516 + }' "$tmpdepfile" >> "$depfile"
5517 + else
5518 + echo "#dummy" > "$depfile"
5519 + fi
5520 + rm -f "$tmpdepfile" "$tmpdepfile2"
5521 + ;;
5522 +
5523 +tru64)
5524 + # The Tru64 compiler uses -MD to generate dependencies as a side
5525 + # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
5526 + # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
5527 + # dependencies in `foo.d' instead, so we check for that too.
5528 + # Subdirectories are respected.
5529 + dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
5530 + test "x$dir" = "x$object" && dir=
5531 + base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
5532 +
5533 + if test "$libtool" = yes; then
5534 + # With Tru64 cc, shared objects can also be used to make a
5535 + # static library. This mechanism is used in libtool 1.4 series to
5536 + # handle both shared and static libraries in a single compilation.
5537 + # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
5538 + #
5539 + # With libtool 1.5 this exception was removed, and libtool now
5540 + # generates 2 separate objects for the 2 libraries. These two
5541 + # compilations output dependencies in $dir.libs/$base.o.d and
5542 + # in $dir$base.o.d. We have to check for both files, because
5543 + # one of the two compilations can be disabled. We should prefer
5544 + # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
5545 + # automatically cleaned when .libs/ is deleted, while ignoring
5546 + # the former would cause a distcleancheck panic.
5547 + tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4
5548 + tmpdepfile2=$dir$base.o.d # libtool 1.5
5549 + tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5
5550 + tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504
5551 + "$@" -Wc,-MD
5552 + else
5553 + tmpdepfile1=$dir$base.o.d
5554 + tmpdepfile2=$dir$base.d
5555 + tmpdepfile3=$dir$base.d
5556 + tmpdepfile4=$dir$base.d
5557 + "$@" -MD
5558 + fi
5559 +
5560 + stat=$?
5561 + if test $stat -eq 0; then :
5562 + else
5563 + rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
5564 + exit $stat
5565 + fi
5566 +
5567 + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
5568 + do
5569 + test -f "$tmpdepfile" && break
5570 + done
5571 + if test -f "$tmpdepfile"; then
5572 + sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
5573 + # That's a tab and a space in the [].
5574 + sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
5575 + else
5576 + echo "#dummy" > "$depfile"
5577 + fi
5578 + rm -f "$tmpdepfile"
5579 + ;;
5580 +
5581 +#nosideeffect)
5582 + # This comment above is used by automake to tell side-effect
5583 + # dependency tracking mechanisms from slower ones.
5584 +
5585 +dashmstdout)
5586 + # Important note: in order to support this mode, a compiler *must*
5587 + # always write the preprocessed file to stdout, regardless of -o.
5588 + "$@" || exit $?
5589 +
5590 + # Remove the call to Libtool.
5591 + if test "$libtool" = yes; then
5592 + while test "X$1" != 'X--mode=compile'; do
5593 + shift
5594 + done
5595 + shift
5596 + fi
5597 +
5598 + # Remove `-o $object'.
5599 + IFS=" "
5600 + for arg
5601 + do
5602 + case $arg in
5603 + -o)
5604 + shift
5605 + ;;
5606 + $object)
5607 + shift
5608 + ;;
5609 + *)
5610 + set fnord "$@" "$arg"
5611 + shift # fnord
5612 + shift # $arg
5613 + ;;
5614 + esac
5615 + done
5616 +
5617 + test -z "$dashmflag" && dashmflag=-M
5618 + # Require at least two characters before searching for `:'
5619 + # in the target name. This is to cope with DOS-style filenames:
5620 + # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise.
5621 + "$@" $dashmflag |
5622 + sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile"
5623 + rm -f "$depfile"
5624 + cat < "$tmpdepfile" > "$depfile"
5625 + tr ' ' '
5626 +' < "$tmpdepfile" | \
5627 +## Some versions of the HPUX 10.20 sed can't process this invocation
5628 +## correctly. Breaking it into two sed invocations is a workaround.
5629 + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
5630 + rm -f "$tmpdepfile"
5631 + ;;
5632 +
5633 +dashXmstdout)
5634 + # This case only exists to satisfy depend.m4. It is never actually
5635 + # run, as this mode is specially recognized in the preamble.
5636 + exit 1
5637 + ;;
5638 +
5639 +makedepend)
5640 + "$@" || exit $?
5641 + # Remove any Libtool call
5642 + if test "$libtool" = yes; then
5643 + while test "X$1" != 'X--mode=compile'; do
5644 + shift
5645 + done
5646 + shift
5647 + fi
5648 + # X makedepend
5649 + shift
5650 + cleared=no eat=no
5651 + for arg
5652 + do
5653 + case $cleared in
5654 + no)
5655 + set ""; shift
5656 + cleared=yes ;;
5657 + esac
5658 + if test $eat = yes; then
5659 + eat=no
5660 + continue
5661 + fi
5662 + case "$arg" in
5663 + -D*|-I*)
5664 + set fnord "$@" "$arg"; shift ;;
5665 + # Strip any option that makedepend may not understand. Remove
5666 + # the object too, otherwise makedepend will parse it as a source file.
5667 + -arch)
5668 + eat=yes ;;
5669 + -*|$object)
5670 + ;;
5671 + *)
5672 + set fnord "$@" "$arg"; shift ;;
5673 + esac
5674 + done
5675 + obj_suffix=`echo "$object" | sed 's/^.*\././'`
5676 + touch "$tmpdepfile"
5677 + ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
5678 + rm -f "$depfile"
5679 + cat < "$tmpdepfile" > "$depfile"
5680 + sed '1,2d' "$tmpdepfile" | tr ' ' '
5681 +' | \
5682 +## Some versions of the HPUX 10.20 sed can't process this invocation
5683 +## correctly. Breaking it into two sed invocations is a workaround.
5684 + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
5685 + rm -f "$tmpdepfile" "$tmpdepfile".bak
5686 + ;;
5687 +
5688 +cpp)
5689 + # Important note: in order to support this mode, a compiler *must*
5690 + # always write the preprocessed file to stdout.
5691 + "$@" || exit $?
5692 +
5693 + # Remove the call to Libtool.
5694 + if test "$libtool" = yes; then
5695 + while test "X$1" != 'X--mode=compile'; do
5696 + shift
5697 + done
5698 + shift
5699 + fi
5700 +
5701 + # Remove `-o $object'.
5702 + IFS=" "
5703 + for arg
5704 + do
5705 + case $arg in
5706 + -o)
5707 + shift
5708 + ;;
5709 + $object)
5710 + shift
5711 + ;;
5712 + *)
5713 + set fnord "$@" "$arg"
5714 + shift # fnord
5715 + shift # $arg
5716 + ;;
5717 + esac
5718 + done
5719 +
5720 + "$@" -E |
5721 + sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
5722 + -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
5723 + sed '$ s: \\$::' > "$tmpdepfile"
5724 + rm -f "$depfile"
5725 + echo "$object : \\" > "$depfile"
5726 + cat < "$tmpdepfile" >> "$depfile"
5727 + sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
5728 + rm -f "$tmpdepfile"
5729 + ;;
5730 +
5731 +msvisualcpp)
5732 + # Important note: in order to support this mode, a compiler *must*
5733 + # always write the preprocessed file to stdout.
5734 + "$@" || exit $?
5735 +
5736 + # Remove the call to Libtool.
5737 + if test "$libtool" = yes; then
5738 + while test "X$1" != 'X--mode=compile'; do
5739 + shift
5740 + done
5741 + shift
5742 + fi
5743 +
5744 + IFS=" "
5745 + for arg
5746 + do
5747 + case "$arg" in
5748 + -o)
5749 + shift
5750 + ;;
5751 + $object)
5752 + shift
5753 + ;;
5754 + "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
5755 + set fnord "$@"
5756 + shift
5757 + shift
5758 + ;;
5759 + *)
5760 + set fnord "$@" "$arg"
5761 + shift
5762 + shift
5763 + ;;
5764 + esac
5765 + done
5766 + "$@" -E 2>/dev/null |
5767 + sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile"
5768 + rm -f "$depfile"
5769 + echo "$object : \\" > "$depfile"
5770 + sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
5771 + echo " " >> "$depfile"
5772 + sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile"
5773 + rm -f "$tmpdepfile"
5774 + ;;
5775 +
5776 +msvcmsys)
5777 + # This case exists only to let depend.m4 do its work. It works by
5778 + # looking at the text of this script. This case will never be run,
5779 + # since it is checked for above.
5780 + exit 1
5781 + ;;
5782 +
5783 +none)
5784 + exec "$@"
5785 + ;;
5786 +
5787 +*)
5788 + echo "Unknown depmode $depmode" 1>&2
5789 + exit 1
5790 + ;;
5791 +esac
5792 +
5793 +exit 0
5794 +
5795 +# Local Variables:
5796 +# mode: shell-script
5797 +# sh-indentation: 2
5798 +# eval: (add-hook 'write-file-hooks 'time-stamp)
5799 +# time-stamp-start: "scriptversion="
5800 +# time-stamp-format: "%:y-%02m-%02d.%02H"
5801 +# time-stamp-time-zone: "UTC"
5802 +# time-stamp-end: "; # UTC"
5803 +# End:
5804
5805
5806 Property changes on: trunk/baselayout-prefix/gnulib/build-aux/depcomp
5807 ___________________________________________________________________
5808 Added: svn:executable
5809 + *
5810
5811 Added: trunk/baselayout-prefix/gnulib/build-aux/install-sh
5812 ===================================================================
5813 --- trunk/baselayout-prefix/gnulib/build-aux/install-sh (rev 0)
5814 +++ trunk/baselayout-prefix/gnulib/build-aux/install-sh 2011-03-31 16:43:45 UTC (rev 1693)
5815 @@ -0,0 +1,520 @@
5816 +#!/bin/sh
5817 +# install - install a program, script, or datafile
5818 +
5819 +scriptversion=2009-04-28.21; # UTC
5820 +
5821 +# This originates from X11R5 (mit/util/scripts/install.sh), which was
5822 +# later released in X11R6 (xc/config/util/install.sh) with the
5823 +# following copyright and license.
5824 +#
5825 +# Copyright (C) 1994 X Consortium
5826 +#
5827 +# Permission is hereby granted, free of charge, to any person obtaining a copy
5828 +# of this software and associated documentation files (the "Software"), to
5829 +# deal in the Software without restriction, including without limitation the
5830 +# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
5831 +# sell copies of the Software, and to permit persons to whom the Software is
5832 +# furnished to do so, subject to the following conditions:
5833 +#
5834 +# The above copyright notice and this permission notice shall be included in
5835 +# all copies or substantial portions of the Software.
5836 +#
5837 +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
5838 +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
5839 +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
5840 +# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
5841 +# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
5842 +# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
5843 +#
5844 +# Except as contained in this notice, the name of the X Consortium shall not
5845 +# be used in advertising or otherwise to promote the sale, use or other deal-
5846 +# ings in this Software without prior written authorization from the X Consor-
5847 +# tium.
5848 +#
5849 +#
5850 +# FSF changes to this file are in the public domain.
5851 +#
5852 +# Calling this script install-sh is preferred over install.sh, to prevent
5853 +# `make' implicit rules from creating a file called install from it
5854 +# when there is no Makefile.
5855 +#
5856 +# This script is compatible with the BSD install script, but was written
5857 +# from scratch.
5858 +
5859 +nl='
5860 +'
5861 +IFS=" "" $nl"
5862 +
5863 +# set DOITPROG to echo to test this script
5864 +
5865 +# Don't use :- since 4.3BSD and earlier shells don't like it.
5866 +doit=${DOITPROG-}
5867 +if test -z "$doit"; then
5868 + doit_exec=exec
5869 +else
5870 + doit_exec=$doit
5871 +fi
5872 +
5873 +# Put in absolute file names if you don't have them in your path;
5874 +# or use environment vars.
5875 +
5876 +chgrpprog=${CHGRPPROG-chgrp}
5877 +chmodprog=${CHMODPROG-chmod}
5878 +chownprog=${CHOWNPROG-chown}
5879 +cmpprog=${CMPPROG-cmp}
5880 +cpprog=${CPPROG-cp}
5881 +mkdirprog=${MKDIRPROG-mkdir}
5882 +mvprog=${MVPROG-mv}
5883 +rmprog=${RMPROG-rm}
5884 +stripprog=${STRIPPROG-strip}
5885 +
5886 +posix_glob='?'
5887 +initialize_posix_glob='
5888 + test "$posix_glob" != "?" || {
5889 + if (set -f) 2>/dev/null; then
5890 + posix_glob=
5891 + else
5892 + posix_glob=:
5893 + fi
5894 + }
5895 +'
5896 +
5897 +posix_mkdir=
5898 +
5899 +# Desired mode of installed file.
5900 +mode=0755
5901 +
5902 +chgrpcmd=
5903 +chmodcmd=$chmodprog
5904 +chowncmd=
5905 +mvcmd=$mvprog
5906 +rmcmd="$rmprog -f"
5907 +stripcmd=
5908 +
5909 +src=
5910 +dst=
5911 +dir_arg=
5912 +dst_arg=
5913 +
5914 +copy_on_change=false
5915 +no_target_directory=
5916 +
5917 +usage="\
5918 +Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
5919 + or: $0 [OPTION]... SRCFILES... DIRECTORY
5920 + or: $0 [OPTION]... -t DIRECTORY SRCFILES...
5921 + or: $0 [OPTION]... -d DIRECTORIES...
5922 +
5923 +In the 1st form, copy SRCFILE to DSTFILE.
5924 +In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
5925 +In the 4th, create DIRECTORIES.
5926 +
5927 +Options:
5928 + --help display this help and exit.
5929 + --version display version info and exit.
5930 +
5931 + -c (ignored)
5932 + -C install only if different (preserve the last data modification time)
5933 + -d create directories instead of installing files.
5934 + -g GROUP $chgrpprog installed files to GROUP.
5935 + -m MODE $chmodprog installed files to MODE.
5936 + -o USER $chownprog installed files to USER.
5937 + -s $stripprog installed files.
5938 + -t DIRECTORY install into DIRECTORY.
5939 + -T report an error if DSTFILE is a directory.
5940 +
5941 +Environment variables override the default commands:
5942 + CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
5943 + RMPROG STRIPPROG
5944 +"
5945 +
5946 +while test $# -ne 0; do
5947 + case $1 in
5948 + -c) ;;
5949 +
5950 + -C) copy_on_change=true;;
5951 +
5952 + -d) dir_arg=true;;
5953 +
5954 + -g) chgrpcmd="$chgrpprog $2"
5955 + shift;;
5956 +
5957 + --help) echo "$usage"; exit $?;;
5958 +
5959 + -m) mode=$2
5960 + case $mode in
5961 + *' '* | *' '* | *'
5962 +'* | *'*'* | *'?'* | *'['*)
5963 + echo "$0: invalid mode: $mode" >&2
5964 + exit 1;;
5965 + esac
5966 + shift;;
5967 +
5968 + -o) chowncmd="$chownprog $2"
5969 + shift;;
5970 +
5971 + -s) stripcmd=$stripprog;;
5972 +
5973 + -t) dst_arg=$2
5974 + shift;;
5975 +
5976 + -T) no_target_directory=true;;
5977 +
5978 + --version) echo "$0 $scriptversion"; exit $?;;
5979 +
5980 + --) shift
5981 + break;;
5982 +
5983 + -*) echo "$0: invalid option: $1" >&2
5984 + exit 1;;
5985 +
5986 + *) break;;
5987 + esac
5988 + shift
5989 +done
5990 +
5991 +if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
5992 + # When -d is used, all remaining arguments are directories to create.
5993 + # When -t is used, the destination is already specified.
5994 + # Otherwise, the last argument is the destination. Remove it from $@.
5995 + for arg
5996 + do
5997 + if test -n "$dst_arg"; then
5998 + # $@ is not empty: it contains at least $arg.
5999 + set fnord "$@" "$dst_arg"
6000 + shift # fnord
6001 + fi
6002 + shift # arg
6003 + dst_arg=$arg
6004 + done
6005 +fi
6006 +
6007 +if test $# -eq 0; then
6008 + if test -z "$dir_arg"; then
6009 + echo "$0: no input file specified." >&2
6010 + exit 1
6011 + fi
6012 + # It's OK to call `install-sh -d' without argument.
6013 + # This can happen when creating conditional directories.
6014 + exit 0
6015 +fi
6016 +
6017 +if test -z "$dir_arg"; then
6018 + trap '(exit $?); exit' 1 2 13 15
6019 +
6020 + # Set umask so as not to create temps with too-generous modes.
6021 + # However, 'strip' requires both read and write access to temps.
6022 + case $mode in
6023 + # Optimize common cases.
6024 + *644) cp_umask=133;;
6025 + *755) cp_umask=22;;
6026 +
6027 + *[0-7])
6028 + if test -z "$stripcmd"; then
6029 + u_plus_rw=
6030 + else
6031 + u_plus_rw='% 200'
6032 + fi
6033 + cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
6034 + *)
6035 + if test -z "$stripcmd"; then
6036 + u_plus_rw=
6037 + else
6038 + u_plus_rw=,u+rw
6039 + fi
6040 + cp_umask=$mode$u_plus_rw;;
6041 + esac
6042 +fi
6043 +
6044 +for src
6045 +do
6046 + # Protect names starting with `-'.
6047 + case $src in
6048 + -*) src=./$src;;
6049 + esac
6050 +
6051 + if test -n "$dir_arg"; then
6052 + dst=$src
6053 + dstdir=$dst
6054 + test -d "$dstdir"
6055 + dstdir_status=$?
6056 + else
6057 +
6058 + # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
6059 + # might cause directories to be created, which would be especially bad
6060 + # if $src (and thus $dsttmp) contains '*'.
6061 + if test ! -f "$src" && test ! -d "$src"; then
6062 + echo "$0: $src does not exist." >&2
6063 + exit 1
6064 + fi
6065 +
6066 + if test -z "$dst_arg"; then
6067 + echo "$0: no destination specified." >&2
6068 + exit 1
6069 + fi
6070 +
6071 + dst=$dst_arg
6072 + # Protect names starting with `-'.
6073 + case $dst in
6074 + -*) dst=./$dst;;
6075 + esac
6076 +
6077 + # If destination is a directory, append the input filename; won't work
6078 + # if double slashes aren't ignored.
6079 + if test -d "$dst"; then
6080 + if test -n "$no_target_directory"; then
6081 + echo "$0: $dst_arg: Is a directory" >&2
6082 + exit 1
6083 + fi
6084 + dstdir=$dst
6085 + dst=$dstdir/`basename "$src"`
6086 + dstdir_status=0
6087 + else
6088 + # Prefer dirname, but fall back on a substitute if dirname fails.
6089 + dstdir=`
6090 + (dirname "$dst") 2>/dev/null ||
6091 + expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6092 + X"$dst" : 'X\(//\)[^/]' \| \
6093 + X"$dst" : 'X\(//\)$' \| \
6094 + X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
6095 + echo X"$dst" |
6096 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6097 + s//\1/
6098 + q
6099 + }
6100 + /^X\(\/\/\)[^/].*/{
6101 + s//\1/
6102 + q
6103 + }
6104 + /^X\(\/\/\)$/{
6105 + s//\1/
6106 + q
6107 + }
6108 + /^X\(\/\).*/{
6109 + s//\1/
6110 + q
6111 + }
6112 + s/.*/./; q'
6113 + `
6114 +
6115 + test -d "$dstdir"
6116 + dstdir_status=$?
6117 + fi
6118 + fi
6119 +
6120 + obsolete_mkdir_used=false
6121 +
6122 + if test $dstdir_status != 0; then
6123 + case $posix_mkdir in
6124 + '')
6125 + # Create intermediate dirs using mode 755 as modified by the umask.
6126 + # This is like FreeBSD 'install' as of 1997-10-28.
6127 + umask=`umask`
6128 + case $stripcmd.$umask in
6129 + # Optimize common cases.
6130 + *[2367][2367]) mkdir_umask=$umask;;
6131 + .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
6132 +
6133 + *[0-7])
6134 + mkdir_umask=`expr $umask + 22 \
6135 + - $umask % 100 % 40 + $umask % 20 \
6136 + - $umask % 10 % 4 + $umask % 2
6137 + `;;
6138 + *) mkdir_umask=$umask,go-w;;
6139 + esac
6140 +
6141 + # With -d, create the new directory with the user-specified mode.
6142 + # Otherwise, rely on $mkdir_umask.
6143 + if test -n "$dir_arg"; then
6144 + mkdir_mode=-m$mode
6145 + else
6146 + mkdir_mode=
6147 + fi
6148 +
6149 + posix_mkdir=false
6150 + case $umask in
6151 + *[123567][0-7][0-7])
6152 + # POSIX mkdir -p sets u+wx bits regardless of umask, which
6153 + # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
6154 + ;;
6155 + *)
6156 + tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
6157 + trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
6158 +
6159 + if (umask $mkdir_umask &&
6160 + exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
6161 + then
6162 + if test -z "$dir_arg" || {
6163 + # Check for POSIX incompatibilities with -m.
6164 + # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
6165 + # other-writeable bit of parent directory when it shouldn't.
6166 + # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
6167 + ls_ld_tmpdir=`ls -ld "$tmpdir"`
6168 + case $ls_ld_tmpdir in
6169 + d????-?r-*) different_mode=700;;
6170 + d????-?--*) different_mode=755;;
6171 + *) false;;
6172 + esac &&
6173 + $mkdirprog -m$different_mode -p -- "$tmpdir" && {
6174 + ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
6175 + test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
6176 + }
6177 + }
6178 + then posix_mkdir=:
6179 + fi
6180 + rmdir "$tmpdir/d" "$tmpdir"
6181 + else
6182 + # Remove any dirs left behind by ancient mkdir implementations.
6183 + rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
6184 + fi
6185 + trap '' 0;;
6186 + esac;;
6187 + esac
6188 +
6189 + if
6190 + $posix_mkdir && (
6191 + umask $mkdir_umask &&
6192 + $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
6193 + )
6194 + then :
6195 + else
6196 +
6197 + # The umask is ridiculous, or mkdir does not conform to POSIX,
6198 + # or it failed possibly due to a race condition. Create the
6199 + # directory the slow way, step by step, checking for races as we go.
6200 +
6201 + case $dstdir in
6202 + /*) prefix='/';;
6203 + -*) prefix='./';;
6204 + *) prefix='';;
6205 + esac
6206 +
6207 + eval "$initialize_posix_glob"
6208 +
6209 + oIFS=$IFS
6210 + IFS=/
6211 + $posix_glob set -f
6212 + set fnord $dstdir
6213 + shift
6214 + $posix_glob set +f
6215 + IFS=$oIFS
6216 +
6217 + prefixes=
6218 +
6219 + for d
6220 + do
6221 + test -z "$d" && continue
6222 +
6223 + prefix=$prefix$d
6224 + if test -d "$prefix"; then
6225 + prefixes=
6226 + else
6227 + if $posix_mkdir; then
6228 + (umask=$mkdir_umask &&
6229 + $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
6230 + # Don't fail if two instances are running concurrently.
6231 + test -d "$prefix" || exit 1
6232 + else
6233 + case $prefix in
6234 + *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
6235 + *) qprefix=$prefix;;
6236 + esac
6237 + prefixes="$prefixes '$qprefix'"
6238 + fi
6239 + fi
6240 + prefix=$prefix/
6241 + done
6242 +
6243 + if test -n "$prefixes"; then
6244 + # Don't fail if two instances are running concurrently.
6245 + (umask $mkdir_umask &&
6246 + eval "\$doit_exec \$mkdirprog $prefixes") ||
6247 + test -d "$dstdir" || exit 1
6248 + obsolete_mkdir_used=true
6249 + fi
6250 + fi
6251 + fi
6252 +
6253 + if test -n "$dir_arg"; then
6254 + { test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
6255 + { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
6256 + { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
6257 + test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
6258 + else
6259 +
6260 + # Make a couple of temp file names in the proper directory.
6261 + dsttmp=$dstdir/_inst.$$_
6262 + rmtmp=$dstdir/_rm.$$_
6263 +
6264 + # Trap to clean up those temp files at exit.
6265 + trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
6266 +
6267 + # Copy the file name to the temp name.
6268 + (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
6269 +
6270 + # and set any options; do chmod last to preserve setuid bits.
6271 + #
6272 + # If any of these fail, we abort the whole thing. If we want to
6273 + # ignore errors from any of these, just make sure not to ignore
6274 + # errors from the above "$doit $cpprog $src $dsttmp" command.
6275 + #
6276 + { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
6277 + { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
6278 + { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
6279 + { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
6280 +
6281 + # If -C, don't bother to copy if it wouldn't change the file.
6282 + if $copy_on_change &&
6283 + old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
6284 + new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
6285 +
6286 + eval "$initialize_posix_glob" &&
6287 + $posix_glob set -f &&
6288 + set X $old && old=:$2:$4:$5:$6 &&
6289 + set X $new && new=:$2:$4:$5:$6 &&
6290 + $posix_glob set +f &&
6291 +
6292 + test "$old" = "$new" &&
6293 + $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
6294 + then
6295 + rm -f "$dsttmp"
6296 + else
6297 + # Rename the file to the real destination.
6298 + $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
6299 +
6300 + # The rename failed, perhaps because mv can't rename something else
6301 + # to itself, or perhaps because mv is so ancient that it does not
6302 + # support -f.
6303 + {
6304 + # Now remove or move aside any old file at destination location.
6305 + # We try this two ways since rm can't unlink itself on some
6306 + # systems and the destination file might be busy for other
6307 + # reasons. In this case, the final cleanup might fail but the new
6308 + # file should still install successfully.
6309 + {
6310 + test ! -f "$dst" ||
6311 + $doit $rmcmd -f "$dst" 2>/dev/null ||
6312 + { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
6313 + { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
6314 + } ||
6315 + { echo "$0: cannot unlink or rename $dst" >&2
6316 + (exit 1); exit 1
6317 + }
6318 + } &&
6319 +
6320 + # Now rename the file to the real destination.
6321 + $doit $mvcmd "$dsttmp" "$dst"
6322 + }
6323 + fi || exit 1
6324 +
6325 + trap '' 0
6326 + fi
6327 +done
6328 +
6329 +# Local variables:
6330 +# eval: (add-hook 'write-file-hooks 'time-stamp)
6331 +# time-stamp-start: "scriptversion="
6332 +# time-stamp-format: "%:y-%02m-%02d.%02H"
6333 +# time-stamp-time-zone: "UTC"
6334 +# time-stamp-end: "; # UTC"
6335 +# End:
6336
6337
6338 Property changes on: trunk/baselayout-prefix/gnulib/build-aux/install-sh
6339 ___________________________________________________________________
6340 Added: svn:executable
6341 + *
6342
6343 Added: trunk/baselayout-prefix/gnulib/build-aux/link-warning.h
6344 ===================================================================
6345 --- trunk/baselayout-prefix/gnulib/build-aux/link-warning.h (rev 0)
6346 +++ trunk/baselayout-prefix/gnulib/build-aux/link-warning.h 2011-03-31 16:43:45 UTC (rev 1693)
6347 @@ -0,0 +1,28 @@
6348 +/* GL_LINK_WARNING("literal string") arranges to emit the literal string as
6349 + a linker warning on most glibc systems.
6350 + We use a linker warning rather than a preprocessor warning, because
6351 + #warning cannot be used inside macros. */
6352 +#ifndef GL_LINK_WARNING
6353 + /* This works on platforms with GNU ld and ELF object format.
6354 + Testing __GLIBC__ is sufficient for asserting that GNU ld is in use.
6355 + Testing __ELF__ guarantees the ELF object format.
6356 + Testing __GNUC__ is necessary for the compound expression syntax. */
6357 +# if defined __GLIBC__ && defined __ELF__ && defined __GNUC__
6358 +# define GL_LINK_WARNING(message) \
6359 + GL_LINK_WARNING1 (__FILE__, __LINE__, message)
6360 +# define GL_LINK_WARNING1(file, line, message) \
6361 + GL_LINK_WARNING2 (file, line, message) /* macroexpand file and line */
6362 +# define GL_LINK_WARNING2(file, line, message) \
6363 + GL_LINK_WARNING3 (file ":" #line ": warning: " message)
6364 +# define GL_LINK_WARNING3(message) \
6365 + ({ static const char warning[sizeof (message)] \
6366 + __attribute__ ((__unused__, \
6367 + __section__ (".gnu.warning"), \
6368 + __aligned__ (1))) \
6369 + = message "\n"; \
6370 + (void)0; \
6371 + })
6372 +# else
6373 +# define GL_LINK_WARNING(message) ((void) 0)
6374 +# endif
6375 +#endif
6376
6377 Added: trunk/baselayout-prefix/gnulib/build-aux/missing
6378 ===================================================================
6379 --- trunk/baselayout-prefix/gnulib/build-aux/missing (rev 0)
6380 +++ trunk/baselayout-prefix/gnulib/build-aux/missing 2011-03-31 16:43:45 UTC (rev 1693)
6381 @@ -0,0 +1,376 @@
6382 +#! /bin/sh
6383 +# Common stub for a few missing GNU programs while installing.
6384 +
6385 +scriptversion=2009-04-28.21; # UTC
6386 +
6387 +# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
6388 +# 2008, 2009 Free Software Foundation, Inc.
6389 +# Originally by Fran,cois Pinard <pinard@×××××××××××××.ca>, 1996.
6390 +
6391 +# This program is free software; you can redistribute it and/or modify
6392 +# it under the terms of the GNU General Public License as published by
6393 +# the Free Software Foundation; either version 2, or (at your option)
6394 +# any later version.
6395 +
6396 +# This program is distributed in the hope that it will be useful,
6397 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
6398 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6399 +# GNU General Public License for more details.
6400 +
6401 +# You should have received a copy of the GNU General Public License
6402 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
6403 +
6404 +# As a special exception to the GNU General Public License, if you
6405 +# distribute this file as part of a program that contains a
6406 +# configuration script generated by Autoconf, you may include it under
6407 +# the same distribution terms that you use for the rest of that program.
6408 +
6409 +if test $# -eq 0; then
6410 + echo 1>&2 "Try \`$0 --help' for more information"
6411 + exit 1
6412 +fi
6413 +
6414 +run=:
6415 +sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
6416 +sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
6417 +
6418 +# In the cases where this matters, `missing' is being run in the
6419 +# srcdir already.
6420 +if test -f configure.ac; then
6421 + configure_ac=configure.ac
6422 +else
6423 + configure_ac=configure.in
6424 +fi
6425 +
6426 +msg="missing on your system"
6427 +
6428 +case $1 in
6429 +--run)
6430 + # Try to run requested program, and just exit if it succeeds.
6431 + run=
6432 + shift
6433 + "$@" && exit 0
6434 + # Exit code 63 means version mismatch. This often happens
6435 + # when the user try to use an ancient version of a tool on
6436 + # a file that requires a minimum version. In this case we
6437 + # we should proceed has if the program had been absent, or
6438 + # if --run hadn't been passed.
6439 + if test $? = 63; then
6440 + run=:
6441 + msg="probably too old"
6442 + fi
6443 + ;;
6444 +
6445 + -h|--h|--he|--hel|--help)
6446 + echo "\
6447 +$0 [OPTION]... PROGRAM [ARGUMENT]...
6448 +
6449 +Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
6450 +error status if there is no known handling for PROGRAM.
6451 +
6452 +Options:
6453 + -h, --help display this help and exit
6454 + -v, --version output version information and exit
6455 + --run try to run the given command, and emulate it if it fails
6456 +
6457 +Supported PROGRAM values:
6458 + aclocal touch file \`aclocal.m4'
6459 + autoconf touch file \`configure'
6460 + autoheader touch file \`config.h.in'
6461 + autom4te touch the output file, or create a stub one
6462 + automake touch all \`Makefile.in' files
6463 + bison create \`y.tab.[ch]', if possible, from existing .[ch]
6464 + flex create \`lex.yy.c', if possible, from existing .c
6465 + help2man touch the output file
6466 + lex create \`lex.yy.c', if possible, from existing .c
6467 + makeinfo touch the output file
6468 + tar try tar, gnutar, gtar, then tar without non-portable flags
6469 + yacc create \`y.tab.[ch]', if possible, from existing .[ch]
6470 +
6471 +Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and
6472 +\`g' are ignored when checking the name.
6473 +
6474 +Send bug reports to <bug-automake@×××.org>."
6475 + exit $?
6476 + ;;
6477 +
6478 + -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
6479 + echo "missing $scriptversion (GNU Automake)"
6480 + exit $?
6481 + ;;
6482 +
6483 + -*)
6484 + echo 1>&2 "$0: Unknown \`$1' option"
6485 + echo 1>&2 "Try \`$0 --help' for more information"
6486 + exit 1
6487 + ;;
6488 +
6489 +esac
6490 +
6491 +# normalize program name to check for.
6492 +program=`echo "$1" | sed '
6493 + s/^gnu-//; t
6494 + s/^gnu//; t
6495 + s/^g//; t'`
6496 +
6497 +# Now exit if we have it, but it failed. Also exit now if we
6498 +# don't have it and --version was passed (most likely to detect
6499 +# the program). This is about non-GNU programs, so use $1 not
6500 +# $program.
6501 +case $1 in
6502 + lex*|yacc*)
6503 + # Not GNU programs, they don't have --version.
6504 + ;;
6505 +
6506 + tar*)
6507 + if test -n "$run"; then
6508 + echo 1>&2 "ERROR: \`tar' requires --run"
6509 + exit 1
6510 + elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
6511 + exit 1
6512 + fi
6513 + ;;
6514 +
6515 + *)
6516 + if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
6517 + # We have it, but it failed.
6518 + exit 1
6519 + elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
6520 + # Could not run --version or --help. This is probably someone
6521 + # running `$TOOL --version' or `$TOOL --help' to check whether
6522 + # $TOOL exists and not knowing $TOOL uses missing.
6523 + exit 1
6524 + fi
6525 + ;;
6526 +esac
6527 +
6528 +# If it does not exist, or fails to run (possibly an outdated version),
6529 +# try to emulate it.
6530 +case $program in
6531 + aclocal*)
6532 + echo 1>&2 "\
6533 +WARNING: \`$1' is $msg. You should only need it if
6534 + you modified \`acinclude.m4' or \`${configure_ac}'. You might want
6535 + to install the \`Automake' and \`Perl' packages. Grab them from
6536 + any GNU archive site."
6537 + touch aclocal.m4
6538 + ;;
6539 +
6540 + autoconf*)
6541 + echo 1>&2 "\
6542 +WARNING: \`$1' is $msg. You should only need it if
6543 + you modified \`${configure_ac}'. You might want to install the
6544 + \`Autoconf' and \`GNU m4' packages. Grab them from any GNU
6545 + archive site."
6546 + touch configure
6547 + ;;
6548 +
6549 + autoheader*)
6550 + echo 1>&2 "\
6551 +WARNING: \`$1' is $msg. You should only need it if
6552 + you modified \`acconfig.h' or \`${configure_ac}'. You might want
6553 + to install the \`Autoconf' and \`GNU m4' packages. Grab them
6554 + from any GNU archive site."
6555 + files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
6556 + test -z "$files" && files="config.h"
6557 + touch_files=
6558 + for f in $files; do
6559 + case $f in
6560 + *:*) touch_files="$touch_files "`echo "$f" |
6561 + sed -e 's/^[^:]*://' -e 's/:.*//'`;;
6562 + *) touch_files="$touch_files $f.in";;
6563 + esac
6564 + done
6565 + touch $touch_files
6566 + ;;
6567 +
6568 + automake*)
6569 + echo 1>&2 "\
6570 +WARNING: \`$1' is $msg. You should only need it if
6571 + you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
6572 + You might want to install the \`Automake' and \`Perl' packages.
6573 + Grab them from any GNU archive site."
6574 + find . -type f -name Makefile.am -print |
6575 + sed 's/\.am$/.in/' |
6576 + while read f; do touch "$f"; done
6577 + ;;
6578 +
6579 + autom4te*)
6580 + echo 1>&2 "\
6581 +WARNING: \`$1' is needed, but is $msg.
6582 + You might have modified some files without having the
6583 + proper tools for further handling them.
6584 + You can get \`$1' as part of \`Autoconf' from any GNU
6585 + archive site."
6586 +
6587 + file=`echo "$*" | sed -n "$sed_output"`
6588 + test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
6589 + if test -f "$file"; then
6590 + touch $file
6591 + else
6592 + test -z "$file" || exec >$file
6593 + echo "#! /bin/sh"
6594 + echo "# Created by GNU Automake missing as a replacement of"
6595 + echo "# $ $@"
6596 + echo "exit 0"
6597 + chmod +x $file
6598 + exit 1
6599 + fi
6600 + ;;
6601 +
6602 + bison*|yacc*)
6603 + echo 1>&2 "\
6604 +WARNING: \`$1' $msg. You should only need it if
6605 + you modified a \`.y' file. You may need the \`Bison' package
6606 + in order for those modifications to take effect. You can get
6607 + \`Bison' from any GNU archive site."
6608 + rm -f y.tab.c y.tab.h
6609 + if test $# -ne 1; then
6610 + eval LASTARG="\${$#}"
6611 + case $LASTARG in
6612 + *.y)
6613 + SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
6614 + if test -f "$SRCFILE"; then
6615 + cp "$SRCFILE" y.tab.c
6616 + fi
6617 + SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
6618 + if test -f "$SRCFILE"; then
6619 + cp "$SRCFILE" y.tab.h
6620 + fi
6621 + ;;
6622 + esac
6623 + fi
6624 + if test ! -f y.tab.h; then
6625 + echo >y.tab.h
6626 + fi
6627 + if test ! -f y.tab.c; then
6628 + echo 'main() { return 0; }' >y.tab.c
6629 + fi
6630 + ;;
6631 +
6632 + lex*|flex*)
6633 + echo 1>&2 "\
6634 +WARNING: \`$1' is $msg. You should only need it if
6635 + you modified a \`.l' file. You may need the \`Flex' package
6636 + in order for those modifications to take effect. You can get
6637 + \`Flex' from any GNU archive site."
6638 + rm -f lex.yy.c
6639 + if test $# -ne 1; then
6640 + eval LASTARG="\${$#}"
6641 + case $LASTARG in
6642 + *.l)
6643 + SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
6644 + if test -f "$SRCFILE"; then
6645 + cp "$SRCFILE" lex.yy.c
6646 + fi
6647 + ;;
6648 + esac
6649 + fi
6650 + if test ! -f lex.yy.c; then
6651 + echo 'main() { return 0; }' >lex.yy.c
6652 + fi
6653 + ;;
6654 +
6655 + help2man*)
6656 + echo 1>&2 "\
6657 +WARNING: \`$1' is $msg. You should only need it if
6658 + you modified a dependency of a manual page. You may need the
6659 + \`Help2man' package in order for those modifications to take
6660 + effect. You can get \`Help2man' from any GNU archive site."
6661 +
6662 + file=`echo "$*" | sed -n "$sed_output"`
6663 + test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
6664 + if test -f "$file"; then
6665 + touch $file
6666 + else
6667 + test -z "$file" || exec >$file
6668 + echo ".ab help2man is required to generate this page"
6669 + exit $?
6670 + fi
6671 + ;;
6672 +
6673 + makeinfo*)
6674 + echo 1>&2 "\
6675 +WARNING: \`$1' is $msg. You should only need it if
6676 + you modified a \`.texi' or \`.texinfo' file, or any other file
6677 + indirectly affecting the aspect of the manual. The spurious
6678 + call might also be the consequence of using a buggy \`make' (AIX,
6679 + DU, IRIX). You might want to install the \`Texinfo' package or
6680 + the \`GNU make' package. Grab either from any GNU archive site."
6681 + # The file to touch is that specified with -o ...
6682 + file=`echo "$*" | sed -n "$sed_output"`
6683 + test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
6684 + if test -z "$file"; then
6685 + # ... or it is the one specified with @setfilename ...
6686 + infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
6687 + file=`sed -n '
6688 + /^@setfilename/{
6689 + s/.* \([^ ]*\) *$/\1/
6690 + p
6691 + q
6692 + }' $infile`
6693 + # ... or it is derived from the source name (dir/f.texi becomes f.info)
6694 + test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
6695 + fi
6696 + # If the file does not exist, the user really needs makeinfo;
6697 + # let's fail without touching anything.
6698 + test -f $file || exit 1
6699 + touch $file
6700 + ;;
6701 +
6702 + tar*)
6703 + shift
6704 +
6705 + # We have already tried tar in the generic part.
6706 + # Look for gnutar/gtar before invocation to avoid ugly error
6707 + # messages.
6708 + if (gnutar --version > /dev/null 2>&1); then
6709 + gnutar "$@" && exit 0
6710 + fi
6711 + if (gtar --version > /dev/null 2>&1); then
6712 + gtar "$@" && exit 0
6713 + fi
6714 + firstarg="$1"
6715 + if shift; then
6716 + case $firstarg in
6717 + *o*)
6718 + firstarg=`echo "$firstarg" | sed s/o//`
6719 + tar "$firstarg" "$@" && exit 0
6720 + ;;
6721 + esac
6722 + case $firstarg in
6723 + *h*)
6724 + firstarg=`echo "$firstarg" | sed s/h//`
6725 + tar "$firstarg" "$@" && exit 0
6726 + ;;
6727 + esac
6728 + fi
6729 +
6730 + echo 1>&2 "\
6731 +WARNING: I can't seem to be able to run \`tar' with the given arguments.
6732 + You may want to install GNU tar or Free paxutils, or check the
6733 + command line arguments."
6734 + exit 1
6735 + ;;
6736 +
6737 + *)
6738 + echo 1>&2 "\
6739 +WARNING: \`$1' is needed, and is $msg.
6740 + You might have modified some files without having the
6741 + proper tools for further handling them. Check the \`README' file,
6742 + it often tells you about the needed prerequisites for installing
6743 + this package. You may also peek at any GNU archive site, in case
6744 + some other package would contain this missing \`$1' program."
6745 + exit 1
6746 + ;;
6747 +esac
6748 +
6749 +exit 0
6750 +
6751 +# Local variables:
6752 +# eval: (add-hook 'write-file-hooks 'time-stamp)
6753 +# time-stamp-start: "scriptversion="
6754 +# time-stamp-format: "%:y-%02m-%02d.%02H"
6755 +# time-stamp-time-zone: "UTC"
6756 +# time-stamp-end: "; # UTC"
6757 +# End:
6758
6759
6760 Property changes on: trunk/baselayout-prefix/gnulib/build-aux/missing
6761 ___________________________________________________________________
6762 Added: svn:executable
6763 + *
6764
6765 Added: trunk/baselayout-prefix/gnulib/config.h.in
6766 ===================================================================
6767 --- trunk/baselayout-prefix/gnulib/config.h.in (rev 0)
6768 +++ trunk/baselayout-prefix/gnulib/config.h.in 2011-03-31 16:43:45 UTC (rev 1693)
6769 @@ -0,0 +1,154 @@
6770 +/* config.h.in. Generated from configure.ac by autoheader. */
6771 +
6772 +/* Define to 1 if you have the declaration of `getenv', and to 0 if you don't.
6773 + */
6774 +#undef HAVE_DECL_GETENV
6775 +
6776 +/* Define to 1 if you have the declaration of `strndup', and to 0 if you
6777 + don't. */
6778 +#undef HAVE_DECL_STRNDUP
6779 +
6780 +/* Define to 1 if you have the declaration of `strnlen', and to 0 if you
6781 + don't. */
6782 +#undef HAVE_DECL_STRNLEN
6783 +
6784 +/* Define to 1 if you have the <getopt.h> header file. */
6785 +#undef HAVE_GETOPT_H
6786 +
6787 +/* Define to 1 if you have the `getopt_long_only' function. */
6788 +#undef HAVE_GETOPT_LONG_ONLY
6789 +
6790 +/* Define to 1 if you have the <inttypes.h> header file. */
6791 +#undef HAVE_INTTYPES_H
6792 +
6793 +/* Define to 1 if you have the <memory.h> header file. */
6794 +#undef HAVE_MEMORY_H
6795 +
6796 +/* Define to 1 if you have the <stdint.h> header file. */
6797 +#undef HAVE_STDINT_H
6798 +
6799 +/* Define to 1 if you have the <stdlib.h> header file. */
6800 +#undef HAVE_STDLIB_H
6801 +
6802 +/* Define to 1 if you have the <strings.h> header file. */
6803 +#undef HAVE_STRINGS_H
6804 +
6805 +/* Define to 1 if you have the <string.h> header file. */
6806 +#undef HAVE_STRING_H
6807 +
6808 +/* Define if you have the strndup() function and it works. */
6809 +#undef HAVE_STRNDUP
6810 +
6811 +/* Define to 1 if you have the `strsep' function. */
6812 +#undef HAVE_STRSEP
6813 +
6814 +/* Define to 1 if you have the <sys/stat.h> header file. */
6815 +#undef HAVE_SYS_STAT_H
6816 +
6817 +/* Define to 1 if you have the <sys/types.h> header file. */
6818 +#undef HAVE_SYS_TYPES_H
6819 +
6820 +/* Define to 1 if you have the <unistd.h> header file. */
6821 +#undef HAVE_UNISTD_H
6822 +
6823 +/* Name of package */
6824 +#undef PACKAGE
6825 +
6826 +/* Define to the address where bug reports for this package should be sent. */
6827 +#undef PACKAGE_BUGREPORT
6828 +
6829 +/* Define to the full name of this package. */
6830 +#undef PACKAGE_NAME
6831 +
6832 +/* Define to the full name and version of this package. */
6833 +#undef PACKAGE_STRING
6834 +
6835 +/* Define to the one symbol short name of this package. */
6836 +#undef PACKAGE_TARNAME
6837 +
6838 +/* Define to the home page for this package. */
6839 +#undef PACKAGE_URL
6840 +
6841 +/* Define to the version of this package. */
6842 +#undef PACKAGE_VERSION
6843 +
6844 +/* Define to 1 if you have the ANSI C header files. */
6845 +#undef STDC_HEADERS
6846 +
6847 +/* Version number of package */
6848 +#undef VERSION
6849 +
6850 +/* Define to 1 if on MINIX. */
6851 +#undef _MINIX
6852 +
6853 +/* Define to 2 if the system does not provide POSIX.1 features except with
6854 + this defined. */
6855 +#undef _POSIX_1_SOURCE
6856 +
6857 +/* Define to 1 if you need to in order for `stat' and other things to work. */
6858 +#undef _POSIX_SOURCE
6859 +
6860 +/* Define to 500 only on HP-UX. */
6861 +#undef _XOPEN_SOURCE
6862 +
6863 +/* Enable extensions on AIX 3, Interix. */
6864 +#ifndef _ALL_SOURCE
6865 +# undef _ALL_SOURCE
6866 +#endif
6867 +/* Enable GNU extensions on systems that have them. */
6868 +#ifndef _GNU_SOURCE
6869 +# undef _GNU_SOURCE
6870 +#endif
6871 +/* Enable threading extensions on Solaris. */
6872 +#ifndef _POSIX_PTHREAD_SEMANTICS
6873 +# undef _POSIX_PTHREAD_SEMANTICS
6874 +#endif
6875 +/* Enable extensions on HP NonStop. */
6876 +#ifndef _TANDEM_SOURCE
6877 +# undef _TANDEM_SOURCE
6878 +#endif
6879 +/* Enable general extensions on Solaris. */
6880 +#ifndef __EXTENSIONS__
6881 +# undef __EXTENSIONS__
6882 +#endif
6883 +
6884 +
6885 +/* Define to rpl_ if the getopt replacement functions and variables should be
6886 + used. */
6887 +#undef __GETOPT_PREFIX
6888 +
6889 +/* Work around a bug in Apple GCC 4.0.1 build 5465: In C99 mode, it supports
6890 + the ISO C 99 semantics of 'extern inline' (unlike the GNU C semantics of
6891 + earlier versions), but does not display it by setting __GNUC_STDC_INLINE__.
6892 + __APPLE__ && __MACH__ test for MacOS X.
6893 + __APPLE_CC__ tests for the Apple compiler and its version.
6894 + __STDC_VERSION__ tests for the C99 mode. */
6895 +#if defined __APPLE__ && defined __MACH__ && __APPLE_CC__ >= 5465 && !defined __cplusplus && __STDC_VERSION__ >= 199901L && !defined __GNUC_STDC_INLINE__
6896 +# define __GNUC_STDC_INLINE__ 1
6897 +#endif
6898 +
6899 +/* Define to the equivalent of the C99 'restrict' keyword, or to
6900 + nothing if this is not supported. Do not define if restrict is
6901 + supported directly. */
6902 +#undef restrict
6903 +/* Work around a bug in Sun C++: it does not support _Restrict, even
6904 + though the corresponding Sun C compiler does, which causes
6905 + "#define restrict _Restrict" in the previous line. Perhaps some future
6906 + version of Sun C++ will work with _Restrict; if so, it'll probably
6907 + define __RESTRICT, just as Sun C does. */
6908 +#if defined __SUNPRO_CC && !defined __RESTRICT
6909 +# define _Restrict
6910 +#endif
6911 +
6912 +/* Define to rpl_strnlen if the replacement function should be used. */
6913 +#undef strnlen
6914 +
6915 +/* Define as a marker that can be attached to function parameter declarations
6916 + for parameters that are not used. This helps to reduce warnings, such as
6917 + from GCC -Wunused-parameter. */
6918 +#if __GNUC__ >= 3 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)
6919 +# define _UNUSED_PARAMETER_ __attribute__ ((__unused__))
6920 +#else
6921 +# define _UNUSED_PARAMETER_
6922 +#endif
6923 +
6924
6925 Added: trunk/baselayout-prefix/gnulib/configure
6926 ===================================================================
6927 --- trunk/baselayout-prefix/gnulib/configure (rev 0)
6928 +++ trunk/baselayout-prefix/gnulib/configure 2011-03-31 16:43:45 UTC (rev 1693)
6929 @@ -0,0 +1,6800 @@
6930 +#! /bin/sh
6931 +# Guess values for system-dependent variables and create Makefiles.
6932 +# Generated by GNU Autoconf 2.68 for dummy 0.
6933 +#
6934 +#
6935 +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6936 +# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
6937 +# Foundation, Inc.
6938 +#
6939 +#
6940 +# This configure script is free software; the Free Software Foundation
6941 +# gives unlimited permission to copy, distribute and modify it.
6942 +## -------------------- ##
6943 +## M4sh Initialization. ##
6944 +## -------------------- ##
6945 +
6946 +# Be more Bourne compatible
6947 +DUALCASE=1; export DUALCASE # for MKS sh
6948 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6949 + emulate sh
6950 + NULLCMD=:
6951 + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6952 + # is contrary to our usage. Disable this feature.
6953 + alias -g '${1+"$@"}'='"$@"'
6954 + setopt NO_GLOB_SUBST
6955 +else
6956 + case `(set -o) 2>/dev/null` in #(
6957 + *posix*) :
6958 + set -o posix ;; #(
6959 + *) :
6960 + ;;
6961 +esac
6962 +fi
6963 +
6964 +
6965 +as_nl='
6966 +'
6967 +export as_nl
6968 +# Printing a long string crashes Solaris 7 /usr/bin/printf.
6969 +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6970 +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6971 +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6972 +# Prefer a ksh shell builtin over an external printf program on Solaris,
6973 +# but without wasting forks for bash or zsh.
6974 +if test -z "$BASH_VERSION$ZSH_VERSION" \
6975 + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6976 + as_echo='print -r --'
6977 + as_echo_n='print -rn --'
6978 +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6979 + as_echo='printf %s\n'
6980 + as_echo_n='printf %s'
6981 +else
6982 + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6983 + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6984 + as_echo_n='/usr/ucb/echo -n'
6985 + else
6986 + as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6987 + as_echo_n_body='eval
6988 + arg=$1;
6989 + case $arg in #(
6990 + *"$as_nl"*)
6991 + expr "X$arg" : "X\\(.*\\)$as_nl";
6992 + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6993 + esac;
6994 + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6995 + '
6996 + export as_echo_n_body
6997 + as_echo_n='sh -c $as_echo_n_body as_echo'
6998 + fi
6999 + export as_echo_body
7000 + as_echo='sh -c $as_echo_body as_echo'
7001 +fi
7002 +
7003 +# The user is always right.
7004 +if test "${PATH_SEPARATOR+set}" != set; then
7005 + PATH_SEPARATOR=:
7006 + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7007 + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7008 + PATH_SEPARATOR=';'
7009 + }
7010 +fi
7011 +
7012 +
7013 +# IFS
7014 +# We need space, tab and new line, in precisely that order. Quoting is
7015 +# there to prevent editors from complaining about space-tab.
7016 +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
7017 +# splitting by setting IFS to empty value.)
7018 +IFS=" "" $as_nl"
7019 +
7020 +# Find who we are. Look in the path if we contain no directory separator.
7021 +as_myself=
7022 +case $0 in #((
7023 + *[\\/]* ) as_myself=$0 ;;
7024 + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7025 +for as_dir in $PATH
7026 +do
7027 + IFS=$as_save_IFS
7028 + test -z "$as_dir" && as_dir=.
7029 + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7030 + done
7031 +IFS=$as_save_IFS
7032 +
7033 + ;;
7034 +esac
7035 +# We did not find ourselves, most probably we were run as `sh COMMAND'
7036 +# in which case we are not to be found in the path.
7037 +if test "x$as_myself" = x; then
7038 + as_myself=$0
7039 +fi
7040 +if test ! -f "$as_myself"; then
7041 + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7042 + exit 1
7043 +fi
7044 +
7045 +# Unset variables that we do not need and which cause bugs (e.g. in
7046 +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7047 +# suppresses any "Segmentation fault" message there. '((' could
7048 +# trigger a bug in pdksh 5.2.14.
7049 +for as_var in BASH_ENV ENV MAIL MAILPATH
7050 +do eval test x\${$as_var+set} = xset \
7051 + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7052 +done
7053 +PS1='$ '
7054 +PS2='> '
7055 +PS4='+ '
7056 +
7057 +# NLS nuisances.
7058 +LC_ALL=C
7059 +export LC_ALL
7060 +LANGUAGE=C
7061 +export LANGUAGE
7062 +
7063 +# CDPATH.
7064 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7065 +
7066 +if test "x$CONFIG_SHELL" = x; then
7067 + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
7068 + emulate sh
7069 + NULLCMD=:
7070 + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
7071 + # is contrary to our usage. Disable this feature.
7072 + alias -g '\${1+\"\$@\"}'='\"\$@\"'
7073 + setopt NO_GLOB_SUBST
7074 +else
7075 + case \`(set -o) 2>/dev/null\` in #(
7076 + *posix*) :
7077 + set -o posix ;; #(
7078 + *) :
7079 + ;;
7080 +esac
7081 +fi
7082 +"
7083 + as_required="as_fn_return () { (exit \$1); }
7084 +as_fn_success () { as_fn_return 0; }
7085 +as_fn_failure () { as_fn_return 1; }
7086 +as_fn_ret_success () { return 0; }
7087 +as_fn_ret_failure () { return 1; }
7088 +
7089 +exitcode=0
7090 +as_fn_success || { exitcode=1; echo as_fn_success failed.; }
7091 +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
7092 +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
7093 +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
7094 +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
7095 +
7096 +else
7097 + exitcode=1; echo positional parameters were not saved.
7098 +fi
7099 +test x\$exitcode = x0 || exit 1"
7100 + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
7101 + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
7102 + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
7103 + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
7104 +test \$(( 1 + 1 )) = 2 || exit 1"
7105 + if (eval "$as_required") 2>/dev/null; then :
7106 + as_have_required=yes
7107 +else
7108 + as_have_required=no
7109 +fi
7110 + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
7111 +
7112 +else
7113 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7114 +as_found=false
7115 +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7116 +do
7117 + IFS=$as_save_IFS
7118 + test -z "$as_dir" && as_dir=.
7119 + as_found=:
7120 + case $as_dir in #(
7121 + /*)
7122 + for as_base in sh bash ksh sh5; do
7123 + # Try only shells that exist, to save several forks.
7124 + as_shell=$as_dir/$as_base
7125 + if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
7126 + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
7127 + CONFIG_SHELL=$as_shell as_have_required=yes
7128 + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
7129 + break 2
7130 +fi
7131 +fi
7132 + done;;
7133 + esac
7134 + as_found=false
7135 +done
7136 +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
7137 + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
7138 + CONFIG_SHELL=$SHELL as_have_required=yes
7139 +fi; }
7140 +IFS=$as_save_IFS
7141 +
7142 +
7143 + if test "x$CONFIG_SHELL" != x; then :
7144 + # We cannot yet assume a decent shell, so we have to provide a
7145 + # neutralization value for shells without unset; and this also
7146 + # works around shells that cannot unset nonexistent variables.
7147 + # Preserve -v and -x to the replacement shell.
7148 + BASH_ENV=/dev/null
7149 + ENV=/dev/null
7150 + (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
7151 + export CONFIG_SHELL
7152 + case $- in # ((((
7153 + *v*x* | *x*v* ) as_opts=-vx ;;
7154 + *v* ) as_opts=-v ;;
7155 + *x* ) as_opts=-x ;;
7156 + * ) as_opts= ;;
7157 + esac
7158 + exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
7159 +fi
7160 +
7161 + if test x$as_have_required = xno; then :
7162 + $as_echo "$0: This script requires a shell more modern than all"
7163 + $as_echo "$0: the shells that I found on your system."
7164 + if test x${ZSH_VERSION+set} = xset ; then
7165 + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
7166 + $as_echo "$0: be upgraded to zsh 4.3.4 or later."
7167 + else
7168 + $as_echo "$0: Please tell bug-autoconf@×××.org about your system,
7169 +$0: including any error possibly output before this
7170 +$0: message. Then install a modern shell, or manually run
7171 +$0: the script under such a shell if you do have one."
7172 + fi
7173 + exit 1
7174 +fi
7175 +fi
7176 +fi
7177 +SHELL=${CONFIG_SHELL-/bin/sh}
7178 +export SHELL
7179 +# Unset more variables known to interfere with behavior of common tools.
7180 +CLICOLOR_FORCE= GREP_OPTIONS=
7181 +unset CLICOLOR_FORCE GREP_OPTIONS
7182 +
7183 +## --------------------- ##
7184 +## M4sh Shell Functions. ##
7185 +## --------------------- ##
7186 +# as_fn_unset VAR
7187 +# ---------------
7188 +# Portably unset VAR.
7189 +as_fn_unset ()
7190 +{
7191 + { eval $1=; unset $1;}
7192 +}
7193 +as_unset=as_fn_unset
7194 +
7195 +# as_fn_set_status STATUS
7196 +# -----------------------
7197 +# Set $? to STATUS, without forking.
7198 +as_fn_set_status ()
7199 +{
7200 + return $1
7201 +} # as_fn_set_status
7202 +
7203 +# as_fn_exit STATUS
7204 +# -----------------
7205 +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7206 +as_fn_exit ()
7207 +{
7208 + set +e
7209 + as_fn_set_status $1
7210 + exit $1
7211 +} # as_fn_exit
7212 +
7213 +# as_fn_mkdir_p
7214 +# -------------
7215 +# Create "$as_dir" as a directory, including parents if necessary.
7216 +as_fn_mkdir_p ()
7217 +{
7218 +
7219 + case $as_dir in #(
7220 + -*) as_dir=./$as_dir;;
7221 + esac
7222 + test -d "$as_dir" || eval $as_mkdir_p || {
7223 + as_dirs=
7224 + while :; do
7225 + case $as_dir in #(
7226 + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7227 + *) as_qdir=$as_dir;;
7228 + esac
7229 + as_dirs="'$as_qdir' $as_dirs"
7230 + as_dir=`$as_dirname -- "$as_dir" ||
7231 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7232 + X"$as_dir" : 'X\(//\)[^/]' \| \
7233 + X"$as_dir" : 'X\(//\)$' \| \
7234 + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7235 +$as_echo X"$as_dir" |
7236 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7237 + s//\1/
7238 + q
7239 + }
7240 + /^X\(\/\/\)[^/].*/{
7241 + s//\1/
7242 + q
7243 + }
7244 + /^X\(\/\/\)$/{
7245 + s//\1/
7246 + q
7247 + }
7248 + /^X\(\/\).*/{
7249 + s//\1/
7250 + q
7251 + }
7252 + s/.*/./; q'`
7253 + test -d "$as_dir" && break
7254 + done
7255 + test -z "$as_dirs" || eval "mkdir $as_dirs"
7256 + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7257 +
7258 +
7259 +} # as_fn_mkdir_p
7260 +# as_fn_append VAR VALUE
7261 +# ----------------------
7262 +# Append the text in VALUE to the end of the definition contained in VAR. Take
7263 +# advantage of any shell optimizations that allow amortized linear growth over
7264 +# repeated appends, instead of the typical quadratic growth present in naive
7265 +# implementations.
7266 +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7267 + eval 'as_fn_append ()
7268 + {
7269 + eval $1+=\$2
7270 + }'
7271 +else
7272 + as_fn_append ()
7273 + {
7274 + eval $1=\$$1\$2
7275 + }
7276 +fi # as_fn_append
7277 +
7278 +# as_fn_arith ARG...
7279 +# ------------------
7280 +# Perform arithmetic evaluation on the ARGs, and store the result in the
7281 +# global $as_val. Take advantage of shells that can avoid forks. The arguments
7282 +# must be portable across $(()) and expr.
7283 +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7284 + eval 'as_fn_arith ()
7285 + {
7286 + as_val=$(( $* ))
7287 + }'
7288 +else
7289 + as_fn_arith ()
7290 + {
7291 + as_val=`expr "$@" || test $? -eq 1`
7292 + }
7293 +fi # as_fn_arith
7294 +
7295 +
7296 +# as_fn_error STATUS ERROR [LINENO LOG_FD]
7297 +# ----------------------------------------
7298 +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7299 +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7300 +# script with STATUS, using 1 if that was 0.
7301 +as_fn_error ()
7302 +{
7303 + as_status=$1; test $as_status -eq 0 && as_status=1
7304 + if test "$4"; then
7305 + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7306 + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7307 + fi
7308 + $as_echo "$as_me: error: $2" >&2
7309 + as_fn_exit $as_status
7310 +} # as_fn_error
7311 +
7312 +if expr a : '\(a\)' >/dev/null 2>&1 &&
7313 + test "X`expr 00001 : '.*\(...\)'`" = X001; then
7314 + as_expr=expr
7315 +else
7316 + as_expr=false
7317 +fi
7318 +
7319 +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7320 + as_basename=basename
7321 +else
7322 + as_basename=false
7323 +fi
7324 +
7325 +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7326 + as_dirname=dirname
7327 +else
7328 + as_dirname=false
7329 +fi
7330 +
7331 +as_me=`$as_basename -- "$0" ||
7332 +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7333 + X"$0" : 'X\(//\)$' \| \
7334 + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7335 +$as_echo X/"$0" |
7336 + sed '/^.*\/\([^/][^/]*\)\/*$/{
7337 + s//\1/
7338 + q
7339 + }
7340 + /^X\/\(\/\/\)$/{
7341 + s//\1/
7342 + q
7343 + }
7344 + /^X\/\(\/\).*/{
7345 + s//\1/
7346 + q
7347 + }
7348 + s/.*/./; q'`
7349 +
7350 +# Avoid depending upon Character Ranges.
7351 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7352 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7353 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7354 +as_cr_digits='0123456789'
7355 +as_cr_alnum=$as_cr_Letters$as_cr_digits
7356 +
7357 +
7358 + as_lineno_1=$LINENO as_lineno_1a=$LINENO
7359 + as_lineno_2=$LINENO as_lineno_2a=$LINENO
7360 + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
7361 + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
7362 + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
7363 + sed -n '
7364 + p
7365 + /[$]LINENO/=
7366 + ' <$as_myself |
7367 + sed '
7368 + s/[$]LINENO.*/&-/
7369 + t lineno
7370 + b
7371 + :lineno
7372 + N
7373 + :loop
7374 + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
7375 + t loop
7376 + s/-\n.*//
7377 + ' >$as_me.lineno &&
7378 + chmod +x "$as_me.lineno" ||
7379 + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
7380 +
7381 + # Don't try to exec as it changes $[0], causing all sort of problems
7382 + # (the dirname of $[0] is not the place where we might find the
7383 + # original and so on. Autoconf is especially sensitive to this).
7384 + . "./$as_me.lineno"
7385 + # Exit status is that of the last command.
7386 + exit
7387 +}
7388 +
7389 +ECHO_C= ECHO_N= ECHO_T=
7390 +case `echo -n x` in #(((((
7391 +-n*)
7392 + case `echo 'xy\c'` in
7393 + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7394 + xy) ECHO_C='\c';;
7395 + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7396 + ECHO_T=' ';;
7397 + esac;;
7398 +*)
7399 + ECHO_N='-n';;
7400 +esac
7401 +
7402 +rm -f conf$$ conf$$.exe conf$$.file
7403 +if test -d conf$$.dir; then
7404 + rm -f conf$$.dir/conf$$.file
7405 +else
7406 + rm -f conf$$.dir
7407 + mkdir conf$$.dir 2>/dev/null
7408 +fi
7409 +if (echo >conf$$.file) 2>/dev/null; then
7410 + if ln -s conf$$.file conf$$ 2>/dev/null; then
7411 + as_ln_s='ln -s'
7412 + # ... but there are two gotchas:
7413 + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7414 + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7415 + # In both cases, we have to default to `cp -p'.
7416 + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7417 + as_ln_s='cp -p'
7418 + elif ln conf$$.file conf$$ 2>/dev/null; then
7419 + as_ln_s=ln
7420 + else
7421 + as_ln_s='cp -p'
7422 + fi
7423 +else
7424 + as_ln_s='cp -p'
7425 +fi
7426 +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7427 +rmdir conf$$.dir 2>/dev/null
7428 +
7429 +if mkdir -p . 2>/dev/null; then
7430 + as_mkdir_p='mkdir -p "$as_dir"'
7431 +else
7432 + test -d ./-p && rmdir ./-p
7433 + as_mkdir_p=false
7434 +fi
7435 +
7436 +if test -x / >/dev/null 2>&1; then
7437 + as_test_x='test -x'
7438 +else
7439 + if ls -dL / >/dev/null 2>&1; then
7440 + as_ls_L_option=L
7441 + else
7442 + as_ls_L_option=
7443 + fi
7444 + as_test_x='
7445 + eval sh -c '\''
7446 + if test -d "$1"; then
7447 + test -d "$1/.";
7448 + else
7449 + case $1 in #(
7450 + -*)set "./$1";;
7451 + esac;
7452 + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
7453 + ???[sx]*):;;*)false;;esac;fi
7454 + '\'' sh
7455 + '
7456 +fi
7457 +as_executable_p=$as_test_x
7458 +
7459 +# Sed expression to map a string onto a valid CPP name.
7460 +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7461 +
7462 +# Sed expression to map a string onto a valid variable name.
7463 +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7464 +
7465 +
7466 +test -n "$DJDIR" || exec 7<&0 </dev/null
7467 +exec 6>&1
7468 +
7469 +# Name of the host.
7470 +# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
7471 +# so uname gets run too.
7472 +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
7473 +
7474 +#
7475 +# Initializations.
7476 +#
7477 +ac_default_prefix=/usr/local
7478 +ac_clean_files=
7479 +ac_config_libobj_dir=.
7480 +LIBOBJS=
7481 +cross_compiling=no
7482 +subdirs=
7483 +MFLAGS=
7484 +MAKEFLAGS=
7485 +
7486 +# Identity of this package.
7487 +PACKAGE_NAME='dummy'
7488 +PACKAGE_TARNAME='dummy'
7489 +PACKAGE_VERSION='0'
7490 +PACKAGE_STRING='dummy 0'
7491 +PACKAGE_BUGREPORT=''
7492 +PACKAGE_URL=''
7493 +
7494 +# Factoring default headers for most tests.
7495 +ac_includes_default="\
7496 +#include <stdio.h>
7497 +#ifdef HAVE_SYS_TYPES_H
7498 +# include <sys/types.h>
7499 +#endif
7500 +#ifdef HAVE_SYS_STAT_H
7501 +# include <sys/stat.h>
7502 +#endif
7503 +#ifdef STDC_HEADERS
7504 +# include <stdlib.h>
7505 +# include <stddef.h>
7506 +#else
7507 +# ifdef HAVE_STDLIB_H
7508 +# include <stdlib.h>
7509 +# endif
7510 +#endif
7511 +#ifdef HAVE_STRING_H
7512 +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
7513 +# include <memory.h>
7514 +# endif
7515 +# include <string.h>
7516 +#endif
7517 +#ifdef HAVE_STRINGS_H
7518 +# include <strings.h>
7519 +#endif
7520 +#ifdef HAVE_INTTYPES_H
7521 +# include <inttypes.h>
7522 +#endif
7523 +#ifdef HAVE_STDINT_H
7524 +# include <stdint.h>
7525 +#endif
7526 +#ifdef HAVE_UNISTD_H
7527 +# include <unistd.h>
7528 +#endif"
7529 +
7530 +gl_header_list=
7531 +ac_subst_vars='gl_LTLIBOBJS
7532 +gl_LIBOBJS
7533 +am__EXEEXT_FALSE
7534 +am__EXEEXT_TRUE
7535 +LTLIBOBJS
7536 +LIBOBJS
7537 +LIBGNU_LTLIBDEPS
7538 +LIBGNU_LIBDEPS
7539 +HAVE_UNISTD_H
7540 +NEXT_UNISTD_H
7541 +UNISTD_H_HAVE_WINSOCK2_H
7542 +REPLACE_WRITE
7543 +REPLACE_LSEEK
7544 +REPLACE_LCHOWN
7545 +REPLACE_GETPAGESIZE
7546 +REPLACE_GETCWD
7547 +REPLACE_FCHDIR
7548 +REPLACE_CLOSE
7549 +REPLACE_CHOWN
7550 +HAVE_SYS_PARAM_H
7551 +HAVE_OS_H
7552 +HAVE_DECL_GETLOGIN_R
7553 +HAVE_DECL_ENVIRON
7554 +HAVE_SLEEP
7555 +HAVE_READLINK
7556 +HAVE_LINK
7557 +HAVE_GETUSERSHELL
7558 +HAVE_GETPAGESIZE
7559 +HAVE_GETHOSTNAME
7560 +HAVE_GETDTABLESIZE
7561 +HAVE_GETDOMAINNAME
7562 +HAVE_FTRUNCATE
7563 +HAVE_FSYNC
7564 +HAVE_EUIDACCESS
7565 +HAVE_DUP2
7566 +GNULIB_WRITE
7567 +GNULIB_UNISTD_H_SIGPIPE
7568 +GNULIB_SLEEP
7569 +GNULIB_READLINK
7570 +GNULIB_LSEEK
7571 +GNULIB_LINK
7572 +GNULIB_LCHOWN
7573 +GNULIB_GETUSERSHELL
7574 +GNULIB_GETPAGESIZE
7575 +GNULIB_GETLOGIN_R
7576 +GNULIB_GETHOSTNAME
7577 +GNULIB_GETDTABLESIZE
7578 +GNULIB_GETDOMAINNAME
7579 +GNULIB_GETCWD
7580 +GNULIB_FTRUNCATE
7581 +GNULIB_FSYNC
7582 +GNULIB_FCHDIR
7583 +GNULIB_EUIDACCESS
7584 +GNULIB_ENVIRON
7585 +GNULIB_DUP2
7586 +GNULIB_CLOSE
7587 +GNULIB_CHOWN
7588 +NEXT_STRING_H
7589 +PRAGMA_SYSTEM_HEADER
7590 +INCLUDE_NEXT_AS_FIRST_DIRECTIVE
7591 +INCLUDE_NEXT
7592 +REPLACE_STRSIGNAL
7593 +REPLACE_STRERROR
7594 +REPLACE_STRCASESTR
7595 +REPLACE_STRSTR
7596 +REPLACE_STRDUP
7597 +REPLACE_MEMMEM
7598 +HAVE_STRVERSCMP
7599 +HAVE_DECL_STRSIGNAL
7600 +HAVE_DECL_STRERROR
7601 +HAVE_DECL_STRTOK_R
7602 +HAVE_STRCASESTR
7603 +HAVE_STRSEP
7604 +HAVE_STRPBRK
7605 +HAVE_DECL_STRNLEN
7606 +HAVE_DECL_STRNDUP
7607 +HAVE_STRNDUP
7608 +HAVE_DECL_STRDUP
7609 +HAVE_STRCHRNUL
7610 +HAVE_STPNCPY
7611 +HAVE_STPCPY
7612 +HAVE_RAWMEMCHR
7613 +HAVE_DECL_MEMRCHR
7614 +HAVE_MEMPCPY
7615 +HAVE_DECL_MEMMEM
7616 +GNULIB_STRVERSCMP
7617 +GNULIB_STRSIGNAL
7618 +GNULIB_STRERROR
7619 +GNULIB_MBSTOK_R
7620 +GNULIB_MBSSEP
7621 +GNULIB_MBSSPN
7622 +GNULIB_MBSPBRK
7623 +GNULIB_MBSCSPN
7624 +GNULIB_MBSCASESTR
7625 +GNULIB_MBSPCASECMP
7626 +GNULIB_MBSNCASECMP
7627 +GNULIB_MBSCASECMP
7628 +GNULIB_MBSSTR
7629 +GNULIB_MBSRCHR
7630 +GNULIB_MBSCHR
7631 +GNULIB_MBSNLEN
7632 +GNULIB_MBSLEN
7633 +GNULIB_STRTOK_R
7634 +GNULIB_STRCASESTR
7635 +GNULIB_STRSTR
7636 +GNULIB_STRSEP
7637 +GNULIB_STRPBRK
7638 +GNULIB_STRNLEN
7639 +GNULIB_STRNDUP
7640 +GNULIB_STRDUP
7641 +GNULIB_STRCHRNUL
7642 +GNULIB_STPNCPY
7643 +GNULIB_STPCPY
7644 +GNULIB_RAWMEMCHR
7645 +GNULIB_MEMRCHR
7646 +GNULIB_MEMPCPY
7647 +GNULIB_MEMMEM
7648 +LTLIBINTL
7649 +LIBINTL
7650 +GETOPT_H
7651 +GL_COND_LIBTOOL_FALSE
7652 +GL_COND_LIBTOOL_TRUE
7653 +EGREP
7654 +GREP
7655 +CPP
7656 +RANLIB
7657 +host_os
7658 +host_vendor
7659 +host_cpu
7660 +host
7661 +build_os
7662 +build_vendor
7663 +build_cpu
7664 +build
7665 +am__fastdepCC_FALSE
7666 +am__fastdepCC_TRUE
7667 +CCDEPMODE
7668 +AMDEPBACKSLASH
7669 +AMDEP_FALSE
7670 +AMDEP_TRUE
7671 +am__quote
7672 +am__include
7673 +DEPDIR
7674 +OBJEXT
7675 +EXEEXT
7676 +ac_ct_CC
7677 +CPPFLAGS
7678 +LDFLAGS
7679 +CFLAGS
7680 +CC
7681 +am__untar
7682 +am__tar
7683 +AMTAR
7684 +am__leading_dot
7685 +SET_MAKE
7686 +AWK
7687 +mkdir_p
7688 +MKDIR_P
7689 +INSTALL_STRIP_PROGRAM
7690 +STRIP
7691 +install_sh
7692 +MAKEINFO
7693 +AUTOHEADER
7694 +AUTOMAKE
7695 +AUTOCONF
7696 +ACLOCAL
7697 +VERSION
7698 +PACKAGE
7699 +CYGPATH_W
7700 +am__isrc
7701 +INSTALL_DATA
7702 +INSTALL_SCRIPT
7703 +INSTALL_PROGRAM
7704 +target_alias
7705 +host_alias
7706 +build_alias
7707 +LIBS
7708 +ECHO_T
7709 +ECHO_N
7710 +ECHO_C
7711 +DEFS
7712 +mandir
7713 +localedir
7714 +libdir
7715 +psdir
7716 +pdfdir
7717 +dvidir
7718 +htmldir
7719 +infodir
7720 +docdir
7721 +oldincludedir
7722 +includedir
7723 +localstatedir
7724 +sharedstatedir
7725 +sysconfdir
7726 +datadir
7727 +datarootdir
7728 +libexecdir
7729 +sbindir
7730 +bindir
7731 +program_transform_name
7732 +prefix
7733 +exec_prefix
7734 +PACKAGE_URL
7735 +PACKAGE_BUGREPORT
7736 +PACKAGE_STRING
7737 +PACKAGE_VERSION
7738 +PACKAGE_TARNAME
7739 +PACKAGE_NAME
7740 +PATH_SEPARATOR
7741 +SHELL'
7742 +ac_subst_files=''
7743 +ac_user_opts='
7744 +enable_option_checking
7745 +enable_dependency_tracking
7746 +'
7747 + ac_precious_vars='build_alias
7748 +host_alias
7749 +target_alias
7750 +CC
7751 +CFLAGS
7752 +LDFLAGS
7753 +LIBS
7754 +CPPFLAGS
7755 +CPP
7756 +CPPFLAGS'
7757 +
7758 +
7759 +# Initialize some variables set by options.
7760 +ac_init_help=
7761 +ac_init_version=false
7762 +ac_unrecognized_opts=
7763 +ac_unrecognized_sep=
7764 +# The variables have the same names as the options, with
7765 +# dashes changed to underlines.
7766 +cache_file=/dev/null
7767 +exec_prefix=NONE
7768 +no_create=
7769 +no_recursion=
7770 +prefix=NONE
7771 +program_prefix=NONE
7772 +program_suffix=NONE
7773 +program_transform_name=s,x,x,
7774 +silent=
7775 +site=
7776 +srcdir=
7777 +verbose=
7778 +x_includes=NONE
7779 +x_libraries=NONE
7780 +
7781 +# Installation directory options.
7782 +# These are left unexpanded so users can "make install exec_prefix=/foo"
7783 +# and all the variables that are supposed to be based on exec_prefix
7784 +# by default will actually change.
7785 +# Use braces instead of parens because sh, perl, etc. also accept them.
7786 +# (The list follows the same order as the GNU Coding Standards.)
7787 +bindir='${exec_prefix}/bin'
7788 +sbindir='${exec_prefix}/sbin'
7789 +libexecdir='${exec_prefix}/libexec'
7790 +datarootdir='${prefix}/share'
7791 +datadir='${datarootdir}'
7792 +sysconfdir='${prefix}/etc'
7793 +sharedstatedir='${prefix}/com'
7794 +localstatedir='${prefix}/var'
7795 +includedir='${prefix}/include'
7796 +oldincludedir='/usr/include'
7797 +docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
7798 +infodir='${datarootdir}/info'
7799 +htmldir='${docdir}'
7800 +dvidir='${docdir}'
7801 +pdfdir='${docdir}'
7802 +psdir='${docdir}'
7803 +libdir='${exec_prefix}/lib'
7804 +localedir='${datarootdir}/locale'
7805 +mandir='${datarootdir}/man'
7806 +
7807 +ac_prev=
7808 +ac_dashdash=
7809 +for ac_option
7810 +do
7811 + # If the previous option needs an argument, assign it.
7812 + if test -n "$ac_prev"; then
7813 + eval $ac_prev=\$ac_option
7814 + ac_prev=
7815 + continue
7816 + fi
7817 +
7818 + case $ac_option in
7819 + *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
7820 + *=) ac_optarg= ;;
7821 + *) ac_optarg=yes ;;
7822 + esac
7823 +
7824 + # Accept the important Cygnus configure options, so we can diagnose typos.
7825 +
7826 + case $ac_dashdash$ac_option in
7827 + --)
7828 + ac_dashdash=yes ;;
7829 +
7830 + -bindir | --bindir | --bindi | --bind | --bin | --bi)
7831 + ac_prev=bindir ;;
7832 + -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
7833 + bindir=$ac_optarg ;;
7834 +
7835 + -build | --build | --buil | --bui | --bu)
7836 + ac_prev=build_alias ;;
7837 + -build=* | --build=* | --buil=* | --bui=* | --bu=*)
7838 + build_alias=$ac_optarg ;;
7839 +
7840 + -cache-file | --cache-file | --cache-fil | --cache-fi \
7841 + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
7842 + ac_prev=cache_file ;;
7843 + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
7844 + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
7845 + cache_file=$ac_optarg ;;
7846 +
7847 + --config-cache | -C)
7848 + cache_file=config.cache ;;
7849 +
7850 + -datadir | --datadir | --datadi | --datad)
7851 + ac_prev=datadir ;;
7852 + -datadir=* | --datadir=* | --datadi=* | --datad=*)
7853 + datadir=$ac_optarg ;;
7854 +
7855 + -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
7856 + | --dataroo | --dataro | --datar)
7857 + ac_prev=datarootdir ;;
7858 + -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
7859 + | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
7860 + datarootdir=$ac_optarg ;;
7861 +
7862 + -disable-* | --disable-*)
7863 + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
7864 + # Reject names that are not valid shell variable names.
7865 + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
7866 + as_fn_error $? "invalid feature name: $ac_useropt"
7867 + ac_useropt_orig=$ac_useropt
7868 + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
7869 + case $ac_user_opts in
7870 + *"
7871 +"enable_$ac_useropt"
7872 +"*) ;;
7873 + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
7874 + ac_unrecognized_sep=', ';;
7875 + esac
7876 + eval enable_$ac_useropt=no ;;
7877 +
7878 + -docdir | --docdir | --docdi | --doc | --do)
7879 + ac_prev=docdir ;;
7880 + -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
7881 + docdir=$ac_optarg ;;
7882 +
7883 + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
7884 + ac_prev=dvidir ;;
7885 + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
7886 + dvidir=$ac_optarg ;;
7887 +
7888 + -enable-* | --enable-*)
7889 + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
7890 + # Reject names that are not valid shell variable names.
7891 + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
7892 + as_fn_error $? "invalid feature name: $ac_useropt"
7893 + ac_useropt_orig=$ac_useropt
7894 + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
7895 + case $ac_user_opts in
7896 + *"
7897 +"enable_$ac_useropt"
7898 +"*) ;;
7899 + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
7900 + ac_unrecognized_sep=', ';;
7901 + esac
7902 + eval enable_$ac_useropt=\$ac_optarg ;;
7903 +
7904 + -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
7905 + | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
7906 + | --exec | --exe | --ex)
7907 + ac_prev=exec_prefix ;;
7908 + -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
7909 + | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
7910 + | --exec=* | --exe=* | --ex=*)
7911 + exec_prefix=$ac_optarg ;;
7912 +
7913 + -gas | --gas | --ga | --g)
7914 + # Obsolete; use --with-gas.
7915 + with_gas=yes ;;
7916 +
7917 + -help | --help | --hel | --he | -h)
7918 + ac_init_help=long ;;
7919 + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
7920 + ac_init_help=recursive ;;
7921 + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
7922 + ac_init_help=short ;;
7923 +
7924 + -host | --host | --hos | --ho)
7925 + ac_prev=host_alias ;;
7926 + -host=* | --host=* | --hos=* | --ho=*)
7927 + host_alias=$ac_optarg ;;
7928 +
7929 + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
7930 + ac_prev=htmldir ;;
7931 + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
7932 + | --ht=*)
7933 + htmldir=$ac_optarg ;;
7934 +
7935 + -includedir | --includedir | --includedi | --included | --include \
7936 + | --includ | --inclu | --incl | --inc)
7937 + ac_prev=includedir ;;
7938 + -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
7939 + | --includ=* | --inclu=* | --incl=* | --inc=*)
7940 + includedir=$ac_optarg ;;
7941 +
7942 + -infodir | --infodir | --infodi | --infod | --info | --inf)
7943 + ac_prev=infodir ;;
7944 + -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
7945 + infodir=$ac_optarg ;;
7946 +
7947 + -libdir | --libdir | --libdi | --libd)
7948 + ac_prev=libdir ;;
7949 + -libdir=* | --libdir=* | --libdi=* | --libd=*)
7950 + libdir=$ac_optarg ;;
7951 +
7952 + -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
7953 + | --libexe | --libex | --libe)
7954 + ac_prev=libexecdir ;;
7955 + -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
7956 + | --libexe=* | --libex=* | --libe=*)
7957 + libexecdir=$ac_optarg ;;
7958 +
7959 + -localedir | --localedir | --localedi | --localed | --locale)
7960 + ac_prev=localedir ;;
7961 + -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
7962 + localedir=$ac_optarg ;;
7963 +
7964 + -localstatedir | --localstatedir | --localstatedi | --localstated \
7965 + | --localstate | --localstat | --localsta | --localst | --locals)
7966 + ac_prev=localstatedir ;;
7967 + -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
7968 + | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
7969 + localstatedir=$ac_optarg ;;
7970 +
7971 + -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
7972 + ac_prev=mandir ;;
7973 + -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
7974 + mandir=$ac_optarg ;;
7975 +
7976 + -nfp | --nfp | --nf)
7977 + # Obsolete; use --without-fp.
7978 + with_fp=no ;;
7979 +
7980 + -no-create | --no-create | --no-creat | --no-crea | --no-cre \
7981 + | --no-cr | --no-c | -n)
7982 + no_create=yes ;;
7983 +
7984 + -no-recursion | --no-recursion | --no-recursio | --no-recursi \
7985 + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
7986 + no_recursion=yes ;;
7987 +
7988 + -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
7989 + | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
7990 + | --oldin | --oldi | --old | --ol | --o)
7991 + ac_prev=oldincludedir ;;
7992 + -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
7993 + | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
7994 + | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
7995 + oldincludedir=$ac_optarg ;;
7996 +
7997 + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
7998 + ac_prev=prefix ;;
7999 + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
8000 + prefix=$ac_optarg ;;
8001 +
8002 + -program-prefix | --program-prefix | --program-prefi | --program-pref \
8003 + | --program-pre | --program-pr | --program-p)
8004 + ac_prev=program_prefix ;;
8005 + -program-prefix=* | --program-prefix=* | --program-prefi=* \
8006 + | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
8007 + program_prefix=$ac_optarg ;;
8008 +
8009 + -program-suffix | --program-suffix | --program-suffi | --program-suff \
8010 + | --program-suf | --program-su | --program-s)
8011 + ac_prev=program_suffix ;;
8012 + -program-suffix=* | --program-suffix=* | --program-suffi=* \
8013 + | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
8014 + program_suffix=$ac_optarg ;;
8015 +
8016 + -program-transform-name | --program-transform-name \
8017 + | --program-transform-nam | --program-transform-na \
8018 + | --program-transform-n | --program-transform- \
8019 + | --program-transform | --program-transfor \
8020 + | --program-transfo | --program-transf \
8021 + | --program-trans | --program-tran \
8022 + | --progr-tra | --program-tr | --program-t)
8023 + ac_prev=program_transform_name ;;
8024 + -program-transform-name=* | --program-transform-name=* \
8025 + | --program-transform-nam=* | --program-transform-na=* \
8026 + | --program-transform-n=* | --program-transform-=* \
8027 + | --program-transform=* | --program-transfor=* \
8028 + | --program-transfo=* | --program-transf=* \
8029 + | --program-trans=* | --program-tran=* \
8030 + | --progr-tra=* | --program-tr=* | --program-t=*)
8031 + program_transform_name=$ac_optarg ;;
8032 +
8033 + -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
8034 + ac_prev=pdfdir ;;
8035 + -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
8036 + pdfdir=$ac_optarg ;;
8037 +
8038 + -psdir | --psdir | --psdi | --psd | --ps)
8039 + ac_prev=psdir ;;
8040 + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
8041 + psdir=$ac_optarg ;;
8042 +
8043 + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8044 + | -silent | --silent | --silen | --sile | --sil)
8045 + silent=yes ;;
8046 +
8047 + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
8048 + ac_prev=sbindir ;;
8049 + -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
8050 + | --sbi=* | --sb=*)
8051 + sbindir=$ac_optarg ;;
8052 +
8053 + -sharedstatedir | --sharedstatedir | --sharedstatedi \
8054 + | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
8055 + | --sharedst | --shareds | --shared | --share | --shar \
8056 + | --sha | --sh)
8057 + ac_prev=sharedstatedir ;;
8058 + -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
8059 + | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
8060 + | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
8061 + | --sha=* | --sh=*)
8062 + sharedstatedir=$ac_optarg ;;
8063 +
8064 + -site | --site | --sit)
8065 + ac_prev=site ;;
8066 + -site=* | --site=* | --sit=*)
8067 + site=$ac_optarg ;;
8068 +
8069 + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
8070 + ac_prev=srcdir ;;
8071 + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
8072 + srcdir=$ac_optarg ;;
8073 +
8074 + -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
8075 + | --syscon | --sysco | --sysc | --sys | --sy)
8076 + ac_prev=sysconfdir ;;
8077 + -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
8078 + | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
8079 + sysconfdir=$ac_optarg ;;
8080 +
8081 + -target | --target | --targe | --targ | --tar | --ta | --t)
8082 + ac_prev=target_alias ;;
8083 + -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
8084 + target_alias=$ac_optarg ;;
8085 +
8086 + -v | -verbose | --verbose | --verbos | --verbo | --verb)
8087 + verbose=yes ;;
8088 +
8089 + -version | --version | --versio | --versi | --vers | -V)
8090 + ac_init_version=: ;;
8091 +
8092 + -with-* | --with-*)
8093 + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
8094 + # Reject names that are not valid shell variable names.
8095 + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
8096 + as_fn_error $? "invalid package name: $ac_useropt"
8097 + ac_useropt_orig=$ac_useropt
8098 + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
8099 + case $ac_user_opts in
8100 + *"
8101 +"with_$ac_useropt"
8102 +"*) ;;
8103 + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
8104 + ac_unrecognized_sep=', ';;
8105 + esac
8106 + eval with_$ac_useropt=\$ac_optarg ;;
8107 +
8108 + -without-* | --without-*)
8109 + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
8110 + # Reject names that are not valid shell variable names.
8111 + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
8112 + as_fn_error $? "invalid package name: $ac_useropt"
8113 + ac_useropt_orig=$ac_useropt
8114 + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
8115 + case $ac_user_opts in
8116 + *"
8117 +"with_$ac_useropt"
8118 +"*) ;;
8119 + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
8120 + ac_unrecognized_sep=', ';;
8121 + esac
8122 + eval with_$ac_useropt=no ;;
8123 +
8124 + --x)
8125 + # Obsolete; use --with-x.
8126 + with_x=yes ;;
8127 +
8128 + -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
8129 + | --x-incl | --x-inc | --x-in | --x-i)
8130 + ac_prev=x_includes ;;
8131 + -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
8132 + | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
8133 + x_includes=$ac_optarg ;;
8134 +
8135 + -x-libraries | --x-libraries | --x-librarie | --x-librari \
8136 + | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
8137 + ac_prev=x_libraries ;;
8138 + -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
8139 + | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
8140 + x_libraries=$ac_optarg ;;
8141 +
8142 + -*) as_fn_error $? "unrecognized option: \`$ac_option'
8143 +Try \`$0 --help' for more information"
8144 + ;;
8145 +
8146 + *=*)
8147 + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
8148 + # Reject names that are not valid shell variable names.
8149 + case $ac_envvar in #(
8150 + '' | [0-9]* | *[!_$as_cr_alnum]* )
8151 + as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
8152 + esac
8153 + eval $ac_envvar=\$ac_optarg
8154 + export $ac_envvar ;;
8155 +
8156 + *)
8157 + # FIXME: should be removed in autoconf 3.0.
8158 + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
8159 + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
8160 + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
8161 + : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
8162 + ;;
8163 +
8164 + esac
8165 +done
8166 +
8167 +if test -n "$ac_prev"; then
8168 + ac_option=--`echo $ac_prev | sed 's/_/-/g'`
8169 + as_fn_error $? "missing argument to $ac_option"
8170 +fi
8171 +
8172 +if test -n "$ac_unrecognized_opts"; then
8173 + case $enable_option_checking in
8174 + no) ;;
8175 + fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
8176 + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
8177 + esac
8178 +fi
8179 +
8180 +# Check all directory arguments for consistency.
8181 +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
8182 + datadir sysconfdir sharedstatedir localstatedir includedir \
8183 + oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
8184 + libdir localedir mandir
8185 +do
8186 + eval ac_val=\$$ac_var
8187 + # Remove trailing slashes.
8188 + case $ac_val in
8189 + */ )
8190 + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
8191 + eval $ac_var=\$ac_val;;
8192 + esac
8193 + # Be sure to have absolute directory names.
8194 + case $ac_val in
8195 + [\\/$]* | ?:[\\/]* ) continue;;
8196 + NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
8197 + esac
8198 + as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
8199 +done
8200 +
8201 +# There might be people who depend on the old broken behavior: `$host'
8202 +# used to hold the argument of --host etc.
8203 +# FIXME: To remove some day.
8204 +build=$build_alias
8205 +host=$host_alias
8206 +target=$target_alias
8207 +
8208 +# FIXME: To remove some day.
8209 +if test "x$host_alias" != x; then
8210 + if test "x$build_alias" = x; then
8211 + cross_compiling=maybe
8212 + $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
8213 + If a cross compiler is detected then cross compile mode will be used" >&2
8214 + elif test "x$build_alias" != "x$host_alias"; then
8215 + cross_compiling=yes
8216 + fi
8217 +fi
8218 +
8219 +ac_tool_prefix=
8220 +test -n "$host_alias" && ac_tool_prefix=$host_alias-
8221 +
8222 +test "$silent" = yes && exec 6>/dev/null
8223 +
8224 +
8225 +ac_pwd=`pwd` && test -n "$ac_pwd" &&
8226 +ac_ls_di=`ls -di .` &&
8227 +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
8228 + as_fn_error $? "working directory cannot be determined"
8229 +test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
8230 + as_fn_error $? "pwd does not report name of working directory"
8231 +
8232 +
8233 +# Find the source files, if location was not specified.
8234 +if test -z "$srcdir"; then
8235 + ac_srcdir_defaulted=yes
8236 + # Try the directory containing this script, then the parent directory.
8237 + ac_confdir=`$as_dirname -- "$as_myself" ||
8238 +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8239 + X"$as_myself" : 'X\(//\)[^/]' \| \
8240 + X"$as_myself" : 'X\(//\)$' \| \
8241 + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
8242 +$as_echo X"$as_myself" |
8243 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8244 + s//\1/
8245 + q
8246 + }
8247 + /^X\(\/\/\)[^/].*/{
8248 + s//\1/
8249 + q
8250 + }
8251 + /^X\(\/\/\)$/{
8252 + s//\1/
8253 + q
8254 + }
8255 + /^X\(\/\).*/{
8256 + s//\1/
8257 + q
8258 + }
8259 + s/.*/./; q'`
8260 + srcdir=$ac_confdir
8261 + if test ! -r "$srcdir/$ac_unique_file"; then
8262 + srcdir=..
8263 + fi
8264 +else
8265 + ac_srcdir_defaulted=no
8266 +fi
8267 +if test ! -r "$srcdir/$ac_unique_file"; then
8268 + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
8269 + as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
8270 +fi
8271 +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
8272 +ac_abs_confdir=`(
8273 + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
8274 + pwd)`
8275 +# When building in place, set srcdir=.
8276 +if test "$ac_abs_confdir" = "$ac_pwd"; then
8277 + srcdir=.
8278 +fi
8279 +# Remove unnecessary trailing slashes from srcdir.
8280 +# Double slashes in file names in object file debugging info
8281 +# mess up M-x gdb in Emacs.
8282 +case $srcdir in
8283 +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
8284 +esac
8285 +for ac_var in $ac_precious_vars; do
8286 + eval ac_env_${ac_var}_set=\${${ac_var}+set}
8287 + eval ac_env_${ac_var}_value=\$${ac_var}
8288 + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
8289 + eval ac_cv_env_${ac_var}_value=\$${ac_var}
8290 +done
8291 +
8292 +#
8293 +# Report the --help message.
8294 +#
8295 +if test "$ac_init_help" = "long"; then
8296 + # Omit some internal or obsolete options to make the list less imposing.
8297 + # This message is too long to be a string in the A/UX 3.1 sh.
8298 + cat <<_ACEOF
8299 +\`configure' configures dummy 0 to adapt to many kinds of systems.
8300 +
8301 +Usage: $0 [OPTION]... [VAR=VALUE]...
8302 +
8303 +To assign environment variables (e.g., CC, CFLAGS...), specify them as
8304 +VAR=VALUE. See below for descriptions of some of the useful variables.
8305 +
8306 +Defaults for the options are specified in brackets.
8307 +
8308 +Configuration:
8309 + -h, --help display this help and exit
8310 + --help=short display options specific to this package
8311 + --help=recursive display the short help of all the included packages
8312 + -V, --version display version information and exit
8313 + -q, --quiet, --silent do not print \`checking ...' messages
8314 + --cache-file=FILE cache test results in FILE [disabled]
8315 + -C, --config-cache alias for \`--cache-file=config.cache'
8316 + -n, --no-create do not create output files
8317 + --srcdir=DIR find the sources in DIR [configure dir or \`..']
8318 +
8319 +Installation directories:
8320 + --prefix=PREFIX install architecture-independent files in PREFIX
8321 + [$ac_default_prefix]
8322 + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
8323 + [PREFIX]
8324 +
8325 +By default, \`make install' will install all the files in
8326 +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
8327 +an installation prefix other than \`$ac_default_prefix' using \`--prefix',
8328 +for instance \`--prefix=\$HOME'.
8329 +
8330 +For better control, use the options below.
8331 +
8332 +Fine tuning of the installation directories:
8333 + --bindir=DIR user executables [EPREFIX/bin]
8334 + --sbindir=DIR system admin executables [EPREFIX/sbin]
8335 + --libexecdir=DIR program executables [EPREFIX/libexec]
8336 + --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
8337 + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
8338 + --localstatedir=DIR modifiable single-machine data [PREFIX/var]
8339 + --libdir=DIR object code libraries [EPREFIX/lib]
8340 + --includedir=DIR C header files [PREFIX/include]
8341 + --oldincludedir=DIR C header files for non-gcc [/usr/include]
8342 + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
8343 + --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
8344 + --infodir=DIR info documentation [DATAROOTDIR/info]
8345 + --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
8346 + --mandir=DIR man documentation [DATAROOTDIR/man]
8347 + --docdir=DIR documentation root [DATAROOTDIR/doc/dummy]
8348 + --htmldir=DIR html documentation [DOCDIR]
8349 + --dvidir=DIR dvi documentation [DOCDIR]
8350 + --pdfdir=DIR pdf documentation [DOCDIR]
8351 + --psdir=DIR ps documentation [DOCDIR]
8352 +_ACEOF
8353 +
8354 + cat <<\_ACEOF
8355 +
8356 +Program names:
8357 + --program-prefix=PREFIX prepend PREFIX to installed program names
8358 + --program-suffix=SUFFIX append SUFFIX to installed program names
8359 + --program-transform-name=PROGRAM run sed PROGRAM on installed program names
8360 +
8361 +System types:
8362 + --build=BUILD configure for building on BUILD [guessed]
8363 + --host=HOST cross-compile to build programs to run on HOST [BUILD]
8364 +_ACEOF
8365 +fi
8366 +
8367 +if test -n "$ac_init_help"; then
8368 + case $ac_init_help in
8369 + short | recursive ) echo "Configuration of dummy 0:";;
8370 + esac
8371 + cat <<\_ACEOF
8372 +
8373 +Optional Features:
8374 + --disable-option-checking ignore unrecognized --enable/--with options
8375 + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
8376 + --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
8377 + --disable-dependency-tracking speeds up one-time build
8378 + --enable-dependency-tracking do not reject slow dependency extractors
8379 +
8380 +Some influential environment variables:
8381 + CC C compiler command
8382 + CFLAGS C compiler flags
8383 + LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
8384 + nonstandard directory <lib dir>
8385 + LIBS libraries to pass to the linker, e.g. -l<library>
8386 + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
8387 + you have headers in a nonstandard directory <include dir>
8388 + CPP C preprocessor
8389 +
8390 +Use these variables to override the choices made by `configure' or to help
8391 +it to find libraries and programs with nonstandard names/locations.
8392 +
8393 +Report bugs to the package provider.
8394 +_ACEOF
8395 +ac_status=$?
8396 +fi
8397 +
8398 +if test "$ac_init_help" = "recursive"; then
8399 + # If there are subdirs, report their specific --help.
8400 + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
8401 + test -d "$ac_dir" ||
8402 + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
8403 + continue
8404 + ac_builddir=.
8405 +
8406 +case "$ac_dir" in
8407 +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8408 +*)
8409 + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8410 + # A ".." for each directory in $ac_dir_suffix.
8411 + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8412 + case $ac_top_builddir_sub in
8413 + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8414 + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8415 + esac ;;
8416 +esac
8417 +ac_abs_top_builddir=$ac_pwd
8418 +ac_abs_builddir=$ac_pwd$ac_dir_suffix
8419 +# for backward compatibility:
8420 +ac_top_builddir=$ac_top_build_prefix
8421 +
8422 +case $srcdir in
8423 + .) # We are building in place.
8424 + ac_srcdir=.
8425 + ac_top_srcdir=$ac_top_builddir_sub
8426 + ac_abs_top_srcdir=$ac_pwd ;;
8427 + [\\/]* | ?:[\\/]* ) # Absolute name.
8428 + ac_srcdir=$srcdir$ac_dir_suffix;
8429 + ac_top_srcdir=$srcdir
8430 + ac_abs_top_srcdir=$srcdir ;;
8431 + *) # Relative name.
8432 + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8433 + ac_top_srcdir=$ac_top_build_prefix$srcdir
8434 + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8435 +esac
8436 +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8437 +
8438 + cd "$ac_dir" || { ac_status=$?; continue; }
8439 + # Check for guested configure.
8440 + if test -f "$ac_srcdir/configure.gnu"; then
8441 + echo &&
8442 + $SHELL "$ac_srcdir/configure.gnu" --help=recursive
8443 + elif test -f "$ac_srcdir/configure"; then
8444 + echo &&
8445 + $SHELL "$ac_srcdir/configure" --help=recursive
8446 + else
8447 + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
8448 + fi || ac_status=$?
8449 + cd "$ac_pwd" || { ac_status=$?; break; }
8450 + done
8451 +fi
8452 +
8453 +test -n "$ac_init_help" && exit $ac_status
8454 +if $ac_init_version; then
8455 + cat <<\_ACEOF
8456 +dummy configure 0
8457 +generated by GNU Autoconf 2.68
8458 +
8459 +Copyright (C) 2010 Free Software Foundation, Inc.
8460 +This configure script is free software; the Free Software Foundation
8461 +gives unlimited permission to copy, distribute and modify it.
8462 +_ACEOF
8463 + exit
8464 +fi
8465 +
8466 +## ------------------------ ##
8467 +## Autoconf initialization. ##
8468 +## ------------------------ ##
8469 +
8470 +# ac_fn_c_try_compile LINENO
8471 +# --------------------------
8472 +# Try to compile conftest.$ac_ext, and return whether this succeeded.
8473 +ac_fn_c_try_compile ()
8474 +{
8475 + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8476 + rm -f conftest.$ac_objext
8477 + if { { ac_try="$ac_compile"
8478 +case "(($ac_try" in
8479 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8480 + *) ac_try_echo=$ac_try;;
8481 +esac
8482 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8483 +$as_echo "$ac_try_echo"; } >&5
8484 + (eval "$ac_compile") 2>conftest.err
8485 + ac_status=$?
8486 + if test -s conftest.err; then
8487 + grep -v '^ *+' conftest.err >conftest.er1
8488 + cat conftest.er1 >&5
8489 + mv -f conftest.er1 conftest.err
8490 + fi
8491 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8492 + test $ac_status = 0; } && {
8493 + test -z "$ac_c_werror_flag" ||
8494 + test ! -s conftest.err
8495 + } && test -s conftest.$ac_objext; then :
8496 + ac_retval=0
8497 +else
8498 + $as_echo "$as_me: failed program was:" >&5
8499 +sed 's/^/| /' conftest.$ac_ext >&5
8500 +
8501 + ac_retval=1
8502 +fi
8503 + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
8504 + as_fn_set_status $ac_retval
8505 +
8506 +} # ac_fn_c_try_compile
8507 +
8508 +# ac_fn_c_try_cpp LINENO
8509 +# ----------------------
8510 +# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
8511 +ac_fn_c_try_cpp ()
8512 +{
8513 + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8514 + if { { ac_try="$ac_cpp conftest.$ac_ext"
8515 +case "(($ac_try" in
8516 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8517 + *) ac_try_echo=$ac_try;;
8518 +esac
8519 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8520 +$as_echo "$ac_try_echo"; } >&5
8521 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
8522 + ac_status=$?
8523 + if test -s conftest.err; then
8524 + grep -v '^ *+' conftest.err >conftest.er1
8525 + cat conftest.er1 >&5
8526 + mv -f conftest.er1 conftest.err
8527 + fi
8528 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8529 + test $ac_status = 0; } > conftest.i && {
8530 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8531 + test ! -s conftest.err
8532 + }; then :
8533 + ac_retval=0
8534 +else
8535 + $as_echo "$as_me: failed program was:" >&5
8536 +sed 's/^/| /' conftest.$ac_ext >&5
8537 +
8538 + ac_retval=1
8539 +fi
8540 + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
8541 + as_fn_set_status $ac_retval
8542 +
8543 +} # ac_fn_c_try_cpp
8544 +
8545 +# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
8546 +# -------------------------------------------------------
8547 +# Tests whether HEADER exists, giving a warning if it cannot be compiled using
8548 +# the include files in INCLUDES and setting the cache variable VAR
8549 +# accordingly.
8550 +ac_fn_c_check_header_mongrel ()
8551 +{
8552 + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8553 + if eval \${$3+:} false; then :
8554 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
8555 +$as_echo_n "checking for $2... " >&6; }
8556 +if eval \${$3+:} false; then :
8557 + $as_echo_n "(cached) " >&6
8558 +fi
8559 +eval ac_res=\$$3
8560 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8561 +$as_echo "$ac_res" >&6; }
8562 +else
8563 + # Is the header compilable?
8564 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
8565 +$as_echo_n "checking $2 usability... " >&6; }
8566 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8567 +/* end confdefs.h. */
8568 +$4
8569 +#include <$2>
8570 +_ACEOF
8571 +if ac_fn_c_try_compile "$LINENO"; then :
8572 + ac_header_compiler=yes
8573 +else
8574 + ac_header_compiler=no
8575 +fi
8576 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8577 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
8578 +$as_echo "$ac_header_compiler" >&6; }
8579 +
8580 +# Is the header present?
8581 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
8582 +$as_echo_n "checking $2 presence... " >&6; }
8583 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8584 +/* end confdefs.h. */
8585 +#include <$2>
8586 +_ACEOF
8587 +if ac_fn_c_try_cpp "$LINENO"; then :
8588 + ac_header_preproc=yes
8589 +else
8590 + ac_header_preproc=no
8591 +fi
8592 +rm -f conftest.err conftest.i conftest.$ac_ext
8593 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
8594 +$as_echo "$ac_header_preproc" >&6; }
8595 +
8596 +# So? What about this header?
8597 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
8598 + yes:no: )
8599 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
8600 +$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
8601 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
8602 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
8603 + ;;
8604 + no:yes:* )
8605 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
8606 +$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
8607 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
8608 +$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
8609 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
8610 +$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
8611 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
8612 +$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
8613 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
8614 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
8615 + ;;
8616 +esac
8617 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
8618 +$as_echo_n "checking for $2... " >&6; }
8619 +if eval \${$3+:} false; then :
8620 + $as_echo_n "(cached) " >&6
8621 +else
8622 + eval "$3=\$ac_header_compiler"
8623 +fi
8624 +eval ac_res=\$$3
8625 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8626 +$as_echo "$ac_res" >&6; }
8627 +fi
8628 + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
8629 +
8630 +} # ac_fn_c_check_header_mongrel
8631 +
8632 +# ac_fn_c_try_run LINENO
8633 +# ----------------------
8634 +# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
8635 +# that executables *can* be run.
8636 +ac_fn_c_try_run ()
8637 +{
8638 + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8639 + if { { ac_try="$ac_link"
8640 +case "(($ac_try" in
8641 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8642 + *) ac_try_echo=$ac_try;;
8643 +esac
8644 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8645 +$as_echo "$ac_try_echo"; } >&5
8646 + (eval "$ac_link") 2>&5
8647 + ac_status=$?
8648 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8649 + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
8650 + { { case "(($ac_try" in
8651 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8652 + *) ac_try_echo=$ac_try;;
8653 +esac
8654 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8655 +$as_echo "$ac_try_echo"; } >&5
8656 + (eval "$ac_try") 2>&5
8657 + ac_status=$?
8658 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8659 + test $ac_status = 0; }; }; then :
8660 + ac_retval=0
8661 +else
8662 + $as_echo "$as_me: program exited with status $ac_status" >&5
8663 + $as_echo "$as_me: failed program was:" >&5
8664 +sed 's/^/| /' conftest.$ac_ext >&5
8665 +
8666 + ac_retval=$ac_status
8667 +fi
8668 + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
8669 + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
8670 + as_fn_set_status $ac_retval
8671 +
8672 +} # ac_fn_c_try_run
8673 +
8674 +# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
8675 +# -------------------------------------------------------
8676 +# Tests whether HEADER exists and can be compiled using the include files in
8677 +# INCLUDES, setting the cache variable VAR accordingly.
8678 +ac_fn_c_check_header_compile ()
8679 +{
8680 + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8681 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
8682 +$as_echo_n "checking for $2... " >&6; }
8683 +if eval \${$3+:} false; then :
8684 + $as_echo_n "(cached) " >&6
8685 +else
8686 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8687 +/* end confdefs.h. */
8688 +$4
8689 +#include <$2>
8690 +_ACEOF
8691 +if ac_fn_c_try_compile "$LINENO"; then :
8692 + eval "$3=yes"
8693 +else
8694 + eval "$3=no"
8695 +fi
8696 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8697 +fi
8698 +eval ac_res=\$$3
8699 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8700 +$as_echo "$ac_res" >&6; }
8701 + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
8702 +
8703 +} # ac_fn_c_check_header_compile
8704 +
8705 +# ac_fn_c_try_link LINENO
8706 +# -----------------------
8707 +# Try to link conftest.$ac_ext, and return whether this succeeded.
8708 +ac_fn_c_try_link ()
8709 +{
8710 + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8711 + rm -f conftest.$ac_objext conftest$ac_exeext
8712 + if { { ac_try="$ac_link"
8713 +case "(($ac_try" in
8714 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8715 + *) ac_try_echo=$ac_try;;
8716 +esac
8717 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8718 +$as_echo "$ac_try_echo"; } >&5
8719 + (eval "$ac_link") 2>conftest.err
8720 + ac_status=$?
8721 + if test -s conftest.err; then
8722 + grep -v '^ *+' conftest.err >conftest.er1
8723 + cat conftest.er1 >&5
8724 + mv -f conftest.er1 conftest.err
8725 + fi
8726 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8727 + test $ac_status = 0; } && {
8728 + test -z "$ac_c_werror_flag" ||
8729 + test ! -s conftest.err
8730 + } && test -s conftest$ac_exeext && {
8731 + test "$cross_compiling" = yes ||
8732 + $as_test_x conftest$ac_exeext
8733 + }; then :
8734 + ac_retval=0
8735 +else
8736 + $as_echo "$as_me: failed program was:" >&5
8737 +sed 's/^/| /' conftest.$ac_ext >&5
8738 +
8739 + ac_retval=1
8740 +fi
8741 + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
8742 + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
8743 + # interfere with the next link command; also delete a directory that is
8744 + # left behind by Apple's compiler. We do this before executing the actions.
8745 + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
8746 + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
8747 + as_fn_set_status $ac_retval
8748 +
8749 +} # ac_fn_c_try_link
8750 +
8751 +# ac_fn_c_check_func LINENO FUNC VAR
8752 +# ----------------------------------
8753 +# Tests whether FUNC exists, setting the cache variable VAR accordingly
8754 +ac_fn_c_check_func ()
8755 +{
8756 + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8757 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
8758 +$as_echo_n "checking for $2... " >&6; }
8759 +if eval \${$3+:} false; then :
8760 + $as_echo_n "(cached) " >&6
8761 +else
8762 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8763 +/* end confdefs.h. */
8764 +/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
8765 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
8766 +#define $2 innocuous_$2
8767 +
8768 +/* System header to define __stub macros and hopefully few prototypes,
8769 + which can conflict with char $2 (); below.
8770 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8771 + <limits.h> exists even on freestanding compilers. */
8772 +
8773 +#ifdef __STDC__
8774 +# include <limits.h>
8775 +#else
8776 +# include <assert.h>
8777 +#endif
8778 +
8779 +#undef $2
8780 +
8781 +/* Override any GCC internal prototype to avoid an error.
8782 + Use char because int might match the return type of a GCC
8783 + builtin and then its argument prototype would still apply. */
8784 +#ifdef __cplusplus
8785 +extern "C"
8786 +#endif
8787 +char $2 ();
8788 +/* The GNU C library defines this for functions which it implements
8789 + to always fail with ENOSYS. Some functions are actually named
8790 + something starting with __ and the normal name is an alias. */
8791 +#if defined __stub_$2 || defined __stub___$2
8792 +choke me
8793 +#endif
8794 +
8795 +int
8796 +main ()
8797 +{
8798 +return $2 ();
8799 + ;
8800 + return 0;
8801 +}
8802 +_ACEOF
8803 +if ac_fn_c_try_link "$LINENO"; then :
8804 + eval "$3=yes"
8805 +else
8806 + eval "$3=no"
8807 +fi
8808 +rm -f core conftest.err conftest.$ac_objext \
8809 + conftest$ac_exeext conftest.$ac_ext
8810 +fi
8811 +eval ac_res=\$$3
8812 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8813 +$as_echo "$ac_res" >&6; }
8814 + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
8815 +
8816 +} # ac_fn_c_check_func
8817 +
8818 +# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
8819 +# ---------------------------------------------
8820 +# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
8821 +# accordingly.
8822 +ac_fn_c_check_decl ()
8823 +{
8824 + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8825 + as_decl_name=`echo $2|sed 's/ *(.*//'`
8826 + as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
8827 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
8828 +$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
8829 +if eval \${$3+:} false; then :
8830 + $as_echo_n "(cached) " >&6
8831 +else
8832 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8833 +/* end confdefs.h. */
8834 +$4
8835 +int
8836 +main ()
8837 +{
8838 +#ifndef $as_decl_name
8839 +#ifdef __cplusplus
8840 + (void) $as_decl_use;
8841 +#else
8842 + (void) $as_decl_name;
8843 +#endif
8844 +#endif
8845 +
8846 + ;
8847 + return 0;
8848 +}
8849 +_ACEOF
8850 +if ac_fn_c_try_compile "$LINENO"; then :
8851 + eval "$3=yes"
8852 +else
8853 + eval "$3=no"
8854 +fi
8855 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8856 +fi
8857 +eval ac_res=\$$3
8858 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8859 +$as_echo "$ac_res" >&6; }
8860 + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
8861 +
8862 +} # ac_fn_c_check_decl
8863 +cat >config.log <<_ACEOF
8864 +This file contains any messages produced by compilers while
8865 +running configure, to aid debugging if configure makes a mistake.
8866 +
8867 +It was created by dummy $as_me 0, which was
8868 +generated by GNU Autoconf 2.68. Invocation command line was
8869 +
8870 + $ $0 $@
8871 +
8872 +_ACEOF
8873 +exec 5>>config.log
8874 +{
8875 +cat <<_ASUNAME
8876 +## --------- ##
8877 +## Platform. ##
8878 +## --------- ##
8879 +
8880 +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
8881 +uname -m = `(uname -m) 2>/dev/null || echo unknown`
8882 +uname -r = `(uname -r) 2>/dev/null || echo unknown`
8883 +uname -s = `(uname -s) 2>/dev/null || echo unknown`
8884 +uname -v = `(uname -v) 2>/dev/null || echo unknown`
8885 +
8886 +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
8887 +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
8888 +
8889 +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
8890 +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
8891 +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
8892 +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
8893 +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
8894 +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
8895 +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
8896 +
8897 +_ASUNAME
8898 +
8899 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8900 +for as_dir in $PATH
8901 +do
8902 + IFS=$as_save_IFS
8903 + test -z "$as_dir" && as_dir=.
8904 + $as_echo "PATH: $as_dir"
8905 + done
8906 +IFS=$as_save_IFS
8907 +
8908 +} >&5
8909 +
8910 +cat >&5 <<_ACEOF
8911 +
8912 +
8913 +## ----------- ##
8914 +## Core tests. ##
8915 +## ----------- ##
8916 +
8917 +_ACEOF
8918 +
8919 +
8920 +# Keep a trace of the command line.
8921 +# Strip out --no-create and --no-recursion so they do not pile up.
8922 +# Strip out --silent because we don't want to record it for future runs.
8923 +# Also quote any args containing shell meta-characters.
8924 +# Make two passes to allow for proper duplicate-argument suppression.
8925 +ac_configure_args=
8926 +ac_configure_args0=
8927 +ac_configure_args1=
8928 +ac_must_keep_next=false
8929 +for ac_pass in 1 2
8930 +do
8931 + for ac_arg
8932 + do
8933 + case $ac_arg in
8934 + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
8935 + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8936 + | -silent | --silent | --silen | --sile | --sil)
8937 + continue ;;
8938 + *\'*)
8939 + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
8940 + esac
8941 + case $ac_pass in
8942 + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
8943 + 2)
8944 + as_fn_append ac_configure_args1 " '$ac_arg'"
8945 + if test $ac_must_keep_next = true; then
8946 + ac_must_keep_next=false # Got value, back to normal.
8947 + else
8948 + case $ac_arg in
8949 + *=* | --config-cache | -C | -disable-* | --disable-* \
8950 + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
8951 + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
8952 + | -with-* | --with-* | -without-* | --without-* | --x)
8953 + case "$ac_configure_args0 " in
8954 + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
8955 + esac
8956 + ;;
8957 + -* ) ac_must_keep_next=true ;;
8958 + esac
8959 + fi
8960 + as_fn_append ac_configure_args " '$ac_arg'"
8961 + ;;
8962 + esac
8963 + done
8964 +done
8965 +{ ac_configure_args0=; unset ac_configure_args0;}
8966 +{ ac_configure_args1=; unset ac_configure_args1;}
8967 +
8968 +# When interrupted or exit'd, cleanup temporary files, and complete
8969 +# config.log. We remove comments because anyway the quotes in there
8970 +# would cause problems or look ugly.
8971 +# WARNING: Use '\'' to represent an apostrophe within the trap.
8972 +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
8973 +trap 'exit_status=$?
8974 + # Save into config.log some information that might help in debugging.
8975 + {
8976 + echo
8977 +
8978 + $as_echo "## ---------------- ##
8979 +## Cache variables. ##
8980 +## ---------------- ##"
8981 + echo
8982 + # The following way of writing the cache mishandles newlines in values,
8983 +(
8984 + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
8985 + eval ac_val=\$$ac_var
8986 + case $ac_val in #(
8987 + *${as_nl}*)
8988 + case $ac_var in #(
8989 + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8990 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8991 + esac
8992 + case $ac_var in #(
8993 + _ | IFS | as_nl) ;; #(
8994 + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8995 + *) { eval $ac_var=; unset $ac_var;} ;;
8996 + esac ;;
8997 + esac
8998 + done
8999 + (set) 2>&1 |
9000 + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
9001 + *${as_nl}ac_space=\ *)
9002 + sed -n \
9003 + "s/'\''/'\''\\\\'\'''\''/g;
9004 + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
9005 + ;; #(
9006 + *)
9007 + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9008 + ;;
9009 + esac |
9010 + sort
9011 +)
9012 + echo
9013 +
9014 + $as_echo "## ----------------- ##
9015 +## Output variables. ##
9016 +## ----------------- ##"
9017 + echo
9018 + for ac_var in $ac_subst_vars
9019 + do
9020 + eval ac_val=\$$ac_var
9021 + case $ac_val in
9022 + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
9023 + esac
9024 + $as_echo "$ac_var='\''$ac_val'\''"
9025 + done | sort
9026 + echo
9027 +
9028 + if test -n "$ac_subst_files"; then
9029 + $as_echo "## ------------------- ##
9030 +## File substitutions. ##
9031 +## ------------------- ##"
9032 + echo
9033 + for ac_var in $ac_subst_files
9034 + do
9035 + eval ac_val=\$$ac_var
9036 + case $ac_val in
9037 + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
9038 + esac
9039 + $as_echo "$ac_var='\''$ac_val'\''"
9040 + done | sort
9041 + echo
9042 + fi
9043 +
9044 + if test -s confdefs.h; then
9045 + $as_echo "## ----------- ##
9046 +## confdefs.h. ##
9047 +## ----------- ##"
9048 + echo
9049 + cat confdefs.h
9050 + echo
9051 + fi
9052 + test "$ac_signal" != 0 &&
9053 + $as_echo "$as_me: caught signal $ac_signal"
9054 + $as_echo "$as_me: exit $exit_status"
9055 + } >&5
9056 + rm -f core *.core core.conftest.* &&
9057 + rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
9058 + exit $exit_status
9059 +' 0
9060 +for ac_signal in 1 2 13 15; do
9061 + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
9062 +done
9063 +ac_signal=0
9064 +
9065 +# confdefs.h avoids OS command line length limits that DEFS can exceed.
9066 +rm -f -r conftest* confdefs.h
9067 +
9068 +$as_echo "/* confdefs.h */" > confdefs.h
9069 +
9070 +# Predefined preprocessor variables.
9071 +
9072 +cat >>confdefs.h <<_ACEOF
9073 +#define PACKAGE_NAME "$PACKAGE_NAME"
9074 +_ACEOF
9075 +
9076 +cat >>confdefs.h <<_ACEOF
9077 +#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
9078 +_ACEOF
9079 +
9080 +cat >>confdefs.h <<_ACEOF
9081 +#define PACKAGE_VERSION "$PACKAGE_VERSION"
9082 +_ACEOF
9083 +
9084 +cat >>confdefs.h <<_ACEOF
9085 +#define PACKAGE_STRING "$PACKAGE_STRING"
9086 +_ACEOF
9087 +
9088 +cat >>confdefs.h <<_ACEOF
9089 +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
9090 +_ACEOF
9091 +
9092 +cat >>confdefs.h <<_ACEOF
9093 +#define PACKAGE_URL "$PACKAGE_URL"
9094 +_ACEOF
9095 +
9096 +
9097 +# Let the site file select an alternate cache file if it wants to.
9098 +# Prefer an explicitly selected file to automatically selected ones.
9099 +ac_site_file1=NONE
9100 +ac_site_file2=NONE
9101 +if test -n "$CONFIG_SITE"; then
9102 + # We do not want a PATH search for config.site.
9103 + case $CONFIG_SITE in #((
9104 + -*) ac_site_file1=./$CONFIG_SITE;;
9105 + */*) ac_site_file1=$CONFIG_SITE;;
9106 + *) ac_site_file1=./$CONFIG_SITE;;
9107 + esac
9108 +elif test "x$prefix" != xNONE; then
9109 + ac_site_file1=$prefix/share/config.site
9110 + ac_site_file2=$prefix/etc/config.site
9111 +else
9112 + ac_site_file1=$ac_default_prefix/share/config.site
9113 + ac_site_file2=$ac_default_prefix/etc/config.site
9114 +fi
9115 +for ac_site_file in "$ac_site_file1" "$ac_site_file2"
9116 +do
9117 + test "x$ac_site_file" = xNONE && continue
9118 + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
9119 + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
9120 +$as_echo "$as_me: loading site script $ac_site_file" >&6;}
9121 + sed 's/^/| /' "$ac_site_file" >&5
9122 + . "$ac_site_file" \
9123 + || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9124 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9125 +as_fn_error $? "failed to load site script $ac_site_file
9126 +See \`config.log' for more details" "$LINENO" 5; }
9127 + fi
9128 +done
9129 +
9130 +if test -r "$cache_file"; then
9131 + # Some versions of bash will fail to source /dev/null (special files
9132 + # actually), so we avoid doing that. DJGPP emulates it as a regular file.
9133 + if test /dev/null != "$cache_file" && test -f "$cache_file"; then
9134 + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
9135 +$as_echo "$as_me: loading cache $cache_file" >&6;}
9136 + case $cache_file in
9137 + [\\/]* | ?:[\\/]* ) . "$cache_file";;
9138 + *) . "./$cache_file";;
9139 + esac
9140 + fi
9141 +else
9142 + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
9143 +$as_echo "$as_me: creating cache $cache_file" >&6;}
9144 + >$cache_file
9145 +fi
9146 +
9147 +gl_header_list="$gl_header_list string.h"
9148 +gl_header_list="$gl_header_list unistd.h"
9149 +# Check that the precious variables saved in the cache have kept the same
9150 +# value.
9151 +ac_cache_corrupted=false
9152 +for ac_var in $ac_precious_vars; do
9153 + eval ac_old_set=\$ac_cv_env_${ac_var}_set
9154 + eval ac_new_set=\$ac_env_${ac_var}_set
9155 + eval ac_old_val=\$ac_cv_env_${ac_var}_value
9156 + eval ac_new_val=\$ac_env_${ac_var}_value
9157 + case $ac_old_set,$ac_new_set in
9158 + set,)
9159 + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
9160 +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
9161 + ac_cache_corrupted=: ;;
9162 + ,set)
9163 + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
9164 +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
9165 + ac_cache_corrupted=: ;;
9166 + ,);;
9167 + *)
9168 + if test "x$ac_old_val" != "x$ac_new_val"; then
9169 + # differences in whitespace do not lead to failure.
9170 + ac_old_val_w=`echo x $ac_old_val`
9171 + ac_new_val_w=`echo x $ac_new_val`
9172 + if test "$ac_old_val_w" != "$ac_new_val_w"; then
9173 + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
9174 +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
9175 + ac_cache_corrupted=:
9176 + else
9177 + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
9178 +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
9179 + eval $ac_var=\$ac_old_val
9180 + fi
9181 + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
9182 +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
9183 + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
9184 +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
9185 + fi;;
9186 + esac
9187 + # Pass precious variables to config.status.
9188 + if test "$ac_new_set" = set; then
9189 + case $ac_new_val in
9190 + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
9191 + *) ac_arg=$ac_var=$ac_new_val ;;
9192 + esac
9193 + case " $ac_configure_args " in
9194 + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
9195 + *) as_fn_append ac_configure_args " '$ac_arg'" ;;
9196 + esac
9197 + fi
9198 +done
9199 +if $ac_cache_corrupted; then
9200 + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9201 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9202 + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
9203 +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
9204 + as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
9205 +fi
9206 +## -------------------- ##
9207 +## Main body of script. ##
9208 +## -------------------- ##
9209 +
9210 +ac_ext=c
9211 +ac_cpp='$CPP $CPPFLAGS'
9212 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9213 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9214 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
9215 +
9216 +
9217 +ac_aux_dir=
9218 +for ac_dir in build-aux "$srcdir"/build-aux; do
9219 + if test -f "$ac_dir/install-sh"; then
9220 + ac_aux_dir=$ac_dir
9221 + ac_install_sh="$ac_aux_dir/install-sh -c"
9222 + break
9223 + elif test -f "$ac_dir/install.sh"; then
9224 + ac_aux_dir=$ac_dir
9225 + ac_install_sh="$ac_aux_dir/install.sh -c"
9226 + break
9227 + elif test -f "$ac_dir/shtool"; then
9228 + ac_aux_dir=$ac_dir
9229 + ac_install_sh="$ac_aux_dir/shtool install -c"
9230 + break
9231 + fi
9232 +done
9233 +if test -z "$ac_aux_dir"; then
9234 + as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
9235 +fi
9236 +
9237 +# These three variables are undocumented and unsupported,
9238 +# and are intended to be withdrawn in a future Autoconf release.
9239 +# They can cause serious problems if a builder's source tree is in a directory
9240 +# whose full name contains unusual characters.
9241 +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
9242 +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
9243 +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
9244 +
9245 +
9246 +am__api_version='1.11'
9247 +
9248 +# Find a good install program. We prefer a C program (faster),
9249 +# so one script is as good as another. But avoid the broken or
9250 +# incompatible versions:
9251 +# SysV /etc/install, /usr/sbin/install
9252 +# SunOS /usr/etc/install
9253 +# IRIX /sbin/install
9254 +# AIX /bin/install
9255 +# AmigaOS /C/install, which installs bootblocks on floppy discs
9256 +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9257 +# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9258 +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9259 +# OS/2's system install, which has a completely different semantic
9260 +# ./install, which can be erroneously created by make from ./install.sh.
9261 +# Reject install programs that cannot install multiple files.
9262 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
9263 +$as_echo_n "checking for a BSD-compatible install... " >&6; }
9264 +if test -z "$INSTALL"; then
9265 +if ${ac_cv_path_install+:} false; then :
9266 + $as_echo_n "(cached) " >&6
9267 +else
9268 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9269 +for as_dir in $PATH
9270 +do
9271 + IFS=$as_save_IFS
9272 + test -z "$as_dir" && as_dir=.
9273 + # Account for people who put trailing slashes in PATH elements.
9274 +case $as_dir/ in #((
9275 + ./ | .// | /[cC]/* | \
9276 + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
9277 + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
9278 + /usr/ucb/* ) ;;
9279 + *)
9280 + # OSF1 and SCO ODT 3.0 have their own names for install.
9281 + # Don't use installbsd from OSF since it installs stuff as root
9282 + # by default.
9283 + for ac_prog in ginstall scoinst install; do
9284 + for ac_exec_ext in '' $ac_executable_extensions; do
9285 + if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
9286 + if test $ac_prog = install &&
9287 + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9288 + # AIX install. It has an incompatible calling convention.
9289 + :
9290 + elif test $ac_prog = install &&
9291 + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9292 + # program-specific install script used by HP pwplus--don't use.
9293 + :
9294 + else
9295 + rm -rf conftest.one conftest.two conftest.dir
9296 + echo one > conftest.one
9297 + echo two > conftest.two
9298 + mkdir conftest.dir
9299 + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
9300 + test -s conftest.one && test -s conftest.two &&
9301 + test -s conftest.dir/conftest.one &&
9302 + test -s conftest.dir/conftest.two
9303 + then
9304 + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9305 + break 3
9306 + fi
9307 + fi
9308 + fi
9309 + done
9310 + done
9311 + ;;
9312 +esac
9313 +
9314 + done
9315 +IFS=$as_save_IFS
9316 +
9317 +rm -rf conftest.one conftest.two conftest.dir
9318 +
9319 +fi
9320 + if test "${ac_cv_path_install+set}" = set; then
9321 + INSTALL=$ac_cv_path_install
9322 + else
9323 + # As a last resort, use the slow shell script. Don't cache a
9324 + # value for INSTALL within a source directory, because that will
9325 + # break other packages using the cache if that directory is
9326 + # removed, or if the value is a relative name.
9327 + INSTALL=$ac_install_sh
9328 + fi
9329 +fi
9330 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
9331 +$as_echo "$INSTALL" >&6; }
9332 +
9333 +# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9334 +# It thinks the first close brace ends the variable substitution.
9335 +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9336 +
9337 +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9338 +
9339 +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9340 +
9341 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
9342 +$as_echo_n "checking whether build environment is sane... " >&6; }
9343 +# Just in case
9344 +sleep 1
9345 +echo timestamp > conftest.file
9346 +# Reject unsafe characters in $srcdir or the absolute working directory
9347 +# name. Accept space and tab only in the latter.
9348 +am_lf='
9349 +'
9350 +case `pwd` in
9351 + *[\\\"\#\$\&\'\`$am_lf]*)
9352 + as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
9353 +esac
9354 +case $srcdir in
9355 + *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
9356 + as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
9357 +esac
9358 +
9359 +# Do `set' in a subshell so we don't clobber the current shell's
9360 +# arguments. Must try -L first in case configure is actually a
9361 +# symlink; some systems play weird games with the mod time of symlinks
9362 +# (eg FreeBSD returns the mod time of the symlink's containing
9363 +# directory).
9364 +if (
9365 + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
9366 + if test "$*" = "X"; then
9367 + # -L didn't work.
9368 + set X `ls -t "$srcdir/configure" conftest.file`
9369 + fi
9370 + rm -f conftest.file
9371 + if test "$*" != "X $srcdir/configure conftest.file" \
9372 + && test "$*" != "X conftest.file $srcdir/configure"; then
9373 +
9374 + # If neither matched, then we have a broken ls. This can happen
9375 + # if, for instance, CONFIG_SHELL is bash and it inherits a
9376 + # broken ls alias from the environment. This has actually
9377 + # happened. Such a system could not be considered "sane".
9378 + as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
9379 +alias in your environment" "$LINENO" 5
9380 + fi
9381 +
9382 + test "$2" = conftest.file
9383 + )
9384 +then
9385 + # Ok.
9386 + :
9387 +else
9388 + as_fn_error $? "newly created file is older than distributed files!
9389 +Check your system clock" "$LINENO" 5
9390 +fi
9391 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9392 +$as_echo "yes" >&6; }
9393 +test "$program_prefix" != NONE &&
9394 + program_transform_name="s&^&$program_prefix&;$program_transform_name"
9395 +# Use a double $ so make ignores it.
9396 +test "$program_suffix" != NONE &&
9397 + program_transform_name="s&\$&$program_suffix&;$program_transform_name"
9398 +# Double any \ or $.
9399 +# By default was `s,x,x', remove it if useless.
9400 +ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
9401 +program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
9402 +
9403 +# expand $ac_aux_dir to an absolute path
9404 +am_aux_dir=`cd $ac_aux_dir && pwd`
9405 +
9406 +if test x"${MISSING+set}" != xset; then
9407 + case $am_aux_dir in
9408 + *\ * | *\ *)
9409 + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
9410 + *)
9411 + MISSING="\${SHELL} $am_aux_dir/missing" ;;
9412 + esac
9413 +fi
9414 +# Use eval to expand $SHELL
9415 +if eval "$MISSING --run true"; then
9416 + am_missing_run="$MISSING --run "
9417 +else
9418 + am_missing_run=
9419 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
9420 +$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
9421 +fi
9422 +
9423 +if test x"${install_sh}" != xset; then
9424 + case $am_aux_dir in
9425 + *\ * | *\ *)
9426 + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
9427 + *)
9428 + install_sh="\${SHELL} $am_aux_dir/install-sh"
9429 + esac
9430 +fi
9431 +
9432 +# Installed binaries are usually stripped using `strip' when the user
9433 +# run `make install-strip'. However `strip' might not be the right
9434 +# tool to use in cross-compilation environments, therefore Automake
9435 +# will honor the `STRIP' environment variable to overrule this program.
9436 +if test "$cross_compiling" != no; then
9437 + if test -n "$ac_tool_prefix"; then
9438 + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9439 +set dummy ${ac_tool_prefix}strip; ac_word=$2
9440 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9441 +$as_echo_n "checking for $ac_word... " >&6; }
9442 +if ${ac_cv_prog_STRIP+:} false; then :
9443 + $as_echo_n "(cached) " >&6
9444 +else
9445 + if test -n "$STRIP"; then
9446 + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9447 +else
9448 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9449 +for as_dir in $PATH
9450 +do
9451 + IFS=$as_save_IFS
9452 + test -z "$as_dir" && as_dir=.
9453 + for ac_exec_ext in '' $ac_executable_extensions; do
9454 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9455 + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9456 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9457 + break 2
9458 + fi
9459 +done
9460 + done
9461 +IFS=$as_save_IFS
9462 +
9463 +fi
9464 +fi
9465 +STRIP=$ac_cv_prog_STRIP
9466 +if test -n "$STRIP"; then
9467 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9468 +$as_echo "$STRIP" >&6; }
9469 +else
9470 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9471 +$as_echo "no" >&6; }
9472 +fi
9473 +
9474 +
9475 +fi
9476 +if test -z "$ac_cv_prog_STRIP"; then
9477 + ac_ct_STRIP=$STRIP
9478 + # Extract the first word of "strip", so it can be a program name with args.
9479 +set dummy strip; ac_word=$2
9480 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9481 +$as_echo_n "checking for $ac_word... " >&6; }
9482 +if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9483 + $as_echo_n "(cached) " >&6
9484 +else
9485 + if test -n "$ac_ct_STRIP"; then
9486 + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9487 +else
9488 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9489 +for as_dir in $PATH
9490 +do
9491 + IFS=$as_save_IFS
9492 + test -z "$as_dir" && as_dir=.
9493 + for ac_exec_ext in '' $ac_executable_extensions; do
9494 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9495 + ac_cv_prog_ac_ct_STRIP="strip"
9496 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9497 + break 2
9498 + fi
9499 +done
9500 + done
9501 +IFS=$as_save_IFS
9502 +
9503 +fi
9504 +fi
9505 +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9506 +if test -n "$ac_ct_STRIP"; then
9507 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9508 +$as_echo "$ac_ct_STRIP" >&6; }
9509 +else
9510 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9511 +$as_echo "no" >&6; }
9512 +fi
9513 +
9514 + if test "x$ac_ct_STRIP" = x; then
9515 + STRIP=":"
9516 + else
9517 + case $cross_compiling:$ac_tool_warned in
9518 +yes:)
9519 +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9520 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9521 +ac_tool_warned=yes ;;
9522 +esac
9523 + STRIP=$ac_ct_STRIP
9524 + fi
9525 +else
9526 + STRIP="$ac_cv_prog_STRIP"
9527 +fi
9528 +
9529 +fi
9530 +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
9531 +
9532 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
9533 +$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
9534 +if test -z "$MKDIR_P"; then
9535 + if ${ac_cv_path_mkdir+:} false; then :
9536 + $as_echo_n "(cached) " >&6
9537 +else
9538 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9539 +for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
9540 +do
9541 + IFS=$as_save_IFS
9542 + test -z "$as_dir" && as_dir=.
9543 + for ac_prog in mkdir gmkdir; do
9544 + for ac_exec_ext in '' $ac_executable_extensions; do
9545 + { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
9546 + case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
9547 + 'mkdir (GNU coreutils) '* | \
9548 + 'mkdir (coreutils) '* | \
9549 + 'mkdir (fileutils) '4.1*)
9550 + ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
9551 + break 3;;
9552 + esac
9553 + done
9554 + done
9555 + done
9556 +IFS=$as_save_IFS
9557 +
9558 +fi
9559 +
9560 + test -d ./--version && rmdir ./--version
9561 + if test "${ac_cv_path_mkdir+set}" = set; then
9562 + MKDIR_P="$ac_cv_path_mkdir -p"
9563 + else
9564 + # As a last resort, use the slow shell script. Don't cache a
9565 + # value for MKDIR_P within a source directory, because that will
9566 + # break other packages using the cache if that directory is
9567 + # removed, or if the value is a relative name.
9568 + MKDIR_P="$ac_install_sh -d"
9569 + fi
9570 +fi
9571 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
9572 +$as_echo "$MKDIR_P" >&6; }
9573 +
9574 +mkdir_p="$MKDIR_P"
9575 +case $mkdir_p in
9576 + [\\/$]* | ?:[\\/]*) ;;
9577 + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
9578 +esac
9579 +
9580 +for ac_prog in gawk mawk nawk awk
9581 +do
9582 + # Extract the first word of "$ac_prog", so it can be a program name with args.
9583 +set dummy $ac_prog; ac_word=$2
9584 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9585 +$as_echo_n "checking for $ac_word... " >&6; }
9586 +if ${ac_cv_prog_AWK+:} false; then :
9587 + $as_echo_n "(cached) " >&6
9588 +else
9589 + if test -n "$AWK"; then
9590 + ac_cv_prog_AWK="$AWK" # Let the user override the test.
9591 +else
9592 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9593 +for as_dir in $PATH
9594 +do
9595 + IFS=$as_save_IFS
9596 + test -z "$as_dir" && as_dir=.
9597 + for ac_exec_ext in '' $ac_executable_extensions; do
9598 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9599 + ac_cv_prog_AWK="$ac_prog"
9600 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9601 + break 2
9602 + fi
9603 +done
9604 + done
9605 +IFS=$as_save_IFS
9606 +
9607 +fi
9608 +fi
9609 +AWK=$ac_cv_prog_AWK
9610 +if test -n "$AWK"; then
9611 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9612 +$as_echo "$AWK" >&6; }
9613 +else
9614 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9615 +$as_echo "no" >&6; }
9616 +fi
9617 +
9618 +
9619 + test -n "$AWK" && break
9620 +done
9621 +
9622 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9623 +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9624 +set x ${MAKE-make}
9625 +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9626 +if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
9627 + $as_echo_n "(cached) " >&6
9628 +else
9629 + cat >conftest.make <<\_ACEOF
9630 +SHELL = /bin/sh
9631 +all:
9632 + @echo '@@@%%%=$(MAKE)=@@@%%%'
9633 +_ACEOF
9634 +# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
9635 +case `${MAKE-make} -f conftest.make 2>/dev/null` in
9636 + *@@@%%%=?*=@@@%%%*)
9637 + eval ac_cv_prog_make_${ac_make}_set=yes;;
9638 + *)
9639 + eval ac_cv_prog_make_${ac_make}_set=no;;
9640 +esac
9641 +rm -f conftest.make
9642 +fi
9643 +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9644 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9645 +$as_echo "yes" >&6; }
9646 + SET_MAKE=
9647 +else
9648 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9649 +$as_echo "no" >&6; }
9650 + SET_MAKE="MAKE=${MAKE-make}"
9651 +fi
9652 +
9653 +rm -rf .tst 2>/dev/null
9654 +mkdir .tst 2>/dev/null
9655 +if test -d .tst; then
9656 + am__leading_dot=.
9657 +else
9658 + am__leading_dot=_
9659 +fi
9660 +rmdir .tst 2>/dev/null
9661 +
9662 +if test "`cd $srcdir && pwd`" != "`pwd`"; then
9663 + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
9664 + # is not polluted with repeated "-I."
9665 + am__isrc=' -I$(srcdir)'
9666 + # test to see if srcdir already configured
9667 + if test -f $srcdir/config.status; then
9668 + as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
9669 + fi
9670 +fi
9671 +
9672 +# test whether we have cygpath
9673 +if test -z "$CYGPATH_W"; then
9674 + if (cygpath --version) >/dev/null 2>/dev/null; then
9675 + CYGPATH_W='cygpath -w'
9676 + else
9677 + CYGPATH_W=echo
9678 + fi
9679 +fi
9680 +
9681 +
9682 +# Define the identity of the package.
9683 + PACKAGE='dummy'
9684 + VERSION='0'
9685 +
9686 +
9687 +cat >>confdefs.h <<_ACEOF
9688 +#define PACKAGE "$PACKAGE"
9689 +_ACEOF
9690 +
9691 +
9692 +cat >>confdefs.h <<_ACEOF
9693 +#define VERSION "$VERSION"
9694 +_ACEOF
9695 +
9696 +# Some tools Automake needs.
9697 +
9698 +ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
9699 +
9700 +
9701 +AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
9702 +
9703 +
9704 +AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
9705 +
9706 +
9707 +AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
9708 +
9709 +
9710 +MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
9711 +
9712 +# We need awk for the "check" target. The system "awk" is bad on
9713 +# some platforms.
9714 +# Always define AMTAR for backward compatibility.
9715 +
9716 +AMTAR=${AMTAR-"${am_missing_run}tar"}
9717 +
9718 +am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
9719 +
9720 +
9721 +
9722 +
9723 +
9724 +
9725 +ac_config_headers="$ac_config_headers config.h"
9726 +
9727 +
9728 +ac_ext=c
9729 +ac_cpp='$CPP $CPPFLAGS'
9730 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9731 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9732 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
9733 +if test -n "$ac_tool_prefix"; then
9734 + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
9735 +set dummy ${ac_tool_prefix}gcc; ac_word=$2
9736 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9737 +$as_echo_n "checking for $ac_word... " >&6; }
9738 +if ${ac_cv_prog_CC+:} false; then :
9739 + $as_echo_n "(cached) " >&6
9740 +else
9741 + if test -n "$CC"; then
9742 + ac_cv_prog_CC="$CC" # Let the user override the test.
9743 +else
9744 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9745 +for as_dir in $PATH
9746 +do
9747 + IFS=$as_save_IFS
9748 + test -z "$as_dir" && as_dir=.
9749 + for ac_exec_ext in '' $ac_executable_extensions; do
9750 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9751 + ac_cv_prog_CC="${ac_tool_prefix}gcc"
9752 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9753 + break 2
9754 + fi
9755 +done
9756 + done
9757 +IFS=$as_save_IFS
9758 +
9759 +fi
9760 +fi
9761 +CC=$ac_cv_prog_CC
9762 +if test -n "$CC"; then
9763 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
9764 +$as_echo "$CC" >&6; }
9765 +else
9766 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9767 +$as_echo "no" >&6; }
9768 +fi
9769 +
9770 +
9771 +fi
9772 +if test -z "$ac_cv_prog_CC"; then
9773 + ac_ct_CC=$CC
9774 + # Extract the first word of "gcc", so it can be a program name with args.
9775 +set dummy gcc; ac_word=$2
9776 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9777 +$as_echo_n "checking for $ac_word... " >&6; }
9778 +if ${ac_cv_prog_ac_ct_CC+:} false; then :
9779 + $as_echo_n "(cached) " >&6
9780 +else
9781 + if test -n "$ac_ct_CC"; then
9782 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9783 +else
9784 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9785 +for as_dir in $PATH
9786 +do
9787 + IFS=$as_save_IFS
9788 + test -z "$as_dir" && as_dir=.
9789 + for ac_exec_ext in '' $ac_executable_extensions; do
9790 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9791 + ac_cv_prog_ac_ct_CC="gcc"
9792 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9793 + break 2
9794 + fi
9795 +done
9796 + done
9797 +IFS=$as_save_IFS
9798 +
9799 +fi
9800 +fi
9801 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
9802 +if test -n "$ac_ct_CC"; then
9803 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
9804 +$as_echo "$ac_ct_CC" >&6; }
9805 +else
9806 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9807 +$as_echo "no" >&6; }
9808 +fi
9809 +
9810 + if test "x$ac_ct_CC" = x; then
9811 + CC=""
9812 + else
9813 + case $cross_compiling:$ac_tool_warned in
9814 +yes:)
9815 +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9816 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9817 +ac_tool_warned=yes ;;
9818 +esac
9819 + CC=$ac_ct_CC
9820 + fi
9821 +else
9822 + CC="$ac_cv_prog_CC"
9823 +fi
9824 +
9825 +if test -z "$CC"; then
9826 + if test -n "$ac_tool_prefix"; then
9827 + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
9828 +set dummy ${ac_tool_prefix}cc; ac_word=$2
9829 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9830 +$as_echo_n "checking for $ac_word... " >&6; }
9831 +if ${ac_cv_prog_CC+:} false; then :
9832 + $as_echo_n "(cached) " >&6
9833 +else
9834 + if test -n "$CC"; then
9835 + ac_cv_prog_CC="$CC" # Let the user override the test.
9836 +else
9837 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9838 +for as_dir in $PATH
9839 +do
9840 + IFS=$as_save_IFS
9841 + test -z "$as_dir" && as_dir=.
9842 + for ac_exec_ext in '' $ac_executable_extensions; do
9843 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9844 + ac_cv_prog_CC="${ac_tool_prefix}cc"
9845 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9846 + break 2
9847 + fi
9848 +done
9849 + done
9850 +IFS=$as_save_IFS
9851 +
9852 +fi
9853 +fi
9854 +CC=$ac_cv_prog_CC
9855 +if test -n "$CC"; then
9856 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
9857 +$as_echo "$CC" >&6; }
9858 +else
9859 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9860 +$as_echo "no" >&6; }
9861 +fi
9862 +
9863 +
9864 + fi
9865 +fi
9866 +if test -z "$CC"; then
9867 + # Extract the first word of "cc", so it can be a program name with args.
9868 +set dummy cc; ac_word=$2
9869 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9870 +$as_echo_n "checking for $ac_word... " >&6; }
9871 +if ${ac_cv_prog_CC+:} false; then :
9872 + $as_echo_n "(cached) " >&6
9873 +else
9874 + if test -n "$CC"; then
9875 + ac_cv_prog_CC="$CC" # Let the user override the test.
9876 +else
9877 + ac_prog_rejected=no
9878 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9879 +for as_dir in $PATH
9880 +do
9881 + IFS=$as_save_IFS
9882 + test -z "$as_dir" && as_dir=.
9883 + for ac_exec_ext in '' $ac_executable_extensions; do
9884 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9885 + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
9886 + ac_prog_rejected=yes
9887 + continue
9888 + fi
9889 + ac_cv_prog_CC="cc"
9890 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9891 + break 2
9892 + fi
9893 +done
9894 + done
9895 +IFS=$as_save_IFS
9896 +
9897 +if test $ac_prog_rejected = yes; then
9898 + # We found a bogon in the path, so make sure we never use it.
9899 + set dummy $ac_cv_prog_CC
9900 + shift
9901 + if test $# != 0; then
9902 + # We chose a different compiler from the bogus one.
9903 + # However, it has the same basename, so the bogon will be chosen
9904 + # first if we set CC to just the basename; use the full file name.
9905 + shift
9906 + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9907 + fi
9908 +fi
9909 +fi
9910 +fi
9911 +CC=$ac_cv_prog_CC
9912 +if test -n "$CC"; then
9913 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
9914 +$as_echo "$CC" >&6; }
9915 +else
9916 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9917 +$as_echo "no" >&6; }
9918 +fi
9919 +
9920 +
9921 +fi
9922 +if test -z "$CC"; then
9923 + if test -n "$ac_tool_prefix"; then
9924 + for ac_prog in cl.exe
9925 + do
9926 + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9927 +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9928 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9929 +$as_echo_n "checking for $ac_word... " >&6; }
9930 +if ${ac_cv_prog_CC+:} false; then :
9931 + $as_echo_n "(cached) " >&6
9932 +else
9933 + if test -n "$CC"; then
9934 + ac_cv_prog_CC="$CC" # Let the user override the test.
9935 +else
9936 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9937 +for as_dir in $PATH
9938 +do
9939 + IFS=$as_save_IFS
9940 + test -z "$as_dir" && as_dir=.
9941 + for ac_exec_ext in '' $ac_executable_extensions; do
9942 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9943 + ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
9944 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9945 + break 2
9946 + fi
9947 +done
9948 + done
9949 +IFS=$as_save_IFS
9950 +
9951 +fi
9952 +fi
9953 +CC=$ac_cv_prog_CC
9954 +if test -n "$CC"; then
9955 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
9956 +$as_echo "$CC" >&6; }
9957 +else
9958 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9959 +$as_echo "no" >&6; }
9960 +fi
9961 +
9962 +
9963 + test -n "$CC" && break
9964 + done
9965 +fi
9966 +if test -z "$CC"; then
9967 + ac_ct_CC=$CC
9968 + for ac_prog in cl.exe
9969 +do
9970 + # Extract the first word of "$ac_prog", so it can be a program name with args.
9971 +set dummy $ac_prog; ac_word=$2
9972 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9973 +$as_echo_n "checking for $ac_word... " >&6; }
9974 +if ${ac_cv_prog_ac_ct_CC+:} false; then :
9975 + $as_echo_n "(cached) " >&6
9976 +else
9977 + if test -n "$ac_ct_CC"; then
9978 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9979 +else
9980 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9981 +for as_dir in $PATH
9982 +do
9983 + IFS=$as_save_IFS
9984 + test -z "$as_dir" && as_dir=.
9985 + for ac_exec_ext in '' $ac_executable_extensions; do
9986 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9987 + ac_cv_prog_ac_ct_CC="$ac_prog"
9988 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9989 + break 2
9990 + fi
9991 +done
9992 + done
9993 +IFS=$as_save_IFS
9994 +
9995 +fi
9996 +fi
9997 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
9998 +if test -n "$ac_ct_CC"; then
9999 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
10000 +$as_echo "$ac_ct_CC" >&6; }
10001 +else
10002 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10003 +$as_echo "no" >&6; }
10004 +fi
10005 +
10006 +
10007 + test -n "$ac_ct_CC" && break
10008 +done
10009 +
10010 + if test "x$ac_ct_CC" = x; then
10011 + CC=""
10012 + else
10013 + case $cross_compiling:$ac_tool_warned in
10014 +yes:)
10015 +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10016 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10017 +ac_tool_warned=yes ;;
10018 +esac
10019 + CC=$ac_ct_CC
10020 + fi
10021 +fi
10022 +
10023 +fi
10024 +
10025 +
10026 +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10027 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10028 +as_fn_error $? "no acceptable C compiler found in \$PATH
10029 +See \`config.log' for more details" "$LINENO" 5; }
10030 +
10031 +# Provide some information about the compiler.
10032 +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
10033 +set X $ac_compile
10034 +ac_compiler=$2
10035 +for ac_option in --version -v -V -qversion; do
10036 + { { ac_try="$ac_compiler $ac_option >&5"
10037 +case "(($ac_try" in
10038 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10039 + *) ac_try_echo=$ac_try;;
10040 +esac
10041 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10042 +$as_echo "$ac_try_echo"; } >&5
10043 + (eval "$ac_compiler $ac_option >&5") 2>conftest.err
10044 + ac_status=$?
10045 + if test -s conftest.err; then
10046 + sed '10a\
10047 +... rest of stderr output deleted ...
10048 + 10q' conftest.err >conftest.er1
10049 + cat conftest.er1 >&5
10050 + fi
10051 + rm -f conftest.er1 conftest.err
10052 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10053 + test $ac_status = 0; }
10054 +done
10055 +
10056 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10057 +/* end confdefs.h. */
10058 +
10059 +int
10060 +main ()
10061 +{
10062 +
10063 + ;
10064 + return 0;
10065 +}
10066 +_ACEOF
10067 +ac_clean_files_save=$ac_clean_files
10068 +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
10069 +# Try to create an executable without -o first, disregard a.out.
10070 +# It will help us diagnose broken compilers, and finding out an intuition
10071 +# of exeext.
10072 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
10073 +$as_echo_n "checking whether the C compiler works... " >&6; }
10074 +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10075 +
10076 +# The possible output files:
10077 +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
10078 +
10079 +ac_rmfiles=
10080 +for ac_file in $ac_files
10081 +do
10082 + case $ac_file in
10083 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
10084 + * ) ac_rmfiles="$ac_rmfiles $ac_file";;
10085 + esac
10086 +done
10087 +rm -f $ac_rmfiles
10088 +
10089 +if { { ac_try="$ac_link_default"
10090 +case "(($ac_try" in
10091 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10092 + *) ac_try_echo=$ac_try;;
10093 +esac
10094 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10095 +$as_echo "$ac_try_echo"; } >&5
10096 + (eval "$ac_link_default") 2>&5
10097 + ac_status=$?
10098 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10099 + test $ac_status = 0; }; then :
10100 + # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
10101 +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
10102 +# in a Makefile. We should not override ac_cv_exeext if it was cached,
10103 +# so that the user can short-circuit this test for compilers unknown to
10104 +# Autoconf.
10105 +for ac_file in $ac_files ''
10106 +do
10107 + test -f "$ac_file" || continue
10108 + case $ac_file in
10109 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
10110 + ;;
10111 + [ab].out )
10112 + # We found the default executable, but exeext='' is most
10113 + # certainly right.
10114 + break;;
10115 + *.* )
10116 + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
10117 + then :; else
10118 + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10119 + fi
10120 + # We set ac_cv_exeext here because the later test for it is not
10121 + # safe: cross compilers may not add the suffix if given an `-o'
10122 + # argument, so we may need to know it at that point already.
10123 + # Even if this section looks crufty: it has the advantage of
10124 + # actually working.
10125 + break;;
10126 + * )
10127 + break;;
10128 + esac
10129 +done
10130 +test "$ac_cv_exeext" = no && ac_cv_exeext=
10131 +
10132 +else
10133 + ac_file=''
10134 +fi
10135 +if test -z "$ac_file"; then :
10136 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10137 +$as_echo "no" >&6; }
10138 +$as_echo "$as_me: failed program was:" >&5
10139 +sed 's/^/| /' conftest.$ac_ext >&5
10140 +
10141 +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10142 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10143 +as_fn_error 77 "C compiler cannot create executables
10144 +See \`config.log' for more details" "$LINENO" 5; }
10145 +else
10146 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10147 +$as_echo "yes" >&6; }
10148 +fi
10149 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
10150 +$as_echo_n "checking for C compiler default output file name... " >&6; }
10151 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
10152 +$as_echo "$ac_file" >&6; }
10153 +ac_exeext=$ac_cv_exeext
10154 +
10155 +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
10156 +ac_clean_files=$ac_clean_files_save
10157 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
10158 +$as_echo_n "checking for suffix of executables... " >&6; }
10159 +if { { ac_try="$ac_link"
10160 +case "(($ac_try" in
10161 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10162 + *) ac_try_echo=$ac_try;;
10163 +esac
10164 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10165 +$as_echo "$ac_try_echo"; } >&5
10166 + (eval "$ac_link") 2>&5
10167 + ac_status=$?
10168 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10169 + test $ac_status = 0; }; then :
10170 + # If both `conftest.exe' and `conftest' are `present' (well, observable)
10171 +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10172 +# work properly (i.e., refer to `conftest.exe'), while it won't with
10173 +# `rm'.
10174 +for ac_file in conftest.exe conftest conftest.*; do
10175 + test -f "$ac_file" || continue
10176 + case $ac_file in
10177 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
10178 + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10179 + break;;
10180 + * ) break;;
10181 + esac
10182 +done
10183 +else
10184 + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10185 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10186 +as_fn_error $? "cannot compute suffix of executables: cannot compile and link
10187 +See \`config.log' for more details" "$LINENO" 5; }
10188 +fi
10189 +rm -f conftest conftest$ac_cv_exeext
10190 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
10191 +$as_echo "$ac_cv_exeext" >&6; }
10192 +
10193 +rm -f conftest.$ac_ext
10194 +EXEEXT=$ac_cv_exeext
10195 +ac_exeext=$EXEEXT
10196 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10197 +/* end confdefs.h. */
10198 +#include <stdio.h>
10199 +int
10200 +main ()
10201 +{
10202 +FILE *f = fopen ("conftest.out", "w");
10203 + return ferror (f) || fclose (f) != 0;
10204 +
10205 + ;
10206 + return 0;
10207 +}
10208 +_ACEOF
10209 +ac_clean_files="$ac_clean_files conftest.out"
10210 +# Check that the compiler produces executables we can run. If not, either
10211 +# the compiler is broken, or we cross compile.
10212 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
10213 +$as_echo_n "checking whether we are cross compiling... " >&6; }
10214 +if test "$cross_compiling" != yes; then
10215 + { { ac_try="$ac_link"
10216 +case "(($ac_try" in
10217 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10218 + *) ac_try_echo=$ac_try;;
10219 +esac
10220 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10221 +$as_echo "$ac_try_echo"; } >&5
10222 + (eval "$ac_link") 2>&5
10223 + ac_status=$?
10224 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10225 + test $ac_status = 0; }
10226 + if { ac_try='./conftest$ac_cv_exeext'
10227 + { { case "(($ac_try" in
10228 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10229 + *) ac_try_echo=$ac_try;;
10230 +esac
10231 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10232 +$as_echo "$ac_try_echo"; } >&5
10233 + (eval "$ac_try") 2>&5
10234 + ac_status=$?
10235 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10236 + test $ac_status = 0; }; }; then
10237 + cross_compiling=no
10238 + else
10239 + if test "$cross_compiling" = maybe; then
10240 + cross_compiling=yes
10241 + else
10242 + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10243 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10244 +as_fn_error $? "cannot run C compiled programs.
10245 +If you meant to cross compile, use \`--host'.
10246 +See \`config.log' for more details" "$LINENO" 5; }
10247 + fi
10248 + fi
10249 +fi
10250 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
10251 +$as_echo "$cross_compiling" >&6; }
10252 +
10253 +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
10254 +ac_clean_files=$ac_clean_files_save
10255 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
10256 +$as_echo_n "checking for suffix of object files... " >&6; }
10257 +if ${ac_cv_objext+:} false; then :
10258 + $as_echo_n "(cached) " >&6
10259 +else
10260 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10261 +/* end confdefs.h. */
10262 +
10263 +int
10264 +main ()
10265 +{
10266 +
10267 + ;
10268 + return 0;
10269 +}
10270 +_ACEOF
10271 +rm -f conftest.o conftest.obj
10272 +if { { ac_try="$ac_compile"
10273 +case "(($ac_try" in
10274 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10275 + *) ac_try_echo=$ac_try;;
10276 +esac
10277 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10278 +$as_echo "$ac_try_echo"; } >&5
10279 + (eval "$ac_compile") 2>&5
10280 + ac_status=$?
10281 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10282 + test $ac_status = 0; }; then :
10283 + for ac_file in conftest.o conftest.obj conftest.*; do
10284 + test -f "$ac_file" || continue;
10285 + case $ac_file in
10286 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
10287 + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10288 + break;;
10289 + esac
10290 +done
10291 +else
10292 + $as_echo "$as_me: failed program was:" >&5
10293 +sed 's/^/| /' conftest.$ac_ext >&5
10294 +
10295 +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10296 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10297 +as_fn_error $? "cannot compute suffix of object files: cannot compile
10298 +See \`config.log' for more details" "$LINENO" 5; }
10299 +fi
10300 +rm -f conftest.$ac_cv_objext conftest.$ac_ext
10301 +fi
10302 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
10303 +$as_echo "$ac_cv_objext" >&6; }
10304 +OBJEXT=$ac_cv_objext
10305 +ac_objext=$OBJEXT
10306 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
10307 +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
10308 +if ${ac_cv_c_compiler_gnu+:} false; then :
10309 + $as_echo_n "(cached) " >&6
10310 +else
10311 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10312 +/* end confdefs.h. */
10313 +
10314 +int
10315 +main ()
10316 +{
10317 +#ifndef __GNUC__
10318 + choke me
10319 +#endif
10320 +
10321 + ;
10322 + return 0;
10323 +}
10324 +_ACEOF
10325 +if ac_fn_c_try_compile "$LINENO"; then :
10326 + ac_compiler_gnu=yes
10327 +else
10328 + ac_compiler_gnu=no
10329 +fi
10330 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10331 +ac_cv_c_compiler_gnu=$ac_compiler_gnu
10332 +
10333 +fi
10334 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
10335 +$as_echo "$ac_cv_c_compiler_gnu" >&6; }
10336 +if test $ac_compiler_gnu = yes; then
10337 + GCC=yes
10338 +else
10339 + GCC=
10340 +fi
10341 +ac_test_CFLAGS=${CFLAGS+set}
10342 +ac_save_CFLAGS=$CFLAGS
10343 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
10344 +$as_echo_n "checking whether $CC accepts -g... " >&6; }
10345 +if ${ac_cv_prog_cc_g+:} false; then :
10346 + $as_echo_n "(cached) " >&6
10347 +else
10348 + ac_save_c_werror_flag=$ac_c_werror_flag
10349 + ac_c_werror_flag=yes
10350 + ac_cv_prog_cc_g=no
10351 + CFLAGS="-g"
10352 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10353 +/* end confdefs.h. */
10354 +
10355 +int
10356 +main ()
10357 +{
10358 +
10359 + ;
10360 + return 0;
10361 +}
10362 +_ACEOF
10363 +if ac_fn_c_try_compile "$LINENO"; then :
10364 + ac_cv_prog_cc_g=yes
10365 +else
10366 + CFLAGS=""
10367 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10368 +/* end confdefs.h. */
10369 +
10370 +int
10371 +main ()
10372 +{
10373 +
10374 + ;
10375 + return 0;
10376 +}
10377 +_ACEOF
10378 +if ac_fn_c_try_compile "$LINENO"; then :
10379 +
10380 +else
10381 + ac_c_werror_flag=$ac_save_c_werror_flag
10382 + CFLAGS="-g"
10383 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10384 +/* end confdefs.h. */
10385 +
10386 +int
10387 +main ()
10388 +{
10389 +
10390 + ;
10391 + return 0;
10392 +}
10393 +_ACEOF
10394 +if ac_fn_c_try_compile "$LINENO"; then :
10395 + ac_cv_prog_cc_g=yes
10396 +fi
10397 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10398 +fi
10399 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10400 +fi
10401 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10402 + ac_c_werror_flag=$ac_save_c_werror_flag
10403 +fi
10404 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
10405 +$as_echo "$ac_cv_prog_cc_g" >&6; }
10406 +if test "$ac_test_CFLAGS" = set; then
10407 + CFLAGS=$ac_save_CFLAGS
10408 +elif test $ac_cv_prog_cc_g = yes; then
10409 + if test "$GCC" = yes; then
10410 + CFLAGS="-g -O2"
10411 + else
10412 + CFLAGS="-g"
10413 + fi
10414 +else
10415 + if test "$GCC" = yes; then
10416 + CFLAGS="-O2"
10417 + else
10418 + CFLAGS=
10419 + fi
10420 +fi
10421 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
10422 +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
10423 +if ${ac_cv_prog_cc_c89+:} false; then :
10424 + $as_echo_n "(cached) " >&6
10425 +else
10426 + ac_cv_prog_cc_c89=no
10427 +ac_save_CC=$CC
10428 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10429 +/* end confdefs.h. */
10430 +#include <stdarg.h>
10431 +#include <stdio.h>
10432 +#include <sys/types.h>
10433 +#include <sys/stat.h>
10434 +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10435 +struct buf { int x; };
10436 +FILE * (*rcsopen) (struct buf *, struct stat *, int);
10437 +static char *e (p, i)
10438 + char **p;
10439 + int i;
10440 +{
10441 + return p[i];
10442 +}
10443 +static char *f (char * (*g) (char **, int), char **p, ...)
10444 +{
10445 + char *s;
10446 + va_list v;
10447 + va_start (v,p);
10448 + s = g (p, va_arg (v,int));
10449 + va_end (v);
10450 + return s;
10451 +}
10452 +
10453 +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
10454 + function prototypes and stuff, but not '\xHH' hex character constants.
10455 + These don't provoke an error unfortunately, instead are silently treated
10456 + as 'x'. The following induces an error, until -std is added to get
10457 + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
10458 + array size at least. It's necessary to write '\x00'==0 to get something
10459 + that's true only with -std. */
10460 +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
10461 +
10462 +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
10463 + inside strings and character constants. */
10464 +#define FOO(x) 'x'
10465 +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
10466 +
10467 +int test (int i, double x);
10468 +struct s1 {int (*f) (int a);};
10469 +struct s2 {int (*f) (double a);};
10470 +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10471 +int argc;
10472 +char **argv;
10473 +int
10474 +main ()
10475 +{
10476 +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10477 + ;
10478 + return 0;
10479 +}
10480 +_ACEOF
10481 +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
10482 + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10483 +do
10484 + CC="$ac_save_CC $ac_arg"
10485 + if ac_fn_c_try_compile "$LINENO"; then :
10486 + ac_cv_prog_cc_c89=$ac_arg
10487 +fi
10488 +rm -f core conftest.err conftest.$ac_objext
10489 + test "x$ac_cv_prog_cc_c89" != "xno" && break
10490 +done
10491 +rm -f conftest.$ac_ext
10492 +CC=$ac_save_CC
10493 +
10494 +fi
10495 +# AC_CACHE_VAL
10496 +case "x$ac_cv_prog_cc_c89" in
10497 + x)
10498 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
10499 +$as_echo "none needed" >&6; } ;;
10500 + xno)
10501 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
10502 +$as_echo "unsupported" >&6; } ;;
10503 + *)
10504 + CC="$CC $ac_cv_prog_cc_c89"
10505 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
10506 +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
10507 +esac
10508 +if test "x$ac_cv_prog_cc_c89" != xno; then :
10509 +
10510 +fi
10511 +
10512 +ac_ext=c
10513 +ac_cpp='$CPP $CPPFLAGS'
10514 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10515 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10516 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
10517 +DEPDIR="${am__leading_dot}deps"
10518 +
10519 +ac_config_commands="$ac_config_commands depfiles"
10520 +
10521 +
10522 +am_make=${MAKE-make}
10523 +cat > confinc << 'END'
10524 +am__doit:
10525 + @echo this is the am__doit target
10526 +.PHONY: am__doit
10527 +END
10528 +# If we don't find an include directive, just comment out the code.
10529 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
10530 +$as_echo_n "checking for style of include used by $am_make... " >&6; }
10531 +am__include="#"
10532 +am__quote=
10533 +_am_result=none
10534 +# First try GNU make style include.
10535 +echo "include confinc" > confmf
10536 +# Ignore all kinds of additional output from `make'.
10537 +case `$am_make -s -f confmf 2> /dev/null` in #(
10538 +*the\ am__doit\ target*)
10539 + am__include=include
10540 + am__quote=
10541 + _am_result=GNU
10542 + ;;
10543 +esac
10544 +# Now try BSD make style include.
10545 +if test "$am__include" = "#"; then
10546 + echo '.include "confinc"' > confmf
10547 + case `$am_make -s -f confmf 2> /dev/null` in #(
10548 + *the\ am__doit\ target*)
10549 + am__include=.include
10550 + am__quote="\""
10551 + _am_result=BSD
10552 + ;;
10553 + esac
10554 +fi
10555 +
10556 +
10557 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
10558 +$as_echo "$_am_result" >&6; }
10559 +rm -f confinc confmf
10560 +
10561 +# Check whether --enable-dependency-tracking was given.
10562 +if test "${enable_dependency_tracking+set}" = set; then :
10563 + enableval=$enable_dependency_tracking;
10564 +fi
10565 +
10566 +if test "x$enable_dependency_tracking" != xno; then
10567 + am_depcomp="$ac_aux_dir/depcomp"
10568 + AMDEPBACKSLASH='\'
10569 +fi
10570 + if test "x$enable_dependency_tracking" != xno; then
10571 + AMDEP_TRUE=
10572 + AMDEP_FALSE='#'
10573 +else
10574 + AMDEP_TRUE='#'
10575 + AMDEP_FALSE=
10576 +fi
10577 +
10578 +
10579 +
10580 +depcc="$CC" am_compiler_list=
10581 +
10582 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10583 +$as_echo_n "checking dependency style of $depcc... " >&6; }
10584 +if ${am_cv_CC_dependencies_compiler_type+:} false; then :
10585 + $as_echo_n "(cached) " >&6
10586 +else
10587 + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10588 + # We make a subdir and do the tests there. Otherwise we can end up
10589 + # making bogus files that we don't know about and never remove. For
10590 + # instance it was reported that on HP-UX the gcc test will end up
10591 + # making a dummy file named `D' -- because `-MD' means `put the output
10592 + # in D'.
10593 + mkdir conftest.dir
10594 + # Copy depcomp to subdir because otherwise we won't find it if we're
10595 + # using a relative directory.
10596 + cp "$am_depcomp" conftest.dir
10597 + cd conftest.dir
10598 + # We will build objects and dependencies in a subdirectory because
10599 + # it helps to detect inapplicable dependency modes. For instance
10600 + # both Tru64's cc and ICC support -MD to output dependencies as a
10601 + # side effect of compilation, but ICC will put the dependencies in
10602 + # the current directory while Tru64 will put them in the object
10603 + # directory.
10604 + mkdir sub
10605 +
10606 + am_cv_CC_dependencies_compiler_type=none
10607 + if test "$am_compiler_list" = ""; then
10608 + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10609 + fi
10610 + am__universal=false
10611 + case " $depcc " in #(
10612 + *\ -arch\ *\ -arch\ *) am__universal=true ;;
10613 + esac
10614 +
10615 + for depmode in $am_compiler_list; do
10616 + # Setup a source with many dependencies, because some compilers
10617 + # like to wrap large dependency lists on column 80 (with \), and
10618 + # we should not choose a depcomp mode which is confused by this.
10619 + #
10620 + # We need to recreate these files for each test, as the compiler may
10621 + # overwrite some of them when testing with obscure command lines.
10622 + # This happens at least with the AIX C compiler.
10623 + : > sub/conftest.c
10624 + for i in 1 2 3 4 5 6; do
10625 + echo '#include "conftst'$i'.h"' >> sub/conftest.c
10626 + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10627 + # Solaris 8's {/usr,}/bin/sh.
10628 + touch sub/conftst$i.h
10629 + done
10630 + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10631 +
10632 + # We check with `-c' and `-o' for the sake of the "dashmstdout"
10633 + # mode. It turns out that the SunPro C++ compiler does not properly
10634 + # handle `-M -o', and we need to detect this. Also, some Intel
10635 + # versions had trouble with output in subdirs
10636 + am__obj=sub/conftest.${OBJEXT-o}
10637 + am__minus_obj="-o $am__obj"
10638 + case $depmode in
10639 + gcc)
10640 + # This depmode causes a compiler race in universal mode.
10641 + test "$am__universal" = false || continue
10642 + ;;
10643 + nosideeffect)
10644 + # after this tag, mechanisms are not by side-effect, so they'll
10645 + # only be used when explicitly requested
10646 + if test "x$enable_dependency_tracking" = xyes; then
10647 + continue
10648 + else
10649 + break
10650 + fi
10651 + ;;
10652 + msvisualcpp | msvcmsys)
10653 + # This compiler won't grok `-c -o', but also, the minuso test has
10654 + # not run yet. These depmodes are late enough in the game, and
10655 + # so weak that their functioning should not be impacted.
10656 + am__obj=conftest.${OBJEXT-o}
10657 + am__minus_obj=
10658 + ;;
10659 + none) break ;;
10660 + esac
10661 + if depmode=$depmode \
10662 + source=sub/conftest.c object=$am__obj \
10663 + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10664 + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10665 + >/dev/null 2>conftest.err &&
10666 + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10667 + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10668 + grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10669 + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10670 + # icc doesn't choke on unknown options, it will just issue warnings
10671 + # or remarks (even with -Werror). So we grep stderr for any message
10672 + # that says an option was ignored or not supported.
10673 + # When given -MP, icc 7.0 and 7.1 complain thusly:
10674 + # icc: Command line warning: ignoring option '-M'; no argument required
10675 + # The diagnosis changed in icc 8.0:
10676 + # icc: Command line remark: option '-MP' not supported
10677 + if (grep 'ignoring option' conftest.err ||
10678 + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10679 + am_cv_CC_dependencies_compiler_type=$depmode
10680 + break
10681 + fi
10682 + fi
10683 + done
10684 +
10685 + cd ..
10686 + rm -rf conftest.dir
10687 +else
10688 + am_cv_CC_dependencies_compiler_type=none
10689 +fi
10690 +
10691 +fi
10692 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
10693 +$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
10694 +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
10695 +
10696 + if
10697 + test "x$enable_dependency_tracking" != xno \
10698 + && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
10699 + am__fastdepCC_TRUE=
10700 + am__fastdepCC_FALSE='#'
10701 +else
10702 + am__fastdepCC_TRUE='#'
10703 + am__fastdepCC_FALSE=
10704 +fi
10705 +
10706 +
10707 +
10708 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10709 +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
10710 +set x ${MAKE-make}
10711 +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10712 +if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
10713 + $as_echo_n "(cached) " >&6
10714 +else
10715 + cat >conftest.make <<\_ACEOF
10716 +SHELL = /bin/sh
10717 +all:
10718 + @echo '@@@%%%=$(MAKE)=@@@%%%'
10719 +_ACEOF
10720 +# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
10721 +case `${MAKE-make} -f conftest.make 2>/dev/null` in
10722 + *@@@%%%=?*=@@@%%%*)
10723 + eval ac_cv_prog_make_${ac_make}_set=yes;;
10724 + *)
10725 + eval ac_cv_prog_make_${ac_make}_set=no;;
10726 +esac
10727 +rm -f conftest.make
10728 +fi
10729 +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10730 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10731 +$as_echo "yes" >&6; }
10732 + SET_MAKE=
10733 +else
10734 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10735 +$as_echo "no" >&6; }
10736 + SET_MAKE="MAKE=${MAKE-make}"
10737 +fi
10738 +
10739 +
10740 +# For autobuild.
10741 +# Make sure we can run config.sub.
10742 +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
10743 + as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
10744 +
10745 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
10746 +$as_echo_n "checking build system type... " >&6; }
10747 +if ${ac_cv_build+:} false; then :
10748 + $as_echo_n "(cached) " >&6
10749 +else
10750 + ac_build_alias=$build_alias
10751 +test "x$ac_build_alias" = x &&
10752 + ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
10753 +test "x$ac_build_alias" = x &&
10754 + as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
10755 +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
10756 + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
10757 +
10758 +fi
10759 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
10760 +$as_echo "$ac_cv_build" >&6; }
10761 +case $ac_cv_build in
10762 +*-*-*) ;;
10763 +*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
10764 +esac
10765 +build=$ac_cv_build
10766 +ac_save_IFS=$IFS; IFS='-'
10767 +set x $ac_cv_build
10768 +shift
10769 +build_cpu=$1
10770 +build_vendor=$2
10771 +shift; shift
10772 +# Remember, the first character of IFS is used to create $*,
10773 +# except with old shells:
10774 +build_os=$*
10775 +IFS=$ac_save_IFS
10776 +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
10777 +
10778 +
10779 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
10780 +$as_echo_n "checking host system type... " >&6; }
10781 +if ${ac_cv_host+:} false; then :
10782 + $as_echo_n "(cached) " >&6
10783 +else
10784 + if test "x$host_alias" = x; then
10785 + ac_cv_host=$ac_cv_build
10786 +else
10787 + ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
10788 + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
10789 +fi
10790 +
10791 +fi
10792 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
10793 +$as_echo "$ac_cv_host" >&6; }
10794 +case $ac_cv_host in
10795 +*-*-*) ;;
10796 +*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
10797 +esac
10798 +host=$ac_cv_host
10799 +ac_save_IFS=$IFS; IFS='-'
10800 +set x $ac_cv_host
10801 +shift
10802 +host_cpu=$1
10803 +host_vendor=$2
10804 +shift; shift
10805 +# Remember, the first character of IFS is used to create $*,
10806 +# except with old shells:
10807 +host_os=$*
10808 +IFS=$ac_save_IFS
10809 +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
10810 +
10811 +
10812 +
10813 +
10814 +if test -n "$ac_tool_prefix"; then
10815 + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10816 +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10817 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10818 +$as_echo_n "checking for $ac_word... " >&6; }
10819 +if ${ac_cv_prog_RANLIB+:} false; then :
10820 + $as_echo_n "(cached) " >&6
10821 +else
10822 + if test -n "$RANLIB"; then
10823 + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10824 +else
10825 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10826 +for as_dir in $PATH
10827 +do
10828 + IFS=$as_save_IFS
10829 + test -z "$as_dir" && as_dir=.
10830 + for ac_exec_ext in '' $ac_executable_extensions; do
10831 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10832 + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10833 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10834 + break 2
10835 + fi
10836 +done
10837 + done
10838 +IFS=$as_save_IFS
10839 +
10840 +fi
10841 +fi
10842 +RANLIB=$ac_cv_prog_RANLIB
10843 +if test -n "$RANLIB"; then
10844 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10845 +$as_echo "$RANLIB" >&6; }
10846 +else
10847 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10848 +$as_echo "no" >&6; }
10849 +fi
10850 +
10851 +
10852 +fi
10853 +if test -z "$ac_cv_prog_RANLIB"; then
10854 + ac_ct_RANLIB=$RANLIB
10855 + # Extract the first word of "ranlib", so it can be a program name with args.
10856 +set dummy ranlib; ac_word=$2
10857 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10858 +$as_echo_n "checking for $ac_word... " >&6; }
10859 +if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
10860 + $as_echo_n "(cached) " >&6
10861 +else
10862 + if test -n "$ac_ct_RANLIB"; then
10863 + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10864 +else
10865 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10866 +for as_dir in $PATH
10867 +do
10868 + IFS=$as_save_IFS
10869 + test -z "$as_dir" && as_dir=.
10870 + for ac_exec_ext in '' $ac_executable_extensions; do
10871 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10872 + ac_cv_prog_ac_ct_RANLIB="ranlib"
10873 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10874 + break 2
10875 + fi
10876 +done
10877 + done
10878 +IFS=$as_save_IFS
10879 +
10880 +fi
10881 +fi
10882 +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10883 +if test -n "$ac_ct_RANLIB"; then
10884 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10885 +$as_echo "$ac_ct_RANLIB" >&6; }
10886 +else
10887 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10888 +$as_echo "no" >&6; }
10889 +fi
10890 +
10891 + if test "x$ac_ct_RANLIB" = x; then
10892 + RANLIB=":"
10893 + else
10894 + case $cross_compiling:$ac_tool_warned in
10895 +yes:)
10896 +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10897 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10898 +ac_tool_warned=yes ;;
10899 +esac
10900 + RANLIB=$ac_ct_RANLIB
10901 + fi
10902 +else
10903 + RANLIB="$ac_cv_prog_RANLIB"
10904 +fi
10905 +
10906 +
10907 +
10908 +ac_ext=c
10909 +ac_cpp='$CPP $CPPFLAGS'
10910 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10911 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10912 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
10913 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
10914 +$as_echo_n "checking how to run the C preprocessor... " >&6; }
10915 +# On Suns, sometimes $CPP names a directory.
10916 +if test -n "$CPP" && test -d "$CPP"; then
10917 + CPP=
10918 +fi
10919 +if test -z "$CPP"; then
10920 + if ${ac_cv_prog_CPP+:} false; then :
10921 + $as_echo_n "(cached) " >&6
10922 +else
10923 + # Double quotes because CPP needs to be expanded
10924 + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10925 + do
10926 + ac_preproc_ok=false
10927 +for ac_c_preproc_warn_flag in '' yes
10928 +do
10929 + # Use a header file that comes with gcc, so configuring glibc
10930 + # with a fresh cross-compiler works.
10931 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10932 + # <limits.h> exists even on freestanding compilers.
10933 + # On the NeXT, cc -E runs the code through the compiler's parser,
10934 + # not just through cpp. "Syntax error" is here to catch this case.
10935 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10936 +/* end confdefs.h. */
10937 +#ifdef __STDC__
10938 +# include <limits.h>
10939 +#else
10940 +# include <assert.h>
10941 +#endif
10942 + Syntax error
10943 +_ACEOF
10944 +if ac_fn_c_try_cpp "$LINENO"; then :
10945 +
10946 +else
10947 + # Broken: fails on valid input.
10948 +continue
10949 +fi
10950 +rm -f conftest.err conftest.i conftest.$ac_ext
10951 +
10952 + # OK, works on sane cases. Now check whether nonexistent headers
10953 + # can be detected and how.
10954 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10955 +/* end confdefs.h. */
10956 +#include <ac_nonexistent.h>
10957 +_ACEOF
10958 +if ac_fn_c_try_cpp "$LINENO"; then :
10959 + # Broken: success on invalid input.
10960 +continue
10961 +else
10962 + # Passes both tests.
10963 +ac_preproc_ok=:
10964 +break
10965 +fi
10966 +rm -f conftest.err conftest.i conftest.$ac_ext
10967 +
10968 +done
10969 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10970 +rm -f conftest.i conftest.err conftest.$ac_ext
10971 +if $ac_preproc_ok; then :
10972 + break
10973 +fi
10974 +
10975 + done
10976 + ac_cv_prog_CPP=$CPP
10977 +
10978 +fi
10979 + CPP=$ac_cv_prog_CPP
10980 +else
10981 + ac_cv_prog_CPP=$CPP
10982 +fi
10983 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
10984 +$as_echo "$CPP" >&6; }
10985 +ac_preproc_ok=false
10986 +for ac_c_preproc_warn_flag in '' yes
10987 +do
10988 + # Use a header file that comes with gcc, so configuring glibc
10989 + # with a fresh cross-compiler works.
10990 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10991 + # <limits.h> exists even on freestanding compilers.
10992 + # On the NeXT, cc -E runs the code through the compiler's parser,
10993 + # not just through cpp. "Syntax error" is here to catch this case.
10994 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10995 +/* end confdefs.h. */
10996 +#ifdef __STDC__
10997 +# include <limits.h>
10998 +#else
10999 +# include <assert.h>
11000 +#endif
11001 + Syntax error
11002 +_ACEOF
11003 +if ac_fn_c_try_cpp "$LINENO"; then :
11004 +
11005 +else
11006 + # Broken: fails on valid input.
11007 +continue
11008 +fi
11009 +rm -f conftest.err conftest.i conftest.$ac_ext
11010 +
11011 + # OK, works on sane cases. Now check whether nonexistent headers
11012 + # can be detected and how.
11013 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11014 +/* end confdefs.h. */
11015 +#include <ac_nonexistent.h>
11016 +_ACEOF
11017 +if ac_fn_c_try_cpp "$LINENO"; then :
11018 + # Broken: success on invalid input.
11019 +continue
11020 +else
11021 + # Passes both tests.
11022 +ac_preproc_ok=:
11023 +break
11024 +fi
11025 +rm -f conftest.err conftest.i conftest.$ac_ext
11026 +
11027 +done
11028 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11029 +rm -f conftest.i conftest.err conftest.$ac_ext
11030 +if $ac_preproc_ok; then :
11031 +
11032 +else
11033 + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11034 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11035 +as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
11036 +See \`config.log' for more details" "$LINENO" 5; }
11037 +fi
11038 +
11039 +ac_ext=c
11040 +ac_cpp='$CPP $CPPFLAGS'
11041 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11042 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11043 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
11044 +
11045 +
11046 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11047 +$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
11048 +if ${ac_cv_path_GREP+:} false; then :
11049 + $as_echo_n "(cached) " >&6
11050 +else
11051 + if test -z "$GREP"; then
11052 + ac_path_GREP_found=false
11053 + # Loop through the user's path and test for each of PROGNAME-LIST
11054 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11055 +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11056 +do
11057 + IFS=$as_save_IFS
11058 + test -z "$as_dir" && as_dir=.
11059 + for ac_prog in grep ggrep; do
11060 + for ac_exec_ext in '' $ac_executable_extensions; do
11061 + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
11062 + { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
11063 +# Check for GNU ac_path_GREP and select it if it is found.
11064 + # Check for GNU $ac_path_GREP
11065 +case `"$ac_path_GREP" --version 2>&1` in
11066 +*GNU*)
11067 + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11068 +*)
11069 + ac_count=0
11070 + $as_echo_n 0123456789 >"conftest.in"
11071 + while :
11072 + do
11073 + cat "conftest.in" "conftest.in" >"conftest.tmp"
11074 + mv "conftest.tmp" "conftest.in"
11075 + cp "conftest.in" "conftest.nl"
11076 + $as_echo 'GREP' >> "conftest.nl"
11077 + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11078 + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11079 + as_fn_arith $ac_count + 1 && ac_count=$as_val
11080 + if test $ac_count -gt ${ac_path_GREP_max-0}; then
11081 + # Best one so far, save it but keep looking for a better one
11082 + ac_cv_path_GREP="$ac_path_GREP"
11083 + ac_path_GREP_max=$ac_count
11084 + fi
11085 + # 10*(2^10) chars as input seems more than enough
11086 + test $ac_count -gt 10 && break
11087 + done
11088 + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11089 +esac
11090 +
11091 + $ac_path_GREP_found && break 3
11092 + done
11093 + done
11094 + done
11095 +IFS=$as_save_IFS
11096 + if test -z "$ac_cv_path_GREP"; then
11097 + as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11098 + fi
11099 +else
11100 + ac_cv_path_GREP=$GREP
11101 +fi
11102 +
11103 +fi
11104 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11105 +$as_echo "$ac_cv_path_GREP" >&6; }
11106 + GREP="$ac_cv_path_GREP"
11107 +
11108 +
11109 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11110 +$as_echo_n "checking for egrep... " >&6; }
11111 +if ${ac_cv_path_EGREP+:} false; then :
11112 + $as_echo_n "(cached) " >&6
11113 +else
11114 + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11115 + then ac_cv_path_EGREP="$GREP -E"
11116 + else
11117 + if test -z "$EGREP"; then
11118 + ac_path_EGREP_found=false
11119 + # Loop through the user's path and test for each of PROGNAME-LIST
11120 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11121 +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11122 +do
11123 + IFS=$as_save_IFS
11124 + test -z "$as_dir" && as_dir=.
11125 + for ac_prog in egrep; do
11126 + for ac_exec_ext in '' $ac_executable_extensions; do
11127 + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11128 + { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
11129 +# Check for GNU ac_path_EGREP and select it if it is found.
11130 + # Check for GNU $ac_path_EGREP
11131 +case `"$ac_path_EGREP" --version 2>&1` in
11132 +*GNU*)
11133 + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11134 +*)
11135 + ac_count=0
11136 + $as_echo_n 0123456789 >"conftest.in"
11137 + while :
11138 + do
11139 + cat "conftest.in" "conftest.in" >"conftest.tmp"
11140 + mv "conftest.tmp" "conftest.in"
11141 + cp "conftest.in" "conftest.nl"
11142 + $as_echo 'EGREP' >> "conftest.nl"
11143 + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11144 + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11145 + as_fn_arith $ac_count + 1 && ac_count=$as_val
11146 + if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11147 + # Best one so far, save it but keep looking for a better one
11148 + ac_cv_path_EGREP="$ac_path_EGREP"
11149 + ac_path_EGREP_max=$ac_count
11150 + fi
11151 + # 10*(2^10) chars as input seems more than enough
11152 + test $ac_count -gt 10 && break
11153 + done
11154 + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11155 +esac
11156 +
11157 + $ac_path_EGREP_found && break 3
11158 + done
11159 + done
11160 + done
11161 +IFS=$as_save_IFS
11162 + if test -z "$ac_cv_path_EGREP"; then
11163 + as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11164 + fi
11165 +else
11166 + ac_cv_path_EGREP=$EGREP
11167 +fi
11168 +
11169 + fi
11170 +fi
11171 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11172 +$as_echo "$ac_cv_path_EGREP" >&6; }
11173 + EGREP="$ac_cv_path_EGREP"
11174 +
11175 +
11176 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11177 +$as_echo_n "checking for ANSI C header files... " >&6; }
11178 +if ${ac_cv_header_stdc+:} false; then :
11179 + $as_echo_n "(cached) " >&6
11180 +else
11181 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11182 +/* end confdefs.h. */
11183 +#include <stdlib.h>
11184 +#include <stdarg.h>
11185 +#include <string.h>
11186 +#include <float.h>
11187 +
11188 +int
11189 +main ()
11190 +{
11191 +
11192 + ;
11193 + return 0;
11194 +}
11195 +_ACEOF
11196 +if ac_fn_c_try_compile "$LINENO"; then :
11197 + ac_cv_header_stdc=yes
11198 +else
11199 + ac_cv_header_stdc=no
11200 +fi
11201 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11202 +
11203 +if test $ac_cv_header_stdc = yes; then
11204 + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11205 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11206 +/* end confdefs.h. */
11207 +#include <string.h>
11208 +
11209 +_ACEOF
11210 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11211 + $EGREP "memchr" >/dev/null 2>&1; then :
11212 +
11213 +else
11214 + ac_cv_header_stdc=no
11215 +fi
11216 +rm -f conftest*
11217 +
11218 +fi
11219 +
11220 +if test $ac_cv_header_stdc = yes; then
11221 + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11222 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11223 +/* end confdefs.h. */
11224 +#include <stdlib.h>
11225 +
11226 +_ACEOF
11227 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11228 + $EGREP "free" >/dev/null 2>&1; then :
11229 +
11230 +else
11231 + ac_cv_header_stdc=no
11232 +fi
11233 +rm -f conftest*
11234 +
11235 +fi
11236 +
11237 +if test $ac_cv_header_stdc = yes; then
11238 + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11239 + if test "$cross_compiling" = yes; then :
11240 + :
11241 +else
11242 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11243 +/* end confdefs.h. */
11244 +#include <ctype.h>
11245 +#include <stdlib.h>
11246 +#if ((' ' & 0x0FF) == 0x020)
11247 +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11248 +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11249 +#else
11250 +# define ISLOWER(c) \
11251 + (('a' <= (c) && (c) <= 'i') \
11252 + || ('j' <= (c) && (c) <= 'r') \
11253 + || ('s' <= (c) && (c) <= 'z'))
11254 +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11255 +#endif
11256 +
11257 +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11258 +int
11259 +main ()
11260 +{
11261 + int i;
11262 + for (i = 0; i < 256; i++)
11263 + if (XOR (islower (i), ISLOWER (i))
11264 + || toupper (i) != TOUPPER (i))
11265 + return 2;
11266 + return 0;
11267 +}
11268 +_ACEOF
11269 +if ac_fn_c_try_run "$LINENO"; then :
11270 +
11271 +else
11272 + ac_cv_header_stdc=no
11273 +fi
11274 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11275 + conftest.$ac_objext conftest.beam conftest.$ac_ext
11276 +fi
11277 +
11278 +fi
11279 +fi
11280 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11281 +$as_echo "$ac_cv_header_stdc" >&6; }
11282 +if test $ac_cv_header_stdc = yes; then
11283 +
11284 +$as_echo "#define STDC_HEADERS 1" >>confdefs.h
11285 +
11286 +fi
11287 +
11288 +# On IRIX 5.3, sys/types and inttypes.h are conflicting.
11289 +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
11290 + inttypes.h stdint.h unistd.h
11291 +do :
11292 + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11293 +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
11294 +"
11295 +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11296 + cat >>confdefs.h <<_ACEOF
11297 +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11298 +_ACEOF
11299 +
11300 +fi
11301 +
11302 +done
11303 +
11304 +
11305 +
11306 +
11307 +
11308 + ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
11309 +if test "x$ac_cv_header_minix_config_h" = xyes; then :
11310 + MINIX=yes
11311 +else
11312 + MINIX=
11313 +fi
11314 +
11315 +
11316 + if test "$MINIX" = yes; then
11317 +
11318 +$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
11319 +
11320 +
11321 +$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
11322 +
11323 +
11324 +$as_echo "#define _MINIX 1" >>confdefs.h
11325 +
11326 + fi
11327 +
11328 + case "$host_os" in
11329 + hpux*)
11330 +
11331 +$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
11332 +
11333 + ;;
11334 + esac
11335 +
11336 +
11337 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
11338 +$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
11339 +if ${ac_cv_safe_to_define___extensions__+:} false; then :
11340 + $as_echo_n "(cached) " >&6
11341 +else
11342 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11343 +/* end confdefs.h. */
11344 +
11345 +# define __EXTENSIONS__ 1
11346 + $ac_includes_default
11347 +int
11348 +main ()
11349 +{
11350 +
11351 + ;
11352 + return 0;
11353 +}
11354 +_ACEOF
11355 +if ac_fn_c_try_compile "$LINENO"; then :
11356 + ac_cv_safe_to_define___extensions__=yes
11357 +else
11358 + ac_cv_safe_to_define___extensions__=no
11359 +fi
11360 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11361 +fi
11362 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
11363 +$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
11364 + test $ac_cv_safe_to_define___extensions__ = yes &&
11365 + $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
11366 +
11367 + $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
11368 +
11369 + $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
11370 +
11371 + $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
11372 +
11373 + $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
11374 +
11375 +
11376 +
11377 +
11378 +
11379 +
11380 +
11381 +
11382 + if false; then
11383 + GL_COND_LIBTOOL_TRUE=
11384 + GL_COND_LIBTOOL_FALSE='#'
11385 +else
11386 + GL_COND_LIBTOOL_TRUE='#'
11387 + GL_COND_LIBTOOL_FALSE=
11388 +fi
11389 +
11390 +gl_cond_libtool=false
11391 +gl_libdeps=
11392 +gl_ltlibdeps=
11393 +
11394 +
11395 +# Like AC_LIBOBJ, except that the module name goes
11396 +# into gl_LIBOBJS instead of into LIBOBJS.
11397 +
11398 +
11399 +# Like AC_REPLACE_FUNCS, except that the module name goes
11400 +# into gl_LIBOBJS instead of into LIBOBJS.
11401 +
11402 +
11403 +# Like AC_LIBSOURCES, except the directory where the source file is
11404 +# expected is derived from the gnulib-tool parameterization,
11405 +# and alloca is special cased (for the alloca-opt module).
11406 +# We could also entirely rely on EXTRA_lib..._SOURCES.
11407 +
11408 +
11409 +
11410 +
11411 +
11412 +
11413 +
11414 +
11415 + if test -z "$GETOPT_H"; then
11416 + for ac_header in getopt.h
11417 +do :
11418 + ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
11419 +if test "x$ac_cv_header_getopt_h" = xyes; then :
11420 + cat >>confdefs.h <<_ACEOF
11421 +#define HAVE_GETOPT_H 1
11422 +_ACEOF
11423 +
11424 +else
11425 + GETOPT_H=getopt.h
11426 +fi
11427 +
11428 +done
11429 +
11430 + fi
11431 +
11432 + if test -z "$GETOPT_H"; then
11433 + for ac_func in getopt_long_only
11434 +do :
11435 + ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
11436 +if test "x$ac_cv_func_getopt_long_only" = xyes; then :
11437 + cat >>confdefs.h <<_ACEOF
11438 +#define HAVE_GETOPT_LONG_ONLY 1
11439 +_ACEOF
11440 +
11441 +else
11442 + GETOPT_H=getopt.h
11443 +fi
11444 +done
11445 +
11446 + fi
11447 +
11448 + if test -z "$GETOPT_H"; then
11449 + ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
11450 +"
11451 +if test "x$ac_cv_have_decl_optreset" = xyes; then :
11452 + GETOPT_H=getopt.h
11453 +fi
11454 +
11455 + fi
11456 +
11457 + if test -z "$GETOPT_H"; then
11458 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
11459 +$as_echo_n "checking for working GNU getopt function... " >&6; }
11460 +if ${gl_cv_func_gnu_getopt+:} false; then :
11461 + $as_echo_n "(cached) " >&6
11462 +else
11463 + if test "$cross_compiling" = yes; then :
11464 + ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
11465 +"
11466 +if test "x$ac_cv_have_decl_getopt_clip" = xyes; then :
11467 + gl_cv_func_gnu_getopt=no
11468 +else
11469 + gl_cv_func_gnu_getopt=yes
11470 +fi
11471 +
11472 +else
11473 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11474 +/* end confdefs.h. */
11475 +#include <getopt.h>
11476 +int
11477 +main ()
11478 +{
11479 +
11480 + char *myargv[3];
11481 + myargv[0] = "conftest";
11482 + myargv[1] = "-+";
11483 + myargv[2] = 0;
11484 + return getopt (2, myargv, "+a") != '?';
11485 +
11486 + ;
11487 + return 0;
11488 +}
11489 +_ACEOF
11490 +if ac_fn_c_try_run "$LINENO"; then :
11491 + gl_cv_func_gnu_getopt=yes
11492 +else
11493 + gl_cv_func_gnu_getopt=no
11494 +fi
11495 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11496 + conftest.$ac_objext conftest.beam conftest.$ac_ext
11497 +fi
11498 +
11499 +fi
11500 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gnu_getopt" >&5
11501 +$as_echo "$gl_cv_func_gnu_getopt" >&6; }
11502 + if test "$gl_cv_func_gnu_getopt" = "no"; then
11503 + GETOPT_H=getopt.h
11504 + fi
11505 + fi
11506 +
11507 +
11508 + ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
11509 +if test "x$ac_cv_have_decl_getenv" = xyes; then :
11510 + ac_have_decl=1
11511 +else
11512 + ac_have_decl=0
11513 +fi
11514 +
11515 +cat >>confdefs.h <<_ACEOF
11516 +#define HAVE_DECL_GETENV $ac_have_decl
11517 +_ACEOF
11518 +
11519 +
11520 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
11521 +$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
11522 +if ${ac_cv_c_restrict+:} false; then :
11523 + $as_echo_n "(cached) " >&6
11524 +else
11525 + ac_cv_c_restrict=no
11526 + # The order here caters to the fact that C++ does not require restrict.
11527 + for ac_kw in __restrict __restrict__ _Restrict restrict; do
11528 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11529 +/* end confdefs.h. */
11530 +typedef int * int_ptr;
11531 + int foo (int_ptr $ac_kw ip) {
11532 + return ip[0];
11533 + }
11534 +int
11535 +main ()
11536 +{
11537 +int s[1];
11538 + int * $ac_kw t = s;
11539 + t[0] = 0;
11540 + return foo(t)
11541 + ;
11542 + return 0;
11543 +}
11544 +_ACEOF
11545 +if ac_fn_c_try_compile "$LINENO"; then :
11546 + ac_cv_c_restrict=$ac_kw
11547 +fi
11548 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11549 + test "$ac_cv_c_restrict" != no && break
11550 + done
11551 +
11552 +fi
11553 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
11554 +$as_echo "$ac_cv_c_restrict" >&6; }
11555 +
11556 + case $ac_cv_c_restrict in
11557 + restrict) ;;
11558 + no) $as_echo "#define restrict /**/" >>confdefs.h
11559 + ;;
11560 + *) cat >>confdefs.h <<_ACEOF
11561 +#define restrict $ac_cv_c_restrict
11562 +_ACEOF
11563 + ;;
11564 + esac
11565 +
11566 +
11567 + GNULIB_MEMMEM=0;
11568 + GNULIB_MEMPCPY=0;
11569 + GNULIB_MEMRCHR=0;
11570 + GNULIB_RAWMEMCHR=0;
11571 + GNULIB_STPCPY=0;
11572 + GNULIB_STPNCPY=0;
11573 + GNULIB_STRCHRNUL=0;
11574 + GNULIB_STRDUP=0;
11575 + GNULIB_STRNDUP=0;
11576 + GNULIB_STRNLEN=0;
11577 + GNULIB_STRPBRK=0;
11578 + GNULIB_STRSEP=0;
11579 + GNULIB_STRSTR=0;
11580 + GNULIB_STRCASESTR=0;
11581 + GNULIB_STRTOK_R=0;
11582 + GNULIB_MBSLEN=0;
11583 + GNULIB_MBSNLEN=0;
11584 + GNULIB_MBSCHR=0;
11585 + GNULIB_MBSRCHR=0;
11586 + GNULIB_MBSSTR=0;
11587 + GNULIB_MBSCASECMP=0;
11588 + GNULIB_MBSNCASECMP=0;
11589 + GNULIB_MBSPCASECMP=0;
11590 + GNULIB_MBSCASESTR=0;
11591 + GNULIB_MBSCSPN=0;
11592 + GNULIB_MBSPBRK=0;
11593 + GNULIB_MBSSPN=0;
11594 + GNULIB_MBSSEP=0;
11595 + GNULIB_MBSTOK_R=0;
11596 + GNULIB_STRERROR=0;
11597 + GNULIB_STRSIGNAL=0;
11598 + GNULIB_STRVERSCMP=0;
11599 + HAVE_DECL_MEMMEM=1;
11600 + HAVE_MEMPCPY=1;
11601 + HAVE_DECL_MEMRCHR=1;
11602 + HAVE_RAWMEMCHR=1;
11603 + HAVE_STPCPY=1;
11604 + HAVE_STPNCPY=1;
11605 + HAVE_STRCHRNUL=1;
11606 + HAVE_DECL_STRDUP=1;
11607 + HAVE_STRNDUP=1;
11608 + HAVE_DECL_STRNDUP=1;
11609 + HAVE_DECL_STRNLEN=1;
11610 + HAVE_STRPBRK=1;
11611 + HAVE_STRSEP=1;
11612 + HAVE_STRCASESTR=1;
11613 + HAVE_DECL_STRTOK_R=1;
11614 + HAVE_DECL_STRERROR=1;
11615 + HAVE_DECL_STRSIGNAL=1;
11616 + HAVE_STRVERSCMP=1;
11617 + REPLACE_MEMMEM=0;
11618 + REPLACE_STRDUP=0;
11619 + REPLACE_STRSTR=0;
11620 + REPLACE_STRCASESTR=0;
11621 + REPLACE_STRERROR=0;
11622 + REPLACE_STRSIGNAL=0;
11623 +
11624 +
11625 +
11626 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
11627 +$as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
11628 +if ${gl_cv_have_include_next+:} false; then :
11629 + $as_echo_n "(cached) " >&6
11630 +else
11631 + rm -rf conftestd1a conftestd1b conftestd2
11632 + mkdir conftestd1a conftestd1b conftestd2
11633 + cat <<EOF > conftestd1a/conftest.h
11634 +#define DEFINED_IN_CONFTESTD1
11635 +#include_next <conftest.h>
11636 +#ifdef DEFINED_IN_CONFTESTD2
11637 +int foo;
11638 +#else
11639 +#error "include_next doesn't work"
11640 +#endif
11641 +EOF
11642 + cat <<EOF > conftestd1b/conftest.h
11643 +#define DEFINED_IN_CONFTESTD1
11644 +#include <stdio.h>
11645 +#include_next <conftest.h>
11646 +#ifdef DEFINED_IN_CONFTESTD2
11647 +int foo;
11648 +#else
11649 +#error "include_next doesn't work"
11650 +#endif
11651 +EOF
11652 + cat <<EOF > conftestd2/conftest.h
11653 +#ifndef DEFINED_IN_CONFTESTD1
11654 +#error "include_next test doesn't work"
11655 +#endif
11656 +#define DEFINED_IN_CONFTESTD2
11657 +EOF
11658 + gl_save_CPPFLAGS="$CPPFLAGS"
11659 + CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
11660 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11661 +/* end confdefs.h. */
11662 +#include <conftest.h>
11663 +_ACEOF
11664 +if ac_fn_c_try_compile "$LINENO"; then :
11665 + gl_cv_have_include_next=yes
11666 +else
11667 + CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
11668 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11669 +/* end confdefs.h. */
11670 +#include <conftest.h>
11671 +_ACEOF
11672 +if ac_fn_c_try_compile "$LINENO"; then :
11673 + gl_cv_have_include_next=buggy
11674 +else
11675 + gl_cv_have_include_next=no
11676 +fi
11677 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11678 +
11679 +fi
11680 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11681 + CPPFLAGS="$gl_save_CPPFLAGS"
11682 + rm -rf conftestd1a conftestd1b conftestd2
11683 +
11684 +fi
11685 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
11686 +$as_echo "$gl_cv_have_include_next" >&6; }
11687 + PRAGMA_SYSTEM_HEADER=
11688 + if test $gl_cv_have_include_next = yes; then
11689 + INCLUDE_NEXT=include_next
11690 + INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
11691 + if test -n "$GCC"; then
11692 + PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
11693 + fi
11694 + else
11695 + if test $gl_cv_have_include_next = buggy; then
11696 + INCLUDE_NEXT=include
11697 + INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
11698 + else
11699 + INCLUDE_NEXT=include
11700 + INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
11701 + fi
11702 + fi
11703 +
11704 +
11705 +
11706 +
11707 +
11708 +
11709 +
11710 +
11711 + for ac_header in $gl_header_list
11712 +do :
11713 + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11714 +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11715 +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11716 + cat >>confdefs.h <<_ACEOF
11717 +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11718 +_ACEOF
11719 +
11720 +fi
11721 +
11722 +done
11723 +
11724 +
11725 +
11726 +
11727 +
11728 +
11729 +
11730 +
11731 +
11732 +
11733 +
11734 +
11735 + :
11736 +
11737 +
11738 +
11739 +
11740 +
11741 +
11742 +
11743 + if test $gl_cv_have_include_next = yes; then
11744 + gl_cv_next_string_h='<'string.h'>'
11745 + else
11746 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
11747 +$as_echo_n "checking absolute name of <string.h>... " >&6; }
11748 +if ${gl_cv_next_string_h+:} false; then :
11749 + $as_echo_n "(cached) " >&6
11750 +else
11751 +
11752 + if test $ac_cv_header_string_h = yes; then
11753 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11754 +/* end confdefs.h. */
11755 +#include <string.h>
11756 +
11757 +_ACEOF
11758 + case "$host_os" in
11759 + aix*) gl_absname_cpp="$ac_cpp -C" ;;
11760 + *) gl_absname_cpp="$ac_cpp" ;;
11761 + esac
11762 + gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11763 + sed -n '\#/string.h#{
11764 + s#.*"\(.*/string.h\)".*#\1#
11765 + s#^/[^/]#//&#
11766 + p
11767 + q
11768 + }'`'"'
11769 + else
11770 + gl_cv_next_string_h='<'string.h'>'
11771 + fi
11772 +
11773 +fi
11774 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
11775 +$as_echo "$gl_cv_next_string_h" >&6; }
11776 + fi
11777 + NEXT_STRING_H=$gl_cv_next_string_h
11778 +
11779 +
11780 +
11781 +
11782 +
11783 + ac_fn_c_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default"
11784 +if test "x$ac_cv_have_decl_strndup" = xyes; then :
11785 + ac_have_decl=1
11786 +else
11787 + ac_have_decl=0
11788 +fi
11789 +
11790 +cat >>confdefs.h <<_ACEOF
11791 +#define HAVE_DECL_STRNDUP $ac_have_decl
11792 +_ACEOF
11793 +
11794 +
11795 +
11796 + ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
11797 +if test "x$ac_cv_have_decl_strnlen" = xyes; then :
11798 + ac_have_decl=1
11799 +else
11800 + ac_have_decl=0
11801 +fi
11802 +
11803 +cat >>confdefs.h <<_ACEOF
11804 +#define HAVE_DECL_STRNLEN $ac_have_decl
11805 +_ACEOF
11806 +
11807 +
11808 +
11809 + GNULIB_CHOWN=0;
11810 + GNULIB_CLOSE=0;
11811 + GNULIB_DUP2=0;
11812 + GNULIB_ENVIRON=0;
11813 + GNULIB_EUIDACCESS=0;
11814 + GNULIB_FCHDIR=0;
11815 + GNULIB_FSYNC=0;
11816 + GNULIB_FTRUNCATE=0;
11817 + GNULIB_GETCWD=0;
11818 + GNULIB_GETDOMAINNAME=0;
11819 + GNULIB_GETDTABLESIZE=0;
11820 + GNULIB_GETHOSTNAME=0;
11821 + GNULIB_GETLOGIN_R=0;
11822 + GNULIB_GETPAGESIZE=0;
11823 + GNULIB_GETUSERSHELL=0;
11824 + GNULIB_LCHOWN=0;
11825 + GNULIB_LINK=0;
11826 + GNULIB_LSEEK=0;
11827 + GNULIB_READLINK=0;
11828 + GNULIB_SLEEP=0;
11829 + GNULIB_UNISTD_H_SIGPIPE=0;
11830 + GNULIB_WRITE=0;
11831 + HAVE_DUP2=1;
11832 + HAVE_EUIDACCESS=1;
11833 + HAVE_FSYNC=1;
11834 + HAVE_FTRUNCATE=1;
11835 + HAVE_GETDOMAINNAME=1;
11836 + HAVE_GETDTABLESIZE=1;
11837 + HAVE_GETHOSTNAME=1;
11838 + HAVE_GETPAGESIZE=1;
11839 + HAVE_GETUSERSHELL=1;
11840 + HAVE_LINK=1;
11841 + HAVE_READLINK=1;
11842 + HAVE_SLEEP=1;
11843 + HAVE_DECL_ENVIRON=1;
11844 + HAVE_DECL_GETLOGIN_R=1;
11845 + HAVE_OS_H=0;
11846 + HAVE_SYS_PARAM_H=0;
11847 + REPLACE_CHOWN=0;
11848 + REPLACE_CLOSE=0;
11849 + REPLACE_FCHDIR=0;
11850 + REPLACE_GETCWD=0;
11851 + REPLACE_GETPAGESIZE=0;
11852 + REPLACE_LCHOWN=0;
11853 + REPLACE_LSEEK=0;
11854 + REPLACE_WRITE=0;
11855 + UNISTD_H_HAVE_WINSOCK2_H=0;
11856 +
11857 +
11858 +
11859 +
11860 +
11861 +
11862 +
11863 +
11864 +
11865 +
11866 +
11867 +
11868 +
11869 +
11870 +
11871 +
11872 +gl_source_base='gllib'
11873 +
11874 +
11875 +
11876 + if test -n "$GETOPT_H"; then :
11877 +
11878 +
11879 +
11880 +
11881 +
11882 +
11883 +
11884 +
11885 +
11886 + gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
11887 +
11888 +
11889 +
11890 +
11891 +
11892 +
11893 +
11894 +
11895 +
11896 + gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
11897 +
11898 +
11899 + GETOPT_H=getopt.h
11900 +
11901 +$as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
11902 +
11903 +
11904 +
11905 +
11906 +
11907 + :
11908 +
11909 +
11910 +
11911 +
11912 +
11913 +
11914 +
11915 +fi
11916 +
11917 +
11918 +
11919 +
11920 +
11921 +
11922 +
11923 +
11924 +
11925 +
11926 +
11927 +
11928 +
11929 +
11930 +
11931 +
11932 + :
11933 +
11934 +
11935 +
11936 +
11937 +
11938 + if test $ac_cv_have_decl_strndup = no; then
11939 + HAVE_DECL_STRNDUP=0
11940 + fi
11941 +
11942 + # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
11943 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strndup" >&5
11944 +$as_echo_n "checking for working strndup... " >&6; }
11945 +if ${gl_cv_func_strndup+:} false; then :
11946 + $as_echo_n "(cached) " >&6
11947 +else
11948 + if test "$cross_compiling" = yes; then :
11949 + ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
11950 +if test "x$ac_cv_func_strndup" = xyes; then :
11951 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11952 +/* end confdefs.h. */
11953 +
11954 +#ifdef _AIX
11955 + too risky
11956 +#endif
11957 +
11958 +_ACEOF
11959 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11960 + $EGREP "too risky" >/dev/null 2>&1; then :
11961 + gl_cv_func_strndup=no
11962 +else
11963 + gl_cv_func_strndup=yes
11964 +fi
11965 +rm -f conftest*
11966 +
11967 +else
11968 + gl_cv_func_strndup=no
11969 +fi
11970 +
11971 +else
11972 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11973 +/* end confdefs.h. */
11974 +
11975 + #include <string.h>
11976 + #include <stdlib.h>
11977 +int
11978 +main ()
11979 +{
11980 +
11981 +#ifndef HAVE_DECL_STRNDUP
11982 + extern char *strndup (const char *, size_t);
11983 +#endif
11984 + char *s;
11985 + s = strndup ("some longer string", 15);
11986 + free (s);
11987 + s = strndup ("shorter string", 13);
11988 + return s[13] != '\0';
11989 + ;
11990 + return 0;
11991 +}
11992 +_ACEOF
11993 +if ac_fn_c_try_run "$LINENO"; then :
11994 + gl_cv_func_strndup=yes
11995 +else
11996 + gl_cv_func_strndup=no
11997 +fi
11998 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11999 + conftest.$ac_objext conftest.beam conftest.$ac_ext
12000 +fi
12001 +
12002 +fi
12003 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strndup" >&5
12004 +$as_echo "$gl_cv_func_strndup" >&6; }
12005 + if test $gl_cv_func_strndup = yes; then
12006 +
12007 +$as_echo "#define HAVE_STRNDUP 1" >>confdefs.h
12008 +
12009 + else
12010 + HAVE_STRNDUP=0
12011 +
12012 +
12013 +
12014 +
12015 +
12016 +
12017 +
12018 +
12019 + gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
12020 +
12021 + :
12022 + fi
12023 +
12024 +
12025 +
12026 + GNULIB_STRNDUP=1
12027 +
12028 +
12029 +
12030 +
12031 +
12032 +
12033 +
12034 + :
12035 +
12036 +
12037 +
12038 +
12039 +
12040 + if test $ac_cv_have_decl_strnlen = no; then
12041 + HAVE_DECL_STRNLEN=0
12042 + fi
12043 +
12044 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
12045 +$as_echo_n "checking for working strnlen... " >&6; }
12046 +if ${ac_cv_func_strnlen_working+:} false; then :
12047 + $as_echo_n "(cached) " >&6
12048 +else
12049 + if test "$cross_compiling" = yes; then :
12050 + # Guess no on AIX systems, yes otherwise.
12051 + case "$host_os" in
12052 + aix*) ac_cv_func_strnlen_working=no;;
12053 + *) ac_cv_func_strnlen_working=yes;;
12054 + esac
12055 +else
12056 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12057 +/* end confdefs.h. */
12058 +$ac_includes_default
12059 +int
12060 +main ()
12061 +{
12062 +
12063 +#define S "foobar"
12064 +#define S_LEN (sizeof S - 1)
12065 +
12066 + /* At least one implementation is buggy: that of AIX 4.3 would
12067 + give strnlen (S, 1) == 3. */
12068 +
12069 + int i;
12070 + for (i = 0; i < S_LEN + 1; ++i)
12071 + {
12072 + int expected = i <= S_LEN ? i : S_LEN;
12073 + if (strnlen (S, i) != expected)
12074 + return 1;
12075 + }
12076 + return 0;
12077 +
12078 + ;
12079 + return 0;
12080 +}
12081 +_ACEOF
12082 +if ac_fn_c_try_run "$LINENO"; then :
12083 + ac_cv_func_strnlen_working=yes
12084 +else
12085 + ac_cv_func_strnlen_working=no
12086 +fi
12087 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12088 + conftest.$ac_objext conftest.beam conftest.$ac_ext
12089 +fi
12090 +
12091 +fi
12092 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
12093 +$as_echo "$ac_cv_func_strnlen_working" >&6; }
12094 +test $ac_cv_func_strnlen_working = no &&
12095 +
12096 +
12097 +
12098 +
12099 +
12100 +
12101 +
12102 + gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
12103 +
12104 +
12105 + if test $ac_cv_func_strnlen_working = no; then
12106 + # This is necessary because automake-1.6.1 doesn't understand
12107 + # that the above use of AC_FUNC_STRNLEN means we may have to use
12108 + # lib/strnlen.c.
12109 + #AC_LIBOBJ([strnlen])
12110 +
12111 +$as_echo "#define strnlen rpl_strnlen" >>confdefs.h
12112 +
12113 + :
12114 + fi
12115 +
12116 +
12117 +
12118 + GNULIB_STRNLEN=1
12119 +
12120 +
12121 +
12122 +
12123 +
12124 +
12125 +
12126 +
12127 +
12128 +
12129 +
12130 +
12131 +
12132 +
12133 +
12134 +
12135 + for ac_func in strsep
12136 +do :
12137 + ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
12138 +if test "x$ac_cv_func_strsep" = xyes; then :
12139 + cat >>confdefs.h <<_ACEOF
12140 +#define HAVE_STRSEP 1
12141 +_ACEOF
12142 +
12143 +else
12144 +
12145 + gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
12146 +
12147 +fi
12148 +done
12149 +
12150 +
12151 + if test $ac_cv_func_strsep = no; then
12152 + HAVE_STRSEP=0
12153 + :
12154 + fi
12155 +
12156 +
12157 +
12158 + GNULIB_STRSEP=1
12159 +
12160 +
12161 +
12162 +
12163 +
12164 +
12165 +
12166 +
12167 +
12168 + :
12169 +
12170 +
12171 +
12172 +
12173 +
12174 +
12175 +
12176 + if test $gl_cv_have_include_next = yes; then
12177 + gl_cv_next_unistd_h='<'unistd.h'>'
12178 + else
12179 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
12180 +$as_echo_n "checking absolute name of <unistd.h>... " >&6; }
12181 +if ${gl_cv_next_unistd_h+:} false; then :
12182 + $as_echo_n "(cached) " >&6
12183 +else
12184 +
12185 + if test $ac_cv_header_unistd_h = yes; then
12186 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12187 +/* end confdefs.h. */
12188 +#include <unistd.h>
12189 +
12190 +_ACEOF
12191 + case "$host_os" in
12192 + aix*) gl_absname_cpp="$ac_cpp -C" ;;
12193 + *) gl_absname_cpp="$ac_cpp" ;;
12194 + esac
12195 + gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12196 + sed -n '\#/unistd.h#{
12197 + s#.*"\(.*/unistd.h\)".*#\1#
12198 + s#^/[^/]#//&#
12199 + p
12200 + q
12201 + }'`'"'
12202 + else
12203 + gl_cv_next_unistd_h='<'unistd.h'>'
12204 + fi
12205 +
12206 +fi
12207 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
12208 +$as_echo "$gl_cv_next_unistd_h" >&6; }
12209 + fi
12210 + NEXT_UNISTD_H=$gl_cv_next_unistd_h
12211 +
12212 +
12213 +
12214 +
12215 +
12216 + :
12217 +
12218 +
12219 +
12220 +
12221 +
12222 + if test $ac_cv_header_unistd_h = yes; then
12223 + HAVE_UNISTD_H=1
12224 + else
12225 + HAVE_UNISTD_H=0
12226 + fi
12227 +
12228 +
12229 +
12230 +
12231 +
12232 +
12233 +
12234 +
12235 +
12236 +
12237 +
12238 +
12239 +
12240 + LIBGNU_LIBDEPS="$gl_libdeps"
12241 +
12242 + LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
12243 +
12244 +
12245 +
12246 +ac_config_files="$ac_config_files Makefile gllib/Makefile glm4/Makefile"
12247 +
12248 +cat >confcache <<\_ACEOF
12249 +# This file is a shell script that caches the results of configure
12250 +# tests run on this system so they can be shared between configure
12251 +# scripts and configure runs, see configure's option --config-cache.
12252 +# It is not useful on other systems. If it contains results you don't
12253 +# want to keep, you may remove or edit it.
12254 +#
12255 +# config.status only pays attention to the cache file if you give it
12256 +# the --recheck option to rerun configure.
12257 +#
12258 +# `ac_cv_env_foo' variables (set or unset) will be overridden when
12259 +# loading this file, other *unset* `ac_cv_foo' will be assigned the
12260 +# following values.
12261 +
12262 +_ACEOF
12263 +
12264 +# The following way of writing the cache mishandles newlines in values,
12265 +# but we know of no workaround that is simple, portable, and efficient.
12266 +# So, we kill variables containing newlines.
12267 +# Ultrix sh set writes to stderr and can't be redirected directly,
12268 +# and sets the high bit in the cache file unless we assign to the vars.
12269 +(
12270 + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12271 + eval ac_val=\$$ac_var
12272 + case $ac_val in #(
12273 + *${as_nl}*)
12274 + case $ac_var in #(
12275 + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12276 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12277 + esac
12278 + case $ac_var in #(
12279 + _ | IFS | as_nl) ;; #(
12280 + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12281 + *) { eval $ac_var=; unset $ac_var;} ;;
12282 + esac ;;
12283 + esac
12284 + done
12285 +
12286 + (set) 2>&1 |
12287 + case $as_nl`(ac_space=' '; set) 2>&1` in #(
12288 + *${as_nl}ac_space=\ *)
12289 + # `set' does not quote correctly, so add quotes: double-quote
12290 + # substitution turns \\\\ into \\, and sed turns \\ into \.
12291 + sed -n \
12292 + "s/'/'\\\\''/g;
12293 + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12294 + ;; #(
12295 + *)
12296 + # `set' quotes correctly as required by POSIX, so do not add quotes.
12297 + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12298 + ;;
12299 + esac |
12300 + sort
12301 +) |
12302 + sed '
12303 + /^ac_cv_env_/b end
12304 + t clear
12305 + :clear
12306 + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12307 + t end
12308 + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12309 + :end' >>confcache
12310 +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12311 + if test -w "$cache_file"; then
12312 + if test "x$cache_file" != "x/dev/null"; then
12313 + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12314 +$as_echo "$as_me: updating cache $cache_file" >&6;}
12315 + if test ! -f "$cache_file" || test -h "$cache_file"; then
12316 + cat confcache >"$cache_file"
12317 + else
12318 + case $cache_file in #(
12319 + */* | ?:*)
12320 + mv -f confcache "$cache_file"$$ &&
12321 + mv -f "$cache_file"$$ "$cache_file" ;; #(
12322 + *)
12323 + mv -f confcache "$cache_file" ;;
12324 + esac
12325 + fi
12326 + fi
12327 + else
12328 + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12329 +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12330 + fi
12331 +fi
12332 +rm -f confcache
12333 +
12334 +test "x$prefix" = xNONE && prefix=$ac_default_prefix
12335 +# Let make expand exec_prefix.
12336 +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12337 +
12338 +DEFS=-DHAVE_CONFIG_H
12339 +
12340 +ac_libobjs=
12341 +ac_ltlibobjs=
12342 +U=
12343 +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12344 + # 1. Remove the extension, and $U if already installed.
12345 + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12346 + ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12347 + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12348 + # will be set to the directory where LIBOBJS objects are built.
12349 + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12350 + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12351 +done
12352 +LIBOBJS=$ac_libobjs
12353 +
12354 +LTLIBOBJS=$ac_ltlibobjs
12355 +
12356 +
12357 + if test -n "$EXEEXT"; then
12358 + am__EXEEXT_TRUE=
12359 + am__EXEEXT_FALSE='#'
12360 +else
12361 + am__EXEEXT_TRUE='#'
12362 + am__EXEEXT_FALSE=
12363 +fi
12364 +
12365 +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12366 + as_fn_error $? "conditional \"AMDEP\" was never defined.
12367 +Usually this means the macro was only invoked conditionally." "$LINENO" 5
12368 +fi
12369 +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12370 + as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12371 +Usually this means the macro was only invoked conditionally." "$LINENO" 5
12372 +fi
12373 +if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
12374 + as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
12375 +Usually this means the macro was only invoked conditionally." "$LINENO" 5
12376 +fi
12377 +
12378 + gl_libobjs=
12379 + gl_ltlibobjs=
12380 + if test -n "$gl_LIBOBJS"; then
12381 + # Remove the extension.
12382 + sed_drop_objext='s/\.o$//;s/\.obj$//'
12383 + for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
12384 + gl_libobjs="$gl_libobjs $i.$ac_objext"
12385 + gl_ltlibobjs="$gl_ltlibobjs $i.lo"
12386 + done
12387 + fi
12388 + gl_LIBOBJS=$gl_libobjs
12389 +
12390 + gl_LTLIBOBJS=$gl_ltlibobjs
12391 +
12392 +
12393 +
12394 +: "${CONFIG_STATUS=./config.status}"
12395 +ac_write_fail=0
12396 +ac_clean_files_save=$ac_clean_files
12397 +ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12398 +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12399 +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12400 +as_write_fail=0
12401 +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12402 +#! $SHELL
12403 +# Generated by $as_me.
12404 +# Run this file to recreate the current configuration.
12405 +# Compiler output produced by configure, useful for debugging
12406 +# configure, is in config.log if it exists.
12407 +
12408 +debug=false
12409 +ac_cs_recheck=false
12410 +ac_cs_silent=false
12411 +
12412 +SHELL=\${CONFIG_SHELL-$SHELL}
12413 +export SHELL
12414 +_ASEOF
12415 +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12416 +## -------------------- ##
12417 +## M4sh Initialization. ##
12418 +## -------------------- ##
12419 +
12420 +# Be more Bourne compatible
12421 +DUALCASE=1; export DUALCASE # for MKS sh
12422 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12423 + emulate sh
12424 + NULLCMD=:
12425 + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12426 + # is contrary to our usage. Disable this feature.
12427 + alias -g '${1+"$@"}'='"$@"'
12428 + setopt NO_GLOB_SUBST
12429 +else
12430 + case `(set -o) 2>/dev/null` in #(
12431 + *posix*) :
12432 + set -o posix ;; #(
12433 + *) :
12434 + ;;
12435 +esac
12436 +fi
12437 +
12438 +
12439 +as_nl='
12440 +'
12441 +export as_nl
12442 +# Printing a long string crashes Solaris 7 /usr/bin/printf.
12443 +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12444 +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12445 +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12446 +# Prefer a ksh shell builtin over an external printf program on Solaris,
12447 +# but without wasting forks for bash or zsh.
12448 +if test -z "$BASH_VERSION$ZSH_VERSION" \
12449 + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12450 + as_echo='print -r --'
12451 + as_echo_n='print -rn --'
12452 +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12453 + as_echo='printf %s\n'
12454 + as_echo_n='printf %s'
12455 +else
12456 + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12457 + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12458 + as_echo_n='/usr/ucb/echo -n'
12459 + else
12460 + as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12461 + as_echo_n_body='eval
12462 + arg=$1;
12463 + case $arg in #(
12464 + *"$as_nl"*)
12465 + expr "X$arg" : "X\\(.*\\)$as_nl";
12466 + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12467 + esac;
12468 + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12469 + '
12470 + export as_echo_n_body
12471 + as_echo_n='sh -c $as_echo_n_body as_echo'
12472 + fi
12473 + export as_echo_body
12474 + as_echo='sh -c $as_echo_body as_echo'
12475 +fi
12476 +
12477 +# The user is always right.
12478 +if test "${PATH_SEPARATOR+set}" != set; then
12479 + PATH_SEPARATOR=:
12480 + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12481 + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12482 + PATH_SEPARATOR=';'
12483 + }
12484 +fi
12485 +
12486 +
12487 +# IFS
12488 +# We need space, tab and new line, in precisely that order. Quoting is
12489 +# there to prevent editors from complaining about space-tab.
12490 +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12491 +# splitting by setting IFS to empty value.)
12492 +IFS=" "" $as_nl"
12493 +
12494 +# Find who we are. Look in the path if we contain no directory separator.
12495 +as_myself=
12496 +case $0 in #((
12497 + *[\\/]* ) as_myself=$0 ;;
12498 + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12499 +for as_dir in $PATH
12500 +do
12501 + IFS=$as_save_IFS
12502 + test -z "$as_dir" && as_dir=.
12503 + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12504 + done
12505 +IFS=$as_save_IFS
12506 +
12507 + ;;
12508 +esac
12509 +# We did not find ourselves, most probably we were run as `sh COMMAND'
12510 +# in which case we are not to be found in the path.
12511 +if test "x$as_myself" = x; then
12512 + as_myself=$0
12513 +fi
12514 +if test ! -f "$as_myself"; then
12515 + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12516 + exit 1
12517 +fi
12518 +
12519 +# Unset variables that we do not need and which cause bugs (e.g. in
12520 +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12521 +# suppresses any "Segmentation fault" message there. '((' could
12522 +# trigger a bug in pdksh 5.2.14.
12523 +for as_var in BASH_ENV ENV MAIL MAILPATH
12524 +do eval test x\${$as_var+set} = xset \
12525 + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12526 +done
12527 +PS1='$ '
12528 +PS2='> '
12529 +PS4='+ '
12530 +
12531 +# NLS nuisances.
12532 +LC_ALL=C
12533 +export LC_ALL
12534 +LANGUAGE=C
12535 +export LANGUAGE
12536 +
12537 +# CDPATH.
12538 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12539 +
12540 +
12541 +# as_fn_error STATUS ERROR [LINENO LOG_FD]
12542 +# ----------------------------------------
12543 +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12544 +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12545 +# script with STATUS, using 1 if that was 0.
12546 +as_fn_error ()
12547 +{
12548 + as_status=$1; test $as_status -eq 0 && as_status=1
12549 + if test "$4"; then
12550 + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12551 + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12552 + fi
12553 + $as_echo "$as_me: error: $2" >&2
12554 + as_fn_exit $as_status
12555 +} # as_fn_error
12556 +
12557 +
12558 +# as_fn_set_status STATUS
12559 +# -----------------------
12560 +# Set $? to STATUS, without forking.
12561 +as_fn_set_status ()
12562 +{
12563 + return $1
12564 +} # as_fn_set_status
12565 +
12566 +# as_fn_exit STATUS
12567 +# -----------------
12568 +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12569 +as_fn_exit ()
12570 +{
12571 + set +e
12572 + as_fn_set_status $1
12573 + exit $1
12574 +} # as_fn_exit
12575 +
12576 +# as_fn_unset VAR
12577 +# ---------------
12578 +# Portably unset VAR.
12579 +as_fn_unset ()
12580 +{
12581 + { eval $1=; unset $1;}
12582 +}
12583 +as_unset=as_fn_unset
12584 +# as_fn_append VAR VALUE
12585 +# ----------------------
12586 +# Append the text in VALUE to the end of the definition contained in VAR. Take
12587 +# advantage of any shell optimizations that allow amortized linear growth over
12588 +# repeated appends, instead of the typical quadratic growth present in naive
12589 +# implementations.
12590 +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12591 + eval 'as_fn_append ()
12592 + {
12593 + eval $1+=\$2
12594 + }'
12595 +else
12596 + as_fn_append ()
12597 + {
12598 + eval $1=\$$1\$2
12599 + }
12600 +fi # as_fn_append
12601 +
12602 +# as_fn_arith ARG...
12603 +# ------------------
12604 +# Perform arithmetic evaluation on the ARGs, and store the result in the
12605 +# global $as_val. Take advantage of shells that can avoid forks. The arguments
12606 +# must be portable across $(()) and expr.
12607 +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12608 + eval 'as_fn_arith ()
12609 + {
12610 + as_val=$(( $* ))
12611 + }'
12612 +else
12613 + as_fn_arith ()
12614 + {
12615 + as_val=`expr "$@" || test $? -eq 1`
12616 + }
12617 +fi # as_fn_arith
12618 +
12619 +
12620 +if expr a : '\(a\)' >/dev/null 2>&1 &&
12621 + test "X`expr 00001 : '.*\(...\)'`" = X001; then
12622 + as_expr=expr
12623 +else
12624 + as_expr=false
12625 +fi
12626 +
12627 +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12628 + as_basename=basename
12629 +else
12630 + as_basename=false
12631 +fi
12632 +
12633 +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12634 + as_dirname=dirname
12635 +else
12636 + as_dirname=false
12637 +fi
12638 +
12639 +as_me=`$as_basename -- "$0" ||
12640 +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12641 + X"$0" : 'X\(//\)$' \| \
12642 + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12643 +$as_echo X/"$0" |
12644 + sed '/^.*\/\([^/][^/]*\)\/*$/{
12645 + s//\1/
12646 + q
12647 + }
12648 + /^X\/\(\/\/\)$/{
12649 + s//\1/
12650 + q
12651 + }
12652 + /^X\/\(\/\).*/{
12653 + s//\1/
12654 + q
12655 + }
12656 + s/.*/./; q'`
12657 +
12658 +# Avoid depending upon Character Ranges.
12659 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12660 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12661 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12662 +as_cr_digits='0123456789'
12663 +as_cr_alnum=$as_cr_Letters$as_cr_digits
12664 +
12665 +ECHO_C= ECHO_N= ECHO_T=
12666 +case `echo -n x` in #(((((
12667 +-n*)
12668 + case `echo 'xy\c'` in
12669 + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12670 + xy) ECHO_C='\c';;
12671 + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12672 + ECHO_T=' ';;
12673 + esac;;
12674 +*)
12675 + ECHO_N='-n';;
12676 +esac
12677 +
12678 +rm -f conf$$ conf$$.exe conf$$.file
12679 +if test -d conf$$.dir; then
12680 + rm -f conf$$.dir/conf$$.file
12681 +else
12682 + rm -f conf$$.dir
12683 + mkdir conf$$.dir 2>/dev/null
12684 +fi
12685 +if (echo >conf$$.file) 2>/dev/null; then
12686 + if ln -s conf$$.file conf$$ 2>/dev/null; then
12687 + as_ln_s='ln -s'
12688 + # ... but there are two gotchas:
12689 + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12690 + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12691 + # In both cases, we have to default to `cp -p'.
12692 + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12693 + as_ln_s='cp -p'
12694 + elif ln conf$$.file conf$$ 2>/dev/null; then
12695 + as_ln_s=ln
12696 + else
12697 + as_ln_s='cp -p'
12698 + fi
12699 +else
12700 + as_ln_s='cp -p'
12701 +fi
12702 +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12703 +rmdir conf$$.dir 2>/dev/null
12704 +
12705 +
12706 +# as_fn_mkdir_p
12707 +# -------------
12708 +# Create "$as_dir" as a directory, including parents if necessary.
12709 +as_fn_mkdir_p ()
12710 +{
12711 +
12712 + case $as_dir in #(
12713 + -*) as_dir=./$as_dir;;
12714 + esac
12715 + test -d "$as_dir" || eval $as_mkdir_p || {
12716 + as_dirs=
12717 + while :; do
12718 + case $as_dir in #(
12719 + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12720 + *) as_qdir=$as_dir;;
12721 + esac
12722 + as_dirs="'$as_qdir' $as_dirs"
12723 + as_dir=`$as_dirname -- "$as_dir" ||
12724 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12725 + X"$as_dir" : 'X\(//\)[^/]' \| \
12726 + X"$as_dir" : 'X\(//\)$' \| \
12727 + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12728 +$as_echo X"$as_dir" |
12729 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12730 + s//\1/
12731 + q
12732 + }
12733 + /^X\(\/\/\)[^/].*/{
12734 + s//\1/
12735 + q
12736 + }
12737 + /^X\(\/\/\)$/{
12738 + s//\1/
12739 + q
12740 + }
12741 + /^X\(\/\).*/{
12742 + s//\1/
12743 + q
12744 + }
12745 + s/.*/./; q'`
12746 + test -d "$as_dir" && break
12747 + done
12748 + test -z "$as_dirs" || eval "mkdir $as_dirs"
12749 + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12750 +
12751 +
12752 +} # as_fn_mkdir_p
12753 +if mkdir -p . 2>/dev/null; then
12754 + as_mkdir_p='mkdir -p "$as_dir"'
12755 +else
12756 + test -d ./-p && rmdir ./-p
12757 + as_mkdir_p=false
12758 +fi
12759 +
12760 +if test -x / >/dev/null 2>&1; then
12761 + as_test_x='test -x'
12762 +else
12763 + if ls -dL / >/dev/null 2>&1; then
12764 + as_ls_L_option=L
12765 + else
12766 + as_ls_L_option=
12767 + fi
12768 + as_test_x='
12769 + eval sh -c '\''
12770 + if test -d "$1"; then
12771 + test -d "$1/.";
12772 + else
12773 + case $1 in #(
12774 + -*)set "./$1";;
12775 + esac;
12776 + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12777 + ???[sx]*):;;*)false;;esac;fi
12778 + '\'' sh
12779 + '
12780 +fi
12781 +as_executable_p=$as_test_x
12782 +
12783 +# Sed expression to map a string onto a valid CPP name.
12784 +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12785 +
12786 +# Sed expression to map a string onto a valid variable name.
12787 +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12788 +
12789 +
12790 +exec 6>&1
12791 +## ----------------------------------- ##
12792 +## Main body of $CONFIG_STATUS script. ##
12793 +## ----------------------------------- ##
12794 +_ASEOF
12795 +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12796 +
12797 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12798 +# Save the log message, to keep $0 and so on meaningful, and to
12799 +# report actual input values of CONFIG_FILES etc. instead of their
12800 +# values after options handling.
12801 +ac_log="
12802 +This file was extended by dummy $as_me 0, which was
12803 +generated by GNU Autoconf 2.68. Invocation command line was
12804 +
12805 + CONFIG_FILES = $CONFIG_FILES
12806 + CONFIG_HEADERS = $CONFIG_HEADERS
12807 + CONFIG_LINKS = $CONFIG_LINKS
12808 + CONFIG_COMMANDS = $CONFIG_COMMANDS
12809 + $ $0 $@
12810 +
12811 +on `(hostname || uname -n) 2>/dev/null | sed 1q`
12812 +"
12813 +
12814 +_ACEOF
12815 +
12816 +case $ac_config_files in *"
12817 +"*) set x $ac_config_files; shift; ac_config_files=$*;;
12818 +esac
12819 +
12820 +case $ac_config_headers in *"
12821 +"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12822 +esac
12823 +
12824 +
12825 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12826 +# Files that config.status was made for.
12827 +config_files="$ac_config_files"
12828 +config_headers="$ac_config_headers"
12829 +config_commands="$ac_config_commands"
12830 +
12831 +_ACEOF
12832 +
12833 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12834 +ac_cs_usage="\
12835 +\`$as_me' instantiates files and other configuration actions
12836 +from templates according to the current configuration. Unless the files
12837 +and actions are specified as TAGs, all are instantiated by default.
12838 +
12839 +Usage: $0 [OPTION]... [TAG]...
12840 +
12841 + -h, --help print this help, then exit
12842 + -V, --version print version number and configuration settings, then exit
12843 + --config print configuration, then exit
12844 + -q, --quiet, --silent
12845 + do not print progress messages
12846 + -d, --debug don't remove temporary files
12847 + --recheck update $as_me by reconfiguring in the same conditions
12848 + --file=FILE[:TEMPLATE]
12849 + instantiate the configuration file FILE
12850 + --header=FILE[:TEMPLATE]
12851 + instantiate the configuration header FILE
12852 +
12853 +Configuration files:
12854 +$config_files
12855 +
12856 +Configuration headers:
12857 +$config_headers
12858 +
12859 +Configuration commands:
12860 +$config_commands
12861 +
12862 +Report bugs to the package provider."
12863 +
12864 +_ACEOF
12865 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12866 +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12867 +ac_cs_version="\\
12868 +dummy config.status 0
12869 +configured by $0, generated by GNU Autoconf 2.68,
12870 + with options \\"\$ac_cs_config\\"
12871 +
12872 +Copyright (C) 2010 Free Software Foundation, Inc.
12873 +This config.status script is free software; the Free Software Foundation
12874 +gives unlimited permission to copy, distribute and modify it."
12875 +
12876 +ac_pwd='$ac_pwd'
12877 +srcdir='$srcdir'
12878 +INSTALL='$INSTALL'
12879 +MKDIR_P='$MKDIR_P'
12880 +AWK='$AWK'
12881 +test -n "\$AWK" || AWK=awk
12882 +_ACEOF
12883 +
12884 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12885 +# The default lists apply if the user does not specify any file.
12886 +ac_need_defaults=:
12887 +while test $# != 0
12888 +do
12889 + case $1 in
12890 + --*=?*)
12891 + ac_option=`expr "X$1" : 'X\([^=]*\)='`
12892 + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12893 + ac_shift=:
12894 + ;;
12895 + --*=)
12896 + ac_option=`expr "X$1" : 'X\([^=]*\)='`
12897 + ac_optarg=
12898 + ac_shift=:
12899 + ;;
12900 + *)
12901 + ac_option=$1
12902 + ac_optarg=$2
12903 + ac_shift=shift
12904 + ;;
12905 + esac
12906 +
12907 + case $ac_option in
12908 + # Handling of the options.
12909 + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12910 + ac_cs_recheck=: ;;
12911 + --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12912 + $as_echo "$ac_cs_version"; exit ;;
12913 + --config | --confi | --conf | --con | --co | --c )
12914 + $as_echo "$ac_cs_config"; exit ;;
12915 + --debug | --debu | --deb | --de | --d | -d )
12916 + debug=: ;;
12917 + --file | --fil | --fi | --f )
12918 + $ac_shift
12919 + case $ac_optarg in
12920 + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12921 + '') as_fn_error $? "missing file argument" ;;
12922 + esac
12923 + as_fn_append CONFIG_FILES " '$ac_optarg'"
12924 + ac_need_defaults=false;;
12925 + --header | --heade | --head | --hea )
12926 + $ac_shift
12927 + case $ac_optarg in
12928 + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12929 + esac
12930 + as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12931 + ac_need_defaults=false;;
12932 + --he | --h)
12933 + # Conflict between --help and --header
12934 + as_fn_error $? "ambiguous option: \`$1'
12935 +Try \`$0 --help' for more information.";;
12936 + --help | --hel | -h )
12937 + $as_echo "$ac_cs_usage"; exit ;;
12938 + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12939 + | -silent | --silent | --silen | --sile | --sil | --si | --s)
12940 + ac_cs_silent=: ;;
12941 +
12942 + # This is an error.
12943 + -*) as_fn_error $? "unrecognized option: \`$1'
12944 +Try \`$0 --help' for more information." ;;
12945 +
12946 + *) as_fn_append ac_config_targets " $1"
12947 + ac_need_defaults=false ;;
12948 +
12949 + esac
12950 + shift
12951 +done
12952 +
12953 +ac_configure_extra_args=
12954 +
12955 +if $ac_cs_silent; then
12956 + exec 6>/dev/null
12957 + ac_configure_extra_args="$ac_configure_extra_args --silent"
12958 +fi
12959 +
12960 +_ACEOF
12961 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12962 +if \$ac_cs_recheck; then
12963 + set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12964 + shift
12965 + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12966 + CONFIG_SHELL='$SHELL'
12967 + export CONFIG_SHELL
12968 + exec "\$@"
12969 +fi
12970 +
12971 +_ACEOF
12972 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12973 +exec 5>>config.log
12974 +{
12975 + echo
12976 + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12977 +## Running $as_me. ##
12978 +_ASBOX
12979 + $as_echo "$ac_log"
12980 +} >&5
12981 +
12982 +_ACEOF
12983 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12984 +#
12985 +# INIT-COMMANDS
12986 +#
12987 +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12988 +
12989 +_ACEOF
12990 +
12991 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12992 +
12993 +# Handling of arguments.
12994 +for ac_config_target in $ac_config_targets
12995 +do
12996 + case $ac_config_target in
12997 + "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12998 + "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12999 + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13000 + "gllib/Makefile") CONFIG_FILES="$CONFIG_FILES gllib/Makefile" ;;
13001 + "glm4/Makefile") CONFIG_FILES="$CONFIG_FILES glm4/Makefile" ;;
13002 +
13003 + *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13004 + esac
13005 +done
13006 +
13007 +
13008 +# If the user did not use the arguments to specify the items to instantiate,
13009 +# then the envvar interface is used. Set only those that are not.
13010 +# We use the long form for the default assignment because of an extremely
13011 +# bizarre bug on SunOS 4.1.3.
13012 +if $ac_need_defaults; then
13013 + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13014 + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13015 + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13016 +fi
13017 +
13018 +# Have a temporary directory for convenience. Make it in the build tree
13019 +# simply because there is no reason against having it here, and in addition,
13020 +# creating and moving files from /tmp can sometimes cause problems.
13021 +# Hook for its removal unless debugging.
13022 +# Note that there is a small window in which the directory will not be cleaned:
13023 +# after its creation but before its name has been assigned to `$tmp'.
13024 +$debug ||
13025 +{
13026 + tmp= ac_tmp=
13027 + trap 'exit_status=$?
13028 + : "${ac_tmp:=$tmp}"
13029 + { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13030 +' 0
13031 + trap 'as_fn_exit 1' 1 2 13 15
13032 +}
13033 +# Create a (secure) tmp directory for tmp files.
13034 +
13035 +{
13036 + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13037 + test -d "$tmp"
13038 +} ||
13039 +{
13040 + tmp=./conf$$-$RANDOM
13041 + (umask 077 && mkdir "$tmp")
13042 +} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13043 +ac_tmp=$tmp
13044 +
13045 +# Set up the scripts for CONFIG_FILES section.
13046 +# No need to generate them if there are no CONFIG_FILES.
13047 +# This happens for instance with `./config.status config.h'.
13048 +if test -n "$CONFIG_FILES"; then
13049 +
13050 +
13051 +ac_cr=`echo X | tr X '\015'`
13052 +# On cygwin, bash can eat \r inside `` if the user requested igncr.
13053 +# But we know of no other shell where ac_cr would be empty at this
13054 +# point, so we can use a bashism as a fallback.
13055 +if test "x$ac_cr" = x; then
13056 + eval ac_cr=\$\'\\r\'
13057 +fi
13058 +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13059 +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13060 + ac_cs_awk_cr='\\r'
13061 +else
13062 + ac_cs_awk_cr=$ac_cr
13063 +fi
13064 +
13065 +echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13066 +_ACEOF
13067 +
13068 +
13069 +{
13070 + echo "cat >conf$$subs.awk <<_ACEOF" &&
13071 + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13072 + echo "_ACEOF"
13073 +} >conf$$subs.sh ||
13074 + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13075 +ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13076 +ac_delim='%!_!# '
13077 +for ac_last_try in false false false false false :; do
13078 + . ./conf$$subs.sh ||
13079 + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13080 +
13081 + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13082 + if test $ac_delim_n = $ac_delim_num; then
13083 + break
13084 + elif $ac_last_try; then
13085 + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13086 + else
13087 + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13088 + fi
13089 +done
13090 +rm -f conf$$subs.sh
13091 +
13092 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13093 +cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13094 +_ACEOF
13095 +sed -n '
13096 +h
13097 +s/^/S["/; s/!.*/"]=/
13098 +p
13099 +g
13100 +s/^[^!]*!//
13101 +:repl
13102 +t repl
13103 +s/'"$ac_delim"'$//
13104 +t delim
13105 +:nl
13106 +h
13107 +s/\(.\{148\}\)..*/\1/
13108 +t more1
13109 +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13110 +p
13111 +n
13112 +b repl
13113 +:more1
13114 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13115 +p
13116 +g
13117 +s/.\{148\}//
13118 +t nl
13119 +:delim
13120 +h
13121 +s/\(.\{148\}\)..*/\1/
13122 +t more2
13123 +s/["\\]/\\&/g; s/^/"/; s/$/"/
13124 +p
13125 +b
13126 +:more2
13127 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13128 +p
13129 +g
13130 +s/.\{148\}//
13131 +t delim
13132 +' <conf$$subs.awk | sed '
13133 +/^[^""]/{
13134 + N
13135 + s/\n//
13136 +}
13137 +' >>$CONFIG_STATUS || ac_write_fail=1
13138 +rm -f conf$$subs.awk
13139 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13140 +_ACAWK
13141 +cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13142 + for (key in S) S_is_set[key] = 1
13143 + FS = ""
13144 +
13145 +}
13146 +{
13147 + line = $ 0
13148 + nfields = split(line, field, "@")
13149 + substed = 0
13150 + len = length(field[1])
13151 + for (i = 2; i < nfields; i++) {
13152 + key = field[i]
13153 + keylen = length(key)
13154 + if (S_is_set[key]) {
13155 + value = S[key]
13156 + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13157 + len += length(value) + length(field[++i])
13158 + substed = 1
13159 + } else
13160 + len += 1 + keylen
13161 + }
13162 +
13163 + print line
13164 +}
13165 +
13166 +_ACAWK
13167 +_ACEOF
13168 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13169 +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13170 + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13171 +else
13172 + cat
13173 +fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13174 + || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13175 +_ACEOF
13176 +
13177 +# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13178 +# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13179 +# trailing colons and then remove the whole line if VPATH becomes empty
13180 +# (actually we leave an empty line to preserve line numbers).
13181 +if test "x$srcdir" = x.; then
13182 + ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13183 +h
13184 +s///
13185 +s/^/:/
13186 +s/[ ]*$/:/
13187 +s/:\$(srcdir):/:/g
13188 +s/:\${srcdir}:/:/g
13189 +s/:@srcdir@:/:/g
13190 +s/^:*//
13191 +s/:*$//
13192 +x
13193 +s/\(=[ ]*\).*/\1/
13194 +G
13195 +s/\n//
13196 +s/^[^=]*=[ ]*$//
13197 +}'
13198 +fi
13199 +
13200 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13201 +fi # test -n "$CONFIG_FILES"
13202 +
13203 +# Set up the scripts for CONFIG_HEADERS section.
13204 +# No need to generate them if there are no CONFIG_HEADERS.
13205 +# This happens for instance with `./config.status Makefile'.
13206 +if test -n "$CONFIG_HEADERS"; then
13207 +cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13208 +BEGIN {
13209 +_ACEOF
13210 +
13211 +# Transform confdefs.h into an awk script `defines.awk', embedded as
13212 +# here-document in config.status, that substitutes the proper values into
13213 +# config.h.in to produce config.h.
13214 +
13215 +# Create a delimiter string that does not exist in confdefs.h, to ease
13216 +# handling of long lines.
13217 +ac_delim='%!_!# '
13218 +for ac_last_try in false false :; do
13219 + ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13220 + if test -z "$ac_tt"; then
13221 + break
13222 + elif $ac_last_try; then
13223 + as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13224 + else
13225 + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13226 + fi
13227 +done
13228 +
13229 +# For the awk script, D is an array of macro values keyed by name,
13230 +# likewise P contains macro parameters if any. Preserve backslash
13231 +# newline sequences.
13232 +
13233 +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13234 +sed -n '
13235 +s/.\{148\}/&'"$ac_delim"'/g
13236 +t rset
13237 +:rset
13238 +s/^[ ]*#[ ]*define[ ][ ]*/ /
13239 +t def
13240 +d
13241 +:def
13242 +s/\\$//
13243 +t bsnl
13244 +s/["\\]/\\&/g
13245 +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13246 +D["\1"]=" \3"/p
13247 +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13248 +d
13249 +:bsnl
13250 +s/["\\]/\\&/g
13251 +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13252 +D["\1"]=" \3\\\\\\n"\\/p
13253 +t cont
13254 +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13255 +t cont
13256 +d
13257 +:cont
13258 +n
13259 +s/.\{148\}/&'"$ac_delim"'/g
13260 +t clear
13261 +:clear
13262 +s/\\$//
13263 +t bsnlc
13264 +s/["\\]/\\&/g; s/^/"/; s/$/"/p
13265 +d
13266 +:bsnlc
13267 +s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13268 +b cont
13269 +' <confdefs.h | sed '
13270 +s/'"$ac_delim"'/"\\\
13271 +"/g' >>$CONFIG_STATUS || ac_write_fail=1
13272 +
13273 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13274 + for (key in D) D_is_set[key] = 1
13275 + FS = ""
13276 +}
13277 +/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13278 + line = \$ 0
13279 + split(line, arg, " ")
13280 + if (arg[1] == "#") {
13281 + defundef = arg[2]
13282 + mac1 = arg[3]
13283 + } else {
13284 + defundef = substr(arg[1], 2)
13285 + mac1 = arg[2]
13286 + }
13287 + split(mac1, mac2, "(") #)
13288 + macro = mac2[1]
13289 + prefix = substr(line, 1, index(line, defundef) - 1)
13290 + if (D_is_set[macro]) {
13291 + # Preserve the white space surrounding the "#".
13292 + print prefix "define", macro P[macro] D[macro]
13293 + next
13294 + } else {
13295 + # Replace #undef with comments. This is necessary, for example,
13296 + # in the case of _POSIX_SOURCE, which is predefined and required
13297 + # on some systems where configure will not decide to define it.
13298 + if (defundef == "undef") {
13299 + print "/*", prefix defundef, macro, "*/"
13300 + next
13301 + }
13302 + }
13303 +}
13304 +{ print }
13305 +_ACAWK
13306 +_ACEOF
13307 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13308 + as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13309 +fi # test -n "$CONFIG_HEADERS"
13310 +
13311 +
13312 +eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13313 +shift
13314 +for ac_tag
13315 +do
13316 + case $ac_tag in
13317 + :[FHLC]) ac_mode=$ac_tag; continue;;
13318 + esac
13319 + case $ac_mode$ac_tag in
13320 + :[FHL]*:*);;
13321 + :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13322 + :[FH]-) ac_tag=-:-;;
13323 + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13324 + esac
13325 + ac_save_IFS=$IFS
13326 + IFS=:
13327 + set x $ac_tag
13328 + IFS=$ac_save_IFS
13329 + shift
13330 + ac_file=$1
13331 + shift
13332 +
13333 + case $ac_mode in
13334 + :L) ac_source=$1;;
13335 + :[FH])
13336 + ac_file_inputs=
13337 + for ac_f
13338 + do
13339 + case $ac_f in
13340 + -) ac_f="$ac_tmp/stdin";;
13341 + *) # Look for the file first in the build tree, then in the source tree
13342 + # (if the path is not absolute). The absolute path cannot be DOS-style,
13343 + # because $ac_f cannot contain `:'.
13344 + test -f "$ac_f" ||
13345 + case $ac_f in
13346 + [\\/$]*) false;;
13347 + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13348 + esac ||
13349 + as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13350 + esac
13351 + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13352 + as_fn_append ac_file_inputs " '$ac_f'"
13353 + done
13354 +
13355 + # Let's still pretend it is `configure' which instantiates (i.e., don't
13356 + # use $as_me), people would be surprised to read:
13357 + # /* config.h. Generated by config.status. */
13358 + configure_input='Generated from '`
13359 + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13360 + `' by configure.'
13361 + if test x"$ac_file" != x-; then
13362 + configure_input="$ac_file. $configure_input"
13363 + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13364 +$as_echo "$as_me: creating $ac_file" >&6;}
13365 + fi
13366 + # Neutralize special characters interpreted by sed in replacement strings.
13367 + case $configure_input in #(
13368 + *\&* | *\|* | *\\* )
13369 + ac_sed_conf_input=`$as_echo "$configure_input" |
13370 + sed 's/[\\\\&|]/\\\\&/g'`;; #(
13371 + *) ac_sed_conf_input=$configure_input;;
13372 + esac
13373 +
13374 + case $ac_tag in
13375 + *:-:* | *:-) cat >"$ac_tmp/stdin" \
13376 + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13377 + esac
13378 + ;;
13379 + esac
13380 +
13381 + ac_dir=`$as_dirname -- "$ac_file" ||
13382 +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13383 + X"$ac_file" : 'X\(//\)[^/]' \| \
13384 + X"$ac_file" : 'X\(//\)$' \| \
13385 + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13386 +$as_echo X"$ac_file" |
13387 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13388 + s//\1/
13389 + q
13390 + }
13391 + /^X\(\/\/\)[^/].*/{
13392 + s//\1/
13393 + q
13394 + }
13395 + /^X\(\/\/\)$/{
13396 + s//\1/
13397 + q
13398 + }
13399 + /^X\(\/\).*/{
13400 + s//\1/
13401 + q
13402 + }
13403 + s/.*/./; q'`
13404 + as_dir="$ac_dir"; as_fn_mkdir_p
13405 + ac_builddir=.
13406 +
13407 +case "$ac_dir" in
13408 +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13409 +*)
13410 + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13411 + # A ".." for each directory in $ac_dir_suffix.
13412 + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13413 + case $ac_top_builddir_sub in
13414 + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13415 + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13416 + esac ;;
13417 +esac
13418 +ac_abs_top_builddir=$ac_pwd
13419 +ac_abs_builddir=$ac_pwd$ac_dir_suffix
13420 +# for backward compatibility:
13421 +ac_top_builddir=$ac_top_build_prefix
13422 +
13423 +case $srcdir in
13424 + .) # We are building in place.
13425 + ac_srcdir=.
13426 + ac_top_srcdir=$ac_top_builddir_sub
13427 + ac_abs_top_srcdir=$ac_pwd ;;
13428 + [\\/]* | ?:[\\/]* ) # Absolute name.
13429 + ac_srcdir=$srcdir$ac_dir_suffix;
13430 + ac_top_srcdir=$srcdir
13431 + ac_abs_top_srcdir=$srcdir ;;
13432 + *) # Relative name.
13433 + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13434 + ac_top_srcdir=$ac_top_build_prefix$srcdir
13435 + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13436 +esac
13437 +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13438 +
13439 +
13440 + case $ac_mode in
13441 + :F)
13442 + #
13443 + # CONFIG_FILE
13444 + #
13445 +
13446 + case $INSTALL in
13447 + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13448 + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13449 + esac
13450 + ac_MKDIR_P=$MKDIR_P
13451 + case $MKDIR_P in
13452 + [\\/$]* | ?:[\\/]* ) ;;
13453 + */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13454 + esac
13455 +_ACEOF
13456 +
13457 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13458 +# If the template does not know about datarootdir, expand it.
13459 +# FIXME: This hack should be removed a few years after 2.60.
13460 +ac_datarootdir_hack=; ac_datarootdir_seen=
13461 +ac_sed_dataroot='
13462 +/datarootdir/ {
13463 + p
13464 + q
13465 +}
13466 +/@datadir@/p
13467 +/@docdir@/p
13468 +/@infodir@/p
13469 +/@localedir@/p
13470 +/@mandir@/p'
13471 +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13472 +*datarootdir*) ac_datarootdir_seen=yes;;
13473 +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13474 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13475 +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13476 +_ACEOF
13477 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13478 + ac_datarootdir_hack='
13479 + s&@datadir@&$datadir&g
13480 + s&@docdir@&$docdir&g
13481 + s&@infodir@&$infodir&g
13482 + s&@localedir@&$localedir&g
13483 + s&@mandir@&$mandir&g
13484 + s&\\\${datarootdir}&$datarootdir&g' ;;
13485 +esac
13486 +_ACEOF
13487 +
13488 +# Neutralize VPATH when `$srcdir' = `.'.
13489 +# Shell code in configure.ac might set extrasub.
13490 +# FIXME: do we really want to maintain this feature?
13491 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13492 +ac_sed_extra="$ac_vpsub
13493 +$extrasub
13494 +_ACEOF
13495 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13496 +:t
13497 +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13498 +s|@configure_input@|$ac_sed_conf_input|;t t
13499 +s&@top_builddir@&$ac_top_builddir_sub&;t t
13500 +s&@top_build_prefix@&$ac_top_build_prefix&;t t
13501 +s&@srcdir@&$ac_srcdir&;t t
13502 +s&@abs_srcdir@&$ac_abs_srcdir&;t t
13503 +s&@top_srcdir@&$ac_top_srcdir&;t t
13504 +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13505 +s&@builddir@&$ac_builddir&;t t
13506 +s&@abs_builddir@&$ac_abs_builddir&;t t
13507 +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13508 +s&@INSTALL@&$ac_INSTALL&;t t
13509 +s&@MKDIR_P@&$ac_MKDIR_P&;t t
13510 +$ac_datarootdir_hack
13511 +"
13512 +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13513 + >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13514 +
13515 +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13516 + { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13517 + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13518 + "$ac_tmp/out"`; test -z "$ac_out"; } &&
13519 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13520 +which seems to be undefined. Please make sure it is defined" >&5
13521 +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13522 +which seems to be undefined. Please make sure it is defined" >&2;}
13523 +
13524 + rm -f "$ac_tmp/stdin"
13525 + case $ac_file in
13526 + -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13527 + *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13528 + esac \
13529 + || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13530 + ;;
13531 + :H)
13532 + #
13533 + # CONFIG_HEADER
13534 + #
13535 + if test x"$ac_file" != x-; then
13536 + {
13537 + $as_echo "/* $configure_input */" \
13538 + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13539 + } >"$ac_tmp/config.h" \
13540 + || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13541 + if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13542 + { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13543 +$as_echo "$as_me: $ac_file is unchanged" >&6;}
13544 + else
13545 + rm -f "$ac_file"
13546 + mv "$ac_tmp/config.h" "$ac_file" \
13547 + || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13548 + fi
13549 + else
13550 + $as_echo "/* $configure_input */" \
13551 + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13552 + || as_fn_error $? "could not create -" "$LINENO" 5
13553 + fi
13554 +# Compute "$ac_file"'s index in $config_headers.
13555 +_am_arg="$ac_file"
13556 +_am_stamp_count=1
13557 +for _am_header in $config_headers :; do
13558 + case $_am_header in
13559 + $_am_arg | $_am_arg:* )
13560 + break ;;
13561 + * )
13562 + _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13563 + esac
13564 +done
13565 +echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13566 +$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13567 + X"$_am_arg" : 'X\(//\)[^/]' \| \
13568 + X"$_am_arg" : 'X\(//\)$' \| \
13569 + X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13570 +$as_echo X"$_am_arg" |
13571 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13572 + s//\1/
13573 + q
13574 + }
13575 + /^X\(\/\/\)[^/].*/{
13576 + s//\1/
13577 + q
13578 + }
13579 + /^X\(\/\/\)$/{
13580 + s//\1/
13581 + q
13582 + }
13583 + /^X\(\/\).*/{
13584 + s//\1/
13585 + q
13586 + }
13587 + s/.*/./; q'`/stamp-h$_am_stamp_count
13588 + ;;
13589 +
13590 + :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13591 +$as_echo "$as_me: executing $ac_file commands" >&6;}
13592 + ;;
13593 + esac
13594 +
13595 +
13596 + case $ac_file$ac_mode in
13597 + "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13598 + # Autoconf 2.62 quotes --file arguments for eval, but not when files
13599 + # are listed without --file. Let's play safe and only enable the eval
13600 + # if we detect the quoting.
13601 + case $CONFIG_FILES in
13602 + *\'*) eval set x "$CONFIG_FILES" ;;
13603 + *) set x $CONFIG_FILES ;;
13604 + esac
13605 + shift
13606 + for mf
13607 + do
13608 + # Strip MF so we end up with the name of the file.
13609 + mf=`echo "$mf" | sed -e 's/:.*$//'`
13610 + # Check whether this is an Automake generated Makefile or not.
13611 + # We used to match only the files named `Makefile.in', but
13612 + # some people rename them; so instead we look at the file content.
13613 + # Grep'ing the first line is not enough: some people post-process
13614 + # each Makefile.in and add a new line on top of each file to say so.
13615 + # Grep'ing the whole file is not good either: AIX grep has a line
13616 + # limit of 2048, but all sed's we know have understand at least 4000.
13617 + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13618 + dirpart=`$as_dirname -- "$mf" ||
13619 +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13620 + X"$mf" : 'X\(//\)[^/]' \| \
13621 + X"$mf" : 'X\(//\)$' \| \
13622 + X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13623 +$as_echo X"$mf" |
13624 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13625 + s//\1/
13626 + q
13627 + }
13628 + /^X\(\/\/\)[^/].*/{
13629 + s//\1/
13630 + q
13631 + }
13632 + /^X\(\/\/\)$/{
13633 + s//\1/
13634 + q
13635 + }
13636 + /^X\(\/\).*/{
13637 + s//\1/
13638 + q
13639 + }
13640 + s/.*/./; q'`
13641 + else
13642 + continue
13643 + fi
13644 + # Extract the definition of DEPDIR, am__include, and am__quote
13645 + # from the Makefile without running `make'.
13646 + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13647 + test -z "$DEPDIR" && continue
13648 + am__include=`sed -n 's/^am__include = //p' < "$mf"`
13649 + test -z "am__include" && continue
13650 + am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13651 + # When using ansi2knr, U may be empty or an underscore; expand it
13652 + U=`sed -n 's/^U = //p' < "$mf"`
13653 + # Find all dependency output files, they are included files with
13654 + # $(DEPDIR) in their names. We invoke sed twice because it is the
13655 + # simplest approach to changing $(DEPDIR) to its actual value in the
13656 + # expansion.
13657 + for file in `sed -n "
13658 + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13659 + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13660 + # Make sure the directory exists.
13661 + test -f "$dirpart/$file" && continue
13662 + fdir=`$as_dirname -- "$file" ||
13663 +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13664 + X"$file" : 'X\(//\)[^/]' \| \
13665 + X"$file" : 'X\(//\)$' \| \
13666 + X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13667 +$as_echo X"$file" |
13668 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13669 + s//\1/
13670 + q
13671 + }
13672 + /^X\(\/\/\)[^/].*/{
13673 + s//\1/
13674 + q
13675 + }
13676 + /^X\(\/\/\)$/{
13677 + s//\1/
13678 + q
13679 + }
13680 + /^X\(\/\).*/{
13681 + s//\1/
13682 + q
13683 + }
13684 + s/.*/./; q'`
13685 + as_dir=$dirpart/$fdir; as_fn_mkdir_p
13686 + # echo "creating $dirpart/$file"
13687 + echo '# dummy' > "$dirpart/$file"
13688 + done
13689 + done
13690 +}
13691 + ;;
13692 +
13693 + esac
13694 +done # for ac_tag
13695 +
13696 +
13697 +as_fn_exit 0
13698 +_ACEOF
13699 +ac_clean_files=$ac_clean_files_save
13700 +
13701 +test $ac_write_fail = 0 ||
13702 + as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13703 +
13704 +
13705 +# configure is writing to config.log, and then calls config.status.
13706 +# config.status does its own redirection, appending to config.log.
13707 +# Unfortunately, on DOS this fails, as config.log is still kept open
13708 +# by configure, so config.status won't be able to write to it; its
13709 +# output is simply discarded. So we exec the FD to /dev/null,
13710 +# effectively closing config.log, so it can be properly (re)opened and
13711 +# appended to by config.status. When coming back to configure, we
13712 +# need to make the FD available again.
13713 +if test "$no_create" != yes; then
13714 + ac_cs_success=:
13715 + ac_config_status_args=
13716 + test "$silent" = yes &&
13717 + ac_config_status_args="$ac_config_status_args --quiet"
13718 + exec 5>/dev/null
13719 + $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13720 + exec 5>>config.log
13721 + # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13722 + # would make configure fail if this is the last instruction.
13723 + $ac_cs_success || as_fn_exit 1
13724 +fi
13725 +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13726 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13727 +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13728 +fi
13729 +
13730
13731
13732 Property changes on: trunk/baselayout-prefix/gnulib/configure
13733 ___________________________________________________________________
13734 Added: svn:executable
13735 + *
13736
13737 Added: trunk/baselayout-prefix/gnulib/configure.ac
13738 ===================================================================
13739 --- trunk/baselayout-prefix/gnulib/configure.ac (rev 0)
13740 +++ trunk/baselayout-prefix/gnulib/configure.ac 2011-03-31 16:43:45 UTC (rev 1693)
13741 @@ -0,0 +1,123 @@
13742 +# Process this file with autoconf to produce a configure script.
13743 +AC_INIT([dummy], [0])
13744 +AC_CONFIG_AUX_DIR([build-aux])
13745 +AM_INIT_AUTOMAKE
13746 +
13747 +AM_CONFIG_HEADER([config.h])
13748 +
13749 +AC_PROG_CC
13750 +AC_PROG_INSTALL
13751 +AC_PROG_MAKE_SET
13752 +
13753 +# For autobuild.
13754 +AC_CANONICAL_BUILD
13755 +AC_CANONICAL_HOST
13756 +
13757 +m4_pattern_forbid([^gl_[A-Z]])dnl the gnulib macro namespace
13758 +m4_pattern_allow([^gl_ES$])dnl a valid locale name
13759 +m4_pattern_allow([^gl_LIBOBJS$])dnl a variable
13760 +m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable
13761 +
13762 +AC_PROG_RANLIB
13763 +
13764 +gl_USE_SYSTEM_EXTENSIONS
13765 +AM_CONDITIONAL([GL_COND_LIBTOOL], [false])
13766 +gl_cond_libtool=false
13767 +gl_libdeps=
13768 +gl_ltlibdeps=
13769 +AC_DEFUN([gl_INIT], [
13770 + m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
13771 + m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
13772 + m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
13773 + m4_pushdef([gl_LIBSOURCES_LIST], [])
13774 + m4_pushdef([gl_LIBSOURCES_DIR], [])
13775 + gl_COMMON
13776 +gl_source_base='gllib'
13777 +
13778 +gl_GETOPT
13779 +
13780 +AC_SUBST([LIBINTL])
13781 +AC_SUBST([LTLIBINTL])
13782 +
13783 +
13784 +
13785 +gl_HEADER_STRING_H
13786 +
13787 +gl_FUNC_STRNDUP
13788 +gl_STRING_MODULE_INDICATOR([strndup])
13789 +
13790 +gl_FUNC_STRNLEN
13791 +gl_STRING_MODULE_INDICATOR([strnlen])
13792 +
13793 +gl_FUNC_STRSEP
13794 +gl_STRING_MODULE_INDICATOR([strsep])
13795 +
13796 +gl_UNISTD_H
13797 +
13798 +
13799 + m4_ifval(gl_LIBSOURCES_LIST, [
13800 + m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
13801 + for gl_file in ]gl_LIBSOURCES_LIST[ ; do
13802 + if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
13803 + echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
13804 + exit 1
13805 + fi
13806 + done])dnl
13807 + m4_if(m4_sysval, [0], [],
13808 + [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
13809 + ])
13810 + m4_popdef([gl_LIBSOURCES_DIR])
13811 + m4_popdef([gl_LIBSOURCES_LIST])
13812 + m4_popdef([AC_LIBSOURCES])
13813 + m4_popdef([AC_REPLACE_FUNCS])
13814 + m4_popdef([AC_LIBOBJ])
13815 + AC_CONFIG_COMMANDS_PRE([
13816 + gl_libobjs=
13817 + gl_ltlibobjs=
13818 + if test -n "$gl_LIBOBJS"; then
13819 + # Remove the extension.
13820 + sed_drop_objext='s/\.o$//;s/\.obj$//'
13821 + for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
13822 + gl_libobjs="$gl_libobjs $i.$ac_objext"
13823 + gl_ltlibobjs="$gl_ltlibobjs $i.lo"
13824 + done
13825 + fi
13826 + AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
13827 + AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
13828 + ])
13829 + LIBGNU_LIBDEPS="$gl_libdeps"
13830 + AC_SUBST([LIBGNU_LIBDEPS])
13831 + LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
13832 + AC_SUBST([LIBGNU_LTLIBDEPS])
13833 +])
13834 +
13835 +# Like AC_LIBOBJ, except that the module name goes
13836 +# into gl_LIBOBJS instead of into LIBOBJS.
13837 +AC_DEFUN([gl_LIBOBJ], [
13838 + AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
13839 + gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
13840 +])
13841 +
13842 +# Like AC_REPLACE_FUNCS, except that the module name goes
13843 +# into gl_LIBOBJS instead of into LIBOBJS.
13844 +AC_DEFUN([gl_REPLACE_FUNCS], [
13845 + m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
13846 + AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
13847 +])
13848 +
13849 +# Like AC_LIBSOURCES, except the directory where the source file is
13850 +# expected is derived from the gnulib-tool parameterization,
13851 +# and alloca is special cased (for the alloca-opt module).
13852 +# We could also entirely rely on EXTRA_lib..._SOURCES.
13853 +AC_DEFUN([gl_LIBSOURCES], [
13854 + m4_foreach([_gl_NAME], [$1], [
13855 + m4_if(_gl_NAME, [alloca.c], [], [
13856 + m4_define([gl_LIBSOURCES_DIR], [gllib])
13857 + m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
13858 + ])
13859 + ])
13860 +])
13861 +
13862 +gl_INIT
13863 +
13864 +AC_OUTPUT([Makefile gllib/Makefile glm4/Makefile])
13865
13866 Added: trunk/baselayout-prefix/gnulib/gllib/Makefile.am
13867 ===================================================================
13868 --- trunk/baselayout-prefix/gnulib/gllib/Makefile.am (rev 0)
13869 +++ trunk/baselayout-prefix/gnulib/gllib/Makefile.am 2011-03-31 16:43:45 UTC (rev 1693)
13870 @@ -0,0 +1,258 @@
13871 +## DO NOT EDIT! GENERATED AUTOMATICALLY!
13872 +## Process this file with automake to produce Makefile.in.
13873 +# Copyright (C) 2002-2009 Free Software Foundation, Inc.
13874 +#
13875 +# This file is free software, distributed under the terms of the GNU
13876 +# General Public License. As a special exception to the GNU General
13877 +# Public License, this file may be distributed as part of a program
13878 +# that contains a configuration script generated by Autoconf, under
13879 +# the same distribution terms as the rest of that program.
13880 +#
13881 +# Generated by gnulib-tool.
13882 +
13883 +AUTOMAKE_OPTIONS = 1.5 gnits
13884 +
13885 +SUBDIRS =
13886 +noinst_HEADERS =
13887 +noinst_LIBRARIES =
13888 +noinst_LTLIBRARIES =
13889 +EXTRA_DIST =
13890 +BUILT_SOURCES =
13891 +SUFFIXES =
13892 +MOSTLYCLEANFILES = core *.stackdump
13893 +MOSTLYCLEANDIRS =
13894 +CLEANFILES =
13895 +DISTCLEANFILES =
13896 +MAINTAINERCLEANFILES =
13897 +
13898 +AM_CPPFLAGS =
13899 +
13900 +noinst_LIBRARIES += libgnu.a
13901 +
13902 +libgnu_a_SOURCES =
13903 +libgnu_a_LIBADD = $(gl_LIBOBJS)
13904 +libgnu_a_DEPENDENCIES = $(gl_LIBOBJS)
13905 +EXTRA_libgnu_a_SOURCES =
13906 +
13907 +## begin gnulib module getopt
13908 +
13909 +BUILT_SOURCES += $(GETOPT_H)
13910 +
13911 +# We need the following in order to create <getopt.h> when the system
13912 +# doesn't have one that works with the given compiler.
13913 +getopt.h: getopt.in.h
13914 + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
13915 + cat $(srcdir)/getopt.in.h; \
13916 + } > $@-t
13917 + mv -f $@-t $@
13918 +MOSTLYCLEANFILES += getopt.h getopt.h-t
13919 +
13920 +EXTRA_DIST += getopt.c getopt.in.h getopt1.c getopt_int.h
13921 +
13922 +EXTRA_libgnu_a_SOURCES += getopt.c getopt1.c
13923 +
13924 +## end gnulib module getopt
13925 +
13926 +## begin gnulib module gettext-h
13927 +
13928 +libgnu_a_SOURCES += gettext.h
13929 +
13930 +## end gnulib module gettext-h
13931 +
13932 +## begin gnulib module link-warning
13933 +
13934 +LINK_WARNING_H=$(top_srcdir)/build-aux/link-warning.h
13935 +
13936 +EXTRA_DIST += $(top_srcdir)/build-aux/link-warning.h
13937 +
13938 +## end gnulib module link-warning
13939 +
13940 +## begin gnulib module string
13941 +
13942 +BUILT_SOURCES += string.h
13943 +
13944 +# We need the following in order to create <string.h> when the system
13945 +# doesn't have one that works with the given compiler.
13946 +string.h: string.in.h
13947 + rm -f $@-t $@
13948 + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
13949 + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
13950 + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
13951 + -e 's|@''NEXT_STRING_H''@|$(NEXT_STRING_H)|g' \
13952 + -e 's|@''GNULIB_MBSLEN''@|$(GNULIB_MBSLEN)|g' \
13953 + -e 's|@''GNULIB_MBSNLEN''@|$(GNULIB_MBSNLEN)|g' \
13954 + -e 's|@''GNULIB_MBSCHR''@|$(GNULIB_MBSCHR)|g' \
13955 + -e 's|@''GNULIB_MBSRCHR''@|$(GNULIB_MBSRCHR)|g' \
13956 + -e 's|@''GNULIB_MBSSTR''@|$(GNULIB_MBSSTR)|g' \
13957 + -e 's|@''GNULIB_MBSCASECMP''@|$(GNULIB_MBSCASECMP)|g' \
13958 + -e 's|@''GNULIB_MBSNCASECMP''@|$(GNULIB_MBSNCASECMP)|g' \
13959 + -e 's|@''GNULIB_MBSPCASECMP''@|$(GNULIB_MBSPCASECMP)|g' \
13960 + -e 's|@''GNULIB_MBSCASESTR''@|$(GNULIB_MBSCASESTR)|g' \
13961 + -e 's|@''GNULIB_MBSCSPN''@|$(GNULIB_MBSCSPN)|g' \
13962 + -e 's|@''GNULIB_MBSPBRK''@|$(GNULIB_MBSPBRK)|g' \
13963 + -e 's|@''GNULIB_MBSSPN''@|$(GNULIB_MBSSPN)|g' \
13964 + -e 's|@''GNULIB_MBSSEP''@|$(GNULIB_MBSSEP)|g' \
13965 + -e 's|@''GNULIB_MBSTOK_R''@|$(GNULIB_MBSTOK_R)|g' \
13966 + -e 's|@''GNULIB_MEMMEM''@|$(GNULIB_MEMMEM)|g' \
13967 + -e 's|@''GNULIB_MEMPCPY''@|$(GNULIB_MEMPCPY)|g' \
13968 + -e 's|@''GNULIB_MEMRCHR''@|$(GNULIB_MEMRCHR)|g' \
13969 + -e 's|@''GNULIB_RAWMEMCHR''@|$(GNULIB_RAWMEMCHR)|g' \
13970 + -e 's|@''GNULIB_STPCPY''@|$(GNULIB_STPCPY)|g' \
13971 + -e 's|@''GNULIB_STPNCPY''@|$(GNULIB_STPNCPY)|g' \
13972 + -e 's|@''GNULIB_STRCHRNUL''@|$(GNULIB_STRCHRNUL)|g' \
13973 + -e 's|@''GNULIB_STRDUP''@|$(GNULIB_STRDUP)|g' \
13974 + -e 's|@''GNULIB_STRNDUP''@|$(GNULIB_STRNDUP)|g' \
13975 + -e 's|@''GNULIB_STRNLEN''@|$(GNULIB_STRNLEN)|g' \
13976 + -e 's|@''GNULIB_STRPBRK''@|$(GNULIB_STRPBRK)|g' \
13977 + -e 's|@''GNULIB_STRSEP''@|$(GNULIB_STRSEP)|g' \
13978 + -e 's|@''GNULIB_STRSTR''@|$(GNULIB_STRSTR)|g' \
13979 + -e 's|@''GNULIB_STRCASESTR''@|$(GNULIB_STRCASESTR)|g' \
13980 + -e 's|@''GNULIB_STRTOK_R''@|$(GNULIB_STRTOK_R)|g' \
13981 + -e 's|@''GNULIB_STRERROR''@|$(GNULIB_STRERROR)|g' \
13982 + -e 's|@''GNULIB_STRSIGNAL''@|$(GNULIB_STRSIGNAL)|g' \
13983 + -e 's|@''GNULIB_STRVERSCMP''@|$(GNULIB_STRVERSCMP)|g' \
13984 + -e 's|@''HAVE_DECL_MEMMEM''@|$(HAVE_DECL_MEMMEM)|g' \
13985 + -e 's|@''HAVE_MEMPCPY''@|$(HAVE_MEMPCPY)|g' \
13986 + -e 's|@''HAVE_DECL_MEMRCHR''@|$(HAVE_DECL_MEMRCHR)|g' \
13987 + -e 's|@''HAVE_RAWMEMCHR''@|$(HAVE_RAWMEMCHR)|g' \
13988 + -e 's|@''HAVE_STPCPY''@|$(HAVE_STPCPY)|g' \
13989 + -e 's|@''HAVE_STPNCPY''@|$(HAVE_STPNCPY)|g' \
13990 + -e 's|@''HAVE_STRCHRNUL''@|$(HAVE_STRCHRNUL)|g' \
13991 + -e 's|@''HAVE_DECL_STRDUP''@|$(HAVE_DECL_STRDUP)|g' \
13992 + -e 's|@''HAVE_STRNDUP''@|$(HAVE_STRNDUP)|g' \
13993 + -e 's|@''HAVE_DECL_STRNDUP''@|$(HAVE_DECL_STRNDUP)|g' \
13994 + -e 's|@''HAVE_DECL_STRNLEN''@|$(HAVE_DECL_STRNLEN)|g' \
13995 + -e 's|@''HAVE_STRPBRK''@|$(HAVE_STRPBRK)|g' \
13996 + -e 's|@''HAVE_STRSEP''@|$(HAVE_STRSEP)|g' \
13997 + -e 's|@''HAVE_STRCASESTR''@|$(HAVE_STRCASESTR)|g' \
13998 + -e 's|@''HAVE_DECL_STRTOK_R''@|$(HAVE_DECL_STRTOK_R)|g' \
13999 + -e 's|@''HAVE_DECL_STRERROR''@|$(HAVE_DECL_STRERROR)|g' \
14000 + -e 's|@''HAVE_DECL_STRSIGNAL''@|$(HAVE_DECL_STRSIGNAL)|g' \
14001 + -e 's|@''HAVE_STRVERSCMP''@|$(HAVE_STRVERSCMP)|g' \
14002 + -e 's|@''REPLACE_MEMMEM''@|$(REPLACE_MEMMEM)|g' \
14003 + -e 's|@''REPLACE_STRCASESTR''@|$(REPLACE_STRCASESTR)|g' \
14004 + -e 's|@''REPLACE_STRDUP''@|$(REPLACE_STRDUP)|g' \
14005 + -e 's|@''REPLACE_STRSTR''@|$(REPLACE_STRSTR)|g' \
14006 + -e 's|@''REPLACE_STRERROR''@|$(REPLACE_STRERROR)|g' \
14007 + -e 's|@''REPLACE_STRSIGNAL''@|$(REPLACE_STRSIGNAL)|g' \
14008 + -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
14009 + < $(srcdir)/string.in.h; \
14010 + } > $@-t
14011 + mv $@-t $@
14012 +MOSTLYCLEANFILES += string.h string.h-t
14013 +
14014 +EXTRA_DIST += string.in.h
14015 +
14016 +## end gnulib module string
14017 +
14018 +## begin gnulib module strndup
14019 +
14020 +
14021 +EXTRA_DIST += strndup.c
14022 +
14023 +EXTRA_libgnu_a_SOURCES += strndup.c
14024 +
14025 +## end gnulib module strndup
14026 +
14027 +## begin gnulib module strnlen
14028 +
14029 +
14030 +EXTRA_DIST += strnlen.c
14031 +
14032 +EXTRA_libgnu_a_SOURCES += strnlen.c
14033 +
14034 +## end gnulib module strnlen
14035 +
14036 +## begin gnulib module strsep
14037 +
14038 +
14039 +EXTRA_DIST += strsep.c
14040 +
14041 +EXTRA_libgnu_a_SOURCES += strsep.c
14042 +
14043 +## end gnulib module strsep
14044 +
14045 +## begin gnulib module unistd
14046 +
14047 +BUILT_SOURCES += unistd.h
14048 +
14049 +# We need the following in order to create an empty placeholder for
14050 +# <unistd.h> when the system doesn't have one.
14051 +unistd.h: unistd.in.h
14052 + rm -f $@-t $@
14053 + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
14054 + sed -e 's|@''HAVE_UNISTD_H''@|$(HAVE_UNISTD_H)|g' \
14055 + -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
14056 + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
14057 + -e 's|@''NEXT_UNISTD_H''@|$(NEXT_UNISTD_H)|g' \
14058 + -e 's|@''GNULIB_CHOWN''@|$(GNULIB_CHOWN)|g' \
14059 + -e 's|@''GNULIB_CLOSE''@|$(GNULIB_CLOSE)|g' \
14060 + -e 's|@''GNULIB_DUP2''@|$(GNULIB_DUP2)|g' \
14061 + -e 's|@''GNULIB_ENVIRON''@|$(GNULIB_ENVIRON)|g' \
14062 + -e 's|@''GNULIB_EUIDACCESS''@|$(GNULIB_EUIDACCESS)|g' \
14063 + -e 's|@''GNULIB_FCHDIR''@|$(GNULIB_FCHDIR)|g' \
14064 + -e 's|@''GNULIB_FSYNC''@|$(GNULIB_FSYNC)|g' \
14065 + -e 's|@''GNULIB_FTRUNCATE''@|$(GNULIB_FTRUNCATE)|g' \
14066 + -e 's|@''GNULIB_GETCWD''@|$(GNULIB_GETCWD)|g' \
14067 + -e 's|@''GNULIB_GETDOMAINNAME''@|$(GNULIB_GETDOMAINNAME)|g' \
14068 + -e 's|@''GNULIB_GETDTABLESIZE''@|$(GNULIB_GETDTABLESIZE)|g' \
14069 + -e 's|@''GNULIB_GETHOSTNAME''@|$(GNULIB_GETHOSTNAME)|g' \
14070 + -e 's|@''GNULIB_GETLOGIN_R''@|$(GNULIB_GETLOGIN_R)|g' \
14071 + -e 's|@''GNULIB_GETPAGESIZE''@|$(GNULIB_GETPAGESIZE)|g' \
14072 + -e 's|@''GNULIB_GETUSERSHELL''@|$(GNULIB_GETUSERSHELL)|g' \
14073 + -e 's|@''GNULIB_LCHOWN''@|$(GNULIB_LCHOWN)|g' \
14074 + -e 's|@''GNULIB_LINK''@|$(GNULIB_LINK)|g' \
14075 + -e 's|@''GNULIB_LSEEK''@|$(GNULIB_LSEEK)|g' \
14076 + -e 's|@''GNULIB_READLINK''@|$(GNULIB_READLINK)|g' \
14077 + -e 's|@''GNULIB_SLEEP''@|$(GNULIB_SLEEP)|g' \
14078 + -e 's|@''GNULIB_UNISTD_H_SIGPIPE''@|$(GNULIB_UNISTD_H_SIGPIPE)|g' \
14079 + -e 's|@''GNULIB_WRITE''@|$(GNULIB_WRITE)|g' \
14080 + -e 's|@''HAVE_DUP2''@|$(HAVE_DUP2)|g' \
14081 + -e 's|@''HAVE_EUIDACCESS''@|$(HAVE_EUIDACCESS)|g' \
14082 + -e 's|@''HAVE_FSYNC''@|$(HAVE_FSYNC)|g' \
14083 + -e 's|@''HAVE_FTRUNCATE''@|$(HAVE_FTRUNCATE)|g' \
14084 + -e 's|@''HAVE_GETDOMAINNAME''@|$(HAVE_GETDOMAINNAME)|g' \
14085 + -e 's|@''HAVE_GETDTABLESIZE''@|$(HAVE_GETDTABLESIZE)|g' \
14086 + -e 's|@''HAVE_GETHOSTNAME''@|$(HAVE_GETHOSTNAME)|g' \
14087 + -e 's|@''HAVE_GETPAGESIZE''@|$(HAVE_GETPAGESIZE)|g' \
14088 + -e 's|@''HAVE_GETUSERSHELL''@|$(HAVE_GETUSERSHELL)|g' \
14089 + -e 's|@''HAVE_LINK''@|$(HAVE_LINK)|g' \
14090 + -e 's|@''HAVE_READLINK''@|$(HAVE_READLINK)|g' \
14091 + -e 's|@''HAVE_SLEEP''@|$(HAVE_SLEEP)|g' \
14092 + -e 's|@''HAVE_DECL_ENVIRON''@|$(HAVE_DECL_ENVIRON)|g' \
14093 + -e 's|@''HAVE_DECL_GETLOGIN_R''@|$(HAVE_DECL_GETLOGIN_R)|g' \
14094 + -e 's|@''HAVE_OS_H''@|$(HAVE_OS_H)|g' \
14095 + -e 's|@''HAVE_SYS_PARAM_H''@|$(HAVE_SYS_PARAM_H)|g' \
14096 + -e 's|@''REPLACE_CHOWN''@|$(REPLACE_CHOWN)|g' \
14097 + -e 's|@''REPLACE_CLOSE''@|$(REPLACE_CLOSE)|g' \
14098 + -e 's|@''REPLACE_FCHDIR''@|$(REPLACE_FCHDIR)|g' \
14099 + -e 's|@''REPLACE_GETCWD''@|$(REPLACE_GETCWD)|g' \
14100 + -e 's|@''REPLACE_GETPAGESIZE''@|$(REPLACE_GETPAGESIZE)|g' \
14101 + -e 's|@''REPLACE_LCHOWN''@|$(REPLACE_LCHOWN)|g' \
14102 + -e 's|@''REPLACE_LSEEK''@|$(REPLACE_LSEEK)|g' \
14103 + -e 's|@''REPLACE_WRITE''@|$(REPLACE_WRITE)|g' \
14104 + -e 's|@''UNISTD_H_HAVE_WINSOCK2_H''@|$(UNISTD_H_HAVE_WINSOCK2_H)|g' \
14105 + -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
14106 + < $(srcdir)/unistd.in.h; \
14107 + } > $@-t
14108 + mv $@-t $@
14109 +MOSTLYCLEANFILES += unistd.h unistd.h-t
14110 +
14111 +EXTRA_DIST += unistd.in.h
14112 +
14113 +## end gnulib module unistd
14114 +
14115 +## begin gnulib module dummy
14116 +
14117 +libgnu_a_SOURCES += dummy.c
14118 +
14119 +## end gnulib module dummy
14120 +
14121 +
14122 +mostlyclean-local: mostlyclean-generic
14123 + @for dir in '' $(MOSTLYCLEANDIRS); do \
14124 + if test -n "$$dir" && test -d $$dir; then \
14125 + echo "rmdir $$dir"; rmdir $$dir; \
14126 + fi; \
14127 + done; \
14128 + :
14129
14130 Added: trunk/baselayout-prefix/gnulib/gllib/Makefile.in
14131 ===================================================================
14132 --- trunk/baselayout-prefix/gnulib/gllib/Makefile.in (rev 0)
14133 +++ trunk/baselayout-prefix/gnulib/gllib/Makefile.in 2011-03-31 16:43:45 UTC (rev 1693)
14134 @@ -0,0 +1,909 @@
14135 +# Makefile.in generated by automake 1.11.1 from Makefile.am.
14136 +# @configure_input@
14137 +
14138 +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
14139 +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
14140 +# Inc.
14141 +# This Makefile.in is free software; the Free Software Foundation
14142 +# gives unlimited permission to copy and/or distribute it,
14143 +# with or without modifications, as long as this notice is preserved.
14144 +
14145 +# This program is distributed in the hope that it will be useful,
14146 +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
14147 +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
14148 +# PARTICULAR PURPOSE.
14149 +
14150 +@SET_MAKE@
14151 +
14152 +# Copyright (C) 2002-2009 Free Software Foundation, Inc.
14153 +#
14154 +# This file is free software, distributed under the terms of the GNU
14155 +# General Public License. As a special exception to the GNU General
14156 +# Public License, this file may be distributed as part of a program
14157 +# that contains a configuration script generated by Autoconf, under
14158 +# the same distribution terms as the rest of that program.
14159 +#
14160 +# Generated by gnulib-tool.
14161 +
14162 +
14163 +
14164 +VPATH = @srcdir@
14165 +pkgdatadir = $(datadir)/@PACKAGE@
14166 +pkgincludedir = $(includedir)/@PACKAGE@
14167 +pkglibdir = $(libdir)/@PACKAGE@
14168 +pkglibexecdir = $(libexecdir)/@PACKAGE@
14169 +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
14170 +install_sh_DATA = $(install_sh) -c -m 644
14171 +install_sh_PROGRAM = $(install_sh) -c
14172 +install_sh_SCRIPT = $(install_sh) -c
14173 +INSTALL_HEADER = $(INSTALL_DATA)
14174 +transform = $(program_transform_name)
14175 +NORMAL_INSTALL = :
14176 +PRE_INSTALL = :
14177 +POST_INSTALL = :
14178 +NORMAL_UNINSTALL = :
14179 +PRE_UNINSTALL = :
14180 +POST_UNINSTALL = :
14181 +build_triplet = @build@
14182 +host_triplet = @host@
14183 +subdir = gllib
14184 +DIST_COMMON = $(noinst_HEADERS) $(srcdir)/Makefile.am \
14185 + $(srcdir)/Makefile.in
14186 +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
14187 +am__aclocal_m4_deps = $(top_srcdir)/glm4/00gnulib.m4 \
14188 + $(top_srcdir)/glm4/extensions.m4 $(top_srcdir)/glm4/getopt.m4 \
14189 + $(top_srcdir)/glm4/gnulib-common.m4 \
14190 + $(top_srcdir)/glm4/include_next.m4 \
14191 + $(top_srcdir)/glm4/onceonly.m4 $(top_srcdir)/glm4/string_h.m4 \
14192 + $(top_srcdir)/glm4/strndup.m4 $(top_srcdir)/glm4/strnlen.m4 \
14193 + $(top_srcdir)/glm4/strsep.m4 $(top_srcdir)/glm4/unistd_h.m4 \
14194 + $(top_srcdir)/configure.ac
14195 +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
14196 + $(ACLOCAL_M4)
14197 +mkinstalldirs = $(install_sh) -d
14198 +CONFIG_HEADER = $(top_builddir)/config.h
14199 +CONFIG_CLEAN_FILES =
14200 +CONFIG_CLEAN_VPATH_FILES =
14201 +LIBRARIES = $(noinst_LIBRARIES)
14202 +AR = ar
14203 +ARFLAGS = cru
14204 +libgnu_a_AR = $(AR) $(ARFLAGS)
14205 +am__DEPENDENCIES_1 =
14206 +am_libgnu_a_OBJECTS = dummy.$(OBJEXT)
14207 +libgnu_a_OBJECTS = $(am_libgnu_a_OBJECTS)
14208 +LTLIBRARIES = $(noinst_LTLIBRARIES)
14209 +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
14210 +depcomp = $(SHELL) $(top_srcdir)/build-aux/depcomp
14211 +am__depfiles_maybe = depfiles
14212 +am__mv = mv -f
14213 +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
14214 + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
14215 +CCLD = $(CC)
14216 +LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
14217 +SOURCES = $(libgnu_a_SOURCES) $(EXTRA_libgnu_a_SOURCES)
14218 +DIST_SOURCES = $(libgnu_a_SOURCES) $(EXTRA_libgnu_a_SOURCES)
14219 +RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
14220 + html-recursive info-recursive install-data-recursive \
14221 + install-dvi-recursive install-exec-recursive \
14222 + install-html-recursive install-info-recursive \
14223 + install-pdf-recursive install-ps-recursive install-recursive \
14224 + installcheck-recursive installdirs-recursive pdf-recursive \
14225 + ps-recursive uninstall-recursive
14226 +HEADERS = $(noinst_HEADERS)
14227 +RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
14228 + distclean-recursive maintainer-clean-recursive
14229 +AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
14230 + $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
14231 + distdir
14232 +ETAGS = etags
14233 +CTAGS = ctags
14234 +DIST_SUBDIRS = $(SUBDIRS)
14235 +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
14236 +am__relativize = \
14237 + dir0=`pwd`; \
14238 + sed_first='s,^\([^/]*\)/.*$$,\1,'; \
14239 + sed_rest='s,^[^/]*/*,,'; \
14240 + sed_last='s,^.*/\([^/]*\)$$,\1,'; \
14241 + sed_butlast='s,/*[^/]*$$,,'; \
14242 + while test -n "$$dir1"; do \
14243 + first=`echo "$$dir1" | sed -e "$$sed_first"`; \
14244 + if test "$$first" != "."; then \
14245 + if test "$$first" = ".."; then \
14246 + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
14247 + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
14248 + else \
14249 + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
14250 + if test "$$first2" = "$$first"; then \
14251 + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
14252 + else \
14253 + dir2="../$$dir2"; \
14254 + fi; \
14255 + dir0="$$dir0"/"$$first"; \
14256 + fi; \
14257 + fi; \
14258 + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
14259 + done; \
14260 + reldir="$$dir2"
14261 +ACLOCAL = @ACLOCAL@
14262 +AMTAR = @AMTAR@
14263 +AUTOCONF = @AUTOCONF@
14264 +AUTOHEADER = @AUTOHEADER@
14265 +AUTOMAKE = @AUTOMAKE@
14266 +AWK = @AWK@
14267 +CC = @CC@
14268 +CCDEPMODE = @CCDEPMODE@
14269 +CFLAGS = @CFLAGS@
14270 +CPP = @CPP@
14271 +CPPFLAGS = @CPPFLAGS@
14272 +CYGPATH_W = @CYGPATH_W@
14273 +DEFS = @DEFS@
14274 +DEPDIR = @DEPDIR@
14275 +ECHO_C = @ECHO_C@
14276 +ECHO_N = @ECHO_N@
14277 +ECHO_T = @ECHO_T@
14278 +EGREP = @EGREP@
14279 +EXEEXT = @EXEEXT@
14280 +GETOPT_H = @GETOPT_H@
14281 +GNULIB_CHOWN = @GNULIB_CHOWN@
14282 +GNULIB_CLOSE = @GNULIB_CLOSE@
14283 +GNULIB_DUP2 = @GNULIB_DUP2@
14284 +GNULIB_ENVIRON = @GNULIB_ENVIRON@
14285 +GNULIB_EUIDACCESS = @GNULIB_EUIDACCESS@
14286 +GNULIB_FCHDIR = @GNULIB_FCHDIR@
14287 +GNULIB_FSYNC = @GNULIB_FSYNC@
14288 +GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@
14289 +GNULIB_GETCWD = @GNULIB_GETCWD@
14290 +GNULIB_GETDOMAINNAME = @GNULIB_GETDOMAINNAME@
14291 +GNULIB_GETDTABLESIZE = @GNULIB_GETDTABLESIZE@
14292 +GNULIB_GETHOSTNAME = @GNULIB_GETHOSTNAME@
14293 +GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@
14294 +GNULIB_GETPAGESIZE = @GNULIB_GETPAGESIZE@
14295 +GNULIB_GETUSERSHELL = @GNULIB_GETUSERSHELL@
14296 +GNULIB_LCHOWN = @GNULIB_LCHOWN@
14297 +GNULIB_LINK = @GNULIB_LINK@
14298 +GNULIB_LSEEK = @GNULIB_LSEEK@
14299 +GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@
14300 +GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@
14301 +GNULIB_MBSCHR = @GNULIB_MBSCHR@
14302 +GNULIB_MBSCSPN = @GNULIB_MBSCSPN@
14303 +GNULIB_MBSLEN = @GNULIB_MBSLEN@
14304 +GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@
14305 +GNULIB_MBSNLEN = @GNULIB_MBSNLEN@
14306 +GNULIB_MBSPBRK = @GNULIB_MBSPBRK@
14307 +GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@
14308 +GNULIB_MBSRCHR = @GNULIB_MBSRCHR@
14309 +GNULIB_MBSSEP = @GNULIB_MBSSEP@
14310 +GNULIB_MBSSPN = @GNULIB_MBSSPN@
14311 +GNULIB_MBSSTR = @GNULIB_MBSSTR@
14312 +GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@
14313 +GNULIB_MEMMEM = @GNULIB_MEMMEM@
14314 +GNULIB_MEMPCPY = @GNULIB_MEMPCPY@
14315 +GNULIB_MEMRCHR = @GNULIB_MEMRCHR@
14316 +GNULIB_RAWMEMCHR = @GNULIB_RAWMEMCHR@
14317 +GNULIB_READLINK = @GNULIB_READLINK@
14318 +GNULIB_SLEEP = @GNULIB_SLEEP@
14319 +GNULIB_STPCPY = @GNULIB_STPCPY@
14320 +GNULIB_STPNCPY = @GNULIB_STPNCPY@
14321 +GNULIB_STRCASESTR = @GNULIB_STRCASESTR@
14322 +GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@
14323 +GNULIB_STRDUP = @GNULIB_STRDUP@
14324 +GNULIB_STRERROR = @GNULIB_STRERROR@
14325 +GNULIB_STRNDUP = @GNULIB_STRNDUP@
14326 +GNULIB_STRNLEN = @GNULIB_STRNLEN@
14327 +GNULIB_STRPBRK = @GNULIB_STRPBRK@
14328 +GNULIB_STRSEP = @GNULIB_STRSEP@
14329 +GNULIB_STRSIGNAL = @GNULIB_STRSIGNAL@
14330 +GNULIB_STRSTR = @GNULIB_STRSTR@
14331 +GNULIB_STRTOK_R = @GNULIB_STRTOK_R@
14332 +GNULIB_STRVERSCMP = @GNULIB_STRVERSCMP@
14333 +GNULIB_UNISTD_H_SIGPIPE = @GNULIB_UNISTD_H_SIGPIPE@
14334 +GNULIB_WRITE = @GNULIB_WRITE@
14335 +GREP = @GREP@
14336 +HAVE_DECL_ENVIRON = @HAVE_DECL_ENVIRON@
14337 +HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@
14338 +HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@
14339 +HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@
14340 +HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@
14341 +HAVE_DECL_STRERROR = @HAVE_DECL_STRERROR@
14342 +HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@
14343 +HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@
14344 +HAVE_DECL_STRSIGNAL = @HAVE_DECL_STRSIGNAL@
14345 +HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@
14346 +HAVE_DUP2 = @HAVE_DUP2@
14347 +HAVE_EUIDACCESS = @HAVE_EUIDACCESS@
14348 +HAVE_FSYNC = @HAVE_FSYNC@
14349 +HAVE_FTRUNCATE = @HAVE_FTRUNCATE@
14350 +HAVE_GETDOMAINNAME = @HAVE_GETDOMAINNAME@
14351 +HAVE_GETDTABLESIZE = @HAVE_GETDTABLESIZE@
14352 +HAVE_GETHOSTNAME = @HAVE_GETHOSTNAME@
14353 +HAVE_GETPAGESIZE = @HAVE_GETPAGESIZE@
14354 +HAVE_GETUSERSHELL = @HAVE_GETUSERSHELL@
14355 +HAVE_LINK = @HAVE_LINK@
14356 +HAVE_MEMPCPY = @HAVE_MEMPCPY@
14357 +HAVE_OS_H = @HAVE_OS_H@
14358 +HAVE_RAWMEMCHR = @HAVE_RAWMEMCHR@
14359 +HAVE_READLINK = @HAVE_READLINK@
14360 +HAVE_SLEEP = @HAVE_SLEEP@
14361 +HAVE_STPCPY = @HAVE_STPCPY@
14362 +HAVE_STPNCPY = @HAVE_STPNCPY@
14363 +HAVE_STRCASESTR = @HAVE_STRCASESTR@
14364 +HAVE_STRCHRNUL = @HAVE_STRCHRNUL@
14365 +HAVE_STRNDUP = @HAVE_STRNDUP@
14366 +HAVE_STRPBRK = @HAVE_STRPBRK@
14367 +HAVE_STRSEP = @HAVE_STRSEP@
14368 +HAVE_STRVERSCMP = @HAVE_STRVERSCMP@
14369 +HAVE_SYS_PARAM_H = @HAVE_SYS_PARAM_H@
14370 +HAVE_UNISTD_H = @HAVE_UNISTD_H@
14371 +INCLUDE_NEXT = @INCLUDE_NEXT@
14372 +INCLUDE_NEXT_AS_FIRST_DIRECTIVE = @INCLUDE_NEXT_AS_FIRST_DIRECTIVE@
14373 +INSTALL = @INSTALL@
14374 +INSTALL_DATA = @INSTALL_DATA@
14375 +INSTALL_PROGRAM = @INSTALL_PROGRAM@
14376 +INSTALL_SCRIPT = @INSTALL_SCRIPT@
14377 +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
14378 +LDFLAGS = @LDFLAGS@
14379 +LIBGNU_LIBDEPS = @LIBGNU_LIBDEPS@
14380 +LIBGNU_LTLIBDEPS = @LIBGNU_LTLIBDEPS@
14381 +LIBINTL = @LIBINTL@
14382 +LIBOBJS = @LIBOBJS@
14383 +LIBS = @LIBS@
14384 +LTLIBINTL = @LTLIBINTL@
14385 +LTLIBOBJS = @LTLIBOBJS@
14386 +MAKEINFO = @MAKEINFO@
14387 +MKDIR_P = @MKDIR_P@
14388 +NEXT_STRING_H = @NEXT_STRING_H@
14389 +NEXT_UNISTD_H = @NEXT_UNISTD_H@
14390 +OBJEXT = @OBJEXT@
14391 +PACKAGE = @PACKAGE@
14392 +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
14393 +PACKAGE_NAME = @PACKAGE_NAME@
14394 +PACKAGE_STRING = @PACKAGE_STRING@
14395 +PACKAGE_TARNAME = @PACKAGE_TARNAME@
14396 +PACKAGE_URL = @PACKAGE_URL@
14397 +PACKAGE_VERSION = @PACKAGE_VERSION@
14398 +PATH_SEPARATOR = @PATH_SEPARATOR@
14399 +PRAGMA_SYSTEM_HEADER = @PRAGMA_SYSTEM_HEADER@
14400 +RANLIB = @RANLIB@
14401 +REPLACE_CHOWN = @REPLACE_CHOWN@
14402 +REPLACE_CLOSE = @REPLACE_CLOSE@
14403 +REPLACE_FCHDIR = @REPLACE_FCHDIR@
14404 +REPLACE_GETCWD = @REPLACE_GETCWD@
14405 +REPLACE_GETPAGESIZE = @REPLACE_GETPAGESIZE@
14406 +REPLACE_LCHOWN = @REPLACE_LCHOWN@
14407 +REPLACE_LSEEK = @REPLACE_LSEEK@
14408 +REPLACE_MEMMEM = @REPLACE_MEMMEM@
14409 +REPLACE_STRCASESTR = @REPLACE_STRCASESTR@
14410 +REPLACE_STRDUP = @REPLACE_STRDUP@
14411 +REPLACE_STRERROR = @REPLACE_STRERROR@
14412 +REPLACE_STRSIGNAL = @REPLACE_STRSIGNAL@
14413 +REPLACE_STRSTR = @REPLACE_STRSTR@
14414 +REPLACE_WRITE = @REPLACE_WRITE@
14415 +SET_MAKE = @SET_MAKE@
14416 +SHELL = @SHELL@
14417 +STRIP = @STRIP@
14418 +UNISTD_H_HAVE_WINSOCK2_H = @UNISTD_H_HAVE_WINSOCK2_H@
14419 +VERSION = @VERSION@
14420 +abs_builddir = @abs_builddir@
14421 +abs_srcdir = @abs_srcdir@
14422 +abs_top_builddir = @abs_top_builddir@
14423 +abs_top_srcdir = @abs_top_srcdir@
14424 +ac_ct_CC = @ac_ct_CC@
14425 +am__include = @am__include@
14426 +am__leading_dot = @am__leading_dot@
14427 +am__quote = @am__quote@
14428 +am__tar = @am__tar@
14429 +am__untar = @am__untar@
14430 +bindir = @bindir@
14431 +build = @build@
14432 +build_alias = @build_alias@
14433 +build_cpu = @build_cpu@
14434 +build_os = @build_os@
14435 +build_vendor = @build_vendor@
14436 +builddir = @builddir@
14437 +datadir = @datadir@
14438 +datarootdir = @datarootdir@
14439 +docdir = @docdir@
14440 +dvidir = @dvidir@
14441 +exec_prefix = @exec_prefix@
14442 +gl_LIBOBJS = @gl_LIBOBJS@
14443 +gl_LTLIBOBJS = @gl_LTLIBOBJS@
14444 +host = @host@
14445 +host_alias = @host_alias@
14446 +host_cpu = @host_cpu@
14447 +host_os = @host_os@
14448 +host_vendor = @host_vendor@
14449 +htmldir = @htmldir@
14450 +includedir = @includedir@
14451 +infodir = @infodir@
14452 +install_sh = @install_sh@
14453 +libdir = @libdir@
14454 +libexecdir = @libexecdir@
14455 +localedir = @localedir@
14456 +localstatedir = @localstatedir@
14457 +mandir = @mandir@
14458 +mkdir_p = @mkdir_p@
14459 +oldincludedir = @oldincludedir@
14460 +pdfdir = @pdfdir@
14461 +prefix = @prefix@
14462 +program_transform_name = @program_transform_name@
14463 +psdir = @psdir@
14464 +sbindir = @sbindir@
14465 +sharedstatedir = @sharedstatedir@
14466 +srcdir = @srcdir@
14467 +sysconfdir = @sysconfdir@
14468 +target_alias = @target_alias@
14469 +top_build_prefix = @top_build_prefix@
14470 +top_builddir = @top_builddir@
14471 +top_srcdir = @top_srcdir@
14472 +AUTOMAKE_OPTIONS = 1.5 gnits
14473 +SUBDIRS =
14474 +noinst_HEADERS =
14475 +noinst_LIBRARIES = libgnu.a
14476 +noinst_LTLIBRARIES =
14477 +EXTRA_DIST = getopt.c getopt.in.h getopt1.c getopt_int.h \
14478 + $(top_srcdir)/build-aux/link-warning.h string.in.h strndup.c \
14479 + strnlen.c strsep.c unistd.in.h
14480 +BUILT_SOURCES = $(GETOPT_H) string.h unistd.h
14481 +SUFFIXES =
14482 +MOSTLYCLEANFILES = core *.stackdump getopt.h getopt.h-t string.h \
14483 + string.h-t unistd.h unistd.h-t
14484 +MOSTLYCLEANDIRS =
14485 +CLEANFILES =
14486 +DISTCLEANFILES =
14487 +MAINTAINERCLEANFILES =
14488 +AM_CPPFLAGS =
14489 +libgnu_a_SOURCES = gettext.h dummy.c
14490 +libgnu_a_LIBADD = $(gl_LIBOBJS)
14491 +libgnu_a_DEPENDENCIES = $(gl_LIBOBJS)
14492 +EXTRA_libgnu_a_SOURCES = getopt.c getopt1.c strndup.c strnlen.c \
14493 + strsep.c
14494 +LINK_WARNING_H = $(top_srcdir)/build-aux/link-warning.h
14495 +all: $(BUILT_SOURCES)
14496 + $(MAKE) $(AM_MAKEFLAGS) all-recursive
14497 +
14498 +.SUFFIXES:
14499 +.SUFFIXES: .c .o .obj
14500 +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
14501 + @for dep in $?; do \
14502 + case '$(am__configure_deps)' in \
14503 + *$$dep*) \
14504 + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
14505 + && { if test -f $@; then exit 0; else break; fi; }; \
14506 + exit 1;; \
14507 + esac; \
14508 + done; \
14509 + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits gllib/Makefile'; \
14510 + $(am__cd) $(top_srcdir) && \
14511 + $(AUTOMAKE) --gnits gllib/Makefile
14512 +.PRECIOUS: Makefile
14513 +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
14514 + @case '$?' in \
14515 + *config.status*) \
14516 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
14517 + *) \
14518 + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
14519 + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
14520 + esac;
14521 +
14522 +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
14523 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
14524 +
14525 +$(top_srcdir)/configure: $(am__configure_deps)
14526 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
14527 +$(ACLOCAL_M4): $(am__aclocal_m4_deps)
14528 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
14529 +$(am__aclocal_m4_deps):
14530 +
14531 +clean-noinstLIBRARIES:
14532 + -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
14533 +libgnu.a: $(libgnu_a_OBJECTS) $(libgnu_a_DEPENDENCIES)
14534 + -rm -f libgnu.a
14535 + $(libgnu_a_AR) libgnu.a $(libgnu_a_OBJECTS) $(libgnu_a_LIBADD)
14536 + $(RANLIB) libgnu.a
14537 +
14538 +clean-noinstLTLIBRARIES:
14539 + -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
14540 + @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \
14541 + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
14542 + test "$$dir" != "$$p" || dir=.; \
14543 + echo "rm -f \"$${dir}/so_locations\""; \
14544 + rm -f "$${dir}/so_locations"; \
14545 + done
14546 +
14547 +mostlyclean-compile:
14548 + -rm -f *.$(OBJEXT)
14549 +
14550 +distclean-compile:
14551 + -rm -f *.tab.c
14552 +
14553 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dummy.Po@am__quote@
14554 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/getopt.Po@am__quote@
14555 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/getopt1.Po@am__quote@
14556 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/strndup.Po@am__quote@
14557 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/strnlen.Po@am__quote@
14558 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/strsep.Po@am__quote@
14559 +
14560 +.c.o:
14561 +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
14562 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
14563 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
14564 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
14565 +@am__fastdepCC_FALSE@ $(COMPILE) -c $<
14566 +
14567 +.c.obj:
14568 +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
14569 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
14570 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
14571 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
14572 +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
14573 +
14574 +# This directory's subdirectories are mostly independent; you can cd
14575 +# into them and run `make' without going through this Makefile.
14576 +# To change the values of `make' variables: instead of editing Makefiles,
14577 +# (1) if the variable is set in `config.status', edit `config.status'
14578 +# (which will cause the Makefiles to be regenerated when you run `make');
14579 +# (2) otherwise, pass the desired values on the `make' command line.
14580 +$(RECURSIVE_TARGETS):
14581 + @fail= failcom='exit 1'; \
14582 + for f in x $$MAKEFLAGS; do \
14583 + case $$f in \
14584 + *=* | --[!k]*);; \
14585 + *k*) failcom='fail=yes';; \
14586 + esac; \
14587 + done; \
14588 + dot_seen=no; \
14589 + target=`echo $@ | sed s/-recursive//`; \
14590 + list='$(SUBDIRS)'; for subdir in $$list; do \
14591 + echo "Making $$target in $$subdir"; \
14592 + if test "$$subdir" = "."; then \
14593 + dot_seen=yes; \
14594 + local_target="$$target-am"; \
14595 + else \
14596 + local_target="$$target"; \
14597 + fi; \
14598 + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
14599 + || eval $$failcom; \
14600 + done; \
14601 + if test "$$dot_seen" = "no"; then \
14602 + $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
14603 + fi; test -z "$$fail"
14604 +
14605 +$(RECURSIVE_CLEAN_TARGETS):
14606 + @fail= failcom='exit 1'; \
14607 + for f in x $$MAKEFLAGS; do \
14608 + case $$f in \
14609 + *=* | --[!k]*);; \
14610 + *k*) failcom='fail=yes';; \
14611 + esac; \
14612 + done; \
14613 + dot_seen=no; \
14614 + case "$@" in \
14615 + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
14616 + *) list='$(SUBDIRS)' ;; \
14617 + esac; \
14618 + rev=''; for subdir in $$list; do \
14619 + if test "$$subdir" = "."; then :; else \
14620 + rev="$$subdir $$rev"; \
14621 + fi; \
14622 + done; \
14623 + rev="$$rev ."; \
14624 + target=`echo $@ | sed s/-recursive//`; \
14625 + for subdir in $$rev; do \
14626 + echo "Making $$target in $$subdir"; \
14627 + if test "$$subdir" = "."; then \
14628 + local_target="$$target-am"; \
14629 + else \
14630 + local_target="$$target"; \
14631 + fi; \
14632 + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
14633 + || eval $$failcom; \
14634 + done && test -z "$$fail"
14635 +tags-recursive:
14636 + list='$(SUBDIRS)'; for subdir in $$list; do \
14637 + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
14638 + done
14639 +ctags-recursive:
14640 + list='$(SUBDIRS)'; for subdir in $$list; do \
14641 + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
14642 + done
14643 +
14644 +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
14645 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
14646 + unique=`for i in $$list; do \
14647 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
14648 + done | \
14649 + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
14650 + END { if (nonempty) { for (i in files) print i; }; }'`; \
14651 + mkid -fID $$unique
14652 +tags: TAGS
14653 +
14654 +TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
14655 + $(TAGS_FILES) $(LISP)
14656 + set x; \
14657 + here=`pwd`; \
14658 + if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
14659 + include_option=--etags-include; \
14660 + empty_fix=.; \
14661 + else \
14662 + include_option=--include; \
14663 + empty_fix=; \
14664 + fi; \
14665 + list='$(SUBDIRS)'; for subdir in $$list; do \
14666 + if test "$$subdir" = .; then :; else \
14667 + test ! -f $$subdir/TAGS || \
14668 + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
14669 + fi; \
14670 + done; \
14671 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
14672 + unique=`for i in $$list; do \
14673 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
14674 + done | \
14675 + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
14676 + END { if (nonempty) { for (i in files) print i; }; }'`; \
14677 + shift; \
14678 + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
14679 + test -n "$$unique" || unique=$$empty_fix; \
14680 + if test $$# -gt 0; then \
14681 + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
14682 + "$$@" $$unique; \
14683 + else \
14684 + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
14685 + $$unique; \
14686 + fi; \
14687 + fi
14688 +ctags: CTAGS
14689 +CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
14690 + $(TAGS_FILES) $(LISP)
14691 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
14692 + unique=`for i in $$list; do \
14693 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
14694 + done | \
14695 + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
14696 + END { if (nonempty) { for (i in files) print i; }; }'`; \
14697 + test -z "$(CTAGS_ARGS)$$unique" \
14698 + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
14699 + $$unique
14700 +
14701 +GTAGS:
14702 + here=`$(am__cd) $(top_builddir) && pwd` \
14703 + && $(am__cd) $(top_srcdir) \
14704 + && gtags -i $(GTAGS_ARGS) "$$here"
14705 +
14706 +distclean-tags:
14707 + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
14708 +
14709 +distdir: $(DISTFILES)
14710 + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
14711 + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
14712 + list='$(DISTFILES)'; \
14713 + dist_files=`for file in $$list; do echo $$file; done | \
14714 + sed -e "s|^$$srcdirstrip/||;t" \
14715 + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
14716 + case $$dist_files in \
14717 + */*) $(MKDIR_P) `echo "$$dist_files" | \
14718 + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
14719 + sort -u` ;; \
14720 + esac; \
14721 + for file in $$dist_files; do \
14722 + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
14723 + if test -d $$d/$$file; then \
14724 + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
14725 + if test -d "$(distdir)/$$file"; then \
14726 + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
14727 + fi; \
14728 + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
14729 + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
14730 + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
14731 + fi; \
14732 + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
14733 + else \
14734 + test -f "$(distdir)/$$file" \
14735 + || cp -p $$d/$$file "$(distdir)/$$file" \
14736 + || exit 1; \
14737 + fi; \
14738 + done
14739 + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
14740 + if test "$$subdir" = .; then :; else \
14741 + test -d "$(distdir)/$$subdir" \
14742 + || $(MKDIR_P) "$(distdir)/$$subdir" \
14743 + || exit 1; \
14744 + fi; \
14745 + done
14746 + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
14747 + if test "$$subdir" = .; then :; else \
14748 + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
14749 + $(am__relativize); \
14750 + new_distdir=$$reldir; \
14751 + dir1=$$subdir; dir2="$(top_distdir)"; \
14752 + $(am__relativize); \
14753 + new_top_distdir=$$reldir; \
14754 + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
14755 + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
14756 + ($(am__cd) $$subdir && \
14757 + $(MAKE) $(AM_MAKEFLAGS) \
14758 + top_distdir="$$new_top_distdir" \
14759 + distdir="$$new_distdir" \
14760 + am__remove_distdir=: \
14761 + am__skip_length_check=: \
14762 + am__skip_mode_fix=: \
14763 + distdir) \
14764 + || exit 1; \
14765 + fi; \
14766 + done
14767 +check-am: all-am
14768 +check: $(BUILT_SOURCES)
14769 + $(MAKE) $(AM_MAKEFLAGS) check-recursive
14770 +all-am: Makefile $(LIBRARIES) $(LTLIBRARIES) $(HEADERS)
14771 +installdirs: installdirs-recursive
14772 +installdirs-am:
14773 +install: $(BUILT_SOURCES)
14774 + $(MAKE) $(AM_MAKEFLAGS) install-recursive
14775 +install-exec: install-exec-recursive
14776 +install-data: install-data-recursive
14777 +uninstall: uninstall-recursive
14778 +
14779 +install-am: all-am
14780 + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
14781 +
14782 +installcheck: installcheck-recursive
14783 +install-strip:
14784 + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
14785 + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
14786 + `test -z '$(STRIP)' || \
14787 + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
14788 +mostlyclean-generic:
14789 + -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)
14790 +
14791 +clean-generic:
14792 + -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
14793 +
14794 +distclean-generic:
14795 + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
14796 + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
14797 + -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
14798 +
14799 +maintainer-clean-generic:
14800 + @echo "This command is intended for maintainers to use"
14801 + @echo "it deletes files that may require special tools to rebuild."
14802 + -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
14803 + -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
14804 +clean: clean-recursive
14805 +
14806 +clean-am: clean-generic clean-noinstLIBRARIES clean-noinstLTLIBRARIES \
14807 + mostlyclean-am
14808 +
14809 +distclean: distclean-recursive
14810 + -rm -rf ./$(DEPDIR)
14811 + -rm -f Makefile
14812 +distclean-am: clean-am distclean-compile distclean-generic \
14813 + distclean-tags
14814 +
14815 +dvi: dvi-recursive
14816 +
14817 +dvi-am:
14818 +
14819 +html: html-recursive
14820 +
14821 +html-am:
14822 +
14823 +info: info-recursive
14824 +
14825 +info-am:
14826 +
14827 +install-data-am:
14828 +
14829 +install-dvi: install-dvi-recursive
14830 +
14831 +install-dvi-am:
14832 +
14833 +install-exec-am:
14834 +
14835 +install-html: install-html-recursive
14836 +
14837 +install-html-am:
14838 +
14839 +install-info: install-info-recursive
14840 +
14841 +install-info-am:
14842 +
14843 +install-man:
14844 +
14845 +install-pdf: install-pdf-recursive
14846 +
14847 +install-pdf-am:
14848 +
14849 +install-ps: install-ps-recursive
14850 +
14851 +install-ps-am:
14852 +
14853 +installcheck-am:
14854 +
14855 +maintainer-clean: maintainer-clean-recursive
14856 + -rm -rf ./$(DEPDIR)
14857 + -rm -f Makefile
14858 +maintainer-clean-am: distclean-am maintainer-clean-generic
14859 +
14860 +mostlyclean: mostlyclean-recursive
14861 +
14862 +mostlyclean-am: mostlyclean-compile mostlyclean-generic \
14863 + mostlyclean-local
14864 +
14865 +pdf: pdf-recursive
14866 +
14867 +pdf-am:
14868 +
14869 +ps: ps-recursive
14870 +
14871 +ps-am:
14872 +
14873 +uninstall-am:
14874 +
14875 +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all check \
14876 + ctags-recursive install install-am install-strip \
14877 + tags-recursive
14878 +
14879 +.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
14880 + all all-am check check-am clean clean-generic \
14881 + clean-noinstLIBRARIES clean-noinstLTLIBRARIES ctags \
14882 + ctags-recursive distclean distclean-compile distclean-generic \
14883 + distclean-tags distdir dvi dvi-am html html-am info info-am \
14884 + install install-am install-data install-data-am install-dvi \
14885 + install-dvi-am install-exec install-exec-am install-html \
14886 + install-html-am install-info install-info-am install-man \
14887 + install-pdf install-pdf-am install-ps install-ps-am \
14888 + install-strip installcheck installcheck-am installdirs \
14889 + installdirs-am maintainer-clean maintainer-clean-generic \
14890 + mostlyclean mostlyclean-compile mostlyclean-generic \
14891 + mostlyclean-local pdf pdf-am ps ps-am tags tags-recursive \
14892 + uninstall uninstall-am
14893 +
14894 +
14895 +# We need the following in order to create <getopt.h> when the system
14896 +# doesn't have one that works with the given compiler.
14897 +getopt.h: getopt.in.h
14898 + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
14899 + cat $(srcdir)/getopt.in.h; \
14900 + } > $@-t
14901 + mv -f $@-t $@
14902 +
14903 +# We need the following in order to create <string.h> when the system
14904 +# doesn't have one that works with the given compiler.
14905 +string.h: string.in.h
14906 + rm -f $@-t $@
14907 + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
14908 + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
14909 + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
14910 + -e 's|@''NEXT_STRING_H''@|$(NEXT_STRING_H)|g' \
14911 + -e 's|@''GNULIB_MBSLEN''@|$(GNULIB_MBSLEN)|g' \
14912 + -e 's|@''GNULIB_MBSNLEN''@|$(GNULIB_MBSNLEN)|g' \
14913 + -e 's|@''GNULIB_MBSCHR''@|$(GNULIB_MBSCHR)|g' \
14914 + -e 's|@''GNULIB_MBSRCHR''@|$(GNULIB_MBSRCHR)|g' \
14915 + -e 's|@''GNULIB_MBSSTR''@|$(GNULIB_MBSSTR)|g' \
14916 + -e 's|@''GNULIB_MBSCASECMP''@|$(GNULIB_MBSCASECMP)|g' \
14917 + -e 's|@''GNULIB_MBSNCASECMP''@|$(GNULIB_MBSNCASECMP)|g' \
14918 + -e 's|@''GNULIB_MBSPCASECMP''@|$(GNULIB_MBSPCASECMP)|g' \
14919 + -e 's|@''GNULIB_MBSCASESTR''@|$(GNULIB_MBSCASESTR)|g' \
14920 + -e 's|@''GNULIB_MBSCSPN''@|$(GNULIB_MBSCSPN)|g' \
14921 + -e 's|@''GNULIB_MBSPBRK''@|$(GNULIB_MBSPBRK)|g' \
14922 + -e 's|@''GNULIB_MBSSPN''@|$(GNULIB_MBSSPN)|g' \
14923 + -e 's|@''GNULIB_MBSSEP''@|$(GNULIB_MBSSEP)|g' \
14924 + -e 's|@''GNULIB_MBSTOK_R''@|$(GNULIB_MBSTOK_R)|g' \
14925 + -e 's|@''GNULIB_MEMMEM''@|$(GNULIB_MEMMEM)|g' \
14926 + -e 's|@''GNULIB_MEMPCPY''@|$(GNULIB_MEMPCPY)|g' \
14927 + -e 's|@''GNULIB_MEMRCHR''@|$(GNULIB_MEMRCHR)|g' \
14928 + -e 's|@''GNULIB_RAWMEMCHR''@|$(GNULIB_RAWMEMCHR)|g' \
14929 + -e 's|@''GNULIB_STPCPY''@|$(GNULIB_STPCPY)|g' \
14930 + -e 's|@''GNULIB_STPNCPY''@|$(GNULIB_STPNCPY)|g' \
14931 + -e 's|@''GNULIB_STRCHRNUL''@|$(GNULIB_STRCHRNUL)|g' \
14932 + -e 's|@''GNULIB_STRDUP''@|$(GNULIB_STRDUP)|g' \
14933 + -e 's|@''GNULIB_STRNDUP''@|$(GNULIB_STRNDUP)|g' \
14934 + -e 's|@''GNULIB_STRNLEN''@|$(GNULIB_STRNLEN)|g' \
14935 + -e 's|@''GNULIB_STRPBRK''@|$(GNULIB_STRPBRK)|g' \
14936 + -e 's|@''GNULIB_STRSEP''@|$(GNULIB_STRSEP)|g' \
14937 + -e 's|@''GNULIB_STRSTR''@|$(GNULIB_STRSTR)|g' \
14938 + -e 's|@''GNULIB_STRCASESTR''@|$(GNULIB_STRCASESTR)|g' \
14939 + -e 's|@''GNULIB_STRTOK_R''@|$(GNULIB_STRTOK_R)|g' \
14940 + -e 's|@''GNULIB_STRERROR''@|$(GNULIB_STRERROR)|g' \
14941 + -e 's|@''GNULIB_STRSIGNAL''@|$(GNULIB_STRSIGNAL)|g' \
14942 + -e 's|@''GNULIB_STRVERSCMP''@|$(GNULIB_STRVERSCMP)|g' \
14943 + -e 's|@''HAVE_DECL_MEMMEM''@|$(HAVE_DECL_MEMMEM)|g' \
14944 + -e 's|@''HAVE_MEMPCPY''@|$(HAVE_MEMPCPY)|g' \
14945 + -e 's|@''HAVE_DECL_MEMRCHR''@|$(HAVE_DECL_MEMRCHR)|g' \
14946 + -e 's|@''HAVE_RAWMEMCHR''@|$(HAVE_RAWMEMCHR)|g' \
14947 + -e 's|@''HAVE_STPCPY''@|$(HAVE_STPCPY)|g' \
14948 + -e 's|@''HAVE_STPNCPY''@|$(HAVE_STPNCPY)|g' \
14949 + -e 's|@''HAVE_STRCHRNUL''@|$(HAVE_STRCHRNUL)|g' \
14950 + -e 's|@''HAVE_DECL_STRDUP''@|$(HAVE_DECL_STRDUP)|g' \
14951 + -e 's|@''HAVE_STRNDUP''@|$(HAVE_STRNDUP)|g' \
14952 + -e 's|@''HAVE_DECL_STRNDUP''@|$(HAVE_DECL_STRNDUP)|g' \
14953 + -e 's|@''HAVE_DECL_STRNLEN''@|$(HAVE_DECL_STRNLEN)|g' \
14954 + -e 's|@''HAVE_STRPBRK''@|$(HAVE_STRPBRK)|g' \
14955 + -e 's|@''HAVE_STRSEP''@|$(HAVE_STRSEP)|g' \
14956 + -e 's|@''HAVE_STRCASESTR''@|$(HAVE_STRCASESTR)|g' \
14957 + -e 's|@''HAVE_DECL_STRTOK_R''@|$(HAVE_DECL_STRTOK_R)|g' \
14958 + -e 's|@''HAVE_DECL_STRERROR''@|$(HAVE_DECL_STRERROR)|g' \
14959 + -e 's|@''HAVE_DECL_STRSIGNAL''@|$(HAVE_DECL_STRSIGNAL)|g' \
14960 + -e 's|@''HAVE_STRVERSCMP''@|$(HAVE_STRVERSCMP)|g' \
14961 + -e 's|@''REPLACE_MEMMEM''@|$(REPLACE_MEMMEM)|g' \
14962 + -e 's|@''REPLACE_STRCASESTR''@|$(REPLACE_STRCASESTR)|g' \
14963 + -e 's|@''REPLACE_STRDUP''@|$(REPLACE_STRDUP)|g' \
14964 + -e 's|@''REPLACE_STRSTR''@|$(REPLACE_STRSTR)|g' \
14965 + -e 's|@''REPLACE_STRERROR''@|$(REPLACE_STRERROR)|g' \
14966 + -e 's|@''REPLACE_STRSIGNAL''@|$(REPLACE_STRSIGNAL)|g' \
14967 + -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
14968 + < $(srcdir)/string.in.h; \
14969 + } > $@-t
14970 + mv $@-t $@
14971 +
14972 +# We need the following in order to create an empty placeholder for
14973 +# <unistd.h> when the system doesn't have one.
14974 +unistd.h: unistd.in.h
14975 + rm -f $@-t $@
14976 + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
14977 + sed -e 's|@''HAVE_UNISTD_H''@|$(HAVE_UNISTD_H)|g' \
14978 + -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
14979 + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
14980 + -e 's|@''NEXT_UNISTD_H''@|$(NEXT_UNISTD_H)|g' \
14981 + -e 's|@''GNULIB_CHOWN''@|$(GNULIB_CHOWN)|g' \
14982 + -e 's|@''GNULIB_CLOSE''@|$(GNULIB_CLOSE)|g' \
14983 + -e 's|@''GNULIB_DUP2''@|$(GNULIB_DUP2)|g' \
14984 + -e 's|@''GNULIB_ENVIRON''@|$(GNULIB_ENVIRON)|g' \
14985 + -e 's|@''GNULIB_EUIDACCESS''@|$(GNULIB_EUIDACCESS)|g' \
14986 + -e 's|@''GNULIB_FCHDIR''@|$(GNULIB_FCHDIR)|g' \
14987 + -e 's|@''GNULIB_FSYNC''@|$(GNULIB_FSYNC)|g' \
14988 + -e 's|@''GNULIB_FTRUNCATE''@|$(GNULIB_FTRUNCATE)|g' \
14989 + -e 's|@''GNULIB_GETCWD''@|$(GNULIB_GETCWD)|g' \
14990 + -e 's|@''GNULIB_GETDOMAINNAME''@|$(GNULIB_GETDOMAINNAME)|g' \
14991 + -e 's|@''GNULIB_GETDTABLESIZE''@|$(GNULIB_GETDTABLESIZE)|g' \
14992 + -e 's|@''GNULIB_GETHOSTNAME''@|$(GNULIB_GETHOSTNAME)|g' \
14993 + -e 's|@''GNULIB_GETLOGIN_R''@|$(GNULIB_GETLOGIN_R)|g' \
14994 + -e 's|@''GNULIB_GETPAGESIZE''@|$(GNULIB_GETPAGESIZE)|g' \
14995 + -e 's|@''GNULIB_GETUSERSHELL''@|$(GNULIB_GETUSERSHELL)|g' \
14996 + -e 's|@''GNULIB_LCHOWN''@|$(GNULIB_LCHOWN)|g' \
14997 + -e 's|@''GNULIB_LINK''@|$(GNULIB_LINK)|g' \
14998 + -e 's|@''GNULIB_LSEEK''@|$(GNULIB_LSEEK)|g' \
14999 + -e 's|@''GNULIB_READLINK''@|$(GNULIB_READLINK)|g' \
15000 + -e 's|@''GNULIB_SLEEP''@|$(GNULIB_SLEEP)|g' \
15001 + -e 's|@''GNULIB_UNISTD_H_SIGPIPE''@|$(GNULIB_UNISTD_H_SIGPIPE)|g' \
15002 + -e 's|@''GNULIB_WRITE''@|$(GNULIB_WRITE)|g' \
15003 + -e 's|@''HAVE_DUP2''@|$(HAVE_DUP2)|g' \
15004 + -e 's|@''HAVE_EUIDACCESS''@|$(HAVE_EUIDACCESS)|g' \
15005 + -e 's|@''HAVE_FSYNC''@|$(HAVE_FSYNC)|g' \
15006 + -e 's|@''HAVE_FTRUNCATE''@|$(HAVE_FTRUNCATE)|g' \
15007 + -e 's|@''HAVE_GETDOMAINNAME''@|$(HAVE_GETDOMAINNAME)|g' \
15008 + -e 's|@''HAVE_GETDTABLESIZE''@|$(HAVE_GETDTABLESIZE)|g' \
15009 + -e 's|@''HAVE_GETHOSTNAME''@|$(HAVE_GETHOSTNAME)|g' \
15010 + -e 's|@''HAVE_GETPAGESIZE''@|$(HAVE_GETPAGESIZE)|g' \
15011 + -e 's|@''HAVE_GETUSERSHELL''@|$(HAVE_GETUSERSHELL)|g' \
15012 + -e 's|@''HAVE_LINK''@|$(HAVE_LINK)|g' \
15013 + -e 's|@''HAVE_READLINK''@|$(HAVE_READLINK)|g' \
15014 + -e 's|@''HAVE_SLEEP''@|$(HAVE_SLEEP)|g' \
15015 + -e 's|@''HAVE_DECL_ENVIRON''@|$(HAVE_DECL_ENVIRON)|g' \
15016 + -e 's|@''HAVE_DECL_GETLOGIN_R''@|$(HAVE_DECL_GETLOGIN_R)|g' \
15017 + -e 's|@''HAVE_OS_H''@|$(HAVE_OS_H)|g' \
15018 + -e 's|@''HAVE_SYS_PARAM_H''@|$(HAVE_SYS_PARAM_H)|g' \
15019 + -e 's|@''REPLACE_CHOWN''@|$(REPLACE_CHOWN)|g' \
15020 + -e 's|@''REPLACE_CLOSE''@|$(REPLACE_CLOSE)|g' \
15021 + -e 's|@''REPLACE_FCHDIR''@|$(REPLACE_FCHDIR)|g' \
15022 + -e 's|@''REPLACE_GETCWD''@|$(REPLACE_GETCWD)|g' \
15023 + -e 's|@''REPLACE_GETPAGESIZE''@|$(REPLACE_GETPAGESIZE)|g' \
15024 + -e 's|@''REPLACE_LCHOWN''@|$(REPLACE_LCHOWN)|g' \
15025 + -e 's|@''REPLACE_LSEEK''@|$(REPLACE_LSEEK)|g' \
15026 + -e 's|@''REPLACE_WRITE''@|$(REPLACE_WRITE)|g' \
15027 + -e 's|@''UNISTD_H_HAVE_WINSOCK2_H''@|$(UNISTD_H_HAVE_WINSOCK2_H)|g' \
15028 + -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
15029 + < $(srcdir)/unistd.in.h; \
15030 + } > $@-t
15031 + mv $@-t $@
15032 +
15033 +mostlyclean-local: mostlyclean-generic
15034 + @for dir in '' $(MOSTLYCLEANDIRS); do \
15035 + if test -n "$$dir" && test -d $$dir; then \
15036 + echo "rmdir $$dir"; rmdir $$dir; \
15037 + fi; \
15038 + done; \
15039 + :
15040 +
15041 +# Tell versions [3.59,3.63) of GNU make to not export all variables.
15042 +# Otherwise a system limit (for SysV at least) may be exceeded.
15043 +.NOEXPORT:
15044
15045 Added: trunk/baselayout-prefix/gnulib/gllib/dummy.c
15046 ===================================================================
15047 --- trunk/baselayout-prefix/gnulib/gllib/dummy.c (rev 0)
15048 +++ trunk/baselayout-prefix/gnulib/gllib/dummy.c 2011-03-31 16:43:45 UTC (rev 1693)
15049 @@ -0,0 +1,42 @@
15050 +/* A dummy file, to prevent empty libraries from breaking builds.
15051 + Copyright (C) 2004, 2007 Free Software Foundation, Inc.
15052 +
15053 + This program is free software: you can redistribute it and/or modify
15054 + it under the terms of the GNU General Public License as published by
15055 + the Free Software Foundation; either version 3 of the License, or
15056 + (at your option) any later version.
15057 +
15058 + This program is distributed in the hope that it will be useful,
15059 + but WITHOUT ANY WARRANTY; without even the implied warranty of
15060 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15061 + GNU General Public License for more details.
15062 +
15063 + You should have received a copy of the GNU General Public License
15064 + along with this program. If not, see <http://www.gnu.org/licenses/>. */
15065 +
15066 +/* Some systems, reportedly OpenBSD and Mac OS X, refuse to create
15067 + libraries without any object files. You might get an error like:
15068 +
15069 + > ar cru .libs/libgl.a
15070 + > ar: no archive members specified
15071 +
15072 + Compiling this file, and adding its object file to the library, will
15073 + prevent the library from being empty. */
15074 +
15075 +/* Some systems, such as Solaris with cc 5.0, refuse to work with libraries
15076 + that don't export any symbol. You might get an error like:
15077 +
15078 + > cc ... libgnu.a
15079 + > ild: (bad file) garbled symbol table in archive ../gllib/libgnu.a
15080 +
15081 + Compiling this file, and adding its object file to the library, will
15082 + prevent the library from exporting no symbols. */
15083 +
15084 +#ifdef __sun
15085 +/* This declaration ensures that the library will export at least 1 symbol. */
15086 +int gl_dummy_symbol;
15087 +#else
15088 +/* This declaration is solely to ensure that after preprocessing
15089 + this file is never empty. */
15090 +typedef int dummy;
15091 +#endif
15092
15093 Added: trunk/baselayout-prefix/gnulib/gllib/getopt.c
15094 ===================================================================
15095 --- trunk/baselayout-prefix/gnulib/gllib/getopt.c (rev 0)
15096 +++ trunk/baselayout-prefix/gnulib/gllib/getopt.c 2011-03-31 16:43:45 UTC (rev 1693)
15097 @@ -0,0 +1,1186 @@
15098 +/* Getopt for GNU.
15099 + NOTE: getopt is now part of the C library, so if you don't know what
15100 + "Keep this file name-space clean" means, talk to drepper@×××.org
15101 + before changing it!
15102 + Copyright (C) 1987,88,89,90,91,92,93,94,95,96,98,99,2000,2001,2002,2003,2004,2006,2008
15103 + Free Software Foundation, Inc.
15104 + This file is part of the GNU C Library.
15105 +
15106 + This program is free software: you can redistribute it and/or modify
15107 + it under the terms of the GNU General Public License as published by
15108 + the Free Software Foundation; either version 3 of the License, or
15109 + (at your option) any later version.
15110 +
15111 + This program is distributed in the hope that it will be useful,
15112 + but WITHOUT ANY WARRANTY; without even the implied warranty of
15113 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15114 + GNU General Public License for more details.
15115 +
15116 + You should have received a copy of the GNU General Public License
15117 + along with this program. If not, see <http://www.gnu.org/licenses/>. */
15118 +
15119 +#ifndef _LIBC
15120 +# include <config.h>
15121 +#endif
15122 +
15123 +#include "getopt.h"
15124 +
15125 +#include <stdio.h>
15126 +#include <stdlib.h>
15127 +#include <string.h>
15128 +#include <unistd.h>
15129 +
15130 +#ifdef _LIBC
15131 +# include <libintl.h>
15132 +#else
15133 +# include "gettext.h"
15134 +# define _(msgid) gettext (msgid)
15135 +#endif
15136 +
15137 +#if defined _LIBC && defined USE_IN_LIBIO
15138 +# include <wchar.h>
15139 +#endif
15140 +
15141 +#ifndef attribute_hidden
15142 +# define attribute_hidden
15143 +#endif
15144 +
15145 +/* Unlike standard Unix `getopt', functions like `getopt_long'
15146 + let the user intersperse the options with the other arguments.
15147 +
15148 + As `getopt_long' works, it permutes the elements of ARGV so that,
15149 + when it is done, all the options precede everything else. Thus
15150 + all application programs are extended to handle flexible argument order.
15151 +
15152 + Using `getopt' or setting the environment variable POSIXLY_CORRECT
15153 + disables permutation.
15154 + Then the application's behavior is completely standard.
15155 +
15156 + GNU application programs can use a third alternative mode in which
15157 + they can distinguish the relative order of options and other arguments. */
15158 +
15159 +#include "getopt_int.h"
15160 +
15161 +/* For communication from `getopt' to the caller.
15162 + When `getopt' finds an option that takes an argument,
15163 + the argument value is returned here.
15164 + Also, when `ordering' is RETURN_IN_ORDER,
15165 + each non-option ARGV-element is returned here. */
15166 +
15167 +char *optarg;
15168 +
15169 +/* Index in ARGV of the next element to be scanned.
15170 + This is used for communication to and from the caller
15171 + and for communication between successive calls to `getopt'.
15172 +
15173 + On entry to `getopt', zero means this is the first call; initialize.
15174 +
15175 + When `getopt' returns -1, this is the index of the first of the
15176 + non-option elements that the caller should itself scan.
15177 +
15178 + Otherwise, `optind' communicates from one call to the next
15179 + how much of ARGV has been scanned so far. */
15180 +
15181 +/* 1003.2 says this must be 1 before any call. */
15182 +int optind = 1;
15183 +
15184 +/* Callers store zero here to inhibit the error message
15185 + for unrecognized options. */
15186 +
15187 +int opterr = 1;
15188 +
15189 +/* Set to an option character which was unrecognized.
15190 + This must be initialized on some systems to avoid linking in the
15191 + system's own getopt implementation. */
15192 +
15193 +int optopt = '?';
15194 +
15195 +/* Keep a global copy of all internal members of getopt_data. */
15196 +
15197 +static struct _getopt_data getopt_data;
15198 +
15199 +
15200 +#if defined HAVE_DECL_GETENV && !HAVE_DECL_GETENV
15201 +extern char *getenv ();
15202 +#endif
15203 +
15204 +#ifdef _LIBC
15205 +/* Stored original parameters.
15206 + XXX This is no good solution. We should rather copy the args so
15207 + that we can compare them later. But we must not use malloc(3). */
15208 +extern int __libc_argc;
15209 +extern char **__libc_argv;
15210 +
15211 +/* Bash 2.0 gives us an environment variable containing flags
15212 + indicating ARGV elements that should not be considered arguments. */
15213 +
15214 +# ifdef USE_NONOPTION_FLAGS
15215 +/* Defined in getopt_init.c */
15216 +extern char *__getopt_nonoption_flags;
15217 +# endif
15218 +
15219 +# ifdef USE_NONOPTION_FLAGS
15220 +# define SWAP_FLAGS(ch1, ch2) \
15221 + if (d->__nonoption_flags_len > 0) \
15222 + { \
15223 + char __tmp = __getopt_nonoption_flags[ch1]; \
15224 + __getopt_nonoption_flags[ch1] = __getopt_nonoption_flags[ch2]; \
15225 + __getopt_nonoption_flags[ch2] = __tmp; \
15226 + }
15227 +# else
15228 +# define SWAP_FLAGS(ch1, ch2)
15229 +# endif
15230 +#else /* !_LIBC */
15231 +# define SWAP_FLAGS(ch1, ch2)
15232 +#endif /* _LIBC */
15233 +
15234 +/* Exchange two adjacent subsequences of ARGV.
15235 + One subsequence is elements [first_nonopt,last_nonopt)
15236 + which contains all the non-options that have been skipped so far.
15237 + The other is elements [last_nonopt,optind), which contains all
15238 + the options processed since those non-options were skipped.
15239 +
15240 + `first_nonopt' and `last_nonopt' are relocated so that they describe
15241 + the new indices of the non-options in ARGV after they are moved. */
15242 +
15243 +static void
15244 +exchange (char **argv, struct _getopt_data *d)
15245 +{
15246 + int bottom = d->__first_nonopt;
15247 + int middle = d->__last_nonopt;
15248 + int top = d->optind;
15249 + char *tem;
15250 +
15251 + /* Exchange the shorter segment with the far end of the longer segment.
15252 + That puts the shorter segment into the right place.
15253 + It leaves the longer segment in the right place overall,
15254 + but it consists of two parts that need to be swapped next. */
15255 +
15256 +#if defined _LIBC && defined USE_NONOPTION_FLAGS
15257 + /* First make sure the handling of the `__getopt_nonoption_flags'
15258 + string can work normally. Our top argument must be in the range
15259 + of the string. */
15260 + if (d->__nonoption_flags_len > 0 && top >= d->__nonoption_flags_max_len)
15261 + {
15262 + /* We must extend the array. The user plays games with us and
15263 + presents new arguments. */
15264 + char *new_str = malloc (top + 1);
15265 + if (new_str == NULL)
15266 + d->__nonoption_flags_len = d->__nonoption_flags_max_len = 0;
15267 + else
15268 + {
15269 + memset (__mempcpy (new_str, __getopt_nonoption_flags,
15270 + d->__nonoption_flags_max_len),
15271 + '\0', top + 1 - d->__nonoption_flags_max_len);
15272 + d->__nonoption_flags_max_len = top + 1;
15273 + __getopt_nonoption_flags = new_str;
15274 + }
15275 + }
15276 +#endif
15277 +
15278 + while (top > middle && middle > bottom)
15279 + {
15280 + if (top - middle > middle - bottom)
15281 + {
15282 + /* Bottom segment is the short one. */
15283 + int len = middle - bottom;
15284 + register int i;
15285 +
15286 + /* Swap it with the top part of the top segment. */
15287 + for (i = 0; i < len; i++)
15288 + {
15289 + tem = argv[bottom + i];
15290 + argv[bottom + i] = argv[top - (middle - bottom) + i];
15291 + argv[top - (middle - bottom) + i] = tem;
15292 + SWAP_FLAGS (bottom + i, top - (middle - bottom) + i);
15293 + }
15294 + /* Exclude the moved bottom segment from further swapping. */
15295 + top -= len;
15296 + }
15297 + else
15298 + {
15299 + /* Top segment is the short one. */
15300 + int len = top - middle;
15301 + register int i;
15302 +
15303 + /* Swap it with the bottom part of the bottom segment. */
15304 + for (i = 0; i < len; i++)
15305 + {
15306 + tem = argv[bottom + i];
15307 + argv[bottom + i] = argv[middle + i];
15308 + argv[middle + i] = tem;
15309 + SWAP_FLAGS (bottom + i, middle + i);
15310 + }
15311 + /* Exclude the moved top segment from further swapping. */
15312 + bottom += len;
15313 + }
15314 + }
15315 +
15316 + /* Update records for the slots the non-options now occupy. */
15317 +
15318 + d->__first_nonopt += (d->optind - d->__last_nonopt);
15319 + d->__last_nonopt = d->optind;
15320 +}
15321 +
15322 +/* Initialize the internal data when the first call is made. */
15323 +
15324 +static const char *
15325 +_getopt_initialize (int argc, char **argv, const char *optstring,
15326 + int posixly_correct, struct _getopt_data *d)
15327 +{
15328 + /* Start processing options with ARGV-element 1 (since ARGV-element 0
15329 + is the program name); the sequence of previously skipped
15330 + non-option ARGV-elements is empty. */
15331 +
15332 + d->__first_nonopt = d->__last_nonopt = d->optind;
15333 +
15334 + d->__nextchar = NULL;
15335 +
15336 + d->__posixly_correct = posixly_correct || !!getenv ("POSIXLY_CORRECT");
15337 +
15338 + /* Determine how to handle the ordering of options and nonoptions. */
15339 +
15340 + if (optstring[0] == '-')
15341 + {
15342 + d->__ordering = RETURN_IN_ORDER;
15343 + ++optstring;
15344 + }
15345 + else if (optstring[0] == '+')
15346 + {
15347 + d->__ordering = REQUIRE_ORDER;
15348 + ++optstring;
15349 + }
15350 + else if (d->__posixly_correct)
15351 + d->__ordering = REQUIRE_ORDER;
15352 + else
15353 + d->__ordering = PERMUTE;
15354 +
15355 +#if defined _LIBC && defined USE_NONOPTION_FLAGS
15356 + if (!d->__posixly_correct
15357 + && argc == __libc_argc && argv == __libc_argv)
15358 + {
15359 + if (d->__nonoption_flags_max_len == 0)
15360 + {
15361 + if (__getopt_nonoption_flags == NULL
15362 + || __getopt_nonoption_flags[0] == '\0')
15363 + d->__nonoption_flags_max_len = -1;
15364 + else
15365 + {
15366 + const char *orig_str = __getopt_nonoption_flags;
15367 + int len = d->__nonoption_flags_max_len = strlen (orig_str);
15368 + if (d->__nonoption_flags_max_len < argc)
15369 + d->__nonoption_flags_max_len = argc;
15370 + __getopt_nonoption_flags =
15371 + (char *) malloc (d->__nonoption_flags_max_len);
15372 + if (__getopt_nonoption_flags == NULL)
15373 + d->__nonoption_flags_max_len = -1;
15374 + else
15375 + memset (__mempcpy (__getopt_nonoption_flags, orig_str, len),
15376 + '\0', d->__nonoption_flags_max_len - len);
15377 + }
15378 + }
15379 + d->__nonoption_flags_len = d->__nonoption_flags_max_len;
15380 + }
15381 + else
15382 + d->__nonoption_flags_len = 0;
15383 +#endif
15384 +
15385 + return optstring;
15386 +}
15387 +
15388 +/* Scan elements of ARGV (whose length is ARGC) for option characters
15389 + given in OPTSTRING.
15390 +
15391 + If an element of ARGV starts with '-', and is not exactly "-" or "--",
15392 + then it is an option element. The characters of this element
15393 + (aside from the initial '-') are option characters. If `getopt'
15394 + is called repeatedly, it returns successively each of the option characters
15395 + from each of the option elements.
15396 +
15397 + If `getopt' finds another option character, it returns that character,
15398 + updating `optind' and `nextchar' so that the next call to `getopt' can
15399 + resume the scan with the following option character or ARGV-element.
15400 +
15401 + If there are no more option characters, `getopt' returns -1.
15402 + Then `optind' is the index in ARGV of the first ARGV-element
15403 + that is not an option. (The ARGV-elements have been permuted
15404 + so that those that are not options now come last.)
15405 +
15406 + OPTSTRING is a string containing the legitimate option characters.
15407 + If an option character is seen that is not listed in OPTSTRING,
15408 + return '?' after printing an error message. If you set `opterr' to
15409 + zero, the error message is suppressed but we still return '?'.
15410 +
15411 + If a char in OPTSTRING is followed by a colon, that means it wants an arg,
15412 + so the following text in the same ARGV-element, or the text of the following
15413 + ARGV-element, is returned in `optarg'. Two colons mean an option that
15414 + wants an optional arg; if there is text in the current ARGV-element,
15415 + it is returned in `optarg', otherwise `optarg' is set to zero.
15416 +
15417 + If OPTSTRING starts with `-' or `+', it requests different methods of
15418 + handling the non-option ARGV-elements.
15419 + See the comments about RETURN_IN_ORDER and REQUIRE_ORDER, above.
15420 +
15421 + Long-named options begin with `--' instead of `-'.
15422 + Their names may be abbreviated as long as the abbreviation is unique
15423 + or is an exact match for some defined option. If they have an
15424 + argument, it follows the option name in the same ARGV-element, separated
15425 + from the option name by a `=', or else the in next ARGV-element.
15426 + When `getopt' finds a long-named option, it returns 0 if that option's
15427 + `flag' field is nonzero, the value of the option's `val' field
15428 + if the `flag' field is zero.
15429 +
15430 + LONGOPTS is a vector of `struct option' terminated by an
15431 + element containing a name which is zero.
15432 +
15433 + LONGIND returns the index in LONGOPT of the long-named option found.
15434 + It is only valid when a long-named option has been found by the most
15435 + recent call.
15436 +
15437 + If LONG_ONLY is nonzero, '-' as well as '--' can introduce
15438 + long-named options.
15439 +
15440 + If POSIXLY_CORRECT is nonzero, behave as if the POSIXLY_CORRECT
15441 + environment variable were set. */
15442 +
15443 +int
15444 +_getopt_internal_r (int argc, char **argv, const char *optstring,
15445 + const struct option *longopts, int *longind,
15446 + int long_only, int posixly_correct, struct _getopt_data *d)
15447 +{
15448 + int print_errors = d->opterr;
15449 + if (optstring[0] == ':')
15450 + print_errors = 0;
15451 +
15452 + if (argc < 1)
15453 + return -1;
15454 +
15455 + d->optarg = NULL;
15456 +
15457 + if (d->optind == 0 || !d->__initialized)
15458 + {
15459 + if (d->optind == 0)
15460 + d->optind = 1; /* Don't scan ARGV[0], the program name. */
15461 + optstring = _getopt_initialize (argc, argv, optstring,
15462 + posixly_correct, d);
15463 + d->__initialized = 1;
15464 + }
15465 +
15466 + /* Test whether ARGV[optind] points to a non-option argument.
15467 + Either it does not have option syntax, or there is an environment flag
15468 + from the shell indicating it is not an option. The later information
15469 + is only used when the used in the GNU libc. */
15470 +#if defined _LIBC && defined USE_NONOPTION_FLAGS
15471 +# define NONOPTION_P (argv[d->optind][0] != '-' || argv[d->optind][1] == '\0' \
15472 + || (d->optind < d->__nonoption_flags_len \
15473 + && __getopt_nonoption_flags[d->optind] == '1'))
15474 +#else
15475 +# define NONOPTION_P (argv[d->optind][0] != '-' || argv[d->optind][1] == '\0')
15476 +#endif
15477 +
15478 + if (d->__nextchar == NULL || *d->__nextchar == '\0')
15479 + {
15480 + /* Advance to the next ARGV-element. */
15481 +
15482 + /* Give FIRST_NONOPT & LAST_NONOPT rational values if OPTIND has been
15483 + moved back by the user (who may also have changed the arguments). */
15484 + if (d->__last_nonopt > d->optind)
15485 + d->__last_nonopt = d->optind;
15486 + if (d->__first_nonopt > d->optind)
15487 + d->__first_nonopt = d->optind;
15488 +
15489 + if (d->__ordering == PERMUTE)
15490 + {
15491 + /* If we have just processed some options following some non-options,
15492 + exchange them so that the options come first. */
15493 +
15494 + if (d->__first_nonopt != d->__last_nonopt
15495 + && d->__last_nonopt != d->optind)
15496 + exchange ((char **) argv, d);
15497 + else if (d->__last_nonopt != d->optind)
15498 + d->__first_nonopt = d->optind;
15499 +
15500 + /* Skip any additional non-options
15501 + and extend the range of non-options previously skipped. */
15502 +
15503 + while (d->optind < argc && NONOPTION_P)
15504 + d->optind++;
15505 + d->__last_nonopt = d->optind;
15506 + }
15507 +
15508 + /* The special ARGV-element `--' means premature end of options.
15509 + Skip it like a null option,
15510 + then exchange with previous non-options as if it were an option,
15511 + then skip everything else like a non-option. */
15512 +
15513 + if (d->optind != argc && !strcmp (argv[d->optind], "--"))
15514 + {
15515 + d->optind++;
15516 +
15517 + if (d->__first_nonopt != d->__last_nonopt
15518 + && d->__last_nonopt != d->optind)
15519 + exchange ((char **) argv, d);
15520 + else if (d->__first_nonopt == d->__last_nonopt)
15521 + d->__first_nonopt = d->optind;
15522 + d->__last_nonopt = argc;
15523 +
15524 + d->optind = argc;
15525 + }
15526 +
15527 + /* If we have done all the ARGV-elements, stop the scan
15528 + and back over any non-options that we skipped and permuted. */
15529 +
15530 + if (d->optind == argc)
15531 + {
15532 + /* Set the next-arg-index to point at the non-options
15533 + that we previously skipped, so the caller will digest them. */
15534 + if (d->__first_nonopt != d->__last_nonopt)
15535 + d->optind = d->__first_nonopt;
15536 + return -1;
15537 + }
15538 +
15539 + /* If we have come to a non-option and did not permute it,
15540 + either stop the scan or describe it to the caller and pass it by. */
15541 +
15542 + if (NONOPTION_P)
15543 + {
15544 + if (d->__ordering == REQUIRE_ORDER)
15545 + return -1;
15546 + d->optarg = argv[d->optind++];
15547 + return 1;
15548 + }
15549 +
15550 + /* We have found another option-ARGV-element.
15551 + Skip the initial punctuation. */
15552 +
15553 + d->__nextchar = (argv[d->optind] + 1
15554 + + (longopts != NULL && argv[d->optind][1] == '-'));
15555 + }
15556 +
15557 + /* Decode the current option-ARGV-element. */
15558 +
15559 + /* Check whether the ARGV-element is a long option.
15560 +
15561 + If long_only and the ARGV-element has the form "-f", where f is
15562 + a valid short option, don't consider it an abbreviated form of
15563 + a long option that starts with f. Otherwise there would be no
15564 + way to give the -f short option.
15565 +
15566 + On the other hand, if there's a long option "fubar" and
15567 + the ARGV-element is "-fu", do consider that an abbreviation of
15568 + the long option, just like "--fu", and not "-f" with arg "u".
15569 +
15570 + This distinction seems to be the most useful approach. */
15571 +
15572 + if (longopts != NULL
15573 + && (argv[d->optind][1] == '-'
15574 + || (long_only && (argv[d->optind][2]
15575 + || !strchr (optstring, argv[d->optind][1])))))
15576 + {
15577 + char *nameend;
15578 + const struct option *p;
15579 + const struct option *pfound = NULL;
15580 + int exact = 0;
15581 + int ambig = 0;
15582 + int indfound = -1;
15583 + int option_index;
15584 +
15585 + for (nameend = d->__nextchar; *nameend && *nameend != '='; nameend++)
15586 + /* Do nothing. */ ;
15587 +
15588 + /* Test all long options for either exact match
15589 + or abbreviated matches. */
15590 + for (p = longopts, option_index = 0; p->name; p++, option_index++)
15591 + if (!strncmp (p->name, d->__nextchar, nameend - d->__nextchar))
15592 + {
15593 + if ((unsigned int) (nameend - d->__nextchar)
15594 + == (unsigned int) strlen (p->name))
15595 + {
15596 + /* Exact match found. */
15597 + pfound = p;
15598 + indfound = option_index;
15599 + exact = 1;
15600 + break;
15601 + }
15602 + else if (pfound == NULL)
15603 + {
15604 + /* First nonexact match found. */
15605 + pfound = p;
15606 + indfound = option_index;
15607 + }
15608 + else if (long_only
15609 + || pfound->has_arg != p->has_arg
15610 + || pfound->flag != p->flag
15611 + || pfound->val != p->val)
15612 + /* Second or later nonexact match found. */
15613 + ambig = 1;
15614 + }
15615 +
15616 + if (ambig && !exact)
15617 + {
15618 + if (print_errors)
15619 + {
15620 +#if defined _LIBC && defined USE_IN_LIBIO
15621 + char *buf;
15622 +
15623 + if (__asprintf (&buf, _("%s: option `%s' is ambiguous\n"),
15624 + argv[0], argv[d->optind]) >= 0)
15625 + {
15626 + _IO_flockfile (stderr);
15627 +
15628 + int old_flags2 = ((_IO_FILE *) stderr)->_flags2;
15629 + ((_IO_FILE *) stderr)->_flags2 |= _IO_FLAGS2_NOTCANCEL;
15630 +
15631 + __fxprintf (NULL, "%s", buf);
15632 +
15633 + ((_IO_FILE *) stderr)->_flags2 = old_flags2;
15634 + _IO_funlockfile (stderr);
15635 +
15636 + free (buf);
15637 + }
15638 +#else
15639 + fprintf (stderr, _("%s: option `%s' is ambiguous\n"),
15640 + argv[0], argv[d->optind]);
15641 +#endif
15642 + }
15643 + d->__nextchar += strlen (d->__nextchar);
15644 + d->optind++;
15645 + d->optopt = 0;
15646 + return '?';
15647 + }
15648 +
15649 + if (pfound != NULL)
15650 + {
15651 + option_index = indfound;
15652 + d->optind++;
15653 + if (*nameend)
15654 + {
15655 + /* Don't test has_arg with >, because some C compilers don't
15656 + allow it to be used on enums. */
15657 + if (pfound->has_arg)
15658 + d->optarg = nameend + 1;
15659 + else
15660 + {
15661 + if (print_errors)
15662 + {
15663 +#if defined _LIBC && defined USE_IN_LIBIO
15664 + char *buf;
15665 + int n;
15666 +#endif
15667 +
15668 + if (argv[d->optind - 1][1] == '-')
15669 + {
15670 + /* --option */
15671 +#if defined _LIBC && defined USE_IN_LIBIO
15672 + n = __asprintf (&buf, _("\
15673 +%s: option `--%s' doesn't allow an argument\n"),
15674 + argv[0], pfound->name);
15675 +#else
15676 + fprintf (stderr, _("\
15677 +%s: option `--%s' doesn't allow an argument\n"),
15678 + argv[0], pfound->name);
15679 +#endif
15680 + }
15681 + else
15682 + {
15683 + /* +option or -option */
15684 +#if defined _LIBC && defined USE_IN_LIBIO
15685 + n = __asprintf (&buf, _("\
15686 +%s: option `%c%s' doesn't allow an argument\n"),
15687 + argv[0], argv[d->optind - 1][0],
15688 + pfound->name);
15689 +#else
15690 + fprintf (stderr, _("\
15691 +%s: option `%c%s' doesn't allow an argument\n"),
15692 + argv[0], argv[d->optind - 1][0],
15693 + pfound->name);
15694 +#endif
15695 + }
15696 +
15697 +#if defined _LIBC && defined USE_IN_LIBIO
15698 + if (n >= 0)
15699 + {
15700 + _IO_flockfile (stderr);
15701 +
15702 + int old_flags2 = ((_IO_FILE *) stderr)->_flags2;
15703 + ((_IO_FILE *) stderr)->_flags2
15704 + |= _IO_FLAGS2_NOTCANCEL;
15705 +
15706 + __fxprintf (NULL, "%s", buf);
15707 +
15708 + ((_IO_FILE *) stderr)->_flags2 = old_flags2;
15709 + _IO_funlockfile (stderr);
15710 +
15711 + free (buf);
15712 + }
15713 +#endif
15714 + }
15715 +
15716 + d->__nextchar += strlen (d->__nextchar);
15717 +
15718 + d->optopt = pfound->val;
15719 + return '?';
15720 + }
15721 + }
15722 + else if (pfound->has_arg == 1)
15723 + {
15724 + if (d->optind < argc)
15725 + d->optarg = argv[d->optind++];
15726 + else
15727 + {
15728 + if (print_errors)
15729 + {
15730 +#if defined _LIBC && defined USE_IN_LIBIO
15731 + char *buf;
15732 +
15733 + if (__asprintf (&buf, _("\
15734 +%s: option `%s' requires an argument\n"),
15735 + argv[0], argv[d->optind - 1]) >= 0)
15736 + {
15737 + _IO_flockfile (stderr);
15738 +
15739 + int old_flags2 = ((_IO_FILE *) stderr)->_flags2;
15740 + ((_IO_FILE *) stderr)->_flags2
15741 + |= _IO_FLAGS2_NOTCANCEL;
15742 +
15743 + __fxprintf (NULL, "%s", buf);
15744 +
15745 + ((_IO_FILE *) stderr)->_flags2 = old_flags2;
15746 + _IO_funlockfile (stderr);
15747 +
15748 + free (buf);
15749 + }
15750 +#else
15751 + fprintf (stderr,
15752 + _("%s: option `%s' requires an argument\n"),
15753 + argv[0], argv[d->optind - 1]);
15754 +#endif
15755 + }
15756 + d->__nextchar += strlen (d->__nextchar);
15757 + d->optopt = pfound->val;
15758 + return optstring[0] == ':' ? ':' : '?';
15759 + }
15760 + }
15761 + d->__nextchar += strlen (d->__nextchar);
15762 + if (longind != NULL)
15763 + *longind = option_index;
15764 + if (pfound->flag)
15765 + {
15766 + *(pfound->flag) = pfound->val;
15767 + return 0;
15768 + }
15769 + return pfound->val;
15770 + }
15771 +
15772 + /* Can't find it as a long option. If this is not getopt_long_only,
15773 + or the option starts with '--' or is not a valid short
15774 + option, then it's an error.
15775 + Otherwise interpret it as a short option. */
15776 + if (!long_only || argv[d->optind][1] == '-'
15777 + || strchr (optstring, *d->__nextchar) == NULL)
15778 + {
15779 + if (print_errors)
15780 + {
15781 +#if defined _LIBC && defined USE_IN_LIBIO
15782 + char *buf;
15783 + int n;
15784 +#endif
15785 +
15786 + if (argv[d->optind][1] == '-')
15787 + {
15788 + /* --option */
15789 +#if defined _LIBC && defined USE_IN_LIBIO
15790 + n = __asprintf (&buf, _("%s: unrecognized option `--%s'\n"),
15791 + argv[0], d->__nextchar);
15792 +#else
15793 + fprintf (stderr, _("%s: unrecognized option `--%s'\n"),
15794 + argv[0], d->__nextchar);
15795 +#endif
15796 + }
15797 + else
15798 + {
15799 + /* +option or -option */
15800 +#if defined _LIBC && defined USE_IN_LIBIO
15801 + n = __asprintf (&buf, _("%s: unrecognized option `%c%s'\n"),
15802 + argv[0], argv[d->optind][0], d->__nextchar);
15803 +#else
15804 + fprintf (stderr, _("%s: unrecognized option `%c%s'\n"),
15805 + argv[0], argv[d->optind][0], d->__nextchar);
15806 +#endif
15807 + }
15808 +
15809 +#if defined _LIBC && defined USE_IN_LIBIO
15810 + if (n >= 0)
15811 + {
15812 + _IO_flockfile (stderr);
15813 +
15814 + int old_flags2 = ((_IO_FILE *) stderr)->_flags2;
15815 + ((_IO_FILE *) stderr)->_flags2 |= _IO_FLAGS2_NOTCANCEL;
15816 +
15817 + __fxprintf (NULL, "%s", buf);
15818 +
15819 + ((_IO_FILE *) stderr)->_flags2 = old_flags2;
15820 + _IO_funlockfile (stderr);
15821 +
15822 + free (buf);
15823 + }
15824 +#endif
15825 + }
15826 + d->__nextchar = (char *) "";
15827 + d->optind++;
15828 + d->optopt = 0;
15829 + return '?';
15830 + }
15831 + }
15832 +
15833 + /* Look at and handle the next short option-character. */
15834 +
15835 + {
15836 + char c = *d->__nextchar++;
15837 + char *temp = strchr (optstring, c);
15838 +
15839 + /* Increment `optind' when we start to process its last character. */
15840 + if (*d->__nextchar == '\0')
15841 + ++d->optind;
15842 +
15843 + if (temp == NULL || c == ':')
15844 + {
15845 + if (print_errors)
15846 + {
15847 +#if defined _LIBC && defined USE_IN_LIBIO
15848 + char *buf;
15849 + int n;
15850 +#endif
15851 +
15852 + if (d->__posixly_correct)
15853 + {
15854 + /* 1003.2 specifies the format of this message. */
15855 +#if defined _LIBC && defined USE_IN_LIBIO
15856 + n = __asprintf (&buf, _("%s: illegal option -- %c\n"),
15857 + argv[0], c);
15858 +#else
15859 + fprintf (stderr, _("%s: illegal option -- %c\n"), argv[0], c);
15860 +#endif
15861 + }
15862 + else
15863 + {
15864 +#if defined _LIBC && defined USE_IN_LIBIO
15865 + n = __asprintf (&buf, _("%s: invalid option -- %c\n"),
15866 + argv[0], c);
15867 +#else
15868 + fprintf (stderr, _("%s: invalid option -- %c\n"), argv[0], c);
15869 +#endif
15870 + }
15871 +
15872 +#if defined _LIBC && defined USE_IN_LIBIO
15873 + if (n >= 0)
15874 + {
15875 + _IO_flockfile (stderr);
15876 +
15877 + int old_flags2 = ((_IO_FILE *) stderr)->_flags2;
15878 + ((_IO_FILE *) stderr)->_flags2 |= _IO_FLAGS2_NOTCANCEL;
15879 +
15880 + __fxprintf (NULL, "%s", buf);
15881 +
15882 + ((_IO_FILE *) stderr)->_flags2 = old_flags2;
15883 + _IO_funlockfile (stderr);
15884 +
15885 + free (buf);
15886 + }
15887 +#endif
15888 + }
15889 + d->optopt = c;
15890 + return '?';
15891 + }
15892 + /* Convenience. Treat POSIX -W foo same as long option --foo */
15893 + if (temp[0] == 'W' && temp[1] == ';')
15894 + {
15895 + char *nameend;
15896 + const struct option *p;
15897 + const struct option *pfound = NULL;
15898 + int exact = 0;
15899 + int ambig = 0;
15900 + int indfound = 0;
15901 + int option_index;
15902 +
15903 + /* This is an option that requires an argument. */
15904 + if (*d->__nextchar != '\0')
15905 + {
15906 + d->optarg = d->__nextchar;
15907 + /* If we end this ARGV-element by taking the rest as an arg,
15908 + we must advance to the next element now. */
15909 + d->optind++;
15910 + }
15911 + else if (d->optind == argc)
15912 + {
15913 + if (print_errors)
15914 + {
15915 + /* 1003.2 specifies the format of this message. */
15916 +#if defined _LIBC && defined USE_IN_LIBIO
15917 + char *buf;
15918 +
15919 + if (__asprintf (&buf,
15920 + _("%s: option requires an argument -- %c\n"),
15921 + argv[0], c) >= 0)
15922 + {
15923 + _IO_flockfile (stderr);
15924 +
15925 + int old_flags2 = ((_IO_FILE *) stderr)->_flags2;
15926 + ((_IO_FILE *) stderr)->_flags2 |= _IO_FLAGS2_NOTCANCEL;
15927 +
15928 + __fxprintf (NULL, "%s", buf);
15929 +
15930 + ((_IO_FILE *) stderr)->_flags2 = old_flags2;
15931 + _IO_funlockfile (stderr);
15932 +
15933 + free (buf);
15934 + }
15935 +#else
15936 + fprintf (stderr, _("%s: option requires an argument -- %c\n"),
15937 + argv[0], c);
15938 +#endif
15939 + }
15940 + d->optopt = c;
15941 + if (optstring[0] == ':')
15942 + c = ':';
15943 + else
15944 + c = '?';
15945 + return c;
15946 + }
15947 + else
15948 + /* We already incremented `d->optind' once;
15949 + increment it again when taking next ARGV-elt as argument. */
15950 + d->optarg = argv[d->optind++];
15951 +
15952 + /* optarg is now the argument, see if it's in the
15953 + table of longopts. */
15954 +
15955 + for (d->__nextchar = nameend = d->optarg; *nameend && *nameend != '=';
15956 + nameend++)
15957 + /* Do nothing. */ ;
15958 +
15959 + /* Test all long options for either exact match
15960 + or abbreviated matches. */
15961 + for (p = longopts, option_index = 0; p->name; p++, option_index++)
15962 + if (!strncmp (p->name, d->__nextchar, nameend - d->__nextchar))
15963 + {
15964 + if ((unsigned int) (nameend - d->__nextchar) == strlen (p->name))
15965 + {
15966 + /* Exact match found. */
15967 + pfound = p;
15968 + indfound = option_index;
15969 + exact = 1;
15970 + break;
15971 + }
15972 + else if (pfound == NULL)
15973 + {
15974 + /* First nonexact match found. */
15975 + pfound = p;
15976 + indfound = option_index;
15977 + }
15978 + else
15979 + /* Second or later nonexact match found. */
15980 + ambig = 1;
15981 + }
15982 + if (ambig && !exact)
15983 + {
15984 + if (print_errors)
15985 + {
15986 +#if defined _LIBC && defined USE_IN_LIBIO
15987 + char *buf;
15988 +
15989 + if (__asprintf (&buf, _("%s: option `-W %s' is ambiguous\n"),
15990 + argv[0], argv[d->optind]) >= 0)
15991 + {
15992 + _IO_flockfile (stderr);
15993 +
15994 + int old_flags2 = ((_IO_FILE *) stderr)->_flags2;
15995 + ((_IO_FILE *) stderr)->_flags2 |= _IO_FLAGS2_NOTCANCEL;
15996 +
15997 + __fxprintf (NULL, "%s", buf);
15998 +
15999 + ((_IO_FILE *) stderr)->_flags2 = old_flags2;
16000 + _IO_funlockfile (stderr);
16001 +
16002 + free (buf);
16003 + }
16004 +#else
16005 + fprintf (stderr, _("%s: option `-W %s' is ambiguous\n"),
16006 + argv[0], argv[d->optind]);
16007 +#endif
16008 + }
16009 + d->__nextchar += strlen (d->__nextchar);
16010 + d->optind++;
16011 + return '?';
16012 + }
16013 + if (pfound != NULL)
16014 + {
16015 + option_index = indfound;
16016 + if (*nameend)
16017 + {
16018 + /* Don't test has_arg with >, because some C compilers don't
16019 + allow it to be used on enums. */
16020 + if (pfound->has_arg)
16021 + d->optarg = nameend + 1;
16022 + else
16023 + {
16024 + if (print_errors)
16025 + {
16026 +#if defined _LIBC && defined USE_IN_LIBIO
16027 + char *buf;
16028 +
16029 + if (__asprintf (&buf, _("\
16030 +%s: option `-W %s' doesn't allow an argument\n"),
16031 + argv[0], pfound->name) >= 0)
16032 + {
16033 + _IO_flockfile (stderr);
16034 +
16035 + int old_flags2 = ((_IO_FILE *) stderr)->_flags2;
16036 + ((_IO_FILE *) stderr)->_flags2
16037 + |= _IO_FLAGS2_NOTCANCEL;
16038 +
16039 + __fxprintf (NULL, "%s", buf);
16040 +
16041 + ((_IO_FILE *) stderr)->_flags2 = old_flags2;
16042 + _IO_funlockfile (stderr);
16043 +
16044 + free (buf);
16045 + }
16046 +#else
16047 + fprintf (stderr, _("\
16048 +%s: option `-W %s' doesn't allow an argument\n"),
16049 + argv[0], pfound->name);
16050 +#endif
16051 + }
16052 +
16053 + d->__nextchar += strlen (d->__nextchar);
16054 + return '?';
16055 + }
16056 + }
16057 + else if (pfound->has_arg == 1)
16058 + {
16059 + if (d->optind < argc)
16060 + d->optarg = argv[d->optind++];
16061 + else
16062 + {
16063 + if (print_errors)
16064 + {
16065 +#if defined _LIBC && defined USE_IN_LIBIO
16066 + char *buf;
16067 +
16068 + if (__asprintf (&buf, _("\
16069 +%s: option `%s' requires an argument\n"),
16070 + argv[0], argv[d->optind - 1]) >= 0)
16071 + {
16072 + _IO_flockfile (stderr);
16073 +
16074 + int old_flags2 = ((_IO_FILE *) stderr)->_flags2;
16075 + ((_IO_FILE *) stderr)->_flags2
16076 + |= _IO_FLAGS2_NOTCANCEL;
16077 +
16078 + __fxprintf (NULL, "%s", buf);
16079 +
16080 + ((_IO_FILE *) stderr)->_flags2 = old_flags2;
16081 + _IO_funlockfile (stderr);
16082 +
16083 + free (buf);
16084 + }
16085 +#else
16086 + fprintf (stderr,
16087 + _("%s: option `%s' requires an argument\n"),
16088 + argv[0], argv[d->optind - 1]);
16089 +#endif
16090 + }
16091 + d->__nextchar += strlen (d->__nextchar);
16092 + return optstring[0] == ':' ? ':' : '?';
16093 + }
16094 + }
16095 + d->__nextchar += strlen (d->__nextchar);
16096 + if (longind != NULL)
16097 + *longind = option_index;
16098 + if (pfound->flag)
16099 + {
16100 + *(pfound->flag) = pfound->val;
16101 + return 0;
16102 + }
16103 + return pfound->val;
16104 + }
16105 + d->__nextchar = NULL;
16106 + return 'W'; /* Let the application handle it. */
16107 + }
16108 + if (temp[1] == ':')
16109 + {
16110 + if (temp[2] == ':')
16111 + {
16112 + /* This is an option that accepts an argument optionally. */
16113 + if (*d->__nextchar != '\0')
16114 + {
16115 + d->optarg = d->__nextchar;
16116 + d->optind++;
16117 + }
16118 + else
16119 + d->optarg = NULL;
16120 + d->__nextchar = NULL;
16121 + }
16122 + else
16123 + {
16124 + /* This is an option that requires an argument. */
16125 + if (*d->__nextchar != '\0')
16126 + {
16127 + d->optarg = d->__nextchar;
16128 + /* If we end this ARGV-element by taking the rest as an arg,
16129 + we must advance to the next element now. */
16130 + d->optind++;
16131 + }
16132 + else if (d->optind == argc)
16133 + {
16134 + if (print_errors)
16135 + {
16136 + /* 1003.2 specifies the format of this message. */
16137 +#if defined _LIBC && defined USE_IN_LIBIO
16138 + char *buf;
16139 +
16140 + if (__asprintf (&buf, _("\
16141 +%s: option requires an argument -- %c\n"),
16142 + argv[0], c) >= 0)
16143 + {
16144 + _IO_flockfile (stderr);
16145 +
16146 + int old_flags2 = ((_IO_FILE *) stderr)->_flags2;
16147 + ((_IO_FILE *) stderr)->_flags2 |= _IO_FLAGS2_NOTCANCEL;
16148 +
16149 + __fxprintf (NULL, "%s", buf);
16150 +
16151 + ((_IO_FILE *) stderr)->_flags2 = old_flags2;
16152 + _IO_funlockfile (stderr);
16153 +
16154 + free (buf);
16155 + }
16156 +#else
16157 + fprintf (stderr,
16158 + _("%s: option requires an argument -- %c\n"),
16159 + argv[0], c);
16160 +#endif
16161 + }
16162 + d->optopt = c;
16163 + if (optstring[0] == ':')
16164 + c = ':';
16165 + else
16166 + c = '?';
16167 + }
16168 + else
16169 + /* We already incremented `optind' once;
16170 + increment it again when taking next ARGV-elt as argument. */
16171 + d->optarg = argv[d->optind++];
16172 + d->__nextchar = NULL;
16173 + }
16174 + }
16175 + return c;
16176 + }
16177 +}
16178 +
16179 +int
16180 +_getopt_internal (int argc, char **argv, const char *optstring,
16181 + const struct option *longopts, int *longind,
16182 + int long_only, int posixly_correct)
16183 +{
16184 + int result;
16185 +
16186 + getopt_data.optind = optind;
16187 + getopt_data.opterr = opterr;
16188 +
16189 + result = _getopt_internal_r (argc, argv, optstring, longopts, longind,
16190 + long_only, posixly_correct, &getopt_data);
16191 +
16192 + optind = getopt_data.optind;
16193 + optarg = getopt_data.optarg;
16194 + optopt = getopt_data.optopt;
16195 +
16196 + return result;
16197 +}
16198 +
16199 +/* glibc gets a LSB-compliant getopt.
16200 + Standalone applications get a POSIX-compliant getopt. */
16201 +#if _LIBC
16202 +enum { POSIXLY_CORRECT = 0 };
16203 +#else
16204 +enum { POSIXLY_CORRECT = 1 };
16205 +#endif
16206 +
16207 +int
16208 +getopt (int argc, char *const *argv, const char *optstring)
16209 +{
16210 + return _getopt_internal (argc, (char **) argv, optstring, NULL, NULL, 0,
16211 + POSIXLY_CORRECT);
16212 +}
16213 +
16214 +
16215 +#ifdef TEST
16216 +
16217 +/* Compile with -DTEST to make an executable for use in testing
16218 + the above definition of `getopt'. */
16219 +
16220 +int
16221 +main (int argc, char **argv)
16222 +{
16223 + int c;
16224 + int digit_optind = 0;
16225 +
16226 + while (1)
16227 + {
16228 + int this_option_optind = optind ? optind : 1;
16229 +
16230 + c = getopt (argc, argv, "abc:d:0123456789");
16231 + if (c == -1)
16232 + break;
16233 +
16234 + switch (c)
16235 + {
16236 + case '0':
16237 + case '1':
16238 + case '2':
16239 + case '3':
16240 + case '4':
16241 + case '5':
16242 + case '6':
16243 + case '7':
16244 + case '8':
16245 + case '9':
16246 + if (digit_optind != 0 && digit_optind != this_option_optind)
16247 + printf ("digits occur in two different argv-elements.\n");
16248 + digit_optind = this_option_optind;
16249 + printf ("option %c\n", c);
16250 + break;
16251 +
16252 + case 'a':
16253 + printf ("option a\n");
16254 + break;
16255 +
16256 + case 'b':
16257 + printf ("option b\n");
16258 + break;
16259 +
16260 + case 'c':
16261 + printf ("option c with value `%s'\n", optarg);
16262 + break;
16263 +
16264 + case '?':
16265 + break;
16266 +
16267 + default:
16268 + printf ("?? getopt returned character code 0%o ??\n", c);
16269 + }
16270 + }
16271 +
16272 + if (optind < argc)
16273 + {
16274 + printf ("non-option ARGV-elements: ");
16275 + while (optind < argc)
16276 + printf ("%s ", argv[optind++]);
16277 + printf ("\n");
16278 + }
16279 +
16280 + exit (0);
16281 +}
16282 +
16283 +#endif /* TEST */
16284
16285 Added: trunk/baselayout-prefix/gnulib/gllib/getopt.in.h
16286 ===================================================================
16287 --- trunk/baselayout-prefix/gnulib/gllib/getopt.in.h (rev 0)
16288 +++ trunk/baselayout-prefix/gnulib/gllib/getopt.in.h 2011-03-31 16:43:45 UTC (rev 1693)
16289 @@ -0,0 +1,228 @@
16290 +/* Declarations for getopt.
16291 + Copyright (C) 1989-1994,1996-1999,2001,2003,2004,2005,2006,2007
16292 + Free Software Foundation, Inc.
16293 + This file is part of the GNU C Library.
16294 +
16295 + This program is free software: you can redistribute it and/or modify
16296 + it under the terms of the GNU General Public License as published by
16297 + the Free Software Foundation; either version 3 of the License, or
16298 + (at your option) any later version.
16299 +
16300 + This program is distributed in the hope that it will be useful,
16301 + but WITHOUT ANY WARRANTY; without even the implied warranty of
16302 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16303 + GNU General Public License for more details.
16304 +
16305 + You should have received a copy of the GNU General Public License
16306 + along with this program. If not, see <http://www.gnu.org/licenses/>. */
16307 +
16308 +#ifndef _GETOPT_H
16309 +
16310 +#ifndef __need_getopt
16311 +# define _GETOPT_H 1
16312 +# ifndef __GETOPT_PREFIX
16313 +# define __GETOPT_PREFIX rpl_
16314 +# endif
16315 +#endif
16316 +
16317 +/* Standalone applications should #define __GETOPT_PREFIX to an
16318 + identifier that prefixes the external functions and variables
16319 + defined in this header. When this happens, include the
16320 + headers that might declare getopt so that they will not cause
16321 + confusion if included after this file. Then systematically rename
16322 + identifiers so that they do not collide with the system functions
16323 + and variables. Renaming avoids problems with some compilers and
16324 + linkers. */
16325 +#if defined __GETOPT_PREFIX && !defined __need_getopt
16326 +# include <stdlib.h>
16327 +# include <stdio.h>
16328 +# include <unistd.h>
16329 +# undef __need_getopt
16330 +# undef getopt
16331 +# undef getopt_long
16332 +# undef getopt_long_only
16333 +# undef optarg
16334 +# undef opterr
16335 +# undef optind
16336 +# undef optopt
16337 +# define __GETOPT_CONCAT(x, y) x ## y
16338 +# define __GETOPT_XCONCAT(x, y) __GETOPT_CONCAT (x, y)
16339 +# define __GETOPT_ID(y) __GETOPT_XCONCAT (__GETOPT_PREFIX, y)
16340 +# define getopt __GETOPT_ID (getopt)
16341 +# define getopt_long __GETOPT_ID (getopt_long)
16342 +# define getopt_long_only __GETOPT_ID (getopt_long_only)
16343 +# define optarg __GETOPT_ID (optarg)
16344 +# define opterr __GETOPT_ID (opterr)
16345 +# define optind __GETOPT_ID (optind)
16346 +# define optopt __GETOPT_ID (optopt)
16347 +#endif
16348 +
16349 +/* Standalone applications get correct prototypes for getopt_long and
16350 + getopt_long_only; they declare "char **argv". libc uses prototypes
16351 + with "char *const *argv" that are incorrect because getopt_long and
16352 + getopt_long_only can permute argv; this is required for backward
16353 + compatibility (e.g., for LSB 2.0.1).
16354 +
16355 + This used to be `#if defined __GETOPT_PREFIX && !defined __need_getopt',
16356 + but it caused redefinition warnings if both unistd.h and getopt.h were
16357 + included, since unistd.h includes getopt.h having previously defined
16358 + __need_getopt.
16359 +
16360 + The only place where __getopt_argv_const is used is in definitions
16361 + of getopt_long and getopt_long_only below, but these are visible
16362 + only if __need_getopt is not defined, so it is quite safe to rewrite
16363 + the conditional as follows:
16364 +*/
16365 +#if !defined __need_getopt
16366 +# if defined __GETOPT_PREFIX
16367 +# define __getopt_argv_const /* empty */
16368 +# else
16369 +# define __getopt_argv_const const
16370 +# endif
16371 +#endif
16372 +
16373 +/* If __GNU_LIBRARY__ is not already defined, either we are being used
16374 + standalone, or this is the first header included in the source file.
16375 + If we are being used with glibc, we need to include <features.h>, but
16376 + that does not exist if we are standalone. So: if __GNU_LIBRARY__ is
16377 + not defined, include <ctype.h>, which will pull in <features.h> for us
16378 + if it's from glibc. (Why ctype.h? It's guaranteed to exist and it
16379 + doesn't flood the namespace with stuff the way some other headers do.) */
16380 +#if !defined __GNU_LIBRARY__
16381 +# include <ctype.h>
16382 +#endif
16383 +
16384 +#ifndef __THROW
16385 +# ifndef __GNUC_PREREQ
16386 +# define __GNUC_PREREQ(maj, min) (0)
16387 +# endif
16388 +# if defined __cplusplus && __GNUC_PREREQ (2,8)
16389 +# define __THROW throw ()
16390 +# else
16391 +# define __THROW
16392 +# endif
16393 +#endif
16394 +
16395 +#ifdef __cplusplus
16396 +extern "C" {
16397 +#endif
16398 +
16399 +/* For communication from `getopt' to the caller.
16400 + When `getopt' finds an option that takes an argument,
16401 + the argument value is returned here.
16402 + Also, when `ordering' is RETURN_IN_ORDER,
16403 + each non-option ARGV-element is returned here. */
16404 +
16405 +extern char *optarg;
16406 +
16407 +/* Index in ARGV of the next element to be scanned.
16408 + This is used for communication to and from the caller
16409 + and for communication between successive calls to `getopt'.
16410 +
16411 + On entry to `getopt', zero means this is the first call; initialize.
16412 +
16413 + When `getopt' returns -1, this is the index of the first of the
16414 + non-option elements that the caller should itself scan.
16415 +
16416 + Otherwise, `optind' communicates from one call to the next
16417 + how much of ARGV has been scanned so far. */
16418 +
16419 +extern int optind;
16420 +
16421 +/* Callers store zero here to inhibit the error message `getopt' prints
16422 + for unrecognized options. */
16423 +
16424 +extern int opterr;
16425 +
16426 +/* Set to an option character which was unrecognized. */
16427 +
16428 +extern int optopt;
16429 +
16430 +#ifndef __need_getopt
16431 +/* Describe the long-named options requested by the application.
16432 + The LONG_OPTIONS argument to getopt_long or getopt_long_only is a vector
16433 + of `struct option' terminated by an element containing a name which is
16434 + zero.
16435 +
16436 + The field `has_arg' is:
16437 + no_argument (or 0) if the option does not take an argument,
16438 + required_argument (or 1) if the option requires an argument,
16439 + optional_argument (or 2) if the option takes an optional argument.
16440 +
16441 + If the field `flag' is not NULL, it points to a variable that is set
16442 + to the value given in the field `val' when the option is found, but
16443 + left unchanged if the option is not found.
16444 +
16445 + To have a long-named option do something other than set an `int' to
16446 + a compiled-in constant, such as set a value from `optarg', set the
16447 + option's `flag' field to zero and its `val' field to a nonzero
16448 + value (the equivalent single-letter option character, if there is
16449 + one). For long options that have a zero `flag' field, `getopt'
16450 + returns the contents of the `val' field. */
16451 +
16452 +struct option
16453 +{
16454 + const char *name;
16455 + /* has_arg can't be an enum because some compilers complain about
16456 + type mismatches in all the code that assumes it is an int. */
16457 + int has_arg;
16458 + int *flag;
16459 + int val;
16460 +};
16461 +
16462 +/* Names for the values of the `has_arg' field of `struct option'. */
16463 +
16464 +# define no_argument 0
16465 +# define required_argument 1
16466 +# define optional_argument 2
16467 +#endif /* need getopt */
16468 +
16469 +
16470 +/* Get definitions and prototypes for functions to process the
16471 + arguments in ARGV (ARGC of them, minus the program name) for
16472 + options given in OPTS.
16473 +
16474 + Return the option character from OPTS just read. Return -1 when
16475 + there are no more options. For unrecognized options, or options
16476 + missing arguments, `optopt' is set to the option letter, and '?' is
16477 + returned.
16478 +
16479 + The OPTS string is a list of characters which are recognized option
16480 + letters, optionally followed by colons, specifying that that letter
16481 + takes an argument, to be placed in `optarg'.
16482 +
16483 + If a letter in OPTS is followed by two colons, its argument is
16484 + optional. This behavior is specific to the GNU `getopt'.
16485 +
16486 + The argument `--' causes premature termination of argument
16487 + scanning, explicitly telling `getopt' that there are no more
16488 + options.
16489 +
16490 + If OPTS begins with `-', then non-option arguments are treated as
16491 + arguments to the option '\1'. This behavior is specific to the GNU
16492 + `getopt'. If OPTS begins with `+', or POSIXLY_CORRECT is set in
16493 + the environment, then do not permute arguments. */
16494 +
16495 +extern int getopt (int ___argc, char *const *___argv, const char *__shortopts)
16496 + __THROW;
16497 +
16498 +#ifndef __need_getopt
16499 +extern int getopt_long (int ___argc, char *__getopt_argv_const *___argv,
16500 + const char *__shortopts,
16501 + const struct option *__longopts, int *__longind)
16502 + __THROW;
16503 +extern int getopt_long_only (int ___argc, char *__getopt_argv_const *___argv,
16504 + const char *__shortopts,
16505 + const struct option *__longopts, int *__longind)
16506 + __THROW;
16507 +
16508 +#endif
16509 +
16510 +#ifdef __cplusplus
16511 +}
16512 +#endif
16513 +
16514 +/* Make sure we later can get all the definitions and declarations. */
16515 +#undef __need_getopt
16516 +
16517 +#endif /* getopt.h */
16518
16519 Added: trunk/baselayout-prefix/gnulib/gllib/getopt1.c
16520 ===================================================================
16521 --- trunk/baselayout-prefix/gnulib/gllib/getopt1.c (rev 0)
16522 +++ trunk/baselayout-prefix/gnulib/gllib/getopt1.c 2011-03-31 16:43:45 UTC (rev 1693)
16523 @@ -0,0 +1,170 @@
16524 +/* getopt_long and getopt_long_only entry points for GNU getopt.
16525 + Copyright (C) 1987,88,89,90,91,92,93,94,96,97,98,2004,2006
16526 + Free Software Foundation, Inc.
16527 + This file is part of the GNU C Library.
16528 +
16529 + This program is free software: you can redistribute it and/or modify
16530 + it under the terms of the GNU General Public License as published by
16531 + the Free Software Foundation; either version 3 of the License, or
16532 + (at your option) any later version.
16533 +
16534 + This program is distributed in the hope that it will be useful,
16535 + but WITHOUT ANY WARRANTY; without even the implied warranty of
16536 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16537 + GNU General Public License for more details.
16538 +
16539 + You should have received a copy of the GNU General Public License
16540 + along with this program. If not, see <http://www.gnu.org/licenses/>. */
16541 +
16542 +#ifdef _LIBC
16543 +# include <getopt.h>
16544 +#else
16545 +# include <config.h>
16546 +# include "getopt.h"
16547 +#endif
16548 +#include "getopt_int.h"
16549 +
16550 +#include <stdio.h>
16551 +
16552 +/* This needs to come after some library #include
16553 + to get __GNU_LIBRARY__ defined. */
16554 +#ifdef __GNU_LIBRARY__
16555 +#include <stdlib.h>
16556 +#endif
16557 +
16558 +#ifndef NULL
16559 +#define NULL 0
16560 +#endif
16561 +
16562 +int
16563 +getopt_long (int argc, char *__getopt_argv_const *argv, const char *options,
16564 + const struct option *long_options, int *opt_index)
16565 +{
16566 + return _getopt_internal (argc, (char **) argv, options, long_options,
16567 + opt_index, 0, 0);
16568 +}
16569 +
16570 +int
16571 +_getopt_long_r (int argc, char **argv, const char *options,
16572 + const struct option *long_options, int *opt_index,
16573 + struct _getopt_data *d)
16574 +{
16575 + return _getopt_internal_r (argc, argv, options, long_options, opt_index,
16576 + 0, 0, d);
16577 +}
16578 +
16579 +/* Like getopt_long, but '-' as well as '--' can indicate a long option.
16580 + If an option that starts with '-' (not '--') doesn't match a long option,
16581 + but does match a short option, it is parsed as a short option
16582 + instead. */
16583 +
16584 +int
16585 +getopt_long_only (int argc, char *__getopt_argv_const *argv,
16586 + const char *options,
16587 + const struct option *long_options, int *opt_index)
16588 +{
16589 + return _getopt_internal (argc, (char **) argv, options, long_options,
16590 + opt_index, 1, 0);
16591 +}
16592 +
16593 +int
16594 +_getopt_long_only_r (int argc, char **argv, const char *options,
16595 + const struct option *long_options, int *opt_index,
16596 + struct _getopt_data *d)
16597 +{
16598 + return _getopt_internal_r (argc, argv, options, long_options, opt_index,
16599 + 1, 0, d);
16600 +}
16601 +
16602 +
16603 +#ifdef TEST
16604 +
16605 +#include <stdio.h>
16606 +
16607 +int
16608 +main (int argc, char **argv)
16609 +{
16610 + int c;
16611 + int digit_optind = 0;
16612 +
16613 + while (1)
16614 + {
16615 + int this_option_optind = optind ? optind : 1;
16616 + int option_index = 0;
16617 + static struct option long_options[] =
16618 + {
16619 + {"add", 1, 0, 0},
16620 + {"append", 0, 0, 0},
16621 + {"delete", 1, 0, 0},
16622 + {"verbose", 0, 0, 0},
16623 + {"create", 0, 0, 0},
16624 + {"file", 1, 0, 0},
16625 + {0, 0, 0, 0}
16626 + };
16627 +
16628 + c = getopt_long (argc, argv, "abc:d:0123456789",
16629 + long_options, &option_index);
16630 + if (c == -1)
16631 + break;
16632 +
16633 + switch (c)
16634 + {
16635 + case 0:
16636 + printf ("option %s", long_options[option_index].name);
16637 + if (optarg)
16638 + printf (" with arg %s", optarg);
16639 + printf ("\n");
16640 + break;
16641 +
16642 + case '0':
16643 + case '1':
16644 + case '2':
16645 + case '3':
16646 + case '4':
16647 + case '5':
16648 + case '6':
16649 + case '7':
16650 + case '8':
16651 + case '9':
16652 + if (digit_optind != 0 && digit_optind != this_option_optind)
16653 + printf ("digits occur in two different argv-elements.\n");
16654 + digit_optind = this_option_optind;
16655 + printf ("option %c\n", c);
16656 + break;
16657 +
16658 + case 'a':
16659 + printf ("option a\n");
16660 + break;
16661 +
16662 + case 'b':
16663 + printf ("option b\n");
16664 + break;
16665 +
16666 + case 'c':
16667 + printf ("option c with value `%s'\n", optarg);
16668 + break;
16669 +
16670 + case 'd':
16671 + printf ("option d with value `%s'\n", optarg);
16672 + break;
16673 +
16674 + case '?':
16675 + break;
16676 +
16677 + default:
16678 + printf ("?? getopt returned character code 0%o ??\n", c);
16679 + }
16680 + }
16681 +
16682 + if (optind < argc)
16683 + {
16684 + printf ("non-option ARGV-elements: ");
16685 + while (optind < argc)
16686 + printf ("%s ", argv[optind++]);
16687 + printf ("\n");
16688 + }
16689 +
16690 + exit (0);
16691 +}
16692 +
16693 +#endif /* TEST */
16694
16695 Added: trunk/baselayout-prefix/gnulib/gllib/getopt_int.h
16696 ===================================================================
16697 --- trunk/baselayout-prefix/gnulib/gllib/getopt_int.h (rev 0)
16698 +++ trunk/baselayout-prefix/gnulib/gllib/getopt_int.h 2011-03-31 16:43:45 UTC (rev 1693)
16699 @@ -0,0 +1,130 @@
16700 +/* Internal declarations for getopt.
16701 + Copyright (C) 1989-1994,1996-1999,2001,2003,2004
16702 + Free Software Foundation, Inc.
16703 + This file is part of the GNU C Library.
16704 +
16705 + This program is free software: you can redistribute it and/or modify
16706 + it under the terms of the GNU General Public License as published by
16707 + the Free Software Foundation; either version 3 of the License, or
16708 + (at your option) any later version.
16709 +
16710 + This program is distributed in the hope that it will be useful,
16711 + but WITHOUT ANY WARRANTY; without even the implied warranty of
16712 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16713 + GNU General Public License for more details.
16714 +
16715 + You should have received a copy of the GNU General Public License
16716 + along with this program. If not, see <http://www.gnu.org/licenses/>. */
16717 +
16718 +#ifndef _GETOPT_INT_H
16719 +#define _GETOPT_INT_H 1
16720 +
16721 +extern int _getopt_internal (int ___argc, char **___argv,
16722 + const char *__shortopts,
16723 + const struct option *__longopts, int *__longind,
16724 + int __long_only, int __posixly_correct);
16725 +
16726 +
16727 +/* Reentrant versions which can handle parsing multiple argument
16728 + vectors at the same time. */
16729 +
16730 +/* Data type for reentrant functions. */
16731 +struct _getopt_data
16732 +{
16733 + /* These have exactly the same meaning as the corresponding global
16734 + variables, except that they are used for the reentrant
16735 + versions of getopt. */
16736 + int optind;
16737 + int opterr;
16738 + int optopt;
16739 + char *optarg;
16740 +
16741 + /* Internal members. */
16742 +
16743 + /* True if the internal members have been initialized. */
16744 + int __initialized;
16745 +
16746 + /* The next char to be scanned in the option-element
16747 + in which the last option character we returned was found.
16748 + This allows us to pick up the scan where we left off.
16749 +
16750 + If this is zero, or a null string, it means resume the scan
16751 + by advancing to the next ARGV-element. */
16752 + char *__nextchar;
16753 +
16754 + /* Describe how to deal with options that follow non-option ARGV-elements.
16755 +
16756 + If the caller did not specify anything,
16757 + the default is REQUIRE_ORDER if the environment variable
16758 + POSIXLY_CORRECT is defined, PERMUTE otherwise.
16759 +
16760 + REQUIRE_ORDER means don't recognize them as options;
16761 + stop option processing when the first non-option is seen.
16762 + This is what Unix does.
16763 + This mode of operation is selected by either setting the environment
16764 + variable POSIXLY_CORRECT, or using `+' as the first character
16765 + of the list of option characters, or by calling getopt.
16766 +
16767 + PERMUTE is the default. We permute the contents of ARGV as we
16768 + scan, so that eventually all the non-options are at the end.
16769 + This allows options to be given in any order, even with programs
16770 + that were not written to expect this.
16771 +
16772 + RETURN_IN_ORDER is an option available to programs that were
16773 + written to expect options and other ARGV-elements in any order
16774 + and that care about the ordering of the two. We describe each
16775 + non-option ARGV-element as if it were the argument of an option
16776 + with character code 1. Using `-' as the first character of the
16777 + list of option characters selects this mode of operation.
16778 +
16779 + The special argument `--' forces an end of option-scanning regardless
16780 + of the value of `ordering'. In the case of RETURN_IN_ORDER, only
16781 + `--' can cause `getopt' to return -1 with `optind' != ARGC. */
16782 +
16783 + enum
16784 + {
16785 + REQUIRE_ORDER, PERMUTE, RETURN_IN_ORDER
16786 + } __ordering;
16787 +
16788 + /* If the POSIXLY_CORRECT environment variable is set
16789 + or getopt was called. */
16790 + int __posixly_correct;
16791 +
16792 +
16793 + /* Handle permutation of arguments. */
16794 +
16795 + /* Describe the part of ARGV that contains non-options that have
16796 + been skipped. `first_nonopt' is the index in ARGV of the first
16797 + of them; `last_nonopt' is the index after the last of them. */
16798 +
16799 + int __first_nonopt;
16800 + int __last_nonopt;
16801 +
16802 +#if defined _LIBC && defined USE_NONOPTION_FLAGS
16803 + int __nonoption_flags_max_len;
16804 + int __nonoption_flags_len;
16805 +# endif
16806 +};
16807 +
16808 +/* The initializer is necessary to set OPTIND and OPTERR to their
16809 + default values and to clear the initialization flag. */
16810 +#define _GETOPT_DATA_INITIALIZER { 1, 1 }
16811 +
16812 +extern int _getopt_internal_r (int ___argc, char **___argv,
16813 + const char *__shortopts,
16814 + const struct option *__longopts, int *__longind,
16815 + int __long_only, int __posixly_correct,
16816 + struct _getopt_data *__data);
16817 +
16818 +extern int _getopt_long_r (int ___argc, char **___argv,
16819 + const char *__shortopts,
16820 + const struct option *__longopts, int *__longind,
16821 + struct _getopt_data *__data);
16822 +
16823 +extern int _getopt_long_only_r (int ___argc, char **___argv,
16824 + const char *__shortopts,
16825 + const struct option *__longopts,
16826 + int *__longind,
16827 + struct _getopt_data *__data);
16828 +
16829 +#endif /* getopt_int.h */
16830
16831 Added: trunk/baselayout-prefix/gnulib/gllib/gettext.h
16832 ===================================================================
16833 --- trunk/baselayout-prefix/gnulib/gllib/gettext.h (rev 0)
16834 +++ trunk/baselayout-prefix/gnulib/gllib/gettext.h 2011-03-31 16:43:45 UTC (rev 1693)
16835 @@ -0,0 +1,270 @@
16836 +/* Convenience header for conditional use of GNU <libintl.h>.
16837 + Copyright (C) 1995-1998, 2000-2002, 2004-2006 Free Software Foundation, Inc.
16838 +
16839 + This program is free software; you can redistribute it and/or modify
16840 + it under the terms of the GNU General Public License as published by
16841 + the Free Software Foundation; either version 2, or (at your option)
16842 + any later version.
16843 +
16844 + This program is distributed in the hope that it will be useful,
16845 + but WITHOUT ANY WARRANTY; without even the implied warranty of
16846 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16847 + GNU General Public License for more details.
16848 +
16849 + You should have received a copy of the GNU General Public License along
16850 + with this program; if not, write to the Free Software Foundation,
16851 + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
16852 +
16853 +#ifndef _LIBGETTEXT_H
16854 +#define _LIBGETTEXT_H 1
16855 +
16856 +/* NLS can be disabled through the configure --disable-nls option. */
16857 +#if ENABLE_NLS
16858 +
16859 +/* Get declarations of GNU message catalog functions. */
16860 +# include <libintl.h>
16861 +
16862 +/* You can set the DEFAULT_TEXT_DOMAIN macro to specify the domain used by
16863 + the gettext() and ngettext() macros. This is an alternative to calling
16864 + textdomain(), and is useful for libraries. */
16865 +# ifdef DEFAULT_TEXT_DOMAIN
16866 +# undef gettext
16867 +# define gettext(Msgid) \
16868 + dgettext (DEFAULT_TEXT_DOMAIN, Msgid)
16869 +# undef ngettext
16870 +# define ngettext(Msgid1, Msgid2, N) \
16871 + dngettext (DEFAULT_TEXT_DOMAIN, Msgid1, Msgid2, N)
16872 +# endif
16873 +
16874 +#else
16875 +
16876 +/* Solaris /usr/include/locale.h includes /usr/include/libintl.h, which
16877 + chokes if dcgettext is defined as a macro. So include it now, to make
16878 + later inclusions of <locale.h> a NOP. We don't include <libintl.h>
16879 + as well because people using "gettext.h" will not include <libintl.h>,
16880 + and also including <libintl.h> would fail on SunOS 4, whereas <locale.h>
16881 + is OK. */
16882 +#if defined(__sun)
16883 +# include <locale.h>
16884 +#endif
16885 +
16886 +/* Many header files from the libstdc++ coming with g++ 3.3 or newer include
16887 + <libintl.h>, which chokes if dcgettext is defined as a macro. So include
16888 + it now, to make later inclusions of <libintl.h> a NOP. */
16889 +#if defined(__cplusplus) && defined(__GNUG__) && (__GNUC__ >= 3)
16890 +# include <cstdlib>
16891 +# if (__GLIBC__ >= 2) || _GLIBCXX_HAVE_LIBINTL_H
16892 +# include <libintl.h>
16893 +# endif
16894 +#endif
16895 +
16896 +/* Disabled NLS.
16897 + The casts to 'const char *' serve the purpose of producing warnings
16898 + for invalid uses of the value returned from these functions.
16899 + On pre-ANSI systems without 'const', the config.h file is supposed to
16900 + contain "#define const". */
16901 +# define gettext(Msgid) ((const char *) (Msgid))
16902 +# define dgettext(Domainname, Msgid) ((void) (Domainname), gettext (Msgid))
16903 +# define dcgettext(Domainname, Msgid, Category) \
16904 + ((void) (Category), dgettext (Domainname, Msgid))
16905 +# define ngettext(Msgid1, Msgid2, N) \
16906 + ((N) == 1 \
16907 + ? ((void) (Msgid2), (const char *) (Msgid1)) \
16908 + : ((void) (Msgid1), (const char *) (Msgid2)))
16909 +# define dngettext(Domainname, Msgid1, Msgid2, N) \
16910 + ((void) (Domainname), ngettext (Msgid1, Msgid2, N))
16911 +# define dcngettext(Domainname, Msgid1, Msgid2, N, Category) \
16912 + ((void) (Category), dngettext(Domainname, Msgid1, Msgid2, N))
16913 +# define textdomain(Domainname) ((const char *) (Domainname))
16914 +# define bindtextdomain(Domainname, Dirname) \
16915 + ((void) (Domainname), (const char *) (Dirname))
16916 +# define bind_textdomain_codeset(Domainname, Codeset) \
16917 + ((void) (Domainname), (const char *) (Codeset))
16918 +
16919 +#endif
16920 +
16921 +/* A pseudo function call that serves as a marker for the automated
16922 + extraction of messages, but does not call gettext(). The run-time
16923 + translation is done at a different place in the code.
16924 + The argument, String, should be a literal string. Concatenated strings
16925 + and other string expressions won't work.
16926 + The macro's expansion is not parenthesized, so that it is suitable as
16927 + initializer for static 'char[]' or 'const char[]' variables. */
16928 +#define gettext_noop(String) String
16929 +
16930 +/* The separator between msgctxt and msgid in a .mo file. */
16931 +#define GETTEXT_CONTEXT_GLUE "\004"
16932 +
16933 +/* Pseudo function calls, taking a MSGCTXT and a MSGID instead of just a
16934 + MSGID. MSGCTXT and MSGID must be string literals. MSGCTXT should be
16935 + short and rarely need to change.
16936 + The letter 'p' stands for 'particular' or 'special'. */
16937 +#ifdef DEFAULT_TEXT_DOMAIN
16938 +# define pgettext(Msgctxt, Msgid) \
16939 + pgettext_aux (DEFAULT_TEXT_DOMAIN, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, LC_MESSAGES)
16940 +#else
16941 +# define pgettext(Msgctxt, Msgid) \
16942 + pgettext_aux (NULL, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, LC_MESSAGES)
16943 +#endif
16944 +#define dpgettext(Domainname, Msgctxt, Msgid) \
16945 + pgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, LC_MESSAGES)
16946 +#define dcpgettext(Domainname, Msgctxt, Msgid, Category) \
16947 + pgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, Category)
16948 +#ifdef DEFAULT_TEXT_DOMAIN
16949 +# define npgettext(Msgctxt, Msgid, MsgidPlural, N) \
16950 + npgettext_aux (DEFAULT_TEXT_DOMAIN, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, MsgidPlural, N, LC_MESSAGES)
16951 +#else
16952 +# define npgettext(Msgctxt, Msgid, MsgidPlural, N) \
16953 + npgettext_aux (NULL, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, MsgidPlural, N, LC_MESSAGES)
16954 +#endif
16955 +#define dnpgettext(Domainname, Msgctxt, Msgid, MsgidPlural, N) \
16956 + npgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, MsgidPlural, N, LC_MESSAGES)
16957 +#define dcnpgettext(Domainname, Msgctxt, Msgid, MsgidPlural, N, Category) \
16958 + npgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, MsgidPlural, N, Category)
16959 +
16960 +#ifdef __GNUC__
16961 +__inline
16962 +#else
16963 +#ifdef __cplusplus
16964 +inline
16965 +#endif
16966 +#endif
16967 +static const char *
16968 +pgettext_aux (const char *domain,
16969 + const char *msg_ctxt_id, const char *msgid,
16970 + int category)
16971 +{
16972 + const char *translation = dcgettext (domain, msg_ctxt_id, category);
16973 + if (translation == msg_ctxt_id)
16974 + return msgid;
16975 + else
16976 + return translation;
16977 +}
16978 +
16979 +#ifdef __GNUC__
16980 +__inline
16981 +#else
16982 +#ifdef __cplusplus
16983 +inline
16984 +#endif
16985 +#endif
16986 +static const char *
16987 +npgettext_aux (const char *domain,
16988 + const char *msg_ctxt_id, const char *msgid,
16989 + const char *msgid_plural, unsigned long int n,
16990 + int category)
16991 +{
16992 + const char *translation =
16993 + dcngettext (domain, msg_ctxt_id, msgid_plural, n, category);
16994 + if (translation == msg_ctxt_id || translation == msgid_plural)
16995 + return (n == 1 ? msgid : msgid_plural);
16996 + else
16997 + return translation;
16998 +}
16999 +
17000 +/* The same thing extended for non-constant arguments. Here MSGCTXT and MSGID
17001 + can be arbitrary expressions. But for string literals these macros are
17002 + less efficient than those above. */
17003 +
17004 +#include <string.h>
17005 +
17006 +#define _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS \
17007 + (((__GNUC__ >= 3 || __GNUG__ >= 2) && !__STRICT_ANSI__) \
17008 + /* || __STDC_VERSION__ >= 199901L */ )
17009 +
17010 +#if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
17011 +#include <stdlib.h>
17012 +#endif
17013 +
17014 +#define pgettext_expr(Msgctxt, Msgid) \
17015 + dcpgettext_expr (NULL, Msgctxt, Msgid, LC_MESSAGES)
17016 +#define dpgettext_expr(Domainname, Msgctxt, Msgid) \
17017 + dcpgettext_expr (Domainname, Msgctxt, Msgid, LC_MESSAGES)
17018 +
17019 +#ifdef __GNUC__
17020 +__inline
17021 +#else
17022 +#ifdef __cplusplus
17023 +inline
17024 +#endif
17025 +#endif
17026 +static const char *
17027 +dcpgettext_expr (const char *domain,
17028 + const char *msgctxt, const char *msgid,
17029 + int category)
17030 +{
17031 + size_t msgctxt_len = strlen (msgctxt) + 1;
17032 + size_t msgid_len = strlen (msgid) + 1;
17033 + const char *translation;
17034 +#if _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
17035 + char msg_ctxt_id[msgctxt_len + msgid_len];
17036 +#else
17037 + char buf[1024];
17038 + char *msg_ctxt_id =
17039 + (msgctxt_len + msgid_len <= sizeof (buf)
17040 + ? buf
17041 + : (char *) malloc (msgctxt_len + msgid_len));
17042 + if (msg_ctxt_id != NULL)
17043 +#endif
17044 + {
17045 + memcpy (msg_ctxt_id, msgctxt, msgctxt_len - 1);
17046 + msg_ctxt_id[msgctxt_len - 1] = '\004';
17047 + memcpy (msg_ctxt_id + msgctxt_len, msgid, msgid_len);
17048 + translation = dcgettext (domain, msg_ctxt_id, category);
17049 +#if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
17050 + if (msg_ctxt_id != buf)
17051 + free (msg_ctxt_id);
17052 +#endif
17053 + if (translation != msg_ctxt_id)
17054 + return translation;
17055 + }
17056 + return msgid;
17057 +}
17058 +
17059 +#define npgettext_expr(Msgctxt, Msgid, MsgidPlural, N) \
17060 + dcnpgettext_expr (NULL, Msgctxt, Msgid, MsgidPlural, N, LC_MESSAGES)
17061 +#define dnpgettext_expr(Domainname, Msgctxt, Msgid, MsgidPlural, N) \
17062 + dcnpgettext_expr (Domainname, Msgctxt, Msgid, MsgidPlural, N, LC_MESSAGES)
17063 +
17064 +#ifdef __GNUC__
17065 +__inline
17066 +#else
17067 +#ifdef __cplusplus
17068 +inline
17069 +#endif
17070 +#endif
17071 +static const char *
17072 +dcnpgettext_expr (const char *domain,
17073 + const char *msgctxt, const char *msgid,
17074 + const char *msgid_plural, unsigned long int n,
17075 + int category)
17076 +{
17077 + size_t msgctxt_len = strlen (msgctxt) + 1;
17078 + size_t msgid_len = strlen (msgid) + 1;
17079 + const char *translation;
17080 +#if _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
17081 + char msg_ctxt_id[msgctxt_len + msgid_len];
17082 +#else
17083 + char buf[1024];
17084 + char *msg_ctxt_id =
17085 + (msgctxt_len + msgid_len <= sizeof (buf)
17086 + ? buf
17087 + : (char *) malloc (msgctxt_len + msgid_len));
17088 + if (msg_ctxt_id != NULL)
17089 +#endif
17090 + {
17091 + memcpy (msg_ctxt_id, msgctxt, msgctxt_len - 1);
17092 + msg_ctxt_id[msgctxt_len - 1] = '\004';
17093 + memcpy (msg_ctxt_id + msgctxt_len, msgid, msgid_len);
17094 + translation = dcngettext (domain, msg_ctxt_id, msgid_plural, n, category);
17095 +#if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
17096 + if (msg_ctxt_id != buf)
17097 + free (msg_ctxt_id);
17098 +#endif
17099 + if (!(translation == msg_ctxt_id || translation == msgid_plural))
17100 + return translation;
17101 + }
17102 + return (n == 1 ? msgid : msgid_plural);
17103 +}
17104 +
17105 +#endif /* _LIBGETTEXT_H */
17106
17107 Added: trunk/baselayout-prefix/gnulib/gllib/string.in.h
17108 ===================================================================
17109 --- trunk/baselayout-prefix/gnulib/gllib/string.in.h (rev 0)
17110 +++ trunk/baselayout-prefix/gnulib/gllib/string.in.h 2011-03-31 16:43:45 UTC (rev 1693)
17111 @@ -0,0 +1,605 @@
17112 +/* A GNU-like <string.h>.
17113 +
17114 + Copyright (C) 1995-1996, 2001-2008 Free Software Foundation, Inc.
17115 +
17116 + This program is free software; you can redistribute it and/or modify
17117 + it under the terms of the GNU General Public License as published by
17118 + the Free Software Foundation; either version 2, or (at your option)
17119 + any later version.
17120 +
17121 + This program is distributed in the hope that it will be useful,
17122 + but WITHOUT ANY WARRANTY; without even the implied warranty of
17123 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17124 + GNU General Public License for more details.
17125 +
17126 + You should have received a copy of the GNU General Public License
17127 + along with this program; if not, write to the Free Software Foundation,
17128 + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
17129 +
17130 +#ifndef _GL_STRING_H
17131 +
17132 +#if __GNUC__ >= 3
17133 +@PRAGMA_SYSTEM_HEADER@
17134 +#endif
17135 +
17136 +/* The include_next requires a split double-inclusion guard. */
17137 +#@INCLUDE_NEXT@ @NEXT_STRING_H@
17138 +
17139 +#ifndef _GL_STRING_H
17140 +#define _GL_STRING_H
17141 +
17142 +
17143 +#ifndef __attribute__
17144 +/* This feature is available in gcc versions 2.5 and later. */
17145 +# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5)
17146 +# define __attribute__(Spec) /* empty */
17147 +# endif
17148 +/* The attribute __pure__ was added in gcc 2.96. */
17149 +# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 96)
17150 +# define __pure__ /* empty */
17151 +# endif
17152 +#endif
17153 +
17154 +
17155 +/* The definition of GL_LINK_WARNING is copied here. */
17156 +
17157 +
17158 +#ifdef __cplusplus
17159 +extern "C" {
17160 +#endif
17161 +
17162 +
17163 +/* Return the first occurrence of NEEDLE in HAYSTACK. */
17164 +#if @GNULIB_MEMMEM@
17165 +# if @REPLACE_MEMMEM@
17166 +# define memmem rpl_memmem
17167 +# endif
17168 +# if ! @HAVE_DECL_MEMMEM@ || @REPLACE_MEMMEM@
17169 +extern void *memmem (void const *__haystack, size_t __haystack_len,
17170 + void const *__needle, size_t __needle_len)
17171 + __attribute__ ((__pure__));
17172 +# endif
17173 +#elif defined GNULIB_POSIXCHECK
17174 +# undef memmem
17175 +# define memmem(a,al,b,bl) \
17176 + (GL_LINK_WARNING ("memmem is unportable and often quadratic - " \
17177 + "use gnulib module memmem-simple for portability, " \
17178 + "and module memmem for speed" ), \
17179 + memmem (a, al, b, bl))
17180 +#endif
17181 +
17182 +/* Copy N bytes of SRC to DEST, return pointer to bytes after the
17183 + last written byte. */
17184 +#if @GNULIB_MEMPCPY@
17185 +# if ! @HAVE_MEMPCPY@
17186 +extern void *mempcpy (void *restrict __dest, void const *restrict __src,
17187 + size_t __n);
17188 +# endif
17189 +#elif defined GNULIB_POSIXCHECK
17190 +# undef mempcpy
17191 +# define mempcpy(a,b,n) \
17192 + (GL_LINK_WARNING ("mempcpy is unportable - " \
17193 + "use gnulib module mempcpy for portability"), \
17194 + mempcpy (a, b, n))
17195 +#endif
17196 +
17197 +/* Search backwards through a block for a byte (specified as an int). */
17198 +#if @GNULIB_MEMRCHR@
17199 +# if ! @HAVE_DECL_MEMRCHR@
17200 +extern void *memrchr (void const *, int, size_t)
17201 + __attribute__ ((__pure__));
17202 +# endif
17203 +#elif defined GNULIB_POSIXCHECK
17204 +# undef memrchr
17205 +# define memrchr(a,b,c) \
17206 + (GL_LINK_WARNING ("memrchr is unportable - " \
17207 + "use gnulib module memrchr for portability"), \
17208 + memrchr (a, b, c))
17209 +#endif
17210 +
17211 +/* Find the first occurrence of C in S. More efficient than
17212 + memchr(S,C,N), at the expense of undefined behavior if C does not
17213 + occur within N bytes. */
17214 +#if @GNULIB_RAWMEMCHR@
17215 +# if ! @HAVE_RAWMEMCHR@
17216 +extern void *rawmemchr (void const *__s, int __c_in)
17217 + __attribute__ ((__pure__));
17218 +# endif
17219 +#elif defined GNULIB_POSIXCHECK
17220 +# undef rawmemchr
17221 +# define rawmemchr(a,b) \
17222 + (GL_LINK_WARNING ("rawmemchr is unportable - " \
17223 + "use gnulib module rawmemchr for portability"), \
17224 + rawmemchr (a, b))
17225 +#endif
17226 +
17227 +/* Copy SRC to DST, returning the address of the terminating '\0' in DST. */
17228 +#if @GNULIB_STPCPY@
17229 +# if ! @HAVE_STPCPY@
17230 +extern char *stpcpy (char *restrict __dst, char const *restrict __src);
17231 +# endif
17232 +#elif defined GNULIB_POSIXCHECK
17233 +# undef stpcpy
17234 +# define stpcpy(a,b) \
17235 + (GL_LINK_WARNING ("stpcpy is unportable - " \
17236 + "use gnulib module stpcpy for portability"), \
17237 + stpcpy (a, b))
17238 +#endif
17239 +
17240 +/* Copy no more than N bytes of SRC to DST, returning a pointer past the
17241 + last non-NUL byte written into DST. */
17242 +#if @GNULIB_STPNCPY@
17243 +# if ! @HAVE_STPNCPY@
17244 +# define stpncpy gnu_stpncpy
17245 +extern char *stpncpy (char *restrict __dst, char const *restrict __src,
17246 + size_t __n);
17247 +# endif
17248 +#elif defined GNULIB_POSIXCHECK
17249 +# undef stpncpy
17250 +# define stpncpy(a,b,n) \
17251 + (GL_LINK_WARNING ("stpncpy is unportable - " \
17252 + "use gnulib module stpncpy for portability"), \
17253 + stpncpy (a, b, n))
17254 +#endif
17255 +
17256 +#if defined GNULIB_POSIXCHECK
17257 +/* strchr() does not work with multibyte strings if the locale encoding is
17258 + GB18030 and the character to be searched is a digit. */
17259 +# undef strchr
17260 +# define strchr(s,c) \
17261 + (GL_LINK_WARNING ("strchr cannot work correctly on character strings " \
17262 + "in some multibyte locales - " \
17263 + "use mbschr if you care about internationalization"), \
17264 + strchr (s, c))
17265 +#endif
17266 +
17267 +/* Find the first occurrence of C in S or the final NUL byte. */
17268 +#if @GNULIB_STRCHRNUL@
17269 +# if ! @HAVE_STRCHRNUL@
17270 +extern char *strchrnul (char const *__s, int __c_in)
17271 + __attribute__ ((__pure__));
17272 +# endif
17273 +#elif defined GNULIB_POSIXCHECK
17274 +# undef strchrnul
17275 +# define strchrnul(a,b) \
17276 + (GL_LINK_WARNING ("strchrnul is unportable - " \
17277 + "use gnulib module strchrnul for portability"), \
17278 + strchrnul (a, b))
17279 +#endif
17280 +
17281 +/* Duplicate S, returning an identical malloc'd string. */
17282 +#if @GNULIB_STRDUP@
17283 +# if @REPLACE_STRDUP@
17284 +# undef strdup
17285 +# define strdup rpl_strdup
17286 +# endif
17287 +# if !(@HAVE_DECL_STRDUP@ || defined strdup) || @REPLACE_STRDUP@
17288 +extern char *strdup (char const *__s);
17289 +# endif
17290 +#elif defined GNULIB_POSIXCHECK
17291 +# undef strdup
17292 +# define strdup(a) \
17293 + (GL_LINK_WARNING ("strdup is unportable - " \
17294 + "use gnulib module strdup for portability"), \
17295 + strdup (a))
17296 +#endif
17297 +
17298 +/* Return a newly allocated copy of at most N bytes of STRING. */
17299 +#if @GNULIB_STRNDUP@
17300 +# if ! @HAVE_STRNDUP@
17301 +# undef strndup
17302 +# define strndup rpl_strndup
17303 +# endif
17304 +# if ! @HAVE_STRNDUP@ || ! @HAVE_DECL_STRNDUP@
17305 +extern char *strndup (char const *__string, size_t __n);
17306 +# endif
17307 +#elif defined GNULIB_POSIXCHECK
17308 +# undef strndup
17309 +# define strndup(a,n) \
17310 + (GL_LINK_WARNING ("strndup is unportable - " \
17311 + "use gnulib module strndup for portability"), \
17312 + strndup (a, n))
17313 +#endif
17314 +
17315 +/* Find the length (number of bytes) of STRING, but scan at most
17316 + MAXLEN bytes. If no '\0' terminator is found in that many bytes,
17317 + return MAXLEN. */
17318 +#if @GNULIB_STRNLEN@
17319 +# if ! @HAVE_DECL_STRNLEN@
17320 +extern size_t strnlen (char const *__string, size_t __maxlen)
17321 + __attribute__ ((__pure__));
17322 +# endif
17323 +#elif defined GNULIB_POSIXCHECK
17324 +# undef strnlen
17325 +# define strnlen(a,n) \
17326 + (GL_LINK_WARNING ("strnlen is unportable - " \
17327 + "use gnulib module strnlen for portability"), \
17328 + strnlen (a, n))
17329 +#endif
17330 +
17331 +#if defined GNULIB_POSIXCHECK
17332 +/* strcspn() assumes the second argument is a list of single-byte characters.
17333 + Even in this simple case, it does not work with multibyte strings if the
17334 + locale encoding is GB18030 and one of the characters to be searched is a
17335 + digit. */
17336 +# undef strcspn
17337 +# define strcspn(s,a) \
17338 + (GL_LINK_WARNING ("strcspn cannot work correctly on character strings " \
17339 + "in multibyte locales - " \
17340 + "use mbscspn if you care about internationalization"), \
17341 + strcspn (s, a))
17342 +#endif
17343 +
17344 +/* Find the first occurrence in S of any character in ACCEPT. */
17345 +#if @GNULIB_STRPBRK@
17346 +# if ! @HAVE_STRPBRK@
17347 +extern char *strpbrk (char const *__s, char const *__accept)
17348 + __attribute__ ((__pure__));
17349 +# endif
17350 +# if defined GNULIB_POSIXCHECK
17351 +/* strpbrk() assumes the second argument is a list of single-byte characters.
17352 + Even in this simple case, it does not work with multibyte strings if the
17353 + locale encoding is GB18030 and one of the characters to be searched is a
17354 + digit. */
17355 +# undef strpbrk
17356 +# define strpbrk(s,a) \
17357 + (GL_LINK_WARNING ("strpbrk cannot work correctly on character strings " \
17358 + "in multibyte locales - " \
17359 + "use mbspbrk if you care about internationalization"), \
17360 + strpbrk (s, a))
17361 +# endif
17362 +#elif defined GNULIB_POSIXCHECK
17363 +# undef strpbrk
17364 +# define strpbrk(s,a) \
17365 + (GL_LINK_WARNING ("strpbrk is unportable - " \
17366 + "use gnulib module strpbrk for portability"), \
17367 + strpbrk (s, a))
17368 +#endif
17369 +
17370 +#if defined GNULIB_POSIXCHECK
17371 +/* strspn() assumes the second argument is a list of single-byte characters.
17372 + Even in this simple case, it cannot work with multibyte strings. */
17373 +# undef strspn
17374 +# define strspn(s,a) \
17375 + (GL_LINK_WARNING ("strspn cannot work correctly on character strings " \
17376 + "in multibyte locales - " \
17377 + "use mbsspn if you care about internationalization"), \
17378 + strspn (s, a))
17379 +#endif
17380 +
17381 +#if defined GNULIB_POSIXCHECK
17382 +/* strrchr() does not work with multibyte strings if the locale encoding is
17383 + GB18030 and the character to be searched is a digit. */
17384 +# undef strrchr
17385 +# define strrchr(s,c) \
17386 + (GL_LINK_WARNING ("strrchr cannot work correctly on character strings " \
17387 + "in some multibyte locales - " \
17388 + "use mbsrchr if you care about internationalization"), \
17389 + strrchr (s, c))
17390 +#endif
17391 +
17392 +/* Search the next delimiter (char listed in DELIM) starting at *STRINGP.
17393 + If one is found, overwrite it with a NUL, and advance *STRINGP
17394 + to point to the next char after it. Otherwise, set *STRINGP to NULL.
17395 + If *STRINGP was already NULL, nothing happens.
17396 + Return the old value of *STRINGP.
17397 +
17398 + This is a variant of strtok() that is multithread-safe and supports
17399 + empty fields.
17400 +
17401 + Caveat: It modifies the original string.
17402 + Caveat: These functions cannot be used on constant strings.
17403 + Caveat: The identity of the delimiting character is lost.
17404 + Caveat: It doesn't work with multibyte strings unless all of the delimiter
17405 + characters are ASCII characters < 0x30.
17406 +
17407 + See also strtok_r(). */
17408 +#if @GNULIB_STRSEP@
17409 +# if ! @HAVE_STRSEP@
17410 +extern char *strsep (char **restrict __stringp, char const *restrict __delim);
17411 +# endif
17412 +# if defined GNULIB_POSIXCHECK
17413 +# undef strsep
17414 +# define strsep(s,d) \
17415 + (GL_LINK_WARNING ("strsep cannot work correctly on character strings " \
17416 + "in multibyte locales - " \
17417 + "use mbssep if you care about internationalization"), \
17418 + strsep (s, d))
17419 +# endif
17420 +#elif defined GNULIB_POSIXCHECK
17421 +# undef strsep
17422 +# define strsep(s,d) \
17423 + (GL_LINK_WARNING ("strsep is unportable - " \
17424 + "use gnulib module strsep for portability"), \
17425 + strsep (s, d))
17426 +#endif
17427 +
17428 +#if @GNULIB_STRSTR@
17429 +# if @REPLACE_STRSTR@
17430 +# define strstr rpl_strstr
17431 +char *strstr (const char *haystack, const char *needle)
17432 + __attribute__ ((__pure__));
17433 +# endif
17434 +#elif defined GNULIB_POSIXCHECK
17435 +/* strstr() does not work with multibyte strings if the locale encoding is
17436 + different from UTF-8:
17437 + POSIX says that it operates on "strings", and "string" in POSIX is defined
17438 + as a sequence of bytes, not of characters. */
17439 +# undef strstr
17440 +# define strstr(a,b) \
17441 + (GL_LINK_WARNING ("strstr is quadratic on many systems, and cannot " \
17442 + "work correctly on character strings in most " \
17443 + "multibyte locales - " \
17444 + "use mbsstr if you care about internationalization, " \
17445 + "or use strstr if you care about speed"), \
17446 + strstr (a, b))
17447 +#endif
17448 +
17449 +/* Find the first occurrence of NEEDLE in HAYSTACK, using case-insensitive
17450 + comparison. */
17451 +#if @GNULIB_STRCASESTR@
17452 +# if @REPLACE_STRCASESTR@
17453 +# define strcasestr rpl_strcasestr
17454 +# endif
17455 +# if ! @HAVE_STRCASESTR@ || @REPLACE_STRCASESTR@
17456 +extern char *strcasestr (const char *haystack, const char *needle)
17457 + __attribute__ ((__pure__));
17458 +# endif
17459 +#elif defined GNULIB_POSIXCHECK
17460 +/* strcasestr() does not work with multibyte strings:
17461 + It is a glibc extension, and glibc implements it only for unibyte
17462 + locales. */
17463 +# undef strcasestr
17464 +# define strcasestr(a,b) \
17465 + (GL_LINK_WARNING ("strcasestr does work correctly on character strings " \
17466 + "in multibyte locales - " \
17467 + "use mbscasestr if you care about " \
17468 + "internationalization, or use c-strcasestr if you want " \
17469 + "a locale independent function"), \
17470 + strcasestr (a, b))
17471 +#endif
17472 +
17473 +/* Parse S into tokens separated by characters in DELIM.
17474 + If S is NULL, the saved pointer in SAVE_PTR is used as
17475 + the next starting point. For example:
17476 + char s[] = "-abc-=-def";
17477 + char *sp;
17478 + x = strtok_r(s, "-", &sp); // x = "abc", sp = "=-def"
17479 + x = strtok_r(NULL, "-=", &sp); // x = "def", sp = NULL
17480 + x = strtok_r(NULL, "=", &sp); // x = NULL
17481 + // s = "abc\0-def\0"
17482 +
17483 + This is a variant of strtok() that is multithread-safe.
17484 +
17485 + For the POSIX documentation for this function, see:
17486 + http://www.opengroup.org/susv3xsh/strtok.html
17487 +
17488 + Caveat: It modifies the original string.
17489 + Caveat: These functions cannot be used on constant strings.
17490 + Caveat: The identity of the delimiting character is lost.
17491 + Caveat: It doesn't work with multibyte strings unless all of the delimiter
17492 + characters are ASCII characters < 0x30.
17493 +
17494 + See also strsep(). */
17495 +#if @GNULIB_STRTOK_R@
17496 +# if ! @HAVE_DECL_STRTOK_R@
17497 +extern char *strtok_r (char *restrict s, char const *restrict delim,
17498 + char **restrict save_ptr);
17499 +# endif
17500 +# if defined GNULIB_POSIXCHECK
17501 +# undef strtok_r
17502 +# define strtok_r(s,d,p) \
17503 + (GL_LINK_WARNING ("strtok_r cannot work correctly on character strings " \
17504 + "in multibyte locales - " \
17505 + "use mbstok_r if you care about internationalization"), \
17506 + strtok_r (s, d, p))
17507 +# endif
17508 +#elif defined GNULIB_POSIXCHECK
17509 +# undef strtok_r
17510 +# define strtok_r(s,d,p) \
17511 + (GL_LINK_WARNING ("strtok_r is unportable - " \
17512 + "use gnulib module strtok_r for portability"), \
17513 + strtok_r (s, d, p))
17514 +#endif
17515 +
17516 +
17517 +/* The following functions are not specified by POSIX. They are gnulib
17518 + extensions. */
17519 +
17520 +#if @GNULIB_MBSLEN@
17521 +/* Return the number of multibyte characters in the character string STRING.
17522 + This considers multibyte characters, unlike strlen, which counts bytes. */
17523 +extern size_t mbslen (const char *string);
17524 +#endif
17525 +
17526 +#if @GNULIB_MBSNLEN@
17527 +/* Return the number of multibyte characters in the character string starting
17528 + at STRING and ending at STRING + LEN. */
17529 +extern size_t mbsnlen (const char *string, size_t len);
17530 +#endif
17531 +
17532 +#if @GNULIB_MBSCHR@
17533 +/* Locate the first single-byte character C in the character string STRING,
17534 + and return a pointer to it. Return NULL if C is not found in STRING.
17535 + Unlike strchr(), this function works correctly in multibyte locales with
17536 + encodings such as GB18030. */
17537 +# define mbschr rpl_mbschr /* avoid collision with HP-UX function */
17538 +extern char * mbschr (const char *string, int c);
17539 +#endif
17540 +
17541 +#if @GNULIB_MBSRCHR@
17542 +/* Locate the last single-byte character C in the character string STRING,
17543 + and return a pointer to it. Return NULL if C is not found in STRING.
17544 + Unlike strrchr(), this function works correctly in multibyte locales with
17545 + encodings such as GB18030. */
17546 +# define mbsrchr rpl_mbsrchr /* avoid collision with HP-UX function */
17547 +extern char * mbsrchr (const char *string, int c);
17548 +#endif
17549 +
17550 +#if @GNULIB_MBSSTR@
17551 +/* Find the first occurrence of the character string NEEDLE in the character
17552 + string HAYSTACK. Return NULL if NEEDLE is not found in HAYSTACK.
17553 + Unlike strstr(), this function works correctly in multibyte locales with
17554 + encodings different from UTF-8. */
17555 +extern char * mbsstr (const char *haystack, const char *needle);
17556 +#endif
17557 +
17558 +#if @GNULIB_MBSCASECMP@
17559 +/* Compare the character strings S1 and S2, ignoring case, returning less than,
17560 + equal to or greater than zero if S1 is lexicographically less than, equal to
17561 + or greater than S2.
17562 + Note: This function may, in multibyte locales, return 0 for strings of
17563 + different lengths!
17564 + Unlike strcasecmp(), this function works correctly in multibyte locales. */
17565 +extern int mbscasecmp (const char *s1, const char *s2);
17566 +#endif
17567 +
17568 +#if @GNULIB_MBSNCASECMP@
17569 +/* Compare the initial segment of the character string S1 consisting of at most
17570 + N characters with the initial segment of the character string S2 consisting
17571 + of at most N characters, ignoring case, returning less than, equal to or
17572 + greater than zero if the initial segment of S1 is lexicographically less
17573 + than, equal to or greater than the initial segment of S2.
17574 + Note: This function may, in multibyte locales, return 0 for initial segments
17575 + of different lengths!
17576 + Unlike strncasecmp(), this function works correctly in multibyte locales.
17577 + But beware that N is not a byte count but a character count! */
17578 +extern int mbsncasecmp (const char *s1, const char *s2, size_t n);
17579 +#endif
17580 +
17581 +#if @GNULIB_MBSPCASECMP@
17582 +/* Compare the initial segment of the character string STRING consisting of
17583 + at most mbslen (PREFIX) characters with the character string PREFIX,
17584 + ignoring case, returning less than, equal to or greater than zero if this
17585 + initial segment is lexicographically less than, equal to or greater than
17586 + PREFIX.
17587 + Note: This function may, in multibyte locales, return 0 if STRING is of
17588 + smaller length than PREFIX!
17589 + Unlike strncasecmp(), this function works correctly in multibyte
17590 + locales. */
17591 +extern char * mbspcasecmp (const char *string, const char *prefix);
17592 +#endif
17593 +
17594 +#if @GNULIB_MBSCASESTR@
17595 +/* Find the first occurrence of the character string NEEDLE in the character
17596 + string HAYSTACK, using case-insensitive comparison.
17597 + Note: This function may, in multibyte locales, return success even if
17598 + strlen (haystack) < strlen (needle) !
17599 + Unlike strcasestr(), this function works correctly in multibyte locales. */
17600 +extern char * mbscasestr (const char *haystack, const char *needle);
17601 +#endif
17602 +
17603 +#if @GNULIB_MBSCSPN@
17604 +/* Find the first occurrence in the character string STRING of any character
17605 + in the character string ACCEPT. Return the number of bytes from the
17606 + beginning of the string to this occurrence, or to the end of the string
17607 + if none exists.
17608 + Unlike strcspn(), this function works correctly in multibyte locales. */
17609 +extern size_t mbscspn (const char *string, const char *accept);
17610 +#endif
17611 +
17612 +#if @GNULIB_MBSPBRK@
17613 +/* Find the first occurrence in the character string STRING of any character
17614 + in the character string ACCEPT. Return the pointer to it, or NULL if none
17615 + exists.
17616 + Unlike strpbrk(), this function works correctly in multibyte locales. */
17617 +# define mbspbrk rpl_mbspbrk /* avoid collision with HP-UX function */
17618 +extern char * mbspbrk (const char *string, const char *accept);
17619 +#endif
17620 +
17621 +#if @GNULIB_MBSSPN@
17622 +/* Find the first occurrence in the character string STRING of any character
17623 + not in the character string REJECT. Return the number of bytes from the
17624 + beginning of the string to this occurrence, or to the end of the string
17625 + if none exists.
17626 + Unlike strspn(), this function works correctly in multibyte locales. */
17627 +extern size_t mbsspn (const char *string, const char *reject);
17628 +#endif
17629 +
17630 +#if @GNULIB_MBSSEP@
17631 +/* Search the next delimiter (multibyte character listed in the character
17632 + string DELIM) starting at the character string *STRINGP.
17633 + If one is found, overwrite it with a NUL, and advance *STRINGP to point
17634 + to the next multibyte character after it. Otherwise, set *STRINGP to NULL.
17635 + If *STRINGP was already NULL, nothing happens.
17636 + Return the old value of *STRINGP.
17637 +
17638 + This is a variant of mbstok_r() that supports empty fields.
17639 +
17640 + Caveat: It modifies the original string.
17641 + Caveat: These functions cannot be used on constant strings.
17642 + Caveat: The identity of the delimiting character is lost.
17643 +
17644 + See also mbstok_r(). */
17645 +extern char * mbssep (char **stringp, const char *delim);
17646 +#endif
17647 +
17648 +#if @GNULIB_MBSTOK_R@
17649 +/* Parse the character string STRING into tokens separated by characters in
17650 + the character string DELIM.
17651 + If STRING is NULL, the saved pointer in SAVE_PTR is used as
17652 + the next starting point. For example:
17653 + char s[] = "-abc-=-def";
17654 + char *sp;
17655 + x = mbstok_r(s, "-", &sp); // x = "abc", sp = "=-def"
17656 + x = mbstok_r(NULL, "-=", &sp); // x = "def", sp = NULL
17657 + x = mbstok_r(NULL, "=", &sp); // x = NULL
17658 + // s = "abc\0-def\0"
17659 +
17660 + Caveat: It modifies the original string.
17661 + Caveat: These functions cannot be used on constant strings.
17662 + Caveat: The identity of the delimiting character is lost.
17663 +
17664 + See also mbssep(). */
17665 +extern char * mbstok_r (char *string, const char *delim, char **save_ptr);
17666 +#endif
17667 +
17668 +/* Map any int, typically from errno, into an error message. */
17669 +#if @GNULIB_STRERROR@
17670 +# if @REPLACE_STRERROR@
17671 +# undef strerror
17672 +# define strerror rpl_strerror
17673 +extern char *strerror (int);
17674 +# endif
17675 +#elif defined GNULIB_POSIXCHECK
17676 +# undef strerror
17677 +# define strerror(e) \
17678 + (GL_LINK_WARNING ("strerror is unportable - " \
17679 + "use gnulib module strerror to guarantee non-NULL result"), \
17680 + strerror (e))
17681 +#endif
17682 +
17683 +#if @GNULIB_STRSIGNAL@
17684 +# if @REPLACE_STRSIGNAL@
17685 +# define strsignal rpl_strsignal
17686 +# endif
17687 +# if ! @HAVE_DECL_STRSIGNAL@ || @REPLACE_STRSIGNAL@
17688 +extern char *strsignal (int __sig);
17689 +# endif
17690 +#elif defined GNULIB_POSIXCHECK
17691 +# undef strsignal
17692 +# define strsignal(a) \
17693 + (GL_LINK_WARNING ("strsignal is unportable - " \
17694 + "use gnulib module strsignal for portability"), \
17695 + strsignal (a))
17696 +#endif
17697 +
17698 +#if @GNULIB_STRVERSCMP@
17699 +# if !@HAVE_STRVERSCMP@
17700 +extern int strverscmp (const char *, const char *);
17701 +# endif
17702 +#elif defined GNULIB_POSIXCHECK
17703 +# undef strverscmp
17704 +# define strverscmp(a, b) \
17705 + (GL_LINK_WARNING ("strverscmp is unportable - " \
17706 + "use gnulib module strverscmp for portability"), \
17707 + strverscmp (a, b))
17708 +#endif
17709 +
17710 +
17711 +#ifdef __cplusplus
17712 +}
17713 +#endif
17714 +
17715 +#endif /* _GL_STRING_H */
17716 +#endif /* _GL_STRING_H */
17717
17718 Added: trunk/baselayout-prefix/gnulib/gllib/strndup.c
17719 ===================================================================
17720 --- trunk/baselayout-prefix/gnulib/gllib/strndup.c (rev 0)
17721 +++ trunk/baselayout-prefix/gnulib/gllib/strndup.c 2011-03-31 16:43:45 UTC (rev 1693)
17722 @@ -0,0 +1,37 @@
17723 +/* A replacement function, for systems that lack strndup.
17724 +
17725 + Copyright (C) 1996, 1997, 1998, 2001, 2002, 2003, 2005, 2006, 2007
17726 + Free Software Foundation, Inc.
17727 +
17728 + This program is free software; you can redistribute it and/or modify it
17729 + under the terms of the GNU General Public License as published by the
17730 + Free Software Foundation; either version 2, or (at your option) any
17731 + later version.
17732 +
17733 + This program is distributed in the hope that it will be useful,
17734 + but WITHOUT ANY WARRANTY; without even the implied warranty of
17735 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17736 + GNU General Public License for more details.
17737 +
17738 + You should have received a copy of the GNU General Public License
17739 + along with this program; if not, write to the Free Software Foundation,
17740 + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
17741 +
17742 +#include <config.h>
17743 +
17744 +#include <string.h>
17745 +
17746 +#include <stdlib.h>
17747 +
17748 +char *
17749 +strndup (char const *s, size_t n)
17750 +{
17751 + size_t len = strnlen (s, n);
17752 + char *new = malloc (len + 1);
17753 +
17754 + if (new == NULL)
17755 + return NULL;
17756 +
17757 + new[len] = '\0';
17758 + return memcpy (new, s, len);
17759 +}
17760
17761 Added: trunk/baselayout-prefix/gnulib/gllib/strnlen.c
17762 ===================================================================
17763 --- trunk/baselayout-prefix/gnulib/gllib/strnlen.c (rev 0)
17764 +++ trunk/baselayout-prefix/gnulib/gllib/strnlen.c 2011-03-31 16:43:45 UTC (rev 1693)
17765 @@ -0,0 +1,31 @@
17766 +/* Find the length of STRING, but scan at most MAXLEN characters.
17767 + Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc.
17768 + Written by Simon Josefsson.
17769 +
17770 + This program is free software; you can redistribute it and/or modify
17771 + it under the terms of the GNU General Public License as published by
17772 + the Free Software Foundation; either version 2, or (at your option)
17773 + any later version.
17774 +
17775 + This program is distributed in the hope that it will be useful,
17776 + but WITHOUT ANY WARRANTY; without even the implied warranty of
17777 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17778 + GNU General Public License for more details.
17779 +
17780 + You should have received a copy of the GNU General Public License
17781 + along with this program; if not, write to the Free Software Foundation,
17782 + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
17783 +
17784 +#include <config.h>
17785 +
17786 +#include <string.h>
17787 +
17788 +/* Find the length of STRING, but scan at most MAXLEN characters.
17789 + If no '\0' terminator is found in that many characters, return MAXLEN. */
17790 +
17791 +size_t
17792 +strnlen (const char *string, size_t maxlen)
17793 +{
17794 + const char *end = memchr (string, '\0', maxlen);
17795 + return end ? (size_t) (end - string) : maxlen;
17796 +}
17797
17798 Added: trunk/baselayout-prefix/gnulib/gllib/strsep.c
17799 ===================================================================
17800 --- trunk/baselayout-prefix/gnulib/gllib/strsep.c (rev 0)
17801 +++ trunk/baselayout-prefix/gnulib/gllib/strsep.c 2011-03-31 16:43:45 UTC (rev 1693)
17802 @@ -0,0 +1,58 @@
17803 +/* Copyright (C) 2004, 2007 Free Software Foundation, Inc.
17804 +
17805 + Written by Yoann Vandoorselaere <yoann@×××××××××××.org>.
17806 +
17807 + This program is free software; you can redistribute it and/or modify
17808 + it under the terms of the GNU General Public License as published by
17809 + the Free Software Foundation; either version 2, or (at your option)
17810 + any later version.
17811 +
17812 + This program is distributed in the hope that it will be useful,
17813 + but WITHOUT ANY WARRANTY; without even the implied warranty of
17814 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17815 + GNU General Public License for more details.
17816 +
17817 + You should have received a copy of the GNU General Public License
17818 + along with this program; if not, write to the Free Software Foundation,
17819 + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
17820 +
17821 +#ifdef HAVE_CONFIG_H
17822 +# include <config.h>
17823 +#endif
17824 +
17825 +/* Specification. */
17826 +#include <string.h>
17827 +
17828 +char *
17829 +strsep (char **stringp, const char *delim)
17830 +{
17831 + char *start = *stringp;
17832 + char *ptr;
17833 +
17834 + if (start == NULL)
17835 + return NULL;
17836 +
17837 + /* Optimize the case of no delimiters. */
17838 + if (delim[0] == '\0')
17839 + {
17840 + *stringp = NULL;
17841 + return start;
17842 + }
17843 +
17844 + /* Optimize the case of one delimiter. */
17845 + if (delim[1] == '\0')
17846 + ptr = strchr (start, delim[0]);
17847 + else
17848 + /* The general case. */
17849 + ptr = strpbrk (start, delim);
17850 + if (ptr == NULL)
17851 + {
17852 + *stringp = NULL;
17853 + return start;
17854 + }
17855 +
17856 + *ptr = '\0';
17857 + *stringp = ptr + 1;
17858 +
17859 + return start;
17860 +}
17861
17862 Added: trunk/baselayout-prefix/gnulib/gllib/unistd.in.h
17863 ===================================================================
17864 --- trunk/baselayout-prefix/gnulib/gllib/unistd.in.h (rev 0)
17865 +++ trunk/baselayout-prefix/gnulib/gllib/unistd.in.h 2011-03-31 16:43:45 UTC (rev 1693)
17866 @@ -0,0 +1,582 @@
17867 +/* Substitute for and wrapper around <unistd.h>.
17868 + Copyright (C) 2003-2009 Free Software Foundation, Inc.
17869 +
17870 + This program is free software; you can redistribute it and/or modify
17871 + it under the terms of the GNU General Public License as published by
17872 + the Free Software Foundation; either version 2, or (at your option)
17873 + any later version.
17874 +
17875 + This program is distributed in the hope that it will be useful,
17876 + but WITHOUT ANY WARRANTY; without even the implied warranty of
17877 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17878 + GNU General Public License for more details.
17879 +
17880 + You should have received a copy of the GNU General Public License
17881 + along with this program; if not, write to the Free Software Foundation,
17882 + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
17883 +
17884 +#ifndef _GL_UNISTD_H
17885 +
17886 +#if __GNUC__ >= 3
17887 +@PRAGMA_SYSTEM_HEADER@
17888 +#endif
17889 +
17890 +/* The include_next requires a split double-inclusion guard. */
17891 +#if @HAVE_UNISTD_H@
17892 +# @INCLUDE_NEXT@ @NEXT_UNISTD_H@
17893 +#endif
17894 +
17895 +#ifndef _GL_UNISTD_H
17896 +#define _GL_UNISTD_H
17897 +
17898 +/* mingw doesn't define the SEEK_* or *_FILENO macros in <unistd.h>. */
17899 +#if !(defined SEEK_CUR && defined SEEK_END && defined SEEK_SET)
17900 +# include <stdio.h>
17901 +#endif
17902 +
17903 +/* mingw fails to declare _exit in <unistd.h>. */
17904 +/* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
17905 +#include <stdlib.h>
17906 +
17907 +#if @GNULIB_WRITE@ && @REPLACE_WRITE@ && @GNULIB_UNISTD_H_SIGPIPE@
17908 +/* Get ssize_t. */
17909 +# include <sys/types.h>
17910 +#endif
17911 +
17912 +#if @GNULIB_GETHOSTNAME@
17913 +/* Get all possible declarations of gethostname(). */
17914 +# if @UNISTD_H_HAVE_WINSOCK2_H@
17915 +# include <winsock2.h>
17916 +# if !defined _GL_SYS_SOCKET_H
17917 +# undef socket
17918 +# define socket socket_used_without_including_sys_socket_h
17919 +# undef connect
17920 +# define connect connect_used_without_including_sys_socket_h
17921 +# undef accept
17922 +# define accept accept_used_without_including_sys_socket_h
17923 +# undef bind
17924 +# define bind bind_used_without_including_sys_socket_h
17925 +# undef getpeername
17926 +# define getpeername getpeername_used_without_including_sys_socket_h
17927 +# undef getsockname
17928 +# define getsockname getsockname_used_without_including_sys_socket_h
17929 +# undef getsockopt
17930 +# define getsockopt getsockopt_used_without_including_sys_socket_h
17931 +# undef listen
17932 +# define listen listen_used_without_including_sys_socket_h
17933 +# undef recv
17934 +# define recv recv_used_without_including_sys_socket_h
17935 +# undef send
17936 +# define send send_used_without_including_sys_socket_h
17937 +# undef recvfrom
17938 +# define recvfrom recvfrom_used_without_including_sys_socket_h
17939 +# undef sendto
17940 +# define sendto sendto_used_without_including_sys_socket_h
17941 +# undef setsockopt
17942 +# define setsockopt setsockopt_used_without_including_sys_socket_h
17943 +# undef shutdown
17944 +# define shutdown shutdown_used_without_including_sys_socket_h
17945 +# endif
17946 +# if !defined _GL_SYS_SELECT_H
17947 +# undef select
17948 +# define select select_used_without_including_sys_select_h
17949 +# endif
17950 +# endif
17951 +#endif
17952 +
17953 +/* The definition of GL_LINK_WARNING is copied here. */
17954 +
17955 +
17956 +/* OS/2 EMX lacks these macros. */
17957 +#ifndef STDIN_FILENO
17958 +# define STDIN_FILENO 0
17959 +#endif
17960 +#ifndef STDOUT_FILENO
17961 +# define STDOUT_FILENO 1
17962 +#endif
17963 +#ifndef STDERR_FILENO
17964 +# define STDERR_FILENO 2
17965 +#endif
17966 +
17967 +/* Declare overridden functions. */
17968 +
17969 +#ifdef __cplusplus
17970 +extern "C" {
17971 +#endif
17972 +
17973 +
17974 +#if @GNULIB_CHOWN@
17975 +# if @REPLACE_CHOWN@
17976 +# ifndef REPLACE_CHOWN
17977 +# define REPLACE_CHOWN 1
17978 +# endif
17979 +# if REPLACE_CHOWN
17980 +/* Change the owner of FILE to UID (if UID is not -1) and the group of FILE
17981 + to GID (if GID is not -1). Follow symbolic links.
17982 + Return 0 if successful, otherwise -1 and errno set.
17983 + See the POSIX:2001 specification
17984 + <http://www.opengroup.org/susv3xsh/chown.html>. */
17985 +# define chown rpl_chown
17986 +extern int chown (const char *file, uid_t uid, gid_t gid);
17987 +# endif
17988 +# endif
17989 +#elif defined GNULIB_POSIXCHECK
17990 +# undef chown
17991 +# define chown(f,u,g) \
17992 + (GL_LINK_WARNING ("chown fails to follow symlinks on some systems and " \
17993 + "doesn't treat a uid or gid of -1 on some systems - " \
17994 + "use gnulib module chown for portability"), \
17995 + chown (f, u, g))
17996 +#endif
17997 +
17998 +
17999 +#if @GNULIB_CLOSE@
18000 +# if @UNISTD_H_HAVE_WINSOCK2_H@
18001 +/* Need a gnulib internal function. */
18002 +# define HAVE__GL_CLOSE_FD_MAYBE_SOCKET 1
18003 +# endif
18004 +# if @REPLACE_CLOSE@
18005 +/* Automatically included by modules that need a replacement for close. */
18006 +# undef close
18007 +# define close rpl_close
18008 +extern int close (int);
18009 +# endif
18010 +#elif @UNISTD_H_HAVE_WINSOCK2_H@
18011 +# undef close
18012 +# define close close_used_without_requesting_gnulib_module_close
18013 +#elif defined GNULIB_POSIXCHECK
18014 +# undef close
18015 +# define close(f) \
18016 + (GL_LINK_WARNING ("close does not portably work on sockets - " \
18017 + "use gnulib module close for portability"), \
18018 + close (f))
18019 +#endif
18020 +
18021 +
18022 +#if @GNULIB_DUP2@
18023 +# if !@HAVE_DUP2@
18024 +/* Copy the file descriptor OLDFD into file descriptor NEWFD. Do nothing if
18025 + NEWFD = OLDFD, otherwise close NEWFD first if it is open.
18026 + Return 0 if successful, otherwise -1 and errno set.
18027 + See the POSIX:2001 specification
18028 + <http://www.opengroup.org/susv3xsh/dup2.html>. */
18029 +extern int dup2 (int oldfd, int newfd);
18030 +# endif
18031 +#elif defined GNULIB_POSIXCHECK
18032 +# undef dup2
18033 +# define dup2(o,n) \
18034 + (GL_LINK_WARNING ("dup2 is unportable - " \
18035 + "use gnulib module dup2 for portability"), \
18036 + dup2 (o, n))
18037 +#endif
18038 +
18039 +
18040 +#if @GNULIB_ENVIRON@
18041 +# if !@HAVE_DECL_ENVIRON@
18042 +/* Set of environment variables and values. An array of strings of the form
18043 + "VARIABLE=VALUE", terminated with a NULL. */
18044 +# if defined __APPLE__ && defined __MACH__
18045 +# include <crt_externs.h>
18046 +# define environ (*_NSGetEnviron ())
18047 +# else
18048 +extern char **environ;
18049 +# endif
18050 +# endif
18051 +#elif defined GNULIB_POSIXCHECK
18052 +# undef environ
18053 +# define environ \
18054 + (GL_LINK_WARNING ("environ is unportable - " \
18055 + "use gnulib module environ for portability"), \
18056 + environ)
18057 +#endif
18058 +
18059 +
18060 +#if @GNULIB_EUIDACCESS@
18061 +# if !@HAVE_EUIDACCESS@
18062 +/* Like access(), except that is uses the effective user id and group id of
18063 + the current process. */
18064 +extern int euidaccess (const char *filename, int mode);
18065 +# endif
18066 +#elif defined GNULIB_POSIXCHECK
18067 +# undef euidaccess
18068 +# define euidaccess(f,m) \
18069 + (GL_LINK_WARNING ("euidaccess is unportable - " \
18070 + "use gnulib module euidaccess for portability"), \
18071 + euidaccess (f, m))
18072 +#endif
18073 +
18074 +
18075 +#if @GNULIB_FCHDIR@
18076 +# if @REPLACE_FCHDIR@
18077 +
18078 +/* Change the process' current working directory to the directory on which
18079 + the given file descriptor is open.
18080 + Return 0 if successful, otherwise -1 and errno set.
18081 + See the POSIX:2001 specification
18082 + <http://www.opengroup.org/susv3xsh/fchdir.html>. */
18083 +extern int fchdir (int /*fd*/);
18084 +
18085 +# define dup rpl_dup
18086 +extern int dup (int);
18087 +# define dup2 rpl_dup2
18088 +extern int dup2 (int, int);
18089 +
18090 +# endif
18091 +#elif defined GNULIB_POSIXCHECK
18092 +# undef fchdir
18093 +# define fchdir(f) \
18094 + (GL_LINK_WARNING ("fchdir is unportable - " \
18095 + "use gnulib module fchdir for portability"), \
18096 + fchdir (f))
18097 +#endif
18098 +
18099 +
18100 +#if @GNULIB_FSYNC@
18101 +/* Synchronize changes to a file.
18102 + Return 0 if successful, otherwise -1 and errno set.
18103 + See POSIX:2001 specification
18104 + <http://www.opengroup.org/susv3xsh/fsync.html>. */
18105 +# if !@HAVE_FSYNC@
18106 +extern int fsync (int fd);
18107 +# endif
18108 +#elif defined GNULIB_POSIXCHECK
18109 +# undef fsync
18110 +# define fsync(fd) \
18111 + (GL_LINK_WARNING ("fsync is unportable - " \
18112 + "use gnulib module fsync for portability"), \
18113 + fsync (fd))
18114 +#endif
18115 +
18116 +
18117 +#if @GNULIB_FTRUNCATE@
18118 +# if !@HAVE_FTRUNCATE@
18119 +/* Change the size of the file to which FD is opened to become equal to LENGTH.
18120 + Return 0 if successful, otherwise -1 and errno set.
18121 + See the POSIX:2001 specification
18122 + <http://www.opengroup.org/susv3xsh/ftruncate.html>. */
18123 +extern int ftruncate (int fd, off_t length);
18124 +# endif
18125 +#elif defined GNULIB_POSIXCHECK
18126 +# undef ftruncate
18127 +# define ftruncate(f,l) \
18128 + (GL_LINK_WARNING ("ftruncate is unportable - " \
18129 + "use gnulib module ftruncate for portability"), \
18130 + ftruncate (f, l))
18131 +#endif
18132 +
18133 +
18134 +#if @GNULIB_GETCWD@
18135 +/* Include the headers that might declare getcwd so that they will not
18136 + cause confusion if included after this file. */
18137 +# include <stdlib.h>
18138 +# if @REPLACE_GETCWD@
18139 +/* Get the name of the current working directory, and put it in SIZE bytes
18140 + of BUF.
18141 + Return BUF if successful, or NULL if the directory couldn't be determined
18142 + or SIZE was too small.
18143 + See the POSIX:2001 specification
18144 + <http://www.opengroup.org/susv3xsh/getcwd.html>.
18145 + Additionally, the gnulib module 'getcwd' guarantees the following GNU
18146 + extension: If BUF is NULL, an array is allocated with 'malloc'; the array
18147 + is SIZE bytes long, unless SIZE == 0, in which case it is as big as
18148 + necessary. */
18149 +# define getcwd rpl_getcwd
18150 +extern char * getcwd (char *buf, size_t size);
18151 +# endif
18152 +#elif defined GNULIB_POSIXCHECK
18153 +# undef getcwd
18154 +# define getcwd(b,s) \
18155 + (GL_LINK_WARNING ("getcwd is unportable - " \
18156 + "use gnulib module getcwd for portability"), \
18157 + getcwd (b, s))
18158 +#endif
18159 +
18160 +
18161 +#if @GNULIB_GETDOMAINNAME@
18162 +/* Return the NIS domain name of the machine.
18163 + WARNING! The NIS domain name is unrelated to the fully qualified host name
18164 + of the machine. It is also unrelated to email addresses.
18165 + WARNING! The NIS domain name is usually the empty string or "(none)" when
18166 + not using NIS.
18167 +
18168 + Put up to LEN bytes of the NIS domain name into NAME.
18169 + Null terminate it if the name is shorter than LEN.
18170 + If the NIS domain name is longer than LEN, set errno = EINVAL and return -1.
18171 + Return 0 if successful, otherwise set errno and return -1. */
18172 +# if !@HAVE_GETDOMAINNAME@
18173 +extern int getdomainname(char *name, size_t len);
18174 +# endif
18175 +#elif defined GNULIB_POSIXCHECK
18176 +# undef getdomainname
18177 +# define getdomainname(n,l) \
18178 + (GL_LINK_WARNING ("getdomainname is unportable - " \
18179 + "use gnulib module getdomainname for portability"), \
18180 + getdomainname (n, l))
18181 +#endif
18182 +
18183 +
18184 +#if @GNULIB_GETDTABLESIZE@
18185 +# if !@HAVE_GETDTABLESIZE@
18186 +/* Return the maximum number of file descriptors in the current process. */
18187 +extern int getdtablesize (void);
18188 +# endif
18189 +#elif defined GNULIB_POSIXCHECK
18190 +# undef getdtablesize
18191 +# define getdtablesize() \
18192 + (GL_LINK_WARNING ("getdtablesize is unportable - " \
18193 + "use gnulib module getdtablesize for portability"), \
18194 + getdtablesize ())
18195 +#endif
18196 +
18197 +
18198 +#if @GNULIB_GETHOSTNAME@
18199 +/* Return the standard host name of the machine.
18200 + WARNING! The host name may or may not be fully qualified.
18201 +
18202 + Put up to LEN bytes of the host name into NAME.
18203 + Null terminate it if the name is shorter than LEN.
18204 + If the host name is longer than LEN, set errno = EINVAL and return -1.
18205 + Return 0 if successful, otherwise set errno and return -1. */
18206 +# if @UNISTD_H_HAVE_WINSOCK2_H@
18207 +# undef gethostname
18208 +# define gethostname rpl_gethostname
18209 +# endif
18210 +# if @UNISTD_H_HAVE_WINSOCK2_H@ || !@HAVE_GETHOSTNAME@
18211 +extern int gethostname(char *name, size_t len);
18212 +# endif
18213 +#elif @UNISTD_H_HAVE_WINSOCK2_H@
18214 +# undef gethostname
18215 +# define gethostname gethostname_used_without_requesting_gnulib_module_gethostname
18216 +#elif defined GNULIB_POSIXCHECK
18217 +# undef gethostname
18218 +# define gethostname(n,l) \
18219 + (GL_LINK_WARNING ("gethostname is unportable - " \
18220 + "use gnulib module gethostname for portability"), \
18221 + gethostname (n, l))
18222 +#endif
18223 +
18224 +
18225 +#if @GNULIB_GETLOGIN_R@
18226 +/* Copies the user's login name to NAME.
18227 + The array pointed to by NAME has room for SIZE bytes.
18228 +
18229 + Returns 0 if successful. Upon error, an error number is returned, or -1 in
18230 + the case that the login name cannot be found but no specific error is
18231 + provided (this case is hopefully rare but is left open by the POSIX spec).
18232 +
18233 + See <http://www.opengroup.org/susv3xsh/getlogin.html>.
18234 + */
18235 +# if !@HAVE_DECL_GETLOGIN_R@
18236 +# include <stddef.h>
18237 +extern int getlogin_r (char *name, size_t size);
18238 +# endif
18239 +#elif defined GNULIB_POSIXCHECK
18240 +# undef getlogin_r
18241 +# define getlogin_r(n,s) \
18242 + (GL_LINK_WARNING ("getlogin_r is unportable - " \
18243 + "use gnulib module getlogin_r for portability"), \
18244 + getlogin_r (n, s))
18245 +#endif
18246 +
18247 +
18248 +#if @GNULIB_GETPAGESIZE@
18249 +# if @REPLACE_GETPAGESIZE@
18250 +# define getpagesize rpl_getpagesize
18251 +extern int getpagesize (void);
18252 +# elif !@HAVE_GETPAGESIZE@
18253 +/* This is for POSIX systems. */
18254 +# if !defined getpagesize && defined _SC_PAGESIZE
18255 +# if ! (defined __VMS && __VMS_VER < 70000000)
18256 +# define getpagesize() sysconf (_SC_PAGESIZE)
18257 +# endif
18258 +# endif
18259 +/* This is for older VMS. */
18260 +# if !defined getpagesize && defined __VMS
18261 +# ifdef __ALPHA
18262 +# define getpagesize() 8192
18263 +# else
18264 +# define getpagesize() 512
18265 +# endif
18266 +# endif
18267 +/* This is for BeOS. */
18268 +# if !defined getpagesize && @HAVE_OS_H@
18269 +# include <OS.h>
18270 +# if defined B_PAGE_SIZE
18271 +# define getpagesize() B_PAGE_SIZE
18272 +# endif
18273 +# endif
18274 +/* This is for AmigaOS4.0. */
18275 +# if !defined getpagesize && defined __amigaos4__
18276 +# define getpagesize() 2048
18277 +# endif
18278 +/* This is for older Unix systems. */
18279 +# if !defined getpagesize && @HAVE_SYS_PARAM_H@
18280 +# include <sys/param.h>
18281 +# ifdef EXEC_PAGESIZE
18282 +# define getpagesize() EXEC_PAGESIZE
18283 +# else
18284 +# ifdef NBPG
18285 +# ifndef CLSIZE
18286 +# define CLSIZE 1
18287 +# endif
18288 +# define getpagesize() (NBPG * CLSIZE)
18289 +# else
18290 +# ifdef NBPC
18291 +# define getpagesize() NBPC
18292 +# endif
18293 +# endif
18294 +# endif
18295 +# endif
18296 +# endif
18297 +#elif defined GNULIB_POSIXCHECK
18298 +# undef getpagesize
18299 +# define getpagesize() \
18300 + (GL_LINK_WARNING ("getpagesize is unportable - " \
18301 + "use gnulib module getpagesize for portability"), \
18302 + getpagesize ())
18303 +#endif
18304 +
18305 +
18306 +#if @GNULIB_GETUSERSHELL@
18307 +# if !@HAVE_GETUSERSHELL@
18308 +/* Return the next valid login shell on the system, or NULL when the end of
18309 + the list has been reached. */
18310 +extern char *getusershell (void);
18311 +/* Rewind to pointer that is advanced at each getusershell() call. */
18312 +extern void setusershell (void);
18313 +/* Free the pointer that is advanced at each getusershell() call and
18314 + associated resources. */
18315 +extern void endusershell (void);
18316 +# endif
18317 +#elif defined GNULIB_POSIXCHECK
18318 +# undef getusershell
18319 +# define getusershell() \
18320 + (GL_LINK_WARNING ("getusershell is unportable - " \
18321 + "use gnulib module getusershell for portability"), \
18322 + getusershell ())
18323 +# undef setusershell
18324 +# define setusershell() \
18325 + (GL_LINK_WARNING ("setusershell is unportable - " \
18326 + "use gnulib module getusershell for portability"), \
18327 + setusershell ())
18328 +# undef endusershell
18329 +# define endusershell() \
18330 + (GL_LINK_WARNING ("endusershell is unportable - " \
18331 + "use gnulib module getusershell for portability"), \
18332 + endusershell ())
18333 +#endif
18334 +
18335 +
18336 +#if @GNULIB_LCHOWN@
18337 +# if @REPLACE_LCHOWN@
18338 +/* Change the owner of FILE to UID (if UID is not -1) and the group of FILE
18339 + to GID (if GID is not -1). Do not follow symbolic links.
18340 + Return 0 if successful, otherwise -1 and errno set.
18341 + See the POSIX:2001 specification
18342 + <http://www.opengroup.org/susv3xsh/lchown.html>. */
18343 +# define lchown rpl_lchown
18344 +extern int lchown (char const *file, uid_t owner, gid_t group);
18345 +# endif
18346 +#elif defined GNULIB_POSIXCHECK
18347 +# undef lchown
18348 +# define lchown(f,u,g) \
18349 + (GL_LINK_WARNING ("lchown is unportable to pre-POSIX.1-2001 " \
18350 + "systems - use gnulib module lchown for portability"), \
18351 + lchown (f, u, g))
18352 +#endif
18353 +
18354 +
18355 +#if @GNULIB_LINK@
18356 +/* Create a new hard link for an existing file.
18357 + Return 0 if successful, otherwise -1 and errno set.
18358 + See POSIX:2001 specification
18359 + <http://www.opengroup.org/susv3xsh/link.html>. */
18360 +# if !@HAVE_LINK@
18361 +extern int link (const char *path1, const char *path2);
18362 +# endif
18363 +#elif defined GNULIB_POSIXCHECK
18364 +# undef link
18365 +# define link(path1,path2) \
18366 + (GL_LINK_WARNING ("link is unportable - " \
18367 + "use gnulib module link for portability"), \
18368 + link (path1, path2))
18369 +#endif
18370 +
18371 +
18372 +#if @GNULIB_LSEEK@
18373 +# if @REPLACE_LSEEK@
18374 +/* Set the offset of FD relative to SEEK_SET, SEEK_CUR, or SEEK_END.
18375 + Return the new offset if successful, otherwise -1 and errno set.
18376 + See the POSIX:2001 specification
18377 + <http://www.opengroup.org/susv3xsh/lseek.html>. */
18378 +# define lseek rpl_lseek
18379 + extern off_t lseek (int fd, off_t offset, int whence);
18380 +# endif
18381 +#elif defined GNULIB_POSIXCHECK
18382 +# undef lseek
18383 +# define lseek(f,o,w) \
18384 + (GL_LINK_WARNING ("lseek does not fail with ESPIPE on pipes on some " \
18385 + "systems - use gnulib module lseek for portability"), \
18386 + lseek (f, o, w))
18387 +#endif
18388 +
18389 +
18390 +#if @GNULIB_READLINK@
18391 +/* Read the contents of the symbolic link FILE and place the first BUFSIZE
18392 + bytes of it into BUF. Return the number of bytes placed into BUF if
18393 + successful, otherwise -1 and errno set.
18394 + See the POSIX:2001 specification
18395 + <http://www.opengroup.org/susv3xsh/readlink.html>. */
18396 +# if !@HAVE_READLINK@
18397 +# include <stddef.h>
18398 +extern int readlink (const char *file, char *buf, size_t bufsize);
18399 +# endif
18400 +#elif defined GNULIB_POSIXCHECK
18401 +# undef readlink
18402 +# define readlink(f,b,s) \
18403 + (GL_LINK_WARNING ("readlink is unportable - " \
18404 + "use gnulib module readlink for portability"), \
18405 + readlink (f, b, s))
18406 +#endif
18407 +
18408 +
18409 +#if @GNULIB_SLEEP@
18410 +/* Pause the execution of the current thread for N seconds.
18411 + Returns the number of seconds left to sleep.
18412 + See the POSIX:2001 specification
18413 + <http://www.opengroup.org/susv3xsh/sleep.html>. */
18414 +# if !@HAVE_SLEEP@
18415 +extern unsigned int sleep (unsigned int n);
18416 +# endif
18417 +#elif defined GNULIB_POSIXCHECK
18418 +# undef sleep
18419 +# define sleep(n) \
18420 + (GL_LINK_WARNING ("sleep is unportable - " \
18421 + "use gnulib module sleep for portability"), \
18422 + sleep (n))
18423 +#endif
18424 +
18425 +
18426 +#if @GNULIB_WRITE@ && @REPLACE_WRITE@ && @GNULIB_UNISTD_H_SIGPIPE@
18427 +/* Write up to COUNT bytes starting at BUF to file descriptor FD.
18428 + See the POSIX:2001 specification
18429 + <http://www.opengroup.org/susv3xsh/write.html>. */
18430 +# undef write
18431 +# define write rpl_write
18432 +extern ssize_t write (int fd, const void *buf, size_t count);
18433 +#endif
18434 +
18435 +
18436 +#ifdef FCHDIR_REPLACEMENT
18437 +/* gnulib internal function. */
18438 +extern void _gl_unregister_fd (int fd);
18439 +#endif
18440 +
18441 +
18442 +#ifdef __cplusplus
18443 +}
18444 +#endif
18445 +
18446 +
18447 +#endif /* _GL_UNISTD_H */
18448 +#endif /* _GL_UNISTD_H */
18449
18450 Added: trunk/baselayout-prefix/gnulib/glm4/00gnulib.m4
18451 ===================================================================
18452 --- trunk/baselayout-prefix/gnulib/glm4/00gnulib.m4 (rev 0)
18453 +++ trunk/baselayout-prefix/gnulib/glm4/00gnulib.m4 2011-03-31 16:43:45 UTC (rev 1693)
18454 @@ -0,0 +1,30 @@
18455 +# 00gnulib.m4 serial 2
18456 +dnl Copyright (C) 2009 Free Software Foundation, Inc.
18457 +dnl This file is free software; the Free Software Foundation
18458 +dnl gives unlimited permission to copy and/or distribute it,
18459 +dnl with or without modifications, as long as this notice is preserved.
18460 +
18461 +dnl This file must be named something that sorts before all other
18462 +dnl gnulib-provided .m4 files. It is needed until such time as we can
18463 +dnl assume Autoconf 2.64, with its improved AC_DEFUN_ONCE semantics.
18464 +
18465 +# AC_DEFUN_ONCE([NAME], VALUE)
18466 +# ----------------------------
18467 +# Define NAME to expand to VALUE on the first use (whether by direct
18468 +# expansion, or by AC_REQUIRE), and to nothing on all subsequent uses.
18469 +# Avoid bugs in AC_REQUIRE in Autoconf 2.63 and earlier. This
18470 +# definition is slower than the version in Autoconf 2.64, because it
18471 +# can only use interfaces that existed since 2.59; but it achieves the
18472 +# same effect. Quoting is necessary to avoid confusing Automake.
18473 +m4_version_prereq([2.63.263], [],
18474 +[m4_define([AC][_DEFUN_ONCE],
18475 + [AC][_DEFUN([$1],
18476 + [AC_REQUIRE([_gl_DEFUN_ONCE([$1])],
18477 + [m4_indir([_gl_DEFUN_ONCE([$1])])])])]dnl
18478 +[AC][_DEFUN([_gl_DEFUN_ONCE([$1])], [$2])])])
18479 +
18480 +# gl_00GNULIB
18481 +# -----------
18482 +# Witness macro that this file has been included. Needed to force
18483 +# Automake to include this file prior to all other gnulib .m4 files.
18484 +AC_DEFUN([gl_00GNULIB])
18485
18486 Added: trunk/baselayout-prefix/gnulib/glm4/Makefile.am
18487 ===================================================================
18488 --- trunk/baselayout-prefix/gnulib/glm4/Makefile.am (rev 0)
18489 +++ trunk/baselayout-prefix/gnulib/glm4/Makefile.am 2011-03-31 16:43:45 UTC (rev 1693)
18490 @@ -0,0 +1,14 @@
18491 +## Process this file with automake to produce Makefile.in.
18492 +
18493 +EXTRA_DIST =
18494 +EXTRA_DIST += 00gnulib.m4
18495 +EXTRA_DIST += extensions.m4
18496 +EXTRA_DIST += getopt.m4
18497 +EXTRA_DIST += gnulib-common.m4
18498 +EXTRA_DIST += include_next.m4
18499 +EXTRA_DIST += onceonly.m4
18500 +EXTRA_DIST += string_h.m4
18501 +EXTRA_DIST += strndup.m4
18502 +EXTRA_DIST += strnlen.m4
18503 +EXTRA_DIST += strsep.m4
18504 +EXTRA_DIST += unistd_h.m4
18505
18506 Added: trunk/baselayout-prefix/gnulib/glm4/Makefile.in
18507 ===================================================================
18508 --- trunk/baselayout-prefix/gnulib/glm4/Makefile.in (rev 0)
18509 +++ trunk/baselayout-prefix/gnulib/glm4/Makefile.in 2011-03-31 16:43:45 UTC (rev 1693)
18510 @@ -0,0 +1,450 @@
18511 +# Makefile.in generated by automake 1.11.1 from Makefile.am.
18512 +# @configure_input@
18513 +
18514 +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
18515 +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
18516 +# Inc.
18517 +# This Makefile.in is free software; the Free Software Foundation
18518 +# gives unlimited permission to copy and/or distribute it,
18519 +# with or without modifications, as long as this notice is preserved.
18520 +
18521 +# This program is distributed in the hope that it will be useful,
18522 +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
18523 +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
18524 +# PARTICULAR PURPOSE.
18525 +
18526 +@SET_MAKE@
18527 +VPATH = @srcdir@
18528 +pkgdatadir = $(datadir)/@PACKAGE@
18529 +pkgincludedir = $(includedir)/@PACKAGE@
18530 +pkglibdir = $(libdir)/@PACKAGE@
18531 +pkglibexecdir = $(libexecdir)/@PACKAGE@
18532 +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
18533 +install_sh_DATA = $(install_sh) -c -m 644
18534 +install_sh_PROGRAM = $(install_sh) -c
18535 +install_sh_SCRIPT = $(install_sh) -c
18536 +INSTALL_HEADER = $(INSTALL_DATA)
18537 +transform = $(program_transform_name)
18538 +NORMAL_INSTALL = :
18539 +PRE_INSTALL = :
18540 +POST_INSTALL = :
18541 +NORMAL_UNINSTALL = :
18542 +PRE_UNINSTALL = :
18543 +POST_UNINSTALL = :
18544 +build_triplet = @build@
18545 +host_triplet = @host@
18546 +subdir = glm4
18547 +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
18548 +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
18549 +am__aclocal_m4_deps = $(top_srcdir)/glm4/00gnulib.m4 \
18550 + $(top_srcdir)/glm4/extensions.m4 $(top_srcdir)/glm4/getopt.m4 \
18551 + $(top_srcdir)/glm4/gnulib-common.m4 \
18552 + $(top_srcdir)/glm4/include_next.m4 \
18553 + $(top_srcdir)/glm4/onceonly.m4 $(top_srcdir)/glm4/string_h.m4 \
18554 + $(top_srcdir)/glm4/strndup.m4 $(top_srcdir)/glm4/strnlen.m4 \
18555 + $(top_srcdir)/glm4/strsep.m4 $(top_srcdir)/glm4/unistd_h.m4 \
18556 + $(top_srcdir)/configure.ac
18557 +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
18558 + $(ACLOCAL_M4)
18559 +mkinstalldirs = $(install_sh) -d
18560 +CONFIG_HEADER = $(top_builddir)/config.h
18561 +CONFIG_CLEAN_FILES =
18562 +CONFIG_CLEAN_VPATH_FILES =
18563 +SOURCES =
18564 +DIST_SOURCES =
18565 +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
18566 +ACLOCAL = @ACLOCAL@
18567 +AMTAR = @AMTAR@
18568 +AUTOCONF = @AUTOCONF@
18569 +AUTOHEADER = @AUTOHEADER@
18570 +AUTOMAKE = @AUTOMAKE@
18571 +AWK = @AWK@
18572 +CC = @CC@
18573 +CCDEPMODE = @CCDEPMODE@
18574 +CFLAGS = @CFLAGS@
18575 +CPP = @CPP@
18576 +CPPFLAGS = @CPPFLAGS@
18577 +CYGPATH_W = @CYGPATH_W@
18578 +DEFS = @DEFS@
18579 +DEPDIR = @DEPDIR@
18580 +ECHO_C = @ECHO_C@
18581 +ECHO_N = @ECHO_N@
18582 +ECHO_T = @ECHO_T@
18583 +EGREP = @EGREP@
18584 +EXEEXT = @EXEEXT@
18585 +GETOPT_H = @GETOPT_H@
18586 +GNULIB_CHOWN = @GNULIB_CHOWN@
18587 +GNULIB_CLOSE = @GNULIB_CLOSE@
18588 +GNULIB_DUP2 = @GNULIB_DUP2@
18589 +GNULIB_ENVIRON = @GNULIB_ENVIRON@
18590 +GNULIB_EUIDACCESS = @GNULIB_EUIDACCESS@
18591 +GNULIB_FCHDIR = @GNULIB_FCHDIR@
18592 +GNULIB_FSYNC = @GNULIB_FSYNC@
18593 +GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@
18594 +GNULIB_GETCWD = @GNULIB_GETCWD@
18595 +GNULIB_GETDOMAINNAME = @GNULIB_GETDOMAINNAME@
18596 +GNULIB_GETDTABLESIZE = @GNULIB_GETDTABLESIZE@
18597 +GNULIB_GETHOSTNAME = @GNULIB_GETHOSTNAME@
18598 +GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@
18599 +GNULIB_GETPAGESIZE = @GNULIB_GETPAGESIZE@
18600 +GNULIB_GETUSERSHELL = @GNULIB_GETUSERSHELL@
18601 +GNULIB_LCHOWN = @GNULIB_LCHOWN@
18602 +GNULIB_LINK = @GNULIB_LINK@
18603 +GNULIB_LSEEK = @GNULIB_LSEEK@
18604 +GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@
18605 +GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@
18606 +GNULIB_MBSCHR = @GNULIB_MBSCHR@
18607 +GNULIB_MBSCSPN = @GNULIB_MBSCSPN@
18608 +GNULIB_MBSLEN = @GNULIB_MBSLEN@
18609 +GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@
18610 +GNULIB_MBSNLEN = @GNULIB_MBSNLEN@
18611 +GNULIB_MBSPBRK = @GNULIB_MBSPBRK@
18612 +GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@
18613 +GNULIB_MBSRCHR = @GNULIB_MBSRCHR@
18614 +GNULIB_MBSSEP = @GNULIB_MBSSEP@
18615 +GNULIB_MBSSPN = @GNULIB_MBSSPN@
18616 +GNULIB_MBSSTR = @GNULIB_MBSSTR@
18617 +GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@
18618 +GNULIB_MEMMEM = @GNULIB_MEMMEM@
18619 +GNULIB_MEMPCPY = @GNULIB_MEMPCPY@
18620 +GNULIB_MEMRCHR = @GNULIB_MEMRCHR@
18621 +GNULIB_RAWMEMCHR = @GNULIB_RAWMEMCHR@
18622 +GNULIB_READLINK = @GNULIB_READLINK@
18623 +GNULIB_SLEEP = @GNULIB_SLEEP@
18624 +GNULIB_STPCPY = @GNULIB_STPCPY@
18625 +GNULIB_STPNCPY = @GNULIB_STPNCPY@
18626 +GNULIB_STRCASESTR = @GNULIB_STRCASESTR@
18627 +GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@
18628 +GNULIB_STRDUP = @GNULIB_STRDUP@
18629 +GNULIB_STRERROR = @GNULIB_STRERROR@
18630 +GNULIB_STRNDUP = @GNULIB_STRNDUP@
18631 +GNULIB_STRNLEN = @GNULIB_STRNLEN@
18632 +GNULIB_STRPBRK = @GNULIB_STRPBRK@
18633 +GNULIB_STRSEP = @GNULIB_STRSEP@
18634 +GNULIB_STRSIGNAL = @GNULIB_STRSIGNAL@
18635 +GNULIB_STRSTR = @GNULIB_STRSTR@
18636 +GNULIB_STRTOK_R = @GNULIB_STRTOK_R@
18637 +GNULIB_STRVERSCMP = @GNULIB_STRVERSCMP@
18638 +GNULIB_UNISTD_H_SIGPIPE = @GNULIB_UNISTD_H_SIGPIPE@
18639 +GNULIB_WRITE = @GNULIB_WRITE@
18640 +GREP = @GREP@
18641 +HAVE_DECL_ENVIRON = @HAVE_DECL_ENVIRON@
18642 +HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@
18643 +HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@
18644 +HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@
18645 +HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@
18646 +HAVE_DECL_STRERROR = @HAVE_DECL_STRERROR@
18647 +HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@
18648 +HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@
18649 +HAVE_DECL_STRSIGNAL = @HAVE_DECL_STRSIGNAL@
18650 +HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@
18651 +HAVE_DUP2 = @HAVE_DUP2@
18652 +HAVE_EUIDACCESS = @HAVE_EUIDACCESS@
18653 +HAVE_FSYNC = @HAVE_FSYNC@
18654 +HAVE_FTRUNCATE = @HAVE_FTRUNCATE@
18655 +HAVE_GETDOMAINNAME = @HAVE_GETDOMAINNAME@
18656 +HAVE_GETDTABLESIZE = @HAVE_GETDTABLESIZE@
18657 +HAVE_GETHOSTNAME = @HAVE_GETHOSTNAME@
18658 +HAVE_GETPAGESIZE = @HAVE_GETPAGESIZE@
18659 +HAVE_GETUSERSHELL = @HAVE_GETUSERSHELL@
18660 +HAVE_LINK = @HAVE_LINK@
18661 +HAVE_MEMPCPY = @HAVE_MEMPCPY@
18662 +HAVE_OS_H = @HAVE_OS_H@
18663 +HAVE_RAWMEMCHR = @HAVE_RAWMEMCHR@
18664 +HAVE_READLINK = @HAVE_READLINK@
18665 +HAVE_SLEEP = @HAVE_SLEEP@
18666 +HAVE_STPCPY = @HAVE_STPCPY@
18667 +HAVE_STPNCPY = @HAVE_STPNCPY@
18668 +HAVE_STRCASESTR = @HAVE_STRCASESTR@
18669 +HAVE_STRCHRNUL = @HAVE_STRCHRNUL@
18670 +HAVE_STRNDUP = @HAVE_STRNDUP@
18671 +HAVE_STRPBRK = @HAVE_STRPBRK@
18672 +HAVE_STRSEP = @HAVE_STRSEP@
18673 +HAVE_STRVERSCMP = @HAVE_STRVERSCMP@
18674 +HAVE_SYS_PARAM_H = @HAVE_SYS_PARAM_H@
18675 +HAVE_UNISTD_H = @HAVE_UNISTD_H@
18676 +INCLUDE_NEXT = @INCLUDE_NEXT@
18677 +INCLUDE_NEXT_AS_FIRST_DIRECTIVE = @INCLUDE_NEXT_AS_FIRST_DIRECTIVE@
18678 +INSTALL = @INSTALL@
18679 +INSTALL_DATA = @INSTALL_DATA@
18680 +INSTALL_PROGRAM = @INSTALL_PROGRAM@
18681 +INSTALL_SCRIPT = @INSTALL_SCRIPT@
18682 +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
18683 +LDFLAGS = @LDFLAGS@
18684 +LIBGNU_LIBDEPS = @LIBGNU_LIBDEPS@
18685 +LIBGNU_LTLIBDEPS = @LIBGNU_LTLIBDEPS@
18686 +LIBINTL = @LIBINTL@
18687 +LIBOBJS = @LIBOBJS@
18688 +LIBS = @LIBS@
18689 +LTLIBINTL = @LTLIBINTL@
18690 +LTLIBOBJS = @LTLIBOBJS@
18691 +MAKEINFO = @MAKEINFO@
18692 +MKDIR_P = @MKDIR_P@
18693 +NEXT_STRING_H = @NEXT_STRING_H@
18694 +NEXT_UNISTD_H = @NEXT_UNISTD_H@
18695 +OBJEXT = @OBJEXT@
18696 +PACKAGE = @PACKAGE@
18697 +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
18698 +PACKAGE_NAME = @PACKAGE_NAME@
18699 +PACKAGE_STRING = @PACKAGE_STRING@
18700 +PACKAGE_TARNAME = @PACKAGE_TARNAME@
18701 +PACKAGE_URL = @PACKAGE_URL@
18702 +PACKAGE_VERSION = @PACKAGE_VERSION@
18703 +PATH_SEPARATOR = @PATH_SEPARATOR@
18704 +PRAGMA_SYSTEM_HEADER = @PRAGMA_SYSTEM_HEADER@
18705 +RANLIB = @RANLIB@
18706 +REPLACE_CHOWN = @REPLACE_CHOWN@
18707 +REPLACE_CLOSE = @REPLACE_CLOSE@
18708 +REPLACE_FCHDIR = @REPLACE_FCHDIR@
18709 +REPLACE_GETCWD = @REPLACE_GETCWD@
18710 +REPLACE_GETPAGESIZE = @REPLACE_GETPAGESIZE@
18711 +REPLACE_LCHOWN = @REPLACE_LCHOWN@
18712 +REPLACE_LSEEK = @REPLACE_LSEEK@
18713 +REPLACE_MEMMEM = @REPLACE_MEMMEM@
18714 +REPLACE_STRCASESTR = @REPLACE_STRCASESTR@
18715 +REPLACE_STRDUP = @REPLACE_STRDUP@
18716 +REPLACE_STRERROR = @REPLACE_STRERROR@
18717 +REPLACE_STRSIGNAL = @REPLACE_STRSIGNAL@
18718 +REPLACE_STRSTR = @REPLACE_STRSTR@
18719 +REPLACE_WRITE = @REPLACE_WRITE@
18720 +SET_MAKE = @SET_MAKE@
18721 +SHELL = @SHELL@
18722 +STRIP = @STRIP@
18723 +UNISTD_H_HAVE_WINSOCK2_H = @UNISTD_H_HAVE_WINSOCK2_H@
18724 +VERSION = @VERSION@
18725 +abs_builddir = @abs_builddir@
18726 +abs_srcdir = @abs_srcdir@
18727 +abs_top_builddir = @abs_top_builddir@
18728 +abs_top_srcdir = @abs_top_srcdir@
18729 +ac_ct_CC = @ac_ct_CC@
18730 +am__include = @am__include@
18731 +am__leading_dot = @am__leading_dot@
18732 +am__quote = @am__quote@
18733 +am__tar = @am__tar@
18734 +am__untar = @am__untar@
18735 +bindir = @bindir@
18736 +build = @build@
18737 +build_alias = @build_alias@
18738 +build_cpu = @build_cpu@
18739 +build_os = @build_os@
18740 +build_vendor = @build_vendor@
18741 +builddir = @builddir@
18742 +datadir = @datadir@
18743 +datarootdir = @datarootdir@
18744 +docdir = @docdir@
18745 +dvidir = @dvidir@
18746 +exec_prefix = @exec_prefix@
18747 +gl_LIBOBJS = @gl_LIBOBJS@
18748 +gl_LTLIBOBJS = @gl_LTLIBOBJS@
18749 +host = @host@
18750 +host_alias = @host_alias@
18751 +host_cpu = @host_cpu@
18752 +host_os = @host_os@
18753 +host_vendor = @host_vendor@
18754 +htmldir = @htmldir@
18755 +includedir = @includedir@
18756 +infodir = @infodir@
18757 +install_sh = @install_sh@
18758 +libdir = @libdir@
18759 +libexecdir = @libexecdir@
18760 +localedir = @localedir@
18761 +localstatedir = @localstatedir@
18762 +mandir = @mandir@
18763 +mkdir_p = @mkdir_p@
18764 +oldincludedir = @oldincludedir@
18765 +pdfdir = @pdfdir@
18766 +prefix = @prefix@
18767 +program_transform_name = @program_transform_name@
18768 +psdir = @psdir@
18769 +sbindir = @sbindir@
18770 +sharedstatedir = @sharedstatedir@
18771 +srcdir = @srcdir@
18772 +sysconfdir = @sysconfdir@
18773 +target_alias = @target_alias@
18774 +top_build_prefix = @top_build_prefix@
18775 +top_builddir = @top_builddir@
18776 +top_srcdir = @top_srcdir@
18777 +EXTRA_DIST = 00gnulib.m4 extensions.m4 getopt.m4 gnulib-common.m4 \
18778 + include_next.m4 onceonly.m4 string_h.m4 strndup.m4 strnlen.m4 \
18779 + strsep.m4 unistd_h.m4
18780 +all: all-am
18781 +
18782 +.SUFFIXES:
18783 +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
18784 + @for dep in $?; do \
18785 + case '$(am__configure_deps)' in \
18786 + *$$dep*) \
18787 + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
18788 + && { if test -f $@; then exit 0; else break; fi; }; \
18789 + exit 1;; \
18790 + esac; \
18791 + done; \
18792 + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu glm4/Makefile'; \
18793 + $(am__cd) $(top_srcdir) && \
18794 + $(AUTOMAKE) --gnu glm4/Makefile
18795 +.PRECIOUS: Makefile
18796 +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
18797 + @case '$?' in \
18798 + *config.status*) \
18799 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
18800 + *) \
18801 + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
18802 + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
18803 + esac;
18804 +
18805 +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
18806 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
18807 +
18808 +$(top_srcdir)/configure: $(am__configure_deps)
18809 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
18810 +$(ACLOCAL_M4): $(am__aclocal_m4_deps)
18811 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
18812 +$(am__aclocal_m4_deps):
18813 +tags: TAGS
18814 +TAGS:
18815 +
18816 +ctags: CTAGS
18817 +CTAGS:
18818 +
18819 +
18820 +distdir: $(DISTFILES)
18821 + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
18822 + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
18823 + list='$(DISTFILES)'; \
18824 + dist_files=`for file in $$list; do echo $$file; done | \
18825 + sed -e "s|^$$srcdirstrip/||;t" \
18826 + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
18827 + case $$dist_files in \
18828 + */*) $(MKDIR_P) `echo "$$dist_files" | \
18829 + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
18830 + sort -u` ;; \
18831 + esac; \
18832 + for file in $$dist_files; do \
18833 + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
18834 + if test -d $$d/$$file; then \
18835 + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
18836 + if test -d "$(distdir)/$$file"; then \
18837 + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
18838 + fi; \
18839 + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
18840 + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
18841 + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
18842 + fi; \
18843 + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
18844 + else \
18845 + test -f "$(distdir)/$$file" \
18846 + || cp -p $$d/$$file "$(distdir)/$$file" \
18847 + || exit 1; \
18848 + fi; \
18849 + done
18850 +check-am: all-am
18851 +check: check-am
18852 +all-am: Makefile
18853 +installdirs:
18854 +install: install-am
18855 +install-exec: install-exec-am
18856 +install-data: install-data-am
18857 +uninstall: uninstall-am
18858 +
18859 +install-am: all-am
18860 + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
18861 +
18862 +installcheck: installcheck-am
18863 +install-strip:
18864 + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
18865 + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
18866 + `test -z '$(STRIP)' || \
18867 + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
18868 +mostlyclean-generic:
18869 +
18870 +clean-generic:
18871 +
18872 +distclean-generic:
18873 + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
18874 + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
18875 +
18876 +maintainer-clean-generic:
18877 + @echo "This command is intended for maintainers to use"
18878 + @echo "it deletes files that may require special tools to rebuild."
18879 +clean: clean-am
18880 +
18881 +clean-am: clean-generic mostlyclean-am
18882 +
18883 +distclean: distclean-am
18884 + -rm -f Makefile
18885 +distclean-am: clean-am distclean-generic
18886 +
18887 +dvi: dvi-am
18888 +
18889 +dvi-am:
18890 +
18891 +html: html-am
18892 +
18893 +html-am:
18894 +
18895 +info: info-am
18896 +
18897 +info-am:
18898 +
18899 +install-data-am:
18900 +
18901 +install-dvi: install-dvi-am
18902 +
18903 +install-dvi-am:
18904 +
18905 +install-exec-am:
18906 +
18907 +install-html: install-html-am
18908 +
18909 +install-html-am:
18910 +
18911 +install-info: install-info-am
18912 +
18913 +install-info-am:
18914 +
18915 +install-man:
18916 +
18917 +install-pdf: install-pdf-am
18918 +
18919 +install-pdf-am:
18920 +
18921 +install-ps: install-ps-am
18922 +
18923 +install-ps-am:
18924 +
18925 +installcheck-am:
18926 +
18927 +maintainer-clean: maintainer-clean-am
18928 + -rm -f Makefile
18929 +maintainer-clean-am: distclean-am maintainer-clean-generic
18930 +
18931 +mostlyclean: mostlyclean-am
18932 +
18933 +mostlyclean-am: mostlyclean-generic
18934 +
18935 +pdf: pdf-am
18936 +
18937 +pdf-am:
18938 +
18939 +ps: ps-am
18940 +
18941 +ps-am:
18942 +
18943 +uninstall-am:
18944 +
18945 +.MAKE: install-am install-strip
18946 +
18947 +.PHONY: all all-am check check-am clean clean-generic distclean \
18948 + distclean-generic distdir dvi dvi-am html html-am info info-am \
18949 + install install-am install-data install-data-am install-dvi \
18950 + install-dvi-am install-exec install-exec-am install-html \
18951 + install-html-am install-info install-info-am install-man \
18952 + install-pdf install-pdf-am install-ps install-ps-am \
18953 + install-strip installcheck installcheck-am installdirs \
18954 + maintainer-clean maintainer-clean-generic mostlyclean \
18955 + mostlyclean-generic pdf pdf-am ps ps-am uninstall uninstall-am
18956 +
18957 +
18958 +# Tell versions [3.59,3.63) of GNU make to not export all variables.
18959 +# Otherwise a system limit (for SysV at least) may be exceeded.
18960 +.NOEXPORT:
18961
18962 Added: trunk/baselayout-prefix/gnulib/glm4/extensions.m4
18963 ===================================================================
18964 --- trunk/baselayout-prefix/gnulib/glm4/extensions.m4 (rev 0)
18965 +++ trunk/baselayout-prefix/gnulib/glm4/extensions.m4 2011-03-31 16:43:45 UTC (rev 1693)
18966 @@ -0,0 +1,104 @@
18967 +# serial 8 -*- Autoconf -*-
18968 +# Enable extensions on systems that normally disable them.
18969 +
18970 +# Copyright (C) 2003, 2006-2009 Free Software Foundation, Inc.
18971 +# This file is free software; the Free Software Foundation
18972 +# gives unlimited permission to copy and/or distribute it,
18973 +# with or without modifications, as long as this notice is preserved.
18974 +
18975 +# This definition of AC_USE_SYSTEM_EXTENSIONS is stolen from CVS
18976 +# Autoconf. Perhaps we can remove this once we can assume Autoconf
18977 +# 2.62 or later everywhere, but since CVS Autoconf mutates rapidly
18978 +# enough in this area it's likely we'll need to redefine
18979 +# AC_USE_SYSTEM_EXTENSIONS for quite some time.
18980 +
18981 +# AC_USE_SYSTEM_EXTENSIONS
18982 +# ------------------------
18983 +# Enable extensions on systems that normally disable them,
18984 +# typically due to standards-conformance issues.
18985 +# Remember that #undef in AH_VERBATIM gets replaced with #define by
18986 +# AC_DEFINE. The goal here is to define all known feature-enabling
18987 +# macros, then, if reports of conflicts are made, disable macros that
18988 +# cause problems on some platforms (such as __EXTENSIONS__).
18989 +AC_DEFUN_ONCE([AC_USE_SYSTEM_EXTENSIONS],
18990 +[AC_BEFORE([$0], [AC_COMPILE_IFELSE])dnl
18991 +AC_BEFORE([$0], [AC_RUN_IFELSE])dnl
18992 +
18993 + AC_REQUIRE([AC_CANONICAL_HOST])
18994 +
18995 + AC_CHECK_HEADER([minix/config.h], [MINIX=yes], [MINIX=])
18996 + if test "$MINIX" = yes; then
18997 + AC_DEFINE([_POSIX_SOURCE], [1],
18998 + [Define to 1 if you need to in order for `stat' and other
18999 + things to work.])
19000 + AC_DEFINE([_POSIX_1_SOURCE], [2],
19001 + [Define to 2 if the system does not provide POSIX.1 features
19002 + except with this defined.])
19003 + AC_DEFINE([_MINIX], [1],
19004 + [Define to 1 if on MINIX.])
19005 + fi
19006 +
19007 + dnl HP-UX 11.11 defines mbstate_t only if _XOPEN_SOURCE is defined to 500,
19008 + dnl regardless of whether the flags -Ae or _D_HPUX_SOURCE=1 are already
19009 + dnl provided.
19010 + case "$host_os" in
19011 + hpux*)
19012 + AC_DEFINE([_XOPEN_SOURCE], [500],
19013 + [Define to 500 only on HP-UX.])
19014 + ;;
19015 + esac
19016 +
19017 + AH_VERBATIM([__EXTENSIONS__],
19018 +[/* Enable extensions on AIX 3, Interix. */
19019 +#ifndef _ALL_SOURCE
19020 +# undef _ALL_SOURCE
19021 +#endif
19022 +/* Enable GNU extensions on systems that have them. */
19023 +#ifndef _GNU_SOURCE
19024 +# undef _GNU_SOURCE
19025 +#endif
19026 +/* Enable threading extensions on Solaris. */
19027 +#ifndef _POSIX_PTHREAD_SEMANTICS
19028 +# undef _POSIX_PTHREAD_SEMANTICS
19029 +#endif
19030 +/* Enable extensions on HP NonStop. */
19031 +#ifndef _TANDEM_SOURCE
19032 +# undef _TANDEM_SOURCE
19033 +#endif
19034 +/* Enable general extensions on Solaris. */
19035 +#ifndef __EXTENSIONS__
19036 +# undef __EXTENSIONS__
19037 +#endif
19038 +])
19039 + AC_CACHE_CHECK([whether it is safe to define __EXTENSIONS__],
19040 + [ac_cv_safe_to_define___extensions__],
19041 + [AC_COMPILE_IFELSE(
19042 + [AC_LANG_PROGRAM([[
19043 +# define __EXTENSIONS__ 1
19044 + ]AC_INCLUDES_DEFAULT])],
19045 + [ac_cv_safe_to_define___extensions__=yes],
19046 + [ac_cv_safe_to_define___extensions__=no])])
19047 + test $ac_cv_safe_to_define___extensions__ = yes &&
19048 + AC_DEFINE([__EXTENSIONS__])
19049 + AC_DEFINE([_ALL_SOURCE])
19050 + AC_DEFINE([_GNU_SOURCE])
19051 + AC_DEFINE([_POSIX_PTHREAD_SEMANTICS])
19052 + AC_DEFINE([_TANDEM_SOURCE])
19053 +])# AC_USE_SYSTEM_EXTENSIONS
19054 +
19055 +# gl_USE_SYSTEM_EXTENSIONS
19056 +# ------------------------
19057 +# Enable extensions on systems that normally disable them,
19058 +# typically due to standards-conformance issues.
19059 +AC_DEFUN_ONCE([gl_USE_SYSTEM_EXTENSIONS],
19060 +[
19061 + dnl Require this macro before AC_USE_SYSTEM_EXTENSIONS.
19062 + dnl gnulib does not need it. But if it gets required by third-party macros
19063 + dnl after AC_USE_SYSTEM_EXTENSIONS is required, autoconf 2.62..2.63 emit a
19064 + dnl warning: "AC_COMPILE_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS".
19065 + dnl Note: We can do this only for one of the macros AC_AIX, AC_GNU_SOURCE,
19066 + dnl AC_MINIX. If people still use AC_AIX or AC_MINIX, they are out of luck.
19067 + AC_REQUIRE([AC_GNU_SOURCE])
19068 +
19069 + AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
19070 +])
19071
19072 Added: trunk/baselayout-prefix/gnulib/glm4/getopt.m4
19073 ===================================================================
19074 --- trunk/baselayout-prefix/gnulib/glm4/getopt.m4 (rev 0)
19075 +++ trunk/baselayout-prefix/gnulib/glm4/getopt.m4 2011-03-31 16:43:45 UTC (rev 1693)
19076 @@ -0,0 +1,83 @@
19077 +# getopt.m4 serial 14
19078 +dnl Copyright (C) 2002-2006, 2008 Free Software Foundation, Inc.
19079 +dnl This file is free software; the Free Software Foundation
19080 +dnl gives unlimited permission to copy and/or distribute it,
19081 +dnl with or without modifications, as long as this notice is preserved.
19082 +
19083 +# The getopt module assume you want GNU getopt, with getopt_long etc,
19084 +# rather than vanilla POSIX getopt. This means your code should
19085 +# always include <getopt.h> for the getopt prototypes.
19086 +
19087 +AC_DEFUN([gl_GETOPT_SUBSTITUTE],
19088 +[
19089 + AC_LIBOBJ([getopt])
19090 + AC_LIBOBJ([getopt1])
19091 + gl_GETOPT_SUBSTITUTE_HEADER
19092 + gl_PREREQ_GETOPT
19093 +])
19094 +
19095 +AC_DEFUN([gl_GETOPT_SUBSTITUTE_HEADER],
19096 +[
19097 + GETOPT_H=getopt.h
19098 + AC_DEFINE([__GETOPT_PREFIX], [[rpl_]],
19099 + [Define to rpl_ if the getopt replacement functions and variables
19100 + should be used.])
19101 + AC_SUBST([GETOPT_H])
19102 +])
19103 +
19104 +AC_DEFUN([gl_GETOPT_CHECK_HEADERS],
19105 +[
19106 + if test -z "$GETOPT_H"; then
19107 + AC_CHECK_HEADERS([getopt.h], [], [GETOPT_H=getopt.h])
19108 + fi
19109 +
19110 + if test -z "$GETOPT_H"; then
19111 + AC_CHECK_FUNCS([getopt_long_only], [], [GETOPT_H=getopt.h])
19112 + fi
19113 +
19114 + dnl BSD getopt_long uses an incompatible method to reset option processing,
19115 + dnl and (as of 2004-10-15) mishandles optional option-arguments.
19116 + if test -z "$GETOPT_H"; then
19117 + AC_CHECK_DECL([optreset], [GETOPT_H=getopt.h], [], [#include <getopt.h>])
19118 + fi
19119 +
19120 + dnl Solaris 10 getopt doesn't handle `+' as a leading character in an
19121 + dnl option string (as of 2005-05-05).
19122 + if test -z "$GETOPT_H"; then
19123 + AC_CACHE_CHECK([for working GNU getopt function], [gl_cv_func_gnu_getopt],
19124 + [AC_RUN_IFELSE(
19125 + [AC_LANG_PROGRAM([[#include <getopt.h>]],
19126 + [[
19127 + char *myargv[3];
19128 + myargv[0] = "conftest";
19129 + myargv[1] = "-+";
19130 + myargv[2] = 0;
19131 + return getopt (2, myargv, "+a") != '?';
19132 + ]])],
19133 + [gl_cv_func_gnu_getopt=yes],
19134 + [gl_cv_func_gnu_getopt=no],
19135 + [dnl cross compiling - pessimistically guess based on decls
19136 + dnl Solaris 10 getopt doesn't handle `+' as a leading character in an
19137 + dnl option string (as of 2005-05-05).
19138 + AC_CHECK_DECL([getopt_clip],
19139 + [gl_cv_func_gnu_getopt=no], [gl_cv_func_gnu_getopt=yes],
19140 + [#include <getopt.h>])])])
19141 + if test "$gl_cv_func_gnu_getopt" = "no"; then
19142 + GETOPT_H=getopt.h
19143 + fi
19144 + fi
19145 +])
19146 +
19147 +AC_DEFUN([gl_GETOPT_IFELSE],
19148 +[
19149 + AC_REQUIRE([gl_GETOPT_CHECK_HEADERS])
19150 + AS_IF([test -n "$GETOPT_H"], [$1], [$2])
19151 +])
19152 +
19153 +AC_DEFUN([gl_GETOPT], [gl_GETOPT_IFELSE([gl_GETOPT_SUBSTITUTE])])
19154 +
19155 +# Prerequisites of lib/getopt*.
19156 +AC_DEFUN([gl_PREREQ_GETOPT],
19157 +[
19158 + AC_CHECK_DECLS_ONCE([getenv])
19159 +])
19160
19161 Added: trunk/baselayout-prefix/gnulib/glm4/gnulib-common.m4
19162 ===================================================================
19163 --- trunk/baselayout-prefix/gnulib/glm4/gnulib-common.m4 (rev 0)
19164 +++ trunk/baselayout-prefix/gnulib/glm4/gnulib-common.m4 2011-03-31 16:43:45 UTC (rev 1693)
19165 @@ -0,0 +1,124 @@
19166 +# gnulib-common.m4 serial 11
19167 +dnl Copyright (C) 2007-2009 Free Software Foundation, Inc.
19168 +dnl This file is free software; the Free Software Foundation
19169 +dnl gives unlimited permission to copy and/or distribute it,
19170 +dnl with or without modifications, as long as this notice is preserved.
19171 +
19172 +# gl_COMMON
19173 +# is expanded unconditionally through gnulib-tool magic.
19174 +AC_DEFUN([gl_COMMON], [
19175 + dnl Use AC_REQUIRE here, so that the code is expanded once only.
19176 + AC_REQUIRE([gl_00GNULIB])
19177 + AC_REQUIRE([gl_COMMON_BODY])
19178 +])
19179 +AC_DEFUN([gl_COMMON_BODY], [
19180 + AH_VERBATIM([isoc99_inline],
19181 +[/* Work around a bug in Apple GCC 4.0.1 build 5465: In C99 mode, it supports
19182 + the ISO C 99 semantics of 'extern inline' (unlike the GNU C semantics of
19183 + earlier versions), but does not display it by setting __GNUC_STDC_INLINE__.
19184 + __APPLE__ && __MACH__ test for MacOS X.
19185 + __APPLE_CC__ tests for the Apple compiler and its version.
19186 + __STDC_VERSION__ tests for the C99 mode. */
19187 +#if defined __APPLE__ && defined __MACH__ && __APPLE_CC__ >= 5465 && !defined __cplusplus && __STDC_VERSION__ >= 199901L && !defined __GNUC_STDC_INLINE__
19188 +# define __GNUC_STDC_INLINE__ 1
19189 +#endif])
19190 + AH_VERBATIM([unused_parameter],
19191 +[/* Define as a marker that can be attached to function parameter declarations
19192 + for parameters that are not used. This helps to reduce warnings, such as
19193 + from GCC -Wunused-parameter. */
19194 +#if __GNUC__ >= 3 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)
19195 +# define _UNUSED_PARAMETER_ __attribute__ ((__unused__))
19196 +#else
19197 +# define _UNUSED_PARAMETER_
19198 +#endif
19199 +])
19200 +])
19201 +
19202 +# gl_MODULE_INDICATOR([modulename])
19203 +# defines a C macro indicating the presence of the given module.
19204 +AC_DEFUN([gl_MODULE_INDICATOR],
19205 +[
19206 + AC_DEFINE([GNULIB_]translit([$1],[abcdefghijklmnopqrstuvwxyz./-],[ABCDEFGHIJKLMNOPQRSTUVWXYZ___]), [1],
19207 + [Define to 1 when using the gnulib module ]$1[.])
19208 +])
19209 +
19210 +# m4_foreach_w
19211 +# is a backport of autoconf-2.59c's m4_foreach_w.
19212 +# Remove this macro when we can assume autoconf >= 2.60.
19213 +m4_ifndef([m4_foreach_w],
19214 + [m4_define([m4_foreach_w],
19215 + [m4_foreach([$1], m4_split(m4_normalize([$2]), [ ]), [$3])])])
19216 +
19217 +# AC_PROG_MKDIR_P
19218 +# is a backport of autoconf-2.60's AC_PROG_MKDIR_P.
19219 +# Remove this macro when we can assume autoconf >= 2.60.
19220 +m4_ifdef([AC_PROG_MKDIR_P], [], [
19221 + AC_DEFUN_ONCE([AC_PROG_MKDIR_P],
19222 + [AC_REQUIRE([AM_PROG_MKDIR_P])dnl defined by automake
19223 + MKDIR_P='$(mkdir_p)'
19224 + AC_SUBST([MKDIR_P])])])
19225 +
19226 +# AC_C_RESTRICT
19227 +# This definition overrides the AC_C_RESTRICT macro from autoconf 2.60..2.61,
19228 +# so that mixed use of GNU C and GNU C++ and mixed use of Sun C and Sun C++
19229 +# works.
19230 +# This definition can be removed once autoconf >= 2.62 can be assumed.
19231 +AC_DEFUN([AC_C_RESTRICT],
19232 +[AC_CACHE_CHECK([for C/C++ restrict keyword], [ac_cv_c_restrict],
19233 + [ac_cv_c_restrict=no
19234 + # The order here caters to the fact that C++ does not require restrict.
19235 + for ac_kw in __restrict __restrict__ _Restrict restrict; do
19236 + AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
19237 + [[typedef int * int_ptr;
19238 + int foo (int_ptr $ac_kw ip) {
19239 + return ip[0];
19240 + }]],
19241 + [[int s[1];
19242 + int * $ac_kw t = s;
19243 + t[0] = 0;
19244 + return foo(t)]])],
19245 + [ac_cv_c_restrict=$ac_kw])
19246 + test "$ac_cv_c_restrict" != no && break
19247 + done
19248 + ])
19249 + AH_VERBATIM([restrict],
19250 +[/* Define to the equivalent of the C99 'restrict' keyword, or to
19251 + nothing if this is not supported. Do not define if restrict is
19252 + supported directly. */
19253 +#undef restrict
19254 +/* Work around a bug in Sun C++: it does not support _Restrict, even
19255 + though the corresponding Sun C compiler does, which causes
19256 + "#define restrict _Restrict" in the previous line. Perhaps some future
19257 + version of Sun C++ will work with _Restrict; if so, it'll probably
19258 + define __RESTRICT, just as Sun C does. */
19259 +#if defined __SUNPRO_CC && !defined __RESTRICT
19260 +# define _Restrict
19261 +#endif])
19262 + case $ac_cv_c_restrict in
19263 + restrict) ;;
19264 + no) AC_DEFINE([restrict], []) ;;
19265 + *) AC_DEFINE_UNQUOTED([restrict], [$ac_cv_c_restrict]) ;;
19266 + esac
19267 +])
19268 +
19269 +# gl_BIGENDIAN
19270 +# is like AC_C_BIGENDIAN, except that it can be AC_REQUIREd.
19271 +# Note that AC_REQUIRE([AC_C_BIGENDIAN]) does not work reliably because some
19272 +# macros invoke AC_C_BIGENDIAN with arguments.
19273 +AC_DEFUN([gl_BIGENDIAN],
19274 +[
19275 + AC_C_BIGENDIAN
19276 +])
19277 +
19278 +# gl_CACHE_VAL_SILENT(cache-id, command-to-set-it)
19279 +# is like AC_CACHE_VAL(cache-id, command-to-set-it), except that it does not
19280 +# output a spurious "(cached)" mark in the midst of other configure output.
19281 +# This macro should be used instead of AC_CACHE_VAL when it is not surrounded
19282 +# by an AC_MSG_CHECKING/AC_MSG_RESULT pair.
19283 +AC_DEFUN([gl_CACHE_VAL_SILENT],
19284 +[
19285 + saved_as_echo_n="$as_echo_n"
19286 + as_echo_n=':'
19287 + AC_CACHE_VAL([$1], [$2])
19288 + as_echo_n="$saved_as_echo_n"
19289 +])
19290
19291 Added: trunk/baselayout-prefix/gnulib/glm4/include_next.m4
19292 ===================================================================
19293 --- trunk/baselayout-prefix/gnulib/glm4/include_next.m4 (rev 0)
19294 +++ trunk/baselayout-prefix/gnulib/glm4/include_next.m4 2011-03-31 16:43:45 UTC (rev 1693)
19295 @@ -0,0 +1,171 @@
19296 +# include_next.m4 serial 12
19297 +dnl Copyright (C) 2006-2009 Free Software Foundation, Inc.
19298 +dnl This file is free software; the Free Software Foundation
19299 +dnl gives unlimited permission to copy and/or distribute it,
19300 +dnl with or without modifications, as long as this notice is preserved.
19301 +
19302 +dnl From Paul Eggert and Derek Price.
19303 +
19304 +dnl Sets INCLUDE_NEXT and PRAGMA_SYSTEM_HEADER.
19305 +dnl
19306 +dnl INCLUDE_NEXT expands to 'include_next' if the compiler supports it, or to
19307 +dnl 'include' otherwise.
19308 +dnl
19309 +dnl INCLUDE_NEXT_AS_FIRST_DIRECTIVE expands to 'include_next' if the compiler
19310 +dnl supports it in the special case that it is the first include directive in
19311 +dnl the given file, or to 'include' otherwise.
19312 +dnl
19313 +dnl PRAGMA_SYSTEM_HEADER can be used in files that contain #include_next,
19314 +dnl so as to avoid GCC warnings when the gcc option -pedantic is used.
19315 +dnl '#pragma GCC system_header' has the same effect as if the file was found
19316 +dnl through the include search path specified with '-isystem' options (as
19317 +dnl opposed to the search path specified with '-I' options). Namely, gcc
19318 +dnl does not warn about some things, and on some systems (Solaris and Interix)
19319 +dnl __STDC__ evaluates to 0 instead of to 1. The latter is an undesired side
19320 +dnl effect; we are therefore careful to use 'defined __STDC__' or '1' instead
19321 +dnl of plain '__STDC__'.
19322 +
19323 +AC_DEFUN([gl_INCLUDE_NEXT],
19324 +[
19325 + AC_LANG_PREPROC_REQUIRE()
19326 + AC_CACHE_CHECK([whether the preprocessor supports include_next],
19327 + [gl_cv_have_include_next],
19328 + [rm -rf conftestd1a conftestd1b conftestd2
19329 + mkdir conftestd1a conftestd1b conftestd2
19330 + dnl IBM C 9.0, 10.1 (original versions, prior to the 2009-01 updates) on
19331 + dnl AIX 6.1 support include_next when used as first preprocessor directive
19332 + dnl in a file, but not when preceded by another include directive. Check
19333 + dnl for this bug by including <stdio.h>.
19334 + dnl Additionally, with this same compiler, include_next is a no-op when
19335 + dnl used in a header file that was included by specifying its absolute
19336 + dnl file name. Despite these two bugs, include_next is used in the
19337 + dnl compiler's <math.h>. By virtue of the second bug, we need to use
19338 + dnl include_next as well in this case.
19339 + cat <<EOF > conftestd1a/conftest.h
19340 +#define DEFINED_IN_CONFTESTD1
19341 +#include_next <conftest.h>
19342 +#ifdef DEFINED_IN_CONFTESTD2
19343 +int foo;
19344 +#else
19345 +#error "include_next doesn't work"
19346 +#endif
19347 +EOF
19348 + cat <<EOF > conftestd1b/conftest.h
19349 +#define DEFINED_IN_CONFTESTD1
19350 +#include <stdio.h>
19351 +#include_next <conftest.h>
19352 +#ifdef DEFINED_IN_CONFTESTD2
19353 +int foo;
19354 +#else
19355 +#error "include_next doesn't work"
19356 +#endif
19357 +EOF
19358 + cat <<EOF > conftestd2/conftest.h
19359 +#ifndef DEFINED_IN_CONFTESTD1
19360 +#error "include_next test doesn't work"
19361 +#endif
19362 +#define DEFINED_IN_CONFTESTD2
19363 +EOF
19364 + gl_save_CPPFLAGS="$CPPFLAGS"
19365 + CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
19366 + AC_COMPILE_IFELSE([#include <conftest.h>],
19367 + [gl_cv_have_include_next=yes],
19368 + [CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
19369 + AC_COMPILE_IFELSE([#include <conftest.h>],
19370 + [gl_cv_have_include_next=buggy],
19371 + [gl_cv_have_include_next=no])
19372 + ])
19373 + CPPFLAGS="$gl_save_CPPFLAGS"
19374 + rm -rf conftestd1a conftestd1b conftestd2
19375 + ])
19376 + PRAGMA_SYSTEM_HEADER=
19377 + if test $gl_cv_have_include_next = yes; then
19378 + INCLUDE_NEXT=include_next
19379 + INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
19380 + if test -n "$GCC"; then
19381 + PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
19382 + fi
19383 + else
19384 + if test $gl_cv_have_include_next = buggy; then
19385 + INCLUDE_NEXT=include
19386 + INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
19387 + else
19388 + INCLUDE_NEXT=include
19389 + INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
19390 + fi
19391 + fi
19392 + AC_SUBST([INCLUDE_NEXT])
19393 + AC_SUBST([INCLUDE_NEXT_AS_FIRST_DIRECTIVE])
19394 + AC_SUBST([PRAGMA_SYSTEM_HEADER])
19395 +])
19396 +
19397 +# gl_CHECK_NEXT_HEADERS(HEADER1 HEADER2 ...)
19398 +# ------------------------------------------
19399 +# For each arg foo.h, if #include_next works, define NEXT_FOO_H to be
19400 +# '<foo.h>'; otherwise define it to be
19401 +# '"///usr/include/foo.h"', or whatever other absolute file name is suitable.
19402 +# That way, a header file with the following line:
19403 +# #@INCLUDE_NEXT@ @NEXT_FOO_H@
19404 +# behaves (after sed substitution) as if it contained
19405 +# #include_next <foo.h>
19406 +# even if the compiler does not support include_next.
19407 +# The three "///" are to pacify Sun C 5.8, which otherwise would say
19408 +# "warning: #include of /usr/include/... may be non-portable".
19409 +# Use `""', not `<>', so that the /// cannot be confused with a C99 comment.
19410 +# Note: This macro assumes that the header file is not empty after
19411 +# preprocessing, i.e. it does not only define preprocessor macros but also
19412 +# provides some type/enum definitions or function/variable declarations.
19413 +AC_DEFUN([gl_CHECK_NEXT_HEADERS],
19414 +[
19415 + AC_REQUIRE([gl_INCLUDE_NEXT])
19416 + AC_REQUIRE([AC_CANONICAL_HOST])
19417 + AC_CHECK_HEADERS_ONCE([$1])
19418 +
19419 + m4_foreach_w([gl_HEADER_NAME], [$1],
19420 + [AS_VAR_PUSHDEF([gl_next_header],
19421 + [gl_cv_next_]m4_quote(m4_defn([gl_HEADER_NAME])))
19422 + if test $gl_cv_have_include_next = yes; then
19423 + AS_VAR_SET([gl_next_header], ['<'gl_HEADER_NAME'>'])
19424 + else
19425 + AC_CACHE_CHECK(
19426 + [absolute name of <]m4_quote(m4_defn([gl_HEADER_NAME]))[>],
19427 + m4_quote(m4_defn([gl_next_header])),
19428 + [AS_VAR_PUSHDEF([gl_header_exists],
19429 + [ac_cv_header_]m4_quote(m4_defn([gl_HEADER_NAME])))
19430 + if test AS_VAR_GET(gl_header_exists) = yes; then
19431 + AC_LANG_CONFTEST(
19432 + [AC_LANG_SOURCE(
19433 + [[#include <]]m4_dquote(m4_defn([gl_HEADER_NAME]))[[>]]
19434 + )])
19435 + dnl AIX "xlc -E" and "cc -E" omit #line directives for header files
19436 + dnl that contain only a #include of other header files and no
19437 + dnl non-comment tokens of their own. This leads to a failure to
19438 + dnl detect the absolute name of <dirent.h>, <signal.h>, <poll.h>
19439 + dnl and others. The workaround is to force preservation of comments
19440 + dnl through option -C. This ensures all necessary #line directives
19441 + dnl are present. GCC supports option -C as well.
19442 + case "$host_os" in
19443 + aix*) gl_absname_cpp="$ac_cpp -C" ;;
19444 + *) gl_absname_cpp="$ac_cpp" ;;
19445 + esac
19446 + dnl eval is necessary to expand gl_absname_cpp.
19447 + dnl Ultrix and Pyramid sh refuse to redirect output of eval,
19448 + dnl so use subshell.
19449 + AS_VAR_SET([gl_next_header],
19450 + ['"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&AS_MESSAGE_LOG_FD |
19451 + sed -n '\#/]m4_quote(m4_defn([gl_HEADER_NAME]))[#{
19452 + s#.*"\(.*/]m4_quote(m4_defn([gl_HEADER_NAME]))[\)".*#\1#
19453 + s#^/[^/]#//&#
19454 + p
19455 + q
19456 + }'`'"'])
19457 + else
19458 + AS_VAR_SET([gl_next_header], ['<'gl_HEADER_NAME'>'])
19459 + fi
19460 + AS_VAR_POPDEF([gl_header_exists])])
19461 + fi
19462 + AC_SUBST(
19463 + AS_TR_CPP([NEXT_]m4_quote(m4_defn([gl_HEADER_NAME]))),
19464 + [AS_VAR_GET([gl_next_header])])
19465 + AS_VAR_POPDEF([gl_next_header])])
19466 +])
19467
19468 Added: trunk/baselayout-prefix/gnulib/glm4/onceonly.m4
19469 ===================================================================
19470 --- trunk/baselayout-prefix/gnulib/glm4/onceonly.m4 (rev 0)
19471 +++ trunk/baselayout-prefix/gnulib/glm4/onceonly.m4 2011-03-31 16:43:45 UTC (rev 1693)
19472 @@ -0,0 +1,90 @@
19473 +# onceonly.m4 serial 6
19474 +dnl Copyright (C) 2002-2003, 2005-2006, 2008 Free Software Foundation, Inc.
19475 +dnl This file is free software, distributed under the terms of the GNU
19476 +dnl General Public License. As a special exception to the GNU General
19477 +dnl Public License, this file may be distributed as part of a program
19478 +dnl that contains a configuration script generated by Autoconf, under
19479 +dnl the same distribution terms as the rest of that program.
19480 +
19481 +dnl This file defines some "once only" variants of standard autoconf macros.
19482 +dnl AC_CHECK_HEADERS_ONCE like AC_CHECK_HEADERS
19483 +dnl AC_CHECK_FUNCS_ONCE like AC_CHECK_FUNCS
19484 +dnl AC_CHECK_DECLS_ONCE like AC_CHECK_DECLS
19485 +dnl AC_REQUIRE([AC_FUNC_STRCOLL]) like AC_FUNC_STRCOLL
19486 +dnl The advantage is that the check for each of the headers/functions/decls
19487 +dnl will be put only once into the 'configure' file. It keeps the size of
19488 +dnl the 'configure' file down, and avoids redundant output when 'configure'
19489 +dnl is run.
19490 +dnl The drawback is that the checks cannot be conditionalized. If you write
19491 +dnl if some_condition; then gl_CHECK_HEADERS(stdlib.h); fi
19492 +dnl inside an AC_DEFUNed function, the gl_CHECK_HEADERS macro call expands to
19493 +dnl empty, and the check will be inserted before the body of the AC_DEFUNed
19494 +dnl function.
19495 +
19496 +dnl The original code implemented AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE
19497 +dnl in terms of AC_DEFUN and AC_REQUIRE. This implementation uses diversions to
19498 +dnl named sections DEFAULTS and INIT_PREPARE in order to check all requested
19499 +dnl headers at once, thus reducing the size of 'configure'. It is known to work
19500 +dnl with autoconf 2.57..2.62 at least . The size reduction is ca. 9%.
19501 +
19502 +dnl Autoconf version 2.59 plus gnulib is required; this file is not needed
19503 +dnl with Autoconf 2.60 or greater. But note that autoconf's implementation of
19504 +dnl AC_CHECK_DECLS_ONCE expects a comma-separated list of symbols as first
19505 +dnl argument!
19506 +AC_PREREQ([2.59])
19507 +
19508 +# AC_CHECK_HEADERS_ONCE(HEADER1 HEADER2 ...) is a once-only variant of
19509 +# AC_CHECK_HEADERS(HEADER1 HEADER2 ...).
19510 +AC_DEFUN([AC_CHECK_HEADERS_ONCE], [
19511 + :
19512 + m4_foreach_w([gl_HEADER_NAME], [$1], [
19513 + AC_DEFUN([gl_CHECK_HEADER_]m4_quote(translit(gl_HEADER_NAME,
19514 + [./-], [___])), [
19515 + m4_divert_text([INIT_PREPARE],
19516 + [gl_header_list="$gl_header_list gl_HEADER_NAME"])
19517 + gl_HEADERS_EXPANSION
19518 + AH_TEMPLATE(AS_TR_CPP([HAVE_]m4_defn([gl_HEADER_NAME])),
19519 + [Define to 1 if you have the <]m4_defn([gl_HEADER_NAME])[> header file.])
19520 + ])
19521 + AC_REQUIRE([gl_CHECK_HEADER_]m4_quote(translit(gl_HEADER_NAME,
19522 + [./-], [___])))
19523 + ])
19524 +])
19525 +m4_define([gl_HEADERS_EXPANSION], [
19526 + m4_divert_text([DEFAULTS], [gl_header_list=])
19527 + AC_CHECK_HEADERS([$gl_header_list])
19528 + m4_define([gl_HEADERS_EXPANSION], [])
19529 +])
19530 +
19531 +# AC_CHECK_FUNCS_ONCE(FUNC1 FUNC2 ...) is a once-only variant of
19532 +# AC_CHECK_FUNCS(FUNC1 FUNC2 ...).
19533 +AC_DEFUN([AC_CHECK_FUNCS_ONCE], [
19534 + :
19535 + m4_foreach_w([gl_FUNC_NAME], [$1], [
19536 + AC_DEFUN([gl_CHECK_FUNC_]m4_defn([gl_FUNC_NAME]), [
19537 + m4_divert_text([INIT_PREPARE],
19538 + [gl_func_list="$gl_func_list gl_FUNC_NAME"])
19539 + gl_FUNCS_EXPANSION
19540 + AH_TEMPLATE(AS_TR_CPP([HAVE_]m4_defn([gl_FUNC_NAME])),
19541 + [Define to 1 if you have the `]m4_defn([gl_FUNC_NAME])[' function.])
19542 + ])
19543 + AC_REQUIRE([gl_CHECK_FUNC_]m4_defn([gl_FUNC_NAME]))
19544 + ])
19545 +])
19546 +m4_define([gl_FUNCS_EXPANSION], [
19547 + m4_divert_text([DEFAULTS], [gl_func_list=])
19548 + AC_CHECK_FUNCS([$gl_func_list])
19549 + m4_define([gl_FUNCS_EXPANSION], [])
19550 +])
19551 +
19552 +# AC_CHECK_DECLS_ONCE(DECL1 DECL2 ...) is a once-only variant of
19553 +# AC_CHECK_DECLS(DECL1, DECL2, ...).
19554 +AC_DEFUN([AC_CHECK_DECLS_ONCE], [
19555 + :
19556 + m4_foreach_w([gl_DECL_NAME], [$1], [
19557 + AC_DEFUN([gl_CHECK_DECL_]m4_defn([gl_DECL_NAME]), [
19558 + AC_CHECK_DECLS(m4_defn([gl_DECL_NAME]))
19559 + ])
19560 + AC_REQUIRE([gl_CHECK_DECL_]m4_defn([gl_DECL_NAME]))
19561 + ])
19562 +])
19563
19564 Added: trunk/baselayout-prefix/gnulib/glm4/string_h.m4
19565 ===================================================================
19566 --- trunk/baselayout-prefix/gnulib/glm4/string_h.m4 (rev 0)
19567 +++ trunk/baselayout-prefix/gnulib/glm4/string_h.m4 2011-03-31 16:43:45 UTC (rev 1693)
19568 @@ -0,0 +1,92 @@
19569 +# Configure a GNU-like replacement for <string.h>.
19570 +
19571 +# Copyright (C) 2007, 2008 Free Software Foundation, Inc.
19572 +# This file is free software; the Free Software Foundation
19573 +# gives unlimited permission to copy and/or distribute it,
19574 +# with or without modifications, as long as this notice is preserved.
19575 +
19576 +# serial 6
19577 +
19578 +# Written by Paul Eggert.
19579 +
19580 +AC_DEFUN([gl_HEADER_STRING_H],
19581 +[
19582 + dnl Use AC_REQUIRE here, so that the default behavior below is expanded
19583 + dnl once only, before all statements that occur in other macros.
19584 + AC_REQUIRE([gl_HEADER_STRING_H_BODY])
19585 +])
19586 +
19587 +AC_DEFUN([gl_HEADER_STRING_H_BODY],
19588 +[
19589 + AC_REQUIRE([AC_C_RESTRICT])
19590 + AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS])
19591 + gl_CHECK_NEXT_HEADERS([string.h])
19592 +])
19593 +
19594 +AC_DEFUN([gl_STRING_MODULE_INDICATOR],
19595 +[
19596 + dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
19597 + AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS])
19598 + GNULIB_[]m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./-],[ABCDEFGHIJKLMNOPQRSTUVWXYZ___])=1
19599 +])
19600 +
19601 +AC_DEFUN([gl_HEADER_STRING_H_DEFAULTS],
19602 +[
19603 + GNULIB_MEMMEM=0; AC_SUBST([GNULIB_MEMMEM])
19604 + GNULIB_MEMPCPY=0; AC_SUBST([GNULIB_MEMPCPY])
19605 + GNULIB_MEMRCHR=0; AC_SUBST([GNULIB_MEMRCHR])
19606 + GNULIB_RAWMEMCHR=0; AC_SUBST([GNULIB_RAWMEMCHR])
19607 + GNULIB_STPCPY=0; AC_SUBST([GNULIB_STPCPY])
19608 + GNULIB_STPNCPY=0; AC_SUBST([GNULIB_STPNCPY])
19609 + GNULIB_STRCHRNUL=0; AC_SUBST([GNULIB_STRCHRNUL])
19610 + GNULIB_STRDUP=0; AC_SUBST([GNULIB_STRDUP])
19611 + GNULIB_STRNDUP=0; AC_SUBST([GNULIB_STRNDUP])
19612 + GNULIB_STRNLEN=0; AC_SUBST([GNULIB_STRNLEN])
19613 + GNULIB_STRPBRK=0; AC_SUBST([GNULIB_STRPBRK])
19614 + GNULIB_STRSEP=0; AC_SUBST([GNULIB_STRSEP])
19615 + GNULIB_STRSTR=0; AC_SUBST([GNULIB_STRSTR])
19616 + GNULIB_STRCASESTR=0; AC_SUBST([GNULIB_STRCASESTR])
19617 + GNULIB_STRTOK_R=0; AC_SUBST([GNULIB_STRTOK_R])
19618 + GNULIB_MBSLEN=0; AC_SUBST([GNULIB_MBSLEN])
19619 + GNULIB_MBSNLEN=0; AC_SUBST([GNULIB_MBSNLEN])
19620 + GNULIB_MBSCHR=0; AC_SUBST([GNULIB_MBSCHR])
19621 + GNULIB_MBSRCHR=0; AC_SUBST([GNULIB_MBSRCHR])
19622 + GNULIB_MBSSTR=0; AC_SUBST([GNULIB_MBSSTR])
19623 + GNULIB_MBSCASECMP=0; AC_SUBST([GNULIB_MBSCASECMP])
19624 + GNULIB_MBSNCASECMP=0; AC_SUBST([GNULIB_MBSNCASECMP])
19625 + GNULIB_MBSPCASECMP=0; AC_SUBST([GNULIB_MBSPCASECMP])
19626 + GNULIB_MBSCASESTR=0; AC_SUBST([GNULIB_MBSCASESTR])
19627 + GNULIB_MBSCSPN=0; AC_SUBST([GNULIB_MBSCSPN])
19628 + GNULIB_MBSPBRK=0; AC_SUBST([GNULIB_MBSPBRK])
19629 + GNULIB_MBSSPN=0; AC_SUBST([GNULIB_MBSSPN])
19630 + GNULIB_MBSSEP=0; AC_SUBST([GNULIB_MBSSEP])
19631 + GNULIB_MBSTOK_R=0; AC_SUBST([GNULIB_MBSTOK_R])
19632 + GNULIB_STRERROR=0; AC_SUBST([GNULIB_STRERROR])
19633 + GNULIB_STRSIGNAL=0; AC_SUBST([GNULIB_STRSIGNAL])
19634 + GNULIB_STRVERSCMP=0; AC_SUBST([GNULIB_STRVERSCMP])
19635 + dnl Assume proper GNU behavior unless another module says otherwise.
19636 + HAVE_DECL_MEMMEM=1; AC_SUBST([HAVE_DECL_MEMMEM])
19637 + HAVE_MEMPCPY=1; AC_SUBST([HAVE_MEMPCPY])
19638 + HAVE_DECL_MEMRCHR=1; AC_SUBST([HAVE_DECL_MEMRCHR])
19639 + HAVE_RAWMEMCHR=1; AC_SUBST([HAVE_RAWMEMCHR])
19640 + HAVE_STPCPY=1; AC_SUBST([HAVE_STPCPY])
19641 + HAVE_STPNCPY=1; AC_SUBST([HAVE_STPNCPY])
19642 + HAVE_STRCHRNUL=1; AC_SUBST([HAVE_STRCHRNUL])
19643 + HAVE_DECL_STRDUP=1; AC_SUBST([HAVE_DECL_STRDUP])
19644 + HAVE_STRNDUP=1; AC_SUBST([HAVE_STRNDUP])
19645 + HAVE_DECL_STRNDUP=1; AC_SUBST([HAVE_DECL_STRNDUP])
19646 + HAVE_DECL_STRNLEN=1; AC_SUBST([HAVE_DECL_STRNLEN])
19647 + HAVE_STRPBRK=1; AC_SUBST([HAVE_STRPBRK])
19648 + HAVE_STRSEP=1; AC_SUBST([HAVE_STRSEP])
19649 + HAVE_STRCASESTR=1; AC_SUBST([HAVE_STRCASESTR])
19650 + HAVE_DECL_STRTOK_R=1; AC_SUBST([HAVE_DECL_STRTOK_R])
19651 + HAVE_DECL_STRERROR=1; AC_SUBST([HAVE_DECL_STRERROR])
19652 + HAVE_DECL_STRSIGNAL=1; AC_SUBST([HAVE_DECL_STRSIGNAL])
19653 + HAVE_STRVERSCMP=1; AC_SUBST([HAVE_STRVERSCMP])
19654 + REPLACE_MEMMEM=0; AC_SUBST([REPLACE_MEMMEM])
19655 + REPLACE_STRDUP=0; AC_SUBST([REPLACE_STRDUP])
19656 + REPLACE_STRSTR=0; AC_SUBST([REPLACE_STRSTR])
19657 + REPLACE_STRCASESTR=0; AC_SUBST([REPLACE_STRCASESTR])
19658 + REPLACE_STRERROR=0; AC_SUBST([REPLACE_STRERROR])
19659 + REPLACE_STRSIGNAL=0; AC_SUBST([REPLACE_STRSIGNAL])
19660 +])
19661
19662 Added: trunk/baselayout-prefix/gnulib/glm4/strndup.m4
19663 ===================================================================
19664 --- trunk/baselayout-prefix/gnulib/glm4/strndup.m4 (rev 0)
19665 +++ trunk/baselayout-prefix/gnulib/glm4/strndup.m4 2011-03-31 16:43:45 UTC (rev 1693)
19666 @@ -0,0 +1,53 @@
19667 +# strndup.m4 serial 16
19668 +dnl Copyright (C) 2002-2003, 2005-2009 Free Software Foundation, Inc.
19669 +dnl This file is free software; the Free Software Foundation
19670 +dnl gives unlimited permission to copy and/or distribute it,
19671 +dnl with or without modifications, as long as this notice is preserved.
19672 +
19673 +AC_DEFUN([gl_FUNC_STRNDUP],
19674 +[
19675 + dnl Persuade glibc <string.h> to declare strndup().
19676 + AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
19677 +
19678 + AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS])
19679 + AC_CHECK_DECLS_ONCE([strndup])
19680 + if test $ac_cv_have_decl_strndup = no; then
19681 + HAVE_DECL_STRNDUP=0
19682 + fi
19683 +
19684 + # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
19685 + AC_CACHE_CHECK([for working strndup], [gl_cv_func_strndup],
19686 + [AC_RUN_IFELSE([
19687 + AC_LANG_PROGRAM([[#include <string.h>
19688 + #include <stdlib.h>]], [[
19689 +#ifndef HAVE_DECL_STRNDUP
19690 + extern char *strndup (const char *, size_t);
19691 +#endif
19692 + char *s;
19693 + s = strndup ("some longer string", 15);
19694 + free (s);
19695 + s = strndup ("shorter string", 13);
19696 + return s[13] != '\0';]])],
19697 + [gl_cv_func_strndup=yes],
19698 + [gl_cv_func_strndup=no],
19699 + [AC_CHECK_FUNC([strndup],
19700 + [AC_EGREP_CPP([too risky], [
19701 +#ifdef _AIX
19702 + too risky
19703 +#endif
19704 + ],
19705 + [gl_cv_func_strndup=no],
19706 + [gl_cv_func_strndup=yes])],
19707 + [gl_cv_func_strndup=no])])])
19708 + if test $gl_cv_func_strndup = yes; then
19709 + AC_DEFINE([HAVE_STRNDUP], [1],
19710 + [Define if you have the strndup() function and it works.])
19711 + else
19712 + HAVE_STRNDUP=0
19713 + AC_LIBOBJ([strndup])
19714 + gl_PREREQ_STRNDUP
19715 + fi
19716 +])
19717 +
19718 +# Prerequisites of lib/strndup.c.
19719 +AC_DEFUN([gl_PREREQ_STRNDUP], [:])
19720
19721 Added: trunk/baselayout-prefix/gnulib/glm4/strnlen.m4
19722 ===================================================================
19723 --- trunk/baselayout-prefix/gnulib/glm4/strnlen.m4 (rev 0)
19724 +++ trunk/baselayout-prefix/gnulib/glm4/strnlen.m4 2011-03-31 16:43:45 UTC (rev 1693)
19725 @@ -0,0 +1,31 @@
19726 +# strnlen.m4 serial 10
19727 +dnl Copyright (C) 2002-2003, 2005-2007, 2009 Free Software Foundation, Inc.
19728 +dnl This file is free software; the Free Software Foundation
19729 +dnl gives unlimited permission to copy and/or distribute it,
19730 +dnl with or without modifications, as long as this notice is preserved.
19731 +
19732 +AC_DEFUN([gl_FUNC_STRNLEN],
19733 +[
19734 + dnl Persuade glibc <string.h> to declare strnlen().
19735 + AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
19736 +
19737 + AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS])
19738 + AC_CHECK_DECLS_ONCE([strnlen])
19739 + if test $ac_cv_have_decl_strnlen = no; then
19740 + HAVE_DECL_STRNLEN=0
19741 + fi
19742 +
19743 + AC_FUNC_STRNLEN
19744 + if test $ac_cv_func_strnlen_working = no; then
19745 + # This is necessary because automake-1.6.1 doesn't understand
19746 + # that the above use of AC_FUNC_STRNLEN means we may have to use
19747 + # lib/strnlen.c.
19748 + #AC_LIBOBJ([strnlen])
19749 + AC_DEFINE([strnlen], [rpl_strnlen],
19750 + [Define to rpl_strnlen if the replacement function should be used.])
19751 + gl_PREREQ_STRNLEN
19752 + fi
19753 +])
19754 +
19755 +# Prerequisites of lib/strnlen.c.
19756 +AC_DEFUN([gl_PREREQ_STRNLEN], [:])
19757
19758 Added: trunk/baselayout-prefix/gnulib/glm4/strsep.m4
19759 ===================================================================
19760 --- trunk/baselayout-prefix/gnulib/glm4/strsep.m4 (rev 0)
19761 +++ trunk/baselayout-prefix/gnulib/glm4/strsep.m4 2011-03-31 16:43:45 UTC (rev 1693)
19762 @@ -0,0 +1,24 @@
19763 +# strsep.m4 serial 9
19764 +dnl Copyright (C) 2002, 2003, 2004, 2007, 2009 Free Software Foundation, Inc.
19765 +dnl This file is free software; the Free Software Foundation
19766 +dnl gives unlimited permission to copy and/or distribute it,
19767 +dnl with or without modifications, as long as this notice is preserved.
19768 +
19769 +AC_DEFUN([gl_FUNC_STRSEP],
19770 +[
19771 + dnl Persuade glibc <string.h> to declare strsep().
19772 + AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
19773 +
19774 + dnl The strsep() declaration in lib/string.in.h uses 'restrict'.
19775 + AC_REQUIRE([AC_C_RESTRICT])
19776 +
19777 + AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS])
19778 + AC_REPLACE_FUNCS([strsep])
19779 + if test $ac_cv_func_strsep = no; then
19780 + HAVE_STRSEP=0
19781 + gl_PREREQ_STRSEP
19782 + fi
19783 +])
19784 +
19785 +# Prerequisites of lib/strsep.c.
19786 +AC_DEFUN([gl_PREREQ_STRSEP], [:])
19787
19788 Added: trunk/baselayout-prefix/gnulib/glm4/unistd_h.m4
19789 ===================================================================
19790 --- trunk/baselayout-prefix/gnulib/glm4/unistd_h.m4 (rev 0)
19791 +++ trunk/baselayout-prefix/gnulib/glm4/unistd_h.m4 2011-03-31 16:43:45 UTC (rev 1693)
19792 @@ -0,0 +1,83 @@
19793 +# unistd_h.m4 serial 17
19794 +dnl Copyright (C) 2006-2009 Free Software Foundation, Inc.
19795 +dnl This file is free software; the Free Software Foundation
19796 +dnl gives unlimited permission to copy and/or distribute it,
19797 +dnl with or without modifications, as long as this notice is preserved.
19798 +
19799 +dnl Written by Simon Josefsson, Bruno Haible.
19800 +
19801 +AC_DEFUN([gl_UNISTD_H],
19802 +[
19803 + dnl Use AC_REQUIRE here, so that the default behavior below is expanded
19804 + dnl once only, before all statements that occur in other macros.
19805 + AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
19806 +
19807 + gl_CHECK_NEXT_HEADERS([unistd.h])
19808 +
19809 + AC_CHECK_HEADERS_ONCE([unistd.h])
19810 + if test $ac_cv_header_unistd_h = yes; then
19811 + HAVE_UNISTD_H=1
19812 + else
19813 + HAVE_UNISTD_H=0
19814 + fi
19815 + AC_SUBST([HAVE_UNISTD_H])
19816 +])
19817 +
19818 +AC_DEFUN([gl_UNISTD_MODULE_INDICATOR],
19819 +[
19820 + dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
19821 + AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
19822 + GNULIB_[]m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./-],[ABCDEFGHIJKLMNOPQRSTUVWXYZ___])=1
19823 +])
19824 +
19825 +AC_DEFUN([gl_UNISTD_H_DEFAULTS],
19826 +[
19827 + GNULIB_CHOWN=0; AC_SUBST([GNULIB_CHOWN])
19828 + GNULIB_CLOSE=0; AC_SUBST([GNULIB_CLOSE])
19829 + GNULIB_DUP2=0; AC_SUBST([GNULIB_DUP2])
19830 + GNULIB_ENVIRON=0; AC_SUBST([GNULIB_ENVIRON])
19831 + GNULIB_EUIDACCESS=0; AC_SUBST([GNULIB_EUIDACCESS])
19832 + GNULIB_FCHDIR=0; AC_SUBST([GNULIB_FCHDIR])
19833 + GNULIB_FSYNC=0; AC_SUBST([GNULIB_FSYNC])
19834 + GNULIB_FTRUNCATE=0; AC_SUBST([GNULIB_FTRUNCATE])
19835 + GNULIB_GETCWD=0; AC_SUBST([GNULIB_GETCWD])
19836 + GNULIB_GETDOMAINNAME=0; AC_SUBST([GNULIB_GETDOMAINNAME])
19837 + GNULIB_GETDTABLESIZE=0; AC_SUBST([GNULIB_GETDTABLESIZE])
19838 + GNULIB_GETHOSTNAME=0; AC_SUBST([GNULIB_GETHOSTNAME])
19839 + GNULIB_GETLOGIN_R=0; AC_SUBST([GNULIB_GETLOGIN_R])
19840 + GNULIB_GETPAGESIZE=0; AC_SUBST([GNULIB_GETPAGESIZE])
19841 + GNULIB_GETUSERSHELL=0; AC_SUBST([GNULIB_GETUSERSHELL])
19842 + GNULIB_LCHOWN=0; AC_SUBST([GNULIB_LCHOWN])
19843 + GNULIB_LINK=0; AC_SUBST([GNULIB_LINK])
19844 + GNULIB_LSEEK=0; AC_SUBST([GNULIB_LSEEK])
19845 + GNULIB_READLINK=0; AC_SUBST([GNULIB_READLINK])
19846 + GNULIB_SLEEP=0; AC_SUBST([GNULIB_SLEEP])
19847 + GNULIB_UNISTD_H_SIGPIPE=0; AC_SUBST([GNULIB_UNISTD_H_SIGPIPE])
19848 + GNULIB_WRITE=0; AC_SUBST([GNULIB_WRITE])
19849 + dnl Assume proper GNU behavior unless another module says otherwise.
19850 + HAVE_DUP2=1; AC_SUBST([HAVE_DUP2])
19851 + HAVE_EUIDACCESS=1; AC_SUBST([HAVE_EUIDACCESS])
19852 + HAVE_FSYNC=1; AC_SUBST([HAVE_FSYNC])
19853 + HAVE_FTRUNCATE=1; AC_SUBST([HAVE_FTRUNCATE])
19854 + HAVE_GETDOMAINNAME=1; AC_SUBST([HAVE_GETDOMAINNAME])
19855 + HAVE_GETDTABLESIZE=1; AC_SUBST([HAVE_GETDTABLESIZE])
19856 + HAVE_GETHOSTNAME=1; AC_SUBST([HAVE_GETHOSTNAME])
19857 + HAVE_GETPAGESIZE=1; AC_SUBST([HAVE_GETPAGESIZE])
19858 + HAVE_GETUSERSHELL=1; AC_SUBST([HAVE_GETUSERSHELL])
19859 + HAVE_LINK=1; AC_SUBST([HAVE_LINK])
19860 + HAVE_READLINK=1; AC_SUBST([HAVE_READLINK])
19861 + HAVE_SLEEP=1; AC_SUBST([HAVE_SLEEP])
19862 + HAVE_DECL_ENVIRON=1; AC_SUBST([HAVE_DECL_ENVIRON])
19863 + HAVE_DECL_GETLOGIN_R=1; AC_SUBST([HAVE_DECL_GETLOGIN_R])
19864 + HAVE_OS_H=0; AC_SUBST([HAVE_OS_H])
19865 + HAVE_SYS_PARAM_H=0; AC_SUBST([HAVE_SYS_PARAM_H])
19866 + REPLACE_CHOWN=0; AC_SUBST([REPLACE_CHOWN])
19867 + REPLACE_CLOSE=0; AC_SUBST([REPLACE_CLOSE])
19868 + REPLACE_FCHDIR=0; AC_SUBST([REPLACE_FCHDIR])
19869 + REPLACE_GETCWD=0; AC_SUBST([REPLACE_GETCWD])
19870 + REPLACE_GETPAGESIZE=0; AC_SUBST([REPLACE_GETPAGESIZE])
19871 + REPLACE_LCHOWN=0; AC_SUBST([REPLACE_LCHOWN])
19872 + REPLACE_LSEEK=0; AC_SUBST([REPLACE_LSEEK])
19873 + REPLACE_WRITE=0; AC_SUBST([REPLACE_WRITE])
19874 + UNISTD_H_HAVE_WINSOCK2_H=0; AC_SUBST([UNISTD_H_HAVE_WINSOCK2_H])
19875 +])