Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | |
| 3 | # Guess values for system-dependent variables and create Makefiles. |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 4 | # Generated automatically using autoconf version 2.13 |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6 | # |
| 7 | # This configure script is free software; the Free Software Foundation |
| 8 | # gives unlimited permission to copy, distribute and modify it. |
| 9 | |
| 10 | # Defaults: |
| 11 | ac_help= |
| 12 | ac_default_prefix=/usr/local |
| 13 | # Any additions from configure.in: |
| 14 | ac_help="$ac_help |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 15 | --with-cc=COMPILER select compiler to use" |
| 16 | ac_help="$ac_help |
| 17 | --with-linker=LINKER select linker to use" |
| 18 | ac_help="$ac_help |
| 19 | --with-ccopts=CCOPTS select compiler command line options" |
| 20 | ac_help="$ac_help |
| 21 | --with-ldopts=LDOPTS select linker command line options" |
| 22 | ac_help="$ac_help |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 23 | --with-root-prefix=PREFIX override prefix variable for files to be placed in the root" |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 24 | ac_help="$ac_help |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 25 | --enable-dll-shlibs select DLL libraries" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 26 | ac_help="$ac_help |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 27 | --enable-elf-shlibs select ELF shared libraries" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 28 | ac_help="$ac_help |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 29 | --enable-bsd-shlibs select BSD shared libraries" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 30 | ac_help="$ac_help |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 31 | --enable-profile build profiling libraries" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 32 | ac_help="$ac_help |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 33 | --enable-checker build checker libraries" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 34 | ac_help="$ac_help |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 35 | --enable-gcc-wall enable GCC anal warnings (DON'T USE IN PRODUCTION)" |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 36 | ac_help="$ac_help |
| 37 | --enable-dynamic-e2fsck build e2fsck dynamically" |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 38 | ac_help="$ac_help |
| 39 | --enable-fsck build fsck wrapper program" |
| 40 | ac_help="$ac_help |
| 41 | --enable-old-bitops Use old (non-standard but native) bitmask operations" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 42 | |
| 43 | # Initialize some variables set by options. |
| 44 | # The variables have the same names as the options, with |
| 45 | # dashes changed to underlines. |
| 46 | build=NONE |
| 47 | cache_file=./config.cache |
| 48 | exec_prefix=NONE |
| 49 | host=NONE |
| 50 | no_create= |
| 51 | nonopt=NONE |
| 52 | no_recursion= |
| 53 | prefix=NONE |
| 54 | program_prefix=NONE |
| 55 | program_suffix=NONE |
| 56 | program_transform_name=s,x,x, |
| 57 | silent= |
| 58 | site= |
| 59 | srcdir= |
| 60 | target=NONE |
| 61 | verbose= |
| 62 | x_includes=NONE |
| 63 | x_libraries=NONE |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 64 | bindir='${exec_prefix}/bin' |
| 65 | sbindir='${exec_prefix}/sbin' |
| 66 | libexecdir='${exec_prefix}/libexec' |
| 67 | datadir='${prefix}/share' |
| 68 | sysconfdir='${prefix}/etc' |
| 69 | sharedstatedir='${prefix}/com' |
| 70 | localstatedir='${prefix}/var' |
| 71 | libdir='${exec_prefix}/lib' |
| 72 | includedir='${prefix}/include' |
| 73 | oldincludedir='/usr/include' |
| 74 | infodir='${prefix}/info' |
| 75 | mandir='${prefix}/man' |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 76 | |
| 77 | # Initialize some other variables. |
| 78 | subdirs= |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 79 | MFLAGS= MAKEFLAGS= |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 80 | SHELL=${CONFIG_SHELL-/bin/sh} |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 81 | # Maximum number of lines to put in a shell here document. |
| 82 | ac_max_here_lines=12 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 83 | |
| 84 | ac_prev= |
| 85 | for ac_option |
| 86 | do |
| 87 | |
| 88 | # If the previous option needs an argument, assign it. |
| 89 | if test -n "$ac_prev"; then |
| 90 | eval "$ac_prev=\$ac_option" |
| 91 | ac_prev= |
| 92 | continue |
| 93 | fi |
| 94 | |
| 95 | case "$ac_option" in |
| 96 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
| 97 | *) ac_optarg= ;; |
| 98 | esac |
| 99 | |
| 100 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 101 | |
| 102 | case "$ac_option" in |
| 103 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 104 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 105 | ac_prev=bindir ;; |
| 106 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 107 | bindir="$ac_optarg" ;; |
| 108 | |
| 109 | -build | --build | --buil | --bui | --bu) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 110 | ac_prev=build ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 111 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 112 | build="$ac_optarg" ;; |
| 113 | |
| 114 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 115 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 116 | ac_prev=cache_file ;; |
| 117 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 118 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 119 | cache_file="$ac_optarg" ;; |
| 120 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 121 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 122 | ac_prev=datadir ;; |
| 123 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 124 | | --da=*) |
| 125 | datadir="$ac_optarg" ;; |
| 126 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 127 | -disable-* | --disable-*) |
| 128 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
| 129 | # Reject names that are not valid shell variable names. |
| 130 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
| 131 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
| 132 | fi |
| 133 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 134 | eval "enable_${ac_feature}=no" ;; |
| 135 | |
| 136 | -enable-* | --enable-*) |
| 137 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
| 138 | # Reject names that are not valid shell variable names. |
| 139 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
| 140 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
| 141 | fi |
| 142 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 143 | case "$ac_option" in |
| 144 | *=*) ;; |
| 145 | *) ac_optarg=yes ;; |
| 146 | esac |
| 147 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
| 148 | |
| 149 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 150 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 151 | | --exec | --exe | --ex) |
| 152 | ac_prev=exec_prefix ;; |
| 153 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 154 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 155 | | --exec=* | --exe=* | --ex=*) |
| 156 | exec_prefix="$ac_optarg" ;; |
| 157 | |
| 158 | -gas | --gas | --ga | --g) |
| 159 | # Obsolete; use --with-gas. |
| 160 | with_gas=yes ;; |
| 161 | |
| 162 | -help | --help | --hel | --he) |
| 163 | # Omit some internal or obsolete options to make the list less imposing. |
| 164 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 165 | cat << EOF |
| 166 | Usage: configure [options] [host] |
| 167 | Options: [defaults in brackets after descriptions] |
| 168 | Configuration: |
| 169 | --cache-file=FILE cache test results in FILE |
| 170 | --help print this message |
| 171 | --no-create do not create output files |
| 172 | --quiet, --silent do not print \`checking...' messages |
| 173 | --version print the version of autoconf that created configure |
| 174 | Directory and file names: |
| 175 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 176 | [$ac_default_prefix] |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 177 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 178 | [same as prefix] |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 179 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
| 180 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
| 181 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
| 182 | --datadir=DIR read-only architecture-independent data in DIR |
| 183 | [PREFIX/share] |
| 184 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
| 185 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
| 186 | [PREFIX/com] |
| 187 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
| 188 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
| 189 | --includedir=DIR C header files in DIR [PREFIX/include] |
| 190 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
| 191 | --infodir=DIR info documentation in DIR [PREFIX/info] |
| 192 | --mandir=DIR man documentation in DIR [PREFIX/man] |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 193 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
| 194 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 195 | --program-suffix=SUFFIX append SUFFIX to installed program names |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 196 | --program-transform-name=PROGRAM |
| 197 | run sed PROGRAM on installed program names |
| 198 | EOF |
| 199 | cat << EOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 200 | Host type: |
| 201 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
| 202 | --host=HOST configure for HOST [guessed] |
| 203 | --target=TARGET configure for TARGET [TARGET=HOST] |
| 204 | Features and packages: |
| 205 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 206 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 207 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 208 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 209 | --x-includes=DIR X include files are in DIR |
| 210 | --x-libraries=DIR X library files are in DIR |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 211 | EOF |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 212 | if test -n "$ac_help"; then |
| 213 | echo "--enable and --with options recognized:$ac_help" |
| 214 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 215 | exit 0 ;; |
| 216 | |
| 217 | -host | --host | --hos | --ho) |
| 218 | ac_prev=host ;; |
| 219 | -host=* | --host=* | --hos=* | --ho=*) |
| 220 | host="$ac_optarg" ;; |
| 221 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 222 | -includedir | --includedir | --includedi | --included | --include \ |
| 223 | | --includ | --inclu | --incl | --inc) |
| 224 | ac_prev=includedir ;; |
| 225 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 226 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 227 | includedir="$ac_optarg" ;; |
| 228 | |
| 229 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 230 | ac_prev=infodir ;; |
| 231 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 232 | infodir="$ac_optarg" ;; |
| 233 | |
| 234 | -libdir | --libdir | --libdi | --libd) |
| 235 | ac_prev=libdir ;; |
| 236 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 237 | libdir="$ac_optarg" ;; |
| 238 | |
| 239 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 240 | | --libexe | --libex | --libe) |
| 241 | ac_prev=libexecdir ;; |
| 242 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 243 | | --libexe=* | --libex=* | --libe=*) |
| 244 | libexecdir="$ac_optarg" ;; |
| 245 | |
| 246 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 247 | | --localstate | --localstat | --localsta | --localst \ |
| 248 | | --locals | --local | --loca | --loc | --lo) |
| 249 | ac_prev=localstatedir ;; |
| 250 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 251 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 252 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 253 | localstatedir="$ac_optarg" ;; |
| 254 | |
| 255 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 256 | ac_prev=mandir ;; |
| 257 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 258 | mandir="$ac_optarg" ;; |
| 259 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 260 | -nfp | --nfp | --nf) |
| 261 | # Obsolete; use --without-fp. |
| 262 | with_fp=no ;; |
| 263 | |
| 264 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 265 | | --no-cr | --no-c) |
| 266 | no_create=yes ;; |
| 267 | |
| 268 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 269 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 270 | no_recursion=yes ;; |
| 271 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 272 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 273 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 274 | | --oldin | --oldi | --old | --ol | --o) |
| 275 | ac_prev=oldincludedir ;; |
| 276 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 277 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 278 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 279 | oldincludedir="$ac_optarg" ;; |
| 280 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 281 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 282 | ac_prev=prefix ;; |
| 283 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 284 | prefix="$ac_optarg" ;; |
| 285 | |
| 286 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 287 | | --program-pre | --program-pr | --program-p) |
| 288 | ac_prev=program_prefix ;; |
| 289 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 290 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 291 | program_prefix="$ac_optarg" ;; |
| 292 | |
| 293 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 294 | | --program-suf | --program-su | --program-s) |
| 295 | ac_prev=program_suffix ;; |
| 296 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 297 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 298 | program_suffix="$ac_optarg" ;; |
| 299 | |
| 300 | -program-transform-name | --program-transform-name \ |
| 301 | | --program-transform-nam | --program-transform-na \ |
| 302 | | --program-transform-n | --program-transform- \ |
| 303 | | --program-transform | --program-transfor \ |
| 304 | | --program-transfo | --program-transf \ |
| 305 | | --program-trans | --program-tran \ |
| 306 | | --progr-tra | --program-tr | --program-t) |
| 307 | ac_prev=program_transform_name ;; |
| 308 | -program-transform-name=* | --program-transform-name=* \ |
| 309 | | --program-transform-nam=* | --program-transform-na=* \ |
| 310 | | --program-transform-n=* | --program-transform-=* \ |
| 311 | | --program-transform=* | --program-transfor=* \ |
| 312 | | --program-transfo=* | --program-transf=* \ |
| 313 | | --program-trans=* | --program-tran=* \ |
| 314 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 315 | program_transform_name="$ac_optarg" ;; |
| 316 | |
| 317 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 318 | | -silent | --silent | --silen | --sile | --sil) |
| 319 | silent=yes ;; |
| 320 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 321 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 322 | ac_prev=sbindir ;; |
| 323 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 324 | | --sbi=* | --sb=*) |
| 325 | sbindir="$ac_optarg" ;; |
| 326 | |
| 327 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 328 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 329 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 330 | | --sha | --sh) |
| 331 | ac_prev=sharedstatedir ;; |
| 332 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 333 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 334 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 335 | | --sha=* | --sh=*) |
| 336 | sharedstatedir="$ac_optarg" ;; |
| 337 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 338 | -site | --site | --sit) |
| 339 | ac_prev=site ;; |
| 340 | -site=* | --site=* | --sit=*) |
| 341 | site="$ac_optarg" ;; |
| 342 | |
| 343 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 344 | ac_prev=srcdir ;; |
| 345 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 346 | srcdir="$ac_optarg" ;; |
| 347 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 348 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 349 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 350 | ac_prev=sysconfdir ;; |
| 351 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 352 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 353 | sysconfdir="$ac_optarg" ;; |
| 354 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 355 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 356 | ac_prev=target ;; |
| 357 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 358 | target="$ac_optarg" ;; |
| 359 | |
| 360 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 361 | verbose=yes ;; |
| 362 | |
| 363 | -version | --version | --versio | --versi | --vers) |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 364 | echo "configure generated by autoconf version 2.13" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 365 | exit 0 ;; |
| 366 | |
| 367 | -with-* | --with-*) |
| 368 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
| 369 | # Reject names that are not valid shell variable names. |
| 370 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
| 371 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
| 372 | fi |
| 373 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 374 | case "$ac_option" in |
| 375 | *=*) ;; |
| 376 | *) ac_optarg=yes ;; |
| 377 | esac |
| 378 | eval "with_${ac_package}='$ac_optarg'" ;; |
| 379 | |
| 380 | -without-* | --without-*) |
| 381 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
| 382 | # Reject names that are not valid shell variable names. |
| 383 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
| 384 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
| 385 | fi |
| 386 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 387 | eval "with_${ac_package}=no" ;; |
| 388 | |
| 389 | --x) |
| 390 | # Obsolete; use --with-x. |
| 391 | with_x=yes ;; |
| 392 | |
| 393 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 394 | | --x-incl | --x-inc | --x-in | --x-i) |
| 395 | ac_prev=x_includes ;; |
| 396 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 397 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 398 | x_includes="$ac_optarg" ;; |
| 399 | |
| 400 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 401 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 402 | ac_prev=x_libraries ;; |
| 403 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 404 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 405 | x_libraries="$ac_optarg" ;; |
| 406 | |
| 407 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
| 408 | ;; |
| 409 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 410 | *) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 411 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
| 412 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
| 413 | fi |
| 414 | if test "x$nonopt" != xNONE; then |
| 415 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
| 416 | fi |
| 417 | nonopt="$ac_option" |
| 418 | ;; |
| 419 | |
| 420 | esac |
| 421 | done |
| 422 | |
| 423 | if test -n "$ac_prev"; then |
| 424 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
| 425 | fi |
| 426 | |
| 427 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
| 428 | |
| 429 | # File descriptor usage: |
| 430 | # 0 standard input |
| 431 | # 1 file creation |
| 432 | # 2 errors and warnings |
| 433 | # 3 some systems may open it to /dev/tty |
| 434 | # 4 used on the Kubota Titan |
| 435 | # 6 checking for... messages and results |
| 436 | # 5 compiler messages saved in config.log |
| 437 | if test "$silent" = yes; then |
| 438 | exec 6>/dev/null |
| 439 | else |
| 440 | exec 6>&1 |
| 441 | fi |
| 442 | exec 5>./config.log |
| 443 | |
| 444 | echo "\ |
| 445 | This file contains any messages produced by compilers while |
| 446 | running configure, to aid debugging if configure makes a mistake. |
| 447 | " 1>&5 |
| 448 | |
| 449 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 450 | # Also quote any args containing shell metacharacters. |
| 451 | ac_configure_args= |
| 452 | for ac_arg |
| 453 | do |
| 454 | case "$ac_arg" in |
| 455 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 456 | | --no-cr | --no-c) ;; |
| 457 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 458 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
| 459 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
| 460 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 461 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
| 462 | esac |
| 463 | done |
| 464 | |
| 465 | # NLS nuisances. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 466 | # Only set these to C if already set. These must not be set unconditionally |
| 467 | # because not all systems understand e.g. LANG=C (notably SCO). |
| 468 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
| 469 | # Non-C LC_CTYPE values break the ctype check. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 470 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 471 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
| 472 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
| 473 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 474 | |
| 475 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 476 | rm -rf conftest* confdefs.h |
| 477 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 478 | echo > confdefs.h |
| 479 | |
| 480 | # A filename unique to this package, relative to the directory that |
| 481 | # configure is in, which we can look for to find out if srcdir is correct. |
| 482 | ac_unique_file=version.h |
| 483 | |
| 484 | # Find the source files, if location was not specified. |
| 485 | if test -z "$srcdir"; then |
| 486 | ac_srcdir_defaulted=yes |
| 487 | # Try the directory containing this script, then its parent. |
| 488 | ac_prog=$0 |
| 489 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
| 490 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
| 491 | srcdir=$ac_confdir |
| 492 | if test ! -r $srcdir/$ac_unique_file; then |
| 493 | srcdir=.. |
| 494 | fi |
| 495 | else |
| 496 | ac_srcdir_defaulted=no |
| 497 | fi |
| 498 | if test ! -r $srcdir/$ac_unique_file; then |
| 499 | if test "$ac_srcdir_defaulted" = yes; then |
| 500 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
| 501 | else |
| 502 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
| 503 | fi |
| 504 | fi |
| 505 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
| 506 | |
| 507 | # Prefer explicitly selected file to automatically selected ones. |
| 508 | if test -z "$CONFIG_SITE"; then |
| 509 | if test "x$prefix" != xNONE; then |
| 510 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 511 | else |
| 512 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 513 | fi |
| 514 | fi |
| 515 | for ac_site_file in $CONFIG_SITE; do |
| 516 | if test -r "$ac_site_file"; then |
| 517 | echo "loading site script $ac_site_file" |
| 518 | . "$ac_site_file" |
| 519 | fi |
| 520 | done |
| 521 | |
| 522 | if test -r "$cache_file"; then |
| 523 | echo "loading cache $cache_file" |
| 524 | . $cache_file |
| 525 | else |
| 526 | echo "creating cache $cache_file" |
| 527 | > $cache_file |
| 528 | fi |
| 529 | |
| 530 | ac_ext=c |
| 531 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 532 | ac_cpp='$CPP $CPPFLAGS' |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 533 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 534 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 535 | cross_compiling=$ac_cv_prog_cc_cross |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 536 | |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 537 | ac_exeext= |
| 538 | ac_objext=o |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 539 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
| 540 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
| 541 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
| 542 | ac_n= ac_c=' |
| 543 | ' ac_t=' ' |
| 544 | else |
| 545 | ac_n=-n ac_c= ac_t= |
| 546 | fi |
| 547 | else |
| 548 | ac_n= ac_c='\c' ac_t= |
| 549 | fi |
| 550 | |
| 551 | |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 552 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 553 | MCONFIG=./MCONFIG |
| 554 | |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 555 | BINARY_TYPE=bin |
| 556 | E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \ |
| 557 | | awk '{print $3}' | tr \" " " | awk '{print $1}'` |
| 558 | DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \ |
| 559 | | tr \" " "` |
| 560 | MONTH=`echo $DATE | awk -F- '{print $2}'` |
| 561 | YEAR=`echo $DATE | awk -F- '{print $3}'` |
| 562 | |
Theodore Ts'o | 14790ed | 1999-01-12 23:32:52 +0000 | [diff] [blame] | 563 | if expr $YEAR ">" 1900 > /dev/null ; then |
| 564 | E2FSPROGS_YEAR=$YEAR |
| 565 | elif expr $YEAR ">" 90 >/dev/null ; then |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 566 | E2FSPROGS_YEAR=19$YEAR |
| 567 | else |
| 568 | E2FSPROGS_YEAR=20$YEAR |
| 569 | fi |
| 570 | |
| 571 | case $MONTH in |
| 572 | Jan) E2FSPROGS_MONTH="January" ;; |
| 573 | Feb) E2FSPROGS_MONTH="February" ;; |
| 574 | Mar) E2FSPROGS_MONTH="March" ;; |
| 575 | Apr) E2FSPROGS_MONTH="April" ;; |
| 576 | May) E2FSPROGS_MONTH="May" ;; |
| 577 | Jun) E2FSPROGS_MONTH="June" ;; |
| 578 | Jul) E2FSPROGS_MONTH="July" ;; |
| 579 | Aug) E2FSPROGS_MONTH="August" ;; |
| 580 | Sep) E2FSPROGS_MONTH="September" ;; |
| 581 | Oct) E2FSPROGS_MONTH="October" ;; |
| 582 | Nov) E2FSPROGS_MONTH="November" ;; |
| 583 | Dec) E2FSPROGS_MONTH="December" ;; |
| 584 | *) echo "Unknown month $MONTH??" ;; |
| 585 | esac |
| 586 | |
| 587 | unset DATE MONTH YEAR |
| 588 | echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" |
| 589 | echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" |
| 590 | |
| 591 | |
| 592 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 593 | |
| 594 | ac_aux_dir= |
| 595 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 596 | if test -f $ac_dir/install-sh; then |
| 597 | ac_aux_dir=$ac_dir |
| 598 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 599 | break |
| 600 | elif test -f $ac_dir/install.sh; then |
| 601 | ac_aux_dir=$ac_dir |
| 602 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 603 | break |
| 604 | fi |
| 605 | done |
| 606 | if test -z "$ac_aux_dir"; then |
| 607 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
| 608 | fi |
| 609 | ac_config_guess=$ac_aux_dir/config.guess |
| 610 | ac_config_sub=$ac_aux_dir/config.sub |
| 611 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
| 612 | |
| 613 | |
| 614 | # Make sure we can run config.sub. |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 615 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 616 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
| 617 | fi |
| 618 | |
| 619 | echo $ac_n "checking host system type""... $ac_c" 1>&6 |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 620 | echo "configure:621: checking host system type" >&5 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 621 | |
| 622 | host_alias=$host |
| 623 | case "$host_alias" in |
| 624 | NONE) |
| 625 | case $nonopt in |
| 626 | NONE) |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 627 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 628 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
| 629 | fi ;; |
| 630 | *) host_alias=$nonopt ;; |
| 631 | esac ;; |
| 632 | esac |
| 633 | |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 634 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 635 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 636 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 637 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 638 | echo "$ac_t""$host" 1>&6 |
| 639 | |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 640 | # Check whether --with-cc or --without-cc was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 641 | if test "${with_cc+set}" = set; then |
| 642 | withval="$with_cc" |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 643 | echo "$ac_t""CC=$withval" 1>&6 |
| 644 | CC=$withval |
| 645 | else |
| 646 | if test -z "$CC" ; then CC=cc; fi |
| 647 | echo "$ac_t""CC defaults to $CC" 1>&6 |
| 648 | fi |
| 649 | export CC |
| 650 | |
| 651 | # Check whether --with-linker or --without-linker was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 652 | if test "${with_linker+set}" = set; then |
| 653 | withval="$with_linker" |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 654 | echo "$ac_t""LD=$withval" 1>&6 |
| 655 | LD=$withval |
| 656 | else |
| 657 | if test -z "$LD" ; then LD=$CC; fi |
| 658 | echo "$ac_t""LD defaults to $LD" 1>&6 |
| 659 | fi |
| 660 | export LD |
| 661 | |
| 662 | # Check whether --with-ccopts or --without-ccopts was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 663 | if test "${with_ccopts+set}" = set; then |
| 664 | withval="$with_ccopts" |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 665 | echo "$ac_t""CCOPTS is $withval" 1>&6 |
| 666 | CCOPTS=$withval |
| 667 | CFLAGS="$CFLAGS $withval" |
| 668 | else |
| 669 | CCOPTS= |
| 670 | fi |
| 671 | |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 672 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
| 673 | echo "configure:674: checking how to run the C preprocessor" >&5 |
| 674 | # On Suns, sometimes $CPP names a directory. |
| 675 | if test -n "$CPP" && test -d "$CPP"; then |
| 676 | CPP= |
| 677 | fi |
| 678 | if test -z "$CPP"; then |
| 679 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
| 680 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 681 | else |
| 682 | # This must be in double quotes, not single quotes, because CPP may get |
| 683 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
| 684 | CPP="${CC-cc} -E" |
| 685 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 686 | # not just through cpp. |
| 687 | cat > conftest.$ac_ext <<EOF |
| 688 | #line 689 "configure" |
| 689 | #include "confdefs.h" |
| 690 | #include <assert.h> |
| 691 | Syntax Error |
| 692 | EOF |
| 693 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 694 | { (eval echo configure:695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 695 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 696 | if test -z "$ac_err"; then |
| 697 | : |
| 698 | else |
| 699 | echo "$ac_err" >&5 |
| 700 | echo "configure: failed program was:" >&5 |
| 701 | cat conftest.$ac_ext >&5 |
| 702 | rm -rf conftest* |
| 703 | CPP="${CC-cc} -E -traditional-cpp" |
| 704 | cat > conftest.$ac_ext <<EOF |
| 705 | #line 706 "configure" |
| 706 | #include "confdefs.h" |
| 707 | #include <assert.h> |
| 708 | Syntax Error |
| 709 | EOF |
| 710 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 711 | { (eval echo configure:712: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 712 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 713 | if test -z "$ac_err"; then |
| 714 | : |
| 715 | else |
| 716 | echo "$ac_err" >&5 |
| 717 | echo "configure: failed program was:" >&5 |
| 718 | cat conftest.$ac_ext >&5 |
| 719 | rm -rf conftest* |
| 720 | CPP="${CC-cc} -nologo -E" |
| 721 | cat > conftest.$ac_ext <<EOF |
| 722 | #line 723 "configure" |
| 723 | #include "confdefs.h" |
| 724 | #include <assert.h> |
| 725 | Syntax Error |
| 726 | EOF |
| 727 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 728 | { (eval echo configure:729: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 729 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 730 | if test -z "$ac_err"; then |
| 731 | : |
| 732 | else |
| 733 | echo "$ac_err" >&5 |
| 734 | echo "configure: failed program was:" >&5 |
| 735 | cat conftest.$ac_ext >&5 |
| 736 | rm -rf conftest* |
| 737 | CPP=/lib/cpp |
| 738 | fi |
| 739 | rm -f conftest* |
| 740 | fi |
| 741 | rm -f conftest* |
| 742 | fi |
| 743 | rm -f conftest* |
| 744 | ac_cv_prog_CPP="$CPP" |
| 745 | fi |
| 746 | CPP="$ac_cv_prog_CPP" |
| 747 | else |
| 748 | ac_cv_prog_CPP="$CPP" |
| 749 | fi |
| 750 | echo "$ac_t""$CPP" 1>&6 |
| 751 | |
| 752 | ac_safe=`echo "linux/fs.h" | sed 'y%./+-%__p_%'` |
| 753 | echo $ac_n "checking for linux/fs.h""... $ac_c" 1>&6 |
| 754 | echo "configure:755: checking for linux/fs.h" >&5 |
| 755 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 756 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 757 | else |
| 758 | cat > conftest.$ac_ext <<EOF |
| 759 | #line 760 "configure" |
| 760 | #include "confdefs.h" |
| 761 | #include <linux/fs.h> |
| 762 | EOF |
| 763 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 764 | { (eval echo configure:765: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 765 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 766 | if test -z "$ac_err"; then |
| 767 | rm -rf conftest* |
| 768 | eval "ac_cv_header_$ac_safe=yes" |
| 769 | else |
| 770 | echo "$ac_err" >&5 |
| 771 | echo "configure: failed program was:" >&5 |
| 772 | cat conftest.$ac_ext >&5 |
| 773 | rm -rf conftest* |
| 774 | eval "ac_cv_header_$ac_safe=no" |
| 775 | fi |
| 776 | rm -f conftest* |
| 777 | fi |
| 778 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 779 | echo "$ac_t""yes" 1>&6 |
| 780 | linux_headers=yes |
| 781 | else |
| 782 | echo "$ac_t""no" 1>&6 |
| 783 | linux_headers=no |
| 784 | fi |
| 785 | |
| 786 | if test "$linux_headers" = yes; then |
| 787 | cat >> confdefs.h <<\EOF |
| 788 | #define HAVE_LINUX_FS_H 1 |
| 789 | EOF |
| 790 | |
| 791 | else |
| 792 | LINUX_INCLUDE='-I$(top_srcdir)/include -I$(top_builddir)/include' |
| 793 | # Use this include directory with test compiles in the configure script too. |
| 794 | CPPFLAGS="$CPPFLAGS -I$srcdir/include -I./include" |
| 795 | fi |
| 796 | |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 797 | LIB_EXT=.a |
| 798 | STATIC_LIB_EXT=.a |
| 799 | PROFILE_LIB_EXT=.a |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 800 | # Check whether --with-ldopts or --without-ldopts was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 801 | if test "${with_ldopts+set}" = set; then |
| 802 | withval="$with_ldopts" |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 803 | echo "$ac_t""LDFLAGS is $withval" 1>&6 |
| 804 | LDFLAGS=$withval |
| 805 | else |
| 806 | LDFLAGS= |
| 807 | fi |
| 808 | |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 809 | # Check whether --with-root-prefix or --without-root-prefix was given. |
| 810 | if test "${with_root_prefix+set}" = set; then |
| 811 | withval="$with_root_prefix" |
| 812 | root_prefix=$withval |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 813 | else |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 814 | root_prefix=NONE |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 815 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 816 | # Check whether --enable-dll-shlibs or --disable-dll-shlibs was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 817 | if test "${enable_dll_shlibs+set}" = set; then |
| 818 | enableval="$enable_dll_shlibs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 819 | if test "$enableval" = "no" |
| 820 | then |
| 821 | DLL_CMT=# |
| 822 | MAKEFILE_DLL=/dev/null |
| 823 | echo "Disabling DLL shared libraries" |
| 824 | else |
| 825 | DLL_CMT= |
| 826 | MAKEFILE_DLL=$srcdir/lib/Makefile.dll-lib |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 827 | BINARY_TYPE=dllbin |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 828 | LIB_EXT=.sa |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 829 | echo "Enabling DLL shared libraries" |
| 830 | fi |
| 831 | |
| 832 | else |
| 833 | MAKEFILE_DLL=/dev/null |
| 834 | DLL_CMT=# |
| 835 | echo "Disabling DLL shared libraries by default" |
| 836 | |
| 837 | fi |
| 838 | |
| 839 | |
| 840 | |
| 841 | # Check whether --enable-elf-shlibs or --disable-elf-shlibs was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 842 | if test "${enable_elf_shlibs+set}" = set; then |
| 843 | enableval="$enable_elf_shlibs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 844 | if test "$enableval" = "no" |
| 845 | then |
| 846 | ELF_CMT=# |
| 847 | MAKEFILE_ELF=/dev/null |
| 848 | echo "Disabling ELF shared libraries" |
| 849 | else |
| 850 | ELF_CMT= |
| 851 | MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 852 | BINARY_TYPE=elfbin |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 853 | LIB_EXT=.so |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 854 | echo "Enabling ELF shared libraries" |
| 855 | fi |
| 856 | |
| 857 | else |
| 858 | MAKEFILE_ELF=/dev/null |
| 859 | ELF_CMT=# |
| 860 | echo "Disabling ELF shared libraries by default" |
| 861 | |
| 862 | fi |
| 863 | |
| 864 | |
| 865 | |
| 866 | # Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 867 | if test "${enable_bsd_shlibs+set}" = set; then |
| 868 | enableval="$enable_bsd_shlibs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 869 | if test "$enableval" = "no" |
| 870 | then |
| 871 | BSDLIB_CMT=# |
| 872 | MAKEFILE_BSDLIB=/dev/null |
| 873 | echo "Disabling BSD shared libraries" |
| 874 | else |
| 875 | BSDLIB_CMT= |
| 876 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 877 | LIB_EXT=.so |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 878 | echo "Enabling BSD shared libraries" |
| 879 | fi |
| 880 | |
| 881 | else |
| 882 | MAKEFILE_BSDLIB=/dev/null |
| 883 | BSDLIB_CMT=# |
| 884 | echo "Disabling BSD shared libraries by default" |
| 885 | |
| 886 | fi |
| 887 | |
| 888 | |
| 889 | |
| 890 | # Check whether --enable-profile or --disable-profile was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 891 | if test "${enable_profile+set}" = set; then |
| 892 | enableval="$enable_profile" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 893 | if test "$enableval" = "no" |
| 894 | then |
| 895 | PROFILE_CMT=# |
| 896 | MAKEFILE_PROFILE=/dev/null |
| 897 | echo "Disabling profiling libraries" |
| 898 | else |
| 899 | PROFILE_CMT= |
| 900 | MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 901 | PROFILED_LIB_EXT=_p.a |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 902 | echo "Building profiling libraries" |
| 903 | fi |
| 904 | |
| 905 | else |
| 906 | PROFILE_CMT=# |
| 907 | MAKEFILE_PROFILE=/dev/null |
| 908 | echo "Disabling profiling libraries by default" |
| 909 | |
| 910 | fi |
| 911 | |
| 912 | |
| 913 | |
| 914 | # Check whether --enable-checker or --disable-checker was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 915 | if test "${enable_checker+set}" = set; then |
| 916 | enableval="$enable_checker" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 917 | if test "$enableval" = "no" |
| 918 | then |
| 919 | CHECKER_CMT=# |
| 920 | MAKEFILE_CHECKER=/dev/null |
| 921 | echo "Disabling checker libraries" |
| 922 | else |
| 923 | CHECKER_CMT= |
| 924 | MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker |
| 925 | echo "Building checker libraries" |
| 926 | fi |
| 927 | |
| 928 | else |
| 929 | CHECKER_CMT=# |
| 930 | MAKEFILE_CHECKER=/dev/null |
| 931 | echo "Disabling checker libraries by default" |
| 932 | |
| 933 | fi |
| 934 | |
| 935 | |
| 936 | |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 937 | |
| 938 | |
| 939 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 940 | # Check whether --enable-gcc-wall or --disable-gcc-wall was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 941 | if test "${enable_gcc_wall+set}" = set; then |
| 942 | enableval="$enable_gcc_wall" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 943 | if test "$enableval" = "no" |
| 944 | then |
| 945 | W=# |
| 946 | echo "Disabling GCC warnings" |
| 947 | else |
| 948 | W= |
| 949 | echo "Enabling GCC warnings" |
| 950 | fi |
| 951 | |
| 952 | else |
| 953 | W=# |
| 954 | echo "Disabling GCC warnings by default" |
| 955 | |
| 956 | fi |
| 957 | |
| 958 | |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 959 | # Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 960 | if test "${enable_dynamic_e2fsck+set}" = set; then |
| 961 | enableval="$enable_dynamic_e2fsck" |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 962 | if test "$enableval" = "no" |
| 963 | then |
| 964 | E2FSCK_TYPE=static |
| 965 | echo "Building e2fsck statically" |
| 966 | else |
| 967 | E2FSCK_TYPE=shared |
| 968 | echo "Building e2fsck dynamically" |
| 969 | fi |
| 970 | |
| 971 | else |
| 972 | E2FSCK_TYPE=static |
| 973 | echo "Building e2fsck statically by default" |
| 974 | |
| 975 | fi |
| 976 | |
| 977 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 978 | # Check whether --enable-fsck or --disable-fsck was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 979 | if test "${enable_fsck+set}" = set; then |
| 980 | enableval="$enable_fsck" |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 981 | if test "$enableval" = "no" |
| 982 | then |
| 983 | FSCK_PROG='' FSCK_MAN='' |
| 984 | echo "Not building fsck wrapper" |
| 985 | else |
| 986 | FSCK_PROG=fsck FSCK_MAN=fsck.8 |
| 987 | echo "Building fsck wrapper" |
| 988 | fi |
| 989 | |
| 990 | else |
| 991 | case "$host_os" in |
| 992 | gnu*) |
| 993 | FSCK_PROG='' FSCK_MAN='' |
| 994 | echo "Not building fsck wrapper by default" |
| 995 | ;; |
| 996 | *) |
| 997 | FSCK_PROG=fsck FSCK_MAN=fsck.8 |
| 998 | echo "Building fsck wrapper by default" |
| 999 | esac |
| 1000 | |
| 1001 | fi |
| 1002 | |
| 1003 | |
| 1004 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1005 | MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library |
| 1006 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 1007 | # Check whether --enable-old-bitops or --disable-old-bitops was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1008 | if test "${enable_old_bitops+set}" = set; then |
| 1009 | enableval="$enable_old_bitops" |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 1010 | if test "$enableval" = "no" |
| 1011 | then |
| 1012 | echo "Using new (standard) bitmask operations" |
| 1013 | else |
| 1014 | cat >> confdefs.h <<\EOF |
| 1015 | #define EXT2_OLD_BITOPS 1 |
| 1016 | EOF |
| 1017 | |
| 1018 | echo "Using old (native) bitmask operations" |
| 1019 | |
| 1020 | fi |
| 1021 | |
| 1022 | else |
| 1023 | echo "Using standard bitmask operations by default" |
| 1024 | |
| 1025 | fi |
| 1026 | |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1027 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1028 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1029 | echo "configure:1030: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1030 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1031 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
| 1032 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1033 | else |
| 1034 | cat > conftestmake <<\EOF |
| 1035 | all: |
| 1036 | @echo 'ac_maketemp="${MAKE}"' |
| 1037 | EOF |
| 1038 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 1039 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
| 1040 | if test -n "$ac_maketemp"; then |
| 1041 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 1042 | else |
| 1043 | eval ac_cv_prog_make_${ac_make}_set=no |
| 1044 | fi |
| 1045 | rm -f conftestmake |
| 1046 | fi |
| 1047 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
| 1048 | echo "$ac_t""yes" 1>&6 |
| 1049 | SET_MAKE= |
| 1050 | else |
| 1051 | echo "$ac_t""no" 1>&6 |
| 1052 | SET_MAKE="MAKE=${MAKE-make}" |
| 1053 | fi |
| 1054 | |
| 1055 | # Extract the first word of "ln", so it can be a program name with args. |
| 1056 | set dummy ln; ac_word=$2 |
| 1057 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1058 | echo "configure:1059: checking for $ac_word" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1059 | if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then |
| 1060 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1061 | else |
| 1062 | case "$LN" in |
| 1063 | /*) |
| 1064 | ac_cv_path_LN="$LN" # Let the user override the test with a path. |
| 1065 | ;; |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 1066 | ?:/*) |
| 1067 | ac_cv_path_LN="$LN" # Let the user override the test with a dos path. |
| 1068 | ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1069 | *) |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 1070 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1071 | ac_dummy="$PATH" |
| 1072 | for ac_dir in $ac_dummy; do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1073 | test -z "$ac_dir" && ac_dir=. |
| 1074 | if test -f $ac_dir/$ac_word; then |
| 1075 | ac_cv_path_LN="$ac_dir/$ac_word" |
| 1076 | break |
| 1077 | fi |
| 1078 | done |
| 1079 | IFS="$ac_save_ifs" |
| 1080 | test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" |
| 1081 | ;; |
| 1082 | esac |
| 1083 | fi |
| 1084 | LN="$ac_cv_path_LN" |
| 1085 | if test -n "$LN"; then |
| 1086 | echo "$ac_t""$LN" 1>&6 |
| 1087 | else |
| 1088 | echo "$ac_t""no" 1>&6 |
| 1089 | fi |
| 1090 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 1091 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1092 | echo "configure:1093: checking whether ln -s works" >&5 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 1093 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
| 1094 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1095 | else |
| 1096 | rm -f conftestdata |
| 1097 | if ln -s X conftestdata 2>/dev/null |
| 1098 | then |
| 1099 | rm -f conftestdata |
| 1100 | ac_cv_prog_LN_S="ln -s" |
| 1101 | else |
| 1102 | ac_cv_prog_LN_S=ln |
| 1103 | fi |
| 1104 | fi |
| 1105 | LN_S="$ac_cv_prog_LN_S" |
| 1106 | if test "$ac_cv_prog_LN_S" = "ln -s"; then |
| 1107 | echo "$ac_t""yes" 1>&6 |
| 1108 | else |
| 1109 | echo "$ac_t""no" 1>&6 |
| 1110 | fi |
| 1111 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1112 | # Extract the first word of "mv", so it can be a program name with args. |
| 1113 | set dummy mv; ac_word=$2 |
| 1114 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1115 | echo "configure:1116: checking for $ac_word" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1116 | if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then |
| 1117 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1118 | else |
| 1119 | case "$MV" in |
| 1120 | /*) |
| 1121 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 1122 | ;; |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 1123 | ?:/*) |
| 1124 | ac_cv_path_MV="$MV" # Let the user override the test with a dos path. |
| 1125 | ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1126 | *) |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 1127 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1128 | ac_dummy="$PATH" |
| 1129 | for ac_dir in $ac_dummy; do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1130 | test -z "$ac_dir" && ac_dir=. |
| 1131 | if test -f $ac_dir/$ac_word; then |
| 1132 | ac_cv_path_MV="$ac_dir/$ac_word" |
| 1133 | break |
| 1134 | fi |
| 1135 | done |
| 1136 | IFS="$ac_save_ifs" |
| 1137 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 1138 | ;; |
| 1139 | esac |
| 1140 | fi |
| 1141 | MV="$ac_cv_path_MV" |
| 1142 | if test -n "$MV"; then |
| 1143 | echo "$ac_t""$MV" 1>&6 |
| 1144 | else |
| 1145 | echo "$ac_t""no" 1>&6 |
| 1146 | fi |
| 1147 | |
| 1148 | # Extract the first word of "cp", so it can be a program name with args. |
| 1149 | set dummy cp; ac_word=$2 |
| 1150 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1151 | echo "configure:1152: checking for $ac_word" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1152 | if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then |
| 1153 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1154 | else |
| 1155 | case "$CP" in |
| 1156 | /*) |
| 1157 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 1158 | ;; |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 1159 | ?:/*) |
| 1160 | ac_cv_path_CP="$CP" # Let the user override the test with a dos path. |
| 1161 | ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1162 | *) |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 1163 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1164 | ac_dummy="$PATH" |
| 1165 | for ac_dir in $ac_dummy; do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1166 | test -z "$ac_dir" && ac_dir=. |
| 1167 | if test -f $ac_dir/$ac_word; then |
| 1168 | ac_cv_path_CP="$ac_dir/$ac_word" |
| 1169 | break |
| 1170 | fi |
| 1171 | done |
| 1172 | IFS="$ac_save_ifs" |
| 1173 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 1174 | ;; |
| 1175 | esac |
| 1176 | fi |
| 1177 | CP="$ac_cv_path_CP" |
| 1178 | if test -n "$CP"; then |
| 1179 | echo "$ac_t""$CP" 1>&6 |
| 1180 | else |
| 1181 | echo "$ac_t""no" 1>&6 |
| 1182 | fi |
| 1183 | |
| 1184 | # Extract the first word of "rm", so it can be a program name with args. |
| 1185 | set dummy rm; ac_word=$2 |
| 1186 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1187 | echo "configure:1188: checking for $ac_word" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1188 | if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then |
| 1189 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1190 | else |
| 1191 | case "$RM" in |
| 1192 | /*) |
| 1193 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 1194 | ;; |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 1195 | ?:/*) |
| 1196 | ac_cv_path_RM="$RM" # Let the user override the test with a dos path. |
| 1197 | ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1198 | *) |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 1199 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1200 | ac_dummy="$PATH" |
| 1201 | for ac_dir in $ac_dummy; do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1202 | test -z "$ac_dir" && ac_dir=. |
| 1203 | if test -f $ac_dir/$ac_word; then |
| 1204 | ac_cv_path_RM="$ac_dir/$ac_word" |
| 1205 | break |
| 1206 | fi |
| 1207 | done |
| 1208 | IFS="$ac_save_ifs" |
| 1209 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 1210 | ;; |
| 1211 | esac |
| 1212 | fi |
| 1213 | RM="$ac_cv_path_RM" |
| 1214 | if test -n "$RM"; then |
| 1215 | echo "$ac_t""$RM" 1>&6 |
| 1216 | else |
| 1217 | echo "$ac_t""no" 1>&6 |
| 1218 | fi |
| 1219 | |
| 1220 | # Extract the first word of "chmod", so it can be a program name with args. |
| 1221 | set dummy chmod; ac_word=$2 |
| 1222 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1223 | echo "configure:1224: checking for $ac_word" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1224 | if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then |
| 1225 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1226 | else |
| 1227 | case "$CHMOD" in |
| 1228 | /*) |
| 1229 | ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. |
| 1230 | ;; |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 1231 | ?:/*) |
| 1232 | ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a dos path. |
| 1233 | ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1234 | *) |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 1235 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1236 | ac_dummy="$PATH" |
| 1237 | for ac_dir in $ac_dummy; do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1238 | test -z "$ac_dir" && ac_dir=. |
| 1239 | if test -f $ac_dir/$ac_word; then |
| 1240 | ac_cv_path_CHMOD="$ac_dir/$ac_word" |
| 1241 | break |
| 1242 | fi |
| 1243 | done |
| 1244 | IFS="$ac_save_ifs" |
| 1245 | test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":" |
| 1246 | ;; |
| 1247 | esac |
| 1248 | fi |
| 1249 | CHMOD="$ac_cv_path_CHMOD" |
| 1250 | if test -n "$CHMOD"; then |
| 1251 | echo "$ac_t""$CHMOD" 1>&6 |
| 1252 | else |
| 1253 | echo "$ac_t""no" 1>&6 |
| 1254 | fi |
| 1255 | |
| 1256 | # Extract the first word of "awk", so it can be a program name with args. |
| 1257 | set dummy awk; ac_word=$2 |
| 1258 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1259 | echo "configure:1260: checking for $ac_word" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1260 | if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then |
| 1261 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1262 | else |
| 1263 | case "$AWK" in |
| 1264 | /*) |
| 1265 | ac_cv_path_AWK="$AWK" # Let the user override the test with a path. |
| 1266 | ;; |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 1267 | ?:/*) |
| 1268 | ac_cv_path_AWK="$AWK" # Let the user override the test with a dos path. |
| 1269 | ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1270 | *) |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 1271 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1272 | ac_dummy="$PATH" |
| 1273 | for ac_dir in $ac_dummy; do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1274 | test -z "$ac_dir" && ac_dir=. |
| 1275 | if test -f $ac_dir/$ac_word; then |
| 1276 | ac_cv_path_AWK="$ac_dir/$ac_word" |
| 1277 | break |
| 1278 | fi |
| 1279 | done |
| 1280 | IFS="$ac_save_ifs" |
| 1281 | test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk" |
| 1282 | ;; |
| 1283 | esac |
| 1284 | fi |
| 1285 | AWK="$ac_cv_path_AWK" |
| 1286 | if test -n "$AWK"; then |
| 1287 | echo "$ac_t""$AWK" 1>&6 |
| 1288 | else |
| 1289 | echo "$ac_t""no" 1>&6 |
| 1290 | fi |
| 1291 | |
| 1292 | # Extract the first word of "sed", so it can be a program name with args. |
| 1293 | set dummy sed; ac_word=$2 |
| 1294 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1295 | echo "configure:1296: checking for $ac_word" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1296 | if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then |
| 1297 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1298 | else |
| 1299 | case "$SED" in |
| 1300 | /*) |
| 1301 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 1302 | ;; |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 1303 | ?:/*) |
| 1304 | ac_cv_path_SED="$SED" # Let the user override the test with a dos path. |
| 1305 | ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1306 | *) |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 1307 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1308 | ac_dummy="$PATH" |
| 1309 | for ac_dir in $ac_dummy; do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1310 | test -z "$ac_dir" && ac_dir=. |
| 1311 | if test -f $ac_dir/$ac_word; then |
| 1312 | ac_cv_path_SED="$ac_dir/$ac_word" |
| 1313 | break |
| 1314 | fi |
| 1315 | done |
| 1316 | IFS="$ac_save_ifs" |
| 1317 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 1318 | ;; |
| 1319 | esac |
| 1320 | fi |
| 1321 | SED="$ac_cv_path_SED" |
| 1322 | if test -n "$SED"; then |
| 1323 | echo "$ac_t""$SED" 1>&6 |
| 1324 | else |
| 1325 | echo "$ac_t""no" 1>&6 |
| 1326 | fi |
| 1327 | |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 1328 | # Extract the first word of "perl", so it can be a program name with args. |
| 1329 | set dummy perl; ac_word=$2 |
| 1330 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1331 | echo "configure:1332: checking for $ac_word" >&5 |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 1332 | if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then |
| 1333 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1334 | else |
| 1335 | case "$PERL" in |
| 1336 | /*) |
| 1337 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 1338 | ;; |
| 1339 | ?:/*) |
| 1340 | ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path. |
| 1341 | ;; |
| 1342 | *) |
| 1343 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1344 | ac_dummy="$PATH" |
| 1345 | for ac_dir in $ac_dummy; do |
| 1346 | test -z "$ac_dir" && ac_dir=. |
| 1347 | if test -f $ac_dir/$ac_word; then |
| 1348 | ac_cv_path_PERL="$ac_dir/$ac_word" |
| 1349 | break |
| 1350 | fi |
| 1351 | done |
| 1352 | IFS="$ac_save_ifs" |
| 1353 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl" |
| 1354 | ;; |
| 1355 | esac |
| 1356 | fi |
| 1357 | PERL="$ac_cv_path_PERL" |
| 1358 | if test -n "$PERL"; then |
| 1359 | echo "$ac_t""$PERL" 1>&6 |
| 1360 | else |
| 1361 | echo "$ac_t""no" 1>&6 |
| 1362 | fi |
| 1363 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1364 | echo $ac_n "checking build system type""... $ac_c" 1>&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1365 | echo "configure:1366: checking build system type" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1366 | |
| 1367 | build_alias=$build |
| 1368 | case "$build_alias" in |
| 1369 | NONE) |
| 1370 | case $nonopt in |
| 1371 | NONE) build_alias=$host_alias ;; |
| 1372 | *) build_alias=$nonopt ;; |
| 1373 | esac ;; |
| 1374 | esac |
| 1375 | |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 1376 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1377 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1378 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1379 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1380 | echo "$ac_t""$build" 1>&6 |
| 1381 | |
| 1382 | if test $host != $build; then |
| 1383 | ac_tool_prefix=${host_alias}- |
| 1384 | else |
| 1385 | ac_tool_prefix= |
| 1386 | fi |
| 1387 | |
| 1388 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 1389 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
| 1390 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1391 | echo "configure:1392: checking for $ac_word" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1392 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
| 1393 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1394 | else |
| 1395 | if test -n "$AR"; then |
| 1396 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 1397 | else |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 1398 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1399 | ac_dummy="$PATH" |
| 1400 | for ac_dir in $ac_dummy; do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1401 | test -z "$ac_dir" && ac_dir=. |
| 1402 | if test -f $ac_dir/$ac_word; then |
| 1403 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 1404 | break |
| 1405 | fi |
| 1406 | done |
| 1407 | IFS="$ac_save_ifs" |
| 1408 | fi |
| 1409 | fi |
| 1410 | AR="$ac_cv_prog_AR" |
| 1411 | if test -n "$AR"; then |
| 1412 | echo "$ac_t""$AR" 1>&6 |
| 1413 | else |
| 1414 | echo "$ac_t""no" 1>&6 |
| 1415 | fi |
| 1416 | |
| 1417 | |
| 1418 | if test -z "$ac_cv_prog_AR"; then |
| 1419 | if test -n "$ac_tool_prefix"; then |
| 1420 | # Extract the first word of "ar", so it can be a program name with args. |
| 1421 | set dummy ar; ac_word=$2 |
| 1422 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1423 | echo "configure:1424: checking for $ac_word" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1424 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
| 1425 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1426 | else |
| 1427 | if test -n "$AR"; then |
| 1428 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 1429 | else |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 1430 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1431 | ac_dummy="$PATH" |
| 1432 | for ac_dir in $ac_dummy; do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1433 | test -z "$ac_dir" && ac_dir=. |
| 1434 | if test -f $ac_dir/$ac_word; then |
| 1435 | ac_cv_prog_AR="ar" |
| 1436 | break |
| 1437 | fi |
| 1438 | done |
| 1439 | IFS="$ac_save_ifs" |
| 1440 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
| 1441 | fi |
| 1442 | fi |
| 1443 | AR="$ac_cv_prog_AR" |
| 1444 | if test -n "$AR"; then |
| 1445 | echo "$ac_t""$AR" 1>&6 |
| 1446 | else |
| 1447 | echo "$ac_t""no" 1>&6 |
| 1448 | fi |
| 1449 | |
| 1450 | else |
| 1451 | AR="ar" |
| 1452 | fi |
| 1453 | fi |
| 1454 | |
| 1455 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 1456 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 1457 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1458 | echo "configure:1459: checking for $ac_word" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1459 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
| 1460 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1461 | else |
| 1462 | if test -n "$RANLIB"; then |
| 1463 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 1464 | else |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 1465 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1466 | ac_dummy="$PATH" |
| 1467 | for ac_dir in $ac_dummy; do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1468 | test -z "$ac_dir" && ac_dir=. |
| 1469 | if test -f $ac_dir/$ac_word; then |
| 1470 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 1471 | break |
| 1472 | fi |
| 1473 | done |
| 1474 | IFS="$ac_save_ifs" |
| 1475 | fi |
| 1476 | fi |
| 1477 | RANLIB="$ac_cv_prog_RANLIB" |
| 1478 | if test -n "$RANLIB"; then |
| 1479 | echo "$ac_t""$RANLIB" 1>&6 |
| 1480 | else |
| 1481 | echo "$ac_t""no" 1>&6 |
| 1482 | fi |
| 1483 | |
| 1484 | |
| 1485 | if test -z "$ac_cv_prog_RANLIB"; then |
| 1486 | if test -n "$ac_tool_prefix"; then |
| 1487 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 1488 | set dummy ranlib; ac_word=$2 |
| 1489 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1490 | echo "configure:1491: checking for $ac_word" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1491 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
| 1492 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1493 | else |
| 1494 | if test -n "$RANLIB"; then |
| 1495 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 1496 | else |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 1497 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1498 | ac_dummy="$PATH" |
| 1499 | for ac_dir in $ac_dummy; do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1500 | test -z "$ac_dir" && ac_dir=. |
| 1501 | if test -f $ac_dir/$ac_word; then |
| 1502 | ac_cv_prog_RANLIB="ranlib" |
| 1503 | break |
| 1504 | fi |
| 1505 | done |
| 1506 | IFS="$ac_save_ifs" |
| 1507 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
| 1508 | fi |
| 1509 | fi |
| 1510 | RANLIB="$ac_cv_prog_RANLIB" |
| 1511 | if test -n "$RANLIB"; then |
| 1512 | echo "$ac_t""$RANLIB" 1>&6 |
| 1513 | else |
| 1514 | echo "$ac_t""no" 1>&6 |
| 1515 | fi |
| 1516 | |
| 1517 | else |
| 1518 | RANLIB=":" |
| 1519 | fi |
| 1520 | fi |
| 1521 | |
| 1522 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 1523 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 1524 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1525 | echo "configure:1526: checking for $ac_word" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1526 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
| 1527 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1528 | else |
| 1529 | if test -n "$STRIP"; then |
| 1530 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 1531 | else |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 1532 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1533 | ac_dummy="$PATH" |
| 1534 | for ac_dir in $ac_dummy; do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1535 | test -z "$ac_dir" && ac_dir=. |
| 1536 | if test -f $ac_dir/$ac_word; then |
| 1537 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 1538 | break |
| 1539 | fi |
| 1540 | done |
| 1541 | IFS="$ac_save_ifs" |
| 1542 | fi |
| 1543 | fi |
| 1544 | STRIP="$ac_cv_prog_STRIP" |
| 1545 | if test -n "$STRIP"; then |
| 1546 | echo "$ac_t""$STRIP" 1>&6 |
| 1547 | else |
| 1548 | echo "$ac_t""no" 1>&6 |
| 1549 | fi |
| 1550 | |
| 1551 | |
| 1552 | if test -z "$ac_cv_prog_STRIP"; then |
| 1553 | if test -n "$ac_tool_prefix"; then |
| 1554 | # Extract the first word of "strip", so it can be a program name with args. |
| 1555 | set dummy strip; ac_word=$2 |
| 1556 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1557 | echo "configure:1558: checking for $ac_word" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1558 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
| 1559 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1560 | else |
| 1561 | if test -n "$STRIP"; then |
| 1562 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 1563 | else |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 1564 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1565 | ac_dummy="$PATH" |
| 1566 | for ac_dir in $ac_dummy; do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1567 | test -z "$ac_dir" && ac_dir=. |
| 1568 | if test -f $ac_dir/$ac_word; then |
| 1569 | ac_cv_prog_STRIP="strip" |
| 1570 | break |
| 1571 | fi |
| 1572 | done |
| 1573 | IFS="$ac_save_ifs" |
| 1574 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" |
| 1575 | fi |
| 1576 | fi |
| 1577 | STRIP="$ac_cv_prog_STRIP" |
| 1578 | if test -n "$STRIP"; then |
| 1579 | echo "$ac_t""$STRIP" 1>&6 |
| 1580 | else |
| 1581 | echo "$ac_t""no" 1>&6 |
| 1582 | fi |
| 1583 | |
| 1584 | else |
| 1585 | STRIP=":" |
| 1586 | fi |
| 1587 | fi |
| 1588 | |
| 1589 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1590 | set dummy gcc; ac_word=$2 |
| 1591 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1592 | echo "configure:1593: checking for $ac_word" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1593 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 1594 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1595 | else |
| 1596 | if test -n "$CC"; then |
| 1597 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1598 | else |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 1599 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1600 | ac_dummy="$PATH" |
| 1601 | for ac_dir in $ac_dummy; do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1602 | test -z "$ac_dir" && ac_dir=. |
| 1603 | if test -f $ac_dir/$ac_word; then |
| 1604 | ac_cv_prog_CC="gcc" |
| 1605 | break |
| 1606 | fi |
| 1607 | done |
| 1608 | IFS="$ac_save_ifs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1609 | fi |
| 1610 | fi |
| 1611 | CC="$ac_cv_prog_CC" |
| 1612 | if test -n "$CC"; then |
| 1613 | echo "$ac_t""$CC" 1>&6 |
| 1614 | else |
| 1615 | echo "$ac_t""no" 1>&6 |
| 1616 | fi |
| 1617 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1618 | if test -z "$CC"; then |
| 1619 | # Extract the first word of "cc", so it can be a program name with args. |
| 1620 | set dummy cc; ac_word=$2 |
| 1621 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1622 | echo "configure:1623: checking for $ac_word" >&5 |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1623 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 1624 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1625 | else |
| 1626 | if test -n "$CC"; then |
| 1627 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1628 | else |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 1629 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1630 | ac_prog_rejected=no |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 1631 | ac_dummy="$PATH" |
| 1632 | for ac_dir in $ac_dummy; do |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1633 | test -z "$ac_dir" && ac_dir=. |
| 1634 | if test -f $ac_dir/$ac_word; then |
| 1635 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
| 1636 | ac_prog_rejected=yes |
| 1637 | continue |
| 1638 | fi |
| 1639 | ac_cv_prog_CC="cc" |
| 1640 | break |
| 1641 | fi |
| 1642 | done |
| 1643 | IFS="$ac_save_ifs" |
| 1644 | if test $ac_prog_rejected = yes; then |
| 1645 | # We found a bogon in the path, so make sure we never use it. |
| 1646 | set dummy $ac_cv_prog_CC |
| 1647 | shift |
| 1648 | if test $# -gt 0; then |
| 1649 | # We chose a different compiler from the bogus one. |
| 1650 | # However, it has the same basename, so the bogon will be chosen |
| 1651 | # first if we set CC to just the basename; use the full file name. |
| 1652 | shift |
| 1653 | set dummy "$ac_dir/$ac_word" "$@" |
| 1654 | shift |
| 1655 | ac_cv_prog_CC="$@" |
| 1656 | fi |
| 1657 | fi |
| 1658 | fi |
| 1659 | fi |
| 1660 | CC="$ac_cv_prog_CC" |
| 1661 | if test -n "$CC"; then |
| 1662 | echo "$ac_t""$CC" 1>&6 |
| 1663 | else |
| 1664 | echo "$ac_t""no" 1>&6 |
| 1665 | fi |
| 1666 | |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 1667 | if test -z "$CC"; then |
| 1668 | case "`uname -s`" in |
| 1669 | *win32* | *WIN32*) |
| 1670 | # Extract the first word of "cl", so it can be a program name with args. |
| 1671 | set dummy cl; ac_word=$2 |
| 1672 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1673 | echo "configure:1674: checking for $ac_word" >&5 |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 1674 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 1675 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1676 | else |
| 1677 | if test -n "$CC"; then |
| 1678 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1679 | else |
| 1680 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1681 | ac_dummy="$PATH" |
| 1682 | for ac_dir in $ac_dummy; do |
| 1683 | test -z "$ac_dir" && ac_dir=. |
| 1684 | if test -f $ac_dir/$ac_word; then |
| 1685 | ac_cv_prog_CC="cl" |
| 1686 | break |
| 1687 | fi |
| 1688 | done |
| 1689 | IFS="$ac_save_ifs" |
| 1690 | fi |
| 1691 | fi |
| 1692 | CC="$ac_cv_prog_CC" |
| 1693 | if test -n "$CC"; then |
| 1694 | echo "$ac_t""$CC" 1>&6 |
| 1695 | else |
| 1696 | echo "$ac_t""no" 1>&6 |
| 1697 | fi |
| 1698 | ;; |
| 1699 | esac |
| 1700 | fi |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1701 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
| 1702 | fi |
| 1703 | |
| 1704 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1705 | echo "configure:1706: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1706 | |
| 1707 | ac_ext=c |
| 1708 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 1709 | ac_cpp='$CPP $CPPFLAGS' |
| 1710 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 1711 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1712 | cross_compiling=$ac_cv_prog_cc_cross |
| 1713 | |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 1714 | cat > conftest.$ac_ext << EOF |
| 1715 | |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1716 | #line 1717 "configure" |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1717 | #include "confdefs.h" |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 1718 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1719 | main(){return(0);} |
| 1720 | EOF |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1721 | if { (eval echo configure:1722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1722 | ac_cv_prog_cc_works=yes |
| 1723 | # If we can't run a trivial program, we are probably using a cross compiler. |
| 1724 | if (./conftest; exit) 2>/dev/null; then |
| 1725 | ac_cv_prog_cc_cross=no |
| 1726 | else |
| 1727 | ac_cv_prog_cc_cross=yes |
| 1728 | fi |
| 1729 | else |
| 1730 | echo "configure: failed program was:" >&5 |
| 1731 | cat conftest.$ac_ext >&5 |
| 1732 | ac_cv_prog_cc_works=no |
| 1733 | fi |
| 1734 | rm -fr conftest* |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 1735 | ac_ext=c |
| 1736 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 1737 | ac_cpp='$CPP $CPPFLAGS' |
| 1738 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 1739 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 1740 | cross_compiling=$ac_cv_prog_cc_cross |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1741 | |
| 1742 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
| 1743 | if test $ac_cv_prog_cc_works = no; then |
| 1744 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
| 1745 | fi |
| 1746 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1747 | echo "configure:1748: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1748 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
| 1749 | cross_compiling=$ac_cv_prog_cc_cross |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1750 | |
| 1751 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1752 | echo "configure:1753: checking whether we are using GNU C" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1753 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
| 1754 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1755 | else |
| 1756 | cat > conftest.c <<EOF |
| 1757 | #ifdef __GNUC__ |
| 1758 | yes; |
| 1759 | #endif |
| 1760 | EOF |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1761 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1762: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1762 | ac_cv_prog_gcc=yes |
| 1763 | else |
| 1764 | ac_cv_prog_gcc=no |
| 1765 | fi |
| 1766 | fi |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1767 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1768 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1769 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1770 | if test $ac_cv_prog_gcc = yes; then |
| 1771 | GCC=yes |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 1772 | else |
| 1773 | GCC= |
| 1774 | fi |
| 1775 | |
| 1776 | ac_test_CFLAGS="${CFLAGS+set}" |
| 1777 | ac_save_CFLAGS="$CFLAGS" |
| 1778 | CFLAGS= |
| 1779 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1780 | echo "configure:1781: checking whether ${CC-cc} accepts -g" >&5 |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1781 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1782 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1783 | else |
| 1784 | echo 'void f(){}' > conftest.c |
| 1785 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1786 | ac_cv_prog_cc_g=yes |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1787 | else |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1788 | ac_cv_prog_cc_g=no |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1789 | fi |
| 1790 | rm -f conftest* |
| 1791 | |
| 1792 | fi |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1793 | |
| 1794 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 1795 | if test "$ac_test_CFLAGS" = set; then |
| 1796 | CFLAGS="$ac_save_CFLAGS" |
| 1797 | elif test $ac_cv_prog_cc_g = yes; then |
| 1798 | if test "$GCC" = yes; then |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1799 | CFLAGS="-g -O2" |
| 1800 | else |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 1801 | CFLAGS="-g" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1802 | fi |
| 1803 | else |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 1804 | if test "$GCC" = yes; then |
| 1805 | CFLAGS="-O2" |
| 1806 | else |
| 1807 | CFLAGS= |
| 1808 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1809 | fi |
| 1810 | |
| 1811 | # Find a good install program. We prefer a C program (faster), |
| 1812 | # so one script is as good as another. But avoid the broken or |
| 1813 | # incompatible versions: |
| 1814 | # SysV /etc/install, /usr/sbin/install |
| 1815 | # SunOS /usr/etc/install |
| 1816 | # IRIX /sbin/install |
| 1817 | # AIX /bin/install |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 1818 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1819 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 1820 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 1821 | # ./install, which can be erroneously created by make from ./install.sh. |
| 1822 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1823 | echo "configure:1824: checking for a BSD compatible install" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1824 | if test -z "$INSTALL"; then |
| 1825 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
| 1826 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1827 | else |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 1828 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1829 | for ac_dir in $PATH; do |
| 1830 | # Account for people who put trailing slashes in PATH elements. |
| 1831 | case "$ac_dir/" in |
| 1832 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
| 1833 | *) |
| 1834 | # OSF1 and SCO ODT 3.0 have their own names for install. |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 1835 | # Don't use installbsd from OSF since it installs stuff as root |
| 1836 | # by default. |
| 1837 | for ac_prog in ginstall scoinst install; do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1838 | if test -f $ac_dir/$ac_prog; then |
| 1839 | if test $ac_prog = install && |
| 1840 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
| 1841 | # AIX install. It has an incompatible calling convention. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1842 | : |
| 1843 | else |
| 1844 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
| 1845 | break 2 |
| 1846 | fi |
| 1847 | fi |
| 1848 | done |
| 1849 | ;; |
| 1850 | esac |
| 1851 | done |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1852 | IFS="$ac_save_IFS" |
| 1853 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1854 | fi |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1855 | if test "${ac_cv_path_install+set}" = set; then |
| 1856 | INSTALL="$ac_cv_path_install" |
| 1857 | else |
| 1858 | # As a last resort, use the slow shell script. We don't cache a |
| 1859 | # path for INSTALL within a source directory, because that will |
| 1860 | # break other packages using the cache if that directory is |
| 1861 | # removed, or if the path is relative. |
| 1862 | INSTALL="$ac_install_sh" |
| 1863 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1864 | fi |
| 1865 | echo "$ac_t""$INSTALL" 1>&6 |
| 1866 | |
| 1867 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 1868 | # It thinks the first close brace ends the variable substitution. |
| 1869 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 1870 | |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 1871 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
| 1872 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1873 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 1874 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1875 | |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 1876 | # See if we need a separate native compiler. |
| 1877 | if test $cross_compiling = no; then |
| 1878 | BUILD_CC="$CC" |
| 1879 | |
| 1880 | else |
| 1881 | for ac_prog in gcc cc |
| 1882 | do |
| 1883 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1884 | set dummy $ac_prog; ac_word=$2 |
| 1885 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1886 | echo "configure:1887: checking for $ac_word" >&5 |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 1887 | if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then |
| 1888 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1889 | else |
| 1890 | if test -n "$BUILD_CC"; then |
| 1891 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 1892 | else |
| 1893 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1894 | ac_dummy="$PATH" |
| 1895 | for ac_dir in $ac_dummy; do |
| 1896 | test -z "$ac_dir" && ac_dir=. |
| 1897 | if test -f $ac_dir/$ac_word; then |
| 1898 | ac_cv_prog_BUILD_CC="$ac_prog" |
| 1899 | break |
| 1900 | fi |
| 1901 | done |
| 1902 | IFS="$ac_save_ifs" |
| 1903 | fi |
| 1904 | fi |
| 1905 | BUILD_CC="$ac_cv_prog_BUILD_CC" |
| 1906 | if test -n "$BUILD_CC"; then |
| 1907 | echo "$ac_t""$BUILD_CC" 1>&6 |
| 1908 | else |
| 1909 | echo "$ac_t""no" 1>&6 |
| 1910 | fi |
| 1911 | |
| 1912 | test -n "$BUILD_CC" && break |
| 1913 | done |
| 1914 | |
| 1915 | fi |
Theodore Ts'o | c81c6ce | 1999-10-26 04:28:53 +0000 | [diff] [blame] | 1916 | for ac_hdr in stdlib.h unistd.h stdarg.h errno.h malloc.h mntent.h paths.h dirent.h getopt.h setjmp.h signal.h termios.h linux/fd.h linux/major.h sys/disklabel.h sys/sockio.h sys/time.h sys/stat.h sys/types.h net/if.h netinet/in.h |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1917 | do |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1918 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1919 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1920 | echo "configure:1921: checking for $ac_hdr" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1921 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 1922 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1923 | else |
| 1924 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1925 | #line 1926 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1926 | #include "confdefs.h" |
| 1927 | #include <$ac_hdr> |
| 1928 | EOF |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1929 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1930 | { (eval echo configure:1931: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 1931 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1932 | if test -z "$ac_err"; then |
| 1933 | rm -rf conftest* |
| 1934 | eval "ac_cv_header_$ac_safe=yes" |
| 1935 | else |
| 1936 | echo "$ac_err" >&5 |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1937 | echo "configure: failed program was:" >&5 |
| 1938 | cat conftest.$ac_ext >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1939 | rm -rf conftest* |
| 1940 | eval "ac_cv_header_$ac_safe=no" |
| 1941 | fi |
| 1942 | rm -f conftest* |
| 1943 | fi |
| 1944 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 1945 | echo "$ac_t""yes" 1>&6 |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1946 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1947 | cat >> confdefs.h <<EOF |
| 1948 | #define $ac_tr_hdr 1 |
| 1949 | EOF |
| 1950 | |
| 1951 | else |
| 1952 | echo "$ac_t""no" 1>&6 |
| 1953 | fi |
| 1954 | done |
| 1955 | |
| 1956 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1957 | echo "configure:1958: checking for vprintf" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1958 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
| 1959 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1960 | else |
| 1961 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1962 | #line 1963 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1963 | #include "confdefs.h" |
| 1964 | /* System header to define __stub macros and hopefully few prototypes, |
| 1965 | which can conflict with char vprintf(); below. */ |
| 1966 | #include <assert.h> |
| 1967 | /* Override any gcc2 internal prototype to avoid an error. */ |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1968 | /* We use char because int might match the return type of a gcc2 |
| 1969 | builtin and then its argument prototype would still apply. */ |
| 1970 | char vprintf(); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1971 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1972 | int main() { |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1973 | |
| 1974 | /* The GNU C library defines this for functions which it implements |
| 1975 | to always fail with ENOSYS. Some functions are actually named |
| 1976 | something starting with __ and the normal name is an alias. */ |
| 1977 | #if defined (__stub_vprintf) || defined (__stub___vprintf) |
| 1978 | choke me |
| 1979 | #else |
| 1980 | vprintf(); |
| 1981 | #endif |
| 1982 | |
| 1983 | ; return 0; } |
| 1984 | EOF |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1985 | if { (eval echo configure:1986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1986 | rm -rf conftest* |
| 1987 | eval "ac_cv_func_vprintf=yes" |
| 1988 | else |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1989 | echo "configure: failed program was:" >&5 |
| 1990 | cat conftest.$ac_ext >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1991 | rm -rf conftest* |
| 1992 | eval "ac_cv_func_vprintf=no" |
| 1993 | fi |
| 1994 | rm -f conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1995 | fi |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1996 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1997 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then |
| 1998 | echo "$ac_t""yes" 1>&6 |
| 1999 | cat >> confdefs.h <<\EOF |
| 2000 | #define HAVE_VPRINTF 1 |
| 2001 | EOF |
| 2002 | |
| 2003 | else |
| 2004 | echo "$ac_t""no" 1>&6 |
| 2005 | fi |
| 2006 | |
| 2007 | if test "$ac_cv_func_vprintf" != yes; then |
| 2008 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 2009 | echo "configure:2010: checking for _doprnt" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2010 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
| 2011 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2012 | else |
| 2013 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 2014 | #line 2015 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2015 | #include "confdefs.h" |
| 2016 | /* System header to define __stub macros and hopefully few prototypes, |
| 2017 | which can conflict with char _doprnt(); below. */ |
| 2018 | #include <assert.h> |
| 2019 | /* Override any gcc2 internal prototype to avoid an error. */ |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2020 | /* We use char because int might match the return type of a gcc2 |
| 2021 | builtin and then its argument prototype would still apply. */ |
| 2022 | char _doprnt(); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2023 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2024 | int main() { |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2025 | |
| 2026 | /* The GNU C library defines this for functions which it implements |
| 2027 | to always fail with ENOSYS. Some functions are actually named |
| 2028 | something starting with __ and the normal name is an alias. */ |
| 2029 | #if defined (__stub__doprnt) || defined (__stub____doprnt) |
| 2030 | choke me |
| 2031 | #else |
| 2032 | _doprnt(); |
| 2033 | #endif |
| 2034 | |
| 2035 | ; return 0; } |
| 2036 | EOF |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 2037 | if { (eval echo configure:2038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2038 | rm -rf conftest* |
| 2039 | eval "ac_cv_func__doprnt=yes" |
| 2040 | else |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2041 | echo "configure: failed program was:" >&5 |
| 2042 | cat conftest.$ac_ext >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2043 | rm -rf conftest* |
| 2044 | eval "ac_cv_func__doprnt=no" |
| 2045 | fi |
| 2046 | rm -f conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2047 | fi |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2048 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2049 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then |
| 2050 | echo "$ac_t""yes" 1>&6 |
| 2051 | cat >> confdefs.h <<\EOF |
| 2052 | #define HAVE_DOPRNT 1 |
| 2053 | EOF |
| 2054 | |
| 2055 | else |
| 2056 | echo "$ac_t""no" 1>&6 |
| 2057 | fi |
| 2058 | |
| 2059 | fi |
| 2060 | |
| 2061 | echo $ac_n "checking whether struct dirent has a d_namlen field""... $ac_c" 1>&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 2062 | echo "configure:2063: checking whether struct dirent has a d_namlen field" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2063 | if eval "test \"`echo '$''{'e2fsprogs_cv_struct_d_namlen'+set}'`\" = set"; then |
| 2064 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2065 | else |
| 2066 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 2067 | #line 2068 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2068 | #include "confdefs.h" |
| 2069 | #include <sys/types.h> |
| 2070 | #include <dirent.h> |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2071 | int main() { |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2072 | struct dirent de; de.d_namlen = 0; |
| 2073 | ; return 0; } |
| 2074 | EOF |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 2075 | if { (eval echo configure:2076: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2076 | rm -rf conftest* |
| 2077 | e2fsprogs_cv_struct_d_namlen=yes |
| 2078 | else |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2079 | echo "configure: failed program was:" >&5 |
| 2080 | cat conftest.$ac_ext >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2081 | rm -rf conftest* |
| 2082 | e2fsprogs_cv_struct_d_namlen=no |
| 2083 | fi |
| 2084 | rm -f conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2085 | fi |
| 2086 | |
| 2087 | echo "$ac_t""$e2fsprogs_cv_struct_d_namlen" 1>&6 |
| 2088 | if test "$e2fsprogs_cv_struct_d_namlen" = yes; then |
| 2089 | cat >> confdefs.h <<\EOF |
| 2090 | #define HAVE_DIRENT_NAMLEN 1 |
| 2091 | EOF |
| 2092 | |
| 2093 | fi |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 2094 | echo $ac_n "checking whether llseek declared in unistd.h""... $ac_c" 1>&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 2095 | echo "configure:2096: checking whether llseek declared in unistd.h" >&5 |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 2096 | if eval "test \"`echo '$''{'e2fsprogs_cv_have_llseek_prototype'+set}'`\" = set"; then |
| 2097 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2098 | else |
| 2099 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 2100 | #line 2101 "configure" |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 2101 | #include "confdefs.h" |
| 2102 | #include <unistd.h> |
| 2103 | int main() { |
| 2104 | extern int llseek(int); |
| 2105 | ; return 0; } |
| 2106 | EOF |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 2107 | if { (eval echo configure:2108: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 2108 | rm -rf conftest* |
| 2109 | e2fsprogs_cv_have_llseek_prototype=no |
| 2110 | else |
| 2111 | echo "configure: failed program was:" >&5 |
| 2112 | cat conftest.$ac_ext >&5 |
| 2113 | rm -rf conftest* |
| 2114 | e2fsprogs_cv_have_llseek_prototype=yes |
| 2115 | fi |
| 2116 | rm -f conftest* |
| 2117 | fi |
| 2118 | |
| 2119 | echo "$ac_t""$e2fsprogs_cv_have_llseek_prototype" 1>&6 |
| 2120 | if test "$e2fsprogs_cv_have_llseek_prototype" = yes; then |
| 2121 | cat >> confdefs.h <<\EOF |
| 2122 | #define HAVE_LLSEEK_PROTOTYPE 1 |
| 2123 | EOF |
| 2124 | |
| 2125 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2126 | if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then |
| 2127 | # if cross-compiling, with no cached values, just assume something common. |
| 2128 | ac_cv_sizeof_short=2 |
| 2129 | ac_cv_sizeof_int=4 |
| 2130 | ac_cv_sizeof_long=4 |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 2131 | ac_cv_sizeof_long_long=8 |
| 2132 | echo "configure: warning: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" 1>&2 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2133 | fi |
| 2134 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 2135 | echo "configure:2136: checking size of short" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2136 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
| 2137 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2138 | else |
| 2139 | if test "$cross_compiling" = yes; then |
| 2140 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2141 | else |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2142 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 2143 | #line 2144 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2144 | #include "confdefs.h" |
| 2145 | #include <stdio.h> |
| 2146 | main() |
| 2147 | { |
| 2148 | FILE *f=fopen("conftestval", "w"); |
| 2149 | if (!f) exit(1); |
| 2150 | fprintf(f, "%d\n", sizeof(short)); |
| 2151 | exit(0); |
| 2152 | } |
| 2153 | EOF |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 2154 | if { (eval echo configure:2155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2155 | then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2156 | ac_cv_sizeof_short=`cat conftestval` |
| 2157 | else |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2158 | echo "configure: failed program was:" >&5 |
| 2159 | cat conftest.$ac_ext >&5 |
| 2160 | rm -fr conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2161 | ac_cv_sizeof_short=0 |
| 2162 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2163 | rm -fr conftest* |
| 2164 | fi |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2165 | |
| 2166 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2167 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
| 2168 | cat >> confdefs.h <<EOF |
| 2169 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
| 2170 | EOF |
| 2171 | |
| 2172 | |
| 2173 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 2174 | echo "configure:2175: checking size of int" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2175 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
| 2176 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2177 | else |
| 2178 | if test "$cross_compiling" = yes; then |
| 2179 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2180 | else |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2181 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 2182 | #line 2183 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2183 | #include "confdefs.h" |
| 2184 | #include <stdio.h> |
| 2185 | main() |
| 2186 | { |
| 2187 | FILE *f=fopen("conftestval", "w"); |
| 2188 | if (!f) exit(1); |
| 2189 | fprintf(f, "%d\n", sizeof(int)); |
| 2190 | exit(0); |
| 2191 | } |
| 2192 | EOF |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 2193 | if { (eval echo configure:2194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2194 | then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2195 | ac_cv_sizeof_int=`cat conftestval` |
| 2196 | else |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2197 | echo "configure: failed program was:" >&5 |
| 2198 | cat conftest.$ac_ext >&5 |
| 2199 | rm -fr conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2200 | ac_cv_sizeof_int=0 |
| 2201 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2202 | rm -fr conftest* |
| 2203 | fi |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2204 | |
| 2205 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2206 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 |
| 2207 | cat >> confdefs.h <<EOF |
| 2208 | #define SIZEOF_INT $ac_cv_sizeof_int |
| 2209 | EOF |
| 2210 | |
| 2211 | |
| 2212 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 2213 | echo "configure:2214: checking size of long" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2214 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
| 2215 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2216 | else |
| 2217 | if test "$cross_compiling" = yes; then |
| 2218 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2219 | else |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2220 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 2221 | #line 2222 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2222 | #include "confdefs.h" |
| 2223 | #include <stdio.h> |
| 2224 | main() |
| 2225 | { |
| 2226 | FILE *f=fopen("conftestval", "w"); |
| 2227 | if (!f) exit(1); |
| 2228 | fprintf(f, "%d\n", sizeof(long)); |
| 2229 | exit(0); |
| 2230 | } |
| 2231 | EOF |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 2232 | if { (eval echo configure:2233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2233 | then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2234 | ac_cv_sizeof_long=`cat conftestval` |
| 2235 | else |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2236 | echo "configure: failed program was:" >&5 |
| 2237 | cat conftest.$ac_ext >&5 |
| 2238 | rm -fr conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2239 | ac_cv_sizeof_long=0 |
| 2240 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2241 | rm -fr conftest* |
| 2242 | fi |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2243 | |
| 2244 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2245 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 |
| 2246 | cat >> confdefs.h <<EOF |
| 2247 | #define SIZEOF_LONG $ac_cv_sizeof_long |
| 2248 | EOF |
| 2249 | |
| 2250 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2251 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 2252 | echo "configure:2253: checking size of long long" >&5 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2253 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
| 2254 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2255 | else |
| 2256 | if test "$cross_compiling" = yes; then |
| 2257 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2258 | else |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2259 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 2260 | #line 2261 "configure" |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2261 | #include "confdefs.h" |
| 2262 | #include <stdio.h> |
| 2263 | main() |
| 2264 | { |
| 2265 | FILE *f=fopen("conftestval", "w"); |
| 2266 | if (!f) exit(1); |
| 2267 | fprintf(f, "%d\n", sizeof(long long)); |
| 2268 | exit(0); |
| 2269 | } |
| 2270 | EOF |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 2271 | if { (eval echo configure:2272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2272 | then |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2273 | ac_cv_sizeof_long_long=`cat conftestval` |
| 2274 | else |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2275 | echo "configure: failed program was:" >&5 |
| 2276 | cat conftest.$ac_ext >&5 |
| 2277 | rm -fr conftest* |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2278 | ac_cv_sizeof_long_long=0 |
| 2279 | fi |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2280 | rm -fr conftest* |
| 2281 | fi |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2282 | |
| 2283 | fi |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2284 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
| 2285 | cat >> confdefs.h <<EOF |
| 2286 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
| 2287 | EOF |
| 2288 | |
| 2289 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2290 | SIZEOF_SHORT=$ac_cv_sizeof_short |
| 2291 | SIZEOF_INT=$ac_cv_sizeof_int |
| 2292 | SIZEOF_LONG=$ac_cv_sizeof_long |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2293 | SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long |
| 2294 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2295 | |
| 2296 | |
| 2297 | |
| 2298 | echo $ac_n "checking whether struct stat has a st_flags field""... $ac_c" 1>&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 2299 | echo "configure:2300: checking whether struct stat has a st_flags field" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2300 | if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags'+set}'`\" = set"; then |
| 2301 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2302 | else |
| 2303 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 2304 | #line 2305 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2305 | #include "confdefs.h" |
| 2306 | #include <sys/stat.h> |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2307 | int main() { |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2308 | struct stat stat; stat.st_flags = 0; |
| 2309 | ; return 0; } |
| 2310 | EOF |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 2311 | if { (eval echo configure:2312: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2312 | rm -rf conftest* |
| 2313 | e2fsprogs_cv_struct_st_flags=yes |
| 2314 | else |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2315 | echo "configure: failed program was:" >&5 |
| 2316 | cat conftest.$ac_ext >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2317 | rm -rf conftest* |
| 2318 | e2fsprogs_cv_struct_st_flags=no |
| 2319 | fi |
| 2320 | rm -f conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2321 | fi |
| 2322 | |
| 2323 | echo "$ac_t""$e2fsprogs_cv_struct_st_flags" 1>&6 |
| 2324 | if test "$e2fsprogs_cv_struct_st_flags" = yes; then |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 2325 | echo $ac_n "checking whether st_flags field is useful""... $ac_c" 1>&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 2326 | echo "configure:2327: checking whether st_flags field is useful" >&5 |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 2327 | if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags_immut'+set}'`\" = set"; then |
| 2328 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2329 | else |
| 2330 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 2331 | #line 2332 "configure" |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 2332 | #include "confdefs.h" |
| 2333 | #include <sys/stat.h> |
| 2334 | int main() { |
| 2335 | struct stat stat; stat.st_flags |= UF_IMMUTABLE; |
| 2336 | ; return 0; } |
| 2337 | EOF |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 2338 | if { (eval echo configure:2339: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 2339 | rm -rf conftest* |
| 2340 | e2fsprogs_cv_struct_st_flags_immut=yes |
| 2341 | else |
| 2342 | echo "configure: failed program was:" >&5 |
| 2343 | cat conftest.$ac_ext >&5 |
| 2344 | rm -rf conftest* |
| 2345 | e2fsprogs_cv_struct_st_flags_immut=no |
| 2346 | fi |
| 2347 | rm -f conftest* |
| 2348 | fi |
| 2349 | |
| 2350 | echo "$ac_t""$e2fsprogs_cv_struct_st_flags_immut" 1>&6 |
| 2351 | if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then |
| 2352 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2353 | #define HAVE_STAT_FLAGS 1 |
| 2354 | EOF |
| 2355 | |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 2356 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2357 | fi |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 2358 | for ac_func in chflags getrusage llseek strdup getmntinfo strcasecmp srandom fchown mallinfo |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2359 | do |
| 2360 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 2361 | echo "configure:2362: checking for $ac_func" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2362 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 2363 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2364 | else |
| 2365 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 2366 | #line 2367 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2367 | #include "confdefs.h" |
| 2368 | /* System header to define __stub macros and hopefully few prototypes, |
| 2369 | which can conflict with char $ac_func(); below. */ |
| 2370 | #include <assert.h> |
| 2371 | /* Override any gcc2 internal prototype to avoid an error. */ |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2372 | /* We use char because int might match the return type of a gcc2 |
| 2373 | builtin and then its argument prototype would still apply. */ |
| 2374 | char $ac_func(); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2375 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2376 | int main() { |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2377 | |
| 2378 | /* The GNU C library defines this for functions which it implements |
| 2379 | to always fail with ENOSYS. Some functions are actually named |
| 2380 | something starting with __ and the normal name is an alias. */ |
| 2381 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 2382 | choke me |
| 2383 | #else |
| 2384 | $ac_func(); |
| 2385 | #endif |
| 2386 | |
| 2387 | ; return 0; } |
| 2388 | EOF |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 2389 | if { (eval echo configure:2390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2390 | rm -rf conftest* |
| 2391 | eval "ac_cv_func_$ac_func=yes" |
| 2392 | else |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2393 | echo "configure: failed program was:" >&5 |
| 2394 | cat conftest.$ac_ext >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2395 | rm -rf conftest* |
| 2396 | eval "ac_cv_func_$ac_func=no" |
| 2397 | fi |
| 2398 | rm -f conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2399 | fi |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2400 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2401 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 2402 | echo "$ac_t""yes" 1>&6 |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2403 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2404 | cat >> confdefs.h <<EOF |
| 2405 | #define $ac_tr_func 1 |
| 2406 | EOF |
| 2407 | |
| 2408 | else |
| 2409 | echo "$ac_t""no" 1>&6 |
| 2410 | fi |
| 2411 | done |
| 2412 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2413 | echo $ac_n "checking ino_t defined by sys/types.h""... $ac_c" 1>&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 2414 | echo "configure:2415: checking ino_t defined by sys/types.h" >&5 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2415 | if eval "test \"`echo '$''{'e2fsprogs_cv_ino_t'+set}'`\" = set"; then |
| 2416 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2417 | else |
| 2418 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 2419 | #line 2420 "configure" |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2420 | #include "confdefs.h" |
| 2421 | #include <sys/types.h> |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2422 | int main() { |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2423 | ino_t ino; ino = 0; |
| 2424 | ; return 0; } |
| 2425 | EOF |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 2426 | if { (eval echo configure:2427: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2427 | rm -rf conftest* |
| 2428 | e2fsprogs_cv_ino_t=yes |
| 2429 | else |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2430 | echo "configure: failed program was:" >&5 |
| 2431 | cat conftest.$ac_ext >&5 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2432 | rm -rf conftest* |
| 2433 | e2fsprogs_cv_ino_t=no |
| 2434 | fi |
| 2435 | rm -f conftest* |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2436 | fi |
| 2437 | |
| 2438 | echo "$ac_t""$e2fsprogs_cv_ino_t" 1>&6 |
| 2439 | if test "$e2fsprogs_cv_ino_t" = yes; then |
| 2440 | cat >> confdefs.h <<\EOF |
| 2441 | #define HAVE_INO_T 1 |
| 2442 | EOF |
| 2443 | |
| 2444 | fi |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2445 | SOCKET_LIB='' |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2446 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 2447 | echo "configure:2448: checking for socket in -lsocket" >&5 |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2448 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
| 2449 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2450 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2451 | else |
| 2452 | ac_save_LIBS="$LIBS" |
| 2453 | LIBS="-lsocket $LIBS" |
| 2454 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 2455 | #line 2456 "configure" |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2456 | #include "confdefs.h" |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2457 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2458 | /* We use char because int might match the return type of a gcc2 |
| 2459 | builtin and then its argument prototype would still apply. */ |
| 2460 | char socket(); |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2461 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2462 | int main() { |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2463 | socket() |
| 2464 | ; return 0; } |
| 2465 | EOF |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 2466 | if { (eval echo configure:2467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2467 | rm -rf conftest* |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2468 | eval "ac_cv_lib_$ac_lib_var=yes" |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2469 | else |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2470 | echo "configure: failed program was:" >&5 |
| 2471 | cat conftest.$ac_ext >&5 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2472 | rm -rf conftest* |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2473 | eval "ac_cv_lib_$ac_lib_var=no" |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2474 | fi |
| 2475 | rm -f conftest* |
| 2476 | LIBS="$ac_save_LIBS" |
| 2477 | |
| 2478 | fi |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2479 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2480 | echo "$ac_t""yes" 1>&6 |
| 2481 | SOCKET_LIB=-lsocket |
| 2482 | else |
| 2483 | echo "$ac_t""no" 1>&6 |
| 2484 | fi |
| 2485 | |
| 2486 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2487 | echo $ac_n "checking for optreset""... $ac_c" 1>&6 |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 2488 | echo "configure:2489: checking for optreset" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2489 | if eval "test \"`echo '$''{'ac_cv_have_optreset'+set}'`\" = set"; then |
| 2490 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2491 | else |
| 2492 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 2493 | #line 2494 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2494 | #include "confdefs.h" |
| 2495 | #include <unistd.h> |
| 2496 | EOF |
| 2497 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2498 | egrep "optreset" >/dev/null 2>&1; then |
| 2499 | rm -rf conftest* |
| 2500 | ac_cv_have_optreset=yes |
| 2501 | else |
| 2502 | rm -rf conftest* |
| 2503 | ac_cv_have_optreset=no |
| 2504 | fi |
| 2505 | rm -f conftest* |
| 2506 | |
| 2507 | fi |
| 2508 | echo "$ac_t""$ac_cv_have_optreset" 1>&6 |
| 2509 | if test $ac_cv_have_optreset = yes; then |
| 2510 | cat >> confdefs.h <<\EOF |
| 2511 | #define HAVE_OPTRESET 1 |
| 2512 | EOF |
| 2513 | |
| 2514 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2515 | echo $ac_n "checking whether the ext2 ioctls compile""... $ac_c" 1>&6 |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 2516 | echo "configure:2517: checking whether the ext2 ioctls compile" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2517 | if eval "test \"`echo '$''{'e2fsprogs_cv_ioctl_ext2'+set}'`\" = set"; then |
| 2518 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2519 | else |
| 2520 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 2521 | #line 2522 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2522 | #include "confdefs.h" |
| 2523 | #include <linux/ext2_fs.h> |
| 2524 | #include <sys/ioctl.h> |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2525 | int main() { |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2526 | ioctl (0, EXT2_IOC_SETVERSION, 0); |
| 2527 | ; return 0; } |
| 2528 | EOF |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 2529 | if { (eval echo configure:2530: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2530 | rm -rf conftest* |
| 2531 | e2fsprogs_cv_ioctl_ext2=yes |
| 2532 | else |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2533 | echo "configure: failed program was:" >&5 |
| 2534 | cat conftest.$ac_ext >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2535 | rm -rf conftest* |
| 2536 | e2fsprogs_cv_ioctl_ext2=no |
| 2537 | fi |
| 2538 | rm -f conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2539 | fi |
| 2540 | |
| 2541 | echo "$ac_t""$e2fsprogs_cv_ioctl_ext2" 1>&6 |
| 2542 | if test "$e2fsprogs_cv_ioctl_ext2" = yes; then |
| 2543 | cat >> confdefs.h <<\EOF |
| 2544 | #define HAVE_EXT2_IOCTLS 1 |
| 2545 | EOF |
| 2546 | |
| 2547 | fi |
Theodore Ts'o | 6670495 | 1999-06-25 15:30:33 +0000 | [diff] [blame] | 2548 | echo $ac_n "checking whether struct ext2_inode has an i_version field""... $ac_c" 1>&6 |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 2549 | echo "configure:2550: checking whether struct ext2_inode has an i_version field" >&5 |
Theodore Ts'o | 6670495 | 1999-06-25 15:30:33 +0000 | [diff] [blame] | 2550 | if eval "test \"`echo '$''{'e2fsprogs_cv_ext2_inode_version'+set}'`\" = set"; then |
| 2551 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2552 | else |
| 2553 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 2554 | #line 2555 "configure" |
Theodore Ts'o | 6670495 | 1999-06-25 15:30:33 +0000 | [diff] [blame] | 2555 | #include "confdefs.h" |
| 2556 | #include <linux/ext2_fs.h> |
| 2557 | int main() { |
| 2558 | struct ext2_inode e2i; e2i.i_version=0; |
| 2559 | ; return 0; } |
| 2560 | EOF |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 2561 | if { (eval echo configure:2562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | 6670495 | 1999-06-25 15:30:33 +0000 | [diff] [blame] | 2562 | rm -rf conftest* |
| 2563 | e2fsprogs_cv_ext2_inode_version=yes |
| 2564 | else |
| 2565 | echo "configure: failed program was:" >&5 |
| 2566 | cat conftest.$ac_ext >&5 |
| 2567 | rm -rf conftest* |
| 2568 | e2fsprogs_cv_ext2_inode_version=no |
| 2569 | fi |
| 2570 | rm -f conftest* |
| 2571 | fi |
| 2572 | |
| 2573 | echo "$ac_t""$e2fsprogs_cv_ext2_inode_version" 1>&6 |
| 2574 | if test "$e2fsprogs_cv_ext2_inode_version" = yes; then |
| 2575 | cat >> confdefs.h <<\EOF |
| 2576 | #define HAVE_EXT2_INODE_VERSION 1 |
| 2577 | EOF |
| 2578 | |
| 2579 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2580 | case "$host_os" in |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 2581 | linux* | gnu*) |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 2582 | if test "$prefix" = NONE -a "$root_prefix" = NONE ; then |
| 2583 | root_prefix=""; |
| 2584 | echo "On $host_os systems, root_prefix defaults to ''" |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2585 | fi |
| 2586 | ;; |
| 2587 | esac |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2588 | case "$host_os" in |
| 2589 | linux* | gnu*) |
| 2590 | if test "$prefix" = NONE ; then |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 2591 | prefix="/usr"; |
| 2592 | echo "On $host_os systems, prefix defaults to /usr" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2593 | fi |
| 2594 | ;; |
| 2595 | esac |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 2596 | if test "$root_prefix" = NONE ; then |
Theodore Ts'o | ffe1991 | 1998-04-08 06:05:49 +0000 | [diff] [blame] | 2597 | if test "$prefix" = NONE ; then |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 2598 | root_prefix="$ac_default_prefix" |
| 2599 | else |
| 2600 | root_prefix="$prefix" |
| 2601 | fi |
| 2602 | fi |
| 2603 | |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 2604 | echo $ac_n "checking whether linker accepts -static""... $ac_c" 1>&6 |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 2605 | echo "configure:2606: checking whether linker accepts -static" >&5 |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 2606 | if eval "test \"`echo '$''{'ac_cv_e2fsprogs_use_static'+set}'`\" = set"; then |
| 2607 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2608 | else |
| 2609 | SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static" |
| 2610 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 2611 | #line 2612 "configure" |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 2612 | #include "confdefs.h" |
| 2613 | #include <stdio.h> |
| 2614 | int main() { |
| 2615 | fflush(stdout); |
| 2616 | ; return 0; } |
| 2617 | EOF |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 2618 | if { (eval echo configure:2619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 2619 | rm -rf conftest* |
| 2620 | ac_cv_e2fsprogs_use_static=yes |
| 2621 | else |
| 2622 | echo "configure: failed program was:" >&5 |
| 2623 | cat conftest.$ac_ext >&5 |
| 2624 | rm -rf conftest* |
| 2625 | ac_cv_e2fsprogs_use_static=no |
| 2626 | fi |
| 2627 | rm -f conftest* |
| 2628 | LDFLAGS=$SAVE_LDFLAGS |
| 2629 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2630 | |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 2631 | case "$host_os" in |
| 2632 | solaris2.*) |
| 2633 | ac_cv_e2fsprogs_use_static=no |
| 2634 | ;; |
| 2635 | esac |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 2636 | echo "$ac_t""$ac_cv_e2fsprogs_use_static" 1>&6 |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2637 | LDFLAG_STATIC= |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 2638 | if test $ac_cv_e2fsprogs_use_static = yes; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2639 | LDFLAG_STATIC=-static |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 2640 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2641 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2642 | SS_DIR=`cd ${srcdir}/lib/ss; pwd` |
| 2643 | ET_DIR=`cd ${srcdir}/lib/et; pwd` |
| 2644 | |
| 2645 | |
| 2646 | if test "$cross_compiling" = yes ; then |
| 2647 | DO_TEST_SUITE= |
| 2648 | else |
| 2649 | DO_TEST_SUITE=check |
| 2650 | fi |
| 2651 | |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 2652 | DO_SUBSTITUTE_SCRIPT=$srcdir/lib/do_substitute |
| 2653 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2654 | test -d lib || mkdir lib |
| 2655 | test -d include || mkdir include |
| 2656 | test -d include/linux || mkdir include/linux |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 2657 | test -d include/asm || mkdir include/asm |
Theodore Ts'o | bc21007 | 1997-06-17 05:41:36 +0000 | [diff] [blame] | 2658 | rmakefile= |
| 2659 | if test -d ${srcdir}/resize ; then |
| 2660 | rmakefile=resize/Makefile |
| 2661 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2662 | trap '' 1 2 15 |
| 2663 | cat > confcache <<\EOF |
| 2664 | # This file is a shell script that caches the results of configure |
| 2665 | # tests run on this system so they can be shared between configure |
| 2666 | # scripts and configure runs. It is not useful on other systems. |
| 2667 | # If it contains results you don't want to keep, you may remove or edit it. |
| 2668 | # |
| 2669 | # By default, configure uses ./config.cache as the cache file, |
| 2670 | # creating it if it does not exist already. You can give configure |
| 2671 | # the --cache-file=FILE option to use a different cache file; that is |
| 2672 | # what configure does when it calls configure scripts in |
| 2673 | # subdirectories, so they share the cache. |
| 2674 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
| 2675 | # config.status only pays attention to the cache file if you give it the |
| 2676 | # --recheck option to rerun configure. |
| 2677 | # |
| 2678 | EOF |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2679 | # The following way of writing the cache mishandles newlines in values, |
| 2680 | # but we know of no workaround that is simple, portable, and efficient. |
| 2681 | # So, don't put newlines in cache variables' values. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2682 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 2683 | # and sets the high bit in the cache file unless we assign to the vars. |
| 2684 | (set) 2>&1 | |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 2685 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2686 | *ac_space=\ *) |
| 2687 | # `set' does not quote correctly, so add quotes (double-quote substitution |
| 2688 | # turns \\\\ into \\, and sed turns \\ into \). |
| 2689 | sed -n \ |
| 2690 | -e "s/'/'\\\\''/g" \ |
| 2691 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
| 2692 | ;; |
| 2693 | *) |
| 2694 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 2695 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
| 2696 | ;; |
| 2697 | esac >> confcache |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2698 | if cmp -s $cache_file confcache; then |
| 2699 | : |
| 2700 | else |
| 2701 | if test -w $cache_file; then |
| 2702 | echo "updating cache $cache_file" |
| 2703 | cat confcache > $cache_file |
| 2704 | else |
| 2705 | echo "not updating unwritable cache $cache_file" |
| 2706 | fi |
| 2707 | fi |
| 2708 | rm -f confcache |
| 2709 | |
| 2710 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
| 2711 | |
| 2712 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 2713 | # Let make expand exec_prefix. |
| 2714 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 2715 | |
| 2716 | # Any assignment to VPATH causes Sun make to only execute |
| 2717 | # the first set of double-colon rules, so remove it if not needed. |
| 2718 | # If there is a colon in the path, we need to keep it. |
| 2719 | if test "x$srcdir" = x.; then |
| 2720 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
| 2721 | fi |
| 2722 | |
| 2723 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
| 2724 | |
| 2725 | # Transform confdefs.h into DEFS. |
| 2726 | # Protect against shell expansion while executing Makefile rules. |
| 2727 | # Protect against Makefile macro expansion. |
| 2728 | cat > conftest.defs <<\EOF |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2729 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2730 | s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g |
| 2731 | s%\[%\\&%g |
| 2732 | s%\]%\\&%g |
| 2733 | s%\$%$$%g |
| 2734 | EOF |
| 2735 | DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` |
| 2736 | rm -f conftest.defs |
| 2737 | |
| 2738 | |
| 2739 | # Without the "./", some shells look in PATH for config.status. |
| 2740 | : ${CONFIG_STATUS=./config.status} |
| 2741 | |
| 2742 | echo creating $CONFIG_STATUS |
| 2743 | rm -f $CONFIG_STATUS |
| 2744 | cat > $CONFIG_STATUS <<EOF |
| 2745 | #! /bin/sh |
| 2746 | # Generated automatically by configure. |
| 2747 | # Run this file to recreate the current configuration. |
| 2748 | # This directory was configured as follows, |
| 2749 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 2750 | # |
| 2751 | # $0 $ac_configure_args |
| 2752 | # |
| 2753 | # Compiler output produced by configure, useful for debugging |
| 2754 | # configure, is in ./config.log if it exists. |
| 2755 | |
| 2756 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
| 2757 | for ac_option |
| 2758 | do |
| 2759 | case "\$ac_option" in |
| 2760 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 2761 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
| 2762 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
| 2763 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 2764 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2765 | exit 0 ;; |
| 2766 | -help | --help | --hel | --he | --h) |
| 2767 | echo "\$ac_cs_usage"; exit 0 ;; |
| 2768 | *) echo "\$ac_cs_usage"; exit 1 ;; |
| 2769 | esac |
| 2770 | done |
| 2771 | |
| 2772 | ac_given_srcdir=$srcdir |
| 2773 | ac_given_INSTALL="$INSTALL" |
| 2774 | |
Theodore Ts'o | 44339bd | 1997-10-15 02:47:20 +0000 | [diff] [blame] | 2775 | trap 'rm -fr `echo "MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2776 | lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile |
| 2777 | misc/Makefile e2fsck/Makefile debugfs/Makefile tests/Makefile |
Theodore Ts'o | bc21007 | 1997-06-17 05:41:36 +0000 | [diff] [blame] | 2778 | tests/progs/Makefile $rmakefile doc/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2779 | EOF |
| 2780 | cat >> $CONFIG_STATUS <<EOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2781 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2782 | # Protect against being on the right side of a sed subst in config.status. |
| 2783 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
| 2784 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2785 | $ac_vpsub |
| 2786 | $extrasub |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 2787 | s%@SHELL@%$SHELL%g |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2788 | s%@CFLAGS@%$CFLAGS%g |
| 2789 | s%@CPPFLAGS@%$CPPFLAGS%g |
| 2790 | s%@CXXFLAGS@%$CXXFLAGS%g |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 2791 | s%@FFLAGS@%$FFLAGS%g |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2792 | s%@DEFS@%$DEFS%g |
| 2793 | s%@LDFLAGS@%$LDFLAGS%g |
| 2794 | s%@LIBS@%$LIBS%g |
| 2795 | s%@exec_prefix@%$exec_prefix%g |
| 2796 | s%@prefix@%$prefix%g |
| 2797 | s%@program_transform_name@%$program_transform_name%g |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2798 | s%@bindir@%$bindir%g |
| 2799 | s%@sbindir@%$sbindir%g |
| 2800 | s%@libexecdir@%$libexecdir%g |
| 2801 | s%@datadir@%$datadir%g |
| 2802 | s%@sysconfdir@%$sysconfdir%g |
| 2803 | s%@sharedstatedir@%$sharedstatedir%g |
| 2804 | s%@localstatedir@%$localstatedir%g |
| 2805 | s%@libdir@%$libdir%g |
| 2806 | s%@includedir@%$includedir%g |
| 2807 | s%@oldincludedir@%$oldincludedir%g |
| 2808 | s%@infodir@%$infodir%g |
| 2809 | s%@mandir@%$mandir%g |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2810 | /@MCONFIG@/r $MCONFIG |
| 2811 | s%@MCONFIG@%%g |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2812 | s%@E2FSPROGS_YEAR@%$E2FSPROGS_YEAR%g |
| 2813 | s%@E2FSPROGS_MONTH@%$E2FSPROGS_MONTH%g |
| 2814 | s%@E2FSPROGS_VERSION@%$E2FSPROGS_VERSION%g |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2815 | s%@host@%$host%g |
| 2816 | s%@host_alias@%$host_alias%g |
| 2817 | s%@host_cpu@%$host_cpu%g |
| 2818 | s%@host_vendor@%$host_vendor%g |
| 2819 | s%@host_os@%$host_os%g |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2820 | s%@CC@%$CC%g |
| 2821 | s%@LD@%$LD%g |
| 2822 | s%@CCOPTS@%$CCOPTS%g |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 2823 | s%@CPP@%$CPP%g |
| 2824 | s%@LINUX_INCLUDE@%$LINUX_INCLUDE%g |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2825 | s%@DLL_CMT@%$DLL_CMT%g |
| 2826 | /@MAKEFILE_DLL@/r $MAKEFILE_DLL |
| 2827 | s%@MAKEFILE_DLL@%%g |
| 2828 | s%@ELF_CMT@%$ELF_CMT%g |
| 2829 | /@MAKEFILE_ELF@/r $MAKEFILE_ELF |
| 2830 | s%@MAKEFILE_ELF@%%g |
| 2831 | s%@BSDLIB_CMT@%$BSDLIB_CMT%g |
| 2832 | /@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB |
| 2833 | s%@MAKEFILE_BSDLIB@%%g |
| 2834 | s%@PROFILE_CMT@%$PROFILE_CMT%g |
| 2835 | /@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE |
| 2836 | s%@MAKEFILE_PROFILE@%%g |
| 2837 | s%@CHECKER_CMT@%$CHECKER_CMT%g |
| 2838 | /@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER |
| 2839 | s%@MAKEFILE_CHECKER@%%g |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 2840 | s%@LIB_EXT@%$LIB_EXT%g |
| 2841 | s%@STATIC_LIB_EXT@%$STATIC_LIB_EXT%g |
| 2842 | s%@PROFILED_LIB_EXT@%$PROFILED_LIB_EXT%g |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2843 | s%@W@%$W%g |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 2844 | s%@E2FSCK_TYPE@%$E2FSCK_TYPE%g |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2845 | s%@FSCK_PROG@%$FSCK_PROG%g |
| 2846 | s%@FSCK_MAN@%$FSCK_MAN%g |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2847 | /@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY |
| 2848 | s%@MAKEFILE_LIBRARY@%%g |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2849 | s%@BINARY_TYPE@%$BINARY_TYPE%g |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2850 | s%@SET_MAKE@%$SET_MAKE%g |
| 2851 | s%@LN@%$LN%g |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2852 | s%@LN_S@%$LN_S%g |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2853 | s%@MV@%$MV%g |
| 2854 | s%@CP@%$CP%g |
| 2855 | s%@RM@%$RM%g |
| 2856 | s%@CHMOD@%$CHMOD%g |
| 2857 | s%@AWK@%$AWK%g |
| 2858 | s%@SED@%$SED%g |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 2859 | s%@PERL@%$PERL%g |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2860 | s%@build@%$build%g |
| 2861 | s%@build_alias@%$build_alias%g |
| 2862 | s%@build_cpu@%$build_cpu%g |
| 2863 | s%@build_vendor@%$build_vendor%g |
| 2864 | s%@build_os@%$build_os%g |
| 2865 | s%@AR@%$AR%g |
| 2866 | s%@RANLIB@%$RANLIB%g |
| 2867 | s%@STRIP@%$STRIP%g |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2868 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 2869 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2870 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 2871 | s%@BUILD_CC@%$BUILD_CC%g |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2872 | s%@SIZEOF_SHORT@%$SIZEOF_SHORT%g |
| 2873 | s%@SIZEOF_INT@%$SIZEOF_INT%g |
| 2874 | s%@SIZEOF_LONG@%$SIZEOF_LONG%g |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2875 | s%@SIZEOF_LONG_LONG@%$SIZEOF_LONG_LONG%g |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2876 | s%@SOCKET_LIB@%$SOCKET_LIB%g |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 2877 | s%@root_prefix@%$root_prefix%g |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2878 | s%@LDFLAG_STATIC@%$LDFLAG_STATIC%g |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2879 | s%@SS_DIR@%$SS_DIR%g |
| 2880 | s%@ET_DIR@%$ET_DIR%g |
| 2881 | s%@DO_TEST_SUITE@%$DO_TEST_SUITE%g |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 2882 | /@DO_SUBSTITUTE_SCRIPT@/r $DO_SUBSTITUTE_SCRIPT |
| 2883 | s%@DO_SUBSTITUTE_SCRIPT@%%g |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2884 | |
| 2885 | CEOF |
| 2886 | EOF |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2887 | |
| 2888 | cat >> $CONFIG_STATUS <<\EOF |
| 2889 | |
| 2890 | # Split the substitutions into bite-sized pieces for seds with |
| 2891 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 2892 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
| 2893 | ac_file=1 # Number of current file. |
| 2894 | ac_beg=1 # First line for current file. |
| 2895 | ac_end=$ac_max_sed_cmds # Line after last line for current file. |
| 2896 | ac_more_lines=: |
| 2897 | ac_sed_cmds="" |
| 2898 | while $ac_more_lines; do |
| 2899 | if test $ac_beg -gt 1; then |
| 2900 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
| 2901 | else |
| 2902 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
| 2903 | fi |
| 2904 | if test ! -s conftest.s$ac_file; then |
| 2905 | ac_more_lines=false |
| 2906 | rm -f conftest.s$ac_file |
| 2907 | else |
| 2908 | if test -z "$ac_sed_cmds"; then |
| 2909 | ac_sed_cmds="sed -f conftest.s$ac_file" |
| 2910 | else |
| 2911 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
| 2912 | fi |
| 2913 | ac_file=`expr $ac_file + 1` |
| 2914 | ac_beg=$ac_end |
| 2915 | ac_end=`expr $ac_end + $ac_max_sed_cmds` |
| 2916 | fi |
| 2917 | done |
| 2918 | if test -z "$ac_sed_cmds"; then |
| 2919 | ac_sed_cmds=cat |
| 2920 | fi |
| 2921 | EOF |
| 2922 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2923 | cat >> $CONFIG_STATUS <<EOF |
| 2924 | |
Theodore Ts'o | 44339bd | 1997-10-15 02:47:20 +0000 | [diff] [blame] | 2925 | CONFIG_FILES=\${CONFIG_FILES-"MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2926 | lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile |
| 2927 | misc/Makefile e2fsck/Makefile debugfs/Makefile tests/Makefile |
Theodore Ts'o | bc21007 | 1997-06-17 05:41:36 +0000 | [diff] [blame] | 2928 | tests/progs/Makefile $rmakefile doc/Makefile"} |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2929 | EOF |
| 2930 | cat >> $CONFIG_STATUS <<\EOF |
| 2931 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2932 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2933 | case "$ac_file" in |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2934 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2935 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 2936 | *) ac_file_in="${ac_file}.in" ;; |
| 2937 | esac |
| 2938 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2939 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2940 | |
| 2941 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 2942 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 2943 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 2944 | # The file is in a subdirectory. |
| 2945 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
| 2946 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
| 2947 | # A "../" for each directory in $ac_dir_suffix. |
| 2948 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
| 2949 | else |
| 2950 | ac_dir_suffix= ac_dots= |
| 2951 | fi |
| 2952 | |
| 2953 | case "$ac_given_srcdir" in |
| 2954 | .) srcdir=. |
| 2955 | if test -z "$ac_dots"; then top_srcdir=. |
| 2956 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
| 2957 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
| 2958 | *) # Relative path. |
| 2959 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
| 2960 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 2961 | esac |
| 2962 | |
| 2963 | case "$ac_given_INSTALL" in |
| 2964 | [/$]*) INSTALL="$ac_given_INSTALL" ;; |
| 2965 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
| 2966 | esac |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2967 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2968 | echo creating "$ac_file" |
| 2969 | rm -f "$ac_file" |
| 2970 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
| 2971 | case "$ac_file" in |
| 2972 | *Makefile*) ac_comsub="1i\\ |
| 2973 | # $configure_input" ;; |
| 2974 | *) ac_comsub= ;; |
| 2975 | esac |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2976 | |
| 2977 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2978 | sed -e "$ac_comsub |
| 2979 | s%@configure_input@%$configure_input%g |
| 2980 | s%@srcdir@%$srcdir%g |
| 2981 | s%@top_srcdir@%$top_srcdir%g |
| 2982 | s%@INSTALL@%$INSTALL%g |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2983 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2984 | fi; done |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2985 | rm -f conftest.s* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2986 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2987 | EOF |
| 2988 | cat >> $CONFIG_STATUS <<EOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2989 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2990 | EOF |
| 2991 | cat >> $CONFIG_STATUS <<\EOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2992 | |
| 2993 | exit 0 |
| 2994 | EOF |
| 2995 | chmod +x $CONFIG_STATUS |
| 2996 | rm -fr confdefs* $ac_clean_files |
| 2997 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
| 2998 | |