Codebase list rplay / 1e7ea11
Import Debian changes 3.3.2-8 rplay (3.3.2-8) unstable; urgency=low * better arg passing in rplaydsp. (closes: Bug#133199) * rplayd now closes stdin. (closes: 135672) * fixed redundant declarations. (closes: 138699) * better ogg helper. rplay (3.3.2-7) unstable; urgency=low * *finally* moved librplay3-dev to development section. rplay (3.3.2-6) unstable; urgency=low * make sure that we can actually write data to rplayd. (closes: Bug#89352) * added some spaces to the description of the rplay package to make the formatting happy. (closes: Bug#123598) rplay (3.3.2-5) unstable; urgency=low * rmdir /etc/rplay on purge. (closes: Bug#74397) * redirect std{err,out} to /dev/null in init script. (closes: Bug#120849) * beefed up the manpage for rplaydsp. (closes: Bug#112624) * fixed typo in librplay3-dev description. (closes: Bug#110478) * merged Marcus Brinkmann's hurd patches. (closes: Bug#77044) * fixed a few lintian warnings. * added vorbis-tools suggestion to rplay-server and helper description in rplay.helpers. rplay (3.3.2-4) unstable; urgency=low * /etc/init.d/rplay starts at 99 and dies at 10. (closes: Bug#67203) * rplay-server suggested some non-existent/experimental version of xmp. (closes: Bug#74179) * /etc/rplay is completely removed upon purging. (closes: Bug#74379) * rplayd now uses the regex facilities from libc and no longer depends on librx. * installed default rplay.hosts. rplay (3.3.2-3) unstable; urgency=high * recompile using libreadline4. (closes: Bug#63176) * fixed up copyright file. * fixed Depends lines in control file. (closes: Bug#51934) * added rplaydsp and moved devrplay.so to rplay-client. lantz moore authored 22 years ago Thorsten Alteholz committed 5 years ago
71 changed file(s) with 1135 addition(s) and 955 deletion(s). Raw diff Collapse all Expand all
526526
527527
528528
529 BUILD_TARGETS="include lib adpcm"
530
529531
530532 export srcdir
531533 RPLAY_VERSION=`$srcdir/version`
543545 # Extract the first word of "gcc", so it can be a program name with args.
544546 set dummy gcc; ac_word=$2
545547 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
546 echo "configure:548: checking for $ac_word" >&5
548 echo "configure:550: checking for $ac_word" >&5
547549 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
548550 echo $ac_n "(cached) $ac_c" 1>&6
549551 else
573575 # Extract the first word of "cc", so it can be a program name with args.
574576 set dummy cc; ac_word=$2
575577 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
576 echo "configure:578: checking for $ac_word" >&5
578 echo "configure:580: checking for $ac_word" >&5
577579 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
578580 echo $ac_n "(cached) $ac_c" 1>&6
579581 else
624626 # Extract the first word of "cl", so it can be a program name with args.
625627 set dummy cl; ac_word=$2
626628 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
627 echo "configure:629: checking for $ac_word" >&5
629 echo "configure:631: checking for $ac_word" >&5
628630 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
629631 echo $ac_n "(cached) $ac_c" 1>&6
630632 else
656658 fi
657659
658660 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
659 echo "configure:661: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
661 echo "configure:663: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
660662
661663 ac_ext=c
662664 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
667669
668670 cat > conftest.$ac_ext << EOF
669671
670 #line 672 "configure"
672 #line 674 "configure"
671673 #include "confdefs.h"
672674
673675 main(){return(0);}
674676 EOF
675 if { (eval echo configure:677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
677 if { (eval echo configure:679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
676678 ac_cv_prog_cc_works=yes
677679 # If we can't run a trivial program, we are probably using a cross compiler.
678680 if (./conftest; exit) 2>/dev/null; then
698700 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
699701 fi
700702 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
701 echo "configure:703: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
703 echo "configure:705: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
702704 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
703705 cross_compiling=$ac_cv_prog_cc_cross
704706
705707 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
706 echo "configure:708: checking whether we are using GNU C" >&5
708 echo "configure:710: checking whether we are using GNU C" >&5
707709 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
708710 echo $ac_n "(cached) $ac_c" 1>&6
709711 else
712714 yes;
713715 #endif
714716 EOF
715 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:717: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
717 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:719: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
716718 ac_cv_prog_gcc=yes
717719 else
718720 ac_cv_prog_gcc=no
731733 ac_save_CFLAGS="$CFLAGS"
732734 CFLAGS=
733735 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
734 echo "configure:736: checking whether ${CC-cc} accepts -g" >&5
736 echo "configure:738: checking whether ${CC-cc} accepts -g" >&5
735737 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
736738 echo $ac_n "(cached) $ac_c" 1>&6
737739 else
796798
797799
798800 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
799 echo "configure:801: checking for POSIXized ISC" >&5
801 echo "configure:803: checking for POSIXized ISC" >&5
800802 if test -d /etc/conf/kconfig.d &&
801803 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
802804 then
817819 fi
818820
819821 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
820 echo "configure:822: checking how to run the C preprocessor" >&5
822 echo "configure:824: checking how to run the C preprocessor" >&5
821823 # On Suns, sometimes $CPP names a directory.
822824 if test -n "$CPP" && test -d "$CPP"; then
823825 CPP=
832834 # On the NeXT, cc -E runs the code through the compiler's parser,
833835 # not just through cpp.
834836 cat > conftest.$ac_ext <<EOF
835 #line 837 "configure"
837 #line 839 "configure"
836838 #include "confdefs.h"
837839 #include <assert.h>
838840 Syntax Error
839841 EOF
840842 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
841 { (eval echo configure:843: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
843 { (eval echo configure:845: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
842844 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
843845 if test -z "$ac_err"; then
844846 :
849851 rm -rf conftest*
850852 CPP="${CC-cc} -E -traditional-cpp"
851853 cat > conftest.$ac_ext <<EOF
852 #line 854 "configure"
854 #line 856 "configure"
853855 #include "confdefs.h"
854856 #include <assert.h>
855857 Syntax Error
856858 EOF
857859 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
858 { (eval echo configure:860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
860 { (eval echo configure:862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
859861 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
860862 if test -z "$ac_err"; then
861863 :
866868 rm -rf conftest*
867869 CPP="${CC-cc} -nologo -E"
868870 cat > conftest.$ac_ext <<EOF
869 #line 871 "configure"
871 #line 873 "configure"
870872 #include "confdefs.h"
871873 #include <assert.h>
872874 Syntax Error
873875 EOF
874876 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
875 { (eval echo configure:877: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
877 { (eval echo configure:879: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
876878 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
877879 if test -z "$ac_err"; then
878880 :
927929 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
928930 # ./install, which can be erroneously created by make from ./install.sh.
929931 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
930 echo "configure:932: checking for a BSD compatible install" >&5
932 echo "configure:934: checking for a BSD compatible install" >&5
931933 if test -z "$INSTALL"; then
932934 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
933935 echo $ac_n "(cached) $ac_c" 1>&6
980982 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
981983
982984 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
983 echo "configure:985: checking whether ln -s works" >&5
985 echo "configure:987: checking whether ln -s works" >&5
984986 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
985987 echo $ac_n "(cached) $ac_c" 1>&6
986988 else
10031005 # Extract the first word of "ranlib", so it can be a program name with args.
10041006 set dummy ranlib; ac_word=$2
10051007 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1006 echo "configure:1008: checking for $ac_word" >&5
1008 echo "configure:1010: checking for $ac_word" >&5
10071009 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
10081010 echo $ac_n "(cached) $ac_c" 1>&6
10091011 else
10351037 # Extract the first word of "$ac_prog", so it can be a program name with args.
10361038 set dummy $ac_prog; ac_word=$2
10371039 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1038 echo "configure:1040: checking for $ac_word" >&5
1040 echo "configure:1042: checking for $ac_word" >&5
10391041 if eval "test \"`echo '$''{'ac_cv_prog_ETAGS'+set}'`\" = set"; then
10401042 echo $ac_n "(cached) $ac_c" 1>&6
10411043 else
10701072 # Extract the first word of "$ac_prog", so it can be a program name with args.
10711073 set dummy $ac_prog; ac_word=$2
10721074 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1073 echo "configure:1075: checking for $ac_word" >&5
1075 echo "configure:1077: checking for $ac_word" >&5
10741076 if eval "test \"`echo '$''{'ac_cv_prog_MAKEDEPEND'+set}'`\" = set"; then
10751077 echo $ac_n "(cached) $ac_c" 1>&6
10761078 else
11051107 # Extract the first word of "$ac_prog", so it can be a program name with args.
11061108 set dummy $ac_prog; ac_word=$2
11071109 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1108 echo "configure:1110: checking for $ac_word" >&5
1110 echo "configure:1112: checking for $ac_word" >&5
11091111 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
11101112 echo $ac_n "(cached) $ac_c" 1>&6
11111113 else
11401142 # Extract the first word of "$ac_prog", so it can be a program name with args.
11411143 set dummy $ac_prog; ac_word=$2
11421144 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1143 echo "configure:1145: checking for $ac_word" >&5
1145 echo "configure:1147: checking for $ac_word" >&5
11441146 if eval "test \"`echo '$''{'ac_cv_prog_TEXI2DVI'+set}'`\" = set"; then
11451147 echo $ac_n "(cached) $ac_c" 1>&6
11461148 else
11751177 # Extract the first word of "$ac_prog", so it can be a program name with args.
11761178 set dummy $ac_prog; ac_word=$2
11771179 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1178 echo "configure:1180: checking for $ac_word" >&5
1180 echo "configure:1182: checking for $ac_word" >&5
11791181 if eval "test \"`echo '$''{'ac_cv_prog_TEXI2HTML'+set}'`\" = set"; then
11801182 echo $ac_n "(cached) $ac_c" 1>&6
11811183 else
12101212 # Extract the first word of "$ac_prog", so it can be a program name with args.
12111213 set dummy $ac_prog; ac_word=$2
12121214 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1213 echo "configure:1215: checking for $ac_word" >&5
1215 echo "configure:1217: checking for $ac_word" >&5
12141216 if eval "test \"`echo '$''{'ac_cv_prog_DVIPS'+set}'`\" = set"; then
12151217 echo $ac_n "(cached) $ac_c" 1>&6
12161218 else
12461248 do
12471249 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12481250 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1249 echo "configure:1251: checking for $ac_hdr that defines DIR" >&5
1251 echo "configure:1253: checking for $ac_hdr that defines DIR" >&5
12501252 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
12511253 echo $ac_n "(cached) $ac_c" 1>&6
12521254 else
12531255 cat > conftest.$ac_ext <<EOF
1254 #line 1256 "configure"
1256 #line 1258 "configure"
12551257 #include "confdefs.h"
12561258 #include <sys/types.h>
12571259 #include <$ac_hdr>
12591261 DIR *dirp = 0;
12601262 ; return 0; }
12611263 EOF
1262 if { (eval echo configure:1264: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1264 if { (eval echo configure:1266: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12631265 rm -rf conftest*
12641266 eval "ac_cv_header_dirent_$ac_safe=yes"
12651267 else
12841286 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
12851287 if test $ac_header_dirent = dirent.h; then
12861288 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1287 echo "configure:1289: checking for opendir in -ldir" >&5
1289 echo "configure:1291: checking for opendir in -ldir" >&5
12881290 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
12891291 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12901292 echo $ac_n "(cached) $ac_c" 1>&6
12921294 ac_save_LIBS="$LIBS"
12931295 LIBS="-ldir $LIBS"
12941296 cat > conftest.$ac_ext <<EOF
1295 #line 1297 "configure"
1297 #line 1299 "configure"
12961298 #include "confdefs.h"
12971299 /* Override any gcc2 internal prototype to avoid an error. */
12981300 /* We use char because int might match the return type of a gcc2
13031305 opendir()
13041306 ; return 0; }
13051307 EOF
1306 if { (eval echo configure:1308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1308 if { (eval echo configure:1310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13071309 rm -rf conftest*
13081310 eval "ac_cv_lib_$ac_lib_var=yes"
13091311 else
13251327
13261328 else
13271329 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1328 echo "configure:1330: checking for opendir in -lx" >&5
1330 echo "configure:1332: checking for opendir in -lx" >&5
13291331 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
13301332 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13311333 echo $ac_n "(cached) $ac_c" 1>&6
13331335 ac_save_LIBS="$LIBS"
13341336 LIBS="-lx $LIBS"
13351337 cat > conftest.$ac_ext <<EOF
1336 #line 1338 "configure"
1338 #line 1340 "configure"
13371339 #include "confdefs.h"
13381340 /* Override any gcc2 internal prototype to avoid an error. */
13391341 /* We use char because int might match the return type of a gcc2
13441346 opendir()
13451347 ; return 0; }
13461348 EOF
1347 if { (eval echo configure:1349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1349 if { (eval echo configure:1351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13481350 rm -rf conftest*
13491351 eval "ac_cv_lib_$ac_lib_var=yes"
13501352 else
13671369 fi
13681370
13691371 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1370 echo "configure:1372: checking for ANSI C header files" >&5
1372 echo "configure:1374: checking for ANSI C header files" >&5
13711373 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
13721374 echo $ac_n "(cached) $ac_c" 1>&6
13731375 else
13741376 cat > conftest.$ac_ext <<EOF
1375 #line 1377 "configure"
1377 #line 1379 "configure"
13761378 #include "confdefs.h"
13771379 #include <stdlib.h>
13781380 #include <stdarg.h>
13801382 #include <float.h>
13811383 EOF
13821384 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1383 { (eval echo configure:1385: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1385 { (eval echo configure:1387: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13841386 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13851387 if test -z "$ac_err"; then
13861388 rm -rf conftest*
13971399 if test $ac_cv_header_stdc = yes; then
13981400 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13991401 cat > conftest.$ac_ext <<EOF
1400 #line 1402 "configure"
1402 #line 1404 "configure"
14011403 #include "confdefs.h"
14021404 #include <string.h>
14031405 EOF
14151417 if test $ac_cv_header_stdc = yes; then
14161418 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14171419 cat > conftest.$ac_ext <<EOF
1418 #line 1420 "configure"
1420 #line 1422 "configure"
14191421 #include "confdefs.h"
14201422 #include <stdlib.h>
14211423 EOF
14361438 :
14371439 else
14381440 cat > conftest.$ac_ext <<EOF
1439 #line 1441 "configure"
1441 #line 1443 "configure"
14401442 #include "confdefs.h"
14411443 #include <ctype.h>
14421444 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14471449 exit (0); }
14481450
14491451 EOF
1450 if { (eval echo configure:1452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1452 if { (eval echo configure:1454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14511453 then
14521454 :
14531455 else
14711473 fi
14721474
14731475 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1474 echo "configure:1476: checking whether time.h and sys/time.h may both be included" >&5
1476 echo "configure:1478: checking whether time.h and sys/time.h may both be included" >&5
14751477 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
14761478 echo $ac_n "(cached) $ac_c" 1>&6
14771479 else
14781480 cat > conftest.$ac_ext <<EOF
1479 #line 1481 "configure"
1481 #line 1483 "configure"
14801482 #include "confdefs.h"
14811483 #include <sys/types.h>
14821484 #include <sys/time.h>
14851487 struct tm *tp;
14861488 ; return 0; }
14871489 EOF
1488 if { (eval echo configure:1490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1490 if { (eval echo configure:1492: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14891491 rm -rf conftest*
14901492 ac_cv_header_time=yes
14911493 else
15051507
15061508 fi
15071509
1508 for ac_hdr in fcntl.h sys/file.h sys/ioctl.h sys/time.h stdlib.h unistd.h memory.h string.h strings.h utime.h limits.h gsm.h gsm/gsm.h rxposix.h rx/rxposix.h
1510 for ac_hdr in fcntl.h sys/file.h sys/ioctl.h sys/time.h stdlib.h unistd.h memory.h string.h strings.h utime.h limits.h gsm.h gsm/gsm.h regex.h rxposix.h rx/rxposix.h
15091511 do
15101512 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15111513 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1512 echo "configure:1514: checking for $ac_hdr" >&5
1514 echo "configure:1516: checking for $ac_hdr" >&5
15131515 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15141516 echo $ac_n "(cached) $ac_c" 1>&6
15151517 else
15161518 cat > conftest.$ac_ext <<EOF
1517 #line 1519 "configure"
1519 #line 1521 "configure"
15181520 #include "confdefs.h"
15191521 #include <$ac_hdr>
15201522 EOF
15211523 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1522 { (eval echo configure:1524: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1524 { (eval echo configure:1526: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15231525 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15241526 if test -z "$ac_err"; then
15251527 rm -rf conftest*
15461548 done
15471549
15481550 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1549 echo "configure:1551: checking for sys/wait.h that is POSIX.1 compatible" >&5
1551 echo "configure:1553: checking for sys/wait.h that is POSIX.1 compatible" >&5
15501552 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
15511553 echo $ac_n "(cached) $ac_c" 1>&6
15521554 else
15531555 cat > conftest.$ac_ext <<EOF
1554 #line 1556 "configure"
1556 #line 1558 "configure"
15551557 #include "confdefs.h"
15561558 #include <sys/types.h>
15571559 #include <sys/wait.h>
15671569 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15681570 ; return 0; }
15691571 EOF
1570 if { (eval echo configure:1572: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1572 if { (eval echo configure:1574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15711573 rm -rf conftest*
15721574 ac_cv_header_sys_wait_h=yes
15731575 else
15891591
15901592
15911593 echo $ac_n "checking for working const""... $ac_c" 1>&6
1592 echo "configure:1594: checking for working const" >&5
1594 echo "configure:1596: checking for working const" >&5
15931595 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
15941596 echo $ac_n "(cached) $ac_c" 1>&6
15951597 else
15961598 cat > conftest.$ac_ext <<EOF
1597 #line 1599 "configure"
1599 #line 1601 "configure"
15981600 #include "confdefs.h"
15991601
16001602 int main() {
16431645
16441646 ; return 0; }
16451647 EOF
1646 if { (eval echo configure:1648: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1648 if { (eval echo configure:1650: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16471649 rm -rf conftest*
16481650 ac_cv_c_const=yes
16491651 else
16641666 fi
16651667
16661668 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1667 echo "configure:1669: checking for size_t" >&5
1669 echo "configure:1671: checking for size_t" >&5
16681670 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
16691671 echo $ac_n "(cached) $ac_c" 1>&6
16701672 else
16711673 cat > conftest.$ac_ext <<EOF
1672 #line 1674 "configure"
1674 #line 1676 "configure"
16731675 #include "confdefs.h"
16741676 #include <sys/types.h>
16751677 #if STDC_HEADERS
17011703 do
17021704 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17031705 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1704 echo "configure:1706: checking for $ac_hdr" >&5
1706 echo "configure:1708: checking for $ac_hdr" >&5
17051707 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17061708 echo $ac_n "(cached) $ac_c" 1>&6
17071709 else
17081710 cat > conftest.$ac_ext <<EOF
1709 #line 1711 "configure"
1711 #line 1713 "configure"
17101712 #include "confdefs.h"
17111713 #include <$ac_hdr>
17121714 EOF
17131715 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1714 { (eval echo configure:1716: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1716 { (eval echo configure:1718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17151717 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17161718 if test -z "$ac_err"; then
17171719 rm -rf conftest*
17401742 for ac_func in getpagesize
17411743 do
17421744 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1743 echo "configure:1745: checking for $ac_func" >&5
1745 echo "configure:1747: checking for $ac_func" >&5
17441746 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17451747 echo $ac_n "(cached) $ac_c" 1>&6
17461748 else
17471749 cat > conftest.$ac_ext <<EOF
1748 #line 1750 "configure"
1750 #line 1752 "configure"
17491751 #include "confdefs.h"
17501752 /* System header to define __stub macros and hopefully few prototypes,
17511753 which can conflict with char $ac_func(); below. */
17681770
17691771 ; return 0; }
17701772 EOF
1771 if { (eval echo configure:1773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1773 if { (eval echo configure:1775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17721774 rm -rf conftest*
17731775 eval "ac_cv_func_$ac_func=yes"
17741776 else
17931795 done
17941796
17951797 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1796 echo "configure:1798: checking for working mmap" >&5
1798 echo "configure:1800: checking for working mmap" >&5
17971799 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
17981800 echo $ac_n "(cached) $ac_c" 1>&6
17991801 else
18011803 ac_cv_func_mmap_fixed_mapped=no
18021804 else
18031805 cat > conftest.$ac_ext <<EOF
1804 #line 1806 "configure"
1806 #line 1808 "configure"
18051807 #include "confdefs.h"
18061808
18071809 /* Thanks to Mike Haertel and Jim Avera for this test.
19411943 }
19421944
19431945 EOF
1944 if { (eval echo configure:1946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1946 if { (eval echo configure:1948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
19451947 then
19461948 ac_cv_func_mmap_fixed_mapped=yes
19471949 else
19641966 fi
19651967
19661968 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
1967 echo "configure:1969: checking for 8-bit clean memcmp" >&5
1969 echo "configure:1971: checking for 8-bit clean memcmp" >&5
19681970 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
19691971 echo $ac_n "(cached) $ac_c" 1>&6
19701972 else
19721974 ac_cv_func_memcmp_clean=no
19731975 else
19741976 cat > conftest.$ac_ext <<EOF
1975 #line 1977 "configure"
1977 #line 1979 "configure"
19761978 #include "confdefs.h"
19771979
19781980 main()
19821984 }
19831985
19841986 EOF
1985 if { (eval echo configure:1987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1987 if { (eval echo configure:1989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
19861988 then
19871989 ac_cv_func_memcmp_clean=yes
19881990 else
20002002 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
20012003
20022004 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2003 echo "configure:2005: checking for vprintf" >&5
2005 echo "configure:2007: checking for vprintf" >&5
20042006 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
20052007 echo $ac_n "(cached) $ac_c" 1>&6
20062008 else
20072009 cat > conftest.$ac_ext <<EOF
2008 #line 2010 "configure"
2010 #line 2012 "configure"
20092011 #include "confdefs.h"
20102012 /* System header to define __stub macros and hopefully few prototypes,
20112013 which can conflict with char vprintf(); below. */
20282030
20292031 ; return 0; }
20302032 EOF
2031 if { (eval echo configure:2033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2033 if { (eval echo configure:2035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20322034 rm -rf conftest*
20332035 eval "ac_cv_func_vprintf=yes"
20342036 else
20522054
20532055 if test "$ac_cv_func_vprintf" != yes; then
20542056 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2055 echo "configure:2057: checking for _doprnt" >&5
2057 echo "configure:2059: checking for _doprnt" >&5
20562058 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
20572059 echo $ac_n "(cached) $ac_c" 1>&6
20582060 else
20592061 cat > conftest.$ac_ext <<EOF
2060 #line 2062 "configure"
2062 #line 2064 "configure"
20612063 #include "confdefs.h"
20622064 /* System header to define __stub macros and hopefully few prototypes,
20632065 which can conflict with char _doprnt(); below. */
20802082
20812083 ; return 0; }
20822084 EOF
2083 if { (eval echo configure:2085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2085 if { (eval echo configure:2087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20842086 rm -rf conftest*
20852087 eval "ac_cv_func__doprnt=yes"
20862088 else
21052107 fi
21062108
21072109 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2108 echo "configure:2110: checking return type of signal handlers" >&5
2110 echo "configure:2112: checking return type of signal handlers" >&5
21092111 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
21102112 echo $ac_n "(cached) $ac_c" 1>&6
21112113 else
21122114 cat > conftest.$ac_ext <<EOF
2113 #line 2115 "configure"
2115 #line 2117 "configure"
21142116 #include "confdefs.h"
21152117 #include <sys/types.h>
21162118 #include <signal.h>
21272129 int i;
21282130 ; return 0; }
21292131 EOF
2130 if { (eval echo configure:2132: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2132 if { (eval echo configure:2134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21312133 rm -rf conftest*
21322134 ac_cv_type_signal=void
21332135 else
21482150 for ac_func in getcwd gethostname mkdir re_comp regcomp select snprintf socket strdup strerror strstr fstat fchmod fchown utime utimes memmove sigset vsnprintf waitpid random srandom
21492151 do
21502152 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2151 echo "configure:2153: checking for $ac_func" >&5
2153 echo "configure:2155: checking for $ac_func" >&5
21522154 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21532155 echo $ac_n "(cached) $ac_c" 1>&6
21542156 else
21552157 cat > conftest.$ac_ext <<EOF
2156 #line 2158 "configure"
2158 #line 2160 "configure"
21572159 #include "confdefs.h"
21582160 /* System header to define __stub macros and hopefully few prototypes,
21592161 which can conflict with char $ac_func(); below. */
21762178
21772179 ; return 0; }
21782180 EOF
2179 if { (eval echo configure:2181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2181 if { (eval echo configure:2183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21802182 rm -rf conftest*
21812183 eval "ac_cv_func_$ac_func=yes"
21822184 else
22012203 done
22022204
22032205 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
2204 echo "configure:2206: checking for socket in -lsocket" >&5
2206 echo "configure:2208: checking for socket in -lsocket" >&5
22052207 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
22062208 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
22072209 echo $ac_n "(cached) $ac_c" 1>&6
22092211 ac_save_LIBS="$LIBS"
22102212 LIBS="-lsocket $LIBS"
22112213 cat > conftest.$ac_ext <<EOF
2212 #line 2214 "configure"
2214 #line 2216 "configure"
22132215 #include "confdefs.h"
22142216 /* Override any gcc2 internal prototype to avoid an error. */
22152217 /* We use char because int might match the return type of a gcc2
22202222 socket()
22212223 ; return 0; }
22222224 EOF
2223 if { (eval echo configure:2225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2225 if { (eval echo configure:2227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22242226 rm -rf conftest*
22252227 eval "ac_cv_lib_$ac_lib_var=yes"
22262228 else
22412243 fi
22422244
22432245 echo $ac_n "checking for t_accept in -lnsl""... $ac_c" 1>&6
2244 echo "configure:2246: checking for t_accept in -lnsl" >&5
2246 echo "configure:2248: checking for t_accept in -lnsl" >&5
22452247 ac_lib_var=`echo nsl'_'t_accept | sed 'y%./+-%__p_%'`
22462248 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
22472249 echo $ac_n "(cached) $ac_c" 1>&6
22492251 ac_save_LIBS="$LIBS"
22502252 LIBS="-lnsl $LIBS"
22512253 cat > conftest.$ac_ext <<EOF
2252 #line 2254 "configure"
2254 #line 2256 "configure"
22532255 #include "confdefs.h"
22542256 /* Override any gcc2 internal prototype to avoid an error. */
22552257 /* We use char because int might match the return type of a gcc2
22602262 t_accept()
22612263 ; return 0; }
22622264 EOF
2263 if { (eval echo configure:2265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2265 if { (eval echo configure:2267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22642266 rm -rf conftest*
22652267 eval "ac_cv_lib_$ac_lib_var=yes"
22662268 else
22822284
22832285
22842286 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
2285 echo "configure:2287: checking for readline in -lreadline" >&5
2287 echo "configure:2289: checking for readline in -lreadline" >&5
22862288 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
22872289 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
22882290 echo $ac_n "(cached) $ac_c" 1>&6
22902292 ac_save_LIBS="$LIBS"
22912293 LIBS="-lreadline $LIBS"
22922294 cat > conftest.$ac_ext <<EOF
2293 #line 2295 "configure"
2295 #line 2297 "configure"
22942296 #include "confdefs.h"
22952297 /* Override any gcc2 internal prototype to avoid an error. */
22962298 /* We use char because int might match the return type of a gcc2
23012303 readline()
23022304 ; return 0; }
23032305 EOF
2304 if { (eval echo configure:2306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2306 if { (eval echo configure:2308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23052307 rm -rf conftest*
23062308 eval "ac_cv_lib_$ac_lib_var=yes"
23072309 else
23162318 fi
23172319 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
23182320 echo "$ac_t""yes" 1>&6
2319 RL_LIBS="-lreadline"
2321 cat >> confdefs.h <<\EOF
2322 #define HAVE_LIBREADLINE 1
2323 EOF
2324 RL_LIBS="-lreadline"
23202325 else
23212326 echo "$ac_t""no" 1>&6
23222327 fi
23242329
23252330
23262331 echo $ac_n "checking for gsm_decode in -lgsm""... $ac_c" 1>&6
2327 echo "configure:2329: checking for gsm_decode in -lgsm" >&5
2332 echo "configure:2334: checking for gsm_decode in -lgsm" >&5
23282333 ac_lib_var=`echo gsm'_'gsm_decode | sed 'y%./+-%__p_%'`
23292334 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
23302335 echo $ac_n "(cached) $ac_c" 1>&6
23322337 ac_save_LIBS="$LIBS"
23332338 LIBS="-lgsm $LIBS"
23342339 cat > conftest.$ac_ext <<EOF
2335 #line 2337 "configure"
2340 #line 2342 "configure"
23362341 #include "confdefs.h"
23372342 /* Override any gcc2 internal prototype to avoid an error. */
23382343 /* We use char because int might match the return type of a gcc2
23432348 gsm_decode()
23442349 ; return 0; }
23452350 EOF
2346 if { (eval echo configure:2348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2351 if { (eval echo configure:2353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23472352 rm -rf conftest*
23482353 eval "ac_cv_lib_$ac_lib_var=yes"
23492354 else
23582363 fi
23592364 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
23602365 echo "$ac_t""yes" 1>&6
2361 HAVE_GSM="yes"
2366 GSM_LIBS="-lgsm"; GSM_INCS=""
23622367 else
23632368 echo "$ac_t""no" 1>&6
2364 fi
2365
2366 if test "$HAVE_GSM" = "yes"; then
2367 GSM_LIBS="-lgsm"
2368 GSM_INCS=""
2369 else
2370 GSM_LIBS="-L../gsm -lgsm"
2371 GSM_INCS="-I\${srcdir}/../gsm"
2372 fi
2373
2374
2375
2376 echo $ac_n "checking for regncomp in -lrx""... $ac_c" 1>&6
2377 echo "configure:2379: checking for regncomp in -lrx" >&5
2378 ac_lib_var=`echo rx'_'regncomp | sed 'y%./+-%__p_%'`
2369
2370 GSM_LIBS="-L../gsm -lgsm"; GSM_INCS="-I\${srcdir}/../gsm"
2371 BUILD_TARGETS="$BUILD_TARGETS gsm"
2372
2373 fi
2374
2375
2376
2377
2378 for ac_func in regcomp
2379 do
2380 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2381 echo "configure:2383: checking for $ac_func" >&5
2382 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2383 echo $ac_n "(cached) $ac_c" 1>&6
2384 else
2385 cat > conftest.$ac_ext <<EOF
2386 #line 2388 "configure"
2387 #include "confdefs.h"
2388 /* System header to define __stub macros and hopefully few prototypes,
2389 which can conflict with char $ac_func(); below. */
2390 #include <assert.h>
2391 /* Override any gcc2 internal prototype to avoid an error. */
2392 /* We use char because int might match the return type of a gcc2
2393 builtin and then its argument prototype would still apply. */
2394 char $ac_func();
2395
2396 int main() {
2397
2398 /* The GNU C library defines this for functions which it implements
2399 to always fail with ENOSYS. Some functions are actually named
2400 something starting with __ and the normal name is an alias. */
2401 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2402 choke me
2403 #else
2404 $ac_func();
2405 #endif
2406
2407 ; return 0; }
2408 EOF
2409 if { (eval echo configure:2411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2410 rm -rf conftest*
2411 eval "ac_cv_func_$ac_func=yes"
2412 else
2413 echo "configure: failed program was:" >&5
2414 cat conftest.$ac_ext >&5
2415 rm -rf conftest*
2416 eval "ac_cv_func_$ac_func=no"
2417 fi
2418 rm -f conftest*
2419 fi
2420
2421 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2422 echo "$ac_t""yes" 1>&6
2423 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2424 cat >> confdefs.h <<EOF
2425 #define $ac_tr_func 1
2426 EOF
2427
2428 else
2429 echo "$ac_t""no" 1>&6
2430 echo $ac_n "checking for regcomp in -lrx""... $ac_c" 1>&6
2431 echo "configure:2433: checking for regcomp in -lrx" >&5
2432 ac_lib_var=`echo rx'_'regcomp | sed 'y%./+-%__p_%'`
23792433 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
23802434 echo $ac_n "(cached) $ac_c" 1>&6
23812435 else
23822436 ac_save_LIBS="$LIBS"
23832437 LIBS="-lrx $LIBS"
23842438 cat > conftest.$ac_ext <<EOF
2385 #line 2387 "configure"
2439 #line 2441 "configure"
23862440 #include "confdefs.h"
23872441 /* Override any gcc2 internal prototype to avoid an error. */
23882442 /* We use char because int might match the return type of a gcc2
23892443 builtin and then its argument prototype would still apply. */
2390 char regncomp();
2444 char regcomp();
23912445
23922446 int main() {
2393 regncomp()
2447 regcomp()
23942448 ; return 0; }
23952449 EOF
2396 if { (eval echo configure:2398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2450 if { (eval echo configure:2452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23972451 rm -rf conftest*
23982452 eval "ac_cv_lib_$ac_lib_var=yes"
23992453 else
24082462 fi
24092463 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
24102464 echo "$ac_t""yes" 1>&6
2411 HAVE_RX="yes"
2465 RX_LIBS="-lrx"; RX_INCS=""
24122466 else
24132467 echo "$ac_t""no" 1>&6
2414 fi
2415
2416 if test "$HAVE_RX" = "yes"; then
2417 RX_LIBS="-lrx"
2418 RX_INCS=""
2419 else
2420 RX_LIBS="-L../rx -lrx"
2421 RX_INCS="-I\${srcdir}/../rx"
2422 fi
2468
2469 RX_LIBS="-L../rx -lrx"; RX_INCS="-I\${srcdir}/../rx"
2470 BUILD_TARGETS="$BUILD_TARGETS rx"
2471 subdirs="rx"
2472 s%@subdirs@%$subdirs%g
2473
2474
2475 fi
2476
2477
2478 fi
2479 done
2480
24232481
24242482
24252483
24332491
24342492 if test -z "$RPLAY_TARGET"; then
24352493 echo $ac_n "checking for sun""... $ac_c" 1>&6
2436 echo "configure:2438: checking for sun" >&5
2494 echo "configure:2496: checking for sun" >&5
24372495 cat > conftest.$ac_ext <<EOF
2438 #line 2440 "configure"
2496 #line 2498 "configure"
24392497 #include "confdefs.h"
24402498
24412499 #ifdef sun
24592517 fi
24602518 if test "$RPLAY_TARGET"; then
24612519 echo $ac_n "checking for solaris""... $ac_c" 1>&6
2462 echo "configure:2464: checking for solaris" >&5
2520 echo "configure:2522: checking for solaris" >&5
24632521 if test ! -f /vmunix; then
24642522 is_solaris=yes
24652523 RPLAY_TARGET="solaris"
24722530
24732531 if test -z "$RPLAY_TARGET"; then
24742532 echo $ac_n "checking for linux""... $ac_c" 1>&6
2475 echo "configure:2477: checking for linux" >&5
2533 echo "configure:2535: checking for linux" >&5
24762534 cat > conftest.$ac_ext <<EOF
2477 #line 2479 "configure"
2535 #line 2537 "configure"
24782536 #include "confdefs.h"
24792537
24802538 #ifdef linux
25002558
25012559 if test -z "$RPLAY_TARGET"; then
25022560 echo $ac_n "checking for hpux""... $ac_c" 1>&6
2503 echo "configure:2505: checking for hpux" >&5
2561 echo "configure:2563: checking for hpux" >&5
25042562 cat > conftest.$ac_ext <<EOF
2505 #line 2507 "configure"
2563 #line 2565 "configure"
25062564 #include "confdefs.h"
25072565
25082566 #ifdef __hpux
25282586
25292587 if test -z "$RPLAY_TARGET"; then
25302588 echo $ac_n "checking for sgi""... $ac_c" 1>&6
2531 echo "configure:2533: checking for sgi" >&5
2589 echo "configure:2591: checking for sgi" >&5
25322590 cat > conftest.$ac_ext <<EOF
2533 #line 2535 "configure"
2591 #line 2593 "configure"
25342592 #include "confdefs.h"
25352593
25362594 #ifdef sgi
25522610 if test $is_sgi = "yes"; then
25532611 RPLAY_TARGET="sgi"
25542612 echo $ac_n "checking for multimedia development kit""... $ac_c" 1>&6
2555 echo "configure:2557: checking for multimedia development kit" >&5
2613 echo "configure:2615: checking for multimedia development kit" >&5
25562614 for ac_hdr in audio.h
25572615 do
25582616 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
25592617 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2560 echo "configure:2562: checking for $ac_hdr" >&5
2618 echo "configure:2620: checking for $ac_hdr" >&5
25612619 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
25622620 echo $ac_n "(cached) $ac_c" 1>&6
25632621 else
25642622 cat > conftest.$ac_ext <<EOF
2565 #line 2567 "configure"
2623 #line 2625 "configure"
25662624 #include "confdefs.h"
25672625 #include <$ac_hdr>
25682626 EOF
25692627 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2570 { (eval echo configure:2572: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2628 { (eval echo configure:2630: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
25712629 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
25722630 if test -z "$ac_err"; then
25732631 rm -rf conftest*
26032661
26042662 if test -z "$RPLAY_TARGET"; then
26052663 echo $ac_n "checking for FreeBSD""... $ac_c" 1>&6
2606 echo "configure:2608: checking for FreeBSD" >&5
2664 echo "configure:2666: checking for FreeBSD" >&5
26072665 cat > conftest.$ac_ext <<EOF
2608 #line 2610 "configure"
2666 #line 2668 "configure"
26092667 #include "confdefs.h"
26102668
26112669 #ifdef __FreeBSD__
26262684 echo "$ac_t""$is_freebsd" 1>&6
26272685 if test $is_freebsd = "yes"; then
26282686 RPLAY_TARGET="FreeBSD"
2687 fi
2688 fi
2689
2690 if test -z "$RPLAY_TARGET"; then
2691 echo $ac_n "checking for the Hurd""... $ac_c" 1>&6
2692 echo "configure:2694: checking for the Hurd" >&5
2693 cat > conftest.$ac_ext <<EOF
2694 #line 2696 "configure"
2695 #include "confdefs.h"
2696
2697 #ifdef __GNU__
2698 yes
2699 #endif
2700
2701 EOF
2702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2703 egrep "yes" >/dev/null 2>&1; then
2704 rm -rf conftest*
2705 is_gnu=yes
2706 else
2707 rm -rf conftest*
2708 is_gnu=no
2709 fi
2710 rm -f conftest*
2711
2712 echo "$ac_t""$is_gnu" 1>&6
2713 if test $is_gnu = "yes"; then
2714 RPLAY_TARGET="gnu"
26292715 fi
26302716 fi
26312717
26582744 fi
26592745
26602746
2661 BUILD_TARGETS="include lib adpcm"
2662 if test "$HAVE_RX" != "yes"; then
2663 BUILD_TARGETS="$BUILD_TARGETS rx"
2664 subdirs="rx"
2665
2666 fi
2667 if test "$HAVE_GSM" != "yes"; then
2668 BUILD_TARGETS="$BUILD_TARGETS gsm"
2669 fi
2670
26712747 BUILD_TARGETS="$BUILD_TARGETS librplay rplayd rplay rptp doc"
26722748
2673 if test $RPLAY_TARGET = "oss"; then
2749 if test $RPLAY_TARGET = "oss" -o $RPLAY_TARGET = "gnu"; then
26742750 BUILD_TARGETS="$BUILD_TARGETS devrplay"
26752751 fi
26762752
28312907 s%@RX_INCS@%$RX_INCS%g
28322908 s%@RPLAY_TOP@%$RPLAY_TOP%g
28332909 s%@RPLAY_TARGET@%$RPLAY_TARGET%g
2834 s%@subdirs@%$subdirs%g
28352910 s%@BUILD_TARGETS@%$BUILD_TARGETS%g
28362911
28372912 CEOF
44
55 AC_INIT(rplayd/rplayd.c)
66 AC_CONFIG_HEADER(include/config.h)
7
8 BUILD_TARGETS="include lib adpcm"
79
810 dnl
911 dnl Figure what version of rplay this is.
5759 AC_HEADER_STDC
5860 AC_HEADER_TIME
5961 dnl AC_PATH_XTRA
60 AC_CHECK_HEADERS(fcntl.h sys/file.h sys/ioctl.h sys/time.h stdlib.h unistd.h memory.h string.h strings.h utime.h limits.h gsm.h gsm/gsm.h rxposix.h rx/rxposix.h)
62 AC_CHECK_HEADERS(fcntl.h sys/file.h sys/ioctl.h sys/time.h stdlib.h unistd.h memory.h string.h strings.h utime.h limits.h gsm.h gsm/gsm.h regex.h rxposix.h rx/rxposix.h)
6163 AC_HEADER_SYS_WAIT
6264
6365 dnl Check for typedefs, structures, and compiler characteristics.
7375 AC_CHECK_LIB(socket, socket, [LIBS="$LIBS -lsocket"])
7476 AC_CHECK_LIB(nsl, t_accept, [LIBS="$LIBS -lnsl"])
7577
76 AC_CHECK_LIB(readline, readline, [RL_LIBS="-lreadline"])
78 AC_CHECK_LIB(readline, readline,
79 [AC_DEFINE(HAVE_LIBREADLINE) RL_LIBS="-lreadline"])
7780 AC_SUBST(RL_LIBS)
7881
79 AC_CHECK_LIB(gsm, gsm_decode, [HAVE_GSM="yes"])
80 if test "$HAVE_GSM" = "yes"; then
81 GSM_LIBS="-lgsm"
82 GSM_INCS=""
83 else
84 GSM_LIBS="-L../gsm -lgsm"
85 GSM_INCS="-I\${srcdir}/../gsm"
86 fi
82 AC_CHECK_LIB(gsm, gsm_decode,
83 [GSM_LIBS="-lgsm"; GSM_INCS=""],
84 [
85 GSM_LIBS="-L../gsm -lgsm"; GSM_INCS="-I\${srcdir}/../gsm"
86 BUILD_TARGETS="$BUILD_TARGETS gsm"
87 ])
8788 AC_SUBST(GSM_LIBS)
8889 AC_SUBST(GSM_INCS)
8990
90 AC_CHECK_LIB(rx, regncomp, [HAVE_RX="yes"])
91 if test "$HAVE_RX" = "yes"; then
92 RX_LIBS="-lrx"
93 RX_INCS=""
94 else
95 RX_LIBS="-L../rx -lrx"
96 RX_INCS="-I\${srcdir}/../rx"
97 fi
91 dnl check for regcomp in libc, librx, or build rx
92 AC_CHECK_FUNCS(regcomp,
93 [],
94 [
95 AC_CHECK_LIB(rx, regcomp,
96 [RX_LIBS="-lrx"; RX_INCS=""],
97 [
98 RX_LIBS="-L../rx -lrx"; RX_INCS="-I\${srcdir}/../rx"
99 BUILD_TARGETS="$BUILD_TARGETS rx"
100 AC_CONFIG_SUBDIRS(rx)
101 ])
102 ])
98103 AC_SUBST(RX_LIBS)
99104 AC_SUBST(RX_INCS)
100105
212217 fi
213218
214219 dnl
220 dnl Check for the Hurd
221 dnl
222 if test -z "$RPLAY_TARGET"; then
223 AC_MSG_CHECKING(for the Hurd)
224 AC_EGREP_CPP(yes,
225 [
226 #ifdef __GNU__
227 yes
228 #endif
229 ], is_gnu=yes, is_gnu=no)
230 AC_MSG_RESULT($is_gnu)
231 if test $is_gnu = "yes"; then
232 RPLAY_TARGET="gnu"
233 fi
234 fi
235
236 dnl
215237 dnl *** Add new systems before this line ***
216238 dnl
217239
249271 fi
250272 AC_SUBST(LIBS)
251273
252 BUILD_TARGETS="include lib adpcm"
253 if test "$HAVE_RX" != "yes"; then
254 BUILD_TARGETS="$BUILD_TARGETS rx"
255 AC_CONFIG_SUBDIRS(rx)
256 fi
257 if test "$HAVE_GSM" != "yes"; then
258 BUILD_TARGETS="$BUILD_TARGETS gsm"
259 fi
260
261274 BUILD_TARGETS="$BUILD_TARGETS librplay rplayd rplay rptp doc"
262275
263 if test $RPLAY_TARGET = "oss"; then
276 if test $RPLAY_TARGET = "oss" -o $RPLAY_TARGET = "gnu"; then
264277 BUILD_TARGETS="$BUILD_TARGETS devrplay"
265278 fi
266279
0 rplay (3.3.2-8) unstable; urgency=low
1
2 * better arg passing in rplaydsp. (closes: Bug#133199)
3 * rplayd now closes stdin. (closes: 135672)
4 * fixed redundant declarations. (closes: 138699)
5 * better ogg helper.
6
7 -- lantz moore <lmoore@tump.com> Tue, 2 Apr 2002 17:44:19 -0800
8
9 rplay (3.3.2-7) unstable; urgency=low
10
11 * *finally* moved librplay3-dev to development section.
12
13 -- lantz moore <lmoore@tump.com> Sat, 9 Feb 2002 16:14:32 -0800
14
15 rplay (3.3.2-6) unstable; urgency=low
16
17 * make sure that we can actually write data to rplayd. (closes: Bug#89352)
18 * added some spaces to the description of the rplay package to make the
19 formatting happy. (closes: Bug#123598)
20
21 -- lantz moore <lmoore@debian.org> Fri, 1 Feb 2002 12:16:48 -0800
22
23 rplay (3.3.2-5) unstable; urgency=low
24
25 * rmdir /etc/rplay on purge. (closes: Bug#74397)
26 * redirect std{err,out} to /dev/null in init script. (closes: Bug#120849)
27 * beefed up the manpage for rplaydsp. (closes: Bug#112624)
28 * fixed typo in librplay3-dev description. (closes: Bug#110478)
29 * merged Marcus Brinkmann's hurd patches. (closes: Bug#77044)
30 * fixed a few lintian warnings.
31 * added vorbis-tools suggestion to rplay-server and helper description
32 in rplay.helpers.
33
34 -- lantz moore <lmoore@debian.org> Thu, 6 Dec 2001 14:03:26 -0800
35
36 rplay (3.3.2-4) unstable; urgency=low
37
38 * /etc/init.d/rplay starts at 99 and dies at 10. (closes: Bug#67203)
39 * rplay-server suggested some non-existent/experimental version of
40 xmp. (closes: Bug#74179)
41 * /etc/rplay is completely removed upon purging. (closes: Bug#74379)
42 * rplayd now uses the regex facilities from libc and no longer depends
43 on librx.
44 * installed default rplay.hosts.
45
46 -- lantz moore <lmoore@debian.org> Sat, 21 Oct 2000 15:50:33 -0700
47
48 rplay (3.3.2-3) unstable; urgency=high
49
50 * recompile using libreadline4. (closes: Bug#63176)
51 * fixed up copyright file.
52 * fixed Depends lines in control file. (closes: Bug#51934)
53 * added rplaydsp and moved devrplay.so to rplay-client.
54
55 -- lantz moore <lmoore@debian.org> Tue, 2 May 2000 14:44:43 -0700
56
057 rplay (3.3.2-2) unstable; urgency=medium
158
259 * added soname and -D_REENTRANT (fixes 37125, 48520)
59116 * Initial Release.
60117
61118 -- lantz moore <lmoore@debian.org> Mon, 22 Jun 1998 13:55:25 -0700
62
63 Local variables:
64 mode: debian-changelog
65 add-log-mailing-address: "lmoore@debian.org"
66 End:
11 Section: sound
22 Priority: optional
33 Maintainer: lantz moore <lmoore@debian.org>
4 Standards-Version: 3.1.0.0
4 Standards-Version: 3.5.6.1
5 Build-Depends: libgsm1-dev, libreadline4-dev, debhelper
56
67 Package: rplay
78 Architecture: any
1112 This package will cause all of the rplay packages to be installed, after
1213 which time it can safely be removed.
1314 .
14 rplay-server contains the rplay server.
15 rplay-client contains the rplay clients.
16 librplay3{,-dev} contains the rplay libraries.
17 rplay-perl contains the rplay perl modules.
18 rplay-contrib currently only contains the mailsound stuff.
15 rplay-server contains the rplay server.
16 rplay-client contains the rplay clients.
17 librplay3{,-dev} contains the rplay libraries.
18 rplay-perl contains the rplay perl modules.
19 rplay-contrib currently only contains the mailsound stuff.
1920 .
2021 RPlay allows sounds to be played to and from local and remote Unix
2122 systems. Sounds can be played with or without sending audio data over
2728
2829 Package: rplay-client
2930 Architecture: any
30 Depends: ${shlibs:Depends}, librplay3
31 Depends: ${shlibs:Depends}
3132 Conflicts: rplay (<< 3.3.2-2)
3233 Replaces: rplay (<< 3.3.2-2)
3334 Description: The basic rplay clients.
4445
4546 Package: rplay-server
4647 Architecture: any
47 Depends: ${shlibs:Depends}, librplay3
48 Depends: ${shlibs:Depends}
4849 Conflicts: rplay (<< 3.3.2-2)
4950 Replaces: rplay (<< 3.3.2-2)
50 Suggests: xmp (>> 1.1.5), mpg123
51 Suggests: mpg123, vorbis-tools
5152 Description: The rplay network audio system server.
5253 This package contains the rplay server. The rplay server allows sounds
5354 to be played on the system.
8182 Conflicts: rplay (<< 3.3.2-2)
8283 Replaces: rplay (<< 3.3.2-2)
8384 Depends: librplay3 (= ${Source-Version})
84 Description: Development libraries for the rplay network autio system.
85 Section: devel
86 Description: Development libraries for the rplay network audio system.
8587 Contains header files and development libraries for the rplay network
8688 audio system.
8789 .
9597
9698 Package: rplay-contrib
9799 Architecture: any
98 Depends: ${shlibs:Depends}, librplay3, rplay-perl, perl5, ${perl:Depends}
100 Depends: ${shlibs:Depends}, rplay-perl, ${perl:Depends}
99101 Conflicts: rplay (<< 3.3.2-2)
100102 Replaces: rplay (<< 3.3.2-2)
101103 Description: Contributed binaries for the rplay network audio system.
114116 Architecture: any
115117 Conflicts: rplay (<< 3.3.2-2)
116118 Replaces: rplay (<< 3.3.2-2)
117 Depends: perl5, ${perl:Depends}
119 Depends: ${perl:Depends}
118120 Description: Perl modules for the rplay network audio system.
119121 Contains perl modules which aid in creating rplay-aware perl scripts.
120122 .
00 This package was debianized by lantz moore <lmoore@debian.org>.
11
2 It was downloaded from ftp://rplay.doit.org/pub/rplay-3.3.1.tar.gz
2 It was downloaded from ftp://rplay.doit.org/pub/rplay-3.3.2.tar.gz
33
44 RPlay was written by Mark Boyns <boyns@doit.org>.
55
6 Copyright (C) 1993-98 Mark R. Boyns <boyns@doit.org>
6 Copyright (C) 1993-2000 Mark R. Boyns <boyns@doit.org>
77
88 This program is free software; you may redistribute it and/or modify
99 it under the terms of the GNU General Public License as published by
1616 for more details.
1717
1818 A copy of the GNU General Public License is available as
19 /usr/doc/copyright/GPL in the Debian GNU/Linux distribution or on the
19 /usr/share/common-licenses/GPL in the Debian GNU/Linux distribution or on the
2020 World Wide Web at http://www.gnu.org/copyleft/gpl.html. You can also
2121 obtain it by writing to the Free Software Foundation, Inc., 59 Temple
2222 Place - Suite 330, Boston, MA 02111-1307, USA.
+0
-3
debian/librplay3-dev.postinst.debhelper less more
0 # Automatically added by dh_installinfo
1 install-info --quiet /usr/share/info/librplay.info
2 # End automatically added section
+0
-3
debian/librplay3-dev.prerm.debhelper less more
0 # Automatically added by dh_installinfo
1 install-info --quiet --remove /usr/share/info/librplay.info
2 # End automatically added section
0 ChangeLog
1 INSTALL
2 INSTALL.generic
0 changelog
31 NEWS
42 PORTING
53 README
0 usr/lib/devrplay.so
10 usr/lib/librplay.so.3.3.2
21 usr/lib/librplay.so.3
00 #!/bin/sh -e
1
2 ldconfig
31
42 #DEBHELPER#
53
+0
-7
debian/librplay3.postinst.debhelper less more
0 # Automatically added by dh_installdocs
1 if [ "$1" = "configure" ]; then
2 if [ -d /usr/doc -a ! -e /usr/doc/librplay3 -a -d /usr/share/doc/librplay3 ]; then
3 ln -sf ../share/doc/librplay3 /usr/doc/librplay3
4 fi
5 fi
6 # End automatically added section
0 #!/bin/sh -e
1
2 #DEBHELPER#
+0
-5
debian/librplay3.prerm.debhelper less more
0 # Automatically added by dh_installdocs
1 if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/librplay3 ]; then
2 rm -f /usr/doc/librplay3
3 fi
4 # End automatically added section
+0
-1
debian/librplay3.substvars less more
0 shlibs:Depends=libc6 (>= 2.1)
00 usr/bin/rplay
11 usr/bin/rptp
2 usr/bin/rplaydsp
23 usr/share/man/man1/rplay.1
4 usr/share/man/man1/rplaydsp.1
35 usr/share/man/man1/rptp.1
6 usr/lib/devrplay.so
+0
-12
debian/rplay-client.postinst.debhelper less more
0 # Automatically added by dh_installinfo
1 install-info --quiet /usr/share/info/RPTP.info
2 # End automatically added section
3 # Automatically added by dh_installinfo
4 install-info --quiet /usr/share/info/RPLAY.info
5 # End automatically added section
6 # Automatically added by dh_installinfo
7 install-info --quiet /usr/share/info/rplay.info
8 # End automatically added section
9 # Automatically added by dh_installmime
10 if [ -x /usr/sbin/update-mime ]; then update-mime; fi
11 # End automatically added section
+0
-3
debian/rplay-client.postrm.debhelper less more
0 # Automatically added by dh_installmime
1 if [ -x /usr/sbin/update-mime ]; then update-mime; fi
2 # End automatically added section
+0
-9
debian/rplay-client.prerm.debhelper less more
0 # Automatically added by dh_installinfo
1 install-info --quiet --remove /usr/share/info/RPTP.info
2 # End automatically added section
3 # Automatically added by dh_installinfo
4 install-info --quiet --remove /usr/share/info/RPLAY.info
5 # End automatically added section
6 # Automatically added by dh_installinfo
7 install-info --quiet --remove /usr/share/info/rplay.info
8 # End automatically added section
+0
-1
debian/rplay-client.substvars less more
0 shlibs:Depends=libc6 (>= 2.1), libncurses4 (>= 4.2-3.1), libreadlineg2 (>= 2.1-12)
66 ln -sf ../share/doc/$pkg /usr/doc/$pkg
77 fi
88 fi
9
10 #DEBHELPER#
44 if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/$pkg ]; then
55 rm -f /usr/doc/$pkg
66 fi
7
8 #DEBHELPER#
+0
-2
debian/rplay-contrib.substvars less more
0 perl:Depends=perl5
1 shlibs:Depends=libc6 (>= 2.1)
+0
-7
debian/rplay-perl.postinst.debhelper less more
0 # Automatically added by dh_installdocs
1 if [ "$1" = "configure" ]; then
2 if [ -d /usr/doc -a ! -e /usr/doc/rplay-perl -a -d /usr/share/doc/rplay-perl ]; then
3 ln -sf ../share/doc/rplay-perl /usr/doc/rplay-perl
4 fi
5 fi
6 # End automatically added section
+0
-5
debian/rplay-perl.prerm.debhelper less more
0 # Automatically added by dh_installdocs
1 if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/rplay-perl ]; then
2 rm -f /usr/doc/rplay-perl
3 fi
4 # End automatically added section
+0
-1
debian/rplay-perl.substvars less more
0 perl:Depends=perl5
00 /etc/rplay/rplay.conf
11 /etc/rplay/rplay.servers
22 /etc/rplay/rplay.helpers
3 /etc/rplay/rplay.hosts
34 /etc/init.d/rplay
00 etc/rplay.helpers
1 etc/rplay.hosts
66 etc/rplay/rplay.conf
77 etc/rplay/rplay.servers
88 etc/rplay/rplay.helpers
9 etc/rplay/rplay.hosts
+0
-4
debian/rplay-server.postinst.debhelper less more
0 # Automatically added by dh_installinit
1 update-rc.d rplay defaults >/dev/null
2 /etc/init.d/rplay start
3 # End automatically added section
00 #!/bin/sh -e
11
2 if [ "$1" = "purge" ]; then
3 rmdir --ignore-fail-on-non-empty /etc/rplay
4 fi
5
26 #DEBHELPER#
+0
-5
debian/rplay-server.postrm.debhelper less more
0 # Automatically added by dh_installinit
1 if [ "$1" = "purge" ] ; then
2 update-rc.d rplay remove >/dev/null
3 fi
4 # End automatically added section
+0
-3
debian/rplay-server.prerm.debhelper less more
0 # Automatically added by dh_installinit
1 /etc/init.d/rplay stop
2 # End automatically added section
11
22 # /etc/init.d/rplay: start and stop the rplay daemon
33
4 # there have been requests to have rplay start up after autofs and amd.
5 FLAGS="defaults 40"
4 # there have been requests to have rplay start up *late* and stop *early*
5 FLAGS="defaults 99 10"
66
77 test -x /usr/sbin/rplayd || exit 0
88
1313
1414 case "$1" in
1515 start) echo -n "Starting rplay server: rplayd"
16 start-stop-daemon --start --quiet --exec /usr/sbin/rplayd 2> /dev/null
16 start-stop-daemon --start --quiet \
17 --exec /usr/sbin/rplayd > /dev/null 2>&1
1718 echo "."
1819 ;;
1920
2930 restart)
3031 echo -n "Restarting rplay server: rplayd"
3132 start-stop-daemon --stop --quiet --exec /usr/sbin/rplayd
32 start-stop-daemon --start --quiet --exec /usr/sbin/rplayd 2> /dev/null
33 start-stop-daemon --start --quiet \
34 --exec /usr/sbin/rplayd > /dev/null 2>&1
3335 echo "."
3436 ;;
3537
+0
-1
debian/rplay-server.substvars less more
0 shlibs:Depends=libc6 (>= 2.1), libgsm1 (>= 1.0.10-3), librx1g
66 i = $(shell pwd)/debian/tmp
77 b = $(shell pwd)/debian/build
88
9 build: build-debstamp
10 build-debstamp:
11 $(checkdir)
9 build: build-stamp
10 build-stamp:
11 dh_testdir
1212 ./configure --prefix=/usr --sysconfdir=/etc/rplay --without-x \
1313 --enable-rplayd-user=nobody --enable-rplayd-group=audio
1414 make CFLAGS="-O2 -D_REENTRANT"
1515 (cd contrib/mailsound; make CFLAGS="-O2 -g")
16 touch build-debstamp
16
17 touch build-stamp
1718
1819 clean:
19 [ ! -f Makefile ] || make distclean
20 $(checkdir)
21 -rm -f *-debstamp
22 -rm -f `find . -name "*~"`
23 -rm -f contrib/mailsound/mailsound{,.o}
24 -rm -rf $(i) $(b) debian/files* core debian/substvars
25
26 install: build install-debstamp
27 install-debstamp:
2820 dh_testdir
2921 dh_testroot
22 -rm -f build-stamp
23
24 -[ ! -f Makefile ] || $(MAKE) distclean
25
26 -rm -f changelog contrib/mailsound/mailsound{,.o} \
27 gsm/Makefile rx/{config.*,Makefile}
28
3029 dh_clean
31 rm -rf $(b) $(i)
32 make install prefix=$(i)/usr infodir=$(i)/usr/share/info mandir=$(i)/usr/share/man
30
31 install:
32 install: build
33 dh_testdir
34 dh_testroot
35 dh_clean -k
36
37 make install prefix=$(i)/usr \
38 infodir=$(i)/usr/share/info \
39 mandir=$(i)/usr/share/man
3340 install -s contrib/mailsound/mailsound $(i)/usr/bin
3441 mkdir -p $(i)/usr/lib/perl5
3542 install -m 664 perl/{RPlay.pm,rplay.ph,RPTP.pm} $(i)/usr/lib/perl5
3845 install -m 644 perl/Mailsound.1 $(i)/usr/share/man/man1
3946 install -d $(i)/etc/rplay
4047 install -m 644 etc/rplay.{conf,helpers,hosts,servers} $(i)/etc/rplay
41 touch install-debstamp
48
49 cp ChangeLog changelog
50
51 dh_movefiles
52 dh_installinit -prplay-server --init-script=rplay -- defaults 99 10
4253
4354 binary: binary-indep binary-arch
4455
45 binary-indep: install
46 $(checkroot)
56 binary-indep: build install
4757
48 binary-arch: checkroot install librplay3 librplay3-dev rplay rplay-server rplay-perl rplay-contrib rplay-client rplay
58 binary-arch: build install
59 dh_testdir
60 dh_testroot
61 # dh_installdebconf
62 dh_installdocs
63 dh_installexamples
64 dh_installmenu
65 # dh_installlogrotate
66 # dh_installemacsen
67 # dh_installpam
68 # dh_installmime
69 # dh_installinit
70 # dh_installcron
71 dh_installman
72 dh_installinfo
73 dh_undocumented
74 dh_installchangelogs
75 dh_strip
76 dh_link
77 dh_compress
78 dh_fixperms
79 dh_makeshlibs
80 dh_installdeb
81 dh_perl
82 dh_shlibdeps
83 dh_gencontrol
84 dh_md5sums
85 dh_builddeb
4986
50 rplay: install
51 install -d $(b)/$@/usr/share/doc
52 cd $(b)/$@/usr/share/doc && ln -s librplay3 $@
53 dh_installdeb -p$@ -P$(b)/$@
54 dh_gencontrol -p$@ -P$(b)/$@
55 dh_md5sums -p$@ -P$(b)/$@
56 dh_builddeb -p$@ -P$(b)/$@
57
58 librplay3: install
59 dh_installdocs -p$@ -P$(b)/$@
60 cd $(b)/$@/usr/share/doc/$@/ && ln -s ChangeLog.gz changelog.gz
61 dh_installchangelogs -p$@ -P$(b)/$@
62 dh_movefiles -p$@ -P$(b)/$@
63 dh_makeshlibs -p$@ -P$(b)/$@
64 dh_strip -p$@ -P$(b)/$@
65 dh_compress -p$@ -P$(b)/$@
66 dh_fixperms -p$@ -P$(b)/$@
67 dh_installmime -p$@ -P$(b)/$@
68 dh_installdeb -p$@ -P$(b)/$@
69 dh_shlibdeps -p$@ -P$(b)/$@
70 dh_gencontrol -p$@ -P$(b)/$@
71 dh_md5sums -p$@ -P$(b)/$@
72 dh_builddeb -p$@ -P$(b)/$@
73
74 librplay3-dev: install
75 install -d $(b)/$@/usr/share/doc
76 cd $(b)/$@/usr/share/doc && ln -s librplay3 $@
77 dh_movefiles -p$@ -P$(b)/$@
78 dh_strip -p$@ -P$(b)/$@
79 dh_compress -p$@ -P$(b)/$@
80 dh_fixperms -p$@ -P$(b)/$@
81 dh_installinfo -p$@ -P$(b)/$@
82 dh_installmime -p$@ -P$(b)/$@
83 dh_installdeb -p$@ -P$(b)/$@
84 dh_shlibdeps -p$@ -P$(b)/$@
85 dh_gencontrol -p$@ -P$(b)/$@
86 dh_md5sums -p$@ -P$(b)/$@
87 dh_builddeb -p$@ -P$(b)/$@
88
89 rplay-client: install
90 install -d $(b)/$@/usr/share/doc
91 cd $(b)/$@/usr/share/doc && ln -s librplay3 $@
92 dh_movefiles -p$@ -P$(b)/$@
93 dh_strip -p$@ -P$(b)/$@
94 dh_compress -p$@ -P$(b)/$@
95 dh_fixperms -p$@ -P$(b)/$@
96 dh_installinfo -p$@ -P$(b)/$@
97 dh_installmime -p$@ -P$(b)/$@
98 dh_installdeb -p$@ -P$(b)/$@
99 dh_shlibdeps -p$@ -P$(b)/$@
100 dh_gencontrol -p$@ -P$(b)/$@
101 dh_md5sums -p$@ -P$(b)/$@
102 dh_builddeb -p$@ -P$(b)/$@
103
104 rplay-server: install
105 install -d $(b)/$@/usr/share/doc/librplay3
106 cd $(b)/$@/usr/share/doc && ln -s librplay3 $@
107 dh_movefiles -p$@ -P$(b)/$@
108 dh_installexamples -p$@ -P$(b)/$@
109 dh_strip -p$@ -P$(b)/$@
110 dh_compress -p$@ -P$(b)/$@
111 dh_fixperms -p$@ -P$(b)/$@
112 dh_installinit -p$@ -P$(b)/$@ --init-script=rplay
113 dh_installdeb -p$@ -P$(b)/$@
114 dh_shlibdeps -p$@ -P$(b)/$@
115 dh_gencontrol -p$@ -P$(b)/$@
116 dh_md5sums -p$@ -P$(b)/$@
117 dh_builddeb -p$@ -P$(b)/$@
118
119 rplay-perl: install
120 dh_installdocs -p$@ -P$(b)/$@
121 dh_installchangelogs -p$@ -P$(b)/$@
122 dh_movefiles -p$@ -P$(b)/$@
123 dh_perl -p$@ -P$(b)/$@
124 dh_compress -p$@ -P$(b)/$@
125 dh_fixperms -p$@ -P$(b)/$@
126 dh_installdeb -p$@ -P$(b)/$@
127 dh_gencontrol -p$@ -P$(b)/$@
128 dh_md5sums -p$@ -P$(b)/$@
129 dh_builddeb -p$@ -P$(b)/$@
130
131 rplay-contrib: install
132 install -d $(b)/$@/usr/share/doc
133 cd $(b)/$@/usr/share/doc && ln -s rplay-perl $@
134 dh_movefiles -p$@ -P$(b)/$@
135 dh_perl -p$@ -P$(b)/$@
136 dh_strip -p$@ -P$(b)/$@
137 dh_compress -p$@ -P$(b)/$@
138 dh_fixperms -p$@ -P$(b)/$@
139 dh_installdeb -p$@ -P$(b)/$@
140 dh_shlibdeps -p$@ -P$(b)/$@
141 dh_gencontrol -p$@ -P$(b)/$@
142 dh_md5sums -p$@ -P$(b)/$@
143 dh_builddeb -p$@ -P$(b)/$@
144
145 define checkdir
146 test -f debian/rules
147 endef
148
149 checkroot:
150 $(checkdir)
151 test root = "`whoami`"
152
153 .PHONY: binary binary-arch binary-indep clean checkroot
87 binary: binary-indep binary-arch
88 .PHONY: build clean binary-indep binary-arch binary install
3232 install: all
3333 $(MKINSTALLDIRS) $(libdir)
3434 $(INSTALL_DATA) $(TARGET) $(libdir)
35 $(MKINSTALLDIRS) $(bindir)
36 $(INSTALL_PROGRAM) rplaydsp $(bindir)/rplaydsp
3537
3638 uninstall:
3739 $(RM) $(libdir)/$(TARGET)
2525 * Copyright (C) 1998, 1999 Manish Singh <yosh@gimp.org>
2626 */
2727
28 #define _GNU_SOURCE
29 #define __USE_GNU
30
2831 #ifdef HAVE_CONFIG_H
2932 #include "config.h"
3033 #endif
3336 #include <string.h>
3437 #include <unistd.h>
3538 #include <fcntl.h>
39 #include <sys/errno.h>
3640 #include <sys/types.h>
3741 #include <sys/stat.h>
3842 #include <sys/time.h>
5559 static int dsp_speed;
5660 static int dsp_blksize;
5761 static int streaming;
62 static int opened;
5863
5964 static char *
6065 getsound()
9499
95100 if (strcmp(pathname, "/dev/dsp") == 0)
96101 {
102 char response[RPTP_MAX_LINE];
103 char *acc;
104
97105 rplay_fd = rptp_open(rplay_default_host(), RPTP_PORT, response,
98106 sizeof(response));
99107 if (rplay_fd < 0)
100108 {
101109 rptp_perror(rplay_default_host());
102110 }
111 else
112 {
113 rptp_putline(rplay_fd, "access");
114 rptp_getline(rplay_fd, response, sizeof(response));
115 acc = rptp_parse(response, "access");
116
117 if (!acc || !strchr(acc, 'w'))
118 {
119 fprintf(stderr,
120 "RPLAY-ERROR: please add 'w' to rplay.hosts or man rplay.hosts\n");
121 errno = EACCES;
122 close(rplay_fd);
123 rplay_fd = -1;
124 }
125 else
126 {
127 opened = 1;
128 }
129 }
130
103131 return rplay_fd;
104132 }
105133 else
157185 break;
158186 }
159187
188 /*
160189 if (spool_id == -1 && dsp_fmt && dsp_speed && dsp_channels)
161190 {
162191 char response[RPTP_MAX_LINE];
173202 getsound());
174203 rptp_getline(rplay_fd, response, sizeof(response));
175204
205 if (response[0] != RPTP_OK)
206 {
207 errno = EINVAL;
208 return -1;
209 }
210
176211 spool_id = atoi(1 + rptp_parse(response, "id"));
177212
178213 rptp_putline(rplay_fd, "put id=#%d size=0", spool_id);
179214 rptp_getline(rplay_fd, response, sizeof(response));
180215 }
216 */
181217
182218 return 0;
183219 }
213249 if (!func)
214250 func = (int (*)(int, const void *, size_t)) dlsym(REAL_LIBC, "write");
215251
216 if (fd == rplay_fd && !streaming)
252 if (fd == rplay_fd && !streaming && opened)
217253 {
218254 char info[64];
219255 char response[RPTP_MAX_LINE];
240276 }
241277 /* otherwise let rplayd figure out the format using
242278 the sound header and/or name. */
243
279
244280 streaming = 1;
245281 rptp_putline(rplay_fd, "play input=flow %s sound=\"%s\"",
246282 info, getsound());
268304 rplay_fd = -1;
269305 spool_id = -1;
270306 streaming = 0;
307 opened = 0;
271308 dsp_fmt = dsp_speed = dsp_channels = dsp_speed = dsp_blksize = 0;
272309 }
273310
0 #!/bin/sh
1
2 if [ -z $LD_PRELOAD ]; then
3 LD_PRELOAD=/usr/lib/devrplay.so
4 else
5 LD_PRELOAD=/usr/lib/devrplay.so:$LD_PRELOAD
6 fi
7
8 export LD_PRELOAD
9
10 exec "$@"
11
4040 install: all
4141 -$(MKINSTALLDIRS) $(mandir)/man1 $(mandir)/man5 $(mandir)/man8 $(infodir)
4242 -$(INSTALL_DATA) rplay.1 $(mandir)/man1
43 -$(INSTALL_DATA) rplaydsp.1 $(mandir)/man1
4344 -$(INSTALL_DATA) rplayd.8 $(mandir)/man8
4445 -$(INSTALL_DATA) rptp.1 $(mandir)/man1
4546 -$(INSTALL_DATA) rplay.conf.5 $(mandir)/man5
0 This is Info file RPLAY.info, produced by Makeinfo-1.63 from the input
1 file RPLAY.texi.
0 This is RPLAY.info, produced by makeinfo version 4.1 from RPLAY.texi.
1
2 INFO-DIR-SECTION Development
3 START-INFO-DIR-ENTRY
4 * RPLAY: (RPLAY). The RPLAY Protocol.
5 END-INFO-DIR-ENTRY
26
37 This file documents RPLAY protocol.
48
4044
4145 The `RPLAY' protocol uses simple binary UDP packets to control the
4246 audio server. Communication between the client and server is one-way -
43 packets are sent to the server and the server *never* replies.
47 packets are sent to the server and the server _never_ replies.
4448
4549 
4650 File: RPLAY.info, Node: Commands, Next: Attributes, Prev: Overview, Up: Top
139143 ******************
140144
141145 RPLAY packets always begin with a RPLAY_ID byte followed by a RPLAY
142 command. (*note Commands::.) The remaining contents is a list of
143 attributes (*note Attributes::.) and their corresponding values. The
146 command. (*note Commands::) The remaining contents is a list of
147 attributes (*note Attributes::) and their corresponding values. The
144148 packet is terminated with the RPLAY_NULL attribute.
145149
146150 A packet will never contain an attribute that is set to a default
160164
161165 
162166 Tag Table:
163 Node: Top734
164 Node: Overview1124
165 Node: Commands1425
166 Node: Attributes2252
167 Node: Packet description4129
167 Node: Top830
168 Node: Overview1220
169 Node: Commands1521
170 Node: Attributes2348
171 Node: Packet description4225
168172 
169173 End Tag Table
99
1010 @ifinfo
1111
12 @dircategory Development
13 @direntry
14 * RPLAY: (RPLAY). The RPLAY Protocol.
15 @end direntry
16
1217 This file documents RPLAY protocol.
1318
1419 Copyright (C) 1995 Mark Boyns
0 This is Info file RPTP.info, produced by Makeinfo-1.63 from the input
1 file RPTP.texi.
0 This is RPTP.info, produced by makeinfo version 4.1 from RPTP.texi.
1
2 INFO-DIR-SECTION Development
3 START-INFO-DIR-ENTRY
4 * RPTP: (RPTP). The RPTP Protocol.
5 END-INFO-DIR-ENTRY
26
37 This file documents RPTP protocol.
48
569573 info sound=bogus.au
570574 +sound=bogus.au size=9574 bits=8 sample-rate=8000 channels=1
571575
572 - Command: list [CONNECTIONS|HOSTS|SERVERS|SPOOL|SOUNDS]
576 - Command: list [connections|hosts|servers|spool|sounds]
573577 List the specified server information.
574578
575579 `connections'
646650 The `sound' attribute can be preceded by any of the following
647651 attributes:
648652 `count'
653
649654 `list-count'
655
650656 `priority'
657
651658 `random'
659
652660 `sample-rate'
661
653662 `volume'
663
654664 `input'
665
655666 `input-bits'
667
656668 `input-byte-order'
669
657670 `input-channels'
671
658672 `input-format'
673
659674 `input-offset'
675
660676 `input-sample-rate'
661677 This command returns one line containing the `id' attribute.
662678
698714 `message' attribute. The server will probably close the connect
699715 so the line may not be sent.
700716
701 - Command: set NAME[=VALUE] ...
717 - Command: set name[=value] ...
702718 Get and set server attributes. The current set of supported
703719 server attributes is:
704720 `application'
721
705722 `level-notify-rate'
723
706724 `notify'
725
707726 `notify-rate'
727
708728 `position-notify-rate'
729
709730 `priority-threshold'
731
710732 `volume'
711733 This command returns one line containing the server's values for
712734 the specified attributes. If an attribute cannot be set, the
851873
852874 * Menu:
853875
854 * access: Attributes.
855 * application: Attributes.
856 * audio-bits: Attributes.
857 * audio-bufsize: Attributes.
858 * audio-byte-order: Attributes.
859 * audio-channels: Attributes.
860 * audio-device: Attributes.
861 * audio-format: Attributes.
862 * audio-offset: Attributes.
863 * audio-port: Attributes.
864 * audio-rate: Attributes.
865 * audio-sample-rate: Attributes.
866 * audio-volume: Attributes.
867 * bits: Attributes.
868 * channels: Attributes.
869 * count: Attributes.
870 * error: Attributes.
871 * event: Attributes.
872 * format: Attributes.
873 * host: Attributes.
874 * id: Attributes.
875 * idle: Attributes.
876 * input: Attributes.
877 * input-bits: Attributes.
878 * input-byte-order: Attributes.
879 * input-channels: Attributes.
880 * input-format: Attributes.
881 * input-offset: Attributes.
882 * input-sample-rate: Attributes.
883 * left: Attributes.
884 * list-count: Attributes.
885 * message: Attributes.
886 * notify: Attributes.
887 * pause: Attributes.
888 * play: Attributes.
889 * position: Attributes.
890 * priority: Attributes.
891 * random: Attributes.
892 * remain: Attributes.
893 * right: Attributes.
894 * sample: Attributes.
895 * sample-rate: Attributes.
896 * samples: Attributes.
897 * seconds: Attributes.
898 * size: Attributes.
899 * sound: Attributes.
900 * uptime: Attributes.
901 * version: Attributes.
902 * volume: Attributes.
876 * access: Attributes.
877 * application: Attributes.
878 * audio-bits: Attributes.
879 * audio-bufsize: Attributes.
880 * audio-byte-order: Attributes.
881 * audio-channels: Attributes.
882 * audio-device: Attributes.
883 * audio-format: Attributes.
884 * audio-offset: Attributes.
885 * audio-port: Attributes.
886 * audio-rate: Attributes.
887 * audio-sample-rate: Attributes.
888 * audio-volume: Attributes.
889 * bits: Attributes.
890 * channels: Attributes.
891 * count: Attributes.
892 * error: Attributes.
893 * event: Attributes.
894 * format: Attributes.
895 * host: Attributes.
896 * id: Attributes.
897 * idle: Attributes.
898 * input: Attributes.
899 * input-bits: Attributes.
900 * input-byte-order: Attributes.
901 * input-channels: Attributes.
902 * input-format: Attributes.
903 * input-offset: Attributes.
904 * input-sample-rate: Attributes.
905 * left: Attributes.
906 * list-count: Attributes.
907 * message: Attributes.
908 * notify: Attributes.
909 * pause: Attributes.
910 * play: Attributes.
911 * position: Attributes.
912 * priority: Attributes.
913 * random: Attributes.
914 * remain: Attributes.
915 * right: Attributes.
916 * sample: Attributes.
917 * sample-rate: Attributes.
918 * samples: Attributes.
919 * seconds: Attributes.
920 * size: Attributes.
921 * sound: Attributes.
922 * uptime: Attributes.
923 * version: Attributes.
924 * volume: Attributes.
903925
904926 
905927 File: RPTP.info, Node: Event Index, Next: Command Index, Prev: Attribute Index, Up: Top
909931
910932 * Menu:
911933
912 * all: Events.
913 * any: Events.
914 * continue: Events.
915 * done: Events.
916 * level: Events.
917 * none: Events.
918 * pause: Events.
919 * play: Events.
920 * position: Events.
921 * skip: Events.
922 * state: Events.
923 * stop: Events.
924 * volume: Events.
934 * all: Events.
935 * any: Events.
936 * continue: Events.
937 * done: Events.
938 * level: Events.
939 * none: Events.
940 * pause: Events.
941 * play: Events.
942 * position: Events.
943 * skip: Events.
944 * state: Events.
945 * stop: Events.
946 * volume: Events.
925947
926948 
927949 File: RPTP.info, Node: Command Index, Prev: Event Index, Up: Top
931953
932954 * Menu:
933955
934 * access: Commands.
935 * application: Commands.
936 * continue: Commands.
937 * done: Commands.
938 * find: Commands.
939 * get: Commands.
940 * help: Commands.
941 * info: Commands.
942 * list: Commands.
943 * pause: Commands.
944 * play: Commands.
945 * put: Commands.
946 * quit: Commands.
947 * reset: Commands.
948 * set: Commands.
949 * skip: Commands.
950 * status: Commands.
951 * stop: Commands.
952 * version: Commands.
953 * volume: Commands.
954 * wait: Commands.
956 * access: Commands.
957 * application: Commands.
958 * continue: Commands.
959 * done: Commands.
960 * find: Commands.
961 * get: Commands.
962 * help: Commands.
963 * info: Commands.
964 * list: Commands.
965 * pause: Commands.
966 * play: Commands.
967 * put: Commands.
968 * quit: Commands.
969 * reset: Commands.
970 * set: Commands.
971 * skip: Commands.
972 * status: Commands.
973 * stop: Commands.
974 * version: Commands.
975 * volume: Commands.
976 * wait: Commands.
955977
956978
957979 
958980 Tag Table:
959 Node: Top731
960 Node: Overview1170
961 Node: Attributes3059
962 Node: Events8728
963 Node: Event Notification9612
964 Node: Commands11672
965 Node: Connecting21105
966 Node: Timeouts22048
967 Node: Attribute Index22548
968 Node: Event Index25229
969 Node: Command Index25983
981 Node: Top824
982 Node: Overview1263
983 Node: Attributes3152
984 Node: Events8821
985 Node: Event Notification9705
986 Node: Commands11765
987 Node: Connecting21216
988 Node: Timeouts22159
989 Node: Attribute Index22659
990 Node: Event Index25389
991 Node: Command Index26156
970992 
971993 End Tag Table
99 @c %**end of header
1010
1111 @ifinfo
12
13 @dircategory Development
14 @direntry
15 * RPTP: (RPTP). The RPTP Protocol.
16 @end direntry
1217
1318 This file documents RPTP protocol.
1419
0 This is Info file librplay.info, produced by Makeinfo-1.63 from the
1 input file librplay.texi.
0 This is librplay.info, produced by makeinfo version 4.1 from
1 librplay.texi.
2
3 INFO-DIR-SECTION Development
4 START-INFO-DIR-ENTRY
5 * librplay: (librplay). The rplay library.
6 END-INFO-DIR-ENTRY
27
38 This file documents librplay.
49
657662
658663 * Menu:
659664
660 * rplay: RPLAY Core Functions.
661 * rplay_close: RPLAY Core Functions.
662 * rplay_convert: RPLAY Miscellaneous Functions.
663 * rplay_create: RPLAY Core Functions.
664 * rplay_default: RPLAY Helper Functions.
665 * rplay_default_host: RPLAY Helper Functions.
666 * rplay_destroy: RPLAY Core Functions.
667 * rplay_display: RPLAY Helper Functions.
668 * rplay_get: RPLAY Core Functions.
669 * rplay_host: RPLAY Helper Functions.
670 * rplay_host_volume: RPLAY Helper Functions.
671 * rplay_local: RPLAY Helper Functions.
672 * rplay_open: RPLAY Core Functions.
673 * rplay_open_default: RPLAY Helper Functions.
674 * rplay_open_display: RPLAY Helper Functions.
675 * rplay_open_port: RPLAY Helper Functions.
676 * rplay_open_sockaddr_in: RPLAY Helper Functions.
677 * rplay_pack: RPLAY Miscellaneous Functions.
678 * rplay_perror: RPLAY Error Reporting.
679 * rplay_ping: RPLAY Helper Functions.
680 * rplay_ping_sockaddr_in: RPLAY Helper Functions.
681 * rplay_ping_sockfd: RPLAY Helper Functions.
682 * rplay_set: RPLAY Core Functions.
683 * rplay_sound: RPLAY Helper Functions.
684 * rplay_unpack: RPLAY Miscellaneous Functions.
685 * rptp_close: RPTP Core Functions.
686 * rptp_command: RPTP Helper Functions.
687 * rptp_getline: RPTP Helper Functions.
688 * rptp_open: RPTP Core Functions.
689 * rptp_parse: RPTP Helper Functions.
690 * rptp_perror: RPTP Error Reporting.
691 * rptp_putline: RPTP Helper Functions.
692 * rptp_read: RPTP Core Functions.
693 * rptp_write: RPTP Core Functions.
665 * rplay: RPLAY Core Functions.
666 * rplay_close: RPLAY Core Functions.
667 * rplay_convert: RPLAY Miscellaneous Functions.
668 * rplay_create: RPLAY Core Functions.
669 * rplay_default: RPLAY Helper Functions.
670 * rplay_default_host: RPLAY Helper Functions.
671 * rplay_destroy: RPLAY Core Functions.
672 * rplay_display: RPLAY Helper Functions.
673 * rplay_get: RPLAY Core Functions.
674 * rplay_host: RPLAY Helper Functions.
675 * rplay_host_volume: RPLAY Helper Functions.
676 * rplay_local: RPLAY Helper Functions.
677 * rplay_open: RPLAY Core Functions.
678 * rplay_open_default: RPLAY Helper Functions.
679 * rplay_open_display: RPLAY Helper Functions.
680 * rplay_open_port: RPLAY Helper Functions.
681 * rplay_open_sockaddr_in: RPLAY Helper Functions.
682 * rplay_pack: RPLAY Miscellaneous Functions.
683 * rplay_perror: RPLAY Error Reporting.
684 * rplay_ping: RPLAY Helper Functions.
685 * rplay_ping_sockaddr_in: RPLAY Helper Functions.
686 * rplay_ping_sockfd: RPLAY Helper Functions.
687 * rplay_set: RPLAY Core Functions.
688 * rplay_sound: RPLAY Helper Functions.
689 * rplay_unpack: RPLAY Miscellaneous Functions.
690 * rptp_close: RPTP Core Functions.
691 * rptp_command: RPTP Helper Functions.
692 * rptp_getline: RPTP Helper Functions.
693 * rptp_open: RPTP Core Functions.
694 * rptp_parse: RPTP Helper Functions.
695 * rptp_perror: RPTP Error Reporting.
696 * rptp_putline: RPTP Helper Functions.
697 * rptp_read: RPTP Core Functions.
698 * rptp_write: RPTP Core Functions.
694699
695700
696701 
697702 Tag Table:
698 Node: Top734
699 Node: RPLAY Core Functions1886
700 Node: RPLAY Helper Functions7013
701 Node: RPLAY Miscellaneous Functions12728
702 Node: RPLAY Error Reporting13892
703 Node: RPTP Core Functions14398
704 Node: RPTP Helper Functions16308
705 Node: RPTP Error Reporting19628
706 Node: Function Index20113
703 Node: Top835
704 Node: RPLAY Core Functions1987
705 Node: RPLAY Helper Functions7114
706 Node: RPLAY Miscellaneous Functions12829
707 Node: RPLAY Error Reporting13993
708 Node: RPTP Core Functions14499
709 Node: RPTP Helper Functions16409
710 Node: RPTP Error Reporting19729
711 Node: Function Index20214
707712 
708713 End Tag Table
88 @c %**end of header
99
1010 @ifinfo
11
12 @dircategory Development
13 @direntry
14 * librplay: (librplay). The rplay library.
15 @end direntry
1116
1217 This file documents librplay.
1318
0 This is Info file rplay.info, produced by Makeinfo version 1.67 from
1 the input file rplay.texi.
0 This is rplay.info, produced by makeinfo version 4.1 from rplay.texi.
1
2 INFO-DIR-SECTION Development
3 START-INFO-DIR-ENTRY
4 * rplay: (rplay). The rplay Network Audio System
5 END-INFO-DIR-ENTRY
26
37 This file documents the rplay Network Audio System.
48
155159
156160 
157161 Tag Table:
158 Node: Top761
159 Node: Overview1247
160 Node: rplayd2983
161 Node: rplay4640
162 Node: rptp5094
163 Node: xrplay5413
162 Node: Top860
163 Node: Overview1346
164 Node: rplayd3082
165 Node: rplay4739
166 Node: rptp5193
167 Node: xrplay5512
164168 
165169 End Tag Table
88 @c %**end of header
99
1010 @ifinfo
11
12 @dircategory Development
13 @direntry
14 * rplay: (rplay). The rplay Network Audio System
15 @end direntry
1116
1217 This file documents the rplay Network Audio System.
1318
0 .TH RPLAYDSP 1 2000/05/02
1 .SH NAME
2 rplaydsp \- intercept data bound for /dev/dsp and route it to rplayd
3 .SH SYNOPSIS
4 .B rplaydsp command [command arguments]
5 .SH DESCRIPTION
6 rplaydsp allows sound tools to interact with rplayd without having been
7 coded to do so. Any program that writes data to /dev/dsp should work with
8 rplaydsp.
9
10 The following environment variables can be used to modify the default
11 behavior of rplaydsp.
12
13 RPLAY_HOST: By default, rplaydsp talks to the local rplayd. If you need
14 the output to go somewhere else, then set RPLAY_HOST to the remote
15 hostname or ip address.
16
17 DEVRPLAY_SOUND: Sounds can be named under rplayd, the default name used by
18 rplaydsp is 'devrplay'. Use this variable to control the name of the
19 sound.
20
21 DEVRPLAY_INFO: If your sound isn't the "standard" wav format and speed,
22 you can set this variable so that rplayd grok the sound. An example value
23 for a .au file is:
24 input-info=ulinear8,8000,1,1,little-endian
25
26 DEVRPLAY_OPTS: Set this variable to pass a generic set of RPTP options to
27 rplayd.
28
29 .SH EXAMPLES
30 rplaydsp realplayer http://www.example.com/foo.ram
31 .SH SEE ALSO
32 .IR rplayd (8),
33 .IR rplay (1)
22 # <regex> <audio-format> <application>
33 #
44 ## MPEG
5 \.mp[1-3]$ linear16,44100,16,2,little-endian /usr/bin/mpg123 --stdout --quiet --rate 44100 --stereo -
5 \.mp[1-3]$ linear16,44100,16,2,little-endian /usr/bin/mpg123 --stdout --quiet --rate 44100 --stereo -
66
7 ## MODS
8 #\.\(669\|alm\|amd\|far\|mod\|mtm\|okt\|ptm\|rad\|s3m\|stm\|wow\|xm\)$ linear16,44100,16,2,little-endian /usr/local/bin/xmp --stereo --little-endian -b 16 -f 44100 --stdout --nocmd /dev/fd/0
7 \.ogg$ linear16,44100,16,2,little-endian /usr/bin/ogg123 -q -d raw -o byteorder:little -f - /dev/fd/0
0 # Sample rplay.hosts
1 #
2 # this file describes what machines can read from or write to this server
3 # *:rwx
4 # would allow anyone to read or write to this server.
0 # default rplay.hosts
1 # see the rplay.hosts(5) for details on the format and meaning of this
2 # file
3
4 # give the localhost the default permissions
5 localhost
+0
-68
gsm/Makefile less more
0 # Generated automatically from Makefile.in by configure.
1 include /opt/home/lmoore/rplay/rplay-3.3.2/Makefile.config
2
3 srcdir = .
4
5 INSTALL = /usr/bin/install -c
6 INSTALL_PROGRAM = ${INSTALL}
7 INSTALL_DATA = ${INSTALL} -m 644
8
9 SASR = -DSASR
10 MULHACK = -DUSE_FLOAT_MUL
11 FAST = -DFAST
12 #LTP_CUT = -DLTP_CUT
13 LTP_CUT =
14
15 CPPFLAGS= $(CC_OPTIONS) -I. -I../include -I. -I./../include -I./../lib -DHAVE_CONFIG_H
16
17 .c.o:
18 $(CC) -c $(CPPFLAGS) $(SASR) $(DEBUG) $(MULHACK) $(FAST) $(LTP_CUT) $(CFLAGS) $<
19
20 LDFLAGS= $(LD_OPTIONS) -L. -lgsm
21
22 TARGET= libgsm.a
23
24 SRCS= add.c code.c debug.c decode.c gsm_create.c gsm_decode.c \
25 gsm_destroy.c gsm_encode.c gsm_explode.c gsm_implode.c gsm_option.c \
26 gsm_print.c long_term.c lpc.c preprocess.c rpe.c short_term.c table.c
27
28 OBJS= add.o code.o debug.o decode.o gsm_create.o gsm_decode.o \
29 gsm_destroy.o gsm_encode.o gsm_explode.o gsm_implode.o gsm_option.o \
30 gsm_print.o long_term.o lpc.o preprocess.o rpe.o short_term.o table.o
31
32 TOAST= toast
33 TOAST_SRCS= toast.c toast_alaw.c toast_audio.c toast_lin.c toast_ulaw.c
34
35 TOAST_OBJS= toast.o toast_alaw.o toast_audio.o toast_lin.o toast_ulaw.o
36
37
38 all: $(TARGET) $(TOAST)
39
40 $(TARGET): $(OBJS)
41 $(AR) rcv $@ $?
42 $(RANLIB) $@
43
44 $(TOAST): $(TARGET) $(TOAST_OBJS)
45 $(CC) -o $@ $(TOAST_OBJS) $(LDFLAGS)
46
47 install:
48
49 uninstall:
50
51 clean:
52 $(RM) $(OBJS) $(TARGET) $(TOAST_OBJS) $(TOAST) a.out core *~ *.bak *.orig TAGS
53
54 distclean: clean
55 $(RM) Makefile
56
57 tags:
58 $(TAGS) *.[ch]
59
60 TAGS: tags
61
62 etags: tags
63
64 depend:
65 $(MAKEDEPEND) -- $(CPPFLAGS) $(CFLAGS) -- $(SRCS)
66
67
3939 /*
4040 * Use host authentication.
4141 */
42 #define AUTH
42 #define AUTH
4343
4444 /*
4545 * Support rplay 2.0 packets. If you define this then you
7474 * 1 - System and rplayd errors.
7575 * 2 - + RPTP connections, get, put, find.
7676 * 3 - + play, stop, pause, continue, etc.
77 * 4 - + Debug messages.
77 * 4 - + Debug messages.
7878 *
7979 * Note that the logging level can also be specified with
8080 * rplayd command line options. This is only used if
191191 #undef HAVE_LIBREADLINE
192192 #undef HAVE_RANDOM
193193 #undef HAVE_SRANDOM
194 #undef HAVE_REGCOMP
194195
195196 #undef HAVE_STDC_HEADERS
196197 #undef HAVE_MEMORY_H
206207
207208 #undef HAVE_GSM_H
208209 #undef HAVE_GSM_GSM_H
210 #undef HAVE_REGEX_H
209211 #undef HAVE_RXPOSIX_H
210212 #undef HAVE_RX_RXPOSIX_H
211213
4343 my ($that_host, $that_port) = @_;
4444 my ($pat, $name, $aliases, $proto, $port, $udp);
4545 my (@bytes, $addrtype, $length, $old);
46 my ($that, $that_addr, $that_addr);
47 my ($this, $this_addr, $this_addr);
46 my ($that, $that_addr);
47 my ($this, $this_addr);
4848
4949 $sockaddr = 'S n a4 x8';
5050
4141
4242 #define OPTIONS "+spcN:P:h:rv:n:R:b:i:"
4343
44 /* Make sure MAXPATHLEN is defined. */
45 #ifndef MAXPATHLEN
46 #define MAXPATHLEN 4096
47 #endif
48
4449 struct option longopts[] =
4550 {
4651 {"continue", no_argument, NULL, 'c'},
2424 $(CC) -c $(CPPFLAGS) $(CFLAGS) $<
2525
2626 LDFLAGS= $(LD_OPTIONS) -L../librplay -lrplay -L../lib -lrp \
27 -L../adpcm -ladpcm @GSM_LIBS@ -L../rx -lrx @LDFLAGS@ @LIBS@ -lm
27 -L../adpcm -ladpcm @GSM_LIBS@ @RX_LIBS@ @LDFLAGS@ @LIBS@ -lm
2828
2929 TARGET= rplayd
3030
5353 install: all
5454 $(MKINSTALLDIRS) $(sbindir)
5555 $(INSTALL_PROGRAM) $(TARGET) $(sbindir)/$(TARGET)
56 @test -x $(bindir)/$(TARGET) && echo "" && echo " Note: Consider removing $(bindir)/$(TARGET)" && echo ""
56 @(test -x $(bindir)/$(TARGET) && echo "" && echo " Note: Consider removing $(bindir)/$(TARGET)" && echo "") || true
5757
5858 uninstall:
5959 $(RM) $(bindir)/$(TARGET)
0 /* $Id: audio_generic.c,v 1.5 1999/03/10 07:58:10 boyns Exp $ */
1
2 /*
3 * Copyright (C) 1993-99 Mark R. Boyns <boyns@doit.org>
4 *
5 * This file is part of rplay.
6 *
7 * rplay is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * rplay is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with rplay; see the file COPYING. If not, write to the
19 * Free Software Foundation, Inc.,
20 * 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
21 */
22
23
24
25 #include "rplayd.h"
26
27 /*
28 * System audio include files:
29 */
30 #include <sys/types.h>
31 #include <sys/file.h>
32 #include <sys/ioctl.h>
33 #ifdef ultrix
34 #include <fcntl.h>
35 #else
36 #include <sys/fcntl.h>
37 #endif
38 #include <sys/errno.h>
39
40 /*
41 * External variables:
42 */
43 extern char *rplay_audio_device;
44 extern int rplay_audio_sample_rate;
45 extern int rplay_audio_channels;
46 extern int rplay_audio_precision;
47 extern int rplay_audio_format;
48 extern int rplay_audio_port;
49 extern int optional_sample_rate;
50 extern int optional_precision;
51 extern int optional_channels;
52 extern int optional_format;
53 extern int optional_port;
54
55 /*
56 * Internal variables:
57 */
58 static int rplay_audio_fd = -1;
59
60 static RPLAY_AUDIO_TABLE generic_table[] =
61 {
62 {8000, RPLAY_FORMAT_ULAW, 1, 1},
63 {0, 0, 0, 0}
64 };
65
66 /*
67 * Initialize the audio device.
68 * This routine must set the following external variables:
69 * rplay_audio_sample_rate
70 * rplay_audio_precision
71 * rplay_audio_channels
72 * rplay_audio_format
73 * rplay_audio_port
74 *
75 * and may use the following optional parameters:
76 * optional_sample_rate
77 * optional_precision
78 * optional_channels
79 * optional_format
80 * optional_port
81 *
82 * optional_* variables with values of zero should be ignored.
83 *
84 * Return 0 on success and -1 on error.
85 */
86 int
87 rplay_audio_init()
88 {
89 if (rplay_audio_fd == -1)
90 {
91 rplay_audio_open();
92 if (rplay_audio_fd == -1)
93 {
94 report(REPORT_ERROR, "rplay_audio_init: cannot open %s\n",
95 rplay_audio_device);
96 return -1;
97 }
98 }
99
100 rplay_audio_sample_rate = 8000;
101 rplay_audio_precision = 8;
102 rplay_audio_channels = 1;
103 rplay_audio_format = RPLAY_FORMAT_ULAW;
104 rplay_audio_port = RPLAY_AUDIO_PORT_SPEAKER;
105 rplay_audio_table = generic_table;
106
107 return 0;
108 }
109
110 /*
111 * Open the audio device.
112 *
113 * Return 0 on success and -1 on error.
114 */
115 int
116 rplay_audio_open()
117 {
118 int flags;
119
120 rplay_audio_fd = open(rplay_audio_device, O_WRONLY | O_NDELAY, 0);
121 if (rplay_audio_fd < 0)
122 {
123 return -1;
124 }
125
126 if (fcntl(rplay_audio_fd, F_SETFD, 1) < 0)
127 {
128 report(REPORT_ERROR,
129 "rplay_audio_open: close-on-exec %d\n",
130 sys_err_str(errno));
131 /* return -1; */
132 }
133
134 if (rplay_audio_init() < 0)
135 {
136 return -1;
137 }
138
139 /*
140 * Make sure the audio device writes are non-blocking.
141 */
142 flags = fcntl(rplay_audio_fd, F_GETFL, 0);
143 if (flags < 0)
144 {
145 return -1;
146 }
147 flags |= FNDELAY;
148 if (fcntl(rplay_audio_fd, F_SETFL, flags) < 0)
149 {
150 return -1;
151 }
152
153 return 0;
154 }
155
156 /*
157 * Is the audio device open?
158 *
159 * Return 1 for true and 0 for false.
160 */
161 int
162 rplay_audio_isopen()
163 {
164 return rplay_audio_fd != -1;
165 }
166
167 /*
168 * Flush the audio device.
169 *
170 * Return 0 on success and -1 on error.
171 */
172 int
173 rplay_audio_flush()
174 {
175 return 0;
176 }
177
178 /*
179 * Write nbytes from buf to the audio device.
180 *
181 * Return the number of bytes written on success and -1 on error.
182 */
183 #ifdef __STDC__
184 int
185 rplay_audio_write(char *buf, int nbytes)
186 #else
187 int
188 rplay_audio_write(buf, nbytes)
189 char *buf;
190 int nbytes;
191 #endif
192 {
193 int n, nleft, nwritten;
194 char *p;
195
196 nleft = nbytes;
197 nwritten = 0;
198
199 for (p = buf; nleft > 0; nleft -= n, p += n)
200 {
201 n = write(rplay_audio_fd, p, nleft);
202 if (n < 0)
203 {
204 if (errno == EWOULDBLOCK)
205 {
206 return nwritten;
207 }
208 else if (errno != EINTR)
209 {
210 return -1;
211 }
212 n = 0;
213 }
214 else
215 {
216 nwritten += n;
217 }
218 }
219
220 return nwritten;
221 }
222
223 /*
224 * Close the audio device.
225 *
226 * Return 0 on success and -1 on error.
227 */
228 int
229 rplay_audio_close()
230 {
231 if (rplay_audio_fd != -1)
232 {
233 close(rplay_audio_fd);
234 }
235
236 rplay_audio_fd = -1;
237
238 return 0;
239 }
240
241 /*
242 * Return the volume of the audio device.
243 *
244 * Return 0-255 or -1 on error.
245 */
246 int
247 rplay_audio_get_volume()
248 {
249 #ifdef FAKE_VOLUME
250 return rplay_audio_volume;
251 #else /* not FAKE_VOLUME */
252 return -1;
253 #endif /* not FAKE_VOLUME */
254 }
255
256 /*
257 * Set the volume of the audio device.
258 * Input should be 0-255.
259 *
260 * Return the volume of the audio device 0-255 or -1.
261 */
262 #ifdef __STDC__
263 int
264 rplay_audio_set_volume(int volume)
265 #else
266 int
267 rplay_audio_set_volume(volume)
268 int volume;
269 #endif
270 {
271 #ifdef FAKE_VOLUME
272 if (volume < RPLAY_MIN_VOLUME)
273 {
274 volume = RPLAY_MIN_VOLUME;
275 }
276 else if (volume > RPLAY_MAX_VOLUME)
277 {
278 volume = RPLAY_MAX_VOLUME;
279 }
280 rplay_audio_volume = volume;
281
282 return rplay_audio_volume;
283 #else /* not FAKE_VOLUME */
284 return -1;
285 #endif /* not FAKE_VOLUME */
286 }
0 /* $Id: audio_generic.h,v 1.3 1999/03/10 07:58:10 boyns Exp $ */
1
2 /*
3 * Copyright (C) 1993-99 Mark R. Boyns <boyns@doit.org>
4 *
5 * This file is part of rplay.
6 *
7 * rplay is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * rplay is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with rplay; see the file COPYING. If not, write to the
19 * Free Software Foundation, Inc.,
20 * 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
21 */
22
23
24
25 #ifndef _audio_generic_h
26 #define _audio_generic_h
27
28 #include "rplay.h"
29
30 #define RPLAY_AUDIO_DEVICE "/dev/audio"
31 #define RPLAY_AUDIO_TIMEOUT 5
32 #define RPLAY_AUDIO_FLUSH_TIMEOUT -1
33 #define RPLAY_AUDIO_RATE 10
34 #define RPLAY_AUDIO_BYTE_ORDER RPLAY_BIG_ENDIAN
35
36 #endif /* _audio_generic_h */
4545 #include "sound.h"
4646 #include "spool.h"
4747 #include "cache.h"
48
49 /* Make sure MAXPATHLEN is defined. */
50 #ifndef MAXPATHLEN
51 #define MAXPATHLEN 4096
52 #endif
4853
4954 static DIR *cache_dir;
5055 static char cache_path[MAXPATHLEN];
4242 #include "helper.h"
4343 #include "misc.h"
4444
45 /* Make sure MAXPATHLEN is defined. */
46 #ifndef MAXPATHLEN
47 #define MAXPATHLEN 4096
48 #endif
49
4550 HELPER *helpers = NULL;
4651 static time_t helper_read_time;
4752
109114 done(1);
110115 }
111116 //memset ((char *) &hp->pattern, 0, sizeof (hp->pattern));
112 error = regncomp(&hp->pattern, pat, strlen(pat), REG_ICASE | REG_NOSUB);
117 error = regcomp(&hp->pattern, pat, REG_ICASE | REG_NOSUB);
113118 if (error)
114119 {
115120 report(REPORT_ERROR, "helper_read: %d line %d\n", error, line);
187192
188193 for (hp = helpers; hp; hp = hp->next)
189194 {
190 if (regnexec(&hp->pattern, sound, strlen(sound), 0, 0, 0) == 0)
195 if (regexec(&hp->pattern, sound, 0, 0, 0) == 0)
191196 {
192197 return hp;
193198 }
2525
2626 #ifdef HAVE_HELPERS
2727
28 #ifdef HAVE_REGEX_H
29 #include <regex.h>
30 #else
2831 #ifdef HAVE_RX_RXPOSIX_H
2932 #include <rx/rxposix.h>
3033 #else
3235 #include <rxposix.h>
3336 #else
3437 #include "rxposix.h"
38 #endif
3539 #endif
3640 #endif
3741
3232 #include "host.h"
3333 #include "buffer.h"
3434 #include "misc.h"
35 #ifdef HAVE_REGEX_H
36 #include <regex.h>
37 #else
3538 #ifdef HAVE_RX_RXPOSIX_H
3639 #include <rx/rxposix.h>
3740 #else
3942 #include <rxposix.h>
4043 #else
4144 #include "rxposix.h"
45 #endif
4246 #endif
4347 #endif
4448
196200 }
197201 strcat(expr_monitor, "$");
198202
199 error = regncomp(&access_read, expr_read, strlen(expr_read),
200 REG_ICASE | REG_NOSUB);
203 error = regcomp(&access_read, expr_read, REG_ICASE | REG_NOSUB);
201204 if (error)
202205 {
203 report(REPORT_ERROR, "host_read: regncomp: %d\n", error);
206 report(REPORT_ERROR, "host_read: regcomp: %d\n", error);
204207 done(1);
205208 }
206209
207 error = regncomp(&access_write, expr_write, strlen(expr_write),
208 REG_ICASE | REG_NOSUB);
210 error = regcomp(&access_write, expr_write, REG_ICASE | REG_NOSUB);
209211 if (error)
210212 {
211 report(REPORT_ERROR, "host_read: regncomp: %d\n", error);
213 report(REPORT_ERROR, "host_read: regcomp: %d\n", error);
212214 done(1);
213215 }
214216
215 error = regncomp(&access_execute, expr_execute, strlen(expr_execute),
216 REG_ICASE | REG_NOSUB);
217 error = regcomp(&access_execute, expr_execute, REG_ICASE | REG_NOSUB);
217218 if (error)
218219 {
219 report(REPORT_ERROR, "host_read: regncomp: %d\n", error);
220 report(REPORT_ERROR, "host_read: regcomp: %d\n", error);
220221 done(1);
221222 }
222223
223 error = regncomp(&access_monitor, expr_monitor, strlen(expr_monitor),
224 REG_ICASE | REG_NOSUB);
224 error = regcomp(&access_monitor, expr_monitor, REG_ICASE | REG_NOSUB);
225225 if (error)
226226 {
227 report(REPORT_ERROR, "host_read: regncomp: %d\n", error);
227 report(REPORT_ERROR, "host_read: regcomp: %d\n", error);
228228 done(1);
229229 }
230230 }
431431 done(1);
432432 }
433433
434 n = regnexec(re, p, strlen(p), 0, 0, 0);
434 n = regexec(re, p, 0, 0, 0);
435435
436436 return !n;
437437 }
332332
333333 progname = argv[0];
334334
335 /* no need to keep stdin around */
336 close(0);
337
335338 servers_file = tilde_expand(RPLAY_SERVERS);
336339 #ifdef HAVE_HELPERS
337340 helpers_file = tilde_expand(RPLAY_HELPERS);
14651468 char *buf = rplay_audio_buf;
14661469 int size = rplay_audio_size;
14671470 int n;
1468
1471
14691472 while (size)
14701473 {
14711474 n = MIN(BUFFER_SIZE - monitor_buffers->offset, size);
14821485 }
14831486 }
14841487 }
1485
1488
14861489 rplay_audio_size = 0;
14871490
14881491 /* Flush when the audio stream has ended. */
6363 #ifdef HAVE_HELPERS
6464 #include "helper.h"
6565 #endif /* HAVE_HELPERS */
66 #ifdef HAVE_REGEX_H
67 #include <regex.h>
68 #else
6669 #ifdef HAVE_RX_RXPOSIX_H
6770 #include <rx/rxposix.h>
6871 #else
7174 #else
7275 #include "rxposix.h"
7376 #endif
77 #endif
78 #endif
79
80 /* Make sure MAXPATHLEN is defined. */
81 #ifndef MAXPATHLEN
82 #define MAXPATHLEN 4096
7483 #endif
7584
7685 SOUND *sounds = NULL;
142151
143152 //memset ((char *) &bad_dirs, 0, sizeof (bad_dirs));
144153
145 if (regncomp(&bad_dirs, buf, strlen(buf), REG_ICASE | REG_NOSUB))
146 {
147 report(REPORT_ERROR, "bad_dirs: regncomp failed\n");
154 if (regcomp(&bad_dirs, buf, REG_ICASE | REG_NOSUB))
155 {
156 report(REPORT_ERROR, "bad_dirs: regcomp failed\n");
148157 done(1);
149158 }
150159
161170 #endif
162171 {
163172 /* return 1 if bad */
164 return regnexec(&bad_dirs, dir, strlen(dir), 0, 0, 0) ? 0 : 1;
173 return regexec(&bad_dirs, dir, 0, 0, 0) ? 0 : 1;
165174 }
166175
167176 #endif /* BAD_DIRS */
169169 int gsm_bit_frame_bytes; /* Number of bytes in gsm_bit_frame */
170170 int gsm_fixed_buffer_size;
171171 #endif /* HAVE_GSM */
172 #ifdef HAVE_CDROM
172 #if defined(HAVE_CDROM) || defined(HAVE_HELPERS)
173173 int pid;
174 #endif /* HAVE_CDROM */
174 #endif /* HAVE_CDROM || HAVE_HELPERS */
175175 }
176176 SINDEX;
177177
4242 #include "flange.h"
4343 #endif
4444
45 /* Make sure MAXPATHLEN is defined. */
46 #ifndef MAXPATHLEN
47 #define MAXPATHLEN 4096
48 #endif
49
4550 SPOOL *spool = NULL; /* List of spool entries. */
4651 int spool_size = 0; /* Number of entries in the spool. */
4752 int spool_nplaying = 0; /* Number of playing sounds. */
11261131 spool_flow_pause(sp);
11271132 }
11281133 }
1134 }
11291135 #endif /* HAVE_CDROM */
1130 }
11311136 }
11321137 else
11331138 {
2828 #include <sys/signal.h>
2929 #include <stdio.h>
3030 #include <unistd.h>
31 #include <errno.h>
3132 #include "rplayd.h"
3233 #include "timer.h"
3334
3434 #include "xhash.h"
3535 #include "hash.h"
3636 #include "rplayd.h"
37
38 /* Make sure MAXPATHLEN is defined. */
39 #ifndef MAXPATHLEN
40 #define MAXPATHLEN 4096
41 #endif
3742
3843 static struct hash_control *htable;
3944
+0
-152
rx/Makefile less more
0 # Generated automatically from Makefile.in by configure.
1 # Makefile for librx
2 # Copyright (C) 1994 Free Software Foundation, Inc.
3 #
4 # This file is part of GNU Rx
5 #
6 # GNU Rx is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2, or (at your option)
9 # any later version.
10 #
11 # GNU Rx is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
15 #
16 # You should have received a copy of the GNU General Public License
17 # along with GNU Rx; see the file COPYING.LIB. If not, write to
18 # the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19
20
21 SHELL = /bin/sh
22
23 srcdir = .
24 prefix = /usr
25 exec_prefix = ${prefix}
26 bindir = $(exec_prefix)/bin
27 libdir = $(exec_prefix)/lib
28 includedir = $(prefix)/include
29 infodir = $(prefix)/info
30
31 #### Start of system configuration section. ####
32
33 CC = gcc
34 INSTALL = /usr/bin/install -c
35 DEFS = -DSTDC_HEADERS=1
36 CFLAGS = -g -O
37 ALL_CFLAGS = -I. -I$(srcdir) -I$(srcdir)/../libsystas $(CFLAGS)
38 AR = ar
39 AR_FLAGS = rc
40 RANLIB = ranlib
41 opt_objs=
42
43 source= hashrexp.c rx.c rxanal.c rxbasic.c rxbitset.c rxcset.c rxdbug.c rxgnucomp.c rxhash.c rxnfa.c rxnode.c rxposix.c rxsimp.c rxspencer.c rxstr.c rxsuper.c rxunfa.c rgx.c
44
45 headers=_rx.h rx.h rxanal.h rxbasic.h rxbitset.h rxcontext.h rxcset.h rxgnucomp.h rxhash.h rxnfa.h rxnode.h inst-rxposix.h rxposix.h rxproto.h rxsimp.h rxspencer.h rxstr.h rxsuper.h rxunfa.h rxall.h
46
47 ancillery=configure.in Makefile.in configure \
48 COPYING.LIB ChangeLog PLUGIN \
49 ../doc/rx.texi ../doc/rx.info ../doc/texinfo.tex
50 distfiles=$(source) $(headers) $(ancillery)
51 libobjs= hashrexp.o rx.o rxanal.o rxbasic.o rxbitset.o rxcset.o rxdbug.o rxgnucomp.o rxhash.o rxnfa.o rxnode.o rxposix.o rxsimp.o rxspencer.o rxstr.o rxsuper.o rxunfa.o
52 gen_c_files=rgx.x
53
54 .SUFFIXES:
55 .SUFFIXES: .o .c .h .ps .dvi .info .texinfo .scm .cd .x
56
57 .c.x:
58 $(CC) $(ALL_CFLAGS) -DSCM_MAGIC_SNARFER -E $< | grep "^%%%" | sed -e "s/^%%%//" > $@ ; \
59
60 .c.o:
61 $(CC) -c $(ALL_CFLAGS) $(DEFS) -I$(srcdir) $<
62
63 all: librx.a
64
65 install: all
66 test -d $(libdir) || mkdir $(libdir)
67 test -d $(includedir) || mkdir $(includedir)
68 $(INSTALL) librx.a $(libdir)/librx.a
69 $(RANLIB) $(libdir)/librx.a
70 $(INSTALL) $(srcdir)/inst-rxposix.h $(includedir)/rxposix.h
71
72
73 uninstall:
74 -rm -f $(libdir)/librx.a
75 -rm -f $(includedir)/rxposix.h
76
77 clean:
78 -rm -f $(libobjs) librx.a $(opt_objs)
79
80 distclean: clean
81 -rm Makefile config.status config.log rgx.x
82
83 mostlyclean: clean
84
85 realclean: distclean
86
87 TAGS:
88 etags $(source)
89
90 info:
91
92 install-info:
93
94 clean-info:
95
96 dvi:
97
98 check:
99
100 SUBDIR=.
101 manifest:
102 for file in $(distfiles); do echo $(SUBDIR)/$$file; done
103
104 dist: $(distfiles)
105 echo rx-`sed -e '/version_string/!d' -e 's/[^0-9.]*\([0-9.]*\).*/\1/' -e q rx.c` > .fname
106 rm -rf `cat .fname`
107 mkdir `cat .fname`
108 ln $(distfiles) `cat .fname`
109 tar chzf `cat .fname`.tar.gz `cat .fname`
110 rm -rf `cat .fname` .fname
111
112
113 librx.a: $(libobjs) $(opt_objs)
114 rm -f librx.a
115 $(AR) $(AR_FLAGS) librx.a $(libobjs) $(opt_objs)
116 $(RANLIB) librx.a
117
118
119 depends:
120 touch $(gen_c_files) scmconfig.h
121 gcc -MM -I. -I../libsystas $(source)
122 rm $(gen_c_files) scmconfig.h
123 ###
124 hashrexp.o : hashrexp.c rxall.h rxnode.h rxbitset.h rxcset.h rxhash.h
125 rx.o : rx.c rx.h rxhash.h rxbitset.h rxall.h rxnfa.h _rx.h rxcset.h rxnode.h rxsuper.h
126 rxanal.o : rxanal.c rxall.h rxanal.h rxcset.h rxbitset.h rxnode.h rxsuper.h \
127 rxnfa.h _rx.h rxhash.h
128 rxbasic.o : rxbasic.c rxall.h rxbasic.h rxcontext.h rxnode.h rxbitset.h rxcset.h \
129 rxspencer.h rxproto.h rxunfa.h _rx.h rxhash.h rxanal.h rxsuper.h rxnfa.h inst-rxposix.h \
130 rxstr.h
131 rxbitset.o : rxbitset.c rxall.h rxbitset.h
132 rxcset.o : rxcset.c rxall.h rxcset.h rxbitset.h
133 rxdbug.o : rxdbug.c rxall.h rxgnucomp.h rxcset.h rxbitset.h rxnode.h rxnfa.h \
134 _rx.h rxhash.h
135 rxgnucomp.o : rxgnucomp.c rxall.h rxgnucomp.h rxcset.h rxbitset.h rxnode.h
136 rxhash.o : rxhash.c rxall.h rxhash.h rxbitset.h
137 rxnfa.o : rxnfa.c rxall.h rxnfa.h _rx.h rxhash.h rxbitset.h rxcset.h rxnode.h
138 rxnode.o : rxnode.c rxall.h rxnode.h rxbitset.h rxcset.h
139 rxposix.o : rxposix.c rxall.h rxposix.h rxspencer.h rxproto.h rxnode.h rxbitset.h \
140 rxcset.h rxunfa.h _rx.h rxhash.h rxanal.h rxsuper.h rxnfa.h inst-rxposix.h rxcontext.h \
141 rxgnucomp.h rxbasic.h rxsimp.h
142 rxsimp.o : rxsimp.c rxall.h rxsimp.h rxcset.h rxbitset.h rxnode.h
143 rxspencer.o : rxspencer.c rxall.h rxspencer.h rxproto.h rxnode.h rxbitset.h \
144 rxcset.h rxunfa.h _rx.h rxhash.h rxanal.h rxsuper.h rxnfa.h inst-rxposix.h
145 rxstr.o : rxstr.c rxall.h rxstr.h rxspencer.h rxproto.h rxnode.h rxbitset.h \
146 rxcset.h rxunfa.h _rx.h rxhash.h rxanal.h rxsuper.h rxnfa.h inst-rxposix.h rxcontext.h
147 rxsuper.o : rxsuper.c rxall.h rxsuper.h rxnfa.h _rx.h rxhash.h rxbitset.h rxcset.h \
148 rxnode.h
149 rxunfa.o : rxunfa.c rxall.h rx.h rxhash.h rxbitset.h rxunfa.h _rx.h rxcset.h \
150 rxnfa.h rxnode.h
151 rgx.o : rgx.c rgx.x
+0
-4
rx/config.log less more
0 This file contains any messages produced by compilers while
1 running configure, to aid debugging if configure makes a mistake.
2
3 configure:890: gcc -o conftest -g -O conftest.c 1>&5
+0
-125
rx/config.status less more
0 #! /bin/sh
1 # Generated automatically by configure.
2 # Run this file to recreate the current configuration.
3 # This directory was configured as follows,
4 # on host scooter:
5 #
6 # ./configure --prefix=/usr --sysconfdir=/etc/rplay --without-x --enable-rplayd-user=nobody --enable-rplayd-group=audio --cache-file=.././config.cache --srcdir=.
7 #
8 # Compiler output produced by configure, useful for debugging
9 # configure, is in ./config.log if it exists.
10
11 ac_cs_usage="Usage: ./config.status [--recheck] [--version] [--help]"
12 for ac_option
13 do
14 case "$ac_option" in
15 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16 echo "running ${CONFIG_SHELL-/bin/sh} ./configure --prefix=/usr --sysconfdir=/etc/rplay --without-x --enable-rplayd-user=nobody --enable-rplayd-group=audio --cache-file=.././config.cache --srcdir=. --no-create --no-recursion"
17 exec ${CONFIG_SHELL-/bin/sh} ./configure --prefix=/usr --sysconfdir=/etc/rplay --without-x --enable-rplayd-user=nobody --enable-rplayd-group=audio --cache-file=.././config.cache --srcdir=. --no-create --no-recursion ;;
18 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
19 echo "./config.status generated by autoconf version 2.10"
20 exit 0 ;;
21 -help | --help | --hel | --he | --h)
22 echo "$ac_cs_usage"; exit 0 ;;
23 *) echo "$ac_cs_usage"; exit 1 ;;
24 esac
25 done
26
27 ac_given_srcdir=.
28 ac_given_INSTALL="/usr/bin/install -c"
29
30 trap 'rm -fr Makefile conftest*; exit 1' 1 2 15
31
32 # Protect against being on the right side of a sed subst in config.status.
33 sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\&%]/\\&/g;
34 s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
35 /^[ ]*VPATH[ ]*=[^:]*$/d
36
37 s%@CFLAGS@%-g -O%g
38 s%@CPPFLAGS@%%g
39 s%@CXXFLAGS@%%g
40 s%@DEFS@% -DSTDC_HEADERS=1 %g
41 s%@LDFLAGS@%%g
42 s%@LIBS@%%g
43 s%@exec_prefix@%${prefix}%g
44 s%@prefix@%/usr%g
45 s%@program_transform_name@%s,x,x,%g
46 s%@bindir@%${exec_prefix}/bin%g
47 s%@sbindir@%${exec_prefix}/sbin%g
48 s%@libexecdir@%${exec_prefix}/libexec%g
49 s%@datadir@%${prefix}/share%g
50 s%@sysconfdir@%/etc/rplay%g
51 s%@sharedstatedir@%${prefix}/com%g
52 s%@localstatedir@%${prefix}/var%g
53 s%@libdir@%${exec_prefix}/lib%g
54 s%@includedir@%${prefix}/include%g
55 s%@oldincludedir@%/usr/include%g
56 s%@infodir@%${prefix}/info%g
57 s%@mandir@%${prefix}/man%g
58 s%@CC@%gcc%g
59 s%@CPP@%gcc -E%g
60 s%@RANLIB@%ranlib%g
61 s%@INSTALL_PROGRAM@%${INSTALL}%g
62 s%@INSTALL_DATA@%${INSTALL} -m 644%g
63 s%@opt_objs@%%g
64 s%@opt_cflags@%%g
65
66 CEOF
67
68 CONFIG_FILES=${CONFIG_FILES-"Makefile"}
69 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
70 # Support "outfile[:infile]", defaulting infile="outfile.in".
71 case "$ac_file" in
72 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
73 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
74 *) ac_file_in="${ac_file}.in" ;;
75 esac
76
77 # Adjust relative srcdir, etc. for subdirectories.
78
79 # Remove last slash and all that follows it. Not all systems have dirname.
80 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
81 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
82 # The file is in a subdirectory.
83 test ! -d "$ac_dir" && mkdir "$ac_dir"
84 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
85 # A "../" for each directory in $ac_dir_suffix.
86 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
87 else
88 ac_dir_suffix= ac_dots=
89 fi
90
91 case "$ac_given_srcdir" in
92 .) srcdir=.
93 if test -z "$ac_dots"; then top_srcdir=.
94 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
95 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
96 *) # Relative path.
97 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
98 top_srcdir="$ac_dots$ac_given_srcdir" ;;
99 esac
100
101 case "$ac_given_INSTALL" in
102 [/$]*) INSTALL="$ac_given_INSTALL" ;;
103 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
104 esac
105 echo creating "$ac_file"
106 rm -f "$ac_file"
107 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
108 case "$ac_file" in
109 *Makefile*) ac_comsub="1i\\
110 # $configure_input" ;;
111 *) ac_comsub= ;;
112 esac
113 sed -e "$ac_comsub
114 s%@configure_input@%$configure_input%g
115 s%@srcdir@%$srcdir%g
116 s%@top_srcdir@%$top_srcdir%g
117 s%@INSTALL@%$INSTALL%g
118 " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
119 fi; done
120 rm -f conftest.subs
121
122
123
124 exit 0