Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3 | # Guess values for system-dependent variables and create Makefiles. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4 | # Generated automatically using autoconf version 2.13 |
| 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 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10 | # Defaults: |
| 11 | ac_help= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12 | ac_default_prefix=/usr/local |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13 | # Any additions from configure.in: |
| 14 | ac_help="$ac_help |
| 15 | --with-diet-libc Use diet libc" |
| 16 | ac_help="$ac_help |
| 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 |
| 25 | --with-root-prefix=PREFIX override prefix variable for files to be placed in the root" |
| 26 | ac_help="$ac_help |
| 27 | --enable-compression enable EXPERIMENTAL compression support" |
| 28 | ac_help="$ac_help |
| 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 |
| 33 | --disable-evms don't build EVMS plugin" |
| 34 | ac_help="$ac_help |
| 35 | --enable-evms-10 use EVMS 1.0 ABI (instead of EVMS 1.2)" |
| 36 | ac_help="$ac_help |
| 37 | --enable-evms-11 use EVMS 1.1 ABI (instead of EVMS 1.2)" |
| 38 | ac_help="$ac_help |
| 39 | --enable-dll-shlibs select DLL libraries" |
| 40 | ac_help="$ac_help |
| 41 | --enable-elf-shlibs select ELF shared libraries" |
| 42 | ac_help="$ac_help |
| 43 | --enable-bsd-shlibs select BSD shared libraries" |
| 44 | ac_help="$ac_help |
| 45 | --enable-profile build profiling libraries" |
| 46 | ac_help="$ac_help |
| 47 | --enable-checker build checker libraries" |
| 48 | ac_help="$ac_help |
| 49 | --enable-jbd-debug enable journal debugging" |
| 50 | ac_help="$ac_help |
| 51 | --enable-blkid-debug enable blkid debugging" |
| 52 | ac_help="$ac_help |
| 53 | --enable-testio-debug enable the use of the test I/O manager for debugging" |
| 54 | ac_help="$ac_help |
| 55 | --disable-swapfs disable support of legacy byte-swapped filesystems" |
| 56 | ac_help="$ac_help |
| 57 | --disable-debugfs disable support of debugfs program" |
| 58 | ac_help="$ac_help |
| 59 | --disable-imager disable support of e2image program" |
| 60 | ac_help="$ac_help |
| 61 | --disable-resizer disable support of e2resize program" |
| 62 | ac_help="$ac_help |
| 63 | --enable-dynamic-e2fsck build e2fsck dynamically" |
| 64 | ac_help="$ac_help |
| 65 | --enable-fsck build fsck wrapper program" |
| 66 | ac_help="$ac_help |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 67 | --enable-e2initrd-helper build e2initrd-helper program" |
| 68 | ac_help="$ac_help |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 69 | --enable-old-bitops Use old (non-standard but native) bitmask operations" |
| 70 | ac_help="$ac_help |
| 71 | --with-gnu-ld assume the C compiler uses GNU ld [default=no]" |
| 72 | ac_help="$ac_help |
| 73 | --disable-rpath do not hardcode runtime library paths" |
| 74 | ac_help="$ac_help |
| 75 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib |
| 76 | --without-libiconv-prefix don't search for libiconv in includedir and libdir" |
| 77 | ac_help="$ac_help |
| 78 | --disable-nls do not use Native Language Support" |
| 79 | ac_help="$ac_help |
| 80 | --with-included-gettext use the GNU gettext library included here" |
| 81 | ac_help="$ac_help |
| 82 | --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib |
| 83 | --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] | 84 | |
| 85 | # Initialize some variables set by options. |
| 86 | # The variables have the same names as the options, with |
| 87 | # dashes changed to underlines. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 88 | build=NONE |
| 89 | cache_file=./config.cache |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 90 | exec_prefix=NONE |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 91 | host=NONE |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 92 | no_create= |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 93 | nonopt=NONE |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 94 | no_recursion= |
| 95 | prefix=NONE |
| 96 | program_prefix=NONE |
| 97 | program_suffix=NONE |
| 98 | program_transform_name=s,x,x, |
| 99 | silent= |
| 100 | site= |
| 101 | srcdir= |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 102 | target=NONE |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 103 | verbose= |
| 104 | x_includes=NONE |
| 105 | x_libraries=NONE |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 106 | bindir='${exec_prefix}/bin' |
| 107 | sbindir='${exec_prefix}/sbin' |
| 108 | libexecdir='${exec_prefix}/libexec' |
| 109 | datadir='${prefix}/share' |
| 110 | sysconfdir='${prefix}/etc' |
| 111 | sharedstatedir='${prefix}/com' |
| 112 | localstatedir='${prefix}/var' |
| 113 | libdir='${exec_prefix}/lib' |
| 114 | includedir='${prefix}/include' |
| 115 | oldincludedir='/usr/include' |
| 116 | infodir='${prefix}/info' |
| 117 | mandir='${prefix}/man' |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 118 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 119 | # Initialize some other variables. |
| 120 | subdirs= |
| 121 | MFLAGS= MAKEFLAGS= |
| 122 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 123 | # Maximum number of lines to put in a shell here document. |
| 124 | ac_max_here_lines=12 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 125 | |
| 126 | ac_prev= |
| 127 | for ac_option |
| 128 | do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 129 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 130 | # If the previous option needs an argument, assign it. |
| 131 | if test -n "$ac_prev"; then |
| 132 | eval "$ac_prev=\$ac_option" |
| 133 | ac_prev= |
| 134 | continue |
| 135 | fi |
| 136 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 137 | case "$ac_option" in |
| 138 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
| 139 | *) ac_optarg= ;; |
| 140 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 141 | |
| 142 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 143 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 144 | case "$ac_option" in |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 145 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 146 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 147 | ac_prev=bindir ;; |
| 148 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 149 | bindir="$ac_optarg" ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 150 | |
| 151 | -build | --build | --buil | --bui | --bu) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 152 | ac_prev=build ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 153 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 154 | build="$ac_optarg" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 155 | |
| 156 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 157 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 158 | ac_prev=cache_file ;; |
| 159 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 160 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 161 | cache_file="$ac_optarg" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 162 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 163 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 164 | ac_prev=datadir ;; |
| 165 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 166 | | --da=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 167 | datadir="$ac_optarg" ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 168 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 169 | -disable-* | --disable-*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 170 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 171 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 172 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
| 173 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
| 174 | fi |
| 175 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 176 | eval "enable_${ac_feature}=no" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 177 | |
| 178 | -enable-* | --enable-*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 179 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 180 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 181 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
| 182 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
| 183 | fi |
| 184 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 185 | case "$ac_option" in |
| 186 | *=*) ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 187 | *) ac_optarg=yes ;; |
| 188 | esac |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 189 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 190 | |
| 191 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 192 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 193 | | --exec | --exe | --ex) |
| 194 | ac_prev=exec_prefix ;; |
| 195 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 196 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 197 | | --exec=* | --exe=* | --ex=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 198 | exec_prefix="$ac_optarg" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 199 | |
| 200 | -gas | --gas | --ga | --g) |
| 201 | # Obsolete; use --with-gas. |
| 202 | with_gas=yes ;; |
| 203 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 204 | -help | --help | --hel | --he) |
| 205 | # Omit some internal or obsolete options to make the list less imposing. |
| 206 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 207 | cat << EOF |
| 208 | Usage: configure [options] [host] |
| 209 | Options: [defaults in brackets after descriptions] |
| 210 | Configuration: |
| 211 | --cache-file=FILE cache test results in FILE |
| 212 | --help print this message |
| 213 | --no-create do not create output files |
| 214 | --quiet, --silent do not print \`checking...' messages |
| 215 | --version print the version of autoconf that created configure |
| 216 | Directory and file names: |
| 217 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 218 | [$ac_default_prefix] |
| 219 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 220 | [same as prefix] |
| 221 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
| 222 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
| 223 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
| 224 | --datadir=DIR read-only architecture-independent data in DIR |
| 225 | [PREFIX/share] |
| 226 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
| 227 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
| 228 | [PREFIX/com] |
| 229 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
| 230 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
| 231 | --includedir=DIR C header files in DIR [PREFIX/include] |
| 232 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
| 233 | --infodir=DIR info documentation in DIR [PREFIX/info] |
| 234 | --mandir=DIR man documentation in DIR [PREFIX/man] |
| 235 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
| 236 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 237 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 238 | --program-transform-name=PROGRAM |
| 239 | run sed PROGRAM on installed program names |
| 240 | EOF |
| 241 | cat << EOF |
| 242 | Host type: |
| 243 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
| 244 | --host=HOST configure for HOST [guessed] |
| 245 | --target=TARGET configure for TARGET [TARGET=HOST] |
| 246 | Features and packages: |
| 247 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 248 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 249 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 250 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 251 | --x-includes=DIR X include files are in DIR |
| 252 | --x-libraries=DIR X library files are in DIR |
| 253 | EOF |
| 254 | if test -n "$ac_help"; then |
| 255 | echo "--enable and --with options recognized:$ac_help" |
| 256 | fi |
| 257 | exit 0 ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 258 | |
| 259 | -host | --host | --hos | --ho) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 260 | ac_prev=host ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 261 | -host=* | --host=* | --hos=* | --ho=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 262 | host="$ac_optarg" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 263 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 264 | -includedir | --includedir | --includedi | --included | --include \ |
| 265 | | --includ | --inclu | --incl | --inc) |
| 266 | ac_prev=includedir ;; |
| 267 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 268 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 269 | includedir="$ac_optarg" ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 270 | |
| 271 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 272 | ac_prev=infodir ;; |
| 273 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 274 | infodir="$ac_optarg" ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 275 | |
| 276 | -libdir | --libdir | --libdi | --libd) |
| 277 | ac_prev=libdir ;; |
| 278 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 279 | libdir="$ac_optarg" ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 280 | |
| 281 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 282 | | --libexe | --libex | --libe) |
| 283 | ac_prev=libexecdir ;; |
| 284 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 285 | | --libexe=* | --libex=* | --libe=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 286 | libexecdir="$ac_optarg" ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 287 | |
| 288 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 289 | | --localstate | --localstat | --localsta | --localst \ |
| 290 | | --locals | --local | --loca | --loc | --lo) |
| 291 | ac_prev=localstatedir ;; |
| 292 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 293 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 294 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 295 | localstatedir="$ac_optarg" ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 296 | |
| 297 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 298 | ac_prev=mandir ;; |
| 299 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 300 | mandir="$ac_optarg" ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 301 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 302 | -nfp | --nfp | --nf) |
| 303 | # Obsolete; use --without-fp. |
| 304 | with_fp=no ;; |
| 305 | |
| 306 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 307 | | --no-cr | --no-c) |
| 308 | no_create=yes ;; |
| 309 | |
| 310 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 311 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 312 | no_recursion=yes ;; |
| 313 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 314 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 315 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 316 | | --oldin | --oldi | --old | --ol | --o) |
| 317 | ac_prev=oldincludedir ;; |
| 318 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 319 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 320 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 321 | oldincludedir="$ac_optarg" ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 322 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 323 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 324 | ac_prev=prefix ;; |
| 325 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 326 | prefix="$ac_optarg" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 327 | |
| 328 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 329 | | --program-pre | --program-pr | --program-p) |
| 330 | ac_prev=program_prefix ;; |
| 331 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 332 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 333 | program_prefix="$ac_optarg" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 334 | |
| 335 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 336 | | --program-suf | --program-su | --program-s) |
| 337 | ac_prev=program_suffix ;; |
| 338 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 339 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 340 | program_suffix="$ac_optarg" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 341 | |
| 342 | -program-transform-name | --program-transform-name \ |
| 343 | | --program-transform-nam | --program-transform-na \ |
| 344 | | --program-transform-n | --program-transform- \ |
| 345 | | --program-transform | --program-transfor \ |
| 346 | | --program-transfo | --program-transf \ |
| 347 | | --program-trans | --program-tran \ |
| 348 | | --progr-tra | --program-tr | --program-t) |
| 349 | ac_prev=program_transform_name ;; |
| 350 | -program-transform-name=* | --program-transform-name=* \ |
| 351 | | --program-transform-nam=* | --program-transform-na=* \ |
| 352 | | --program-transform-n=* | --program-transform-=* \ |
| 353 | | --program-transform=* | --program-transfor=* \ |
| 354 | | --program-transfo=* | --program-transf=* \ |
| 355 | | --program-trans=* | --program-tran=* \ |
| 356 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 357 | program_transform_name="$ac_optarg" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 358 | |
| 359 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 360 | | -silent | --silent | --silen | --sile | --sil) |
| 361 | silent=yes ;; |
| 362 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 363 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 364 | ac_prev=sbindir ;; |
| 365 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 366 | | --sbi=* | --sb=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 367 | sbindir="$ac_optarg" ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 368 | |
| 369 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 370 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 371 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 372 | | --sha | --sh) |
| 373 | ac_prev=sharedstatedir ;; |
| 374 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 375 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 376 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 377 | | --sha=* | --sh=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 378 | sharedstatedir="$ac_optarg" ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 379 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 380 | -site | --site | --sit) |
| 381 | ac_prev=site ;; |
| 382 | -site=* | --site=* | --sit=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 383 | site="$ac_optarg" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 384 | |
| 385 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 386 | ac_prev=srcdir ;; |
| 387 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 388 | srcdir="$ac_optarg" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 389 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 390 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 391 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 392 | ac_prev=sysconfdir ;; |
| 393 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 394 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 395 | sysconfdir="$ac_optarg" ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 396 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 397 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 398 | ac_prev=target ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 399 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 400 | target="$ac_optarg" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 401 | |
| 402 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 403 | verbose=yes ;; |
| 404 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 405 | -version | --version | --versio | --versi | --vers) |
| 406 | echo "configure generated by autoconf version 2.13" |
| 407 | exit 0 ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 408 | |
| 409 | -with-* | --with-*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 410 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 411 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 412 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
| 413 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
| 414 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 415 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 416 | case "$ac_option" in |
| 417 | *=*) ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 418 | *) ac_optarg=yes ;; |
| 419 | esac |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 420 | eval "with_${ac_package}='$ac_optarg'" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 421 | |
| 422 | -without-* | --without-*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 423 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 424 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 425 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
| 426 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
| 427 | fi |
| 428 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 429 | eval "with_${ac_package}=no" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 430 | |
| 431 | --x) |
| 432 | # Obsolete; use --with-x. |
| 433 | with_x=yes ;; |
| 434 | |
| 435 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 436 | | --x-incl | --x-inc | --x-in | --x-i) |
| 437 | ac_prev=x_includes ;; |
| 438 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 439 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 440 | x_includes="$ac_optarg" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 441 | |
| 442 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 443 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 444 | ac_prev=x_libraries ;; |
| 445 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 446 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 447 | x_libraries="$ac_optarg" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 448 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 449 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 450 | ;; |
| 451 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 452 | *) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 453 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
| 454 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
| 455 | fi |
| 456 | if test "x$nonopt" != xNONE; then |
| 457 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
| 458 | fi |
| 459 | nonopt="$ac_option" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 460 | ;; |
| 461 | |
| 462 | esac |
| 463 | done |
| 464 | |
| 465 | if test -n "$ac_prev"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 466 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 467 | fi |
| 468 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 469 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
| 470 | |
| 471 | # File descriptor usage: |
| 472 | # 0 standard input |
| 473 | # 1 file creation |
| 474 | # 2 errors and warnings |
| 475 | # 3 some systems may open it to /dev/tty |
| 476 | # 4 used on the Kubota Titan |
| 477 | # 6 checking for... messages and results |
| 478 | # 5 compiler messages saved in config.log |
| 479 | if test "$silent" = yes; then |
| 480 | exec 6>/dev/null |
| 481 | else |
| 482 | exec 6>&1 |
| 483 | fi |
| 484 | exec 5>./config.log |
| 485 | |
| 486 | echo "\ |
| 487 | This file contains any messages produced by compilers while |
| 488 | running configure, to aid debugging if configure makes a mistake. |
| 489 | " 1>&5 |
| 490 | |
| 491 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 492 | # Also quote any args containing shell metacharacters. |
| 493 | ac_configure_args= |
| 494 | for ac_arg |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 495 | do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 496 | case "$ac_arg" in |
| 497 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 498 | | --no-cr | --no-c) ;; |
| 499 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 500 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
| 501 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
| 502 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 503 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 504 | esac |
| 505 | done |
| 506 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 507 | # NLS nuisances. |
| 508 | # Only set these to C if already set. These must not be set unconditionally |
| 509 | # because not all systems understand e.g. LANG=C (notably SCO). |
| 510 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
| 511 | # Non-C LC_CTYPE values break the ctype check. |
| 512 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
| 513 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
| 514 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
| 515 | 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] | 516 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 517 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 518 | rm -rf conftest* confdefs.h |
| 519 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 520 | echo > confdefs.h |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 521 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 522 | # A filename unique to this package, relative to the directory that |
| 523 | # configure is in, which we can look for to find out if srcdir is correct. |
| 524 | ac_unique_file=version.h |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 525 | |
| 526 | # Find the source files, if location was not specified. |
| 527 | if test -z "$srcdir"; then |
| 528 | ac_srcdir_defaulted=yes |
| 529 | # Try the directory containing this script, then its parent. |
| 530 | ac_prog=$0 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 531 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 532 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
| 533 | srcdir=$ac_confdir |
| 534 | if test ! -r $srcdir/$ac_unique_file; then |
| 535 | srcdir=.. |
| 536 | fi |
| 537 | else |
| 538 | ac_srcdir_defaulted=no |
| 539 | fi |
| 540 | if test ! -r $srcdir/$ac_unique_file; then |
| 541 | if test "$ac_srcdir_defaulted" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 542 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 543 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 544 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 545 | fi |
| 546 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 547 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 548 | |
| 549 | # Prefer explicitly selected file to automatically selected ones. |
| 550 | if test -z "$CONFIG_SITE"; then |
| 551 | if test "x$prefix" != xNONE; then |
| 552 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 553 | else |
| 554 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 555 | fi |
| 556 | fi |
| 557 | for ac_site_file in $CONFIG_SITE; do |
| 558 | if test -r "$ac_site_file"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 559 | echo "loading site script $ac_site_file" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 560 | . "$ac_site_file" |
| 561 | fi |
| 562 | done |
| 563 | |
| 564 | if test -r "$cache_file"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 565 | echo "loading cache $cache_file" |
| 566 | . $cache_file |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 567 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 568 | echo "creating cache $cache_file" |
| 569 | > $cache_file |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 570 | fi |
| 571 | |
| 572 | ac_ext=c |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 573 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 574 | ac_cpp='$CPP $CPPFLAGS' |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 575 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 576 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 577 | cross_compiling=$ac_cv_prog_cc_cross |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 578 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 579 | ac_exeext= |
| 580 | ac_objext=o |
| 581 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
| 582 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
| 583 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
| 584 | ac_n= ac_c=' |
| 585 | ' ac_t=' ' |
| 586 | else |
| 587 | ac_n=-n ac_c= ac_t= |
| 588 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 589 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 590 | ac_n= ac_c='\c' ac_t= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 591 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 592 | |
| 593 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
| 594 | if test "${with_gnu_ld+set}" = set; then |
| 595 | withval="$with_gnu_ld" |
| 596 | test "$withval" = no || with_gnu_ld=yes |
| 597 | else |
| 598 | with_gnu_ld=no |
| 599 | fi |
| 600 | |
| 601 | ac_prog=ld |
| 602 | if test "$GCC" = yes; then |
| 603 | # Check if gcc -print-prog-name=ld gives a path. |
| 604 | echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 605 | echo "configure:606: checking for ld used by GCC" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 606 | case $host in |
| 607 | *-*-mingw*) |
| 608 | # gcc leaves a trailing carriage return which upsets mingw |
| 609 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 610 | *) |
| 611 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 612 | esac |
| 613 | case $ac_prog in |
| 614 | # Accept absolute paths. |
| 615 | [\\/]* | [A-Za-z]:[\\/]*) |
| 616 | re_direlt='/[^/][^/]*/\.\./' |
| 617 | # Canonicalize the path of ld |
| 618 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
| 619 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 620 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
| 621 | done |
| 622 | test -z "$LD" && LD="$ac_prog" |
| 623 | ;; |
| 624 | "") |
| 625 | # If it fails, then pretend we aren't using GCC. |
| 626 | ac_prog=ld |
| 627 | ;; |
| 628 | *) |
| 629 | # If it is relative, then search for the first ld in PATH. |
| 630 | with_gnu_ld=unknown |
| 631 | ;; |
| 632 | esac |
| 633 | elif test "$with_gnu_ld" = yes; then |
| 634 | echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 635 | echo "configure:636: checking for GNU ld" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 636 | else |
| 637 | echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 638 | echo "configure:639: checking for non-GNU ld" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 639 | fi |
| 640 | if eval "test \"`echo '$''{'acl_cv_path_LD'+set}'`\" = set"; then |
| 641 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 642 | else |
| 643 | if test -z "$LD"; then |
| 644 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
| 645 | for ac_dir in $PATH; do |
| 646 | test -z "$ac_dir" && ac_dir=. |
| 647 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 648 | acl_cv_path_LD="$ac_dir/$ac_prog" |
| 649 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 650 | # but apparently some GNU ld's only accept -v. |
| 651 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 652 | if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
| 653 | test "$with_gnu_ld" != no && break |
| 654 | else |
| 655 | test "$with_gnu_ld" != yes && break |
| 656 | fi |
| 657 | fi |
| 658 | done |
| 659 | IFS="$ac_save_ifs" |
| 660 | else |
| 661 | acl_cv_path_LD="$LD" # Let the user override the test with a path. |
| 662 | fi |
| 663 | fi |
| 664 | |
| 665 | LD="$acl_cv_path_LD" |
| 666 | if test -n "$LD"; then |
| 667 | echo "$ac_t""$LD" 1>&6 |
| 668 | else |
| 669 | echo "$ac_t""no" 1>&6 |
| 670 | fi |
| 671 | test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } |
| 672 | echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 673 | echo "configure:674: checking if the linker ($LD) is GNU ld" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 674 | if eval "test \"`echo '$''{'acl_cv_prog_gnu_ld'+set}'`\" = set"; then |
| 675 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 676 | else |
| 677 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 678 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then |
| 679 | acl_cv_prog_gnu_ld=yes |
| 680 | else |
| 681 | acl_cv_prog_gnu_ld=no |
| 682 | fi |
| 683 | fi |
| 684 | |
| 685 | echo "$ac_t""$acl_cv_prog_gnu_ld" 1>&6 |
| 686 | with_gnu_ld=$acl_cv_prog_gnu_ld |
| 687 | |
| 688 | |
| 689 | |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 690 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 691 | MCONFIG=./MCONFIG |
| 692 | |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 693 | BINARY_TYPE=bin |
| 694 | E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \ |
| 695 | | awk '{print $3}' | tr \" " " | awk '{print $1}'` |
| 696 | DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \ |
| 697 | | tr \" " "` |
Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 698 | E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'` |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 699 | MONTH=`echo $DATE | awk -F- '{print $2}'` |
| 700 | YEAR=`echo $DATE | awk -F- '{print $3}'` |
| 701 | |
Theodore Ts'o | 14790ed | 1999-01-12 23:32:52 +0000 | [diff] [blame] | 702 | if expr $YEAR ">" 1900 > /dev/null ; then |
| 703 | E2FSPROGS_YEAR=$YEAR |
| 704 | elif expr $YEAR ">" 90 >/dev/null ; then |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 705 | E2FSPROGS_YEAR=19$YEAR |
| 706 | else |
| 707 | E2FSPROGS_YEAR=20$YEAR |
| 708 | fi |
| 709 | |
| 710 | case $MONTH in |
| 711 | Jan) E2FSPROGS_MONTH="January" ;; |
| 712 | Feb) E2FSPROGS_MONTH="February" ;; |
| 713 | Mar) E2FSPROGS_MONTH="March" ;; |
| 714 | Apr) E2FSPROGS_MONTH="April" ;; |
| 715 | May) E2FSPROGS_MONTH="May" ;; |
| 716 | Jun) E2FSPROGS_MONTH="June" ;; |
| 717 | Jul) E2FSPROGS_MONTH="July" ;; |
| 718 | Aug) E2FSPROGS_MONTH="August" ;; |
| 719 | Sep) E2FSPROGS_MONTH="September" ;; |
| 720 | Oct) E2FSPROGS_MONTH="October" ;; |
| 721 | Nov) E2FSPROGS_MONTH="November" ;; |
| 722 | Dec) E2FSPROGS_MONTH="December" ;; |
| 723 | *) echo "Unknown month $MONTH??" ;; |
| 724 | esac |
| 725 | |
| 726 | unset DATE MONTH YEAR |
| 727 | echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" |
| 728 | echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" |
| 729 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 730 | |
| 731 | |
| 732 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 733 | ac_aux_dir= |
| 734 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 735 | if test -f $ac_dir/install-sh; then |
| 736 | ac_aux_dir=$ac_dir |
| 737 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 738 | break |
| 739 | elif test -f $ac_dir/install.sh; then |
| 740 | ac_aux_dir=$ac_dir |
| 741 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 742 | break |
| 743 | fi |
| 744 | done |
| 745 | if test -z "$ac_aux_dir"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 746 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 747 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 748 | ac_config_guess=$ac_aux_dir/config.guess |
| 749 | ac_config_sub=$ac_aux_dir/config.sub |
| 750 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
| 751 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 752 | |
| 753 | # Make sure we can run config.sub. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 754 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
| 755 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 756 | fi |
| 757 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 758 | echo $ac_n "checking host system type""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 759 | echo "configure:760: checking host system type" >&5 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 760 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 761 | host_alias=$host |
| 762 | case "$host_alias" in |
| 763 | NONE) |
| 764 | case $nonopt in |
| 765 | NONE) |
| 766 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : |
| 767 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
| 768 | fi ;; |
| 769 | *) host_alias=$nonopt ;; |
| 770 | esac ;; |
| 771 | esac |
| 772 | |
| 773 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` |
| 774 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 775 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 776 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 777 | echo "$ac_t""$host" 1>&6 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 778 | |
Theodore Ts'o | d21ae6c | 2003-05-05 09:00:24 -0400 | [diff] [blame] | 779 | EVMS_CMT= |
Theodore Ts'o | d21ae6c | 2003-05-05 09:00:24 -0400 | [diff] [blame] | 780 | # Check whether --with-diet-libc or --without-diet-libc was given. |
| 781 | if test "${with_diet_libc+set}" = set; then |
| 782 | withval="$with_diet_libc" |
| 783 | CC="diet cc -nostdinc" |
| 784 | EVMS_CMT="#" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 785 | echo "$ac_t""CC=$CC" 1>&6 |
| 786 | fi |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 787 | # Check whether --with-cc or --without-cc was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 788 | if test "${with_cc+set}" = set; then |
| 789 | withval="$with_cc" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 790 | echo "$ac_t""CC=$withval" 1>&6 |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 791 | CC=$withval |
| 792 | else |
| 793 | if test -z "$CC" ; then CC=cc; fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 794 | echo "$ac_t""CC defaults to $CC" 1>&6 |
| 795 | fi |
| 796 | export CC |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 797 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 798 | # Extract the first word of "gcc", so it can be a program name with args. |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 799 | set dummy gcc; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 800 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 801 | echo "configure:802: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 802 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 803 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 804 | else |
| 805 | if test -n "$CC"; then |
| 806 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 807 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 808 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 809 | ac_dummy="$PATH" |
| 810 | for ac_dir in $ac_dummy; do |
| 811 | test -z "$ac_dir" && ac_dir=. |
| 812 | if test -f $ac_dir/$ac_word; then |
| 813 | ac_cv_prog_CC="gcc" |
| 814 | break |
| 815 | fi |
| 816 | done |
| 817 | IFS="$ac_save_ifs" |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 818 | fi |
| 819 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 820 | CC="$ac_cv_prog_CC" |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 821 | if test -n "$CC"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 822 | echo "$ac_t""$CC" 1>&6 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 823 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 824 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 825 | fi |
| 826 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 827 | if test -z "$CC"; then |
| 828 | # Extract the first word of "cc", so it can be a program name with args. |
| 829 | set dummy cc; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 830 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 831 | echo "configure:832: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 832 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 833 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 834 | else |
| 835 | if test -n "$CC"; then |
| 836 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 837 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 838 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 839 | ac_prog_rejected=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 840 | ac_dummy="$PATH" |
| 841 | for ac_dir in $ac_dummy; do |
| 842 | test -z "$ac_dir" && ac_dir=. |
| 843 | if test -f $ac_dir/$ac_word; then |
| 844 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
| 845 | ac_prog_rejected=yes |
| 846 | continue |
| 847 | fi |
| 848 | ac_cv_prog_CC="cc" |
| 849 | break |
| 850 | fi |
| 851 | done |
| 852 | IFS="$ac_save_ifs" |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 853 | if test $ac_prog_rejected = yes; then |
| 854 | # We found a bogon in the path, so make sure we never use it. |
| 855 | set dummy $ac_cv_prog_CC |
| 856 | shift |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 857 | if test $# -gt 0; then |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 858 | # We chose a different compiler from the bogus one. |
| 859 | # However, it has the same basename, so the bogon will be chosen |
| 860 | # first if we set CC to just the basename; use the full file name. |
| 861 | shift |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 862 | set dummy "$ac_dir/$ac_word" "$@" |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 863 | shift |
| 864 | ac_cv_prog_CC="$@" |
| 865 | fi |
| 866 | fi |
| 867 | fi |
| 868 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 869 | CC="$ac_cv_prog_CC" |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 870 | if test -n "$CC"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 871 | echo "$ac_t""$CC" 1>&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 872 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 873 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 874 | fi |
| 875 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 876 | if test -z "$CC"; then |
| 877 | case "`uname -s`" in |
| 878 | *win32* | *WIN32*) |
| 879 | # Extract the first word of "cl", so it can be a program name with args. |
| 880 | set dummy cl; ac_word=$2 |
| 881 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 882 | echo "configure:883: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 883 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 884 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 885 | else |
| 886 | if test -n "$CC"; then |
| 887 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 888 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 889 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 890 | ac_dummy="$PATH" |
| 891 | for ac_dir in $ac_dummy; do |
| 892 | test -z "$ac_dir" && ac_dir=. |
| 893 | if test -f $ac_dir/$ac_word; then |
| 894 | ac_cv_prog_CC="cl" |
| 895 | break |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 896 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 897 | done |
| 898 | IFS="$ac_save_ifs" |
| 899 | fi |
| 900 | fi |
| 901 | CC="$ac_cv_prog_CC" |
| 902 | if test -n "$CC"; then |
| 903 | echo "$ac_t""$CC" 1>&6 |
| 904 | else |
| 905 | echo "$ac_t""no" 1>&6 |
| 906 | fi |
| 907 | ;; |
| 908 | esac |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 909 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 910 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 911 | fi |
| 912 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 913 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 914 | echo "configure:915: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 915 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 916 | ac_ext=c |
| 917 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 918 | ac_cpp='$CPP $CPPFLAGS' |
| 919 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 920 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 921 | cross_compiling=$ac_cv_prog_cc_cross |
| 922 | |
| 923 | cat > conftest.$ac_ext << EOF |
| 924 | |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 925 | #line 926 "configure" |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 926 | #include "confdefs.h" |
| 927 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 928 | main(){return(0);} |
| 929 | EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 930 | if { (eval echo configure:931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 931 | ac_cv_prog_cc_works=yes |
| 932 | # If we can't run a trivial program, we are probably using a cross compiler. |
| 933 | if (./conftest; exit) 2>/dev/null; then |
| 934 | ac_cv_prog_cc_cross=no |
| 935 | else |
| 936 | ac_cv_prog_cc_cross=yes |
| 937 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 938 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 939 | echo "configure: failed program was:" >&5 |
| 940 | cat conftest.$ac_ext >&5 |
| 941 | ac_cv_prog_cc_works=no |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 942 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 943 | rm -fr conftest* |
| 944 | ac_ext=c |
| 945 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 946 | ac_cpp='$CPP $CPPFLAGS' |
| 947 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 948 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 949 | cross_compiling=$ac_cv_prog_cc_cross |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 950 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 951 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
| 952 | if test $ac_cv_prog_cc_works = no; then |
| 953 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 954 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 955 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 956 | echo "configure:957: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 957 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
| 958 | cross_compiling=$ac_cv_prog_cc_cross |
| 959 | |
| 960 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 961 | echo "configure:962: checking whether we are using GNU C" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 962 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
| 963 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 964 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 965 | cat > conftest.c <<EOF |
| 966 | #ifdef __GNUC__ |
| 967 | yes; |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 968 | #endif |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 969 | EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 970 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:971: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 971 | ac_cv_prog_gcc=yes |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 972 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 973 | ac_cv_prog_gcc=no |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 974 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 975 | fi |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 976 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 977 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
| 978 | |
| 979 | if test $ac_cv_prog_gcc = yes; then |
| 980 | GCC=yes |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 981 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 982 | GCC= |
| 983 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 984 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 985 | ac_test_CFLAGS="${CFLAGS+set}" |
| 986 | ac_save_CFLAGS="$CFLAGS" |
| 987 | CFLAGS= |
| 988 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 989 | echo "configure:990: checking whether ${CC-cc} accepts -g" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 990 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
| 991 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 992 | else |
| 993 | echo 'void f(){}' > conftest.c |
| 994 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 995 | ac_cv_prog_cc_g=yes |
| 996 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 997 | ac_cv_prog_cc_g=no |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 998 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 999 | rm -f conftest* |
| 1000 | |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 1001 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1002 | |
| 1003 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 1004 | if test "$ac_test_CFLAGS" = set; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1005 | CFLAGS="$ac_save_CFLAGS" |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 1006 | elif test $ac_cv_prog_cc_g = yes; then |
| 1007 | if test "$GCC" = yes; then |
| 1008 | CFLAGS="-g -O2" |
| 1009 | else |
| 1010 | CFLAGS="-g" |
| 1011 | fi |
| 1012 | else |
| 1013 | if test "$GCC" = yes; then |
| 1014 | CFLAGS="-O2" |
| 1015 | else |
| 1016 | CFLAGS= |
| 1017 | fi |
| 1018 | fi |
| 1019 | |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1020 | # Check whether --with-linker or --without-linker was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1021 | if test "${with_linker+set}" = set; then |
| 1022 | withval="$with_linker" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1023 | echo "$ac_t""LD=$withval" 1>&6 |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1024 | LD=$withval |
| 1025 | else |
| 1026 | if test -z "$LD" ; then LD=$CC; fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1027 | echo "$ac_t""LD defaults to $LD" 1>&6 |
| 1028 | fi |
| 1029 | export LD |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1030 | |
| 1031 | # Check whether --with-ccopts or --without-ccopts was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1032 | if test "${with_ccopts+set}" = set; then |
| 1033 | withval="$with_ccopts" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1034 | echo "$ac_t""CCOPTS is $withval" 1>&6 |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 1035 | CFLAGS=$withval |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1036 | fi |
| 1037 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 1038 | echo "configure:1039: checking how to run the C preprocessor" >&5 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1039 | # On Suns, sometimes $CPP names a directory. |
| 1040 | if test -n "$CPP" && test -d "$CPP"; then |
| 1041 | CPP= |
| 1042 | fi |
| 1043 | if test -z "$CPP"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1044 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
| 1045 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1046 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1047 | # This must be in double quotes, not single quotes, because CPP may get |
| 1048 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
| 1049 | CPP="${CC-cc} -E" |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1050 | # On the NeXT, cc -E runs the code through the compiler's parser, |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1051 | # not just through cpp. |
| 1052 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 1053 | #line 1054 "configure" |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1054 | #include "confdefs.h" |
| 1055 | #include <assert.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1056 | Syntax Error |
| 1057 | EOF |
| 1058 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 1059 | { (eval echo configure:1060: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1060 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1061 | if test -z "$ac_err"; then |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1062 | : |
| 1063 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1064 | echo "$ac_err" >&5 |
| 1065 | echo "configure: failed program was:" >&5 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1066 | cat conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1067 | rm -rf conftest* |
| 1068 | CPP="${CC-cc} -E -traditional-cpp" |
| 1069 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 1070 | #line 1071 "configure" |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 1071 | #include "confdefs.h" |
| 1072 | #include <assert.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1073 | Syntax Error |
| 1074 | EOF |
| 1075 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 1076 | { (eval echo configure:1077: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1077 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1078 | if test -z "$ac_err"; then |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 1079 | : |
| 1080 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1081 | echo "$ac_err" >&5 |
| 1082 | echo "configure: failed program was:" >&5 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 1083 | cat conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1084 | rm -rf conftest* |
| 1085 | CPP="${CC-cc} -nologo -E" |
| 1086 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 1087 | #line 1088 "configure" |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 1088 | #include "confdefs.h" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1089 | #include <assert.h> |
| 1090 | Syntax Error |
| 1091 | EOF |
| 1092 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 1093 | { (eval echo configure:1094: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1094 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1095 | if test -z "$ac_err"; then |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 1096 | : |
| 1097 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1098 | echo "$ac_err" >&5 |
| 1099 | echo "configure: failed program was:" >&5 |
| 1100 | cat conftest.$ac_ext >&5 |
| 1101 | rm -rf conftest* |
| 1102 | CPP=/lib/cpp |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 1103 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1104 | rm -f conftest* |
| 1105 | fi |
| 1106 | rm -f conftest* |
| 1107 | fi |
| 1108 | rm -f conftest* |
| 1109 | ac_cv_prog_CPP="$CPP" |
| 1110 | fi |
| 1111 | CPP="$ac_cv_prog_CPP" |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 1112 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1113 | ac_cv_prog_CPP="$CPP" |
| 1114 | fi |
| 1115 | echo "$ac_t""$CPP" 1>&6 |
| 1116 | |
| 1117 | ac_safe=`echo "linux/fs.h" | sed 'y%./+-%__p_%'` |
| 1118 | echo $ac_n "checking for linux/fs.h""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 1119 | echo "configure:1120: checking for linux/fs.h" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1120 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 1121 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1122 | else |
| 1123 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 1124 | #line 1125 "configure" |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1125 | #include "confdefs.h" |
| 1126 | #include <linux/fs.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1127 | EOF |
| 1128 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 1129 | { (eval echo configure:1130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1130 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1131 | if test -z "$ac_err"; then |
| 1132 | rm -rf conftest* |
| 1133 | eval "ac_cv_header_$ac_safe=yes" |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1134 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1135 | echo "$ac_err" >&5 |
| 1136 | echo "configure: failed program was:" >&5 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1137 | cat conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1138 | rm -rf conftest* |
| 1139 | eval "ac_cv_header_$ac_safe=no" |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1140 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1141 | rm -f conftest* |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1142 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1143 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 1144 | echo "$ac_t""yes" 1>&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1145 | linux_headers=yes |
| 1146 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1147 | echo "$ac_t""no" 1>&6 |
| 1148 | linux_headers=no |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1149 | fi |
| 1150 | |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 1151 | if test "$linux_headers" != yes; then |
| 1152 | LINUX_INCLUDE='-I$(top_builddir)/include' |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1153 | fi |
| 1154 | |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 1155 | echo $ac_n "checking for additional special compiler flags""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 1156 | echo "configure:1157: checking for additional special compiler flags" >&5 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 1157 | if test "$GCC" = yes |
| 1158 | then |
| 1159 | case "$host_cpu" in |
| 1160 | alpha) addcflags="-mieee" ;; |
| 1161 | esac |
| 1162 | fi |
| 1163 | if test "x$addcflags" != x |
| 1164 | then |
| 1165 | echo "$ac_t""$addcflags" 1>&6 |
| 1166 | CFLAGS="$addcflags $CFLAGS" |
| 1167 | else |
| 1168 | echo "$ac_t""(none)" 1>&6 |
| 1169 | fi |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 1170 | LIB_EXT=.a |
| 1171 | STATIC_LIB_EXT=.a |
| 1172 | PROFILE_LIB_EXT=.a |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1173 | # Check whether --with-ldopts or --without-ldopts was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1174 | if test "${with_ldopts+set}" = set; then |
| 1175 | withval="$with_ldopts" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1176 | echo "$ac_t""LDFLAGS is $withval" 1>&6 |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1177 | LDFLAGS=$withval |
| 1178 | else |
| 1179 | LDFLAGS= |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1180 | fi |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1181 | |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 1182 | # Check whether --with-root-prefix or --without-root-prefix was given. |
| 1183 | if test "${with_root_prefix+set}" = set; then |
| 1184 | withval="$with_root_prefix" |
| 1185 | root_prefix=$withval |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 1186 | else |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 1187 | root_prefix=NONE |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1188 | fi |
| 1189 | # Check whether --enable-compression or --disable-compression was given. |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 1190 | if test "${enable_compression+set}" = set; then |
| 1191 | enableval="$enable_compression" |
| 1192 | if test "$enableval" = "no" |
| 1193 | then |
| 1194 | echo "Disabling compression support" |
| 1195 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1196 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 1197 | #define ENABLE_COMPRESSION 1 |
| 1198 | EOF |
| 1199 | |
| 1200 | echo "Enabling compression support" |
| 1201 | echo "WARNING: Compression support is experimental" |
| 1202 | fi |
| 1203 | |
| 1204 | else |
| 1205 | echo "Disabling compression support by default" |
| 1206 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1207 | fi |
| 1208 | |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 1209 | # Check whether --enable-htree or --disable-htree was given. |
| 1210 | if test "${enable_htree+set}" = set; then |
| 1211 | enableval="$enable_htree" |
| 1212 | if test "$enableval" = "no" |
| 1213 | then |
| 1214 | HTREE_CMT=# |
| 1215 | echo "Disabling htree directory support" |
| 1216 | else |
| 1217 | HTREE_CMT= |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1218 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 1219 | #define ENABLE_HTREE 1 |
| 1220 | EOF |
| 1221 | |
| 1222 | echo "Enabling htree directory support" |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 1223 | fi |
| 1224 | |
| 1225 | else |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 1226 | HTREE_CMT= |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1227 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 1228 | #define ENABLE_HTREE 1 |
| 1229 | EOF |
| 1230 | |
| 1231 | echo "Enabling htree directory support by default" |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 1232 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1233 | fi |
| 1234 | |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 1235 | |
| 1236 | # Check whether --enable-htree-clear or --disable-htree-clear was given. |
| 1237 | if test "${enable_htree_clear+set}" = set; then |
| 1238 | enableval="$enable_htree_clear" |
| 1239 | if test "$enableval" = "no" |
| 1240 | then |
| 1241 | HTREE_CLR_CMT=# |
| 1242 | echo "Disabling htree clearing" |
| 1243 | else |
| 1244 | HTREE_CLR_CMT= |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1245 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 1246 | #define ENABLE_HTREE_CLEAR 1 |
| 1247 | EOF |
| 1248 | |
| 1249 | echo "Enabling htree clearing" |
| 1250 | fi |
| 1251 | |
| 1252 | else |
| 1253 | HTREE_CLR_CMT=# |
| 1254 | echo "Disabling htree clearing by default" |
| 1255 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1256 | fi |
| 1257 | |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 1258 | |
Theodore Ts'o | d21ae6c | 2003-05-05 09:00:24 -0400 | [diff] [blame] | 1259 | # Check whether --enable-evms or --disable-evms was given. |
| 1260 | if test "${enable_evms+set}" = set; then |
| 1261 | enableval="$enable_evms" |
Theodore Ts'o | 5c70a50 | 2003-05-20 10:29:29 -0400 | [diff] [blame] | 1262 | if test "$enableval" == "no" |
Theodore Ts'o | d21ae6c | 2003-05-05 09:00:24 -0400 | [diff] [blame] | 1263 | then |
| 1264 | EVMS_CMT="#" |
| 1265 | echo "Disabling EVMS plugin" |
| 1266 | fi |
| 1267 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1268 | fi |
| 1269 | |
Theodore Ts'o | a9d799a | 2002-11-08 13:50:51 -0500 | [diff] [blame] | 1270 | EVMS_ABI_CODE=120 |
| 1271 | # Check whether --enable-evms-10 or --disable-evms-10 was given. |
| 1272 | if test "${enable_evms_10+set}" = set; then |
| 1273 | enableval="$enable_evms_10" |
| 1274 | if test "$enableval" != "no" |
Theodore Ts'o | ff6dbcc | 2002-05-24 22:44:42 -0400 | [diff] [blame] | 1275 | then |
Theodore Ts'o | a9d799a | 2002-11-08 13:50:51 -0500 | [diff] [blame] | 1276 | EVMS_ABI_CODE=100 |
Theodore Ts'o | ff6dbcc | 2002-05-24 22:44:42 -0400 | [diff] [blame] | 1277 | echo "Enabling EVMS 1.0.0 ABI" |
| 1278 | fi |
| 1279 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1280 | fi |
| 1281 | |
Theodore Ts'o | a9d799a | 2002-11-08 13:50:51 -0500 | [diff] [blame] | 1282 | # Check whether --enable-evms-11 or --disable-evms-11 was given. |
| 1283 | if test "${enable_evms_11+set}" = set; then |
| 1284 | enableval="$enable_evms_11" |
| 1285 | if test "$enableval" != "no" |
| 1286 | then |
| 1287 | EVMS_ABI_CODE=110 |
| 1288 | echo "Enabling EVMS 1.1.0 ABI" |
| 1289 | fi |
| 1290 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1291 | fi |
| 1292 | |
Theodore Ts'o | a9d799a | 2002-11-08 13:50:51 -0500 | [diff] [blame] | 1293 | if test "$EVMS_ABI_CODE" = "120" |
| 1294 | then |
| 1295 | echo "Using EVMS 1.2.0 ABI by default" |
Theodore Ts'o | ff6dbcc | 2002-05-24 22:44:42 -0400 | [diff] [blame] | 1296 | fi |
| 1297 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1298 | # Check whether --enable-dll-shlibs or --disable-dll-shlibs was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1299 | if test "${enable_dll_shlibs+set}" = set; then |
| 1300 | enableval="$enable_dll_shlibs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1301 | if test "$enableval" = "no" |
| 1302 | then |
| 1303 | DLL_CMT=# |
| 1304 | MAKEFILE_DLL=/dev/null |
| 1305 | echo "Disabling DLL shared libraries" |
| 1306 | else |
| 1307 | DLL_CMT= |
| 1308 | MAKEFILE_DLL=$srcdir/lib/Makefile.dll-lib |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1309 | BINARY_TYPE=dllbin |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 1310 | LIB_EXT=.sa |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1311 | echo "Enabling DLL shared libraries" |
| 1312 | fi |
| 1313 | |
| 1314 | else |
| 1315 | MAKEFILE_DLL=/dev/null |
| 1316 | DLL_CMT=# |
| 1317 | echo "Disabling DLL shared libraries by default" |
| 1318 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1319 | fi |
| 1320 | |
| 1321 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1322 | |
| 1323 | # Check whether --enable-elf-shlibs or --disable-elf-shlibs was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1324 | if test "${enable_elf_shlibs+set}" = set; then |
| 1325 | enableval="$enable_elf_shlibs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1326 | if test "$enableval" = "no" |
| 1327 | then |
| 1328 | ELF_CMT=# |
| 1329 | MAKEFILE_ELF=/dev/null |
| 1330 | echo "Disabling ELF shared libraries" |
| 1331 | else |
| 1332 | ELF_CMT= |
| 1333 | MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib |
Theodore Ts'o | f5955dd | 2000-10-25 02:38:39 +0000 | [diff] [blame] | 1334 | case "$host_os" in |
| 1335 | solaris2.*) |
| 1336 | MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib |
| 1337 | ;; |
| 1338 | esac |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1339 | BINARY_TYPE=elfbin |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 1340 | LIB_EXT=.so |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1341 | echo "Enabling ELF shared libraries" |
| 1342 | fi |
| 1343 | |
| 1344 | else |
| 1345 | MAKEFILE_ELF=/dev/null |
| 1346 | ELF_CMT=# |
| 1347 | echo "Disabling ELF shared libraries by default" |
| 1348 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1349 | fi |
| 1350 | |
| 1351 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1352 | |
| 1353 | # Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1354 | if test "${enable_bsd_shlibs+set}" = set; then |
| 1355 | enableval="$enable_bsd_shlibs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1356 | if test "$enableval" = "no" |
| 1357 | then |
| 1358 | BSDLIB_CMT=# |
| 1359 | MAKEFILE_BSDLIB=/dev/null |
| 1360 | echo "Disabling BSD shared libraries" |
| 1361 | else |
| 1362 | BSDLIB_CMT= |
| 1363 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 1364 | LIB_EXT=.so |
Theodore Ts'o | e1f0722 | 2003-03-14 02:25:36 -0500 | [diff] [blame] | 1365 | case "$host_os" in |
Theodore Ts'o | aa75ecc | 2003-03-17 10:01:22 -0500 | [diff] [blame] | 1366 | darwin*) |
Theodore Ts'o | e1f0722 | 2003-03-14 02:25:36 -0500 | [diff] [blame] | 1367 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib |
| 1368 | LIB_EXT=.dylib |
| 1369 | ;; |
| 1370 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1371 | echo "Enabling BSD shared libraries" |
| 1372 | fi |
| 1373 | |
| 1374 | else |
| 1375 | MAKEFILE_BSDLIB=/dev/null |
| 1376 | BSDLIB_CMT=# |
| 1377 | echo "Disabling BSD shared libraries by default" |
| 1378 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1379 | fi |
| 1380 | |
| 1381 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1382 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1383 | # Check whether --enable-profile or --disable-profile was given. |
| 1384 | if test "${enable_profile+set}" = set; then |
| 1385 | enableval="$enable_profile" |
| 1386 | if test "$enableval" = "no" |
| 1387 | then |
| 1388 | PROFILE_CMT=# |
| 1389 | MAKEFILE_PROFILE=/dev/null |
| 1390 | echo "Disabling profiling libraries" |
| 1391 | else |
| 1392 | PROFILE_CMT= |
| 1393 | MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile |
| 1394 | PROFILED_LIB_EXT=_p.a |
| 1395 | echo "Building profiling libraries" |
| 1396 | fi |
| 1397 | |
| 1398 | else |
| 1399 | PROFILE_CMT=# |
| 1400 | MAKEFILE_PROFILE=/dev/null |
| 1401 | echo "Disabling profiling libraries by default" |
| 1402 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1403 | fi |
| 1404 | |
| 1405 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1406 | |
| 1407 | # Check whether --enable-checker or --disable-checker was given. |
| 1408 | if test "${enable_checker+set}" = set; then |
| 1409 | enableval="$enable_checker" |
| 1410 | if test "$enableval" = "no" |
| 1411 | then |
| 1412 | CHECKER_CMT=# |
| 1413 | MAKEFILE_CHECKER=/dev/null |
| 1414 | echo "Disabling checker libraries" |
| 1415 | else |
| 1416 | CHECKER_CMT= |
| 1417 | MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker |
| 1418 | echo "Building checker libraries" |
| 1419 | fi |
| 1420 | |
| 1421 | else |
| 1422 | CHECKER_CMT=# |
| 1423 | MAKEFILE_CHECKER=/dev/null |
| 1424 | echo "Disabling checker libraries by default" |
| 1425 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1426 | fi |
| 1427 | |
| 1428 | |
| 1429 | |
| 1430 | |
| 1431 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1432 | |
Theodore Ts'o | 782bebf | 2002-11-08 18:46:45 -0500 | [diff] [blame] | 1433 | # Check whether --enable-jbd-debug or --disable-jbd-debug was given. |
| 1434 | if test "${enable_jbd_debug+set}" = set; then |
| 1435 | enableval="$enable_jbd_debug" |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 1436 | if test "$enableval" = "no" |
| 1437 | then |
| 1438 | echo "Disabling journal debugging" |
| 1439 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1440 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 8cf9333 | 2001-12-16 02:23:36 -0500 | [diff] [blame] | 1441 | #define CONFIG_JBD_DEBUG 1 |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 1442 | EOF |
| 1443 | |
| 1444 | echo "Enabling journal debugging" |
| 1445 | fi |
| 1446 | |
| 1447 | else |
| 1448 | echo "Disabling journal debugging by default" |
| 1449 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1450 | fi |
| 1451 | |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 1452 | # Check whether --enable-blkid-debug or --disable-blkid-debug was given. |
| 1453 | if test "${enable_blkid_debug+set}" = set; then |
| 1454 | enableval="$enable_blkid_debug" |
| 1455 | if test "$enableval" = "no" |
| 1456 | then |
| 1457 | echo "Disabling blkid debugging" |
| 1458 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1459 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 1460 | #define CONFIG_BLKID_DEBUG 1 |
| 1461 | EOF |
| 1462 | |
| 1463 | echo "Enabling blkid debugging" |
| 1464 | fi |
| 1465 | |
| 1466 | else |
| 1467 | echo "Disabling blkid debugging by default" |
| 1468 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1469 | fi |
| 1470 | |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 1471 | # Check whether --enable-testio-debug or --disable-testio-debug was given. |
| 1472 | if test "${enable_testio_debug+set}" = set; then |
| 1473 | enableval="$enable_testio_debug" |
| 1474 | if test "$enableval" = "no" |
| 1475 | then |
| 1476 | echo "Disabling testio debugging" |
| 1477 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1478 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 1479 | #define CONFIG_TESTIO_DEBUG 1 |
| 1480 | EOF |
| 1481 | |
| 1482 | echo "Enabling testio debugging" |
| 1483 | fi |
| 1484 | |
| 1485 | else |
| 1486 | echo "Disabling testio debugging by default" |
| 1487 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1488 | fi |
| 1489 | |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 1490 | # Check whether --enable-swapfs or --disable-swapfs was given. |
| 1491 | if test "${enable_swapfs+set}" = set; then |
| 1492 | enableval="$enable_swapfs" |
| 1493 | if test "$enableval" = "no" |
| 1494 | then |
Theodore Ts'o | feb44c6 | 2002-11-08 14:55:38 -0500 | [diff] [blame] | 1495 | SWAPFS_CMT=# |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 1496 | echo "Disabling swapfs support" |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 1497 | else |
Theodore Ts'o | feb44c6 | 2002-11-08 14:55:38 -0500 | [diff] [blame] | 1498 | SWAPFS_CMT= |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1499 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 1500 | #define ENABLE_SWAPFS 1 |
| 1501 | EOF |
| 1502 | |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 1503 | echo "Enabling swapfs support" |
| 1504 | fi |
| 1505 | |
| 1506 | else |
Theodore Ts'o | feb44c6 | 2002-11-08 14:55:38 -0500 | [diff] [blame] | 1507 | SWAPFS_CMT= |
| 1508 | echo "Enabling swapfs support by default" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1509 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 1510 | #define ENABLE_SWAPFS 1 |
| 1511 | EOF |
| 1512 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1513 | |
| 1514 | fi |
| 1515 | |
Theodore Ts'o | feb44c6 | 2002-11-08 14:55:38 -0500 | [diff] [blame] | 1516 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1517 | # Check whether --enable-debugfs or --disable-debugfs was given. |
| 1518 | if test "${enable_debugfs+set}" = set; then |
| 1519 | enableval="$enable_debugfs" |
| 1520 | if test "$enableval" = "no" |
| 1521 | then |
| 1522 | echo "Disabling debugfs support" |
| 1523 | DEBUGFS_CMT="#" |
| 1524 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1525 | DEBUGFS_CMT= |
| 1526 | echo "Enabling debugfs support" |
| 1527 | fi |
| 1528 | |
| 1529 | else |
| 1530 | echo "Enabling debugfs support by default" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1531 | DEBUGFS_CMT= |
| 1532 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1533 | fi |
| 1534 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1535 | |
| 1536 | # Check whether --enable-imager or --disable-imager was given. |
| 1537 | if test "${enable_imager+set}" = set; then |
| 1538 | enableval="$enable_imager" |
| 1539 | if test "$enableval" = "no" |
| 1540 | then |
| 1541 | echo "Disabling e2image support" |
| 1542 | IMAGER_CMT="#" |
| 1543 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1544 | IMAGER_CMT= |
| 1545 | echo "Enabling e2image support" |
| 1546 | fi |
| 1547 | |
| 1548 | else |
| 1549 | echo "Enabling e2image support by default" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1550 | IMAGER_CMT= |
| 1551 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1552 | fi |
| 1553 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1554 | |
| 1555 | # Check whether --enable-resizer or --disable-resizer was given. |
| 1556 | if test "${enable_resizer+set}" = set; then |
| 1557 | enableval="$enable_resizer" |
| 1558 | if test "$enableval" = "no" |
| 1559 | then |
| 1560 | echo "Disabling e2resize support" |
| 1561 | RESIZER_CMT="#" |
| 1562 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1563 | RESIZER_CMT= |
| 1564 | echo "Enabling e2resize support" |
| 1565 | fi |
| 1566 | |
| 1567 | else |
| 1568 | echo "Enabling e2resize support by default" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1569 | RESIZER_CMT= |
| 1570 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1571 | fi |
| 1572 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1573 | |
| 1574 | # Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given. |
| 1575 | if test "${enable_dynamic_e2fsck+set}" = set; then |
| 1576 | enableval="$enable_dynamic_e2fsck" |
| 1577 | if test "$enableval" = "no" |
| 1578 | then |
| 1579 | E2FSCK_TYPE=static |
| 1580 | echo "Building e2fsck statically" |
| 1581 | else |
| 1582 | E2FSCK_TYPE=shared |
| 1583 | echo "Building e2fsck dynamically" |
| 1584 | fi |
| 1585 | |
| 1586 | else |
| 1587 | E2FSCK_TYPE=static |
| 1588 | echo "Building e2fsck statically by default" |
| 1589 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1590 | fi |
| 1591 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1592 | |
| 1593 | # Check whether --enable-fsck or --disable-fsck was given. |
| 1594 | if test "${enable_fsck+set}" = set; then |
| 1595 | enableval="$enable_fsck" |
| 1596 | if test "$enableval" = "no" |
| 1597 | then |
| 1598 | FSCK_PROG='' FSCK_MAN='' |
| 1599 | echo "Not building fsck wrapper" |
| 1600 | else |
| 1601 | FSCK_PROG=fsck FSCK_MAN=fsck.8 |
| 1602 | echo "Building fsck wrapper" |
| 1603 | fi |
| 1604 | |
| 1605 | else |
| 1606 | case "$host_os" in |
Theodore Ts'o | e363240 | 2004-05-04 19:39:54 -0400 | [diff] [blame] | 1607 | gnu*) |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1608 | FSCK_PROG='' FSCK_MAN='' |
| 1609 | echo "Not building fsck wrapper by default" |
| 1610 | ;; |
| 1611 | *) |
| 1612 | FSCK_PROG=fsck FSCK_MAN=fsck.8 |
| 1613 | echo "Building fsck wrapper by default" |
| 1614 | esac |
| 1615 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1616 | fi |
| 1617 | |
| 1618 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1619 | |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 1620 | # Check whether --enable-e2initrd-helper or --disable-e2initrd-helper was given. |
| 1621 | if test "${enable_e2initrd_helper+set}" = set; then |
| 1622 | enableval="$enable_e2initrd_helper" |
| 1623 | if test "$enableval" = "no" |
| 1624 | then |
| 1625 | E2INITRD_PROG='' E2INITRD_MAN='' |
| 1626 | echo "Not building e2initrd helper" |
| 1627 | else |
| 1628 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 |
| 1629 | echo "Building e2initrd helper" |
| 1630 | fi |
| 1631 | |
| 1632 | else |
| 1633 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 |
| 1634 | echo "Building e2initrd helper by default" |
| 1635 | |
| 1636 | fi |
| 1637 | |
| 1638 | |
| 1639 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1640 | MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library |
| 1641 | |
| 1642 | # Check whether --enable-old-bitops or --disable-old-bitops was given. |
| 1643 | if test "${enable_old_bitops+set}" = set; then |
| 1644 | enableval="$enable_old_bitops" |
| 1645 | if test "$enableval" = "no" |
| 1646 | then |
| 1647 | echo "Using new (standard) bitmask operations" |
| 1648 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1649 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1650 | #define EXT2_OLD_BITOPS 1 |
| 1651 | EOF |
| 1652 | |
| 1653 | echo "Using old (native) bitmask operations" |
| 1654 | |
| 1655 | fi |
| 1656 | |
| 1657 | else |
| 1658 | echo "Using standard bitmask operations by default" |
| 1659 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1660 | fi |
| 1661 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1662 | PACKAGE=e2fsprogs |
| 1663 | VERSION="$E2FSPROGS_VERSION" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1664 | cat >> confdefs.h <<EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1665 | #define PACKAGE "$PACKAGE" |
| 1666 | EOF |
| 1667 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1668 | cat >> confdefs.h <<EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1669 | #define VERSION "$VERSION" |
| 1670 | EOF |
| 1671 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1672 | |
| 1673 | |
| 1674 | |
| 1675 | |
| 1676 | echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 1677 | echo "configure:1678: checking for inttypes.h" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1678 | if eval "test \"`echo '$''{'jm_ac_cv_header_inttypes_h'+set}'`\" = set"; then |
| 1679 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1680 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1681 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 1682 | #line 1683 "configure" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1683 | #include "confdefs.h" |
| 1684 | #include <sys/types.h> |
| 1685 | #include <inttypes.h> |
| 1686 | int main() { |
| 1687 | uintmax_t i = (uintmax_t) -1; |
| 1688 | ; return 0; } |
| 1689 | EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 1690 | if { (eval echo configure:1691: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1691 | rm -rf conftest* |
| 1692 | jm_ac_cv_header_inttypes_h=yes |
| 1693 | else |
| 1694 | echo "configure: failed program was:" >&5 |
| 1695 | cat conftest.$ac_ext >&5 |
| 1696 | rm -rf conftest* |
| 1697 | jm_ac_cv_header_inttypes_h=no |
| 1698 | fi |
| 1699 | rm -f conftest* |
| 1700 | fi |
| 1701 | |
| 1702 | echo "$ac_t""$jm_ac_cv_header_inttypes_h" 1>&6 |
| 1703 | if test $jm_ac_cv_header_inttypes_h = yes; then |
| 1704 | cat >> confdefs.h <<EOF |
| 1705 | #define HAVE_INTTYPES_H_WITH_UINTMAX 1 |
| 1706 | EOF |
| 1707 | |
| 1708 | fi |
| 1709 | |
| 1710 | |
| 1711 | echo $ac_n "checking for stdint.h""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 1712 | echo "configure:1713: checking for stdint.h" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1713 | if eval "test \"`echo '$''{'jm_ac_cv_header_stdint_h'+set}'`\" = set"; then |
| 1714 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1715 | else |
| 1716 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 1717 | #line 1718 "configure" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1718 | #include "confdefs.h" |
| 1719 | #include <sys/types.h> |
| 1720 | #include <stdint.h> |
| 1721 | int main() { |
| 1722 | uintmax_t i = (uintmax_t) -1; |
| 1723 | ; return 0; } |
| 1724 | EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 1725 | if { (eval echo configure:1726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1726 | rm -rf conftest* |
| 1727 | jm_ac_cv_header_stdint_h=yes |
| 1728 | else |
| 1729 | echo "configure: failed program was:" >&5 |
| 1730 | cat conftest.$ac_ext >&5 |
| 1731 | rm -rf conftest* |
| 1732 | jm_ac_cv_header_stdint_h=no |
| 1733 | fi |
| 1734 | rm -f conftest* |
| 1735 | fi |
| 1736 | |
| 1737 | echo "$ac_t""$jm_ac_cv_header_stdint_h" 1>&6 |
| 1738 | if test $jm_ac_cv_header_stdint_h = yes; then |
| 1739 | cat >> confdefs.h <<EOF |
| 1740 | #define HAVE_STDINT_H_WITH_UINTMAX 1 |
| 1741 | EOF |
| 1742 | |
| 1743 | fi |
| 1744 | |
| 1745 | |
| 1746 | echo $ac_n "checking for unsigned long long""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 1747 | echo "configure:1748: checking for unsigned long long" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1748 | if eval "test \"`echo '$''{'ac_cv_type_unsigned_long_long'+set}'`\" = set"; then |
| 1749 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1750 | else |
| 1751 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 1752 | #line 1753 "configure" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1753 | #include "confdefs.h" |
| 1754 | unsigned long long ull = 1; int i = 63; |
| 1755 | int main() { |
| 1756 | unsigned long long ullmax = (unsigned long long) -1; |
| 1757 | return ull << i | ull >> i | ullmax / ull | ullmax % ull; |
| 1758 | ; return 0; } |
| 1759 | EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 1760 | if { (eval echo configure:1761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1761 | rm -rf conftest* |
| 1762 | ac_cv_type_unsigned_long_long=yes |
| 1763 | else |
| 1764 | echo "configure: failed program was:" >&5 |
| 1765 | cat conftest.$ac_ext >&5 |
| 1766 | rm -rf conftest* |
| 1767 | ac_cv_type_unsigned_long_long=no |
| 1768 | fi |
| 1769 | rm -f conftest* |
| 1770 | fi |
| 1771 | |
| 1772 | echo "$ac_t""$ac_cv_type_unsigned_long_long" 1>&6 |
| 1773 | if test $ac_cv_type_unsigned_long_long = yes; then |
| 1774 | cat >> confdefs.h <<\EOF |
| 1775 | #define HAVE_UNSIGNED_LONG_LONG 1 |
| 1776 | EOF |
| 1777 | |
| 1778 | fi |
| 1779 | |
| 1780 | |
| 1781 | if test "X$prefix" = "XNONE"; then |
| 1782 | acl_final_prefix="$ac_default_prefix" |
| 1783 | else |
| 1784 | acl_final_prefix="$prefix" |
| 1785 | fi |
| 1786 | if test "X$exec_prefix" = "XNONE"; then |
| 1787 | acl_final_exec_prefix='${prefix}' |
| 1788 | else |
| 1789 | acl_final_exec_prefix="$exec_prefix" |
| 1790 | fi |
| 1791 | acl_save_prefix="$prefix" |
| 1792 | prefix="$acl_final_prefix" |
| 1793 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" |
| 1794 | prefix="$acl_save_prefix" |
| 1795 | |
| 1796 | |
| 1797 | echo $ac_n "checking for shared library run path origin""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 1798 | echo "configure:1799: checking for shared library run path origin" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1799 | if eval "test \"`echo '$''{'acl_cv_rpath'+set}'`\" = set"; then |
| 1800 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1801 | else |
| 1802 | |
| 1803 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ |
| 1804 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh |
| 1805 | . ./conftest.sh |
| 1806 | rm -f ./conftest.sh |
| 1807 | acl_cv_rpath=done |
| 1808 | |
| 1809 | fi |
| 1810 | |
| 1811 | echo "$ac_t""$acl_cv_rpath" 1>&6 |
| 1812 | wl="$acl_cv_wl" |
| 1813 | libext="$acl_cv_libext" |
| 1814 | shlibext="$acl_cv_shlibext" |
| 1815 | hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" |
| 1816 | hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" |
| 1817 | hardcode_direct="$acl_cv_hardcode_direct" |
| 1818 | hardcode_minus_L="$acl_cv_hardcode_minus_L" |
| 1819 | sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec" |
| 1820 | sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec" |
| 1821 | # Check whether --enable-rpath or --disable-rpath was given. |
| 1822 | if test "${enable_rpath+set}" = set; then |
| 1823 | enableval="$enable_rpath" |
| 1824 | : |
| 1825 | else |
| 1826 | enable_rpath=yes |
| 1827 | fi |
| 1828 | |
| 1829 | |
| 1830 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 1831 | echo "configure:1832: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1832 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
| 1833 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
| 1834 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1835 | else |
| 1836 | cat > conftestmake <<\EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1837 | all: |
| 1838 | @echo 'ac_maketemp="${MAKE}"' |
| 1839 | EOF |
| 1840 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1841 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1842 | if test -n "$ac_maketemp"; then |
| 1843 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 1844 | else |
| 1845 | eval ac_cv_prog_make_${ac_make}_set=no |
| 1846 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1847 | rm -f conftestmake |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1848 | fi |
| 1849 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1850 | echo "$ac_t""yes" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1851 | SET_MAKE= |
| 1852 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1853 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1854 | SET_MAKE="MAKE=${MAKE-make}" |
| 1855 | fi |
| 1856 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1857 | # Find a good install program. We prefer a C program (faster), |
| 1858 | # so one script is as good as another. But avoid the broken or |
| 1859 | # incompatible versions: |
| 1860 | # SysV /etc/install, /usr/sbin/install |
| 1861 | # SunOS /usr/etc/install |
| 1862 | # IRIX /sbin/install |
| 1863 | # AIX /bin/install |
| 1864 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 1865 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 1866 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 1867 | # ./install, which can be erroneously created by make from ./install.sh. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1868 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 1869 | echo "configure:1870: checking for a BSD compatible install" >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1870 | if test -z "$INSTALL"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1871 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
| 1872 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1873 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1874 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1875 | for ac_dir in $PATH; do |
| 1876 | # Account for people who put trailing slashes in PATH elements. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1877 | case "$ac_dir/" in |
| 1878 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1879 | *) |
| 1880 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 1881 | # Don't use installbsd from OSF since it installs stuff as root |
| 1882 | # by default. |
| 1883 | for ac_prog in ginstall scoinst install; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1884 | if test -f $ac_dir/$ac_prog; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1885 | if test $ac_prog = install && |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1886 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1887 | # AIX install. It has an incompatible calling convention. |
| 1888 | : |
| 1889 | else |
| 1890 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
| 1891 | break 2 |
| 1892 | fi |
| 1893 | fi |
| 1894 | done |
| 1895 | ;; |
| 1896 | esac |
| 1897 | done |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1898 | IFS="$ac_save_IFS" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1899 | |
| 1900 | fi |
| 1901 | if test "${ac_cv_path_install+set}" = set; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1902 | INSTALL="$ac_cv_path_install" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1903 | else |
| 1904 | # As a last resort, use the slow shell script. We don't cache a |
| 1905 | # path for INSTALL within a source directory, because that will |
| 1906 | # break other packages using the cache if that directory is |
| 1907 | # removed, or if the path is relative. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1908 | INSTALL="$ac_install_sh" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1909 | fi |
| 1910 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1911 | echo "$ac_t""$INSTALL" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1912 | |
| 1913 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 1914 | # It thinks the first close brace ends the variable substitution. |
| 1915 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 1916 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1917 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1918 | |
| 1919 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 1920 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1921 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1922 | MKINSTALLDIRS= |
| 1923 | if test -n "$ac_aux_dir"; then |
| 1924 | MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" |
| 1925 | fi |
| 1926 | if test -z "$MKINSTALLDIRS"; then |
| 1927 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" |
| 1928 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1929 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1930 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1931 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 1932 | set dummy ranlib; ac_word=$2 |
| 1933 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 1934 | echo "configure:1935: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1935 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
| 1936 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1937 | else |
| 1938 | if test -n "$RANLIB"; then |
| 1939 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 1940 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1941 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1942 | ac_dummy="$PATH" |
| 1943 | for ac_dir in $ac_dummy; do |
| 1944 | test -z "$ac_dir" && ac_dir=. |
| 1945 | if test -f $ac_dir/$ac_word; then |
| 1946 | ac_cv_prog_RANLIB="ranlib" |
| 1947 | break |
| 1948 | fi |
| 1949 | done |
| 1950 | IFS="$ac_save_ifs" |
| 1951 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1952 | fi |
| 1953 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1954 | RANLIB="$ac_cv_prog_RANLIB" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1955 | if test -n "$RANLIB"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1956 | echo "$ac_t""$RANLIB" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1957 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1958 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1959 | fi |
| 1960 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 1961 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1962 | echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 1963 | echo "configure:1964: checking for strerror in -lcposix" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1964 | ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'` |
| 1965 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 1966 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 1967 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1968 | ac_save_LIBS="$LIBS" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1969 | LIBS="-lcposix $LIBS" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1970 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 1971 | #line 1972 "configure" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1972 | #include "confdefs.h" |
| 1973 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1974 | /* We use char because int might match the return type of a gcc2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1975 | builtin and then its argument prototype would still apply. */ |
| 1976 | char strerror(); |
| 1977 | |
| 1978 | int main() { |
| 1979 | strerror() |
| 1980 | ; return 0; } |
| 1981 | EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 1982 | if { (eval echo configure:1983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1983 | rm -rf conftest* |
| 1984 | eval "ac_cv_lib_$ac_lib_var=yes" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1985 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1986 | echo "configure: failed program was:" >&5 |
| 1987 | cat conftest.$ac_ext >&5 |
| 1988 | rm -rf conftest* |
| 1989 | eval "ac_cv_lib_$ac_lib_var=no" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1990 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1991 | rm -f conftest* |
| 1992 | LIBS="$ac_save_LIBS" |
| 1993 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1994 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1995 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 1996 | echo "$ac_t""yes" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1997 | LIBS="$LIBS -lcposix" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1998 | else |
| 1999 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2000 | fi |
| 2001 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2002 | |
| 2003 | |
| 2004 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 2005 | echo "configure:2006: checking for ANSI C header files" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2006 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
| 2007 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2008 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2009 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 2010 | #line 2011 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2011 | #include "confdefs.h" |
| 2012 | #include <stdlib.h> |
| 2013 | #include <stdarg.h> |
| 2014 | #include <string.h> |
| 2015 | #include <float.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2016 | EOF |
| 2017 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 2018 | { (eval echo configure:2019: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2019 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 2020 | if test -z "$ac_err"; then |
| 2021 | rm -rf conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2022 | ac_cv_header_stdc=yes |
| 2023 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2024 | echo "$ac_err" >&5 |
| 2025 | echo "configure: failed program was:" >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2026 | cat conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2027 | rm -rf conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2028 | ac_cv_header_stdc=no |
| 2029 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2030 | rm -f conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2031 | |
| 2032 | if test $ac_cv_header_stdc = yes; then |
| 2033 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2034 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 2035 | #line 2036 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2036 | #include "confdefs.h" |
| 2037 | #include <string.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2038 | EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2039 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2040 | egrep "memchr" >/dev/null 2>&1; then |
| 2041 | : |
| 2042 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2043 | rm -rf conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2044 | ac_cv_header_stdc=no |
| 2045 | fi |
| 2046 | rm -f conftest* |
| 2047 | |
| 2048 | fi |
| 2049 | |
| 2050 | if test $ac_cv_header_stdc = yes; then |
| 2051 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2052 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 2053 | #line 2054 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2054 | #include "confdefs.h" |
| 2055 | #include <stdlib.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2056 | EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2057 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2058 | egrep "free" >/dev/null 2>&1; then |
| 2059 | : |
| 2060 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2061 | rm -rf conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2062 | ac_cv_header_stdc=no |
| 2063 | fi |
| 2064 | rm -f conftest* |
| 2065 | |
| 2066 | fi |
| 2067 | |
| 2068 | if test $ac_cv_header_stdc = yes; then |
| 2069 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2070 | if test "$cross_compiling" = yes; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2071 | : |
| 2072 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2073 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 2074 | #line 2075 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2075 | #include "confdefs.h" |
| 2076 | #include <ctype.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2077 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 2078 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2079 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2080 | int main () { int i; for (i = 0; i < 256; i++) |
| 2081 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
| 2082 | exit (0); } |
| 2083 | |
| 2084 | EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 2085 | if { (eval echo configure:2086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2086 | then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2087 | : |
| 2088 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2089 | echo "configure: failed program was:" >&5 |
| 2090 | cat conftest.$ac_ext >&5 |
| 2091 | rm -fr conftest* |
| 2092 | ac_cv_header_stdc=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2093 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2094 | rm -fr conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2095 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2096 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2097 | fi |
| 2098 | fi |
| 2099 | |
| 2100 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
| 2101 | if test $ac_cv_header_stdc = yes; then |
| 2102 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2103 | #define STDC_HEADERS 1 |
| 2104 | EOF |
| 2105 | |
| 2106 | fi |
| 2107 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2108 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 2109 | echo "configure:2110: checking for working const" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2110 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
| 2111 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2112 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2113 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 2114 | #line 2115 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2115 | #include "confdefs.h" |
| 2116 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2117 | int main() { |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2118 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2119 | /* Ultrix mips cc rejects this. */ |
| 2120 | typedef int charset[2]; const charset x; |
| 2121 | /* SunOS 4.1.1 cc rejects this. */ |
| 2122 | char const *const *ccp; |
| 2123 | char **p; |
| 2124 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 2125 | struct point {int x, y;}; |
| 2126 | static struct point const zero = {0,0}; |
| 2127 | /* AIX XL C 1.02.0.0 rejects this. |
| 2128 | It does not let you subtract one const X* pointer from another in an arm |
| 2129 | of an if-expression whose if-part is not a constant expression */ |
| 2130 | const char *g = "string"; |
| 2131 | ccp = &g + (g ? g-g : 0); |
| 2132 | /* HPUX 7.0 cc rejects these. */ |
| 2133 | ++ccp; |
| 2134 | p = (char**) ccp; |
| 2135 | ccp = (char const *const *) p; |
| 2136 | { /* SCO 3.2v4 cc rejects this. */ |
| 2137 | char *t; |
| 2138 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2139 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2140 | *t++ = 0; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2141 | } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2142 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 2143 | int x[] = {25, 17}; |
| 2144 | const int *foo = &x[0]; |
| 2145 | ++foo; |
| 2146 | } |
| 2147 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 2148 | typedef const int *iptr; |
| 2149 | iptr p = 0; |
| 2150 | ++p; |
| 2151 | } |
| 2152 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 2153 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 2154 | struct s { int j; const int *ap[3]; }; |
| 2155 | struct s *b; b->j = 5; |
| 2156 | } |
| 2157 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 2158 | const int foo = 10; |
| 2159 | } |
| 2160 | |
| 2161 | ; return 0; } |
| 2162 | EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 2163 | if { (eval echo configure:2164: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2164 | rm -rf conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2165 | ac_cv_c_const=yes |
| 2166 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2167 | echo "configure: failed program was:" >&5 |
| 2168 | cat conftest.$ac_ext >&5 |
| 2169 | rm -rf conftest* |
| 2170 | ac_cv_c_const=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2171 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2172 | rm -f conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2173 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2174 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2175 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
| 2176 | if test $ac_cv_c_const = no; then |
| 2177 | cat >> confdefs.h <<\EOF |
| 2178 | #define const |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2179 | EOF |
| 2180 | |
| 2181 | fi |
| 2182 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2183 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 2184 | echo "configure:2185: checking for inline" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2185 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
| 2186 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2187 | else |
| 2188 | ac_cv_c_inline=no |
| 2189 | for ac_kw in inline __inline__ __inline; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2190 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 2191 | #line 2192 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2192 | #include "confdefs.h" |
| 2193 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2194 | int main() { |
| 2195 | } $ac_kw foo() { |
| 2196 | ; return 0; } |
| 2197 | EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 2198 | if { (eval echo configure:2199: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2199 | rm -rf conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2200 | ac_cv_c_inline=$ac_kw; break |
| 2201 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2202 | echo "configure: failed program was:" >&5 |
| 2203 | cat conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2204 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2205 | rm -f conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2206 | done |
| 2207 | |
| 2208 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2209 | |
| 2210 | echo "$ac_t""$ac_cv_c_inline" 1>&6 |
| 2211 | case "$ac_cv_c_inline" in |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2212 | inline | yes) ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2213 | no) cat >> confdefs.h <<\EOF |
| 2214 | #define inline |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2215 | EOF |
| 2216 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2217 | *) cat >> confdefs.h <<EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2218 | #define inline $ac_cv_c_inline |
| 2219 | EOF |
| 2220 | ;; |
| 2221 | esac |
| 2222 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2223 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 2224 | echo "configure:2225: checking for off_t" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2225 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
| 2226 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2227 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2228 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 2229 | #line 2230 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2230 | #include "confdefs.h" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2231 | #include <sys/types.h> |
| 2232 | #if STDC_HEADERS |
| 2233 | #include <stdlib.h> |
| 2234 | #include <stddef.h> |
| 2235 | #endif |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2236 | EOF |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2237 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2238 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
| 2239 | rm -rf conftest* |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2240 | ac_cv_type_off_t=yes |
| 2241 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2242 | rm -rf conftest* |
| 2243 | ac_cv_type_off_t=no |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2244 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2245 | rm -f conftest* |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2246 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2247 | fi |
| 2248 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 |
| 2249 | if test $ac_cv_type_off_t = no; then |
| 2250 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2251 | #define off_t long |
| 2252 | EOF |
| 2253 | |
| 2254 | fi |
| 2255 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2256 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 2257 | echo "configure:2258: checking for size_t" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2258 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
| 2259 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2260 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2261 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 2262 | #line 2263 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2263 | #include "confdefs.h" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2264 | #include <sys/types.h> |
| 2265 | #if STDC_HEADERS |
| 2266 | #include <stdlib.h> |
| 2267 | #include <stddef.h> |
| 2268 | #endif |
| 2269 | EOF |
| 2270 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2271 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
| 2272 | rm -rf conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2273 | ac_cv_type_size_t=yes |
| 2274 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2275 | rm -rf conftest* |
| 2276 | ac_cv_type_size_t=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2277 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2278 | rm -f conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2279 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2280 | fi |
| 2281 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 |
| 2282 | if test $ac_cv_type_size_t = no; then |
| 2283 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2284 | #define size_t unsigned |
| 2285 | EOF |
| 2286 | |
| 2287 | fi |
| 2288 | |
| 2289 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 2290 | # for constant arguments. Useless! |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2291 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 2292 | echo "configure:2293: checking for working alloca.h" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2293 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then |
| 2294 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2295 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2296 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 2297 | #line 2298 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2298 | #include "confdefs.h" |
| 2299 | #include <alloca.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2300 | int main() { |
| 2301 | char *p = alloca(2 * sizeof(int)); |
| 2302 | ; return 0; } |
| 2303 | EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 2304 | if { (eval echo configure:2305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2305 | rm -rf conftest* |
| 2306 | ac_cv_header_alloca_h=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2307 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2308 | echo "configure: failed program was:" >&5 |
| 2309 | cat conftest.$ac_ext >&5 |
| 2310 | rm -rf conftest* |
| 2311 | ac_cv_header_alloca_h=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2312 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2313 | rm -f conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2314 | fi |
| 2315 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2316 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 |
| 2317 | if test $ac_cv_header_alloca_h = yes; then |
| 2318 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2319 | #define HAVE_ALLOCA_H 1 |
| 2320 | EOF |
| 2321 | |
| 2322 | fi |
| 2323 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2324 | echo $ac_n "checking for alloca""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 2325 | echo "configure:2326: checking for alloca" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2326 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then |
| 2327 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2328 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2329 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 2330 | #line 2331 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2331 | #include "confdefs.h" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2332 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2333 | #ifdef __GNUC__ |
| 2334 | # define alloca __builtin_alloca |
| 2335 | #else |
| 2336 | # ifdef _MSC_VER |
| 2337 | # include <malloc.h> |
| 2338 | # define alloca _alloca |
| 2339 | # else |
| 2340 | # if HAVE_ALLOCA_H |
| 2341 | # include <alloca.h> |
| 2342 | # else |
| 2343 | # ifdef _AIX |
| 2344 | #pragma alloca |
| 2345 | # else |
| 2346 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 2347 | char *alloca (); |
| 2348 | # endif |
| 2349 | # endif |
| 2350 | # endif |
| 2351 | # endif |
| 2352 | #endif |
| 2353 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2354 | int main() { |
| 2355 | char *p = (char *) alloca(1); |
| 2356 | ; return 0; } |
| 2357 | EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 2358 | if { (eval echo configure:2359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2359 | rm -rf conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2360 | ac_cv_func_alloca_works=yes |
| 2361 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2362 | echo "configure: failed program was:" >&5 |
| 2363 | cat conftest.$ac_ext >&5 |
| 2364 | rm -rf conftest* |
| 2365 | ac_cv_func_alloca_works=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2366 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2367 | rm -f conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2368 | fi |
| 2369 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2370 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2371 | if test $ac_cv_func_alloca_works = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2372 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2373 | #define HAVE_ALLOCA 1 |
| 2374 | EOF |
| 2375 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2376 | fi |
| 2377 | |
| 2378 | if test $ac_cv_func_alloca_works = no; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2379 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2380 | # that cause trouble. Some versions do not even contain alloca or |
| 2381 | # contain a buggy version. If you still want to use their alloca, |
| 2382 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 2383 | ALLOCA=alloca.${ac_objext} |
| 2384 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2385 | #define C_ALLOCA 1 |
| 2386 | EOF |
| 2387 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2388 | |
| 2389 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 2390 | echo "configure:2391: checking whether alloca needs Cray hooks" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2391 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then |
| 2392 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2393 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2394 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 2395 | #line 2396 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2396 | #include "confdefs.h" |
| 2397 | #if defined(CRAY) && ! defined(CRAY2) |
| 2398 | webecray |
| 2399 | #else |
| 2400 | wenotbecray |
| 2401 | #endif |
| 2402 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2403 | EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2404 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2405 | egrep "webecray" >/dev/null 2>&1; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2406 | rm -rf conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2407 | ac_cv_os_cray=yes |
| 2408 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2409 | rm -rf conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2410 | ac_cv_os_cray=no |
| 2411 | fi |
| 2412 | rm -f conftest* |
| 2413 | |
| 2414 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2415 | |
| 2416 | echo "$ac_t""$ac_cv_os_cray" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2417 | if test $ac_cv_os_cray = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2418 | for ac_func in _getb67 GETB67 getb67; do |
| 2419 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 2420 | echo "configure:2421: checking for $ac_func" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2421 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 2422 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2423 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2424 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 2425 | #line 2426 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2426 | #include "confdefs.h" |
| 2427 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2428 | which can conflict with char $ac_func(); below. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2429 | #include <assert.h> |
| 2430 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2431 | /* We use char because int might match the return type of a gcc2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2432 | builtin and then its argument prototype would still apply. */ |
| 2433 | char $ac_func(); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2434 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2435 | int main() { |
| 2436 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2437 | /* The GNU C library defines this for functions which it implements |
| 2438 | to always fail with ENOSYS. Some functions are actually named |
| 2439 | something starting with __ and the normal name is an alias. */ |
| 2440 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 2441 | choke me |
| 2442 | #else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2443 | $ac_func(); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2444 | #endif |
| 2445 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2446 | ; return 0; } |
| 2447 | EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 2448 | if { (eval echo configure:2449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2449 | rm -rf conftest* |
| 2450 | eval "ac_cv_func_$ac_func=yes" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2451 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2452 | echo "configure: failed program was:" >&5 |
| 2453 | cat conftest.$ac_ext >&5 |
| 2454 | rm -rf conftest* |
| 2455 | eval "ac_cv_func_$ac_func=no" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2456 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2457 | rm -f conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2458 | fi |
| 2459 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2460 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 2461 | echo "$ac_t""yes" 1>&6 |
| 2462 | cat >> confdefs.h <<EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2463 | #define CRAY_STACKSEG_END $ac_func |
| 2464 | EOF |
| 2465 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2466 | break |
| 2467 | else |
| 2468 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2469 | fi |
| 2470 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2471 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2472 | fi |
| 2473 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2474 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 2475 | echo "configure:2476: checking stack direction for C alloca" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2476 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then |
| 2477 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2478 | else |
| 2479 | if test "$cross_compiling" = yes; then |
| 2480 | ac_cv_c_stack_direction=0 |
| 2481 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2482 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 2483 | #line 2484 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2484 | #include "confdefs.h" |
| 2485 | find_stack_direction () |
| 2486 | { |
| 2487 | static char *addr = 0; |
| 2488 | auto char dummy; |
| 2489 | if (addr == 0) |
| 2490 | { |
| 2491 | addr = &dummy; |
| 2492 | return find_stack_direction (); |
| 2493 | } |
| 2494 | else |
| 2495 | return (&dummy > addr) ? 1 : -1; |
| 2496 | } |
| 2497 | main () |
| 2498 | { |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2499 | exit (find_stack_direction() < 0); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2500 | } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2501 | EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 2502 | if { (eval echo configure:2503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2503 | then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2504 | ac_cv_c_stack_direction=1 |
| 2505 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2506 | echo "configure: failed program was:" >&5 |
| 2507 | cat conftest.$ac_ext >&5 |
| 2508 | rm -fr conftest* |
| 2509 | ac_cv_c_stack_direction=-1 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2510 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2511 | rm -fr conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2512 | fi |
| 2513 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2514 | fi |
| 2515 | |
| 2516 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 |
| 2517 | cat >> confdefs.h <<EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2518 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
| 2519 | EOF |
| 2520 | |
| 2521 | fi |
| 2522 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2523 | for ac_hdr in unistd.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2524 | do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2525 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 2526 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 2527 | echo "configure:2528: checking for $ac_hdr" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2528 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 2529 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2530 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2531 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 2532 | #line 2533 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2533 | #include "confdefs.h" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2534 | #include <$ac_hdr> |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2535 | EOF |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2536 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 2537 | { (eval echo configure:2538: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2538 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 2539 | if test -z "$ac_err"; then |
| 2540 | rm -rf conftest* |
| 2541 | eval "ac_cv_header_$ac_safe=yes" |
| 2542 | else |
| 2543 | echo "$ac_err" >&5 |
| 2544 | echo "configure: failed program was:" >&5 |
| 2545 | cat conftest.$ac_ext >&5 |
| 2546 | rm -rf conftest* |
| 2547 | eval "ac_cv_header_$ac_safe=no" |
| 2548 | fi |
| 2549 | rm -f conftest* |
| 2550 | fi |
| 2551 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 2552 | echo "$ac_t""yes" 1>&6 |
| 2553 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 2554 | cat >> confdefs.h <<EOF |
| 2555 | #define $ac_tr_hdr 1 |
| 2556 | EOF |
| 2557 | |
| 2558 | else |
| 2559 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2560 | fi |
| 2561 | done |
| 2562 | |
| 2563 | for ac_func in getpagesize |
| 2564 | do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2565 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 2566 | echo "configure:2567: checking for $ac_func" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2567 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 2568 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2569 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2570 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 2571 | #line 2572 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2572 | #include "confdefs.h" |
| 2573 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2574 | which can conflict with char $ac_func(); below. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2575 | #include <assert.h> |
| 2576 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2577 | /* We use char because int might match the return type of a gcc2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2578 | builtin and then its argument prototype would still apply. */ |
| 2579 | char $ac_func(); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2580 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2581 | int main() { |
| 2582 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2583 | /* The GNU C library defines this for functions which it implements |
| 2584 | to always fail with ENOSYS. Some functions are actually named |
| 2585 | something starting with __ and the normal name is an alias. */ |
| 2586 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 2587 | choke me |
| 2588 | #else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2589 | $ac_func(); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2590 | #endif |
| 2591 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2592 | ; return 0; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2593 | EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 2594 | if { (eval echo configure:2595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2595 | rm -rf conftest* |
| 2596 | eval "ac_cv_func_$ac_func=yes" |
| 2597 | else |
| 2598 | echo "configure: failed program was:" >&5 |
| 2599 | cat conftest.$ac_ext >&5 |
| 2600 | rm -rf conftest* |
| 2601 | eval "ac_cv_func_$ac_func=no" |
| 2602 | fi |
| 2603 | rm -f conftest* |
| 2604 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2605 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2606 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 2607 | echo "$ac_t""yes" 1>&6 |
| 2608 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 2609 | cat >> confdefs.h <<EOF |
| 2610 | #define $ac_tr_func 1 |
| 2611 | EOF |
| 2612 | |
| 2613 | else |
| 2614 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2615 | fi |
| 2616 | done |
| 2617 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2618 | echo $ac_n "checking for working mmap""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 2619 | echo "configure:2620: checking for working mmap" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2620 | if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then |
| 2621 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2622 | else |
| 2623 | if test "$cross_compiling" = yes; then |
| 2624 | ac_cv_func_mmap_fixed_mapped=no |
| 2625 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2626 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 2627 | #line 2628 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2628 | #include "confdefs.h" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2629 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2630 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 2631 | Here is a matrix of mmap possibilities: |
| 2632 | mmap private not fixed |
| 2633 | mmap private fixed at somewhere currently unmapped |
| 2634 | mmap private fixed at somewhere already mapped |
| 2635 | mmap shared not fixed |
| 2636 | mmap shared fixed at somewhere currently unmapped |
| 2637 | mmap shared fixed at somewhere already mapped |
| 2638 | For private mappings, we should verify that changes cannot be read() |
| 2639 | back from the file, nor mmap's back from the file at a different |
| 2640 | address. (There have been systems where private was not correctly |
| 2641 | implemented like the infamous i386 svr4.0, and systems where the |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2642 | VM page cache was not coherent with the filesystem buffer cache |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2643 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 2644 | For shared mappings, we should conversely verify that changes get |
| 2645 | propogated back to all the places they're supposed to be. |
| 2646 | |
| 2647 | Grep wants private fixed already mapped. |
| 2648 | The main things grep needs to know about mmap are: |
| 2649 | * does it exist and is it safe to write into the mmap'd area |
| 2650 | * how to use it (BSD variants) */ |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2651 | #include <sys/types.h> |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2652 | #include <fcntl.h> |
| 2653 | #include <sys/mman.h> |
| 2654 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2655 | /* This mess was copied from the GNU getpagesize.h. */ |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2656 | #ifndef HAVE_GETPAGESIZE |
| 2657 | # ifdef HAVE_UNISTD_H |
| 2658 | # include <unistd.h> |
| 2659 | # endif |
| 2660 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2661 | /* Assume that all systems that can run configure have sys/param.h. */ |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2662 | # ifndef HAVE_SYS_PARAM_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2663 | # define HAVE_SYS_PARAM_H 1 |
| 2664 | # endif |
| 2665 | |
| 2666 | # ifdef _SC_PAGESIZE |
| 2667 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 2668 | # else /* no _SC_PAGESIZE */ |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2669 | # ifdef HAVE_SYS_PARAM_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2670 | # include <sys/param.h> |
| 2671 | # ifdef EXEC_PAGESIZE |
| 2672 | # define getpagesize() EXEC_PAGESIZE |
| 2673 | # else /* no EXEC_PAGESIZE */ |
| 2674 | # ifdef NBPG |
| 2675 | # define getpagesize() NBPG * CLSIZE |
| 2676 | # ifndef CLSIZE |
| 2677 | # define CLSIZE 1 |
| 2678 | # endif /* no CLSIZE */ |
| 2679 | # else /* no NBPG */ |
| 2680 | # ifdef NBPC |
| 2681 | # define getpagesize() NBPC |
| 2682 | # else /* no NBPC */ |
| 2683 | # ifdef PAGESIZE |
| 2684 | # define getpagesize() PAGESIZE |
| 2685 | # endif /* PAGESIZE */ |
| 2686 | # endif /* no NBPC */ |
| 2687 | # endif /* no NBPG */ |
| 2688 | # endif /* no EXEC_PAGESIZE */ |
| 2689 | # else /* no HAVE_SYS_PARAM_H */ |
| 2690 | # define getpagesize() 8192 /* punt totally */ |
| 2691 | # endif /* no HAVE_SYS_PARAM_H */ |
| 2692 | # endif /* no _SC_PAGESIZE */ |
| 2693 | |
| 2694 | #endif /* no HAVE_GETPAGESIZE */ |
| 2695 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2696 | #ifdef __cplusplus |
| 2697 | extern "C" { void *malloc(unsigned); } |
| 2698 | #else |
| 2699 | char *malloc(); |
| 2700 | #endif |
| 2701 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2702 | int |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2703 | main() |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2704 | { |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2705 | char *data, *data2, *data3; |
| 2706 | int i, pagesize; |
| 2707 | int fd; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2708 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2709 | pagesize = getpagesize(); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2710 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2711 | /* |
| 2712 | * First, make a file with some known garbage in it. |
| 2713 | */ |
| 2714 | data = malloc(pagesize); |
| 2715 | if (!data) |
| 2716 | exit(1); |
| 2717 | for (i = 0; i < pagesize; ++i) |
| 2718 | *(data + i) = rand(); |
| 2719 | umask(0); |
| 2720 | fd = creat("conftestmmap", 0600); |
| 2721 | if (fd < 0) |
| 2722 | exit(1); |
| 2723 | if (write(fd, data, pagesize) != pagesize) |
| 2724 | exit(1); |
| 2725 | close(fd); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2726 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2727 | /* |
| 2728 | * Next, try to mmap the file at a fixed address which |
| 2729 | * already has something else allocated at it. If we can, |
| 2730 | * also make sure that we see the same garbage. |
| 2731 | */ |
| 2732 | fd = open("conftestmmap", O_RDWR); |
| 2733 | if (fd < 0) |
| 2734 | exit(1); |
| 2735 | data2 = malloc(2 * pagesize); |
| 2736 | if (!data2) |
| 2737 | exit(1); |
| 2738 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); |
| 2739 | if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, |
| 2740 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
| 2741 | exit(1); |
| 2742 | for (i = 0; i < pagesize; ++i) |
| 2743 | if (*(data + i) != *(data2 + i)) |
| 2744 | exit(1); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2745 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2746 | /* |
| 2747 | * Finally, make sure that changes to the mapped area |
| 2748 | * do not percolate back to the file as seen by read(). |
| 2749 | * (This is a bug on some variants of i386 svr4.0.) |
| 2750 | */ |
| 2751 | for (i = 0; i < pagesize; ++i) |
| 2752 | *(data2 + i) = *(data2 + i) + 1; |
| 2753 | data3 = malloc(pagesize); |
| 2754 | if (!data3) |
| 2755 | exit(1); |
| 2756 | if (read(fd, data3, pagesize) != pagesize) |
| 2757 | exit(1); |
| 2758 | for (i = 0; i < pagesize; ++i) |
| 2759 | if (*(data + i) != *(data3 + i)) |
| 2760 | exit(1); |
| 2761 | close(fd); |
| 2762 | unlink("conftestmmap"); |
| 2763 | exit(0); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2764 | } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2765 | |
| 2766 | EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 2767 | if { (eval echo configure:2768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2768 | then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2769 | ac_cv_func_mmap_fixed_mapped=yes |
| 2770 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2771 | echo "configure: failed program was:" >&5 |
| 2772 | cat conftest.$ac_ext >&5 |
| 2773 | rm -fr conftest* |
| 2774 | ac_cv_func_mmap_fixed_mapped=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2775 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2776 | rm -fr conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2777 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2778 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2779 | fi |
| 2780 | |
| 2781 | echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 |
| 2782 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 2783 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2784 | #define HAVE_MMAP 1 |
| 2785 | EOF |
| 2786 | |
| 2787 | fi |
| 2788 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2789 | |
| 2790 | echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 2791 | echo "configure:2792: checking whether we are using the GNU C Library 2.1 or newer" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2792 | if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then |
| 2793 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2794 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2795 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 2796 | #line 2797 "configure" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2797 | #include "confdefs.h" |
| 2798 | |
| 2799 | #include <features.h> |
| 2800 | #ifdef __GNU_LIBRARY__ |
| 2801 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) |
| 2802 | Lucky GNU user |
| 2803 | #endif |
| 2804 | #endif |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2805 | |
| 2806 | EOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2807 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2808 | egrep "Lucky GNU user" >/dev/null 2>&1; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2809 | rm -rf conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2810 | ac_cv_gnu_library_2_1=yes |
| 2811 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2812 | rm -rf conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2813 | ac_cv_gnu_library_2_1=no |
| 2814 | fi |
| 2815 | rm -f conftest* |
| 2816 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2817 | |
| 2818 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2819 | fi |
| 2820 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2821 | echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6 |
| 2822 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2823 | GLIBC21="$ac_cv_gnu_library_2_1" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2824 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2825 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2826 | |
| 2827 | |
| 2828 | echo $ac_n "checking whether integer division by zero raises SIGFPE""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 2829 | echo "configure:2830: checking whether integer division by zero raises SIGFPE" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2830 | if eval "test \"`echo '$''{'gt_cv_int_divbyzero_sigfpe'+set}'`\" = set"; then |
| 2831 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2832 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2833 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2834 | if test "$cross_compiling" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2835 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2836 | # Guess based on the CPU. |
| 2837 | case "$host_cpu" in |
| 2838 | alpha* | i3456786 | m68k | s390*) |
| 2839 | gt_cv_int_divbyzero_sigfpe="guessing yes";; |
| 2840 | *) |
| 2841 | gt_cv_int_divbyzero_sigfpe="guessing no";; |
| 2842 | esac |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2843 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2844 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2845 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 2846 | #line 2847 "configure" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2847 | #include "confdefs.h" |
| 2848 | |
| 2849 | #include <stdlib.h> |
| 2850 | #include <signal.h> |
| 2851 | |
| 2852 | static void |
| 2853 | #ifdef __cplusplus |
| 2854 | sigfpe_handler (int sig) |
| 2855 | #else |
| 2856 | sigfpe_handler (sig) int sig; |
| 2857 | #endif |
| 2858 | { |
| 2859 | /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ |
| 2860 | exit (sig != SIGFPE); |
| 2861 | } |
| 2862 | |
| 2863 | int x = 1; |
| 2864 | int y = 0; |
| 2865 | int z; |
| 2866 | int nan; |
| 2867 | |
| 2868 | int main () |
| 2869 | { |
| 2870 | signal (SIGFPE, sigfpe_handler); |
| 2871 | /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ |
| 2872 | #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) |
| 2873 | signal (SIGTRAP, sigfpe_handler); |
| 2874 | #endif |
| 2875 | /* Linux/SPARC yields signal SIGILL. */ |
| 2876 | #if defined (__sparc__) && defined (__linux__) |
| 2877 | signal (SIGILL, sigfpe_handler); |
| 2878 | #endif |
| 2879 | |
| 2880 | z = x / y; |
| 2881 | nan = y / y; |
| 2882 | exit (1); |
| 2883 | } |
| 2884 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2885 | EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 2886 | if { (eval echo configure:2887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2887 | then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2888 | gt_cv_int_divbyzero_sigfpe=yes |
| 2889 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2890 | echo "configure: failed program was:" >&5 |
| 2891 | cat conftest.$ac_ext >&5 |
| 2892 | rm -fr conftest* |
| 2893 | gt_cv_int_divbyzero_sigfpe=no |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2894 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2895 | rm -fr conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2896 | fi |
| 2897 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2898 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2899 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2900 | |
| 2901 | echo "$ac_t""$gt_cv_int_divbyzero_sigfpe" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2902 | case "$gt_cv_int_divbyzero_sigfpe" in |
| 2903 | *yes) value=1;; |
| 2904 | *) value=0;; |
| 2905 | esac |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2906 | cat >> confdefs.h <<EOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2907 | #define INTDIV0_RAISES_SIGFPE $value |
| 2908 | EOF |
| 2909 | |
| 2910 | |
| 2911 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2912 | |
| 2913 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2914 | if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2915 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2916 | test $ac_cv_type_unsigned_long_long = yes \ |
| 2917 | && ac_type='unsigned long long' \ |
| 2918 | || ac_type='unsigned long' |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2919 | cat >> confdefs.h <<EOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2920 | #define uintmax_t $ac_type |
| 2921 | EOF |
| 2922 | |
| 2923 | fi |
| 2924 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2925 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2926 | echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 2927 | echo "configure:2928: checking for inttypes.h" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2928 | if eval "test \"`echo '$''{'gt_cv_header_inttypes_h'+set}'`\" = set"; then |
| 2929 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2930 | else |
| 2931 | |
| 2932 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 2933 | #line 2934 "configure" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2934 | #include "confdefs.h" |
| 2935 | #include <sys/types.h> |
| 2936 | #include <inttypes.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2937 | int main() { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2938 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2939 | ; return 0; } |
| 2940 | EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 2941 | if { (eval echo configure:2942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2942 | rm -rf conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2943 | gt_cv_header_inttypes_h=yes |
| 2944 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2945 | echo "configure: failed program was:" >&5 |
| 2946 | cat conftest.$ac_ext >&5 |
| 2947 | rm -rf conftest* |
| 2948 | gt_cv_header_inttypes_h=no |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2949 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2950 | rm -f conftest* |
| 2951 | |
| 2952 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2953 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2954 | echo "$ac_t""$gt_cv_header_inttypes_h" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2955 | if test $gt_cv_header_inttypes_h = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2956 | cat >> confdefs.h <<EOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2957 | #define HAVE_INTTYPES_H 1 |
| 2958 | EOF |
| 2959 | |
| 2960 | fi |
| 2961 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2962 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2963 | |
| 2964 | if test $gt_cv_header_inttypes_h = yes; then |
| 2965 | echo $ac_n "checking whether the inttypes.h PRIxNN macros are broken""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 2966 | echo "configure:2967: checking whether the inttypes.h PRIxNN macros are broken" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2967 | if eval "test \"`echo '$''{'gt_cv_inttypes_pri_broken'+set}'`\" = set"; then |
| 2968 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2969 | else |
| 2970 | |
| 2971 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 2972 | #line 2973 "configure" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2973 | #include "confdefs.h" |
| 2974 | #include <inttypes.h> |
| 2975 | #ifdef PRId32 |
| 2976 | char *p = PRId32; |
| 2977 | #endif |
| 2978 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2979 | int main() { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2980 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2981 | ; return 0; } |
| 2982 | EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 2983 | if { (eval echo configure:2984: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2984 | rm -rf conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2985 | gt_cv_inttypes_pri_broken=no |
| 2986 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2987 | echo "configure: failed program was:" >&5 |
| 2988 | cat conftest.$ac_ext >&5 |
| 2989 | rm -rf conftest* |
| 2990 | gt_cv_inttypes_pri_broken=yes |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2991 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2992 | rm -f conftest* |
| 2993 | |
| 2994 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2995 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2996 | echo "$ac_t""$gt_cv_inttypes_pri_broken" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2997 | fi |
| 2998 | if test "$gt_cv_inttypes_pri_broken" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2999 | cat >> confdefs.h <<EOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3000 | #define PRI_MACROS_BROKEN 1 |
| 3001 | EOF |
| 3002 | |
| 3003 | fi |
| 3004 | |
| 3005 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3006 | |
| 3007 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3008 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3009 | |
| 3010 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3011 | use_additional=yes |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3012 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3013 | acl_save_prefix="$prefix" |
| 3014 | prefix="$acl_final_prefix" |
| 3015 | acl_save_exec_prefix="$exec_prefix" |
| 3016 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3017 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3018 | eval additional_includedir=\"$includedir\" |
| 3019 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3020 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3021 | exec_prefix="$acl_save_exec_prefix" |
| 3022 | prefix="$acl_save_prefix" |
| 3023 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3024 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3025 | if test "${with_libiconv_prefix+set}" = set; then |
| 3026 | withval="$with_libiconv_prefix" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3027 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3028 | if test "X$withval" = "Xno"; then |
| 3029 | use_additional=no |
| 3030 | else |
| 3031 | if test "X$withval" = "X"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3032 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3033 | acl_save_prefix="$prefix" |
| 3034 | prefix="$acl_final_prefix" |
| 3035 | acl_save_exec_prefix="$exec_prefix" |
| 3036 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3037 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3038 | eval additional_includedir=\"$includedir\" |
| 3039 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3040 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3041 | exec_prefix="$acl_save_exec_prefix" |
| 3042 | prefix="$acl_save_prefix" |
| 3043 | |
| 3044 | else |
| 3045 | additional_includedir="$withval/include" |
| 3046 | additional_libdir="$withval/lib" |
| 3047 | fi |
| 3048 | fi |
| 3049 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3050 | fi |
| 3051 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3052 | LIBICONV= |
| 3053 | LTLIBICONV= |
| 3054 | INCICONV= |
| 3055 | rpathdirs= |
| 3056 | ltrpathdirs= |
| 3057 | names_already_handled= |
| 3058 | names_next_round='iconv ' |
| 3059 | while test -n "$names_next_round"; do |
| 3060 | names_this_round="$names_next_round" |
| 3061 | names_next_round= |
| 3062 | for name in $names_this_round; do |
| 3063 | already_handled= |
| 3064 | for n in $names_already_handled; do |
| 3065 | if test "$n" = "$name"; then |
| 3066 | already_handled=yes |
| 3067 | break |
| 3068 | fi |
| 3069 | done |
| 3070 | if test -z "$already_handled"; then |
| 3071 | names_already_handled="$names_already_handled $name" |
| 3072 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 3073 | eval value=\"\$HAVE_LIB$uppername\" |
| 3074 | if test -n "$value"; then |
| 3075 | if test "$value" = yes; then |
| 3076 | eval value=\"\$LIB$uppername\" |
| 3077 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" |
| 3078 | eval value=\"\$LTLIB$uppername\" |
| 3079 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" |
| 3080 | else |
| 3081 | : |
| 3082 | fi |
| 3083 | else |
| 3084 | found_dir= |
| 3085 | found_la= |
| 3086 | found_so= |
| 3087 | found_a= |
| 3088 | if test $use_additional = yes; then |
| 3089 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
| 3090 | found_dir="$additional_libdir" |
| 3091 | found_so="$additional_libdir/lib$name.$shlibext" |
| 3092 | if test -f "$additional_libdir/lib$name.la"; then |
| 3093 | found_la="$additional_libdir/lib$name.la" |
| 3094 | fi |
| 3095 | else |
| 3096 | if test -f "$additional_libdir/lib$name.$libext"; then |
| 3097 | found_dir="$additional_libdir" |
| 3098 | found_a="$additional_libdir/lib$name.$libext" |
| 3099 | if test -f "$additional_libdir/lib$name.la"; then |
| 3100 | found_la="$additional_libdir/lib$name.la" |
| 3101 | fi |
| 3102 | fi |
| 3103 | fi |
| 3104 | fi |
| 3105 | if test "X$found_dir" = "X"; then |
| 3106 | for x in $LDFLAGS $LTLIBICONV; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3107 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3108 | acl_save_prefix="$prefix" |
| 3109 | prefix="$acl_final_prefix" |
| 3110 | acl_save_exec_prefix="$exec_prefix" |
| 3111 | exec_prefix="$acl_final_exec_prefix" |
| 3112 | eval x=\"$x\" |
| 3113 | exec_prefix="$acl_save_exec_prefix" |
| 3114 | prefix="$acl_save_prefix" |
| 3115 | |
| 3116 | case "$x" in |
| 3117 | -L*) |
| 3118 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 3119 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
| 3120 | found_dir="$dir" |
| 3121 | found_so="$dir/lib$name.$shlibext" |
| 3122 | if test -f "$dir/lib$name.la"; then |
| 3123 | found_la="$dir/lib$name.la" |
| 3124 | fi |
| 3125 | else |
| 3126 | if test -f "$dir/lib$name.$libext"; then |
| 3127 | found_dir="$dir" |
| 3128 | found_a="$dir/lib$name.$libext" |
| 3129 | if test -f "$dir/lib$name.la"; then |
| 3130 | found_la="$dir/lib$name.la" |
| 3131 | fi |
| 3132 | fi |
| 3133 | fi |
| 3134 | ;; |
| 3135 | esac |
| 3136 | if test "X$found_dir" != "X"; then |
| 3137 | break |
| 3138 | fi |
| 3139 | done |
| 3140 | fi |
| 3141 | if test "X$found_dir" != "X"; then |
| 3142 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" |
| 3143 | if test "X$found_so" != "X"; then |
| 3144 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
| 3145 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 3146 | else |
| 3147 | haveit= |
| 3148 | for x in $ltrpathdirs; do |
| 3149 | if test "X$x" = "X$found_dir"; then |
| 3150 | haveit=yes |
| 3151 | break |
| 3152 | fi |
| 3153 | done |
| 3154 | if test -z "$haveit"; then |
| 3155 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 3156 | fi |
| 3157 | if test "$hardcode_direct" = yes; then |
| 3158 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 3159 | else |
| 3160 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 3161 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 3162 | haveit= |
| 3163 | for x in $rpathdirs; do |
| 3164 | if test "X$x" = "X$found_dir"; then |
| 3165 | haveit=yes |
| 3166 | break |
| 3167 | fi |
| 3168 | done |
| 3169 | if test -z "$haveit"; then |
| 3170 | rpathdirs="$rpathdirs $found_dir" |
| 3171 | fi |
| 3172 | else |
| 3173 | haveit= |
| 3174 | for x in $LDFLAGS $LIBICONV; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3175 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3176 | acl_save_prefix="$prefix" |
| 3177 | prefix="$acl_final_prefix" |
| 3178 | acl_save_exec_prefix="$exec_prefix" |
| 3179 | exec_prefix="$acl_final_exec_prefix" |
| 3180 | eval x=\"$x\" |
| 3181 | exec_prefix="$acl_save_exec_prefix" |
| 3182 | prefix="$acl_save_prefix" |
| 3183 | |
| 3184 | if test "X$x" = "X-L$found_dir"; then |
| 3185 | haveit=yes |
| 3186 | break |
| 3187 | fi |
| 3188 | done |
| 3189 | if test -z "$haveit"; then |
| 3190 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" |
| 3191 | fi |
| 3192 | if test "$hardcode_minus_L" != no; then |
| 3193 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 3194 | else |
| 3195 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 3196 | fi |
| 3197 | fi |
| 3198 | fi |
| 3199 | fi |
| 3200 | else |
| 3201 | if test "X$found_a" != "X"; then |
| 3202 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" |
| 3203 | else |
| 3204 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" |
| 3205 | fi |
| 3206 | fi |
| 3207 | additional_includedir= |
| 3208 | case "$found_dir" in |
| 3209 | */lib | */lib/) |
| 3210 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
| 3211 | additional_includedir="$basedir/include" |
| 3212 | ;; |
| 3213 | esac |
| 3214 | if test "X$additional_includedir" != "X"; then |
| 3215 | if test "X$additional_includedir" != "X/usr/include"; then |
| 3216 | haveit= |
| 3217 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 3218 | if test -n "$GCC"; then |
| 3219 | case $host_os in |
| 3220 | linux*) haveit=yes;; |
| 3221 | esac |
| 3222 | fi |
| 3223 | fi |
| 3224 | if test -z "$haveit"; then |
| 3225 | for x in $CPPFLAGS $INCICONV; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3226 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3227 | acl_save_prefix="$prefix" |
| 3228 | prefix="$acl_final_prefix" |
| 3229 | acl_save_exec_prefix="$exec_prefix" |
| 3230 | exec_prefix="$acl_final_exec_prefix" |
| 3231 | eval x=\"$x\" |
| 3232 | exec_prefix="$acl_save_exec_prefix" |
| 3233 | prefix="$acl_save_prefix" |
| 3234 | |
| 3235 | if test "X$x" = "X-I$additional_includedir"; then |
| 3236 | haveit=yes |
| 3237 | break |
| 3238 | fi |
| 3239 | done |
| 3240 | if test -z "$haveit"; then |
| 3241 | if test -d "$additional_includedir"; then |
| 3242 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" |
| 3243 | fi |
| 3244 | fi |
| 3245 | fi |
| 3246 | fi |
| 3247 | fi |
| 3248 | if test -n "$found_la"; then |
| 3249 | save_libdir="$libdir" |
| 3250 | case "$found_la" in |
| 3251 | */* | *\\*) . "$found_la" ;; |
| 3252 | *) . "./$found_la" ;; |
| 3253 | esac |
| 3254 | libdir="$save_libdir" |
| 3255 | for dep in $dependency_libs; do |
| 3256 | case "$dep" in |
| 3257 | -L*) |
| 3258 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 3259 | if test "X$additional_libdir" != "X/usr/lib"; then |
| 3260 | haveit= |
| 3261 | if test "X$additional_libdir" = "X/usr/local/lib"; then |
| 3262 | if test -n "$GCC"; then |
| 3263 | case $host_os in |
| 3264 | linux*) haveit=yes;; |
| 3265 | esac |
| 3266 | fi |
| 3267 | fi |
| 3268 | if test -z "$haveit"; then |
| 3269 | haveit= |
| 3270 | for x in $LDFLAGS $LIBICONV; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3271 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3272 | acl_save_prefix="$prefix" |
| 3273 | prefix="$acl_final_prefix" |
| 3274 | acl_save_exec_prefix="$exec_prefix" |
| 3275 | exec_prefix="$acl_final_exec_prefix" |
| 3276 | eval x=\"$x\" |
| 3277 | exec_prefix="$acl_save_exec_prefix" |
| 3278 | prefix="$acl_save_prefix" |
| 3279 | |
| 3280 | if test "X$x" = "X-L$additional_libdir"; then |
| 3281 | haveit=yes |
| 3282 | break |
| 3283 | fi |
| 3284 | done |
| 3285 | if test -z "$haveit"; then |
| 3286 | if test -d "$additional_libdir"; then |
| 3287 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" |
| 3288 | fi |
| 3289 | fi |
| 3290 | haveit= |
| 3291 | for x in $LDFLAGS $LTLIBICONV; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3292 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3293 | acl_save_prefix="$prefix" |
| 3294 | prefix="$acl_final_prefix" |
| 3295 | acl_save_exec_prefix="$exec_prefix" |
| 3296 | exec_prefix="$acl_final_exec_prefix" |
| 3297 | eval x=\"$x\" |
| 3298 | exec_prefix="$acl_save_exec_prefix" |
| 3299 | prefix="$acl_save_prefix" |
| 3300 | |
| 3301 | if test "X$x" = "X-L$additional_libdir"; then |
| 3302 | haveit=yes |
| 3303 | break |
| 3304 | fi |
| 3305 | done |
| 3306 | if test -z "$haveit"; then |
| 3307 | if test -d "$additional_libdir"; then |
| 3308 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" |
| 3309 | fi |
| 3310 | fi |
| 3311 | fi |
| 3312 | fi |
| 3313 | ;; |
| 3314 | -R*) |
| 3315 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 3316 | if test "$enable_rpath" != no; then |
| 3317 | haveit= |
| 3318 | for x in $rpathdirs; do |
| 3319 | if test "X$x" = "X$dir"; then |
| 3320 | haveit=yes |
| 3321 | break |
| 3322 | fi |
| 3323 | done |
| 3324 | if test -z "$haveit"; then |
| 3325 | rpathdirs="$rpathdirs $dir" |
| 3326 | fi |
| 3327 | haveit= |
| 3328 | for x in $ltrpathdirs; do |
| 3329 | if test "X$x" = "X$dir"; then |
| 3330 | haveit=yes |
| 3331 | break |
| 3332 | fi |
| 3333 | done |
| 3334 | if test -z "$haveit"; then |
| 3335 | ltrpathdirs="$ltrpathdirs $dir" |
| 3336 | fi |
| 3337 | fi |
| 3338 | ;; |
| 3339 | -l*) |
| 3340 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 3341 | ;; |
| 3342 | *.la) |
| 3343 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 3344 | ;; |
| 3345 | *) |
| 3346 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" |
| 3347 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" |
| 3348 | ;; |
| 3349 | esac |
| 3350 | done |
| 3351 | fi |
| 3352 | else |
| 3353 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 3354 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" |
| 3355 | fi |
| 3356 | fi |
| 3357 | fi |
| 3358 | done |
| 3359 | done |
| 3360 | if test "X$rpathdirs" != "X"; then |
| 3361 | if test -n "$hardcode_libdir_separator"; then |
| 3362 | alldirs= |
| 3363 | for found_dir in $rpathdirs; do |
| 3364 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 3365 | done |
| 3366 | acl_save_libdir="$libdir" |
| 3367 | libdir="$alldirs" |
| 3368 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 3369 | libdir="$acl_save_libdir" |
| 3370 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 3371 | else |
| 3372 | for found_dir in $rpathdirs; do |
| 3373 | acl_save_libdir="$libdir" |
| 3374 | libdir="$found_dir" |
| 3375 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 3376 | libdir="$acl_save_libdir" |
| 3377 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 3378 | done |
| 3379 | fi |
| 3380 | fi |
| 3381 | if test "X$ltrpathdirs" != "X"; then |
| 3382 | for found_dir in $ltrpathdirs; do |
| 3383 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" |
| 3384 | done |
| 3385 | fi |
| 3386 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3387 | |
| 3388 | |
| 3389 | |
| 3390 | |
| 3391 | # Extract the first word of "msgfmt", so it can be a program name with args. |
| 3392 | set dummy msgfmt; ac_word=$2 |
| 3393 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 3394 | echo "configure:3395: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3395 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then |
| 3396 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3397 | else |
| 3398 | case "$MSGFMT" in |
| 3399 | /*) |
| 3400 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. |
| 3401 | ;; |
| 3402 | *) |
| 3403 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 3404 | for ac_dir in $PATH; do |
| 3405 | test -z "$ac_dir" && ac_dir=. |
| 3406 | if test -f $ac_dir/$ac_word; then |
| 3407 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && |
| 3408 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 3409 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" |
| 3410 | break |
| 3411 | fi |
| 3412 | fi |
| 3413 | done |
| 3414 | IFS="$ac_save_ifs" |
| 3415 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" |
| 3416 | ;; |
| 3417 | esac |
| 3418 | fi |
| 3419 | MSGFMT="$ac_cv_path_MSGFMT" |
| 3420 | if test "$MSGFMT" != ":"; then |
| 3421 | echo "$ac_t""$MSGFMT" 1>&6 |
| 3422 | else |
| 3423 | echo "$ac_t""no" 1>&6 |
| 3424 | fi |
| 3425 | |
| 3426 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
| 3427 | set dummy gmsgfmt; ac_word=$2 |
| 3428 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 3429 | echo "configure:3430: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3430 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
| 3431 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3432 | else |
| 3433 | case "$GMSGFMT" in |
| 3434 | /*) |
| 3435 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
| 3436 | ;; |
| 3437 | ?:/*) |
| 3438 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. |
| 3439 | ;; |
| 3440 | *) |
| 3441 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 3442 | ac_dummy="$PATH" |
| 3443 | for ac_dir in $ac_dummy; do |
| 3444 | test -z "$ac_dir" && ac_dir=. |
| 3445 | if test -f $ac_dir/$ac_word; then |
| 3446 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" |
| 3447 | break |
| 3448 | fi |
| 3449 | done |
| 3450 | IFS="$ac_save_ifs" |
| 3451 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
| 3452 | ;; |
| 3453 | esac |
| 3454 | fi |
| 3455 | GMSGFMT="$ac_cv_path_GMSGFMT" |
| 3456 | if test -n "$GMSGFMT"; then |
| 3457 | echo "$ac_t""$GMSGFMT" 1>&6 |
| 3458 | else |
| 3459 | echo "$ac_t""no" 1>&6 |
| 3460 | fi |
| 3461 | |
| 3462 | |
| 3463 | # Extract the first word of "xgettext", so it can be a program name with args. |
| 3464 | set dummy xgettext; ac_word=$2 |
| 3465 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 3466 | echo "configure:3467: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3467 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then |
| 3468 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3469 | else |
| 3470 | case "$XGETTEXT" in |
| 3471 | /*) |
| 3472 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. |
| 3473 | ;; |
| 3474 | *) |
| 3475 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 3476 | for ac_dir in $PATH; do |
| 3477 | test -z "$ac_dir" && ac_dir=. |
| 3478 | if test -f $ac_dir/$ac_word; then |
| 3479 | if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 && |
| 3480 | (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 |
| 3481 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" |
| 3482 | break |
| 3483 | fi |
| 3484 | fi |
| 3485 | done |
| 3486 | IFS="$ac_save_ifs" |
| 3487 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" |
| 3488 | ;; |
| 3489 | esac |
| 3490 | fi |
| 3491 | XGETTEXT="$ac_cv_path_XGETTEXT" |
| 3492 | if test "$XGETTEXT" != ":"; then |
| 3493 | echo "$ac_t""$XGETTEXT" 1>&6 |
| 3494 | else |
| 3495 | echo "$ac_t""no" 1>&6 |
| 3496 | fi |
| 3497 | |
| 3498 | rm -f messages.po |
| 3499 | |
| 3500 | # Extract the first word of "msgmerge", so it can be a program name with args. |
| 3501 | set dummy msgmerge; ac_word=$2 |
| 3502 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 3503 | echo "configure:3504: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3504 | if eval "test \"`echo '$''{'ac_cv_path_MSGMERGE'+set}'`\" = set"; then |
| 3505 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3506 | else |
| 3507 | case "$MSGMERGE" in |
| 3508 | /*) |
| 3509 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. |
| 3510 | ;; |
| 3511 | *) |
| 3512 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 3513 | for ac_dir in $PATH; do |
| 3514 | test -z "$ac_dir" && ac_dir=. |
| 3515 | if test -f $ac_dir/$ac_word; then |
| 3516 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then |
| 3517 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word" |
| 3518 | break |
| 3519 | fi |
| 3520 | fi |
| 3521 | done |
| 3522 | IFS="$ac_save_ifs" |
| 3523 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" |
| 3524 | ;; |
| 3525 | esac |
| 3526 | fi |
| 3527 | MSGMERGE="$ac_cv_path_MSGMERGE" |
| 3528 | if test "$MSGMERGE" != ":"; then |
| 3529 | echo "$ac_t""$MSGMERGE" 1>&6 |
| 3530 | else |
| 3531 | echo "$ac_t""no" 1>&6 |
| 3532 | fi |
| 3533 | |
| 3534 | |
| 3535 | if test "$GMSGFMT" != ":"; then |
| 3536 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && |
| 3537 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 3538 | : ; |
| 3539 | else |
| 3540 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` |
| 3541 | echo "$ac_t""found $GMSGFMT program is not GNU msgfmt; ignore it" 1>&6 |
| 3542 | GMSGFMT=":" |
| 3543 | fi |
| 3544 | fi |
| 3545 | |
| 3546 | if test "$XGETTEXT" != ":"; then |
| 3547 | if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 && |
| 3548 | (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 3549 | : ; |
| 3550 | else |
| 3551 | echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6 |
| 3552 | XGETTEXT=":" |
| 3553 | fi |
| 3554 | rm -f messages.po |
| 3555 | fi |
| 3556 | |
| 3557 | |
| 3558 | |
| 3559 | |
| 3560 | |
| 3561 | for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3562 | stdlib.h string.h unistd.h sys/param.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3563 | do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3564 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 3565 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 3566 | echo "configure:3567: checking for $ac_hdr" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3567 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 3568 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3569 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3570 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 3571 | #line 3572 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3572 | #include "confdefs.h" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3573 | #include <$ac_hdr> |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3574 | EOF |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3575 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 3576 | { (eval echo configure:3577: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3577 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 3578 | if test -z "$ac_err"; then |
| 3579 | rm -rf conftest* |
| 3580 | eval "ac_cv_header_$ac_safe=yes" |
| 3581 | else |
| 3582 | echo "$ac_err" >&5 |
| 3583 | echo "configure: failed program was:" >&5 |
| 3584 | cat conftest.$ac_ext >&5 |
| 3585 | rm -rf conftest* |
| 3586 | eval "ac_cv_header_$ac_safe=no" |
| 3587 | fi |
| 3588 | rm -f conftest* |
| 3589 | fi |
| 3590 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 3591 | echo "$ac_t""yes" 1>&6 |
| 3592 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 3593 | cat >> confdefs.h <<EOF |
| 3594 | #define $ac_tr_hdr 1 |
| 3595 | EOF |
| 3596 | |
| 3597 | else |
| 3598 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3599 | fi |
| 3600 | done |
| 3601 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3602 | for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3603 | geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \ |
| 3604 | strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3605 | do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3606 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 3607 | echo "configure:3608: checking for $ac_func" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3608 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 3609 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3610 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3611 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 3612 | #line 3613 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3613 | #include "confdefs.h" |
| 3614 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3615 | which can conflict with char $ac_func(); below. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3616 | #include <assert.h> |
| 3617 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3618 | /* We use char because int might match the return type of a gcc2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3619 | builtin and then its argument prototype would still apply. */ |
| 3620 | char $ac_func(); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3621 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3622 | int main() { |
| 3623 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3624 | /* The GNU C library defines this for functions which it implements |
| 3625 | to always fail with ENOSYS. Some functions are actually named |
| 3626 | something starting with __ and the normal name is an alias. */ |
| 3627 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 3628 | choke me |
| 3629 | #else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3630 | $ac_func(); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3631 | #endif |
| 3632 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3633 | ; return 0; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3634 | EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 3635 | if { (eval echo configure:3636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3636 | rm -rf conftest* |
| 3637 | eval "ac_cv_func_$ac_func=yes" |
| 3638 | else |
| 3639 | echo "configure: failed program was:" >&5 |
| 3640 | cat conftest.$ac_ext >&5 |
| 3641 | rm -rf conftest* |
| 3642 | eval "ac_cv_func_$ac_func=no" |
| 3643 | fi |
| 3644 | rm -f conftest* |
| 3645 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3646 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3647 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 3648 | echo "$ac_t""yes" 1>&6 |
| 3649 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 3650 | cat >> confdefs.h <<EOF |
| 3651 | #define $ac_tr_func 1 |
| 3652 | EOF |
| 3653 | |
| 3654 | else |
| 3655 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3656 | fi |
| 3657 | done |
| 3658 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3659 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3660 | |
| 3661 | |
| 3662 | |
| 3663 | |
| 3664 | |
| 3665 | am_save_CPPFLAGS="$CPPFLAGS" |
| 3666 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3667 | for element in $INCICONV; do |
| 3668 | haveit= |
| 3669 | for x in $CPPFLAGS; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3670 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3671 | acl_save_prefix="$prefix" |
| 3672 | prefix="$acl_final_prefix" |
| 3673 | acl_save_exec_prefix="$exec_prefix" |
| 3674 | exec_prefix="$acl_final_exec_prefix" |
| 3675 | eval x=\"$x\" |
| 3676 | exec_prefix="$acl_save_exec_prefix" |
| 3677 | prefix="$acl_save_prefix" |
| 3678 | |
| 3679 | if test "X$x" = "X$element"; then |
| 3680 | haveit=yes |
| 3681 | break |
| 3682 | fi |
| 3683 | done |
| 3684 | if test -z "$haveit"; then |
| 3685 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 3686 | fi |
| 3687 | done |
| 3688 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3689 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3690 | echo $ac_n "checking for iconv""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 3691 | echo "configure:3692: checking for iconv" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3692 | if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then |
| 3693 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3694 | else |
| 3695 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3696 | am_cv_func_iconv="no, consider installing GNU libiconv" |
| 3697 | am_cv_lib_iconv=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3698 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 3699 | #line 3700 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3700 | #include "confdefs.h" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3701 | #include <stdlib.h> |
| 3702 | #include <iconv.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3703 | int main() { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3704 | iconv_t cd = iconv_open("",""); |
| 3705 | iconv(cd,NULL,NULL,NULL,NULL); |
| 3706 | iconv_close(cd); |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3707 | ; return 0; } |
| 3708 | EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 3709 | if { (eval echo configure:3710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3710 | rm -rf conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3711 | am_cv_func_iconv=yes |
| 3712 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3713 | echo "configure: failed program was:" >&5 |
| 3714 | cat conftest.$ac_ext >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3715 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3716 | rm -f conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3717 | if test "$am_cv_func_iconv" != yes; then |
| 3718 | am_save_LIBS="$LIBS" |
| 3719 | LIBS="$LIBS $LIBICONV" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3720 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 3721 | #line 3722 "configure" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3722 | #include "confdefs.h" |
| 3723 | #include <stdlib.h> |
| 3724 | #include <iconv.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3725 | int main() { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3726 | iconv_t cd = iconv_open("",""); |
| 3727 | iconv(cd,NULL,NULL,NULL,NULL); |
| 3728 | iconv_close(cd); |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3729 | ; return 0; } |
| 3730 | EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 3731 | if { (eval echo configure:3732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3732 | rm -rf conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3733 | am_cv_lib_iconv=yes |
| 3734 | am_cv_func_iconv=yes |
| 3735 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3736 | echo "configure: failed program was:" >&5 |
| 3737 | cat conftest.$ac_ext >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3738 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3739 | rm -f conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3740 | LIBS="$am_save_LIBS" |
| 3741 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3742 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3743 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3744 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3745 | echo "$ac_t""$am_cv_func_iconv" 1>&6 |
| 3746 | if test "$am_cv_func_iconv" = yes; then |
| 3747 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3748 | #define HAVE_ICONV 1 |
| 3749 | EOF |
| 3750 | |
| 3751 | fi |
| 3752 | if test "$am_cv_lib_iconv" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3753 | echo $ac_n "checking how to link with libiconv""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 3754 | echo "configure:3755: checking how to link with libiconv" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3755 | echo "$ac_t""$LIBICONV" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3756 | else |
| 3757 | CPPFLAGS="$am_save_CPPFLAGS" |
| 3758 | LIBICONV= |
| 3759 | LTLIBICONV= |
| 3760 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3761 | |
| 3762 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3763 | |
| 3764 | if test "$am_cv_func_iconv" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3765 | echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 3766 | echo "configure:3767: checking for iconv declaration" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3767 | if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then |
| 3768 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3769 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3770 | |
| 3771 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 3772 | #line 3773 "configure" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3773 | #include "confdefs.h" |
| 3774 | |
| 3775 | #include <stdlib.h> |
| 3776 | #include <iconv.h> |
| 3777 | extern |
| 3778 | #ifdef __cplusplus |
| 3779 | "C" |
| 3780 | #endif |
| 3781 | #if defined(__STDC__) || defined(__cplusplus) |
| 3782 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); |
| 3783 | #else |
| 3784 | size_t iconv(); |
| 3785 | #endif |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3786 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3787 | int main() { |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3788 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3789 | ; return 0; } |
| 3790 | EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 3791 | if { (eval echo configure:3792: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3792 | rm -rf conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3793 | am_cv_proto_iconv_arg1="" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3794 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3795 | echo "configure: failed program was:" >&5 |
| 3796 | cat conftest.$ac_ext >&5 |
| 3797 | rm -rf conftest* |
| 3798 | am_cv_proto_iconv_arg1="const" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3799 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3800 | rm -f conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3801 | 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] | 3802 | fi |
| 3803 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3804 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3805 | echo "$ac_t""${ac_t:- |
| 3806 | }$am_cv_proto_iconv" 1>&6 |
| 3807 | cat >> confdefs.h <<EOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3808 | #define ICONV_CONST $am_cv_proto_iconv_arg1 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3809 | EOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3810 | |
| 3811 | fi |
| 3812 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3813 | |
| 3814 | echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 3815 | echo "configure:3816: checking for nl_langinfo and CODESET" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3816 | if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then |
| 3817 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3818 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3819 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 3820 | #line 3821 "configure" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3821 | #include "confdefs.h" |
| 3822 | #include <langinfo.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3823 | int main() { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3824 | char* cs = nl_langinfo(CODESET); |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3825 | ; return 0; } |
| 3826 | EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -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 | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3828 | rm -rf conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3829 | am_cv_langinfo_codeset=yes |
| 3830 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3831 | echo "configure: failed program was:" >&5 |
| 3832 | cat conftest.$ac_ext >&5 |
| 3833 | rm -rf conftest* |
| 3834 | am_cv_langinfo_codeset=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3835 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3836 | rm -f conftest* |
| 3837 | |
| 3838 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3839 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3840 | echo "$ac_t""$am_cv_langinfo_codeset" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3841 | if test $am_cv_langinfo_codeset = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3842 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3843 | #define HAVE_LANGINFO_CODESET 1 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3844 | EOF |
| 3845 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3846 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3847 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3848 | if test $ac_cv_header_locale_h = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3849 | |
| 3850 | echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 3851 | echo "configure:3852: checking for LC_MESSAGES" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3852 | if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then |
| 3853 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3854 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3855 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 3856 | #line 3857 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3857 | #include "confdefs.h" |
| 3858 | #include <locale.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3859 | int main() { |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3860 | return LC_MESSAGES |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3861 | ; return 0; } |
| 3862 | EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 3863 | if { (eval echo configure:3864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3864 | rm -rf conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3865 | am_cv_val_LC_MESSAGES=yes |
| 3866 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3867 | echo "configure: failed program was:" >&5 |
| 3868 | cat conftest.$ac_ext >&5 |
| 3869 | rm -rf conftest* |
| 3870 | am_cv_val_LC_MESSAGES=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3871 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3872 | rm -f conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3873 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3874 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3875 | echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6 |
| 3876 | if test $am_cv_val_LC_MESSAGES = yes; then |
| 3877 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3878 | #define HAVE_LC_MESSAGES 1 |
| 3879 | EOF |
| 3880 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3881 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3882 | |
| 3883 | fi |
| 3884 | |
| 3885 | for ac_prog in bison |
| 3886 | do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3887 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3888 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3889 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 3890 | echo "configure:3891: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3891 | if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then |
| 3892 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3893 | else |
| 3894 | if test -n "$INTLBISON"; then |
| 3895 | ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. |
| 3896 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3897 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 3898 | ac_dummy="$PATH" |
| 3899 | for ac_dir in $ac_dummy; do |
| 3900 | test -z "$ac_dir" && ac_dir=. |
| 3901 | if test -f $ac_dir/$ac_word; then |
| 3902 | ac_cv_prog_INTLBISON="$ac_prog" |
| 3903 | break |
| 3904 | fi |
| 3905 | done |
| 3906 | IFS="$ac_save_ifs" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3907 | fi |
| 3908 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3909 | INTLBISON="$ac_cv_prog_INTLBISON" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3910 | if test -n "$INTLBISON"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3911 | echo "$ac_t""$INTLBISON" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3912 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3913 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3914 | fi |
| 3915 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3916 | test -n "$INTLBISON" && break |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3917 | done |
| 3918 | |
| 3919 | if test -z "$INTLBISON"; then |
| 3920 | ac_verc_fail=yes |
| 3921 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3922 | echo $ac_n "checking version of bison""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 3923 | echo "configure:3924: checking version of bison" >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3924 | ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` |
| 3925 | case $ac_prog_version in |
| 3926 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; |
| 3927 | 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) |
| 3928 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
| 3929 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; |
| 3930 | esac |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3931 | echo "$ac_t""$ac_prog_version" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3932 | fi |
| 3933 | if test $ac_verc_fail = yes; then |
| 3934 | INTLBISON=: |
| 3935 | fi |
| 3936 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3937 | |
| 3938 | |
| 3939 | |
| 3940 | |
| 3941 | |
| 3942 | |
| 3943 | |
| 3944 | |
| 3945 | |
| 3946 | |
| 3947 | |
| 3948 | |
| 3949 | |
| 3950 | |
| 3951 | echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 3952 | echo "configure:3953: checking whether NLS is requested" >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3953 | # Check whether --enable-nls or --disable-nls was given. |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3954 | if test "${enable_nls+set}" = set; then |
| 3955 | enableval="$enable_nls" |
| 3956 | USE_NLS=$enableval |
| 3957 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3958 | USE_NLS=yes |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3959 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3960 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3961 | echo "$ac_t""$USE_NLS" 1>&6 |
| 3962 | |
| 3963 | |
| 3964 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3965 | BUILD_INCLUDED_LIBINTL=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3966 | USE_INCLUDED_LIBINTL=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3967 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3968 | LIBINTL= |
| 3969 | LTLIBINTL= |
| 3970 | POSUB= |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3971 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3972 | if test "$USE_NLS" = "yes"; then |
| 3973 | gt_use_preinstalled_gnugettext=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3974 | |
| 3975 | echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 3976 | echo "configure:3977: checking whether included gettext is requested" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3977 | # Check whether --with-included-gettext or --without-included-gettext was given. |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3978 | if test "${with_included_gettext+set}" = set; then |
| 3979 | withval="$with_included_gettext" |
| 3980 | nls_cv_force_use_gnu_gettext=$withval |
| 3981 | else |
| 3982 | nls_cv_force_use_gnu_gettext=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3983 | fi |
| 3984 | |
| 3985 | echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3986 | |
| 3987 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" |
| 3988 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3989 | |
| 3990 | |
| 3991 | |
| 3992 | |
| 3993 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3994 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3995 | echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 3996 | echo "configure:3997: checking for GNU gettext in libc" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3997 | if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then |
| 3998 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3999 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4000 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4001 | #line 4002 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4002 | #include "confdefs.h" |
| 4003 | #include <libintl.h> |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4004 | extern int _nl_msg_cat_cntr; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4005 | extern int *_nl_domain_bindings; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4006 | int main() { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4007 | bindtextdomain ("", ""); |
| 4008 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4009 | ; return 0; } |
| 4010 | EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4011 | if { (eval echo configure:4012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4012 | rm -rf conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4013 | gt_cv_func_gnugettext1_libc=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4014 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4015 | echo "configure: failed program was:" >&5 |
| 4016 | cat conftest.$ac_ext >&5 |
| 4017 | rm -rf conftest* |
| 4018 | gt_cv_func_gnugettext1_libc=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4019 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4020 | rm -f conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4021 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4022 | |
| 4023 | echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4024 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4025 | if test "$gt_cv_func_gnugettext1_libc" != "yes"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4026 | |
| 4027 | |
| 4028 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4029 | use_additional=yes |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4030 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4031 | acl_save_prefix="$prefix" |
| 4032 | prefix="$acl_final_prefix" |
| 4033 | acl_save_exec_prefix="$exec_prefix" |
| 4034 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4035 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4036 | eval additional_includedir=\"$includedir\" |
| 4037 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4038 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4039 | exec_prefix="$acl_save_exec_prefix" |
| 4040 | prefix="$acl_save_prefix" |
| 4041 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4042 | # Check whether --with-libintl-prefix or --without-libintl-prefix was given. |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4043 | if test "${with_libintl_prefix+set}" = set; then |
| 4044 | withval="$with_libintl_prefix" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4045 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4046 | if test "X$withval" = "Xno"; then |
| 4047 | use_additional=no |
| 4048 | else |
| 4049 | if test "X$withval" = "X"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4050 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4051 | acl_save_prefix="$prefix" |
| 4052 | prefix="$acl_final_prefix" |
| 4053 | acl_save_exec_prefix="$exec_prefix" |
| 4054 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4055 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4056 | eval additional_includedir=\"$includedir\" |
| 4057 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4058 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4059 | exec_prefix="$acl_save_exec_prefix" |
| 4060 | prefix="$acl_save_prefix" |
| 4061 | |
| 4062 | else |
| 4063 | additional_includedir="$withval/include" |
| 4064 | additional_libdir="$withval/lib" |
| 4065 | fi |
| 4066 | fi |
| 4067 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4068 | fi |
| 4069 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4070 | LIBINTL= |
| 4071 | LTLIBINTL= |
| 4072 | INCINTL= |
| 4073 | rpathdirs= |
| 4074 | ltrpathdirs= |
| 4075 | names_already_handled= |
| 4076 | names_next_round='intl ' |
| 4077 | while test -n "$names_next_round"; do |
| 4078 | names_this_round="$names_next_round" |
| 4079 | names_next_round= |
| 4080 | for name in $names_this_round; do |
| 4081 | already_handled= |
| 4082 | for n in $names_already_handled; do |
| 4083 | if test "$n" = "$name"; then |
| 4084 | already_handled=yes |
| 4085 | break |
| 4086 | fi |
| 4087 | done |
| 4088 | if test -z "$already_handled"; then |
| 4089 | names_already_handled="$names_already_handled $name" |
| 4090 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 4091 | eval value=\"\$HAVE_LIB$uppername\" |
| 4092 | if test -n "$value"; then |
| 4093 | if test "$value" = yes; then |
| 4094 | eval value=\"\$LIB$uppername\" |
| 4095 | test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" |
| 4096 | eval value=\"\$LTLIB$uppername\" |
| 4097 | test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" |
| 4098 | else |
| 4099 | : |
| 4100 | fi |
| 4101 | else |
| 4102 | found_dir= |
| 4103 | found_la= |
| 4104 | found_so= |
| 4105 | found_a= |
| 4106 | if test $use_additional = yes; then |
| 4107 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
| 4108 | found_dir="$additional_libdir" |
| 4109 | found_so="$additional_libdir/lib$name.$shlibext" |
| 4110 | if test -f "$additional_libdir/lib$name.la"; then |
| 4111 | found_la="$additional_libdir/lib$name.la" |
| 4112 | fi |
| 4113 | else |
| 4114 | if test -f "$additional_libdir/lib$name.$libext"; then |
| 4115 | found_dir="$additional_libdir" |
| 4116 | found_a="$additional_libdir/lib$name.$libext" |
| 4117 | if test -f "$additional_libdir/lib$name.la"; then |
| 4118 | found_la="$additional_libdir/lib$name.la" |
| 4119 | fi |
| 4120 | fi |
| 4121 | fi |
| 4122 | fi |
| 4123 | if test "X$found_dir" = "X"; then |
| 4124 | for x in $LDFLAGS $LTLIBINTL; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4125 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4126 | acl_save_prefix="$prefix" |
| 4127 | prefix="$acl_final_prefix" |
| 4128 | acl_save_exec_prefix="$exec_prefix" |
| 4129 | exec_prefix="$acl_final_exec_prefix" |
| 4130 | eval x=\"$x\" |
| 4131 | exec_prefix="$acl_save_exec_prefix" |
| 4132 | prefix="$acl_save_prefix" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4133 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4134 | case "$x" in |
| 4135 | -L*) |
| 4136 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 4137 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
| 4138 | found_dir="$dir" |
| 4139 | found_so="$dir/lib$name.$shlibext" |
| 4140 | if test -f "$dir/lib$name.la"; then |
| 4141 | found_la="$dir/lib$name.la" |
| 4142 | fi |
| 4143 | else |
| 4144 | if test -f "$dir/lib$name.$libext"; then |
| 4145 | found_dir="$dir" |
| 4146 | found_a="$dir/lib$name.$libext" |
| 4147 | if test -f "$dir/lib$name.la"; then |
| 4148 | found_la="$dir/lib$name.la" |
| 4149 | fi |
| 4150 | fi |
| 4151 | fi |
| 4152 | ;; |
| 4153 | esac |
| 4154 | if test "X$found_dir" != "X"; then |
| 4155 | break |
| 4156 | fi |
| 4157 | done |
| 4158 | fi |
| 4159 | if test "X$found_dir" != "X"; then |
| 4160 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" |
| 4161 | if test "X$found_so" != "X"; then |
| 4162 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
| 4163 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 4164 | else |
| 4165 | haveit= |
| 4166 | for x in $ltrpathdirs; do |
| 4167 | if test "X$x" = "X$found_dir"; then |
| 4168 | haveit=yes |
| 4169 | break |
| 4170 | fi |
| 4171 | done |
| 4172 | if test -z "$haveit"; then |
| 4173 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 4174 | fi |
| 4175 | if test "$hardcode_direct" = yes; then |
| 4176 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 4177 | else |
| 4178 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 4179 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 4180 | haveit= |
| 4181 | for x in $rpathdirs; do |
| 4182 | if test "X$x" = "X$found_dir"; then |
| 4183 | haveit=yes |
| 4184 | break |
| 4185 | fi |
| 4186 | done |
| 4187 | if test -z "$haveit"; then |
| 4188 | rpathdirs="$rpathdirs $found_dir" |
| 4189 | fi |
| 4190 | else |
| 4191 | haveit= |
| 4192 | for x in $LDFLAGS $LIBINTL; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4193 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4194 | acl_save_prefix="$prefix" |
| 4195 | prefix="$acl_final_prefix" |
| 4196 | acl_save_exec_prefix="$exec_prefix" |
| 4197 | exec_prefix="$acl_final_exec_prefix" |
| 4198 | eval x=\"$x\" |
| 4199 | exec_prefix="$acl_save_exec_prefix" |
| 4200 | prefix="$acl_save_prefix" |
| 4201 | |
| 4202 | if test "X$x" = "X-L$found_dir"; then |
| 4203 | haveit=yes |
| 4204 | break |
| 4205 | fi |
| 4206 | done |
| 4207 | if test -z "$haveit"; then |
| 4208 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" |
| 4209 | fi |
| 4210 | if test "$hardcode_minus_L" != no; then |
| 4211 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 4212 | else |
| 4213 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 4214 | fi |
| 4215 | fi |
| 4216 | fi |
| 4217 | fi |
| 4218 | else |
| 4219 | if test "X$found_a" != "X"; then |
| 4220 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" |
| 4221 | else |
| 4222 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" |
| 4223 | fi |
| 4224 | fi |
| 4225 | additional_includedir= |
| 4226 | case "$found_dir" in |
| 4227 | */lib | */lib/) |
| 4228 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
| 4229 | additional_includedir="$basedir/include" |
| 4230 | ;; |
| 4231 | esac |
| 4232 | if test "X$additional_includedir" != "X"; then |
| 4233 | if test "X$additional_includedir" != "X/usr/include"; then |
| 4234 | haveit= |
| 4235 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 4236 | if test -n "$GCC"; then |
| 4237 | case $host_os in |
| 4238 | linux*) haveit=yes;; |
| 4239 | esac |
| 4240 | fi |
| 4241 | fi |
| 4242 | if test -z "$haveit"; then |
| 4243 | for x in $CPPFLAGS $INCINTL; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4244 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4245 | acl_save_prefix="$prefix" |
| 4246 | prefix="$acl_final_prefix" |
| 4247 | acl_save_exec_prefix="$exec_prefix" |
| 4248 | exec_prefix="$acl_final_exec_prefix" |
| 4249 | eval x=\"$x\" |
| 4250 | exec_prefix="$acl_save_exec_prefix" |
| 4251 | prefix="$acl_save_prefix" |
| 4252 | |
| 4253 | if test "X$x" = "X-I$additional_includedir"; then |
| 4254 | haveit=yes |
| 4255 | break |
| 4256 | fi |
| 4257 | done |
| 4258 | if test -z "$haveit"; then |
| 4259 | if test -d "$additional_includedir"; then |
| 4260 | INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" |
| 4261 | fi |
| 4262 | fi |
| 4263 | fi |
| 4264 | fi |
| 4265 | fi |
| 4266 | if test -n "$found_la"; then |
| 4267 | save_libdir="$libdir" |
| 4268 | case "$found_la" in |
| 4269 | */* | *\\*) . "$found_la" ;; |
| 4270 | *) . "./$found_la" ;; |
| 4271 | esac |
| 4272 | libdir="$save_libdir" |
| 4273 | for dep in $dependency_libs; do |
| 4274 | case "$dep" in |
| 4275 | -L*) |
| 4276 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 4277 | if test "X$additional_libdir" != "X/usr/lib"; then |
| 4278 | haveit= |
| 4279 | if test "X$additional_libdir" = "X/usr/local/lib"; then |
| 4280 | if test -n "$GCC"; then |
| 4281 | case $host_os in |
| 4282 | linux*) haveit=yes;; |
| 4283 | esac |
| 4284 | fi |
| 4285 | fi |
| 4286 | if test -z "$haveit"; then |
| 4287 | haveit= |
| 4288 | for x in $LDFLAGS $LIBINTL; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4289 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4290 | acl_save_prefix="$prefix" |
| 4291 | prefix="$acl_final_prefix" |
| 4292 | acl_save_exec_prefix="$exec_prefix" |
| 4293 | exec_prefix="$acl_final_exec_prefix" |
| 4294 | eval x=\"$x\" |
| 4295 | exec_prefix="$acl_save_exec_prefix" |
| 4296 | prefix="$acl_save_prefix" |
| 4297 | |
| 4298 | if test "X$x" = "X-L$additional_libdir"; then |
| 4299 | haveit=yes |
| 4300 | break |
| 4301 | fi |
| 4302 | done |
| 4303 | if test -z "$haveit"; then |
| 4304 | if test -d "$additional_libdir"; then |
| 4305 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" |
| 4306 | fi |
| 4307 | fi |
| 4308 | haveit= |
| 4309 | for x in $LDFLAGS $LTLIBINTL; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4310 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4311 | acl_save_prefix="$prefix" |
| 4312 | prefix="$acl_final_prefix" |
| 4313 | acl_save_exec_prefix="$exec_prefix" |
| 4314 | exec_prefix="$acl_final_exec_prefix" |
| 4315 | eval x=\"$x\" |
| 4316 | exec_prefix="$acl_save_exec_prefix" |
| 4317 | prefix="$acl_save_prefix" |
| 4318 | |
| 4319 | if test "X$x" = "X-L$additional_libdir"; then |
| 4320 | haveit=yes |
| 4321 | break |
| 4322 | fi |
| 4323 | done |
| 4324 | if test -z "$haveit"; then |
| 4325 | if test -d "$additional_libdir"; then |
| 4326 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" |
| 4327 | fi |
| 4328 | fi |
| 4329 | fi |
| 4330 | fi |
| 4331 | ;; |
| 4332 | -R*) |
| 4333 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 4334 | if test "$enable_rpath" != no; then |
| 4335 | haveit= |
| 4336 | for x in $rpathdirs; do |
| 4337 | if test "X$x" = "X$dir"; then |
| 4338 | haveit=yes |
| 4339 | break |
| 4340 | fi |
| 4341 | done |
| 4342 | if test -z "$haveit"; then |
| 4343 | rpathdirs="$rpathdirs $dir" |
| 4344 | fi |
| 4345 | haveit= |
| 4346 | for x in $ltrpathdirs; do |
| 4347 | if test "X$x" = "X$dir"; then |
| 4348 | haveit=yes |
| 4349 | break |
| 4350 | fi |
| 4351 | done |
| 4352 | if test -z "$haveit"; then |
| 4353 | ltrpathdirs="$ltrpathdirs $dir" |
| 4354 | fi |
| 4355 | fi |
| 4356 | ;; |
| 4357 | -l*) |
| 4358 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 4359 | ;; |
| 4360 | *.la) |
| 4361 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 4362 | ;; |
| 4363 | *) |
| 4364 | LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" |
| 4365 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" |
| 4366 | ;; |
| 4367 | esac |
| 4368 | done |
| 4369 | fi |
| 4370 | else |
| 4371 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 4372 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" |
| 4373 | fi |
| 4374 | fi |
| 4375 | fi |
| 4376 | done |
| 4377 | done |
| 4378 | if test "X$rpathdirs" != "X"; then |
| 4379 | if test -n "$hardcode_libdir_separator"; then |
| 4380 | alldirs= |
| 4381 | for found_dir in $rpathdirs; do |
| 4382 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 4383 | done |
| 4384 | acl_save_libdir="$libdir" |
| 4385 | libdir="$alldirs" |
| 4386 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 4387 | libdir="$acl_save_libdir" |
| 4388 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 4389 | else |
| 4390 | for found_dir in $rpathdirs; do |
| 4391 | acl_save_libdir="$libdir" |
| 4392 | libdir="$found_dir" |
| 4393 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 4394 | libdir="$acl_save_libdir" |
| 4395 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 4396 | done |
| 4397 | fi |
| 4398 | fi |
| 4399 | if test "X$ltrpathdirs" != "X"; then |
| 4400 | for found_dir in $ltrpathdirs; do |
| 4401 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" |
| 4402 | done |
| 4403 | fi |
| 4404 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4405 | echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4406 | echo "configure:4407: checking for GNU gettext in libintl" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4407 | if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then |
| 4408 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4409 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4410 | gt_save_CPPFLAGS="$CPPFLAGS" |
| 4411 | CPPFLAGS="$CPPFLAGS $INCINTL" |
| 4412 | gt_save_LIBS="$LIBS" |
| 4413 | LIBS="$LIBS $LIBINTL" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4414 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4415 | #line 4416 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4416 | #include "confdefs.h" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4417 | #include <libintl.h> |
| 4418 | extern int _nl_msg_cat_cntr; |
| 4419 | extern |
| 4420 | #ifdef __cplusplus |
| 4421 | "C" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4422 | #endif |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4423 | const char *_nl_expand_alias (); |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4424 | int main() { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4425 | bindtextdomain ("", ""); |
| 4426 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4427 | ; return 0; } |
| 4428 | EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4429 | if { (eval echo configure:4430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4430 | rm -rf conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4431 | gt_cv_func_gnugettext1_libintl=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4432 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4433 | echo "configure: failed program was:" >&5 |
| 4434 | cat conftest.$ac_ext >&5 |
| 4435 | rm -rf conftest* |
| 4436 | gt_cv_func_gnugettext1_libintl=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4437 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4438 | rm -f conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4439 | if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then |
| 4440 | LIBS="$LIBS $LIBICONV" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4441 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4442 | #line 4443 "configure" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4443 | #include "confdefs.h" |
| 4444 | #include <libintl.h> |
| 4445 | extern int _nl_msg_cat_cntr; |
| 4446 | extern |
| 4447 | #ifdef __cplusplus |
| 4448 | "C" |
| 4449 | #endif |
| 4450 | const char *_nl_expand_alias (); |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4451 | int main() { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4452 | bindtextdomain ("", ""); |
| 4453 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4454 | ; return 0; } |
| 4455 | EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4456 | if { (eval echo configure:4457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4457 | rm -rf conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4458 | LIBINTL="$LIBINTL $LIBICONV" |
| 4459 | LTLIBINTL="$LTLIBINTL $LTLIBICONV" |
| 4460 | gt_cv_func_gnugettext1_libintl=yes |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4461 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4462 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4463 | echo "configure: failed program was:" >&5 |
| 4464 | cat conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4465 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4466 | rm -f conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4467 | fi |
| 4468 | CPPFLAGS="$gt_save_CPPFLAGS" |
| 4469 | LIBS="$gt_save_LIBS" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4470 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4471 | |
| 4472 | echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4473 | fi |
| 4474 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4475 | if test "$gt_cv_func_gnugettext1_libc" = "yes" \ |
| 4476 | || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ |
| 4477 | && test "$PACKAGE" != gettext; }; then |
| 4478 | gt_use_preinstalled_gnugettext=yes |
| 4479 | else |
| 4480 | LIBINTL= |
| 4481 | LTLIBINTL= |
| 4482 | INCINTL= |
| 4483 | fi |
| 4484 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4485 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4486 | if test "$gt_use_preinstalled_gnugettext" != "yes"; then |
| 4487 | nls_cv_use_gnu_gettext=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4488 | fi |
| 4489 | fi |
| 4490 | |
| 4491 | if test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 4492 | INTLOBJS="\$(GETTOBJS)" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4493 | BUILD_INCLUDED_LIBINTL=yes |
| 4494 | USE_INCLUDED_LIBINTL=yes |
| 4495 | LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV" |
| 4496 | LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV" |
| 4497 | LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4498 | fi |
| 4499 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4500 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 4501 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 4502 | CATOBJEXT=.gmo |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4503 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4504 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4505 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4506 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 4507 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4508 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4509 | #define ENABLE_NLS 1 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4510 | EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4511 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4512 | else |
| 4513 | USE_NLS=no |
| 4514 | fi |
| 4515 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4516 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4517 | if test "$USE_NLS" = "yes"; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4518 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4519 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
| 4520 | if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4521 | echo $ac_n "checking how to link with libintl""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4522 | echo "configure:4523: checking how to link with libintl" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4523 | echo "$ac_t""$LIBINTL" 1>&6 |
| 4524 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4525 | for element in $INCINTL; do |
| 4526 | haveit= |
| 4527 | for x in $CPPFLAGS; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4528 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4529 | acl_save_prefix="$prefix" |
| 4530 | prefix="$acl_final_prefix" |
| 4531 | acl_save_exec_prefix="$exec_prefix" |
| 4532 | exec_prefix="$acl_final_exec_prefix" |
| 4533 | eval x=\"$x\" |
| 4534 | exec_prefix="$acl_save_exec_prefix" |
| 4535 | prefix="$acl_save_prefix" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4536 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4537 | if test "X$x" = "X$element"; then |
| 4538 | haveit=yes |
| 4539 | break |
| 4540 | fi |
| 4541 | done |
| 4542 | if test -z "$haveit"; then |
| 4543 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 4544 | fi |
| 4545 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4546 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4547 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4548 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4549 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4550 | #define HAVE_GETTEXT 1 |
| 4551 | EOF |
| 4552 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4553 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4554 | #define HAVE_DCGETTEXT 1 |
| 4555 | EOF |
| 4556 | |
| 4557 | fi |
| 4558 | |
| 4559 | POSUB=po |
| 4560 | fi |
| 4561 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4562 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4563 | if test "$PACKAGE" = gettext; then |
| 4564 | BUILD_INCLUDED_LIBINTL=yes |
| 4565 | fi |
| 4566 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4567 | |
| 4568 | |
| 4569 | |
| 4570 | |
| 4571 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4572 | nls_cv_header_intl= |
| 4573 | nls_cv_header_libgt= |
| 4574 | |
| 4575 | DATADIRNAME=share |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4576 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4577 | |
| 4578 | INSTOBJEXT=.mo |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4579 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4580 | |
| 4581 | GENCAT=gencat |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4582 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4583 | |
| 4584 | INTL_LIBTOOL_SUFFIX_PREFIX= |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4585 | |
| 4586 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4587 | |
| 4588 | INTLLIBS="$LIBINTL" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4589 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4590 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4591 | |
| 4592 | |
| 4593 | |
| 4594 | |
| 4595 | |
| 4596 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4597 | echo "configure:4598: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4598 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
| 4599 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
| 4600 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4601 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4602 | cat > conftestmake <<\EOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4603 | all: |
| 4604 | @echo 'ac_maketemp="${MAKE}"' |
| 4605 | EOF |
| 4606 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4607 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4608 | if test -n "$ac_maketemp"; then |
| 4609 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 4610 | else |
| 4611 | eval ac_cv_prog_make_${ac_make}_set=no |
| 4612 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4613 | rm -f conftestmake |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4614 | fi |
| 4615 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4616 | echo "$ac_t""yes" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4617 | SET_MAKE= |
| 4618 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4619 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4620 | SET_MAKE="MAKE=${MAKE-make}" |
| 4621 | fi |
| 4622 | |
| 4623 | # Extract the first word of "ln", so it can be a program name with args. |
| 4624 | set dummy ln; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4625 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4626 | echo "configure:4627: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4627 | if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then |
| 4628 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4629 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4630 | case "$LN" in |
| 4631 | /*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4632 | ac_cv_path_LN="$LN" # Let the user override the test with a path. |
| 4633 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4634 | ?:/*) |
| 4635 | ac_cv_path_LN="$LN" # Let the user override the test with a dos path. |
| 4636 | ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4637 | *) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4638 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4639 | ac_dummy="$PATH" |
| 4640 | for ac_dir in $ac_dummy; do |
| 4641 | test -z "$ac_dir" && ac_dir=. |
| 4642 | if test -f $ac_dir/$ac_word; then |
| 4643 | ac_cv_path_LN="$ac_dir/$ac_word" |
| 4644 | break |
| 4645 | fi |
| 4646 | done |
| 4647 | IFS="$ac_save_ifs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4648 | test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" |
| 4649 | ;; |
| 4650 | esac |
| 4651 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4652 | LN="$ac_cv_path_LN" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4653 | if test -n "$LN"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4654 | echo "$ac_t""$LN" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4655 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4656 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4657 | fi |
| 4658 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4659 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4660 | echo "configure:4661: checking whether ln -s works" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4661 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
| 4662 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 4663 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4664 | rm -f conftestdata |
| 4665 | if ln -s X conftestdata 2>/dev/null |
| 4666 | then |
| 4667 | rm -f conftestdata |
| 4668 | ac_cv_prog_LN_S="ln -s" |
| 4669 | else |
| 4670 | ac_cv_prog_LN_S=ln |
| 4671 | fi |
| 4672 | fi |
| 4673 | LN_S="$ac_cv_prog_LN_S" |
| 4674 | if test "$ac_cv_prog_LN_S" = "ln -s"; then |
| 4675 | echo "$ac_t""yes" 1>&6 |
| 4676 | else |
| 4677 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 4678 | fi |
| 4679 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4680 | # Extract the first word of "mv", so it can be a program name with args. |
| 4681 | set dummy mv; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4682 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4683 | echo "configure:4684: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4684 | if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then |
| 4685 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4686 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4687 | case "$MV" in |
| 4688 | /*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4689 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 4690 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4691 | ?:/*) |
| 4692 | ac_cv_path_MV="$MV" # 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 | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4695 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4696 | ac_dummy="$PATH" |
| 4697 | for ac_dir in $ac_dummy; do |
| 4698 | test -z "$ac_dir" && ac_dir=. |
| 4699 | if test -f $ac_dir/$ac_word; then |
| 4700 | ac_cv_path_MV="$ac_dir/$ac_word" |
| 4701 | break |
| 4702 | fi |
| 4703 | done |
| 4704 | IFS="$ac_save_ifs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4705 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 4706 | ;; |
| 4707 | esac |
| 4708 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4709 | MV="$ac_cv_path_MV" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4710 | if test -n "$MV"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4711 | echo "$ac_t""$MV" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4712 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4713 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4714 | fi |
| 4715 | |
| 4716 | # Extract the first word of "cp", so it can be a program name with args. |
| 4717 | set dummy cp; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4718 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4719 | echo "configure:4720: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4720 | if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then |
| 4721 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4722 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4723 | case "$CP" in |
| 4724 | /*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4725 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 4726 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4727 | ?:/*) |
| 4728 | ac_cv_path_CP="$CP" # 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 | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4731 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4732 | ac_dummy="$PATH" |
| 4733 | for ac_dir in $ac_dummy; do |
| 4734 | test -z "$ac_dir" && ac_dir=. |
| 4735 | if test -f $ac_dir/$ac_word; then |
| 4736 | ac_cv_path_CP="$ac_dir/$ac_word" |
| 4737 | break |
| 4738 | fi |
| 4739 | done |
| 4740 | IFS="$ac_save_ifs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4741 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 4742 | ;; |
| 4743 | esac |
| 4744 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4745 | CP="$ac_cv_path_CP" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4746 | if test -n "$CP"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4747 | echo "$ac_t""$CP" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4748 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4749 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4750 | fi |
| 4751 | |
| 4752 | # Extract the first word of "rm", so it can be a program name with args. |
| 4753 | set dummy rm; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4754 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4755 | echo "configure:4756: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4756 | if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then |
| 4757 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4758 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4759 | case "$RM" in |
| 4760 | /*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4761 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 4762 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4763 | ?:/*) |
| 4764 | ac_cv_path_RM="$RM" # 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 | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4767 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4768 | ac_dummy="$PATH" |
| 4769 | for ac_dir in $ac_dummy; do |
| 4770 | test -z "$ac_dir" && ac_dir=. |
| 4771 | if test -f $ac_dir/$ac_word; then |
| 4772 | ac_cv_path_RM="$ac_dir/$ac_word" |
| 4773 | break |
| 4774 | fi |
| 4775 | done |
| 4776 | IFS="$ac_save_ifs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4777 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 4778 | ;; |
| 4779 | esac |
| 4780 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4781 | RM="$ac_cv_path_RM" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4782 | if test -n "$RM"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4783 | echo "$ac_t""$RM" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4784 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4785 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4786 | fi |
| 4787 | |
| 4788 | # Extract the first word of "chmod", so it can be a program name with args. |
| 4789 | set dummy chmod; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4790 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4791 | echo "configure:4792: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4792 | if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then |
| 4793 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4794 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4795 | case "$CHMOD" in |
| 4796 | /*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4797 | ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. |
| 4798 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4799 | ?:/*) |
| 4800 | ac_cv_path_CHMOD="$CHMOD" # 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 | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4803 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4804 | ac_dummy="$PATH" |
| 4805 | for ac_dir in $ac_dummy; do |
| 4806 | test -z "$ac_dir" && ac_dir=. |
| 4807 | if test -f $ac_dir/$ac_word; then |
| 4808 | ac_cv_path_CHMOD="$ac_dir/$ac_word" |
| 4809 | break |
| 4810 | fi |
| 4811 | done |
| 4812 | IFS="$ac_save_ifs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4813 | test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":" |
| 4814 | ;; |
| 4815 | esac |
| 4816 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4817 | CHMOD="$ac_cv_path_CHMOD" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4818 | if test -n "$CHMOD"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4819 | echo "$ac_t""$CHMOD" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4820 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4821 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4822 | fi |
| 4823 | |
| 4824 | # Extract the first word of "awk", so it can be a program name with args. |
| 4825 | set dummy awk; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4826 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4827 | echo "configure:4828: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4828 | if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then |
| 4829 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4830 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4831 | case "$AWK" in |
| 4832 | /*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4833 | ac_cv_path_AWK="$AWK" # Let the user override the test with a path. |
| 4834 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4835 | ?:/*) |
| 4836 | ac_cv_path_AWK="$AWK" # 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 | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4839 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4840 | ac_dummy="$PATH" |
| 4841 | for ac_dir in $ac_dummy; do |
| 4842 | test -z "$ac_dir" && ac_dir=. |
| 4843 | if test -f $ac_dir/$ac_word; then |
| 4844 | ac_cv_path_AWK="$ac_dir/$ac_word" |
| 4845 | break |
| 4846 | fi |
| 4847 | done |
| 4848 | IFS="$ac_save_ifs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4849 | test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk" |
| 4850 | ;; |
| 4851 | esac |
| 4852 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4853 | AWK="$ac_cv_path_AWK" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4854 | if test -n "$AWK"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4855 | echo "$ac_t""$AWK" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4856 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4857 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4858 | fi |
| 4859 | |
| 4860 | # Extract the first word of "sed", so it can be a program name with args. |
| 4861 | set dummy sed; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4862 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4863 | echo "configure:4864: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4864 | if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then |
| 4865 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4866 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4867 | case "$SED" in |
| 4868 | /*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4869 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 4870 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4871 | ?:/*) |
| 4872 | ac_cv_path_SED="$SED" # Let the user override the test with a dos path. |
| 4873 | ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4874 | *) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 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_SED="$ac_dir/$ac_word" |
| 4881 | break |
| 4882 | fi |
| 4883 | done |
| 4884 | IFS="$ac_save_ifs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4885 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 4886 | ;; |
| 4887 | esac |
| 4888 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4889 | SED="$ac_cv_path_SED" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4890 | if test -n "$SED"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4891 | echo "$ac_t""$SED" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4892 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4893 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4894 | fi |
| 4895 | |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 4896 | # Extract the first word of "perl", so it can be a program name with args. |
| 4897 | set dummy perl; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4898 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4899 | echo "configure:4900: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4900 | if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then |
| 4901 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 4902 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4903 | case "$PERL" in |
| 4904 | /*) |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 4905 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 4906 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4907 | ?:/*) |
| 4908 | ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path. |
| 4909 | ;; |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 4910 | *) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 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_PERL="$ac_dir/$ac_word" |
| 4917 | break |
| 4918 | fi |
| 4919 | done |
| 4920 | IFS="$ac_save_ifs" |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 4921 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl" |
| 4922 | ;; |
| 4923 | esac |
| 4924 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4925 | PERL="$ac_cv_path_PERL" |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 4926 | if test -n "$PERL"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4927 | echo "$ac_t""$PERL" 1>&6 |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 4928 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4929 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 4930 | fi |
| 4931 | |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 4932 | # Extract the first word of "ldconfig", so it can be a program name with args. |
| 4933 | set dummy ldconfig; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4934 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4935 | echo "configure:4936: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4936 | if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then |
| 4937 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 4938 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4939 | case "$LDCONFIG" in |
| 4940 | /*) |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 4941 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. |
| 4942 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4943 | ?:/*) |
| 4944 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a dos path. |
| 4945 | ;; |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 4946 | *) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4947 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4948 | ac_dummy="$PATH" |
| 4949 | for ac_dir in $ac_dummy; do |
| 4950 | test -z "$ac_dir" && ac_dir=. |
| 4951 | if test -f $ac_dir/$ac_word; then |
| 4952 | ac_cv_path_LDCONFIG="$ac_dir/$ac_word" |
| 4953 | break |
| 4954 | fi |
| 4955 | done |
| 4956 | IFS="$ac_save_ifs" |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 4957 | test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":" |
| 4958 | ;; |
| 4959 | esac |
| 4960 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4961 | LDCONFIG="$ac_cv_path_LDCONFIG" |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 4962 | if test -n "$LDCONFIG"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4963 | echo "$ac_t""$LDCONFIG" 1>&6 |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 4964 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4965 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 4966 | fi |
| 4967 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4968 | echo $ac_n "checking build system type""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4969 | echo "configure:4970: checking build system type" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4970 | |
| 4971 | build_alias=$build |
| 4972 | case "$build_alias" in |
| 4973 | NONE) |
| 4974 | case $nonopt in |
| 4975 | NONE) build_alias=$host_alias ;; |
| 4976 | *) build_alias=$nonopt ;; |
| 4977 | esac ;; |
| 4978 | esac |
| 4979 | |
| 4980 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` |
| 4981 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 4982 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 4983 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 4984 | echo "$ac_t""$build" 1>&6 |
| 4985 | |
| 4986 | if test $host != $build; then |
| 4987 | ac_tool_prefix=${host_alias}- |
| 4988 | else |
| 4989 | ac_tool_prefix= |
| 4990 | fi |
| 4991 | |
| 4992 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4993 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4994 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4995 | echo "configure:4996: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4996 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
| 4997 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4998 | else |
| 4999 | if test -n "$AR"; then |
| 5000 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 5001 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5002 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 5003 | ac_dummy="$PATH" |
| 5004 | for ac_dir in $ac_dummy; do |
| 5005 | test -z "$ac_dir" && ac_dir=. |
| 5006 | if test -f $ac_dir/$ac_word; then |
| 5007 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 5008 | break |
| 5009 | fi |
| 5010 | done |
| 5011 | IFS="$ac_save_ifs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5012 | fi |
| 5013 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5014 | AR="$ac_cv_prog_AR" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5015 | if test -n "$AR"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5016 | echo "$ac_t""$AR" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5017 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5018 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5019 | fi |
| 5020 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5021 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5022 | if test -z "$ac_cv_prog_AR"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5023 | if test -n "$ac_tool_prefix"; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5024 | # Extract the first word of "ar", so it can be a program name with args. |
| 5025 | set dummy ar; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5026 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5027 | echo "configure:5028: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5028 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
| 5029 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5030 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5031 | if test -n "$AR"; then |
| 5032 | ac_cv_prog_AR="$AR" # Let the user override the test. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5033 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5034 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 5035 | ac_dummy="$PATH" |
| 5036 | for ac_dir in $ac_dummy; do |
| 5037 | test -z "$ac_dir" && ac_dir=. |
| 5038 | if test -f $ac_dir/$ac_word; then |
| 5039 | ac_cv_prog_AR="ar" |
| 5040 | break |
| 5041 | fi |
| 5042 | done |
| 5043 | IFS="$ac_save_ifs" |
| 5044 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5045 | fi |
| 5046 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5047 | AR="$ac_cv_prog_AR" |
| 5048 | if test -n "$AR"; then |
| 5049 | echo "$ac_t""$AR" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5050 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5051 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5052 | fi |
| 5053 | |
| 5054 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5055 | AR="ar" |
| 5056 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5057 | fi |
| 5058 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5059 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5060 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5061 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5062 | echo "configure:5063: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5063 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
| 5064 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5065 | else |
| 5066 | if test -n "$RANLIB"; then |
| 5067 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 5068 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5069 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 5070 | ac_dummy="$PATH" |
| 5071 | for ac_dir in $ac_dummy; do |
| 5072 | test -z "$ac_dir" && ac_dir=. |
| 5073 | if test -f $ac_dir/$ac_word; then |
| 5074 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 5075 | break |
| 5076 | fi |
| 5077 | done |
| 5078 | IFS="$ac_save_ifs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5079 | fi |
| 5080 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5081 | RANLIB="$ac_cv_prog_RANLIB" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5082 | if test -n "$RANLIB"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5083 | echo "$ac_t""$RANLIB" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5084 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5085 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5086 | fi |
| 5087 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5088 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5089 | if test -z "$ac_cv_prog_RANLIB"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5090 | if test -n "$ac_tool_prefix"; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5091 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 5092 | set dummy ranlib; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5093 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5094 | echo "configure:5095: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5095 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
| 5096 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5097 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5098 | if test -n "$RANLIB"; then |
| 5099 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5100 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5101 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 5102 | ac_dummy="$PATH" |
| 5103 | for ac_dir in $ac_dummy; do |
| 5104 | test -z "$ac_dir" && ac_dir=. |
| 5105 | if test -f $ac_dir/$ac_word; then |
| 5106 | ac_cv_prog_RANLIB="ranlib" |
| 5107 | break |
| 5108 | fi |
| 5109 | done |
| 5110 | IFS="$ac_save_ifs" |
| 5111 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5112 | fi |
| 5113 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5114 | RANLIB="$ac_cv_prog_RANLIB" |
| 5115 | if test -n "$RANLIB"; then |
| 5116 | echo "$ac_t""$RANLIB" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5117 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5118 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5119 | fi |
| 5120 | |
| 5121 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5122 | RANLIB=":" |
| 5123 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5124 | fi |
| 5125 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5126 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5127 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5128 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5129 | echo "configure:5130: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5130 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
| 5131 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5132 | else |
| 5133 | if test -n "$STRIP"; then |
| 5134 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 5135 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5136 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 5137 | ac_dummy="$PATH" |
| 5138 | for ac_dir in $ac_dummy; do |
| 5139 | test -z "$ac_dir" && ac_dir=. |
| 5140 | if test -f $ac_dir/$ac_word; then |
| 5141 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 5142 | break |
| 5143 | fi |
| 5144 | done |
| 5145 | IFS="$ac_save_ifs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5146 | fi |
| 5147 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5148 | STRIP="$ac_cv_prog_STRIP" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5149 | if test -n "$STRIP"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5150 | echo "$ac_t""$STRIP" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5151 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5152 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5153 | fi |
| 5154 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5155 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5156 | if test -z "$ac_cv_prog_STRIP"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5157 | if test -n "$ac_tool_prefix"; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5158 | # Extract the first word of "strip", so it can be a program name with args. |
| 5159 | set dummy strip; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5160 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5161 | echo "configure:5162: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5162 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
| 5163 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5164 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5165 | if test -n "$STRIP"; then |
| 5166 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5167 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5168 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 5169 | ac_dummy="$PATH" |
| 5170 | for ac_dir in $ac_dummy; do |
| 5171 | test -z "$ac_dir" && ac_dir=. |
| 5172 | if test -f $ac_dir/$ac_word; then |
| 5173 | ac_cv_prog_STRIP="strip" |
| 5174 | break |
| 5175 | fi |
| 5176 | done |
| 5177 | IFS="$ac_save_ifs" |
| 5178 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5179 | fi |
| 5180 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5181 | STRIP="$ac_cv_prog_STRIP" |
| 5182 | if test -n "$STRIP"; then |
| 5183 | echo "$ac_t""$STRIP" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5184 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5185 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5186 | fi |
| 5187 | |
| 5188 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5189 | STRIP=":" |
| 5190 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5191 | fi |
| 5192 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5193 | # Find a good install program. We prefer a C program (faster), |
| 5194 | # so one script is as good as another. But avoid the broken or |
| 5195 | # incompatible versions: |
| 5196 | # SysV /etc/install, /usr/sbin/install |
| 5197 | # SunOS /usr/etc/install |
| 5198 | # IRIX /sbin/install |
| 5199 | # AIX /bin/install |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 5200 | # 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] | 5201 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 5202 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 5203 | # ./install, which can be erroneously created by make from ./install.sh. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5204 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5205 | echo "configure:5206: checking for a BSD compatible install" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5206 | if test -z "$INSTALL"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5207 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
| 5208 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5209 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5210 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5211 | for ac_dir in $PATH; do |
| 5212 | # Account for people who put trailing slashes in PATH elements. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5213 | case "$ac_dir/" in |
| 5214 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5215 | *) |
| 5216 | # 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] | 5217 | # Don't use installbsd from OSF since it installs stuff as root |
| 5218 | # by default. |
| 5219 | for ac_prog in ginstall scoinst install; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5220 | if test -f $ac_dir/$ac_prog; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5221 | if test $ac_prog = install && |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5222 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5223 | # AIX install. It has an incompatible calling convention. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5224 | : |
| 5225 | else |
| 5226 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
| 5227 | break 2 |
| 5228 | fi |
| 5229 | fi |
| 5230 | done |
| 5231 | ;; |
| 5232 | esac |
| 5233 | done |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5234 | IFS="$ac_save_IFS" |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5235 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5236 | fi |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5237 | if test "${ac_cv_path_install+set}" = set; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5238 | INSTALL="$ac_cv_path_install" |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5239 | else |
| 5240 | # As a last resort, use the slow shell script. We don't cache a |
| 5241 | # path for INSTALL within a source directory, because that will |
| 5242 | # break other packages using the cache if that directory is |
| 5243 | # removed, or if the path is relative. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5244 | INSTALL="$ac_install_sh" |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5245 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5246 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5247 | echo "$ac_t""$INSTALL" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5248 | |
| 5249 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 5250 | # It thinks the first close brace ends the variable substitution. |
| 5251 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 5252 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5253 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 5254 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5255 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 5256 | |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 5257 | # See if we need a separate native compiler. |
| 5258 | if test $cross_compiling = no; then |
| 5259 | BUILD_CC="$CC" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5260 | |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 5261 | else |
| 5262 | for ac_prog in gcc cc |
| 5263 | do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5264 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 5265 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5266 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5267 | echo "configure:5268: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5268 | if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then |
| 5269 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 5270 | else |
| 5271 | if test -n "$BUILD_CC"; then |
| 5272 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 5273 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5274 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 5275 | ac_dummy="$PATH" |
| 5276 | for ac_dir in $ac_dummy; do |
| 5277 | test -z "$ac_dir" && ac_dir=. |
| 5278 | if test -f $ac_dir/$ac_word; then |
| 5279 | ac_cv_prog_BUILD_CC="$ac_prog" |
| 5280 | break |
| 5281 | fi |
| 5282 | done |
| 5283 | IFS="$ac_save_ifs" |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 5284 | fi |
| 5285 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5286 | BUILD_CC="$ac_cv_prog_BUILD_CC" |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 5287 | if test -n "$BUILD_CC"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5288 | echo "$ac_t""$BUILD_CC" 1>&6 |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 5289 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5290 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 5291 | fi |
| 5292 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5293 | test -n "$BUILD_CC" && break |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 5294 | done |
| 5295 | |
| 5296 | fi |
Theodore Ts'o | 9845cf5 | 2004-09-17 19:07:03 -0400 | [diff] [blame] | 5297 | for ac_hdr in stdlib.h unistd.h stdarg.h stdint.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/disk.h sys/disklabel.h sys/ioctl.h sys/mkdev.h sys/mount.h sys/queue.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 net/if_dl.h netinet/in.h |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5298 | do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5299 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 5300 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5301 | echo "configure:5302: checking for $ac_hdr" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5302 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 5303 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5304 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5305 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5306 | #line 5307 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5307 | #include "confdefs.h" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5308 | #include <$ac_hdr> |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5309 | EOF |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5310 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5311 | { (eval echo configure:5312: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5312 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 5313 | if test -z "$ac_err"; then |
| 5314 | rm -rf conftest* |
| 5315 | eval "ac_cv_header_$ac_safe=yes" |
| 5316 | else |
| 5317 | echo "$ac_err" >&5 |
| 5318 | echo "configure: failed program was:" >&5 |
| 5319 | cat conftest.$ac_ext >&5 |
| 5320 | rm -rf conftest* |
| 5321 | eval "ac_cv_header_$ac_safe=no" |
| 5322 | fi |
| 5323 | rm -f conftest* |
| 5324 | fi |
| 5325 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 5326 | echo "$ac_t""yes" 1>&6 |
| 5327 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 5328 | cat >> confdefs.h <<EOF |
| 5329 | #define $ac_tr_hdr 1 |
| 5330 | EOF |
| 5331 | |
| 5332 | else |
| 5333 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5334 | fi |
| 5335 | done |
| 5336 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5337 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5338 | echo "configure:5339: checking for vprintf" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5339 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
| 5340 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5341 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5342 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5343 | #line 5344 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5344 | #include "confdefs.h" |
| 5345 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5346 | which can conflict with char vprintf(); below. */ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5347 | #include <assert.h> |
| 5348 | /* Override any gcc2 internal prototype to avoid an error. */ |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5349 | /* We use char because int might match the return type of a gcc2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5350 | builtin and then its argument prototype would still apply. */ |
| 5351 | char vprintf(); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5352 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5353 | int main() { |
| 5354 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5355 | /* The GNU C library defines this for functions which it implements |
| 5356 | to always fail with ENOSYS. Some functions are actually named |
| 5357 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5358 | #if defined (__stub_vprintf) || defined (__stub___vprintf) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5359 | choke me |
| 5360 | #else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5361 | vprintf(); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5362 | #endif |
| 5363 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5364 | ; return 0; } |
| 5365 | EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5366 | if { (eval echo configure:5367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5367 | rm -rf conftest* |
| 5368 | eval "ac_cv_func_vprintf=yes" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5369 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5370 | echo "configure: failed program was:" >&5 |
| 5371 | cat conftest.$ac_ext >&5 |
| 5372 | rm -rf conftest* |
| 5373 | eval "ac_cv_func_vprintf=no" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5374 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5375 | rm -f conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5376 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5377 | |
| 5378 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then |
| 5379 | echo "$ac_t""yes" 1>&6 |
| 5380 | cat >> confdefs.h <<\EOF |
| 5381 | #define HAVE_VPRINTF 1 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5382 | EOF |
| 5383 | |
| 5384 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5385 | echo "$ac_t""no" 1>&6 |
| 5386 | fi |
| 5387 | |
| 5388 | if test "$ac_cv_func_vprintf" != yes; then |
| 5389 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5390 | echo "configure:5391: checking for _doprnt" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5391 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
| 5392 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5393 | else |
| 5394 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5395 | #line 5396 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5396 | #include "confdefs.h" |
| 5397 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5398 | which can conflict with char _doprnt(); below. */ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5399 | #include <assert.h> |
| 5400 | /* Override any gcc2 internal prototype to avoid an error. */ |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5401 | /* We use char because int might match the return type of a gcc2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5402 | builtin and then its argument prototype would still apply. */ |
| 5403 | char _doprnt(); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5404 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5405 | int main() { |
| 5406 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5407 | /* The GNU C library defines this for functions which it implements |
| 5408 | to always fail with ENOSYS. Some functions are actually named |
| 5409 | something starting with __ and the normal name is an alias. */ |
| 5410 | #if defined (__stub__doprnt) || defined (__stub____doprnt) |
| 5411 | choke me |
| 5412 | #else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5413 | _doprnt(); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5414 | #endif |
| 5415 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5416 | ; return 0; } |
| 5417 | EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5418 | if { (eval echo configure:5419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5419 | rm -rf conftest* |
| 5420 | eval "ac_cv_func__doprnt=yes" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5421 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5422 | echo "configure: failed program was:" >&5 |
| 5423 | cat conftest.$ac_ext >&5 |
| 5424 | rm -rf conftest* |
| 5425 | eval "ac_cv_func__doprnt=no" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5426 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5427 | rm -f conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5428 | fi |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5429 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5430 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then |
| 5431 | echo "$ac_t""yes" 1>&6 |
| 5432 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5433 | #define HAVE_DOPRNT 1 |
| 5434 | EOF |
| 5435 | |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 5436 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5437 | echo "$ac_t""no" 1>&6 |
| 5438 | fi |
| 5439 | |
| 5440 | fi |
| 5441 | |
| 5442 | echo $ac_n "checking whether d_reclen declared in dirent""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5443 | echo "configure:5444: checking whether d_reclen declared in dirent" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5444 | if eval "test \"`echo '$''{'e2fsprogs_cv_have_d_reclen_dirent'+set}'`\" = set"; then |
| 5445 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5446 | else |
| 5447 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5448 | #line 5449 "configure" |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 5449 | #include "confdefs.h" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5450 | #include <dirent.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5451 | int main() { |
| 5452 | struct dirent de; de.d_reclen = 0; |
| 5453 | ; return 0; } |
| 5454 | EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5455 | if { (eval echo configure:5456: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5456 | rm -rf conftest* |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5457 | e2fsprogs_cv_have_d_reclen_dirent=yes |
| 5458 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5459 | echo "configure: failed program was:" >&5 |
| 5460 | cat conftest.$ac_ext >&5 |
| 5461 | rm -rf conftest* |
| 5462 | e2fsprogs_cv_have_d_reclen_dirent=no |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5463 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5464 | rm -f conftest* |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5465 | fi |
| 5466 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5467 | echo "$ac_t""$e2fsprogs_cv_have_d_reclen_dirent" 1>&6 |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5468 | if test "$e2fsprogs_cv_have_d_reclen_dirent" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5469 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5470 | #define HAVE_RECLEN_DIRENT 1 |
| 5471 | EOF |
| 5472 | |
| 5473 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5474 | echo $ac_n "checking whether ssize_t declared""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5475 | echo "configure:5476: checking whether ssize_t declared" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5476 | if eval "test \"`echo '$''{'e2fsprogs_cv_have_ssize_t'+set}'`\" = set"; then |
| 5477 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5478 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5479 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5480 | #line 5481 "configure" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5481 | #include "confdefs.h" |
| 5482 | #include <sys/types.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5483 | int main() { |
| 5484 | ssize_t a = 0; |
| 5485 | ; return 0; } |
| 5486 | EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5487 | if { (eval echo configure:5488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5488 | rm -rf conftest* |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5489 | e2fsprogs_cv_have_ssize_t=yes |
| 5490 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5491 | echo "configure: failed program was:" >&5 |
| 5492 | cat conftest.$ac_ext >&5 |
| 5493 | rm -rf conftest* |
| 5494 | e2fsprogs_cv_have_ssize_t=no |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5495 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5496 | rm -f conftest* |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5497 | fi |
| 5498 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5499 | echo "$ac_t""$e2fsprogs_cv_have_ssize_t" 1>&6 |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5500 | if test "$e2fsprogs_cv_have_ssize_t" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5501 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5502 | #define HAVE_TYPE_SSIZE_T 1 |
| 5503 | EOF |
| 5504 | |
| 5505 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5506 | echo $ac_n "checking whether llseek declared in unistd.h""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5507 | echo "configure:5508: checking whether llseek declared in unistd.h" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5508 | if eval "test \"`echo '$''{'e2fsprogs_cv_have_llseek_prototype'+set}'`\" = set"; then |
| 5509 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5510 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5511 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5512 | #line 5513 "configure" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5513 | #include "confdefs.h" |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 5514 | #include <unistd.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5515 | int main() { |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 5516 | extern int llseek(int); |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5517 | ; return 0; } |
| 5518 | EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5519 | if { (eval echo configure:5520: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5520 | rm -rf conftest* |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 5521 | e2fsprogs_cv_have_llseek_prototype=no |
| 5522 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5523 | echo "configure: failed program was:" >&5 |
| 5524 | cat conftest.$ac_ext >&5 |
| 5525 | rm -rf conftest* |
| 5526 | e2fsprogs_cv_have_llseek_prototype=yes |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 5527 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5528 | rm -f conftest* |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 5529 | fi |
| 5530 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5531 | echo "$ac_t""$e2fsprogs_cv_have_llseek_prototype" 1>&6 |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 5532 | if test "$e2fsprogs_cv_have_llseek_prototype" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5533 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 5534 | #define HAVE_LLSEEK_PROTOTYPE 1 |
| 5535 | EOF |
| 5536 | |
| 5537 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5538 | echo $ac_n "checking whether lseek64 declared in unistd.h""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5539 | echo "configure:5540: checking whether lseek64 declared in unistd.h" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5540 | if eval "test \"`echo '$''{'e2fsprogs_cv_have_lseek64_prototype'+set}'`\" = set"; then |
| 5541 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 5542 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5543 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5544 | #line 5545 "configure" |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 5545 | #include "confdefs.h" |
| 5546 | #define _LARGEFILE_SOURCE |
| 5547 | #define _LARGEFILE64_SOURCE |
| 5548 | #include <unistd.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5549 | int main() { |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 5550 | extern int lseek64(int); |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5551 | ; return 0; } |
| 5552 | EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5553 | if { (eval echo configure:5554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5554 | rm -rf conftest* |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 5555 | e2fsprogs_cv_have_lseek64_prototype=no |
| 5556 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5557 | echo "configure: failed program was:" >&5 |
| 5558 | cat conftest.$ac_ext >&5 |
| 5559 | rm -rf conftest* |
| 5560 | e2fsprogs_cv_have_lseek64_prototype=yes |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 5561 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5562 | rm -f conftest* |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 5563 | fi |
| 5564 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5565 | echo "$ac_t""$e2fsprogs_cv_have_lseek64_prototype" 1>&6 |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 5566 | if test "$e2fsprogs_cv_have_lseek64_prototype" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5567 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 5568 | #define HAVE_LSEEK64_PROTOTYPE 1 |
| 5569 | EOF |
| 5570 | |
| 5571 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5572 | if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5573 | # if cross-compiling, with no cached values, just assume something common. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5574 | ac_cv_sizeof_short=2 |
| 5575 | ac_cv_sizeof_int=4 |
| 5576 | ac_cv_sizeof_long=4 |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 5577 | ac_cv_sizeof_long_long=8 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5578 | 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] | 5579 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5580 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5581 | echo "configure:5582: checking size of short" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5582 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
| 5583 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5584 | else |
| 5585 | if test "$cross_compiling" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5586 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5587 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5588 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5589 | #line 5590 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5590 | #include "confdefs.h" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5591 | #include <stdio.h> |
Theodore Ts'o | fde3e1b | 2004-02-23 23:10:41 -0500 | [diff] [blame] | 5592 | #include <sys/types.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5593 | main() |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5594 | { |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5595 | FILE *f=fopen("conftestval", "w"); |
| 5596 | if (!f) exit(1); |
| 5597 | fprintf(f, "%d\n", sizeof(short)); |
| 5598 | exit(0); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5599 | } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5600 | EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5601 | if { (eval echo configure:5602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5602 | then |
| 5603 | ac_cv_sizeof_short=`cat conftestval` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5604 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5605 | echo "configure: failed program was:" >&5 |
| 5606 | cat conftest.$ac_ext >&5 |
| 5607 | rm -fr conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5608 | ac_cv_sizeof_short=0 |
| 5609 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5610 | rm -fr conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5611 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5612 | |
| 5613 | fi |
| 5614 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
| 5615 | cat >> confdefs.h <<EOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5616 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
| 5617 | EOF |
| 5618 | |
| 5619 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5620 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5621 | echo "configure:5622: checking size of int" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5622 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
| 5623 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5624 | else |
| 5625 | if test "$cross_compiling" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5626 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5627 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5628 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5629 | #line 5630 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5630 | #include "confdefs.h" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5631 | #include <stdio.h> |
Theodore Ts'o | fde3e1b | 2004-02-23 23:10:41 -0500 | [diff] [blame] | 5632 | #include <sys/types.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5633 | main() |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5634 | { |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5635 | FILE *f=fopen("conftestval", "w"); |
| 5636 | if (!f) exit(1); |
| 5637 | fprintf(f, "%d\n", sizeof(int)); |
| 5638 | exit(0); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5639 | } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5640 | EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5641 | if { (eval echo configure:5642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5642 | then |
| 5643 | ac_cv_sizeof_int=`cat conftestval` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5644 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5645 | echo "configure: failed program was:" >&5 |
| 5646 | cat conftest.$ac_ext >&5 |
| 5647 | rm -fr conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5648 | ac_cv_sizeof_int=0 |
| 5649 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5650 | rm -fr conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5651 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5652 | |
| 5653 | fi |
| 5654 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 |
| 5655 | cat >> confdefs.h <<EOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5656 | #define SIZEOF_INT $ac_cv_sizeof_int |
| 5657 | EOF |
| 5658 | |
| 5659 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5660 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5661 | echo "configure:5662: checking size of long" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5662 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
| 5663 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5664 | else |
| 5665 | if test "$cross_compiling" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5666 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5667 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5668 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5669 | #line 5670 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5670 | #include "confdefs.h" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5671 | #include <stdio.h> |
Theodore Ts'o | fde3e1b | 2004-02-23 23:10:41 -0500 | [diff] [blame] | 5672 | #include <sys/types.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5673 | main() |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5674 | { |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5675 | FILE *f=fopen("conftestval", "w"); |
| 5676 | if (!f) exit(1); |
| 5677 | fprintf(f, "%d\n", sizeof(long)); |
| 5678 | exit(0); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5679 | } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5680 | EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5681 | if { (eval echo configure:5682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5682 | then |
| 5683 | ac_cv_sizeof_long=`cat conftestval` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5684 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5685 | echo "configure: failed program was:" >&5 |
| 5686 | cat conftest.$ac_ext >&5 |
| 5687 | rm -fr conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5688 | ac_cv_sizeof_long=0 |
| 5689 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5690 | rm -fr conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5691 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5692 | |
| 5693 | fi |
| 5694 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 |
| 5695 | cat >> confdefs.h <<EOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5696 | #define SIZEOF_LONG $ac_cv_sizeof_long |
| 5697 | EOF |
| 5698 | |
| 5699 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5700 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5701 | echo "configure:5702: checking size of long long" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5702 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
| 5703 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5704 | else |
| 5705 | if test "$cross_compiling" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5706 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5707 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5708 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5709 | #line 5710 "configure" |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5710 | #include "confdefs.h" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5711 | #include <stdio.h> |
Theodore Ts'o | fde3e1b | 2004-02-23 23:10:41 -0500 | [diff] [blame] | 5712 | #include <sys/types.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5713 | main() |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5714 | { |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5715 | FILE *f=fopen("conftestval", "w"); |
| 5716 | if (!f) exit(1); |
| 5717 | fprintf(f, "%d\n", sizeof(long long)); |
| 5718 | exit(0); |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5719 | } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5720 | EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5721 | if { (eval echo configure:5722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5722 | then |
| 5723 | ac_cv_sizeof_long_long=`cat conftestval` |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5724 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5725 | echo "configure: failed program was:" >&5 |
| 5726 | cat conftest.$ac_ext >&5 |
| 5727 | rm -fr conftest* |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5728 | ac_cv_sizeof_long_long=0 |
| 5729 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5730 | rm -fr conftest* |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5731 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5732 | |
| 5733 | fi |
| 5734 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
| 5735 | cat >> confdefs.h <<EOF |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5736 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
| 5737 | EOF |
| 5738 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5739 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5740 | SIZEOF_SHORT=$ac_cv_sizeof_short |
| 5741 | SIZEOF_INT=$ac_cv_sizeof_int |
| 5742 | SIZEOF_LONG=$ac_cv_sizeof_long |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5743 | SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long |
| 5744 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5745 | |
| 5746 | |
| 5747 | |
| 5748 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5749 | echo "configure:5750: checking whether byte ordering is bigendian" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5750 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
| 5751 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5752 | else |
| 5753 | ac_cv_c_bigendian=unknown |
| 5754 | # See if sys/param.h defines the BYTE_ORDER macro. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5755 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5756 | #line 5757 "configure" |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5757 | #include "confdefs.h" |
| 5758 | #include <sys/types.h> |
| 5759 | #include <sys/param.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5760 | int main() { |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5761 | |
| 5762 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 5763 | bogus endian macros |
| 5764 | #endif |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5765 | ; return 0; } |
| 5766 | EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5767 | if { (eval echo configure:5768: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5768 | rm -rf conftest* |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5769 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5770 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5771 | #line 5772 "configure" |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5772 | #include "confdefs.h" |
| 5773 | #include <sys/types.h> |
| 5774 | #include <sys/param.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5775 | int main() { |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5776 | |
| 5777 | #if BYTE_ORDER != BIG_ENDIAN |
| 5778 | not big endian |
| 5779 | #endif |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5780 | ; return 0; } |
| 5781 | EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5782 | if { (eval echo configure:5783: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5783 | rm -rf conftest* |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5784 | ac_cv_c_bigendian=yes |
| 5785 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5786 | echo "configure: failed program was:" >&5 |
| 5787 | cat conftest.$ac_ext >&5 |
| 5788 | rm -rf conftest* |
| 5789 | ac_cv_c_bigendian=no |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5790 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5791 | rm -f conftest* |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5792 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5793 | echo "configure: failed program was:" >&5 |
| 5794 | cat conftest.$ac_ext >&5 |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5795 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5796 | rm -f conftest* |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5797 | if test $ac_cv_c_bigendian = unknown; then |
| 5798 | if test "$cross_compiling" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5799 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5800 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5801 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5802 | #line 5803 "configure" |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5803 | #include "confdefs.h" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5804 | main () { |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5805 | /* Are we little or big endian? From Harbison&Steele. */ |
| 5806 | union |
| 5807 | { |
| 5808 | long l; |
| 5809 | char c[sizeof (long)]; |
| 5810 | } u; |
| 5811 | u.l = 1; |
| 5812 | exit (u.c[sizeof (long) - 1] == 1); |
| 5813 | } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5814 | EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5815 | if { (eval echo configure:5816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5816 | then |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5817 | ac_cv_c_bigendian=no |
| 5818 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5819 | echo "configure: failed program was:" >&5 |
| 5820 | cat conftest.$ac_ext >&5 |
| 5821 | rm -fr conftest* |
| 5822 | ac_cv_c_bigendian=yes |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5823 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5824 | rm -fr conftest* |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5825 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 5826 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5827 | fi |
| 5828 | fi |
| 5829 | |
| 5830 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 |
| 5831 | if test $ac_cv_c_bigendian = yes; then |
| 5832 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5833 | #define WORDS_BIGENDIAN 1 |
| 5834 | EOF |
| 5835 | |
| 5836 | fi |
| 5837 | |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 5838 | for ac_hdr in inttypes.h |
| 5839 | do |
| 5840 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 5841 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5842 | echo "configure:5843: checking for $ac_hdr" >&5 |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 5843 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 5844 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5845 | else |
| 5846 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5847 | #line 5848 "configure" |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 5848 | #include "confdefs.h" |
| 5849 | #include <$ac_hdr> |
| 5850 | EOF |
| 5851 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5852 | { (eval echo configure:5853: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 5853 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 5854 | if test -z "$ac_err"; then |
| 5855 | rm -rf conftest* |
| 5856 | eval "ac_cv_header_$ac_safe=yes" |
| 5857 | else |
| 5858 | echo "$ac_err" >&5 |
| 5859 | echo "configure: failed program was:" >&5 |
| 5860 | cat conftest.$ac_ext >&5 |
| 5861 | rm -rf conftest* |
| 5862 | eval "ac_cv_header_$ac_safe=no" |
| 5863 | fi |
| 5864 | rm -f conftest* |
| 5865 | fi |
| 5866 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 5867 | echo "$ac_t""yes" 1>&6 |
| 5868 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 5869 | cat >> confdefs.h <<EOF |
| 5870 | #define $ac_tr_hdr 1 |
| 5871 | EOF |
| 5872 | |
| 5873 | else |
| 5874 | echo "$ac_t""no" 1>&6 |
| 5875 | fi |
| 5876 | done |
| 5877 | |
| 5878 | echo $ac_n "checking for intptr_t""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5879 | echo "configure:5880: checking for intptr_t" >&5 |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 5880 | if eval "test \"`echo '$''{'ac_cv_type_intptr_t'+set}'`\" = set"; then |
| 5881 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5882 | else |
| 5883 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5884 | #line 5885 "configure" |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 5885 | #include "confdefs.h" |
| 5886 | #include <sys/types.h> |
| 5887 | #if STDC_HEADERS |
| 5888 | #include <stdlib.h> |
| 5889 | #include <stddef.h> |
| 5890 | #endif |
| 5891 | EOF |
| 5892 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5893 | egrep "(^|[^a-zA-Z_0-9])intptr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
| 5894 | rm -rf conftest* |
| 5895 | ac_cv_type_intptr_t=yes |
| 5896 | else |
| 5897 | rm -rf conftest* |
| 5898 | ac_cv_type_intptr_t=no |
| 5899 | fi |
| 5900 | rm -f conftest* |
| 5901 | |
| 5902 | fi |
| 5903 | echo "$ac_t""$ac_cv_type_intptr_t" 1>&6 |
| 5904 | if test $ac_cv_type_intptr_t = no; then |
| 5905 | cat >> confdefs.h <<\EOF |
| 5906 | #define intptr_t long |
| 5907 | EOF |
| 5908 | |
| 5909 | fi |
| 5910 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5911 | echo $ac_n "checking whether struct stat has a st_flags field""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5912 | echo "configure:5913: checking whether struct stat has a st_flags field" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5913 | if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags'+set}'`\" = set"; then |
| 5914 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5915 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5916 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5917 | #line 5918 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5918 | #include "confdefs.h" |
| 5919 | #include <sys/stat.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5920 | int main() { |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5921 | struct stat stat; stat.st_flags = 0; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5922 | ; return 0; } |
| 5923 | EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5924 | if { (eval echo configure:5925: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5925 | rm -rf conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5926 | e2fsprogs_cv_struct_st_flags=yes |
| 5927 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5928 | echo "configure: failed program was:" >&5 |
| 5929 | cat conftest.$ac_ext >&5 |
| 5930 | rm -rf conftest* |
| 5931 | e2fsprogs_cv_struct_st_flags=no |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5932 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5933 | rm -f conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5934 | fi |
| 5935 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5936 | echo "$ac_t""$e2fsprogs_cv_struct_st_flags" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5937 | if test "$e2fsprogs_cv_struct_st_flags" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5938 | echo $ac_n "checking whether st_flags field is useful""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5939 | echo "configure:5940: checking whether st_flags field is useful" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5940 | if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags_immut'+set}'`\" = set"; then |
| 5941 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 5942 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5943 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5944 | #line 5945 "configure" |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 5945 | #include "confdefs.h" |
| 5946 | #include <sys/stat.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5947 | int main() { |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 5948 | struct stat stat; stat.st_flags |= UF_IMMUTABLE; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5949 | ; return 0; } |
| 5950 | EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5951 | if { (eval echo configure:5952: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5952 | rm -rf conftest* |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 5953 | e2fsprogs_cv_struct_st_flags_immut=yes |
| 5954 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5955 | echo "configure: failed program was:" >&5 |
| 5956 | cat conftest.$ac_ext >&5 |
| 5957 | rm -rf conftest* |
| 5958 | e2fsprogs_cv_struct_st_flags_immut=no |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 5959 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5960 | rm -f conftest* |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 5961 | fi |
| 5962 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5963 | echo "$ac_t""$e2fsprogs_cv_struct_st_flags_immut" 1>&6 |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 5964 | if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5965 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5966 | #define HAVE_STAT_FLAGS 1 |
| 5967 | EOF |
| 5968 | |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 5969 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5970 | fi |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 5971 | echo $ac_n "checking whether struct sockaddr contains sa_len""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5972 | echo "configure:5973: checking whether struct sockaddr contains sa_len" >&5 |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 5973 | if eval "test \"`echo '$''{'e2fsprogs_cv_sockaddr_sa_len'+set}'`\" = set"; then |
| 5974 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5975 | else |
| 5976 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5977 | #line 5978 "configure" |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 5978 | #include "confdefs.h" |
| 5979 | #include <sys/types.h> |
| 5980 | #include <sys/socket.h> |
| 5981 | |
| 5982 | int main() { |
| 5983 | struct sockaddr sa; |
| 5984 | sa.sa_len; |
| 5985 | ; return 0; } |
| 5986 | EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5987 | if { (eval echo configure:5988: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 5988 | rm -rf conftest* |
| 5989 | e2fsprogs_cv_sockaddr_sa_len=yes |
| 5990 | else |
| 5991 | echo "configure: failed program was:" >&5 |
| 5992 | cat conftest.$ac_ext >&5 |
| 5993 | rm -rf conftest* |
| 5994 | e2fsprogs_cv_sockaddr_sa_len=no |
| 5995 | fi |
| 5996 | rm -f conftest* |
| 5997 | fi |
| 5998 | |
| 5999 | echo "$ac_t""$e2fsprogs_cv_sockaddr_sa_len" 1>&6 |
| 6000 | if test $e2fsprogs_cv_sockaddr_sa_len = yes; then |
| 6001 | cat >> confdefs.h <<EOF |
| 6002 | #define HAVE_SA_LEN 1 |
| 6003 | EOF |
| 6004 | |
| 6005 | fi |
Theodore Ts'o | 1c29b09 | 2003-07-12 16:01:45 -0400 | [diff] [blame] | 6006 | for ac_func in chflags getrusage llseek lseek64 open64 getmntinfo strtoull strcasecmp srandom fchown mallinfo fdatasync strnlen strptime sysconf pathconf posix_memalign memalign valloc |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6007 | do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6008 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 6009 | echo "configure:6010: checking for $ac_func" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6010 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 6011 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6012 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6013 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 6014 | #line 6015 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6015 | #include "confdefs.h" |
| 6016 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6017 | which can conflict with char $ac_func(); below. */ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6018 | #include <assert.h> |
| 6019 | /* Override any gcc2 internal prototype to avoid an error. */ |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 6020 | /* We use char because int might match the return type of a gcc2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6021 | builtin and then its argument prototype would still apply. */ |
| 6022 | char $ac_func(); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6023 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6024 | int main() { |
| 6025 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6026 | /* The GNU C library defines this for functions which it implements |
| 6027 | to always fail with ENOSYS. Some functions are actually named |
| 6028 | something starting with __ and the normal name is an alias. */ |
| 6029 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 6030 | choke me |
| 6031 | #else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6032 | $ac_func(); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6033 | #endif |
| 6034 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6035 | ; return 0; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6036 | EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 6037 | if { (eval echo configure:6038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6038 | rm -rf conftest* |
| 6039 | eval "ac_cv_func_$ac_func=yes" |
| 6040 | else |
| 6041 | echo "configure: failed program was:" >&5 |
| 6042 | cat conftest.$ac_ext >&5 |
| 6043 | rm -rf conftest* |
| 6044 | eval "ac_cv_func_$ac_func=no" |
| 6045 | fi |
| 6046 | rm -f conftest* |
| 6047 | fi |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 6048 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6049 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 6050 | echo "$ac_t""yes" 1>&6 |
| 6051 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 6052 | cat >> confdefs.h <<EOF |
| 6053 | #define $ac_tr_func 1 |
| 6054 | EOF |
| 6055 | |
| 6056 | else |
| 6057 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6058 | fi |
| 6059 | done |
| 6060 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 6061 | SOCKET_LIB='' |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6062 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 6063 | echo "configure:6064: checking for socket in -lsocket" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6064 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
| 6065 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 6066 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 6067 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6068 | ac_save_LIBS="$LIBS" |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 6069 | LIBS="-lsocket $LIBS" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6070 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 6071 | #line 6072 "configure" |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 6072 | #include "confdefs.h" |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 6073 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6074 | /* We use char because int might match the return type of a gcc2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6075 | builtin and then its argument prototype would still apply. */ |
| 6076 | char socket(); |
| 6077 | |
| 6078 | int main() { |
| 6079 | socket() |
| 6080 | ; return 0; } |
| 6081 | EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 6082 | if { (eval echo configure:6083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6083 | rm -rf conftest* |
| 6084 | eval "ac_cv_lib_$ac_lib_var=yes" |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 6085 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6086 | echo "configure: failed program was:" >&5 |
| 6087 | cat conftest.$ac_ext >&5 |
| 6088 | rm -rf conftest* |
| 6089 | eval "ac_cv_lib_$ac_lib_var=no" |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 6090 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6091 | rm -f conftest* |
| 6092 | LIBS="$ac_save_LIBS" |
| 6093 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 6094 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6095 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 6096 | echo "$ac_t""yes" 1>&6 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 6097 | SOCKET_LIB=-lsocket |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6098 | else |
| 6099 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 6100 | fi |
| 6101 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6102 | |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 6103 | DLOPEN_LIB='' |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6104 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 6105 | echo "configure:6106: checking for dlopen in -ldl" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6106 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
| 6107 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 6108 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 6109 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6110 | ac_save_LIBS="$LIBS" |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 6111 | LIBS="-ldl $LIBS" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6112 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 6113 | #line 6114 "configure" |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 6114 | #include "confdefs.h" |
| 6115 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6116 | /* We use char because int might match the return type of a gcc2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6117 | builtin and then its argument prototype would still apply. */ |
| 6118 | char dlopen(); |
| 6119 | |
| 6120 | int main() { |
| 6121 | dlopen() |
| 6122 | ; return 0; } |
| 6123 | EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 6124 | if { (eval echo configure:6125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6125 | rm -rf conftest* |
| 6126 | eval "ac_cv_lib_$ac_lib_var=yes" |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 6127 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6128 | echo "configure: failed program was:" >&5 |
| 6129 | cat conftest.$ac_ext >&5 |
| 6130 | rm -rf conftest* |
| 6131 | eval "ac_cv_lib_$ac_lib_var=no" |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 6132 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6133 | rm -f conftest* |
| 6134 | LIBS="$ac_save_LIBS" |
| 6135 | |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 6136 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6137 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 6138 | echo "$ac_t""yes" 1>&6 |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 6139 | DLOPEN_LIB=-ldl |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6140 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 6141 | #define HAVE_DLOPEN 1 |
| 6142 | EOF |
| 6143 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6144 | else |
| 6145 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 6146 | fi |
| 6147 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6148 | |
| 6149 | echo $ac_n "checking for optreset""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 6150 | echo "configure:6151: checking for optreset" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6151 | if eval "test \"`echo '$''{'ac_cv_have_optreset'+set}'`\" = set"; then |
| 6152 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6153 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6154 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 6155 | #line 6156 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6156 | #include "confdefs.h" |
| 6157 | #include <unistd.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6158 | EOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6159 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6160 | egrep "optreset" >/dev/null 2>&1; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6161 | rm -rf conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6162 | ac_cv_have_optreset=yes |
| 6163 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6164 | rm -rf conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6165 | ac_cv_have_optreset=no |
| 6166 | fi |
| 6167 | rm -f conftest* |
| 6168 | |
| 6169 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6170 | echo "$ac_t""$ac_cv_have_optreset" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6171 | if test $ac_cv_have_optreset = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6172 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6173 | #define HAVE_OPTRESET 1 |
| 6174 | EOF |
| 6175 | |
| 6176 | fi |
Theodore Ts'o | 8f3f29d | 2000-02-11 05:04:44 +0000 | [diff] [blame] | 6177 | case "$host_os" in |
| 6178 | linux*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6179 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6180 | #define HAVE_EXT2_IOCTLS 1 |
| 6181 | EOF |
| 6182 | |
Theodore Ts'o | 8f3f29d | 2000-02-11 05:04:44 +0000 | [diff] [blame] | 6183 | ;; |
| 6184 | esac |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 6185 | LINUX_CMT="#" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 6186 | CYGWIN_CMT="#" |
| 6187 | UNIX_CMT= |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 6188 | case "$host_os" in |
| 6189 | linux*) |
| 6190 | LINUX_CMT= |
| 6191 | ;; |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 6192 | cygwin) |
| 6193 | CYGWIN_CMT= |
| 6194 | UNIX_CMT="#" |
Theodore Ts'o | d21ae6c | 2003-05-05 09:00:24 -0400 | [diff] [blame] | 6195 | EVMS_CMT="#" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 6196 | ;; |
Theodore Ts'o | d21ae6c | 2003-05-05 09:00:24 -0400 | [diff] [blame] | 6197 | *) |
| 6198 | EVMS_CMT="#" |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 6199 | esac |
| 6200 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6201 | |
| 6202 | |
| 6203 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6204 | case "$host_os" in |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6205 | linux* | gnu* | k*bsd*-gnu) |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 6206 | if test "$prefix" = NONE -a "$root_prefix" = NONE ; then |
| 6207 | root_prefix=""; |
| 6208 | echo "On $host_os systems, root_prefix defaults to ''" |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 6209 | fi |
| 6210 | ;; |
| 6211 | esac |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 6212 | case "$host_os" in |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6213 | linux* | gnu* | k*bsd*-gnu) |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 6214 | if test "$prefix" = NONE ; then |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 6215 | prefix="/usr"; |
| 6216 | echo "On $host_os systems, prefix defaults to /usr" |
Theodore Ts'o | bff61a7 | 2002-05-21 22:21:38 -0400 | [diff] [blame] | 6217 | if test "$mandir" = '${prefix}/man' ; then |
| 6218 | echo "...and mandir defaults to /usr/share/man" |
| 6219 | mandir=/usr/share/man |
| 6220 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6221 | fi |
| 6222 | ;; |
| 6223 | esac |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 6224 | if test "$root_prefix" = NONE ; then |
Theodore Ts'o | ffe1991 | 1998-04-08 06:05:49 +0000 | [diff] [blame] | 6225 | if test "$prefix" = NONE ; then |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 6226 | root_prefix="$ac_default_prefix" |
| 6227 | else |
| 6228 | root_prefix="$prefix" |
| 6229 | fi |
Theodore Ts'o | b5ffead | 2002-05-11 19:17:00 -0400 | [diff] [blame] | 6230 | root_bindir=$bindir |
| 6231 | root_sbindir=$sbindir |
| 6232 | root_libdir=$libdir |
| 6233 | root_sysconfdir=$sysconfdir |
| 6234 | else |
| 6235 | root_bindir='${root_prefix}/bin' |
| 6236 | root_sbindir='${root_prefix}/sbin' |
| 6237 | root_libdir='${root_prefix}/lib' |
| 6238 | root_sysconfdir='${root_prefix}/etc' |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 6239 | fi |
| 6240 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6241 | |
| 6242 | |
| 6243 | |
| 6244 | |
| 6245 | echo $ac_n "checking whether linker accepts -static""... $ac_c" 1>&6 |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 6246 | echo "configure:6247: checking whether linker accepts -static" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6247 | if eval "test \"`echo '$''{'ac_cv_e2fsprogs_use_static'+set}'`\" = set"; then |
| 6248 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 6249 | else |
| 6250 | SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6251 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 6252 | #line 6253 "configure" |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 6253 | #include "confdefs.h" |
| 6254 | #include <stdio.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6255 | int main() { |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 6256 | fflush(stdout); |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6257 | ; return 0; } |
| 6258 | EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 6259 | if { (eval echo configure:6260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6260 | rm -rf conftest* |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 6261 | ac_cv_e2fsprogs_use_static=yes |
| 6262 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6263 | echo "configure: failed program was:" >&5 |
| 6264 | cat conftest.$ac_ext >&5 |
| 6265 | rm -rf conftest* |
| 6266 | ac_cv_e2fsprogs_use_static=no |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 6267 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6268 | rm -f conftest* |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 6269 | LDFLAGS=$SAVE_LDFLAGS |
| 6270 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6271 | |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 6272 | case "$host_os" in |
| 6273 | solaris2.*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6274 | ac_cv_e2fsprogs_use_static=no |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 6275 | ;; |
| 6276 | esac |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6277 | echo "$ac_t""$ac_cv_e2fsprogs_use_static" 1>&6 |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 6278 | LDFLAG_STATIC= |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 6279 | if test $ac_cv_e2fsprogs_use_static = yes; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6280 | LDFLAG_STATIC=-static |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 6281 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6282 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6283 | case "$host_os" in |
| 6284 | darwin*) |
| 6285 | echo "Using Apple Darwin / GNU libintl workaround" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6286 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6287 | #define _INTL_REDIRECT_MACROS 1 |
| 6288 | EOF |
| 6289 | |
| 6290 | ;; |
| 6291 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6292 | SS_DIR=`cd ${srcdir}/lib/ss; pwd` |
| 6293 | ET_DIR=`cd ${srcdir}/lib/et; pwd` |
| 6294 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6295 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6296 | if test "$cross_compiling" = yes ; then |
| 6297 | DO_TEST_SUITE= |
| 6298 | else |
| 6299 | DO_TEST_SUITE=check |
| 6300 | fi |
| 6301 | |
Theodore Ts'o | c6f35b8 | 2003-05-17 16:29:27 -0400 | [diff] [blame] | 6302 | INTL_FLAGS= |
| 6303 | if test "$USE_INCLUDED_LIBINTL" = "yes" ; then |
| 6304 | INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl' |
| 6305 | fi |
| 6306 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6307 | test -d lib || mkdir lib |
| 6308 | test -d include || mkdir include |
| 6309 | test -d include/linux || mkdir include/linux |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 6310 | test -d include/asm || mkdir include/asm |
Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 6311 | for i in MCONFIG Makefile e2fsprogs.spec \ |
| 6312 | util/Makefile util/subst.conf util/gen-tarball \ |
| 6313 | 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] | 6314 | lib/uuid/Makefile lib/uuid/uuid_types.h \ |
| 6315 | lib/blkid/Makefile lib/blkid/blkid_types.h \ |
| 6316 | lib/evms/Makefile misc/Makefile ext2ed/Makefile e2fsck/Makefile \ |
| 6317 | debugfs/Makefile tests/Makefile tests/progs/Makefile \ |
| 6318 | resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do |
| 6319 | if test -d `dirname ${srcdir}/$i` ; then |
| 6320 | outlist="$outlist $i" |
| 6321 | fi |
| 6322 | done |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6323 | trap '' 1 2 15 |
| 6324 | cat > confcache <<\EOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6325 | # This file is a shell script that caches the results of configure |
| 6326 | # tests run on this system so they can be shared between configure |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6327 | # scripts and configure runs. It is not useful on other systems. |
| 6328 | # If it contains results you don't want to keep, you may remove or edit it. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6329 | # |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6330 | # By default, configure uses ./config.cache as the cache file, |
| 6331 | # creating it if it does not exist already. You can give configure |
| 6332 | # the --cache-file=FILE option to use a different cache file; that is |
| 6333 | # what configure does when it calls configure scripts in |
| 6334 | # subdirectories, so they share the cache. |
| 6335 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
| 6336 | # config.status only pays attention to the cache file if you give it the |
| 6337 | # --recheck option to rerun configure. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6338 | # |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6339 | EOF |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 6340 | # The following way of writing the cache mishandles newlines in values, |
| 6341 | # but we know of no workaround that is simple, portable, and efficient. |
| 6342 | # So, don't put newlines in cache variables' values. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6343 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 6344 | # and sets the high bit in the cache file unless we assign to the vars. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6345 | (set) 2>&1 | |
| 6346 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 6347 | *ac_space=\ *) |
| 6348 | # `set' does not quote correctly, so add quotes (double-quote substitution |
| 6349 | # turns \\\\ into \\, and sed turns \\ into \). |
| 6350 | sed -n \ |
| 6351 | -e "s/'/'\\\\''/g" \ |
| 6352 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
| 6353 | ;; |
| 6354 | *) |
| 6355 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 6356 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
| 6357 | ;; |
| 6358 | esac >> confcache |
| 6359 | if cmp -s $cache_file confcache; then |
| 6360 | : |
| 6361 | else |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6362 | if test -w $cache_file; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6363 | echo "updating cache $cache_file" |
| 6364 | cat confcache > $cache_file |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6365 | else |
| 6366 | echo "not updating unwritable cache $cache_file" |
| 6367 | fi |
| 6368 | fi |
| 6369 | rm -f confcache |
| 6370 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6371 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
| 6372 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6373 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 6374 | # Let make expand exec_prefix. |
| 6375 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 6376 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6377 | # Any assignment to VPATH causes Sun make to only execute |
| 6378 | # the first set of double-colon rules, so remove it if not needed. |
| 6379 | # If there is a colon in the path, we need to keep it. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6380 | if test "x$srcdir" = x.; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6381 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6382 | fi |
| 6383 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6384 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
| 6385 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6386 | # Transform confdefs.h into DEFS. |
| 6387 | # Protect against shell expansion while executing Makefile rules. |
| 6388 | # Protect against Makefile macro expansion. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6389 | cat > conftest.defs <<\EOF |
| 6390 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g |
| 6391 | s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g |
| 6392 | s%\[%\\&%g |
| 6393 | s%\]%\\&%g |
| 6394 | s%\$%$$%g |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6395 | EOF |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6396 | DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` |
| 6397 | rm -f conftest.defs |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6398 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6399 | |
| 6400 | # Without the "./", some shells look in PATH for config.status. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6401 | : ${CONFIG_STATUS=./config.status} |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6402 | |
| 6403 | echo creating $CONFIG_STATUS |
| 6404 | rm -f $CONFIG_STATUS |
| 6405 | cat > $CONFIG_STATUS <<EOF |
| 6406 | #! /bin/sh |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6407 | # Generated automatically by configure. |
| 6408 | # Run this file to recreate the current configuration. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6409 | # This directory was configured as follows, |
| 6410 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 6411 | # |
| 6412 | # $0 $ac_configure_args |
| 6413 | # |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6414 | # Compiler output produced by configure, useful for debugging |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6415 | # configure, is in ./config.log if it exists. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6416 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6417 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
| 6418 | for ac_option |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6419 | do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6420 | case "\$ac_option" in |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6421 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6422 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
| 6423 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
| 6424 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
| 6425 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
| 6426 | exit 0 ;; |
| 6427 | -help | --help | --hel | --he | --h) |
| 6428 | echo "\$ac_cs_usage"; exit 0 ;; |
| 6429 | *) echo "\$ac_cs_usage"; exit 1 ;; |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6430 | esac |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6431 | done |
| 6432 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6433 | ac_given_srcdir=$srcdir |
| 6434 | ac_given_INSTALL="$INSTALL" |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6435 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6436 | trap 'rm -fr `echo "$outlist" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
| 6437 | EOF |
| 6438 | cat >> $CONFIG_STATUS <<EOF |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6439 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6440 | # Protect against being on the right side of a sed subst in config.status. |
| 6441 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
| 6442 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
| 6443 | $ac_vpsub |
| 6444 | $extrasub |
| 6445 | s%@SHELL@%$SHELL%g |
| 6446 | s%@CFLAGS@%$CFLAGS%g |
| 6447 | s%@CPPFLAGS@%$CPPFLAGS%g |
| 6448 | s%@CXXFLAGS@%$CXXFLAGS%g |
| 6449 | s%@FFLAGS@%$FFLAGS%g |
| 6450 | s%@DEFS@%$DEFS%g |
| 6451 | s%@LDFLAGS@%$LDFLAGS%g |
| 6452 | s%@LIBS@%$LIBS%g |
| 6453 | s%@exec_prefix@%$exec_prefix%g |
| 6454 | s%@prefix@%$prefix%g |
| 6455 | s%@program_transform_name@%$program_transform_name%g |
| 6456 | s%@bindir@%$bindir%g |
| 6457 | s%@sbindir@%$sbindir%g |
| 6458 | s%@libexecdir@%$libexecdir%g |
| 6459 | s%@datadir@%$datadir%g |
| 6460 | s%@sysconfdir@%$sysconfdir%g |
| 6461 | s%@sharedstatedir@%$sharedstatedir%g |
| 6462 | s%@localstatedir@%$localstatedir%g |
| 6463 | s%@libdir@%$libdir%g |
| 6464 | s%@includedir@%$includedir%g |
| 6465 | s%@oldincludedir@%$oldincludedir%g |
| 6466 | s%@infodir@%$infodir%g |
| 6467 | s%@mandir@%$mandir%g |
| 6468 | /@MCONFIG@/r $MCONFIG |
| 6469 | s%@MCONFIG@%%g |
| 6470 | s%@E2FSPROGS_YEAR@%$E2FSPROGS_YEAR%g |
| 6471 | s%@E2FSPROGS_MONTH@%$E2FSPROGS_MONTH%g |
| 6472 | s%@E2FSPROGS_DAY@%$E2FSPROGS_DAY%g |
| 6473 | s%@E2FSPROGS_VERSION@%$E2FSPROGS_VERSION%g |
| 6474 | s%@host@%$host%g |
| 6475 | s%@host_alias@%$host_alias%g |
| 6476 | s%@host_cpu@%$host_cpu%g |
| 6477 | s%@host_vendor@%$host_vendor%g |
| 6478 | s%@host_os@%$host_os%g |
| 6479 | s%@CC@%$CC%g |
| 6480 | s%@LD@%$LD%g |
| 6481 | s%@CPP@%$CPP%g |
| 6482 | s%@LINUX_INCLUDE@%$LINUX_INCLUDE%g |
| 6483 | s%@HTREE_CMT@%$HTREE_CMT%g |
| 6484 | s%@HTREE_CLR_CMT@%$HTREE_CLR_CMT%g |
| 6485 | s%@EVMS_ABI_CODE@%$EVMS_ABI_CODE%g |
| 6486 | s%@DLL_CMT@%$DLL_CMT%g |
| 6487 | /@MAKEFILE_DLL@/r $MAKEFILE_DLL |
| 6488 | s%@MAKEFILE_DLL@%%g |
| 6489 | s%@ELF_CMT@%$ELF_CMT%g |
| 6490 | /@MAKEFILE_ELF@/r $MAKEFILE_ELF |
| 6491 | s%@MAKEFILE_ELF@%%g |
| 6492 | s%@BSDLIB_CMT@%$BSDLIB_CMT%g |
| 6493 | /@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB |
| 6494 | s%@MAKEFILE_BSDLIB@%%g |
| 6495 | s%@PROFILE_CMT@%$PROFILE_CMT%g |
| 6496 | /@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE |
| 6497 | s%@MAKEFILE_PROFILE@%%g |
| 6498 | s%@CHECKER_CMT@%$CHECKER_CMT%g |
| 6499 | /@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER |
| 6500 | s%@MAKEFILE_CHECKER@%%g |
| 6501 | s%@LIB_EXT@%$LIB_EXT%g |
| 6502 | s%@STATIC_LIB_EXT@%$STATIC_LIB_EXT%g |
| 6503 | s%@PROFILED_LIB_EXT@%$PROFILED_LIB_EXT%g |
| 6504 | s%@SWAPFS_CMT@%$SWAPFS_CMT%g |
| 6505 | s%@DEBUGFS_CMT@%$DEBUGFS_CMT%g |
| 6506 | s%@IMAGER_CMT@%$IMAGER_CMT%g |
| 6507 | s%@RESIZER_CMT@%$RESIZER_CMT%g |
| 6508 | s%@E2FSCK_TYPE@%$E2FSCK_TYPE%g |
| 6509 | s%@FSCK_PROG@%$FSCK_PROG%g |
| 6510 | s%@FSCK_MAN@%$FSCK_MAN%g |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 6511 | s%@E2INITRD_PROG@%$E2INITRD_PROG%g |
| 6512 | s%@E2INITRD_MAN@%$E2INITRD_MAN%g |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6513 | /@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY |
| 6514 | s%@MAKEFILE_LIBRARY@%%g |
| 6515 | s%@PACKAGE@%$PACKAGE%g |
| 6516 | s%@VERSION@%$VERSION%g |
| 6517 | s%@SET_MAKE@%$SET_MAKE%g |
| 6518 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
| 6519 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
| 6520 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
| 6521 | s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g |
| 6522 | s%@MSGFMT@%$MSGFMT%g |
| 6523 | s%@GMSGFMT@%$GMSGFMT%g |
| 6524 | s%@XGETTEXT@%$XGETTEXT%g |
| 6525 | s%@MSGMERGE@%$MSGMERGE%g |
| 6526 | s%@RANLIB@%$RANLIB%g |
| 6527 | s%@ALLOCA@%$ALLOCA%g |
| 6528 | s%@GLIBC21@%$GLIBC21%g |
| 6529 | s%@LIBICONV@%$LIBICONV%g |
| 6530 | s%@LTLIBICONV@%$LTLIBICONV%g |
| 6531 | s%@INTLBISON@%$INTLBISON%g |
| 6532 | s%@USE_NLS@%$USE_NLS%g |
| 6533 | s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g |
| 6534 | s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g |
| 6535 | s%@CATOBJEXT@%$CATOBJEXT%g |
| 6536 | s%@INTLOBJS@%$INTLOBJS%g |
| 6537 | s%@DATADIRNAME@%$DATADIRNAME%g |
| 6538 | s%@INSTOBJEXT@%$INSTOBJEXT%g |
| 6539 | s%@GENCAT@%$GENCAT%g |
| 6540 | s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g |
| 6541 | s%@INTLLIBS@%$INTLLIBS%g |
| 6542 | s%@LIBINTL@%$LIBINTL%g |
| 6543 | s%@LTLIBINTL@%$LTLIBINTL%g |
| 6544 | s%@POSUB@%$POSUB%g |
| 6545 | s%@BINARY_TYPE@%$BINARY_TYPE%g |
| 6546 | s%@LN@%$LN%g |
| 6547 | s%@LN_S@%$LN_S%g |
| 6548 | s%@MV@%$MV%g |
| 6549 | s%@CP@%$CP%g |
| 6550 | s%@RM@%$RM%g |
| 6551 | s%@CHMOD@%$CHMOD%g |
| 6552 | s%@AWK@%$AWK%g |
| 6553 | s%@SED@%$SED%g |
| 6554 | s%@PERL@%$PERL%g |
| 6555 | s%@LDCONFIG@%$LDCONFIG%g |
| 6556 | s%@build@%$build%g |
| 6557 | s%@build_alias@%$build_alias%g |
| 6558 | s%@build_cpu@%$build_cpu%g |
| 6559 | s%@build_vendor@%$build_vendor%g |
| 6560 | s%@build_os@%$build_os%g |
| 6561 | s%@AR@%$AR%g |
| 6562 | s%@STRIP@%$STRIP%g |
| 6563 | s%@BUILD_CC@%$BUILD_CC%g |
| 6564 | s%@SIZEOF_SHORT@%$SIZEOF_SHORT%g |
| 6565 | s%@SIZEOF_INT@%$SIZEOF_INT%g |
| 6566 | s%@SIZEOF_LONG@%$SIZEOF_LONG%g |
| 6567 | s%@SIZEOF_LONG_LONG@%$SIZEOF_LONG_LONG%g |
| 6568 | s%@SOCKET_LIB@%$SOCKET_LIB%g |
| 6569 | s%@DLOPEN_LIB@%$DLOPEN_LIB%g |
| 6570 | s%@LINUX_CMT@%$LINUX_CMT%g |
| 6571 | s%@CYGWIN_CMT@%$CYGWIN_CMT%g |
| 6572 | s%@UNIX_CMT@%$UNIX_CMT%g |
| 6573 | s%@EVMS_CMT@%$EVMS_CMT%g |
| 6574 | s%@root_prefix@%$root_prefix%g |
| 6575 | s%@root_bindir@%$root_bindir%g |
| 6576 | s%@root_sbindir@%$root_sbindir%g |
| 6577 | s%@root_libdir@%$root_libdir%g |
| 6578 | s%@root_sysconfdir@%$root_sysconfdir%g |
| 6579 | s%@LDFLAG_STATIC@%$LDFLAG_STATIC%g |
| 6580 | s%@SS_DIR@%$SS_DIR%g |
| 6581 | s%@ET_DIR@%$ET_DIR%g |
| 6582 | s%@DO_TEST_SUITE@%$DO_TEST_SUITE%g |
| 6583 | s%@INTL_FLAGS@%$INTL_FLAGS%g |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6584 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6585 | CEOF |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6586 | EOF |
| 6587 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6588 | cat >> $CONFIG_STATUS <<\EOF |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6589 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6590 | # Split the substitutions into bite-sized pieces for seds with |
| 6591 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 6592 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
| 6593 | ac_file=1 # Number of current file. |
| 6594 | ac_beg=1 # First line for current file. |
| 6595 | ac_end=$ac_max_sed_cmds # Line after last line for current file. |
| 6596 | ac_more_lines=: |
| 6597 | ac_sed_cmds="" |
| 6598 | while $ac_more_lines; do |
| 6599 | if test $ac_beg -gt 1; then |
| 6600 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
| 6601 | else |
| 6602 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
| 6603 | fi |
| 6604 | if test ! -s conftest.s$ac_file; then |
| 6605 | ac_more_lines=false |
| 6606 | rm -f conftest.s$ac_file |
| 6607 | else |
| 6608 | if test -z "$ac_sed_cmds"; then |
| 6609 | ac_sed_cmds="sed -f conftest.s$ac_file" |
| 6610 | else |
| 6611 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
| 6612 | fi |
| 6613 | ac_file=`expr $ac_file + 1` |
| 6614 | ac_beg=$ac_end |
| 6615 | ac_end=`expr $ac_end + $ac_max_sed_cmds` |
| 6616 | fi |
| 6617 | done |
| 6618 | if test -z "$ac_sed_cmds"; then |
| 6619 | ac_sed_cmds=cat |
| 6620 | fi |
| 6621 | EOF |
| 6622 | |
| 6623 | cat >> $CONFIG_STATUS <<EOF |
| 6624 | |
| 6625 | CONFIG_FILES=\${CONFIG_FILES-"$outlist"} |
| 6626 | EOF |
| 6627 | cat >> $CONFIG_STATUS <<\EOF |
| 6628 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
| 6629 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 6630 | case "$ac_file" in |
| 6631 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
| 6632 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 6633 | *) ac_file_in="${ac_file}.in" ;; |
| 6634 | esac |
| 6635 | |
| 6636 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
| 6637 | |
| 6638 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 6639 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 6640 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 6641 | # The file is in a subdirectory. |
| 6642 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
| 6643 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
| 6644 | # A "../" for each directory in $ac_dir_suffix. |
| 6645 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
| 6646 | else |
| 6647 | ac_dir_suffix= ac_dots= |
| 6648 | fi |
| 6649 | |
| 6650 | case "$ac_given_srcdir" in |
| 6651 | .) srcdir=. |
| 6652 | if test -z "$ac_dots"; then top_srcdir=. |
| 6653 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
| 6654 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
| 6655 | *) # Relative path. |
| 6656 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
| 6657 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 6658 | esac |
| 6659 | |
| 6660 | case "$ac_given_INSTALL" in |
| 6661 | [/$]*) INSTALL="$ac_given_INSTALL" ;; |
| 6662 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
| 6663 | esac |
| 6664 | |
| 6665 | echo creating "$ac_file" |
| 6666 | rm -f "$ac_file" |
| 6667 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
| 6668 | case "$ac_file" in |
| 6669 | *Makefile*) ac_comsub="1i\\ |
| 6670 | # $configure_input" ;; |
| 6671 | *) ac_comsub= ;; |
| 6672 | esac |
| 6673 | |
| 6674 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
| 6675 | sed -e "$ac_comsub |
| 6676 | s%@configure_input@%$configure_input%g |
| 6677 | s%@srcdir@%$srcdir%g |
| 6678 | s%@top_srcdir@%$top_srcdir%g |
| 6679 | s%@INSTALL@%$INSTALL%g |
| 6680 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
| 6681 | fi; done |
| 6682 | rm -f conftest.s* |
| 6683 | |
| 6684 | EOF |
| 6685 | cat >> $CONFIG_STATUS <<EOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6686 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
| 6687 | # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it |
| 6688 | # from automake. |
| 6689 | eval 'ALL_LINGUAS''="$ALL_LINGUAS"' |
| 6690 | # Capture the value of LINGUAS because we need it to compute CATALOGS. |
| 6691 | LINGUAS="${LINGUAS-%UNSET%}" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6692 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6693 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 6694 | EOF |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6695 | cat >> $CONFIG_STATUS <<\EOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6696 | |
| 6697 | for ac_file in $CONFIG_FILES; do |
| 6698 | # Support "outfile[:infile[:infile...]]" |
| 6699 | case "$ac_file" in |
| 6700 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6701 | esac |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6702 | # PO directories have a Makefile.in generated from Makefile.in.in. |
| 6703 | case "$ac_file" in */Makefile.in) |
| 6704 | # Adjust a relative srcdir. |
| 6705 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` |
| 6706 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" |
| 6707 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
| 6708 | # In autoconf-2.13 it is called $ac_given_srcdir. |
| 6709 | # In autoconf-2.50 it is called $srcdir. |
| 6710 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" |
| 6711 | case "$ac_given_srcdir" in |
| 6712 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; |
| 6713 | /*) top_srcdir="$ac_given_srcdir" ;; |
| 6714 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 6715 | esac |
| 6716 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then |
| 6717 | rm -f "$ac_dir/POTFILES" |
| 6718 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" |
| 6719 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" |
| 6720 | # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend |
| 6721 | # on $ac_dir but don't depend on user-specified configuration |
| 6722 | # parameters. |
| 6723 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then |
| 6724 | # The LINGUAS file contains the set of available languages. |
| 6725 | if test -n "$ALL_LINGUAS"; then |
| 6726 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" |
| 6727 | fi |
| 6728 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` |
| 6729 | # Hide the ALL_LINGUAS assigment from automake. |
| 6730 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' |
| 6731 | fi |
| 6732 | case "$ac_given_srcdir" in |
| 6733 | .) srcdirpre= ;; |
| 6734 | *) srcdirpre='$(srcdir)/' ;; |
| 6735 | esac |
| 6736 | POFILES= |
| 6737 | GMOFILES= |
| 6738 | UPDATEPOFILES= |
| 6739 | DUMMYPOFILES= |
| 6740 | for lang in $ALL_LINGUAS; do |
| 6741 | POFILES="$POFILES $srcdirpre$lang.po" |
| 6742 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" |
| 6743 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" |
| 6744 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" |
| 6745 | done |
| 6746 | # CATALOGS depends on both $ac_dir and the user's LINGUAS |
| 6747 | # environment variable. |
| 6748 | INST_LINGUAS= |
| 6749 | if test -n "$ALL_LINGUAS"; then |
| 6750 | for presentlang in $ALL_LINGUAS; do |
| 6751 | useit=no |
| 6752 | if test "%UNSET%" != "$LINGUAS"; then |
| 6753 | desiredlanguages="$LINGUAS" |
| 6754 | else |
| 6755 | desiredlanguages="$ALL_LINGUAS" |
| 6756 | fi |
| 6757 | for desiredlang in $desiredlanguages; do |
| 6758 | # Use the presentlang catalog if desiredlang is |
| 6759 | # a. equal to presentlang, or |
| 6760 | # b. a variant of presentlang (because in this case, |
| 6761 | # presentlang can be used as a fallback for messages |
| 6762 | # which are not translated in the desiredlang catalog). |
| 6763 | case "$desiredlang" in |
| 6764 | "$presentlang"*) useit=yes;; |
| 6765 | esac |
| 6766 | done |
| 6767 | if test $useit = yes; then |
| 6768 | INST_LINGUAS="$INST_LINGUAS $presentlang" |
| 6769 | fi |
| 6770 | done |
| 6771 | fi |
| 6772 | CATALOGS= |
| 6773 | if test -n "$INST_LINGUAS"; then |
| 6774 | for lang in $INST_LINGUAS; do |
| 6775 | CATALOGS="$CATALOGS $lang.gmo" |
| 6776 | done |
| 6777 | fi |
| 6778 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" |
| 6779 | 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" |
| 6780 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do |
| 6781 | if test -f "$f"; then |
| 6782 | case "$f" in |
| 6783 | *.orig | *.bak | *~) ;; |
| 6784 | *) cat "$f" >> "$ac_dir/Makefile" ;; |
| 6785 | esac |
| 6786 | fi |
| 6787 | done |
| 6788 | fi |
| 6789 | ;; |
| 6790 | esac |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6791 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6792 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6793 | exit 0 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6794 | EOF |
| 6795 | chmod +x $CONFIG_STATUS |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6796 | rm -fr confdefs* $ac_clean_files |
| 6797 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6798 | |