Changeset 2989

Show
Ignore:
Timestamp:
12/03/99 12:45:55 (14 years ago)
Author:
ucacoxh
Message:

XXX DO NOT UPDATE YET XXX

- Moved all configure substitutions to top of makefile.
- Now compiles ui and controller (not media).

XXX DO NOT UPDATE YET XXX

Location:
rat/trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • rat/trunk/Makefile.in

    r2988 r2989  
    33# 
    44 
    5 CFLAGS  = @WFLAGS@ @DEBUG@ @CHAR@ @PROFILE@ @OPTIMIZE@ @CHECK_FLAG@ @DEFS@ -D@OSTYPE@ -DSASR -DFAST -DUSE_FLOAT_MUL @X_CFLAGS@ 
    6 INCLUDE = @INCLUDE@ @AU_INC@ @TCL_INC@ @TK_INC@ @COMMON_INC@ 
     5# Configure substitutes variables here... ##################################### 
     6 
     7DEFS    = @DEFS@ 
     8CFLAGS  = @CFLAGS@ @X_CFLAGS@ $(DEFS) 
     9LIBS    = @LIBS@ @MATHLIBS@ 
     10LDLIBS  =  
     11INCLUDE = @AU_INC@ @TCL_INC@ @TK_INC@ @COMMON_INC@ 
    712CC      = @CC@ 
    8 AR      = @AR@ 
     13AR      = ar 
    914RANLIB  = @RANLIB@ 
    10 RATVER  = rat-@VERSION@ 
    1115ECHO   ?= echo 
    1216 
    13 AUDIO_OBJS   = @AU_OBJ@ auddev.o auddev_null.o audio_fmt.o audio_util.o auddev_trans.o 
     17VERSION = @VERSION@ 
     18OSTYPE  = @OSTYPE@ 
     19RATVER  = rat-$(VERSION) 
     20 
     21AU_OBJ  = @AU_OBJ@ 
     22AU_INC  = @AU_INC@ 
     23AU_LIB  = @AU_LIB@ 
     24 
     25TCL_LIB    = @TCL_LIB@ 
     26TK_LIB     = @TK_LIB@ 
     27X_LIB      = @X_PRE_LIBS@ @X_LIBS@ -lX11 -lXext @X_EXTRA_LIBS@    
     28COMMON_LIB = @COMMON_LIB@ 
     29EXTRA_OBJ  = @EXTRA_OBJ@ 
     30 
     31# Nothing below here set by configure ######################################### 
     32 
     33AUDIO_OBJS   = $(AU_OBJ) auddev.o auddev_null.o audio_fmt.o audio_util.o auddev_trans.o 
    1434CODEC_OBJS   = codec.o codec_state.o codec_dvi.o codec_gsm.o \ 
    1535               codec_l16.o codec_g711.o codec_g726.o codec_lpc.o \ 
     
    2949               parameters.o timers.o transmit.o playout_calc.o \ 
    3050               transcoder.o ui.o rtp_callback.o settings.o \ 
    31                pdb.o pktbuf.o @EXTRA_OBJ@ 
     51               pdb.o pktbuf.o $(EXTRA_OBJ) 
    3252 
    3353UI_OBJS      = tcltk.o mbus_ui.o main_ui.o 
     
    4060ALL_SRCS     = $(ALL_OBJS:%.o=%.c) 
    4161 
    42 all: version.h sdr2.plugin.S02.audio.rtp.-.rat-@VERSION@ rat-@VERSION@.spec $(RATVER) $(RATVER)-ui $(RATVER)-media 
     62all: version.h sdr2.plugin.S02.audio.rtp.-.rat-$(VERSION) rat-$(VERSION).spec $(RATVER) $(RATVER)-ui $(RATVER)-media 
    4363 
    4464libuclaudio.a: $(AUDIO_OBJS) 
     
    5575 
    5676$(RATVER)-media: $(CHANNEL_OBJS) $(TOY_OBJS) $(CORE_OBJS) $(MEDIALIBS) main_engine.o ../common/libcommon.a 
    57         $(CC) $(CFLAGS) $(CHANNEL_OBJS) $(TOY_OBJS) $(CORE_OBJS) $(MEDIALIBS) main_engine.o @COMMON_LIB@ @LDLIBS@ @CHECK_LIB@ -o $(RATVER)-media 
     77        $(CC) $(CFLAGS) $(CHANNEL_OBJS) $(TOY_OBJS) $(CORE_OBJS) $(MEDIALIBS) main_engine.o $(COMMON_LIB) $(LDLIBS) $(AU_LIB) -o $(RATVER)-media 
    5878 
    5979$(RATVER)-ui: $(TCL_OBJS) $(UI_OBJS) 
    60         $(CC) $(CFLAGS) $(TCL_OBJS) $(UI_OBJS) @COMMON_LIB@ @LDLIBS@ @TCL_LIB@ @TK_LIB@ @CHECK_LIB@ -o $(RATVER)-ui  
     80        $(CC) $(CFLAGS) $(TCL_OBJS) $(UI_OBJS) $(COMMON_LIB) $(X_LIB)  $(TCL_LIB) $(TK_LIB) $(LIBS) -o $(RATVER)-ui  
    6181 
    6282$(RATVER): $(CTRL_OBJS) 
    63         $(CC) $(CFLAGS) $(CTRL_OBJS) @COMMON_LIB@ @LDLIBS@ @CHECK_LIB@ -o $(RATVER) 
     83        $(CC) $(CFLAGS) $(CTRL_OBJS) $(COMMON_LIB) $(LDLIBS) -o $(RATVER) 
    6484 
    6585.c.o: 
     
    7999version.h: VERSION 
    80100        @${ECHO} "Generating version.h" 
    81         @sed -e 's/.*/#define RAT_VERSION "RAT v& @OSTYPE@"/' VERSION > version.h 
     101        @sed -e 's/.*/#define RAT_VERSION "RAT v& $(OSTYPE)"/' VERSION > version.h 
    82102        @sed -e 's/.*/#define VERSION_NUM "&"/' VERSION >> version.h 
    83103 
    84 sdr2.plugin.S02.audio.rtp.-.rat-@VERSION@: sdr2.plugin.in 
     104sdr2.plugin.S02.audio.rtp.-.rat-$(VERSION): sdr2.plugin.in 
    85105        @${ECHO} "Generating sdr plugin" 
    86106        @${ECHO} "# Generated automatically from sdr2.plugin.in" > $@ 
    87107        @${ECHO} "# DO NOT EDIT THIS FILE" >> $@ 
    88         @sed -e 's/VERSION/@VERSION@/g' sdr2.plugin.in >> $@ 
     108        @sed -e 's/VERSION/$(VERSION)/g' sdr2.plugin.in >> $@ 
    89109 
    90 rat-@VERSION@.spec: rat.spec 
     110rat-$(VERSION).spec: rat.spec 
    91111        @${ECHO} "Generating RPM spec file" 
    92112        @${ECHO} "# Generated automatically from rat.spec"  > $@ 
    93113        @${ECHO} "# DO NOT EDIT THIS FILE"                 >> $@ 
    94         @cat rat.spec | sed s/VERSION/@VERSION@/g       >> $@ 
     114        @cat rat.spec | sed s/VERSION/$(VERSION)/g       >> $@ 
    95115 
    96116clean: 
     
    114134 
    115135tgz: $(RATVER) 
    116         tar cvf $(RATVER)-@OSTYPE@.tar README.* MODS COPYRIGHT INSTALL.TXT VERSION $(RATVER) $(RATVER)-ui $(RATVER)-media 
    117         gzip -9v $(RATVER)-@OSTYPE@.tar 
     136        tar cvf $(RATVER)-$(OSTYPE).tar README.* MODS COPYRIGHT INSTALL.TXT VERSION $(RATVER) $(RATVER)-ui $(RATVER)-media 
     137        gzip -9v $(RATVER)-$(OSTYPE).tar 
    118138 
    119139depend: 
  • rat/trunk/configure

    r2988 r2989  
    11981198 
    11991199 
     1200VERSION=`cat VERSION` 
     1201 
     1202 
     1203OSTYPE=$host_os 
     1204 
     1205 
    12001206# Check for various headers                                                  
    12011207for ac_hdr in stdint.h inttypes.h stropts.h sys/filio.h malloc.h 
     
    12031209ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 
    12041210echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 
    1205 echo "configure:1206: checking for $ac_hdr" >&5 
     1211echo "configure:1212: checking for $ac_hdr" >&5 
    12061212if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 
    12071213  echo $ac_n "(cached) $ac_c" 1>&6 
    12081214else 
    12091215  cat > conftest.$ac_ext <<EOF 
    1210 #line 1211 "configure" 
     1216#line 1217 "configure" 
    12111217#include "confdefs.h" 
    12121218#include <$ac_hdr> 
    12131219EOF 
    12141220ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 
    1215 { (eval echo configure:1216: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
     1221{ (eval echo configure:1222: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
    12161222ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 
    12171223if test -z "$ac_err"; then 
     
    12431249ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 
    12441250echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 
    1245 echo "configure:1246: checking for $ac_hdr" >&5 
     1251echo "configure:1252: checking for $ac_hdr" >&5 
    12461252if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 
    12471253  echo $ac_n "(cached) $ac_c" 1>&6 
    12481254else 
    12491255  cat > conftest.$ac_ext <<EOF 
    1250 #line 1251 "configure" 
     1256#line 1257 "configure" 
    12511257#include "confdefs.h" 
    12521258#include <$ac_hdr> 
    12531259EOF 
    12541260ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 
    1255 { (eval echo configure:1256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
     1261{ (eval echo configure:1262: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
    12561262ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 
    12571263if test -z "$ac_err"; then 
     
    12811287 
    12821288echo $ac_n "checking kill in signal.h""... $ac_c" 1>&6 
    1283 echo "configure:1284: checking kill in signal.h" >&5 
     1289echo "configure:1290: checking kill in signal.h" >&5 
    12841290cat > conftest.$ac_ext <<EOF 
    1285 #line 1286 "configure" 
     1291#line 1292 "configure" 
    12861292#include "confdefs.h" 
    12871293#include <signal.h> 
     
    13021308 
    13031309echo $ac_n "checking for library containing socket""... $ac_c" 1>&6 
    1304 echo "configure:1305: checking for library containing socket" >&5 
     1310echo "configure:1311: checking for library containing socket" >&5 
    13051311if eval "test \"`echo '$''{'ac_cv_search_socket'+set}'`\" = set"; then 
    13061312  echo $ac_n "(cached) $ac_c" 1>&6 
     
    13091315ac_cv_search_socket="no" 
    13101316cat > conftest.$ac_ext <<EOF 
    1311 #line 1312 "configure" 
     1317#line 1318 "configure" 
    13121318#include "confdefs.h" 
    13131319/* Override any gcc2 internal prototype to avoid an error.  */ 
     
    13201326; return 0; } 
    13211327EOF 
    1322 if { (eval echo configure:1323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     1328if { (eval echo configure:1329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    13231329  rm -rf conftest* 
    13241330  ac_cv_search_socket="none required" 
     
    13311337LIBS="-l$i  $ac_func_search_save_LIBS" 
    13321338cat > conftest.$ac_ext <<EOF 
    1333 #line 1334 "configure" 
     1339#line 1340 "configure" 
    13341340#include "confdefs.h" 
    13351341/* Override any gcc2 internal prototype to avoid an error.  */ 
     
    13421348; return 0; } 
    13431349EOF 
    1344 if { (eval echo configure:1345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     1350if { (eval echo configure:1351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    13451351  rm -rf conftest* 
    13461352  ac_cv_search_socket="-l$i" 
     
    13641370 
    13651371echo $ac_n "checking for library containing inet_addr""... $ac_c" 1>&6 
    1366 echo "configure:1367: checking for library containing inet_addr" >&5 
     1372echo "configure:1373: checking for library containing inet_addr" >&5 
    13671373if eval "test \"`echo '$''{'ac_cv_search_inet_addr'+set}'`\" = set"; then 
    13681374  echo $ac_n "(cached) $ac_c" 1>&6 
     
    13711377ac_cv_search_inet_addr="no" 
    13721378cat > conftest.$ac_ext <<EOF 
    1373 #line 1374 "configure" 
     1379#line 1380 "configure" 
    13741380#include "confdefs.h" 
    13751381/* Override any gcc2 internal prototype to avoid an error.  */ 
     
    13821388; return 0; } 
    13831389EOF 
    1384 if { (eval echo configure:1385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     1390if { (eval echo configure:1391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    13851391  rm -rf conftest* 
    13861392  ac_cv_search_inet_addr="none required" 
     
    13931399LIBS="-l$i  $ac_func_search_save_LIBS" 
    13941400cat > conftest.$ac_ext <<EOF 
    1395 #line 1396 "configure" 
     1401#line 1402 "configure" 
    13961402#include "confdefs.h" 
    13971403/* Override any gcc2 internal prototype to avoid an error.  */ 
     
    14041410; return 0; } 
    14051411EOF 
    1406 if { (eval echo configure:1407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     1412if { (eval echo configure:1413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    14071413  rm -rf conftest* 
    14081414  ac_cv_search_inet_addr="-l$i" 
     
    14261432 
    14271433echo $ac_n "checking for sin""... $ac_c" 1>&6 
    1428 echo "configure:1429: checking for sin" >&5 
     1434echo "configure:1435: checking for sin" >&5 
    14291435if eval "test \"`echo '$''{'ac_cv_func_sin'+set}'`\" = set"; then 
    14301436  echo $ac_n "(cached) $ac_c" 1>&6 
    14311437else 
    14321438  cat > conftest.$ac_ext <<EOF 
    1433 #line 1434 "configure" 
     1439#line 1440 "configure" 
    14341440#include "confdefs.h" 
    14351441/* System header to define __stub macros and hopefully few prototypes, 
     
    14541460; return 0; } 
    14551461EOF 
    1456 if { (eval echo configure:1457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     1462if { (eval echo configure:1463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    14571463  rm -rf conftest* 
    14581464  eval "ac_cv_func_sin=yes" 
     
    14751481 
    14761482echo $ac_n "checking for main in -lieee""... $ac_c" 1>&6 
    1477 echo "configure:1478: checking for main in -lieee" >&5 
     1483echo "configure:1484: checking for main in -lieee" >&5 
    14781484ac_lib_var=`echo ieee'_'main | sed 'y%./+-%__p_%'` 
    14791485if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 
     
    14831489LIBS="-lieee  $LIBS" 
    14841490cat > conftest.$ac_ext <<EOF 
    1485 #line 1486 "configure" 
     1491#line 1492 "configure" 
    14861492#include "confdefs.h" 
    14871493 
     
    14901496; return 0; } 
    14911497EOF 
    1492 if { (eval echo configure:1493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     1498if { (eval echo configure:1499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    14931499  rm -rf conftest* 
    14941500  eval "ac_cv_lib_$ac_lib_var=yes" 
     
    15161522 
    15171523echo $ac_n "checking for int8_t""... $ac_c" 1>&6 
    1518 echo "configure:1519: checking for int8_t" >&5 
     1524echo "configure:1525: checking for int8_t" >&5 
    15191525if eval "test \"`echo '$''{'ac_cv_type_int8_t'+set}'`\" = set"; then 
    15201526  echo $ac_n "(cached) $ac_c" 1>&6 
    15211527else 
    15221528  cat > conftest.$ac_ext <<EOF 
    1523 #line 1524 "configure" 
     1529#line 1530 "configure" 
    15241530#include "confdefs.h" 
    15251531#include <sys/types.h> 
     
    15491555 
    15501556echo $ac_n "checking for int16_t""... $ac_c" 1>&6 
    1551 echo "configure:1552: checking for int16_t" >&5 
     1557echo "configure:1558: checking for int16_t" >&5 
    15521558if eval "test \"`echo '$''{'ac_cv_type_int16_t'+set}'`\" = set"; then 
    15531559  echo $ac_n "(cached) $ac_c" 1>&6 
    15541560else 
    15551561  cat > conftest.$ac_ext <<EOF 
    1556 #line 1557 "configure" 
     1562#line 1563 "configure" 
    15571563#include "confdefs.h" 
    15581564#include <sys/types.h> 
     
    15821588 
    15831589echo $ac_n "checking for int32_t""... $ac_c" 1>&6 
    1584 echo "configure:1585: checking for int32_t" >&5 
     1590echo "configure:1591: checking for int32_t" >&5 
    15851591if eval "test \"`echo '$''{'ac_cv_type_int32_t'+set}'`\" = set"; then 
    15861592  echo $ac_n "(cached) $ac_c" 1>&6 
    15871593else 
    15881594  cat > conftest.$ac_ext <<EOF 
    1589 #line 1590 "configure" 
     1595#line 1596 "configure" 
    15901596#include "confdefs.h" 
    15911597#include <sys/types.h> 
     
    16151621 
    16161622echo $ac_n "checking for int64_t""... $ac_c" 1>&6 
    1617 echo "configure:1618: checking for int64_t" >&5 
     1623echo "configure:1624: checking for int64_t" >&5 
    16181624if eval "test \"`echo '$''{'ac_cv_type_int64_t'+set}'`\" = set"; then 
    16191625  echo $ac_n "(cached) $ac_c" 1>&6 
    16201626else 
    16211627  cat > conftest.$ac_ext <<EOF 
    1622 #line 1623 "configure" 
     1628#line 1629 "configure" 
    16231629#include "confdefs.h" 
    16241630#include <sys/types.h> 
     
    16501656# Some systems have these in <stdint.h>, just to be difficult... 
    16511657echo $ac_n "checking for uint8_t in <stdint.h>""... $ac_c" 1>&6 
    1652 echo "configure:1653: checking for uint8_t in <stdint.h>" >&5 
     1658echo "configure:1659: checking for uint8_t in <stdint.h>" >&5 
    16531659if eval "test \"`echo '$''{'ucl_cv_uint8_t_in_stdint_h'+set}'`\" = set"; then 
    16541660  echo $ac_n "(cached) $ac_c" 1>&6 
    16551661else 
    16561662  cat > conftest.$ac_ext <<EOF 
    1657 #line 1658 "configure" 
     1663#line 1664 "configure" 
    16581664#include "confdefs.h" 
    16591665#include <stdint.h> 
     
    16751681then 
    16761682         echo $ac_n "checking for uint8_t""... $ac_c" 1>&6 
    1677 echo "configure:1678: checking for uint8_t" >&5 
     1683echo "configure:1684: checking for uint8_t" >&5 
    16781684if eval "test \"`echo '$''{'ac_cv_type_uint8_t'+set}'`\" = set"; then 
    16791685  echo $ac_n "(cached) $ac_c" 1>&6 
    16801686else 
    16811687  cat > conftest.$ac_ext <<EOF 
    1682 #line 1683 "configure" 
     1688#line 1689 "configure" 
    16831689#include "confdefs.h" 
    16841690#include <sys/types.h> 
     
    17101716 
    17111717echo $ac_n "checking for uint16_t in <stdint.h>""... $ac_c" 1>&6 
    1712 echo "configure:1713: checking for uint16_t in <stdint.h>" >&5 
     1718echo "configure:1719: checking for uint16_t in <stdint.h>" >&5 
    17131719if eval "test \"`echo '$''{'ucl_cv_uint16_t_in_stdint_h'+set}'`\" = set"; then 
    17141720  echo $ac_n "(cached) $ac_c" 1>&6 
    17151721else 
    17161722  cat > conftest.$ac_ext <<EOF 
    1717 #line 1718 "configure" 
     1723#line 1724 "configure" 
    17181724#include "confdefs.h" 
    17191725#include <stdint.h> 
     
    17351741then 
    17361742         echo $ac_n "checking for uint16_t""... $ac_c" 1>&6 
    1737 echo "configure:1738: checking for uint16_t" >&5 
     1743echo "configure:1744: checking for uint16_t" >&5 
    17381744if eval "test \"`echo '$''{'ac_cv_type_uint16_t'+set}'`\" = set"; then 
    17391745  echo $ac_n "(cached) $ac_c" 1>&6 
    17401746else 
    17411747  cat > conftest.$ac_ext <<EOF 
    1742 #line 1743 "configure" 
     1748#line 1749 "configure" 
    17431749#include "confdefs.h" 
    17441750#include <sys/types.h> 
     
    17701776 
    17711777echo $ac_n "checking for uint32_t in <stdint.h>""... $ac_c" 1>&6 
    1772 echo "configure:1773: checking for uint32_t in <stdint.h>" >&5 
     1778echo "configure:1779: checking for uint32_t in <stdint.h>" >&5 
    17731779if eval "test \"`echo '$''{'ucl_cv_uint32_t_in_stdint_h'+set}'`\" = set"; then 
    17741780  echo $ac_n "(cached) $ac_c" 1>&6 
    17751781else 
    17761782  cat > conftest.$ac_ext <<EOF 
    1777 #line 1778 "configure" 
     1783#line 1784 "configure" 
    17781784#include "confdefs.h" 
    17791785#include <stdint.h> 
     
    17951801then 
    17961802         echo $ac_n "checking for uint32_t""... $ac_c" 1>&6 
    1797 echo "configure:1798: checking for uint32_t" >&5 
     1803echo "configure:1804: checking for uint32_t" >&5 
    17981804if eval "test \"`echo '$''{'ac_cv_type_uint32_t'+set}'`\" = set"; then 
    17991805  echo $ac_n "(cached) $ac_c" 1>&6 
    18001806else 
    18011807  cat > conftest.$ac_ext <<EOF 
    1802 #line 1803 "configure" 
     1808#line 1809 "configure" 
    18031809#include "confdefs.h" 
    18041810#include <sys/types.h> 
     
    18311837# The following two macros cause autoconf to complain. 
    18321838echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 
    1833 echo "configure:1834: checking whether byte ordering is bigendian" >&5 
     1839echo "configure:1840: checking whether byte ordering is bigendian" >&5 
    18341840if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then 
    18351841  echo $ac_n "(cached) $ac_c" 1>&6 
     
    18381844# See if sys/param.h defines the BYTE_ORDER macro. 
    18391845cat > conftest.$ac_ext <<EOF 
    1840 #line 1841 "configure" 
     1846#line 1847 "configure" 
    18411847#include "confdefs.h" 
    18421848#include <sys/types.h> 
     
    18491855; return 0; } 
    18501856EOF 
    1851 if { (eval echo configure:1852: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 
     1857if { (eval echo configure:1858: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 
    18521858  rm -rf conftest* 
    18531859  # It does; now see whether it defined to BIG_ENDIAN or not. 
    18541860cat > conftest.$ac_ext <<EOF 
    1855 #line 1856 "configure" 
     1861#line 1862 "configure" 
    18561862#include "confdefs.h" 
    18571863#include <sys/types.h> 
     
    18641870; return 0; } 
    18651871EOF 
    1866 if { (eval echo configure:1867: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 
     1872if { (eval echo configure:1873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 
    18671873  rm -rf conftest* 
    18681874  ac_cv_c_bigendian=yes 
     
    18841890else 
    18851891  cat > conftest.$ac_ext <<EOF 
    1886 #line 1887 "configure" 
     1892#line 1893 "configure" 
    18871893#include "confdefs.h" 
    18881894main () { 
     
    18971903} 
    18981904EOF 
    1899 if { (eval echo configure:1900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 
     1905if { (eval echo configure:1906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 
    19001906then 
    19011907  ac_cv_c_bigendian=no 
     
    19211927 
    19221928echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6 
    1923 echo "configure:1924: checking whether char is unsigned" >&5 
     1929echo "configure:1930: checking whether char is unsigned" >&5 
    19241930if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then 
    19251931  echo $ac_n "(cached) $ac_c" 1>&6 
     
    19281934  # GCC predefines this symbol on systems where it applies. 
    19291935cat > conftest.$ac_ext <<EOF 
    1930 #line 1931 "configure" 
     1936#line 1937 "configure" 
    19311937#include "confdefs.h" 
    19321938#ifdef __CHAR_UNSIGNED__ 
     
    19501956else 
    19511957  cat > conftest.$ac_ext <<EOF 
    1952 #line 1953 "configure" 
     1958#line 1959 "configure" 
    19531959#include "confdefs.h" 
    19541960/* volatile prevents gcc2 from optimizing the test away on sparcs.  */ 
     
    19601966} 
    19611967EOF 
    1962 if { (eval echo configure:1963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 
     1968if { (eval echo configure:1969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 
    19631969then 
    19641970  ac_cv_c_char_unsigned=yes 
     
    20082014EXTRA_OBJ= 
    20092015echo $ac_n "checking for usleep""... $ac_c" 1>&6 
    2010 echo "configure:2011: checking for usleep" >&5 
     2016echo "configure:2017: checking for usleep" >&5 
    20112017if eval "test \"`echo '$''{'ac_cv_func_usleep'+set}'`\" = set"; then 
    20122018  echo $ac_n "(cached) $ac_c" 1>&6 
    20132019else 
    20142020  cat > conftest.$ac_ext <<EOF 
    2015 #line 2016 "configure" 
     2021#line 2022 "configure" 
    20162022#include "confdefs.h" 
    20172023/* System header to define __stub macros and hopefully few prototypes, 
     
    20362042; return 0; } 
    20372043EOF 
    2038 if { (eval echo configure:2039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     2044if { (eval echo configure:2045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    20392045  rm -rf conftest* 
    20402046  eval "ac_cv_func_usleep=yes" 
     
    20952101        ac_safe=`echo "$O1KHOME/include/oti_audio_device.h" | sed 'y%./+-%__p_%'` 
    20962102echo $ac_n "checking for $O1KHOME/include/oti_audio_device.h""... $ac_c" 1>&6 
    2097 echo "configure:2098: checking for $O1KHOME/include/oti_audio_device.h" >&5 
     2103echo "configure:2104: checking for $O1KHOME/include/oti_audio_device.h" >&5 
    20982104if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 
    20992105  echo $ac_n "(cached) $ac_c" 1>&6 
    21002106else 
    21012107  cat > conftest.$ac_ext <<EOF 
    2102 #line 2103 "configure" 
     2108#line 2109 "configure" 
    21032109#include "confdefs.h" 
    21042110#include <$O1KHOME/include/oti_audio_device.h> 
    21052111EOF 
    21062112ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 
    2107 { (eval echo configure:2108: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
     2113{ (eval echo configure:2114: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
    21082114ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 
    21092115if test -z "$ac_err"; then 
     
    21452151ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 
    21462152echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 
    2147 echo "configure:2148: checking for $ac_hdr" >&5 
     2153echo "configure:2154: checking for $ac_hdr" >&5 
    21482154if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 
    21492155  echo $ac_n "(cached) $ac_c" 1>&6 
    21502156else 
    21512157  cat > conftest.$ac_ext <<EOF 
    2152 #line 2153 "configure" 
     2158#line 2159 "configure" 
    21532159#include "confdefs.h" 
    21542160#include <$ac_hdr> 
    21552161EOF 
    21562162ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 
    2157 { (eval echo configure:2158: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
     2163{ (eval echo configure:2164: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
    21582164ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 
    21592165if test -z "$ac_err"; then 
     
    22232229# --without-x overrides everything else, but does not touch the cache. 
    22242230echo $ac_n "checking for X""... $ac_c" 1>&6 
    2225 echo "configure:2226: checking for X" >&5 
     2231echo "configure:2232: checking for X" >&5 
    22262232 
    22272233# Check whether --with-x or --without-x was given. 
     
    22852291  # First, try using that file with no special directory specified. 
    22862292cat > conftest.$ac_ext <<EOF 
    2287 #line 2288 "configure" 
     2293#line 2294 "configure" 
    22882294#include "confdefs.h" 
    22892295#include <$x_direct_test_include> 
    22902296EOF 
    22912297ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 
    2292 { (eval echo configure:2293: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
     2298{ (eval echo configure:2299: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
    22932299ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 
    22942300if test -z "$ac_err"; then 
     
    23592365  LIBS="-l$x_direct_test_library $LIBS" 
    23602366cat > conftest.$ac_ext <<EOF 
    2361 #line 2362 "configure" 
     2367#line 2368 "configure" 
    23622368#include "confdefs.h" 
    23632369 
     
    23662372; return 0; } 
    23672373EOF 
    2368 if { (eval echo configure:2369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     2374if { (eval echo configure:2375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    23692375  rm -rf conftest* 
    23702376  LIBS="$ac_save_LIBS" 
     
    24722478    "SunOS 5"*) 
    24732479      echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 
    2474 echo "configure:2475: checking whether -R must be followed by a space" >&5 
     2480echo "configure:2481: checking whether -R must be followed by a space" >&5 
    24752481      ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" 
    24762482      cat > conftest.$ac_ext <<EOF 
    2477 #line 2478 "configure" 
     2483#line 2484 "configure" 
    24782484#include "confdefs.h" 
    24792485 
     
    24822488; return 0; } 
    24832489EOF 
    2484 if { (eval echo configure:2485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     2490if { (eval echo configure:2491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    24852491  rm -rf conftest* 
    24862492  ac_R_nospace=yes 
     
    24982504        LIBS="$ac_xsave_LIBS -R $x_libraries" 
    24992505        cat > conftest.$ac_ext <<EOF 
    2500 #line 2501 "configure" 
     2506#line 2507 "configure" 
    25012507#include "confdefs.h" 
    25022508 
     
    25052511; return 0; } 
    25062512EOF 
    2507 if { (eval echo configure:2508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     2513if { (eval echo configure:2514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    25082514  rm -rf conftest* 
    25092515  ac_R_space=yes 
     
    25372543    # the Alpha needs dnet_stub (dnet does not exist). 
    25382544    echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 
    2539 echo "configure:2540: checking for dnet_ntoa in -ldnet" >&5 
     2545echo "configure:2546: checking for dnet_ntoa in -ldnet" >&5 
    25402546ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` 
    25412547if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 
     
    25452551LIBS="-ldnet  $LIBS" 
    25462552cat > conftest.$ac_ext <<EOF 
    2547 #line 2548 "configure" 
     2553#line 2554 "configure" 
    25482554#include "confdefs.h" 
    25492555/* Override any gcc2 internal prototype to avoid an error.  */ 
     
    25562562; return 0; } 
    25572563EOF 
    2558 if { (eval echo configure:2559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     2564if { (eval echo configure:2565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    25592565  rm -rf conftest* 
    25602566  eval "ac_cv_lib_$ac_lib_var=yes" 
     
    25782584    if test $ac_cv_lib_dnet_dnet_ntoa = no; then 
    25792585      echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 
    2580 echo "configure:2581: checking for dnet_ntoa in -ldnet_stub" >&5 
     2586echo "configure:2587: checking for dnet_ntoa in -ldnet_stub" >&5 
    25812587ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` 
    25822588if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 
     
    25862592LIBS="-ldnet_stub  $LIBS" 
    25872593cat > conftest.$ac_ext <<EOF 
    2588 #line 2589 "configure" 
     2594#line 2595 "configure" 
    25892595#include "confdefs.h" 
    25902596/* Override any gcc2 internal prototype to avoid an error.  */ 
     
    25972603; return 0; } 
    25982604EOF 
    2599 if { (eval echo configure:2600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     2605if { (eval echo configure:2606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    26002606  rm -rf conftest* 
    26012607  eval "ac_cv_lib_$ac_lib_var=yes" 
     
    26262632    # on Irix 5.2, according to dickey@clark.net. 
    26272633    echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 
    2628 echo "configure:2629: checking for gethostbyname" >&5 
     2634echo "configure:2635: checking for gethostbyname" >&5 
    26292635if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then 
    26302636  echo $ac_n "(cached) $ac_c" 1>&6 
    26312637else 
    26322638  cat > conftest.$ac_ext <<EOF 
    2633 #line 2634 "configure" 
     2639#line 2640 "configure" 
    26342640#include "confdefs.h" 
    26352641/* System header to define __stub macros and hopefully few prototypes, 
     
    26542660; return 0; } 
    26552661EOF 
    2656 if { (eval echo configure:2657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     2662if { (eval echo configure:2663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    26572663  rm -rf conftest* 
    26582664  eval "ac_cv_func_gethostbyname=yes" 
     
    26752681    if test $ac_cv_func_gethostbyname = no; then 
    26762682      echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 
    2677 echo "configure:2678: checking for gethostbyname in -lnsl" >&5 
     2683echo "configure:2684: checking for gethostbyname in -lnsl" >&5 
    26782684ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` 
    26792685if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 
     
    26832689LIBS="-lnsl  $LIBS" 
    26842690cat > conftest.$ac_ext <<EOF 
    2685 #line 2686 "configure" 
     2691#line 2692 "configure" 
    26862692#include "confdefs.h" 
    26872693/* Override any gcc2 internal prototype to avoid an error.  */ 
     
    26942700; return 0; } 
    26952701EOF 
    2696 if { (eval echo configure:2697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     2702if { (eval echo configure:2703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    26972703  rm -rf conftest* 
    26982704  eval "ac_cv_lib_$ac_lib_var=yes" 
     
    27242730    # We assume that if connect needs -lnsl, so does gethostbyname. 
    27252731    echo $ac_n "checking for connect""... $ac_c" 1>&6 
    2726 echo "configure:2727: checking for connect" >&5 
     2732echo "configure:2733: checking for connect" >&5 
    27272733if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then 
    27282734  echo $ac_n "(cached) $ac_c" 1>&6 
    27292735else 
    27302736  cat > conftest.$ac_ext <<EOF 
    2731 #line 2732 "configure" 
     2737#line 2738 "configure" 
    27322738#include "confdefs.h" 
    27332739/* System header to define __stub macros and hopefully few prototypes, 
     
    27522758; return 0; } 
    27532759EOF 
    2754 if { (eval echo configure:2755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     2760if { (eval echo configure:2761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    27552761  rm -rf conftest* 
    27562762  eval "ac_cv_func_connect=yes" 
     
    27732779    if test $ac_cv_func_connect = no; then 
    27742780      echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 
    2775 echo "configure:2776: checking for connect in -lsocket" >&5 
     2781echo "configure:2782: checking for connect in -lsocket" >&5 
    27762782ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` 
    27772783if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 
     
    27812787LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 
    27822788cat > conftest.$ac_ext <<EOF 
    2783 #line 2784 "configure" 
     2789#line 2790 "configure" 
    27842790#include "confdefs.h" 
    27852791/* Override any gcc2 internal prototype to avoid an error.  */ 
     
    27922798; return 0; } 
    27932799EOF 
    2794 if { (eval echo configure:2795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     2800if { (eval echo configure:2801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    27952801  rm -rf conftest* 
    27962802  eval "ac_cv_lib_$ac_lib_var=yes" 
     
    28162822    # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. 
    28172823    echo $ac_n "checking for remove""... $ac_c" 1>&6 
    2818 echo "configure:2819: checking for remove" >&5 
     2824echo "configure:2825: checking for remove" >&5 
    28192825if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then 
    28202826  echo $ac_n "(cached) $ac_c" 1>&6 
    28212827else 
    28222828  cat > conftest.$ac_ext <<EOF 
    2823 #line 2824 "configure" 
     2829#line 2830 "configure" 
    28242830#include "confdefs.h" 
    28252831/* System header to define __stub macros and hopefully few prototypes, 
     
    28442850; return 0; } 
    28452851EOF 
    2846 if { (eval echo configure:2847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     2852if { (eval echo configure:2853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    28472853  rm -rf conftest* 
    28482854  eval "ac_cv_func_remove=yes" 
     
    28652871    if test $ac_cv_func_remove = no; then 
    28662872      echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 
    2867 echo "configure:2868: checking for remove in -lposix" >&5 
     2873echo "configure:2874: checking for remove in -lposix" >&5 
    28682874ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` 
    28692875if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 
     
    28732879LIBS="-lposix  $LIBS" 
    28742880cat > conftest.$ac_ext <<EOF 
    2875 #line 2876 "configure" 
     2881#line 2882 "configure" 
    28762882#include "confdefs.h" 
    28772883/* Override any gcc2 internal prototype to avoid an error.  */ 
     
    28842890; return 0; } 
    28852891EOF 
    2886 if { (eval echo configure:2887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     2892if { (eval echo configure:2893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    28872893  rm -rf conftest* 
    28882894  eval "ac_cv_lib_$ac_lib_var=yes" 
     
    29082914    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 
    29092915    echo $ac_n "checking for shmat""... $ac_c" 1>&6 
    2910 echo "configure:2911: checking for shmat" >&5 
     2916echo "configure:2917: checking for shmat" >&5 
    29112917if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then 
    29122918  echo $ac_n "(cached) $ac_c" 1>&6 
    29132919else 
    29142920  cat > conftest.$ac_ext <<EOF 
    2915 #line 2916 "configure" 
     2921#line 2922 "configure" 
    29162922#include "confdefs.h" 
    29172923/* System header to define __stub macros and hopefully few prototypes, 
     
    29362942; return 0; } 
    29372943EOF 
    2938 if { (eval echo configure:2939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     2944if { (eval echo configure:2945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    29392945  rm -rf conftest* 
    29402946  eval "ac_cv_func_shmat=yes" 
     
    29572963    if test $ac_cv_func_shmat = no; then 
    29582964      echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 
    2959 echo "configure:2960: checking for shmat in -lipc" >&5 
     2965echo "configure:2966: checking for shmat in -lipc" >&5 
    29602966ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` 
    29612967if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 
     
    29652971LIBS="-lipc  $LIBS" 
    29662972cat > conftest.$ac_ext <<EOF 
    2967 #line 2968 "configure" 
     2973#line 2974 "configure" 
    29682974#include "confdefs.h" 
    29692975/* Override any gcc2 internal prototype to avoid an error.  */ 
     
    29762982; return 0; } 
    29772983EOF 
    2978 if { (eval echo configure:2979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     2984if { (eval echo configure:2985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    29792985  rm -rf conftest* 
    29802986  eval "ac_cv_lib_$ac_lib_var=yes" 
     
    30093015  #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu. 
    30103016  echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 
    3011 echo "configure:3012: checking for IceConnectionNumber in -lICE" >&5 
     3017echo "configure:3018: checking for IceConnectionNumber in -lICE" >&5 
    30123018ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` 
    30133019if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 
     
    30173023LIBS="-lICE $X_EXTRA_LIBS $LIBS" 
    30183024cat > conftest.$ac_ext <<EOF 
    3019 #line 3020 "configure" 
     3025#line 3026 "configure" 
    30203026#include "confdefs.h" 
    30213027/* Override any gcc2 internal prototype to avoid an error.  */ 
     
    30283034; return 0; } 
    30293035EOF 
    3030 if { (eval echo configure:3031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     3036if { (eval echo configure:3037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    30313037  rm -rf conftest* 
    30323038  eval "ac_cv_lib_$ac_lib_var=yes" 
     
    30733079ac_safe=`echo "${TCL_INC}/tcl.h" | sed 'y%./+-%__p_%'` 
    30743080echo $ac_n "checking for ${TCL_INC}/tcl.h""... $ac_c" 1>&6 
    3075 echo "configure:3076: checking for ${TCL_INC}/tcl.h" >&5 
     3081echo "configure:3082: checking for ${TCL_INC}/tcl.h" >&5 
    30763082if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 
    30773083  echo $ac_n "(cached) $ac_c" 1>&6 
    30783084else 
    30793085  cat > conftest.$ac_ext <<EOF 
    3080 #line 3081 "configure" 
     3086#line 3087 "configure" 
    30813087#include "confdefs.h" 
    30823088#include <${TCL_INC}/tcl.h> 
    30833089EOF 
    30843090ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 
    3085 { (eval echo configure:3086: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
     3091{ (eval echo configure:3092: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
    30863092ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 
    30873093if test -z "$ac_err"; then 
     
    30993105if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 
    31003106  echo "$ac_t""yes" 1>&6 
    3101   TCL_INC=-I${TCL_INC}/tcl8.0 
     3107  TCL_INC=-I${TCL_INC} 
    31023108else 
    31033109  echo "$ac_t""no" 1>&6 
    31043110ac_safe=`echo "${TCL_INC}/tcl8.0/tcl.h" | sed 'y%./+-%__p_%'` 
    31053111echo $ac_n "checking for ${TCL_INC}/tcl8.0/tcl.h""... $ac_c" 1>&6 
    3106 echo "configure:3107: checking for ${TCL_INC}/tcl8.0/tcl.h" >&5 
     3112echo "configure:3113: checking for ${TCL_INC}/tcl8.0/tcl.h" >&5 
    31073113if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 
    31083114  echo $ac_n "(cached) $ac_c" 1>&6 
    31093115else 
    31103116  cat > conftest.$ac_ext <<EOF 
    3111 #line 3112 "configure" 
     3117#line 3118 "configure" 
    31123118#include "confdefs.h" 
    31133119#include <${TCL_INC}/tcl8.0/tcl.h> 
    31143120EOF 
    31153121ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 
    3116 { (eval echo configure:3117: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
     3122{ (eval echo configure:3123: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
    31173123ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 
    31183124if test -z "$ac_err"; then 
     
    31473153 
    31483154echo $ac_n "checking for Tcl_Init in -ltcl8.0""... $ac_c" 1>&6 
    3149 echo "configure:3150: checking for Tcl_Init in -ltcl8.0" >&5 
     3155echo "configure:3156: checking for Tcl_Init in -ltcl8.0" >&5 
    31503156ac_lib_var=`echo tcl8.0'_'Tcl_Init | sed 'y%./+-%__p_%'` 
    31513157if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 
     
    31553161LIBS="-ltcl8.0 -L${TCL_LIB} -lm $LIBS" 
    31563162cat > conftest.$ac_ext <<EOF 
    3157 #line 3158 "configure" 
     3163#line 3164 "configure" 
    31583164#include "confdefs.h" 
    31593165/* Override any gcc2 internal prototype to avoid an error.  */ 
     
    31663172; return 0; } 
    31673173EOF 
    3168 if { (eval echo configure:3169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     3174if { (eval echo configure:3175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    31693175  rm -rf conftest* 
    31703176  eval "ac_cv_lib_$ac_lib_var=yes" 
     
    31853191  echo "$ac_t""no" 1>&6 
    31863192echo $ac_n "checking for Tcl_Init in -ltcl80""... $ac_c" 1>&6 
    3187 echo "configure:3188: checking for Tcl_Init in -ltcl80" >&5 
     3193echo "configure:3194: checking for Tcl_Init in -ltcl80" >&5 
    31883194ac_lib_var=`echo tcl80'_'Tcl_Init | sed 'y%./+-%__p_%'` 
    31893195if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 
     
    31933199LIBS="-ltcl80 -L${TCL_LIB} -lm $LIBS" 
    31943200cat > conftest.$ac_ext <<EOF 
    3195 #line 3196 "configure" 
     3201#line 3202 "configure" 
    31963202#include "confdefs.h" 
    31973203/* Override any gcc2 internal prototype to avoid an error.  */ 
     
    32043210; return 0; } 
    32053211EOF 
    3206 if { (eval echo configure:3207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     3212if { (eval echo configure:3213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    32073213  rm -rf conftest* 
    32083214  eval "ac_cv_lib_$ac_lib_var=yes" 
     
    32523258ac_safe=`echo "$TK_INC/tk.h" | sed 'y%./+-%__p_%'` 
    32533259echo $ac_n "checking for $TK_INC/tk.h""... $ac_c" 1>&6 
    3254 echo "configure:3255: checking for $TK_INC/tk.h" >&5 
     3260echo "configure:3261: checking for $TK_INC/tk.h" >&5 
    32553261if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then 
    32563262  echo $ac_n "(cached) $ac_c" 1>&6 
     
    32683274if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then 
    32693275  echo "$ac_t""yes" 1>&6 
    3270   TK_INC=-I${TK_INC}/tk8.0 
     3276  TK_INC=-I${TK_INC} 
    32713277else 
    32723278  echo "$ac_t""no" 1>&6 
     
    32753281ac_safe=`echo "$TK_INC/tk8.0/tk.h" | sed 'y%./+-%__p_%'` 
    32763282echo $ac_n "checking for $TK_INC/tk8.0/tk.h""... $ac_c" 1>&6 
    3277 echo "configure:3278: checking for $TK_INC/tk8.0/tk.h" >&5 
     3283echo "configure:3284: checking for $TK_INC/tk8.0/tk.h" >&5 
    32783284if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then 
    32793285  echo $ac_n "(cached) $ac_c" 1>&6 
     
    33083314 
    33093315echo $ac_n "checking for Tk_Init in -ltk8.0""... $ac_c" 1>&6 
    3310 echo "configure:3311: checking for Tk_Init in -ltk8.0" >&5 
     3316echo "configure:3317: checking for Tk_Init in -ltk8.0" >&5 
    33113317ac_lib_var=`echo tk8.0'_'Tk_Init | sed 'y%./+-%__p_%'` 
    33123318if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 
     
    33163322LIBS="-ltk8.0 -L${TK_LIB} ${TCL_LIB} $X_LIBS $X_PRE_LIBS  -lXext -lX11 $X_EXTRA_LIBS -lm $LIBS" 
    33173323cat > conftest.$ac_ext <<EOF 
    3318 #line 3319 "configure" 
     3324#line 3325 "configure" 
    33193325#include "confdefs.h" 
    33203326/* Override any gcc2 internal prototype to avoid an error.  */ 
     
    33273333; return 0; } 
    33283334EOF 
    3329 if { (eval echo configure:3330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     3335if { (eval echo configure:3336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    33303336  rm -rf conftest* 
    33313337  eval "ac_cv_lib_$ac_lib_var=yes" 
     
    33463352  echo "$ac_t""no" 1>&6 
    33473353echo $ac_n "checking for Tk_Init in -ltk80""... $ac_c" 1>&6 
    3348 echo "configure:3349: checking for Tk_Init in -ltk80" >&5 
     3354echo "configure:3355: checking for Tk_Init in -ltk80" >&5 
    33493355ac_lib_var=`echo tk80'_'Tk_Init | sed 'y%./+-%__p_%'` 
    33503356if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 
     
    33543360LIBS="-ltk80 -L${TK_LIB} ${TCL_LIB} $X_LIBS $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS -lm $LIBS" 
    33553361cat > conftest.$ac_ext <<EOF 
    3356 #line 3357 "configure" 
     3362#line 3363 "configure" 
    33573363#include "confdefs.h" 
    33583364/* Override any gcc2 internal prototype to avoid an error.  */ 
     
    33653371; return 0; } 
    33663372EOF 
    3367 if { (eval echo configure:3368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     3373if { (eval echo configure:3374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    33683374  rm -rf conftest* 
    33693375  eval "ac_cv_lib_$ac_lib_var=yes" 
     
    34153421ac_safe=`echo "${COMMON_INC}/mbus.h" | sed 'y%./+-%__p_%'` 
    34163422echo $ac_n "checking for ${COMMON_INC}/mbus.h""... $ac_c" 1>&6 
    3417 echo "configure:3418: checking for ${COMMON_INC}/mbus.h" >&5 
     3423echo "configure:3424: checking for ${COMMON_INC}/mbus.h" >&5 
    34183424if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 
    34193425  echo $ac_n "(cached) $ac_c" 1>&6 
    34203426else 
    34213427  cat > conftest.$ac_ext <<EOF 
    3422 #line 3423 "configure" 
     3428#line 3429 "configure" 
    34233429#include "confdefs.h" 
    34243430#include <${COMMON_INC}/mbus.h> 
    34253431EOF 
    34263432ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 
    3427 { (eval echo configure:3428: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
     3433{ (eval echo configure:3434: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
    34283434ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 
    34293435if test -z "$ac_err"; then 
     
    34463452ac_safe=`echo "${COMMON_INC}/include/mbus.h" | sed 'y%./+-%__p_%'` 
    34473453echo $ac_n "checking for ${COMMON_INC}/include/mbus.h""... $ac_c" 1>&6 
    3448 echo "configure:3449: checking for ${COMMON_INC}/include/mbus.h" >&5 
     3454echo "configure:3455: checking for ${COMMON_INC}/include/mbus.h" >&5 
    34493455if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 
    34503456  echo $ac_n "(cached) $ac_c" 1>&6 
    34513457else 
    34523458  cat > conftest.$ac_ext <<EOF 
    3453 #line 3454 "configure" 
     3459#line 3460 "configure" 
    34543460#include "confdefs.h" 
    34553461#include <${COMMON_INC}/include/mbus.h> 
    34563462EOF 
    34573463ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 
    3458 { (eval echo configure:3459: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
     3464{ (eval echo configure:3465: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
    34593465ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 
    34603466if test -z "$ac_err"; then 
     
    34903496 
    34913497echo $ac_n "checking for mbus_init in -lcommon""... $ac_c" 1>&6 
    3492 echo "configure:3493: checking for mbus_init in -lcommon" >&5 
     3498echo "configure:3499: checking for mbus_init in -lcommon" >&5 
    34933499ac_lib_var=`echo common'_'mbus_init | sed 'y%./+-%__p_%'` 
    34943500if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 
     
    34983504LIBS="-lcommon -L${COMMON_LIB} $LIBS" 
    34993505cat > conftest.$ac_ext <<EOF 
    3500 #line 3501 "configure" 
     3506#line 3507 "configure" 
    35013507#include "confdefs.h" 
    35023508/* Override any gcc2 internal prototype to avoid an error.  */ 
     
    35093515; return 0; } 
    35103516EOF 
    3511 if { (eval echo configure:3512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     3517if { (eval echo configure:3518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    35123518  rm -rf conftest* 
    35133519  eval "ac_cv_lib_$ac_lib_var=yes" 
     
    37573763s%@CPP@%$CPP%g 
    37583764s%@RANLIB@%$RANLIB%g 
     3765s%@VERSION@%$VERSION%g 
     3766s%@OSTYPE@%$OSTYPE%g 
    37593767s%@MATHLIBS@%$MATHLIBS%g 
    37603768s%@EXTRA_OBJ@%$EXTRA_OBJ%g 
  • rat/trunk/configure.in

    r2988 r2989  
    1515AC_C_CONST 
    1616AC_TYPE_SIZE_T 
     17 
     18VERSION=`cat VERSION` 
     19AC_SUBST(VERSION) 
     20 
     21OSTYPE=$host_os 
     22AC_SUBST(OSTYPE) 
    1723 
    1824# Check for various headers                                                  
     
    178184 
    179185AC_CHECK_HEADER(${TCL_INC}/tcl.h, 
    180         TCL_INC=-I${TCL_INC}/tcl8.0, 
     186        TCL_INC=-I${TCL_INC}, 
    181187        [AC_CHECK_HEADER(${TCL_INC}/tcl8.0/tcl.h, 
    182188                TCL_INC=-I${TCL_INC}/tcl8.0, 
     
    219225# check for existence...autoconf generates a warning here. 
    220226AC_CHECK_FILE($TK_INC/tk.h, 
    221         TK_INC=-I${TK_INC}/tk8.0, 
     227        TK_INC=-I${TK_INC}, 
    222228        [ 
    223229                AC_CHECK_FILE($TK_INC/tk8.0/tk.h,