@@ -1448,22 +1448,11 @@ echo "${ECHO_T}$template" >&6
1448
1448
PORTNAME=$template
1449
1449
1450
1450
1451
- # Pick right test-and-set (TAS) code. Most platforms have inline
1452
- # assembler code in src/include/storage/s_lock.h, so we just use
1453
- # a dummy file here.
1454
- case $host in
1455
- hppa*-*-hpux*) need_tas=yes; tas_file=hpux_hppa.s ;;
1456
- sparc-*-solaris*) need_tas=yes; tas_file=solaris_sparc.s ;;
1457
- i?86-*-solaris*) need_tas=yes; tas_file=solaris_i386.s ;;
1458
- *) need_tas=no; tas_file=dummy.s ;;
1459
- esac
1460
- ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
1461
-
1462
-
1463
- if test "$need_tas" = yes ; then
1464
- TAS=tas.o
1465
- fi
1466
-
1451
+ # Initialize default assumption that we do not need separate assembly code
1452
+ # for TAS (test-and-set). This can be overridden by the template file
1453
+ # when it's executed.
1454
+ need_tas=no
1455
+ tas_file=dummy.s
1467
1456
1468
1457
1469
1458
@@ -2824,6 +2813,21 @@ _ACEOF
2824
2813
2825
2814
2826
2815
2816
+ #
2817
+ # Set up TAS assembly code if needed; the template file has now had its
2818
+ # chance to request this.
2819
+ #
2820
+ ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
2821
+
2822
+
2823
+ if test "$need_tas" = yes ; then
2824
+ TAS=tas.o
2825
+ else
2826
+ TAS=""
2827
+ fi
2828
+
2829
+
2830
+
2827
2831
#
2828
2832
# Automatic dependency tracking
2829
2833
#
@@ -18223,7 +18227,6 @@ s,@host_cpu@,$host_cpu,;t t
18223
18227
s,@host_vendor@,$host_vendor,;t t
18224
18228
s,@host_os@,$host_os,;t t
18225
18229
s,@PORTNAME@,$PORTNAME,;t t
18226
- s,@TAS@,$TAS,;t t
18227
18230
s,@docdir@,$docdir,;t t
18228
18231
s,@enable_nls@,$enable_nls,;t t
18229
18232
s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
@@ -18240,6 +18243,7 @@ s,@EXEEXT@,$EXEEXT,;t t
18240
18243
s,@OBJEXT@,$OBJEXT,;t t
18241
18244
s,@CPP@,$CPP,;t t
18242
18245
s,@GCC@,$GCC,;t t
18246
+ s,@TAS@,$TAS,;t t
18243
18247
s,@autodepend@,$autodepend,;t t
18244
18248
s,@INCLUDES@,$INCLUDES,;t t
18245
18249
s,@enable_thread_safety@,$enable_thread_safety,;t t