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