]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gprof/configure
* configure.in: Set version to 2.9.1.
[thirdparty/binutils-gdb.git] / gprof / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12.1
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --enable-shared build shared libraries [default=yes]
16 --enable-shared=PKGS only build shared libraries if the current package
17 appears as an element in the PKGS list"
18 ac_help="$ac_help
19 --enable-static build static libraries [default=yes]
20 --enable-static=PKGS only build shared libraries if the current package
21 appears as an element in the PKGS list"
22 ac_help="$ac_help
23 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
24 ac_help="$ac_help
25 --enable-maintainer-mode enable make rules and dependencies not useful
26 (and sometimes confusing) to the casual installer"
27
28 # Initialize some variables set by options.
29 # The variables have the same names as the options, with
30 # dashes changed to underlines.
31 build=NONE
32 cache_file=./config.cache
33 exec_prefix=NONE
34 host=NONE
35 no_create=
36 nonopt=NONE
37 no_recursion=
38 prefix=NONE
39 program_prefix=NONE
40 program_suffix=NONE
41 program_transform_name=s,x,x,
42 silent=
43 site=
44 srcdir=
45 target=NONE
46 verbose=
47 x_includes=NONE
48 x_libraries=NONE
49 bindir='${exec_prefix}/bin'
50 sbindir='${exec_prefix}/sbin'
51 libexecdir='${exec_prefix}/libexec'
52 datadir='${prefix}/share'
53 sysconfdir='${prefix}/etc'
54 sharedstatedir='${prefix}/com'
55 localstatedir='${prefix}/var'
56 libdir='${exec_prefix}/lib'
57 includedir='${prefix}/include'
58 oldincludedir='/usr/include'
59 infodir='${prefix}/info'
60 mandir='${prefix}/man'
61
62 # Initialize some other variables.
63 subdirs=
64 MFLAGS= MAKEFLAGS=
65 SHELL=${CONFIG_SHELL-/bin/sh}
66 # Maximum number of lines to put in a shell here document.
67 ac_max_here_lines=12
68
69 ac_prev=
70 for ac_option
71 do
72
73 # If the previous option needs an argument, assign it.
74 if test -n "$ac_prev"; then
75 eval "$ac_prev=\$ac_option"
76 ac_prev=
77 continue
78 fi
79
80 case "$ac_option" in
81 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
82 *) ac_optarg= ;;
83 esac
84
85 # Accept the important Cygnus configure options, so we can diagnose typos.
86
87 case "$ac_option" in
88
89 -bindir | --bindir | --bindi | --bind | --bin | --bi)
90 ac_prev=bindir ;;
91 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
92 bindir="$ac_optarg" ;;
93
94 -build | --build | --buil | --bui | --bu)
95 ac_prev=build ;;
96 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
97 build="$ac_optarg" ;;
98
99 -cache-file | --cache-file | --cache-fil | --cache-fi \
100 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
101 ac_prev=cache_file ;;
102 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
103 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
104 cache_file="$ac_optarg" ;;
105
106 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
107 ac_prev=datadir ;;
108 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
109 | --da=*)
110 datadir="$ac_optarg" ;;
111
112 -disable-* | --disable-*)
113 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
114 # Reject names that are not valid shell variable names.
115 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
116 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
117 fi
118 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
119 eval "enable_${ac_feature}=no" ;;
120
121 -enable-* | --enable-*)
122 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
123 # Reject names that are not valid shell variable names.
124 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
125 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
126 fi
127 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
128 case "$ac_option" in
129 *=*) ;;
130 *) ac_optarg=yes ;;
131 esac
132 eval "enable_${ac_feature}='$ac_optarg'" ;;
133
134 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
135 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
136 | --exec | --exe | --ex)
137 ac_prev=exec_prefix ;;
138 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
139 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
140 | --exec=* | --exe=* | --ex=*)
141 exec_prefix="$ac_optarg" ;;
142
143 -gas | --gas | --ga | --g)
144 # Obsolete; use --with-gas.
145 with_gas=yes ;;
146
147 -help | --help | --hel | --he)
148 # Omit some internal or obsolete options to make the list less imposing.
149 # This message is too long to be a string in the A/UX 3.1 sh.
150 cat << EOF
151 Usage: configure [options] [host]
152 Options: [defaults in brackets after descriptions]
153 Configuration:
154 --cache-file=FILE cache test results in FILE
155 --help print this message
156 --no-create do not create output files
157 --quiet, --silent do not print \`checking...' messages
158 --version print the version of autoconf that created configure
159 Directory and file names:
160 --prefix=PREFIX install architecture-independent files in PREFIX
161 [$ac_default_prefix]
162 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
163 [same as prefix]
164 --bindir=DIR user executables in DIR [EPREFIX/bin]
165 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
166 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
167 --datadir=DIR read-only architecture-independent data in DIR
168 [PREFIX/share]
169 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
170 --sharedstatedir=DIR modifiable architecture-independent data in DIR
171 [PREFIX/com]
172 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
173 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
174 --includedir=DIR C header files in DIR [PREFIX/include]
175 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
176 --infodir=DIR info documentation in DIR [PREFIX/info]
177 --mandir=DIR man documentation in DIR [PREFIX/man]
178 --srcdir=DIR find the sources in DIR [configure dir or ..]
179 --program-prefix=PREFIX prepend PREFIX to installed program names
180 --program-suffix=SUFFIX append SUFFIX to installed program names
181 --program-transform-name=PROGRAM
182 run sed PROGRAM on installed program names
183 EOF
184 cat << EOF
185 Host type:
186 --build=BUILD configure for building on BUILD [BUILD=HOST]
187 --host=HOST configure for HOST [guessed]
188 --target=TARGET configure for TARGET [TARGET=HOST]
189 Features and packages:
190 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
191 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
192 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
193 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
194 --x-includes=DIR X include files are in DIR
195 --x-libraries=DIR X library files are in DIR
196 EOF
197 if test -n "$ac_help"; then
198 echo "--enable and --with options recognized:$ac_help"
199 fi
200 exit 0 ;;
201
202 -host | --host | --hos | --ho)
203 ac_prev=host ;;
204 -host=* | --host=* | --hos=* | --ho=*)
205 host="$ac_optarg" ;;
206
207 -includedir | --includedir | --includedi | --included | --include \
208 | --includ | --inclu | --incl | --inc)
209 ac_prev=includedir ;;
210 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
211 | --includ=* | --inclu=* | --incl=* | --inc=*)
212 includedir="$ac_optarg" ;;
213
214 -infodir | --infodir | --infodi | --infod | --info | --inf)
215 ac_prev=infodir ;;
216 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
217 infodir="$ac_optarg" ;;
218
219 -libdir | --libdir | --libdi | --libd)
220 ac_prev=libdir ;;
221 -libdir=* | --libdir=* | --libdi=* | --libd=*)
222 libdir="$ac_optarg" ;;
223
224 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
225 | --libexe | --libex | --libe)
226 ac_prev=libexecdir ;;
227 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
228 | --libexe=* | --libex=* | --libe=*)
229 libexecdir="$ac_optarg" ;;
230
231 -localstatedir | --localstatedir | --localstatedi | --localstated \
232 | --localstate | --localstat | --localsta | --localst \
233 | --locals | --local | --loca | --loc | --lo)
234 ac_prev=localstatedir ;;
235 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
236 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
237 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
238 localstatedir="$ac_optarg" ;;
239
240 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
241 ac_prev=mandir ;;
242 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
243 mandir="$ac_optarg" ;;
244
245 -nfp | --nfp | --nf)
246 # Obsolete; use --without-fp.
247 with_fp=no ;;
248
249 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
250 | --no-cr | --no-c)
251 no_create=yes ;;
252
253 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
254 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
255 no_recursion=yes ;;
256
257 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
258 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
259 | --oldin | --oldi | --old | --ol | --o)
260 ac_prev=oldincludedir ;;
261 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
262 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
263 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
264 oldincludedir="$ac_optarg" ;;
265
266 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
267 ac_prev=prefix ;;
268 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
269 prefix="$ac_optarg" ;;
270
271 -program-prefix | --program-prefix | --program-prefi | --program-pref \
272 | --program-pre | --program-pr | --program-p)
273 ac_prev=program_prefix ;;
274 -program-prefix=* | --program-prefix=* | --program-prefi=* \
275 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
276 program_prefix="$ac_optarg" ;;
277
278 -program-suffix | --program-suffix | --program-suffi | --program-suff \
279 | --program-suf | --program-su | --program-s)
280 ac_prev=program_suffix ;;
281 -program-suffix=* | --program-suffix=* | --program-suffi=* \
282 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
283 program_suffix="$ac_optarg" ;;
284
285 -program-transform-name | --program-transform-name \
286 | --program-transform-nam | --program-transform-na \
287 | --program-transform-n | --program-transform- \
288 | --program-transform | --program-transfor \
289 | --program-transfo | --program-transf \
290 | --program-trans | --program-tran \
291 | --progr-tra | --program-tr | --program-t)
292 ac_prev=program_transform_name ;;
293 -program-transform-name=* | --program-transform-name=* \
294 | --program-transform-nam=* | --program-transform-na=* \
295 | --program-transform-n=* | --program-transform-=* \
296 | --program-transform=* | --program-transfor=* \
297 | --program-transfo=* | --program-transf=* \
298 | --program-trans=* | --program-tran=* \
299 | --progr-tra=* | --program-tr=* | --program-t=*)
300 program_transform_name="$ac_optarg" ;;
301
302 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
303 | -silent | --silent | --silen | --sile | --sil)
304 silent=yes ;;
305
306 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
307 ac_prev=sbindir ;;
308 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
309 | --sbi=* | --sb=*)
310 sbindir="$ac_optarg" ;;
311
312 -sharedstatedir | --sharedstatedir | --sharedstatedi \
313 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
314 | --sharedst | --shareds | --shared | --share | --shar \
315 | --sha | --sh)
316 ac_prev=sharedstatedir ;;
317 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
318 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
319 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
320 | --sha=* | --sh=*)
321 sharedstatedir="$ac_optarg" ;;
322
323 -site | --site | --sit)
324 ac_prev=site ;;
325 -site=* | --site=* | --sit=*)
326 site="$ac_optarg" ;;
327
328 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
329 ac_prev=srcdir ;;
330 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
331 srcdir="$ac_optarg" ;;
332
333 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
334 | --syscon | --sysco | --sysc | --sys | --sy)
335 ac_prev=sysconfdir ;;
336 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
337 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
338 sysconfdir="$ac_optarg" ;;
339
340 -target | --target | --targe | --targ | --tar | --ta | --t)
341 ac_prev=target ;;
342 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
343 target="$ac_optarg" ;;
344
345 -v | -verbose | --verbose | --verbos | --verbo | --verb)
346 verbose=yes ;;
347
348 -version | --version | --versio | --versi | --vers)
349 echo "configure generated by autoconf version 2.12.1"
350 exit 0 ;;
351
352 -with-* | --with-*)
353 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
354 # Reject names that are not valid shell variable names.
355 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
356 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
357 fi
358 ac_package=`echo $ac_package| sed 's/-/_/g'`
359 case "$ac_option" in
360 *=*) ;;
361 *) ac_optarg=yes ;;
362 esac
363 eval "with_${ac_package}='$ac_optarg'" ;;
364
365 -without-* | --without-*)
366 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
367 # Reject names that are not valid shell variable names.
368 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
369 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
370 fi
371 ac_package=`echo $ac_package| sed 's/-/_/g'`
372 eval "with_${ac_package}=no" ;;
373
374 --x)
375 # Obsolete; use --with-x.
376 with_x=yes ;;
377
378 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
379 | --x-incl | --x-inc | --x-in | --x-i)
380 ac_prev=x_includes ;;
381 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
382 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
383 x_includes="$ac_optarg" ;;
384
385 -x-libraries | --x-libraries | --x-librarie | --x-librari \
386 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
387 ac_prev=x_libraries ;;
388 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
389 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
390 x_libraries="$ac_optarg" ;;
391
392 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
393 ;;
394
395 *)
396 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
397 echo "configure: warning: $ac_option: invalid host type" 1>&2
398 fi
399 if test "x$nonopt" != xNONE; then
400 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
401 fi
402 nonopt="$ac_option"
403 ;;
404
405 esac
406 done
407
408 if test -n "$ac_prev"; then
409 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
410 fi
411
412 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
413
414 # File descriptor usage:
415 # 0 standard input
416 # 1 file creation
417 # 2 errors and warnings
418 # 3 some systems may open it to /dev/tty
419 # 4 used on the Kubota Titan
420 # 6 checking for... messages and results
421 # 5 compiler messages saved in config.log
422 if test "$silent" = yes; then
423 exec 6>/dev/null
424 else
425 exec 6>&1
426 fi
427 exec 5>./config.log
428
429 echo "\
430 This file contains any messages produced by compilers while
431 running configure, to aid debugging if configure makes a mistake.
432 " 1>&5
433
434 # Strip out --no-create and --no-recursion so they do not pile up.
435 # Also quote any args containing shell metacharacters.
436 ac_configure_args=
437 for ac_arg
438 do
439 case "$ac_arg" in
440 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
441 | --no-cr | --no-c) ;;
442 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
443 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
444 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
445 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
446 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
447 esac
448 done
449
450 # NLS nuisances.
451 # Only set these to C if already set. These must not be set unconditionally
452 # because not all systems understand e.g. LANG=C (notably SCO).
453 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
454 # Non-C LC_CTYPE values break the ctype check.
455 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
456 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
457 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
458 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
459
460 # confdefs.h avoids OS command line length limits that DEFS can exceed.
461 rm -rf conftest* confdefs.h
462 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
463 echo > confdefs.h
464
465 # A filename unique to this package, relative to the directory that
466 # configure is in, which we can look for to find out if srcdir is correct.
467 ac_unique_file=gprof.c
468
469 # Find the source files, if location was not specified.
470 if test -z "$srcdir"; then
471 ac_srcdir_defaulted=yes
472 # Try the directory containing this script, then its parent.
473 ac_prog=$0
474 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
475 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
476 srcdir=$ac_confdir
477 if test ! -r $srcdir/$ac_unique_file; then
478 srcdir=..
479 fi
480 else
481 ac_srcdir_defaulted=no
482 fi
483 if test ! -r $srcdir/$ac_unique_file; then
484 if test "$ac_srcdir_defaulted" = yes; then
485 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
486 else
487 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
488 fi
489 fi
490 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
491
492 # Prefer explicitly selected file to automatically selected ones.
493 if test -z "$CONFIG_SITE"; then
494 if test "x$prefix" != xNONE; then
495 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
496 else
497 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
498 fi
499 fi
500 for ac_site_file in $CONFIG_SITE; do
501 if test -r "$ac_site_file"; then
502 echo "loading site script $ac_site_file"
503 . "$ac_site_file"
504 fi
505 done
506
507 if test -r "$cache_file"; then
508 echo "loading cache $cache_file"
509 . $cache_file
510 else
511 echo "creating cache $cache_file"
512 > $cache_file
513 fi
514
515 ac_ext=c
516 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
517 ac_cpp='$CPP $CPPFLAGS'
518 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
519 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
520 cross_compiling=$ac_cv_prog_cc_cross
521
522 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
523 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
524 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
525 ac_n= ac_c='
526 ' ac_t=' '
527 else
528 ac_n=-n ac_c= ac_t=
529 fi
530 else
531 ac_n= ac_c='\c' ac_t=
532 fi
533
534
535
536 ac_aux_dir=
537 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
538 if test -f $ac_dir/install-sh; then
539 ac_aux_dir=$ac_dir
540 ac_install_sh="$ac_aux_dir/install-sh -c"
541 break
542 elif test -f $ac_dir/install.sh; then
543 ac_aux_dir=$ac_dir
544 ac_install_sh="$ac_aux_dir/install.sh -c"
545 break
546 fi
547 done
548 if test -z "$ac_aux_dir"; then
549 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
550 fi
551 ac_config_guess=$ac_aux_dir/config.guess
552 ac_config_sub=$ac_aux_dir/config.sub
553 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
554
555
556 # Do some error checking and defaulting for the host and target type.
557 # The inputs are:
558 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
559 #
560 # The rules are:
561 # 1. You are not allowed to specify --host, --target, and nonopt at the
562 # same time.
563 # 2. Host defaults to nonopt.
564 # 3. If nonopt is not specified, then host defaults to the current host,
565 # as determined by config.guess.
566 # 4. Target and build default to nonopt.
567 # 5. If nonopt is not specified, then target and build default to host.
568
569 # The aliases save the names the user supplied, while $host etc.
570 # will get canonicalized.
571 case $host---$target---$nonopt in
572 NONE---*---* | *---NONE---* | *---*---NONE) ;;
573 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
574 esac
575
576
577 # Make sure we can run config.sub.
578 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
579 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
580 fi
581
582 echo $ac_n "checking host system type""... $ac_c" 1>&6
583 echo "configure:584: checking host system type" >&5
584
585 host_alias=$host
586 case "$host_alias" in
587 NONE)
588 case $nonopt in
589 NONE)
590 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
591 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
592 fi ;;
593 *) host_alias=$nonopt ;;
594 esac ;;
595 esac
596
597 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
598 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
599 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
600 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
601 echo "$ac_t""$host" 1>&6
602
603 echo $ac_n "checking target system type""... $ac_c" 1>&6
604 echo "configure:605: checking target system type" >&5
605
606 target_alias=$target
607 case "$target_alias" in
608 NONE)
609 case $nonopt in
610 NONE) target_alias=$host_alias ;;
611 *) target_alias=$nonopt ;;
612 esac ;;
613 esac
614
615 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
616 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
617 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
618 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
619 echo "$ac_t""$target" 1>&6
620
621 echo $ac_n "checking build system type""... $ac_c" 1>&6
622 echo "configure:623: checking build system type" >&5
623
624 build_alias=$build
625 case "$build_alias" in
626 NONE)
627 case $nonopt in
628 NONE) build_alias=$host_alias ;;
629 *) build_alias=$nonopt ;;
630 esac ;;
631 esac
632
633 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
634 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
635 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
636 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
637 echo "$ac_t""$build" 1>&6
638
639 test "$host_alias" != "$target_alias" &&
640 test "$program_prefix$program_suffix$program_transform_name" = \
641 NONENONEs,x,x, &&
642 program_prefix=${target_alias}-
643
644
645 # Find a good install program. We prefer a C program (faster),
646 # so one script is as good as another. But avoid the broken or
647 # incompatible versions:
648 # SysV /etc/install, /usr/sbin/install
649 # SunOS /usr/etc/install
650 # IRIX /sbin/install
651 # AIX /bin/install
652 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
653 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
654 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
655 # ./install, which can be erroneously created by make from ./install.sh.
656 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
657 echo "configure:658: checking for a BSD compatible install" >&5
658 if test -z "$INSTALL"; then
659 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
660 echo $ac_n "(cached) $ac_c" 1>&6
661 else
662 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
663 for ac_dir in $PATH; do
664 # Account for people who put trailing slashes in PATH elements.
665 case "$ac_dir/" in
666 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
667 *)
668 # OSF1 and SCO ODT 3.0 have their own names for install.
669 # Don't use installbsd from OSF since it installs stuff as root
670 # by default.
671 for ac_prog in ginstall scoinst install; do
672 if test -f $ac_dir/$ac_prog; then
673 if test $ac_prog = install &&
674 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
675 # AIX install. It has an incompatible calling convention.
676 :
677 else
678 ac_cv_path_install="$ac_dir/$ac_prog -c"
679 break 2
680 fi
681 fi
682 done
683 ;;
684 esac
685 done
686 IFS="$ac_save_IFS"
687
688 fi
689 if test "${ac_cv_path_install+set}" = set; then
690 INSTALL="$ac_cv_path_install"
691 else
692 # As a last resort, use the slow shell script. We don't cache a
693 # path for INSTALL within a source directory, because that will
694 # break other packages using the cache if that directory is
695 # removed, or if the path is relative.
696 INSTALL="$ac_install_sh"
697 fi
698 fi
699 echo "$ac_t""$INSTALL" 1>&6
700
701 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
702 # It thinks the first close brace ends the variable substitution.
703 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
704
705 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
706
707
708 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
709
710 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
711 echo "configure:712: checking whether build environment is sane" >&5
712 # Just in case
713 sleep 1
714 echo timestamp > conftestfile
715 # Do `set' in a subshell so we don't clobber the current shell's
716 # arguments. Must try -L first in case configure is actually a
717 # symlink; some systems play weird games with the mod time of symlinks
718 # (eg FreeBSD returns the mod time of the symlink's containing
719 # directory).
720 if (
721 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
722 if test "$*" = "X"; then
723 # -L didn't work.
724 set X `ls -t $srcdir/configure conftestfile`
725 fi
726 if test "$*" != "X $srcdir/configure conftestfile" \
727 && test "$*" != "X conftestfile $srcdir/configure"; then
728
729 # If neither matched, then we have a broken ls. This can happen
730 # if, for instance, CONFIG_SHELL is bash and it inherits a
731 # broken ls alias from the environment. This has actually
732 # happened. Such a system could not be considered "sane".
733 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
734 alias in your environment" 1>&2; exit 1; }
735 fi
736
737 test "$2" = conftestfile
738 )
739 then
740 # Ok.
741 :
742 else
743 { echo "configure: error: newly created file is older than distributed files!
744 Check your system clock" 1>&2; exit 1; }
745 fi
746 rm -f conftest*
747 echo "$ac_t""yes" 1>&6
748 if test "$program_transform_name" = s,x,x,; then
749 program_transform_name=
750 else
751 # Double any \ or $. echo might interpret backslashes.
752 cat <<\EOF_SED > conftestsed
753 s,\\,\\\\,g; s,\$,$$,g
754 EOF_SED
755 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
756 rm -f conftestsed
757 fi
758 test "$program_prefix" != NONE &&
759 program_transform_name="s,^,${program_prefix},; $program_transform_name"
760 # Use a double $ so make ignores it.
761 test "$program_suffix" != NONE &&
762 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
763
764 # sed with no file args requires a program.
765 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
766
767 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
768 echo "configure:769: checking whether ${MAKE-make} sets \${MAKE}" >&5
769 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
770 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
771 echo $ac_n "(cached) $ac_c" 1>&6
772 else
773 cat > conftestmake <<\EOF
774 all:
775 @echo 'ac_maketemp="${MAKE}"'
776 EOF
777 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
778 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
779 if test -n "$ac_maketemp"; then
780 eval ac_cv_prog_make_${ac_make}_set=yes
781 else
782 eval ac_cv_prog_make_${ac_make}_set=no
783 fi
784 rm -f conftestmake
785 fi
786 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
787 echo "$ac_t""yes" 1>&6
788 SET_MAKE=
789 else
790 echo "$ac_t""no" 1>&6
791 SET_MAKE="MAKE=${MAKE-make}"
792 fi
793
794
795 PACKAGE=gprof
796
797 VERSION=2.9.1
798
799 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
800 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
801 fi
802 cat >> confdefs.h <<EOF
803 #define PACKAGE "$PACKAGE"
804 EOF
805
806 cat >> confdefs.h <<EOF
807 #define VERSION "$VERSION"
808 EOF
809
810
811
812 missing_dir=`cd $ac_aux_dir && pwd`
813 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
814 echo "configure:815: checking for working aclocal" >&5
815 # Run test in a subshell; some versions of sh will print an error if
816 # an executable is not found, even if stderr is redirected.
817 # Redirect stdin to placate older versions of autoconf. Sigh.
818 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
819 ACLOCAL=aclocal
820 echo "$ac_t""found" 1>&6
821 else
822 ACLOCAL="$missing_dir/missing aclocal"
823 echo "$ac_t""missing" 1>&6
824 fi
825
826 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
827 echo "configure:828: checking for working autoconf" >&5
828 # Run test in a subshell; some versions of sh will print an error if
829 # an executable is not found, even if stderr is redirected.
830 # Redirect stdin to placate older versions of autoconf. Sigh.
831 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
832 AUTOCONF=autoconf
833 echo "$ac_t""found" 1>&6
834 else
835 AUTOCONF="$missing_dir/missing autoconf"
836 echo "$ac_t""missing" 1>&6
837 fi
838
839 echo $ac_n "checking for working automake""... $ac_c" 1>&6
840 echo "configure:841: checking for working automake" >&5
841 # Run test in a subshell; some versions of sh will print an error if
842 # an executable is not found, even if stderr is redirected.
843 # Redirect stdin to placate older versions of autoconf. Sigh.
844 if (automake --version) < /dev/null > /dev/null 2>&1; then
845 AUTOMAKE=automake
846 echo "$ac_t""found" 1>&6
847 else
848 AUTOMAKE="$missing_dir/missing automake"
849 echo "$ac_t""missing" 1>&6
850 fi
851
852 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
853 echo "configure:854: checking for working autoheader" >&5
854 # Run test in a subshell; some versions of sh will print an error if
855 # an executable is not found, even if stderr is redirected.
856 # Redirect stdin to placate older versions of autoconf. Sigh.
857 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
858 AUTOHEADER=autoheader
859 echo "$ac_t""found" 1>&6
860 else
861 AUTOHEADER="$missing_dir/missing autoheader"
862 echo "$ac_t""missing" 1>&6
863 fi
864
865 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
866 echo "configure:867: checking for working makeinfo" >&5
867 # Run test in a subshell; some versions of sh will print an error if
868 # an executable is not found, even if stderr is redirected.
869 # Redirect stdin to placate older versions of autoconf. Sigh.
870 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
871 MAKEINFO=makeinfo
872 echo "$ac_t""found" 1>&6
873 else
874 MAKEINFO="$missing_dir/missing makeinfo"
875 echo "$ac_t""missing" 1>&6
876 fi
877
878
879
880 # Check whether --enable-shared or --disable-shared was given.
881 if test "${enable_shared+set}" = set; then
882 enableval="$enable_shared"
883 p=${PACKAGE-default}
884 case "$enableval" in
885 yes) enable_shared=yes ;;
886 no) enable_shared=no ;;
887 *)
888 enable_shared=no
889 # Look at the argument we got. We use all the common list separators.
890 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
891 for pkg in $enableval; do
892 if test "X$pkg" = "X$p"; then
893 enable_shared=yes
894 fi
895 done
896 IFS="$ac_save_ifs"
897 ;;
898 esac
899 else
900 enable_shared=yes
901 fi
902
903 # Check whether --enable-static or --disable-static was given.
904 if test "${enable_static+set}" = set; then
905 enableval="$enable_static"
906 p=${PACKAGE-default}
907 case "$enableval" in
908 yes) enable_static=yes ;;
909 no) enable_static=no ;;
910 *)
911 enable_static=no
912 # Look at the argument we got. We use all the common list separators.
913 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
914 for pkg in $enableval; do
915 if test "X$pkg" = "X$p"; then
916 enable_static=yes
917 fi
918 done
919 IFS="$ac_save_ifs"
920 ;;
921 esac
922 else
923 enable_static=yes
924 fi
925
926 # Extract the first word of "ranlib", so it can be a program name with args.
927 set dummy ranlib; ac_word=$2
928 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
929 echo "configure:930: checking for $ac_word" >&5
930 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
931 echo $ac_n "(cached) $ac_c" 1>&6
932 else
933 if test -n "$RANLIB"; then
934 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
935 else
936 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
937 for ac_dir in $PATH; do
938 test -z "$ac_dir" && ac_dir=.
939 if test -f $ac_dir/$ac_word; then
940 ac_cv_prog_RANLIB="ranlib"
941 break
942 fi
943 done
944 IFS="$ac_save_ifs"
945 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
946 fi
947 fi
948 RANLIB="$ac_cv_prog_RANLIB"
949 if test -n "$RANLIB"; then
950 echo "$ac_t""$RANLIB" 1>&6
951 else
952 echo "$ac_t""no" 1>&6
953 fi
954
955 # Extract the first word of "gcc", so it can be a program name with args.
956 set dummy gcc; ac_word=$2
957 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
958 echo "configure:959: checking for $ac_word" >&5
959 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
960 echo $ac_n "(cached) $ac_c" 1>&6
961 else
962 if test -n "$CC"; then
963 ac_cv_prog_CC="$CC" # Let the user override the test.
964 else
965 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
966 for ac_dir in $PATH; do
967 test -z "$ac_dir" && ac_dir=.
968 if test -f $ac_dir/$ac_word; then
969 ac_cv_prog_CC="gcc"
970 break
971 fi
972 done
973 IFS="$ac_save_ifs"
974 fi
975 fi
976 CC="$ac_cv_prog_CC"
977 if test -n "$CC"; then
978 echo "$ac_t""$CC" 1>&6
979 else
980 echo "$ac_t""no" 1>&6
981 fi
982
983 if test -z "$CC"; then
984 # Extract the first word of "cc", so it can be a program name with args.
985 set dummy cc; ac_word=$2
986 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
987 echo "configure:988: checking for $ac_word" >&5
988 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
989 echo $ac_n "(cached) $ac_c" 1>&6
990 else
991 if test -n "$CC"; then
992 ac_cv_prog_CC="$CC" # Let the user override the test.
993 else
994 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
995 ac_prog_rejected=no
996 for ac_dir in $PATH; do
997 test -z "$ac_dir" && ac_dir=.
998 if test -f $ac_dir/$ac_word; then
999 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1000 ac_prog_rejected=yes
1001 continue
1002 fi
1003 ac_cv_prog_CC="cc"
1004 break
1005 fi
1006 done
1007 IFS="$ac_save_ifs"
1008 if test $ac_prog_rejected = yes; then
1009 # We found a bogon in the path, so make sure we never use it.
1010 set dummy $ac_cv_prog_CC
1011 shift
1012 if test $# -gt 0; then
1013 # We chose a different compiler from the bogus one.
1014 # However, it has the same basename, so the bogon will be chosen
1015 # first if we set CC to just the basename; use the full file name.
1016 shift
1017 set dummy "$ac_dir/$ac_word" "$@"
1018 shift
1019 ac_cv_prog_CC="$@"
1020 fi
1021 fi
1022 fi
1023 fi
1024 CC="$ac_cv_prog_CC"
1025 if test -n "$CC"; then
1026 echo "$ac_t""$CC" 1>&6
1027 else
1028 echo "$ac_t""no" 1>&6
1029 fi
1030
1031 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1032 fi
1033
1034 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1035 echo "configure:1036: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1036
1037 ac_ext=c
1038 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1039 ac_cpp='$CPP $CPPFLAGS'
1040 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1041 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1042 cross_compiling=$ac_cv_prog_cc_cross
1043
1044 cat > conftest.$ac_ext <<EOF
1045 #line 1046 "configure"
1046 #include "confdefs.h"
1047 main(){return(0);}
1048 EOF
1049 if { (eval echo configure:1050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1050 ac_cv_prog_cc_works=yes
1051 # If we can't run a trivial program, we are probably using a cross compiler.
1052 if (./conftest; exit) 2>/dev/null; then
1053 ac_cv_prog_cc_cross=no
1054 else
1055 ac_cv_prog_cc_cross=yes
1056 fi
1057 else
1058 echo "configure: failed program was:" >&5
1059 cat conftest.$ac_ext >&5
1060 ac_cv_prog_cc_works=no
1061 fi
1062 rm -fr conftest*
1063
1064 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1065 if test $ac_cv_prog_cc_works = no; then
1066 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1067 fi
1068 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1069 echo "configure:1070: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1070 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1071 cross_compiling=$ac_cv_prog_cc_cross
1072
1073 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1074 echo "configure:1075: checking whether we are using GNU C" >&5
1075 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1076 echo $ac_n "(cached) $ac_c" 1>&6
1077 else
1078 cat > conftest.c <<EOF
1079 #ifdef __GNUC__
1080 yes;
1081 #endif
1082 EOF
1083 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1084: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1084 ac_cv_prog_gcc=yes
1085 else
1086 ac_cv_prog_gcc=no
1087 fi
1088 fi
1089
1090 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1091
1092 if test $ac_cv_prog_gcc = yes; then
1093 GCC=yes
1094 ac_test_CFLAGS="${CFLAGS+set}"
1095 ac_save_CFLAGS="$CFLAGS"
1096 CFLAGS=
1097 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1098 echo "configure:1099: checking whether ${CC-cc} accepts -g" >&5
1099 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1100 echo $ac_n "(cached) $ac_c" 1>&6
1101 else
1102 echo 'void f(){}' > conftest.c
1103 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1104 ac_cv_prog_cc_g=yes
1105 else
1106 ac_cv_prog_cc_g=no
1107 fi
1108 rm -f conftest*
1109
1110 fi
1111
1112 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1113 if test "$ac_test_CFLAGS" = set; then
1114 CFLAGS="$ac_save_CFLAGS"
1115 elif test $ac_cv_prog_cc_g = yes; then
1116 CFLAGS="-g -O2"
1117 else
1118 CFLAGS="-O2"
1119 fi
1120 else
1121 GCC=
1122 test "${CFLAGS+set}" = set || CFLAGS="-g"
1123 fi
1124
1125 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1126 if test "${with_gnu_ld+set}" = set; then
1127 withval="$with_gnu_ld"
1128 test "$withval" = no || with_gnu_ld=yes
1129 else
1130 with_gnu_ld=no
1131 fi
1132
1133
1134 ac_prog=ld
1135 if test "$ac_cv_prog_gcc" = yes; then
1136 # Check if gcc -print-prog-name=ld gives a path.
1137 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1138 echo "configure:1139: checking for ld used by GCC" >&5
1139 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1140 case "$ac_prog" in
1141 # Accept absolute paths.
1142 /* | [A-Za-z]:\\*)
1143 test -z "$LD" && LD="$ac_prog"
1144 ;;
1145 "")
1146 # If it fails, then pretend we aren't using GCC.
1147 ac_prog=ld
1148 ;;
1149 *)
1150 # If it is relative, then search for the first ld in PATH.
1151 with_gnu_ld=unknown
1152 ;;
1153 esac
1154 elif test "$with_gnu_ld" = yes; then
1155 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1156 echo "configure:1157: checking for GNU ld" >&5
1157 else
1158 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1159 echo "configure:1160: checking for non-GNU ld" >&5
1160 fi
1161 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1162 echo $ac_n "(cached) $ac_c" 1>&6
1163 else
1164 if test -z "$LD"; then
1165 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1166 for ac_dir in $PATH; do
1167 test -z "$ac_dir" && ac_dir=.
1168 if test -f "$ac_dir/$ac_prog"; then
1169 ac_cv_path_LD="$ac_dir/$ac_prog"
1170 # Check to see if the program is GNU ld. I'd rather use --version,
1171 # but apparently some GNU ld's only accept -v.
1172 # Break only if it was the GNU/non-GNU ld that we prefer.
1173 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1174 test "$with_gnu_ld" != no && break
1175 else
1176 test "$with_gnu_ld" != yes && break
1177 fi
1178 fi
1179 done
1180 IFS="$ac_save_ifs"
1181 else
1182 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1183 fi
1184 fi
1185
1186 LD="$ac_cv_path_LD"
1187 if test -n "$LD"; then
1188 echo "$ac_t""$LD" 1>&6
1189 else
1190 echo "$ac_t""no" 1>&6
1191 fi
1192 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1193
1194 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1195 echo "configure:1196: checking if the linker ($LD) is GNU ld" >&5
1196 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1197 echo $ac_n "(cached) $ac_c" 1>&6
1198 else
1199 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1200 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1201 ac_cv_prog_gnu_ld=yes
1202 else
1203 ac_cv_prog_gnu_ld=no
1204 fi
1205 fi
1206
1207 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1208
1209
1210 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1211 echo "configure:1212: checking for BSD-compatible nm" >&5
1212 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1213 echo $ac_n "(cached) $ac_c" 1>&6
1214 else
1215 case "$NM" in
1216 /* | [A-Za-z]:\\*)
1217 ac_cv_path_NM="$NM" # Let the user override the test with a path.
1218 ;;
1219 *)
1220 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1221 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
1222 test -z "$ac_dir" && ac_dir=.
1223 if test -f $ac_dir/nm; then
1224 # Check to see if the nm accepts a BSD-compat flag.
1225 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1226 # nm: unknown option "B" ignored
1227 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1228 ac_cv_path_NM="$ac_dir/nm -B"
1229 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1230 ac_cv_path_NM="$ac_dir/nm -p"
1231 else
1232 ac_cv_path_NM="$ac_dir/nm"
1233 fi
1234 break
1235 fi
1236 done
1237 IFS="$ac_save_ifs"
1238 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1239 ;;
1240 esac
1241 fi
1242
1243 NM="$ac_cv_path_NM"
1244 echo "$ac_t""$NM" 1>&6
1245
1246
1247 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1248 echo "configure:1249: checking whether ln -s works" >&5
1249 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1250 echo $ac_n "(cached) $ac_c" 1>&6
1251 else
1252 rm -f conftestdata
1253 if ln -s X conftestdata 2>/dev/null
1254 then
1255 rm -f conftestdata
1256 ac_cv_prog_LN_S="ln -s"
1257 else
1258 ac_cv_prog_LN_S=ln
1259 fi
1260 fi
1261 LN_S="$ac_cv_prog_LN_S"
1262 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1263 echo "$ac_t""yes" 1>&6
1264 else
1265 echo "$ac_t""no" 1>&6
1266 fi
1267
1268 # Always use our own libtool.
1269 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1270
1271 # Check for any special flags to pass to ltconfig.
1272 libtool_flags=
1273 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1274 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1275 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
1276 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1277 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1278
1279 # Some flags need to be propagated to the compiler or linker for good
1280 # libtool support.
1281 case "$host" in
1282 *-*-irix6*)
1283 # Find out which ABI we are using.
1284 echo '#line 1285 "configure"' > conftest.$ac_ext
1285 if { (eval echo configure:1286: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1286 case "`/usr/bin/file conftest.o`" in
1287 *32-bit*)
1288 LD="${LD-ld} -32"
1289 ;;
1290 *N32*)
1291 LD="${LD-ld} -n32"
1292 ;;
1293 *64-bit*)
1294 LD="${LD-ld} -64"
1295 ;;
1296 esac
1297 fi
1298 rm -rf conftest*
1299 ;;
1300
1301 *-*-sco3.2v5*)
1302 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1303 CFLAGS="$CFLAGS -belf"
1304 ;;
1305 esac
1306
1307 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1308 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1309 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
1310 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
1311 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
1312 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1313
1314
1315
1316
1317
1318
1319 # Extract the first word of "gcc", so it can be a program name with args.
1320 set dummy gcc; ac_word=$2
1321 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1322 echo "configure:1323: checking for $ac_word" >&5
1323 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1324 echo $ac_n "(cached) $ac_c" 1>&6
1325 else
1326 if test -n "$CC"; then
1327 ac_cv_prog_CC="$CC" # Let the user override the test.
1328 else
1329 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1330 for ac_dir in $PATH; do
1331 test -z "$ac_dir" && ac_dir=.
1332 if test -f $ac_dir/$ac_word; then
1333 ac_cv_prog_CC="gcc"
1334 break
1335 fi
1336 done
1337 IFS="$ac_save_ifs"
1338 fi
1339 fi
1340 CC="$ac_cv_prog_CC"
1341 if test -n "$CC"; then
1342 echo "$ac_t""$CC" 1>&6
1343 else
1344 echo "$ac_t""no" 1>&6
1345 fi
1346
1347 if test -z "$CC"; then
1348 # Extract the first word of "cc", so it can be a program name with args.
1349 set dummy cc; ac_word=$2
1350 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1351 echo "configure:1352: checking for $ac_word" >&5
1352 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1353 echo $ac_n "(cached) $ac_c" 1>&6
1354 else
1355 if test -n "$CC"; then
1356 ac_cv_prog_CC="$CC" # Let the user override the test.
1357 else
1358 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1359 ac_prog_rejected=no
1360 for ac_dir in $PATH; do
1361 test -z "$ac_dir" && ac_dir=.
1362 if test -f $ac_dir/$ac_word; then
1363 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1364 ac_prog_rejected=yes
1365 continue
1366 fi
1367 ac_cv_prog_CC="cc"
1368 break
1369 fi
1370 done
1371 IFS="$ac_save_ifs"
1372 if test $ac_prog_rejected = yes; then
1373 # We found a bogon in the path, so make sure we never use it.
1374 set dummy $ac_cv_prog_CC
1375 shift
1376 if test $# -gt 0; then
1377 # We chose a different compiler from the bogus one.
1378 # However, it has the same basename, so the bogon will be chosen
1379 # first if we set CC to just the basename; use the full file name.
1380 shift
1381 set dummy "$ac_dir/$ac_word" "$@"
1382 shift
1383 ac_cv_prog_CC="$@"
1384 fi
1385 fi
1386 fi
1387 fi
1388 CC="$ac_cv_prog_CC"
1389 if test -n "$CC"; then
1390 echo "$ac_t""$CC" 1>&6
1391 else
1392 echo "$ac_t""no" 1>&6
1393 fi
1394
1395 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1396 fi
1397
1398 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1399 echo "configure:1400: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1400
1401 ac_ext=c
1402 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1403 ac_cpp='$CPP $CPPFLAGS'
1404 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1405 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1406 cross_compiling=$ac_cv_prog_cc_cross
1407
1408 cat > conftest.$ac_ext <<EOF
1409 #line 1410 "configure"
1410 #include "confdefs.h"
1411 main(){return(0);}
1412 EOF
1413 if { (eval echo configure:1414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1414 ac_cv_prog_cc_works=yes
1415 # If we can't run a trivial program, we are probably using a cross compiler.
1416 if (./conftest; exit) 2>/dev/null; then
1417 ac_cv_prog_cc_cross=no
1418 else
1419 ac_cv_prog_cc_cross=yes
1420 fi
1421 else
1422 echo "configure: failed program was:" >&5
1423 cat conftest.$ac_ext >&5
1424 ac_cv_prog_cc_works=no
1425 fi
1426 rm -fr conftest*
1427
1428 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1429 if test $ac_cv_prog_cc_works = no; then
1430 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1431 fi
1432 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1433 echo "configure:1434: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1434 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1435 cross_compiling=$ac_cv_prog_cc_cross
1436
1437 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1438 echo "configure:1439: checking whether we are using GNU C" >&5
1439 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1440 echo $ac_n "(cached) $ac_c" 1>&6
1441 else
1442 cat > conftest.c <<EOF
1443 #ifdef __GNUC__
1444 yes;
1445 #endif
1446 EOF
1447 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1448: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1448 ac_cv_prog_gcc=yes
1449 else
1450 ac_cv_prog_gcc=no
1451 fi
1452 fi
1453
1454 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1455
1456 if test $ac_cv_prog_gcc = yes; then
1457 GCC=yes
1458 ac_test_CFLAGS="${CFLAGS+set}"
1459 ac_save_CFLAGS="$CFLAGS"
1460 CFLAGS=
1461 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1462 echo "configure:1463: checking whether ${CC-cc} accepts -g" >&5
1463 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1464 echo $ac_n "(cached) $ac_c" 1>&6
1465 else
1466 echo 'void f(){}' > conftest.c
1467 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1468 ac_cv_prog_cc_g=yes
1469 else
1470 ac_cv_prog_cc_g=no
1471 fi
1472 rm -f conftest*
1473
1474 fi
1475
1476 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1477 if test "$ac_test_CFLAGS" = set; then
1478 CFLAGS="$ac_save_CFLAGS"
1479 elif test $ac_cv_prog_cc_g = yes; then
1480 CFLAGS="-g -O2"
1481 else
1482 CFLAGS="-O2"
1483 fi
1484 else
1485 GCC=
1486 test "${CFLAGS+set}" = set || CFLAGS="-g"
1487 fi
1488
1489
1490 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1491
1492
1493 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1494 echo "configure:1495: checking for POSIXized ISC" >&5
1495 if test -d /etc/conf/kconfig.d &&
1496 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1497 then
1498 echo "$ac_t""yes" 1>&6
1499 ISC=yes # If later tests want to check for ISC.
1500 cat >> confdefs.h <<\EOF
1501 #define _POSIX_SOURCE 1
1502 EOF
1503
1504 if test "$GCC" = yes; then
1505 CC="$CC -posix"
1506 else
1507 CC="$CC -Xp"
1508 fi
1509 else
1510 echo "$ac_t""no" 1>&6
1511 ISC=
1512 fi
1513
1514
1515 case "${target}" in
1516 *-*-bsd4.4* | *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
1517 cat >> confdefs.h <<\EOF
1518 #define BSD44_FORMAT 1
1519 EOF
1520
1521 ;;
1522 esac
1523
1524 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1525 echo "configure:1526: checking whether to enable maintainer-specific portions of Makefiles" >&5
1526 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1527 if test "${enable_maintainer_mode+set}" = set; then
1528 enableval="$enable_maintainer_mode"
1529 USE_MAINTAINER_MODE=$enableval
1530 else
1531 USE_MAINTAINER_MODE=no
1532 fi
1533
1534 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1535 if test $USE_MAINTAINER_MODE = yes; then
1536 MAINT=
1537 else
1538 MAINT='#M#'
1539 fi
1540
1541
1542 echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6
1543 echo "configure:1544: checking for Cygwin32 environment" >&5
1544 if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then
1545 echo $ac_n "(cached) $ac_c" 1>&6
1546 else
1547 cat > conftest.$ac_ext <<EOF
1548 #line 1549 "configure"
1549 #include "confdefs.h"
1550
1551 int main() {
1552 return __CYGWIN32__;
1553 ; return 0; }
1554 EOF
1555 if { (eval echo configure:1556: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1556 rm -rf conftest*
1557 am_cv_cygwin32=yes
1558 else
1559 echo "configure: failed program was:" >&5
1560 cat conftest.$ac_ext >&5
1561 rm -rf conftest*
1562 am_cv_cygwin32=no
1563 fi
1564 rm -f conftest*
1565 rm -f conftest*
1566 fi
1567
1568 echo "$ac_t""$am_cv_cygwin32" 1>&6
1569 CYGWIN32=
1570 test "$am_cv_cygwin32" = yes && CYGWIN32=yes
1571 echo $ac_n "checking for Mingw32 environment""... $ac_c" 1>&6
1572 echo "configure:1573: checking for Mingw32 environment" >&5
1573 if eval "test \"`echo '$''{'am_cv_mingw32'+set}'`\" = set"; then
1574 echo $ac_n "(cached) $ac_c" 1>&6
1575 else
1576 cat > conftest.$ac_ext <<EOF
1577 #line 1578 "configure"
1578 #include "confdefs.h"
1579
1580 int main() {
1581 return __MINGW32__;
1582 ; return 0; }
1583 EOF
1584 if { (eval echo configure:1585: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1585 rm -rf conftest*
1586 am_cv_mingw32=yes
1587 else
1588 echo "configure: failed program was:" >&5
1589 cat conftest.$ac_ext >&5
1590 rm -rf conftest*
1591 am_cv_mingw32=no
1592 fi
1593 rm -f conftest*
1594 rm -f conftest*
1595 fi
1596
1597 echo "$ac_t""$am_cv_mingw32" 1>&6
1598 MINGW32=
1599 test "$am_cv_mingw32" = yes && MINGW32=yes
1600
1601
1602 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1603 echo "configure:1604: checking for executable suffix" >&5
1604 if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then
1605 echo $ac_n "(cached) $ac_c" 1>&6
1606 else
1607 if test "$CYGWIN32" = yes || test "$MINGW32" = yes; then
1608 am_cv_exeext=.exe
1609 else
1610 cat > am_c_test.c << 'EOF'
1611 int main() {
1612 /* Nothing needed here */
1613 }
1614 EOF
1615 ${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5
1616 am_cv_exeext=`echo am_c_test.* | grep -v am_c_test.c | sed -e s/am_c_test//`
1617 rm -f am_c_test*
1618 fi
1619
1620 test x"${am_cv_exeext}" = x && am_cv_exeext=no
1621 fi
1622 EXEEXT=""
1623 test x"${am_cv_exeext}" != xno && EXEEXT=${am_cv_exeext}
1624 echo "$ac_t""${am_cv_exeext}" 1>&6
1625
1626
1627 trap '' 1 2 15
1628 cat > confcache <<\EOF
1629 # This file is a shell script that caches the results of configure
1630 # tests run on this system so they can be shared between configure
1631 # scripts and configure runs. It is not useful on other systems.
1632 # If it contains results you don't want to keep, you may remove or edit it.
1633 #
1634 # By default, configure uses ./config.cache as the cache file,
1635 # creating it if it does not exist already. You can give configure
1636 # the --cache-file=FILE option to use a different cache file; that is
1637 # what configure does when it calls configure scripts in
1638 # subdirectories, so they share the cache.
1639 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1640 # config.status only pays attention to the cache file if you give it the
1641 # --recheck option to rerun configure.
1642 #
1643 EOF
1644 # The following way of writing the cache mishandles newlines in values,
1645 # but we know of no workaround that is simple, portable, and efficient.
1646 # So, don't put newlines in cache variables' values.
1647 # Ultrix sh set writes to stderr and can't be redirected directly,
1648 # and sets the high bit in the cache file unless we assign to the vars.
1649 (set) 2>&1 |
1650 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
1651 *ac_space=\ *)
1652 # `set' does not quote correctly, so add quotes (double-quote substitution
1653 # turns \\\\ into \\, and sed turns \\ into \).
1654 sed -n \
1655 -e "s/'/'\\\\''/g" \
1656 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1657 ;;
1658 *)
1659 # `set' quotes correctly as required by POSIX, so do not add quotes.
1660 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1661 ;;
1662 esac >> confcache
1663 if cmp -s $cache_file confcache; then
1664 :
1665 else
1666 if test -w $cache_file; then
1667 echo "updating cache $cache_file"
1668 cat confcache > $cache_file
1669 else
1670 echo "not updating unwritable cache $cache_file"
1671 fi
1672 fi
1673 rm -f confcache
1674
1675 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1676
1677 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1678 # Let make expand exec_prefix.
1679 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1680
1681 # Any assignment to VPATH causes Sun make to only execute
1682 # the first set of double-colon rules, so remove it if not needed.
1683 # If there is a colon in the path, we need to keep it.
1684 if test "x$srcdir" = x.; then
1685 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1686 fi
1687
1688 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1689
1690 DEFS=-DHAVE_CONFIG_H
1691
1692 # Without the "./", some shells look in PATH for config.status.
1693 : ${CONFIG_STATUS=./config.status}
1694
1695 echo creating $CONFIG_STATUS
1696 rm -f $CONFIG_STATUS
1697 cat > $CONFIG_STATUS <<EOF
1698 #! /bin/sh
1699 # Generated automatically by configure.
1700 # Run this file to recreate the current configuration.
1701 # This directory was configured as follows,
1702 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1703 #
1704 # $0 $ac_configure_args
1705 #
1706 # Compiler output produced by configure, useful for debugging
1707 # configure, is in ./config.log if it exists.
1708
1709 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1710 for ac_option
1711 do
1712 case "\$ac_option" in
1713 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1714 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1715 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1716 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1717 echo "$CONFIG_STATUS generated by autoconf version 2.12.1"
1718 exit 0 ;;
1719 -help | --help | --hel | --he | --h)
1720 echo "\$ac_cs_usage"; exit 0 ;;
1721 *) echo "\$ac_cs_usage"; exit 1 ;;
1722 esac
1723 done
1724
1725 ac_given_srcdir=$srcdir
1726 ac_given_INSTALL="$INSTALL"
1727
1728 trap 'rm -fr `echo "Makefile gconfig.h:gconfig.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1729 EOF
1730 cat >> $CONFIG_STATUS <<EOF
1731
1732 # Protect against being on the right side of a sed subst in config.status.
1733 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1734 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1735 $ac_vpsub
1736 $extrasub
1737 s%@SHELL@%$SHELL%g
1738 s%@CFLAGS@%$CFLAGS%g
1739 s%@CPPFLAGS@%$CPPFLAGS%g
1740 s%@CXXFLAGS@%$CXXFLAGS%g
1741 s%@DEFS@%$DEFS%g
1742 s%@LDFLAGS@%$LDFLAGS%g
1743 s%@LIBS@%$LIBS%g
1744 s%@exec_prefix@%$exec_prefix%g
1745 s%@prefix@%$prefix%g
1746 s%@program_transform_name@%$program_transform_name%g
1747 s%@bindir@%$bindir%g
1748 s%@sbindir@%$sbindir%g
1749 s%@libexecdir@%$libexecdir%g
1750 s%@datadir@%$datadir%g
1751 s%@sysconfdir@%$sysconfdir%g
1752 s%@sharedstatedir@%$sharedstatedir%g
1753 s%@localstatedir@%$localstatedir%g
1754 s%@libdir@%$libdir%g
1755 s%@includedir@%$includedir%g
1756 s%@oldincludedir@%$oldincludedir%g
1757 s%@infodir@%$infodir%g
1758 s%@mandir@%$mandir%g
1759 s%@host@%$host%g
1760 s%@host_alias@%$host_alias%g
1761 s%@host_cpu@%$host_cpu%g
1762 s%@host_vendor@%$host_vendor%g
1763 s%@host_os@%$host_os%g
1764 s%@target@%$target%g
1765 s%@target_alias@%$target_alias%g
1766 s%@target_cpu@%$target_cpu%g
1767 s%@target_vendor@%$target_vendor%g
1768 s%@target_os@%$target_os%g
1769 s%@build@%$build%g
1770 s%@build_alias@%$build_alias%g
1771 s%@build_cpu@%$build_cpu%g
1772 s%@build_vendor@%$build_vendor%g
1773 s%@build_os@%$build_os%g
1774 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1775 s%@INSTALL_DATA@%$INSTALL_DATA%g
1776 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1777 s%@PACKAGE@%$PACKAGE%g
1778 s%@VERSION@%$VERSION%g
1779 s%@ACLOCAL@%$ACLOCAL%g
1780 s%@AUTOCONF@%$AUTOCONF%g
1781 s%@AUTOMAKE@%$AUTOMAKE%g
1782 s%@AUTOHEADER@%$AUTOHEADER%g
1783 s%@MAKEINFO@%$MAKEINFO%g
1784 s%@SET_MAKE@%$SET_MAKE%g
1785 s%@RANLIB@%$RANLIB%g
1786 s%@CC@%$CC%g
1787 s%@LD@%$LD%g
1788 s%@NM@%$NM%g
1789 s%@LN_S@%$LN_S%g
1790 s%@LIBTOOL@%$LIBTOOL%g
1791 s%@MAINT@%$MAINT%g
1792 s%@EXEEXT@%$EXEEXT%g
1793
1794 CEOF
1795 EOF
1796
1797 cat >> $CONFIG_STATUS <<\EOF
1798
1799 # Split the substitutions into bite-sized pieces for seds with
1800 # small command number limits, like on Digital OSF/1 and HP-UX.
1801 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1802 ac_file=1 # Number of current file.
1803 ac_beg=1 # First line for current file.
1804 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1805 ac_more_lines=:
1806 ac_sed_cmds=""
1807 while $ac_more_lines; do
1808 if test $ac_beg -gt 1; then
1809 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1810 else
1811 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1812 fi
1813 if test ! -s conftest.s$ac_file; then
1814 ac_more_lines=false
1815 rm -f conftest.s$ac_file
1816 else
1817 if test -z "$ac_sed_cmds"; then
1818 ac_sed_cmds="sed -f conftest.s$ac_file"
1819 else
1820 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1821 fi
1822 ac_file=`expr $ac_file + 1`
1823 ac_beg=$ac_end
1824 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1825 fi
1826 done
1827 if test -z "$ac_sed_cmds"; then
1828 ac_sed_cmds=cat
1829 fi
1830 EOF
1831
1832 cat >> $CONFIG_STATUS <<EOF
1833
1834 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1835 EOF
1836 cat >> $CONFIG_STATUS <<\EOF
1837 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1838 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1839 case "$ac_file" in
1840 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1841 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1842 *) ac_file_in="${ac_file}.in" ;;
1843 esac
1844
1845 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1846
1847 # Remove last slash and all that follows it. Not all systems have dirname.
1848 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1849 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1850 # The file is in a subdirectory.
1851 test ! -d "$ac_dir" && mkdir "$ac_dir"
1852 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1853 # A "../" for each directory in $ac_dir_suffix.
1854 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1855 else
1856 ac_dir_suffix= ac_dots=
1857 fi
1858
1859 case "$ac_given_srcdir" in
1860 .) srcdir=.
1861 if test -z "$ac_dots"; then top_srcdir=.
1862 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1863 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1864 *) # Relative path.
1865 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1866 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1867 esac
1868
1869 case "$ac_given_INSTALL" in
1870 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1871 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1872 esac
1873
1874 echo creating "$ac_file"
1875 rm -f "$ac_file"
1876 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1877 case "$ac_file" in
1878 *Makefile*) ac_comsub="1i\\
1879 # $configure_input" ;;
1880 *) ac_comsub= ;;
1881 esac
1882
1883 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1884 sed -e "$ac_comsub
1885 s%@configure_input@%$configure_input%g
1886 s%@srcdir@%$srcdir%g
1887 s%@top_srcdir@%$top_srcdir%g
1888 s%@INSTALL@%$INSTALL%g
1889 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1890 fi; done
1891 rm -f conftest.s*
1892
1893 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1894 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1895 #
1896 # ac_d sets the value in "#define NAME VALUE" lines.
1897 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1898 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
1899 ac_dC='\3'
1900 ac_dD='%g'
1901 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1902 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1903 ac_uB='\([ ]\)%\1#\2define\3'
1904 ac_uC=' '
1905 ac_uD='\4%g'
1906 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1907 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1908 ac_eB='$%\1#\2define\3'
1909 ac_eC=' '
1910 ac_eD='%g'
1911
1912 if test "${CONFIG_HEADERS+set}" != set; then
1913 EOF
1914 cat >> $CONFIG_STATUS <<EOF
1915 CONFIG_HEADERS="gconfig.h:gconfig.in"
1916 EOF
1917 cat >> $CONFIG_STATUS <<\EOF
1918 fi
1919 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1920 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1921 case "$ac_file" in
1922 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1923 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1924 *) ac_file_in="${ac_file}.in" ;;
1925 esac
1926
1927 echo creating $ac_file
1928
1929 rm -f conftest.frag conftest.in conftest.out
1930 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1931 cat $ac_file_inputs > conftest.in
1932
1933 EOF
1934
1935 # Transform confdefs.h into a sed script conftest.vals that substitutes
1936 # the proper values into config.h.in to produce config.h. And first:
1937 # Protect against being on the right side of a sed subst in config.status.
1938 # Protect against being in an unquoted here document in config.status.
1939 rm -f conftest.vals
1940 cat > conftest.hdr <<\EOF
1941 s/[\\&%]/\\&/g
1942 s%[\\$`]%\\&%g
1943 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1944 s%ac_d%ac_u%gp
1945 s%ac_u%ac_e%gp
1946 EOF
1947 sed -n -f conftest.hdr confdefs.h > conftest.vals
1948 rm -f conftest.hdr
1949
1950 # This sed command replaces #undef with comments. This is necessary, for
1951 # example, in the case of _POSIX_SOURCE, which is predefined and required
1952 # on some systems where configure will not decide to define it.
1953 cat >> conftest.vals <<\EOF
1954 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1955 EOF
1956
1957 # Break up conftest.vals because some shells have a limit on
1958 # the size of here documents, and old seds have small limits too.
1959
1960 rm -f conftest.tail
1961 while :
1962 do
1963 ac_lines=`grep -c . conftest.vals`
1964 # grep -c gives empty output for an empty file on some AIX systems.
1965 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1966 # Write a limited-size here document to conftest.frag.
1967 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1968 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1969 echo 'CEOF
1970 sed -f conftest.frag conftest.in > conftest.out
1971 rm -f conftest.in
1972 mv conftest.out conftest.in
1973 ' >> $CONFIG_STATUS
1974 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1975 rm -f conftest.vals
1976 mv conftest.tail conftest.vals
1977 done
1978 rm -f conftest.vals
1979
1980 cat >> $CONFIG_STATUS <<\EOF
1981 rm -f conftest.frag conftest.h
1982 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
1983 cat conftest.in >> conftest.h
1984 rm -f conftest.in
1985 if cmp -s $ac_file conftest.h 2>/dev/null; then
1986 echo "$ac_file is unchanged"
1987 rm -f conftest.h
1988 else
1989 # Remove last slash and all that follows it. Not all systems have dirname.
1990 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1991 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1992 # The file is in a subdirectory.
1993 test ! -d "$ac_dir" && mkdir "$ac_dir"
1994 fi
1995 rm -f $ac_file
1996 mv conftest.h $ac_file
1997 fi
1998 fi; done
1999
2000 EOF
2001 cat >> $CONFIG_STATUS <<EOF
2002
2003
2004 EOF
2005 cat >> $CONFIG_STATUS <<\EOF
2006 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
2007
2008 exit 0
2009 EOF
2010 chmod +x $CONFIG_STATUS
2011 rm -fr confdefs* $ac_clean_files
2012 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2013