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