home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 4 / FreshFish_May-June1994.bin / bbs / gnu / fileutils-3.9-src.lha / src / build / fileutils-3.9 / config.status < prev    next >
Text File  |  1994-02-22  |  9KB  |  221 lines

  1. #!/bin/sh
  2. # Generated automatically by configure.
  3. # Run this file to recreate the current configuration.
  4. # This directory was configured as follows,
  5. # on host :
  6. #
  7. # /ISO/fileutils/fileutils-3.9-amiga/configure/ amigados
  8.  
  9. for arg
  10. do
  11.   case "$arg" in
  12.     -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  13.     echo running ${CONFIG_SHELL-/bin/sh} /ISO/fileutils/fileutils-3.9-amiga/configure/ amigados
  14.     exec ${CONFIG_SHELL-/bin/sh} /ISO/fileutils/fileutils-3.9-amiga/configure/ amigados ;;
  15.     *) echo "Usage: config.status --recheck" 2>&1; exit 1 ;;
  16.   esac
  17. done
  18.  
  19. trap 'rm -fr Makefile lib/Makefile src/Makefile man/Makefile config.h conftest*; exit 1' 1 3 15
  20. PROGS=' df'
  21. LIBPROGS=''
  22. CC='gcc'
  23. CFLAGS='-O2'
  24. LDFLAGS='-g'
  25. CPP='gcc -E'
  26. RANLIB='ranlib'
  27. YACC='bison -y'
  28. LIBOBJS=' fsusage.o mountlist.o stpcpy.o'
  29. ALLOCA=''
  30. LIBS=''
  31. srcdir='/ISO/fileutils/fileutils-3.9-amiga'
  32. prefix=''
  33. exec_prefix=''
  34. prsub=''
  35. extrasub=''
  36.  
  37. top_srcdir=$srcdir
  38.  
  39. CONFIG_FILES=${CONFIG_FILES-"Makefile lib/Makefile src/Makefile man/Makefile"}
  40. for file in .. ${CONFIG_FILES}; do if test "x$file" != x..; then
  41.   srcdir=$top_srcdir
  42.   # Remove last slash and all that follows it.  Not all systems have dirname.
  43.   dir=`echo $file|sed 's%/[^/][^/]*$%%'`
  44.   if test "$dir" != "$file"; then
  45.     test "$top_srcdir" != . && srcdir=$top_srcdir/$dir
  46.     test ! -d $dir && mkdir $dir
  47.   fi
  48.   echo creating $file
  49.   rm -f $file
  50.   echo "# Generated automatically from `echo $file|sed 's|.*/||'`.in by configure." > $file
  51.   sed -e "
  52. $prsub
  53. $extrasub
  54. s%@PROGS@%$PROGS%g
  55. s%@LIBPROGS@%$LIBPROGS%g
  56. s%@CC@%$CC%g
  57. s%@CFLAGS@%$CFLAGS%g
  58. s%@LDFLAGS@%$LDFLAGS%g
  59. s%@CPP@%$CPP%g
  60. s%@RANLIB@%$RANLIB%g
  61. s%@YACC@%$YACC%g
  62. s%@LIBOBJS@%$LIBOBJS%g
  63. s%@ALLOCA@%$ALLOCA%g
  64. s%@LIBS@%$LIBS%g
  65. s%@srcdir@%$srcdir%g
  66. s%@DEFS@%-DHAVE_CONFIG_H%" $top_srcdir/${file}.in >> $file
  67. fi; done
  68.  
  69. CONFIG_HEADERS=${CONFIG_HEADERS-"config.h"}
  70. for file in .. ${CONFIG_HEADERS}; do if test "x$file" != x..; then
  71. echo creating $file
  72.  
  73. # These sed commands are put into SEDDEFS when defining a macro.
  74. # They are broken into pieces to make the sed script easier to manage.
  75. # They are passed to sed as "A NAME B NAME C VALUE D", where NAME
  76. # is the cpp macro being defined and VALUE is the value it is being given.
  77. # Each defining turns into a single global substitution command.
  78. #
  79. # SEDd sets the value in "#define NAME VALUE" lines.
  80. SEDdA='s@^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  81. SEDdB='\([     ][     ]*\)[^     ]*@\1#\2'
  82. SEDdC='\3'
  83. SEDdD='@g'
  84. # SEDu turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  85. SEDuA='s@^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  86. SEDuB='\([     ]\)@\1#\2define\3'
  87. SEDuC=' '
  88. SEDuD='\4@g'
  89. # SEDe turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  90. SEDeA='s@^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  91. SEDeB='$@\1#\2define\3'
  92. SEDeC=' '
  93. SEDeD='@g'
  94. rm -f conftest.sed
  95. cat >> conftest.sed <<CONFEOF
  96. ${SEDdA}DIRENT${SEDdB}DIRENT${SEDdC}1${SEDdD}
  97. ${SEDuA}DIRENT${SEDuB}DIRENT${SEDuC}1${SEDuD}
  98. ${SEDeA}DIRENT${SEDeB}DIRENT${SEDeC}1${SEDeD}
  99. ${SEDdA}RETSIGTYPE${SEDdB}RETSIGTYPE${SEDdC}void${SEDdD}
  100. ${SEDuA}RETSIGTYPE${SEDuB}RETSIGTYPE${SEDuC}void${SEDuD}
  101. ${SEDeA}RETSIGTYPE${SEDeB}RETSIGTYPE${SEDeC}void${SEDeD}
  102. ${SEDdA}MOUNTED_GETMNTINFO${SEDdB}MOUNTED_GETMNTINFO${SEDdC}1${SEDdD}
  103. ${SEDuA}MOUNTED_GETMNTINFO${SEDuB}MOUNTED_GETMNTINFO${SEDuC}1${SEDuD}
  104. ${SEDeA}MOUNTED_GETMNTINFO${SEDeB}MOUNTED_GETMNTINFO${SEDeC}1${SEDeD}
  105. CONFEOF
  106. cat >> conftest.sed <<CONFEOF
  107. ${SEDdA}STAT_STATFS2_FSIZE${SEDdB}STAT_STATFS2_FSIZE${SEDdC}1${SEDdD}
  108. ${SEDuA}STAT_STATFS2_FSIZE${SEDuB}STAT_STATFS2_FSIZE${SEDuC}1${SEDuD}
  109. ${SEDeA}STAT_STATFS2_FSIZE${SEDeB}STAT_STATFS2_FSIZE${SEDeC}1${SEDeD}
  110. ${SEDdA}GETGROUPS_T${SEDdB}GETGROUPS_T${SEDdC}int${SEDdD}
  111. ${SEDuA}GETGROUPS_T${SEDuB}GETGROUPS_T${SEDuC}int${SEDuD}
  112. ${SEDeA}GETGROUPS_T${SEDeB}GETGROUPS_T${SEDeC}int${SEDeD}
  113. ${SEDdA}TIME_WITH_SYS_TIME${SEDdB}TIME_WITH_SYS_TIME${SEDdC}1${SEDdD}
  114. ${SEDuA}TIME_WITH_SYS_TIME${SEDuB}TIME_WITH_SYS_TIME${SEDuC}1${SEDuD}
  115. ${SEDeA}TIME_WITH_SYS_TIME${SEDeB}TIME_WITH_SYS_TIME${SEDeC}1${SEDeD}
  116. CONFEOF
  117. cat >> conftest.sed <<CONFEOF
  118. ${SEDdA}HAVE_STRING_H${SEDdB}HAVE_STRING_H${SEDdC}1${SEDdD}
  119. ${SEDuA}HAVE_STRING_H${SEDuB}HAVE_STRING_H${SEDuC}1${SEDuD}
  120. ${SEDeA}HAVE_STRING_H${SEDeB}HAVE_STRING_H${SEDeC}1${SEDeD}
  121. ${SEDdA}HAVE_FCNTL_H${SEDdB}HAVE_FCNTL_H${SEDdC}1${SEDdD}
  122. ${SEDuA}HAVE_FCNTL_H${SEDuB}HAVE_FCNTL_H${SEDuC}1${SEDuD}
  123. ${SEDeA}HAVE_FCNTL_H${SEDeB}HAVE_FCNTL_H${SEDeC}1${SEDeD}
  124. ${SEDdA}HAVE_LIMITS_H${SEDdB}HAVE_LIMITS_H${SEDdC}1${SEDdD}
  125. ${SEDuA}HAVE_LIMITS_H${SEDuB}HAVE_LIMITS_H${SEDuC}1${SEDuD}
  126. ${SEDeA}HAVE_LIMITS_H${SEDeB}HAVE_LIMITS_H${SEDeC}1${SEDeD}
  127. CONFEOF
  128. cat >> conftest.sed <<CONFEOF
  129. ${SEDdA}HAVE_SYS_TIME_H${SEDdB}HAVE_SYS_TIME_H${SEDdC}1${SEDdD}
  130. ${SEDuA}HAVE_SYS_TIME_H${SEDuB}HAVE_SYS_TIME_H${SEDuC}1${SEDuD}
  131. ${SEDeA}HAVE_SYS_TIME_H${SEDeB}HAVE_SYS_TIME_H${SEDeC}1${SEDeD}
  132. ${SEDdA}HAVE_ERRNO_H${SEDdB}HAVE_ERRNO_H${SEDdC}1${SEDdD}
  133. ${SEDuA}HAVE_ERRNO_H${SEDuB}HAVE_ERRNO_H${SEDuC}1${SEDuD}
  134. ${SEDeA}HAVE_ERRNO_H${SEDeB}HAVE_ERRNO_H${SEDeC}1${SEDeD}
  135. ${SEDdA}HAVE_UNISTD_H${SEDdB}HAVE_UNISTD_H${SEDdC}1${SEDdD}
  136. ${SEDuA}HAVE_UNISTD_H${SEDuB}HAVE_UNISTD_H${SEDuC}1${SEDuD}
  137. ${SEDeA}HAVE_UNISTD_H${SEDeB}HAVE_UNISTD_H${SEDeC}1${SEDeD}
  138. CONFEOF
  139. cat >> conftest.sed <<CONFEOF
  140. ${SEDdA}HAVE_STRERROR${SEDdB}HAVE_STRERROR${SEDdC}1${SEDdD}
  141. ${SEDuA}HAVE_STRERROR${SEDuB}HAVE_STRERROR${SEDuC}1${SEDuD}
  142. ${SEDeA}HAVE_STRERROR${SEDeB}HAVE_STRERROR${SEDeC}1${SEDeD}
  143. ${SEDdA}HAVE_FTIME${SEDdB}HAVE_FTIME${SEDdC}1${SEDdD}
  144. ${SEDuA}HAVE_FTIME${SEDuB}HAVE_FTIME${SEDuC}1${SEDuD}
  145. ${SEDeA}HAVE_FTIME${SEDeB}HAVE_FTIME${SEDeC}1${SEDeD}
  146. ${SEDdA}HAVE_GETCWD${SEDdB}HAVE_GETCWD${SEDdC}1${SEDdD}
  147. ${SEDuA}HAVE_GETCWD${SEDuB}HAVE_GETCWD${SEDuC}1${SEDuD}
  148. ${SEDeA}HAVE_GETCWD${SEDeB}HAVE_GETCWD${SEDeC}1${SEDeD}
  149. CONFEOF
  150. cat >> conftest.sed <<CONFEOF
  151. ${SEDdA}HAVE_MKFIFO${SEDdB}HAVE_MKFIFO${SEDdC}1${SEDdD}
  152. ${SEDuA}HAVE_MKFIFO${SEDuB}HAVE_MKFIFO${SEDuC}1${SEDuD}
  153. ${SEDeA}HAVE_MKFIFO${SEDeB}HAVE_MKFIFO${SEDeC}1${SEDeD}
  154. ${SEDdA}HAVE_MEMCPY${SEDdB}HAVE_MEMCPY${SEDdC}1${SEDdD}
  155. ${SEDuA}HAVE_MEMCPY${SEDuB}HAVE_MEMCPY${SEDuC}1${SEDuD}
  156. ${SEDeA}HAVE_MEMCPY${SEDeB}HAVE_MEMCPY${SEDeC}1${SEDeD}
  157. ${SEDdA}HAVE_BCOPY${SEDdB}HAVE_BCOPY${SEDdC}1${SEDdD}
  158. ${SEDuA}HAVE_BCOPY${SEDuB}HAVE_BCOPY${SEDuC}1${SEDuD}
  159. ${SEDeA}HAVE_BCOPY${SEDeB}HAVE_BCOPY${SEDeC}1${SEDeD}
  160. CONFEOF
  161. cat >> conftest.sed <<CONFEOF
  162. ${SEDdA}HAVE_GETTIMEOFDAY${SEDdB}HAVE_GETTIMEOFDAY${SEDdC}1${SEDdD}
  163. ${SEDuA}HAVE_GETTIMEOFDAY${SEDuB}HAVE_GETTIMEOFDAY${SEDuC}1${SEDuD}
  164. ${SEDeA}HAVE_GETTIMEOFDAY${SEDeB}HAVE_GETTIMEOFDAY${SEDeC}1${SEDeD}
  165. ${SEDdA}HAVE_FTRUNCATE${SEDdB}HAVE_FTRUNCATE${SEDdC}1${SEDdD}
  166. ${SEDuA}HAVE_FTRUNCATE${SEDuB}HAVE_FTRUNCATE${SEDuC}1${SEDuD}
  167. ${SEDeA}HAVE_FTRUNCATE${SEDeB}HAVE_FTRUNCATE${SEDeC}1${SEDeD}
  168. ${SEDdA}HAVE_VPRINTF${SEDdB}HAVE_VPRINTF${SEDdC}1${SEDdD}
  169. ${SEDuA}HAVE_VPRINTF${SEDuB}HAVE_VPRINTF${SEDuC}1${SEDuD}
  170. ${SEDeA}HAVE_VPRINTF${SEDeB}HAVE_VPRINTF${SEDeC}1${SEDeD}
  171. CONFEOF
  172. cat >> conftest.sed <<CONFEOF
  173. ${SEDdA}HAVE_ST_BLOCKS${SEDdB}HAVE_ST_BLOCKS${SEDdC}1${SEDdD}
  174. ${SEDuA}HAVE_ST_BLOCKS${SEDuB}HAVE_ST_BLOCKS${SEDuC}1${SEDuD}
  175. ${SEDeA}HAVE_ST_BLOCKS${SEDeB}HAVE_ST_BLOCKS${SEDeC}1${SEDeD}
  176. ${SEDdA}HAVE_UTIME_NULL${SEDdB}HAVE_UTIME_NULL${SEDdC}1${SEDdD}
  177. ${SEDuA}HAVE_UTIME_NULL${SEDuB}HAVE_UTIME_NULL${SEDuC}1${SEDuD}
  178. ${SEDeA}HAVE_UTIME_NULL${SEDeB}HAVE_UTIME_NULL${SEDeC}1${SEDeD}
  179.  
  180. CONFEOF
  181. # This sed command replaces #undef's with comments.  This is necessary, for
  182. # example, in the case of _POSIX_SOURCE, which is predefined and required
  183. # on some systems where configure will not decide to define it in
  184. # config.h.
  185. cat >> conftest.sed <<\CONFEOF
  186. s,^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  187. CONFEOF
  188. rm -f conftest.h
  189. # Break up the sed commands because old seds have small limits.
  190. maxsedlines=20
  191. cp $top_srcdir/$file.in conftest.h1
  192. while :
  193. do
  194.   lines=`grep -c . conftest.sed`
  195.   if test -z "$lines" || test "$lines" -eq 0; then break; fi
  196.   rm -f conftest.s1 conftest.s2 conftest.h2
  197.   sed ${maxsedlines}q conftest.sed > conftest.s1 # Like head -20.
  198.   sed 1,${maxsedlines}d conftest.sed > conftest.s2 # Like tail +21.
  199.   sed -f conftest.s1 < conftest.h1 > conftest.h2
  200.   rm -f conftest.s1 conftest.h1 conftest.sed
  201.   mv conftest.h2 conftest.h1
  202.   mv conftest.s2 conftest.sed
  203. done
  204. rm -f conftest