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