* Makefile.in (RUNTEST): Fix path to runtest.
[deliverable/binutils-gdb.git] / gprof / configure
CommitLineData
7858d8dc
C
1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
274e44ae 4# Generated automatically using autoconf version 2.12.1
8530ae8e 5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7858d8dc
C
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:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
ba8e3a2e 14ac_help="$ac_help
274e44ae
ILT
15 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
16ac_help="$ac_help
17 --enable-shared build shared libraries [default=yes]"
18ac_help="$ac_help
19 --enable-static build static libraries [default=yes]"
2f1fec47
ILT
20ac_help="$ac_help
21 --enable-maintainer-mode enable make rules and dependencies not useful
22 (and sometimes confusing) to the casual installer"
7858d8dc
C
23
24# Initialize some variables set by options.
25# The variables have the same names as the options, with
26# dashes changed to underlines.
27build=NONE
28cache_file=./config.cache
29exec_prefix=NONE
30host=NONE
31no_create=
32nonopt=NONE
33no_recursion=
34prefix=NONE
35program_prefix=NONE
36program_suffix=NONE
37program_transform_name=s,x,x,
38silent=
39site=
40srcdir=
41target=NONE
42verbose=
43x_includes=NONE
44x_libraries=NONE
ba8e3a2e
ILT
45bindir='${exec_prefix}/bin'
46sbindir='${exec_prefix}/sbin'
47libexecdir='${exec_prefix}/libexec'
48datadir='${prefix}/share'
49sysconfdir='${prefix}/etc'
50sharedstatedir='${prefix}/com'
51localstatedir='${prefix}/var'
52libdir='${exec_prefix}/lib'
53includedir='${prefix}/include'
54oldincludedir='/usr/include'
55infodir='${prefix}/info'
56mandir='${prefix}/man'
7858d8dc
C
57
58# Initialize some other variables.
59subdirs=
ba8e3a2e 60MFLAGS= MAKEFLAGS=
c3de2a19 61SHELL=${CONFIG_SHELL-/bin/sh}
4947b15f
ILT
62# Maximum number of lines to put in a shell here document.
63ac_max_here_lines=12
7858d8dc
C
64
65ac_prev=
66for ac_option
67do
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
ba8e3a2e
ILT
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)
7858d8dc 91 ac_prev=build ;;
ba8e3a2e 92 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
7858d8dc
C
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
ba8e3a2e
ILT
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
7858d8dc
C
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
147Usage: configure [options] [host]
148Options: [defaults in brackets after descriptions]
149Configuration:
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
155Directory and file names:
156 --prefix=PREFIX install architecture-independent files in PREFIX
157 [$ac_default_prefix]
ba8e3a2e 158 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
7858d8dc 159 [same as prefix]
ba8e3a2e
ILT
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]
7858d8dc
C
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
ba8e3a2e
ILT
177 --program-transform-name=PROGRAM
178 run sed PROGRAM on installed program names
179EOF
180 cat << EOF
7858d8dc
C
181Host 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]
185Features 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
7858d8dc 192EOF
ba8e3a2e
ILT
193 if test -n "$ac_help"; then
194 echo "--enable and --with options recognized:$ac_help"
195 fi
7858d8dc
C
196 exit 0 ;;
197
198 -host | --host | --hos | --ho)
199 ac_prev=host ;;
200 -host=* | --host=* | --hos=* | --ho=*)
201 host="$ac_optarg" ;;
202
ba8e3a2e
ILT
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
7858d8dc
C
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
ba8e3a2e
ILT
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
7858d8dc
C
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
ba8e3a2e
ILT
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
7858d8dc
C
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
ba8e3a2e
ILT
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
7858d8dc
C
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)
274e44ae 345 echo "configure generated by autoconf version 2.12.1"
7858d8dc
C
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
ba8e3a2e 391 *)
7858d8dc
C
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
402done
403
404if test -n "$ac_prev"; then
405 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
406fi
407
408trap '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
418if test "$silent" = yes; then
419 exec 6>/dev/null
420else
421 exec 6>&1
422fi
423exec 5>./config.log
424
425echo "\
426This file contains any messages produced by compilers while
427running 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.
432ac_configure_args=
433for ac_arg
434do
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
444done
445
446# NLS nuisances.
4947b15f
ILT
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.
7858d8dc 451if test "${LANG+set}" = set; then LANG=C; export LANG; fi
4947b15f
ILT
452if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
453if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
454if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
7858d8dc
C
455
456# confdefs.h avoids OS command line length limits that DEFS can exceed.
457rm -rf conftest* confdefs.h
458# AIX cpp loses on an empty file, so make sure it contains at least a newline.
459echo > 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.
463ac_unique_file=gprof.c
464
465# Find the source files, if location was not specified.
466if 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
476else
477 ac_srcdir_defaulted=no
478fi
479if 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
485fi
486srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
487
488# Prefer explicitly selected file to automatically selected ones.
489if 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
495fi
496for 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
501done
502
503if test -r "$cache_file"; then
504 echo "loading cache $cache_file"
505 . $cache_file
506else
507 echo "creating cache $cache_file"
508 > $cache_file
509fi
510
511ac_ext=c
512# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ea2488ad
ILT
513ac_cpp='$CPP $CPPFLAGS'
514ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
515ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4947b15f 516cross_compiling=$ac_cv_prog_cc_cross
7858d8dc
C
517
518if (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
526else
527 ac_n= ac_c='\c' ac_t=
528fi
529
530
531
2f1fec47
ILT
532ac_aux_dir=
533for 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
543done
544if 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; }
546fi
547ac_config_guess=$ac_aux_dir/config.guess
548ac_config_sub=$ac_aux_dir/config.sub
549ac_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.
567case $host---$target---$nonopt in
568NONE---*---* | *---NONE---* | *---*---NONE) ;;
569*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
570esac
571
572
573# Make sure we can run config.sub.
274e44ae 574if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
2f1fec47
ILT
575else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
576fi
577
578echo $ac_n "checking host system type""... $ac_c" 1>&6
c3de2a19 579echo "configure:580: checking host system type" >&5
2f1fec47
ILT
580
581host_alias=$host
582case "$host_alias" in
583NONE)
584 case $nonopt in
585 NONE)
274e44ae 586 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
2f1fec47
ILT
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 ;;
591esac
592
274e44ae 593host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
2f1fec47
ILT
594host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
595host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
596host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
597echo "$ac_t""$host" 1>&6
598
599echo $ac_n "checking target system type""... $ac_c" 1>&6
c3de2a19 600echo "configure:601: checking target system type" >&5
2f1fec47
ILT
601
602target_alias=$target
603case "$target_alias" in
604NONE)
605 case $nonopt in
606 NONE) target_alias=$host_alias ;;
607 *) target_alias=$nonopt ;;
608 esac ;;
609esac
610
274e44ae 611target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
2f1fec47
ILT
612target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
613target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
614target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
615echo "$ac_t""$target" 1>&6
616
617echo $ac_n "checking build system type""... $ac_c" 1>&6
c3de2a19 618echo "configure:619: checking build system type" >&5
2f1fec47
ILT
619
620build_alias=$build
621case "$build_alias" in
622NONE)
623 case $nonopt in
624 NONE) build_alias=$host_alias ;;
625 *) build_alias=$nonopt ;;
626 esac ;;
627esac
628
274e44ae 629build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
2f1fec47
ILT
630build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
631build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
632build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
633echo "$ac_t""$build" 1>&6
634
635test "$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
c3de2a19 648# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2f1fec47
ILT
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.
652echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
c3de2a19 653echo "configure:654: checking for a BSD compatible install" >&5
2f1fec47
ILT
654if test -z "$INSTALL"; then
655if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
656 echo $ac_n "(cached) $ac_c" 1>&6
657else
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.
c3de2a19
ILT
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
2f1fec47
ILT
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.
2f1fec47
ILT
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
684fi
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
694fi
695echo "$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.
699test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
700
701test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
702
703
704test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
705
706
707PACKAGE=gprof
708
274e44ae 709VERSION=2.8.2
2f1fec47 710
50fb7977
ILT
711if 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; }
713fi
2f1fec47
ILT
714cat >> confdefs.h <<EOF
715#define PACKAGE "$PACKAGE"
716EOF
717
718cat >> confdefs.h <<EOF
719#define VERSION "$VERSION"
720EOF
721
722echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
c3de2a19 723echo "configure:724: checking whether build environment is sane" >&5
2f1fec47
ILT
724# Just in case
725sleep 1
726echo 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).
732if (
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 )
740then
741 # Ok.
742 :
743else
744 { echo "configure: error: newly created file is older than distributed files!
745Check your system clock" 1>&2; exit 1; }
746fi
747rm -f conftest*
748echo "$ac_t""yes" 1>&6
749if test "$program_transform_name" = s,x,x,; then
750 program_transform_name=
751else
752 # Double any \ or $. echo might interpret backslashes.
753 cat <<\EOF_SED > conftestsed
754s,\\,\\\\,g; s,\$,$$,g
755EOF_SED
756 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
757 rm -f conftestsed
758fi
759test "$program_prefix" != NONE &&
760 program_transform_name="s,^,${program_prefix},; $program_transform_name"
761# Use a double $ so make ignores it.
762test "$program_suffix" != NONE &&
763 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
764
765# sed with no file args requires a program.
766test "$program_transform_name" = "" && program_transform_name="s,x,x,"
767
768missing_dir=`cd $ac_aux_dir && pwd`
769echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
c3de2a19 770echo "configure:771: checking for working aclocal" >&5
2f1fec47
ILT
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.
50fb7977
ILT
773# Redirect stdin to placate older versions of autoconf. Sigh.
774if (aclocal --version) < /dev/null > /dev/null 2>&1; then
2f1fec47
ILT
775 ACLOCAL=aclocal
776 echo "$ac_t""found" 1>&6
777else
778 ACLOCAL="$missing_dir/missing aclocal"
779 echo "$ac_t""missing" 1>&6
780fi
781
782echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
c3de2a19 783echo "configure:784: checking for working autoconf" >&5
2f1fec47
ILT
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.
50fb7977
ILT
786# Redirect stdin to placate older versions of autoconf. Sigh.
787if (autoconf --version) < /dev/null > /dev/null 2>&1; then
2f1fec47
ILT
788 AUTOCONF=autoconf
789 echo "$ac_t""found" 1>&6
790else
791 AUTOCONF="$missing_dir/missing autoconf"
792 echo "$ac_t""missing" 1>&6
793fi
794
795echo $ac_n "checking for working automake""... $ac_c" 1>&6
c3de2a19 796echo "configure:797: checking for working automake" >&5
2f1fec47
ILT
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.
50fb7977
ILT
799# Redirect stdin to placate older versions of autoconf. Sigh.
800if (automake --version) < /dev/null > /dev/null 2>&1; then
2f1fec47
ILT
801 AUTOMAKE=automake
802 echo "$ac_t""found" 1>&6
803else
804 AUTOMAKE="$missing_dir/missing automake"
805 echo "$ac_t""missing" 1>&6
806fi
807
808echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
c3de2a19 809echo "configure:810: checking for working autoheader" >&5
2f1fec47
ILT
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.
50fb7977
ILT
812# Redirect stdin to placate older versions of autoconf. Sigh.
813if (autoheader --version) < /dev/null > /dev/null 2>&1; then
2f1fec47
ILT
814 AUTOHEADER=autoheader
815 echo "$ac_t""found" 1>&6
816else
817 AUTOHEADER="$missing_dir/missing autoheader"
818 echo "$ac_t""missing" 1>&6
819fi
820
821echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
c3de2a19 822echo "configure:823: checking for working makeinfo" >&5
2f1fec47
ILT
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.
50fb7977
ILT
825# Redirect stdin to placate older versions of autoconf. Sigh.
826if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
2f1fec47
ILT
827 MAKEINFO=makeinfo
828 echo "$ac_t""found" 1>&6
829else
830 MAKEINFO="$missing_dir/missing makeinfo"
831 echo "$ac_t""missing" 1>&6
832fi
833
834echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
c3de2a19 835echo "configure:836: checking whether ${MAKE-make} sets \${MAKE}" >&5
2f1fec47
ILT
836set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
837if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
838 echo $ac_n "(cached) $ac_c" 1>&6
839else
840 cat > conftestmake <<\EOF
841all:
842 @echo 'ac_maketemp="${MAKE}"'
843EOF
844# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
845eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
846if test -n "$ac_maketemp"; then
847 eval ac_cv_prog_make_${ac_make}_set=yes
848else
849 eval ac_cv_prog_make_${ac_make}_set=no
850fi
851rm -f conftestmake
852fi
853if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
854 echo "$ac_t""yes" 1>&6
855 SET_MAKE=
856else
857 echo "$ac_t""no" 1>&6
858 SET_MAKE="MAKE=${MAKE-make}"
859fi
860
861
fa1a1b32
ILT
862# Extract the first word of "ranlib", so it can be a program name with args.
863set dummy ranlib; ac_word=$2
864echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
865echo "configure:866: checking for $ac_word" >&5
866if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
867 echo $ac_n "(cached) $ac_c" 1>&6
868else
869 if test -n "$RANLIB"; then
870 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
871else
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_RANLIB="ranlib"
877 break
878 fi
879 done
880 IFS="$ac_save_ifs"
881 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
882fi
883fi
884RANLIB="$ac_cv_prog_RANLIB"
885if test -n "$RANLIB"; then
886 echo "$ac_t""$RANLIB" 1>&6
887else
888 echo "$ac_t""no" 1>&6
889fi
890
7858d8dc
C
891# Extract the first word of "gcc", so it can be a program name with args.
892set dummy gcc; ac_word=$2
893echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
fa1a1b32 894echo "configure:895: checking for $ac_word" >&5
7858d8dc
C
895if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
896 echo $ac_n "(cached) $ac_c" 1>&6
897else
898 if test -n "$CC"; then
899 ac_cv_prog_CC="$CC" # Let the user override the test.
900else
901 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
902 for ac_dir in $PATH; do
903 test -z "$ac_dir" && ac_dir=.
904 if test -f $ac_dir/$ac_word; then
905 ac_cv_prog_CC="gcc"
906 break
907 fi
908 done
909 IFS="$ac_save_ifs"
7858d8dc
C
910fi
911fi
912CC="$ac_cv_prog_CC"
913if test -n "$CC"; then
914 echo "$ac_t""$CC" 1>&6
915else
916 echo "$ac_t""no" 1>&6
917fi
918
ea2488ad
ILT
919if test -z "$CC"; then
920 # Extract the first word of "cc", so it can be a program name with args.
921set dummy cc; ac_word=$2
922echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
fa1a1b32 923echo "configure:924: checking for $ac_word" >&5
ea2488ad
ILT
924if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
925 echo $ac_n "(cached) $ac_c" 1>&6
926else
927 if test -n "$CC"; then
928 ac_cv_prog_CC="$CC" # Let the user override the test.
929else
930 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
931 ac_prog_rejected=no
932 for ac_dir in $PATH; do
933 test -z "$ac_dir" && ac_dir=.
934 if test -f $ac_dir/$ac_word; then
935 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
936 ac_prog_rejected=yes
937 continue
938 fi
939 ac_cv_prog_CC="cc"
940 break
941 fi
942 done
943 IFS="$ac_save_ifs"
944if test $ac_prog_rejected = yes; then
945 # We found a bogon in the path, so make sure we never use it.
946 set dummy $ac_cv_prog_CC
947 shift
948 if test $# -gt 0; then
949 # We chose a different compiler from the bogus one.
950 # However, it has the same basename, so the bogon will be chosen
951 # first if we set CC to just the basename; use the full file name.
952 shift
953 set dummy "$ac_dir/$ac_word" "$@"
954 shift
955 ac_cv_prog_CC="$@"
956 fi
957fi
958fi
959fi
960CC="$ac_cv_prog_CC"
961if test -n "$CC"; then
962 echo "$ac_t""$CC" 1>&6
963else
964 echo "$ac_t""no" 1>&6
965fi
966
967 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
968fi
7858d8dc 969
4947b15f 970echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
fa1a1b32 971echo "configure:972: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
4947b15f
ILT
972
973ac_ext=c
974# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
975ac_cpp='$CPP $CPPFLAGS'
976ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
977ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
978cross_compiling=$ac_cv_prog_cc_cross
979
980cat > conftest.$ac_ext <<EOF
fa1a1b32 981#line 982 "configure"
4947b15f
ILT
982#include "confdefs.h"
983main(){return(0);}
984EOF
fa1a1b32 985if { (eval echo configure:986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4947b15f
ILT
986 ac_cv_prog_cc_works=yes
987 # If we can't run a trivial program, we are probably using a cross compiler.
988 if (./conftest; exit) 2>/dev/null; then
989 ac_cv_prog_cc_cross=no
990 else
991 ac_cv_prog_cc_cross=yes
992 fi
993else
994 echo "configure: failed program was:" >&5
995 cat conftest.$ac_ext >&5
996 ac_cv_prog_cc_works=no
997fi
998rm -fr conftest*
999
1000echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1001if test $ac_cv_prog_cc_works = no; then
1002 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1003fi
1004echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
fa1a1b32 1005echo "configure:1006: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
4947b15f
ILT
1006echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1007cross_compiling=$ac_cv_prog_cc_cross
1008
7858d8dc 1009echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
fa1a1b32 1010echo "configure:1011: checking whether we are using GNU C" >&5
7858d8dc
C
1011if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1012 echo $ac_n "(cached) $ac_c" 1>&6
1013else
1014 cat > conftest.c <<EOF
1015#ifdef __GNUC__
1016 yes;
1017#endif
1018EOF
fa1a1b32 1019if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1020: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
7858d8dc
C
1020 ac_cv_prog_gcc=yes
1021else
1022 ac_cv_prog_gcc=no
1023fi
1024fi
ba8e3a2e 1025
7858d8dc 1026echo "$ac_t""$ac_cv_prog_gcc" 1>&6
4947b15f 1027
7858d8dc
C
1028if test $ac_cv_prog_gcc = yes; then
1029 GCC=yes
4947b15f
ILT
1030 ac_test_CFLAGS="${CFLAGS+set}"
1031 ac_save_CFLAGS="$CFLAGS"
1032 CFLAGS=
1033 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
fa1a1b32 1034echo "configure:1035: checking whether ${CC-cc} accepts -g" >&5
4947b15f 1035if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
7858d8dc
C
1036 echo $ac_n "(cached) $ac_c" 1>&6
1037else
1038 echo 'void f(){}' > conftest.c
1039if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
4947b15f 1040 ac_cv_prog_cc_g=yes
7858d8dc 1041else
4947b15f 1042 ac_cv_prog_cc_g=no
7858d8dc
C
1043fi
1044rm -f conftest*
1045
1046fi
ba8e3a2e 1047
4947b15f
ILT
1048echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1049 if test "$ac_test_CFLAGS" = set; then
1050 CFLAGS="$ac_save_CFLAGS"
1051 elif test $ac_cv_prog_cc_g = yes; then
1052 CFLAGS="-g -O2"
1053 else
1054 CFLAGS="-O2"
7858d8dc
C
1055 fi
1056else
1057 GCC=
1058 test "${CFLAGS+set}" = set || CFLAGS="-g"
1059fi
1060
274e44ae
ILT
1061# Check whether --with-gnu-ld or --without-gnu-ld was given.
1062if test "${with_gnu_ld+set}" = set; then
1063 withval="$with_gnu_ld"
1064 test "$withval" = no || with_gnu_ld=yes
1065else
1066 with_gnu_ld=no
39c3964f 1067fi
274e44ae 1068
fa1a1b32
ILT
1069
1070ac_prog=ld
1071if test "$ac_cv_prog_gcc" = yes; then
1072 # Check if gcc -print-prog-name=ld gives a path.
1073 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1074echo "configure:1075: checking for ld used by GCC" >&5
1075 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1076 case "$ac_prog" in
1077 # Accept absolute paths.
1078 /*)
1079 test -z "$LD" && LD="$ac_prog"
1080 ;;
1081 "")
1082 # If it fails, then pretend we aren't using GCC.
1083 ac_prog=ld
1084 ;;
1085 *)
1086 # If it is relative, then search for the first ld in PATH.
1087 with_gnu_ld=unknown
1088 ;;
1089 esac
1090elif test "$with_gnu_ld" = yes; then
274e44ae 1091 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
fa1a1b32 1092echo "configure:1093: checking for GNU ld" >&5
274e44ae
ILT
1093else
1094 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
fa1a1b32 1095echo "configure:1096: checking for non-GNU ld" >&5
274e44ae
ILT
1096fi
1097if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1098 echo $ac_n "(cached) $ac_c" 1>&6
1099else
fa1a1b32 1100 if test -z "$LD"; then
274e44ae
ILT
1101 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1102 for ac_dir in $PATH; do
1103 test -z "$ac_dir" && ac_dir=.
fa1a1b32
ILT
1104 if test -f "$ac_dir/$ac_prog"; then
1105 ac_cv_path_LD="$ac_dir/$ac_prog"
274e44ae
ILT
1106 # Check to see if the program is GNU ld. I'd rather use --version,
1107 # but apparently some GNU ld's only accept -v.
1108 # Break only if it was the GNU/non-GNU ld that we prefer.
fa1a1b32
ILT
1109 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1110 test "$with_gnu_ld" != no && break
274e44ae
ILT
1111 else
1112 test "$with_gnu_ld" != yes && break
1113 fi
1114 fi
1115 done
1116 IFS="$ac_save_ifs"
fa1a1b32 1117else
42a62317 1118 ac_cv_path_LD="$LD" # Let the user override the test with a path.
fa1a1b32 1119fi
274e44ae
ILT
1120fi
1121
1122LD="$ac_cv_path_LD"
1123if test -n "$LD"; then
1124 echo "$ac_t""$LD" 1>&6
1125else
1126 echo "$ac_t""no" 1>&6
1127fi
1128test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1129
fa1a1b32
ILT
1130echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1131echo "configure:1132: checking if the linker ($LD) is GNU ld" >&5
274e44ae
ILT
1132if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1133 echo $ac_n "(cached) $ac_c" 1>&6
1134else
1135 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
fa1a1b32 1136if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
274e44ae
ILT
1137 ac_cv_prog_gnu_ld=yes
1138else
1139 ac_cv_prog_gnu_ld=no
1140fi
1141fi
1142
1143echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1144
1145
fa1a1b32
ILT
1146echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1147echo "configure:1148: checking for BSD-compatible nm" >&5
1148if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1149 echo $ac_n "(cached) $ac_c" 1>&6
1150else
1151 case "$NM" in
1152/*)
1153 ac_cv_path_NM="$NM" # Let the user override the test with a path.
1154 ;;
1155*)
1156 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1157 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
1158 test -z "$ac_dir" && dir=.
1159 if test -f $ac_dir/nm; then
1160 # Check to see if the nm accepts a BSD-compat flag.
1161 # Adding the `sed 1!d' prevents false positives on HP-UX, which says:
1162 # nm: unknown option "B" ignored
1163 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1!d'; exit 0) | egrep /dev/null >/dev/null; then
1164 ac_cv_path_NM="$ac_dir/nm -B"
1165 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1!d'; exit 0) | egrep /dev/null >/dev/null; then
1166 ac_cv_path_NM="$ac_dir/nm -p"
1167 else
1168 ac_cv_path_NM="$ac_dir/nm"
1169 fi
1170 break
1171 fi
1172 done
1173 IFS="$ac_save_ifs"
1174 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1175 ;;
1176esac
1177fi
1178
1179NM="$ac_cv_path_NM"
1180echo "$ac_t""$NM" 1>&6
1181
1182
274e44ae 1183echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
fa1a1b32 1184echo "configure:1185: checking whether ln -s works" >&5
274e44ae
ILT
1185if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1186 echo $ac_n "(cached) $ac_c" 1>&6
1187else
1188 rm -f conftestdata
1189if ln -s X conftestdata 2>/dev/null
1190then
1191 rm -f conftestdata
1192 ac_cv_prog_LN_S="ln -s"
1193else
1194 ac_cv_prog_LN_S=ln
1195fi
1196fi
1197LN_S="$ac_cv_prog_LN_S"
1198if test "$ac_cv_prog_LN_S" = "ln -s"; then
1199 echo "$ac_t""yes" 1>&6
1200else
1201 echo "$ac_t""no" 1>&6
1202fi
1203
1204
1205
1206
1207
1208
1209
fa1a1b32 1210
274e44ae 1211# Always use our own libtool.
c3de2a19 1212LIBTOOL='$(SHELL) $(top_builddir)/libtool'
274e44ae
ILT
1213
1214
1215# Check whether --enable-shared or --disable-shared was given.
1216if test "${enable_shared+set}" = set; then
1217 enableval="$enable_shared"
c3de2a19
ILT
1218 p=${PACKAGE-bogus-package-name}
1219 case "$enableval" in
fa1a1b32
ILT
1220 yes) libtool_enable_shared=yes ;;
1221 no) libtool_enable_shared=no ;;
c3de2a19
ILT
1222 # The value of $p (aka $PACKAGE) is assumed to come from AM_INIT_AUTOMAKE.
1223 # If it didn't, it'll be `bogus-package-name', thus making this condition
1224 # not be used.
fa1a1b32
ILT
1225 *$p*) libtool_enable_shared=yes ;;
1226 *) libtool_enable_shared=no ;;
c3de2a19 1227esac
274e44ae
ILT
1228fi
1229
fa1a1b32 1230test -n "$libtool_enable_shared" && enable_shared="$libtool_enable_shared"
274e44ae
ILT
1231libtool_shared=
1232test "$enable_shared" = no && libtool_shared=" --disable-shared"
1233
1234# Check whether --enable-static or --disable-static was given.
1235if test "${enable_static+set}" = set; then
1236 enableval="$enable_static"
1237 if test "$enableval" = no; then
fa1a1b32 1238 libtool_enable_static=no
274e44ae 1239else
fa1a1b32 1240 libtool_enable_static=yes
274e44ae
ILT
1241fi
1242fi
1243
fa1a1b32 1244test -n "$libtool_enable_static" && enable_static="$libtool_enable_static"
274e44ae
ILT
1245libtool_static=
1246test "$enable_static" = no && libtool_static=" --disable-static"
1247
1248libtool_flags="$libtool_shared$libtool_static"
1249test "$silent" = yes && libtool_flags="$libtool_flags --silent"
1250test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1251test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1252
1253# Some flags need to be propagated to the compiler or linker for good
1254# libtool support.
1255case "$host" in
641146fe
ILT
1256*-*-irix*)
1257 # Find out which ABI we are using.
1258 echo '#line 1259 "configure"' > conftest.$ac_ext
1259 if { (eval echo configure:1260: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1260 case "`/usr/bin/file conftest.o`" in
1261 *32-bit*)
1262 LD="${LD-ld} -32"
fa1a1b32 1263 ;;
641146fe
ILT
1264 *N32*)
1265 LD="${LD-ld} -n32"
1266 ;;
1267 *64-bit*)
1268 LD="${LD-ld} -64"
fa1a1b32
ILT
1269 ;;
1270 esac
641146fe
ILT
1271 fi
1272 rm -rf conftest*
274e44ae
ILT
1273 ;;
1274
1275*-*-sco3.2v5*)
1276 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1277 CFLAGS="$CFLAGS -belf"
1278 ;;
1279esac
1280
1281# Actually configure libtool. ac_aux_dir is where install-sh is found.
1282CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
fa1a1b32 1283LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
274e44ae
ILT
1284${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
1285$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
1286|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1287
1288
1289
1290
1291
1292
1293# Extract the first word of "gcc", so it can be a program name with args.
1294set dummy gcc; ac_word=$2
1295echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
641146fe 1296echo "configure:1297: checking for $ac_word" >&5
274e44ae
ILT
1297if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1298 echo $ac_n "(cached) $ac_c" 1>&6
1299else
1300 if test -n "$CC"; then
1301 ac_cv_prog_CC="$CC" # Let the user override the test.
1302else
1303 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1304 for ac_dir in $PATH; do
1305 test -z "$ac_dir" && ac_dir=.
1306 if test -f $ac_dir/$ac_word; then
1307 ac_cv_prog_CC="gcc"
1308 break
1309 fi
1310 done
1311 IFS="$ac_save_ifs"
1312fi
1313fi
1314CC="$ac_cv_prog_CC"
1315if test -n "$CC"; then
1316 echo "$ac_t""$CC" 1>&6
1317else
1318 echo "$ac_t""no" 1>&6
1319fi
1320
1321if test -z "$CC"; then
1322 # Extract the first word of "cc", so it can be a program name with args.
1323set dummy cc; ac_word=$2
1324echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
641146fe 1325echo "configure:1326: checking for $ac_word" >&5
274e44ae
ILT
1326if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1327 echo $ac_n "(cached) $ac_c" 1>&6
1328else
1329 if test -n "$CC"; then
1330 ac_cv_prog_CC="$CC" # Let the user override the test.
1331else
1332 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1333 ac_prog_rejected=no
1334 for ac_dir in $PATH; do
1335 test -z "$ac_dir" && ac_dir=.
1336 if test -f $ac_dir/$ac_word; then
1337 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1338 ac_prog_rejected=yes
1339 continue
1340 fi
1341 ac_cv_prog_CC="cc"
1342 break
1343 fi
1344 done
1345 IFS="$ac_save_ifs"
1346if test $ac_prog_rejected = yes; then
1347 # We found a bogon in the path, so make sure we never use it.
1348 set dummy $ac_cv_prog_CC
1349 shift
1350 if test $# -gt 0; then
1351 # We chose a different compiler from the bogus one.
1352 # However, it has the same basename, so the bogon will be chosen
1353 # first if we set CC to just the basename; use the full file name.
1354 shift
1355 set dummy "$ac_dir/$ac_word" "$@"
1356 shift
1357 ac_cv_prog_CC="$@"
1358 fi
1359fi
1360fi
1361fi
1362CC="$ac_cv_prog_CC"
1363if test -n "$CC"; then
1364 echo "$ac_t""$CC" 1>&6
1365else
1366 echo "$ac_t""no" 1>&6
1367fi
1368
1369 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1370fi
1371
1372echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
641146fe 1373echo "configure:1374: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
274e44ae
ILT
1374
1375ac_ext=c
1376# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1377ac_cpp='$CPP $CPPFLAGS'
1378ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1379ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1380cross_compiling=$ac_cv_prog_cc_cross
1381
1382cat > conftest.$ac_ext <<EOF
641146fe 1383#line 1384 "configure"
274e44ae
ILT
1384#include "confdefs.h"
1385main(){return(0);}
1386EOF
641146fe 1387if { (eval echo configure:1388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
274e44ae
ILT
1388 ac_cv_prog_cc_works=yes
1389 # If we can't run a trivial program, we are probably using a cross compiler.
1390 if (./conftest; exit) 2>/dev/null; then
1391 ac_cv_prog_cc_cross=no
39c3964f 1392 else
274e44ae 1393 ac_cv_prog_cc_cross=yes
39c3964f 1394 fi
274e44ae
ILT
1395else
1396 echo "configure: failed program was:" >&5
1397 cat conftest.$ac_ext >&5
1398 ac_cv_prog_cc_works=no
39c3964f 1399fi
274e44ae 1400rm -fr conftest*
39c3964f 1401
274e44ae
ILT
1402echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1403if test $ac_cv_prog_cc_works = no; then
1404 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1405fi
1406echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
641146fe 1407echo "configure:1408: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
274e44ae
ILT
1408echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1409cross_compiling=$ac_cv_prog_cc_cross
39c3964f 1410
274e44ae 1411echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
641146fe 1412echo "configure:1413: checking whether we are using GNU C" >&5
274e44ae
ILT
1413if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1414 echo $ac_n "(cached) $ac_c" 1>&6
1415else
1416 cat > conftest.c <<EOF
1417#ifdef __GNUC__
1418 yes;
1419#endif
1420EOF
641146fe 1421if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1422: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
274e44ae
ILT
1422 ac_cv_prog_gcc=yes
1423else
1424 ac_cv_prog_gcc=no
1425fi
1426fi
1427
1428echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1429
1430if test $ac_cv_prog_gcc = yes; then
1431 GCC=yes
1432 ac_test_CFLAGS="${CFLAGS+set}"
1433 ac_save_CFLAGS="$CFLAGS"
1434 CFLAGS=
1435 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
641146fe 1436echo "configure:1437: checking whether ${CC-cc} accepts -g" >&5
274e44ae
ILT
1437if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1438 echo $ac_n "(cached) $ac_c" 1>&6
1439else
1440 echo 'void f(){}' > conftest.c
1441if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1442 ac_cv_prog_cc_g=yes
1443else
1444 ac_cv_prog_cc_g=no
1445fi
1446rm -f conftest*
1447
1448fi
1449
1450echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1451 if test "$ac_test_CFLAGS" = set; then
1452 CFLAGS="$ac_save_CFLAGS"
1453 elif test $ac_cv_prog_cc_g = yes; then
1454 CFLAGS="-g -O2"
1455 else
1456 CFLAGS="-O2"
1457 fi
1458else
1459 GCC=
1460 test "${CFLAGS+set}" = set || CFLAGS="-g"
1461fi
1462
1463
1464test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
39c3964f
JM
1465
1466
e3c0e00b 1467echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
641146fe 1468echo "configure:1469: checking for POSIXized ISC" >&5
e3c0e00b
ILT
1469if test -d /etc/conf/kconfig.d &&
1470 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1471then
1472 echo "$ac_t""yes" 1>&6
1473 ISC=yes # If later tests want to check for ISC.
1474 cat >> confdefs.h <<\EOF
1475#define _POSIX_SOURCE 1
1476EOF
1477
1478 if test "$GCC" = yes; then
1479 CC="$CC -posix"
1480 else
1481 CC="$CC -Xp"
1482 fi
1483else
1484 echo "$ac_t""no" 1>&6
1485 ISC=
1486fi
1487
1488
22395d7e
ILT
1489case "${target}" in
1490*-*-bsd4.4* | *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
1491 cat >> confdefs.h <<\EOF
1492#define BSD44_FORMAT 1
1493EOF
1494
1495 ;;
1496esac
1497
2f1fec47 1498echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
641146fe 1499echo "configure:1500: checking whether to enable maintainer-specific portions of Makefiles" >&5
2f1fec47
ILT
1500 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1501if test "${enable_maintainer_mode+set}" = set; then
1502 enableval="$enable_maintainer_mode"
1503 USE_MAINTAINER_MODE=$enableval
1504else
1505 USE_MAINTAINER_MODE=no
1506fi
1507
1508 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1509 if test $USE_MAINTAINER_MODE = yes; then
1510 MAINT=
1511 else
1512 MAINT='#M#'
1513 fi
1514
1515
50fb7977 1516echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6
641146fe 1517echo "configure:1518: checking for Cygwin32 environment" >&5
50fb7977 1518if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then
2f1fec47
ILT
1519 echo $ac_n "(cached) $ac_c" 1>&6
1520else
274e44ae 1521 cat > conftest.$ac_ext <<EOF
641146fe 1522#line 1523 "configure"
274e44ae
ILT
1523#include "confdefs.h"
1524
1525int main() {
c3de2a19 1526return __CYGWIN32__;
274e44ae 1527; return 0; }
2f1fec47 1528EOF
641146fe 1529if { (eval echo configure:1530: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
274e44ae
ILT
1530 rm -rf conftest*
1531 am_cv_cygwin32=yes
2f1fec47 1532else
274e44ae
ILT
1533 echo "configure: failed program was:" >&5
1534 cat conftest.$ac_ext >&5
1535 rm -rf conftest*
1536 am_cv_cygwin32=no
2f1fec47
ILT
1537fi
1538rm -f conftest*
274e44ae 1539rm -f conftest*
2f1fec47 1540fi
2f1fec47 1541
50fb7977 1542echo "$ac_t""$am_cv_cygwin32" 1>&6
274e44ae
ILT
1543CYGWIN32=
1544test "$am_cv_cygwin32" = yes && CYGWIN32=yes
c3de2a19 1545echo $ac_n "checking for Mingw32 environment""... $ac_c" 1>&6
641146fe 1546echo "configure:1547: checking for Mingw32 environment" >&5
c3de2a19
ILT
1547if eval "test \"`echo '$''{'am_cv_mingw32'+set}'`\" = set"; then
1548 echo $ac_n "(cached) $ac_c" 1>&6
1549else
1550 cat > conftest.$ac_ext <<EOF
641146fe 1551#line 1552 "configure"
c3de2a19
ILT
1552#include "confdefs.h"
1553
1554int main() {
1555return __MINGW32__;
1556; return 0; }
1557EOF
641146fe 1558if { (eval echo configure:1559: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
c3de2a19
ILT
1559 rm -rf conftest*
1560 am_cv_mingw32=yes
1561else
1562 echo "configure: failed program was:" >&5
1563 cat conftest.$ac_ext >&5
1564 rm -rf conftest*
1565 am_cv_mingw32=no
1566fi
1567rm -f conftest*
1568rm -f conftest*
1569fi
1570
1571echo "$ac_t""$am_cv_mingw32" 1>&6
1572MINGW32=
1573test "$am_cv_mingw32" = yes && MINGW32=yes
1574
274e44ae
ILT
1575
1576echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
641146fe 1577echo "configure:1578: checking for executable suffix" >&5
274e44ae
ILT
1578if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then
1579 echo $ac_n "(cached) $ac_c" 1>&6
1580else
c3de2a19
ILT
1581
1582if test "$CYGWIN32" = yes -o "$MINGW32" = yes; then
274e44ae
ILT
1583am_cv_exeext=.exe
1584else
1585cat > am_c_test.c << 'EOF'
1586int main() {
1587/* Nothing needed here */
1588}
1589EOF
1590${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5
1591am_cv_exeext=`echo am_c_test.* | grep -v am_c_test.c | sed -e s/am_c_test//`
1592rm -f am_c_test*
1593fi
1594
1595test x"${am_cv_exeext}" = x && am_cv_exeext=no
1596fi
1597EXEEXT=""
1598test x"${am_cv_exeext}" != xno && EXEEXT=${am_cv_exeext}
1599echo "$ac_t""${am_cv_exeext}" 1>&6
2f1fec47
ILT
1600
1601
7858d8dc
C
1602trap '' 1 2 15
1603cat > confcache <<\EOF
1604# This file is a shell script that caches the results of configure
1605# tests run on this system so they can be shared between configure
1606# scripts and configure runs. It is not useful on other systems.
1607# If it contains results you don't want to keep, you may remove or edit it.
1608#
1609# By default, configure uses ./config.cache as the cache file,
1610# creating it if it does not exist already. You can give configure
1611# the --cache-file=FILE option to use a different cache file; that is
1612# what configure does when it calls configure scripts in
1613# subdirectories, so they share the cache.
1614# Giving --cache-file=/dev/null disables caching, for debugging configure.
1615# config.status only pays attention to the cache file if you give it the
1616# --recheck option to rerun configure.
1617#
1618EOF
4947b15f
ILT
1619# The following way of writing the cache mishandles newlines in values,
1620# but we know of no workaround that is simple, portable, and efficient.
1621# So, don't put newlines in cache variables' values.
7858d8dc
C
1622# Ultrix sh set writes to stderr and can't be redirected directly,
1623# and sets the high bit in the cache file unless we assign to the vars.
1624(set) 2>&1 |
c3de2a19 1625 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
4947b15f
ILT
1626 *ac_space=\ *)
1627 # `set' does not quote correctly, so add quotes (double-quote substitution
1628 # turns \\\\ into \\, and sed turns \\ into \).
1629 sed -n \
1630 -e "s/'/'\\\\''/g" \
1631 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1632 ;;
1633 *)
1634 # `set' quotes correctly as required by POSIX, so do not add quotes.
1635 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1636 ;;
1637 esac >> confcache
7858d8dc
C
1638if cmp -s $cache_file confcache; then
1639 :
1640else
1641 if test -w $cache_file; then
1642 echo "updating cache $cache_file"
1643 cat confcache > $cache_file
1644 else
1645 echo "not updating unwritable cache $cache_file"
1646 fi
1647fi
1648rm -f confcache
1649
1650trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1651
1652test "x$prefix" = xNONE && prefix=$ac_default_prefix
1653# Let make expand exec_prefix.
1654test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1655
1656# Any assignment to VPATH causes Sun make to only execute
1657# the first set of double-colon rules, so remove it if not needed.
1658# If there is a colon in the path, we need to keep it.
1659if test "x$srcdir" = x.; then
1660 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1661fi
1662
1663trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1664
274e44ae 1665DEFS=-DHAVE_CONFIG_H
7858d8dc
C
1666
1667# Without the "./", some shells look in PATH for config.status.
1668: ${CONFIG_STATUS=./config.status}
1669
1670echo creating $CONFIG_STATUS
1671rm -f $CONFIG_STATUS
1672cat > $CONFIG_STATUS <<EOF
1673#! /bin/sh
1674# Generated automatically by configure.
1675# Run this file to recreate the current configuration.
1676# This directory was configured as follows,
1677# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1678#
1679# $0 $ac_configure_args
1680#
1681# Compiler output produced by configure, useful for debugging
1682# configure, is in ./config.log if it exists.
1683
1684ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1685for ac_option
1686do
1687 case "\$ac_option" in
1688 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1689 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1690 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1691 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
274e44ae 1692 echo "$CONFIG_STATUS generated by autoconf version 2.12.1"
7858d8dc
C
1693 exit 0 ;;
1694 -help | --help | --hel | --he | --h)
1695 echo "\$ac_cs_usage"; exit 0 ;;
1696 *) echo "\$ac_cs_usage"; exit 1 ;;
1697 esac
1698done
1699
1700ac_given_srcdir=$srcdir
39c3964f 1701ac_given_INSTALL="$INSTALL"
7858d8dc 1702
274e44ae 1703trap 'rm -fr `echo "Makefile gconfig.h:gconfig.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
ba8e3a2e
ILT
1704EOF
1705cat >> $CONFIG_STATUS <<EOF
7858d8dc 1706
ba8e3a2e
ILT
1707# Protect against being on the right side of a sed subst in config.status.
1708sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1709 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7858d8dc
C
1710$ac_vpsub
1711$extrasub
c3de2a19 1712s%@SHELL@%$SHELL%g
7858d8dc
C
1713s%@CFLAGS@%$CFLAGS%g
1714s%@CPPFLAGS@%$CPPFLAGS%g
1715s%@CXXFLAGS@%$CXXFLAGS%g
1716s%@DEFS@%$DEFS%g
1717s%@LDFLAGS@%$LDFLAGS%g
1718s%@LIBS@%$LIBS%g
1719s%@exec_prefix@%$exec_prefix%g
1720s%@prefix@%$prefix%g
1721s%@program_transform_name@%$program_transform_name%g
ba8e3a2e
ILT
1722s%@bindir@%$bindir%g
1723s%@sbindir@%$sbindir%g
1724s%@libexecdir@%$libexecdir%g
1725s%@datadir@%$datadir%g
1726s%@sysconfdir@%$sysconfdir%g
1727s%@sharedstatedir@%$sharedstatedir%g
1728s%@localstatedir@%$localstatedir%g
1729s%@libdir@%$libdir%g
1730s%@includedir@%$includedir%g
1731s%@oldincludedir@%$oldincludedir%g
1732s%@infodir@%$infodir%g
1733s%@mandir@%$mandir%g
7858d8dc
C
1734s%@host@%$host%g
1735s%@host_alias@%$host_alias%g
1736s%@host_cpu@%$host_cpu%g
1737s%@host_vendor@%$host_vendor%g
1738s%@host_os@%$host_os%g
1739s%@target@%$target%g
1740s%@target_alias@%$target_alias%g
1741s%@target_cpu@%$target_cpu%g
1742s%@target_vendor@%$target_vendor%g
1743s%@target_os@%$target_os%g
1744s%@build@%$build%g
1745s%@build_alias@%$build_alias%g
1746s%@build_cpu@%$build_cpu%g
1747s%@build_vendor@%$build_vendor%g
1748s%@build_os@%$build_os%g
2f1fec47
ILT
1749s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1750s%@INSTALL_DATA@%$INSTALL_DATA%g
1751s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1752s%@PACKAGE@%$PACKAGE%g
1753s%@VERSION@%$VERSION%g
1754s%@ACLOCAL@%$ACLOCAL%g
1755s%@AUTOCONF@%$AUTOCONF%g
1756s%@AUTOMAKE@%$AUTOMAKE%g
1757s%@AUTOHEADER@%$AUTOHEADER%g
1758s%@MAKEINFO@%$MAKEINFO%g
1759s%@SET_MAKE@%$SET_MAKE%g
274e44ae 1760s%@RANLIB@%$RANLIB%g
fa1a1b32 1761s%@CC@%$CC%g
274e44ae 1762s%@LD@%$LD%g
fa1a1b32 1763s%@NM@%$NM%g
274e44ae
ILT
1764s%@LN_S@%$LN_S%g
1765s%@LIBTOOL@%$LIBTOOL%g
2f1fec47 1766s%@MAINT@%$MAINT%g
2f1fec47 1767s%@EXEEXT@%$EXEEXT%g
7858d8dc
C
1768
1769CEOF
1770EOF
4947b15f
ILT
1771
1772cat >> $CONFIG_STATUS <<\EOF
1773
1774# Split the substitutions into bite-sized pieces for seds with
1775# small command number limits, like on Digital OSF/1 and HP-UX.
1776ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1777ac_file=1 # Number of current file.
1778ac_beg=1 # First line for current file.
1779ac_end=$ac_max_sed_cmds # Line after last line for current file.
1780ac_more_lines=:
1781ac_sed_cmds=""
1782while $ac_more_lines; do
1783 if test $ac_beg -gt 1; then
1784 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1785 else
1786 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1787 fi
1788 if test ! -s conftest.s$ac_file; then
1789 ac_more_lines=false
1790 rm -f conftest.s$ac_file
1791 else
1792 if test -z "$ac_sed_cmds"; then
1793 ac_sed_cmds="sed -f conftest.s$ac_file"
1794 else
1795 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1796 fi
1797 ac_file=`expr $ac_file + 1`
1798 ac_beg=$ac_end
1799 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1800 fi
1801done
1802if test -z "$ac_sed_cmds"; then
1803 ac_sed_cmds=cat
1804fi
1805EOF
1806
7858d8dc
C
1807cat >> $CONFIG_STATUS <<EOF
1808
1809CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1810EOF
1811cat >> $CONFIG_STATUS <<\EOF
1812for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4947b15f 1813 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7858d8dc 1814 case "$ac_file" in
4947b15f 1815 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7858d8dc
C
1816 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1817 *) ac_file_in="${ac_file}.in" ;;
1818 esac
1819
4947b15f 1820 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7858d8dc
C
1821
1822 # Remove last slash and all that follows it. Not all systems have dirname.
1823 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1824 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1825 # The file is in a subdirectory.
1826 test ! -d "$ac_dir" && mkdir "$ac_dir"
1827 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1828 # A "../" for each directory in $ac_dir_suffix.
1829 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1830 else
1831 ac_dir_suffix= ac_dots=
1832 fi
1833
1834 case "$ac_given_srcdir" in
1835 .) srcdir=.
1836 if test -z "$ac_dots"; then top_srcdir=.
1837 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1838 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1839 *) # Relative path.
1840 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1841 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1842 esac
1843
39c3964f
JM
1844 case "$ac_given_INSTALL" in
1845 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1846 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1847 esac
4947b15f 1848
7858d8dc
C
1849 echo creating "$ac_file"
1850 rm -f "$ac_file"
1851 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1852 case "$ac_file" in
1853 *Makefile*) ac_comsub="1i\\
1854# $configure_input" ;;
1855 *) ac_comsub= ;;
1856 esac
4947b15f
ILT
1857
1858 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7858d8dc
C
1859 sed -e "$ac_comsub
1860s%@configure_input@%$configure_input%g
1861s%@srcdir@%$srcdir%g
1862s%@top_srcdir@%$top_srcdir%g
39c3964f 1863s%@INSTALL@%$INSTALL%g
4947b15f 1864" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7858d8dc 1865fi; done
4947b15f 1866rm -f conftest.s*
7858d8dc 1867
274e44ae
ILT
1868# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1869# NAME is the cpp macro being defined and VALUE is the value it is being given.
1870#
1871# ac_d sets the value in "#define NAME VALUE" lines.
1872ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1873ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
1874ac_dC='\3'
1875ac_dD='%g'
1876# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1877ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1878ac_uB='\([ ]\)%\1#\2define\3'
1879ac_uC=' '
1880ac_uD='\4%g'
1881# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1882ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1883ac_eB='$%\1#\2define\3'
1884ac_eC=' '
1885ac_eD='%g'
1886
1887if test "${CONFIG_HEADERS+set}" != set; then
4947b15f
ILT
1888EOF
1889cat >> $CONFIG_STATUS <<EOF
274e44ae
ILT
1890 CONFIG_HEADERS="gconfig.h:gconfig.in"
1891EOF
1892cat >> $CONFIG_STATUS <<\EOF
1893fi
1894for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1895 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1896 case "$ac_file" in
1897 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1898 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1899 *) ac_file_in="${ac_file}.in" ;;
1900 esac
1901
1902 echo creating $ac_file
1903
1904 rm -f conftest.frag conftest.in conftest.out
1905 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1906 cat $ac_file_inputs > conftest.in
1907
1908EOF
1909
1910# Transform confdefs.h into a sed script conftest.vals that substitutes
1911# the proper values into config.h.in to produce config.h. And first:
1912# Protect against being on the right side of a sed subst in config.status.
1913# Protect against being in an unquoted here document in config.status.
1914rm -f conftest.vals
1915cat > conftest.hdr <<\EOF
1916s/[\\&%]/\\&/g
1917s%[\\$`]%\\&%g
1918s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1919s%ac_d%ac_u%gp
1920s%ac_u%ac_e%gp
1921EOF
1922sed -n -f conftest.hdr confdefs.h > conftest.vals
1923rm -f conftest.hdr
1924
1925# This sed command replaces #undef with comments. This is necessary, for
1926# example, in the case of _POSIX_SOURCE, which is predefined and required
1927# on some systems where configure will not decide to define it.
1928cat >> conftest.vals <<\EOF
1929s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1930EOF
1931
1932# Break up conftest.vals because some shells have a limit on
1933# the size of here documents, and old seds have small limits too.
1934
1935rm -f conftest.tail
1936while :
1937do
1938 ac_lines=`grep -c . conftest.vals`
1939 # grep -c gives empty output for an empty file on some AIX systems.
1940 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1941 # Write a limited-size here document to conftest.frag.
1942 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1943 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1944 echo 'CEOF
1945 sed -f conftest.frag conftest.in > conftest.out
1946 rm -f conftest.in
1947 mv conftest.out conftest.in
1948' >> $CONFIG_STATUS
1949 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1950 rm -f conftest.vals
1951 mv conftest.tail conftest.vals
1952done
1953rm -f conftest.vals
1954
1955cat >> $CONFIG_STATUS <<\EOF
1956 rm -f conftest.frag conftest.h
1957 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
1958 cat conftest.in >> conftest.h
1959 rm -f conftest.in
1960 if cmp -s $ac_file conftest.h 2>/dev/null; then
1961 echo "$ac_file is unchanged"
1962 rm -f conftest.h
1963 else
1964 # Remove last slash and all that follows it. Not all systems have dirname.
1965 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1966 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1967 # The file is in a subdirectory.
1968 test ! -d "$ac_dir" && mkdir "$ac_dir"
1969 fi
1970 rm -f $ac_file
1971 mv conftest.h $ac_file
1972 fi
1973fi; done
1974
1975EOF
1976cat >> $CONFIG_STATUS <<EOF
1977
7858d8dc 1978
4947b15f
ILT
1979EOF
1980cat >> $CONFIG_STATUS <<\EOF
274e44ae 1981test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
7858d8dc
C
1982
1983exit 0
1984EOF
1985chmod +x $CONFIG_STATUS
1986rm -fr confdefs* $ac_clean_files
1987test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1988
This page took 0.188064 seconds and 4 git commands to generate.