head 1.4; access; symbols pkgsrc-2026Q1:1.4.0.82 pkgsrc-2026Q1-base:1.4 pkgsrc-2025Q4:1.4.0.80 pkgsrc-2025Q4-base:1.4 pkgsrc-2025Q3:1.4.0.78 pkgsrc-2025Q3-base:1.4 pkgsrc-2025Q2:1.4.0.76 pkgsrc-2025Q2-base:1.4 pkgsrc-2025Q1:1.4.0.74 pkgsrc-2025Q1-base:1.4 pkgsrc-2024Q4:1.4.0.72 pkgsrc-2024Q4-base:1.4 pkgsrc-2024Q3:1.4.0.70 pkgsrc-2024Q3-base:1.4 pkgsrc-2024Q2:1.4.0.68 pkgsrc-2024Q2-base:1.4 pkgsrc-2024Q1:1.4.0.66 pkgsrc-2024Q1-base:1.4 pkgsrc-2023Q4:1.4.0.64 pkgsrc-2023Q4-base:1.4 pkgsrc-2023Q3:1.4.0.62 pkgsrc-2023Q3-base:1.4 pkgsrc-2023Q2:1.4.0.60 pkgsrc-2023Q2-base:1.4 pkgsrc-2023Q1:1.4.0.58 pkgsrc-2023Q1-base:1.4 pkgsrc-2022Q4:1.4.0.56 pkgsrc-2022Q4-base:1.4 pkgsrc-2022Q3:1.4.0.54 pkgsrc-2022Q3-base:1.4 pkgsrc-2022Q2:1.4.0.52 pkgsrc-2022Q2-base:1.4 pkgsrc-2022Q1:1.4.0.50 pkgsrc-2022Q1-base:1.4 pkgsrc-2021Q4:1.4.0.48 pkgsrc-2021Q4-base:1.4 pkgsrc-2021Q3:1.4.0.46 pkgsrc-2021Q3-base:1.4 pkgsrc-2021Q2:1.4.0.44 pkgsrc-2021Q2-base:1.4 pkgsrc-2021Q1:1.4.0.42 pkgsrc-2021Q1-base:1.4 pkgsrc-2020Q4:1.4.0.40 pkgsrc-2020Q4-base:1.4 pkgsrc-2020Q3:1.4.0.38 pkgsrc-2020Q3-base:1.4 pkgsrc-2020Q2:1.4.0.34 pkgsrc-2020Q2-base:1.4 pkgsrc-2020Q1:1.4.0.14 pkgsrc-2020Q1-base:1.4 pkgsrc-2019Q4:1.4.0.36 pkgsrc-2019Q4-base:1.4 pkgsrc-2019Q3:1.4.0.32 pkgsrc-2019Q3-base:1.4 pkgsrc-2019Q2:1.4.0.30 pkgsrc-2019Q2-base:1.4 pkgsrc-2019Q1:1.4.0.28 pkgsrc-2019Q1-base:1.4 pkgsrc-2018Q4:1.4.0.26 pkgsrc-2018Q4-base:1.4 pkgsrc-2018Q3:1.4.0.24 pkgsrc-2018Q3-base:1.4 pkgsrc-2018Q2:1.4.0.22 pkgsrc-2018Q2-base:1.4 pkgsrc-2018Q1:1.4.0.20 pkgsrc-2018Q1-base:1.4 pkgsrc-2017Q4:1.4.0.18 pkgsrc-2017Q4-base:1.4 pkgsrc-2017Q3:1.4.0.16 pkgsrc-2017Q3-base:1.4 pkgsrc-2017Q2:1.4.0.12 pkgsrc-2017Q2-base:1.4 pkgsrc-2017Q1:1.4.0.10 pkgsrc-2017Q1-base:1.4 pkgsrc-2016Q4:1.4.0.8 pkgsrc-2016Q4-base:1.4 pkgsrc-2016Q3:1.4.0.6 pkgsrc-2016Q3-base:1.4 pkgsrc-2016Q2:1.4.0.4 pkgsrc-2016Q2-base:1.4 pkgsrc-2016Q1:1.4.0.2 pkgsrc-2016Q1-base:1.4 pkgsrc-2015Q4:1.3.0.82 pkgsrc-2015Q4-base:1.3 pkgsrc-2015Q3:1.3.0.80 pkgsrc-2015Q3-base:1.3 pkgsrc-2015Q2:1.3.0.78 pkgsrc-2015Q2-base:1.3 pkgsrc-2015Q1:1.3.0.76 pkgsrc-2015Q1-base:1.3 pkgsrc-2014Q4:1.3.0.74 pkgsrc-2014Q4-base:1.3 pkgsrc-2014Q3:1.3.0.72 pkgsrc-2014Q3-base:1.3 pkgsrc-2014Q2:1.3.0.70 pkgsrc-2014Q2-base:1.3 pkgsrc-2014Q1:1.3.0.68 pkgsrc-2014Q1-base:1.3 pkgsrc-2013Q4:1.3.0.66 pkgsrc-2013Q4-base:1.3 pkgsrc-2013Q3:1.3.0.64 pkgsrc-2013Q3-base:1.3 pkgsrc-2013Q2:1.3.0.62 pkgsrc-2013Q2-base:1.3 pkgsrc-2013Q1:1.3.0.60 pkgsrc-2013Q1-base:1.3 pkgsrc-2012Q4:1.3.0.58 pkgsrc-2012Q4-base:1.3 pkgsrc-2012Q3:1.3.0.56 pkgsrc-2012Q3-base:1.3 pkgsrc-2012Q2:1.3.0.54 pkgsrc-2012Q2-base:1.3 pkgsrc-2012Q1:1.3.0.52 pkgsrc-2012Q1-base:1.3 pkgsrc-2011Q4:1.3.0.50 pkgsrc-2011Q4-base:1.3 pkgsrc-2011Q3:1.3.0.48 pkgsrc-2011Q3-base:1.3 pkgsrc-2011Q2:1.3.0.46 pkgsrc-2011Q2-base:1.3 pkgsrc-2011Q1:1.3.0.44 pkgsrc-2011Q1-base:1.3 pkgsrc-2010Q4:1.3.0.42 pkgsrc-2010Q4-base:1.3 pkgsrc-2010Q3:1.3.0.40 pkgsrc-2010Q3-base:1.3 pkgsrc-2010Q2:1.3.0.38 pkgsrc-2010Q2-base:1.3 pkgsrc-2010Q1:1.3.0.36 pkgsrc-2010Q1-base:1.3 pkgsrc-2009Q4:1.3.0.34 pkgsrc-2009Q4-base:1.3 pkgsrc-2009Q3:1.3.0.32 pkgsrc-2009Q3-base:1.3 pkgsrc-2009Q2:1.3.0.30 pkgsrc-2009Q2-base:1.3 pkgsrc-2009Q1:1.3.0.28 pkgsrc-2009Q1-base:1.3 pkgsrc-2008Q4:1.3.0.26 pkgsrc-2008Q4-base:1.3 pkgsrc-2008Q3:1.3.0.24 pkgsrc-2008Q3-base:1.3 cube-native-xorg:1.3.0.22 cube-native-xorg-base:1.3 pkgsrc-2008Q2:1.3.0.20 pkgsrc-2008Q2-base:1.3 cwrapper:1.3.0.18 pkgsrc-2008Q1:1.3.0.16 pkgsrc-2008Q1-base:1.3 pkgsrc-2007Q4:1.3.0.14 pkgsrc-2007Q4-base:1.3 pkgsrc-2007Q3:1.3.0.12 pkgsrc-2007Q3-base:1.3 pkgsrc-2007Q2:1.3.0.10 pkgsrc-2007Q2-base:1.3 pkgsrc-2007Q1:1.3.0.8 pkgsrc-2007Q1-base:1.3 pkgsrc-2006Q4:1.3.0.6 pkgsrc-2006Q4-base:1.3 pkgsrc-2006Q3:1.3.0.4 pkgsrc-2006Q3-base:1.3 pkgsrc-2006Q2:1.3.0.2 pkgsrc-2006Q2-base:1.3 pkgsrc-2006Q1:1.1.0.28 pkgsrc-2006Q1-base:1.1 pkgsrc-2005Q4:1.1.0.26 pkgsrc-2005Q4-base:1.1 pkgsrc-2005Q3:1.1.0.24 pkgsrc-2005Q3-base:1.1 pkgsrc-2005Q2:1.1.0.22 pkgsrc-2005Q2-base:1.1 pkgsrc-2005Q1:1.1.0.20 pkgsrc-2005Q1-base:1.1 pkgsrc-2004Q4:1.1.0.18 pkgsrc-2004Q4-base:1.1 pkgsrc-2004Q3:1.1.0.16 pkgsrc-2004Q3-base:1.1 pkgsrc-2004Q2:1.1.0.14 pkgsrc-2004Q2-base:1.1 pkgsrc-2004Q1:1.1.0.12 pkgsrc-2004Q1-base:1.1 pkgsrc-2003Q4:1.1.0.10 pkgsrc-2003Q4-base:1.1 netbsd-1-6-1:1.1.0.6 netbsd-1-6-1-base:1.1 netbsd-1-6:1.1.0.8 netbsd-1-6-RELEASE-base:1.1 pkgviews:1.1.0.4 pkgviews-base:1.1 buildlink2:1.1.0.2 buildlink2-base:1.1 netbsd-1-5-PATCH003:1.1 netbsd-1-5-PATCH001:1.1 netbsd-1-5-RELEASE:1.1 netbsd-1-4-PATCH003:1.1 netbsd-1-4-PATCH002:1.1 comdex-fall-1999:1.1 netbsd-1-4-PATCH001:1.1 netbsd-1-4-RELEASE:1.1 netbsd-1-3-PATCH003:1.1; locks; strict; comment @# @; 1.4 date 2016.03.11.08.18.12; author tnn; state Exp; branches; next 1.3; commitid w2LU5H1LRtQkscYy; 1.3 date 2006.06.20.22.50.13; author joerg; state Exp; branches; next 1.2; 1.2 date 2006.06.08.21.40.21; author joerg; state Exp; branches; next 1.1; 1.1 date 98.08.24.18.11.42; author agc; state Exp; branches; next ; desc @@ 1.4 log @If the configure script can't figure out the correct answer, bail out with exit 1 instead of trying an interactive prompt that goes into an infinite loop if stdin is not a tty. @ text @$NetBSD: patch-aa,v 1.3 2006/06/20 22:50:13 joerg Exp $ --- Configure.orig 1992-02-10 03:04:23.000000000 +0000 +++ Configure @@@@ -28,10 +28,10 @@@@ PATH=$PATH:'/sys5.3/bin:/sys5.3/usr/bin PATH=$PATH:'/bsd4.3/usr/bin:/usr/bsd' export PATH || (echo "OOPS, this isn't sh. Desperation time. I will feed myself to sh."; sh $0; kill $$) -if test ! -t 0; then - echo "Say 'sh Configure', not 'sh /dev/null 2>&1 && \ echo "(I see you are using the Korn shell. Some ksh's blow up on Configure," && \ @@@@ -321,6 +321,8 @@@@ rm -f .echotmp : now set up to do reads with possible shell escape and default assignment cat <myread +echo "ERROR: Configure script tried to use interactive prompt" 1>&2 +exit 1 case "\$fastread" in yes) ans=''; echo " " ;; *) ans='!';; @@@@ -364,7 +366,7 @@@@ where this is allowed will be marked "(~ EOH rp="[Type carriage return to continue]" echo $n "$rp $c" -. myread +#. myread cat </dev/null >libc.tmp +case "${OPSYS}" in +DragonFly) + nm -D $* 2>/dev/null >libc.tmp + ;; +*) + nm $* 2>/dev/null >libc.tmp + ;; +esac $grep printf libc.tmp > libc.ptf com="$sed -n -e 's/^.* [ADTS] *_[_.]*//p' -e 's/^.* [ADTS] //p'" eval "$com libc.list" @@@@ -823,7 +833,8 @@@@ if $contains '^times$' libc.list >/dev/n echo " " rp="What type is returned by times() on this sytem? [$dflt]" $echo $n "$rp $c" - . myread + #. myread + ans="clock_t" clocktype="$ans" else echo 'times() not found, hope that will do.' @@@@ -872,7 +883,7 @@@@ $eunicefix filexp : determine where manual pages are on this system echo " " case "$sysman" in - '') sysman=`loc . /usr/man/man1 /usr/man/man1 /usr/man/mann /usr/man/manl /usr/man/local/man1 /usr/man/u_man/man1 /usr/share/man/man1 /usr/catman/u_man/man1 /usr/man/l_man/man1 /usr/local/man/u_man/man1 /usr/local/man/l_man/man1 /usr/man/man.L` + '') sysman=`loc . /usr/local/man/man1 /usr/man/man1 /usr/man/mann /usr/man/manl /usr/man/local/man1 /usr/man/u_man/man1 /usr/share/man/man1 /usr/catman/u_man/man1 /usr/man/l_man/man1 /usr/local/man/u_man/man1 /usr/local/man/l_man/man1 /usr/man/man.L` ;; esac if test -d "$sysman"; then @@@@ -1007,7 +1018,8 @@@@ Venix systems may wish to put "none" and EOM rp="Which models are supported? [$dflt]" $echo $n "$rp $c" -. myread +#. myread +ans="" models="$ans" case "$models" in @@@@ -1147,7 +1159,8 @@@@ else esac rp="Use which C compiler? [$dflt]" $echo $n "$rp $c" - . myread + #. myread + ans="cc" cc="$ans" fi case "$cc" in @@@@ -1171,7 +1184,8 @@@@ specify the word "none". EOH rp="What optimizer/debugger flag should be used? [$dflt]" $echo $n "$rp $c" -. myread +#. myread +ans="$CFLAGS" optimize="$ans" case "$optimize" in 'none') optimize=" ";; @@@@ -1220,7 +1234,8 @@@@ the C compiler, but you should NOT inclu EOH rp="Any additional cc flags? [$dflt]" $echo $n "$rp $c" -. myread +#. myread +ans="-I${PREFIX}/include" case "$ans" in none) ans=''; esac @@@@ -1258,7 +1273,8 @@@@ esac echo " " rp="Any additional ld flags (NOT including libraries)? [$dflt]" $echo $n "$rp $c" -. myread +#. myread +ans="$LDFLAGS" case "$ans" in none) ans=''; esac @@@@ -1421,7 +1437,8 @@@@ if $contains '^index$' libc.list >/dev/n echo "Your system has both index() and strchr(). Shall I use" rp="index() rather than strchr()? [$dflt]" $echo $n "$rp $c" - . myread + #. myread + ans=y case "$ans" in n*) d_index="$define" ;; *) d_index="$undef" ;; @@@@ -1567,7 +1584,8 @@@@ EOT rp="What directory holds the Utah Raster Toolkit include files? [$dflt]" $echo $n "$rp $c" -. myread +#. myread +ans="${PREFIX}/include" case "$ans" in 'none') urtinc='' @@@@ -1591,7 +1609,8 @@@@ case "$ans" in echo " " rp="Where is the Utah Raster Toolkit library? [$dflt]" $echo $n "$rp $c" - . myread + #. myread + ans="${PREFIX}/lib/librle.a" urtlib="$ans" urtinc="-I$urtinc" ;; @@@@ -1629,7 +1648,8 @@@@ cont=true while $test "$cont"; do rp="Use which function to generate random numbers? [$dflt]" $echo $n "$rp $c" - . myread + #. myread + ans="drand48" if $test "$ans" = "$dflt"; then : null else @@@@ -1802,7 +1822,8 @@@@ esac dflt="$voidflags"; rp="Your void support flags add up to what? [$dflt]" $echo $n "$rp $c" -. myread +#. myread +ans=11 voidflags="$ans" $rm -f try.* .out @@@@ -1824,7 +1845,8 @@@@ while $test "$cont" ; do echo " " rp="Where do you want to put the public executables? (~name ok) [$dflt]" $echo $n "$rp $c" - . myread + #. myread + ans=${PREFIX}/bin bin="$ans" bin=`filexp $bin` if test -d $bin; then @@@@ -1833,7 +1855,8 @@@@ while $test "$cont" ; do dflt=n rp="Directory $bin doesn't exist. Use that name anyway? [$dflt]" $echo $n "$rp $c" - . myread + #. myread + ans=y dflt='' case "$ans" in y*) cont='';; @@@@ -1968,7 +1991,8 @@@@ while $test "$cont" ; do echo " " rp="Name of program to make makefile dependencies? [$dflt]" $echo $n "$rp $c" -. myread +#. myread +ans=/usr/bin/mkdep mkdep="$ans" mkdep=`filexp $mkdep` if test -f "$mkdep"; then @@@@ -1988,12 +2012,12 @@@@ $rm -f dep.c dep.h dep.o dep.out : see if ar generates random libraries by itself echo " " echo "Checking how to generate random libraries on your machine..." -ar rc ran.a /dev/null -if ar ts ran.a >/dev/null 2>&1; then - echo "ar appears to generate random libraries itself." - orderlib=false - ranlib=":" -else +#ar rc ran.a /dev/null +#if ar ts ran.a >/dev/null 2>&1; then +# echo "ar appears to generate random libraries itself." +# orderlib=false +# ranlib=":" +#else if test -f /usr/bin/ranlib; then ranlib=/usr/bin/ranlib elif test -f /bin/ranlib; then @@@@ -2009,7 +2033,7 @@@@ else orderlib=true ranlib=":" fi -fi +#fi : determine compiler compiler case "$bison" in @@@@ -2024,7 +2048,8 @@@@ cont=true echo " " rp="Which compiler compiler (yacc or bison -y) will you use? [$dflt]" $echo $n "$rp $c" -. myread +#. myread +ans=yacc case "$ans" in '') ans="$dflt";; *bis*) ans="bison -y";; @@@@ -2153,7 +2178,8 @@@@ fastread='' echo "If you didn't make any mistakes, then just type a carriage return here." rp="If you need to edit config.sh, do it as a shell escape here:" $echo $n "$rp $c" -. UU/myread +#. UU/myread +ans="" case "$ans" in '') ;; *) : in case they cannot read @@@@ -2205,7 +2231,8 @@@@ It can take a while, so you might not wa EOM rp="Run make depend now? [$dflt]" $echo $n "$rp $c" - . UU/myread + #. UU/myread + ans=y case "$ans" in y*) make depend echo "Now you must run a make." @ 1.3 log @Disable the tty check again, not sure why I don't hit it. @ text @d1 1 a1 1 $NetBSD$ d20 10 a29 1 @@@@ -364,7 +364,7 @@@@ where this is allowed will be marked "(~ d38 1 a38 1 @@@@ -386,7 +386,7 @@@@ SH files. Configure will offer to let y d47 1 a47 1 @@@@ -616,7 +616,8 @@@@ EOM d57 1 a57 1 @@@@ -720,7 +721,14 @@@@ fi d73 1 a73 1 @@@@ -823,7 +831,8 @@@@ if $contains '^times$' libc.list >/dev/n d83 1 a83 1 @@@@ -872,7 +881,7 @@@@ $eunicefix filexp d92 1 a92 1 @@@@ -1007,7 +1016,8 @@@@ Venix systems may wish to put "none" and d102 1 a102 1 @@@@ -1147,7 +1157,8 @@@@ else d112 1 a112 1 @@@@ -1171,7 +1182,8 @@@@ specify the word "none". d122 1 a122 1 @@@@ -1220,7 +1232,8 @@@@ the C compiler, but you should NOT inclu d132 1 a132 1 @@@@ -1258,7 +1271,8 @@@@ esac d142 1 a142 1 @@@@ -1421,7 +1435,8 @@@@ if $contains '^index$' libc.list >/dev/n d152 1 a152 1 @@@@ -1567,7 +1582,8 @@@@ EOT d162 1 a162 1 @@@@ -1591,7 +1607,8 @@@@ case "$ans" in d172 1 a172 1 @@@@ -1629,7 +1646,8 @@@@ cont=true d182 1 a182 1 @@@@ -1802,7 +1820,8 @@@@ esac d192 1 a192 1 @@@@ -1824,7 +1843,8 @@@@ while $test "$cont" ; do d202 1 a202 1 @@@@ -1833,7 +1853,8 @@@@ while $test "$cont" ; do d212 1 a212 1 @@@@ -1968,7 +1989,8 @@@@ while $test "$cont" ; do d222 1 a222 1 @@@@ -1988,12 +2010,12 @@@@ $rm -f dep.c dep.h dep.o dep.out d241 1 a241 1 @@@@ -2009,7 +2031,7 @@@@ else d250 1 a250 1 @@@@ -2024,7 +2046,8 @@@@ cont=true d260 1 a260 1 @@@@ -2153,7 +2176,8 @@@@ fastread='' d270 1 a270 1 @@@@ -2205,7 +2229,8 @@@@ It can take a while, so you might not wa @ 1.2 log @Just hack in all answers instead of assuming that the scripts asks the same questions on all platforms. Makes this work on DragonFly. @ text @d5 16 a20 1 @@@@ -364,7 +365,7 @@@@ where this is allowed will be marked "(~ d29 1 a29 1 @@@@ -386,7 +387,7 @@@@ SH files. Configure will offer to let y d38 1 a38 1 @@@@ -616,7 +617,8 @@@@ EOM d48 1 a48 1 @@@@ -720,7 +722,14 @@@@ fi d64 1 a64 1 @@@@ -823,7 +832,8 @@@@ if $contains '^times$' libc.list >/dev/n d74 1 a74 1 @@@@ -872,7 +882,7 @@@@ $eunicefix filexp d83 1 a83 1 @@@@ -1007,7 +1017,8 @@@@ Venix systems may wish to put "none" and d93 1 a93 1 @@@@ -1147,7 +1158,8 @@@@ else d103 1 a103 1 @@@@ -1171,7 +1183,8 @@@@ specify the word "none". d113 1 a113 1 @@@@ -1220,7 +1233,8 @@@@ the C compiler, but you should NOT inclu d123 1 a123 1 @@@@ -1258,7 +1272,8 @@@@ esac d133 1 a133 1 @@@@ -1421,7 +1436,8 @@@@ if $contains '^index$' libc.list >/dev/n d143 1 a143 1 @@@@ -1567,7 +1583,8 @@@@ EOT d153 1 a153 1 @@@@ -1591,7 +1608,8 @@@@ case "$ans" in d163 1 a163 1 @@@@ -1629,7 +1647,8 @@@@ cont=true d173 1 a173 1 @@@@ -1802,7 +1821,8 @@@@ esac d183 1 a183 1 @@@@ -1824,7 +1844,8 @@@@ while $test "$cont" ; do d193 1 a193 1 @@@@ -1833,7 +1854,8 @@@@ while $test "$cont" ; do d203 1 a203 1 @@@@ -1968,7 +1990,8 @@@@ while $test "$cont" ; do d213 1 a213 1 @@@@ -1988,12 +2011,12 @@@@ $rm -f dep.c dep.h dep.o dep.out d232 1 a232 1 @@@@ -2009,7 +2032,7 @@@@ else d241 1 a241 1 @@@@ -2024,7 +2047,8 @@@@ cont=true d251 1 a251 1 @@@@ -2153,7 +2177,8 @@@@ fastread='' d261 1 a261 1 @@@@ -2205,7 +2230,8 @@@@ It can take a while, so you might not wa @ 1.1 log @Addition of rayshade-4.0, an extensible system for creating ray-traced images using the Utah Raster Toolkit, to the NetBSD packages collection. This was originally taken from the FreeBSD port, but hacked around to work on NetBSD. @ text @d3 17 a19 21 Work around deficiencies in the Configure script: + don't test for stdin being a tty + NetBSD's ar ts does generate random libs, but you *STILL* need to run ranlib, especially on a.out platforms. Comment out ar ts test - it's just plain wrong. *** Configure.orig Sun Feb 9 22:04:23 1992 --- Configure Sun Mar 8 19:33:26 1998 @@@@ -28,10 +28,11 @@@@ PATH=$PATH:'/bsd4.3/usr/bin:/usr/bsd' export PATH || (echo "OOPS, this isn't sh. Desperation time. I will feed myself to sh."; sh $0; kill $$) -if test ! -t 0; then - echo "Say 'sh Configure', not 'sh /dev/null 2>&1 && \ echo "(I see you are using the Korn shell. Some ksh's blow up on Configure," && \ @@@@ -872,7 +873,7 @@@@ d68 131 a198 1 @@@@ -1988,12 +1989,12 @@@@ d217 1 a217 1 @@@@ -2009,7 +2010,7 @@@@ d226 30 @