home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / gnu / diffutils-2.6-src.lha / src / build / diffutils-2.6 / config.status < prev    next >
Text File  |  1994-02-23  |  7KB  |  191 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/diffutils/diffutils-2.6-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/diffutils/diffutils-2.6-amiga/configure/ amigados
  14.     exec ${CONFIG_SHELL-/bin/sh} /ISO/diffutils/diffutils-2.6-amiga/configure/ amigados ;;
  15.     *) echo "Usage: config.status --recheck" 2>&1; exit 1 ;;
  16.   esac
  17. done
  18.  
  19. trap 'rm -fr Makefile config.h conftest*; exit 1' 1 3 15
  20. CC='gcc'
  21. CPP='gcc -E'
  22. INSTALL='/bin/install -c'
  23. INSTALL_PROGRAM='$(INSTALL)'
  24. INSTALL_DATA='$(INSTALL) -m 644'
  25. ALLOCA=''
  26. LIBS=''
  27. srcdir='/ISO/diffutils/diffutils-2.6-amiga'
  28. prefix=''
  29. exec_prefix=''
  30. prsub=''
  31. extrasub=''
  32.  
  33. top_srcdir=$srcdir
  34.  
  35. CONFIG_FILES=${CONFIG_FILES-"Makefile"}
  36. for file in .. ${CONFIG_FILES}; do if test "x$file" != x..; then
  37.   srcdir=$top_srcdir
  38.   # Remove last slash and all that follows it.  Not all systems have dirname.
  39.   dir=`echo $file|sed 's%/[^/][^/]*$%%'`
  40.   if test "$dir" != "$file"; then
  41.     test "$top_srcdir" != . && srcdir=$top_srcdir/$dir
  42.     test ! -d $dir && mkdir $dir
  43.   fi
  44.   echo creating $file
  45.   rm -f $file
  46.   echo "# Generated automatically from `echo $file|sed 's|.*/||'`.in by configure." > $file
  47.   sed -e "
  48. $prsub
  49. $extrasub
  50. s%@CC@%$CC%g
  51. s%@CPP@%$CPP%g
  52. s%@INSTALL@%$INSTALL%g
  53. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  54. s%@INSTALL_DATA@%$INSTALL_DATA%g
  55. s%@ALLOCA@%$ALLOCA%g
  56. s%@LIBS@%$LIBS%g
  57. s%@srcdir@%$srcdir%g
  58. s%@DEFS@%-DHAVE_CONFIG_H%" $top_srcdir/${file}.in >> $file
  59. fi; done
  60.  
  61. CONFIG_HEADERS=${CONFIG_HEADERS-"config.h"}
  62. for file in .. ${CONFIG_HEADERS}; do if test "x$file" != x..; then
  63. echo creating $file
  64.  
  65. # These sed commands are put into SEDDEFS when defining a macro.
  66. # They are broken into pieces to make the sed script easier to manage.
  67. # They are passed to sed as "A NAME B NAME C VALUE D", where NAME
  68. # is the cpp macro being defined and VALUE is the value it is being given.
  69. # Each defining turns into a single global substitution command.
  70. #
  71. # SEDd sets the value in "#define NAME VALUE" lines.
  72. SEDdA='s@^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  73. SEDdB='\([     ][     ]*\)[^     ]*@\1#\2'
  74. SEDdC='\3'
  75. SEDdD='@g'
  76. # SEDu turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  77. SEDuA='s@^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  78. SEDuB='\([     ]\)@\1#\2define\3'
  79. SEDuC=' '
  80. SEDuD='\4@g'
  81. # SEDe turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  82. SEDeA='s@^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  83. SEDeB='$@\1#\2define\3'
  84. SEDeC=' '
  85. SEDeD='@g'
  86. rm -f conftest.sed
  87. cat >> conftest.sed <<CONFEOF
  88. ${SEDdA}DIRENT${SEDdB}DIRENT${SEDdC}1${SEDdD}
  89. ${SEDuA}DIRENT${SEDuB}DIRENT${SEDuC}1${SEDuD}
  90. ${SEDeA}DIRENT${SEDeB}DIRENT${SEDeC}1${SEDeD}
  91. ${SEDdA}HAVE_UNISTD_H${SEDdB}HAVE_UNISTD_H${SEDdC}1${SEDdD}
  92. ${SEDuA}HAVE_UNISTD_H${SEDuB}HAVE_UNISTD_H${SEDuC}1${SEDuD}
  93. ${SEDeA}HAVE_UNISTD_H${SEDeB}HAVE_UNISTD_H${SEDeC}1${SEDeD}
  94. ${SEDdA}HAVE_FCNTL_H${SEDdB}HAVE_FCNTL_H${SEDdC}1${SEDdD}
  95. ${SEDuA}HAVE_FCNTL_H${SEDuB}HAVE_FCNTL_H${SEDuC}1${SEDuD}
  96. ${SEDeA}HAVE_FCNTL_H${SEDeB}HAVE_FCNTL_H${SEDeC}1${SEDeD}
  97. CONFEOF
  98. cat >> conftest.sed <<CONFEOF
  99. ${SEDdA}HAVE_LIMITS_H${SEDdB}HAVE_LIMITS_H${SEDdC}1${SEDdD}
  100. ${SEDuA}HAVE_LIMITS_H${SEDuB}HAVE_LIMITS_H${SEDuC}1${SEDuD}
  101. ${SEDeA}HAVE_LIMITS_H${SEDeB}HAVE_LIMITS_H${SEDeC}1${SEDeD}
  102. ${SEDdA}HAVE_STDLIB_H${SEDdB}HAVE_STDLIB_H${SEDdC}1${SEDdD}
  103. ${SEDuA}HAVE_STDLIB_H${SEDuB}HAVE_STDLIB_H${SEDuC}1${SEDuD}
  104. ${SEDeA}HAVE_STDLIB_H${SEDeB}HAVE_STDLIB_H${SEDeC}1${SEDeD}
  105. ${SEDdA}HAVE_STRING_H${SEDdB}HAVE_STRING_H${SEDdC}1${SEDdD}
  106. ${SEDuA}HAVE_STRING_H${SEDuB}HAVE_STRING_H${SEDuC}1${SEDuD}
  107. ${SEDeA}HAVE_STRING_H${SEDeB}HAVE_STRING_H${SEDeC}1${SEDeD}
  108. CONFEOF
  109. cat >> conftest.sed <<CONFEOF
  110. ${SEDdA}HAVE_SYS_WAIT_H${SEDdB}HAVE_SYS_WAIT_H${SEDdC}1${SEDdD}
  111. ${SEDuA}HAVE_SYS_WAIT_H${SEDuB}HAVE_SYS_WAIT_H${SEDuC}1${SEDuD}
  112. ${SEDeA}HAVE_SYS_WAIT_H${SEDeB}HAVE_SYS_WAIT_H${SEDeC}1${SEDeD}
  113. ${SEDdA}HAVE_TIME_H${SEDdB}HAVE_TIME_H${SEDdC}1${SEDdD}
  114. ${SEDuA}HAVE_TIME_H${SEDuB}HAVE_TIME_H${SEDuC}1${SEDuD}
  115. ${SEDeA}HAVE_TIME_H${SEDeB}HAVE_TIME_H${SEDeC}1${SEDeD}
  116. ${SEDdA}RETSIGTYPE${SEDdB}RETSIGTYPE${SEDdC}void${SEDdD}
  117. ${SEDuA}RETSIGTYPE${SEDuB}RETSIGTYPE${SEDuC}void${SEDuD}
  118. ${SEDeA}RETSIGTYPE${SEDeB}RETSIGTYPE${SEDeC}void${SEDeD}
  119. CONFEOF
  120. cat >> conftest.sed <<CONFEOF
  121. ${SEDdA}HAVE_DUP2${SEDdB}HAVE_DUP2${SEDdC}1${SEDdD}
  122. ${SEDuA}HAVE_DUP2${SEDuB}HAVE_DUP2${SEDuC}1${SEDuD}
  123. ${SEDeA}HAVE_DUP2${SEDeB}HAVE_DUP2${SEDeC}1${SEDeD}
  124. ${SEDdA}HAVE_MEMCHR${SEDdB}HAVE_MEMCHR${SEDdC}1${SEDdD}
  125. ${SEDuA}HAVE_MEMCHR${SEDuB}HAVE_MEMCHR${SEDuC}1${SEDuD}
  126. ${SEDeA}HAVE_MEMCHR${SEDeB}HAVE_MEMCHR${SEDeC}1${SEDeD}
  127. ${SEDdA}HAVE_SIGACTION${SEDdB}HAVE_SIGACTION${SEDdC}1${SEDdD}
  128. ${SEDuA}HAVE_SIGACTION${SEDuB}HAVE_SIGACTION${SEDuC}1${SEDuD}
  129. ${SEDeA}HAVE_SIGACTION${SEDeB}HAVE_SIGACTION${SEDeC}1${SEDeD}
  130. CONFEOF
  131. cat >> conftest.sed <<CONFEOF
  132. ${SEDdA}HAVE_STRERROR${SEDdB}HAVE_STRERROR${SEDdC}1${SEDdD}
  133. ${SEDuA}HAVE_STRERROR${SEDuB}HAVE_STRERROR${SEDuC}1${SEDuD}
  134. ${SEDeA}HAVE_STRERROR${SEDeB}HAVE_STRERROR${SEDeC}1${SEDeD}
  135. ${SEDdA}HAVE_WAITPID${SEDdB}HAVE_WAITPID${SEDdC}1${SEDdD}
  136. ${SEDuA}HAVE_WAITPID${SEDuB}HAVE_WAITPID${SEDuC}1${SEDuD}
  137. ${SEDeA}HAVE_WAITPID${SEDeB}HAVE_WAITPID${SEDeC}1${SEDeD}
  138. ${SEDdA}vfork${SEDdB}vfork${SEDdC}fork${SEDdD}
  139. ${SEDuA}vfork${SEDuB}vfork${SEDuC}fork${SEDuD}
  140. ${SEDeA}vfork${SEDeB}vfork${SEDeC}fork${SEDeD}
  141. CONFEOF
  142. cat >> conftest.sed <<CONFEOF
  143. ${SEDdA}HAVE_VPRINTF${SEDdB}HAVE_VPRINTF${SEDdC}1${SEDdD}
  144. ${SEDuA}HAVE_VPRINTF${SEDuB}HAVE_VPRINTF${SEDuC}1${SEDuD}
  145. ${SEDeA}HAVE_VPRINTF${SEDeB}HAVE_VPRINTF${SEDeC}1${SEDeD}
  146. ${SEDdA}HAVE_ST_BLKSIZE${SEDdB}HAVE_ST_BLKSIZE${SEDdC}1${SEDdD}
  147. ${SEDuA}HAVE_ST_BLKSIZE${SEDuB}HAVE_ST_BLKSIZE${SEDuC}1${SEDuD}
  148. ${SEDeA}HAVE_ST_BLKSIZE${SEDeB}HAVE_ST_BLKSIZE${SEDeC}1${SEDeD}
  149.  
  150. CONFEOF
  151. # This sed command replaces #undef's with comments.  This is necessary, for
  152. # example, in the case of _POSIX_SOURCE, which is predefined and required
  153. # on some systems where configure will not decide to define it in
  154. # config.h.
  155. cat >> conftest.sed <<\CONFEOF
  156. s,^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  157. CONFEOF
  158. rm -f conftest.h
  159. # Break up the sed commands because old seds have small limits.
  160. maxsedlines=20
  161. cp $top_srcdir/$file.in conftest.h1
  162. while :
  163. do
  164.   lines=`grep -c . conftest.sed`
  165.   if test -z "$lines" || test "$lines" -eq 0; then break; fi
  166.   rm -f conftest.s1 conftest.s2 conftest.h2
  167.   sed ${maxsedlines}q conftest.sed > conftest.s1 # Like head -20.
  168.   sed 1,${maxsedlines}d conftest.sed > conftest.s2 # Like tail +21.
  169.   sed -f conftest.s1 < conftest.h1 > conftest.h2
  170.   rm -f conftest.s1 conftest.h1 conftest.sed
  171.   mv conftest.h2 conftest.h1
  172.   mv conftest.s2 conftest.sed
  173. done
  174. rm -f conftest.sed conftest.h
  175. echo "/* $file.  Generated automatically by configure.  */" > conftest.h
  176. cat conftest.h1 >> conftest.h
  177. rm -f conftest.h1
  178. if cmp -s $file conftest.h 2>/dev/null; then
  179.   # The file exists and we would not be changing it.
  180.   echo "$file is unchanged"
  181.   rm -f conftest.h
  182. else
  183.   rm -f $file
  184.   mv conftest.h $file
  185. fi
  186. fi; done
  187.  
  188.  
  189.  
  190. exit 0
  191.