2005-01-18 Hans-Peter Nilsson <hp@axis.com>
* libnosys/configure.in (libc_cv_asm_previous_directive): Set cache-id variable. (libc_cv_asm_popsection_directive): Ditto. (libc_cv_section_attributes): Ditto. (libc_symbol_prefix): Rename from libc_dollar_prefix. Check for "_" as well, and set __SYMBOL_PREFIX accordingly. * libnosys/configure: Regenerate.
This commit is contained in:
parent
7a01d046d4
commit
c377f1e3fe
|
@ -1,3 +1,13 @@
|
||||||
|
2005-01-18 Hans-Peter Nilsson <hp@axis.com>
|
||||||
|
|
||||||
|
* libnosys/configure.in (libc_cv_asm_previous_directive): Set
|
||||||
|
cache-id variable.
|
||||||
|
(libc_cv_asm_popsection_directive): Ditto.
|
||||||
|
(libc_cv_section_attributes): Ditto.
|
||||||
|
(libc_symbol_prefix): Rename from libc_dollar_prefix. Check for
|
||||||
|
"_" as well, and set __SYMBOL_PREFIX accordingly.
|
||||||
|
* libnosys/configure: Regenerate.
|
||||||
|
|
||||||
2005-01-18 Hans-Peter Nilsson <hp@axis.com>
|
2005-01-18 Hans-Peter Nilsson <hp@axis.com>
|
||||||
|
|
||||||
* libnosys/Makefile.in (LD, AS): Correct obsoleted suffix: Say
|
* libnosys/Makefile.in (LD, AS): Correct obsoleted suffix: Say
|
||||||
|
|
|
@ -811,11 +811,13 @@ echo "configure:811: checking for .previous assembler directive" >&5
|
||||||
if eval "test \"`echo '$''{'libc_cv_asm_previous_directive'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'libc_cv_asm_previous_directive'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
|
libc_cv_asm_previous_directive=no
|
||||||
cat > conftest.s <<EOF
|
cat > conftest.s <<EOF
|
||||||
.section foo_section
|
.section foo_section
|
||||||
.previous
|
.previous
|
||||||
EOF
|
EOF
|
||||||
if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
|
if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
|
||||||
|
libc_cv_asm_previous_directive=yes
|
||||||
cat >> confdefs.h <<\EOF
|
cat >> confdefs.h <<\EOF
|
||||||
#define HAVE_ASM_PREVIOUS_DIRECTIVE 1
|
#define HAVE_ASM_PREVIOUS_DIRECTIVE 1
|
||||||
EOF
|
EOF
|
||||||
|
@ -827,15 +829,17 @@ fi
|
||||||
echo "$ac_t""$libc_cv_asm_previous_directive" 1>&6
|
echo "$ac_t""$libc_cv_asm_previous_directive" 1>&6
|
||||||
|
|
||||||
echo $ac_n "checking for .popsection assembler directive""... $ac_c" 1>&6
|
echo $ac_n "checking for .popsection assembler directive""... $ac_c" 1>&6
|
||||||
echo "configure:831: checking for .popsection assembler directive" >&5
|
echo "configure:833: checking for .popsection assembler directive" >&5
|
||||||
if eval "test \"`echo '$''{'libc_cv_asm_popsection_directive'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'libc_cv_asm_popsection_directive'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
|
libc_cv_asm_popsection_directive=no
|
||||||
cat > conftest.s <<EOF
|
cat > conftest.s <<EOF
|
||||||
.pushsection foo_section
|
.pushsection foo_section
|
||||||
.popsection
|
.popsection
|
||||||
EOF
|
EOF
|
||||||
if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
|
if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:842: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
|
||||||
|
libc_cv_asm_popsection_directive=yes
|
||||||
cat >> confdefs.h <<\EOF
|
cat >> confdefs.h <<\EOF
|
||||||
#define HAVE_ASM_POPSECTION_DIRECTIVE 1
|
#define HAVE_ASM_POPSECTION_DIRECTIVE 1
|
||||||
EOF
|
EOF
|
||||||
|
@ -847,15 +851,17 @@ fi
|
||||||
echo "$ac_t""$libc_cv_asm_popsection_directive" 1>&6
|
echo "$ac_t""$libc_cv_asm_popsection_directive" 1>&6
|
||||||
|
|
||||||
echo $ac_n "checking for section attributes""... $ac_c" 1>&6
|
echo $ac_n "checking for section attributes""... $ac_c" 1>&6
|
||||||
echo "configure:851: checking for section attributes" >&5
|
echo "configure:855: checking for section attributes" >&5
|
||||||
if eval "test \"`echo '$''{'libc_cv_section_attributes'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'libc_cv_section_attributes'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
|
libc_cv_section_attributes=no
|
||||||
cat > conftest.c <<EOF
|
cat > conftest.c <<EOF
|
||||||
int secttest __attribute__ ((section (".gnu.warning.secttest"))) = 10;
|
int secttest __attribute__ ((section (".gnu.warning.secttest"))) = 10;
|
||||||
int main() {}
|
int main() {}
|
||||||
EOF
|
EOF
|
||||||
if { ac_try='${CC-cc} -c $CFLAGS conftest.c 1>&5'; { (eval echo configure:859: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
|
if { ac_try='${CC-cc} -c $CFLAGS conftest.c 1>&5'; { (eval echo configure:864: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
|
||||||
|
libc_cv_section_attributes=yes
|
||||||
cat >> confdefs.h <<\EOF
|
cat >> confdefs.h <<\EOF
|
||||||
#define HAVE_SECTION_ATTRIBUTES 1
|
#define HAVE_SECTION_ATTRIBUTES 1
|
||||||
EOF
|
EOF
|
||||||
|
@ -868,27 +874,31 @@ echo "$ac_t""$libc_cv_section_attributes" 1>&6
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
echo $ac_n "checking for function prefix""... $ac_c" 1>&6
|
echo $ac_n "checking for symbol prefix""... $ac_c" 1>&6
|
||||||
echo "configure:873: checking for function prefix" >&5
|
echo "configure:879: checking for symbol prefix" >&5
|
||||||
if eval "test \"`echo '$''{'libc_dollar_prefix'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'libc_symbol_prefix'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
cat > conftest.c <<\EOF
|
cat > conftest.c <<\EOF
|
||||||
foo () { }
|
foo () { }
|
||||||
EOF
|
EOF
|
||||||
if { ac_try='${CC-cc} -S conftest.c -o - | fgrep "\$foo" > /dev/null'; { (eval echo configure:880: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
|
libc_symbol_prefix=none
|
||||||
|
if { ac_try='${CC-cc} -S conftest.c -o - | fgrep "\$foo" > /dev/null'; { (eval echo configure:887: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
|
||||||
then
|
then
|
||||||
libc_dollar_prefix=yes
|
libc_symbol_prefix='$'
|
||||||
else
|
else
|
||||||
libc_dollar_prefix=no
|
if { ac_try='${CC-cc} -S conftest.c -o - | fgrep "_foo" > /dev/null'; { (eval echo configure:891: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
|
||||||
|
then
|
||||||
|
libc_symbol_prefix=_
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
rm -f conftest*
|
rm -f conftest*
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "$ac_t""$libc_dollar_prefix" 1>&6
|
echo "$ac_t""$libc_symbol_prefix" 1>&6
|
||||||
if test $libc_dollar_prefix = yes ; then
|
if test $libc_symbol_prefix != none; then
|
||||||
cat >> confdefs.h <<\EOF
|
cat >> confdefs.h <<EOF
|
||||||
#define __SYMBOL_PREFIX "$"
|
#define __SYMBOL_PREFIX "$libc_symbol_prefix"
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
else
|
else
|
||||||
|
@ -901,7 +911,7 @@ fi
|
||||||
# Extract the first word of "gcc", so it can be a program name with args.
|
# Extract the first word of "gcc", so it can be a program name with args.
|
||||||
set dummy gcc; ac_word=$2
|
set dummy gcc; ac_word=$2
|
||||||
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
||||||
echo "configure:905: checking for $ac_word" >&5
|
echo "configure:915: checking for $ac_word" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
|
@ -931,7 +941,7 @@ if test -z "$CC"; then
|
||||||
# Extract the first word of "cc", so it can be a program name with args.
|
# Extract the first word of "cc", so it can be a program name with args.
|
||||||
set dummy cc; ac_word=$2
|
set dummy cc; ac_word=$2
|
||||||
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
||||||
echo "configure:935: checking for $ac_word" >&5
|
echo "configure:945: checking for $ac_word" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
|
@ -980,7 +990,7 @@ fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
||||||
echo "configure:984: checking whether we are using GNU C" >&5
|
echo "configure:994: checking whether we are using GNU C" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
|
@ -989,7 +999,7 @@ else
|
||||||
yes;
|
yes;
|
||||||
#endif
|
#endif
|
||||||
EOF
|
EOF
|
||||||
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:993: \"$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:1003: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
||||||
ac_cv_prog_gcc=yes
|
ac_cv_prog_gcc=yes
|
||||||
else
|
else
|
||||||
ac_cv_prog_gcc=no
|
ac_cv_prog_gcc=no
|
||||||
|
@ -1004,7 +1014,7 @@ if test $ac_cv_prog_gcc = yes; then
|
||||||
ac_save_CFLAGS="$CFLAGS"
|
ac_save_CFLAGS="$CFLAGS"
|
||||||
CFLAGS=
|
CFLAGS=
|
||||||
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
||||||
echo "configure:1008: checking whether ${CC-cc} accepts -g" >&5
|
echo "configure:1018: checking whether ${CC-cc} accepts -g" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
|
@ -1040,7 +1050,7 @@ LD=${LD-ld}
|
||||||
# Extract the first word of "ranlib", so it can be a program name with args.
|
# Extract the first word of "ranlib", so it can be a program name with args.
|
||||||
set dummy ranlib; ac_word=$2
|
set dummy ranlib; ac_word=$2
|
||||||
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
||||||
echo "configure:1044: checking for $ac_word" >&5
|
echo "configure:1054: checking for $ac_word" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
|
|
|
@ -137,53 +137,63 @@ case "${target}" in
|
||||||
|
|
||||||
AC_CACHE_CHECK(for .previous assembler directive,
|
AC_CACHE_CHECK(for .previous assembler directive,
|
||||||
libc_cv_asm_previous_directive, [dnl
|
libc_cv_asm_previous_directive, [dnl
|
||||||
|
libc_cv_asm_previous_directive=no
|
||||||
cat > conftest.s <<EOF
|
cat > conftest.s <<EOF
|
||||||
.section foo_section
|
.section foo_section
|
||||||
.previous
|
.previous
|
||||||
EOF
|
EOF
|
||||||
if AC_TRY_COMMAND(${CC-cc} -c $CFLAGS conftest.s 1>&AC_FD_CC); then
|
if AC_TRY_COMMAND(${CC-cc} -c $CFLAGS conftest.s 1>&AC_FD_CC); then
|
||||||
|
libc_cv_asm_previous_directive=yes
|
||||||
AC_DEFINE(HAVE_ASM_PREVIOUS_DIRECTIVE)
|
AC_DEFINE(HAVE_ASM_PREVIOUS_DIRECTIVE)
|
||||||
fi
|
fi
|
||||||
rm -f conftest*])
|
rm -f conftest*])
|
||||||
|
|
||||||
AC_CACHE_CHECK(for .popsection assembler directive,
|
AC_CACHE_CHECK(for .popsection assembler directive,
|
||||||
libc_cv_asm_popsection_directive, [dnl
|
libc_cv_asm_popsection_directive, [dnl
|
||||||
|
libc_cv_asm_popsection_directive=no
|
||||||
cat > conftest.s <<EOF
|
cat > conftest.s <<EOF
|
||||||
.pushsection foo_section
|
.pushsection foo_section
|
||||||
.popsection
|
.popsection
|
||||||
EOF
|
EOF
|
||||||
if AC_TRY_COMMAND(${CC-cc} -c $CFLAGS conftest.s 1>&AC_FD_CC); then
|
if AC_TRY_COMMAND(${CC-cc} -c $CFLAGS conftest.s 1>&AC_FD_CC); then
|
||||||
|
libc_cv_asm_popsection_directive=yes
|
||||||
AC_DEFINE(HAVE_ASM_POPSECTION_DIRECTIVE)
|
AC_DEFINE(HAVE_ASM_POPSECTION_DIRECTIVE)
|
||||||
fi
|
fi
|
||||||
rm -f conftest*])
|
rm -f conftest*])
|
||||||
|
|
||||||
AC_CACHE_CHECK(for section attributes,
|
AC_CACHE_CHECK(for section attributes,
|
||||||
libc_cv_section_attributes, [dnl
|
libc_cv_section_attributes, [dnl
|
||||||
|
libc_cv_section_attributes=no
|
||||||
cat > conftest.c <<EOF
|
cat > conftest.c <<EOF
|
||||||
int secttest __attribute__ ((section (".gnu.warning.secttest"))) = 10;
|
int secttest __attribute__ ((section (".gnu.warning.secttest"))) = 10;
|
||||||
int main() {}
|
int main() {}
|
||||||
EOF
|
EOF
|
||||||
if AC_TRY_COMMAND(${CC-cc} -c $CFLAGS conftest.c 1>&AC_FD_CC); then
|
if AC_TRY_COMMAND(${CC-cc} -c $CFLAGS conftest.c 1>&AC_FD_CC); then
|
||||||
|
libc_cv_section_attributes=yes
|
||||||
AC_DEFINE(HAVE_SECTION_ATTRIBUTES)
|
AC_DEFINE(HAVE_SECTION_ATTRIBUTES)
|
||||||
fi
|
fi
|
||||||
rm -f conftest*])
|
rm -f conftest*])
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
AC_CACHE_CHECK(for function prefix, libc_dollar_prefix, [dnl
|
AC_CACHE_CHECK(for symbol prefix, libc_symbol_prefix, [dnl
|
||||||
cat > conftest.c <<\EOF
|
cat > conftest.c <<\EOF
|
||||||
foo () { }
|
foo () { }
|
||||||
EOF
|
EOF
|
||||||
dnl
|
dnl
|
||||||
|
libc_symbol_prefix=none
|
||||||
if AC_TRY_COMMAND([${CC-cc} -S conftest.c -o - | fgrep "\$foo" > /dev/null]);
|
if AC_TRY_COMMAND([${CC-cc} -S conftest.c -o - | fgrep "\$foo" > /dev/null]);
|
||||||
then
|
then
|
||||||
libc_dollar_prefix=yes
|
libc_symbol_prefix='$'
|
||||||
else
|
else
|
||||||
libc_dollar_prefix=no
|
if AC_TRY_COMMAND([${CC-cc} -S conftest.c -o - | fgrep "_foo" > /dev/null]);
|
||||||
|
then
|
||||||
|
libc_symbol_prefix=_
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
rm -f conftest* ])
|
rm -f conftest* ])
|
||||||
if test $libc_dollar_prefix = yes ; then
|
if test $libc_symbol_prefix != none; then
|
||||||
AC_DEFINE(__SYMBOL_PREFIX, "$")
|
AC_DEFINE_UNQUOTED(__SYMBOL_PREFIX, "$libc_symbol_prefix")
|
||||||
else
|
else
|
||||||
AC_DEFINE(__SYMBOL_PREFIX, "")
|
AC_DEFINE(__SYMBOL_PREFIX, "")
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue