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 | d21ae6c | 2003-05-05 09:00:24 -0400 | [diff] [blame] | 15 | --with-diet-libc Use diet libc" |
| 16 | ac_help="$ac_help |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 17 | --with-cc=COMPILER select compiler to use" |
| 18 | ac_help="$ac_help |
| 19 | --with-linker=LINKER select linker to use" |
| 20 | ac_help="$ac_help |
| 21 | --with-ccopts=CCOPTS select compiler command line options" |
| 22 | ac_help="$ac_help |
| 23 | --with-ldopts=LDOPTS select linker command line options" |
| 24 | ac_help="$ac_help |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 25 | --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] | 26 | ac_help="$ac_help |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 27 | --enable-compression enable EXPERIMENTAL compression support" |
| 28 | ac_help="$ac_help |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 29 | --enable-htree enable EXPERIMENTAL htree directory support" |
| 30 | ac_help="$ac_help |
| 31 | --enable-htree-clear clear htree because we don't trust e2fsck" |
| 32 | ac_help="$ac_help |
Theodore Ts'o | d21ae6c | 2003-05-05 09:00:24 -0400 | [diff] [blame] | 33 | --disable-evms don't build EVMS plugin" |
| 34 | ac_help="$ac_help |
Theodore Ts'o | a9d799a | 2002-11-08 13:50:51 -0500 | [diff] [blame] | 35 | --enable-evms-10 use EVMS 1.0 ABI (instead of EVMS 1.2)" |
| 36 | ac_help="$ac_help |
Theodore Ts'o | bb988b2 | 2003-05-13 23:32:32 -0400 | [diff] [blame] | 37 | --enable-evms-11 use EVMS 1.1 ABI (instead of EVMS 1.2)" |
Theodore Ts'o | ff6dbcc | 2002-05-24 22:44:42 -0400 | [diff] [blame] | 38 | ac_help="$ac_help |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 39 | --enable-dll-shlibs select DLL libraries" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 40 | ac_help="$ac_help |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 41 | --enable-elf-shlibs select ELF shared libraries" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 42 | ac_help="$ac_help |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 43 | --enable-bsd-shlibs select BSD shared libraries" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 44 | ac_help="$ac_help |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 45 | --enable-profile build profiling libraries" |
| 46 | ac_help="$ac_help |
| 47 | --enable-checker build checker libraries" |
| 48 | ac_help="$ac_help |
Theodore Ts'o | 782bebf | 2002-11-08 18:46:45 -0500 | [diff] [blame] | 49 | --enable-jbd-debug enable journal debugging" |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 50 | ac_help="$ac_help |
Theodore Ts'o | d21ae6c | 2003-05-05 09:00:24 -0400 | [diff] [blame] | 51 | --enable-blkid-debug enable blkid debugging" |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 52 | ac_help="$ac_help |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 53 | --enable-testio-debug enable the use of the test I/O manager for debugging" |
| 54 | ac_help="$ac_help |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 55 | --disable-swapfs disable support of legacy byte-swapped filesystems" |
| 56 | ac_help="$ac_help |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 57 | --disable-debugfs disable support of debugfs program" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 58 | ac_help="$ac_help |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 59 | --disable-imager disable support of e2image program" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 60 | ac_help="$ac_help |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 61 | --disable-resizer disable support of e2resize program" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 62 | ac_help="$ac_help |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 63 | --enable-dynamic-e2fsck build e2fsck dynamically" |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 64 | ac_help="$ac_help |
| 65 | --enable-fsck build fsck wrapper program" |
| 66 | ac_help="$ac_help |
| 67 | --enable-old-bitops Use old (non-standard but native) bitmask operations" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 68 | ac_help="$ac_help |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 69 | --with-gnu-ld assume the C compiler uses GNU ld [default=no]" |
| 70 | ac_help="$ac_help |
| 71 | --disable-rpath do not hardcode runtime library paths" |
| 72 | ac_help="$ac_help |
| 73 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib |
| 74 | --without-libiconv-prefix don't search for libiconv in includedir and libdir" |
| 75 | ac_help="$ac_help |
| 76 | --disable-nls do not use Native Language Support" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 77 | ac_help="$ac_help |
| 78 | --with-included-gettext use the GNU gettext library included here" |
| 79 | ac_help="$ac_help |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 80 | --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib |
| 81 | --without-libintl-prefix don't search for libintl in includedir and libdir" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 82 | |
| 83 | # Initialize some variables set by options. |
| 84 | # The variables have the same names as the options, with |
| 85 | # dashes changed to underlines. |
| 86 | build=NONE |
| 87 | cache_file=./config.cache |
| 88 | exec_prefix=NONE |
| 89 | host=NONE |
| 90 | no_create= |
| 91 | nonopt=NONE |
| 92 | no_recursion= |
| 93 | prefix=NONE |
| 94 | program_prefix=NONE |
| 95 | program_suffix=NONE |
| 96 | program_transform_name=s,x,x, |
| 97 | silent= |
| 98 | site= |
| 99 | srcdir= |
| 100 | target=NONE |
| 101 | verbose= |
| 102 | x_includes=NONE |
| 103 | x_libraries=NONE |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 104 | bindir='${exec_prefix}/bin' |
| 105 | sbindir='${exec_prefix}/sbin' |
| 106 | libexecdir='${exec_prefix}/libexec' |
| 107 | datadir='${prefix}/share' |
| 108 | sysconfdir='${prefix}/etc' |
| 109 | sharedstatedir='${prefix}/com' |
| 110 | localstatedir='${prefix}/var' |
| 111 | libdir='${exec_prefix}/lib' |
| 112 | includedir='${prefix}/include' |
| 113 | oldincludedir='/usr/include' |
| 114 | infodir='${prefix}/info' |
| 115 | mandir='${prefix}/man' |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 116 | |
| 117 | # Initialize some other variables. |
| 118 | subdirs= |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 119 | MFLAGS= MAKEFLAGS= |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 120 | SHELL=${CONFIG_SHELL-/bin/sh} |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 121 | # Maximum number of lines to put in a shell here document. |
| 122 | ac_max_here_lines=12 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 123 | |
| 124 | ac_prev= |
| 125 | for ac_option |
| 126 | do |
| 127 | |
| 128 | # If the previous option needs an argument, assign it. |
| 129 | if test -n "$ac_prev"; then |
| 130 | eval "$ac_prev=\$ac_option" |
| 131 | ac_prev= |
| 132 | continue |
| 133 | fi |
| 134 | |
| 135 | case "$ac_option" in |
| 136 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
| 137 | *) ac_optarg= ;; |
| 138 | esac |
| 139 | |
| 140 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 141 | |
| 142 | case "$ac_option" in |
| 143 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 144 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 145 | ac_prev=bindir ;; |
| 146 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 147 | bindir="$ac_optarg" ;; |
| 148 | |
| 149 | -build | --build | --buil | --bui | --bu) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 150 | ac_prev=build ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 151 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 152 | build="$ac_optarg" ;; |
| 153 | |
| 154 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 155 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 156 | ac_prev=cache_file ;; |
| 157 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 158 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 159 | cache_file="$ac_optarg" ;; |
| 160 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 161 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 162 | ac_prev=datadir ;; |
| 163 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 164 | | --da=*) |
| 165 | datadir="$ac_optarg" ;; |
| 166 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 167 | -disable-* | --disable-*) |
| 168 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
| 169 | # Reject names that are not valid shell variable names. |
| 170 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
| 171 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
| 172 | fi |
| 173 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 174 | eval "enable_${ac_feature}=no" ;; |
| 175 | |
| 176 | -enable-* | --enable-*) |
| 177 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
| 178 | # Reject names that are not valid shell variable names. |
| 179 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
| 180 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
| 181 | fi |
| 182 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 183 | case "$ac_option" in |
| 184 | *=*) ;; |
| 185 | *) ac_optarg=yes ;; |
| 186 | esac |
| 187 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
| 188 | |
| 189 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 190 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 191 | | --exec | --exe | --ex) |
| 192 | ac_prev=exec_prefix ;; |
| 193 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 194 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 195 | | --exec=* | --exe=* | --ex=*) |
| 196 | exec_prefix="$ac_optarg" ;; |
| 197 | |
| 198 | -gas | --gas | --ga | --g) |
| 199 | # Obsolete; use --with-gas. |
| 200 | with_gas=yes ;; |
| 201 | |
| 202 | -help | --help | --hel | --he) |
| 203 | # Omit some internal or obsolete options to make the list less imposing. |
| 204 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 205 | cat << EOF |
| 206 | Usage: configure [options] [host] |
| 207 | Options: [defaults in brackets after descriptions] |
| 208 | Configuration: |
| 209 | --cache-file=FILE cache test results in FILE |
| 210 | --help print this message |
| 211 | --no-create do not create output files |
| 212 | --quiet, --silent do not print \`checking...' messages |
| 213 | --version print the version of autoconf that created configure |
| 214 | Directory and file names: |
| 215 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 216 | [$ac_default_prefix] |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 217 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 218 | [same as prefix] |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 219 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
| 220 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
| 221 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
| 222 | --datadir=DIR read-only architecture-independent data in DIR |
| 223 | [PREFIX/share] |
| 224 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
| 225 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
| 226 | [PREFIX/com] |
| 227 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
| 228 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
| 229 | --includedir=DIR C header files in DIR [PREFIX/include] |
| 230 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
| 231 | --infodir=DIR info documentation in DIR [PREFIX/info] |
| 232 | --mandir=DIR man documentation in DIR [PREFIX/man] |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 233 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
| 234 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 235 | --program-suffix=SUFFIX append SUFFIX to installed program names |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 236 | --program-transform-name=PROGRAM |
| 237 | run sed PROGRAM on installed program names |
| 238 | EOF |
| 239 | cat << EOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 240 | Host type: |
| 241 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
| 242 | --host=HOST configure for HOST [guessed] |
| 243 | --target=TARGET configure for TARGET [TARGET=HOST] |
| 244 | Features and packages: |
| 245 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 246 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 247 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 248 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 249 | --x-includes=DIR X include files are in DIR |
| 250 | --x-libraries=DIR X library files are in DIR |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 251 | EOF |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 252 | if test -n "$ac_help"; then |
| 253 | echo "--enable and --with options recognized:$ac_help" |
| 254 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 255 | exit 0 ;; |
| 256 | |
| 257 | -host | --host | --hos | --ho) |
| 258 | ac_prev=host ;; |
| 259 | -host=* | --host=* | --hos=* | --ho=*) |
| 260 | host="$ac_optarg" ;; |
| 261 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 262 | -includedir | --includedir | --includedi | --included | --include \ |
| 263 | | --includ | --inclu | --incl | --inc) |
| 264 | ac_prev=includedir ;; |
| 265 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 266 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 267 | includedir="$ac_optarg" ;; |
| 268 | |
| 269 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 270 | ac_prev=infodir ;; |
| 271 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 272 | infodir="$ac_optarg" ;; |
| 273 | |
| 274 | -libdir | --libdir | --libdi | --libd) |
| 275 | ac_prev=libdir ;; |
| 276 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 277 | libdir="$ac_optarg" ;; |
| 278 | |
| 279 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 280 | | --libexe | --libex | --libe) |
| 281 | ac_prev=libexecdir ;; |
| 282 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 283 | | --libexe=* | --libex=* | --libe=*) |
| 284 | libexecdir="$ac_optarg" ;; |
| 285 | |
| 286 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 287 | | --localstate | --localstat | --localsta | --localst \ |
| 288 | | --locals | --local | --loca | --loc | --lo) |
| 289 | ac_prev=localstatedir ;; |
| 290 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 291 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 292 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 293 | localstatedir="$ac_optarg" ;; |
| 294 | |
| 295 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 296 | ac_prev=mandir ;; |
| 297 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 298 | mandir="$ac_optarg" ;; |
| 299 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 300 | -nfp | --nfp | --nf) |
| 301 | # Obsolete; use --without-fp. |
| 302 | with_fp=no ;; |
| 303 | |
| 304 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 305 | | --no-cr | --no-c) |
| 306 | no_create=yes ;; |
| 307 | |
| 308 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 309 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 310 | no_recursion=yes ;; |
| 311 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 312 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 313 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 314 | | --oldin | --oldi | --old | --ol | --o) |
| 315 | ac_prev=oldincludedir ;; |
| 316 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 317 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 318 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 319 | oldincludedir="$ac_optarg" ;; |
| 320 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 321 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 322 | ac_prev=prefix ;; |
| 323 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 324 | prefix="$ac_optarg" ;; |
| 325 | |
| 326 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 327 | | --program-pre | --program-pr | --program-p) |
| 328 | ac_prev=program_prefix ;; |
| 329 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 330 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 331 | program_prefix="$ac_optarg" ;; |
| 332 | |
| 333 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 334 | | --program-suf | --program-su | --program-s) |
| 335 | ac_prev=program_suffix ;; |
| 336 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 337 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 338 | program_suffix="$ac_optarg" ;; |
| 339 | |
| 340 | -program-transform-name | --program-transform-name \ |
| 341 | | --program-transform-nam | --program-transform-na \ |
| 342 | | --program-transform-n | --program-transform- \ |
| 343 | | --program-transform | --program-transfor \ |
| 344 | | --program-transfo | --program-transf \ |
| 345 | | --program-trans | --program-tran \ |
| 346 | | --progr-tra | --program-tr | --program-t) |
| 347 | ac_prev=program_transform_name ;; |
| 348 | -program-transform-name=* | --program-transform-name=* \ |
| 349 | | --program-transform-nam=* | --program-transform-na=* \ |
| 350 | | --program-transform-n=* | --program-transform-=* \ |
| 351 | | --program-transform=* | --program-transfor=* \ |
| 352 | | --program-transfo=* | --program-transf=* \ |
| 353 | | --program-trans=* | --program-tran=* \ |
| 354 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 355 | program_transform_name="$ac_optarg" ;; |
| 356 | |
| 357 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 358 | | -silent | --silent | --silen | --sile | --sil) |
| 359 | silent=yes ;; |
| 360 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 361 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 362 | ac_prev=sbindir ;; |
| 363 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 364 | | --sbi=* | --sb=*) |
| 365 | sbindir="$ac_optarg" ;; |
| 366 | |
| 367 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 368 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 369 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 370 | | --sha | --sh) |
| 371 | ac_prev=sharedstatedir ;; |
| 372 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 373 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 374 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 375 | | --sha=* | --sh=*) |
| 376 | sharedstatedir="$ac_optarg" ;; |
| 377 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 378 | -site | --site | --sit) |
| 379 | ac_prev=site ;; |
| 380 | -site=* | --site=* | --sit=*) |
| 381 | site="$ac_optarg" ;; |
| 382 | |
| 383 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 384 | ac_prev=srcdir ;; |
| 385 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 386 | srcdir="$ac_optarg" ;; |
| 387 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 388 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 389 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 390 | ac_prev=sysconfdir ;; |
| 391 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 392 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 393 | sysconfdir="$ac_optarg" ;; |
| 394 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 395 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 396 | ac_prev=target ;; |
| 397 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 398 | target="$ac_optarg" ;; |
| 399 | |
| 400 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 401 | verbose=yes ;; |
| 402 | |
| 403 | -version | --version | --versio | --versi | --vers) |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 404 | echo "configure generated by autoconf version 2.13" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 405 | exit 0 ;; |
| 406 | |
| 407 | -with-* | --with-*) |
| 408 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
| 409 | # Reject names that are not valid shell variable names. |
| 410 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
| 411 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
| 412 | fi |
| 413 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 414 | case "$ac_option" in |
| 415 | *=*) ;; |
| 416 | *) ac_optarg=yes ;; |
| 417 | esac |
| 418 | eval "with_${ac_package}='$ac_optarg'" ;; |
| 419 | |
| 420 | -without-* | --without-*) |
| 421 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
| 422 | # Reject names that are not valid shell variable names. |
| 423 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
| 424 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
| 425 | fi |
| 426 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 427 | eval "with_${ac_package}=no" ;; |
| 428 | |
| 429 | --x) |
| 430 | # Obsolete; use --with-x. |
| 431 | with_x=yes ;; |
| 432 | |
| 433 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 434 | | --x-incl | --x-inc | --x-in | --x-i) |
| 435 | ac_prev=x_includes ;; |
| 436 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 437 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 438 | x_includes="$ac_optarg" ;; |
| 439 | |
| 440 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 441 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 442 | ac_prev=x_libraries ;; |
| 443 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 444 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 445 | x_libraries="$ac_optarg" ;; |
| 446 | |
| 447 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
| 448 | ;; |
| 449 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 450 | *) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 451 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
| 452 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
| 453 | fi |
| 454 | if test "x$nonopt" != xNONE; then |
| 455 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
| 456 | fi |
| 457 | nonopt="$ac_option" |
| 458 | ;; |
| 459 | |
| 460 | esac |
| 461 | done |
| 462 | |
| 463 | if test -n "$ac_prev"; then |
| 464 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
| 465 | fi |
| 466 | |
| 467 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
| 468 | |
| 469 | # File descriptor usage: |
| 470 | # 0 standard input |
| 471 | # 1 file creation |
| 472 | # 2 errors and warnings |
| 473 | # 3 some systems may open it to /dev/tty |
| 474 | # 4 used on the Kubota Titan |
| 475 | # 6 checking for... messages and results |
| 476 | # 5 compiler messages saved in config.log |
| 477 | if test "$silent" = yes; then |
| 478 | exec 6>/dev/null |
| 479 | else |
| 480 | exec 6>&1 |
| 481 | fi |
| 482 | exec 5>./config.log |
| 483 | |
| 484 | echo "\ |
| 485 | This file contains any messages produced by compilers while |
| 486 | running configure, to aid debugging if configure makes a mistake. |
| 487 | " 1>&5 |
| 488 | |
| 489 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 490 | # Also quote any args containing shell metacharacters. |
| 491 | ac_configure_args= |
| 492 | for ac_arg |
| 493 | do |
| 494 | case "$ac_arg" in |
| 495 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 496 | | --no-cr | --no-c) ;; |
| 497 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 498 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
| 499 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
| 500 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 501 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
| 502 | esac |
| 503 | done |
| 504 | |
| 505 | # NLS nuisances. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 506 | # Only set these to C if already set. These must not be set unconditionally |
| 507 | # because not all systems understand e.g. LANG=C (notably SCO). |
| 508 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
| 509 | # Non-C LC_CTYPE values break the ctype check. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 510 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 511 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
| 512 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
| 513 | 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] | 514 | |
| 515 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 516 | rm -rf conftest* confdefs.h |
| 517 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 518 | echo > confdefs.h |
| 519 | |
| 520 | # A filename unique to this package, relative to the directory that |
| 521 | # configure is in, which we can look for to find out if srcdir is correct. |
| 522 | ac_unique_file=version.h |
| 523 | |
| 524 | # Find the source files, if location was not specified. |
| 525 | if test -z "$srcdir"; then |
| 526 | ac_srcdir_defaulted=yes |
| 527 | # Try the directory containing this script, then its parent. |
| 528 | ac_prog=$0 |
| 529 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
| 530 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
| 531 | srcdir=$ac_confdir |
| 532 | if test ! -r $srcdir/$ac_unique_file; then |
| 533 | srcdir=.. |
| 534 | fi |
| 535 | else |
| 536 | ac_srcdir_defaulted=no |
| 537 | fi |
| 538 | if test ! -r $srcdir/$ac_unique_file; then |
| 539 | if test "$ac_srcdir_defaulted" = yes; then |
| 540 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
| 541 | else |
| 542 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
| 543 | fi |
| 544 | fi |
| 545 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
| 546 | |
| 547 | # Prefer explicitly selected file to automatically selected ones. |
| 548 | if test -z "$CONFIG_SITE"; then |
| 549 | if test "x$prefix" != xNONE; then |
| 550 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 551 | else |
| 552 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 553 | fi |
| 554 | fi |
| 555 | for ac_site_file in $CONFIG_SITE; do |
| 556 | if test -r "$ac_site_file"; then |
| 557 | echo "loading site script $ac_site_file" |
| 558 | . "$ac_site_file" |
| 559 | fi |
| 560 | done |
| 561 | |
| 562 | if test -r "$cache_file"; then |
| 563 | echo "loading cache $cache_file" |
| 564 | . $cache_file |
| 565 | else |
| 566 | echo "creating cache $cache_file" |
| 567 | > $cache_file |
| 568 | fi |
| 569 | |
| 570 | ac_ext=c |
| 571 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 572 | ac_cpp='$CPP $CPPFLAGS' |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 573 | 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] | 574 | 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] | 575 | cross_compiling=$ac_cv_prog_cc_cross |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 576 | |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 577 | ac_exeext= |
| 578 | ac_objext=o |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 579 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
| 580 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
| 581 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
| 582 | ac_n= ac_c=' |
| 583 | ' ac_t=' ' |
| 584 | else |
| 585 | ac_n=-n ac_c= ac_t= |
| 586 | fi |
| 587 | else |
| 588 | ac_n= ac_c='\c' ac_t= |
| 589 | fi |
| 590 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 591 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
| 592 | if test "${with_gnu_ld+set}" = set; then |
| 593 | withval="$with_gnu_ld" |
| 594 | test "$withval" = no || with_gnu_ld=yes |
| 595 | else |
| 596 | with_gnu_ld=no |
| 597 | fi |
| 598 | |
| 599 | ac_prog=ld |
| 600 | if test "$GCC" = yes; then |
| 601 | # Check if gcc -print-prog-name=ld gives a path. |
| 602 | echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 603 | echo "configure:604: checking for ld used by GCC" >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 604 | case $host in |
| 605 | *-*-mingw*) |
| 606 | # gcc leaves a trailing carriage return which upsets mingw |
| 607 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 608 | *) |
| 609 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 610 | esac |
| 611 | case $ac_prog in |
| 612 | # Accept absolute paths. |
| 613 | [\\/]* | [A-Za-z]:[\\/]*) |
| 614 | re_direlt='/[^/][^/]*/\.\./' |
| 615 | # Canonicalize the path of ld |
| 616 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
| 617 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 618 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
| 619 | done |
| 620 | test -z "$LD" && LD="$ac_prog" |
| 621 | ;; |
| 622 | "") |
| 623 | # If it fails, then pretend we aren't using GCC. |
| 624 | ac_prog=ld |
| 625 | ;; |
| 626 | *) |
| 627 | # If it is relative, then search for the first ld in PATH. |
| 628 | with_gnu_ld=unknown |
| 629 | ;; |
| 630 | esac |
| 631 | elif test "$with_gnu_ld" = yes; then |
| 632 | echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 633 | echo "configure:634: checking for GNU ld" >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 634 | else |
| 635 | echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 636 | echo "configure:637: checking for non-GNU ld" >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 637 | fi |
| 638 | if eval "test \"`echo '$''{'acl_cv_path_LD'+set}'`\" = set"; then |
| 639 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 640 | else |
| 641 | if test -z "$LD"; then |
| 642 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
| 643 | for ac_dir in $PATH; do |
| 644 | test -z "$ac_dir" && ac_dir=. |
| 645 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 646 | acl_cv_path_LD="$ac_dir/$ac_prog" |
| 647 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 648 | # but apparently some GNU ld's only accept -v. |
| 649 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 650 | if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
| 651 | test "$with_gnu_ld" != no && break |
| 652 | else |
| 653 | test "$with_gnu_ld" != yes && break |
| 654 | fi |
| 655 | fi |
| 656 | done |
| 657 | IFS="$ac_save_ifs" |
| 658 | else |
| 659 | acl_cv_path_LD="$LD" # Let the user override the test with a path. |
| 660 | fi |
| 661 | fi |
| 662 | |
| 663 | LD="$acl_cv_path_LD" |
| 664 | if test -n "$LD"; then |
| 665 | echo "$ac_t""$LD" 1>&6 |
| 666 | else |
| 667 | echo "$ac_t""no" 1>&6 |
| 668 | fi |
| 669 | test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } |
| 670 | echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 671 | echo "configure:672: checking if the linker ($LD) is GNU ld" >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 672 | if eval "test \"`echo '$''{'acl_cv_prog_gnu_ld'+set}'`\" = set"; then |
| 673 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 674 | else |
| 675 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 676 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then |
| 677 | acl_cv_prog_gnu_ld=yes |
| 678 | else |
| 679 | acl_cv_prog_gnu_ld=no |
| 680 | fi |
| 681 | fi |
| 682 | |
| 683 | echo "$ac_t""$acl_cv_prog_gnu_ld" 1>&6 |
| 684 | with_gnu_ld=$acl_cv_prog_gnu_ld |
| 685 | |
| 686 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 687 | |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 688 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 689 | MCONFIG=./MCONFIG |
| 690 | |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 691 | BINARY_TYPE=bin |
| 692 | E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \ |
| 693 | | awk '{print $3}' | tr \" " " | awk '{print $1}'` |
| 694 | DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \ |
| 695 | | tr \" " "` |
Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 696 | E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'` |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 697 | MONTH=`echo $DATE | awk -F- '{print $2}'` |
| 698 | YEAR=`echo $DATE | awk -F- '{print $3}'` |
| 699 | |
Theodore Ts'o | 14790ed | 1999-01-12 23:32:52 +0000 | [diff] [blame] | 700 | if expr $YEAR ">" 1900 > /dev/null ; then |
| 701 | E2FSPROGS_YEAR=$YEAR |
| 702 | elif expr $YEAR ">" 90 >/dev/null ; then |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 703 | E2FSPROGS_YEAR=19$YEAR |
| 704 | else |
| 705 | E2FSPROGS_YEAR=20$YEAR |
| 706 | fi |
| 707 | |
| 708 | case $MONTH in |
| 709 | Jan) E2FSPROGS_MONTH="January" ;; |
| 710 | Feb) E2FSPROGS_MONTH="February" ;; |
| 711 | Mar) E2FSPROGS_MONTH="March" ;; |
| 712 | Apr) E2FSPROGS_MONTH="April" ;; |
| 713 | May) E2FSPROGS_MONTH="May" ;; |
| 714 | Jun) E2FSPROGS_MONTH="June" ;; |
| 715 | Jul) E2FSPROGS_MONTH="July" ;; |
| 716 | Aug) E2FSPROGS_MONTH="August" ;; |
| 717 | Sep) E2FSPROGS_MONTH="September" ;; |
| 718 | Oct) E2FSPROGS_MONTH="October" ;; |
| 719 | Nov) E2FSPROGS_MONTH="November" ;; |
| 720 | Dec) E2FSPROGS_MONTH="December" ;; |
| 721 | *) echo "Unknown month $MONTH??" ;; |
| 722 | esac |
| 723 | |
| 724 | unset DATE MONTH YEAR |
| 725 | echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" |
| 726 | echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" |
| 727 | |
| 728 | |
| 729 | |
Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 730 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 731 | ac_aux_dir= |
| 732 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 733 | if test -f $ac_dir/install-sh; then |
| 734 | ac_aux_dir=$ac_dir |
| 735 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 736 | break |
| 737 | elif test -f $ac_dir/install.sh; then |
| 738 | ac_aux_dir=$ac_dir |
| 739 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 740 | break |
| 741 | fi |
| 742 | done |
| 743 | if test -z "$ac_aux_dir"; then |
| 744 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
| 745 | fi |
| 746 | ac_config_guess=$ac_aux_dir/config.guess |
| 747 | ac_config_sub=$ac_aux_dir/config.sub |
| 748 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
| 749 | |
| 750 | |
| 751 | # Make sure we can run config.sub. |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 752 | 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] | 753 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
| 754 | fi |
| 755 | |
| 756 | echo $ac_n "checking host system type""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 757 | echo "configure:758: checking host system type" >&5 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 758 | |
| 759 | host_alias=$host |
| 760 | case "$host_alias" in |
| 761 | NONE) |
| 762 | case $nonopt in |
| 763 | NONE) |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 764 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 765 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
| 766 | fi ;; |
| 767 | *) host_alias=$nonopt ;; |
| 768 | esac ;; |
| 769 | esac |
| 770 | |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 771 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 772 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 773 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 774 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 775 | echo "$ac_t""$host" 1>&6 |
| 776 | |
Theodore Ts'o | d21ae6c | 2003-05-05 09:00:24 -0400 | [diff] [blame] | 777 | EVMS_CMT= |
| 778 | |
| 779 | # Check whether --with-diet-libc or --without-diet-libc was given. |
| 780 | if test "${with_diet_libc+set}" = set; then |
| 781 | withval="$with_diet_libc" |
| 782 | CC="diet cc -nostdinc" |
| 783 | EVMS_CMT="#" |
| 784 | echo "$ac_t""CC=$CC" 1>&6 |
| 785 | fi |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 786 | # Check whether --with-cc or --without-cc was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 787 | if test "${with_cc+set}" = set; then |
| 788 | withval="$with_cc" |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 789 | echo "$ac_t""CC=$withval" 1>&6 |
| 790 | CC=$withval |
| 791 | else |
| 792 | if test -z "$CC" ; then CC=cc; fi |
| 793 | echo "$ac_t""CC defaults to $CC" 1>&6 |
| 794 | fi |
| 795 | export CC |
| 796 | |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 797 | # Extract the first word of "gcc", so it can be a program name with args. |
| 798 | set dummy gcc; ac_word=$2 |
| 799 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 800 | echo "configure:801: checking for $ac_word" >&5 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 801 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 802 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 803 | else |
| 804 | if test -n "$CC"; then |
| 805 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 806 | else |
| 807 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 808 | ac_dummy="$PATH" |
| 809 | for ac_dir in $ac_dummy; do |
| 810 | test -z "$ac_dir" && ac_dir=. |
| 811 | if test -f $ac_dir/$ac_word; then |
| 812 | ac_cv_prog_CC="gcc" |
| 813 | break |
| 814 | fi |
| 815 | done |
| 816 | IFS="$ac_save_ifs" |
| 817 | fi |
| 818 | fi |
| 819 | CC="$ac_cv_prog_CC" |
| 820 | if test -n "$CC"; then |
| 821 | echo "$ac_t""$CC" 1>&6 |
| 822 | else |
| 823 | echo "$ac_t""no" 1>&6 |
| 824 | fi |
| 825 | |
| 826 | if test -z "$CC"; then |
| 827 | # Extract the first word of "cc", so it can be a program name with args. |
| 828 | set dummy cc; ac_word=$2 |
| 829 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 830 | echo "configure:831: checking for $ac_word" >&5 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 831 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 832 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 833 | else |
| 834 | if test -n "$CC"; then |
| 835 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 836 | else |
| 837 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 838 | ac_prog_rejected=no |
| 839 | ac_dummy="$PATH" |
| 840 | for ac_dir in $ac_dummy; do |
| 841 | test -z "$ac_dir" && ac_dir=. |
| 842 | if test -f $ac_dir/$ac_word; then |
| 843 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
| 844 | ac_prog_rejected=yes |
| 845 | continue |
| 846 | fi |
| 847 | ac_cv_prog_CC="cc" |
| 848 | break |
| 849 | fi |
| 850 | done |
| 851 | IFS="$ac_save_ifs" |
| 852 | if test $ac_prog_rejected = yes; then |
| 853 | # We found a bogon in the path, so make sure we never use it. |
| 854 | set dummy $ac_cv_prog_CC |
| 855 | shift |
| 856 | if test $# -gt 0; then |
| 857 | # We chose a different compiler from the bogus one. |
| 858 | # However, it has the same basename, so the bogon will be chosen |
| 859 | # first if we set CC to just the basename; use the full file name. |
| 860 | shift |
| 861 | set dummy "$ac_dir/$ac_word" "$@" |
| 862 | shift |
| 863 | ac_cv_prog_CC="$@" |
| 864 | fi |
| 865 | fi |
| 866 | fi |
| 867 | fi |
| 868 | CC="$ac_cv_prog_CC" |
| 869 | if test -n "$CC"; then |
| 870 | echo "$ac_t""$CC" 1>&6 |
| 871 | else |
| 872 | echo "$ac_t""no" 1>&6 |
| 873 | fi |
| 874 | |
| 875 | if test -z "$CC"; then |
| 876 | case "`uname -s`" in |
| 877 | *win32* | *WIN32*) |
| 878 | # Extract the first word of "cl", so it can be a program name with args. |
| 879 | set dummy cl; ac_word=$2 |
| 880 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 881 | echo "configure:882: checking for $ac_word" >&5 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 882 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 883 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 884 | else |
| 885 | if test -n "$CC"; then |
| 886 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 887 | else |
| 888 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 889 | ac_dummy="$PATH" |
| 890 | for ac_dir in $ac_dummy; do |
| 891 | test -z "$ac_dir" && ac_dir=. |
| 892 | if test -f $ac_dir/$ac_word; then |
| 893 | ac_cv_prog_CC="cl" |
| 894 | break |
| 895 | fi |
| 896 | done |
| 897 | IFS="$ac_save_ifs" |
| 898 | fi |
| 899 | fi |
| 900 | CC="$ac_cv_prog_CC" |
| 901 | if test -n "$CC"; then |
| 902 | echo "$ac_t""$CC" 1>&6 |
| 903 | else |
| 904 | echo "$ac_t""no" 1>&6 |
| 905 | fi |
| 906 | ;; |
| 907 | esac |
| 908 | fi |
| 909 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
| 910 | fi |
| 911 | |
| 912 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 913 | echo "configure:914: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 914 | |
| 915 | ac_ext=c |
| 916 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 917 | ac_cpp='$CPP $CPPFLAGS' |
| 918 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 919 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 920 | cross_compiling=$ac_cv_prog_cc_cross |
| 921 | |
| 922 | cat > conftest.$ac_ext << EOF |
| 923 | |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 924 | #line 925 "configure" |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 925 | #include "confdefs.h" |
| 926 | |
| 927 | main(){return(0);} |
| 928 | EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 929 | if { (eval echo configure:930: \"$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] | 930 | ac_cv_prog_cc_works=yes |
| 931 | # If we can't run a trivial program, we are probably using a cross compiler. |
| 932 | if (./conftest; exit) 2>/dev/null; then |
| 933 | ac_cv_prog_cc_cross=no |
| 934 | else |
| 935 | ac_cv_prog_cc_cross=yes |
| 936 | fi |
| 937 | else |
| 938 | echo "configure: failed program was:" >&5 |
| 939 | cat conftest.$ac_ext >&5 |
| 940 | ac_cv_prog_cc_works=no |
| 941 | fi |
| 942 | rm -fr conftest* |
| 943 | ac_ext=c |
| 944 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 945 | ac_cpp='$CPP $CPPFLAGS' |
| 946 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 947 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 948 | cross_compiling=$ac_cv_prog_cc_cross |
| 949 | |
| 950 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
| 951 | if test $ac_cv_prog_cc_works = no; then |
| 952 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
| 953 | fi |
| 954 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 955 | echo "configure:956: 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] | 956 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
| 957 | cross_compiling=$ac_cv_prog_cc_cross |
| 958 | |
| 959 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 960 | echo "configure:961: checking whether we are using GNU C" >&5 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 961 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
| 962 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 963 | else |
| 964 | cat > conftest.c <<EOF |
| 965 | #ifdef __GNUC__ |
| 966 | yes; |
| 967 | #endif |
| 968 | EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 969 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:970: \"$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] | 970 | ac_cv_prog_gcc=yes |
| 971 | else |
| 972 | ac_cv_prog_gcc=no |
| 973 | fi |
| 974 | fi |
| 975 | |
| 976 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
| 977 | |
| 978 | if test $ac_cv_prog_gcc = yes; then |
| 979 | GCC=yes |
| 980 | else |
| 981 | GCC= |
| 982 | fi |
| 983 | |
| 984 | ac_test_CFLAGS="${CFLAGS+set}" |
| 985 | ac_save_CFLAGS="$CFLAGS" |
| 986 | CFLAGS= |
| 987 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 988 | echo "configure:989: checking whether ${CC-cc} accepts -g" >&5 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 989 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
| 990 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 991 | else |
| 992 | echo 'void f(){}' > conftest.c |
| 993 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
| 994 | ac_cv_prog_cc_g=yes |
| 995 | else |
| 996 | ac_cv_prog_cc_g=no |
| 997 | fi |
| 998 | rm -f conftest* |
| 999 | |
| 1000 | fi |
| 1001 | |
| 1002 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
| 1003 | if test "$ac_test_CFLAGS" = set; then |
| 1004 | CFLAGS="$ac_save_CFLAGS" |
| 1005 | elif test $ac_cv_prog_cc_g = yes; then |
| 1006 | if test "$GCC" = yes; then |
| 1007 | CFLAGS="-g -O2" |
| 1008 | else |
| 1009 | CFLAGS="-g" |
| 1010 | fi |
| 1011 | else |
| 1012 | if test "$GCC" = yes; then |
| 1013 | CFLAGS="-O2" |
| 1014 | else |
| 1015 | CFLAGS= |
| 1016 | fi |
| 1017 | fi |
| 1018 | |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1019 | # Check whether --with-linker or --without-linker was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1020 | if test "${with_linker+set}" = set; then |
| 1021 | withval="$with_linker" |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1022 | echo "$ac_t""LD=$withval" 1>&6 |
| 1023 | LD=$withval |
| 1024 | else |
| 1025 | if test -z "$LD" ; then LD=$CC; fi |
| 1026 | echo "$ac_t""LD defaults to $LD" 1>&6 |
| 1027 | fi |
| 1028 | export LD |
| 1029 | |
| 1030 | # Check whether --with-ccopts or --without-ccopts was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1031 | if test "${with_ccopts+set}" = set; then |
| 1032 | withval="$with_ccopts" |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1033 | echo "$ac_t""CCOPTS is $withval" 1>&6 |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 1034 | CFLAGS=$withval |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1035 | fi |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1036 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 1037 | echo "configure:1038: checking how to run the C preprocessor" >&5 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1038 | # On Suns, sometimes $CPP names a directory. |
| 1039 | if test -n "$CPP" && test -d "$CPP"; then |
| 1040 | CPP= |
| 1041 | fi |
| 1042 | if test -z "$CPP"; then |
| 1043 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
| 1044 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1045 | else |
| 1046 | # This must be in double quotes, not single quotes, because CPP may get |
| 1047 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
| 1048 | CPP="${CC-cc} -E" |
| 1049 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 1050 | # not just through cpp. |
| 1051 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 1052 | #line 1053 "configure" |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1053 | #include "confdefs.h" |
| 1054 | #include <assert.h> |
| 1055 | Syntax Error |
| 1056 | EOF |
| 1057 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 1058 | { (eval echo configure:1059: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1059 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1060 | if test -z "$ac_err"; then |
| 1061 | : |
| 1062 | else |
| 1063 | echo "$ac_err" >&5 |
| 1064 | echo "configure: failed program was:" >&5 |
| 1065 | cat conftest.$ac_ext >&5 |
| 1066 | rm -rf conftest* |
| 1067 | CPP="${CC-cc} -E -traditional-cpp" |
| 1068 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 1069 | #line 1070 "configure" |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1070 | #include "confdefs.h" |
| 1071 | #include <assert.h> |
| 1072 | Syntax Error |
| 1073 | EOF |
| 1074 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 1075 | { (eval echo configure:1076: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1076 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1077 | if test -z "$ac_err"; then |
| 1078 | : |
| 1079 | else |
| 1080 | echo "$ac_err" >&5 |
| 1081 | echo "configure: failed program was:" >&5 |
| 1082 | cat conftest.$ac_ext >&5 |
| 1083 | rm -rf conftest* |
| 1084 | CPP="${CC-cc} -nologo -E" |
| 1085 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 1086 | #line 1087 "configure" |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1087 | #include "confdefs.h" |
| 1088 | #include <assert.h> |
| 1089 | Syntax Error |
| 1090 | EOF |
| 1091 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 1092 | { (eval echo configure:1093: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1093 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1094 | if test -z "$ac_err"; then |
| 1095 | : |
| 1096 | else |
| 1097 | echo "$ac_err" >&5 |
| 1098 | echo "configure: failed program was:" >&5 |
| 1099 | cat conftest.$ac_ext >&5 |
| 1100 | rm -rf conftest* |
| 1101 | CPP=/lib/cpp |
| 1102 | fi |
| 1103 | rm -f conftest* |
| 1104 | fi |
| 1105 | rm -f conftest* |
| 1106 | fi |
| 1107 | rm -f conftest* |
| 1108 | ac_cv_prog_CPP="$CPP" |
| 1109 | fi |
| 1110 | CPP="$ac_cv_prog_CPP" |
| 1111 | else |
| 1112 | ac_cv_prog_CPP="$CPP" |
| 1113 | fi |
| 1114 | echo "$ac_t""$CPP" 1>&6 |
| 1115 | |
| 1116 | ac_safe=`echo "linux/fs.h" | sed 'y%./+-%__p_%'` |
| 1117 | echo $ac_n "checking for linux/fs.h""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 1118 | echo "configure:1119: checking for linux/fs.h" >&5 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1119 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 1120 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1121 | else |
| 1122 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 1123 | #line 1124 "configure" |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1124 | #include "confdefs.h" |
| 1125 | #include <linux/fs.h> |
| 1126 | EOF |
| 1127 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 1128 | { (eval echo configure:1129: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1129 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1130 | if test -z "$ac_err"; then |
| 1131 | rm -rf conftest* |
| 1132 | eval "ac_cv_header_$ac_safe=yes" |
| 1133 | else |
| 1134 | echo "$ac_err" >&5 |
| 1135 | echo "configure: failed program was:" >&5 |
| 1136 | cat conftest.$ac_ext >&5 |
| 1137 | rm -rf conftest* |
| 1138 | eval "ac_cv_header_$ac_safe=no" |
| 1139 | fi |
| 1140 | rm -f conftest* |
| 1141 | fi |
| 1142 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 1143 | echo "$ac_t""yes" 1>&6 |
| 1144 | linux_headers=yes |
| 1145 | else |
| 1146 | echo "$ac_t""no" 1>&6 |
| 1147 | linux_headers=no |
| 1148 | fi |
| 1149 | |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 1150 | if test "$linux_headers" != yes; then |
| 1151 | LINUX_INCLUDE='-I$(top_builddir)/include' |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1152 | fi |
| 1153 | |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 1154 | LIB_EXT=.a |
| 1155 | STATIC_LIB_EXT=.a |
| 1156 | PROFILE_LIB_EXT=.a |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1157 | # Check whether --with-ldopts or --without-ldopts was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1158 | if test "${with_ldopts+set}" = set; then |
| 1159 | withval="$with_ldopts" |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1160 | echo "$ac_t""LDFLAGS is $withval" 1>&6 |
| 1161 | LDFLAGS=$withval |
| 1162 | else |
| 1163 | LDFLAGS= |
| 1164 | fi |
| 1165 | |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 1166 | # Check whether --with-root-prefix or --without-root-prefix was given. |
| 1167 | if test "${with_root_prefix+set}" = set; then |
| 1168 | withval="$with_root_prefix" |
| 1169 | root_prefix=$withval |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 1170 | else |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 1171 | root_prefix=NONE |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 1172 | fi |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 1173 | # Check whether --enable-compression or --disable-compression was given. |
| 1174 | if test "${enable_compression+set}" = set; then |
| 1175 | enableval="$enable_compression" |
| 1176 | if test "$enableval" = "no" |
| 1177 | then |
| 1178 | echo "Disabling compression support" |
| 1179 | else |
| 1180 | cat >> confdefs.h <<\EOF |
| 1181 | #define ENABLE_COMPRESSION 1 |
| 1182 | EOF |
| 1183 | |
| 1184 | echo "Enabling compression support" |
| 1185 | echo "WARNING: Compression support is experimental" |
| 1186 | fi |
| 1187 | |
| 1188 | else |
| 1189 | echo "Disabling compression support by default" |
| 1190 | |
| 1191 | fi |
| 1192 | |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 1193 | # Check whether --enable-htree or --disable-htree was given. |
| 1194 | if test "${enable_htree+set}" = set; then |
| 1195 | enableval="$enable_htree" |
| 1196 | if test "$enableval" = "no" |
| 1197 | then |
| 1198 | HTREE_CMT=# |
| 1199 | echo "Disabling htree directory support" |
| 1200 | else |
| 1201 | HTREE_CMT= |
| 1202 | cat >> confdefs.h <<\EOF |
| 1203 | #define ENABLE_HTREE 1 |
| 1204 | EOF |
| 1205 | |
| 1206 | echo "Enabling htree directory support" |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 1207 | fi |
| 1208 | |
| 1209 | else |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 1210 | HTREE_CMT= |
| 1211 | cat >> confdefs.h <<\EOF |
| 1212 | #define ENABLE_HTREE 1 |
| 1213 | EOF |
| 1214 | |
| 1215 | echo "Enabling htree directory support by default" |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 1216 | |
| 1217 | fi |
| 1218 | |
| 1219 | |
| 1220 | # Check whether --enable-htree-clear or --disable-htree-clear was given. |
| 1221 | if test "${enable_htree_clear+set}" = set; then |
| 1222 | enableval="$enable_htree_clear" |
| 1223 | if test "$enableval" = "no" |
| 1224 | then |
| 1225 | HTREE_CLR_CMT=# |
| 1226 | echo "Disabling htree clearing" |
| 1227 | else |
| 1228 | HTREE_CLR_CMT= |
| 1229 | cat >> confdefs.h <<\EOF |
| 1230 | #define ENABLE_HTREE_CLEAR 1 |
| 1231 | EOF |
| 1232 | |
| 1233 | echo "Enabling htree clearing" |
| 1234 | fi |
| 1235 | |
| 1236 | else |
| 1237 | HTREE_CLR_CMT=# |
| 1238 | echo "Disabling htree clearing by default" |
| 1239 | |
| 1240 | fi |
| 1241 | |
| 1242 | |
Theodore Ts'o | d21ae6c | 2003-05-05 09:00:24 -0400 | [diff] [blame] | 1243 | # Check whether --enable-evms or --disable-evms was given. |
| 1244 | if test "${enable_evms+set}" = set; then |
| 1245 | enableval="$enable_evms" |
| 1246 | if test "$enableval" != "no" |
| 1247 | then |
| 1248 | EVMS_CMT="#" |
| 1249 | echo "Disabling EVMS plugin" |
| 1250 | fi |
| 1251 | |
| 1252 | fi |
| 1253 | |
Theodore Ts'o | a9d799a | 2002-11-08 13:50:51 -0500 | [diff] [blame] | 1254 | EVMS_ABI_CODE=120 |
| 1255 | # Check whether --enable-evms-10 or --disable-evms-10 was given. |
| 1256 | if test "${enable_evms_10+set}" = set; then |
| 1257 | enableval="$enable_evms_10" |
| 1258 | if test "$enableval" != "no" |
Theodore Ts'o | ff6dbcc | 2002-05-24 22:44:42 -0400 | [diff] [blame] | 1259 | then |
Theodore Ts'o | a9d799a | 2002-11-08 13:50:51 -0500 | [diff] [blame] | 1260 | EVMS_ABI_CODE=100 |
Theodore Ts'o | ff6dbcc | 2002-05-24 22:44:42 -0400 | [diff] [blame] | 1261 | echo "Enabling EVMS 1.0.0 ABI" |
| 1262 | fi |
| 1263 | |
Theodore Ts'o | a9d799a | 2002-11-08 13:50:51 -0500 | [diff] [blame] | 1264 | fi |
Theodore Ts'o | ff6dbcc | 2002-05-24 22:44:42 -0400 | [diff] [blame] | 1265 | |
Theodore Ts'o | a9d799a | 2002-11-08 13:50:51 -0500 | [diff] [blame] | 1266 | # Check whether --enable-evms-11 or --disable-evms-11 was given. |
| 1267 | if test "${enable_evms_11+set}" = set; then |
| 1268 | enableval="$enable_evms_11" |
| 1269 | if test "$enableval" != "no" |
| 1270 | then |
| 1271 | EVMS_ABI_CODE=110 |
| 1272 | echo "Enabling EVMS 1.1.0 ABI" |
| 1273 | fi |
| 1274 | |
| 1275 | fi |
| 1276 | |
| 1277 | if test "$EVMS_ABI_CODE" = "120" |
| 1278 | then |
| 1279 | echo "Using EVMS 1.2.0 ABI by default" |
Theodore Ts'o | ff6dbcc | 2002-05-24 22:44:42 -0400 | [diff] [blame] | 1280 | fi |
| 1281 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1282 | # Check whether --enable-dll-shlibs or --disable-dll-shlibs was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1283 | if test "${enable_dll_shlibs+set}" = set; then |
| 1284 | enableval="$enable_dll_shlibs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1285 | if test "$enableval" = "no" |
| 1286 | then |
| 1287 | DLL_CMT=# |
| 1288 | MAKEFILE_DLL=/dev/null |
| 1289 | echo "Disabling DLL shared libraries" |
| 1290 | else |
| 1291 | DLL_CMT= |
| 1292 | MAKEFILE_DLL=$srcdir/lib/Makefile.dll-lib |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1293 | BINARY_TYPE=dllbin |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 1294 | LIB_EXT=.sa |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1295 | echo "Enabling DLL shared libraries" |
| 1296 | fi |
| 1297 | |
| 1298 | else |
| 1299 | MAKEFILE_DLL=/dev/null |
| 1300 | DLL_CMT=# |
| 1301 | echo "Disabling DLL shared libraries by default" |
| 1302 | |
| 1303 | fi |
| 1304 | |
| 1305 | |
| 1306 | |
| 1307 | # Check whether --enable-elf-shlibs or --disable-elf-shlibs was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1308 | if test "${enable_elf_shlibs+set}" = set; then |
| 1309 | enableval="$enable_elf_shlibs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1310 | if test "$enableval" = "no" |
| 1311 | then |
| 1312 | ELF_CMT=# |
| 1313 | MAKEFILE_ELF=/dev/null |
| 1314 | echo "Disabling ELF shared libraries" |
| 1315 | else |
| 1316 | ELF_CMT= |
| 1317 | MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib |
Theodore Ts'o | f5955dd | 2000-10-25 02:38:39 +0000 | [diff] [blame] | 1318 | case "$host_os" in |
| 1319 | solaris2.*) |
| 1320 | MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib |
| 1321 | ;; |
| 1322 | esac |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1323 | BINARY_TYPE=elfbin |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 1324 | LIB_EXT=.so |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1325 | echo "Enabling ELF shared libraries" |
| 1326 | fi |
| 1327 | |
| 1328 | else |
| 1329 | MAKEFILE_ELF=/dev/null |
| 1330 | ELF_CMT=# |
| 1331 | echo "Disabling ELF shared libraries by default" |
| 1332 | |
| 1333 | fi |
| 1334 | |
| 1335 | |
| 1336 | |
| 1337 | # Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1338 | if test "${enable_bsd_shlibs+set}" = set; then |
| 1339 | enableval="$enable_bsd_shlibs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1340 | if test "$enableval" = "no" |
| 1341 | then |
| 1342 | BSDLIB_CMT=# |
| 1343 | MAKEFILE_BSDLIB=/dev/null |
| 1344 | echo "Disabling BSD shared libraries" |
| 1345 | else |
| 1346 | BSDLIB_CMT= |
| 1347 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 1348 | LIB_EXT=.so |
Theodore Ts'o | e1f0722 | 2003-03-14 02:25:36 -0500 | [diff] [blame] | 1349 | case "$host_os" in |
Theodore Ts'o | aa75ecc | 2003-03-17 10:01:22 -0500 | [diff] [blame] | 1350 | darwin*) |
Theodore Ts'o | e1f0722 | 2003-03-14 02:25:36 -0500 | [diff] [blame] | 1351 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib |
| 1352 | LIB_EXT=.dylib |
| 1353 | ;; |
| 1354 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1355 | echo "Enabling BSD shared libraries" |
| 1356 | fi |
| 1357 | |
| 1358 | else |
| 1359 | MAKEFILE_BSDLIB=/dev/null |
| 1360 | BSDLIB_CMT=# |
| 1361 | echo "Disabling BSD shared libraries by default" |
| 1362 | |
| 1363 | fi |
| 1364 | |
| 1365 | |
| 1366 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1367 | # Check whether --enable-profile or --disable-profile was given. |
| 1368 | if test "${enable_profile+set}" = set; then |
| 1369 | enableval="$enable_profile" |
| 1370 | if test "$enableval" = "no" |
| 1371 | then |
| 1372 | PROFILE_CMT=# |
| 1373 | MAKEFILE_PROFILE=/dev/null |
| 1374 | echo "Disabling profiling libraries" |
| 1375 | else |
| 1376 | PROFILE_CMT= |
| 1377 | MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile |
| 1378 | PROFILED_LIB_EXT=_p.a |
| 1379 | echo "Building profiling libraries" |
| 1380 | fi |
| 1381 | |
| 1382 | else |
| 1383 | PROFILE_CMT=# |
| 1384 | MAKEFILE_PROFILE=/dev/null |
| 1385 | echo "Disabling profiling libraries by default" |
| 1386 | |
| 1387 | fi |
| 1388 | |
| 1389 | |
| 1390 | |
| 1391 | # Check whether --enable-checker or --disable-checker was given. |
| 1392 | if test "${enable_checker+set}" = set; then |
| 1393 | enableval="$enable_checker" |
| 1394 | if test "$enableval" = "no" |
| 1395 | then |
| 1396 | CHECKER_CMT=# |
| 1397 | MAKEFILE_CHECKER=/dev/null |
| 1398 | echo "Disabling checker libraries" |
| 1399 | else |
| 1400 | CHECKER_CMT= |
| 1401 | MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker |
| 1402 | echo "Building checker libraries" |
| 1403 | fi |
| 1404 | |
| 1405 | else |
| 1406 | CHECKER_CMT=# |
| 1407 | MAKEFILE_CHECKER=/dev/null |
| 1408 | echo "Disabling checker libraries by default" |
| 1409 | |
| 1410 | fi |
| 1411 | |
| 1412 | |
| 1413 | |
| 1414 | |
| 1415 | |
| 1416 | |
Theodore Ts'o | 782bebf | 2002-11-08 18:46:45 -0500 | [diff] [blame] | 1417 | # Check whether --enable-jbd-debug or --disable-jbd-debug was given. |
| 1418 | if test "${enable_jbd_debug+set}" = set; then |
| 1419 | enableval="$enable_jbd_debug" |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 1420 | if test "$enableval" = "no" |
| 1421 | then |
| 1422 | echo "Disabling journal debugging" |
| 1423 | else |
| 1424 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 8cf9333 | 2001-12-16 02:23:36 -0500 | [diff] [blame] | 1425 | #define CONFIG_JBD_DEBUG 1 |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 1426 | EOF |
| 1427 | |
| 1428 | echo "Enabling journal debugging" |
| 1429 | fi |
| 1430 | |
| 1431 | else |
| 1432 | echo "Disabling journal debugging by default" |
| 1433 | |
| 1434 | fi |
| 1435 | |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 1436 | # Check whether --enable-blkid-debug or --disable-blkid-debug was given. |
| 1437 | if test "${enable_blkid_debug+set}" = set; then |
| 1438 | enableval="$enable_blkid_debug" |
| 1439 | if test "$enableval" = "no" |
| 1440 | then |
| 1441 | echo "Disabling blkid debugging" |
| 1442 | else |
| 1443 | cat >> confdefs.h <<\EOF |
| 1444 | #define CONFIG_BLKID_DEBUG 1 |
| 1445 | EOF |
| 1446 | |
| 1447 | echo "Enabling blkid debugging" |
| 1448 | fi |
| 1449 | |
| 1450 | else |
| 1451 | echo "Disabling blkid debugging by default" |
| 1452 | |
| 1453 | fi |
| 1454 | |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 1455 | # Check whether --enable-testio-debug or --disable-testio-debug was given. |
| 1456 | if test "${enable_testio_debug+set}" = set; then |
| 1457 | enableval="$enable_testio_debug" |
| 1458 | if test "$enableval" = "no" |
| 1459 | then |
| 1460 | echo "Disabling testio debugging" |
| 1461 | else |
| 1462 | cat >> confdefs.h <<\EOF |
| 1463 | #define CONFIG_TESTIO_DEBUG 1 |
| 1464 | EOF |
| 1465 | |
| 1466 | echo "Enabling testio debugging" |
| 1467 | fi |
| 1468 | |
| 1469 | else |
| 1470 | echo "Disabling testio debugging by default" |
| 1471 | |
| 1472 | fi |
| 1473 | |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 1474 | # Check whether --enable-swapfs or --disable-swapfs was given. |
| 1475 | if test "${enable_swapfs+set}" = set; then |
| 1476 | enableval="$enable_swapfs" |
| 1477 | if test "$enableval" = "no" |
| 1478 | then |
Theodore Ts'o | feb44c6 | 2002-11-08 14:55:38 -0500 | [diff] [blame] | 1479 | SWAPFS_CMT=# |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 1480 | echo "Disabling swapfs support" |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 1481 | else |
Theodore Ts'o | feb44c6 | 2002-11-08 14:55:38 -0500 | [diff] [blame] | 1482 | SWAPFS_CMT= |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 1483 | cat >> confdefs.h <<\EOF |
| 1484 | #define ENABLE_SWAPFS 1 |
| 1485 | EOF |
| 1486 | |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 1487 | echo "Enabling swapfs support" |
| 1488 | fi |
| 1489 | |
| 1490 | else |
Theodore Ts'o | feb44c6 | 2002-11-08 14:55:38 -0500 | [diff] [blame] | 1491 | SWAPFS_CMT= |
| 1492 | echo "Enabling swapfs support by default" |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 1493 | cat >> confdefs.h <<\EOF |
| 1494 | #define ENABLE_SWAPFS 1 |
| 1495 | EOF |
| 1496 | |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 1497 | |
| 1498 | fi |
| 1499 | |
Theodore Ts'o | feb44c6 | 2002-11-08 14:55:38 -0500 | [diff] [blame] | 1500 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1501 | # Check whether --enable-debugfs or --disable-debugfs was given. |
| 1502 | if test "${enable_debugfs+set}" = set; then |
| 1503 | enableval="$enable_debugfs" |
| 1504 | if test "$enableval" = "no" |
| 1505 | then |
| 1506 | echo "Disabling debugfs support" |
| 1507 | DEBUGFS_CMT="#" |
| 1508 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1509 | DEBUGFS_CMT= |
| 1510 | echo "Enabling debugfs support" |
| 1511 | fi |
| 1512 | |
| 1513 | else |
| 1514 | echo "Enabling debugfs support by default" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1515 | DEBUGFS_CMT= |
| 1516 | |
| 1517 | fi |
| 1518 | |
| 1519 | |
| 1520 | # Check whether --enable-imager or --disable-imager was given. |
| 1521 | if test "${enable_imager+set}" = set; then |
| 1522 | enableval="$enable_imager" |
| 1523 | if test "$enableval" = "no" |
| 1524 | then |
| 1525 | echo "Disabling e2image support" |
| 1526 | IMAGER_CMT="#" |
| 1527 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1528 | IMAGER_CMT= |
| 1529 | echo "Enabling e2image support" |
| 1530 | fi |
| 1531 | |
| 1532 | else |
| 1533 | echo "Enabling e2image support by default" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1534 | IMAGER_CMT= |
| 1535 | |
| 1536 | fi |
| 1537 | |
| 1538 | |
| 1539 | # Check whether --enable-resizer or --disable-resizer was given. |
| 1540 | if test "${enable_resizer+set}" = set; then |
| 1541 | enableval="$enable_resizer" |
| 1542 | if test "$enableval" = "no" |
| 1543 | then |
| 1544 | echo "Disabling e2resize support" |
| 1545 | RESIZER_CMT="#" |
| 1546 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1547 | RESIZER_CMT= |
| 1548 | echo "Enabling e2resize support" |
| 1549 | fi |
| 1550 | |
| 1551 | else |
| 1552 | echo "Enabling e2resize support by default" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1553 | RESIZER_CMT= |
| 1554 | |
| 1555 | fi |
| 1556 | |
| 1557 | |
| 1558 | # Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given. |
| 1559 | if test "${enable_dynamic_e2fsck+set}" = set; then |
| 1560 | enableval="$enable_dynamic_e2fsck" |
| 1561 | if test "$enableval" = "no" |
| 1562 | then |
| 1563 | E2FSCK_TYPE=static |
| 1564 | echo "Building e2fsck statically" |
| 1565 | else |
| 1566 | E2FSCK_TYPE=shared |
| 1567 | echo "Building e2fsck dynamically" |
| 1568 | fi |
| 1569 | |
| 1570 | else |
| 1571 | E2FSCK_TYPE=static |
| 1572 | echo "Building e2fsck statically by default" |
| 1573 | |
| 1574 | fi |
| 1575 | |
| 1576 | |
| 1577 | # Check whether --enable-fsck or --disable-fsck was given. |
| 1578 | if test "${enable_fsck+set}" = set; then |
| 1579 | enableval="$enable_fsck" |
| 1580 | if test "$enableval" = "no" |
| 1581 | then |
| 1582 | FSCK_PROG='' FSCK_MAN='' |
| 1583 | echo "Not building fsck wrapper" |
| 1584 | else |
| 1585 | FSCK_PROG=fsck FSCK_MAN=fsck.8 |
| 1586 | echo "Building fsck wrapper" |
| 1587 | fi |
| 1588 | |
| 1589 | else |
| 1590 | case "$host_os" in |
| 1591 | gnu*) |
| 1592 | FSCK_PROG='' FSCK_MAN='' |
| 1593 | echo "Not building fsck wrapper by default" |
| 1594 | ;; |
| 1595 | *) |
| 1596 | FSCK_PROG=fsck FSCK_MAN=fsck.8 |
| 1597 | echo "Building fsck wrapper by default" |
| 1598 | esac |
| 1599 | |
| 1600 | fi |
| 1601 | |
| 1602 | |
| 1603 | |
| 1604 | MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library |
| 1605 | |
| 1606 | # Check whether --enable-old-bitops or --disable-old-bitops was given. |
| 1607 | if test "${enable_old_bitops+set}" = set; then |
| 1608 | enableval="$enable_old_bitops" |
| 1609 | if test "$enableval" = "no" |
| 1610 | then |
| 1611 | echo "Using new (standard) bitmask operations" |
| 1612 | else |
| 1613 | cat >> confdefs.h <<\EOF |
| 1614 | #define EXT2_OLD_BITOPS 1 |
| 1615 | EOF |
| 1616 | |
| 1617 | echo "Using old (native) bitmask operations" |
| 1618 | |
| 1619 | fi |
| 1620 | |
| 1621 | else |
| 1622 | echo "Using standard bitmask operations by default" |
| 1623 | |
| 1624 | fi |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 1625 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1626 | PACKAGE=e2fsprogs |
| 1627 | VERSION="$E2FSPROGS_VERSION" |
| 1628 | cat >> confdefs.h <<EOF |
| 1629 | #define PACKAGE "$PACKAGE" |
| 1630 | EOF |
| 1631 | |
| 1632 | cat >> confdefs.h <<EOF |
| 1633 | #define VERSION "$VERSION" |
| 1634 | EOF |
| 1635 | |
| 1636 | |
| 1637 | |
| 1638 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1639 | |
| 1640 | echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 1641 | echo "configure:1642: checking for inttypes.h" >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1642 | if eval "test \"`echo '$''{'jm_ac_cv_header_inttypes_h'+set}'`\" = set"; then |
| 1643 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1644 | else |
| 1645 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 1646 | #line 1647 "configure" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1647 | #include "confdefs.h" |
| 1648 | #include <sys/types.h> |
| 1649 | #include <inttypes.h> |
| 1650 | int main() { |
| 1651 | uintmax_t i = (uintmax_t) -1; |
| 1652 | ; return 0; } |
| 1653 | EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 1654 | if { (eval echo configure:1655: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1655 | rm -rf conftest* |
| 1656 | jm_ac_cv_header_inttypes_h=yes |
| 1657 | else |
| 1658 | echo "configure: failed program was:" >&5 |
| 1659 | cat conftest.$ac_ext >&5 |
| 1660 | rm -rf conftest* |
| 1661 | jm_ac_cv_header_inttypes_h=no |
| 1662 | fi |
| 1663 | rm -f conftest* |
| 1664 | fi |
| 1665 | |
| 1666 | echo "$ac_t""$jm_ac_cv_header_inttypes_h" 1>&6 |
| 1667 | if test $jm_ac_cv_header_inttypes_h = yes; then |
| 1668 | cat >> confdefs.h <<EOF |
| 1669 | #define HAVE_INTTYPES_H_WITH_UINTMAX 1 |
| 1670 | EOF |
| 1671 | |
| 1672 | fi |
| 1673 | |
| 1674 | |
| 1675 | echo $ac_n "checking for stdint.h""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 1676 | echo "configure:1677: checking for stdint.h" >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1677 | if eval "test \"`echo '$''{'jm_ac_cv_header_stdint_h'+set}'`\" = set"; then |
| 1678 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1679 | else |
| 1680 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 1681 | #line 1682 "configure" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1682 | #include "confdefs.h" |
| 1683 | #include <sys/types.h> |
| 1684 | #include <stdint.h> |
| 1685 | int main() { |
| 1686 | uintmax_t i = (uintmax_t) -1; |
| 1687 | ; return 0; } |
| 1688 | EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 1689 | if { (eval echo configure:1690: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1690 | rm -rf conftest* |
| 1691 | jm_ac_cv_header_stdint_h=yes |
| 1692 | else |
| 1693 | echo "configure: failed program was:" >&5 |
| 1694 | cat conftest.$ac_ext >&5 |
| 1695 | rm -rf conftest* |
| 1696 | jm_ac_cv_header_stdint_h=no |
| 1697 | fi |
| 1698 | rm -f conftest* |
| 1699 | fi |
| 1700 | |
| 1701 | echo "$ac_t""$jm_ac_cv_header_stdint_h" 1>&6 |
| 1702 | if test $jm_ac_cv_header_stdint_h = yes; then |
| 1703 | cat >> confdefs.h <<EOF |
| 1704 | #define HAVE_STDINT_H_WITH_UINTMAX 1 |
| 1705 | EOF |
| 1706 | |
| 1707 | fi |
| 1708 | |
| 1709 | |
| 1710 | echo $ac_n "checking for unsigned long long""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 1711 | echo "configure:1712: checking for unsigned long long" >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1712 | if eval "test \"`echo '$''{'ac_cv_type_unsigned_long_long'+set}'`\" = set"; then |
| 1713 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1714 | else |
| 1715 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 1716 | #line 1717 "configure" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1717 | #include "confdefs.h" |
| 1718 | unsigned long long ull = 1; int i = 63; |
| 1719 | int main() { |
| 1720 | unsigned long long ullmax = (unsigned long long) -1; |
| 1721 | return ull << i | ull >> i | ullmax / ull | ullmax % ull; |
| 1722 | ; return 0; } |
| 1723 | EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 1724 | if { (eval echo configure:1725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1725 | rm -rf conftest* |
| 1726 | ac_cv_type_unsigned_long_long=yes |
| 1727 | else |
| 1728 | echo "configure: failed program was:" >&5 |
| 1729 | cat conftest.$ac_ext >&5 |
| 1730 | rm -rf conftest* |
| 1731 | ac_cv_type_unsigned_long_long=no |
| 1732 | fi |
| 1733 | rm -f conftest* |
| 1734 | fi |
| 1735 | |
| 1736 | echo "$ac_t""$ac_cv_type_unsigned_long_long" 1>&6 |
| 1737 | if test $ac_cv_type_unsigned_long_long = yes; then |
| 1738 | cat >> confdefs.h <<\EOF |
| 1739 | #define HAVE_UNSIGNED_LONG_LONG 1 |
| 1740 | EOF |
| 1741 | |
| 1742 | fi |
| 1743 | |
| 1744 | |
| 1745 | if test "X$prefix" = "XNONE"; then |
| 1746 | acl_final_prefix="$ac_default_prefix" |
| 1747 | else |
| 1748 | acl_final_prefix="$prefix" |
| 1749 | fi |
| 1750 | if test "X$exec_prefix" = "XNONE"; then |
| 1751 | acl_final_exec_prefix='${prefix}' |
| 1752 | else |
| 1753 | acl_final_exec_prefix="$exec_prefix" |
| 1754 | fi |
| 1755 | acl_save_prefix="$prefix" |
| 1756 | prefix="$acl_final_prefix" |
| 1757 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" |
| 1758 | prefix="$acl_save_prefix" |
| 1759 | |
| 1760 | |
| 1761 | echo $ac_n "checking for shared library run path origin""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 1762 | echo "configure:1763: checking for shared library run path origin" >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1763 | if eval "test \"`echo '$''{'acl_cv_rpath'+set}'`\" = set"; then |
| 1764 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1765 | else |
| 1766 | |
| 1767 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ |
| 1768 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh |
| 1769 | . ./conftest.sh |
| 1770 | rm -f ./conftest.sh |
| 1771 | acl_cv_rpath=done |
| 1772 | |
| 1773 | fi |
| 1774 | |
| 1775 | echo "$ac_t""$acl_cv_rpath" 1>&6 |
| 1776 | wl="$acl_cv_wl" |
| 1777 | libext="$acl_cv_libext" |
| 1778 | shlibext="$acl_cv_shlibext" |
| 1779 | hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" |
| 1780 | hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" |
| 1781 | hardcode_direct="$acl_cv_hardcode_direct" |
| 1782 | hardcode_minus_L="$acl_cv_hardcode_minus_L" |
| 1783 | sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec" |
| 1784 | sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec" |
| 1785 | # Check whether --enable-rpath or --disable-rpath was given. |
| 1786 | if test "${enable_rpath+set}" = set; then |
| 1787 | enableval="$enable_rpath" |
| 1788 | : |
| 1789 | else |
| 1790 | enable_rpath=yes |
| 1791 | fi |
| 1792 | |
| 1793 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1794 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 1795 | echo "configure:1796: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1796 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
| 1797 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
| 1798 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1799 | else |
| 1800 | cat > conftestmake <<\EOF |
| 1801 | all: |
| 1802 | @echo 'ac_maketemp="${MAKE}"' |
| 1803 | EOF |
| 1804 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 1805 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
| 1806 | if test -n "$ac_maketemp"; then |
| 1807 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 1808 | else |
| 1809 | eval ac_cv_prog_make_${ac_make}_set=no |
| 1810 | fi |
| 1811 | rm -f conftestmake |
| 1812 | fi |
| 1813 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
| 1814 | echo "$ac_t""yes" 1>&6 |
| 1815 | SET_MAKE= |
| 1816 | else |
| 1817 | echo "$ac_t""no" 1>&6 |
| 1818 | SET_MAKE="MAKE=${MAKE-make}" |
| 1819 | fi |
| 1820 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1821 | # Find a good install program. We prefer a C program (faster), |
| 1822 | # so one script is as good as another. But avoid the broken or |
| 1823 | # incompatible versions: |
| 1824 | # SysV /etc/install, /usr/sbin/install |
| 1825 | # SunOS /usr/etc/install |
| 1826 | # IRIX /sbin/install |
| 1827 | # AIX /bin/install |
| 1828 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 1829 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 1830 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 1831 | # ./install, which can be erroneously created by make from ./install.sh. |
| 1832 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 1833 | echo "configure:1834: checking for a BSD compatible install" >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1834 | if test -z "$INSTALL"; then |
| 1835 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
| 1836 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1837 | else |
| 1838 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
| 1839 | for ac_dir in $PATH; do |
| 1840 | # Account for people who put trailing slashes in PATH elements. |
| 1841 | case "$ac_dir/" in |
| 1842 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
| 1843 | *) |
| 1844 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 1845 | # Don't use installbsd from OSF since it installs stuff as root |
| 1846 | # by default. |
| 1847 | for ac_prog in ginstall scoinst install; do |
| 1848 | if test -f $ac_dir/$ac_prog; then |
| 1849 | if test $ac_prog = install && |
| 1850 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
| 1851 | # AIX install. It has an incompatible calling convention. |
| 1852 | : |
| 1853 | else |
| 1854 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
| 1855 | break 2 |
| 1856 | fi |
| 1857 | fi |
| 1858 | done |
| 1859 | ;; |
| 1860 | esac |
| 1861 | done |
| 1862 | IFS="$ac_save_IFS" |
| 1863 | |
| 1864 | fi |
| 1865 | if test "${ac_cv_path_install+set}" = set; then |
| 1866 | INSTALL="$ac_cv_path_install" |
| 1867 | else |
| 1868 | # As a last resort, use the slow shell script. We don't cache a |
| 1869 | # path for INSTALL within a source directory, because that will |
| 1870 | # break other packages using the cache if that directory is |
| 1871 | # removed, or if the path is relative. |
| 1872 | INSTALL="$ac_install_sh" |
| 1873 | fi |
| 1874 | fi |
| 1875 | echo "$ac_t""$INSTALL" 1>&6 |
| 1876 | |
| 1877 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 1878 | # It thinks the first close brace ends the variable substitution. |
| 1879 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 1880 | |
| 1881 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
| 1882 | |
| 1883 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 1884 | |
| 1885 | |
| 1886 | MKINSTALLDIRS= |
| 1887 | if test -n "$ac_aux_dir"; then |
| 1888 | MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" |
| 1889 | fi |
| 1890 | if test -z "$MKINSTALLDIRS"; then |
| 1891 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" |
| 1892 | fi |
| 1893 | |
| 1894 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1895 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 1896 | set dummy ranlib; ac_word=$2 |
| 1897 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 1898 | echo "configure:1899: checking for $ac_word" >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1899 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
| 1900 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1901 | else |
| 1902 | if test -n "$RANLIB"; then |
| 1903 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 1904 | else |
| 1905 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1906 | ac_dummy="$PATH" |
| 1907 | for ac_dir in $ac_dummy; do |
| 1908 | test -z "$ac_dir" && ac_dir=. |
| 1909 | if test -f $ac_dir/$ac_word; then |
| 1910 | ac_cv_prog_RANLIB="ranlib" |
| 1911 | break |
| 1912 | fi |
| 1913 | done |
| 1914 | IFS="$ac_save_ifs" |
| 1915 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
| 1916 | fi |
| 1917 | fi |
| 1918 | RANLIB="$ac_cv_prog_RANLIB" |
| 1919 | if test -n "$RANLIB"; then |
| 1920 | echo "$ac_t""$RANLIB" 1>&6 |
| 1921 | else |
| 1922 | echo "$ac_t""no" 1>&6 |
| 1923 | fi |
| 1924 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1925 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1926 | echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 1927 | echo "configure:1928: checking for strerror in -lcposix" >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1928 | ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'` |
| 1929 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 1930 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1931 | else |
| 1932 | ac_save_LIBS="$LIBS" |
| 1933 | LIBS="-lcposix $LIBS" |
| 1934 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 1935 | #line 1936 "configure" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1936 | #include "confdefs.h" |
| 1937 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1938 | /* We use char because int might match the return type of a gcc2 |
| 1939 | builtin and then its argument prototype would still apply. */ |
| 1940 | char strerror(); |
| 1941 | |
| 1942 | int main() { |
| 1943 | strerror() |
| 1944 | ; return 0; } |
| 1945 | EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 1946 | if { (eval echo configure:1947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1947 | rm -rf conftest* |
| 1948 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 1949 | else |
| 1950 | echo "configure: failed program was:" >&5 |
| 1951 | cat conftest.$ac_ext >&5 |
| 1952 | rm -rf conftest* |
| 1953 | eval "ac_cv_lib_$ac_lib_var=no" |
| 1954 | fi |
| 1955 | rm -f conftest* |
| 1956 | LIBS="$ac_save_LIBS" |
| 1957 | |
| 1958 | fi |
| 1959 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 1960 | echo "$ac_t""yes" 1>&6 |
| 1961 | LIBS="$LIBS -lcposix" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1962 | else |
| 1963 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1964 | fi |
| 1965 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1966 | |
| 1967 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1968 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 1969 | echo "configure:1970: checking for ANSI C header files" >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1970 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
| 1971 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1972 | else |
| 1973 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 1974 | #line 1975 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1975 | #include "confdefs.h" |
| 1976 | #include <stdlib.h> |
| 1977 | #include <stdarg.h> |
| 1978 | #include <string.h> |
| 1979 | #include <float.h> |
| 1980 | EOF |
| 1981 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 1982 | { (eval echo configure:1983: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1983 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1984 | if test -z "$ac_err"; then |
| 1985 | rm -rf conftest* |
| 1986 | ac_cv_header_stdc=yes |
| 1987 | else |
| 1988 | echo "$ac_err" >&5 |
| 1989 | echo "configure: failed program was:" >&5 |
| 1990 | cat conftest.$ac_ext >&5 |
| 1991 | rm -rf conftest* |
| 1992 | ac_cv_header_stdc=no |
| 1993 | fi |
| 1994 | rm -f conftest* |
| 1995 | |
| 1996 | if test $ac_cv_header_stdc = yes; then |
| 1997 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 1998 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 1999 | #line 2000 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2000 | #include "confdefs.h" |
| 2001 | #include <string.h> |
| 2002 | EOF |
| 2003 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2004 | egrep "memchr" >/dev/null 2>&1; then |
| 2005 | : |
| 2006 | else |
| 2007 | rm -rf conftest* |
| 2008 | ac_cv_header_stdc=no |
| 2009 | fi |
| 2010 | rm -f conftest* |
| 2011 | |
| 2012 | fi |
| 2013 | |
| 2014 | if test $ac_cv_header_stdc = yes; then |
| 2015 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 2016 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 2017 | #line 2018 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2018 | #include "confdefs.h" |
| 2019 | #include <stdlib.h> |
| 2020 | EOF |
| 2021 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2022 | egrep "free" >/dev/null 2>&1; then |
| 2023 | : |
| 2024 | else |
| 2025 | rm -rf conftest* |
| 2026 | ac_cv_header_stdc=no |
| 2027 | fi |
| 2028 | rm -f conftest* |
| 2029 | |
| 2030 | fi |
| 2031 | |
| 2032 | if test $ac_cv_header_stdc = yes; then |
| 2033 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 2034 | if test "$cross_compiling" = yes; then |
| 2035 | : |
| 2036 | else |
| 2037 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 2038 | #line 2039 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2039 | #include "confdefs.h" |
| 2040 | #include <ctype.h> |
| 2041 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 2042 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 2043 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 2044 | int main () { int i; for (i = 0; i < 256; i++) |
| 2045 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
| 2046 | exit (0); } |
| 2047 | |
| 2048 | EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 2049 | if { (eval echo configure:2050: \"$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] | 2050 | then |
| 2051 | : |
| 2052 | else |
| 2053 | echo "configure: failed program was:" >&5 |
| 2054 | cat conftest.$ac_ext >&5 |
| 2055 | rm -fr conftest* |
| 2056 | ac_cv_header_stdc=no |
| 2057 | fi |
| 2058 | rm -fr conftest* |
| 2059 | fi |
| 2060 | |
| 2061 | fi |
| 2062 | fi |
| 2063 | |
| 2064 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
| 2065 | if test $ac_cv_header_stdc = yes; then |
| 2066 | cat >> confdefs.h <<\EOF |
| 2067 | #define STDC_HEADERS 1 |
| 2068 | EOF |
| 2069 | |
| 2070 | fi |
| 2071 | |
| 2072 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 2073 | echo "configure:2074: checking for working const" >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2074 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
| 2075 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2076 | else |
| 2077 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 2078 | #line 2079 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2079 | #include "confdefs.h" |
| 2080 | |
| 2081 | int main() { |
| 2082 | |
| 2083 | /* Ultrix mips cc rejects this. */ |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 2084 | typedef int charset[2]; const charset x; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2085 | /* SunOS 4.1.1 cc rejects this. */ |
| 2086 | char const *const *ccp; |
| 2087 | char **p; |
| 2088 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 2089 | struct point {int x, y;}; |
| 2090 | static struct point const zero = {0,0}; |
| 2091 | /* AIX XL C 1.02.0.0 rejects this. |
| 2092 | It does not let you subtract one const X* pointer from another in an arm |
| 2093 | of an if-expression whose if-part is not a constant expression */ |
| 2094 | const char *g = "string"; |
| 2095 | ccp = &g + (g ? g-g : 0); |
| 2096 | /* HPUX 7.0 cc rejects these. */ |
| 2097 | ++ccp; |
| 2098 | p = (char**) ccp; |
| 2099 | ccp = (char const *const *) p; |
| 2100 | { /* SCO 3.2v4 cc rejects this. */ |
| 2101 | char *t; |
| 2102 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 2103 | |
| 2104 | *t++ = 0; |
| 2105 | } |
| 2106 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 2107 | int x[] = {25, 17}; |
| 2108 | const int *foo = &x[0]; |
| 2109 | ++foo; |
| 2110 | } |
| 2111 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 2112 | typedef const int *iptr; |
| 2113 | iptr p = 0; |
| 2114 | ++p; |
| 2115 | } |
| 2116 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 2117 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 2118 | struct s { int j; const int *ap[3]; }; |
| 2119 | struct s *b; b->j = 5; |
| 2120 | } |
| 2121 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 2122 | const int foo = 10; |
| 2123 | } |
| 2124 | |
| 2125 | ; return 0; } |
| 2126 | EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 2127 | if { (eval echo configure:2128: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2128 | rm -rf conftest* |
| 2129 | ac_cv_c_const=yes |
| 2130 | else |
| 2131 | echo "configure: failed program was:" >&5 |
| 2132 | cat conftest.$ac_ext >&5 |
| 2133 | rm -rf conftest* |
| 2134 | ac_cv_c_const=no |
| 2135 | fi |
| 2136 | rm -f conftest* |
| 2137 | fi |
| 2138 | |
| 2139 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
| 2140 | if test $ac_cv_c_const = no; then |
| 2141 | cat >> confdefs.h <<\EOF |
| 2142 | #define const |
| 2143 | EOF |
| 2144 | |
| 2145 | fi |
| 2146 | |
| 2147 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 2148 | echo "configure:2149: checking for inline" >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2149 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
| 2150 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2151 | else |
| 2152 | ac_cv_c_inline=no |
| 2153 | for ac_kw in inline __inline__ __inline; do |
| 2154 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 2155 | #line 2156 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2156 | #include "confdefs.h" |
| 2157 | |
| 2158 | int main() { |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 2159 | } $ac_kw foo() { |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2160 | ; return 0; } |
| 2161 | EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 2162 | if { (eval echo configure:2163: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2163 | rm -rf conftest* |
| 2164 | ac_cv_c_inline=$ac_kw; break |
| 2165 | else |
| 2166 | echo "configure: failed program was:" >&5 |
| 2167 | cat conftest.$ac_ext >&5 |
| 2168 | fi |
| 2169 | rm -f conftest* |
| 2170 | done |
| 2171 | |
| 2172 | fi |
| 2173 | |
| 2174 | echo "$ac_t""$ac_cv_c_inline" 1>&6 |
| 2175 | case "$ac_cv_c_inline" in |
| 2176 | inline | yes) ;; |
| 2177 | no) cat >> confdefs.h <<\EOF |
| 2178 | #define inline |
| 2179 | EOF |
| 2180 | ;; |
| 2181 | *) cat >> confdefs.h <<EOF |
| 2182 | #define inline $ac_cv_c_inline |
| 2183 | EOF |
| 2184 | ;; |
| 2185 | esac |
| 2186 | |
| 2187 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 2188 | echo "configure:2189: checking for off_t" >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2189 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
| 2190 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2191 | else |
| 2192 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 2193 | #line 2194 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2194 | #include "confdefs.h" |
| 2195 | #include <sys/types.h> |
| 2196 | #if STDC_HEADERS |
| 2197 | #include <stdlib.h> |
| 2198 | #include <stddef.h> |
| 2199 | #endif |
| 2200 | EOF |
| 2201 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2202 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
| 2203 | rm -rf conftest* |
| 2204 | ac_cv_type_off_t=yes |
| 2205 | else |
| 2206 | rm -rf conftest* |
| 2207 | ac_cv_type_off_t=no |
| 2208 | fi |
| 2209 | rm -f conftest* |
| 2210 | |
| 2211 | fi |
| 2212 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 |
| 2213 | if test $ac_cv_type_off_t = no; then |
| 2214 | cat >> confdefs.h <<\EOF |
| 2215 | #define off_t long |
| 2216 | EOF |
| 2217 | |
| 2218 | fi |
| 2219 | |
| 2220 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 2221 | echo "configure:2222: checking for size_t" >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2222 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
| 2223 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2224 | else |
| 2225 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 2226 | #line 2227 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2227 | #include "confdefs.h" |
| 2228 | #include <sys/types.h> |
| 2229 | #if STDC_HEADERS |
| 2230 | #include <stdlib.h> |
| 2231 | #include <stddef.h> |
| 2232 | #endif |
| 2233 | EOF |
| 2234 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2235 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
| 2236 | rm -rf conftest* |
| 2237 | ac_cv_type_size_t=yes |
| 2238 | else |
| 2239 | rm -rf conftest* |
| 2240 | ac_cv_type_size_t=no |
| 2241 | fi |
| 2242 | rm -f conftest* |
| 2243 | |
| 2244 | fi |
| 2245 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 |
| 2246 | if test $ac_cv_type_size_t = no; then |
| 2247 | cat >> confdefs.h <<\EOF |
| 2248 | #define size_t unsigned |
| 2249 | EOF |
| 2250 | |
| 2251 | fi |
| 2252 | |
| 2253 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 2254 | # for constant arguments. Useless! |
| 2255 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 2256 | echo "configure:2257: checking for working alloca.h" >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2257 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then |
| 2258 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2259 | else |
| 2260 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 2261 | #line 2262 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2262 | #include "confdefs.h" |
| 2263 | #include <alloca.h> |
| 2264 | int main() { |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 2265 | char *p = alloca(2 * sizeof(int)); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2266 | ; return 0; } |
| 2267 | EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 2268 | if { (eval echo configure:2269: \"$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] | 2269 | rm -rf conftest* |
| 2270 | ac_cv_header_alloca_h=yes |
| 2271 | else |
| 2272 | echo "configure: failed program was:" >&5 |
| 2273 | cat conftest.$ac_ext >&5 |
| 2274 | rm -rf conftest* |
| 2275 | ac_cv_header_alloca_h=no |
| 2276 | fi |
| 2277 | rm -f conftest* |
| 2278 | fi |
| 2279 | |
| 2280 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 |
| 2281 | if test $ac_cv_header_alloca_h = yes; then |
| 2282 | cat >> confdefs.h <<\EOF |
| 2283 | #define HAVE_ALLOCA_H 1 |
| 2284 | EOF |
| 2285 | |
| 2286 | fi |
| 2287 | |
| 2288 | echo $ac_n "checking for alloca""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 2289 | echo "configure:2290: checking for alloca" >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2290 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then |
| 2291 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2292 | else |
| 2293 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 2294 | #line 2295 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2295 | #include "confdefs.h" |
| 2296 | |
| 2297 | #ifdef __GNUC__ |
| 2298 | # define alloca __builtin_alloca |
| 2299 | #else |
| 2300 | # ifdef _MSC_VER |
| 2301 | # include <malloc.h> |
| 2302 | # define alloca _alloca |
| 2303 | # else |
| 2304 | # if HAVE_ALLOCA_H |
| 2305 | # include <alloca.h> |
| 2306 | # else |
| 2307 | # ifdef _AIX |
| 2308 | #pragma alloca |
| 2309 | # else |
| 2310 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 2311 | char *alloca (); |
| 2312 | # endif |
| 2313 | # endif |
| 2314 | # endif |
| 2315 | # endif |
| 2316 | #endif |
| 2317 | |
| 2318 | int main() { |
| 2319 | char *p = (char *) alloca(1); |
| 2320 | ; return 0; } |
| 2321 | EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 2322 | if { (eval echo configure:2323: \"$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] | 2323 | rm -rf conftest* |
| 2324 | ac_cv_func_alloca_works=yes |
| 2325 | else |
| 2326 | echo "configure: failed program was:" >&5 |
| 2327 | cat conftest.$ac_ext >&5 |
| 2328 | rm -rf conftest* |
| 2329 | ac_cv_func_alloca_works=no |
| 2330 | fi |
| 2331 | rm -f conftest* |
| 2332 | fi |
| 2333 | |
| 2334 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 |
| 2335 | if test $ac_cv_func_alloca_works = yes; then |
| 2336 | cat >> confdefs.h <<\EOF |
| 2337 | #define HAVE_ALLOCA 1 |
| 2338 | EOF |
| 2339 | |
| 2340 | fi |
| 2341 | |
| 2342 | if test $ac_cv_func_alloca_works = no; then |
| 2343 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 2344 | # that cause trouble. Some versions do not even contain alloca or |
| 2345 | # contain a buggy version. If you still want to use their alloca, |
| 2346 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 2347 | ALLOCA=alloca.${ac_objext} |
| 2348 | cat >> confdefs.h <<\EOF |
| 2349 | #define C_ALLOCA 1 |
| 2350 | EOF |
| 2351 | |
| 2352 | |
| 2353 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 2354 | echo "configure:2355: checking whether alloca needs Cray hooks" >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2355 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then |
| 2356 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2357 | else |
| 2358 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 2359 | #line 2360 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2360 | #include "confdefs.h" |
| 2361 | #if defined(CRAY) && ! defined(CRAY2) |
| 2362 | webecray |
| 2363 | #else |
| 2364 | wenotbecray |
| 2365 | #endif |
| 2366 | |
| 2367 | EOF |
| 2368 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2369 | egrep "webecray" >/dev/null 2>&1; then |
| 2370 | rm -rf conftest* |
| 2371 | ac_cv_os_cray=yes |
| 2372 | else |
| 2373 | rm -rf conftest* |
| 2374 | ac_cv_os_cray=no |
| 2375 | fi |
| 2376 | rm -f conftest* |
| 2377 | |
| 2378 | fi |
| 2379 | |
| 2380 | echo "$ac_t""$ac_cv_os_cray" 1>&6 |
| 2381 | if test $ac_cv_os_cray = yes; then |
| 2382 | for ac_func in _getb67 GETB67 getb67; do |
| 2383 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 2384 | echo "configure:2385: checking for $ac_func" >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2385 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 2386 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2387 | else |
| 2388 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 2389 | #line 2390 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2390 | #include "confdefs.h" |
| 2391 | /* System header to define __stub macros and hopefully few prototypes, |
| 2392 | which can conflict with char $ac_func(); below. */ |
| 2393 | #include <assert.h> |
| 2394 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2395 | /* We use char because int might match the return type of a gcc2 |
| 2396 | builtin and then its argument prototype would still apply. */ |
| 2397 | char $ac_func(); |
| 2398 | |
| 2399 | int main() { |
| 2400 | |
| 2401 | /* The GNU C library defines this for functions which it implements |
| 2402 | to always fail with ENOSYS. Some functions are actually named |
| 2403 | something starting with __ and the normal name is an alias. */ |
| 2404 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 2405 | choke me |
| 2406 | #else |
| 2407 | $ac_func(); |
| 2408 | #endif |
| 2409 | |
| 2410 | ; return 0; } |
| 2411 | EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 2412 | if { (eval echo configure:2413: \"$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] | 2413 | rm -rf conftest* |
| 2414 | eval "ac_cv_func_$ac_func=yes" |
| 2415 | else |
| 2416 | echo "configure: failed program was:" >&5 |
| 2417 | cat conftest.$ac_ext >&5 |
| 2418 | rm -rf conftest* |
| 2419 | eval "ac_cv_func_$ac_func=no" |
| 2420 | fi |
| 2421 | rm -f conftest* |
| 2422 | fi |
| 2423 | |
| 2424 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 2425 | echo "$ac_t""yes" 1>&6 |
| 2426 | cat >> confdefs.h <<EOF |
| 2427 | #define CRAY_STACKSEG_END $ac_func |
| 2428 | EOF |
| 2429 | |
| 2430 | break |
| 2431 | else |
| 2432 | echo "$ac_t""no" 1>&6 |
| 2433 | fi |
| 2434 | |
| 2435 | done |
| 2436 | fi |
| 2437 | |
| 2438 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 2439 | echo "configure:2440: checking stack direction for C alloca" >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2440 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then |
| 2441 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2442 | else |
| 2443 | if test "$cross_compiling" = yes; then |
| 2444 | ac_cv_c_stack_direction=0 |
| 2445 | else |
| 2446 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 2447 | #line 2448 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2448 | #include "confdefs.h" |
| 2449 | find_stack_direction () |
| 2450 | { |
| 2451 | static char *addr = 0; |
| 2452 | auto char dummy; |
| 2453 | if (addr == 0) |
| 2454 | { |
| 2455 | addr = &dummy; |
| 2456 | return find_stack_direction (); |
| 2457 | } |
| 2458 | else |
| 2459 | return (&dummy > addr) ? 1 : -1; |
| 2460 | } |
| 2461 | main () |
| 2462 | { |
| 2463 | exit (find_stack_direction() < 0); |
| 2464 | } |
| 2465 | EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 2466 | if { (eval echo configure:2467: \"$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] | 2467 | then |
| 2468 | ac_cv_c_stack_direction=1 |
| 2469 | else |
| 2470 | echo "configure: failed program was:" >&5 |
| 2471 | cat conftest.$ac_ext >&5 |
| 2472 | rm -fr conftest* |
| 2473 | ac_cv_c_stack_direction=-1 |
| 2474 | fi |
| 2475 | rm -fr conftest* |
| 2476 | fi |
| 2477 | |
| 2478 | fi |
| 2479 | |
| 2480 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 |
| 2481 | cat >> confdefs.h <<EOF |
| 2482 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
| 2483 | EOF |
| 2484 | |
| 2485 | fi |
| 2486 | |
| 2487 | for ac_hdr in unistd.h |
| 2488 | do |
| 2489 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 2490 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 2491 | echo "configure:2492: checking for $ac_hdr" >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2492 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 2493 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2494 | else |
| 2495 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 2496 | #line 2497 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2497 | #include "confdefs.h" |
| 2498 | #include <$ac_hdr> |
| 2499 | EOF |
| 2500 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 2501 | { (eval echo configure:2502: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2502 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 2503 | if test -z "$ac_err"; then |
| 2504 | rm -rf conftest* |
| 2505 | eval "ac_cv_header_$ac_safe=yes" |
| 2506 | else |
| 2507 | echo "$ac_err" >&5 |
| 2508 | echo "configure: failed program was:" >&5 |
| 2509 | cat conftest.$ac_ext >&5 |
| 2510 | rm -rf conftest* |
| 2511 | eval "ac_cv_header_$ac_safe=no" |
| 2512 | fi |
| 2513 | rm -f conftest* |
| 2514 | fi |
| 2515 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 2516 | echo "$ac_t""yes" 1>&6 |
| 2517 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 2518 | cat >> confdefs.h <<EOF |
| 2519 | #define $ac_tr_hdr 1 |
| 2520 | EOF |
| 2521 | |
| 2522 | else |
| 2523 | echo "$ac_t""no" 1>&6 |
| 2524 | fi |
| 2525 | done |
| 2526 | |
| 2527 | for ac_func in getpagesize |
| 2528 | do |
| 2529 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 2530 | echo "configure:2531: checking for $ac_func" >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2531 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 2532 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2533 | else |
| 2534 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 2535 | #line 2536 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2536 | #include "confdefs.h" |
| 2537 | /* System header to define __stub macros and hopefully few prototypes, |
| 2538 | which can conflict with char $ac_func(); below. */ |
| 2539 | #include <assert.h> |
| 2540 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2541 | /* We use char because int might match the return type of a gcc2 |
| 2542 | builtin and then its argument prototype would still apply. */ |
| 2543 | char $ac_func(); |
| 2544 | |
| 2545 | int main() { |
| 2546 | |
| 2547 | /* The GNU C library defines this for functions which it implements |
| 2548 | to always fail with ENOSYS. Some functions are actually named |
| 2549 | something starting with __ and the normal name is an alias. */ |
| 2550 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 2551 | choke me |
| 2552 | #else |
| 2553 | $ac_func(); |
| 2554 | #endif |
| 2555 | |
| 2556 | ; return 0; } |
| 2557 | EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 2558 | if { (eval echo configure:2559: \"$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] | 2559 | rm -rf conftest* |
| 2560 | eval "ac_cv_func_$ac_func=yes" |
| 2561 | else |
| 2562 | echo "configure: failed program was:" >&5 |
| 2563 | cat conftest.$ac_ext >&5 |
| 2564 | rm -rf conftest* |
| 2565 | eval "ac_cv_func_$ac_func=no" |
| 2566 | fi |
| 2567 | rm -f conftest* |
| 2568 | fi |
| 2569 | |
| 2570 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 2571 | echo "$ac_t""yes" 1>&6 |
| 2572 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 2573 | cat >> confdefs.h <<EOF |
| 2574 | #define $ac_tr_func 1 |
| 2575 | EOF |
| 2576 | |
| 2577 | else |
| 2578 | echo "$ac_t""no" 1>&6 |
| 2579 | fi |
| 2580 | done |
| 2581 | |
| 2582 | echo $ac_n "checking for working mmap""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 2583 | echo "configure:2584: checking for working mmap" >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2584 | if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then |
| 2585 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2586 | else |
| 2587 | if test "$cross_compiling" = yes; then |
| 2588 | ac_cv_func_mmap_fixed_mapped=no |
| 2589 | else |
| 2590 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 2591 | #line 2592 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2592 | #include "confdefs.h" |
| 2593 | |
| 2594 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 2595 | Here is a matrix of mmap possibilities: |
| 2596 | mmap private not fixed |
| 2597 | mmap private fixed at somewhere currently unmapped |
| 2598 | mmap private fixed at somewhere already mapped |
| 2599 | mmap shared not fixed |
| 2600 | mmap shared fixed at somewhere currently unmapped |
| 2601 | mmap shared fixed at somewhere already mapped |
| 2602 | For private mappings, we should verify that changes cannot be read() |
| 2603 | back from the file, nor mmap's back from the file at a different |
| 2604 | address. (There have been systems where private was not correctly |
| 2605 | implemented like the infamous i386 svr4.0, and systems where the |
| 2606 | VM page cache was not coherent with the filesystem buffer cache |
| 2607 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 2608 | For shared mappings, we should conversely verify that changes get |
| 2609 | propogated back to all the places they're supposed to be. |
| 2610 | |
| 2611 | Grep wants private fixed already mapped. |
| 2612 | The main things grep needs to know about mmap are: |
| 2613 | * does it exist and is it safe to write into the mmap'd area |
| 2614 | * how to use it (BSD variants) */ |
| 2615 | #include <sys/types.h> |
| 2616 | #include <fcntl.h> |
| 2617 | #include <sys/mman.h> |
| 2618 | |
| 2619 | /* This mess was copied from the GNU getpagesize.h. */ |
| 2620 | #ifndef HAVE_GETPAGESIZE |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 2621 | # ifdef HAVE_UNISTD_H |
| 2622 | # include <unistd.h> |
| 2623 | # endif |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2624 | |
| 2625 | /* Assume that all systems that can run configure have sys/param.h. */ |
| 2626 | # ifndef HAVE_SYS_PARAM_H |
| 2627 | # define HAVE_SYS_PARAM_H 1 |
| 2628 | # endif |
| 2629 | |
| 2630 | # ifdef _SC_PAGESIZE |
| 2631 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 2632 | # else /* no _SC_PAGESIZE */ |
| 2633 | # ifdef HAVE_SYS_PARAM_H |
| 2634 | # include <sys/param.h> |
| 2635 | # ifdef EXEC_PAGESIZE |
| 2636 | # define getpagesize() EXEC_PAGESIZE |
| 2637 | # else /* no EXEC_PAGESIZE */ |
| 2638 | # ifdef NBPG |
| 2639 | # define getpagesize() NBPG * CLSIZE |
| 2640 | # ifndef CLSIZE |
| 2641 | # define CLSIZE 1 |
| 2642 | # endif /* no CLSIZE */ |
| 2643 | # else /* no NBPG */ |
| 2644 | # ifdef NBPC |
| 2645 | # define getpagesize() NBPC |
| 2646 | # else /* no NBPC */ |
| 2647 | # ifdef PAGESIZE |
| 2648 | # define getpagesize() PAGESIZE |
| 2649 | # endif /* PAGESIZE */ |
| 2650 | # endif /* no NBPC */ |
| 2651 | # endif /* no NBPG */ |
| 2652 | # endif /* no EXEC_PAGESIZE */ |
| 2653 | # else /* no HAVE_SYS_PARAM_H */ |
| 2654 | # define getpagesize() 8192 /* punt totally */ |
| 2655 | # endif /* no HAVE_SYS_PARAM_H */ |
| 2656 | # endif /* no _SC_PAGESIZE */ |
| 2657 | |
| 2658 | #endif /* no HAVE_GETPAGESIZE */ |
| 2659 | |
| 2660 | #ifdef __cplusplus |
| 2661 | extern "C" { void *malloc(unsigned); } |
| 2662 | #else |
| 2663 | char *malloc(); |
| 2664 | #endif |
| 2665 | |
| 2666 | int |
| 2667 | main() |
| 2668 | { |
| 2669 | char *data, *data2, *data3; |
| 2670 | int i, pagesize; |
| 2671 | int fd; |
| 2672 | |
| 2673 | pagesize = getpagesize(); |
| 2674 | |
| 2675 | /* |
| 2676 | * First, make a file with some known garbage in it. |
| 2677 | */ |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 2678 | data = malloc(pagesize); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2679 | if (!data) |
| 2680 | exit(1); |
| 2681 | for (i = 0; i < pagesize; ++i) |
| 2682 | *(data + i) = rand(); |
| 2683 | umask(0); |
| 2684 | fd = creat("conftestmmap", 0600); |
| 2685 | if (fd < 0) |
| 2686 | exit(1); |
| 2687 | if (write(fd, data, pagesize) != pagesize) |
| 2688 | exit(1); |
| 2689 | close(fd); |
| 2690 | |
| 2691 | /* |
| 2692 | * Next, try to mmap the file at a fixed address which |
| 2693 | * already has something else allocated at it. If we can, |
| 2694 | * also make sure that we see the same garbage. |
| 2695 | */ |
| 2696 | fd = open("conftestmmap", O_RDWR); |
| 2697 | if (fd < 0) |
| 2698 | exit(1); |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 2699 | data2 = malloc(2 * pagesize); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2700 | if (!data2) |
| 2701 | exit(1); |
| 2702 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); |
| 2703 | if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, |
| 2704 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
| 2705 | exit(1); |
| 2706 | for (i = 0; i < pagesize; ++i) |
| 2707 | if (*(data + i) != *(data2 + i)) |
| 2708 | exit(1); |
| 2709 | |
| 2710 | /* |
| 2711 | * Finally, make sure that changes to the mapped area |
| 2712 | * do not percolate back to the file as seen by read(). |
| 2713 | * (This is a bug on some variants of i386 svr4.0.) |
| 2714 | */ |
| 2715 | for (i = 0; i < pagesize; ++i) |
| 2716 | *(data2 + i) = *(data2 + i) + 1; |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 2717 | data3 = malloc(pagesize); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2718 | if (!data3) |
| 2719 | exit(1); |
| 2720 | if (read(fd, data3, pagesize) != pagesize) |
| 2721 | exit(1); |
| 2722 | for (i = 0; i < pagesize; ++i) |
| 2723 | if (*(data + i) != *(data3 + i)) |
| 2724 | exit(1); |
| 2725 | close(fd); |
| 2726 | unlink("conftestmmap"); |
| 2727 | exit(0); |
| 2728 | } |
| 2729 | |
| 2730 | EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 2731 | if { (eval echo configure:2732: \"$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] | 2732 | then |
| 2733 | ac_cv_func_mmap_fixed_mapped=yes |
| 2734 | else |
| 2735 | echo "configure: failed program was:" >&5 |
| 2736 | cat conftest.$ac_ext >&5 |
| 2737 | rm -fr conftest* |
| 2738 | ac_cv_func_mmap_fixed_mapped=no |
| 2739 | fi |
| 2740 | rm -fr conftest* |
| 2741 | fi |
| 2742 | |
| 2743 | fi |
| 2744 | |
| 2745 | echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 |
| 2746 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 2747 | cat >> confdefs.h <<\EOF |
| 2748 | #define HAVE_MMAP 1 |
| 2749 | EOF |
| 2750 | |
| 2751 | fi |
| 2752 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2753 | |
| 2754 | echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 2755 | echo "configure:2756: checking whether we are using the GNU C Library 2.1 or newer" >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2756 | if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then |
| 2757 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2758 | else |
| 2759 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 2760 | #line 2761 "configure" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2761 | #include "confdefs.h" |
| 2762 | |
| 2763 | #include <features.h> |
| 2764 | #ifdef __GNU_LIBRARY__ |
| 2765 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) |
| 2766 | Lucky GNU user |
| 2767 | #endif |
| 2768 | #endif |
| 2769 | |
| 2770 | EOF |
| 2771 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2772 | egrep "Lucky GNU user" >/dev/null 2>&1; then |
| 2773 | rm -rf conftest* |
| 2774 | ac_cv_gnu_library_2_1=yes |
| 2775 | else |
| 2776 | rm -rf conftest* |
| 2777 | ac_cv_gnu_library_2_1=no |
| 2778 | fi |
| 2779 | rm -f conftest* |
| 2780 | |
| 2781 | |
| 2782 | |
| 2783 | fi |
| 2784 | |
| 2785 | echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6 |
| 2786 | |
| 2787 | GLIBC21="$ac_cv_gnu_library_2_1" |
| 2788 | |
| 2789 | |
| 2790 | |
| 2791 | |
| 2792 | echo $ac_n "checking whether integer division by zero raises SIGFPE""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 2793 | echo "configure:2794: checking whether integer division by zero raises SIGFPE" >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2794 | if eval "test \"`echo '$''{'gt_cv_int_divbyzero_sigfpe'+set}'`\" = set"; then |
| 2795 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2796 | else |
| 2797 | |
| 2798 | if test "$cross_compiling" = yes; then |
| 2799 | |
| 2800 | # Guess based on the CPU. |
| 2801 | case "$host_cpu" in |
| 2802 | alpha* | i3456786 | m68k | s390*) |
| 2803 | gt_cv_int_divbyzero_sigfpe="guessing yes";; |
| 2804 | *) |
| 2805 | gt_cv_int_divbyzero_sigfpe="guessing no";; |
| 2806 | esac |
| 2807 | |
| 2808 | else |
| 2809 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 2810 | #line 2811 "configure" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2811 | #include "confdefs.h" |
| 2812 | |
| 2813 | #include <stdlib.h> |
| 2814 | #include <signal.h> |
| 2815 | |
| 2816 | static void |
| 2817 | #ifdef __cplusplus |
| 2818 | sigfpe_handler (int sig) |
| 2819 | #else |
| 2820 | sigfpe_handler (sig) int sig; |
| 2821 | #endif |
| 2822 | { |
| 2823 | /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ |
| 2824 | exit (sig != SIGFPE); |
| 2825 | } |
| 2826 | |
| 2827 | int x = 1; |
| 2828 | int y = 0; |
| 2829 | int z; |
| 2830 | int nan; |
| 2831 | |
| 2832 | int main () |
| 2833 | { |
| 2834 | signal (SIGFPE, sigfpe_handler); |
| 2835 | /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ |
| 2836 | #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) |
| 2837 | signal (SIGTRAP, sigfpe_handler); |
| 2838 | #endif |
| 2839 | /* Linux/SPARC yields signal SIGILL. */ |
| 2840 | #if defined (__sparc__) && defined (__linux__) |
| 2841 | signal (SIGILL, sigfpe_handler); |
| 2842 | #endif |
| 2843 | |
| 2844 | z = x / y; |
| 2845 | nan = y / y; |
| 2846 | exit (1); |
| 2847 | } |
| 2848 | |
| 2849 | EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 2850 | if { (eval echo configure:2851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2851 | then |
| 2852 | gt_cv_int_divbyzero_sigfpe=yes |
| 2853 | else |
| 2854 | echo "configure: failed program was:" >&5 |
| 2855 | cat conftest.$ac_ext >&5 |
| 2856 | rm -fr conftest* |
| 2857 | gt_cv_int_divbyzero_sigfpe=no |
| 2858 | fi |
| 2859 | rm -fr conftest* |
| 2860 | fi |
| 2861 | |
| 2862 | |
| 2863 | fi |
| 2864 | |
| 2865 | echo "$ac_t""$gt_cv_int_divbyzero_sigfpe" 1>&6 |
| 2866 | case "$gt_cv_int_divbyzero_sigfpe" in |
| 2867 | *yes) value=1;; |
| 2868 | *) value=0;; |
| 2869 | esac |
| 2870 | cat >> confdefs.h <<EOF |
| 2871 | #define INTDIV0_RAISES_SIGFPE $value |
| 2872 | EOF |
| 2873 | |
| 2874 | |
| 2875 | |
| 2876 | |
| 2877 | |
| 2878 | if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then |
| 2879 | |
| 2880 | test $ac_cv_type_unsigned_long_long = yes \ |
| 2881 | && ac_type='unsigned long long' \ |
| 2882 | || ac_type='unsigned long' |
| 2883 | cat >> confdefs.h <<EOF |
| 2884 | #define uintmax_t $ac_type |
| 2885 | EOF |
| 2886 | |
| 2887 | fi |
| 2888 | |
| 2889 | |
| 2890 | echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 2891 | echo "configure:2892: checking for inttypes.h" >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2892 | if eval "test \"`echo '$''{'gt_cv_header_inttypes_h'+set}'`\" = set"; then |
| 2893 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2894 | else |
| 2895 | |
| 2896 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 2897 | #line 2898 "configure" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2898 | #include "confdefs.h" |
| 2899 | #include <sys/types.h> |
| 2900 | #include <inttypes.h> |
| 2901 | int main() { |
| 2902 | |
| 2903 | ; return 0; } |
| 2904 | EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 2905 | if { (eval echo configure:2906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2906 | rm -rf conftest* |
| 2907 | gt_cv_header_inttypes_h=yes |
| 2908 | else |
| 2909 | echo "configure: failed program was:" >&5 |
| 2910 | cat conftest.$ac_ext >&5 |
| 2911 | rm -rf conftest* |
| 2912 | gt_cv_header_inttypes_h=no |
| 2913 | fi |
| 2914 | rm -f conftest* |
| 2915 | |
| 2916 | fi |
| 2917 | |
| 2918 | echo "$ac_t""$gt_cv_header_inttypes_h" 1>&6 |
| 2919 | if test $gt_cv_header_inttypes_h = yes; then |
| 2920 | cat >> confdefs.h <<EOF |
| 2921 | #define HAVE_INTTYPES_H 1 |
| 2922 | EOF |
| 2923 | |
| 2924 | fi |
| 2925 | |
| 2926 | |
| 2927 | |
| 2928 | if test $gt_cv_header_inttypes_h = yes; then |
| 2929 | echo $ac_n "checking whether the inttypes.h PRIxNN macros are broken""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 2930 | echo "configure:2931: checking whether the inttypes.h PRIxNN macros are broken" >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2931 | if eval "test \"`echo '$''{'gt_cv_inttypes_pri_broken'+set}'`\" = set"; then |
| 2932 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2933 | else |
| 2934 | |
| 2935 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 2936 | #line 2937 "configure" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2937 | #include "confdefs.h" |
| 2938 | #include <inttypes.h> |
| 2939 | #ifdef PRId32 |
| 2940 | char *p = PRId32; |
| 2941 | #endif |
| 2942 | |
| 2943 | int main() { |
| 2944 | |
| 2945 | ; return 0; } |
| 2946 | EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 2947 | if { (eval echo configure:2948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2948 | rm -rf conftest* |
| 2949 | gt_cv_inttypes_pri_broken=no |
| 2950 | else |
| 2951 | echo "configure: failed program was:" >&5 |
| 2952 | cat conftest.$ac_ext >&5 |
| 2953 | rm -rf conftest* |
| 2954 | gt_cv_inttypes_pri_broken=yes |
| 2955 | fi |
| 2956 | rm -f conftest* |
| 2957 | |
| 2958 | fi |
| 2959 | |
| 2960 | echo "$ac_t""$gt_cv_inttypes_pri_broken" 1>&6 |
| 2961 | fi |
| 2962 | if test "$gt_cv_inttypes_pri_broken" = yes; then |
| 2963 | cat >> confdefs.h <<EOF |
| 2964 | #define PRI_MACROS_BROKEN 1 |
| 2965 | EOF |
| 2966 | |
| 2967 | fi |
| 2968 | |
| 2969 | |
| 2970 | |
| 2971 | |
| 2972 | |
| 2973 | |
| 2974 | |
| 2975 | use_additional=yes |
| 2976 | |
| 2977 | acl_save_prefix="$prefix" |
| 2978 | prefix="$acl_final_prefix" |
| 2979 | acl_save_exec_prefix="$exec_prefix" |
| 2980 | exec_prefix="$acl_final_exec_prefix" |
| 2981 | |
| 2982 | eval additional_includedir=\"$includedir\" |
| 2983 | eval additional_libdir=\"$libdir\" |
| 2984 | |
| 2985 | exec_prefix="$acl_save_exec_prefix" |
| 2986 | prefix="$acl_save_prefix" |
| 2987 | |
| 2988 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. |
| 2989 | if test "${with_libiconv_prefix+set}" = set; then |
| 2990 | withval="$with_libiconv_prefix" |
| 2991 | |
| 2992 | if test "X$withval" = "Xno"; then |
| 2993 | use_additional=no |
| 2994 | else |
| 2995 | if test "X$withval" = "X"; then |
| 2996 | |
| 2997 | acl_save_prefix="$prefix" |
| 2998 | prefix="$acl_final_prefix" |
| 2999 | acl_save_exec_prefix="$exec_prefix" |
| 3000 | exec_prefix="$acl_final_exec_prefix" |
| 3001 | |
| 3002 | eval additional_includedir=\"$includedir\" |
| 3003 | eval additional_libdir=\"$libdir\" |
| 3004 | |
| 3005 | exec_prefix="$acl_save_exec_prefix" |
| 3006 | prefix="$acl_save_prefix" |
| 3007 | |
| 3008 | else |
| 3009 | additional_includedir="$withval/include" |
| 3010 | additional_libdir="$withval/lib" |
| 3011 | fi |
| 3012 | fi |
| 3013 | |
| 3014 | fi |
| 3015 | |
| 3016 | LIBICONV= |
| 3017 | LTLIBICONV= |
| 3018 | INCICONV= |
| 3019 | rpathdirs= |
| 3020 | ltrpathdirs= |
| 3021 | names_already_handled= |
| 3022 | names_next_round='iconv ' |
| 3023 | while test -n "$names_next_round"; do |
| 3024 | names_this_round="$names_next_round" |
| 3025 | names_next_round= |
| 3026 | for name in $names_this_round; do |
| 3027 | already_handled= |
| 3028 | for n in $names_already_handled; do |
| 3029 | if test "$n" = "$name"; then |
| 3030 | already_handled=yes |
| 3031 | break |
| 3032 | fi |
| 3033 | done |
| 3034 | if test -z "$already_handled"; then |
| 3035 | names_already_handled="$names_already_handled $name" |
| 3036 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 3037 | eval value=\"\$HAVE_LIB$uppername\" |
| 3038 | if test -n "$value"; then |
| 3039 | if test "$value" = yes; then |
| 3040 | eval value=\"\$LIB$uppername\" |
| 3041 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" |
| 3042 | eval value=\"\$LTLIB$uppername\" |
| 3043 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" |
| 3044 | else |
| 3045 | : |
| 3046 | fi |
| 3047 | else |
| 3048 | found_dir= |
| 3049 | found_la= |
| 3050 | found_so= |
| 3051 | found_a= |
| 3052 | if test $use_additional = yes; then |
| 3053 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
| 3054 | found_dir="$additional_libdir" |
| 3055 | found_so="$additional_libdir/lib$name.$shlibext" |
| 3056 | if test -f "$additional_libdir/lib$name.la"; then |
| 3057 | found_la="$additional_libdir/lib$name.la" |
| 3058 | fi |
| 3059 | else |
| 3060 | if test -f "$additional_libdir/lib$name.$libext"; then |
| 3061 | found_dir="$additional_libdir" |
| 3062 | found_a="$additional_libdir/lib$name.$libext" |
| 3063 | if test -f "$additional_libdir/lib$name.la"; then |
| 3064 | found_la="$additional_libdir/lib$name.la" |
| 3065 | fi |
| 3066 | fi |
| 3067 | fi |
| 3068 | fi |
| 3069 | if test "X$found_dir" = "X"; then |
| 3070 | for x in $LDFLAGS $LTLIBICONV; do |
| 3071 | |
| 3072 | acl_save_prefix="$prefix" |
| 3073 | prefix="$acl_final_prefix" |
| 3074 | acl_save_exec_prefix="$exec_prefix" |
| 3075 | exec_prefix="$acl_final_exec_prefix" |
| 3076 | eval x=\"$x\" |
| 3077 | exec_prefix="$acl_save_exec_prefix" |
| 3078 | prefix="$acl_save_prefix" |
| 3079 | |
| 3080 | case "$x" in |
| 3081 | -L*) |
| 3082 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 3083 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
| 3084 | found_dir="$dir" |
| 3085 | found_so="$dir/lib$name.$shlibext" |
| 3086 | if test -f "$dir/lib$name.la"; then |
| 3087 | found_la="$dir/lib$name.la" |
| 3088 | fi |
| 3089 | else |
| 3090 | if test -f "$dir/lib$name.$libext"; then |
| 3091 | found_dir="$dir" |
| 3092 | found_a="$dir/lib$name.$libext" |
| 3093 | if test -f "$dir/lib$name.la"; then |
| 3094 | found_la="$dir/lib$name.la" |
| 3095 | fi |
| 3096 | fi |
| 3097 | fi |
| 3098 | ;; |
| 3099 | esac |
| 3100 | if test "X$found_dir" != "X"; then |
| 3101 | break |
| 3102 | fi |
| 3103 | done |
| 3104 | fi |
| 3105 | if test "X$found_dir" != "X"; then |
| 3106 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" |
| 3107 | if test "X$found_so" != "X"; then |
| 3108 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
| 3109 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 3110 | else |
| 3111 | haveit= |
| 3112 | for x in $ltrpathdirs; do |
| 3113 | if test "X$x" = "X$found_dir"; then |
| 3114 | haveit=yes |
| 3115 | break |
| 3116 | fi |
| 3117 | done |
| 3118 | if test -z "$haveit"; then |
| 3119 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 3120 | fi |
| 3121 | if test "$hardcode_direct" = yes; then |
| 3122 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 3123 | else |
| 3124 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 3125 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 3126 | haveit= |
| 3127 | for x in $rpathdirs; do |
| 3128 | if test "X$x" = "X$found_dir"; then |
| 3129 | haveit=yes |
| 3130 | break |
| 3131 | fi |
| 3132 | done |
| 3133 | if test -z "$haveit"; then |
| 3134 | rpathdirs="$rpathdirs $found_dir" |
| 3135 | fi |
| 3136 | else |
| 3137 | haveit= |
| 3138 | for x in $LDFLAGS $LIBICONV; do |
| 3139 | |
| 3140 | acl_save_prefix="$prefix" |
| 3141 | prefix="$acl_final_prefix" |
| 3142 | acl_save_exec_prefix="$exec_prefix" |
| 3143 | exec_prefix="$acl_final_exec_prefix" |
| 3144 | eval x=\"$x\" |
| 3145 | exec_prefix="$acl_save_exec_prefix" |
| 3146 | prefix="$acl_save_prefix" |
| 3147 | |
| 3148 | if test "X$x" = "X-L$found_dir"; then |
| 3149 | haveit=yes |
| 3150 | break |
| 3151 | fi |
| 3152 | done |
| 3153 | if test -z "$haveit"; then |
| 3154 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" |
| 3155 | fi |
| 3156 | if test "$hardcode_minus_L" != no; then |
| 3157 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 3158 | else |
| 3159 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 3160 | fi |
| 3161 | fi |
| 3162 | fi |
| 3163 | fi |
| 3164 | else |
| 3165 | if test "X$found_a" != "X"; then |
| 3166 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" |
| 3167 | else |
| 3168 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" |
| 3169 | fi |
| 3170 | fi |
| 3171 | additional_includedir= |
| 3172 | case "$found_dir" in |
| 3173 | */lib | */lib/) |
| 3174 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
| 3175 | additional_includedir="$basedir/include" |
| 3176 | ;; |
| 3177 | esac |
| 3178 | if test "X$additional_includedir" != "X"; then |
| 3179 | if test "X$additional_includedir" != "X/usr/include"; then |
| 3180 | haveit= |
| 3181 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 3182 | if test -n "$GCC"; then |
| 3183 | case $host_os in |
| 3184 | linux*) haveit=yes;; |
| 3185 | esac |
| 3186 | fi |
| 3187 | fi |
| 3188 | if test -z "$haveit"; then |
| 3189 | for x in $CPPFLAGS $INCICONV; do |
| 3190 | |
| 3191 | acl_save_prefix="$prefix" |
| 3192 | prefix="$acl_final_prefix" |
| 3193 | acl_save_exec_prefix="$exec_prefix" |
| 3194 | exec_prefix="$acl_final_exec_prefix" |
| 3195 | eval x=\"$x\" |
| 3196 | exec_prefix="$acl_save_exec_prefix" |
| 3197 | prefix="$acl_save_prefix" |
| 3198 | |
| 3199 | if test "X$x" = "X-I$additional_includedir"; then |
| 3200 | haveit=yes |
| 3201 | break |
| 3202 | fi |
| 3203 | done |
| 3204 | if test -z "$haveit"; then |
| 3205 | if test -d "$additional_includedir"; then |
| 3206 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" |
| 3207 | fi |
| 3208 | fi |
| 3209 | fi |
| 3210 | fi |
| 3211 | fi |
| 3212 | if test -n "$found_la"; then |
| 3213 | save_libdir="$libdir" |
| 3214 | case "$found_la" in |
| 3215 | */* | *\\*) . "$found_la" ;; |
| 3216 | *) . "./$found_la" ;; |
| 3217 | esac |
| 3218 | libdir="$save_libdir" |
| 3219 | for dep in $dependency_libs; do |
| 3220 | case "$dep" in |
| 3221 | -L*) |
| 3222 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 3223 | if test "X$additional_libdir" != "X/usr/lib"; then |
| 3224 | haveit= |
| 3225 | if test "X$additional_libdir" = "X/usr/local/lib"; then |
| 3226 | if test -n "$GCC"; then |
| 3227 | case $host_os in |
| 3228 | linux*) haveit=yes;; |
| 3229 | esac |
| 3230 | fi |
| 3231 | fi |
| 3232 | if test -z "$haveit"; then |
| 3233 | haveit= |
| 3234 | for x in $LDFLAGS $LIBICONV; do |
| 3235 | |
| 3236 | acl_save_prefix="$prefix" |
| 3237 | prefix="$acl_final_prefix" |
| 3238 | acl_save_exec_prefix="$exec_prefix" |
| 3239 | exec_prefix="$acl_final_exec_prefix" |
| 3240 | eval x=\"$x\" |
| 3241 | exec_prefix="$acl_save_exec_prefix" |
| 3242 | prefix="$acl_save_prefix" |
| 3243 | |
| 3244 | if test "X$x" = "X-L$additional_libdir"; then |
| 3245 | haveit=yes |
| 3246 | break |
| 3247 | fi |
| 3248 | done |
| 3249 | if test -z "$haveit"; then |
| 3250 | if test -d "$additional_libdir"; then |
| 3251 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" |
| 3252 | fi |
| 3253 | fi |
| 3254 | haveit= |
| 3255 | for x in $LDFLAGS $LTLIBICONV; do |
| 3256 | |
| 3257 | acl_save_prefix="$prefix" |
| 3258 | prefix="$acl_final_prefix" |
| 3259 | acl_save_exec_prefix="$exec_prefix" |
| 3260 | exec_prefix="$acl_final_exec_prefix" |
| 3261 | eval x=\"$x\" |
| 3262 | exec_prefix="$acl_save_exec_prefix" |
| 3263 | prefix="$acl_save_prefix" |
| 3264 | |
| 3265 | if test "X$x" = "X-L$additional_libdir"; then |
| 3266 | haveit=yes |
| 3267 | break |
| 3268 | fi |
| 3269 | done |
| 3270 | if test -z "$haveit"; then |
| 3271 | if test -d "$additional_libdir"; then |
| 3272 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" |
| 3273 | fi |
| 3274 | fi |
| 3275 | fi |
| 3276 | fi |
| 3277 | ;; |
| 3278 | -R*) |
| 3279 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 3280 | if test "$enable_rpath" != no; then |
| 3281 | haveit= |
| 3282 | for x in $rpathdirs; do |
| 3283 | if test "X$x" = "X$dir"; then |
| 3284 | haveit=yes |
| 3285 | break |
| 3286 | fi |
| 3287 | done |
| 3288 | if test -z "$haveit"; then |
| 3289 | rpathdirs="$rpathdirs $dir" |
| 3290 | fi |
| 3291 | haveit= |
| 3292 | for x in $ltrpathdirs; do |
| 3293 | if test "X$x" = "X$dir"; then |
| 3294 | haveit=yes |
| 3295 | break |
| 3296 | fi |
| 3297 | done |
| 3298 | if test -z "$haveit"; then |
| 3299 | ltrpathdirs="$ltrpathdirs $dir" |
| 3300 | fi |
| 3301 | fi |
| 3302 | ;; |
| 3303 | -l*) |
| 3304 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 3305 | ;; |
| 3306 | *.la) |
| 3307 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 3308 | ;; |
| 3309 | *) |
| 3310 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" |
| 3311 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" |
| 3312 | ;; |
| 3313 | esac |
| 3314 | done |
| 3315 | fi |
| 3316 | else |
| 3317 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 3318 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" |
| 3319 | fi |
| 3320 | fi |
| 3321 | fi |
| 3322 | done |
| 3323 | done |
| 3324 | if test "X$rpathdirs" != "X"; then |
| 3325 | if test -n "$hardcode_libdir_separator"; then |
| 3326 | alldirs= |
| 3327 | for found_dir in $rpathdirs; do |
| 3328 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 3329 | done |
| 3330 | acl_save_libdir="$libdir" |
| 3331 | libdir="$alldirs" |
| 3332 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 3333 | libdir="$acl_save_libdir" |
| 3334 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 3335 | else |
| 3336 | for found_dir in $rpathdirs; do |
| 3337 | acl_save_libdir="$libdir" |
| 3338 | libdir="$found_dir" |
| 3339 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 3340 | libdir="$acl_save_libdir" |
| 3341 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 3342 | done |
| 3343 | fi |
| 3344 | fi |
| 3345 | if test "X$ltrpathdirs" != "X"; then |
| 3346 | for found_dir in $ltrpathdirs; do |
| 3347 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" |
| 3348 | done |
| 3349 | fi |
| 3350 | |
| 3351 | |
| 3352 | |
| 3353 | |
| 3354 | |
| 3355 | # Extract the first word of "msgfmt", so it can be a program name with args. |
| 3356 | set dummy msgfmt; ac_word=$2 |
| 3357 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 3358 | echo "configure:3359: checking for $ac_word" >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3359 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then |
| 3360 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3361 | else |
| 3362 | case "$MSGFMT" in |
| 3363 | /*) |
| 3364 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. |
| 3365 | ;; |
| 3366 | *) |
| 3367 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 3368 | for ac_dir in $PATH; do |
| 3369 | test -z "$ac_dir" && ac_dir=. |
| 3370 | if test -f $ac_dir/$ac_word; then |
| 3371 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && |
| 3372 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 3373 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" |
| 3374 | break |
| 3375 | fi |
| 3376 | fi |
| 3377 | done |
| 3378 | IFS="$ac_save_ifs" |
| 3379 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" |
| 3380 | ;; |
| 3381 | esac |
| 3382 | fi |
| 3383 | MSGFMT="$ac_cv_path_MSGFMT" |
| 3384 | if test "$MSGFMT" != ":"; then |
| 3385 | echo "$ac_t""$MSGFMT" 1>&6 |
| 3386 | else |
| 3387 | echo "$ac_t""no" 1>&6 |
| 3388 | fi |
| 3389 | |
| 3390 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
| 3391 | set dummy gmsgfmt; ac_word=$2 |
| 3392 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 3393 | echo "configure:3394: checking for $ac_word" >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3394 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
| 3395 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3396 | else |
| 3397 | case "$GMSGFMT" in |
| 3398 | /*) |
| 3399 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
| 3400 | ;; |
| 3401 | ?:/*) |
| 3402 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. |
| 3403 | ;; |
| 3404 | *) |
| 3405 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 3406 | ac_dummy="$PATH" |
| 3407 | for ac_dir in $ac_dummy; do |
| 3408 | test -z "$ac_dir" && ac_dir=. |
| 3409 | if test -f $ac_dir/$ac_word; then |
| 3410 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" |
| 3411 | break |
| 3412 | fi |
| 3413 | done |
| 3414 | IFS="$ac_save_ifs" |
| 3415 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
| 3416 | ;; |
| 3417 | esac |
| 3418 | fi |
| 3419 | GMSGFMT="$ac_cv_path_GMSGFMT" |
| 3420 | if test -n "$GMSGFMT"; then |
| 3421 | echo "$ac_t""$GMSGFMT" 1>&6 |
| 3422 | else |
| 3423 | echo "$ac_t""no" 1>&6 |
| 3424 | fi |
| 3425 | |
| 3426 | |
| 3427 | # Extract the first word of "xgettext", so it can be a program name with args. |
| 3428 | set dummy xgettext; ac_word=$2 |
| 3429 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 3430 | echo "configure:3431: checking for $ac_word" >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3431 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then |
| 3432 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3433 | else |
| 3434 | case "$XGETTEXT" in |
| 3435 | /*) |
| 3436 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. |
| 3437 | ;; |
| 3438 | *) |
| 3439 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 3440 | for ac_dir in $PATH; do |
| 3441 | test -z "$ac_dir" && ac_dir=. |
| 3442 | if test -f $ac_dir/$ac_word; then |
| 3443 | if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 && |
| 3444 | (if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 3445 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" |
| 3446 | break |
| 3447 | fi |
| 3448 | fi |
| 3449 | done |
| 3450 | IFS="$ac_save_ifs" |
| 3451 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" |
| 3452 | ;; |
| 3453 | esac |
| 3454 | fi |
| 3455 | XGETTEXT="$ac_cv_path_XGETTEXT" |
| 3456 | if test "$XGETTEXT" != ":"; then |
| 3457 | echo "$ac_t""$XGETTEXT" 1>&6 |
| 3458 | else |
| 3459 | echo "$ac_t""no" 1>&6 |
| 3460 | fi |
| 3461 | |
| 3462 | rm -f messages.po |
| 3463 | |
| 3464 | # Extract the first word of "msgmerge", so it can be a program name with args. |
| 3465 | set dummy msgmerge; ac_word=$2 |
| 3466 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 3467 | echo "configure:3468: checking for $ac_word" >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3468 | if eval "test \"`echo '$''{'ac_cv_path_MSGMERGE'+set}'`\" = set"; then |
| 3469 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3470 | else |
| 3471 | case "$MSGMERGE" in |
| 3472 | /*) |
| 3473 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. |
| 3474 | ;; |
| 3475 | *) |
| 3476 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 3477 | for ac_dir in $PATH; do |
| 3478 | test -z "$ac_dir" && ac_dir=. |
| 3479 | if test -f $ac_dir/$ac_word; then |
| 3480 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then |
| 3481 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word" |
| 3482 | break |
| 3483 | fi |
| 3484 | fi |
| 3485 | done |
| 3486 | IFS="$ac_save_ifs" |
| 3487 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" |
| 3488 | ;; |
| 3489 | esac |
| 3490 | fi |
| 3491 | MSGMERGE="$ac_cv_path_MSGMERGE" |
| 3492 | if test "$MSGMERGE" != ":"; then |
| 3493 | echo "$ac_t""$MSGMERGE" 1>&6 |
| 3494 | else |
| 3495 | echo "$ac_t""no" 1>&6 |
| 3496 | fi |
| 3497 | |
| 3498 | |
| 3499 | if test "$GMSGFMT" != ":"; then |
| 3500 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && |
| 3501 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 3502 | : ; |
| 3503 | else |
| 3504 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` |
| 3505 | echo "$ac_t""found $GMSGFMT program is not GNU msgfmt; ignore it" 1>&6 |
| 3506 | GMSGFMT=":" |
| 3507 | fi |
| 3508 | fi |
| 3509 | |
| 3510 | if test "$XGETTEXT" != ":"; then |
| 3511 | if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 && |
| 3512 | (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 3513 | : ; |
| 3514 | else |
| 3515 | echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6 |
| 3516 | XGETTEXT=":" |
| 3517 | fi |
| 3518 | rm -f messages.po |
| 3519 | fi |
| 3520 | |
| 3521 | |
| 3522 | |
| 3523 | |
| 3524 | |
| 3525 | for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ |
| 3526 | stdlib.h string.h unistd.h sys/param.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3527 | do |
| 3528 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 3529 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 3530 | echo "configure:3531: checking for $ac_hdr" >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3531 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 3532 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3533 | else |
| 3534 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 3535 | #line 3536 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3536 | #include "confdefs.h" |
| 3537 | #include <$ac_hdr> |
| 3538 | EOF |
| 3539 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 3540 | { (eval echo configure:3541: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3541 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 3542 | if test -z "$ac_err"; then |
| 3543 | rm -rf conftest* |
| 3544 | eval "ac_cv_header_$ac_safe=yes" |
| 3545 | else |
| 3546 | echo "$ac_err" >&5 |
| 3547 | echo "configure: failed program was:" >&5 |
| 3548 | cat conftest.$ac_ext >&5 |
| 3549 | rm -rf conftest* |
| 3550 | eval "ac_cv_header_$ac_safe=no" |
| 3551 | fi |
| 3552 | rm -f conftest* |
| 3553 | fi |
| 3554 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 3555 | echo "$ac_t""yes" 1>&6 |
| 3556 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 3557 | cat >> confdefs.h <<EOF |
| 3558 | #define $ac_tr_hdr 1 |
| 3559 | EOF |
| 3560 | |
| 3561 | else |
| 3562 | echo "$ac_t""no" 1>&6 |
| 3563 | fi |
| 3564 | done |
| 3565 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3566 | for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \ |
| 3567 | geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \ |
| 3568 | strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3569 | do |
| 3570 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 3571 | echo "configure:3572: checking for $ac_func" >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3572 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 3573 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3574 | else |
| 3575 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 3576 | #line 3577 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3577 | #include "confdefs.h" |
| 3578 | /* System header to define __stub macros and hopefully few prototypes, |
| 3579 | which can conflict with char $ac_func(); below. */ |
| 3580 | #include <assert.h> |
| 3581 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3582 | /* We use char because int might match the return type of a gcc2 |
| 3583 | builtin and then its argument prototype would still apply. */ |
| 3584 | char $ac_func(); |
| 3585 | |
| 3586 | int main() { |
| 3587 | |
| 3588 | /* The GNU C library defines this for functions which it implements |
| 3589 | to always fail with ENOSYS. Some functions are actually named |
| 3590 | something starting with __ and the normal name is an alias. */ |
| 3591 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 3592 | choke me |
| 3593 | #else |
| 3594 | $ac_func(); |
| 3595 | #endif |
| 3596 | |
| 3597 | ; return 0; } |
| 3598 | EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 3599 | if { (eval echo configure:3600: \"$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] | 3600 | rm -rf conftest* |
| 3601 | eval "ac_cv_func_$ac_func=yes" |
| 3602 | else |
| 3603 | echo "configure: failed program was:" >&5 |
| 3604 | cat conftest.$ac_ext >&5 |
| 3605 | rm -rf conftest* |
| 3606 | eval "ac_cv_func_$ac_func=no" |
| 3607 | fi |
| 3608 | rm -f conftest* |
| 3609 | fi |
| 3610 | |
| 3611 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 3612 | echo "$ac_t""yes" 1>&6 |
| 3613 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 3614 | cat >> confdefs.h <<EOF |
| 3615 | #define $ac_tr_func 1 |
| 3616 | EOF |
| 3617 | |
| 3618 | else |
| 3619 | echo "$ac_t""no" 1>&6 |
| 3620 | fi |
| 3621 | done |
| 3622 | |
| 3623 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3624 | |
| 3625 | |
| 3626 | |
| 3627 | |
| 3628 | |
| 3629 | am_save_CPPFLAGS="$CPPFLAGS" |
| 3630 | |
| 3631 | for element in $INCICONV; do |
| 3632 | haveit= |
| 3633 | for x in $CPPFLAGS; do |
| 3634 | |
| 3635 | acl_save_prefix="$prefix" |
| 3636 | prefix="$acl_final_prefix" |
| 3637 | acl_save_exec_prefix="$exec_prefix" |
| 3638 | exec_prefix="$acl_final_exec_prefix" |
| 3639 | eval x=\"$x\" |
| 3640 | exec_prefix="$acl_save_exec_prefix" |
| 3641 | prefix="$acl_save_prefix" |
| 3642 | |
| 3643 | if test "X$x" = "X$element"; then |
| 3644 | haveit=yes |
| 3645 | break |
| 3646 | fi |
| 3647 | done |
| 3648 | if test -z "$haveit"; then |
| 3649 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 3650 | fi |
| 3651 | done |
| 3652 | |
| 3653 | |
| 3654 | echo $ac_n "checking for iconv""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 3655 | echo "configure:3656: checking for iconv" >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3656 | if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3657 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3658 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3659 | |
| 3660 | am_cv_func_iconv="no, consider installing GNU libiconv" |
| 3661 | am_cv_lib_iconv=no |
| 3662 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 3663 | #line 3664 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3664 | #include "confdefs.h" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3665 | #include <stdlib.h> |
| 3666 | #include <iconv.h> |
| 3667 | int main() { |
| 3668 | iconv_t cd = iconv_open("",""); |
| 3669 | iconv(cd,NULL,NULL,NULL,NULL); |
| 3670 | iconv_close(cd); |
| 3671 | ; return 0; } |
| 3672 | EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 3673 | if { (eval echo configure:3674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3674 | rm -rf conftest* |
| 3675 | am_cv_func_iconv=yes |
| 3676 | else |
| 3677 | echo "configure: failed program was:" >&5 |
| 3678 | cat conftest.$ac_ext >&5 |
| 3679 | fi |
| 3680 | rm -f conftest* |
| 3681 | if test "$am_cv_func_iconv" != yes; then |
| 3682 | am_save_LIBS="$LIBS" |
| 3683 | LIBS="$LIBS $LIBICONV" |
| 3684 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 3685 | #line 3686 "configure" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3686 | #include "confdefs.h" |
| 3687 | #include <stdlib.h> |
| 3688 | #include <iconv.h> |
| 3689 | int main() { |
| 3690 | iconv_t cd = iconv_open("",""); |
| 3691 | iconv(cd,NULL,NULL,NULL,NULL); |
| 3692 | iconv_close(cd); |
| 3693 | ; return 0; } |
| 3694 | EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 3695 | if { (eval echo configure:3696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3696 | rm -rf conftest* |
| 3697 | am_cv_lib_iconv=yes |
| 3698 | am_cv_func_iconv=yes |
| 3699 | else |
| 3700 | echo "configure: failed program was:" >&5 |
| 3701 | cat conftest.$ac_ext >&5 |
| 3702 | fi |
| 3703 | rm -f conftest* |
| 3704 | LIBS="$am_save_LIBS" |
| 3705 | fi |
| 3706 | |
| 3707 | fi |
| 3708 | |
| 3709 | echo "$ac_t""$am_cv_func_iconv" 1>&6 |
| 3710 | if test "$am_cv_func_iconv" = yes; then |
| 3711 | cat >> confdefs.h <<\EOF |
| 3712 | #define HAVE_ICONV 1 |
| 3713 | EOF |
| 3714 | |
| 3715 | fi |
| 3716 | if test "$am_cv_lib_iconv" = yes; then |
| 3717 | echo $ac_n "checking how to link with libiconv""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 3718 | echo "configure:3719: checking how to link with libiconv" >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3719 | echo "$ac_t""$LIBICONV" 1>&6 |
| 3720 | else |
| 3721 | CPPFLAGS="$am_save_CPPFLAGS" |
| 3722 | LIBICONV= |
| 3723 | LTLIBICONV= |
| 3724 | fi |
| 3725 | |
| 3726 | |
| 3727 | |
| 3728 | if test "$am_cv_func_iconv" = yes; then |
| 3729 | echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 3730 | echo "configure:3731: checking for iconv declaration" >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3731 | if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then |
| 3732 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3733 | else |
| 3734 | |
| 3735 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 3736 | #line 3737 "configure" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3737 | #include "confdefs.h" |
| 3738 | |
| 3739 | #include <stdlib.h> |
| 3740 | #include <iconv.h> |
| 3741 | extern |
| 3742 | #ifdef __cplusplus |
| 3743 | "C" |
| 3744 | #endif |
| 3745 | #if defined(__STDC__) || defined(__cplusplus) |
| 3746 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); |
| 3747 | #else |
| 3748 | size_t iconv(); |
| 3749 | #endif |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3750 | |
| 3751 | int main() { |
| 3752 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3753 | ; return 0; } |
| 3754 | EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 3755 | if { (eval echo configure:3756: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3756 | rm -rf conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3757 | am_cv_proto_iconv_arg1="" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3758 | else |
| 3759 | echo "configure: failed program was:" >&5 |
| 3760 | cat conftest.$ac_ext >&5 |
| 3761 | rm -rf conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3762 | am_cv_proto_iconv_arg1="const" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3763 | fi |
| 3764 | rm -f conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3765 | am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3766 | fi |
| 3767 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3768 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` |
| 3769 | echo "$ac_t""${ac_t:- |
| 3770 | }$am_cv_proto_iconv" 1>&6 |
| 3771 | cat >> confdefs.h <<EOF |
| 3772 | #define ICONV_CONST $am_cv_proto_iconv_arg1 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3773 | EOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3774 | |
| 3775 | fi |
| 3776 | |
| 3777 | |
| 3778 | echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 3779 | echo "configure:3780: checking for nl_langinfo and CODESET" >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3780 | if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then |
| 3781 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3782 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3783 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 3784 | #line 3785 "configure" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3785 | #include "confdefs.h" |
| 3786 | #include <langinfo.h> |
| 3787 | int main() { |
| 3788 | char* cs = nl_langinfo(CODESET); |
| 3789 | ; return 0; } |
| 3790 | EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 3791 | if { (eval echo configure:3792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3792 | rm -rf conftest* |
| 3793 | am_cv_langinfo_codeset=yes |
| 3794 | else |
| 3795 | echo "configure: failed program was:" >&5 |
| 3796 | cat conftest.$ac_ext >&5 |
| 3797 | rm -rf conftest* |
| 3798 | am_cv_langinfo_codeset=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3799 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3800 | rm -f conftest* |
| 3801 | |
| 3802 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3803 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3804 | echo "$ac_t""$am_cv_langinfo_codeset" 1>&6 |
| 3805 | if test $am_cv_langinfo_codeset = yes; then |
| 3806 | cat >> confdefs.h <<\EOF |
| 3807 | #define HAVE_LANGINFO_CODESET 1 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3808 | EOF |
| 3809 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3810 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3811 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3812 | if test $ac_cv_header_locale_h = yes; then |
| 3813 | |
| 3814 | echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 3815 | echo "configure:3816: checking for LC_MESSAGES" >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3816 | if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then |
| 3817 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3818 | else |
| 3819 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 3820 | #line 3821 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3821 | #include "confdefs.h" |
| 3822 | #include <locale.h> |
| 3823 | int main() { |
| 3824 | return LC_MESSAGES |
| 3825 | ; return 0; } |
| 3826 | EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 3827 | if { (eval echo configure:3828: \"$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] | 3828 | rm -rf conftest* |
| 3829 | am_cv_val_LC_MESSAGES=yes |
| 3830 | else |
| 3831 | echo "configure: failed program was:" >&5 |
| 3832 | cat conftest.$ac_ext >&5 |
| 3833 | rm -rf conftest* |
| 3834 | am_cv_val_LC_MESSAGES=no |
| 3835 | fi |
| 3836 | rm -f conftest* |
| 3837 | fi |
| 3838 | |
| 3839 | echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3840 | if test $am_cv_val_LC_MESSAGES = yes; then |
| 3841 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3842 | #define HAVE_LC_MESSAGES 1 |
| 3843 | EOF |
| 3844 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3845 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3846 | |
| 3847 | fi |
| 3848 | |
| 3849 | for ac_prog in bison |
| 3850 | do |
| 3851 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3852 | set dummy $ac_prog; ac_word=$2 |
| 3853 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 3854 | echo "configure:3855: checking for $ac_word" >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3855 | if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then |
| 3856 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3857 | else |
| 3858 | if test -n "$INTLBISON"; then |
| 3859 | ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. |
| 3860 | else |
| 3861 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 3862 | ac_dummy="$PATH" |
| 3863 | for ac_dir in $ac_dummy; do |
| 3864 | test -z "$ac_dir" && ac_dir=. |
| 3865 | if test -f $ac_dir/$ac_word; then |
| 3866 | ac_cv_prog_INTLBISON="$ac_prog" |
| 3867 | break |
| 3868 | fi |
| 3869 | done |
| 3870 | IFS="$ac_save_ifs" |
| 3871 | fi |
| 3872 | fi |
| 3873 | INTLBISON="$ac_cv_prog_INTLBISON" |
| 3874 | if test -n "$INTLBISON"; then |
| 3875 | echo "$ac_t""$INTLBISON" 1>&6 |
| 3876 | else |
| 3877 | echo "$ac_t""no" 1>&6 |
| 3878 | fi |
| 3879 | |
| 3880 | test -n "$INTLBISON" && break |
| 3881 | done |
| 3882 | |
| 3883 | if test -z "$INTLBISON"; then |
| 3884 | ac_verc_fail=yes |
| 3885 | else |
| 3886 | echo $ac_n "checking version of bison""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 3887 | echo "configure:3888: checking version of bison" >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3888 | ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` |
| 3889 | case $ac_prog_version in |
| 3890 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; |
| 3891 | 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) |
| 3892 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
| 3893 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; |
| 3894 | esac |
| 3895 | echo "$ac_t""$ac_prog_version" 1>&6 |
| 3896 | fi |
| 3897 | if test $ac_verc_fail = yes; then |
| 3898 | INTLBISON=: |
| 3899 | fi |
| 3900 | |
| 3901 | |
| 3902 | |
| 3903 | |
| 3904 | |
| 3905 | |
| 3906 | |
| 3907 | |
| 3908 | |
| 3909 | |
| 3910 | |
| 3911 | |
| 3912 | |
| 3913 | |
| 3914 | |
| 3915 | echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 3916 | echo "configure:3917: checking whether NLS is requested" >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3917 | # Check whether --enable-nls or --disable-nls was given. |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3918 | if test "${enable_nls+set}" = set; then |
| 3919 | enableval="$enable_nls" |
| 3920 | USE_NLS=$enableval |
| 3921 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3922 | USE_NLS=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3923 | fi |
| 3924 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3925 | echo "$ac_t""$USE_NLS" 1>&6 |
| 3926 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3927 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3928 | |
| 3929 | BUILD_INCLUDED_LIBINTL=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3930 | USE_INCLUDED_LIBINTL=no |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3931 | |
| 3932 | LIBINTL= |
| 3933 | LTLIBINTL= |
| 3934 | POSUB= |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3935 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3936 | if test "$USE_NLS" = "yes"; then |
| 3937 | gt_use_preinstalled_gnugettext=no |
| 3938 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3939 | echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 3940 | echo "configure:3941: checking whether included gettext is requested" >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3941 | # Check whether --with-included-gettext or --without-included-gettext was given. |
| 3942 | if test "${with_included_gettext+set}" = set; then |
| 3943 | withval="$with_included_gettext" |
| 3944 | nls_cv_force_use_gnu_gettext=$withval |
| 3945 | else |
| 3946 | nls_cv_force_use_gnu_gettext=no |
| 3947 | fi |
| 3948 | |
| 3949 | echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6 |
| 3950 | |
| 3951 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" |
| 3952 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3953 | |
| 3954 | |
| 3955 | |
| 3956 | |
| 3957 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3958 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3959 | echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 3960 | echo "configure:3961: checking for GNU gettext in libc" >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3961 | if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3962 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3963 | else |
| 3964 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 3965 | #line 3966 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3966 | #include "confdefs.h" |
| 3967 | #include <libintl.h> |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3968 | extern int _nl_msg_cat_cntr; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3969 | extern int *_nl_domain_bindings; |
| 3970 | int main() { |
| 3971 | bindtextdomain ("", ""); |
| 3972 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3973 | ; return 0; } |
| 3974 | EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 3975 | if { (eval echo configure:3976: \"$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] | 3976 | rm -rf conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3977 | gt_cv_func_gnugettext1_libc=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3978 | else |
| 3979 | echo "configure: failed program was:" >&5 |
| 3980 | cat conftest.$ac_ext >&5 |
| 3981 | rm -rf conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3982 | gt_cv_func_gnugettext1_libc=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3983 | fi |
| 3984 | rm -f conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3985 | fi |
| 3986 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3987 | echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3988 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3989 | if test "$gt_cv_func_gnugettext1_libc" != "yes"; then |
| 3990 | |
| 3991 | |
| 3992 | |
| 3993 | use_additional=yes |
| 3994 | |
| 3995 | acl_save_prefix="$prefix" |
| 3996 | prefix="$acl_final_prefix" |
| 3997 | acl_save_exec_prefix="$exec_prefix" |
| 3998 | exec_prefix="$acl_final_exec_prefix" |
| 3999 | |
| 4000 | eval additional_includedir=\"$includedir\" |
| 4001 | eval additional_libdir=\"$libdir\" |
| 4002 | |
| 4003 | exec_prefix="$acl_save_exec_prefix" |
| 4004 | prefix="$acl_save_prefix" |
| 4005 | |
| 4006 | # Check whether --with-libintl-prefix or --without-libintl-prefix was given. |
| 4007 | if test "${with_libintl_prefix+set}" = set; then |
| 4008 | withval="$with_libintl_prefix" |
| 4009 | |
| 4010 | if test "X$withval" = "Xno"; then |
| 4011 | use_additional=no |
| 4012 | else |
| 4013 | if test "X$withval" = "X"; then |
| 4014 | |
| 4015 | acl_save_prefix="$prefix" |
| 4016 | prefix="$acl_final_prefix" |
| 4017 | acl_save_exec_prefix="$exec_prefix" |
| 4018 | exec_prefix="$acl_final_exec_prefix" |
| 4019 | |
| 4020 | eval additional_includedir=\"$includedir\" |
| 4021 | eval additional_libdir=\"$libdir\" |
| 4022 | |
| 4023 | exec_prefix="$acl_save_exec_prefix" |
| 4024 | prefix="$acl_save_prefix" |
| 4025 | |
| 4026 | else |
| 4027 | additional_includedir="$withval/include" |
| 4028 | additional_libdir="$withval/lib" |
| 4029 | fi |
| 4030 | fi |
| 4031 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4032 | fi |
| 4033 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4034 | LIBINTL= |
| 4035 | LTLIBINTL= |
| 4036 | INCINTL= |
| 4037 | rpathdirs= |
| 4038 | ltrpathdirs= |
| 4039 | names_already_handled= |
| 4040 | names_next_round='intl ' |
| 4041 | while test -n "$names_next_round"; do |
| 4042 | names_this_round="$names_next_round" |
| 4043 | names_next_round= |
| 4044 | for name in $names_this_round; do |
| 4045 | already_handled= |
| 4046 | for n in $names_already_handled; do |
| 4047 | if test "$n" = "$name"; then |
| 4048 | already_handled=yes |
| 4049 | break |
| 4050 | fi |
| 4051 | done |
| 4052 | if test -z "$already_handled"; then |
| 4053 | names_already_handled="$names_already_handled $name" |
| 4054 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 4055 | eval value=\"\$HAVE_LIB$uppername\" |
| 4056 | if test -n "$value"; then |
| 4057 | if test "$value" = yes; then |
| 4058 | eval value=\"\$LIB$uppername\" |
| 4059 | test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" |
| 4060 | eval value=\"\$LTLIB$uppername\" |
| 4061 | test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" |
| 4062 | else |
| 4063 | : |
| 4064 | fi |
| 4065 | else |
| 4066 | found_dir= |
| 4067 | found_la= |
| 4068 | found_so= |
| 4069 | found_a= |
| 4070 | if test $use_additional = yes; then |
| 4071 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
| 4072 | found_dir="$additional_libdir" |
| 4073 | found_so="$additional_libdir/lib$name.$shlibext" |
| 4074 | if test -f "$additional_libdir/lib$name.la"; then |
| 4075 | found_la="$additional_libdir/lib$name.la" |
| 4076 | fi |
| 4077 | else |
| 4078 | if test -f "$additional_libdir/lib$name.$libext"; then |
| 4079 | found_dir="$additional_libdir" |
| 4080 | found_a="$additional_libdir/lib$name.$libext" |
| 4081 | if test -f "$additional_libdir/lib$name.la"; then |
| 4082 | found_la="$additional_libdir/lib$name.la" |
| 4083 | fi |
| 4084 | fi |
| 4085 | fi |
| 4086 | fi |
| 4087 | if test "X$found_dir" = "X"; then |
| 4088 | for x in $LDFLAGS $LTLIBINTL; do |
| 4089 | |
| 4090 | acl_save_prefix="$prefix" |
| 4091 | prefix="$acl_final_prefix" |
| 4092 | acl_save_exec_prefix="$exec_prefix" |
| 4093 | exec_prefix="$acl_final_exec_prefix" |
| 4094 | eval x=\"$x\" |
| 4095 | exec_prefix="$acl_save_exec_prefix" |
| 4096 | prefix="$acl_save_prefix" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4097 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4098 | case "$x" in |
| 4099 | -L*) |
| 4100 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 4101 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
| 4102 | found_dir="$dir" |
| 4103 | found_so="$dir/lib$name.$shlibext" |
| 4104 | if test -f "$dir/lib$name.la"; then |
| 4105 | found_la="$dir/lib$name.la" |
| 4106 | fi |
| 4107 | else |
| 4108 | if test -f "$dir/lib$name.$libext"; then |
| 4109 | found_dir="$dir" |
| 4110 | found_a="$dir/lib$name.$libext" |
| 4111 | if test -f "$dir/lib$name.la"; then |
| 4112 | found_la="$dir/lib$name.la" |
| 4113 | fi |
| 4114 | fi |
| 4115 | fi |
| 4116 | ;; |
| 4117 | esac |
| 4118 | if test "X$found_dir" != "X"; then |
| 4119 | break |
| 4120 | fi |
| 4121 | done |
| 4122 | fi |
| 4123 | if test "X$found_dir" != "X"; then |
| 4124 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" |
| 4125 | if test "X$found_so" != "X"; then |
| 4126 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
| 4127 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 4128 | else |
| 4129 | haveit= |
| 4130 | for x in $ltrpathdirs; do |
| 4131 | if test "X$x" = "X$found_dir"; then |
| 4132 | haveit=yes |
| 4133 | break |
| 4134 | fi |
| 4135 | done |
| 4136 | if test -z "$haveit"; then |
| 4137 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 4138 | fi |
| 4139 | if test "$hardcode_direct" = yes; then |
| 4140 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 4141 | else |
| 4142 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 4143 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 4144 | haveit= |
| 4145 | for x in $rpathdirs; do |
| 4146 | if test "X$x" = "X$found_dir"; then |
| 4147 | haveit=yes |
| 4148 | break |
| 4149 | fi |
| 4150 | done |
| 4151 | if test -z "$haveit"; then |
| 4152 | rpathdirs="$rpathdirs $found_dir" |
| 4153 | fi |
| 4154 | else |
| 4155 | haveit= |
| 4156 | for x in $LDFLAGS $LIBINTL; do |
| 4157 | |
| 4158 | acl_save_prefix="$prefix" |
| 4159 | prefix="$acl_final_prefix" |
| 4160 | acl_save_exec_prefix="$exec_prefix" |
| 4161 | exec_prefix="$acl_final_exec_prefix" |
| 4162 | eval x=\"$x\" |
| 4163 | exec_prefix="$acl_save_exec_prefix" |
| 4164 | prefix="$acl_save_prefix" |
| 4165 | |
| 4166 | if test "X$x" = "X-L$found_dir"; then |
| 4167 | haveit=yes |
| 4168 | break |
| 4169 | fi |
| 4170 | done |
| 4171 | if test -z "$haveit"; then |
| 4172 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" |
| 4173 | fi |
| 4174 | if test "$hardcode_minus_L" != no; then |
| 4175 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 4176 | else |
| 4177 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 4178 | fi |
| 4179 | fi |
| 4180 | fi |
| 4181 | fi |
| 4182 | else |
| 4183 | if test "X$found_a" != "X"; then |
| 4184 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" |
| 4185 | else |
| 4186 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" |
| 4187 | fi |
| 4188 | fi |
| 4189 | additional_includedir= |
| 4190 | case "$found_dir" in |
| 4191 | */lib | */lib/) |
| 4192 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
| 4193 | additional_includedir="$basedir/include" |
| 4194 | ;; |
| 4195 | esac |
| 4196 | if test "X$additional_includedir" != "X"; then |
| 4197 | if test "X$additional_includedir" != "X/usr/include"; then |
| 4198 | haveit= |
| 4199 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 4200 | if test -n "$GCC"; then |
| 4201 | case $host_os in |
| 4202 | linux*) haveit=yes;; |
| 4203 | esac |
| 4204 | fi |
| 4205 | fi |
| 4206 | if test -z "$haveit"; then |
| 4207 | for x in $CPPFLAGS $INCINTL; do |
| 4208 | |
| 4209 | acl_save_prefix="$prefix" |
| 4210 | prefix="$acl_final_prefix" |
| 4211 | acl_save_exec_prefix="$exec_prefix" |
| 4212 | exec_prefix="$acl_final_exec_prefix" |
| 4213 | eval x=\"$x\" |
| 4214 | exec_prefix="$acl_save_exec_prefix" |
| 4215 | prefix="$acl_save_prefix" |
| 4216 | |
| 4217 | if test "X$x" = "X-I$additional_includedir"; then |
| 4218 | haveit=yes |
| 4219 | break |
| 4220 | fi |
| 4221 | done |
| 4222 | if test -z "$haveit"; then |
| 4223 | if test -d "$additional_includedir"; then |
| 4224 | INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" |
| 4225 | fi |
| 4226 | fi |
| 4227 | fi |
| 4228 | fi |
| 4229 | fi |
| 4230 | if test -n "$found_la"; then |
| 4231 | save_libdir="$libdir" |
| 4232 | case "$found_la" in |
| 4233 | */* | *\\*) . "$found_la" ;; |
| 4234 | *) . "./$found_la" ;; |
| 4235 | esac |
| 4236 | libdir="$save_libdir" |
| 4237 | for dep in $dependency_libs; do |
| 4238 | case "$dep" in |
| 4239 | -L*) |
| 4240 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 4241 | if test "X$additional_libdir" != "X/usr/lib"; then |
| 4242 | haveit= |
| 4243 | if test "X$additional_libdir" = "X/usr/local/lib"; then |
| 4244 | if test -n "$GCC"; then |
| 4245 | case $host_os in |
| 4246 | linux*) haveit=yes;; |
| 4247 | esac |
| 4248 | fi |
| 4249 | fi |
| 4250 | if test -z "$haveit"; then |
| 4251 | haveit= |
| 4252 | for x in $LDFLAGS $LIBINTL; do |
| 4253 | |
| 4254 | acl_save_prefix="$prefix" |
| 4255 | prefix="$acl_final_prefix" |
| 4256 | acl_save_exec_prefix="$exec_prefix" |
| 4257 | exec_prefix="$acl_final_exec_prefix" |
| 4258 | eval x=\"$x\" |
| 4259 | exec_prefix="$acl_save_exec_prefix" |
| 4260 | prefix="$acl_save_prefix" |
| 4261 | |
| 4262 | if test "X$x" = "X-L$additional_libdir"; then |
| 4263 | haveit=yes |
| 4264 | break |
| 4265 | fi |
| 4266 | done |
| 4267 | if test -z "$haveit"; then |
| 4268 | if test -d "$additional_libdir"; then |
| 4269 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" |
| 4270 | fi |
| 4271 | fi |
| 4272 | haveit= |
| 4273 | for x in $LDFLAGS $LTLIBINTL; do |
| 4274 | |
| 4275 | acl_save_prefix="$prefix" |
| 4276 | prefix="$acl_final_prefix" |
| 4277 | acl_save_exec_prefix="$exec_prefix" |
| 4278 | exec_prefix="$acl_final_exec_prefix" |
| 4279 | eval x=\"$x\" |
| 4280 | exec_prefix="$acl_save_exec_prefix" |
| 4281 | prefix="$acl_save_prefix" |
| 4282 | |
| 4283 | if test "X$x" = "X-L$additional_libdir"; then |
| 4284 | haveit=yes |
| 4285 | break |
| 4286 | fi |
| 4287 | done |
| 4288 | if test -z "$haveit"; then |
| 4289 | if test -d "$additional_libdir"; then |
| 4290 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" |
| 4291 | fi |
| 4292 | fi |
| 4293 | fi |
| 4294 | fi |
| 4295 | ;; |
| 4296 | -R*) |
| 4297 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 4298 | if test "$enable_rpath" != no; then |
| 4299 | haveit= |
| 4300 | for x in $rpathdirs; do |
| 4301 | if test "X$x" = "X$dir"; then |
| 4302 | haveit=yes |
| 4303 | break |
| 4304 | fi |
| 4305 | done |
| 4306 | if test -z "$haveit"; then |
| 4307 | rpathdirs="$rpathdirs $dir" |
| 4308 | fi |
| 4309 | haveit= |
| 4310 | for x in $ltrpathdirs; do |
| 4311 | if test "X$x" = "X$dir"; then |
| 4312 | haveit=yes |
| 4313 | break |
| 4314 | fi |
| 4315 | done |
| 4316 | if test -z "$haveit"; then |
| 4317 | ltrpathdirs="$ltrpathdirs $dir" |
| 4318 | fi |
| 4319 | fi |
| 4320 | ;; |
| 4321 | -l*) |
| 4322 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 4323 | ;; |
| 4324 | *.la) |
| 4325 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 4326 | ;; |
| 4327 | *) |
| 4328 | LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" |
| 4329 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" |
| 4330 | ;; |
| 4331 | esac |
| 4332 | done |
| 4333 | fi |
| 4334 | else |
| 4335 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 4336 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" |
| 4337 | fi |
| 4338 | fi |
| 4339 | fi |
| 4340 | done |
| 4341 | done |
| 4342 | if test "X$rpathdirs" != "X"; then |
| 4343 | if test -n "$hardcode_libdir_separator"; then |
| 4344 | alldirs= |
| 4345 | for found_dir in $rpathdirs; do |
| 4346 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 4347 | done |
| 4348 | acl_save_libdir="$libdir" |
| 4349 | libdir="$alldirs" |
| 4350 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 4351 | libdir="$acl_save_libdir" |
| 4352 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 4353 | else |
| 4354 | for found_dir in $rpathdirs; do |
| 4355 | acl_save_libdir="$libdir" |
| 4356 | libdir="$found_dir" |
| 4357 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 4358 | libdir="$acl_save_libdir" |
| 4359 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 4360 | done |
| 4361 | fi |
| 4362 | fi |
| 4363 | if test "X$ltrpathdirs" != "X"; then |
| 4364 | for found_dir in $ltrpathdirs; do |
| 4365 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" |
| 4366 | done |
| 4367 | fi |
| 4368 | |
| 4369 | echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4370 | echo "configure:4371: checking for GNU gettext in libintl" >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4371 | if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4372 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4373 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4374 | gt_save_CPPFLAGS="$CPPFLAGS" |
| 4375 | CPPFLAGS="$CPPFLAGS $INCINTL" |
| 4376 | gt_save_LIBS="$LIBS" |
| 4377 | LIBS="$LIBS $LIBINTL" |
| 4378 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4379 | #line 4380 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4380 | #include "confdefs.h" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4381 | #include <libintl.h> |
| 4382 | extern int _nl_msg_cat_cntr; |
| 4383 | extern |
| 4384 | #ifdef __cplusplus |
| 4385 | "C" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4386 | #endif |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4387 | const char *_nl_expand_alias (); |
| 4388 | int main() { |
| 4389 | bindtextdomain ("", ""); |
| 4390 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4391 | ; return 0; } |
| 4392 | EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4393 | if { (eval echo configure:4394: \"$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] | 4394 | rm -rf conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4395 | gt_cv_func_gnugettext1_libintl=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4396 | else |
| 4397 | echo "configure: failed program was:" >&5 |
| 4398 | cat conftest.$ac_ext >&5 |
| 4399 | rm -rf conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4400 | gt_cv_func_gnugettext1_libintl=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4401 | fi |
| 4402 | rm -f conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4403 | if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then |
| 4404 | LIBS="$LIBS $LIBICONV" |
| 4405 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4406 | #line 4407 "configure" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4407 | #include "confdefs.h" |
| 4408 | #include <libintl.h> |
| 4409 | extern int _nl_msg_cat_cntr; |
| 4410 | extern |
| 4411 | #ifdef __cplusplus |
| 4412 | "C" |
| 4413 | #endif |
| 4414 | const char *_nl_expand_alias (); |
| 4415 | int main() { |
| 4416 | bindtextdomain ("", ""); |
| 4417 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) |
| 4418 | ; return 0; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4419 | EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4420 | if { (eval echo configure:4421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4421 | rm -rf conftest* |
| 4422 | LIBINTL="$LIBINTL $LIBICONV" |
| 4423 | LTLIBINTL="$LTLIBINTL $LTLIBICONV" |
| 4424 | gt_cv_func_gnugettext1_libintl=yes |
| 4425 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4426 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4427 | echo "configure: failed program was:" >&5 |
| 4428 | cat conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4429 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4430 | rm -f conftest* |
| 4431 | fi |
| 4432 | CPPFLAGS="$gt_save_CPPFLAGS" |
| 4433 | LIBS="$gt_save_LIBS" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4434 | fi |
| 4435 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4436 | echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4437 | fi |
| 4438 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4439 | if test "$gt_cv_func_gnugettext1_libc" = "yes" \ |
| 4440 | || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ |
| 4441 | && test "$PACKAGE" != gettext; }; then |
| 4442 | gt_use_preinstalled_gnugettext=yes |
| 4443 | else |
| 4444 | LIBINTL= |
| 4445 | LTLIBINTL= |
| 4446 | INCINTL= |
| 4447 | fi |
| 4448 | |
| 4449 | |
| 4450 | if test "$gt_use_preinstalled_gnugettext" != "yes"; then |
| 4451 | nls_cv_use_gnu_gettext=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4452 | fi |
| 4453 | fi |
| 4454 | |
| 4455 | if test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 4456 | INTLOBJS="\$(GETTOBJS)" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4457 | BUILD_INCLUDED_LIBINTL=yes |
| 4458 | USE_INCLUDED_LIBINTL=yes |
| 4459 | LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV" |
| 4460 | LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV" |
| 4461 | LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4462 | fi |
| 4463 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4464 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 4465 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 4466 | CATOBJEXT=.gmo |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4467 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4468 | |
| 4469 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4470 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 4471 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 4472 | cat >> confdefs.h <<\EOF |
| 4473 | #define ENABLE_NLS 1 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4474 | EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4475 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4476 | else |
| 4477 | USE_NLS=no |
| 4478 | fi |
| 4479 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4480 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4481 | if test "$USE_NLS" = "yes"; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4482 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4483 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
| 4484 | if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then |
| 4485 | echo $ac_n "checking how to link with libintl""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4486 | echo "configure:4487: checking how to link with libintl" >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4487 | echo "$ac_t""$LIBINTL" 1>&6 |
| 4488 | |
| 4489 | for element in $INCINTL; do |
| 4490 | haveit= |
| 4491 | for x in $CPPFLAGS; do |
| 4492 | |
| 4493 | acl_save_prefix="$prefix" |
| 4494 | prefix="$acl_final_prefix" |
| 4495 | acl_save_exec_prefix="$exec_prefix" |
| 4496 | exec_prefix="$acl_final_exec_prefix" |
| 4497 | eval x=\"$x\" |
| 4498 | exec_prefix="$acl_save_exec_prefix" |
| 4499 | prefix="$acl_save_prefix" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4500 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4501 | if test "X$x" = "X$element"; then |
| 4502 | haveit=yes |
| 4503 | break |
| 4504 | fi |
| 4505 | done |
| 4506 | if test -z "$haveit"; then |
| 4507 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 4508 | fi |
| 4509 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4510 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4511 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4512 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4513 | cat >> confdefs.h <<\EOF |
| 4514 | #define HAVE_GETTEXT 1 |
| 4515 | EOF |
| 4516 | |
| 4517 | cat >> confdefs.h <<\EOF |
| 4518 | #define HAVE_DCGETTEXT 1 |
| 4519 | EOF |
| 4520 | |
| 4521 | fi |
| 4522 | |
| 4523 | POSUB=po |
| 4524 | fi |
| 4525 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4526 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4527 | if test "$PACKAGE" = gettext; then |
| 4528 | BUILD_INCLUDED_LIBINTL=yes |
| 4529 | fi |
| 4530 | |
| 4531 | |
| 4532 | |
| 4533 | |
| 4534 | |
| 4535 | |
| 4536 | nls_cv_header_intl= |
| 4537 | nls_cv_header_libgt= |
| 4538 | |
| 4539 | DATADIRNAME=share |
| 4540 | |
| 4541 | |
| 4542 | INSTOBJEXT=.mo |
| 4543 | |
| 4544 | |
| 4545 | GENCAT=gencat |
| 4546 | |
| 4547 | |
| 4548 | INTL_LIBTOOL_SUFFIX_PREFIX= |
| 4549 | |
| 4550 | |
| 4551 | |
| 4552 | INTLLIBS="$LIBINTL" |
| 4553 | |
| 4554 | |
| 4555 | |
| 4556 | |
| 4557 | |
| 4558 | |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 4559 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4560 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4561 | echo "configure:4562: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 4562 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4563 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
| 4564 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4565 | else |
| 4566 | cat > conftestmake <<\EOF |
| 4567 | all: |
| 4568 | @echo 'ac_maketemp="${MAKE}"' |
| 4569 | EOF |
| 4570 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 4571 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
| 4572 | if test -n "$ac_maketemp"; then |
| 4573 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 4574 | else |
| 4575 | eval ac_cv_prog_make_${ac_make}_set=no |
| 4576 | fi |
| 4577 | rm -f conftestmake |
| 4578 | fi |
| 4579 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
| 4580 | echo "$ac_t""yes" 1>&6 |
| 4581 | SET_MAKE= |
| 4582 | else |
| 4583 | echo "$ac_t""no" 1>&6 |
| 4584 | SET_MAKE="MAKE=${MAKE-make}" |
| 4585 | fi |
| 4586 | |
| 4587 | # Extract the first word of "ln", so it can be a program name with args. |
| 4588 | set dummy ln; ac_word=$2 |
| 4589 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4590 | echo "configure:4591: checking for $ac_word" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4591 | if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then |
| 4592 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4593 | else |
| 4594 | case "$LN" in |
| 4595 | /*) |
| 4596 | ac_cv_path_LN="$LN" # Let the user override the test with a path. |
| 4597 | ;; |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 4598 | ?:/*) |
| 4599 | ac_cv_path_LN="$LN" # Let the user override the test with a dos path. |
| 4600 | ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4601 | *) |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 4602 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4603 | ac_dummy="$PATH" |
| 4604 | for ac_dir in $ac_dummy; do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4605 | test -z "$ac_dir" && ac_dir=. |
| 4606 | if test -f $ac_dir/$ac_word; then |
| 4607 | ac_cv_path_LN="$ac_dir/$ac_word" |
| 4608 | break |
| 4609 | fi |
| 4610 | done |
| 4611 | IFS="$ac_save_ifs" |
| 4612 | test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" |
| 4613 | ;; |
| 4614 | esac |
| 4615 | fi |
| 4616 | LN="$ac_cv_path_LN" |
| 4617 | if test -n "$LN"; then |
| 4618 | echo "$ac_t""$LN" 1>&6 |
| 4619 | else |
| 4620 | echo "$ac_t""no" 1>&6 |
| 4621 | fi |
| 4622 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 4623 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4624 | echo "configure:4625: checking whether ln -s works" >&5 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 4625 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
| 4626 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4627 | else |
| 4628 | rm -f conftestdata |
| 4629 | if ln -s X conftestdata 2>/dev/null |
| 4630 | then |
| 4631 | rm -f conftestdata |
| 4632 | ac_cv_prog_LN_S="ln -s" |
| 4633 | else |
| 4634 | ac_cv_prog_LN_S=ln |
| 4635 | fi |
| 4636 | fi |
| 4637 | LN_S="$ac_cv_prog_LN_S" |
| 4638 | if test "$ac_cv_prog_LN_S" = "ln -s"; then |
| 4639 | echo "$ac_t""yes" 1>&6 |
| 4640 | else |
| 4641 | echo "$ac_t""no" 1>&6 |
| 4642 | fi |
| 4643 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4644 | # Extract the first word of "mv", so it can be a program name with args. |
| 4645 | set dummy mv; ac_word=$2 |
| 4646 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4647 | echo "configure:4648: checking for $ac_word" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4648 | if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then |
| 4649 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4650 | else |
| 4651 | case "$MV" in |
| 4652 | /*) |
| 4653 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 4654 | ;; |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 4655 | ?:/*) |
| 4656 | ac_cv_path_MV="$MV" # Let the user override the test with a dos path. |
| 4657 | ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4658 | *) |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 4659 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4660 | ac_dummy="$PATH" |
| 4661 | for ac_dir in $ac_dummy; do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4662 | test -z "$ac_dir" && ac_dir=. |
| 4663 | if test -f $ac_dir/$ac_word; then |
| 4664 | ac_cv_path_MV="$ac_dir/$ac_word" |
| 4665 | break |
| 4666 | fi |
| 4667 | done |
| 4668 | IFS="$ac_save_ifs" |
| 4669 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 4670 | ;; |
| 4671 | esac |
| 4672 | fi |
| 4673 | MV="$ac_cv_path_MV" |
| 4674 | if test -n "$MV"; then |
| 4675 | echo "$ac_t""$MV" 1>&6 |
| 4676 | else |
| 4677 | echo "$ac_t""no" 1>&6 |
| 4678 | fi |
| 4679 | |
| 4680 | # Extract the first word of "cp", so it can be a program name with args. |
| 4681 | set dummy cp; ac_word=$2 |
| 4682 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4683 | echo "configure:4684: checking for $ac_word" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4684 | if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then |
| 4685 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4686 | else |
| 4687 | case "$CP" in |
| 4688 | /*) |
| 4689 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 4690 | ;; |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 4691 | ?:/*) |
| 4692 | ac_cv_path_CP="$CP" # Let the user override the test with a dos path. |
| 4693 | ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4694 | *) |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 4695 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4696 | ac_dummy="$PATH" |
| 4697 | for ac_dir in $ac_dummy; do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4698 | test -z "$ac_dir" && ac_dir=. |
| 4699 | if test -f $ac_dir/$ac_word; then |
| 4700 | ac_cv_path_CP="$ac_dir/$ac_word" |
| 4701 | break |
| 4702 | fi |
| 4703 | done |
| 4704 | IFS="$ac_save_ifs" |
| 4705 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 4706 | ;; |
| 4707 | esac |
| 4708 | fi |
| 4709 | CP="$ac_cv_path_CP" |
| 4710 | if test -n "$CP"; then |
| 4711 | echo "$ac_t""$CP" 1>&6 |
| 4712 | else |
| 4713 | echo "$ac_t""no" 1>&6 |
| 4714 | fi |
| 4715 | |
| 4716 | # Extract the first word of "rm", so it can be a program name with args. |
| 4717 | set dummy rm; ac_word=$2 |
| 4718 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4719 | echo "configure:4720: checking for $ac_word" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4720 | if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then |
| 4721 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4722 | else |
| 4723 | case "$RM" in |
| 4724 | /*) |
| 4725 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 4726 | ;; |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 4727 | ?:/*) |
| 4728 | ac_cv_path_RM="$RM" # Let the user override the test with a dos path. |
| 4729 | ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4730 | *) |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 4731 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4732 | ac_dummy="$PATH" |
| 4733 | for ac_dir in $ac_dummy; do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4734 | test -z "$ac_dir" && ac_dir=. |
| 4735 | if test -f $ac_dir/$ac_word; then |
| 4736 | ac_cv_path_RM="$ac_dir/$ac_word" |
| 4737 | break |
| 4738 | fi |
| 4739 | done |
| 4740 | IFS="$ac_save_ifs" |
| 4741 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 4742 | ;; |
| 4743 | esac |
| 4744 | fi |
| 4745 | RM="$ac_cv_path_RM" |
| 4746 | if test -n "$RM"; then |
| 4747 | echo "$ac_t""$RM" 1>&6 |
| 4748 | else |
| 4749 | echo "$ac_t""no" 1>&6 |
| 4750 | fi |
| 4751 | |
| 4752 | # Extract the first word of "chmod", so it can be a program name with args. |
| 4753 | set dummy chmod; ac_word=$2 |
| 4754 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4755 | echo "configure:4756: checking for $ac_word" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4756 | if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then |
| 4757 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4758 | else |
| 4759 | case "$CHMOD" in |
| 4760 | /*) |
| 4761 | ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. |
| 4762 | ;; |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 4763 | ?:/*) |
| 4764 | ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a dos path. |
| 4765 | ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4766 | *) |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 4767 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4768 | ac_dummy="$PATH" |
| 4769 | for ac_dir in $ac_dummy; do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4770 | test -z "$ac_dir" && ac_dir=. |
| 4771 | if test -f $ac_dir/$ac_word; then |
| 4772 | ac_cv_path_CHMOD="$ac_dir/$ac_word" |
| 4773 | break |
| 4774 | fi |
| 4775 | done |
| 4776 | IFS="$ac_save_ifs" |
| 4777 | test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":" |
| 4778 | ;; |
| 4779 | esac |
| 4780 | fi |
| 4781 | CHMOD="$ac_cv_path_CHMOD" |
| 4782 | if test -n "$CHMOD"; then |
| 4783 | echo "$ac_t""$CHMOD" 1>&6 |
| 4784 | else |
| 4785 | echo "$ac_t""no" 1>&6 |
| 4786 | fi |
| 4787 | |
| 4788 | # Extract the first word of "awk", so it can be a program name with args. |
| 4789 | set dummy awk; ac_word=$2 |
| 4790 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4791 | echo "configure:4792: checking for $ac_word" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4792 | if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then |
| 4793 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4794 | else |
| 4795 | case "$AWK" in |
| 4796 | /*) |
| 4797 | ac_cv_path_AWK="$AWK" # Let the user override the test with a path. |
| 4798 | ;; |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 4799 | ?:/*) |
| 4800 | ac_cv_path_AWK="$AWK" # Let the user override the test with a dos path. |
| 4801 | ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4802 | *) |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 4803 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4804 | ac_dummy="$PATH" |
| 4805 | for ac_dir in $ac_dummy; do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4806 | test -z "$ac_dir" && ac_dir=. |
| 4807 | if test -f $ac_dir/$ac_word; then |
| 4808 | ac_cv_path_AWK="$ac_dir/$ac_word" |
| 4809 | break |
| 4810 | fi |
| 4811 | done |
| 4812 | IFS="$ac_save_ifs" |
| 4813 | test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk" |
| 4814 | ;; |
| 4815 | esac |
| 4816 | fi |
| 4817 | AWK="$ac_cv_path_AWK" |
| 4818 | if test -n "$AWK"; then |
| 4819 | echo "$ac_t""$AWK" 1>&6 |
| 4820 | else |
| 4821 | echo "$ac_t""no" 1>&6 |
| 4822 | fi |
| 4823 | |
| 4824 | # Extract the first word of "sed", so it can be a program name with args. |
| 4825 | set dummy sed; ac_word=$2 |
| 4826 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4827 | echo "configure:4828: checking for $ac_word" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4828 | if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then |
| 4829 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4830 | else |
| 4831 | case "$SED" in |
| 4832 | /*) |
| 4833 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 4834 | ;; |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 4835 | ?:/*) |
| 4836 | ac_cv_path_SED="$SED" # Let the user override the test with a dos path. |
| 4837 | ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4838 | *) |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 4839 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4840 | ac_dummy="$PATH" |
| 4841 | for ac_dir in $ac_dummy; do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4842 | test -z "$ac_dir" && ac_dir=. |
| 4843 | if test -f $ac_dir/$ac_word; then |
| 4844 | ac_cv_path_SED="$ac_dir/$ac_word" |
| 4845 | break |
| 4846 | fi |
| 4847 | done |
| 4848 | IFS="$ac_save_ifs" |
| 4849 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 4850 | ;; |
| 4851 | esac |
| 4852 | fi |
| 4853 | SED="$ac_cv_path_SED" |
| 4854 | if test -n "$SED"; then |
| 4855 | echo "$ac_t""$SED" 1>&6 |
| 4856 | else |
| 4857 | echo "$ac_t""no" 1>&6 |
| 4858 | fi |
| 4859 | |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 4860 | # Extract the first word of "perl", so it can be a program name with args. |
| 4861 | set dummy perl; ac_word=$2 |
| 4862 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4863 | echo "configure:4864: checking for $ac_word" >&5 |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 4864 | if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then |
| 4865 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4866 | else |
| 4867 | case "$PERL" in |
| 4868 | /*) |
| 4869 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 4870 | ;; |
| 4871 | ?:/*) |
| 4872 | ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path. |
| 4873 | ;; |
| 4874 | *) |
| 4875 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4876 | ac_dummy="$PATH" |
| 4877 | for ac_dir in $ac_dummy; do |
| 4878 | test -z "$ac_dir" && ac_dir=. |
| 4879 | if test -f $ac_dir/$ac_word; then |
| 4880 | ac_cv_path_PERL="$ac_dir/$ac_word" |
| 4881 | break |
| 4882 | fi |
| 4883 | done |
| 4884 | IFS="$ac_save_ifs" |
| 4885 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl" |
| 4886 | ;; |
| 4887 | esac |
| 4888 | fi |
| 4889 | PERL="$ac_cv_path_PERL" |
| 4890 | if test -n "$PERL"; then |
| 4891 | echo "$ac_t""$PERL" 1>&6 |
| 4892 | else |
| 4893 | echo "$ac_t""no" 1>&6 |
| 4894 | fi |
| 4895 | |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 4896 | # Extract the first word of "ldconfig", so it can be a program name with args. |
| 4897 | set dummy ldconfig; ac_word=$2 |
| 4898 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4899 | echo "configure:4900: checking for $ac_word" >&5 |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 4900 | if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then |
| 4901 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4902 | else |
| 4903 | case "$LDCONFIG" in |
| 4904 | /*) |
| 4905 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. |
| 4906 | ;; |
| 4907 | ?:/*) |
| 4908 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a dos path. |
| 4909 | ;; |
| 4910 | *) |
| 4911 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4912 | ac_dummy="$PATH" |
| 4913 | for ac_dir in $ac_dummy; do |
| 4914 | test -z "$ac_dir" && ac_dir=. |
| 4915 | if test -f $ac_dir/$ac_word; then |
| 4916 | ac_cv_path_LDCONFIG="$ac_dir/$ac_word" |
| 4917 | break |
| 4918 | fi |
| 4919 | done |
| 4920 | IFS="$ac_save_ifs" |
| 4921 | test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":" |
| 4922 | ;; |
| 4923 | esac |
| 4924 | fi |
| 4925 | LDCONFIG="$ac_cv_path_LDCONFIG" |
| 4926 | if test -n "$LDCONFIG"; then |
| 4927 | echo "$ac_t""$LDCONFIG" 1>&6 |
| 4928 | else |
| 4929 | echo "$ac_t""no" 1>&6 |
| 4930 | fi |
| 4931 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4932 | echo $ac_n "checking build system type""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4933 | echo "configure:4934: checking build system type" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4934 | |
| 4935 | build_alias=$build |
| 4936 | case "$build_alias" in |
| 4937 | NONE) |
| 4938 | case $nonopt in |
| 4939 | NONE) build_alias=$host_alias ;; |
| 4940 | *) build_alias=$nonopt ;; |
| 4941 | esac ;; |
| 4942 | esac |
| 4943 | |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 4944 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 4945 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 4946 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 4947 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4948 | echo "$ac_t""$build" 1>&6 |
| 4949 | |
| 4950 | if test $host != $build; then |
| 4951 | ac_tool_prefix=${host_alias}- |
| 4952 | else |
| 4953 | ac_tool_prefix= |
| 4954 | fi |
| 4955 | |
| 4956 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 4957 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
| 4958 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4959 | echo "configure:4960: checking for $ac_word" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4960 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
| 4961 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4962 | else |
| 4963 | if test -n "$AR"; then |
| 4964 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 4965 | else |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 4966 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4967 | ac_dummy="$PATH" |
| 4968 | for ac_dir in $ac_dummy; do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4969 | test -z "$ac_dir" && ac_dir=. |
| 4970 | if test -f $ac_dir/$ac_word; then |
| 4971 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 4972 | break |
| 4973 | fi |
| 4974 | done |
| 4975 | IFS="$ac_save_ifs" |
| 4976 | fi |
| 4977 | fi |
| 4978 | AR="$ac_cv_prog_AR" |
| 4979 | if test -n "$AR"; then |
| 4980 | echo "$ac_t""$AR" 1>&6 |
| 4981 | else |
| 4982 | echo "$ac_t""no" 1>&6 |
| 4983 | fi |
| 4984 | |
| 4985 | |
| 4986 | if test -z "$ac_cv_prog_AR"; then |
| 4987 | if test -n "$ac_tool_prefix"; then |
| 4988 | # Extract the first word of "ar", so it can be a program name with args. |
| 4989 | set dummy ar; ac_word=$2 |
| 4990 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4991 | echo "configure:4992: checking for $ac_word" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4992 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
| 4993 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4994 | else |
| 4995 | if test -n "$AR"; then |
| 4996 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 4997 | else |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 4998 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4999 | ac_dummy="$PATH" |
| 5000 | for ac_dir in $ac_dummy; do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5001 | test -z "$ac_dir" && ac_dir=. |
| 5002 | if test -f $ac_dir/$ac_word; then |
| 5003 | ac_cv_prog_AR="ar" |
| 5004 | break |
| 5005 | fi |
| 5006 | done |
| 5007 | IFS="$ac_save_ifs" |
| 5008 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
| 5009 | fi |
| 5010 | fi |
| 5011 | AR="$ac_cv_prog_AR" |
| 5012 | if test -n "$AR"; then |
| 5013 | echo "$ac_t""$AR" 1>&6 |
| 5014 | else |
| 5015 | echo "$ac_t""no" 1>&6 |
| 5016 | fi |
| 5017 | |
| 5018 | else |
| 5019 | AR="ar" |
| 5020 | fi |
| 5021 | fi |
| 5022 | |
| 5023 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 5024 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 5025 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5026 | echo "configure:5027: checking for $ac_word" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5027 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
| 5028 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5029 | else |
| 5030 | if test -n "$RANLIB"; then |
| 5031 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 5032 | else |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 5033 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 5034 | ac_dummy="$PATH" |
| 5035 | for ac_dir in $ac_dummy; do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5036 | test -z "$ac_dir" && ac_dir=. |
| 5037 | if test -f $ac_dir/$ac_word; then |
| 5038 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 5039 | break |
| 5040 | fi |
| 5041 | done |
| 5042 | IFS="$ac_save_ifs" |
| 5043 | fi |
| 5044 | fi |
| 5045 | RANLIB="$ac_cv_prog_RANLIB" |
| 5046 | if test -n "$RANLIB"; then |
| 5047 | echo "$ac_t""$RANLIB" 1>&6 |
| 5048 | else |
| 5049 | echo "$ac_t""no" 1>&6 |
| 5050 | fi |
| 5051 | |
| 5052 | |
| 5053 | if test -z "$ac_cv_prog_RANLIB"; then |
| 5054 | if test -n "$ac_tool_prefix"; then |
| 5055 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 5056 | set dummy ranlib; ac_word=$2 |
| 5057 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5058 | echo "configure:5059: checking for $ac_word" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5059 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
| 5060 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5061 | else |
| 5062 | if test -n "$RANLIB"; then |
| 5063 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 5064 | else |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 5065 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 5066 | ac_dummy="$PATH" |
| 5067 | for ac_dir in $ac_dummy; do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5068 | test -z "$ac_dir" && ac_dir=. |
| 5069 | if test -f $ac_dir/$ac_word; then |
| 5070 | ac_cv_prog_RANLIB="ranlib" |
| 5071 | break |
| 5072 | fi |
| 5073 | done |
| 5074 | IFS="$ac_save_ifs" |
| 5075 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
| 5076 | fi |
| 5077 | fi |
| 5078 | RANLIB="$ac_cv_prog_RANLIB" |
| 5079 | if test -n "$RANLIB"; then |
| 5080 | echo "$ac_t""$RANLIB" 1>&6 |
| 5081 | else |
| 5082 | echo "$ac_t""no" 1>&6 |
| 5083 | fi |
| 5084 | |
| 5085 | else |
| 5086 | RANLIB=":" |
| 5087 | fi |
| 5088 | fi |
| 5089 | |
| 5090 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 5091 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 5092 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5093 | echo "configure:5094: checking for $ac_word" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5094 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
| 5095 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5096 | else |
| 5097 | if test -n "$STRIP"; then |
| 5098 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 5099 | else |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 5100 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 5101 | ac_dummy="$PATH" |
| 5102 | for ac_dir in $ac_dummy; do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5103 | test -z "$ac_dir" && ac_dir=. |
| 5104 | if test -f $ac_dir/$ac_word; then |
| 5105 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 5106 | break |
| 5107 | fi |
| 5108 | done |
| 5109 | IFS="$ac_save_ifs" |
| 5110 | fi |
| 5111 | fi |
| 5112 | STRIP="$ac_cv_prog_STRIP" |
| 5113 | if test -n "$STRIP"; then |
| 5114 | echo "$ac_t""$STRIP" 1>&6 |
| 5115 | else |
| 5116 | echo "$ac_t""no" 1>&6 |
| 5117 | fi |
| 5118 | |
| 5119 | |
| 5120 | if test -z "$ac_cv_prog_STRIP"; then |
| 5121 | if test -n "$ac_tool_prefix"; then |
| 5122 | # Extract the first word of "strip", so it can be a program name with args. |
| 5123 | set dummy strip; ac_word=$2 |
| 5124 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5125 | echo "configure:5126: checking for $ac_word" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5126 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
| 5127 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5128 | else |
| 5129 | if test -n "$STRIP"; then |
| 5130 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 5131 | else |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 5132 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 5133 | ac_dummy="$PATH" |
| 5134 | for ac_dir in $ac_dummy; do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5135 | test -z "$ac_dir" && ac_dir=. |
| 5136 | if test -f $ac_dir/$ac_word; then |
| 5137 | ac_cv_prog_STRIP="strip" |
| 5138 | break |
| 5139 | fi |
| 5140 | done |
| 5141 | IFS="$ac_save_ifs" |
| 5142 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" |
| 5143 | fi |
| 5144 | fi |
| 5145 | STRIP="$ac_cv_prog_STRIP" |
| 5146 | if test -n "$STRIP"; then |
| 5147 | echo "$ac_t""$STRIP" 1>&6 |
| 5148 | else |
| 5149 | echo "$ac_t""no" 1>&6 |
| 5150 | fi |
| 5151 | |
| 5152 | else |
| 5153 | STRIP=":" |
| 5154 | fi |
| 5155 | fi |
| 5156 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5157 | # Find a good install program. We prefer a C program (faster), |
| 5158 | # so one script is as good as another. But avoid the broken or |
| 5159 | # incompatible versions: |
| 5160 | # SysV /etc/install, /usr/sbin/install |
| 5161 | # SunOS /usr/etc/install |
| 5162 | # IRIX /sbin/install |
| 5163 | # AIX /bin/install |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 5164 | # 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] | 5165 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 5166 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 5167 | # ./install, which can be erroneously created by make from ./install.sh. |
| 5168 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5169 | echo "configure:5170: checking for a BSD compatible install" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5170 | if test -z "$INSTALL"; then |
| 5171 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
| 5172 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5173 | else |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 5174 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5175 | for ac_dir in $PATH; do |
| 5176 | # Account for people who put trailing slashes in PATH elements. |
| 5177 | case "$ac_dir/" in |
| 5178 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
| 5179 | *) |
| 5180 | # 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] | 5181 | # Don't use installbsd from OSF since it installs stuff as root |
| 5182 | # by default. |
| 5183 | for ac_prog in ginstall scoinst install; do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5184 | if test -f $ac_dir/$ac_prog; then |
| 5185 | if test $ac_prog = install && |
| 5186 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
| 5187 | # AIX install. It has an incompatible calling convention. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5188 | : |
| 5189 | else |
| 5190 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
| 5191 | break 2 |
| 5192 | fi |
| 5193 | fi |
| 5194 | done |
| 5195 | ;; |
| 5196 | esac |
| 5197 | done |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5198 | IFS="$ac_save_IFS" |
| 5199 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5200 | fi |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5201 | if test "${ac_cv_path_install+set}" = set; then |
| 5202 | INSTALL="$ac_cv_path_install" |
| 5203 | else |
| 5204 | # As a last resort, use the slow shell script. We don't cache a |
| 5205 | # path for INSTALL within a source directory, because that will |
| 5206 | # break other packages using the cache if that directory is |
| 5207 | # removed, or if the path is relative. |
| 5208 | INSTALL="$ac_install_sh" |
| 5209 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5210 | fi |
| 5211 | echo "$ac_t""$INSTALL" 1>&6 |
| 5212 | |
| 5213 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 5214 | # It thinks the first close brace ends the variable substitution. |
| 5215 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 5216 | |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 5217 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
| 5218 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5219 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 5220 | |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 5221 | # See if we need a separate native compiler. |
| 5222 | if test $cross_compiling = no; then |
| 5223 | BUILD_CC="$CC" |
| 5224 | |
| 5225 | else |
| 5226 | for ac_prog in gcc cc |
| 5227 | do |
| 5228 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5229 | set dummy $ac_prog; ac_word=$2 |
| 5230 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5231 | echo "configure:5232: checking for $ac_word" >&5 |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 5232 | if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then |
| 5233 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5234 | else |
| 5235 | if test -n "$BUILD_CC"; then |
| 5236 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 5237 | else |
| 5238 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 5239 | ac_dummy="$PATH" |
| 5240 | for ac_dir in $ac_dummy; do |
| 5241 | test -z "$ac_dir" && ac_dir=. |
| 5242 | if test -f $ac_dir/$ac_word; then |
| 5243 | ac_cv_prog_BUILD_CC="$ac_prog" |
| 5244 | break |
| 5245 | fi |
| 5246 | done |
| 5247 | IFS="$ac_save_ifs" |
| 5248 | fi |
| 5249 | fi |
| 5250 | BUILD_CC="$ac_cv_prog_BUILD_CC" |
| 5251 | if test -n "$BUILD_CC"; then |
| 5252 | echo "$ac_t""$BUILD_CC" 1>&6 |
| 5253 | else |
| 5254 | echo "$ac_t""no" 1>&6 |
| 5255 | fi |
| 5256 | |
| 5257 | test -n "$BUILD_CC" && break |
| 5258 | done |
| 5259 | |
| 5260 | fi |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5261 | 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/socket.h sys/sysmacros.h sys/time.h sys/stat.h sys/types.h sys/wait.h sys/resource.h net/if.h netinet/in.h |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5262 | do |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5263 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5264 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5265 | echo "configure:5266: checking for $ac_hdr" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5266 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 5267 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5268 | else |
| 5269 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5270 | #line 5271 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5271 | #include "confdefs.h" |
| 5272 | #include <$ac_hdr> |
| 5273 | EOF |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5274 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5275 | { (eval echo configure:5276: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 5276 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5277 | if test -z "$ac_err"; then |
| 5278 | rm -rf conftest* |
| 5279 | eval "ac_cv_header_$ac_safe=yes" |
| 5280 | else |
| 5281 | echo "$ac_err" >&5 |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5282 | echo "configure: failed program was:" >&5 |
| 5283 | cat conftest.$ac_ext >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5284 | rm -rf conftest* |
| 5285 | eval "ac_cv_header_$ac_safe=no" |
| 5286 | fi |
| 5287 | rm -f conftest* |
| 5288 | fi |
| 5289 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 5290 | echo "$ac_t""yes" 1>&6 |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5291 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5292 | cat >> confdefs.h <<EOF |
| 5293 | #define $ac_tr_hdr 1 |
| 5294 | EOF |
| 5295 | |
| 5296 | else |
| 5297 | echo "$ac_t""no" 1>&6 |
| 5298 | fi |
| 5299 | done |
| 5300 | |
| 5301 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5302 | echo "configure:5303: checking for vprintf" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5303 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
| 5304 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5305 | else |
| 5306 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5307 | #line 5308 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5308 | #include "confdefs.h" |
| 5309 | /* System header to define __stub macros and hopefully few prototypes, |
| 5310 | which can conflict with char vprintf(); below. */ |
| 5311 | #include <assert.h> |
| 5312 | /* Override any gcc2 internal prototype to avoid an error. */ |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5313 | /* We use char because int might match the return type of a gcc2 |
| 5314 | builtin and then its argument prototype would still apply. */ |
| 5315 | char vprintf(); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5316 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5317 | int main() { |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5318 | |
| 5319 | /* The GNU C library defines this for functions which it implements |
| 5320 | to always fail with ENOSYS. Some functions are actually named |
| 5321 | something starting with __ and the normal name is an alias. */ |
| 5322 | #if defined (__stub_vprintf) || defined (__stub___vprintf) |
| 5323 | choke me |
| 5324 | #else |
| 5325 | vprintf(); |
| 5326 | #endif |
| 5327 | |
| 5328 | ; return 0; } |
| 5329 | EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5330 | if { (eval echo configure:5331: \"$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] | 5331 | rm -rf conftest* |
| 5332 | eval "ac_cv_func_vprintf=yes" |
| 5333 | else |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5334 | echo "configure: failed program was:" >&5 |
| 5335 | cat conftest.$ac_ext >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5336 | rm -rf conftest* |
| 5337 | eval "ac_cv_func_vprintf=no" |
| 5338 | fi |
| 5339 | rm -f conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5340 | fi |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5341 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5342 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then |
| 5343 | echo "$ac_t""yes" 1>&6 |
| 5344 | cat >> confdefs.h <<\EOF |
| 5345 | #define HAVE_VPRINTF 1 |
| 5346 | EOF |
| 5347 | |
| 5348 | else |
| 5349 | echo "$ac_t""no" 1>&6 |
| 5350 | fi |
| 5351 | |
| 5352 | if test "$ac_cv_func_vprintf" != yes; then |
| 5353 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5354 | echo "configure:5355: checking for _doprnt" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5355 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
| 5356 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5357 | else |
| 5358 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5359 | #line 5360 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5360 | #include "confdefs.h" |
| 5361 | /* System header to define __stub macros and hopefully few prototypes, |
| 5362 | which can conflict with char _doprnt(); below. */ |
| 5363 | #include <assert.h> |
| 5364 | /* Override any gcc2 internal prototype to avoid an error. */ |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5365 | /* We use char because int might match the return type of a gcc2 |
| 5366 | builtin and then its argument prototype would still apply. */ |
| 5367 | char _doprnt(); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5368 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5369 | int main() { |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5370 | |
| 5371 | /* The GNU C library defines this for functions which it implements |
| 5372 | to always fail with ENOSYS. Some functions are actually named |
| 5373 | something starting with __ and the normal name is an alias. */ |
| 5374 | #if defined (__stub__doprnt) || defined (__stub____doprnt) |
| 5375 | choke me |
| 5376 | #else |
| 5377 | _doprnt(); |
| 5378 | #endif |
| 5379 | |
| 5380 | ; return 0; } |
| 5381 | EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5382 | if { (eval echo configure:5383: \"$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] | 5383 | rm -rf conftest* |
| 5384 | eval "ac_cv_func__doprnt=yes" |
| 5385 | else |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5386 | echo "configure: failed program was:" >&5 |
| 5387 | cat conftest.$ac_ext >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5388 | rm -rf conftest* |
| 5389 | eval "ac_cv_func__doprnt=no" |
| 5390 | fi |
| 5391 | rm -f conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5392 | fi |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5393 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5394 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then |
| 5395 | echo "$ac_t""yes" 1>&6 |
| 5396 | cat >> confdefs.h <<\EOF |
| 5397 | #define HAVE_DOPRNT 1 |
| 5398 | EOF |
| 5399 | |
| 5400 | else |
| 5401 | echo "$ac_t""no" 1>&6 |
| 5402 | fi |
| 5403 | |
| 5404 | fi |
| 5405 | |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5406 | echo $ac_n "checking whether d_reclen declared in dirent""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5407 | echo "configure:5408: checking whether d_reclen declared in dirent" >&5 |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5408 | if eval "test \"`echo '$''{'e2fsprogs_cv_have_d_reclen_dirent'+set}'`\" = set"; then |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 5409 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5410 | else |
| 5411 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5412 | #line 5413 "configure" |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 5413 | #include "confdefs.h" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5414 | #include <dirent.h> |
| 5415 | int main() { |
| 5416 | struct dirent de; de.d_reclen = 0; |
| 5417 | ; return 0; } |
| 5418 | EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5419 | if { (eval echo configure:5420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5420 | rm -rf conftest* |
| 5421 | e2fsprogs_cv_have_d_reclen_dirent=yes |
| 5422 | else |
| 5423 | echo "configure: failed program was:" >&5 |
| 5424 | cat conftest.$ac_ext >&5 |
| 5425 | rm -rf conftest* |
| 5426 | e2fsprogs_cv_have_d_reclen_dirent=no |
| 5427 | fi |
| 5428 | rm -f conftest* |
| 5429 | fi |
| 5430 | |
| 5431 | echo "$ac_t""$e2fsprogs_cv_have_d_reclen_dirent" 1>&6 |
| 5432 | if test "$e2fsprogs_cv_have_d_reclen_dirent" = yes; then |
| 5433 | cat >> confdefs.h <<\EOF |
| 5434 | #define HAVE_RECLEN_DIRENT 1 |
| 5435 | EOF |
| 5436 | |
| 5437 | fi |
| 5438 | echo $ac_n "checking whether ssize_t declared""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5439 | echo "configure:5440: checking whether ssize_t declared" >&5 |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5440 | if eval "test \"`echo '$''{'e2fsprogs_cv_have_ssize_t'+set}'`\" = set"; then |
| 5441 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5442 | else |
| 5443 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5444 | #line 5445 "configure" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5445 | #include "confdefs.h" |
| 5446 | #include <sys/types.h> |
| 5447 | int main() { |
| 5448 | ssize_t a = 0; |
| 5449 | ; return 0; } |
| 5450 | EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5451 | if { (eval echo configure:5452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5452 | rm -rf conftest* |
| 5453 | e2fsprogs_cv_have_ssize_t=yes |
| 5454 | else |
| 5455 | echo "configure: failed program was:" >&5 |
| 5456 | cat conftest.$ac_ext >&5 |
| 5457 | rm -rf conftest* |
| 5458 | e2fsprogs_cv_have_ssize_t=no |
| 5459 | fi |
| 5460 | rm -f conftest* |
| 5461 | fi |
| 5462 | |
| 5463 | echo "$ac_t""$e2fsprogs_cv_have_ssize_t" 1>&6 |
| 5464 | if test "$e2fsprogs_cv_have_ssize_t" = yes; then |
| 5465 | cat >> confdefs.h <<\EOF |
| 5466 | #define HAVE_TYPE_SSIZE_T 1 |
| 5467 | EOF |
| 5468 | |
| 5469 | fi |
| 5470 | echo $ac_n "checking whether llseek declared in unistd.h""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5471 | echo "configure:5472: checking whether llseek declared in unistd.h" >&5 |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5472 | if eval "test \"`echo '$''{'e2fsprogs_cv_have_llseek_prototype'+set}'`\" = set"; then |
| 5473 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5474 | else |
| 5475 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5476 | #line 5477 "configure" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5477 | #include "confdefs.h" |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 5478 | #include <unistd.h> |
| 5479 | int main() { |
| 5480 | extern int llseek(int); |
| 5481 | ; return 0; } |
| 5482 | EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5483 | if { (eval echo configure:5484: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 5484 | rm -rf conftest* |
| 5485 | e2fsprogs_cv_have_llseek_prototype=no |
| 5486 | else |
| 5487 | echo "configure: failed program was:" >&5 |
| 5488 | cat conftest.$ac_ext >&5 |
| 5489 | rm -rf conftest* |
| 5490 | e2fsprogs_cv_have_llseek_prototype=yes |
| 5491 | fi |
| 5492 | rm -f conftest* |
| 5493 | fi |
| 5494 | |
| 5495 | echo "$ac_t""$e2fsprogs_cv_have_llseek_prototype" 1>&6 |
| 5496 | if test "$e2fsprogs_cv_have_llseek_prototype" = yes; then |
| 5497 | cat >> confdefs.h <<\EOF |
| 5498 | #define HAVE_LLSEEK_PROTOTYPE 1 |
| 5499 | EOF |
| 5500 | |
| 5501 | fi |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 5502 | echo $ac_n "checking whether lseek64 declared in unistd.h""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5503 | echo "configure:5504: checking whether lseek64 declared in unistd.h" >&5 |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 5504 | if eval "test \"`echo '$''{'e2fsprogs_cv_have_lseek64_prototype'+set}'`\" = set"; then |
| 5505 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5506 | else |
| 5507 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5508 | #line 5509 "configure" |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 5509 | #include "confdefs.h" |
| 5510 | #define _LARGEFILE_SOURCE |
| 5511 | #define _LARGEFILE64_SOURCE |
| 5512 | #include <unistd.h> |
| 5513 | int main() { |
| 5514 | extern int lseek64(int); |
| 5515 | ; return 0; } |
| 5516 | EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5517 | if { (eval echo configure:5518: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 5518 | rm -rf conftest* |
| 5519 | e2fsprogs_cv_have_lseek64_prototype=no |
| 5520 | else |
| 5521 | echo "configure: failed program was:" >&5 |
| 5522 | cat conftest.$ac_ext >&5 |
| 5523 | rm -rf conftest* |
| 5524 | e2fsprogs_cv_have_lseek64_prototype=yes |
| 5525 | fi |
| 5526 | rm -f conftest* |
| 5527 | fi |
| 5528 | |
| 5529 | echo "$ac_t""$e2fsprogs_cv_have_lseek64_prototype" 1>&6 |
| 5530 | if test "$e2fsprogs_cv_have_lseek64_prototype" = yes; then |
| 5531 | cat >> confdefs.h <<\EOF |
| 5532 | #define HAVE_LSEEK64_PROTOTYPE 1 |
| 5533 | EOF |
| 5534 | |
| 5535 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5536 | if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then |
| 5537 | # if cross-compiling, with no cached values, just assume something common. |
| 5538 | ac_cv_sizeof_short=2 |
| 5539 | ac_cv_sizeof_int=4 |
| 5540 | ac_cv_sizeof_long=4 |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 5541 | ac_cv_sizeof_long_long=8 |
| 5542 | 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] | 5543 | fi |
| 5544 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5545 | echo "configure:5546: checking size of short" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5546 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
| 5547 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5548 | else |
| 5549 | if test "$cross_compiling" = yes; then |
| 5550 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 5551 | else |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5552 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5553 | #line 5554 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5554 | #include "confdefs.h" |
| 5555 | #include <stdio.h> |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 5556 | #include <sys/types.h> |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5557 | main() |
| 5558 | { |
| 5559 | FILE *f=fopen("conftestval", "w"); |
| 5560 | if (!f) exit(1); |
| 5561 | fprintf(f, "%d\n", sizeof(short)); |
| 5562 | exit(0); |
| 5563 | } |
| 5564 | EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5565 | if { (eval echo configure:5566: \"$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] | 5566 | then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5567 | ac_cv_sizeof_short=`cat conftestval` |
| 5568 | else |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5569 | echo "configure: failed program was:" >&5 |
| 5570 | cat conftest.$ac_ext >&5 |
| 5571 | rm -fr conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5572 | ac_cv_sizeof_short=0 |
| 5573 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5574 | rm -fr conftest* |
| 5575 | fi |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5576 | |
| 5577 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5578 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
| 5579 | cat >> confdefs.h <<EOF |
| 5580 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
| 5581 | EOF |
| 5582 | |
| 5583 | |
| 5584 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5585 | echo "configure:5586: checking size of int" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5586 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
| 5587 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5588 | else |
| 5589 | if test "$cross_compiling" = yes; then |
| 5590 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 5591 | else |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5592 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5593 | #line 5594 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5594 | #include "confdefs.h" |
| 5595 | #include <stdio.h> |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 5596 | #include <sys/types.h> |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5597 | main() |
| 5598 | { |
| 5599 | FILE *f=fopen("conftestval", "w"); |
| 5600 | if (!f) exit(1); |
| 5601 | fprintf(f, "%d\n", sizeof(int)); |
| 5602 | exit(0); |
| 5603 | } |
| 5604 | EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5605 | if { (eval echo configure:5606: \"$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] | 5606 | then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5607 | ac_cv_sizeof_int=`cat conftestval` |
| 5608 | else |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5609 | echo "configure: failed program was:" >&5 |
| 5610 | cat conftest.$ac_ext >&5 |
| 5611 | rm -fr conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5612 | ac_cv_sizeof_int=0 |
| 5613 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5614 | rm -fr conftest* |
| 5615 | fi |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5616 | |
| 5617 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5618 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 |
| 5619 | cat >> confdefs.h <<EOF |
| 5620 | #define SIZEOF_INT $ac_cv_sizeof_int |
| 5621 | EOF |
| 5622 | |
| 5623 | |
| 5624 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5625 | echo "configure:5626: checking size of long" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5626 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
| 5627 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5628 | else |
| 5629 | if test "$cross_compiling" = yes; then |
| 5630 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 5631 | else |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5632 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5633 | #line 5634 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5634 | #include "confdefs.h" |
| 5635 | #include <stdio.h> |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 5636 | #include <sys/types.h> |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5637 | main() |
| 5638 | { |
| 5639 | FILE *f=fopen("conftestval", "w"); |
| 5640 | if (!f) exit(1); |
| 5641 | fprintf(f, "%d\n", sizeof(long)); |
| 5642 | exit(0); |
| 5643 | } |
| 5644 | EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5645 | if { (eval echo configure:5646: \"$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] | 5646 | then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5647 | ac_cv_sizeof_long=`cat conftestval` |
| 5648 | else |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5649 | echo "configure: failed program was:" >&5 |
| 5650 | cat conftest.$ac_ext >&5 |
| 5651 | rm -fr conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5652 | ac_cv_sizeof_long=0 |
| 5653 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5654 | rm -fr conftest* |
| 5655 | fi |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5656 | |
| 5657 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5658 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 |
| 5659 | cat >> confdefs.h <<EOF |
| 5660 | #define SIZEOF_LONG $ac_cv_sizeof_long |
| 5661 | EOF |
| 5662 | |
| 5663 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5664 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5665 | echo "configure:5666: checking size of long long" >&5 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5666 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
| 5667 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5668 | else |
| 5669 | if test "$cross_compiling" = yes; then |
| 5670 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 5671 | else |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5672 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5673 | #line 5674 "configure" |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5674 | #include "confdefs.h" |
| 5675 | #include <stdio.h> |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 5676 | #include <sys/types.h> |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5677 | main() |
| 5678 | { |
| 5679 | FILE *f=fopen("conftestval", "w"); |
| 5680 | if (!f) exit(1); |
| 5681 | fprintf(f, "%d\n", sizeof(long long)); |
| 5682 | exit(0); |
| 5683 | } |
| 5684 | EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5685 | if { (eval echo configure:5686: \"$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] | 5686 | then |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5687 | ac_cv_sizeof_long_long=`cat conftestval` |
| 5688 | else |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5689 | echo "configure: failed program was:" >&5 |
| 5690 | cat conftest.$ac_ext >&5 |
| 5691 | rm -fr conftest* |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5692 | ac_cv_sizeof_long_long=0 |
| 5693 | fi |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5694 | rm -fr conftest* |
| 5695 | fi |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5696 | |
| 5697 | fi |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5698 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
| 5699 | cat >> confdefs.h <<EOF |
| 5700 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
| 5701 | EOF |
| 5702 | |
| 5703 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5704 | SIZEOF_SHORT=$ac_cv_sizeof_short |
| 5705 | SIZEOF_INT=$ac_cv_sizeof_int |
| 5706 | SIZEOF_LONG=$ac_cv_sizeof_long |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5707 | SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long |
| 5708 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5709 | |
| 5710 | |
| 5711 | |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5712 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5713 | echo "configure:5714: checking whether byte ordering is bigendian" >&5 |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5714 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
| 5715 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5716 | else |
| 5717 | ac_cv_c_bigendian=unknown |
| 5718 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 5719 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5720 | #line 5721 "configure" |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5721 | #include "confdefs.h" |
| 5722 | #include <sys/types.h> |
| 5723 | #include <sys/param.h> |
| 5724 | int main() { |
| 5725 | |
| 5726 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 5727 | bogus endian macros |
| 5728 | #endif |
| 5729 | ; return 0; } |
| 5730 | EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5731 | if { (eval echo configure:5732: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5732 | rm -rf conftest* |
| 5733 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 5734 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5735 | #line 5736 "configure" |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5736 | #include "confdefs.h" |
| 5737 | #include <sys/types.h> |
| 5738 | #include <sys/param.h> |
| 5739 | int main() { |
| 5740 | |
| 5741 | #if BYTE_ORDER != BIG_ENDIAN |
| 5742 | not big endian |
| 5743 | #endif |
| 5744 | ; return 0; } |
| 5745 | EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5746 | if { (eval echo configure:5747: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5747 | rm -rf conftest* |
| 5748 | ac_cv_c_bigendian=yes |
| 5749 | else |
| 5750 | echo "configure: failed program was:" >&5 |
| 5751 | cat conftest.$ac_ext >&5 |
| 5752 | rm -rf conftest* |
| 5753 | ac_cv_c_bigendian=no |
| 5754 | fi |
| 5755 | rm -f conftest* |
| 5756 | else |
| 5757 | echo "configure: failed program was:" >&5 |
| 5758 | cat conftest.$ac_ext >&5 |
| 5759 | fi |
| 5760 | rm -f conftest* |
| 5761 | if test $ac_cv_c_bigendian = unknown; then |
| 5762 | if test "$cross_compiling" = yes; then |
| 5763 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 5764 | else |
| 5765 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5766 | #line 5767 "configure" |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5767 | #include "confdefs.h" |
| 5768 | main () { |
| 5769 | /* Are we little or big endian? From Harbison&Steele. */ |
| 5770 | union |
| 5771 | { |
| 5772 | long l; |
| 5773 | char c[sizeof (long)]; |
| 5774 | } u; |
| 5775 | u.l = 1; |
| 5776 | exit (u.c[sizeof (long) - 1] == 1); |
| 5777 | } |
| 5778 | EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5779 | if { (eval echo configure:5780: \"$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] | 5780 | then |
| 5781 | ac_cv_c_bigendian=no |
| 5782 | else |
| 5783 | echo "configure: failed program was:" >&5 |
| 5784 | cat conftest.$ac_ext >&5 |
| 5785 | rm -fr conftest* |
| 5786 | ac_cv_c_bigendian=yes |
| 5787 | fi |
| 5788 | rm -fr conftest* |
| 5789 | fi |
| 5790 | |
| 5791 | fi |
| 5792 | fi |
| 5793 | |
| 5794 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 |
| 5795 | if test $ac_cv_c_bigendian = yes; then |
| 5796 | cat >> confdefs.h <<\EOF |
| 5797 | #define WORDS_BIGENDIAN 1 |
| 5798 | EOF |
| 5799 | |
| 5800 | fi |
| 5801 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5802 | echo $ac_n "checking whether struct stat has a st_flags field""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5803 | echo "configure:5804: checking whether struct stat has a st_flags field" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5804 | if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags'+set}'`\" = set"; then |
| 5805 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5806 | else |
| 5807 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5808 | #line 5809 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5809 | #include "confdefs.h" |
| 5810 | #include <sys/stat.h> |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5811 | int main() { |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5812 | struct stat stat; stat.st_flags = 0; |
| 5813 | ; return 0; } |
| 5814 | EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5815 | if { (eval echo configure:5816: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5816 | rm -rf conftest* |
| 5817 | e2fsprogs_cv_struct_st_flags=yes |
| 5818 | else |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5819 | echo "configure: failed program was:" >&5 |
| 5820 | cat conftest.$ac_ext >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5821 | rm -rf conftest* |
| 5822 | e2fsprogs_cv_struct_st_flags=no |
| 5823 | fi |
| 5824 | rm -f conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5825 | fi |
| 5826 | |
| 5827 | echo "$ac_t""$e2fsprogs_cv_struct_st_flags" 1>&6 |
| 5828 | if test "$e2fsprogs_cv_struct_st_flags" = yes; then |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 5829 | echo $ac_n "checking whether st_flags field is useful""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5830 | echo "configure:5831: checking whether st_flags field is useful" >&5 |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 5831 | if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags_immut'+set}'`\" = set"; then |
| 5832 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5833 | else |
| 5834 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5835 | #line 5836 "configure" |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 5836 | #include "confdefs.h" |
| 5837 | #include <sys/stat.h> |
| 5838 | int main() { |
| 5839 | struct stat stat; stat.st_flags |= UF_IMMUTABLE; |
| 5840 | ; return 0; } |
| 5841 | EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5842 | if { (eval echo configure:5843: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 5843 | rm -rf conftest* |
| 5844 | e2fsprogs_cv_struct_st_flags_immut=yes |
| 5845 | else |
| 5846 | echo "configure: failed program was:" >&5 |
| 5847 | cat conftest.$ac_ext >&5 |
| 5848 | rm -rf conftest* |
| 5849 | e2fsprogs_cv_struct_st_flags_immut=no |
| 5850 | fi |
| 5851 | rm -f conftest* |
| 5852 | fi |
| 5853 | |
| 5854 | echo "$ac_t""$e2fsprogs_cv_struct_st_flags_immut" 1>&6 |
| 5855 | if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then |
| 5856 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5857 | #define HAVE_STAT_FLAGS 1 |
| 5858 | EOF |
| 5859 | |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 5860 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5861 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5862 | for ac_func in chflags getrusage llseek lseek64 open64 getmntinfo strtoull strcasecmp srandom fchown mallinfo fdatasync strnlen strptime sysconf pathconf |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5863 | do |
| 5864 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5865 | echo "configure:5866: checking for $ac_func" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5866 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 5867 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5868 | else |
| 5869 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5870 | #line 5871 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5871 | #include "confdefs.h" |
| 5872 | /* System header to define __stub macros and hopefully few prototypes, |
| 5873 | which can conflict with char $ac_func(); below. */ |
| 5874 | #include <assert.h> |
| 5875 | /* Override any gcc2 internal prototype to avoid an error. */ |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5876 | /* We use char because int might match the return type of a gcc2 |
| 5877 | builtin and then its argument prototype would still apply. */ |
| 5878 | char $ac_func(); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5879 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5880 | int main() { |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5881 | |
| 5882 | /* The GNU C library defines this for functions which it implements |
| 5883 | to always fail with ENOSYS. Some functions are actually named |
| 5884 | something starting with __ and the normal name is an alias. */ |
| 5885 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 5886 | choke me |
| 5887 | #else |
| 5888 | $ac_func(); |
| 5889 | #endif |
| 5890 | |
| 5891 | ; return 0; } |
| 5892 | EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5893 | if { (eval echo configure:5894: \"$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] | 5894 | rm -rf conftest* |
| 5895 | eval "ac_cv_func_$ac_func=yes" |
| 5896 | else |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5897 | echo "configure: failed program was:" >&5 |
| 5898 | cat conftest.$ac_ext >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5899 | rm -rf conftest* |
| 5900 | eval "ac_cv_func_$ac_func=no" |
| 5901 | fi |
| 5902 | rm -f conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5903 | fi |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5904 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5905 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 5906 | echo "$ac_t""yes" 1>&6 |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5907 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5908 | cat >> confdefs.h <<EOF |
| 5909 | #define $ac_tr_func 1 |
| 5910 | EOF |
| 5911 | |
| 5912 | else |
| 5913 | echo "$ac_t""no" 1>&6 |
| 5914 | fi |
| 5915 | done |
| 5916 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5917 | SOCKET_LIB='' |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5918 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5919 | echo "configure:5920: checking for socket in -lsocket" >&5 |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5920 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
| 5921 | 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] | 5922 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5923 | else |
| 5924 | ac_save_LIBS="$LIBS" |
| 5925 | LIBS="-lsocket $LIBS" |
| 5926 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5927 | #line 5928 "configure" |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5928 | #include "confdefs.h" |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5929 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5930 | /* We use char because int might match the return type of a gcc2 |
| 5931 | builtin and then its argument prototype would still apply. */ |
| 5932 | char socket(); |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5933 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5934 | int main() { |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5935 | socket() |
| 5936 | ; return 0; } |
| 5937 | EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5938 | if { (eval echo configure:5939: \"$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] | 5939 | rm -rf conftest* |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5940 | eval "ac_cv_lib_$ac_lib_var=yes" |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5941 | else |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5942 | echo "configure: failed program was:" >&5 |
| 5943 | cat conftest.$ac_ext >&5 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5944 | rm -rf conftest* |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5945 | eval "ac_cv_lib_$ac_lib_var=no" |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5946 | fi |
| 5947 | rm -f conftest* |
| 5948 | LIBS="$ac_save_LIBS" |
| 5949 | |
| 5950 | fi |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5951 | 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] | 5952 | echo "$ac_t""yes" 1>&6 |
| 5953 | SOCKET_LIB=-lsocket |
| 5954 | else |
| 5955 | echo "$ac_t""no" 1>&6 |
| 5956 | fi |
| 5957 | |
| 5958 | |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 5959 | DLOPEN_LIB='' |
| 5960 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5961 | echo "configure:5962: checking for dlopen in -ldl" >&5 |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 5962 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
| 5963 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 5964 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5965 | else |
| 5966 | ac_save_LIBS="$LIBS" |
| 5967 | LIBS="-ldl $LIBS" |
| 5968 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5969 | #line 5970 "configure" |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 5970 | #include "confdefs.h" |
| 5971 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5972 | /* We use char because int might match the return type of a gcc2 |
| 5973 | builtin and then its argument prototype would still apply. */ |
| 5974 | char dlopen(); |
| 5975 | |
| 5976 | int main() { |
| 5977 | dlopen() |
| 5978 | ; return 0; } |
| 5979 | EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5980 | if { (eval echo configure:5981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 5981 | rm -rf conftest* |
| 5982 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 5983 | else |
| 5984 | echo "configure: failed program was:" >&5 |
| 5985 | cat conftest.$ac_ext >&5 |
| 5986 | rm -rf conftest* |
| 5987 | eval "ac_cv_lib_$ac_lib_var=no" |
| 5988 | fi |
| 5989 | rm -f conftest* |
| 5990 | LIBS="$ac_save_LIBS" |
| 5991 | |
| 5992 | fi |
| 5993 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 5994 | echo "$ac_t""yes" 1>&6 |
| 5995 | DLOPEN_LIB=-ldl |
| 5996 | cat >> confdefs.h <<\EOF |
| 5997 | #define HAVE_DLOPEN 1 |
| 5998 | EOF |
| 5999 | |
| 6000 | else |
| 6001 | echo "$ac_t""no" 1>&6 |
| 6002 | fi |
| 6003 | |
| 6004 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6005 | echo $ac_n "checking for optreset""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 6006 | echo "configure:6007: checking for optreset" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6007 | if eval "test \"`echo '$''{'ac_cv_have_optreset'+set}'`\" = set"; then |
| 6008 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6009 | else |
| 6010 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 6011 | #line 6012 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6012 | #include "confdefs.h" |
| 6013 | #include <unistd.h> |
| 6014 | EOF |
| 6015 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6016 | egrep "optreset" >/dev/null 2>&1; then |
| 6017 | rm -rf conftest* |
| 6018 | ac_cv_have_optreset=yes |
| 6019 | else |
| 6020 | rm -rf conftest* |
| 6021 | ac_cv_have_optreset=no |
| 6022 | fi |
| 6023 | rm -f conftest* |
| 6024 | |
| 6025 | fi |
| 6026 | echo "$ac_t""$ac_cv_have_optreset" 1>&6 |
| 6027 | if test $ac_cv_have_optreset = yes; then |
| 6028 | cat >> confdefs.h <<\EOF |
| 6029 | #define HAVE_OPTRESET 1 |
| 6030 | EOF |
| 6031 | |
| 6032 | fi |
Theodore Ts'o | 8f3f29d | 2000-02-11 05:04:44 +0000 | [diff] [blame] | 6033 | case "$host_os" in |
| 6034 | linux*) |
| 6035 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6036 | #define HAVE_EXT2_IOCTLS 1 |
| 6037 | EOF |
| 6038 | |
Theodore Ts'o | 8f3f29d | 2000-02-11 05:04:44 +0000 | [diff] [blame] | 6039 | ;; |
| 6040 | esac |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 6041 | LINUX_CMT="#" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 6042 | CYGWIN_CMT="#" |
| 6043 | UNIX_CMT= |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 6044 | case "$host_os" in |
| 6045 | linux*) |
| 6046 | LINUX_CMT= |
| 6047 | ;; |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 6048 | cygwin) |
| 6049 | CYGWIN_CMT= |
| 6050 | UNIX_CMT="#" |
Theodore Ts'o | d21ae6c | 2003-05-05 09:00:24 -0400 | [diff] [blame] | 6051 | EVMS_CMT="#" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 6052 | ;; |
Theodore Ts'o | d21ae6c | 2003-05-05 09:00:24 -0400 | [diff] [blame] | 6053 | *) |
| 6054 | EVMS_CMT="#" |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 6055 | esac |
| 6056 | |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 6057 | |
| 6058 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6059 | case "$host_os" in |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 6060 | linux* | gnu*) |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 6061 | if test "$prefix" = NONE -a "$root_prefix" = NONE ; then |
| 6062 | root_prefix=""; |
| 6063 | echo "On $host_os systems, root_prefix defaults to ''" |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 6064 | fi |
| 6065 | ;; |
| 6066 | esac |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 6067 | case "$host_os" in |
| 6068 | linux* | gnu*) |
| 6069 | if test "$prefix" = NONE ; then |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 6070 | prefix="/usr"; |
| 6071 | echo "On $host_os systems, prefix defaults to /usr" |
Theodore Ts'o | bff61a7 | 2002-05-21 22:21:38 -0400 | [diff] [blame] | 6072 | if test "$mandir" = '${prefix}/man' ; then |
| 6073 | echo "...and mandir defaults to /usr/share/man" |
| 6074 | mandir=/usr/share/man |
| 6075 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6076 | fi |
| 6077 | ;; |
| 6078 | esac |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 6079 | if test "$root_prefix" = NONE ; then |
Theodore Ts'o | ffe1991 | 1998-04-08 06:05:49 +0000 | [diff] [blame] | 6080 | if test "$prefix" = NONE ; then |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 6081 | root_prefix="$ac_default_prefix" |
| 6082 | else |
| 6083 | root_prefix="$prefix" |
| 6084 | fi |
Theodore Ts'o | b5ffead | 2002-05-11 19:17:00 -0400 | [diff] [blame] | 6085 | root_bindir=$bindir |
| 6086 | root_sbindir=$sbindir |
| 6087 | root_libdir=$libdir |
| 6088 | root_sysconfdir=$sysconfdir |
| 6089 | else |
| 6090 | root_bindir='${root_prefix}/bin' |
| 6091 | root_sbindir='${root_prefix}/sbin' |
| 6092 | root_libdir='${root_prefix}/lib' |
| 6093 | root_sysconfdir='${root_prefix}/etc' |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 6094 | fi |
| 6095 | |
Theodore Ts'o | b5ffead | 2002-05-11 19:17:00 -0400 | [diff] [blame] | 6096 | |
| 6097 | |
| 6098 | |
| 6099 | |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 6100 | echo $ac_n "checking whether linker accepts -static""... $ac_c" 1>&6 |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 6101 | echo "configure:6102: checking whether linker accepts -static" >&5 |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 6102 | if eval "test \"`echo '$''{'ac_cv_e2fsprogs_use_static'+set}'`\" = set"; then |
| 6103 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6104 | else |
| 6105 | SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static" |
| 6106 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 6107 | #line 6108 "configure" |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 6108 | #include "confdefs.h" |
| 6109 | #include <stdio.h> |
| 6110 | int main() { |
| 6111 | fflush(stdout); |
| 6112 | ; return 0; } |
| 6113 | EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 6114 | if { (eval echo configure:6115: \"$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] | 6115 | rm -rf conftest* |
| 6116 | ac_cv_e2fsprogs_use_static=yes |
| 6117 | else |
| 6118 | echo "configure: failed program was:" >&5 |
| 6119 | cat conftest.$ac_ext >&5 |
| 6120 | rm -rf conftest* |
| 6121 | ac_cv_e2fsprogs_use_static=no |
| 6122 | fi |
| 6123 | rm -f conftest* |
| 6124 | LDFLAGS=$SAVE_LDFLAGS |
| 6125 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6126 | |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 6127 | case "$host_os" in |
| 6128 | solaris2.*) |
| 6129 | ac_cv_e2fsprogs_use_static=no |
| 6130 | ;; |
| 6131 | esac |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 6132 | echo "$ac_t""$ac_cv_e2fsprogs_use_static" 1>&6 |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 6133 | LDFLAG_STATIC= |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 6134 | if test $ac_cv_e2fsprogs_use_static = yes; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6135 | LDFLAG_STATIC=-static |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 6136 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6137 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6138 | SS_DIR=`cd ${srcdir}/lib/ss; pwd` |
| 6139 | ET_DIR=`cd ${srcdir}/lib/et; pwd` |
| 6140 | |
| 6141 | |
| 6142 | if test "$cross_compiling" = yes ; then |
| 6143 | DO_TEST_SUITE= |
| 6144 | else |
| 6145 | DO_TEST_SUITE=check |
| 6146 | fi |
| 6147 | |
Theodore Ts'o | c6f35b8 | 2003-05-17 16:29:27 -0400 | [diff] [blame^] | 6148 | INTL_FLAGS= |
| 6149 | if test "$USE_INCLUDED_LIBINTL" = "yes" ; then |
| 6150 | INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl' |
| 6151 | fi |
| 6152 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6153 | test -d lib || mkdir lib |
| 6154 | test -d include || mkdir include |
| 6155 | test -d include/linux || mkdir include/linux |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 6156 | test -d include/asm || mkdir include/asm |
Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 6157 | for i in MCONFIG Makefile e2fsprogs.spec \ |
| 6158 | util/Makefile util/subst.conf util/gen-tarball \ |
| 6159 | lib/et/Makefile lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile \ |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 6160 | lib/uuid/Makefile lib/uuid/uuid_types.h \ |
| 6161 | lib/blkid/Makefile lib/blkid/blkid_types.h \ |
| 6162 | lib/evms/Makefile misc/Makefile ext2ed/Makefile e2fsck/Makefile \ |
| 6163 | debugfs/Makefile tests/Makefile tests/progs/Makefile \ |
| 6164 | resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do |
| 6165 | if test -d `dirname ${srcdir}/$i` ; then |
| 6166 | outlist="$outlist $i" |
| 6167 | fi |
| 6168 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6169 | trap '' 1 2 15 |
| 6170 | cat > confcache <<\EOF |
| 6171 | # This file is a shell script that caches the results of configure |
| 6172 | # tests run on this system so they can be shared between configure |
| 6173 | # scripts and configure runs. It is not useful on other systems. |
| 6174 | # If it contains results you don't want to keep, you may remove or edit it. |
| 6175 | # |
| 6176 | # By default, configure uses ./config.cache as the cache file, |
| 6177 | # creating it if it does not exist already. You can give configure |
| 6178 | # the --cache-file=FILE option to use a different cache file; that is |
| 6179 | # what configure does when it calls configure scripts in |
| 6180 | # subdirectories, so they share the cache. |
| 6181 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
| 6182 | # config.status only pays attention to the cache file if you give it the |
| 6183 | # --recheck option to rerun configure. |
| 6184 | # |
| 6185 | EOF |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 6186 | # The following way of writing the cache mishandles newlines in values, |
| 6187 | # but we know of no workaround that is simple, portable, and efficient. |
| 6188 | # So, don't put newlines in cache variables' values. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6189 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 6190 | # and sets the high bit in the cache file unless we assign to the vars. |
| 6191 | (set) 2>&1 | |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 6192 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 6193 | *ac_space=\ *) |
| 6194 | # `set' does not quote correctly, so add quotes (double-quote substitution |
| 6195 | # turns \\\\ into \\, and sed turns \\ into \). |
| 6196 | sed -n \ |
| 6197 | -e "s/'/'\\\\''/g" \ |
| 6198 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
| 6199 | ;; |
| 6200 | *) |
| 6201 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 6202 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
| 6203 | ;; |
| 6204 | esac >> confcache |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6205 | if cmp -s $cache_file confcache; then |
| 6206 | : |
| 6207 | else |
| 6208 | if test -w $cache_file; then |
| 6209 | echo "updating cache $cache_file" |
| 6210 | cat confcache > $cache_file |
| 6211 | else |
| 6212 | echo "not updating unwritable cache $cache_file" |
| 6213 | fi |
| 6214 | fi |
| 6215 | rm -f confcache |
| 6216 | |
| 6217 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
| 6218 | |
| 6219 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 6220 | # Let make expand exec_prefix. |
| 6221 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 6222 | |
| 6223 | # Any assignment to VPATH causes Sun make to only execute |
| 6224 | # the first set of double-colon rules, so remove it if not needed. |
| 6225 | # If there is a colon in the path, we need to keep it. |
| 6226 | if test "x$srcdir" = x.; then |
| 6227 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
| 6228 | fi |
| 6229 | |
| 6230 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
| 6231 | |
| 6232 | # Transform confdefs.h into DEFS. |
| 6233 | # Protect against shell expansion while executing Makefile rules. |
| 6234 | # Protect against Makefile macro expansion. |
| 6235 | cat > conftest.defs <<\EOF |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 6236 | 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] | 6237 | s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g |
| 6238 | s%\[%\\&%g |
| 6239 | s%\]%\\&%g |
| 6240 | s%\$%$$%g |
| 6241 | EOF |
| 6242 | DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` |
| 6243 | rm -f conftest.defs |
| 6244 | |
| 6245 | |
| 6246 | # Without the "./", some shells look in PATH for config.status. |
| 6247 | : ${CONFIG_STATUS=./config.status} |
| 6248 | |
| 6249 | echo creating $CONFIG_STATUS |
| 6250 | rm -f $CONFIG_STATUS |
| 6251 | cat > $CONFIG_STATUS <<EOF |
| 6252 | #! /bin/sh |
| 6253 | # Generated automatically by configure. |
| 6254 | # Run this file to recreate the current configuration. |
| 6255 | # This directory was configured as follows, |
| 6256 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 6257 | # |
| 6258 | # $0 $ac_configure_args |
| 6259 | # |
| 6260 | # Compiler output produced by configure, useful for debugging |
| 6261 | # configure, is in ./config.log if it exists. |
| 6262 | |
| 6263 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
| 6264 | for ac_option |
| 6265 | do |
| 6266 | case "\$ac_option" in |
| 6267 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 6268 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
| 6269 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
| 6270 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 6271 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6272 | exit 0 ;; |
| 6273 | -help | --help | --hel | --he | --h) |
| 6274 | echo "\$ac_cs_usage"; exit 0 ;; |
| 6275 | *) echo "\$ac_cs_usage"; exit 1 ;; |
| 6276 | esac |
| 6277 | done |
| 6278 | |
| 6279 | ac_given_srcdir=$srcdir |
| 6280 | ac_given_INSTALL="$INSTALL" |
| 6281 | |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 6282 | trap 'rm -fr `echo "$outlist" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 6283 | EOF |
| 6284 | cat >> $CONFIG_STATUS <<EOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6285 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 6286 | # Protect against being on the right side of a sed subst in config.status. |
| 6287 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
| 6288 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6289 | $ac_vpsub |
| 6290 | $extrasub |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 6291 | s%@SHELL@%$SHELL%g |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6292 | s%@CFLAGS@%$CFLAGS%g |
| 6293 | s%@CPPFLAGS@%$CPPFLAGS%g |
| 6294 | s%@CXXFLAGS@%$CXXFLAGS%g |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 6295 | s%@FFLAGS@%$FFLAGS%g |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6296 | s%@DEFS@%$DEFS%g |
| 6297 | s%@LDFLAGS@%$LDFLAGS%g |
| 6298 | s%@LIBS@%$LIBS%g |
| 6299 | s%@exec_prefix@%$exec_prefix%g |
| 6300 | s%@prefix@%$prefix%g |
| 6301 | s%@program_transform_name@%$program_transform_name%g |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 6302 | s%@bindir@%$bindir%g |
| 6303 | s%@sbindir@%$sbindir%g |
| 6304 | s%@libexecdir@%$libexecdir%g |
| 6305 | s%@datadir@%$datadir%g |
| 6306 | s%@sysconfdir@%$sysconfdir%g |
| 6307 | s%@sharedstatedir@%$sharedstatedir%g |
| 6308 | s%@localstatedir@%$localstatedir%g |
| 6309 | s%@libdir@%$libdir%g |
| 6310 | s%@includedir@%$includedir%g |
| 6311 | s%@oldincludedir@%$oldincludedir%g |
| 6312 | s%@infodir@%$infodir%g |
| 6313 | s%@mandir@%$mandir%g |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6314 | /@MCONFIG@/r $MCONFIG |
| 6315 | s%@MCONFIG@%%g |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 6316 | s%@E2FSPROGS_YEAR@%$E2FSPROGS_YEAR%g |
| 6317 | s%@E2FSPROGS_MONTH@%$E2FSPROGS_MONTH%g |
Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 6318 | s%@E2FSPROGS_DAY@%$E2FSPROGS_DAY%g |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 6319 | s%@E2FSPROGS_VERSION@%$E2FSPROGS_VERSION%g |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 6320 | s%@host@%$host%g |
| 6321 | s%@host_alias@%$host_alias%g |
| 6322 | s%@host_cpu@%$host_cpu%g |
| 6323 | s%@host_vendor@%$host_vendor%g |
| 6324 | s%@host_os@%$host_os%g |
Theodore Ts'o | d21ae6c | 2003-05-05 09:00:24 -0400 | [diff] [blame] | 6325 | s%@EVMS_CMT@%$EVMS_CMT%g |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 6326 | s%@CC@%$CC%g |
| 6327 | s%@LD@%$LD%g |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 6328 | s%@CPP@%$CPP%g |
| 6329 | s%@LINUX_INCLUDE@%$LINUX_INCLUDE%g |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 6330 | s%@HTREE_CMT@%$HTREE_CMT%g |
| 6331 | s%@HTREE_CLR_CMT@%$HTREE_CLR_CMT%g |
Theodore Ts'o | a9d799a | 2002-11-08 13:50:51 -0500 | [diff] [blame] | 6332 | s%@EVMS_ABI_CODE@%$EVMS_ABI_CODE%g |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6333 | s%@DLL_CMT@%$DLL_CMT%g |
| 6334 | /@MAKEFILE_DLL@/r $MAKEFILE_DLL |
| 6335 | s%@MAKEFILE_DLL@%%g |
| 6336 | s%@ELF_CMT@%$ELF_CMT%g |
| 6337 | /@MAKEFILE_ELF@/r $MAKEFILE_ELF |
| 6338 | s%@MAKEFILE_ELF@%%g |
| 6339 | s%@BSDLIB_CMT@%$BSDLIB_CMT%g |
| 6340 | /@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB |
| 6341 | s%@MAKEFILE_BSDLIB@%%g |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 6342 | s%@PROFILE_CMT@%$PROFILE_CMT%g |
| 6343 | /@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE |
| 6344 | s%@MAKEFILE_PROFILE@%%g |
| 6345 | s%@CHECKER_CMT@%$CHECKER_CMT%g |
| 6346 | /@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER |
| 6347 | s%@MAKEFILE_CHECKER@%%g |
| 6348 | s%@LIB_EXT@%$LIB_EXT%g |
| 6349 | s%@STATIC_LIB_EXT@%$STATIC_LIB_EXT%g |
| 6350 | s%@PROFILED_LIB_EXT@%$PROFILED_LIB_EXT%g |
Theodore Ts'o | feb44c6 | 2002-11-08 14:55:38 -0500 | [diff] [blame] | 6351 | s%@SWAPFS_CMT@%$SWAPFS_CMT%g |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 6352 | s%@DEBUGFS_CMT@%$DEBUGFS_CMT%g |
| 6353 | s%@IMAGER_CMT@%$IMAGER_CMT%g |
| 6354 | s%@RESIZER_CMT@%$RESIZER_CMT%g |
| 6355 | s%@E2FSCK_TYPE@%$E2FSCK_TYPE%g |
| 6356 | s%@FSCK_PROG@%$FSCK_PROG%g |
| 6357 | s%@FSCK_MAN@%$FSCK_MAN%g |
| 6358 | /@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY |
| 6359 | s%@MAKEFILE_LIBRARY@%%g |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6360 | s%@PACKAGE@%$PACKAGE%g |
| 6361 | s%@VERSION@%$VERSION%g |
| 6362 | s%@SET_MAKE@%$SET_MAKE%g |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6363 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
| 6364 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
| 6365 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
| 6366 | s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6367 | s%@MSGFMT@%$MSGFMT%g |
| 6368 | s%@GMSGFMT@%$GMSGFMT%g |
| 6369 | s%@XGETTEXT@%$XGETTEXT%g |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6370 | s%@MSGMERGE@%$MSGMERGE%g |
| 6371 | s%@RANLIB@%$RANLIB%g |
| 6372 | s%@ALLOCA@%$ALLOCA%g |
| 6373 | s%@GLIBC21@%$GLIBC21%g |
| 6374 | s%@LIBICONV@%$LIBICONV%g |
| 6375 | s%@LTLIBICONV@%$LTLIBICONV%g |
| 6376 | s%@INTLBISON@%$INTLBISON%g |
| 6377 | s%@USE_NLS@%$USE_NLS%g |
| 6378 | s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6379 | s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6380 | s%@CATOBJEXT@%$CATOBJEXT%g |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6381 | s%@INTLOBJS@%$INTLOBJS%g |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6382 | s%@DATADIRNAME@%$DATADIRNAME%g |
| 6383 | s%@INSTOBJEXT@%$INSTOBJEXT%g |
| 6384 | s%@GENCAT@%$GENCAT%g |
| 6385 | s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g |
| 6386 | s%@INTLLIBS@%$INTLLIBS%g |
| 6387 | s%@LIBINTL@%$LIBINTL%g |
| 6388 | s%@LTLIBINTL@%$LTLIBINTL%g |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6389 | s%@POSUB@%$POSUB%g |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 6390 | s%@BINARY_TYPE@%$BINARY_TYPE%g |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6391 | s%@LN@%$LN%g |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 6392 | s%@LN_S@%$LN_S%g |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6393 | s%@MV@%$MV%g |
| 6394 | s%@CP@%$CP%g |
| 6395 | s%@RM@%$RM%g |
| 6396 | s%@CHMOD@%$CHMOD%g |
| 6397 | s%@AWK@%$AWK%g |
| 6398 | s%@SED@%$SED%g |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 6399 | s%@PERL@%$PERL%g |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 6400 | s%@LDCONFIG@%$LDCONFIG%g |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6401 | s%@build@%$build%g |
| 6402 | s%@build_alias@%$build_alias%g |
| 6403 | s%@build_cpu@%$build_cpu%g |
| 6404 | s%@build_vendor@%$build_vendor%g |
| 6405 | s%@build_os@%$build_os%g |
| 6406 | s%@AR@%$AR%g |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6407 | s%@STRIP@%$STRIP%g |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 6408 | s%@BUILD_CC@%$BUILD_CC%g |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6409 | s%@SIZEOF_SHORT@%$SIZEOF_SHORT%g |
| 6410 | s%@SIZEOF_INT@%$SIZEOF_INT%g |
| 6411 | s%@SIZEOF_LONG@%$SIZEOF_LONG%g |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 6412 | s%@SIZEOF_LONG_LONG@%$SIZEOF_LONG_LONG%g |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 6413 | s%@SOCKET_LIB@%$SOCKET_LIB%g |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 6414 | s%@DLOPEN_LIB@%$DLOPEN_LIB%g |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 6415 | s%@LINUX_CMT@%$LINUX_CMT%g |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 6416 | s%@CYGWIN_CMT@%$CYGWIN_CMT%g |
| 6417 | s%@UNIX_CMT@%$UNIX_CMT%g |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 6418 | s%@root_prefix@%$root_prefix%g |
Theodore Ts'o | b5ffead | 2002-05-11 19:17:00 -0400 | [diff] [blame] | 6419 | s%@root_bindir@%$root_bindir%g |
| 6420 | s%@root_sbindir@%$root_sbindir%g |
| 6421 | s%@root_libdir@%$root_libdir%g |
| 6422 | s%@root_sysconfdir@%$root_sysconfdir%g |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 6423 | s%@LDFLAG_STATIC@%$LDFLAG_STATIC%g |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6424 | s%@SS_DIR@%$SS_DIR%g |
| 6425 | s%@ET_DIR@%$ET_DIR%g |
| 6426 | s%@DO_TEST_SUITE@%$DO_TEST_SUITE%g |
Theodore Ts'o | c6f35b8 | 2003-05-17 16:29:27 -0400 | [diff] [blame^] | 6427 | s%@INTL_FLAGS@%$INTL_FLAGS%g |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6428 | |
| 6429 | CEOF |
| 6430 | EOF |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 6431 | |
| 6432 | cat >> $CONFIG_STATUS <<\EOF |
| 6433 | |
| 6434 | # Split the substitutions into bite-sized pieces for seds with |
| 6435 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 6436 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
| 6437 | ac_file=1 # Number of current file. |
| 6438 | ac_beg=1 # First line for current file. |
| 6439 | ac_end=$ac_max_sed_cmds # Line after last line for current file. |
| 6440 | ac_more_lines=: |
| 6441 | ac_sed_cmds="" |
| 6442 | while $ac_more_lines; do |
| 6443 | if test $ac_beg -gt 1; then |
| 6444 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
| 6445 | else |
| 6446 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
| 6447 | fi |
| 6448 | if test ! -s conftest.s$ac_file; then |
| 6449 | ac_more_lines=false |
| 6450 | rm -f conftest.s$ac_file |
| 6451 | else |
| 6452 | if test -z "$ac_sed_cmds"; then |
| 6453 | ac_sed_cmds="sed -f conftest.s$ac_file" |
| 6454 | else |
| 6455 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
| 6456 | fi |
| 6457 | ac_file=`expr $ac_file + 1` |
| 6458 | ac_beg=$ac_end |
| 6459 | ac_end=`expr $ac_end + $ac_max_sed_cmds` |
| 6460 | fi |
| 6461 | done |
| 6462 | if test -z "$ac_sed_cmds"; then |
| 6463 | ac_sed_cmds=cat |
| 6464 | fi |
| 6465 | EOF |
| 6466 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6467 | cat >> $CONFIG_STATUS <<EOF |
| 6468 | |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 6469 | CONFIG_FILES=\${CONFIG_FILES-"$outlist"} |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6470 | EOF |
| 6471 | cat >> $CONFIG_STATUS <<\EOF |
| 6472 | 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] | 6473 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6474 | case "$ac_file" in |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 6475 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6476 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 6477 | *) ac_file_in="${ac_file}.in" ;; |
| 6478 | esac |
| 6479 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 6480 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6481 | |
| 6482 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 6483 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 6484 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 6485 | # The file is in a subdirectory. |
| 6486 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
| 6487 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
| 6488 | # A "../" for each directory in $ac_dir_suffix. |
| 6489 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
| 6490 | else |
| 6491 | ac_dir_suffix= ac_dots= |
| 6492 | fi |
| 6493 | |
| 6494 | case "$ac_given_srcdir" in |
| 6495 | .) srcdir=. |
| 6496 | if test -z "$ac_dots"; then top_srcdir=. |
| 6497 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
| 6498 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
| 6499 | *) # Relative path. |
| 6500 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
| 6501 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 6502 | esac |
| 6503 | |
| 6504 | case "$ac_given_INSTALL" in |
| 6505 | [/$]*) INSTALL="$ac_given_INSTALL" ;; |
| 6506 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
| 6507 | esac |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 6508 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6509 | echo creating "$ac_file" |
| 6510 | rm -f "$ac_file" |
| 6511 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
| 6512 | case "$ac_file" in |
| 6513 | *Makefile*) ac_comsub="1i\\ |
| 6514 | # $configure_input" ;; |
| 6515 | *) ac_comsub= ;; |
| 6516 | esac |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 6517 | |
| 6518 | 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] | 6519 | sed -e "$ac_comsub |
| 6520 | s%@configure_input@%$configure_input%g |
| 6521 | s%@srcdir@%$srcdir%g |
| 6522 | s%@top_srcdir@%$top_srcdir%g |
| 6523 | s%@INSTALL@%$INSTALL%g |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 6524 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6525 | fi; done |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 6526 | rm -f conftest.s* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6527 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 6528 | EOF |
| 6529 | cat >> $CONFIG_STATUS <<EOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6530 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
| 6531 | # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it |
| 6532 | # from automake. |
| 6533 | eval 'ALL_LINGUAS''="$ALL_LINGUAS"' |
| 6534 | # Capture the value of LINGUAS because we need it to compute CATALOGS. |
| 6535 | LINGUAS="${LINGUAS-%UNSET%}" |
| 6536 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6537 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 6538 | EOF |
| 6539 | cat >> $CONFIG_STATUS <<\EOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6540 | |
| 6541 | for ac_file in $CONFIG_FILES; do |
| 6542 | # Support "outfile[:infile[:infile...]]" |
| 6543 | case "$ac_file" in |
| 6544 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6545 | esac |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6546 | # PO directories have a Makefile.in generated from Makefile.in.in. |
| 6547 | case "$ac_file" in */Makefile.in) |
| 6548 | # Adjust a relative srcdir. |
| 6549 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` |
| 6550 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" |
| 6551 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
| 6552 | # In autoconf-2.13 it is called $ac_given_srcdir. |
| 6553 | # In autoconf-2.50 it is called $srcdir. |
| 6554 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" |
| 6555 | case "$ac_given_srcdir" in |
| 6556 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; |
| 6557 | /*) top_srcdir="$ac_given_srcdir" ;; |
| 6558 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 6559 | esac |
| 6560 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then |
| 6561 | rm -f "$ac_dir/POTFILES" |
| 6562 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" |
| 6563 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" |
| 6564 | # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend |
| 6565 | # on $ac_dir but don't depend on user-specified configuration |
| 6566 | # parameters. |
| 6567 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then |
| 6568 | # The LINGUAS file contains the set of available languages. |
| 6569 | if test -n "$ALL_LINGUAS"; then |
| 6570 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" |
| 6571 | fi |
| 6572 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` |
| 6573 | # Hide the ALL_LINGUAS assigment from automake. |
| 6574 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' |
| 6575 | fi |
| 6576 | case "$ac_given_srcdir" in |
| 6577 | .) srcdirpre= ;; |
| 6578 | *) srcdirpre='$(srcdir)/' ;; |
| 6579 | esac |
| 6580 | POFILES= |
| 6581 | GMOFILES= |
| 6582 | UPDATEPOFILES= |
| 6583 | DUMMYPOFILES= |
| 6584 | for lang in $ALL_LINGUAS; do |
| 6585 | POFILES="$POFILES $srcdirpre$lang.po" |
| 6586 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" |
| 6587 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" |
| 6588 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" |
| 6589 | done |
| 6590 | # CATALOGS depends on both $ac_dir and the user's LINGUAS |
| 6591 | # environment variable. |
| 6592 | INST_LINGUAS= |
| 6593 | if test -n "$ALL_LINGUAS"; then |
| 6594 | for presentlang in $ALL_LINGUAS; do |
| 6595 | useit=no |
| 6596 | if test "%UNSET%" != "$LINGUAS"; then |
| 6597 | desiredlanguages="$LINGUAS" |
| 6598 | else |
| 6599 | desiredlanguages="$ALL_LINGUAS" |
| 6600 | fi |
| 6601 | for desiredlang in $desiredlanguages; do |
| 6602 | # Use the presentlang catalog if desiredlang is |
| 6603 | # a. equal to presentlang, or |
| 6604 | # b. a variant of presentlang (because in this case, |
| 6605 | # presentlang can be used as a fallback for messages |
| 6606 | # which are not translated in the desiredlang catalog). |
| 6607 | case "$desiredlang" in |
| 6608 | "$presentlang"*) useit=yes;; |
| 6609 | esac |
| 6610 | done |
| 6611 | if test $useit = yes; then |
| 6612 | INST_LINGUAS="$INST_LINGUAS $presentlang" |
| 6613 | fi |
| 6614 | done |
| 6615 | fi |
| 6616 | CATALOGS= |
| 6617 | if test -n "$INST_LINGUAS"; then |
| 6618 | for lang in $INST_LINGUAS; do |
| 6619 | CATALOGS="$CATALOGS $lang.gmo" |
| 6620 | done |
| 6621 | fi |
| 6622 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" |
| 6623 | sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" |
| 6624 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do |
| 6625 | if test -f "$f"; then |
| 6626 | case "$f" in |
| 6627 | *.orig | *.bak | *~) ;; |
| 6628 | *) cat "$f" >> "$ac_dir/Makefile" ;; |
| 6629 | esac |
| 6630 | fi |
| 6631 | done |
| 6632 | fi |
| 6633 | ;; |
| 6634 | esac |
| 6635 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6636 | |
| 6637 | exit 0 |
| 6638 | EOF |
| 6639 | chmod +x $CONFIG_STATUS |
| 6640 | rm -fr confdefs* $ac_clean_files |
| 6641 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
| 6642 | |