| 1 | #! /bin/sh | 
|---|
| 2 |  | 
|---|
| 3 | # Guess values for system-dependent variables and create Makefiles. | 
|---|
| 4 | # Generated automatically using autoconf version 2.13 | 
|---|
| 5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. | 
|---|
| 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 | 
|---|
| 15 | --enable-shared[=PKGS]  build shared libraries [default=yes]" | 
|---|
| 16 | ac_help="$ac_help | 
|---|
| 17 | --enable-static[=PKGS]  build static libraries [default=yes]" | 
|---|
| 18 | ac_help="$ac_help | 
|---|
| 19 | --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]" | 
|---|
| 20 | ac_help="$ac_help | 
|---|
| 21 | --with-gnu-ld           assume the C compiler uses GNU ld [default=no]" | 
|---|
| 22 |  | 
|---|
| 23 | # Find the correct PATH separator.  Usually this is `:', but | 
|---|
| 24 | # DJGPP uses `;' like DOS. | 
|---|
| 25 | if test "X${PATH_SEPARATOR+set}" != Xset; then | 
|---|
| 26 | UNAME=${UNAME-`uname 2>/dev/null`} | 
|---|
| 27 | case X$UNAME in | 
|---|
| 28 | *-DOS) lt_cv_sys_path_separator=';' ;; | 
|---|
| 29 | *)     lt_cv_sys_path_separator=':' ;; | 
|---|
| 30 | esac | 
|---|
| 31 | PATH_SEPARATOR=$lt_cv_sys_path_separator | 
|---|
| 32 | fi | 
|---|
| 33 |  | 
|---|
| 34 |  | 
|---|
| 35 | # Check that we are running under the correct shell. | 
|---|
| 36 | SHELL=${CONFIG_SHELL-/bin/sh} | 
|---|
| 37 |  | 
|---|
| 38 | case X$ECHO in | 
|---|
| 39 | X*--fallback-echo) | 
|---|
| 40 | # Remove one level of quotation (which was required for Make). | 
|---|
| 41 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` | 
|---|
| 42 | ;; | 
|---|
| 43 | esac | 
|---|
| 44 |  | 
|---|
| 45 | echo=${ECHO-echo} | 
|---|
| 46 | if test "X$1" = X--no-reexec; then | 
|---|
| 47 | # Discard the --no-reexec flag, and continue. | 
|---|
| 48 | shift | 
|---|
| 49 | elif test "X$1" = X--fallback-echo; then | 
|---|
| 50 | # Avoid inline document here, it may be left over | 
|---|
| 51 | : | 
|---|
| 52 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then | 
|---|
| 53 | # Yippee, $echo works! | 
|---|
| 54 | : | 
|---|
| 55 | else | 
|---|
| 56 | # Restart under the correct shell. | 
|---|
| 57 | exec $SHELL "$0" --no-reexec ${1+"$@"} | 
|---|
| 58 | fi | 
|---|
| 59 |  | 
|---|
| 60 | if test "X$1" = X--fallback-echo; then | 
|---|
| 61 | # used as fallback echo | 
|---|
| 62 | shift | 
|---|
| 63 | cat <<EOF | 
|---|
| 64 |  | 
|---|
| 65 | EOF | 
|---|
| 66 | exit 0 | 
|---|
| 67 | fi | 
|---|
| 68 |  | 
|---|
| 69 | # The HP-UX ksh and POSIX shell print the target directory to stdout | 
|---|
| 70 | # if CDPATH is set. | 
|---|
| 71 | if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi | 
|---|
| 72 |  | 
|---|
| 73 | if test -z "$ECHO"; then | 
|---|
| 74 | if test "X${echo_test_string+set}" != Xset; then | 
|---|
| 75 | # find a string as large as possible, as long as the shell can cope with it | 
|---|
| 76 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do | 
|---|
| 77 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | 
|---|
| 78 | if (echo_test_string="`eval $cmd`") 2>/dev/null && | 
|---|
| 79 | echo_test_string="`eval $cmd`" && | 
|---|
| 80 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null | 
|---|
| 81 | then | 
|---|
| 82 | break | 
|---|
| 83 | fi | 
|---|
| 84 | done | 
|---|
| 85 | fi | 
|---|
| 86 |  | 
|---|
| 87 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | 
|---|
| 88 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | 
|---|
| 89 | test "X$echo_testing_string" = "X$echo_test_string"; then | 
|---|
| 90 | : | 
|---|
| 91 | else | 
|---|
| 92 | # The Solaris, AIX, and Digital Unix default echo programs unquote | 
|---|
| 93 | # backslashes.  This makes it impossible to quote backslashes using | 
|---|
| 94 | #   echo "$something" | sed 's/\\/\\\\/g' | 
|---|
| 95 | # | 
|---|
| 96 | # So, first we look for a working echo in the user's PATH. | 
|---|
| 97 |  | 
|---|
| 98 | IFS="${IFS=   }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 
|---|
| 99 | for dir in $PATH /usr/ucb; do | 
|---|
| 100 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | 
|---|
| 101 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | 
|---|
| 102 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | 
|---|
| 103 | test "X$echo_testing_string" = "X$echo_test_string"; then | 
|---|
| 104 | echo="$dir/echo" | 
|---|
| 105 | break | 
|---|
| 106 | fi | 
|---|
| 107 | done | 
|---|
| 108 | IFS="$save_ifs" | 
|---|
| 109 |  | 
|---|
| 110 | if test "X$echo" = Xecho; then | 
|---|
| 111 | # We didn't find a better echo, so look for alternatives. | 
|---|
| 112 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && | 
|---|
| 113 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && | 
|---|
| 114 | test "X$echo_testing_string" = "X$echo_test_string"; then | 
|---|
| 115 | # This shell has a builtin print -r that does the trick. | 
|---|
| 116 | echo='print -r' | 
|---|
| 117 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && | 
|---|
| 118 | test "X$CONFIG_SHELL" != X/bin/ksh; then | 
|---|
| 119 | # If we have ksh, try running configure again with it. | 
|---|
| 120 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | 
|---|
| 121 | export ORIGINAL_CONFIG_SHELL | 
|---|
| 122 | CONFIG_SHELL=/bin/ksh | 
|---|
| 123 | export CONFIG_SHELL | 
|---|
| 124 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} | 
|---|
| 125 | else | 
|---|
| 126 | # Try using printf. | 
|---|
| 127 | echo='printf %s\n' | 
|---|
| 128 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | 
|---|
| 129 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | 
|---|
| 130 | test "X$echo_testing_string" = "X$echo_test_string"; then | 
|---|
| 131 | # Cool, printf works | 
|---|
| 132 | : | 
|---|
| 133 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | 
|---|
| 134 | test "X$echo_testing_string" = 'X\t' && | 
|---|
| 135 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | 
|---|
| 136 | test "X$echo_testing_string" = "X$echo_test_string"; then | 
|---|
| 137 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | 
|---|
| 138 | export CONFIG_SHELL | 
|---|
| 139 | SHELL="$CONFIG_SHELL" | 
|---|
| 140 | export SHELL | 
|---|
| 141 | echo="$CONFIG_SHELL $0 --fallback-echo" | 
|---|
| 142 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | 
|---|
| 143 | test "X$echo_testing_string" = 'X\t' && | 
|---|
| 144 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | 
|---|
| 145 | test "X$echo_testing_string" = "X$echo_test_string"; then | 
|---|
| 146 | echo="$CONFIG_SHELL $0 --fallback-echo" | 
|---|
| 147 | else | 
|---|
| 148 | # maybe with a smaller string... | 
|---|
| 149 | prev=: | 
|---|
| 150 |  | 
|---|
| 151 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do | 
|---|
| 152 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null | 
|---|
| 153 | then | 
|---|
| 154 | break | 
|---|
| 155 | fi | 
|---|
| 156 | prev="$cmd" | 
|---|
| 157 | done | 
|---|
| 158 |  | 
|---|
| 159 | if test "$prev" != 'sed 50q "$0"'; then | 
|---|
| 160 | echo_test_string=`eval $prev` | 
|---|
| 161 | export echo_test_string | 
|---|
| 162 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | 
|---|
| 163 | else | 
|---|
| 164 | # Oops.  We lost completely, so just stick with echo. | 
|---|
| 165 | echo=echo | 
|---|
| 166 | fi | 
|---|
| 167 | fi | 
|---|
| 168 | fi | 
|---|
| 169 | fi | 
|---|
| 170 | fi | 
|---|
| 171 | fi | 
|---|
| 172 |  | 
|---|
| 173 | # Copy echo and quote the copy suitably for passing to libtool from | 
|---|
| 174 | # the Makefile, instead of quoting the original, which is used later. | 
|---|
| 175 | ECHO=$echo | 
|---|
| 176 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | 
|---|
| 177 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | 
|---|
| 178 | fi | 
|---|
| 179 |  | 
|---|
| 180 |  | 
|---|
| 181 | ac_help="$ac_help | 
|---|
| 182 | --disable-libtool-lock  avoid locking (might break parallel builds)" | 
|---|
| 183 | ac_help="$ac_help | 
|---|
| 184 | --with-pic              try to use only PIC/non-PIC objects [default=use both]" | 
|---|
| 185 | ac_help="$ac_help | 
|---|
| 186 | --disable-largefile     omit support for large files" | 
|---|
| 187 | ac_help="$ac_help | 
|---|
| 188 | --disable-read          remove read support from library" | 
|---|
| 189 | ac_help="$ac_help | 
|---|
| 190 | --disable-write         remove write support from library" | 
|---|
| 191 | ac_help="$ac_help | 
|---|
| 192 | --disable-display       remove display support from library" | 
|---|
| 193 | ac_help="$ac_help | 
|---|
| 194 | --disable-chunks        remove support for chunk access" | 
|---|
| 195 | ac_help="$ac_help | 
|---|
| 196 | --disable-storechunks   remove support for access of previous chunks" | 
|---|
| 197 | ac_help="$ac_help | 
|---|
| 198 | --enable-trace          include support for debug tracing callbacks" | 
|---|
| 199 | ac_help="$ac_help | 
|---|
| 200 | --with-zlib[=DIR]       use zlib include/library files in DIR" | 
|---|
| 201 | ac_help="$ac_help | 
|---|
| 202 | --with-jpeg[=DIR]       use jpeg include/library files in DIR" | 
|---|
| 203 | ac_help="$ac_help | 
|---|
| 204 | --with-lcms[=DIR]       use lcms include/library files in DIR" | 
|---|
| 205 |  | 
|---|
| 206 | # Initialize some variables set by options. | 
|---|
| 207 | # The variables have the same names as the options, with | 
|---|
| 208 | # dashes changed to underlines. | 
|---|
| 209 | build=NONE | 
|---|
| 210 | cache_file=./config.cache | 
|---|
| 211 | exec_prefix=NONE | 
|---|
| 212 | host=NONE | 
|---|
| 213 | no_create= | 
|---|
| 214 | nonopt=NONE | 
|---|
| 215 | no_recursion= | 
|---|
| 216 | prefix=NONE | 
|---|
| 217 | program_prefix=NONE | 
|---|
| 218 | program_suffix=NONE | 
|---|
| 219 | program_transform_name=s,x,x, | 
|---|
| 220 | silent= | 
|---|
| 221 | site= | 
|---|
| 222 | srcdir= | 
|---|
| 223 | target=NONE | 
|---|
| 224 | verbose= | 
|---|
| 225 | x_includes=NONE | 
|---|
| 226 | x_libraries=NONE | 
|---|
| 227 | bindir='${exec_prefix}/bin' | 
|---|
| 228 | sbindir='${exec_prefix}/sbin' | 
|---|
| 229 | libexecdir='${exec_prefix}/libexec' | 
|---|
| 230 | datadir='${prefix}/share' | 
|---|
| 231 | sysconfdir='${prefix}/etc' | 
|---|
| 232 | sharedstatedir='${prefix}/com' | 
|---|
| 233 | localstatedir='${prefix}/var' | 
|---|
| 234 | libdir='${exec_prefix}/lib' | 
|---|
| 235 | includedir='${prefix}/include' | 
|---|
| 236 | oldincludedir='/usr/include' | 
|---|
| 237 | infodir='${prefix}/info' | 
|---|
| 238 | mandir='${prefix}/man' | 
|---|
| 239 |  | 
|---|
| 240 | # Initialize some other variables. | 
|---|
| 241 | subdirs= | 
|---|
| 242 | MFLAGS= MAKEFLAGS= | 
|---|
| 243 | SHELL=${CONFIG_SHELL-/bin/sh} | 
|---|
| 244 | # Maximum number of lines to put in a shell here document. | 
|---|
| 245 | ac_max_here_lines=12 | 
|---|
| 246 |  | 
|---|
| 247 | ac_prev= | 
|---|
| 248 | for ac_option | 
|---|
| 249 | do | 
|---|
| 250 |  | 
|---|
| 251 | # If the previous option needs an argument, assign it. | 
|---|
| 252 | if test -n "$ac_prev"; then | 
|---|
| 253 | eval "$ac_prev=\$ac_option" | 
|---|
| 254 | ac_prev= | 
|---|
| 255 | continue | 
|---|
| 256 | fi | 
|---|
| 257 |  | 
|---|
| 258 | case "$ac_option" in | 
|---|
| 259 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | 
|---|
| 260 | *) ac_optarg= ;; | 
|---|
| 261 | esac | 
|---|
| 262 |  | 
|---|
| 263 | # Accept the important Cygnus configure options, so we can diagnose typos. | 
|---|
| 264 |  | 
|---|
| 265 | case "$ac_option" in | 
|---|
| 266 |  | 
|---|
| 267 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | 
|---|
| 268 | ac_prev=bindir ;; | 
|---|
| 269 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | 
|---|
| 270 | bindir="$ac_optarg" ;; | 
|---|
| 271 |  | 
|---|
| 272 | -build | --build | --buil | --bui | --bu) | 
|---|
| 273 | ac_prev=build ;; | 
|---|
| 274 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | 
|---|
| 275 | build="$ac_optarg" ;; | 
|---|
| 276 |  | 
|---|
| 277 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | 
|---|
| 278 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | 
|---|
| 279 | ac_prev=cache_file ;; | 
|---|
| 280 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | 
|---|
| 281 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | 
|---|
| 282 | cache_file="$ac_optarg" ;; | 
|---|
| 283 |  | 
|---|
| 284 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | 
|---|
| 285 | ac_prev=datadir ;; | 
|---|
| 286 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | 
|---|
| 287 | | --da=*) | 
|---|
| 288 | datadir="$ac_optarg" ;; | 
|---|
| 289 |  | 
|---|
| 290 | -disable-* | --disable-*) | 
|---|
| 291 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | 
|---|
| 292 | # Reject names that are not valid shell variable names. | 
|---|
| 293 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | 
|---|
| 294 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | 
|---|
| 295 | fi | 
|---|
| 296 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | 
|---|
| 297 | eval "enable_${ac_feature}=no" ;; | 
|---|
| 298 |  | 
|---|
| 299 | -enable-* | --enable-*) | 
|---|
| 300 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | 
|---|
| 301 | # Reject names that are not valid shell variable names. | 
|---|
| 302 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | 
|---|
| 303 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | 
|---|
| 304 | fi | 
|---|
| 305 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | 
|---|
| 306 | case "$ac_option" in | 
|---|
| 307 | *=*) ;; | 
|---|
| 308 | *) ac_optarg=yes ;; | 
|---|
| 309 | esac | 
|---|
| 310 | eval "enable_${ac_feature}='$ac_optarg'" ;; | 
|---|
| 311 |  | 
|---|
| 312 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | 
|---|
| 313 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | 
|---|
| 314 | | --exec | --exe | --ex) | 
|---|
| 315 | ac_prev=exec_prefix ;; | 
|---|
| 316 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | 
|---|
| 317 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | 
|---|
| 318 | | --exec=* | --exe=* | --ex=*) | 
|---|
| 319 | exec_prefix="$ac_optarg" ;; | 
|---|
| 320 |  | 
|---|
| 321 | -gas | --gas | --ga | --g) | 
|---|
| 322 | # Obsolete; use --with-gas. | 
|---|
| 323 | with_gas=yes ;; | 
|---|
| 324 |  | 
|---|
| 325 | -help | --help | --hel | --he) | 
|---|
| 326 | # Omit some internal or obsolete options to make the list less imposing. | 
|---|
| 327 | # This message is too long to be a string in the A/UX 3.1 sh. | 
|---|
| 328 | cat << EOF | 
|---|
| 329 | Usage: configure [options] [host] | 
|---|
| 330 | Options: [defaults in brackets after descriptions] | 
|---|
| 331 | Configuration: | 
|---|
| 332 | --cache-file=FILE       cache test results in FILE | 
|---|
| 333 | --help                  print this message | 
|---|
| 334 | --no-create             do not create output files | 
|---|
| 335 | --quiet, --silent       do not print \`checking...' messages | 
|---|
| 336 | --version               print the version of autoconf that created configure | 
|---|
| 337 | Directory and file names: | 
|---|
| 338 | --prefix=PREFIX         install architecture-independent files in PREFIX | 
|---|
| 339 | [$ac_default_prefix] | 
|---|
| 340 | --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX | 
|---|
| 341 | [same as prefix] | 
|---|
| 342 | --bindir=DIR            user executables in DIR [EPREFIX/bin] | 
|---|
| 343 | --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin] | 
|---|
| 344 | --libexecdir=DIR        program executables in DIR [EPREFIX/libexec] | 
|---|
| 345 | --datadir=DIR           read-only architecture-independent data in DIR | 
|---|
| 346 | [PREFIX/share] | 
|---|
| 347 | --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc] | 
|---|
| 348 | --sharedstatedir=DIR    modifiable architecture-independent data in DIR | 
|---|
| 349 | [PREFIX/com] | 
|---|
| 350 | --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var] | 
|---|
| 351 | --libdir=DIR            object code libraries in DIR [EPREFIX/lib] | 
|---|
| 352 | --includedir=DIR        C header files in DIR [PREFIX/include] | 
|---|
| 353 | --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include] | 
|---|
| 354 | --infodir=DIR           info documentation in DIR [PREFIX/info] | 
|---|
| 355 | --mandir=DIR            man documentation in DIR [PREFIX/man] | 
|---|
| 356 | --srcdir=DIR            find the sources in DIR [configure dir or ..] | 
|---|
| 357 | --program-prefix=PREFIX prepend PREFIX to installed program names | 
|---|
| 358 | --program-suffix=SUFFIX append SUFFIX to installed program names | 
|---|
| 359 | --program-transform-name=PROGRAM | 
|---|
| 360 | run sed PROGRAM on installed program names | 
|---|
| 361 | EOF | 
|---|
| 362 | cat << EOF | 
|---|
| 363 | Host type: | 
|---|
| 364 | --build=BUILD           configure for building on BUILD [BUILD=HOST] | 
|---|
| 365 | --host=HOST             configure for HOST [guessed] | 
|---|
| 366 | --target=TARGET         configure for TARGET [TARGET=HOST] | 
|---|
| 367 | Features and packages: | 
|---|
| 368 | --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no) | 
|---|
| 369 | --enable-FEATURE[=ARG]  include FEATURE [ARG=yes] | 
|---|
| 370 | --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes] | 
|---|
| 371 | --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no) | 
|---|
| 372 | --x-includes=DIR        X include files are in DIR | 
|---|
| 373 | --x-libraries=DIR       X library files are in DIR | 
|---|
| 374 | EOF | 
|---|
| 375 | if test -n "$ac_help"; then | 
|---|
| 376 | echo "--enable and --with options recognized:$ac_help" | 
|---|
| 377 | fi | 
|---|
| 378 | exit 0 ;; | 
|---|
| 379 |  | 
|---|
| 380 | -host | --host | --hos | --ho) | 
|---|
| 381 | ac_prev=host ;; | 
|---|
| 382 | -host=* | --host=* | --hos=* | --ho=*) | 
|---|
| 383 | host="$ac_optarg" ;; | 
|---|
| 384 |  | 
|---|
| 385 | -includedir | --includedir | --includedi | --included | --include \ | 
|---|
| 386 | | --includ | --inclu | --incl | --inc) | 
|---|
| 387 | ac_prev=includedir ;; | 
|---|
| 388 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | 
|---|
| 389 | | --includ=* | --inclu=* | --incl=* | --inc=*) | 
|---|
| 390 | includedir="$ac_optarg" ;; | 
|---|
| 391 |  | 
|---|
| 392 | -infodir | --infodir | --infodi | --infod | --info | --inf) | 
|---|
| 393 | ac_prev=infodir ;; | 
|---|
| 394 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | 
|---|
| 395 | infodir="$ac_optarg" ;; | 
|---|
| 396 |  | 
|---|
| 397 | -libdir | --libdir | --libdi | --libd) | 
|---|
| 398 | ac_prev=libdir ;; | 
|---|
| 399 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | 
|---|
| 400 | libdir="$ac_optarg" ;; | 
|---|
| 401 |  | 
|---|
| 402 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | 
|---|
| 403 | | --libexe | --libex | --libe) | 
|---|
| 404 | ac_prev=libexecdir ;; | 
|---|
| 405 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | 
|---|
| 406 | | --libexe=* | --libex=* | --libe=*) | 
|---|
| 407 | libexecdir="$ac_optarg" ;; | 
|---|
| 408 |  | 
|---|
| 409 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | 
|---|
| 410 | | --localstate | --localstat | --localsta | --localst \ | 
|---|
| 411 | | --locals | --local | --loca | --loc | --lo) | 
|---|
| 412 | ac_prev=localstatedir ;; | 
|---|
| 413 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | 
|---|
| 414 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | 
|---|
| 415 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | 
|---|
| 416 | localstatedir="$ac_optarg" ;; | 
|---|
| 417 |  | 
|---|
| 418 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | 
|---|
| 419 | ac_prev=mandir ;; | 
|---|
| 420 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | 
|---|
| 421 | mandir="$ac_optarg" ;; | 
|---|
| 422 |  | 
|---|
| 423 | -nfp | --nfp | --nf) | 
|---|
| 424 | # Obsolete; use --without-fp. | 
|---|
| 425 | with_fp=no ;; | 
|---|
| 426 |  | 
|---|
| 427 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | 
|---|
| 428 | | --no-cr | --no-c) | 
|---|
| 429 | no_create=yes ;; | 
|---|
| 430 |  | 
|---|
| 431 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | 
|---|
| 432 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | 
|---|
| 433 | no_recursion=yes ;; | 
|---|
| 434 |  | 
|---|
| 435 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | 
|---|
| 436 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | 
|---|
| 437 | | --oldin | --oldi | --old | --ol | --o) | 
|---|
| 438 | ac_prev=oldincludedir ;; | 
|---|
| 439 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | 
|---|
| 440 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | 
|---|
| 441 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | 
|---|
| 442 | oldincludedir="$ac_optarg" ;; | 
|---|
| 443 |  | 
|---|
| 444 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | 
|---|
| 445 | ac_prev=prefix ;; | 
|---|
| 446 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | 
|---|
| 447 | prefix="$ac_optarg" ;; | 
|---|
| 448 |  | 
|---|
| 449 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | 
|---|
| 450 | | --program-pre | --program-pr | --program-p) | 
|---|
| 451 | ac_prev=program_prefix ;; | 
|---|
| 452 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | 
|---|
| 453 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | 
|---|
| 454 | program_prefix="$ac_optarg" ;; | 
|---|
| 455 |  | 
|---|
| 456 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | 
|---|
| 457 | | --program-suf | --program-su | --program-s) | 
|---|
| 458 | ac_prev=program_suffix ;; | 
|---|
| 459 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | 
|---|
| 460 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | 
|---|
| 461 | program_suffix="$ac_optarg" ;; | 
|---|
| 462 |  | 
|---|
| 463 | -program-transform-name | --program-transform-name \ | 
|---|
| 464 | | --program-transform-nam | --program-transform-na \ | 
|---|
| 465 | | --program-transform-n | --program-transform- \ | 
|---|
| 466 | | --program-transform | --program-transfor \ | 
|---|
| 467 | | --program-transfo | --program-transf \ | 
|---|
| 468 | | --program-trans | --program-tran \ | 
|---|
| 469 | | --progr-tra | --program-tr | --program-t) | 
|---|
| 470 | ac_prev=program_transform_name ;; | 
|---|
| 471 | -program-transform-name=* | --program-transform-name=* \ | 
|---|
| 472 | | --program-transform-nam=* | --program-transform-na=* \ | 
|---|
| 473 | | --program-transform-n=* | --program-transform-=* \ | 
|---|
| 474 | | --program-transform=* | --program-transfor=* \ | 
|---|
| 475 | | --program-transfo=* | --program-transf=* \ | 
|---|
| 476 | | --program-trans=* | --program-tran=* \ | 
|---|
| 477 | | --progr-tra=* | --program-tr=* | --program-t=*) | 
|---|
| 478 | program_transform_name="$ac_optarg" ;; | 
|---|
| 479 |  | 
|---|
| 480 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
|---|
| 481 | | -silent | --silent | --silen | --sile | --sil) | 
|---|
| 482 | silent=yes ;; | 
|---|
| 483 |  | 
|---|
| 484 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | 
|---|
| 485 | ac_prev=sbindir ;; | 
|---|
| 486 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | 
|---|
| 487 | | --sbi=* | --sb=*) | 
|---|
| 488 | sbindir="$ac_optarg" ;; | 
|---|
| 489 |  | 
|---|
| 490 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | 
|---|
| 491 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | 
|---|
| 492 | | --sharedst | --shareds | --shared | --share | --shar \ | 
|---|
| 493 | | --sha | --sh) | 
|---|
| 494 | ac_prev=sharedstatedir ;; | 
|---|
| 495 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | 
|---|
| 496 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | 
|---|
| 497 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | 
|---|
| 498 | | --sha=* | --sh=*) | 
|---|
| 499 | sharedstatedir="$ac_optarg" ;; | 
|---|
| 500 |  | 
|---|
| 501 | -site | --site | --sit) | 
|---|
| 502 | ac_prev=site ;; | 
|---|
| 503 | -site=* | --site=* | --sit=*) | 
|---|
| 504 | site="$ac_optarg" ;; | 
|---|
| 505 |  | 
|---|
| 506 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | 
|---|
| 507 | ac_prev=srcdir ;; | 
|---|
| 508 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | 
|---|
| 509 | srcdir="$ac_optarg" ;; | 
|---|
| 510 |  | 
|---|
| 511 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | 
|---|
| 512 | | --syscon | --sysco | --sysc | --sys | --sy) | 
|---|
| 513 | ac_prev=sysconfdir ;; | 
|---|
| 514 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | 
|---|
| 515 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | 
|---|
| 516 | sysconfdir="$ac_optarg" ;; | 
|---|
| 517 |  | 
|---|
| 518 | -target | --target | --targe | --targ | --tar | --ta | --t) | 
|---|
| 519 | ac_prev=target ;; | 
|---|
| 520 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | 
|---|
| 521 | target="$ac_optarg" ;; | 
|---|
| 522 |  | 
|---|
| 523 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | 
|---|
| 524 | verbose=yes ;; | 
|---|
| 525 |  | 
|---|
| 526 | -version | --version | --versio | --versi | --vers) | 
|---|
| 527 | echo "configure generated by autoconf version 2.13" | 
|---|
| 528 | exit 0 ;; | 
|---|
| 529 |  | 
|---|
| 530 | -with-* | --with-*) | 
|---|
| 531 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | 
|---|
| 532 | # Reject names that are not valid shell variable names. | 
|---|
| 533 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | 
|---|
| 534 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | 
|---|
| 535 | fi | 
|---|
| 536 | ac_package=`echo $ac_package| sed 's/-/_/g'` | 
|---|
| 537 | case "$ac_option" in | 
|---|
| 538 | *=*) ;; | 
|---|
| 539 | *) ac_optarg=yes ;; | 
|---|
| 540 | esac | 
|---|
| 541 | eval "with_${ac_package}='$ac_optarg'" ;; | 
|---|
| 542 |  | 
|---|
| 543 | -without-* | --without-*) | 
|---|
| 544 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | 
|---|
| 545 | # Reject names that are not valid shell variable names. | 
|---|
| 546 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | 
|---|
| 547 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | 
|---|
| 548 | fi | 
|---|
| 549 | ac_package=`echo $ac_package| sed 's/-/_/g'` | 
|---|
| 550 | eval "with_${ac_package}=no" ;; | 
|---|
| 551 |  | 
|---|
| 552 | --x) | 
|---|
| 553 | # Obsolete; use --with-x. | 
|---|
| 554 | with_x=yes ;; | 
|---|
| 555 |  | 
|---|
| 556 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | 
|---|
| 557 | | --x-incl | --x-inc | --x-in | --x-i) | 
|---|
| 558 | ac_prev=x_includes ;; | 
|---|
| 559 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | 
|---|
| 560 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | 
|---|
| 561 | x_includes="$ac_optarg" ;; | 
|---|
| 562 |  | 
|---|
| 563 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | 
|---|
| 564 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | 
|---|
| 565 | ac_prev=x_libraries ;; | 
|---|
| 566 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | 
|---|
| 567 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | 
|---|
| 568 | x_libraries="$ac_optarg" ;; | 
|---|
| 569 |  | 
|---|
| 570 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | 
|---|
| 571 | ;; | 
|---|
| 572 |  | 
|---|
| 573 | *) | 
|---|
| 574 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | 
|---|
| 575 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | 
|---|
| 576 | fi | 
|---|
| 577 | if test "x$nonopt" != xNONE; then | 
|---|
| 578 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | 
|---|
| 579 | fi | 
|---|
| 580 | nonopt="$ac_option" | 
|---|
| 581 | ;; | 
|---|
| 582 |  | 
|---|
| 583 | esac | 
|---|
| 584 | done | 
|---|
| 585 |  | 
|---|
| 586 | if test -n "$ac_prev"; then | 
|---|
| 587 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | 
|---|
| 588 | fi | 
|---|
| 589 |  | 
|---|
| 590 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | 
|---|
| 591 |  | 
|---|
| 592 | # File descriptor usage: | 
|---|
| 593 | # 0 standard input | 
|---|
| 594 | # 1 file creation | 
|---|
| 595 | # 2 errors and warnings | 
|---|
| 596 | # 3 some systems may open it to /dev/tty | 
|---|
| 597 | # 4 used on the Kubota Titan | 
|---|
| 598 | # 6 checking for... messages and results | 
|---|
| 599 | # 5 compiler messages saved in config.log | 
|---|
| 600 | if test "$silent" = yes; then | 
|---|
| 601 | exec 6>/dev/null | 
|---|
| 602 | else | 
|---|
| 603 | exec 6>&1 | 
|---|
| 604 | fi | 
|---|
| 605 | exec 5>./config.log | 
|---|
| 606 |  | 
|---|
| 607 | echo "\ | 
|---|
| 608 | This file contains any messages produced by compilers while | 
|---|
| 609 | running configure, to aid debugging if configure makes a mistake. | 
|---|
| 610 | " 1>&5 | 
|---|
| 611 |  | 
|---|
| 612 | # Strip out --no-create and --no-recursion so they do not pile up. | 
|---|
| 613 | # Also quote any args containing shell metacharacters. | 
|---|
| 614 | ac_configure_args= | 
|---|
| 615 | for ac_arg | 
|---|
| 616 | do | 
|---|
| 617 | case "$ac_arg" in | 
|---|
| 618 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | 
|---|
| 619 | | --no-cr | --no-c) ;; | 
|---|
| 620 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | 
|---|
| 621 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | 
|---|
| 622 | *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | 
|---|
| 623 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | 
|---|
| 624 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | 
|---|
| 625 | esac | 
|---|
| 626 | done | 
|---|
| 627 |  | 
|---|
| 628 | # NLS nuisances. | 
|---|
| 629 | # Only set these to C if already set.  These must not be set unconditionally | 
|---|
| 630 | # because not all systems understand e.g. LANG=C (notably SCO). | 
|---|
| 631 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | 
|---|
| 632 | # Non-C LC_CTYPE values break the ctype check. | 
|---|
| 633 | if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi | 
|---|
| 634 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | 
|---|
| 635 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | 
|---|
| 636 | if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi | 
|---|
| 637 |  | 
|---|
| 638 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | 
|---|
| 639 | rm -rf conftest* confdefs.h | 
|---|
| 640 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | 
|---|
| 641 | echo > confdefs.h | 
|---|
| 642 |  | 
|---|
| 643 | # A filename unique to this package, relative to the directory that | 
|---|
| 644 | # configure is in, which we can look for to find out if srcdir is correct. | 
|---|
| 645 | ac_unique_file=libmng.h | 
|---|
| 646 |  | 
|---|
| 647 | # Find the source files, if location was not specified. | 
|---|
| 648 | if test -z "$srcdir"; then | 
|---|
| 649 | ac_srcdir_defaulted=yes | 
|---|
| 650 | # Try the directory containing this script, then its parent. | 
|---|
| 651 | ac_prog=$0 | 
|---|
| 652 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | 
|---|
| 653 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | 
|---|
| 654 | srcdir=$ac_confdir | 
|---|
| 655 | if test ! -r $srcdir/$ac_unique_file; then | 
|---|
| 656 | srcdir=.. | 
|---|
| 657 | fi | 
|---|
| 658 | else | 
|---|
| 659 | ac_srcdir_defaulted=no | 
|---|
| 660 | fi | 
|---|
| 661 | if test ! -r $srcdir/$ac_unique_file; then | 
|---|
| 662 | if test "$ac_srcdir_defaulted" = yes; then | 
|---|
| 663 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | 
|---|
| 664 | else | 
|---|
| 665 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | 
|---|
| 666 | fi | 
|---|
| 667 | fi | 
|---|
| 668 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | 
|---|
| 669 |  | 
|---|
| 670 | # Prefer explicitly selected file to automatically selected ones. | 
|---|
| 671 | if test -z "$CONFIG_SITE"; then | 
|---|
| 672 | if test "x$prefix" != xNONE; then | 
|---|
| 673 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | 
|---|
| 674 | else | 
|---|
| 675 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | 
|---|
| 676 | fi | 
|---|
| 677 | fi | 
|---|
| 678 | for ac_site_file in $CONFIG_SITE; do | 
|---|
| 679 | if test -r "$ac_site_file"; then | 
|---|
| 680 | echo "loading site script $ac_site_file" | 
|---|
| 681 | . "$ac_site_file" | 
|---|
| 682 | fi | 
|---|
| 683 | done | 
|---|
| 684 |  | 
|---|
| 685 | if test -r "$cache_file"; then | 
|---|
| 686 | echo "loading cache $cache_file" | 
|---|
| 687 | . $cache_file | 
|---|
| 688 | else | 
|---|
| 689 | echo "creating cache $cache_file" | 
|---|
| 690 | > $cache_file | 
|---|
| 691 | fi | 
|---|
| 692 |  | 
|---|
| 693 | ac_ext=c | 
|---|
| 694 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | 
|---|
| 695 | ac_cpp='$CPP $CPPFLAGS' | 
|---|
| 696 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | 
|---|
| 697 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | 
|---|
| 698 | cross_compiling=$ac_cv_prog_cc_cross | 
|---|
| 699 |  | 
|---|
| 700 | ac_exeext= | 
|---|
| 701 | ac_objext=o | 
|---|
| 702 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | 
|---|
| 703 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | 
|---|
| 704 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | 
|---|
| 705 | ac_n= ac_c=' | 
|---|
| 706 | ' ac_t='        ' | 
|---|
| 707 | else | 
|---|
| 708 | ac_n=-n ac_c= ac_t= | 
|---|
| 709 | fi | 
|---|
| 710 | else | 
|---|
| 711 | ac_n= ac_c='\c' ac_t= | 
|---|
| 712 | fi | 
|---|
| 713 |  | 
|---|
| 714 |  | 
|---|
| 715 |  | 
|---|
| 716 | ac_aux_dir= | 
|---|
| 717 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | 
|---|
| 718 | if test -f $ac_dir/install-sh; then | 
|---|
| 719 | ac_aux_dir=$ac_dir | 
|---|
| 720 | ac_install_sh="$ac_aux_dir/install-sh -c" | 
|---|
| 721 | break | 
|---|
| 722 | elif test -f $ac_dir/install.sh; then | 
|---|
| 723 | ac_aux_dir=$ac_dir | 
|---|
| 724 | ac_install_sh="$ac_aux_dir/install.sh -c" | 
|---|
| 725 | break | 
|---|
| 726 | fi | 
|---|
| 727 | done | 
|---|
| 728 | if test -z "$ac_aux_dir"; then | 
|---|
| 729 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | 
|---|
| 730 | fi | 
|---|
| 731 | ac_config_guess=$ac_aux_dir/config.guess | 
|---|
| 732 | ac_config_sub=$ac_aux_dir/config.sub | 
|---|
| 733 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | 
|---|
| 734 |  | 
|---|
| 735 | # Find a good install program.  We prefer a C program (faster), | 
|---|
| 736 | # so one script is as good as another.  But avoid the broken or | 
|---|
| 737 | # incompatible versions: | 
|---|
| 738 | # SysV /etc/install, /usr/sbin/install | 
|---|
| 739 | # SunOS /usr/etc/install | 
|---|
| 740 | # IRIX /sbin/install | 
|---|
| 741 | # AIX /bin/install | 
|---|
| 742 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | 
|---|
| 743 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | 
|---|
| 744 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | 
|---|
| 745 | # ./install, which can be erroneously created by make from ./install.sh. | 
|---|
| 746 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | 
|---|
| 747 | echo "configure:748: checking for a BSD compatible install" >&5 | 
|---|
| 748 | if test -z "$INSTALL"; then | 
|---|
| 749 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | 
|---|
| 750 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 751 | else | 
|---|
| 752 | IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":" | 
|---|
| 753 | for ac_dir in $PATH; do | 
|---|
| 754 | # Account for people who put trailing slashes in PATH elements. | 
|---|
| 755 | case "$ac_dir/" in | 
|---|
| 756 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | 
|---|
| 757 | *) | 
|---|
| 758 | # OSF1 and SCO ODT 3.0 have their own names for install. | 
|---|
| 759 | # Don't use installbsd from OSF since it installs stuff as root | 
|---|
| 760 | # by default. | 
|---|
| 761 | for ac_prog in ginstall scoinst install; do | 
|---|
| 762 | if test -f $ac_dir/$ac_prog; then | 
|---|
| 763 | if test $ac_prog = install && | 
|---|
| 764 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | 
|---|
| 765 | # AIX install.  It has an incompatible calling convention. | 
|---|
| 766 | : | 
|---|
| 767 | else | 
|---|
| 768 | ac_cv_path_install="$ac_dir/$ac_prog -c" | 
|---|
| 769 | break 2 | 
|---|
| 770 | fi | 
|---|
| 771 | fi | 
|---|
| 772 | done | 
|---|
| 773 | ;; | 
|---|
| 774 | esac | 
|---|
| 775 | done | 
|---|
| 776 | IFS="$ac_save_IFS" | 
|---|
| 777 |  | 
|---|
| 778 | fi | 
|---|
| 779 | if test "${ac_cv_path_install+set}" = set; then | 
|---|
| 780 | INSTALL="$ac_cv_path_install" | 
|---|
| 781 | else | 
|---|
| 782 | # As a last resort, use the slow shell script.  We don't cache a | 
|---|
| 783 | # path for INSTALL within a source directory, because that will | 
|---|
| 784 | # break other packages using the cache if that directory is | 
|---|
| 785 | # removed, or if the path is relative. | 
|---|
| 786 | INSTALL="$ac_install_sh" | 
|---|
| 787 | fi | 
|---|
| 788 | fi | 
|---|
| 789 | echo "$ac_t""$INSTALL" 1>&6 | 
|---|
| 790 |  | 
|---|
| 791 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | 
|---|
| 792 | # It thinks the first close brace ends the variable substitution. | 
|---|
| 793 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | 
|---|
| 794 |  | 
|---|
| 795 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' | 
|---|
| 796 |  | 
|---|
| 797 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | 
|---|
| 798 |  | 
|---|
| 799 | echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 | 
|---|
| 800 | echo "configure:801: checking whether build environment is sane" >&5 | 
|---|
| 801 | # Just in case | 
|---|
| 802 | sleep 1 | 
|---|
| 803 | echo timestamp > conftestfile | 
|---|
| 804 | # Do `set' in a subshell so we don't clobber the current shell's | 
|---|
| 805 | # arguments.  Must try -L first in case configure is actually a | 
|---|
| 806 | # symlink; some systems play weird games with the mod time of symlinks | 
|---|
| 807 | # (eg FreeBSD returns the mod time of the symlink's containing | 
|---|
| 808 | # directory). | 
|---|
| 809 | if ( | 
|---|
| 810 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` | 
|---|
| 811 | if test "$*" = "X"; then | 
|---|
| 812 | # -L didn't work. | 
|---|
| 813 | set X `ls -t $srcdir/configure conftestfile` | 
|---|
| 814 | fi | 
|---|
| 815 | if test "$*" != "X $srcdir/configure conftestfile" \ | 
|---|
| 816 | && test "$*" != "X conftestfile $srcdir/configure"; then | 
|---|
| 817 |  | 
|---|
| 818 | # If neither matched, then we have a broken ls.  This can happen | 
|---|
| 819 | # if, for instance, CONFIG_SHELL is bash and it inherits a | 
|---|
| 820 | # broken ls alias from the environment.  This has actually | 
|---|
| 821 | # happened.  Such a system could not be considered "sane". | 
|---|
| 822 | { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken | 
|---|
| 823 | alias in your environment" 1>&2; exit 1; } | 
|---|
| 824 | fi | 
|---|
| 825 |  | 
|---|
| 826 | test "$2" = conftestfile | 
|---|
| 827 | ) | 
|---|
| 828 | then | 
|---|
| 829 | # Ok. | 
|---|
| 830 | : | 
|---|
| 831 | else | 
|---|
| 832 | { echo "configure: error: newly created file is older than distributed files! | 
|---|
| 833 | Check your system clock" 1>&2; exit 1; } | 
|---|
| 834 | fi | 
|---|
| 835 | rm -f conftest* | 
|---|
| 836 | echo "$ac_t""yes" 1>&6 | 
|---|
| 837 | if test "$program_transform_name" = s,x,x,; then | 
|---|
| 838 | program_transform_name= | 
|---|
| 839 | else | 
|---|
| 840 | # Double any \ or $.  echo might interpret backslashes. | 
|---|
| 841 | cat <<\EOF_SED > conftestsed | 
|---|
| 842 | s,\\,\\\\,g; s,\$,$$,g | 
|---|
| 843 | EOF_SED | 
|---|
| 844 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`" | 
|---|
| 845 | rm -f conftestsed | 
|---|
| 846 | fi | 
|---|
| 847 | test "$program_prefix" != NONE && | 
|---|
| 848 | program_transform_name="s,^,${program_prefix},; $program_transform_name" | 
|---|
| 849 | # Use a double $ so make ignores it. | 
|---|
| 850 | test "$program_suffix" != NONE && | 
|---|
| 851 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" | 
|---|
| 852 |  | 
|---|
| 853 | # sed with no file args requires a program. | 
|---|
| 854 | test "$program_transform_name" = "" && program_transform_name="s,x,x," | 
|---|
| 855 |  | 
|---|
| 856 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | 
|---|
| 857 | echo "configure:858: checking whether ${MAKE-make} sets \${MAKE}" >&5 | 
|---|
| 858 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` | 
|---|
| 859 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | 
|---|
| 860 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 861 | else | 
|---|
| 862 | cat > conftestmake <<\EOF | 
|---|
| 863 | all: | 
|---|
| 864 | @echo 'ac_maketemp="${MAKE}"' | 
|---|
| 865 | EOF | 
|---|
| 866 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | 
|---|
| 867 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | 
|---|
| 868 | if test -n "$ac_maketemp"; then | 
|---|
| 869 | eval ac_cv_prog_make_${ac_make}_set=yes | 
|---|
| 870 | else | 
|---|
| 871 | eval ac_cv_prog_make_${ac_make}_set=no | 
|---|
| 872 | fi | 
|---|
| 873 | rm -f conftestmake | 
|---|
| 874 | fi | 
|---|
| 875 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | 
|---|
| 876 | echo "$ac_t""yes" 1>&6 | 
|---|
| 877 | SET_MAKE= | 
|---|
| 878 | else | 
|---|
| 879 | echo "$ac_t""no" 1>&6 | 
|---|
| 880 | SET_MAKE="MAKE=${MAKE-make}" | 
|---|
| 881 | fi | 
|---|
| 882 |  | 
|---|
| 883 |  | 
|---|
| 884 | PACKAGE=libmng | 
|---|
| 885 |  | 
|---|
| 886 | VERSION=1.0.4 | 
|---|
| 887 |  | 
|---|
| 888 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then | 
|---|
| 889 | { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } | 
|---|
| 890 | fi | 
|---|
| 891 | cat >> confdefs.h <<EOF | 
|---|
| 892 | #define PACKAGE "$PACKAGE" | 
|---|
| 893 | EOF | 
|---|
| 894 |  | 
|---|
| 895 | cat >> confdefs.h <<EOF | 
|---|
| 896 | #define VERSION "$VERSION" | 
|---|
| 897 | EOF | 
|---|
| 898 |  | 
|---|
| 899 |  | 
|---|
| 900 |  | 
|---|
| 901 | missing_dir=`cd $ac_aux_dir && pwd` | 
|---|
| 902 | echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 | 
|---|
| 903 | echo "configure:904: checking for working aclocal" >&5 | 
|---|
| 904 | # Run test in a subshell; some versions of sh will print an error if | 
|---|
| 905 | # an executable is not found, even if stderr is redirected. | 
|---|
| 906 | # Redirect stdin to placate older versions of autoconf.  Sigh. | 
|---|
| 907 | if (aclocal --version) < /dev/null > /dev/null 2>&1; then | 
|---|
| 908 | ACLOCAL=aclocal | 
|---|
| 909 | echo "$ac_t""found" 1>&6 | 
|---|
| 910 | else | 
|---|
| 911 | ACLOCAL="$missing_dir/missing aclocal" | 
|---|
| 912 | echo "$ac_t""missing" 1>&6 | 
|---|
| 913 | fi | 
|---|
| 914 |  | 
|---|
| 915 | echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 | 
|---|
| 916 | echo "configure:917: checking for working autoconf" >&5 | 
|---|
| 917 | # Run test in a subshell; some versions of sh will print an error if | 
|---|
| 918 | # an executable is not found, even if stderr is redirected. | 
|---|
| 919 | # Redirect stdin to placate older versions of autoconf.  Sigh. | 
|---|
| 920 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then | 
|---|
| 921 | AUTOCONF=autoconf | 
|---|
| 922 | echo "$ac_t""found" 1>&6 | 
|---|
| 923 | else | 
|---|
| 924 | AUTOCONF="$missing_dir/missing autoconf" | 
|---|
| 925 | echo "$ac_t""missing" 1>&6 | 
|---|
| 926 | fi | 
|---|
| 927 |  | 
|---|
| 928 | echo $ac_n "checking for working automake""... $ac_c" 1>&6 | 
|---|
| 929 | echo "configure:930: checking for working automake" >&5 | 
|---|
| 930 | # Run test in a subshell; some versions of sh will print an error if | 
|---|
| 931 | # an executable is not found, even if stderr is redirected. | 
|---|
| 932 | # Redirect stdin to placate older versions of autoconf.  Sigh. | 
|---|
| 933 | if (automake --version) < /dev/null > /dev/null 2>&1; then | 
|---|
| 934 | AUTOMAKE=automake | 
|---|
| 935 | echo "$ac_t""found" 1>&6 | 
|---|
| 936 | else | 
|---|
| 937 | AUTOMAKE="$missing_dir/missing automake" | 
|---|
| 938 | echo "$ac_t""missing" 1>&6 | 
|---|
| 939 | fi | 
|---|
| 940 |  | 
|---|
| 941 | echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 | 
|---|
| 942 | echo "configure:943: checking for working autoheader" >&5 | 
|---|
| 943 | # Run test in a subshell; some versions of sh will print an error if | 
|---|
| 944 | # an executable is not found, even if stderr is redirected. | 
|---|
| 945 | # Redirect stdin to placate older versions of autoconf.  Sigh. | 
|---|
| 946 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then | 
|---|
| 947 | AUTOHEADER=autoheader | 
|---|
| 948 | echo "$ac_t""found" 1>&6 | 
|---|
| 949 | else | 
|---|
| 950 | AUTOHEADER="$missing_dir/missing autoheader" | 
|---|
| 951 | echo "$ac_t""missing" 1>&6 | 
|---|
| 952 | fi | 
|---|
| 953 |  | 
|---|
| 954 | echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 | 
|---|
| 955 | echo "configure:956: checking for working makeinfo" >&5 | 
|---|
| 956 | # Run test in a subshell; some versions of sh will print an error if | 
|---|
| 957 | # an executable is not found, even if stderr is redirected. | 
|---|
| 958 | # Redirect stdin to placate older versions of autoconf.  Sigh. | 
|---|
| 959 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then | 
|---|
| 960 | MAKEINFO=makeinfo | 
|---|
| 961 | echo "$ac_t""found" 1>&6 | 
|---|
| 962 | else | 
|---|
| 963 | MAKEINFO="$missing_dir/missing makeinfo" | 
|---|
| 964 | echo "$ac_t""missing" 1>&6 | 
|---|
| 965 | fi | 
|---|
| 966 |  | 
|---|
| 967 |  | 
|---|
| 968 |  | 
|---|
| 969 |  | 
|---|
| 970 |  | 
|---|
| 971 |  | 
|---|
| 972 | # Extract the first word of "gcc", so it can be a program name with args. | 
|---|
| 973 | set dummy gcc; ac_word=$2 | 
|---|
| 974 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
|---|
| 975 | echo "configure:976: checking for $ac_word" >&5 | 
|---|
| 976 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | 
|---|
| 977 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 978 | else | 
|---|
| 979 | if test -n "$CC"; then | 
|---|
| 980 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|---|
| 981 | else | 
|---|
| 982 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":" | 
|---|
| 983 | ac_dummy="$PATH" | 
|---|
| 984 | for ac_dir in $ac_dummy; do | 
|---|
| 985 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 986 | if test -f $ac_dir/$ac_word; then | 
|---|
| 987 | ac_cv_prog_CC="gcc" | 
|---|
| 988 | break | 
|---|
| 989 | fi | 
|---|
| 990 | done | 
|---|
| 991 | IFS="$ac_save_ifs" | 
|---|
| 992 | fi | 
|---|
| 993 | fi | 
|---|
| 994 | CC="$ac_cv_prog_CC" | 
|---|
| 995 | if test -n "$CC"; then | 
|---|
| 996 | echo "$ac_t""$CC" 1>&6 | 
|---|
| 997 | else | 
|---|
| 998 | echo "$ac_t""no" 1>&6 | 
|---|
| 999 | fi | 
|---|
| 1000 |  | 
|---|
| 1001 | if test -z "$CC"; then | 
|---|
| 1002 | # Extract the first word of "cc", so it can be a program name with args. | 
|---|
| 1003 | set dummy cc; ac_word=$2 | 
|---|
| 1004 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
|---|
| 1005 | echo "configure:1006: checking for $ac_word" >&5 | 
|---|
| 1006 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | 
|---|
| 1007 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 1008 | else | 
|---|
| 1009 | if test -n "$CC"; then | 
|---|
| 1010 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|---|
| 1011 | else | 
|---|
| 1012 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":" | 
|---|
| 1013 | ac_prog_rejected=no | 
|---|
| 1014 | ac_dummy="$PATH" | 
|---|
| 1015 | for ac_dir in $ac_dummy; do | 
|---|
| 1016 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 1017 | if test -f $ac_dir/$ac_word; then | 
|---|
| 1018 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | 
|---|
| 1019 | ac_prog_rejected=yes | 
|---|
| 1020 | continue | 
|---|
| 1021 | fi | 
|---|
| 1022 | ac_cv_prog_CC="cc" | 
|---|
| 1023 | break | 
|---|
| 1024 | fi | 
|---|
| 1025 | done | 
|---|
| 1026 | IFS="$ac_save_ifs" | 
|---|
| 1027 | if test $ac_prog_rejected = yes; then | 
|---|
| 1028 | # We found a bogon in the path, so make sure we never use it. | 
|---|
| 1029 | set dummy $ac_cv_prog_CC | 
|---|
| 1030 | shift | 
|---|
| 1031 | if test $# -gt 0; then | 
|---|
| 1032 | # We chose a different compiler from the bogus one. | 
|---|
| 1033 | # However, it has the same basename, so the bogon will be chosen | 
|---|
| 1034 | # first if we set CC to just the basename; use the full file name. | 
|---|
| 1035 | shift | 
|---|
| 1036 | set dummy "$ac_dir/$ac_word" "$@" | 
|---|
| 1037 | shift | 
|---|
| 1038 | ac_cv_prog_CC="$@" | 
|---|
| 1039 | fi | 
|---|
| 1040 | fi | 
|---|
| 1041 | fi | 
|---|
| 1042 | fi | 
|---|
| 1043 | CC="$ac_cv_prog_CC" | 
|---|
| 1044 | if test -n "$CC"; then | 
|---|
| 1045 | echo "$ac_t""$CC" 1>&6 | 
|---|
| 1046 | else | 
|---|
| 1047 | echo "$ac_t""no" 1>&6 | 
|---|
| 1048 | fi | 
|---|
| 1049 |  | 
|---|
| 1050 | if test -z "$CC"; then | 
|---|
| 1051 | case "`uname -s`" in | 
|---|
| 1052 | *win32* | *WIN32*) | 
|---|
| 1053 | # Extract the first word of "cl", so it can be a program name with args. | 
|---|
| 1054 | set dummy cl; ac_word=$2 | 
|---|
| 1055 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
|---|
| 1056 | echo "configure:1057: checking for $ac_word" >&5 | 
|---|
| 1057 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | 
|---|
| 1058 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 1059 | else | 
|---|
| 1060 | if test -n "$CC"; then | 
|---|
| 1061 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|---|
| 1062 | else | 
|---|
| 1063 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":" | 
|---|
| 1064 | ac_dummy="$PATH" | 
|---|
| 1065 | for ac_dir in $ac_dummy; do | 
|---|
| 1066 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 1067 | if test -f $ac_dir/$ac_word; then | 
|---|
| 1068 | ac_cv_prog_CC="cl" | 
|---|
| 1069 | break | 
|---|
| 1070 | fi | 
|---|
| 1071 | done | 
|---|
| 1072 | IFS="$ac_save_ifs" | 
|---|
| 1073 | fi | 
|---|
| 1074 | fi | 
|---|
| 1075 | CC="$ac_cv_prog_CC" | 
|---|
| 1076 | if test -n "$CC"; then | 
|---|
| 1077 | echo "$ac_t""$CC" 1>&6 | 
|---|
| 1078 | else | 
|---|
| 1079 | echo "$ac_t""no" 1>&6 | 
|---|
| 1080 | fi | 
|---|
| 1081 | ;; | 
|---|
| 1082 | esac | 
|---|
| 1083 | fi | 
|---|
| 1084 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | 
|---|
| 1085 | fi | 
|---|
| 1086 |  | 
|---|
| 1087 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | 
|---|
| 1088 | echo "configure:1089: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 | 
|---|
| 1089 |  | 
|---|
| 1090 | ac_ext=c | 
|---|
| 1091 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | 
|---|
| 1092 | ac_cpp='$CPP $CPPFLAGS' | 
|---|
| 1093 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | 
|---|
| 1094 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | 
|---|
| 1095 | cross_compiling=$ac_cv_prog_cc_cross | 
|---|
| 1096 |  | 
|---|
| 1097 | cat > conftest.$ac_ext << EOF | 
|---|
| 1098 |  | 
|---|
| 1099 | #line 1100 "configure" | 
|---|
| 1100 | #include "confdefs.h" | 
|---|
| 1101 |  | 
|---|
| 1102 | main(){return(0);} | 
|---|
| 1103 | EOF | 
|---|
| 1104 | if { (eval echo configure:1105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 1105 | ac_cv_prog_cc_works=yes | 
|---|
| 1106 | # If we can't run a trivial program, we are probably using a cross compiler. | 
|---|
| 1107 | if (./conftest; exit) 2>/dev/null; then | 
|---|
| 1108 | ac_cv_prog_cc_cross=no | 
|---|
| 1109 | else | 
|---|
| 1110 | ac_cv_prog_cc_cross=yes | 
|---|
| 1111 | fi | 
|---|
| 1112 | else | 
|---|
| 1113 | echo "configure: failed program was:" >&5 | 
|---|
| 1114 | cat conftest.$ac_ext >&5 | 
|---|
| 1115 | ac_cv_prog_cc_works=no | 
|---|
| 1116 | fi | 
|---|
| 1117 | rm -fr conftest* | 
|---|
| 1118 | ac_ext=c | 
|---|
| 1119 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | 
|---|
| 1120 | ac_cpp='$CPP $CPPFLAGS' | 
|---|
| 1121 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | 
|---|
| 1122 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | 
|---|
| 1123 | cross_compiling=$ac_cv_prog_cc_cross | 
|---|
| 1124 |  | 
|---|
| 1125 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | 
|---|
| 1126 | if test $ac_cv_prog_cc_works = no; then | 
|---|
| 1127 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | 
|---|
| 1128 | fi | 
|---|
| 1129 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | 
|---|
| 1130 | echo "configure:1131: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 | 
|---|
| 1131 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 | 
|---|
| 1132 | cross_compiling=$ac_cv_prog_cc_cross | 
|---|
| 1133 |  | 
|---|
| 1134 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | 
|---|
| 1135 | echo "configure:1136: checking whether we are using GNU C" >&5 | 
|---|
| 1136 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then | 
|---|
| 1137 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 1138 | else | 
|---|
| 1139 | cat > conftest.c <<EOF | 
|---|
| 1140 | #ifdef __GNUC__ | 
|---|
| 1141 | yes; | 
|---|
| 1142 | #endif | 
|---|
| 1143 | EOF | 
|---|
| 1144 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1145: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then | 
|---|
| 1145 | ac_cv_prog_gcc=yes | 
|---|
| 1146 | else | 
|---|
| 1147 | ac_cv_prog_gcc=no | 
|---|
| 1148 | fi | 
|---|
| 1149 | fi | 
|---|
| 1150 |  | 
|---|
| 1151 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | 
|---|
| 1152 |  | 
|---|
| 1153 | if test $ac_cv_prog_gcc = yes; then | 
|---|
| 1154 | GCC=yes | 
|---|
| 1155 | else | 
|---|
| 1156 | GCC= | 
|---|
| 1157 | fi | 
|---|
| 1158 |  | 
|---|
| 1159 | ac_test_CFLAGS="${CFLAGS+set}" | 
|---|
| 1160 | ac_save_CFLAGS="$CFLAGS" | 
|---|
| 1161 | CFLAGS= | 
|---|
| 1162 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | 
|---|
| 1163 | echo "configure:1164: checking whether ${CC-cc} accepts -g" >&5 | 
|---|
| 1164 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then | 
|---|
| 1165 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 1166 | else | 
|---|
| 1167 | echo 'void f(){}' > conftest.c | 
|---|
| 1168 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | 
|---|
| 1169 | ac_cv_prog_cc_g=yes | 
|---|
| 1170 | else | 
|---|
| 1171 | ac_cv_prog_cc_g=no | 
|---|
| 1172 | fi | 
|---|
| 1173 | rm -f conftest* | 
|---|
| 1174 |  | 
|---|
| 1175 | fi | 
|---|
| 1176 |  | 
|---|
| 1177 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | 
|---|
| 1178 | if test "$ac_test_CFLAGS" = set; then | 
|---|
| 1179 | CFLAGS="$ac_save_CFLAGS" | 
|---|
| 1180 | elif test $ac_cv_prog_cc_g = yes; then | 
|---|
| 1181 | if test "$GCC" = yes; then | 
|---|
| 1182 | CFLAGS="-g -O2" | 
|---|
| 1183 | else | 
|---|
| 1184 | CFLAGS="-g" | 
|---|
| 1185 | fi | 
|---|
| 1186 | else | 
|---|
| 1187 | if test "$GCC" = yes; then | 
|---|
| 1188 | CFLAGS="-O2" | 
|---|
| 1189 | else | 
|---|
| 1190 | CFLAGS= | 
|---|
| 1191 | fi | 
|---|
| 1192 | fi | 
|---|
| 1193 |  | 
|---|
| 1194 |  | 
|---|
| 1195 | echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6 | 
|---|
| 1196 | echo "configure:1197: checking for strerror in -lcposix" >&5 | 
|---|
| 1197 | ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'` | 
|---|
| 1198 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 
|---|
| 1199 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 1200 | else | 
|---|
| 1201 | ac_save_LIBS="$LIBS" | 
|---|
| 1202 | LIBS="-lcposix  $LIBS" | 
|---|
| 1203 | cat > conftest.$ac_ext <<EOF | 
|---|
| 1204 | #line 1205 "configure" | 
|---|
| 1205 | #include "confdefs.h" | 
|---|
| 1206 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|---|
| 1207 | /* We use char because int might match the return type of a gcc2 | 
|---|
| 1208 | builtin and then its argument prototype would still apply.  */ | 
|---|
| 1209 | char strerror(); | 
|---|
| 1210 |  | 
|---|
| 1211 | int main() { | 
|---|
| 1212 | strerror() | 
|---|
| 1213 | ; return 0; } | 
|---|
| 1214 | EOF | 
|---|
| 1215 | if { (eval echo configure:1216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 1216 | rm -rf conftest* | 
|---|
| 1217 | eval "ac_cv_lib_$ac_lib_var=yes" | 
|---|
| 1218 | else | 
|---|
| 1219 | echo "configure: failed program was:" >&5 | 
|---|
| 1220 | cat conftest.$ac_ext >&5 | 
|---|
| 1221 | rm -rf conftest* | 
|---|
| 1222 | eval "ac_cv_lib_$ac_lib_var=no" | 
|---|
| 1223 | fi | 
|---|
| 1224 | rm -f conftest* | 
|---|
| 1225 | LIBS="$ac_save_LIBS" | 
|---|
| 1226 |  | 
|---|
| 1227 | fi | 
|---|
| 1228 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
|---|
| 1229 | echo "$ac_t""yes" 1>&6 | 
|---|
| 1230 | LIBS="$LIBS -lcposix" | 
|---|
| 1231 | else | 
|---|
| 1232 | echo "$ac_t""no" 1>&6 | 
|---|
| 1233 | fi | 
|---|
| 1234 |  | 
|---|
| 1235 |  | 
|---|
| 1236 |  | 
|---|
| 1237 |  | 
|---|
| 1238 |  | 
|---|
| 1239 |  | 
|---|
| 1240 | echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6 | 
|---|
| 1241 | echo "configure:1242: checking for ${CC-cc} option to accept ANSI C" >&5 | 
|---|
| 1242 | if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then | 
|---|
| 1243 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 1244 | else | 
|---|
| 1245 | am_cv_prog_cc_stdc=no | 
|---|
| 1246 | ac_save_CC="$CC" | 
|---|
| 1247 | # Don't try gcc -ansi; that turns off useful extensions and | 
|---|
| 1248 | # breaks some systems' header files. | 
|---|
| 1249 | # AIX                   -qlanglvl=ansi | 
|---|
| 1250 | # Ultrix and OSF/1      -std1 | 
|---|
| 1251 | # HP-UX                 -Aa -D_HPUX_SOURCE | 
|---|
| 1252 | # SVR4                  -Xc -D__EXTENSIONS__ | 
|---|
| 1253 | for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | 
|---|
| 1254 | do | 
|---|
| 1255 | CC="$ac_save_CC $ac_arg" | 
|---|
| 1256 | cat > conftest.$ac_ext <<EOF | 
|---|
| 1257 | #line 1258 "configure" | 
|---|
| 1258 | #include "confdefs.h" | 
|---|
| 1259 | #include <stdarg.h> | 
|---|
| 1260 | #include <stdio.h> | 
|---|
| 1261 | #include <sys/types.h> | 
|---|
| 1262 | #include <sys/stat.h> | 
|---|
| 1263 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */ | 
|---|
| 1264 | struct buf { int x; }; | 
|---|
| 1265 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | 
|---|
| 1266 | static char *e (p, i) | 
|---|
| 1267 | char **p; | 
|---|
| 1268 | int i; | 
|---|
| 1269 | { | 
|---|
| 1270 | return p[i]; | 
|---|
| 1271 | } | 
|---|
| 1272 | static char *f (char * (*g) (char **, int), char **p, ...) | 
|---|
| 1273 | { | 
|---|
| 1274 | char *s; | 
|---|
| 1275 | va_list v; | 
|---|
| 1276 | va_start (v,p); | 
|---|
| 1277 | s = g (p, va_arg (v,int)); | 
|---|
| 1278 | va_end (v); | 
|---|
| 1279 | return s; | 
|---|
| 1280 | } | 
|---|
| 1281 | int test (int i, double x); | 
|---|
| 1282 | struct s1 {int (*f) (int a);}; | 
|---|
| 1283 | struct s2 {int (*f) (double a);}; | 
|---|
| 1284 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | 
|---|
| 1285 | int argc; | 
|---|
| 1286 | char **argv; | 
|---|
| 1287 |  | 
|---|
| 1288 | int main() { | 
|---|
| 1289 |  | 
|---|
| 1290 | return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1]; | 
|---|
| 1291 |  | 
|---|
| 1292 | ; return 0; } | 
|---|
| 1293 | EOF | 
|---|
| 1294 | if { (eval echo configure:1295: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
|---|
| 1295 | rm -rf conftest* | 
|---|
| 1296 | am_cv_prog_cc_stdc="$ac_arg"; break | 
|---|
| 1297 | else | 
|---|
| 1298 | echo "configure: failed program was:" >&5 | 
|---|
| 1299 | cat conftest.$ac_ext >&5 | 
|---|
| 1300 | fi | 
|---|
| 1301 | rm -f conftest* | 
|---|
| 1302 | done | 
|---|
| 1303 | CC="$ac_save_CC" | 
|---|
| 1304 |  | 
|---|
| 1305 | fi | 
|---|
| 1306 |  | 
|---|
| 1307 | if test -z "$am_cv_prog_cc_stdc"; then | 
|---|
| 1308 | echo "$ac_t""none needed" 1>&6 | 
|---|
| 1309 | else | 
|---|
| 1310 | echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6 | 
|---|
| 1311 | fi | 
|---|
| 1312 | case "x$am_cv_prog_cc_stdc" in | 
|---|
| 1313 | x|xno) ;; | 
|---|
| 1314 | *) CC="$CC $am_cv_prog_cc_stdc" ;; | 
|---|
| 1315 | esac | 
|---|
| 1316 |  | 
|---|
| 1317 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | 
|---|
| 1318 | echo "configure:1319: checking how to run the C preprocessor" >&5 | 
|---|
| 1319 | # On Suns, sometimes $CPP names a directory. | 
|---|
| 1320 | if test -n "$CPP" && test -d "$CPP"; then | 
|---|
| 1321 | CPP= | 
|---|
| 1322 | fi | 
|---|
| 1323 | if test -z "$CPP"; then | 
|---|
| 1324 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | 
|---|
| 1325 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 1326 | else | 
|---|
| 1327 | # This must be in double quotes, not single quotes, because CPP may get | 
|---|
| 1328 | # substituted into the Makefile and "${CC-cc}" will confuse make. | 
|---|
| 1329 | CPP="${CC-cc} -E" | 
|---|
| 1330 | # On the NeXT, cc -E runs the code through the compiler's parser, | 
|---|
| 1331 | # not just through cpp. | 
|---|
| 1332 | cat > conftest.$ac_ext <<EOF | 
|---|
| 1333 | #line 1334 "configure" | 
|---|
| 1334 | #include "confdefs.h" | 
|---|
| 1335 | #include <assert.h> | 
|---|
| 1336 | Syntax Error | 
|---|
| 1337 | EOF | 
|---|
| 1338 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
|---|
| 1339 | { (eval echo configure:1340: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
|---|
| 1340 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
|---|
| 1341 | if test -z "$ac_err"; then | 
|---|
| 1342 | : | 
|---|
| 1343 | else | 
|---|
| 1344 | echo "$ac_err" >&5 | 
|---|
| 1345 | echo "configure: failed program was:" >&5 | 
|---|
| 1346 | cat conftest.$ac_ext >&5 | 
|---|
| 1347 | rm -rf conftest* | 
|---|
| 1348 | CPP="${CC-cc} -E -traditional-cpp" | 
|---|
| 1349 | cat > conftest.$ac_ext <<EOF | 
|---|
| 1350 | #line 1351 "configure" | 
|---|
| 1351 | #include "confdefs.h" | 
|---|
| 1352 | #include <assert.h> | 
|---|
| 1353 | Syntax Error | 
|---|
| 1354 | EOF | 
|---|
| 1355 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
|---|
| 1356 | { (eval echo configure:1357: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
|---|
| 1357 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
|---|
| 1358 | if test -z "$ac_err"; then | 
|---|
| 1359 | : | 
|---|
| 1360 | else | 
|---|
| 1361 | echo "$ac_err" >&5 | 
|---|
| 1362 | echo "configure: failed program was:" >&5 | 
|---|
| 1363 | cat conftest.$ac_ext >&5 | 
|---|
| 1364 | rm -rf conftest* | 
|---|
| 1365 | CPP="${CC-cc} -nologo -E" | 
|---|
| 1366 | cat > conftest.$ac_ext <<EOF | 
|---|
| 1367 | #line 1368 "configure" | 
|---|
| 1368 | #include "confdefs.h" | 
|---|
| 1369 | #include <assert.h> | 
|---|
| 1370 | Syntax Error | 
|---|
| 1371 | EOF | 
|---|
| 1372 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
|---|
| 1373 | { (eval echo configure:1374: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
|---|
| 1374 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
|---|
| 1375 | if test -z "$ac_err"; then | 
|---|
| 1376 | : | 
|---|
| 1377 | else | 
|---|
| 1378 | echo "$ac_err" >&5 | 
|---|
| 1379 | echo "configure: failed program was:" >&5 | 
|---|
| 1380 | cat conftest.$ac_ext >&5 | 
|---|
| 1381 | rm -rf conftest* | 
|---|
| 1382 | CPP=/lib/cpp | 
|---|
| 1383 | fi | 
|---|
| 1384 | rm -f conftest* | 
|---|
| 1385 | fi | 
|---|
| 1386 | rm -f conftest* | 
|---|
| 1387 | fi | 
|---|
| 1388 | rm -f conftest* | 
|---|
| 1389 | ac_cv_prog_CPP="$CPP" | 
|---|
| 1390 | fi | 
|---|
| 1391 | CPP="$ac_cv_prog_CPP" | 
|---|
| 1392 | else | 
|---|
| 1393 | ac_cv_prog_CPP="$CPP" | 
|---|
| 1394 | fi | 
|---|
| 1395 | echo "$ac_t""$CPP" 1>&6 | 
|---|
| 1396 |  | 
|---|
| 1397 |  | 
|---|
| 1398 |  | 
|---|
| 1399 | echo $ac_n "checking for function prototypes""... $ac_c" 1>&6 | 
|---|
| 1400 | echo "configure:1401: checking for function prototypes" >&5 | 
|---|
| 1401 | if test "$am_cv_prog_cc_stdc" != no; then | 
|---|
| 1402 | echo "$ac_t""yes" 1>&6 | 
|---|
| 1403 | cat >> confdefs.h <<\EOF | 
|---|
| 1404 | #define PROTOTYPES 1 | 
|---|
| 1405 | EOF | 
|---|
| 1406 |  | 
|---|
| 1407 | U= ANSI2KNR= | 
|---|
| 1408 | else | 
|---|
| 1409 | echo "$ac_t""no" 1>&6 | 
|---|
| 1410 | U=_ ANSI2KNR=./ansi2knr | 
|---|
| 1411 | # Ensure some checks needed by ansi2knr itself. | 
|---|
| 1412 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | 
|---|
| 1413 | echo "configure:1414: checking for ANSI C header files" >&5 | 
|---|
| 1414 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then | 
|---|
| 1415 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 1416 | else | 
|---|
| 1417 | cat > conftest.$ac_ext <<EOF | 
|---|
| 1418 | #line 1419 "configure" | 
|---|
| 1419 | #include "confdefs.h" | 
|---|
| 1420 | #include <stdlib.h> | 
|---|
| 1421 | #include <stdarg.h> | 
|---|
| 1422 | #include <string.h> | 
|---|
| 1423 | #include <float.h> | 
|---|
| 1424 | EOF | 
|---|
| 1425 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
|---|
| 1426 | { (eval echo configure:1427: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
|---|
| 1427 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
|---|
| 1428 | if test -z "$ac_err"; then | 
|---|
| 1429 | rm -rf conftest* | 
|---|
| 1430 | ac_cv_header_stdc=yes | 
|---|
| 1431 | else | 
|---|
| 1432 | echo "$ac_err" >&5 | 
|---|
| 1433 | echo "configure: failed program was:" >&5 | 
|---|
| 1434 | cat conftest.$ac_ext >&5 | 
|---|
| 1435 | rm -rf conftest* | 
|---|
| 1436 | ac_cv_header_stdc=no | 
|---|
| 1437 | fi | 
|---|
| 1438 | rm -f conftest* | 
|---|
| 1439 |  | 
|---|
| 1440 | if test $ac_cv_header_stdc = yes; then | 
|---|
| 1441 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
|---|
| 1442 | cat > conftest.$ac_ext <<EOF | 
|---|
| 1443 | #line 1444 "configure" | 
|---|
| 1444 | #include "confdefs.h" | 
|---|
| 1445 | #include <string.h> | 
|---|
| 1446 | EOF | 
|---|
| 1447 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
|---|
| 1448 | egrep "memchr" >/dev/null 2>&1; then | 
|---|
| 1449 | : | 
|---|
| 1450 | else | 
|---|
| 1451 | rm -rf conftest* | 
|---|
| 1452 | ac_cv_header_stdc=no | 
|---|
| 1453 | fi | 
|---|
| 1454 | rm -f conftest* | 
|---|
| 1455 |  | 
|---|
| 1456 | fi | 
|---|
| 1457 |  | 
|---|
| 1458 | if test $ac_cv_header_stdc = yes; then | 
|---|
| 1459 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 
|---|
| 1460 | cat > conftest.$ac_ext <<EOF | 
|---|
| 1461 | #line 1462 "configure" | 
|---|
| 1462 | #include "confdefs.h" | 
|---|
| 1463 | #include <stdlib.h> | 
|---|
| 1464 | EOF | 
|---|
| 1465 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
|---|
| 1466 | egrep "free" >/dev/null 2>&1; then | 
|---|
| 1467 | : | 
|---|
| 1468 | else | 
|---|
| 1469 | rm -rf conftest* | 
|---|
| 1470 | ac_cv_header_stdc=no | 
|---|
| 1471 | fi | 
|---|
| 1472 | rm -f conftest* | 
|---|
| 1473 |  | 
|---|
| 1474 | fi | 
|---|
| 1475 |  | 
|---|
| 1476 | if test $ac_cv_header_stdc = yes; then | 
|---|
| 1477 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 
|---|
| 1478 | if test "$cross_compiling" = yes; then | 
|---|
| 1479 | : | 
|---|
| 1480 | else | 
|---|
| 1481 | cat > conftest.$ac_ext <<EOF | 
|---|
| 1482 | #line 1483 "configure" | 
|---|
| 1483 | #include "confdefs.h" | 
|---|
| 1484 | #include <ctype.h> | 
|---|
| 1485 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
|---|
| 1486 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
|---|
| 1487 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
|---|
| 1488 | int main () { int i; for (i = 0; i < 256; i++) | 
|---|
| 1489 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | 
|---|
| 1490 | exit (0); } | 
|---|
| 1491 |  | 
|---|
| 1492 | EOF | 
|---|
| 1493 | if { (eval echo configure:1494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 
|---|
| 1494 | then | 
|---|
| 1495 | : | 
|---|
| 1496 | else | 
|---|
| 1497 | echo "configure: failed program was:" >&5 | 
|---|
| 1498 | cat conftest.$ac_ext >&5 | 
|---|
| 1499 | rm -fr conftest* | 
|---|
| 1500 | ac_cv_header_stdc=no | 
|---|
| 1501 | fi | 
|---|
| 1502 | rm -fr conftest* | 
|---|
| 1503 | fi | 
|---|
| 1504 |  | 
|---|
| 1505 | fi | 
|---|
| 1506 | fi | 
|---|
| 1507 |  | 
|---|
| 1508 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | 
|---|
| 1509 | if test $ac_cv_header_stdc = yes; then | 
|---|
| 1510 | cat >> confdefs.h <<\EOF | 
|---|
| 1511 | #define STDC_HEADERS 1 | 
|---|
| 1512 | EOF | 
|---|
| 1513 |  | 
|---|
| 1514 | fi | 
|---|
| 1515 |  | 
|---|
| 1516 | for ac_hdr in string.h | 
|---|
| 1517 | do | 
|---|
| 1518 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 
|---|
| 1519 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 
|---|
| 1520 | echo "configure:1521: checking for $ac_hdr" >&5 | 
|---|
| 1521 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 
|---|
| 1522 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 1523 | else | 
|---|
| 1524 | cat > conftest.$ac_ext <<EOF | 
|---|
| 1525 | #line 1526 "configure" | 
|---|
| 1526 | #include "confdefs.h" | 
|---|
| 1527 | #include <$ac_hdr> | 
|---|
| 1528 | EOF | 
|---|
| 1529 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
|---|
| 1530 | { (eval echo configure:1531: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
|---|
| 1531 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
|---|
| 1532 | if test -z "$ac_err"; then | 
|---|
| 1533 | rm -rf conftest* | 
|---|
| 1534 | eval "ac_cv_header_$ac_safe=yes" | 
|---|
| 1535 | else | 
|---|
| 1536 | echo "$ac_err" >&5 | 
|---|
| 1537 | echo "configure: failed program was:" >&5 | 
|---|
| 1538 | cat conftest.$ac_ext >&5 | 
|---|
| 1539 | rm -rf conftest* | 
|---|
| 1540 | eval "ac_cv_header_$ac_safe=no" | 
|---|
| 1541 | fi | 
|---|
| 1542 | rm -f conftest* | 
|---|
| 1543 | fi | 
|---|
| 1544 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 
|---|
| 1545 | echo "$ac_t""yes" 1>&6 | 
|---|
| 1546 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | 
|---|
| 1547 | cat >> confdefs.h <<EOF | 
|---|
| 1548 | #define $ac_tr_hdr 1 | 
|---|
| 1549 | EOF | 
|---|
| 1550 |  | 
|---|
| 1551 | else | 
|---|
| 1552 | echo "$ac_t""no" 1>&6 | 
|---|
| 1553 | fi | 
|---|
| 1554 | done | 
|---|
| 1555 |  | 
|---|
| 1556 | fi | 
|---|
| 1557 |  | 
|---|
| 1558 | if test "x$U" != "x"; then | 
|---|
| 1559 | { echo "configure: error: Compiler not ANSI compliant" 1>&2; exit 1; } | 
|---|
| 1560 | fi | 
|---|
| 1561 | # Find the correct PATH separator.  Usually this is `:', but | 
|---|
| 1562 | # DJGPP uses `;' like DOS. | 
|---|
| 1563 | if test "X${PATH_SEPARATOR+set}" != Xset; then | 
|---|
| 1564 | UNAME=${UNAME-`uname 2>/dev/null`} | 
|---|
| 1565 | case X$UNAME in | 
|---|
| 1566 | *-DOS) lt_cv_sys_path_separator=';' ;; | 
|---|
| 1567 | *)     lt_cv_sys_path_separator=':' ;; | 
|---|
| 1568 | esac | 
|---|
| 1569 | PATH_SEPARATOR=$lt_cv_sys_path_separator | 
|---|
| 1570 | fi | 
|---|
| 1571 |  | 
|---|
| 1572 | echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 | 
|---|
| 1573 | echo "configure:1574: checking for Cygwin environment" >&5 | 
|---|
| 1574 | if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then | 
|---|
| 1575 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 1576 | else | 
|---|
| 1577 | cat > conftest.$ac_ext <<EOF | 
|---|
| 1578 | #line 1579 "configure" | 
|---|
| 1579 | #include "confdefs.h" | 
|---|
| 1580 |  | 
|---|
| 1581 | int main() { | 
|---|
| 1582 |  | 
|---|
| 1583 | #ifndef __CYGWIN__ | 
|---|
| 1584 | #define __CYGWIN__ __CYGWIN32__ | 
|---|
| 1585 | #endif | 
|---|
| 1586 | return __CYGWIN__; | 
|---|
| 1587 | ; return 0; } | 
|---|
| 1588 | EOF | 
|---|
| 1589 | if { (eval echo configure:1590: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
|---|
| 1590 | rm -rf conftest* | 
|---|
| 1591 | ac_cv_cygwin=yes | 
|---|
| 1592 | else | 
|---|
| 1593 | echo "configure: failed program was:" >&5 | 
|---|
| 1594 | cat conftest.$ac_ext >&5 | 
|---|
| 1595 | rm -rf conftest* | 
|---|
| 1596 | ac_cv_cygwin=no | 
|---|
| 1597 | fi | 
|---|
| 1598 | rm -f conftest* | 
|---|
| 1599 | rm -f conftest* | 
|---|
| 1600 | fi | 
|---|
| 1601 |  | 
|---|
| 1602 | echo "$ac_t""$ac_cv_cygwin" 1>&6 | 
|---|
| 1603 | CYGWIN= | 
|---|
| 1604 | test "$ac_cv_cygwin" = yes && CYGWIN=yes | 
|---|
| 1605 | echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 | 
|---|
| 1606 | echo "configure:1607: checking for mingw32 environment" >&5 | 
|---|
| 1607 | if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then | 
|---|
| 1608 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 1609 | else | 
|---|
| 1610 | cat > conftest.$ac_ext <<EOF | 
|---|
| 1611 | #line 1612 "configure" | 
|---|
| 1612 | #include "confdefs.h" | 
|---|
| 1613 |  | 
|---|
| 1614 | int main() { | 
|---|
| 1615 | return __MINGW32__; | 
|---|
| 1616 | ; return 0; } | 
|---|
| 1617 | EOF | 
|---|
| 1618 | if { (eval echo configure:1619: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
|---|
| 1619 | rm -rf conftest* | 
|---|
| 1620 | ac_cv_mingw32=yes | 
|---|
| 1621 | else | 
|---|
| 1622 | echo "configure: failed program was:" >&5 | 
|---|
| 1623 | cat conftest.$ac_ext >&5 | 
|---|
| 1624 | rm -rf conftest* | 
|---|
| 1625 | ac_cv_mingw32=no | 
|---|
| 1626 | fi | 
|---|
| 1627 | rm -f conftest* | 
|---|
| 1628 | rm -f conftest* | 
|---|
| 1629 | fi | 
|---|
| 1630 |  | 
|---|
| 1631 | echo "$ac_t""$ac_cv_mingw32" 1>&6 | 
|---|
| 1632 | MINGW32= | 
|---|
| 1633 | test "$ac_cv_mingw32" = yes && MINGW32=yes | 
|---|
| 1634 | # Check whether --enable-shared or --disable-shared was given. | 
|---|
| 1635 | if test "${enable_shared+set}" = set; then | 
|---|
| 1636 | enableval="$enable_shared" | 
|---|
| 1637 | p=${PACKAGE-default} | 
|---|
| 1638 | case $enableval in | 
|---|
| 1639 | yes) enable_shared=yes ;; | 
|---|
| 1640 | no) enable_shared=no ;; | 
|---|
| 1641 | *) | 
|---|
| 1642 | enable_shared=no | 
|---|
| 1643 | # Look at the argument we got.  We use all the common list separators. | 
|---|
| 1644 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | 
|---|
| 1645 | for pkg in $enableval; do | 
|---|
| 1646 | if test "X$pkg" = "X$p"; then | 
|---|
| 1647 | enable_shared=yes | 
|---|
| 1648 | fi | 
|---|
| 1649 | done | 
|---|
| 1650 | IFS="$ac_save_ifs" | 
|---|
| 1651 | ;; | 
|---|
| 1652 | esac | 
|---|
| 1653 | else | 
|---|
| 1654 | enable_shared=yes | 
|---|
| 1655 | fi | 
|---|
| 1656 |  | 
|---|
| 1657 | # Check whether --enable-static or --disable-static was given. | 
|---|
| 1658 | if test "${enable_static+set}" = set; then | 
|---|
| 1659 | enableval="$enable_static" | 
|---|
| 1660 | p=${PACKAGE-default} | 
|---|
| 1661 | case $enableval in | 
|---|
| 1662 | yes) enable_static=yes ;; | 
|---|
| 1663 | no) enable_static=no ;; | 
|---|
| 1664 | *) | 
|---|
| 1665 | enable_static=no | 
|---|
| 1666 | # Look at the argument we got.  We use all the common list separators. | 
|---|
| 1667 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | 
|---|
| 1668 | for pkg in $enableval; do | 
|---|
| 1669 | if test "X$pkg" = "X$p"; then | 
|---|
| 1670 | enable_static=yes | 
|---|
| 1671 | fi | 
|---|
| 1672 | done | 
|---|
| 1673 | IFS="$ac_save_ifs" | 
|---|
| 1674 | ;; | 
|---|
| 1675 | esac | 
|---|
| 1676 | else | 
|---|
| 1677 | enable_static=yes | 
|---|
| 1678 | fi | 
|---|
| 1679 |  | 
|---|
| 1680 | # Check whether --enable-fast-install or --disable-fast-install was given. | 
|---|
| 1681 | if test "${enable_fast_install+set}" = set; then | 
|---|
| 1682 | enableval="$enable_fast_install" | 
|---|
| 1683 | p=${PACKAGE-default} | 
|---|
| 1684 | case $enableval in | 
|---|
| 1685 | yes) enable_fast_install=yes ;; | 
|---|
| 1686 | no) enable_fast_install=no ;; | 
|---|
| 1687 | *) | 
|---|
| 1688 | enable_fast_install=no | 
|---|
| 1689 | # Look at the argument we got.  We use all the common list separators. | 
|---|
| 1690 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | 
|---|
| 1691 | for pkg in $enableval; do | 
|---|
| 1692 | if test "X$pkg" = "X$p"; then | 
|---|
| 1693 | enable_fast_install=yes | 
|---|
| 1694 | fi | 
|---|
| 1695 | done | 
|---|
| 1696 | IFS="$ac_save_ifs" | 
|---|
| 1697 | ;; | 
|---|
| 1698 | esac | 
|---|
| 1699 | else | 
|---|
| 1700 | enable_fast_install=yes | 
|---|
| 1701 | fi | 
|---|
| 1702 |  | 
|---|
| 1703 |  | 
|---|
| 1704 | # Make sure we can run config.sub. | 
|---|
| 1705 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | 
|---|
| 1706 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | 
|---|
| 1707 | fi | 
|---|
| 1708 |  | 
|---|
| 1709 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | 
|---|
| 1710 | echo "configure:1711: checking host system type" >&5 | 
|---|
| 1711 |  | 
|---|
| 1712 | host_alias=$host | 
|---|
| 1713 | case "$host_alias" in | 
|---|
| 1714 | NONE) | 
|---|
| 1715 | case $nonopt in | 
|---|
| 1716 | NONE) | 
|---|
| 1717 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | 
|---|
| 1718 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | 
|---|
| 1719 | fi ;; | 
|---|
| 1720 | *) host_alias=$nonopt ;; | 
|---|
| 1721 | esac ;; | 
|---|
| 1722 | esac | 
|---|
| 1723 |  | 
|---|
| 1724 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | 
|---|
| 1725 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | 
|---|
| 1726 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | 
|---|
| 1727 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | 
|---|
| 1728 | echo "$ac_t""$host" 1>&6 | 
|---|
| 1729 |  | 
|---|
| 1730 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | 
|---|
| 1731 | echo "configure:1732: checking build system type" >&5 | 
|---|
| 1732 |  | 
|---|
| 1733 | build_alias=$build | 
|---|
| 1734 | case "$build_alias" in | 
|---|
| 1735 | NONE) | 
|---|
| 1736 | case $nonopt in | 
|---|
| 1737 | NONE) build_alias=$host_alias ;; | 
|---|
| 1738 | *) build_alias=$nonopt ;; | 
|---|
| 1739 | esac ;; | 
|---|
| 1740 | esac | 
|---|
| 1741 |  | 
|---|
| 1742 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | 
|---|
| 1743 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | 
|---|
| 1744 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | 
|---|
| 1745 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | 
|---|
| 1746 | echo "$ac_t""$build" 1>&6 | 
|---|
| 1747 |  | 
|---|
| 1748 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | 
|---|
| 1749 | if test "${with_gnu_ld+set}" = set; then | 
|---|
| 1750 | withval="$with_gnu_ld" | 
|---|
| 1751 | test "$withval" = no || with_gnu_ld=yes | 
|---|
| 1752 | else | 
|---|
| 1753 | with_gnu_ld=no | 
|---|
| 1754 | fi | 
|---|
| 1755 |  | 
|---|
| 1756 | ac_prog=ld | 
|---|
| 1757 | if test "$GCC" = yes; then | 
|---|
| 1758 | # Check if gcc -print-prog-name=ld gives a path. | 
|---|
| 1759 | echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 | 
|---|
| 1760 | echo "configure:1761: checking for ld used by GCC" >&5 | 
|---|
| 1761 | case $host in | 
|---|
| 1762 | *-*-mingw*) | 
|---|
| 1763 | # gcc leaves a trailing carriage return which upsets mingw | 
|---|
| 1764 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | 
|---|
| 1765 | *) | 
|---|
| 1766 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | 
|---|
| 1767 | esac | 
|---|
| 1768 | case $ac_prog in | 
|---|
| 1769 | # Accept absolute paths. | 
|---|
| 1770 | [\\/]* | [A-Za-z]:[\\/]*) | 
|---|
| 1771 | re_direlt='/[^/][^/]*/\.\./' | 
|---|
| 1772 | # Canonicalize the path of ld | 
|---|
| 1773 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | 
|---|
| 1774 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | 
|---|
| 1775 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | 
|---|
| 1776 | done | 
|---|
| 1777 | test -z "$LD" && LD="$ac_prog" | 
|---|
| 1778 | ;; | 
|---|
| 1779 | "") | 
|---|
| 1780 | # If it fails, then pretend we aren't using GCC. | 
|---|
| 1781 | ac_prog=ld | 
|---|
| 1782 | ;; | 
|---|
| 1783 | *) | 
|---|
| 1784 | # If it is relative, then search for the first ld in PATH. | 
|---|
| 1785 | with_gnu_ld=unknown | 
|---|
| 1786 | ;; | 
|---|
| 1787 | esac | 
|---|
| 1788 | elif test "$with_gnu_ld" = yes; then | 
|---|
| 1789 | echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 | 
|---|
| 1790 | echo "configure:1791: checking for GNU ld" >&5 | 
|---|
| 1791 | else | 
|---|
| 1792 | echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 | 
|---|
| 1793 | echo "configure:1794: checking for non-GNU ld" >&5 | 
|---|
| 1794 | fi | 
|---|
| 1795 | if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then | 
|---|
| 1796 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 1797 | else | 
|---|
| 1798 | if test -z "$LD"; then | 
|---|
| 1799 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 
|---|
| 1800 | for ac_dir in $PATH; do | 
|---|
| 1801 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 1802 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | 
|---|
| 1803 | lt_cv_path_LD="$ac_dir/$ac_prog" | 
|---|
| 1804 | # Check to see if the program is GNU ld.  I'd rather use --version, | 
|---|
| 1805 | # but apparently some GNU ld's only accept -v. | 
|---|
| 1806 | # Break only if it was the GNU/non-GNU ld that we prefer. | 
|---|
| 1807 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then | 
|---|
| 1808 | test "$with_gnu_ld" != no && break | 
|---|
| 1809 | else | 
|---|
| 1810 | test "$with_gnu_ld" != yes && break | 
|---|
| 1811 | fi | 
|---|
| 1812 | fi | 
|---|
| 1813 | done | 
|---|
| 1814 | IFS="$ac_save_ifs" | 
|---|
| 1815 | else | 
|---|
| 1816 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | 
|---|
| 1817 | fi | 
|---|
| 1818 | fi | 
|---|
| 1819 |  | 
|---|
| 1820 | LD="$lt_cv_path_LD" | 
|---|
| 1821 | if test -n "$LD"; then | 
|---|
| 1822 | echo "$ac_t""$LD" 1>&6 | 
|---|
| 1823 | else | 
|---|
| 1824 | echo "$ac_t""no" 1>&6 | 
|---|
| 1825 | fi | 
|---|
| 1826 | test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } | 
|---|
| 1827 | echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 | 
|---|
| 1828 | echo "configure:1829: checking if the linker ($LD) is GNU ld" >&5 | 
|---|
| 1829 | if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then | 
|---|
| 1830 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 1831 | else | 
|---|
| 1832 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | 
|---|
| 1833 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | 
|---|
| 1834 | lt_cv_prog_gnu_ld=yes | 
|---|
| 1835 | else | 
|---|
| 1836 | lt_cv_prog_gnu_ld=no | 
|---|
| 1837 | fi | 
|---|
| 1838 | fi | 
|---|
| 1839 |  | 
|---|
| 1840 | echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6 | 
|---|
| 1841 | with_gnu_ld=$lt_cv_prog_gnu_ld | 
|---|
| 1842 |  | 
|---|
| 1843 |  | 
|---|
| 1844 | echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6 | 
|---|
| 1845 | echo "configure:1846: checking for $LD option to reload object files" >&5 | 
|---|
| 1846 | if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then | 
|---|
| 1847 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 1848 | else | 
|---|
| 1849 | lt_cv_ld_reload_flag='-r' | 
|---|
| 1850 | fi | 
|---|
| 1851 |  | 
|---|
| 1852 | echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6 | 
|---|
| 1853 | reload_flag=$lt_cv_ld_reload_flag | 
|---|
| 1854 | test -n "$reload_flag" && reload_flag=" $reload_flag" | 
|---|
| 1855 |  | 
|---|
| 1856 | echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 | 
|---|
| 1857 | echo "configure:1858: checking for BSD-compatible nm" >&5 | 
|---|
| 1858 | if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then | 
|---|
| 1859 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 1860 | else | 
|---|
| 1861 | if test -n "$NM"; then | 
|---|
| 1862 | # Let the user override the test. | 
|---|
| 1863 | lt_cv_path_NM="$NM" | 
|---|
| 1864 | else | 
|---|
| 1865 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 
|---|
| 1866 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do | 
|---|
| 1867 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 1868 | tmp_nm=$ac_dir/${ac_tool_prefix}nm | 
|---|
| 1869 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then | 
|---|
| 1870 | # Check to see if the nm accepts a BSD-compat flag. | 
|---|
| 1871 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | 
|---|
| 1872 | #   nm: unknown option "B" ignored | 
|---|
| 1873 | # Tru64's nm complains that /dev/null is an invalid object file | 
|---|
| 1874 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then | 
|---|
| 1875 | lt_cv_path_NM="$tmp_nm -B" | 
|---|
| 1876 | break | 
|---|
| 1877 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then | 
|---|
| 1878 | lt_cv_path_NM="$tmp_nm -p" | 
|---|
| 1879 | break | 
|---|
| 1880 | else | 
|---|
| 1881 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | 
|---|
| 1882 | continue # so that we can try to find one that supports BSD flags | 
|---|
| 1883 | fi | 
|---|
| 1884 | fi | 
|---|
| 1885 | done | 
|---|
| 1886 | IFS="$ac_save_ifs" | 
|---|
| 1887 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm | 
|---|
| 1888 | fi | 
|---|
| 1889 | fi | 
|---|
| 1890 |  | 
|---|
| 1891 | NM="$lt_cv_path_NM" | 
|---|
| 1892 | echo "$ac_t""$NM" 1>&6 | 
|---|
| 1893 |  | 
|---|
| 1894 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 | 
|---|
| 1895 | echo "configure:1896: checking whether ln -s works" >&5 | 
|---|
| 1896 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then | 
|---|
| 1897 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 1898 | else | 
|---|
| 1899 | rm -f conftestdata | 
|---|
| 1900 | if ln -s X conftestdata 2>/dev/null | 
|---|
| 1901 | then | 
|---|
| 1902 | rm -f conftestdata | 
|---|
| 1903 | ac_cv_prog_LN_S="ln -s" | 
|---|
| 1904 | else | 
|---|
| 1905 | ac_cv_prog_LN_S=ln | 
|---|
| 1906 | fi | 
|---|
| 1907 | fi | 
|---|
| 1908 | LN_S="$ac_cv_prog_LN_S" | 
|---|
| 1909 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | 
|---|
| 1910 | echo "$ac_t""yes" 1>&6 | 
|---|
| 1911 | else | 
|---|
| 1912 | echo "$ac_t""no" 1>&6 | 
|---|
| 1913 | fi | 
|---|
| 1914 |  | 
|---|
| 1915 | echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6 | 
|---|
| 1916 | echo "configure:1917: checking how to recognise dependant libraries" >&5 | 
|---|
| 1917 | if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then | 
|---|
| 1918 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 1919 | else | 
|---|
| 1920 | lt_cv_file_magic_cmd='$MAGIC_CMD' | 
|---|
| 1921 | lt_cv_file_magic_test_file= | 
|---|
| 1922 | lt_cv_deplibs_check_method='unknown' | 
|---|
| 1923 | # Need to set the preceding variable on all platforms that support | 
|---|
| 1924 | # interlibrary dependencies. | 
|---|
| 1925 | # 'none' -- dependencies not supported. | 
|---|
| 1926 | # `unknown' -- same as none, but documents that we really don't know. | 
|---|
| 1927 | # 'pass_all' -- all dependencies passed with no checks. | 
|---|
| 1928 | # 'test_compile' -- check by making test program. | 
|---|
| 1929 | # 'file_magic [[regex]]' -- check by looking for files in library path | 
|---|
| 1930 | # which responds to the $file_magic_cmd with a given egrep regex. | 
|---|
| 1931 | # If you have `file' or equivalent on your system and you're not sure | 
|---|
| 1932 | # whether `pass_all' will *always* work, you probably want this one. | 
|---|
| 1933 |  | 
|---|
| 1934 | case $host_os in | 
|---|
| 1935 | aix4* | aix5*) | 
|---|
| 1936 | lt_cv_deplibs_check_method=pass_all | 
|---|
| 1937 | ;; | 
|---|
| 1938 |  | 
|---|
| 1939 | beos*) | 
|---|
| 1940 | lt_cv_deplibs_check_method=pass_all | 
|---|
| 1941 | ;; | 
|---|
| 1942 |  | 
|---|
| 1943 | bsdi4*) | 
|---|
| 1944 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | 
|---|
| 1945 | lt_cv_file_magic_cmd='/usr/bin/file -L' | 
|---|
| 1946 | lt_cv_file_magic_test_file=/shlib/libc.so | 
|---|
| 1947 | ;; | 
|---|
| 1948 |  | 
|---|
| 1949 | cygwin* | mingw* | pw32*) | 
|---|
| 1950 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | 
|---|
| 1951 | lt_cv_file_magic_cmd='$OBJDUMP -f' | 
|---|
| 1952 | ;; | 
|---|
| 1953 |  | 
|---|
| 1954 | darwin* | rhapsody*) | 
|---|
| 1955 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' | 
|---|
| 1956 | lt_cv_file_magic_cmd='/usr/bin/file -L' | 
|---|
| 1957 | case "$host_os" in | 
|---|
| 1958 | rhapsody* | darwin1.[012]) | 
|---|
| 1959 | lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1` | 
|---|
| 1960 | ;; | 
|---|
| 1961 | *) # Darwin 1.3 on | 
|---|
| 1962 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' | 
|---|
| 1963 | ;; | 
|---|
| 1964 | esac | 
|---|
| 1965 | ;; | 
|---|
| 1966 |  | 
|---|
| 1967 | freebsd*) | 
|---|
| 1968 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | 
|---|
| 1969 | case $host_cpu in | 
|---|
| 1970 | i*86 ) | 
|---|
| 1971 | # Not sure whether the presence of OpenBSD here was a mistake. | 
|---|
| 1972 | # Let's accept both of them until this is cleared up. | 
|---|
| 1973 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' | 
|---|
| 1974 | lt_cv_file_magic_cmd=/usr/bin/file | 
|---|
| 1975 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | 
|---|
| 1976 | ;; | 
|---|
| 1977 | esac | 
|---|
| 1978 | else | 
|---|
| 1979 | lt_cv_deplibs_check_method=pass_all | 
|---|
| 1980 | fi | 
|---|
| 1981 | ;; | 
|---|
| 1982 |  | 
|---|
| 1983 | gnu*) | 
|---|
| 1984 | lt_cv_deplibs_check_method=pass_all | 
|---|
| 1985 | ;; | 
|---|
| 1986 |  | 
|---|
| 1987 | hpux10.20*|hpux11*) | 
|---|
| 1988 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | 
|---|
| 1989 | lt_cv_file_magic_cmd=/usr/bin/file | 
|---|
| 1990 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | 
|---|
| 1991 | ;; | 
|---|
| 1992 |  | 
|---|
| 1993 | irix5* | irix6*) | 
|---|
| 1994 | case $host_os in | 
|---|
| 1995 | irix5*) | 
|---|
| 1996 | # this will be overridden with pass_all, but let us keep it just in case | 
|---|
| 1997 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" | 
|---|
| 1998 | ;; | 
|---|
| 1999 | *) | 
|---|
| 2000 | case $LD in | 
|---|
| 2001 | *-32|*"-32 ") libmagic=32-bit;; | 
|---|
| 2002 | *-n32|*"-n32 ") libmagic=N32;; | 
|---|
| 2003 | *-64|*"-64 ") libmagic=64-bit;; | 
|---|
| 2004 | *) libmagic=never-match;; | 
|---|
| 2005 | esac | 
|---|
| 2006 | # this will be overridden with pass_all, but let us keep it just in case | 
|---|
| 2007 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" | 
|---|
| 2008 | ;; | 
|---|
| 2009 | esac | 
|---|
| 2010 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` | 
|---|
| 2011 | lt_cv_deplibs_check_method=pass_all | 
|---|
| 2012 | ;; | 
|---|
| 2013 |  | 
|---|
| 2014 | # This must be Linux ELF. | 
|---|
| 2015 | linux-gnu*) | 
|---|
| 2016 | case $host_cpu in | 
|---|
| 2017 | alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* | s390* ) | 
|---|
| 2018 | lt_cv_deplibs_check_method=pass_all ;; | 
|---|
| 2019 | *) | 
|---|
| 2020 | # glibc up to 2.1.1 does not perform some relocations on ARM | 
|---|
| 2021 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; | 
|---|
| 2022 | esac | 
|---|
| 2023 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` | 
|---|
| 2024 | ;; | 
|---|
| 2025 |  | 
|---|
| 2026 | netbsd*) | 
|---|
| 2027 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | 
|---|
| 2028 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' | 
|---|
| 2029 | else | 
|---|
| 2030 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' | 
|---|
| 2031 | fi | 
|---|
| 2032 | ;; | 
|---|
| 2033 |  | 
|---|
| 2034 | newos6*) | 
|---|
| 2035 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | 
|---|
| 2036 | lt_cv_file_magic_cmd=/usr/bin/file | 
|---|
| 2037 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | 
|---|
| 2038 | ;; | 
|---|
| 2039 |  | 
|---|
| 2040 | openbsd*) | 
|---|
| 2041 | lt_cv_file_magic_cmd=/usr/bin/file | 
|---|
| 2042 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | 
|---|
| 2043 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
|---|
| 2044 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' | 
|---|
| 2045 | else | 
|---|
| 2046 | lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' | 
|---|
| 2047 | fi | 
|---|
| 2048 | ;; | 
|---|
| 2049 |  | 
|---|
| 2050 | osf3* | osf4* | osf5*) | 
|---|
| 2051 | # this will be overridden with pass_all, but let us keep it just in case | 
|---|
| 2052 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' | 
|---|
| 2053 | lt_cv_file_magic_test_file=/shlib/libc.so | 
|---|
| 2054 | lt_cv_deplibs_check_method=pass_all | 
|---|
| 2055 | ;; | 
|---|
| 2056 |  | 
|---|
| 2057 | sco3.2v5*) | 
|---|
| 2058 | lt_cv_deplibs_check_method=pass_all | 
|---|
| 2059 | ;; | 
|---|
| 2060 |  | 
|---|
| 2061 | solaris*) | 
|---|
| 2062 | lt_cv_deplibs_check_method=pass_all | 
|---|
| 2063 | lt_cv_file_magic_test_file=/lib/libc.so | 
|---|
| 2064 | ;; | 
|---|
| 2065 |  | 
|---|
| 2066 | sysv5uw[78]* | sysv4*uw2*) | 
|---|
| 2067 | lt_cv_deplibs_check_method=pass_all | 
|---|
| 2068 | ;; | 
|---|
| 2069 |  | 
|---|
| 2070 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
|---|
| 2071 | case $host_vendor in | 
|---|
| 2072 | motorola) | 
|---|
| 2073 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' | 
|---|
| 2074 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | 
|---|
| 2075 | ;; | 
|---|
| 2076 | ncr) | 
|---|
| 2077 | lt_cv_deplibs_check_method=pass_all | 
|---|
| 2078 | ;; | 
|---|
| 2079 | sequent) | 
|---|
| 2080 | lt_cv_file_magic_cmd='/bin/file' | 
|---|
| 2081 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | 
|---|
| 2082 | ;; | 
|---|
| 2083 | sni) | 
|---|
| 2084 | lt_cv_file_magic_cmd='/bin/file' | 
|---|
| 2085 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | 
|---|
| 2086 | lt_cv_file_magic_test_file=/lib/libc.so | 
|---|
| 2087 | ;; | 
|---|
| 2088 | esac | 
|---|
| 2089 | ;; | 
|---|
| 2090 | esac | 
|---|
| 2091 |  | 
|---|
| 2092 | fi | 
|---|
| 2093 |  | 
|---|
| 2094 | echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6 | 
|---|
| 2095 | file_magic_cmd=$lt_cv_file_magic_cmd | 
|---|
| 2096 | deplibs_check_method=$lt_cv_deplibs_check_method | 
|---|
| 2097 |  | 
|---|
| 2098 | echo $ac_n "checking for object suffix""... $ac_c" 1>&6 | 
|---|
| 2099 | echo "configure:2100: checking for object suffix" >&5 | 
|---|
| 2100 | if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then | 
|---|
| 2101 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 2102 | else | 
|---|
| 2103 | rm -f conftest* | 
|---|
| 2104 | echo 'int i = 1;' > conftest.$ac_ext | 
|---|
| 2105 | if { (eval echo configure:2106: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
|---|
| 2106 | for ac_file in conftest.*; do | 
|---|
| 2107 | case $ac_file in | 
|---|
| 2108 | *.c) ;; | 
|---|
| 2109 | *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;; | 
|---|
| 2110 | esac | 
|---|
| 2111 | done | 
|---|
| 2112 | else | 
|---|
| 2113 | { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; } | 
|---|
| 2114 | fi | 
|---|
| 2115 | rm -f conftest* | 
|---|
| 2116 | fi | 
|---|
| 2117 |  | 
|---|
| 2118 | echo "$ac_t""$ac_cv_objext" 1>&6 | 
|---|
| 2119 | OBJEXT=$ac_cv_objext | 
|---|
| 2120 | ac_objext=$ac_cv_objext | 
|---|
| 2121 |  | 
|---|
| 2122 |  | 
|---|
| 2123 |  | 
|---|
| 2124 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 | 
|---|
| 2125 | echo "configure:2126: checking for executable suffix" >&5 | 
|---|
| 2126 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then | 
|---|
| 2127 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 2128 | else | 
|---|
| 2129 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then | 
|---|
| 2130 | ac_cv_exeext=.exe | 
|---|
| 2131 | else | 
|---|
| 2132 | rm -f conftest* | 
|---|
| 2133 | echo 'int main () { return 0; }' > conftest.$ac_ext | 
|---|
| 2134 | ac_cv_exeext= | 
|---|
| 2135 | if { (eval echo configure:2136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then | 
|---|
| 2136 | for file in conftest.*; do | 
|---|
| 2137 | case $file in | 
|---|
| 2138 | *.c | *.o | *.obj) ;; | 
|---|
| 2139 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; | 
|---|
| 2140 | esac | 
|---|
| 2141 | done | 
|---|
| 2142 | else | 
|---|
| 2143 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } | 
|---|
| 2144 | fi | 
|---|
| 2145 | rm -f conftest* | 
|---|
| 2146 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no | 
|---|
| 2147 | fi | 
|---|
| 2148 | fi | 
|---|
| 2149 |  | 
|---|
| 2150 | EXEEXT="" | 
|---|
| 2151 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} | 
|---|
| 2152 | echo "$ac_t""${ac_cv_exeext}" 1>&6 | 
|---|
| 2153 | ac_exeext=$EXEEXT | 
|---|
| 2154 |  | 
|---|
| 2155 | if test $host != $build; then | 
|---|
| 2156 | ac_tool_prefix=${host_alias}- | 
|---|
| 2157 | else | 
|---|
| 2158 | ac_tool_prefix= | 
|---|
| 2159 | fi | 
|---|
| 2160 |  | 
|---|
| 2161 |  | 
|---|
| 2162 |  | 
|---|
| 2163 |  | 
|---|
| 2164 | # Check for command to grab the raw symbol name followed by C symbol from nm. | 
|---|
| 2165 | echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6 | 
|---|
| 2166 | echo "configure:2167: checking command to parse $NM output" >&5 | 
|---|
| 2167 | if eval "test \"`echo '$''{'lt_cv_sys_global_symbol_pipe'+set}'`\" = set"; then | 
|---|
| 2168 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 2169 | else | 
|---|
| 2170 |  | 
|---|
| 2171 | # These are sane defaults that work on at least a few old systems. | 
|---|
| 2172 | # [They come from Ultrix.  What could be older than Ultrix?!! ;)] | 
|---|
| 2173 |  | 
|---|
| 2174 | # Character class describing NM global symbol codes. | 
|---|
| 2175 | symcode='[BCDEGRST]' | 
|---|
| 2176 |  | 
|---|
| 2177 | # Regexp to match symbols that can be accessed directly from C. | 
|---|
| 2178 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | 
|---|
| 2179 |  | 
|---|
| 2180 | # Transform the above into a raw symbol and a C symbol. | 
|---|
| 2181 | symxfrm='\1 \2\3 \3' | 
|---|
| 2182 |  | 
|---|
| 2183 | # Transform an extracted symbol line into a proper C declaration | 
|---|
| 2184 | lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'" | 
|---|
| 2185 |  | 
|---|
| 2186 | # Transform an extracted symbol line into symbol name and symbol address | 
|---|
| 2187 | lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'" | 
|---|
| 2188 |  | 
|---|
| 2189 | # Define system-specific variables. | 
|---|
| 2190 | case $host_os in | 
|---|
| 2191 | aix*) | 
|---|
| 2192 | symcode='[BCDT]' | 
|---|
| 2193 | ;; | 
|---|
| 2194 | cygwin* | mingw* | pw32*) | 
|---|
| 2195 | symcode='[ABCDGISTW]' | 
|---|
| 2196 | ;; | 
|---|
| 2197 | hpux*) # Its linker distinguishes data from code symbols | 
|---|
| 2198 | lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | 
|---|
| 2199 | lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'" | 
|---|
| 2200 | ;; | 
|---|
| 2201 | irix*) | 
|---|
| 2202 | symcode='[BCDEGRST]' | 
|---|
| 2203 | ;; | 
|---|
| 2204 | solaris* | sysv5*) | 
|---|
| 2205 | symcode='[BDT]' | 
|---|
| 2206 | ;; | 
|---|
| 2207 | sysv4) | 
|---|
| 2208 | symcode='[DFNSTU]' | 
|---|
| 2209 | ;; | 
|---|
| 2210 | esac | 
|---|
| 2211 |  | 
|---|
| 2212 | # Handle CRLF in mingw tool chain | 
|---|
| 2213 | opt_cr= | 
|---|
| 2214 | case $host_os in | 
|---|
| 2215 | mingw*) | 
|---|
| 2216 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp | 
|---|
| 2217 | ;; | 
|---|
| 2218 | esac | 
|---|
| 2219 |  | 
|---|
| 2220 | # If we're using GNU nm, then use its standard symbol codes. | 
|---|
| 2221 | if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then | 
|---|
| 2222 | symcode='[ABCDGISTW]' | 
|---|
| 2223 | fi | 
|---|
| 2224 |  | 
|---|
| 2225 | # Try without a prefix undercore, then with it. | 
|---|
| 2226 | for ac_symprfx in "" "_"; do | 
|---|
| 2227 |  | 
|---|
| 2228 | # Write the raw and C identifiers. | 
|---|
| 2229 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" | 
|---|
| 2230 |  | 
|---|
| 2231 | # Check to see that the pipe works correctly. | 
|---|
| 2232 | pipe_works=no | 
|---|
| 2233 | rm -f conftest* | 
|---|
| 2234 | cat > conftest.$ac_ext <<EOF | 
|---|
| 2235 | #ifdef __cplusplus | 
|---|
| 2236 | extern "C" { | 
|---|
| 2237 | #endif | 
|---|
| 2238 | char nm_test_var; | 
|---|
| 2239 | void nm_test_func(){} | 
|---|
| 2240 | #ifdef __cplusplus | 
|---|
| 2241 | } | 
|---|
| 2242 | #endif | 
|---|
| 2243 | int main(){nm_test_var='a';nm_test_func();return(0);} | 
|---|
| 2244 | EOF | 
|---|
| 2245 |  | 
|---|
| 2246 | if { (eval echo configure:2247: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
|---|
| 2247 | # Now try to grab the symbols. | 
|---|
| 2248 | nlist=conftest.nm | 
|---|
| 2249 | if { (eval echo configure:2250: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5; } && test -s "$nlist"; then | 
|---|
| 2250 | # Try sorting and uniquifying the output. | 
|---|
| 2251 | if sort "$nlist" | uniq > "$nlist"T; then | 
|---|
| 2252 | mv -f "$nlist"T "$nlist" | 
|---|
| 2253 | else | 
|---|
| 2254 | rm -f "$nlist"T | 
|---|
| 2255 | fi | 
|---|
| 2256 |  | 
|---|
| 2257 | # Make sure that we snagged all the symbols we need. | 
|---|
| 2258 | if egrep ' nm_test_var$' "$nlist" >/dev/null; then | 
|---|
| 2259 | if egrep ' nm_test_func$' "$nlist" >/dev/null; then | 
|---|
| 2260 | cat <<EOF > conftest.$ac_ext | 
|---|
| 2261 | #ifdef __cplusplus | 
|---|
| 2262 | extern "C" { | 
|---|
| 2263 | #endif | 
|---|
| 2264 |  | 
|---|
| 2265 | EOF | 
|---|
| 2266 | # Now generate the symbol file. | 
|---|
| 2267 | eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext' | 
|---|
| 2268 |  | 
|---|
| 2269 | cat <<EOF >> conftest.$ac_ext | 
|---|
| 2270 | #if defined (__STDC__) && __STDC__ | 
|---|
| 2271 | # define lt_ptr void * | 
|---|
| 2272 | #else | 
|---|
| 2273 | # define lt_ptr char * | 
|---|
| 2274 | # define const | 
|---|
| 2275 | #endif | 
|---|
| 2276 |  | 
|---|
| 2277 | /* The mapping between symbol names and symbols. */ | 
|---|
| 2278 | const struct { | 
|---|
| 2279 | const char *name; | 
|---|
| 2280 | lt_ptr address; | 
|---|
| 2281 | } | 
|---|
| 2282 | lt_preloaded_symbols[] = | 
|---|
| 2283 | { | 
|---|
| 2284 | EOF | 
|---|
| 2285 | sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext | 
|---|
| 2286 | cat <<\EOF >> conftest.$ac_ext | 
|---|
| 2287 | {0, (lt_ptr) 0} | 
|---|
| 2288 | }; | 
|---|
| 2289 |  | 
|---|
| 2290 | #ifdef __cplusplus | 
|---|
| 2291 | } | 
|---|
| 2292 | #endif | 
|---|
| 2293 | EOF | 
|---|
| 2294 | # Now try linking the two files. | 
|---|
| 2295 | mv conftest.$ac_objext conftstm.$ac_objext | 
|---|
| 2296 | save_LIBS="$LIBS" | 
|---|
| 2297 | save_CFLAGS="$CFLAGS" | 
|---|
| 2298 | LIBS="conftstm.$ac_objext" | 
|---|
| 2299 | CFLAGS="$CFLAGS$no_builtin_flag" | 
|---|
| 2300 | if { (eval echo configure:2301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 
|---|
| 2301 | pipe_works=yes | 
|---|
| 2302 | fi | 
|---|
| 2303 | LIBS="$save_LIBS" | 
|---|
| 2304 | CFLAGS="$save_CFLAGS" | 
|---|
| 2305 | else | 
|---|
| 2306 | echo "cannot find nm_test_func in $nlist" >&5 | 
|---|
| 2307 | fi | 
|---|
| 2308 | else | 
|---|
| 2309 | echo "cannot find nm_test_var in $nlist" >&5 | 
|---|
| 2310 | fi | 
|---|
| 2311 | else | 
|---|
| 2312 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | 
|---|
| 2313 | fi | 
|---|
| 2314 | else | 
|---|
| 2315 | echo "$progname: failed program was:" >&5 | 
|---|
| 2316 | cat conftest.$ac_ext >&5 | 
|---|
| 2317 | fi | 
|---|
| 2318 | rm -f conftest* conftst* | 
|---|
| 2319 |  | 
|---|
| 2320 | # Do not use the global_symbol_pipe unless it works. | 
|---|
| 2321 | if test "$pipe_works" = yes; then | 
|---|
| 2322 | break | 
|---|
| 2323 | else | 
|---|
| 2324 | lt_cv_sys_global_symbol_pipe= | 
|---|
| 2325 | fi | 
|---|
| 2326 | done | 
|---|
| 2327 |  | 
|---|
| 2328 | fi | 
|---|
| 2329 |  | 
|---|
| 2330 | global_symbol_pipe="$lt_cv_sys_global_symbol_pipe" | 
|---|
| 2331 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | 
|---|
| 2332 | global_symbol_to_cdecl= | 
|---|
| 2333 | global_symbol_to_c_name_address= | 
|---|
| 2334 | else | 
|---|
| 2335 | global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl" | 
|---|
| 2336 | global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address" | 
|---|
| 2337 | fi | 
|---|
| 2338 | if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address"; | 
|---|
| 2339 | then | 
|---|
| 2340 | echo "$ac_t""failed" 1>&6 | 
|---|
| 2341 | else | 
|---|
| 2342 | echo "$ac_t""ok" 1>&6 | 
|---|
| 2343 | fi | 
|---|
| 2344 |  | 
|---|
| 2345 | for ac_hdr in dlfcn.h | 
|---|
| 2346 | do | 
|---|
| 2347 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 
|---|
| 2348 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 
|---|
| 2349 | echo "configure:2350: checking for $ac_hdr" >&5 | 
|---|
| 2350 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 
|---|
| 2351 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 2352 | else | 
|---|
| 2353 | cat > conftest.$ac_ext <<EOF | 
|---|
| 2354 | #line 2355 "configure" | 
|---|
| 2355 | #include "confdefs.h" | 
|---|
| 2356 | #include <$ac_hdr> | 
|---|
| 2357 | EOF | 
|---|
| 2358 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
|---|
| 2359 | { (eval echo configure:2360: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
|---|
| 2360 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
|---|
| 2361 | if test -z "$ac_err"; then | 
|---|
| 2362 | rm -rf conftest* | 
|---|
| 2363 | eval "ac_cv_header_$ac_safe=yes" | 
|---|
| 2364 | else | 
|---|
| 2365 | echo "$ac_err" >&5 | 
|---|
| 2366 | echo "configure: failed program was:" >&5 | 
|---|
| 2367 | cat conftest.$ac_ext >&5 | 
|---|
| 2368 | rm -rf conftest* | 
|---|
| 2369 | eval "ac_cv_header_$ac_safe=no" | 
|---|
| 2370 | fi | 
|---|
| 2371 | rm -f conftest* | 
|---|
| 2372 | fi | 
|---|
| 2373 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 
|---|
| 2374 | echo "$ac_t""yes" 1>&6 | 
|---|
| 2375 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | 
|---|
| 2376 | cat >> confdefs.h <<EOF | 
|---|
| 2377 | #define $ac_tr_hdr 1 | 
|---|
| 2378 | EOF | 
|---|
| 2379 |  | 
|---|
| 2380 | else | 
|---|
| 2381 | echo "$ac_t""no" 1>&6 | 
|---|
| 2382 | fi | 
|---|
| 2383 | done | 
|---|
| 2384 |  | 
|---|
| 2385 |  | 
|---|
| 2386 |  | 
|---|
| 2387 |  | 
|---|
| 2388 |  | 
|---|
| 2389 | # Only perform the check for file, if the check method requires it | 
|---|
| 2390 | case $deplibs_check_method in | 
|---|
| 2391 | file_magic*) | 
|---|
| 2392 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | 
|---|
| 2393 | echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6 | 
|---|
| 2394 | echo "configure:2395: checking for ${ac_tool_prefix}file" >&5 | 
|---|
| 2395 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then | 
|---|
| 2396 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 2397 | else | 
|---|
| 2398 | case $MAGIC_CMD in | 
|---|
| 2399 | /*) | 
|---|
| 2400 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | 
|---|
| 2401 | ;; | 
|---|
| 2402 | ?:/*) | 
|---|
| 2403 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. | 
|---|
| 2404 | ;; | 
|---|
| 2405 | *) | 
|---|
| 2406 | ac_save_MAGIC_CMD="$MAGIC_CMD" | 
|---|
| 2407 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":" | 
|---|
| 2408 | ac_dummy="/usr/bin:$PATH" | 
|---|
| 2409 | for ac_dir in $ac_dummy; do | 
|---|
| 2410 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 2411 | if test -f $ac_dir/${ac_tool_prefix}file; then | 
|---|
| 2412 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | 
|---|
| 2413 | if test -n "$file_magic_test_file"; then | 
|---|
| 2414 | case $deplibs_check_method in | 
|---|
| 2415 | "file_magic "*) | 
|---|
| 2416 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | 
|---|
| 2417 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 
|---|
| 2418 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | 
|---|
| 2419 | egrep "$file_magic_regex" > /dev/null; then | 
|---|
| 2420 | : | 
|---|
| 2421 | else | 
|---|
| 2422 | cat <<EOF 1>&2 | 
|---|
| 2423 |  | 
|---|
| 2424 | *** Warning: the command libtool uses to detect shared libraries, | 
|---|
| 2425 | *** $file_magic_cmd, produces output that libtool cannot recognize. | 
|---|
| 2426 | *** The result is that libtool may fail to recognize shared libraries | 
|---|
| 2427 | *** as such.  This will affect the creation of libtool libraries that | 
|---|
| 2428 | *** depend on shared libraries, but programs linked with such libtool | 
|---|
| 2429 | *** libraries will work regardless of this problem.  Nevertheless, you | 
|---|
| 2430 | *** may want to report the problem to your system manager and/or to | 
|---|
| 2431 | *** bug-libtool@gnu.org | 
|---|
| 2432 |  | 
|---|
| 2433 | EOF | 
|---|
| 2434 | fi ;; | 
|---|
| 2435 | esac | 
|---|
| 2436 | fi | 
|---|
| 2437 | break | 
|---|
| 2438 | fi | 
|---|
| 2439 | done | 
|---|
| 2440 | IFS="$ac_save_ifs" | 
|---|
| 2441 | MAGIC_CMD="$ac_save_MAGIC_CMD" | 
|---|
| 2442 | ;; | 
|---|
| 2443 | esac | 
|---|
| 2444 | fi | 
|---|
| 2445 |  | 
|---|
| 2446 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 
|---|
| 2447 | if test -n "$MAGIC_CMD"; then | 
|---|
| 2448 | echo "$ac_t""$MAGIC_CMD" 1>&6 | 
|---|
| 2449 | else | 
|---|
| 2450 | echo "$ac_t""no" 1>&6 | 
|---|
| 2451 | fi | 
|---|
| 2452 |  | 
|---|
| 2453 | if test -z "$lt_cv_path_MAGIC_CMD"; then | 
|---|
| 2454 | if test -n "$ac_tool_prefix"; then | 
|---|
| 2455 | echo $ac_n "checking for file""... $ac_c" 1>&6 | 
|---|
| 2456 | echo "configure:2457: checking for file" >&5 | 
|---|
| 2457 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then | 
|---|
| 2458 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 2459 | else | 
|---|
| 2460 | case $MAGIC_CMD in | 
|---|
| 2461 | /*) | 
|---|
| 2462 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | 
|---|
| 2463 | ;; | 
|---|
| 2464 | ?:/*) | 
|---|
| 2465 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. | 
|---|
| 2466 | ;; | 
|---|
| 2467 | *) | 
|---|
| 2468 | ac_save_MAGIC_CMD="$MAGIC_CMD" | 
|---|
| 2469 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":" | 
|---|
| 2470 | ac_dummy="/usr/bin:$PATH" | 
|---|
| 2471 | for ac_dir in $ac_dummy; do | 
|---|
| 2472 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 2473 | if test -f $ac_dir/file; then | 
|---|
| 2474 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | 
|---|
| 2475 | if test -n "$file_magic_test_file"; then | 
|---|
| 2476 | case $deplibs_check_method in | 
|---|
| 2477 | "file_magic "*) | 
|---|
| 2478 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | 
|---|
| 2479 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 
|---|
| 2480 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | 
|---|
| 2481 | egrep "$file_magic_regex" > /dev/null; then | 
|---|
| 2482 | : | 
|---|
| 2483 | else | 
|---|
| 2484 | cat <<EOF 1>&2 | 
|---|
| 2485 |  | 
|---|
| 2486 | *** Warning: the command libtool uses to detect shared libraries, | 
|---|
| 2487 | *** $file_magic_cmd, produces output that libtool cannot recognize. | 
|---|
| 2488 | *** The result is that libtool may fail to recognize shared libraries | 
|---|
| 2489 | *** as such.  This will affect the creation of libtool libraries that | 
|---|
| 2490 | *** depend on shared libraries, but programs linked with such libtool | 
|---|
| 2491 | *** libraries will work regardless of this problem.  Nevertheless, you | 
|---|
| 2492 | *** may want to report the problem to your system manager and/or to | 
|---|
| 2493 | *** bug-libtool@gnu.org | 
|---|
| 2494 |  | 
|---|
| 2495 | EOF | 
|---|
| 2496 | fi ;; | 
|---|
| 2497 | esac | 
|---|
| 2498 | fi | 
|---|
| 2499 | break | 
|---|
| 2500 | fi | 
|---|
| 2501 | done | 
|---|
| 2502 | IFS="$ac_save_ifs" | 
|---|
| 2503 | MAGIC_CMD="$ac_save_MAGIC_CMD" | 
|---|
| 2504 | ;; | 
|---|
| 2505 | esac | 
|---|
| 2506 | fi | 
|---|
| 2507 |  | 
|---|
| 2508 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 
|---|
| 2509 | if test -n "$MAGIC_CMD"; then | 
|---|
| 2510 | echo "$ac_t""$MAGIC_CMD" 1>&6 | 
|---|
| 2511 | else | 
|---|
| 2512 | echo "$ac_t""no" 1>&6 | 
|---|
| 2513 | fi | 
|---|
| 2514 |  | 
|---|
| 2515 | else | 
|---|
| 2516 | MAGIC_CMD=: | 
|---|
| 2517 | fi | 
|---|
| 2518 | fi | 
|---|
| 2519 |  | 
|---|
| 2520 | fi | 
|---|
| 2521 | ;; | 
|---|
| 2522 | esac | 
|---|
| 2523 |  | 
|---|
| 2524 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | 
|---|
| 2525 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | 
|---|
| 2526 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
|---|
| 2527 | echo "configure:2528: checking for $ac_word" >&5 | 
|---|
| 2528 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then | 
|---|
| 2529 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 2530 | else | 
|---|
| 2531 | if test -n "$RANLIB"; then | 
|---|
| 2532 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | 
|---|
| 2533 | else | 
|---|
| 2534 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":" | 
|---|
| 2535 | ac_dummy="$PATH" | 
|---|
| 2536 | for ac_dir in $ac_dummy; do | 
|---|
| 2537 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 2538 | if test -f $ac_dir/$ac_word; then | 
|---|
| 2539 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | 
|---|
| 2540 | break | 
|---|
| 2541 | fi | 
|---|
| 2542 | done | 
|---|
| 2543 | IFS="$ac_save_ifs" | 
|---|
| 2544 | fi | 
|---|
| 2545 | fi | 
|---|
| 2546 | RANLIB="$ac_cv_prog_RANLIB" | 
|---|
| 2547 | if test -n "$RANLIB"; then | 
|---|
| 2548 | echo "$ac_t""$RANLIB" 1>&6 | 
|---|
| 2549 | else | 
|---|
| 2550 | echo "$ac_t""no" 1>&6 | 
|---|
| 2551 | fi | 
|---|
| 2552 |  | 
|---|
| 2553 |  | 
|---|
| 2554 | if test -z "$ac_cv_prog_RANLIB"; then | 
|---|
| 2555 | if test -n "$ac_tool_prefix"; then | 
|---|
| 2556 | # Extract the first word of "ranlib", so it can be a program name with args. | 
|---|
| 2557 | set dummy ranlib; ac_word=$2 | 
|---|
| 2558 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
|---|
| 2559 | echo "configure:2560: checking for $ac_word" >&5 | 
|---|
| 2560 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then | 
|---|
| 2561 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 2562 | else | 
|---|
| 2563 | if test -n "$RANLIB"; then | 
|---|
| 2564 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | 
|---|
| 2565 | else | 
|---|
| 2566 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":" | 
|---|
| 2567 | ac_dummy="$PATH" | 
|---|
| 2568 | for ac_dir in $ac_dummy; do | 
|---|
| 2569 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 2570 | if test -f $ac_dir/$ac_word; then | 
|---|
| 2571 | ac_cv_prog_RANLIB="ranlib" | 
|---|
| 2572 | break | 
|---|
| 2573 | fi | 
|---|
| 2574 | done | 
|---|
| 2575 | IFS="$ac_save_ifs" | 
|---|
| 2576 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | 
|---|
| 2577 | fi | 
|---|
| 2578 | fi | 
|---|
| 2579 | RANLIB="$ac_cv_prog_RANLIB" | 
|---|
| 2580 | if test -n "$RANLIB"; then | 
|---|
| 2581 | echo "$ac_t""$RANLIB" 1>&6 | 
|---|
| 2582 | else | 
|---|
| 2583 | echo "$ac_t""no" 1>&6 | 
|---|
| 2584 | fi | 
|---|
| 2585 |  | 
|---|
| 2586 | else | 
|---|
| 2587 | RANLIB=":" | 
|---|
| 2588 | fi | 
|---|
| 2589 | fi | 
|---|
| 2590 |  | 
|---|
| 2591 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | 
|---|
| 2592 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | 
|---|
| 2593 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
|---|
| 2594 | echo "configure:2595: checking for $ac_word" >&5 | 
|---|
| 2595 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then | 
|---|
| 2596 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 2597 | else | 
|---|
| 2598 | if test -n "$STRIP"; then | 
|---|
| 2599 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | 
|---|
| 2600 | else | 
|---|
| 2601 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":" | 
|---|
| 2602 | ac_dummy="$PATH" | 
|---|
| 2603 | for ac_dir in $ac_dummy; do | 
|---|
| 2604 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 2605 | if test -f $ac_dir/$ac_word; then | 
|---|
| 2606 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | 
|---|
| 2607 | break | 
|---|
| 2608 | fi | 
|---|
| 2609 | done | 
|---|
| 2610 | IFS="$ac_save_ifs" | 
|---|
| 2611 | fi | 
|---|
| 2612 | fi | 
|---|
| 2613 | STRIP="$ac_cv_prog_STRIP" | 
|---|
| 2614 | if test -n "$STRIP"; then | 
|---|
| 2615 | echo "$ac_t""$STRIP" 1>&6 | 
|---|
| 2616 | else | 
|---|
| 2617 | echo "$ac_t""no" 1>&6 | 
|---|
| 2618 | fi | 
|---|
| 2619 |  | 
|---|
| 2620 |  | 
|---|
| 2621 | if test -z "$ac_cv_prog_STRIP"; then | 
|---|
| 2622 | if test -n "$ac_tool_prefix"; then | 
|---|
| 2623 | # Extract the first word of "strip", so it can be a program name with args. | 
|---|
| 2624 | set dummy strip; ac_word=$2 | 
|---|
| 2625 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
|---|
| 2626 | echo "configure:2627: checking for $ac_word" >&5 | 
|---|
| 2627 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then | 
|---|
| 2628 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 2629 | else | 
|---|
| 2630 | if test -n "$STRIP"; then | 
|---|
| 2631 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | 
|---|
| 2632 | else | 
|---|
| 2633 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":" | 
|---|
| 2634 | ac_dummy="$PATH" | 
|---|
| 2635 | for ac_dir in $ac_dummy; do | 
|---|
| 2636 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 2637 | if test -f $ac_dir/$ac_word; then | 
|---|
| 2638 | ac_cv_prog_STRIP="strip" | 
|---|
| 2639 | break | 
|---|
| 2640 | fi | 
|---|
| 2641 | done | 
|---|
| 2642 | IFS="$ac_save_ifs" | 
|---|
| 2643 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" | 
|---|
| 2644 | fi | 
|---|
| 2645 | fi | 
|---|
| 2646 | STRIP="$ac_cv_prog_STRIP" | 
|---|
| 2647 | if test -n "$STRIP"; then | 
|---|
| 2648 | echo "$ac_t""$STRIP" 1>&6 | 
|---|
| 2649 | else | 
|---|
| 2650 | echo "$ac_t""no" 1>&6 | 
|---|
| 2651 | fi | 
|---|
| 2652 |  | 
|---|
| 2653 | else | 
|---|
| 2654 | STRIP=":" | 
|---|
| 2655 | fi | 
|---|
| 2656 | fi | 
|---|
| 2657 |  | 
|---|
| 2658 |  | 
|---|
| 2659 | enable_dlopen=no | 
|---|
| 2660 | enable_win32_dll=no | 
|---|
| 2661 |  | 
|---|
| 2662 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | 
|---|
| 2663 | if test "${enable_libtool_lock+set}" = set; then | 
|---|
| 2664 | enableval="$enable_libtool_lock" | 
|---|
| 2665 | : | 
|---|
| 2666 | fi | 
|---|
| 2667 |  | 
|---|
| 2668 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | 
|---|
| 2669 |  | 
|---|
| 2670 | # Some flags need to be propagated to the compiler or linker for good | 
|---|
| 2671 | # libtool support. | 
|---|
| 2672 | case $host in | 
|---|
| 2673 | *-*-irix6*) | 
|---|
| 2674 | # Find out which ABI we are using. | 
|---|
| 2675 | echo '#line 2676 "configure"' > conftest.$ac_ext | 
|---|
| 2676 | if { (eval echo configure:2677: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
|---|
| 2677 | case `/usr/bin/file conftest.$ac_objext` in | 
|---|
| 2678 | *32-bit*) | 
|---|
| 2679 | LD="${LD-ld} -32" | 
|---|
| 2680 | ;; | 
|---|
| 2681 | *N32*) | 
|---|
| 2682 | LD="${LD-ld} -n32" | 
|---|
| 2683 | ;; | 
|---|
| 2684 | *64-bit*) | 
|---|
| 2685 | LD="${LD-ld} -64" | 
|---|
| 2686 | ;; | 
|---|
| 2687 | esac | 
|---|
| 2688 | fi | 
|---|
| 2689 | rm -rf conftest* | 
|---|
| 2690 | ;; | 
|---|
| 2691 |  | 
|---|
| 2692 | *-*-sco3.2v5*) | 
|---|
| 2693 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | 
|---|
| 2694 | SAVE_CFLAGS="$CFLAGS" | 
|---|
| 2695 | CFLAGS="$CFLAGS -belf" | 
|---|
| 2696 | echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6 | 
|---|
| 2697 | echo "configure:2698: checking whether the C compiler needs -belf" >&5 | 
|---|
| 2698 | if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then | 
|---|
| 2699 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 2700 | else | 
|---|
| 2701 |  | 
|---|
| 2702 | ac_ext=c | 
|---|
| 2703 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | 
|---|
| 2704 | ac_cpp='$CPP $CPPFLAGS' | 
|---|
| 2705 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | 
|---|
| 2706 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | 
|---|
| 2707 | cross_compiling=$ac_cv_prog_cc_cross | 
|---|
| 2708 |  | 
|---|
| 2709 | cat > conftest.$ac_ext <<EOF | 
|---|
| 2710 | #line 2711 "configure" | 
|---|
| 2711 | #include "confdefs.h" | 
|---|
| 2712 |  | 
|---|
| 2713 | int main() { | 
|---|
| 2714 |  | 
|---|
| 2715 | ; return 0; } | 
|---|
| 2716 | EOF | 
|---|
| 2717 | if { (eval echo configure:2718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 2718 | rm -rf conftest* | 
|---|
| 2719 | lt_cv_cc_needs_belf=yes | 
|---|
| 2720 | else | 
|---|
| 2721 | echo "configure: failed program was:" >&5 | 
|---|
| 2722 | cat conftest.$ac_ext >&5 | 
|---|
| 2723 | rm -rf conftest* | 
|---|
| 2724 | lt_cv_cc_needs_belf=no | 
|---|
| 2725 | fi | 
|---|
| 2726 | rm -f conftest* | 
|---|
| 2727 | ac_ext=c | 
|---|
| 2728 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | 
|---|
| 2729 | ac_cpp='$CPP $CPPFLAGS' | 
|---|
| 2730 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | 
|---|
| 2731 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | 
|---|
| 2732 | cross_compiling=$ac_cv_prog_cc_cross | 
|---|
| 2733 |  | 
|---|
| 2734 | fi | 
|---|
| 2735 |  | 
|---|
| 2736 | echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6 | 
|---|
| 2737 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | 
|---|
| 2738 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | 
|---|
| 2739 | CFLAGS="$SAVE_CFLAGS" | 
|---|
| 2740 | fi | 
|---|
| 2741 | ;; | 
|---|
| 2742 |  | 
|---|
| 2743 |  | 
|---|
| 2744 | esac | 
|---|
| 2745 |  | 
|---|
| 2746 | # Sed substitution that helps us do robust quoting.  It backslashifies | 
|---|
| 2747 | # metacharacters that are still active within double-quoted strings. | 
|---|
| 2748 | Xsed='sed -e s/^X//' | 
|---|
| 2749 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' | 
|---|
| 2750 |  | 
|---|
| 2751 | # Same as above, but do not quote variable references. | 
|---|
| 2752 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' | 
|---|
| 2753 |  | 
|---|
| 2754 | # Sed substitution to delay expansion of an escaped shell variable in a | 
|---|
| 2755 | # double_quote_subst'ed string. | 
|---|
| 2756 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | 
|---|
| 2757 |  | 
|---|
| 2758 | # Constants: | 
|---|
| 2759 | rm="rm -f" | 
|---|
| 2760 |  | 
|---|
| 2761 | # Global variables: | 
|---|
| 2762 | default_ofile=libtool | 
|---|
| 2763 | can_build_shared=yes | 
|---|
| 2764 |  | 
|---|
| 2765 | # All known linkers require a `.a' archive for static linking (except M$VC, | 
|---|
| 2766 | # which needs '.lib'). | 
|---|
| 2767 | libext=a | 
|---|
| 2768 | ltmain="$ac_aux_dir/ltmain.sh" | 
|---|
| 2769 | ofile="$default_ofile" | 
|---|
| 2770 | with_gnu_ld="$lt_cv_prog_gnu_ld" | 
|---|
| 2771 | need_locks="$enable_libtool_lock" | 
|---|
| 2772 |  | 
|---|
| 2773 | old_CC="$CC" | 
|---|
| 2774 | old_CFLAGS="$CFLAGS" | 
|---|
| 2775 |  | 
|---|
| 2776 | # Set sane defaults for various variables | 
|---|
| 2777 | test -z "$AR" && AR=ar | 
|---|
| 2778 | test -z "$AR_FLAGS" && AR_FLAGS=cru | 
|---|
| 2779 | test -z "$AS" && AS=as | 
|---|
| 2780 | test -z "$CC" && CC=cc | 
|---|
| 2781 | test -z "$DLLTOOL" && DLLTOOL=dlltool | 
|---|
| 2782 | test -z "$LD" && LD=ld | 
|---|
| 2783 | test -z "$LN_S" && LN_S="ln -s" | 
|---|
| 2784 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | 
|---|
| 2785 | test -z "$NM" && NM=nm | 
|---|
| 2786 | test -z "$OBJDUMP" && OBJDUMP=objdump | 
|---|
| 2787 | test -z "$RANLIB" && RANLIB=: | 
|---|
| 2788 | test -z "$STRIP" && STRIP=: | 
|---|
| 2789 | test -z "$ac_objext" && ac_objext=o | 
|---|
| 2790 |  | 
|---|
| 2791 | if test x"$host" != x"$build"; then | 
|---|
| 2792 | ac_tool_prefix=${host_alias}- | 
|---|
| 2793 | else | 
|---|
| 2794 | ac_tool_prefix= | 
|---|
| 2795 | fi | 
|---|
| 2796 |  | 
|---|
| 2797 | # Transform linux* to *-*-linux-gnu*, to support old configure scripts. | 
|---|
| 2798 | case $host_os in | 
|---|
| 2799 | linux-gnu*) ;; | 
|---|
| 2800 | linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` | 
|---|
| 2801 | esac | 
|---|
| 2802 |  | 
|---|
| 2803 | case $host_os in | 
|---|
| 2804 | aix3*) | 
|---|
| 2805 | # AIX sometimes has problems with the GCC collect2 program.  For some | 
|---|
| 2806 | # reason, if we set the COLLECT_NAMES environment variable, the problems | 
|---|
| 2807 | # vanish in a puff of smoke. | 
|---|
| 2808 | if test "X${COLLECT_NAMES+set}" != Xset; then | 
|---|
| 2809 | COLLECT_NAMES= | 
|---|
| 2810 | export COLLECT_NAMES | 
|---|
| 2811 | fi | 
|---|
| 2812 | ;; | 
|---|
| 2813 | esac | 
|---|
| 2814 |  | 
|---|
| 2815 | # Determine commands to create old-style static archives. | 
|---|
| 2816 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' | 
|---|
| 2817 | old_postinstall_cmds='chmod 644 $oldlib' | 
|---|
| 2818 | old_postuninstall_cmds= | 
|---|
| 2819 |  | 
|---|
| 2820 | if test -n "$RANLIB"; then | 
|---|
| 2821 | case $host_os in | 
|---|
| 2822 | openbsd*) | 
|---|
| 2823 | old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" | 
|---|
| 2824 | ;; | 
|---|
| 2825 | *) | 
|---|
| 2826 | old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" | 
|---|
| 2827 | ;; | 
|---|
| 2828 | esac | 
|---|
| 2829 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | 
|---|
| 2830 | fi | 
|---|
| 2831 |  | 
|---|
| 2832 | # Allow CC to be a program name with arguments. | 
|---|
| 2833 | set dummy $CC | 
|---|
| 2834 | compiler="$2" | 
|---|
| 2835 |  | 
|---|
| 2836 | echo $ac_n "checking for objdir""... $ac_c" 1>&6 | 
|---|
| 2837 | echo "configure:2838: checking for objdir" >&5 | 
|---|
| 2838 | rm -f .libs 2>/dev/null | 
|---|
| 2839 | mkdir .libs 2>/dev/null | 
|---|
| 2840 | if test -d .libs; then | 
|---|
| 2841 | objdir=.libs | 
|---|
| 2842 | else | 
|---|
| 2843 | # MS-DOS does not allow filenames that begin with a dot. | 
|---|
| 2844 | objdir=_libs | 
|---|
| 2845 | fi | 
|---|
| 2846 | rmdir .libs 2>/dev/null | 
|---|
| 2847 | echo "$ac_t""$objdir" 1>&6 | 
|---|
| 2848 |  | 
|---|
| 2849 |  | 
|---|
| 2850 | # Check whether --with-pic or --without-pic was given. | 
|---|
| 2851 | if test "${with_pic+set}" = set; then | 
|---|
| 2852 | withval="$with_pic" | 
|---|
| 2853 | pic_mode="$withval" | 
|---|
| 2854 | else | 
|---|
| 2855 | pic_mode=default | 
|---|
| 2856 | fi | 
|---|
| 2857 |  | 
|---|
| 2858 | test -z "$pic_mode" && pic_mode=default | 
|---|
| 2859 |  | 
|---|
| 2860 | # We assume here that the value for lt_cv_prog_cc_pic will not be cached | 
|---|
| 2861 | # in isolation, and that seeing it set (from the cache) indicates that | 
|---|
| 2862 | # the associated values are set (in the cache) correctly too. | 
|---|
| 2863 | echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6 | 
|---|
| 2864 | echo "configure:2865: checking for $compiler option to produce PIC" >&5 | 
|---|
| 2865 | if eval "test \"`echo '$''{'lt_cv_prog_cc_pic'+set}'`\" = set"; then | 
|---|
| 2866 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 2867 | else | 
|---|
| 2868 | lt_cv_prog_cc_pic= | 
|---|
| 2869 | lt_cv_prog_cc_shlib= | 
|---|
| 2870 | lt_cv_prog_cc_wl= | 
|---|
| 2871 | lt_cv_prog_cc_static= | 
|---|
| 2872 | lt_cv_prog_cc_no_builtin= | 
|---|
| 2873 | lt_cv_prog_cc_can_build_shared=$can_build_shared | 
|---|
| 2874 |  | 
|---|
| 2875 | if test "$GCC" = yes; then | 
|---|
| 2876 | lt_cv_prog_cc_wl='-Wl,' | 
|---|
| 2877 | lt_cv_prog_cc_static='-static' | 
|---|
| 2878 |  | 
|---|
| 2879 | case $host_os in | 
|---|
| 2880 | aix*) | 
|---|
| 2881 | # Below there is a dirty hack to force normal static linking with -ldl | 
|---|
| 2882 | # The problem is because libdl dynamically linked with both libc and | 
|---|
| 2883 | # libC (AIX C++ library), which obviously doesn't included in libraries | 
|---|
| 2884 | # list by gcc. This cause undefined symbols with -static flags. | 
|---|
| 2885 | # This hack allows C programs to be linked with "-static -ldl", but | 
|---|
| 2886 | # not sure about C++ programs. | 
|---|
| 2887 | lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC" | 
|---|
| 2888 | ;; | 
|---|
| 2889 | amigaos*) | 
|---|
| 2890 | # FIXME: we need at least 68020 code to build shared libraries, but | 
|---|
| 2891 | # adding the `-m68020' flag to GCC prevents building anything better, | 
|---|
| 2892 | # like `-m68040'. | 
|---|
| 2893 | lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4' | 
|---|
| 2894 | ;; | 
|---|
| 2895 | beos* | irix5* | irix6* | osf3* | osf4* | osf5*) | 
|---|
| 2896 | # PIC is the default for these OSes. | 
|---|
| 2897 | ;; | 
|---|
| 2898 | darwin* | rhapsody*) | 
|---|
| 2899 | # PIC is the default on this platform | 
|---|
| 2900 | # Common symbols not allowed in MH_DYLIB files | 
|---|
| 2901 | lt_cv_prog_cc_pic='-fno-common' | 
|---|
| 2902 | ;; | 
|---|
| 2903 | cygwin* | mingw* | pw32* | os2*) | 
|---|
| 2904 | # This hack is so that the source file can tell whether it is being | 
|---|
| 2905 | # built for inclusion in a dll (and should export symbols for example). | 
|---|
| 2906 | lt_cv_prog_cc_pic='-DDLL_EXPORT' | 
|---|
| 2907 | ;; | 
|---|
| 2908 | sysv4*MP*) | 
|---|
| 2909 | if test -d /usr/nec; then | 
|---|
| 2910 | lt_cv_prog_cc_pic=-Kconform_pic | 
|---|
| 2911 | fi | 
|---|
| 2912 | ;; | 
|---|
| 2913 | *) | 
|---|
| 2914 | lt_cv_prog_cc_pic='-fPIC' | 
|---|
| 2915 | ;; | 
|---|
| 2916 | esac | 
|---|
| 2917 | else | 
|---|
| 2918 | # PORTME Check for PIC flags for the system compiler. | 
|---|
| 2919 | case $host_os in | 
|---|
| 2920 | aix3* | aix4* | aix5*) | 
|---|
| 2921 | lt_cv_prog_cc_wl='-Wl,' | 
|---|
| 2922 | # All AIX code is PIC. | 
|---|
| 2923 | if test "$host_cpu" = ia64; then | 
|---|
| 2924 | # AIX 5 now supports IA64 processor | 
|---|
| 2925 | lt_cv_prog_cc_static='-Bstatic' | 
|---|
| 2926 | else | 
|---|
| 2927 | lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp' | 
|---|
| 2928 | fi | 
|---|
| 2929 | ;; | 
|---|
| 2930 |  | 
|---|
| 2931 | hpux9* | hpux10* | hpux11*) | 
|---|
| 2932 | # Is there a better lt_cv_prog_cc_static that works with the bundled CC? | 
|---|
| 2933 | lt_cv_prog_cc_wl='-Wl,' | 
|---|
| 2934 | lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive" | 
|---|
| 2935 | lt_cv_prog_cc_pic='+Z' | 
|---|
| 2936 | ;; | 
|---|
| 2937 |  | 
|---|
| 2938 | irix5* | irix6*) | 
|---|
| 2939 | lt_cv_prog_cc_wl='-Wl,' | 
|---|
| 2940 | lt_cv_prog_cc_static='-non_shared' | 
|---|
| 2941 | # PIC (with -KPIC) is the default. | 
|---|
| 2942 | ;; | 
|---|
| 2943 |  | 
|---|
| 2944 | cygwin* | mingw* | pw32* | os2*) | 
|---|
| 2945 | # This hack is so that the source file can tell whether it is being | 
|---|
| 2946 | # built for inclusion in a dll (and should export symbols for example). | 
|---|
| 2947 | lt_cv_prog_cc_pic='-DDLL_EXPORT' | 
|---|
| 2948 | ;; | 
|---|
| 2949 |  | 
|---|
| 2950 | newsos6) | 
|---|
| 2951 | lt_cv_prog_cc_pic='-KPIC' | 
|---|
| 2952 | lt_cv_prog_cc_static='-Bstatic' | 
|---|
| 2953 | ;; | 
|---|
| 2954 |  | 
|---|
| 2955 | osf3* | osf4* | osf5*) | 
|---|
| 2956 | # All OSF/1 code is PIC. | 
|---|
| 2957 | lt_cv_prog_cc_wl='-Wl,' | 
|---|
| 2958 | lt_cv_prog_cc_static='-non_shared' | 
|---|
| 2959 | ;; | 
|---|
| 2960 |  | 
|---|
| 2961 | sco3.2v5*) | 
|---|
| 2962 | lt_cv_prog_cc_pic='-Kpic' | 
|---|
| 2963 | lt_cv_prog_cc_static='-dn' | 
|---|
| 2964 | lt_cv_prog_cc_shlib='-belf' | 
|---|
| 2965 | ;; | 
|---|
| 2966 |  | 
|---|
| 2967 | solaris*) | 
|---|
| 2968 | lt_cv_prog_cc_pic='-KPIC' | 
|---|
| 2969 | lt_cv_prog_cc_static='-Bstatic' | 
|---|
| 2970 | lt_cv_prog_cc_wl='-Wl,' | 
|---|
| 2971 | ;; | 
|---|
| 2972 |  | 
|---|
| 2973 | sunos4*) | 
|---|
| 2974 | lt_cv_prog_cc_pic='-PIC' | 
|---|
| 2975 | lt_cv_prog_cc_static='-Bstatic' | 
|---|
| 2976 | lt_cv_prog_cc_wl='-Qoption ld ' | 
|---|
| 2977 | ;; | 
|---|
| 2978 |  | 
|---|
| 2979 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
|---|
| 2980 | lt_cv_prog_cc_pic='-KPIC' | 
|---|
| 2981 | lt_cv_prog_cc_static='-Bstatic' | 
|---|
| 2982 | if test "x$host_vendor" = xsni; then | 
|---|
| 2983 | lt_cv_prog_cc_wl='-LD' | 
|---|
| 2984 | else | 
|---|
| 2985 | lt_cv_prog_cc_wl='-Wl,' | 
|---|
| 2986 | fi | 
|---|
| 2987 | ;; | 
|---|
| 2988 |  | 
|---|
| 2989 | uts4*) | 
|---|
| 2990 | lt_cv_prog_cc_pic='-pic' | 
|---|
| 2991 | lt_cv_prog_cc_static='-Bstatic' | 
|---|
| 2992 | ;; | 
|---|
| 2993 |  | 
|---|
| 2994 | sysv4*MP*) | 
|---|
| 2995 | if test -d /usr/nec ;then | 
|---|
| 2996 | lt_cv_prog_cc_pic='-Kconform_pic' | 
|---|
| 2997 | lt_cv_prog_cc_static='-Bstatic' | 
|---|
| 2998 | fi | 
|---|
| 2999 | ;; | 
|---|
| 3000 |  | 
|---|
| 3001 | *) | 
|---|
| 3002 | lt_cv_prog_cc_can_build_shared=no | 
|---|
| 3003 | ;; | 
|---|
| 3004 | esac | 
|---|
| 3005 | fi | 
|---|
| 3006 |  | 
|---|
| 3007 | fi | 
|---|
| 3008 |  | 
|---|
| 3009 | if test -z "$lt_cv_prog_cc_pic"; then | 
|---|
| 3010 | echo "$ac_t""none" 1>&6 | 
|---|
| 3011 | else | 
|---|
| 3012 | echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6 | 
|---|
| 3013 |  | 
|---|
| 3014 | # Check to make sure the pic_flag actually works. | 
|---|
| 3015 | echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6 | 
|---|
| 3016 | echo "configure:3017: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5 | 
|---|
| 3017 | if eval "test \"`echo '$''{'lt_cv_prog_cc_pic_works'+set}'`\" = set"; then | 
|---|
| 3018 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 3019 | else | 
|---|
| 3020 | save_CFLAGS="$CFLAGS" | 
|---|
| 3021 | CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC" | 
|---|
| 3022 | cat > conftest.$ac_ext <<EOF | 
|---|
| 3023 | #line 3024 "configure" | 
|---|
| 3024 | #include "confdefs.h" | 
|---|
| 3025 |  | 
|---|
| 3026 | int main() { | 
|---|
| 3027 |  | 
|---|
| 3028 | ; return 0; } | 
|---|
| 3029 | EOF | 
|---|
| 3030 | if { (eval echo configure:3031: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
|---|
| 3031 | rm -rf conftest* | 
|---|
| 3032 | case $host_os in | 
|---|
| 3033 | hpux9* | hpux10* | hpux11*) | 
|---|
| 3034 | # On HP-UX, both CC and GCC only warn that PIC is supported... then | 
|---|
| 3035 | # they create non-PIC objects.  So, if there were any warnings, we | 
|---|
| 3036 | # assume that PIC is not supported. | 
|---|
| 3037 | if test -s conftest.err; then | 
|---|
| 3038 | lt_cv_prog_cc_pic_works=no | 
|---|
| 3039 | else | 
|---|
| 3040 | lt_cv_prog_cc_pic_works=yes | 
|---|
| 3041 | fi | 
|---|
| 3042 | ;; | 
|---|
| 3043 | *) | 
|---|
| 3044 | lt_cv_prog_cc_pic_works=yes | 
|---|
| 3045 | ;; | 
|---|
| 3046 | esac | 
|---|
| 3047 |  | 
|---|
| 3048 | else | 
|---|
| 3049 | echo "configure: failed program was:" >&5 | 
|---|
| 3050 | cat conftest.$ac_ext >&5 | 
|---|
| 3051 | rm -rf conftest* | 
|---|
| 3052 | lt_cv_prog_cc_pic_works=no | 
|---|
| 3053 |  | 
|---|
| 3054 | fi | 
|---|
| 3055 | rm -f conftest* | 
|---|
| 3056 | CFLAGS="$save_CFLAGS" | 
|---|
| 3057 |  | 
|---|
| 3058 | fi | 
|---|
| 3059 |  | 
|---|
| 3060 |  | 
|---|
| 3061 | if test "X$lt_cv_prog_cc_pic_works" = Xno; then | 
|---|
| 3062 | lt_cv_prog_cc_pic= | 
|---|
| 3063 | lt_cv_prog_cc_can_build_shared=no | 
|---|
| 3064 | else | 
|---|
| 3065 | lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic" | 
|---|
| 3066 | fi | 
|---|
| 3067 |  | 
|---|
| 3068 | echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6 | 
|---|
| 3069 | fi | 
|---|
| 3070 |  | 
|---|
| 3071 | # Check for any special shared library compilation flags. | 
|---|
| 3072 | if test -n "$lt_cv_prog_cc_shlib"; then | 
|---|
| 3073 | echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2 | 
|---|
| 3074 | if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then : | 
|---|
| 3075 | else | 
|---|
| 3076 | echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2 | 
|---|
| 3077 | lt_cv_prog_cc_can_build_shared=no | 
|---|
| 3078 | fi | 
|---|
| 3079 | fi | 
|---|
| 3080 |  | 
|---|
| 3081 | echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6 | 
|---|
| 3082 | echo "configure:3083: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5 | 
|---|
| 3083 | if eval "test \"`echo '$''{'lt_cv_prog_cc_static_works'+set}'`\" = set"; then | 
|---|
| 3084 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 3085 | else | 
|---|
| 3086 | lt_cv_prog_cc_static_works=no | 
|---|
| 3087 | save_LDFLAGS="$LDFLAGS" | 
|---|
| 3088 | LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static" | 
|---|
| 3089 | cat > conftest.$ac_ext <<EOF | 
|---|
| 3090 | #line 3091 "configure" | 
|---|
| 3091 | #include "confdefs.h" | 
|---|
| 3092 |  | 
|---|
| 3093 | int main() { | 
|---|
| 3094 |  | 
|---|
| 3095 | ; return 0; } | 
|---|
| 3096 | EOF | 
|---|
| 3097 | if { (eval echo configure:3098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 3098 | rm -rf conftest* | 
|---|
| 3099 | lt_cv_prog_cc_static_works=yes | 
|---|
| 3100 | else | 
|---|
| 3101 | echo "configure: failed program was:" >&5 | 
|---|
| 3102 | cat conftest.$ac_ext >&5 | 
|---|
| 3103 | fi | 
|---|
| 3104 | rm -f conftest* | 
|---|
| 3105 | LDFLAGS="$save_LDFLAGS" | 
|---|
| 3106 |  | 
|---|
| 3107 | fi | 
|---|
| 3108 |  | 
|---|
| 3109 |  | 
|---|
| 3110 | # Belt *and* braces to stop my trousers falling down: | 
|---|
| 3111 | test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static= | 
|---|
| 3112 | echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6 | 
|---|
| 3113 |  | 
|---|
| 3114 | pic_flag="$lt_cv_prog_cc_pic" | 
|---|
| 3115 | special_shlib_compile_flags="$lt_cv_prog_cc_shlib" | 
|---|
| 3116 | wl="$lt_cv_prog_cc_wl" | 
|---|
| 3117 | link_static_flag="$lt_cv_prog_cc_static" | 
|---|
| 3118 | no_builtin_flag="$lt_cv_prog_cc_no_builtin" | 
|---|
| 3119 | can_build_shared="$lt_cv_prog_cc_can_build_shared" | 
|---|
| 3120 |  | 
|---|
| 3121 |  | 
|---|
| 3122 | # Check to see if options -o and -c are simultaneously supported by compiler | 
|---|
| 3123 | echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6 | 
|---|
| 3124 | echo "configure:3125: checking if $compiler supports -c -o file.$ac_objext" >&5 | 
|---|
| 3125 | if eval "test \"`echo '$''{'lt_cv_compiler_c_o'+set}'`\" = set"; then | 
|---|
| 3126 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 3127 | else | 
|---|
| 3128 |  | 
|---|
| 3129 | $rm -r conftest 2>/dev/null | 
|---|
| 3130 | mkdir conftest | 
|---|
| 3131 | cd conftest | 
|---|
| 3132 | echo "int some_variable = 0;" > conftest.$ac_ext | 
|---|
| 3133 | mkdir out | 
|---|
| 3134 | # According to Tom Tromey, Ian Lance Taylor reported there are C compilers | 
|---|
| 3135 | # that will create temporary files in the current directory regardless of | 
|---|
| 3136 | # the output directory.  Thus, making CWD read-only will cause this test | 
|---|
| 3137 | # to fail, enabling locking or at least warning the user not to do parallel | 
|---|
| 3138 | # builds. | 
|---|
| 3139 | chmod -w . | 
|---|
| 3140 | save_CFLAGS="$CFLAGS" | 
|---|
| 3141 | CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" | 
|---|
| 3142 | compiler_c_o=no | 
|---|
| 3143 | if { (eval echo configure:3144: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then | 
|---|
| 3144 | # The compiler can only warn and ignore the option if not recognized | 
|---|
| 3145 | # So say no if there are warnings | 
|---|
| 3146 | if test -s out/conftest.err; then | 
|---|
| 3147 | lt_cv_compiler_c_o=no | 
|---|
| 3148 | else | 
|---|
| 3149 | lt_cv_compiler_c_o=yes | 
|---|
| 3150 | fi | 
|---|
| 3151 | else | 
|---|
| 3152 | # Append any errors to the config.log. | 
|---|
| 3153 | cat out/conftest.err 1>&5 | 
|---|
| 3154 | lt_cv_compiler_c_o=no | 
|---|
| 3155 | fi | 
|---|
| 3156 | CFLAGS="$save_CFLAGS" | 
|---|
| 3157 | chmod u+w . | 
|---|
| 3158 | $rm conftest* out/* | 
|---|
| 3159 | rmdir out | 
|---|
| 3160 | cd .. | 
|---|
| 3161 | rmdir conftest | 
|---|
| 3162 | $rm -r conftest 2>/dev/null | 
|---|
| 3163 |  | 
|---|
| 3164 | fi | 
|---|
| 3165 |  | 
|---|
| 3166 | compiler_c_o=$lt_cv_compiler_c_o | 
|---|
| 3167 | echo "$ac_t""$compiler_c_o" 1>&6 | 
|---|
| 3168 |  | 
|---|
| 3169 | if test x"$compiler_c_o" = x"yes"; then | 
|---|
| 3170 | # Check to see if we can write to a .lo | 
|---|
| 3171 | echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6 | 
|---|
| 3172 | echo "configure:3173: checking if $compiler supports -c -o file.lo" >&5 | 
|---|
| 3173 | if eval "test \"`echo '$''{'lt_cv_compiler_o_lo'+set}'`\" = set"; then | 
|---|
| 3174 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 3175 | else | 
|---|
| 3176 |  | 
|---|
| 3177 | lt_cv_compiler_o_lo=no | 
|---|
| 3178 | save_CFLAGS="$CFLAGS" | 
|---|
| 3179 | CFLAGS="$CFLAGS -c -o conftest.lo" | 
|---|
| 3180 | save_objext="$ac_objext" | 
|---|
| 3181 | ac_objext=lo | 
|---|
| 3182 | cat > conftest.$ac_ext <<EOF | 
|---|
| 3183 | #line 3184 "configure" | 
|---|
| 3184 | #include "confdefs.h" | 
|---|
| 3185 |  | 
|---|
| 3186 | int main() { | 
|---|
| 3187 | int some_variable = 0; | 
|---|
| 3188 | ; return 0; } | 
|---|
| 3189 | EOF | 
|---|
| 3190 | if { (eval echo configure:3191: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
|---|
| 3191 | rm -rf conftest* | 
|---|
| 3192 | # The compiler can only warn and ignore the option if not recognized | 
|---|
| 3193 | # So say no if there are warnings | 
|---|
| 3194 | if test -s conftest.err; then | 
|---|
| 3195 | lt_cv_compiler_o_lo=no | 
|---|
| 3196 | else | 
|---|
| 3197 | lt_cv_compiler_o_lo=yes | 
|---|
| 3198 | fi | 
|---|
| 3199 |  | 
|---|
| 3200 | else | 
|---|
| 3201 | echo "configure: failed program was:" >&5 | 
|---|
| 3202 | cat conftest.$ac_ext >&5 | 
|---|
| 3203 | fi | 
|---|
| 3204 | rm -f conftest* | 
|---|
| 3205 | ac_objext="$save_objext" | 
|---|
| 3206 | CFLAGS="$save_CFLAGS" | 
|---|
| 3207 |  | 
|---|
| 3208 | fi | 
|---|
| 3209 |  | 
|---|
| 3210 | compiler_o_lo=$lt_cv_compiler_o_lo | 
|---|
| 3211 | echo "$ac_t""$compiler_o_lo" 1>&6 | 
|---|
| 3212 | else | 
|---|
| 3213 | compiler_o_lo=no | 
|---|
| 3214 | fi | 
|---|
| 3215 |  | 
|---|
| 3216 | # Check to see if we can do hard links to lock some files if needed | 
|---|
| 3217 | hard_links="nottested" | 
|---|
| 3218 | if test "$compiler_c_o" = no && test "$need_locks" != no; then | 
|---|
| 3219 | # do not overwrite the value of need_locks provided by the user | 
|---|
| 3220 | echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6 | 
|---|
| 3221 | echo "configure:3222: checking if we can lock with hard links" >&5 | 
|---|
| 3222 | hard_links=yes | 
|---|
| 3223 | $rm conftest* | 
|---|
| 3224 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
|---|
| 3225 | touch conftest.a | 
|---|
| 3226 | ln conftest.a conftest.b 2>&5 || hard_links=no | 
|---|
| 3227 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
|---|
| 3228 | echo "$ac_t""$hard_links" 1>&6 | 
|---|
| 3229 | if test "$hard_links" = no; then | 
|---|
| 3230 | echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2 | 
|---|
| 3231 | need_locks=warn | 
|---|
| 3232 | fi | 
|---|
| 3233 | else | 
|---|
| 3234 | need_locks=no | 
|---|
| 3235 | fi | 
|---|
| 3236 |  | 
|---|
| 3237 | if test "$GCC" = yes; then | 
|---|
| 3238 | # Check to see if options -fno-rtti -fno-exceptions are supported by compiler | 
|---|
| 3239 | echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6 | 
|---|
| 3240 | echo "configure:3241: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | 
|---|
| 3241 | echo "int some_variable = 0;" > conftest.$ac_ext | 
|---|
| 3242 | save_CFLAGS="$CFLAGS" | 
|---|
| 3243 | CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" | 
|---|
| 3244 | compiler_rtti_exceptions=no | 
|---|
| 3245 | cat > conftest.$ac_ext <<EOF | 
|---|
| 3246 | #line 3247 "configure" | 
|---|
| 3247 | #include "confdefs.h" | 
|---|
| 3248 |  | 
|---|
| 3249 | int main() { | 
|---|
| 3250 | int some_variable = 0; | 
|---|
| 3251 | ; return 0; } | 
|---|
| 3252 | EOF | 
|---|
| 3253 | if { (eval echo configure:3254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
|---|
| 3254 | rm -rf conftest* | 
|---|
| 3255 | # The compiler can only warn and ignore the option if not recognized | 
|---|
| 3256 | # So say no if there are warnings | 
|---|
| 3257 | if test -s conftest.err; then | 
|---|
| 3258 | compiler_rtti_exceptions=no | 
|---|
| 3259 | else | 
|---|
| 3260 | compiler_rtti_exceptions=yes | 
|---|
| 3261 | fi | 
|---|
| 3262 |  | 
|---|
| 3263 | else | 
|---|
| 3264 | echo "configure: failed program was:" >&5 | 
|---|
| 3265 | cat conftest.$ac_ext >&5 | 
|---|
| 3266 | fi | 
|---|
| 3267 | rm -f conftest* | 
|---|
| 3268 | CFLAGS="$save_CFLAGS" | 
|---|
| 3269 | echo "$ac_t""$compiler_rtti_exceptions" 1>&6 | 
|---|
| 3270 |  | 
|---|
| 3271 | if test "$compiler_rtti_exceptions" = "yes"; then | 
|---|
| 3272 | no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions' | 
|---|
| 3273 | else | 
|---|
| 3274 | no_builtin_flag=' -fno-builtin' | 
|---|
| 3275 | fi | 
|---|
| 3276 | fi | 
|---|
| 3277 |  | 
|---|
| 3278 | # See if the linker supports building shared libraries. | 
|---|
| 3279 | echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6 | 
|---|
| 3280 | echo "configure:3281: checking whether the linker ($LD) supports shared libraries" >&5 | 
|---|
| 3281 |  | 
|---|
| 3282 | allow_undefined_flag= | 
|---|
| 3283 | no_undefined_flag= | 
|---|
| 3284 | need_lib_prefix=unknown | 
|---|
| 3285 | need_version=unknown | 
|---|
| 3286 | # when you set need_version to no, make sure it does not cause -set_version | 
|---|
| 3287 | # flags to be left without arguments | 
|---|
| 3288 | archive_cmds= | 
|---|
| 3289 | archive_expsym_cmds= | 
|---|
| 3290 | old_archive_from_new_cmds= | 
|---|
| 3291 | old_archive_from_expsyms_cmds= | 
|---|
| 3292 | export_dynamic_flag_spec= | 
|---|
| 3293 | whole_archive_flag_spec= | 
|---|
| 3294 | thread_safe_flag_spec= | 
|---|
| 3295 | hardcode_into_libs=no | 
|---|
| 3296 | hardcode_libdir_flag_spec= | 
|---|
| 3297 | hardcode_libdir_separator= | 
|---|
| 3298 | hardcode_direct=no | 
|---|
| 3299 | hardcode_minus_L=no | 
|---|
| 3300 | hardcode_shlibpath_var=unsupported | 
|---|
| 3301 | runpath_var= | 
|---|
| 3302 | link_all_deplibs=unknown | 
|---|
| 3303 | always_export_symbols=no | 
|---|
| 3304 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' | 
|---|
| 3305 | # include_expsyms should be a list of space-separated symbols to be *always* | 
|---|
| 3306 | # included in the symbol list | 
|---|
| 3307 | include_expsyms= | 
|---|
| 3308 | # exclude_expsyms can be an egrep regular expression of symbols to exclude | 
|---|
| 3309 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | 
|---|
| 3310 | # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | 
|---|
| 3311 | # as well as any symbol that contains `d'. | 
|---|
| 3312 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" | 
|---|
| 3313 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | 
|---|
| 3314 | # platforms (ab)use it in PIC code, but their linkers get confused if | 
|---|
| 3315 | # the symbol is explicitly referenced.  Since portable code cannot | 
|---|
| 3316 | # rely on this symbol name, it's probably fine to never include it in | 
|---|
| 3317 | # preloaded symbol tables. | 
|---|
| 3318 | extract_expsyms_cmds= | 
|---|
| 3319 |  | 
|---|
| 3320 | case $host_os in | 
|---|
| 3321 | cygwin* | mingw* | pw32*) | 
|---|
| 3322 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | 
|---|
| 3323 | # When not using gcc, we currently assume that we are using | 
|---|
| 3324 | # Microsoft Visual C++. | 
|---|
| 3325 | if test "$GCC" != yes; then | 
|---|
| 3326 | with_gnu_ld=no | 
|---|
| 3327 | fi | 
|---|
| 3328 | ;; | 
|---|
| 3329 | openbsd*) | 
|---|
| 3330 | with_gnu_ld=no | 
|---|
| 3331 | ;; | 
|---|
| 3332 | esac | 
|---|
| 3333 |  | 
|---|
| 3334 | ld_shlibs=yes | 
|---|
| 3335 | if test "$with_gnu_ld" = yes; then | 
|---|
| 3336 | # If archive_cmds runs LD, not CC, wlarc should be empty | 
|---|
| 3337 | wlarc='${wl}' | 
|---|
| 3338 |  | 
|---|
| 3339 | # See if GNU ld supports shared libraries. | 
|---|
| 3340 | case $host_os in | 
|---|
| 3341 | aix3* | aix4* | aix5*) | 
|---|
| 3342 | # On AIX, the GNU linker is very broken | 
|---|
| 3343 | # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available. | 
|---|
| 3344 | ld_shlibs=no | 
|---|
| 3345 | cat <<EOF 1>&2 | 
|---|
| 3346 |  | 
|---|
| 3347 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | 
|---|
| 3348 | *** to be unable to reliably create shared libraries on AIX. | 
|---|
| 3349 | *** Therefore, libtool is disabling shared libraries support.  If you | 
|---|
| 3350 | *** really care for shared libraries, you may want to modify your PATH | 
|---|
| 3351 | *** so that a non-GNU linker is found, and then restart. | 
|---|
| 3352 |  | 
|---|
| 3353 | EOF | 
|---|
| 3354 | ;; | 
|---|
| 3355 |  | 
|---|
| 3356 | amigaos*) | 
|---|
| 3357 | archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | 
|---|
| 3358 | hardcode_libdir_flag_spec='-L$libdir' | 
|---|
| 3359 | hardcode_minus_L=yes | 
|---|
| 3360 |  | 
|---|
| 3361 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | 
|---|
| 3362 | # that the semantics of dynamic libraries on AmigaOS, at least up | 
|---|
| 3363 | # to version 4, is to share data among multiple programs linked | 
|---|
| 3364 | # with the same dynamic library.  Since this doesn't match the | 
|---|
| 3365 | # behavior of shared libraries on other platforms, we can use | 
|---|
| 3366 | # them. | 
|---|
| 3367 | ld_shlibs=no | 
|---|
| 3368 | ;; | 
|---|
| 3369 |  | 
|---|
| 3370 | beos*) | 
|---|
| 3371 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then | 
|---|
| 3372 | allow_undefined_flag=unsupported | 
|---|
| 3373 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | 
|---|
| 3374 | # support --undefined.  This deserves some investigation.  FIXME | 
|---|
| 3375 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|---|
| 3376 | else | 
|---|
| 3377 | ld_shlibs=no | 
|---|
| 3378 | fi | 
|---|
| 3379 | ;; | 
|---|
| 3380 |  | 
|---|
| 3381 | cygwin* | mingw* | pw32*) | 
|---|
| 3382 | # hardcode_libdir_flag_spec is actually meaningless, as there is | 
|---|
| 3383 | # no search path for DLLs. | 
|---|
| 3384 | hardcode_libdir_flag_spec='-L$libdir' | 
|---|
| 3385 | allow_undefined_flag=unsupported | 
|---|
| 3386 | always_export_symbols=yes | 
|---|
| 3387 |  | 
|---|
| 3388 | extract_expsyms_cmds='test -f $output_objdir/impgen.c || \ | 
|---|
| 3389 | sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~ | 
|---|
| 3390 | test -f $output_objdir/impgen.exe || (cd $output_objdir && \ | 
|---|
| 3391 | if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \ | 
|---|
| 3392 | else $CC -o impgen impgen.c ; fi)~ | 
|---|
| 3393 | $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def' | 
|---|
| 3394 |  | 
|---|
| 3395 | old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' | 
|---|
| 3396 |  | 
|---|
| 3397 | # cygwin and mingw dlls have different entry points and sets of symbols | 
|---|
| 3398 | # to exclude. | 
|---|
| 3399 | # FIXME: what about values for MSVC? | 
|---|
| 3400 | dll_entry=__cygwin_dll_entry@12 | 
|---|
| 3401 | dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~ | 
|---|
| 3402 | case $host_os in | 
|---|
| 3403 | mingw*) | 
|---|
| 3404 | # mingw values | 
|---|
| 3405 | dll_entry=_DllMainCRTStartup@12 | 
|---|
| 3406 | dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~ | 
|---|
| 3407 | ;; | 
|---|
| 3408 | esac | 
|---|
| 3409 |  | 
|---|
| 3410 | # mingw and cygwin differ, and it's simplest to just exclude the union | 
|---|
| 3411 | # of the two symbol sets. | 
|---|
| 3412 | dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12 | 
|---|
| 3413 |  | 
|---|
| 3414 | # recent cygwin and mingw systems supply a stub DllMain which the user | 
|---|
| 3415 | # can override, but on older systems we have to supply one (in ltdll.c) | 
|---|
| 3416 | if test "x$lt_cv_need_dllmain" = "xyes"; then | 
|---|
| 3417 | ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " | 
|---|
| 3418 | ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~ | 
|---|
| 3419 | test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' | 
|---|
| 3420 | else | 
|---|
| 3421 | ltdll_obj= | 
|---|
| 3422 | ltdll_cmds= | 
|---|
| 3423 | fi | 
|---|
| 3424 |  | 
|---|
| 3425 | # Extract the symbol export list from an `--export-all' def file, | 
|---|
| 3426 | # then regenerate the def file from the symbol export list, so that | 
|---|
| 3427 | # the compiled dll only exports the symbol export list. | 
|---|
| 3428 | # Be careful not to strip the DATA tag left be newer dlltools. | 
|---|
| 3429 | export_symbols_cmds="$ltdll_cmds"' | 
|---|
| 3430 | $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ | 
|---|
| 3431 | sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols' | 
|---|
| 3432 |  | 
|---|
| 3433 | # If the export-symbols file already is a .def file (1st line | 
|---|
| 3434 | # is EXPORTS), use it as is. | 
|---|
| 3435 | # If DATA tags from a recent dlltool are present, honour them! | 
|---|
| 3436 | archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then | 
|---|
| 3437 | cp $export_symbols $output_objdir/$soname-def; | 
|---|
| 3438 | else | 
|---|
| 3439 | echo EXPORTS > $output_objdir/$soname-def; | 
|---|
| 3440 | _lt_hint=1; | 
|---|
| 3441 | cat $export_symbols | while read symbol; do | 
|---|
| 3442 | set dummy \$symbol; | 
|---|
| 3443 | case \$# in | 
|---|
| 3444 | 2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; | 
|---|
| 3445 | *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;; | 
|---|
| 3446 | esac; | 
|---|
| 3447 | _lt_hint=`expr 1 + \$_lt_hint`; | 
|---|
| 3448 | done; | 
|---|
| 3449 | fi~ | 
|---|
| 3450 | '"$ltdll_cmds"' | 
|---|
| 3451 | $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ | 
|---|
| 3452 | $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~ | 
|---|
| 3453 | $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ | 
|---|
| 3454 | $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~ | 
|---|
| 3455 | $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags' | 
|---|
| 3456 | ;; | 
|---|
| 3457 |  | 
|---|
| 3458 | netbsd*) | 
|---|
| 3459 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
|---|
| 3460 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | 
|---|
| 3461 | wlarc= | 
|---|
| 3462 | else | 
|---|
| 3463 | archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|---|
| 3464 | archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
|---|
| 3465 | fi | 
|---|
| 3466 | ;; | 
|---|
| 3467 |  | 
|---|
| 3468 | solaris* | sysv5*) | 
|---|
| 3469 | if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then | 
|---|
| 3470 | ld_shlibs=no | 
|---|
| 3471 | cat <<EOF 1>&2 | 
|---|
| 3472 |  | 
|---|
| 3473 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | 
|---|
| 3474 | *** create shared libraries on Solaris systems.  Therefore, libtool | 
|---|
| 3475 | *** is disabling shared libraries support.  We urge you to upgrade GNU | 
|---|
| 3476 | *** binutils to release 2.9.1 or newer.  Another option is to modify | 
|---|
| 3477 | *** your PATH or compiler configuration so that the native linker is | 
|---|
| 3478 | *** used, and then restart. | 
|---|
| 3479 |  | 
|---|
| 3480 | EOF | 
|---|
| 3481 | elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then | 
|---|
| 3482 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|---|
| 3483 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
|---|
| 3484 | else | 
|---|
| 3485 | ld_shlibs=no | 
|---|
| 3486 | fi | 
|---|
| 3487 | ;; | 
|---|
| 3488 |  | 
|---|
| 3489 | sunos4*) | 
|---|
| 3490 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
|---|
| 3491 | wlarc= | 
|---|
| 3492 | hardcode_direct=yes | 
|---|
| 3493 | hardcode_shlibpath_var=no | 
|---|
| 3494 | ;; | 
|---|
| 3495 |  | 
|---|
| 3496 | *) | 
|---|
| 3497 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then | 
|---|
| 3498 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|---|
| 3499 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
|---|
| 3500 | else | 
|---|
| 3501 | ld_shlibs=no | 
|---|
| 3502 | fi | 
|---|
| 3503 | ;; | 
|---|
| 3504 | esac | 
|---|
| 3505 |  | 
|---|
| 3506 | if test "$ld_shlibs" = yes; then | 
|---|
| 3507 | runpath_var=LD_RUN_PATH | 
|---|
| 3508 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' | 
|---|
| 3509 | export_dynamic_flag_spec='${wl}--export-dynamic' | 
|---|
| 3510 | case $host_os in | 
|---|
| 3511 | cygwin* | mingw* | pw32*) | 
|---|
| 3512 | # dlltool doesn't understand --whole-archive et. al. | 
|---|
| 3513 | whole_archive_flag_spec= | 
|---|
| 3514 | ;; | 
|---|
| 3515 | *) | 
|---|
| 3516 | # ancient GNU ld didn't support --whole-archive et. al. | 
|---|
| 3517 | if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then | 
|---|
| 3518 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | 
|---|
| 3519 | else | 
|---|
| 3520 | whole_archive_flag_spec= | 
|---|
| 3521 | fi | 
|---|
| 3522 | ;; | 
|---|
| 3523 | esac | 
|---|
| 3524 | fi | 
|---|
| 3525 | else | 
|---|
| 3526 | # PORTME fill in a description of your system's linker (not GNU ld) | 
|---|
| 3527 | case $host_os in | 
|---|
| 3528 | aix3*) | 
|---|
| 3529 | allow_undefined_flag=unsupported | 
|---|
| 3530 | always_export_symbols=yes | 
|---|
| 3531 | archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' | 
|---|
| 3532 | # Note: this linker hardcodes the directories in LIBPATH if there | 
|---|
| 3533 | # are no directories specified by -L. | 
|---|
| 3534 | hardcode_minus_L=yes | 
|---|
| 3535 | if test "$GCC" = yes && test -z "$link_static_flag"; then | 
|---|
| 3536 | # Neither direct hardcoding nor static linking is supported with a | 
|---|
| 3537 | # broken collect2. | 
|---|
| 3538 | hardcode_direct=unsupported | 
|---|
| 3539 | fi | 
|---|
| 3540 | ;; | 
|---|
| 3541 |  | 
|---|
| 3542 | aix4* | aix5*) | 
|---|
| 3543 | if test "$host_cpu" = ia64; then | 
|---|
| 3544 | # On IA64, the linker does run time linking by default, so we don't | 
|---|
| 3545 | # have to do anything special. | 
|---|
| 3546 | aix_use_runtimelinking=no | 
|---|
| 3547 | exp_sym_flag='-Bexport' | 
|---|
| 3548 | no_entry_flag="" | 
|---|
| 3549 | else | 
|---|
| 3550 | aix_use_runtimelinking=no | 
|---|
| 3551 |  | 
|---|
| 3552 | # Test if we are trying to use run time linking or normal | 
|---|
| 3553 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | 
|---|
| 3554 | # need to do runtime linking. | 
|---|
| 3555 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) | 
|---|
| 3556 | for ld_flag in $LDFLAGS; do | 
|---|
| 3557 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | 
|---|
| 3558 | aix_use_runtimelinking=yes | 
|---|
| 3559 | break | 
|---|
| 3560 | fi | 
|---|
| 3561 | done | 
|---|
| 3562 | esac | 
|---|
| 3563 |  | 
|---|
| 3564 | exp_sym_flag='-bexport' | 
|---|
| 3565 | no_entry_flag='-bnoentry' | 
|---|
| 3566 | fi | 
|---|
| 3567 |  | 
|---|
| 3568 | # When large executables or shared objects are built, AIX ld can | 
|---|
| 3569 | # have problems creating the table of contents.  If linking a library | 
|---|
| 3570 | # or program results in "error TOC overflow" add -mminimal-toc to | 
|---|
| 3571 | # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not | 
|---|
| 3572 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | 
|---|
| 3573 |  | 
|---|
| 3574 | hardcode_direct=yes | 
|---|
| 3575 | archive_cmds='' | 
|---|
| 3576 | hardcode_libdir_separator=':' | 
|---|
| 3577 | if test "$GCC" = yes; then | 
|---|
| 3578 | case $host_os in aix4.[012]|aix4.[012].*) | 
|---|
| 3579 | collect2name=`${CC} -print-prog-name=collect2` | 
|---|
| 3580 | if test -f "$collect2name" && \ | 
|---|
| 3581 | strings "$collect2name" | grep resolve_lib_name >/dev/null | 
|---|
| 3582 | then | 
|---|
| 3583 | # We have reworked collect2 | 
|---|
| 3584 | hardcode_direct=yes | 
|---|
| 3585 | else | 
|---|
| 3586 | # We have old collect2 | 
|---|
| 3587 | hardcode_direct=unsupported | 
|---|
| 3588 | # It fails to find uninstalled libraries when the uninstalled | 
|---|
| 3589 | # path is not listed in the libpath.  Setting hardcode_minus_L | 
|---|
| 3590 | # to unsupported forces relinking | 
|---|
| 3591 | hardcode_minus_L=yes | 
|---|
| 3592 | hardcode_libdir_flag_spec='-L$libdir' | 
|---|
| 3593 | hardcode_libdir_separator= | 
|---|
| 3594 | fi | 
|---|
| 3595 | esac | 
|---|
| 3596 |  | 
|---|
| 3597 | shared_flag='-shared' | 
|---|
| 3598 | else | 
|---|
| 3599 | # not using gcc | 
|---|
| 3600 | if test "$host_cpu" = ia64; then | 
|---|
| 3601 | shared_flag='${wl}-G' | 
|---|
| 3602 | else | 
|---|
| 3603 | if test "$aix_use_runtimelinking" = yes; then | 
|---|
| 3604 | shared_flag='${wl}-G' | 
|---|
| 3605 | else | 
|---|
| 3606 | shared_flag='${wl}-bM:SRE' | 
|---|
| 3607 | fi | 
|---|
| 3608 | fi | 
|---|
| 3609 | fi | 
|---|
| 3610 |  | 
|---|
| 3611 | # It seems that -bexpall can do strange things, so it is better to | 
|---|
| 3612 | # generate a list of symbols to export. | 
|---|
| 3613 | always_export_symbols=yes | 
|---|
| 3614 | if test "$aix_use_runtimelinking" = yes; then | 
|---|
| 3615 | # Warning - without using the other runtime loading flags (-brtl), | 
|---|
| 3616 | # -berok will link without error, but may produce a broken library. | 
|---|
| 3617 | allow_undefined_flag='-berok' | 
|---|
| 3618 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib' | 
|---|
| 3619 | archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" | 
|---|
| 3620 | else | 
|---|
| 3621 | if test "$host_cpu" = ia64; then | 
|---|
| 3622 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | 
|---|
| 3623 | allow_undefined_flag="-z nodefs" | 
|---|
| 3624 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" | 
|---|
| 3625 | else | 
|---|
| 3626 | hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib' | 
|---|
| 3627 | # Warning - without using the other run time loading flags, | 
|---|
| 3628 | # -berok will link without error, but may produce a broken library. | 
|---|
| 3629 | allow_undefined_flag='${wl}-berok' | 
|---|
| 3630 | # This is a bit strange, but is similar to how AIX traditionally builds | 
|---|
| 3631 | # it's shared libraries. | 
|---|
| 3632 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname' | 
|---|
| 3633 | fi | 
|---|
| 3634 | fi | 
|---|
| 3635 | ;; | 
|---|
| 3636 |  | 
|---|
| 3637 | amigaos*) | 
|---|
| 3638 | archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | 
|---|
| 3639 | hardcode_libdir_flag_spec='-L$libdir' | 
|---|
| 3640 | hardcode_minus_L=yes | 
|---|
| 3641 | # see comment about different semantics on the GNU ld section | 
|---|
| 3642 | ld_shlibs=no | 
|---|
| 3643 | ;; | 
|---|
| 3644 |  | 
|---|
| 3645 | cygwin* | mingw* | pw32*) | 
|---|
| 3646 | # When not using gcc, we currently assume that we are using | 
|---|
| 3647 | # Microsoft Visual C++. | 
|---|
| 3648 | # hardcode_libdir_flag_spec is actually meaningless, as there is | 
|---|
| 3649 | # no search path for DLLs. | 
|---|
| 3650 | hardcode_libdir_flag_spec=' ' | 
|---|
| 3651 | allow_undefined_flag=unsupported | 
|---|
| 3652 | # Tell ltmain to make .lib files, not .a files. | 
|---|
| 3653 | libext=lib | 
|---|
| 3654 | # FIXME: Setting linknames here is a bad hack. | 
|---|
| 3655 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | 
|---|
| 3656 | # The linker will automatically build a .lib file if we build a DLL. | 
|---|
| 3657 | old_archive_from_new_cmds='true' | 
|---|
| 3658 | # FIXME: Should let the user specify the lib program. | 
|---|
| 3659 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' | 
|---|
| 3660 | fix_srcfile_path='`cygpath -w "$srcfile"`' | 
|---|
| 3661 | ;; | 
|---|
| 3662 |  | 
|---|
| 3663 | darwin* | rhapsody*) | 
|---|
| 3664 | case "$host_os" in | 
|---|
| 3665 | rhapsody* | darwin1.[012]) | 
|---|
| 3666 | allow_undefined_flag='-undefined suppress' | 
|---|
| 3667 | ;; | 
|---|
| 3668 | *) # Darwin 1.3 on | 
|---|
| 3669 | allow_undefined_flag='-flat_namespace -undefined suppress' | 
|---|
| 3670 | ;; | 
|---|
| 3671 | esac | 
|---|
| 3672 | # FIXME: Relying on posixy $() will cause problems for | 
|---|
| 3673 | #        cross-compilation, but unfortunately the echo tests do not | 
|---|
| 3674 | #        yet detect zsh echo's removal of \ escapes. | 
|---|
| 3675 | archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring' | 
|---|
| 3676 | # We need to add '_' to the symbols in $export_symbols first | 
|---|
| 3677 | #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols' | 
|---|
| 3678 | hardcode_direct=yes | 
|---|
| 3679 | hardcode_shlibpath_var=no | 
|---|
| 3680 | whole_archive_flag_spec='-all_load $convenience' | 
|---|
| 3681 | ;; | 
|---|
| 3682 |  | 
|---|
| 3683 | freebsd1*) | 
|---|
| 3684 | ld_shlibs=no | 
|---|
| 3685 | ;; | 
|---|
| 3686 |  | 
|---|
| 3687 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | 
|---|
| 3688 | # support.  Future versions do this automatically, but an explicit c++rt0.o | 
|---|
| 3689 | # does not break anything, and helps significantly (at the cost of a little | 
|---|
| 3690 | # extra space). | 
|---|
| 3691 | freebsd2.2*) | 
|---|
| 3692 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | 
|---|
| 3693 | hardcode_libdir_flag_spec='-R$libdir' | 
|---|
| 3694 | hardcode_direct=yes | 
|---|
| 3695 | hardcode_shlibpath_var=no | 
|---|
| 3696 | ;; | 
|---|
| 3697 |  | 
|---|
| 3698 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | 
|---|
| 3699 | freebsd2*) | 
|---|
| 3700 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
|---|
| 3701 | hardcode_direct=yes | 
|---|
| 3702 | hardcode_minus_L=yes | 
|---|
| 3703 | hardcode_shlibpath_var=no | 
|---|
| 3704 | ;; | 
|---|
| 3705 |  | 
|---|
| 3706 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | 
|---|
| 3707 | freebsd*) | 
|---|
| 3708 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | 
|---|
| 3709 | hardcode_libdir_flag_spec='-R$libdir' | 
|---|
| 3710 | hardcode_direct=yes | 
|---|
| 3711 | hardcode_shlibpath_var=no | 
|---|
| 3712 | ;; | 
|---|
| 3713 |  | 
|---|
| 3714 | hpux9* | hpux10* | hpux11*) | 
|---|
| 3715 | case $host_os in | 
|---|
| 3716 | hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;; | 
|---|
| 3717 | *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;; | 
|---|
| 3718 | esac | 
|---|
| 3719 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | 
|---|
| 3720 | hardcode_libdir_separator=: | 
|---|
| 3721 | hardcode_direct=yes | 
|---|
| 3722 | hardcode_minus_L=yes # Not in the search PATH, but as the default | 
|---|
| 3723 | # location of the library. | 
|---|
| 3724 | export_dynamic_flag_spec='${wl}-E' | 
|---|
| 3725 | ;; | 
|---|
| 3726 |  | 
|---|
| 3727 | irix5* | irix6*) | 
|---|
| 3728 | if test "$GCC" = yes; then | 
|---|
| 3729 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | 
|---|
| 3730 | else | 
|---|
| 3731 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | 
|---|
| 3732 | fi | 
|---|
| 3733 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | 
|---|
| 3734 | hardcode_libdir_separator=: | 
|---|
| 3735 | link_all_deplibs=yes | 
|---|
| 3736 | ;; | 
|---|
| 3737 |  | 
|---|
| 3738 | netbsd*) | 
|---|
| 3739 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
|---|
| 3740 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out | 
|---|
| 3741 | else | 
|---|
| 3742 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF | 
|---|
| 3743 | fi | 
|---|
| 3744 | hardcode_libdir_flag_spec='-R$libdir' | 
|---|
| 3745 | hardcode_direct=yes | 
|---|
| 3746 | hardcode_shlibpath_var=no | 
|---|
| 3747 | ;; | 
|---|
| 3748 |  | 
|---|
| 3749 | newsos6) | 
|---|
| 3750 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|---|
| 3751 | hardcode_direct=yes | 
|---|
| 3752 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | 
|---|
| 3753 | hardcode_libdir_separator=: | 
|---|
| 3754 | hardcode_shlibpath_var=no | 
|---|
| 3755 | ;; | 
|---|
| 3756 |  | 
|---|
| 3757 | openbsd*) | 
|---|
| 3758 | hardcode_direct=yes | 
|---|
| 3759 | hardcode_shlibpath_var=no | 
|---|
| 3760 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
|---|
| 3761 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' | 
|---|
| 3762 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | 
|---|
| 3763 | export_dynamic_flag_spec='${wl}-E' | 
|---|
| 3764 | else | 
|---|
| 3765 | case "$host_os" in | 
|---|
| 3766 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | 
|---|
| 3767 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
|---|
| 3768 | hardcode_libdir_flag_spec='-R$libdir' | 
|---|
| 3769 | ;; | 
|---|
| 3770 | *) | 
|---|
| 3771 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' | 
|---|
| 3772 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | 
|---|
| 3773 | ;; | 
|---|
| 3774 | esac | 
|---|
| 3775 | fi | 
|---|
| 3776 | ;; | 
|---|
| 3777 |  | 
|---|
| 3778 | os2*) | 
|---|
| 3779 | hardcode_libdir_flag_spec='-L$libdir' | 
|---|
| 3780 | hardcode_minus_L=yes | 
|---|
| 3781 | allow_undefined_flag=unsupported | 
|---|
| 3782 | archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' | 
|---|
| 3783 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | 
|---|
| 3784 | ;; | 
|---|
| 3785 |  | 
|---|
| 3786 | osf3*) | 
|---|
| 3787 | if test "$GCC" = yes; then | 
|---|
| 3788 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | 
|---|
| 3789 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | 
|---|
| 3790 | else | 
|---|
| 3791 | allow_undefined_flag=' -expect_unresolved \*' | 
|---|
| 3792 | archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | 
|---|
| 3793 | fi | 
|---|
| 3794 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | 
|---|
| 3795 | hardcode_libdir_separator=: | 
|---|
| 3796 | ;; | 
|---|
| 3797 |  | 
|---|
| 3798 | osf4* | osf5*)        # as osf3* with the addition of -msym flag | 
|---|
| 3799 | if test "$GCC" = yes; then | 
|---|
| 3800 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | 
|---|
| 3801 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | 
|---|
| 3802 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | 
|---|
| 3803 | else | 
|---|
| 3804 | allow_undefined_flag=' -expect_unresolved \*' | 
|---|
| 3805 | archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | 
|---|
| 3806 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ | 
|---|
| 3807 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' | 
|---|
| 3808 |  | 
|---|
| 3809 | #Both c and cxx compiler support -rpath directly | 
|---|
| 3810 | hardcode_libdir_flag_spec='-rpath $libdir' | 
|---|
| 3811 | fi | 
|---|
| 3812 | hardcode_libdir_separator=: | 
|---|
| 3813 | ;; | 
|---|
| 3814 |  | 
|---|
| 3815 | sco3.2v5*) | 
|---|
| 3816 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|---|
| 3817 | hardcode_shlibpath_var=no | 
|---|
| 3818 | runpath_var=LD_RUN_PATH | 
|---|
| 3819 | hardcode_runpath_var=yes | 
|---|
| 3820 | export_dynamic_flag_spec='${wl}-Bexport' | 
|---|
| 3821 | ;; | 
|---|
| 3822 |  | 
|---|
| 3823 | solaris*) | 
|---|
| 3824 | # gcc --version < 3.0 without binutils cannot create self contained | 
|---|
| 3825 | # shared libraries reliably, requiring libgcc.a to resolve some of | 
|---|
| 3826 | # the object symbols generated in some cases.  Libraries that use | 
|---|
| 3827 | # assert need libgcc.a to resolve __eprintf, for example.  Linking | 
|---|
| 3828 | # a copy of libgcc.a into every shared library to guarantee resolving | 
|---|
| 3829 | # such symbols causes other problems:  According to Tim Van Holder | 
|---|
| 3830 | # <tim.van.holder@pandora.be>, C++ libraries end up with a separate | 
|---|
| 3831 | # (to the application) exception stack for one thing. | 
|---|
| 3832 | no_undefined_flag=' -z defs' | 
|---|
| 3833 | if test "$GCC" = yes; then | 
|---|
| 3834 | case `$CC --version 2>/dev/null` in | 
|---|
| 3835 | [12].*) | 
|---|
| 3836 | cat <<EOF 1>&2 | 
|---|
| 3837 |  | 
|---|
| 3838 | *** Warning: Releases of GCC earlier than version 3.0 cannot reliably | 
|---|
| 3839 | *** create self contained shared libraries on Solaris systems, without | 
|---|
| 3840 | *** introducing a dependency on libgcc.a.  Therefore, libtool is disabling | 
|---|
| 3841 | *** -no-undefined support, which will at least allow you to build shared | 
|---|
| 3842 | *** libraries.  However, you may find that when you link such libraries | 
|---|
| 3843 | *** into an application without using GCC, you have to manually add | 
|---|
| 3844 | *** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to | 
|---|
| 3845 | *** upgrade to a newer version of GCC.  Another option is to rebuild your | 
|---|
| 3846 | *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer. | 
|---|
| 3847 |  | 
|---|
| 3848 | EOF | 
|---|
| 3849 | no_undefined_flag= | 
|---|
| 3850 | ;; | 
|---|
| 3851 | esac | 
|---|
| 3852 | fi | 
|---|
| 3853 | # $CC -shared without GNU ld will not create a library from C++ | 
|---|
| 3854 | # object files and a static libstdc++, better avoid it by now | 
|---|
| 3855 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|---|
| 3856 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
|---|
| 3857 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | 
|---|
| 3858 | hardcode_libdir_flag_spec='-R$libdir' | 
|---|
| 3859 | hardcode_shlibpath_var=no | 
|---|
| 3860 | case $host_os in | 
|---|
| 3861 | solaris2.[0-5] | solaris2.[0-5].*) ;; | 
|---|
| 3862 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) | 
|---|
| 3863 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; | 
|---|
| 3864 | esac | 
|---|
| 3865 | link_all_deplibs=yes | 
|---|
| 3866 | ;; | 
|---|
| 3867 |  | 
|---|
| 3868 | sunos4*) | 
|---|
| 3869 | if test "x$host_vendor" = xsequent; then | 
|---|
| 3870 | # Use $CC to link under sequent, because it throws in some extra .o | 
|---|
| 3871 | # files that make .init and .fini sections work. | 
|---|
| 3872 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | 
|---|
| 3873 | else | 
|---|
| 3874 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | 
|---|
| 3875 | fi | 
|---|
| 3876 | hardcode_libdir_flag_spec='-L$libdir' | 
|---|
| 3877 | hardcode_direct=yes | 
|---|
| 3878 | hardcode_minus_L=yes | 
|---|
| 3879 | hardcode_shlibpath_var=no | 
|---|
| 3880 | ;; | 
|---|
| 3881 |  | 
|---|
| 3882 | sysv4) | 
|---|
| 3883 | if test "x$host_vendor" = xsno; then | 
|---|
| 3884 | archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|---|
| 3885 | hardcode_direct=yes # is this really true??? | 
|---|
| 3886 | else | 
|---|
| 3887 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|---|
| 3888 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | 
|---|
| 3889 | fi | 
|---|
| 3890 | runpath_var='LD_RUN_PATH' | 
|---|
| 3891 | hardcode_shlibpath_var=no | 
|---|
| 3892 | ;; | 
|---|
| 3893 |  | 
|---|
| 3894 | sysv4.3*) | 
|---|
| 3895 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|---|
| 3896 | hardcode_shlibpath_var=no | 
|---|
| 3897 | export_dynamic_flag_spec='-Bexport' | 
|---|
| 3898 | ;; | 
|---|
| 3899 |  | 
|---|
| 3900 | sysv5*) | 
|---|
| 3901 | no_undefined_flag=' -z text' | 
|---|
| 3902 | # $CC -shared without GNU ld will not create a library from C++ | 
|---|
| 3903 | # object files and a static libstdc++, better avoid it by now | 
|---|
| 3904 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|---|
| 3905 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
|---|
| 3906 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | 
|---|
| 3907 | hardcode_libdir_flag_spec= | 
|---|
| 3908 | hardcode_shlibpath_var=no | 
|---|
| 3909 | runpath_var='LD_RUN_PATH' | 
|---|
| 3910 | ;; | 
|---|
| 3911 |  | 
|---|
| 3912 | uts4*) | 
|---|
| 3913 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|---|
| 3914 | hardcode_libdir_flag_spec='-L$libdir' | 
|---|
| 3915 | hardcode_shlibpath_var=no | 
|---|
| 3916 | ;; | 
|---|
| 3917 |  | 
|---|
| 3918 | dgux*) | 
|---|
| 3919 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|---|
| 3920 | hardcode_libdir_flag_spec='-L$libdir' | 
|---|
| 3921 | hardcode_shlibpath_var=no | 
|---|
| 3922 | ;; | 
|---|
| 3923 |  | 
|---|
| 3924 | sysv4*MP*) | 
|---|
| 3925 | if test -d /usr/nec; then | 
|---|
| 3926 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|---|
| 3927 | hardcode_shlibpath_var=no | 
|---|
| 3928 | runpath_var=LD_RUN_PATH | 
|---|
| 3929 | hardcode_runpath_var=yes | 
|---|
| 3930 | ld_shlibs=yes | 
|---|
| 3931 | fi | 
|---|
| 3932 | ;; | 
|---|
| 3933 |  | 
|---|
| 3934 | sysv4.2uw2*) | 
|---|
| 3935 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | 
|---|
| 3936 | hardcode_direct=yes | 
|---|
| 3937 | hardcode_minus_L=no | 
|---|
| 3938 | hardcode_shlibpath_var=no | 
|---|
| 3939 | hardcode_runpath_var=yes | 
|---|
| 3940 | runpath_var=LD_RUN_PATH | 
|---|
| 3941 | ;; | 
|---|
| 3942 |  | 
|---|
| 3943 | sysv5uw7* | unixware7*) | 
|---|
| 3944 | no_undefined_flag='${wl}-z ${wl}text' | 
|---|
| 3945 | if test "$GCC" = yes; then | 
|---|
| 3946 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
|---|
| 3947 | else | 
|---|
| 3948 | archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
|---|
| 3949 | fi | 
|---|
| 3950 | runpath_var='LD_RUN_PATH' | 
|---|
| 3951 | hardcode_shlibpath_var=no | 
|---|
| 3952 | ;; | 
|---|
| 3953 |  | 
|---|
| 3954 | *) | 
|---|
| 3955 | ld_shlibs=no | 
|---|
| 3956 | ;; | 
|---|
| 3957 | esac | 
|---|
| 3958 | fi | 
|---|
| 3959 | echo "$ac_t""$ld_shlibs" 1>&6 | 
|---|
| 3960 | test "$ld_shlibs" = no && can_build_shared=no | 
|---|
| 3961 |  | 
|---|
| 3962 | # Check hardcoding attributes. | 
|---|
| 3963 | echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6 | 
|---|
| 3964 | echo "configure:3965: checking how to hardcode library paths into programs" >&5 | 
|---|
| 3965 | hardcode_action= | 
|---|
| 3966 | if test -n "$hardcode_libdir_flag_spec" || \ | 
|---|
| 3967 | test -n "$runpath_var"; then | 
|---|
| 3968 |  | 
|---|
| 3969 | # We can hardcode non-existant directories. | 
|---|
| 3970 | if test "$hardcode_direct" != no && | 
|---|
| 3971 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | 
|---|
| 3972 | # have to relink, otherwise we might link with an installed library | 
|---|
| 3973 | # when we should be linking with a yet-to-be-installed one | 
|---|
| 3974 | ## test "$hardcode_shlibpath_var" != no && | 
|---|
| 3975 | test "$hardcode_minus_L" != no; then | 
|---|
| 3976 | # Linking always hardcodes the temporary library directory. | 
|---|
| 3977 | hardcode_action=relink | 
|---|
| 3978 | else | 
|---|
| 3979 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | 
|---|
| 3980 | hardcode_action=immediate | 
|---|
| 3981 | fi | 
|---|
| 3982 | else | 
|---|
| 3983 | # We cannot hardcode anything, or else we can only hardcode existing | 
|---|
| 3984 | # directories. | 
|---|
| 3985 | hardcode_action=unsupported | 
|---|
| 3986 | fi | 
|---|
| 3987 | echo "$ac_t""$hardcode_action" 1>&6 | 
|---|
| 3988 |  | 
|---|
| 3989 | striplib= | 
|---|
| 3990 | old_striplib= | 
|---|
| 3991 | echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6 | 
|---|
| 3992 | echo "configure:3993: checking whether stripping libraries is possible" >&5 | 
|---|
| 3993 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | 
|---|
| 3994 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | 
|---|
| 3995 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | 
|---|
| 3996 | echo "$ac_t""yes" 1>&6 | 
|---|
| 3997 | else | 
|---|
| 3998 | echo "$ac_t""no" 1>&6 | 
|---|
| 3999 | fi | 
|---|
| 4000 |  | 
|---|
| 4001 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | 
|---|
| 4002 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | 
|---|
| 4003 |  | 
|---|
| 4004 | # PORTME Fill in your ld.so characteristics | 
|---|
| 4005 | echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6 | 
|---|
| 4006 | echo "configure:4007: checking dynamic linker characteristics" >&5 | 
|---|
| 4007 | library_names_spec= | 
|---|
| 4008 | libname_spec='lib$name' | 
|---|
| 4009 | soname_spec= | 
|---|
| 4010 | postinstall_cmds= | 
|---|
| 4011 | postuninstall_cmds= | 
|---|
| 4012 | finish_cmds= | 
|---|
| 4013 | finish_eval= | 
|---|
| 4014 | shlibpath_var= | 
|---|
| 4015 | shlibpath_overrides_runpath=unknown | 
|---|
| 4016 | version_type=none | 
|---|
| 4017 | dynamic_linker="$host_os ld.so" | 
|---|
| 4018 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | 
|---|
| 4019 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | 
|---|
| 4020 |  | 
|---|
| 4021 | case $host_os in | 
|---|
| 4022 | aix3*) | 
|---|
| 4023 | version_type=linux | 
|---|
| 4024 | library_names_spec='${libname}${release}.so$versuffix $libname.a' | 
|---|
| 4025 | shlibpath_var=LIBPATH | 
|---|
| 4026 |  | 
|---|
| 4027 | # AIX has no versioning support, so we append a major version to the name. | 
|---|
| 4028 | soname_spec='${libname}${release}.so$major' | 
|---|
| 4029 | ;; | 
|---|
| 4030 |  | 
|---|
| 4031 | aix4* | aix5*) | 
|---|
| 4032 | version_type=linux | 
|---|
| 4033 | if test "$host_cpu" = ia64; then | 
|---|
| 4034 | # AIX 5 supports IA64 | 
|---|
| 4035 | library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' | 
|---|
| 4036 | shlibpath_var=LD_LIBRARY_PATH | 
|---|
| 4037 | else | 
|---|
| 4038 | # With GCC up to 2.95.x, collect2 would create an import file | 
|---|
| 4039 | # for dependence libraries.  The import file would start with | 
|---|
| 4040 | # the line `#! .'.  This would cause the generated library to | 
|---|
| 4041 | # depend on `.', always an invalid library.  This was fixed in | 
|---|
| 4042 | # development snapshots of GCC prior to 3.0. | 
|---|
| 4043 | case $host_os in | 
|---|
| 4044 | aix4 | aix4.[01] | aix4.[01].*) | 
|---|
| 4045 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | 
|---|
| 4046 | echo ' yes ' | 
|---|
| 4047 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | 
|---|
| 4048 | : | 
|---|
| 4049 | else | 
|---|
| 4050 | can_build_shared=no | 
|---|
| 4051 | fi | 
|---|
| 4052 | ;; | 
|---|
| 4053 | esac | 
|---|
| 4054 | # AIX (on Power*) has no versioning support, so currently we can | 
|---|
| 4055 | # not hardcode correct soname into executable. Probably we can | 
|---|
| 4056 | # add versioning support to collect2, so additional links can | 
|---|
| 4057 | # be useful in future. | 
|---|
| 4058 | if test "$aix_use_runtimelinking" = yes; then | 
|---|
| 4059 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | 
|---|
| 4060 | # instead of lib<name>.a to let people know that these are not | 
|---|
| 4061 | # typical AIX shared libraries. | 
|---|
| 4062 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | 
|---|
| 4063 | else | 
|---|
| 4064 | # We preserve .a as extension for shared libraries through AIX4.2 | 
|---|
| 4065 | # and later when we are not doing run time linking. | 
|---|
| 4066 | library_names_spec='${libname}${release}.a $libname.a' | 
|---|
| 4067 | soname_spec='${libname}${release}.so$major' | 
|---|
| 4068 | fi | 
|---|
| 4069 | shlibpath_var=LIBPATH | 
|---|
| 4070 | fi | 
|---|
| 4071 | ;; | 
|---|
| 4072 |  | 
|---|
| 4073 | amigaos*) | 
|---|
| 4074 | library_names_spec='$libname.ixlibrary $libname.a' | 
|---|
| 4075 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | 
|---|
| 4076 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done' | 
|---|
| 4077 | ;; | 
|---|
| 4078 |  | 
|---|
| 4079 | beos*) | 
|---|
| 4080 | library_names_spec='${libname}.so' | 
|---|
| 4081 | dynamic_linker="$host_os ld.so" | 
|---|
| 4082 | shlibpath_var=LIBRARY_PATH | 
|---|
| 4083 | ;; | 
|---|
| 4084 |  | 
|---|
| 4085 | bsdi4*) | 
|---|
| 4086 | version_type=linux | 
|---|
| 4087 | need_version=no | 
|---|
| 4088 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | 
|---|
| 4089 | soname_spec='${libname}${release}.so$major' | 
|---|
| 4090 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | 
|---|
| 4091 | shlibpath_var=LD_LIBRARY_PATH | 
|---|
| 4092 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | 
|---|
| 4093 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | 
|---|
| 4094 | export_dynamic_flag_spec=-rdynamic | 
|---|
| 4095 | # the default ld.so.conf also contains /usr/contrib/lib and | 
|---|
| 4096 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | 
|---|
| 4097 | # libtool to hard-code these into programs | 
|---|
| 4098 | ;; | 
|---|
| 4099 |  | 
|---|
| 4100 | cygwin* | mingw* | pw32*) | 
|---|
| 4101 | version_type=windows | 
|---|
| 4102 | need_version=no | 
|---|
| 4103 | need_lib_prefix=no | 
|---|
| 4104 | case $GCC,$host_os in | 
|---|
| 4105 | yes,cygwin*) | 
|---|
| 4106 | library_names_spec='$libname.dll.a' | 
|---|
| 4107 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' | 
|---|
| 4108 | postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~ | 
|---|
| 4109 | dldir=$destdir/`dirname \$dlpath`~ | 
|---|
| 4110 | test -d \$dldir || mkdir -p \$dldir~ | 
|---|
| 4111 | $install_prog .libs/$dlname \$dldir/$dlname' | 
|---|
| 4112 | postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~ | 
|---|
| 4113 | dlpath=$dir/\$dldll~ | 
|---|
| 4114 | $rm \$dlpath' | 
|---|
| 4115 | ;; | 
|---|
| 4116 | yes,mingw*) | 
|---|
| 4117 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' | 
|---|
| 4118 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"` | 
|---|
| 4119 | ;; | 
|---|
| 4120 | yes,pw32*) | 
|---|
| 4121 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll' | 
|---|
| 4122 | ;; | 
|---|
| 4123 | *) | 
|---|
| 4124 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib' | 
|---|
| 4125 | ;; | 
|---|
| 4126 | esac | 
|---|
| 4127 | dynamic_linker='Win32 ld.exe' | 
|---|
| 4128 | # FIXME: first we should search . and the directory the executable is in | 
|---|
| 4129 | shlibpath_var=PATH | 
|---|
| 4130 | ;; | 
|---|
| 4131 |  | 
|---|
| 4132 | darwin* | rhapsody*) | 
|---|
| 4133 | dynamic_linker="$host_os dyld" | 
|---|
| 4134 | version_type=darwin | 
|---|
| 4135 | need_lib_prefix=no | 
|---|
| 4136 | need_version=no | 
|---|
| 4137 | # FIXME: Relying on posixy $() will cause problems for | 
|---|
| 4138 | #        cross-compilation, but unfortunately the echo tests do not | 
|---|
| 4139 | #        yet detect zsh echo's removal of \ escapes. | 
|---|
| 4140 | library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)' | 
|---|
| 4141 | soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)' | 
|---|
| 4142 | shlibpath_overrides_runpath=yes | 
|---|
| 4143 | shlibpath_var=DYLD_LIBRARY_PATH | 
|---|
| 4144 | ;; | 
|---|
| 4145 |  | 
|---|
| 4146 | freebsd1*) | 
|---|
| 4147 | dynamic_linker=no | 
|---|
| 4148 | ;; | 
|---|
| 4149 |  | 
|---|
| 4150 | freebsd*) | 
|---|
| 4151 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | 
|---|
| 4152 | version_type=freebsd-$objformat | 
|---|
| 4153 | case $version_type in | 
|---|
| 4154 | freebsd-elf*) | 
|---|
| 4155 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' | 
|---|
| 4156 | need_version=no | 
|---|
| 4157 | need_lib_prefix=no | 
|---|
| 4158 | ;; | 
|---|
| 4159 | freebsd-*) | 
|---|
| 4160 | library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' | 
|---|
| 4161 | need_version=yes | 
|---|
| 4162 | ;; | 
|---|
| 4163 | esac | 
|---|
| 4164 | shlibpath_var=LD_LIBRARY_PATH | 
|---|
| 4165 | case $host_os in | 
|---|
| 4166 | freebsd2*) | 
|---|
| 4167 | shlibpath_overrides_runpath=yes | 
|---|
| 4168 | ;; | 
|---|
| 4169 | *) | 
|---|
| 4170 | shlibpath_overrides_runpath=no | 
|---|
| 4171 | hardcode_into_libs=yes | 
|---|
| 4172 | ;; | 
|---|
| 4173 | esac | 
|---|
| 4174 | ;; | 
|---|
| 4175 |  | 
|---|
| 4176 | gnu*) | 
|---|
| 4177 | version_type=linux | 
|---|
| 4178 | need_lib_prefix=no | 
|---|
| 4179 | need_version=no | 
|---|
| 4180 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' | 
|---|
| 4181 | soname_spec='${libname}${release}.so$major' | 
|---|
| 4182 | shlibpath_var=LD_LIBRARY_PATH | 
|---|
| 4183 | hardcode_into_libs=yes | 
|---|
| 4184 | ;; | 
|---|
| 4185 |  | 
|---|
| 4186 | hpux9* | hpux10* | hpux11*) | 
|---|
| 4187 | # Give a soname corresponding to the major version so that dld.sl refuses to | 
|---|
| 4188 | # link against other versions. | 
|---|
| 4189 | dynamic_linker="$host_os dld.sl" | 
|---|
| 4190 | version_type=sunos | 
|---|
| 4191 | need_lib_prefix=no | 
|---|
| 4192 | need_version=no | 
|---|
| 4193 | shlibpath_var=SHLIB_PATH | 
|---|
| 4194 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | 
|---|
| 4195 | library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' | 
|---|
| 4196 | soname_spec='${libname}${release}.sl$major' | 
|---|
| 4197 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | 
|---|
| 4198 | postinstall_cmds='chmod 555 $lib' | 
|---|
| 4199 | ;; | 
|---|
| 4200 |  | 
|---|
| 4201 | irix5* | irix6*) | 
|---|
| 4202 | version_type=irix | 
|---|
| 4203 | need_lib_prefix=no | 
|---|
| 4204 | need_version=no | 
|---|
| 4205 | soname_spec='${libname}${release}.so$major' | 
|---|
| 4206 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' | 
|---|
| 4207 | case $host_os in | 
|---|
| 4208 | irix5*) | 
|---|
| 4209 | libsuff= shlibsuff= | 
|---|
| 4210 | ;; | 
|---|
| 4211 | *) | 
|---|
| 4212 | case $LD in # libtool.m4 will add one of these switches to LD | 
|---|
| 4213 | *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; | 
|---|
| 4214 | *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; | 
|---|
| 4215 | *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; | 
|---|
| 4216 | *) libsuff= shlibsuff= libmagic=never-match;; | 
|---|
| 4217 | esac | 
|---|
| 4218 | ;; | 
|---|
| 4219 | esac | 
|---|
| 4220 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | 
|---|
| 4221 | shlibpath_overrides_runpath=no | 
|---|
| 4222 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | 
|---|
| 4223 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | 
|---|
| 4224 | ;; | 
|---|
| 4225 |  | 
|---|
| 4226 | # No shared lib support for Linux oldld, aout, or coff. | 
|---|
| 4227 | linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*) | 
|---|
| 4228 | dynamic_linker=no | 
|---|
| 4229 | ;; | 
|---|
| 4230 |  | 
|---|
| 4231 | # This must be Linux ELF. | 
|---|
| 4232 | linux-gnu*) | 
|---|
| 4233 | version_type=linux | 
|---|
| 4234 | need_lib_prefix=no | 
|---|
| 4235 | need_version=no | 
|---|
| 4236 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | 
|---|
| 4237 | soname_spec='${libname}${release}.so$major' | 
|---|
| 4238 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | 
|---|
| 4239 | shlibpath_var=LD_LIBRARY_PATH | 
|---|
| 4240 | shlibpath_overrides_runpath=no | 
|---|
| 4241 | # This implies no fast_install, which is unacceptable. | 
|---|
| 4242 | # Some rework will be needed to allow for fast_install | 
|---|
| 4243 | # before this can be enabled. | 
|---|
| 4244 | hardcode_into_libs=yes | 
|---|
| 4245 |  | 
|---|
| 4246 | # We used to test for /lib/ld.so.1 and disable shared libraries on | 
|---|
| 4247 | # powerpc, because MkLinux only supported shared libraries with the | 
|---|
| 4248 | # GNU dynamic linker.  Since this was broken with cross compilers, | 
|---|
| 4249 | # most powerpc-linux boxes support dynamic linking these days and | 
|---|
| 4250 | # people can always --disable-shared, the test was removed, and we | 
|---|
| 4251 | # assume the GNU/Linux dynamic linker is in use. | 
|---|
| 4252 | dynamic_linker='GNU/Linux ld.so' | 
|---|
| 4253 | ;; | 
|---|
| 4254 |  | 
|---|
| 4255 | netbsd*) | 
|---|
| 4256 | version_type=sunos | 
|---|
| 4257 | need_lib_prefix=no | 
|---|
| 4258 | need_version=no | 
|---|
| 4259 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
|---|
| 4260 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' | 
|---|
| 4261 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
|---|
| 4262 | dynamic_linker='NetBSD (a.out) ld.so' | 
|---|
| 4263 | else | 
|---|
| 4264 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' | 
|---|
| 4265 | soname_spec='${libname}${release}.so$major' | 
|---|
| 4266 | dynamic_linker='NetBSD ld.elf_so' | 
|---|
| 4267 | fi | 
|---|
| 4268 | shlibpath_var=LD_LIBRARY_PATH | 
|---|
| 4269 | shlibpath_overrides_runpath=yes | 
|---|
| 4270 | hardcode_into_libs=yes | 
|---|
| 4271 | ;; | 
|---|
| 4272 |  | 
|---|
| 4273 | newsos6) | 
|---|
| 4274 | version_type=linux | 
|---|
| 4275 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | 
|---|
| 4276 | shlibpath_var=LD_LIBRARY_PATH | 
|---|
| 4277 | shlibpath_overrides_runpath=yes | 
|---|
| 4278 | ;; | 
|---|
| 4279 |  | 
|---|
| 4280 | openbsd*) | 
|---|
| 4281 | version_type=sunos | 
|---|
| 4282 | need_lib_prefix=no | 
|---|
| 4283 | need_version=no | 
|---|
| 4284 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
|---|
| 4285 | case "$host_os" in | 
|---|
| 4286 | openbsd2.[89] | openbsd2.[89].*) | 
|---|
| 4287 | shlibpath_overrides_runpath=no | 
|---|
| 4288 | ;; | 
|---|
| 4289 | *) | 
|---|
| 4290 | shlibpath_overrides_runpath=yes | 
|---|
| 4291 | ;; | 
|---|
| 4292 | esac | 
|---|
| 4293 | else | 
|---|
| 4294 | shlibpath_overrides_runpath=yes | 
|---|
| 4295 | fi | 
|---|
| 4296 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' | 
|---|
| 4297 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
|---|
| 4298 | shlibpath_var=LD_LIBRARY_PATH | 
|---|
| 4299 | ;; | 
|---|
| 4300 |  | 
|---|
| 4301 | os2*) | 
|---|
| 4302 | libname_spec='$name' | 
|---|
| 4303 | need_lib_prefix=no | 
|---|
| 4304 | library_names_spec='$libname.dll $libname.a' | 
|---|
| 4305 | dynamic_linker='OS/2 ld.exe' | 
|---|
| 4306 | shlibpath_var=LIBPATH | 
|---|
| 4307 | ;; | 
|---|
| 4308 |  | 
|---|
| 4309 | osf3* | osf4* | osf5*) | 
|---|
| 4310 | version_type=osf | 
|---|
| 4311 | need_version=no | 
|---|
| 4312 | soname_spec='${libname}${release}.so' | 
|---|
| 4313 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' | 
|---|
| 4314 | shlibpath_var=LD_LIBRARY_PATH | 
|---|
| 4315 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | 
|---|
| 4316 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | 
|---|
| 4317 | ;; | 
|---|
| 4318 |  | 
|---|
| 4319 | sco3.2v5*) | 
|---|
| 4320 | version_type=osf | 
|---|
| 4321 | soname_spec='${libname}${release}.so$major' | 
|---|
| 4322 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | 
|---|
| 4323 | shlibpath_var=LD_LIBRARY_PATH | 
|---|
| 4324 | ;; | 
|---|
| 4325 |  | 
|---|
| 4326 | solaris*) | 
|---|
| 4327 | version_type=linux | 
|---|
| 4328 | need_lib_prefix=no | 
|---|
| 4329 | need_version=no | 
|---|
| 4330 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | 
|---|
| 4331 | soname_spec='${libname}${release}.so$major' | 
|---|
| 4332 | shlibpath_var=LD_LIBRARY_PATH | 
|---|
| 4333 | shlibpath_overrides_runpath=yes | 
|---|
| 4334 | hardcode_into_libs=yes | 
|---|
| 4335 | # ldd complains unless libraries are executable | 
|---|
| 4336 | postinstall_cmds='chmod +x $lib' | 
|---|
| 4337 | ;; | 
|---|
| 4338 |  | 
|---|
| 4339 | sunos4*) | 
|---|
| 4340 | version_type=sunos | 
|---|
| 4341 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' | 
|---|
| 4342 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | 
|---|
| 4343 | shlibpath_var=LD_LIBRARY_PATH | 
|---|
| 4344 | shlibpath_overrides_runpath=yes | 
|---|
| 4345 | if test "$with_gnu_ld" = yes; then | 
|---|
| 4346 | need_lib_prefix=no | 
|---|
| 4347 | fi | 
|---|
| 4348 | need_version=yes | 
|---|
| 4349 | ;; | 
|---|
| 4350 |  | 
|---|
| 4351 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
|---|
| 4352 | version_type=linux | 
|---|
| 4353 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | 
|---|
| 4354 | soname_spec='${libname}${release}.so$major' | 
|---|
| 4355 | shlibpath_var=LD_LIBRARY_PATH | 
|---|
| 4356 | case $host_vendor in | 
|---|
| 4357 | sni) | 
|---|
| 4358 | shlibpath_overrides_runpath=no | 
|---|
| 4359 | ;; | 
|---|
| 4360 | motorola) | 
|---|
| 4361 | need_lib_prefix=no | 
|---|
| 4362 | need_version=no | 
|---|
| 4363 | shlibpath_overrides_runpath=no | 
|---|
| 4364 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | 
|---|
| 4365 | ;; | 
|---|
| 4366 | esac | 
|---|
| 4367 | ;; | 
|---|
| 4368 |  | 
|---|
| 4369 | uts4*) | 
|---|
| 4370 | version_type=linux | 
|---|
| 4371 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | 
|---|
| 4372 | soname_spec='${libname}${release}.so$major' | 
|---|
| 4373 | shlibpath_var=LD_LIBRARY_PATH | 
|---|
| 4374 | ;; | 
|---|
| 4375 |  | 
|---|
| 4376 | dgux*) | 
|---|
| 4377 | version_type=linux | 
|---|
| 4378 | need_lib_prefix=no | 
|---|
| 4379 | need_version=no | 
|---|
| 4380 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | 
|---|
| 4381 | soname_spec='${libname}${release}.so$major' | 
|---|
| 4382 | shlibpath_var=LD_LIBRARY_PATH | 
|---|
| 4383 | ;; | 
|---|
| 4384 |  | 
|---|
| 4385 | sysv4*MP*) | 
|---|
| 4386 | if test -d /usr/nec ;then | 
|---|
| 4387 | version_type=linux | 
|---|
| 4388 | library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' | 
|---|
| 4389 | soname_spec='$libname.so.$major' | 
|---|
| 4390 | shlibpath_var=LD_LIBRARY_PATH | 
|---|
| 4391 | fi | 
|---|
| 4392 | ;; | 
|---|
| 4393 |  | 
|---|
| 4394 | *) | 
|---|
| 4395 | dynamic_linker=no | 
|---|
| 4396 | ;; | 
|---|
| 4397 | esac | 
|---|
| 4398 | echo "$ac_t""$dynamic_linker" 1>&6 | 
|---|
| 4399 | test "$dynamic_linker" = no && can_build_shared=no | 
|---|
| 4400 |  | 
|---|
| 4401 | # Report the final consequences. | 
|---|
| 4402 | echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6 | 
|---|
| 4403 | echo "configure:4404: checking if libtool supports shared libraries" >&5 | 
|---|
| 4404 | echo "$ac_t""$can_build_shared" 1>&6 | 
|---|
| 4405 |  | 
|---|
| 4406 | echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6 | 
|---|
| 4407 | echo "configure:4408: checking whether to build shared libraries" >&5 | 
|---|
| 4408 | test "$can_build_shared" = "no" && enable_shared=no | 
|---|
| 4409 |  | 
|---|
| 4410 | # On AIX, shared libraries and static libraries use the same namespace, and | 
|---|
| 4411 | # are all built from PIC. | 
|---|
| 4412 | case "$host_os" in | 
|---|
| 4413 | aix3*) | 
|---|
| 4414 | test "$enable_shared" = yes && enable_static=no | 
|---|
| 4415 | if test -n "$RANLIB"; then | 
|---|
| 4416 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | 
|---|
| 4417 | postinstall_cmds='$RANLIB $lib' | 
|---|
| 4418 | fi | 
|---|
| 4419 | ;; | 
|---|
| 4420 |  | 
|---|
| 4421 | aix4*) | 
|---|
| 4422 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | 
|---|
| 4423 | test "$enable_shared" = yes && enable_static=no | 
|---|
| 4424 | fi | 
|---|
| 4425 | ;; | 
|---|
| 4426 | esac | 
|---|
| 4427 | echo "$ac_t""$enable_shared" 1>&6 | 
|---|
| 4428 |  | 
|---|
| 4429 | echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6 | 
|---|
| 4430 | echo "configure:4431: checking whether to build static libraries" >&5 | 
|---|
| 4431 | # Make sure either enable_shared or enable_static is yes. | 
|---|
| 4432 | test "$enable_shared" = yes || enable_static=yes | 
|---|
| 4433 | echo "$ac_t""$enable_static" 1>&6 | 
|---|
| 4434 |  | 
|---|
| 4435 | if test "$hardcode_action" = relink; then | 
|---|
| 4436 | # Fast installation is not supported | 
|---|
| 4437 | enable_fast_install=no | 
|---|
| 4438 | elif test "$shlibpath_overrides_runpath" = yes || | 
|---|
| 4439 | test "$enable_shared" = no; then | 
|---|
| 4440 | # Fast installation is not necessary | 
|---|
| 4441 | enable_fast_install=needless | 
|---|
| 4442 | fi | 
|---|
| 4443 |  | 
|---|
| 4444 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | 
|---|
| 4445 | if test "$GCC" = yes; then | 
|---|
| 4446 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | 
|---|
| 4447 | fi | 
|---|
| 4448 |  | 
|---|
| 4449 | if test "x$enable_dlopen" != xyes; then | 
|---|
| 4450 | enable_dlopen=unknown | 
|---|
| 4451 | enable_dlopen_self=unknown | 
|---|
| 4452 | enable_dlopen_self_static=unknown | 
|---|
| 4453 | else | 
|---|
| 4454 | lt_cv_dlopen=no | 
|---|
| 4455 | lt_cv_dlopen_libs= | 
|---|
| 4456 |  | 
|---|
| 4457 | case $host_os in | 
|---|
| 4458 | beos*) | 
|---|
| 4459 | lt_cv_dlopen="load_add_on" | 
|---|
| 4460 | lt_cv_dlopen_libs= | 
|---|
| 4461 | lt_cv_dlopen_self=yes | 
|---|
| 4462 | ;; | 
|---|
| 4463 |  | 
|---|
| 4464 | cygwin* | mingw* | pw32*) | 
|---|
| 4465 | lt_cv_dlopen="LoadLibrary" | 
|---|
| 4466 | lt_cv_dlopen_libs= | 
|---|
| 4467 | ;; | 
|---|
| 4468 |  | 
|---|
| 4469 | *) | 
|---|
| 4470 | echo $ac_n "checking for shl_load""... $ac_c" 1>&6 | 
|---|
| 4471 | echo "configure:4472: checking for shl_load" >&5 | 
|---|
| 4472 | if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then | 
|---|
| 4473 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 4474 | else | 
|---|
| 4475 | cat > conftest.$ac_ext <<EOF | 
|---|
| 4476 | #line 4477 "configure" | 
|---|
| 4477 | #include "confdefs.h" | 
|---|
| 4478 | /* System header to define __stub macros and hopefully few prototypes, | 
|---|
| 4479 | which can conflict with char shl_load(); below.  */ | 
|---|
| 4480 | #include <assert.h> | 
|---|
| 4481 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|---|
| 4482 | /* We use char because int might match the return type of a gcc2 | 
|---|
| 4483 | builtin and then its argument prototype would still apply.  */ | 
|---|
| 4484 | char shl_load(); | 
|---|
| 4485 |  | 
|---|
| 4486 | int main() { | 
|---|
| 4487 |  | 
|---|
| 4488 | /* The GNU C library defines this for functions which it implements | 
|---|
| 4489 | to always fail with ENOSYS.  Some functions are actually named | 
|---|
| 4490 | something starting with __ and the normal name is an alias.  */ | 
|---|
| 4491 | #if defined (__stub_shl_load) || defined (__stub___shl_load) | 
|---|
| 4492 | choke me | 
|---|
| 4493 | #else | 
|---|
| 4494 | shl_load(); | 
|---|
| 4495 | #endif | 
|---|
| 4496 |  | 
|---|
| 4497 | ; return 0; } | 
|---|
| 4498 | EOF | 
|---|
| 4499 | if { (eval echo configure:4500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 4500 | rm -rf conftest* | 
|---|
| 4501 | eval "ac_cv_func_shl_load=yes" | 
|---|
| 4502 | else | 
|---|
| 4503 | echo "configure: failed program was:" >&5 | 
|---|
| 4504 | cat conftest.$ac_ext >&5 | 
|---|
| 4505 | rm -rf conftest* | 
|---|
| 4506 | eval "ac_cv_func_shl_load=no" | 
|---|
| 4507 | fi | 
|---|
| 4508 | rm -f conftest* | 
|---|
| 4509 | fi | 
|---|
| 4510 |  | 
|---|
| 4511 | if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then | 
|---|
| 4512 | echo "$ac_t""yes" 1>&6 | 
|---|
| 4513 | lt_cv_dlopen="shl_load" | 
|---|
| 4514 | else | 
|---|
| 4515 | echo "$ac_t""no" 1>&6 | 
|---|
| 4516 | echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 | 
|---|
| 4517 | echo "configure:4518: checking for shl_load in -ldld" >&5 | 
|---|
| 4518 | ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` | 
|---|
| 4519 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 
|---|
| 4520 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 4521 | else | 
|---|
| 4522 | ac_save_LIBS="$LIBS" | 
|---|
| 4523 | LIBS="-ldld  $LIBS" | 
|---|
| 4524 | cat > conftest.$ac_ext <<EOF | 
|---|
| 4525 | #line 4526 "configure" | 
|---|
| 4526 | #include "confdefs.h" | 
|---|
| 4527 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|---|
| 4528 | /* We use char because int might match the return type of a gcc2 | 
|---|
| 4529 | builtin and then its argument prototype would still apply.  */ | 
|---|
| 4530 | char shl_load(); | 
|---|
| 4531 |  | 
|---|
| 4532 | int main() { | 
|---|
| 4533 | shl_load() | 
|---|
| 4534 | ; return 0; } | 
|---|
| 4535 | EOF | 
|---|
| 4536 | if { (eval echo configure:4537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 4537 | rm -rf conftest* | 
|---|
| 4538 | eval "ac_cv_lib_$ac_lib_var=yes" | 
|---|
| 4539 | else | 
|---|
| 4540 | echo "configure: failed program was:" >&5 | 
|---|
| 4541 | cat conftest.$ac_ext >&5 | 
|---|
| 4542 | rm -rf conftest* | 
|---|
| 4543 | eval "ac_cv_lib_$ac_lib_var=no" | 
|---|
| 4544 | fi | 
|---|
| 4545 | rm -f conftest* | 
|---|
| 4546 | LIBS="$ac_save_LIBS" | 
|---|
| 4547 |  | 
|---|
| 4548 | fi | 
|---|
| 4549 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
|---|
| 4550 | echo "$ac_t""yes" 1>&6 | 
|---|
| 4551 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | 
|---|
| 4552 | else | 
|---|
| 4553 | echo "$ac_t""no" 1>&6 | 
|---|
| 4554 | echo $ac_n "checking for dlopen""... $ac_c" 1>&6 | 
|---|
| 4555 | echo "configure:4556: checking for dlopen" >&5 | 
|---|
| 4556 | if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then | 
|---|
| 4557 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 4558 | else | 
|---|
| 4559 | cat > conftest.$ac_ext <<EOF | 
|---|
| 4560 | #line 4561 "configure" | 
|---|
| 4561 | #include "confdefs.h" | 
|---|
| 4562 | /* System header to define __stub macros and hopefully few prototypes, | 
|---|
| 4563 | which can conflict with char dlopen(); below.  */ | 
|---|
| 4564 | #include <assert.h> | 
|---|
| 4565 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|---|
| 4566 | /* We use char because int might match the return type of a gcc2 | 
|---|
| 4567 | builtin and then its argument prototype would still apply.  */ | 
|---|
| 4568 | char dlopen(); | 
|---|
| 4569 |  | 
|---|
| 4570 | int main() { | 
|---|
| 4571 |  | 
|---|
| 4572 | /* The GNU C library defines this for functions which it implements | 
|---|
| 4573 | to always fail with ENOSYS.  Some functions are actually named | 
|---|
| 4574 | something starting with __ and the normal name is an alias.  */ | 
|---|
| 4575 | #if defined (__stub_dlopen) || defined (__stub___dlopen) | 
|---|
| 4576 | choke me | 
|---|
| 4577 | #else | 
|---|
| 4578 | dlopen(); | 
|---|
| 4579 | #endif | 
|---|
| 4580 |  | 
|---|
| 4581 | ; return 0; } | 
|---|
| 4582 | EOF | 
|---|
| 4583 | if { (eval echo configure:4584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 4584 | rm -rf conftest* | 
|---|
| 4585 | eval "ac_cv_func_dlopen=yes" | 
|---|
| 4586 | else | 
|---|
| 4587 | echo "configure: failed program was:" >&5 | 
|---|
| 4588 | cat conftest.$ac_ext >&5 | 
|---|
| 4589 | rm -rf conftest* | 
|---|
| 4590 | eval "ac_cv_func_dlopen=no" | 
|---|
| 4591 | fi | 
|---|
| 4592 | rm -f conftest* | 
|---|
| 4593 | fi | 
|---|
| 4594 |  | 
|---|
| 4595 | if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then | 
|---|
| 4596 | echo "$ac_t""yes" 1>&6 | 
|---|
| 4597 | lt_cv_dlopen="dlopen" | 
|---|
| 4598 | else | 
|---|
| 4599 | echo "$ac_t""no" 1>&6 | 
|---|
| 4600 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | 
|---|
| 4601 | echo "configure:4602: checking for dlopen in -ldl" >&5 | 
|---|
| 4602 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` | 
|---|
| 4603 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 
|---|
| 4604 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 4605 | else | 
|---|
| 4606 | ac_save_LIBS="$LIBS" | 
|---|
| 4607 | LIBS="-ldl  $LIBS" | 
|---|
| 4608 | cat > conftest.$ac_ext <<EOF | 
|---|
| 4609 | #line 4610 "configure" | 
|---|
| 4610 | #include "confdefs.h" | 
|---|
| 4611 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|---|
| 4612 | /* We use char because int might match the return type of a gcc2 | 
|---|
| 4613 | builtin and then its argument prototype would still apply.  */ | 
|---|
| 4614 | char dlopen(); | 
|---|
| 4615 |  | 
|---|
| 4616 | int main() { | 
|---|
| 4617 | dlopen() | 
|---|
| 4618 | ; return 0; } | 
|---|
| 4619 | EOF | 
|---|
| 4620 | if { (eval echo configure:4621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 4621 | rm -rf conftest* | 
|---|
| 4622 | eval "ac_cv_lib_$ac_lib_var=yes" | 
|---|
| 4623 | else | 
|---|
| 4624 | echo "configure: failed program was:" >&5 | 
|---|
| 4625 | cat conftest.$ac_ext >&5 | 
|---|
| 4626 | rm -rf conftest* | 
|---|
| 4627 | eval "ac_cv_lib_$ac_lib_var=no" | 
|---|
| 4628 | fi | 
|---|
| 4629 | rm -f conftest* | 
|---|
| 4630 | LIBS="$ac_save_LIBS" | 
|---|
| 4631 |  | 
|---|
| 4632 | fi | 
|---|
| 4633 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
|---|
| 4634 | echo "$ac_t""yes" 1>&6 | 
|---|
| 4635 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | 
|---|
| 4636 | else | 
|---|
| 4637 | echo "$ac_t""no" 1>&6 | 
|---|
| 4638 | echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6 | 
|---|
| 4639 | echo "configure:4640: checking for dlopen in -lsvld" >&5 | 
|---|
| 4640 | ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-%__p_%'` | 
|---|
| 4641 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 
|---|
| 4642 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 4643 | else | 
|---|
| 4644 | ac_save_LIBS="$LIBS" | 
|---|
| 4645 | LIBS="-lsvld  $LIBS" | 
|---|
| 4646 | cat > conftest.$ac_ext <<EOF | 
|---|
| 4647 | #line 4648 "configure" | 
|---|
| 4648 | #include "confdefs.h" | 
|---|
| 4649 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|---|
| 4650 | /* We use char because int might match the return type of a gcc2 | 
|---|
| 4651 | builtin and then its argument prototype would still apply.  */ | 
|---|
| 4652 | char dlopen(); | 
|---|
| 4653 |  | 
|---|
| 4654 | int main() { | 
|---|
| 4655 | dlopen() | 
|---|
| 4656 | ; return 0; } | 
|---|
| 4657 | EOF | 
|---|
| 4658 | if { (eval echo configure:4659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 4659 | rm -rf conftest* | 
|---|
| 4660 | eval "ac_cv_lib_$ac_lib_var=yes" | 
|---|
| 4661 | else | 
|---|
| 4662 | echo "configure: failed program was:" >&5 | 
|---|
| 4663 | cat conftest.$ac_ext >&5 | 
|---|
| 4664 | rm -rf conftest* | 
|---|
| 4665 | eval "ac_cv_lib_$ac_lib_var=no" | 
|---|
| 4666 | fi | 
|---|
| 4667 | rm -f conftest* | 
|---|
| 4668 | LIBS="$ac_save_LIBS" | 
|---|
| 4669 |  | 
|---|
| 4670 | fi | 
|---|
| 4671 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
|---|
| 4672 | echo "$ac_t""yes" 1>&6 | 
|---|
| 4673 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | 
|---|
| 4674 | else | 
|---|
| 4675 | echo "$ac_t""no" 1>&6 | 
|---|
| 4676 | echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6 | 
|---|
| 4677 | echo "configure:4678: checking for dld_link in -ldld" >&5 | 
|---|
| 4678 | ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'` | 
|---|
| 4679 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 
|---|
| 4680 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 4681 | else | 
|---|
| 4682 | ac_save_LIBS="$LIBS" | 
|---|
| 4683 | LIBS="-ldld  $LIBS" | 
|---|
| 4684 | cat > conftest.$ac_ext <<EOF | 
|---|
| 4685 | #line 4686 "configure" | 
|---|
| 4686 | #include "confdefs.h" | 
|---|
| 4687 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|---|
| 4688 | /* We use char because int might match the return type of a gcc2 | 
|---|
| 4689 | builtin and then its argument prototype would still apply.  */ | 
|---|
| 4690 | char dld_link(); | 
|---|
| 4691 |  | 
|---|
| 4692 | int main() { | 
|---|
| 4693 | dld_link() | 
|---|
| 4694 | ; return 0; } | 
|---|
| 4695 | EOF | 
|---|
| 4696 | if { (eval echo configure:4697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 4697 | rm -rf conftest* | 
|---|
| 4698 | eval "ac_cv_lib_$ac_lib_var=yes" | 
|---|
| 4699 | else | 
|---|
| 4700 | echo "configure: failed program was:" >&5 | 
|---|
| 4701 | cat conftest.$ac_ext >&5 | 
|---|
| 4702 | rm -rf conftest* | 
|---|
| 4703 | eval "ac_cv_lib_$ac_lib_var=no" | 
|---|
| 4704 | fi | 
|---|
| 4705 | rm -f conftest* | 
|---|
| 4706 | LIBS="$ac_save_LIBS" | 
|---|
| 4707 |  | 
|---|
| 4708 | fi | 
|---|
| 4709 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
|---|
| 4710 | echo "$ac_t""yes" 1>&6 | 
|---|
| 4711 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | 
|---|
| 4712 | else | 
|---|
| 4713 | echo "$ac_t""no" 1>&6 | 
|---|
| 4714 | fi | 
|---|
| 4715 |  | 
|---|
| 4716 |  | 
|---|
| 4717 | fi | 
|---|
| 4718 |  | 
|---|
| 4719 |  | 
|---|
| 4720 | fi | 
|---|
| 4721 |  | 
|---|
| 4722 |  | 
|---|
| 4723 | fi | 
|---|
| 4724 |  | 
|---|
| 4725 |  | 
|---|
| 4726 | fi | 
|---|
| 4727 |  | 
|---|
| 4728 |  | 
|---|
| 4729 | fi | 
|---|
| 4730 |  | 
|---|
| 4731 | ;; | 
|---|
| 4732 | esac | 
|---|
| 4733 |  | 
|---|
| 4734 | if test "x$lt_cv_dlopen" != xno; then | 
|---|
| 4735 | enable_dlopen=yes | 
|---|
| 4736 | else | 
|---|
| 4737 | enable_dlopen=no | 
|---|
| 4738 | fi | 
|---|
| 4739 |  | 
|---|
| 4740 | case $lt_cv_dlopen in | 
|---|
| 4741 | dlopen) | 
|---|
| 4742 | save_CPPFLAGS="$CPPFLAGS" | 
|---|
| 4743 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | 
|---|
| 4744 |  | 
|---|
| 4745 | save_LDFLAGS="$LDFLAGS" | 
|---|
| 4746 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | 
|---|
| 4747 |  | 
|---|
| 4748 | save_LIBS="$LIBS" | 
|---|
| 4749 | LIBS="$lt_cv_dlopen_libs $LIBS" | 
|---|
| 4750 |  | 
|---|
| 4751 | echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6 | 
|---|
| 4752 | echo "configure:4753: checking whether a program can dlopen itself" >&5 | 
|---|
| 4753 | if eval "test \"`echo '$''{'lt_cv_dlopen_self'+set}'`\" = set"; then | 
|---|
| 4754 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 4755 | else | 
|---|
| 4756 | if test "$cross_compiling" = yes; then : | 
|---|
| 4757 | lt_cv_dlopen_self=cross | 
|---|
| 4758 | else | 
|---|
| 4759 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 
|---|
| 4760 | lt_status=$lt_dlunknown | 
|---|
| 4761 | cat > conftest.$ac_ext <<EOF | 
|---|
| 4762 | #line 4763 "configure" | 
|---|
| 4763 | #include "confdefs.h" | 
|---|
| 4764 |  | 
|---|
| 4765 | #if HAVE_DLFCN_H | 
|---|
| 4766 | #include <dlfcn.h> | 
|---|
| 4767 | #endif | 
|---|
| 4768 |  | 
|---|
| 4769 | #include <stdio.h> | 
|---|
| 4770 |  | 
|---|
| 4771 | #ifdef RTLD_GLOBAL | 
|---|
| 4772 | #  define LT_DLGLOBAL           RTLD_GLOBAL | 
|---|
| 4773 | #else | 
|---|
| 4774 | #  ifdef DL_GLOBAL | 
|---|
| 4775 | #    define LT_DLGLOBAL         DL_GLOBAL | 
|---|
| 4776 | #  else | 
|---|
| 4777 | #    define LT_DLGLOBAL         0 | 
|---|
| 4778 | #  endif | 
|---|
| 4779 | #endif | 
|---|
| 4780 |  | 
|---|
| 4781 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | 
|---|
| 4782 | find out it does not work in some platform. */ | 
|---|
| 4783 | #ifndef LT_DLLAZY_OR_NOW | 
|---|
| 4784 | #  ifdef RTLD_LAZY | 
|---|
| 4785 | #    define LT_DLLAZY_OR_NOW            RTLD_LAZY | 
|---|
| 4786 | #  else | 
|---|
| 4787 | #    ifdef DL_LAZY | 
|---|
| 4788 | #      define LT_DLLAZY_OR_NOW          DL_LAZY | 
|---|
| 4789 | #    else | 
|---|
| 4790 | #      ifdef RTLD_NOW | 
|---|
| 4791 | #        define LT_DLLAZY_OR_NOW        RTLD_NOW | 
|---|
| 4792 | #      else | 
|---|
| 4793 | #        ifdef DL_NOW | 
|---|
| 4794 | #          define LT_DLLAZY_OR_NOW      DL_NOW | 
|---|
| 4795 | #        else | 
|---|
| 4796 | #          define LT_DLLAZY_OR_NOW      0 | 
|---|
| 4797 | #        endif | 
|---|
| 4798 | #      endif | 
|---|
| 4799 | #    endif | 
|---|
| 4800 | #  endif | 
|---|
| 4801 | #endif | 
|---|
| 4802 |  | 
|---|
| 4803 | #ifdef __cplusplus | 
|---|
| 4804 | extern "C" void exit (int); | 
|---|
| 4805 | #endif | 
|---|
| 4806 |  | 
|---|
| 4807 | void fnord() { int i=42;} | 
|---|
| 4808 | int main () | 
|---|
| 4809 | { | 
|---|
| 4810 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 
|---|
| 4811 | int status = $lt_dlunknown; | 
|---|
| 4812 |  | 
|---|
| 4813 | if (self) | 
|---|
| 4814 | { | 
|---|
| 4815 | if (dlsym (self,"fnord"))       status = $lt_dlno_uscore; | 
|---|
| 4816 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | 
|---|
| 4817 | /* dlclose (self); */ | 
|---|
| 4818 | } | 
|---|
| 4819 |  | 
|---|
| 4820 | exit (status); | 
|---|
| 4821 | } | 
|---|
| 4822 | EOF | 
|---|
| 4823 | if { (eval echo configure:4824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then | 
|---|
| 4824 | (./conftest; exit; ) 2>/dev/null | 
|---|
| 4825 | lt_status=$? | 
|---|
| 4826 | case x$lt_status in | 
|---|
| 4827 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | 
|---|
| 4828 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | 
|---|
| 4829 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; | 
|---|
| 4830 | esac | 
|---|
| 4831 | else : | 
|---|
| 4832 | # compilation failed | 
|---|
| 4833 | lt_cv_dlopen_self=no | 
|---|
| 4834 | fi | 
|---|
| 4835 | fi | 
|---|
| 4836 | rm -fr conftest* | 
|---|
| 4837 |  | 
|---|
| 4838 |  | 
|---|
| 4839 | fi | 
|---|
| 4840 |  | 
|---|
| 4841 | echo "$ac_t""$lt_cv_dlopen_self" 1>&6 | 
|---|
| 4842 |  | 
|---|
| 4843 | if test "x$lt_cv_dlopen_self" = xyes; then | 
|---|
| 4844 | LDFLAGS="$LDFLAGS $link_static_flag" | 
|---|
| 4845 | echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6 | 
|---|
| 4846 | echo "configure:4847: checking whether a statically linked program can dlopen itself" >&5 | 
|---|
| 4847 | if eval "test \"`echo '$''{'lt_cv_dlopen_self_static'+set}'`\" = set"; then | 
|---|
| 4848 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 4849 | else | 
|---|
| 4850 | if test "$cross_compiling" = yes; then : | 
|---|
| 4851 | lt_cv_dlopen_self_static=cross | 
|---|
| 4852 | else | 
|---|
| 4853 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 
|---|
| 4854 | lt_status=$lt_dlunknown | 
|---|
| 4855 | cat > conftest.$ac_ext <<EOF | 
|---|
| 4856 | #line 4857 "configure" | 
|---|
| 4857 | #include "confdefs.h" | 
|---|
| 4858 |  | 
|---|
| 4859 | #if HAVE_DLFCN_H | 
|---|
| 4860 | #include <dlfcn.h> | 
|---|
| 4861 | #endif | 
|---|
| 4862 |  | 
|---|
| 4863 | #include <stdio.h> | 
|---|
| 4864 |  | 
|---|
| 4865 | #ifdef RTLD_GLOBAL | 
|---|
| 4866 | #  define LT_DLGLOBAL           RTLD_GLOBAL | 
|---|
| 4867 | #else | 
|---|
| 4868 | #  ifdef DL_GLOBAL | 
|---|
| 4869 | #    define LT_DLGLOBAL         DL_GLOBAL | 
|---|
| 4870 | #  else | 
|---|
| 4871 | #    define LT_DLGLOBAL         0 | 
|---|
| 4872 | #  endif | 
|---|
| 4873 | #endif | 
|---|
| 4874 |  | 
|---|
| 4875 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | 
|---|
| 4876 | find out it does not work in some platform. */ | 
|---|
| 4877 | #ifndef LT_DLLAZY_OR_NOW | 
|---|
| 4878 | #  ifdef RTLD_LAZY | 
|---|
| 4879 | #    define LT_DLLAZY_OR_NOW            RTLD_LAZY | 
|---|
| 4880 | #  else | 
|---|
| 4881 | #    ifdef DL_LAZY | 
|---|
| 4882 | #      define LT_DLLAZY_OR_NOW          DL_LAZY | 
|---|
| 4883 | #    else | 
|---|
| 4884 | #      ifdef RTLD_NOW | 
|---|
| 4885 | #        define LT_DLLAZY_OR_NOW        RTLD_NOW | 
|---|
| 4886 | #      else | 
|---|
| 4887 | #        ifdef DL_NOW | 
|---|
| 4888 | #          define LT_DLLAZY_OR_NOW      DL_NOW | 
|---|
| 4889 | #        else | 
|---|
| 4890 | #          define LT_DLLAZY_OR_NOW      0 | 
|---|
| 4891 | #        endif | 
|---|
| 4892 | #      endif | 
|---|
| 4893 | #    endif | 
|---|
| 4894 | #  endif | 
|---|
| 4895 | #endif | 
|---|
| 4896 |  | 
|---|
| 4897 | #ifdef __cplusplus | 
|---|
| 4898 | extern "C" void exit (int); | 
|---|
| 4899 | #endif | 
|---|
| 4900 |  | 
|---|
| 4901 | void fnord() { int i=42;} | 
|---|
| 4902 | int main () | 
|---|
| 4903 | { | 
|---|
| 4904 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 
|---|
| 4905 | int status = $lt_dlunknown; | 
|---|
| 4906 |  | 
|---|
| 4907 | if (self) | 
|---|
| 4908 | { | 
|---|
| 4909 | if (dlsym (self,"fnord"))       status = $lt_dlno_uscore; | 
|---|
| 4910 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | 
|---|
| 4911 | /* dlclose (self); */ | 
|---|
| 4912 | } | 
|---|
| 4913 |  | 
|---|
| 4914 | exit (status); | 
|---|
| 4915 | } | 
|---|
| 4916 | EOF | 
|---|
| 4917 | if { (eval echo configure:4918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then | 
|---|
| 4918 | (./conftest; exit; ) 2>/dev/null | 
|---|
| 4919 | lt_status=$? | 
|---|
| 4920 | case x$lt_status in | 
|---|
| 4921 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | 
|---|
| 4922 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | 
|---|
| 4923 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; | 
|---|
| 4924 | esac | 
|---|
| 4925 | else : | 
|---|
| 4926 | # compilation failed | 
|---|
| 4927 | lt_cv_dlopen_self_static=no | 
|---|
| 4928 | fi | 
|---|
| 4929 | fi | 
|---|
| 4930 | rm -fr conftest* | 
|---|
| 4931 |  | 
|---|
| 4932 |  | 
|---|
| 4933 | fi | 
|---|
| 4934 |  | 
|---|
| 4935 | echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6 | 
|---|
| 4936 | fi | 
|---|
| 4937 |  | 
|---|
| 4938 | CPPFLAGS="$save_CPPFLAGS" | 
|---|
| 4939 | LDFLAGS="$save_LDFLAGS" | 
|---|
| 4940 | LIBS="$save_LIBS" | 
|---|
| 4941 | ;; | 
|---|
| 4942 | esac | 
|---|
| 4943 |  | 
|---|
| 4944 | case $lt_cv_dlopen_self in | 
|---|
| 4945 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | 
|---|
| 4946 | *) enable_dlopen_self=unknown ;; | 
|---|
| 4947 | esac | 
|---|
| 4948 |  | 
|---|
| 4949 | case $lt_cv_dlopen_self_static in | 
|---|
| 4950 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | 
|---|
| 4951 | *) enable_dlopen_self_static=unknown ;; | 
|---|
| 4952 | esac | 
|---|
| 4953 | fi | 
|---|
| 4954 |  | 
|---|
| 4955 |  | 
|---|
| 4956 | if test "$enable_shared" = yes && test "$GCC" = yes; then | 
|---|
| 4957 | case $archive_cmds in | 
|---|
| 4958 | *'~'*) | 
|---|
| 4959 | # FIXME: we may have to deal with multi-command sequences. | 
|---|
| 4960 | ;; | 
|---|
| 4961 | '$CC '*) | 
|---|
| 4962 | # Test whether the compiler implicitly links with -lc since on some | 
|---|
| 4963 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | 
|---|
| 4964 | # to ld, don't add -lc before -lgcc. | 
|---|
| 4965 | echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6 | 
|---|
| 4966 | echo "configure:4967: checking whether -lc should be explicitly linked in" >&5 | 
|---|
| 4967 | if eval "test \"`echo '$''{'lt_cv_archive_cmds_need_lc'+set}'`\" = set"; then | 
|---|
| 4968 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 4969 | else | 
|---|
| 4970 | $rm conftest* | 
|---|
| 4971 | echo 'static int dummy;' > conftest.$ac_ext | 
|---|
| 4972 |  | 
|---|
| 4973 | if { (eval echo configure:4974: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
|---|
| 4974 | soname=conftest | 
|---|
| 4975 | lib=conftest | 
|---|
| 4976 | libobjs=conftest.$ac_objext | 
|---|
| 4977 | deplibs= | 
|---|
| 4978 | wl=$lt_cv_prog_cc_wl | 
|---|
| 4979 | compiler_flags=-v | 
|---|
| 4980 | linker_flags=-v | 
|---|
| 4981 | verstring= | 
|---|
| 4982 | output_objdir=. | 
|---|
| 4983 | libname=conftest | 
|---|
| 4984 | save_allow_undefined_flag=$allow_undefined_flag | 
|---|
| 4985 | allow_undefined_flag= | 
|---|
| 4986 | if { (eval echo configure:4987: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\") 1>&5; (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5; } | 
|---|
| 4987 | then | 
|---|
| 4988 | lt_cv_archive_cmds_need_lc=no | 
|---|
| 4989 | else | 
|---|
| 4990 | lt_cv_archive_cmds_need_lc=yes | 
|---|
| 4991 | fi | 
|---|
| 4992 | allow_undefined_flag=$save_allow_undefined_flag | 
|---|
| 4993 | else | 
|---|
| 4994 | cat conftest.err 1>&5 | 
|---|
| 4995 | fi | 
|---|
| 4996 | fi | 
|---|
| 4997 |  | 
|---|
| 4998 | echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6 | 
|---|
| 4999 | ;; | 
|---|
| 5000 | esac | 
|---|
| 5001 | fi | 
|---|
| 5002 | need_lc=${lt_cv_archive_cmds_need_lc-yes} | 
|---|
| 5003 |  | 
|---|
| 5004 | # The second clause should only fire when bootstrapping the | 
|---|
| 5005 | # libtool distribution, otherwise you forgot to ship ltmain.sh | 
|---|
| 5006 | # with your package, and you will get complaints that there are | 
|---|
| 5007 | # no rules to generate ltmain.sh. | 
|---|
| 5008 | if test -f "$ltmain"; then | 
|---|
| 5009 | : | 
|---|
| 5010 | else | 
|---|
| 5011 | # If there is no Makefile yet, we rely on a make rule to execute | 
|---|
| 5012 | # `config.status --recheck' to rerun these tests and create the | 
|---|
| 5013 | # libtool script then. | 
|---|
| 5014 | test -f Makefile && make "$ltmain" | 
|---|
| 5015 | fi | 
|---|
| 5016 |  | 
|---|
| 5017 | if test -f "$ltmain"; then | 
|---|
| 5018 | trap "$rm \"${ofile}T\"; exit 1" 1 2 15 | 
|---|
| 5019 | $rm -f "${ofile}T" | 
|---|
| 5020 |  | 
|---|
| 5021 | echo creating $ofile | 
|---|
| 5022 |  | 
|---|
| 5023 | # Now quote all the things that may contain metacharacters while being | 
|---|
| 5024 | # careful not to overquote the AC_SUBSTed values.  We take copies of the | 
|---|
| 5025 | # variables and quote the copies for generation of the libtool script. | 
|---|
| 5026 | for var in echo old_CC old_CFLAGS \ | 
|---|
| 5027 | AR AR_FLAGS CC LD LN_S NM SHELL \ | 
|---|
| 5028 | reload_flag reload_cmds wl \ | 
|---|
| 5029 | pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \ | 
|---|
| 5030 | thread_safe_flag_spec whole_archive_flag_spec libname_spec \ | 
|---|
| 5031 | library_names_spec soname_spec \ | 
|---|
| 5032 | RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \ | 
|---|
| 5033 | old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \ | 
|---|
| 5034 | postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \ | 
|---|
| 5035 | old_striplib striplib file_magic_cmd export_symbols_cmds \ | 
|---|
| 5036 | deplibs_check_method allow_undefined_flag no_undefined_flag \ | 
|---|
| 5037 | finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \ | 
|---|
| 5038 | global_symbol_to_c_name_address \ | 
|---|
| 5039 | hardcode_libdir_flag_spec hardcode_libdir_separator  \ | 
|---|
| 5040 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | 
|---|
| 5041 | compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do | 
|---|
| 5042 |  | 
|---|
| 5043 | case $var in | 
|---|
| 5044 | reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \ | 
|---|
| 5045 | old_postinstall_cmds | old_postuninstall_cmds | \ | 
|---|
| 5046 | export_symbols_cmds | archive_cmds | archive_expsym_cmds | \ | 
|---|
| 5047 | extract_expsyms_cmds | old_archive_from_expsyms_cmds | \ | 
|---|
| 5048 | postinstall_cmds | postuninstall_cmds | \ | 
|---|
| 5049 | finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | 
|---|
| 5050 | # Double-quote double-evaled strings. | 
|---|
| 5051 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | 
|---|
| 5052 | ;; | 
|---|
| 5053 | *) | 
|---|
| 5054 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | 
|---|
| 5055 | ;; | 
|---|
| 5056 | esac | 
|---|
| 5057 | done | 
|---|
| 5058 |  | 
|---|
| 5059 | cat <<__EOF__ > "${ofile}T" | 
|---|
| 5060 | #! $SHELL | 
|---|
| 5061 |  | 
|---|
| 5062 | # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | 
|---|
| 5063 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) | 
|---|
| 5064 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | 
|---|
| 5065 | # | 
|---|
| 5066 | # Copyright (C) 1996-2000 Free Software Foundation, Inc. | 
|---|
| 5067 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 | 
|---|
| 5068 | # | 
|---|
| 5069 | # This program is free software; you can redistribute it and/or modify | 
|---|
| 5070 | # it under the terms of the GNU General Public License as published by | 
|---|
| 5071 | # the Free Software Foundation; either version 2 of the License, or | 
|---|
| 5072 | # (at your option) any later version. | 
|---|
| 5073 | # | 
|---|
| 5074 | # This program is distributed in the hope that it will be useful, but | 
|---|
| 5075 | # WITHOUT ANY WARRANTY; without even the implied warranty of | 
|---|
| 5076 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU | 
|---|
| 5077 | # General Public License for more details. | 
|---|
| 5078 | # | 
|---|
| 5079 | # You should have received a copy of the GNU General Public License | 
|---|
| 5080 | # along with this program; if not, write to the Free Software | 
|---|
| 5081 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 
|---|
| 5082 | # | 
|---|
| 5083 | # As a special exception to the GNU General Public License, if you | 
|---|
| 5084 | # distribute this file as part of a program that contains a | 
|---|
| 5085 | # configuration script generated by Autoconf, you may include it under | 
|---|
| 5086 | # the same distribution terms that you use for the rest of that program. | 
|---|
| 5087 |  | 
|---|
| 5088 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | 
|---|
| 5089 | Xsed="sed -e s/^X//" | 
|---|
| 5090 |  | 
|---|
| 5091 | # The HP-UX ksh and POSIX shell print the target directory to stdout | 
|---|
| 5092 | # if CDPATH is set. | 
|---|
| 5093 | if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi | 
|---|
| 5094 |  | 
|---|
| 5095 | # ### BEGIN LIBTOOL CONFIG | 
|---|
| 5096 |  | 
|---|
| 5097 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | 
|---|
| 5098 |  | 
|---|
| 5099 | # Shell to use when invoking shell scripts. | 
|---|
| 5100 | SHELL=$lt_SHELL | 
|---|
| 5101 |  | 
|---|
| 5102 | # Whether or not to build shared libraries. | 
|---|
| 5103 | build_libtool_libs=$enable_shared | 
|---|
| 5104 |  | 
|---|
| 5105 | # Whether or not to build static libraries. | 
|---|
| 5106 | build_old_libs=$enable_static | 
|---|
| 5107 |  | 
|---|
| 5108 | # Whether or not to add -lc for building shared libraries. | 
|---|
| 5109 | build_libtool_need_lc=$need_lc | 
|---|
| 5110 |  | 
|---|
| 5111 | # Whether or not to optimize for fast installation. | 
|---|
| 5112 | fast_install=$enable_fast_install | 
|---|
| 5113 |  | 
|---|
| 5114 | # The host system. | 
|---|
| 5115 | host_alias=$host_alias | 
|---|
| 5116 | host=$host | 
|---|
| 5117 |  | 
|---|
| 5118 | # An echo program that does not interpret backslashes. | 
|---|
| 5119 | echo=$lt_echo | 
|---|
| 5120 |  | 
|---|
| 5121 | # The archiver. | 
|---|
| 5122 | AR=$lt_AR | 
|---|
| 5123 | AR_FLAGS=$lt_AR_FLAGS | 
|---|
| 5124 |  | 
|---|
| 5125 | # The default C compiler. | 
|---|
| 5126 | CC=$lt_CC | 
|---|
| 5127 |  | 
|---|
| 5128 | # Is the compiler the GNU C compiler? | 
|---|
| 5129 | with_gcc=$GCC | 
|---|
| 5130 |  | 
|---|
| 5131 | # The linker used to build libraries. | 
|---|
| 5132 | LD=$lt_LD | 
|---|
| 5133 |  | 
|---|
| 5134 | # Whether we need hard or soft links. | 
|---|
| 5135 | LN_S=$lt_LN_S | 
|---|
| 5136 |  | 
|---|
| 5137 | # A BSD-compatible nm program. | 
|---|
| 5138 | NM=$lt_NM | 
|---|
| 5139 |  | 
|---|
| 5140 | # A symbol stripping program | 
|---|
| 5141 | STRIP=$STRIP | 
|---|
| 5142 |  | 
|---|
| 5143 | # Used to examine libraries when file_magic_cmd begins "file" | 
|---|
| 5144 | MAGIC_CMD=$MAGIC_CMD | 
|---|
| 5145 |  | 
|---|
| 5146 | # Used on cygwin: DLL creation program. | 
|---|
| 5147 | DLLTOOL="$DLLTOOL" | 
|---|
| 5148 |  | 
|---|
| 5149 | # Used on cygwin: object dumper. | 
|---|
| 5150 | OBJDUMP="$OBJDUMP" | 
|---|
| 5151 |  | 
|---|
| 5152 | # Used on cygwin: assembler. | 
|---|
| 5153 | AS="$AS" | 
|---|
| 5154 |  | 
|---|
| 5155 | # The name of the directory that contains temporary libtool files. | 
|---|
| 5156 | objdir=$objdir | 
|---|
| 5157 |  | 
|---|
| 5158 | # How to create reloadable object files. | 
|---|
| 5159 | reload_flag=$lt_reload_flag | 
|---|
| 5160 | reload_cmds=$lt_reload_cmds | 
|---|
| 5161 |  | 
|---|
| 5162 | # How to pass a linker flag through the compiler. | 
|---|
| 5163 | wl=$lt_wl | 
|---|
| 5164 |  | 
|---|
| 5165 | # Object file suffix (normally "o"). | 
|---|
| 5166 | objext="$ac_objext" | 
|---|
| 5167 |  | 
|---|
| 5168 | # Old archive suffix (normally "a"). | 
|---|
| 5169 | libext="$libext" | 
|---|
| 5170 |  | 
|---|
| 5171 | # Executable file suffix (normally ""). | 
|---|
| 5172 | exeext="$exeext" | 
|---|
| 5173 |  | 
|---|
| 5174 | # Additional compiler flags for building library objects. | 
|---|
| 5175 | pic_flag=$lt_pic_flag | 
|---|
| 5176 | pic_mode=$pic_mode | 
|---|
| 5177 |  | 
|---|
| 5178 | # Does compiler simultaneously support -c and -o options? | 
|---|
| 5179 | compiler_c_o=$lt_compiler_c_o | 
|---|
| 5180 |  | 
|---|
| 5181 | # Can we write directly to a .lo ? | 
|---|
| 5182 | compiler_o_lo=$lt_compiler_o_lo | 
|---|
| 5183 |  | 
|---|
| 5184 | # Must we lock files when doing compilation ? | 
|---|
| 5185 | need_locks=$lt_need_locks | 
|---|
| 5186 |  | 
|---|
| 5187 | # Do we need the lib prefix for modules? | 
|---|
| 5188 | need_lib_prefix=$need_lib_prefix | 
|---|
| 5189 |  | 
|---|
| 5190 | # Do we need a version for libraries? | 
|---|
| 5191 | need_version=$need_version | 
|---|
| 5192 |  | 
|---|
| 5193 | # Whether dlopen is supported. | 
|---|
| 5194 | dlopen_support=$enable_dlopen | 
|---|
| 5195 |  | 
|---|
| 5196 | # Whether dlopen of programs is supported. | 
|---|
| 5197 | dlopen_self=$enable_dlopen_self | 
|---|
| 5198 |  | 
|---|
| 5199 | # Whether dlopen of statically linked programs is supported. | 
|---|
| 5200 | dlopen_self_static=$enable_dlopen_self_static | 
|---|
| 5201 |  | 
|---|
| 5202 | # Compiler flag to prevent dynamic linking. | 
|---|
| 5203 | link_static_flag=$lt_link_static_flag | 
|---|
| 5204 |  | 
|---|
| 5205 | # Compiler flag to turn off builtin functions. | 
|---|
| 5206 | no_builtin_flag=$lt_no_builtin_flag | 
|---|
| 5207 |  | 
|---|
| 5208 | # Compiler flag to allow reflexive dlopens. | 
|---|
| 5209 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | 
|---|
| 5210 |  | 
|---|
| 5211 | # Compiler flag to generate shared objects directly from archives. | 
|---|
| 5212 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | 
|---|
| 5213 |  | 
|---|
| 5214 | # Compiler flag to generate thread-safe objects. | 
|---|
| 5215 | thread_safe_flag_spec=$lt_thread_safe_flag_spec | 
|---|
| 5216 |  | 
|---|
| 5217 | # Library versioning type. | 
|---|
| 5218 | version_type=$version_type | 
|---|
| 5219 |  | 
|---|
| 5220 | # Format of library name prefix. | 
|---|
| 5221 | libname_spec=$lt_libname_spec | 
|---|
| 5222 |  | 
|---|
| 5223 | # List of archive names.  First name is the real one, the rest are links. | 
|---|
| 5224 | # The last name is the one that the linker finds with -lNAME. | 
|---|
| 5225 | library_names_spec=$lt_library_names_spec | 
|---|
| 5226 |  | 
|---|
| 5227 | # The coded name of the library, if different from the real name. | 
|---|
| 5228 | soname_spec=$lt_soname_spec | 
|---|
| 5229 |  | 
|---|
| 5230 | # Commands used to build and install an old-style archive. | 
|---|
| 5231 | RANLIB=$lt_RANLIB | 
|---|
| 5232 | old_archive_cmds=$lt_old_archive_cmds | 
|---|
| 5233 | old_postinstall_cmds=$lt_old_postinstall_cmds | 
|---|
| 5234 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | 
|---|
| 5235 |  | 
|---|
| 5236 | # Create an old-style archive from a shared archive. | 
|---|
| 5237 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | 
|---|
| 5238 |  | 
|---|
| 5239 | # Create a temporary old-style archive to link instead of a shared archive. | 
|---|
| 5240 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | 
|---|
| 5241 |  | 
|---|
| 5242 | # Commands used to build and install a shared archive. | 
|---|
| 5243 | archive_cmds=$lt_archive_cmds | 
|---|
| 5244 | archive_expsym_cmds=$lt_archive_expsym_cmds | 
|---|
| 5245 | postinstall_cmds=$lt_postinstall_cmds | 
|---|
| 5246 | postuninstall_cmds=$lt_postuninstall_cmds | 
|---|
| 5247 |  | 
|---|
| 5248 | # Commands to strip libraries. | 
|---|
| 5249 | old_striplib=$lt_old_striplib | 
|---|
| 5250 | striplib=$lt_striplib | 
|---|
| 5251 |  | 
|---|
| 5252 | # Method to check whether dependent libraries are shared objects. | 
|---|
| 5253 | deplibs_check_method=$lt_deplibs_check_method | 
|---|
| 5254 |  | 
|---|
| 5255 | # Command to use when deplibs_check_method == file_magic. | 
|---|
| 5256 | file_magic_cmd=$lt_file_magic_cmd | 
|---|
| 5257 |  | 
|---|
| 5258 | # Flag that allows shared libraries with undefined symbols to be built. | 
|---|
| 5259 | allow_undefined_flag=$lt_allow_undefined_flag | 
|---|
| 5260 |  | 
|---|
| 5261 | # Flag that forces no undefined symbols. | 
|---|
| 5262 | no_undefined_flag=$lt_no_undefined_flag | 
|---|
| 5263 |  | 
|---|
| 5264 | # Commands used to finish a libtool library installation in a directory. | 
|---|
| 5265 | finish_cmds=$lt_finish_cmds | 
|---|
| 5266 |  | 
|---|
| 5267 | # Same as above, but a single script fragment to be evaled but not shown. | 
|---|
| 5268 | finish_eval=$lt_finish_eval | 
|---|
| 5269 |  | 
|---|
| 5270 | # Take the output of nm and produce a listing of raw symbols and C names. | 
|---|
| 5271 | global_symbol_pipe=$lt_global_symbol_pipe | 
|---|
| 5272 |  | 
|---|
| 5273 | # Transform the output of nm in a proper C declaration | 
|---|
| 5274 | global_symbol_to_cdecl=$lt_global_symbol_to_cdecl | 
|---|
| 5275 |  | 
|---|
| 5276 | # Transform the output of nm in a C name address pair | 
|---|
| 5277 | global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address | 
|---|
| 5278 |  | 
|---|
| 5279 | # This is the shared library runtime path variable. | 
|---|
| 5280 | runpath_var=$runpath_var | 
|---|
| 5281 |  | 
|---|
| 5282 | # This is the shared library path variable. | 
|---|
| 5283 | shlibpath_var=$shlibpath_var | 
|---|
| 5284 |  | 
|---|
| 5285 | # Is shlibpath searched before the hard-coded library search path? | 
|---|
| 5286 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | 
|---|
| 5287 |  | 
|---|
| 5288 | # How to hardcode a shared library path into an executable. | 
|---|
| 5289 | hardcode_action=$hardcode_action | 
|---|
| 5290 |  | 
|---|
| 5291 | # Whether we should hardcode library paths into libraries. | 
|---|
| 5292 | hardcode_into_libs=$hardcode_into_libs | 
|---|
| 5293 |  | 
|---|
| 5294 | # Flag to hardcode \$libdir into a binary during linking. | 
|---|
| 5295 | # This must work even if \$libdir does not exist. | 
|---|
| 5296 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | 
|---|
| 5297 |  | 
|---|
| 5298 | # Whether we need a single -rpath flag with a separated argument. | 
|---|
| 5299 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | 
|---|
| 5300 |  | 
|---|
| 5301 | # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the | 
|---|
| 5302 | # resulting binary. | 
|---|
| 5303 | hardcode_direct=$hardcode_direct | 
|---|
| 5304 |  | 
|---|
| 5305 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | 
|---|
| 5306 | # resulting binary. | 
|---|
| 5307 | hardcode_minus_L=$hardcode_minus_L | 
|---|
| 5308 |  | 
|---|
| 5309 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | 
|---|
| 5310 | # the resulting binary. | 
|---|
| 5311 | hardcode_shlibpath_var=$hardcode_shlibpath_var | 
|---|
| 5312 |  | 
|---|
| 5313 | # Variables whose values should be saved in libtool wrapper scripts and | 
|---|
| 5314 | # restored at relink time. | 
|---|
| 5315 | variables_saved_for_relink="$variables_saved_for_relink" | 
|---|
| 5316 |  | 
|---|
| 5317 | # Whether libtool must link a program against all its dependency libraries. | 
|---|
| 5318 | link_all_deplibs=$link_all_deplibs | 
|---|
| 5319 |  | 
|---|
| 5320 | # Compile-time system search path for libraries | 
|---|
| 5321 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | 
|---|
| 5322 |  | 
|---|
| 5323 | # Run-time system search path for libraries | 
|---|
| 5324 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | 
|---|
| 5325 |  | 
|---|
| 5326 | # Fix the shell variable \$srcfile for the compiler. | 
|---|
| 5327 | fix_srcfile_path="$fix_srcfile_path" | 
|---|
| 5328 |  | 
|---|
| 5329 | # Set to yes if exported symbols are required. | 
|---|
| 5330 | always_export_symbols=$always_export_symbols | 
|---|
| 5331 |  | 
|---|
| 5332 | # The commands to list exported symbols. | 
|---|
| 5333 | export_symbols_cmds=$lt_export_symbols_cmds | 
|---|
| 5334 |  | 
|---|
| 5335 | # The commands to extract the exported symbol list from a shared archive. | 
|---|
| 5336 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | 
|---|
| 5337 |  | 
|---|
| 5338 | # Symbols that should not be listed in the preloaded symbols. | 
|---|
| 5339 | exclude_expsyms=$lt_exclude_expsyms | 
|---|
| 5340 |  | 
|---|
| 5341 | # Symbols that must always be exported. | 
|---|
| 5342 | include_expsyms=$lt_include_expsyms | 
|---|
| 5343 |  | 
|---|
| 5344 | # ### END LIBTOOL CONFIG | 
|---|
| 5345 |  | 
|---|
| 5346 | __EOF__ | 
|---|
| 5347 |  | 
|---|
| 5348 | case $host_os in | 
|---|
| 5349 | aix3*) | 
|---|
| 5350 | cat <<\EOF >> "${ofile}T" | 
|---|
| 5351 |  | 
|---|
| 5352 | # AIX sometimes has problems with the GCC collect2 program.  For some | 
|---|
| 5353 | # reason, if we set the COLLECT_NAMES environment variable, the problems | 
|---|
| 5354 | # vanish in a puff of smoke. | 
|---|
| 5355 | if test "X${COLLECT_NAMES+set}" != Xset; then | 
|---|
| 5356 | COLLECT_NAMES= | 
|---|
| 5357 | export COLLECT_NAMES | 
|---|
| 5358 | fi | 
|---|
| 5359 | EOF | 
|---|
| 5360 | ;; | 
|---|
| 5361 | esac | 
|---|
| 5362 |  | 
|---|
| 5363 | case $host_os in | 
|---|
| 5364 | cygwin* | mingw* | pw32* | os2*) | 
|---|
| 5365 | cat <<'EOF' >> "${ofile}T" | 
|---|
| 5366 | # This is a source program that is used to create dlls on Windows | 
|---|
| 5367 | # Don't remove nor modify the starting and closing comments | 
|---|
| 5368 | # /* ltdll.c starts here */ | 
|---|
| 5369 | # #define WIN32_LEAN_AND_MEAN | 
|---|
| 5370 | # #include <windows.h> | 
|---|
| 5371 | # #undef WIN32_LEAN_AND_MEAN | 
|---|
| 5372 | # #include <stdio.h> | 
|---|
| 5373 | # | 
|---|
| 5374 | # #ifndef __CYGWIN__ | 
|---|
| 5375 | # #  ifdef __CYGWIN32__ | 
|---|
| 5376 | # #    define __CYGWIN__ __CYGWIN32__ | 
|---|
| 5377 | # #  endif | 
|---|
| 5378 | # #endif | 
|---|
| 5379 | # | 
|---|
| 5380 | # #ifdef __cplusplus | 
|---|
| 5381 | # extern "C" { | 
|---|
| 5382 | # #endif | 
|---|
| 5383 | # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); | 
|---|
| 5384 | # #ifdef __cplusplus | 
|---|
| 5385 | # } | 
|---|
| 5386 | # #endif | 
|---|
| 5387 | # | 
|---|
| 5388 | # #ifdef __CYGWIN__ | 
|---|
| 5389 | # #include <cygwin/cygwin_dll.h> | 
|---|
| 5390 | # DECLARE_CYGWIN_DLL( DllMain ); | 
|---|
| 5391 | # #endif | 
|---|
| 5392 | # HINSTANCE __hDllInstance_base; | 
|---|
| 5393 | # | 
|---|
| 5394 | # BOOL APIENTRY | 
|---|
| 5395 | # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) | 
|---|
| 5396 | # { | 
|---|
| 5397 | #   __hDllInstance_base = hInst; | 
|---|
| 5398 | #   return TRUE; | 
|---|
| 5399 | # } | 
|---|
| 5400 | # /* ltdll.c ends here */ | 
|---|
| 5401 | # This is a source program that is used to create import libraries | 
|---|
| 5402 | # on Windows for dlls which lack them. Don't remove nor modify the | 
|---|
| 5403 | # starting and closing comments | 
|---|
| 5404 | # /* impgen.c starts here */ | 
|---|
| 5405 | # /*   Copyright (C) 1999-2000 Free Software Foundation, Inc. | 
|---|
| 5406 | # | 
|---|
| 5407 | #  This file is part of GNU libtool. | 
|---|
| 5408 | # | 
|---|
| 5409 | #  This program is free software; you can redistribute it and/or modify | 
|---|
| 5410 | #  it under the terms of the GNU General Public License as published by | 
|---|
| 5411 | #  the Free Software Foundation; either version 2 of the License, or | 
|---|
| 5412 | #  (at your option) any later version. | 
|---|
| 5413 | # | 
|---|
| 5414 | #  This program is distributed in the hope that it will be useful, | 
|---|
| 5415 | #  but WITHOUT ANY WARRANTY; without even the implied warranty of | 
|---|
| 5416 | #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | 
|---|
| 5417 | #  GNU General Public License for more details. | 
|---|
| 5418 | # | 
|---|
| 5419 | #  You should have received a copy of the GNU General Public License | 
|---|
| 5420 | #  along with this program; if not, write to the Free Software | 
|---|
| 5421 | #  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 
|---|
| 5422 | #  */ | 
|---|
| 5423 | # | 
|---|
| 5424 | # #include <stdio.h>            /* for printf() */ | 
|---|
| 5425 | # #include <unistd.h>           /* for open(), lseek(), read() */ | 
|---|
| 5426 | # #include <fcntl.h>            /* for O_RDONLY, O_BINARY */ | 
|---|
| 5427 | # #include <string.h>           /* for strdup() */ | 
|---|
| 5428 | # | 
|---|
| 5429 | # /* O_BINARY isn't required (or even defined sometimes) under Unix */ | 
|---|
| 5430 | # #ifndef O_BINARY | 
|---|
| 5431 | # #define O_BINARY 0 | 
|---|
| 5432 | # #endif | 
|---|
| 5433 | # | 
|---|
| 5434 | # static unsigned int | 
|---|
| 5435 | # pe_get16 (fd, offset) | 
|---|
| 5436 | #      int fd; | 
|---|
| 5437 | #      int offset; | 
|---|
| 5438 | # { | 
|---|
| 5439 | #   unsigned char b[2]; | 
|---|
| 5440 | #   lseek (fd, offset, SEEK_SET); | 
|---|
| 5441 | #   read (fd, b, 2); | 
|---|
| 5442 | #   return b[0] + (b[1]<<8); | 
|---|
| 5443 | # } | 
|---|
| 5444 | # | 
|---|
| 5445 | # static unsigned int | 
|---|
| 5446 | # pe_get32 (fd, offset) | 
|---|
| 5447 | #     int fd; | 
|---|
| 5448 | #     int offset; | 
|---|
| 5449 | # { | 
|---|
| 5450 | #   unsigned char b[4]; | 
|---|
| 5451 | #   lseek (fd, offset, SEEK_SET); | 
|---|
| 5452 | #   read (fd, b, 4); | 
|---|
| 5453 | #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); | 
|---|
| 5454 | # } | 
|---|
| 5455 | # | 
|---|
| 5456 | # static unsigned int | 
|---|
| 5457 | # pe_as32 (ptr) | 
|---|
| 5458 | #      void *ptr; | 
|---|
| 5459 | # { | 
|---|
| 5460 | #   unsigned char *b = ptr; | 
|---|
| 5461 | #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); | 
|---|
| 5462 | # } | 
|---|
| 5463 | # | 
|---|
| 5464 | # int | 
|---|
| 5465 | # main (argc, argv) | 
|---|
| 5466 | #     int argc; | 
|---|
| 5467 | #     char *argv[]; | 
|---|
| 5468 | # { | 
|---|
| 5469 | #     int dll; | 
|---|
| 5470 | #     unsigned long pe_header_offset, opthdr_ofs, num_entries, i; | 
|---|
| 5471 | #     unsigned long export_rva, export_size, nsections, secptr, expptr; | 
|---|
| 5472 | #     unsigned long name_rvas, nexp; | 
|---|
| 5473 | #     unsigned char *expdata, *erva; | 
|---|
| 5474 | #     char *filename, *dll_name; | 
|---|
| 5475 | # | 
|---|
| 5476 | #     filename = argv[1]; | 
|---|
| 5477 | # | 
|---|
| 5478 | #     dll = open(filename, O_RDONLY|O_BINARY); | 
|---|
| 5479 | #     if (dll < 1) | 
|---|
| 5480 | #       return 1; | 
|---|
| 5481 | # | 
|---|
| 5482 | #     dll_name = filename; | 
|---|
| 5483 | # | 
|---|
| 5484 | #     for (i=0; filename[i]; i++) | 
|---|
| 5485 | #       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':') | 
|---|
| 5486 | #           dll_name = filename + i +1; | 
|---|
| 5487 | # | 
|---|
| 5488 | #     pe_header_offset = pe_get32 (dll, 0x3c); | 
|---|
| 5489 | #     opthdr_ofs = pe_header_offset + 4 + 20; | 
|---|
| 5490 | #     num_entries = pe_get32 (dll, opthdr_ofs + 92); | 
|---|
| 5491 | # | 
|---|
| 5492 | #     if (num_entries < 1) /* no exports */ | 
|---|
| 5493 | #       return 1; | 
|---|
| 5494 | # | 
|---|
| 5495 | #     export_rva = pe_get32 (dll, opthdr_ofs + 96); | 
|---|
| 5496 | #     export_size = pe_get32 (dll, opthdr_ofs + 100); | 
|---|
| 5497 | #     nsections = pe_get16 (dll, pe_header_offset + 4 +2); | 
|---|
| 5498 | #     secptr = (pe_header_offset + 4 + 20 + | 
|---|
| 5499 | #             pe_get16 (dll, pe_header_offset + 4 + 16)); | 
|---|
| 5500 | # | 
|---|
| 5501 | #     expptr = 0; | 
|---|
| 5502 | #     for (i = 0; i < nsections; i++) | 
|---|
| 5503 | #     { | 
|---|
| 5504 | #       char sname[8]; | 
|---|
| 5505 | #       unsigned long secptr1 = secptr + 40 * i; | 
|---|
| 5506 | #       unsigned long vaddr = pe_get32 (dll, secptr1 + 12); | 
|---|
| 5507 | #       unsigned long vsize = pe_get32 (dll, secptr1 + 16); | 
|---|
| 5508 | #       unsigned long fptr = pe_get32 (dll, secptr1 + 20); | 
|---|
| 5509 | #       lseek(dll, secptr1, SEEK_SET); | 
|---|
| 5510 | #       read(dll, sname, 8); | 
|---|
| 5511 | #       if (vaddr <= export_rva && vaddr+vsize > export_rva) | 
|---|
| 5512 | #       { | 
|---|
| 5513 | #           expptr = fptr + (export_rva - vaddr); | 
|---|
| 5514 | #           if (export_rva + export_size > vaddr + vsize) | 
|---|
| 5515 | #               export_size = vsize - (export_rva - vaddr); | 
|---|
| 5516 | #           break; | 
|---|
| 5517 | #       } | 
|---|
| 5518 | #     } | 
|---|
| 5519 | # | 
|---|
| 5520 | #     expdata = (unsigned char*)malloc(export_size); | 
|---|
| 5521 | #     lseek (dll, expptr, SEEK_SET); | 
|---|
| 5522 | #     read (dll, expdata, export_size); | 
|---|
| 5523 | #     erva = expdata - export_rva; | 
|---|
| 5524 | # | 
|---|
| 5525 | #     nexp = pe_as32 (expdata+24); | 
|---|
| 5526 | #     name_rvas = pe_as32 (expdata+32); | 
|---|
| 5527 | # | 
|---|
| 5528 | #     printf ("EXPORTS\n"); | 
|---|
| 5529 | #     for (i = 0; i<nexp; i++) | 
|---|
| 5530 | #     { | 
|---|
| 5531 | #       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4); | 
|---|
| 5532 | #       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i); | 
|---|
| 5533 | #     } | 
|---|
| 5534 | # | 
|---|
| 5535 | #     return 0; | 
|---|
| 5536 | # } | 
|---|
| 5537 | # /* impgen.c ends here */ | 
|---|
| 5538 |  | 
|---|
| 5539 | EOF | 
|---|
| 5540 | ;; | 
|---|
| 5541 | esac | 
|---|
| 5542 |  | 
|---|
| 5543 | # We use sed instead of cat because bash on DJGPP gets confused if | 
|---|
| 5544 | # if finds mixed CR/LF and LF-only lines.  Since sed operates in | 
|---|
| 5545 | # text mode, it properly converts lines to CR/LF.  This bash problem | 
|---|
| 5546 | # is reportedly fixed, but why not run on old versions too? | 
|---|
| 5547 | sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1) | 
|---|
| 5548 |  | 
|---|
| 5549 | mv -f "${ofile}T" "$ofile" || \ | 
|---|
| 5550 | (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T") | 
|---|
| 5551 | chmod +x "$ofile" | 
|---|
| 5552 | fi | 
|---|
| 5553 |  | 
|---|
| 5554 |  | 
|---|
| 5555 |  | 
|---|
| 5556 |  | 
|---|
| 5557 |  | 
|---|
| 5558 | # This can be used to rebuild libtool when needed | 
|---|
| 5559 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" | 
|---|
| 5560 |  | 
|---|
| 5561 | # Always use our own libtool. | 
|---|
| 5562 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | 
|---|
| 5563 |  | 
|---|
| 5564 | # Prevent multiple expansion | 
|---|
| 5565 |  | 
|---|
| 5566 |  | 
|---|
| 5567 | # Find a good install program.  We prefer a C program (faster), | 
|---|
| 5568 | # so one script is as good as another.  But avoid the broken or | 
|---|
| 5569 | # incompatible versions: | 
|---|
| 5570 | # SysV /etc/install, /usr/sbin/install | 
|---|
| 5571 | # SunOS /usr/etc/install | 
|---|
| 5572 | # IRIX /sbin/install | 
|---|
| 5573 | # AIX /bin/install | 
|---|
| 5574 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | 
|---|
| 5575 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | 
|---|
| 5576 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | 
|---|
| 5577 | # ./install, which can be erroneously created by make from ./install.sh. | 
|---|
| 5578 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | 
|---|
| 5579 | echo "configure:5580: checking for a BSD compatible install" >&5 | 
|---|
| 5580 | if test -z "$INSTALL"; then | 
|---|
| 5581 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | 
|---|
| 5582 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 5583 | else | 
|---|
| 5584 | IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":" | 
|---|
| 5585 | for ac_dir in $PATH; do | 
|---|
| 5586 | # Account for people who put trailing slashes in PATH elements. | 
|---|
| 5587 | case "$ac_dir/" in | 
|---|
| 5588 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | 
|---|
| 5589 | *) | 
|---|
| 5590 | # OSF1 and SCO ODT 3.0 have their own names for install. | 
|---|
| 5591 | # Don't use installbsd from OSF since it installs stuff as root | 
|---|
| 5592 | # by default. | 
|---|
| 5593 | for ac_prog in ginstall scoinst install; do | 
|---|
| 5594 | if test -f $ac_dir/$ac_prog; then | 
|---|
| 5595 | if test $ac_prog = install && | 
|---|
| 5596 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | 
|---|
| 5597 | # AIX install.  It has an incompatible calling convention. | 
|---|
| 5598 | : | 
|---|
| 5599 | else | 
|---|
| 5600 | ac_cv_path_install="$ac_dir/$ac_prog -c" | 
|---|
| 5601 | break 2 | 
|---|
| 5602 | fi | 
|---|
| 5603 | fi | 
|---|
| 5604 | done | 
|---|
| 5605 | ;; | 
|---|
| 5606 | esac | 
|---|
| 5607 | done | 
|---|
| 5608 | IFS="$ac_save_IFS" | 
|---|
| 5609 |  | 
|---|
| 5610 | fi | 
|---|
| 5611 | if test "${ac_cv_path_install+set}" = set; then | 
|---|
| 5612 | INSTALL="$ac_cv_path_install" | 
|---|
| 5613 | else | 
|---|
| 5614 | # As a last resort, use the slow shell script.  We don't cache a | 
|---|
| 5615 | # path for INSTALL within a source directory, because that will | 
|---|
| 5616 | # break other packages using the cache if that directory is | 
|---|
| 5617 | # removed, or if the path is relative. | 
|---|
| 5618 | INSTALL="$ac_install_sh" | 
|---|
| 5619 | fi | 
|---|
| 5620 | fi | 
|---|
| 5621 | echo "$ac_t""$INSTALL" 1>&6 | 
|---|
| 5622 |  | 
|---|
| 5623 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | 
|---|
| 5624 | # It thinks the first close brace ends the variable substitution. | 
|---|
| 5625 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | 
|---|
| 5626 |  | 
|---|
| 5627 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' | 
|---|
| 5628 |  | 
|---|
| 5629 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | 
|---|
| 5630 |  | 
|---|
| 5631 |  | 
|---|
| 5632 | # Check whether --enable-largefile or --disable-largefile was given. | 
|---|
| 5633 | if test "${enable_largefile+set}" = set; then | 
|---|
| 5634 | enableval="$enable_largefile" | 
|---|
| 5635 | : | 
|---|
| 5636 | fi | 
|---|
| 5637 |  | 
|---|
| 5638 | if test "$enable_largefile" != no; then | 
|---|
| 5639 |  | 
|---|
| 5640 | echo $ac_n "checking for special C compiler options needed for large files""... $ac_c" 1>&6 | 
|---|
| 5641 | echo "configure:5642: checking for special C compiler options needed for large files" >&5 | 
|---|
| 5642 | if eval "test \"`echo '$''{'ac_cv_sys_largefile_CC'+set}'`\" = set"; then | 
|---|
| 5643 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 5644 | else | 
|---|
| 5645 | ac_cv_sys_largefile_CC=no | 
|---|
| 5646 | if test "$GCC" != yes; then | 
|---|
| 5647 | # IRIX 6.2 and later do not support large files by default, | 
|---|
| 5648 | # so use the C compiler's -n32 option if that helps. | 
|---|
| 5649 | cat > conftest.$ac_ext <<EOF | 
|---|
| 5650 | #line 5651 "configure" | 
|---|
| 5651 | #include "confdefs.h" | 
|---|
| 5652 | #include <sys/types.h> | 
|---|
| 5653 | int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | 
|---|
| 5654 |  | 
|---|
| 5655 | int main() { | 
|---|
| 5656 |  | 
|---|
| 5657 | ; return 0; } | 
|---|
| 5658 | EOF | 
|---|
| 5659 | if { (eval echo configure:5660: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
|---|
| 5660 | : | 
|---|
| 5661 | else | 
|---|
| 5662 | echo "configure: failed program was:" >&5 | 
|---|
| 5663 | cat conftest.$ac_ext >&5 | 
|---|
| 5664 | rm -rf conftest* | 
|---|
| 5665 | ac_save_CC="$CC" | 
|---|
| 5666 | CC="$CC -n32" | 
|---|
| 5667 | cat > conftest.$ac_ext <<EOF | 
|---|
| 5668 | #line 5669 "configure" | 
|---|
| 5669 | #include "confdefs.h" | 
|---|
| 5670 | #include <sys/types.h> | 
|---|
| 5671 | int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | 
|---|
| 5672 |  | 
|---|
| 5673 | int main() { | 
|---|
| 5674 |  | 
|---|
| 5675 | ; return 0; } | 
|---|
| 5676 | EOF | 
|---|
| 5677 | if { (eval echo configure:5678: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
|---|
| 5678 | rm -rf conftest* | 
|---|
| 5679 | ac_cv_sys_largefile_CC=' -n32' | 
|---|
| 5680 | else | 
|---|
| 5681 | echo "configure: failed program was:" >&5 | 
|---|
| 5682 | cat conftest.$ac_ext >&5 | 
|---|
| 5683 | fi | 
|---|
| 5684 | rm -f conftest* | 
|---|
| 5685 | CC="$ac_save_CC" | 
|---|
| 5686 | fi | 
|---|
| 5687 | rm -f conftest* | 
|---|
| 5688 | fi | 
|---|
| 5689 | fi | 
|---|
| 5690 |  | 
|---|
| 5691 | echo "$ac_t""$ac_cv_sys_largefile_CC" 1>&6 | 
|---|
| 5692 | if test "$ac_cv_sys_largefile_CC" != no; then | 
|---|
| 5693 | CC="$CC$ac_cv_sys_largefile_CC" | 
|---|
| 5694 | fi | 
|---|
| 5695 |  | 
|---|
| 5696 | echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6 | 
|---|
| 5697 | echo "configure:5698: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | 
|---|
| 5698 | if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then | 
|---|
| 5699 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 5700 | else | 
|---|
| 5701 | ac_cv_sys_file_offset_bits=no | 
|---|
| 5702 | cat > conftest.$ac_ext <<EOF | 
|---|
| 5703 | #line 5704 "configure" | 
|---|
| 5704 | #include "confdefs.h" | 
|---|
| 5705 | #include <sys/types.h> | 
|---|
| 5706 | int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | 
|---|
| 5707 |  | 
|---|
| 5708 |  | 
|---|
| 5709 |  | 
|---|
| 5710 | int main() { | 
|---|
| 5711 |  | 
|---|
| 5712 | ; return 0; } | 
|---|
| 5713 | EOF | 
|---|
| 5714 | if { (eval echo configure:5715: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
|---|
| 5715 | : | 
|---|
| 5716 | else | 
|---|
| 5717 | echo "configure: failed program was:" >&5 | 
|---|
| 5718 | cat conftest.$ac_ext >&5 | 
|---|
| 5719 | rm -rf conftest* | 
|---|
| 5720 | cat > conftest.$ac_ext <<EOF | 
|---|
| 5721 | #line 5722 "configure" | 
|---|
| 5722 | #include "confdefs.h" | 
|---|
| 5723 | #define _FILE_OFFSET_BITS 64 | 
|---|
| 5724 | #include <sys/types.h> | 
|---|
| 5725 | int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | 
|---|
| 5726 |  | 
|---|
| 5727 |  | 
|---|
| 5728 |  | 
|---|
| 5729 | int main() { | 
|---|
| 5730 |  | 
|---|
| 5731 | ; return 0; } | 
|---|
| 5732 | EOF | 
|---|
| 5733 | if { (eval echo configure:5734: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
|---|
| 5734 | rm -rf conftest* | 
|---|
| 5735 | ac_cv_sys_file_offset_bits=64 | 
|---|
| 5736 | else | 
|---|
| 5737 | echo "configure: failed program was:" >&5 | 
|---|
| 5738 | cat conftest.$ac_ext >&5 | 
|---|
| 5739 | fi | 
|---|
| 5740 | rm -f conftest* | 
|---|
| 5741 | fi | 
|---|
| 5742 | rm -f conftest* | 
|---|
| 5743 | fi | 
|---|
| 5744 |  | 
|---|
| 5745 | echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6 | 
|---|
| 5746 | if test "$ac_cv_sys_file_offset_bits" != no; then | 
|---|
| 5747 | cat >> confdefs.h <<EOF | 
|---|
| 5748 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | 
|---|
| 5749 | EOF | 
|---|
| 5750 |  | 
|---|
| 5751 | fi | 
|---|
| 5752 | echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6 | 
|---|
| 5753 | echo "configure:5754: checking for _LARGEFILE_SOURCE value needed for large files" >&5 | 
|---|
| 5754 | if eval "test \"`echo '$''{'ac_cv_sys_largefile_source'+set}'`\" = set"; then | 
|---|
| 5755 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 5756 | else | 
|---|
| 5757 | ac_cv_sys_largefile_source=no | 
|---|
| 5758 | cat > conftest.$ac_ext <<EOF | 
|---|
| 5759 | #line 5760 "configure" | 
|---|
| 5760 | #include "confdefs.h" | 
|---|
| 5761 | #include <sys/types.h> | 
|---|
| 5762 | int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | 
|---|
| 5763 |  | 
|---|
| 5764 | #include <stdio.h> | 
|---|
| 5765 |  | 
|---|
| 5766 | int main() { | 
|---|
| 5767 | return !ftello; | 
|---|
| 5768 | ; return 0; } | 
|---|
| 5769 | EOF | 
|---|
| 5770 | if { (eval echo configure:5771: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
|---|
| 5771 | : | 
|---|
| 5772 | else | 
|---|
| 5773 | echo "configure: failed program was:" >&5 | 
|---|
| 5774 | cat conftest.$ac_ext >&5 | 
|---|
| 5775 | rm -rf conftest* | 
|---|
| 5776 | cat > conftest.$ac_ext <<EOF | 
|---|
| 5777 | #line 5778 "configure" | 
|---|
| 5778 | #include "confdefs.h" | 
|---|
| 5779 | #define _LARGEFILE_SOURCE 1 | 
|---|
| 5780 | #include <sys/types.h> | 
|---|
| 5781 | int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | 
|---|
| 5782 |  | 
|---|
| 5783 | #include <stdio.h> | 
|---|
| 5784 |  | 
|---|
| 5785 | int main() { | 
|---|
| 5786 | return !ftello; | 
|---|
| 5787 | ; return 0; } | 
|---|
| 5788 | EOF | 
|---|
| 5789 | if { (eval echo configure:5790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
|---|
| 5790 | rm -rf conftest* | 
|---|
| 5791 | ac_cv_sys_largefile_source=1 | 
|---|
| 5792 | else | 
|---|
| 5793 | echo "configure: failed program was:" >&5 | 
|---|
| 5794 | cat conftest.$ac_ext >&5 | 
|---|
| 5795 | fi | 
|---|
| 5796 | rm -f conftest* | 
|---|
| 5797 | fi | 
|---|
| 5798 | rm -f conftest* | 
|---|
| 5799 | fi | 
|---|
| 5800 |  | 
|---|
| 5801 | echo "$ac_t""$ac_cv_sys_largefile_source" 1>&6 | 
|---|
| 5802 | if test "$ac_cv_sys_largefile_source" != no; then | 
|---|
| 5803 | cat >> confdefs.h <<EOF | 
|---|
| 5804 | #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source | 
|---|
| 5805 | EOF | 
|---|
| 5806 |  | 
|---|
| 5807 | fi | 
|---|
| 5808 | echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6 | 
|---|
| 5809 | echo "configure:5810: checking for _LARGE_FILES value needed for large files" >&5 | 
|---|
| 5810 | if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then | 
|---|
| 5811 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 5812 | else | 
|---|
| 5813 | ac_cv_sys_large_files=no | 
|---|
| 5814 | cat > conftest.$ac_ext <<EOF | 
|---|
| 5815 | #line 5816 "configure" | 
|---|
| 5816 | #include "confdefs.h" | 
|---|
| 5817 | #include <sys/types.h> | 
|---|
| 5818 | int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | 
|---|
| 5819 |  | 
|---|
| 5820 |  | 
|---|
| 5821 |  | 
|---|
| 5822 | int main() { | 
|---|
| 5823 |  | 
|---|
| 5824 | ; return 0; } | 
|---|
| 5825 | EOF | 
|---|
| 5826 | if { (eval echo configure:5827: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
|---|
| 5827 | : | 
|---|
| 5828 | else | 
|---|
| 5829 | echo "configure: failed program was:" >&5 | 
|---|
| 5830 | cat conftest.$ac_ext >&5 | 
|---|
| 5831 | rm -rf conftest* | 
|---|
| 5832 | cat > conftest.$ac_ext <<EOF | 
|---|
| 5833 | #line 5834 "configure" | 
|---|
| 5834 | #include "confdefs.h" | 
|---|
| 5835 | #define _LARGE_FILES 1 | 
|---|
| 5836 | #include <sys/types.h> | 
|---|
| 5837 | int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | 
|---|
| 5838 |  | 
|---|
| 5839 |  | 
|---|
| 5840 |  | 
|---|
| 5841 | int main() { | 
|---|
| 5842 |  | 
|---|
| 5843 | ; return 0; } | 
|---|
| 5844 | EOF | 
|---|
| 5845 | if { (eval echo configure:5846: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
|---|
| 5846 | rm -rf conftest* | 
|---|
| 5847 | ac_cv_sys_large_files=1 | 
|---|
| 5848 | else | 
|---|
| 5849 | echo "configure: failed program was:" >&5 | 
|---|
| 5850 | cat conftest.$ac_ext >&5 | 
|---|
| 5851 | fi | 
|---|
| 5852 | rm -f conftest* | 
|---|
| 5853 | fi | 
|---|
| 5854 | rm -f conftest* | 
|---|
| 5855 | fi | 
|---|
| 5856 |  | 
|---|
| 5857 | echo "$ac_t""$ac_cv_sys_large_files" 1>&6 | 
|---|
| 5858 | if test "$ac_cv_sys_large_files" != no; then | 
|---|
| 5859 | cat >> confdefs.h <<EOF | 
|---|
| 5860 | #define _LARGE_FILES $ac_cv_sys_large_files | 
|---|
| 5861 | EOF | 
|---|
| 5862 |  | 
|---|
| 5863 | fi | 
|---|
| 5864 | echo $ac_n "checking for _XOPEN_SOURCE value needed for large files""... $ac_c" 1>&6 | 
|---|
| 5865 | echo "configure:5866: checking for _XOPEN_SOURCE value needed for large files" >&5 | 
|---|
| 5866 | if eval "test \"`echo '$''{'ac_cv_sys_xopen_source'+set}'`\" = set"; then | 
|---|
| 5867 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 5868 | else | 
|---|
| 5869 | ac_cv_sys_xopen_source=no | 
|---|
| 5870 | cat > conftest.$ac_ext <<EOF | 
|---|
| 5871 | #line 5872 "configure" | 
|---|
| 5872 | #include "confdefs.h" | 
|---|
| 5873 | #include <sys/types.h> | 
|---|
| 5874 | int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | 
|---|
| 5875 |  | 
|---|
| 5876 | #include <stdio.h> | 
|---|
| 5877 |  | 
|---|
| 5878 | int main() { | 
|---|
| 5879 | return !ftello; | 
|---|
| 5880 | ; return 0; } | 
|---|
| 5881 | EOF | 
|---|
| 5882 | if { (eval echo configure:5883: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
|---|
| 5883 | : | 
|---|
| 5884 | else | 
|---|
| 5885 | echo "configure: failed program was:" >&5 | 
|---|
| 5886 | cat conftest.$ac_ext >&5 | 
|---|
| 5887 | rm -rf conftest* | 
|---|
| 5888 | cat > conftest.$ac_ext <<EOF | 
|---|
| 5889 | #line 5890 "configure" | 
|---|
| 5890 | #include "confdefs.h" | 
|---|
| 5891 | #define _XOPEN_SOURCE 500 | 
|---|
| 5892 | #include <sys/types.h> | 
|---|
| 5893 | int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | 
|---|
| 5894 |  | 
|---|
| 5895 | #include <stdio.h> | 
|---|
| 5896 |  | 
|---|
| 5897 | int main() { | 
|---|
| 5898 | return !ftello; | 
|---|
| 5899 | ; return 0; } | 
|---|
| 5900 | EOF | 
|---|
| 5901 | if { (eval echo configure:5902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
|---|
| 5902 | rm -rf conftest* | 
|---|
| 5903 | ac_cv_sys_xopen_source=500 | 
|---|
| 5904 | else | 
|---|
| 5905 | echo "configure: failed program was:" >&5 | 
|---|
| 5906 | cat conftest.$ac_ext >&5 | 
|---|
| 5907 | fi | 
|---|
| 5908 | rm -f conftest* | 
|---|
| 5909 | fi | 
|---|
| 5910 | rm -f conftest* | 
|---|
| 5911 | fi | 
|---|
| 5912 |  | 
|---|
| 5913 | echo "$ac_t""$ac_cv_sys_xopen_source" 1>&6 | 
|---|
| 5914 | if test "$ac_cv_sys_xopen_source" != no; then | 
|---|
| 5915 | cat >> confdefs.h <<EOF | 
|---|
| 5916 | #define _XOPEN_SOURCE $ac_cv_sys_xopen_source | 
|---|
| 5917 | EOF | 
|---|
| 5918 |  | 
|---|
| 5919 | fi | 
|---|
| 5920 | fi | 
|---|
| 5921 |  | 
|---|
| 5922 |  | 
|---|
| 5923 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | 
|---|
| 5924 | echo "configure:5925: checking for ANSI C header files" >&5 | 
|---|
| 5925 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then | 
|---|
| 5926 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 5927 | else | 
|---|
| 5928 | cat > conftest.$ac_ext <<EOF | 
|---|
| 5929 | #line 5930 "configure" | 
|---|
| 5930 | #include "confdefs.h" | 
|---|
| 5931 | #include <stdlib.h> | 
|---|
| 5932 | #include <stdarg.h> | 
|---|
| 5933 | #include <string.h> | 
|---|
| 5934 | #include <float.h> | 
|---|
| 5935 | EOF | 
|---|
| 5936 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
|---|
| 5937 | { (eval echo configure:5938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
|---|
| 5938 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
|---|
| 5939 | if test -z "$ac_err"; then | 
|---|
| 5940 | rm -rf conftest* | 
|---|
| 5941 | ac_cv_header_stdc=yes | 
|---|
| 5942 | else | 
|---|
| 5943 | echo "$ac_err" >&5 | 
|---|
| 5944 | echo "configure: failed program was:" >&5 | 
|---|
| 5945 | cat conftest.$ac_ext >&5 | 
|---|
| 5946 | rm -rf conftest* | 
|---|
| 5947 | ac_cv_header_stdc=no | 
|---|
| 5948 | fi | 
|---|
| 5949 | rm -f conftest* | 
|---|
| 5950 |  | 
|---|
| 5951 | if test $ac_cv_header_stdc = yes; then | 
|---|
| 5952 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
|---|
| 5953 | cat > conftest.$ac_ext <<EOF | 
|---|
| 5954 | #line 5955 "configure" | 
|---|
| 5955 | #include "confdefs.h" | 
|---|
| 5956 | #include <string.h> | 
|---|
| 5957 | EOF | 
|---|
| 5958 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
|---|
| 5959 | egrep "memchr" >/dev/null 2>&1; then | 
|---|
| 5960 | : | 
|---|
| 5961 | else | 
|---|
| 5962 | rm -rf conftest* | 
|---|
| 5963 | ac_cv_header_stdc=no | 
|---|
| 5964 | fi | 
|---|
| 5965 | rm -f conftest* | 
|---|
| 5966 |  | 
|---|
| 5967 | fi | 
|---|
| 5968 |  | 
|---|
| 5969 | if test $ac_cv_header_stdc = yes; then | 
|---|
| 5970 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 
|---|
| 5971 | cat > conftest.$ac_ext <<EOF | 
|---|
| 5972 | #line 5973 "configure" | 
|---|
| 5973 | #include "confdefs.h" | 
|---|
| 5974 | #include <stdlib.h> | 
|---|
| 5975 | EOF | 
|---|
| 5976 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
|---|
| 5977 | egrep "free" >/dev/null 2>&1; then | 
|---|
| 5978 | : | 
|---|
| 5979 | else | 
|---|
| 5980 | rm -rf conftest* | 
|---|
| 5981 | ac_cv_header_stdc=no | 
|---|
| 5982 | fi | 
|---|
| 5983 | rm -f conftest* | 
|---|
| 5984 |  | 
|---|
| 5985 | fi | 
|---|
| 5986 |  | 
|---|
| 5987 | if test $ac_cv_header_stdc = yes; then | 
|---|
| 5988 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 
|---|
| 5989 | if test "$cross_compiling" = yes; then | 
|---|
| 5990 | : | 
|---|
| 5991 | else | 
|---|
| 5992 | cat > conftest.$ac_ext <<EOF | 
|---|
| 5993 | #line 5994 "configure" | 
|---|
| 5994 | #include "confdefs.h" | 
|---|
| 5995 | #include <ctype.h> | 
|---|
| 5996 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
|---|
| 5997 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
|---|
| 5998 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
|---|
| 5999 | int main () { int i; for (i = 0; i < 256; i++) | 
|---|
| 6000 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | 
|---|
| 6001 | exit (0); } | 
|---|
| 6002 |  | 
|---|
| 6003 | EOF | 
|---|
| 6004 | if { (eval echo configure:6005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 
|---|
| 6005 | then | 
|---|
| 6006 | : | 
|---|
| 6007 | else | 
|---|
| 6008 | echo "configure: failed program was:" >&5 | 
|---|
| 6009 | cat conftest.$ac_ext >&5 | 
|---|
| 6010 | rm -fr conftest* | 
|---|
| 6011 | ac_cv_header_stdc=no | 
|---|
| 6012 | fi | 
|---|
| 6013 | rm -fr conftest* | 
|---|
| 6014 | fi | 
|---|
| 6015 |  | 
|---|
| 6016 | fi | 
|---|
| 6017 | fi | 
|---|
| 6018 |  | 
|---|
| 6019 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | 
|---|
| 6020 | if test $ac_cv_header_stdc = yes; then | 
|---|
| 6021 | cat >> confdefs.h <<\EOF | 
|---|
| 6022 | #define STDC_HEADERS 1 | 
|---|
| 6023 | EOF | 
|---|
| 6024 |  | 
|---|
| 6025 | fi | 
|---|
| 6026 |  | 
|---|
| 6027 |  | 
|---|
| 6028 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | 
|---|
| 6029 | echo "configure:6030: checking for working const" >&5 | 
|---|
| 6030 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then | 
|---|
| 6031 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 6032 | else | 
|---|
| 6033 | cat > conftest.$ac_ext <<EOF | 
|---|
| 6034 | #line 6035 "configure" | 
|---|
| 6035 | #include "confdefs.h" | 
|---|
| 6036 |  | 
|---|
| 6037 | int main() { | 
|---|
| 6038 |  | 
|---|
| 6039 | /* Ultrix mips cc rejects this.  */ | 
|---|
| 6040 | typedef int charset[2]; const charset x; | 
|---|
| 6041 | /* SunOS 4.1.1 cc rejects this.  */ | 
|---|
| 6042 | char const *const *ccp; | 
|---|
| 6043 | char **p; | 
|---|
| 6044 | /* NEC SVR4.0.2 mips cc rejects this.  */ | 
|---|
| 6045 | struct point {int x, y;}; | 
|---|
| 6046 | static struct point const zero = {0,0}; | 
|---|
| 6047 | /* AIX XL C 1.02.0.0 rejects this. | 
|---|
| 6048 | It does not let you subtract one const X* pointer from another in an arm | 
|---|
| 6049 | of an if-expression whose if-part is not a constant expression */ | 
|---|
| 6050 | const char *g = "string"; | 
|---|
| 6051 | ccp = &g + (g ? g-g : 0); | 
|---|
| 6052 | /* HPUX 7.0 cc rejects these. */ | 
|---|
| 6053 | ++ccp; | 
|---|
| 6054 | p = (char**) ccp; | 
|---|
| 6055 | ccp = (char const *const *) p; | 
|---|
| 6056 | { /* SCO 3.2v4 cc rejects this.  */ | 
|---|
| 6057 | char *t; | 
|---|
| 6058 | char const *s = 0 ? (char *) 0 : (char const *) 0; | 
|---|
| 6059 |  | 
|---|
| 6060 | *t++ = 0; | 
|---|
| 6061 | } | 
|---|
| 6062 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */ | 
|---|
| 6063 | int x[] = {25, 17}; | 
|---|
| 6064 | const int *foo = &x[0]; | 
|---|
| 6065 | ++foo; | 
|---|
| 6066 | } | 
|---|
| 6067 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | 
|---|
| 6068 | typedef const int *iptr; | 
|---|
| 6069 | iptr p = 0; | 
|---|
| 6070 | ++p; | 
|---|
| 6071 | } | 
|---|
| 6072 | { /* AIX XL C 1.02.0.0 rejects this saying | 
|---|
| 6073 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | 
|---|
| 6074 | struct s { int j; const int *ap[3]; }; | 
|---|
| 6075 | struct s *b; b->j = 5; | 
|---|
| 6076 | } | 
|---|
| 6077 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | 
|---|
| 6078 | const int foo = 10; | 
|---|
| 6079 | } | 
|---|
| 6080 |  | 
|---|
| 6081 | ; return 0; } | 
|---|
| 6082 | EOF | 
|---|
| 6083 | if { (eval echo configure:6084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
|---|
| 6084 | rm -rf conftest* | 
|---|
| 6085 | ac_cv_c_const=yes | 
|---|
| 6086 | else | 
|---|
| 6087 | echo "configure: failed program was:" >&5 | 
|---|
| 6088 | cat conftest.$ac_ext >&5 | 
|---|
| 6089 | rm -rf conftest* | 
|---|
| 6090 | ac_cv_c_const=no | 
|---|
| 6091 | fi | 
|---|
| 6092 | rm -f conftest* | 
|---|
| 6093 | fi | 
|---|
| 6094 |  | 
|---|
| 6095 | echo "$ac_t""$ac_cv_c_const" 1>&6 | 
|---|
| 6096 | if test $ac_cv_c_const = no; then | 
|---|
| 6097 | cat >> confdefs.h <<\EOF | 
|---|
| 6098 | #define const | 
|---|
| 6099 | EOF | 
|---|
| 6100 |  | 
|---|
| 6101 | fi | 
|---|
| 6102 |  | 
|---|
| 6103 |  | 
|---|
| 6104 | echo $ac_n "checking for pow""... $ac_c" 1>&6 | 
|---|
| 6105 | echo "configure:6106: checking for pow" >&5 | 
|---|
| 6106 | if eval "test \"`echo '$''{'ac_cv_func_pow'+set}'`\" = set"; then | 
|---|
| 6107 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 6108 | else | 
|---|
| 6109 | cat > conftest.$ac_ext <<EOF | 
|---|
| 6110 | #line 6111 "configure" | 
|---|
| 6111 | #include "confdefs.h" | 
|---|
| 6112 | /* System header to define __stub macros and hopefully few prototypes, | 
|---|
| 6113 | which can conflict with char pow(); below.  */ | 
|---|
| 6114 | #include <assert.h> | 
|---|
| 6115 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|---|
| 6116 | /* We use char because int might match the return type of a gcc2 | 
|---|
| 6117 | builtin and then its argument prototype would still apply.  */ | 
|---|
| 6118 | char pow(); | 
|---|
| 6119 |  | 
|---|
| 6120 | int main() { | 
|---|
| 6121 |  | 
|---|
| 6122 | /* The GNU C library defines this for functions which it implements | 
|---|
| 6123 | to always fail with ENOSYS.  Some functions are actually named | 
|---|
| 6124 | something starting with __ and the normal name is an alias.  */ | 
|---|
| 6125 | #if defined (__stub_pow) || defined (__stub___pow) | 
|---|
| 6126 | choke me | 
|---|
| 6127 | #else | 
|---|
| 6128 | pow(); | 
|---|
| 6129 | #endif | 
|---|
| 6130 |  | 
|---|
| 6131 | ; return 0; } | 
|---|
| 6132 | EOF | 
|---|
| 6133 | if { (eval echo configure:6134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 6134 | rm -rf conftest* | 
|---|
| 6135 | eval "ac_cv_func_pow=yes" | 
|---|
| 6136 | else | 
|---|
| 6137 | echo "configure: failed program was:" >&5 | 
|---|
| 6138 | cat conftest.$ac_ext >&5 | 
|---|
| 6139 | rm -rf conftest* | 
|---|
| 6140 | eval "ac_cv_func_pow=no" | 
|---|
| 6141 | fi | 
|---|
| 6142 | rm -f conftest* | 
|---|
| 6143 | fi | 
|---|
| 6144 |  | 
|---|
| 6145 | if eval "test \"`echo '$ac_cv_func_'pow`\" = yes"; then | 
|---|
| 6146 | echo "$ac_t""yes" 1>&6 | 
|---|
| 6147 | : | 
|---|
| 6148 | else | 
|---|
| 6149 | echo "$ac_t""no" 1>&6 | 
|---|
| 6150 | echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6 | 
|---|
| 6151 | echo "configure:6152: checking for pow in -lm" >&5 | 
|---|
| 6152 | ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'` | 
|---|
| 6153 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 
|---|
| 6154 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 6155 | else | 
|---|
| 6156 | ac_save_LIBS="$LIBS" | 
|---|
| 6157 | LIBS="-lm  $LIBS" | 
|---|
| 6158 | cat > conftest.$ac_ext <<EOF | 
|---|
| 6159 | #line 6160 "configure" | 
|---|
| 6160 | #include "confdefs.h" | 
|---|
| 6161 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|---|
| 6162 | /* We use char because int might match the return type of a gcc2 | 
|---|
| 6163 | builtin and then its argument prototype would still apply.  */ | 
|---|
| 6164 | char pow(); | 
|---|
| 6165 |  | 
|---|
| 6166 | int main() { | 
|---|
| 6167 | pow() | 
|---|
| 6168 | ; return 0; } | 
|---|
| 6169 | EOF | 
|---|
| 6170 | if { (eval echo configure:6171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 6171 | rm -rf conftest* | 
|---|
| 6172 | eval "ac_cv_lib_$ac_lib_var=yes" | 
|---|
| 6173 | else | 
|---|
| 6174 | echo "configure: failed program was:" >&5 | 
|---|
| 6175 | cat conftest.$ac_ext >&5 | 
|---|
| 6176 | rm -rf conftest* | 
|---|
| 6177 | eval "ac_cv_lib_$ac_lib_var=no" | 
|---|
| 6178 | fi | 
|---|
| 6179 | rm -f conftest* | 
|---|
| 6180 | LIBS="$ac_save_LIBS" | 
|---|
| 6181 |  | 
|---|
| 6182 | fi | 
|---|
| 6183 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
|---|
| 6184 | echo "$ac_t""yes" 1>&6 | 
|---|
| 6185 | LIBS="$LIBS -lm" | 
|---|
| 6186 | else | 
|---|
| 6187 | echo "$ac_t""no" 1>&6 | 
|---|
| 6188 | fi | 
|---|
| 6189 |  | 
|---|
| 6190 | fi | 
|---|
| 6191 |  | 
|---|
| 6192 |  | 
|---|
| 6193 |  | 
|---|
| 6194 |  | 
|---|
| 6195 | cat >> confdefs.h <<\EOF | 
|---|
| 6196 | #define MNG_SUPPORT_FULL 1 | 
|---|
| 6197 | EOF | 
|---|
| 6198 |  | 
|---|
| 6199 |  | 
|---|
| 6200 | # Check whether --enable-read or --disable-read was given. | 
|---|
| 6201 | if test "${enable_read+set}" = set; then | 
|---|
| 6202 | enableval="$enable_read" | 
|---|
| 6203 | : | 
|---|
| 6204 | fi | 
|---|
| 6205 |  | 
|---|
| 6206 | if test "x$enable_read" != "xno"; then | 
|---|
| 6207 | cat >> confdefs.h <<\EOF | 
|---|
| 6208 | #define MNG_SUPPORT_READ 1 | 
|---|
| 6209 | EOF | 
|---|
| 6210 |  | 
|---|
| 6211 | fi | 
|---|
| 6212 |  | 
|---|
| 6213 | # Check whether --enable-write or --disable-write was given. | 
|---|
| 6214 | if test "${enable_write+set}" = set; then | 
|---|
| 6215 | enableval="$enable_write" | 
|---|
| 6216 | : | 
|---|
| 6217 | fi | 
|---|
| 6218 |  | 
|---|
| 6219 | if test "x$enable_write" != "xno"; then | 
|---|
| 6220 | cat >> confdefs.h <<\EOF | 
|---|
| 6221 | #define MNG_SUPPORT_WRITE 1 | 
|---|
| 6222 | EOF | 
|---|
| 6223 |  | 
|---|
| 6224 | fi | 
|---|
| 6225 |  | 
|---|
| 6226 | # Check whether --enable-display or --disable-display was given. | 
|---|
| 6227 | if test "${enable_display+set}" = set; then | 
|---|
| 6228 | enableval="$enable_display" | 
|---|
| 6229 | : | 
|---|
| 6230 | fi | 
|---|
| 6231 |  | 
|---|
| 6232 | if test "x$enable_display" != "xno"; then | 
|---|
| 6233 | cat >> confdefs.h <<\EOF | 
|---|
| 6234 | #define MNG_SUPPORT_DISPLAY 1 | 
|---|
| 6235 | EOF | 
|---|
| 6236 |  | 
|---|
| 6237 | fi | 
|---|
| 6238 |  | 
|---|
| 6239 | # Check whether --enable-chunks or --disable-chunks was given. | 
|---|
| 6240 | if test "${enable_chunks+set}" = set; then | 
|---|
| 6241 | enableval="$enable_chunks" | 
|---|
| 6242 | : | 
|---|
| 6243 | fi | 
|---|
| 6244 |  | 
|---|
| 6245 | if test "x$enable_chunks" != "xno"; then | 
|---|
| 6246 | cat >> confdefs.h <<\EOF | 
|---|
| 6247 | #define MNG_ACCESS_CHUNKS 1 | 
|---|
| 6248 | EOF | 
|---|
| 6249 |  | 
|---|
| 6250 | fi | 
|---|
| 6251 |  | 
|---|
| 6252 | # Check whether --enable-storechunks or --disable-storechunks was given. | 
|---|
| 6253 | if test "${enable_storechunks+set}" = set; then | 
|---|
| 6254 | enableval="$enable_storechunks" | 
|---|
| 6255 |  | 
|---|
| 6256 | if test "x$enable_storechunks" != "xno"; then | 
|---|
| 6257 | cat >> confdefs.h <<\EOF | 
|---|
| 6258 | #define MNG_STORE_CHUNKS 1 | 
|---|
| 6259 | EOF | 
|---|
| 6260 |  | 
|---|
| 6261 | fi | 
|---|
| 6262 |  | 
|---|
| 6263 | fi | 
|---|
| 6264 |  | 
|---|
| 6265 |  | 
|---|
| 6266 | # Check whether --enable-trace or --disable-trace was given. | 
|---|
| 6267 | if test "${enable_trace+set}" = set; then | 
|---|
| 6268 | enableval="$enable_trace" | 
|---|
| 6269 |  | 
|---|
| 6270 | if test "x$enable_trace" = "xyes"; then | 
|---|
| 6271 | cat >> confdefs.h <<\EOF | 
|---|
| 6272 | #define MNG_SUPPORT_TRACE 1 | 
|---|
| 6273 | EOF | 
|---|
| 6274 |  | 
|---|
| 6275 | cat >> confdefs.h <<\EOF | 
|---|
| 6276 | #define MNG_TRACE_TELLTALE 1 | 
|---|
| 6277 | EOF | 
|---|
| 6278 |  | 
|---|
| 6279 | fi | 
|---|
| 6280 |  | 
|---|
| 6281 | fi | 
|---|
| 6282 |  | 
|---|
| 6283 |  | 
|---|
| 6284 | cat >> confdefs.h <<\EOF | 
|---|
| 6285 | #define MNG_ERROR_TELLTALE 1 | 
|---|
| 6286 | EOF | 
|---|
| 6287 |  | 
|---|
| 6288 |  | 
|---|
| 6289 |  | 
|---|
| 6290 | # Check whether --with-zlib or --without-zlib was given. | 
|---|
| 6291 | if test "${with_zlib+set}" = set; then | 
|---|
| 6292 | withval="$with_zlib" | 
|---|
| 6293 |  | 
|---|
| 6294 | if test -d "$withval"; then | 
|---|
| 6295 | CPPFLAGS="$CPPFLAGS -I$withval/include" | 
|---|
| 6296 | LDFLAGS="$LDFLAGS -L$withval/lib" | 
|---|
| 6297 | fi | 
|---|
| 6298 |  | 
|---|
| 6299 | fi | 
|---|
| 6300 |  | 
|---|
| 6301 | ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'` | 
|---|
| 6302 | echo $ac_n "checking for zlib.h""... $ac_c" 1>&6 | 
|---|
| 6303 | echo "configure:6304: checking for zlib.h" >&5 | 
|---|
| 6304 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 
|---|
| 6305 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 6306 | else | 
|---|
| 6307 | cat > conftest.$ac_ext <<EOF | 
|---|
| 6308 | #line 6309 "configure" | 
|---|
| 6309 | #include "confdefs.h" | 
|---|
| 6310 | #include <zlib.h> | 
|---|
| 6311 | EOF | 
|---|
| 6312 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
|---|
| 6313 | { (eval echo configure:6314: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
|---|
| 6314 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
|---|
| 6315 | if test -z "$ac_err"; then | 
|---|
| 6316 | rm -rf conftest* | 
|---|
| 6317 | eval "ac_cv_header_$ac_safe=yes" | 
|---|
| 6318 | else | 
|---|
| 6319 | echo "$ac_err" >&5 | 
|---|
| 6320 | echo "configure: failed program was:" >&5 | 
|---|
| 6321 | cat conftest.$ac_ext >&5 | 
|---|
| 6322 | rm -rf conftest* | 
|---|
| 6323 | eval "ac_cv_header_$ac_safe=no" | 
|---|
| 6324 | fi | 
|---|
| 6325 | rm -f conftest* | 
|---|
| 6326 | fi | 
|---|
| 6327 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 
|---|
| 6328 | echo "$ac_t""yes" 1>&6 | 
|---|
| 6329 | echo $ac_n "checking for gzread in -lz""... $ac_c" 1>&6 | 
|---|
| 6330 | echo "configure:6331: checking for gzread in -lz" >&5 | 
|---|
| 6331 | ac_lib_var=`echo z'_'gzread | sed 'y%./+-%__p_%'` | 
|---|
| 6332 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 
|---|
| 6333 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 6334 | else | 
|---|
| 6335 | ac_save_LIBS="$LIBS" | 
|---|
| 6336 | LIBS="-lz  $LIBS" | 
|---|
| 6337 | cat > conftest.$ac_ext <<EOF | 
|---|
| 6338 | #line 6339 "configure" | 
|---|
| 6339 | #include "confdefs.h" | 
|---|
| 6340 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|---|
| 6341 | /* We use char because int might match the return type of a gcc2 | 
|---|
| 6342 | builtin and then its argument prototype would still apply.  */ | 
|---|
| 6343 | char gzread(); | 
|---|
| 6344 |  | 
|---|
| 6345 | int main() { | 
|---|
| 6346 | gzread() | 
|---|
| 6347 | ; return 0; } | 
|---|
| 6348 | EOF | 
|---|
| 6349 | if { (eval echo configure:6350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 6350 | rm -rf conftest* | 
|---|
| 6351 | eval "ac_cv_lib_$ac_lib_var=yes" | 
|---|
| 6352 | else | 
|---|
| 6353 | echo "configure: failed program was:" >&5 | 
|---|
| 6354 | cat conftest.$ac_ext >&5 | 
|---|
| 6355 | rm -rf conftest* | 
|---|
| 6356 | eval "ac_cv_lib_$ac_lib_var=no" | 
|---|
| 6357 | fi | 
|---|
| 6358 | rm -f conftest* | 
|---|
| 6359 | LIBS="$ac_save_LIBS" | 
|---|
| 6360 |  | 
|---|
| 6361 | fi | 
|---|
| 6362 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
|---|
| 6363 | echo "$ac_t""yes" 1>&6 | 
|---|
| 6364 | ac_tr_lib=HAVE_LIB`echo z | sed -e 's/^a-zA-Z0-9_/_/g' \ | 
|---|
| 6365 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | 
|---|
| 6366 | cat >> confdefs.h <<EOF | 
|---|
| 6367 | #define $ac_tr_lib 1 | 
|---|
| 6368 | EOF | 
|---|
| 6369 |  | 
|---|
| 6370 | LIBS="-lz $LIBS" | 
|---|
| 6371 |  | 
|---|
| 6372 | else | 
|---|
| 6373 | echo "$ac_t""no" 1>&6 | 
|---|
| 6374 | { echo "configure: error: zlib library not found" 1>&2; exit 1; } | 
|---|
| 6375 | fi | 
|---|
| 6376 |  | 
|---|
| 6377 | else | 
|---|
| 6378 | echo "$ac_t""no" 1>&6 | 
|---|
| 6379 | { echo "configure: error: zlib header not found" 1>&2; exit 1; } | 
|---|
| 6380 |  | 
|---|
| 6381 | fi | 
|---|
| 6382 |  | 
|---|
| 6383 |  | 
|---|
| 6384 | # Check whether --with-jpeg or --without-jpeg was given. | 
|---|
| 6385 | if test "${with_jpeg+set}" = set; then | 
|---|
| 6386 | withval="$with_jpeg" | 
|---|
| 6387 | with_jpeg=$withval | 
|---|
| 6388 | else | 
|---|
| 6389 | with_jpeg=_auto | 
|---|
| 6390 | fi | 
|---|
| 6391 |  | 
|---|
| 6392 |  | 
|---|
| 6393 | if test "x$with_jpeg" != "xno" -a "x$with_jpeg" != "xyes" -a \ | 
|---|
| 6394 | "x$with_jpeg" != "x_auto"; then | 
|---|
| 6395 | # Save in case test with directory specified fails | 
|---|
| 6396 | _cppflags=${CPPFLAGS} | 
|---|
| 6397 | _ldflags=${LDFLAGS} | 
|---|
| 6398 | _restore=1 | 
|---|
| 6399 |  | 
|---|
| 6400 | CPPFLAGS="${CPPFLAGS} -I$withval/include" | 
|---|
| 6401 | LDFLAGS="${LDFLAGS} -L$withval/lib" | 
|---|
| 6402 | else | 
|---|
| 6403 | _restore=0 | 
|---|
| 6404 | fi | 
|---|
| 6405 |  | 
|---|
| 6406 | if test "x$with_jpeg" != "xno"; then | 
|---|
| 6407 | ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'` | 
|---|
| 6408 | echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 | 
|---|
| 6409 | echo "configure:6410: checking for jpeglib.h" >&5 | 
|---|
| 6410 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 
|---|
| 6411 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 6412 | else | 
|---|
| 6413 | cat > conftest.$ac_ext <<EOF | 
|---|
| 6414 | #line 6415 "configure" | 
|---|
| 6415 | #include "confdefs.h" | 
|---|
| 6416 | #include <jpeglib.h> | 
|---|
| 6417 | EOF | 
|---|
| 6418 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
|---|
| 6419 | { (eval echo configure:6420: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
|---|
| 6420 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
|---|
| 6421 | if test -z "$ac_err"; then | 
|---|
| 6422 | rm -rf conftest* | 
|---|
| 6423 | eval "ac_cv_header_$ac_safe=yes" | 
|---|
| 6424 | else | 
|---|
| 6425 | echo "$ac_err" >&5 | 
|---|
| 6426 | echo "configure: failed program was:" >&5 | 
|---|
| 6427 | cat conftest.$ac_ext >&5 | 
|---|
| 6428 | rm -rf conftest* | 
|---|
| 6429 | eval "ac_cv_header_$ac_safe=no" | 
|---|
| 6430 | fi | 
|---|
| 6431 | rm -f conftest* | 
|---|
| 6432 | fi | 
|---|
| 6433 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 
|---|
| 6434 | echo "$ac_t""yes" 1>&6 | 
|---|
| 6435 | echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6 | 
|---|
| 6436 | echo "configure:6437: checking for jpeg_read_header in -ljpeg" >&5 | 
|---|
| 6437 | ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'` | 
|---|
| 6438 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 
|---|
| 6439 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 6440 | else | 
|---|
| 6441 | ac_save_LIBS="$LIBS" | 
|---|
| 6442 | LIBS="-ljpeg  $LIBS" | 
|---|
| 6443 | cat > conftest.$ac_ext <<EOF | 
|---|
| 6444 | #line 6445 "configure" | 
|---|
| 6445 | #include "confdefs.h" | 
|---|
| 6446 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|---|
| 6447 | /* We use char because int might match the return type of a gcc2 | 
|---|
| 6448 | builtin and then its argument prototype would still apply.  */ | 
|---|
| 6449 | char jpeg_read_header(); | 
|---|
| 6450 |  | 
|---|
| 6451 | int main() { | 
|---|
| 6452 | jpeg_read_header() | 
|---|
| 6453 | ; return 0; } | 
|---|
| 6454 | EOF | 
|---|
| 6455 | if { (eval echo configure:6456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 6456 | rm -rf conftest* | 
|---|
| 6457 | eval "ac_cv_lib_$ac_lib_var=yes" | 
|---|
| 6458 | else | 
|---|
| 6459 | echo "configure: failed program was:" >&5 | 
|---|
| 6460 | cat conftest.$ac_ext >&5 | 
|---|
| 6461 | rm -rf conftest* | 
|---|
| 6462 | eval "ac_cv_lib_$ac_lib_var=no" | 
|---|
| 6463 | fi | 
|---|
| 6464 | rm -f conftest* | 
|---|
| 6465 | LIBS="$ac_save_LIBS" | 
|---|
| 6466 |  | 
|---|
| 6467 | fi | 
|---|
| 6468 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
|---|
| 6469 | echo "$ac_t""yes" 1>&6 | 
|---|
| 6470 |  | 
|---|
| 6471 | LIBS="$LIBS -ljpeg" | 
|---|
| 6472 | cat >> confdefs.h <<\EOF | 
|---|
| 6473 | #define HAVE_LIBJPEG 1 | 
|---|
| 6474 | EOF | 
|---|
| 6475 |  | 
|---|
| 6476 | _restore=0 | 
|---|
| 6477 |  | 
|---|
| 6478 | else | 
|---|
| 6479 | echo "$ac_t""no" 1>&6 | 
|---|
| 6480 | echo "configure: warning: jpeg library not found" 1>&2 | 
|---|
| 6481 | fi | 
|---|
| 6482 |  | 
|---|
| 6483 | else | 
|---|
| 6484 | echo "$ac_t""no" 1>&6 | 
|---|
| 6485 | echo "configure: warning: jpeg header not found" 1>&2 | 
|---|
| 6486 |  | 
|---|
| 6487 | fi | 
|---|
| 6488 |  | 
|---|
| 6489 | fi | 
|---|
| 6490 |  | 
|---|
| 6491 | test $_restore -eq 1 && CPPFLAGS=$_cppflags LDFLAGS=$_ldflags | 
|---|
| 6492 |  | 
|---|
| 6493 | # Check whether --with-lcms or --without-lcms was given. | 
|---|
| 6494 | if test "${with_lcms+set}" = set; then | 
|---|
| 6495 | withval="$with_lcms" | 
|---|
| 6496 | with_lcms=$withval | 
|---|
| 6497 | else | 
|---|
| 6498 | with_lcms=_auto | 
|---|
| 6499 | fi | 
|---|
| 6500 |  | 
|---|
| 6501 |  | 
|---|
| 6502 | if test "x$with_lcms" != "xno" -a "x$with_lcms" != "xyes" -a \ | 
|---|
| 6503 | "x$with_lcms" != "x_auto"; then | 
|---|
| 6504 | # Save in case test with directory specified fails | 
|---|
| 6505 | _cppflags=$CPPFLAGS | 
|---|
| 6506 | _ldflags=$LDFLAGS | 
|---|
| 6507 | _restore=1 | 
|---|
| 6508 |  | 
|---|
| 6509 | CPPFLAGS="$CPPFLAGS -I$withval/include" | 
|---|
| 6510 | LDFLAGS="$LDFLAGS -L$withval/lib" | 
|---|
| 6511 | else | 
|---|
| 6512 | _restore=0 | 
|---|
| 6513 | fi | 
|---|
| 6514 |  | 
|---|
| 6515 | if test "x$with_lcms" != "xno"; then | 
|---|
| 6516 | ac_safe=`echo "lcms.h" | sed 'y%./+-%__p_%'` | 
|---|
| 6517 | echo $ac_n "checking for lcms.h""... $ac_c" 1>&6 | 
|---|
| 6518 | echo "configure:6519: checking for lcms.h" >&5 | 
|---|
| 6519 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 
|---|
| 6520 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 6521 | else | 
|---|
| 6522 | cat > conftest.$ac_ext <<EOF | 
|---|
| 6523 | #line 6524 "configure" | 
|---|
| 6524 | #include "confdefs.h" | 
|---|
| 6525 | #include <lcms.h> | 
|---|
| 6526 | EOF | 
|---|
| 6527 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
|---|
| 6528 | { (eval echo configure:6529: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
|---|
| 6529 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
|---|
| 6530 | if test -z "$ac_err"; then | 
|---|
| 6531 | rm -rf conftest* | 
|---|
| 6532 | eval "ac_cv_header_$ac_safe=yes" | 
|---|
| 6533 | else | 
|---|
| 6534 | echo "$ac_err" >&5 | 
|---|
| 6535 | echo "configure: failed program was:" >&5 | 
|---|
| 6536 | cat conftest.$ac_ext >&5 | 
|---|
| 6537 | rm -rf conftest* | 
|---|
| 6538 | eval "ac_cv_header_$ac_safe=no" | 
|---|
| 6539 | fi | 
|---|
| 6540 | rm -f conftest* | 
|---|
| 6541 | fi | 
|---|
| 6542 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 
|---|
| 6543 | echo "$ac_t""yes" 1>&6 | 
|---|
| 6544 |  | 
|---|
| 6545 | have_lcms=yes | 
|---|
| 6546 | echo $ac_n "checking for cmsCreateRGBProfile in -llcms""... $ac_c" 1>&6 | 
|---|
| 6547 | echo "configure:6548: checking for cmsCreateRGBProfile in -llcms" >&5 | 
|---|
| 6548 | ac_lib_var=`echo lcms'_'cmsCreateRGBProfile | sed 'y%./+-%__p_%'` | 
|---|
| 6549 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 
|---|
| 6550 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 6551 | else | 
|---|
| 6552 | ac_save_LIBS="$LIBS" | 
|---|
| 6553 | LIBS="-llcms  $LIBS" | 
|---|
| 6554 | cat > conftest.$ac_ext <<EOF | 
|---|
| 6555 | #line 6556 "configure" | 
|---|
| 6556 | #include "confdefs.h" | 
|---|
| 6557 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|---|
| 6558 | /* We use char because int might match the return type of a gcc2 | 
|---|
| 6559 | builtin and then its argument prototype would still apply.  */ | 
|---|
| 6560 | char cmsCreateRGBProfile(); | 
|---|
| 6561 |  | 
|---|
| 6562 | int main() { | 
|---|
| 6563 | cmsCreateRGBProfile() | 
|---|
| 6564 | ; return 0; } | 
|---|
| 6565 | EOF | 
|---|
| 6566 | if { (eval echo configure:6567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 6567 | rm -rf conftest* | 
|---|
| 6568 | eval "ac_cv_lib_$ac_lib_var=yes" | 
|---|
| 6569 | else | 
|---|
| 6570 | echo "configure: failed program was:" >&5 | 
|---|
| 6571 | cat conftest.$ac_ext >&5 | 
|---|
| 6572 | rm -rf conftest* | 
|---|
| 6573 | eval "ac_cv_lib_$ac_lib_var=no" | 
|---|
| 6574 | fi | 
|---|
| 6575 | rm -f conftest* | 
|---|
| 6576 | LIBS="$ac_save_LIBS" | 
|---|
| 6577 |  | 
|---|
| 6578 | fi | 
|---|
| 6579 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
|---|
| 6580 | echo "$ac_t""yes" 1>&6 | 
|---|
| 6581 |  | 
|---|
| 6582 | LIBS="$LIBS -llcms" | 
|---|
| 6583 | cat >> confdefs.h <<\EOF | 
|---|
| 6584 | #define HAVE_LIBLCMS 1 | 
|---|
| 6585 | EOF | 
|---|
| 6586 |  | 
|---|
| 6587 | cat >> confdefs.h <<\EOF | 
|---|
| 6588 | #define MNG_FULL_CMS 1 | 
|---|
| 6589 | EOF | 
|---|
| 6590 |  | 
|---|
| 6591 | _restore=0 | 
|---|
| 6592 | have_lcms=yes | 
|---|
| 6593 |  | 
|---|
| 6594 | else | 
|---|
| 6595 | echo "$ac_t""no" 1>&6 | 
|---|
| 6596 |  | 
|---|
| 6597 | have_lcms=no | 
|---|
| 6598 |  | 
|---|
| 6599 | fi | 
|---|
| 6600 |  | 
|---|
| 6601 |  | 
|---|
| 6602 | else | 
|---|
| 6603 | echo "$ac_t""no" 1>&6 | 
|---|
| 6604 | fi | 
|---|
| 6605 |  | 
|---|
| 6606 | if test "x$with_lcms" != "x_auto" -a "x$have_lcms" != "xyes"; then | 
|---|
| 6607 | echo "configure: warning: lcms not found... disabling CMS support" 1>&2 | 
|---|
| 6608 | fi | 
|---|
| 6609 | fi | 
|---|
| 6610 |  | 
|---|
| 6611 | test $_restore -eq 1 && CPPFLAGS=$_cppflags LDFLAGS=$_ldflags | 
|---|
| 6612 |  | 
|---|
| 6613 | trap '' 1 2 15 | 
|---|
| 6614 | cat > confcache <<\EOF | 
|---|
| 6615 | # This file is a shell script that caches the results of configure | 
|---|
| 6616 | # tests run on this system so they can be shared between configure | 
|---|
| 6617 | # scripts and configure runs.  It is not useful on other systems. | 
|---|
| 6618 | # If it contains results you don't want to keep, you may remove or edit it. | 
|---|
| 6619 | # | 
|---|
| 6620 | # By default, configure uses ./config.cache as the cache file, | 
|---|
| 6621 | # creating it if it does not exist already.  You can give configure | 
|---|
| 6622 | # the --cache-file=FILE option to use a different cache file; that is | 
|---|
| 6623 | # what configure does when it calls configure scripts in | 
|---|
| 6624 | # subdirectories, so they share the cache. | 
|---|
| 6625 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | 
|---|
| 6626 | # config.status only pays attention to the cache file if you give it the | 
|---|
| 6627 | # --recheck option to rerun configure. | 
|---|
| 6628 | # | 
|---|
| 6629 | EOF | 
|---|
| 6630 | # The following way of writing the cache mishandles newlines in values, | 
|---|
| 6631 | # but we know of no workaround that is simple, portable, and efficient. | 
|---|
| 6632 | # So, don't put newlines in cache variables' values. | 
|---|
| 6633 | # Ultrix sh set writes to stderr and can't be redirected directly, | 
|---|
| 6634 | # and sets the high bit in the cache file unless we assign to the vars. | 
|---|
| 6635 | (set) 2>&1 | | 
|---|
| 6636 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | 
|---|
| 6637 | *ac_space=\ *) | 
|---|
| 6638 | # `set' does not quote correctly, so add quotes (double-quote substitution | 
|---|
| 6639 | # turns \\\\ into \\, and sed turns \\ into \). | 
|---|
| 6640 | sed -n \ | 
|---|
| 6641 | -e "s/'/'\\\\''/g" \ | 
|---|
| 6642 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | 
|---|
| 6643 | ;; | 
|---|
| 6644 | *) | 
|---|
| 6645 | # `set' quotes correctly as required by POSIX, so do not add quotes. | 
|---|
| 6646 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | 
|---|
| 6647 | ;; | 
|---|
| 6648 | esac >> confcache | 
|---|
| 6649 | if cmp -s $cache_file confcache; then | 
|---|
| 6650 | : | 
|---|
| 6651 | else | 
|---|
| 6652 | if test -w $cache_file; then | 
|---|
| 6653 | echo "updating cache $cache_file" | 
|---|
| 6654 | cat confcache > $cache_file | 
|---|
| 6655 | else | 
|---|
| 6656 | echo "not updating unwritable cache $cache_file" | 
|---|
| 6657 | fi | 
|---|
| 6658 | fi | 
|---|
| 6659 | rm -f confcache | 
|---|
| 6660 |  | 
|---|
| 6661 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | 
|---|
| 6662 |  | 
|---|
| 6663 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | 
|---|
| 6664 | # Let make expand exec_prefix. | 
|---|
| 6665 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | 
|---|
| 6666 |  | 
|---|
| 6667 | # Any assignment to VPATH causes Sun make to only execute | 
|---|
| 6668 | # the first set of double-colon rules, so remove it if not needed. | 
|---|
| 6669 | # If there is a colon in the path, we need to keep it. | 
|---|
| 6670 | if test "x$srcdir" = x.; then | 
|---|
| 6671 | ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d' | 
|---|
| 6672 | fi | 
|---|
| 6673 |  | 
|---|
| 6674 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | 
|---|
| 6675 |  | 
|---|
| 6676 | # Transform confdefs.h into DEFS. | 
|---|
| 6677 | # Protect against shell expansion while executing Makefile rules. | 
|---|
| 6678 | # Protect against Makefile macro expansion. | 
|---|
| 6679 | cat > conftest.defs <<\EOF | 
|---|
| 6680 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g | 
|---|
| 6681 | s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g | 
|---|
| 6682 | s%\[%\\&%g | 
|---|
| 6683 | s%\]%\\&%g | 
|---|
| 6684 | s%\$%$$%g | 
|---|
| 6685 | EOF | 
|---|
| 6686 | DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` | 
|---|
| 6687 | rm -f conftest.defs | 
|---|
| 6688 |  | 
|---|
| 6689 |  | 
|---|
| 6690 | # Without the "./", some shells look in PATH for config.status. | 
|---|
| 6691 | : ${CONFIG_STATUS=./config.status} | 
|---|
| 6692 |  | 
|---|
| 6693 | echo creating $CONFIG_STATUS | 
|---|
| 6694 | rm -f $CONFIG_STATUS | 
|---|
| 6695 | cat > $CONFIG_STATUS <<EOF | 
|---|
| 6696 | #! /bin/sh | 
|---|
| 6697 | # Generated automatically by configure. | 
|---|
| 6698 | # Run this file to recreate the current configuration. | 
|---|
| 6699 | # This directory was configured as follows, | 
|---|
| 6700 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | 
|---|
| 6701 | # | 
|---|
| 6702 | # $0 $ac_configure_args | 
|---|
| 6703 | # | 
|---|
| 6704 | # Compiler output produced by configure, useful for debugging | 
|---|
| 6705 | # configure, is in ./config.log if it exists. | 
|---|
| 6706 |  | 
|---|
| 6707 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | 
|---|
| 6708 | for ac_option | 
|---|
| 6709 | do | 
|---|
| 6710 | case "\$ac_option" in | 
|---|
| 6711 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | 
|---|
| 6712 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | 
|---|
| 6713 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | 
|---|
| 6714 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | 
|---|
| 6715 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | 
|---|
| 6716 | exit 0 ;; | 
|---|
| 6717 | -help | --help | --hel | --he | --h) | 
|---|
| 6718 | echo "\$ac_cs_usage"; exit 0 ;; | 
|---|
| 6719 | *) echo "\$ac_cs_usage"; exit 1 ;; | 
|---|
| 6720 | esac | 
|---|
| 6721 | done | 
|---|
| 6722 |  | 
|---|
| 6723 | ac_given_srcdir=$srcdir | 
|---|
| 6724 | ac_given_INSTALL="$INSTALL" | 
|---|
| 6725 |  | 
|---|
| 6726 | trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | 
|---|
| 6727 | EOF | 
|---|
| 6728 | cat >> $CONFIG_STATUS <<EOF | 
|---|
| 6729 |  | 
|---|
| 6730 | # Protect against being on the right side of a sed subst in config.status. | 
|---|
| 6731 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | 
|---|
| 6732 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | 
|---|
| 6733 | $ac_vpsub | 
|---|
| 6734 | $extrasub | 
|---|
| 6735 | s%@SHELL@%$SHELL%g | 
|---|
| 6736 | s%@CFLAGS@%$CFLAGS%g | 
|---|
| 6737 | s%@CPPFLAGS@%$CPPFLAGS%g | 
|---|
| 6738 | s%@CXXFLAGS@%$CXXFLAGS%g | 
|---|
| 6739 | s%@FFLAGS@%$FFLAGS%g | 
|---|
| 6740 | s%@DEFS@%$DEFS%g | 
|---|
| 6741 | s%@LDFLAGS@%$LDFLAGS%g | 
|---|
| 6742 | s%@LIBS@%$LIBS%g | 
|---|
| 6743 | s%@exec_prefix@%$exec_prefix%g | 
|---|
| 6744 | s%@prefix@%$prefix%g | 
|---|
| 6745 | s%@program_transform_name@%$program_transform_name%g | 
|---|
| 6746 | s%@bindir@%$bindir%g | 
|---|
| 6747 | s%@sbindir@%$sbindir%g | 
|---|
| 6748 | s%@libexecdir@%$libexecdir%g | 
|---|
| 6749 | s%@datadir@%$datadir%g | 
|---|
| 6750 | s%@sysconfdir@%$sysconfdir%g | 
|---|
| 6751 | s%@sharedstatedir@%$sharedstatedir%g | 
|---|
| 6752 | s%@localstatedir@%$localstatedir%g | 
|---|
| 6753 | s%@libdir@%$libdir%g | 
|---|
| 6754 | s%@includedir@%$includedir%g | 
|---|
| 6755 | s%@oldincludedir@%$oldincludedir%g | 
|---|
| 6756 | s%@infodir@%$infodir%g | 
|---|
| 6757 | s%@mandir@%$mandir%g | 
|---|
| 6758 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | 
|---|
| 6759 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | 
|---|
| 6760 | s%@INSTALL_DATA@%$INSTALL_DATA%g | 
|---|
| 6761 | s%@PACKAGE@%$PACKAGE%g | 
|---|
| 6762 | s%@VERSION@%$VERSION%g | 
|---|
| 6763 | s%@ACLOCAL@%$ACLOCAL%g | 
|---|
| 6764 | s%@AUTOCONF@%$AUTOCONF%g | 
|---|
| 6765 | s%@AUTOMAKE@%$AUTOMAKE%g | 
|---|
| 6766 | s%@AUTOHEADER@%$AUTOHEADER%g | 
|---|
| 6767 | s%@MAKEINFO@%$MAKEINFO%g | 
|---|
| 6768 | s%@SET_MAKE@%$SET_MAKE%g | 
|---|
| 6769 | s%@CC@%$CC%g | 
|---|
| 6770 | s%@CPP@%$CPP%g | 
|---|
| 6771 | s%@U@%$U%g | 
|---|
| 6772 | s%@ANSI2KNR@%$ANSI2KNR%g | 
|---|
| 6773 | s%@host@%$host%g | 
|---|
| 6774 | s%@host_alias@%$host_alias%g | 
|---|
| 6775 | s%@host_cpu@%$host_cpu%g | 
|---|
| 6776 | s%@host_vendor@%$host_vendor%g | 
|---|
| 6777 | s%@host_os@%$host_os%g | 
|---|
| 6778 | s%@build@%$build%g | 
|---|
| 6779 | s%@build_alias@%$build_alias%g | 
|---|
| 6780 | s%@build_cpu@%$build_cpu%g | 
|---|
| 6781 | s%@build_vendor@%$build_vendor%g | 
|---|
| 6782 | s%@build_os@%$build_os%g | 
|---|
| 6783 | s%@LN_S@%$LN_S%g | 
|---|
| 6784 | s%@OBJEXT@%$OBJEXT%g | 
|---|
| 6785 | s%@EXEEXT@%$EXEEXT%g | 
|---|
| 6786 | s%@ECHO@%$ECHO%g | 
|---|
| 6787 | s%@RANLIB@%$RANLIB%g | 
|---|
| 6788 | s%@STRIP@%$STRIP%g | 
|---|
| 6789 | s%@LIBTOOL@%$LIBTOOL%g | 
|---|
| 6790 |  | 
|---|
| 6791 | CEOF | 
|---|
| 6792 | EOF | 
|---|
| 6793 |  | 
|---|
| 6794 | cat >> $CONFIG_STATUS <<\EOF | 
|---|
| 6795 |  | 
|---|
| 6796 | # Split the substitutions into bite-sized pieces for seds with | 
|---|
| 6797 | # small command number limits, like on Digital OSF/1 and HP-UX. | 
|---|
| 6798 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | 
|---|
| 6799 | ac_file=1 # Number of current file. | 
|---|
| 6800 | ac_beg=1 # First line for current file. | 
|---|
| 6801 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | 
|---|
| 6802 | ac_more_lines=: | 
|---|
| 6803 | ac_sed_cmds="" | 
|---|
| 6804 | while $ac_more_lines; do | 
|---|
| 6805 | if test $ac_beg -gt 1; then | 
|---|
| 6806 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | 
|---|
| 6807 | else | 
|---|
| 6808 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | 
|---|
| 6809 | fi | 
|---|
| 6810 | if test ! -s conftest.s$ac_file; then | 
|---|
| 6811 | ac_more_lines=false | 
|---|
| 6812 | rm -f conftest.s$ac_file | 
|---|
| 6813 | else | 
|---|
| 6814 | if test -z "$ac_sed_cmds"; then | 
|---|
| 6815 | ac_sed_cmds="sed -f conftest.s$ac_file" | 
|---|
| 6816 | else | 
|---|
| 6817 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | 
|---|
| 6818 | fi | 
|---|
| 6819 | ac_file=`expr $ac_file + 1` | 
|---|
| 6820 | ac_beg=$ac_end | 
|---|
| 6821 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | 
|---|
| 6822 | fi | 
|---|
| 6823 | done | 
|---|
| 6824 | if test -z "$ac_sed_cmds"; then | 
|---|
| 6825 | ac_sed_cmds=cat | 
|---|
| 6826 | fi | 
|---|
| 6827 | EOF | 
|---|
| 6828 |  | 
|---|
| 6829 | cat >> $CONFIG_STATUS <<EOF | 
|---|
| 6830 |  | 
|---|
| 6831 | CONFIG_FILES=\${CONFIG_FILES-"Makefile"} | 
|---|
| 6832 | EOF | 
|---|
| 6833 | cat >> $CONFIG_STATUS <<\EOF | 
|---|
| 6834 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | 
|---|
| 6835 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | 
|---|
| 6836 | case "$ac_file" in | 
|---|
| 6837 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | 
|---|
| 6838 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | 
|---|
| 6839 | *) ac_file_in="${ac_file}.in" ;; | 
|---|
| 6840 | esac | 
|---|
| 6841 |  | 
|---|
| 6842 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | 
|---|
| 6843 |  | 
|---|
| 6844 | # Remove last slash and all that follows it.  Not all systems have dirname. | 
|---|
| 6845 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | 
|---|
| 6846 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | 
|---|
| 6847 | # The file is in a subdirectory. | 
|---|
| 6848 | test ! -d "$ac_dir" && mkdir "$ac_dir" | 
|---|
| 6849 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | 
|---|
| 6850 | # A "../" for each directory in $ac_dir_suffix. | 
|---|
| 6851 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | 
|---|
| 6852 | else | 
|---|
| 6853 | ac_dir_suffix= ac_dots= | 
|---|
| 6854 | fi | 
|---|
| 6855 |  | 
|---|
| 6856 | case "$ac_given_srcdir" in | 
|---|
| 6857 | .)  srcdir=. | 
|---|
| 6858 | if test -z "$ac_dots"; then top_srcdir=. | 
|---|
| 6859 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | 
|---|
| 6860 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | 
|---|
| 6861 | *) # Relative path. | 
|---|
| 6862 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | 
|---|
| 6863 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | 
|---|
| 6864 | esac | 
|---|
| 6865 |  | 
|---|
| 6866 | case "$ac_given_INSTALL" in | 
|---|
| 6867 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | 
|---|
| 6868 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | 
|---|
| 6869 | esac | 
|---|
| 6870 |  | 
|---|
| 6871 | echo creating "$ac_file" | 
|---|
| 6872 | rm -f "$ac_file" | 
|---|
| 6873 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | 
|---|
| 6874 | case "$ac_file" in | 
|---|
| 6875 | *Makefile*) ac_comsub="1i\\ | 
|---|
| 6876 | # $configure_input" ;; | 
|---|
| 6877 | *) ac_comsub= ;; | 
|---|
| 6878 | esac | 
|---|
| 6879 |  | 
|---|
| 6880 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | 
|---|
| 6881 | sed -e "$ac_comsub | 
|---|
| 6882 | s%@configure_input@%$configure_input%g | 
|---|
| 6883 | s%@srcdir@%$srcdir%g | 
|---|
| 6884 | s%@top_srcdir@%$top_srcdir%g | 
|---|
| 6885 | s%@INSTALL@%$INSTALL%g | 
|---|
| 6886 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | 
|---|
| 6887 | fi; done | 
|---|
| 6888 | rm -f conftest.s* | 
|---|
| 6889 |  | 
|---|
| 6890 | EOF | 
|---|
| 6891 | cat >> $CONFIG_STATUS <<EOF | 
|---|
| 6892 |  | 
|---|
| 6893 | EOF | 
|---|
| 6894 | cat >> $CONFIG_STATUS <<\EOF | 
|---|
| 6895 |  | 
|---|
| 6896 | exit 0 | 
|---|
| 6897 | EOF | 
|---|
| 6898 | chmod +x $CONFIG_STATUS | 
|---|
| 6899 | rm -fr confdefs* $ac_clean_files | 
|---|
| 6900 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | 
|---|
| 6901 |  | 
|---|