Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
ca6b370d
Commit
ca6b370d
authored
Oct 08, 1998
by
Jeff Law
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
* Merge egcs & devo libiberty. From-SVN: r22941
parent
8398bbfb
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
205 additions
and
113 deletions
+205
-113
libiberty/ChangeLog
+89
-11
libiberty/Makefile.in
+6
-4
libiberty/config.table
+1
-1
libiberty/configure
+99
-90
libiberty/configure.in
+10
-7
No files found.
libiberty/ChangeLog
View file @
ca6b370d
Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
* Merge egcs & devo libiberty.
1998-09-08 Martin von Lwis <loewis@informatik.hu-berlin.de>
* cplus-dem.c (demangle_arm_pt): Demangle anonymous namespaces.
...
...
@@ -20,6 +24,12 @@ Sat Sep 5 03:24:49 1998 Jeffrey A Law (law@cygnus.com)
* getopt1.c, obstack.c: Similarly.
* Makefile.in: Build mkstemp.o
Tue Sep 1 23:12:47 1998 Christopher Faylor <cgf@cygnus.com>
* configure.in: Include asprintf in list of functions known not
to be in newlib.
* configure: Rebuild.
Wed Aug 19 14:05:01 1998 Mumit Khan <khan@xraylith.wisc.edu>
* cplus-dem.c (work_stuff): Add dllimported.
...
...
@@ -36,6 +46,35 @@ Mon Aug 17 10:40:34 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* cplus-dem.c: Include config.h if it exists. Also, only
prototype malloc/realloc if we can't get stdlib.h.
Sat Aug 15 16:15:01 1998 Ian Lance Taylor <ian@cygnus.com>
* configure.in: Switch back to checking --with-target-subdir when
deciding whether to check for newlib, undoing part of July 15
change.
* configure: Rebuild.
Thu Aug 13 16:47:38 1998 Mark Mitchell <mark@markmitchell.com>
* cplus-dem.c (type_kind_t): New type.
(demangle_template_value_parm): Add type_kind_t parameter. Rely
on this paramter, rather than demangling the type again.
(demangle_integral_value): Pass tk_integral.
(demangle_template_: Pass the value returned from do_type.
(do_type): Return a type_kind_t. Pass tk_integral to
demangle_template_value_parm for array bounds.
(demangle_fund_type): Likewise.
Also incorporate from GCC version:
Tue Jul 21 13:28:19 1998 Jason Merrill <jason@yorick.cygnus.com>
* cplus-dem.c (do_type): Use demangle_template_value_parm for arrays.
Thu Aug 13 16:47:38 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* cplus-dem.c (demangle_nested_args): Make function definition
static to match the prototype.
Tue Jul 28 11:33:09 1998 Mark Mitchell <mark@markmitchell.com>
* cplus-dem.c (type_kind_t): New type.
...
...
@@ -53,16 +92,32 @@ Tue Jul 28 11:33:09 1998 Mark Mitchell <mark@markmitchell.com>
* cplus-dem.c (do_type): Use demangle_template_value_parm for arrays.
Mon Jul 27 12:16:08 1998 Ian Lance Taylor <ian@cygnus.com>
* Makefile.in (ALLOCA): New variable.
($(TARGETLIB)): Add $(ALLOCA) to library.
(needed-list): Add $(ALLOCA).
($(ALLOCA)): Depend upon stamp-picdir.
Sun Jul 19 08:23:17 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* cplus-dem.c (demangle_nested_args): Make function definition
static to match the prototype.
1998-07-13 Mark Mitchell <mark@markmitchell.com>
Wed Jul 15 00:12:58 1998 Ian Lance Taylor <ian@cygnus.com>
* configure.in: Check --with-cross-host rather than
--with-target-subdir when deciding whether build uses a cross
compiler, and when deciding where to install the library.
* configure: Rebuild.
Sun Jul 12 01:27:05 1998 Jason Merrill <jason@yorick.cygnus.com>
* cplus-dem.c (demangle_nested_args): Return a value.
* cplus-dem.c: Incorporate changes from GCC version not present in
the libiberty version:
(string): Move definition before work_stuff.
Sat Jul 11 16:19:48 1998 Mark Mitchell <mark@markmitchell.com>
* cplus-dem.c
(string): Move definition before work_stuff.
(work_stuff): Add volatile_type, forgetting_types,
previous_argument, and nrepeats fields.
(SCOPE_STRING): New macro.
...
...
@@ -91,23 +146,46 @@ Sun Jul 19 08:23:17 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
(do_arg): Improve commment. Handle 'n' repeat code.
(remember_type): Check forgetting_types.
(demangle_args): Deal with 'n' repeat codes. Tidy.
Thu Jul 2 16:26:24 1998 Ian Lance Taylor <ian@cygnus.com>
* config.table: Only use mh-fbsd21 on *-*-freebsd2.2.[012], not on
*-*-freebsd2.2.*. From Dmitrij Tejblum <tejblum@arc.hq.cti.ru>.
Mon Jun 15 16:29:01 1998 Ian Lance Taylor <ian@cygnus.com>
* configure.in (setobjs): Correct quoting error in cygwin32 case.
From Chris Faylor <cgf@cygnus.com>.
Mon Jun 1 13:47:55 1998 Jason Molenda (crash@bugshack.cygnus.com)
* obstack.c: Update to latest FSF version.
Mon Jun 1 14:17:36 1998 Mike Stump <mrs@wrs.com>
* Makefile.in: Add a dependency on stamp-picdir for the
objects, so that we can do a parallel build.
Sat May 30 22:17:13 1998 Mumit Khan <khan@xraylith.wisc.edu>
* configure.in (checkfuncs): Add missing "'".
Fri May 2
2 11:06:41 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
Fri May 2
9 12:40:41 1998 Jason Molenda (crash@bugshack.cygnus.com)
* Makefile.in (distclean): Don't remove alloca-conf.h
* obstack.c (_obstack_memory_used): Elide this function if we're
on a system with GNU libc.
Fri May 22 01:38:07 1998 Hans-Peter Nilsson <hp@axis.se
>
Tue May 26 18:28:43 1998 Ian Lance Taylor <ian@cygnus.com
>
*
cplus-dem.c (MBUF_SIZE): Bumped from 512 to 32767
.
*
Makefile.in (distclean): Remove config.log
.
Fri May 22 01:19:28 1998 Mike Stump <mrs@wrs.com
>
Tue May 26 15:01:52 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de
>
* Makefile.in: Add a dependency on stamp-picdir for the
objects, so that we can do a parallel build.
* Makefile.in (distclean): Don't remove alloca-conf.h.
Fri May 22 01:38:07 1998 Hans-Peter Nilsson <hp@axis.se>
* cplus-dem.c (MBUF_SIZE): Bumped from 512 to 32767.
1998-05-21 Mark Mitchell <mmitchell@usa.net>
...
...
libiberty/Makefile.in
View file @
ca6b370d
...
...
@@ -64,6 +64,7 @@ MAKEOVERRIDES =
TARGETLIB
=
libiberty.a
LIBOBJS
=
@LIBOBJS@
ALLOCA
=
@ALLOCA@
# A configuration can specify extra .o files that should be included,
# even if they are in libc. (Perhaps the libc version is buggy.)
...
...
@@ -127,10 +128,10 @@ REQUIRED_OFILES = argv.o choose-temp.o concat.o cplus-dem.o \
floatformat.o mkstemp.o objalloc.o obstack.o pexecute.o spaces.o strerror.o
\
strsignal.o xatexit.o xexit.o xmalloc.o xstrdup.o xstrerror.o
$(TARGETLIB)
:
$(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS)
$(TARGETLIB)
:
$(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS)
$(ALLOCA)
rm
-f
$(TARGETLIB)
$(AR)
$(AR_FLAGS)
$(TARGETLIB)
\
$(REQUIRED_OFILES)
$(EXTRA_OFILES)
$(LIBOBJS)
$(REQUIRED_OFILES)
$(EXTRA_OFILES)
$(LIBOBJS)
$(ALLOCA)
$(RANLIB)
$(TARGETLIB)
INSTALL_DEST
=
@INSTALL_DEST@
...
...
@@ -150,7 +151,7 @@ install_to_tooldir: all
# needed-list is used by libstdc++.
needed-list
:
Makefile
f
=
"
$(LIBOBJS)
$(EXTRA_OFILES)
"
;
\
f
=
"
$(LIBOBJS)
$(
ALLOCA)
$(
EXTRA_OFILES)
"
;
\
case
$$
f
in
\
*
alloca.o
*
)
f
=
"
$$
f xmalloc.o xexit.o"
;;
\
esac
;
\
...
...
@@ -196,6 +197,7 @@ clean: mostlyclean
distclean
:
clean
@
$(MULTICLEAN)
multi-clean
DO
=
distclean
rm
-f
*
~ Makefile config.status xhost-mkfrag TAGS multilib.out
rm
-f
config.log
maintainer-clean realclean
:
distclean
force
:
...
...
@@ -210,7 +212,7 @@ stamp-h: config.in config.status
config.status
:
$(srcdir)/configure $(srcdir)/config.table
$(SHELL)
./config.status
--recheck
$(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS)
:
stamp-picdir
$(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS)
$(ALLOCA)
:
stamp-picdir
alloca.o
:
config.h
atexit.o
:
config.h
...
...
libiberty/config.table
View file @
ca6b370d
...
...
@@ -3,7 +3,7 @@ case "${host}" in
frag=mh-aix ;;
*-*-cxux7*) frag=mh-cxux7 ;;
*-*-freebsd2.1.*) frag=mh-fbsd21 ;;
*-*-freebsd2.2.
*
) frag=mh-fbsd21 ;;
*-*-freebsd2.2.
[012]
) frag=mh-fbsd21 ;;
i[345]86-*-windows*) frag=mh-windows ;;
esac
...
...
libiberty/configure
View file @
ca6b370d
...
...
@@ -12,7 +12,9 @@ ac_help=
ac_default_prefix
=
/usr/local
# Any additions from configure.in:
ac_help
=
"
$ac_help
--with-target-subdir=SUBDIR Configuring with a cross compiler"
--with-target-subdir=SUBDIR Configuring in a subdirectory"
ac_help
=
"
$ac_help
--with-cross-host=HOST Configuring with a cross compiler"
ac_help
=
"
$ac_help
--with-newlib Configuring with newlib"
...
...
@@ -530,6 +532,12 @@ if test "${with_target_subdir+set}" = set; then
:
fi
# Check whether --with-cross-host or --without-cross-host was given.
if
test
"
${
with_cross_host
+set
}
"
=
set
;
then
withval
=
"
$with_cross_host
"
:
fi
# Check whether --with-newlib or --without-newlib was given.
if
test
"
${
with_newlib
+set
}
"
=
set
;
then
withval
=
"
$with_newlib
"
...
...
@@ -577,7 +585,7 @@ else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
fi
echo
$ac_n
"checking host system type""...
$ac_c
"
1>&6
echo
"configure:58
1
: checking host system type"
>
&5
echo
"configure:58
9
: checking host system type"
>
&5
host_alias
=
$host
case
"
$host_alias
"
in
...
...
@@ -600,7 +608,7 @@ echo "$ac_t""$host" 1>&6
echo
$ac_n
"checking build system type""...
$ac_c
"
1>&6
echo
"configure:6
04
: checking build system type"
>
&5
echo
"configure:6
12
: checking build system type"
>
&5
build_alias
=
$build
case
"
$build_alias
"
in
...
...
@@ -626,7 +634,7 @@ fi
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
set
dummy
${
ac_tool_prefix
}
ar
;
ac_word
=
$2
echo
$ac_n
"checking for
$ac_word
""...
$ac_c
"
1>&6
echo
"configure:63
0
: checking for
$ac_word
"
>
&5
echo
"configure:63
8
: checking for
$ac_word
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_prog_AR
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -657,7 +665,7 @@ fi
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
set
dummy
${
ac_tool_prefix
}
ranlib
;
ac_word
=
$2
echo
$ac_n
"checking for
$ac_word
""...
$ac_c
"
1>&6
echo
"configure:66
1
: checking for
$ac_word
"
>
&5
echo
"configure:66
9
: checking for
$ac_word
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_prog_RANLIB
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -688,7 +696,7 @@ if test -n "$ac_tool_prefix"; then
# Extract the first word of "ranlib", so it can be a program name with args.
set
dummy ranlib
;
ac_word
=
$2
echo
$ac_n
"checking for
$ac_word
""...
$ac_c
"
1>&6
echo
"configure:
692
: checking for
$ac_word
"
>
&5
echo
"configure:
700
: checking for
$ac_word
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_prog_RANLIB
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -732,7 +740,7 @@ fi
# Extract the first word of "gcc", so it can be a program name with args.
set
dummy gcc
;
ac_word
=
$2
echo
$ac_n
"checking for
$ac_word
""...
$ac_c
"
1>&6
echo
"configure:7
36
: checking for
$ac_word
"
>
&5
echo
"configure:7
44
: checking for
$ac_word
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_prog_CC
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -761,7 +769,7 @@ if test -z "$CC"; then
# Extract the first word of "cc", so it can be a program name with args.
set
dummy cc
;
ac_word
=
$2
echo
$ac_n
"checking for
$ac_word
""...
$ac_c
"
1>&6
echo
"configure:7
65
: checking for
$ac_word
"
>
&5
echo
"configure:7
73
: checking for
$ac_word
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_prog_CC
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -809,7 +817,7 @@ fi
fi
echo
$ac_n
"checking whether we are using GNU C""...
$ac_c
"
1>&6
echo
"configure:8
13
: checking whether we are using GNU C"
>
&5
echo
"configure:8
21
: checking whether we are using GNU C"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_prog_gcc
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -818,7 +826,7 @@ else
yes;
#endif
EOF
if
{
ac_try
=
'${CC-cc} -E conftest.c'
;
{
(
eval echo
configure:8
22
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
;
}
| egrep yes
>
/dev/null 2>&1
;
then
if
{
ac_try
=
'${CC-cc} -E conftest.c'
;
{
(
eval echo
configure:8
30
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
;
}
| egrep yes
>
/dev/null 2>&1
;
then
ac_cv_prog_gcc
=
yes
else
ac_cv_prog_gcc
=
no
...
...
@@ -833,7 +841,7 @@ if test $ac_cv_prog_gcc = yes; then
ac_save_CFLAGS
=
"
$CFLAGS
"
CFLAGS
=
echo
$ac_n
"checking whether
${
CC
-cc
}
accepts -g""...
$ac_c
"
1>&6
echo
"configure:8
37
: checking whether
${
CC
-cc
}
accepts -g"
>
&5
echo
"configure:8
45
: checking whether
${
CC
-cc
}
accepts -g"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_prog_cc_g
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -862,7 +870,7 @@ fi
echo
$ac_n
"checking for POSIXized ISC""...
$ac_c
"
1>&6
echo
"configure:8
66
: checking for POSIXized ISC"
>
&5
echo
"configure:8
74
: checking for POSIXized ISC"
>
&5
if
test
-d
/etc/conf/kconfig.d
&&
grep
_POSIX_VERSION /usr/include/sys/unistd.h
>
/dev/null 2>&1
then
...
...
@@ -900,7 +908,7 @@ fi
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# ./install, which can be erroneously created by make from ./install.sh.
echo
$ac_n
"checking for a BSD compatible install""...
$ac_c
"
1>&6
echo
"configure:9
04
: checking for a BSD compatible install"
>
&5
echo
"configure:9
12
: checking for a BSD compatible install"
>
&5
if
test
-z
"
$INSTALL
"
;
then
if
eval
"test
\"
`
echo
'$''{'
ac_cv_path_install
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
...
...
@@ -959,7 +967,7 @@ host_makefile_frag=${frag}
# able to link anything, it had better be able to at least compile
# something.
echo
$ac_n
"checking how to run the C preprocessor""...
$ac_c
"
1>&6
echo
"configure:9
63
: checking how to run the C preprocessor"
>
&5
echo
"configure:9
71
: checking how to run the C preprocessor"
>
&5
# On Suns, sometimes $CPP names a directory.
if
test
-n
"
$CPP
"
&&
test
-d
"
$CPP
"
;
then
CPP
=
...
...
@@ -974,13 +982,13 @@ else
# On the NeXT, cc -E runs the code through the compiler's parser,
# not just through cpp.
cat
>
conftest.
$ac_ext
<<
EOF
#line 9
78
"configure"
#line 9
86
"configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
{
(
eval echo
configure:9
84
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
{
(
eval echo
configure:9
92
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
ac_err
=
`
grep
-v
'^ *+'
conftest.out
`
if
test
-z
"
$ac_err
"
;
then
:
...
...
@@ -991,13 +999,13 @@ else
rm
-rf
conftest
*
CPP
=
"
${
CC
-cc
}
-E -traditional-cpp"
cat
>
conftest.
$ac_ext
<<
EOF
#line
995
"configure"
#line
1003
"configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
{
(
eval echo
configure:100
1
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
{
(
eval echo
configure:100
9
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
ac_err
=
`
grep
-v
'^ *+'
conftest.out
`
if
test
-z
"
$ac_err
"
;
then
:
...
...
@@ -1023,17 +1031,17 @@ for ac_hdr in sys/file.h sys/param.h stdlib.h string.h unistd.h
do
ac_safe
=
`
echo
"
$ac_hdr
"
| sed
'y%./+-%__p_%'
`
echo
$ac_n
"checking for
$ac_hdr
""...
$ac_c
"
1>&6
echo
"configure:10
27
: checking for
$ac_hdr
"
>
&5
echo
"configure:10
35
: checking for
$ac_hdr
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_header_
$ac_safe
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 10
32
"configure"
#line 10
40
"configure"
#include "confdefs.h"
#include <
$ac_hdr
>
EOF
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
{
(
eval echo
configure:10
37
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
{
(
eval echo
configure:10
45
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
ac_err
=
`
grep
-v
'^ *+'
conftest.out
`
if
test
-z
"
$ac_err
"
;
then
rm
-rf
conftest
*
...
...
@@ -1111,12 +1119,12 @@ if test "x" = "y"; then
for
ac_func
in
asprintf atexit basename bcmp bcopy bzero clock getcwd
do
echo
$ac_n
"checking for
$ac_func
""...
$ac_c
"
1>&6
echo
"configure:11
15
: checking for
$ac_func
"
>
&5
echo
"configure:11
23
: checking for
$ac_func
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_
$ac_func
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 112
0
"configure"
#line 112
8
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char
$ac_func
(); below. */
...
...
@@ -1139,7 +1147,7 @@ $ac_func();
; return 0; }
EOF
if
{
(
eval echo
configure:11
43
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:11
51
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_
$ac_func
=yes"
else
...
...
@@ -1166,12 +1174,12 @@ done
for
ac_func
in
getpagesize index insque memchr memcmp memcpy memmove
do
echo
$ac_n
"checking for
$ac_func
""...
$ac_c
"
1>&6
echo
"configure:117
0
: checking for
$ac_func
"
>
&5
echo
"configure:117
8
: checking for
$ac_func
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_
$ac_func
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 11
75
"configure"
#line 11
83
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char
$ac_func
(); below. */
...
...
@@ -1194,7 +1202,7 @@ $ac_func();
; return 0; }
EOF
if
{
(
eval echo
configure:1
198
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:1
206
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_
$ac_func
=yes"
else
...
...
@@ -1221,12 +1229,12 @@ done
for
ac_func
in
memset random rename rindex sigsetmask strcasecmp
do
echo
$ac_n
"checking for
$ac_func
""...
$ac_c
"
1>&6
echo
"configure:12
25
: checking for
$ac_func
"
>
&5
echo
"configure:12
33
: checking for
$ac_func
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_
$ac_func
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 123
0
"configure"
#line 123
8
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char
$ac_func
(); below. */
...
...
@@ -1249,7 +1257,7 @@ $ac_func();
; return 0; }
EOF
if
{
(
eval echo
configure:12
53
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:12
61
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_
$ac_func
=yes"
else
...
...
@@ -1276,12 +1284,12 @@ done
for
ac_func
in
strchr strdup strncasecmp strrchr strstr strtod strtol
do
echo
$ac_n
"checking for
$ac_func
""...
$ac_c
"
1>&6
echo
"configure:128
0
: checking for
$ac_func
"
>
&5
echo
"configure:128
8
: checking for
$ac_func
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_
$ac_func
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 12
85
"configure"
#line 12
93
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char
$ac_func
(); below. */
...
...
@@ -1304,7 +1312,7 @@ $ac_func();
; return 0; }
EOF
if
{
(
eval echo
configure:13
08
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:13
16
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_
$ac_func
=yes"
else
...
...
@@ -1331,12 +1339,12 @@ done
for
ac_func
in
strtoul tmpnam vasprintf vfprintf vprintf vsprintf waitpid
do
echo
$ac_n
"checking for
$ac_func
""...
$ac_c
"
1>&6
echo
"configure:13
35
: checking for
$ac_func
"
>
&5
echo
"configure:13
43
: checking for
$ac_func
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_
$ac_func
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 134
0
"configure"
#line 134
8
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char
$ac_func
(); below. */
...
...
@@ -1359,7 +1367,7 @@ $ac_func();
; return 0; }
EOF
if
{
(
eval echo
configure:13
63
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:13
71
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_
$ac_func
=yes"
else
...
...
@@ -1398,12 +1406,12 @@ EOF
for
ac_func
in
getrusage on_exit psignal strerror strsignal sysconf
times
do
echo
$ac_n
"checking for
$ac_func
""...
$ac_c
"
1>&6
echo
"configure:14
02
: checking for
$ac_func
"
>
&5
echo
"configure:14
10
: checking for
$ac_func
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_
$ac_func
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 14
07
"configure"
#line 14
15
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char
$ac_func
(); below. */
...
...
@@ -1426,7 +1434,7 @@ $ac_func();
; return 0; }
EOF
if
{
(
eval echo
configure:143
0
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:143
8
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_
$ac_func
=yes"
else
...
...
@@ -1460,20 +1468,21 @@ fi
setobjs
=
if
test
-n
"
${
with_target_subdir
}
"
;
then
# We are being configured
with a cross compiler
. AC_REPLACE_FUNCS
# We are being configured
as a target library
. AC_REPLACE_FUNCS
# may not work correctly, because the compiler may not be able to
# link executables.
# link executables. Note that we may still be being configured
# native.
# If we are being configured for newlib, we know which functions
# newlib provide and which ones we will be expected to provide.
if
test
"x
${
with_newlib
}
"
=
"xyes"
;
then
ALLOCA
=
"alloca.o"
LIBOBJS
=
"basename.o insque.o random.o strdup.o vasprintf.o"
LIBOBJS
=
"
asprintf.o
basename.o insque.o random.o strdup.o vasprintf.o"
for
f
in
$funcs
;
do
case
"
$f
"
in
basename
|
insque
|
random
|
strdup
|
vasprintf
)
asprintf
|
basename
|
insque
|
random
|
strdup
|
vasprintf
)
;;
*
)
n
=
HAVE_
`
echo
$f
| tr
'abcdefghijklmnopqrstuvwxyz'
'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
`
...
...
@@ -1488,7 +1497,7 @@ EOF
# newlib doesnt provide any of the variables in $vars, so we
# dont have to check them here.
# Of the functions in $checkfuncs,
VxWorks
only has strerror.
# Of the functions in $checkfuncs,
newlib
only has strerror.
cat
>>
confdefs.h
<<
\
EOF
#define HAVE_STRERROR 1
EOF
...
...
@@ -1580,7 +1589,7 @@ EOF
# We haven't set the list of objects yet. Use the standard autoconf
# tests. This will only work if the compiler works.
echo
$ac_n
"checking whether the C compiler (
$CC
$CFLAGS
$LDFLAGS
) works""...
$ac_c
"
1>&6
echo
"configure:15
84
: checking whether the C compiler (
$CC
$CFLAGS
$LDFLAGS
) works"
>
&5
echo
"configure:15
93
: checking whether the C compiler (
$CC
$CFLAGS
$LDFLAGS
) works"
>
&5
ac_ext
=
c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
...
...
@@ -1590,11 +1599,11 @@ ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS
cross_compiling
=
$ac_cv_prog_cc_cross
cat
>
conftest.
$ac_ext
<<
EOF
#line 1
594
"configure"
#line 1
603
"configure"
#include "confdefs.h"
main(){return(0);}
EOF
if
{
(
eval echo
configure:1
598
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:1
607
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
ac_cv_prog_cc_works
=
yes
# If we can't run a trivial program, we are probably using a cross compiler.
if
(
./conftest
;
exit
)
2>/dev/null
;
then
...
...
@@ -1614,19 +1623,19 @@ if test $ac_cv_prog_cc_works = no; then
{
echo
"configure: error: installation or configuration problem: C compiler cannot create executables."
1>&2
;
exit
1
;
}
fi
echo
$ac_n
"checking whether the C compiler (
$CC
$CFLAGS
$LDFLAGS
) is a cross-compiler""...
$ac_c
"
1>&6
echo
"configure:16
18
: checking whether the C compiler (
$CC
$CFLAGS
$LDFLAGS
) is a cross-compiler"
>
&5
echo
"configure:16
27
: checking whether the C compiler (
$CC
$CFLAGS
$LDFLAGS
) is a cross-compiler"
>
&5
echo
"
$ac_t
""
$ac_cv_prog_cc_cross
"
1>&6
cross_compiling
=
$ac_cv_prog_cc_cross
for
ac_func
in
$funcs
do
echo
$ac_n
"checking for
$ac_func
""...
$ac_c
"
1>&6
echo
"configure:16
25
: checking for
$ac_func
"
>
&5
echo
"configure:16
34
: checking for
$ac_func
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_
$ac_func
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 163
0
"configure"
#line 163
9
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char
$ac_func
(); below. */
...
...
@@ -1649,7 +1658,7 @@ $ac_func();
; return 0; }
EOF
if
{
(
eval echo
configure:16
53
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:16
62
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_
$ac_func
=yes"
else
...
...
@@ -1678,19 +1687,19 @@ done
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
# for constant arguments. Useless!
echo
$ac_n
"checking for working alloca.h""...
$ac_c
"
1>&6
echo
"configure:16
82
: checking for working alloca.h"
>
&5
echo
"configure:16
91
: checking for working alloca.h"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_header_alloca_h
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 16
87
"configure"
#line 16
96
"configure"
#include "confdefs.h"
#include <alloca.h>
int main() {
char *p = alloca(2 * sizeof(int));
; return 0; }
EOF
if
{
(
eval echo
configure:1
694
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:1
703
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
ac_cv_header_alloca_h
=
yes
else
...
...
@@ -1711,12 +1720,12 @@ EOF
fi
echo
$ac_n
"checking for alloca""...
$ac_c
"
1>&6
echo
"configure:17
15
: checking for alloca"
>
&5
echo
"configure:17
24
: checking for alloca"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_alloca_works
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 172
0
"configure"
#line 172
9
"configure"
#include "confdefs.h"
#ifdef __GNUC__
...
...
@@ -1739,7 +1748,7 @@ int main() {
char *p = (char *) alloca(1);
; return 0; }
EOF
if
{
(
eval echo
configure:17
43
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:17
52
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
ac_cv_func_alloca_works
=
yes
else
...
...
@@ -1771,12 +1780,12 @@ EOF
echo
$ac_n
"checking whether alloca needs Cray hooks""...
$ac_c
"
1>&6
echo
"configure:17
75
: checking whether alloca needs Cray hooks"
>
&5
echo
"configure:17
84
: checking whether alloca needs Cray hooks"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_os_cray
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 178
0
"configure"
#line 178
9
"configure"
#include "confdefs.h"
#if defined(CRAY) && ! defined(CRAY2)
webecray
...
...
@@ -1801,12 +1810,12 @@ echo "$ac_t""$ac_cv_os_cray" 1>&6
if
test
$ac_cv_os_cray
=
yes
;
then
for
ac_func
in
_getb67 GETB67 getb67
;
do
echo
$ac_n
"checking for
$ac_func
""...
$ac_c
"
1>&6
echo
"configure:18
05
: checking for
$ac_func
"
>
&5
echo
"configure:18
14
: checking for
$ac_func
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_
$ac_func
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 181
0
"configure"
#line 181
9
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char
$ac_func
(); below. */
...
...
@@ -1829,7 +1838,7 @@ $ac_func();
; return 0; }
EOF
if
{
(
eval echo
configure:18
33
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:18
42
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_
$ac_func
=yes"
else
...
...
@@ -1856,7 +1865,7 @@ done
fi
echo
$ac_n
"checking stack direction for C alloca""...
$ac_c
"
1>&6
echo
"configure:186
0
: checking stack direction for C alloca"
>
&5
echo
"configure:186
9
: checking stack direction for C alloca"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_c_stack_direction
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -1864,7 +1873,7 @@ else
ac_cv_c_stack_direction
=
0
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 18
68
"configure"
#line 18
77
"configure"
#include "confdefs.h"
find_stack_direction ()
{
...
...
@@ -1883,7 +1892,7 @@ main ()
exit (find_stack_direction() < 0);
}
EOF
if
{
(
eval echo
configure:18
87
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:18
96
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
&&
(
./conftest
;
exit
)
2>/dev/null
then
ac_cv_c_stack_direction
=
1
else
...
...
@@ -1905,12 +1914,12 @@ EOF
fi
echo
$ac_n
"checking for ANSI C header files""...
$ac_c
"
1>&6
echo
"configure:19
09
: checking for ANSI C header files"
>
&5
echo
"configure:19
18
: checking for ANSI C header files"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_header_stdc
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 19
14
"configure"
#line 19
23
"configure"
#include "confdefs.h"
#include <stdlib.h>
#include <stdarg.h>
...
...
@@ -1918,7 +1927,7 @@ else
#include <float.h>
EOF
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
{
(
eval echo
configure:19
22
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
{
(
eval echo
configure:19
31
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
ac_err
=
`
grep
-v
'^ *+'
conftest.out
`
if
test
-z
"
$ac_err
"
;
then
rm
-rf
conftest
*
...
...
@@ -1935,7 +1944,7 @@ rm -f conftest*
if
test
$ac_cv_header_stdc
=
yes
;
then
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cat
>
conftest.
$ac_ext
<<
EOF
#line 19
39
"configure"
#line 19
48
"configure"
#include "confdefs.h"
#include <string.h>
EOF
...
...
@@ -1953,7 +1962,7 @@ fi
if
test
$ac_cv_header_stdc
=
yes
;
then
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cat
>
conftest.
$ac_ext
<<
EOF
#line 19
57
"configure"
#line 19
66
"configure"
#include "confdefs.h"
#include <stdlib.h>
EOF
...
...
@@ -1974,7 +1983,7 @@ if test "$cross_compiling" = yes; then
:
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 19
78
"configure"
#line 19
87
"configure"
#include "confdefs.h"
#include <ctype.h>
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
...
...
@@ -1985,7 +1994,7 @@ if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
exit (0); }
EOF
if
{
(
eval echo
configure:19
89
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:19
98
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
&&
(
./conftest
;
exit
)
2>/dev/null
then
:
else
...
...
@@ -2009,12 +2018,12 @@ EOF
fi
echo
$ac_n
"checking for pid_t""...
$ac_c
"
1>&6
echo
"configure:20
13
: checking for pid_t"
>
&5
echo
"configure:20
22
: checking for pid_t"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_type_pid_t
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 20
18
"configure"
#line 20
27
"configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
...
...
@@ -2043,17 +2052,17 @@ fi
ac_safe
=
`
echo
"vfork.h"
| sed
'y%./+-%__p_%'
`
echo
$ac_n
"checking for vfork.h""...
$ac_c
"
1>&6
echo
"configure:20
47
: checking for vfork.h"
>
&5
echo
"configure:20
56
: checking for vfork.h"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_header_
$ac_safe
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 20
52
"configure"
#line 20
61
"configure"
#include "confdefs.h"
#include <vfork.h>
EOF
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
{
(
eval echo
configure:20
57
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
{
(
eval echo
configure:20
66
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
ac_err
=
`
grep
-v
'^ *+'
conftest.out
`
if
test
-z
"
$ac_err
"
;
then
rm
-rf
conftest
*
...
...
@@ -2078,18 +2087,18 @@ else
fi
echo
$ac_n
"checking for working vfork""...
$ac_c
"
1>&6
echo
"configure:20
82
: checking for working vfork"
>
&5
echo
"configure:20
91
: checking for working vfork"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_vfork_works
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
if
test
"
$cross_compiling
"
=
yes
;
then
echo
$ac_n
"checking for vfork""...
$ac_c
"
1>&6
echo
"configure:20
88
: checking for vfork"
>
&5
echo
"configure:20
97
: checking for vfork"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_vfork
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 2
093
"configure"
#line 2
102
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char vfork(); below. */
...
...
@@ -2112,7 +2121,7 @@ vfork();
; return 0; }
EOF
if
{
(
eval echo
configure:21
16
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:21
25
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_vfork=yes"
else
...
...
@@ -2134,7 +2143,7 @@ fi
ac_cv_func_vfork_works
=
$ac_cv_func_vfork
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 21
38
"configure"
#line 21
47
"configure"
#include "confdefs.h"
/* Thanks to Paul Eggert for this test. */
#include <stdio.h>
...
...
@@ -2229,7 +2238,7 @@ main() {
}
}
EOF
if
{
(
eval echo
configure:22
33
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:22
42
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
&&
(
./conftest
;
exit
)
2>/dev/null
then
ac_cv_func_vfork_works
=
yes
else
...
...
@@ -2256,19 +2265,19 @@ fi
fi
for
v
in
$vars
;
do
echo
$ac_n
"checking for
$v
""...
$ac_c
"
1>&6
echo
"configure:226
0
: checking for
$v
"
>
&5
echo
"configure:226
9
: checking for
$v
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
libiberty_cv_var_
$v
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 22
65
"configure"
#line 22
74
"configure"
#include "confdefs.h"
int *p;
int main() {
extern int
$v
; p = &
$v
;
; return 0; }
EOF
if
{
(
eval echo
configure:22
72
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:22
81
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"libiberty_cv_var_
$v
=yes"
else
...
...
@@ -2294,12 +2303,12 @@ EOF
for
ac_func
in
$checkfuncs
do
echo
$ac_n
"checking for
$ac_func
""...
$ac_c
"
1>&6
echo
"configure:2
298
: checking for
$ac_func
"
>
&5
echo
"configure:2
307
: checking for
$ac_func
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_
$ac_func
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 23
03
"configure"
#line 23
12
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char
$ac_func
(); below. */
...
...
@@ -2322,7 +2331,7 @@ $ac_func();
; return 0; }
EOF
if
{
(
eval echo
configure:23
26
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:23
35
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_
$ac_func
=yes"
else
...
...
@@ -2350,7 +2359,7 @@ fi
# Install a library built with a cross compiler in $(tooldir) rather
# than $(libdir).
if
test
-z
"
${
with_
target_subdir
}
"
;
then
if
test
-z
"
${
with_
cross_host
}
"
;
then
INSTALL_DEST
=
libdir
else
INSTALL_DEST
=
tooldir
...
...
libiberty/configure.in
View file @
ca6b370d
...
...
@@ -5,7 +5,9 @@ AC_INIT(pexecute.c)
dnl We use these options to decide which functions to include.
AC_ARG_WITH(target-subdir,
[ --with-target-subdir=SUBDIR Configuring with a cross compiler])
[ --with-target-subdir=SUBDIR Configuring in a subdirectory])
AC_ARG_WITH(cross-host,
[ --with-cross-host=HOST Configuring with a cross compiler])
AC_ARG_WITH(newlib,
[ --with-newlib Configuring with newlib])
...
...
@@ -173,20 +175,21 @@ fi
setobjs=
if test -n "${with_target_subdir}"; then
# We are being configured
with a cross compiler
. AC_REPLACE_FUNCS
# We are being configured
as a target library
. AC_REPLACE_FUNCS
# may not work correctly, because the compiler may not be able to
# link executables.
# link executables. Note that we may still be being configured
# native.
# If we are being configured for newlib, we know which functions
# newlib provide and which ones we will be expected to provide.
if test "x${with_newlib}" = "xyes"; then
ALLOCA="alloca.o"
LIBOBJS="basename.o insque.o random.o strdup.o vasprintf.o"
LIBOBJS="
asprintf.o
basename.o insque.o random.o strdup.o vasprintf.o"
for f in $funcs; do
case "$f" in
basename | insque | random | strdup | vasprintf)
asprintf |
basename | insque | random | strdup | vasprintf)
;;
*)
n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
...
...
@@ -198,7 +201,7 @@ if test -n "${with_target_subdir}"; then
# newlib doesnt provide any of the variables in $vars, so we
# dont have to check them here.
# Of the functions in $checkfuncs,
VxWorks
only has strerror.
# Of the functions in $checkfuncs,
newlib
only has strerror.
AC_DEFINE(HAVE_STRERROR)
setobjs=yes
...
...
@@ -300,7 +303,7 @@ fi
# Install a library built with a cross compiler in $(tooldir) rather
# than $(libdir).
if test -z "${with_
target_subdir
}"; then
if test -z "${with_
cross_host
}"; then
INSTALL_DEST=libdir
else
INSTALL_DEST=tooldir
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment