Mercurial > dwindows
annotate configure @ 97:24cf41bb75ff
Fixed a problem with the ESC key in comboboxes on OS/2.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Fri, 19 Jul 2002 14:17:02 +0000 |
parents | 5e4730c42014 |
children | 7d2108cbcd3e |
rev | line source |
---|---|
3 | 1 #! /bin/sh |
2 # Guess values for system-dependent variables and create Makefiles. | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3 # Generated by Autoconf 2.52. |
3 | 4 # |
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 | |
6 # Free Software Foundation, Inc. | |
7 # This configure script is free software; the Free Software Foundation | |
8 # gives unlimited permission to copy, distribute and modify it. | |
9 | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
10 # Avoid depending upon Character Ranges. |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
11 as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
12 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
13 as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
14 as_cr_digits='0123456789' |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
15 as_cr_alnum=$as_cr_Letters$as_cr_digits |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
16 |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
17 # Sed expression to map a string onto a valid variable name. |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
18 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
19 |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
20 # Sed expression to map a string onto a valid CPP name. |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
21 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
22 |
3 | 23 # Be Bourne compatible |
24 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
25 emulate sh | |
26 NULLCMD=: | |
27 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
28 set -o posix | |
29 fi | |
30 | |
31 # Name of the executable. | |
32 as_me=`echo "$0" |sed 's,.*[\\/],,'` | |
33 | |
34 if expr a : '\(a\)' >/dev/null 2>&1; then | |
35 as_expr=expr | |
36 else | |
37 as_expr=false | |
38 fi | |
39 | |
40 rm -f conf$$ conf$$.exe conf$$.file | |
41 echo >conf$$.file | |
42 if ln -s conf$$.file conf$$ 2>/dev/null; then | |
43 # We could just check for DJGPP; but this test a) works b) is more generic | |
44 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
45 if test -f conf$$.exe; then | |
46 # Don't use ln at all; we don't have any links | |
47 as_ln_s='cp -p' | |
48 else | |
49 as_ln_s='ln -s' | |
50 fi | |
51 elif ln conf$$.file conf$$ 2>/dev/null; then | |
52 as_ln_s=ln | |
53 else | |
54 as_ln_s='cp -p' | |
55 fi | |
56 rm -f conf$$ conf$$.exe conf$$.file | |
57 | |
58 as_executable_p="test -f" | |
59 | |
60 # Support unset when possible. | |
61 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
62 as_unset=unset | |
63 else | |
64 as_unset=false | |
65 fi | |
66 | |
67 # NLS nuisances. | |
68 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } | |
69 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } | |
70 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } | |
71 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } | |
72 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } | |
73 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } | |
74 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } | |
75 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } | |
76 | |
77 # IFS | |
78 # We need space, tab and new line, in precisely that order. | |
79 as_nl=' | |
80 ' | |
81 IFS=" $as_nl" | |
82 | |
83 # CDPATH. | |
84 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } | |
85 | |
86 # Name of the host. | |
87 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
88 # so uname gets run too. | |
89 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
90 | |
91 exec 6>&1 | |
92 | |
93 # | |
94 # Initializations. | |
95 # | |
96 ac_default_prefix=/usr/local | |
97 cross_compiling=no | |
98 subdirs= | |
99 MFLAGS= MAKEFLAGS= | |
100 SHELL=${CONFIG_SHELL-/bin/sh} | |
101 | |
102 # Maximum number of lines to put in a shell here document. | |
103 # This variable seems obsolete. It should probably be removed, and | |
104 # only ac_max_sed_lines should be used. | |
105 : ${ac_max_here_lines=38} | |
106 | |
107 ac_unique_file="winmain.c" | |
108 | |
109 # Initialize some variables set by options. | |
110 ac_init_help= | |
111 ac_init_version=false | |
112 # The variables have the same names as the options, with | |
113 # dashes changed to underlines. | |
114 cache_file=/dev/null | |
115 exec_prefix=NONE | |
116 no_create= | |
117 no_recursion= | |
118 prefix=NONE | |
119 program_prefix=NONE | |
120 program_suffix=NONE | |
121 program_transform_name=s,x,x, | |
122 silent= | |
123 site= | |
124 srcdir= | |
125 verbose= | |
126 x_includes=NONE | |
127 x_libraries=NONE | |
128 | |
129 # Installation directory options. | |
130 # These are left unexpanded so users can "make install exec_prefix=/foo" | |
131 # and all the variables that are supposed to be based on exec_prefix | |
132 # by default will actually change. | |
133 # Use braces instead of parens because sh, perl, etc. also accept them. | |
134 bindir='${exec_prefix}/bin' | |
135 sbindir='${exec_prefix}/sbin' | |
136 libexecdir='${exec_prefix}/libexec' | |
137 datadir='${prefix}/share' | |
138 sysconfdir='${prefix}/etc' | |
139 sharedstatedir='${prefix}/com' | |
140 localstatedir='${prefix}/var' | |
141 libdir='${exec_prefix}/lib' | |
142 includedir='${prefix}/include' | |
143 oldincludedir='/usr/include' | |
144 infodir='${prefix}/info' | |
145 mandir='${prefix}/man' | |
146 | |
147 # Identity of this package. | |
148 PACKAGE_NAME= | |
149 PACKAGE_TARNAME= | |
150 PACKAGE_VERSION= | |
151 PACKAGE_STRING= | |
152 PACKAGE_BUGREPORT= | |
153 | |
154 ac_prev= | |
155 for ac_option | |
156 do | |
157 # If the previous option needs an argument, assign it. | |
158 if test -n "$ac_prev"; then | |
159 eval "$ac_prev=\$ac_option" | |
160 ac_prev= | |
161 continue | |
162 fi | |
163 | |
164 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` | |
165 | |
166 # Accept the important Cygnus configure options, so we can diagnose typos. | |
167 | |
168 case $ac_option in | |
169 | |
170 -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
171 ac_prev=bindir ;; | |
172 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
173 bindir=$ac_optarg ;; | |
174 | |
175 -build | --build | --buil | --bui | --bu) | |
176 ac_prev=build_alias ;; | |
177 -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
178 build_alias=$ac_optarg ;; | |
179 | |
180 -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
181 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
182 ac_prev=cache_file ;; | |
183 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
184 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
185 cache_file=$ac_optarg ;; | |
186 | |
187 --config-cache | -C) | |
188 cache_file=config.cache ;; | |
189 | |
190 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
191 ac_prev=datadir ;; | |
192 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
193 | --da=*) | |
194 datadir=$ac_optarg ;; | |
195 | |
196 -disable-* | --disable-*) | |
197 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
198 # Reject names that are not valid shell variable names. | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
199 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
3 | 200 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
201 { (exit 1); exit 1; }; } | |
202 ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
203 eval "enable_$ac_feature=no" ;; | |
204 | |
205 -enable-* | --enable-*) | |
206 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
207 # Reject names that are not valid shell variable names. | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
208 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
3 | 209 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
210 { (exit 1); exit 1; }; } | |
211 ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
212 case $ac_option in | |
213 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
214 *) ac_optarg=yes ;; | |
215 esac | |
216 eval "enable_$ac_feature='$ac_optarg'" ;; | |
217 | |
218 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
219 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
220 | --exec | --exe | --ex) | |
221 ac_prev=exec_prefix ;; | |
222 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
223 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
224 | --exec=* | --exe=* | --ex=*) | |
225 exec_prefix=$ac_optarg ;; | |
226 | |
227 -gas | --gas | --ga | --g) | |
228 # Obsolete; use --with-gas. | |
229 with_gas=yes ;; | |
230 | |
231 -help | --help | --hel | --he | -h) | |
232 ac_init_help=long ;; | |
233 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
234 ac_init_help=recursive ;; | |
235 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
236 ac_init_help=short ;; | |
237 | |
238 -host | --host | --hos | --ho) | |
239 ac_prev=host_alias ;; | |
240 -host=* | --host=* | --hos=* | --ho=*) | |
241 host_alias=$ac_optarg ;; | |
242 | |
243 -includedir | --includedir | --includedi | --included | --include \ | |
244 | --includ | --inclu | --incl | --inc) | |
245 ac_prev=includedir ;; | |
246 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
247 | --includ=* | --inclu=* | --incl=* | --inc=*) | |
248 includedir=$ac_optarg ;; | |
249 | |
250 -infodir | --infodir | --infodi | --infod | --info | --inf) | |
251 ac_prev=infodir ;; | |
252 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
253 infodir=$ac_optarg ;; | |
254 | |
255 -libdir | --libdir | --libdi | --libd) | |
256 ac_prev=libdir ;; | |
257 -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
258 libdir=$ac_optarg ;; | |
259 | |
260 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
261 | --libexe | --libex | --libe) | |
262 ac_prev=libexecdir ;; | |
263 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
264 | --libexe=* | --libex=* | --libe=*) | |
265 libexecdir=$ac_optarg ;; | |
266 | |
267 -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
268 | --localstate | --localstat | --localsta | --localst \ | |
269 | --locals | --local | --loca | --loc | --lo) | |
270 ac_prev=localstatedir ;; | |
271 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
272 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
273 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
274 localstatedir=$ac_optarg ;; | |
275 | |
276 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
277 ac_prev=mandir ;; | |
278 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
279 mandir=$ac_optarg ;; | |
280 | |
281 -nfp | --nfp | --nf) | |
282 # Obsolete; use --without-fp. | |
283 with_fp=no ;; | |
284 | |
285 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
286 | --no-cr | --no-c) | |
287 no_create=yes ;; | |
288 | |
289 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
290 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
291 no_recursion=yes ;; | |
292 | |
293 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
294 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
295 | --oldin | --oldi | --old | --ol | --o) | |
296 ac_prev=oldincludedir ;; | |
297 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
298 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
299 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
300 oldincludedir=$ac_optarg ;; | |
301 | |
302 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
303 ac_prev=prefix ;; | |
304 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
305 prefix=$ac_optarg ;; | |
306 | |
307 -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
308 | --program-pre | --program-pr | --program-p) | |
309 ac_prev=program_prefix ;; | |
310 -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
311 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
312 program_prefix=$ac_optarg ;; | |
313 | |
314 -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
315 | --program-suf | --program-su | --program-s) | |
316 ac_prev=program_suffix ;; | |
317 -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
318 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
319 program_suffix=$ac_optarg ;; | |
320 | |
321 -program-transform-name | --program-transform-name \ | |
322 | --program-transform-nam | --program-transform-na \ | |
323 | --program-transform-n | --program-transform- \ | |
324 | --program-transform | --program-transfor \ | |
325 | --program-transfo | --program-transf \ | |
326 | --program-trans | --program-tran \ | |
327 | --progr-tra | --program-tr | --program-t) | |
328 ac_prev=program_transform_name ;; | |
329 -program-transform-name=* | --program-transform-name=* \ | |
330 | --program-transform-nam=* | --program-transform-na=* \ | |
331 | --program-transform-n=* | --program-transform-=* \ | |
332 | --program-transform=* | --program-transfor=* \ | |
333 | --program-transfo=* | --program-transf=* \ | |
334 | --program-trans=* | --program-tran=* \ | |
335 | --progr-tra=* | --program-tr=* | --program-t=*) | |
336 program_transform_name=$ac_optarg ;; | |
337 | |
338 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
339 | -silent | --silent | --silen | --sile | --sil) | |
340 silent=yes ;; | |
341 | |
342 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
343 ac_prev=sbindir ;; | |
344 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
345 | --sbi=* | --sb=*) | |
346 sbindir=$ac_optarg ;; | |
347 | |
348 -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
349 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
350 | --sharedst | --shareds | --shared | --share | --shar \ | |
351 | --sha | --sh) | |
352 ac_prev=sharedstatedir ;; | |
353 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
354 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
355 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
356 | --sha=* | --sh=*) | |
357 sharedstatedir=$ac_optarg ;; | |
358 | |
359 -site | --site | --sit) | |
360 ac_prev=site ;; | |
361 -site=* | --site=* | --sit=*) | |
362 site=$ac_optarg ;; | |
363 | |
364 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
365 ac_prev=srcdir ;; | |
366 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
367 srcdir=$ac_optarg ;; | |
368 | |
369 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
370 | --syscon | --sysco | --sysc | --sys | --sy) | |
371 ac_prev=sysconfdir ;; | |
372 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
373 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
374 sysconfdir=$ac_optarg ;; | |
375 | |
376 -target | --target | --targe | --targ | --tar | --ta | --t) | |
377 ac_prev=target_alias ;; | |
378 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
379 target_alias=$ac_optarg ;; | |
380 | |
381 -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
382 verbose=yes ;; | |
383 | |
384 -version | --version | --versio | --versi | --vers | -V) | |
385 ac_init_version=: ;; | |
386 | |
387 -with-* | --with-*) | |
388 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
389 # Reject names that are not valid shell variable names. | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
390 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
3 | 391 { echo "$as_me: error: invalid package name: $ac_package" >&2 |
392 { (exit 1); exit 1; }; } | |
393 ac_package=`echo $ac_package| sed 's/-/_/g'` | |
394 case $ac_option in | |
395 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
396 *) ac_optarg=yes ;; | |
397 esac | |
398 eval "with_$ac_package='$ac_optarg'" ;; | |
399 | |
400 -without-* | --without-*) | |
401 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
402 # Reject names that are not valid shell variable names. | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
403 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
3 | 404 { echo "$as_me: error: invalid package name: $ac_package" >&2 |
405 { (exit 1); exit 1; }; } | |
406 ac_package=`echo $ac_package | sed 's/-/_/g'` | |
407 eval "with_$ac_package=no" ;; | |
408 | |
409 --x) | |
410 # Obsolete; use --with-x. | |
411 with_x=yes ;; | |
412 | |
413 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
414 | --x-incl | --x-inc | --x-in | --x-i) | |
415 ac_prev=x_includes ;; | |
416 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
417 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
418 x_includes=$ac_optarg ;; | |
419 | |
420 -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
421 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
422 ac_prev=x_libraries ;; | |
423 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
424 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
425 x_libraries=$ac_optarg ;; | |
426 | |
427 -*) { echo "$as_me: error: unrecognized option: $ac_option | |
428 Try \`$0 --help' for more information." >&2 | |
429 { (exit 1); exit 1; }; } | |
430 ;; | |
431 | |
432 *=*) | |
433 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
434 # Reject names that are not valid shell variable names. | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
435 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
3 | 436 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
437 { (exit 1); exit 1; }; } | |
438 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
439 eval "$ac_envvar='$ac_optarg'" | |
440 export $ac_envvar ;; | |
441 | |
442 *) | |
443 # FIXME: should be removed in autoconf 3.0. | |
444 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
445 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
3 | 446 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
447 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
448 ;; | |
449 | |
450 esac | |
451 done | |
452 | |
453 if test -n "$ac_prev"; then | |
454 ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
455 { echo "$as_me: error: missing argument to $ac_option" >&2 | |
456 { (exit 1); exit 1; }; } | |
457 fi | |
458 | |
459 # Be sure to have absolute paths. | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
460 for ac_var in exec_prefix prefix |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
461 do |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
462 eval ac_val=$`echo $ac_var` |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
463 case $ac_val in |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
464 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
465 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
466 { (exit 1); exit 1; }; };; |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
467 esac |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
468 done |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
469 |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
470 # Be sure to have absolute paths. |
3 | 471 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
472 localstatedir libdir includedir oldincludedir infodir mandir |
3 | 473 do |
474 eval ac_val=$`echo $ac_var` | |
475 case $ac_val in | |
476 [\\/$]* | ?:[\\/]* ) ;; | |
477 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 | |
478 { (exit 1); exit 1; }; };; | |
479 esac | |
480 done | |
481 | |
482 # There might be people who depend on the old broken behavior: `$host' | |
483 # used to hold the argument of --host etc. | |
484 build=$build_alias | |
485 host=$host_alias | |
486 target=$target_alias | |
487 | |
488 # FIXME: should be removed in autoconf 3.0. | |
489 if test "x$host_alias" != x; then | |
490 if test "x$build_alias" = x; then | |
491 cross_compiling=maybe | |
492 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
493 If a cross compiler is detected then cross compile mode will be used." >&2 | |
494 elif test "x$build_alias" != "x$host_alias"; then | |
495 cross_compiling=yes | |
496 fi | |
497 fi | |
498 | |
499 ac_tool_prefix= | |
500 test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
501 | |
502 test "$silent" = yes && exec 6>/dev/null | |
503 | |
504 # Find the source files, if location was not specified. | |
505 if test -z "$srcdir"; then | |
506 ac_srcdir_defaulted=yes | |
507 # Try the directory containing this script, then its parent. | |
508 ac_prog=$0 | |
509 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'` | |
510 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
511 srcdir=$ac_confdir | |
512 if test ! -r $srcdir/$ac_unique_file; then | |
513 srcdir=.. | |
514 fi | |
515 else | |
516 ac_srcdir_defaulted=no | |
517 fi | |
518 if test ! -r $srcdir/$ac_unique_file; then | |
519 if test "$ac_srcdir_defaulted" = yes; then | |
520 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2 | |
521 { (exit 1); exit 1; }; } | |
522 else | |
523 { echo "$as_me: error: cannot find sources in $srcdir" >&2 | |
524 { (exit 1); exit 1; }; } | |
525 fi | |
526 fi | |
527 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
528 ac_env_build_alias_set=${build_alias+set} | |
529 ac_env_build_alias_value=$build_alias | |
530 ac_cv_env_build_alias_set=${build_alias+set} | |
531 ac_cv_env_build_alias_value=$build_alias | |
532 ac_env_host_alias_set=${host_alias+set} | |
533 ac_env_host_alias_value=$host_alias | |
534 ac_cv_env_host_alias_set=${host_alias+set} | |
535 ac_cv_env_host_alias_value=$host_alias | |
536 ac_env_target_alias_set=${target_alias+set} | |
537 ac_env_target_alias_value=$target_alias | |
538 ac_cv_env_target_alias_set=${target_alias+set} | |
539 ac_cv_env_target_alias_value=$target_alias | |
540 ac_env_CC_set=${CC+set} | |
541 ac_env_CC_value=$CC | |
542 ac_cv_env_CC_set=${CC+set} | |
543 ac_cv_env_CC_value=$CC | |
544 ac_env_CFLAGS_set=${CFLAGS+set} | |
545 ac_env_CFLAGS_value=$CFLAGS | |
546 ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
547 ac_cv_env_CFLAGS_value=$CFLAGS | |
548 ac_env_LDFLAGS_set=${LDFLAGS+set} | |
549 ac_env_LDFLAGS_value=$LDFLAGS | |
550 ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
551 ac_cv_env_LDFLAGS_value=$LDFLAGS | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
552 ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
553 ac_env_CPPFLAGS_value=$CPPFLAGS |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
554 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
555 ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
3 | 556 ac_env_CPP_set=${CPP+set} |
557 ac_env_CPP_value=$CPP | |
558 ac_cv_env_CPP_set=${CPP+set} | |
559 ac_cv_env_CPP_value=$CPP | |
560 | |
561 # | |
562 # Report the --help message. | |
563 # | |
564 if test "$ac_init_help" = "long"; then | |
565 # Omit some internal or obsolete options to make the list less imposing. | |
566 # This message is too long to be a string in the A/UX 3.1 sh. | |
567 cat <<EOF | |
568 \`configure' configures this package to adapt to many kinds of systems. | |
569 | |
570 Usage: $0 [OPTION]... [VAR=VALUE]... | |
571 | |
572 To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
573 VAR=VALUE. See below for descriptions of some of the useful variables. | |
574 | |
575 Defaults for the options are specified in brackets. | |
576 | |
577 Configuration: | |
578 -h, --help display this help and exit | |
579 --help=short display options specific to this package | |
580 --help=recursive display the short help of all the included packages | |
581 -V, --version display version information and exit | |
582 -q, --quiet, --silent do not print \`checking...' messages | |
583 --cache-file=FILE cache test results in FILE [disabled] | |
584 -C, --config-cache alias for \`--cache-file=config.cache' | |
585 -n, --no-create do not create output files | |
586 --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
587 | |
588 EOF | |
589 | |
590 cat <<EOF | |
591 Installation directories: | |
592 --prefix=PREFIX install architecture-independent files in PREFIX | |
593 [$ac_default_prefix] | |
594 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
595 [PREFIX] | |
596 | |
597 By default, \`make install' will install all the files in | |
598 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
599 an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
600 for instance \`--prefix=\$HOME'. | |
601 | |
602 For better control, use the options below. | |
603 | |
604 Fine tuning of the installation directories: | |
605 --bindir=DIR user executables [EPREFIX/bin] | |
606 --sbindir=DIR system admin executables [EPREFIX/sbin] | |
607 --libexecdir=DIR program executables [EPREFIX/libexec] | |
608 --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
609 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
610 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
611 --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
612 --libdir=DIR object code libraries [EPREFIX/lib] | |
613 --includedir=DIR C header files [PREFIX/include] | |
614 --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
615 --infodir=DIR info documentation [PREFIX/info] | |
616 --mandir=DIR man documentation [PREFIX/man] | |
617 EOF | |
618 | |
619 cat <<\EOF | |
620 EOF | |
621 fi | |
622 | |
623 if test -n "$ac_init_help"; then | |
624 | |
625 cat <<\EOF | |
626 | |
627 Optional Features: | |
628 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
629 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
630 --disable-glibtest Do not try to compile and run a test GLIB program | |
631 --disable-gtktest Do not try to compile and run a test GTK program | |
632 --disable-imlibtest Do not try to compile and run a test IMLIB program | |
633 | |
634 Optional Packages: | |
635 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
636 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
637 --with-glib-prefix=PFX Prefix where GLIB is installed (optional) | |
638 --with-glib-exec-prefix=PFX Exec prefix where GLIB is installed (optional) | |
639 --with-gtk-prefix=PFX Prefix where GTK is installed (optional) | |
640 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) | |
641 --with-imlib-prefix=PFX Prefix where IMLIB is installed (optional) | |
642 --with-imlib-exec-prefix=PFX Exec prefix where IMLIB is installed (optional) | |
643 | |
644 Some influential environment variables: | |
645 CC C compiler command | |
646 CFLAGS C compiler flags | |
647 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
648 nonstandard directory <lib dir> | |
649 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
650 headers in a nonstandard directory <include dir> | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
651 CPP C preprocessor |
3 | 652 |
653 Use these variables to override the choices made by `configure' or to help | |
654 it to find libraries and programs with nonstandard names/locations. | |
655 | |
656 EOF | |
657 fi | |
658 | |
659 if test "$ac_init_help" = "recursive"; then | |
660 # If there are subdirs, report their specific --help. | |
661 ac_popdir=`pwd` | |
662 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue | |
663 cd $ac_subdir | |
664 # A "../" for each directory in /$ac_subdir. | |
665 ac_dots=`echo $ac_subdir | | |
666 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` | |
667 | |
668 case $srcdir in | |
669 .) # No --srcdir option. We are building in place. | |
670 ac_sub_srcdir=$srcdir ;; | |
671 [\\/]* | ?:[\\/]* ) # Absolute path. | |
672 ac_sub_srcdir=$srcdir/$ac_subdir ;; | |
673 *) # Relative path. | |
674 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;; | |
675 esac | |
676 | |
677 # Check for guested configure; otherwise get Cygnus style configure. | |
678 if test -f $ac_sub_srcdir/configure.gnu; then | |
679 echo | |
680 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive | |
681 elif test -f $ac_sub_srcdir/configure; then | |
682 echo | |
683 $SHELL $ac_sub_srcdir/configure --help=recursive | |
684 elif test -f $ac_sub_srcdir/configure.ac || | |
685 test -f $ac_sub_srcdir/configure.in; then | |
686 echo | |
687 $ac_configure --help | |
688 else | |
689 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2 | |
690 fi | |
691 cd $ac_popdir | |
692 done | |
693 fi | |
694 | |
695 test -n "$ac_init_help" && exit 0 | |
696 if $ac_init_version; then | |
697 cat <<\EOF | |
698 | |
699 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 | |
700 Free Software Foundation, Inc. | |
701 This configure script is free software; the Free Software Foundation | |
702 gives unlimited permission to copy, distribute and modify it. | |
703 EOF | |
704 exit 0 | |
705 fi | |
706 exec 5>config.log | |
707 cat >&5 <<EOF | |
708 This file contains any messages produced by compilers while | |
709 running configure, to aid debugging if configure makes a mistake. | |
710 | |
711 It was created by $as_me, which was | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
712 generated by GNU Autoconf 2.52. Invocation command line was |
3 | 713 |
714 $ $0 $@ | |
715 | |
716 EOF | |
717 { | |
718 cat <<_ASUNAME | |
719 ## ---------- ## | |
720 ## Platform. ## | |
721 ## ---------- ## | |
722 | |
723 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
724 uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
725 uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
726 uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
727 uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
728 | |
729 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
730 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
731 | |
732 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
733 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
734 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
735 hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
736 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
737 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
738 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
739 | |
740 PATH = $PATH | |
741 | |
742 _ASUNAME | |
743 } >&5 | |
744 | |
745 cat >&5 <<EOF | |
746 ## ------------ ## | |
747 ## Core tests. ## | |
748 ## ------------ ## | |
749 | |
750 EOF | |
751 | |
752 # Keep a trace of the command line. | |
753 # Strip out --no-create and --no-recursion so they do not pile up. | |
754 # Also quote any args containing shell meta-characters. | |
755 ac_configure_args= | |
756 ac_sep= | |
757 for ac_arg | |
758 do | |
759 case $ac_arg in | |
760 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
761 | --no-cr | --no-c) ;; | |
762 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
763 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
764 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
765 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` | |
766 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
767 ac_sep=" " ;; | |
768 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" | |
769 ac_sep=" " ;; | |
770 esac | |
771 # Get rid of the leading space. | |
772 done | |
773 | |
774 # When interrupted or exit'd, cleanup temporary files, and complete | |
775 # config.log. We remove comments because anyway the quotes in there | |
776 # would cause problems or look ugly. | |
777 trap 'exit_status=$? | |
778 # Save into config.log some information that might help in debugging. | |
779 echo >&5 | |
780 echo "## ----------------- ##" >&5 | |
781 echo "## Cache variables. ##" >&5 | |
782 echo "## ----------------- ##" >&5 | |
783 echo >&5 | |
784 # The following way of writing the cache mishandles newlines in values, | |
785 { | |
786 (set) 2>&1 | | |
787 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
788 *ac_space=\ *) | |
789 sed -n \ | |
790 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
791 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
3 | 792 ;; |
793 *) | |
794 sed -n \ | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
795 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
3 | 796 ;; |
797 esac; | |
798 } >&5 | |
799 sed "/^$/d" confdefs.h >conftest.log | |
800 if test -s conftest.log; then | |
801 echo >&5 | |
802 echo "## ------------ ##" >&5 | |
803 echo "## confdefs.h. ##" >&5 | |
804 echo "## ------------ ##" >&5 | |
805 echo >&5 | |
806 cat conftest.log >&5 | |
807 fi | |
808 (echo; echo) >&5 | |
809 test "$ac_signal" != 0 && | |
810 echo "$as_me: caught signal $ac_signal" >&5 | |
811 echo "$as_me: exit $exit_status" >&5 | |
812 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && | |
813 exit $exit_status | |
814 ' 0 | |
815 for ac_signal in 1 2 13 15; do | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
816 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
3 | 817 done |
818 ac_signal=0 | |
819 | |
820 # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
821 rm -rf conftest* confdefs.h | |
822 # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
823 echo >confdefs.h | |
824 | |
825 # Let the site file select an alternate cache file if it wants to. | |
826 # Prefer explicitly selected file to automatically selected ones. | |
827 if test -z "$CONFIG_SITE"; then | |
828 if test "x$prefix" != xNONE; then | |
829 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
830 else | |
831 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
832 fi | |
833 fi | |
834 for ac_site_file in $CONFIG_SITE; do | |
835 if test -r "$ac_site_file"; then | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
836 { echo "$as_me:836: loading site script $ac_site_file" >&5 |
3 | 837 echo "$as_me: loading site script $ac_site_file" >&6;} |
838 cat "$ac_site_file" >&5 | |
839 . "$ac_site_file" | |
840 fi | |
841 done | |
842 | |
843 if test -r "$cache_file"; then | |
844 # Some versions of bash will fail to source /dev/null (special | |
845 # files actually), so we avoid doing that. | |
846 if test -f "$cache_file"; then | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
847 { echo "$as_me:847: loading cache $cache_file" >&5 |
3 | 848 echo "$as_me: loading cache $cache_file" >&6;} |
849 case $cache_file in | |
850 [\\/]* | ?:[\\/]* ) . $cache_file;; | |
851 *) . ./$cache_file;; | |
852 esac | |
853 fi | |
854 else | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
855 { echo "$as_me:855: creating cache $cache_file" >&5 |
3 | 856 echo "$as_me: creating cache $cache_file" >&6;} |
857 >$cache_file | |
858 fi | |
859 | |
860 # Check that the precious variables saved in the cache have kept the same | |
861 # value. | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
862 ac_cache_corrupted=false |
3 | 863 for ac_var in `(set) 2>&1 | |
864 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
865 eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
866 eval ac_new_set=\$ac_env_${ac_var}_set | |
867 eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
868 eval ac_new_val="\$ac_env_${ac_var}_value" | |
869 case $ac_old_set,$ac_new_set in | |
870 set,) | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
871 { echo "$as_me:871: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
872 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
873 ac_cache_corrupted=: ;; |
3 | 874 ,set) |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
875 { echo "$as_me:875: error: \`$ac_var' was not set in the previous run" >&5 |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
876 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
877 ac_cache_corrupted=: ;; |
3 | 878 ,);; |
879 *) | |
880 if test "x$ac_old_val" != "x$ac_new_val"; then | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
881 { echo "$as_me:881: error: \`$ac_var' has changed since the previous run:" >&5 |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
882 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
883 { echo "$as_me:883: former value: $ac_old_val" >&5 |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
884 echo "$as_me: former value: $ac_old_val" >&2;} |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
885 { echo "$as_me:885: current value: $ac_new_val" >&5 |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
886 echo "$as_me: current value: $ac_new_val" >&2;} |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
887 ac_cache_corrupted=: |
3 | 888 fi;; |
889 esac | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
890 # Pass precious variables to config.status. It doesn't matter if |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
891 # we pass some twice (in addition to the command line arguments). |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
892 if test "$ac_new_set" = set; then |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
893 case $ac_new_val in |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
894 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
895 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
896 ac_configure_args="$ac_configure_args '$ac_arg'" |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
897 ;; |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
898 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val" |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
899 ;; |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
900 esac |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
901 fi |
3 | 902 done |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
903 if $ac_cache_corrupted; then |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
904 { echo "$as_me:904: error: changes in the environment can compromise the build" >&5 |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
905 echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
906 { { echo "$as_me:906: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
907 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
908 { (exit 1); exit 1; }; } |
3 | 909 fi |
910 | |
911 ac_ext=c | |
912 ac_cpp='$CPP $CPPFLAGS' | |
913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
915 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
916 | |
917 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
918 *c*,-n*) ECHO_N= ECHO_C=' | |
919 ' ECHO_T=' ' ;; | |
920 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
921 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
922 esac | |
923 echo "#! $SHELL" >conftest.sh | |
924 echo "exit 0" >>conftest.sh | |
925 chmod +x conftest.sh | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
926 if { (echo "$as_me:926: PATH=\".;.\"; conftest.sh") >&5 |
3 | 927 (PATH=".;."; conftest.sh) 2>&5 |
928 ac_status=$? | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
929 echo "$as_me:929: \$? = $ac_status" >&5 |
3 | 930 (exit $ac_status); }; then |
931 ac_path_separator=';' | |
932 else | |
933 ac_path_separator=: | |
934 fi | |
935 PATH_SEPARATOR="$ac_path_separator" | |
936 rm -f conftest.sh | |
937 | |
938 ac_config_headers="$ac_config_headers config.h" | |
939 | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
940 DW_MAJOR_VERSION=0 |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
941 DW_MINOR_VERSION=5 |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
942 DW_SUB_VERSION=0 |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
943 |
3 | 944 INCLUDES="-I." |
945 | |
946 ac_ext=c | |
947 ac_cpp='$CPP $CPPFLAGS' | |
948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
950 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
951 if test -n "$ac_tool_prefix"; then | |
952 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
953 set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
954 echo "$as_me:954: checking for $ac_word" >&5 |
3 | 955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
956 if test "${ac_cv_prog_CC+set}" = set; then | |
957 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
958 else | |
959 if test -n "$CC"; then | |
960 ac_cv_prog_CC="$CC" # Let the user override the test. | |
961 else | |
962 ac_save_IFS=$IFS; IFS=$ac_path_separator | |
963 ac_dummy="$PATH" | |
964 for ac_dir in $ac_dummy; do | |
965 IFS=$ac_save_IFS | |
966 test -z "$ac_dir" && ac_dir=. | |
967 $as_executable_p "$ac_dir/$ac_word" || continue | |
968 ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
969 echo "$as_me:969: found $ac_dir/$ac_word" >&5 |
3 | 970 break |
971 done | |
972 | |
973 fi | |
974 fi | |
975 CC=$ac_cv_prog_CC | |
976 if test -n "$CC"; then | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
977 echo "$as_me:977: result: $CC" >&5 |
3 | 978 echo "${ECHO_T}$CC" >&6 |
979 else | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
980 echo "$as_me:980: result: no" >&5 |
3 | 981 echo "${ECHO_T}no" >&6 |
982 fi | |
983 | |
984 fi | |
985 if test -z "$ac_cv_prog_CC"; then | |
986 ac_ct_CC=$CC | |
987 # Extract the first word of "gcc", so it can be a program name with args. | |
988 set dummy gcc; ac_word=$2 | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
989 echo "$as_me:989: checking for $ac_word" >&5 |
3 | 990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
991 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
992 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
993 else | |
994 if test -n "$ac_ct_CC"; then | |
995 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
996 else | |
997 ac_save_IFS=$IFS; IFS=$ac_path_separator | |
998 ac_dummy="$PATH" | |
999 for ac_dir in $ac_dummy; do | |
1000 IFS=$ac_save_IFS | |
1001 test -z "$ac_dir" && ac_dir=. | |
1002 $as_executable_p "$ac_dir/$ac_word" || continue | |
1003 ac_cv_prog_ac_ct_CC="gcc" | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1004 echo "$as_me:1004: found $ac_dir/$ac_word" >&5 |
3 | 1005 break |
1006 done | |
1007 | |
1008 fi | |
1009 fi | |
1010 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1011 if test -n "$ac_ct_CC"; then | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1012 echo "$as_me:1012: result: $ac_ct_CC" >&5 |
3 | 1013 echo "${ECHO_T}$ac_ct_CC" >&6 |
1014 else | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1015 echo "$as_me:1015: result: no" >&5 |
3 | 1016 echo "${ECHO_T}no" >&6 |
1017 fi | |
1018 | |
1019 CC=$ac_ct_CC | |
1020 else | |
1021 CC="$ac_cv_prog_CC" | |
1022 fi | |
1023 | |
1024 if test -z "$CC"; then | |
1025 if test -n "$ac_tool_prefix"; then | |
1026 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1027 set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1028 echo "$as_me:1028: checking for $ac_word" >&5 |
3 | 1029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1030 if test "${ac_cv_prog_CC+set}" = set; then | |
1031 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1032 else | |
1033 if test -n "$CC"; then | |
1034 ac_cv_prog_CC="$CC" # Let the user override the test. | |
1035 else | |
1036 ac_save_IFS=$IFS; IFS=$ac_path_separator | |
1037 ac_dummy="$PATH" | |
1038 for ac_dir in $ac_dummy; do | |
1039 IFS=$ac_save_IFS | |
1040 test -z "$ac_dir" && ac_dir=. | |
1041 $as_executable_p "$ac_dir/$ac_word" || continue | |
1042 ac_cv_prog_CC="${ac_tool_prefix}cc" | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1043 echo "$as_me:1043: found $ac_dir/$ac_word" >&5 |
3 | 1044 break |
1045 done | |
1046 | |
1047 fi | |
1048 fi | |
1049 CC=$ac_cv_prog_CC | |
1050 if test -n "$CC"; then | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1051 echo "$as_me:1051: result: $CC" >&5 |
3 | 1052 echo "${ECHO_T}$CC" >&6 |
1053 else | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1054 echo "$as_me:1054: result: no" >&5 |
3 | 1055 echo "${ECHO_T}no" >&6 |
1056 fi | |
1057 | |
1058 fi | |
1059 if test -z "$ac_cv_prog_CC"; then | |
1060 ac_ct_CC=$CC | |
1061 # Extract the first word of "cc", so it can be a program name with args. | |
1062 set dummy cc; ac_word=$2 | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1063 echo "$as_me:1063: checking for $ac_word" >&5 |
3 | 1064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1065 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1066 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1067 else | |
1068 if test -n "$ac_ct_CC"; then | |
1069 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1070 else | |
1071 ac_save_IFS=$IFS; IFS=$ac_path_separator | |
1072 ac_dummy="$PATH" | |
1073 for ac_dir in $ac_dummy; do | |
1074 IFS=$ac_save_IFS | |
1075 test -z "$ac_dir" && ac_dir=. | |
1076 $as_executable_p "$ac_dir/$ac_word" || continue | |
1077 ac_cv_prog_ac_ct_CC="cc" | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1078 echo "$as_me:1078: found $ac_dir/$ac_word" >&5 |
3 | 1079 break |
1080 done | |
1081 | |
1082 fi | |
1083 fi | |
1084 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1085 if test -n "$ac_ct_CC"; then | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1086 echo "$as_me:1086: result: $ac_ct_CC" >&5 |
3 | 1087 echo "${ECHO_T}$ac_ct_CC" >&6 |
1088 else | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1089 echo "$as_me:1089: result: no" >&5 |
3 | 1090 echo "${ECHO_T}no" >&6 |
1091 fi | |
1092 | |
1093 CC=$ac_ct_CC | |
1094 else | |
1095 CC="$ac_cv_prog_CC" | |
1096 fi | |
1097 | |
1098 fi | |
1099 if test -z "$CC"; then | |
1100 # Extract the first word of "cc", so it can be a program name with args. | |
1101 set dummy cc; ac_word=$2 | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1102 echo "$as_me:1102: checking for $ac_word" >&5 |
3 | 1103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1104 if test "${ac_cv_prog_CC+set}" = set; then | |
1105 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1106 else | |
1107 if test -n "$CC"; then | |
1108 ac_cv_prog_CC="$CC" # Let the user override the test. | |
1109 else | |
1110 ac_prog_rejected=no | |
1111 ac_save_IFS=$IFS; IFS=$ac_path_separator | |
1112 ac_dummy="$PATH" | |
1113 for ac_dir in $ac_dummy; do | |
1114 IFS=$ac_save_IFS | |
1115 test -z "$ac_dir" && ac_dir=. | |
1116 $as_executable_p "$ac_dir/$ac_word" || continue | |
1117 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
1118 ac_prog_rejected=yes | |
1119 continue | |
1120 fi | |
1121 ac_cv_prog_CC="cc" | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1122 echo "$as_me:1122: found $ac_dir/$ac_word" >&5 |
3 | 1123 break |
1124 done | |
1125 | |
1126 if test $ac_prog_rejected = yes; then | |
1127 # We found a bogon in the path, so make sure we never use it. | |
1128 set dummy $ac_cv_prog_CC | |
1129 shift | |
1130 if test $# != 0; then | |
1131 # We chose a different compiler from the bogus one. | |
1132 # However, it has the same basename, so the bogon will be chosen | |
1133 # first if we set CC to just the basename; use the full file name. | |
1134 shift | |
1135 set dummy "$ac_dir/$ac_word" ${1+"$@"} | |
1136 shift | |
1137 ac_cv_prog_CC="$@" | |
1138 fi | |
1139 fi | |
1140 fi | |
1141 fi | |
1142 CC=$ac_cv_prog_CC | |
1143 if test -n "$CC"; then | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1144 echo "$as_me:1144: result: $CC" >&5 |
3 | 1145 echo "${ECHO_T}$CC" >&6 |
1146 else | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1147 echo "$as_me:1147: result: no" >&5 |
3 | 1148 echo "${ECHO_T}no" >&6 |
1149 fi | |
1150 | |
1151 fi | |
1152 if test -z "$CC"; then | |
1153 if test -n "$ac_tool_prefix"; then | |
1154 for ac_prog in cl | |
1155 do | |
1156 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1157 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1158 echo "$as_me:1158: checking for $ac_word" >&5 |
3 | 1159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1160 if test "${ac_cv_prog_CC+set}" = set; then | |
1161 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1162 else | |
1163 if test -n "$CC"; then | |
1164 ac_cv_prog_CC="$CC" # Let the user override the test. | |
1165 else | |
1166 ac_save_IFS=$IFS; IFS=$ac_path_separator | |
1167 ac_dummy="$PATH" | |
1168 for ac_dir in $ac_dummy; do | |
1169 IFS=$ac_save_IFS | |
1170 test -z "$ac_dir" && ac_dir=. | |
1171 $as_executable_p "$ac_dir/$ac_word" || continue | |
1172 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1173 echo "$as_me:1173: found $ac_dir/$ac_word" >&5 |
3 | 1174 break |
1175 done | |
1176 | |
1177 fi | |
1178 fi | |
1179 CC=$ac_cv_prog_CC | |
1180 if test -n "$CC"; then | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1181 echo "$as_me:1181: result: $CC" >&5 |
3 | 1182 echo "${ECHO_T}$CC" >&6 |
1183 else | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1184 echo "$as_me:1184: result: no" >&5 |
3 | 1185 echo "${ECHO_T}no" >&6 |
1186 fi | |
1187 | |
1188 test -n "$CC" && break | |
1189 done | |
1190 fi | |
1191 if test -z "$CC"; then | |
1192 ac_ct_CC=$CC | |
1193 for ac_prog in cl | |
1194 do | |
1195 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1196 set dummy $ac_prog; ac_word=$2 | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1197 echo "$as_me:1197: checking for $ac_word" >&5 |
3 | 1198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1199 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1200 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1201 else | |
1202 if test -n "$ac_ct_CC"; then | |
1203 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1204 else | |
1205 ac_save_IFS=$IFS; IFS=$ac_path_separator | |
1206 ac_dummy="$PATH" | |
1207 for ac_dir in $ac_dummy; do | |
1208 IFS=$ac_save_IFS | |
1209 test -z "$ac_dir" && ac_dir=. | |
1210 $as_executable_p "$ac_dir/$ac_word" || continue | |
1211 ac_cv_prog_ac_ct_CC="$ac_prog" | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1212 echo "$as_me:1212: found $ac_dir/$ac_word" >&5 |
3 | 1213 break |
1214 done | |
1215 | |
1216 fi | |
1217 fi | |
1218 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1219 if test -n "$ac_ct_CC"; then | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1220 echo "$as_me:1220: result: $ac_ct_CC" >&5 |
3 | 1221 echo "${ECHO_T}$ac_ct_CC" >&6 |
1222 else | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1223 echo "$as_me:1223: result: no" >&5 |
3 | 1224 echo "${ECHO_T}no" >&6 |
1225 fi | |
1226 | |
1227 test -n "$ac_ct_CC" && break | |
1228 done | |
1229 | |
1230 CC=$ac_ct_CC | |
1231 fi | |
1232 | |
1233 fi | |
1234 | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1235 test -z "$CC" && { { echo "$as_me:1235: error: no acceptable cc found in \$PATH" >&5 |
3 | 1236 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} |
1237 { (exit 1); exit 1; }; } | |
1238 | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1239 # Provide some information about the compiler. |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1240 echo "$as_me:1240:" \ |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1241 "checking for C compiler version" >&5 |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1242 ac_compiler=`set X $ac_compile; echo $2` |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1243 { (eval echo "$as_me:1243: \"$ac_compiler --version </dev/null >&5\"") >&5 |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1244 (eval $ac_compiler --version </dev/null >&5) 2>&5 |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1245 ac_status=$? |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1246 echo "$as_me:1246: \$? = $ac_status" >&5 |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1247 (exit $ac_status); } |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1248 { (eval echo "$as_me:1248: \"$ac_compiler -v </dev/null >&5\"") >&5 |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1249 (eval $ac_compiler -v </dev/null >&5) 2>&5 |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1250 ac_status=$? |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1251 echo "$as_me:1251: \$? = $ac_status" >&5 |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1252 (exit $ac_status); } |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1253 { (eval echo "$as_me:1253: \"$ac_compiler -V </dev/null >&5\"") >&5 |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1254 (eval $ac_compiler -V </dev/null >&5) 2>&5 |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1255 ac_status=$? |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1256 echo "$as_me:1256: \$? = $ac_status" >&5 |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1257 (exit $ac_status); } |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1258 |
3 | 1259 cat >conftest.$ac_ext <<_ACEOF |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1260 #line 1260 "configure" |
3 | 1261 #include "confdefs.h" |
1262 | |
1263 int | |
1264 main () | |
1265 { | |
1266 | |
1267 ; | |
1268 return 0; | |
1269 } | |
1270 _ACEOF | |
1271 ac_clean_files_save=$ac_clean_files | |
1272 ac_clean_files="$ac_clean_files a.out a.exe" | |
1273 # Try to create an executable without -o first, disregard a.out. | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1274 # It will help us diagnose broken compilers, and finding out an intuition |
3 | 1275 # of exeext. |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1276 echo "$as_me:1276: checking for C compiler default output" >&5 |
3 | 1277 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
1278 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1279 if { (eval echo "$as_me:1279: \"$ac_link_default\"") >&5 |
3 | 1280 (eval $ac_link_default) 2>&5 |
1281 ac_status=$? | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1282 echo "$as_me:1282: \$? = $ac_status" >&5 |
3 | 1283 (exit $ac_status); }; then |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1284 # Find the output, starting from the most likely. This scheme is |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1285 # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1286 # resort. |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1287 for ac_file in `ls a.exe conftest.exe 2>/dev/null; |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1288 ls a.out conftest 2>/dev/null; |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1289 ls a.* conftest.* 2>/dev/null`; do |
3 | 1290 case $ac_file in |
1291 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; | |
1292 a.out ) # We found the default executable, but exeext='' is most | |
1293 # certainly right. | |
1294 break;; | |
1295 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1296 # FIXME: I believe we export ac_cv_exeext for Libtool --akim. |
3 | 1297 export ac_cv_exeext |
1298 break;; | |
1299 * ) break;; | |
1300 esac | |
1301 done | |
1302 else | |
1303 echo "$as_me: failed program was:" >&5 | |
1304 cat conftest.$ac_ext >&5 | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1305 { { echo "$as_me:1305: error: C compiler cannot create executables" >&5 |
3 | 1306 echo "$as_me: error: C compiler cannot create executables" >&2;} |
1307 { (exit 77); exit 77; }; } | |
1308 fi | |
1309 | |
1310 ac_exeext=$ac_cv_exeext | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1311 echo "$as_me:1311: result: $ac_file" >&5 |
3 | 1312 echo "${ECHO_T}$ac_file" >&6 |
1313 | |
1314 # Check the compiler produces executables we can run. If not, either | |
1315 # the compiler is broken, or we cross compile. | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1316 echo "$as_me:1316: checking whether the C compiler works" >&5 |
3 | 1317 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
1318 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
1319 # If not cross compiling, check that we can run a simple program. | |
1320 if test "$cross_compiling" != yes; then | |
1321 if { ac_try='./$ac_file' | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1322 { (eval echo "$as_me:1322: \"$ac_try\"") >&5 |
3 | 1323 (eval $ac_try) 2>&5 |
1324 ac_status=$? | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1325 echo "$as_me:1325: \$? = $ac_status" >&5 |
3 | 1326 (exit $ac_status); }; }; then |
1327 cross_compiling=no | |
1328 else | |
1329 if test "$cross_compiling" = maybe; then | |
1330 cross_compiling=yes | |
1331 else | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1332 { { echo "$as_me:1332: error: cannot run C compiled programs. |
3 | 1333 If you meant to cross compile, use \`--host'." >&5 |
1334 echo "$as_me: error: cannot run C compiled programs. | |
1335 If you meant to cross compile, use \`--host'." >&2;} | |
1336 { (exit 1); exit 1; }; } | |
1337 fi | |
1338 fi | |
1339 fi | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1340 echo "$as_me:1340: result: yes" >&5 |
3 | 1341 echo "${ECHO_T}yes" >&6 |
1342 | |
1343 rm -f a.out a.exe conftest$ac_cv_exeext | |
1344 ac_clean_files=$ac_clean_files_save | |
1345 # Check the compiler produces executables we can run. If not, either | |
1346 # the compiler is broken, or we cross compile. | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1347 echo "$as_me:1347: checking whether we are cross compiling" >&5 |
3 | 1348 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1349 echo "$as_me:1349: result: $cross_compiling" >&5 |
3 | 1350 echo "${ECHO_T}$cross_compiling" >&6 |
1351 | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1352 echo "$as_me:1352: checking for executable suffix" >&5 |
3 | 1353 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1354 if { (eval echo "$as_me:1354: \"$ac_link\"") >&5 |
3 | 1355 (eval $ac_link) 2>&5 |
1356 ac_status=$? | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1357 echo "$as_me:1357: \$? = $ac_status" >&5 |
3 | 1358 (exit $ac_status); }; then |
1359 # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
1360 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
1361 # work properly (i.e., refer to `conftest.exe'), while it won't with | |
1362 # `rm'. | |
1363 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do | |
1364 case $ac_file in | |
1365 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; | |
1366 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1367 export ac_cv_exeext | |
1368 break;; | |
1369 * ) break;; | |
1370 esac | |
1371 done | |
1372 else | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1373 { { echo "$as_me:1373: error: cannot compute EXEEXT: cannot compile and link" >&5 |
3 | 1374 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} |
1375 { (exit 1); exit 1; }; } | |
1376 fi | |
1377 | |
1378 rm -f conftest$ac_cv_exeext | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1379 echo "$as_me:1379: result: $ac_cv_exeext" >&5 |
3 | 1380 echo "${ECHO_T}$ac_cv_exeext" >&6 |
1381 | |
1382 rm -f conftest.$ac_ext | |
1383 EXEEXT=$ac_cv_exeext | |
1384 ac_exeext=$EXEEXT | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1385 echo "$as_me:1385: checking for object suffix" >&5 |
3 | 1386 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6 |
1387 if test "${ac_cv_objext+set}" = set; then | |
1388 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1389 else | |
1390 cat >conftest.$ac_ext <<_ACEOF | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1391 #line 1391 "configure" |
3 | 1392 #include "confdefs.h" |
1393 | |
1394 int | |
1395 main () | |
1396 { | |
1397 | |
1398 ; | |
1399 return 0; | |
1400 } | |
1401 _ACEOF | |
1402 rm -f conftest.o conftest.obj | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1403 if { (eval echo "$as_me:1403: \"$ac_compile\"") >&5 |
3 | 1404 (eval $ac_compile) 2>&5 |
1405 ac_status=$? | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1406 echo "$as_me:1406: \$? = $ac_status" >&5 |
3 | 1407 (exit $ac_status); }; then |
1408 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
1409 case $ac_file in | |
1410 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; | |
1411 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
1412 break;; | |
1413 esac | |
1414 done | |
1415 else | |
1416 echo "$as_me: failed program was:" >&5 | |
1417 cat conftest.$ac_ext >&5 | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1418 { { echo "$as_me:1418: error: cannot compute OBJEXT: cannot compile" >&5 |
3 | 1419 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} |
1420 { (exit 1); exit 1; }; } | |
1421 fi | |
1422 | |
1423 rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
1424 fi | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1425 echo "$as_me:1425: result: $ac_cv_objext" >&5 |
3 | 1426 echo "${ECHO_T}$ac_cv_objext" >&6 |
1427 OBJEXT=$ac_cv_objext | |
1428 ac_objext=$OBJEXT | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1429 echo "$as_me:1429: checking whether we are using the GNU C compiler" >&5 |
3 | 1430 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
1431 if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
1432 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1433 else | |
1434 cat >conftest.$ac_ext <<_ACEOF | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1435 #line 1435 "configure" |
3 | 1436 #include "confdefs.h" |
1437 | |
1438 int | |
1439 main () | |
1440 { | |
1441 #ifndef __GNUC__ | |
1442 choke me | |
1443 #endif | |
1444 | |
1445 ; | |
1446 return 0; | |
1447 } | |
1448 _ACEOF | |
1449 rm -f conftest.$ac_objext | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1450 if { (eval echo "$as_me:1450: \"$ac_compile\"") >&5 |
3 | 1451 (eval $ac_compile) 2>&5 |
1452 ac_status=$? | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1453 echo "$as_me:1453: \$? = $ac_status" >&5 |
3 | 1454 (exit $ac_status); } && |
1455 { ac_try='test -s conftest.$ac_objext' | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1456 { (eval echo "$as_me:1456: \"$ac_try\"") >&5 |
3 | 1457 (eval $ac_try) 2>&5 |
1458 ac_status=$? | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1459 echo "$as_me:1459: \$? = $ac_status" >&5 |
3 | 1460 (exit $ac_status); }; }; then |
1461 ac_compiler_gnu=yes | |
1462 else | |
1463 echo "$as_me: failed program was:" >&5 | |
1464 cat conftest.$ac_ext >&5 | |
1465 ac_compiler_gnu=no | |
1466 fi | |
1467 rm -f conftest.$ac_objext conftest.$ac_ext | |
1468 ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
1469 | |
1470 fi | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1471 echo "$as_me:1471: result: $ac_cv_c_compiler_gnu" >&5 |
3 | 1472 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
1473 GCC=`test $ac_compiler_gnu = yes && echo yes` | |
1474 ac_test_CFLAGS=${CFLAGS+set} | |
1475 ac_save_CFLAGS=$CFLAGS | |
1476 CFLAGS="-g" | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1477 echo "$as_me:1477: checking whether $CC accepts -g" >&5 |
3 | 1478 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
1479 if test "${ac_cv_prog_cc_g+set}" = set; then | |
1480 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1481 else | |
1482 cat >conftest.$ac_ext <<_ACEOF | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1483 #line 1483 "configure" |
3 | 1484 #include "confdefs.h" |
1485 | |
1486 int | |
1487 main () | |
1488 { | |
1489 | |
1490 ; | |
1491 return 0; | |
1492 } | |
1493 _ACEOF | |
1494 rm -f conftest.$ac_objext | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1495 if { (eval echo "$as_me:1495: \"$ac_compile\"") >&5 |
3 | 1496 (eval $ac_compile) 2>&5 |
1497 ac_status=$? | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1498 echo "$as_me:1498: \$? = $ac_status" >&5 |
3 | 1499 (exit $ac_status); } && |
1500 { ac_try='test -s conftest.$ac_objext' | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1501 { (eval echo "$as_me:1501: \"$ac_try\"") >&5 |
3 | 1502 (eval $ac_try) 2>&5 |
1503 ac_status=$? | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1504 echo "$as_me:1504: \$? = $ac_status" >&5 |
3 | 1505 (exit $ac_status); }; }; then |
1506 ac_cv_prog_cc_g=yes | |
1507 else | |
1508 echo "$as_me: failed program was:" >&5 | |
1509 cat conftest.$ac_ext >&5 | |
1510 ac_cv_prog_cc_g=no | |
1511 fi | |
1512 rm -f conftest.$ac_objext conftest.$ac_ext | |
1513 fi | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1514 echo "$as_me:1514: result: $ac_cv_prog_cc_g" >&5 |
3 | 1515 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
1516 if test "$ac_test_CFLAGS" = set; then | |
1517 CFLAGS=$ac_save_CFLAGS | |
1518 elif test $ac_cv_prog_cc_g = yes; then | |
1519 if test "$GCC" = yes; then | |
1520 CFLAGS="-g -O2" | |
1521 else | |
1522 CFLAGS="-g" | |
1523 fi | |
1524 else | |
1525 if test "$GCC" = yes; then | |
1526 CFLAGS="-O2" | |
1527 else | |
1528 CFLAGS= | |
1529 fi | |
1530 fi | |
1531 # Some people use a C++ compiler to compile C. Since we use `exit', | |
1532 # in C++ we need to declare it. In case someone uses the same compiler | |
1533 # for both compiling C and C++ we need to have the C++ compiler decide | |
1534 # the declaration of exit, since it's the most demanding environment. | |
1535 cat >conftest.$ac_ext <<_ACEOF | |
1536 #ifndef __cplusplus | |
1537 choke me | |
1538 #endif | |
1539 _ACEOF | |
1540 rm -f conftest.$ac_objext | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1541 if { (eval echo "$as_me:1541: \"$ac_compile\"") >&5 |
3 | 1542 (eval $ac_compile) 2>&5 |
1543 ac_status=$? | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1544 echo "$as_me:1544: \$? = $ac_status" >&5 |
3 | 1545 (exit $ac_status); } && |
1546 { ac_try='test -s conftest.$ac_objext' | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1547 { (eval echo "$as_me:1547: \"$ac_try\"") >&5 |
3 | 1548 (eval $ac_try) 2>&5 |
1549 ac_status=$? | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1550 echo "$as_me:1550: \$? = $ac_status" >&5 |
3 | 1551 (exit $ac_status); }; }; then |
1552 for ac_declaration in \ | |
1553 ''\ | |
1554 '#include <stdlib.h>' \ | |
1555 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
1556 'extern "C" void std::exit (int); using std::exit;' \ | |
1557 'extern "C" void exit (int) throw ();' \ | |
1558 'extern "C" void exit (int);' \ | |
1559 'void exit (int);' | |
1560 do | |
1561 cat >conftest.$ac_ext <<_ACEOF | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1562 #line 1562 "configure" |
3 | 1563 #include "confdefs.h" |
1564 #include <stdlib.h> | |
1565 $ac_declaration | |
1566 int | |
1567 main () | |
1568 { | |
1569 exit (42); | |
1570 ; | |
1571 return 0; | |
1572 } | |
1573 _ACEOF | |
1574 rm -f conftest.$ac_objext | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1575 if { (eval echo "$as_me:1575: \"$ac_compile\"") >&5 |
3 | 1576 (eval $ac_compile) 2>&5 |
1577 ac_status=$? | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1578 echo "$as_me:1578: \$? = $ac_status" >&5 |
3 | 1579 (exit $ac_status); } && |
1580 { ac_try='test -s conftest.$ac_objext' | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1581 { (eval echo "$as_me:1581: \"$ac_try\"") >&5 |
3 | 1582 (eval $ac_try) 2>&5 |
1583 ac_status=$? | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1584 echo "$as_me:1584: \$? = $ac_status" >&5 |
3 | 1585 (exit $ac_status); }; }; then |
1586 : | |
1587 else | |
1588 echo "$as_me: failed program was:" >&5 | |
1589 cat conftest.$ac_ext >&5 | |
1590 continue | |
1591 fi | |
1592 rm -f conftest.$ac_objext conftest.$ac_ext | |
1593 cat >conftest.$ac_ext <<_ACEOF | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1594 #line 1594 "configure" |
3 | 1595 #include "confdefs.h" |
1596 $ac_declaration | |
1597 int | |
1598 main () | |
1599 { | |
1600 exit (42); | |
1601 ; | |
1602 return 0; | |
1603 } | |
1604 _ACEOF | |
1605 rm -f conftest.$ac_objext | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1606 if { (eval echo "$as_me:1606: \"$ac_compile\"") >&5 |
3 | 1607 (eval $ac_compile) 2>&5 |
1608 ac_status=$? | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1609 echo "$as_me:1609: \$? = $ac_status" >&5 |
3 | 1610 (exit $ac_status); } && |
1611 { ac_try='test -s conftest.$ac_objext' | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1612 { (eval echo "$as_me:1612: \"$ac_try\"") >&5 |
3 | 1613 (eval $ac_try) 2>&5 |
1614 ac_status=$? | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1615 echo "$as_me:1615: \$? = $ac_status" >&5 |
3 | 1616 (exit $ac_status); }; }; then |
1617 break | |
1618 else | |
1619 echo "$as_me: failed program was:" >&5 | |
1620 cat conftest.$ac_ext >&5 | |
1621 fi | |
1622 rm -f conftest.$ac_objext conftest.$ac_ext | |
1623 done | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1624 rm -f conftest* |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1625 if test -n "$ac_declaration"; then |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1626 echo '#ifdef __cplusplus' >>confdefs.h |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1627 echo $ac_declaration >>confdefs.h |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1628 echo '#endif' >>confdefs.h |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1629 fi |
3 | 1630 |
1631 else | |
1632 echo "$as_me: failed program was:" >&5 | |
1633 cat conftest.$ac_ext >&5 | |
1634 fi | |
1635 rm -f conftest.$ac_objext conftest.$ac_ext | |
1636 ac_ext=c | |
1637 ac_cpp='$CPP $CPPFLAGS' | |
1638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1640 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1641 | |
1642 # Extract the first word of "gmake", so it can be a program name with args. | |
1643 set dummy gmake; ac_word=$2 | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1644 echo "$as_me:1644: checking for $ac_word" >&5 |
3 | 1645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1646 if test "${ac_cv_prog_MAKE+set}" = set; then | |
1647 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1648 else | |
1649 if test -n "$MAKE"; then | |
1650 ac_cv_prog_MAKE="$MAKE" # Let the user override the test. | |
1651 else | |
1652 ac_save_IFS=$IFS; IFS=$ac_path_separator | |
1653 ac_dummy="$PATH" | |
1654 for ac_dir in $ac_dummy; do | |
1655 IFS=$ac_save_IFS | |
1656 test -z "$ac_dir" && ac_dir=. | |
1657 $as_executable_p "$ac_dir/$ac_word" || continue | |
1658 ac_cv_prog_MAKE="gmake" | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1659 echo "$as_me:1659: found $ac_dir/$ac_word" >&5 |
3 | 1660 break |
1661 done | |
1662 | |
1663 fi | |
1664 fi | |
1665 MAKE=$ac_cv_prog_MAKE | |
1666 if test -n "$MAKE"; then | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1667 echo "$as_me:1667: result: $MAKE" >&5 |
3 | 1668 echo "${ECHO_T}$MAKE" >&6 |
1669 else | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1670 echo "$as_me:1670: result: no" >&5 |
3 | 1671 echo "${ECHO_T}no" >&6 |
1672 fi | |
1673 | |
1674 if test x"$MAKE" = x; then | |
1675 # Extract the first word of "make", so it can be a program name with args. | |
1676 set dummy make; ac_word=$2 | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1677 echo "$as_me:1677: checking for $ac_word" >&5 |
3 | 1678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1679 if test "${ac_cv_prog_MAKE+set}" = set; then | |
1680 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1681 else | |
1682 if test -n "$MAKE"; then | |
1683 ac_cv_prog_MAKE="$MAKE" # Let the user override the test. | |
1684 else | |
1685 ac_save_IFS=$IFS; IFS=$ac_path_separator | |
1686 ac_dummy="$PATH" | |
1687 for ac_dir in $ac_dummy; do | |
1688 IFS=$ac_save_IFS | |
1689 test -z "$ac_dir" && ac_dir=. | |
1690 $as_executable_p "$ac_dir/$ac_word" || continue | |
1691 ac_cv_prog_MAKE="make" | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1692 echo "$as_me:1692: found $ac_dir/$ac_word" >&5 |
3 | 1693 break |
1694 done | |
1695 | |
1696 fi | |
1697 fi | |
1698 MAKE=$ac_cv_prog_MAKE | |
1699 if test -n "$MAKE"; then | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1700 echo "$as_me:1700: result: $MAKE" >&5 |
3 | 1701 echo "${ECHO_T}$MAKE" >&6 |
1702 else | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1703 echo "$as_me:1703: result: no" >&5 |
3 | 1704 echo "${ECHO_T}no" >&6 |
1705 fi | |
1706 | |
1707 fi | |
1708 | |
1709 ac_aux_dir= | |
1710 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1711 if test -f $ac_dir/install-sh; then | |
1712 ac_aux_dir=$ac_dir | |
1713 ac_install_sh="$ac_aux_dir/install-sh -c" | |
1714 break | |
1715 elif test -f $ac_dir/install.sh; then | |
1716 ac_aux_dir=$ac_dir | |
1717 ac_install_sh="$ac_aux_dir/install.sh -c" | |
1718 break | |
1719 elif test -f $ac_dir/shtool; then | |
1720 ac_aux_dir=$ac_dir | |
1721 ac_install_sh="$ac_aux_dir/shtool install -c" | |
1722 break | |
1723 fi | |
1724 done | |
1725 if test -z "$ac_aux_dir"; then | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1726 { { echo "$as_me:1726: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
3 | 1727 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
1728 { (exit 1); exit 1; }; } | |
1729 fi | |
1730 ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1731 ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1732 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1733 | |
1734 # Find a good install program. We prefer a C program (faster), | |
1735 # so one script is as good as another. But avoid the broken or | |
1736 # incompatible versions: | |
1737 # SysV /etc/install, /usr/sbin/install | |
1738 # SunOS /usr/etc/install | |
1739 # IRIX /sbin/install | |
1740 # AIX /bin/install | |
1741 # AmigaOS /C/install, which installs bootblocks on floppy discs | |
1742 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
1743 # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1744 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1745 # ./install, which can be erroneously created by make from ./install.sh. | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1746 echo "$as_me:1746: checking for a BSD compatible install" >&5 |
3 | 1747 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 |
1748 if test -z "$INSTALL"; then | |
1749 if test "${ac_cv_path_install+set}" = set; then | |
1750 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1751 else | |
1752 ac_save_IFS=$IFS; IFS=$ac_path_separator | |
1753 for ac_dir in $PATH; do | |
1754 IFS=$ac_save_IFS | |
1755 # Account for people who put trailing slashes in PATH elements. | |
1756 case $ac_dir/ in | |
1757 / | ./ | .// | /cC/* \ | |
1758 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ | |
1759 | /usr/ucb/* ) ;; | |
1760 *) | |
1761 # OSF1 and SCO ODT 3.0 have their own names for install. | |
1762 # Don't use installbsd from OSF since it installs stuff as root | |
1763 # by default. | |
1764 for ac_prog in ginstall scoinst install; do | |
1765 if $as_executable_p "$ac_dir/$ac_prog"; then | |
1766 if test $ac_prog = install && | |
1767 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then | |
1768 # AIX install. It has an incompatible calling convention. | |
1769 : | |
1770 elif test $ac_prog = install && | |
1771 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then | |
1772 # program-specific install script used by HP pwplus--don't use. | |
1773 : | |
1774 else | |
1775 ac_cv_path_install="$ac_dir/$ac_prog -c" | |
1776 break 2 | |
1777 fi | |
1778 fi | |
1779 done | |
1780 ;; | |
1781 esac | |
1782 done | |
1783 | |
1784 fi | |
1785 if test "${ac_cv_path_install+set}" = set; then | |
1786 INSTALL=$ac_cv_path_install | |
1787 else | |
1788 # As a last resort, use the slow shell script. We don't cache a | |
1789 # path for INSTALL within a source directory, because that will | |
1790 # break other packages using the cache if that directory is | |
1791 # removed, or if the path is relative. | |
1792 INSTALL=$ac_install_sh | |
1793 fi | |
1794 fi | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1795 echo "$as_me:1795: result: $INSTALL" >&5 |
3 | 1796 echo "${ECHO_T}$INSTALL" >&6 |
1797 | |
1798 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1799 # It thinks the first close brace ends the variable substitution. | |
1800 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1801 | |
1802 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
1803 | |
1804 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1805 | |
1806 ac_ext=c | |
1807 ac_cpp='$CPP $CPPFLAGS' | |
1808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1810 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1811 echo "$as_me:1811: checking how to run the C preprocessor" >&5 |
3 | 1812 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
1813 # On Suns, sometimes $CPP names a directory. | |
1814 if test -n "$CPP" && test -d "$CPP"; then | |
1815 CPP= | |
1816 fi | |
1817 if test -z "$CPP"; then | |
1818 if test "${ac_cv_prog_CPP+set}" = set; then | |
1819 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1820 else | |
1821 # Double quotes because CPP needs to be expanded | |
1822 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
1823 do | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1824 ac_preproc_ok=false |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1825 for ac_c_preproc_warn_flag in '' yes |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1826 do |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1827 # Use a header file that comes with gcc, so configuring glibc |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1828 # with a fresh cross-compiler works. |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1829 # On the NeXT, cc -E runs the code through the compiler's parser, |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1830 # not just through cpp. "Syntax error" is here to catch this case. |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1831 cat >conftest.$ac_ext <<_ACEOF |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1832 #line 1832 "configure" |
3 | 1833 #include "confdefs.h" |
1834 #include <assert.h> | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1835 Syntax error |
3 | 1836 _ACEOF |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1837 if { (eval echo "$as_me:1837: \"$ac_cpp conftest.$ac_ext\"") >&5 |
3 | 1838 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
1839 ac_status=$? | |
1840 egrep -v '^ *\+' conftest.er1 >conftest.err | |
1841 rm -f conftest.er1 | |
1842 cat conftest.err >&5 | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1843 echo "$as_me:1843: \$? = $ac_status" >&5 |
3 | 1844 (exit $ac_status); } >/dev/null; then |
1845 if test -s conftest.err; then | |
1846 ac_cpp_err=$ac_c_preproc_warn_flag | |
1847 else | |
1848 ac_cpp_err= | |
1849 fi | |
1850 else | |
1851 ac_cpp_err=yes | |
1852 fi | |
1853 if test -z "$ac_cpp_err"; then | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1854 : |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1855 else |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1856 echo "$as_me: failed program was:" >&5 |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1857 cat conftest.$ac_ext >&5 |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1858 # Broken: fails on valid input. |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1859 continue |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1860 fi |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1861 rm -f conftest.err conftest.$ac_ext |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1862 |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1863 # OK, works on sane cases. Now check whether non-existent headers |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1864 # can be detected and how. |
3 | 1865 cat >conftest.$ac_ext <<_ACEOF |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1866 #line 1866 "configure" |
3 | 1867 #include "confdefs.h" |
1868 #include <ac_nonexistent.h> | |
1869 _ACEOF | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1870 if { (eval echo "$as_me:1870: \"$ac_cpp conftest.$ac_ext\"") >&5 |
3 | 1871 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
1872 ac_status=$? | |
1873 egrep -v '^ *\+' conftest.er1 >conftest.err | |
1874 rm -f conftest.er1 | |
1875 cat conftest.err >&5 | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1876 echo "$as_me:1876: \$? = $ac_status" >&5 |
3 | 1877 (exit $ac_status); } >/dev/null; then |
1878 if test -s conftest.err; then | |
1879 ac_cpp_err=$ac_c_preproc_warn_flag | |
1880 else | |
1881 ac_cpp_err= | |
1882 fi | |
1883 else | |
1884 ac_cpp_err=yes | |
1885 fi | |
1886 if test -z "$ac_cpp_err"; then | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1887 # Broken: success on invalid input. |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1888 continue |
3 | 1889 else |
1890 echo "$as_me: failed program was:" >&5 | |
1891 cat conftest.$ac_ext >&5 | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1892 # Passes both tests. |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1893 ac_preproc_ok=: |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1894 break |
3 | 1895 fi |
1896 rm -f conftest.err conftest.$ac_ext | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1897 |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1898 done |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1899 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1900 rm -f conftest.err conftest.$ac_ext |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1901 if $ac_preproc_ok; then |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1902 break |
3 | 1903 fi |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1904 |
3 | 1905 done |
1906 ac_cv_prog_CPP=$CPP | |
1907 | |
1908 fi | |
1909 CPP=$ac_cv_prog_CPP | |
1910 else | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1911 ac_cv_prog_CPP=$CPP |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1912 fi |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1913 echo "$as_me:1913: result: $CPP" >&5 |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1914 echo "${ECHO_T}$CPP" >&6 |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1915 ac_preproc_ok=false |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1916 for ac_c_preproc_warn_flag in '' yes |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1917 do |
3 | 1918 # Use a header file that comes with gcc, so configuring glibc |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1919 # with a fresh cross-compiler works. |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1920 # On the NeXT, cc -E runs the code through the compiler's parser, |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1921 # not just through cpp. "Syntax error" is here to catch this case. |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1922 cat >conftest.$ac_ext <<_ACEOF |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1923 #line 1923 "configure" |
3 | 1924 #include "confdefs.h" |
1925 #include <assert.h> | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1926 Syntax error |
3 | 1927 _ACEOF |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1928 if { (eval echo "$as_me:1928: \"$ac_cpp conftest.$ac_ext\"") >&5 |
3 | 1929 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
1930 ac_status=$? | |
1931 egrep -v '^ *\+' conftest.er1 >conftest.err | |
1932 rm -f conftest.er1 | |
1933 cat conftest.err >&5 | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1934 echo "$as_me:1934: \$? = $ac_status" >&5 |
3 | 1935 (exit $ac_status); } >/dev/null; then |
1936 if test -s conftest.err; then | |
1937 ac_cpp_err=$ac_c_preproc_warn_flag | |
1938 else | |
1939 ac_cpp_err= | |
1940 fi | |
1941 else | |
1942 ac_cpp_err=yes | |
1943 fi | |
1944 if test -z "$ac_cpp_err"; then | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1945 : |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1946 else |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1947 echo "$as_me: failed program was:" >&5 |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1948 cat conftest.$ac_ext >&5 |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1949 # Broken: fails on valid input. |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1950 continue |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1951 fi |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1952 rm -f conftest.err conftest.$ac_ext |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1953 |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1954 # OK, works on sane cases. Now check whether non-existent headers |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1955 # can be detected and how. |
3 | 1956 cat >conftest.$ac_ext <<_ACEOF |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1957 #line 1957 "configure" |
3 | 1958 #include "confdefs.h" |
1959 #include <ac_nonexistent.h> | |
1960 _ACEOF | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1961 if { (eval echo "$as_me:1961: \"$ac_cpp conftest.$ac_ext\"") >&5 |
3 | 1962 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
1963 ac_status=$? | |
1964 egrep -v '^ *\+' conftest.er1 >conftest.err | |
1965 rm -f conftest.er1 | |
1966 cat conftest.err >&5 | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1967 echo "$as_me:1967: \$? = $ac_status" >&5 |
3 | 1968 (exit $ac_status); } >/dev/null; then |
1969 if test -s conftest.err; then | |
1970 ac_cpp_err=$ac_c_preproc_warn_flag | |
1971 else | |
1972 ac_cpp_err= | |
1973 fi | |
1974 else | |
1975 ac_cpp_err=yes | |
1976 fi | |
1977 if test -z "$ac_cpp_err"; then | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1978 # Broken: success on invalid input. |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1979 continue |
3 | 1980 else |
1981 echo "$as_me: failed program was:" >&5 | |
1982 cat conftest.$ac_ext >&5 | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1983 # Passes both tests. |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1984 ac_preproc_ok=: |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1985 break |
3 | 1986 fi |
1987 rm -f conftest.err conftest.$ac_ext | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1988 |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1989 done |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1990 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
3 | 1991 rm -f conftest.err conftest.$ac_ext |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1992 if $ac_preproc_ok; then |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1993 : |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1994 else |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1995 { { echo "$as_me:1995: error: C preprocessor \"$CPP\" fails sanity check" >&5 |
3 | 1996 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} |
1997 { (exit 1); exit 1; }; } | |
1998 fi | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
1999 |
3 | 2000 ac_ext=c |
2001 ac_cpp='$CPP $CPPFLAGS' | |
2002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2004 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2005 | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2006 echo "$as_me:2006: checking for ANSI C header files" >&5 |
3 | 2007 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
2008 if test "${ac_cv_header_stdc+set}" = set; then | |
2009 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2010 else | |
2011 cat >conftest.$ac_ext <<_ACEOF | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2012 #line 2012 "configure" |
3 | 2013 #include "confdefs.h" |
2014 #include <stdlib.h> | |
2015 #include <stdarg.h> | |
2016 #include <string.h> | |
2017 #include <float.h> | |
2018 | |
2019 _ACEOF | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2020 if { (eval echo "$as_me:2020: \"$ac_cpp conftest.$ac_ext\"") >&5 |
3 | 2021 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
2022 ac_status=$? | |
2023 egrep -v '^ *\+' conftest.er1 >conftest.err | |
2024 rm -f conftest.er1 | |
2025 cat conftest.err >&5 | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2026 echo "$as_me:2026: \$? = $ac_status" >&5 |
3 | 2027 (exit $ac_status); } >/dev/null; then |
2028 if test -s conftest.err; then | |
2029 ac_cpp_err=$ac_c_preproc_warn_flag | |
2030 else | |
2031 ac_cpp_err= | |
2032 fi | |
2033 else | |
2034 ac_cpp_err=yes | |
2035 fi | |
2036 if test -z "$ac_cpp_err"; then | |
2037 ac_cv_header_stdc=yes | |
2038 else | |
2039 echo "$as_me: failed program was:" >&5 | |
2040 cat conftest.$ac_ext >&5 | |
2041 ac_cv_header_stdc=no | |
2042 fi | |
2043 rm -f conftest.err conftest.$ac_ext | |
2044 | |
2045 if test $ac_cv_header_stdc = yes; then | |
2046 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
2047 cat >conftest.$ac_ext <<_ACEOF | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2048 #line 2048 "configure" |
3 | 2049 #include "confdefs.h" |
2050 #include <string.h> | |
2051 | |
2052 _ACEOF | |
2053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2054 egrep "memchr" >/dev/null 2>&1; then | |
2055 : | |
2056 else | |
2057 ac_cv_header_stdc=no | |
2058 fi | |
2059 rm -f conftest* | |
2060 | |
2061 fi | |
2062 | |
2063 if test $ac_cv_header_stdc = yes; then | |
2064 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
2065 cat >conftest.$ac_ext <<_ACEOF | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2066 #line 2066 "configure" |
3 | 2067 #include "confdefs.h" |
2068 #include <stdlib.h> | |
2069 | |
2070 _ACEOF | |
2071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2072 egrep "free" >/dev/null 2>&1; then | |
2073 : | |
2074 else | |
2075 ac_cv_header_stdc=no | |
2076 fi | |
2077 rm -f conftest* | |
2078 | |
2079 fi | |
2080 | |
2081 if test $ac_cv_header_stdc = yes; then | |
2082 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
2083 if test "$cross_compiling" = yes; then | |
2084 : | |
2085 else | |
2086 cat >conftest.$ac_ext <<_ACEOF | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2087 #line 2087 "configure" |
3 | 2088 #include "confdefs.h" |
2089 #include <ctype.h> | |
2090 #if ((' ' & 0x0FF) == 0x020) | |
2091 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
2092 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
2093 #else | |
2094 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ | |
2095 || ('j' <= (c) && (c) <= 'r') \ | |
2096 || ('s' <= (c) && (c) <= 'z')) | |
2097 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
2098 #endif | |
2099 | |
2100 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
2101 int | |
2102 main () | |
2103 { | |
2104 int i; | |
2105 for (i = 0; i < 256; i++) | |
2106 if (XOR (islower (i), ISLOWER (i)) | |
2107 || toupper (i) != TOUPPER (i)) | |
2108 exit(2); | |
2109 exit (0); | |
2110 } | |
2111 _ACEOF | |
2112 rm -f conftest$ac_exeext | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2113 if { (eval echo "$as_me:2113: \"$ac_link\"") >&5 |
3 | 2114 (eval $ac_link) 2>&5 |
2115 ac_status=$? | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2116 echo "$as_me:2116: \$? = $ac_status" >&5 |
3 | 2117 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2118 { (eval echo "$as_me:2118: \"$ac_try\"") >&5 |
3 | 2119 (eval $ac_try) 2>&5 |
2120 ac_status=$? | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2121 echo "$as_me:2121: \$? = $ac_status" >&5 |
3 | 2122 (exit $ac_status); }; }; then |
2123 : | |
2124 else | |
2125 echo "$as_me: program exited with status $ac_status" >&5 | |
2126 echo "$as_me: failed program was:" >&5 | |
2127 cat conftest.$ac_ext >&5 | |
2128 ac_cv_header_stdc=no | |
2129 fi | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2130 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
3 | 2131 fi |
2132 fi | |
2133 fi | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2134 echo "$as_me:2134: result: $ac_cv_header_stdc" >&5 |
3 | 2135 echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
2136 if test $ac_cv_header_stdc = yes; then | |
2137 | |
2138 cat >>confdefs.h <<\EOF | |
2139 #define STDC_HEADERS 1 | |
2140 EOF | |
2141 | |
2142 fi | |
2143 | |
2144 ac_header_dirent=no | |
2145 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2146 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2147 echo "$as_me:2147: checking for $ac_hdr that defines DIR" >&5 |
3 | 2148 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2149 if eval "test \"\${$as_ac_Header+set}\" = set"; then |
3 | 2150 echo $ECHO_N "(cached) $ECHO_C" >&6 |
2151 else | |
2152 cat >conftest.$ac_ext <<_ACEOF | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2153 #line 2153 "configure" |
3 | 2154 #include "confdefs.h" |
2155 #include <sys/types.h> | |
2156 #include <$ac_hdr> | |
2157 | |
2158 int | |
2159 main () | |
2160 { | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2161 if ((DIR *) 0) |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2162 return 0; |
3 | 2163 ; |
2164 return 0; | |
2165 } | |
2166 _ACEOF | |
2167 rm -f conftest.$ac_objext | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2168 if { (eval echo "$as_me:2168: \"$ac_compile\"") >&5 |
3 | 2169 (eval $ac_compile) 2>&5 |
2170 ac_status=$? | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2171 echo "$as_me:2171: \$? = $ac_status" >&5 |
3 | 2172 (exit $ac_status); } && |
2173 { ac_try='test -s conftest.$ac_objext' | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2174 { (eval echo "$as_me:2174: \"$ac_try\"") >&5 |
3 | 2175 (eval $ac_try) 2>&5 |
2176 ac_status=$? | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2177 echo "$as_me:2177: \$? = $ac_status" >&5 |
3 | 2178 (exit $ac_status); }; }; then |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2179 eval "$as_ac_Header=yes" |
3 | 2180 else |
2181 echo "$as_me: failed program was:" >&5 | |
2182 cat conftest.$ac_ext >&5 | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2183 eval "$as_ac_Header=no" |
3 | 2184 fi |
2185 rm -f conftest.$ac_objext conftest.$ac_ext | |
2186 fi | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2187 echo "$as_me:2187: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2188 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2189 if test `eval echo '${'$as_ac_Header'}'` = yes; then |
3 | 2190 cat >>confdefs.h <<EOF |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2191 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
3 | 2192 EOF |
2193 | |
2194 ac_header_dirent=$ac_hdr; break | |
2195 fi | |
2196 | |
2197 done | |
2198 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
2199 if test $ac_header_dirent = dirent.h; then | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2200 echo "$as_me:2200: checking for opendir in -ldir" >&5 |
3 | 2201 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6 |
2202 if test "${ac_cv_lib_dir_opendir+set}" = set; then | |
2203 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2204 else | |
2205 ac_check_lib_save_LIBS=$LIBS | |
2206 LIBS="-ldir $LIBS" | |
2207 cat >conftest.$ac_ext <<_ACEOF | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2208 #line 2208 "configure" |
3 | 2209 #include "confdefs.h" |
2210 | |
2211 /* Override any gcc2 internal prototype to avoid an error. */ | |
2212 #ifdef __cplusplus | |
2213 extern "C" | |
2214 #endif | |
2215 /* We use char because int might match the return type of a gcc2 | |
2216 builtin and then its argument prototype would still apply. */ | |
2217 char opendir (); | |
2218 int | |
2219 main () | |
2220 { | |
2221 opendir (); | |
2222 ; | |
2223 return 0; | |
2224 } | |
2225 _ACEOF | |
2226 rm -f conftest.$ac_objext conftest$ac_exeext | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2227 if { (eval echo "$as_me:2227: \"$ac_link\"") >&5 |
3 | 2228 (eval $ac_link) 2>&5 |
2229 ac_status=$? | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2230 echo "$as_me:2230: \$? = $ac_status" >&5 |
3 | 2231 (exit $ac_status); } && |
2232 { ac_try='test -s conftest$ac_exeext' | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2233 { (eval echo "$as_me:2233: \"$ac_try\"") >&5 |
3 | 2234 (eval $ac_try) 2>&5 |
2235 ac_status=$? | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2236 echo "$as_me:2236: \$? = $ac_status" >&5 |
3 | 2237 (exit $ac_status); }; }; then |
2238 ac_cv_lib_dir_opendir=yes | |
2239 else | |
2240 echo "$as_me: failed program was:" >&5 | |
2241 cat conftest.$ac_ext >&5 | |
2242 ac_cv_lib_dir_opendir=no | |
2243 fi | |
2244 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
2245 LIBS=$ac_check_lib_save_LIBS | |
2246 fi | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2247 echo "$as_me:2247: result: $ac_cv_lib_dir_opendir" >&5 |
3 | 2248 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6 |
2249 if test $ac_cv_lib_dir_opendir = yes; then | |
2250 LIBS="$LIBS -ldir" | |
2251 fi | |
2252 | |
2253 else | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2254 echo "$as_me:2254: checking for opendir in -lx" >&5 |
3 | 2255 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6 |
2256 if test "${ac_cv_lib_x_opendir+set}" = set; then | |
2257 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2258 else | |
2259 ac_check_lib_save_LIBS=$LIBS | |
2260 LIBS="-lx $LIBS" | |
2261 cat >conftest.$ac_ext <<_ACEOF | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2262 #line 2262 "configure" |
3 | 2263 #include "confdefs.h" |
2264 | |
2265 /* Override any gcc2 internal prototype to avoid an error. */ | |
2266 #ifdef __cplusplus | |
2267 extern "C" | |
2268 #endif | |
2269 /* We use char because int might match the return type of a gcc2 | |
2270 builtin and then its argument prototype would still apply. */ | |
2271 char opendir (); | |
2272 int | |
2273 main () | |
2274 { | |
2275 opendir (); | |
2276 ; | |
2277 return 0; | |
2278 } | |
2279 _ACEOF | |
2280 rm -f conftest.$ac_objext conftest$ac_exeext | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2281 if { (eval echo "$as_me:2281: \"$ac_link\"") >&5 |
3 | 2282 (eval $ac_link) 2>&5 |
2283 ac_status=$? | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2284 echo "$as_me:2284: \$? = $ac_status" >&5 |
3 | 2285 (exit $ac_status); } && |
2286 { ac_try='test -s conftest$ac_exeext' | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2287 { (eval echo "$as_me:2287: \"$ac_try\"") >&5 |
3 | 2288 (eval $ac_try) 2>&5 |
2289 ac_status=$? | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2290 echo "$as_me:2290: \$? = $ac_status" >&5 |
3 | 2291 (exit $ac_status); }; }; then |
2292 ac_cv_lib_x_opendir=yes | |
2293 else | |
2294 echo "$as_me: failed program was:" >&5 | |
2295 cat conftest.$ac_ext >&5 | |
2296 ac_cv_lib_x_opendir=no | |
2297 fi | |
2298 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
2299 LIBS=$ac_check_lib_save_LIBS | |
2300 fi | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2301 echo "$as_me:2301: result: $ac_cv_lib_x_opendir" >&5 |
3 | 2302 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6 |
2303 if test $ac_cv_lib_x_opendir = yes; then | |
2304 LIBS="$LIBS -lx" | |
2305 fi | |
2306 | |
2307 fi | |
2308 | |
2309 for ac_header in unistd.h | |
2310 do | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2311 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2312 echo "$as_me:2312: checking for $ac_header" >&5 |
3 | 2313 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2314 if eval "test \"\${$as_ac_Header+set}\" = set"; then |
3 | 2315 echo $ECHO_N "(cached) $ECHO_C" >&6 |
2316 else | |
2317 cat >conftest.$ac_ext <<_ACEOF | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2318 #line 2318 "configure" |
3 | 2319 #include "confdefs.h" |
2320 #include <$ac_header> | |
2321 _ACEOF | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2322 if { (eval echo "$as_me:2322: \"$ac_cpp conftest.$ac_ext\"") >&5 |
3 | 2323 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
2324 ac_status=$? | |
2325 egrep -v '^ *\+' conftest.er1 >conftest.err | |
2326 rm -f conftest.er1 | |
2327 cat conftest.err >&5 | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2328 echo "$as_me:2328: \$? = $ac_status" >&5 |
3 | 2329 (exit $ac_status); } >/dev/null; then |
2330 if test -s conftest.err; then | |
2331 ac_cpp_err=$ac_c_preproc_warn_flag | |
2332 else | |
2333 ac_cpp_err= | |
2334 fi | |
2335 else | |
2336 ac_cpp_err=yes | |
2337 fi | |
2338 if test -z "$ac_cpp_err"; then | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2339 eval "$as_ac_Header=yes" |
3 | 2340 else |
2341 echo "$as_me: failed program was:" >&5 | |
2342 cat conftest.$ac_ext >&5 | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2343 eval "$as_ac_Header=no" |
3 | 2344 fi |
2345 rm -f conftest.err conftest.$ac_ext | |
2346 fi | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2347 echo "$as_me:2347: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2348 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2349 if test `eval echo '${'$as_ac_Header'}'` = yes; then |
3 | 2350 cat >>confdefs.h <<EOF |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2351 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
3 | 2352 EOF |
2353 | |
2354 fi | |
2355 done | |
2356 | |
2357 for ac_header in sys/stat.h | |
2358 do | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2359 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2360 echo "$as_me:2360: checking for $ac_header" >&5 |
3 | 2361 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2362 if eval "test \"\${$as_ac_Header+set}\" = set"; then |
3 | 2363 echo $ECHO_N "(cached) $ECHO_C" >&6 |
2364 else | |
2365 cat >conftest.$ac_ext <<_ACEOF | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2366 #line 2366 "configure" |
3 | 2367 #include "confdefs.h" |
2368 #include <$ac_header> | |
2369 _ACEOF | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2370 if { (eval echo "$as_me:2370: \"$ac_cpp conftest.$ac_ext\"") >&5 |
3 | 2371 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
2372 ac_status=$? | |
2373 egrep -v '^ *\+' conftest.er1 >conftest.err | |
2374 rm -f conftest.er1 | |
2375 cat conftest.err >&5 | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2376 echo "$as_me:2376: \$? = $ac_status" >&5 |
3 | 2377 (exit $ac_status); } >/dev/null; then |
2378 if test -s conftest.err; then | |
2379 ac_cpp_err=$ac_c_preproc_warn_flag | |
2380 else | |
2381 ac_cpp_err= | |
2382 fi | |
2383 else | |
2384 ac_cpp_err=yes | |
2385 fi | |
2386 if test -z "$ac_cpp_err"; then | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2387 eval "$as_ac_Header=yes" |
3 | 2388 else |
2389 echo "$as_me: failed program was:" >&5 | |
2390 cat conftest.$ac_ext >&5 | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2391 eval "$as_ac_Header=no" |
3 | 2392 fi |
2393 rm -f conftest.err conftest.$ac_ext | |
2394 fi | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2395 echo "$as_me:2395: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2396 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2397 if test `eval echo '${'$as_ac_Header'}'` = yes; then |
3 | 2398 cat >>confdefs.h <<EOF |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2399 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
3 | 2400 EOF |
2401 | |
2402 fi | |
2403 done | |
2404 | |
2405 for ac_func in pipe | |
2406 do | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2407 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2408 echo "$as_me:2408: checking for $ac_func" >&5 |
3 | 2409 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2410 if eval "test \"\${$as_ac_var+set}\" = set"; then |
3 | 2411 echo $ECHO_N "(cached) $ECHO_C" >&6 |
2412 else | |
2413 cat >conftest.$ac_ext <<_ACEOF | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2414 #line 2414 "configure" |
3 | 2415 #include "confdefs.h" |
2416 /* System header to define __stub macros and hopefully few prototypes, | |
2417 which can conflict with char $ac_func (); below. */ | |
2418 #include <assert.h> | |
2419 /* Override any gcc2 internal prototype to avoid an error. */ | |
2420 #ifdef __cplusplus | |
2421 extern "C" | |
2422 #endif | |
2423 /* We use char because int might match the return type of a gcc2 | |
2424 builtin and then its argument prototype would still apply. */ | |
2425 char $ac_func (); | |
2426 char (*f) (); | |
2427 | |
2428 int | |
2429 main () | |
2430 { | |
2431 /* The GNU C library defines this for functions which it implements | |
2432 to always fail with ENOSYS. Some functions are actually named | |
2433 something starting with __ and the normal name is an alias. */ | |
2434 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
2435 choke me | |
2436 #else | |
2437 f = $ac_func; | |
2438 #endif | |
2439 | |
2440 ; | |
2441 return 0; | |
2442 } | |
2443 _ACEOF | |
2444 rm -f conftest.$ac_objext conftest$ac_exeext | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2445 if { (eval echo "$as_me:2445: \"$ac_link\"") >&5 |
3 | 2446 (eval $ac_link) 2>&5 |
2447 ac_status=$? | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2448 echo "$as_me:2448: \$? = $ac_status" >&5 |
3 | 2449 (exit $ac_status); } && |
2450 { ac_try='test -s conftest$ac_exeext' | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2451 { (eval echo "$as_me:2451: \"$ac_try\"") >&5 |
3 | 2452 (eval $ac_try) 2>&5 |
2453 ac_status=$? | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2454 echo "$as_me:2454: \$? = $ac_status" >&5 |
3 | 2455 (exit $ac_status); }; }; then |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2456 eval "$as_ac_var=yes" |
3 | 2457 else |
2458 echo "$as_me: failed program was:" >&5 | |
2459 cat conftest.$ac_ext >&5 | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2460 eval "$as_ac_var=no" |
3 | 2461 fi |
2462 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
2463 fi | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2464 echo "$as_me:2464: result: `eval echo '${'$as_ac_var'}'`" >&5 |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2465 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2466 if test `eval echo '${'$as_ac_var'}'` = yes; then |
3 | 2467 cat >>confdefs.h <<EOF |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2468 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
3 | 2469 EOF |
2470 | |
2471 cat >>confdefs.h <<\EOF | |
2472 #define HAVE_PIPE 1 | |
2473 EOF | |
2474 | |
2475 fi | |
2476 done | |
2477 | |
2478 for ac_func in connect | |
2479 do | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2480 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2481 echo "$as_me:2481: checking for $ac_func" >&5 |
3 | 2482 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2483 if eval "test \"\${$as_ac_var+set}\" = set"; then |
3 | 2484 echo $ECHO_N "(cached) $ECHO_C" >&6 |
2485 else | |
2486 cat >conftest.$ac_ext <<_ACEOF | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2487 #line 2487 "configure" |
3 | 2488 #include "confdefs.h" |
2489 /* System header to define __stub macros and hopefully few prototypes, | |
2490 which can conflict with char $ac_func (); below. */ | |
2491 #include <assert.h> | |
2492 /* Override any gcc2 internal prototype to avoid an error. */ | |
2493 #ifdef __cplusplus | |
2494 extern "C" | |
2495 #endif | |
2496 /* We use char because int might match the return type of a gcc2 | |
2497 builtin and then its argument prototype would still apply. */ | |
2498 char $ac_func (); | |
2499 char (*f) (); | |
2500 | |
2501 int | |
2502 main () | |
2503 { | |
2504 /* The GNU C library defines this for functions which it implements | |
2505 to always fail with ENOSYS. Some functions are actually named | |
2506 something starting with __ and the normal name is an alias. */ | |
2507 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
2508 choke me | |
2509 #else | |
2510 f = $ac_func; | |
2511 #endif | |
2512 | |
2513 ; | |
2514 return 0; | |
2515 } | |
2516 _ACEOF | |
2517 rm -f conftest.$ac_objext conftest$ac_exeext | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2518 if { (eval echo "$as_me:2518: \"$ac_link\"") >&5 |
3 | 2519 (eval $ac_link) 2>&5 |
2520 ac_status=$? | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2521 echo "$as_me:2521: \$? = $ac_status" >&5 |
3 | 2522 (exit $ac_status); } && |
2523 { ac_try='test -s conftest$ac_exeext' | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2524 { (eval echo "$as_me:2524: \"$ac_try\"") >&5 |
3 | 2525 (eval $ac_try) 2>&5 |
2526 ac_status=$? | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2527 echo "$as_me:2527: \$? = $ac_status" >&5 |
3 | 2528 (exit $ac_status); }; }; then |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2529 eval "$as_ac_var=yes" |
3 | 2530 else |
2531 echo "$as_me: failed program was:" >&5 | |
2532 cat conftest.$ac_ext >&5 | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2533 eval "$as_ac_var=no" |
3 | 2534 fi |
2535 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
2536 fi | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2537 echo "$as_me:2537: result: `eval echo '${'$as_ac_var'}'`" >&5 |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2538 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2539 if test `eval echo '${'$as_ac_var'}'` = yes; then |
3 | 2540 cat >>confdefs.h <<EOF |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2541 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
3 | 2542 EOF |
2543 | |
2544 fi | |
2545 done | |
2546 | |
2547 if test x"$ac_cv_func_connect" = x"no"; then | |
2548 if test -z "$libsocket"; then | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2549 echo "$as_me:2549: checking for socket in -lsocket" >&5 |
3 | 2550 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
2551 if test "${ac_cv_lib_socket_socket+set}" = set; then | |
2552 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2553 else | |
2554 ac_check_lib_save_LIBS=$LIBS | |
2555 LIBS="-lsocket $LIBS" | |
2556 cat >conftest.$ac_ext <<_ACEOF | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2557 #line 2557 "configure" |
3 | 2558 #include "confdefs.h" |
2559 | |
2560 /* Override any gcc2 internal prototype to avoid an error. */ | |
2561 #ifdef __cplusplus | |
2562 extern "C" | |
2563 #endif | |
2564 /* We use char because int might match the return type of a gcc2 | |
2565 builtin and then its argument prototype would still apply. */ | |
2566 char socket (); | |
2567 int | |
2568 main () | |
2569 { | |
2570 socket (); | |
2571 ; | |
2572 return 0; | |
2573 } | |
2574 _ACEOF | |
2575 rm -f conftest.$ac_objext conftest$ac_exeext | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2576 if { (eval echo "$as_me:2576: \"$ac_link\"") >&5 |
3 | 2577 (eval $ac_link) 2>&5 |
2578 ac_status=$? | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2579 echo "$as_me:2579: \$? = $ac_status" >&5 |
3 | 2580 (exit $ac_status); } && |
2581 { ac_try='test -s conftest$ac_exeext' | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2582 { (eval echo "$as_me:2582: \"$ac_try\"") >&5 |
3 | 2583 (eval $ac_try) 2>&5 |
2584 ac_status=$? | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2585 echo "$as_me:2585: \$? = $ac_status" >&5 |
3 | 2586 (exit $ac_status); }; }; then |
2587 ac_cv_lib_socket_socket=yes | |
2588 else | |
2589 echo "$as_me: failed program was:" >&5 | |
2590 cat conftest.$ac_ext >&5 | |
2591 ac_cv_lib_socket_socket=no | |
2592 fi | |
2593 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
2594 LIBS=$ac_check_lib_save_LIBS | |
2595 fi | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2596 echo "$as_me:2596: result: $ac_cv_lib_socket_socket" >&5 |
3 | 2597 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 |
2598 if test $ac_cv_lib_socket_socket = yes; then | |
2599 LIBS="$LIBS -lsocket" | |
2600 fi | |
2601 | |
2602 fi | |
2603 | |
2604 if test -z "$libinet"; then | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2605 echo "$as_me:2605: checking for socket in -linet" >&5 |
3 | 2606 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6 |
2607 if test "${ac_cv_lib_inet_socket+set}" = set; then | |
2608 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2609 else | |
2610 ac_check_lib_save_LIBS=$LIBS | |
2611 LIBS="-linet $LIBS" | |
2612 cat >conftest.$ac_ext <<_ACEOF | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2613 #line 2613 "configure" |
3 | 2614 #include "confdefs.h" |
2615 | |
2616 /* Override any gcc2 internal prototype to avoid an error. */ | |
2617 #ifdef __cplusplus | |
2618 extern "C" | |
2619 #endif | |
2620 /* We use char because int might match the return type of a gcc2 | |
2621 builtin and then its argument prototype would still apply. */ | |
2622 char socket (); | |
2623 int | |
2624 main () | |
2625 { | |
2626 socket (); | |
2627 ; | |
2628 return 0; | |
2629 } | |
2630 _ACEOF | |
2631 rm -f conftest.$ac_objext conftest$ac_exeext | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2632 if { (eval echo "$as_me:2632: \"$ac_link\"") >&5 |
3 | 2633 (eval $ac_link) 2>&5 |
2634 ac_status=$? | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2635 echo "$as_me:2635: \$? = $ac_status" >&5 |
3 | 2636 (exit $ac_status); } && |
2637 { ac_try='test -s conftest$ac_exeext' | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2638 { (eval echo "$as_me:2638: \"$ac_try\"") >&5 |
3 | 2639 (eval $ac_try) 2>&5 |
2640 ac_status=$? | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2641 echo "$as_me:2641: \$? = $ac_status" >&5 |
3 | 2642 (exit $ac_status); }; }; then |
2643 ac_cv_lib_inet_socket=yes | |
2644 else | |
2645 echo "$as_me: failed program was:" >&5 | |
2646 cat conftest.$ac_ext >&5 | |
2647 ac_cv_lib_inet_socket=no | |
2648 fi | |
2649 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
2650 LIBS=$ac_check_lib_save_LIBS | |
2651 fi | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2652 echo "$as_me:2652: result: $ac_cv_lib_inet_socket" >&5 |
3 | 2653 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6 |
2654 if test $ac_cv_lib_inet_socket = yes; then | |
2655 libnsl=1; LIBS="$LIBS -linet -lnsl_s" | |
2656 fi | |
2657 | |
2658 fi | |
2659 | |
2660 if test -z "$libnsl"; then | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2661 echo "$as_me:2661: checking for gethostname in -lnsl" >&5 |
3 | 2662 echo $ECHO_N "checking for gethostname in -lnsl... $ECHO_C" >&6 |
2663 if test "${ac_cv_lib_nsl_gethostname+set}" = set; then | |
2664 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2665 else | |
2666 ac_check_lib_save_LIBS=$LIBS | |
2667 LIBS="-lnsl $LIBS" | |
2668 cat >conftest.$ac_ext <<_ACEOF | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2669 #line 2669 "configure" |
3 | 2670 #include "confdefs.h" |
2671 | |
2672 /* Override any gcc2 internal prototype to avoid an error. */ | |
2673 #ifdef __cplusplus | |
2674 extern "C" | |
2675 #endif | |
2676 /* We use char because int might match the return type of a gcc2 | |
2677 builtin and then its argument prototype would still apply. */ | |
2678 char gethostname (); | |
2679 int | |
2680 main () | |
2681 { | |
2682 gethostname (); | |
2683 ; | |
2684 return 0; | |
2685 } | |
2686 _ACEOF | |
2687 rm -f conftest.$ac_objext conftest$ac_exeext | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2688 if { (eval echo "$as_me:2688: \"$ac_link\"") >&5 |
3 | 2689 (eval $ac_link) 2>&5 |
2690 ac_status=$? | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2691 echo "$as_me:2691: \$? = $ac_status" >&5 |
3 | 2692 (exit $ac_status); } && |
2693 { ac_try='test -s conftest$ac_exeext' | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2694 { (eval echo "$as_me:2694: \"$ac_try\"") >&5 |
3 | 2695 (eval $ac_try) 2>&5 |
2696 ac_status=$? | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2697 echo "$as_me:2697: \$? = $ac_status" >&5 |
3 | 2698 (exit $ac_status); }; }; then |
2699 ac_cv_lib_nsl_gethostname=yes | |
2700 else | |
2701 echo "$as_me: failed program was:" >&5 | |
2702 cat conftest.$ac_ext >&5 | |
2703 ac_cv_lib_nsl_gethostname=no | |
2704 fi | |
2705 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
2706 LIBS=$ac_check_lib_save_LIBS | |
2707 fi | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2708 echo "$as_me:2708: result: $ac_cv_lib_nsl_gethostname" >&5 |
3 | 2709 echo "${ECHO_T}$ac_cv_lib_nsl_gethostname" >&6 |
2710 if test $ac_cv_lib_nsl_gethostname = yes; then | |
2711 LIBS="$LIBS -lnsl" | |
2712 fi | |
2713 | |
2714 fi | |
2715 fi | |
2716 | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2717 echo "$as_me:2717: checking for getpwnam in -lsun" >&5 |
3 | 2718 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6 |
2719 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then | |
2720 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2721 else | |
2722 ac_check_lib_save_LIBS=$LIBS | |
2723 LIBS="-lsun $LIBS" | |
2724 cat >conftest.$ac_ext <<_ACEOF | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2725 #line 2725 "configure" |
3 | 2726 #include "confdefs.h" |
2727 | |
2728 /* Override any gcc2 internal prototype to avoid an error. */ | |
2729 #ifdef __cplusplus | |
2730 extern "C" | |
2731 #endif | |
2732 /* We use char because int might match the return type of a gcc2 | |
2733 builtin and then its argument prototype would still apply. */ | |
2734 char getpwnam (); | |
2735 int | |
2736 main () | |
2737 { | |
2738 getpwnam (); | |
2739 ; | |
2740 return 0; | |
2741 } | |
2742 _ACEOF | |
2743 rm -f conftest.$ac_objext conftest$ac_exeext | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2744 if { (eval echo "$as_me:2744: \"$ac_link\"") >&5 |
3 | 2745 (eval $ac_link) 2>&5 |
2746 ac_status=$? | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2747 echo "$as_me:2747: \$? = $ac_status" >&5 |
3 | 2748 (exit $ac_status); } && |
2749 { ac_try='test -s conftest$ac_exeext' | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2750 { (eval echo "$as_me:2750: \"$ac_try\"") >&5 |
3 | 2751 (eval $ac_try) 2>&5 |
2752 ac_status=$? | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2753 echo "$as_me:2753: \$? = $ac_status" >&5 |
3 | 2754 (exit $ac_status); }; }; then |
2755 ac_cv_lib_sun_getpwnam=yes | |
2756 else | |
2757 echo "$as_me: failed program was:" >&5 | |
2758 cat conftest.$ac_ext >&5 | |
2759 ac_cv_lib_sun_getpwnam=no | |
2760 fi | |
2761 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
2762 LIBS=$ac_check_lib_save_LIBS | |
2763 fi | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2764 echo "$as_me:2764: result: $ac_cv_lib_sun_getpwnam" >&5 |
3 | 2765 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6 |
2766 if test $ac_cv_lib_sun_getpwnam = yes; then | |
2767 LIBS="$LIBS -lsun" | |
2768 fi | |
2769 | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2770 echo "$as_me:2770: checking for inet_addr in -ldgc" >&5 |
3 | 2771 echo $ECHO_N "checking for inet_addr in -ldgc... $ECHO_C" >&6 |
2772 if test "${ac_cv_lib_dgc_inet_addr+set}" = set; then | |
2773 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2774 else | |
2775 ac_check_lib_save_LIBS=$LIBS | |
2776 LIBS="-ldgc $LIBS" | |
2777 cat >conftest.$ac_ext <<_ACEOF | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2778 #line 2778 "configure" |
3 | 2779 #include "confdefs.h" |
2780 | |
2781 /* Override any gcc2 internal prototype to avoid an error. */ | |
2782 #ifdef __cplusplus | |
2783 extern "C" | |
2784 #endif | |
2785 /* We use char because int might match the return type of a gcc2 | |
2786 builtin and then its argument prototype would still apply. */ | |
2787 char inet_addr (); | |
2788 int | |
2789 main () | |
2790 { | |
2791 inet_addr (); | |
2792 ; | |
2793 return 0; | |
2794 } | |
2795 _ACEOF | |
2796 rm -f conftest.$ac_objext conftest$ac_exeext | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2797 if { (eval echo "$as_me:2797: \"$ac_link\"") >&5 |
3 | 2798 (eval $ac_link) 2>&5 |
2799 ac_status=$? | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2800 echo "$as_me:2800: \$? = $ac_status" >&5 |
3 | 2801 (exit $ac_status); } && |
2802 { ac_try='test -s conftest$ac_exeext' | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2803 { (eval echo "$as_me:2803: \"$ac_try\"") >&5 |
3 | 2804 (eval $ac_try) 2>&5 |
2805 ac_status=$? | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2806 echo "$as_me:2806: \$? = $ac_status" >&5 |
3 | 2807 (exit $ac_status); }; }; then |
2808 ac_cv_lib_dgc_inet_addr=yes | |
2809 else | |
2810 echo "$as_me: failed program was:" >&5 | |
2811 cat conftest.$ac_ext >&5 | |
2812 ac_cv_lib_dgc_inet_addr=no | |
2813 fi | |
2814 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
2815 LIBS=$ac_check_lib_save_LIBS | |
2816 fi | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2817 echo "$as_me:2817: result: $ac_cv_lib_dgc_inet_addr" >&5 |
3 | 2818 echo "${ECHO_T}$ac_cv_lib_dgc_inet_addr" >&6 |
2819 if test $ac_cv_lib_dgc_inet_addr = yes; then | |
2820 LIBS="$LIBS -ldgc" | |
2821 fi | |
2822 | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2823 echo "$as_me:2823: checking for gethostbyname in -lresolv" >&5 |
3 | 2824 echo $ECHO_N "checking for gethostbyname in -lresolv... $ECHO_C" >&6 |
2825 if test "${ac_cv_lib_resolv_gethostbyname+set}" = set; then | |
2826 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2827 else | |
2828 ac_check_lib_save_LIBS=$LIBS | |
2829 LIBS="-lresolv $LIBS" | |
2830 cat >conftest.$ac_ext <<_ACEOF | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2831 #line 2831 "configure" |
3 | 2832 #include "confdefs.h" |
2833 | |
2834 /* Override any gcc2 internal prototype to avoid an error. */ | |
2835 #ifdef __cplusplus | |
2836 extern "C" | |
2837 #endif | |
2838 /* We use char because int might match the return type of a gcc2 | |
2839 builtin and then its argument prototype would still apply. */ | |
2840 char gethostbyname (); | |
2841 int | |
2842 main () | |
2843 { | |
2844 gethostbyname (); | |
2845 ; | |
2846 return 0; | |
2847 } | |
2848 _ACEOF | |
2849 rm -f conftest.$ac_objext conftest$ac_exeext | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2850 if { (eval echo "$as_me:2850: \"$ac_link\"") >&5 |
3 | 2851 (eval $ac_link) 2>&5 |
2852 ac_status=$? | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2853 echo "$as_me:2853: \$? = $ac_status" >&5 |
3 | 2854 (exit $ac_status); } && |
2855 { ac_try='test -s conftest$ac_exeext' | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2856 { (eval echo "$as_me:2856: \"$ac_try\"") >&5 |
3 | 2857 (eval $ac_try) 2>&5 |
2858 ac_status=$? | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2859 echo "$as_me:2859: \$? = $ac_status" >&5 |
3 | 2860 (exit $ac_status); }; }; then |
2861 ac_cv_lib_resolv_gethostbyname=yes | |
2862 else | |
2863 echo "$as_me: failed program was:" >&5 | |
2864 cat conftest.$ac_ext >&5 | |
2865 ac_cv_lib_resolv_gethostbyname=no | |
2866 fi | |
2867 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
2868 LIBS=$ac_check_lib_save_LIBS | |
2869 fi | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2870 echo "$as_me:2870: result: $ac_cv_lib_resolv_gethostbyname" >&5 |
3 | 2871 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname" >&6 |
2872 if test $ac_cv_lib_resolv_gethostbyname = yes; then | |
2873 LIBS="$LIBS -lresolv" | |
2874 fi | |
2875 | |
2876 # Check whether --with-glib-prefix or --without-glib-prefix was given. | |
2877 if test "${with_glib_prefix+set}" = set; then | |
2878 withval="$with_glib_prefix" | |
2879 glib_config_prefix="$withval" | |
2880 else | |
2881 glib_config_prefix="" | |
2882 fi; | |
2883 | |
2884 # Check whether --with-glib-exec-prefix or --without-glib-exec-prefix was given. | |
2885 if test "${with_glib_exec_prefix+set}" = set; then | |
2886 withval="$with_glib_exec_prefix" | |
2887 glib_config_exec_prefix="$withval" | |
2888 else | |
2889 glib_config_exec_prefix="" | |
2890 fi; | |
2891 # Check whether --enable-glibtest or --disable-glibtest was given. | |
2892 if test "${enable_glibtest+set}" = set; then | |
2893 enableval="$enable_glibtest" | |
2894 | |
2895 else | |
2896 enable_glibtest=yes | |
2897 fi; | |
2898 | |
2899 if test x$glib_config_exec_prefix != x ; then | |
2900 glib_config_args="$glib_config_args --exec-prefix=$glib_config_exec_prefix" | |
2901 if test x${GLIB_CONFIG+set} != xset ; then | |
2902 GLIB_CONFIG=$glib_config_exec_prefix/bin/glib-config | |
2903 fi | |
2904 fi | |
2905 if test x$glib_config_prefix != x ; then | |
2906 glib_config_args="$glib_config_args --prefix=$glib_config_prefix" | |
2907 if test x${GLIB_CONFIG+set} != xset ; then | |
2908 GLIB_CONFIG=$glib_config_prefix/bin/glib-config | |
2909 fi | |
2910 fi | |
2911 | |
2912 for module in . | |
2913 do | |
2914 case "$module" in | |
2915 gmodule) | |
2916 glib_config_args="$glib_config_args gmodule" | |
2917 ;; | |
2918 gthread) | |
2919 glib_config_args="$glib_config_args gthread" | |
2920 ;; | |
2921 esac | |
2922 done | |
2923 | |
2924 # Extract the first word of "glib-config", so it can be a program name with args. | |
2925 set dummy glib-config; ac_word=$2 | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2926 echo "$as_me:2926: checking for $ac_word" >&5 |
3 | 2927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2928 if test "${ac_cv_path_GLIB_CONFIG+set}" = set; then | |
2929 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2930 else | |
2931 case $GLIB_CONFIG in | |
2932 [\\/]* | ?:[\\/]*) | |
2933 ac_cv_path_GLIB_CONFIG="$GLIB_CONFIG" # Let the user override the test with a path. | |
2934 ;; | |
2935 *) | |
2936 ac_save_IFS=$IFS; IFS=$ac_path_separator | |
2937 ac_dummy="$PATH" | |
2938 for ac_dir in $ac_dummy; do | |
2939 IFS=$ac_save_IFS | |
2940 test -z "$ac_dir" && ac_dir=. | |
2941 if $as_executable_p "$ac_dir/$ac_word"; then | |
2942 ac_cv_path_GLIB_CONFIG="$ac_dir/$ac_word" | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2943 echo "$as_me:2943: found $ac_dir/$ac_word" >&5 |
3 | 2944 break |
2945 fi | |
2946 done | |
2947 | |
2948 test -z "$ac_cv_path_GLIB_CONFIG" && ac_cv_path_GLIB_CONFIG="no" | |
2949 ;; | |
2950 esac | |
2951 fi | |
2952 GLIB_CONFIG=$ac_cv_path_GLIB_CONFIG | |
2953 | |
2954 if test -n "$GLIB_CONFIG"; then | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2955 echo "$as_me:2955: result: $GLIB_CONFIG" >&5 |
3 | 2956 echo "${ECHO_T}$GLIB_CONFIG" >&6 |
2957 else | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2958 echo "$as_me:2958: result: no" >&5 |
3 | 2959 echo "${ECHO_T}no" >&6 |
2960 fi | |
2961 | |
2962 min_glib_version=1.2.0 | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2963 echo "$as_me:2963: checking for GLIB - version >= $min_glib_version" >&5 |
3 | 2964 echo $ECHO_N "checking for GLIB - version >= $min_glib_version... $ECHO_C" >&6 |
2965 no_glib="" | |
2966 if test "$GLIB_CONFIG" = "no" ; then | |
2967 no_glib=yes | |
2968 else | |
2969 GLIB_CFLAGS=`$GLIB_CONFIG $glib_config_args --cflags` | |
2970 GLIB_LIBS=`$GLIB_CONFIG $glib_config_args --libs` | |
2971 glib_config_major_version=`$GLIB_CONFIG $glib_config_args --version | \ | |
2972 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
2973 glib_config_minor_version=`$GLIB_CONFIG $glib_config_args --version | \ | |
2974 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
2975 glib_config_micro_version=`$GLIB_CONFIG $glib_config_args --version | \ | |
2976 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
2977 if test "x$enable_glibtest" = "xyes" ; then | |
2978 ac_save_CFLAGS="$CFLAGS" | |
2979 ac_save_LIBS="$LIBS" | |
2980 CFLAGS="$CFLAGS $GLIB_CFLAGS" | |
2981 LIBS="$GLIB_LIBS $LIBS" | |
2982 rm -f conf.glibtest | |
2983 if test "$cross_compiling" = yes; then | |
2984 echo $ac_n "cross compiling; assumed OK... $ac_c" | |
2985 else | |
2986 cat >conftest.$ac_ext <<_ACEOF | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
2987 #line 2987 "configure" |
3 | 2988 #include "confdefs.h" |
2989 | |
2990 #include <glib.h> | |
2991 #include <stdio.h> | |
2992 #include <stdlib.h> | |
2993 | |
2994 int | |
2995 main () | |
2996 { | |
2997 int major, minor, micro; | |
2998 char *tmp_version; | |
2999 | |
3000 system ("touch conf.glibtest"); | |
3001 | |
3002 /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
3003 tmp_version = g_strdup("$min_glib_version"); | |
3004 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
3005 printf("%s, bad version string\n", "$min_glib_version"); | |
3006 exit(1); | |
3007 } | |
3008 | |
3009 if ((glib_major_version != $glib_config_major_version) || | |
3010 (glib_minor_version != $glib_config_minor_version) || | |
3011 (glib_micro_version != $glib_config_micro_version)) | |
3012 { | |
3013 printf("\n*** 'glib-config --version' returned %d.%d.%d, but GLIB (%d.%d.%d)\n", | |
3014 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version, | |
3015 glib_major_version, glib_minor_version, glib_micro_version); | |
3016 printf ("*** was found! If glib-config was correct, then it is best\n"); | |
3017 printf ("*** to remove the old version of GLIB. You may also be able to fix the error\n"); | |
3018 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
3019 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
3020 printf("*** required on your system.\n"); | |
3021 printf("*** If glib-config was wrong, set the environment variable GLIB_CONFIG\n"); | |
3022 printf("*** to point to the correct copy of glib-config, and remove the file config.cache\n"); | |
3023 printf("*** before re-running configure\n"); | |
3024 } | |
3025 else if ((glib_major_version != GLIB_MAJOR_VERSION) || | |
3026 (glib_minor_version != GLIB_MINOR_VERSION) || | |
3027 (glib_micro_version != GLIB_MICRO_VERSION)) | |
3028 { | |
3029 printf("*** GLIB header files (version %d.%d.%d) do not match\n", | |
3030 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION); | |
3031 printf("*** library (version %d.%d.%d)\n", | |
3032 glib_major_version, glib_minor_version, glib_micro_version); | |
3033 } | |
3034 else | |
3035 { | |
3036 if ((glib_major_version > major) || | |
3037 ((glib_major_version == major) && (glib_minor_version > minor)) || | |
3038 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro))) | |
3039 { | |
3040 return 0; | |
3041 } | |
3042 else | |
3043 { | |
3044 printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n", | |
3045 glib_major_version, glib_minor_version, glib_micro_version); | |
3046 printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n", | |
3047 major, minor, micro); | |
3048 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n"); | |
3049 printf("***\n"); | |
3050 printf("*** If you have already installed a sufficiently new version, this error\n"); | |
3051 printf("*** probably means that the wrong copy of the glib-config shell script is\n"); | |
3052 printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
3053 printf("*** of GLIB, but you can also set the GLIB_CONFIG environment to point to the\n"); | |
3054 printf("*** correct copy of glib-config. (In this case, you will have to\n"); | |
3055 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
3056 printf("*** so that the correct libraries are found at run-time))\n"); | |
3057 } | |
3058 } | |
3059 return 1; | |
3060 } | |
3061 | |
3062 _ACEOF | |
3063 rm -f conftest$ac_exeext | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3064 if { (eval echo "$as_me:3064: \"$ac_link\"") >&5 |
3 | 3065 (eval $ac_link) 2>&5 |
3066 ac_status=$? | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3067 echo "$as_me:3067: \$? = $ac_status" >&5 |
3 | 3068 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3069 { (eval echo "$as_me:3069: \"$ac_try\"") >&5 |
3 | 3070 (eval $ac_try) 2>&5 |
3071 ac_status=$? | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3072 echo "$as_me:3072: \$? = $ac_status" >&5 |
3 | 3073 (exit $ac_status); }; }; then |
3074 : | |
3075 else | |
3076 echo "$as_me: program exited with status $ac_status" >&5 | |
3077 echo "$as_me: failed program was:" >&5 | |
3078 cat conftest.$ac_ext >&5 | |
3079 no_glib=yes | |
3080 fi | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3081 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
3 | 3082 fi |
3083 CFLAGS="$ac_save_CFLAGS" | |
3084 LIBS="$ac_save_LIBS" | |
3085 fi | |
3086 fi | |
3087 if test "x$no_glib" = x ; then | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3088 echo "$as_me:3088: result: yes" >&5 |
3 | 3089 echo "${ECHO_T}yes" >&6 |
3090 : | |
3091 else | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3092 echo "$as_me:3092: result: no" >&5 |
3 | 3093 echo "${ECHO_T}no" >&6 |
3094 if test "$GLIB_CONFIG" = "no" ; then | |
3095 echo "*** The glib-config script installed by GLIB could not be found" | |
3096 echo "*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in" | |
3097 echo "*** your path, or set the GLIB_CONFIG environment variable to the" | |
3098 echo "*** full path to glib-config." | |
3099 else | |
3100 if test -f conf.glibtest ; then | |
3101 : | |
3102 else | |
3103 echo "*** Could not run GLIB test program, checking why..." | |
3104 CFLAGS="$CFLAGS $GLIB_CFLAGS" | |
3105 LIBS="$LIBS $GLIB_LIBS" | |
3106 cat >conftest.$ac_ext <<_ACEOF | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3107 #line 3107 "configure" |
3 | 3108 #include "confdefs.h" |
3109 | |
3110 #include <glib.h> | |
3111 #include <stdio.h> | |
3112 | |
3113 int | |
3114 main () | |
3115 { | |
3116 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); | |
3117 ; | |
3118 return 0; | |
3119 } | |
3120 _ACEOF | |
3121 rm -f conftest.$ac_objext conftest$ac_exeext | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3122 if { (eval echo "$as_me:3122: \"$ac_link\"") >&5 |
3 | 3123 (eval $ac_link) 2>&5 |
3124 ac_status=$? | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3125 echo "$as_me:3125: \$? = $ac_status" >&5 |
3 | 3126 (exit $ac_status); } && |
3127 { ac_try='test -s conftest$ac_exeext' | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3128 { (eval echo "$as_me:3128: \"$ac_try\"") >&5 |
3 | 3129 (eval $ac_try) 2>&5 |
3130 ac_status=$? | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3131 echo "$as_me:3131: \$? = $ac_status" >&5 |
3 | 3132 (exit $ac_status); }; }; then |
3133 echo "*** The test program compiled, but did not run. This usually means" | |
3134 echo "*** that the run-time linker is not finding GLIB or finding the wrong" | |
3135 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your" | |
3136 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
3137 echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
3138 echo "*** is required on your system" | |
3139 echo "***" | |
3140 echo "*** If you have an old version installed, it is best to remove it, although" | |
3141 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
3142 else | |
3143 echo "$as_me: failed program was:" >&5 | |
3144 cat conftest.$ac_ext >&5 | |
3145 echo "*** The test program failed to compile or link. See the file config.log for the" | |
3146 echo "*** exact error that occured. This usually means GLIB was incorrectly installed" | |
3147 echo "*** or that you have moved GLIB since it was installed. In the latter case, you" | |
3148 echo "*** may want to edit the glib-config script: $GLIB_CONFIG" | |
3149 fi | |
3150 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
3151 CFLAGS="$ac_save_CFLAGS" | |
3152 LIBS="$ac_save_LIBS" | |
3153 fi | |
3154 fi | |
3155 GLIB_CFLAGS="" | |
3156 GLIB_LIBS="" | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3157 { { echo "$as_me:3157: error: { { echo \"$as_me:3157: error: Cannot find GLIB: Is glib-config in path?\" >&5 |
3 | 3158 echo \"$as_me: error: Cannot find GLIB: Is glib-config in path?\" >&2;} |
3159 { (exit 1); exit 1; }; }" >&5 | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3160 echo "$as_me: error: { { echo \"$as_me:3160: error: Cannot find GLIB: Is glib-config in path?\" >&5 |
3 | 3161 echo \"$as_me: error: Cannot find GLIB: Is glib-config in path?\" >&2;} |
3162 { (exit 1); exit 1; }; }" >&2;} | |
3163 { (exit 1); exit 1; }; } | |
3164 fi | |
3165 | |
3166 rm -f conf.glibtest | |
3167 | |
3168 # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
3169 if test "${with_gtk_prefix+set}" = set; then | |
3170 withval="$with_gtk_prefix" | |
3171 gtk_config_prefix="$withval" | |
3172 else | |
3173 gtk_config_prefix="" | |
3174 fi; | |
3175 | |
3176 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
3177 if test "${with_gtk_exec_prefix+set}" = set; then | |
3178 withval="$with_gtk_exec_prefix" | |
3179 gtk_config_exec_prefix="$withval" | |
3180 else | |
3181 gtk_config_exec_prefix="" | |
3182 fi; | |
3183 # Check whether --enable-gtktest or --disable-gtktest was given. | |
3184 if test "${enable_gtktest+set}" = set; then | |
3185 enableval="$enable_gtktest" | |
3186 | |
3187 else | |
3188 enable_gtktest=yes | |
3189 fi; | |
3190 | |
3191 for module in . gthread | |
3192 do | |
3193 case "$module" in | |
3194 gthread) | |
3195 gtk_config_args="$gtk_config_args gthread" | |
3196 ;; | |
3197 esac | |
3198 done | |
3199 | |
3200 if test x$gtk_config_exec_prefix != x ; then | |
3201 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
3202 if test x${GTK_CONFIG+set} != xset ; then | |
3203 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
3204 fi | |
3205 fi | |
3206 if test x$gtk_config_prefix != x ; then | |
3207 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
3208 if test x${GTK_CONFIG+set} != xset ; then | |
3209 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
3210 fi | |
3211 fi | |
3212 | |
3213 # Extract the first word of "gtk-config", so it can be a program name with args. | |
3214 set dummy gtk-config; ac_word=$2 | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3215 echo "$as_me:3215: checking for $ac_word" >&5 |
3 | 3216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3217 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
3218 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3219 else | |
3220 case $GTK_CONFIG in | |
3221 [\\/]* | ?:[\\/]*) | |
3222 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
3223 ;; | |
3224 *) | |
3225 ac_save_IFS=$IFS; IFS=$ac_path_separator | |
3226 ac_dummy="$PATH" | |
3227 for ac_dir in $ac_dummy; do | |
3228 IFS=$ac_save_IFS | |
3229 test -z "$ac_dir" && ac_dir=. | |
3230 if $as_executable_p "$ac_dir/$ac_word"; then | |
3231 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3232 echo "$as_me:3232: found $ac_dir/$ac_word" >&5 |
3 | 3233 break |
3234 fi | |
3235 done | |
3236 | |
3237 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
3238 ;; | |
3239 esac | |
3240 fi | |
3241 GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
3242 | |
3243 if test -n "$GTK_CONFIG"; then | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3244 echo "$as_me:3244: result: $GTK_CONFIG" >&5 |
3 | 3245 echo "${ECHO_T}$GTK_CONFIG" >&6 |
3246 else | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3247 echo "$as_me:3247: result: no" >&5 |
3 | 3248 echo "${ECHO_T}no" >&6 |
3249 fi | |
3250 | |
3251 min_gtk_version=1.2.0 | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3252 echo "$as_me:3252: checking for GTK - version >= $min_gtk_version" >&5 |
3 | 3253 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 |
3254 no_gtk="" | |
3255 if test "$GTK_CONFIG" = "no" ; then | |
3256 no_gtk=yes | |
3257 else | |
3258 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
3259 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
3260 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
3261 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
3262 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
3263 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
3264 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
3265 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
3266 if test "x$enable_gtktest" = "xyes" ; then | |
3267 ac_save_CFLAGS="$CFLAGS" | |
3268 ac_save_LIBS="$LIBS" | |
3269 CFLAGS="$CFLAGS $GTK_CFLAGS" | |
3270 LIBS="$GTK_LIBS $LIBS" | |
3271 rm -f conf.gtktest | |
3272 if test "$cross_compiling" = yes; then | |
3273 echo $ac_n "cross compiling; assumed OK... $ac_c" | |
3274 else | |
3275 cat >conftest.$ac_ext <<_ACEOF | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3276 #line 3276 "configure" |
3 | 3277 #include "confdefs.h" |
3278 | |
3279 #include <gtk/gtk.h> | |
3280 #include <stdio.h> | |
3281 #include <stdlib.h> | |
3282 | |
3283 int | |
3284 main () | |
3285 { | |
3286 int major, minor, micro; | |
3287 char *tmp_version; | |
3288 | |
3289 system ("touch conf.gtktest"); | |
3290 | |
3291 /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
3292 tmp_version = g_strdup("$min_gtk_version"); | |
3293 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
3294 printf("%s, bad version string\n", "$min_gtk_version"); | |
3295 exit(1); | |
3296 } | |
3297 | |
3298 if ((gtk_major_version != $gtk_config_major_version) || | |
3299 (gtk_minor_version != $gtk_config_minor_version) || | |
3300 (gtk_micro_version != $gtk_config_micro_version)) | |
3301 { | |
3302 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
3303 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
3304 gtk_major_version, gtk_minor_version, gtk_micro_version); | |
3305 printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
3306 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
3307 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
3308 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
3309 printf("*** required on your system.\n"); | |
3310 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
3311 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
3312 printf("*** before re-running configure\n"); | |
3313 } | |
3314 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
3315 else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
3316 (gtk_minor_version != GTK_MINOR_VERSION) || | |
3317 (gtk_micro_version != GTK_MICRO_VERSION)) | |
3318 { | |
3319 printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
3320 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
3321 printf("*** library (version %d.%d.%d)\n", | |
3322 gtk_major_version, gtk_minor_version, gtk_micro_version); | |
3323 } | |
3324 #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
3325 else | |
3326 { | |
3327 if ((gtk_major_version > major) || | |
3328 ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
3329 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
3330 { | |
3331 return 0; | |
3332 } | |
3333 else | |
3334 { | |
3335 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
3336 gtk_major_version, gtk_minor_version, gtk_micro_version); | |
3337 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
3338 major, minor, micro); | |
3339 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
3340 printf("***\n"); | |
3341 printf("*** If you have already installed a sufficiently new version, this error\n"); | |
3342 printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
3343 printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
3344 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
3345 printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
3346 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
3347 printf("*** so that the correct libraries are found at run-time))\n"); | |
3348 } | |
3349 } | |
3350 return 1; | |
3351 } | |
3352 | |
3353 _ACEOF | |
3354 rm -f conftest$ac_exeext | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3355 if { (eval echo "$as_me:3355: \"$ac_link\"") >&5 |
3 | 3356 (eval $ac_link) 2>&5 |
3357 ac_status=$? | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3358 echo "$as_me:3358: \$? = $ac_status" >&5 |
3 | 3359 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3360 { (eval echo "$as_me:3360: \"$ac_try\"") >&5 |
3 | 3361 (eval $ac_try) 2>&5 |
3362 ac_status=$? | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3363 echo "$as_me:3363: \$? = $ac_status" >&5 |
3 | 3364 (exit $ac_status); }; }; then |
3365 : | |
3366 else | |
3367 echo "$as_me: program exited with status $ac_status" >&5 | |
3368 echo "$as_me: failed program was:" >&5 | |
3369 cat conftest.$ac_ext >&5 | |
3370 no_gtk=yes | |
3371 fi | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3372 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
3 | 3373 fi |
3374 CFLAGS="$ac_save_CFLAGS" | |
3375 LIBS="$ac_save_LIBS" | |
3376 fi | |
3377 fi | |
3378 if test "x$no_gtk" = x ; then | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3379 echo "$as_me:3379: result: yes" >&5 |
3 | 3380 echo "${ECHO_T}yes" >&6 |
3381 : | |
3382 else | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3383 echo "$as_me:3383: result: no" >&5 |
3 | 3384 echo "${ECHO_T}no" >&6 |
3385 if test "$GTK_CONFIG" = "no" ; then | |
3386 echo "*** The gtk-config script installed by GTK could not be found" | |
3387 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
3388 echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
3389 echo "*** full path to gtk-config." | |
3390 else | |
3391 if test -f conf.gtktest ; then | |
3392 : | |
3393 else | |
3394 echo "*** Could not run GTK test program, checking why..." | |
3395 CFLAGS="$CFLAGS $GTK_CFLAGS" | |
3396 LIBS="$LIBS $GTK_LIBS" | |
3397 cat >conftest.$ac_ext <<_ACEOF | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3398 #line 3398 "configure" |
3 | 3399 #include "confdefs.h" |
3400 | |
3401 #include <gtk/gtk.h> | |
3402 #include <stdio.h> | |
3403 | |
3404 int | |
3405 main () | |
3406 { | |
3407 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
3408 ; | |
3409 return 0; | |
3410 } | |
3411 _ACEOF | |
3412 rm -f conftest.$ac_objext conftest$ac_exeext | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3413 if { (eval echo "$as_me:3413: \"$ac_link\"") >&5 |
3 | 3414 (eval $ac_link) 2>&5 |
3415 ac_status=$? | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3416 echo "$as_me:3416: \$? = $ac_status" >&5 |
3 | 3417 (exit $ac_status); } && |
3418 { ac_try='test -s conftest$ac_exeext' | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3419 { (eval echo "$as_me:3419: \"$ac_try\"") >&5 |
3 | 3420 (eval $ac_try) 2>&5 |
3421 ac_status=$? | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3422 echo "$as_me:3422: \$? = $ac_status" >&5 |
3 | 3423 (exit $ac_status); }; }; then |
3424 echo "*** The test program compiled, but did not run. This usually means" | |
3425 echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
3426 echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
3427 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
3428 echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
3429 echo "*** is required on your system" | |
3430 echo "***" | |
3431 echo "*** If you have an old version installed, it is best to remove it, although" | |
3432 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
3433 else | |
3434 echo "$as_me: failed program was:" >&5 | |
3435 cat conftest.$ac_ext >&5 | |
3436 echo "*** The test program failed to compile or link. See the file config.log for the" | |
3437 echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
3438 echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
3439 echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
3440 fi | |
3441 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
3442 CFLAGS="$ac_save_CFLAGS" | |
3443 LIBS="$ac_save_LIBS" | |
3444 fi | |
3445 fi | |
3446 GTK_CFLAGS="" | |
3447 GTK_LIBS="" | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3448 { { echo "$as_me:3448: error: { { echo \"$as_me:3448: error: Cannot find GTK: Is gtk-config in path?\" >&5 |
3 | 3449 echo \"$as_me: error: Cannot find GTK: Is gtk-config in path?\" >&2;} |
3450 { (exit 1); exit 1; }; }" >&5 | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3451 echo "$as_me: error: { { echo \"$as_me:3451: error: Cannot find GTK: Is gtk-config in path?\" >&5 |
3 | 3452 echo \"$as_me: error: Cannot find GTK: Is gtk-config in path?\" >&2;} |
3453 { (exit 1); exit 1; }; }" >&2;} | |
3454 { (exit 1); exit 1; }; } | |
3455 fi | |
3456 | |
3457 rm -f conf.gtktest | |
3458 | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3459 echo "$as_me:3459: checking for pthread.h" >&5 |
3 | 3460 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6 |
3461 if test "${ac_cv_header_pthread_h+set}" = set; then | |
3462 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3463 else | |
3464 cat >conftest.$ac_ext <<_ACEOF | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3465 #line 3465 "configure" |
3 | 3466 #include "confdefs.h" |
3467 #include <pthread.h> | |
3468 _ACEOF | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3469 if { (eval echo "$as_me:3469: \"$ac_cpp conftest.$ac_ext\"") >&5 |
3 | 3470 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3471 ac_status=$? | |
3472 egrep -v '^ *\+' conftest.er1 >conftest.err | |
3473 rm -f conftest.er1 | |
3474 cat conftest.err >&5 | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3475 echo "$as_me:3475: \$? = $ac_status" >&5 |
3 | 3476 (exit $ac_status); } >/dev/null; then |
3477 if test -s conftest.err; then | |
3478 ac_cpp_err=$ac_c_preproc_warn_flag | |
3479 else | |
3480 ac_cpp_err= | |
3481 fi | |
3482 else | |
3483 ac_cpp_err=yes | |
3484 fi | |
3485 if test -z "$ac_cpp_err"; then | |
3486 ac_cv_header_pthread_h=yes | |
3487 else | |
3488 echo "$as_me: failed program was:" >&5 | |
3489 cat conftest.$ac_ext >&5 | |
3490 ac_cv_header_pthread_h=no | |
3491 fi | |
3492 rm -f conftest.err conftest.$ac_ext | |
3493 fi | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3494 echo "$as_me:3494: result: $ac_cv_header_pthread_h" >&5 |
3 | 3495 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6 |
3496 if test $ac_cv_header_pthread_h = yes; then | |
3497 : | |
3498 else | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3499 { { echo "$as_me:3499: error: pthread header not found. Dynamic Windows cannot build without it." >&5 |
3 | 3500 echo "$as_me: error: pthread header not found. Dynamic Windows cannot build without it." >&2;} |
3501 { (exit 1); exit 1; }; } | |
3502 fi | |
3503 | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3504 echo "$as_me:3504: checking for pthread_attr_init in -lpthread" >&5 |
3 | 3505 echo $ECHO_N "checking for pthread_attr_init in -lpthread... $ECHO_C" >&6 |
3506 if test "${ac_cv_lib_pthread_pthread_attr_init+set}" = set; then | |
3507 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3508 else | |
3509 ac_check_lib_save_LIBS=$LIBS | |
3510 LIBS="-lpthread $LIBS" | |
3511 cat >conftest.$ac_ext <<_ACEOF | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3512 #line 3512 "configure" |
3 | 3513 #include "confdefs.h" |
3514 | |
3515 /* Override any gcc2 internal prototype to avoid an error. */ | |
3516 #ifdef __cplusplus | |
3517 extern "C" | |
3518 #endif | |
3519 /* We use char because int might match the return type of a gcc2 | |
3520 builtin and then its argument prototype would still apply. */ | |
3521 char pthread_attr_init (); | |
3522 int | |
3523 main () | |
3524 { | |
3525 pthread_attr_init (); | |
3526 ; | |
3527 return 0; | |
3528 } | |
3529 _ACEOF | |
3530 rm -f conftest.$ac_objext conftest$ac_exeext | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3531 if { (eval echo "$as_me:3531: \"$ac_link\"") >&5 |
3 | 3532 (eval $ac_link) 2>&5 |
3533 ac_status=$? | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3534 echo "$as_me:3534: \$? = $ac_status" >&5 |
3 | 3535 (exit $ac_status); } && |
3536 { ac_try='test -s conftest$ac_exeext' | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3537 { (eval echo "$as_me:3537: \"$ac_try\"") >&5 |
3 | 3538 (eval $ac_try) 2>&5 |
3539 ac_status=$? | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3540 echo "$as_me:3540: \$? = $ac_status" >&5 |
3 | 3541 (exit $ac_status); }; }; then |
3542 ac_cv_lib_pthread_pthread_attr_init=yes | |
3543 else | |
3544 echo "$as_me: failed program was:" >&5 | |
3545 cat conftest.$ac_ext >&5 | |
3546 ac_cv_lib_pthread_pthread_attr_init=no | |
3547 fi | |
3548 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
3549 LIBS=$ac_check_lib_save_LIBS | |
3550 fi | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3551 echo "$as_me:3551: result: $ac_cv_lib_pthread_pthread_attr_init" >&5 |
3 | 3552 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_attr_init" >&6 |
3553 if test $ac_cv_lib_pthread_pthread_attr_init = yes; then | |
3554 PTHREAD_LIBS="-lpthread" | |
3555 else | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3556 echo "$as_me:3556: checking for pthread_attr_init in -lpthreads" >&5 |
3 | 3557 echo $ECHO_N "checking for pthread_attr_init in -lpthreads... $ECHO_C" >&6 |
3558 if test "${ac_cv_lib_pthreads_pthread_attr_init+set}" = set; then | |
3559 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3560 else | |
3561 ac_check_lib_save_LIBS=$LIBS | |
3562 LIBS="-lpthreads $LIBS" | |
3563 cat >conftest.$ac_ext <<_ACEOF | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3564 #line 3564 "configure" |
3 | 3565 #include "confdefs.h" |
3566 | |
3567 /* Override any gcc2 internal prototype to avoid an error. */ | |
3568 #ifdef __cplusplus | |
3569 extern "C" | |
3570 #endif | |
3571 /* We use char because int might match the return type of a gcc2 | |
3572 builtin and then its argument prototype would still apply. */ | |
3573 char pthread_attr_init (); | |
3574 int | |
3575 main () | |
3576 { | |
3577 pthread_attr_init (); | |
3578 ; | |
3579 return 0; | |
3580 } | |
3581 _ACEOF | |
3582 rm -f conftest.$ac_objext conftest$ac_exeext | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3583 if { (eval echo "$as_me:3583: \"$ac_link\"") >&5 |
3 | 3584 (eval $ac_link) 2>&5 |
3585 ac_status=$? | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3586 echo "$as_me:3586: \$? = $ac_status" >&5 |
3 | 3587 (exit $ac_status); } && |
3588 { ac_try='test -s conftest$ac_exeext' | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3589 { (eval echo "$as_me:3589: \"$ac_try\"") >&5 |
3 | 3590 (eval $ac_try) 2>&5 |
3591 ac_status=$? | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3592 echo "$as_me:3592: \$? = $ac_status" >&5 |
3 | 3593 (exit $ac_status); }; }; then |
3594 ac_cv_lib_pthreads_pthread_attr_init=yes | |
3595 else | |
3596 echo "$as_me: failed program was:" >&5 | |
3597 cat conftest.$ac_ext >&5 | |
3598 ac_cv_lib_pthreads_pthread_attr_init=no | |
3599 fi | |
3600 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
3601 LIBS=$ac_check_lib_save_LIBS | |
3602 fi | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3603 echo "$as_me:3603: result: $ac_cv_lib_pthreads_pthread_attr_init" >&5 |
3 | 3604 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_attr_init" >&6 |
3605 if test $ac_cv_lib_pthreads_pthread_attr_init = yes; then | |
3606 PTHREAD_LIBS="-lpthreads" | |
3607 else | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3608 echo "$as_me:3608: checking for pthread_attr_init in -lc_r" >&5 |
3 | 3609 echo $ECHO_N "checking for pthread_attr_init in -lc_r... $ECHO_C" >&6 |
3610 if test "${ac_cv_lib_c_r_pthread_attr_init+set}" = set; then | |
3611 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3612 else | |
3613 ac_check_lib_save_LIBS=$LIBS | |
3614 LIBS="-lc_r $LIBS" | |
3615 cat >conftest.$ac_ext <<_ACEOF | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3616 #line 3616 "configure" |
3 | 3617 #include "confdefs.h" |
3618 | |
3619 /* Override any gcc2 internal prototype to avoid an error. */ | |
3620 #ifdef __cplusplus | |
3621 extern "C" | |
3622 #endif | |
3623 /* We use char because int might match the return type of a gcc2 | |
3624 builtin and then its argument prototype would still apply. */ | |
3625 char pthread_attr_init (); | |
3626 int | |
3627 main () | |
3628 { | |
3629 pthread_attr_init (); | |
3630 ; | |
3631 return 0; | |
3632 } | |
3633 _ACEOF | |
3634 rm -f conftest.$ac_objext conftest$ac_exeext | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3635 if { (eval echo "$as_me:3635: \"$ac_link\"") >&5 |
3 | 3636 (eval $ac_link) 2>&5 |
3637 ac_status=$? | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3638 echo "$as_me:3638: \$? = $ac_status" >&5 |
3 | 3639 (exit $ac_status); } && |
3640 { ac_try='test -s conftest$ac_exeext' | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3641 { (eval echo "$as_me:3641: \"$ac_try\"") >&5 |
3 | 3642 (eval $ac_try) 2>&5 |
3643 ac_status=$? | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3644 echo "$as_me:3644: \$? = $ac_status" >&5 |
3 | 3645 (exit $ac_status); }; }; then |
3646 ac_cv_lib_c_r_pthread_attr_init=yes | |
3647 else | |
3648 echo "$as_me: failed program was:" >&5 | |
3649 cat conftest.$ac_ext >&5 | |
3650 ac_cv_lib_c_r_pthread_attr_init=no | |
3651 fi | |
3652 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
3653 LIBS=$ac_check_lib_save_LIBS | |
3654 fi | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3655 echo "$as_me:3655: result: $ac_cv_lib_c_r_pthread_attr_init" >&5 |
3 | 3656 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_attr_init" >&6 |
3657 if test $ac_cv_lib_c_r_pthread_attr_init = yes; then | |
3658 PTHREAD_LIBS="-lc_r" | |
3659 else | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3660 { { echo "$as_me:3660: error: pthread library not found. HandyFTP cannot build without it. |
3 | 3661 " >&5 |
3662 echo "$as_me: error: pthread library not found. HandyFTP cannot build without it. | |
3663 " >&2;} | |
3664 { (exit 1); exit 1; }; } | |
3665 | |
3666 fi | |
3667 | |
3668 fi | |
3669 | |
3670 fi | |
3671 | |
3672 # Check whether --with-imlib-prefix or --without-imlib-prefix was given. | |
3673 if test "${with_imlib_prefix+set}" = set; then | |
3674 withval="$with_imlib_prefix" | |
3675 imlib_prefix="$withval" | |
3676 else | |
3677 imlib_prefix="" | |
3678 fi; | |
3679 | |
3680 # Check whether --with-imlib-exec-prefix or --without-imlib-exec-prefix was given. | |
3681 if test "${with_imlib_exec_prefix+set}" = set; then | |
3682 withval="$with_imlib_exec_prefix" | |
3683 imlib_exec_prefix="$withval" | |
3684 else | |
3685 imlib_exec_prefix="" | |
3686 fi; | |
3687 # Check whether --enable-imlibtest or --disable-imlibtest was given. | |
3688 if test "${enable_imlibtest+set}" = set; then | |
3689 enableval="$enable_imlibtest" | |
3690 | |
3691 else | |
3692 enable_imlibtest=yes | |
3693 fi; | |
3694 | |
3695 if test x$imlib_exec_prefix != x ; then | |
3696 imlib_args="$imlib_args --exec-prefix=$imlib_exec_prefix" | |
3697 if test x${IMLIB_CONFIG+set} != xset ; then | |
3698 IMLIB_CONFIG=$imlib_exec_prefix/bin/imlib-config | |
3699 fi | |
3700 fi | |
3701 if test x$imlib_prefix != x ; then | |
3702 imlib_args="$imlib_args --prefix=$imlib_prefix" | |
3703 if test x${IMLIB_CONFIG+set} != xset ; then | |
3704 IMLIB_CONFIG=$imlib_prefix/bin/imlib-config | |
3705 fi | |
3706 fi | |
3707 | |
3708 # Extract the first word of "imlib-config", so it can be a program name with args. | |
3709 set dummy imlib-config; ac_word=$2 | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3710 echo "$as_me:3710: checking for $ac_word" >&5 |
3 | 3711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3712 if test "${ac_cv_path_IMLIB_CONFIG+set}" = set; then | |
3713 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3714 else | |
3715 case $IMLIB_CONFIG in | |
3716 [\\/]* | ?:[\\/]*) | |
3717 ac_cv_path_IMLIB_CONFIG="$IMLIB_CONFIG" # Let the user override the test with a path. | |
3718 ;; | |
3719 *) | |
3720 ac_save_IFS=$IFS; IFS=$ac_path_separator | |
3721 ac_dummy="$PATH" | |
3722 for ac_dir in $ac_dummy; do | |
3723 IFS=$ac_save_IFS | |
3724 test -z "$ac_dir" && ac_dir=. | |
3725 if $as_executable_p "$ac_dir/$ac_word"; then | |
3726 ac_cv_path_IMLIB_CONFIG="$ac_dir/$ac_word" | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3727 echo "$as_me:3727: found $ac_dir/$ac_word" >&5 |
3 | 3728 break |
3729 fi | |
3730 done | |
3731 | |
3732 test -z "$ac_cv_path_IMLIB_CONFIG" && ac_cv_path_IMLIB_CONFIG="no" | |
3733 ;; | |
3734 esac | |
3735 fi | |
3736 IMLIB_CONFIG=$ac_cv_path_IMLIB_CONFIG | |
3737 | |
3738 if test -n "$IMLIB_CONFIG"; then | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3739 echo "$as_me:3739: result: $IMLIB_CONFIG" >&5 |
3 | 3740 echo "${ECHO_T}$IMLIB_CONFIG" >&6 |
3741 else | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3742 echo "$as_me:3742: result: no" >&5 |
3 | 3743 echo "${ECHO_T}no" >&6 |
3744 fi | |
3745 | |
3746 min_imlib_version=1.9.4 | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3747 echo "$as_me:3747: checking for IMLIB - version >= $min_imlib_version" >&5 |
3 | 3748 echo $ECHO_N "checking for IMLIB - version >= $min_imlib_version... $ECHO_C" >&6 |
3749 no_imlib="" | |
3750 if test "$IMLIB_CONFIG" = "no" ; then | |
3751 no_imlib=yes | |
3752 else | |
3753 GDK_IMLIB_CFLAGS=`$IMLIB_CONFIG $imlibconf_args --cflags-gdk` | |
3754 GDK_IMLIB_LIBS=`$IMLIB_CONFIG $imlibconf_args --libs-gdk` | |
3755 | |
3756 imlib_major_version=`$IMLIB_CONFIG $imlib_args --version | \ | |
3757 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
3758 imlib_minor_version=`$IMLIB_CONFIG $imlib_args --version | \ | |
3759 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
3760 imlib_micro_version=`$IMLIB_CONFIG $imlib_args --version | \ | |
3761 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
3762 if test "x$enable_imlibtest" = "xyes" ; then | |
3763 ac_save_CFLAGS="$CFLAGS" | |
3764 ac_save_LIBS="$LIBS" | |
3765 CFLAGS="$CFLAGS $GDK_IMLIB_CFLAGS" | |
3766 LIBS="$LIBS $GDK_IMLIB_LIBS" | |
3767 rm -f conf.imlibtest | |
3768 if test "$cross_compiling" = yes; then | |
3769 echo $ac_n "cross compiling; assumed OK... $ac_c" | |
3770 else | |
3771 cat >conftest.$ac_ext <<_ACEOF | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3772 #line 3772 "configure" |
3 | 3773 #include "confdefs.h" |
3774 | |
3775 #include <stdio.h> | |
3776 #include <stdlib.h> | |
3777 #include <gdk_imlib.h> | |
3778 | |
3779 int main () | |
3780 { | |
3781 int major, minor, micro; | |
3782 char *tmp_version; | |
3783 | |
3784 system ("touch conf.gdkimlibtest"); | |
3785 | |
3786 /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
3787 tmp_version = g_strdup("$min_imlib_version"); | |
3788 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
3789 printf("%s, bad version string\n", "$min_imlib_version"); | |
3790 exit(1); | |
3791 } | |
3792 | |
3793 if (($imlib_major_version > major) || | |
3794 (($imlib_major_version == major) && ($imlib_minor_version > minor)) || | |
3795 (($imlib_major_version == major) && ($imlib_minor_version == minor) && | |
3796 ($imlib_micro_version >= micro))) | |
3797 { | |
3798 return 0; | |
3799 } | |
3800 else | |
3801 { | |
3802 printf("\n*** 'imlib-config --version' returned %d.%d.%d, but the minimum version\n", $imlib_major_version, $imlib_minor_version, $imlib_micro_version); | |
3803 printf("*** of IMLIB required is %d.%d.%d. If imlib-config is correct, then it is\n", major, minor, micro); | |
3804 printf("*** best to upgrade to the required version.\n"); | |
3805 printf("*** If imlib-config was wrong, set the environment variable IMLIB_CONFIG\n"); | |
3806 printf("*** to point to the correct copy of imlib-config, and remove the file\n"); | |
3807 printf("*** config.cache before re-running configure\n"); | |
3808 return 1; | |
3809 } | |
3810 } | |
3811 | |
3812 _ACEOF | |
3813 rm -f conftest$ac_exeext | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3814 if { (eval echo "$as_me:3814: \"$ac_link\"") >&5 |
3 | 3815 (eval $ac_link) 2>&5 |
3816 ac_status=$? | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3817 echo "$as_me:3817: \$? = $ac_status" >&5 |
3 | 3818 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3819 { (eval echo "$as_me:3819: \"$ac_try\"") >&5 |
3 | 3820 (eval $ac_try) 2>&5 |
3821 ac_status=$? | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3822 echo "$as_me:3822: \$? = $ac_status" >&5 |
3 | 3823 (exit $ac_status); }; }; then |
3824 : | |
3825 else | |
3826 echo "$as_me: program exited with status $ac_status" >&5 | |
3827 echo "$as_me: failed program was:" >&5 | |
3828 cat conftest.$ac_ext >&5 | |
3829 no_imlib=yes | |
3830 fi | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3831 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
3 | 3832 fi |
3833 CFLAGS="$ac_save_CFLAGS" | |
3834 LIBS="$ac_save_LIBS" | |
3835 fi | |
3836 fi | |
3837 if test "x$no_imlib" = x ; then | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3838 echo "$as_me:3838: result: yes" >&5 |
3 | 3839 echo "${ECHO_T}yes" >&6 |
3840 cat >>confdefs.h <<\EOF | |
3841 #define USE_IMLIB 1 | |
3842 EOF | |
3843 | |
3844 else | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3845 echo "$as_me:3845: result: no" >&5 |
3 | 3846 echo "${ECHO_T}no" >&6 |
3847 if test "$IMLIB_CONFIG" = "no" ; then | |
3848 echo "*** The imlib-config script installed by IMLIB could not be found" | |
3849 echo "*** If IMLIB was installed in PREFIX, make sure PREFIX/bin is in" | |
3850 echo "*** your path, or set the IMLIB_CONFIG environment variable to the" | |
3851 echo "*** full path to imlib-config." | |
3852 else | |
3853 if test -f conf.gdkimlibtest ; then | |
3854 : | |
3855 else | |
3856 echo "*** Could not run IMLIB test program, checking why..." | |
3857 CFLAGS="$CFLAGS $GDK_IMLIB_CFLAGS" | |
3858 LIBS="$LIBS $GDK_IMLIB_LIBS" | |
3859 cat >conftest.$ac_ext <<_ACEOF | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3860 #line 3860 "configure" |
3 | 3861 #include "confdefs.h" |
3862 | |
3863 #include <stdio.h> | |
3864 #include <gdk_imlib.h> | |
3865 | |
3866 int | |
3867 main () | |
3868 { | |
3869 return 0; | |
3870 ; | |
3871 return 0; | |
3872 } | |
3873 _ACEOF | |
3874 rm -f conftest.$ac_objext conftest$ac_exeext | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3875 if { (eval echo "$as_me:3875: \"$ac_link\"") >&5 |
3 | 3876 (eval $ac_link) 2>&5 |
3877 ac_status=$? | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3878 echo "$as_me:3878: \$? = $ac_status" >&5 |
3 | 3879 (exit $ac_status); } && |
3880 { ac_try='test -s conftest$ac_exeext' | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3881 { (eval echo "$as_me:3881: \"$ac_try\"") >&5 |
3 | 3882 (eval $ac_try) 2>&5 |
3883 ac_status=$? | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3884 echo "$as_me:3884: \$? = $ac_status" >&5 |
3 | 3885 (exit $ac_status); }; }; then |
3886 echo "*** The test program compiled, but did not run. This usually means" | |
3887 echo "*** that the run-time linker is not finding IMLIB or finding the wrong" | |
3888 echo "*** version of IMLIB. If it is not finding IMLIB, you'll need to set your" | |
3889 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
3890 echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
3891 echo "*** is required on your system" | |
3892 echo "***" | |
3893 echo "*** If you have an old version installed, it is best to remove it, although" | |
3894 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
3895 else | |
3896 echo "$as_me: failed program was:" >&5 | |
3897 cat conftest.$ac_ext >&5 | |
3898 echo "*** The test program failed to compile or link. See the file config.log for the" | |
3899 echo "*** exact error that occured. This usually means IMLIB was incorrectly installed" | |
3900 echo "*** or that you have moved IMLIB since it was installed. In the latter case, you" | |
3901 echo "*** may want to edit the imlib-config script: $IMLIB_CONFIG" | |
3902 fi | |
3903 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
3904 CFLAGS="$ac_save_CFLAGS" | |
3905 LIBS="$ac_save_LIBS" | |
3906 fi | |
3907 fi | |
3908 GDK_IMLIB_CFLAGS="" | |
3909 GDK_IMLIB_LIBS="" | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3910 { { echo "$as_me:3910: error: IMLIB not found or too old. Dynamic Windows cannot build without it." >&5 |
3 | 3911 echo "$as_me: error: IMLIB not found or too old. Dynamic Windows cannot build without it." >&2;} |
3912 { (exit 1); exit 1; }; } | |
3913 fi | |
3914 | |
3915 rm -f conf.gdkimlibtest | |
3916 | |
3917 CFLAGS="$CFLAGS $GTK_CFLAGS $GDK_IMLIB_FLAGS" | |
3918 LIBS="$LIBS $GTK_LIBS $PTHREAD_LIBS $GDK_IMLIB_LIBS" | |
3919 | |
3920 RM="rm -f" | |
3921 LN="ln -s" | |
3922 CP="cp" | |
3923 MV="mv" | |
3924 MKDIR="mkdir" | |
3925 | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3926 ac_config_files="$ac_config_files Makefile dw-config" |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3927 |
3 | 3928 cat >confcache <<\_ACEOF |
3929 # This file is a shell script that caches the results of configure | |
3930 # tests run on this system so they can be shared between configure | |
3931 # scripts and configure runs, see configure's option --config-cache. | |
3932 # It is not useful on other systems. If it contains results you don't | |
3933 # want to keep, you may remove or edit it. | |
3934 # | |
3935 # config.status only pays attention to the cache file if you give it | |
3936 # the --recheck option to rerun configure. | |
3937 # | |
3938 # `ac_cv_env_foo' variables (set or unset) will be overriden when | |
3939 # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
3940 # following values. | |
3941 | |
3942 _ACEOF | |
3943 | |
3944 # The following way of writing the cache mishandles newlines in values, | |
3945 # but we know of no workaround that is simple, portable, and efficient. | |
3946 # So, don't put newlines in cache variables' values. | |
3947 # Ultrix sh set writes to stderr and can't be redirected directly, | |
3948 # and sets the high bit in the cache file unless we assign to the vars. | |
3949 { | |
3950 (set) 2>&1 | | |
3951 case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
3952 *ac_space=\ *) | |
3953 # `set' does not quote correctly, so add quotes (double-quote | |
3954 # substitution turns \\\\ into \\, and sed turns \\ into \). | |
3955 sed -n \ | |
3956 "s/'/'\\\\''/g; | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3957 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
3 | 3958 ;; |
3959 *) | |
3960 # `set' quotes correctly as required by POSIX, so do not add quotes. | |
3961 sed -n \ | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
3962 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
3 | 3963 ;; |
3964 esac; | |
3965 } | | |
3966 sed ' | |
3967 t clear | |
3968 : clear | |
3969 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
3970 t end | |
3971 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
3972 : end' >>confcache | |
3973 if cmp -s $cache_file confcache; then :; else | |
3974 if test -w $cache_file; then | |
3975 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
3976 cat confcache >$cache_file | |
3977 else | |
3978 echo "not updating unwritable cache $cache_file" | |
3979 fi | |
3980 fi | |
3981 rm -f confcache | |
3982 | |
3983 test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
3984 # Let make expand exec_prefix. | |
3985 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
3986 | |
3987 # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
3988 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
3989 # trailing colons and then remove the whole line if VPATH becomes empty | |
3990 # (actually we leave an empty line to preserve line numbers). | |
3991 if test "x$srcdir" = x.; then | |
3992 ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
3993 s/:*\$(srcdir):*/:/; | |
3994 s/:*\${srcdir}:*/:/; | |
3995 s/:*@srcdir@:*/:/; | |
3996 s/^\([^=]*=[ ]*\):*/\1/; | |
3997 s/:*$//; | |
3998 s/^[^=]*=[ ]*$//; | |
3999 }' | |
4000 fi | |
4001 | |
4002 DEFS=-DHAVE_CONFIG_H | |
4003 | |
4004 : ${CONFIG_STATUS=./config.status} | |
4005 ac_clean_files_save=$ac_clean_files | |
4006 ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
4007 { echo "$as_me:4007: creating $CONFIG_STATUS" >&5 | |
4008 echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
4009 cat >$CONFIG_STATUS <<_ACEOF | |
4010 #! $SHELL | |
4011 # Generated automatically by configure. | |
4012 # Run this file to recreate the current configuration. | |
4013 # Compiler output produced by configure, useful for debugging | |
4014 # configure, is in config.log if it exists. | |
4015 | |
4016 debug=false | |
4017 SHELL=\${CONFIG_SHELL-$SHELL} | |
4018 ac_cs_invocation="\$0 \$@" | |
4019 | |
4020 _ACEOF | |
4021 | |
4022 cat >>$CONFIG_STATUS <<\_ACEOF | |
4023 # Be Bourne compatible | |
4024 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
4025 emulate sh | |
4026 NULLCMD=: | |
4027 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
4028 set -o posix | |
4029 fi | |
4030 | |
4031 # Name of the executable. | |
4032 as_me=`echo "$0" |sed 's,.*[\\/],,'` | |
4033 | |
4034 if expr a : '\(a\)' >/dev/null 2>&1; then | |
4035 as_expr=expr | |
4036 else | |
4037 as_expr=false | |
4038 fi | |
4039 | |
4040 rm -f conf$$ conf$$.exe conf$$.file | |
4041 echo >conf$$.file | |
4042 if ln -s conf$$.file conf$$ 2>/dev/null; then | |
4043 # We could just check for DJGPP; but this test a) works b) is more generic | |
4044 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
4045 if test -f conf$$.exe; then | |
4046 # Don't use ln at all; we don't have any links | |
4047 as_ln_s='cp -p' | |
4048 else | |
4049 as_ln_s='ln -s' | |
4050 fi | |
4051 elif ln conf$$.file conf$$ 2>/dev/null; then | |
4052 as_ln_s=ln | |
4053 else | |
4054 as_ln_s='cp -p' | |
4055 fi | |
4056 rm -f conf$$ conf$$.exe conf$$.file | |
4057 | |
4058 as_executable_p="test -f" | |
4059 | |
4060 # Support unset when possible. | |
4061 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
4062 as_unset=unset | |
4063 else | |
4064 as_unset=false | |
4065 fi | |
4066 | |
4067 # NLS nuisances. | |
4068 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } | |
4069 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } | |
4070 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } | |
4071 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } | |
4072 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } | |
4073 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } | |
4074 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } | |
4075 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } | |
4076 | |
4077 # IFS | |
4078 # We need space, tab and new line, in precisely that order. | |
4079 as_nl=' | |
4080 ' | |
4081 IFS=" $as_nl" | |
4082 | |
4083 # CDPATH. | |
4084 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } | |
4085 | |
4086 exec 6>&1 | |
4087 | |
4088 _ACEOF | |
4089 | |
4090 # Files that config.status was made for. | |
4091 if test -n "$ac_config_files"; then | |
4092 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
4093 fi | |
4094 | |
4095 if test -n "$ac_config_headers"; then | |
4096 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
4097 fi | |
4098 | |
4099 if test -n "$ac_config_links"; then | |
4100 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
4101 fi | |
4102 | |
4103 if test -n "$ac_config_commands"; then | |
4104 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
4105 fi | |
4106 | |
4107 cat >>$CONFIG_STATUS <<\EOF | |
4108 | |
4109 ac_cs_usage="\ | |
4110 \`$as_me' instantiates files from templates according to the | |
4111 current configuration. | |
4112 | |
4113 Usage: $0 [OPTIONS] [FILE]... | |
4114 | |
4115 -h, --help print this help, then exit | |
4116 -V, --version print version number, then exit | |
4117 -d, --debug don't remove temporary files | |
4118 --recheck update $as_me by reconfiguring in the same conditions | |
4119 --file=FILE[:TEMPLATE] | |
4120 instantiate the configuration file FILE | |
4121 --header=FILE[:TEMPLATE] | |
4122 instantiate the configuration header FILE | |
4123 | |
4124 Configuration files: | |
4125 $config_files | |
4126 | |
4127 Configuration headers: | |
4128 $config_headers | |
4129 | |
4130 Report bugs to <bug-autoconf@gnu.org>." | |
4131 EOF | |
4132 | |
4133 cat >>$CONFIG_STATUS <<EOF | |
4134 ac_cs_version="\\ | |
4135 config.status | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
4136 configured by $0, generated by GNU Autoconf 2.52, |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
4137 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
3 | 4138 |
4139 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 | |
4140 Free Software Foundation, Inc. | |
4141 This config.status script is free software; the Free Software Foundation | |
4142 gives unlimited permission to copy, distribute and modify it." | |
4143 srcdir=$srcdir | |
4144 INSTALL="$INSTALL" | |
4145 EOF | |
4146 | |
4147 cat >>$CONFIG_STATUS <<\EOF | |
4148 # If no file are specified by the user, then we need to provide default | |
4149 # value. By we need to know if files were specified by the user. | |
4150 ac_need_defaults=: | |
4151 while test $# != 0 | |
4152 do | |
4153 case $1 in | |
4154 --*=*) | |
4155 ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
4156 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
4157 shift | |
4158 set dummy "$ac_option" "$ac_optarg" ${1+"$@"} | |
4159 shift | |
4160 ;; | |
4161 -*);; | |
4162 *) # This is not an option, so the user has probably given explicit | |
4163 # arguments. | |
4164 ac_need_defaults=false;; | |
4165 esac | |
4166 | |
4167 case $1 in | |
4168 # Handling of the options. | |
4169 EOF | |
4170 cat >>$CONFIG_STATUS <<EOF | |
4171 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
4172 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" | |
4173 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; | |
4174 EOF | |
4175 cat >>$CONFIG_STATUS <<\EOF | |
4176 --version | --vers* | -V ) | |
4177 echo "$ac_cs_version"; exit 0 ;; | |
4178 --he | --h) | |
4179 # Conflict between --help and --header | |
4180 { { echo "$as_me:4180: error: ambiguous option: $1 | |
4181 Try \`$0 --help' for more information." >&5 | |
4182 echo "$as_me: error: ambiguous option: $1 | |
4183 Try \`$0 --help' for more information." >&2;} | |
4184 { (exit 1); exit 1; }; };; | |
4185 --help | --hel | -h ) | |
4186 echo "$ac_cs_usage"; exit 0 ;; | |
4187 --debug | --d* | -d ) | |
4188 debug=: ;; | |
4189 --file | --fil | --fi | --f ) | |
4190 shift | |
4191 CONFIG_FILES="$CONFIG_FILES $1" | |
4192 ac_need_defaults=false;; | |
4193 --header | --heade | --head | --hea ) | |
4194 shift | |
4195 CONFIG_HEADERS="$CONFIG_HEADERS $1" | |
4196 ac_need_defaults=false;; | |
4197 | |
4198 # This is an error. | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
4199 -*) { { echo "$as_me:4199: error: unrecognized option: $1 |
3 | 4200 Try \`$0 --help' for more information." >&5 |
4201 echo "$as_me: error: unrecognized option: $1 | |
4202 Try \`$0 --help' for more information." >&2;} | |
4203 { (exit 1); exit 1; }; } ;; | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
4204 |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
4205 *) ac_config_targets="$ac_config_targets $1" ;; |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
4206 |
3 | 4207 esac |
4208 shift | |
4209 done | |
4210 | |
4211 exec 5>>config.log | |
4212 cat >&5 << _ACEOF | |
4213 | |
4214 ## ----------------------- ## | |
4215 ## Running config.status. ## | |
4216 ## ----------------------- ## | |
4217 | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
4218 This file was extended by $as_me 2.52, executed with |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
4219 CONFIG_FILES = $CONFIG_FILES |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
4220 CONFIG_HEADERS = $CONFIG_HEADERS |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
4221 CONFIG_LINKS = $CONFIG_LINKS |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
4222 CONFIG_COMMANDS = $CONFIG_COMMANDS |
3 | 4223 > $ac_cs_invocation |
4224 on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
4225 | |
4226 _ACEOF | |
4227 EOF | |
4228 | |
4229 cat >>$CONFIG_STATUS <<\EOF | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
4230 for ac_config_target in $ac_config_targets |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
4231 do |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
4232 case "$ac_config_target" in |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
4233 # Handling of arguments. |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
4234 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
4235 "dw-config" ) CONFIG_FILES="$CONFIG_FILES dw-config" ;; |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
4236 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
4237 *) { { echo "$as_me:4237: error: invalid argument: $ac_config_target" >&5 |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
4238 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
4239 { (exit 1); exit 1; }; };; |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
4240 esac |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
4241 done |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
4242 |
3 | 4243 # If the user did not use the arguments to specify the items to instantiate, |
4244 # then the envvar interface is used. Set only those that are not. | |
4245 # We use the long form for the default assignment because of an extremely | |
4246 # bizarre bug on SunOS 4.1.3. | |
4247 if $ac_need_defaults; then | |
4248 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
4249 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
4250 fi | |
4251 | |
4252 # Create a temporary directory, and hook for its removal unless debugging. | |
4253 $debug || | |
4254 { | |
4255 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
4256 trap '{ (exit 1); exit 1; }' 1 2 13 15 |
3 | 4257 } |
4258 | |
4259 # Create a (secure) tmp directory for tmp files. | |
4260 : ${TMPDIR=/tmp} | |
4261 { | |
4262 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && | |
4263 test -n "$tmp" && test -d "$tmp" | |
4264 } || | |
4265 { | |
4266 tmp=$TMPDIR/cs$$-$RANDOM | |
4267 (umask 077 && mkdir $tmp) | |
4268 } || | |
4269 { | |
4270 echo "$me: cannot create a temporary directory in $TMPDIR" >&2 | |
4271 { (exit 1); exit 1; } | |
4272 } | |
4273 | |
4274 EOF | |
4275 | |
4276 cat >>$CONFIG_STATUS <<EOF | |
4277 | |
4278 # | |
4279 # CONFIG_FILES section. | |
4280 # | |
4281 | |
4282 # No need to generate the scripts if there are no CONFIG_FILES. | |
4283 # This happens for instance when ./config.status config.h | |
4284 if test -n "\$CONFIG_FILES"; then | |
4285 # Protect against being on the right side of a sed subst in config.status. | |
4286 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
4287 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
4288 s,@SHELL@,$SHELL,;t t | |
4289 s,@exec_prefix@,$exec_prefix,;t t | |
4290 s,@prefix@,$prefix,;t t | |
4291 s,@program_transform_name@,$program_transform_name,;t t | |
4292 s,@bindir@,$bindir,;t t | |
4293 s,@sbindir@,$sbindir,;t t | |
4294 s,@libexecdir@,$libexecdir,;t t | |
4295 s,@datadir@,$datadir,;t t | |
4296 s,@sysconfdir@,$sysconfdir,;t t | |
4297 s,@sharedstatedir@,$sharedstatedir,;t t | |
4298 s,@localstatedir@,$localstatedir,;t t | |
4299 s,@libdir@,$libdir,;t t | |
4300 s,@includedir@,$includedir,;t t | |
4301 s,@oldincludedir@,$oldincludedir,;t t | |
4302 s,@infodir@,$infodir,;t t | |
4303 s,@mandir@,$mandir,;t t | |
4304 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
4305 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
4306 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
4307 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
4308 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
4309 s,@build_alias@,$build_alias,;t t |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
4310 s,@host_alias@,$host_alias,;t t |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
4311 s,@target_alias@,$target_alias,;t t |
3 | 4312 s,@ECHO_C@,$ECHO_C,;t t |
4313 s,@ECHO_N@,$ECHO_N,;t t | |
4314 s,@ECHO_T@,$ECHO_T,;t t | |
4315 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
4316 s,@DEFS@,$DEFS,;t t | |
4317 s,@LIBS@,$LIBS,;t t | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
4318 s,@DW_MAJOR_VERSION@,$DW_MAJOR_VERSION,;t t |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
4319 s,@DW_MINOR_VERSION@,$DW_MINOR_VERSION,;t t |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
4320 s,@DW_SUB_VERSION@,$DW_SUB_VERSION,;t t |
3 | 4321 s,@CC@,$CC,;t t |
4322 s,@CFLAGS@,$CFLAGS,;t t | |
4323 s,@LDFLAGS@,$LDFLAGS,;t t | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
4324 s,@CPPFLAGS@,$CPPFLAGS,;t t |
3 | 4325 s,@ac_ct_CC@,$ac_ct_CC,;t t |
4326 s,@EXEEXT@,$EXEEXT,;t t | |
4327 s,@OBJEXT@,$OBJEXT,;t t | |
4328 s,@MAKE@,$MAKE,;t t | |
4329 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
4330 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
4331 s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
4332 s,@CPP@,$CPP,;t t | |
4333 s,@GLIB_CONFIG@,$GLIB_CONFIG,;t t | |
4334 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t | |
4335 s,@GLIB_LIBS@,$GLIB_LIBS,;t t | |
4336 s,@GTK_CONFIG@,$GTK_CONFIG,;t t | |
4337 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t | |
4338 s,@GTK_LIBS@,$GTK_LIBS,;t t | |
4339 s,@IMLIB_CONFIG@,$IMLIB_CONFIG,;t t | |
4340 s,@GDK_IMLIB_CFLAGS@,$GDK_IMLIB_CFLAGS,;t t | |
4341 s,@GDK_IMLIB_LIBS@,$GDK_IMLIB_LIBS,;t t | |
4342 s,@INCLUDES@,$INCLUDES,;t t | |
4343 s,@RM@,$RM,;t t | |
4344 s,@LN@,$LN,;t t | |
4345 s,@CP@,$CP,;t t | |
4346 s,@MV@,$MV,;t t | |
4347 s,@MKDIR@,$MKDIR,;t t | |
4348 CEOF | |
4349 | |
4350 EOF | |
4351 | |
4352 cat >>$CONFIG_STATUS <<\EOF | |
4353 # Split the substitutions into bite-sized pieces for seds with | |
4354 # small command number limits, like on Digital OSF/1 and HP-UX. | |
4355 ac_max_sed_lines=48 | |
4356 ac_sed_frag=1 # Number of current file. | |
4357 ac_beg=1 # First line for current file. | |
4358 ac_end=$ac_max_sed_lines # Line after last line for current file. | |
4359 ac_more_lines=: | |
4360 ac_sed_cmds= | |
4361 while $ac_more_lines; do | |
4362 if test $ac_beg -gt 1; then | |
4363 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
4364 else | |
4365 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
4366 fi | |
4367 if test ! -s $tmp/subs.frag; then | |
4368 ac_more_lines=false | |
4369 else | |
4370 # The purpose of the label and of the branching condition is to | |
4371 # speed up the sed processing (if there are no `@' at all, there | |
4372 # is no need to browse any of the substitutions). | |
4373 # These are the two extra sed commands mentioned above. | |
4374 (echo ':t | |
4375 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
4376 if test -z "$ac_sed_cmds"; then | |
4377 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
4378 else | |
4379 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
4380 fi | |
4381 ac_sed_frag=`expr $ac_sed_frag + 1` | |
4382 ac_beg=$ac_end | |
4383 ac_end=`expr $ac_end + $ac_max_sed_lines` | |
4384 fi | |
4385 done | |
4386 if test -z "$ac_sed_cmds"; then | |
4387 ac_sed_cmds=cat | |
4388 fi | |
4389 fi # test -n "$CONFIG_FILES" | |
4390 | |
4391 EOF | |
4392 cat >>$CONFIG_STATUS <<\EOF | |
4393 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
4394 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
4395 case $ac_file in | |
4396 - | *:- | *:-:* ) # input from stdin | |
4397 cat >$tmp/stdin | |
4398 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
4399 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
4400 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
4401 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
4402 * ) ac_file_in=$ac_file.in ;; | |
4403 esac | |
4404 | |
4405 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
4406 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
4407 X"$ac_file" : 'X\(//\)[^/]' \| \ | |
4408 X"$ac_file" : 'X\(//\)$' \| \ | |
4409 X"$ac_file" : 'X\(/\)' \| \ | |
4410 . : '\(.\)' 2>/dev/null || | |
4411 echo X"$ac_file" | | |
4412 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
4413 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
4414 /^X\(\/\/\)$/{ s//\1/; q; } | |
4415 /^X\(\/\).*/{ s//\1/; q; } | |
4416 s/.*/./; q'` | |
4417 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
4418 { case "$ac_dir" in | |
4419 [\\/]* | ?:[\\/]* ) as_incr_dir=;; | |
4420 *) as_incr_dir=.;; | |
4421 esac | |
4422 as_dummy="$ac_dir" | |
4423 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | |
4424 case $as_mkdir_dir in | |
4425 # Skip DOS drivespec | |
4426 ?:) as_incr_dir=$as_mkdir_dir ;; | |
4427 *) | |
4428 as_incr_dir=$as_incr_dir/$as_mkdir_dir | |
4429 test -d "$as_incr_dir" || mkdir "$as_incr_dir" | |
4430 ;; | |
4431 esac | |
4432 done; } | |
4433 | |
4434 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`" | |
4435 # A "../" for each directory in $ac_dir_suffix. | |
4436 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` | |
4437 else | |
4438 ac_dir_suffix= ac_dots= | |
4439 fi | |
4440 | |
4441 case $srcdir in | |
4442 .) ac_srcdir=. | |
4443 if test -z "$ac_dots"; then | |
4444 ac_top_srcdir=. | |
4445 else | |
4446 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'` | |
4447 fi ;; | |
4448 [\\/]* | ?:[\\/]* ) | |
4449 ac_srcdir=$srcdir$ac_dir_suffix; | |
4450 ac_top_srcdir=$srcdir ;; | |
4451 *) # Relative path. | |
4452 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix | |
4453 ac_top_srcdir=$ac_dots$srcdir ;; | |
4454 esac | |
4455 | |
4456 case $INSTALL in | |
4457 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
4458 *) ac_INSTALL=$ac_dots$INSTALL ;; | |
4459 esac | |
4460 | |
4461 if test x"$ac_file" != x-; then | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
4462 { echo "$as_me:4462: creating $ac_file" >&5 |
3 | 4463 echo "$as_me: creating $ac_file" >&6;} |
4464 rm -f "$ac_file" | |
4465 fi | |
4466 # Let's still pretend it is `configure' which instantiates (i.e., don't | |
4467 # use $as_me), people would be surprised to read: | |
4468 # /* config.h. Generated automatically by config.status. */ | |
4469 configure_input="Generated automatically from `echo $ac_file_in | | |
4470 sed 's,.*/,,'` by configure." | |
4471 | |
4472 # First look for the input files in the build tree, otherwise in the | |
4473 # src tree. | |
4474 ac_file_inputs=`IFS=: | |
4475 for f in $ac_file_in; do | |
4476 case $f in | |
4477 -) echo $tmp/stdin ;; | |
4478 [\\/$]*) | |
4479 # Absolute (can't be DOS-style, as IFS=:) | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
4480 test -f "$f" || { { echo "$as_me:4480: error: cannot find input file: $f" >&5 |
3 | 4481 echo "$as_me: error: cannot find input file: $f" >&2;} |
4482 { (exit 1); exit 1; }; } | |
4483 echo $f;; | |
4484 *) # Relative | |
4485 if test -f "$f"; then | |
4486 # Build tree | |
4487 echo $f | |
4488 elif test -f "$srcdir/$f"; then | |
4489 # Source tree | |
4490 echo $srcdir/$f | |
4491 else | |
4492 # /dev/null tree | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
4493 { { echo "$as_me:4493: error: cannot find input file: $f" >&5 |
3 | 4494 echo "$as_me: error: cannot find input file: $f" >&2;} |
4495 { (exit 1); exit 1; }; } | |
4496 fi;; | |
4497 esac | |
4498 done` || { (exit 1); exit 1; } | |
4499 EOF | |
4500 cat >>$CONFIG_STATUS <<EOF | |
4501 sed "$ac_vpsub | |
4502 $extrasub | |
4503 EOF | |
4504 cat >>$CONFIG_STATUS <<\EOF | |
4505 :t | |
4506 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
4507 s,@configure_input@,$configure_input,;t t | |
4508 s,@srcdir@,$ac_srcdir,;t t | |
4509 s,@top_srcdir@,$ac_top_srcdir,;t t | |
4510 s,@INSTALL@,$ac_INSTALL,;t t | |
4511 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
4512 rm -f $tmp/stdin | |
4513 if test x"$ac_file" != x-; then | |
4514 mv $tmp/out $ac_file | |
4515 else | |
4516 cat $tmp/out | |
4517 rm -f $tmp/out | |
4518 fi | |
4519 | |
4520 done | |
4521 EOF | |
4522 cat >>$CONFIG_STATUS <<\EOF | |
4523 | |
4524 # | |
4525 # CONFIG_HEADER section. | |
4526 # | |
4527 | |
4528 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
4529 # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
4530 # | |
4531 # ac_d sets the value in "#define NAME VALUE" lines. | |
4532 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
4533 ac_dB='[ ].*$,\1#\2' | |
4534 ac_dC=' ' | |
4535 ac_dD=',;t' | |
4536 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
4537 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
4538 ac_uB='$,\1#\2define\3' | |
4539 ac_uC=' ' | |
4540 ac_uD=',;t' | |
4541 | |
4542 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
4543 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
4544 case $ac_file in | |
4545 - | *:- | *:-:* ) # input from stdin | |
4546 cat >$tmp/stdin | |
4547 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
4548 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
4549 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
4550 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
4551 * ) ac_file_in=$ac_file.in ;; | |
4552 esac | |
4553 | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
4554 test x"$ac_file" != x- && { echo "$as_me:4554: creating $ac_file" >&5 |
3 | 4555 echo "$as_me: creating $ac_file" >&6;} |
4556 | |
4557 # First look for the input files in the build tree, otherwise in the | |
4558 # src tree. | |
4559 ac_file_inputs=`IFS=: | |
4560 for f in $ac_file_in; do | |
4561 case $f in | |
4562 -) echo $tmp/stdin ;; | |
4563 [\\/$]*) | |
4564 # Absolute (can't be DOS-style, as IFS=:) | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
4565 test -f "$f" || { { echo "$as_me:4565: error: cannot find input file: $f" >&5 |
3 | 4566 echo "$as_me: error: cannot find input file: $f" >&2;} |
4567 { (exit 1); exit 1; }; } | |
4568 echo $f;; | |
4569 *) # Relative | |
4570 if test -f "$f"; then | |
4571 # Build tree | |
4572 echo $f | |
4573 elif test -f "$srcdir/$f"; then | |
4574 # Source tree | |
4575 echo $srcdir/$f | |
4576 else | |
4577 # /dev/null tree | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
4578 { { echo "$as_me:4578: error: cannot find input file: $f" >&5 |
3 | 4579 echo "$as_me: error: cannot find input file: $f" >&2;} |
4580 { (exit 1); exit 1; }; } | |
4581 fi;; | |
4582 esac | |
4583 done` || { (exit 1); exit 1; } | |
4584 # Remove the trailing spaces. | |
4585 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
4586 | |
4587 EOF | |
4588 | |
4589 # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
4590 # `conftest.undefs', that substitutes the proper values into | |
4591 # config.h.in to produce config.h. The first handles `#define' | |
4592 # templates, and the second `#undef' templates. | |
4593 # And first: Protect against being on the right side of a sed subst in | |
4594 # config.status. Protect against being in an unquoted here document | |
4595 # in config.status. | |
4596 rm -f conftest.defines conftest.undefs | |
4597 # Using a here document instead of a string reduces the quoting nightmare. | |
4598 # Putting comments in sed scripts is not portable. | |
4599 # | |
4600 # `end' is used to avoid that the second main sed command (meant for | |
4601 # 0-ary CPP macros) applies to n-ary macro definitions. | |
4602 # See the Autoconf documentation for `clear'. | |
4603 cat >confdef2sed.sed <<\EOF | |
4604 s/[\\&,]/\\&/g | |
4605 s,[\\$`],\\&,g | |
4606 t clear | |
4607 : clear | |
4608 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp | |
4609 t end | |
4610 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
4611 : end | |
4612 EOF | |
4613 # If some macros were called several times there might be several times | |
4614 # the same #defines, which is useless. Nevertheless, we may not want to | |
4615 # sort them, since we want the *last* AC-DEFINE to be honored. | |
4616 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
4617 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
4618 rm -f confdef2sed.sed | |
4619 | |
4620 # This sed command replaces #undef with comments. This is necessary, for | |
4621 # example, in the case of _POSIX_SOURCE, which is predefined and required | |
4622 # on some systems where configure will not decide to define it. | |
4623 cat >>conftest.undefs <<\EOF | |
4624 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
4625 EOF | |
4626 | |
4627 # Break up conftest.defines because some shells have a limit on the size | |
4628 # of here documents, and old seds have small limits too (100 cmds). | |
4629 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
4630 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
4631 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
4632 echo ' :' >>$CONFIG_STATUS | |
4633 rm -f conftest.tail | |
4634 while grep . conftest.defines >/dev/null | |
4635 do | |
4636 # Write a limited-size here document to $tmp/defines.sed. | |
4637 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
4638 # Speed up: don't consider the non `#define' lines. | |
4639 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
4640 # Work around the forget-to-reset-the-flag bug. | |
4641 echo 't clr' >>$CONFIG_STATUS | |
4642 echo ': clr' >>$CONFIG_STATUS | |
4643 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
4644 echo 'CEOF | |
4645 sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
4646 rm -f $tmp/in | |
4647 mv $tmp/out $tmp/in | |
4648 ' >>$CONFIG_STATUS | |
4649 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
4650 rm -f conftest.defines | |
4651 mv conftest.tail conftest.defines | |
4652 done | |
4653 rm -f conftest.defines | |
4654 echo ' fi # egrep' >>$CONFIG_STATUS | |
4655 echo >>$CONFIG_STATUS | |
4656 | |
4657 # Break up conftest.undefs because some shells have a limit on the size | |
4658 # of here documents, and old seds have small limits too (100 cmds). | |
4659 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
4660 rm -f conftest.tail | |
4661 while grep . conftest.undefs >/dev/null | |
4662 do | |
4663 # Write a limited-size here document to $tmp/undefs.sed. | |
4664 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
4665 # Speed up: don't consider the non `#undef' | |
4666 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
4667 # Work around the forget-to-reset-the-flag bug. | |
4668 echo 't clr' >>$CONFIG_STATUS | |
4669 echo ': clr' >>$CONFIG_STATUS | |
4670 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
4671 echo 'CEOF | |
4672 sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
4673 rm -f $tmp/in | |
4674 mv $tmp/out $tmp/in | |
4675 ' >>$CONFIG_STATUS | |
4676 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
4677 rm -f conftest.undefs | |
4678 mv conftest.tail conftest.undefs | |
4679 done | |
4680 rm -f conftest.undefs | |
4681 | |
4682 cat >>$CONFIG_STATUS <<\EOF | |
4683 # Let's still pretend it is `configure' which instantiates (i.e., don't | |
4684 # use $as_me), people would be surprised to read: | |
4685 # /* config.h. Generated automatically by config.status. */ | |
4686 if test x"$ac_file" = x-; then | |
4687 echo "/* Generated automatically by configure. */" >$tmp/config.h | |
4688 else | |
4689 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h | |
4690 fi | |
4691 cat $tmp/in >>$tmp/config.h | |
4692 rm -f $tmp/in | |
4693 if test x"$ac_file" != x-; then | |
4694 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
4695 { echo "$as_me:4695: $ac_file is unchanged" >&5 |
3 | 4696 echo "$as_me: $ac_file is unchanged" >&6;} |
4697 else | |
4698 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
4699 X"$ac_file" : 'X\(//\)[^/]' \| \ | |
4700 X"$ac_file" : 'X\(//\)$' \| \ | |
4701 X"$ac_file" : 'X\(/\)' \| \ | |
4702 . : '\(.\)' 2>/dev/null || | |
4703 echo X"$ac_file" | | |
4704 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
4705 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
4706 /^X\(\/\/\)$/{ s//\1/; q; } | |
4707 /^X\(\/\).*/{ s//\1/; q; } | |
4708 s/.*/./; q'` | |
4709 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
4710 { case "$ac_dir" in | |
4711 [\\/]* | ?:[\\/]* ) as_incr_dir=;; | |
4712 *) as_incr_dir=.;; | |
4713 esac | |
4714 as_dummy="$ac_dir" | |
4715 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | |
4716 case $as_mkdir_dir in | |
4717 # Skip DOS drivespec | |
4718 ?:) as_incr_dir=$as_mkdir_dir ;; | |
4719 *) | |
4720 as_incr_dir=$as_incr_dir/$as_mkdir_dir | |
4721 test -d "$as_incr_dir" || mkdir "$as_incr_dir" | |
4722 ;; | |
4723 esac | |
4724 done; } | |
4725 | |
4726 fi | |
4727 rm -f $ac_file | |
4728 mv $tmp/config.h $ac_file | |
4729 fi | |
4730 else | |
4731 cat $tmp/config.h | |
4732 rm -f $tmp/config.h | |
4733 fi | |
4734 done | |
4735 EOF | |
4736 | |
4737 cat >>$CONFIG_STATUS <<\EOF | |
4738 | |
4739 { (exit 0); exit 0; } | |
4740 EOF | |
4741 chmod +x $CONFIG_STATUS | |
4742 ac_clean_files=$ac_clean_files_save | |
4743 | |
4744 # configure is writing to config.log, and then calls config.status. | |
4745 # config.status does its own redirection, appending to config.log. | |
4746 # Unfortunately, on DOS this fails, as config.log is still kept open | |
4747 # by configure, so config.status won't be able to write to it; its | |
4748 # output is simply discarded. So we exec the FD to /dev/null, | |
4749 # effectively closing config.log, so it can be properly (re)opened and | |
4750 # appended to by config.status. When coming back to configure, we | |
4751 # need to make the FD available again. | |
4752 if test "$no_create" != yes; then | |
4753 ac_cs_success=: | |
4754 exec 5>/dev/null | |
4755 $SHELL $CONFIG_STATUS || ac_cs_success=false | |
4756 exec 5>>config.log | |
4757 # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
4758 # would make configure fail if this is the last instruction. | |
4759 $ac_cs_success || { (exit 1); exit 1; } | |
4760 fi | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
4761 |