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