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