Codebase list pnm2ppa / cc8c38b
Imported Upstream version 1.13 Didier Raboud 12 years ago
33 changed file(s) with 14610 addition(s) and 347 deletion(s). Raw diff Collapse all Expand all
233233 (They will still go to stderr in "verbose" mode).
234234 20021109 duncan make "version 0" in the config file set the printer
235235 type to NOPRINTER, and abort printing if this is not
236 subsequently set to a valid printer model.
236 subsequently set to a valid printer model.
237 20091210 jrbeis fix getopt_long() usage for PowerPC
238 Change the local file syslog.h to ppa_syslog.h to avoid
239 any interference with the global syslog.h.
240 20091212 jrbeis Autotoolize the package, but do not change other code
+0
-194
Makefile less more
0 #
1 # Makefile for pnm2ppa
2 #
3
4 # paths to locations where the pnm2ppa binary, the configuration file,
5 # and the man page should be installed. On some systems (like Solaris)
6 # the install command requires the syntax BINDIR="-f /usr/local/bin".
7 BINDIR="/usr/local/bin"
8 CONFDIR="/etc"
9 MANDIR="/usr/local/man/man1"
10
11 #compiler and linker options:
12 CC=gcc
13 CFLAGS=-Wall -pedantic -O2
14 LDFLAGS=-lm
15
16 INSTALL=install
17 # Install under Linux and other versions with the -b (backup) option
18 # (Comment out next line on systems (*BSD, Solaris..) without this option)
19 INSTALL+= -b
20
21 OBJS = pnm2ppa.o syslog.o ppa.o image.o dither.o cutswath.o hash_ink.o gamma.o
22 SRC = pnm2ppa.c syslog.c ppa.c image.c dither.c cutswath.c hash_ink.c gamma.c
23
24 # The SysLog call may be absent or incompatible on some systems
25 # (e.g., BeOS,..) or you may not wish to have this feature.
26 # To remove support for writing to the System Log, uncomment the next line:
27 #CFLAGS+= -D__NO_SYSLOG__
28
29 # Some systems (e.g. Solaris) may not support the LOG_PERROR option to
30 # open_syslog(). (This copies syslog messages to stderr as well as to
31 # the system log.) In that case, uncomment the next line:
32 #CFLAGS+= -D__NO_LOG_PERROR__
33
34 # For debug builds, uncomment the next three lines to get debug messages:
35 #CFLAGS+= -g -DDEBUG=1
36 #OBJS+= debug.o
37 #SRC+= debug.c
38
39 # For debugging with "Electric Fence" (if you have it):
40 #LDFLAGS+=-lefence
41
42 # On BeOS the LDFLAGS should not be used.
43 # Uncomment the next line if you are compiling for BeOS:
44 #LDFLAGS=
45
46 # On Mac OS X 10.x, you need to uncomment the next CFLAGS and LDFLAGS lines.
47 # You may also need to install libgnugetopt (there are precompiled
48 # versions for Mac OS X available on the net, or it can be compiled
49 # from source). Don't forget to rename the shared library from
50 # "/usr/local/lib/libgnugetopt.a" to "/usr/local/lib/libgnugetopt.dylib".
51 #CFLAGS=-Wall -no-cpp-precomp -traditional-cpp -pedantic -O2
52 #LDFLAGS=-L/usr/local/lib -lgnugetopt
53
54 # If you have FreeBSD you need to uncomment the next LDFLAGS.
55 # You may also need to install libgnugetopt from the ports collection.
56 # (Also, make sure the getopt.h it supplies is appropriately installed.)
57 #LDFLAGS+=-L/usr/local/lib -lgnugetopt
58
59 # If you have Solaris you need to uncomment the next LDFLAG
60 # You will also need to install a library with GNU getopt:
61 # (e.g., libiberty which is available from http://sunfreeware.com)
62 #LDFLAGS+=-L/usr/local/lib -liberty
63
64 # Language selection for messages from pnm2ppa. Choose one only.
65 LANG=EN
66 #LANG=CZ
67 #LANG=ES
68 #LANG=FR
69 #LANG=IT
70 #LANG=NL
71
72 #------------------------------------------------------------------
73 # Normal Users!
74 #
75 # Do not edit below this line! No user servicable parts below!
76 #--------------------------------------------------------------------
77 INSTALLD=$(INSTALL) -d
78 CFLAGS+=-DLANG_$(LANG)
79
80 default: all
81
82 profile:
83 make "CFLAGS=-Wall -pedantic -O2 -g -pg -DNDEBUG"
84
85 debug:
86 make "CFLAGS=-Wall -pedantic -g -O2 -DDEBUG=1 -DLANG_EN" "LDFLAGS=-lm -lefence" "OBJS=$(DOBJS)"
87
88 # the following have been left in for those with good memories
89
90 720: all
91 @@echo After running make install, edit /etc/pnm2ppa.conf and set your printer
92
93 820: all
94 @@echo After running make install, edit /etc/pnm2ppa.conf and set your printer
95
96 1000: all
97 @@echo After running make install, edit /etc/pnm2ppa.conf and set your printer
98
99 all: pnm2ppa calibrate_ppa
100
101 clean:
102 rm -f *.o *~ calibrate_ppa pnm2ppa make_hash_ink gmon.out hash_ink.c
103
104
105 install: pnm2ppa calibrate_ppa
106 $(INSTALLD) $(BINDIR)
107 $(INSTALLD) $(CONFDIR)
108 $(INSTALLD) $(MANDIR)
109 $(INSTALL) -m 755 pnm2ppa $(BINDIR)
110 $(INSTALL) -m 644 docs/en/pnm2ppa.1 $(MANDIR)
111 # development only - allows root to edit
112 $(INSTALL) -m 644 pnm2ppa.conf $(CONFDIR)
113 # calibration tool
114 $(INSTALL) -m 755 calibrate_ppa $(BINDIR)
115 # final production - much tighter
116 # $(INSTALL) -m 444 pnm2ppa.conf $(CONFDIR)
117 @@echo
118 @@echo Now, edit /etc/pnm2ppa.conf to choose your printer
119
120 uninstall:
121 rm -f $(BINDIR)/pnm2ppa
122 rm -f $(BINDIR)/calibrate_ppa
123 rm -f $(MANDIR)/pnm2ppa.1
124 rm -f $(CONFDIR)/pnm2ppa.conf
125
126 pnm2ppa: $(OBJS)
127 $(CC) $(LDFLAGS) $(CFLAGS) -o pnm2ppa $(OBJS)
128
129 calibrate_ppa: calibrate_ppa.o pnmtools.o gamma.o
130 $(CC) $(LDFLAGS) $(CFLAGS) -o calibrate_ppa calibrate_ppa.o pnmtools.o gamma.o
131
132 calibrate_ppa.o: calibrate_ppa.c global.h image.h defaults.h pnmtools.h
133 $(CC) $(CFLAGS) -c calibrate_ppa.c
134
135 pnmtools.o: pnmtools.c pnmtools.h
136 $(CC) $(CFLAGS) -c pnmtools.c
137
138 cutswath.o: cutswath.c debug.h ppa.h image.h global.h syslog.h
139 $(CC) $(CFLAGS) -c cutswath.c
140
141 image.o: image.c image.h palette.h debug.h fscoeff.h global.h gamma.h syslog.h
142 $(CC) $(CFLAGS) -c image.c
143
144 gamma.o: gamma.c image.h global.h gamma.h
145 $(CC) $(CFLAGS) -c gamma.c
146
147 dither.o: dither.c dither.h image.h palette.h debug.h fscoeff.h global.h hash_ink.h
148 $(CC) $(CFLAGS) -c dither.c
149
150 pnm2ppa.o: pnm2ppa.c pnm2ppa.h image.h ppa.h debug.h global.h gamma.h syslog.h
151 $(CC) $(CFLAGS) -c pnm2ppa.c
152
153 ppa.o: ppa.c ppa.h debug.h global.h syslog.h
154 $(CC) $(CFLAGS) -c ppa.c
155
156 debug.o: debug.c debug.h global.h
157 $(CC) $(CFLAGS) -c debug.c
158
159 syslog.o: syslog.c syslog.h global.h
160 $(CC) $(CFLAGS) -c syslog.c
161
162 make_hash_ink: make_hash_ink.c palette.h hash_ink.h
163 $(CC) $(CFLAGS) -o make_hash_ink make_hash_ink.c
164
165 hash_ink.c: make_hash_ink
166 ./make_hash_ink 4 3 > hash_ink.c
167 ./make_hash_ink 1 5 >> hash_ink.c
168
169 hash_ink.o: hash_ink.c hash_ink.c
170 $(CC) $(CFLAGS) -c hash_ink.c
171
172 # a default rule, in case new .c files pop in
173
174 .c.o: $*.c ppa.h image.h enh-curve.h palette.h debug.h global.h
175 $(CC) $(CFLAGS) -c $*.c
176
177 distrib: clean
178 cd .. && tar cf - pnm2ppa/ | gzip -9 > pnm2ppa.tar.gz
179 sync
180
181
182
183
184
185
186
187
188
189
190
191
192
193
0 #
1 # What is to be built
2 #
3 bin_PROGRAMS = \
4 pnm2ppa \
5 calibrate_ppa
6
7 # build the parse_vlink tool on demand only
8 if BUILD_PARSE_VLINK
9 SUBDIRS = ppa_protocol
10 endif
11
12 #
13 # Where to find the config files at runtime
14 #
15 AM_CPPFLAGS = -DSYSCONFDIR='"$(sysconfdir)"'
16
17 #
18 # Distribute these directories and files
19 #
20 EXTRA_DIST = \
21 Changelog \
22 README \
23 README.security \
24 pdq \
25 lpd \
26 sample_scripts \
27 stamp-h1 \
28 test.ps \
29 testpage-a4.ps \
30 testpage.ps \
31 testpages \
32 utils \
33 rhs-printfilters \
34 rpm \
35 docs \
36 make_hash_ink.c
37
38 #
39 # distribute and install the manpage
40 #
41 dist_man1_MANS = docs/en/pnm2ppa.1
42
43 MAINTAINERCLEANFILES = \
44 configure \
45 aclocal.m4 \
46 config.h.in \
47 Makefile.in
48
49 #
50 # distribute, but do not install
51 #
52 noinst_HEADERS = \
53 global.h \
54 image.h \
55 defaults.h \
56 pnmtools.h \
57 debug.h \
58 ppa.h \
59 ppa_syslog.h \
60 palette.h \
61 fscoeff.h \
62 lang.h \
63 text-cz.h \
64 text-en.h \
65 text-es.h \
66 text-fr.h \
67 text-it.h \
68 text-nl.h \
69 gamma.h \
70 dither.h \
71 hash_ink.h \
72 pnm2ppa.h \
73 enh-curve.h
74
75 #
76 # Other things to install
77 #
78 dist_sysconf_DATA = \
79 pnm2ppa.conf
80
81 #
82 # main filter program
83 #
84 pnm2ppa_SOURCES = \
85 pnm2ppa.c \
86 syslog.c \
87 ppa.c \
88 image.c \
89 dither.c \
90 cutswath.c \
91 gamma.c
92
93 # part of pnm2ppa, but generated at build time
94 nodist_pnm2ppa_SOURCES = \
95 hash_ink.c
96
97 # part of pnm2ppa, but only if DEBUG is enabled
98 if PNM2PPA_DEBUG
99 pnm2ppa_SOURCES += debug.c
100 endif
101
102 #
103 # calibration tool
104 #
105 calibrate_ppa_SOURCES = \
106 calibrate_ppa.c \
107 pnmtools.c \
108 gamma.c
109
110 # create this file 'on the fly'
111 hash_ink.c: make_hash_ink
112 ./make_hash_ink 4 3 > hash_ink.c
113 ./make_hash_ink 1 5 >> hash_ink.c
114
115 CLEANFILES = hash_ink.c make_hash_ink
116
117 # ------------------- cross compile relevant stuff ---------------------------
118
119 #
120 # We need to create a tool to generate the hash table.
121 # This tool creates the 'hash_ink.c' source file (and must
122 # run on the build host in case of cross compiling)
123 #
124 CC_FOR_BUILD = @CC_FOR_BUILD@
125 CFLAGS_FOR_BUILD = -O2
126 CPPFLAGS_FOR_BUILD = -I$(top_srcdir)
127 LDFLAGS_FOR_BUILD =
128 LDLIBS_FOR_BUILD =
129
130 make_hash_ink: make_hash_ink.c
131 $(CC_FOR_BUILD) $(CPPFLAGS_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@ $< $(LDLIBS_FOR_BUILD)
0 # Makefile.in generated by automake 1.10 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16
17
18 VPATH = @srcdir@
19 pkgdatadir = $(datadir)/@PACKAGE@
20 pkglibdir = $(libdir)/@PACKAGE@
21 pkgincludedir = $(includedir)/@PACKAGE@
22 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
23 install_sh_DATA = $(install_sh) -c -m 644
24 install_sh_PROGRAM = $(install_sh) -c
25 install_sh_SCRIPT = $(install_sh) -c
26 INSTALL_HEADER = $(INSTALL_DATA)
27 transform = $(program_transform_name)
28 NORMAL_INSTALL = :
29 PRE_INSTALL = :
30 POST_INSTALL = :
31 NORMAL_UNINSTALL = :
32 PRE_UNINSTALL = :
33 POST_UNINSTALL = :
34 build_triplet = @build@
35 host_triplet = @host@
36 bin_PROGRAMS = pnm2ppa$(EXEEXT) calibrate_ppa$(EXEEXT)
37
38 # part of pnm2ppa, but only if DEBUG is enabled
39 @PNM2PPA_DEBUG_TRUE@am__append_1 = debug.c
40 subdir = .
41 DIST_COMMON = README $(am__configure_deps) $(dist_man1_MANS) \
42 $(dist_sysconf_DATA) $(noinst_HEADERS) $(srcdir)/Makefile.am \
43 $(srcdir)/Makefile.in $(srcdir)/config.h.in \
44 $(top_srcdir)/configure INSTALL config.guess config.sub \
45 depcomp install-sh missing
46 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
47 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
48 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
49 $(ACLOCAL_M4)
50 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
51 configure.lineno config.status.lineno
52 mkinstalldirs = $(install_sh) -d
53 CONFIG_HEADER = config.h
54 CONFIG_CLEAN_FILES =
55 am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)" \
56 "$(DESTDIR)$(sysconfdir)"
57 binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
58 PROGRAMS = $(bin_PROGRAMS)
59 am_calibrate_ppa_OBJECTS = calibrate_ppa.$(OBJEXT) pnmtools.$(OBJEXT) \
60 gamma.$(OBJEXT)
61 calibrate_ppa_OBJECTS = $(am_calibrate_ppa_OBJECTS)
62 calibrate_ppa_LDADD = $(LDADD)
63 am__pnm2ppa_SOURCES_DIST = pnm2ppa.c syslog.c ppa.c image.c dither.c \
64 cutswath.c gamma.c debug.c
65 @PNM2PPA_DEBUG_TRUE@am__objects_1 = debug.$(OBJEXT)
66 am_pnm2ppa_OBJECTS = pnm2ppa.$(OBJEXT) syslog.$(OBJEXT) ppa.$(OBJEXT) \
67 image.$(OBJEXT) dither.$(OBJEXT) cutswath.$(OBJEXT) \
68 gamma.$(OBJEXT) $(am__objects_1)
69 nodist_pnm2ppa_OBJECTS = hash_ink.$(OBJEXT)
70 pnm2ppa_OBJECTS = $(am_pnm2ppa_OBJECTS) $(nodist_pnm2ppa_OBJECTS)
71 pnm2ppa_LDADD = $(LDADD)
72 DEFAULT_INCLUDES = -I.@am__isrc@
73 depcomp = $(SHELL) $(top_srcdir)/depcomp
74 am__depfiles_maybe = depfiles
75 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
76 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
77 CCLD = $(CC)
78 LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
79 SOURCES = $(calibrate_ppa_SOURCES) $(pnm2ppa_SOURCES) \
80 $(nodist_pnm2ppa_SOURCES)
81 DIST_SOURCES = $(calibrate_ppa_SOURCES) $(am__pnm2ppa_SOURCES_DIST)
82 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
83 html-recursive info-recursive install-data-recursive \
84 install-dvi-recursive install-exec-recursive \
85 install-html-recursive install-info-recursive \
86 install-pdf-recursive install-ps-recursive install-recursive \
87 installcheck-recursive installdirs-recursive pdf-recursive \
88 ps-recursive uninstall-recursive
89 man1dir = $(mandir)/man1
90 NROFF = nroff
91 MANS = $(dist_man1_MANS)
92 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
93 am__vpath_adj = case $$p in \
94 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
95 *) f=$$p;; \
96 esac;
97 am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
98 dist_sysconfDATA_INSTALL = $(INSTALL_DATA)
99 DATA = $(dist_sysconf_DATA)
100 HEADERS = $(noinst_HEADERS)
101 RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
102 distclean-recursive maintainer-clean-recursive
103 ETAGS = etags
104 CTAGS = ctags
105 DIST_SUBDIRS = ppa_protocol
106 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
107 distdir = $(PACKAGE)-$(VERSION)
108 top_distdir = $(distdir)
109 am__remove_distdir = \
110 { test ! -d $(distdir) \
111 || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
112 && rm -fr $(distdir); }; }
113 DIST_ARCHIVES = $(distdir).tar.gz $(distdir).tar.bz2
114 GZIP_ENV = --best
115 distuninstallcheck_listfiles = find . -type f -print
116 distcleancheck_listfiles = find . -type f -print
117 ACLOCAL = @ACLOCAL@
118 AMTAR = @AMTAR@
119 AUTOCONF = @AUTOCONF@
120 AUTOHEADER = @AUTOHEADER@
121 AUTOMAKE = @AUTOMAKE@
122 AWK = @AWK@
123 CC = @CC@
124 CCDEPMODE = @CCDEPMODE@
125
126 # ------------------- cross compile relevant stuff ---------------------------
127
128 #
129 # We need to create a tool to generate the hash table.
130 # This tool creates the 'hash_ink.c' source file (and must
131 # run on the build host in case of cross compiling)
132 #
133 CC_FOR_BUILD = @CC_FOR_BUILD@
134 CFLAGS = @CFLAGS@
135 CPP = @CPP@
136 CPPFLAGS = @CPPFLAGS@
137 CYGPATH_W = @CYGPATH_W@
138 DEFS = @DEFS@
139 DEPDIR = @DEPDIR@
140 ECHO_C = @ECHO_C@
141 ECHO_N = @ECHO_N@
142 ECHO_T = @ECHO_T@
143 EGREP = @EGREP@
144 EXEEXT = @EXEEXT@
145 GREP = @GREP@
146 INSTALL = @INSTALL@
147 INSTALL_DATA = @INSTALL_DATA@
148 INSTALL_PROGRAM = @INSTALL_PROGRAM@
149 INSTALL_SCRIPT = @INSTALL_SCRIPT@
150 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
151 LDFLAGS = @LDFLAGS@
152 LIBOBJS = @LIBOBJS@
153 LIBS = @LIBS@
154 LTLIBOBJS = @LTLIBOBJS@
155 MAINT = @MAINT@
156 MAKEINFO = @MAKEINFO@
157 MKDIR_P = @MKDIR_P@
158 OBJEXT = @OBJEXT@
159 PACKAGE = @PACKAGE@
160 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
161 PACKAGE_NAME = @PACKAGE_NAME@
162 PACKAGE_STRING = @PACKAGE_STRING@
163 PACKAGE_TARNAME = @PACKAGE_TARNAME@
164 PACKAGE_VERSION = @PACKAGE_VERSION@
165 PATH_SEPARATOR = @PATH_SEPARATOR@
166 SET_MAKE = @SET_MAKE@
167 SHELL = @SHELL@
168 STRIP = @STRIP@
169 VERSION = @VERSION@
170 abs_builddir = @abs_builddir@
171 abs_srcdir = @abs_srcdir@
172 abs_top_builddir = @abs_top_builddir@
173 abs_top_srcdir = @abs_top_srcdir@
174 ac_ct_CC = @ac_ct_CC@
175 am__include = @am__include@
176 am__leading_dot = @am__leading_dot@
177 am__quote = @am__quote@
178 am__tar = @am__tar@
179 am__untar = @am__untar@
180 bindir = @bindir@
181 build = @build@
182 build_alias = @build_alias@
183 build_cpu = @build_cpu@
184 build_os = @build_os@
185 build_vendor = @build_vendor@
186 builddir = @builddir@
187 datadir = @datadir@
188 datarootdir = @datarootdir@
189 docdir = @docdir@
190 dvidir = @dvidir@
191 exec_prefix = @exec_prefix@
192 host = @host@
193 host_alias = @host_alias@
194 host_cpu = @host_cpu@
195 host_os = @host_os@
196 host_vendor = @host_vendor@
197 htmldir = @htmldir@
198 includedir = @includedir@
199 infodir = @infodir@
200 install_sh = @install_sh@
201 libdir = @libdir@
202 libexecdir = @libexecdir@
203 localedir = @localedir@
204 localstatedir = @localstatedir@
205 mandir = @mandir@
206 mkdir_p = @mkdir_p@
207 oldincludedir = @oldincludedir@
208 pdfdir = @pdfdir@
209 prefix = @prefix@
210 program_transform_name = @program_transform_name@
211 psdir = @psdir@
212 sbindir = @sbindir@
213 sharedstatedir = @sharedstatedir@
214 srcdir = @srcdir@
215 sysconfdir = @sysconfdir@
216 target_alias = @target_alias@
217 top_build_prefix = @top_build_prefix@
218 top_builddir = @top_builddir@
219 top_srcdir = @top_srcdir@
220
221 # build the parse_vlink tool on demand only
222 @BUILD_PARSE_VLINK_TRUE@SUBDIRS = ppa_protocol
223
224 #
225 # Where to find the config files at runtime
226 #
227 AM_CPPFLAGS = -DSYSCONFDIR='"$(sysconfdir)"'
228
229 #
230 # Distribute these directories and files
231 #
232 EXTRA_DIST = \
233 Changelog \
234 README \
235 README.security \
236 pdq \
237 lpd \
238 sample_scripts \
239 stamp-h1 \
240 test.ps \
241 testpage-a4.ps \
242 testpage.ps \
243 testpages \
244 utils \
245 rhs-printfilters \
246 rpm \
247 docs \
248 make_hash_ink.c
249
250
251 #
252 # distribute and install the manpage
253 #
254 dist_man1_MANS = docs/en/pnm2ppa.1
255 MAINTAINERCLEANFILES = \
256 configure \
257 aclocal.m4 \
258 config.h.in \
259 Makefile.in
260
261
262 #
263 # distribute, but do not install
264 #
265 noinst_HEADERS = \
266 global.h \
267 image.h \
268 defaults.h \
269 pnmtools.h \
270 debug.h \
271 ppa.h \
272 ppa_syslog.h \
273 palette.h \
274 fscoeff.h \
275 lang.h \
276 text-cz.h \
277 text-en.h \
278 text-es.h \
279 text-fr.h \
280 text-it.h \
281 text-nl.h \
282 gamma.h \
283 dither.h \
284 hash_ink.h \
285 pnm2ppa.h \
286 enh-curve.h
287
288
289 #
290 # Other things to install
291 #
292 dist_sysconf_DATA = \
293 pnm2ppa.conf
294
295
296 #
297 # main filter program
298 #
299 pnm2ppa_SOURCES = pnm2ppa.c syslog.c ppa.c image.c dither.c cutswath.c \
300 gamma.c $(am__append_1)
301
302 # part of pnm2ppa, but generated at build time
303 nodist_pnm2ppa_SOURCES = \
304 hash_ink.c
305
306
307 #
308 # calibration tool
309 #
310 calibrate_ppa_SOURCES = \
311 calibrate_ppa.c \
312 pnmtools.c \
313 gamma.c
314
315 CLEANFILES = hash_ink.c make_hash_ink
316 CFLAGS_FOR_BUILD = -O2
317 CPPFLAGS_FOR_BUILD = -I$(top_srcdir)
318 LDFLAGS_FOR_BUILD =
319 LDLIBS_FOR_BUILD =
320 all: config.h
321 $(MAKE) $(AM_MAKEFLAGS) all-recursive
322
323 .SUFFIXES:
324 .SUFFIXES: .c .o .obj
325 am--refresh:
326 @:
327 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
328 @for dep in $?; do \
329 case '$(am__configure_deps)' in \
330 *$$dep*) \
331 echo ' cd $(srcdir) && $(AUTOMAKE) --foreign '; \
332 cd $(srcdir) && $(AUTOMAKE) --foreign \
333 && exit 0; \
334 exit 1;; \
335 esac; \
336 done; \
337 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
338 cd $(top_srcdir) && \
339 $(AUTOMAKE) --foreign Makefile
340 .PRECIOUS: Makefile
341 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
342 @case '$?' in \
343 *config.status*) \
344 echo ' $(SHELL) ./config.status'; \
345 $(SHELL) ./config.status;; \
346 *) \
347 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
348 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
349 esac;
350
351 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
352 $(SHELL) ./config.status --recheck
353
354 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
355 cd $(srcdir) && $(AUTOCONF)
356 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
357 cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
358
359 config.h: stamp-h1
360 @if test ! -f $@; then \
361 rm -f stamp-h1; \
362 $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \
363 else :; fi
364
365 stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
366 @rm -f stamp-h1
367 cd $(top_builddir) && $(SHELL) ./config.status config.h
368 $(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
369 cd $(top_srcdir) && $(AUTOHEADER)
370 rm -f stamp-h1
371 touch $@
372
373 distclean-hdr:
374 -rm -f config.h stamp-h1
375 install-binPROGRAMS: $(bin_PROGRAMS)
376 @$(NORMAL_INSTALL)
377 test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
378 @list='$(bin_PROGRAMS)'; for p in $$list; do \
379 p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
380 if test -f $$p \
381 ; then \
382 f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
383 echo " $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \
384 $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \
385 else :; fi; \
386 done
387
388 uninstall-binPROGRAMS:
389 @$(NORMAL_UNINSTALL)
390 @list='$(bin_PROGRAMS)'; for p in $$list; do \
391 f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
392 echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \
393 rm -f "$(DESTDIR)$(bindir)/$$f"; \
394 done
395
396 clean-binPROGRAMS:
397 -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
398 calibrate_ppa$(EXEEXT): $(calibrate_ppa_OBJECTS) $(calibrate_ppa_DEPENDENCIES)
399 @rm -f calibrate_ppa$(EXEEXT)
400 $(LINK) $(calibrate_ppa_OBJECTS) $(calibrate_ppa_LDADD) $(LIBS)
401 pnm2ppa$(EXEEXT): $(pnm2ppa_OBJECTS) $(pnm2ppa_DEPENDENCIES)
402 @rm -f pnm2ppa$(EXEEXT)
403 $(LINK) $(pnm2ppa_OBJECTS) $(pnm2ppa_LDADD) $(LIBS)
404
405 mostlyclean-compile:
406 -rm -f *.$(OBJEXT)
407
408 distclean-compile:
409 -rm -f *.tab.c
410
411 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/calibrate_ppa.Po@am__quote@
412 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cutswath.Po@am__quote@
413 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/debug.Po@am__quote@
414 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dither.Po@am__quote@
415 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gamma.Po@am__quote@
416 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hash_ink.Po@am__quote@
417 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/image.Po@am__quote@
418 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pnm2ppa.Po@am__quote@
419 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pnmtools.Po@am__quote@
420 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ppa.Po@am__quote@
421 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/syslog.Po@am__quote@
422
423 .c.o:
424 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
425 @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
426 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
427 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
428 @am__fastdepCC_FALSE@ $(COMPILE) -c $<
429
430 .c.obj:
431 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
432 @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
433 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
434 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
435 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
436 install-man1: $(man1_MANS) $(man_MANS)
437 @$(NORMAL_INSTALL)
438 test -z "$(man1dir)" || $(MKDIR_P) "$(DESTDIR)$(man1dir)"
439 @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \
440 l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
441 for i in $$l2; do \
442 case "$$i" in \
443 *.1*) list="$$list $$i" ;; \
444 esac; \
445 done; \
446 for i in $$list; do \
447 if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
448 else file=$$i; fi; \
449 ext=`echo $$i | sed -e 's/^.*\\.//'`; \
450 case "$$ext" in \
451 1*) ;; \
452 *) ext='1' ;; \
453 esac; \
454 inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
455 inst=`echo $$inst | sed -e 's/^.*\///'`; \
456 inst=`echo $$inst | sed '$(transform)'`.$$ext; \
457 echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \
458 $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst"; \
459 done
460 uninstall-man1:
461 @$(NORMAL_UNINSTALL)
462 @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \
463 l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
464 for i in $$l2; do \
465 case "$$i" in \
466 *.1*) list="$$list $$i" ;; \
467 esac; \
468 done; \
469 for i in $$list; do \
470 ext=`echo $$i | sed -e 's/^.*\\.//'`; \
471 case "$$ext" in \
472 1*) ;; \
473 *) ext='1' ;; \
474 esac; \
475 inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
476 inst=`echo $$inst | sed -e 's/^.*\///'`; \
477 inst=`echo $$inst | sed '$(transform)'`.$$ext; \
478 echo " rm -f '$(DESTDIR)$(man1dir)/$$inst'"; \
479 rm -f "$(DESTDIR)$(man1dir)/$$inst"; \
480 done
481 install-dist_sysconfDATA: $(dist_sysconf_DATA)
482 @$(NORMAL_INSTALL)
483 test -z "$(sysconfdir)" || $(MKDIR_P) "$(DESTDIR)$(sysconfdir)"
484 @list='$(dist_sysconf_DATA)'; for p in $$list; do \
485 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
486 f=$(am__strip_dir) \
487 echo " $(dist_sysconfDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(sysconfdir)/$$f'"; \
488 $(dist_sysconfDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(sysconfdir)/$$f"; \
489 done
490
491 uninstall-dist_sysconfDATA:
492 @$(NORMAL_UNINSTALL)
493 @list='$(dist_sysconf_DATA)'; for p in $$list; do \
494 f=$(am__strip_dir) \
495 echo " rm -f '$(DESTDIR)$(sysconfdir)/$$f'"; \
496 rm -f "$(DESTDIR)$(sysconfdir)/$$f"; \
497 done
498
499 # This directory's subdirectories are mostly independent; you can cd
500 # into them and run `make' without going through this Makefile.
501 # To change the values of `make' variables: instead of editing Makefiles,
502 # (1) if the variable is set in `config.status', edit `config.status'
503 # (which will cause the Makefiles to be regenerated when you run `make');
504 # (2) otherwise, pass the desired values on the `make' command line.
505 $(RECURSIVE_TARGETS):
506 @failcom='exit 1'; \
507 for f in x $$MAKEFLAGS; do \
508 case $$f in \
509 *=* | --[!k]*);; \
510 *k*) failcom='fail=yes';; \
511 esac; \
512 done; \
513 dot_seen=no; \
514 target=`echo $@ | sed s/-recursive//`; \
515 list='$(SUBDIRS)'; for subdir in $$list; do \
516 echo "Making $$target in $$subdir"; \
517 if test "$$subdir" = "."; then \
518 dot_seen=yes; \
519 local_target="$$target-am"; \
520 else \
521 local_target="$$target"; \
522 fi; \
523 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
524 || eval $$failcom; \
525 done; \
526 if test "$$dot_seen" = "no"; then \
527 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
528 fi; test -z "$$fail"
529
530 $(RECURSIVE_CLEAN_TARGETS):
531 @failcom='exit 1'; \
532 for f in x $$MAKEFLAGS; do \
533 case $$f in \
534 *=* | --[!k]*);; \
535 *k*) failcom='fail=yes';; \
536 esac; \
537 done; \
538 dot_seen=no; \
539 case "$@" in \
540 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
541 *) list='$(SUBDIRS)' ;; \
542 esac; \
543 rev=''; for subdir in $$list; do \
544 if test "$$subdir" = "."; then :; else \
545 rev="$$subdir $$rev"; \
546 fi; \
547 done; \
548 rev="$$rev ."; \
549 target=`echo $@ | sed s/-recursive//`; \
550 for subdir in $$rev; do \
551 echo "Making $$target in $$subdir"; \
552 if test "$$subdir" = "."; then \
553 local_target="$$target-am"; \
554 else \
555 local_target="$$target"; \
556 fi; \
557 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
558 || eval $$failcom; \
559 done && test -z "$$fail"
560 tags-recursive:
561 list='$(SUBDIRS)'; for subdir in $$list; do \
562 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
563 done
564 ctags-recursive:
565 list='$(SUBDIRS)'; for subdir in $$list; do \
566 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
567 done
568
569 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
570 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
571 unique=`for i in $$list; do \
572 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
573 done | \
574 $(AWK) ' { files[$$0] = 1; } \
575 END { for (i in files) print i; }'`; \
576 mkid -fID $$unique
577 tags: TAGS
578
579 TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
580 $(TAGS_FILES) $(LISP)
581 tags=; \
582 here=`pwd`; \
583 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
584 include_option=--etags-include; \
585 empty_fix=.; \
586 else \
587 include_option=--include; \
588 empty_fix=; \
589 fi; \
590 list='$(SUBDIRS)'; for subdir in $$list; do \
591 if test "$$subdir" = .; then :; else \
592 test ! -f $$subdir/TAGS || \
593 tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
594 fi; \
595 done; \
596 list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
597 unique=`for i in $$list; do \
598 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
599 done | \
600 $(AWK) ' { files[$$0] = 1; } \
601 END { for (i in files) print i; }'`; \
602 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
603 test -n "$$unique" || unique=$$empty_fix; \
604 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
605 $$tags $$unique; \
606 fi
607 ctags: CTAGS
608 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
609 $(TAGS_FILES) $(LISP)
610 tags=; \
611 here=`pwd`; \
612 list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
613 unique=`for i in $$list; do \
614 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
615 done | \
616 $(AWK) ' { files[$$0] = 1; } \
617 END { for (i in files) print i; }'`; \
618 test -z "$(CTAGS_ARGS)$$tags$$unique" \
619 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
620 $$tags $$unique
621
622 GTAGS:
623 here=`$(am__cd) $(top_builddir) && pwd` \
624 && cd $(top_srcdir) \
625 && gtags -i $(GTAGS_ARGS) $$here
626
627 distclean-tags:
628 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
629
630 distdir: $(DISTFILES)
631 $(am__remove_distdir)
632 test -d $(distdir) || mkdir $(distdir)
633 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
634 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
635 list='$(DISTFILES)'; \
636 dist_files=`for file in $$list; do echo $$file; done | \
637 sed -e "s|^$$srcdirstrip/||;t" \
638 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
639 case $$dist_files in \
640 */*) $(MKDIR_P) `echo "$$dist_files" | \
641 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
642 sort -u` ;; \
643 esac; \
644 for file in $$dist_files; do \
645 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
646 if test -d $$d/$$file; then \
647 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
648 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
649 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
650 fi; \
651 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
652 else \
653 test -f $(distdir)/$$file \
654 || cp -p $$d/$$file $(distdir)/$$file \
655 || exit 1; \
656 fi; \
657 done
658 list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
659 if test "$$subdir" = .; then :; else \
660 test -d "$(distdir)/$$subdir" \
661 || $(MKDIR_P) "$(distdir)/$$subdir" \
662 || exit 1; \
663 distdir=`$(am__cd) $(distdir) && pwd`; \
664 top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
665 (cd $$subdir && \
666 $(MAKE) $(AM_MAKEFLAGS) \
667 top_distdir="$$top_distdir" \
668 distdir="$$distdir/$$subdir" \
669 am__remove_distdir=: \
670 am__skip_length_check=: \
671 distdir) \
672 || exit 1; \
673 fi; \
674 done
675 -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
676 ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
677 ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
678 ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
679 || chmod -R a+r $(distdir)
680 dist-gzip: distdir
681 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
682 $(am__remove_distdir)
683 dist-bzip2: distdir
684 tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
685 $(am__remove_distdir)
686
687 dist-tarZ: distdir
688 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
689 $(am__remove_distdir)
690
691 dist-shar: distdir
692 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
693 $(am__remove_distdir)
694
695 dist-zip: distdir
696 -rm -f $(distdir).zip
697 zip -rq $(distdir).zip $(distdir)
698 $(am__remove_distdir)
699
700 dist dist-all: distdir
701 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
702 tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
703 $(am__remove_distdir)
704
705 # This target untars the dist file and tries a VPATH configuration. Then
706 # it guarantees that the distribution is self-contained by making another
707 # tarfile.
708 distcheck: dist
709 case '$(DIST_ARCHIVES)' in \
710 *.tar.gz*) \
711 GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
712 *.tar.bz2*) \
713 bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
714 *.tar.Z*) \
715 uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
716 *.shar.gz*) \
717 GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
718 *.zip*) \
719 unzip $(distdir).zip ;;\
720 esac
721 chmod -R a-w $(distdir); chmod a+w $(distdir)
722 mkdir $(distdir)/_build
723 mkdir $(distdir)/_inst
724 chmod a-w $(distdir)
725 dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
726 && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
727 && cd $(distdir)/_build \
728 && ../configure --srcdir=.. --prefix="$$dc_install_base" \
729 $(DISTCHECK_CONFIGURE_FLAGS) \
730 && $(MAKE) $(AM_MAKEFLAGS) \
731 && $(MAKE) $(AM_MAKEFLAGS) dvi \
732 && $(MAKE) $(AM_MAKEFLAGS) check \
733 && $(MAKE) $(AM_MAKEFLAGS) install \
734 && $(MAKE) $(AM_MAKEFLAGS) installcheck \
735 && $(MAKE) $(AM_MAKEFLAGS) uninstall \
736 && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
737 distuninstallcheck \
738 && chmod -R a-w "$$dc_install_base" \
739 && ({ \
740 (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
741 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
742 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
743 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
744 distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
745 } || { rm -rf "$$dc_destdir"; exit 1; }) \
746 && rm -rf "$$dc_destdir" \
747 && $(MAKE) $(AM_MAKEFLAGS) dist \
748 && rm -rf $(DIST_ARCHIVES) \
749 && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
750 $(am__remove_distdir)
751 @(echo "$(distdir) archives ready for distribution: "; \
752 list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
753 sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
754 distuninstallcheck:
755 @cd $(distuninstallcheck_dir) \
756 && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
757 || { echo "ERROR: files left after uninstall:" ; \
758 if test -n "$(DESTDIR)"; then \
759 echo " (check DESTDIR support)"; \
760 fi ; \
761 $(distuninstallcheck_listfiles) ; \
762 exit 1; } >&2
763 distcleancheck: distclean
764 @if test '$(srcdir)' = . ; then \
765 echo "ERROR: distcleancheck can only run from a VPATH build" ; \
766 exit 1 ; \
767 fi
768 @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
769 || { echo "ERROR: files left in build directory after distclean:" ; \
770 $(distcleancheck_listfiles) ; \
771 exit 1; } >&2
772 check-am: all-am
773 check: check-recursive
774 all-am: Makefile $(PROGRAMS) $(MANS) $(DATA) $(HEADERS) config.h
775 installdirs: installdirs-recursive
776 installdirs-am:
777 for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(sysconfdir)"; do \
778 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
779 done
780 install: install-recursive
781 install-exec: install-exec-recursive
782 install-data: install-data-recursive
783 uninstall: uninstall-recursive
784
785 install-am: all-am
786 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
787
788 installcheck: installcheck-recursive
789 install-strip:
790 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
791 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
792 `test -z '$(STRIP)' || \
793 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
794 mostlyclean-generic:
795
796 clean-generic:
797 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
798
799 distclean-generic:
800 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
801
802 maintainer-clean-generic:
803 @echo "This command is intended for maintainers to use"
804 @echo "it deletes files that may require special tools to rebuild."
805 -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
806 clean: clean-recursive
807
808 clean-am: clean-binPROGRAMS clean-generic mostlyclean-am
809
810 distclean: distclean-recursive
811 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
812 -rm -rf ./$(DEPDIR)
813 -rm -f Makefile
814 distclean-am: clean-am distclean-compile distclean-generic \
815 distclean-hdr distclean-tags
816
817 dvi: dvi-recursive
818
819 dvi-am:
820
821 html: html-recursive
822
823 info: info-recursive
824
825 info-am:
826
827 install-data-am: install-man
828
829 install-dvi: install-dvi-recursive
830
831 install-exec-am: install-binPROGRAMS install-dist_sysconfDATA
832
833 install-html: install-html-recursive
834
835 install-info: install-info-recursive
836
837 install-man: install-man1
838
839 install-pdf: install-pdf-recursive
840
841 install-ps: install-ps-recursive
842
843 installcheck-am:
844
845 maintainer-clean: maintainer-clean-recursive
846 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
847 -rm -rf $(top_srcdir)/autom4te.cache
848 -rm -rf ./$(DEPDIR)
849 -rm -f Makefile
850 maintainer-clean-am: distclean-am maintainer-clean-generic
851
852 mostlyclean: mostlyclean-recursive
853
854 mostlyclean-am: mostlyclean-compile mostlyclean-generic
855
856 pdf: pdf-recursive
857
858 pdf-am:
859
860 ps: ps-recursive
861
862 ps-am:
863
864 uninstall-am: uninstall-binPROGRAMS uninstall-dist_sysconfDATA \
865 uninstall-man
866
867 uninstall-man: uninstall-man1
868
869 .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
870 install-strip
871
872 .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
873 all all-am am--refresh check check-am clean clean-binPROGRAMS \
874 clean-generic ctags ctags-recursive dist dist-all dist-bzip2 \
875 dist-gzip dist-shar dist-tarZ dist-zip distcheck distclean \
876 distclean-compile distclean-generic distclean-hdr \
877 distclean-tags distcleancheck distdir distuninstallcheck dvi \
878 dvi-am html html-am info info-am install install-am \
879 install-binPROGRAMS install-data install-data-am \
880 install-dist_sysconfDATA install-dvi install-dvi-am \
881 install-exec install-exec-am install-html install-html-am \
882 install-info install-info-am install-man install-man1 \
883 install-pdf install-pdf-am install-ps install-ps-am \
884 install-strip installcheck installcheck-am installdirs \
885 installdirs-am maintainer-clean maintainer-clean-generic \
886 mostlyclean mostlyclean-compile mostlyclean-generic pdf pdf-am \
887 ps ps-am tags tags-recursive uninstall uninstall-am \
888 uninstall-binPROGRAMS uninstall-dist_sysconfDATA uninstall-man \
889 uninstall-man1
890
891
892 # create this file 'on the fly'
893 hash_ink.c: make_hash_ink
894 ./make_hash_ink 4 3 > hash_ink.c
895 ./make_hash_ink 1 5 >> hash_ink.c
896
897 make_hash_ink: make_hash_ink.c
898 $(CC_FOR_BUILD) $(CPPFLAGS_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@ $< $(LDLIBS_FOR_BUILD)
899 # Tell versions [3.59,3.63) of GNU make to not export all variables.
900 # Otherwise a system limit (for SysV at least) may be exceeded.
901 .NOEXPORT:
0 # generated automatically by aclocal 1.10 -*- Autoconf -*-
1
2 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
3 # 2005, 2006 Free Software Foundation, Inc.
4 # This file is free software; the Free Software Foundation
5 # gives unlimited permission to copy and/or distribute it,
6 # with or without modifications, as long as this notice is preserved.
7
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
10 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11 # PARTICULAR PURPOSE.
12
13 m4_if(m4_PACKAGE_VERSION, [2.62],,
14 [m4_fatal([this file was generated for autoconf 2.62.
15 You have another version of autoconf. If you want to use that,
16 you should regenerate the build system entirely.], [63])])
17
18 # Copyright (C) 2002, 2003, 2005, 2006 Free Software Foundation, Inc.
19 #
20 # This file is free software; the Free Software Foundation
21 # gives unlimited permission to copy and/or distribute it,
22 # with or without modifications, as long as this notice is preserved.
23
24 # AM_AUTOMAKE_VERSION(VERSION)
25 # ----------------------------
26 # Automake X.Y traces this macro to ensure aclocal.m4 has been
27 # generated from the m4 files accompanying Automake X.Y.
28 # (This private macro should not be called outside this file.)
29 AC_DEFUN([AM_AUTOMAKE_VERSION],
30 [am__api_version='1.10'
31 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
32 dnl require some minimum version. Point them to the right macro.
33 m4_if([$1], [1.10], [],
34 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
35 ])
36
37 # _AM_AUTOCONF_VERSION(VERSION)
38 # -----------------------------
39 # aclocal traces this macro to find the Autoconf version.
40 # This is a private macro too. Using m4_define simplifies
41 # the logic in aclocal, which can simply ignore this definition.
42 m4_define([_AM_AUTOCONF_VERSION], [])
43
44 # AM_SET_CURRENT_AUTOMAKE_VERSION
45 # -------------------------------
46 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
47 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
48 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
49 [AM_AUTOMAKE_VERSION([1.10])dnl
50 _AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)])
51
52 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
53
54 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
55 #
56 # This file is free software; the Free Software Foundation
57 # gives unlimited permission to copy and/or distribute it,
58 # with or without modifications, as long as this notice is preserved.
59
60 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
61 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
62 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
63 #
64 # Of course, Automake must honor this variable whenever it calls a
65 # tool from the auxiliary directory. The problem is that $srcdir (and
66 # therefore $ac_aux_dir as well) can be either absolute or relative,
67 # depending on how configure is run. This is pretty annoying, since
68 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
69 # source directory, any form will work fine, but in subdirectories a
70 # relative path needs to be adjusted first.
71 #
72 # $ac_aux_dir/missing
73 # fails when called from a subdirectory if $ac_aux_dir is relative
74 # $top_srcdir/$ac_aux_dir/missing
75 # fails if $ac_aux_dir is absolute,
76 # fails when called from a subdirectory in a VPATH build with
77 # a relative $ac_aux_dir
78 #
79 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
80 # are both prefixed by $srcdir. In an in-source build this is usually
81 # harmless because $srcdir is `.', but things will broke when you
82 # start a VPATH build or use an absolute $srcdir.
83 #
84 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
85 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
86 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
87 # and then we would define $MISSING as
88 # MISSING="\${SHELL} $am_aux_dir/missing"
89 # This will work as long as MISSING is not called from configure, because
90 # unfortunately $(top_srcdir) has no meaning in configure.
91 # However there are other variables, like CC, which are often used in
92 # configure, and could therefore not use this "fixed" $ac_aux_dir.
93 #
94 # Another solution, used here, is to always expand $ac_aux_dir to an
95 # absolute PATH. The drawback is that using absolute paths prevent a
96 # configured tree to be moved without reconfiguration.
97
98 AC_DEFUN([AM_AUX_DIR_EXPAND],
99 [dnl Rely on autoconf to set up CDPATH properly.
100 AC_PREREQ([2.50])dnl
101 # expand $ac_aux_dir to an absolute path
102 am_aux_dir=`cd $ac_aux_dir && pwd`
103 ])
104
105 # AM_CONDITIONAL -*- Autoconf -*-
106
107 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
108 # Free Software Foundation, Inc.
109 #
110 # This file is free software; the Free Software Foundation
111 # gives unlimited permission to copy and/or distribute it,
112 # with or without modifications, as long as this notice is preserved.
113
114 # serial 8
115
116 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
117 # -------------------------------------
118 # Define a conditional.
119 AC_DEFUN([AM_CONDITIONAL],
120 [AC_PREREQ(2.52)dnl
121 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
122 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
123 AC_SUBST([$1_TRUE])dnl
124 AC_SUBST([$1_FALSE])dnl
125 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
126 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
127 if $2; then
128 $1_TRUE=
129 $1_FALSE='#'
130 else
131 $1_TRUE='#'
132 $1_FALSE=
133 fi
134 AC_CONFIG_COMMANDS_PRE(
135 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
136 AC_MSG_ERROR([[conditional "$1" was never defined.
137 Usually this means the macro was only invoked conditionally.]])
138 fi])])
139
140 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
141 # Free Software Foundation, Inc.
142 #
143 # This file is free software; the Free Software Foundation
144 # gives unlimited permission to copy and/or distribute it,
145 # with or without modifications, as long as this notice is preserved.
146
147 # serial 9
148
149 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
150 # written in clear, in which case automake, when reading aclocal.m4,
151 # will think it sees a *use*, and therefore will trigger all it's
152 # C support machinery. Also note that it means that autoscan, seeing
153 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
154
155
156 # _AM_DEPENDENCIES(NAME)
157 # ----------------------
158 # See how the compiler implements dependency checking.
159 # NAME is "CC", "CXX", "GCJ", or "OBJC".
160 # We try a few techniques and use that to set a single cache variable.
161 #
162 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
163 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
164 # dependency, and given that the user is not expected to run this macro,
165 # just rely on AC_PROG_CC.
166 AC_DEFUN([_AM_DEPENDENCIES],
167 [AC_REQUIRE([AM_SET_DEPDIR])dnl
168 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
169 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
170 AC_REQUIRE([AM_DEP_TRACK])dnl
171
172 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
173 [$1], CXX, [depcc="$CXX" am_compiler_list=],
174 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
175 [$1], UPC, [depcc="$UPC" am_compiler_list=],
176 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
177 [depcc="$$1" am_compiler_list=])
178
179 AC_CACHE_CHECK([dependency style of $depcc],
180 [am_cv_$1_dependencies_compiler_type],
181 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
182 # We make a subdir and do the tests there. Otherwise we can end up
183 # making bogus files that we don't know about and never remove. For
184 # instance it was reported that on HP-UX the gcc test will end up
185 # making a dummy file named `D' -- because `-MD' means `put the output
186 # in D'.
187 mkdir conftest.dir
188 # Copy depcomp to subdir because otherwise we won't find it if we're
189 # using a relative directory.
190 cp "$am_depcomp" conftest.dir
191 cd conftest.dir
192 # We will build objects and dependencies in a subdirectory because
193 # it helps to detect inapplicable dependency modes. For instance
194 # both Tru64's cc and ICC support -MD to output dependencies as a
195 # side effect of compilation, but ICC will put the dependencies in
196 # the current directory while Tru64 will put them in the object
197 # directory.
198 mkdir sub
199
200 am_cv_$1_dependencies_compiler_type=none
201 if test "$am_compiler_list" = ""; then
202 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
203 fi
204 for depmode in $am_compiler_list; do
205 # Setup a source with many dependencies, because some compilers
206 # like to wrap large dependency lists on column 80 (with \), and
207 # we should not choose a depcomp mode which is confused by this.
208 #
209 # We need to recreate these files for each test, as the compiler may
210 # overwrite some of them when testing with obscure command lines.
211 # This happens at least with the AIX C compiler.
212 : > sub/conftest.c
213 for i in 1 2 3 4 5 6; do
214 echo '#include "conftst'$i'.h"' >> sub/conftest.c
215 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
216 # Solaris 8's {/usr,}/bin/sh.
217 touch sub/conftst$i.h
218 done
219 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
220
221 case $depmode in
222 nosideeffect)
223 # after this tag, mechanisms are not by side-effect, so they'll
224 # only be used when explicitly requested
225 if test "x$enable_dependency_tracking" = xyes; then
226 continue
227 else
228 break
229 fi
230 ;;
231 none) break ;;
232 esac
233 # We check with `-c' and `-o' for the sake of the "dashmstdout"
234 # mode. It turns out that the SunPro C++ compiler does not properly
235 # handle `-M -o', and we need to detect this.
236 if depmode=$depmode \
237 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
238 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
239 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
240 >/dev/null 2>conftest.err &&
241 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
242 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
243 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
244 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
245 # icc doesn't choke on unknown options, it will just issue warnings
246 # or remarks (even with -Werror). So we grep stderr for any message
247 # that says an option was ignored or not supported.
248 # When given -MP, icc 7.0 and 7.1 complain thusly:
249 # icc: Command line warning: ignoring option '-M'; no argument required
250 # The diagnosis changed in icc 8.0:
251 # icc: Command line remark: option '-MP' not supported
252 if (grep 'ignoring option' conftest.err ||
253 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
254 am_cv_$1_dependencies_compiler_type=$depmode
255 break
256 fi
257 fi
258 done
259
260 cd ..
261 rm -rf conftest.dir
262 else
263 am_cv_$1_dependencies_compiler_type=none
264 fi
265 ])
266 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
267 AM_CONDITIONAL([am__fastdep$1], [
268 test "x$enable_dependency_tracking" != xno \
269 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
270 ])
271
272
273 # AM_SET_DEPDIR
274 # -------------
275 # Choose a directory name for dependency files.
276 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
277 AC_DEFUN([AM_SET_DEPDIR],
278 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
279 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
280 ])
281
282
283 # AM_DEP_TRACK
284 # ------------
285 AC_DEFUN([AM_DEP_TRACK],
286 [AC_ARG_ENABLE(dependency-tracking,
287 [ --disable-dependency-tracking speeds up one-time build
288 --enable-dependency-tracking do not reject slow dependency extractors])
289 if test "x$enable_dependency_tracking" != xno; then
290 am_depcomp="$ac_aux_dir/depcomp"
291 AMDEPBACKSLASH='\'
292 fi
293 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
294 AC_SUBST([AMDEPBACKSLASH])dnl
295 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
296 ])
297
298 # Generate code to set up dependency tracking. -*- Autoconf -*-
299
300 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
301 # Free Software Foundation, Inc.
302 #
303 # This file is free software; the Free Software Foundation
304 # gives unlimited permission to copy and/or distribute it,
305 # with or without modifications, as long as this notice is preserved.
306
307 #serial 3
308
309 # _AM_OUTPUT_DEPENDENCY_COMMANDS
310 # ------------------------------
311 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
312 [for mf in $CONFIG_FILES; do
313 # Strip MF so we end up with the name of the file.
314 mf=`echo "$mf" | sed -e 's/:.*$//'`
315 # Check whether this is an Automake generated Makefile or not.
316 # We used to match only the files named `Makefile.in', but
317 # some people rename them; so instead we look at the file content.
318 # Grep'ing the first line is not enough: some people post-process
319 # each Makefile.in and add a new line on top of each file to say so.
320 # Grep'ing the whole file is not good either: AIX grep has a line
321 # limit of 2048, but all sed's we know have understand at least 4000.
322 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
323 dirpart=`AS_DIRNAME("$mf")`
324 else
325 continue
326 fi
327 # Extract the definition of DEPDIR, am__include, and am__quote
328 # from the Makefile without running `make'.
329 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
330 test -z "$DEPDIR" && continue
331 am__include=`sed -n 's/^am__include = //p' < "$mf"`
332 test -z "am__include" && continue
333 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
334 # When using ansi2knr, U may be empty or an underscore; expand it
335 U=`sed -n 's/^U = //p' < "$mf"`
336 # Find all dependency output files, they are included files with
337 # $(DEPDIR) in their names. We invoke sed twice because it is the
338 # simplest approach to changing $(DEPDIR) to its actual value in the
339 # expansion.
340 for file in `sed -n "
341 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
342 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
343 # Make sure the directory exists.
344 test -f "$dirpart/$file" && continue
345 fdir=`AS_DIRNAME(["$file"])`
346 AS_MKDIR_P([$dirpart/$fdir])
347 # echo "creating $dirpart/$file"
348 echo '# dummy' > "$dirpart/$file"
349 done
350 done
351 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
352
353
354 # AM_OUTPUT_DEPENDENCY_COMMANDS
355 # -----------------------------
356 # This macro should only be invoked once -- use via AC_REQUIRE.
357 #
358 # This code is only required when automatic dependency tracking
359 # is enabled. FIXME. This creates each `.P' file that we will
360 # need in order to bootstrap the dependency handling code.
361 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
362 [AC_CONFIG_COMMANDS([depfiles],
363 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
364 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
365 ])
366
367 # Do all the work for Automake. -*- Autoconf -*-
368
369 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
370 # 2005, 2006 Free Software Foundation, Inc.
371 #
372 # This file is free software; the Free Software Foundation
373 # gives unlimited permission to copy and/or distribute it,
374 # with or without modifications, as long as this notice is preserved.
375
376 # serial 12
377
378 # This macro actually does too much. Some checks are only needed if
379 # your package does certain things. But this isn't really a big deal.
380
381 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
382 # AM_INIT_AUTOMAKE([OPTIONS])
383 # -----------------------------------------------
384 # The call with PACKAGE and VERSION arguments is the old style
385 # call (pre autoconf-2.50), which is being phased out. PACKAGE
386 # and VERSION should now be passed to AC_INIT and removed from
387 # the call to AM_INIT_AUTOMAKE.
388 # We support both call styles for the transition. After
389 # the next Automake release, Autoconf can make the AC_INIT
390 # arguments mandatory, and then we can depend on a new Autoconf
391 # release and drop the old call support.
392 AC_DEFUN([AM_INIT_AUTOMAKE],
393 [AC_PREREQ([2.60])dnl
394 dnl Autoconf wants to disallow AM_ names. We explicitly allow
395 dnl the ones we care about.
396 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
397 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
398 AC_REQUIRE([AC_PROG_INSTALL])dnl
399 if test "`cd $srcdir && pwd`" != "`pwd`"; then
400 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
401 # is not polluted with repeated "-I."
402 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
403 # test to see if srcdir already configured
404 if test -f $srcdir/config.status; then
405 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
406 fi
407 fi
408
409 # test whether we have cygpath
410 if test -z "$CYGPATH_W"; then
411 if (cygpath --version) >/dev/null 2>/dev/null; then
412 CYGPATH_W='cygpath -w'
413 else
414 CYGPATH_W=echo
415 fi
416 fi
417 AC_SUBST([CYGPATH_W])
418
419 # Define the identity of the package.
420 dnl Distinguish between old-style and new-style calls.
421 m4_ifval([$2],
422 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
423 AC_SUBST([PACKAGE], [$1])dnl
424 AC_SUBST([VERSION], [$2])],
425 [_AM_SET_OPTIONS([$1])dnl
426 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
427 m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
428 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
429 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
430 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
431
432 _AM_IF_OPTION([no-define],,
433 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
434 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
435
436 # Some tools Automake needs.
437 AC_REQUIRE([AM_SANITY_CHECK])dnl
438 AC_REQUIRE([AC_ARG_PROGRAM])dnl
439 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
440 AM_MISSING_PROG(AUTOCONF, autoconf)
441 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
442 AM_MISSING_PROG(AUTOHEADER, autoheader)
443 AM_MISSING_PROG(MAKEINFO, makeinfo)
444 AM_PROG_INSTALL_SH
445 AM_PROG_INSTALL_STRIP
446 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
447 # We need awk for the "check" target. The system "awk" is bad on
448 # some platforms.
449 AC_REQUIRE([AC_PROG_AWK])dnl
450 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
451 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
452 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
453 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
454 [_AM_PROG_TAR([v7])])])
455 _AM_IF_OPTION([no-dependencies],,
456 [AC_PROVIDE_IFELSE([AC_PROG_CC],
457 [_AM_DEPENDENCIES(CC)],
458 [define([AC_PROG_CC],
459 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
460 AC_PROVIDE_IFELSE([AC_PROG_CXX],
461 [_AM_DEPENDENCIES(CXX)],
462 [define([AC_PROG_CXX],
463 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
464 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
465 [_AM_DEPENDENCIES(OBJC)],
466 [define([AC_PROG_OBJC],
467 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
468 ])
469 ])
470
471
472 # When config.status generates a header, we must update the stamp-h file.
473 # This file resides in the same directory as the config header
474 # that is generated. The stamp files are numbered to have different names.
475
476 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
477 # loop where config.status creates the headers, so we can generate
478 # our stamp files there.
479 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
480 [# Compute $1's index in $config_headers.
481 _am_stamp_count=1
482 for _am_header in $config_headers :; do
483 case $_am_header in
484 $1 | $1:* )
485 break ;;
486 * )
487 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
488 esac
489 done
490 echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
491
492 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
493 #
494 # This file is free software; the Free Software Foundation
495 # gives unlimited permission to copy and/or distribute it,
496 # with or without modifications, as long as this notice is preserved.
497
498 # AM_PROG_INSTALL_SH
499 # ------------------
500 # Define $install_sh.
501 AC_DEFUN([AM_PROG_INSTALL_SH],
502 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
503 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
504 AC_SUBST(install_sh)])
505
506 # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
507 #
508 # This file is free software; the Free Software Foundation
509 # gives unlimited permission to copy and/or distribute it,
510 # with or without modifications, as long as this notice is preserved.
511
512 # serial 2
513
514 # Check whether the underlying file-system supports filenames
515 # with a leading dot. For instance MS-DOS doesn't.
516 AC_DEFUN([AM_SET_LEADING_DOT],
517 [rm -rf .tst 2>/dev/null
518 mkdir .tst 2>/dev/null
519 if test -d .tst; then
520 am__leading_dot=.
521 else
522 am__leading_dot=_
523 fi
524 rmdir .tst 2>/dev/null
525 AC_SUBST([am__leading_dot])])
526
527 # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
528 # From Jim Meyering
529
530 # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
531 # Free Software Foundation, Inc.
532 #
533 # This file is free software; the Free Software Foundation
534 # gives unlimited permission to copy and/or distribute it,
535 # with or without modifications, as long as this notice is preserved.
536
537 # serial 4
538
539 AC_DEFUN([AM_MAINTAINER_MODE],
540 [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
541 dnl maintainer-mode is disabled by default
542 AC_ARG_ENABLE(maintainer-mode,
543 [ --enable-maintainer-mode enable make rules and dependencies not useful
544 (and sometimes confusing) to the casual installer],
545 USE_MAINTAINER_MODE=$enableval,
546 USE_MAINTAINER_MODE=no)
547 AC_MSG_RESULT([$USE_MAINTAINER_MODE])
548 AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
549 MAINT=$MAINTAINER_MODE_TRUE
550 AC_SUBST(MAINT)dnl
551 ]
552 )
553
554 AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
555
556 # Check to see how 'make' treats includes. -*- Autoconf -*-
557
558 # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
559 #
560 # This file is free software; the Free Software Foundation
561 # gives unlimited permission to copy and/or distribute it,
562 # with or without modifications, as long as this notice is preserved.
563
564 # serial 3
565
566 # AM_MAKE_INCLUDE()
567 # -----------------
568 # Check to see how make treats includes.
569 AC_DEFUN([AM_MAKE_INCLUDE],
570 [am_make=${MAKE-make}
571 cat > confinc << 'END'
572 am__doit:
573 @echo done
574 .PHONY: am__doit
575 END
576 # If we don't find an include directive, just comment out the code.
577 AC_MSG_CHECKING([for style of include used by $am_make])
578 am__include="#"
579 am__quote=
580 _am_result=none
581 # First try GNU make style include.
582 echo "include confinc" > confmf
583 # We grep out `Entering directory' and `Leaving directory'
584 # messages which can occur if `w' ends up in MAKEFLAGS.
585 # In particular we don't look at `^make:' because GNU make might
586 # be invoked under some other name (usually "gmake"), in which
587 # case it prints its new name instead of `make'.
588 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
589 am__include=include
590 am__quote=
591 _am_result=GNU
592 fi
593 # Now try BSD make style include.
594 if test "$am__include" = "#"; then
595 echo '.include "confinc"' > confmf
596 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
597 am__include=.include
598 am__quote="\""
599 _am_result=BSD
600 fi
601 fi
602 AC_SUBST([am__include])
603 AC_SUBST([am__quote])
604 AC_MSG_RESULT([$_am_result])
605 rm -f confinc confmf
606 ])
607
608 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
609
610 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
611 # Free Software Foundation, Inc.
612 #
613 # This file is free software; the Free Software Foundation
614 # gives unlimited permission to copy and/or distribute it,
615 # with or without modifications, as long as this notice is preserved.
616
617 # serial 5
618
619 # AM_MISSING_PROG(NAME, PROGRAM)
620 # ------------------------------
621 AC_DEFUN([AM_MISSING_PROG],
622 [AC_REQUIRE([AM_MISSING_HAS_RUN])
623 $1=${$1-"${am_missing_run}$2"}
624 AC_SUBST($1)])
625
626
627 # AM_MISSING_HAS_RUN
628 # ------------------
629 # Define MISSING if not defined so far and test if it supports --run.
630 # If it does, set am_missing_run to use it, otherwise, to nothing.
631 AC_DEFUN([AM_MISSING_HAS_RUN],
632 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
633 AC_REQUIRE_AUX_FILE([missing])dnl
634 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
635 # Use eval to expand $SHELL
636 if eval "$MISSING --run true"; then
637 am_missing_run="$MISSING --run "
638 else
639 am_missing_run=
640 AC_MSG_WARN([`missing' script is too old or missing])
641 fi
642 ])
643
644 # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
645 #
646 # This file is free software; the Free Software Foundation
647 # gives unlimited permission to copy and/or distribute it,
648 # with or without modifications, as long as this notice is preserved.
649
650 # AM_PROG_MKDIR_P
651 # ---------------
652 # Check for `mkdir -p'.
653 AC_DEFUN([AM_PROG_MKDIR_P],
654 [AC_PREREQ([2.60])dnl
655 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
656 dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
657 dnl while keeping a definition of mkdir_p for backward compatibility.
658 dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
659 dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
660 dnl Makefile.ins that do not define MKDIR_P, so we do our own
661 dnl adjustment using top_builddir (which is defined more often than
662 dnl MKDIR_P).
663 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
664 case $mkdir_p in
665 [[\\/$]]* | ?:[[\\/]]*) ;;
666 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
667 esac
668 ])
669
670 # Helper functions for option handling. -*- Autoconf -*-
671
672 # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
673 #
674 # This file is free software; the Free Software Foundation
675 # gives unlimited permission to copy and/or distribute it,
676 # with or without modifications, as long as this notice is preserved.
677
678 # serial 3
679
680 # _AM_MANGLE_OPTION(NAME)
681 # -----------------------
682 AC_DEFUN([_AM_MANGLE_OPTION],
683 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
684
685 # _AM_SET_OPTION(NAME)
686 # ------------------------------
687 # Set option NAME. Presently that only means defining a flag for this option.
688 AC_DEFUN([_AM_SET_OPTION],
689 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
690
691 # _AM_SET_OPTIONS(OPTIONS)
692 # ----------------------------------
693 # OPTIONS is a space-separated list of Automake options.
694 AC_DEFUN([_AM_SET_OPTIONS],
695 [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
696
697 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
698 # -------------------------------------------
699 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
700 AC_DEFUN([_AM_IF_OPTION],
701 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
702
703 # Check to make sure that the build environment is sane. -*- Autoconf -*-
704
705 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
706 # Free Software Foundation, Inc.
707 #
708 # This file is free software; the Free Software Foundation
709 # gives unlimited permission to copy and/or distribute it,
710 # with or without modifications, as long as this notice is preserved.
711
712 # serial 4
713
714 # AM_SANITY_CHECK
715 # ---------------
716 AC_DEFUN([AM_SANITY_CHECK],
717 [AC_MSG_CHECKING([whether build environment is sane])
718 # Just in case
719 sleep 1
720 echo timestamp > conftest.file
721 # Do `set' in a subshell so we don't clobber the current shell's
722 # arguments. Must try -L first in case configure is actually a
723 # symlink; some systems play weird games with the mod time of symlinks
724 # (eg FreeBSD returns the mod time of the symlink's containing
725 # directory).
726 if (
727 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
728 if test "$[*]" = "X"; then
729 # -L didn't work.
730 set X `ls -t $srcdir/configure conftest.file`
731 fi
732 rm -f conftest.file
733 if test "$[*]" != "X $srcdir/configure conftest.file" \
734 && test "$[*]" != "X conftest.file $srcdir/configure"; then
735
736 # If neither matched, then we have a broken ls. This can happen
737 # if, for instance, CONFIG_SHELL is bash and it inherits a
738 # broken ls alias from the environment. This has actually
739 # happened. Such a system could not be considered "sane".
740 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
741 alias in your environment])
742 fi
743
744 test "$[2]" = conftest.file
745 )
746 then
747 # Ok.
748 :
749 else
750 AC_MSG_ERROR([newly created file is older than distributed files!
751 Check your system clock])
752 fi
753 AC_MSG_RESULT(yes)])
754
755 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
756 #
757 # This file is free software; the Free Software Foundation
758 # gives unlimited permission to copy and/or distribute it,
759 # with or without modifications, as long as this notice is preserved.
760
761 # AM_PROG_INSTALL_STRIP
762 # ---------------------
763 # One issue with vendor `install' (even GNU) is that you can't
764 # specify the program used to strip binaries. This is especially
765 # annoying in cross-compiling environments, where the build's strip
766 # is unlikely to handle the host's binaries.
767 # Fortunately install-sh will honor a STRIPPROG variable, so we
768 # always use install-sh in `make install-strip', and initialize
769 # STRIPPROG with the value of the STRIP variable (set by the user).
770 AC_DEFUN([AM_PROG_INSTALL_STRIP],
771 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
772 # Installed binaries are usually stripped using `strip' when the user
773 # run `make install-strip'. However `strip' might not be the right
774 # tool to use in cross-compilation environments, therefore Automake
775 # will honor the `STRIP' environment variable to overrule this program.
776 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
777 if test "$cross_compiling" != no; then
778 AC_CHECK_TOOL([STRIP], [strip], :)
779 fi
780 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
781 AC_SUBST([INSTALL_STRIP_PROGRAM])])
782
783 # Copyright (C) 2006 Free Software Foundation, Inc.
784 #
785 # This file is free software; the Free Software Foundation
786 # gives unlimited permission to copy and/or distribute it,
787 # with or without modifications, as long as this notice is preserved.
788
789 # _AM_SUBST_NOTMAKE(VARIABLE)
790 # ---------------------------
791 # Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in.
792 # This macro is traced by Automake.
793 AC_DEFUN([_AM_SUBST_NOTMAKE])
794
795 # Check how to create a tarball. -*- Autoconf -*-
796
797 # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
798 #
799 # This file is free software; the Free Software Foundation
800 # gives unlimited permission to copy and/or distribute it,
801 # with or without modifications, as long as this notice is preserved.
802
803 # serial 2
804
805 # _AM_PROG_TAR(FORMAT)
806 # --------------------
807 # Check how to create a tarball in format FORMAT.
808 # FORMAT should be one of `v7', `ustar', or `pax'.
809 #
810 # Substitute a variable $(am__tar) that is a command
811 # writing to stdout a FORMAT-tarball containing the directory
812 # $tardir.
813 # tardir=directory && $(am__tar) > result.tar
814 #
815 # Substitute a variable $(am__untar) that extract such
816 # a tarball read from stdin.
817 # $(am__untar) < result.tar
818 AC_DEFUN([_AM_PROG_TAR],
819 [# Always define AMTAR for backward compatibility.
820 AM_MISSING_PROG([AMTAR], [tar])
821 m4_if([$1], [v7],
822 [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
823 [m4_case([$1], [ustar],, [pax],,
824 [m4_fatal([Unknown tar format])])
825 AC_MSG_CHECKING([how to create a $1 tar archive])
826 # Loop over all known methods to create a tar archive until one works.
827 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
828 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
829 # Do not fold the above two line into one, because Tru64 sh and
830 # Solaris sh will not grok spaces in the rhs of `-'.
831 for _am_tool in $_am_tools
832 do
833 case $_am_tool in
834 gnutar)
835 for _am_tar in tar gnutar gtar;
836 do
837 AM_RUN_LOG([$_am_tar --version]) && break
838 done
839 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
840 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
841 am__untar="$_am_tar -xf -"
842 ;;
843 plaintar)
844 # Must skip GNU tar: if it does not support --format= it doesn't create
845 # ustar tarball either.
846 (tar --version) >/dev/null 2>&1 && continue
847 am__tar='tar chf - "$$tardir"'
848 am__tar_='tar chf - "$tardir"'
849 am__untar='tar xf -'
850 ;;
851 pax)
852 am__tar='pax -L -x $1 -w "$$tardir"'
853 am__tar_='pax -L -x $1 -w "$tardir"'
854 am__untar='pax -r'
855 ;;
856 cpio)
857 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
858 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
859 am__untar='cpio -i -H $1 -d'
860 ;;
861 none)
862 am__tar=false
863 am__tar_=false
864 am__untar=false
865 ;;
866 esac
867
868 # If the value was cached, stop now. We just wanted to have am__tar
869 # and am__untar set.
870 test -n "${am_cv_prog_tar_$1}" && break
871
872 # tar/untar a dummy directory, and stop if the command works
873 rm -rf conftest.dir
874 mkdir conftest.dir
875 echo GrepMe > conftest.dir/file
876 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
877 rm -rf conftest.dir
878 if test -s conftest.tar; then
879 AM_RUN_LOG([$am__untar <conftest.tar])
880 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
881 fi
882 done
883 rm -rf conftest.dir
884
885 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
886 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
887 AC_SUBST([am__tar])
888 AC_SUBST([am__untar])
889 ]) # _AM_PROG_TAR
890
1515 * *
1616 ***************************************************************************/
1717
18 #ifdef HAVE_CONFIG_H
19 # include "config.h"
20 #endif
1821
1922 /* incorporates color features added by Bruno ALIX */
2023
0 #! /bin/sh
1 # Attempt to guess a canonical system name.
2 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
4 # Inc.
5
6 timestamp='2006-07-02'
7
8 # This file is free software; you can redistribute it and/or modify it
9 # under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2 of the License, or
11 # (at your option) any later version.
12 #
13 # This program is distributed in the hope that it will be useful, but
14 # WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 # General Public License for more details.
17 #
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
21 # 02110-1301, USA.
22 #
23 # As a special exception to the GNU General Public License, if you
24 # distribute this file as part of a program that contains a
25 # configuration script generated by Autoconf, you may include it under
26 # the same distribution terms that you use for the rest of that program.
27
28
29 # Originally written by Per Bothner <per@bothner.com>.
30 # Please send patches to <config-patches@gnu.org>. Submit a context
31 # diff and a properly formatted ChangeLog entry.
32 #
33 # This script attempts to guess a canonical system name similar to
34 # config.sub. If it succeeds, it prints the system name on stdout, and
35 # exits with 0. Otherwise, it exits with 1.
36 #
37 # The plan is that this can be called by configure scripts if you
38 # don't specify an explicit build system type.
39
40 me=`echo "$0" | sed -e 's,.*/,,'`
41
42 usage="\
43 Usage: $0 [OPTION]
44
45 Output the configuration name of the system \`$me' is run on.
46
47 Operation modes:
48 -h, --help print this help, then exit
49 -t, --time-stamp print date of last modification, then exit
50 -v, --version print version number, then exit
51
52 Report bugs and patches to <config-patches@gnu.org>."
53
54 version="\
55 GNU config.guess ($timestamp)
56
57 Originally written by Per Bothner.
58 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
59 Free Software Foundation, Inc.
60
61 This is free software; see the source for copying conditions. There is NO
62 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
63
64 help="
65 Try \`$me --help' for more information."
66
67 # Parse command line
68 while test $# -gt 0 ; do
69 case $1 in
70 --time-stamp | --time* | -t )
71 echo "$timestamp" ; exit ;;
72 --version | -v )
73 echo "$version" ; exit ;;
74 --help | --h* | -h )
75 echo "$usage"; exit ;;
76 -- ) # Stop option processing
77 shift; break ;;
78 - ) # Use stdin as input.
79 break ;;
80 -* )
81 echo "$me: invalid option $1$help" >&2
82 exit 1 ;;
83 * )
84 break ;;
85 esac
86 done
87
88 if test $# != 0; then
89 echo "$me: too many arguments$help" >&2
90 exit 1
91 fi
92
93 trap 'exit 1' 1 2 15
94
95 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a
96 # compiler to aid in system detection is discouraged as it requires
97 # temporary files to be created and, as you can see below, it is a
98 # headache to deal with in a portable fashion.
99
100 # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
101 # use `HOST_CC' if defined, but it is deprecated.
102
103 # Portable tmp directory creation inspired by the Autoconf team.
104
105 set_cc_for_build='
106 trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
107 trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
108 : ${TMPDIR=/tmp} ;
109 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
110 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
111 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
112 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
113 dummy=$tmp/dummy ;
114 tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
115 case $CC_FOR_BUILD,$HOST_CC,$CC in
116 ,,) echo "int x;" > $dummy.c ;
117 for c in cc gcc c89 c99 ; do
118 if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
119 CC_FOR_BUILD="$c"; break ;
120 fi ;
121 done ;
122 if test x"$CC_FOR_BUILD" = x ; then
123 CC_FOR_BUILD=no_compiler_found ;
124 fi
125 ;;
126 ,,*) CC_FOR_BUILD=$CC ;;
127 ,*,*) CC_FOR_BUILD=$HOST_CC ;;
128 esac ; set_cc_for_build= ;'
129
130 # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
131 # (ghazi@noc.rutgers.edu 1994-08-24)
132 if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
133 PATH=$PATH:/.attbin ; export PATH
134 fi
135
136 UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
137 UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
138 UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
139 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
140
141 # Note: order is significant - the case branches are not exclusive.
142
143 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
144 *:NetBSD:*:*)
145 # NetBSD (nbsd) targets should (where applicable) match one or
146 # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
147 # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
148 # switched to ELF, *-*-netbsd* would select the old
149 # object file format. This provides both forward
150 # compatibility and a consistent mechanism for selecting the
151 # object file format.
152 #
153 # Note: NetBSD doesn't particularly care about the vendor
154 # portion of the name. We always set it to "unknown".
155 sysctl="sysctl -n hw.machine_arch"
156 UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
157 /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
158 case "${UNAME_MACHINE_ARCH}" in
159 armeb) machine=armeb-unknown ;;
160 arm*) machine=arm-unknown ;;
161 sh3el) machine=shl-unknown ;;
162 sh3eb) machine=sh-unknown ;;
163 *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
164 esac
165 # The Operating System including object format, if it has switched
166 # to ELF recently, or will in the future.
167 case "${UNAME_MACHINE_ARCH}" in
168 arm*|i386|m68k|ns32k|sh3*|sparc|vax)
169 eval $set_cc_for_build
170 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
171 | grep __ELF__ >/dev/null
172 then
173 # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
174 # Return netbsd for either. FIX?
175 os=netbsd
176 else
177 os=netbsdelf
178 fi
179 ;;
180 *)
181 os=netbsd
182 ;;
183 esac
184 # The OS release
185 # Debian GNU/NetBSD machines have a different userland, and
186 # thus, need a distinct triplet. However, they do not need
187 # kernel version information, so it can be replaced with a
188 # suitable tag, in the style of linux-gnu.
189 case "${UNAME_VERSION}" in
190 Debian*)
191 release='-gnu'
192 ;;
193 *)
194 release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
195 ;;
196 esac
197 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
198 # contains redundant information, the shorter form:
199 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
200 echo "${machine}-${os}${release}"
201 exit ;;
202 *:OpenBSD:*:*)
203 UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
204 echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
205 exit ;;
206 *:ekkoBSD:*:*)
207 echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
208 exit ;;
209 *:SolidBSD:*:*)
210 echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
211 exit ;;
212 macppc:MirBSD:*:*)
213 echo powerpc-unknown-mirbsd${UNAME_RELEASE}
214 exit ;;
215 *:MirBSD:*:*)
216 echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
217 exit ;;
218 alpha:OSF1:*:*)
219 case $UNAME_RELEASE in
220 *4.0)
221 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
222 ;;
223 *5.*)
224 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
225 ;;
226 esac
227 # According to Compaq, /usr/sbin/psrinfo has been available on
228 # OSF/1 and Tru64 systems produced since 1995. I hope that
229 # covers most systems running today. This code pipes the CPU
230 # types through head -n 1, so we only detect the type of CPU 0.
231 ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
232 case "$ALPHA_CPU_TYPE" in
233 "EV4 (21064)")
234 UNAME_MACHINE="alpha" ;;
235 "EV4.5 (21064)")
236 UNAME_MACHINE="alpha" ;;
237 "LCA4 (21066/21068)")
238 UNAME_MACHINE="alpha" ;;
239 "EV5 (21164)")
240 UNAME_MACHINE="alphaev5" ;;
241 "EV5.6 (21164A)")
242 UNAME_MACHINE="alphaev56" ;;
243 "EV5.6 (21164PC)")
244 UNAME_MACHINE="alphapca56" ;;
245 "EV5.7 (21164PC)")
246 UNAME_MACHINE="alphapca57" ;;
247 "EV6 (21264)")
248 UNAME_MACHINE="alphaev6" ;;
249 "EV6.7 (21264A)")
250 UNAME_MACHINE="alphaev67" ;;
251 "EV6.8CB (21264C)")
252 UNAME_MACHINE="alphaev68" ;;
253 "EV6.8AL (21264B)")
254 UNAME_MACHINE="alphaev68" ;;
255 "EV6.8CX (21264D)")
256 UNAME_MACHINE="alphaev68" ;;
257 "EV6.9A (21264/EV69A)")
258 UNAME_MACHINE="alphaev69" ;;
259 "EV7 (21364)")
260 UNAME_MACHINE="alphaev7" ;;
261 "EV7.9 (21364A)")
262 UNAME_MACHINE="alphaev79" ;;
263 esac
264 # A Pn.n version is a patched version.
265 # A Vn.n version is a released version.
266 # A Tn.n version is a released field test version.
267 # A Xn.n version is an unreleased experimental baselevel.
268 # 1.2 uses "1.2" for uname -r.
269 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
270 exit ;;
271 Alpha\ *:Windows_NT*:*)
272 # How do we know it's Interix rather than the generic POSIX subsystem?
273 # Should we change UNAME_MACHINE based on the output of uname instead
274 # of the specific Alpha model?
275 echo alpha-pc-interix
276 exit ;;
277 21064:Windows_NT:50:3)
278 echo alpha-dec-winnt3.5
279 exit ;;
280 Amiga*:UNIX_System_V:4.0:*)
281 echo m68k-unknown-sysv4
282 exit ;;
283 *:[Aa]miga[Oo][Ss]:*:*)
284 echo ${UNAME_MACHINE}-unknown-amigaos
285 exit ;;
286 *:[Mm]orph[Oo][Ss]:*:*)
287 echo ${UNAME_MACHINE}-unknown-morphos
288 exit ;;
289 *:OS/390:*:*)
290 echo i370-ibm-openedition
291 exit ;;
292 *:z/VM:*:*)
293 echo s390-ibm-zvmoe
294 exit ;;
295 *:OS400:*:*)
296 echo powerpc-ibm-os400
297 exit ;;
298 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
299 echo arm-acorn-riscix${UNAME_RELEASE}
300 exit ;;
301 arm:riscos:*:*|arm:RISCOS:*:*)
302 echo arm-unknown-riscos
303 exit ;;
304 SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
305 echo hppa1.1-hitachi-hiuxmpp
306 exit ;;
307 Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
308 # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
309 if test "`(/bin/universe) 2>/dev/null`" = att ; then
310 echo pyramid-pyramid-sysv3
311 else
312 echo pyramid-pyramid-bsd
313 fi
314 exit ;;
315 NILE*:*:*:dcosx)
316 echo pyramid-pyramid-svr4
317 exit ;;
318 DRS?6000:unix:4.0:6*)
319 echo sparc-icl-nx6
320 exit ;;
321 DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
322 case `/usr/bin/uname -p` in
323 sparc) echo sparc-icl-nx7; exit ;;
324 esac ;;
325 sun4H:SunOS:5.*:*)
326 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
327 exit ;;
328 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
329 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
330 exit ;;
331 i86pc:SunOS:5.*:*)
332 echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
333 exit ;;
334 sun4*:SunOS:6*:*)
335 # According to config.sub, this is the proper way to canonicalize
336 # SunOS6. Hard to guess exactly what SunOS6 will be like, but
337 # it's likely to be more like Solaris than SunOS4.
338 echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
339 exit ;;
340 sun4*:SunOS:*:*)
341 case "`/usr/bin/arch -k`" in
342 Series*|S4*)
343 UNAME_RELEASE=`uname -v`
344 ;;
345 esac
346 # Japanese Language versions have a version number like `4.1.3-JL'.
347 echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
348 exit ;;
349 sun3*:SunOS:*:*)
350 echo m68k-sun-sunos${UNAME_RELEASE}
351 exit ;;
352 sun*:*:4.2BSD:*)
353 UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
354 test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
355 case "`/bin/arch`" in
356 sun3)
357 echo m68k-sun-sunos${UNAME_RELEASE}
358 ;;
359 sun4)
360 echo sparc-sun-sunos${UNAME_RELEASE}
361 ;;
362 esac
363 exit ;;
364 aushp:SunOS:*:*)
365 echo sparc-auspex-sunos${UNAME_RELEASE}
366 exit ;;
367 # The situation for MiNT is a little confusing. The machine name
368 # can be virtually everything (everything which is not
369 # "atarist" or "atariste" at least should have a processor
370 # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
371 # to the lowercase version "mint" (or "freemint"). Finally
372 # the system name "TOS" denotes a system which is actually not
373 # MiNT. But MiNT is downward compatible to TOS, so this should
374 # be no problem.
375 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
376 echo m68k-atari-mint${UNAME_RELEASE}
377 exit ;;
378 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
379 echo m68k-atari-mint${UNAME_RELEASE}
380 exit ;;
381 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
382 echo m68k-atari-mint${UNAME_RELEASE}
383 exit ;;
384 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
385 echo m68k-milan-mint${UNAME_RELEASE}
386 exit ;;
387 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
388 echo m68k-hades-mint${UNAME_RELEASE}
389 exit ;;
390 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
391 echo m68k-unknown-mint${UNAME_RELEASE}
392 exit ;;
393 m68k:machten:*:*)
394 echo m68k-apple-machten${UNAME_RELEASE}
395 exit ;;
396 powerpc:machten:*:*)
397 echo powerpc-apple-machten${UNAME_RELEASE}
398 exit ;;
399 RISC*:Mach:*:*)
400 echo mips-dec-mach_bsd4.3
401 exit ;;
402 RISC*:ULTRIX:*:*)
403 echo mips-dec-ultrix${UNAME_RELEASE}
404 exit ;;
405 VAX*:ULTRIX*:*:*)
406 echo vax-dec-ultrix${UNAME_RELEASE}
407 exit ;;
408 2020:CLIX:*:* | 2430:CLIX:*:*)
409 echo clipper-intergraph-clix${UNAME_RELEASE}
410 exit ;;
411 mips:*:*:UMIPS | mips:*:*:RISCos)
412 eval $set_cc_for_build
413 sed 's/^ //' << EOF >$dummy.c
414 #ifdef __cplusplus
415 #include <stdio.h> /* for printf() prototype */
416 int main (int argc, char *argv[]) {
417 #else
418 int main (argc, argv) int argc; char *argv[]; {
419 #endif
420 #if defined (host_mips) && defined (MIPSEB)
421 #if defined (SYSTYPE_SYSV)
422 printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
423 #endif
424 #if defined (SYSTYPE_SVR4)
425 printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
426 #endif
427 #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
428 printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
429 #endif
430 #endif
431 exit (-1);
432 }
433 EOF
434 $CC_FOR_BUILD -o $dummy $dummy.c &&
435 dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
436 SYSTEM_NAME=`$dummy $dummyarg` &&
437 { echo "$SYSTEM_NAME"; exit; }
438 echo mips-mips-riscos${UNAME_RELEASE}
439 exit ;;
440 Motorola:PowerMAX_OS:*:*)
441 echo powerpc-motorola-powermax
442 exit ;;
443 Motorola:*:4.3:PL8-*)
444 echo powerpc-harris-powermax
445 exit ;;
446 Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
447 echo powerpc-harris-powermax
448 exit ;;
449 Night_Hawk:Power_UNIX:*:*)
450 echo powerpc-harris-powerunix
451 exit ;;
452 m88k:CX/UX:7*:*)
453 echo m88k-harris-cxux7
454 exit ;;
455 m88k:*:4*:R4*)
456 echo m88k-motorola-sysv4
457 exit ;;
458 m88k:*:3*:R3*)
459 echo m88k-motorola-sysv3
460 exit ;;
461 AViiON:dgux:*:*)
462 # DG/UX returns AViiON for all architectures
463 UNAME_PROCESSOR=`/usr/bin/uname -p`
464 if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
465 then
466 if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
467 [ ${TARGET_BINARY_INTERFACE}x = x ]
468 then
469 echo m88k-dg-dgux${UNAME_RELEASE}
470 else
471 echo m88k-dg-dguxbcs${UNAME_RELEASE}
472 fi
473 else
474 echo i586-dg-dgux${UNAME_RELEASE}
475 fi
476 exit ;;
477 M88*:DolphinOS:*:*) # DolphinOS (SVR3)
478 echo m88k-dolphin-sysv3
479 exit ;;
480 M88*:*:R3*:*)
481 # Delta 88k system running SVR3
482 echo m88k-motorola-sysv3
483 exit ;;
484 XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
485 echo m88k-tektronix-sysv3
486 exit ;;
487 Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
488 echo m68k-tektronix-bsd
489 exit ;;
490 *:IRIX*:*:*)
491 echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
492 exit ;;
493 ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
494 echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
495 exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
496 i*86:AIX:*:*)
497 echo i386-ibm-aix
498 exit ;;
499 ia64:AIX:*:*)
500 if [ -x /usr/bin/oslevel ] ; then
501 IBM_REV=`/usr/bin/oslevel`
502 else
503 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
504 fi
505 echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
506 exit ;;
507 *:AIX:2:3)
508 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
509 eval $set_cc_for_build
510 sed 's/^ //' << EOF >$dummy.c
511 #include <sys/systemcfg.h>
512
513 main()
514 {
515 if (!__power_pc())
516 exit(1);
517 puts("powerpc-ibm-aix3.2.5");
518 exit(0);
519 }
520 EOF
521 if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
522 then
523 echo "$SYSTEM_NAME"
524 else
525 echo rs6000-ibm-aix3.2.5
526 fi
527 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
528 echo rs6000-ibm-aix3.2.4
529 else
530 echo rs6000-ibm-aix3.2
531 fi
532 exit ;;
533 *:AIX:*:[45])
534 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
535 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
536 IBM_ARCH=rs6000
537 else
538 IBM_ARCH=powerpc
539 fi
540 if [ -x /usr/bin/oslevel ] ; then
541 IBM_REV=`/usr/bin/oslevel`
542 else
543 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
544 fi
545 echo ${IBM_ARCH}-ibm-aix${IBM_REV}
546 exit ;;
547 *:AIX:*:*)
548 echo rs6000-ibm-aix
549 exit ;;
550 ibmrt:4.4BSD:*|romp-ibm:BSD:*)
551 echo romp-ibm-bsd4.4
552 exit ;;
553 ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
554 echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
555 exit ;; # report: romp-ibm BSD 4.3
556 *:BOSX:*:*)
557 echo rs6000-bull-bosx
558 exit ;;
559 DPX/2?00:B.O.S.:*:*)
560 echo m68k-bull-sysv3
561 exit ;;
562 9000/[34]??:4.3bsd:1.*:*)
563 echo m68k-hp-bsd
564 exit ;;
565 hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
566 echo m68k-hp-bsd4.4
567 exit ;;
568 9000/[34678]??:HP-UX:*:*)
569 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
570 case "${UNAME_MACHINE}" in
571 9000/31? ) HP_ARCH=m68000 ;;
572 9000/[34]?? ) HP_ARCH=m68k ;;
573 9000/[678][0-9][0-9])
574 if [ -x /usr/bin/getconf ]; then
575 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
576 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
577 case "${sc_cpu_version}" in
578 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
579 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
580 532) # CPU_PA_RISC2_0
581 case "${sc_kernel_bits}" in
582 32) HP_ARCH="hppa2.0n" ;;
583 64) HP_ARCH="hppa2.0w" ;;
584 '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
585 esac ;;
586 esac
587 fi
588 if [ "${HP_ARCH}" = "" ]; then
589 eval $set_cc_for_build
590 sed 's/^ //' << EOF >$dummy.c
591
592 #define _HPUX_SOURCE
593 #include <stdlib.h>
594 #include <unistd.h>
595
596 int main ()
597 {
598 #if defined(_SC_KERNEL_BITS)
599 long bits = sysconf(_SC_KERNEL_BITS);
600 #endif
601 long cpu = sysconf (_SC_CPU_VERSION);
602
603 switch (cpu)
604 {
605 case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
606 case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
607 case CPU_PA_RISC2_0:
608 #if defined(_SC_KERNEL_BITS)
609 switch (bits)
610 {
611 case 64: puts ("hppa2.0w"); break;
612 case 32: puts ("hppa2.0n"); break;
613 default: puts ("hppa2.0"); break;
614 } break;
615 #else /* !defined(_SC_KERNEL_BITS) */
616 puts ("hppa2.0"); break;
617 #endif
618 default: puts ("hppa1.0"); break;
619 }
620 exit (0);
621 }
622 EOF
623 (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
624 test -z "$HP_ARCH" && HP_ARCH=hppa
625 fi ;;
626 esac
627 if [ ${HP_ARCH} = "hppa2.0w" ]
628 then
629 eval $set_cc_for_build
630
631 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
632 # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
633 # generating 64-bit code. GNU and HP use different nomenclature:
634 #
635 # $ CC_FOR_BUILD=cc ./config.guess
636 # => hppa2.0w-hp-hpux11.23
637 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
638 # => hppa64-hp-hpux11.23
639
640 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
641 grep __LP64__ >/dev/null
642 then
643 HP_ARCH="hppa2.0w"
644 else
645 HP_ARCH="hppa64"
646 fi
647 fi
648 echo ${HP_ARCH}-hp-hpux${HPUX_REV}
649 exit ;;
650 ia64:HP-UX:*:*)
651 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
652 echo ia64-hp-hpux${HPUX_REV}
653 exit ;;
654 3050*:HI-UX:*:*)
655 eval $set_cc_for_build
656 sed 's/^ //' << EOF >$dummy.c
657 #include <unistd.h>
658 int
659 main ()
660 {
661 long cpu = sysconf (_SC_CPU_VERSION);
662 /* The order matters, because CPU_IS_HP_MC68K erroneously returns
663 true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
664 results, however. */
665 if (CPU_IS_PA_RISC (cpu))
666 {
667 switch (cpu)
668 {
669 case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
670 case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
671 case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
672 default: puts ("hppa-hitachi-hiuxwe2"); break;
673 }
674 }
675 else if (CPU_IS_HP_MC68K (cpu))
676 puts ("m68k-hitachi-hiuxwe2");
677 else puts ("unknown-hitachi-hiuxwe2");
678 exit (0);
679 }
680 EOF
681 $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
682 { echo "$SYSTEM_NAME"; exit; }
683 echo unknown-hitachi-hiuxwe2
684 exit ;;
685 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
686 echo hppa1.1-hp-bsd
687 exit ;;
688 9000/8??:4.3bsd:*:*)
689 echo hppa1.0-hp-bsd
690 exit ;;
691 *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
692 echo hppa1.0-hp-mpeix
693 exit ;;
694 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
695 echo hppa1.1-hp-osf
696 exit ;;
697 hp8??:OSF1:*:*)
698 echo hppa1.0-hp-osf
699 exit ;;
700 i*86:OSF1:*:*)
701 if [ -x /usr/sbin/sysversion ] ; then
702 echo ${UNAME_MACHINE}-unknown-osf1mk
703 else
704 echo ${UNAME_MACHINE}-unknown-osf1
705 fi
706 exit ;;
707 parisc*:Lites*:*:*)
708 echo hppa1.1-hp-lites
709 exit ;;
710 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
711 echo c1-convex-bsd
712 exit ;;
713 C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
714 if getsysinfo -f scalar_acc
715 then echo c32-convex-bsd
716 else echo c2-convex-bsd
717 fi
718 exit ;;
719 C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
720 echo c34-convex-bsd
721 exit ;;
722 C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
723 echo c38-convex-bsd
724 exit ;;
725 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
726 echo c4-convex-bsd
727 exit ;;
728 CRAY*Y-MP:*:*:*)
729 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
730 exit ;;
731 CRAY*[A-Z]90:*:*:*)
732 echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
733 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
734 -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
735 -e 's/\.[^.]*$/.X/'
736 exit ;;
737 CRAY*TS:*:*:*)
738 echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
739 exit ;;
740 CRAY*T3E:*:*:*)
741 echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
742 exit ;;
743 CRAY*SV1:*:*:*)
744 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
745 exit ;;
746 *:UNICOS/mp:*:*)
747 echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
748 exit ;;
749 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
750 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
751 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
752 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
753 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
754 exit ;;
755 5000:UNIX_System_V:4.*:*)
756 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
757 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
758 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
759 exit ;;
760 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
761 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
762 exit ;;
763 sparc*:BSD/OS:*:*)
764 echo sparc-unknown-bsdi${UNAME_RELEASE}
765 exit ;;
766 *:BSD/OS:*:*)
767 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
768 exit ;;
769 *:FreeBSD:*:*)
770 case ${UNAME_MACHINE} in
771 pc98)
772 echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
773 amd64)
774 echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
775 *)
776 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
777 esac
778 exit ;;
779 i*:CYGWIN*:*)
780 echo ${UNAME_MACHINE}-pc-cygwin
781 exit ;;
782 i*:MINGW*:*)
783 echo ${UNAME_MACHINE}-pc-mingw32
784 exit ;;
785 i*:windows32*:*)
786 # uname -m includes "-pc" on this system.
787 echo ${UNAME_MACHINE}-mingw32
788 exit ;;
789 i*:PW*:*)
790 echo ${UNAME_MACHINE}-pc-pw32
791 exit ;;
792 x86:Interix*:[3456]*)
793 echo i586-pc-interix${UNAME_RELEASE}
794 exit ;;
795 EM64T:Interix*:[3456]*)
796 echo x86_64-unknown-interix${UNAME_RELEASE}
797 exit ;;
798 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
799 echo i${UNAME_MACHINE}-pc-mks
800 exit ;;
801 i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
802 # How do we know it's Interix rather than the generic POSIX subsystem?
803 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
804 # UNAME_MACHINE based on the output of uname instead of i386?
805 echo i586-pc-interix
806 exit ;;
807 i*:UWIN*:*)
808 echo ${UNAME_MACHINE}-pc-uwin
809 exit ;;
810 amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
811 echo x86_64-unknown-cygwin
812 exit ;;
813 p*:CYGWIN*:*)
814 echo powerpcle-unknown-cygwin
815 exit ;;
816 prep*:SunOS:5.*:*)
817 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
818 exit ;;
819 *:GNU:*:*)
820 # the GNU system
821 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
822 exit ;;
823 *:GNU/*:*:*)
824 # other systems with GNU libc and userland
825 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
826 exit ;;
827 i*86:Minix:*:*)
828 echo ${UNAME_MACHINE}-pc-minix
829 exit ;;
830 arm*:Linux:*:*)
831 echo ${UNAME_MACHINE}-unknown-linux-gnu
832 exit ;;
833 avr32*:Linux:*:*)
834 echo ${UNAME_MACHINE}-unknown-linux-gnu
835 exit ;;
836 cris:Linux:*:*)
837 echo cris-axis-linux-gnu
838 exit ;;
839 crisv32:Linux:*:*)
840 echo crisv32-axis-linux-gnu
841 exit ;;
842 frv:Linux:*:*)
843 echo frv-unknown-linux-gnu
844 exit ;;
845 ia64:Linux:*:*)
846 echo ${UNAME_MACHINE}-unknown-linux-gnu
847 exit ;;
848 m32r*:Linux:*:*)
849 echo ${UNAME_MACHINE}-unknown-linux-gnu
850 exit ;;
851 m68*:Linux:*:*)
852 echo ${UNAME_MACHINE}-unknown-linux-gnu
853 exit ;;
854 mips:Linux:*:*)
855 eval $set_cc_for_build
856 sed 's/^ //' << EOF >$dummy.c
857 #undef CPU
858 #undef mips
859 #undef mipsel
860 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
861 CPU=mipsel
862 #else
863 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
864 CPU=mips
865 #else
866 CPU=
867 #endif
868 #endif
869 EOF
870 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
871 /^CPU/{
872 s: ::g
873 p
874 }'`"
875 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
876 ;;
877 mips64:Linux:*:*)
878 eval $set_cc_for_build
879 sed 's/^ //' << EOF >$dummy.c
880 #undef CPU
881 #undef mips64
882 #undef mips64el
883 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
884 CPU=mips64el
885 #else
886 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
887 CPU=mips64
888 #else
889 CPU=
890 #endif
891 #endif
892 EOF
893 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
894 /^CPU/{
895 s: ::g
896 p
897 }'`"
898 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
899 ;;
900 or32:Linux:*:*)
901 echo or32-unknown-linux-gnu
902 exit ;;
903 ppc:Linux:*:*)
904 echo powerpc-unknown-linux-gnu
905 exit ;;
906 ppc64:Linux:*:*)
907 echo powerpc64-unknown-linux-gnu
908 exit ;;
909 alpha:Linux:*:*)
910 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
911 EV5) UNAME_MACHINE=alphaev5 ;;
912 EV56) UNAME_MACHINE=alphaev56 ;;
913 PCA56) UNAME_MACHINE=alphapca56 ;;
914 PCA57) UNAME_MACHINE=alphapca56 ;;
915 EV6) UNAME_MACHINE=alphaev6 ;;
916 EV67) UNAME_MACHINE=alphaev67 ;;
917 EV68*) UNAME_MACHINE=alphaev68 ;;
918 esac
919 objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
920 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
921 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
922 exit ;;
923 parisc:Linux:*:* | hppa:Linux:*:*)
924 # Look for CPU level
925 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
926 PA7*) echo hppa1.1-unknown-linux-gnu ;;
927 PA8*) echo hppa2.0-unknown-linux-gnu ;;
928 *) echo hppa-unknown-linux-gnu ;;
929 esac
930 exit ;;
931 parisc64:Linux:*:* | hppa64:Linux:*:*)
932 echo hppa64-unknown-linux-gnu
933 exit ;;
934 s390:Linux:*:* | s390x:Linux:*:*)
935 echo ${UNAME_MACHINE}-ibm-linux
936 exit ;;
937 sh64*:Linux:*:*)
938 echo ${UNAME_MACHINE}-unknown-linux-gnu
939 exit ;;
940 sh*:Linux:*:*)
941 echo ${UNAME_MACHINE}-unknown-linux-gnu
942 exit ;;
943 sparc:Linux:*:* | sparc64:Linux:*:*)
944 echo ${UNAME_MACHINE}-unknown-linux-gnu
945 exit ;;
946 vax:Linux:*:*)
947 echo ${UNAME_MACHINE}-dec-linux-gnu
948 exit ;;
949 x86_64:Linux:*:*)
950 echo x86_64-unknown-linux-gnu
951 exit ;;
952 i*86:Linux:*:*)
953 # The BFD linker knows what the default object file format is, so
954 # first see if it will tell us. cd to the root directory to prevent
955 # problems with other programs or directories called `ld' in the path.
956 # Set LC_ALL=C to ensure ld outputs messages in English.
957 ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
958 | sed -ne '/supported targets:/!d
959 s/[ ][ ]*/ /g
960 s/.*supported targets: *//
961 s/ .*//
962 p'`
963 case "$ld_supported_targets" in
964 elf32-i386)
965 TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
966 ;;
967 a.out-i386-linux)
968 echo "${UNAME_MACHINE}-pc-linux-gnuaout"
969 exit ;;
970 coff-i386)
971 echo "${UNAME_MACHINE}-pc-linux-gnucoff"
972 exit ;;
973 "")
974 # Either a pre-BFD a.out linker (linux-gnuoldld) or
975 # one that does not give us useful --help.
976 echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
977 exit ;;
978 esac
979 # Determine whether the default compiler is a.out or elf
980 eval $set_cc_for_build
981 sed 's/^ //' << EOF >$dummy.c
982 #include <features.h>
983 #ifdef __ELF__
984 # ifdef __GLIBC__
985 # if __GLIBC__ >= 2
986 LIBC=gnu
987 # else
988 LIBC=gnulibc1
989 # endif
990 # else
991 LIBC=gnulibc1
992 # endif
993 #else
994 #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
995 LIBC=gnu
996 #else
997 LIBC=gnuaout
998 #endif
999 #endif
1000 #ifdef __dietlibc__
1001 LIBC=dietlibc
1002 #endif
1003 EOF
1004 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
1005 /^LIBC/{
1006 s: ::g
1007 p
1008 }'`"
1009 test x"${LIBC}" != x && {
1010 echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
1011 exit
1012 }
1013 test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
1014 ;;
1015 i*86:DYNIX/ptx:4*:*)
1016 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
1017 # earlier versions are messed up and put the nodename in both
1018 # sysname and nodename.
1019 echo i386-sequent-sysv4
1020 exit ;;
1021 i*86:UNIX_SV:4.2MP:2.*)
1022 # Unixware is an offshoot of SVR4, but it has its own version
1023 # number series starting with 2...
1024 # I am not positive that other SVR4 systems won't match this,
1025 # I just have to hope. -- rms.
1026 # Use sysv4.2uw... so that sysv4* matches it.
1027 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
1028 exit ;;
1029 i*86:OS/2:*:*)
1030 # If we were able to find `uname', then EMX Unix compatibility
1031 # is probably installed.
1032 echo ${UNAME_MACHINE}-pc-os2-emx
1033 exit ;;
1034 i*86:XTS-300:*:STOP)
1035 echo ${UNAME_MACHINE}-unknown-stop
1036 exit ;;
1037 i*86:atheos:*:*)
1038 echo ${UNAME_MACHINE}-unknown-atheos
1039 exit ;;
1040 i*86:syllable:*:*)
1041 echo ${UNAME_MACHINE}-pc-syllable
1042 exit ;;
1043 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
1044 echo i386-unknown-lynxos${UNAME_RELEASE}
1045 exit ;;
1046 i*86:*DOS:*:*)
1047 echo ${UNAME_MACHINE}-pc-msdosdjgpp
1048 exit ;;
1049 i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
1050 UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
1051 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
1052 echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
1053 else
1054 echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
1055 fi
1056 exit ;;
1057 i*86:*:5:[678]*)
1058 # UnixWare 7.x, OpenUNIX and OpenServer 6.
1059 case `/bin/uname -X | grep "^Machine"` in
1060 *486*) UNAME_MACHINE=i486 ;;
1061 *Pentium) UNAME_MACHINE=i586 ;;
1062 *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
1063 esac
1064 echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
1065 exit ;;
1066 i*86:*:3.2:*)
1067 if test -f /usr/options/cb.name; then
1068 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
1069 echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
1070 elif /bin/uname -X 2>/dev/null >/dev/null ; then
1071 UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
1072 (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
1073 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
1074 && UNAME_MACHINE=i586
1075 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
1076 && UNAME_MACHINE=i686
1077 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
1078 && UNAME_MACHINE=i686
1079 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
1080 else
1081 echo ${UNAME_MACHINE}-pc-sysv32
1082 fi
1083 exit ;;
1084 pc:*:*:*)
1085 # Left here for compatibility:
1086 # uname -m prints for DJGPP always 'pc', but it prints nothing about
1087 # the processor, so we play safe by assuming i386.
1088 echo i386-pc-msdosdjgpp
1089 exit ;;
1090 Intel:Mach:3*:*)
1091 echo i386-pc-mach3
1092 exit ;;
1093 paragon:*:*:*)
1094 echo i860-intel-osf1
1095 exit ;;
1096 i860:*:4.*:*) # i860-SVR4
1097 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
1098 echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
1099 else # Add other i860-SVR4 vendors below as they are discovered.
1100 echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
1101 fi
1102 exit ;;
1103 mini*:CTIX:SYS*5:*)
1104 # "miniframe"
1105 echo m68010-convergent-sysv
1106 exit ;;
1107 mc68k:UNIX:SYSTEM5:3.51m)
1108 echo m68k-convergent-sysv
1109 exit ;;
1110 M680?0:D-NIX:5.3:*)
1111 echo m68k-diab-dnix
1112 exit ;;
1113 M68*:*:R3V[5678]*:*)
1114 test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
1115 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)
1116 OS_REL=''
1117 test -r /etc/.relid \
1118 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1119 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1120 && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1121 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1122 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1123 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1124 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1125 && { echo i486-ncr-sysv4; exit; } ;;
1126 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1127 echo m68k-unknown-lynxos${UNAME_RELEASE}
1128 exit ;;
1129 mc68030:UNIX_System_V:4.*:*)
1130 echo m68k-atari-sysv4
1131 exit ;;
1132 TSUNAMI:LynxOS:2.*:*)
1133 echo sparc-unknown-lynxos${UNAME_RELEASE}
1134 exit ;;
1135 rs6000:LynxOS:2.*:*)
1136 echo rs6000-unknown-lynxos${UNAME_RELEASE}
1137 exit ;;
1138 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
1139 echo powerpc-unknown-lynxos${UNAME_RELEASE}
1140 exit ;;
1141 SM[BE]S:UNIX_SV:*:*)
1142 echo mips-dde-sysv${UNAME_RELEASE}
1143 exit ;;
1144 RM*:ReliantUNIX-*:*:*)
1145 echo mips-sni-sysv4
1146 exit ;;
1147 RM*:SINIX-*:*:*)
1148 echo mips-sni-sysv4
1149 exit ;;
1150 *:SINIX-*:*:*)
1151 if uname -p 2>/dev/null >/dev/null ; then
1152 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1153 echo ${UNAME_MACHINE}-sni-sysv4
1154 else
1155 echo ns32k-sni-sysv
1156 fi
1157 exit ;;
1158 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1159 # says <Richard.M.Bartel@ccMail.Census.GOV>
1160 echo i586-unisys-sysv4
1161 exit ;;
1162 *:UNIX_System_V:4*:FTX*)
1163 # From Gerald Hewes <hewes@openmarket.com>.
1164 # How about differentiating between stratus architectures? -djm
1165 echo hppa1.1-stratus-sysv4
1166 exit ;;
1167 *:*:*:FTX*)
1168 # From seanf@swdc.stratus.com.
1169 echo i860-stratus-sysv4
1170 exit ;;
1171 i*86:VOS:*:*)
1172 # From Paul.Green@stratus.com.
1173 echo ${UNAME_MACHINE}-stratus-vos
1174 exit ;;
1175 *:VOS:*:*)
1176 # From Paul.Green@stratus.com.
1177 echo hppa1.1-stratus-vos
1178 exit ;;
1179 mc68*:A/UX:*:*)
1180 echo m68k-apple-aux${UNAME_RELEASE}
1181 exit ;;
1182 news*:NEWS-OS:6*:*)
1183 echo mips-sony-newsos6
1184 exit ;;
1185 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
1186 if [ -d /usr/nec ]; then
1187 echo mips-nec-sysv${UNAME_RELEASE}
1188 else
1189 echo mips-unknown-sysv${UNAME_RELEASE}
1190 fi
1191 exit ;;
1192 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
1193 echo powerpc-be-beos
1194 exit ;;
1195 BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
1196 echo powerpc-apple-beos
1197 exit ;;
1198 BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
1199 echo i586-pc-beos
1200 exit ;;
1201 SX-4:SUPER-UX:*:*)
1202 echo sx4-nec-superux${UNAME_RELEASE}
1203 exit ;;
1204 SX-5:SUPER-UX:*:*)
1205 echo sx5-nec-superux${UNAME_RELEASE}
1206 exit ;;
1207 SX-6:SUPER-UX:*:*)
1208 echo sx6-nec-superux${UNAME_RELEASE}
1209 exit ;;
1210 Power*:Rhapsody:*:*)
1211 echo powerpc-apple-rhapsody${UNAME_RELEASE}
1212 exit ;;
1213 *:Rhapsody:*:*)
1214 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1215 exit ;;
1216 *:Darwin:*:*)
1217 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1218 case $UNAME_PROCESSOR in
1219 unknown) UNAME_PROCESSOR=powerpc ;;
1220 esac
1221 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1222 exit ;;
1223 *:procnto*:*:* | *:QNX:[0123456789]*:*)
1224 UNAME_PROCESSOR=`uname -p`
1225 if test "$UNAME_PROCESSOR" = "x86"; then
1226 UNAME_PROCESSOR=i386
1227 UNAME_MACHINE=pc
1228 fi
1229 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
1230 exit ;;
1231 *:QNX:*:4*)
1232 echo i386-pc-qnx
1233 exit ;;
1234 NSE-?:NONSTOP_KERNEL:*:*)
1235 echo nse-tandem-nsk${UNAME_RELEASE}
1236 exit ;;
1237 NSR-?:NONSTOP_KERNEL:*:*)
1238 echo nsr-tandem-nsk${UNAME_RELEASE}
1239 exit ;;
1240 *:NonStop-UX:*:*)
1241 echo mips-compaq-nonstopux
1242 exit ;;
1243 BS2000:POSIX*:*:*)
1244 echo bs2000-siemens-sysv
1245 exit ;;
1246 DS/*:UNIX_System_V:*:*)
1247 echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
1248 exit ;;
1249 *:Plan9:*:*)
1250 # "uname -m" is not consistent, so use $cputype instead. 386
1251 # is converted to i386 for consistency with other x86
1252 # operating systems.
1253 if test "$cputype" = "386"; then
1254 UNAME_MACHINE=i386
1255 else
1256 UNAME_MACHINE="$cputype"
1257 fi
1258 echo ${UNAME_MACHINE}-unknown-plan9
1259 exit ;;
1260 *:TOPS-10:*:*)
1261 echo pdp10-unknown-tops10
1262 exit ;;
1263 *:TENEX:*:*)
1264 echo pdp10-unknown-tenex
1265 exit ;;
1266 KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
1267 echo pdp10-dec-tops20
1268 exit ;;
1269 XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
1270 echo pdp10-xkl-tops20
1271 exit ;;
1272 *:TOPS-20:*:*)
1273 echo pdp10-unknown-tops20
1274 exit ;;
1275 *:ITS:*:*)
1276 echo pdp10-unknown-its
1277 exit ;;
1278 SEI:*:*:SEIUX)
1279 echo mips-sei-seiux${UNAME_RELEASE}
1280 exit ;;
1281 *:DragonFly:*:*)
1282 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1283 exit ;;
1284 *:*VMS:*:*)
1285 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1286 case "${UNAME_MACHINE}" in
1287 A*) echo alpha-dec-vms ; exit ;;
1288 I*) echo ia64-dec-vms ; exit ;;
1289 V*) echo vax-dec-vms ; exit ;;
1290 esac ;;
1291 *:XENIX:*:SysV)
1292 echo i386-pc-xenix
1293 exit ;;
1294 i*86:skyos:*:*)
1295 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
1296 exit ;;
1297 i*86:rdos:*:*)
1298 echo ${UNAME_MACHINE}-pc-rdos
1299 exit ;;
1300 esac
1301
1302 #echo '(No uname command or uname output not recognized.)' 1>&2
1303 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
1304
1305 eval $set_cc_for_build
1306 cat >$dummy.c <<EOF
1307 #ifdef _SEQUENT_
1308 # include <sys/types.h>
1309 # include <sys/utsname.h>
1310 #endif
1311 main ()
1312 {
1313 #if defined (sony)
1314 #if defined (MIPSEB)
1315 /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
1316 I don't know.... */
1317 printf ("mips-sony-bsd\n"); exit (0);
1318 #else
1319 #include <sys/param.h>
1320 printf ("m68k-sony-newsos%s\n",
1321 #ifdef NEWSOS4
1322 "4"
1323 #else
1324 ""
1325 #endif
1326 ); exit (0);
1327 #endif
1328 #endif
1329
1330 #if defined (__arm) && defined (__acorn) && defined (__unix)
1331 printf ("arm-acorn-riscix\n"); exit (0);
1332 #endif
1333
1334 #if defined (hp300) && !defined (hpux)
1335 printf ("m68k-hp-bsd\n"); exit (0);
1336 #endif
1337
1338 #if defined (NeXT)
1339 #if !defined (__ARCHITECTURE__)
1340 #define __ARCHITECTURE__ "m68k"
1341 #endif
1342 int version;
1343 version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
1344 if (version < 4)
1345 printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
1346 else
1347 printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
1348 exit (0);
1349 #endif
1350
1351 #if defined (MULTIMAX) || defined (n16)
1352 #if defined (UMAXV)
1353 printf ("ns32k-encore-sysv\n"); exit (0);
1354 #else
1355 #if defined (CMU)
1356 printf ("ns32k-encore-mach\n"); exit (0);
1357 #else
1358 printf ("ns32k-encore-bsd\n"); exit (0);
1359 #endif
1360 #endif
1361 #endif
1362
1363 #if defined (__386BSD__)
1364 printf ("i386-pc-bsd\n"); exit (0);
1365 #endif
1366
1367 #if defined (sequent)
1368 #if defined (i386)
1369 printf ("i386-sequent-dynix\n"); exit (0);
1370 #endif
1371 #if defined (ns32000)
1372 printf ("ns32k-sequent-dynix\n"); exit (0);
1373 #endif
1374 #endif
1375
1376 #if defined (_SEQUENT_)
1377 struct utsname un;
1378
1379 uname(&un);
1380
1381 if (strncmp(un.version, "V2", 2) == 0) {
1382 printf ("i386-sequent-ptx2\n"); exit (0);
1383 }
1384 if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
1385 printf ("i386-sequent-ptx1\n"); exit (0);
1386 }
1387 printf ("i386-sequent-ptx\n"); exit (0);
1388
1389 #endif
1390
1391 #if defined (vax)
1392 # if !defined (ultrix)
1393 # include <sys/param.h>
1394 # if defined (BSD)
1395 # if BSD == 43
1396 printf ("vax-dec-bsd4.3\n"); exit (0);
1397 # else
1398 # if BSD == 199006
1399 printf ("vax-dec-bsd4.3reno\n"); exit (0);
1400 # else
1401 printf ("vax-dec-bsd\n"); exit (0);
1402 # endif
1403 # endif
1404 # else
1405 printf ("vax-dec-bsd\n"); exit (0);
1406 # endif
1407 # else
1408 printf ("vax-dec-ultrix\n"); exit (0);
1409 # endif
1410 #endif
1411
1412 #if defined (alliant) && defined (i860)
1413 printf ("i860-alliant-bsd\n"); exit (0);
1414 #endif
1415
1416 exit (1);
1417 }
1418 EOF
1419
1420 $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
1421 { echo "$SYSTEM_NAME"; exit; }
1422
1423 # Apollos put the system type in the environment.
1424
1425 test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
1426
1427 # Convex versions that predate uname can use getsysinfo(1)
1428
1429 if [ -x /usr/convex/getsysinfo ]
1430 then
1431 case `getsysinfo -f cpu_type` in
1432 c1*)
1433 echo c1-convex-bsd
1434 exit ;;
1435 c2*)
1436 if getsysinfo -f scalar_acc
1437 then echo c32-convex-bsd
1438 else echo c2-convex-bsd
1439 fi
1440 exit ;;
1441 c34*)
1442 echo c34-convex-bsd
1443 exit ;;
1444 c38*)
1445 echo c38-convex-bsd
1446 exit ;;
1447 c4*)
1448 echo c4-convex-bsd
1449 exit ;;
1450 esac
1451 fi
1452
1453 cat >&2 <<EOF
1454 $0: unable to guess system type
1455
1456 This script, last modified $timestamp, has failed to recognize
1457 the operating system you are using. It is advised that you
1458 download the most up to date version of the config scripts from
1459
1460 http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
1461 and
1462 http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
1463
1464 If the version you run ($0) is already up to date, please
1465 send the following data and any information you think might be
1466 pertinent to <config-patches@gnu.org> in order to provide the needed
1467 information to handle your system.
1468
1469 config.guess timestamp = $timestamp
1470
1471 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1472 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1473 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1474 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1475
1476 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
1477 /bin/uname -X = `(/bin/uname -X) 2>/dev/null`
1478
1479 hostinfo = `(hostinfo) 2>/dev/null`
1480 /bin/universe = `(/bin/universe) 2>/dev/null`
1481 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
1482 /bin/arch = `(/bin/arch) 2>/dev/null`
1483 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
1484 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
1485
1486 UNAME_MACHINE = ${UNAME_MACHINE}
1487 UNAME_RELEASE = ${UNAME_RELEASE}
1488 UNAME_SYSTEM = ${UNAME_SYSTEM}
1489 UNAME_VERSION = ${UNAME_VERSION}
1490 EOF
1491
1492 exit 1
1493
1494 # Local variables:
1495 # eval: (add-hook 'write-file-hooks 'time-stamp)
1496 # time-stamp-start: "timestamp='"
1497 # time-stamp-format: "%:y-%02m-%02d"
1498 # time-stamp-end: "'"
1499 # End:
0 /* config.h.in. Generated from configure.ac by autoheader. */
1
2 /* debugging */
3 #undef DEBUG
4
5 /* Define to 1 if you have the <inttypes.h> header file. */
6 #undef HAVE_INTTYPES_H
7
8 /* Define to 1 if your system has a GNU libc compatible `malloc' function, and
9 to 0 otherwise. */
10 #undef HAVE_MALLOC
11
12 /* Define to 1 if you have the `memmove' function. */
13 #undef HAVE_MEMMOVE
14
15 /* Define to 1 if you have the <memory.h> header file. */
16 #undef HAVE_MEMORY_H
17
18 /* Define to 1 if you have the `memset' function. */
19 #undef HAVE_MEMSET
20
21 /* Define to 1 if stdbool.h conforms to C99. */
22 #undef HAVE_STDBOOL_H
23
24 /* Define to 1 if you have the <stdint.h> header file. */
25 #undef HAVE_STDINT_H
26
27 /* Define to 1 if you have the <stdlib.h> header file. */
28 #undef HAVE_STDLIB_H
29
30 /* Define to 1 if you have the `strcasecmp' function. */
31 #undef HAVE_STRCASECMP
32
33 /* Define to 1 if you have the `strchr' function. */
34 #undef HAVE_STRCHR
35
36 /* Define to 1 if you have the `strdup' function. */
37 #undef HAVE_STRDUP
38
39 /* Define to 1 if you have the <strings.h> header file. */
40 #undef HAVE_STRINGS_H
41
42 /* Define to 1 if you have the <string.h> header file. */
43 #undef HAVE_STRING_H
44
45 /* Define to 1 if you have the <sys/param.h> header file. */
46 #undef HAVE_SYS_PARAM_H
47
48 /* Define to 1 if you have the <sys/stat.h> header file. */
49 #undef HAVE_SYS_STAT_H
50
51 /* Define to 1 if you have the <sys/types.h> header file. */
52 #undef HAVE_SYS_TYPES_H
53
54 /* Define to 1 if you have the <unistd.h> header file. */
55 #undef HAVE_UNISTD_H
56
57 /* Define to 1 if the system has the type `_Bool'. */
58 #undef HAVE__BOOL
59
60 /* cech */
61 #undef LANG_CZ
62
63 /* english */
64 #undef LANG_EN
65
66 /* espanol */
67 #undef LANG_ES
68
69 /* french */
70 #undef LANG_FR
71
72 /* italian */
73 #undef LANG_IT
74
75 /* dutch */
76 #undef LANG_NL
77
78 /* Name of package */
79 #undef PACKAGE
80
81 /* Define to the address where bug reports for this package should be sent. */
82 #undef PACKAGE_BUGREPORT
83
84 /* Define to the full name of this package. */
85 #undef PACKAGE_NAME
86
87 /* Define to the full name and version of this package. */
88 #undef PACKAGE_STRING
89
90 /* Define to the one symbol short name of this package. */
91 #undef PACKAGE_TARNAME
92
93 /* Define to the version of this package. */
94 #undef PACKAGE_VERSION
95
96 /* Define to 1 if you have the ANSI C header files. */
97 #undef STDC_HEADERS
98
99 /* use the syslog feature */
100 #undef USE_SYSLOG
101
102 /* Version number of package */
103 #undef VERSION
104
105 /* absent */
106 #undef __NO_LOG_PERROR__
107
108 /* no syslog */
109 #undef __NO_SYSLOG__
110
111 /* Define to `__inline__' or `__inline' if that's what the C compiler
112 calls it, or to nothing if 'inline' is not supported under any name. */
113 #ifndef __cplusplus
114 #undef inline
115 #endif
116
117 /* Define to rpl_malloc if the replacement function should be used. */
118 #undef malloc
119
120 /* Define to `unsigned int' if <sys/types.h> does not define. */
121 #undef size_t
0 #! /bin/sh
1 # Configuration validation subroutine script.
2 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
4 # Inc.
5
6 timestamp='2006-09-20'
7
8 # This file is (in principle) common to ALL GNU software.
9 # The presence of a machine in this file suggests that SOME GNU software
10 # can handle that machine. It does not imply ALL GNU software can.
11 #
12 # This file is free software; you can redistribute it and/or modify
13 # it under the terms of the GNU General Public License as published by
14 # the Free Software Foundation; either version 2 of the License, or
15 # (at your option) any later version.
16 #
17 # This program is distributed in the hope that it will be useful,
18 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 # GNU General Public License for more details.
21 #
22 # You should have received a copy of the GNU General Public License
23 # along with this program; if not, write to the Free Software
24 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
25 # 02110-1301, USA.
26 #
27 # As a special exception to the GNU General Public License, if you
28 # distribute this file as part of a program that contains a
29 # configuration script generated by Autoconf, you may include it under
30 # the same distribution terms that you use for the rest of that program.
31
32
33 # Please send patches to <config-patches@gnu.org>. Submit a context
34 # diff and a properly formatted ChangeLog entry.
35 #
36 # Configuration subroutine to validate and canonicalize a configuration type.
37 # Supply the specified configuration type as an argument.
38 # If it is invalid, we print an error message on stderr and exit with code 1.
39 # Otherwise, we print the canonical config type on stdout and succeed.
40
41 # This file is supposed to be the same for all GNU packages
42 # and recognize all the CPU types, system types and aliases
43 # that are meaningful with *any* GNU software.
44 # Each package is responsible for reporting which valid configurations
45 # it does not support. The user should be able to distinguish
46 # a failure to support a valid configuration from a meaningless
47 # configuration.
48
49 # The goal of this file is to map all the various variations of a given
50 # machine specification into a single specification in the form:
51 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
52 # or in some cases, the newer four-part form:
53 # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
54 # It is wrong to echo any other type of specification.
55
56 me=`echo "$0" | sed -e 's,.*/,,'`
57
58 usage="\
59 Usage: $0 [OPTION] CPU-MFR-OPSYS
60 $0 [OPTION] ALIAS
61
62 Canonicalize a configuration name.
63
64 Operation modes:
65 -h, --help print this help, then exit
66 -t, --time-stamp print date of last modification, then exit
67 -v, --version print version number, then exit
68
69 Report bugs and patches to <config-patches@gnu.org>."
70
71 version="\
72 GNU config.sub ($timestamp)
73
74 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
75 Free Software Foundation, Inc.
76
77 This is free software; see the source for copying conditions. There is NO
78 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
79
80 help="
81 Try \`$me --help' for more information."
82
83 # Parse command line
84 while test $# -gt 0 ; do
85 case $1 in
86 --time-stamp | --time* | -t )
87 echo "$timestamp" ; exit ;;
88 --version | -v )
89 echo "$version" ; exit ;;
90 --help | --h* | -h )
91 echo "$usage"; exit ;;
92 -- ) # Stop option processing
93 shift; break ;;
94 - ) # Use stdin as input.
95 break ;;
96 -* )
97 echo "$me: invalid option $1$help"
98 exit 1 ;;
99
100 *local*)
101 # First pass through any local machine types.
102 echo $1
103 exit ;;
104
105 * )
106 break ;;
107 esac
108 done
109
110 case $# in
111 0) echo "$me: missing argument$help" >&2
112 exit 1;;
113 1) ;;
114 *) echo "$me: too many arguments$help" >&2
115 exit 1;;
116 esac
117
118 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
119 # Here we must recognize all the valid KERNEL-OS combinations.
120 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
121 case $maybe_os in
122 nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
123 uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
124 storm-chaos* | os2-emx* | rtmk-nova*)
125 os=-$maybe_os
126 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
127 ;;
128 *)
129 basic_machine=`echo $1 | sed 's/-[^-]*$//'`
130 if [ $basic_machine != $1 ]
131 then os=`echo $1 | sed 's/.*-/-/'`
132 else os=; fi
133 ;;
134 esac
135
136 ### Let's recognize common machines as not being operating systems so
137 ### that things like config.sub decstation-3100 work. We also
138 ### recognize some manufacturers as not being operating systems, so we
139 ### can provide default operating systems below.
140 case $os in
141 -sun*os*)
142 # Prevent following clause from handling this invalid input.
143 ;;
144 -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
145 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
146 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
147 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
148 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
149 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
150 -apple | -axis | -knuth | -cray)
151 os=
152 basic_machine=$1
153 ;;
154 -sim | -cisco | -oki | -wec | -winbond)
155 os=
156 basic_machine=$1
157 ;;
158 -scout)
159 ;;
160 -wrs)
161 os=-vxworks
162 basic_machine=$1
163 ;;
164 -chorusos*)
165 os=-chorusos
166 basic_machine=$1
167 ;;
168 -chorusrdb)
169 os=-chorusrdb
170 basic_machine=$1
171 ;;
172 -hiux*)
173 os=-hiuxwe2
174 ;;
175 -sco6)
176 os=-sco5v6
177 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
178 ;;
179 -sco5)
180 os=-sco3.2v5
181 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
182 ;;
183 -sco4)
184 os=-sco3.2v4
185 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
186 ;;
187 -sco3.2.[4-9]*)
188 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
189 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
190 ;;
191 -sco3.2v[4-9]*)
192 # Don't forget version if it is 3.2v4 or newer.
193 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
194 ;;
195 -sco5v6*)
196 # Don't forget version if it is 3.2v4 or newer.
197 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
198 ;;
199 -sco*)
200 os=-sco3.2v2
201 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
202 ;;
203 -udk*)
204 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
205 ;;
206 -isc)
207 os=-isc2.2
208 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
209 ;;
210 -clix*)
211 basic_machine=clipper-intergraph
212 ;;
213 -isc*)
214 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
215 ;;
216 -lynx*)
217 os=-lynxos
218 ;;
219 -ptx*)
220 basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
221 ;;
222 -windowsnt*)
223 os=`echo $os | sed -e 's/windowsnt/winnt/'`
224 ;;
225 -psos*)
226 os=-psos
227 ;;
228 -mint | -mint[0-9]*)
229 basic_machine=m68k-atari
230 os=-mint
231 ;;
232 esac
233
234 # Decode aliases for certain CPU-COMPANY combinations.
235 case $basic_machine in
236 # Recognize the basic CPU types without company name.
237 # Some are omitted here because they have special meanings below.
238 1750a | 580 \
239 | a29k \
240 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
241 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
242 | am33_2.0 \
243 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
244 | bfin \
245 | c4x | clipper \
246 | d10v | d30v | dlx | dsp16xx \
247 | fr30 | frv \
248 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
249 | i370 | i860 | i960 | ia64 \
250 | ip2k | iq2000 \
251 | m32c | m32r | m32rle | m68000 | m68k | m88k \
252 | maxq | mb | microblaze | mcore \
253 | mips | mipsbe | mipseb | mipsel | mipsle \
254 | mips16 \
255 | mips64 | mips64el \
256 | mips64vr | mips64vrel \
257 | mips64orion | mips64orionel \
258 | mips64vr4100 | mips64vr4100el \
259 | mips64vr4300 | mips64vr4300el \
260 | mips64vr5000 | mips64vr5000el \
261 | mips64vr5900 | mips64vr5900el \
262 | mipsisa32 | mipsisa32el \
263 | mipsisa32r2 | mipsisa32r2el \
264 | mipsisa64 | mipsisa64el \
265 | mipsisa64r2 | mipsisa64r2el \
266 | mipsisa64sb1 | mipsisa64sb1el \
267 | mipsisa64sr71k | mipsisa64sr71kel \
268 | mipstx39 | mipstx39el \
269 | mn10200 | mn10300 \
270 | mt \
271 | msp430 \
272 | nios | nios2 \
273 | ns16k | ns32k \
274 | or32 \
275 | pdp10 | pdp11 | pj | pjl \
276 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
277 | pyramid \
278 | score \
279 | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
280 | sh64 | sh64le \
281 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
282 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
283 | spu | strongarm \
284 | tahoe | thumb | tic4x | tic80 | tron \
285 | v850 | v850e \
286 | we32k \
287 | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
288 | z8k)
289 basic_machine=$basic_machine-unknown
290 ;;
291 m6811 | m68hc11 | m6812 | m68hc12)
292 # Motorola 68HC11/12.
293 basic_machine=$basic_machine-unknown
294 os=-none
295 ;;
296 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
297 ;;
298 ms1)
299 basic_machine=mt-unknown
300 ;;
301
302 # We use `pc' rather than `unknown'
303 # because (1) that's what they normally are, and
304 # (2) the word "unknown" tends to confuse beginning users.
305 i*86 | x86_64)
306 basic_machine=$basic_machine-pc
307 ;;
308 # Object if more than one company name word.
309 *-*-*)
310 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
311 exit 1
312 ;;
313 # Recognize the basic CPU types with company name.
314 580-* \
315 | a29k-* \
316 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
317 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
318 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
319 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
320 | avr-* | avr32-* \
321 | bfin-* | bs2000-* \
322 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
323 | clipper-* | craynv-* | cydra-* \
324 | d10v-* | d30v-* | dlx-* \
325 | elxsi-* \
326 | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
327 | h8300-* | h8500-* \
328 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
329 | i*86-* | i860-* | i960-* | ia64-* \
330 | ip2k-* | iq2000-* \
331 | m32c-* | m32r-* | m32rle-* \
332 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
333 | m88110-* | m88k-* | maxq-* | mcore-* \
334 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
335 | mips16-* \
336 | mips64-* | mips64el-* \
337 | mips64vr-* | mips64vrel-* \
338 | mips64orion-* | mips64orionel-* \
339 | mips64vr4100-* | mips64vr4100el-* \
340 | mips64vr4300-* | mips64vr4300el-* \
341 | mips64vr5000-* | mips64vr5000el-* \
342 | mips64vr5900-* | mips64vr5900el-* \
343 | mipsisa32-* | mipsisa32el-* \
344 | mipsisa32r2-* | mipsisa32r2el-* \
345 | mipsisa64-* | mipsisa64el-* \
346 | mipsisa64r2-* | mipsisa64r2el-* \
347 | mipsisa64sb1-* | mipsisa64sb1el-* \
348 | mipsisa64sr71k-* | mipsisa64sr71kel-* \
349 | mipstx39-* | mipstx39el-* \
350 | mmix-* \
351 | mt-* \
352 | msp430-* \
353 | nios-* | nios2-* \
354 | none-* | np1-* | ns16k-* | ns32k-* \
355 | orion-* \
356 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
357 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
358 | pyramid-* \
359 | romp-* | rs6000-* \
360 | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
361 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
362 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
363 | sparclite-* \
364 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
365 | tahoe-* | thumb-* \
366 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
367 | tron-* \
368 | v850-* | v850e-* | vax-* \
369 | we32k-* \
370 | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
371 | xstormy16-* | xtensa-* \
372 | ymp-* \
373 | z8k-*)
374 ;;
375 # Recognize the various machine names and aliases which stand
376 # for a CPU type and a company and sometimes even an OS.
377 386bsd)
378 basic_machine=i386-unknown
379 os=-bsd
380 ;;
381 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
382 basic_machine=m68000-att
383 ;;
384 3b*)
385 basic_machine=we32k-att
386 ;;
387 a29khif)
388 basic_machine=a29k-amd
389 os=-udi
390 ;;
391 abacus)
392 basic_machine=abacus-unknown
393 ;;
394 adobe68k)
395 basic_machine=m68010-adobe
396 os=-scout
397 ;;
398 alliant | fx80)
399 basic_machine=fx80-alliant
400 ;;
401 altos | altos3068)
402 basic_machine=m68k-altos
403 ;;
404 am29k)
405 basic_machine=a29k-none
406 os=-bsd
407 ;;
408 amd64)
409 basic_machine=x86_64-pc
410 ;;
411 amd64-*)
412 basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
413 ;;
414 amdahl)
415 basic_machine=580-amdahl
416 os=-sysv
417 ;;
418 amiga | amiga-*)
419 basic_machine=m68k-unknown
420 ;;
421 amigaos | amigados)
422 basic_machine=m68k-unknown
423 os=-amigaos
424 ;;
425 amigaunix | amix)
426 basic_machine=m68k-unknown
427 os=-sysv4
428 ;;
429 apollo68)
430 basic_machine=m68k-apollo
431 os=-sysv
432 ;;
433 apollo68bsd)
434 basic_machine=m68k-apollo
435 os=-bsd
436 ;;
437 aux)
438 basic_machine=m68k-apple
439 os=-aux
440 ;;
441 balance)
442 basic_machine=ns32k-sequent
443 os=-dynix
444 ;;
445 c90)
446 basic_machine=c90-cray
447 os=-unicos
448 ;;
449 convex-c1)
450 basic_machine=c1-convex
451 os=-bsd
452 ;;
453 convex-c2)
454 basic_machine=c2-convex
455 os=-bsd
456 ;;
457 convex-c32)
458 basic_machine=c32-convex
459 os=-bsd
460 ;;
461 convex-c34)
462 basic_machine=c34-convex
463 os=-bsd
464 ;;
465 convex-c38)
466 basic_machine=c38-convex
467 os=-bsd
468 ;;
469 cray | j90)
470 basic_machine=j90-cray
471 os=-unicos
472 ;;
473 craynv)
474 basic_machine=craynv-cray
475 os=-unicosmp
476 ;;
477 cr16c)
478 basic_machine=cr16c-unknown
479 os=-elf
480 ;;
481 crds | unos)
482 basic_machine=m68k-crds
483 ;;
484 crisv32 | crisv32-* | etraxfs*)
485 basic_machine=crisv32-axis
486 ;;
487 cris | cris-* | etrax*)
488 basic_machine=cris-axis
489 ;;
490 crx)
491 basic_machine=crx-unknown
492 os=-elf
493 ;;
494 da30 | da30-*)
495 basic_machine=m68k-da30
496 ;;
497 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
498 basic_machine=mips-dec
499 ;;
500 decsystem10* | dec10*)
501 basic_machine=pdp10-dec
502 os=-tops10
503 ;;
504 decsystem20* | dec20*)
505 basic_machine=pdp10-dec
506 os=-tops20
507 ;;
508 delta | 3300 | motorola-3300 | motorola-delta \
509 | 3300-motorola | delta-motorola)
510 basic_machine=m68k-motorola
511 ;;
512 delta88)
513 basic_machine=m88k-motorola
514 os=-sysv3
515 ;;
516 djgpp)
517 basic_machine=i586-pc
518 os=-msdosdjgpp
519 ;;
520 dpx20 | dpx20-*)
521 basic_machine=rs6000-bull
522 os=-bosx
523 ;;
524 dpx2* | dpx2*-bull)
525 basic_machine=m68k-bull
526 os=-sysv3
527 ;;
528 ebmon29k)
529 basic_machine=a29k-amd
530 os=-ebmon
531 ;;
532 elxsi)
533 basic_machine=elxsi-elxsi
534 os=-bsd
535 ;;
536 encore | umax | mmax)
537 basic_machine=ns32k-encore
538 ;;
539 es1800 | OSE68k | ose68k | ose | OSE)
540 basic_machine=m68k-ericsson
541 os=-ose
542 ;;
543 fx2800)
544 basic_machine=i860-alliant
545 ;;
546 genix)
547 basic_machine=ns32k-ns
548 ;;
549 gmicro)
550 basic_machine=tron-gmicro
551 os=-sysv
552 ;;
553 go32)
554 basic_machine=i386-pc
555 os=-go32
556 ;;
557 h3050r* | hiux*)
558 basic_machine=hppa1.1-hitachi
559 os=-hiuxwe2
560 ;;
561 h8300hms)
562 basic_machine=h8300-hitachi
563 os=-hms
564 ;;
565 h8300xray)
566 basic_machine=h8300-hitachi
567 os=-xray
568 ;;
569 h8500hms)
570 basic_machine=h8500-hitachi
571 os=-hms
572 ;;
573 harris)
574 basic_machine=m88k-harris
575 os=-sysv3
576 ;;
577 hp300-*)
578 basic_machine=m68k-hp
579 ;;
580 hp300bsd)
581 basic_machine=m68k-hp
582 os=-bsd
583 ;;
584 hp300hpux)
585 basic_machine=m68k-hp
586 os=-hpux
587 ;;
588 hp3k9[0-9][0-9] | hp9[0-9][0-9])
589 basic_machine=hppa1.0-hp
590 ;;
591 hp9k2[0-9][0-9] | hp9k31[0-9])
592 basic_machine=m68000-hp
593 ;;
594 hp9k3[2-9][0-9])
595 basic_machine=m68k-hp
596 ;;
597 hp9k6[0-9][0-9] | hp6[0-9][0-9])
598 basic_machine=hppa1.0-hp
599 ;;
600 hp9k7[0-79][0-9] | hp7[0-79][0-9])
601 basic_machine=hppa1.1-hp
602 ;;
603 hp9k78[0-9] | hp78[0-9])
604 # FIXME: really hppa2.0-hp
605 basic_machine=hppa1.1-hp
606 ;;
607 hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
608 # FIXME: really hppa2.0-hp
609 basic_machine=hppa1.1-hp
610 ;;
611 hp9k8[0-9][13679] | hp8[0-9][13679])
612 basic_machine=hppa1.1-hp
613 ;;
614 hp9k8[0-9][0-9] | hp8[0-9][0-9])
615 basic_machine=hppa1.0-hp
616 ;;
617 hppa-next)
618 os=-nextstep3
619 ;;
620 hppaosf)
621 basic_machine=hppa1.1-hp
622 os=-osf
623 ;;
624 hppro)
625 basic_machine=hppa1.1-hp
626 os=-proelf
627 ;;
628 i370-ibm* | ibm*)
629 basic_machine=i370-ibm
630 ;;
631 # I'm not sure what "Sysv32" means. Should this be sysv3.2?
632 i*86v32)
633 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
634 os=-sysv32
635 ;;
636 i*86v4*)
637 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
638 os=-sysv4
639 ;;
640 i*86v)
641 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
642 os=-sysv
643 ;;
644 i*86sol2)
645 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
646 os=-solaris2
647 ;;
648 i386mach)
649 basic_machine=i386-mach
650 os=-mach
651 ;;
652 i386-vsta | vsta)
653 basic_machine=i386-unknown
654 os=-vsta
655 ;;
656 iris | iris4d)
657 basic_machine=mips-sgi
658 case $os in
659 -irix*)
660 ;;
661 *)
662 os=-irix4
663 ;;
664 esac
665 ;;
666 isi68 | isi)
667 basic_machine=m68k-isi
668 os=-sysv
669 ;;
670 m88k-omron*)
671 basic_machine=m88k-omron
672 ;;
673 magnum | m3230)
674 basic_machine=mips-mips
675 os=-sysv
676 ;;
677 merlin)
678 basic_machine=ns32k-utek
679 os=-sysv
680 ;;
681 mingw32)
682 basic_machine=i386-pc
683 os=-mingw32
684 ;;
685 miniframe)
686 basic_machine=m68000-convergent
687 ;;
688 *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
689 basic_machine=m68k-atari
690 os=-mint
691 ;;
692 mips3*-*)
693 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
694 ;;
695 mips3*)
696 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
697 ;;
698 monitor)
699 basic_machine=m68k-rom68k
700 os=-coff
701 ;;
702 morphos)
703 basic_machine=powerpc-unknown
704 os=-morphos
705 ;;
706 msdos)
707 basic_machine=i386-pc
708 os=-msdos
709 ;;
710 ms1-*)
711 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
712 ;;
713 mvs)
714 basic_machine=i370-ibm
715 os=-mvs
716 ;;
717 ncr3000)
718 basic_machine=i486-ncr
719 os=-sysv4
720 ;;
721 netbsd386)
722 basic_machine=i386-unknown
723 os=-netbsd
724 ;;
725 netwinder)
726 basic_machine=armv4l-rebel
727 os=-linux
728 ;;
729 news | news700 | news800 | news900)
730 basic_machine=m68k-sony
731 os=-newsos
732 ;;
733 news1000)
734 basic_machine=m68030-sony
735 os=-newsos
736 ;;
737 news-3600 | risc-news)
738 basic_machine=mips-sony
739 os=-newsos
740 ;;
741 necv70)
742 basic_machine=v70-nec
743 os=-sysv
744 ;;
745 next | m*-next )
746 basic_machine=m68k-next
747 case $os in
748 -nextstep* )
749 ;;
750 -ns2*)
751 os=-nextstep2
752 ;;
753 *)
754 os=-nextstep3
755 ;;
756 esac
757 ;;
758 nh3000)
759 basic_machine=m68k-harris
760 os=-cxux
761 ;;
762 nh[45]000)
763 basic_machine=m88k-harris
764 os=-cxux
765 ;;
766 nindy960)
767 basic_machine=i960-intel
768 os=-nindy
769 ;;
770 mon960)
771 basic_machine=i960-intel
772 os=-mon960
773 ;;
774 nonstopux)
775 basic_machine=mips-compaq
776 os=-nonstopux
777 ;;
778 np1)
779 basic_machine=np1-gould
780 ;;
781 nsr-tandem)
782 basic_machine=nsr-tandem
783 ;;
784 op50n-* | op60c-*)
785 basic_machine=hppa1.1-oki
786 os=-proelf
787 ;;
788 openrisc | openrisc-*)
789 basic_machine=or32-unknown
790 ;;
791 os400)
792 basic_machine=powerpc-ibm
793 os=-os400
794 ;;
795 OSE68000 | ose68000)
796 basic_machine=m68000-ericsson
797 os=-ose
798 ;;
799 os68k)
800 basic_machine=m68k-none
801 os=-os68k
802 ;;
803 pa-hitachi)
804 basic_machine=hppa1.1-hitachi
805 os=-hiuxwe2
806 ;;
807 paragon)
808 basic_machine=i860-intel
809 os=-osf
810 ;;
811 pbd)
812 basic_machine=sparc-tti
813 ;;
814 pbb)
815 basic_machine=m68k-tti
816 ;;
817 pc532 | pc532-*)
818 basic_machine=ns32k-pc532
819 ;;
820 pc98)
821 basic_machine=i386-pc
822 ;;
823 pc98-*)
824 basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
825 ;;
826 pentium | p5 | k5 | k6 | nexgen | viac3)
827 basic_machine=i586-pc
828 ;;
829 pentiumpro | p6 | 6x86 | athlon | athlon_*)
830 basic_machine=i686-pc
831 ;;
832 pentiumii | pentium2 | pentiumiii | pentium3)
833 basic_machine=i686-pc
834 ;;
835 pentium4)
836 basic_machine=i786-pc
837 ;;
838 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
839 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
840 ;;
841 pentiumpro-* | p6-* | 6x86-* | athlon-*)
842 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
843 ;;
844 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
845 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
846 ;;
847 pentium4-*)
848 basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
849 ;;
850 pn)
851 basic_machine=pn-gould
852 ;;
853 power) basic_machine=power-ibm
854 ;;
855 ppc) basic_machine=powerpc-unknown
856 ;;
857 ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
858 ;;
859 ppcle | powerpclittle | ppc-le | powerpc-little)
860 basic_machine=powerpcle-unknown
861 ;;
862 ppcle-* | powerpclittle-*)
863 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
864 ;;
865 ppc64) basic_machine=powerpc64-unknown
866 ;;
867 ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
868 ;;
869 ppc64le | powerpc64little | ppc64-le | powerpc64-little)
870 basic_machine=powerpc64le-unknown
871 ;;
872 ppc64le-* | powerpc64little-*)
873 basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
874 ;;
875 ps2)
876 basic_machine=i386-ibm
877 ;;
878 pw32)
879 basic_machine=i586-unknown
880 os=-pw32
881 ;;
882 rdos)
883 basic_machine=i386-pc
884 os=-rdos
885 ;;
886 rom68k)
887 basic_machine=m68k-rom68k
888 os=-coff
889 ;;
890 rm[46]00)
891 basic_machine=mips-siemens
892 ;;
893 rtpc | rtpc-*)
894 basic_machine=romp-ibm
895 ;;
896 s390 | s390-*)
897 basic_machine=s390-ibm
898 ;;
899 s390x | s390x-*)
900 basic_machine=s390x-ibm
901 ;;
902 sa29200)
903 basic_machine=a29k-amd
904 os=-udi
905 ;;
906 sb1)
907 basic_machine=mipsisa64sb1-unknown
908 ;;
909 sb1el)
910 basic_machine=mipsisa64sb1el-unknown
911 ;;
912 sde)
913 basic_machine=mipsisa32-sde
914 os=-elf
915 ;;
916 sei)
917 basic_machine=mips-sei
918 os=-seiux
919 ;;
920 sequent)
921 basic_machine=i386-sequent
922 ;;
923 sh)
924 basic_machine=sh-hitachi
925 os=-hms
926 ;;
927 sh64)
928 basic_machine=sh64-unknown
929 ;;
930 sparclite-wrs | simso-wrs)
931 basic_machine=sparclite-wrs
932 os=-vxworks
933 ;;
934 sps7)
935 basic_machine=m68k-bull
936 os=-sysv2
937 ;;
938 spur)
939 basic_machine=spur-unknown
940 ;;
941 st2000)
942 basic_machine=m68k-tandem
943 ;;
944 stratus)
945 basic_machine=i860-stratus
946 os=-sysv4
947 ;;
948 sun2)
949 basic_machine=m68000-sun
950 ;;
951 sun2os3)
952 basic_machine=m68000-sun
953 os=-sunos3
954 ;;
955 sun2os4)
956 basic_machine=m68000-sun
957 os=-sunos4
958 ;;
959 sun3os3)
960 basic_machine=m68k-sun
961 os=-sunos3
962 ;;
963 sun3os4)
964 basic_machine=m68k-sun
965 os=-sunos4
966 ;;
967 sun4os3)
968 basic_machine=sparc-sun
969 os=-sunos3
970 ;;
971 sun4os4)
972 basic_machine=sparc-sun
973 os=-sunos4
974 ;;
975 sun4sol2)
976 basic_machine=sparc-sun
977 os=-solaris2
978 ;;
979 sun3 | sun3-*)
980 basic_machine=m68k-sun
981 ;;
982 sun4)
983 basic_machine=sparc-sun
984 ;;
985 sun386 | sun386i | roadrunner)
986 basic_machine=i386-sun
987 ;;
988 sv1)
989 basic_machine=sv1-cray
990 os=-unicos
991 ;;
992 symmetry)
993 basic_machine=i386-sequent
994 os=-dynix
995 ;;
996 t3e)
997 basic_machine=alphaev5-cray
998 os=-unicos
999 ;;
1000 t90)
1001 basic_machine=t90-cray
1002 os=-unicos
1003 ;;
1004 tic54x | c54x*)
1005 basic_machine=tic54x-unknown
1006 os=-coff
1007 ;;
1008 tic55x | c55x*)
1009 basic_machine=tic55x-unknown
1010 os=-coff
1011 ;;
1012 tic6x | c6x*)
1013 basic_machine=tic6x-unknown
1014 os=-coff
1015 ;;
1016 tx39)
1017 basic_machine=mipstx39-unknown
1018 ;;
1019 tx39el)
1020 basic_machine=mipstx39el-unknown
1021 ;;
1022 toad1)
1023 basic_machine=pdp10-xkl
1024 os=-tops20
1025 ;;
1026 tower | tower-32)
1027 basic_machine=m68k-ncr
1028 ;;
1029 tpf)
1030 basic_machine=s390x-ibm
1031 os=-tpf
1032 ;;
1033 udi29k)
1034 basic_machine=a29k-amd
1035 os=-udi
1036 ;;
1037 ultra3)
1038 basic_machine=a29k-nyu
1039 os=-sym1
1040 ;;
1041 v810 | necv810)
1042 basic_machine=v810-nec
1043 os=-none
1044 ;;
1045 vaxv)
1046 basic_machine=vax-dec
1047 os=-sysv
1048 ;;
1049 vms)
1050 basic_machine=vax-dec
1051 os=-vms
1052 ;;
1053 vpp*|vx|vx-*)
1054 basic_machine=f301-fujitsu
1055 ;;
1056 vxworks960)
1057 basic_machine=i960-wrs
1058 os=-vxworks
1059 ;;
1060 vxworks68)
1061 basic_machine=m68k-wrs
1062 os=-vxworks
1063 ;;
1064 vxworks29k)
1065 basic_machine=a29k-wrs
1066 os=-vxworks
1067 ;;
1068 w65*)
1069 basic_machine=w65-wdc
1070 os=-none
1071 ;;
1072 w89k-*)
1073 basic_machine=hppa1.1-winbond
1074 os=-proelf
1075 ;;
1076 xbox)
1077 basic_machine=i686-pc
1078 os=-mingw32
1079 ;;
1080 xps | xps100)
1081 basic_machine=xps100-honeywell
1082 ;;
1083 ymp)
1084 basic_machine=ymp-cray
1085 os=-unicos
1086 ;;
1087 z8k-*-coff)
1088 basic_machine=z8k-unknown
1089 os=-sim
1090 ;;
1091 none)
1092 basic_machine=none-none
1093 os=-none
1094 ;;
1095
1096 # Here we handle the default manufacturer of certain CPU types. It is in
1097 # some cases the only manufacturer, in others, it is the most popular.
1098 w89k)
1099 basic_machine=hppa1.1-winbond
1100 ;;
1101 op50n)
1102 basic_machine=hppa1.1-oki
1103 ;;
1104 op60c)
1105 basic_machine=hppa1.1-oki
1106 ;;
1107 romp)
1108 basic_machine=romp-ibm
1109 ;;
1110 mmix)
1111 basic_machine=mmix-knuth
1112 ;;
1113 rs6000)
1114 basic_machine=rs6000-ibm
1115 ;;
1116 vax)
1117 basic_machine=vax-dec
1118 ;;
1119 pdp10)
1120 # there are many clones, so DEC is not a safe bet
1121 basic_machine=pdp10-unknown
1122 ;;
1123 pdp11)
1124 basic_machine=pdp11-dec
1125 ;;
1126 we32k)
1127 basic_machine=we32k-att
1128 ;;
1129 sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
1130 basic_machine=sh-unknown
1131 ;;
1132 sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
1133 basic_machine=sparc-sun
1134 ;;
1135 cydra)
1136 basic_machine=cydra-cydrome
1137 ;;
1138 orion)
1139 basic_machine=orion-highlevel
1140 ;;
1141 orion105)
1142 basic_machine=clipper-highlevel
1143 ;;
1144 mac | mpw | mac-mpw)
1145 basic_machine=m68k-apple
1146 ;;
1147 pmac | pmac-mpw)
1148 basic_machine=powerpc-apple
1149 ;;
1150 *-unknown)
1151 # Make sure to match an already-canonicalized machine name.
1152 ;;
1153 *)
1154 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
1155 exit 1
1156 ;;
1157 esac
1158
1159 # Here we canonicalize certain aliases for manufacturers.
1160 case $basic_machine in
1161 *-digital*)
1162 basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
1163 ;;
1164 *-commodore*)
1165 basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
1166 ;;
1167 *)
1168 ;;
1169 esac
1170
1171 # Decode manufacturer-specific aliases for certain operating systems.
1172
1173 if [ x"$os" != x"" ]
1174 then
1175 case $os in
1176 # First match some system type aliases
1177 # that might get confused with valid system types.
1178 # -solaris* is a basic system type, with this one exception.
1179 -solaris1 | -solaris1.*)
1180 os=`echo $os | sed -e 's|solaris1|sunos4|'`
1181 ;;
1182 -solaris)
1183 os=-solaris2
1184 ;;
1185 -svr4*)
1186 os=-sysv4
1187 ;;
1188 -unixware*)
1189 os=-sysv4.2uw
1190 ;;
1191 -gnu/linux*)
1192 os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
1193 ;;
1194 # First accept the basic system types.
1195 # The portable systems comes first.
1196 # Each alternative MUST END IN A *, to match a version number.
1197 # -sysv* is not here because it comes later, after sysvr4.
1198 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1199 | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
1200 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
1201 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1202 | -aos* \
1203 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1204 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1205 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1206 | -openbsd* | -solidbsd* \
1207 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1208 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1209 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1210 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1211 | -chorusos* | -chorusrdb* \
1212 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1213 | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
1214 | -uxpv* | -beos* | -mpeix* | -udk* \
1215 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1216 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1217 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1218 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1219 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1220 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1221 | -skyos* | -haiku* | -rdos* | -toppers*)
1222 # Remember, each alternative MUST END IN *, to match a version number.
1223 ;;
1224 -qnx*)
1225 case $basic_machine in
1226 x86-* | i*86-*)
1227 ;;
1228 *)
1229 os=-nto$os
1230 ;;
1231 esac
1232 ;;
1233 -nto-qnx*)
1234 ;;
1235 -nto*)
1236 os=`echo $os | sed -e 's|nto|nto-qnx|'`
1237 ;;
1238 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1239 | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
1240 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
1241 ;;
1242 -mac*)
1243 os=`echo $os | sed -e 's|mac|macos|'`
1244 ;;
1245 -linux-dietlibc)
1246 os=-linux-dietlibc
1247 ;;
1248 -linux*)
1249 os=`echo $os | sed -e 's|linux|linux-gnu|'`
1250 ;;
1251 -sunos5*)
1252 os=`echo $os | sed -e 's|sunos5|solaris2|'`
1253 ;;
1254 -sunos6*)
1255 os=`echo $os | sed -e 's|sunos6|solaris3|'`
1256 ;;
1257 -opened*)
1258 os=-openedition
1259 ;;
1260 -os400*)
1261 os=-os400
1262 ;;
1263 -wince*)
1264 os=-wince
1265 ;;
1266 -osfrose*)
1267 os=-osfrose
1268 ;;
1269 -osf*)
1270 os=-osf
1271 ;;
1272 -utek*)
1273 os=-bsd
1274 ;;
1275 -dynix*)
1276 os=-bsd
1277 ;;
1278 -acis*)
1279 os=-aos
1280 ;;
1281 -atheos*)
1282 os=-atheos
1283 ;;
1284 -syllable*)
1285 os=-syllable
1286 ;;
1287 -386bsd)
1288 os=-bsd
1289 ;;
1290 -ctix* | -uts*)
1291 os=-sysv
1292 ;;
1293 -nova*)
1294 os=-rtmk-nova
1295 ;;
1296 -ns2 )
1297 os=-nextstep2
1298 ;;
1299 -nsk*)
1300 os=-nsk
1301 ;;
1302 # Preserve the version number of sinix5.
1303 -sinix5.*)
1304 os=`echo $os | sed -e 's|sinix|sysv|'`
1305 ;;
1306 -sinix*)
1307 os=-sysv4
1308 ;;
1309 -tpf*)
1310 os=-tpf
1311 ;;
1312 -triton*)
1313 os=-sysv3
1314 ;;
1315 -oss*)
1316 os=-sysv3
1317 ;;
1318 -svr4)
1319 os=-sysv4
1320 ;;
1321 -svr3)
1322 os=-sysv3
1323 ;;
1324 -sysvr4)
1325 os=-sysv4
1326 ;;
1327 # This must come after -sysvr4.
1328 -sysv*)
1329 ;;
1330 -ose*)
1331 os=-ose
1332 ;;
1333 -es1800*)
1334 os=-ose
1335 ;;
1336 -xenix)
1337 os=-xenix
1338 ;;
1339 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1340 os=-mint
1341 ;;
1342 -aros*)
1343 os=-aros
1344 ;;
1345 -kaos*)
1346 os=-kaos
1347 ;;
1348 -zvmoe)
1349 os=-zvmoe
1350 ;;
1351 -none)
1352 ;;
1353 *)
1354 # Get rid of the `-' at the beginning of $os.
1355 os=`echo $os | sed 's/[^-]*-//'`
1356 echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
1357 exit 1
1358 ;;
1359 esac
1360 else
1361
1362 # Here we handle the default operating systems that come with various machines.
1363 # The value should be what the vendor currently ships out the door with their
1364 # machine or put another way, the most popular os provided with the machine.
1365
1366 # Note that if you're going to try to match "-MANUFACTURER" here (say,
1367 # "-sun"), then you have to tell the case statement up towards the top
1368 # that MANUFACTURER isn't an operating system. Otherwise, code above
1369 # will signal an error saying that MANUFACTURER isn't an operating
1370 # system, and we'll never get to this point.
1371
1372 case $basic_machine in
1373 score-*)
1374 os=-elf
1375 ;;
1376 spu-*)
1377 os=-elf
1378 ;;
1379 *-acorn)
1380 os=-riscix1.2
1381 ;;
1382 arm*-rebel)
1383 os=-linux
1384 ;;
1385 arm*-semi)
1386 os=-aout
1387 ;;
1388 c4x-* | tic4x-*)
1389 os=-coff
1390 ;;
1391 # This must come before the *-dec entry.
1392 pdp10-*)
1393 os=-tops20
1394 ;;
1395 pdp11-*)
1396 os=-none
1397 ;;
1398 *-dec | vax-*)
1399 os=-ultrix4.2
1400 ;;
1401 m68*-apollo)
1402 os=-domain
1403 ;;
1404 i386-sun)
1405 os=-sunos4.0.2
1406 ;;
1407 m68000-sun)
1408 os=-sunos3
1409 # This also exists in the configure program, but was not the
1410 # default.
1411 # os=-sunos4
1412 ;;
1413 m68*-cisco)
1414 os=-aout
1415 ;;
1416 mips*-cisco)
1417 os=-elf
1418 ;;
1419 mips*-*)
1420 os=-elf
1421 ;;
1422 or32-*)
1423 os=-coff
1424 ;;
1425 *-tti) # must be before sparc entry or we get the wrong os.
1426 os=-sysv3
1427 ;;
1428 sparc-* | *-sun)
1429 os=-sunos4.1.1
1430 ;;
1431 *-be)
1432 os=-beos
1433 ;;
1434 *-haiku)
1435 os=-haiku
1436 ;;
1437 *-ibm)
1438 os=-aix
1439 ;;
1440 *-knuth)
1441 os=-mmixware
1442 ;;
1443 *-wec)
1444 os=-proelf
1445 ;;
1446 *-winbond)
1447 os=-proelf
1448 ;;
1449 *-oki)
1450 os=-proelf
1451 ;;
1452 *-hp)
1453 os=-hpux
1454 ;;
1455 *-hitachi)
1456 os=-hiux
1457 ;;
1458 i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
1459 os=-sysv
1460 ;;
1461 *-cbm)
1462 os=-amigaos
1463 ;;
1464 *-dg)
1465 os=-dgux
1466 ;;
1467 *-dolphin)
1468 os=-sysv3
1469 ;;
1470 m68k-ccur)
1471 os=-rtu
1472 ;;
1473 m88k-omron*)
1474 os=-luna
1475 ;;
1476 *-next )
1477 os=-nextstep
1478 ;;
1479 *-sequent)
1480 os=-ptx
1481 ;;
1482 *-crds)
1483 os=-unos
1484 ;;
1485 *-ns)
1486 os=-genix
1487 ;;
1488 i370-*)
1489 os=-mvs
1490 ;;
1491 *-next)
1492 os=-nextstep3
1493 ;;
1494 *-gould)
1495 os=-sysv
1496 ;;
1497 *-highlevel)
1498 os=-bsd
1499 ;;
1500 *-encore)
1501 os=-bsd
1502 ;;
1503 *-sgi)
1504 os=-irix
1505 ;;
1506 *-siemens)
1507 os=-sysv4
1508 ;;
1509 *-masscomp)
1510 os=-rtu
1511 ;;
1512 f30[01]-fujitsu | f700-fujitsu)
1513 os=-uxpv
1514 ;;
1515 *-rom68k)
1516 os=-coff
1517 ;;
1518 *-*bug)
1519 os=-coff
1520 ;;
1521 *-apple)
1522 os=-macos
1523 ;;
1524 *-atari*)
1525 os=-mint
1526 ;;
1527 *)
1528 os=-none
1529 ;;
1530 esac
1531 fi
1532
1533 # Here we handle the case where we know the os, and the CPU type, but not the
1534 # manufacturer. We pick the logical manufacturer.
1535 vendor=unknown
1536 case $basic_machine in
1537 *-unknown)
1538 case $os in
1539 -riscix*)
1540 vendor=acorn
1541 ;;
1542 -sunos*)
1543 vendor=sun
1544 ;;
1545 -aix*)
1546 vendor=ibm
1547 ;;
1548 -beos*)
1549 vendor=be
1550 ;;
1551 -hpux*)
1552 vendor=hp
1553 ;;
1554 -mpeix*)
1555 vendor=hp
1556 ;;
1557 -hiux*)
1558 vendor=hitachi
1559 ;;
1560 -unos*)
1561 vendor=crds
1562 ;;
1563 -dgux*)
1564 vendor=dg
1565 ;;
1566 -luna*)
1567 vendor=omron
1568 ;;
1569 -genix*)
1570 vendor=ns
1571 ;;
1572 -mvs* | -opened*)
1573 vendor=ibm
1574 ;;
1575 -os400*)
1576 vendor=ibm
1577 ;;
1578 -ptx*)
1579 vendor=sequent
1580 ;;
1581 -tpf*)
1582 vendor=ibm
1583 ;;
1584 -vxsim* | -vxworks* | -windiss*)
1585 vendor=wrs
1586 ;;
1587 -aux*)
1588 vendor=apple
1589 ;;
1590 -hms*)
1591 vendor=hitachi
1592 ;;
1593 -mpw* | -macos*)
1594 vendor=apple
1595 ;;
1596 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1597 vendor=atari
1598 ;;
1599 -vos*)
1600 vendor=stratus
1601 ;;
1602 esac
1603 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
1604 ;;
1605 esac
1606
1607 echo $basic_machine$os
1608 exit
1609
1610 # Local variables:
1611 # eval: (add-hook 'write-file-hooks 'time-stamp)
1612 # time-stamp-start: "timestamp='"
1613 # time-stamp-format: "%:y-%02m-%02d"
1614 # time-stamp-end: "'"
1615 # End:
0 #! /bin/sh
1 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.62 for pnm2ppa 1.13.
3 #
4 # Report bugs to <pnm2ppa-users@lists.sourceforge.net>.
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
13
14 # Be more Bourne compatible
15 DUALCASE=1; export DUALCASE # for MKS sh
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 setopt NO_GLOB_SUBST
23 else
24 case `(set -o) 2>/dev/null` in
25 *posix*) set -o posix ;;
26 esac
27
28 fi
29
30
31
32
33 # PATH needs CR
34 # Avoid depending upon Character Ranges.
35 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
38 as_cr_digits='0123456789'
39 as_cr_alnum=$as_cr_Letters$as_cr_digits
40
41 as_nl='
42 '
43 export as_nl
44 # Printing a long string crashes Solaris 7 /usr/bin/printf.
45 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
48 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='printf %s\n'
50 as_echo_n='printf %s'
51 else
52 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
53 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
54 as_echo_n='/usr/ucb/echo -n'
55 else
56 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
57 as_echo_n_body='eval
58 arg=$1;
59 case $arg in
60 *"$as_nl"*)
61 expr "X$arg" : "X\\(.*\\)$as_nl";
62 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 esac;
64 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 '
66 export as_echo_n_body
67 as_echo_n='sh -c $as_echo_n_body as_echo'
68 fi
69 export as_echo_body
70 as_echo='sh -c $as_echo_body as_echo'
71 fi
72
73 # The user is always right.
74 if test "${PATH_SEPARATOR+set}" != set; then
75 PATH_SEPARATOR=:
76 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
77 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
78 PATH_SEPARATOR=';'
79 }
80 fi
81
82 # Support unset when possible.
83 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
84 as_unset=unset
85 else
86 as_unset=false
87 fi
88
89
90 # IFS
91 # We need space, tab and new line, in precisely that order. Quoting is
92 # there to prevent editors from complaining about space-tab.
93 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
94 # splitting by setting IFS to empty value.)
95 IFS=" "" $as_nl"
96
97 # Find who we are. Look in the path if we contain no directory separator.
98 case $0 in
99 *[\\/]* ) as_myself=$0 ;;
100 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 for as_dir in $PATH
102 do
103 IFS=$as_save_IFS
104 test -z "$as_dir" && as_dir=.
105 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 done
107 IFS=$as_save_IFS
108
109 ;;
110 esac
111 # We did not find ourselves, most probably we were run as `sh COMMAND'
112 # in which case we are not to be found in the path.
113 if test "x$as_myself" = x; then
114 as_myself=$0
115 fi
116 if test ! -f "$as_myself"; then
117 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 { (exit 1); exit 1; }
119 fi
120
121 # Work around bugs in pre-3.0 UWIN ksh.
122 for as_var in ENV MAIL MAILPATH
123 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # Required to use basename.
136 if expr a : '\(a\)' >/dev/null 2>&1 &&
137 test "X`expr 00001 : '.*\(...\)'`" = X001; then
138 as_expr=expr
139 else
140 as_expr=false
141 fi
142
143 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
144 as_basename=basename
145 else
146 as_basename=false
147 fi
148
149
150 # Name of the executable.
151 as_me=`$as_basename -- "$0" ||
152 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
153 X"$0" : 'X\(//\)$' \| \
154 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
155 $as_echo X/"$0" |
156 sed '/^.*\/\([^/][^/]*\)\/*$/{
157 s//\1/
158 q
159 }
160 /^X\/\(\/\/\)$/{
161 s//\1/
162 q
163 }
164 /^X\/\(\/\).*/{
165 s//\1/
166 q
167 }
168 s/.*/./; q'`
169
170 # CDPATH.
171 $as_unset CDPATH
172
173
174 if test "x$CONFIG_SHELL" = x; then
175 if (eval ":") 2>/dev/null; then
176 as_have_required=yes
177 else
178 as_have_required=no
179 fi
180
181 if test $as_have_required = yes && (eval ":
182 (as_func_return () {
183 (exit \$1)
184 }
185 as_func_success () {
186 as_func_return 0
187 }
188 as_func_failure () {
189 as_func_return 1
190 }
191 as_func_ret_success () {
192 return 0
193 }
194 as_func_ret_failure () {
195 return 1
196 }
197
198 exitcode=0
199 if as_func_success; then
200 :
201 else
202 exitcode=1
203 echo as_func_success failed.
204 fi
205
206 if as_func_failure; then
207 exitcode=1
208 echo as_func_failure succeeded.
209 fi
210
211 if as_func_ret_success; then
212 :
213 else
214 exitcode=1
215 echo as_func_ret_success failed.
216 fi
217
218 if as_func_ret_failure; then
219 exitcode=1
220 echo as_func_ret_failure succeeded.
221 fi
222
223 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
224 :
225 else
226 exitcode=1
227 echo positional parameters were not saved.
228 fi
229
230 test \$exitcode = 0) || { (exit 1); exit 1; }
231
232 (
233 as_lineno_1=\$LINENO
234 as_lineno_2=\$LINENO
235 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
236 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
237 ") 2> /dev/null; then
238 :
239 else
240 as_candidate_shells=
241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
242 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
243 do
244 IFS=$as_save_IFS
245 test -z "$as_dir" && as_dir=.
246 case $as_dir in
247 /*)
248 for as_base in sh bash ksh sh5; do
249 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
250 done;;
251 esac
252 done
253 IFS=$as_save_IFS
254
255
256 for as_shell in $as_candidate_shells $SHELL; do
257 # Try only shells that exist, to save several forks.
258 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
259 { ("$as_shell") 2> /dev/null <<\_ASEOF
260 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
261 emulate sh
262 NULLCMD=:
263 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
264 # is contrary to our usage. Disable this feature.
265 alias -g '${1+"$@"}'='"$@"'
266 setopt NO_GLOB_SUBST
267 else
268 case `(set -o) 2>/dev/null` in
269 *posix*) set -o posix ;;
270 esac
271
272 fi
273
274
275 :
276 _ASEOF
277 }; then
278 CONFIG_SHELL=$as_shell
279 as_have_required=yes
280 if { "$as_shell" 2> /dev/null <<\_ASEOF
281 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
282 emulate sh
283 NULLCMD=:
284 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
285 # is contrary to our usage. Disable this feature.
286 alias -g '${1+"$@"}'='"$@"'
287 setopt NO_GLOB_SUBST
288 else
289 case `(set -o) 2>/dev/null` in
290 *posix*) set -o posix ;;
291 esac
292
293 fi
294
295
296 :
297 (as_func_return () {
298 (exit $1)
299 }
300 as_func_success () {
301 as_func_return 0
302 }
303 as_func_failure () {
304 as_func_return 1
305 }
306 as_func_ret_success () {
307 return 0
308 }
309 as_func_ret_failure () {
310 return 1
311 }
312
313 exitcode=0
314 if as_func_success; then
315 :
316 else
317 exitcode=1
318 echo as_func_success failed.
319 fi
320
321 if as_func_failure; then
322 exitcode=1
323 echo as_func_failure succeeded.
324 fi
325
326 if as_func_ret_success; then
327 :
328 else
329 exitcode=1
330 echo as_func_ret_success failed.
331 fi
332
333 if as_func_ret_failure; then
334 exitcode=1
335 echo as_func_ret_failure succeeded.
336 fi
337
338 if ( set x; as_func_ret_success y && test x = "$1" ); then
339 :
340 else
341 exitcode=1
342 echo positional parameters were not saved.
343 fi
344
345 test $exitcode = 0) || { (exit 1); exit 1; }
346
347 (
348 as_lineno_1=$LINENO
349 as_lineno_2=$LINENO
350 test "x$as_lineno_1" != "x$as_lineno_2" &&
351 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
352
353 _ASEOF
354 }; then
355 break
356 fi
357
358 fi
359
360 done
361
362 if test "x$CONFIG_SHELL" != x; then
363 for as_var in BASH_ENV ENV
364 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
365 done
366 export CONFIG_SHELL
367 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
368 fi
369
370
371 if test $as_have_required = no; then
372 echo This script requires a shell more modern than all the
373 echo shells that I found on your system. Please install a
374 echo modern shell, or manually run the script under such a
375 echo shell if you do have one.
376 { (exit 1); exit 1; }
377 fi
378
379
380 fi
381
382 fi
383
384
385
386 (eval "as_func_return () {
387 (exit \$1)
388 }
389 as_func_success () {
390 as_func_return 0
391 }
392 as_func_failure () {
393 as_func_return 1
394 }
395 as_func_ret_success () {
396 return 0
397 }
398 as_func_ret_failure () {
399 return 1
400 }
401
402 exitcode=0
403 if as_func_success; then
404 :
405 else
406 exitcode=1
407 echo as_func_success failed.
408 fi
409
410 if as_func_failure; then
411 exitcode=1
412 echo as_func_failure succeeded.
413 fi
414
415 if as_func_ret_success; then
416 :
417 else
418 exitcode=1
419 echo as_func_ret_success failed.
420 fi
421
422 if as_func_ret_failure; then
423 exitcode=1
424 echo as_func_ret_failure succeeded.
425 fi
426
427 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
428 :
429 else
430 exitcode=1
431 echo positional parameters were not saved.
432 fi
433
434 test \$exitcode = 0") || {
435 echo No shell found that supports shell functions.
436 echo Please tell bug-autoconf@gnu.org about your system,
437 echo including any error possibly output before this message.
438 echo This can help us improve future autoconf versions.
439 echo Configuration will now proceed without shell functions.
440 }
441
442
443
444 as_lineno_1=$LINENO
445 as_lineno_2=$LINENO
446 test "x$as_lineno_1" != "x$as_lineno_2" &&
447 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448
449 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
450 # uniformly replaced by the line number. The first 'sed' inserts a
451 # line-number line after each line using $LINENO; the second 'sed'
452 # does the real work. The second script uses 'N' to pair each
453 # line-number line with the line containing $LINENO, and appends
454 # trailing '-' during substitution so that $LINENO is not a special
455 # case at line end.
456 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
457 # scripts with optimization help from Paolo Bonzini. Blame Lee
458 # E. McMahon (1931-1989) for sed's syntax. :-)
459 sed -n '
460 p
461 /[$]LINENO/=
462 ' <$as_myself |
463 sed '
464 s/[$]LINENO.*/&-/
465 t lineno
466 b
467 :lineno
468 N
469 :loop
470 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
471 t loop
472 s/-\n.*//
473 ' >$as_me.lineno &&
474 chmod +x "$as_me.lineno" ||
475 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
476 { (exit 1); exit 1; }; }
477
478 # Don't try to exec as it changes $[0], causing all sort of problems
479 # (the dirname of $[0] is not the place where we might find the
480 # original and so on. Autoconf is especially sensitive to this).
481 . "./$as_me.lineno"
482 # Exit status is that of the last command.
483 exit
484 }
485
486
487 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
488 as_dirname=dirname
489 else
490 as_dirname=false
491 fi
492
493 ECHO_C= ECHO_N= ECHO_T=
494 case `echo -n x` in
495 -n*)
496 case `echo 'x\c'` in
497 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
498 *) ECHO_C='\c';;
499 esac;;
500 *)
501 ECHO_N='-n';;
502 esac
503 if expr a : '\(a\)' >/dev/null 2>&1 &&
504 test "X`expr 00001 : '.*\(...\)'`" = X001; then
505 as_expr=expr
506 else
507 as_expr=false
508 fi
509
510 rm -f conf$$ conf$$.exe conf$$.file
511 if test -d conf$$.dir; then
512 rm -f conf$$.dir/conf$$.file
513 else
514 rm -f conf$$.dir
515 mkdir conf$$.dir 2>/dev/null
516 fi
517 if (echo >conf$$.file) 2>/dev/null; then
518 if ln -s conf$$.file conf$$ 2>/dev/null; then
519 as_ln_s='ln -s'
520 # ... but there are two gotchas:
521 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
522 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
523 # In both cases, we have to default to `cp -p'.
524 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
525 as_ln_s='cp -p'
526 elif ln conf$$.file conf$$ 2>/dev/null; then
527 as_ln_s=ln
528 else
529 as_ln_s='cp -p'
530 fi
531 else
532 as_ln_s='cp -p'
533 fi
534 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
535 rmdir conf$$.dir 2>/dev/null
536
537 if mkdir -p . 2>/dev/null; then
538 as_mkdir_p=:
539 else
540 test -d ./-p && rmdir ./-p
541 as_mkdir_p=false
542 fi
543
544 if test -x / >/dev/null 2>&1; then
545 as_test_x='test -x'
546 else
547 if ls -dL / >/dev/null 2>&1; then
548 as_ls_L_option=L
549 else
550 as_ls_L_option=
551 fi
552 as_test_x='
553 eval sh -c '\''
554 if test -d "$1"; then
555 test -d "$1/.";
556 else
557 case $1 in
558 -*)set "./$1";;
559 esac;
560 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
561 ???[sx]*):;;*)false;;esac;fi
562 '\'' sh
563 '
564 fi
565 as_executable_p=$as_test_x
566
567 # Sed expression to map a string onto a valid CPP name.
568 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569
570 # Sed expression to map a string onto a valid variable name.
571 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
572
573
574
575 exec 7<&0 </dev/null 6>&1
576
577 # Name of the host.
578 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
579 # so uname gets run too.
580 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581
582 #
583 # Initializations.
584 #
585 ac_default_prefix=/usr/local
586 ac_clean_files=
587 ac_config_libobj_dir=.
588 LIBOBJS=
589 cross_compiling=no
590 subdirs=
591 MFLAGS=
592 MAKEFLAGS=
593 SHELL=${CONFIG_SHELL-/bin/sh}
594
595 # Identity of this package.
596 PACKAGE_NAME='pnm2ppa'
597 PACKAGE_TARNAME='pnm2ppa'
598 PACKAGE_VERSION='1.13'
599 PACKAGE_STRING='pnm2ppa 1.13'
600 PACKAGE_BUGREPORT='pnm2ppa-users@lists.sourceforge.net'
601
602 ac_unique_file="ppa.c"
603 # Factoring default headers for most tests.
604 ac_includes_default="\
605 #include <stdio.h>
606 #ifdef HAVE_SYS_TYPES_H
607 # include <sys/types.h>
608 #endif
609 #ifdef HAVE_SYS_STAT_H
610 # include <sys/stat.h>
611 #endif
612 #ifdef STDC_HEADERS
613 # include <stdlib.h>
614 # include <stddef.h>
615 #else
616 # ifdef HAVE_STDLIB_H
617 # include <stdlib.h>
618 # endif
619 #endif
620 #ifdef HAVE_STRING_H
621 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622 # include <memory.h>
623 # endif
624 # include <string.h>
625 #endif
626 #ifdef HAVE_STRINGS_H
627 # include <strings.h>
628 #endif
629 #ifdef HAVE_INTTYPES_H
630 # include <inttypes.h>
631 #endif
632 #ifdef HAVE_STDINT_H
633 # include <stdint.h>
634 #endif
635 #ifdef HAVE_UNISTD_H
636 # include <unistd.h>
637 #endif"
638
639 ac_subst_vars='SHELL
640 PATH_SEPARATOR
641 PACKAGE_NAME
642 PACKAGE_TARNAME
643 PACKAGE_VERSION
644 PACKAGE_STRING
645 PACKAGE_BUGREPORT
646 exec_prefix
647 prefix
648 program_transform_name
649 bindir
650 sbindir
651 libexecdir
652 datarootdir
653 datadir
654 sysconfdir
655 sharedstatedir
656 localstatedir
657 includedir
658 oldincludedir
659 docdir
660 infodir
661 htmldir
662 dvidir
663 pdfdir
664 psdir
665 libdir
666 localedir
667 mandir
668 DEFS
669 ECHO_C
670 ECHO_N
671 ECHO_T
672 LIBS
673 build_alias
674 host_alias
675 target_alias
676 build
677 build_cpu
678 build_vendor
679 build_os
680 host
681 host_cpu
682 host_vendor
683 host_os
684 MAINTAINER_MODE_TRUE
685 MAINTAINER_MODE_FALSE
686 MAINT
687 INSTALL_PROGRAM
688 INSTALL_SCRIPT
689 INSTALL_DATA
690 am__isrc
691 CYGPATH_W
692 PACKAGE
693 VERSION
694 ACLOCAL
695 AUTOCONF
696 AUTOMAKE
697 AUTOHEADER
698 MAKEINFO
699 install_sh
700 STRIP
701 INSTALL_STRIP_PROGRAM
702 MKDIR_P
703 mkdir_p
704 AWK
705 SET_MAKE
706 am__leading_dot
707 AMTAR
708 am__tar
709 am__untar
710 CC
711 CFLAGS
712 LDFLAGS
713 CPPFLAGS
714 ac_ct_CC
715 EXEEXT
716 OBJEXT
717 DEPDIR
718 am__include
719 am__quote
720 AMDEP_TRUE
721 AMDEP_FALSE
722 AMDEPBACKSLASH
723 CCDEPMODE
724 am__fastdepCC_TRUE
725 am__fastdepCC_FALSE
726 CC_FOR_BUILD
727 CPP
728 GREP
729 EGREP
730 LIBOBJS
731 PNM2PPA_DEBUG_TRUE
732 PNM2PPA_DEBUG_FALSE
733 BUILD_PARSE_VLINK_TRUE
734 BUILD_PARSE_VLINK_FALSE
735 LTLIBOBJS'
736 ac_subst_files=''
737 ac_user_opts='
738 enable_option_checking
739 enable_maintainer_mode
740 enable_dependency_tracking
741 enable_syslog
742 enable_debug
743 with_language
744 enable_vlink
745 '
746 ac_precious_vars='build_alias
747 host_alias
748 target_alias
749 CC
750 CFLAGS
751 LDFLAGS
752 LIBS
753 CPPFLAGS
754 CPP'
755
756
757 # Initialize some variables set by options.
758 ac_init_help=
759 ac_init_version=false
760 ac_unrecognized_opts=
761 ac_unrecognized_sep=
762 # The variables have the same names as the options, with
763 # dashes changed to underlines.
764 cache_file=/dev/null
765 exec_prefix=NONE
766 no_create=
767 no_recursion=
768 prefix=NONE
769 program_prefix=NONE
770 program_suffix=NONE
771 program_transform_name=s,x,x,
772 silent=
773 site=
774 srcdir=
775 verbose=
776 x_includes=NONE
777 x_libraries=NONE
778
779 # Installation directory options.
780 # These are left unexpanded so users can "make install exec_prefix=/foo"
781 # and all the variables that are supposed to be based on exec_prefix
782 # by default will actually change.
783 # Use braces instead of parens because sh, perl, etc. also accept them.
784 # (The list follows the same order as the GNU Coding Standards.)
785 bindir='${exec_prefix}/bin'
786 sbindir='${exec_prefix}/sbin'
787 libexecdir='${exec_prefix}/libexec'
788 datarootdir='${prefix}/share'
789 datadir='${datarootdir}'
790 sysconfdir='${prefix}/etc'
791 sharedstatedir='${prefix}/com'
792 localstatedir='${prefix}/var'
793 includedir='${prefix}/include'
794 oldincludedir='/usr/include'
795 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
796 infodir='${datarootdir}/info'
797 htmldir='${docdir}'
798 dvidir='${docdir}'
799 pdfdir='${docdir}'
800 psdir='${docdir}'
801 libdir='${exec_prefix}/lib'
802 localedir='${datarootdir}/locale'
803 mandir='${datarootdir}/man'
804
805 ac_prev=
806 ac_dashdash=
807 for ac_option
808 do
809 # If the previous option needs an argument, assign it.
810 if test -n "$ac_prev"; then
811 eval $ac_prev=\$ac_option
812 ac_prev=
813 continue
814 fi
815
816 case $ac_option in
817 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
818 *) ac_optarg=yes ;;
819 esac
820
821 # Accept the important Cygnus configure options, so we can diagnose typos.
822
823 case $ac_dashdash$ac_option in
824 --)
825 ac_dashdash=yes ;;
826
827 -bindir | --bindir | --bindi | --bind | --bin | --bi)
828 ac_prev=bindir ;;
829 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
830 bindir=$ac_optarg ;;
831
832 -build | --build | --buil | --bui | --bu)
833 ac_prev=build_alias ;;
834 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
835 build_alias=$ac_optarg ;;
836
837 -cache-file | --cache-file | --cache-fil | --cache-fi \
838 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
839 ac_prev=cache_file ;;
840 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
841 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
842 cache_file=$ac_optarg ;;
843
844 --config-cache | -C)
845 cache_file=config.cache ;;
846
847 -datadir | --datadir | --datadi | --datad)
848 ac_prev=datadir ;;
849 -datadir=* | --datadir=* | --datadi=* | --datad=*)
850 datadir=$ac_optarg ;;
851
852 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
853 | --dataroo | --dataro | --datar)
854 ac_prev=datarootdir ;;
855 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
856 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
857 datarootdir=$ac_optarg ;;
858
859 -disable-* | --disable-*)
860 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
861 # Reject names that are not valid shell variable names.
862 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
863 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
864 { (exit 1); exit 1; }; }
865 ac_useropt_orig=$ac_useropt
866 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
867 case $ac_user_opts in
868 *"
869 "enable_$ac_useropt"
870 "*) ;;
871 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
872 ac_unrecognized_sep=', ';;
873 esac
874 eval enable_$ac_useropt=no ;;
875
876 -docdir | --docdir | --docdi | --doc | --do)
877 ac_prev=docdir ;;
878 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
879 docdir=$ac_optarg ;;
880
881 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
882 ac_prev=dvidir ;;
883 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
884 dvidir=$ac_optarg ;;
885
886 -enable-* | --enable-*)
887 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
888 # Reject names that are not valid shell variable names.
889 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
890 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
891 { (exit 1); exit 1; }; }
892 ac_useropt_orig=$ac_useropt
893 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
894 case $ac_user_opts in
895 *"
896 "enable_$ac_useropt"
897 "*) ;;
898 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
899 ac_unrecognized_sep=', ';;
900 esac
901 eval enable_$ac_useropt=\$ac_optarg ;;
902
903 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
904 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
905 | --exec | --exe | --ex)
906 ac_prev=exec_prefix ;;
907 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
908 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
909 | --exec=* | --exe=* | --ex=*)
910 exec_prefix=$ac_optarg ;;
911
912 -gas | --gas | --ga | --g)
913 # Obsolete; use --with-gas.
914 with_gas=yes ;;
915
916 -help | --help | --hel | --he | -h)
917 ac_init_help=long ;;
918 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
919 ac_init_help=recursive ;;
920 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
921 ac_init_help=short ;;
922
923 -host | --host | --hos | --ho)
924 ac_prev=host_alias ;;
925 -host=* | --host=* | --hos=* | --ho=*)
926 host_alias=$ac_optarg ;;
927
928 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
929 ac_prev=htmldir ;;
930 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
931 | --ht=*)
932 htmldir=$ac_optarg ;;
933
934 -includedir | --includedir | --includedi | --included | --include \
935 | --includ | --inclu | --incl | --inc)
936 ac_prev=includedir ;;
937 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
938 | --includ=* | --inclu=* | --incl=* | --inc=*)
939 includedir=$ac_optarg ;;
940
941 -infodir | --infodir | --infodi | --infod | --info | --inf)
942 ac_prev=infodir ;;
943 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
944 infodir=$ac_optarg ;;
945
946 -libdir | --libdir | --libdi | --libd)
947 ac_prev=libdir ;;
948 -libdir=* | --libdir=* | --libdi=* | --libd=*)
949 libdir=$ac_optarg ;;
950
951 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
952 | --libexe | --libex | --libe)
953 ac_prev=libexecdir ;;
954 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
955 | --libexe=* | --libex=* | --libe=*)
956 libexecdir=$ac_optarg ;;
957
958 -localedir | --localedir | --localedi | --localed | --locale)
959 ac_prev=localedir ;;
960 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
961 localedir=$ac_optarg ;;
962
963 -localstatedir | --localstatedir | --localstatedi | --localstated \
964 | --localstate | --localstat | --localsta | --localst | --locals)
965 ac_prev=localstatedir ;;
966 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
967 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
968 localstatedir=$ac_optarg ;;
969
970 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
971 ac_prev=mandir ;;
972 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
973 mandir=$ac_optarg ;;
974
975 -nfp | --nfp | --nf)
976 # Obsolete; use --without-fp.
977 with_fp=no ;;
978
979 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
980 | --no-cr | --no-c | -n)
981 no_create=yes ;;
982
983 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
984 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
985 no_recursion=yes ;;
986
987 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
988 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
989 | --oldin | --oldi | --old | --ol | --o)
990 ac_prev=oldincludedir ;;
991 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
992 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
993 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
994 oldincludedir=$ac_optarg ;;
995
996 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
997 ac_prev=prefix ;;
998 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
999 prefix=$ac_optarg ;;
1000
1001 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1002 | --program-pre | --program-pr | --program-p)
1003 ac_prev=program_prefix ;;
1004 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1005 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1006 program_prefix=$ac_optarg ;;
1007
1008 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1009 | --program-suf | --program-su | --program-s)
1010 ac_prev=program_suffix ;;
1011 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1012 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1013 program_suffix=$ac_optarg ;;
1014
1015 -program-transform-name | --program-transform-name \
1016 | --program-transform-nam | --program-transform-na \
1017 | --program-transform-n | --program-transform- \
1018 | --program-transform | --program-transfor \
1019 | --program-transfo | --program-transf \
1020 | --program-trans | --program-tran \
1021 | --progr-tra | --program-tr | --program-t)
1022 ac_prev=program_transform_name ;;
1023 -program-transform-name=* | --program-transform-name=* \
1024 | --program-transform-nam=* | --program-transform-na=* \
1025 | --program-transform-n=* | --program-transform-=* \
1026 | --program-transform=* | --program-transfor=* \
1027 | --program-transfo=* | --program-transf=* \
1028 | --program-trans=* | --program-tran=* \
1029 | --progr-tra=* | --program-tr=* | --program-t=*)
1030 program_transform_name=$ac_optarg ;;
1031
1032 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1033 ac_prev=pdfdir ;;
1034 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1035 pdfdir=$ac_optarg ;;
1036
1037 -psdir | --psdir | --psdi | --psd | --ps)
1038 ac_prev=psdir ;;
1039 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1040 psdir=$ac_optarg ;;
1041
1042 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1043 | -silent | --silent | --silen | --sile | --sil)
1044 silent=yes ;;
1045
1046 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1047 ac_prev=sbindir ;;
1048 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1049 | --sbi=* | --sb=*)
1050 sbindir=$ac_optarg ;;
1051
1052 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1053 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1054 | --sharedst | --shareds | --shared | --share | --shar \
1055 | --sha | --sh)
1056 ac_prev=sharedstatedir ;;
1057 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1058 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1059 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1060 | --sha=* | --sh=*)
1061 sharedstatedir=$ac_optarg ;;
1062
1063 -site | --site | --sit)
1064 ac_prev=site ;;
1065 -site=* | --site=* | --sit=*)
1066 site=$ac_optarg ;;
1067
1068 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1069 ac_prev=srcdir ;;
1070 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1071 srcdir=$ac_optarg ;;
1072
1073 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1074 | --syscon | --sysco | --sysc | --sys | --sy)
1075 ac_prev=sysconfdir ;;
1076 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1077 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1078 sysconfdir=$ac_optarg ;;
1079
1080 -target | --target | --targe | --targ | --tar | --ta | --t)
1081 ac_prev=target_alias ;;
1082 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1083 target_alias=$ac_optarg ;;
1084
1085 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1086 verbose=yes ;;
1087
1088 -version | --version | --versio | --versi | --vers | -V)
1089 ac_init_version=: ;;
1090
1091 -with-* | --with-*)
1092 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1093 # Reject names that are not valid shell variable names.
1094 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1095 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1096 { (exit 1); exit 1; }; }
1097 ac_useropt_orig=$ac_useropt
1098 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1099 case $ac_user_opts in
1100 *"
1101 "with_$ac_useropt"
1102 "*) ;;
1103 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1104 ac_unrecognized_sep=', ';;
1105 esac
1106 eval with_$ac_useropt=\$ac_optarg ;;
1107
1108 -without-* | --without-*)
1109 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1112 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1113 { (exit 1); exit 1; }; }
1114 ac_useropt_orig=$ac_useropt
1115 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1116 case $ac_user_opts in
1117 *"
1118 "with_$ac_useropt"
1119 "*) ;;
1120 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1121 ac_unrecognized_sep=', ';;
1122 esac
1123 eval with_$ac_useropt=no ;;
1124
1125 --x)
1126 # Obsolete; use --with-x.
1127 with_x=yes ;;
1128
1129 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1130 | --x-incl | --x-inc | --x-in | --x-i)
1131 ac_prev=x_includes ;;
1132 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1133 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1134 x_includes=$ac_optarg ;;
1135
1136 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1137 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1138 ac_prev=x_libraries ;;
1139 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1140 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1141 x_libraries=$ac_optarg ;;
1142
1143 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1144 Try \`$0 --help' for more information." >&2
1145 { (exit 1); exit 1; }; }
1146 ;;
1147
1148 *=*)
1149 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1150 # Reject names that are not valid shell variable names.
1151 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1152 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1153 { (exit 1); exit 1; }; }
1154 eval $ac_envvar=\$ac_optarg
1155 export $ac_envvar ;;
1156
1157 *)
1158 # FIXME: should be removed in autoconf 3.0.
1159 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1160 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1161 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1162 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1163 ;;
1164
1165 esac
1166 done
1167
1168 if test -n "$ac_prev"; then
1169 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1170 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1171 { (exit 1); exit 1; }; }
1172 fi
1173
1174 if test -n "$ac_unrecognized_opts"; then
1175 case $enable_option_checking in
1176 no) ;;
1177 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1178 { (exit 1); exit 1; }; } ;;
1179 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1180 esac
1181 fi
1182
1183 # Check all directory arguments for consistency.
1184 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1185 datadir sysconfdir sharedstatedir localstatedir includedir \
1186 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1187 libdir localedir mandir
1188 do
1189 eval ac_val=\$$ac_var
1190 # Remove trailing slashes.
1191 case $ac_val in
1192 */ )
1193 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1194 eval $ac_var=\$ac_val;;
1195 esac
1196 # Be sure to have absolute directory names.
1197 case $ac_val in
1198 [\\/$]* | ?:[\\/]* ) continue;;
1199 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1200 esac
1201 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1202 { (exit 1); exit 1; }; }
1203 done
1204
1205 # There might be people who depend on the old broken behavior: `$host'
1206 # used to hold the argument of --host etc.
1207 # FIXME: To remove some day.
1208 build=$build_alias
1209 host=$host_alias
1210 target=$target_alias
1211
1212 # FIXME: To remove some day.
1213 if test "x$host_alias" != x; then
1214 if test "x$build_alias" = x; then
1215 cross_compiling=maybe
1216 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1217 If a cross compiler is detected then cross compile mode will be used." >&2
1218 elif test "x$build_alias" != "x$host_alias"; then
1219 cross_compiling=yes
1220 fi
1221 fi
1222
1223 ac_tool_prefix=
1224 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1225
1226 test "$silent" = yes && exec 6>/dev/null
1227
1228
1229 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1230 ac_ls_di=`ls -di .` &&
1231 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1232 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1233 { (exit 1); exit 1; }; }
1234 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1235 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1236 { (exit 1); exit 1; }; }
1237
1238
1239 # Find the source files, if location was not specified.
1240 if test -z "$srcdir"; then
1241 ac_srcdir_defaulted=yes
1242 # Try the directory containing this script, then the parent directory.
1243 ac_confdir=`$as_dirname -- "$as_myself" ||
1244 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1245 X"$as_myself" : 'X\(//\)[^/]' \| \
1246 X"$as_myself" : 'X\(//\)$' \| \
1247 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1248 $as_echo X"$as_myself" |
1249 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1250 s//\1/
1251 q
1252 }
1253 /^X\(\/\/\)[^/].*/{
1254 s//\1/
1255 q
1256 }
1257 /^X\(\/\/\)$/{
1258 s//\1/
1259 q
1260 }
1261 /^X\(\/\).*/{
1262 s//\1/
1263 q
1264 }
1265 s/.*/./; q'`
1266 srcdir=$ac_confdir
1267 if test ! -r "$srcdir/$ac_unique_file"; then
1268 srcdir=..
1269 fi
1270 else
1271 ac_srcdir_defaulted=no
1272 fi
1273 if test ! -r "$srcdir/$ac_unique_file"; then
1274 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1275 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1276 { (exit 1); exit 1; }; }
1277 fi
1278 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1279 ac_abs_confdir=`(
1280 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1281 { (exit 1); exit 1; }; }
1282 pwd)`
1283 # When building in place, set srcdir=.
1284 if test "$ac_abs_confdir" = "$ac_pwd"; then
1285 srcdir=.
1286 fi
1287 # Remove unnecessary trailing slashes from srcdir.
1288 # Double slashes in file names in object file debugging info
1289 # mess up M-x gdb in Emacs.
1290 case $srcdir in
1291 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1292 esac
1293 for ac_var in $ac_precious_vars; do
1294 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1295 eval ac_env_${ac_var}_value=\$${ac_var}
1296 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1297 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1298 done
1299
1300 #
1301 # Report the --help message.
1302 #
1303 if test "$ac_init_help" = "long"; then
1304 # Omit some internal or obsolete options to make the list less imposing.
1305 # This message is too long to be a string in the A/UX 3.1 sh.
1306 cat <<_ACEOF
1307 \`configure' configures pnm2ppa 1.13 to adapt to many kinds of systems.
1308
1309 Usage: $0 [OPTION]... [VAR=VALUE]...
1310
1311 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1312 VAR=VALUE. See below for descriptions of some of the useful variables.
1313
1314 Defaults for the options are specified in brackets.
1315
1316 Configuration:
1317 -h, --help display this help and exit
1318 --help=short display options specific to this package
1319 --help=recursive display the short help of all the included packages
1320 -V, --version display version information and exit
1321 -q, --quiet, --silent do not print \`checking...' messages
1322 --cache-file=FILE cache test results in FILE [disabled]
1323 -C, --config-cache alias for \`--cache-file=config.cache'
1324 -n, --no-create do not create output files
1325 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1326
1327 Installation directories:
1328 --prefix=PREFIX install architecture-independent files in PREFIX
1329 [$ac_default_prefix]
1330 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1331 [PREFIX]
1332
1333 By default, \`make install' will install all the files in
1334 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1335 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1336 for instance \`--prefix=\$HOME'.
1337
1338 For better control, use the options below.
1339
1340 Fine tuning of the installation directories:
1341 --bindir=DIR user executables [EPREFIX/bin]
1342 --sbindir=DIR system admin executables [EPREFIX/sbin]
1343 --libexecdir=DIR program executables [EPREFIX/libexec]
1344 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1345 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1346 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1347 --libdir=DIR object code libraries [EPREFIX/lib]
1348 --includedir=DIR C header files [PREFIX/include]
1349 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1350 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1351 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1352 --infodir=DIR info documentation [DATAROOTDIR/info]
1353 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1354 --mandir=DIR man documentation [DATAROOTDIR/man]
1355 --docdir=DIR documentation root [DATAROOTDIR/doc/pnm2ppa]
1356 --htmldir=DIR html documentation [DOCDIR]
1357 --dvidir=DIR dvi documentation [DOCDIR]
1358 --pdfdir=DIR pdf documentation [DOCDIR]
1359 --psdir=DIR ps documentation [DOCDIR]
1360 _ACEOF
1361
1362 cat <<\_ACEOF
1363
1364 Program names:
1365 --program-prefix=PREFIX prepend PREFIX to installed program names
1366 --program-suffix=SUFFIX append SUFFIX to installed program names
1367 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1368
1369 System types:
1370 --build=BUILD configure for building on BUILD [guessed]
1371 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1372 _ACEOF
1373 fi
1374
1375 if test -n "$ac_init_help"; then
1376 case $ac_init_help in
1377 short | recursive ) echo "Configuration of pnm2ppa 1.13:";;
1378 esac
1379 cat <<\_ACEOF
1380
1381 Optional Features:
1382 --disable-option-checking ignore unrecognized --enable/--with options
1383 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1384 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1385 --enable-maintainer-mode enable make rules and dependencies not useful
1386 (and sometimes confusing) to the casual installer
1387 --disable-dependency-tracking speeds up one-time build
1388 --enable-dependency-tracking do not reject slow dependency extractors
1389 --enable-syslog enable syslog [default=yes]
1390 --enable-debug enable debugging [default=no]
1391 --enable-vlink enable building parse_vlink [default=no]
1392
1393 Optional Packages:
1394 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1395 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1396 --with-language=EN | CZ | ES | FR | IT | NL
1397 Compiled in language
1398
1399 Some influential environment variables:
1400 CC C compiler command
1401 CFLAGS C compiler flags
1402 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1403 nonstandard directory <lib dir>
1404 LIBS libraries to pass to the linker, e.g. -l<library>
1405 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1406 you have headers in a nonstandard directory <include dir>
1407 CPP C preprocessor
1408
1409 Use these variables to override the choices made by `configure' or to help
1410 it to find libraries and programs with nonstandard names/locations.
1411
1412 Report bugs to <pnm2ppa-users@lists.sourceforge.net>.
1413 _ACEOF
1414 ac_status=$?
1415 fi
1416
1417 if test "$ac_init_help" = "recursive"; then
1418 # If there are subdirs, report their specific --help.
1419 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1420 test -d "$ac_dir" ||
1421 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1422 continue
1423 ac_builddir=.
1424
1425 case "$ac_dir" in
1426 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1427 *)
1428 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1429 # A ".." for each directory in $ac_dir_suffix.
1430 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1431 case $ac_top_builddir_sub in
1432 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1433 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1434 esac ;;
1435 esac
1436 ac_abs_top_builddir=$ac_pwd
1437 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1438 # for backward compatibility:
1439 ac_top_builddir=$ac_top_build_prefix
1440
1441 case $srcdir in
1442 .) # We are building in place.
1443 ac_srcdir=.
1444 ac_top_srcdir=$ac_top_builddir_sub
1445 ac_abs_top_srcdir=$ac_pwd ;;
1446 [\\/]* | ?:[\\/]* ) # Absolute name.
1447 ac_srcdir=$srcdir$ac_dir_suffix;
1448 ac_top_srcdir=$srcdir
1449 ac_abs_top_srcdir=$srcdir ;;
1450 *) # Relative name.
1451 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1452 ac_top_srcdir=$ac_top_build_prefix$srcdir
1453 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1454 esac
1455 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1456
1457 cd "$ac_dir" || { ac_status=$?; continue; }
1458 # Check for guested configure.
1459 if test -f "$ac_srcdir/configure.gnu"; then
1460 echo &&
1461 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1462 elif test -f "$ac_srcdir/configure"; then
1463 echo &&
1464 $SHELL "$ac_srcdir/configure" --help=recursive
1465 else
1466 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1467 fi || ac_status=$?
1468 cd "$ac_pwd" || { ac_status=$?; break; }
1469 done
1470 fi
1471
1472 test -n "$ac_init_help" && exit $ac_status
1473 if $ac_init_version; then
1474 cat <<\_ACEOF
1475 pnm2ppa configure 1.13
1476 generated by GNU Autoconf 2.62
1477
1478 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1479 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1480 This configure script is free software; the Free Software Foundation
1481 gives unlimited permission to copy, distribute and modify it.
1482 _ACEOF
1483 exit
1484 fi
1485 cat >config.log <<_ACEOF
1486 This file contains any messages produced by compilers while
1487 running configure, to aid debugging if configure makes a mistake.
1488
1489 It was created by pnm2ppa $as_me 1.13, which was
1490 generated by GNU Autoconf 2.62. Invocation command line was
1491
1492 $ $0 $@
1493
1494 _ACEOF
1495 exec 5>>config.log
1496 {
1497 cat <<_ASUNAME
1498 ## --------- ##
1499 ## Platform. ##
1500 ## --------- ##
1501
1502 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1503 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1504 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1505 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1506 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1507
1508 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1509 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1510
1511 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1512 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1513 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1514 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1515 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1516 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1517 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1518
1519 _ASUNAME
1520
1521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1522 for as_dir in $PATH
1523 do
1524 IFS=$as_save_IFS
1525 test -z "$as_dir" && as_dir=.
1526 $as_echo "PATH: $as_dir"
1527 done
1528 IFS=$as_save_IFS
1529
1530 } >&5
1531
1532 cat >&5 <<_ACEOF
1533
1534
1535 ## ----------- ##
1536 ## Core tests. ##
1537 ## ----------- ##
1538
1539 _ACEOF
1540
1541
1542 # Keep a trace of the command line.
1543 # Strip out --no-create and --no-recursion so they do not pile up.
1544 # Strip out --silent because we don't want to record it for future runs.
1545 # Also quote any args containing shell meta-characters.
1546 # Make two passes to allow for proper duplicate-argument suppression.
1547 ac_configure_args=
1548 ac_configure_args0=
1549 ac_configure_args1=
1550 ac_must_keep_next=false
1551 for ac_pass in 1 2
1552 do
1553 for ac_arg
1554 do
1555 case $ac_arg in
1556 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1557 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1558 | -silent | --silent | --silen | --sile | --sil)
1559 continue ;;
1560 *\'*)
1561 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1562 esac
1563 case $ac_pass in
1564 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1565 2)
1566 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1567 if test $ac_must_keep_next = true; then
1568 ac_must_keep_next=false # Got value, back to normal.
1569 else
1570 case $ac_arg in
1571 *=* | --config-cache | -C | -disable-* | --disable-* \
1572 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1573 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1574 | -with-* | --with-* | -without-* | --without-* | --x)
1575 case "$ac_configure_args0 " in
1576 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1577 esac
1578 ;;
1579 -* ) ac_must_keep_next=true ;;
1580 esac
1581 fi
1582 ac_configure_args="$ac_configure_args '$ac_arg'"
1583 ;;
1584 esac
1585 done
1586 done
1587 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1588 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1589
1590 # When interrupted or exit'd, cleanup temporary files, and complete
1591 # config.log. We remove comments because anyway the quotes in there
1592 # would cause problems or look ugly.
1593 # WARNING: Use '\'' to represent an apostrophe within the trap.
1594 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1595 trap 'exit_status=$?
1596 # Save into config.log some information that might help in debugging.
1597 {
1598 echo
1599
1600 cat <<\_ASBOX
1601 ## ---------------- ##
1602 ## Cache variables. ##
1603 ## ---------------- ##
1604 _ASBOX
1605 echo
1606 # The following way of writing the cache mishandles newlines in values,
1607 (
1608 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1609 eval ac_val=\$$ac_var
1610 case $ac_val in #(
1611 *${as_nl}*)
1612 case $ac_var in #(
1613 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1614 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1615 esac
1616 case $ac_var in #(
1617 _ | IFS | as_nl) ;; #(
1618 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1619 *) $as_unset $ac_var ;;
1620 esac ;;
1621 esac
1622 done
1623 (set) 2>&1 |
1624 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1625 *${as_nl}ac_space=\ *)
1626 sed -n \
1627 "s/'\''/'\''\\\\'\'''\''/g;
1628 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1629 ;; #(
1630 *)
1631 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1632 ;;
1633 esac |
1634 sort
1635 )
1636 echo
1637
1638 cat <<\_ASBOX
1639 ## ----------------- ##
1640 ## Output variables. ##
1641 ## ----------------- ##
1642 _ASBOX
1643 echo
1644 for ac_var in $ac_subst_vars
1645 do
1646 eval ac_val=\$$ac_var
1647 case $ac_val in
1648 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1649 esac
1650 $as_echo "$ac_var='\''$ac_val'\''"
1651 done | sort
1652 echo
1653
1654 if test -n "$ac_subst_files"; then
1655 cat <<\_ASBOX
1656 ## ------------------- ##
1657 ## File substitutions. ##
1658 ## ------------------- ##
1659 _ASBOX
1660 echo
1661 for ac_var in $ac_subst_files
1662 do
1663 eval ac_val=\$$ac_var
1664 case $ac_val in
1665 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1666 esac
1667 $as_echo "$ac_var='\''$ac_val'\''"
1668 done | sort
1669 echo
1670 fi
1671
1672 if test -s confdefs.h; then
1673 cat <<\_ASBOX
1674 ## ----------- ##
1675 ## confdefs.h. ##
1676 ## ----------- ##
1677 _ASBOX
1678 echo
1679 cat confdefs.h
1680 echo
1681 fi
1682 test "$ac_signal" != 0 &&
1683 $as_echo "$as_me: caught signal $ac_signal"
1684 $as_echo "$as_me: exit $exit_status"
1685 } >&5
1686 rm -f core *.core core.conftest.* &&
1687 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1688 exit $exit_status
1689 ' 0
1690 for ac_signal in 1 2 13 15; do
1691 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1692 done
1693 ac_signal=0
1694
1695 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1696 rm -f -r conftest* confdefs.h
1697
1698 # Predefined preprocessor variables.
1699
1700 cat >>confdefs.h <<_ACEOF
1701 #define PACKAGE_NAME "$PACKAGE_NAME"
1702 _ACEOF
1703
1704
1705 cat >>confdefs.h <<_ACEOF
1706 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1707 _ACEOF
1708
1709
1710 cat >>confdefs.h <<_ACEOF
1711 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1712 _ACEOF
1713
1714
1715 cat >>confdefs.h <<_ACEOF
1716 #define PACKAGE_STRING "$PACKAGE_STRING"
1717 _ACEOF
1718
1719
1720 cat >>confdefs.h <<_ACEOF
1721 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1722 _ACEOF
1723
1724
1725 # Let the site file select an alternate cache file if it wants to.
1726 # Prefer an explicitly selected file to automatically selected ones.
1727 ac_site_file1=NONE
1728 ac_site_file2=NONE
1729 if test -n "$CONFIG_SITE"; then
1730 ac_site_file1=$CONFIG_SITE
1731 elif test "x$prefix" != xNONE; then
1732 ac_site_file1=$prefix/share/config.site
1733 ac_site_file2=$prefix/etc/config.site
1734 else
1735 ac_site_file1=$ac_default_prefix/share/config.site
1736 ac_site_file2=$ac_default_prefix/etc/config.site
1737 fi
1738 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1739 do
1740 test "x$ac_site_file" = xNONE && continue
1741 if test -r "$ac_site_file"; then
1742 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1743 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1744 sed 's/^/| /' "$ac_site_file" >&5
1745 . "$ac_site_file"
1746 fi
1747 done
1748
1749 if test -r "$cache_file"; then
1750 # Some versions of bash will fail to source /dev/null (special
1751 # files actually), so we avoid doing that.
1752 if test -f "$cache_file"; then
1753 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1754 $as_echo "$as_me: loading cache $cache_file" >&6;}
1755 case $cache_file in
1756 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1757 *) . "./$cache_file";;
1758 esac
1759 fi
1760 else
1761 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1762 $as_echo "$as_me: creating cache $cache_file" >&6;}
1763 >$cache_file
1764 fi
1765
1766 # Check that the precious variables saved in the cache have kept the same
1767 # value.
1768 ac_cache_corrupted=false
1769 for ac_var in $ac_precious_vars; do
1770 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1771 eval ac_new_set=\$ac_env_${ac_var}_set
1772 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1773 eval ac_new_val=\$ac_env_${ac_var}_value
1774 case $ac_old_set,$ac_new_set in
1775 set,)
1776 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1777 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1778 ac_cache_corrupted=: ;;
1779 ,set)
1780 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1781 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1782 ac_cache_corrupted=: ;;
1783 ,);;
1784 *)
1785 if test "x$ac_old_val" != "x$ac_new_val"; then
1786 # differences in whitespace do not lead to failure.
1787 ac_old_val_w=`echo x $ac_old_val`
1788 ac_new_val_w=`echo x $ac_new_val`
1789 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1790 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1791 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1792 ac_cache_corrupted=:
1793 else
1794 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1795 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1796 eval $ac_var=\$ac_old_val
1797 fi
1798 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1799 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1800 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1801 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1802 fi;;
1803 esac
1804 # Pass precious variables to config.status.
1805 if test "$ac_new_set" = set; then
1806 case $ac_new_val in
1807 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1808 *) ac_arg=$ac_var=$ac_new_val ;;
1809 esac
1810 case " $ac_configure_args " in
1811 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1812 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1813 esac
1814 fi
1815 done
1816 if $ac_cache_corrupted; then
1817 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1818 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1819 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1820 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1821 { (exit 1); exit 1; }; }
1822 fi
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848 ac_ext=c
1849 ac_cpp='$CPP $CPPFLAGS'
1850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1853
1854
1855 ac_config_headers="$ac_config_headers config.h"
1856
1857
1858 ac_aux_dir=
1859 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1860 if test -f "$ac_dir/install-sh"; then
1861 ac_aux_dir=$ac_dir
1862 ac_install_sh="$ac_aux_dir/install-sh -c"
1863 break
1864 elif test -f "$ac_dir/install.sh"; then
1865 ac_aux_dir=$ac_dir
1866 ac_install_sh="$ac_aux_dir/install.sh -c"
1867 break
1868 elif test -f "$ac_dir/shtool"; then
1869 ac_aux_dir=$ac_dir
1870 ac_install_sh="$ac_aux_dir/shtool install -c"
1871 break
1872 fi
1873 done
1874 if test -z "$ac_aux_dir"; then
1875 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1876 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1877 { (exit 1); exit 1; }; }
1878 fi
1879
1880 # These three variables are undocumented and unsupported,
1881 # and are intended to be withdrawn in a future Autoconf release.
1882 # They can cause serious problems if a builder's source tree is in a directory
1883 # whose full name contains unusual characters.
1884 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1885 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1886 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1887
1888
1889 # Make sure we can run config.sub.
1890 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1891 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1892 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1893 { (exit 1); exit 1; }; }
1894
1895 { $as_echo "$as_me:$LINENO: checking build system type" >&5
1896 $as_echo_n "checking build system type... " >&6; }
1897 if test "${ac_cv_build+set}" = set; then
1898 $as_echo_n "(cached) " >&6
1899 else
1900 ac_build_alias=$build_alias
1901 test "x$ac_build_alias" = x &&
1902 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1903 test "x$ac_build_alias" = x &&
1904 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1905 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1906 { (exit 1); exit 1; }; }
1907 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1908 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1909 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1910 { (exit 1); exit 1; }; }
1911
1912 fi
1913 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1914 $as_echo "$ac_cv_build" >&6; }
1915 case $ac_cv_build in
1916 *-*-*) ;;
1917 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1918 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
1919 { (exit 1); exit 1; }; };;
1920 esac
1921 build=$ac_cv_build
1922 ac_save_IFS=$IFS; IFS='-'
1923 set x $ac_cv_build
1924 shift
1925 build_cpu=$1
1926 build_vendor=$2
1927 shift; shift
1928 # Remember, the first character of IFS is used to create $*,
1929 # except with old shells:
1930 build_os=$*
1931 IFS=$ac_save_IFS
1932 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1933
1934
1935 { $as_echo "$as_me:$LINENO: checking host system type" >&5
1936 $as_echo_n "checking host system type... " >&6; }
1937 if test "${ac_cv_host+set}" = set; then
1938 $as_echo_n "(cached) " >&6
1939 else
1940 if test "x$host_alias" = x; then
1941 ac_cv_host=$ac_cv_build
1942 else
1943 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1944 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1945 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1946 { (exit 1); exit 1; }; }
1947 fi
1948
1949 fi
1950 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1951 $as_echo "$ac_cv_host" >&6; }
1952 case $ac_cv_host in
1953 *-*-*) ;;
1954 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1955 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
1956 { (exit 1); exit 1; }; };;
1957 esac
1958 host=$ac_cv_host
1959 ac_save_IFS=$IFS; IFS='-'
1960 set x $ac_cv_host
1961 shift
1962 host_cpu=$1
1963 host_vendor=$2
1964 shift; shift
1965 # Remember, the first character of IFS is used to create $*,
1966 # except with old shells:
1967 host_os=$*
1968 IFS=$ac_save_IFS
1969 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1970
1971
1972
1973 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1974 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
1975 # Check whether --enable-maintainer-mode was given.
1976 if test "${enable_maintainer_mode+set}" = set; then
1977 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
1978 else
1979 USE_MAINTAINER_MODE=no
1980 fi
1981
1982 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1983 $as_echo "$USE_MAINTAINER_MODE" >&6; }
1984 if test $USE_MAINTAINER_MODE = yes; then
1985 MAINTAINER_MODE_TRUE=
1986 MAINTAINER_MODE_FALSE='#'
1987 else
1988 MAINTAINER_MODE_TRUE='#'
1989 MAINTAINER_MODE_FALSE=
1990 fi
1991
1992 MAINT=$MAINTAINER_MODE_TRUE
1993
1994
1995 am__api_version='1.10'
1996
1997 # Find a good install program. We prefer a C program (faster),
1998 # so one script is as good as another. But avoid the broken or
1999 # incompatible versions:
2000 # SysV /etc/install, /usr/sbin/install
2001 # SunOS /usr/etc/install
2002 # IRIX /sbin/install
2003 # AIX /bin/install
2004 # AmigaOS /C/install, which installs bootblocks on floppy discs
2005 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2006 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2007 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2008 # OS/2's system install, which has a completely different semantic
2009 # ./install, which can be erroneously created by make from ./install.sh.
2010 # Reject install programs that cannot install multiple files.
2011 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2012 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2013 if test -z "$INSTALL"; then
2014 if test "${ac_cv_path_install+set}" = set; then
2015 $as_echo_n "(cached) " >&6
2016 else
2017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2018 for as_dir in $PATH
2019 do
2020 IFS=$as_save_IFS
2021 test -z "$as_dir" && as_dir=.
2022 # Account for people who put trailing slashes in PATH elements.
2023 case $as_dir/ in
2024 ./ | .// | /cC/* | \
2025 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2026 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2027 /usr/ucb/* ) ;;
2028 *)
2029 # OSF1 and SCO ODT 3.0 have their own names for install.
2030 # Don't use installbsd from OSF since it installs stuff as root
2031 # by default.
2032 for ac_prog in ginstall scoinst install; do
2033 for ac_exec_ext in '' $ac_executable_extensions; do
2034 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2035 if test $ac_prog = install &&
2036 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2037 # AIX install. It has an incompatible calling convention.
2038 :
2039 elif test $ac_prog = install &&
2040 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2041 # program-specific install script used by HP pwplus--don't use.
2042 :
2043 else
2044 rm -rf conftest.one conftest.two conftest.dir
2045 echo one > conftest.one
2046 echo two > conftest.two
2047 mkdir conftest.dir
2048 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2049 test -s conftest.one && test -s conftest.two &&
2050 test -s conftest.dir/conftest.one &&
2051 test -s conftest.dir/conftest.two
2052 then
2053 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2054 break 3
2055 fi
2056 fi
2057 fi
2058 done
2059 done
2060 ;;
2061 esac
2062
2063 done
2064 IFS=$as_save_IFS
2065
2066 rm -rf conftest.one conftest.two conftest.dir
2067
2068 fi
2069 if test "${ac_cv_path_install+set}" = set; then
2070 INSTALL=$ac_cv_path_install
2071 else
2072 # As a last resort, use the slow shell script. Don't cache a
2073 # value for INSTALL within a source directory, because that will
2074 # break other packages using the cache if that directory is
2075 # removed, or if the value is a relative name.
2076 INSTALL=$ac_install_sh
2077 fi
2078 fi
2079 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2080 $as_echo "$INSTALL" >&6; }
2081
2082 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2083 # It thinks the first close brace ends the variable substitution.
2084 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2085
2086 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2087
2088 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2089
2090 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2091 $as_echo_n "checking whether build environment is sane... " >&6; }
2092 # Just in case
2093 sleep 1
2094 echo timestamp > conftest.file
2095 # Do `set' in a subshell so we don't clobber the current shell's
2096 # arguments. Must try -L first in case configure is actually a
2097 # symlink; some systems play weird games with the mod time of symlinks
2098 # (eg FreeBSD returns the mod time of the symlink's containing
2099 # directory).
2100 if (
2101 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2102 if test "$*" = "X"; then
2103 # -L didn't work.
2104 set X `ls -t $srcdir/configure conftest.file`
2105 fi
2106 rm -f conftest.file
2107 if test "$*" != "X $srcdir/configure conftest.file" \
2108 && test "$*" != "X conftest.file $srcdir/configure"; then
2109
2110 # If neither matched, then we have a broken ls. This can happen
2111 # if, for instance, CONFIG_SHELL is bash and it inherits a
2112 # broken ls alias from the environment. This has actually
2113 # happened. Such a system could not be considered "sane".
2114 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2115 alias in your environment" >&5
2116 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2117 alias in your environment" >&2;}
2118 { (exit 1); exit 1; }; }
2119 fi
2120
2121 test "$2" = conftest.file
2122 )
2123 then
2124 # Ok.
2125 :
2126 else
2127 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2128 Check your system clock" >&5
2129 $as_echo "$as_me: error: newly created file is older than distributed files!
2130 Check your system clock" >&2;}
2131 { (exit 1); exit 1; }; }
2132 fi
2133 { $as_echo "$as_me:$LINENO: result: yes" >&5
2134 $as_echo "yes" >&6; }
2135 test "$program_prefix" != NONE &&
2136 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2137 # Use a double $ so make ignores it.
2138 test "$program_suffix" != NONE &&
2139 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2140 # Double any \ or $.
2141 # By default was `s,x,x', remove it if useless.
2142 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2143 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2144
2145 # expand $ac_aux_dir to an absolute path
2146 am_aux_dir=`cd $ac_aux_dir && pwd`
2147
2148 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2149 # Use eval to expand $SHELL
2150 if eval "$MISSING --run true"; then
2151 am_missing_run="$MISSING --run "
2152 else
2153 am_missing_run=
2154 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2155 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2156 fi
2157
2158 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2159 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2160 if test -z "$MKDIR_P"; then
2161 if test "${ac_cv_path_mkdir+set}" = set; then
2162 $as_echo_n "(cached) " >&6
2163 else
2164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2165 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2166 do
2167 IFS=$as_save_IFS
2168 test -z "$as_dir" && as_dir=.
2169 for ac_prog in mkdir gmkdir; do
2170 for ac_exec_ext in '' $ac_executable_extensions; do
2171 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2172 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2173 'mkdir (GNU coreutils) '* | \
2174 'mkdir (coreutils) '* | \
2175 'mkdir (fileutils) '4.1*)
2176 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2177 break 3;;
2178 esac
2179 done
2180 done
2181 done
2182 IFS=$as_save_IFS
2183
2184 fi
2185
2186 if test "${ac_cv_path_mkdir+set}" = set; then
2187 MKDIR_P="$ac_cv_path_mkdir -p"
2188 else
2189 # As a last resort, use the slow shell script. Don't cache a
2190 # value for MKDIR_P within a source directory, because that will
2191 # break other packages using the cache if that directory is
2192 # removed, or if the value is a relative name.
2193 test -d ./--version && rmdir ./--version
2194 MKDIR_P="$ac_install_sh -d"
2195 fi
2196 fi
2197 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2198 $as_echo "$MKDIR_P" >&6; }
2199
2200 mkdir_p="$MKDIR_P"
2201 case $mkdir_p in
2202 [\\/$]* | ?:[\\/]*) ;;
2203 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2204 esac
2205
2206 for ac_prog in gawk mawk nawk awk
2207 do
2208 # Extract the first word of "$ac_prog", so it can be a program name with args.
2209 set dummy $ac_prog; ac_word=$2
2210 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2211 $as_echo_n "checking for $ac_word... " >&6; }
2212 if test "${ac_cv_prog_AWK+set}" = set; then
2213 $as_echo_n "(cached) " >&6
2214 else
2215 if test -n "$AWK"; then
2216 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2217 else
2218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2219 for as_dir in $PATH
2220 do
2221 IFS=$as_save_IFS
2222 test -z "$as_dir" && as_dir=.
2223 for ac_exec_ext in '' $ac_executable_extensions; do
2224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2225 ac_cv_prog_AWK="$ac_prog"
2226 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2227 break 2
2228 fi
2229 done
2230 done
2231 IFS=$as_save_IFS
2232
2233 fi
2234 fi
2235 AWK=$ac_cv_prog_AWK
2236 if test -n "$AWK"; then
2237 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2238 $as_echo "$AWK" >&6; }
2239 else
2240 { $as_echo "$as_me:$LINENO: result: no" >&5
2241 $as_echo "no" >&6; }
2242 fi
2243
2244
2245 test -n "$AWK" && break
2246 done
2247
2248 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2249 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2250 set x ${MAKE-make}
2251 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2252 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2253 $as_echo_n "(cached) " >&6
2254 else
2255 cat >conftest.make <<\_ACEOF
2256 SHELL = /bin/sh
2257 all:
2258 @echo '@@@%%%=$(MAKE)=@@@%%%'
2259 _ACEOF
2260 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2261 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2262 *@@@%%%=?*=@@@%%%*)
2263 eval ac_cv_prog_make_${ac_make}_set=yes;;
2264 *)
2265 eval ac_cv_prog_make_${ac_make}_set=no;;
2266 esac
2267 rm -f conftest.make
2268 fi
2269 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2270 { $as_echo "$as_me:$LINENO: result: yes" >&5
2271 $as_echo "yes" >&6; }
2272 SET_MAKE=
2273 else
2274 { $as_echo "$as_me:$LINENO: result: no" >&5
2275 $as_echo "no" >&6; }
2276 SET_MAKE="MAKE=${MAKE-make}"
2277 fi
2278
2279 rm -rf .tst 2>/dev/null
2280 mkdir .tst 2>/dev/null
2281 if test -d .tst; then
2282 am__leading_dot=.
2283 else
2284 am__leading_dot=_
2285 fi
2286 rmdir .tst 2>/dev/null
2287
2288 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2289 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2290 # is not polluted with repeated "-I."
2291 am__isrc=' -I$(srcdir)'
2292 # test to see if srcdir already configured
2293 if test -f $srcdir/config.status; then
2294 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2295 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2296 { (exit 1); exit 1; }; }
2297 fi
2298 fi
2299
2300 # test whether we have cygpath
2301 if test -z "$CYGPATH_W"; then
2302 if (cygpath --version) >/dev/null 2>/dev/null; then
2303 CYGPATH_W='cygpath -w'
2304 else
2305 CYGPATH_W=echo
2306 fi
2307 fi
2308
2309
2310 # Define the identity of the package.
2311 PACKAGE='pnm2ppa'
2312 VERSION='1.13'
2313
2314
2315 cat >>confdefs.h <<_ACEOF
2316 #define PACKAGE "$PACKAGE"
2317 _ACEOF
2318
2319
2320 cat >>confdefs.h <<_ACEOF
2321 #define VERSION "$VERSION"
2322 _ACEOF
2323
2324 # Some tools Automake needs.
2325
2326 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2327
2328
2329 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2330
2331
2332 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2333
2334
2335 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2336
2337
2338 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2339
2340 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2341
2342 # Installed binaries are usually stripped using `strip' when the user
2343 # run `make install-strip'. However `strip' might not be the right
2344 # tool to use in cross-compilation environments, therefore Automake
2345 # will honor the `STRIP' environment variable to overrule this program.
2346 if test "$cross_compiling" != no; then
2347 if test -n "$ac_tool_prefix"; then
2348 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2349 set dummy ${ac_tool_prefix}strip; ac_word=$2
2350 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2351 $as_echo_n "checking for $ac_word... " >&6; }
2352 if test "${ac_cv_prog_STRIP+set}" = set; then
2353 $as_echo_n "(cached) " >&6
2354 else
2355 if test -n "$STRIP"; then
2356 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2357 else
2358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2359 for as_dir in $PATH
2360 do
2361 IFS=$as_save_IFS
2362 test -z "$as_dir" && as_dir=.
2363 for ac_exec_ext in '' $ac_executable_extensions; do
2364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2365 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2366 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2367 break 2
2368 fi
2369 done
2370 done
2371 IFS=$as_save_IFS
2372
2373 fi
2374 fi
2375 STRIP=$ac_cv_prog_STRIP
2376 if test -n "$STRIP"; then
2377 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2378 $as_echo "$STRIP" >&6; }
2379 else
2380 { $as_echo "$as_me:$LINENO: result: no" >&5
2381 $as_echo "no" >&6; }
2382 fi
2383
2384
2385 fi
2386 if test -z "$ac_cv_prog_STRIP"; then
2387 ac_ct_STRIP=$STRIP
2388 # Extract the first word of "strip", so it can be a program name with args.
2389 set dummy strip; ac_word=$2
2390 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2391 $as_echo_n "checking for $ac_word... " >&6; }
2392 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2393 $as_echo_n "(cached) " >&6
2394 else
2395 if test -n "$ac_ct_STRIP"; then
2396 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2397 else
2398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2399 for as_dir in $PATH
2400 do
2401 IFS=$as_save_IFS
2402 test -z "$as_dir" && as_dir=.
2403 for ac_exec_ext in '' $ac_executable_extensions; do
2404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2405 ac_cv_prog_ac_ct_STRIP="strip"
2406 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2407 break 2
2408 fi
2409 done
2410 done
2411 IFS=$as_save_IFS
2412
2413 fi
2414 fi
2415 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2416 if test -n "$ac_ct_STRIP"; then
2417 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2418 $as_echo "$ac_ct_STRIP" >&6; }
2419 else
2420 { $as_echo "$as_me:$LINENO: result: no" >&5
2421 $as_echo "no" >&6; }
2422 fi
2423
2424 if test "x$ac_ct_STRIP" = x; then
2425 STRIP=":"
2426 else
2427 case $cross_compiling:$ac_tool_warned in
2428 yes:)
2429 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2430 whose name does not start with the host triplet. If you think this
2431 configuration is useful to you, please write to autoconf@gnu.org." >&5
2432 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2433 whose name does not start with the host triplet. If you think this
2434 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2435 ac_tool_warned=yes ;;
2436 esac
2437 STRIP=$ac_ct_STRIP
2438 fi
2439 else
2440 STRIP="$ac_cv_prog_STRIP"
2441 fi
2442
2443 fi
2444 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2445
2446 # We need awk for the "check" target. The system "awk" is bad on
2447 # some platforms.
2448 # Always define AMTAR for backward compatibility.
2449
2450 AMTAR=${AMTAR-"${am_missing_run}tar"}
2451
2452 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2453
2454
2455
2456
2457
2458
2459 CFLAGS="${CFLAGS} -Wall -Wsign-compare -Wfloat-equal -Wformat-security -g"
2460
2461 # Checks for programs.
2462 ac_ext=c
2463 ac_cpp='$CPP $CPPFLAGS'
2464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2467 if test -n "$ac_tool_prefix"; then
2468 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2469 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2470 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2471 $as_echo_n "checking for $ac_word... " >&6; }
2472 if test "${ac_cv_prog_CC+set}" = set; then
2473 $as_echo_n "(cached) " >&6
2474 else
2475 if test -n "$CC"; then
2476 ac_cv_prog_CC="$CC" # Let the user override the test.
2477 else
2478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2479 for as_dir in $PATH
2480 do
2481 IFS=$as_save_IFS
2482 test -z "$as_dir" && as_dir=.
2483 for ac_exec_ext in '' $ac_executable_extensions; do
2484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2485 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2486 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2487 break 2
2488 fi
2489 done
2490 done
2491 IFS=$as_save_IFS
2492
2493 fi
2494 fi
2495 CC=$ac_cv_prog_CC
2496 if test -n "$CC"; then
2497 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2498 $as_echo "$CC" >&6; }
2499 else
2500 { $as_echo "$as_me:$LINENO: result: no" >&5
2501 $as_echo "no" >&6; }
2502 fi
2503
2504
2505 fi
2506 if test -z "$ac_cv_prog_CC"; then
2507 ac_ct_CC=$CC
2508 # Extract the first word of "gcc", so it can be a program name with args.
2509 set dummy gcc; ac_word=$2
2510 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2511 $as_echo_n "checking for $ac_word... " >&6; }
2512 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2513 $as_echo_n "(cached) " >&6
2514 else
2515 if test -n "$ac_ct_CC"; then
2516 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2517 else
2518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2519 for as_dir in $PATH
2520 do
2521 IFS=$as_save_IFS
2522 test -z "$as_dir" && as_dir=.
2523 for ac_exec_ext in '' $ac_executable_extensions; do
2524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2525 ac_cv_prog_ac_ct_CC="gcc"
2526 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2527 break 2
2528 fi
2529 done
2530 done
2531 IFS=$as_save_IFS
2532
2533 fi
2534 fi
2535 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2536 if test -n "$ac_ct_CC"; then
2537 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2538 $as_echo "$ac_ct_CC" >&6; }
2539 else
2540 { $as_echo "$as_me:$LINENO: result: no" >&5
2541 $as_echo "no" >&6; }
2542 fi
2543
2544 if test "x$ac_ct_CC" = x; then
2545 CC=""
2546 else
2547 case $cross_compiling:$ac_tool_warned in
2548 yes:)
2549 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2550 whose name does not start with the host triplet. If you think this
2551 configuration is useful to you, please write to autoconf@gnu.org." >&5
2552 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2553 whose name does not start with the host triplet. If you think this
2554 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2555 ac_tool_warned=yes ;;
2556 esac
2557 CC=$ac_ct_CC
2558 fi
2559 else
2560 CC="$ac_cv_prog_CC"
2561 fi
2562
2563 if test -z "$CC"; then
2564 if test -n "$ac_tool_prefix"; then
2565 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2566 set dummy ${ac_tool_prefix}cc; ac_word=$2
2567 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2568 $as_echo_n "checking for $ac_word... " >&6; }
2569 if test "${ac_cv_prog_CC+set}" = set; then
2570 $as_echo_n "(cached) " >&6
2571 else
2572 if test -n "$CC"; then
2573 ac_cv_prog_CC="$CC" # Let the user override the test.
2574 else
2575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2576 for as_dir in $PATH
2577 do
2578 IFS=$as_save_IFS
2579 test -z "$as_dir" && as_dir=.
2580 for ac_exec_ext in '' $ac_executable_extensions; do
2581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2582 ac_cv_prog_CC="${ac_tool_prefix}cc"
2583 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2584 break 2
2585 fi
2586 done
2587 done
2588 IFS=$as_save_IFS
2589
2590 fi
2591 fi
2592 CC=$ac_cv_prog_CC
2593 if test -n "$CC"; then
2594 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2595 $as_echo "$CC" >&6; }
2596 else
2597 { $as_echo "$as_me:$LINENO: result: no" >&5
2598 $as_echo "no" >&6; }
2599 fi
2600
2601
2602 fi
2603 fi
2604 if test -z "$CC"; then
2605 # Extract the first word of "cc", so it can be a program name with args.
2606 set dummy cc; ac_word=$2
2607 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2608 $as_echo_n "checking for $ac_word... " >&6; }
2609 if test "${ac_cv_prog_CC+set}" = set; then
2610 $as_echo_n "(cached) " >&6
2611 else
2612 if test -n "$CC"; then
2613 ac_cv_prog_CC="$CC" # Let the user override the test.
2614 else
2615 ac_prog_rejected=no
2616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2617 for as_dir in $PATH
2618 do
2619 IFS=$as_save_IFS
2620 test -z "$as_dir" && as_dir=.
2621 for ac_exec_ext in '' $ac_executable_extensions; do
2622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2623 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2624 ac_prog_rejected=yes
2625 continue
2626 fi
2627 ac_cv_prog_CC="cc"
2628 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2629 break 2
2630 fi
2631 done
2632 done
2633 IFS=$as_save_IFS
2634
2635 if test $ac_prog_rejected = yes; then
2636 # We found a bogon in the path, so make sure we never use it.
2637 set dummy $ac_cv_prog_CC
2638 shift
2639 if test $# != 0; then
2640 # We chose a different compiler from the bogus one.
2641 # However, it has the same basename, so the bogon will be chosen
2642 # first if we set CC to just the basename; use the full file name.
2643 shift
2644 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2645 fi
2646 fi
2647 fi
2648 fi
2649 CC=$ac_cv_prog_CC
2650 if test -n "$CC"; then
2651 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2652 $as_echo "$CC" >&6; }
2653 else
2654 { $as_echo "$as_me:$LINENO: result: no" >&5
2655 $as_echo "no" >&6; }
2656 fi
2657
2658
2659 fi
2660 if test -z "$CC"; then
2661 if test -n "$ac_tool_prefix"; then
2662 for ac_prog in cl.exe
2663 do
2664 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2665 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2666 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2667 $as_echo_n "checking for $ac_word... " >&6; }
2668 if test "${ac_cv_prog_CC+set}" = set; then
2669 $as_echo_n "(cached) " >&6
2670 else
2671 if test -n "$CC"; then
2672 ac_cv_prog_CC="$CC" # Let the user override the test.
2673 else
2674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2675 for as_dir in $PATH
2676 do
2677 IFS=$as_save_IFS
2678 test -z "$as_dir" && as_dir=.
2679 for ac_exec_ext in '' $ac_executable_extensions; do
2680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2681 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2682 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2683 break 2
2684 fi
2685 done
2686 done
2687 IFS=$as_save_IFS
2688
2689 fi
2690 fi
2691 CC=$ac_cv_prog_CC
2692 if test -n "$CC"; then
2693 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2694 $as_echo "$CC" >&6; }
2695 else
2696 { $as_echo "$as_me:$LINENO: result: no" >&5
2697 $as_echo "no" >&6; }
2698 fi
2699
2700
2701 test -n "$CC" && break
2702 done
2703 fi
2704 if test -z "$CC"; then
2705 ac_ct_CC=$CC
2706 for ac_prog in cl.exe
2707 do
2708 # Extract the first word of "$ac_prog", so it can be a program name with args.
2709 set dummy $ac_prog; ac_word=$2
2710 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2711 $as_echo_n "checking for $ac_word... " >&6; }
2712 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2713 $as_echo_n "(cached) " >&6
2714 else
2715 if test -n "$ac_ct_CC"; then
2716 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2717 else
2718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2719 for as_dir in $PATH
2720 do
2721 IFS=$as_save_IFS
2722 test -z "$as_dir" && as_dir=.
2723 for ac_exec_ext in '' $ac_executable_extensions; do
2724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2725 ac_cv_prog_ac_ct_CC="$ac_prog"
2726 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2727 break 2
2728 fi
2729 done
2730 done
2731 IFS=$as_save_IFS
2732
2733 fi
2734 fi
2735 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2736 if test -n "$ac_ct_CC"; then
2737 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2738 $as_echo "$ac_ct_CC" >&6; }
2739 else
2740 { $as_echo "$as_me:$LINENO: result: no" >&5
2741 $as_echo "no" >&6; }
2742 fi
2743
2744
2745 test -n "$ac_ct_CC" && break
2746 done
2747
2748 if test "x$ac_ct_CC" = x; then
2749 CC=""
2750 else
2751 case $cross_compiling:$ac_tool_warned in
2752 yes:)
2753 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2754 whose name does not start with the host triplet. If you think this
2755 configuration is useful to you, please write to autoconf@gnu.org." >&5
2756 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2757 whose name does not start with the host triplet. If you think this
2758 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2759 ac_tool_warned=yes ;;
2760 esac
2761 CC=$ac_ct_CC
2762 fi
2763 fi
2764
2765 fi
2766
2767
2768 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2769 See \`config.log' for more details." >&5
2770 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2771 See \`config.log' for more details." >&2;}
2772 { (exit 1); exit 1; }; }
2773
2774 # Provide some information about the compiler.
2775 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2776 set X $ac_compile
2777 ac_compiler=$2
2778 { (ac_try="$ac_compiler --version >&5"
2779 case "(($ac_try" in
2780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2781 *) ac_try_echo=$ac_try;;
2782 esac
2783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2784 $as_echo "$ac_try_echo") >&5
2785 (eval "$ac_compiler --version >&5") 2>&5
2786 ac_status=$?
2787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); }
2789 { (ac_try="$ac_compiler -v >&5"
2790 case "(($ac_try" in
2791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2792 *) ac_try_echo=$ac_try;;
2793 esac
2794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2795 $as_echo "$ac_try_echo") >&5
2796 (eval "$ac_compiler -v >&5") 2>&5
2797 ac_status=$?
2798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799 (exit $ac_status); }
2800 { (ac_try="$ac_compiler -V >&5"
2801 case "(($ac_try" in
2802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2803 *) ac_try_echo=$ac_try;;
2804 esac
2805 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2806 $as_echo "$ac_try_echo") >&5
2807 (eval "$ac_compiler -V >&5") 2>&5
2808 ac_status=$?
2809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810 (exit $ac_status); }
2811
2812 cat >conftest.$ac_ext <<_ACEOF
2813 /* confdefs.h. */
2814 _ACEOF
2815 cat confdefs.h >>conftest.$ac_ext
2816 cat >>conftest.$ac_ext <<_ACEOF
2817 /* end confdefs.h. */
2818
2819 int
2820 main ()
2821 {
2822
2823 ;
2824 return 0;
2825 }
2826 _ACEOF
2827 ac_clean_files_save=$ac_clean_files
2828 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2829 # Try to create an executable without -o first, disregard a.out.
2830 # It will help us diagnose broken compilers, and finding out an intuition
2831 # of exeext.
2832 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2833 $as_echo_n "checking for C compiler default output file name... " >&6; }
2834 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2835
2836 # The possible output files:
2837 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2838
2839 ac_rmfiles=
2840 for ac_file in $ac_files
2841 do
2842 case $ac_file in
2843 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2844 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2845 esac
2846 done
2847 rm -f $ac_rmfiles
2848
2849 if { (ac_try="$ac_link_default"
2850 case "(($ac_try" in
2851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2852 *) ac_try_echo=$ac_try;;
2853 esac
2854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2855 $as_echo "$ac_try_echo") >&5
2856 (eval "$ac_link_default") 2>&5
2857 ac_status=$?
2858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859 (exit $ac_status); }; then
2860 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2861 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2862 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2863 # so that the user can short-circuit this test for compilers unknown to
2864 # Autoconf.
2865 for ac_file in $ac_files ''
2866 do
2867 test -f "$ac_file" || continue
2868 case $ac_file in
2869 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2870 ;;
2871 [ab].out )
2872 # We found the default executable, but exeext='' is most
2873 # certainly right.
2874 break;;
2875 *.* )
2876 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2877 then :; else
2878 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2879 fi
2880 # We set ac_cv_exeext here because the later test for it is not
2881 # safe: cross compilers may not add the suffix if given an `-o'
2882 # argument, so we may need to know it at that point already.
2883 # Even if this section looks crufty: it has the advantage of
2884 # actually working.
2885 break;;
2886 * )
2887 break;;
2888 esac
2889 done
2890 test "$ac_cv_exeext" = no && ac_cv_exeext=
2891
2892 else
2893 ac_file=''
2894 fi
2895
2896 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2897 $as_echo "$ac_file" >&6; }
2898 if test -z "$ac_file"; then
2899 $as_echo "$as_me: failed program was:" >&5
2900 sed 's/^/| /' conftest.$ac_ext >&5
2901
2902 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2903 See \`config.log' for more details." >&5
2904 $as_echo "$as_me: error: C compiler cannot create executables
2905 See \`config.log' for more details." >&2;}
2906 { (exit 77); exit 77; }; }
2907 fi
2908
2909 ac_exeext=$ac_cv_exeext
2910
2911 # Check that the compiler produces executables we can run. If not, either
2912 # the compiler is broken, or we cross compile.
2913 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2914 $as_echo_n "checking whether the C compiler works... " >&6; }
2915 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2916 # If not cross compiling, check that we can run a simple program.
2917 if test "$cross_compiling" != yes; then
2918 if { ac_try='./$ac_file'
2919 { (case "(($ac_try" in
2920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2921 *) ac_try_echo=$ac_try;;
2922 esac
2923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2924 $as_echo "$ac_try_echo") >&5
2925 (eval "$ac_try") 2>&5
2926 ac_status=$?
2927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928 (exit $ac_status); }; }; then
2929 cross_compiling=no
2930 else
2931 if test "$cross_compiling" = maybe; then
2932 cross_compiling=yes
2933 else
2934 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2935 If you meant to cross compile, use \`--host'.
2936 See \`config.log' for more details." >&5
2937 $as_echo "$as_me: error: cannot run C compiled programs.
2938 If you meant to cross compile, use \`--host'.
2939 See \`config.log' for more details." >&2;}
2940 { (exit 1); exit 1; }; }
2941 fi
2942 fi
2943 fi
2944 { $as_echo "$as_me:$LINENO: result: yes" >&5
2945 $as_echo "yes" >&6; }
2946
2947 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2948 ac_clean_files=$ac_clean_files_save
2949 # Check that the compiler produces executables we can run. If not, either
2950 # the compiler is broken, or we cross compile.
2951 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2952 $as_echo_n "checking whether we are cross compiling... " >&6; }
2953 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2954 $as_echo "$cross_compiling" >&6; }
2955
2956 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2957 $as_echo_n "checking for suffix of executables... " >&6; }
2958 if { (ac_try="$ac_link"
2959 case "(($ac_try" in
2960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2961 *) ac_try_echo=$ac_try;;
2962 esac
2963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2964 $as_echo "$ac_try_echo") >&5
2965 (eval "$ac_link") 2>&5
2966 ac_status=$?
2967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); }; then
2969 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2970 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2971 # work properly (i.e., refer to `conftest.exe'), while it won't with
2972 # `rm'.
2973 for ac_file in conftest.exe conftest conftest.*; do
2974 test -f "$ac_file" || continue
2975 case $ac_file in
2976 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2977 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2978 break;;
2979 * ) break;;
2980 esac
2981 done
2982 else
2983 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2984 See \`config.log' for more details." >&5
2985 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2986 See \`config.log' for more details." >&2;}
2987 { (exit 1); exit 1; }; }
2988 fi
2989
2990 rm -f conftest$ac_cv_exeext
2991 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2992 $as_echo "$ac_cv_exeext" >&6; }
2993
2994 rm -f conftest.$ac_ext
2995 EXEEXT=$ac_cv_exeext
2996 ac_exeext=$EXEEXT
2997 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2998 $as_echo_n "checking for suffix of object files... " >&6; }
2999 if test "${ac_cv_objext+set}" = set; then
3000 $as_echo_n "(cached) " >&6
3001 else
3002 cat >conftest.$ac_ext <<_ACEOF
3003 /* confdefs.h. */
3004 _ACEOF
3005 cat confdefs.h >>conftest.$ac_ext
3006 cat >>conftest.$ac_ext <<_ACEOF
3007 /* end confdefs.h. */
3008
3009 int
3010 main ()
3011 {
3012
3013 ;
3014 return 0;
3015 }
3016 _ACEOF
3017 rm -f conftest.o conftest.obj
3018 if { (ac_try="$ac_compile"
3019 case "(($ac_try" in
3020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021 *) ac_try_echo=$ac_try;;
3022 esac
3023 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3024 $as_echo "$ac_try_echo") >&5
3025 (eval "$ac_compile") 2>&5
3026 ac_status=$?
3027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); }; then
3029 for ac_file in conftest.o conftest.obj conftest.*; do
3030 test -f "$ac_file" || continue;
3031 case $ac_file in
3032 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3033 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3034 break;;
3035 esac
3036 done
3037 else
3038 $as_echo "$as_me: failed program was:" >&5
3039 sed 's/^/| /' conftest.$ac_ext >&5
3040
3041 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3042 See \`config.log' for more details." >&5
3043 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3044 See \`config.log' for more details." >&2;}
3045 { (exit 1); exit 1; }; }
3046 fi
3047
3048 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3049 fi
3050 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3051 $as_echo "$ac_cv_objext" >&6; }
3052 OBJEXT=$ac_cv_objext
3053 ac_objext=$OBJEXT
3054 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3055 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3056 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3057 $as_echo_n "(cached) " >&6
3058 else
3059 cat >conftest.$ac_ext <<_ACEOF
3060 /* confdefs.h. */
3061 _ACEOF
3062 cat confdefs.h >>conftest.$ac_ext
3063 cat >>conftest.$ac_ext <<_ACEOF
3064 /* end confdefs.h. */
3065
3066 int
3067 main ()
3068 {
3069 #ifndef __GNUC__
3070 choke me
3071 #endif
3072
3073 ;
3074 return 0;
3075 }
3076 _ACEOF
3077 rm -f conftest.$ac_objext
3078 if { (ac_try="$ac_compile"
3079 case "(($ac_try" in
3080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3081 *) ac_try_echo=$ac_try;;
3082 esac
3083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3084 $as_echo "$ac_try_echo") >&5
3085 (eval "$ac_compile") 2>conftest.er1
3086 ac_status=$?
3087 grep -v '^ *+' conftest.er1 >conftest.err
3088 rm -f conftest.er1
3089 cat conftest.err >&5
3090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); } && {
3092 test -z "$ac_c_werror_flag" ||
3093 test ! -s conftest.err
3094 } && test -s conftest.$ac_objext; then
3095 ac_compiler_gnu=yes
3096 else
3097 $as_echo "$as_me: failed program was:" >&5
3098 sed 's/^/| /' conftest.$ac_ext >&5
3099
3100 ac_compiler_gnu=no
3101 fi
3102
3103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3104 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3105
3106 fi
3107 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3108 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3109 if test $ac_compiler_gnu = yes; then
3110 GCC=yes
3111 else
3112 GCC=
3113 fi
3114 ac_test_CFLAGS=${CFLAGS+set}
3115 ac_save_CFLAGS=$CFLAGS
3116 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3117 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3118 if test "${ac_cv_prog_cc_g+set}" = set; then
3119 $as_echo_n "(cached) " >&6
3120 else
3121 ac_save_c_werror_flag=$ac_c_werror_flag
3122 ac_c_werror_flag=yes
3123 ac_cv_prog_cc_g=no
3124 CFLAGS="-g"
3125 cat >conftest.$ac_ext <<_ACEOF
3126 /* confdefs.h. */
3127 _ACEOF
3128 cat confdefs.h >>conftest.$ac_ext
3129 cat >>conftest.$ac_ext <<_ACEOF
3130 /* end confdefs.h. */
3131
3132 int
3133 main ()
3134 {
3135
3136 ;
3137 return 0;
3138 }
3139 _ACEOF
3140 rm -f conftest.$ac_objext
3141 if { (ac_try="$ac_compile"
3142 case "(($ac_try" in
3143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3144 *) ac_try_echo=$ac_try;;
3145 esac
3146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3147 $as_echo "$ac_try_echo") >&5
3148 (eval "$ac_compile") 2>conftest.er1
3149 ac_status=$?
3150 grep -v '^ *+' conftest.er1 >conftest.err
3151 rm -f conftest.er1
3152 cat conftest.err >&5
3153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); } && {
3155 test -z "$ac_c_werror_flag" ||
3156 test ! -s conftest.err
3157 } && test -s conftest.$ac_objext; then
3158 ac_cv_prog_cc_g=yes
3159 else
3160 $as_echo "$as_me: failed program was:" >&5
3161 sed 's/^/| /' conftest.$ac_ext >&5
3162
3163 CFLAGS=""
3164 cat >conftest.$ac_ext <<_ACEOF
3165 /* confdefs.h. */
3166 _ACEOF
3167 cat confdefs.h >>conftest.$ac_ext
3168 cat >>conftest.$ac_ext <<_ACEOF
3169 /* end confdefs.h. */
3170
3171 int
3172 main ()
3173 {
3174
3175 ;
3176 return 0;
3177 }
3178 _ACEOF
3179 rm -f conftest.$ac_objext
3180 if { (ac_try="$ac_compile"
3181 case "(($ac_try" in
3182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3183 *) ac_try_echo=$ac_try;;
3184 esac
3185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3186 $as_echo "$ac_try_echo") >&5
3187 (eval "$ac_compile") 2>conftest.er1
3188 ac_status=$?
3189 grep -v '^ *+' conftest.er1 >conftest.err
3190 rm -f conftest.er1
3191 cat conftest.err >&5
3192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); } && {
3194 test -z "$ac_c_werror_flag" ||
3195 test ! -s conftest.err
3196 } && test -s conftest.$ac_objext; then
3197 :
3198 else
3199 $as_echo "$as_me: failed program was:" >&5
3200 sed 's/^/| /' conftest.$ac_ext >&5
3201
3202 ac_c_werror_flag=$ac_save_c_werror_flag
3203 CFLAGS="-g"
3204 cat >conftest.$ac_ext <<_ACEOF
3205 /* confdefs.h. */
3206 _ACEOF
3207 cat confdefs.h >>conftest.$ac_ext
3208 cat >>conftest.$ac_ext <<_ACEOF
3209 /* end confdefs.h. */
3210
3211 int
3212 main ()
3213 {
3214
3215 ;
3216 return 0;
3217 }
3218 _ACEOF
3219 rm -f conftest.$ac_objext
3220 if { (ac_try="$ac_compile"
3221 case "(($ac_try" in
3222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3223 *) ac_try_echo=$ac_try;;
3224 esac
3225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3226 $as_echo "$ac_try_echo") >&5
3227 (eval "$ac_compile") 2>conftest.er1
3228 ac_status=$?
3229 grep -v '^ *+' conftest.er1 >conftest.err
3230 rm -f conftest.er1
3231 cat conftest.err >&5
3232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233 (exit $ac_status); } && {
3234 test -z "$ac_c_werror_flag" ||
3235 test ! -s conftest.err
3236 } && test -s conftest.$ac_objext; then
3237 ac_cv_prog_cc_g=yes
3238 else
3239 $as_echo "$as_me: failed program was:" >&5
3240 sed 's/^/| /' conftest.$ac_ext >&5
3241
3242
3243 fi
3244
3245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3246 fi
3247
3248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3249 fi
3250
3251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3252 ac_c_werror_flag=$ac_save_c_werror_flag
3253 fi
3254 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3255 $as_echo "$ac_cv_prog_cc_g" >&6; }
3256 if test "$ac_test_CFLAGS" = set; then
3257 CFLAGS=$ac_save_CFLAGS
3258 elif test $ac_cv_prog_cc_g = yes; then
3259 if test "$GCC" = yes; then
3260 CFLAGS="-g -O2"
3261 else
3262 CFLAGS="-g"
3263 fi
3264 else
3265 if test "$GCC" = yes; then
3266 CFLAGS="-O2"
3267 else
3268 CFLAGS=
3269 fi
3270 fi
3271 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3272 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3273 if test "${ac_cv_prog_cc_c89+set}" = set; then
3274 $as_echo_n "(cached) " >&6
3275 else
3276 ac_cv_prog_cc_c89=no
3277 ac_save_CC=$CC
3278 cat >conftest.$ac_ext <<_ACEOF
3279 /* confdefs.h. */
3280 _ACEOF
3281 cat confdefs.h >>conftest.$ac_ext
3282 cat >>conftest.$ac_ext <<_ACEOF
3283 /* end confdefs.h. */
3284 #include <stdarg.h>
3285 #include <stdio.h>
3286 #include <sys/types.h>
3287 #include <sys/stat.h>
3288 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3289 struct buf { int x; };
3290 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3291 static char *e (p, i)
3292 char **p;
3293 int i;
3294 {
3295 return p[i];
3296 }
3297 static char *f (char * (*g) (char **, int), char **p, ...)
3298 {
3299 char *s;
3300 va_list v;
3301 va_start (v,p);
3302 s = g (p, va_arg (v,int));
3303 va_end (v);
3304 return s;
3305 }
3306
3307 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3308 function prototypes and stuff, but not '\xHH' hex character constants.
3309 These don't provoke an error unfortunately, instead are silently treated
3310 as 'x'. The following induces an error, until -std is added to get
3311 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3312 array size at least. It's necessary to write '\x00'==0 to get something
3313 that's true only with -std. */
3314 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3315
3316 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3317 inside strings and character constants. */
3318 #define FOO(x) 'x'
3319 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3320
3321 int test (int i, double x);
3322 struct s1 {int (*f) (int a);};
3323 struct s2 {int (*f) (double a);};
3324 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3325 int argc;
3326 char **argv;
3327 int
3328 main ()
3329 {
3330 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3331 ;
3332 return 0;
3333 }
3334 _ACEOF
3335 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3336 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3337 do
3338 CC="$ac_save_CC $ac_arg"
3339 rm -f conftest.$ac_objext
3340 if { (ac_try="$ac_compile"
3341 case "(($ac_try" in
3342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343 *) ac_try_echo=$ac_try;;
3344 esac
3345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3346 $as_echo "$ac_try_echo") >&5
3347 (eval "$ac_compile") 2>conftest.er1
3348 ac_status=$?
3349 grep -v '^ *+' conftest.er1 >conftest.err
3350 rm -f conftest.er1
3351 cat conftest.err >&5
3352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); } && {
3354 test -z "$ac_c_werror_flag" ||
3355 test ! -s conftest.err
3356 } && test -s conftest.$ac_objext; then
3357 ac_cv_prog_cc_c89=$ac_arg
3358 else
3359 $as_echo "$as_me: failed program was:" >&5
3360 sed 's/^/| /' conftest.$ac_ext >&5
3361
3362
3363 fi
3364
3365 rm -f core conftest.err conftest.$ac_objext
3366 test "x$ac_cv_prog_cc_c89" != "xno" && break
3367 done
3368 rm -f conftest.$ac_ext
3369 CC=$ac_save_CC
3370
3371 fi
3372 # AC_CACHE_VAL
3373 case "x$ac_cv_prog_cc_c89" in
3374 x)
3375 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3376 $as_echo "none needed" >&6; } ;;
3377 xno)
3378 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3379 $as_echo "unsupported" >&6; } ;;
3380 *)
3381 CC="$CC $ac_cv_prog_cc_c89"
3382 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3383 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3384 esac
3385
3386
3387 ac_ext=c
3388 ac_cpp='$CPP $CPPFLAGS'
3389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3392 DEPDIR="${am__leading_dot}deps"
3393
3394 ac_config_commands="$ac_config_commands depfiles"
3395
3396
3397 am_make=${MAKE-make}
3398 cat > confinc << 'END'
3399 am__doit:
3400 @echo done
3401 .PHONY: am__doit
3402 END
3403 # If we don't find an include directive, just comment out the code.
3404 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3405 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3406 am__include="#"
3407 am__quote=
3408 _am_result=none
3409 # First try GNU make style include.
3410 echo "include confinc" > confmf
3411 # We grep out `Entering directory' and `Leaving directory'
3412 # messages which can occur if `w' ends up in MAKEFLAGS.
3413 # In particular we don't look at `^make:' because GNU make might
3414 # be invoked under some other name (usually "gmake"), in which
3415 # case it prints its new name instead of `make'.
3416 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3417 am__include=include
3418 am__quote=
3419 _am_result=GNU
3420 fi
3421 # Now try BSD make style include.
3422 if test "$am__include" = "#"; then
3423 echo '.include "confinc"' > confmf
3424 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3425 am__include=.include
3426 am__quote="\""
3427 _am_result=BSD
3428 fi
3429 fi
3430
3431
3432 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3433 $as_echo "$_am_result" >&6; }
3434 rm -f confinc confmf
3435
3436 # Check whether --enable-dependency-tracking was given.
3437 if test "${enable_dependency_tracking+set}" = set; then
3438 enableval=$enable_dependency_tracking;
3439 fi
3440
3441 if test "x$enable_dependency_tracking" != xno; then
3442 am_depcomp="$ac_aux_dir/depcomp"
3443 AMDEPBACKSLASH='\'
3444 fi
3445 if test "x$enable_dependency_tracking" != xno; then
3446 AMDEP_TRUE=
3447 AMDEP_FALSE='#'
3448 else
3449 AMDEP_TRUE='#'
3450 AMDEP_FALSE=
3451 fi
3452
3453
3454
3455 depcc="$CC" am_compiler_list=
3456
3457 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3458 $as_echo_n "checking dependency style of $depcc... " >&6; }
3459 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3460 $as_echo_n "(cached) " >&6
3461 else
3462 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3463 # We make a subdir and do the tests there. Otherwise we can end up
3464 # making bogus files that we don't know about and never remove. For
3465 # instance it was reported that on HP-UX the gcc test will end up
3466 # making a dummy file named `D' -- because `-MD' means `put the output
3467 # in D'.
3468 mkdir conftest.dir
3469 # Copy depcomp to subdir because otherwise we won't find it if we're
3470 # using a relative directory.
3471 cp "$am_depcomp" conftest.dir
3472 cd conftest.dir
3473 # We will build objects and dependencies in a subdirectory because
3474 # it helps to detect inapplicable dependency modes. For instance
3475 # both Tru64's cc and ICC support -MD to output dependencies as a
3476 # side effect of compilation, but ICC will put the dependencies in
3477 # the current directory while Tru64 will put them in the object
3478 # directory.
3479 mkdir sub
3480
3481 am_cv_CC_dependencies_compiler_type=none
3482 if test "$am_compiler_list" = ""; then
3483 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3484 fi
3485 for depmode in $am_compiler_list; do
3486 # Setup a source with many dependencies, because some compilers
3487 # like to wrap large dependency lists on column 80 (with \), and
3488 # we should not choose a depcomp mode which is confused by this.
3489 #
3490 # We need to recreate these files for each test, as the compiler may
3491 # overwrite some of them when testing with obscure command lines.
3492 # This happens at least with the AIX C compiler.
3493 : > sub/conftest.c
3494 for i in 1 2 3 4 5 6; do
3495 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3496 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3497 # Solaris 8's {/usr,}/bin/sh.
3498 touch sub/conftst$i.h
3499 done
3500 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3501
3502 case $depmode in
3503 nosideeffect)
3504 # after this tag, mechanisms are not by side-effect, so they'll
3505 # only be used when explicitly requested
3506 if test "x$enable_dependency_tracking" = xyes; then
3507 continue
3508 else
3509 break
3510 fi
3511 ;;
3512 none) break ;;
3513 esac
3514 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3515 # mode. It turns out that the SunPro C++ compiler does not properly
3516 # handle `-M -o', and we need to detect this.
3517 if depmode=$depmode \
3518 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3519 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3520 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3521 >/dev/null 2>conftest.err &&
3522 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3523 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3524 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3525 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3526 # icc doesn't choke on unknown options, it will just issue warnings
3527 # or remarks (even with -Werror). So we grep stderr for any message
3528 # that says an option was ignored or not supported.
3529 # When given -MP, icc 7.0 and 7.1 complain thusly:
3530 # icc: Command line warning: ignoring option '-M'; no argument required
3531 # The diagnosis changed in icc 8.0:
3532 # icc: Command line remark: option '-MP' not supported
3533 if (grep 'ignoring option' conftest.err ||
3534 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3535 am_cv_CC_dependencies_compiler_type=$depmode
3536 break
3537 fi
3538 fi
3539 done
3540
3541 cd ..
3542 rm -rf conftest.dir
3543 else
3544 am_cv_CC_dependencies_compiler_type=none
3545 fi
3546
3547 fi
3548 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3549 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3550 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3551
3552 if
3553 test "x$enable_dependency_tracking" != xno \
3554 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3555 am__fastdepCC_TRUE=
3556 am__fastdepCC_FALSE='#'
3557 else
3558 am__fastdepCC_TRUE='#'
3559 am__fastdepCC_FALSE=
3560 fi
3561
3562
3563
3564 { $as_echo "$as_me:$LINENO: checking if cross compiling" >&5
3565 $as_echo_n "checking if cross compiling... " >&6; }
3566 if test "x$cross_compiling" = "xno"; then
3567 CC_FOR_BUILD=${CC_FOR_BUILD-${CC-gcc}}
3568 { $as_echo "$as_me:$LINENO: result: no" >&5
3569 $as_echo "no" >&6; }
3570 else
3571 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3572 { $as_echo "$as_me:$LINENO: result: yes" >&5
3573 $as_echo "yes" >&6; }
3574 fi
3575
3576
3577
3578 #
3579 # do we need libm for 'sqrt' and 'pow'?
3580 #
3581
3582 { $as_echo "$as_me:$LINENO: checking for library containing sqrt" >&5
3583 $as_echo_n "checking for library containing sqrt... " >&6; }
3584 if test "${ac_cv_search_sqrt+set}" = set; then
3585 $as_echo_n "(cached) " >&6
3586 else
3587 ac_func_search_save_LIBS=$LIBS
3588 cat >conftest.$ac_ext <<_ACEOF
3589 /* confdefs.h. */
3590 _ACEOF
3591 cat confdefs.h >>conftest.$ac_ext
3592 cat >>conftest.$ac_ext <<_ACEOF
3593 /* end confdefs.h. */
3594
3595 /* Override any GCC internal prototype to avoid an error.
3596 Use char because int might match the return type of a GCC
3597 builtin and then its argument prototype would still apply. */
3598 #ifdef __cplusplus
3599 extern "C"
3600 #endif
3601 char sqrt ();
3602 int
3603 main ()
3604 {
3605 return sqrt ();
3606 ;
3607 return 0;
3608 }
3609 _ACEOF
3610 for ac_lib in '' m; do
3611 if test -z "$ac_lib"; then
3612 ac_res="none required"
3613 else
3614 ac_res=-l$ac_lib
3615 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3616 fi
3617 rm -f conftest.$ac_objext conftest$ac_exeext
3618 if { (ac_try="$ac_link"
3619 case "(($ac_try" in
3620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3621 *) ac_try_echo=$ac_try;;
3622 esac
3623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3624 $as_echo "$ac_try_echo") >&5
3625 (eval "$ac_link") 2>conftest.er1
3626 ac_status=$?
3627 grep -v '^ *+' conftest.er1 >conftest.err
3628 rm -f conftest.er1
3629 cat conftest.err >&5
3630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631 (exit $ac_status); } && {
3632 test -z "$ac_c_werror_flag" ||
3633 test ! -s conftest.err
3634 } && test -s conftest$ac_exeext && {
3635 test "$cross_compiling" = yes ||
3636 $as_test_x conftest$ac_exeext
3637 }; then
3638 ac_cv_search_sqrt=$ac_res
3639 else
3640 $as_echo "$as_me: failed program was:" >&5
3641 sed 's/^/| /' conftest.$ac_ext >&5
3642
3643
3644 fi
3645
3646 rm -rf conftest.dSYM
3647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3648 conftest$ac_exeext
3649 if test "${ac_cv_search_sqrt+set}" = set; then
3650 break
3651 fi
3652 done
3653 if test "${ac_cv_search_sqrt+set}" = set; then
3654 :
3655 else
3656 ac_cv_search_sqrt=no
3657 fi
3658 rm conftest.$ac_ext
3659 LIBS=$ac_func_search_save_LIBS
3660 fi
3661 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_sqrt" >&5
3662 $as_echo "$ac_cv_search_sqrt" >&6; }
3663 ac_res=$ac_cv_search_sqrt
3664 if test "$ac_res" != no; then
3665 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3666
3667 fi
3668
3669 { $as_echo "$as_me:$LINENO: checking for library containing pow" >&5
3670 $as_echo_n "checking for library containing pow... " >&6; }
3671 if test "${ac_cv_search_pow+set}" = set; then
3672 $as_echo_n "(cached) " >&6
3673 else
3674 ac_func_search_save_LIBS=$LIBS
3675 cat >conftest.$ac_ext <<_ACEOF
3676 /* confdefs.h. */
3677 _ACEOF
3678 cat confdefs.h >>conftest.$ac_ext
3679 cat >>conftest.$ac_ext <<_ACEOF
3680 /* end confdefs.h. */
3681
3682 /* Override any GCC internal prototype to avoid an error.
3683 Use char because int might match the return type of a GCC
3684 builtin and then its argument prototype would still apply. */
3685 #ifdef __cplusplus
3686 extern "C"
3687 #endif
3688 char pow ();
3689 int
3690 main ()
3691 {
3692 return pow ();
3693 ;
3694 return 0;
3695 }
3696 _ACEOF
3697 for ac_lib in '' m; do
3698 if test -z "$ac_lib"; then
3699 ac_res="none required"
3700 else
3701 ac_res=-l$ac_lib
3702 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3703 fi
3704 rm -f conftest.$ac_objext conftest$ac_exeext
3705 if { (ac_try="$ac_link"
3706 case "(($ac_try" in
3707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3708 *) ac_try_echo=$ac_try;;
3709 esac
3710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3711 $as_echo "$ac_try_echo") >&5
3712 (eval "$ac_link") 2>conftest.er1
3713 ac_status=$?
3714 grep -v '^ *+' conftest.er1 >conftest.err
3715 rm -f conftest.er1
3716 cat conftest.err >&5
3717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718 (exit $ac_status); } && {
3719 test -z "$ac_c_werror_flag" ||
3720 test ! -s conftest.err
3721 } && test -s conftest$ac_exeext && {
3722 test "$cross_compiling" = yes ||
3723 $as_test_x conftest$ac_exeext
3724 }; then
3725 ac_cv_search_pow=$ac_res
3726 else
3727 $as_echo "$as_me: failed program was:" >&5
3728 sed 's/^/| /' conftest.$ac_ext >&5
3729
3730
3731 fi
3732
3733 rm -rf conftest.dSYM
3734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3735 conftest$ac_exeext
3736 if test "${ac_cv_search_pow+set}" = set; then
3737 break
3738 fi
3739 done
3740 if test "${ac_cv_search_pow+set}" = set; then
3741 :
3742 else
3743 ac_cv_search_pow=no
3744 fi
3745 rm conftest.$ac_ext
3746 LIBS=$ac_func_search_save_LIBS
3747 fi
3748 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_pow" >&5
3749 $as_echo "$ac_cv_search_pow" >&6; }
3750 ac_res=$ac_cv_search_pow
3751 if test "$ac_res" != no; then
3752 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3753
3754 fi
3755
3756
3757 #
3758 # other things we rely on
3759 #
3760
3761
3762
3763
3764
3765 for ac_func in memmove memset strcasecmp strchr strdup
3766 do
3767 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
3768 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
3769 $as_echo_n "checking for $ac_func... " >&6; }
3770 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
3771 $as_echo_n "(cached) " >&6
3772 else
3773 cat >conftest.$ac_ext <<_ACEOF
3774 /* confdefs.h. */
3775 _ACEOF
3776 cat confdefs.h >>conftest.$ac_ext
3777 cat >>conftest.$ac_ext <<_ACEOF
3778 /* end confdefs.h. */
3779 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3780 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3781 #define $ac_func innocuous_$ac_func
3782
3783 /* System header to define __stub macros and hopefully few prototypes,
3784 which can conflict with char $ac_func (); below.
3785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3786 <limits.h> exists even on freestanding compilers. */
3787
3788 #ifdef __STDC__
3789 # include <limits.h>
3790 #else
3791 # include <assert.h>
3792 #endif
3793
3794 #undef $ac_func
3795
3796 /* Override any GCC internal prototype to avoid an error.
3797 Use char because int might match the return type of a GCC
3798 builtin and then its argument prototype would still apply. */
3799 #ifdef __cplusplus
3800 extern "C"
3801 #endif
3802 char $ac_func ();
3803 /* The GNU C library defines this for functions which it implements
3804 to always fail with ENOSYS. Some functions are actually named
3805 something starting with __ and the normal name is an alias. */
3806 #if defined __stub_$ac_func || defined __stub___$ac_func
3807 choke me
3808 #endif
3809
3810 int
3811 main ()
3812 {
3813 return $ac_func ();
3814 ;
3815 return 0;
3816 }
3817 _ACEOF
3818 rm -f conftest.$ac_objext conftest$ac_exeext
3819 if { (ac_try="$ac_link"
3820 case "(($ac_try" in
3821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3822 *) ac_try_echo=$ac_try;;
3823 esac
3824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3825 $as_echo "$ac_try_echo") >&5
3826 (eval "$ac_link") 2>conftest.er1
3827 ac_status=$?
3828 grep -v '^ *+' conftest.er1 >conftest.err
3829 rm -f conftest.er1
3830 cat conftest.err >&5
3831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832 (exit $ac_status); } && {
3833 test -z "$ac_c_werror_flag" ||
3834 test ! -s conftest.err
3835 } && test -s conftest$ac_exeext && {
3836 test "$cross_compiling" = yes ||
3837 $as_test_x conftest$ac_exeext
3838 }; then
3839 eval "$as_ac_var=yes"
3840 else
3841 $as_echo "$as_me: failed program was:" >&5
3842 sed 's/^/| /' conftest.$ac_ext >&5
3843
3844 eval "$as_ac_var=no"
3845 fi
3846
3847 rm -rf conftest.dSYM
3848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3849 conftest$ac_exeext conftest.$ac_ext
3850 fi
3851 ac_res=`eval 'as_val=${'$as_ac_var'}
3852 $as_echo "$as_val"'`
3853 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3854 $as_echo "$ac_res" >&6; }
3855 if test `eval 'as_val=${'$as_ac_var'}
3856 $as_echo "$as_val"'` = yes; then
3857 cat >>confdefs.h <<_ACEOF
3858 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
3859 _ACEOF
3860
3861 fi
3862 done
3863
3864 ac_ext=c
3865 ac_cpp='$CPP $CPPFLAGS'
3866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3869 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3870 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3871 # On Suns, sometimes $CPP names a directory.
3872 if test -n "$CPP" && test -d "$CPP"; then
3873 CPP=
3874 fi
3875 if test -z "$CPP"; then
3876 if test "${ac_cv_prog_CPP+set}" = set; then
3877 $as_echo_n "(cached) " >&6
3878 else
3879 # Double quotes because CPP needs to be expanded
3880 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3881 do
3882 ac_preproc_ok=false
3883 for ac_c_preproc_warn_flag in '' yes
3884 do
3885 # Use a header file that comes with gcc, so configuring glibc
3886 # with a fresh cross-compiler works.
3887 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3888 # <limits.h> exists even on freestanding compilers.
3889 # On the NeXT, cc -E runs the code through the compiler's parser,
3890 # not just through cpp. "Syntax error" is here to catch this case.
3891 cat >conftest.$ac_ext <<_ACEOF
3892 /* confdefs.h. */
3893 _ACEOF
3894 cat confdefs.h >>conftest.$ac_ext
3895 cat >>conftest.$ac_ext <<_ACEOF
3896 /* end confdefs.h. */
3897 #ifdef __STDC__
3898 # include <limits.h>
3899 #else
3900 # include <assert.h>
3901 #endif
3902 Syntax error
3903 _ACEOF
3904 if { (ac_try="$ac_cpp conftest.$ac_ext"
3905 case "(($ac_try" in
3906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3907 *) ac_try_echo=$ac_try;;
3908 esac
3909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3910 $as_echo "$ac_try_echo") >&5
3911 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3912 ac_status=$?
3913 grep -v '^ *+' conftest.er1 >conftest.err
3914 rm -f conftest.er1
3915 cat conftest.err >&5
3916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917 (exit $ac_status); } >/dev/null && {
3918 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3919 test ! -s conftest.err
3920 }; then
3921 :
3922 else
3923 $as_echo "$as_me: failed program was:" >&5
3924 sed 's/^/| /' conftest.$ac_ext >&5
3925
3926 # Broken: fails on valid input.
3927 continue
3928 fi
3929
3930 rm -f conftest.err conftest.$ac_ext
3931
3932 # OK, works on sane cases. Now check whether nonexistent headers
3933 # can be detected and how.
3934 cat >conftest.$ac_ext <<_ACEOF
3935 /* confdefs.h. */
3936 _ACEOF
3937 cat confdefs.h >>conftest.$ac_ext
3938 cat >>conftest.$ac_ext <<_ACEOF
3939 /* end confdefs.h. */
3940 #include <ac_nonexistent.h>
3941 _ACEOF
3942 if { (ac_try="$ac_cpp conftest.$ac_ext"
3943 case "(($ac_try" in
3944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3945 *) ac_try_echo=$ac_try;;
3946 esac
3947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3948 $as_echo "$ac_try_echo") >&5
3949 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3950 ac_status=$?
3951 grep -v '^ *+' conftest.er1 >conftest.err
3952 rm -f conftest.er1
3953 cat conftest.err >&5
3954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955 (exit $ac_status); } >/dev/null && {
3956 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3957 test ! -s conftest.err
3958 }; then
3959 # Broken: success on invalid input.
3960 continue
3961 else
3962 $as_echo "$as_me: failed program was:" >&5
3963 sed 's/^/| /' conftest.$ac_ext >&5
3964
3965 # Passes both tests.
3966 ac_preproc_ok=:
3967 break
3968 fi
3969
3970 rm -f conftest.err conftest.$ac_ext
3971
3972 done
3973 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3974 rm -f conftest.err conftest.$ac_ext
3975 if $ac_preproc_ok; then
3976 break
3977 fi
3978
3979 done
3980 ac_cv_prog_CPP=$CPP
3981
3982 fi
3983 CPP=$ac_cv_prog_CPP
3984 else
3985 ac_cv_prog_CPP=$CPP
3986 fi
3987 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3988 $as_echo "$CPP" >&6; }
3989 ac_preproc_ok=false
3990 for ac_c_preproc_warn_flag in '' yes
3991 do
3992 # Use a header file that comes with gcc, so configuring glibc
3993 # with a fresh cross-compiler works.
3994 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3995 # <limits.h> exists even on freestanding compilers.
3996 # On the NeXT, cc -E runs the code through the compiler's parser,
3997 # not just through cpp. "Syntax error" is here to catch this case.
3998 cat >conftest.$ac_ext <<_ACEOF
3999 /* confdefs.h. */
4000 _ACEOF
4001 cat confdefs.h >>conftest.$ac_ext
4002 cat >>conftest.$ac_ext <<_ACEOF
4003 /* end confdefs.h. */
4004 #ifdef __STDC__
4005 # include <limits.h>
4006 #else
4007 # include <assert.h>
4008 #endif
4009 Syntax error
4010 _ACEOF
4011 if { (ac_try="$ac_cpp conftest.$ac_ext"
4012 case "(($ac_try" in
4013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4014 *) ac_try_echo=$ac_try;;
4015 esac
4016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4017 $as_echo "$ac_try_echo") >&5
4018 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4019 ac_status=$?
4020 grep -v '^ *+' conftest.er1 >conftest.err
4021 rm -f conftest.er1
4022 cat conftest.err >&5
4023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024 (exit $ac_status); } >/dev/null && {
4025 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4026 test ! -s conftest.err
4027 }; then
4028 :
4029 else
4030 $as_echo "$as_me: failed program was:" >&5
4031 sed 's/^/| /' conftest.$ac_ext >&5
4032
4033 # Broken: fails on valid input.
4034 continue
4035 fi
4036
4037 rm -f conftest.err conftest.$ac_ext
4038
4039 # OK, works on sane cases. Now check whether nonexistent headers
4040 # can be detected and how.
4041 cat >conftest.$ac_ext <<_ACEOF
4042 /* confdefs.h. */
4043 _ACEOF
4044 cat confdefs.h >>conftest.$ac_ext
4045 cat >>conftest.$ac_ext <<_ACEOF
4046 /* end confdefs.h. */
4047 #include <ac_nonexistent.h>
4048 _ACEOF
4049 if { (ac_try="$ac_cpp conftest.$ac_ext"
4050 case "(($ac_try" in
4051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4052 *) ac_try_echo=$ac_try;;
4053 esac
4054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4055 $as_echo "$ac_try_echo") >&5
4056 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4057 ac_status=$?
4058 grep -v '^ *+' conftest.er1 >conftest.err
4059 rm -f conftest.er1
4060 cat conftest.err >&5
4061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062 (exit $ac_status); } >/dev/null && {
4063 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4064 test ! -s conftest.err
4065 }; then
4066 # Broken: success on invalid input.
4067 continue
4068 else
4069 $as_echo "$as_me: failed program was:" >&5
4070 sed 's/^/| /' conftest.$ac_ext >&5
4071
4072 # Passes both tests.
4073 ac_preproc_ok=:
4074 break
4075 fi
4076
4077 rm -f conftest.err conftest.$ac_ext
4078
4079 done
4080 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4081 rm -f conftest.err conftest.$ac_ext
4082 if $ac_preproc_ok; then
4083 :
4084 else
4085 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4086 See \`config.log' for more details." >&5
4087 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4088 See \`config.log' for more details." >&2;}
4089 { (exit 1); exit 1; }; }
4090 fi
4091
4092 ac_ext=c
4093 ac_cpp='$CPP $CPPFLAGS'
4094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4097
4098
4099 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4100 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4101 if test "${ac_cv_path_GREP+set}" = set; then
4102 $as_echo_n "(cached) " >&6
4103 else
4104 if test -z "$GREP"; then
4105 ac_path_GREP_found=false
4106 # Loop through the user's path and test for each of PROGNAME-LIST
4107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4108 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4109 do
4110 IFS=$as_save_IFS
4111 test -z "$as_dir" && as_dir=.
4112 for ac_prog in grep ggrep; do
4113 for ac_exec_ext in '' $ac_executable_extensions; do
4114 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4115 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4116 # Check for GNU ac_path_GREP and select it if it is found.
4117 # Check for GNU $ac_path_GREP
4118 case `"$ac_path_GREP" --version 2>&1` in
4119 *GNU*)
4120 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4121 *)
4122 ac_count=0
4123 $as_echo_n 0123456789 >"conftest.in"
4124 while :
4125 do
4126 cat "conftest.in" "conftest.in" >"conftest.tmp"
4127 mv "conftest.tmp" "conftest.in"
4128 cp "conftest.in" "conftest.nl"
4129 $as_echo 'GREP' >> "conftest.nl"
4130 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4131 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4132 ac_count=`expr $ac_count + 1`
4133 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4134 # Best one so far, save it but keep looking for a better one
4135 ac_cv_path_GREP="$ac_path_GREP"
4136 ac_path_GREP_max=$ac_count
4137 fi
4138 # 10*(2^10) chars as input seems more than enough
4139 test $ac_count -gt 10 && break
4140 done
4141 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4142 esac
4143
4144 $ac_path_GREP_found && break 3
4145 done
4146 done
4147 done
4148 IFS=$as_save_IFS
4149 if test -z "$ac_cv_path_GREP"; then
4150 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4151 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4152 { (exit 1); exit 1; }; }
4153 fi
4154 else
4155 ac_cv_path_GREP=$GREP
4156 fi
4157
4158 fi
4159 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4160 $as_echo "$ac_cv_path_GREP" >&6; }
4161 GREP="$ac_cv_path_GREP"
4162
4163
4164 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4165 $as_echo_n "checking for egrep... " >&6; }
4166 if test "${ac_cv_path_EGREP+set}" = set; then
4167 $as_echo_n "(cached) " >&6
4168 else
4169 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4170 then ac_cv_path_EGREP="$GREP -E"
4171 else
4172 if test -z "$EGREP"; then
4173 ac_path_EGREP_found=false
4174 # Loop through the user's path and test for each of PROGNAME-LIST
4175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4176 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4177 do
4178 IFS=$as_save_IFS
4179 test -z "$as_dir" && as_dir=.
4180 for ac_prog in egrep; do
4181 for ac_exec_ext in '' $ac_executable_extensions; do
4182 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4183 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4184 # Check for GNU ac_path_EGREP and select it if it is found.
4185 # Check for GNU $ac_path_EGREP
4186 case `"$ac_path_EGREP" --version 2>&1` in
4187 *GNU*)
4188 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4189 *)
4190 ac_count=0
4191 $as_echo_n 0123456789 >"conftest.in"
4192 while :
4193 do
4194 cat "conftest.in" "conftest.in" >"conftest.tmp"
4195 mv "conftest.tmp" "conftest.in"
4196 cp "conftest.in" "conftest.nl"
4197 $as_echo 'EGREP' >> "conftest.nl"
4198 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4199 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4200 ac_count=`expr $ac_count + 1`
4201 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4202 # Best one so far, save it but keep looking for a better one
4203 ac_cv_path_EGREP="$ac_path_EGREP"
4204 ac_path_EGREP_max=$ac_count
4205 fi
4206 # 10*(2^10) chars as input seems more than enough
4207 test $ac_count -gt 10 && break
4208 done
4209 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4210 esac
4211
4212 $ac_path_EGREP_found && break 3
4213 done
4214 done
4215 done
4216 IFS=$as_save_IFS
4217 if test -z "$ac_cv_path_EGREP"; then
4218 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4219 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4220 { (exit 1); exit 1; }; }
4221 fi
4222 else
4223 ac_cv_path_EGREP=$EGREP
4224 fi
4225
4226 fi
4227 fi
4228 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4229 $as_echo "$ac_cv_path_EGREP" >&6; }
4230 EGREP="$ac_cv_path_EGREP"
4231
4232
4233 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4234 $as_echo_n "checking for ANSI C header files... " >&6; }
4235 if test "${ac_cv_header_stdc+set}" = set; then
4236 $as_echo_n "(cached) " >&6
4237 else
4238 cat >conftest.$ac_ext <<_ACEOF
4239 /* confdefs.h. */
4240 _ACEOF
4241 cat confdefs.h >>conftest.$ac_ext
4242 cat >>conftest.$ac_ext <<_ACEOF
4243 /* end confdefs.h. */
4244 #include <stdlib.h>
4245 #include <stdarg.h>
4246 #include <string.h>
4247 #include <float.h>
4248
4249 int
4250 main ()
4251 {
4252
4253 ;
4254 return 0;
4255 }
4256 _ACEOF
4257 rm -f conftest.$ac_objext
4258 if { (ac_try="$ac_compile"
4259 case "(($ac_try" in
4260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4261 *) ac_try_echo=$ac_try;;
4262 esac
4263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4264 $as_echo "$ac_try_echo") >&5
4265 (eval "$ac_compile") 2>conftest.er1
4266 ac_status=$?
4267 grep -v '^ *+' conftest.er1 >conftest.err
4268 rm -f conftest.er1
4269 cat conftest.err >&5
4270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271 (exit $ac_status); } && {
4272 test -z "$ac_c_werror_flag" ||
4273 test ! -s conftest.err
4274 } && test -s conftest.$ac_objext; then
4275 ac_cv_header_stdc=yes
4276 else
4277 $as_echo "$as_me: failed program was:" >&5
4278 sed 's/^/| /' conftest.$ac_ext >&5
4279
4280 ac_cv_header_stdc=no
4281 fi
4282
4283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4284
4285 if test $ac_cv_header_stdc = yes; then
4286 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4287 cat >conftest.$ac_ext <<_ACEOF
4288 /* confdefs.h. */
4289 _ACEOF
4290 cat confdefs.h >>conftest.$ac_ext
4291 cat >>conftest.$ac_ext <<_ACEOF
4292 /* end confdefs.h. */
4293 #include <string.h>
4294
4295 _ACEOF
4296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4297 $EGREP "memchr" >/dev/null 2>&1; then
4298 :
4299 else
4300 ac_cv_header_stdc=no
4301 fi
4302 rm -f conftest*
4303
4304 fi
4305
4306 if test $ac_cv_header_stdc = yes; then
4307 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4308 cat >conftest.$ac_ext <<_ACEOF
4309 /* confdefs.h. */
4310 _ACEOF
4311 cat confdefs.h >>conftest.$ac_ext
4312 cat >>conftest.$ac_ext <<_ACEOF
4313 /* end confdefs.h. */
4314 #include <stdlib.h>
4315
4316 _ACEOF
4317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4318 $EGREP "free" >/dev/null 2>&1; then
4319 :
4320 else
4321 ac_cv_header_stdc=no
4322 fi
4323 rm -f conftest*
4324
4325 fi
4326
4327 if test $ac_cv_header_stdc = yes; then
4328 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4329 if test "$cross_compiling" = yes; then
4330 :
4331 else
4332 cat >conftest.$ac_ext <<_ACEOF
4333 /* confdefs.h. */
4334 _ACEOF
4335 cat confdefs.h >>conftest.$ac_ext
4336 cat >>conftest.$ac_ext <<_ACEOF
4337 /* end confdefs.h. */
4338 #include <ctype.h>
4339 #include <stdlib.h>
4340 #if ((' ' & 0x0FF) == 0x020)
4341 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4342 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4343 #else
4344 # define ISLOWER(c) \
4345 (('a' <= (c) && (c) <= 'i') \
4346 || ('j' <= (c) && (c) <= 'r') \
4347 || ('s' <= (c) && (c) <= 'z'))
4348 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4349 #endif
4350
4351 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4352 int
4353 main ()
4354 {
4355 int i;
4356 for (i = 0; i < 256; i++)
4357 if (XOR (islower (i), ISLOWER (i))
4358 || toupper (i) != TOUPPER (i))
4359 return 2;
4360 return 0;
4361 }
4362 _ACEOF
4363 rm -f conftest$ac_exeext
4364 if { (ac_try="$ac_link"
4365 case "(($ac_try" in
4366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4367 *) ac_try_echo=$ac_try;;
4368 esac
4369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4370 $as_echo "$ac_try_echo") >&5
4371 (eval "$ac_link") 2>&5
4372 ac_status=$?
4373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4375 { (case "(($ac_try" in
4376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4377 *) ac_try_echo=$ac_try;;
4378 esac
4379 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4380 $as_echo "$ac_try_echo") >&5
4381 (eval "$ac_try") 2>&5
4382 ac_status=$?
4383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384 (exit $ac_status); }; }; then
4385 :
4386 else
4387 $as_echo "$as_me: program exited with status $ac_status" >&5
4388 $as_echo "$as_me: failed program was:" >&5
4389 sed 's/^/| /' conftest.$ac_ext >&5
4390
4391 ( exit $ac_status )
4392 ac_cv_header_stdc=no
4393 fi
4394 rm -rf conftest.dSYM
4395 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4396 fi
4397
4398
4399 fi
4400 fi
4401 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4402 $as_echo "$ac_cv_header_stdc" >&6; }
4403 if test $ac_cv_header_stdc = yes; then
4404
4405 cat >>confdefs.h <<\_ACEOF
4406 #define STDC_HEADERS 1
4407 _ACEOF
4408
4409 fi
4410
4411 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4422 inttypes.h stdint.h unistd.h
4423 do
4424 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4425 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4426 $as_echo_n "checking for $ac_header... " >&6; }
4427 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4428 $as_echo_n "(cached) " >&6
4429 else
4430 cat >conftest.$ac_ext <<_ACEOF
4431 /* confdefs.h. */
4432 _ACEOF
4433 cat confdefs.h >>conftest.$ac_ext
4434 cat >>conftest.$ac_ext <<_ACEOF
4435 /* end confdefs.h. */
4436 $ac_includes_default
4437
4438 #include <$ac_header>
4439 _ACEOF
4440 rm -f conftest.$ac_objext
4441 if { (ac_try="$ac_compile"
4442 case "(($ac_try" in
4443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4444 *) ac_try_echo=$ac_try;;
4445 esac
4446 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4447 $as_echo "$ac_try_echo") >&5
4448 (eval "$ac_compile") 2>conftest.er1
4449 ac_status=$?
4450 grep -v '^ *+' conftest.er1 >conftest.err
4451 rm -f conftest.er1
4452 cat conftest.err >&5
4453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454 (exit $ac_status); } && {
4455 test -z "$ac_c_werror_flag" ||
4456 test ! -s conftest.err
4457 } && test -s conftest.$ac_objext; then
4458 eval "$as_ac_Header=yes"
4459 else
4460 $as_echo "$as_me: failed program was:" >&5
4461 sed 's/^/| /' conftest.$ac_ext >&5
4462
4463 eval "$as_ac_Header=no"
4464 fi
4465
4466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4467 fi
4468 ac_res=`eval 'as_val=${'$as_ac_Header'}
4469 $as_echo "$as_val"'`
4470 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4471 $as_echo "$ac_res" >&6; }
4472 if test `eval 'as_val=${'$as_ac_Header'}
4473 $as_echo "$as_val"'` = yes; then
4474 cat >>confdefs.h <<_ACEOF
4475 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4476 _ACEOF
4477
4478 fi
4479
4480 done
4481
4482
4483
4484 for ac_header in sys/param.h
4485 do
4486 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4487 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4488 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4489 $as_echo_n "checking for $ac_header... " >&6; }
4490 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4491 $as_echo_n "(cached) " >&6
4492 fi
4493 ac_res=`eval 'as_val=${'$as_ac_Header'}
4494 $as_echo "$as_val"'`
4495 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4496 $as_echo "$ac_res" >&6; }
4497 else
4498 # Is the header compilable?
4499 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4500 $as_echo_n "checking $ac_header usability... " >&6; }
4501 cat >conftest.$ac_ext <<_ACEOF
4502 /* confdefs.h. */
4503 _ACEOF
4504 cat confdefs.h >>conftest.$ac_ext
4505 cat >>conftest.$ac_ext <<_ACEOF
4506 /* end confdefs.h. */
4507 $ac_includes_default
4508 #include <$ac_header>
4509 _ACEOF
4510 rm -f conftest.$ac_objext
4511 if { (ac_try="$ac_compile"
4512 case "(($ac_try" in
4513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4514 *) ac_try_echo=$ac_try;;
4515 esac
4516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4517 $as_echo "$ac_try_echo") >&5
4518 (eval "$ac_compile") 2>conftest.er1
4519 ac_status=$?
4520 grep -v '^ *+' conftest.er1 >conftest.err
4521 rm -f conftest.er1
4522 cat conftest.err >&5
4523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524 (exit $ac_status); } && {
4525 test -z "$ac_c_werror_flag" ||
4526 test ! -s conftest.err
4527 } && test -s conftest.$ac_objext; then
4528 ac_header_compiler=yes
4529 else
4530 $as_echo "$as_me: failed program was:" >&5
4531 sed 's/^/| /' conftest.$ac_ext >&5
4532
4533 ac_header_compiler=no
4534 fi
4535
4536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4537 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4538 $as_echo "$ac_header_compiler" >&6; }
4539
4540 # Is the header present?
4541 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4542 $as_echo_n "checking $ac_header presence... " >&6; }
4543 cat >conftest.$ac_ext <<_ACEOF
4544 /* confdefs.h. */
4545 _ACEOF
4546 cat confdefs.h >>conftest.$ac_ext
4547 cat >>conftest.$ac_ext <<_ACEOF
4548 /* end confdefs.h. */
4549 #include <$ac_header>
4550 _ACEOF
4551 if { (ac_try="$ac_cpp conftest.$ac_ext"
4552 case "(($ac_try" in
4553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4554 *) ac_try_echo=$ac_try;;
4555 esac
4556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4557 $as_echo "$ac_try_echo") >&5
4558 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4559 ac_status=$?
4560 grep -v '^ *+' conftest.er1 >conftest.err
4561 rm -f conftest.er1
4562 cat conftest.err >&5
4563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564 (exit $ac_status); } >/dev/null && {
4565 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4566 test ! -s conftest.err
4567 }; then
4568 ac_header_preproc=yes
4569 else
4570 $as_echo "$as_me: failed program was:" >&5
4571 sed 's/^/| /' conftest.$ac_ext >&5
4572
4573 ac_header_preproc=no
4574 fi
4575
4576 rm -f conftest.err conftest.$ac_ext
4577 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4578 $as_echo "$ac_header_preproc" >&6; }
4579
4580 # So? What about this header?
4581 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4582 yes:no: )
4583 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4584 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4585 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4586 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4587 ac_header_preproc=yes
4588 ;;
4589 no:yes:* )
4590 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4591 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4592 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4593 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4594 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4595 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4596 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4597 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4598 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4599 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4600 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4601 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4602 ( cat <<\_ASBOX
4603 ## -------------------------------------------------- ##
4604 ## Report this to pnm2ppa-users@lists.sourceforge.net ##
4605 ## -------------------------------------------------- ##
4606 _ASBOX
4607 ) | sed "s/^/$as_me: WARNING: /" >&2
4608 ;;
4609 esac
4610 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4611 $as_echo_n "checking for $ac_header... " >&6; }
4612 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4613 $as_echo_n "(cached) " >&6
4614 else
4615 eval "$as_ac_Header=\$ac_header_preproc"
4616 fi
4617 ac_res=`eval 'as_val=${'$as_ac_Header'}
4618 $as_echo "$as_val"'`
4619 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4620 $as_echo "$ac_res" >&6; }
4621
4622 fi
4623 if test `eval 'as_val=${'$as_ac_Header'}
4624 $as_echo "$as_val"'` = yes; then
4625 cat >>confdefs.h <<_ACEOF
4626 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4627 _ACEOF
4628
4629 fi
4630
4631 done
4632
4633 { $as_echo "$as_me:$LINENO: checking for inline" >&5
4634 $as_echo_n "checking for inline... " >&6; }
4635 if test "${ac_cv_c_inline+set}" = set; then
4636 $as_echo_n "(cached) " >&6
4637 else
4638 ac_cv_c_inline=no
4639 for ac_kw in inline __inline__ __inline; do
4640 cat >conftest.$ac_ext <<_ACEOF
4641 /* confdefs.h. */
4642 _ACEOF
4643 cat confdefs.h >>conftest.$ac_ext
4644 cat >>conftest.$ac_ext <<_ACEOF
4645 /* end confdefs.h. */
4646 #ifndef __cplusplus
4647 typedef int foo_t;
4648 static $ac_kw foo_t static_foo () {return 0; }
4649 $ac_kw foo_t foo () {return 0; }
4650 #endif
4651
4652 _ACEOF
4653 rm -f conftest.$ac_objext
4654 if { (ac_try="$ac_compile"
4655 case "(($ac_try" in
4656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4657 *) ac_try_echo=$ac_try;;
4658 esac
4659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4660 $as_echo "$ac_try_echo") >&5
4661 (eval "$ac_compile") 2>conftest.er1
4662 ac_status=$?
4663 grep -v '^ *+' conftest.er1 >conftest.err
4664 rm -f conftest.er1
4665 cat conftest.err >&5
4666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667 (exit $ac_status); } && {
4668 test -z "$ac_c_werror_flag" ||
4669 test ! -s conftest.err
4670 } && test -s conftest.$ac_objext; then
4671 ac_cv_c_inline=$ac_kw
4672 else
4673 $as_echo "$as_me: failed program was:" >&5
4674 sed 's/^/| /' conftest.$ac_ext >&5
4675
4676
4677 fi
4678
4679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4680 test "$ac_cv_c_inline" != no && break
4681 done
4682
4683 fi
4684 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4685 $as_echo "$ac_cv_c_inline" >&6; }
4686
4687
4688 case $ac_cv_c_inline in
4689 inline | yes) ;;
4690 *)
4691 case $ac_cv_c_inline in
4692 no) ac_val=;;
4693 *) ac_val=$ac_cv_c_inline;;
4694 esac
4695 cat >>confdefs.h <<_ACEOF
4696 #ifndef __cplusplus
4697 #define inline $ac_val
4698 #endif
4699 _ACEOF
4700 ;;
4701 esac
4702
4703
4704 for ac_header in stdlib.h
4705 do
4706 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4707 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4708 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4709 $as_echo_n "checking for $ac_header... " >&6; }
4710 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4711 $as_echo_n "(cached) " >&6
4712 fi
4713 ac_res=`eval 'as_val=${'$as_ac_Header'}
4714 $as_echo "$as_val"'`
4715 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4716 $as_echo "$ac_res" >&6; }
4717 else
4718 # Is the header compilable?
4719 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4720 $as_echo_n "checking $ac_header usability... " >&6; }
4721 cat >conftest.$ac_ext <<_ACEOF
4722 /* confdefs.h. */
4723 _ACEOF
4724 cat confdefs.h >>conftest.$ac_ext
4725 cat >>conftest.$ac_ext <<_ACEOF
4726 /* end confdefs.h. */
4727 $ac_includes_default
4728 #include <$ac_header>
4729 _ACEOF
4730 rm -f conftest.$ac_objext
4731 if { (ac_try="$ac_compile"
4732 case "(($ac_try" in
4733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4734 *) ac_try_echo=$ac_try;;
4735 esac
4736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4737 $as_echo "$ac_try_echo") >&5
4738 (eval "$ac_compile") 2>conftest.er1
4739 ac_status=$?
4740 grep -v '^ *+' conftest.er1 >conftest.err
4741 rm -f conftest.er1
4742 cat conftest.err >&5
4743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); } && {
4745 test -z "$ac_c_werror_flag" ||
4746 test ! -s conftest.err
4747 } && test -s conftest.$ac_objext; then
4748 ac_header_compiler=yes
4749 else
4750 $as_echo "$as_me: failed program was:" >&5
4751 sed 's/^/| /' conftest.$ac_ext >&5
4752
4753 ac_header_compiler=no
4754 fi
4755
4756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4757 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4758 $as_echo "$ac_header_compiler" >&6; }
4759
4760 # Is the header present?
4761 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4762 $as_echo_n "checking $ac_header presence... " >&6; }
4763 cat >conftest.$ac_ext <<_ACEOF
4764 /* confdefs.h. */
4765 _ACEOF
4766 cat confdefs.h >>conftest.$ac_ext
4767 cat >>conftest.$ac_ext <<_ACEOF
4768 /* end confdefs.h. */
4769 #include <$ac_header>
4770 _ACEOF
4771 if { (ac_try="$ac_cpp conftest.$ac_ext"
4772 case "(($ac_try" in
4773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4774 *) ac_try_echo=$ac_try;;
4775 esac
4776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4777 $as_echo "$ac_try_echo") >&5
4778 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4779 ac_status=$?
4780 grep -v '^ *+' conftest.er1 >conftest.err
4781 rm -f conftest.er1
4782 cat conftest.err >&5
4783 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784 (exit $ac_status); } >/dev/null && {
4785 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4786 test ! -s conftest.err
4787 }; then
4788 ac_header_preproc=yes
4789 else
4790 $as_echo "$as_me: failed program was:" >&5
4791 sed 's/^/| /' conftest.$ac_ext >&5
4792
4793 ac_header_preproc=no
4794 fi
4795
4796 rm -f conftest.err conftest.$ac_ext
4797 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4798 $as_echo "$ac_header_preproc" >&6; }
4799
4800 # So? What about this header?
4801 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4802 yes:no: )
4803 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4804 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4805 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4806 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4807 ac_header_preproc=yes
4808 ;;
4809 no:yes:* )
4810 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4811 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4812 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4813 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4814 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4815 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4816 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4817 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4818 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4819 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4820 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4821 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4822 ( cat <<\_ASBOX
4823 ## -------------------------------------------------- ##
4824 ## Report this to pnm2ppa-users@lists.sourceforge.net ##
4825 ## -------------------------------------------------- ##
4826 _ASBOX
4827 ) | sed "s/^/$as_me: WARNING: /" >&2
4828 ;;
4829 esac
4830 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4831 $as_echo_n "checking for $ac_header... " >&6; }
4832 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4833 $as_echo_n "(cached) " >&6
4834 else
4835 eval "$as_ac_Header=\$ac_header_preproc"
4836 fi
4837 ac_res=`eval 'as_val=${'$as_ac_Header'}
4838 $as_echo "$as_val"'`
4839 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4840 $as_echo "$ac_res" >&6; }
4841
4842 fi
4843 if test `eval 'as_val=${'$as_ac_Header'}
4844 $as_echo "$as_val"'` = yes; then
4845 cat >>confdefs.h <<_ACEOF
4846 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4847 _ACEOF
4848
4849 fi
4850
4851 done
4852
4853 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
4854 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
4855 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
4856 $as_echo_n "(cached) " >&6
4857 else
4858 if test "$cross_compiling" = yes; then
4859 ac_cv_func_malloc_0_nonnull=no
4860 else
4861 cat >conftest.$ac_ext <<_ACEOF
4862 /* confdefs.h. */
4863 _ACEOF
4864 cat confdefs.h >>conftest.$ac_ext
4865 cat >>conftest.$ac_ext <<_ACEOF
4866 /* end confdefs.h. */
4867 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
4868 # include <stdlib.h>
4869 #else
4870 char *malloc ();
4871 #endif
4872
4873 int
4874 main ()
4875 {
4876 return ! malloc (0);
4877 ;
4878 return 0;
4879 }
4880 _ACEOF
4881 rm -f conftest$ac_exeext
4882 if { (ac_try="$ac_link"
4883 case "(($ac_try" in
4884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4885 *) ac_try_echo=$ac_try;;
4886 esac
4887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4888 $as_echo "$ac_try_echo") >&5
4889 (eval "$ac_link") 2>&5
4890 ac_status=$?
4891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4893 { (case "(($ac_try" in
4894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4895 *) ac_try_echo=$ac_try;;
4896 esac
4897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4898 $as_echo "$ac_try_echo") >&5
4899 (eval "$ac_try") 2>&5
4900 ac_status=$?
4901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902 (exit $ac_status); }; }; then
4903 ac_cv_func_malloc_0_nonnull=yes
4904 else
4905 $as_echo "$as_me: program exited with status $ac_status" >&5
4906 $as_echo "$as_me: failed program was:" >&5
4907 sed 's/^/| /' conftest.$ac_ext >&5
4908
4909 ( exit $ac_status )
4910 ac_cv_func_malloc_0_nonnull=no
4911 fi
4912 rm -rf conftest.dSYM
4913 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4914 fi
4915
4916
4917 fi
4918 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
4919 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
4920 if test $ac_cv_func_malloc_0_nonnull = yes; then
4921
4922 cat >>confdefs.h <<\_ACEOF
4923 #define HAVE_MALLOC 1
4924 _ACEOF
4925
4926 else
4927 cat >>confdefs.h <<\_ACEOF
4928 #define HAVE_MALLOC 0
4929 _ACEOF
4930
4931 case " $LIBOBJS " in
4932 *" malloc.$ac_objext "* ) ;;
4933 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
4934 ;;
4935 esac
4936
4937
4938 cat >>confdefs.h <<\_ACEOF
4939 #define malloc rpl_malloc
4940 _ACEOF
4941
4942 fi
4943
4944
4945
4946 { $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
4947 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
4948 if test "${ac_cv_header_stdbool_h+set}" = set; then
4949 $as_echo_n "(cached) " >&6
4950 else
4951 cat >conftest.$ac_ext <<_ACEOF
4952 /* confdefs.h. */
4953 _ACEOF
4954 cat confdefs.h >>conftest.$ac_ext
4955 cat >>conftest.$ac_ext <<_ACEOF
4956 /* end confdefs.h. */
4957
4958 #include <stdbool.h>
4959 #ifndef bool
4960 "error: bool is not defined"
4961 #endif
4962 #ifndef false
4963 "error: false is not defined"
4964 #endif
4965 #if false
4966 "error: false is not 0"
4967 #endif
4968 #ifndef true
4969 "error: true is not defined"
4970 #endif
4971 #if true != 1
4972 "error: true is not 1"
4973 #endif
4974 #ifndef __bool_true_false_are_defined
4975 "error: __bool_true_false_are_defined is not defined"
4976 #endif
4977
4978 struct s { _Bool s: 1; _Bool t; } s;
4979
4980 char a[true == 1 ? 1 : -1];
4981 char b[false == 0 ? 1 : -1];
4982 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
4983 char d[(bool) 0.5 == true ? 1 : -1];
4984 bool e = &s;
4985 char f[(_Bool) 0.0 == false ? 1 : -1];
4986 char g[true];
4987 char h[sizeof (_Bool)];
4988 char i[sizeof s.t];
4989 enum { j = false, k = true, l = false * true, m = true * 256 };
4990 /* The following fails for
4991 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
4992 _Bool n[m];
4993 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
4994 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
4995 # if defined __xlc__ || defined __GNUC__
4996 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
4997 reported by James Lemley on 2005-10-05; see
4998 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
4999 This test is not quite right, since xlc is allowed to
5000 reject this program, as the initializer for xlcbug is
5001 not one of the forms that C requires support for.
5002 However, doing the test right would require a runtime
5003 test, and that would make cross-compilation harder.
5004 Let us hope that IBM fixes the xlc bug, and also adds
5005 support for this kind of constant expression. In the
5006 meantime, this test will reject xlc, which is OK, since
5007 our stdbool.h substitute should suffice. We also test
5008 this with GCC, where it should work, to detect more
5009 quickly whether someone messes up the test in the
5010 future. */
5011 char digs[] = "0123456789";
5012 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
5013 # endif
5014 /* Catch a bug in an HP-UX C compiler. See
5015 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
5016 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
5017 */
5018 _Bool q = true;
5019 _Bool *pq = &q;
5020
5021 int
5022 main ()
5023 {
5024
5025 *pq |= q;
5026 *pq |= ! q;
5027 /* Refer to every declared value, to avoid compiler optimizations. */
5028 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
5029 + !m + !n + !o + !p + !q + !pq);
5030
5031 ;
5032 return 0;
5033 }
5034 _ACEOF
5035 rm -f conftest.$ac_objext
5036 if { (ac_try="$ac_compile"
5037 case "(($ac_try" in
5038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5039 *) ac_try_echo=$ac_try;;
5040 esac
5041 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5042 $as_echo "$ac_try_echo") >&5
5043 (eval "$ac_compile") 2>conftest.er1
5044 ac_status=$?
5045 grep -v '^ *+' conftest.er1 >conftest.err
5046 rm -f conftest.er1
5047 cat conftest.err >&5
5048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049 (exit $ac_status); } && {
5050 test -z "$ac_c_werror_flag" ||
5051 test ! -s conftest.err
5052 } && test -s conftest.$ac_objext; then
5053 ac_cv_header_stdbool_h=yes
5054 else
5055 $as_echo "$as_me: failed program was:" >&5
5056 sed 's/^/| /' conftest.$ac_ext >&5
5057
5058 ac_cv_header_stdbool_h=no
5059 fi
5060
5061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5062 fi
5063 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
5064 $as_echo "$ac_cv_header_stdbool_h" >&6; }
5065 { $as_echo "$as_me:$LINENO: checking for _Bool" >&5
5066 $as_echo_n "checking for _Bool... " >&6; }
5067 if test "${ac_cv_type__Bool+set}" = set; then
5068 $as_echo_n "(cached) " >&6
5069 else
5070 ac_cv_type__Bool=no
5071 cat >conftest.$ac_ext <<_ACEOF
5072 /* confdefs.h. */
5073 _ACEOF
5074 cat confdefs.h >>conftest.$ac_ext
5075 cat >>conftest.$ac_ext <<_ACEOF
5076 /* end confdefs.h. */
5077 $ac_includes_default
5078 int
5079 main ()
5080 {
5081 if (sizeof (_Bool))
5082 return 0;
5083 ;
5084 return 0;
5085 }
5086 _ACEOF
5087 rm -f conftest.$ac_objext
5088 if { (ac_try="$ac_compile"
5089 case "(($ac_try" in
5090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5091 *) ac_try_echo=$ac_try;;
5092 esac
5093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5094 $as_echo "$ac_try_echo") >&5
5095 (eval "$ac_compile") 2>conftest.er1
5096 ac_status=$?
5097 grep -v '^ *+' conftest.er1 >conftest.err
5098 rm -f conftest.er1
5099 cat conftest.err >&5
5100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); } && {
5102 test -z "$ac_c_werror_flag" ||
5103 test ! -s conftest.err
5104 } && test -s conftest.$ac_objext; then
5105 cat >conftest.$ac_ext <<_ACEOF
5106 /* confdefs.h. */
5107 _ACEOF
5108 cat confdefs.h >>conftest.$ac_ext
5109 cat >>conftest.$ac_ext <<_ACEOF
5110 /* end confdefs.h. */
5111 $ac_includes_default
5112 int
5113 main ()
5114 {
5115 if (sizeof ((_Bool)))
5116 return 0;
5117 ;
5118 return 0;
5119 }
5120 _ACEOF
5121 rm -f conftest.$ac_objext
5122 if { (ac_try="$ac_compile"
5123 case "(($ac_try" in
5124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5125 *) ac_try_echo=$ac_try;;
5126 esac
5127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5128 $as_echo "$ac_try_echo") >&5
5129 (eval "$ac_compile") 2>conftest.er1
5130 ac_status=$?
5131 grep -v '^ *+' conftest.er1 >conftest.err
5132 rm -f conftest.er1
5133 cat conftest.err >&5
5134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135 (exit $ac_status); } && {
5136 test -z "$ac_c_werror_flag" ||
5137 test ! -s conftest.err
5138 } && test -s conftest.$ac_objext; then
5139 :
5140 else
5141 $as_echo "$as_me: failed program was:" >&5
5142 sed 's/^/| /' conftest.$ac_ext >&5
5143
5144 ac_cv_type__Bool=yes
5145 fi
5146
5147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5148 else
5149 $as_echo "$as_me: failed program was:" >&5
5150 sed 's/^/| /' conftest.$ac_ext >&5
5151
5152
5153 fi
5154
5155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5156 fi
5157 { $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
5158 $as_echo "$ac_cv_type__Bool" >&6; }
5159 if test $ac_cv_type__Bool = yes; then
5160
5161 cat >>confdefs.h <<_ACEOF
5162 #define HAVE__BOOL 1
5163 _ACEOF
5164
5165
5166 fi
5167
5168 if test $ac_cv_header_stdbool_h = yes; then
5169
5170 cat >>confdefs.h <<\_ACEOF
5171 #define HAVE_STDBOOL_H 1
5172 _ACEOF
5173
5174 fi
5175
5176 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
5177 $as_echo_n "checking for size_t... " >&6; }
5178 if test "${ac_cv_type_size_t+set}" = set; then
5179 $as_echo_n "(cached) " >&6
5180 else
5181 ac_cv_type_size_t=no
5182 cat >conftest.$ac_ext <<_ACEOF
5183 /* confdefs.h. */
5184 _ACEOF
5185 cat confdefs.h >>conftest.$ac_ext
5186 cat >>conftest.$ac_ext <<_ACEOF
5187 /* end confdefs.h. */
5188 $ac_includes_default
5189 int
5190 main ()
5191 {
5192 if (sizeof (size_t))
5193 return 0;
5194 ;
5195 return 0;
5196 }
5197 _ACEOF
5198 rm -f conftest.$ac_objext
5199 if { (ac_try="$ac_compile"
5200 case "(($ac_try" in
5201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5202 *) ac_try_echo=$ac_try;;
5203 esac
5204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5205 $as_echo "$ac_try_echo") >&5
5206 (eval "$ac_compile") 2>conftest.er1
5207 ac_status=$?
5208 grep -v '^ *+' conftest.er1 >conftest.err
5209 rm -f conftest.er1
5210 cat conftest.err >&5
5211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212 (exit $ac_status); } && {
5213 test -z "$ac_c_werror_flag" ||
5214 test ! -s conftest.err
5215 } && test -s conftest.$ac_objext; then
5216 cat >conftest.$ac_ext <<_ACEOF
5217 /* confdefs.h. */
5218 _ACEOF
5219 cat confdefs.h >>conftest.$ac_ext
5220 cat >>conftest.$ac_ext <<_ACEOF
5221 /* end confdefs.h. */
5222 $ac_includes_default
5223 int
5224 main ()
5225 {
5226 if (sizeof ((size_t)))
5227 return 0;
5228 ;
5229 return 0;
5230 }
5231 _ACEOF
5232 rm -f conftest.$ac_objext
5233 if { (ac_try="$ac_compile"
5234 case "(($ac_try" in
5235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5236 *) ac_try_echo=$ac_try;;
5237 esac
5238 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5239 $as_echo "$ac_try_echo") >&5
5240 (eval "$ac_compile") 2>conftest.er1
5241 ac_status=$?
5242 grep -v '^ *+' conftest.er1 >conftest.err
5243 rm -f conftest.er1
5244 cat conftest.err >&5
5245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5246 (exit $ac_status); } && {
5247 test -z "$ac_c_werror_flag" ||
5248 test ! -s conftest.err
5249 } && test -s conftest.$ac_objext; then
5250 :
5251 else
5252 $as_echo "$as_me: failed program was:" >&5
5253 sed 's/^/| /' conftest.$ac_ext >&5
5254
5255 ac_cv_type_size_t=yes
5256 fi
5257
5258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5259 else
5260 $as_echo "$as_me: failed program was:" >&5
5261 sed 's/^/| /' conftest.$ac_ext >&5
5262
5263
5264 fi
5265
5266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5267 fi
5268 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5269 $as_echo "$ac_cv_type_size_t" >&6; }
5270 if test $ac_cv_type_size_t = yes; then
5271 :
5272 else
5273
5274 cat >>confdefs.h <<_ACEOF
5275 #define size_t unsigned int
5276 _ACEOF
5277
5278 fi
5279
5280
5281 #
5282 # Some systems need a special library for 'getopt_long'
5283 # (for example MacOS and FreeBSD).
5284 #
5285 { $as_echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
5286 $as_echo_n "checking for library containing getopt_long... " >&6; }
5287 if test "${ac_cv_search_getopt_long+set}" = set; then
5288 $as_echo_n "(cached) " >&6
5289 else
5290 ac_func_search_save_LIBS=$LIBS
5291 cat >conftest.$ac_ext <<_ACEOF
5292 /* confdefs.h. */
5293 _ACEOF
5294 cat confdefs.h >>conftest.$ac_ext
5295 cat >>conftest.$ac_ext <<_ACEOF
5296 /* end confdefs.h. */
5297
5298 /* Override any GCC internal prototype to avoid an error.
5299 Use char because int might match the return type of a GCC
5300 builtin and then its argument prototype would still apply. */
5301 #ifdef __cplusplus
5302 extern "C"
5303 #endif
5304 char getopt_long ();
5305 int
5306 main ()
5307 {
5308 return getopt_long ();
5309 ;
5310 return 0;
5311 }
5312 _ACEOF
5313 for ac_lib in '' gnugetopt iberty; do
5314 if test -z "$ac_lib"; then
5315 ac_res="none required"
5316 else
5317 ac_res=-l$ac_lib
5318 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5319 fi
5320 rm -f conftest.$ac_objext conftest$ac_exeext
5321 if { (ac_try="$ac_link"
5322 case "(($ac_try" in
5323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5324 *) ac_try_echo=$ac_try;;
5325 esac
5326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5327 $as_echo "$ac_try_echo") >&5
5328 (eval "$ac_link") 2>conftest.er1
5329 ac_status=$?
5330 grep -v '^ *+' conftest.er1 >conftest.err
5331 rm -f conftest.er1
5332 cat conftest.err >&5
5333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334 (exit $ac_status); } && {
5335 test -z "$ac_c_werror_flag" ||
5336 test ! -s conftest.err
5337 } && test -s conftest$ac_exeext && {
5338 test "$cross_compiling" = yes ||
5339 $as_test_x conftest$ac_exeext
5340 }; then
5341 ac_cv_search_getopt_long=$ac_res
5342 else
5343 $as_echo "$as_me: failed program was:" >&5
5344 sed 's/^/| /' conftest.$ac_ext >&5
5345
5346
5347 fi
5348
5349 rm -rf conftest.dSYM
5350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5351 conftest$ac_exeext
5352 if test "${ac_cv_search_getopt_long+set}" = set; then
5353 break
5354 fi
5355 done
5356 if test "${ac_cv_search_getopt_long+set}" = set; then
5357 :
5358 else
5359 ac_cv_search_getopt_long=no
5360 fi
5361 rm conftest.$ac_ext
5362 LIBS=$ac_func_search_save_LIBS
5363 fi
5364 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
5365 $as_echo "$ac_cv_search_getopt_long" >&6; }
5366 ac_res=$ac_cv_search_getopt_long
5367 if test "$ac_res" != no; then
5368 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5369
5370 fi
5371
5372
5373 #
5374 # check if the syslog feature is present
5375 # On some systems other than the libc is required to use this feature
5376 #
5377 { $as_echo "$as_me:$LINENO: checking for library containing syslog" >&5
5378 $as_echo_n "checking for library containing syslog... " >&6; }
5379 if test "${ac_cv_search_syslog+set}" = set; then
5380 $as_echo_n "(cached) " >&6
5381 else
5382 ac_func_search_save_LIBS=$LIBS
5383 cat >conftest.$ac_ext <<_ACEOF
5384 /* confdefs.h. */
5385 _ACEOF
5386 cat confdefs.h >>conftest.$ac_ext
5387 cat >>conftest.$ac_ext <<_ACEOF
5388 /* end confdefs.h. */
5389
5390 /* Override any GCC internal prototype to avoid an error.
5391 Use char because int might match the return type of a GCC
5392 builtin and then its argument prototype would still apply. */
5393 #ifdef __cplusplus
5394 extern "C"
5395 #endif
5396 char syslog ();
5397 int
5398 main ()
5399 {
5400 return syslog ();
5401 ;
5402 return 0;
5403 }
5404 _ACEOF
5405 for ac_lib in '' bsd socket inet; do
5406 if test -z "$ac_lib"; then
5407 ac_res="none required"
5408 else
5409 ac_res=-l$ac_lib
5410 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5411 fi
5412 rm -f conftest.$ac_objext conftest$ac_exeext
5413 if { (ac_try="$ac_link"
5414 case "(($ac_try" in
5415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5416 *) ac_try_echo=$ac_try;;
5417 esac
5418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5419 $as_echo "$ac_try_echo") >&5
5420 (eval "$ac_link") 2>conftest.er1
5421 ac_status=$?
5422 grep -v '^ *+' conftest.er1 >conftest.err
5423 rm -f conftest.er1
5424 cat conftest.err >&5
5425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426 (exit $ac_status); } && {
5427 test -z "$ac_c_werror_flag" ||
5428 test ! -s conftest.err
5429 } && test -s conftest$ac_exeext && {
5430 test "$cross_compiling" = yes ||
5431 $as_test_x conftest$ac_exeext
5432 }; then
5433 ac_cv_search_syslog=$ac_res
5434 else
5435 $as_echo "$as_me: failed program was:" >&5
5436 sed 's/^/| /' conftest.$ac_ext >&5
5437
5438
5439 fi
5440
5441 rm -rf conftest.dSYM
5442 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5443 conftest$ac_exeext
5444 if test "${ac_cv_search_syslog+set}" = set; then
5445 break
5446 fi
5447 done
5448 if test "${ac_cv_search_syslog+set}" = set; then
5449 :
5450 else
5451 ac_cv_search_syslog=no
5452 fi
5453 rm conftest.$ac_ext
5454 LIBS=$ac_func_search_save_LIBS
5455 fi
5456 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_syslog" >&5
5457 $as_echo "$ac_cv_search_syslog" >&6; }
5458 ac_res=$ac_cv_search_syslog
5459 if test "$ac_res" != no; then
5460 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5461
5462 fi
5463
5464
5465 # do we have a syslog feature?
5466 if test "${ac_cv_search_syslog}" = "no"; then
5467 # disable its usage
5468
5469 cat >>confdefs.h <<\_ACEOF
5470 #define __NO_SYSLOG__ 1
5471 _ACEOF
5472
5473 else
5474 #
5475 # okay, 'syslog' is present. But should we use it?
5476 #
5477 { $as_echo "$as_me:$LINENO: checking whether to enable syslog" >&5
5478 $as_echo_n "checking whether to enable syslog... " >&6; }
5479 # Check whether --enable-syslog was given.
5480 if test "${enable_syslog+set}" = set; then
5481 enableval=$enable_syslog; case "$enableval" in
5482 y | yes) CONFIG_SYSLOG=yes ;;
5483 *) CONFIG_SYSLOG=no ;;
5484 esac
5485 else
5486 CONFIG_SYSLOG=yes
5487 fi
5488
5489 { $as_echo "$as_me:$LINENO: result: ${CONFIG_SYSLOG}" >&5
5490 $as_echo "${CONFIG_SYSLOG}" >&6; }
5491
5492 if test "${CONFIG_SYSLOG}" = "yes"; then
5493
5494 cat >>confdefs.h <<\_ACEOF
5495 #define USE_SYSLOG 1
5496 _ACEOF
5497
5498 else
5499
5500 cat >>confdefs.h <<\_ACEOF
5501 #define __NO_SYSLOG__ 1
5502 _ACEOF
5503
5504 fi
5505 fi
5506
5507 #
5508 # Some things have to be done in accordance to the operating system
5509 #
5510 { $as_echo "$as_me:$LINENO: checking operating system" >&5
5511 $as_echo_n "checking operating system... " >&6; }
5512 case $host in
5513 *-linux*)
5514 { $as_echo "$as_me:$LINENO: result: Linux" >&5
5515 $as_echo "Linux" >&6; }
5516 ;;
5517 *-solaris*)
5518 { $as_echo "$as_me:$LINENO: result: SOLARIS" >&5
5519 $as_echo "SOLARIS" >&6; }
5520
5521 cat >>confdefs.h <<\_ACEOF
5522 #define __NO_LOG_PERROR__ /**/
5523 _ACEOF
5524
5525 ;;
5526 *-BeOS*)
5527 { $as_echo "$as_me:$LINENO: result: BeOS" >&5
5528 $as_echo "BeOS" >&6; }
5529 # On BeOS the LDFLAGS should not be used.
5530 AM_LDFLAGS=""
5531 ;;
5532 *-darwin*)
5533 { $as_echo "$as_me:$LINENO: result: Darwin/MacOS X" >&5
5534 $as_echo "Darwin/MacOS X" >&6; }
5535 CFLAGS="${CFLAGS} -no-cpp-precomp -traditional-cpp"
5536 ;;
5537 *-bsd*)
5538 { $as_echo "$as_me:$LINENO: result: FreeBSD" >&5
5539 $as_echo "FreeBSD" >&6; }
5540 ;;
5541 *)
5542 { $as_echo "$as_me:$LINENO: result: unsupported operating system, pnm2ppa may fail" >&5
5543 $as_echo "unsupported operating system, pnm2ppa may fail" >&6; }
5544 esac
5545
5546 #
5547 # Debugging
5548 #
5549 { $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5
5550 $as_echo_n "checking whether to enable debugging... " >&6; }
5551 # Check whether --enable-debug was given.
5552 if test "${enable_debug+set}" = set; then
5553 enableval=$enable_debug; case "$enableval" in
5554 y | yes) CONFIG_DEBUG=yes ;;
5555 *) CONFIG_DEBUG=no ;;
5556 esac
5557 else
5558 CONFIG_DEBUG=no
5559 fi
5560
5561 { $as_echo "$as_me:$LINENO: result: ${CONFIG_DEBUG}" >&5
5562 $as_echo "${CONFIG_DEBUG}" >&6; }
5563 if test "${CONFIG_DEBUG}" = "yes"; then
5564
5565 cat >>confdefs.h <<\_ACEOF
5566 #define DEBUG 1
5567 _ACEOF
5568
5569 if true; then
5570 PNM2PPA_DEBUG_TRUE=
5571 PNM2PPA_DEBUG_FALSE='#'
5572 else
5573 PNM2PPA_DEBUG_TRUE='#'
5574 PNM2PPA_DEBUG_FALSE=
5575 fi
5576
5577 CFLAGS="${CFLAGS} -O1"
5578 else
5579 CFLAGS="${CFLAGS} -O2 -DNDEBUG"
5580 if false; then
5581 PNM2PPA_DEBUG_TRUE=
5582 PNM2PPA_DEBUG_FALSE='#'
5583 else
5584 PNM2PPA_DEBUG_TRUE='#'
5585 PNM2PPA_DEBUG_FALSE=
5586 fi
5587
5588 fi
5589
5590 #
5591 # define the compiled in language
5592 #
5593 { $as_echo "$as_me:$LINENO: checking which language is to be used" >&5
5594 $as_echo_n "checking which language is to be used... " >&6; }
5595
5596 # Check whether --with-language was given.
5597 if test "${with_language+set}" = set; then
5598 withval=$with_language; ppa_language="$withval"
5599 fi
5600
5601
5602 # english language is the default
5603 if test -z "${ppa_language}"; then
5604 # default is english
5605 ppa_language=EN
5606 fi
5607
5608 case "${ppa_language}" in
5609 EN | en)
5610
5611 cat >>confdefs.h <<\_ACEOF
5612 #define LANG_EN /**/
5613 _ACEOF
5614
5615 used_language="english"
5616 ;;
5617 CZ | en)
5618
5619 cat >>confdefs.h <<\_ACEOF
5620 #define LANG_CZ /**/
5621 _ACEOF
5622
5623 used_language="cech"
5624 ;;
5625 ES | es)
5626
5627 cat >>confdefs.h <<\_ACEOF
5628 #define LANG_ES /**/
5629 _ACEOF
5630
5631 used_language="espanol"
5632 ;;
5633 FR | fr)
5634
5635 cat >>confdefs.h <<\_ACEOF
5636 #define LANG_FR /**/
5637 _ACEOF
5638
5639 used_language="french"
5640 ;;
5641 IT | it)
5642
5643 cat >>confdefs.h <<\_ACEOF
5644 #define LANG_IT /**/
5645 _ACEOF
5646
5647 used_language="italian"
5648 ;;
5649 NL | nl)
5650
5651 cat >>confdefs.h <<\_ACEOF
5652 #define LANG_NL /**/
5653 _ACEOF
5654
5655 used_language="dutch"
5656 ;;
5657 *)
5658 { { $as_echo "$as_me:$LINENO: error: Unsupported language" >&5
5659 $as_echo "$as_me: error: Unsupported language" >&2;}
5660 { (exit 1); exit 1; }; }
5661 ;;
5662 esac
5663
5664 { $as_echo "$as_me:$LINENO: result: ${used_language}" >&5
5665 $as_echo "${used_language}" >&6; }
5666
5667 { $as_echo "$as_me:$LINENO: checking whether to build the 'parse_vlink' tool" >&5
5668 $as_echo_n "checking whether to build the 'parse_vlink' tool... " >&6; }
5669 # Check whether --enable-vlink was given.
5670 if test "${enable_vlink+set}" = set; then
5671 enableval=$enable_vlink; case "$enableval" in
5672 y | yes) CONFIG_VLINK=yes ;;
5673 *) CONFIG_VLINK=no ;;
5674 esac
5675 else
5676 CONFIG_VLINK=no
5677 fi
5678
5679 { $as_echo "$as_me:$LINENO: result: ${CONFIG_VLINK}" >&5
5680 $as_echo "${CONFIG_VLINK}" >&6; }
5681
5682 if test "${CONFIG_VLINK}" = "yes"; then
5683 if true; then
5684 BUILD_PARSE_VLINK_TRUE=
5685 BUILD_PARSE_VLINK_FALSE='#'
5686 else
5687 BUILD_PARSE_VLINK_TRUE='#'
5688 BUILD_PARSE_VLINK_FALSE=
5689 fi
5690
5691 else
5692 if false; then
5693 BUILD_PARSE_VLINK_TRUE=
5694 BUILD_PARSE_VLINK_FALSE='#'
5695 else
5696 BUILD_PARSE_VLINK_TRUE='#'
5697 BUILD_PARSE_VLINK_FALSE=
5698 fi
5699
5700 fi
5701
5702 ac_config_files="$ac_config_files Makefile ppa_protocol/Makefile"
5703
5704 cat >confcache <<\_ACEOF
5705 # This file is a shell script that caches the results of configure
5706 # tests run on this system so they can be shared between configure
5707 # scripts and configure runs, see configure's option --config-cache.
5708 # It is not useful on other systems. If it contains results you don't
5709 # want to keep, you may remove or edit it.
5710 #
5711 # config.status only pays attention to the cache file if you give it
5712 # the --recheck option to rerun configure.
5713 #
5714 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5715 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5716 # following values.
5717
5718 _ACEOF
5719
5720 # The following way of writing the cache mishandles newlines in values,
5721 # but we know of no workaround that is simple, portable, and efficient.
5722 # So, we kill variables containing newlines.
5723 # Ultrix sh set writes to stderr and can't be redirected directly,
5724 # and sets the high bit in the cache file unless we assign to the vars.
5725 (
5726 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5727 eval ac_val=\$$ac_var
5728 case $ac_val in #(
5729 *${as_nl}*)
5730 case $ac_var in #(
5731 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
5732 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
5733 esac
5734 case $ac_var in #(
5735 _ | IFS | as_nl) ;; #(
5736 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5737 *) $as_unset $ac_var ;;
5738 esac ;;
5739 esac
5740 done
5741
5742 (set) 2>&1 |
5743 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5744 *${as_nl}ac_space=\ *)
5745 # `set' does not quote correctly, so add quotes (double-quote
5746 # substitution turns \\\\ into \\, and sed turns \\ into \).
5747 sed -n \
5748 "s/'/'\\\\''/g;
5749 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5750 ;; #(
5751 *)
5752 # `set' quotes correctly as required by POSIX, so do not add quotes.
5753 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5754 ;;
5755 esac |
5756 sort
5757 ) |
5758 sed '
5759 /^ac_cv_env_/b end
5760 t clear
5761 :clear
5762 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5763 t end
5764 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5765 :end' >>confcache
5766 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5767 if test -w "$cache_file"; then
5768 test "x$cache_file" != "x/dev/null" &&
5769 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
5770 $as_echo "$as_me: updating cache $cache_file" >&6;}
5771 cat confcache >$cache_file
5772 else
5773 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
5774 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5775 fi
5776 fi
5777 rm -f confcache
5778
5779 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5780 # Let make expand exec_prefix.
5781 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5782
5783 DEFS=-DHAVE_CONFIG_H
5784
5785 ac_libobjs=
5786 ac_ltlibobjs=
5787 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5788 # 1. Remove the extension, and $U if already installed.
5789 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5790 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5791 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5792 # will be set to the directory where LIBOBJS objects are built.
5793 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5794 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
5795 done
5796 LIBOBJS=$ac_libobjs
5797
5798 LTLIBOBJS=$ac_ltlibobjs
5799
5800
5801 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5802 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
5803 Usually this means the macro was only invoked conditionally." >&5
5804 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
5805 Usually this means the macro was only invoked conditionally." >&2;}
5806 { (exit 1); exit 1; }; }
5807 fi
5808 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5809 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
5810 Usually this means the macro was only invoked conditionally." >&5
5811 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
5812 Usually this means the macro was only invoked conditionally." >&2;}
5813 { (exit 1); exit 1; }; }
5814 fi
5815 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5816 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
5817 Usually this means the macro was only invoked conditionally." >&5
5818 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
5819 Usually this means the macro was only invoked conditionally." >&2;}
5820 { (exit 1); exit 1; }; }
5821 fi
5822 if test -z "${PNM2PPA_DEBUG_TRUE}" && test -z "${PNM2PPA_DEBUG_FALSE}"; then
5823 { { $as_echo "$as_me:$LINENO: error: conditional \"PNM2PPA_DEBUG\" was never defined.
5824 Usually this means the macro was only invoked conditionally." >&5
5825 $as_echo "$as_me: error: conditional \"PNM2PPA_DEBUG\" was never defined.
5826 Usually this means the macro was only invoked conditionally." >&2;}
5827 { (exit 1); exit 1; }; }
5828 fi
5829 if test -z "${PNM2PPA_DEBUG_TRUE}" && test -z "${PNM2PPA_DEBUG_FALSE}"; then
5830 { { $as_echo "$as_me:$LINENO: error: conditional \"PNM2PPA_DEBUG\" was never defined.
5831 Usually this means the macro was only invoked conditionally." >&5
5832 $as_echo "$as_me: error: conditional \"PNM2PPA_DEBUG\" was never defined.
5833 Usually this means the macro was only invoked conditionally." >&2;}
5834 { (exit 1); exit 1; }; }
5835 fi
5836 if test -z "${BUILD_PARSE_VLINK_TRUE}" && test -z "${BUILD_PARSE_VLINK_FALSE}"; then
5837 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_PARSE_VLINK\" was never defined.
5838 Usually this means the macro was only invoked conditionally." >&5
5839 $as_echo "$as_me: error: conditional \"BUILD_PARSE_VLINK\" was never defined.
5840 Usually this means the macro was only invoked conditionally." >&2;}
5841 { (exit 1); exit 1; }; }
5842 fi
5843 if test -z "${BUILD_PARSE_VLINK_TRUE}" && test -z "${BUILD_PARSE_VLINK_FALSE}"; then
5844 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_PARSE_VLINK\" was never defined.
5845 Usually this means the macro was only invoked conditionally." >&5
5846 $as_echo "$as_me: error: conditional \"BUILD_PARSE_VLINK\" was never defined.
5847 Usually this means the macro was only invoked conditionally." >&2;}
5848 { (exit 1); exit 1; }; }
5849 fi
5850
5851 : ${CONFIG_STATUS=./config.status}
5852 ac_write_fail=0
5853 ac_clean_files_save=$ac_clean_files
5854 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5855 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5856 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5857 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5858 #! $SHELL
5859 # Generated by $as_me.
5860 # Run this file to recreate the current configuration.
5861 # Compiler output produced by configure, useful for debugging
5862 # configure, is in config.log if it exists.
5863
5864 debug=false
5865 ac_cs_recheck=false
5866 ac_cs_silent=false
5867 SHELL=\${CONFIG_SHELL-$SHELL}
5868 _ACEOF
5869
5870 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5871 ## --------------------- ##
5872 ## M4sh Initialization. ##
5873 ## --------------------- ##
5874
5875 # Be more Bourne compatible
5876 DUALCASE=1; export DUALCASE # for MKS sh
5877 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5878 emulate sh
5879 NULLCMD=:
5880 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5881 # is contrary to our usage. Disable this feature.
5882 alias -g '${1+"$@"}'='"$@"'
5883 setopt NO_GLOB_SUBST
5884 else
5885 case `(set -o) 2>/dev/null` in
5886 *posix*) set -o posix ;;
5887 esac
5888
5889 fi
5890
5891
5892
5893
5894 # PATH needs CR
5895 # Avoid depending upon Character Ranges.
5896 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5897 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5898 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5899 as_cr_digits='0123456789'
5900 as_cr_alnum=$as_cr_Letters$as_cr_digits
5901
5902 as_nl='
5903 '
5904 export as_nl
5905 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5906 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5907 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5908 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5909 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5910 as_echo='printf %s\n'
5911 as_echo_n='printf %s'
5912 else
5913 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5914 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5915 as_echo_n='/usr/ucb/echo -n'
5916 else
5917 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5918 as_echo_n_body='eval
5919 arg=$1;
5920 case $arg in
5921 *"$as_nl"*)
5922 expr "X$arg" : "X\\(.*\\)$as_nl";
5923 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5924 esac;
5925 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5926 '
5927 export as_echo_n_body
5928 as_echo_n='sh -c $as_echo_n_body as_echo'
5929 fi
5930 export as_echo_body
5931 as_echo='sh -c $as_echo_body as_echo'
5932 fi
5933
5934 # The user is always right.
5935 if test "${PATH_SEPARATOR+set}" != set; then
5936 PATH_SEPARATOR=:
5937 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5938 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5939 PATH_SEPARATOR=';'
5940 }
5941 fi
5942
5943 # Support unset when possible.
5944 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5945 as_unset=unset
5946 else
5947 as_unset=false
5948 fi
5949
5950
5951 # IFS
5952 # We need space, tab and new line, in precisely that order. Quoting is
5953 # there to prevent editors from complaining about space-tab.
5954 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5955 # splitting by setting IFS to empty value.)
5956 IFS=" "" $as_nl"
5957
5958 # Find who we are. Look in the path if we contain no directory separator.
5959 case $0 in
5960 *[\\/]* ) as_myself=$0 ;;
5961 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5962 for as_dir in $PATH
5963 do
5964 IFS=$as_save_IFS
5965 test -z "$as_dir" && as_dir=.
5966 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5967 done
5968 IFS=$as_save_IFS
5969
5970 ;;
5971 esac
5972 # We did not find ourselves, most probably we were run as `sh COMMAND'
5973 # in which case we are not to be found in the path.
5974 if test "x$as_myself" = x; then
5975 as_myself=$0
5976 fi
5977 if test ! -f "$as_myself"; then
5978 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5979 { (exit 1); exit 1; }
5980 fi
5981
5982 # Work around bugs in pre-3.0 UWIN ksh.
5983 for as_var in ENV MAIL MAILPATH
5984 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5985 done
5986 PS1='$ '
5987 PS2='> '
5988 PS4='+ '
5989
5990 # NLS nuisances.
5991 LC_ALL=C
5992 export LC_ALL
5993 LANGUAGE=C
5994 export LANGUAGE
5995
5996 # Required to use basename.
5997 if expr a : '\(a\)' >/dev/null 2>&1 &&
5998 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5999 as_expr=expr
6000 else
6001 as_expr=false
6002 fi
6003
6004 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6005 as_basename=basename
6006 else
6007 as_basename=false
6008 fi
6009
6010
6011 # Name of the executable.
6012 as_me=`$as_basename -- "$0" ||
6013 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6014 X"$0" : 'X\(//\)$' \| \
6015 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6016 $as_echo X/"$0" |
6017 sed '/^.*\/\([^/][^/]*\)\/*$/{
6018 s//\1/
6019 q
6020 }
6021 /^X\/\(\/\/\)$/{
6022 s//\1/
6023 q
6024 }
6025 /^X\/\(\/\).*/{
6026 s//\1/
6027 q
6028 }
6029 s/.*/./; q'`
6030
6031 # CDPATH.
6032 $as_unset CDPATH
6033
6034
6035
6036 as_lineno_1=$LINENO
6037 as_lineno_2=$LINENO
6038 test "x$as_lineno_1" != "x$as_lineno_2" &&
6039 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
6040
6041 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6042 # uniformly replaced by the line number. The first 'sed' inserts a
6043 # line-number line after each line using $LINENO; the second 'sed'
6044 # does the real work. The second script uses 'N' to pair each
6045 # line-number line with the line containing $LINENO, and appends
6046 # trailing '-' during substitution so that $LINENO is not a special
6047 # case at line end.
6048 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6049 # scripts with optimization help from Paolo Bonzini. Blame Lee
6050 # E. McMahon (1931-1989) for sed's syntax. :-)
6051 sed -n '
6052 p
6053 /[$]LINENO/=
6054 ' <$as_myself |
6055 sed '
6056 s/[$]LINENO.*/&-/
6057 t lineno
6058 b
6059 :lineno
6060 N
6061 :loop
6062 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
6063 t loop
6064 s/-\n.*//
6065 ' >$as_me.lineno &&
6066 chmod +x "$as_me.lineno" ||
6067 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
6068 { (exit 1); exit 1; }; }
6069
6070 # Don't try to exec as it changes $[0], causing all sort of problems
6071 # (the dirname of $[0] is not the place where we might find the
6072 # original and so on. Autoconf is especially sensitive to this).
6073 . "./$as_me.lineno"
6074 # Exit status is that of the last command.
6075 exit
6076 }
6077
6078
6079 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6080 as_dirname=dirname
6081 else
6082 as_dirname=false
6083 fi
6084
6085 ECHO_C= ECHO_N= ECHO_T=
6086 case `echo -n x` in
6087 -n*)
6088 case `echo 'x\c'` in
6089 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6090 *) ECHO_C='\c';;
6091 esac;;
6092 *)
6093 ECHO_N='-n';;
6094 esac
6095 if expr a : '\(a\)' >/dev/null 2>&1 &&
6096 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6097 as_expr=expr
6098 else
6099 as_expr=false
6100 fi
6101
6102 rm -f conf$$ conf$$.exe conf$$.file
6103 if test -d conf$$.dir; then
6104 rm -f conf$$.dir/conf$$.file
6105 else
6106 rm -f conf$$.dir
6107 mkdir conf$$.dir 2>/dev/null
6108 fi
6109 if (echo >conf$$.file) 2>/dev/null; then
6110 if ln -s conf$$.file conf$$ 2>/dev/null; then
6111 as_ln_s='ln -s'
6112 # ... but there are two gotchas:
6113 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6114 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6115 # In both cases, we have to default to `cp -p'.
6116 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6117 as_ln_s='cp -p'
6118 elif ln conf$$.file conf$$ 2>/dev/null; then
6119 as_ln_s=ln
6120 else
6121 as_ln_s='cp -p'
6122 fi
6123 else
6124 as_ln_s='cp -p'
6125 fi
6126 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6127 rmdir conf$$.dir 2>/dev/null
6128
6129 if mkdir -p . 2>/dev/null; then
6130 as_mkdir_p=:
6131 else
6132 test -d ./-p && rmdir ./-p
6133 as_mkdir_p=false
6134 fi
6135
6136 if test -x / >/dev/null 2>&1; then
6137 as_test_x='test -x'
6138 else
6139 if ls -dL / >/dev/null 2>&1; then
6140 as_ls_L_option=L
6141 else
6142 as_ls_L_option=
6143 fi
6144 as_test_x='
6145 eval sh -c '\''
6146 if test -d "$1"; then
6147 test -d "$1/.";
6148 else
6149 case $1 in
6150 -*)set "./$1";;
6151 esac;
6152 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
6153 ???[sx]*):;;*)false;;esac;fi
6154 '\'' sh
6155 '
6156 fi
6157 as_executable_p=$as_test_x
6158
6159 # Sed expression to map a string onto a valid CPP name.
6160 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6161
6162 # Sed expression to map a string onto a valid variable name.
6163 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6164
6165
6166 exec 6>&1
6167
6168 # Save the log message, to keep $[0] and so on meaningful, and to
6169 # report actual input values of CONFIG_FILES etc. instead of their
6170 # values after options handling.
6171 ac_log="
6172 This file was extended by pnm2ppa $as_me 1.13, which was
6173 generated by GNU Autoconf 2.62. Invocation command line was
6174
6175 CONFIG_FILES = $CONFIG_FILES
6176 CONFIG_HEADERS = $CONFIG_HEADERS
6177 CONFIG_LINKS = $CONFIG_LINKS
6178 CONFIG_COMMANDS = $CONFIG_COMMANDS
6179 $ $0 $@
6180
6181 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6182 "
6183
6184 _ACEOF
6185
6186 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6187 # Files that config.status was made for.
6188 config_files="$ac_config_files"
6189 config_headers="$ac_config_headers"
6190 config_commands="$ac_config_commands"
6191
6192 _ACEOF
6193
6194 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6195 ac_cs_usage="\
6196 \`$as_me' instantiates files from templates according to the
6197 current configuration.
6198
6199 Usage: $0 [OPTIONS] [FILE]...
6200
6201 -h, --help print this help, then exit
6202 -V, --version print version number and configuration settings, then exit
6203 -q, --quiet do not print progress messages
6204 -d, --debug don't remove temporary files
6205 --recheck update $as_me by reconfiguring in the same conditions
6206 --file=FILE[:TEMPLATE]
6207 instantiate the configuration file FILE
6208 --header=FILE[:TEMPLATE]
6209 instantiate the configuration header FILE
6210
6211 Configuration files:
6212 $config_files
6213
6214 Configuration headers:
6215 $config_headers
6216
6217 Configuration commands:
6218 $config_commands
6219
6220 Report bugs to <bug-autoconf@gnu.org>."
6221
6222 _ACEOF
6223 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6224 ac_cs_version="\\
6225 pnm2ppa config.status 1.13
6226 configured by $0, generated by GNU Autoconf 2.62,
6227 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6228
6229 Copyright (C) 2008 Free Software Foundation, Inc.
6230 This config.status script is free software; the Free Software Foundation
6231 gives unlimited permission to copy, distribute and modify it."
6232
6233 ac_pwd='$ac_pwd'
6234 srcdir='$srcdir'
6235 INSTALL='$INSTALL'
6236 MKDIR_P='$MKDIR_P'
6237 AWK='$AWK'
6238 test -n "\$AWK" || AWK=awk
6239 _ACEOF
6240
6241 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6242 # The default lists apply if the user does not specify any file.
6243 ac_need_defaults=:
6244 while test $# != 0
6245 do
6246 case $1 in
6247 --*=*)
6248 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6249 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6250 ac_shift=:
6251 ;;
6252 *)
6253 ac_option=$1
6254 ac_optarg=$2
6255 ac_shift=shift
6256 ;;
6257 esac
6258
6259 case $ac_option in
6260 # Handling of the options.
6261 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6262 ac_cs_recheck=: ;;
6263 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6264 $as_echo "$ac_cs_version"; exit ;;
6265 --debug | --debu | --deb | --de | --d | -d )
6266 debug=: ;;
6267 --file | --fil | --fi | --f )
6268 $ac_shift
6269 case $ac_optarg in
6270 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6271 esac
6272 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
6273 ac_need_defaults=false;;
6274 --header | --heade | --head | --hea )
6275 $ac_shift
6276 case $ac_optarg in
6277 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6278 esac
6279 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
6280 ac_need_defaults=false;;
6281 --he | --h)
6282 # Conflict between --help and --header
6283 { $as_echo "$as_me: error: ambiguous option: $1
6284 Try \`$0 --help' for more information." >&2
6285 { (exit 1); exit 1; }; };;
6286 --help | --hel | -h )
6287 $as_echo "$ac_cs_usage"; exit ;;
6288 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6289 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6290 ac_cs_silent=: ;;
6291
6292 # This is an error.
6293 -*) { $as_echo "$as_me: error: unrecognized option: $1
6294 Try \`$0 --help' for more information." >&2
6295 { (exit 1); exit 1; }; } ;;
6296
6297 *) ac_config_targets="$ac_config_targets $1"
6298 ac_need_defaults=false ;;
6299
6300 esac
6301 shift
6302 done
6303
6304 ac_configure_extra_args=
6305
6306 if $ac_cs_silent; then
6307 exec 6>/dev/null
6308 ac_configure_extra_args="$ac_configure_extra_args --silent"
6309 fi
6310
6311 _ACEOF
6312 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6313 if \$ac_cs_recheck; then
6314 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6315 shift
6316 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6317 CONFIG_SHELL='$SHELL'
6318 export CONFIG_SHELL
6319 exec "\$@"
6320 fi
6321
6322 _ACEOF
6323 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6324 exec 5>>config.log
6325 {
6326 echo
6327 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6328 ## Running $as_me. ##
6329 _ASBOX
6330 $as_echo "$ac_log"
6331 } >&5
6332
6333 _ACEOF
6334 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6335 #
6336 # INIT-COMMANDS
6337 #
6338 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6339
6340 _ACEOF
6341
6342 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6343
6344 # Handling of arguments.
6345 for ac_config_target in $ac_config_targets
6346 do
6347 case $ac_config_target in
6348 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6349 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6350 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6351 "ppa_protocol/Makefile") CONFIG_FILES="$CONFIG_FILES ppa_protocol/Makefile" ;;
6352
6353 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6354 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6355 { (exit 1); exit 1; }; };;
6356 esac
6357 done
6358
6359
6360 # If the user did not use the arguments to specify the items to instantiate,
6361 # then the envvar interface is used. Set only those that are not.
6362 # We use the long form for the default assignment because of an extremely
6363 # bizarre bug on SunOS 4.1.3.
6364 if $ac_need_defaults; then
6365 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6366 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6367 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6368 fi
6369
6370 # Have a temporary directory for convenience. Make it in the build tree
6371 # simply because there is no reason against having it here, and in addition,
6372 # creating and moving files from /tmp can sometimes cause problems.
6373 # Hook for its removal unless debugging.
6374 # Note that there is a small window in which the directory will not be cleaned:
6375 # after its creation but before its name has been assigned to `$tmp'.
6376 $debug ||
6377 {
6378 tmp=
6379 trap 'exit_status=$?
6380 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6381 ' 0
6382 trap '{ (exit 1); exit 1; }' 1 2 13 15
6383 }
6384 # Create a (secure) tmp directory for tmp files.
6385
6386 {
6387 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6388 test -n "$tmp" && test -d "$tmp"
6389 } ||
6390 {
6391 tmp=./conf$$-$RANDOM
6392 (umask 077 && mkdir "$tmp")
6393 } ||
6394 {
6395 $as_echo "$as_me: cannot create a temporary directory in ." >&2
6396 { (exit 1); exit 1; }
6397 }
6398
6399 # Set up the scripts for CONFIG_FILES section.
6400 # No need to generate them if there are no CONFIG_FILES.
6401 # This happens for instance with `./config.status config.h'.
6402 if test -n "$CONFIG_FILES"; then
6403
6404
6405 ac_cr='
6406 '
6407 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6408 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6409 ac_cs_awk_cr='\\r'
6410 else
6411 ac_cs_awk_cr=$ac_cr
6412 fi
6413
6414 echo 'BEGIN {' >"$tmp/subs1.awk" &&
6415 _ACEOF
6416
6417
6418 {
6419 echo "cat >conf$$subs.awk <<_ACEOF" &&
6420 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6421 echo "_ACEOF"
6422 } >conf$$subs.sh ||
6423 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
6424 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
6425 { (exit 1); exit 1; }; }
6426 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
6427 ac_delim='%!_!# '
6428 for ac_last_try in false false false false false :; do
6429 . ./conf$$subs.sh ||
6430 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
6431 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
6432 { (exit 1); exit 1; }; }
6433
6434 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
6435 break
6436 elif $ac_last_try; then
6437 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
6438 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
6439 { (exit 1); exit 1; }; }
6440 else
6441 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6442 fi
6443 done
6444 rm -f conf$$subs.sh
6445
6446 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6447 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
6448 _ACEOF
6449 sed -n '
6450 h
6451 s/^/S["/; s/!.*/"]=/
6452 p
6453 g
6454 s/^[^!]*!//
6455 :repl
6456 t repl
6457 s/'"$ac_delim"'$//
6458 t delim
6459 :nl
6460 h
6461 s/\(.\{148\}\).*/\1/
6462 t more1
6463 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6464 p
6465 n
6466 b repl
6467 :more1
6468 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6469 p
6470 g
6471 s/.\{148\}//
6472 t nl
6473 :delim
6474 h
6475 s/\(.\{148\}\).*/\1/
6476 t more2
6477 s/["\\]/\\&/g; s/^/"/; s/$/"/
6478 p
6479 b
6480 :more2
6481 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6482 p
6483 g
6484 s/.\{148\}//
6485 t delim
6486 ' <conf$$subs.awk | sed '
6487 /^[^""]/{
6488 N
6489 s/\n//
6490 }
6491 ' >>$CONFIG_STATUS || ac_write_fail=1
6492 rm -f conf$$subs.awk
6493 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6494 _ACAWK
6495 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
6496 for (key in S) S_is_set[key] = 1
6497 FS = ""
6498
6499 }
6500 {
6501 line = $ 0
6502 nfields = split(line, field, "@")
6503 substed = 0
6504 len = length(field[1])
6505 for (i = 2; i < nfields; i++) {
6506 key = field[i]
6507 keylen = length(key)
6508 if (S_is_set[key]) {
6509 value = S[key]
6510 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6511 len += length(value) + length(field[++i])
6512 substed = 1
6513 } else
6514 len += 1 + keylen
6515 }
6516
6517 print line
6518 }
6519
6520 _ACAWK
6521 _ACEOF
6522 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6523 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6524 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6525 else
6526 cat
6527 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
6528 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
6529 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
6530 { (exit 1); exit 1; }; }
6531 _ACEOF
6532
6533 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6534 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6535 # trailing colons and then remove the whole line if VPATH becomes empty
6536 # (actually we leave an empty line to preserve line numbers).
6537 if test "x$srcdir" = x.; then
6538 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6539 s/:*\$(srcdir):*/:/
6540 s/:*\${srcdir}:*/:/
6541 s/:*@srcdir@:*/:/
6542 s/^\([^=]*=[ ]*\):*/\1/
6543 s/:*$//
6544 s/^[^=]*=[ ]*$//
6545 }'
6546 fi
6547
6548 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6549 fi # test -n "$CONFIG_FILES"
6550
6551 # Set up the scripts for CONFIG_HEADERS section.
6552 # No need to generate them if there are no CONFIG_HEADERS.
6553 # This happens for instance with `./config.status Makefile'.
6554 if test -n "$CONFIG_HEADERS"; then
6555 cat >"$tmp/defines.awk" <<\_ACAWK ||
6556 BEGIN {
6557 _ACEOF
6558
6559 # Transform confdefs.h into an awk script `defines.awk', embedded as
6560 # here-document in config.status, that substitutes the proper values into
6561 # config.h.in to produce config.h.
6562
6563 # Create a delimiter string that does not exist in confdefs.h, to ease
6564 # handling of long lines.
6565 ac_delim='%!_!# '
6566 for ac_last_try in false false :; do
6567 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
6568 if test -z "$ac_t"; then
6569 break
6570 elif $ac_last_try; then
6571 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
6572 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
6573 { (exit 1); exit 1; }; }
6574 else
6575 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6576 fi
6577 done
6578
6579 # For the awk script, D is an array of macro values keyed by name,
6580 # likewise P contains macro parameters if any. Preserve backslash
6581 # newline sequences.
6582
6583 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6584 sed -n '
6585 s/.\{148\}/&'"$ac_delim"'/g
6586 t rset
6587 :rset
6588 s/^[ ]*#[ ]*define[ ][ ]*/ /
6589 t def
6590 d
6591 :def
6592 s/\\$//
6593 t bsnl
6594 s/["\\]/\\&/g
6595 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6596 D["\1"]=" \3"/p
6597 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6598 d
6599 :bsnl
6600 s/["\\]/\\&/g
6601 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6602 D["\1"]=" \3\\\\\\n"\\/p
6603 t cont
6604 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6605 t cont
6606 d
6607 :cont
6608 n
6609 s/.\{148\}/&'"$ac_delim"'/g
6610 t clear
6611 :clear
6612 s/\\$//
6613 t bsnlc
6614 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6615 d
6616 :bsnlc
6617 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6618 b cont
6619 ' <confdefs.h | sed '
6620 s/'"$ac_delim"'/"\\\
6621 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6622
6623 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6624 for (key in D) D_is_set[key] = 1
6625 FS = ""
6626 }
6627 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6628 line = \$ 0
6629 split(line, arg, " ")
6630 if (arg[1] == "#") {
6631 defundef = arg[2]
6632 mac1 = arg[3]
6633 } else {
6634 defundef = substr(arg[1], 2)
6635 mac1 = arg[2]
6636 }
6637 split(mac1, mac2, "(") #)
6638 macro = mac2[1]
6639 if (D_is_set[macro]) {
6640 # Preserve the white space surrounding the "#".
6641 prefix = substr(line, 1, index(line, defundef) - 1)
6642 print prefix "define", macro P[macro] D[macro]
6643 next
6644 } else {
6645 # Replace #undef with comments. This is necessary, for example,
6646 # in the case of _POSIX_SOURCE, which is predefined and required
6647 # on some systems where configure will not decide to define it.
6648 if (defundef == "undef") {
6649 print "/*", line, "*/"
6650 next
6651 }
6652 }
6653 }
6654 { print }
6655 _ACAWK
6656 _ACEOF
6657 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6658 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
6659 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
6660 { (exit 1); exit 1; }; }
6661 fi # test -n "$CONFIG_HEADERS"
6662
6663
6664 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
6665 shift
6666 for ac_tag
6667 do
6668 case $ac_tag in
6669 :[FHLC]) ac_mode=$ac_tag; continue;;
6670 esac
6671 case $ac_mode$ac_tag in
6672 :[FHL]*:*);;
6673 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
6674 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
6675 { (exit 1); exit 1; }; };;
6676 :[FH]-) ac_tag=-:-;;
6677 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6678 esac
6679 ac_save_IFS=$IFS
6680 IFS=:
6681 set x $ac_tag
6682 IFS=$ac_save_IFS
6683 shift
6684 ac_file=$1
6685 shift
6686
6687 case $ac_mode in
6688 :L) ac_source=$1;;
6689 :[FH])
6690 ac_file_inputs=
6691 for ac_f
6692 do
6693 case $ac_f in
6694 -) ac_f="$tmp/stdin";;
6695 *) # Look for the file first in the build tree, then in the source tree
6696 # (if the path is not absolute). The absolute path cannot be DOS-style,
6697 # because $ac_f cannot contain `:'.
6698 test -f "$ac_f" ||
6699 case $ac_f in
6700 [\\/$]*) false;;
6701 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6702 esac ||
6703 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
6704 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
6705 { (exit 1); exit 1; }; };;
6706 esac
6707 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6708 ac_file_inputs="$ac_file_inputs '$ac_f'"
6709 done
6710
6711 # Let's still pretend it is `configure' which instantiates (i.e., don't
6712 # use $as_me), people would be surprised to read:
6713 # /* config.h. Generated by config.status. */
6714 configure_input='Generated from '`
6715 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6716 `' by configure.'
6717 if test x"$ac_file" != x-; then
6718 configure_input="$ac_file. $configure_input"
6719 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
6720 $as_echo "$as_me: creating $ac_file" >&6;}
6721 fi
6722 # Neutralize special characters interpreted by sed in replacement strings.
6723 case $configure_input in #(
6724 *\&* | *\|* | *\\* )
6725 ac_sed_conf_input=`$as_echo "$configure_input" |
6726 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6727 *) ac_sed_conf_input=$configure_input;;
6728 esac
6729
6730 case $ac_tag in
6731 *:-:* | *:-) cat >"$tmp/stdin" \
6732 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
6733 $as_echo "$as_me: error: could not create $ac_file" >&2;}
6734 { (exit 1); exit 1; }; } ;;
6735 esac
6736 ;;
6737 esac
6738
6739 ac_dir=`$as_dirname -- "$ac_file" ||
6740 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6741 X"$ac_file" : 'X\(//\)[^/]' \| \
6742 X"$ac_file" : 'X\(//\)$' \| \
6743 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6744 $as_echo X"$ac_file" |
6745 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6746 s//\1/
6747 q
6748 }
6749 /^X\(\/\/\)[^/].*/{
6750 s//\1/
6751 q
6752 }
6753 /^X\(\/\/\)$/{
6754 s//\1/
6755 q
6756 }
6757 /^X\(\/\).*/{
6758 s//\1/
6759 q
6760 }
6761 s/.*/./; q'`
6762 { as_dir="$ac_dir"
6763 case $as_dir in #(
6764 -*) as_dir=./$as_dir;;
6765 esac
6766 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
6767 as_dirs=
6768 while :; do
6769 case $as_dir in #(
6770 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6771 *) as_qdir=$as_dir;;
6772 esac
6773 as_dirs="'$as_qdir' $as_dirs"
6774 as_dir=`$as_dirname -- "$as_dir" ||
6775 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6776 X"$as_dir" : 'X\(//\)[^/]' \| \
6777 X"$as_dir" : 'X\(//\)$' \| \
6778 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6779 $as_echo X"$as_dir" |
6780 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6781 s//\1/
6782 q
6783 }
6784 /^X\(\/\/\)[^/].*/{
6785 s//\1/
6786 q
6787 }
6788 /^X\(\/\/\)$/{
6789 s//\1/
6790 q
6791 }
6792 /^X\(\/\).*/{
6793 s//\1/
6794 q
6795 }
6796 s/.*/./; q'`
6797 test -d "$as_dir" && break
6798 done
6799 test -z "$as_dirs" || eval "mkdir $as_dirs"
6800 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
6801 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
6802 { (exit 1); exit 1; }; }; }
6803 ac_builddir=.
6804
6805 case "$ac_dir" in
6806 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6807 *)
6808 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6809 # A ".." for each directory in $ac_dir_suffix.
6810 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6811 case $ac_top_builddir_sub in
6812 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6813 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6814 esac ;;
6815 esac
6816 ac_abs_top_builddir=$ac_pwd
6817 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6818 # for backward compatibility:
6819 ac_top_builddir=$ac_top_build_prefix
6820
6821 case $srcdir in
6822 .) # We are building in place.
6823 ac_srcdir=.
6824 ac_top_srcdir=$ac_top_builddir_sub
6825 ac_abs_top_srcdir=$ac_pwd ;;
6826 [\\/]* | ?:[\\/]* ) # Absolute name.
6827 ac_srcdir=$srcdir$ac_dir_suffix;
6828 ac_top_srcdir=$srcdir
6829 ac_abs_top_srcdir=$srcdir ;;
6830 *) # Relative name.
6831 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6832 ac_top_srcdir=$ac_top_build_prefix$srcdir
6833 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6834 esac
6835 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6836
6837
6838 case $ac_mode in
6839 :F)
6840 #
6841 # CONFIG_FILE
6842 #
6843
6844 case $INSTALL in
6845 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6846 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6847 esac
6848 ac_MKDIR_P=$MKDIR_P
6849 case $MKDIR_P in
6850 [\\/$]* | ?:[\\/]* ) ;;
6851 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6852 esac
6853 _ACEOF
6854
6855 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6856 # If the template does not know about datarootdir, expand it.
6857 # FIXME: This hack should be removed a few years after 2.60.
6858 ac_datarootdir_hack=; ac_datarootdir_seen=
6859
6860 ac_sed_dataroot='
6861 /datarootdir/ {
6862 p
6863 q
6864 }
6865 /@datadir@/p
6866 /@docdir@/p
6867 /@infodir@/p
6868 /@localedir@/p
6869 /@mandir@/p
6870 '
6871 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6872 *datarootdir*) ac_datarootdir_seen=yes;;
6873 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6874 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6875 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6876 _ACEOF
6877 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6878 ac_datarootdir_hack='
6879 s&@datadir@&$datadir&g
6880 s&@docdir@&$docdir&g
6881 s&@infodir@&$infodir&g
6882 s&@localedir@&$localedir&g
6883 s&@mandir@&$mandir&g
6884 s&\\\${datarootdir}&$datarootdir&g' ;;
6885 esac
6886 _ACEOF
6887
6888 # Neutralize VPATH when `$srcdir' = `.'.
6889 # Shell code in configure.ac might set extrasub.
6890 # FIXME: do we really want to maintain this feature?
6891 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6892 ac_sed_extra="$ac_vpsub
6893 $extrasub
6894 _ACEOF
6895 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6896 :t
6897 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6898 s|@configure_input@|$ac_sed_conf_input|;t t
6899 s&@top_builddir@&$ac_top_builddir_sub&;t t
6900 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6901 s&@srcdir@&$ac_srcdir&;t t
6902 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6903 s&@top_srcdir@&$ac_top_srcdir&;t t
6904 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6905 s&@builddir@&$ac_builddir&;t t
6906 s&@abs_builddir@&$ac_abs_builddir&;t t
6907 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6908 s&@INSTALL@&$ac_INSTALL&;t t
6909 s&@MKDIR_P@&$ac_MKDIR_P&;t t
6910 $ac_datarootdir_hack
6911 "
6912 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
6913 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
6914 $as_echo "$as_me: error: could not create $ac_file" >&2;}
6915 { (exit 1); exit 1; }; }
6916
6917 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6918 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6919 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6920 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6921 which seems to be undefined. Please make sure it is defined." >&5
6922 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6923 which seems to be undefined. Please make sure it is defined." >&2;}
6924
6925 rm -f "$tmp/stdin"
6926 case $ac_file in
6927 -) cat "$tmp/out" && rm -f "$tmp/out";;
6928 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
6929 esac \
6930 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
6931 $as_echo "$as_me: error: could not create $ac_file" >&2;}
6932 { (exit 1); exit 1; }; }
6933 ;;
6934 :H)
6935 #
6936 # CONFIG_HEADER
6937 #
6938 if test x"$ac_file" != x-; then
6939 {
6940 $as_echo "/* $configure_input */" \
6941 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
6942 } >"$tmp/config.h" \
6943 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
6944 $as_echo "$as_me: error: could not create $ac_file" >&2;}
6945 { (exit 1); exit 1; }; }
6946 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
6947 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6948 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6949 else
6950 rm -f "$ac_file"
6951 mv "$tmp/config.h" "$ac_file" \
6952 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
6953 $as_echo "$as_me: error: could not create $ac_file" >&2;}
6954 { (exit 1); exit 1; }; }
6955 fi
6956 else
6957 $as_echo "/* $configure_input */" \
6958 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
6959 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
6960 $as_echo "$as_me: error: could not create -" >&2;}
6961 { (exit 1); exit 1; }; }
6962 fi
6963 # Compute "$ac_file"'s index in $config_headers.
6964 _am_stamp_count=1
6965 for _am_header in $config_headers :; do
6966 case $_am_header in
6967 "$ac_file" | "$ac_file":* )
6968 break ;;
6969 * )
6970 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6971 esac
6972 done
6973 echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
6974 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6975 X"$ac_file" : 'X\(//\)[^/]' \| \
6976 X"$ac_file" : 'X\(//\)$' \| \
6977 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6978 $as_echo X"$ac_file" |
6979 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6980 s//\1/
6981 q
6982 }
6983 /^X\(\/\/\)[^/].*/{
6984 s//\1/
6985 q
6986 }
6987 /^X\(\/\/\)$/{
6988 s//\1/
6989 q
6990 }
6991 /^X\(\/\).*/{
6992 s//\1/
6993 q
6994 }
6995 s/.*/./; q'`/stamp-h$_am_stamp_count
6996 ;;
6997
6998 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
6999 $as_echo "$as_me: executing $ac_file commands" >&6;}
7000 ;;
7001 esac
7002
7003
7004 case $ac_file$ac_mode in
7005 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
7006 # Strip MF so we end up with the name of the file.
7007 mf=`echo "$mf" | sed -e 's/:.*$//'`
7008 # Check whether this is an Automake generated Makefile or not.
7009 # We used to match only the files named `Makefile.in', but
7010 # some people rename them; so instead we look at the file content.
7011 # Grep'ing the first line is not enough: some people post-process
7012 # each Makefile.in and add a new line on top of each file to say so.
7013 # Grep'ing the whole file is not good either: AIX grep has a line
7014 # limit of 2048, but all sed's we know have understand at least 4000.
7015 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
7016 dirpart=`$as_dirname -- "$mf" ||
7017 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7018 X"$mf" : 'X\(//\)[^/]' \| \
7019 X"$mf" : 'X\(//\)$' \| \
7020 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
7021 $as_echo X"$mf" |
7022 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7023 s//\1/
7024 q
7025 }
7026 /^X\(\/\/\)[^/].*/{
7027 s//\1/
7028 q
7029 }
7030 /^X\(\/\/\)$/{
7031 s//\1/
7032 q
7033 }
7034 /^X\(\/\).*/{
7035 s//\1/
7036 q
7037 }
7038 s/.*/./; q'`
7039 else
7040 continue
7041 fi
7042 # Extract the definition of DEPDIR, am__include, and am__quote
7043 # from the Makefile without running `make'.
7044 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7045 test -z "$DEPDIR" && continue
7046 am__include=`sed -n 's/^am__include = //p' < "$mf"`
7047 test -z "am__include" && continue
7048 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7049 # When using ansi2knr, U may be empty or an underscore; expand it
7050 U=`sed -n 's/^U = //p' < "$mf"`
7051 # Find all dependency output files, they are included files with
7052 # $(DEPDIR) in their names. We invoke sed twice because it is the
7053 # simplest approach to changing $(DEPDIR) to its actual value in the
7054 # expansion.
7055 for file in `sed -n "
7056 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7057 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7058 # Make sure the directory exists.
7059 test -f "$dirpart/$file" && continue
7060 fdir=`$as_dirname -- "$file" ||
7061 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7062 X"$file" : 'X\(//\)[^/]' \| \
7063 X"$file" : 'X\(//\)$' \| \
7064 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
7065 $as_echo X"$file" |
7066 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7067 s//\1/
7068 q
7069 }
7070 /^X\(\/\/\)[^/].*/{
7071 s//\1/
7072 q
7073 }
7074 /^X\(\/\/\)$/{
7075 s//\1/
7076 q
7077 }
7078 /^X\(\/\).*/{
7079 s//\1/
7080 q
7081 }
7082 s/.*/./; q'`
7083 { as_dir=$dirpart/$fdir
7084 case $as_dir in #(
7085 -*) as_dir=./$as_dir;;
7086 esac
7087 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
7088 as_dirs=
7089 while :; do
7090 case $as_dir in #(
7091 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7092 *) as_qdir=$as_dir;;
7093 esac
7094 as_dirs="'$as_qdir' $as_dirs"
7095 as_dir=`$as_dirname -- "$as_dir" ||
7096 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7097 X"$as_dir" : 'X\(//\)[^/]' \| \
7098 X"$as_dir" : 'X\(//\)$' \| \
7099 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7100 $as_echo X"$as_dir" |
7101 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7102 s//\1/
7103 q
7104 }
7105 /^X\(\/\/\)[^/].*/{
7106 s//\1/
7107 q
7108 }
7109 /^X\(\/\/\)$/{
7110 s//\1/
7111 q
7112 }
7113 /^X\(\/\).*/{
7114 s//\1/
7115 q
7116 }
7117 s/.*/./; q'`
7118 test -d "$as_dir" && break
7119 done
7120 test -z "$as_dirs" || eval "mkdir $as_dirs"
7121 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
7122 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
7123 { (exit 1); exit 1; }; }; }
7124 # echo "creating $dirpart/$file"
7125 echo '# dummy' > "$dirpart/$file"
7126 done
7127 done
7128 ;;
7129
7130 esac
7131 done # for ac_tag
7132
7133
7134 { (exit 0); exit 0; }
7135 _ACEOF
7136 chmod +x $CONFIG_STATUS
7137 ac_clean_files=$ac_clean_files_save
7138
7139 test $ac_write_fail = 0 ||
7140 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
7141 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
7142 { (exit 1); exit 1; }; }
7143
7144
7145 # configure is writing to config.log, and then calls config.status.
7146 # config.status does its own redirection, appending to config.log.
7147 # Unfortunately, on DOS this fails, as config.log is still kept open
7148 # by configure, so config.status won't be able to write to it; its
7149 # output is simply discarded. So we exec the FD to /dev/null,
7150 # effectively closing config.log, so it can be properly (re)opened and
7151 # appended to by config.status. When coming back to configure, we
7152 # need to make the FD available again.
7153 if test "$no_create" != yes; then
7154 ac_cs_success=:
7155 ac_config_status_args=
7156 test "$silent" = yes &&
7157 ac_config_status_args="$ac_config_status_args --quiet"
7158 exec 5>/dev/null
7159 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7160 exec 5>>config.log
7161 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7162 # would make configure fail if this is the last instruction.
7163 $ac_cs_success || { (exit 1); exit 1; }
7164 fi
7165 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7166 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
7167 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
7168 fi
7169
0 AC_PREREQ(2.59)
1
2 AC_INIT([pnm2ppa], 1.13, [pnm2ppa-users@lists.sourceforge.net])
3 AC_CONFIG_HEADERS([config.h])
4 AC_CONFIG_SRCDIR([ppa.c])
5 AC_CANONICAL_BUILD
6 AC_CANONICAL_HOST
7
8 AM_MAINTAINER_MODE
9 AM_INIT_AUTOMAKE([foreign no-exeext dist-bzip2])
10
11 CFLAGS="${CFLAGS} -Wall -Wsign-compare -Wfloat-equal -Wformat-security -g"
12
13 # Checks for programs.
14 AC_PROG_CC
15
16 AC_MSG_CHECKING([if cross compiling])
17 if test "x$cross_compiling" = "xno"; then
18 CC_FOR_BUILD=${CC_FOR_BUILD-${CC-gcc}}
19 AC_MSG_RESULT([no])
20 else
21 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
22 AC_MSG_RESULT([yes])
23 fi
24
25 AC_SUBST(CC_FOR_BUILD)
26
27 #
28 # do we need libm for 'sqrt' and 'pow'?
29 #
30 AC_SEARCH_LIBS(sqrt, m)
31 AC_SEARCH_LIBS(pow, m)
32
33 #
34 # other things we rely on
35 #
36 AC_CHECK_FUNCS([memmove] [memset] [strcasecmp] [strchr] [strdup])
37 AC_CHECK_HEADERS([sys/param.h])
38 AC_C_INLINE
39 AC_FUNC_MALLOC
40 AC_HEADER_STDBOOL
41 AC_TYPE_SIZE_T
42
43 #
44 # Some systems need a special library for 'getopt_long'
45 # (for example MacOS and FreeBSD).
46 #
47 AC_SEARCH_LIBS(getopt_long, [gnugetopt iberty])
48
49 #
50 # check if the syslog feature is present
51 # On some systems other than the libc is required to use this feature
52 #
53 AC_SEARCH_LIBS(syslog, [bsd socket inet])
54
55 # do we have a syslog feature?
56 if test "${ac_cv_search_syslog}" = "no"; then
57 # disable its usage
58 AC_DEFINE(__NO_SYSLOG__, 1, [no syslog])
59 else
60 #
61 # okay, 'syslog' is present. But should we use it?
62 #
63 AC_MSG_CHECKING([whether to enable syslog])
64 AC_ARG_ENABLE(syslog,
65 AS_HELP_STRING([--enable-syslog], [enable syslog @<:@default=yes@:>@]),
66 [case "$enableval" in
67 y | yes) CONFIG_SYSLOG=yes ;;
68 *) CONFIG_SYSLOG=no ;;
69 esac],
70 [CONFIG_SYSLOG=yes])
71 AC_MSG_RESULT([${CONFIG_SYSLOG}])
72
73 if test "${CONFIG_SYSLOG}" = "yes"; then
74 AC_DEFINE(USE_SYSLOG, 1 , [use the syslog feature])
75 else
76 AC_DEFINE(__NO_SYSLOG__, 1, [no syslog])
77 fi
78 fi
79
80 #
81 # Some things have to be done in accordance to the operating system
82 #
83 AC_MSG_CHECKING([operating system])
84 case $host in
85 *-linux*)
86 AC_MSG_RESULT([Linux])
87 ;;
88 *-solaris*)
89 AC_MSG_RESULT([SOLARIS])
90 AC_DEFINE(__NO_LOG_PERROR__, [], [absent])
91 ;;
92 *-BeOS*)
93 AC_MSG_RESULT([BeOS])
94 # On BeOS the LDFLAGS should not be used.
95 AM_LDFLAGS=""
96 ;;
97 *-darwin*)
98 AC_MSG_RESULT([Darwin/MacOS X])
99 CFLAGS="${CFLAGS} -no-cpp-precomp -traditional-cpp"
100 ;;
101 *-bsd*)
102 AC_MSG_RESULT([FreeBSD])
103 ;;
104 *)
105 AC_MSG_RESULT([unsupported operating system, pnm2ppa may fail])
106 esac
107
108 #
109 # Debugging
110 #
111 AC_MSG_CHECKING([whether to enable debugging])
112 AC_ARG_ENABLE(debug,
113 AS_HELP_STRING([--enable-debug], [enable debugging @<:@default=no@:>@]),
114 [case "$enableval" in
115 y | yes) CONFIG_DEBUG=yes ;;
116 *) CONFIG_DEBUG=no ;;
117 esac],
118 [CONFIG_DEBUG=no])
119 AC_MSG_RESULT([${CONFIG_DEBUG}])
120 if test "${CONFIG_DEBUG}" = "yes"; then
121 AC_DEFINE(DEBUG, 1, [debugging])
122 AM_CONDITIONAL(PNM2PPA_DEBUG, [true])
123 CFLAGS="${CFLAGS} -O1"
124 else
125 CFLAGS="${CFLAGS} -O2 -DNDEBUG"
126 AM_CONDITIONAL(PNM2PPA_DEBUG, [false])
127 fi
128
129 #
130 # define the compiled in language
131 #
132 AC_MSG_CHECKING([which language is to be used])
133 AC_ARG_WITH([language],
134 AS_HELP_STRING([--with-language=EN | CZ | ES | FR | IT | NL],
135 [Compiled in language]),
136 [ppa_language="$withval"])
137
138 # english language is the default
139 if test -z "${ppa_language}"; then
140 # default is english
141 ppa_language=EN
142 fi
143
144 case "${ppa_language}" in
145 EN | en)
146 AC_DEFINE(LANG_EN, [], [english])
147 used_language="english"
148 ;;
149 CZ | en)
150 AC_DEFINE(LANG_CZ, [], [cech])
151 used_language="cech"
152 ;;
153 ES | es)
154 AC_DEFINE(LANG_ES, [], [espanol])
155 used_language="espanol"
156 ;;
157 FR | fr)
158 AC_DEFINE(LANG_FR, [], [french])
159 used_language="french"
160 ;;
161 IT | it)
162 AC_DEFINE(LANG_IT, [], [italian])
163 used_language="italian"
164 ;;
165 NL | nl)
166 AC_DEFINE(LANG_NL, [], [dutch])
167 used_language="dutch"
168 ;;
169 *)
170 AC_MSG_ERROR([Unsupported language])
171 ;;
172 esac
173
174 AC_MSG_RESULT([${used_language}])
175
176 AC_MSG_CHECKING([whether to build the 'parse_vlink' tool])
177 AC_ARG_ENABLE(vlink,
178 AS_HELP_STRING([--enable-vlink], [enable building parse_vlink @<:@default=no@:>@]),
179 [case "$enableval" in
180 y | yes) CONFIG_VLINK=yes ;;
181 *) CONFIG_VLINK=no ;;
182 esac],
183 [CONFIG_VLINK=no])
184 AC_MSG_RESULT([${CONFIG_VLINK}])
185
186 if test "${CONFIG_VLINK}" = "yes"; then
187 AM_CONDITIONAL(BUILD_PARSE_VLINK, [true])
188 else
189 AM_CONDITIONAL(BUILD_PARSE_VLINK, [false])
190 fi
191
192 AC_CONFIG_FILES(
193 [Makefile]
194 [ppa_protocol/Makefile]
195 )
196 AC_OUTPUT
1414 * *
1515 ***************************************************************************/
1616
17 #ifdef HAVE_CONFIG_H
18 # include "config.h"
19 #endif
20
1721 #include <stdio.h>
1822 #include <stdlib.h>
1923 #include <string.h>
2125
2226 #define __CUTSWATH_C__
2327
24 #include "syslog.h"
28 #include "ppa_syslog.h"
2529 #include "global.h"
2630 #include "debug.h"
2731 #include "defaults.h"
1313 * (at your option) any later version. *
1414 * *
1515 ***************************************************************************/
16
17 #ifdef HAVE_CONFIG_H
18 # include "config.h"
19 #endif
1620
1721 #ifdef DEBUG
1822
0 #! /bin/sh
1 # depcomp - compile a program generating dependencies as side-effects
2
3 scriptversion=2006-10-15.18
4
5 # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006 Free Software
6 # Foundation, Inc.
7
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2, or (at your option)
11 # any later version.
12
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
17
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21 # 02110-1301, USA.
22
23 # As a special exception to the GNU General Public License, if you
24 # distribute this file as part of a program that contains a
25 # configuration script generated by Autoconf, you may include it under
26 # the same distribution terms that you use for the rest of that program.
27
28 # Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.
29
30 case $1 in
31 '')
32 echo "$0: No command. Try \`$0 --help' for more information." 1>&2
33 exit 1;
34 ;;
35 -h | --h*)
36 cat <<\EOF
37 Usage: depcomp [--help] [--version] PROGRAM [ARGS]
38
39 Run PROGRAMS ARGS to compile a file, generating dependencies
40 as side-effects.
41
42 Environment variables:
43 depmode Dependency tracking mode.
44 source Source file read by `PROGRAMS ARGS'.
45 object Object file output by `PROGRAMS ARGS'.
46 DEPDIR directory where to store dependencies.
47 depfile Dependency file to output.
48 tmpdepfile Temporary file to use when outputing dependencies.
49 libtool Whether libtool is used (yes/no).
50
51 Report bugs to <bug-automake@gnu.org>.
52 EOF
53 exit $?
54 ;;
55 -v | --v*)
56 echo "depcomp $scriptversion"
57 exit $?
58 ;;
59 esac
60
61 if test -z "$depmode" || test -z "$source" || test -z "$object"; then
62 echo "depcomp: Variables source, object and depmode must be set" 1>&2
63 exit 1
64 fi
65
66 # Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
67 depfile=${depfile-`echo "$object" |
68 sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
69 tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
70
71 rm -f "$tmpdepfile"
72
73 # Some modes work just like other modes, but use different flags. We
74 # parameterize here, but still list the modes in the big case below,
75 # to make depend.m4 easier to write. Note that we *cannot* use a case
76 # here, because this file can only contain one case statement.
77 if test "$depmode" = hp; then
78 # HP compiler uses -M and no extra arg.
79 gccflag=-M
80 depmode=gcc
81 fi
82
83 if test "$depmode" = dashXmstdout; then
84 # This is just like dashmstdout with a different argument.
85 dashmflag=-xM
86 depmode=dashmstdout
87 fi
88
89 case "$depmode" in
90 gcc3)
91 ## gcc 3 implements dependency tracking that does exactly what
92 ## we want. Yay! Note: for some reason libtool 1.4 doesn't like
93 ## it if -MD -MP comes after the -MF stuff. Hmm.
94 ## Unfortunately, FreeBSD c89 acceptance of flags depends upon
95 ## the command line argument order; so add the flags where they
96 ## appear in depend2.am. Note that the slowdown incurred here
97 ## affects only configure: in makefiles, %FASTDEP% shortcuts this.
98 for arg
99 do
100 case $arg in
101 -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;;
102 *) set fnord "$@" "$arg" ;;
103 esac
104 shift # fnord
105 shift # $arg
106 done
107 "$@"
108 stat=$?
109 if test $stat -eq 0; then :
110 else
111 rm -f "$tmpdepfile"
112 exit $stat
113 fi
114 mv "$tmpdepfile" "$depfile"
115 ;;
116
117 gcc)
118 ## There are various ways to get dependency output from gcc. Here's
119 ## why we pick this rather obscure method:
120 ## - Don't want to use -MD because we'd like the dependencies to end
121 ## up in a subdir. Having to rename by hand is ugly.
122 ## (We might end up doing this anyway to support other compilers.)
123 ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
124 ## -MM, not -M (despite what the docs say).
125 ## - Using -M directly means running the compiler twice (even worse
126 ## than renaming).
127 if test -z "$gccflag"; then
128 gccflag=-MD,
129 fi
130 "$@" -Wp,"$gccflag$tmpdepfile"
131 stat=$?
132 if test $stat -eq 0; then :
133 else
134 rm -f "$tmpdepfile"
135 exit $stat
136 fi
137 rm -f "$depfile"
138 echo "$object : \\" > "$depfile"
139 alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
140 ## The second -e expression handles DOS-style file names with drive letters.
141 sed -e 's/^[^:]*: / /' \
142 -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
143 ## This next piece of magic avoids the `deleted header file' problem.
144 ## The problem is that when a header file which appears in a .P file
145 ## is deleted, the dependency causes make to die (because there is
146 ## typically no way to rebuild the header). We avoid this by adding
147 ## dummy dependencies for each header file. Too bad gcc doesn't do
148 ## this for us directly.
149 tr ' ' '
150 ' < "$tmpdepfile" |
151 ## Some versions of gcc put a space before the `:'. On the theory
152 ## that the space means something, we add a space to the output as
153 ## well.
154 ## Some versions of the HPUX 10.20 sed can't process this invocation
155 ## correctly. Breaking it into two sed invocations is a workaround.
156 sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
157 rm -f "$tmpdepfile"
158 ;;
159
160 hp)
161 # This case exists only to let depend.m4 do its work. It works by
162 # looking at the text of this script. This case will never be run,
163 # since it is checked for above.
164 exit 1
165 ;;
166
167 sgi)
168 if test "$libtool" = yes; then
169 "$@" "-Wp,-MDupdate,$tmpdepfile"
170 else
171 "$@" -MDupdate "$tmpdepfile"
172 fi
173 stat=$?
174 if test $stat -eq 0; then :
175 else
176 rm -f "$tmpdepfile"
177 exit $stat
178 fi
179 rm -f "$depfile"
180
181 if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
182 echo "$object : \\" > "$depfile"
183
184 # Clip off the initial element (the dependent). Don't try to be
185 # clever and replace this with sed code, as IRIX sed won't handle
186 # lines with more than a fixed number of characters (4096 in
187 # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
188 # the IRIX cc adds comments like `#:fec' to the end of the
189 # dependency line.
190 tr ' ' '
191 ' < "$tmpdepfile" \
192 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
193 tr '
194 ' ' ' >> $depfile
195 echo >> $depfile
196
197 # The second pass generates a dummy entry for each header file.
198 tr ' ' '
199 ' < "$tmpdepfile" \
200 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
201 >> $depfile
202 else
203 # The sourcefile does not contain any dependencies, so just
204 # store a dummy comment line, to avoid errors with the Makefile
205 # "include basename.Plo" scheme.
206 echo "#dummy" > "$depfile"
207 fi
208 rm -f "$tmpdepfile"
209 ;;
210
211 aix)
212 # The C for AIX Compiler uses -M and outputs the dependencies
213 # in a .u file. In older versions, this file always lives in the
214 # current directory. Also, the AIX compiler puts `$object:' at the
215 # start of each line; $object doesn't have directory information.
216 # Version 6 uses the directory in both cases.
217 stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'`
218 tmpdepfile="$stripped.u"
219 if test "$libtool" = yes; then
220 "$@" -Wc,-M
221 else
222 "$@" -M
223 fi
224 stat=$?
225
226 if test -f "$tmpdepfile"; then :
227 else
228 stripped=`echo "$stripped" | sed 's,^.*/,,'`
229 tmpdepfile="$stripped.u"
230 fi
231
232 if test $stat -eq 0; then :
233 else
234 rm -f "$tmpdepfile"
235 exit $stat
236 fi
237
238 if test -f "$tmpdepfile"; then
239 outname="$stripped.o"
240 # Each line is of the form `foo.o: dependent.h'.
241 # Do two passes, one to just change these to
242 # `$object: dependent.h' and one to simply `dependent.h:'.
243 sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile"
244 sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile"
245 else
246 # The sourcefile does not contain any dependencies, so just
247 # store a dummy comment line, to avoid errors with the Makefile
248 # "include basename.Plo" scheme.
249 echo "#dummy" > "$depfile"
250 fi
251 rm -f "$tmpdepfile"
252 ;;
253
254 icc)
255 # Intel's C compiler understands `-MD -MF file'. However on
256 # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c
257 # ICC 7.0 will fill foo.d with something like
258 # foo.o: sub/foo.c
259 # foo.o: sub/foo.h
260 # which is wrong. We want:
261 # sub/foo.o: sub/foo.c
262 # sub/foo.o: sub/foo.h
263 # sub/foo.c:
264 # sub/foo.h:
265 # ICC 7.1 will output
266 # foo.o: sub/foo.c sub/foo.h
267 # and will wrap long lines using \ :
268 # foo.o: sub/foo.c ... \
269 # sub/foo.h ... \
270 # ...
271
272 "$@" -MD -MF "$tmpdepfile"
273 stat=$?
274 if test $stat -eq 0; then :
275 else
276 rm -f "$tmpdepfile"
277 exit $stat
278 fi
279 rm -f "$depfile"
280 # Each line is of the form `foo.o: dependent.h',
281 # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
282 # Do two passes, one to just change these to
283 # `$object: dependent.h' and one to simply `dependent.h:'.
284 sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
285 # Some versions of the HPUX 10.20 sed can't process this invocation
286 # correctly. Breaking it into two sed invocations is a workaround.
287 sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" |
288 sed -e 's/$/ :/' >> "$depfile"
289 rm -f "$tmpdepfile"
290 ;;
291
292 hp2)
293 # The "hp" stanza above does not work with aCC (C++) and HP's ia64
294 # compilers, which have integrated preprocessors. The correct option
295 # to use with these is +Maked; it writes dependencies to a file named
296 # 'foo.d', which lands next to the object file, wherever that
297 # happens to be.
298 # Much of this is similar to the tru64 case; see comments there.
299 dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
300 test "x$dir" = "x$object" && dir=
301 base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
302 if test "$libtool" = yes; then
303 tmpdepfile1=$dir$base.d
304 tmpdepfile2=$dir.libs/$base.d
305 "$@" -Wc,+Maked
306 else
307 tmpdepfile1=$dir$base.d
308 tmpdepfile2=$dir$base.d
309 "$@" +Maked
310 fi
311 stat=$?
312 if test $stat -eq 0; then :
313 else
314 rm -f "$tmpdepfile1" "$tmpdepfile2"
315 exit $stat
316 fi
317
318 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2"
319 do
320 test -f "$tmpdepfile" && break
321 done
322 if test -f "$tmpdepfile"; then
323 sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile"
324 # Add `dependent.h:' lines.
325 sed -ne '2,${; s/^ *//; s/ \\*$//; s/$/:/; p;}' "$tmpdepfile" >> "$depfile"
326 else
327 echo "#dummy" > "$depfile"
328 fi
329 rm -f "$tmpdepfile" "$tmpdepfile2"
330 ;;
331
332 tru64)
333 # The Tru64 compiler uses -MD to generate dependencies as a side
334 # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
335 # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
336 # dependencies in `foo.d' instead, so we check for that too.
337 # Subdirectories are respected.
338 dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
339 test "x$dir" = "x$object" && dir=
340 base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
341
342 if test "$libtool" = yes; then
343 # With Tru64 cc, shared objects can also be used to make a
344 # static library. This mechanism is used in libtool 1.4 series to
345 # handle both shared and static libraries in a single compilation.
346 # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
347 #
348 # With libtool 1.5 this exception was removed, and libtool now
349 # generates 2 separate objects for the 2 libraries. These two
350 # compilations output dependencies in $dir.libs/$base.o.d and
351 # in $dir$base.o.d. We have to check for both files, because
352 # one of the two compilations can be disabled. We should prefer
353 # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
354 # automatically cleaned when .libs/ is deleted, while ignoring
355 # the former would cause a distcleancheck panic.
356 tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4
357 tmpdepfile2=$dir$base.o.d # libtool 1.5
358 tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5
359 tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504
360 "$@" -Wc,-MD
361 else
362 tmpdepfile1=$dir$base.o.d
363 tmpdepfile2=$dir$base.d
364 tmpdepfile3=$dir$base.d
365 tmpdepfile4=$dir$base.d
366 "$@" -MD
367 fi
368
369 stat=$?
370 if test $stat -eq 0; then :
371 else
372 rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
373 exit $stat
374 fi
375
376 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
377 do
378 test -f "$tmpdepfile" && break
379 done
380 if test -f "$tmpdepfile"; then
381 sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
382 # That's a tab and a space in the [].
383 sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
384 else
385 echo "#dummy" > "$depfile"
386 fi
387 rm -f "$tmpdepfile"
388 ;;
389
390 #nosideeffect)
391 # This comment above is used by automake to tell side-effect
392 # dependency tracking mechanisms from slower ones.
393
394 dashmstdout)
395 # Important note: in order to support this mode, a compiler *must*
396 # always write the preprocessed file to stdout, regardless of -o.
397 "$@" || exit $?
398
399 # Remove the call to Libtool.
400 if test "$libtool" = yes; then
401 while test $1 != '--mode=compile'; do
402 shift
403 done
404 shift
405 fi
406
407 # Remove `-o $object'.
408 IFS=" "
409 for arg
410 do
411 case $arg in
412 -o)
413 shift
414 ;;
415 $object)
416 shift
417 ;;
418 *)
419 set fnord "$@" "$arg"
420 shift # fnord
421 shift # $arg
422 ;;
423 esac
424 done
425
426 test -z "$dashmflag" && dashmflag=-M
427 # Require at least two characters before searching for `:'
428 # in the target name. This is to cope with DOS-style filenames:
429 # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise.
430 "$@" $dashmflag |
431 sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile"
432 rm -f "$depfile"
433 cat < "$tmpdepfile" > "$depfile"
434 tr ' ' '
435 ' < "$tmpdepfile" | \
436 ## Some versions of the HPUX 10.20 sed can't process this invocation
437 ## correctly. Breaking it into two sed invocations is a workaround.
438 sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
439 rm -f "$tmpdepfile"
440 ;;
441
442 dashXmstdout)
443 # This case only exists to satisfy depend.m4. It is never actually
444 # run, as this mode is specially recognized in the preamble.
445 exit 1
446 ;;
447
448 makedepend)
449 "$@" || exit $?
450 # Remove any Libtool call
451 if test "$libtool" = yes; then
452 while test $1 != '--mode=compile'; do
453 shift
454 done
455 shift
456 fi
457 # X makedepend
458 shift
459 cleared=no
460 for arg in "$@"; do
461 case $cleared in
462 no)
463 set ""; shift
464 cleared=yes ;;
465 esac
466 case "$arg" in
467 -D*|-I*)
468 set fnord "$@" "$arg"; shift ;;
469 # Strip any option that makedepend may not understand. Remove
470 # the object too, otherwise makedepend will parse it as a source file.
471 -*|$object)
472 ;;
473 *)
474 set fnord "$@" "$arg"; shift ;;
475 esac
476 done
477 obj_suffix="`echo $object | sed 's/^.*\././'`"
478 touch "$tmpdepfile"
479 ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
480 rm -f "$depfile"
481 cat < "$tmpdepfile" > "$depfile"
482 sed '1,2d' "$tmpdepfile" | tr ' ' '
483 ' | \
484 ## Some versions of the HPUX 10.20 sed can't process this invocation
485 ## correctly. Breaking it into two sed invocations is a workaround.
486 sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
487 rm -f "$tmpdepfile" "$tmpdepfile".bak
488 ;;
489
490 cpp)
491 # Important note: in order to support this mode, a compiler *must*
492 # always write the preprocessed file to stdout.
493 "$@" || exit $?
494
495 # Remove the call to Libtool.
496 if test "$libtool" = yes; then
497 while test $1 != '--mode=compile'; do
498 shift
499 done
500 shift
501 fi
502
503 # Remove `-o $object'.
504 IFS=" "
505 for arg
506 do
507 case $arg in
508 -o)
509 shift
510 ;;
511 $object)
512 shift
513 ;;
514 *)
515 set fnord "$@" "$arg"
516 shift # fnord
517 shift # $arg
518 ;;
519 esac
520 done
521
522 "$@" -E |
523 sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
524 -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
525 sed '$ s: \\$::' > "$tmpdepfile"
526 rm -f "$depfile"
527 echo "$object : \\" > "$depfile"
528 cat < "$tmpdepfile" >> "$depfile"
529 sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
530 rm -f "$tmpdepfile"
531 ;;
532
533 msvisualcpp)
534 # Important note: in order to support this mode, a compiler *must*
535 # always write the preprocessed file to stdout, regardless of -o,
536 # because we must use -o when running libtool.
537 "$@" || exit $?
538 IFS=" "
539 for arg
540 do
541 case "$arg" in
542 "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
543 set fnord "$@"
544 shift
545 shift
546 ;;
547 *)
548 set fnord "$@" "$arg"
549 shift
550 shift
551 ;;
552 esac
553 done
554 "$@" -E |
555 sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile"
556 rm -f "$depfile"
557 echo "$object : \\" > "$depfile"
558 . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
559 echo " " >> "$depfile"
560 . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile"
561 rm -f "$tmpdepfile"
562 ;;
563
564 none)
565 exec "$@"
566 ;;
567
568 *)
569 echo "Unknown depmode $depmode" 1>&2
570 exit 1
571 ;;
572 esac
573
574 exit 0
575
576 # Local Variables:
577 # mode: shell-script
578 # sh-indentation: 2
579 # eval: (add-hook 'write-file-hooks 'time-stamp)
580 # time-stamp-start: "scriptversion="
581 # time-stamp-format: "%:y-%02m-%02d.%02H"
582 # time-stamp-end: "$"
583 # End:
1313 * (at your option) any later version. *
1414 * *
1515 ***************************************************************************/
16
17 #ifdef HAVE_CONFIG_H
18 # include "config.h"
19 #endif
1620
1721 #include <stdio.h>
1822 #include <assert.h>
0 pnp2ppa-1.12, November 2002.
0 pnp2ppa-1.13, December 2009.
11
22 Overview
33 --------
4 This file contains some quick notes on installation in general.
4 This file contains some quick notes on installation in general.
55 For more information on pnm2ppa, see INSTALL.REDHAT.txt or
6 INSTALL.REDHAT.html, which (despite its name) has a lot of
6 INSTALL.REDHAT.html, which (despite its name) has a lot of
77 non-RedHat-specific information.
88
9 Configuration
10 -------------
11
12 Run 'configure' to setup the package. Run it with the following switches
13 to get the same result as in the previous releases:
14
15 ./configure --sysconfdir=/etc
16
17 add:
18
19 '--enable-debug' to get a more verbose program (default is no). This switch
20 is intended for developers.
21
22 '--disable-syslog' to disable the syslog feature. Its checked by default, if
23 the system supports a syslog feature.
24 This optione replaces the previous Makefile -D__NO_SYSLOG__ modification
25
26 '--with-language=[EN | CZ | ES | FR | IT | NL]' to select one of the compiled
27 in languages. 'EN' is the default.
28
29 '--enable-vlink' to also build the 'parse_vlink' tool
930
1031 Compilation
1132 -----------
1233 To build pnm2ppa, simply cd to the source directory, and type:
1334
14 make
15
16 If you have MacOS X, NetBSD, or FreeBSD, you'll need to edit the
17 Makefile to include an additional library (libgnugetopt) which pnm2ppa
18 requires.
19
20 Also edit the Makefile to select compilation for BeOS, or on Solaris.
21
22 You may also edit the Makefile to suppress use of the system log
23 (use the -D__NO_SYSLOG__ compiler option)
24
25 There is some internationalization (i18n) of the system log messages.
26 Edit the Makefile to choose a language other than English.
35 make
2736
2837 If you wish to do any further development of pnm2ppa, or study how it works
2938 so you can write a PPA backend to some other print system such as gimp-print,
30 there is a useful tool called parse_vlink (and some documentation)
39 there is a useful tool called parse_vlink (and some documentation)
3140 that can be built in the ppa_protocol subdirectory.
3241
3342 Installation
3443 ------------
3544
36 Two binaries are created: calibrate_ppa and pnm2ppa.
45 Two binaries are created: calibrate_ppa and pnm2ppa (and on demand parse_vlink).
3746
38 calibrate_ppa is used to calibrate your printer (center the printed page,
39 adjust the offset between black and color ink cartridges after changing them,
47 calibrate_ppa is used to calibrate your printer (center the printed page,
48 adjust the offset between black and color ink cartridges after changing them,
4049 etc.) See the CALIBRATION.* file for details.
4150
4251 The other binary created, pnm2ppa, is a converter from a PNM
4453 The PNM image will be aasumed to have a resolution of 600 dpi (or 300dpi
4554 if the --dpi300 command line option is used). (Input at higher/lower
4655 resolutions will print with an incorrect larger/smaller size, if it
47 is within the allowed page size limits.) These files can be generated
56 is within the allowed page size limits.) These files can be generated
4857 with ghostscript. The binary-output pbmraw, pgmraw, ppmraw devices
4958 are supported (the text-output pbm, pgm, ppm devices are also supported, but
50 the raw devices are MUCH faster!).
59 the raw devices are MUCH faster!).
5160
52 The pnmraw and pgnmraw devices are switches that will try to select among
53 the raw formats, as appropriate for the document, but do not always make
61 The pnmraw and pgnmraw devices are switches that will try to select among
62 the raw formats, as appropriate for the document, but do not always make
5463 the correct choice.
5564
56 You should now type
65 You should now type
5766
5867 make install
5968
60 to install the binaries (by default, in /usr/local/bin/) ,
69 to install the binaries (by default, in /usr/local/bin/) ,
6170 the manpage (in /usr/local/man/man1), and the sample
62 configuration file (/etc/pnm2ppa.conf). You may change these locations
63 by editing the Makefile.
71 configuration file (/usr/local/etc/pnm2ppa.conf). You may change these
72 locations by using the --sysconfdir/--prefix parameter when running the
73 'configure' step.
6474
6575 *** IMPORTANT ***
6676
67 The default configuration file /etc/pnm2ppa.conf sets the printer model to
68 "version 0" (NULL printer). Unless you use the -v command line option
77 The default configuration file /usr/local/etc/pnm2ppa.conf sets the printer model
78 to "version 0" (NULL printer). Unless you use the -v command line option
6979 to set the printer model (as is usually done by CUPS, lprNG, etc. scripts that
70 call pnm2ppa), you must edit the configuration file to change this line and
80 call pnm2ppa), you must edit the configuration file to change this line and
7181 choose the correct printer version (720, 820, 1000, etc).
7282 If the printer version is unspecified, it defaults to "720" (valid for
7383 HP710C/712C/720C/722C).
7484
7585 Other things you can do are documented in the sample configuration
76 file /etc/pnm2ppa.conf
86 file /usr/local/etc/pnm2ppa.conf
7787
7888
7989 Usage
106116 etc. In the example, up to six pnm2ppa options can be added (see
107117 "man pnm2ppa" to list options, or "pnm2ppa --h" ).
108118
109 You may wish to replace the ghostscript output device "ppmraw" with
110 "pbmraw" for only black and white printing - it is somewhat faster -
119 You may wish to replace the ghostscript output device "ppmraw" with
120 "pbmraw" for only black and white printing - it is somewhat faster -
111121 or "pgmraw" for greyscale images.
112122
113123 an ascii file could be printed in black and white with the script
125135 You can set up printer filters. See the documentation for
126136 your print spooler for information on how to do that.
127137
128 The subdirectory lpd of the pnm2ppa distribution contains a
138 The subdirectory lpd of the pnm2ppa distribution contains a
129139 printer description file "printcap" and so filters to go with it.
130140 See the README.lpd file there.
131141
148158
149159
150160 An older printfilter system for lpd systems that also supports pnm2ppa is
151 apsfilter (http://www.apsfilter.org).
161 apsfilter (http://www.apsfilter.org).
152162
153163 ---------------
154164
165175
166176 pnm2ppa is now integrated into the CUPS printing system:
167177 see http://www.cups.org. The "cupsomatic" scripts from the
168 http://www.linuxprinting.org site support pnm2ppa on CUPS.
178 http://www.linuxprinting.org site support pnm2ppa on CUPS.
169179
170180
171181 "ppaSet": a Graphical User Interface for configuring pnm2ppa:
172182 -------------------------------
173183 There is also a new graphical (gtk-based) utility for creating
174 a pnm2ppa.conf configuration file and also can act as a front end to the
175 calibration utility calibrate_ppa. It is written by Javier Sedano,
184 a pnm2ppa.conf configuration file and also can act as a front end to the
185 calibration utility calibrate_ppa. It is written by Javier Sedano,
176186 and called ppaSet. Find it at http://sourceforge.net/projects/pnm2ppa.
177187
178188
1414 * *
1515 ***************************************************************************/
1616
17 #ifdef HAVE_CONFIG_H
18 # include "config.h"
19 #endif
1720
1821 #include <stdlib.h>
1922 #include <string.h>
1818 * Global Variables
1919 */
2020
21 #define VERSION "1.12 (November 19, 2002)"
21 /* now provided by the 'configure' script */
22 /* #define VERSION "1.12 (November 19, 2002)" */
2223
2324 /*
2425 * Global types
1515 * *
1616 ***************************************************************************/
1717
18 #ifdef HAVE_CONFIG_H
19 # include "config.h"
20 #endif
1821
1922 #include <stdlib.h>
2023 #include <string.h>
2124 #include <math.h>
2225 #define __IMAGE_C__
2326
24 #include "syslog.h"
27 #include "ppa_syslog.h"
2528 #include "global.h"
2629 #include "defaults.h"
2730
0 #!/bin/sh
1 # install - install a program, script, or datafile
2
3 scriptversion=2006-10-14.15
4
5 # This originates from X11R5 (mit/util/scripts/install.sh), which was
6 # later released in X11R6 (xc/config/util/install.sh) with the
7 # following copyright and license.
8 #
9 # Copyright (C) 1994 X Consortium
10 #
11 # Permission is hereby granted, free of charge, to any person obtaining a copy
12 # of this software and associated documentation files (the "Software"), to
13 # deal in the Software without restriction, including without limitation the
14 # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
15 # sell copies of the Software, and to permit persons to whom the Software is
16 # furnished to do so, subject to the following conditions:
17 #
18 # The above copyright notice and this permission notice shall be included in
19 # all copies or substantial portions of the Software.
20 #
21 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24 # X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
25 # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
26 # TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 #
28 # Except as contained in this notice, the name of the X Consortium shall not
29 # be used in advertising or otherwise to promote the sale, use or other deal-
30 # ings in this Software without prior written authorization from the X Consor-
31 # tium.
32 #
33 #
34 # FSF changes to this file are in the public domain.
35 #
36 # Calling this script install-sh is preferred over install.sh, to prevent
37 # `make' implicit rules from creating a file called install from it
38 # when there is no Makefile.
39 #
40 # This script is compatible with the BSD install script, but was written
41 # from scratch.
42
43 nl='
44 '
45 IFS=" "" $nl"
46
47 # set DOITPROG to echo to test this script
48
49 # Don't use :- since 4.3BSD and earlier shells don't like it.
50 doit="${DOITPROG-}"
51 if test -z "$doit"; then
52 doit_exec=exec
53 else
54 doit_exec=$doit
55 fi
56
57 # Put in absolute file names if you don't have them in your path;
58 # or use environment vars.
59
60 mvprog="${MVPROG-mv}"
61 cpprog="${CPPROG-cp}"
62 chmodprog="${CHMODPROG-chmod}"
63 chownprog="${CHOWNPROG-chown}"
64 chgrpprog="${CHGRPPROG-chgrp}"
65 stripprog="${STRIPPROG-strip}"
66 rmprog="${RMPROG-rm}"
67 mkdirprog="${MKDIRPROG-mkdir}"
68
69 posix_glob=
70 posix_mkdir=
71
72 # Desired mode of installed file.
73 mode=0755
74
75 chmodcmd=$chmodprog
76 chowncmd=
77 chgrpcmd=
78 stripcmd=
79 rmcmd="$rmprog -f"
80 mvcmd="$mvprog"
81 src=
82 dst=
83 dir_arg=
84 dstarg=
85 no_target_directory=
86
87 usage="Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
88 or: $0 [OPTION]... SRCFILES... DIRECTORY
89 or: $0 [OPTION]... -t DIRECTORY SRCFILES...
90 or: $0 [OPTION]... -d DIRECTORIES...
91
92 In the 1st form, copy SRCFILE to DSTFILE.
93 In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
94 In the 4th, create DIRECTORIES.
95
96 Options:
97 -c (ignored)
98 -d create directories instead of installing files.
99 -g GROUP $chgrpprog installed files to GROUP.
100 -m MODE $chmodprog installed files to MODE.
101 -o USER $chownprog installed files to USER.
102 -s $stripprog installed files.
103 -t DIRECTORY install into DIRECTORY.
104 -T report an error if DSTFILE is a directory.
105 --help display this help and exit.
106 --version display version info and exit.
107
108 Environment variables override the default commands:
109 CHGRPPROG CHMODPROG CHOWNPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG
110 "
111
112 while test $# -ne 0; do
113 case $1 in
114 -c) shift
115 continue;;
116
117 -d) dir_arg=true
118 shift
119 continue;;
120
121 -g) chgrpcmd="$chgrpprog $2"
122 shift
123 shift
124 continue;;
125
126 --help) echo "$usage"; exit $?;;
127
128 -m) mode=$2
129 shift
130 shift
131 case $mode in
132 *' '* | *' '* | *'
133 '* | *'*'* | *'?'* | *'['*)
134 echo "$0: invalid mode: $mode" >&2
135 exit 1;;
136 esac
137 continue;;
138
139 -o) chowncmd="$chownprog $2"
140 shift
141 shift
142 continue;;
143
144 -s) stripcmd=$stripprog
145 shift
146 continue;;
147
148 -t) dstarg=$2
149 shift
150 shift
151 continue;;
152
153 -T) no_target_directory=true
154 shift
155 continue;;
156
157 --version) echo "$0 $scriptversion"; exit $?;;
158
159 --) shift
160 break;;
161
162 -*) echo "$0: invalid option: $1" >&2
163 exit 1;;
164
165 *) break;;
166 esac
167 done
168
169 if test $# -ne 0 && test -z "$dir_arg$dstarg"; then
170 # When -d is used, all remaining arguments are directories to create.
171 # When -t is used, the destination is already specified.
172 # Otherwise, the last argument is the destination. Remove it from $@.
173 for arg
174 do
175 if test -n "$dstarg"; then
176 # $@ is not empty: it contains at least $arg.
177 set fnord "$@" "$dstarg"
178 shift # fnord
179 fi
180 shift # arg
181 dstarg=$arg
182 done
183 fi
184
185 if test $# -eq 0; then
186 if test -z "$dir_arg"; then
187 echo "$0: no input file specified." >&2
188 exit 1
189 fi
190 # It's OK to call `install-sh -d' without argument.
191 # This can happen when creating conditional directories.
192 exit 0
193 fi
194
195 if test -z "$dir_arg"; then
196 trap '(exit $?); exit' 1 2 13 15
197
198 # Set umask so as not to create temps with too-generous modes.
199 # However, 'strip' requires both read and write access to temps.
200 case $mode in
201 # Optimize common cases.
202 *644) cp_umask=133;;
203 *755) cp_umask=22;;
204
205 *[0-7])
206 if test -z "$stripcmd"; then
207 u_plus_rw=
208 else
209 u_plus_rw='% 200'
210 fi
211 cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
212 *)
213 if test -z "$stripcmd"; then
214 u_plus_rw=
215 else
216 u_plus_rw=,u+rw
217 fi
218 cp_umask=$mode$u_plus_rw;;
219 esac
220 fi
221
222 for src
223 do
224 # Protect names starting with `-'.
225 case $src in
226 -*) src=./$src ;;
227 esac
228
229 if test -n "$dir_arg"; then
230 dst=$src
231 dstdir=$dst
232 test -d "$dstdir"
233 dstdir_status=$?
234 else
235
236 # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
237 # might cause directories to be created, which would be especially bad
238 # if $src (and thus $dsttmp) contains '*'.
239 if test ! -f "$src" && test ! -d "$src"; then
240 echo "$0: $src does not exist." >&2
241 exit 1
242 fi
243
244 if test -z "$dstarg"; then
245 echo "$0: no destination specified." >&2
246 exit 1
247 fi
248
249 dst=$dstarg
250 # Protect names starting with `-'.
251 case $dst in
252 -*) dst=./$dst ;;
253 esac
254
255 # If destination is a directory, append the input filename; won't work
256 # if double slashes aren't ignored.
257 if test -d "$dst"; then
258 if test -n "$no_target_directory"; then
259 echo "$0: $dstarg: Is a directory" >&2
260 exit 1
261 fi
262 dstdir=$dst
263 dst=$dstdir/`basename "$src"`
264 dstdir_status=0
265 else
266 # Prefer dirname, but fall back on a substitute if dirname fails.
267 dstdir=`
268 (dirname "$dst") 2>/dev/null ||
269 expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
270 X"$dst" : 'X\(//\)[^/]' \| \
271 X"$dst" : 'X\(//\)$' \| \
272 X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
273 echo X"$dst" |
274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
275 s//\1/
276 q
277 }
278 /^X\(\/\/\)[^/].*/{
279 s//\1/
280 q
281 }
282 /^X\(\/\/\)$/{
283 s//\1/
284 q
285 }
286 /^X\(\/\).*/{
287 s//\1/
288 q
289 }
290 s/.*/./; q'
291 `
292
293 test -d "$dstdir"
294 dstdir_status=$?
295 fi
296 fi
297
298 obsolete_mkdir_used=false
299
300 if test $dstdir_status != 0; then
301 case $posix_mkdir in
302 '')
303 # Create intermediate dirs using mode 755 as modified by the umask.
304 # This is like FreeBSD 'install' as of 1997-10-28.
305 umask=`umask`
306 case $stripcmd.$umask in
307 # Optimize common cases.
308 *[2367][2367]) mkdir_umask=$umask;;
309 .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
310
311 *[0-7])
312 mkdir_umask=`expr $umask + 22 \
313 - $umask % 100 % 40 + $umask % 20 \
314 - $umask % 10 % 4 + $umask % 2
315 `;;
316 *) mkdir_umask=$umask,go-w;;
317 esac
318
319 # With -d, create the new directory with the user-specified mode.
320 # Otherwise, rely on $mkdir_umask.
321 if test -n "$dir_arg"; then
322 mkdir_mode=-m$mode
323 else
324 mkdir_mode=
325 fi
326
327 posix_mkdir=false
328 case $umask in
329 *[123567][0-7][0-7])
330 # POSIX mkdir -p sets u+wx bits regardless of umask, which
331 # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
332 ;;
333 *)
334 tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
335 trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
336
337 if (umask $mkdir_umask &&
338 exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
339 then
340 if test -z "$dir_arg" || {
341 # Check for POSIX incompatibilities with -m.
342 # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
343 # other-writeable bit of parent directory when it shouldn't.
344 # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
345 ls_ld_tmpdir=`ls -ld "$tmpdir"`
346 case $ls_ld_tmpdir in
347 d????-?r-*) different_mode=700;;
348 d????-?--*) different_mode=755;;
349 *) false;;
350 esac &&
351 $mkdirprog -m$different_mode -p -- "$tmpdir" && {
352 ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
353 test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
354 }
355 }
356 then posix_mkdir=:
357 fi
358 rmdir "$tmpdir/d" "$tmpdir"
359 else
360 # Remove any dirs left behind by ancient mkdir implementations.
361 rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
362 fi
363 trap '' 0;;
364 esac;;
365 esac
366
367 if
368 $posix_mkdir && (
369 umask $mkdir_umask &&
370 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
371 )
372 then :
373 else
374
375 # The umask is ridiculous, or mkdir does not conform to POSIX,
376 # or it failed possibly due to a race condition. Create the
377 # directory the slow way, step by step, checking for races as we go.
378
379 case $dstdir in
380 /*) prefix=/ ;;
381 -*) prefix=./ ;;
382 *) prefix= ;;
383 esac
384
385 case $posix_glob in
386 '')
387 if (set -f) 2>/dev/null; then
388 posix_glob=true
389 else
390 posix_glob=false
391 fi ;;
392 esac
393
394 oIFS=$IFS
395 IFS=/
396 $posix_glob && set -f
397 set fnord $dstdir
398 shift
399 $posix_glob && set +f
400 IFS=$oIFS
401
402 prefixes=
403
404 for d
405 do
406 test -z "$d" && continue
407
408 prefix=$prefix$d
409 if test -d "$prefix"; then
410 prefixes=
411 else
412 if $posix_mkdir; then
413 (umask=$mkdir_umask &&
414 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
415 # Don't fail if two instances are running concurrently.
416 test -d "$prefix" || exit 1
417 else
418 case $prefix in
419 *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
420 *) qprefix=$prefix;;
421 esac
422 prefixes="$prefixes '$qprefix'"
423 fi
424 fi
425 prefix=$prefix/
426 done
427
428 if test -n "$prefixes"; then
429 # Don't fail if two instances are running concurrently.
430 (umask $mkdir_umask &&
431 eval "\$doit_exec \$mkdirprog $prefixes") ||
432 test -d "$dstdir" || exit 1
433 obsolete_mkdir_used=true
434 fi
435 fi
436 fi
437
438 if test -n "$dir_arg"; then
439 { test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
440 { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
441 { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
442 test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
443 else
444
445 # Make a couple of temp file names in the proper directory.
446 dsttmp=$dstdir/_inst.$$_
447 rmtmp=$dstdir/_rm.$$_
448
449 # Trap to clean up those temp files at exit.
450 trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
451
452 # Copy the file name to the temp name.
453 (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
454
455 # and set any options; do chmod last to preserve setuid bits.
456 #
457 # If any of these fail, we abort the whole thing. If we want to
458 # ignore errors from any of these, just make sure not to ignore
459 # errors from the above "$doit $cpprog $src $dsttmp" command.
460 #
461 { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } \
462 && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } \
463 && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } \
464 && { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
465
466 # Now rename the file to the real destination.
467 { $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null \
468 || {
469 # The rename failed, perhaps because mv can't rename something else
470 # to itself, or perhaps because mv is so ancient that it does not
471 # support -f.
472
473 # Now remove or move aside any old file at destination location.
474 # We try this two ways since rm can't unlink itself on some
475 # systems and the destination file might be busy for other
476 # reasons. In this case, the final cleanup might fail but the new
477 # file should still install successfully.
478 {
479 if test -f "$dst"; then
480 $doit $rmcmd -f "$dst" 2>/dev/null \
481 || { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null \
482 && { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }; }\
483 || {
484 echo "$0: cannot unlink or rename $dst" >&2
485 (exit 1); exit 1
486 }
487 else
488 :
489 fi
490 } &&
491
492 # Now rename the file to the real destination.
493 $doit $mvcmd "$dsttmp" "$dst"
494 }
495 } || exit 1
496
497 trap '' 0
498 fi
499 done
500
501 # Local variables:
502 # eval: (add-hook 'write-file-hooks 'time-stamp)
503 # time-stamp-start: "scriptversion="
504 # time-stamp-format: "%:y-%02m-%02d.%02H"
505 # time-stamp-end: "$"
506 # End:
1414 * (at your option) any later version. *
1515 * *
1616 ***************************************************************************/
17
18 #ifdef HAVE_CONFIG_H
19 # include "config.h"
20 #endif
1721
1822 #include <stdio.h>
1923 #include <stdlib.h>
0 #! /bin/sh
1 # Common stub for a few missing GNU programs while installing.
2
3 scriptversion=2006-05-10.23
4
5 # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006
6 # Free Software Foundation, Inc.
7 # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
8
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; either version 2, or (at your option)
12 # any later version.
13
14 # This program is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 # GNU General Public License for more details.
18
19 # You should have received a copy of the GNU General Public License
20 # along with this program; if not, write to the Free Software
21 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
22 # 02110-1301, USA.
23
24 # As a special exception to the GNU General Public License, if you
25 # distribute this file as part of a program that contains a
26 # configuration script generated by Autoconf, you may include it under
27 # the same distribution terms that you use for the rest of that program.
28
29 if test $# -eq 0; then
30 echo 1>&2 "Try \`$0 --help' for more information"
31 exit 1
32 fi
33
34 run=:
35 sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
36 sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
37
38 # In the cases where this matters, `missing' is being run in the
39 # srcdir already.
40 if test -f configure.ac; then
41 configure_ac=configure.ac
42 else
43 configure_ac=configure.in
44 fi
45
46 msg="missing on your system"
47
48 case $1 in
49 --run)
50 # Try to run requested program, and just exit if it succeeds.
51 run=
52 shift
53 "$@" && exit 0
54 # Exit code 63 means version mismatch. This often happens
55 # when the user try to use an ancient version of a tool on
56 # a file that requires a minimum version. In this case we
57 # we should proceed has if the program had been absent, or
58 # if --run hadn't been passed.
59 if test $? = 63; then
60 run=:
61 msg="probably too old"
62 fi
63 ;;
64
65 -h|--h|--he|--hel|--help)
66 echo "\
67 $0 [OPTION]... PROGRAM [ARGUMENT]...
68
69 Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
70 error status if there is no known handling for PROGRAM.
71
72 Options:
73 -h, --help display this help and exit
74 -v, --version output version information and exit
75 --run try to run the given command, and emulate it if it fails
76
77 Supported PROGRAM values:
78 aclocal touch file \`aclocal.m4'
79 autoconf touch file \`configure'
80 autoheader touch file \`config.h.in'
81 autom4te touch the output file, or create a stub one
82 automake touch all \`Makefile.in' files
83 bison create \`y.tab.[ch]', if possible, from existing .[ch]
84 flex create \`lex.yy.c', if possible, from existing .c
85 help2man touch the output file
86 lex create \`lex.yy.c', if possible, from existing .c
87 makeinfo touch the output file
88 tar try tar, gnutar, gtar, then tar without non-portable flags
89 yacc create \`y.tab.[ch]', if possible, from existing .[ch]
90
91 Send bug reports to <bug-automake@gnu.org>."
92 exit $?
93 ;;
94
95 -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
96 echo "missing $scriptversion (GNU Automake)"
97 exit $?
98 ;;
99
100 -*)
101 echo 1>&2 "$0: Unknown \`$1' option"
102 echo 1>&2 "Try \`$0 --help' for more information"
103 exit 1
104 ;;
105
106 esac
107
108 # Now exit if we have it, but it failed. Also exit now if we
109 # don't have it and --version was passed (most likely to detect
110 # the program).
111 case $1 in
112 lex|yacc)
113 # Not GNU programs, they don't have --version.
114 ;;
115
116 tar)
117 if test -n "$run"; then
118 echo 1>&2 "ERROR: \`tar' requires --run"
119 exit 1
120 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
121 exit 1
122 fi
123 ;;
124
125 *)
126 if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
127 # We have it, but it failed.
128 exit 1
129 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
130 # Could not run --version or --help. This is probably someone
131 # running `$TOOL --version' or `$TOOL --help' to check whether
132 # $TOOL exists and not knowing $TOOL uses missing.
133 exit 1
134 fi
135 ;;
136 esac
137
138 # If it does not exist, or fails to run (possibly an outdated version),
139 # try to emulate it.
140 case $1 in
141 aclocal*)
142 echo 1>&2 "\
143 WARNING: \`$1' is $msg. You should only need it if
144 you modified \`acinclude.m4' or \`${configure_ac}'. You might want
145 to install the \`Automake' and \`Perl' packages. Grab them from
146 any GNU archive site."
147 touch aclocal.m4
148 ;;
149
150 autoconf)
151 echo 1>&2 "\
152 WARNING: \`$1' is $msg. You should only need it if
153 you modified \`${configure_ac}'. You might want to install the
154 \`Autoconf' and \`GNU m4' packages. Grab them from any GNU
155 archive site."
156 touch configure
157 ;;
158
159 autoheader)
160 echo 1>&2 "\
161 WARNING: \`$1' is $msg. You should only need it if
162 you modified \`acconfig.h' or \`${configure_ac}'. You might want
163 to install the \`Autoconf' and \`GNU m4' packages. Grab them
164 from any GNU archive site."
165 files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
166 test -z "$files" && files="config.h"
167 touch_files=
168 for f in $files; do
169 case $f in
170 *:*) touch_files="$touch_files "`echo "$f" |
171 sed -e 's/^[^:]*://' -e 's/:.*//'`;;
172 *) touch_files="$touch_files $f.in";;
173 esac
174 done
175 touch $touch_files
176 ;;
177
178 automake*)
179 echo 1>&2 "\
180 WARNING: \`$1' is $msg. You should only need it if
181 you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
182 You might want to install the \`Automake' and \`Perl' packages.
183 Grab them from any GNU archive site."
184 find . -type f -name Makefile.am -print |
185 sed 's/\.am$/.in/' |
186 while read f; do touch "$f"; done
187 ;;
188
189 autom4te)
190 echo 1>&2 "\
191 WARNING: \`$1' is needed, but is $msg.
192 You might have modified some files without having the
193 proper tools for further handling them.
194 You can get \`$1' as part of \`Autoconf' from any GNU
195 archive site."
196
197 file=`echo "$*" | sed -n "$sed_output"`
198 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
199 if test -f "$file"; then
200 touch $file
201 else
202 test -z "$file" || exec >$file
203 echo "#! /bin/sh"
204 echo "# Created by GNU Automake missing as a replacement of"
205 echo "# $ $@"
206 echo "exit 0"
207 chmod +x $file
208 exit 1
209 fi
210 ;;
211
212 bison|yacc)
213 echo 1>&2 "\
214 WARNING: \`$1' $msg. You should only need it if
215 you modified a \`.y' file. You may need the \`Bison' package
216 in order for those modifications to take effect. You can get
217 \`Bison' from any GNU archive site."
218 rm -f y.tab.c y.tab.h
219 if test $# -ne 1; then
220 eval LASTARG="\${$#}"
221 case $LASTARG in
222 *.y)
223 SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
224 if test -f "$SRCFILE"; then
225 cp "$SRCFILE" y.tab.c
226 fi
227 SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
228 if test -f "$SRCFILE"; then
229 cp "$SRCFILE" y.tab.h
230 fi
231 ;;
232 esac
233 fi
234 if test ! -f y.tab.h; then
235 echo >y.tab.h
236 fi
237 if test ! -f y.tab.c; then
238 echo 'main() { return 0; }' >y.tab.c
239 fi
240 ;;
241
242 lex|flex)
243 echo 1>&2 "\
244 WARNING: \`$1' is $msg. You should only need it if
245 you modified a \`.l' file. You may need the \`Flex' package
246 in order for those modifications to take effect. You can get
247 \`Flex' from any GNU archive site."
248 rm -f lex.yy.c
249 if test $# -ne 1; then
250 eval LASTARG="\${$#}"
251 case $LASTARG in
252 *.l)
253 SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
254 if test -f "$SRCFILE"; then
255 cp "$SRCFILE" lex.yy.c
256 fi
257 ;;
258 esac
259 fi
260 if test ! -f lex.yy.c; then
261 echo 'main() { return 0; }' >lex.yy.c
262 fi
263 ;;
264
265 help2man)
266 echo 1>&2 "\
267 WARNING: \`$1' is $msg. You should only need it if
268 you modified a dependency of a manual page. You may need the
269 \`Help2man' package in order for those modifications to take
270 effect. You can get \`Help2man' from any GNU archive site."
271
272 file=`echo "$*" | sed -n "$sed_output"`
273 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
274 if test -f "$file"; then
275 touch $file
276 else
277 test -z "$file" || exec >$file
278 echo ".ab help2man is required to generate this page"
279 exit 1
280 fi
281 ;;
282
283 makeinfo)
284 echo 1>&2 "\
285 WARNING: \`$1' is $msg. You should only need it if
286 you modified a \`.texi' or \`.texinfo' file, or any other file
287 indirectly affecting the aspect of the manual. The spurious
288 call might also be the consequence of using a buggy \`make' (AIX,
289 DU, IRIX). You might want to install the \`Texinfo' package or
290 the \`GNU make' package. Grab either from any GNU archive site."
291 # The file to touch is that specified with -o ...
292 file=`echo "$*" | sed -n "$sed_output"`
293 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
294 if test -z "$file"; then
295 # ... or it is the one specified with @setfilename ...
296 infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
297 file=`sed -n '
298 /^@setfilename/{
299 s/.* \([^ ]*\) *$/\1/
300 p
301 q
302 }' $infile`
303 # ... or it is derived from the source name (dir/f.texi becomes f.info)
304 test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
305 fi
306 # If the file does not exist, the user really needs makeinfo;
307 # let's fail without touching anything.
308 test -f $file || exit 1
309 touch $file
310 ;;
311
312 tar)
313 shift
314
315 # We have already tried tar in the generic part.
316 # Look for gnutar/gtar before invocation to avoid ugly error
317 # messages.
318 if (gnutar --version > /dev/null 2>&1); then
319 gnutar "$@" && exit 0
320 fi
321 if (gtar --version > /dev/null 2>&1); then
322 gtar "$@" && exit 0
323 fi
324 firstarg="$1"
325 if shift; then
326 case $firstarg in
327 *o*)
328 firstarg=`echo "$firstarg" | sed s/o//`
329 tar "$firstarg" "$@" && exit 0
330 ;;
331 esac
332 case $firstarg in
333 *h*)
334 firstarg=`echo "$firstarg" | sed s/h//`
335 tar "$firstarg" "$@" && exit 0
336 ;;
337 esac
338 fi
339
340 echo 1>&2 "\
341 WARNING: I can't seem to be able to run \`tar' with the given arguments.
342 You may want to install GNU tar or Free paxutils, or check the
343 command line arguments."
344 exit 1
345 ;;
346
347 *)
348 echo 1>&2 "\
349 WARNING: \`$1' is needed, and is $msg.
350 You might have modified some files without having the
351 proper tools for further handling them. Check the \`README' file,
352 it often tells you about the needed prerequisites for installing
353 this package. You may also peek at any GNU archive site, in case
354 some other package would contain this missing \`$1' program."
355 exit 1
356 ;;
357 esac
358
359 exit 0
360
361 # Local variables:
362 # eval: (add-hook 'write-file-hooks 'time-stamp)
363 # time-stamp-start: "scriptversion="
364 # time-stamp-format: "%:y-%02m-%02d.%02H"
365 # time-stamp-end: "$"
366 # End:
1414 * *
1515 ***************************************************************************/
1616
17 #ifdef HAVE_CONFIG_H
18 # include "config.h"
19 #endif
20
1721 #include <stdio.h>
1822 #include <stdlib.h>
1923 #include <string.h>
2529
2630 #define __PNM2PPA_C__
2731
28 #include "syslog.h"
32 #include "ppa_syslog.h"
2933 #include "global.h"
3034 #include "image.h"
3135 #include "debug.h"
285289 printf
286290 (" The order in which parameters are specified is important:\n");
287291 printf
288 (" the file /etc/pnm2ppa.conf, if it exists, is processed as a configuration\n");
292 (" the file %s, if it exists, is processed as a configuration\n", defaultcfgfile);
289293 printf
290294 (" file before any command-line parameters are processed.\n");
291295 printf
398402 exit (0);
399403 }
400404
401 /* only let gSilent be set to switch off syslog from /etc/pnm2ppa.conf,
405 /* only let gSilent be set to switch off syslog from $SYSCONFDIR/etc/pnm2ppa.conf,
402406 and not from
403407 subsequent readings of config files
404408 */
625629 int i, opt_index;
626630 FILE *in = NULL, *out = NULL, *gf = NULL;
627631 struct stat tmpstat;
628 char c;
632 int c;
629633 BOOLEAN get_Gamma = true;
630634
631635 char gammaFile[MAXPATHLEN];
1919
2020 #ifdef __PNM2PPA_C__
2121
22 static char *defaultcfgfile = "/etc/pnm2ppa.conf";
23 static char *defaultgammafile = "/etc/pnm2ppa.gamma";
22 static char *defaultcfgfile = SYSCONFDIR "/pnm2ppa.conf";
23 static char *defaultgammafile = SYSCONFDIR "/pnm2ppa.gamma";
2424
2525 static ppaPrinter_t printer;
2626
1313 * (at your option) any later version. *
1414 * *
1515 ***************************************************************************/
16
17 #ifdef HAVE_CONFIG_H
18 # include "config.h"
19 #endif
1620
1721 #include <math.h>
1822 #include "pnmtools.h"
1414 * *
1515 ***************************************************************************/
1616
17 #ifdef HAVE_CONFIG_H
18 # include "config.h"
19 #endif
20
1721 #include <stdio.h>
1822 #include <stdlib.h>
1923 #include <string.h>
2125
2226 #define __PPA_C__
2327
24 #include "syslog.h"
28 #include "ppa_syslog.h"
2529 #include "global.h"
2630 #include "ppa.h"
2731 #include "debug.h"
+0
-35
ppa_protocol/Makefile less more
0 #
1 # Makefile for parse_vlink
2 #
3
4 CC=gcc
5
6 CFLAGS=-Wall -pedantic -O2 -g
7
8 default: all
9
10 all: parse_vlink
11
12 clean:
13 rm -f *.o *~ parse_vlink
14
15 parse_vlink: parse_vlink.o
16 $(CC) $(LDFLAGS) $(CFLAGS) -o parse_vlink parse_vlink.o
17
18 parse_vlink.o: parse_vlink.c
19 $(CC) $(CFLAGS) -c parse_vlink.c
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
0 bin_PROGRAMS = \
1 parse_vlink
2
3 parse_vlink_SOURCES = \
4 parse_vlink.c
5
6 EXTRA_DIST = \
7 protocol.html \
8 scp_720.html \
9 scp_820cse.html \
10 sweep_data.html
11
12 MAINTAINERCLEANFILES = \
13 Makefile.in
0 # Makefile.in generated by automake 1.10 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 VPATH = @srcdir@
17 pkgdatadir = $(datadir)/@PACKAGE@
18 pkglibdir = $(libdir)/@PACKAGE@
19 pkgincludedir = $(includedir)/@PACKAGE@
20 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
21 install_sh_DATA = $(install_sh) -c -m 644
22 install_sh_PROGRAM = $(install_sh) -c
23 install_sh_SCRIPT = $(install_sh) -c
24 INSTALL_HEADER = $(INSTALL_DATA)
25 transform = $(program_transform_name)
26 NORMAL_INSTALL = :
27 PRE_INSTALL = :
28 POST_INSTALL = :
29 NORMAL_UNINSTALL = :
30 PRE_UNINSTALL = :
31 POST_UNINSTALL = :
32 build_triplet = @build@
33 host_triplet = @host@
34 bin_PROGRAMS = parse_vlink$(EXEEXT)
35 subdir = ppa_protocol
36 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
39 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
40 $(ACLOCAL_M4)
41 mkinstalldirs = $(install_sh) -d
42 CONFIG_HEADER = $(top_builddir)/config.h
43 CONFIG_CLEAN_FILES =
44 am__installdirs = "$(DESTDIR)$(bindir)"
45 binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
46 PROGRAMS = $(bin_PROGRAMS)
47 am_parse_vlink_OBJECTS = parse_vlink.$(OBJEXT)
48 parse_vlink_OBJECTS = $(am_parse_vlink_OBJECTS)
49 parse_vlink_LDADD = $(LDADD)
50 DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@
51 depcomp = $(SHELL) $(top_srcdir)/depcomp
52 am__depfiles_maybe = depfiles
53 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
54 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
55 CCLD = $(CC)
56 LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
57 SOURCES = $(parse_vlink_SOURCES)
58 DIST_SOURCES = $(parse_vlink_SOURCES)
59 ETAGS = etags
60 CTAGS = ctags
61 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
62 ACLOCAL = @ACLOCAL@
63 AMTAR = @AMTAR@
64 AUTOCONF = @AUTOCONF@
65 AUTOHEADER = @AUTOHEADER@
66 AUTOMAKE = @AUTOMAKE@
67 AWK = @AWK@
68 CC = @CC@
69 CCDEPMODE = @CCDEPMODE@
70 CC_FOR_BUILD = @CC_FOR_BUILD@
71 CFLAGS = @CFLAGS@
72 CPP = @CPP@
73 CPPFLAGS = @CPPFLAGS@
74 CYGPATH_W = @CYGPATH_W@
75 DEFS = @DEFS@
76 DEPDIR = @DEPDIR@
77 ECHO_C = @ECHO_C@
78 ECHO_N = @ECHO_N@
79 ECHO_T = @ECHO_T@
80 EGREP = @EGREP@
81 EXEEXT = @EXEEXT@
82 GREP = @GREP@
83 INSTALL = @INSTALL@
84 INSTALL_DATA = @INSTALL_DATA@
85 INSTALL_PROGRAM = @INSTALL_PROGRAM@
86 INSTALL_SCRIPT = @INSTALL_SCRIPT@
87 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
88 LDFLAGS = @LDFLAGS@
89 LIBOBJS = @LIBOBJS@
90 LIBS = @LIBS@
91 LTLIBOBJS = @LTLIBOBJS@
92 MAINT = @MAINT@
93 MAKEINFO = @MAKEINFO@
94 MKDIR_P = @MKDIR_P@
95 OBJEXT = @OBJEXT@
96 PACKAGE = @PACKAGE@
97 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
98 PACKAGE_NAME = @PACKAGE_NAME@
99 PACKAGE_STRING = @PACKAGE_STRING@
100 PACKAGE_TARNAME = @PACKAGE_TARNAME@
101 PACKAGE_VERSION = @PACKAGE_VERSION@
102 PATH_SEPARATOR = @PATH_SEPARATOR@
103 SET_MAKE = @SET_MAKE@
104 SHELL = @SHELL@
105 STRIP = @STRIP@
106 VERSION = @VERSION@
107 abs_builddir = @abs_builddir@
108 abs_srcdir = @abs_srcdir@
109 abs_top_builddir = @abs_top_builddir@
110 abs_top_srcdir = @abs_top_srcdir@
111 ac_ct_CC = @ac_ct_CC@
112 am__include = @am__include@
113 am__leading_dot = @am__leading_dot@
114 am__quote = @am__quote@
115 am__tar = @am__tar@
116 am__untar = @am__untar@
117 bindir = @bindir@
118 build = @build@
119 build_alias = @build_alias@
120 build_cpu = @build_cpu@
121 build_os = @build_os@
122 build_vendor = @build_vendor@
123 builddir = @builddir@
124 datadir = @datadir@
125 datarootdir = @datarootdir@
126 docdir = @docdir@
127 dvidir = @dvidir@
128 exec_prefix = @exec_prefix@
129 host = @host@
130 host_alias = @host_alias@
131 host_cpu = @host_cpu@
132 host_os = @host_os@
133 host_vendor = @host_vendor@
134 htmldir = @htmldir@
135 includedir = @includedir@
136 infodir = @infodir@
137 install_sh = @install_sh@
138 libdir = @libdir@
139 libexecdir = @libexecdir@
140 localedir = @localedir@
141 localstatedir = @localstatedir@
142 mandir = @mandir@
143 mkdir_p = @mkdir_p@
144 oldincludedir = @oldincludedir@
145 pdfdir = @pdfdir@
146 prefix = @prefix@
147 program_transform_name = @program_transform_name@
148 psdir = @psdir@
149 sbindir = @sbindir@
150 sharedstatedir = @sharedstatedir@
151 srcdir = @srcdir@
152 sysconfdir = @sysconfdir@
153 target_alias = @target_alias@
154 top_build_prefix = @top_build_prefix@
155 top_builddir = @top_builddir@
156 top_srcdir = @top_srcdir@
157 parse_vlink_SOURCES = \
158 parse_vlink.c
159
160 EXTRA_DIST = \
161 protocol.html \
162 scp_720.html \
163 scp_820cse.html \
164 sweep_data.html
165
166 MAINTAINERCLEANFILES = \
167 Makefile.in
168
169 all: all-am
170
171 .SUFFIXES:
172 .SUFFIXES: .c .o .obj
173 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
174 @for dep in $?; do \
175 case '$(am__configure_deps)' in \
176 *$$dep*) \
177 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
178 && exit 0; \
179 exit 1;; \
180 esac; \
181 done; \
182 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign ppa_protocol/Makefile'; \
183 cd $(top_srcdir) && \
184 $(AUTOMAKE) --foreign ppa_protocol/Makefile
185 .PRECIOUS: Makefile
186 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
187 @case '$?' in \
188 *config.status*) \
189 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
190 *) \
191 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
192 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
193 esac;
194
195 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
196 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
197
198 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
199 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
200 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
201 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
202 install-binPROGRAMS: $(bin_PROGRAMS)
203 @$(NORMAL_INSTALL)
204 test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
205 @list='$(bin_PROGRAMS)'; for p in $$list; do \
206 p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
207 if test -f $$p \
208 ; then \
209 f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
210 echo " $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \
211 $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \
212 else :; fi; \
213 done
214
215 uninstall-binPROGRAMS:
216 @$(NORMAL_UNINSTALL)
217 @list='$(bin_PROGRAMS)'; for p in $$list; do \
218 f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
219 echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \
220 rm -f "$(DESTDIR)$(bindir)/$$f"; \
221 done
222
223 clean-binPROGRAMS:
224 -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
225 parse_vlink$(EXEEXT): $(parse_vlink_OBJECTS) $(parse_vlink_DEPENDENCIES)
226 @rm -f parse_vlink$(EXEEXT)
227 $(LINK) $(parse_vlink_OBJECTS) $(parse_vlink_LDADD) $(LIBS)
228
229 mostlyclean-compile:
230 -rm -f *.$(OBJEXT)
231
232 distclean-compile:
233 -rm -f *.tab.c
234
235 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/parse_vlink.Po@am__quote@
236
237 .c.o:
238 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
239 @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
240 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
241 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
242 @am__fastdepCC_FALSE@ $(COMPILE) -c $<
243
244 .c.obj:
245 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
246 @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
247 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
248 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
249 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
250
251 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
252 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
253 unique=`for i in $$list; do \
254 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
255 done | \
256 $(AWK) ' { files[$$0] = 1; } \
257 END { for (i in files) print i; }'`; \
258 mkid -fID $$unique
259 tags: TAGS
260
261 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
262 $(TAGS_FILES) $(LISP)
263 tags=; \
264 here=`pwd`; \
265 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
266 unique=`for i in $$list; do \
267 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
268 done | \
269 $(AWK) ' { files[$$0] = 1; } \
270 END { for (i in files) print i; }'`; \
271 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
272 test -n "$$unique" || unique=$$empty_fix; \
273 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
274 $$tags $$unique; \
275 fi
276 ctags: CTAGS
277 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
278 $(TAGS_FILES) $(LISP)
279 tags=; \
280 here=`pwd`; \
281 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
282 unique=`for i in $$list; do \
283 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
284 done | \
285 $(AWK) ' { files[$$0] = 1; } \
286 END { for (i in files) print i; }'`; \
287 test -z "$(CTAGS_ARGS)$$tags$$unique" \
288 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
289 $$tags $$unique
290
291 GTAGS:
292 here=`$(am__cd) $(top_builddir) && pwd` \
293 && cd $(top_srcdir) \
294 && gtags -i $(GTAGS_ARGS) $$here
295
296 distclean-tags:
297 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
298
299 distdir: $(DISTFILES)
300 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
301 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
302 list='$(DISTFILES)'; \
303 dist_files=`for file in $$list; do echo $$file; done | \
304 sed -e "s|^$$srcdirstrip/||;t" \
305 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
306 case $$dist_files in \
307 */*) $(MKDIR_P) `echo "$$dist_files" | \
308 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
309 sort -u` ;; \
310 esac; \
311 for file in $$dist_files; do \
312 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
313 if test -d $$d/$$file; then \
314 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
315 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
316 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
317 fi; \
318 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
319 else \
320 test -f $(distdir)/$$file \
321 || cp -p $$d/$$file $(distdir)/$$file \
322 || exit 1; \
323 fi; \
324 done
325 check-am: all-am
326 check: check-am
327 all-am: Makefile $(PROGRAMS)
328 installdirs:
329 for dir in "$(DESTDIR)$(bindir)"; do \
330 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
331 done
332 install: install-am
333 install-exec: install-exec-am
334 install-data: install-data-am
335 uninstall: uninstall-am
336
337 install-am: all-am
338 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
339
340 installcheck: installcheck-am
341 install-strip:
342 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
343 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
344 `test -z '$(STRIP)' || \
345 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
346 mostlyclean-generic:
347
348 clean-generic:
349
350 distclean-generic:
351 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
352
353 maintainer-clean-generic:
354 @echo "This command is intended for maintainers to use"
355 @echo "it deletes files that may require special tools to rebuild."
356 -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
357 clean: clean-am
358
359 clean-am: clean-binPROGRAMS clean-generic mostlyclean-am
360
361 distclean: distclean-am
362 -rm -rf ./$(DEPDIR)
363 -rm -f Makefile
364 distclean-am: clean-am distclean-compile distclean-generic \
365 distclean-tags
366
367 dvi: dvi-am
368
369 dvi-am:
370
371 html: html-am
372
373 info: info-am
374
375 info-am:
376
377 install-data-am:
378
379 install-dvi: install-dvi-am
380
381 install-exec-am: install-binPROGRAMS
382
383 install-html: install-html-am
384
385 install-info: install-info-am
386
387 install-man:
388
389 install-pdf: install-pdf-am
390
391 install-ps: install-ps-am
392
393 installcheck-am:
394
395 maintainer-clean: maintainer-clean-am
396 -rm -rf ./$(DEPDIR)
397 -rm -f Makefile
398 maintainer-clean-am: distclean-am maintainer-clean-generic
399
400 mostlyclean: mostlyclean-am
401
402 mostlyclean-am: mostlyclean-compile mostlyclean-generic
403
404 pdf: pdf-am
405
406 pdf-am:
407
408 ps: ps-am
409
410 ps-am:
411
412 uninstall-am: uninstall-binPROGRAMS
413
414 .MAKE: install-am install-strip
415
416 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
417 clean-generic ctags distclean distclean-compile \
418 distclean-generic distclean-tags distdir dvi dvi-am html \
419 html-am info info-am install install-am install-binPROGRAMS \
420 install-data install-data-am install-dvi install-dvi-am \
421 install-exec install-exec-am install-html install-html-am \
422 install-info install-info-am install-man install-pdf \
423 install-pdf-am install-ps install-ps-am install-strip \
424 installcheck installcheck-am installdirs maintainer-clean \
425 maintainer-clean-generic mostlyclean mostlyclean-compile \
426 mostlyclean-generic pdf pdf-am ps ps-am tags uninstall \
427 uninstall-am uninstall-binPROGRAMS
428
429 # Tell versions [3.59,3.63) of GNU make to not export all variables.
430 # Otherwise a system limit (for SysV at least) may be exceeded.
431 .NOEXPORT:
0 /***************************************************************************
1 ppa_syslog.h - prototypes and stuff for syslog.c
2 -------------------
3 begin : Thu Jan 13 2000
4 copyright : (C) 1998-2000 by pnm2ppa project
5 email :
6 ***************************************************************************/
7
8 /***************************************************************************
9 * *
10 * This program is free software; you can redistribute it and/or modify *
11 * it under the terms of the GNU General Public License as published by *
12 * the Free Software Foundation; either version 2 of the License, or *
13 * (at your option) any later version. *
14 * *
15 ***************************************************************************/
16 /*
17 syslog.h
18 modified Duncan Haldane <duncan_haldane@users.sourceforge.net>
19 Oct 2000. all syslog messages are now wrapped.
20 */
21
22 #ifndef _PNM2PPA_SYSLOG_H_
23 #define _PNM2PPA_SYSLOG_H_
24
25
26 #ifdef __NO_SYSLOG__
27 /* (included only for compatibility, if syslog.h is absent): */
28 #define LOG_EMERG 0 /* system is unusable */
29 #define LOG_ALERT 1 /* action must be taken immediately */
30 #define LOG_CRIT 2 /* critical conditions */
31 #define LOG_ERR 3 /* error conditions */
32 #define LOG_WARNING 4 /* warning conditions */
33 #define LOG_NOTICE 5 /* normal but significant condition */
34 #define LOG_INFO 6 /* informational */
35 #define LOG_DEBUG 7 /* debug-level messages */
36
37 #else
38 #include <syslog.h>
39 #endif
40
41 char syslog_message[128];
42 extern size_t message_size ;
43
44 void wrap_syslog( int, char *, char *);
45 void wrap_openlog( char *, int );
46 void wrap_closelog (void);
47
48 #ifdef __PNM2PPA_C__
49 size_t message_size = 128;
50 #endif
51
52
53 #endif
54
55
56
57
58
59
60
61
62
63
64
65
66
0 timestamp for config.h
1313 * (at your option) any later version. *
1414 * *
1515 ***************************************************************************/
16
17 #ifdef HAVE_CONFIG_H
18 # include "config.h"
19 #endif
20
1621 /*Michael Mancini <gwaihir@email.com>
1722 16 Jan 2000
1823 BeOS syslog() wrapper
2227 */
2328
2429 #include <stdio.h>
25 #include "syslog.h"
30 #include "ppa_syslog.h"
2631 #include "global.h"
2732
2833 BOOLEAN verbose = false ;
+0
-67
syslog.h less more
0 /***************************************************************************
1 syslog.h - prototypes and stuff for syslog.c
2 -------------------
3 begin : Thu Jan 13 2000
4 copyright : (C) 1998-2000 by pnm2ppa project
5 email :
6 ***************************************************************************/
7
8 /***************************************************************************
9 * *
10 * This program is free software; you can redistribute it and/or modify *
11 * it under the terms of the GNU General Public License as published by *
12 * the Free Software Foundation; either version 2 of the License, or *
13 * (at your option) any later version. *
14 * *
15 ***************************************************************************/
16 /*
17 syslog.h
18 modified Duncan Haldane <duncan_haldane@users.sourceforge.net>
19 Oct 2000. all syslog messages are now wrapped.
20 */
21
22 #ifndef _PNM2PPA_SYSLOG_H_
23 #define _PNM2PPA_SYSLOG_H_
24
25
26 #ifdef __NO_SYSLOG__
27 /* (included only for compatibility, if syslog.h is absent): */
28 #define LOG_EMERG 0 /* system is unusable */
29 #define LOG_ALERT 1 /* action must be taken immediately */
30 #define LOG_CRIT 2 /* critical conditions */
31 #define LOG_ERR 3 /* error conditions */
32 #define LOG_WARNING 4 /* warning conditions */
33 #define LOG_NOTICE 5 /* normal but significant condition */
34 #define LOG_INFO 6 /* informational */
35 #define LOG_DEBUG 7 /* debug-level messages */
36
37 #else
38 #include <syslog.h>
39 #endif
40
41 char syslog_message[128];
42 extern size_t message_size ;
43
44 void wrap_syslog( int, char *, char *);
45 void wrap_openlog( char *, int );
46 void wrap_closelog (void);
47
48 #ifdef __PNM2PPA_C__
49 size_t message_size = 128;
50 #endif
51
52
53 #endif
54
55
56
57
58
59
60
61
62
63
64
65
66