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 | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 25 | --enable-compression enable EXPERIMENTAL compression support" |
| 26 | ac_help="$ac_help |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 27 | --enable-dll-shlibs select DLL 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-elf-shlibs select ELF 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-bsd-shlibs select BSD shared libraries" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 32 | ac_help="$ac_help |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 33 | --enable-nls Turn on Native Language Support" |
| 34 | ac_help="$ac_help |
| 35 | --with-included-gettext use the GNU gettext library included here" |
| 36 | ac_help="$ac_help |
| 37 | --with-catgets use catgets functions if available" |
| 38 | ac_help="$ac_help |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 39 | --enable-profile build profiling libraries" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 40 | ac_help="$ac_help |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 41 | --enable-checker build checker libraries" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 42 | ac_help="$ac_help |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 43 | --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] | 44 | ac_help="$ac_help |
| 45 | --enable-dynamic-e2fsck build e2fsck dynamically" |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 46 | ac_help="$ac_help |
| 47 | --enable-fsck build fsck wrapper program" |
| 48 | ac_help="$ac_help |
| 49 | --enable-old-bitops Use old (non-standard but native) bitmask operations" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 50 | |
| 51 | # Initialize some variables set by options. |
| 52 | # The variables have the same names as the options, with |
| 53 | # dashes changed to underlines. |
| 54 | build=NONE |
| 55 | cache_file=./config.cache |
| 56 | exec_prefix=NONE |
| 57 | host=NONE |
| 58 | no_create= |
| 59 | nonopt=NONE |
| 60 | no_recursion= |
| 61 | prefix=NONE |
| 62 | program_prefix=NONE |
| 63 | program_suffix=NONE |
| 64 | program_transform_name=s,x,x, |
| 65 | silent= |
| 66 | site= |
| 67 | srcdir= |
| 68 | target=NONE |
| 69 | verbose= |
| 70 | x_includes=NONE |
| 71 | x_libraries=NONE |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 72 | bindir='${exec_prefix}/bin' |
| 73 | sbindir='${exec_prefix}/sbin' |
| 74 | libexecdir='${exec_prefix}/libexec' |
| 75 | datadir='${prefix}/share' |
| 76 | sysconfdir='${prefix}/etc' |
| 77 | sharedstatedir='${prefix}/com' |
| 78 | localstatedir='${prefix}/var' |
| 79 | libdir='${exec_prefix}/lib' |
| 80 | includedir='${prefix}/include' |
| 81 | oldincludedir='/usr/include' |
| 82 | infodir='${prefix}/info' |
| 83 | mandir='${prefix}/man' |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 84 | |
| 85 | # Initialize some other variables. |
| 86 | subdirs= |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 87 | MFLAGS= MAKEFLAGS= |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 88 | SHELL=${CONFIG_SHELL-/bin/sh} |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 89 | # Maximum number of lines to put in a shell here document. |
| 90 | ac_max_here_lines=12 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 91 | |
| 92 | ac_prev= |
| 93 | for ac_option |
| 94 | do |
| 95 | |
| 96 | # If the previous option needs an argument, assign it. |
| 97 | if test -n "$ac_prev"; then |
| 98 | eval "$ac_prev=\$ac_option" |
| 99 | ac_prev= |
| 100 | continue |
| 101 | fi |
| 102 | |
| 103 | case "$ac_option" in |
| 104 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
| 105 | *) ac_optarg= ;; |
| 106 | esac |
| 107 | |
| 108 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 109 | |
| 110 | case "$ac_option" in |
| 111 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 112 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 113 | ac_prev=bindir ;; |
| 114 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 115 | bindir="$ac_optarg" ;; |
| 116 | |
| 117 | -build | --build | --buil | --bui | --bu) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 118 | ac_prev=build ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 119 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 120 | build="$ac_optarg" ;; |
| 121 | |
| 122 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 123 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 124 | ac_prev=cache_file ;; |
| 125 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 126 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 127 | cache_file="$ac_optarg" ;; |
| 128 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 129 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 130 | ac_prev=datadir ;; |
| 131 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 132 | | --da=*) |
| 133 | datadir="$ac_optarg" ;; |
| 134 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 135 | -disable-* | --disable-*) |
| 136 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
| 137 | # Reject names that are not valid shell variable names. |
| 138 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
| 139 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
| 140 | fi |
| 141 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 142 | eval "enable_${ac_feature}=no" ;; |
| 143 | |
| 144 | -enable-* | --enable-*) |
| 145 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
| 146 | # Reject names that are not valid shell variable names. |
| 147 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
| 148 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
| 149 | fi |
| 150 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 151 | case "$ac_option" in |
| 152 | *=*) ;; |
| 153 | *) ac_optarg=yes ;; |
| 154 | esac |
| 155 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
| 156 | |
| 157 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 158 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 159 | | --exec | --exe | --ex) |
| 160 | ac_prev=exec_prefix ;; |
| 161 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 162 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 163 | | --exec=* | --exe=* | --ex=*) |
| 164 | exec_prefix="$ac_optarg" ;; |
| 165 | |
| 166 | -gas | --gas | --ga | --g) |
| 167 | # Obsolete; use --with-gas. |
| 168 | with_gas=yes ;; |
| 169 | |
| 170 | -help | --help | --hel | --he) |
| 171 | # Omit some internal or obsolete options to make the list less imposing. |
| 172 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 173 | cat << EOF |
| 174 | Usage: configure [options] [host] |
| 175 | Options: [defaults in brackets after descriptions] |
| 176 | Configuration: |
| 177 | --cache-file=FILE cache test results in FILE |
| 178 | --help print this message |
| 179 | --no-create do not create output files |
| 180 | --quiet, --silent do not print \`checking...' messages |
| 181 | --version print the version of autoconf that created configure |
| 182 | Directory and file names: |
| 183 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 184 | [$ac_default_prefix] |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 185 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 186 | [same as prefix] |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 187 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
| 188 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
| 189 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
| 190 | --datadir=DIR read-only architecture-independent data in DIR |
| 191 | [PREFIX/share] |
| 192 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
| 193 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
| 194 | [PREFIX/com] |
| 195 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
| 196 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
| 197 | --includedir=DIR C header files in DIR [PREFIX/include] |
| 198 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
| 199 | --infodir=DIR info documentation in DIR [PREFIX/info] |
| 200 | --mandir=DIR man documentation in DIR [PREFIX/man] |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 201 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
| 202 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 203 | --program-suffix=SUFFIX append SUFFIX to installed program names |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 204 | --program-transform-name=PROGRAM |
| 205 | run sed PROGRAM on installed program names |
| 206 | EOF |
| 207 | cat << EOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 208 | Host type: |
| 209 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
| 210 | --host=HOST configure for HOST [guessed] |
| 211 | --target=TARGET configure for TARGET [TARGET=HOST] |
| 212 | Features and packages: |
| 213 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 214 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 215 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 216 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 217 | --x-includes=DIR X include files are in DIR |
| 218 | --x-libraries=DIR X library files are in DIR |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 219 | EOF |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 220 | if test -n "$ac_help"; then |
| 221 | echo "--enable and --with options recognized:$ac_help" |
| 222 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 223 | exit 0 ;; |
| 224 | |
| 225 | -host | --host | --hos | --ho) |
| 226 | ac_prev=host ;; |
| 227 | -host=* | --host=* | --hos=* | --ho=*) |
| 228 | host="$ac_optarg" ;; |
| 229 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 230 | -includedir | --includedir | --includedi | --included | --include \ |
| 231 | | --includ | --inclu | --incl | --inc) |
| 232 | ac_prev=includedir ;; |
| 233 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 234 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 235 | includedir="$ac_optarg" ;; |
| 236 | |
| 237 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 238 | ac_prev=infodir ;; |
| 239 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 240 | infodir="$ac_optarg" ;; |
| 241 | |
| 242 | -libdir | --libdir | --libdi | --libd) |
| 243 | ac_prev=libdir ;; |
| 244 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 245 | libdir="$ac_optarg" ;; |
| 246 | |
| 247 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 248 | | --libexe | --libex | --libe) |
| 249 | ac_prev=libexecdir ;; |
| 250 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 251 | | --libexe=* | --libex=* | --libe=*) |
| 252 | libexecdir="$ac_optarg" ;; |
| 253 | |
| 254 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 255 | | --localstate | --localstat | --localsta | --localst \ |
| 256 | | --locals | --local | --loca | --loc | --lo) |
| 257 | ac_prev=localstatedir ;; |
| 258 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 259 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 260 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 261 | localstatedir="$ac_optarg" ;; |
| 262 | |
| 263 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 264 | ac_prev=mandir ;; |
| 265 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 266 | mandir="$ac_optarg" ;; |
| 267 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 268 | -nfp | --nfp | --nf) |
| 269 | # Obsolete; use --without-fp. |
| 270 | with_fp=no ;; |
| 271 | |
| 272 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 273 | | --no-cr | --no-c) |
| 274 | no_create=yes ;; |
| 275 | |
| 276 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 277 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 278 | no_recursion=yes ;; |
| 279 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 280 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 281 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 282 | | --oldin | --oldi | --old | --ol | --o) |
| 283 | ac_prev=oldincludedir ;; |
| 284 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 285 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 286 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 287 | oldincludedir="$ac_optarg" ;; |
| 288 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 289 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 290 | ac_prev=prefix ;; |
| 291 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 292 | prefix="$ac_optarg" ;; |
| 293 | |
| 294 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 295 | | --program-pre | --program-pr | --program-p) |
| 296 | ac_prev=program_prefix ;; |
| 297 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 298 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 299 | program_prefix="$ac_optarg" ;; |
| 300 | |
| 301 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 302 | | --program-suf | --program-su | --program-s) |
| 303 | ac_prev=program_suffix ;; |
| 304 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 305 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 306 | program_suffix="$ac_optarg" ;; |
| 307 | |
| 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 | ac_prev=program_transform_name ;; |
| 316 | -program-transform-name=* | --program-transform-name=* \ |
| 317 | | --program-transform-nam=* | --program-transform-na=* \ |
| 318 | | --program-transform-n=* | --program-transform-=* \ |
| 319 | | --program-transform=* | --program-transfor=* \ |
| 320 | | --program-transfo=* | --program-transf=* \ |
| 321 | | --program-trans=* | --program-tran=* \ |
| 322 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 323 | program_transform_name="$ac_optarg" ;; |
| 324 | |
| 325 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 326 | | -silent | --silent | --silen | --sile | --sil) |
| 327 | silent=yes ;; |
| 328 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 329 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 330 | ac_prev=sbindir ;; |
| 331 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 332 | | --sbi=* | --sb=*) |
| 333 | sbindir="$ac_optarg" ;; |
| 334 | |
| 335 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 336 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 337 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 338 | | --sha | --sh) |
| 339 | ac_prev=sharedstatedir ;; |
| 340 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 341 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 342 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 343 | | --sha=* | --sh=*) |
| 344 | sharedstatedir="$ac_optarg" ;; |
| 345 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 346 | -site | --site | --sit) |
| 347 | ac_prev=site ;; |
| 348 | -site=* | --site=* | --sit=*) |
| 349 | site="$ac_optarg" ;; |
| 350 | |
| 351 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 352 | ac_prev=srcdir ;; |
| 353 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 354 | srcdir="$ac_optarg" ;; |
| 355 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 356 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 357 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 358 | ac_prev=sysconfdir ;; |
| 359 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 360 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 361 | sysconfdir="$ac_optarg" ;; |
| 362 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 363 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 364 | ac_prev=target ;; |
| 365 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 366 | target="$ac_optarg" ;; |
| 367 | |
| 368 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 369 | verbose=yes ;; |
| 370 | |
| 371 | -version | --version | --versio | --versi | --vers) |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 372 | echo "configure generated by autoconf version 2.13" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 373 | exit 0 ;; |
| 374 | |
| 375 | -with-* | --with-*) |
| 376 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
| 377 | # Reject names that are not valid shell variable names. |
| 378 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
| 379 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
| 380 | fi |
| 381 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 382 | case "$ac_option" in |
| 383 | *=*) ;; |
| 384 | *) ac_optarg=yes ;; |
| 385 | esac |
| 386 | eval "with_${ac_package}='$ac_optarg'" ;; |
| 387 | |
| 388 | -without-* | --without-*) |
| 389 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
| 390 | # Reject names that are not valid shell variable names. |
| 391 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
| 392 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
| 393 | fi |
| 394 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 395 | eval "with_${ac_package}=no" ;; |
| 396 | |
| 397 | --x) |
| 398 | # Obsolete; use --with-x. |
| 399 | with_x=yes ;; |
| 400 | |
| 401 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 402 | | --x-incl | --x-inc | --x-in | --x-i) |
| 403 | ac_prev=x_includes ;; |
| 404 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 405 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 406 | x_includes="$ac_optarg" ;; |
| 407 | |
| 408 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 409 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 410 | ac_prev=x_libraries ;; |
| 411 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 412 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 413 | x_libraries="$ac_optarg" ;; |
| 414 | |
| 415 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
| 416 | ;; |
| 417 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 418 | *) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 419 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
| 420 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
| 421 | fi |
| 422 | if test "x$nonopt" != xNONE; then |
| 423 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
| 424 | fi |
| 425 | nonopt="$ac_option" |
| 426 | ;; |
| 427 | |
| 428 | esac |
| 429 | done |
| 430 | |
| 431 | if test -n "$ac_prev"; then |
| 432 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
| 433 | fi |
| 434 | |
| 435 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
| 436 | |
| 437 | # File descriptor usage: |
| 438 | # 0 standard input |
| 439 | # 1 file creation |
| 440 | # 2 errors and warnings |
| 441 | # 3 some systems may open it to /dev/tty |
| 442 | # 4 used on the Kubota Titan |
| 443 | # 6 checking for... messages and results |
| 444 | # 5 compiler messages saved in config.log |
| 445 | if test "$silent" = yes; then |
| 446 | exec 6>/dev/null |
| 447 | else |
| 448 | exec 6>&1 |
| 449 | fi |
| 450 | exec 5>./config.log |
| 451 | |
| 452 | echo "\ |
| 453 | This file contains any messages produced by compilers while |
| 454 | running configure, to aid debugging if configure makes a mistake. |
| 455 | " 1>&5 |
| 456 | |
| 457 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 458 | # Also quote any args containing shell metacharacters. |
| 459 | ac_configure_args= |
| 460 | for ac_arg |
| 461 | do |
| 462 | case "$ac_arg" in |
| 463 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 464 | | --no-cr | --no-c) ;; |
| 465 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 466 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
| 467 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
| 468 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 469 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
| 470 | esac |
| 471 | done |
| 472 | |
| 473 | # NLS nuisances. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 474 | # Only set these to C if already set. These must not be set unconditionally |
| 475 | # because not all systems understand e.g. LANG=C (notably SCO). |
| 476 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
| 477 | # Non-C LC_CTYPE values break the ctype check. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 478 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 479 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
| 480 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
| 481 | 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] | 482 | |
| 483 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 484 | rm -rf conftest* confdefs.h |
| 485 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 486 | echo > confdefs.h |
| 487 | |
| 488 | # A filename unique to this package, relative to the directory that |
| 489 | # configure is in, which we can look for to find out if srcdir is correct. |
| 490 | ac_unique_file=version.h |
| 491 | |
| 492 | # Find the source files, if location was not specified. |
| 493 | if test -z "$srcdir"; then |
| 494 | ac_srcdir_defaulted=yes |
| 495 | # Try the directory containing this script, then its parent. |
| 496 | ac_prog=$0 |
| 497 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
| 498 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
| 499 | srcdir=$ac_confdir |
| 500 | if test ! -r $srcdir/$ac_unique_file; then |
| 501 | srcdir=.. |
| 502 | fi |
| 503 | else |
| 504 | ac_srcdir_defaulted=no |
| 505 | fi |
| 506 | if test ! -r $srcdir/$ac_unique_file; then |
| 507 | if test "$ac_srcdir_defaulted" = yes; then |
| 508 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
| 509 | else |
| 510 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
| 511 | fi |
| 512 | fi |
| 513 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
| 514 | |
| 515 | # Prefer explicitly selected file to automatically selected ones. |
| 516 | if test -z "$CONFIG_SITE"; then |
| 517 | if test "x$prefix" != xNONE; then |
| 518 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 519 | else |
| 520 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 521 | fi |
| 522 | fi |
| 523 | for ac_site_file in $CONFIG_SITE; do |
| 524 | if test -r "$ac_site_file"; then |
| 525 | echo "loading site script $ac_site_file" |
| 526 | . "$ac_site_file" |
| 527 | fi |
| 528 | done |
| 529 | |
| 530 | if test -r "$cache_file"; then |
| 531 | echo "loading cache $cache_file" |
| 532 | . $cache_file |
| 533 | else |
| 534 | echo "creating cache $cache_file" |
| 535 | > $cache_file |
| 536 | fi |
| 537 | |
| 538 | ac_ext=c |
| 539 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 540 | ac_cpp='$CPP $CPPFLAGS' |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 541 | 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] | 542 | 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] | 543 | cross_compiling=$ac_cv_prog_cc_cross |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 544 | |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 545 | ac_exeext= |
| 546 | ac_objext=o |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 547 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
| 548 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
| 549 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
| 550 | ac_n= ac_c=' |
| 551 | ' ac_t=' ' |
| 552 | else |
| 553 | ac_n=-n ac_c= ac_t= |
| 554 | fi |
| 555 | else |
| 556 | ac_n= ac_c='\c' ac_t= |
| 557 | fi |
| 558 | |
| 559 | |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 560 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 561 | MCONFIG=./MCONFIG |
| 562 | |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 563 | BINARY_TYPE=bin |
| 564 | E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \ |
| 565 | | awk '{print $3}' | tr \" " " | awk '{print $1}'` |
| 566 | DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \ |
| 567 | | tr \" " "` |
| 568 | MONTH=`echo $DATE | awk -F- '{print $2}'` |
| 569 | YEAR=`echo $DATE | awk -F- '{print $3}'` |
| 570 | |
Theodore Ts'o | 14790ed | 1999-01-12 23:32:52 +0000 | [diff] [blame] | 571 | if expr $YEAR ">" 1900 > /dev/null ; then |
| 572 | E2FSPROGS_YEAR=$YEAR |
| 573 | elif expr $YEAR ">" 90 >/dev/null ; then |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 574 | E2FSPROGS_YEAR=19$YEAR |
| 575 | else |
| 576 | E2FSPROGS_YEAR=20$YEAR |
| 577 | fi |
| 578 | |
| 579 | case $MONTH in |
| 580 | Jan) E2FSPROGS_MONTH="January" ;; |
| 581 | Feb) E2FSPROGS_MONTH="February" ;; |
| 582 | Mar) E2FSPROGS_MONTH="March" ;; |
| 583 | Apr) E2FSPROGS_MONTH="April" ;; |
| 584 | May) E2FSPROGS_MONTH="May" ;; |
| 585 | Jun) E2FSPROGS_MONTH="June" ;; |
| 586 | Jul) E2FSPROGS_MONTH="July" ;; |
| 587 | Aug) E2FSPROGS_MONTH="August" ;; |
| 588 | Sep) E2FSPROGS_MONTH="September" ;; |
| 589 | Oct) E2FSPROGS_MONTH="October" ;; |
| 590 | Nov) E2FSPROGS_MONTH="November" ;; |
| 591 | Dec) E2FSPROGS_MONTH="December" ;; |
| 592 | *) echo "Unknown month $MONTH??" ;; |
| 593 | esac |
| 594 | |
| 595 | unset DATE MONTH YEAR |
| 596 | echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" |
| 597 | echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" |
| 598 | |
| 599 | |
| 600 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 601 | |
| 602 | ac_aux_dir= |
| 603 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 604 | if test -f $ac_dir/install-sh; then |
| 605 | ac_aux_dir=$ac_dir |
| 606 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 607 | break |
| 608 | elif test -f $ac_dir/install.sh; then |
| 609 | ac_aux_dir=$ac_dir |
| 610 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 611 | break |
| 612 | fi |
| 613 | done |
| 614 | if test -z "$ac_aux_dir"; then |
| 615 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
| 616 | fi |
| 617 | ac_config_guess=$ac_aux_dir/config.guess |
| 618 | ac_config_sub=$ac_aux_dir/config.sub |
| 619 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
| 620 | |
| 621 | |
| 622 | # Make sure we can run config.sub. |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 623 | 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] | 624 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
| 625 | fi |
| 626 | |
| 627 | echo $ac_n "checking host system type""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 628 | echo "configure:629: checking host system type" >&5 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 629 | |
| 630 | host_alias=$host |
| 631 | case "$host_alias" in |
| 632 | NONE) |
| 633 | case $nonopt in |
| 634 | NONE) |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 635 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 636 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
| 637 | fi ;; |
| 638 | *) host_alias=$nonopt ;; |
| 639 | esac ;; |
| 640 | esac |
| 641 | |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 642 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 643 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 644 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 645 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 646 | echo "$ac_t""$host" 1>&6 |
| 647 | |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 648 | # Check whether --with-cc or --without-cc was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 649 | if test "${with_cc+set}" = set; then |
| 650 | withval="$with_cc" |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 651 | echo "$ac_t""CC=$withval" 1>&6 |
| 652 | CC=$withval |
| 653 | else |
| 654 | if test -z "$CC" ; then CC=cc; fi |
| 655 | echo "$ac_t""CC defaults to $CC" 1>&6 |
| 656 | fi |
| 657 | export CC |
| 658 | |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 659 | # Extract the first word of "gcc", so it can be a program name with args. |
| 660 | set dummy gcc; ac_word=$2 |
| 661 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 662 | echo "configure:663: checking for $ac_word" >&5 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 663 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 664 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 665 | else |
| 666 | if test -n "$CC"; then |
| 667 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 668 | else |
| 669 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 670 | ac_dummy="$PATH" |
| 671 | for ac_dir in $ac_dummy; do |
| 672 | test -z "$ac_dir" && ac_dir=. |
| 673 | if test -f $ac_dir/$ac_word; then |
| 674 | ac_cv_prog_CC="gcc" |
| 675 | break |
| 676 | fi |
| 677 | done |
| 678 | IFS="$ac_save_ifs" |
| 679 | fi |
| 680 | fi |
| 681 | CC="$ac_cv_prog_CC" |
| 682 | if test -n "$CC"; then |
| 683 | echo "$ac_t""$CC" 1>&6 |
| 684 | else |
| 685 | echo "$ac_t""no" 1>&6 |
| 686 | fi |
| 687 | |
| 688 | if test -z "$CC"; then |
| 689 | # Extract the first word of "cc", so it can be a program name with args. |
| 690 | set dummy cc; ac_word=$2 |
| 691 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 692 | echo "configure:693: checking for $ac_word" >&5 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 693 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 694 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 695 | else |
| 696 | if test -n "$CC"; then |
| 697 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 698 | else |
| 699 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 700 | ac_prog_rejected=no |
| 701 | ac_dummy="$PATH" |
| 702 | for ac_dir in $ac_dummy; do |
| 703 | test -z "$ac_dir" && ac_dir=. |
| 704 | if test -f $ac_dir/$ac_word; then |
| 705 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
| 706 | ac_prog_rejected=yes |
| 707 | continue |
| 708 | fi |
| 709 | ac_cv_prog_CC="cc" |
| 710 | break |
| 711 | fi |
| 712 | done |
| 713 | IFS="$ac_save_ifs" |
| 714 | if test $ac_prog_rejected = yes; then |
| 715 | # We found a bogon in the path, so make sure we never use it. |
| 716 | set dummy $ac_cv_prog_CC |
| 717 | shift |
| 718 | if test $# -gt 0; then |
| 719 | # We chose a different compiler from the bogus one. |
| 720 | # However, it has the same basename, so the bogon will be chosen |
| 721 | # first if we set CC to just the basename; use the full file name. |
| 722 | shift |
| 723 | set dummy "$ac_dir/$ac_word" "$@" |
| 724 | shift |
| 725 | ac_cv_prog_CC="$@" |
| 726 | fi |
| 727 | fi |
| 728 | fi |
| 729 | fi |
| 730 | CC="$ac_cv_prog_CC" |
| 731 | if test -n "$CC"; then |
| 732 | echo "$ac_t""$CC" 1>&6 |
| 733 | else |
| 734 | echo "$ac_t""no" 1>&6 |
| 735 | fi |
| 736 | |
| 737 | if test -z "$CC"; then |
| 738 | case "`uname -s`" in |
| 739 | *win32* | *WIN32*) |
| 740 | # Extract the first word of "cl", so it can be a program name with args. |
| 741 | set dummy cl; ac_word=$2 |
| 742 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 743 | echo "configure:744: checking for $ac_word" >&5 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 744 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 745 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 746 | else |
| 747 | if test -n "$CC"; then |
| 748 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 749 | else |
| 750 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 751 | ac_dummy="$PATH" |
| 752 | for ac_dir in $ac_dummy; do |
| 753 | test -z "$ac_dir" && ac_dir=. |
| 754 | if test -f $ac_dir/$ac_word; then |
| 755 | ac_cv_prog_CC="cl" |
| 756 | break |
| 757 | fi |
| 758 | done |
| 759 | IFS="$ac_save_ifs" |
| 760 | fi |
| 761 | fi |
| 762 | CC="$ac_cv_prog_CC" |
| 763 | if test -n "$CC"; then |
| 764 | echo "$ac_t""$CC" 1>&6 |
| 765 | else |
| 766 | echo "$ac_t""no" 1>&6 |
| 767 | fi |
| 768 | ;; |
| 769 | esac |
| 770 | fi |
| 771 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
| 772 | fi |
| 773 | |
| 774 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 775 | echo "configure:776: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 776 | |
| 777 | ac_ext=c |
| 778 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 779 | ac_cpp='$CPP $CPPFLAGS' |
| 780 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 781 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 782 | cross_compiling=$ac_cv_prog_cc_cross |
| 783 | |
| 784 | cat > conftest.$ac_ext << EOF |
| 785 | |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 786 | #line 787 "configure" |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 787 | #include "confdefs.h" |
| 788 | |
| 789 | main(){return(0);} |
| 790 | EOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 791 | if { (eval echo configure:792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 792 | ac_cv_prog_cc_works=yes |
| 793 | # If we can't run a trivial program, we are probably using a cross compiler. |
| 794 | if (./conftest; exit) 2>/dev/null; then |
| 795 | ac_cv_prog_cc_cross=no |
| 796 | else |
| 797 | ac_cv_prog_cc_cross=yes |
| 798 | fi |
| 799 | else |
| 800 | echo "configure: failed program was:" >&5 |
| 801 | cat conftest.$ac_ext >&5 |
| 802 | ac_cv_prog_cc_works=no |
| 803 | fi |
| 804 | rm -fr conftest* |
| 805 | ac_ext=c |
| 806 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 807 | ac_cpp='$CPP $CPPFLAGS' |
| 808 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 809 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 810 | cross_compiling=$ac_cv_prog_cc_cross |
| 811 | |
| 812 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
| 813 | if test $ac_cv_prog_cc_works = no; then |
| 814 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
| 815 | fi |
| 816 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 817 | echo "configure:818: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 818 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
| 819 | cross_compiling=$ac_cv_prog_cc_cross |
| 820 | |
| 821 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 822 | echo "configure:823: checking whether we are using GNU C" >&5 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 823 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
| 824 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 825 | else |
| 826 | cat > conftest.c <<EOF |
| 827 | #ifdef __GNUC__ |
| 828 | yes; |
| 829 | #endif |
| 830 | EOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 831 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:832: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 832 | ac_cv_prog_gcc=yes |
| 833 | else |
| 834 | ac_cv_prog_gcc=no |
| 835 | fi |
| 836 | fi |
| 837 | |
| 838 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
| 839 | |
| 840 | if test $ac_cv_prog_gcc = yes; then |
| 841 | GCC=yes |
| 842 | else |
| 843 | GCC= |
| 844 | fi |
| 845 | |
| 846 | ac_test_CFLAGS="${CFLAGS+set}" |
| 847 | ac_save_CFLAGS="$CFLAGS" |
| 848 | CFLAGS= |
| 849 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 850 | echo "configure:851: checking whether ${CC-cc} accepts -g" >&5 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 851 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
| 852 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 853 | else |
| 854 | echo 'void f(){}' > conftest.c |
| 855 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
| 856 | ac_cv_prog_cc_g=yes |
| 857 | else |
| 858 | ac_cv_prog_cc_g=no |
| 859 | fi |
| 860 | rm -f conftest* |
| 861 | |
| 862 | fi |
| 863 | |
| 864 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
| 865 | if test "$ac_test_CFLAGS" = set; then |
| 866 | CFLAGS="$ac_save_CFLAGS" |
| 867 | elif test $ac_cv_prog_cc_g = yes; then |
| 868 | if test "$GCC" = yes; then |
| 869 | CFLAGS="-g -O2" |
| 870 | else |
| 871 | CFLAGS="-g" |
| 872 | fi |
| 873 | else |
| 874 | if test "$GCC" = yes; then |
| 875 | CFLAGS="-O2" |
| 876 | else |
| 877 | CFLAGS= |
| 878 | fi |
| 879 | fi |
| 880 | |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 881 | # Check whether --with-linker or --without-linker was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 882 | if test "${with_linker+set}" = set; then |
| 883 | withval="$with_linker" |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 884 | echo "$ac_t""LD=$withval" 1>&6 |
| 885 | LD=$withval |
| 886 | else |
| 887 | if test -z "$LD" ; then LD=$CC; fi |
| 888 | echo "$ac_t""LD defaults to $LD" 1>&6 |
| 889 | fi |
| 890 | export LD |
| 891 | |
| 892 | # Check whether --with-ccopts or --without-ccopts was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 893 | if test "${with_ccopts+set}" = set; then |
| 894 | withval="$with_ccopts" |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 895 | echo "$ac_t""CCOPTS is $withval" 1>&6 |
| 896 | CCOPTS=$withval |
| 897 | CFLAGS="$CFLAGS $withval" |
| 898 | else |
| 899 | CCOPTS= |
| 900 | fi |
| 901 | |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 902 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 903 | echo "configure:904: checking how to run the C preprocessor" >&5 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 904 | # On Suns, sometimes $CPP names a directory. |
| 905 | if test -n "$CPP" && test -d "$CPP"; then |
| 906 | CPP= |
| 907 | fi |
| 908 | if test -z "$CPP"; then |
| 909 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
| 910 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 911 | else |
| 912 | # This must be in double quotes, not single quotes, because CPP may get |
| 913 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
| 914 | CPP="${CC-cc} -E" |
| 915 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 916 | # not just through cpp. |
| 917 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 918 | #line 919 "configure" |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 919 | #include "confdefs.h" |
| 920 | #include <assert.h> |
| 921 | Syntax Error |
| 922 | EOF |
| 923 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 924 | { (eval echo configure:925: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 925 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 926 | if test -z "$ac_err"; then |
| 927 | : |
| 928 | else |
| 929 | echo "$ac_err" >&5 |
| 930 | echo "configure: failed program was:" >&5 |
| 931 | cat conftest.$ac_ext >&5 |
| 932 | rm -rf conftest* |
| 933 | CPP="${CC-cc} -E -traditional-cpp" |
| 934 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 935 | #line 936 "configure" |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 936 | #include "confdefs.h" |
| 937 | #include <assert.h> |
| 938 | Syntax Error |
| 939 | EOF |
| 940 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 941 | { (eval echo configure:942: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 942 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 943 | if test -z "$ac_err"; then |
| 944 | : |
| 945 | else |
| 946 | echo "$ac_err" >&5 |
| 947 | echo "configure: failed program was:" >&5 |
| 948 | cat conftest.$ac_ext >&5 |
| 949 | rm -rf conftest* |
| 950 | CPP="${CC-cc} -nologo -E" |
| 951 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 952 | #line 953 "configure" |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 953 | #include "confdefs.h" |
| 954 | #include <assert.h> |
| 955 | Syntax Error |
| 956 | EOF |
| 957 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 958 | { (eval echo configure:959: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 959 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 960 | if test -z "$ac_err"; then |
| 961 | : |
| 962 | else |
| 963 | echo "$ac_err" >&5 |
| 964 | echo "configure: failed program was:" >&5 |
| 965 | cat conftest.$ac_ext >&5 |
| 966 | rm -rf conftest* |
| 967 | CPP=/lib/cpp |
| 968 | fi |
| 969 | rm -f conftest* |
| 970 | fi |
| 971 | rm -f conftest* |
| 972 | fi |
| 973 | rm -f conftest* |
| 974 | ac_cv_prog_CPP="$CPP" |
| 975 | fi |
| 976 | CPP="$ac_cv_prog_CPP" |
| 977 | else |
| 978 | ac_cv_prog_CPP="$CPP" |
| 979 | fi |
| 980 | echo "$ac_t""$CPP" 1>&6 |
| 981 | |
| 982 | ac_safe=`echo "linux/fs.h" | sed 'y%./+-%__p_%'` |
| 983 | echo $ac_n "checking for linux/fs.h""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 984 | echo "configure:985: checking for linux/fs.h" >&5 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 985 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 986 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 987 | else |
| 988 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 989 | #line 990 "configure" |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 990 | #include "confdefs.h" |
| 991 | #include <linux/fs.h> |
| 992 | EOF |
| 993 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 994 | { (eval echo configure:995: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 995 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 996 | if test -z "$ac_err"; then |
| 997 | rm -rf conftest* |
| 998 | eval "ac_cv_header_$ac_safe=yes" |
| 999 | else |
| 1000 | echo "$ac_err" >&5 |
| 1001 | echo "configure: failed program was:" >&5 |
| 1002 | cat conftest.$ac_ext >&5 |
| 1003 | rm -rf conftest* |
| 1004 | eval "ac_cv_header_$ac_safe=no" |
| 1005 | fi |
| 1006 | rm -f conftest* |
| 1007 | fi |
| 1008 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 1009 | echo "$ac_t""yes" 1>&6 |
| 1010 | linux_headers=yes |
| 1011 | else |
| 1012 | echo "$ac_t""no" 1>&6 |
| 1013 | linux_headers=no |
| 1014 | fi |
| 1015 | |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 1016 | if test "$linux_headers" != yes; then |
| 1017 | LINUX_INCLUDE='-I$(top_builddir)/include' |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1018 | fi |
| 1019 | |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 1020 | LIB_EXT=.a |
| 1021 | STATIC_LIB_EXT=.a |
| 1022 | PROFILE_LIB_EXT=.a |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1023 | # Check whether --with-ldopts or --without-ldopts was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1024 | if test "${with_ldopts+set}" = set; then |
| 1025 | withval="$with_ldopts" |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1026 | echo "$ac_t""LDFLAGS is $withval" 1>&6 |
| 1027 | LDFLAGS=$withval |
| 1028 | else |
| 1029 | LDFLAGS= |
| 1030 | fi |
| 1031 | |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 1032 | # Check whether --with-root-prefix or --without-root-prefix was given. |
| 1033 | if test "${with_root_prefix+set}" = set; then |
| 1034 | withval="$with_root_prefix" |
| 1035 | root_prefix=$withval |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 1036 | else |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 1037 | root_prefix=NONE |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 1038 | fi |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 1039 | # Check whether --enable-compression or --disable-compression was given. |
| 1040 | if test "${enable_compression+set}" = set; then |
| 1041 | enableval="$enable_compression" |
| 1042 | if test "$enableval" = "no" |
| 1043 | then |
| 1044 | echo "Disabling compression support" |
| 1045 | else |
| 1046 | cat >> confdefs.h <<\EOF |
| 1047 | #define ENABLE_COMPRESSION 1 |
| 1048 | EOF |
| 1049 | |
| 1050 | echo "Enabling compression support" |
| 1051 | echo "WARNING: Compression support is experimental" |
| 1052 | fi |
| 1053 | |
| 1054 | else |
| 1055 | echo "Disabling compression support by default" |
| 1056 | |
| 1057 | fi |
| 1058 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1059 | # Check whether --enable-dll-shlibs or --disable-dll-shlibs was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1060 | if test "${enable_dll_shlibs+set}" = set; then |
| 1061 | enableval="$enable_dll_shlibs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1062 | if test "$enableval" = "no" |
| 1063 | then |
| 1064 | DLL_CMT=# |
| 1065 | MAKEFILE_DLL=/dev/null |
| 1066 | echo "Disabling DLL shared libraries" |
| 1067 | else |
| 1068 | DLL_CMT= |
| 1069 | MAKEFILE_DLL=$srcdir/lib/Makefile.dll-lib |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1070 | BINARY_TYPE=dllbin |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 1071 | LIB_EXT=.sa |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1072 | echo "Enabling DLL shared libraries" |
| 1073 | fi |
| 1074 | |
| 1075 | else |
| 1076 | MAKEFILE_DLL=/dev/null |
| 1077 | DLL_CMT=# |
| 1078 | echo "Disabling DLL shared libraries by default" |
| 1079 | |
| 1080 | fi |
| 1081 | |
| 1082 | |
| 1083 | |
| 1084 | # Check whether --enable-elf-shlibs or --disable-elf-shlibs was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1085 | if test "${enable_elf_shlibs+set}" = set; then |
| 1086 | enableval="$enable_elf_shlibs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1087 | if test "$enableval" = "no" |
| 1088 | then |
| 1089 | ELF_CMT=# |
| 1090 | MAKEFILE_ELF=/dev/null |
| 1091 | echo "Disabling ELF shared libraries" |
| 1092 | else |
| 1093 | ELF_CMT= |
| 1094 | MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1095 | BINARY_TYPE=elfbin |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 1096 | LIB_EXT=.so |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1097 | echo "Enabling ELF shared libraries" |
| 1098 | fi |
| 1099 | |
| 1100 | else |
| 1101 | MAKEFILE_ELF=/dev/null |
| 1102 | ELF_CMT=# |
| 1103 | echo "Disabling ELF shared libraries by default" |
| 1104 | |
| 1105 | fi |
| 1106 | |
| 1107 | |
| 1108 | |
| 1109 | # Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1110 | if test "${enable_bsd_shlibs+set}" = set; then |
| 1111 | enableval="$enable_bsd_shlibs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1112 | if test "$enableval" = "no" |
| 1113 | then |
| 1114 | BSDLIB_CMT=# |
| 1115 | MAKEFILE_BSDLIB=/dev/null |
| 1116 | echo "Disabling BSD shared libraries" |
| 1117 | else |
| 1118 | BSDLIB_CMT= |
| 1119 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 1120 | LIB_EXT=.so |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1121 | echo "Enabling BSD shared libraries" |
| 1122 | fi |
| 1123 | |
| 1124 | else |
| 1125 | MAKEFILE_BSDLIB=/dev/null |
| 1126 | BSDLIB_CMT=# |
| 1127 | echo "Disabling BSD shared libraries by default" |
| 1128 | |
| 1129 | fi |
| 1130 | |
| 1131 | |
| 1132 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1133 | PACKAGE=e2fsprogs |
| 1134 | VERSION="$E2FSPROGS_VERSION" |
| 1135 | cat >> confdefs.h <<EOF |
| 1136 | #define PACKAGE "$PACKAGE" |
| 1137 | EOF |
| 1138 | |
| 1139 | cat >> confdefs.h <<EOF |
| 1140 | #define VERSION "$VERSION" |
| 1141 | EOF |
| 1142 | |
| 1143 | |
| 1144 | |
| 1145 | |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 1146 | ALL_LINGUAS="it nyc" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1147 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 1148 | echo "configure:1149: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1149 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
| 1150 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
| 1151 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1152 | else |
| 1153 | cat > conftestmake <<\EOF |
| 1154 | all: |
| 1155 | @echo 'ac_maketemp="${MAKE}"' |
| 1156 | EOF |
| 1157 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 1158 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
| 1159 | if test -n "$ac_maketemp"; then |
| 1160 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 1161 | else |
| 1162 | eval ac_cv_prog_make_${ac_make}_set=no |
| 1163 | fi |
| 1164 | rm -f conftestmake |
| 1165 | fi |
| 1166 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
| 1167 | echo "$ac_t""yes" 1>&6 |
| 1168 | SET_MAKE= |
| 1169 | else |
| 1170 | echo "$ac_t""no" 1>&6 |
| 1171 | SET_MAKE="MAKE=${MAKE-make}" |
| 1172 | fi |
| 1173 | |
| 1174 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 1175 | set dummy ranlib; ac_word=$2 |
| 1176 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 1177 | echo "configure:1178: checking for $ac_word" >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1178 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
| 1179 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1180 | else |
| 1181 | if test -n "$RANLIB"; then |
| 1182 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 1183 | else |
| 1184 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1185 | ac_dummy="$PATH" |
| 1186 | for ac_dir in $ac_dummy; do |
| 1187 | test -z "$ac_dir" && ac_dir=. |
| 1188 | if test -f $ac_dir/$ac_word; then |
| 1189 | ac_cv_prog_RANLIB="ranlib" |
| 1190 | break |
| 1191 | fi |
| 1192 | done |
| 1193 | IFS="$ac_save_ifs" |
| 1194 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
| 1195 | fi |
| 1196 | fi |
| 1197 | RANLIB="$ac_cv_prog_RANLIB" |
| 1198 | if test -n "$RANLIB"; then |
| 1199 | echo "$ac_t""$RANLIB" 1>&6 |
| 1200 | else |
| 1201 | echo "$ac_t""no" 1>&6 |
| 1202 | fi |
| 1203 | |
| 1204 | echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 1205 | echo "configure:1206: checking for POSIXized ISC" >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1206 | if test -d /etc/conf/kconfig.d && |
| 1207 | grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 |
| 1208 | then |
| 1209 | echo "$ac_t""yes" 1>&6 |
| 1210 | ISC=yes # If later tests want to check for ISC. |
| 1211 | cat >> confdefs.h <<\EOF |
| 1212 | #define _POSIX_SOURCE 1 |
| 1213 | EOF |
| 1214 | |
| 1215 | if test "$GCC" = yes; then |
| 1216 | CC="$CC -posix" |
| 1217 | else |
| 1218 | CC="$CC -Xp" |
| 1219 | fi |
| 1220 | else |
| 1221 | echo "$ac_t""no" 1>&6 |
| 1222 | ISC= |
| 1223 | fi |
| 1224 | |
| 1225 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 1226 | echo "configure:1227: checking for ANSI C header files" >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1227 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
| 1228 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1229 | else |
| 1230 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 1231 | #line 1232 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1232 | #include "confdefs.h" |
| 1233 | #include <stdlib.h> |
| 1234 | #include <stdarg.h> |
| 1235 | #include <string.h> |
| 1236 | #include <float.h> |
| 1237 | EOF |
| 1238 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 1239 | { (eval echo configure:1240: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1240 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1241 | if test -z "$ac_err"; then |
| 1242 | rm -rf conftest* |
| 1243 | ac_cv_header_stdc=yes |
| 1244 | else |
| 1245 | echo "$ac_err" >&5 |
| 1246 | echo "configure: failed program was:" >&5 |
| 1247 | cat conftest.$ac_ext >&5 |
| 1248 | rm -rf conftest* |
| 1249 | ac_cv_header_stdc=no |
| 1250 | fi |
| 1251 | rm -f conftest* |
| 1252 | |
| 1253 | if test $ac_cv_header_stdc = yes; then |
| 1254 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 1255 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 1256 | #line 1257 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1257 | #include "confdefs.h" |
| 1258 | #include <string.h> |
| 1259 | EOF |
| 1260 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1261 | egrep "memchr" >/dev/null 2>&1; then |
| 1262 | : |
| 1263 | else |
| 1264 | rm -rf conftest* |
| 1265 | ac_cv_header_stdc=no |
| 1266 | fi |
| 1267 | rm -f conftest* |
| 1268 | |
| 1269 | fi |
| 1270 | |
| 1271 | if test $ac_cv_header_stdc = yes; then |
| 1272 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 1273 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 1274 | #line 1275 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1275 | #include "confdefs.h" |
| 1276 | #include <stdlib.h> |
| 1277 | EOF |
| 1278 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1279 | egrep "free" >/dev/null 2>&1; then |
| 1280 | : |
| 1281 | else |
| 1282 | rm -rf conftest* |
| 1283 | ac_cv_header_stdc=no |
| 1284 | fi |
| 1285 | rm -f conftest* |
| 1286 | |
| 1287 | fi |
| 1288 | |
| 1289 | if test $ac_cv_header_stdc = yes; then |
| 1290 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 1291 | if test "$cross_compiling" = yes; then |
| 1292 | : |
| 1293 | else |
| 1294 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 1295 | #line 1296 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1296 | #include "confdefs.h" |
| 1297 | #include <ctype.h> |
| 1298 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 1299 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 1300 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 1301 | int main () { int i; for (i = 0; i < 256; i++) |
| 1302 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
| 1303 | exit (0); } |
| 1304 | |
| 1305 | EOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 1306 | if { (eval echo configure:1307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1307 | then |
| 1308 | : |
| 1309 | else |
| 1310 | echo "configure: failed program was:" >&5 |
| 1311 | cat conftest.$ac_ext >&5 |
| 1312 | rm -fr conftest* |
| 1313 | ac_cv_header_stdc=no |
| 1314 | fi |
| 1315 | rm -fr conftest* |
| 1316 | fi |
| 1317 | |
| 1318 | fi |
| 1319 | fi |
| 1320 | |
| 1321 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
| 1322 | if test $ac_cv_header_stdc = yes; then |
| 1323 | cat >> confdefs.h <<\EOF |
| 1324 | #define STDC_HEADERS 1 |
| 1325 | EOF |
| 1326 | |
| 1327 | fi |
| 1328 | |
| 1329 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 1330 | echo "configure:1331: checking for working const" >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1331 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
| 1332 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1333 | else |
| 1334 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 1335 | #line 1336 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1336 | #include "confdefs.h" |
| 1337 | |
| 1338 | int main() { |
| 1339 | |
| 1340 | /* Ultrix mips cc rejects this. */ |
| 1341 | typedef int charset[2]; const charset x; |
| 1342 | /* SunOS 4.1.1 cc rejects this. */ |
| 1343 | char const *const *ccp; |
| 1344 | char **p; |
| 1345 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 1346 | struct point {int x, y;}; |
| 1347 | static struct point const zero = {0,0}; |
| 1348 | /* AIX XL C 1.02.0.0 rejects this. |
| 1349 | It does not let you subtract one const X* pointer from another in an arm |
| 1350 | of an if-expression whose if-part is not a constant expression */ |
| 1351 | const char *g = "string"; |
| 1352 | ccp = &g + (g ? g-g : 0); |
| 1353 | /* HPUX 7.0 cc rejects these. */ |
| 1354 | ++ccp; |
| 1355 | p = (char**) ccp; |
| 1356 | ccp = (char const *const *) p; |
| 1357 | { /* SCO 3.2v4 cc rejects this. */ |
| 1358 | char *t; |
| 1359 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 1360 | |
| 1361 | *t++ = 0; |
| 1362 | } |
| 1363 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 1364 | int x[] = {25, 17}; |
| 1365 | const int *foo = &x[0]; |
| 1366 | ++foo; |
| 1367 | } |
| 1368 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 1369 | typedef const int *iptr; |
| 1370 | iptr p = 0; |
| 1371 | ++p; |
| 1372 | } |
| 1373 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 1374 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 1375 | struct s { int j; const int *ap[3]; }; |
| 1376 | struct s *b; b->j = 5; |
| 1377 | } |
| 1378 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 1379 | const int foo = 10; |
| 1380 | } |
| 1381 | |
| 1382 | ; return 0; } |
| 1383 | EOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 1384 | if { (eval echo configure:1385: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1385 | rm -rf conftest* |
| 1386 | ac_cv_c_const=yes |
| 1387 | else |
| 1388 | echo "configure: failed program was:" >&5 |
| 1389 | cat conftest.$ac_ext >&5 |
| 1390 | rm -rf conftest* |
| 1391 | ac_cv_c_const=no |
| 1392 | fi |
| 1393 | rm -f conftest* |
| 1394 | fi |
| 1395 | |
| 1396 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
| 1397 | if test $ac_cv_c_const = no; then |
| 1398 | cat >> confdefs.h <<\EOF |
| 1399 | #define const |
| 1400 | EOF |
| 1401 | |
| 1402 | fi |
| 1403 | |
| 1404 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 1405 | echo "configure:1406: checking for inline" >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1406 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
| 1407 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1408 | else |
| 1409 | ac_cv_c_inline=no |
| 1410 | for ac_kw in inline __inline__ __inline; do |
| 1411 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 1412 | #line 1413 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1413 | #include "confdefs.h" |
| 1414 | |
| 1415 | int main() { |
| 1416 | } $ac_kw foo() { |
| 1417 | ; return 0; } |
| 1418 | EOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 1419 | if { (eval echo configure:1420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1420 | rm -rf conftest* |
| 1421 | ac_cv_c_inline=$ac_kw; break |
| 1422 | else |
| 1423 | echo "configure: failed program was:" >&5 |
| 1424 | cat conftest.$ac_ext >&5 |
| 1425 | fi |
| 1426 | rm -f conftest* |
| 1427 | done |
| 1428 | |
| 1429 | fi |
| 1430 | |
| 1431 | echo "$ac_t""$ac_cv_c_inline" 1>&6 |
| 1432 | case "$ac_cv_c_inline" in |
| 1433 | inline | yes) ;; |
| 1434 | no) cat >> confdefs.h <<\EOF |
| 1435 | #define inline |
| 1436 | EOF |
| 1437 | ;; |
| 1438 | *) cat >> confdefs.h <<EOF |
| 1439 | #define inline $ac_cv_c_inline |
| 1440 | EOF |
| 1441 | ;; |
| 1442 | esac |
| 1443 | |
| 1444 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 1445 | echo "configure:1446: checking for off_t" >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1446 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
| 1447 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1448 | else |
| 1449 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 1450 | #line 1451 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1451 | #include "confdefs.h" |
| 1452 | #include <sys/types.h> |
| 1453 | #if STDC_HEADERS |
| 1454 | #include <stdlib.h> |
| 1455 | #include <stddef.h> |
| 1456 | #endif |
| 1457 | EOF |
| 1458 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1459 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
| 1460 | rm -rf conftest* |
| 1461 | ac_cv_type_off_t=yes |
| 1462 | else |
| 1463 | rm -rf conftest* |
| 1464 | ac_cv_type_off_t=no |
| 1465 | fi |
| 1466 | rm -f conftest* |
| 1467 | |
| 1468 | fi |
| 1469 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 |
| 1470 | if test $ac_cv_type_off_t = no; then |
| 1471 | cat >> confdefs.h <<\EOF |
| 1472 | #define off_t long |
| 1473 | EOF |
| 1474 | |
| 1475 | fi |
| 1476 | |
| 1477 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 1478 | echo "configure:1479: checking for size_t" >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1479 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
| 1480 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1481 | else |
| 1482 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 1483 | #line 1484 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1484 | #include "confdefs.h" |
| 1485 | #include <sys/types.h> |
| 1486 | #if STDC_HEADERS |
| 1487 | #include <stdlib.h> |
| 1488 | #include <stddef.h> |
| 1489 | #endif |
| 1490 | EOF |
| 1491 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1492 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
| 1493 | rm -rf conftest* |
| 1494 | ac_cv_type_size_t=yes |
| 1495 | else |
| 1496 | rm -rf conftest* |
| 1497 | ac_cv_type_size_t=no |
| 1498 | fi |
| 1499 | rm -f conftest* |
| 1500 | |
| 1501 | fi |
| 1502 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 |
| 1503 | if test $ac_cv_type_size_t = no; then |
| 1504 | cat >> confdefs.h <<\EOF |
| 1505 | #define size_t unsigned |
| 1506 | EOF |
| 1507 | |
| 1508 | fi |
| 1509 | |
| 1510 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 1511 | # for constant arguments. Useless! |
| 1512 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 1513 | echo "configure:1514: checking for working alloca.h" >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1514 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then |
| 1515 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1516 | else |
| 1517 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 1518 | #line 1519 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1519 | #include "confdefs.h" |
| 1520 | #include <alloca.h> |
| 1521 | int main() { |
| 1522 | char *p = alloca(2 * sizeof(int)); |
| 1523 | ; return 0; } |
| 1524 | EOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 1525 | if { (eval echo configure:1526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1526 | rm -rf conftest* |
| 1527 | ac_cv_header_alloca_h=yes |
| 1528 | else |
| 1529 | echo "configure: failed program was:" >&5 |
| 1530 | cat conftest.$ac_ext >&5 |
| 1531 | rm -rf conftest* |
| 1532 | ac_cv_header_alloca_h=no |
| 1533 | fi |
| 1534 | rm -f conftest* |
| 1535 | fi |
| 1536 | |
| 1537 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 |
| 1538 | if test $ac_cv_header_alloca_h = yes; then |
| 1539 | cat >> confdefs.h <<\EOF |
| 1540 | #define HAVE_ALLOCA_H 1 |
| 1541 | EOF |
| 1542 | |
| 1543 | fi |
| 1544 | |
| 1545 | echo $ac_n "checking for alloca""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 1546 | echo "configure:1547: checking for alloca" >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1547 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then |
| 1548 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1549 | else |
| 1550 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 1551 | #line 1552 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1552 | #include "confdefs.h" |
| 1553 | |
| 1554 | #ifdef __GNUC__ |
| 1555 | # define alloca __builtin_alloca |
| 1556 | #else |
| 1557 | # ifdef _MSC_VER |
| 1558 | # include <malloc.h> |
| 1559 | # define alloca _alloca |
| 1560 | # else |
| 1561 | # if HAVE_ALLOCA_H |
| 1562 | # include <alloca.h> |
| 1563 | # else |
| 1564 | # ifdef _AIX |
| 1565 | #pragma alloca |
| 1566 | # else |
| 1567 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 1568 | char *alloca (); |
| 1569 | # endif |
| 1570 | # endif |
| 1571 | # endif |
| 1572 | # endif |
| 1573 | #endif |
| 1574 | |
| 1575 | int main() { |
| 1576 | char *p = (char *) alloca(1); |
| 1577 | ; return 0; } |
| 1578 | EOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 1579 | if { (eval echo configure:1580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1580 | rm -rf conftest* |
| 1581 | ac_cv_func_alloca_works=yes |
| 1582 | else |
| 1583 | echo "configure: failed program was:" >&5 |
| 1584 | cat conftest.$ac_ext >&5 |
| 1585 | rm -rf conftest* |
| 1586 | ac_cv_func_alloca_works=no |
| 1587 | fi |
| 1588 | rm -f conftest* |
| 1589 | fi |
| 1590 | |
| 1591 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 |
| 1592 | if test $ac_cv_func_alloca_works = yes; then |
| 1593 | cat >> confdefs.h <<\EOF |
| 1594 | #define HAVE_ALLOCA 1 |
| 1595 | EOF |
| 1596 | |
| 1597 | fi |
| 1598 | |
| 1599 | if test $ac_cv_func_alloca_works = no; then |
| 1600 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 1601 | # that cause trouble. Some versions do not even contain alloca or |
| 1602 | # contain a buggy version. If you still want to use their alloca, |
| 1603 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 1604 | ALLOCA=alloca.${ac_objext} |
| 1605 | cat >> confdefs.h <<\EOF |
| 1606 | #define C_ALLOCA 1 |
| 1607 | EOF |
| 1608 | |
| 1609 | |
| 1610 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 1611 | echo "configure:1612: checking whether alloca needs Cray hooks" >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1612 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then |
| 1613 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1614 | else |
| 1615 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 1616 | #line 1617 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1617 | #include "confdefs.h" |
| 1618 | #if defined(CRAY) && ! defined(CRAY2) |
| 1619 | webecray |
| 1620 | #else |
| 1621 | wenotbecray |
| 1622 | #endif |
| 1623 | |
| 1624 | EOF |
| 1625 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1626 | egrep "webecray" >/dev/null 2>&1; then |
| 1627 | rm -rf conftest* |
| 1628 | ac_cv_os_cray=yes |
| 1629 | else |
| 1630 | rm -rf conftest* |
| 1631 | ac_cv_os_cray=no |
| 1632 | fi |
| 1633 | rm -f conftest* |
| 1634 | |
| 1635 | fi |
| 1636 | |
| 1637 | echo "$ac_t""$ac_cv_os_cray" 1>&6 |
| 1638 | if test $ac_cv_os_cray = yes; then |
| 1639 | for ac_func in _getb67 GETB67 getb67; do |
| 1640 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 1641 | echo "configure:1642: checking for $ac_func" >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1642 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 1643 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1644 | else |
| 1645 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 1646 | #line 1647 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1647 | #include "confdefs.h" |
| 1648 | /* System header to define __stub macros and hopefully few prototypes, |
| 1649 | which can conflict with char $ac_func(); below. */ |
| 1650 | #include <assert.h> |
| 1651 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1652 | /* We use char because int might match the return type of a gcc2 |
| 1653 | builtin and then its argument prototype would still apply. */ |
| 1654 | char $ac_func(); |
| 1655 | |
| 1656 | int main() { |
| 1657 | |
| 1658 | /* The GNU C library defines this for functions which it implements |
| 1659 | to always fail with ENOSYS. Some functions are actually named |
| 1660 | something starting with __ and the normal name is an alias. */ |
| 1661 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 1662 | choke me |
| 1663 | #else |
| 1664 | $ac_func(); |
| 1665 | #endif |
| 1666 | |
| 1667 | ; return 0; } |
| 1668 | EOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 1669 | if { (eval echo configure:1670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1670 | rm -rf conftest* |
| 1671 | eval "ac_cv_func_$ac_func=yes" |
| 1672 | else |
| 1673 | echo "configure: failed program was:" >&5 |
| 1674 | cat conftest.$ac_ext >&5 |
| 1675 | rm -rf conftest* |
| 1676 | eval "ac_cv_func_$ac_func=no" |
| 1677 | fi |
| 1678 | rm -f conftest* |
| 1679 | fi |
| 1680 | |
| 1681 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 1682 | echo "$ac_t""yes" 1>&6 |
| 1683 | cat >> confdefs.h <<EOF |
| 1684 | #define CRAY_STACKSEG_END $ac_func |
| 1685 | EOF |
| 1686 | |
| 1687 | break |
| 1688 | else |
| 1689 | echo "$ac_t""no" 1>&6 |
| 1690 | fi |
| 1691 | |
| 1692 | done |
| 1693 | fi |
| 1694 | |
| 1695 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 1696 | echo "configure:1697: checking stack direction for C alloca" >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1697 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then |
| 1698 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1699 | else |
| 1700 | if test "$cross_compiling" = yes; then |
| 1701 | ac_cv_c_stack_direction=0 |
| 1702 | else |
| 1703 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 1704 | #line 1705 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1705 | #include "confdefs.h" |
| 1706 | find_stack_direction () |
| 1707 | { |
| 1708 | static char *addr = 0; |
| 1709 | auto char dummy; |
| 1710 | if (addr == 0) |
| 1711 | { |
| 1712 | addr = &dummy; |
| 1713 | return find_stack_direction (); |
| 1714 | } |
| 1715 | else |
| 1716 | return (&dummy > addr) ? 1 : -1; |
| 1717 | } |
| 1718 | main () |
| 1719 | { |
| 1720 | exit (find_stack_direction() < 0); |
| 1721 | } |
| 1722 | EOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 1723 | if { (eval echo configure:1724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1724 | then |
| 1725 | ac_cv_c_stack_direction=1 |
| 1726 | else |
| 1727 | echo "configure: failed program was:" >&5 |
| 1728 | cat conftest.$ac_ext >&5 |
| 1729 | rm -fr conftest* |
| 1730 | ac_cv_c_stack_direction=-1 |
| 1731 | fi |
| 1732 | rm -fr conftest* |
| 1733 | fi |
| 1734 | |
| 1735 | fi |
| 1736 | |
| 1737 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 |
| 1738 | cat >> confdefs.h <<EOF |
| 1739 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
| 1740 | EOF |
| 1741 | |
| 1742 | fi |
| 1743 | |
| 1744 | for ac_hdr in unistd.h |
| 1745 | do |
| 1746 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 1747 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 1748 | echo "configure:1749: checking for $ac_hdr" >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1749 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 1750 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1751 | else |
| 1752 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 1753 | #line 1754 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1754 | #include "confdefs.h" |
| 1755 | #include <$ac_hdr> |
| 1756 | EOF |
| 1757 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 1758 | { (eval echo configure:1759: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1759 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1760 | if test -z "$ac_err"; then |
| 1761 | rm -rf conftest* |
| 1762 | eval "ac_cv_header_$ac_safe=yes" |
| 1763 | else |
| 1764 | echo "$ac_err" >&5 |
| 1765 | echo "configure: failed program was:" >&5 |
| 1766 | cat conftest.$ac_ext >&5 |
| 1767 | rm -rf conftest* |
| 1768 | eval "ac_cv_header_$ac_safe=no" |
| 1769 | fi |
| 1770 | rm -f conftest* |
| 1771 | fi |
| 1772 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 1773 | echo "$ac_t""yes" 1>&6 |
| 1774 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 1775 | cat >> confdefs.h <<EOF |
| 1776 | #define $ac_tr_hdr 1 |
| 1777 | EOF |
| 1778 | |
| 1779 | else |
| 1780 | echo "$ac_t""no" 1>&6 |
| 1781 | fi |
| 1782 | done |
| 1783 | |
| 1784 | for ac_func in getpagesize |
| 1785 | do |
| 1786 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 1787 | echo "configure:1788: checking for $ac_func" >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1788 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 1789 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1790 | else |
| 1791 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 1792 | #line 1793 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1793 | #include "confdefs.h" |
| 1794 | /* System header to define __stub macros and hopefully few prototypes, |
| 1795 | which can conflict with char $ac_func(); below. */ |
| 1796 | #include <assert.h> |
| 1797 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1798 | /* We use char because int might match the return type of a gcc2 |
| 1799 | builtin and then its argument prototype would still apply. */ |
| 1800 | char $ac_func(); |
| 1801 | |
| 1802 | int main() { |
| 1803 | |
| 1804 | /* The GNU C library defines this for functions which it implements |
| 1805 | to always fail with ENOSYS. Some functions are actually named |
| 1806 | something starting with __ and the normal name is an alias. */ |
| 1807 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 1808 | choke me |
| 1809 | #else |
| 1810 | $ac_func(); |
| 1811 | #endif |
| 1812 | |
| 1813 | ; return 0; } |
| 1814 | EOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 1815 | if { (eval echo configure:1816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1816 | rm -rf conftest* |
| 1817 | eval "ac_cv_func_$ac_func=yes" |
| 1818 | else |
| 1819 | echo "configure: failed program was:" >&5 |
| 1820 | cat conftest.$ac_ext >&5 |
| 1821 | rm -rf conftest* |
| 1822 | eval "ac_cv_func_$ac_func=no" |
| 1823 | fi |
| 1824 | rm -f conftest* |
| 1825 | fi |
| 1826 | |
| 1827 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 1828 | echo "$ac_t""yes" 1>&6 |
| 1829 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 1830 | cat >> confdefs.h <<EOF |
| 1831 | #define $ac_tr_func 1 |
| 1832 | EOF |
| 1833 | |
| 1834 | else |
| 1835 | echo "$ac_t""no" 1>&6 |
| 1836 | fi |
| 1837 | done |
| 1838 | |
| 1839 | echo $ac_n "checking for working mmap""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 1840 | echo "configure:1841: checking for working mmap" >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1841 | if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then |
| 1842 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1843 | else |
| 1844 | if test "$cross_compiling" = yes; then |
| 1845 | ac_cv_func_mmap_fixed_mapped=no |
| 1846 | else |
| 1847 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 1848 | #line 1849 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1849 | #include "confdefs.h" |
| 1850 | |
| 1851 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 1852 | Here is a matrix of mmap possibilities: |
| 1853 | mmap private not fixed |
| 1854 | mmap private fixed at somewhere currently unmapped |
| 1855 | mmap private fixed at somewhere already mapped |
| 1856 | mmap shared not fixed |
| 1857 | mmap shared fixed at somewhere currently unmapped |
| 1858 | mmap shared fixed at somewhere already mapped |
| 1859 | For private mappings, we should verify that changes cannot be read() |
| 1860 | back from the file, nor mmap's back from the file at a different |
| 1861 | address. (There have been systems where private was not correctly |
| 1862 | implemented like the infamous i386 svr4.0, and systems where the |
| 1863 | VM page cache was not coherent with the filesystem buffer cache |
| 1864 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 1865 | For shared mappings, we should conversely verify that changes get |
| 1866 | propogated back to all the places they're supposed to be. |
| 1867 | |
| 1868 | Grep wants private fixed already mapped. |
| 1869 | The main things grep needs to know about mmap are: |
| 1870 | * does it exist and is it safe to write into the mmap'd area |
| 1871 | * how to use it (BSD variants) */ |
| 1872 | #include <sys/types.h> |
| 1873 | #include <fcntl.h> |
| 1874 | #include <sys/mman.h> |
| 1875 | |
| 1876 | /* This mess was copied from the GNU getpagesize.h. */ |
| 1877 | #ifndef HAVE_GETPAGESIZE |
| 1878 | # ifdef HAVE_UNISTD_H |
| 1879 | # include <unistd.h> |
| 1880 | # endif |
| 1881 | |
| 1882 | /* Assume that all systems that can run configure have sys/param.h. */ |
| 1883 | # ifndef HAVE_SYS_PARAM_H |
| 1884 | # define HAVE_SYS_PARAM_H 1 |
| 1885 | # endif |
| 1886 | |
| 1887 | # ifdef _SC_PAGESIZE |
| 1888 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 1889 | # else /* no _SC_PAGESIZE */ |
| 1890 | # ifdef HAVE_SYS_PARAM_H |
| 1891 | # include <sys/param.h> |
| 1892 | # ifdef EXEC_PAGESIZE |
| 1893 | # define getpagesize() EXEC_PAGESIZE |
| 1894 | # else /* no EXEC_PAGESIZE */ |
| 1895 | # ifdef NBPG |
| 1896 | # define getpagesize() NBPG * CLSIZE |
| 1897 | # ifndef CLSIZE |
| 1898 | # define CLSIZE 1 |
| 1899 | # endif /* no CLSIZE */ |
| 1900 | # else /* no NBPG */ |
| 1901 | # ifdef NBPC |
| 1902 | # define getpagesize() NBPC |
| 1903 | # else /* no NBPC */ |
| 1904 | # ifdef PAGESIZE |
| 1905 | # define getpagesize() PAGESIZE |
| 1906 | # endif /* PAGESIZE */ |
| 1907 | # endif /* no NBPC */ |
| 1908 | # endif /* no NBPG */ |
| 1909 | # endif /* no EXEC_PAGESIZE */ |
| 1910 | # else /* no HAVE_SYS_PARAM_H */ |
| 1911 | # define getpagesize() 8192 /* punt totally */ |
| 1912 | # endif /* no HAVE_SYS_PARAM_H */ |
| 1913 | # endif /* no _SC_PAGESIZE */ |
| 1914 | |
| 1915 | #endif /* no HAVE_GETPAGESIZE */ |
| 1916 | |
| 1917 | #ifdef __cplusplus |
| 1918 | extern "C" { void *malloc(unsigned); } |
| 1919 | #else |
| 1920 | char *malloc(); |
| 1921 | #endif |
| 1922 | |
| 1923 | int |
| 1924 | main() |
| 1925 | { |
| 1926 | char *data, *data2, *data3; |
| 1927 | int i, pagesize; |
| 1928 | int fd; |
| 1929 | |
| 1930 | pagesize = getpagesize(); |
| 1931 | |
| 1932 | /* |
| 1933 | * First, make a file with some known garbage in it. |
| 1934 | */ |
| 1935 | data = malloc(pagesize); |
| 1936 | if (!data) |
| 1937 | exit(1); |
| 1938 | for (i = 0; i < pagesize; ++i) |
| 1939 | *(data + i) = rand(); |
| 1940 | umask(0); |
| 1941 | fd = creat("conftestmmap", 0600); |
| 1942 | if (fd < 0) |
| 1943 | exit(1); |
| 1944 | if (write(fd, data, pagesize) != pagesize) |
| 1945 | exit(1); |
| 1946 | close(fd); |
| 1947 | |
| 1948 | /* |
| 1949 | * Next, try to mmap the file at a fixed address which |
| 1950 | * already has something else allocated at it. If we can, |
| 1951 | * also make sure that we see the same garbage. |
| 1952 | */ |
| 1953 | fd = open("conftestmmap", O_RDWR); |
| 1954 | if (fd < 0) |
| 1955 | exit(1); |
| 1956 | data2 = malloc(2 * pagesize); |
| 1957 | if (!data2) |
| 1958 | exit(1); |
| 1959 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); |
| 1960 | if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, |
| 1961 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
| 1962 | exit(1); |
| 1963 | for (i = 0; i < pagesize; ++i) |
| 1964 | if (*(data + i) != *(data2 + i)) |
| 1965 | exit(1); |
| 1966 | |
| 1967 | /* |
| 1968 | * Finally, make sure that changes to the mapped area |
| 1969 | * do not percolate back to the file as seen by read(). |
| 1970 | * (This is a bug on some variants of i386 svr4.0.) |
| 1971 | */ |
| 1972 | for (i = 0; i < pagesize; ++i) |
| 1973 | *(data2 + i) = *(data2 + i) + 1; |
| 1974 | data3 = malloc(pagesize); |
| 1975 | if (!data3) |
| 1976 | exit(1); |
| 1977 | if (read(fd, data3, pagesize) != pagesize) |
| 1978 | exit(1); |
| 1979 | for (i = 0; i < pagesize; ++i) |
| 1980 | if (*(data + i) != *(data3 + i)) |
| 1981 | exit(1); |
| 1982 | close(fd); |
| 1983 | unlink("conftestmmap"); |
| 1984 | exit(0); |
| 1985 | } |
| 1986 | |
| 1987 | EOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 1988 | if { (eval echo configure:1989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1989 | then |
| 1990 | ac_cv_func_mmap_fixed_mapped=yes |
| 1991 | else |
| 1992 | echo "configure: failed program was:" >&5 |
| 1993 | cat conftest.$ac_ext >&5 |
| 1994 | rm -fr conftest* |
| 1995 | ac_cv_func_mmap_fixed_mapped=no |
| 1996 | fi |
| 1997 | rm -fr conftest* |
| 1998 | fi |
| 1999 | |
| 2000 | fi |
| 2001 | |
| 2002 | echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 |
| 2003 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 2004 | cat >> confdefs.h <<\EOF |
| 2005 | #define HAVE_MMAP 1 |
| 2006 | EOF |
| 2007 | |
| 2008 | fi |
| 2009 | |
| 2010 | |
| 2011 | for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \ |
| 2012 | unistd.h sys/param.h |
| 2013 | do |
| 2014 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 2015 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 2016 | echo "configure:2017: checking for $ac_hdr" >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2017 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 2018 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2019 | else |
| 2020 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 2021 | #line 2022 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2022 | #include "confdefs.h" |
| 2023 | #include <$ac_hdr> |
| 2024 | EOF |
| 2025 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 2026 | { (eval echo configure:2027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2027 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 2028 | if test -z "$ac_err"; then |
| 2029 | rm -rf conftest* |
| 2030 | eval "ac_cv_header_$ac_safe=yes" |
| 2031 | else |
| 2032 | echo "$ac_err" >&5 |
| 2033 | echo "configure: failed program was:" >&5 |
| 2034 | cat conftest.$ac_ext >&5 |
| 2035 | rm -rf conftest* |
| 2036 | eval "ac_cv_header_$ac_safe=no" |
| 2037 | fi |
| 2038 | rm -f conftest* |
| 2039 | fi |
| 2040 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 2041 | echo "$ac_t""yes" 1>&6 |
| 2042 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 2043 | cat >> confdefs.h <<EOF |
| 2044 | #define $ac_tr_hdr 1 |
| 2045 | EOF |
| 2046 | |
| 2047 | else |
| 2048 | echo "$ac_t""no" 1>&6 |
| 2049 | fi |
| 2050 | done |
| 2051 | |
| 2052 | for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \ |
| 2053 | strdup __argz_count __argz_stringify __argz_next |
| 2054 | do |
| 2055 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 2056 | echo "configure:2057: checking for $ac_func" >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2057 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 2058 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2059 | else |
| 2060 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 2061 | #line 2062 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2062 | #include "confdefs.h" |
| 2063 | /* System header to define __stub macros and hopefully few prototypes, |
| 2064 | which can conflict with char $ac_func(); below. */ |
| 2065 | #include <assert.h> |
| 2066 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2067 | /* We use char because int might match the return type of a gcc2 |
| 2068 | builtin and then its argument prototype would still apply. */ |
| 2069 | char $ac_func(); |
| 2070 | |
| 2071 | int main() { |
| 2072 | |
| 2073 | /* The GNU C library defines this for functions which it implements |
| 2074 | to always fail with ENOSYS. Some functions are actually named |
| 2075 | something starting with __ and the normal name is an alias. */ |
| 2076 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 2077 | choke me |
| 2078 | #else |
| 2079 | $ac_func(); |
| 2080 | #endif |
| 2081 | |
| 2082 | ; return 0; } |
| 2083 | EOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 2084 | if { (eval echo configure:2085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2085 | rm -rf conftest* |
| 2086 | eval "ac_cv_func_$ac_func=yes" |
| 2087 | else |
| 2088 | echo "configure: failed program was:" >&5 |
| 2089 | cat conftest.$ac_ext >&5 |
| 2090 | rm -rf conftest* |
| 2091 | eval "ac_cv_func_$ac_func=no" |
| 2092 | fi |
| 2093 | rm -f conftest* |
| 2094 | fi |
| 2095 | |
| 2096 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 2097 | echo "$ac_t""yes" 1>&6 |
| 2098 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 2099 | cat >> confdefs.h <<EOF |
| 2100 | #define $ac_tr_func 1 |
| 2101 | EOF |
| 2102 | |
| 2103 | else |
| 2104 | echo "$ac_t""no" 1>&6 |
| 2105 | fi |
| 2106 | done |
| 2107 | |
| 2108 | |
| 2109 | if test "${ac_cv_func_stpcpy+set}" != "set"; then |
| 2110 | for ac_func in stpcpy |
| 2111 | do |
| 2112 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 2113 | echo "configure:2114: checking for $ac_func" >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2114 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 2115 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2116 | else |
| 2117 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 2118 | #line 2119 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2119 | #include "confdefs.h" |
| 2120 | /* System header to define __stub macros and hopefully few prototypes, |
| 2121 | which can conflict with char $ac_func(); below. */ |
| 2122 | #include <assert.h> |
| 2123 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2124 | /* We use char because int might match the return type of a gcc2 |
| 2125 | builtin and then its argument prototype would still apply. */ |
| 2126 | char $ac_func(); |
| 2127 | |
| 2128 | int main() { |
| 2129 | |
| 2130 | /* The GNU C library defines this for functions which it implements |
| 2131 | to always fail with ENOSYS. Some functions are actually named |
| 2132 | something starting with __ and the normal name is an alias. */ |
| 2133 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 2134 | choke me |
| 2135 | #else |
| 2136 | $ac_func(); |
| 2137 | #endif |
| 2138 | |
| 2139 | ; return 0; } |
| 2140 | EOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 2141 | if { (eval echo configure:2142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2142 | rm -rf conftest* |
| 2143 | eval "ac_cv_func_$ac_func=yes" |
| 2144 | else |
| 2145 | echo "configure: failed program was:" >&5 |
| 2146 | cat conftest.$ac_ext >&5 |
| 2147 | rm -rf conftest* |
| 2148 | eval "ac_cv_func_$ac_func=no" |
| 2149 | fi |
| 2150 | rm -f conftest* |
| 2151 | fi |
| 2152 | |
| 2153 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 2154 | echo "$ac_t""yes" 1>&6 |
| 2155 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 2156 | cat >> confdefs.h <<EOF |
| 2157 | #define $ac_tr_func 1 |
| 2158 | EOF |
| 2159 | |
| 2160 | else |
| 2161 | echo "$ac_t""no" 1>&6 |
| 2162 | fi |
| 2163 | done |
| 2164 | |
| 2165 | fi |
| 2166 | if test "${ac_cv_func_stpcpy}" = "yes"; then |
| 2167 | cat >> confdefs.h <<\EOF |
| 2168 | #define HAVE_STPCPY 1 |
| 2169 | EOF |
| 2170 | |
| 2171 | fi |
| 2172 | |
| 2173 | if test $ac_cv_header_locale_h = yes; then |
| 2174 | echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 2175 | echo "configure:2176: checking for LC_MESSAGES" >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2176 | if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then |
| 2177 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2178 | else |
| 2179 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 2180 | #line 2181 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2181 | #include "confdefs.h" |
| 2182 | #include <locale.h> |
| 2183 | int main() { |
| 2184 | return LC_MESSAGES |
| 2185 | ; return 0; } |
| 2186 | EOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 2187 | if { (eval echo configure:2188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2188 | rm -rf conftest* |
| 2189 | am_cv_val_LC_MESSAGES=yes |
| 2190 | else |
| 2191 | echo "configure: failed program was:" >&5 |
| 2192 | cat conftest.$ac_ext >&5 |
| 2193 | rm -rf conftest* |
| 2194 | am_cv_val_LC_MESSAGES=no |
| 2195 | fi |
| 2196 | rm -f conftest* |
| 2197 | fi |
| 2198 | |
| 2199 | echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6 |
| 2200 | if test $am_cv_val_LC_MESSAGES = yes; then |
| 2201 | cat >> confdefs.h <<\EOF |
| 2202 | #define HAVE_LC_MESSAGES 1 |
| 2203 | EOF |
| 2204 | |
| 2205 | fi |
| 2206 | fi |
| 2207 | echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 2208 | echo "configure:2209: checking whether NLS is requested" >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2209 | # Check whether --enable-nls or --disable-nls was given. |
| 2210 | if test "${enable_nls+set}" = set; then |
| 2211 | enableval="$enable_nls" |
| 2212 | USE_NLS=$enableval |
| 2213 | else |
| 2214 | USE_NLS=no |
| 2215 | fi |
| 2216 | |
| 2217 | echo "$ac_t""$USE_NLS" 1>&6 |
| 2218 | |
| 2219 | |
| 2220 | USE_INCLUDED_LIBINTL=no |
| 2221 | |
| 2222 | if test "$USE_NLS" = "yes"; then |
| 2223 | cat >> confdefs.h <<\EOF |
| 2224 | #define ENABLE_NLS 1 |
| 2225 | EOF |
| 2226 | |
| 2227 | echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 2228 | echo "configure:2229: checking whether included gettext is requested" >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2229 | # Check whether --with-included-gettext or --without-included-gettext was given. |
| 2230 | if test "${with_included_gettext+set}" = set; then |
| 2231 | withval="$with_included_gettext" |
| 2232 | nls_cv_force_use_gnu_gettext=$withval |
| 2233 | else |
| 2234 | nls_cv_force_use_gnu_gettext=no |
| 2235 | fi |
| 2236 | |
| 2237 | echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6 |
| 2238 | |
| 2239 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" |
| 2240 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then |
| 2241 | nls_cv_header_intl= |
| 2242 | nls_cv_header_libgt= |
| 2243 | CATOBJEXT=NONE |
| 2244 | |
| 2245 | ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'` |
| 2246 | echo $ac_n "checking for libintl.h""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 2247 | echo "configure:2248: checking for libintl.h" >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2248 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 2249 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2250 | else |
| 2251 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 2252 | #line 2253 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2253 | #include "confdefs.h" |
| 2254 | #include <libintl.h> |
| 2255 | EOF |
| 2256 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 2257 | { (eval echo configure:2258: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2258 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 2259 | if test -z "$ac_err"; then |
| 2260 | rm -rf conftest* |
| 2261 | eval "ac_cv_header_$ac_safe=yes" |
| 2262 | else |
| 2263 | echo "$ac_err" >&5 |
| 2264 | echo "configure: failed program was:" >&5 |
| 2265 | cat conftest.$ac_ext >&5 |
| 2266 | rm -rf conftest* |
| 2267 | eval "ac_cv_header_$ac_safe=no" |
| 2268 | fi |
| 2269 | rm -f conftest* |
| 2270 | fi |
| 2271 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 2272 | echo "$ac_t""yes" 1>&6 |
| 2273 | echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 2274 | echo "configure:2275: checking for gettext in libc" >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2275 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then |
| 2276 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2277 | else |
| 2278 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 2279 | #line 2280 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2280 | #include "confdefs.h" |
| 2281 | #include <libintl.h> |
| 2282 | int main() { |
| 2283 | return (int) gettext ("") |
| 2284 | ; return 0; } |
| 2285 | EOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 2286 | if { (eval echo configure:2287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2287 | rm -rf conftest* |
| 2288 | gt_cv_func_gettext_libc=yes |
| 2289 | else |
| 2290 | echo "configure: failed program was:" >&5 |
| 2291 | cat conftest.$ac_ext >&5 |
| 2292 | rm -rf conftest* |
| 2293 | gt_cv_func_gettext_libc=no |
| 2294 | fi |
| 2295 | rm -f conftest* |
| 2296 | fi |
| 2297 | |
| 2298 | echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6 |
| 2299 | |
| 2300 | if test "$gt_cv_func_gettext_libc" != "yes"; then |
| 2301 | echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 2302 | echo "configure:2303: checking for bindtextdomain in -lintl" >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2303 | ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'` |
| 2304 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 2305 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2306 | else |
| 2307 | ac_save_LIBS="$LIBS" |
| 2308 | LIBS="-lintl $LIBS" |
| 2309 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 2310 | #line 2311 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2311 | #include "confdefs.h" |
| 2312 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2313 | /* We use char because int might match the return type of a gcc2 |
| 2314 | builtin and then its argument prototype would still apply. */ |
| 2315 | char bindtextdomain(); |
| 2316 | |
| 2317 | int main() { |
| 2318 | bindtextdomain() |
| 2319 | ; return 0; } |
| 2320 | EOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 2321 | if { (eval echo configure:2322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2322 | rm -rf conftest* |
| 2323 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 2324 | else |
| 2325 | echo "configure: failed program was:" >&5 |
| 2326 | cat conftest.$ac_ext >&5 |
| 2327 | rm -rf conftest* |
| 2328 | eval "ac_cv_lib_$ac_lib_var=no" |
| 2329 | fi |
| 2330 | rm -f conftest* |
| 2331 | LIBS="$ac_save_LIBS" |
| 2332 | |
| 2333 | fi |
| 2334 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2335 | echo "$ac_t""yes" 1>&6 |
| 2336 | echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 2337 | echo "configure:2338: checking for gettext in libintl" >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2338 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then |
| 2339 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2340 | else |
| 2341 | echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 2342 | echo "configure:2343: checking for gettext in -lintl" >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2343 | ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'` |
| 2344 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 2345 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2346 | else |
| 2347 | ac_save_LIBS="$LIBS" |
| 2348 | LIBS="-lintl $LIBS" |
| 2349 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 2350 | #line 2351 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2351 | #include "confdefs.h" |
| 2352 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2353 | /* We use char because int might match the return type of a gcc2 |
| 2354 | builtin and then its argument prototype would still apply. */ |
| 2355 | char gettext(); |
| 2356 | |
| 2357 | int main() { |
| 2358 | gettext() |
| 2359 | ; return 0; } |
| 2360 | EOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 2361 | if { (eval echo configure:2362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2362 | rm -rf conftest* |
| 2363 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 2364 | else |
| 2365 | echo "configure: failed program was:" >&5 |
| 2366 | cat conftest.$ac_ext >&5 |
| 2367 | rm -rf conftest* |
| 2368 | eval "ac_cv_lib_$ac_lib_var=no" |
| 2369 | fi |
| 2370 | rm -f conftest* |
| 2371 | LIBS="$ac_save_LIBS" |
| 2372 | |
| 2373 | fi |
| 2374 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2375 | echo "$ac_t""yes" 1>&6 |
| 2376 | gt_cv_func_gettext_libintl=yes |
| 2377 | else |
| 2378 | echo "$ac_t""no" 1>&6 |
| 2379 | gt_cv_func_gettext_libintl=no |
| 2380 | fi |
| 2381 | |
| 2382 | fi |
| 2383 | |
| 2384 | echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6 |
| 2385 | else |
| 2386 | echo "$ac_t""no" 1>&6 |
| 2387 | fi |
| 2388 | |
| 2389 | fi |
| 2390 | |
| 2391 | if test "$gt_cv_func_gettext_libc" = "yes" \ |
| 2392 | || test "$gt_cv_func_gettext_libintl" = "yes"; then |
| 2393 | cat >> confdefs.h <<\EOF |
| 2394 | #define HAVE_GETTEXT 1 |
| 2395 | EOF |
| 2396 | |
| 2397 | # Extract the first word of "msgfmt", so it can be a program name with args. |
| 2398 | set dummy msgfmt; ac_word=$2 |
| 2399 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 2400 | echo "configure:2401: checking for $ac_word" >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2401 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then |
| 2402 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2403 | else |
| 2404 | case "$MSGFMT" in |
| 2405 | /*) |
| 2406 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. |
| 2407 | ;; |
| 2408 | *) |
| 2409 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 2410 | for ac_dir in $PATH; do |
| 2411 | test -z "$ac_dir" && ac_dir=. |
| 2412 | if test -f $ac_dir/$ac_word; then |
| 2413 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then |
| 2414 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" |
| 2415 | break |
| 2416 | fi |
| 2417 | fi |
| 2418 | done |
| 2419 | IFS="$ac_save_ifs" |
| 2420 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" |
| 2421 | ;; |
| 2422 | esac |
| 2423 | fi |
| 2424 | MSGFMT="$ac_cv_path_MSGFMT" |
| 2425 | if test -n "$MSGFMT"; then |
| 2426 | echo "$ac_t""$MSGFMT" 1>&6 |
| 2427 | else |
| 2428 | echo "$ac_t""no" 1>&6 |
| 2429 | fi |
| 2430 | if test "$MSGFMT" != "no"; then |
| 2431 | for ac_func in dcgettext |
| 2432 | do |
| 2433 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 2434 | echo "configure:2435: checking for $ac_func" >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2435 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 2436 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2437 | else |
| 2438 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 2439 | #line 2440 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2440 | #include "confdefs.h" |
| 2441 | /* System header to define __stub macros and hopefully few prototypes, |
| 2442 | which can conflict with char $ac_func(); below. */ |
| 2443 | #include <assert.h> |
| 2444 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2445 | /* We use char because int might match the return type of a gcc2 |
| 2446 | builtin and then its argument prototype would still apply. */ |
| 2447 | char $ac_func(); |
| 2448 | |
| 2449 | int main() { |
| 2450 | |
| 2451 | /* The GNU C library defines this for functions which it implements |
| 2452 | to always fail with ENOSYS. Some functions are actually named |
| 2453 | something starting with __ and the normal name is an alias. */ |
| 2454 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 2455 | choke me |
| 2456 | #else |
| 2457 | $ac_func(); |
| 2458 | #endif |
| 2459 | |
| 2460 | ; return 0; } |
| 2461 | EOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 2462 | if { (eval echo configure:2463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2463 | rm -rf conftest* |
| 2464 | eval "ac_cv_func_$ac_func=yes" |
| 2465 | else |
| 2466 | echo "configure: failed program was:" >&5 |
| 2467 | cat conftest.$ac_ext >&5 |
| 2468 | rm -rf conftest* |
| 2469 | eval "ac_cv_func_$ac_func=no" |
| 2470 | fi |
| 2471 | rm -f conftest* |
| 2472 | fi |
| 2473 | |
| 2474 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 2475 | echo "$ac_t""yes" 1>&6 |
| 2476 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 2477 | cat >> confdefs.h <<EOF |
| 2478 | #define $ac_tr_func 1 |
| 2479 | EOF |
| 2480 | |
| 2481 | else |
| 2482 | echo "$ac_t""no" 1>&6 |
| 2483 | fi |
| 2484 | done |
| 2485 | |
| 2486 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
| 2487 | set dummy gmsgfmt; ac_word=$2 |
| 2488 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 2489 | echo "configure:2490: checking for $ac_word" >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2490 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
| 2491 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2492 | else |
| 2493 | case "$GMSGFMT" in |
| 2494 | /*) |
| 2495 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
| 2496 | ;; |
| 2497 | ?:/*) |
| 2498 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. |
| 2499 | ;; |
| 2500 | *) |
| 2501 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 2502 | ac_dummy="$PATH" |
| 2503 | for ac_dir in $ac_dummy; do |
| 2504 | test -z "$ac_dir" && ac_dir=. |
| 2505 | if test -f $ac_dir/$ac_word; then |
| 2506 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" |
| 2507 | break |
| 2508 | fi |
| 2509 | done |
| 2510 | IFS="$ac_save_ifs" |
| 2511 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
| 2512 | ;; |
| 2513 | esac |
| 2514 | fi |
| 2515 | GMSGFMT="$ac_cv_path_GMSGFMT" |
| 2516 | if test -n "$GMSGFMT"; then |
| 2517 | echo "$ac_t""$GMSGFMT" 1>&6 |
| 2518 | else |
| 2519 | echo "$ac_t""no" 1>&6 |
| 2520 | fi |
| 2521 | |
| 2522 | # Extract the first word of "xgettext", so it can be a program name with args. |
| 2523 | set dummy xgettext; ac_word=$2 |
| 2524 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 2525 | echo "configure:2526: checking for $ac_word" >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2526 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then |
| 2527 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2528 | else |
| 2529 | case "$XGETTEXT" in |
| 2530 | /*) |
| 2531 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. |
| 2532 | ;; |
| 2533 | *) |
| 2534 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 2535 | for ac_dir in $PATH; do |
| 2536 | test -z "$ac_dir" && ac_dir=. |
| 2537 | if test -f $ac_dir/$ac_word; then |
| 2538 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then |
| 2539 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" |
| 2540 | break |
| 2541 | fi |
| 2542 | fi |
| 2543 | done |
| 2544 | IFS="$ac_save_ifs" |
| 2545 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" |
| 2546 | ;; |
| 2547 | esac |
| 2548 | fi |
| 2549 | XGETTEXT="$ac_cv_path_XGETTEXT" |
| 2550 | if test -n "$XGETTEXT"; then |
| 2551 | echo "$ac_t""$XGETTEXT" 1>&6 |
| 2552 | else |
| 2553 | echo "$ac_t""no" 1>&6 |
| 2554 | fi |
| 2555 | |
| 2556 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 2557 | #line 2558 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2558 | #include "confdefs.h" |
| 2559 | |
| 2560 | int main() { |
| 2561 | extern int _nl_msg_cat_cntr; |
| 2562 | return _nl_msg_cat_cntr |
| 2563 | ; return 0; } |
| 2564 | EOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 2565 | if { (eval echo configure:2566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2566 | rm -rf conftest* |
| 2567 | CATOBJEXT=.gmo |
| 2568 | DATADIRNAME=share |
| 2569 | else |
| 2570 | echo "configure: failed program was:" >&5 |
| 2571 | cat conftest.$ac_ext >&5 |
| 2572 | rm -rf conftest* |
| 2573 | CATOBJEXT=.mo |
| 2574 | DATADIRNAME=lib |
| 2575 | fi |
| 2576 | rm -f conftest* |
| 2577 | INSTOBJEXT=.mo |
| 2578 | fi |
| 2579 | fi |
| 2580 | |
| 2581 | else |
| 2582 | echo "$ac_t""no" 1>&6 |
| 2583 | fi |
| 2584 | |
| 2585 | |
| 2586 | if test "$CATOBJEXT" = "NONE"; then |
| 2587 | echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 2588 | echo "configure:2589: checking whether catgets can be used" >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2589 | # Check whether --with-catgets or --without-catgets was given. |
| 2590 | if test "${with_catgets+set}" = set; then |
| 2591 | withval="$with_catgets" |
| 2592 | nls_cv_use_catgets=$withval |
| 2593 | else |
| 2594 | nls_cv_use_catgets=no |
| 2595 | fi |
| 2596 | |
| 2597 | echo "$ac_t""$nls_cv_use_catgets" 1>&6 |
| 2598 | |
| 2599 | if test "$nls_cv_use_catgets" = "yes"; then |
| 2600 | echo $ac_n "checking for main in -li""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 2601 | echo "configure:2602: checking for main in -li" >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2602 | ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'` |
| 2603 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 2604 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2605 | else |
| 2606 | ac_save_LIBS="$LIBS" |
| 2607 | LIBS="-li $LIBS" |
| 2608 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 2609 | #line 2610 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2610 | #include "confdefs.h" |
| 2611 | |
| 2612 | int main() { |
| 2613 | main() |
| 2614 | ; return 0; } |
| 2615 | EOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 2616 | if { (eval echo configure:2617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2617 | rm -rf conftest* |
| 2618 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 2619 | else |
| 2620 | echo "configure: failed program was:" >&5 |
| 2621 | cat conftest.$ac_ext >&5 |
| 2622 | rm -rf conftest* |
| 2623 | eval "ac_cv_lib_$ac_lib_var=no" |
| 2624 | fi |
| 2625 | rm -f conftest* |
| 2626 | LIBS="$ac_save_LIBS" |
| 2627 | |
| 2628 | fi |
| 2629 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2630 | echo "$ac_t""yes" 1>&6 |
| 2631 | ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 2632 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
| 2633 | cat >> confdefs.h <<EOF |
| 2634 | #define $ac_tr_lib 1 |
| 2635 | EOF |
| 2636 | |
| 2637 | LIBS="-li $LIBS" |
| 2638 | |
| 2639 | else |
| 2640 | echo "$ac_t""no" 1>&6 |
| 2641 | fi |
| 2642 | |
| 2643 | echo $ac_n "checking for catgets""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 2644 | echo "configure:2645: checking for catgets" >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2645 | if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then |
| 2646 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2647 | else |
| 2648 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 2649 | #line 2650 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2650 | #include "confdefs.h" |
| 2651 | /* System header to define __stub macros and hopefully few prototypes, |
| 2652 | which can conflict with char catgets(); below. */ |
| 2653 | #include <assert.h> |
| 2654 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2655 | /* We use char because int might match the return type of a gcc2 |
| 2656 | builtin and then its argument prototype would still apply. */ |
| 2657 | char catgets(); |
| 2658 | |
| 2659 | int main() { |
| 2660 | |
| 2661 | /* The GNU C library defines this for functions which it implements |
| 2662 | to always fail with ENOSYS. Some functions are actually named |
| 2663 | something starting with __ and the normal name is an alias. */ |
| 2664 | #if defined (__stub_catgets) || defined (__stub___catgets) |
| 2665 | choke me |
| 2666 | #else |
| 2667 | catgets(); |
| 2668 | #endif |
| 2669 | |
| 2670 | ; return 0; } |
| 2671 | EOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 2672 | if { (eval echo configure:2673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2673 | rm -rf conftest* |
| 2674 | eval "ac_cv_func_catgets=yes" |
| 2675 | else |
| 2676 | echo "configure: failed program was:" >&5 |
| 2677 | cat conftest.$ac_ext >&5 |
| 2678 | rm -rf conftest* |
| 2679 | eval "ac_cv_func_catgets=no" |
| 2680 | fi |
| 2681 | rm -f conftest* |
| 2682 | fi |
| 2683 | |
| 2684 | if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then |
| 2685 | echo "$ac_t""yes" 1>&6 |
| 2686 | cat >> confdefs.h <<\EOF |
| 2687 | #define HAVE_CATGETS 1 |
| 2688 | EOF |
| 2689 | |
| 2690 | INTLOBJS="\$(CATOBJS)" |
| 2691 | # Extract the first word of "gencat", so it can be a program name with args. |
| 2692 | set dummy gencat; ac_word=$2 |
| 2693 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 2694 | echo "configure:2695: checking for $ac_word" >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2695 | if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then |
| 2696 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2697 | else |
| 2698 | case "$GENCAT" in |
| 2699 | /*) |
| 2700 | ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path. |
| 2701 | ;; |
| 2702 | ?:/*) |
| 2703 | ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path. |
| 2704 | ;; |
| 2705 | *) |
| 2706 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 2707 | ac_dummy="$PATH" |
| 2708 | for ac_dir in $ac_dummy; do |
| 2709 | test -z "$ac_dir" && ac_dir=. |
| 2710 | if test -f $ac_dir/$ac_word; then |
| 2711 | ac_cv_path_GENCAT="$ac_dir/$ac_word" |
| 2712 | break |
| 2713 | fi |
| 2714 | done |
| 2715 | IFS="$ac_save_ifs" |
| 2716 | test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no" |
| 2717 | ;; |
| 2718 | esac |
| 2719 | fi |
| 2720 | GENCAT="$ac_cv_path_GENCAT" |
| 2721 | if test -n "$GENCAT"; then |
| 2722 | echo "$ac_t""$GENCAT" 1>&6 |
| 2723 | else |
| 2724 | echo "$ac_t""no" 1>&6 |
| 2725 | fi |
| 2726 | if test "$GENCAT" != "no"; then |
| 2727 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
| 2728 | set dummy gmsgfmt; ac_word=$2 |
| 2729 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 2730 | echo "configure:2731: checking for $ac_word" >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2731 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
| 2732 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2733 | else |
| 2734 | case "$GMSGFMT" in |
| 2735 | /*) |
| 2736 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
| 2737 | ;; |
| 2738 | ?:/*) |
| 2739 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. |
| 2740 | ;; |
| 2741 | *) |
| 2742 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 2743 | ac_dummy="$PATH" |
| 2744 | for ac_dir in $ac_dummy; do |
| 2745 | test -z "$ac_dir" && ac_dir=. |
| 2746 | if test -f $ac_dir/$ac_word; then |
| 2747 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" |
| 2748 | break |
| 2749 | fi |
| 2750 | done |
| 2751 | IFS="$ac_save_ifs" |
| 2752 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no" |
| 2753 | ;; |
| 2754 | esac |
| 2755 | fi |
| 2756 | GMSGFMT="$ac_cv_path_GMSGFMT" |
| 2757 | if test -n "$GMSGFMT"; then |
| 2758 | echo "$ac_t""$GMSGFMT" 1>&6 |
| 2759 | else |
| 2760 | echo "$ac_t""no" 1>&6 |
| 2761 | fi |
| 2762 | |
| 2763 | if test "$GMSGFMT" = "no"; then |
| 2764 | # Extract the first word of "msgfmt", so it can be a program name with args. |
| 2765 | set dummy msgfmt; ac_word=$2 |
| 2766 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 2767 | echo "configure:2768: checking for $ac_word" >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2768 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
| 2769 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2770 | else |
| 2771 | case "$GMSGFMT" in |
| 2772 | /*) |
| 2773 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
| 2774 | ;; |
| 2775 | *) |
| 2776 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 2777 | for ac_dir in $PATH; do |
| 2778 | test -z "$ac_dir" && ac_dir=. |
| 2779 | if test -f $ac_dir/$ac_word; then |
| 2780 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then |
| 2781 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" |
| 2782 | break |
| 2783 | fi |
| 2784 | fi |
| 2785 | done |
| 2786 | IFS="$ac_save_ifs" |
| 2787 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no" |
| 2788 | ;; |
| 2789 | esac |
| 2790 | fi |
| 2791 | GMSGFMT="$ac_cv_path_GMSGFMT" |
| 2792 | if test -n "$GMSGFMT"; then |
| 2793 | echo "$ac_t""$GMSGFMT" 1>&6 |
| 2794 | else |
| 2795 | echo "$ac_t""no" 1>&6 |
| 2796 | fi |
| 2797 | |
| 2798 | fi |
| 2799 | # Extract the first word of "xgettext", so it can be a program name with args. |
| 2800 | set dummy xgettext; ac_word=$2 |
| 2801 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 2802 | echo "configure:2803: checking for $ac_word" >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2803 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then |
| 2804 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2805 | else |
| 2806 | case "$XGETTEXT" in |
| 2807 | /*) |
| 2808 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. |
| 2809 | ;; |
| 2810 | *) |
| 2811 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 2812 | for ac_dir in $PATH; do |
| 2813 | test -z "$ac_dir" && ac_dir=. |
| 2814 | if test -f $ac_dir/$ac_word; then |
| 2815 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then |
| 2816 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" |
| 2817 | break |
| 2818 | fi |
| 2819 | fi |
| 2820 | done |
| 2821 | IFS="$ac_save_ifs" |
| 2822 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" |
| 2823 | ;; |
| 2824 | esac |
| 2825 | fi |
| 2826 | XGETTEXT="$ac_cv_path_XGETTEXT" |
| 2827 | if test -n "$XGETTEXT"; then |
| 2828 | echo "$ac_t""$XGETTEXT" 1>&6 |
| 2829 | else |
| 2830 | echo "$ac_t""no" 1>&6 |
| 2831 | fi |
| 2832 | |
| 2833 | USE_INCLUDED_LIBINTL=yes |
| 2834 | CATOBJEXT=.cat |
| 2835 | INSTOBJEXT=.cat |
| 2836 | DATADIRNAME=lib |
| 2837 | INTLDEPS='$(top_builddir)/intl/libintl.a' |
| 2838 | INTLLIBS=$INTLDEPS |
| 2839 | LIBS=`echo $LIBS | sed -e 's/-lintl//'` |
| 2840 | nls_cv_header_intl=intl/libintl.h |
| 2841 | nls_cv_header_libgt=intl/libgettext.h |
| 2842 | fi |
| 2843 | else |
| 2844 | echo "$ac_t""no" 1>&6 |
| 2845 | fi |
| 2846 | |
| 2847 | fi |
| 2848 | fi |
| 2849 | |
| 2850 | if test "$CATOBJEXT" = "NONE"; then |
| 2851 | nls_cv_use_gnu_gettext=yes |
| 2852 | fi |
| 2853 | fi |
| 2854 | |
| 2855 | if test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 2856 | INTLOBJS="\$(GETTOBJS)" |
| 2857 | # Extract the first word of "msgfmt", so it can be a program name with args. |
| 2858 | set dummy msgfmt; ac_word=$2 |
| 2859 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 2860 | echo "configure:2861: checking for $ac_word" >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2861 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then |
| 2862 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2863 | else |
| 2864 | case "$MSGFMT" in |
| 2865 | /*) |
| 2866 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. |
| 2867 | ;; |
| 2868 | *) |
| 2869 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 2870 | for ac_dir in $PATH; do |
| 2871 | test -z "$ac_dir" && ac_dir=. |
| 2872 | if test -f $ac_dir/$ac_word; then |
| 2873 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then |
| 2874 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" |
| 2875 | break |
| 2876 | fi |
| 2877 | fi |
| 2878 | done |
| 2879 | IFS="$ac_save_ifs" |
| 2880 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt" |
| 2881 | ;; |
| 2882 | esac |
| 2883 | fi |
| 2884 | MSGFMT="$ac_cv_path_MSGFMT" |
| 2885 | if test -n "$MSGFMT"; then |
| 2886 | echo "$ac_t""$MSGFMT" 1>&6 |
| 2887 | else |
| 2888 | echo "$ac_t""no" 1>&6 |
| 2889 | fi |
| 2890 | |
| 2891 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
| 2892 | set dummy gmsgfmt; ac_word=$2 |
| 2893 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 2894 | echo "configure:2895: checking for $ac_word" >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2895 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
| 2896 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2897 | else |
| 2898 | case "$GMSGFMT" in |
| 2899 | /*) |
| 2900 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
| 2901 | ;; |
| 2902 | ?:/*) |
| 2903 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. |
| 2904 | ;; |
| 2905 | *) |
| 2906 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 2907 | ac_dummy="$PATH" |
| 2908 | for ac_dir in $ac_dummy; do |
| 2909 | test -z "$ac_dir" && ac_dir=. |
| 2910 | if test -f $ac_dir/$ac_word; then |
| 2911 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" |
| 2912 | break |
| 2913 | fi |
| 2914 | done |
| 2915 | IFS="$ac_save_ifs" |
| 2916 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
| 2917 | ;; |
| 2918 | esac |
| 2919 | fi |
| 2920 | GMSGFMT="$ac_cv_path_GMSGFMT" |
| 2921 | if test -n "$GMSGFMT"; then |
| 2922 | echo "$ac_t""$GMSGFMT" 1>&6 |
| 2923 | else |
| 2924 | echo "$ac_t""no" 1>&6 |
| 2925 | fi |
| 2926 | |
| 2927 | # Extract the first word of "xgettext", so it can be a program name with args. |
| 2928 | set dummy xgettext; ac_word=$2 |
| 2929 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 2930 | echo "configure:2931: checking for $ac_word" >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2931 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then |
| 2932 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2933 | else |
| 2934 | case "$XGETTEXT" in |
| 2935 | /*) |
| 2936 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. |
| 2937 | ;; |
| 2938 | *) |
| 2939 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 2940 | for ac_dir in $PATH; do |
| 2941 | test -z "$ac_dir" && ac_dir=. |
| 2942 | if test -f $ac_dir/$ac_word; then |
| 2943 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then |
| 2944 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" |
| 2945 | break |
| 2946 | fi |
| 2947 | fi |
| 2948 | done |
| 2949 | IFS="$ac_save_ifs" |
| 2950 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" |
| 2951 | ;; |
| 2952 | esac |
| 2953 | fi |
| 2954 | XGETTEXT="$ac_cv_path_XGETTEXT" |
| 2955 | if test -n "$XGETTEXT"; then |
| 2956 | echo "$ac_t""$XGETTEXT" 1>&6 |
| 2957 | else |
| 2958 | echo "$ac_t""no" 1>&6 |
| 2959 | fi |
| 2960 | |
| 2961 | |
| 2962 | USE_INCLUDED_LIBINTL=yes |
| 2963 | CATOBJEXT=.gmo |
| 2964 | INSTOBJEXT=.mo |
| 2965 | DATADIRNAME=share |
| 2966 | INTLDEPS='$(top_builddir)/intl/libintl.a' |
| 2967 | INTLLIBS=$INTLDEPS |
| 2968 | LIBS=`echo $LIBS | sed -e 's/-lintl//'` |
| 2969 | nls_cv_header_intl=intl/libintl.h |
| 2970 | nls_cv_header_libgt=intl/libgettext.h |
| 2971 | fi |
| 2972 | |
| 2973 | if test "$XGETTEXT" != ":"; then |
| 2974 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then |
| 2975 | : ; |
| 2976 | else |
| 2977 | echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6 |
| 2978 | XGETTEXT=":" |
| 2979 | fi |
| 2980 | fi |
| 2981 | |
| 2982 | # We need to process the po/ directory. |
| 2983 | POSUB=po |
| 2984 | else |
| 2985 | DATADIRNAME=share |
| 2986 | nls_cv_header_intl=intl/libintl.h |
| 2987 | nls_cv_header_libgt=intl/libgettext.h |
| 2988 | fi |
| 2989 | |
| 2990 | |
| 2991 | |
| 2992 | |
| 2993 | # If this is used in GNU gettext we have to set USE_NLS to `yes' |
| 2994 | # because some of the sources are only built for this goal. |
| 2995 | if test "$PACKAGE" = gettext; then |
| 2996 | USE_NLS=yes |
| 2997 | USE_INCLUDED_LIBINTL=yes |
| 2998 | fi |
| 2999 | |
| 3000 | for lang in $ALL_LINGUAS; do |
| 3001 | GMOFILES="$GMOFILES $lang.gmo" |
| 3002 | POFILES="$POFILES $lang.po" |
| 3003 | done |
| 3004 | |
| 3005 | |
| 3006 | |
| 3007 | |
| 3008 | |
| 3009 | |
| 3010 | |
| 3011 | |
| 3012 | |
| 3013 | |
| 3014 | |
| 3015 | |
| 3016 | |
| 3017 | |
| 3018 | if test "x$CATOBJEXT" != "x"; then |
| 3019 | if test "x$ALL_LINGUAS" = "x"; then |
| 3020 | LINGUAS= |
| 3021 | else |
| 3022 | echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3023 | echo "configure:3024: checking for catalogs to be installed" >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3024 | NEW_LINGUAS= |
| 3025 | for lang in ${LINGUAS=$ALL_LINGUAS}; do |
| 3026 | case "$ALL_LINGUAS" in |
| 3027 | *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; |
| 3028 | esac |
| 3029 | done |
| 3030 | LINGUAS=$NEW_LINGUAS |
| 3031 | echo "$ac_t""$LINGUAS" 1>&6 |
| 3032 | fi |
| 3033 | |
| 3034 | if test -n "$LINGUAS"; then |
| 3035 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done |
| 3036 | fi |
| 3037 | fi |
| 3038 | |
| 3039 | if test $ac_cv_header_locale_h = yes; then |
| 3040 | INCLUDE_LOCALE_H="#include <locale.h>" |
| 3041 | else |
| 3042 | INCLUDE_LOCALE_H="\ |
| 3043 | /* The system does not provide the header <locale.h>. Take care yourself. */" |
| 3044 | fi |
| 3045 | |
| 3046 | |
| 3047 | test -d intl || mkdir intl |
| 3048 | if test "$CATOBJEXT" = ".cat"; then |
| 3049 | ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'` |
| 3050 | echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3051 | echo "configure:3052: checking for linux/version.h" >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3052 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 3053 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3054 | else |
| 3055 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3056 | #line 3057 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3057 | #include "confdefs.h" |
| 3058 | #include <linux/version.h> |
| 3059 | EOF |
| 3060 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3061 | { (eval echo configure:3062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3062 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 3063 | if test -z "$ac_err"; then |
| 3064 | rm -rf conftest* |
| 3065 | eval "ac_cv_header_$ac_safe=yes" |
| 3066 | else |
| 3067 | echo "$ac_err" >&5 |
| 3068 | echo "configure: failed program was:" >&5 |
| 3069 | cat conftest.$ac_ext >&5 |
| 3070 | rm -rf conftest* |
| 3071 | eval "ac_cv_header_$ac_safe=no" |
| 3072 | fi |
| 3073 | rm -f conftest* |
| 3074 | fi |
| 3075 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 3076 | echo "$ac_t""yes" 1>&6 |
| 3077 | msgformat=linux |
| 3078 | else |
| 3079 | echo "$ac_t""no" 1>&6 |
| 3080 | msgformat=xopen |
| 3081 | fi |
| 3082 | |
| 3083 | |
| 3084 | sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed |
| 3085 | fi |
| 3086 | sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ |
| 3087 | $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed |
| 3088 | |
| 3089 | if test "$PACKAGE" = "gettext"; then |
| 3090 | GT_NO="#NO#" |
| 3091 | GT_YES= |
| 3092 | else |
| 3093 | GT_NO= |
| 3094 | GT_YES="#YES#" |
| 3095 | fi |
| 3096 | |
| 3097 | |
| 3098 | |
| 3099 | MKINSTALLDIRS= |
| 3100 | if test -n "$ac_aux_dir"; then |
| 3101 | MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" |
| 3102 | fi |
| 3103 | if test -z "$MKINSTALLDIRS"; then |
| 3104 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" |
| 3105 | fi |
| 3106 | |
| 3107 | |
| 3108 | l= |
| 3109 | |
| 3110 | |
| 3111 | test -d po || mkdir po |
| 3112 | if test "x$srcdir" != "x."; then |
| 3113 | if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then |
| 3114 | posrcprefix="$srcdir/" |
| 3115 | else |
| 3116 | posrcprefix="../$srcdir/" |
| 3117 | fi |
| 3118 | else |
| 3119 | posrcprefix="../" |
| 3120 | fi |
| 3121 | rm -f po/POTFILES |
| 3122 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ |
| 3123 | < $srcdir/po/POTFILES.in > po/POTFILES |
| 3124 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3125 | # Check whether --enable-profile or --disable-profile was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 3126 | if test "${enable_profile+set}" = set; then |
| 3127 | enableval="$enable_profile" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3128 | if test "$enableval" = "no" |
| 3129 | then |
| 3130 | PROFILE_CMT=# |
| 3131 | MAKEFILE_PROFILE=/dev/null |
| 3132 | echo "Disabling profiling libraries" |
| 3133 | else |
| 3134 | PROFILE_CMT= |
| 3135 | MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 3136 | PROFILED_LIB_EXT=_p.a |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3137 | echo "Building profiling libraries" |
| 3138 | fi |
| 3139 | |
| 3140 | else |
| 3141 | PROFILE_CMT=# |
| 3142 | MAKEFILE_PROFILE=/dev/null |
| 3143 | echo "Disabling profiling libraries by default" |
| 3144 | |
| 3145 | fi |
| 3146 | |
| 3147 | |
| 3148 | |
| 3149 | # Check whether --enable-checker or --disable-checker was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 3150 | if test "${enable_checker+set}" = set; then |
| 3151 | enableval="$enable_checker" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3152 | if test "$enableval" = "no" |
| 3153 | then |
| 3154 | CHECKER_CMT=# |
| 3155 | MAKEFILE_CHECKER=/dev/null |
| 3156 | echo "Disabling checker libraries" |
| 3157 | else |
| 3158 | CHECKER_CMT= |
| 3159 | MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker |
| 3160 | echo "Building checker libraries" |
| 3161 | fi |
| 3162 | |
| 3163 | else |
| 3164 | CHECKER_CMT=# |
| 3165 | MAKEFILE_CHECKER=/dev/null |
| 3166 | echo "Disabling checker libraries by default" |
| 3167 | |
| 3168 | fi |
| 3169 | |
| 3170 | |
| 3171 | |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 3172 | |
| 3173 | |
| 3174 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3175 | # Check whether --enable-gcc-wall or --disable-gcc-wall was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 3176 | if test "${enable_gcc_wall+set}" = set; then |
| 3177 | enableval="$enable_gcc_wall" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3178 | if test "$enableval" = "no" |
| 3179 | then |
| 3180 | W=# |
| 3181 | echo "Disabling GCC warnings" |
| 3182 | else |
| 3183 | W= |
| 3184 | echo "Enabling GCC warnings" |
| 3185 | fi |
| 3186 | |
| 3187 | else |
| 3188 | W=# |
| 3189 | echo "Disabling GCC warnings by default" |
| 3190 | |
| 3191 | fi |
| 3192 | |
| 3193 | |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 3194 | # Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 3195 | if test "${enable_dynamic_e2fsck+set}" = set; then |
| 3196 | enableval="$enable_dynamic_e2fsck" |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 3197 | if test "$enableval" = "no" |
| 3198 | then |
| 3199 | E2FSCK_TYPE=static |
| 3200 | echo "Building e2fsck statically" |
| 3201 | else |
| 3202 | E2FSCK_TYPE=shared |
| 3203 | echo "Building e2fsck dynamically" |
| 3204 | fi |
| 3205 | |
| 3206 | else |
| 3207 | E2FSCK_TYPE=static |
| 3208 | echo "Building e2fsck statically by default" |
| 3209 | |
| 3210 | fi |
| 3211 | |
| 3212 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 3213 | # Check whether --enable-fsck or --disable-fsck was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 3214 | if test "${enable_fsck+set}" = set; then |
| 3215 | enableval="$enable_fsck" |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 3216 | if test "$enableval" = "no" |
| 3217 | then |
| 3218 | FSCK_PROG='' FSCK_MAN='' |
| 3219 | echo "Not building fsck wrapper" |
| 3220 | else |
| 3221 | FSCK_PROG=fsck FSCK_MAN=fsck.8 |
| 3222 | echo "Building fsck wrapper" |
| 3223 | fi |
| 3224 | |
| 3225 | else |
| 3226 | case "$host_os" in |
| 3227 | gnu*) |
| 3228 | FSCK_PROG='' FSCK_MAN='' |
| 3229 | echo "Not building fsck wrapper by default" |
| 3230 | ;; |
| 3231 | *) |
| 3232 | FSCK_PROG=fsck FSCK_MAN=fsck.8 |
| 3233 | echo "Building fsck wrapper by default" |
| 3234 | esac |
| 3235 | |
| 3236 | fi |
| 3237 | |
| 3238 | |
| 3239 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3240 | MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library |
| 3241 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 3242 | # Check whether --enable-old-bitops or --disable-old-bitops was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 3243 | if test "${enable_old_bitops+set}" = set; then |
| 3244 | enableval="$enable_old_bitops" |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 3245 | if test "$enableval" = "no" |
| 3246 | then |
| 3247 | echo "Using new (standard) bitmask operations" |
| 3248 | else |
| 3249 | cat >> confdefs.h <<\EOF |
| 3250 | #define EXT2_OLD_BITOPS 1 |
| 3251 | EOF |
| 3252 | |
| 3253 | echo "Using old (native) bitmask operations" |
| 3254 | |
| 3255 | fi |
| 3256 | |
| 3257 | else |
| 3258 | echo "Using standard bitmask operations by default" |
| 3259 | |
| 3260 | fi |
| 3261 | |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 3262 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3263 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3264 | echo "configure:3265: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 3265 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3266 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
| 3267 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3268 | else |
| 3269 | cat > conftestmake <<\EOF |
| 3270 | all: |
| 3271 | @echo 'ac_maketemp="${MAKE}"' |
| 3272 | EOF |
| 3273 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 3274 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
| 3275 | if test -n "$ac_maketemp"; then |
| 3276 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 3277 | else |
| 3278 | eval ac_cv_prog_make_${ac_make}_set=no |
| 3279 | fi |
| 3280 | rm -f conftestmake |
| 3281 | fi |
| 3282 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
| 3283 | echo "$ac_t""yes" 1>&6 |
| 3284 | SET_MAKE= |
| 3285 | else |
| 3286 | echo "$ac_t""no" 1>&6 |
| 3287 | SET_MAKE="MAKE=${MAKE-make}" |
| 3288 | fi |
| 3289 | |
| 3290 | # Extract the first word of "ln", so it can be a program name with args. |
| 3291 | set dummy ln; ac_word=$2 |
| 3292 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3293 | echo "configure:3294: checking for $ac_word" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3294 | if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then |
| 3295 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3296 | else |
| 3297 | case "$LN" in |
| 3298 | /*) |
| 3299 | ac_cv_path_LN="$LN" # Let the user override the test with a path. |
| 3300 | ;; |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 3301 | ?:/*) |
| 3302 | ac_cv_path_LN="$LN" # Let the user override the test with a dos path. |
| 3303 | ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3304 | *) |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 3305 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 3306 | ac_dummy="$PATH" |
| 3307 | for ac_dir in $ac_dummy; do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3308 | test -z "$ac_dir" && ac_dir=. |
| 3309 | if test -f $ac_dir/$ac_word; then |
| 3310 | ac_cv_path_LN="$ac_dir/$ac_word" |
| 3311 | break |
| 3312 | fi |
| 3313 | done |
| 3314 | IFS="$ac_save_ifs" |
| 3315 | test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" |
| 3316 | ;; |
| 3317 | esac |
| 3318 | fi |
| 3319 | LN="$ac_cv_path_LN" |
| 3320 | if test -n "$LN"; then |
| 3321 | echo "$ac_t""$LN" 1>&6 |
| 3322 | else |
| 3323 | echo "$ac_t""no" 1>&6 |
| 3324 | fi |
| 3325 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 3326 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3327 | echo "configure:3328: checking whether ln -s works" >&5 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 3328 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
| 3329 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3330 | else |
| 3331 | rm -f conftestdata |
| 3332 | if ln -s X conftestdata 2>/dev/null |
| 3333 | then |
| 3334 | rm -f conftestdata |
| 3335 | ac_cv_prog_LN_S="ln -s" |
| 3336 | else |
| 3337 | ac_cv_prog_LN_S=ln |
| 3338 | fi |
| 3339 | fi |
| 3340 | LN_S="$ac_cv_prog_LN_S" |
| 3341 | if test "$ac_cv_prog_LN_S" = "ln -s"; then |
| 3342 | echo "$ac_t""yes" 1>&6 |
| 3343 | else |
| 3344 | echo "$ac_t""no" 1>&6 |
| 3345 | fi |
| 3346 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3347 | # Extract the first word of "mv", so it can be a program name with args. |
| 3348 | set dummy mv; ac_word=$2 |
| 3349 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3350 | echo "configure:3351: checking for $ac_word" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3351 | if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then |
| 3352 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3353 | else |
| 3354 | case "$MV" in |
| 3355 | /*) |
| 3356 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 3357 | ;; |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 3358 | ?:/*) |
| 3359 | ac_cv_path_MV="$MV" # Let the user override the test with a dos path. |
| 3360 | ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3361 | *) |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 3362 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 3363 | ac_dummy="$PATH" |
| 3364 | for ac_dir in $ac_dummy; do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3365 | test -z "$ac_dir" && ac_dir=. |
| 3366 | if test -f $ac_dir/$ac_word; then |
| 3367 | ac_cv_path_MV="$ac_dir/$ac_word" |
| 3368 | break |
| 3369 | fi |
| 3370 | done |
| 3371 | IFS="$ac_save_ifs" |
| 3372 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 3373 | ;; |
| 3374 | esac |
| 3375 | fi |
| 3376 | MV="$ac_cv_path_MV" |
| 3377 | if test -n "$MV"; then |
| 3378 | echo "$ac_t""$MV" 1>&6 |
| 3379 | else |
| 3380 | echo "$ac_t""no" 1>&6 |
| 3381 | fi |
| 3382 | |
| 3383 | # Extract the first word of "cp", so it can be a program name with args. |
| 3384 | set dummy cp; ac_word=$2 |
| 3385 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3386 | echo "configure:3387: checking for $ac_word" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3387 | if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then |
| 3388 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3389 | else |
| 3390 | case "$CP" in |
| 3391 | /*) |
| 3392 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 3393 | ;; |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 3394 | ?:/*) |
| 3395 | ac_cv_path_CP="$CP" # Let the user override the test with a dos path. |
| 3396 | ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3397 | *) |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 3398 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 3399 | ac_dummy="$PATH" |
| 3400 | for ac_dir in $ac_dummy; do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3401 | test -z "$ac_dir" && ac_dir=. |
| 3402 | if test -f $ac_dir/$ac_word; then |
| 3403 | ac_cv_path_CP="$ac_dir/$ac_word" |
| 3404 | break |
| 3405 | fi |
| 3406 | done |
| 3407 | IFS="$ac_save_ifs" |
| 3408 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 3409 | ;; |
| 3410 | esac |
| 3411 | fi |
| 3412 | CP="$ac_cv_path_CP" |
| 3413 | if test -n "$CP"; then |
| 3414 | echo "$ac_t""$CP" 1>&6 |
| 3415 | else |
| 3416 | echo "$ac_t""no" 1>&6 |
| 3417 | fi |
| 3418 | |
| 3419 | # Extract the first word of "rm", so it can be a program name with args. |
| 3420 | set dummy rm; ac_word=$2 |
| 3421 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3422 | echo "configure:3423: checking for $ac_word" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3423 | if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then |
| 3424 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3425 | else |
| 3426 | case "$RM" in |
| 3427 | /*) |
| 3428 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 3429 | ;; |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 3430 | ?:/*) |
| 3431 | ac_cv_path_RM="$RM" # Let the user override the test with a dos path. |
| 3432 | ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3433 | *) |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 3434 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 3435 | ac_dummy="$PATH" |
| 3436 | for ac_dir in $ac_dummy; do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3437 | test -z "$ac_dir" && ac_dir=. |
| 3438 | if test -f $ac_dir/$ac_word; then |
| 3439 | ac_cv_path_RM="$ac_dir/$ac_word" |
| 3440 | break |
| 3441 | fi |
| 3442 | done |
| 3443 | IFS="$ac_save_ifs" |
| 3444 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 3445 | ;; |
| 3446 | esac |
| 3447 | fi |
| 3448 | RM="$ac_cv_path_RM" |
| 3449 | if test -n "$RM"; then |
| 3450 | echo "$ac_t""$RM" 1>&6 |
| 3451 | else |
| 3452 | echo "$ac_t""no" 1>&6 |
| 3453 | fi |
| 3454 | |
| 3455 | # Extract the first word of "chmod", so it can be a program name with args. |
| 3456 | set dummy chmod; ac_word=$2 |
| 3457 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3458 | echo "configure:3459: checking for $ac_word" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3459 | if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then |
| 3460 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3461 | else |
| 3462 | case "$CHMOD" in |
| 3463 | /*) |
| 3464 | ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. |
| 3465 | ;; |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 3466 | ?:/*) |
| 3467 | ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a dos path. |
| 3468 | ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3469 | *) |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 3470 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 3471 | ac_dummy="$PATH" |
| 3472 | for ac_dir in $ac_dummy; do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3473 | test -z "$ac_dir" && ac_dir=. |
| 3474 | if test -f $ac_dir/$ac_word; then |
| 3475 | ac_cv_path_CHMOD="$ac_dir/$ac_word" |
| 3476 | break |
| 3477 | fi |
| 3478 | done |
| 3479 | IFS="$ac_save_ifs" |
| 3480 | test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":" |
| 3481 | ;; |
| 3482 | esac |
| 3483 | fi |
| 3484 | CHMOD="$ac_cv_path_CHMOD" |
| 3485 | if test -n "$CHMOD"; then |
| 3486 | echo "$ac_t""$CHMOD" 1>&6 |
| 3487 | else |
| 3488 | echo "$ac_t""no" 1>&6 |
| 3489 | fi |
| 3490 | |
| 3491 | # Extract the first word of "awk", so it can be a program name with args. |
| 3492 | set dummy awk; ac_word=$2 |
| 3493 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3494 | echo "configure:3495: checking for $ac_word" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3495 | if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then |
| 3496 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3497 | else |
| 3498 | case "$AWK" in |
| 3499 | /*) |
| 3500 | ac_cv_path_AWK="$AWK" # Let the user override the test with a path. |
| 3501 | ;; |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 3502 | ?:/*) |
| 3503 | ac_cv_path_AWK="$AWK" # Let the user override the test with a dos path. |
| 3504 | ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3505 | *) |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 3506 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 3507 | ac_dummy="$PATH" |
| 3508 | for ac_dir in $ac_dummy; do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3509 | test -z "$ac_dir" && ac_dir=. |
| 3510 | if test -f $ac_dir/$ac_word; then |
| 3511 | ac_cv_path_AWK="$ac_dir/$ac_word" |
| 3512 | break |
| 3513 | fi |
| 3514 | done |
| 3515 | IFS="$ac_save_ifs" |
| 3516 | test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk" |
| 3517 | ;; |
| 3518 | esac |
| 3519 | fi |
| 3520 | AWK="$ac_cv_path_AWK" |
| 3521 | if test -n "$AWK"; then |
| 3522 | echo "$ac_t""$AWK" 1>&6 |
| 3523 | else |
| 3524 | echo "$ac_t""no" 1>&6 |
| 3525 | fi |
| 3526 | |
| 3527 | # Extract the first word of "sed", so it can be a program name with args. |
| 3528 | set dummy sed; ac_word=$2 |
| 3529 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3530 | echo "configure:3531: checking for $ac_word" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3531 | if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then |
| 3532 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3533 | else |
| 3534 | case "$SED" in |
| 3535 | /*) |
| 3536 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 3537 | ;; |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 3538 | ?:/*) |
| 3539 | ac_cv_path_SED="$SED" # Let the user override the test with a dos path. |
| 3540 | ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3541 | *) |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 3542 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 3543 | ac_dummy="$PATH" |
| 3544 | for ac_dir in $ac_dummy; do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3545 | test -z "$ac_dir" && ac_dir=. |
| 3546 | if test -f $ac_dir/$ac_word; then |
| 3547 | ac_cv_path_SED="$ac_dir/$ac_word" |
| 3548 | break |
| 3549 | fi |
| 3550 | done |
| 3551 | IFS="$ac_save_ifs" |
| 3552 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 3553 | ;; |
| 3554 | esac |
| 3555 | fi |
| 3556 | SED="$ac_cv_path_SED" |
| 3557 | if test -n "$SED"; then |
| 3558 | echo "$ac_t""$SED" 1>&6 |
| 3559 | else |
| 3560 | echo "$ac_t""no" 1>&6 |
| 3561 | fi |
| 3562 | |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 3563 | # Extract the first word of "perl", so it can be a program name with args. |
| 3564 | set dummy perl; ac_word=$2 |
| 3565 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3566 | echo "configure:3567: checking for $ac_word" >&5 |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 3567 | if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then |
| 3568 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3569 | else |
| 3570 | case "$PERL" in |
| 3571 | /*) |
| 3572 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 3573 | ;; |
| 3574 | ?:/*) |
| 3575 | ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path. |
| 3576 | ;; |
| 3577 | *) |
| 3578 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 3579 | ac_dummy="$PATH" |
| 3580 | for ac_dir in $ac_dummy; do |
| 3581 | test -z "$ac_dir" && ac_dir=. |
| 3582 | if test -f $ac_dir/$ac_word; then |
| 3583 | ac_cv_path_PERL="$ac_dir/$ac_word" |
| 3584 | break |
| 3585 | fi |
| 3586 | done |
| 3587 | IFS="$ac_save_ifs" |
| 3588 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl" |
| 3589 | ;; |
| 3590 | esac |
| 3591 | fi |
| 3592 | PERL="$ac_cv_path_PERL" |
| 3593 | if test -n "$PERL"; then |
| 3594 | echo "$ac_t""$PERL" 1>&6 |
| 3595 | else |
| 3596 | echo "$ac_t""no" 1>&6 |
| 3597 | fi |
| 3598 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3599 | echo $ac_n "checking build system type""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3600 | echo "configure:3601: checking build system type" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3601 | |
| 3602 | build_alias=$build |
| 3603 | case "$build_alias" in |
| 3604 | NONE) |
| 3605 | case $nonopt in |
| 3606 | NONE) build_alias=$host_alias ;; |
| 3607 | *) build_alias=$nonopt ;; |
| 3608 | esac ;; |
| 3609 | esac |
| 3610 | |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 3611 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 3612 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 3613 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 3614 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3615 | echo "$ac_t""$build" 1>&6 |
| 3616 | |
| 3617 | if test $host != $build; then |
| 3618 | ac_tool_prefix=${host_alias}- |
| 3619 | else |
| 3620 | ac_tool_prefix= |
| 3621 | fi |
| 3622 | |
| 3623 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 3624 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
| 3625 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3626 | echo "configure:3627: checking for $ac_word" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3627 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
| 3628 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3629 | else |
| 3630 | if test -n "$AR"; then |
| 3631 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 3632 | else |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 3633 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 3634 | ac_dummy="$PATH" |
| 3635 | for ac_dir in $ac_dummy; do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3636 | test -z "$ac_dir" && ac_dir=. |
| 3637 | if test -f $ac_dir/$ac_word; then |
| 3638 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 3639 | break |
| 3640 | fi |
| 3641 | done |
| 3642 | IFS="$ac_save_ifs" |
| 3643 | fi |
| 3644 | fi |
| 3645 | AR="$ac_cv_prog_AR" |
| 3646 | if test -n "$AR"; then |
| 3647 | echo "$ac_t""$AR" 1>&6 |
| 3648 | else |
| 3649 | echo "$ac_t""no" 1>&6 |
| 3650 | fi |
| 3651 | |
| 3652 | |
| 3653 | if test -z "$ac_cv_prog_AR"; then |
| 3654 | if test -n "$ac_tool_prefix"; then |
| 3655 | # Extract the first word of "ar", so it can be a program name with args. |
| 3656 | set dummy ar; ac_word=$2 |
| 3657 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3658 | echo "configure:3659: checking for $ac_word" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3659 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
| 3660 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3661 | else |
| 3662 | if test -n "$AR"; then |
| 3663 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 3664 | else |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 3665 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 3666 | ac_dummy="$PATH" |
| 3667 | for ac_dir in $ac_dummy; do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3668 | test -z "$ac_dir" && ac_dir=. |
| 3669 | if test -f $ac_dir/$ac_word; then |
| 3670 | ac_cv_prog_AR="ar" |
| 3671 | break |
| 3672 | fi |
| 3673 | done |
| 3674 | IFS="$ac_save_ifs" |
| 3675 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
| 3676 | fi |
| 3677 | fi |
| 3678 | AR="$ac_cv_prog_AR" |
| 3679 | if test -n "$AR"; then |
| 3680 | echo "$ac_t""$AR" 1>&6 |
| 3681 | else |
| 3682 | echo "$ac_t""no" 1>&6 |
| 3683 | fi |
| 3684 | |
| 3685 | else |
| 3686 | AR="ar" |
| 3687 | fi |
| 3688 | fi |
| 3689 | |
| 3690 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 3691 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 3692 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3693 | echo "configure:3694: checking for $ac_word" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3694 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
| 3695 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3696 | else |
| 3697 | if test -n "$RANLIB"; then |
| 3698 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 3699 | else |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 3700 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 3701 | ac_dummy="$PATH" |
| 3702 | for ac_dir in $ac_dummy; do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3703 | test -z "$ac_dir" && ac_dir=. |
| 3704 | if test -f $ac_dir/$ac_word; then |
| 3705 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 3706 | break |
| 3707 | fi |
| 3708 | done |
| 3709 | IFS="$ac_save_ifs" |
| 3710 | fi |
| 3711 | fi |
| 3712 | RANLIB="$ac_cv_prog_RANLIB" |
| 3713 | if test -n "$RANLIB"; then |
| 3714 | echo "$ac_t""$RANLIB" 1>&6 |
| 3715 | else |
| 3716 | echo "$ac_t""no" 1>&6 |
| 3717 | fi |
| 3718 | |
| 3719 | |
| 3720 | if test -z "$ac_cv_prog_RANLIB"; then |
| 3721 | if test -n "$ac_tool_prefix"; then |
| 3722 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 3723 | set dummy ranlib; ac_word=$2 |
| 3724 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3725 | echo "configure:3726: checking for $ac_word" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3726 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
| 3727 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3728 | else |
| 3729 | if test -n "$RANLIB"; then |
| 3730 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 3731 | else |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 3732 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 3733 | ac_dummy="$PATH" |
| 3734 | for ac_dir in $ac_dummy; do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3735 | test -z "$ac_dir" && ac_dir=. |
| 3736 | if test -f $ac_dir/$ac_word; then |
| 3737 | ac_cv_prog_RANLIB="ranlib" |
| 3738 | break |
| 3739 | fi |
| 3740 | done |
| 3741 | IFS="$ac_save_ifs" |
| 3742 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
| 3743 | fi |
| 3744 | fi |
| 3745 | RANLIB="$ac_cv_prog_RANLIB" |
| 3746 | if test -n "$RANLIB"; then |
| 3747 | echo "$ac_t""$RANLIB" 1>&6 |
| 3748 | else |
| 3749 | echo "$ac_t""no" 1>&6 |
| 3750 | fi |
| 3751 | |
| 3752 | else |
| 3753 | RANLIB=":" |
| 3754 | fi |
| 3755 | fi |
| 3756 | |
| 3757 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 3758 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 3759 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3760 | echo "configure:3761: checking for $ac_word" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3761 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
| 3762 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3763 | else |
| 3764 | if test -n "$STRIP"; then |
| 3765 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 3766 | else |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 3767 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 3768 | ac_dummy="$PATH" |
| 3769 | for ac_dir in $ac_dummy; do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3770 | test -z "$ac_dir" && ac_dir=. |
| 3771 | if test -f $ac_dir/$ac_word; then |
| 3772 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 3773 | break |
| 3774 | fi |
| 3775 | done |
| 3776 | IFS="$ac_save_ifs" |
| 3777 | fi |
| 3778 | fi |
| 3779 | STRIP="$ac_cv_prog_STRIP" |
| 3780 | if test -n "$STRIP"; then |
| 3781 | echo "$ac_t""$STRIP" 1>&6 |
| 3782 | else |
| 3783 | echo "$ac_t""no" 1>&6 |
| 3784 | fi |
| 3785 | |
| 3786 | |
| 3787 | if test -z "$ac_cv_prog_STRIP"; then |
| 3788 | if test -n "$ac_tool_prefix"; then |
| 3789 | # Extract the first word of "strip", so it can be a program name with args. |
| 3790 | set dummy strip; ac_word=$2 |
| 3791 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3792 | echo "configure:3793: checking for $ac_word" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3793 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
| 3794 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3795 | else |
| 3796 | if test -n "$STRIP"; then |
| 3797 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 3798 | else |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 3799 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 3800 | ac_dummy="$PATH" |
| 3801 | for ac_dir in $ac_dummy; do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3802 | test -z "$ac_dir" && ac_dir=. |
| 3803 | if test -f $ac_dir/$ac_word; then |
| 3804 | ac_cv_prog_STRIP="strip" |
| 3805 | break |
| 3806 | fi |
| 3807 | done |
| 3808 | IFS="$ac_save_ifs" |
| 3809 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" |
| 3810 | fi |
| 3811 | fi |
| 3812 | STRIP="$ac_cv_prog_STRIP" |
| 3813 | if test -n "$STRIP"; then |
| 3814 | echo "$ac_t""$STRIP" 1>&6 |
| 3815 | else |
| 3816 | echo "$ac_t""no" 1>&6 |
| 3817 | fi |
| 3818 | |
| 3819 | else |
| 3820 | STRIP=":" |
| 3821 | fi |
| 3822 | fi |
| 3823 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3824 | # Find a good install program. We prefer a C program (faster), |
| 3825 | # so one script is as good as another. But avoid the broken or |
| 3826 | # incompatible versions: |
| 3827 | # SysV /etc/install, /usr/sbin/install |
| 3828 | # SunOS /usr/etc/install |
| 3829 | # IRIX /sbin/install |
| 3830 | # AIX /bin/install |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 3831 | # 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] | 3832 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 3833 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 3834 | # ./install, which can be erroneously created by make from ./install.sh. |
| 3835 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3836 | echo "configure:3837: checking for a BSD compatible install" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3837 | if test -z "$INSTALL"; then |
| 3838 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
| 3839 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3840 | else |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 3841 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3842 | for ac_dir in $PATH; do |
| 3843 | # Account for people who put trailing slashes in PATH elements. |
| 3844 | case "$ac_dir/" in |
| 3845 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
| 3846 | *) |
| 3847 | # 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] | 3848 | # Don't use installbsd from OSF since it installs stuff as root |
| 3849 | # by default. |
| 3850 | for ac_prog in ginstall scoinst install; do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3851 | if test -f $ac_dir/$ac_prog; then |
| 3852 | if test $ac_prog = install && |
| 3853 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
| 3854 | # AIX install. It has an incompatible calling convention. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3855 | : |
| 3856 | else |
| 3857 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
| 3858 | break 2 |
| 3859 | fi |
| 3860 | fi |
| 3861 | done |
| 3862 | ;; |
| 3863 | esac |
| 3864 | done |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 3865 | IFS="$ac_save_IFS" |
| 3866 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3867 | fi |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 3868 | if test "${ac_cv_path_install+set}" = set; then |
| 3869 | INSTALL="$ac_cv_path_install" |
| 3870 | else |
| 3871 | # As a last resort, use the slow shell script. We don't cache a |
| 3872 | # path for INSTALL within a source directory, because that will |
| 3873 | # break other packages using the cache if that directory is |
| 3874 | # removed, or if the path is relative. |
| 3875 | INSTALL="$ac_install_sh" |
| 3876 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3877 | fi |
| 3878 | echo "$ac_t""$INSTALL" 1>&6 |
| 3879 | |
| 3880 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 3881 | # It thinks the first close brace ends the variable substitution. |
| 3882 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 3883 | |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 3884 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
| 3885 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3886 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 3887 | |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 3888 | # See if we need a separate native compiler. |
| 3889 | if test $cross_compiling = no; then |
| 3890 | BUILD_CC="$CC" |
| 3891 | |
| 3892 | else |
| 3893 | for ac_prog in gcc cc |
| 3894 | do |
| 3895 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3896 | set dummy $ac_prog; ac_word=$2 |
| 3897 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3898 | echo "configure:3899: checking for $ac_word" >&5 |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 3899 | if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then |
| 3900 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3901 | else |
| 3902 | if test -n "$BUILD_CC"; then |
| 3903 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 3904 | else |
| 3905 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 3906 | ac_dummy="$PATH" |
| 3907 | for ac_dir in $ac_dummy; do |
| 3908 | test -z "$ac_dir" && ac_dir=. |
| 3909 | if test -f $ac_dir/$ac_word; then |
| 3910 | ac_cv_prog_BUILD_CC="$ac_prog" |
| 3911 | break |
| 3912 | fi |
| 3913 | done |
| 3914 | IFS="$ac_save_ifs" |
| 3915 | fi |
| 3916 | fi |
| 3917 | BUILD_CC="$ac_cv_prog_BUILD_CC" |
| 3918 | if test -n "$BUILD_CC"; then |
| 3919 | echo "$ac_t""$BUILD_CC" 1>&6 |
| 3920 | else |
| 3921 | echo "$ac_t""no" 1>&6 |
| 3922 | fi |
| 3923 | |
| 3924 | test -n "$BUILD_CC" && break |
| 3925 | done |
| 3926 | |
| 3927 | fi |
Theodore Ts'o | c81c6ce | 1999-10-26 04:28:53 +0000 | [diff] [blame] | 3928 | 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] | 3929 | do |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 3930 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3931 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3932 | echo "configure:3933: checking for $ac_hdr" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3933 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 3934 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3935 | else |
| 3936 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3937 | #line 3938 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3938 | #include "confdefs.h" |
| 3939 | #include <$ac_hdr> |
| 3940 | EOF |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 3941 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3942 | { (eval echo configure:3943: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 3943 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3944 | if test -z "$ac_err"; then |
| 3945 | rm -rf conftest* |
| 3946 | eval "ac_cv_header_$ac_safe=yes" |
| 3947 | else |
| 3948 | echo "$ac_err" >&5 |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 3949 | echo "configure: failed program was:" >&5 |
| 3950 | cat conftest.$ac_ext >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3951 | rm -rf conftest* |
| 3952 | eval "ac_cv_header_$ac_safe=no" |
| 3953 | fi |
| 3954 | rm -f conftest* |
| 3955 | fi |
| 3956 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 3957 | echo "$ac_t""yes" 1>&6 |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 3958 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3959 | cat >> confdefs.h <<EOF |
| 3960 | #define $ac_tr_hdr 1 |
| 3961 | EOF |
| 3962 | |
| 3963 | else |
| 3964 | echo "$ac_t""no" 1>&6 |
| 3965 | fi |
| 3966 | done |
| 3967 | |
| 3968 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3969 | echo "configure:3970: checking for vprintf" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3970 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
| 3971 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3972 | else |
| 3973 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3974 | #line 3975 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3975 | #include "confdefs.h" |
| 3976 | /* System header to define __stub macros and hopefully few prototypes, |
| 3977 | which can conflict with char vprintf(); below. */ |
| 3978 | #include <assert.h> |
| 3979 | /* Override any gcc2 internal prototype to avoid an error. */ |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 3980 | /* We use char because int might match the return type of a gcc2 |
| 3981 | builtin and then its argument prototype would still apply. */ |
| 3982 | char vprintf(); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3983 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 3984 | int main() { |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3985 | |
| 3986 | /* The GNU C library defines this for functions which it implements |
| 3987 | to always fail with ENOSYS. Some functions are actually named |
| 3988 | something starting with __ and the normal name is an alias. */ |
| 3989 | #if defined (__stub_vprintf) || defined (__stub___vprintf) |
| 3990 | choke me |
| 3991 | #else |
| 3992 | vprintf(); |
| 3993 | #endif |
| 3994 | |
| 3995 | ; return 0; } |
| 3996 | EOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3997 | if { (eval echo configure:3998: \"$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] | 3998 | rm -rf conftest* |
| 3999 | eval "ac_cv_func_vprintf=yes" |
| 4000 | else |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 4001 | echo "configure: failed program was:" >&5 |
| 4002 | cat conftest.$ac_ext >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4003 | rm -rf conftest* |
| 4004 | eval "ac_cv_func_vprintf=no" |
| 4005 | fi |
| 4006 | rm -f conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4007 | fi |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 4008 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4009 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then |
| 4010 | echo "$ac_t""yes" 1>&6 |
| 4011 | cat >> confdefs.h <<\EOF |
| 4012 | #define HAVE_VPRINTF 1 |
| 4013 | EOF |
| 4014 | |
| 4015 | else |
| 4016 | echo "$ac_t""no" 1>&6 |
| 4017 | fi |
| 4018 | |
| 4019 | if test "$ac_cv_func_vprintf" != yes; then |
| 4020 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 4021 | echo "configure:4022: checking for _doprnt" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4022 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
| 4023 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4024 | else |
| 4025 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 4026 | #line 4027 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4027 | #include "confdefs.h" |
| 4028 | /* System header to define __stub macros and hopefully few prototypes, |
| 4029 | which can conflict with char _doprnt(); below. */ |
| 4030 | #include <assert.h> |
| 4031 | /* Override any gcc2 internal prototype to avoid an error. */ |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 4032 | /* We use char because int might match the return type of a gcc2 |
| 4033 | builtin and then its argument prototype would still apply. */ |
| 4034 | char _doprnt(); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4035 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 4036 | int main() { |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4037 | |
| 4038 | /* The GNU C library defines this for functions which it implements |
| 4039 | to always fail with ENOSYS. Some functions are actually named |
| 4040 | something starting with __ and the normal name is an alias. */ |
| 4041 | #if defined (__stub__doprnt) || defined (__stub____doprnt) |
| 4042 | choke me |
| 4043 | #else |
| 4044 | _doprnt(); |
| 4045 | #endif |
| 4046 | |
| 4047 | ; return 0; } |
| 4048 | EOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 4049 | if { (eval echo configure:4050: \"$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] | 4050 | rm -rf conftest* |
| 4051 | eval "ac_cv_func__doprnt=yes" |
| 4052 | else |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 4053 | echo "configure: failed program was:" >&5 |
| 4054 | cat conftest.$ac_ext >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4055 | rm -rf conftest* |
| 4056 | eval "ac_cv_func__doprnt=no" |
| 4057 | fi |
| 4058 | rm -f conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4059 | fi |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 4060 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4061 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then |
| 4062 | echo "$ac_t""yes" 1>&6 |
| 4063 | cat >> confdefs.h <<\EOF |
| 4064 | #define HAVE_DOPRNT 1 |
| 4065 | EOF |
| 4066 | |
| 4067 | else |
| 4068 | echo "$ac_t""no" 1>&6 |
| 4069 | fi |
| 4070 | |
| 4071 | fi |
| 4072 | |
| 4073 | echo $ac_n "checking whether struct dirent has a d_namlen field""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 4074 | echo "configure:4075: checking whether struct dirent has a d_namlen field" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4075 | if eval "test \"`echo '$''{'e2fsprogs_cv_struct_d_namlen'+set}'`\" = set"; then |
| 4076 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4077 | else |
| 4078 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 4079 | #line 4080 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4080 | #include "confdefs.h" |
| 4081 | #include <sys/types.h> |
| 4082 | #include <dirent.h> |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 4083 | int main() { |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4084 | struct dirent de; de.d_namlen = 0; |
| 4085 | ; return 0; } |
| 4086 | EOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 4087 | if { (eval echo configure:4088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4088 | rm -rf conftest* |
| 4089 | e2fsprogs_cv_struct_d_namlen=yes |
| 4090 | else |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 4091 | echo "configure: failed program was:" >&5 |
| 4092 | cat conftest.$ac_ext >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4093 | rm -rf conftest* |
| 4094 | e2fsprogs_cv_struct_d_namlen=no |
| 4095 | fi |
| 4096 | rm -f conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4097 | fi |
| 4098 | |
| 4099 | echo "$ac_t""$e2fsprogs_cv_struct_d_namlen" 1>&6 |
| 4100 | if test "$e2fsprogs_cv_struct_d_namlen" = yes; then |
| 4101 | cat >> confdefs.h <<\EOF |
| 4102 | #define HAVE_DIRENT_NAMLEN 1 |
| 4103 | EOF |
| 4104 | |
| 4105 | fi |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 4106 | echo $ac_n "checking whether llseek declared in unistd.h""... $ac_c" 1>&6 |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 4107 | echo "configure:4108: checking whether llseek declared in unistd.h" >&5 |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 4108 | if eval "test \"`echo '$''{'e2fsprogs_cv_have_llseek_prototype'+set}'`\" = set"; then |
| 4109 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4110 | else |
| 4111 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 4112 | #line 4113 "configure" |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 4113 | #include "confdefs.h" |
| 4114 | #include <unistd.h> |
| 4115 | int main() { |
| 4116 | extern int llseek(int); |
| 4117 | ; return 0; } |
| 4118 | EOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 4119 | if { (eval echo configure:4120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 4120 | rm -rf conftest* |
| 4121 | e2fsprogs_cv_have_llseek_prototype=no |
| 4122 | else |
| 4123 | echo "configure: failed program was:" >&5 |
| 4124 | cat conftest.$ac_ext >&5 |
| 4125 | rm -rf conftest* |
| 4126 | e2fsprogs_cv_have_llseek_prototype=yes |
| 4127 | fi |
| 4128 | rm -f conftest* |
| 4129 | fi |
| 4130 | |
| 4131 | echo "$ac_t""$e2fsprogs_cv_have_llseek_prototype" 1>&6 |
| 4132 | if test "$e2fsprogs_cv_have_llseek_prototype" = yes; then |
| 4133 | cat >> confdefs.h <<\EOF |
| 4134 | #define HAVE_LLSEEK_PROTOTYPE 1 |
| 4135 | EOF |
| 4136 | |
| 4137 | fi |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 4138 | echo $ac_n "checking whether lseek64 declared in unistd.h""... $ac_c" 1>&6 |
| 4139 | echo "configure:4140: checking whether lseek64 declared in unistd.h" >&5 |
| 4140 | if eval "test \"`echo '$''{'e2fsprogs_cv_have_lseek64_prototype'+set}'`\" = set"; then |
| 4141 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4142 | else |
| 4143 | cat > conftest.$ac_ext <<EOF |
| 4144 | #line 4145 "configure" |
| 4145 | #include "confdefs.h" |
| 4146 | #define _LARGEFILE_SOURCE |
| 4147 | #define _LARGEFILE64_SOURCE |
| 4148 | #include <unistd.h> |
| 4149 | int main() { |
| 4150 | extern int lseek64(int); |
| 4151 | ; return 0; } |
| 4152 | EOF |
| 4153 | if { (eval echo configure:4154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 4154 | rm -rf conftest* |
| 4155 | e2fsprogs_cv_have_lseek64_prototype=no |
| 4156 | else |
| 4157 | echo "configure: failed program was:" >&5 |
| 4158 | cat conftest.$ac_ext >&5 |
| 4159 | rm -rf conftest* |
| 4160 | e2fsprogs_cv_have_lseek64_prototype=yes |
| 4161 | fi |
| 4162 | rm -f conftest* |
| 4163 | fi |
| 4164 | |
| 4165 | echo "$ac_t""$e2fsprogs_cv_have_lseek64_prototype" 1>&6 |
| 4166 | if test "$e2fsprogs_cv_have_lseek64_prototype" = yes; then |
| 4167 | cat >> confdefs.h <<\EOF |
| 4168 | #define HAVE_LSEEK64_PROTOTYPE 1 |
| 4169 | EOF |
| 4170 | |
| 4171 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4172 | if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then |
| 4173 | # if cross-compiling, with no cached values, just assume something common. |
| 4174 | ac_cv_sizeof_short=2 |
| 4175 | ac_cv_sizeof_int=4 |
| 4176 | ac_cv_sizeof_long=4 |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 4177 | ac_cv_sizeof_long_long=8 |
| 4178 | 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] | 4179 | fi |
| 4180 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 4181 | echo "configure:4182: checking size of short" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4182 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
| 4183 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4184 | else |
| 4185 | if test "$cross_compiling" = yes; then |
| 4186 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 4187 | else |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 4188 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 4189 | #line 4190 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4190 | #include "confdefs.h" |
| 4191 | #include <stdio.h> |
| 4192 | main() |
| 4193 | { |
| 4194 | FILE *f=fopen("conftestval", "w"); |
| 4195 | if (!f) exit(1); |
| 4196 | fprintf(f, "%d\n", sizeof(short)); |
| 4197 | exit(0); |
| 4198 | } |
| 4199 | EOF |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 4200 | if { (eval echo configure:4201: \"$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] | 4201 | then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4202 | ac_cv_sizeof_short=`cat conftestval` |
| 4203 | else |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 4204 | echo "configure: failed program was:" >&5 |
| 4205 | cat conftest.$ac_ext >&5 |
| 4206 | rm -fr conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4207 | ac_cv_sizeof_short=0 |
| 4208 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4209 | rm -fr conftest* |
| 4210 | fi |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 4211 | |
| 4212 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4213 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
| 4214 | cat >> confdefs.h <<EOF |
| 4215 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
| 4216 | EOF |
| 4217 | |
| 4218 | |
| 4219 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 4220 | echo "configure:4221: checking size of int" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4221 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
| 4222 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4223 | else |
| 4224 | if test "$cross_compiling" = yes; then |
| 4225 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 4226 | else |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 4227 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 4228 | #line 4229 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4229 | #include "confdefs.h" |
| 4230 | #include <stdio.h> |
| 4231 | main() |
| 4232 | { |
| 4233 | FILE *f=fopen("conftestval", "w"); |
| 4234 | if (!f) exit(1); |
| 4235 | fprintf(f, "%d\n", sizeof(int)); |
| 4236 | exit(0); |
| 4237 | } |
| 4238 | EOF |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 4239 | if { (eval echo configure:4240: \"$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] | 4240 | then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4241 | ac_cv_sizeof_int=`cat conftestval` |
| 4242 | else |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 4243 | echo "configure: failed program was:" >&5 |
| 4244 | cat conftest.$ac_ext >&5 |
| 4245 | rm -fr conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4246 | ac_cv_sizeof_int=0 |
| 4247 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4248 | rm -fr conftest* |
| 4249 | fi |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 4250 | |
| 4251 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4252 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 |
| 4253 | cat >> confdefs.h <<EOF |
| 4254 | #define SIZEOF_INT $ac_cv_sizeof_int |
| 4255 | EOF |
| 4256 | |
| 4257 | |
| 4258 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 4259 | echo "configure:4260: checking size of long" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4260 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
| 4261 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4262 | else |
| 4263 | if test "$cross_compiling" = yes; then |
| 4264 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 4265 | else |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 4266 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 4267 | #line 4268 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4268 | #include "confdefs.h" |
| 4269 | #include <stdio.h> |
| 4270 | main() |
| 4271 | { |
| 4272 | FILE *f=fopen("conftestval", "w"); |
| 4273 | if (!f) exit(1); |
| 4274 | fprintf(f, "%d\n", sizeof(long)); |
| 4275 | exit(0); |
| 4276 | } |
| 4277 | EOF |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 4278 | if { (eval echo configure:4279: \"$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] | 4279 | then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4280 | ac_cv_sizeof_long=`cat conftestval` |
| 4281 | else |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 4282 | echo "configure: failed program was:" >&5 |
| 4283 | cat conftest.$ac_ext >&5 |
| 4284 | rm -fr conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4285 | ac_cv_sizeof_long=0 |
| 4286 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4287 | rm -fr conftest* |
| 4288 | fi |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 4289 | |
| 4290 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4291 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 |
| 4292 | cat >> confdefs.h <<EOF |
| 4293 | #define SIZEOF_LONG $ac_cv_sizeof_long |
| 4294 | EOF |
| 4295 | |
| 4296 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 4297 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 4298 | echo "configure:4299: checking size of long long" >&5 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 4299 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
| 4300 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4301 | else |
| 4302 | if test "$cross_compiling" = yes; then |
| 4303 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 4304 | else |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 4305 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 4306 | #line 4307 "configure" |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 4307 | #include "confdefs.h" |
| 4308 | #include <stdio.h> |
| 4309 | main() |
| 4310 | { |
| 4311 | FILE *f=fopen("conftestval", "w"); |
| 4312 | if (!f) exit(1); |
| 4313 | fprintf(f, "%d\n", sizeof(long long)); |
| 4314 | exit(0); |
| 4315 | } |
| 4316 | EOF |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 4317 | if { (eval echo configure:4318: \"$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] | 4318 | then |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 4319 | ac_cv_sizeof_long_long=`cat conftestval` |
| 4320 | else |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 4321 | echo "configure: failed program was:" >&5 |
| 4322 | cat conftest.$ac_ext >&5 |
| 4323 | rm -fr conftest* |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 4324 | ac_cv_sizeof_long_long=0 |
| 4325 | fi |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 4326 | rm -fr conftest* |
| 4327 | fi |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 4328 | |
| 4329 | fi |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 4330 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
| 4331 | cat >> confdefs.h <<EOF |
| 4332 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
| 4333 | EOF |
| 4334 | |
| 4335 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4336 | SIZEOF_SHORT=$ac_cv_sizeof_short |
| 4337 | SIZEOF_INT=$ac_cv_sizeof_int |
| 4338 | SIZEOF_LONG=$ac_cv_sizeof_long |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 4339 | SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long |
| 4340 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4341 | |
| 4342 | |
| 4343 | |
| 4344 | echo $ac_n "checking whether struct stat has a st_flags field""... $ac_c" 1>&6 |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 4345 | echo "configure:4346: checking whether struct stat has a st_flags field" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4346 | if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags'+set}'`\" = set"; then |
| 4347 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4348 | else |
| 4349 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 4350 | #line 4351 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4351 | #include "confdefs.h" |
| 4352 | #include <sys/stat.h> |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 4353 | int main() { |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4354 | struct stat stat; stat.st_flags = 0; |
| 4355 | ; return 0; } |
| 4356 | EOF |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 4357 | if { (eval echo configure:4358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4358 | rm -rf conftest* |
| 4359 | e2fsprogs_cv_struct_st_flags=yes |
| 4360 | else |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 4361 | echo "configure: failed program was:" >&5 |
| 4362 | cat conftest.$ac_ext >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4363 | rm -rf conftest* |
| 4364 | e2fsprogs_cv_struct_st_flags=no |
| 4365 | fi |
| 4366 | rm -f conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4367 | fi |
| 4368 | |
| 4369 | echo "$ac_t""$e2fsprogs_cv_struct_st_flags" 1>&6 |
| 4370 | if test "$e2fsprogs_cv_struct_st_flags" = yes; then |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 4371 | echo $ac_n "checking whether st_flags field is useful""... $ac_c" 1>&6 |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 4372 | echo "configure:4373: checking whether st_flags field is useful" >&5 |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 4373 | if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags_immut'+set}'`\" = set"; then |
| 4374 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4375 | else |
| 4376 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 4377 | #line 4378 "configure" |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 4378 | #include "confdefs.h" |
| 4379 | #include <sys/stat.h> |
| 4380 | int main() { |
| 4381 | struct stat stat; stat.st_flags |= UF_IMMUTABLE; |
| 4382 | ; return 0; } |
| 4383 | EOF |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 4384 | if { (eval echo configure:4385: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 4385 | rm -rf conftest* |
| 4386 | e2fsprogs_cv_struct_st_flags_immut=yes |
| 4387 | else |
| 4388 | echo "configure: failed program was:" >&5 |
| 4389 | cat conftest.$ac_ext >&5 |
| 4390 | rm -rf conftest* |
| 4391 | e2fsprogs_cv_struct_st_flags_immut=no |
| 4392 | fi |
| 4393 | rm -f conftest* |
| 4394 | fi |
| 4395 | |
| 4396 | echo "$ac_t""$e2fsprogs_cv_struct_st_flags_immut" 1>&6 |
| 4397 | if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then |
| 4398 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4399 | #define HAVE_STAT_FLAGS 1 |
| 4400 | EOF |
| 4401 | |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 4402 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4403 | fi |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 4404 | for ac_func in chflags getrusage llseek lseek64 open64 strdup getmntinfo strcasecmp srandom fchown mallinfo fdatasync |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4405 | do |
| 4406 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 4407 | echo "configure:4408: checking for $ac_func" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4408 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 4409 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4410 | else |
| 4411 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 4412 | #line 4413 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4413 | #include "confdefs.h" |
| 4414 | /* System header to define __stub macros and hopefully few prototypes, |
| 4415 | which can conflict with char $ac_func(); below. */ |
| 4416 | #include <assert.h> |
| 4417 | /* Override any gcc2 internal prototype to avoid an error. */ |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 4418 | /* We use char because int might match the return type of a gcc2 |
| 4419 | builtin and then its argument prototype would still apply. */ |
| 4420 | char $ac_func(); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4421 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 4422 | int main() { |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4423 | |
| 4424 | /* The GNU C library defines this for functions which it implements |
| 4425 | to always fail with ENOSYS. Some functions are actually named |
| 4426 | something starting with __ and the normal name is an alias. */ |
| 4427 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 4428 | choke me |
| 4429 | #else |
| 4430 | $ac_func(); |
| 4431 | #endif |
| 4432 | |
| 4433 | ; return 0; } |
| 4434 | EOF |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 4435 | if { (eval echo configure:4436: \"$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] | 4436 | rm -rf conftest* |
| 4437 | eval "ac_cv_func_$ac_func=yes" |
| 4438 | else |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 4439 | echo "configure: failed program was:" >&5 |
| 4440 | cat conftest.$ac_ext >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4441 | rm -rf conftest* |
| 4442 | eval "ac_cv_func_$ac_func=no" |
| 4443 | fi |
| 4444 | rm -f conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4445 | fi |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 4446 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4447 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 4448 | echo "$ac_t""yes" 1>&6 |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 4449 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4450 | cat >> confdefs.h <<EOF |
| 4451 | #define $ac_tr_func 1 |
| 4452 | EOF |
| 4453 | |
| 4454 | else |
| 4455 | echo "$ac_t""no" 1>&6 |
| 4456 | fi |
| 4457 | done |
| 4458 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 4459 | echo $ac_n "checking ino_t defined by sys/types.h""... $ac_c" 1>&6 |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 4460 | echo "configure:4461: checking ino_t defined by sys/types.h" >&5 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 4461 | if eval "test \"`echo '$''{'e2fsprogs_cv_ino_t'+set}'`\" = set"; then |
| 4462 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4463 | else |
| 4464 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 4465 | #line 4466 "configure" |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 4466 | #include "confdefs.h" |
| 4467 | #include <sys/types.h> |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 4468 | int main() { |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 4469 | ino_t ino; ino = 0; |
| 4470 | ; return 0; } |
| 4471 | EOF |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 4472 | if { (eval echo configure:4473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 4473 | rm -rf conftest* |
| 4474 | e2fsprogs_cv_ino_t=yes |
| 4475 | else |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 4476 | echo "configure: failed program was:" >&5 |
| 4477 | cat conftest.$ac_ext >&5 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 4478 | rm -rf conftest* |
| 4479 | e2fsprogs_cv_ino_t=no |
| 4480 | fi |
| 4481 | rm -f conftest* |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 4482 | fi |
| 4483 | |
| 4484 | echo "$ac_t""$e2fsprogs_cv_ino_t" 1>&6 |
| 4485 | if test "$e2fsprogs_cv_ino_t" = yes; then |
| 4486 | cat >> confdefs.h <<\EOF |
| 4487 | #define HAVE_INO_T 1 |
| 4488 | EOF |
| 4489 | |
| 4490 | fi |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 4491 | SOCKET_LIB='' |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 4492 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 4493 | echo "configure:4494: checking for socket in -lsocket" >&5 |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 4494 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
| 4495 | 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] | 4496 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4497 | else |
| 4498 | ac_save_LIBS="$LIBS" |
| 4499 | LIBS="-lsocket $LIBS" |
| 4500 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 4501 | #line 4502 "configure" |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 4502 | #include "confdefs.h" |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 4503 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4504 | /* We use char because int might match the return type of a gcc2 |
| 4505 | builtin and then its argument prototype would still apply. */ |
| 4506 | char socket(); |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 4507 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 4508 | int main() { |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 4509 | socket() |
| 4510 | ; return 0; } |
| 4511 | EOF |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 4512 | if { (eval echo configure:4513: \"$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] | 4513 | rm -rf conftest* |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 4514 | eval "ac_cv_lib_$ac_lib_var=yes" |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 4515 | else |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 4516 | echo "configure: failed program was:" >&5 |
| 4517 | cat conftest.$ac_ext >&5 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 4518 | rm -rf conftest* |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 4519 | eval "ac_cv_lib_$ac_lib_var=no" |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 4520 | fi |
| 4521 | rm -f conftest* |
| 4522 | LIBS="$ac_save_LIBS" |
| 4523 | |
| 4524 | fi |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 4525 | 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] | 4526 | echo "$ac_t""yes" 1>&6 |
| 4527 | SOCKET_LIB=-lsocket |
| 4528 | else |
| 4529 | echo "$ac_t""no" 1>&6 |
| 4530 | fi |
| 4531 | |
| 4532 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4533 | echo $ac_n "checking for optreset""... $ac_c" 1>&6 |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 4534 | echo "configure:4535: checking for optreset" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4535 | if eval "test \"`echo '$''{'ac_cv_have_optreset'+set}'`\" = set"; then |
| 4536 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4537 | else |
| 4538 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 4539 | #line 4540 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4540 | #include "confdefs.h" |
| 4541 | #include <unistd.h> |
| 4542 | EOF |
| 4543 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4544 | egrep "optreset" >/dev/null 2>&1; then |
| 4545 | rm -rf conftest* |
| 4546 | ac_cv_have_optreset=yes |
| 4547 | else |
| 4548 | rm -rf conftest* |
| 4549 | ac_cv_have_optreset=no |
| 4550 | fi |
| 4551 | rm -f conftest* |
| 4552 | |
| 4553 | fi |
| 4554 | echo "$ac_t""$ac_cv_have_optreset" 1>&6 |
| 4555 | if test $ac_cv_have_optreset = yes; then |
| 4556 | cat >> confdefs.h <<\EOF |
| 4557 | #define HAVE_OPTRESET 1 |
| 4558 | EOF |
| 4559 | |
| 4560 | fi |
Theodore Ts'o | 8f3f29d | 2000-02-11 05:04:44 +0000 | [diff] [blame] | 4561 | case "$host_os" in |
| 4562 | linux*) |
| 4563 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4564 | #define HAVE_EXT2_IOCTLS 1 |
| 4565 | EOF |
| 4566 | |
Theodore Ts'o | 8f3f29d | 2000-02-11 05:04:44 +0000 | [diff] [blame] | 4567 | ;; |
| 4568 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4569 | case "$host_os" in |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 4570 | linux* | gnu*) |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 4571 | if test "$prefix" = NONE -a "$root_prefix" = NONE ; then |
| 4572 | root_prefix=""; |
| 4573 | echo "On $host_os systems, root_prefix defaults to ''" |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 4574 | fi |
| 4575 | ;; |
| 4576 | esac |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 4577 | case "$host_os" in |
| 4578 | linux* | gnu*) |
| 4579 | if test "$prefix" = NONE ; then |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 4580 | prefix="/usr"; |
| 4581 | echo "On $host_os systems, prefix defaults to /usr" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4582 | fi |
| 4583 | ;; |
| 4584 | esac |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 4585 | if test "$root_prefix" = NONE ; then |
Theodore Ts'o | ffe1991 | 1998-04-08 06:05:49 +0000 | [diff] [blame] | 4586 | if test "$prefix" = NONE ; then |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 4587 | root_prefix="$ac_default_prefix" |
| 4588 | else |
| 4589 | root_prefix="$prefix" |
| 4590 | fi |
| 4591 | fi |
| 4592 | |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 4593 | echo $ac_n "checking whether linker accepts -static""... $ac_c" 1>&6 |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 4594 | echo "configure:4595: checking whether linker accepts -static" >&5 |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 4595 | if eval "test \"`echo '$''{'ac_cv_e2fsprogs_use_static'+set}'`\" = set"; then |
| 4596 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4597 | else |
| 4598 | SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static" |
| 4599 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 4600 | #line 4601 "configure" |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 4601 | #include "confdefs.h" |
| 4602 | #include <stdio.h> |
| 4603 | int main() { |
| 4604 | fflush(stdout); |
| 4605 | ; return 0; } |
| 4606 | EOF |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 4607 | if { (eval echo configure:4608: \"$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] | 4608 | rm -rf conftest* |
| 4609 | ac_cv_e2fsprogs_use_static=yes |
| 4610 | else |
| 4611 | echo "configure: failed program was:" >&5 |
| 4612 | cat conftest.$ac_ext >&5 |
| 4613 | rm -rf conftest* |
| 4614 | ac_cv_e2fsprogs_use_static=no |
| 4615 | fi |
| 4616 | rm -f conftest* |
| 4617 | LDFLAGS=$SAVE_LDFLAGS |
| 4618 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4619 | |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 4620 | case "$host_os" in |
| 4621 | solaris2.*) |
| 4622 | ac_cv_e2fsprogs_use_static=no |
| 4623 | ;; |
| 4624 | esac |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 4625 | echo "$ac_t""$ac_cv_e2fsprogs_use_static" 1>&6 |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 4626 | LDFLAG_STATIC= |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 4627 | if test $ac_cv_e2fsprogs_use_static = yes; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4628 | LDFLAG_STATIC=-static |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 4629 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4630 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4631 | SS_DIR=`cd ${srcdir}/lib/ss; pwd` |
| 4632 | ET_DIR=`cd ${srcdir}/lib/et; pwd` |
| 4633 | |
| 4634 | |
| 4635 | if test "$cross_compiling" = yes ; then |
| 4636 | DO_TEST_SUITE= |
| 4637 | else |
| 4638 | DO_TEST_SUITE=check |
| 4639 | fi |
| 4640 | |
| 4641 | test -d lib || mkdir lib |
| 4642 | test -d include || mkdir include |
| 4643 | test -d include/linux || mkdir include/linux |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 4644 | test -d include/asm || mkdir include/asm |
Theodore Ts'o | bc21007 | 1997-06-17 05:41:36 +0000 | [diff] [blame] | 4645 | rmakefile= |
| 4646 | if test -d ${srcdir}/resize ; then |
| 4647 | rmakefile=resize/Makefile |
| 4648 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4649 | trap '' 1 2 15 |
| 4650 | cat > confcache <<\EOF |
| 4651 | # This file is a shell script that caches the results of configure |
| 4652 | # tests run on this system so they can be shared between configure |
| 4653 | # scripts and configure runs. It is not useful on other systems. |
| 4654 | # If it contains results you don't want to keep, you may remove or edit it. |
| 4655 | # |
| 4656 | # By default, configure uses ./config.cache as the cache file, |
| 4657 | # creating it if it does not exist already. You can give configure |
| 4658 | # the --cache-file=FILE option to use a different cache file; that is |
| 4659 | # what configure does when it calls configure scripts in |
| 4660 | # subdirectories, so they share the cache. |
| 4661 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
| 4662 | # config.status only pays attention to the cache file if you give it the |
| 4663 | # --recheck option to rerun configure. |
| 4664 | # |
| 4665 | EOF |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 4666 | # The following way of writing the cache mishandles newlines in values, |
| 4667 | # but we know of no workaround that is simple, portable, and efficient. |
| 4668 | # So, don't put newlines in cache variables' values. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4669 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 4670 | # and sets the high bit in the cache file unless we assign to the vars. |
| 4671 | (set) 2>&1 | |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 4672 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 4673 | *ac_space=\ *) |
| 4674 | # `set' does not quote correctly, so add quotes (double-quote substitution |
| 4675 | # turns \\\\ into \\, and sed turns \\ into \). |
| 4676 | sed -n \ |
| 4677 | -e "s/'/'\\\\''/g" \ |
| 4678 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
| 4679 | ;; |
| 4680 | *) |
| 4681 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 4682 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
| 4683 | ;; |
| 4684 | esac >> confcache |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4685 | if cmp -s $cache_file confcache; then |
| 4686 | : |
| 4687 | else |
| 4688 | if test -w $cache_file; then |
| 4689 | echo "updating cache $cache_file" |
| 4690 | cat confcache > $cache_file |
| 4691 | else |
| 4692 | echo "not updating unwritable cache $cache_file" |
| 4693 | fi |
| 4694 | fi |
| 4695 | rm -f confcache |
| 4696 | |
| 4697 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
| 4698 | |
| 4699 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 4700 | # Let make expand exec_prefix. |
| 4701 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 4702 | |
| 4703 | # Any assignment to VPATH causes Sun make to only execute |
| 4704 | # the first set of double-colon rules, so remove it if not needed. |
| 4705 | # If there is a colon in the path, we need to keep it. |
| 4706 | if test "x$srcdir" = x.; then |
| 4707 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
| 4708 | fi |
| 4709 | |
| 4710 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
| 4711 | |
| 4712 | # Transform confdefs.h into DEFS. |
| 4713 | # Protect against shell expansion while executing Makefile rules. |
| 4714 | # Protect against Makefile macro expansion. |
| 4715 | cat > conftest.defs <<\EOF |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 4716 | 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] | 4717 | s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g |
| 4718 | s%\[%\\&%g |
| 4719 | s%\]%\\&%g |
| 4720 | s%\$%$$%g |
| 4721 | EOF |
| 4722 | DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` |
| 4723 | rm -f conftest.defs |
| 4724 | |
| 4725 | |
| 4726 | # Without the "./", some shells look in PATH for config.status. |
| 4727 | : ${CONFIG_STATUS=./config.status} |
| 4728 | |
| 4729 | echo creating $CONFIG_STATUS |
| 4730 | rm -f $CONFIG_STATUS |
| 4731 | cat > $CONFIG_STATUS <<EOF |
| 4732 | #! /bin/sh |
| 4733 | # Generated automatically by configure. |
| 4734 | # Run this file to recreate the current configuration. |
| 4735 | # This directory was configured as follows, |
| 4736 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 4737 | # |
| 4738 | # $0 $ac_configure_args |
| 4739 | # |
| 4740 | # Compiler output produced by configure, useful for debugging |
| 4741 | # configure, is in ./config.log if it exists. |
| 4742 | |
| 4743 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
| 4744 | for ac_option |
| 4745 | do |
| 4746 | case "\$ac_option" in |
| 4747 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 4748 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
| 4749 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
| 4750 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 4751 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4752 | exit 0 ;; |
| 4753 | -help | --help | --hel | --he | --h) |
| 4754 | echo "\$ac_cs_usage"; exit 0 ;; |
| 4755 | *) echo "\$ac_cs_usage"; exit 1 ;; |
| 4756 | esac |
| 4757 | done |
| 4758 | |
| 4759 | ac_given_srcdir=$srcdir |
| 4760 | ac_given_INSTALL="$INSTALL" |
| 4761 | |
Theodore Ts'o | 44339bd | 1997-10-15 02:47:20 +0000 | [diff] [blame] | 4762 | 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] | 4763 | lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile |
| 4764 | misc/Makefile e2fsck/Makefile debugfs/Makefile tests/Makefile |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4765 | tests/progs/Makefile $rmakefile doc/Makefile |
| 4766 | intl/Makefile po/Makefile.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 4767 | EOF |
| 4768 | cat >> $CONFIG_STATUS <<EOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4769 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 4770 | # Protect against being on the right side of a sed subst in config.status. |
| 4771 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
| 4772 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4773 | $ac_vpsub |
| 4774 | $extrasub |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 4775 | s%@SHELL@%$SHELL%g |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4776 | s%@CFLAGS@%$CFLAGS%g |
| 4777 | s%@CPPFLAGS@%$CPPFLAGS%g |
| 4778 | s%@CXXFLAGS@%$CXXFLAGS%g |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 4779 | s%@FFLAGS@%$FFLAGS%g |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4780 | s%@DEFS@%$DEFS%g |
| 4781 | s%@LDFLAGS@%$LDFLAGS%g |
| 4782 | s%@LIBS@%$LIBS%g |
| 4783 | s%@exec_prefix@%$exec_prefix%g |
| 4784 | s%@prefix@%$prefix%g |
| 4785 | s%@program_transform_name@%$program_transform_name%g |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 4786 | s%@bindir@%$bindir%g |
| 4787 | s%@sbindir@%$sbindir%g |
| 4788 | s%@libexecdir@%$libexecdir%g |
| 4789 | s%@datadir@%$datadir%g |
| 4790 | s%@sysconfdir@%$sysconfdir%g |
| 4791 | s%@sharedstatedir@%$sharedstatedir%g |
| 4792 | s%@localstatedir@%$localstatedir%g |
| 4793 | s%@libdir@%$libdir%g |
| 4794 | s%@includedir@%$includedir%g |
| 4795 | s%@oldincludedir@%$oldincludedir%g |
| 4796 | s%@infodir@%$infodir%g |
| 4797 | s%@mandir@%$mandir%g |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4798 | /@MCONFIG@/r $MCONFIG |
| 4799 | s%@MCONFIG@%%g |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 4800 | s%@E2FSPROGS_YEAR@%$E2FSPROGS_YEAR%g |
| 4801 | s%@E2FSPROGS_MONTH@%$E2FSPROGS_MONTH%g |
| 4802 | s%@E2FSPROGS_VERSION@%$E2FSPROGS_VERSION%g |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 4803 | s%@host@%$host%g |
| 4804 | s%@host_alias@%$host_alias%g |
| 4805 | s%@host_cpu@%$host_cpu%g |
| 4806 | s%@host_vendor@%$host_vendor%g |
| 4807 | s%@host_os@%$host_os%g |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 4808 | s%@CC@%$CC%g |
| 4809 | s%@LD@%$LD%g |
| 4810 | s%@CCOPTS@%$CCOPTS%g |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4811 | s%@CPP@%$CPP%g |
| 4812 | s%@LINUX_INCLUDE@%$LINUX_INCLUDE%g |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4813 | s%@DLL_CMT@%$DLL_CMT%g |
| 4814 | /@MAKEFILE_DLL@/r $MAKEFILE_DLL |
| 4815 | s%@MAKEFILE_DLL@%%g |
| 4816 | s%@ELF_CMT@%$ELF_CMT%g |
| 4817 | /@MAKEFILE_ELF@/r $MAKEFILE_ELF |
| 4818 | s%@MAKEFILE_ELF@%%g |
| 4819 | s%@BSDLIB_CMT@%$BSDLIB_CMT%g |
| 4820 | /@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB |
| 4821 | s%@MAKEFILE_BSDLIB@%%g |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4822 | s%@PACKAGE@%$PACKAGE%g |
| 4823 | s%@VERSION@%$VERSION%g |
| 4824 | s%@SET_MAKE@%$SET_MAKE%g |
| 4825 | s%@RANLIB@%$RANLIB%g |
| 4826 | s%@ALLOCA@%$ALLOCA%g |
| 4827 | s%@USE_NLS@%$USE_NLS%g |
| 4828 | s%@MSGFMT@%$MSGFMT%g |
| 4829 | s%@GMSGFMT@%$GMSGFMT%g |
| 4830 | s%@XGETTEXT@%$XGETTEXT%g |
| 4831 | s%@GENCAT@%$GENCAT%g |
| 4832 | s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g |
| 4833 | s%@CATALOGS@%$CATALOGS%g |
| 4834 | s%@CATOBJEXT@%$CATOBJEXT%g |
| 4835 | s%@DATADIRNAME@%$DATADIRNAME%g |
| 4836 | s%@GMOFILES@%$GMOFILES%g |
| 4837 | s%@INSTOBJEXT@%$INSTOBJEXT%g |
| 4838 | s%@INTLDEPS@%$INTLDEPS%g |
| 4839 | s%@INTLLIBS@%$INTLLIBS%g |
| 4840 | s%@INTLOBJS@%$INTLOBJS%g |
| 4841 | s%@POFILES@%$POFILES%g |
| 4842 | s%@POSUB@%$POSUB%g |
| 4843 | s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g |
| 4844 | s%@GT_NO@%$GT_NO%g |
| 4845 | s%@GT_YES@%$GT_YES%g |
| 4846 | s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g |
| 4847 | s%@l@%$l%g |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4848 | s%@PROFILE_CMT@%$PROFILE_CMT%g |
| 4849 | /@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE |
| 4850 | s%@MAKEFILE_PROFILE@%%g |
| 4851 | s%@CHECKER_CMT@%$CHECKER_CMT%g |
| 4852 | /@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER |
| 4853 | s%@MAKEFILE_CHECKER@%%g |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 4854 | s%@LIB_EXT@%$LIB_EXT%g |
| 4855 | s%@STATIC_LIB_EXT@%$STATIC_LIB_EXT%g |
| 4856 | s%@PROFILED_LIB_EXT@%$PROFILED_LIB_EXT%g |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4857 | s%@W@%$W%g |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 4858 | s%@E2FSCK_TYPE@%$E2FSCK_TYPE%g |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 4859 | s%@FSCK_PROG@%$FSCK_PROG%g |
| 4860 | s%@FSCK_MAN@%$FSCK_MAN%g |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4861 | /@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY |
| 4862 | s%@MAKEFILE_LIBRARY@%%g |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 4863 | s%@BINARY_TYPE@%$BINARY_TYPE%g |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4864 | s%@LN@%$LN%g |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 4865 | s%@LN_S@%$LN_S%g |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4866 | s%@MV@%$MV%g |
| 4867 | s%@CP@%$CP%g |
| 4868 | s%@RM@%$RM%g |
| 4869 | s%@CHMOD@%$CHMOD%g |
| 4870 | s%@AWK@%$AWK%g |
| 4871 | s%@SED@%$SED%g |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 4872 | s%@PERL@%$PERL%g |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4873 | s%@build@%$build%g |
| 4874 | s%@build_alias@%$build_alias%g |
| 4875 | s%@build_cpu@%$build_cpu%g |
| 4876 | s%@build_vendor@%$build_vendor%g |
| 4877 | s%@build_os@%$build_os%g |
| 4878 | s%@AR@%$AR%g |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4879 | s%@STRIP@%$STRIP%g |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4880 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 4881 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4882 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 4883 | s%@BUILD_CC@%$BUILD_CC%g |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4884 | s%@SIZEOF_SHORT@%$SIZEOF_SHORT%g |
| 4885 | s%@SIZEOF_INT@%$SIZEOF_INT%g |
| 4886 | s%@SIZEOF_LONG@%$SIZEOF_LONG%g |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 4887 | s%@SIZEOF_LONG_LONG@%$SIZEOF_LONG_LONG%g |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 4888 | s%@SOCKET_LIB@%$SOCKET_LIB%g |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 4889 | s%@root_prefix@%$root_prefix%g |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 4890 | s%@LDFLAG_STATIC@%$LDFLAG_STATIC%g |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4891 | s%@SS_DIR@%$SS_DIR%g |
| 4892 | s%@ET_DIR@%$ET_DIR%g |
| 4893 | s%@DO_TEST_SUITE@%$DO_TEST_SUITE%g |
| 4894 | |
| 4895 | CEOF |
| 4896 | EOF |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 4897 | |
| 4898 | cat >> $CONFIG_STATUS <<\EOF |
| 4899 | |
| 4900 | # Split the substitutions into bite-sized pieces for seds with |
| 4901 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 4902 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
| 4903 | ac_file=1 # Number of current file. |
| 4904 | ac_beg=1 # First line for current file. |
| 4905 | ac_end=$ac_max_sed_cmds # Line after last line for current file. |
| 4906 | ac_more_lines=: |
| 4907 | ac_sed_cmds="" |
| 4908 | while $ac_more_lines; do |
| 4909 | if test $ac_beg -gt 1; then |
| 4910 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
| 4911 | else |
| 4912 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
| 4913 | fi |
| 4914 | if test ! -s conftest.s$ac_file; then |
| 4915 | ac_more_lines=false |
| 4916 | rm -f conftest.s$ac_file |
| 4917 | else |
| 4918 | if test -z "$ac_sed_cmds"; then |
| 4919 | ac_sed_cmds="sed -f conftest.s$ac_file" |
| 4920 | else |
| 4921 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
| 4922 | fi |
| 4923 | ac_file=`expr $ac_file + 1` |
| 4924 | ac_beg=$ac_end |
| 4925 | ac_end=`expr $ac_end + $ac_max_sed_cmds` |
| 4926 | fi |
| 4927 | done |
| 4928 | if test -z "$ac_sed_cmds"; then |
| 4929 | ac_sed_cmds=cat |
| 4930 | fi |
| 4931 | EOF |
| 4932 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4933 | cat >> $CONFIG_STATUS <<EOF |
| 4934 | |
Theodore Ts'o | 44339bd | 1997-10-15 02:47:20 +0000 | [diff] [blame] | 4935 | 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] | 4936 | lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile |
| 4937 | misc/Makefile e2fsck/Makefile debugfs/Makefile tests/Makefile |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4938 | tests/progs/Makefile $rmakefile doc/Makefile |
| 4939 | intl/Makefile po/Makefile.in"} |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4940 | EOF |
| 4941 | cat >> $CONFIG_STATUS <<\EOF |
| 4942 | 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] | 4943 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4944 | case "$ac_file" in |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 4945 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4946 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 4947 | *) ac_file_in="${ac_file}.in" ;; |
| 4948 | esac |
| 4949 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 4950 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4951 | |
| 4952 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 4953 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 4954 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 4955 | # The file is in a subdirectory. |
| 4956 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
| 4957 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
| 4958 | # A "../" for each directory in $ac_dir_suffix. |
| 4959 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
| 4960 | else |
| 4961 | ac_dir_suffix= ac_dots= |
| 4962 | fi |
| 4963 | |
| 4964 | case "$ac_given_srcdir" in |
| 4965 | .) srcdir=. |
| 4966 | if test -z "$ac_dots"; then top_srcdir=. |
| 4967 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
| 4968 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
| 4969 | *) # Relative path. |
| 4970 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
| 4971 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 4972 | esac |
| 4973 | |
| 4974 | case "$ac_given_INSTALL" in |
| 4975 | [/$]*) INSTALL="$ac_given_INSTALL" ;; |
| 4976 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
| 4977 | esac |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 4978 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4979 | echo creating "$ac_file" |
| 4980 | rm -f "$ac_file" |
| 4981 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
| 4982 | case "$ac_file" in |
| 4983 | *Makefile*) ac_comsub="1i\\ |
| 4984 | # $configure_input" ;; |
| 4985 | *) ac_comsub= ;; |
| 4986 | esac |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 4987 | |
| 4988 | 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] | 4989 | sed -e "$ac_comsub |
| 4990 | s%@configure_input@%$configure_input%g |
| 4991 | s%@srcdir@%$srcdir%g |
| 4992 | s%@top_srcdir@%$top_srcdir%g |
| 4993 | s%@INSTALL@%$INSTALL%g |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 4994 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4995 | fi; done |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 4996 | rm -f conftest.s* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4997 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 4998 | EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4999 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5000 | cat >> $CONFIG_STATUS <<EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5001 | ac_sources="$nls_cv_header_libgt" |
| 5002 | ac_dests="$nls_cv_header_intl" |
| 5003 | EOF |
| 5004 | |
| 5005 | cat >> $CONFIG_STATUS <<\EOF |
| 5006 | srcdir=$ac_given_srcdir |
| 5007 | while test -n "$ac_sources"; do |
| 5008 | set $ac_dests; ac_dest=$1; shift; ac_dests=$* |
| 5009 | set $ac_sources; ac_source=$1; shift; ac_sources=$* |
| 5010 | |
| 5011 | echo "linking $srcdir/$ac_source to $ac_dest" |
| 5012 | |
| 5013 | if test ! -r $srcdir/$ac_source; then |
| 5014 | { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; } |
| 5015 | fi |
| 5016 | rm -f $ac_dest |
| 5017 | |
| 5018 | # Make relative symlinks. |
| 5019 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 5020 | ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'` |
| 5021 | if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then |
| 5022 | # The dest file is in a subdirectory. |
| 5023 | test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir" |
| 5024 | ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`" |
| 5025 | # A "../" for each directory in $ac_dest_dir_suffix. |
| 5026 | ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'` |
| 5027 | else |
| 5028 | ac_dest_dir_suffix= ac_dots= |
| 5029 | fi |
| 5030 | |
| 5031 | case "$srcdir" in |
| 5032 | [/$]*) ac_rel_source="$srcdir/$ac_source" ;; |
| 5033 | *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;; |
| 5034 | esac |
| 5035 | |
| 5036 | # Make a symlink if possible; otherwise try a hard link. |
| 5037 | if ln -s $ac_rel_source $ac_dest 2>/dev/null || |
| 5038 | ln $srcdir/$ac_source $ac_dest; then : |
| 5039 | else |
| 5040 | { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; } |
| 5041 | fi |
| 5042 | done |
| 5043 | EOF |
| 5044 | cat >> $CONFIG_STATUS <<EOF |
| 5045 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5046 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5047 | EOF |
| 5048 | cat >> $CONFIG_STATUS <<\EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5049 | case "$CONFIG_FILES" in *po/Makefile.in*) |
| 5050 | sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile |
| 5051 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5052 | |
| 5053 | exit 0 |
| 5054 | EOF |
| 5055 | chmod +x $CONFIG_STATUS |
| 5056 | rm -fr confdefs* $ac_clean_files |
| 5057 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
| 5058 | |