jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1 | #! /bin/sh |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2 | # Guess values for system-dependent variables and create Makefiles. |
jjako | 193e8b1 | 2003-11-10 12:31:41 +0000 | [diff] [blame^] | 3 | # Generated by GNU Autoconf 2.57 for openggsn 0.71b. |
jjako | 5f1c397 | 2003-01-29 11:56:06 +0000 | [diff] [blame] | 4 | # |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 5 | # Report bugs to <jj@openggsn.org>. |
| 6 | # |
| 7 | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
| 8 | # Free Software Foundation, Inc. |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9 | # This configure script is free software; the Free Software Foundation |
| 10 | # gives unlimited permission to copy, distribute and modify it. |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 11 | ## --------------------- ## |
| 12 | ## M4sh Initialization. ## |
| 13 | ## --------------------- ## |
| 14 | |
| 15 | # Be Bourne compatible |
| 16 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 17 | emulate sh |
| 18 | NULLCMD=: |
| 19 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 20 | # is contrary to our usage. Disable this feature. |
| 21 | alias -g '${1+"$@"}'='"$@"' |
| 22 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 23 | set -o posix |
| 24 | fi |
| 25 | |
| 26 | # Support unset when possible. |
| 27 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 28 | as_unset=unset |
| 29 | else |
| 30 | as_unset=false |
| 31 | fi |
| 32 | |
| 33 | |
| 34 | # Work around bugs in pre-3.0 UWIN ksh. |
| 35 | $as_unset ENV MAIL MAILPATH |
| 36 | PS1='$ ' |
| 37 | PS2='> ' |
| 38 | PS4='+ ' |
| 39 | |
| 40 | # NLS nuisances. |
| 41 | for as_var in \ |
| 42 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 43 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 44 | LC_TELEPHONE LC_TIME |
| 45 | do |
| 46 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 47 | eval $as_var=C; export $as_var |
| 48 | else |
| 49 | $as_unset $as_var |
| 50 | fi |
| 51 | done |
| 52 | |
| 53 | # Required to use basename. |
| 54 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 55 | as_expr=expr |
| 56 | else |
| 57 | as_expr=false |
| 58 | fi |
| 59 | |
| 60 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 61 | as_basename=basename |
| 62 | else |
| 63 | as_basename=false |
| 64 | fi |
| 65 | |
| 66 | |
| 67 | # Name of the executable. |
| 68 | as_me=`$as_basename "$0" || |
| 69 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 70 | X"$0" : 'X\(//\)$' \| \ |
| 71 | X"$0" : 'X\(/\)$' \| \ |
| 72 | . : '\(.\)' 2>/dev/null || |
| 73 | echo X/"$0" | |
| 74 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 75 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 76 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 77 | s/.*/./; q'` |
| 78 | |
| 79 | |
| 80 | # PATH needs CR, and LINENO needs CR and PATH. |
| 81 | # Avoid depending upon Character Ranges. |
| 82 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 83 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 84 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 85 | as_cr_digits='0123456789' |
| 86 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 87 | |
| 88 | # The user is always right. |
| 89 | if test "${PATH_SEPARATOR+set}" != set; then |
| 90 | echo "#! /bin/sh" >conf$$.sh |
| 91 | echo "exit 0" >>conf$$.sh |
| 92 | chmod +x conf$$.sh |
| 93 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 94 | PATH_SEPARATOR=';' |
| 95 | else |
| 96 | PATH_SEPARATOR=: |
| 97 | fi |
| 98 | rm -f conf$$.sh |
| 99 | fi |
| 100 | |
| 101 | |
| 102 | as_lineno_1=$LINENO |
| 103 | as_lineno_2=$LINENO |
| 104 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 105 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 106 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 107 | # Find who we are. Look in the path if we contain no path at all |
| 108 | # relative or not. |
| 109 | case $0 in |
| 110 | *[\\/]* ) as_myself=$0 ;; |
| 111 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 112 | for as_dir in $PATH |
| 113 | do |
| 114 | IFS=$as_save_IFS |
| 115 | test -z "$as_dir" && as_dir=. |
| 116 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 117 | done |
| 118 | |
| 119 | ;; |
| 120 | esac |
| 121 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 122 | # in which case we are not to be found in the path. |
| 123 | if test "x$as_myself" = x; then |
| 124 | as_myself=$0 |
| 125 | fi |
| 126 | if test ! -f "$as_myself"; then |
| 127 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
| 128 | { (exit 1); exit 1; }; } |
| 129 | fi |
| 130 | case $CONFIG_SHELL in |
| 131 | '') |
| 132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 133 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 134 | do |
| 135 | IFS=$as_save_IFS |
| 136 | test -z "$as_dir" && as_dir=. |
| 137 | for as_base in sh bash ksh sh5; do |
| 138 | case $as_dir in |
| 139 | /*) |
| 140 | if ("$as_dir/$as_base" -c ' |
| 141 | as_lineno_1=$LINENO |
| 142 | as_lineno_2=$LINENO |
| 143 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 144 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 145 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 146 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 147 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 148 | CONFIG_SHELL=$as_dir/$as_base |
| 149 | export CONFIG_SHELL |
| 150 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 151 | fi;; |
| 152 | esac |
| 153 | done |
| 154 | done |
| 155 | ;; |
| 156 | esac |
| 157 | |
| 158 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 159 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 160 | # line-number line before each line; the second 'sed' does the real |
| 161 | # work. The second script uses 'N' to pair each line-number line |
| 162 | # with the numbered line, and appends trailing '-' during |
| 163 | # substitution so that $LINENO is not a special case at line end. |
| 164 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 165 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 166 | sed '=' <$as_myself | |
| 167 | sed ' |
| 168 | N |
| 169 | s,$,-, |
| 170 | : loop |
| 171 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 172 | t loop |
| 173 | s,-$,, |
| 174 | s,^['$as_cr_digits']*\n,, |
| 175 | ' >$as_me.lineno && |
| 176 | chmod +x $as_me.lineno || |
| 177 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 178 | { (exit 1); exit 1; }; } |
| 179 | |
| 180 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 181 | # (the dirname of $[0] is not the place where we might find the |
| 182 | # original and so on. Autoconf is especially sensible to this). |
| 183 | . ./$as_me.lineno |
| 184 | # Exit status is that of the last command. |
| 185 | exit |
| 186 | } |
| 187 | |
| 188 | |
| 189 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 190 | *c*,-n*) ECHO_N= ECHO_C=' |
| 191 | ' ECHO_T=' ' ;; |
| 192 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 193 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 194 | esac |
| 195 | |
| 196 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 197 | as_expr=expr |
| 198 | else |
| 199 | as_expr=false |
| 200 | fi |
| 201 | |
| 202 | rm -f conf$$ conf$$.exe conf$$.file |
| 203 | echo >conf$$.file |
| 204 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 205 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 206 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 207 | if test -f conf$$.exe; then |
| 208 | # Don't use ln at all; we don't have any links |
| 209 | as_ln_s='cp -p' |
| 210 | else |
| 211 | as_ln_s='ln -s' |
| 212 | fi |
| 213 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 214 | as_ln_s=ln |
| 215 | else |
| 216 | as_ln_s='cp -p' |
| 217 | fi |
| 218 | rm -f conf$$ conf$$.exe conf$$.file |
| 219 | |
| 220 | if mkdir -p . 2>/dev/null; then |
| 221 | as_mkdir_p=: |
| 222 | else |
| 223 | as_mkdir_p=false |
| 224 | fi |
| 225 | |
| 226 | as_executable_p="test -f" |
| 227 | |
| 228 | # Sed expression to map a string onto a valid CPP name. |
| 229 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 230 | |
| 231 | # Sed expression to map a string onto a valid variable name. |
| 232 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 233 | |
| 234 | |
| 235 | # IFS |
| 236 | # We need space, tab and new line, in precisely that order. |
| 237 | as_nl=' |
| 238 | ' |
| 239 | IFS=" $as_nl" |
| 240 | |
| 241 | # CDPATH. |
| 242 | $as_unset CDPATH |
| 243 | |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 244 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 245 | # Find the correct PATH separator. Usually this is `:', but |
| 246 | # DJGPP uses `;' like DOS. |
| 247 | if test "X${PATH_SEPARATOR+set}" != Xset; then |
| 248 | UNAME=${UNAME-`uname 2>/dev/null`} |
| 249 | case X$UNAME in |
| 250 | *-DOS) lt_cv_sys_path_separator=';' ;; |
| 251 | *) lt_cv_sys_path_separator=':' ;; |
| 252 | esac |
| 253 | PATH_SEPARATOR=$lt_cv_sys_path_separator |
| 254 | fi |
| 255 | |
| 256 | |
| 257 | # Check that we are running under the correct shell. |
| 258 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 259 | |
| 260 | case X$ECHO in |
| 261 | X*--fallback-echo) |
| 262 | # Remove one level of quotation (which was required for Make). |
| 263 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` |
| 264 | ;; |
| 265 | esac |
| 266 | |
| 267 | echo=${ECHO-echo} |
| 268 | if test "X$1" = X--no-reexec; then |
| 269 | # Discard the --no-reexec flag, and continue. |
| 270 | shift |
| 271 | elif test "X$1" = X--fallback-echo; then |
| 272 | # Avoid inline document here, it may be left over |
| 273 | : |
| 274 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then |
| 275 | # Yippee, $echo works! |
| 276 | : |
| 277 | else |
| 278 | # Restart under the correct shell. |
| 279 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
| 280 | fi |
| 281 | |
| 282 | if test "X$1" = X--fallback-echo; then |
| 283 | # used as fallback echo |
| 284 | shift |
| 285 | cat <<EOF |
| 286 | |
| 287 | EOF |
| 288 | exit 0 |
| 289 | fi |
| 290 | |
| 291 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 292 | # if CDPATH is set. |
| 293 | if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
| 294 | |
| 295 | if test -z "$ECHO"; then |
| 296 | if test "X${echo_test_string+set}" != Xset; then |
| 297 | # find a string as large as possible, as long as the shell can cope with it |
| 298 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
| 299 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
| 300 | if (echo_test_string="`eval $cmd`") 2>/dev/null && |
| 301 | echo_test_string="`eval $cmd`" && |
| 302 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
| 303 | then |
| 304 | break |
| 305 | fi |
| 306 | done |
| 307 | fi |
| 308 | |
| 309 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 310 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 311 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 312 | : |
| 313 | else |
| 314 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
| 315 | # backslashes. This makes it impossible to quote backslashes using |
| 316 | # echo "$something" | sed 's/\\/\\\\/g' |
| 317 | # |
| 318 | # So, first we look for a working echo in the user's PATH. |
| 319 | |
| 320 | IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 321 | for dir in $PATH /usr/ucb; do |
| 322 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
| 323 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
| 324 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
| 325 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 326 | echo="$dir/echo" |
| 327 | break |
| 328 | fi |
| 329 | done |
| 330 | IFS="$save_ifs" |
| 331 | |
| 332 | if test "X$echo" = Xecho; then |
| 333 | # We didn't find a better echo, so look for alternatives. |
| 334 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
| 335 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
| 336 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 337 | # This shell has a builtin print -r that does the trick. |
| 338 | echo='print -r' |
| 339 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
| 340 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
| 341 | # If we have ksh, try running configure again with it. |
| 342 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
| 343 | export ORIGINAL_CONFIG_SHELL |
| 344 | CONFIG_SHELL=/bin/ksh |
| 345 | export CONFIG_SHELL |
| 346 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
| 347 | else |
| 348 | # Try using printf. |
| 349 | echo='printf %s\n' |
| 350 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 351 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 352 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 353 | # Cool, printf works |
| 354 | : |
| 355 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 356 | test "X$echo_testing_string" = 'X\t' && |
| 357 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 358 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 359 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
| 360 | export CONFIG_SHELL |
| 361 | SHELL="$CONFIG_SHELL" |
| 362 | export SHELL |
| 363 | echo="$CONFIG_SHELL $0 --fallback-echo" |
| 364 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 365 | test "X$echo_testing_string" = 'X\t' && |
| 366 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 367 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 368 | echo="$CONFIG_SHELL $0 --fallback-echo" |
| 369 | else |
| 370 | # maybe with a smaller string... |
| 371 | prev=: |
| 372 | |
| 373 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
| 374 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
| 375 | then |
| 376 | break |
| 377 | fi |
| 378 | prev="$cmd" |
| 379 | done |
| 380 | |
| 381 | if test "$prev" != 'sed 50q "$0"'; then |
| 382 | echo_test_string=`eval $prev` |
| 383 | export echo_test_string |
| 384 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
| 385 | else |
| 386 | # Oops. We lost completely, so just stick with echo. |
| 387 | echo=echo |
| 388 | fi |
| 389 | fi |
| 390 | fi |
| 391 | fi |
| 392 | fi |
| 393 | fi |
| 394 | |
| 395 | # Copy echo and quote the copy suitably for passing to libtool from |
| 396 | # the Makefile, instead of quoting the original, which is used later. |
| 397 | ECHO=$echo |
| 398 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
| 399 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
| 400 | fi |
| 401 | |
| 402 | |
| 403 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 404 | # Name of the host. |
| 405 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 406 | # so uname gets run too. |
| 407 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 408 | |
| 409 | exec 6>&1 |
| 410 | |
| 411 | # |
| 412 | # Initializations. |
| 413 | # |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 414 | ac_default_prefix=/usr/local |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 415 | ac_config_libobj_dir=. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 416 | cross_compiling=no |
| 417 | subdirs= |
| 418 | MFLAGS= |
| 419 | MAKEFLAGS= |
| 420 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 421 | |
| 422 | # Maximum number of lines to put in a shell here document. |
| 423 | # This variable seems obsolete. It should probably be removed, and |
| 424 | # only ac_max_sed_lines should be used. |
| 425 | : ${ac_max_here_lines=38} |
| 426 | |
| 427 | # Identity of this package. |
| 428 | PACKAGE_NAME='openggsn' |
| 429 | PACKAGE_TARNAME='openggsn' |
jjako | 193e8b1 | 2003-11-10 12:31:41 +0000 | [diff] [blame^] | 430 | PACKAGE_VERSION='0.71b' |
| 431 | PACKAGE_STRING='openggsn 0.71b' |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 432 | PACKAGE_BUGREPORT='jj@openggsn.org' |
| 433 | |
| 434 | ac_unique_file="gtp/gtp.c" |
| 435 | # Factoring default headers for most tests. |
| 436 | ac_includes_default="\ |
| 437 | #include <stdio.h> |
| 438 | #if HAVE_SYS_TYPES_H |
| 439 | # include <sys/types.h> |
| 440 | #endif |
| 441 | #if HAVE_SYS_STAT_H |
| 442 | # include <sys/stat.h> |
| 443 | #endif |
| 444 | #if STDC_HEADERS |
| 445 | # include <stdlib.h> |
| 446 | # include <stddef.h> |
| 447 | #else |
| 448 | # if HAVE_STDLIB_H |
| 449 | # include <stdlib.h> |
| 450 | # endif |
| 451 | #endif |
| 452 | #if HAVE_STRING_H |
| 453 | # if !STDC_HEADERS && HAVE_MEMORY_H |
| 454 | # include <memory.h> |
| 455 | # endif |
| 456 | # include <string.h> |
| 457 | #endif |
| 458 | #if HAVE_STRINGS_H |
| 459 | # include <strings.h> |
| 460 | #endif |
| 461 | #if HAVE_INTTYPES_H |
| 462 | # include <inttypes.h> |
| 463 | #else |
| 464 | # if HAVE_STDINT_H |
| 465 | # include <stdint.h> |
| 466 | # endif |
| 467 | #endif |
| 468 | #if HAVE_UNISTD_H |
| 469 | # include <unistd.h> |
| 470 | #endif" |
| 471 | |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 472 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AWK CPP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO STRIP ac_ct_STRIP EGREP LIBTOOL EXEC_LDFLAGS LIBOBJS PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh INSTALL_STRIP_PROGRAM SET_MAKE DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE CXXDEPMODE LTLIBOBJS' |
| 473 | ac_subst_files='' |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 474 | |
| 475 | # Initialize some variables set by options. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 476 | ac_init_help= |
| 477 | ac_init_version=false |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 478 | # The variables have the same names as the options, with |
| 479 | # dashes changed to underlines. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 480 | cache_file=/dev/null |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 481 | exec_prefix=NONE |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 482 | no_create= |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 483 | no_recursion= |
| 484 | prefix=NONE |
| 485 | program_prefix=NONE |
| 486 | program_suffix=NONE |
| 487 | program_transform_name=s,x,x, |
| 488 | silent= |
| 489 | site= |
| 490 | srcdir= |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 491 | verbose= |
| 492 | x_includes=NONE |
| 493 | x_libraries=NONE |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 494 | |
| 495 | # Installation directory options. |
| 496 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 497 | # and all the variables that are supposed to be based on exec_prefix |
| 498 | # by default will actually change. |
| 499 | # Use braces instead of parens because sh, perl, etc. also accept them. |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 500 | bindir='${exec_prefix}/bin' |
| 501 | sbindir='${exec_prefix}/sbin' |
| 502 | libexecdir='${exec_prefix}/libexec' |
| 503 | datadir='${prefix}/share' |
| 504 | sysconfdir='${prefix}/etc' |
| 505 | sharedstatedir='${prefix}/com' |
| 506 | localstatedir='${prefix}/var' |
| 507 | libdir='${exec_prefix}/lib' |
| 508 | includedir='${prefix}/include' |
| 509 | oldincludedir='/usr/include' |
| 510 | infodir='${prefix}/info' |
| 511 | mandir='${prefix}/man' |
| 512 | |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 513 | ac_prev= |
| 514 | for ac_option |
| 515 | do |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 516 | # If the previous option needs an argument, assign it. |
| 517 | if test -n "$ac_prev"; then |
| 518 | eval "$ac_prev=\$ac_option" |
| 519 | ac_prev= |
| 520 | continue |
| 521 | fi |
| 522 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 523 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 524 | |
| 525 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 526 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 527 | case $ac_option in |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 528 | |
| 529 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 530 | ac_prev=bindir ;; |
| 531 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 532 | bindir=$ac_optarg ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 533 | |
| 534 | -build | --build | --buil | --bui | --bu) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 535 | ac_prev=build_alias ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 536 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 537 | build_alias=$ac_optarg ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 538 | |
| 539 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 540 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 541 | ac_prev=cache_file ;; |
| 542 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 543 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 544 | cache_file=$ac_optarg ;; |
| 545 | |
| 546 | --config-cache | -C) |
| 547 | cache_file=config.cache ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 548 | |
| 549 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 550 | ac_prev=datadir ;; |
| 551 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 552 | | --da=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 553 | datadir=$ac_optarg ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 554 | |
| 555 | -disable-* | --disable-*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 556 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 557 | # Reject names that are not valid shell variable names. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 558 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 559 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 560 | { (exit 1); exit 1; }; } |
| 561 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 562 | eval "enable_$ac_feature=no" ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 563 | |
| 564 | -enable-* | --enable-*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 565 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 566 | # Reject names that are not valid shell variable names. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 567 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 568 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 569 | { (exit 1); exit 1; }; } |
| 570 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 571 | case $ac_option in |
| 572 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 573 | *) ac_optarg=yes ;; |
| 574 | esac |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 575 | eval "enable_$ac_feature='$ac_optarg'" ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 576 | |
| 577 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 578 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 579 | | --exec | --exe | --ex) |
| 580 | ac_prev=exec_prefix ;; |
| 581 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 582 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 583 | | --exec=* | --exe=* | --ex=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 584 | exec_prefix=$ac_optarg ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 585 | |
| 586 | -gas | --gas | --ga | --g) |
| 587 | # Obsolete; use --with-gas. |
| 588 | with_gas=yes ;; |
| 589 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 590 | -help | --help | --hel | --he | -h) |
| 591 | ac_init_help=long ;; |
| 592 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 593 | ac_init_help=recursive ;; |
| 594 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 595 | ac_init_help=short ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 596 | |
| 597 | -host | --host | --hos | --ho) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 598 | ac_prev=host_alias ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 599 | -host=* | --host=* | --hos=* | --ho=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 600 | host_alias=$ac_optarg ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 601 | |
| 602 | -includedir | --includedir | --includedi | --included | --include \ |
| 603 | | --includ | --inclu | --incl | --inc) |
| 604 | ac_prev=includedir ;; |
| 605 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 606 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 607 | includedir=$ac_optarg ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 608 | |
| 609 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 610 | ac_prev=infodir ;; |
| 611 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 612 | infodir=$ac_optarg ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 613 | |
| 614 | -libdir | --libdir | --libdi | --libd) |
| 615 | ac_prev=libdir ;; |
| 616 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 617 | libdir=$ac_optarg ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 618 | |
| 619 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 620 | | --libexe | --libex | --libe) |
| 621 | ac_prev=libexecdir ;; |
| 622 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 623 | | --libexe=* | --libex=* | --libe=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 624 | libexecdir=$ac_optarg ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 625 | |
| 626 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 627 | | --localstate | --localstat | --localsta | --localst \ |
| 628 | | --locals | --local | --loca | --loc | --lo) |
| 629 | ac_prev=localstatedir ;; |
| 630 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 631 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 632 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 633 | localstatedir=$ac_optarg ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 634 | |
| 635 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 636 | ac_prev=mandir ;; |
| 637 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 638 | mandir=$ac_optarg ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 639 | |
| 640 | -nfp | --nfp | --nf) |
| 641 | # Obsolete; use --without-fp. |
| 642 | with_fp=no ;; |
| 643 | |
| 644 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 645 | | --no-cr | --no-c | -n) |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 646 | no_create=yes ;; |
| 647 | |
| 648 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 649 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 650 | no_recursion=yes ;; |
| 651 | |
| 652 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 653 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 654 | | --oldin | --oldi | --old | --ol | --o) |
| 655 | ac_prev=oldincludedir ;; |
| 656 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 657 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 658 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 659 | oldincludedir=$ac_optarg ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 660 | |
| 661 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 662 | ac_prev=prefix ;; |
| 663 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 664 | prefix=$ac_optarg ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 665 | |
| 666 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 667 | | --program-pre | --program-pr | --program-p) |
| 668 | ac_prev=program_prefix ;; |
| 669 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 670 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 671 | program_prefix=$ac_optarg ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 672 | |
| 673 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 674 | | --program-suf | --program-su | --program-s) |
| 675 | ac_prev=program_suffix ;; |
| 676 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 677 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 678 | program_suffix=$ac_optarg ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 679 | |
| 680 | -program-transform-name | --program-transform-name \ |
| 681 | | --program-transform-nam | --program-transform-na \ |
| 682 | | --program-transform-n | --program-transform- \ |
| 683 | | --program-transform | --program-transfor \ |
| 684 | | --program-transfo | --program-transf \ |
| 685 | | --program-trans | --program-tran \ |
| 686 | | --progr-tra | --program-tr | --program-t) |
| 687 | ac_prev=program_transform_name ;; |
| 688 | -program-transform-name=* | --program-transform-name=* \ |
| 689 | | --program-transform-nam=* | --program-transform-na=* \ |
| 690 | | --program-transform-n=* | --program-transform-=* \ |
| 691 | | --program-transform=* | --program-transfor=* \ |
| 692 | | --program-transfo=* | --program-transf=* \ |
| 693 | | --program-trans=* | --program-tran=* \ |
| 694 | | --progr-tra=* | --program-tr=* | --program-t=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 695 | program_transform_name=$ac_optarg ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 696 | |
| 697 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 698 | | -silent | --silent | --silen | --sile | --sil) |
| 699 | silent=yes ;; |
| 700 | |
| 701 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 702 | ac_prev=sbindir ;; |
| 703 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 704 | | --sbi=* | --sb=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 705 | sbindir=$ac_optarg ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 706 | |
| 707 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 708 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 709 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 710 | | --sha | --sh) |
| 711 | ac_prev=sharedstatedir ;; |
| 712 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 713 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 714 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 715 | | --sha=* | --sh=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 716 | sharedstatedir=$ac_optarg ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 717 | |
| 718 | -site | --site | --sit) |
| 719 | ac_prev=site ;; |
| 720 | -site=* | --site=* | --sit=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 721 | site=$ac_optarg ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 722 | |
| 723 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 724 | ac_prev=srcdir ;; |
| 725 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 726 | srcdir=$ac_optarg ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 727 | |
| 728 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 729 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 730 | ac_prev=sysconfdir ;; |
| 731 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 732 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 733 | sysconfdir=$ac_optarg ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 734 | |
| 735 | -target | --target | --targe | --targ | --tar | --ta | --t) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 736 | ac_prev=target_alias ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 737 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 738 | target_alias=$ac_optarg ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 739 | |
| 740 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 741 | verbose=yes ;; |
| 742 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 743 | -version | --version | --versio | --versi | --vers | -V) |
| 744 | ac_init_version=: ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 745 | |
| 746 | -with-* | --with-*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 747 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 748 | # Reject names that are not valid shell variable names. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 749 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 750 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 751 | { (exit 1); exit 1; }; } |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 752 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 753 | case $ac_option in |
| 754 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 755 | *) ac_optarg=yes ;; |
| 756 | esac |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 757 | eval "with_$ac_package='$ac_optarg'" ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 758 | |
| 759 | -without-* | --without-*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 760 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 761 | # Reject names that are not valid shell variable names. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 762 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 763 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 764 | { (exit 1); exit 1; }; } |
| 765 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 766 | eval "with_$ac_package=no" ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 767 | |
| 768 | --x) |
| 769 | # Obsolete; use --with-x. |
| 770 | with_x=yes ;; |
| 771 | |
| 772 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 773 | | --x-incl | --x-inc | --x-in | --x-i) |
| 774 | ac_prev=x_includes ;; |
| 775 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 776 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 777 | x_includes=$ac_optarg ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 778 | |
| 779 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 780 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 781 | ac_prev=x_libraries ;; |
| 782 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 783 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 784 | x_libraries=$ac_optarg ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 785 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 786 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 787 | Try \`$0 --help' for more information." >&2 |
| 788 | { (exit 1); exit 1; }; } |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 789 | ;; |
| 790 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 791 | *=*) |
| 792 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 793 | # Reject names that are not valid shell variable names. |
| 794 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 795 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 796 | { (exit 1); exit 1; }; } |
| 797 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 798 | eval "$ac_envvar='$ac_optarg'" |
| 799 | export $ac_envvar ;; |
| 800 | |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 801 | *) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 802 | # FIXME: should be removed in autoconf 3.0. |
| 803 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 804 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 805 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 806 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 807 | ;; |
| 808 | |
| 809 | esac |
| 810 | done |
| 811 | |
| 812 | if test -n "$ac_prev"; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 813 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 814 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 815 | { (exit 1); exit 1; }; } |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 816 | fi |
| 817 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 818 | # Be sure to have absolute paths. |
| 819 | for ac_var in exec_prefix prefix |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 820 | do |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 821 | eval ac_val=$`echo $ac_var` |
| 822 | case $ac_val in |
| 823 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
| 824 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 825 | { (exit 1); exit 1; }; };; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 826 | esac |
| 827 | done |
| 828 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 829 | # Be sure to have absolute paths. |
| 830 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
| 831 | localstatedir libdir includedir oldincludedir infodir mandir |
| 832 | do |
| 833 | eval ac_val=$`echo $ac_var` |
| 834 | case $ac_val in |
| 835 | [\\/$]* | ?:[\\/]* ) ;; |
| 836 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 837 | { (exit 1); exit 1; }; };; |
| 838 | esac |
| 839 | done |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 840 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 841 | # There might be people who depend on the old broken behavior: `$host' |
| 842 | # used to hold the argument of --host etc. |
| 843 | # FIXME: To remove some day. |
| 844 | build=$build_alias |
| 845 | host=$host_alias |
| 846 | target=$target_alias |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 847 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 848 | # FIXME: To remove some day. |
| 849 | if test "x$host_alias" != x; then |
| 850 | if test "x$build_alias" = x; then |
| 851 | cross_compiling=maybe |
| 852 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 853 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 854 | elif test "x$build_alias" != "x$host_alias"; then |
| 855 | cross_compiling=yes |
| 856 | fi |
| 857 | fi |
| 858 | |
| 859 | ac_tool_prefix= |
| 860 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 861 | |
| 862 | test "$silent" = yes && exec 6>/dev/null |
| 863 | |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 864 | |
| 865 | # Find the source files, if location was not specified. |
| 866 | if test -z "$srcdir"; then |
| 867 | ac_srcdir_defaulted=yes |
| 868 | # Try the directory containing this script, then its parent. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 869 | ac_confdir=`(dirname "$0") 2>/dev/null || |
| 870 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 871 | X"$0" : 'X\(//\)[^/]' \| \ |
| 872 | X"$0" : 'X\(//\)$' \| \ |
| 873 | X"$0" : 'X\(/\)' \| \ |
| 874 | . : '\(.\)' 2>/dev/null || |
| 875 | echo X"$0" | |
| 876 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 877 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 878 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 879 | /^X\(\/\).*/{ s//\1/; q; } |
| 880 | s/.*/./; q'` |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 881 | srcdir=$ac_confdir |
| 882 | if test ! -r $srcdir/$ac_unique_file; then |
| 883 | srcdir=.. |
| 884 | fi |
| 885 | else |
| 886 | ac_srcdir_defaulted=no |
| 887 | fi |
| 888 | if test ! -r $srcdir/$ac_unique_file; then |
| 889 | if test "$ac_srcdir_defaulted" = yes; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 890 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
| 891 | { (exit 1); exit 1; }; } |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 892 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 893 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 894 | { (exit 1); exit 1; }; } |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 895 | fi |
| 896 | fi |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 897 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
| 898 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
| 899 | { (exit 1); exit 1; }; } |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 900 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 901 | ac_env_build_alias_set=${build_alias+set} |
| 902 | ac_env_build_alias_value=$build_alias |
| 903 | ac_cv_env_build_alias_set=${build_alias+set} |
| 904 | ac_cv_env_build_alias_value=$build_alias |
| 905 | ac_env_host_alias_set=${host_alias+set} |
| 906 | ac_env_host_alias_value=$host_alias |
| 907 | ac_cv_env_host_alias_set=${host_alias+set} |
| 908 | ac_cv_env_host_alias_value=$host_alias |
| 909 | ac_env_target_alias_set=${target_alias+set} |
| 910 | ac_env_target_alias_value=$target_alias |
| 911 | ac_cv_env_target_alias_set=${target_alias+set} |
| 912 | ac_cv_env_target_alias_value=$target_alias |
| 913 | ac_env_CC_set=${CC+set} |
| 914 | ac_env_CC_value=$CC |
| 915 | ac_cv_env_CC_set=${CC+set} |
| 916 | ac_cv_env_CC_value=$CC |
| 917 | ac_env_CFLAGS_set=${CFLAGS+set} |
| 918 | ac_env_CFLAGS_value=$CFLAGS |
| 919 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| 920 | ac_cv_env_CFLAGS_value=$CFLAGS |
| 921 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
| 922 | ac_env_LDFLAGS_value=$LDFLAGS |
| 923 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| 924 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
| 925 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 926 | ac_env_CPPFLAGS_value=$CPPFLAGS |
| 927 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 928 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
| 929 | ac_env_CPP_set=${CPP+set} |
| 930 | ac_env_CPP_value=$CPP |
| 931 | ac_cv_env_CPP_set=${CPP+set} |
| 932 | ac_cv_env_CPP_value=$CPP |
| 933 | ac_env_CXX_set=${CXX+set} |
| 934 | ac_env_CXX_value=$CXX |
| 935 | ac_cv_env_CXX_set=${CXX+set} |
| 936 | ac_cv_env_CXX_value=$CXX |
| 937 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
| 938 | ac_env_CXXFLAGS_value=$CXXFLAGS |
| 939 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
| 940 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 941 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 942 | # |
| 943 | # Report the --help message. |
| 944 | # |
| 945 | if test "$ac_init_help" = "long"; then |
| 946 | # Omit some internal or obsolete options to make the list less imposing. |
| 947 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 948 | cat <<_ACEOF |
jjako | 193e8b1 | 2003-11-10 12:31:41 +0000 | [diff] [blame^] | 949 | \`configure' configures openggsn 0.71b to adapt to many kinds of systems. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 950 | |
| 951 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 952 | |
| 953 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 954 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 955 | |
| 956 | Defaults for the options are specified in brackets. |
| 957 | |
| 958 | Configuration: |
| 959 | -h, --help display this help and exit |
| 960 | --help=short display options specific to this package |
| 961 | --help=recursive display the short help of all the included packages |
| 962 | -V, --version display version information and exit |
| 963 | -q, --quiet, --silent do not print \`checking...' messages |
| 964 | --cache-file=FILE cache test results in FILE [disabled] |
| 965 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 966 | -n, --no-create do not create output files |
| 967 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 968 | |
| 969 | _ACEOF |
| 970 | |
| 971 | cat <<_ACEOF |
| 972 | Installation directories: |
| 973 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 974 | [$ac_default_prefix] |
| 975 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 976 | [PREFIX] |
| 977 | |
| 978 | By default, \`make install' will install all the files in |
| 979 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 980 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 981 | for instance \`--prefix=\$HOME'. |
| 982 | |
| 983 | For better control, use the options below. |
| 984 | |
| 985 | Fine tuning of the installation directories: |
| 986 | --bindir=DIR user executables [EPREFIX/bin] |
| 987 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 988 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 989 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 990 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 991 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 992 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 993 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 994 | --includedir=DIR C header files [PREFIX/include] |
| 995 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 996 | --infodir=DIR info documentation [PREFIX/info] |
| 997 | --mandir=DIR man documentation [PREFIX/man] |
| 998 | _ACEOF |
| 999 | |
| 1000 | cat <<\_ACEOF |
| 1001 | |
| 1002 | Program names: |
| 1003 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 1004 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 1005 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 1006 | |
| 1007 | System types: |
| 1008 | --build=BUILD configure for building on BUILD [guessed] |
| 1009 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1010 | _ACEOF |
| 1011 | fi |
| 1012 | |
| 1013 | if test -n "$ac_init_help"; then |
| 1014 | case $ac_init_help in |
jjako | 193e8b1 | 2003-11-10 12:31:41 +0000 | [diff] [blame^] | 1015 | short | recursive ) echo "Configuration of openggsn 0.71b:";; |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1016 | esac |
| 1017 | cat <<\_ACEOF |
| 1018 | |
| 1019 | Optional Features: |
| 1020 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1021 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1022 | --enable-shared=PKGS build shared libraries default=yes |
| 1023 | --enable-static=PKGS build static libraries default=yes |
| 1024 | --enable-fast-install=PKGS optimize for fast installation default=yes |
| 1025 | --disable-libtool-lock avoid locking (might break parallel builds) |
jjako | a9639f3 | 2003-07-07 15:30:11 +0000 | [diff] [blame] | 1026 | --enable-static-exec Enable static linking of executables |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1027 | --disable-dependency-tracking Speeds up one-time builds |
| 1028 | --enable-dependency-tracking Do not reject slow dependency extractors |
| 1029 | |
| 1030 | Optional Packages: |
| 1031 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1032 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 1033 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
| 1034 | --with-pic try to use only PIC/non-PIC objects default=use both |
| 1035 | |
| 1036 | Some influential environment variables: |
| 1037 | CC C compiler command |
| 1038 | CFLAGS C compiler flags |
| 1039 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1040 | nonstandard directory <lib dir> |
| 1041 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 1042 | headers in a nonstandard directory <include dir> |
| 1043 | CPP C preprocessor |
| 1044 | CXX C++ compiler command |
| 1045 | CXXFLAGS C++ compiler flags |
| 1046 | |
| 1047 | Use these variables to override the choices made by `configure' or to help |
| 1048 | it to find libraries and programs with nonstandard names/locations. |
| 1049 | |
| 1050 | Report bugs to <jj@openggsn.org>. |
| 1051 | _ACEOF |
| 1052 | fi |
| 1053 | |
| 1054 | if test "$ac_init_help" = "recursive"; then |
| 1055 | # If there are subdirs, report their specific --help. |
| 1056 | ac_popdir=`pwd` |
| 1057 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1058 | test -d $ac_dir || continue |
| 1059 | ac_builddir=. |
| 1060 | |
| 1061 | if test "$ac_dir" != .; then |
| 1062 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 1063 | # A "../" for each directory in $ac_dir_suffix. |
| 1064 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 1065 | else |
| 1066 | ac_dir_suffix= ac_top_builddir= |
| 1067 | fi |
| 1068 | |
| 1069 | case $srcdir in |
| 1070 | .) # No --srcdir option. We are building in place. |
| 1071 | ac_srcdir=. |
| 1072 | if test -z "$ac_top_builddir"; then |
| 1073 | ac_top_srcdir=. |
| 1074 | else |
| 1075 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 1076 | fi ;; |
| 1077 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 1078 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 1079 | ac_top_srcdir=$srcdir ;; |
| 1080 | *) # Relative path. |
| 1081 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 1082 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 1083 | esac |
| 1084 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 1085 | # absolute. |
| 1086 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 1087 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1088 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 1089 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 1090 | |
| 1091 | cd $ac_dir |
| 1092 | # Check for guested configure; otherwise get Cygnus style configure. |
| 1093 | if test -f $ac_srcdir/configure.gnu; then |
| 1094 | echo |
| 1095 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 1096 | elif test -f $ac_srcdir/configure; then |
| 1097 | echo |
| 1098 | $SHELL $ac_srcdir/configure --help=recursive |
| 1099 | elif test -f $ac_srcdir/configure.ac || |
| 1100 | test -f $ac_srcdir/configure.in; then |
| 1101 | echo |
| 1102 | $ac_configure --help |
| 1103 | else |
| 1104 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1105 | fi |
| 1106 | cd $ac_popdir |
| 1107 | done |
| 1108 | fi |
| 1109 | |
| 1110 | test -n "$ac_init_help" && exit 0 |
| 1111 | if $ac_init_version; then |
| 1112 | cat <<\_ACEOF |
jjako | 193e8b1 | 2003-11-10 12:31:41 +0000 | [diff] [blame^] | 1113 | openggsn configure 0.71b |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 1114 | generated by GNU Autoconf 2.57 |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1115 | |
| 1116 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
| 1117 | Free Software Foundation, Inc. |
| 1118 | This configure script is free software; the Free Software Foundation |
| 1119 | gives unlimited permission to copy, distribute and modify it. |
| 1120 | _ACEOF |
| 1121 | exit 0 |
| 1122 | fi |
| 1123 | exec 5>config.log |
| 1124 | cat >&5 <<_ACEOF |
| 1125 | This file contains any messages produced by compilers while |
| 1126 | running configure, to aid debugging if configure makes a mistake. |
| 1127 | |
jjako | 193e8b1 | 2003-11-10 12:31:41 +0000 | [diff] [blame^] | 1128 | It was created by openggsn $as_me 0.71b, which was |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 1129 | generated by GNU Autoconf 2.57. Invocation command line was |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1130 | |
| 1131 | $ $0 $@ |
| 1132 | |
| 1133 | _ACEOF |
| 1134 | { |
| 1135 | cat <<_ASUNAME |
| 1136 | ## --------- ## |
| 1137 | ## Platform. ## |
| 1138 | ## --------- ## |
| 1139 | |
| 1140 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1141 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1142 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1143 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1144 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1145 | |
| 1146 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1147 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1148 | |
| 1149 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1150 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1151 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1152 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 1153 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1154 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1155 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1156 | |
| 1157 | _ASUNAME |
| 1158 | |
| 1159 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1160 | for as_dir in $PATH |
| 1161 | do |
| 1162 | IFS=$as_save_IFS |
| 1163 | test -z "$as_dir" && as_dir=. |
| 1164 | echo "PATH: $as_dir" |
| 1165 | done |
| 1166 | |
| 1167 | } >&5 |
| 1168 | |
| 1169 | cat >&5 <<_ACEOF |
| 1170 | |
| 1171 | |
| 1172 | ## ----------- ## |
| 1173 | ## Core tests. ## |
| 1174 | ## ----------- ## |
| 1175 | |
| 1176 | _ACEOF |
| 1177 | |
| 1178 | |
| 1179 | # Keep a trace of the command line. |
| 1180 | # Strip out --no-create and --no-recursion so they do not pile up. |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 1181 | # Strip out --silent because we don't want to record it for future runs. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1182 | # Also quote any args containing shell meta-characters. |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 1183 | # Make two passes to allow for proper duplicate-argument suppression. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1184 | ac_configure_args= |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 1185 | ac_configure_args0= |
| 1186 | ac_configure_args1= |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1187 | ac_sep= |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 1188 | ac_must_keep_next=false |
| 1189 | for ac_pass in 1 2 |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1190 | do |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 1191 | for ac_arg |
| 1192 | do |
| 1193 | case $ac_arg in |
| 1194 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1195 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1196 | | -silent | --silent | --silen | --sile | --sil) |
| 1197 | continue ;; |
| 1198 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1199 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1200 | esac |
| 1201 | case $ac_pass in |
| 1202 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1203 | 2) |
| 1204 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1205 | if test $ac_must_keep_next = true; then |
| 1206 | ac_must_keep_next=false # Got value, back to normal. |
| 1207 | else |
| 1208 | case $ac_arg in |
| 1209 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1210 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1211 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1212 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1213 | case "$ac_configure_args0 " in |
| 1214 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1215 | esac |
| 1216 | ;; |
| 1217 | -* ) ac_must_keep_next=true ;; |
| 1218 | esac |
| 1219 | fi |
| 1220 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1221 | # Get rid of the leading space. |
| 1222 | ac_sep=" " |
| 1223 | ;; |
| 1224 | esac |
| 1225 | done |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1226 | done |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 1227 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1228 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1229 | |
| 1230 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1231 | # config.log. We remove comments because anyway the quotes in there |
| 1232 | # would cause problems or look ugly. |
| 1233 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1234 | # such as our DU 5.0 friend, will then `close' the trap. |
| 1235 | trap 'exit_status=$? |
| 1236 | # Save into config.log some information that might help in debugging. |
| 1237 | { |
| 1238 | echo |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 1239 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1240 | cat <<\_ASBOX |
| 1241 | ## ---------------- ## |
| 1242 | ## Cache variables. ## |
| 1243 | ## ---------------- ## |
| 1244 | _ASBOX |
| 1245 | echo |
| 1246 | # The following way of writing the cache mishandles newlines in values, |
| 1247 | { |
| 1248 | (set) 2>&1 | |
| 1249 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1250 | *ac_space=\ *) |
| 1251 | sed -n \ |
| 1252 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1253 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
| 1254 | ;; |
| 1255 | *) |
| 1256 | sed -n \ |
| 1257 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 1258 | ;; |
| 1259 | esac; |
| 1260 | } |
| 1261 | echo |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 1262 | |
| 1263 | cat <<\_ASBOX |
| 1264 | ## ----------------- ## |
| 1265 | ## Output variables. ## |
| 1266 | ## ----------------- ## |
| 1267 | _ASBOX |
| 1268 | echo |
| 1269 | for ac_var in $ac_subst_vars |
| 1270 | do |
| 1271 | eval ac_val=$`echo $ac_var` |
| 1272 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1273 | done | sort |
| 1274 | echo |
| 1275 | |
| 1276 | if test -n "$ac_subst_files"; then |
| 1277 | cat <<\_ASBOX |
| 1278 | ## ------------- ## |
| 1279 | ## Output files. ## |
| 1280 | ## ------------- ## |
| 1281 | _ASBOX |
| 1282 | echo |
| 1283 | for ac_var in $ac_subst_files |
| 1284 | do |
| 1285 | eval ac_val=$`echo $ac_var` |
| 1286 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1287 | done | sort |
| 1288 | echo |
| 1289 | fi |
| 1290 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1291 | if test -s confdefs.h; then |
| 1292 | cat <<\_ASBOX |
| 1293 | ## ----------- ## |
| 1294 | ## confdefs.h. ## |
| 1295 | ## ----------- ## |
| 1296 | _ASBOX |
| 1297 | echo |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 1298 | sed "/^$/d" confdefs.h | sort |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1299 | echo |
| 1300 | fi |
| 1301 | test "$ac_signal" != 0 && |
| 1302 | echo "$as_me: caught signal $ac_signal" |
| 1303 | echo "$as_me: exit $exit_status" |
| 1304 | } >&5 |
| 1305 | rm -f core core.* *.core && |
| 1306 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
| 1307 | exit $exit_status |
| 1308 | ' 0 |
| 1309 | for ac_signal in 1 2 13 15; do |
| 1310 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1311 | done |
| 1312 | ac_signal=0 |
| 1313 | |
| 1314 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1315 | rm -rf conftest* confdefs.h |
| 1316 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1317 | echo >confdefs.h |
| 1318 | |
| 1319 | # Predefined preprocessor variables. |
| 1320 | |
| 1321 | cat >>confdefs.h <<_ACEOF |
| 1322 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1323 | _ACEOF |
| 1324 | |
| 1325 | |
| 1326 | cat >>confdefs.h <<_ACEOF |
| 1327 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1328 | _ACEOF |
| 1329 | |
| 1330 | |
| 1331 | cat >>confdefs.h <<_ACEOF |
| 1332 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1333 | _ACEOF |
| 1334 | |
| 1335 | |
| 1336 | cat >>confdefs.h <<_ACEOF |
| 1337 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1338 | _ACEOF |
| 1339 | |
| 1340 | |
| 1341 | cat >>confdefs.h <<_ACEOF |
| 1342 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1343 | _ACEOF |
| 1344 | |
| 1345 | |
| 1346 | # Let the site file select an alternate cache file if it wants to. |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1347 | # Prefer explicitly selected file to automatically selected ones. |
| 1348 | if test -z "$CONFIG_SITE"; then |
| 1349 | if test "x$prefix" != xNONE; then |
| 1350 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1351 | else |
| 1352 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1353 | fi |
| 1354 | fi |
| 1355 | for ac_site_file in $CONFIG_SITE; do |
| 1356 | if test -r "$ac_site_file"; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1357 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1358 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1359 | sed 's/^/| /' "$ac_site_file" >&5 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1360 | . "$ac_site_file" |
| 1361 | fi |
| 1362 | done |
| 1363 | |
| 1364 | if test -r "$cache_file"; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1365 | # Some versions of bash will fail to source /dev/null (special |
| 1366 | # files actually), so we avoid doing that. |
| 1367 | if test -f "$cache_file"; then |
| 1368 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1369 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1370 | case $cache_file in |
| 1371 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1372 | *) . ./$cache_file;; |
| 1373 | esac |
| 1374 | fi |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1375 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1376 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1377 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1378 | >$cache_file |
| 1379 | fi |
| 1380 | |
| 1381 | # Check that the precious variables saved in the cache have kept the same |
| 1382 | # value. |
| 1383 | ac_cache_corrupted=false |
| 1384 | for ac_var in `(set) 2>&1 | |
| 1385 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
| 1386 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1387 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1388 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1389 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1390 | case $ac_old_set,$ac_new_set in |
| 1391 | set,) |
| 1392 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1393 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1394 | ac_cache_corrupted=: ;; |
| 1395 | ,set) |
| 1396 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1397 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1398 | ac_cache_corrupted=: ;; |
| 1399 | ,);; |
| 1400 | *) |
| 1401 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1402 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1403 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1404 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1405 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1406 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1407 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1408 | ac_cache_corrupted=: |
| 1409 | fi;; |
| 1410 | esac |
| 1411 | # Pass precious variables to config.status. |
| 1412 | if test "$ac_new_set" = set; then |
| 1413 | case $ac_new_val in |
| 1414 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1415 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1416 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1417 | esac |
| 1418 | case " $ac_configure_args " in |
| 1419 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1420 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1421 | esac |
| 1422 | fi |
| 1423 | done |
| 1424 | if $ac_cache_corrupted; then |
| 1425 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1426 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1427 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1428 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1429 | { (exit 1); exit 1; }; } |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1430 | fi |
| 1431 | |
| 1432 | ac_ext=c |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1433 | ac_cpp='$CPP $CPPFLAGS' |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1434 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1435 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1436 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1437 | |
| 1438 | |
| 1439 | |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1440 | |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1441 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1442 | |
| 1443 | |
| 1444 | |
| 1445 | |
| 1446 | |
| 1447 | |
| 1448 | |
| 1449 | |
| 1450 | |
| 1451 | |
| 1452 | |
| 1453 | |
| 1454 | |
| 1455 | |
| 1456 | |
| 1457 | |
| 1458 | |
| 1459 | |
| 1460 | |
| 1461 | |
| 1462 | |
| 1463 | |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 1464 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1465 | # Add the stamp file to the list of files AC keeps track of, |
| 1466 | # along with our hook. |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 1467 | ac_config_headers="$ac_config_headers config.h" |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1468 | |
| 1469 | |
| 1470 | |
| 1471 | #AC_CONFIG_HEADER([config.h]) |
| 1472 | |
| 1473 | # Checks for programs. |
| 1474 | ac_ext=c |
| 1475 | ac_cpp='$CPP $CPPFLAGS' |
| 1476 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1477 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1478 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1479 | if test -n "$ac_tool_prefix"; then |
| 1480 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1481 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1482 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1483 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1484 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1485 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1486 | else |
| 1487 | if test -n "$CC"; then |
| 1488 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1489 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1490 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1491 | for as_dir in $PATH |
| 1492 | do |
| 1493 | IFS=$as_save_IFS |
| 1494 | test -z "$as_dir" && as_dir=. |
| 1495 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1496 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1497 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1498 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1499 | break 2 |
| 1500 | fi |
| 1501 | done |
| 1502 | done |
| 1503 | |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1504 | fi |
| 1505 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1506 | CC=$ac_cv_prog_CC |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1507 | if test -n "$CC"; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1508 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1509 | echo "${ECHO_T}$CC" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1510 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1511 | echo "$as_me:$LINENO: result: no" >&5 |
| 1512 | echo "${ECHO_T}no" >&6 |
| 1513 | fi |
| 1514 | |
| 1515 | fi |
| 1516 | if test -z "$ac_cv_prog_CC"; then |
| 1517 | ac_ct_CC=$CC |
| 1518 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1519 | set dummy gcc; ac_word=$2 |
| 1520 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1521 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1522 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1523 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1524 | else |
| 1525 | if test -n "$ac_ct_CC"; then |
| 1526 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1527 | else |
| 1528 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1529 | for as_dir in $PATH |
| 1530 | do |
| 1531 | IFS=$as_save_IFS |
| 1532 | test -z "$as_dir" && as_dir=. |
| 1533 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1534 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1535 | ac_cv_prog_ac_ct_CC="gcc" |
| 1536 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1537 | break 2 |
| 1538 | fi |
| 1539 | done |
| 1540 | done |
| 1541 | |
| 1542 | fi |
| 1543 | fi |
| 1544 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1545 | if test -n "$ac_ct_CC"; then |
| 1546 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1547 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1548 | else |
| 1549 | echo "$as_me:$LINENO: result: no" >&5 |
| 1550 | echo "${ECHO_T}no" >&6 |
| 1551 | fi |
| 1552 | |
| 1553 | CC=$ac_ct_CC |
| 1554 | else |
| 1555 | CC="$ac_cv_prog_CC" |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1556 | fi |
| 1557 | |
| 1558 | if test -z "$CC"; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1559 | if test -n "$ac_tool_prefix"; then |
| 1560 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1561 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 1562 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1563 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1564 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1565 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1566 | else |
| 1567 | if test -n "$CC"; then |
| 1568 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1569 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1570 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1571 | for as_dir in $PATH |
| 1572 | do |
| 1573 | IFS=$as_save_IFS |
| 1574 | test -z "$as_dir" && as_dir=. |
| 1575 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1576 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1577 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1578 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1579 | break 2 |
| 1580 | fi |
| 1581 | done |
| 1582 | done |
| 1583 | |
| 1584 | fi |
| 1585 | fi |
| 1586 | CC=$ac_cv_prog_CC |
| 1587 | if test -n "$CC"; then |
| 1588 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1589 | echo "${ECHO_T}$CC" >&6 |
| 1590 | else |
| 1591 | echo "$as_me:$LINENO: result: no" >&5 |
| 1592 | echo "${ECHO_T}no" >&6 |
| 1593 | fi |
| 1594 | |
| 1595 | fi |
| 1596 | if test -z "$ac_cv_prog_CC"; then |
| 1597 | ac_ct_CC=$CC |
| 1598 | # Extract the first word of "cc", so it can be a program name with args. |
| 1599 | set dummy cc; ac_word=$2 |
| 1600 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1601 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1602 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1603 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1604 | else |
| 1605 | if test -n "$ac_ct_CC"; then |
| 1606 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1607 | else |
| 1608 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1609 | for as_dir in $PATH |
| 1610 | do |
| 1611 | IFS=$as_save_IFS |
| 1612 | test -z "$as_dir" && as_dir=. |
| 1613 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1614 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1615 | ac_cv_prog_ac_ct_CC="cc" |
| 1616 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1617 | break 2 |
| 1618 | fi |
| 1619 | done |
| 1620 | done |
| 1621 | |
| 1622 | fi |
| 1623 | fi |
| 1624 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1625 | if test -n "$ac_ct_CC"; then |
| 1626 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1627 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1628 | else |
| 1629 | echo "$as_me:$LINENO: result: no" >&5 |
| 1630 | echo "${ECHO_T}no" >&6 |
| 1631 | fi |
| 1632 | |
| 1633 | CC=$ac_ct_CC |
| 1634 | else |
| 1635 | CC="$ac_cv_prog_CC" |
| 1636 | fi |
| 1637 | |
| 1638 | fi |
| 1639 | if test -z "$CC"; then |
| 1640 | # Extract the first word of "cc", so it can be a program name with args. |
| 1641 | set dummy cc; ac_word=$2 |
| 1642 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1643 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1644 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1645 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1646 | else |
| 1647 | if test -n "$CC"; then |
| 1648 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1649 | else |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1650 | ac_prog_rejected=no |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1651 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1652 | for as_dir in $PATH |
| 1653 | do |
| 1654 | IFS=$as_save_IFS |
| 1655 | test -z "$as_dir" && as_dir=. |
| 1656 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1657 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1658 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1659 | ac_prog_rejected=yes |
| 1660 | continue |
| 1661 | fi |
| 1662 | ac_cv_prog_CC="cc" |
| 1663 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1664 | break 2 |
| 1665 | fi |
| 1666 | done |
| 1667 | done |
| 1668 | |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1669 | if test $ac_prog_rejected = yes; then |
| 1670 | # We found a bogon in the path, so make sure we never use it. |
| 1671 | set dummy $ac_cv_prog_CC |
| 1672 | shift |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1673 | if test $# != 0; then |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1674 | # We chose a different compiler from the bogus one. |
| 1675 | # However, it has the same basename, so the bogon will be chosen |
| 1676 | # first if we set CC to just the basename; use the full file name. |
| 1677 | shift |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 1678 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1679 | fi |
| 1680 | fi |
| 1681 | fi |
| 1682 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1683 | CC=$ac_cv_prog_CC |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1684 | if test -n "$CC"; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1685 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1686 | echo "${ECHO_T}$CC" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1687 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1688 | echo "$as_me:$LINENO: result: no" >&5 |
| 1689 | echo "${ECHO_T}no" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1690 | fi |
| 1691 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1692 | fi |
| 1693 | if test -z "$CC"; then |
| 1694 | if test -n "$ac_tool_prefix"; then |
| 1695 | for ac_prog in cl |
| 1696 | do |
| 1697 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1698 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 1699 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1700 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1701 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1702 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1703 | else |
| 1704 | if test -n "$CC"; then |
| 1705 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1706 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1707 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1708 | for as_dir in $PATH |
| 1709 | do |
| 1710 | IFS=$as_save_IFS |
| 1711 | test -z "$as_dir" && as_dir=. |
| 1712 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1713 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1714 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 1715 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1716 | break 2 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1717 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1718 | done |
| 1719 | done |
| 1720 | |
| 1721 | fi |
| 1722 | fi |
| 1723 | CC=$ac_cv_prog_CC |
| 1724 | if test -n "$CC"; then |
| 1725 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1726 | echo "${ECHO_T}$CC" >&6 |
| 1727 | else |
| 1728 | echo "$as_me:$LINENO: result: no" >&5 |
| 1729 | echo "${ECHO_T}no" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1730 | fi |
| 1731 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1732 | test -n "$CC" && break |
| 1733 | done |
| 1734 | fi |
| 1735 | if test -z "$CC"; then |
| 1736 | ac_ct_CC=$CC |
| 1737 | for ac_prog in cl |
| 1738 | do |
| 1739 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1740 | set dummy $ac_prog; ac_word=$2 |
| 1741 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1742 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1743 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1744 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1745 | else |
| 1746 | if test -n "$ac_ct_CC"; then |
| 1747 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1748 | else |
| 1749 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1750 | for as_dir in $PATH |
| 1751 | do |
| 1752 | IFS=$as_save_IFS |
| 1753 | test -z "$as_dir" && as_dir=. |
| 1754 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1755 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1756 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 1757 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1758 | break 2 |
| 1759 | fi |
| 1760 | done |
| 1761 | done |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1762 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1763 | fi |
| 1764 | fi |
| 1765 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1766 | if test -n "$ac_ct_CC"; then |
| 1767 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1768 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1769 | else |
| 1770 | echo "$as_me:$LINENO: result: no" >&5 |
| 1771 | echo "${ECHO_T}no" >&6 |
| 1772 | fi |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1773 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1774 | test -n "$ac_ct_CC" && break |
| 1775 | done |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1776 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1777 | CC=$ac_ct_CC |
| 1778 | fi |
| 1779 | |
| 1780 | fi |
| 1781 | |
| 1782 | |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 1783 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 1784 | See \`config.log' for more details." >&5 |
| 1785 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 1786 | See \`config.log' for more details." >&2;} |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1787 | { (exit 1); exit 1; }; } |
| 1788 | |
| 1789 | # Provide some information about the compiler. |
| 1790 | echo "$as_me:$LINENO:" \ |
| 1791 | "checking for C compiler version" >&5 |
| 1792 | ac_compiler=`set X $ac_compile; echo $2` |
| 1793 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 1794 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 1795 | ac_status=$? |
| 1796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1797 | (exit $ac_status); } |
| 1798 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 1799 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 1800 | ac_status=$? |
| 1801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1802 | (exit $ac_status); } |
| 1803 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 1804 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 1805 | ac_status=$? |
| 1806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1807 | (exit $ac_status); } |
| 1808 | |
| 1809 | cat >conftest.$ac_ext <<_ACEOF |
| 1810 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 1811 | /* confdefs.h. */ |
| 1812 | _ACEOF |
| 1813 | cat confdefs.h >>conftest.$ac_ext |
| 1814 | cat >>conftest.$ac_ext <<_ACEOF |
| 1815 | /* end confdefs.h. */ |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1816 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1817 | int |
| 1818 | main () |
| 1819 | { |
| 1820 | |
| 1821 | ; |
| 1822 | return 0; |
| 1823 | } |
| 1824 | _ACEOF |
| 1825 | ac_clean_files_save=$ac_clean_files |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 1826 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1827 | # Try to create an executable without -o first, disregard a.out. |
| 1828 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1829 | # of exeext. |
| 1830 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 |
| 1831 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
| 1832 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 1833 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 1834 | (eval $ac_link_default) 2>&5 |
| 1835 | ac_status=$? |
| 1836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1837 | (exit $ac_status); }; then |
| 1838 | # Find the output, starting from the most likely. This scheme is |
| 1839 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1840 | # resort. |
| 1841 | |
| 1842 | # Be careful to initialize this variable, since it used to be cached. |
| 1843 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1844 | ac_cv_exeext= |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 1845 | # b.out is created by i960 compilers. |
| 1846 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 1847 | do |
| 1848 | test -f "$ac_file" || continue |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1849 | case $ac_file in |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 1850 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
| 1851 | ;; |
| 1852 | conftest.$ac_ext ) |
| 1853 | # This is the source file. |
| 1854 | ;; |
| 1855 | [ab].out ) |
| 1856 | # We found the default executable, but exeext='' is most |
| 1857 | # certainly right. |
| 1858 | break;; |
| 1859 | *.* ) |
| 1860 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1861 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 1862 | # but it would be cool to find out if it's true. Does anybody |
| 1863 | # maintain Libtool? --akim. |
| 1864 | export ac_cv_exeext |
| 1865 | break;; |
| 1866 | * ) |
| 1867 | break;; |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1868 | esac |
| 1869 | done |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1870 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1871 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 1872 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1873 | |
| 1874 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 1875 | See \`config.log' for more details." >&5 |
| 1876 | echo "$as_me: error: C compiler cannot create executables |
| 1877 | See \`config.log' for more details." >&2;} |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1878 | { (exit 77); exit 77; }; } |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1879 | fi |
| 1880 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1881 | ac_exeext=$ac_cv_exeext |
| 1882 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 1883 | echo "${ECHO_T}$ac_file" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1884 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1885 | # Check the compiler produces executables we can run. If not, either |
| 1886 | # the compiler is broken, or we cross compile. |
| 1887 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 1888 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 1889 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 1890 | # If not cross compiling, check that we can run a simple program. |
| 1891 | if test "$cross_compiling" != yes; then |
| 1892 | if { ac_try='./$ac_file' |
| 1893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1894 | (eval $ac_try) 2>&5 |
| 1895 | ac_status=$? |
| 1896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1897 | (exit $ac_status); }; }; then |
| 1898 | cross_compiling=no |
| 1899 | else |
| 1900 | if test "$cross_compiling" = maybe; then |
| 1901 | cross_compiling=yes |
| 1902 | else |
| 1903 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 1904 | If you meant to cross compile, use \`--host'. |
| 1905 | See \`config.log' for more details." >&5 |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1906 | echo "$as_me: error: cannot run C compiled programs. |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 1907 | If you meant to cross compile, use \`--host'. |
| 1908 | See \`config.log' for more details." >&2;} |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1909 | { (exit 1); exit 1; }; } |
| 1910 | fi |
| 1911 | fi |
| 1912 | fi |
| 1913 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1914 | echo "${ECHO_T}yes" >&6 |
| 1915 | |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 1916 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1917 | ac_clean_files=$ac_clean_files_save |
| 1918 | # Check the compiler produces executables we can run. If not, either |
| 1919 | # the compiler is broken, or we cross compile. |
| 1920 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 1921 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 1922 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 1923 | echo "${ECHO_T}$cross_compiling" >&6 |
| 1924 | |
| 1925 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 1926 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 1927 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 1928 | (eval $ac_link) 2>&5 |
| 1929 | ac_status=$? |
| 1930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1931 | (exit $ac_status); }; then |
| 1932 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 1933 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 1934 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 1935 | # `rm'. |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 1936 | for ac_file in conftest.exe conftest conftest.*; do |
| 1937 | test -f "$ac_file" || continue |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1938 | case $ac_file in |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 1939 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1940 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1941 | export ac_cv_exeext |
| 1942 | break;; |
| 1943 | * ) break;; |
| 1944 | esac |
| 1945 | done |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1946 | else |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 1947 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 1948 | See \`config.log' for more details." >&5 |
| 1949 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 1950 | See \`config.log' for more details." >&2;} |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1951 | { (exit 1); exit 1; }; } |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1952 | fi |
| 1953 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1954 | rm -f conftest$ac_cv_exeext |
| 1955 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 1956 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 1957 | |
| 1958 | rm -f conftest.$ac_ext |
| 1959 | EXEEXT=$ac_cv_exeext |
| 1960 | ac_exeext=$EXEEXT |
| 1961 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 1962 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 1963 | if test "${ac_cv_objext+set}" = set; then |
| 1964 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1965 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1966 | cat >conftest.$ac_ext <<_ACEOF |
| 1967 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 1968 | /* confdefs.h. */ |
| 1969 | _ACEOF |
| 1970 | cat confdefs.h >>conftest.$ac_ext |
| 1971 | cat >>conftest.$ac_ext <<_ACEOF |
| 1972 | /* end confdefs.h. */ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1973 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1974 | int |
| 1975 | main () |
| 1976 | { |
| 1977 | |
| 1978 | ; |
| 1979 | return 0; |
| 1980 | } |
| 1981 | _ACEOF |
| 1982 | rm -f conftest.o conftest.obj |
| 1983 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 1984 | (eval $ac_compile) 2>&5 |
| 1985 | ac_status=$? |
| 1986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1987 | (exit $ac_status); }; then |
| 1988 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 1989 | case $ac_file in |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 1990 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1991 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 1992 | break;; |
| 1993 | esac |
| 1994 | done |
| 1995 | else |
| 1996 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 1997 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1998 | |
| 1999 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2000 | See \`config.log' for more details." >&5 |
| 2001 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2002 | See \`config.log' for more details." >&2;} |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2003 | { (exit 1); exit 1; }; } |
| 2004 | fi |
| 2005 | |
| 2006 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2007 | fi |
| 2008 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2009 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 2010 | OBJEXT=$ac_cv_objext |
| 2011 | ac_objext=$OBJEXT |
| 2012 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2013 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 2014 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2015 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2016 | else |
| 2017 | cat >conftest.$ac_ext <<_ACEOF |
| 2018 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 2019 | /* confdefs.h. */ |
| 2020 | _ACEOF |
| 2021 | cat confdefs.h >>conftest.$ac_ext |
| 2022 | cat >>conftest.$ac_ext <<_ACEOF |
| 2023 | /* end confdefs.h. */ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2024 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2025 | int |
| 2026 | main () |
| 2027 | { |
| 2028 | #ifndef __GNUC__ |
| 2029 | choke me |
| 2030 | #endif |
| 2031 | |
| 2032 | ; |
| 2033 | return 0; |
| 2034 | } |
| 2035 | _ACEOF |
| 2036 | rm -f conftest.$ac_objext |
| 2037 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2038 | (eval $ac_compile) 2>&5 |
| 2039 | ac_status=$? |
| 2040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2041 | (exit $ac_status); } && |
| 2042 | { ac_try='test -s conftest.$ac_objext' |
| 2043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2044 | (eval $ac_try) 2>&5 |
| 2045 | ac_status=$? |
| 2046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2047 | (exit $ac_status); }; }; then |
| 2048 | ac_compiler_gnu=yes |
| 2049 | else |
| 2050 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 2051 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2052 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2053 | ac_compiler_gnu=no |
| 2054 | fi |
| 2055 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2056 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2057 | |
| 2058 | fi |
| 2059 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2060 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2061 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2062 | ac_test_CFLAGS=${CFLAGS+set} |
| 2063 | ac_save_CFLAGS=$CFLAGS |
| 2064 | CFLAGS="-g" |
| 2065 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2066 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2067 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2068 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2069 | else |
| 2070 | cat >conftest.$ac_ext <<_ACEOF |
| 2071 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 2072 | /* confdefs.h. */ |
| 2073 | _ACEOF |
| 2074 | cat confdefs.h >>conftest.$ac_ext |
| 2075 | cat >>conftest.$ac_ext <<_ACEOF |
| 2076 | /* end confdefs.h. */ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2077 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2078 | int |
| 2079 | main () |
| 2080 | { |
| 2081 | |
| 2082 | ; |
| 2083 | return 0; |
| 2084 | } |
| 2085 | _ACEOF |
| 2086 | rm -f conftest.$ac_objext |
| 2087 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2088 | (eval $ac_compile) 2>&5 |
| 2089 | ac_status=$? |
| 2090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2091 | (exit $ac_status); } && |
| 2092 | { ac_try='test -s conftest.$ac_objext' |
| 2093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2094 | (eval $ac_try) 2>&5 |
| 2095 | ac_status=$? |
| 2096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2097 | (exit $ac_status); }; }; then |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2098 | ac_cv_prog_cc_g=yes |
| 2099 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2100 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 2101 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2102 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2103 | ac_cv_prog_cc_g=no |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2104 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2105 | rm -f conftest.$ac_objext conftest.$ac_ext |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2106 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2107 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2108 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2109 | if test "$ac_test_CFLAGS" = set; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2110 | CFLAGS=$ac_save_CFLAGS |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2111 | elif test $ac_cv_prog_cc_g = yes; then |
| 2112 | if test "$GCC" = yes; then |
| 2113 | CFLAGS="-g -O2" |
| 2114 | else |
| 2115 | CFLAGS="-g" |
| 2116 | fi |
| 2117 | else |
| 2118 | if test "$GCC" = yes; then |
| 2119 | CFLAGS="-O2" |
| 2120 | else |
| 2121 | CFLAGS= |
| 2122 | fi |
| 2123 | fi |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 2124 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2125 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2126 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 2127 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2128 | else |
| 2129 | ac_cv_prog_cc_stdc=no |
| 2130 | ac_save_CC=$CC |
| 2131 | cat >conftest.$ac_ext <<_ACEOF |
| 2132 | #line $LINENO "configure" |
| 2133 | /* confdefs.h. */ |
| 2134 | _ACEOF |
| 2135 | cat confdefs.h >>conftest.$ac_ext |
| 2136 | cat >>conftest.$ac_ext <<_ACEOF |
| 2137 | /* end confdefs.h. */ |
| 2138 | #include <stdarg.h> |
| 2139 | #include <stdio.h> |
| 2140 | #include <sys/types.h> |
| 2141 | #include <sys/stat.h> |
| 2142 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2143 | struct buf { int x; }; |
| 2144 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2145 | static char *e (p, i) |
| 2146 | char **p; |
| 2147 | int i; |
| 2148 | { |
| 2149 | return p[i]; |
| 2150 | } |
| 2151 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2152 | { |
| 2153 | char *s; |
| 2154 | va_list v; |
| 2155 | va_start (v,p); |
| 2156 | s = g (p, va_arg (v,int)); |
| 2157 | va_end (v); |
| 2158 | return s; |
| 2159 | } |
| 2160 | int test (int i, double x); |
| 2161 | struct s1 {int (*f) (int a);}; |
| 2162 | struct s2 {int (*f) (double a);}; |
| 2163 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2164 | int argc; |
| 2165 | char **argv; |
| 2166 | int |
| 2167 | main () |
| 2168 | { |
| 2169 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2170 | ; |
| 2171 | return 0; |
| 2172 | } |
| 2173 | _ACEOF |
| 2174 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2175 | # breaks some systems' header files. |
| 2176 | # AIX -qlanglvl=ansi |
| 2177 | # Ultrix and OSF/1 -std1 |
| 2178 | # HP-UX 10.20 and later -Ae |
| 2179 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2180 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2181 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2182 | do |
| 2183 | CC="$ac_save_CC $ac_arg" |
| 2184 | rm -f conftest.$ac_objext |
| 2185 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2186 | (eval $ac_compile) 2>&5 |
| 2187 | ac_status=$? |
| 2188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2189 | (exit $ac_status); } && |
| 2190 | { ac_try='test -s conftest.$ac_objext' |
| 2191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2192 | (eval $ac_try) 2>&5 |
| 2193 | ac_status=$? |
| 2194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2195 | (exit $ac_status); }; }; then |
| 2196 | ac_cv_prog_cc_stdc=$ac_arg |
| 2197 | break |
| 2198 | else |
| 2199 | echo "$as_me: failed program was:" >&5 |
| 2200 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2201 | |
| 2202 | fi |
| 2203 | rm -f conftest.$ac_objext |
| 2204 | done |
| 2205 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 2206 | CC=$ac_save_CC |
| 2207 | |
| 2208 | fi |
| 2209 | |
| 2210 | case "x$ac_cv_prog_cc_stdc" in |
| 2211 | x|xno) |
| 2212 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2213 | echo "${ECHO_T}none needed" >&6 ;; |
| 2214 | *) |
| 2215 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2216 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2217 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 2218 | esac |
| 2219 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2220 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2221 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2222 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2223 | # the declaration of exit, since it's the most demanding environment. |
| 2224 | cat >conftest.$ac_ext <<_ACEOF |
| 2225 | #ifndef __cplusplus |
| 2226 | choke me |
| 2227 | #endif |
| 2228 | _ACEOF |
| 2229 | rm -f conftest.$ac_objext |
| 2230 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2231 | (eval $ac_compile) 2>&5 |
| 2232 | ac_status=$? |
| 2233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2234 | (exit $ac_status); } && |
| 2235 | { ac_try='test -s conftest.$ac_objext' |
| 2236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2237 | (eval $ac_try) 2>&5 |
| 2238 | ac_status=$? |
| 2239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2240 | (exit $ac_status); }; }; then |
| 2241 | for ac_declaration in \ |
| 2242 | ''\ |
| 2243 | '#include <stdlib.h>' \ |
| 2244 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2245 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2246 | 'extern "C" void exit (int) throw ();' \ |
| 2247 | 'extern "C" void exit (int);' \ |
| 2248 | 'void exit (int);' |
| 2249 | do |
| 2250 | cat >conftest.$ac_ext <<_ACEOF |
| 2251 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 2252 | /* confdefs.h. */ |
| 2253 | _ACEOF |
| 2254 | cat confdefs.h >>conftest.$ac_ext |
| 2255 | cat >>conftest.$ac_ext <<_ACEOF |
| 2256 | /* end confdefs.h. */ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2257 | #include <stdlib.h> |
| 2258 | $ac_declaration |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2259 | int |
| 2260 | main () |
| 2261 | { |
| 2262 | exit (42); |
| 2263 | ; |
| 2264 | return 0; |
| 2265 | } |
| 2266 | _ACEOF |
| 2267 | rm -f conftest.$ac_objext |
| 2268 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2269 | (eval $ac_compile) 2>&5 |
| 2270 | ac_status=$? |
| 2271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2272 | (exit $ac_status); } && |
| 2273 | { ac_try='test -s conftest.$ac_objext' |
| 2274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2275 | (eval $ac_try) 2>&5 |
| 2276 | ac_status=$? |
| 2277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2278 | (exit $ac_status); }; }; then |
| 2279 | : |
| 2280 | else |
| 2281 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 2282 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2283 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2284 | continue |
| 2285 | fi |
| 2286 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2287 | cat >conftest.$ac_ext <<_ACEOF |
| 2288 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 2289 | /* confdefs.h. */ |
| 2290 | _ACEOF |
| 2291 | cat confdefs.h >>conftest.$ac_ext |
| 2292 | cat >>conftest.$ac_ext <<_ACEOF |
| 2293 | /* end confdefs.h. */ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2294 | $ac_declaration |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2295 | int |
| 2296 | main () |
| 2297 | { |
| 2298 | exit (42); |
| 2299 | ; |
| 2300 | return 0; |
| 2301 | } |
| 2302 | _ACEOF |
| 2303 | rm -f conftest.$ac_objext |
| 2304 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2305 | (eval $ac_compile) 2>&5 |
| 2306 | ac_status=$? |
| 2307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2308 | (exit $ac_status); } && |
| 2309 | { ac_try='test -s conftest.$ac_objext' |
| 2310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2311 | (eval $ac_try) 2>&5 |
| 2312 | ac_status=$? |
| 2313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2314 | (exit $ac_status); }; }; then |
| 2315 | break |
| 2316 | else |
| 2317 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 2318 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2319 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2320 | fi |
| 2321 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2322 | done |
| 2323 | rm -f conftest* |
| 2324 | if test -n "$ac_declaration"; then |
| 2325 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2326 | echo $ac_declaration >>confdefs.h |
| 2327 | echo '#endif' >>confdefs.h |
| 2328 | fi |
| 2329 | |
| 2330 | else |
| 2331 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 2332 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2333 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2334 | fi |
| 2335 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2336 | ac_ext=c |
| 2337 | ac_cpp='$CPP $CPPFLAGS' |
| 2338 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2339 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2340 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2341 | |
| 2342 | ac_aux_dir= |
| 2343 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 2344 | if test -f $ac_dir/install-sh; then |
| 2345 | ac_aux_dir=$ac_dir |
| 2346 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 2347 | break |
| 2348 | elif test -f $ac_dir/install.sh; then |
| 2349 | ac_aux_dir=$ac_dir |
| 2350 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 2351 | break |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2352 | elif test -f $ac_dir/shtool; then |
| 2353 | ac_aux_dir=$ac_dir |
| 2354 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 2355 | break |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2356 | fi |
| 2357 | done |
| 2358 | if test -z "$ac_aux_dir"; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2359 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
| 2360 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
| 2361 | { (exit 1); exit 1; }; } |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2362 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2363 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 2364 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 2365 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2366 | |
| 2367 | # Find a good install program. We prefer a C program (faster), |
| 2368 | # so one script is as good as another. But avoid the broken or |
| 2369 | # incompatible versions: |
| 2370 | # SysV /etc/install, /usr/sbin/install |
| 2371 | # SunOS /usr/etc/install |
| 2372 | # IRIX /sbin/install |
| 2373 | # AIX /bin/install |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2374 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2375 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 2376 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 2377 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 2378 | # ./install, which can be erroneously created by make from ./install.sh. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2379 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 2380 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2381 | if test -z "$INSTALL"; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2382 | if test "${ac_cv_path_install+set}" = set; then |
| 2383 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2384 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2385 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2386 | for as_dir in $PATH |
| 2387 | do |
| 2388 | IFS=$as_save_IFS |
| 2389 | test -z "$as_dir" && as_dir=. |
| 2390 | # Account for people who put trailing slashes in PATH elements. |
| 2391 | case $as_dir/ in |
| 2392 | ./ | .// | /cC/* | \ |
| 2393 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 2394 | /usr/ucb/* ) ;; |
| 2395 | *) |
| 2396 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 2397 | # Don't use installbsd from OSF since it installs stuff as root |
| 2398 | # by default. |
| 2399 | for ac_prog in ginstall scoinst install; do |
| 2400 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2401 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 2402 | if test $ac_prog = install && |
| 2403 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2404 | # AIX install. It has an incompatible calling convention. |
| 2405 | : |
| 2406 | elif test $ac_prog = install && |
| 2407 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2408 | # program-specific install script used by HP pwplus--don't use. |
| 2409 | : |
| 2410 | else |
| 2411 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 2412 | break 3 |
| 2413 | fi |
| 2414 | fi |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2415 | done |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2416 | done |
| 2417 | ;; |
| 2418 | esac |
| 2419 | done |
| 2420 | |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2421 | |
| 2422 | fi |
| 2423 | if test "${ac_cv_path_install+set}" = set; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2424 | INSTALL=$ac_cv_path_install |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2425 | else |
| 2426 | # As a last resort, use the slow shell script. We don't cache a |
| 2427 | # path for INSTALL within a source directory, because that will |
| 2428 | # break other packages using the cache if that directory is |
| 2429 | # removed, or if the path is relative. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2430 | INSTALL=$ac_install_sh |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2431 | fi |
| 2432 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2433 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 2434 | echo "${ECHO_T}$INSTALL" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2435 | |
| 2436 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 2437 | # It thinks the first close brace ends the variable substitution. |
| 2438 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 2439 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2440 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2441 | |
| 2442 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 2443 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2444 | for ac_prog in gawk mawk nawk awk |
| 2445 | do |
| 2446 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2447 | set dummy $ac_prog; ac_word=$2 |
| 2448 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2449 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2450 | if test "${ac_cv_prog_AWK+set}" = set; then |
| 2451 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2452 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2453 | if test -n "$AWK"; then |
| 2454 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2455 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2456 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2457 | for as_dir in $PATH |
| 2458 | do |
| 2459 | IFS=$as_save_IFS |
| 2460 | test -z "$as_dir" && as_dir=. |
| 2461 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2462 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2463 | ac_cv_prog_AWK="$ac_prog" |
| 2464 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2465 | break 2 |
| 2466 | fi |
| 2467 | done |
| 2468 | done |
| 2469 | |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2470 | fi |
| 2471 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2472 | AWK=$ac_cv_prog_AWK |
| 2473 | if test -n "$AWK"; then |
| 2474 | echo "$as_me:$LINENO: result: $AWK" >&5 |
| 2475 | echo "${ECHO_T}$AWK" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2476 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2477 | echo "$as_me:$LINENO: result: no" >&5 |
| 2478 | echo "${ECHO_T}no" >&6 |
| 2479 | fi |
| 2480 | |
| 2481 | test -n "$AWK" && break |
| 2482 | done |
| 2483 | |
| 2484 | ac_ext=c |
| 2485 | ac_cpp='$CPP $CPPFLAGS' |
| 2486 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2487 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2488 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2489 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 2490 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
| 2491 | # On Suns, sometimes $CPP names a directory. |
| 2492 | if test -n "$CPP" && test -d "$CPP"; then |
| 2493 | CPP= |
| 2494 | fi |
| 2495 | if test -z "$CPP"; then |
| 2496 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2497 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2498 | else |
| 2499 | # Double quotes because CPP needs to be expanded |
| 2500 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2501 | do |
| 2502 | ac_preproc_ok=false |
| 2503 | for ac_c_preproc_warn_flag in '' yes |
| 2504 | do |
| 2505 | # Use a header file that comes with gcc, so configuring glibc |
| 2506 | # with a fresh cross-compiler works. |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 2507 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2508 | # <limits.h> exists even on freestanding compilers. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2509 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2510 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2511 | cat >conftest.$ac_ext <<_ACEOF |
| 2512 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 2513 | /* confdefs.h. */ |
| 2514 | _ACEOF |
| 2515 | cat confdefs.h >>conftest.$ac_ext |
| 2516 | cat >>conftest.$ac_ext <<_ACEOF |
| 2517 | /* end confdefs.h. */ |
| 2518 | #ifdef __STDC__ |
| 2519 | # include <limits.h> |
| 2520 | #else |
| 2521 | # include <assert.h> |
| 2522 | #endif |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2523 | Syntax error |
| 2524 | _ACEOF |
| 2525 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2526 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2527 | ac_status=$? |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 2528 | grep -v '^ *+' conftest.er1 >conftest.err |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2529 | rm -f conftest.er1 |
| 2530 | cat conftest.err >&5 |
| 2531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2532 | (exit $ac_status); } >/dev/null; then |
| 2533 | if test -s conftest.err; then |
| 2534 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2535 | else |
| 2536 | ac_cpp_err= |
| 2537 | fi |
| 2538 | else |
| 2539 | ac_cpp_err=yes |
| 2540 | fi |
| 2541 | if test -z "$ac_cpp_err"; then |
| 2542 | : |
| 2543 | else |
| 2544 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 2545 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2546 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2547 | # Broken: fails on valid input. |
| 2548 | continue |
| 2549 | fi |
| 2550 | rm -f conftest.err conftest.$ac_ext |
| 2551 | |
| 2552 | # OK, works on sane cases. Now check whether non-existent headers |
| 2553 | # can be detected and how. |
| 2554 | cat >conftest.$ac_ext <<_ACEOF |
| 2555 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 2556 | /* confdefs.h. */ |
| 2557 | _ACEOF |
| 2558 | cat confdefs.h >>conftest.$ac_ext |
| 2559 | cat >>conftest.$ac_ext <<_ACEOF |
| 2560 | /* end confdefs.h. */ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2561 | #include <ac_nonexistent.h> |
| 2562 | _ACEOF |
| 2563 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2564 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2565 | ac_status=$? |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 2566 | grep -v '^ *+' conftest.er1 >conftest.err |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2567 | rm -f conftest.er1 |
| 2568 | cat conftest.err >&5 |
| 2569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2570 | (exit $ac_status); } >/dev/null; then |
| 2571 | if test -s conftest.err; then |
| 2572 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2573 | else |
| 2574 | ac_cpp_err= |
| 2575 | fi |
| 2576 | else |
| 2577 | ac_cpp_err=yes |
| 2578 | fi |
| 2579 | if test -z "$ac_cpp_err"; then |
| 2580 | # Broken: success on invalid input. |
| 2581 | continue |
| 2582 | else |
| 2583 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 2584 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2585 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2586 | # Passes both tests. |
| 2587 | ac_preproc_ok=: |
| 2588 | break |
| 2589 | fi |
| 2590 | rm -f conftest.err conftest.$ac_ext |
| 2591 | |
| 2592 | done |
| 2593 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2594 | rm -f conftest.err conftest.$ac_ext |
| 2595 | if $ac_preproc_ok; then |
| 2596 | break |
| 2597 | fi |
| 2598 | |
| 2599 | done |
| 2600 | ac_cv_prog_CPP=$CPP |
| 2601 | |
| 2602 | fi |
| 2603 | CPP=$ac_cv_prog_CPP |
| 2604 | else |
| 2605 | ac_cv_prog_CPP=$CPP |
| 2606 | fi |
| 2607 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 2608 | echo "${ECHO_T}$CPP" >&6 |
| 2609 | ac_preproc_ok=false |
| 2610 | for ac_c_preproc_warn_flag in '' yes |
| 2611 | do |
| 2612 | # Use a header file that comes with gcc, so configuring glibc |
| 2613 | # with a fresh cross-compiler works. |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 2614 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2615 | # <limits.h> exists even on freestanding compilers. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2616 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2617 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2618 | cat >conftest.$ac_ext <<_ACEOF |
| 2619 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 2620 | /* confdefs.h. */ |
| 2621 | _ACEOF |
| 2622 | cat confdefs.h >>conftest.$ac_ext |
| 2623 | cat >>conftest.$ac_ext <<_ACEOF |
| 2624 | /* end confdefs.h. */ |
| 2625 | #ifdef __STDC__ |
| 2626 | # include <limits.h> |
| 2627 | #else |
| 2628 | # include <assert.h> |
| 2629 | #endif |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2630 | Syntax error |
| 2631 | _ACEOF |
| 2632 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2633 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2634 | ac_status=$? |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 2635 | grep -v '^ *+' conftest.er1 >conftest.err |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2636 | rm -f conftest.er1 |
| 2637 | cat conftest.err >&5 |
| 2638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2639 | (exit $ac_status); } >/dev/null; then |
| 2640 | if test -s conftest.err; then |
| 2641 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2642 | else |
| 2643 | ac_cpp_err= |
| 2644 | fi |
| 2645 | else |
| 2646 | ac_cpp_err=yes |
| 2647 | fi |
| 2648 | if test -z "$ac_cpp_err"; then |
| 2649 | : |
| 2650 | else |
| 2651 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 2652 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2653 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2654 | # Broken: fails on valid input. |
| 2655 | continue |
| 2656 | fi |
| 2657 | rm -f conftest.err conftest.$ac_ext |
| 2658 | |
| 2659 | # OK, works on sane cases. Now check whether non-existent headers |
| 2660 | # can be detected and how. |
| 2661 | cat >conftest.$ac_ext <<_ACEOF |
| 2662 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 2663 | /* confdefs.h. */ |
| 2664 | _ACEOF |
| 2665 | cat confdefs.h >>conftest.$ac_ext |
| 2666 | cat >>conftest.$ac_ext <<_ACEOF |
| 2667 | /* end confdefs.h. */ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2668 | #include <ac_nonexistent.h> |
| 2669 | _ACEOF |
| 2670 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2671 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2672 | ac_status=$? |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 2673 | grep -v '^ *+' conftest.er1 >conftest.err |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2674 | rm -f conftest.er1 |
| 2675 | cat conftest.err >&5 |
| 2676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2677 | (exit $ac_status); } >/dev/null; then |
| 2678 | if test -s conftest.err; then |
| 2679 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2680 | else |
| 2681 | ac_cpp_err= |
| 2682 | fi |
| 2683 | else |
| 2684 | ac_cpp_err=yes |
| 2685 | fi |
| 2686 | if test -z "$ac_cpp_err"; then |
| 2687 | # Broken: success on invalid input. |
| 2688 | continue |
| 2689 | else |
| 2690 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 2691 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2692 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2693 | # Passes both tests. |
| 2694 | ac_preproc_ok=: |
| 2695 | break |
| 2696 | fi |
| 2697 | rm -f conftest.err conftest.$ac_ext |
| 2698 | |
| 2699 | done |
| 2700 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2701 | rm -f conftest.err conftest.$ac_ext |
| 2702 | if $ac_preproc_ok; then |
| 2703 | : |
| 2704 | else |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 2705 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 2706 | See \`config.log' for more details." >&5 |
| 2707 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 2708 | See \`config.log' for more details." >&2;} |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2709 | { (exit 1); exit 1; }; } |
| 2710 | fi |
| 2711 | |
| 2712 | ac_ext=c |
| 2713 | ac_cpp='$CPP $CPPFLAGS' |
| 2714 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2715 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2716 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2717 | |
| 2718 | ac_ext=cc |
| 2719 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 2720 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2721 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2722 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 2723 | if test -n "$ac_tool_prefix"; then |
| 2724 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
| 2725 | do |
| 2726 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2727 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2728 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2729 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2730 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 2731 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2732 | else |
| 2733 | if test -n "$CXX"; then |
| 2734 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 2735 | else |
| 2736 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2737 | for as_dir in $PATH |
| 2738 | do |
| 2739 | IFS=$as_save_IFS |
| 2740 | test -z "$as_dir" && as_dir=. |
| 2741 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2742 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2743 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 2744 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2745 | break 2 |
| 2746 | fi |
| 2747 | done |
| 2748 | done |
| 2749 | |
| 2750 | fi |
| 2751 | fi |
| 2752 | CXX=$ac_cv_prog_CXX |
| 2753 | if test -n "$CXX"; then |
| 2754 | echo "$as_me:$LINENO: result: $CXX" >&5 |
| 2755 | echo "${ECHO_T}$CXX" >&6 |
| 2756 | else |
| 2757 | echo "$as_me:$LINENO: result: no" >&5 |
| 2758 | echo "${ECHO_T}no" >&6 |
| 2759 | fi |
| 2760 | |
| 2761 | test -n "$CXX" && break |
| 2762 | done |
| 2763 | fi |
| 2764 | if test -z "$CXX"; then |
| 2765 | ac_ct_CXX=$CXX |
| 2766 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
| 2767 | do |
| 2768 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2769 | set dummy $ac_prog; ac_word=$2 |
| 2770 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2771 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2772 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 2773 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2774 | else |
| 2775 | if test -n "$ac_ct_CXX"; then |
| 2776 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 2777 | else |
| 2778 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2779 | for as_dir in $PATH |
| 2780 | do |
| 2781 | IFS=$as_save_IFS |
| 2782 | test -z "$as_dir" && as_dir=. |
| 2783 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2784 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2785 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 2786 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2787 | break 2 |
| 2788 | fi |
| 2789 | done |
| 2790 | done |
| 2791 | |
| 2792 | fi |
| 2793 | fi |
| 2794 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 2795 | if test -n "$ac_ct_CXX"; then |
| 2796 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 2797 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
| 2798 | else |
| 2799 | echo "$as_me:$LINENO: result: no" >&5 |
| 2800 | echo "${ECHO_T}no" >&6 |
| 2801 | fi |
| 2802 | |
| 2803 | test -n "$ac_ct_CXX" && break |
| 2804 | done |
| 2805 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
| 2806 | |
| 2807 | CXX=$ac_ct_CXX |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2808 | fi |
| 2809 | |
| 2810 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2811 | # Provide some information about the compiler. |
| 2812 | echo "$as_me:$LINENO:" \ |
| 2813 | "checking for C++ compiler version" >&5 |
| 2814 | ac_compiler=`set X $ac_compile; echo $2` |
| 2815 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 2816 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 2817 | ac_status=$? |
| 2818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2819 | (exit $ac_status); } |
| 2820 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 2821 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 2822 | ac_status=$? |
| 2823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2824 | (exit $ac_status); } |
| 2825 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 2826 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 2827 | ac_status=$? |
| 2828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2829 | (exit $ac_status); } |
| 2830 | |
| 2831 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 2832 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
| 2833 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 2834 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2835 | else |
| 2836 | cat >conftest.$ac_ext <<_ACEOF |
| 2837 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 2838 | /* confdefs.h. */ |
| 2839 | _ACEOF |
| 2840 | cat confdefs.h >>conftest.$ac_ext |
| 2841 | cat >>conftest.$ac_ext <<_ACEOF |
| 2842 | /* end confdefs.h. */ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2843 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2844 | int |
| 2845 | main () |
| 2846 | { |
| 2847 | #ifndef __GNUC__ |
| 2848 | choke me |
| 2849 | #endif |
| 2850 | |
| 2851 | ; |
| 2852 | return 0; |
| 2853 | } |
| 2854 | _ACEOF |
| 2855 | rm -f conftest.$ac_objext |
| 2856 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2857 | (eval $ac_compile) 2>&5 |
| 2858 | ac_status=$? |
| 2859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2860 | (exit $ac_status); } && |
| 2861 | { ac_try='test -s conftest.$ac_objext' |
| 2862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2863 | (eval $ac_try) 2>&5 |
| 2864 | ac_status=$? |
| 2865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2866 | (exit $ac_status); }; }; then |
| 2867 | ac_compiler_gnu=yes |
| 2868 | else |
| 2869 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 2870 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2871 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2872 | ac_compiler_gnu=no |
| 2873 | fi |
| 2874 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2875 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 2876 | |
| 2877 | fi |
| 2878 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 2879 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
| 2880 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 2881 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 2882 | ac_save_CXXFLAGS=$CXXFLAGS |
| 2883 | CXXFLAGS="-g" |
| 2884 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 2885 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
| 2886 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 2887 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2888 | else |
| 2889 | cat >conftest.$ac_ext <<_ACEOF |
| 2890 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 2891 | /* confdefs.h. */ |
| 2892 | _ACEOF |
| 2893 | cat confdefs.h >>conftest.$ac_ext |
| 2894 | cat >>conftest.$ac_ext <<_ACEOF |
| 2895 | /* end confdefs.h. */ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2896 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2897 | int |
| 2898 | main () |
| 2899 | { |
| 2900 | |
| 2901 | ; |
| 2902 | return 0; |
| 2903 | } |
| 2904 | _ACEOF |
| 2905 | rm -f conftest.$ac_objext |
| 2906 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2907 | (eval $ac_compile) 2>&5 |
| 2908 | ac_status=$? |
| 2909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2910 | (exit $ac_status); } && |
| 2911 | { ac_try='test -s conftest.$ac_objext' |
| 2912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2913 | (eval $ac_try) 2>&5 |
| 2914 | ac_status=$? |
| 2915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2916 | (exit $ac_status); }; }; then |
| 2917 | ac_cv_prog_cxx_g=yes |
| 2918 | else |
| 2919 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 2920 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2921 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2922 | ac_cv_prog_cxx_g=no |
| 2923 | fi |
| 2924 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2925 | fi |
| 2926 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 2927 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
| 2928 | if test "$ac_test_CXXFLAGS" = set; then |
| 2929 | CXXFLAGS=$ac_save_CXXFLAGS |
| 2930 | elif test $ac_cv_prog_cxx_g = yes; then |
| 2931 | if test "$GXX" = yes; then |
| 2932 | CXXFLAGS="-g -O2" |
| 2933 | else |
| 2934 | CXXFLAGS="-g" |
| 2935 | fi |
| 2936 | else |
| 2937 | if test "$GXX" = yes; then |
| 2938 | CXXFLAGS="-O2" |
| 2939 | else |
| 2940 | CXXFLAGS= |
| 2941 | fi |
| 2942 | fi |
| 2943 | for ac_declaration in \ |
| 2944 | ''\ |
| 2945 | '#include <stdlib.h>' \ |
| 2946 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2947 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2948 | 'extern "C" void exit (int) throw ();' \ |
| 2949 | 'extern "C" void exit (int);' \ |
| 2950 | 'void exit (int);' |
| 2951 | do |
| 2952 | cat >conftest.$ac_ext <<_ACEOF |
| 2953 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 2954 | /* confdefs.h. */ |
| 2955 | _ACEOF |
| 2956 | cat confdefs.h >>conftest.$ac_ext |
| 2957 | cat >>conftest.$ac_ext <<_ACEOF |
| 2958 | /* end confdefs.h. */ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2959 | #include <stdlib.h> |
| 2960 | $ac_declaration |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2961 | int |
| 2962 | main () |
| 2963 | { |
| 2964 | exit (42); |
| 2965 | ; |
| 2966 | return 0; |
| 2967 | } |
| 2968 | _ACEOF |
| 2969 | rm -f conftest.$ac_objext |
| 2970 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2971 | (eval $ac_compile) 2>&5 |
| 2972 | ac_status=$? |
| 2973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2974 | (exit $ac_status); } && |
| 2975 | { ac_try='test -s conftest.$ac_objext' |
| 2976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2977 | (eval $ac_try) 2>&5 |
| 2978 | ac_status=$? |
| 2979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2980 | (exit $ac_status); }; }; then |
| 2981 | : |
| 2982 | else |
| 2983 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 2984 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2985 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2986 | continue |
| 2987 | fi |
| 2988 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2989 | cat >conftest.$ac_ext <<_ACEOF |
| 2990 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 2991 | /* confdefs.h. */ |
| 2992 | _ACEOF |
| 2993 | cat confdefs.h >>conftest.$ac_ext |
| 2994 | cat >>conftest.$ac_ext <<_ACEOF |
| 2995 | /* end confdefs.h. */ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2996 | $ac_declaration |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2997 | int |
| 2998 | main () |
| 2999 | { |
| 3000 | exit (42); |
| 3001 | ; |
| 3002 | return 0; |
| 3003 | } |
| 3004 | _ACEOF |
| 3005 | rm -f conftest.$ac_objext |
| 3006 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3007 | (eval $ac_compile) 2>&5 |
| 3008 | ac_status=$? |
| 3009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3010 | (exit $ac_status); } && |
| 3011 | { ac_try='test -s conftest.$ac_objext' |
| 3012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3013 | (eval $ac_try) 2>&5 |
| 3014 | ac_status=$? |
| 3015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3016 | (exit $ac_status); }; }; then |
| 3017 | break |
| 3018 | else |
| 3019 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 3020 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3021 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3022 | fi |
| 3023 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 3024 | done |
| 3025 | rm -f conftest* |
| 3026 | if test -n "$ac_declaration"; then |
| 3027 | echo '#ifdef __cplusplus' >>confdefs.h |
| 3028 | echo $ac_declaration >>confdefs.h |
| 3029 | echo '#endif' >>confdefs.h |
| 3030 | fi |
| 3031 | |
| 3032 | ac_ext=c |
| 3033 | ac_cpp='$CPP $CPPFLAGS' |
| 3034 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3035 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3036 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3037 | |
| 3038 | if test -n "$ac_tool_prefix"; then |
| 3039 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 3040 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 3041 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3042 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3043 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 3044 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3045 | else |
| 3046 | if test -n "$RANLIB"; then |
| 3047 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 3048 | else |
| 3049 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3050 | for as_dir in $PATH |
| 3051 | do |
| 3052 | IFS=$as_save_IFS |
| 3053 | test -z "$as_dir" && as_dir=. |
| 3054 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3055 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3056 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 3057 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3058 | break 2 |
| 3059 | fi |
| 3060 | done |
| 3061 | done |
| 3062 | |
| 3063 | fi |
| 3064 | fi |
| 3065 | RANLIB=$ac_cv_prog_RANLIB |
| 3066 | if test -n "$RANLIB"; then |
| 3067 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 3068 | echo "${ECHO_T}$RANLIB" >&6 |
| 3069 | else |
| 3070 | echo "$as_me:$LINENO: result: no" >&5 |
| 3071 | echo "${ECHO_T}no" >&6 |
| 3072 | fi |
| 3073 | |
| 3074 | fi |
| 3075 | if test -z "$ac_cv_prog_RANLIB"; then |
| 3076 | ac_ct_RANLIB=$RANLIB |
| 3077 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 3078 | set dummy ranlib; ac_word=$2 |
| 3079 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3080 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3081 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 3082 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3083 | else |
| 3084 | if test -n "$ac_ct_RANLIB"; then |
| 3085 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 3086 | else |
| 3087 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3088 | for as_dir in $PATH |
| 3089 | do |
| 3090 | IFS=$as_save_IFS |
| 3091 | test -z "$as_dir" && as_dir=. |
| 3092 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3093 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3094 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 3095 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3096 | break 2 |
| 3097 | fi |
| 3098 | done |
| 3099 | done |
| 3100 | |
| 3101 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 3102 | fi |
| 3103 | fi |
| 3104 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 3105 | if test -n "$ac_ct_RANLIB"; then |
| 3106 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 3107 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 3108 | else |
| 3109 | echo "$as_me:$LINENO: result: no" >&5 |
| 3110 | echo "${ECHO_T}no" >&6 |
| 3111 | fi |
| 3112 | |
| 3113 | RANLIB=$ac_ct_RANLIB |
| 3114 | else |
| 3115 | RANLIB="$ac_cv_prog_RANLIB" |
| 3116 | fi |
| 3117 | |
| 3118 | |
| 3119 | |
| 3120 | #JJAKO Check for libtool |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3121 | # Check whether --enable-shared or --disable-shared was given. |
| 3122 | if test "${enable_shared+set}" = set; then |
| 3123 | enableval="$enable_shared" |
| 3124 | p=${PACKAGE-default} |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3125 | case $enableval in |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3126 | yes) enable_shared=yes ;; |
| 3127 | no) enable_shared=no ;; |
| 3128 | *) |
| 3129 | enable_shared=no |
| 3130 | # Look at the argument we got. We use all the common list separators. |
| 3131 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
| 3132 | for pkg in $enableval; do |
| 3133 | if test "X$pkg" = "X$p"; then |
| 3134 | enable_shared=yes |
| 3135 | fi |
| 3136 | done |
| 3137 | IFS="$ac_save_ifs" |
| 3138 | ;; |
| 3139 | esac |
| 3140 | else |
| 3141 | enable_shared=yes |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3142 | fi; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3143 | # Check whether --enable-static or --disable-static was given. |
| 3144 | if test "${enable_static+set}" = set; then |
| 3145 | enableval="$enable_static" |
| 3146 | p=${PACKAGE-default} |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3147 | case $enableval in |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3148 | yes) enable_static=yes ;; |
| 3149 | no) enable_static=no ;; |
| 3150 | *) |
| 3151 | enable_static=no |
| 3152 | # Look at the argument we got. We use all the common list separators. |
| 3153 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
| 3154 | for pkg in $enableval; do |
| 3155 | if test "X$pkg" = "X$p"; then |
| 3156 | enable_static=yes |
| 3157 | fi |
| 3158 | done |
| 3159 | IFS="$ac_save_ifs" |
| 3160 | ;; |
| 3161 | esac |
| 3162 | else |
| 3163 | enable_static=yes |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3164 | fi; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3165 | # Check whether --enable-fast-install or --disable-fast-install was given. |
| 3166 | if test "${enable_fast_install+set}" = set; then |
| 3167 | enableval="$enable_fast_install" |
| 3168 | p=${PACKAGE-default} |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3169 | case $enableval in |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3170 | yes) enable_fast_install=yes ;; |
| 3171 | no) enable_fast_install=no ;; |
| 3172 | *) |
| 3173 | enable_fast_install=no |
| 3174 | # Look at the argument we got. We use all the common list separators. |
| 3175 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
| 3176 | for pkg in $enableval; do |
| 3177 | if test "X$pkg" = "X$p"; then |
| 3178 | enable_fast_install=yes |
| 3179 | fi |
| 3180 | done |
| 3181 | IFS="$ac_save_ifs" |
| 3182 | ;; |
| 3183 | esac |
| 3184 | else |
| 3185 | enable_fast_install=yes |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3186 | fi; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3187 | # Make sure we can run config.sub. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3188 | $ac_config_sub sun4 >/dev/null 2>&1 || |
| 3189 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
| 3190 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
| 3191 | { (exit 1); exit 1; }; } |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3192 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3193 | echo "$as_me:$LINENO: checking build system type" >&5 |
| 3194 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
| 3195 | if test "${ac_cv_build+set}" = set; then |
| 3196 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3197 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3198 | ac_cv_build_alias=$build_alias |
| 3199 | test -z "$ac_cv_build_alias" && |
| 3200 | ac_cv_build_alias=`$ac_config_guess` |
| 3201 | test -z "$ac_cv_build_alias" && |
| 3202 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 3203 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 3204 | { (exit 1); exit 1; }; } |
| 3205 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
| 3206 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
| 3207 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
| 3208 | { (exit 1); exit 1; }; } |
| 3209 | |
| 3210 | fi |
| 3211 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 3212 | echo "${ECHO_T}$ac_cv_build" >&6 |
| 3213 | build=$ac_cv_build |
| 3214 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 3215 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 3216 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 3217 | |
| 3218 | |
| 3219 | echo "$as_me:$LINENO: checking host system type" >&5 |
| 3220 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
| 3221 | if test "${ac_cv_host+set}" = set; then |
| 3222 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3223 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3224 | ac_cv_host_alias=$host_alias |
| 3225 | test -z "$ac_cv_host_alias" && |
| 3226 | ac_cv_host_alias=$ac_cv_build_alias |
| 3227 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
| 3228 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
| 3229 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
| 3230 | { (exit 1); exit 1; }; } |
| 3231 | |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3232 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3233 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 3234 | echo "${ECHO_T}$ac_cv_host" >&6 |
| 3235 | host=$ac_cv_host |
| 3236 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 3237 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 3238 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 3239 | |
| 3240 | |
| 3241 | # Find the correct PATH separator. Usually this is `:', but |
| 3242 | # DJGPP uses `;' like DOS. |
| 3243 | if test "X${PATH_SEPARATOR+set}" != Xset; then |
| 3244 | UNAME=${UNAME-`uname 2>/dev/null`} |
| 3245 | case X$UNAME in |
| 3246 | *-DOS) lt_cv_sys_path_separator=';' ;; |
| 3247 | *) lt_cv_sys_path_separator=':' ;; |
| 3248 | esac |
| 3249 | PATH_SEPARATOR=$lt_cv_sys_path_separator |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3250 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3251 | |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3252 | |
| 3253 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
| 3254 | if test "${with_gnu_ld+set}" = set; then |
| 3255 | withval="$with_gnu_ld" |
| 3256 | test "$withval" = no || with_gnu_ld=yes |
| 3257 | else |
| 3258 | with_gnu_ld=no |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3259 | fi; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3260 | ac_prog=ld |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3261 | if test "$GCC" = yes; then |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3262 | # Check if gcc -print-prog-name=ld gives a path. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3263 | echo "$as_me:$LINENO: checking for ld used by GCC" >&5 |
| 3264 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 |
| 3265 | case $host in |
| 3266 | *-*-mingw*) |
| 3267 | # gcc leaves a trailing carriage return which upsets mingw |
| 3268 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 3269 | *) |
| 3270 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 3271 | esac |
| 3272 | case $ac_prog in |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3273 | # Accept absolute paths. |
| 3274 | [\\/]* | [A-Za-z]:[\\/]*) |
| 3275 | re_direlt='/[^/][^/]*/\.\./' |
| 3276 | # Canonicalize the path of ld |
| 3277 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
| 3278 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 3279 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
| 3280 | done |
| 3281 | test -z "$LD" && LD="$ac_prog" |
| 3282 | ;; |
| 3283 | "") |
| 3284 | # If it fails, then pretend we aren't using GCC. |
| 3285 | ac_prog=ld |
| 3286 | ;; |
| 3287 | *) |
| 3288 | # If it is relative, then search for the first ld in PATH. |
| 3289 | with_gnu_ld=unknown |
| 3290 | ;; |
| 3291 | esac |
| 3292 | elif test "$with_gnu_ld" = yes; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3293 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 3294 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3295 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3296 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 3297 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3298 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3299 | if test "${lt_cv_path_LD+set}" = set; then |
| 3300 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3301 | else |
| 3302 | if test -z "$LD"; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3303 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3304 | for ac_dir in $PATH; do |
| 3305 | test -z "$ac_dir" && ac_dir=. |
| 3306 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3307 | lt_cv_path_LD="$ac_dir/$ac_prog" |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3308 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 3309 | # but apparently some GNU ld's only accept -v. |
| 3310 | # Break only if it was the GNU/non-GNU ld that we prefer. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3311 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3312 | test "$with_gnu_ld" != no && break |
| 3313 | else |
| 3314 | test "$with_gnu_ld" != yes && break |
| 3315 | fi |
| 3316 | fi |
| 3317 | done |
| 3318 | IFS="$ac_save_ifs" |
| 3319 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3320 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3321 | fi |
| 3322 | fi |
| 3323 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3324 | LD="$lt_cv_path_LD" |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3325 | if test -n "$LD"; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3326 | echo "$as_me:$LINENO: result: $LD" >&5 |
| 3327 | echo "${ECHO_T}$LD" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3328 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3329 | echo "$as_me:$LINENO: result: no" >&5 |
| 3330 | echo "${ECHO_T}no" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3331 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3332 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 3333 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 3334 | { (exit 1); exit 1; }; } |
| 3335 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 3336 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
| 3337 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 3338 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3339 | else |
| 3340 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 3341 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3342 | lt_cv_prog_gnu_ld=yes |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3343 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3344 | lt_cv_prog_gnu_ld=no |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3345 | fi |
| 3346 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3347 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 3348 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
| 3349 | with_gnu_ld=$lt_cv_prog_gnu_ld |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3350 | |
| 3351 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3352 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
| 3353 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 |
| 3354 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
| 3355 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3356 | else |
| 3357 | lt_cv_ld_reload_flag='-r' |
| 3358 | fi |
| 3359 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
| 3360 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 |
| 3361 | reload_flag=$lt_cv_ld_reload_flag |
| 3362 | test -n "$reload_flag" && reload_flag=" $reload_flag" |
| 3363 | |
| 3364 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
| 3365 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
| 3366 | if test "${lt_cv_path_NM+set}" = set; then |
| 3367 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3368 | else |
| 3369 | if test -n "$NM"; then |
| 3370 | # Let the user override the test. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3371 | lt_cv_path_NM="$NM" |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3372 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3373 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3374 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
| 3375 | test -z "$ac_dir" && ac_dir=. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3376 | tmp_nm=$ac_dir/${ac_tool_prefix}nm |
| 3377 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3378 | # Check to see if the nm accepts a BSD-compat flag. |
| 3379 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 3380 | # nm: unknown option "B" ignored |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3381 | # Tru64's nm complains that /dev/null is an invalid object file |
| 3382 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then |
| 3383 | lt_cv_path_NM="$tmp_nm -B" |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3384 | break |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3385 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
| 3386 | lt_cv_path_NM="$tmp_nm -p" |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3387 | break |
| 3388 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3389 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3390 | continue # so that we can try to find one that supports BSD flags |
| 3391 | fi |
| 3392 | fi |
| 3393 | done |
| 3394 | IFS="$ac_save_ifs" |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3395 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3396 | fi |
| 3397 | fi |
| 3398 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3399 | NM="$lt_cv_path_NM" |
| 3400 | echo "$as_me:$LINENO: result: $NM" >&5 |
| 3401 | echo "${ECHO_T}$NM" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3402 | |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 3403 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
| 3404 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 |
| 3405 | if test "${lt_cv_path_SED+set}" = set; then |
| 3406 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3407 | else |
| 3408 | # Loop through the user's path and test for sed and gsed. |
| 3409 | # Then use that list of sed's as ones to test for truncation. |
| 3410 | as_executable_p="test -f" |
| 3411 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3412 | for as_dir in $PATH |
| 3413 | do |
| 3414 | IFS=$as_save_IFS |
| 3415 | test -z "$as_dir" && as_dir=. |
| 3416 | for ac_prog in sed gsed; do |
| 3417 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3418 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 3419 | _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext" |
| 3420 | fi |
| 3421 | done |
| 3422 | done |
| 3423 | done |
| 3424 | |
| 3425 | # Create a temporary directory, and hook for its removal unless debugging. |
| 3426 | $debug || |
| 3427 | { |
| 3428 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 3429 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 3430 | } |
| 3431 | |
| 3432 | # Create a (secure) tmp directory for tmp files. |
| 3433 | : ${TMPDIR=/tmp} |
| 3434 | { |
| 3435 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` && |
| 3436 | test -n "$tmp" && test -d "$tmp" |
| 3437 | } || |
| 3438 | { |
| 3439 | tmp=$TMPDIR/sed$$-$RANDOM |
| 3440 | (umask 077 && mkdir $tmp) |
| 3441 | } || |
| 3442 | { |
| 3443 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 |
| 3444 | { (exit 1); exit 1; } |
| 3445 | } |
| 3446 | _max=0 |
| 3447 | _count=0 |
| 3448 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
| 3449 | # along with /bin/sed that truncates output. |
| 3450 | for _sed in $_sed_list /usr/xpg4/bin/sed; do |
| 3451 | test ! -f ${_sed} && break |
| 3452 | cat /dev/null > "$tmp/sed.in" |
| 3453 | _count=0 |
| 3454 | echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in" |
| 3455 | # Check for GNU sed and select it if it is found. |
| 3456 | if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then |
| 3457 | lt_cv_path_SED=${_sed} |
| 3458 | break |
| 3459 | fi |
| 3460 | while true; do |
| 3461 | cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp" |
| 3462 | mv "$tmp/sed.tmp" "$tmp/sed.in" |
| 3463 | cp "$tmp/sed.in" "$tmp/sed.nl" |
| 3464 | echo >>"$tmp/sed.nl" |
| 3465 | ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break |
| 3466 | cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break |
| 3467 | # 40000 chars as input seems more than enough |
| 3468 | test $_count -gt 10 && break |
| 3469 | _count=`expr $_count + 1` |
| 3470 | if test $_count -gt $_max; then |
| 3471 | _max=$_count |
| 3472 | lt_cv_path_SED=$_sed |
| 3473 | fi |
| 3474 | done |
| 3475 | done |
| 3476 | rm -rf "$tmp" |
| 3477 | |
| 3478 | fi |
| 3479 | |
| 3480 | if test "X$SED" != "X"; then |
| 3481 | lt_cv_path_SED=$SED |
| 3482 | else |
| 3483 | SED=$lt_cv_path_SED |
| 3484 | fi |
| 3485 | echo "$as_me:$LINENO: result: $SED" >&5 |
| 3486 | echo "${ECHO_T}$SED" >&6 |
| 3487 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3488 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 3489 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
| 3490 | LN_S=$as_ln_s |
| 3491 | if test "$LN_S" = "ln -s"; then |
| 3492 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3493 | echo "${ECHO_T}yes" >&6 |
| 3494 | else |
| 3495 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 3496 | echo "${ECHO_T}no, using $LN_S" >&6 |
| 3497 | fi |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3498 | |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 3499 | echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
| 3500 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3501 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
| 3502 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3503 | else |
| 3504 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 3505 | lt_cv_file_magic_test_file= |
| 3506 | lt_cv_deplibs_check_method='unknown' |
| 3507 | # Need to set the preceding variable on all platforms that support |
| 3508 | # interlibrary dependencies. |
| 3509 | # 'none' -- dependencies not supported. |
| 3510 | # `unknown' -- same as none, but documents that we really don't know. |
| 3511 | # 'pass_all' -- all dependencies passed with no checks. |
| 3512 | # 'test_compile' -- check by making test program. |
| 3513 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 3514 | # which responds to the $file_magic_cmd with a given egrep regex. |
| 3515 | # If you have `file' or equivalent on your system and you're not sure |
| 3516 | # whether `pass_all' will *always* work, you probably want this one. |
| 3517 | |
| 3518 | case $host_os in |
| 3519 | aix4* | aix5*) |
| 3520 | lt_cv_deplibs_check_method=pass_all |
| 3521 | ;; |
| 3522 | |
| 3523 | beos*) |
| 3524 | lt_cv_deplibs_check_method=pass_all |
| 3525 | ;; |
| 3526 | |
| 3527 | bsdi4*) |
| 3528 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 3529 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 3530 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 3531 | ;; |
| 3532 | |
| 3533 | cygwin* | mingw* | pw32*) |
| 3534 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 3535 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 3536 | ;; |
| 3537 | |
| 3538 | darwin* | rhapsody*) |
| 3539 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' |
| 3540 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 3541 | case "$host_os" in |
| 3542 | rhapsody* | darwin1.[012]) |
| 3543 | lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1` |
| 3544 | ;; |
| 3545 | *) # Darwin 1.3 on |
| 3546 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' |
| 3547 | ;; |
| 3548 | esac |
| 3549 | ;; |
| 3550 | |
| 3551 | freebsd*) |
| 3552 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 3553 | case $host_cpu in |
| 3554 | i*86 ) |
| 3555 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 3556 | # Let's accept both of them until this is cleared up. |
| 3557 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' |
| 3558 | lt_cv_file_magic_cmd=/usr/bin/file |
| 3559 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 3560 | ;; |
| 3561 | esac |
| 3562 | else |
| 3563 | lt_cv_deplibs_check_method=pass_all |
| 3564 | fi |
| 3565 | ;; |
| 3566 | |
| 3567 | gnu*) |
| 3568 | lt_cv_deplibs_check_method=pass_all |
| 3569 | ;; |
| 3570 | |
| 3571 | hpux10.20*|hpux11*) |
| 3572 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
| 3573 | lt_cv_file_magic_cmd=/usr/bin/file |
| 3574 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 3575 | ;; |
| 3576 | |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 3577 | irix5* | irix6* | nonstopux*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3578 | case $host_os in |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 3579 | irix5* | nonstopux*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3580 | # this will be overridden with pass_all, but let us keep it just in case |
| 3581 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" |
| 3582 | ;; |
| 3583 | *) |
| 3584 | case $LD in |
| 3585 | *-32|*"-32 ") libmagic=32-bit;; |
| 3586 | *-n32|*"-n32 ") libmagic=N32;; |
| 3587 | *-64|*"-64 ") libmagic=64-bit;; |
| 3588 | *) libmagic=never-match;; |
| 3589 | esac |
| 3590 | # this will be overridden with pass_all, but let us keep it just in case |
| 3591 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" |
| 3592 | ;; |
| 3593 | esac |
| 3594 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` |
| 3595 | lt_cv_deplibs_check_method=pass_all |
| 3596 | ;; |
| 3597 | |
| 3598 | # This must be Linux ELF. |
| 3599 | linux-gnu*) |
| 3600 | case $host_cpu in |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 3601 | alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | s390* | x86_64*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3602 | lt_cv_deplibs_check_method=pass_all ;; |
| 3603 | *) |
| 3604 | # glibc up to 2.1.1 does not perform some relocations on ARM |
| 3605 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; |
| 3606 | esac |
| 3607 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
| 3608 | ;; |
| 3609 | |
| 3610 | netbsd*) |
| 3611 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 3612 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' |
| 3613 | else |
| 3614 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' |
| 3615 | fi |
| 3616 | ;; |
| 3617 | |
| 3618 | newos6*) |
| 3619 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 3620 | lt_cv_file_magic_cmd=/usr/bin/file |
| 3621 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 3622 | ;; |
| 3623 | |
| 3624 | openbsd*) |
| 3625 | lt_cv_file_magic_cmd=/usr/bin/file |
| 3626 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 3627 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 3628 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' |
| 3629 | else |
| 3630 | lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' |
| 3631 | fi |
| 3632 | ;; |
| 3633 | |
| 3634 | osf3* | osf4* | osf5*) |
| 3635 | # this will be overridden with pass_all, but let us keep it just in case |
| 3636 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' |
| 3637 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 3638 | lt_cv_deplibs_check_method=pass_all |
| 3639 | ;; |
| 3640 | |
| 3641 | sco3.2v5*) |
| 3642 | lt_cv_deplibs_check_method=pass_all |
| 3643 | ;; |
| 3644 | |
| 3645 | solaris*) |
| 3646 | lt_cv_deplibs_check_method=pass_all |
| 3647 | lt_cv_file_magic_test_file=/lib/libc.so |
| 3648 | ;; |
| 3649 | |
| 3650 | sysv5uw[78]* | sysv4*uw2*) |
| 3651 | lt_cv_deplibs_check_method=pass_all |
| 3652 | ;; |
| 3653 | |
| 3654 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 3655 | case $host_vendor in |
| 3656 | motorola) |
| 3657 | 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]' |
| 3658 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 3659 | ;; |
| 3660 | ncr) |
| 3661 | lt_cv_deplibs_check_method=pass_all |
| 3662 | ;; |
| 3663 | sequent) |
| 3664 | lt_cv_file_magic_cmd='/bin/file' |
| 3665 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 3666 | ;; |
| 3667 | sni) |
| 3668 | lt_cv_file_magic_cmd='/bin/file' |
| 3669 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 3670 | lt_cv_file_magic_test_file=/lib/libc.so |
| 3671 | ;; |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 3672 | siemens) |
| 3673 | lt_cv_deplibs_check_method=pass_all |
| 3674 | ;; |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3675 | esac |
| 3676 | ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3677 | esac |
| 3678 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3679 | fi |
| 3680 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
| 3681 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 |
| 3682 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 3683 | deplibs_check_method=$lt_cv_deplibs_check_method |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3684 | |
| 3685 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3686 | |
| 3687 | |
| 3688 | |
| 3689 | |
| 3690 | |
| 3691 | |
| 3692 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
| 3693 | echo "$as_me:$LINENO: checking command to parse $NM output" >&5 |
| 3694 | echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6 |
| 3695 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 3696 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3697 | else |
| 3698 | |
| 3699 | # These are sane defaults that work on at least a few old systems. |
| 3700 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 3701 | |
| 3702 | # Character class describing NM global symbol codes. |
| 3703 | symcode='[BCDEGRST]' |
| 3704 | |
| 3705 | # Regexp to match symbols that can be accessed directly from C. |
| 3706 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 3707 | |
| 3708 | # Transform the above into a raw symbol and a C symbol. |
| 3709 | symxfrm='\1 \2\3 \3' |
| 3710 | |
| 3711 | # Transform an extracted symbol line into a proper C declaration |
| 3712 | lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'" |
| 3713 | |
| 3714 | # Transform an extracted symbol line into symbol name and symbol address |
| 3715 | 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'" |
| 3716 | |
| 3717 | # Define system-specific variables. |
| 3718 | case $host_os in |
| 3719 | aix*) |
| 3720 | symcode='[BCDT]' |
| 3721 | ;; |
| 3722 | cygwin* | mingw* | pw32*) |
| 3723 | symcode='[ABCDGISTW]' |
| 3724 | ;; |
| 3725 | hpux*) # Its linker distinguishes data from code symbols |
| 3726 | lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 3727 | 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'" |
| 3728 | ;; |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 3729 | irix* | nonstopux*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3730 | symcode='[BCDEGRST]' |
| 3731 | ;; |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 3732 | osf*) |
| 3733 | symcode='[BCDEGQRST]' |
| 3734 | ;; |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3735 | solaris* | sysv5*) |
| 3736 | symcode='[BDT]' |
| 3737 | ;; |
| 3738 | sysv4) |
| 3739 | symcode='[DFNSTU]' |
| 3740 | ;; |
| 3741 | esac |
| 3742 | |
| 3743 | # Handle CRLF in mingw tool chain |
| 3744 | opt_cr= |
| 3745 | case $host_os in |
| 3746 | mingw*) |
| 3747 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 3748 | ;; |
| 3749 | esac |
| 3750 | |
| 3751 | # If we're using GNU nm, then use its standard symbol codes. |
| 3752 | if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then |
| 3753 | symcode='[ABCDGISTW]' |
| 3754 | fi |
| 3755 | |
| 3756 | # Try without a prefix undercore, then with it. |
| 3757 | for ac_symprfx in "" "_"; do |
| 3758 | |
| 3759 | # Write the raw and C identifiers. |
| 3760 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" |
| 3761 | |
| 3762 | # Check to see that the pipe works correctly. |
| 3763 | pipe_works=no |
| 3764 | rm -f conftest* |
| 3765 | cat > conftest.$ac_ext <<EOF |
| 3766 | #ifdef __cplusplus |
| 3767 | extern "C" { |
| 3768 | #endif |
| 3769 | char nm_test_var; |
| 3770 | void nm_test_func(){} |
| 3771 | #ifdef __cplusplus |
| 3772 | } |
| 3773 | #endif |
| 3774 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 3775 | EOF |
| 3776 | |
| 3777 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3778 | (eval $ac_compile) 2>&5 |
| 3779 | ac_status=$? |
| 3780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3781 | (exit $ac_status); }; then |
| 3782 | # Now try to grab the symbols. |
| 3783 | nlist=conftest.nm |
| 3784 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 3785 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 3786 | ac_status=$? |
| 3787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3788 | (exit $ac_status); } && test -s "$nlist"; then |
| 3789 | # Try sorting and uniquifying the output. |
| 3790 | if sort "$nlist" | uniq > "$nlist"T; then |
| 3791 | mv -f "$nlist"T "$nlist" |
| 3792 | else |
| 3793 | rm -f "$nlist"T |
| 3794 | fi |
| 3795 | |
| 3796 | # Make sure that we snagged all the symbols we need. |
| 3797 | if egrep ' nm_test_var$' "$nlist" >/dev/null; then |
| 3798 | if egrep ' nm_test_func$' "$nlist" >/dev/null; then |
| 3799 | cat <<EOF > conftest.$ac_ext |
| 3800 | #ifdef __cplusplus |
| 3801 | extern "C" { |
| 3802 | #endif |
| 3803 | |
| 3804 | EOF |
| 3805 | # Now generate the symbol file. |
| 3806 | eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext' |
| 3807 | |
| 3808 | cat <<EOF >> conftest.$ac_ext |
| 3809 | #if defined (__STDC__) && __STDC__ |
| 3810 | # define lt_ptr void * |
| 3811 | #else |
| 3812 | # define lt_ptr char * |
| 3813 | # define const |
| 3814 | #endif |
| 3815 | |
| 3816 | /* The mapping between symbol names and symbols. */ |
| 3817 | const struct { |
| 3818 | const char *name; |
| 3819 | lt_ptr address; |
| 3820 | } |
| 3821 | lt_preloaded_symbols[] = |
| 3822 | { |
| 3823 | EOF |
| 3824 | sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext |
| 3825 | cat <<\EOF >> conftest.$ac_ext |
| 3826 | {0, (lt_ptr) 0} |
| 3827 | }; |
| 3828 | |
| 3829 | #ifdef __cplusplus |
| 3830 | } |
| 3831 | #endif |
| 3832 | EOF |
| 3833 | # Now try linking the two files. |
| 3834 | mv conftest.$ac_objext conftstm.$ac_objext |
| 3835 | save_LIBS="$LIBS" |
| 3836 | save_CFLAGS="$CFLAGS" |
| 3837 | LIBS="conftstm.$ac_objext" |
| 3838 | CFLAGS="$CFLAGS$no_builtin_flag" |
| 3839 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3840 | (eval $ac_link) 2>&5 |
| 3841 | ac_status=$? |
| 3842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 3843 | (exit $ac_status); } && test -s conftest$ac_exeext; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3844 | pipe_works=yes |
| 3845 | fi |
| 3846 | LIBS="$save_LIBS" |
| 3847 | CFLAGS="$save_CFLAGS" |
| 3848 | else |
| 3849 | echo "cannot find nm_test_func in $nlist" >&5 |
| 3850 | fi |
| 3851 | else |
| 3852 | echo "cannot find nm_test_var in $nlist" >&5 |
| 3853 | fi |
| 3854 | else |
| 3855 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 3856 | fi |
| 3857 | else |
| 3858 | echo "$progname: failed program was:" >&5 |
| 3859 | cat conftest.$ac_ext >&5 |
| 3860 | fi |
| 3861 | rm -f conftest* conftst* |
| 3862 | |
| 3863 | # Do not use the global_symbol_pipe unless it works. |
| 3864 | if test "$pipe_works" = yes; then |
| 3865 | break |
| 3866 | else |
| 3867 | lt_cv_sys_global_symbol_pipe= |
| 3868 | fi |
| 3869 | done |
| 3870 | |
| 3871 | fi |
| 3872 | |
| 3873 | global_symbol_pipe="$lt_cv_sys_global_symbol_pipe" |
| 3874 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 3875 | global_symbol_to_cdecl= |
| 3876 | global_symbol_to_c_name_address= |
| 3877 | else |
| 3878 | global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl" |
| 3879 | global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address" |
| 3880 | fi |
| 3881 | if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address"; |
| 3882 | then |
| 3883 | echo "$as_me:$LINENO: result: failed" >&5 |
| 3884 | echo "${ECHO_T}failed" >&6 |
| 3885 | else |
| 3886 | echo "$as_me:$LINENO: result: ok" >&5 |
| 3887 | echo "${ECHO_T}ok" >&6 |
| 3888 | fi |
| 3889 | |
| 3890 | |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 3891 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3892 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 3893 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 3894 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3895 | else |
| 3896 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 3897 | then ac_cv_prog_egrep='grep -E' |
| 3898 | else ac_cv_prog_egrep='egrep' |
| 3899 | fi |
| 3900 | fi |
| 3901 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 3902 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 3903 | EGREP=$ac_cv_prog_egrep |
| 3904 | |
| 3905 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3906 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3907 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 3908 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3909 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3910 | else |
| 3911 | cat >conftest.$ac_ext <<_ACEOF |
| 3912 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 3913 | /* confdefs.h. */ |
| 3914 | _ACEOF |
| 3915 | cat confdefs.h >>conftest.$ac_ext |
| 3916 | cat >>conftest.$ac_ext <<_ACEOF |
| 3917 | /* end confdefs.h. */ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3918 | #include <stdlib.h> |
| 3919 | #include <stdarg.h> |
| 3920 | #include <string.h> |
| 3921 | #include <float.h> |
| 3922 | |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 3923 | int |
| 3924 | main () |
| 3925 | { |
| 3926 | |
| 3927 | ; |
| 3928 | return 0; |
| 3929 | } |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3930 | _ACEOF |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 3931 | rm -f conftest.$ac_objext |
| 3932 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3933 | (eval $ac_compile) 2>&5 |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3934 | ac_status=$? |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 3936 | (exit $ac_status); } && |
| 3937 | { ac_try='test -s conftest.$ac_objext' |
| 3938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3939 | (eval $ac_try) 2>&5 |
| 3940 | ac_status=$? |
| 3941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3942 | (exit $ac_status); }; }; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3943 | ac_cv_header_stdc=yes |
| 3944 | else |
| 3945 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 3946 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3947 | |
| 3948 | ac_cv_header_stdc=no |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3949 | fi |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 3950 | rm -f conftest.$ac_objext conftest.$ac_ext |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3951 | |
| 3952 | if test $ac_cv_header_stdc = yes; then |
| 3953 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 3954 | cat >conftest.$ac_ext <<_ACEOF |
| 3955 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 3956 | /* confdefs.h. */ |
| 3957 | _ACEOF |
| 3958 | cat confdefs.h >>conftest.$ac_ext |
| 3959 | cat >>conftest.$ac_ext <<_ACEOF |
| 3960 | /* end confdefs.h. */ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3961 | #include <string.h> |
| 3962 | |
| 3963 | _ACEOF |
| 3964 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 3965 | $EGREP "memchr" >/dev/null 2>&1; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3966 | : |
| 3967 | else |
| 3968 | ac_cv_header_stdc=no |
| 3969 | fi |
| 3970 | rm -f conftest* |
| 3971 | |
| 3972 | fi |
| 3973 | |
| 3974 | if test $ac_cv_header_stdc = yes; then |
| 3975 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 3976 | cat >conftest.$ac_ext <<_ACEOF |
| 3977 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 3978 | /* confdefs.h. */ |
| 3979 | _ACEOF |
| 3980 | cat confdefs.h >>conftest.$ac_ext |
| 3981 | cat >>conftest.$ac_ext <<_ACEOF |
| 3982 | /* end confdefs.h. */ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3983 | #include <stdlib.h> |
| 3984 | |
| 3985 | _ACEOF |
| 3986 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 3987 | $EGREP "free" >/dev/null 2>&1; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3988 | : |
| 3989 | else |
| 3990 | ac_cv_header_stdc=no |
| 3991 | fi |
| 3992 | rm -f conftest* |
| 3993 | |
| 3994 | fi |
| 3995 | |
| 3996 | if test $ac_cv_header_stdc = yes; then |
| 3997 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 3998 | if test "$cross_compiling" = yes; then |
| 3999 | : |
| 4000 | else |
| 4001 | cat >conftest.$ac_ext <<_ACEOF |
| 4002 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 4003 | /* confdefs.h. */ |
| 4004 | _ACEOF |
| 4005 | cat confdefs.h >>conftest.$ac_ext |
| 4006 | cat >>conftest.$ac_ext <<_ACEOF |
| 4007 | /* end confdefs.h. */ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4008 | #include <ctype.h> |
| 4009 | #if ((' ' & 0x0FF) == 0x020) |
| 4010 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4011 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4012 | #else |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 4013 | # define ISLOWER(c) \ |
| 4014 | (('a' <= (c) && (c) <= 'i') \ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4015 | || ('j' <= (c) && (c) <= 'r') \ |
| 4016 | || ('s' <= (c) && (c) <= 'z')) |
| 4017 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4018 | #endif |
| 4019 | |
| 4020 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4021 | int |
| 4022 | main () |
| 4023 | { |
| 4024 | int i; |
| 4025 | for (i = 0; i < 256; i++) |
| 4026 | if (XOR (islower (i), ISLOWER (i)) |
| 4027 | || toupper (i) != TOUPPER (i)) |
| 4028 | exit(2); |
| 4029 | exit (0); |
| 4030 | } |
| 4031 | _ACEOF |
| 4032 | rm -f conftest$ac_exeext |
| 4033 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4034 | (eval $ac_link) 2>&5 |
| 4035 | ac_status=$? |
| 4036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4037 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4039 | (eval $ac_try) 2>&5 |
| 4040 | ac_status=$? |
| 4041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4042 | (exit $ac_status); }; }; then |
| 4043 | : |
| 4044 | else |
| 4045 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4046 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 4047 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4048 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4049 | ( exit $ac_status ) |
| 4050 | ac_cv_header_stdc=no |
| 4051 | fi |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 4052 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4053 | fi |
| 4054 | fi |
| 4055 | fi |
| 4056 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 4057 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 4058 | if test $ac_cv_header_stdc = yes; then |
| 4059 | |
| 4060 | cat >>confdefs.h <<\_ACEOF |
| 4061 | #define STDC_HEADERS 1 |
| 4062 | _ACEOF |
| 4063 | |
| 4064 | fi |
| 4065 | |
| 4066 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 4067 | |
| 4068 | |
| 4069 | |
| 4070 | |
| 4071 | |
| 4072 | |
| 4073 | |
| 4074 | |
| 4075 | |
| 4076 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4077 | inttypes.h stdint.h unistd.h |
| 4078 | do |
| 4079 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4080 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4081 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4082 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4083 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4084 | else |
| 4085 | cat >conftest.$ac_ext <<_ACEOF |
| 4086 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 4087 | /* confdefs.h. */ |
| 4088 | _ACEOF |
| 4089 | cat confdefs.h >>conftest.$ac_ext |
| 4090 | cat >>conftest.$ac_ext <<_ACEOF |
| 4091 | /* end confdefs.h. */ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4092 | $ac_includes_default |
| 4093 | |
| 4094 | #include <$ac_header> |
| 4095 | _ACEOF |
| 4096 | rm -f conftest.$ac_objext |
| 4097 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4098 | (eval $ac_compile) 2>&5 |
| 4099 | ac_status=$? |
| 4100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4101 | (exit $ac_status); } && |
| 4102 | { ac_try='test -s conftest.$ac_objext' |
| 4103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4104 | (eval $ac_try) 2>&5 |
| 4105 | ac_status=$? |
| 4106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4107 | (exit $ac_status); }; }; then |
| 4108 | eval "$as_ac_Header=yes" |
| 4109 | else |
| 4110 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 4111 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4112 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4113 | eval "$as_ac_Header=no" |
| 4114 | fi |
| 4115 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4116 | fi |
| 4117 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4118 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4119 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4120 | cat >>confdefs.h <<_ACEOF |
| 4121 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4122 | _ACEOF |
| 4123 | |
| 4124 | fi |
| 4125 | |
| 4126 | done |
| 4127 | |
| 4128 | |
| 4129 | |
| 4130 | for ac_header in dlfcn.h |
| 4131 | do |
| 4132 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4133 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4134 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4135 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4136 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4137 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4138 | fi |
| 4139 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4140 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4141 | else |
| 4142 | # Is the header compilable? |
| 4143 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 4144 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 4145 | cat >conftest.$ac_ext <<_ACEOF |
| 4146 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 4147 | /* confdefs.h. */ |
| 4148 | _ACEOF |
| 4149 | cat confdefs.h >>conftest.$ac_ext |
| 4150 | cat >>conftest.$ac_ext <<_ACEOF |
| 4151 | /* end confdefs.h. */ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4152 | $ac_includes_default |
| 4153 | #include <$ac_header> |
| 4154 | _ACEOF |
| 4155 | rm -f conftest.$ac_objext |
| 4156 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4157 | (eval $ac_compile) 2>&5 |
| 4158 | ac_status=$? |
| 4159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4160 | (exit $ac_status); } && |
| 4161 | { ac_try='test -s conftest.$ac_objext' |
| 4162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4163 | (eval $ac_try) 2>&5 |
| 4164 | ac_status=$? |
| 4165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4166 | (exit $ac_status); }; }; then |
| 4167 | ac_header_compiler=yes |
| 4168 | else |
| 4169 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 4170 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4171 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4172 | ac_header_compiler=no |
| 4173 | fi |
| 4174 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4175 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4176 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4177 | |
| 4178 | # Is the header present? |
| 4179 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 4180 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 4181 | cat >conftest.$ac_ext <<_ACEOF |
| 4182 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 4183 | /* confdefs.h. */ |
| 4184 | _ACEOF |
| 4185 | cat confdefs.h >>conftest.$ac_ext |
| 4186 | cat >>conftest.$ac_ext <<_ACEOF |
| 4187 | /* end confdefs.h. */ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4188 | #include <$ac_header> |
| 4189 | _ACEOF |
| 4190 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4191 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4192 | ac_status=$? |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 4193 | grep -v '^ *+' conftest.er1 >conftest.err |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4194 | rm -f conftest.er1 |
| 4195 | cat conftest.err >&5 |
| 4196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4197 | (exit $ac_status); } >/dev/null; then |
| 4198 | if test -s conftest.err; then |
| 4199 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4200 | else |
| 4201 | ac_cpp_err= |
| 4202 | fi |
| 4203 | else |
| 4204 | ac_cpp_err=yes |
| 4205 | fi |
| 4206 | if test -z "$ac_cpp_err"; then |
| 4207 | ac_header_preproc=yes |
| 4208 | else |
| 4209 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 4210 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4211 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4212 | ac_header_preproc=no |
| 4213 | fi |
| 4214 | rm -f conftest.err conftest.$ac_ext |
| 4215 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4216 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4217 | |
| 4218 | # So? What about this header? |
| 4219 | case $ac_header_compiler:$ac_header_preproc in |
| 4220 | yes:no ) |
| 4221 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4222 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4223 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 4224 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 4225 | ( |
| 4226 | cat <<\_ASBOX |
| 4227 | ## ------------------------------------ ## |
| 4228 | ## Report this to bug-autoconf@gnu.org. ## |
| 4229 | ## ------------------------------------ ## |
| 4230 | _ASBOX |
| 4231 | ) | |
| 4232 | sed "s/^/$as_me: WARNING: /" >&2 |
| 4233 | ;; |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4234 | no:yes ) |
| 4235 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 4236 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 4237 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 4238 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 4239 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 4240 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 4241 | ( |
| 4242 | cat <<\_ASBOX |
| 4243 | ## ------------------------------------ ## |
| 4244 | ## Report this to bug-autoconf@gnu.org. ## |
| 4245 | ## ------------------------------------ ## |
| 4246 | _ASBOX |
| 4247 | ) | |
| 4248 | sed "s/^/$as_me: WARNING: /" >&2 |
| 4249 | ;; |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4250 | esac |
| 4251 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4252 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4253 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4254 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4255 | else |
| 4256 | eval "$as_ac_Header=$ac_header_preproc" |
| 4257 | fi |
| 4258 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4259 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4260 | |
| 4261 | fi |
| 4262 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4263 | cat >>confdefs.h <<_ACEOF |
| 4264 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4265 | _ACEOF |
| 4266 | |
| 4267 | fi |
| 4268 | |
| 4269 | done |
| 4270 | |
| 4271 | |
| 4272 | |
| 4273 | |
| 4274 | |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 4275 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4276 | # Only perform the check for file, if the check method requires it |
| 4277 | case $deplibs_check_method in |
| 4278 | file_magic*) |
| 4279 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
| 4280 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
| 4281 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 |
| 4282 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 4283 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4284 | else |
| 4285 | case $MAGIC_CMD in |
| 4286 | /*) |
| 4287 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 4288 | ;; |
| 4289 | ?:/*) |
| 4290 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
| 4291 | ;; |
| 4292 | *) |
| 4293 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
| 4294 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4295 | ac_dummy="/usr/bin:$PATH" |
| 4296 | for ac_dir in $ac_dummy; do |
| 4297 | test -z "$ac_dir" && ac_dir=. |
| 4298 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 4299 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 4300 | if test -n "$file_magic_test_file"; then |
| 4301 | case $deplibs_check_method in |
| 4302 | "file_magic "*) |
| 4303 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
| 4304 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 4305 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 4306 | egrep "$file_magic_regex" > /dev/null; then |
| 4307 | : |
| 4308 | else |
| 4309 | cat <<EOF 1>&2 |
| 4310 | |
| 4311 | *** Warning: the command libtool uses to detect shared libraries, |
| 4312 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 4313 | *** The result is that libtool may fail to recognize shared libraries |
| 4314 | *** as such. This will affect the creation of libtool libraries that |
| 4315 | *** depend on shared libraries, but programs linked with such libtool |
| 4316 | *** libraries will work regardless of this problem. Nevertheless, you |
| 4317 | *** may want to report the problem to your system manager and/or to |
| 4318 | *** bug-libtool@gnu.org |
| 4319 | |
| 4320 | EOF |
| 4321 | fi ;; |
| 4322 | esac |
| 4323 | fi |
| 4324 | break |
| 4325 | fi |
| 4326 | done |
| 4327 | IFS="$ac_save_ifs" |
| 4328 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
| 4329 | ;; |
| 4330 | esac |
| 4331 | fi |
| 4332 | |
| 4333 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 4334 | if test -n "$MAGIC_CMD"; then |
| 4335 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 4336 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
| 4337 | else |
| 4338 | echo "$as_me:$LINENO: result: no" >&5 |
| 4339 | echo "${ECHO_T}no" >&6 |
| 4340 | fi |
| 4341 | |
| 4342 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 4343 | if test -n "$ac_tool_prefix"; then |
| 4344 | echo "$as_me:$LINENO: checking for file" >&5 |
| 4345 | echo $ECHO_N "checking for file... $ECHO_C" >&6 |
| 4346 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 4347 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4348 | else |
| 4349 | case $MAGIC_CMD in |
| 4350 | /*) |
| 4351 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 4352 | ;; |
| 4353 | ?:/*) |
| 4354 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
| 4355 | ;; |
| 4356 | *) |
| 4357 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
| 4358 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4359 | ac_dummy="/usr/bin:$PATH" |
| 4360 | for ac_dir in $ac_dummy; do |
| 4361 | test -z "$ac_dir" && ac_dir=. |
| 4362 | if test -f $ac_dir/file; then |
| 4363 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 4364 | if test -n "$file_magic_test_file"; then |
| 4365 | case $deplibs_check_method in |
| 4366 | "file_magic "*) |
| 4367 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
| 4368 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 4369 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 4370 | egrep "$file_magic_regex" > /dev/null; then |
| 4371 | : |
| 4372 | else |
| 4373 | cat <<EOF 1>&2 |
| 4374 | |
| 4375 | *** Warning: the command libtool uses to detect shared libraries, |
| 4376 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 4377 | *** The result is that libtool may fail to recognize shared libraries |
| 4378 | *** as such. This will affect the creation of libtool libraries that |
| 4379 | *** depend on shared libraries, but programs linked with such libtool |
| 4380 | *** libraries will work regardless of this problem. Nevertheless, you |
| 4381 | *** may want to report the problem to your system manager and/or to |
| 4382 | *** bug-libtool@gnu.org |
| 4383 | |
| 4384 | EOF |
| 4385 | fi ;; |
| 4386 | esac |
| 4387 | fi |
| 4388 | break |
| 4389 | fi |
| 4390 | done |
| 4391 | IFS="$ac_save_ifs" |
| 4392 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
| 4393 | ;; |
| 4394 | esac |
| 4395 | fi |
| 4396 | |
| 4397 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 4398 | if test -n "$MAGIC_CMD"; then |
| 4399 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 4400 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
| 4401 | else |
| 4402 | echo "$as_me:$LINENO: result: no" >&5 |
| 4403 | echo "${ECHO_T}no" >&6 |
| 4404 | fi |
| 4405 | |
| 4406 | else |
| 4407 | MAGIC_CMD=: |
| 4408 | fi |
| 4409 | fi |
| 4410 | |
| 4411 | fi |
| 4412 | ;; |
| 4413 | esac |
| 4414 | |
| 4415 | if test -n "$ac_tool_prefix"; then |
| 4416 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 4417 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 4418 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4419 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4420 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 4421 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4422 | else |
| 4423 | if test -n "$RANLIB"; then |
| 4424 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 4425 | else |
| 4426 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4427 | for as_dir in $PATH |
| 4428 | do |
| 4429 | IFS=$as_save_IFS |
| 4430 | test -z "$as_dir" && as_dir=. |
| 4431 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4432 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4433 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 4434 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4435 | break 2 |
| 4436 | fi |
| 4437 | done |
| 4438 | done |
| 4439 | |
| 4440 | fi |
| 4441 | fi |
| 4442 | RANLIB=$ac_cv_prog_RANLIB |
| 4443 | if test -n "$RANLIB"; then |
| 4444 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 4445 | echo "${ECHO_T}$RANLIB" >&6 |
| 4446 | else |
| 4447 | echo "$as_me:$LINENO: result: no" >&5 |
| 4448 | echo "${ECHO_T}no" >&6 |
| 4449 | fi |
| 4450 | |
| 4451 | fi |
| 4452 | if test -z "$ac_cv_prog_RANLIB"; then |
| 4453 | ac_ct_RANLIB=$RANLIB |
| 4454 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 4455 | set dummy ranlib; ac_word=$2 |
| 4456 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4457 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4458 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 4459 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4460 | else |
| 4461 | if test -n "$ac_ct_RANLIB"; then |
| 4462 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 4463 | else |
| 4464 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4465 | for as_dir in $PATH |
| 4466 | do |
| 4467 | IFS=$as_save_IFS |
| 4468 | test -z "$as_dir" && as_dir=. |
| 4469 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4470 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4471 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 4472 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4473 | break 2 |
| 4474 | fi |
| 4475 | done |
| 4476 | done |
| 4477 | |
| 4478 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 4479 | fi |
| 4480 | fi |
| 4481 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 4482 | if test -n "$ac_ct_RANLIB"; then |
| 4483 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 4484 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 4485 | else |
| 4486 | echo "$as_me:$LINENO: result: no" >&5 |
| 4487 | echo "${ECHO_T}no" >&6 |
| 4488 | fi |
| 4489 | |
| 4490 | RANLIB=$ac_ct_RANLIB |
| 4491 | else |
| 4492 | RANLIB="$ac_cv_prog_RANLIB" |
| 4493 | fi |
| 4494 | |
| 4495 | if test -n "$ac_tool_prefix"; then |
| 4496 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 4497 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 4498 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4499 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4500 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 4501 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4502 | else |
| 4503 | if test -n "$STRIP"; then |
| 4504 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 4505 | else |
| 4506 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4507 | for as_dir in $PATH |
| 4508 | do |
| 4509 | IFS=$as_save_IFS |
| 4510 | test -z "$as_dir" && as_dir=. |
| 4511 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4512 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4513 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 4514 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4515 | break 2 |
| 4516 | fi |
| 4517 | done |
| 4518 | done |
| 4519 | |
| 4520 | fi |
| 4521 | fi |
| 4522 | STRIP=$ac_cv_prog_STRIP |
| 4523 | if test -n "$STRIP"; then |
| 4524 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 4525 | echo "${ECHO_T}$STRIP" >&6 |
| 4526 | else |
| 4527 | echo "$as_me:$LINENO: result: no" >&5 |
| 4528 | echo "${ECHO_T}no" >&6 |
| 4529 | fi |
| 4530 | |
| 4531 | fi |
| 4532 | if test -z "$ac_cv_prog_STRIP"; then |
| 4533 | ac_ct_STRIP=$STRIP |
| 4534 | # Extract the first word of "strip", so it can be a program name with args. |
| 4535 | set dummy strip; ac_word=$2 |
| 4536 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4537 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4538 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 4539 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4540 | else |
| 4541 | if test -n "$ac_ct_STRIP"; then |
| 4542 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 4543 | else |
| 4544 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4545 | for as_dir in $PATH |
| 4546 | do |
| 4547 | IFS=$as_save_IFS |
| 4548 | test -z "$as_dir" && as_dir=. |
| 4549 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4550 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4551 | ac_cv_prog_ac_ct_STRIP="strip" |
| 4552 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4553 | break 2 |
| 4554 | fi |
| 4555 | done |
| 4556 | done |
| 4557 | |
| 4558 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
| 4559 | fi |
| 4560 | fi |
| 4561 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 4562 | if test -n "$ac_ct_STRIP"; then |
| 4563 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 4564 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
| 4565 | else |
| 4566 | echo "$as_me:$LINENO: result: no" >&5 |
| 4567 | echo "${ECHO_T}no" >&6 |
| 4568 | fi |
| 4569 | |
| 4570 | STRIP=$ac_ct_STRIP |
| 4571 | else |
| 4572 | STRIP="$ac_cv_prog_STRIP" |
| 4573 | fi |
| 4574 | |
| 4575 | |
| 4576 | enable_dlopen=no |
| 4577 | enable_win32_dll=no |
| 4578 | |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 4579 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
| 4580 | if test "${enable_libtool_lock+set}" = set; then |
| 4581 | enableval="$enable_libtool_lock" |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 4582 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4583 | fi; |
| 4584 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 4585 | |
| 4586 | # Some flags need to be propagated to the compiler or linker for good |
| 4587 | # libtool support. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4588 | case $host in |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 4589 | *-*-irix6*) |
| 4590 | # Find out which ABI we are using. |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 4591 | echo '#line 4591 "configure"' > conftest.$ac_ext |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4592 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4593 | (eval $ac_compile) 2>&5 |
| 4594 | ac_status=$? |
| 4595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4596 | (exit $ac_status); }; then |
| 4597 | case `/usr/bin/file conftest.$ac_objext` in |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 4598 | *32-bit*) |
| 4599 | LD="${LD-ld} -32" |
| 4600 | ;; |
| 4601 | *N32*) |
| 4602 | LD="${LD-ld} -n32" |
| 4603 | ;; |
| 4604 | *64-bit*) |
| 4605 | LD="${LD-ld} -64" |
| 4606 | ;; |
| 4607 | esac |
| 4608 | fi |
| 4609 | rm -rf conftest* |
| 4610 | ;; |
| 4611 | |
| 4612 | *-*-sco3.2v5*) |
| 4613 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 4614 | SAVE_CFLAGS="$CFLAGS" |
| 4615 | CFLAGS="$CFLAGS -belf" |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4616 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
| 4617 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 |
| 4618 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
| 4619 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 4620 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4621 | |
| 4622 | |
| 4623 | ac_ext=c |
| 4624 | ac_cpp='$CPP $CPPFLAGS' |
| 4625 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4626 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4627 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4628 | |
| 4629 | cat >conftest.$ac_ext <<_ACEOF |
| 4630 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 4631 | /* confdefs.h. */ |
| 4632 | _ACEOF |
| 4633 | cat confdefs.h >>conftest.$ac_ext |
| 4634 | cat >>conftest.$ac_ext <<_ACEOF |
| 4635 | /* end confdefs.h. */ |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 4636 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4637 | int |
| 4638 | main () |
| 4639 | { |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 4640 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4641 | ; |
| 4642 | return 0; |
| 4643 | } |
| 4644 | _ACEOF |
| 4645 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4646 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4647 | (eval $ac_link) 2>&5 |
| 4648 | ac_status=$? |
| 4649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4650 | (exit $ac_status); } && |
| 4651 | { ac_try='test -s conftest$ac_exeext' |
| 4652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4653 | (eval $ac_try) 2>&5 |
| 4654 | ac_status=$? |
| 4655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4656 | (exit $ac_status); }; }; then |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 4657 | lt_cv_cc_needs_belf=yes |
| 4658 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4659 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 4660 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4661 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4662 | lt_cv_cc_needs_belf=no |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 4663 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4664 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4665 | ac_ext=c |
| 4666 | ac_cpp='$CPP $CPPFLAGS' |
| 4667 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4668 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4669 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 4670 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4671 | fi |
| 4672 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
| 4673 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 4674 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 4675 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 4676 | CFLAGS="$SAVE_CFLAGS" |
| 4677 | fi |
| 4678 | ;; |
| 4679 | |
| 4680 | |
| 4681 | esac |
| 4682 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4683 | # Sed substitution that helps us do robust quoting. It backslashifies |
| 4684 | # metacharacters that are still active within double-quoted strings. |
| 4685 | Xsed='sed -e s/^X//' |
| 4686 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 4687 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4688 | # Same as above, but do not quote variable references. |
| 4689 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
| 4690 | |
| 4691 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 4692 | # double_quote_subst'ed string. |
| 4693 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 4694 | |
| 4695 | # Constants: |
| 4696 | rm="rm -f" |
| 4697 | |
| 4698 | # Global variables: |
| 4699 | default_ofile=libtool |
| 4700 | can_build_shared=yes |
| 4701 | |
| 4702 | # All known linkers require a `.a' archive for static linking (except M$VC, |
| 4703 | # which needs '.lib'). |
| 4704 | libext=a |
| 4705 | ltmain="$ac_aux_dir/ltmain.sh" |
| 4706 | ofile="$default_ofile" |
| 4707 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 4708 | need_locks="$enable_libtool_lock" |
| 4709 | |
| 4710 | old_CC="$CC" |
| 4711 | old_CFLAGS="$CFLAGS" |
| 4712 | |
| 4713 | # Set sane defaults for various variables |
| 4714 | test -z "$AR" && AR=ar |
| 4715 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 4716 | test -z "$AS" && AS=as |
| 4717 | test -z "$CC" && CC=cc |
| 4718 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 4719 | test -z "$LD" && LD=ld |
| 4720 | test -z "$LN_S" && LN_S="ln -s" |
| 4721 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 4722 | test -z "$NM" && NM=nm |
| 4723 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 4724 | test -z "$RANLIB" && RANLIB=: |
| 4725 | test -z "$STRIP" && STRIP=: |
| 4726 | test -z "$ac_objext" && ac_objext=o |
| 4727 | |
| 4728 | if test x"$host" != x"$build"; then |
| 4729 | ac_tool_prefix=${host_alias}- |
| 4730 | else |
| 4731 | ac_tool_prefix= |
| 4732 | fi |
| 4733 | |
| 4734 | # Transform linux* to *-*-linux-gnu*, to support old configure scripts. |
| 4735 | case $host_os in |
| 4736 | linux-gnu*) ;; |
| 4737 | linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` |
| 4738 | esac |
| 4739 | |
| 4740 | case $host_os in |
| 4741 | aix3*) |
| 4742 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 4743 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 4744 | # vanish in a puff of smoke. |
| 4745 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 4746 | COLLECT_NAMES= |
| 4747 | export COLLECT_NAMES |
| 4748 | fi |
| 4749 | ;; |
| 4750 | esac |
| 4751 | |
| 4752 | # Determine commands to create old-style static archives. |
| 4753 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
| 4754 | old_postinstall_cmds='chmod 644 $oldlib' |
| 4755 | old_postuninstall_cmds= |
| 4756 | |
| 4757 | if test -n "$RANLIB"; then |
| 4758 | case $host_os in |
| 4759 | openbsd*) |
| 4760 | old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 4761 | ;; |
| 4762 | *) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4763 | old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 4764 | ;; |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4765 | esac |
| 4766 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
| 4767 | fi |
| 4768 | |
| 4769 | # Allow CC to be a program name with arguments. |
| 4770 | set dummy $CC |
| 4771 | compiler="$2" |
| 4772 | |
| 4773 | echo "$as_me:$LINENO: checking for objdir" >&5 |
| 4774 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
| 4775 | rm -f .libs 2>/dev/null |
| 4776 | mkdir .libs 2>/dev/null |
| 4777 | if test -d .libs; then |
| 4778 | objdir=.libs |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 4779 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4780 | # MS-DOS does not allow filenames that begin with a dot. |
| 4781 | objdir=_libs |
| 4782 | fi |
| 4783 | rmdir .libs 2>/dev/null |
| 4784 | echo "$as_me:$LINENO: result: $objdir" >&5 |
| 4785 | echo "${ECHO_T}$objdir" >&6 |
| 4786 | |
| 4787 | |
| 4788 | |
| 4789 | # Check whether --with-pic or --without-pic was given. |
| 4790 | if test "${with_pic+set}" = set; then |
| 4791 | withval="$with_pic" |
| 4792 | pic_mode="$withval" |
| 4793 | else |
| 4794 | pic_mode=default |
| 4795 | fi; |
| 4796 | test -z "$pic_mode" && pic_mode=default |
| 4797 | |
| 4798 | # We assume here that the value for lt_cv_prog_cc_pic will not be cached |
| 4799 | # in isolation, and that seeing it set (from the cache) indicates that |
| 4800 | # the associated values are set (in the cache) correctly too. |
| 4801 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 4802 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
| 4803 | if test "${lt_cv_prog_cc_pic+set}" = set; then |
| 4804 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4805 | else |
| 4806 | lt_cv_prog_cc_pic= |
| 4807 | lt_cv_prog_cc_shlib= |
| 4808 | lt_cv_prog_cc_wl= |
| 4809 | lt_cv_prog_cc_static= |
| 4810 | lt_cv_prog_cc_no_builtin= |
| 4811 | lt_cv_prog_cc_can_build_shared=$can_build_shared |
| 4812 | |
| 4813 | if test "$GCC" = yes; then |
| 4814 | lt_cv_prog_cc_wl='-Wl,' |
| 4815 | lt_cv_prog_cc_static='-static' |
| 4816 | |
| 4817 | case $host_os in |
| 4818 | aix*) |
| 4819 | # Below there is a dirty hack to force normal static linking with -ldl |
| 4820 | # The problem is because libdl dynamically linked with both libc and |
| 4821 | # libC (AIX C++ library), which obviously doesn't included in libraries |
| 4822 | # list by gcc. This cause undefined symbols with -static flags. |
| 4823 | # This hack allows C programs to be linked with "-static -ldl", but |
| 4824 | # not sure about C++ programs. |
| 4825 | lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC" |
| 4826 | ;; |
| 4827 | amigaos*) |
| 4828 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 4829 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 4830 | # like `-m68040'. |
| 4831 | lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4' |
| 4832 | ;; |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 4833 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4834 | # PIC is the default for these OSes. |
| 4835 | ;; |
| 4836 | darwin* | rhapsody*) |
| 4837 | # PIC is the default on this platform |
| 4838 | # Common symbols not allowed in MH_DYLIB files |
| 4839 | lt_cv_prog_cc_pic='-fno-common' |
| 4840 | ;; |
| 4841 | cygwin* | mingw* | pw32* | os2*) |
| 4842 | # This hack is so that the source file can tell whether it is being |
| 4843 | # built for inclusion in a dll (and should export symbols for example). |
| 4844 | lt_cv_prog_cc_pic='-DDLL_EXPORT' |
| 4845 | ;; |
| 4846 | sysv4*MP*) |
| 4847 | if test -d /usr/nec; then |
| 4848 | lt_cv_prog_cc_pic=-Kconform_pic |
| 4849 | fi |
| 4850 | ;; |
| 4851 | *) |
| 4852 | lt_cv_prog_cc_pic='-fPIC' |
| 4853 | ;; |
| 4854 | esac |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 4855 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4856 | # PORTME Check for PIC flags for the system compiler. |
| 4857 | case $host_os in |
| 4858 | aix3* | aix4* | aix5*) |
| 4859 | lt_cv_prog_cc_wl='-Wl,' |
| 4860 | # All AIX code is PIC. |
| 4861 | if test "$host_cpu" = ia64; then |
| 4862 | # AIX 5 now supports IA64 processor |
| 4863 | lt_cv_prog_cc_static='-Bstatic' |
| 4864 | else |
| 4865 | lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp' |
| 4866 | fi |
| 4867 | ;; |
| 4868 | |
| 4869 | hpux9* | hpux10* | hpux11*) |
| 4870 | # Is there a better lt_cv_prog_cc_static that works with the bundled CC? |
| 4871 | lt_cv_prog_cc_wl='-Wl,' |
| 4872 | lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive" |
| 4873 | lt_cv_prog_cc_pic='+Z' |
| 4874 | ;; |
| 4875 | |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 4876 | irix5* | irix6* | nonstopux*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4877 | lt_cv_prog_cc_wl='-Wl,' |
| 4878 | lt_cv_prog_cc_static='-non_shared' |
| 4879 | # PIC (with -KPIC) is the default. |
| 4880 | ;; |
| 4881 | |
| 4882 | cygwin* | mingw* | pw32* | os2*) |
| 4883 | # This hack is so that the source file can tell whether it is being |
| 4884 | # built for inclusion in a dll (and should export symbols for example). |
| 4885 | lt_cv_prog_cc_pic='-DDLL_EXPORT' |
| 4886 | ;; |
| 4887 | |
| 4888 | newsos6) |
| 4889 | lt_cv_prog_cc_pic='-KPIC' |
| 4890 | lt_cv_prog_cc_static='-Bstatic' |
| 4891 | ;; |
| 4892 | |
| 4893 | osf3* | osf4* | osf5*) |
| 4894 | # All OSF/1 code is PIC. |
| 4895 | lt_cv_prog_cc_wl='-Wl,' |
| 4896 | lt_cv_prog_cc_static='-non_shared' |
| 4897 | ;; |
| 4898 | |
| 4899 | sco3.2v5*) |
| 4900 | lt_cv_prog_cc_pic='-Kpic' |
| 4901 | lt_cv_prog_cc_static='-dn' |
| 4902 | lt_cv_prog_cc_shlib='-belf' |
| 4903 | ;; |
| 4904 | |
| 4905 | solaris*) |
| 4906 | lt_cv_prog_cc_pic='-KPIC' |
| 4907 | lt_cv_prog_cc_static='-Bstatic' |
| 4908 | lt_cv_prog_cc_wl='-Wl,' |
| 4909 | ;; |
| 4910 | |
| 4911 | sunos4*) |
| 4912 | lt_cv_prog_cc_pic='-PIC' |
| 4913 | lt_cv_prog_cc_static='-Bstatic' |
| 4914 | lt_cv_prog_cc_wl='-Qoption ld ' |
| 4915 | ;; |
| 4916 | |
| 4917 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 4918 | lt_cv_prog_cc_pic='-KPIC' |
| 4919 | lt_cv_prog_cc_static='-Bstatic' |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 4920 | lt_cv_prog_cc_wl='-Wl,' |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4921 | ;; |
| 4922 | |
| 4923 | uts4*) |
| 4924 | lt_cv_prog_cc_pic='-pic' |
| 4925 | lt_cv_prog_cc_static='-Bstatic' |
| 4926 | ;; |
| 4927 | |
| 4928 | sysv4*MP*) |
| 4929 | if test -d /usr/nec ;then |
| 4930 | lt_cv_prog_cc_pic='-Kconform_pic' |
| 4931 | lt_cv_prog_cc_static='-Bstatic' |
| 4932 | fi |
| 4933 | ;; |
| 4934 | |
| 4935 | *) |
| 4936 | lt_cv_prog_cc_can_build_shared=no |
| 4937 | ;; |
| 4938 | esac |
| 4939 | fi |
| 4940 | |
| 4941 | fi |
| 4942 | |
| 4943 | if test -z "$lt_cv_prog_cc_pic"; then |
| 4944 | echo "$as_me:$LINENO: result: none" >&5 |
| 4945 | echo "${ECHO_T}none" >&6 |
| 4946 | else |
| 4947 | echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5 |
| 4948 | echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6 |
| 4949 | |
| 4950 | # Check to make sure the pic_flag actually works. |
| 4951 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5 |
| 4952 | echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6 |
| 4953 | if test "${lt_cv_prog_cc_pic_works+set}" = set; then |
| 4954 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4955 | else |
| 4956 | save_CFLAGS="$CFLAGS" |
| 4957 | CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC" |
| 4958 | cat >conftest.$ac_ext <<_ACEOF |
| 4959 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 4960 | /* confdefs.h. */ |
| 4961 | _ACEOF |
| 4962 | cat confdefs.h >>conftest.$ac_ext |
| 4963 | cat >>conftest.$ac_ext <<_ACEOF |
| 4964 | /* end confdefs.h. */ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4965 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4966 | int |
| 4967 | main () |
| 4968 | { |
| 4969 | |
| 4970 | ; |
| 4971 | return 0; |
| 4972 | } |
| 4973 | _ACEOF |
| 4974 | rm -f conftest.$ac_objext |
| 4975 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4976 | (eval $ac_compile) 2>&5 |
| 4977 | ac_status=$? |
| 4978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4979 | (exit $ac_status); } && |
| 4980 | { ac_try='test -s conftest.$ac_objext' |
| 4981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4982 | (eval $ac_try) 2>&5 |
| 4983 | ac_status=$? |
| 4984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4985 | (exit $ac_status); }; }; then |
| 4986 | case $host_os in |
| 4987 | hpux9* | hpux10* | hpux11*) |
| 4988 | # On HP-UX, both CC and GCC only warn that PIC is supported... then |
| 4989 | # they create non-PIC objects. So, if there were any warnings, we |
| 4990 | # assume that PIC is not supported. |
| 4991 | if test -s conftest.err; then |
| 4992 | lt_cv_prog_cc_pic_works=no |
| 4993 | else |
| 4994 | lt_cv_prog_cc_pic_works=yes |
| 4995 | fi |
| 4996 | ;; |
| 4997 | *) |
| 4998 | lt_cv_prog_cc_pic_works=yes |
| 4999 | ;; |
| 5000 | esac |
| 5001 | |
| 5002 | else |
| 5003 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 5004 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5005 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 5006 | lt_cv_prog_cc_pic_works=no |
| 5007 | |
| 5008 | fi |
| 5009 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5010 | CFLAGS="$save_CFLAGS" |
| 5011 | |
| 5012 | fi |
| 5013 | |
| 5014 | |
| 5015 | if test "X$lt_cv_prog_cc_pic_works" = Xno; then |
| 5016 | lt_cv_prog_cc_pic= |
| 5017 | lt_cv_prog_cc_can_build_shared=no |
| 5018 | else |
| 5019 | lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic" |
| 5020 | fi |
| 5021 | |
| 5022 | echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5 |
| 5023 | echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6 |
| 5024 | fi |
| 5025 | |
| 5026 | # Check for any special shared library compilation flags. |
| 5027 | if test -n "$lt_cv_prog_cc_shlib"; then |
| 5028 | { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5 |
| 5029 | echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;} |
| 5030 | if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then : |
| 5031 | else |
| 5032 | { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 |
| 5033 | echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} |
| 5034 | lt_cv_prog_cc_can_build_shared=no |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 5035 | fi |
| 5036 | fi |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 5037 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 5038 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5 |
| 5039 | echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6 |
| 5040 | if test "${lt_cv_prog_cc_static_works+set}" = set; then |
| 5041 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 5042 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 5043 | lt_cv_prog_cc_static_works=no |
| 5044 | save_LDFLAGS="$LDFLAGS" |
| 5045 | LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static" |
| 5046 | cat >conftest.$ac_ext <<_ACEOF |
| 5047 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 5048 | /* confdefs.h. */ |
| 5049 | _ACEOF |
| 5050 | cat confdefs.h >>conftest.$ac_ext |
| 5051 | cat >>conftest.$ac_ext <<_ACEOF |
| 5052 | /* end confdefs.h. */ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 5053 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 5054 | int |
| 5055 | main () |
| 5056 | { |
| 5057 | |
| 5058 | ; |
| 5059 | return 0; |
| 5060 | } |
| 5061 | _ACEOF |
| 5062 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5063 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5064 | (eval $ac_link) 2>&5 |
| 5065 | ac_status=$? |
| 5066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5067 | (exit $ac_status); } && |
| 5068 | { ac_try='test -s conftest$ac_exeext' |
| 5069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5070 | (eval $ac_try) 2>&5 |
| 5071 | ac_status=$? |
| 5072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5073 | (exit $ac_status); }; }; then |
| 5074 | lt_cv_prog_cc_static_works=yes |
| 5075 | else |
| 5076 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 5077 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5078 | |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 5079 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 5080 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5081 | LDFLAGS="$save_LDFLAGS" |
| 5082 | |
| 5083 | fi |
| 5084 | |
| 5085 | |
| 5086 | # Belt *and* braces to stop my trousers falling down: |
| 5087 | test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static= |
| 5088 | echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5 |
| 5089 | echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6 |
| 5090 | |
| 5091 | pic_flag="$lt_cv_prog_cc_pic" |
| 5092 | special_shlib_compile_flags="$lt_cv_prog_cc_shlib" |
| 5093 | wl="$lt_cv_prog_cc_wl" |
| 5094 | link_static_flag="$lt_cv_prog_cc_static" |
| 5095 | no_builtin_flag="$lt_cv_prog_cc_no_builtin" |
| 5096 | can_build_shared="$lt_cv_prog_cc_can_build_shared" |
| 5097 | |
| 5098 | |
| 5099 | # Check to see if options -o and -c are simultaneously supported by compiler |
| 5100 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 5101 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
| 5102 | if test "${lt_cv_compiler_c_o+set}" = set; then |
| 5103 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5104 | else |
| 5105 | |
| 5106 | $rm -r conftest 2>/dev/null |
| 5107 | mkdir conftest |
| 5108 | cd conftest |
| 5109 | echo "int some_variable = 0;" > conftest.$ac_ext |
| 5110 | mkdir out |
| 5111 | # According to Tom Tromey, Ian Lance Taylor reported there are C compilers |
| 5112 | # that will create temporary files in the current directory regardless of |
| 5113 | # the output directory. Thus, making CWD read-only will cause this test |
| 5114 | # to fail, enabling locking or at least warning the user not to do parallel |
| 5115 | # builds. |
| 5116 | chmod -w . |
| 5117 | save_CFLAGS="$CFLAGS" |
| 5118 | CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" |
| 5119 | compiler_c_o=no |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 5120 | if { (eval echo configure:5120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 5121 | # The compiler can only warn and ignore the option if not recognized |
| 5122 | # So say no if there are warnings |
| 5123 | if test -s out/conftest.err; then |
| 5124 | lt_cv_compiler_c_o=no |
| 5125 | else |
| 5126 | lt_cv_compiler_c_o=yes |
| 5127 | fi |
| 5128 | else |
| 5129 | # Append any errors to the config.log. |
| 5130 | cat out/conftest.err 1>&5 |
| 5131 | lt_cv_compiler_c_o=no |
| 5132 | fi |
| 5133 | CFLAGS="$save_CFLAGS" |
| 5134 | chmod u+w . |
| 5135 | $rm conftest* out/* |
| 5136 | rmdir out |
| 5137 | cd .. |
| 5138 | rmdir conftest |
| 5139 | $rm -r conftest 2>/dev/null |
| 5140 | |
| 5141 | fi |
| 5142 | |
| 5143 | compiler_c_o=$lt_cv_compiler_c_o |
| 5144 | echo "$as_me:$LINENO: result: $compiler_c_o" >&5 |
| 5145 | echo "${ECHO_T}$compiler_c_o" >&6 |
| 5146 | |
| 5147 | if test x"$compiler_c_o" = x"yes"; then |
| 5148 | # Check to see if we can write to a .lo |
| 5149 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5 |
| 5150 | echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6 |
| 5151 | if test "${lt_cv_compiler_o_lo+set}" = set; then |
| 5152 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5153 | else |
| 5154 | |
| 5155 | lt_cv_compiler_o_lo=no |
| 5156 | save_CFLAGS="$CFLAGS" |
| 5157 | CFLAGS="$CFLAGS -c -o conftest.lo" |
| 5158 | save_objext="$ac_objext" |
| 5159 | ac_objext=lo |
| 5160 | cat >conftest.$ac_ext <<_ACEOF |
| 5161 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 5162 | /* confdefs.h. */ |
| 5163 | _ACEOF |
| 5164 | cat confdefs.h >>conftest.$ac_ext |
| 5165 | cat >>conftest.$ac_ext <<_ACEOF |
| 5166 | /* end confdefs.h. */ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 5167 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 5168 | int |
| 5169 | main () |
| 5170 | { |
| 5171 | int some_variable = 0; |
| 5172 | ; |
| 5173 | return 0; |
| 5174 | } |
| 5175 | _ACEOF |
| 5176 | rm -f conftest.$ac_objext |
| 5177 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5178 | (eval $ac_compile) 2>&5 |
| 5179 | ac_status=$? |
| 5180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5181 | (exit $ac_status); } && |
| 5182 | { ac_try='test -s conftest.$ac_objext' |
| 5183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5184 | (eval $ac_try) 2>&5 |
| 5185 | ac_status=$? |
| 5186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5187 | (exit $ac_status); }; }; then |
| 5188 | # The compiler can only warn and ignore the option if not recognized |
| 5189 | # So say no if there are warnings |
| 5190 | if test -s conftest.err; then |
| 5191 | lt_cv_compiler_o_lo=no |
| 5192 | else |
| 5193 | lt_cv_compiler_o_lo=yes |
| 5194 | fi |
| 5195 | |
| 5196 | else |
| 5197 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 5198 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5199 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 5200 | fi |
| 5201 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5202 | ac_objext="$save_objext" |
| 5203 | CFLAGS="$save_CFLAGS" |
| 5204 | |
| 5205 | fi |
| 5206 | |
| 5207 | compiler_o_lo=$lt_cv_compiler_o_lo |
| 5208 | echo "$as_me:$LINENO: result: $compiler_o_lo" >&5 |
| 5209 | echo "${ECHO_T}$compiler_o_lo" >&6 |
| 5210 | else |
| 5211 | compiler_o_lo=no |
| 5212 | fi |
| 5213 | |
| 5214 | # Check to see if we can do hard links to lock some files if needed |
| 5215 | hard_links="nottested" |
| 5216 | if test "$compiler_c_o" = no && test "$need_locks" != no; then |
| 5217 | # do not overwrite the value of need_locks provided by the user |
| 5218 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 5219 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 5220 | hard_links=yes |
| 5221 | $rm conftest* |
| 5222 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 5223 | touch conftest.a |
| 5224 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 5225 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 5226 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 5227 | echo "${ECHO_T}$hard_links" >&6 |
| 5228 | if test "$hard_links" = no; then |
| 5229 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 5230 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 5231 | need_locks=warn |
| 5232 | fi |
| 5233 | else |
| 5234 | need_locks=no |
| 5235 | fi |
| 5236 | |
| 5237 | if test "$GCC" = yes; then |
| 5238 | # Check to see if options -fno-rtti -fno-exceptions are supported by compiler |
| 5239 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 5240 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
| 5241 | echo "int some_variable = 0;" > conftest.$ac_ext |
| 5242 | save_CFLAGS="$CFLAGS" |
| 5243 | CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" |
| 5244 | compiler_rtti_exceptions=no |
| 5245 | cat >conftest.$ac_ext <<_ACEOF |
| 5246 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 5247 | /* confdefs.h. */ |
| 5248 | _ACEOF |
| 5249 | cat confdefs.h >>conftest.$ac_ext |
| 5250 | cat >>conftest.$ac_ext <<_ACEOF |
| 5251 | /* end confdefs.h. */ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 5252 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 5253 | int |
| 5254 | main () |
| 5255 | { |
| 5256 | int some_variable = 0; |
| 5257 | ; |
| 5258 | return 0; |
| 5259 | } |
| 5260 | _ACEOF |
| 5261 | rm -f conftest.$ac_objext |
| 5262 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5263 | (eval $ac_compile) 2>&5 |
| 5264 | ac_status=$? |
| 5265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5266 | (exit $ac_status); } && |
| 5267 | { ac_try='test -s conftest.$ac_objext' |
| 5268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5269 | (eval $ac_try) 2>&5 |
| 5270 | ac_status=$? |
| 5271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5272 | (exit $ac_status); }; }; then |
| 5273 | # The compiler can only warn and ignore the option if not recognized |
| 5274 | # So say no if there are warnings |
| 5275 | if test -s conftest.err; then |
| 5276 | compiler_rtti_exceptions=no |
| 5277 | else |
| 5278 | compiler_rtti_exceptions=yes |
| 5279 | fi |
| 5280 | |
| 5281 | else |
| 5282 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 5283 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5284 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 5285 | fi |
| 5286 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5287 | CFLAGS="$save_CFLAGS" |
| 5288 | echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5 |
| 5289 | echo "${ECHO_T}$compiler_rtti_exceptions" >&6 |
| 5290 | |
| 5291 | if test "$compiler_rtti_exceptions" = "yes"; then |
| 5292 | no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions' |
| 5293 | else |
| 5294 | no_builtin_flag=' -fno-builtin' |
| 5295 | fi |
| 5296 | fi |
| 5297 | |
| 5298 | # See if the linker supports building shared libraries. |
| 5299 | echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5 |
| 5300 | echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 5301 | |
| 5302 | allow_undefined_flag= |
| 5303 | no_undefined_flag= |
| 5304 | need_lib_prefix=unknown |
| 5305 | need_version=unknown |
| 5306 | # when you set need_version to no, make sure it does not cause -set_version |
| 5307 | # flags to be left without arguments |
| 5308 | archive_cmds= |
| 5309 | archive_expsym_cmds= |
| 5310 | old_archive_from_new_cmds= |
| 5311 | old_archive_from_expsyms_cmds= |
| 5312 | export_dynamic_flag_spec= |
| 5313 | whole_archive_flag_spec= |
| 5314 | thread_safe_flag_spec= |
| 5315 | hardcode_into_libs=no |
| 5316 | hardcode_libdir_flag_spec= |
| 5317 | hardcode_libdir_separator= |
| 5318 | hardcode_direct=no |
| 5319 | hardcode_minus_L=no |
| 5320 | hardcode_shlibpath_var=unsupported |
| 5321 | runpath_var= |
| 5322 | link_all_deplibs=unknown |
| 5323 | always_export_symbols=no |
| 5324 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 5325 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 5326 | # included in the symbol list |
| 5327 | include_expsyms= |
| 5328 | # exclude_expsyms can be an egrep regular expression of symbols to exclude |
| 5329 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 5330 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 5331 | # as well as any symbol that contains `d'. |
| 5332 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
| 5333 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 5334 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 5335 | # the symbol is explicitly referenced. Since portable code cannot |
| 5336 | # rely on this symbol name, it's probably fine to never include it in |
| 5337 | # preloaded symbol tables. |
| 5338 | extract_expsyms_cmds= |
| 5339 | |
| 5340 | case $host_os in |
| 5341 | cygwin* | mingw* | pw32*) |
| 5342 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 5343 | # When not using gcc, we currently assume that we are using |
| 5344 | # Microsoft Visual C++. |
| 5345 | if test "$GCC" != yes; then |
| 5346 | with_gnu_ld=no |
| 5347 | fi |
| 5348 | ;; |
| 5349 | openbsd*) |
| 5350 | with_gnu_ld=no |
| 5351 | ;; |
| 5352 | esac |
| 5353 | |
| 5354 | ld_shlibs=yes |
| 5355 | if test "$with_gnu_ld" = yes; then |
| 5356 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 5357 | wlarc='${wl}' |
| 5358 | |
| 5359 | # See if GNU ld supports shared libraries. |
| 5360 | case $host_os in |
| 5361 | aix3* | aix4* | aix5*) |
| 5362 | # On AIX, the GNU linker is very broken |
| 5363 | # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available. |
| 5364 | ld_shlibs=no |
| 5365 | cat <<EOF 1>&2 |
| 5366 | |
| 5367 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 5368 | *** to be unable to reliably create shared libraries on AIX. |
| 5369 | *** Therefore, libtool is disabling shared libraries support. If you |
| 5370 | *** really care for shared libraries, you may want to modify your PATH |
| 5371 | *** so that a non-GNU linker is found, and then restart. |
| 5372 | |
| 5373 | EOF |
| 5374 | ;; |
| 5375 | |
| 5376 | amigaos*) |
| 5377 | 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)' |
| 5378 | hardcode_libdir_flag_spec='-L$libdir' |
| 5379 | hardcode_minus_L=yes |
| 5380 | |
| 5381 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 5382 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 5383 | # to version 4, is to share data among multiple programs linked |
| 5384 | # with the same dynamic library. Since this doesn't match the |
| 5385 | # behavior of shared libraries on other platforms, we can use |
| 5386 | # them. |
| 5387 | ld_shlibs=no |
| 5388 | ;; |
| 5389 | |
| 5390 | beos*) |
| 5391 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
| 5392 | allow_undefined_flag=unsupported |
| 5393 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 5394 | # support --undefined. This deserves some investigation. FIXME |
| 5395 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 5396 | else |
| 5397 | ld_shlibs=no |
| 5398 | fi |
| 5399 | ;; |
| 5400 | |
| 5401 | cygwin* | mingw* | pw32*) |
| 5402 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 5403 | # no search path for DLLs. |
| 5404 | hardcode_libdir_flag_spec='-L$libdir' |
| 5405 | allow_undefined_flag=unsupported |
| 5406 | always_export_symbols=yes |
| 5407 | |
| 5408 | extract_expsyms_cmds='test -f $output_objdir/impgen.c || \ |
| 5409 | sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~ |
| 5410 | test -f $output_objdir/impgen.exe || (cd $output_objdir && \ |
| 5411 | if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \ |
| 5412 | else $CC -o impgen impgen.c ; fi)~ |
| 5413 | $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def' |
| 5414 | |
| 5415 | old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' |
| 5416 | |
| 5417 | # cygwin and mingw dlls have different entry points and sets of symbols |
| 5418 | # to exclude. |
| 5419 | # FIXME: what about values for MSVC? |
| 5420 | dll_entry=__cygwin_dll_entry@12 |
| 5421 | dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~ |
| 5422 | case $host_os in |
| 5423 | mingw*) |
| 5424 | # mingw values |
| 5425 | dll_entry=_DllMainCRTStartup@12 |
| 5426 | dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~ |
| 5427 | ;; |
| 5428 | esac |
| 5429 | |
| 5430 | # mingw and cygwin differ, and it's simplest to just exclude the union |
| 5431 | # of the two symbol sets. |
| 5432 | dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12 |
| 5433 | |
| 5434 | # recent cygwin and mingw systems supply a stub DllMain which the user |
| 5435 | # can override, but on older systems we have to supply one (in ltdll.c) |
| 5436 | if test "x$lt_cv_need_dllmain" = "xyes"; then |
| 5437 | ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " |
| 5438 | 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~ |
| 5439 | test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' |
| 5440 | else |
| 5441 | ltdll_obj= |
| 5442 | ltdll_cmds= |
| 5443 | fi |
| 5444 | |
| 5445 | # Extract the symbol export list from an `--export-all' def file, |
| 5446 | # then regenerate the def file from the symbol export list, so that |
| 5447 | # the compiled dll only exports the symbol export list. |
| 5448 | # Be careful not to strip the DATA tag left be newer dlltools. |
| 5449 | export_symbols_cmds="$ltdll_cmds"' |
| 5450 | $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ |
| 5451 | sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols' |
| 5452 | |
| 5453 | # If the export-symbols file already is a .def file (1st line |
| 5454 | # is EXPORTS), use it as is. |
| 5455 | # If DATA tags from a recent dlltool are present, honour them! |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 5456 | archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 5457 | cp $export_symbols $output_objdir/$soname-def; |
| 5458 | else |
| 5459 | echo EXPORTS > $output_objdir/$soname-def; |
| 5460 | _lt_hint=1; |
| 5461 | cat $export_symbols | while read symbol; do |
| 5462 | set dummy \$symbol; |
| 5463 | case \$# in |
| 5464 | 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 5465 | 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;; |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 5466 | *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;; |
| 5467 | esac; |
| 5468 | _lt_hint=`expr 1 + \$_lt_hint`; |
| 5469 | done; |
| 5470 | fi~ |
| 5471 | '"$ltdll_cmds"' |
| 5472 | $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~ |
| 5473 | $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~ |
| 5474 | $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~ |
| 5475 | $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~ |
| 5476 | $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags' |
| 5477 | ;; |
| 5478 | |
| 5479 | netbsd*) |
| 5480 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 5481 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 5482 | wlarc= |
| 5483 | else |
| 5484 | archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 5485 | archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 5486 | fi |
| 5487 | ;; |
| 5488 | |
| 5489 | solaris* | sysv5*) |
| 5490 | if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then |
| 5491 | ld_shlibs=no |
| 5492 | cat <<EOF 1>&2 |
| 5493 | |
| 5494 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 5495 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 5496 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 5497 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 5498 | *** your PATH or compiler configuration so that the native linker is |
| 5499 | *** used, and then restart. |
| 5500 | |
| 5501 | EOF |
| 5502 | elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
| 5503 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 5504 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 5505 | else |
| 5506 | ld_shlibs=no |
| 5507 | fi |
| 5508 | ;; |
| 5509 | |
| 5510 | sunos4*) |
| 5511 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 5512 | wlarc= |
| 5513 | hardcode_direct=yes |
| 5514 | hardcode_shlibpath_var=no |
| 5515 | ;; |
| 5516 | |
| 5517 | *) |
| 5518 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
| 5519 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 5520 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 5521 | else |
| 5522 | ld_shlibs=no |
| 5523 | fi |
| 5524 | ;; |
| 5525 | esac |
| 5526 | |
| 5527 | if test "$ld_shlibs" = yes; then |
| 5528 | runpath_var=LD_RUN_PATH |
| 5529 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
| 5530 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 5531 | case $host_os in |
| 5532 | cygwin* | mingw* | pw32*) |
| 5533 | # dlltool doesn't understand --whole-archive et. al. |
| 5534 | whole_archive_flag_spec= |
| 5535 | ;; |
| 5536 | *) |
| 5537 | # ancient GNU ld didn't support --whole-archive et. al. |
| 5538 | if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then |
| 5539 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 5540 | else |
| 5541 | whole_archive_flag_spec= |
| 5542 | fi |
| 5543 | ;; |
| 5544 | esac |
| 5545 | fi |
| 5546 | else |
| 5547 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 5548 | case $host_os in |
| 5549 | aix3*) |
| 5550 | allow_undefined_flag=unsupported |
| 5551 | always_export_symbols=yes |
| 5552 | 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' |
| 5553 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 5554 | # are no directories specified by -L. |
| 5555 | hardcode_minus_L=yes |
| 5556 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
| 5557 | # Neither direct hardcoding nor static linking is supported with a |
| 5558 | # broken collect2. |
| 5559 | hardcode_direct=unsupported |
| 5560 | fi |
| 5561 | ;; |
| 5562 | |
| 5563 | aix4* | aix5*) |
| 5564 | if test "$host_cpu" = ia64; then |
| 5565 | # On IA64, the linker does run time linking by default, so we don't |
| 5566 | # have to do anything special. |
| 5567 | aix_use_runtimelinking=no |
| 5568 | exp_sym_flag='-Bexport' |
| 5569 | no_entry_flag="" |
| 5570 | else |
| 5571 | aix_use_runtimelinking=no |
| 5572 | |
| 5573 | # Test if we are trying to use run time linking or normal |
| 5574 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 5575 | # need to do runtime linking. |
| 5576 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 5577 | for ld_flag in $LDFLAGS; do |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 5578 | case $ld_flag in |
| 5579 | *-brtl*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 5580 | aix_use_runtimelinking=yes |
| 5581 | break |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 5582 | ;; |
| 5583 | esac |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 5584 | done |
| 5585 | esac |
| 5586 | |
| 5587 | exp_sym_flag='-bexport' |
| 5588 | no_entry_flag='-bnoentry' |
| 5589 | fi |
| 5590 | |
| 5591 | # When large executables or shared objects are built, AIX ld can |
| 5592 | # have problems creating the table of contents. If linking a library |
| 5593 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 5594 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 5595 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 5596 | |
| 5597 | hardcode_direct=yes |
| 5598 | archive_cmds='' |
| 5599 | hardcode_libdir_separator=':' |
| 5600 | if test "$GCC" = yes; then |
| 5601 | case $host_os in aix4.[012]|aix4.[012].*) |
| 5602 | collect2name=`${CC} -print-prog-name=collect2` |
| 5603 | if test -f "$collect2name" && \ |
| 5604 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 5605 | then |
| 5606 | # We have reworked collect2 |
| 5607 | hardcode_direct=yes |
| 5608 | else |
| 5609 | # We have old collect2 |
| 5610 | hardcode_direct=unsupported |
| 5611 | # It fails to find uninstalled libraries when the uninstalled |
| 5612 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 5613 | # to unsupported forces relinking |
| 5614 | hardcode_minus_L=yes |
| 5615 | hardcode_libdir_flag_spec='-L$libdir' |
| 5616 | hardcode_libdir_separator= |
| 5617 | fi |
| 5618 | esac |
| 5619 | |
| 5620 | shared_flag='-shared' |
| 5621 | else |
| 5622 | # not using gcc |
| 5623 | if test "$host_cpu" = ia64; then |
| 5624 | shared_flag='${wl}-G' |
| 5625 | else |
| 5626 | if test "$aix_use_runtimelinking" = yes; then |
| 5627 | shared_flag='${wl}-G' |
| 5628 | else |
| 5629 | shared_flag='${wl}-bM:SRE' |
| 5630 | fi |
| 5631 | fi |
| 5632 | fi |
| 5633 | |
| 5634 | # It seems that -bexpall can do strange things, so it is better to |
| 5635 | # generate a list of symbols to export. |
| 5636 | always_export_symbols=yes |
| 5637 | if test "$aix_use_runtimelinking" = yes; then |
| 5638 | # Warning - without using the other runtime loading flags (-brtl), |
| 5639 | # -berok will link without error, but may produce a broken library. |
| 5640 | allow_undefined_flag='-berok' |
| 5641 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib' |
| 5642 | 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" |
| 5643 | else |
| 5644 | if test "$host_cpu" = ia64; then |
| 5645 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 5646 | allow_undefined_flag="-z nodefs" |
| 5647 | 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" |
| 5648 | else |
| 5649 | hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib' |
| 5650 | # Warning - without using the other run time loading flags, |
| 5651 | # -berok will link without error, but may produce a broken library. |
| 5652 | allow_undefined_flag='${wl}-berok' |
| 5653 | # This is a bit strange, but is similar to how AIX traditionally builds |
| 5654 | # it's shared libraries. |
| 5655 | 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' |
| 5656 | fi |
| 5657 | fi |
| 5658 | ;; |
| 5659 | |
| 5660 | amigaos*) |
| 5661 | 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)' |
| 5662 | hardcode_libdir_flag_spec='-L$libdir' |
| 5663 | hardcode_minus_L=yes |
| 5664 | # see comment about different semantics on the GNU ld section |
| 5665 | ld_shlibs=no |
| 5666 | ;; |
| 5667 | |
| 5668 | cygwin* | mingw* | pw32*) |
| 5669 | # When not using gcc, we currently assume that we are using |
| 5670 | # Microsoft Visual C++. |
| 5671 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 5672 | # no search path for DLLs. |
| 5673 | hardcode_libdir_flag_spec=' ' |
| 5674 | allow_undefined_flag=unsupported |
| 5675 | # Tell ltmain to make .lib files, not .a files. |
| 5676 | libext=lib |
| 5677 | # FIXME: Setting linknames here is a bad hack. |
| 5678 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 5679 | # The linker will automatically build a .lib file if we build a DLL. |
| 5680 | old_archive_from_new_cmds='true' |
| 5681 | # FIXME: Should let the user specify the lib program. |
| 5682 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 5683 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 5684 | ;; |
| 5685 | |
| 5686 | darwin* | rhapsody*) |
| 5687 | case "$host_os" in |
| 5688 | rhapsody* | darwin1.[012]) |
| 5689 | allow_undefined_flag='-undefined suppress' |
| 5690 | ;; |
| 5691 | *) # Darwin 1.3 on |
| 5692 | allow_undefined_flag='-flat_namespace -undefined suppress' |
| 5693 | ;; |
| 5694 | esac |
| 5695 | # FIXME: Relying on posixy $() will cause problems for |
| 5696 | # cross-compilation, but unfortunately the echo tests do not |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 5697 | # yet detect zsh echo's removal of \ escapes. Also zsh mangles |
| 5698 | # `"' quotes if we put them in here... so don't! |
| 5699 | archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)' |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 5700 | # We need to add '_' to the symbols in $export_symbols first |
| 5701 | #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols' |
| 5702 | hardcode_direct=yes |
| 5703 | hardcode_shlibpath_var=no |
| 5704 | whole_archive_flag_spec='-all_load $convenience' |
| 5705 | ;; |
| 5706 | |
| 5707 | freebsd1*) |
| 5708 | ld_shlibs=no |
| 5709 | ;; |
| 5710 | |
| 5711 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 5712 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 5713 | # does not break anything, and helps significantly (at the cost of a little |
| 5714 | # extra space). |
| 5715 | freebsd2.2*) |
| 5716 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 5717 | hardcode_libdir_flag_spec='-R$libdir' |
| 5718 | hardcode_direct=yes |
| 5719 | hardcode_shlibpath_var=no |
| 5720 | ;; |
| 5721 | |
| 5722 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 5723 | freebsd2*) |
| 5724 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 5725 | hardcode_direct=yes |
| 5726 | hardcode_minus_L=yes |
| 5727 | hardcode_shlibpath_var=no |
| 5728 | ;; |
| 5729 | |
| 5730 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 5731 | freebsd*) |
| 5732 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 5733 | hardcode_libdir_flag_spec='-R$libdir' |
| 5734 | hardcode_direct=yes |
| 5735 | hardcode_shlibpath_var=no |
| 5736 | ;; |
| 5737 | |
| 5738 | hpux9* | hpux10* | hpux11*) |
| 5739 | case $host_os in |
| 5740 | 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' ;; |
| 5741 | *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;; |
| 5742 | esac |
| 5743 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 5744 | hardcode_libdir_separator=: |
| 5745 | hardcode_direct=yes |
| 5746 | hardcode_minus_L=yes # Not in the search PATH, but as the default |
| 5747 | # location of the library. |
| 5748 | export_dynamic_flag_spec='${wl}-E' |
| 5749 | ;; |
| 5750 | |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 5751 | irix5* | irix6* | nonstopux*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 5752 | if test "$GCC" = yes; then |
| 5753 | 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' |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 5754 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 5755 | else |
| 5756 | 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' |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 5757 | hardcode_libdir_flag_spec='-rpath $libdir' |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 5758 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 5759 | hardcode_libdir_separator=: |
| 5760 | link_all_deplibs=yes |
| 5761 | ;; |
| 5762 | |
| 5763 | netbsd*) |
| 5764 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 5765 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 5766 | else |
| 5767 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 5768 | fi |
| 5769 | hardcode_libdir_flag_spec='-R$libdir' |
| 5770 | hardcode_direct=yes |
| 5771 | hardcode_shlibpath_var=no |
| 5772 | ;; |
| 5773 | |
| 5774 | newsos6) |
| 5775 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5776 | hardcode_direct=yes |
| 5777 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 5778 | hardcode_libdir_separator=: |
| 5779 | hardcode_shlibpath_var=no |
| 5780 | ;; |
| 5781 | |
| 5782 | openbsd*) |
| 5783 | hardcode_direct=yes |
| 5784 | hardcode_shlibpath_var=no |
| 5785 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 5786 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 5787 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 5788 | export_dynamic_flag_spec='${wl}-E' |
| 5789 | else |
| 5790 | case "$host_os" in |
| 5791 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 5792 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 5793 | hardcode_libdir_flag_spec='-R$libdir' |
| 5794 | ;; |
| 5795 | *) |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 5796 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 5797 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 5798 | ;; |
| 5799 | esac |
| 5800 | fi |
| 5801 | ;; |
| 5802 | |
| 5803 | os2*) |
| 5804 | hardcode_libdir_flag_spec='-L$libdir' |
| 5805 | hardcode_minus_L=yes |
| 5806 | allow_undefined_flag=unsupported |
| 5807 | 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' |
| 5808 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 5809 | ;; |
| 5810 | |
| 5811 | osf3*) |
| 5812 | if test "$GCC" = yes; then |
| 5813 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 5814 | 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' |
| 5815 | else |
| 5816 | allow_undefined_flag=' -expect_unresolved \*' |
| 5817 | 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' |
| 5818 | fi |
| 5819 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 5820 | hardcode_libdir_separator=: |
| 5821 | ;; |
| 5822 | |
| 5823 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 5824 | if test "$GCC" = yes; then |
| 5825 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 5826 | 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' |
| 5827 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 5828 | else |
| 5829 | allow_undefined_flag=' -expect_unresolved \*' |
| 5830 | 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' |
| 5831 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
| 5832 | $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' |
| 5833 | |
| 5834 | #Both c and cxx compiler support -rpath directly |
| 5835 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 5836 | fi |
| 5837 | hardcode_libdir_separator=: |
| 5838 | ;; |
| 5839 | |
| 5840 | sco3.2v5*) |
| 5841 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5842 | hardcode_shlibpath_var=no |
| 5843 | runpath_var=LD_RUN_PATH |
| 5844 | hardcode_runpath_var=yes |
| 5845 | export_dynamic_flag_spec='${wl}-Bexport' |
| 5846 | ;; |
| 5847 | |
| 5848 | solaris*) |
| 5849 | # gcc --version < 3.0 without binutils cannot create self contained |
| 5850 | # shared libraries reliably, requiring libgcc.a to resolve some of |
| 5851 | # the object symbols generated in some cases. Libraries that use |
| 5852 | # assert need libgcc.a to resolve __eprintf, for example. Linking |
| 5853 | # a copy of libgcc.a into every shared library to guarantee resolving |
| 5854 | # such symbols causes other problems: According to Tim Van Holder |
| 5855 | # <tim.van.holder@pandora.be>, C++ libraries end up with a separate |
| 5856 | # (to the application) exception stack for one thing. |
| 5857 | no_undefined_flag=' -z defs' |
| 5858 | if test "$GCC" = yes; then |
| 5859 | case `$CC --version 2>/dev/null` in |
| 5860 | [12].*) |
| 5861 | cat <<EOF 1>&2 |
| 5862 | |
| 5863 | *** Warning: Releases of GCC earlier than version 3.0 cannot reliably |
| 5864 | *** create self contained shared libraries on Solaris systems, without |
| 5865 | *** introducing a dependency on libgcc.a. Therefore, libtool is disabling |
| 5866 | *** -no-undefined support, which will at least allow you to build shared |
| 5867 | *** libraries. However, you may find that when you link such libraries |
| 5868 | *** into an application without using GCC, you have to manually add |
| 5869 | *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to |
| 5870 | *** upgrade to a newer version of GCC. Another option is to rebuild your |
| 5871 | *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer. |
| 5872 | |
| 5873 | EOF |
| 5874 | no_undefined_flag= |
| 5875 | ;; |
| 5876 | esac |
| 5877 | fi |
| 5878 | # $CC -shared without GNU ld will not create a library from C++ |
| 5879 | # object files and a static libstdc++, better avoid it by now |
| 5880 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5881 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 5882 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 5883 | hardcode_libdir_flag_spec='-R$libdir' |
| 5884 | hardcode_shlibpath_var=no |
| 5885 | case $host_os in |
| 5886 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 5887 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 5888 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
| 5889 | esac |
| 5890 | link_all_deplibs=yes |
| 5891 | ;; |
| 5892 | |
| 5893 | sunos4*) |
| 5894 | if test "x$host_vendor" = xsequent; then |
| 5895 | # Use $CC to link under sequent, because it throws in some extra .o |
| 5896 | # files that make .init and .fini sections work. |
| 5897 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 5898 | else |
| 5899 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 5900 | fi |
| 5901 | hardcode_libdir_flag_spec='-L$libdir' |
| 5902 | hardcode_direct=yes |
| 5903 | hardcode_minus_L=yes |
| 5904 | hardcode_shlibpath_var=no |
| 5905 | ;; |
| 5906 | |
| 5907 | sysv4) |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 5908 | case $host_vendor in |
| 5909 | sni) |
| 5910 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5911 | hardcode_direct=yes # is this really true??? |
| 5912 | ;; |
| 5913 | siemens) |
| 5914 | ## LD is ld it makes a PLAMLIB |
| 5915 | ## CC just makes a GrossModule. |
| 5916 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 5917 | reload_cmds='$CC -r -o $output$reload_objs' |
| 5918 | hardcode_direct=no |
| 5919 | ;; |
| 5920 | motorola) |
| 5921 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5922 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 5923 | ;; |
| 5924 | esac |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 5925 | runpath_var='LD_RUN_PATH' |
| 5926 | hardcode_shlibpath_var=no |
| 5927 | ;; |
| 5928 | |
| 5929 | sysv4.3*) |
| 5930 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5931 | hardcode_shlibpath_var=no |
| 5932 | export_dynamic_flag_spec='-Bexport' |
| 5933 | ;; |
| 5934 | |
| 5935 | sysv5*) |
| 5936 | no_undefined_flag=' -z text' |
| 5937 | # $CC -shared without GNU ld will not create a library from C++ |
| 5938 | # object files and a static libstdc++, better avoid it by now |
| 5939 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5940 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 5941 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 5942 | hardcode_libdir_flag_spec= |
| 5943 | hardcode_shlibpath_var=no |
| 5944 | runpath_var='LD_RUN_PATH' |
| 5945 | ;; |
| 5946 | |
| 5947 | uts4*) |
| 5948 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5949 | hardcode_libdir_flag_spec='-L$libdir' |
| 5950 | hardcode_shlibpath_var=no |
| 5951 | ;; |
| 5952 | |
| 5953 | dgux*) |
| 5954 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5955 | hardcode_libdir_flag_spec='-L$libdir' |
| 5956 | hardcode_shlibpath_var=no |
| 5957 | ;; |
| 5958 | |
| 5959 | sysv4*MP*) |
| 5960 | if test -d /usr/nec; then |
| 5961 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5962 | hardcode_shlibpath_var=no |
| 5963 | runpath_var=LD_RUN_PATH |
| 5964 | hardcode_runpath_var=yes |
| 5965 | ld_shlibs=yes |
| 5966 | fi |
| 5967 | ;; |
| 5968 | |
| 5969 | sysv4.2uw2*) |
| 5970 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 5971 | hardcode_direct=yes |
| 5972 | hardcode_minus_L=no |
| 5973 | hardcode_shlibpath_var=no |
| 5974 | hardcode_runpath_var=yes |
| 5975 | runpath_var=LD_RUN_PATH |
| 5976 | ;; |
| 5977 | |
| 5978 | sysv5uw7* | unixware7*) |
| 5979 | no_undefined_flag='${wl}-z ${wl}text' |
| 5980 | if test "$GCC" = yes; then |
| 5981 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 5982 | else |
| 5983 | archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 5984 | fi |
| 5985 | runpath_var='LD_RUN_PATH' |
| 5986 | hardcode_shlibpath_var=no |
| 5987 | ;; |
| 5988 | |
| 5989 | *) |
| 5990 | ld_shlibs=no |
| 5991 | ;; |
| 5992 | esac |
| 5993 | fi |
| 5994 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
| 5995 | echo "${ECHO_T}$ld_shlibs" >&6 |
| 5996 | test "$ld_shlibs" = no && can_build_shared=no |
| 5997 | |
| 5998 | # Check hardcoding attributes. |
| 5999 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 6000 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 6001 | hardcode_action= |
| 6002 | if test -n "$hardcode_libdir_flag_spec" || \ |
| 6003 | test -n "$runpath_var"; then |
| 6004 | |
| 6005 | # We can hardcode non-existant directories. |
| 6006 | if test "$hardcode_direct" != no && |
| 6007 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 6008 | # have to relink, otherwise we might link with an installed library |
| 6009 | # when we should be linking with a yet-to-be-installed one |
| 6010 | ## test "$hardcode_shlibpath_var" != no && |
| 6011 | test "$hardcode_minus_L" != no; then |
| 6012 | # Linking always hardcodes the temporary library directory. |
| 6013 | hardcode_action=relink |
| 6014 | else |
| 6015 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 6016 | hardcode_action=immediate |
| 6017 | fi |
| 6018 | else |
| 6019 | # We cannot hardcode anything, or else we can only hardcode existing |
| 6020 | # directories. |
| 6021 | hardcode_action=unsupported |
| 6022 | fi |
| 6023 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
| 6024 | echo "${ECHO_T}$hardcode_action" >&6 |
| 6025 | |
| 6026 | striplib= |
| 6027 | old_striplib= |
| 6028 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 6029 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| 6030 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 6031 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 6032 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 6033 | echo "$as_me:$LINENO: result: yes" >&5 |
| 6034 | echo "${ECHO_T}yes" >&6 |
| 6035 | else |
| 6036 | echo "$as_me:$LINENO: result: no" >&5 |
| 6037 | echo "${ECHO_T}no" >&6 |
| 6038 | fi |
| 6039 | |
| 6040 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 6041 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 6042 | |
| 6043 | # PORTME Fill in your ld.so characteristics |
| 6044 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 6045 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 6046 | library_names_spec= |
| 6047 | libname_spec='lib$name' |
| 6048 | soname_spec= |
| 6049 | postinstall_cmds= |
| 6050 | postuninstall_cmds= |
| 6051 | finish_cmds= |
| 6052 | finish_eval= |
| 6053 | shlibpath_var= |
| 6054 | shlibpath_overrides_runpath=unknown |
| 6055 | version_type=none |
| 6056 | dynamic_linker="$host_os ld.so" |
| 6057 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 6058 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 6059 | |
| 6060 | case $host_os in |
| 6061 | aix3*) |
| 6062 | version_type=linux |
| 6063 | library_names_spec='${libname}${release}.so$versuffix $libname.a' |
| 6064 | shlibpath_var=LIBPATH |
| 6065 | |
| 6066 | # AIX has no versioning support, so we append a major version to the name. |
| 6067 | soname_spec='${libname}${release}.so$major' |
| 6068 | ;; |
| 6069 | |
| 6070 | aix4* | aix5*) |
| 6071 | version_type=linux |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 6072 | need_lib_prefix=no |
| 6073 | need_version=no |
| 6074 | hardcode_into_libs=yes |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 6075 | if test "$host_cpu" = ia64; then |
| 6076 | # AIX 5 supports IA64 |
| 6077 | library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' |
| 6078 | shlibpath_var=LD_LIBRARY_PATH |
| 6079 | else |
| 6080 | # With GCC up to 2.95.x, collect2 would create an import file |
| 6081 | # for dependence libraries. The import file would start with |
| 6082 | # the line `#! .'. This would cause the generated library to |
| 6083 | # depend on `.', always an invalid library. This was fixed in |
| 6084 | # development snapshots of GCC prior to 3.0. |
| 6085 | case $host_os in |
| 6086 | aix4 | aix4.[01] | aix4.[01].*) |
| 6087 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 6088 | echo ' yes ' |
| 6089 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 6090 | : |
| 6091 | else |
| 6092 | can_build_shared=no |
| 6093 | fi |
| 6094 | ;; |
| 6095 | esac |
| 6096 | # AIX (on Power*) has no versioning support, so currently we can |
| 6097 | # not hardcode correct soname into executable. Probably we can |
| 6098 | # add versioning support to collect2, so additional links can |
| 6099 | # be useful in future. |
| 6100 | if test "$aix_use_runtimelinking" = yes; then |
| 6101 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 6102 | # instead of lib<name>.a to let people know that these are not |
| 6103 | # typical AIX shared libraries. |
| 6104 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 6105 | else |
| 6106 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 6107 | # and later when we are not doing run time linking. |
| 6108 | library_names_spec='${libname}${release}.a $libname.a' |
| 6109 | soname_spec='${libname}${release}.so$major' |
| 6110 | fi |
| 6111 | shlibpath_var=LIBPATH |
| 6112 | fi |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 6113 | hardcode_into_libs=yes |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 6114 | ;; |
| 6115 | |
| 6116 | amigaos*) |
| 6117 | library_names_spec='$libname.ixlibrary $libname.a' |
| 6118 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 6119 | 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' |
| 6120 | ;; |
| 6121 | |
| 6122 | beos*) |
| 6123 | library_names_spec='${libname}.so' |
| 6124 | dynamic_linker="$host_os ld.so" |
| 6125 | shlibpath_var=LIBRARY_PATH |
| 6126 | ;; |
| 6127 | |
| 6128 | bsdi4*) |
| 6129 | version_type=linux |
| 6130 | need_version=no |
| 6131 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 6132 | soname_spec='${libname}${release}.so$major' |
| 6133 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 6134 | shlibpath_var=LD_LIBRARY_PATH |
| 6135 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 6136 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 6137 | export_dynamic_flag_spec=-rdynamic |
| 6138 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 6139 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 6140 | # libtool to hard-code these into programs |
| 6141 | ;; |
| 6142 | |
| 6143 | cygwin* | mingw* | pw32*) |
| 6144 | version_type=windows |
| 6145 | need_version=no |
| 6146 | need_lib_prefix=no |
| 6147 | case $GCC,$host_os in |
| 6148 | yes,cygwin*) |
| 6149 | library_names_spec='$libname.dll.a' |
| 6150 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' |
| 6151 | postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~ |
| 6152 | dldir=$destdir/`dirname \$dlpath`~ |
| 6153 | test -d \$dldir || mkdir -p \$dldir~ |
| 6154 | $install_prog .libs/$dlname \$dldir/$dlname' |
| 6155 | postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 6156 | dlpath=$dir/\$dldll~ |
| 6157 | $rm \$dlpath' |
| 6158 | ;; |
| 6159 | yes,mingw*) |
| 6160 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 6161 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"` |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 6162 | ;; |
| 6163 | yes,pw32*) |
| 6164 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll' |
| 6165 | ;; |
| 6166 | *) |
| 6167 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib' |
| 6168 | ;; |
| 6169 | esac |
| 6170 | dynamic_linker='Win32 ld.exe' |
| 6171 | # FIXME: first we should search . and the directory the executable is in |
| 6172 | shlibpath_var=PATH |
| 6173 | ;; |
| 6174 | |
| 6175 | darwin* | rhapsody*) |
| 6176 | dynamic_linker="$host_os dyld" |
| 6177 | version_type=darwin |
| 6178 | need_lib_prefix=no |
| 6179 | need_version=no |
| 6180 | # FIXME: Relying on posixy $() will cause problems for |
| 6181 | # cross-compilation, but unfortunately the echo tests do not |
| 6182 | # yet detect zsh echo's removal of \ escapes. |
| 6183 | 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)' |
| 6184 | soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)' |
| 6185 | shlibpath_overrides_runpath=yes |
| 6186 | shlibpath_var=DYLD_LIBRARY_PATH |
| 6187 | ;; |
| 6188 | |
| 6189 | freebsd1*) |
| 6190 | dynamic_linker=no |
| 6191 | ;; |
| 6192 | |
| 6193 | freebsd*) |
| 6194 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 6195 | version_type=freebsd-$objformat |
| 6196 | case $version_type in |
| 6197 | freebsd-elf*) |
| 6198 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' |
| 6199 | need_version=no |
| 6200 | need_lib_prefix=no |
| 6201 | ;; |
| 6202 | freebsd-*) |
| 6203 | library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' |
| 6204 | need_version=yes |
| 6205 | ;; |
| 6206 | esac |
| 6207 | shlibpath_var=LD_LIBRARY_PATH |
| 6208 | case $host_os in |
| 6209 | freebsd2*) |
| 6210 | shlibpath_overrides_runpath=yes |
| 6211 | ;; |
| 6212 | *) |
| 6213 | shlibpath_overrides_runpath=no |
| 6214 | hardcode_into_libs=yes |
| 6215 | ;; |
| 6216 | esac |
| 6217 | ;; |
| 6218 | |
| 6219 | gnu*) |
| 6220 | version_type=linux |
| 6221 | need_lib_prefix=no |
| 6222 | need_version=no |
| 6223 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' |
| 6224 | soname_spec='${libname}${release}.so$major' |
| 6225 | shlibpath_var=LD_LIBRARY_PATH |
| 6226 | hardcode_into_libs=yes |
| 6227 | ;; |
| 6228 | |
| 6229 | hpux9* | hpux10* | hpux11*) |
| 6230 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 6231 | # link against other versions. |
| 6232 | dynamic_linker="$host_os dld.sl" |
| 6233 | version_type=sunos |
| 6234 | need_lib_prefix=no |
| 6235 | need_version=no |
| 6236 | shlibpath_var=SHLIB_PATH |
| 6237 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 6238 | library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' |
| 6239 | soname_spec='${libname}${release}.sl$major' |
| 6240 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 6241 | postinstall_cmds='chmod 555 $lib' |
| 6242 | ;; |
| 6243 | |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 6244 | irix5* | irix6* | nonstopux*) |
| 6245 | case $host_os in |
| 6246 | nonstopux*) version_type=nonstopux ;; |
| 6247 | *) version_type=irix ;; |
| 6248 | esac |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 6249 | need_lib_prefix=no |
| 6250 | need_version=no |
| 6251 | soname_spec='${libname}${release}.so$major' |
| 6252 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' |
| 6253 | case $host_os in |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 6254 | irix5* | nonstopux*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 6255 | libsuff= shlibsuff= |
| 6256 | ;; |
| 6257 | *) |
| 6258 | case $LD in # libtool.m4 will add one of these switches to LD |
| 6259 | *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; |
| 6260 | *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 6261 | *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 6262 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 6263 | esac |
| 6264 | ;; |
| 6265 | esac |
| 6266 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 6267 | shlibpath_overrides_runpath=no |
| 6268 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 6269 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 6270 | ;; |
| 6271 | |
| 6272 | # No shared lib support for Linux oldld, aout, or coff. |
| 6273 | linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*) |
| 6274 | dynamic_linker=no |
| 6275 | ;; |
| 6276 | |
| 6277 | # This must be Linux ELF. |
| 6278 | linux-gnu*) |
| 6279 | version_type=linux |
| 6280 | need_lib_prefix=no |
| 6281 | need_version=no |
| 6282 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 6283 | soname_spec='${libname}${release}.so$major' |
| 6284 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 6285 | shlibpath_var=LD_LIBRARY_PATH |
| 6286 | shlibpath_overrides_runpath=no |
| 6287 | # This implies no fast_install, which is unacceptable. |
| 6288 | # Some rework will be needed to allow for fast_install |
| 6289 | # before this can be enabled. |
| 6290 | hardcode_into_libs=yes |
| 6291 | |
| 6292 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 6293 | # powerpc, because MkLinux only supported shared libraries with the |
| 6294 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 6295 | # most powerpc-linux boxes support dynamic linking these days and |
| 6296 | # people can always --disable-shared, the test was removed, and we |
| 6297 | # assume the GNU/Linux dynamic linker is in use. |
| 6298 | dynamic_linker='GNU/Linux ld.so' |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 6299 | |
| 6300 | # Find out which ABI we are using (multilib Linux x86_64 hack). |
| 6301 | libsuff= |
| 6302 | case "$host_cpu" in |
| 6303 | x86_64*|s390x*) |
| 6304 | echo '#line 6304 "configure"' > conftest.$ac_ext |
| 6305 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6306 | (eval $ac_compile) 2>&5 |
| 6307 | ac_status=$? |
| 6308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6309 | (exit $ac_status); }; then |
| 6310 | case `/usr/bin/file conftest.$ac_objext` in |
| 6311 | *64-bit*) |
| 6312 | libsuff=64 |
| 6313 | ;; |
| 6314 | esac |
| 6315 | fi |
| 6316 | rm -rf conftest* |
| 6317 | ;; |
| 6318 | *) |
| 6319 | ;; |
| 6320 | esac |
| 6321 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" |
| 6322 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 6323 | ;; |
| 6324 | |
| 6325 | netbsd*) |
| 6326 | version_type=sunos |
| 6327 | need_lib_prefix=no |
| 6328 | need_version=no |
| 6329 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 6330 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
| 6331 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 6332 | dynamic_linker='NetBSD (a.out) ld.so' |
| 6333 | else |
| 6334 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' |
| 6335 | soname_spec='${libname}${release}.so$major' |
| 6336 | dynamic_linker='NetBSD ld.elf_so' |
| 6337 | fi |
| 6338 | shlibpath_var=LD_LIBRARY_PATH |
| 6339 | shlibpath_overrides_runpath=yes |
| 6340 | hardcode_into_libs=yes |
| 6341 | ;; |
| 6342 | |
| 6343 | newsos6) |
| 6344 | version_type=linux |
| 6345 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 6346 | shlibpath_var=LD_LIBRARY_PATH |
| 6347 | shlibpath_overrides_runpath=yes |
| 6348 | ;; |
| 6349 | |
| 6350 | openbsd*) |
| 6351 | version_type=sunos |
| 6352 | need_lib_prefix=no |
| 6353 | need_version=no |
| 6354 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 6355 | case "$host_os" in |
| 6356 | openbsd2.[89] | openbsd2.[89].*) |
| 6357 | shlibpath_overrides_runpath=no |
| 6358 | ;; |
| 6359 | *) |
| 6360 | shlibpath_overrides_runpath=yes |
| 6361 | ;; |
| 6362 | esac |
| 6363 | else |
| 6364 | shlibpath_overrides_runpath=yes |
| 6365 | fi |
| 6366 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
| 6367 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 6368 | shlibpath_var=LD_LIBRARY_PATH |
| 6369 | ;; |
| 6370 | |
| 6371 | os2*) |
| 6372 | libname_spec='$name' |
| 6373 | need_lib_prefix=no |
| 6374 | library_names_spec='$libname.dll $libname.a' |
| 6375 | dynamic_linker='OS/2 ld.exe' |
| 6376 | shlibpath_var=LIBPATH |
| 6377 | ;; |
| 6378 | |
| 6379 | osf3* | osf4* | osf5*) |
| 6380 | version_type=osf |
| 6381 | need_version=no |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 6382 | soname_spec='${libname}${release}.so$major' |
| 6383 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 6384 | shlibpath_var=LD_LIBRARY_PATH |
| 6385 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 6386 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 6387 | hardcode_into_libs=yes |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 6388 | ;; |
| 6389 | |
| 6390 | sco3.2v5*) |
| 6391 | version_type=osf |
| 6392 | soname_spec='${libname}${release}.so$major' |
| 6393 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 6394 | shlibpath_var=LD_LIBRARY_PATH |
| 6395 | ;; |
| 6396 | |
| 6397 | solaris*) |
| 6398 | version_type=linux |
| 6399 | need_lib_prefix=no |
| 6400 | need_version=no |
| 6401 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 6402 | soname_spec='${libname}${release}.so$major' |
| 6403 | shlibpath_var=LD_LIBRARY_PATH |
| 6404 | shlibpath_overrides_runpath=yes |
| 6405 | hardcode_into_libs=yes |
| 6406 | # ldd complains unless libraries are executable |
| 6407 | postinstall_cmds='chmod +x $lib' |
| 6408 | ;; |
| 6409 | |
| 6410 | sunos4*) |
| 6411 | version_type=sunos |
| 6412 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
| 6413 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 6414 | shlibpath_var=LD_LIBRARY_PATH |
| 6415 | shlibpath_overrides_runpath=yes |
| 6416 | if test "$with_gnu_ld" = yes; then |
| 6417 | need_lib_prefix=no |
| 6418 | fi |
| 6419 | need_version=yes |
| 6420 | ;; |
| 6421 | |
| 6422 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 6423 | version_type=linux |
| 6424 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 6425 | soname_spec='${libname}${release}.so$major' |
| 6426 | shlibpath_var=LD_LIBRARY_PATH |
| 6427 | case $host_vendor in |
| 6428 | sni) |
| 6429 | shlibpath_overrides_runpath=no |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 6430 | need_lib_prefix=no |
| 6431 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 6432 | runpath_var=LD_RUN_PATH |
| 6433 | ;; |
| 6434 | siemens) |
| 6435 | need_lib_prefix=no |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 6436 | ;; |
| 6437 | motorola) |
| 6438 | need_lib_prefix=no |
| 6439 | need_version=no |
| 6440 | shlibpath_overrides_runpath=no |
| 6441 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 6442 | ;; |
| 6443 | esac |
| 6444 | ;; |
| 6445 | |
| 6446 | uts4*) |
| 6447 | version_type=linux |
| 6448 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 6449 | soname_spec='${libname}${release}.so$major' |
| 6450 | shlibpath_var=LD_LIBRARY_PATH |
| 6451 | ;; |
| 6452 | |
| 6453 | dgux*) |
| 6454 | version_type=linux |
| 6455 | need_lib_prefix=no |
| 6456 | need_version=no |
| 6457 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 6458 | soname_spec='${libname}${release}.so$major' |
| 6459 | shlibpath_var=LD_LIBRARY_PATH |
| 6460 | ;; |
| 6461 | |
| 6462 | sysv4*MP*) |
| 6463 | if test -d /usr/nec ;then |
| 6464 | version_type=linux |
| 6465 | library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' |
| 6466 | soname_spec='$libname.so.$major' |
| 6467 | shlibpath_var=LD_LIBRARY_PATH |
| 6468 | fi |
| 6469 | ;; |
| 6470 | |
| 6471 | *) |
| 6472 | dynamic_linker=no |
| 6473 | ;; |
| 6474 | esac |
| 6475 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 6476 | echo "${ECHO_T}$dynamic_linker" >&6 |
| 6477 | test "$dynamic_linker" = no && can_build_shared=no |
| 6478 | |
| 6479 | # Report the final consequences. |
| 6480 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 6481 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
| 6482 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 6483 | echo "${ECHO_T}$can_build_shared" >&6 |
| 6484 | |
| 6485 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 6486 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
| 6487 | test "$can_build_shared" = "no" && enable_shared=no |
| 6488 | |
| 6489 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 6490 | # are all built from PIC. |
| 6491 | case "$host_os" in |
| 6492 | aix3*) |
| 6493 | test "$enable_shared" = yes && enable_static=no |
| 6494 | if test -n "$RANLIB"; then |
| 6495 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 6496 | postinstall_cmds='$RANLIB $lib' |
| 6497 | fi |
| 6498 | ;; |
| 6499 | |
| 6500 | aix4*) |
| 6501 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 6502 | test "$enable_shared" = yes && enable_static=no |
| 6503 | fi |
| 6504 | ;; |
| 6505 | esac |
| 6506 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 6507 | echo "${ECHO_T}$enable_shared" >&6 |
| 6508 | |
| 6509 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 6510 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
| 6511 | # Make sure either enable_shared or enable_static is yes. |
| 6512 | test "$enable_shared" = yes || enable_static=yes |
| 6513 | echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 6514 | echo "${ECHO_T}$enable_static" >&6 |
| 6515 | |
| 6516 | if test "$hardcode_action" = relink; then |
| 6517 | # Fast installation is not supported |
| 6518 | enable_fast_install=no |
| 6519 | elif test "$shlibpath_overrides_runpath" = yes || |
| 6520 | test "$enable_shared" = no; then |
| 6521 | # Fast installation is not necessary |
| 6522 | enable_fast_install=needless |
| 6523 | fi |
| 6524 | |
| 6525 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 6526 | if test "$GCC" = yes; then |
| 6527 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 6528 | fi |
| 6529 | |
| 6530 | if test "x$enable_dlopen" != xyes; then |
| 6531 | enable_dlopen=unknown |
| 6532 | enable_dlopen_self=unknown |
| 6533 | enable_dlopen_self_static=unknown |
| 6534 | else |
| 6535 | lt_cv_dlopen=no |
| 6536 | lt_cv_dlopen_libs= |
| 6537 | |
| 6538 | case $host_os in |
| 6539 | beos*) |
| 6540 | lt_cv_dlopen="load_add_on" |
| 6541 | lt_cv_dlopen_libs= |
| 6542 | lt_cv_dlopen_self=yes |
| 6543 | ;; |
| 6544 | |
| 6545 | cygwin* | mingw* | pw32*) |
| 6546 | lt_cv_dlopen="LoadLibrary" |
| 6547 | lt_cv_dlopen_libs= |
| 6548 | ;; |
| 6549 | |
| 6550 | *) |
| 6551 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 6552 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
| 6553 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 6554 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6555 | else |
| 6556 | cat >conftest.$ac_ext <<_ACEOF |
| 6557 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 6558 | /* confdefs.h. */ |
| 6559 | _ACEOF |
| 6560 | cat confdefs.h >>conftest.$ac_ext |
| 6561 | cat >>conftest.$ac_ext <<_ACEOF |
| 6562 | /* end confdefs.h. */ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 6563 | /* System header to define __stub macros and hopefully few prototypes, |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 6564 | which can conflict with char shl_load (); below. |
| 6565 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6566 | <limits.h> exists even on freestanding compilers. */ |
| 6567 | #ifdef __STDC__ |
| 6568 | # include <limits.h> |
| 6569 | #else |
| 6570 | # include <assert.h> |
| 6571 | #endif |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 6572 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6573 | #ifdef __cplusplus |
| 6574 | extern "C" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 6575 | { |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 6576 | #endif |
| 6577 | /* We use char because int might match the return type of a gcc2 |
| 6578 | builtin and then its argument prototype would still apply. */ |
| 6579 | char shl_load (); |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 6580 | /* The GNU C library defines this for functions which it implements |
| 6581 | to always fail with ENOSYS. Some functions are actually named |
| 6582 | something starting with __ and the normal name is an alias. */ |
| 6583 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
| 6584 | choke me |
| 6585 | #else |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 6586 | char (*f) () = shl_load; |
| 6587 | #endif |
| 6588 | #ifdef __cplusplus |
| 6589 | } |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 6590 | #endif |
| 6591 | |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 6592 | int |
| 6593 | main () |
| 6594 | { |
| 6595 | return f != shl_load; |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 6596 | ; |
| 6597 | return 0; |
| 6598 | } |
| 6599 | _ACEOF |
| 6600 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6601 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6602 | (eval $ac_link) 2>&5 |
| 6603 | ac_status=$? |
| 6604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6605 | (exit $ac_status); } && |
| 6606 | { ac_try='test -s conftest$ac_exeext' |
| 6607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6608 | (eval $ac_try) 2>&5 |
| 6609 | ac_status=$? |
| 6610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6611 | (exit $ac_status); }; }; then |
| 6612 | ac_cv_func_shl_load=yes |
| 6613 | else |
| 6614 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 6615 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6616 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 6617 | ac_cv_func_shl_load=no |
| 6618 | fi |
| 6619 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6620 | fi |
| 6621 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 6622 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
| 6623 | if test $ac_cv_func_shl_load = yes; then |
| 6624 | lt_cv_dlopen="shl_load" |
| 6625 | else |
| 6626 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 6627 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 6628 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 6629 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6630 | else |
| 6631 | ac_check_lib_save_LIBS=$LIBS |
| 6632 | LIBS="-ldld $LIBS" |
| 6633 | cat >conftest.$ac_ext <<_ACEOF |
| 6634 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 6635 | /* confdefs.h. */ |
| 6636 | _ACEOF |
| 6637 | cat confdefs.h >>conftest.$ac_ext |
| 6638 | cat >>conftest.$ac_ext <<_ACEOF |
| 6639 | /* end confdefs.h. */ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 6640 | |
| 6641 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6642 | #ifdef __cplusplus |
| 6643 | extern "C" |
| 6644 | #endif |
| 6645 | /* We use char because int might match the return type of a gcc2 |
| 6646 | builtin and then its argument prototype would still apply. */ |
| 6647 | char shl_load (); |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 6648 | int |
| 6649 | main () |
| 6650 | { |
| 6651 | shl_load (); |
| 6652 | ; |
| 6653 | return 0; |
| 6654 | } |
| 6655 | _ACEOF |
| 6656 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6657 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6658 | (eval $ac_link) 2>&5 |
| 6659 | ac_status=$? |
| 6660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6661 | (exit $ac_status); } && |
| 6662 | { ac_try='test -s conftest$ac_exeext' |
| 6663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6664 | (eval $ac_try) 2>&5 |
| 6665 | ac_status=$? |
| 6666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6667 | (exit $ac_status); }; }; then |
| 6668 | ac_cv_lib_dld_shl_load=yes |
| 6669 | else |
| 6670 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 6671 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6672 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 6673 | ac_cv_lib_dld_shl_load=no |
| 6674 | fi |
| 6675 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6676 | LIBS=$ac_check_lib_save_LIBS |
| 6677 | fi |
| 6678 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 6679 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 6680 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 6681 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 6682 | else |
| 6683 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 6684 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
| 6685 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 6686 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6687 | else |
| 6688 | cat >conftest.$ac_ext <<_ACEOF |
| 6689 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 6690 | /* confdefs.h. */ |
| 6691 | _ACEOF |
| 6692 | cat confdefs.h >>conftest.$ac_ext |
| 6693 | cat >>conftest.$ac_ext <<_ACEOF |
| 6694 | /* end confdefs.h. */ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 6695 | /* System header to define __stub macros and hopefully few prototypes, |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 6696 | which can conflict with char dlopen (); below. |
| 6697 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6698 | <limits.h> exists even on freestanding compilers. */ |
| 6699 | #ifdef __STDC__ |
| 6700 | # include <limits.h> |
| 6701 | #else |
| 6702 | # include <assert.h> |
| 6703 | #endif |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 6704 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6705 | #ifdef __cplusplus |
| 6706 | extern "C" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 6707 | { |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 6708 | #endif |
| 6709 | /* We use char because int might match the return type of a gcc2 |
| 6710 | builtin and then its argument prototype would still apply. */ |
| 6711 | char dlopen (); |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 6712 | /* The GNU C library defines this for functions which it implements |
| 6713 | to always fail with ENOSYS. Some functions are actually named |
| 6714 | something starting with __ and the normal name is an alias. */ |
| 6715 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
| 6716 | choke me |
| 6717 | #else |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 6718 | char (*f) () = dlopen; |
| 6719 | #endif |
| 6720 | #ifdef __cplusplus |
| 6721 | } |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 6722 | #endif |
| 6723 | |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 6724 | int |
| 6725 | main () |
| 6726 | { |
| 6727 | return f != dlopen; |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 6728 | ; |
| 6729 | return 0; |
| 6730 | } |
| 6731 | _ACEOF |
| 6732 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6733 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6734 | (eval $ac_link) 2>&5 |
| 6735 | ac_status=$? |
| 6736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6737 | (exit $ac_status); } && |
| 6738 | { ac_try='test -s conftest$ac_exeext' |
| 6739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6740 | (eval $ac_try) 2>&5 |
| 6741 | ac_status=$? |
| 6742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6743 | (exit $ac_status); }; }; then |
| 6744 | ac_cv_func_dlopen=yes |
| 6745 | else |
| 6746 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 6747 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6748 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 6749 | ac_cv_func_dlopen=no |
| 6750 | fi |
| 6751 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6752 | fi |
| 6753 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 6754 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
| 6755 | if test $ac_cv_func_dlopen = yes; then |
| 6756 | lt_cv_dlopen="dlopen" |
| 6757 | else |
| 6758 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 6759 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 6760 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 6761 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6762 | else |
| 6763 | ac_check_lib_save_LIBS=$LIBS |
| 6764 | LIBS="-ldl $LIBS" |
| 6765 | cat >conftest.$ac_ext <<_ACEOF |
| 6766 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 6767 | /* confdefs.h. */ |
| 6768 | _ACEOF |
| 6769 | cat confdefs.h >>conftest.$ac_ext |
| 6770 | cat >>conftest.$ac_ext <<_ACEOF |
| 6771 | /* end confdefs.h. */ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 6772 | |
| 6773 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6774 | #ifdef __cplusplus |
| 6775 | extern "C" |
| 6776 | #endif |
| 6777 | /* We use char because int might match the return type of a gcc2 |
| 6778 | builtin and then its argument prototype would still apply. */ |
| 6779 | char dlopen (); |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 6780 | int |
| 6781 | main () |
| 6782 | { |
| 6783 | dlopen (); |
| 6784 | ; |
| 6785 | return 0; |
| 6786 | } |
| 6787 | _ACEOF |
| 6788 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6789 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6790 | (eval $ac_link) 2>&5 |
| 6791 | ac_status=$? |
| 6792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6793 | (exit $ac_status); } && |
| 6794 | { ac_try='test -s conftest$ac_exeext' |
| 6795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6796 | (eval $ac_try) 2>&5 |
| 6797 | ac_status=$? |
| 6798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6799 | (exit $ac_status); }; }; then |
| 6800 | ac_cv_lib_dl_dlopen=yes |
| 6801 | else |
| 6802 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 6803 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6804 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 6805 | ac_cv_lib_dl_dlopen=no |
| 6806 | fi |
| 6807 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6808 | LIBS=$ac_check_lib_save_LIBS |
| 6809 | fi |
| 6810 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 6811 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 6812 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 6813 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 6814 | else |
| 6815 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 6816 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
| 6817 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 6818 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6819 | else |
| 6820 | ac_check_lib_save_LIBS=$LIBS |
| 6821 | LIBS="-lsvld $LIBS" |
| 6822 | cat >conftest.$ac_ext <<_ACEOF |
| 6823 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 6824 | /* confdefs.h. */ |
| 6825 | _ACEOF |
| 6826 | cat confdefs.h >>conftest.$ac_ext |
| 6827 | cat >>conftest.$ac_ext <<_ACEOF |
| 6828 | /* end confdefs.h. */ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 6829 | |
| 6830 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6831 | #ifdef __cplusplus |
| 6832 | extern "C" |
| 6833 | #endif |
| 6834 | /* We use char because int might match the return type of a gcc2 |
| 6835 | builtin and then its argument prototype would still apply. */ |
| 6836 | char dlopen (); |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 6837 | int |
| 6838 | main () |
| 6839 | { |
| 6840 | dlopen (); |
| 6841 | ; |
| 6842 | return 0; |
| 6843 | } |
| 6844 | _ACEOF |
| 6845 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6846 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6847 | (eval $ac_link) 2>&5 |
| 6848 | ac_status=$? |
| 6849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6850 | (exit $ac_status); } && |
| 6851 | { ac_try='test -s conftest$ac_exeext' |
| 6852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6853 | (eval $ac_try) 2>&5 |
| 6854 | ac_status=$? |
| 6855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6856 | (exit $ac_status); }; }; then |
| 6857 | ac_cv_lib_svld_dlopen=yes |
| 6858 | else |
| 6859 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 6860 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6861 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 6862 | ac_cv_lib_svld_dlopen=no |
| 6863 | fi |
| 6864 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6865 | LIBS=$ac_check_lib_save_LIBS |
| 6866 | fi |
| 6867 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 6868 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
| 6869 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 6870 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 6871 | else |
| 6872 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 6873 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
| 6874 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 6875 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6876 | else |
| 6877 | ac_check_lib_save_LIBS=$LIBS |
| 6878 | LIBS="-ldld $LIBS" |
| 6879 | cat >conftest.$ac_ext <<_ACEOF |
| 6880 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 6881 | /* confdefs.h. */ |
| 6882 | _ACEOF |
| 6883 | cat confdefs.h >>conftest.$ac_ext |
| 6884 | cat >>conftest.$ac_ext <<_ACEOF |
| 6885 | /* end confdefs.h. */ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 6886 | |
| 6887 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6888 | #ifdef __cplusplus |
| 6889 | extern "C" |
| 6890 | #endif |
| 6891 | /* We use char because int might match the return type of a gcc2 |
| 6892 | builtin and then its argument prototype would still apply. */ |
| 6893 | char dld_link (); |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 6894 | int |
| 6895 | main () |
| 6896 | { |
| 6897 | dld_link (); |
| 6898 | ; |
| 6899 | return 0; |
| 6900 | } |
| 6901 | _ACEOF |
| 6902 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6903 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6904 | (eval $ac_link) 2>&5 |
| 6905 | ac_status=$? |
| 6906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6907 | (exit $ac_status); } && |
| 6908 | { ac_try='test -s conftest$ac_exeext' |
| 6909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6910 | (eval $ac_try) 2>&5 |
| 6911 | ac_status=$? |
| 6912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6913 | (exit $ac_status); }; }; then |
| 6914 | ac_cv_lib_dld_dld_link=yes |
| 6915 | else |
| 6916 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 6917 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6918 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 6919 | ac_cv_lib_dld_dld_link=no |
| 6920 | fi |
| 6921 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6922 | LIBS=$ac_check_lib_save_LIBS |
| 6923 | fi |
| 6924 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 6925 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
| 6926 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 6927 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 6928 | fi |
| 6929 | |
| 6930 | |
| 6931 | fi |
| 6932 | |
| 6933 | |
| 6934 | fi |
| 6935 | |
| 6936 | |
| 6937 | fi |
| 6938 | |
| 6939 | |
| 6940 | fi |
| 6941 | |
| 6942 | |
| 6943 | fi |
| 6944 | |
| 6945 | ;; |
| 6946 | esac |
| 6947 | |
| 6948 | if test "x$lt_cv_dlopen" != xno; then |
| 6949 | enable_dlopen=yes |
| 6950 | else |
| 6951 | enable_dlopen=no |
| 6952 | fi |
| 6953 | |
| 6954 | case $lt_cv_dlopen in |
| 6955 | dlopen) |
| 6956 | save_CPPFLAGS="$CPPFLAGS" |
| 6957 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 6958 | |
| 6959 | save_LDFLAGS="$LDFLAGS" |
| 6960 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 6961 | |
| 6962 | save_LIBS="$LIBS" |
| 6963 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 6964 | |
| 6965 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 6966 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
| 6967 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 6968 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6969 | else |
| 6970 | if test "$cross_compiling" = yes; then : |
| 6971 | lt_cv_dlopen_self=cross |
| 6972 | else |
| 6973 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 6974 | lt_status=$lt_dlunknown |
| 6975 | cat > conftest.$ac_ext <<EOF |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 6976 | #line 6976 "configure" |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 6977 | #include "confdefs.h" |
| 6978 | |
| 6979 | #if HAVE_DLFCN_H |
| 6980 | #include <dlfcn.h> |
| 6981 | #endif |
| 6982 | |
| 6983 | #include <stdio.h> |
| 6984 | |
| 6985 | #ifdef RTLD_GLOBAL |
| 6986 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 6987 | #else |
| 6988 | # ifdef DL_GLOBAL |
| 6989 | # define LT_DLGLOBAL DL_GLOBAL |
| 6990 | # else |
| 6991 | # define LT_DLGLOBAL 0 |
| 6992 | # endif |
| 6993 | #endif |
| 6994 | |
| 6995 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 6996 | find out it does not work in some platform. */ |
| 6997 | #ifndef LT_DLLAZY_OR_NOW |
| 6998 | # ifdef RTLD_LAZY |
| 6999 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 7000 | # else |
| 7001 | # ifdef DL_LAZY |
| 7002 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 7003 | # else |
| 7004 | # ifdef RTLD_NOW |
| 7005 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 7006 | # else |
| 7007 | # ifdef DL_NOW |
| 7008 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 7009 | # else |
| 7010 | # define LT_DLLAZY_OR_NOW 0 |
| 7011 | # endif |
| 7012 | # endif |
| 7013 | # endif |
| 7014 | # endif |
| 7015 | #endif |
| 7016 | |
| 7017 | #ifdef __cplusplus |
| 7018 | extern "C" void exit (int); |
| 7019 | #endif |
| 7020 | |
| 7021 | void fnord() { int i=42;} |
| 7022 | int main () |
| 7023 | { |
| 7024 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 7025 | int status = $lt_dlunknown; |
| 7026 | |
| 7027 | if (self) |
| 7028 | { |
| 7029 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 7030 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 7031 | /* dlclose (self); */ |
| 7032 | } |
| 7033 | |
| 7034 | exit (status); |
| 7035 | } |
| 7036 | EOF |
| 7037 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7038 | (eval $ac_link) 2>&5 |
| 7039 | ac_status=$? |
| 7040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7041 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 7042 | (./conftest; exit; ) 2>/dev/null |
| 7043 | lt_status=$? |
| 7044 | case x$lt_status in |
| 7045 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 7046 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 7047 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
| 7048 | esac |
| 7049 | else : |
| 7050 | # compilation failed |
| 7051 | lt_cv_dlopen_self=no |
| 7052 | fi |
| 7053 | fi |
| 7054 | rm -fr conftest* |
| 7055 | |
| 7056 | |
| 7057 | fi |
| 7058 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 7059 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
| 7060 | |
| 7061 | if test "x$lt_cv_dlopen_self" = xyes; then |
| 7062 | LDFLAGS="$LDFLAGS $link_static_flag" |
| 7063 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 7064 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
| 7065 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 7066 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7067 | else |
| 7068 | if test "$cross_compiling" = yes; then : |
| 7069 | lt_cv_dlopen_self_static=cross |
| 7070 | else |
| 7071 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 7072 | lt_status=$lt_dlunknown |
| 7073 | cat > conftest.$ac_ext <<EOF |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 7074 | #line 7074 "configure" |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7075 | #include "confdefs.h" |
| 7076 | |
| 7077 | #if HAVE_DLFCN_H |
| 7078 | #include <dlfcn.h> |
| 7079 | #endif |
| 7080 | |
| 7081 | #include <stdio.h> |
| 7082 | |
| 7083 | #ifdef RTLD_GLOBAL |
| 7084 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 7085 | #else |
| 7086 | # ifdef DL_GLOBAL |
| 7087 | # define LT_DLGLOBAL DL_GLOBAL |
| 7088 | # else |
| 7089 | # define LT_DLGLOBAL 0 |
| 7090 | # endif |
| 7091 | #endif |
| 7092 | |
| 7093 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 7094 | find out it does not work in some platform. */ |
| 7095 | #ifndef LT_DLLAZY_OR_NOW |
| 7096 | # ifdef RTLD_LAZY |
| 7097 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 7098 | # else |
| 7099 | # ifdef DL_LAZY |
| 7100 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 7101 | # else |
| 7102 | # ifdef RTLD_NOW |
| 7103 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 7104 | # else |
| 7105 | # ifdef DL_NOW |
| 7106 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 7107 | # else |
| 7108 | # define LT_DLLAZY_OR_NOW 0 |
| 7109 | # endif |
| 7110 | # endif |
| 7111 | # endif |
| 7112 | # endif |
| 7113 | #endif |
| 7114 | |
| 7115 | #ifdef __cplusplus |
| 7116 | extern "C" void exit (int); |
| 7117 | #endif |
| 7118 | |
| 7119 | void fnord() { int i=42;} |
| 7120 | int main () |
| 7121 | { |
| 7122 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 7123 | int status = $lt_dlunknown; |
| 7124 | |
| 7125 | if (self) |
| 7126 | { |
| 7127 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 7128 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 7129 | /* dlclose (self); */ |
| 7130 | } |
| 7131 | |
| 7132 | exit (status); |
| 7133 | } |
| 7134 | EOF |
| 7135 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7136 | (eval $ac_link) 2>&5 |
| 7137 | ac_status=$? |
| 7138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7139 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 7140 | (./conftest; exit; ) 2>/dev/null |
| 7141 | lt_status=$? |
| 7142 | case x$lt_status in |
| 7143 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 7144 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 7145 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
| 7146 | esac |
| 7147 | else : |
| 7148 | # compilation failed |
| 7149 | lt_cv_dlopen_self_static=no |
| 7150 | fi |
| 7151 | fi |
| 7152 | rm -fr conftest* |
| 7153 | |
| 7154 | |
| 7155 | fi |
| 7156 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 7157 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
| 7158 | fi |
| 7159 | |
| 7160 | CPPFLAGS="$save_CPPFLAGS" |
| 7161 | LDFLAGS="$save_LDFLAGS" |
| 7162 | LIBS="$save_LIBS" |
| 7163 | ;; |
| 7164 | esac |
| 7165 | |
| 7166 | case $lt_cv_dlopen_self in |
| 7167 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 7168 | *) enable_dlopen_self=unknown ;; |
| 7169 | esac |
| 7170 | |
| 7171 | case $lt_cv_dlopen_self_static in |
| 7172 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 7173 | *) enable_dlopen_self_static=unknown ;; |
| 7174 | esac |
| 7175 | fi |
| 7176 | |
| 7177 | |
| 7178 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 7179 | case $archive_cmds in |
| 7180 | *'~'*) |
| 7181 | # FIXME: we may have to deal with multi-command sequences. |
| 7182 | ;; |
| 7183 | '$CC '*) |
| 7184 | # Test whether the compiler implicitly links with -lc since on some |
| 7185 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 7186 | # to ld, don't add -lc before -lgcc. |
| 7187 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 7188 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 7189 | if test "${lt_cv_archive_cmds_need_lc+set}" = set; then |
| 7190 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7191 | else |
| 7192 | $rm conftest* |
| 7193 | echo 'static int dummy;' > conftest.$ac_ext |
| 7194 | |
| 7195 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7196 | (eval $ac_compile) 2>&5 |
| 7197 | ac_status=$? |
| 7198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7199 | (exit $ac_status); }; then |
| 7200 | soname=conftest |
| 7201 | lib=conftest |
| 7202 | libobjs=conftest.$ac_objext |
| 7203 | deplibs= |
| 7204 | wl=$lt_cv_prog_cc_wl |
| 7205 | compiler_flags=-v |
| 7206 | linker_flags=-v |
| 7207 | verstring= |
| 7208 | output_objdir=. |
| 7209 | libname=conftest |
| 7210 | save_allow_undefined_flag=$allow_undefined_flag |
| 7211 | allow_undefined_flag= |
| 7212 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 7213 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 7214 | ac_status=$? |
| 7215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7216 | (exit $ac_status); } |
| 7217 | then |
| 7218 | lt_cv_archive_cmds_need_lc=no |
| 7219 | else |
| 7220 | lt_cv_archive_cmds_need_lc=yes |
| 7221 | fi |
| 7222 | allow_undefined_flag=$save_allow_undefined_flag |
| 7223 | else |
| 7224 | cat conftest.err 1>&5 |
| 7225 | fi |
| 7226 | fi |
| 7227 | |
| 7228 | echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5 |
| 7229 | echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6 |
| 7230 | ;; |
| 7231 | esac |
| 7232 | fi |
| 7233 | need_lc=${lt_cv_archive_cmds_need_lc-yes} |
| 7234 | |
| 7235 | # The second clause should only fire when bootstrapping the |
| 7236 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 7237 | # with your package, and you will get complaints that there are |
| 7238 | # no rules to generate ltmain.sh. |
| 7239 | if test -f "$ltmain"; then |
| 7240 | : |
| 7241 | else |
| 7242 | # If there is no Makefile yet, we rely on a make rule to execute |
| 7243 | # `config.status --recheck' to rerun these tests and create the |
| 7244 | # libtool script then. |
| 7245 | test -f Makefile && make "$ltmain" |
| 7246 | fi |
| 7247 | |
| 7248 | if test -f "$ltmain"; then |
| 7249 | trap "$rm \"${ofile}T\"; exit 1" 1 2 15 |
| 7250 | $rm -f "${ofile}T" |
| 7251 | |
| 7252 | echo creating $ofile |
| 7253 | |
| 7254 | # Now quote all the things that may contain metacharacters while being |
| 7255 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 7256 | # variables and quote the copies for generation of the libtool script. |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 7257 | for var in echo old_CC old_CFLAGS SED \ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7258 | AR AR_FLAGS CC LD LN_S NM SHELL \ |
| 7259 | reload_flag reload_cmds wl \ |
| 7260 | pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \ |
| 7261 | thread_safe_flag_spec whole_archive_flag_spec libname_spec \ |
| 7262 | library_names_spec soname_spec \ |
| 7263 | RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \ |
| 7264 | old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \ |
| 7265 | postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \ |
| 7266 | old_striplib striplib file_magic_cmd export_symbols_cmds \ |
| 7267 | deplibs_check_method allow_undefined_flag no_undefined_flag \ |
| 7268 | finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \ |
| 7269 | global_symbol_to_c_name_address \ |
| 7270 | hardcode_libdir_flag_spec hardcode_libdir_separator \ |
| 7271 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 7272 | compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do |
| 7273 | |
| 7274 | case $var in |
| 7275 | reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \ |
| 7276 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 7277 | export_symbols_cmds | archive_cmds | archive_expsym_cmds | \ |
| 7278 | extract_expsyms_cmds | old_archive_from_expsyms_cmds | \ |
| 7279 | postinstall_cmds | postuninstall_cmds | \ |
| 7280 | finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 7281 | # Double-quote double-evaled strings. |
| 7282 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 7283 | ;; |
| 7284 | *) |
| 7285 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 7286 | ;; |
| 7287 | esac |
| 7288 | done |
| 7289 | |
| 7290 | cat <<__EOF__ > "${ofile}T" |
| 7291 | #! $SHELL |
| 7292 | |
| 7293 | # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
| 7294 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
| 7295 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 7296 | # |
| 7297 | # Copyright (C) 1996-2000 Free Software Foundation, Inc. |
| 7298 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
| 7299 | # |
| 7300 | # This program is free software; you can redistribute it and/or modify |
| 7301 | # it under the terms of the GNU General Public License as published by |
| 7302 | # the Free Software Foundation; either version 2 of the License, or |
| 7303 | # (at your option) any later version. |
| 7304 | # |
| 7305 | # This program is distributed in the hope that it will be useful, but |
| 7306 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 7307 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 7308 | # General Public License for more details. |
| 7309 | # |
| 7310 | # You should have received a copy of the GNU General Public License |
| 7311 | # along with this program; if not, write to the Free Software |
| 7312 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 7313 | # |
| 7314 | # As a special exception to the GNU General Public License, if you |
| 7315 | # distribute this file as part of a program that contains a |
| 7316 | # configuration script generated by Autoconf, you may include it under |
| 7317 | # the same distribution terms that you use for the rest of that program. |
| 7318 | |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 7319 | # A sed that does not truncate output. |
| 7320 | SED=$lt_SED |
| 7321 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7322 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 7323 | Xsed="${SED} -e s/^X//" |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7324 | |
| 7325 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 7326 | # if CDPATH is set. |
| 7327 | if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
| 7328 | |
| 7329 | # ### BEGIN LIBTOOL CONFIG |
| 7330 | |
| 7331 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 7332 | |
| 7333 | # Shell to use when invoking shell scripts. |
| 7334 | SHELL=$lt_SHELL |
| 7335 | |
| 7336 | # Whether or not to build shared libraries. |
| 7337 | build_libtool_libs=$enable_shared |
| 7338 | |
| 7339 | # Whether or not to build static libraries. |
| 7340 | build_old_libs=$enable_static |
| 7341 | |
| 7342 | # Whether or not to add -lc for building shared libraries. |
| 7343 | build_libtool_need_lc=$need_lc |
| 7344 | |
| 7345 | # Whether or not to optimize for fast installation. |
| 7346 | fast_install=$enable_fast_install |
| 7347 | |
| 7348 | # The host system. |
| 7349 | host_alias=$host_alias |
| 7350 | host=$host |
| 7351 | |
| 7352 | # An echo program that does not interpret backslashes. |
| 7353 | echo=$lt_echo |
| 7354 | |
| 7355 | # The archiver. |
| 7356 | AR=$lt_AR |
| 7357 | AR_FLAGS=$lt_AR_FLAGS |
| 7358 | |
| 7359 | # The default C compiler. |
| 7360 | CC=$lt_CC |
| 7361 | |
| 7362 | # Is the compiler the GNU C compiler? |
| 7363 | with_gcc=$GCC |
| 7364 | |
| 7365 | # The linker used to build libraries. |
| 7366 | LD=$lt_LD |
| 7367 | |
| 7368 | # Whether we need hard or soft links. |
| 7369 | LN_S=$lt_LN_S |
| 7370 | |
| 7371 | # A BSD-compatible nm program. |
| 7372 | NM=$lt_NM |
| 7373 | |
| 7374 | # A symbol stripping program |
| 7375 | STRIP=$STRIP |
| 7376 | |
| 7377 | # Used to examine libraries when file_magic_cmd begins "file" |
| 7378 | MAGIC_CMD=$MAGIC_CMD |
| 7379 | |
| 7380 | # Used on cygwin: DLL creation program. |
| 7381 | DLLTOOL="$DLLTOOL" |
| 7382 | |
| 7383 | # Used on cygwin: object dumper. |
| 7384 | OBJDUMP="$OBJDUMP" |
| 7385 | |
| 7386 | # Used on cygwin: assembler. |
| 7387 | AS="$AS" |
| 7388 | |
| 7389 | # The name of the directory that contains temporary libtool files. |
| 7390 | objdir=$objdir |
| 7391 | |
| 7392 | # How to create reloadable object files. |
| 7393 | reload_flag=$lt_reload_flag |
| 7394 | reload_cmds=$lt_reload_cmds |
| 7395 | |
| 7396 | # How to pass a linker flag through the compiler. |
| 7397 | wl=$lt_wl |
| 7398 | |
| 7399 | # Object file suffix (normally "o"). |
| 7400 | objext="$ac_objext" |
| 7401 | |
| 7402 | # Old archive suffix (normally "a"). |
| 7403 | libext="$libext" |
| 7404 | |
| 7405 | # Executable file suffix (normally ""). |
| 7406 | exeext="$exeext" |
| 7407 | |
| 7408 | # Additional compiler flags for building library objects. |
| 7409 | pic_flag=$lt_pic_flag |
| 7410 | pic_mode=$pic_mode |
| 7411 | |
| 7412 | # Does compiler simultaneously support -c and -o options? |
| 7413 | compiler_c_o=$lt_compiler_c_o |
| 7414 | |
| 7415 | # Can we write directly to a .lo ? |
| 7416 | compiler_o_lo=$lt_compiler_o_lo |
| 7417 | |
| 7418 | # Must we lock files when doing compilation ? |
| 7419 | need_locks=$lt_need_locks |
| 7420 | |
| 7421 | # Do we need the lib prefix for modules? |
| 7422 | need_lib_prefix=$need_lib_prefix |
| 7423 | |
| 7424 | # Do we need a version for libraries? |
| 7425 | need_version=$need_version |
| 7426 | |
| 7427 | # Whether dlopen is supported. |
| 7428 | dlopen_support=$enable_dlopen |
| 7429 | |
| 7430 | # Whether dlopen of programs is supported. |
| 7431 | dlopen_self=$enable_dlopen_self |
| 7432 | |
| 7433 | # Whether dlopen of statically linked programs is supported. |
| 7434 | dlopen_self_static=$enable_dlopen_self_static |
| 7435 | |
| 7436 | # Compiler flag to prevent dynamic linking. |
| 7437 | link_static_flag=$lt_link_static_flag |
| 7438 | |
| 7439 | # Compiler flag to turn off builtin functions. |
| 7440 | no_builtin_flag=$lt_no_builtin_flag |
| 7441 | |
| 7442 | # Compiler flag to allow reflexive dlopens. |
| 7443 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 7444 | |
| 7445 | # Compiler flag to generate shared objects directly from archives. |
| 7446 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 7447 | |
| 7448 | # Compiler flag to generate thread-safe objects. |
| 7449 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
| 7450 | |
| 7451 | # Library versioning type. |
| 7452 | version_type=$version_type |
| 7453 | |
| 7454 | # Format of library name prefix. |
| 7455 | libname_spec=$lt_libname_spec |
| 7456 | |
| 7457 | # List of archive names. First name is the real one, the rest are links. |
| 7458 | # The last name is the one that the linker finds with -lNAME. |
| 7459 | library_names_spec=$lt_library_names_spec |
| 7460 | |
| 7461 | # The coded name of the library, if different from the real name. |
| 7462 | soname_spec=$lt_soname_spec |
| 7463 | |
| 7464 | # Commands used to build and install an old-style archive. |
| 7465 | RANLIB=$lt_RANLIB |
| 7466 | old_archive_cmds=$lt_old_archive_cmds |
| 7467 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 7468 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 7469 | |
| 7470 | # Create an old-style archive from a shared archive. |
| 7471 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 7472 | |
| 7473 | # Create a temporary old-style archive to link instead of a shared archive. |
| 7474 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 7475 | |
| 7476 | # Commands used to build and install a shared archive. |
| 7477 | archive_cmds=$lt_archive_cmds |
| 7478 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 7479 | postinstall_cmds=$lt_postinstall_cmds |
| 7480 | postuninstall_cmds=$lt_postuninstall_cmds |
| 7481 | |
| 7482 | # Commands to strip libraries. |
| 7483 | old_striplib=$lt_old_striplib |
| 7484 | striplib=$lt_striplib |
| 7485 | |
| 7486 | # Method to check whether dependent libraries are shared objects. |
| 7487 | deplibs_check_method=$lt_deplibs_check_method |
| 7488 | |
| 7489 | # Command to use when deplibs_check_method == file_magic. |
| 7490 | file_magic_cmd=$lt_file_magic_cmd |
| 7491 | |
| 7492 | # Flag that allows shared libraries with undefined symbols to be built. |
| 7493 | allow_undefined_flag=$lt_allow_undefined_flag |
| 7494 | |
| 7495 | # Flag that forces no undefined symbols. |
| 7496 | no_undefined_flag=$lt_no_undefined_flag |
| 7497 | |
| 7498 | # Commands used to finish a libtool library installation in a directory. |
| 7499 | finish_cmds=$lt_finish_cmds |
| 7500 | |
| 7501 | # Same as above, but a single script fragment to be evaled but not shown. |
| 7502 | finish_eval=$lt_finish_eval |
| 7503 | |
| 7504 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 7505 | global_symbol_pipe=$lt_global_symbol_pipe |
| 7506 | |
| 7507 | # Transform the output of nm in a proper C declaration |
| 7508 | global_symbol_to_cdecl=$lt_global_symbol_to_cdecl |
| 7509 | |
| 7510 | # Transform the output of nm in a C name address pair |
| 7511 | global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address |
| 7512 | |
| 7513 | # This is the shared library runtime path variable. |
| 7514 | runpath_var=$runpath_var |
| 7515 | |
| 7516 | # This is the shared library path variable. |
| 7517 | shlibpath_var=$shlibpath_var |
| 7518 | |
| 7519 | # Is shlibpath searched before the hard-coded library search path? |
| 7520 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 7521 | |
| 7522 | # How to hardcode a shared library path into an executable. |
| 7523 | hardcode_action=$hardcode_action |
| 7524 | |
| 7525 | # Whether we should hardcode library paths into libraries. |
| 7526 | hardcode_into_libs=$hardcode_into_libs |
| 7527 | |
| 7528 | # Flag to hardcode \$libdir into a binary during linking. |
| 7529 | # This must work even if \$libdir does not exist. |
| 7530 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 7531 | |
| 7532 | # Whether we need a single -rpath flag with a separated argument. |
| 7533 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 7534 | |
| 7535 | # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the |
| 7536 | # resulting binary. |
| 7537 | hardcode_direct=$hardcode_direct |
| 7538 | |
| 7539 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 7540 | # resulting binary. |
| 7541 | hardcode_minus_L=$hardcode_minus_L |
| 7542 | |
| 7543 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 7544 | # the resulting binary. |
| 7545 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 7546 | |
| 7547 | # Variables whose values should be saved in libtool wrapper scripts and |
| 7548 | # restored at relink time. |
| 7549 | variables_saved_for_relink="$variables_saved_for_relink" |
| 7550 | |
| 7551 | # Whether libtool must link a program against all its dependency libraries. |
| 7552 | link_all_deplibs=$link_all_deplibs |
| 7553 | |
| 7554 | # Compile-time system search path for libraries |
| 7555 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 7556 | |
| 7557 | # Run-time system search path for libraries |
| 7558 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 7559 | |
| 7560 | # Fix the shell variable \$srcfile for the compiler. |
| 7561 | fix_srcfile_path="$fix_srcfile_path" |
| 7562 | |
| 7563 | # Set to yes if exported symbols are required. |
| 7564 | always_export_symbols=$always_export_symbols |
| 7565 | |
| 7566 | # The commands to list exported symbols. |
| 7567 | export_symbols_cmds=$lt_export_symbols_cmds |
| 7568 | |
| 7569 | # The commands to extract the exported symbol list from a shared archive. |
| 7570 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 7571 | |
| 7572 | # Symbols that should not be listed in the preloaded symbols. |
| 7573 | exclude_expsyms=$lt_exclude_expsyms |
| 7574 | |
| 7575 | # Symbols that must always be exported. |
| 7576 | include_expsyms=$lt_include_expsyms |
| 7577 | |
| 7578 | # ### END LIBTOOL CONFIG |
| 7579 | |
| 7580 | __EOF__ |
| 7581 | |
| 7582 | case $host_os in |
| 7583 | aix3*) |
| 7584 | cat <<\EOF >> "${ofile}T" |
| 7585 | |
| 7586 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 7587 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 7588 | # vanish in a puff of smoke. |
| 7589 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 7590 | COLLECT_NAMES= |
| 7591 | export COLLECT_NAMES |
| 7592 | fi |
| 7593 | EOF |
| 7594 | ;; |
| 7595 | esac |
| 7596 | |
| 7597 | case $host_os in |
| 7598 | cygwin* | mingw* | pw32* | os2*) |
| 7599 | cat <<'EOF' >> "${ofile}T" |
| 7600 | # This is a source program that is used to create dlls on Windows |
| 7601 | # Don't remove nor modify the starting and closing comments |
| 7602 | # /* ltdll.c starts here */ |
| 7603 | # #define WIN32_LEAN_AND_MEAN |
| 7604 | # #include <windows.h> |
| 7605 | # #undef WIN32_LEAN_AND_MEAN |
| 7606 | # #include <stdio.h> |
| 7607 | # |
| 7608 | # #ifndef __CYGWIN__ |
| 7609 | # # ifdef __CYGWIN32__ |
| 7610 | # # define __CYGWIN__ __CYGWIN32__ |
| 7611 | # # endif |
| 7612 | # #endif |
| 7613 | # |
| 7614 | # #ifdef __cplusplus |
| 7615 | # extern "C" { |
| 7616 | # #endif |
| 7617 | # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); |
| 7618 | # #ifdef __cplusplus |
| 7619 | # } |
| 7620 | # #endif |
| 7621 | # |
| 7622 | # #ifdef __CYGWIN__ |
| 7623 | # #include <cygwin/cygwin_dll.h> |
| 7624 | # DECLARE_CYGWIN_DLL( DllMain ); |
| 7625 | # #endif |
| 7626 | # HINSTANCE __hDllInstance_base; |
| 7627 | # |
| 7628 | # BOOL APIENTRY |
| 7629 | # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) |
| 7630 | # { |
| 7631 | # __hDllInstance_base = hInst; |
| 7632 | # return TRUE; |
| 7633 | # } |
| 7634 | # /* ltdll.c ends here */ |
| 7635 | # This is a source program that is used to create import libraries |
| 7636 | # on Windows for dlls which lack them. Don't remove nor modify the |
| 7637 | # starting and closing comments |
| 7638 | # /* impgen.c starts here */ |
| 7639 | # /* Copyright (C) 1999-2000 Free Software Foundation, Inc. |
| 7640 | # |
| 7641 | # This file is part of GNU libtool. |
| 7642 | # |
| 7643 | # This program is free software; you can redistribute it and/or modify |
| 7644 | # it under the terms of the GNU General Public License as published by |
| 7645 | # the Free Software Foundation; either version 2 of the License, or |
| 7646 | # (at your option) any later version. |
| 7647 | # |
| 7648 | # This program is distributed in the hope that it will be useful, |
| 7649 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 7650 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 7651 | # GNU General Public License for more details. |
| 7652 | # |
| 7653 | # You should have received a copy of the GNU General Public License |
| 7654 | # along with this program; if not, write to the Free Software |
| 7655 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 7656 | # */ |
| 7657 | # |
| 7658 | # #include <stdio.h> /* for printf() */ |
| 7659 | # #include <unistd.h> /* for open(), lseek(), read() */ |
| 7660 | # #include <fcntl.h> /* for O_RDONLY, O_BINARY */ |
| 7661 | # #include <string.h> /* for strdup() */ |
| 7662 | # |
| 7663 | # /* O_BINARY isn't required (or even defined sometimes) under Unix */ |
| 7664 | # #ifndef O_BINARY |
| 7665 | # #define O_BINARY 0 |
| 7666 | # #endif |
| 7667 | # |
| 7668 | # static unsigned int |
| 7669 | # pe_get16 (fd, offset) |
| 7670 | # int fd; |
| 7671 | # int offset; |
| 7672 | # { |
| 7673 | # unsigned char b[2]; |
| 7674 | # lseek (fd, offset, SEEK_SET); |
| 7675 | # read (fd, b, 2); |
| 7676 | # return b[0] + (b[1]<<8); |
| 7677 | # } |
| 7678 | # |
| 7679 | # static unsigned int |
| 7680 | # pe_get32 (fd, offset) |
| 7681 | # int fd; |
| 7682 | # int offset; |
| 7683 | # { |
| 7684 | # unsigned char b[4]; |
| 7685 | # lseek (fd, offset, SEEK_SET); |
| 7686 | # read (fd, b, 4); |
| 7687 | # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); |
| 7688 | # } |
| 7689 | # |
| 7690 | # static unsigned int |
| 7691 | # pe_as32 (ptr) |
| 7692 | # void *ptr; |
| 7693 | # { |
| 7694 | # unsigned char *b = ptr; |
| 7695 | # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); |
| 7696 | # } |
| 7697 | # |
| 7698 | # int |
| 7699 | # main (argc, argv) |
| 7700 | # int argc; |
| 7701 | # char *argv[]; |
| 7702 | # { |
| 7703 | # int dll; |
| 7704 | # unsigned long pe_header_offset, opthdr_ofs, num_entries, i; |
| 7705 | # unsigned long export_rva, export_size, nsections, secptr, expptr; |
| 7706 | # unsigned long name_rvas, nexp; |
| 7707 | # unsigned char *expdata, *erva; |
| 7708 | # char *filename, *dll_name; |
| 7709 | # |
| 7710 | # filename = argv[1]; |
| 7711 | # |
| 7712 | # dll = open(filename, O_RDONLY|O_BINARY); |
| 7713 | # if (dll < 1) |
| 7714 | # return 1; |
| 7715 | # |
| 7716 | # dll_name = filename; |
| 7717 | # |
| 7718 | # for (i=0; filename[i]; i++) |
| 7719 | # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':') |
| 7720 | # dll_name = filename + i +1; |
| 7721 | # |
| 7722 | # pe_header_offset = pe_get32 (dll, 0x3c); |
| 7723 | # opthdr_ofs = pe_header_offset + 4 + 20; |
| 7724 | # num_entries = pe_get32 (dll, opthdr_ofs + 92); |
| 7725 | # |
| 7726 | # if (num_entries < 1) /* no exports */ |
| 7727 | # return 1; |
| 7728 | # |
| 7729 | # export_rva = pe_get32 (dll, opthdr_ofs + 96); |
| 7730 | # export_size = pe_get32 (dll, opthdr_ofs + 100); |
| 7731 | # nsections = pe_get16 (dll, pe_header_offset + 4 +2); |
| 7732 | # secptr = (pe_header_offset + 4 + 20 + |
| 7733 | # pe_get16 (dll, pe_header_offset + 4 + 16)); |
| 7734 | # |
| 7735 | # expptr = 0; |
| 7736 | # for (i = 0; i < nsections; i++) |
| 7737 | # { |
| 7738 | # char sname[8]; |
| 7739 | # unsigned long secptr1 = secptr + 40 * i; |
| 7740 | # unsigned long vaddr = pe_get32 (dll, secptr1 + 12); |
| 7741 | # unsigned long vsize = pe_get32 (dll, secptr1 + 16); |
| 7742 | # unsigned long fptr = pe_get32 (dll, secptr1 + 20); |
| 7743 | # lseek(dll, secptr1, SEEK_SET); |
| 7744 | # read(dll, sname, 8); |
| 7745 | # if (vaddr <= export_rva && vaddr+vsize > export_rva) |
| 7746 | # { |
| 7747 | # expptr = fptr + (export_rva - vaddr); |
| 7748 | # if (export_rva + export_size > vaddr + vsize) |
| 7749 | # export_size = vsize - (export_rva - vaddr); |
| 7750 | # break; |
| 7751 | # } |
| 7752 | # } |
| 7753 | # |
| 7754 | # expdata = (unsigned char*)malloc(export_size); |
| 7755 | # lseek (dll, expptr, SEEK_SET); |
| 7756 | # read (dll, expdata, export_size); |
| 7757 | # erva = expdata - export_rva; |
| 7758 | # |
| 7759 | # nexp = pe_as32 (expdata+24); |
| 7760 | # name_rvas = pe_as32 (expdata+32); |
| 7761 | # |
| 7762 | # printf ("EXPORTS\n"); |
| 7763 | # for (i = 0; i<nexp; i++) |
| 7764 | # { |
| 7765 | # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4); |
| 7766 | # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i); |
| 7767 | # } |
| 7768 | # |
| 7769 | # return 0; |
| 7770 | # } |
| 7771 | # /* impgen.c ends here */ |
| 7772 | |
| 7773 | EOF |
| 7774 | ;; |
| 7775 | esac |
| 7776 | |
| 7777 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 7778 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 7779 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 7780 | # is reportedly fixed, but why not run on old versions too? |
| 7781 | sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1) |
| 7782 | |
| 7783 | mv -f "${ofile}T" "$ofile" || \ |
| 7784 | (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T") |
| 7785 | chmod +x "$ofile" |
| 7786 | fi |
| 7787 | |
| 7788 | |
| 7789 | |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7790 | |
| 7791 | |
| 7792 | # This can be used to rebuild libtool when needed |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7793 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7794 | |
| 7795 | # Always use our own libtool. |
| 7796 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 7797 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7798 | # Prevent multiple expansion |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7799 | |
| 7800 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7801 | |
| 7802 | |
jjako | a9639f3 | 2003-07-07 15:30:11 +0000 | [diff] [blame] | 7803 | # Check whether --enable-static-exec or --disable-static-exec was given. |
| 7804 | if test "${enable_static_exec+set}" = set; then |
| 7805 | enableval="$enable_static_exec" |
| 7806 | EXEC_LDFLAGS="-all-static" |
| 7807 | fi; |
| 7808 | |
| 7809 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7810 | |
| 7811 | # Checks for libraries. |
| 7812 | # FIXME: Replace `main' with a function in `-le': |
jjako | a9639f3 | 2003-07-07 15:30:11 +0000 | [diff] [blame] | 7813 | #AC_CHECK_LIB([e], [main]) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7814 | # FIXME: Replace `main' with a function in `-lgtp': |
jjako | a9639f3 | 2003-07-07 15:30:11 +0000 | [diff] [blame] | 7815 | #AC_CHECK_LIB([gtp], [main]) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7816 | # FIXME: Replace `main' with a function in `-links': |
jjako | a9639f3 | 2003-07-07 15:30:11 +0000 | [diff] [blame] | 7817 | #AC_CHECK_LIB([inks], [main]) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7818 | |
| 7819 | # Checks for header files. |
| 7820 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 7821 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 7822 | if test "${ac_cv_header_stdc+set}" = set; then |
| 7823 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7824 | else |
| 7825 | cat >conftest.$ac_ext <<_ACEOF |
| 7826 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 7827 | /* confdefs.h. */ |
| 7828 | _ACEOF |
| 7829 | cat confdefs.h >>conftest.$ac_ext |
| 7830 | cat >>conftest.$ac_ext <<_ACEOF |
| 7831 | /* end confdefs.h. */ |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7832 | #include <stdlib.h> |
| 7833 | #include <stdarg.h> |
| 7834 | #include <string.h> |
| 7835 | #include <float.h> |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7836 | |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 7837 | int |
| 7838 | main () |
| 7839 | { |
| 7840 | |
| 7841 | ; |
| 7842 | return 0; |
| 7843 | } |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7844 | _ACEOF |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 7845 | rm -f conftest.$ac_objext |
| 7846 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7847 | (eval $ac_compile) 2>&5 |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7848 | ac_status=$? |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 7850 | (exit $ac_status); } && |
| 7851 | { ac_try='test -s conftest.$ac_objext' |
| 7852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7853 | (eval $ac_try) 2>&5 |
| 7854 | ac_status=$? |
| 7855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7856 | (exit $ac_status); }; }; then |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7857 | ac_cv_header_stdc=yes |
| 7858 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7859 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 7860 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7861 | |
| 7862 | ac_cv_header_stdc=no |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7863 | fi |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 7864 | rm -f conftest.$ac_objext conftest.$ac_ext |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7865 | |
| 7866 | if test $ac_cv_header_stdc = yes; then |
| 7867 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7868 | cat >conftest.$ac_ext <<_ACEOF |
| 7869 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 7870 | /* confdefs.h. */ |
| 7871 | _ACEOF |
| 7872 | cat confdefs.h >>conftest.$ac_ext |
| 7873 | cat >>conftest.$ac_ext <<_ACEOF |
| 7874 | /* end confdefs.h. */ |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7875 | #include <string.h> |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7876 | |
| 7877 | _ACEOF |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7878 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 7879 | $EGREP "memchr" >/dev/null 2>&1; then |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7880 | : |
| 7881 | else |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7882 | ac_cv_header_stdc=no |
| 7883 | fi |
| 7884 | rm -f conftest* |
| 7885 | |
| 7886 | fi |
| 7887 | |
| 7888 | if test $ac_cv_header_stdc = yes; then |
| 7889 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7890 | cat >conftest.$ac_ext <<_ACEOF |
| 7891 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 7892 | /* confdefs.h. */ |
| 7893 | _ACEOF |
| 7894 | cat confdefs.h >>conftest.$ac_ext |
| 7895 | cat >>conftest.$ac_ext <<_ACEOF |
| 7896 | /* end confdefs.h. */ |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7897 | #include <stdlib.h> |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7898 | |
| 7899 | _ACEOF |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7900 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 7901 | $EGREP "free" >/dev/null 2>&1; then |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7902 | : |
| 7903 | else |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7904 | ac_cv_header_stdc=no |
| 7905 | fi |
| 7906 | rm -f conftest* |
| 7907 | |
| 7908 | fi |
| 7909 | |
| 7910 | if test $ac_cv_header_stdc = yes; then |
| 7911 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7912 | if test "$cross_compiling" = yes; then |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7913 | : |
| 7914 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7915 | cat >conftest.$ac_ext <<_ACEOF |
| 7916 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 7917 | /* confdefs.h. */ |
| 7918 | _ACEOF |
| 7919 | cat confdefs.h >>conftest.$ac_ext |
| 7920 | cat >>conftest.$ac_ext <<_ACEOF |
| 7921 | /* end confdefs.h. */ |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7922 | #include <ctype.h> |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7923 | #if ((' ' & 0x0FF) == 0x020) |
| 7924 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 7925 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 7926 | #else |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 7927 | # define ISLOWER(c) \ |
| 7928 | (('a' <= (c) && (c) <= 'i') \ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7929 | || ('j' <= (c) && (c) <= 'r') \ |
| 7930 | || ('s' <= (c) && (c) <= 'z')) |
| 7931 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 7932 | #endif |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7933 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7934 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 7935 | int |
| 7936 | main () |
| 7937 | { |
| 7938 | int i; |
| 7939 | for (i = 0; i < 256; i++) |
| 7940 | if (XOR (islower (i), ISLOWER (i)) |
| 7941 | || toupper (i) != TOUPPER (i)) |
| 7942 | exit(2); |
| 7943 | exit (0); |
| 7944 | } |
| 7945 | _ACEOF |
| 7946 | rm -f conftest$ac_exeext |
| 7947 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7948 | (eval $ac_link) 2>&5 |
| 7949 | ac_status=$? |
| 7950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7951 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7953 | (eval $ac_try) 2>&5 |
| 7954 | ac_status=$? |
| 7955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7956 | (exit $ac_status); }; }; then |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7957 | : |
| 7958 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7959 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7960 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 7961 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7962 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7963 | ( exit $ac_status ) |
| 7964 | ac_cv_header_stdc=no |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7965 | fi |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 7966 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7967 | fi |
| 7968 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7969 | fi |
| 7970 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 7971 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7972 | if test $ac_cv_header_stdc = yes; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7973 | |
| 7974 | cat >>confdefs.h <<\_ACEOF |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7975 | #define STDC_HEADERS 1 |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7976 | _ACEOF |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7977 | |
| 7978 | fi |
| 7979 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7980 | echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 7981 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 |
| 7982 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
| 7983 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7984 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7985 | cat >conftest.$ac_ext <<_ACEOF |
| 7986 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 7987 | /* confdefs.h. */ |
| 7988 | _ACEOF |
| 7989 | cat confdefs.h >>conftest.$ac_ext |
| 7990 | cat >>conftest.$ac_ext <<_ACEOF |
| 7991 | /* end confdefs.h. */ |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7992 | #include <sys/types.h> |
| 7993 | #include <sys/wait.h> |
| 7994 | #ifndef WEXITSTATUS |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7995 | # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7996 | #endif |
| 7997 | #ifndef WIFEXITED |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7998 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7999 | #endif |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8000 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8001 | int |
| 8002 | main () |
| 8003 | { |
| 8004 | int s; |
| 8005 | wait (&s); |
| 8006 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 8007 | ; |
| 8008 | return 0; |
| 8009 | } |
| 8010 | _ACEOF |
| 8011 | rm -f conftest.$ac_objext |
| 8012 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8013 | (eval $ac_compile) 2>&5 |
| 8014 | ac_status=$? |
| 8015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8016 | (exit $ac_status); } && |
| 8017 | { ac_try='test -s conftest.$ac_objext' |
| 8018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8019 | (eval $ac_try) 2>&5 |
| 8020 | ac_status=$? |
| 8021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8022 | (exit $ac_status); }; }; then |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8023 | ac_cv_header_sys_wait_h=yes |
| 8024 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8025 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 8026 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8027 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8028 | ac_cv_header_sys_wait_h=no |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8029 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8030 | rm -f conftest.$ac_objext conftest.$ac_ext |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8031 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8032 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
| 8033 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8034 | if test $ac_cv_header_sys_wait_h = yes; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8035 | |
| 8036 | cat >>confdefs.h <<\_ACEOF |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8037 | #define HAVE_SYS_WAIT_H 1 |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8038 | _ACEOF |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8039 | |
| 8040 | fi |
| 8041 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8042 | |
| 8043 | |
| 8044 | |
| 8045 | |
| 8046 | |
| 8047 | |
| 8048 | |
| 8049 | |
| 8050 | |
| 8051 | |
| 8052 | |
| 8053 | |
| 8054 | for ac_header in arpa/inet.h fcntl.h netdb.h netinet/in.h stdint.h stdlib.h string.h sys/ioctl.h sys/socket.h sys/time.h syslog.h unistd.h |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8055 | do |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8056 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8057 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8058 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8059 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8060 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8061 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8062 | fi |
| 8063 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8064 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8065 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8066 | # Is the header compilable? |
| 8067 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8068 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 8069 | cat >conftest.$ac_ext <<_ACEOF |
| 8070 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 8071 | /* confdefs.h. */ |
| 8072 | _ACEOF |
| 8073 | cat confdefs.h >>conftest.$ac_ext |
| 8074 | cat >>conftest.$ac_ext <<_ACEOF |
| 8075 | /* end confdefs.h. */ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8076 | $ac_includes_default |
| 8077 | #include <$ac_header> |
| 8078 | _ACEOF |
| 8079 | rm -f conftest.$ac_objext |
| 8080 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8081 | (eval $ac_compile) 2>&5 |
| 8082 | ac_status=$? |
| 8083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8084 | (exit $ac_status); } && |
| 8085 | { ac_try='test -s conftest.$ac_objext' |
| 8086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8087 | (eval $ac_try) 2>&5 |
| 8088 | ac_status=$? |
| 8089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8090 | (exit $ac_status); }; }; then |
| 8091 | ac_header_compiler=yes |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8092 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8093 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 8094 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8095 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8096 | ac_header_compiler=no |
| 8097 | fi |
| 8098 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8099 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8100 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8101 | |
| 8102 | # Is the header present? |
| 8103 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8104 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 8105 | cat >conftest.$ac_ext <<_ACEOF |
| 8106 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 8107 | /* confdefs.h. */ |
| 8108 | _ACEOF |
| 8109 | cat confdefs.h >>conftest.$ac_ext |
| 8110 | cat >>conftest.$ac_ext <<_ACEOF |
| 8111 | /* end confdefs.h. */ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8112 | #include <$ac_header> |
| 8113 | _ACEOF |
| 8114 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8115 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8116 | ac_status=$? |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 8117 | grep -v '^ *+' conftest.er1 >conftest.err |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8118 | rm -f conftest.er1 |
| 8119 | cat conftest.err >&5 |
| 8120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8121 | (exit $ac_status); } >/dev/null; then |
| 8122 | if test -s conftest.err; then |
| 8123 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8124 | else |
| 8125 | ac_cpp_err= |
| 8126 | fi |
| 8127 | else |
| 8128 | ac_cpp_err=yes |
| 8129 | fi |
| 8130 | if test -z "$ac_cpp_err"; then |
| 8131 | ac_header_preproc=yes |
| 8132 | else |
| 8133 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 8134 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8135 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8136 | ac_header_preproc=no |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8137 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8138 | rm -f conftest.err conftest.$ac_ext |
| 8139 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8140 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8141 | |
| 8142 | # So? What about this header? |
| 8143 | case $ac_header_compiler:$ac_header_preproc in |
| 8144 | yes:no ) |
| 8145 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8146 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8147 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 8148 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8149 | ( |
| 8150 | cat <<\_ASBOX |
| 8151 | ## ------------------------------------ ## |
| 8152 | ## Report this to bug-autoconf@gnu.org. ## |
| 8153 | ## ------------------------------------ ## |
| 8154 | _ASBOX |
| 8155 | ) | |
| 8156 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8157 | ;; |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8158 | no:yes ) |
| 8159 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8160 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8161 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8162 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8163 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 8164 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8165 | ( |
| 8166 | cat <<\_ASBOX |
| 8167 | ## ------------------------------------ ## |
| 8168 | ## Report this to bug-autoconf@gnu.org. ## |
| 8169 | ## ------------------------------------ ## |
| 8170 | _ASBOX |
| 8171 | ) | |
| 8172 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8173 | ;; |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8174 | esac |
| 8175 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8176 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8177 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8178 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8179 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8180 | eval "$as_ac_Header=$ac_header_preproc" |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8181 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8182 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8183 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8184 | |
| 8185 | fi |
| 8186 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8187 | cat >>confdefs.h <<_ACEOF |
| 8188 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8189 | _ACEOF |
| 8190 | |
| 8191 | fi |
| 8192 | |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8193 | done |
| 8194 | |
| 8195 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8196 | # Checks for typedefs, structures, and compiler characteristics. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8197 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 8198 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 8199 | if test "${ac_cv_c_const+set}" = set; then |
| 8200 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8201 | else |
| 8202 | cat >conftest.$ac_ext <<_ACEOF |
| 8203 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 8204 | /* confdefs.h. */ |
| 8205 | _ACEOF |
| 8206 | cat confdefs.h >>conftest.$ac_ext |
| 8207 | cat >>conftest.$ac_ext <<_ACEOF |
| 8208 | /* end confdefs.h. */ |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8209 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8210 | int |
| 8211 | main () |
| 8212 | { |
| 8213 | /* FIXME: Include the comments suggested by Paul. */ |
| 8214 | #ifndef __cplusplus |
| 8215 | /* Ultrix mips cc rejects this. */ |
| 8216 | typedef int charset[2]; |
| 8217 | const charset x; |
| 8218 | /* SunOS 4.1.1 cc rejects this. */ |
| 8219 | char const *const *ccp; |
| 8220 | char **p; |
| 8221 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 8222 | struct point {int x, y;}; |
| 8223 | static struct point const zero = {0,0}; |
| 8224 | /* AIX XL C 1.02.0.0 rejects this. |
| 8225 | It does not let you subtract one const X* pointer from another in |
| 8226 | an arm of an if-expression whose if-part is not a constant |
| 8227 | expression */ |
| 8228 | const char *g = "string"; |
| 8229 | ccp = &g + (g ? g-g : 0); |
| 8230 | /* HPUX 7.0 cc rejects these. */ |
| 8231 | ++ccp; |
| 8232 | p = (char**) ccp; |
| 8233 | ccp = (char const *const *) p; |
| 8234 | { /* SCO 3.2v4 cc rejects this. */ |
| 8235 | char *t; |
| 8236 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8237 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8238 | *t++ = 0; |
| 8239 | } |
| 8240 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 8241 | int x[] = {25, 17}; |
| 8242 | const int *foo = &x[0]; |
| 8243 | ++foo; |
| 8244 | } |
| 8245 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 8246 | typedef const int *iptr; |
| 8247 | iptr p = 0; |
| 8248 | ++p; |
| 8249 | } |
| 8250 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 8251 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 8252 | struct s { int j; const int *ap[3]; }; |
| 8253 | struct s *b; b->j = 5; |
| 8254 | } |
| 8255 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 8256 | const int foo = 10; |
| 8257 | } |
| 8258 | #endif |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8259 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8260 | ; |
| 8261 | return 0; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8262 | } |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8263 | _ACEOF |
| 8264 | rm -f conftest.$ac_objext |
| 8265 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8266 | (eval $ac_compile) 2>&5 |
| 8267 | ac_status=$? |
| 8268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8269 | (exit $ac_status); } && |
| 8270 | { ac_try='test -s conftest.$ac_objext' |
| 8271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8272 | (eval $ac_try) 2>&5 |
| 8273 | ac_status=$? |
| 8274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8275 | (exit $ac_status); }; }; then |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8276 | ac_cv_c_const=yes |
| 8277 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8278 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 8279 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8280 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8281 | ac_cv_c_const=no |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8282 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8283 | rm -f conftest.$ac_objext conftest.$ac_ext |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8284 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8285 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 8286 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8287 | if test $ac_cv_c_const = no; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8288 | |
| 8289 | cat >>confdefs.h <<\_ACEOF |
| 8290 | #define const |
| 8291 | _ACEOF |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8292 | |
| 8293 | fi |
| 8294 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8295 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 8296 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 |
| 8297 | if test "${ac_cv_type_mode_t+set}" = set; then |
| 8298 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8299 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8300 | cat >conftest.$ac_ext <<_ACEOF |
| 8301 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 8302 | /* confdefs.h. */ |
| 8303 | _ACEOF |
| 8304 | cat confdefs.h >>conftest.$ac_ext |
| 8305 | cat >>conftest.$ac_ext <<_ACEOF |
| 8306 | /* end confdefs.h. */ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8307 | $ac_includes_default |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8308 | int |
| 8309 | main () |
| 8310 | { |
| 8311 | if ((mode_t *) 0) |
| 8312 | return 0; |
| 8313 | if (sizeof (mode_t)) |
| 8314 | return 0; |
| 8315 | ; |
| 8316 | return 0; |
| 8317 | } |
| 8318 | _ACEOF |
| 8319 | rm -f conftest.$ac_objext |
| 8320 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8321 | (eval $ac_compile) 2>&5 |
| 8322 | ac_status=$? |
| 8323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8324 | (exit $ac_status); } && |
| 8325 | { ac_try='test -s conftest.$ac_objext' |
| 8326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8327 | (eval $ac_try) 2>&5 |
| 8328 | ac_status=$? |
| 8329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8330 | (exit $ac_status); }; }; then |
| 8331 | ac_cv_type_mode_t=yes |
| 8332 | else |
| 8333 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 8334 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8335 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8336 | ac_cv_type_mode_t=no |
| 8337 | fi |
| 8338 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8339 | fi |
| 8340 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 8341 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 |
| 8342 | if test $ac_cv_type_mode_t = yes; then |
| 8343 | : |
| 8344 | else |
| 8345 | |
| 8346 | cat >>confdefs.h <<_ACEOF |
| 8347 | #define mode_t int |
| 8348 | _ACEOF |
| 8349 | |
| 8350 | fi |
| 8351 | |
| 8352 | echo "$as_me:$LINENO: checking for size_t" >&5 |
| 8353 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 8354 | if test "${ac_cv_type_size_t+set}" = set; then |
| 8355 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8356 | else |
| 8357 | cat >conftest.$ac_ext <<_ACEOF |
| 8358 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 8359 | /* confdefs.h. */ |
| 8360 | _ACEOF |
| 8361 | cat confdefs.h >>conftest.$ac_ext |
| 8362 | cat >>conftest.$ac_ext <<_ACEOF |
| 8363 | /* end confdefs.h. */ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8364 | $ac_includes_default |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8365 | int |
| 8366 | main () |
| 8367 | { |
| 8368 | if ((size_t *) 0) |
| 8369 | return 0; |
| 8370 | if (sizeof (size_t)) |
| 8371 | return 0; |
| 8372 | ; |
| 8373 | return 0; |
| 8374 | } |
| 8375 | _ACEOF |
| 8376 | rm -f conftest.$ac_objext |
| 8377 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8378 | (eval $ac_compile) 2>&5 |
| 8379 | ac_status=$? |
| 8380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8381 | (exit $ac_status); } && |
| 8382 | { ac_try='test -s conftest.$ac_objext' |
| 8383 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8384 | (eval $ac_try) 2>&5 |
| 8385 | ac_status=$? |
| 8386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8387 | (exit $ac_status); }; }; then |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8388 | ac_cv_type_size_t=yes |
| 8389 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8390 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 8391 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8392 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8393 | ac_cv_type_size_t=no |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8394 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8395 | rm -f conftest.$ac_objext conftest.$ac_ext |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8396 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8397 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 8398 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 8399 | if test $ac_cv_type_size_t = yes; then |
| 8400 | : |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8401 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8402 | |
| 8403 | cat >>confdefs.h <<_ACEOF |
| 8404 | #define size_t unsigned |
| 8405 | _ACEOF |
| 8406 | |
| 8407 | fi |
| 8408 | |
| 8409 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 8410 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 8411 | if test "${ac_cv_header_time+set}" = set; then |
| 8412 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8413 | else |
| 8414 | cat >conftest.$ac_ext <<_ACEOF |
| 8415 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 8416 | /* confdefs.h. */ |
| 8417 | _ACEOF |
| 8418 | cat confdefs.h >>conftest.$ac_ext |
| 8419 | cat >>conftest.$ac_ext <<_ACEOF |
| 8420 | /* end confdefs.h. */ |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8421 | #include <sys/types.h> |
| 8422 | #include <sys/time.h> |
| 8423 | #include <time.h> |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8424 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8425 | int |
| 8426 | main () |
| 8427 | { |
| 8428 | if ((struct tm *) 0) |
| 8429 | return 0; |
| 8430 | ; |
| 8431 | return 0; |
| 8432 | } |
| 8433 | _ACEOF |
| 8434 | rm -f conftest.$ac_objext |
| 8435 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8436 | (eval $ac_compile) 2>&5 |
| 8437 | ac_status=$? |
| 8438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8439 | (exit $ac_status); } && |
| 8440 | { ac_try='test -s conftest.$ac_objext' |
| 8441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8442 | (eval $ac_try) 2>&5 |
| 8443 | ac_status=$? |
| 8444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8445 | (exit $ac_status); }; }; then |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8446 | ac_cv_header_time=yes |
| 8447 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8448 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 8449 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8450 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8451 | ac_cv_header_time=no |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8452 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8453 | rm -f conftest.$ac_objext conftest.$ac_ext |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8454 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8455 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 8456 | echo "${ECHO_T}$ac_cv_header_time" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8457 | if test $ac_cv_header_time = yes; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8458 | |
| 8459 | cat >>confdefs.h <<\_ACEOF |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8460 | #define TIME_WITH_SYS_TIME 1 |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8461 | _ACEOF |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8462 | |
| 8463 | fi |
| 8464 | |
| 8465 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8466 | # Checks for library functions. |
| 8467 | if test $ac_cv_c_compiler_gnu = yes; then |
| 8468 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
| 8469 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 |
| 8470 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
| 8471 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8472 | else |
| 8473 | ac_pattern="Autoconf.*'x'" |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8474 | cat >conftest.$ac_ext <<_ACEOF |
| 8475 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 8476 | /* confdefs.h. */ |
| 8477 | _ACEOF |
| 8478 | cat confdefs.h >>conftest.$ac_ext |
| 8479 | cat >>conftest.$ac_ext <<_ACEOF |
| 8480 | /* end confdefs.h. */ |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8481 | #include <sgtty.h> |
| 8482 | Autoconf TIOCGETP |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8483 | _ACEOF |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8484 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 8485 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8486 | ac_cv_prog_gcc_traditional=yes |
| 8487 | else |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8488 | ac_cv_prog_gcc_traditional=no |
| 8489 | fi |
| 8490 | rm -f conftest* |
| 8491 | |
| 8492 | |
| 8493 | if test $ac_cv_prog_gcc_traditional = no; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8494 | cat >conftest.$ac_ext <<_ACEOF |
| 8495 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 8496 | /* confdefs.h. */ |
| 8497 | _ACEOF |
| 8498 | cat confdefs.h >>conftest.$ac_ext |
| 8499 | cat >>conftest.$ac_ext <<_ACEOF |
| 8500 | /* end confdefs.h. */ |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8501 | #include <termio.h> |
| 8502 | Autoconf TCGETA |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8503 | _ACEOF |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8504 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 8505 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8506 | ac_cv_prog_gcc_traditional=yes |
| 8507 | fi |
| 8508 | rm -f conftest* |
| 8509 | |
| 8510 | fi |
| 8511 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8512 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
| 8513 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8514 | if test $ac_cv_prog_gcc_traditional = yes; then |
| 8515 | CC="$CC -traditional" |
| 8516 | fi |
| 8517 | fi |
| 8518 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8519 | |
| 8520 | for ac_header in stdlib.h |
| 8521 | do |
| 8522 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8523 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8524 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8525 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8526 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8527 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8528 | fi |
| 8529 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8530 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8531 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8532 | # Is the header compilable? |
| 8533 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8534 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 8535 | cat >conftest.$ac_ext <<_ACEOF |
| 8536 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 8537 | /* confdefs.h. */ |
| 8538 | _ACEOF |
| 8539 | cat confdefs.h >>conftest.$ac_ext |
| 8540 | cat >>conftest.$ac_ext <<_ACEOF |
| 8541 | /* end confdefs.h. */ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8542 | $ac_includes_default |
| 8543 | #include <$ac_header> |
| 8544 | _ACEOF |
| 8545 | rm -f conftest.$ac_objext |
| 8546 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8547 | (eval $ac_compile) 2>&5 |
| 8548 | ac_status=$? |
| 8549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8550 | (exit $ac_status); } && |
| 8551 | { ac_try='test -s conftest.$ac_objext' |
| 8552 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8553 | (eval $ac_try) 2>&5 |
| 8554 | ac_status=$? |
| 8555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8556 | (exit $ac_status); }; }; then |
| 8557 | ac_header_compiler=yes |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8558 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8559 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 8560 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8561 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8562 | ac_header_compiler=no |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8563 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8564 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8565 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8566 | echo "${ECHO_T}$ac_header_compiler" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8567 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8568 | # Is the header present? |
| 8569 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8570 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 8571 | cat >conftest.$ac_ext <<_ACEOF |
| 8572 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 8573 | /* confdefs.h. */ |
| 8574 | _ACEOF |
| 8575 | cat confdefs.h >>conftest.$ac_ext |
| 8576 | cat >>conftest.$ac_ext <<_ACEOF |
| 8577 | /* end confdefs.h. */ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8578 | #include <$ac_header> |
| 8579 | _ACEOF |
| 8580 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8581 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8582 | ac_status=$? |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 8583 | grep -v '^ *+' conftest.er1 >conftest.err |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8584 | rm -f conftest.er1 |
| 8585 | cat conftest.err >&5 |
| 8586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8587 | (exit $ac_status); } >/dev/null; then |
| 8588 | if test -s conftest.err; then |
| 8589 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8590 | else |
| 8591 | ac_cpp_err= |
| 8592 | fi |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8593 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8594 | ac_cpp_err=yes |
| 8595 | fi |
| 8596 | if test -z "$ac_cpp_err"; then |
| 8597 | ac_header_preproc=yes |
| 8598 | else |
| 8599 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 8600 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8601 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8602 | ac_header_preproc=no |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8603 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8604 | rm -f conftest.err conftest.$ac_ext |
| 8605 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8606 | echo "${ECHO_T}$ac_header_preproc" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8607 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8608 | # So? What about this header? |
| 8609 | case $ac_header_compiler:$ac_header_preproc in |
| 8610 | yes:no ) |
| 8611 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8612 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8613 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 8614 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8615 | ( |
| 8616 | cat <<\_ASBOX |
| 8617 | ## ------------------------------------ ## |
| 8618 | ## Report this to bug-autoconf@gnu.org. ## |
| 8619 | ## ------------------------------------ ## |
| 8620 | _ASBOX |
| 8621 | ) | |
| 8622 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8623 | ;; |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8624 | no:yes ) |
| 8625 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8626 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8627 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8628 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8629 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 8630 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8631 | ( |
| 8632 | cat <<\_ASBOX |
| 8633 | ## ------------------------------------ ## |
| 8634 | ## Report this to bug-autoconf@gnu.org. ## |
| 8635 | ## ------------------------------------ ## |
| 8636 | _ASBOX |
| 8637 | ) | |
| 8638 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8639 | ;; |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8640 | esac |
| 8641 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8642 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8643 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8644 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8645 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8646 | eval "$as_ac_Header=$ac_header_preproc" |
| 8647 | fi |
| 8648 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8649 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8650 | |
| 8651 | fi |
| 8652 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8653 | cat >>confdefs.h <<_ACEOF |
| 8654 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8655 | _ACEOF |
| 8656 | |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8657 | fi |
| 8658 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8659 | done |
| 8660 | |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 8661 | echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
| 8662 | echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6 |
| 8663 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8664 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8665 | else |
| 8666 | if test "$cross_compiling" = yes; then |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 8667 | ac_cv_func_malloc_0_nonnull=no |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8668 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8669 | cat >conftest.$ac_ext <<_ACEOF |
| 8670 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 8671 | /* confdefs.h. */ |
| 8672 | _ACEOF |
| 8673 | cat confdefs.h >>conftest.$ac_ext |
| 8674 | cat >>conftest.$ac_ext <<_ACEOF |
| 8675 | /* end confdefs.h. */ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8676 | #if STDC_HEADERS || HAVE_STDLIB_H |
| 8677 | # include <stdlib.h> |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8678 | #else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8679 | char *malloc (); |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8680 | #endif |
| 8681 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8682 | int |
| 8683 | main () |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8684 | { |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8685 | exit (malloc (0) ? 0 : 1); |
| 8686 | ; |
| 8687 | return 0; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8688 | } |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8689 | _ACEOF |
| 8690 | rm -f conftest$ac_exeext |
| 8691 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8692 | (eval $ac_link) 2>&5 |
| 8693 | ac_status=$? |
| 8694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8695 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8697 | (eval $ac_try) 2>&5 |
| 8698 | ac_status=$? |
| 8699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8700 | (exit $ac_status); }; }; then |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 8701 | ac_cv_func_malloc_0_nonnull=yes |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8702 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8703 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8704 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 8705 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8706 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8707 | ( exit $ac_status ) |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 8708 | ac_cv_func_malloc_0_nonnull=no |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8709 | fi |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 8710 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8711 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8712 | fi |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 8713 | echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
| 8714 | echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6 |
| 8715 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8716 | |
| 8717 | cat >>confdefs.h <<\_ACEOF |
| 8718 | #define HAVE_MALLOC 1 |
| 8719 | _ACEOF |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8720 | |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 8721 | else |
| 8722 | cat >>confdefs.h <<\_ACEOF |
| 8723 | #define HAVE_MALLOC 0 |
| 8724 | _ACEOF |
| 8725 | |
| 8726 | LIBOBJS="$LIBOBJS malloc.$ac_objext" |
| 8727 | |
| 8728 | cat >>confdefs.h <<\_ACEOF |
| 8729 | #define malloc rpl_malloc |
| 8730 | _ACEOF |
| 8731 | |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8732 | fi |
| 8733 | |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 8734 | |
| 8735 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8736 | echo "$as_me:$LINENO: checking for working memcmp" >&5 |
| 8737 | echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6 |
| 8738 | if test "${ac_cv_func_memcmp_working+set}" = set; then |
| 8739 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8740 | else |
| 8741 | if test "$cross_compiling" = yes; then |
| 8742 | ac_cv_func_memcmp_working=no |
| 8743 | else |
| 8744 | cat >conftest.$ac_ext <<_ACEOF |
| 8745 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 8746 | /* confdefs.h. */ |
| 8747 | _ACEOF |
| 8748 | cat confdefs.h >>conftest.$ac_ext |
| 8749 | cat >>conftest.$ac_ext <<_ACEOF |
| 8750 | /* end confdefs.h. */ |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8751 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8752 | int |
| 8753 | main () |
| 8754 | { |
| 8755 | |
| 8756 | /* Some versions of memcmp are not 8-bit clean. */ |
| 8757 | char c0 = 0x40, c1 = 0x80, c2 = 0x81; |
| 8758 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) |
| 8759 | exit (1); |
| 8760 | |
| 8761 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes |
| 8762 | or more and with at least one buffer not starting on a 4-byte boundary. |
| 8763 | William Lewis provided this test program. */ |
| 8764 | { |
| 8765 | char foo[21]; |
| 8766 | char bar[21]; |
| 8767 | int i; |
| 8768 | for (i = 0; i < 4; i++) |
| 8769 | { |
| 8770 | char *a = foo + i; |
| 8771 | char *b = bar + i; |
| 8772 | strcpy (a, "--------01111111"); |
| 8773 | strcpy (b, "--------10000000"); |
| 8774 | if (memcmp (a, b, 16) >= 0) |
| 8775 | exit (1); |
| 8776 | } |
| 8777 | exit (0); |
| 8778 | } |
| 8779 | |
| 8780 | ; |
| 8781 | return 0; |
| 8782 | } |
| 8783 | _ACEOF |
| 8784 | rm -f conftest$ac_exeext |
| 8785 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8786 | (eval $ac_link) 2>&5 |
| 8787 | ac_status=$? |
| 8788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8789 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8791 | (eval $ac_try) 2>&5 |
| 8792 | ac_status=$? |
| 8793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8794 | (exit $ac_status); }; }; then |
| 8795 | ac_cv_func_memcmp_working=yes |
| 8796 | else |
| 8797 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8798 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 8799 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8800 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8801 | ( exit $ac_status ) |
| 8802 | ac_cv_func_memcmp_working=no |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8803 | fi |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 8804 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8805 | fi |
| 8806 | fi |
| 8807 | echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 |
| 8808 | echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6 |
| 8809 | test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext" |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8810 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8811 | |
| 8812 | |
| 8813 | |
| 8814 | |
| 8815 | |
| 8816 | |
| 8817 | |
| 8818 | |
| 8819 | for ac_func in gethostbyname inet_ntoa memset select socket strdup strerror strtol |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8820 | do |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8821 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 8822 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 8823 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 8824 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 8825 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8826 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8827 | cat >conftest.$ac_ext <<_ACEOF |
| 8828 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 8829 | /* confdefs.h. */ |
| 8830 | _ACEOF |
| 8831 | cat confdefs.h >>conftest.$ac_ext |
| 8832 | cat >>conftest.$ac_ext <<_ACEOF |
| 8833 | /* end confdefs.h. */ |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8834 | /* System header to define __stub macros and hopefully few prototypes, |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 8835 | which can conflict with char $ac_func (); below. |
| 8836 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 8837 | <limits.h> exists even on freestanding compilers. */ |
| 8838 | #ifdef __STDC__ |
| 8839 | # include <limits.h> |
| 8840 | #else |
| 8841 | # include <assert.h> |
| 8842 | #endif |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8843 | /* Override any gcc2 internal prototype to avoid an error. */ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8844 | #ifdef __cplusplus |
| 8845 | extern "C" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 8846 | { |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8847 | #endif |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8848 | /* We use char because int might match the return type of a gcc2 |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8849 | builtin and then its argument prototype would still apply. */ |
| 8850 | char $ac_func (); |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8851 | /* The GNU C library defines this for functions which it implements |
| 8852 | to always fail with ENOSYS. Some functions are actually named |
| 8853 | something starting with __ and the normal name is an alias. */ |
| 8854 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 8855 | choke me |
| 8856 | #else |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 8857 | char (*f) () = $ac_func; |
| 8858 | #endif |
| 8859 | #ifdef __cplusplus |
| 8860 | } |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8861 | #endif |
| 8862 | |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 8863 | int |
| 8864 | main () |
| 8865 | { |
| 8866 | return f != $ac_func; |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8867 | ; |
| 8868 | return 0; |
| 8869 | } |
| 8870 | _ACEOF |
| 8871 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8872 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8873 | (eval $ac_link) 2>&5 |
| 8874 | ac_status=$? |
| 8875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8876 | (exit $ac_status); } && |
| 8877 | { ac_try='test -s conftest$ac_exeext' |
| 8878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8879 | (eval $ac_try) 2>&5 |
| 8880 | ac_status=$? |
| 8881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8882 | (exit $ac_status); }; }; then |
| 8883 | eval "$as_ac_var=yes" |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8884 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8885 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 8886 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8887 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8888 | eval "$as_ac_var=no" |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8889 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8890 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8891 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8892 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 8893 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 8894 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 8895 | cat >>confdefs.h <<_ACEOF |
| 8896 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 8897 | _ACEOF |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8898 | |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8899 | fi |
| 8900 | done |
| 8901 | |
| 8902 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8903 | am__api_version="1.6" |
| 8904 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
| 8905 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8906 | # Just in case |
| 8907 | sleep 1 |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8908 | echo timestamp > conftest.file |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8909 | # Do `set' in a subshell so we don't clobber the current shell's |
| 8910 | # arguments. Must try -L first in case configure is actually a |
| 8911 | # symlink; some systems play weird games with the mod time of symlinks |
| 8912 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 8913 | # directory). |
| 8914 | if ( |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8915 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8916 | if test "$*" = "X"; then |
| 8917 | # -L didn't work. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8918 | set X `ls -t $srcdir/configure conftest.file` |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8919 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8920 | rm -f conftest.file |
| 8921 | if test "$*" != "X $srcdir/configure conftest.file" \ |
| 8922 | && test "$*" != "X conftest.file $srcdir/configure"; then |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8923 | |
| 8924 | # If neither matched, then we have a broken ls. This can happen |
| 8925 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 8926 | # broken ls alias from the environment. This has actually |
| 8927 | # happened. Such a system could not be considered "sane". |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8928 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
| 8929 | alias in your environment" >&5 |
| 8930 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
| 8931 | alias in your environment" >&2;} |
| 8932 | { (exit 1); exit 1; }; } |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8933 | fi |
| 8934 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8935 | test "$2" = conftest.file |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8936 | ) |
| 8937 | then |
| 8938 | # Ok. |
| 8939 | : |
| 8940 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8941 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
| 8942 | Check your system clock" >&5 |
| 8943 | echo "$as_me: error: newly created file is older than distributed files! |
| 8944 | Check your system clock" >&2;} |
| 8945 | { (exit 1); exit 1; }; } |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8946 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8947 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8948 | echo "${ECHO_T}yes" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8949 | test "$program_prefix" != NONE && |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8950 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8951 | # Use a double $ so make ignores it. |
| 8952 | test "$program_suffix" != NONE && |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8953 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
| 8954 | # Double any \ or $. echo might interpret backslashes. |
| 8955 | # By default was `s,x,x', remove it if useless. |
| 8956 | cat <<\_ACEOF >conftest.sed |
| 8957 | s/[\\$]/&&/g;s/;s,x,x,$// |
| 8958 | _ACEOF |
| 8959 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
| 8960 | rm conftest.sed |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8961 | |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8962 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8963 | # expand $ac_aux_dir to an absolute path |
| 8964 | am_aux_dir=`cd $ac_aux_dir && pwd` |
| 8965 | |
| 8966 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
| 8967 | # Use eval to expand $SHELL |
| 8968 | if eval "$MISSING --run true"; then |
| 8969 | am_missing_run="$MISSING --run " |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8970 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8971 | am_missing_run= |
| 8972 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
| 8973 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
| 8974 | fi |
| 8975 | |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 8976 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 8977 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8978 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` |
| 8979 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
| 8980 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8981 | else |
| 8982 | cat >conftest.make <<\_ACEOF |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8983 | all: |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 8984 | @echo 'ac_maketemp="$(MAKE)"' |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8985 | _ACEOF |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8986 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8987 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8988 | if test -n "$ac_maketemp"; then |
| 8989 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 8990 | else |
| 8991 | eval ac_cv_prog_make_${ac_make}_set=no |
| 8992 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8993 | rm -f conftest.make |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8994 | fi |
| 8995 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8996 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8997 | echo "${ECHO_T}yes" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8998 | SET_MAKE= |
| 8999 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9000 | echo "$as_me:$LINENO: result: no" >&5 |
| 9001 | echo "${ECHO_T}no" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9002 | SET_MAKE="MAKE=${MAKE-make}" |
| 9003 | fi |
| 9004 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9005 | rm -f .deps 2>/dev/null |
| 9006 | mkdir .deps 2>/dev/null |
| 9007 | if test -d .deps; then |
| 9008 | DEPDIR=.deps |
| 9009 | else |
| 9010 | # MS-DOS does not allow filenames that begin with a dot. |
| 9011 | DEPDIR=_deps |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9012 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9013 | rmdir .deps 2>/dev/null |
| 9014 | |
| 9015 | |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 9016 | ac_config_commands="$ac_config_commands depfiles" |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9017 | |
| 9018 | |
| 9019 | am_make=${MAKE-make} |
| 9020 | cat > confinc << 'END' |
| 9021 | doit: |
| 9022 | @echo done |
| 9023 | END |
| 9024 | # If we don't find an include directive, just comment out the code. |
| 9025 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
| 9026 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
| 9027 | am__include="#" |
| 9028 | am__quote= |
| 9029 | _am_result=none |
| 9030 | # First try GNU make style include. |
| 9031 | echo "include confinc" > confmf |
| 9032 | # We grep out `Entering directory' and `Leaving directory' |
| 9033 | # messages which can occur if `w' ends up in MAKEFLAGS. |
| 9034 | # In particular we don't look at `^make:' because GNU make might |
| 9035 | # be invoked under some other name (usually "gmake"), in which |
| 9036 | # case it prints its new name instead of `make'. |
| 9037 | if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then |
| 9038 | am__include=include |
| 9039 | am__quote= |
| 9040 | _am_result=GNU |
| 9041 | fi |
| 9042 | # Now try BSD make style include. |
| 9043 | if test "$am__include" = "#"; then |
| 9044 | echo '.include "confinc"' > confmf |
| 9045 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
| 9046 | am__include=.include |
| 9047 | am__quote="\"" |
| 9048 | _am_result=BSD |
| 9049 | fi |
| 9050 | fi |
| 9051 | |
| 9052 | |
| 9053 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
| 9054 | echo "${ECHO_T}$_am_result" >&6 |
| 9055 | rm -f confinc confmf |
| 9056 | |
| 9057 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
| 9058 | if test "${enable_dependency_tracking+set}" = set; then |
| 9059 | enableval="$enable_dependency_tracking" |
| 9060 | |
| 9061 | fi; |
| 9062 | if test "x$enable_dependency_tracking" != xno; then |
| 9063 | am_depcomp="$ac_aux_dir/depcomp" |
| 9064 | AMDEPBACKSLASH='\' |
| 9065 | fi |
| 9066 | |
| 9067 | |
| 9068 | if test "x$enable_dependency_tracking" != xno; then |
| 9069 | AMDEP_TRUE= |
| 9070 | AMDEP_FALSE='#' |
| 9071 | else |
| 9072 | AMDEP_TRUE='#' |
| 9073 | AMDEP_FALSE= |
| 9074 | fi |
| 9075 | |
| 9076 | |
| 9077 | |
| 9078 | # test to see if srcdir already configured |
| 9079 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
| 9080 | test -f $srcdir/config.status; then |
| 9081 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
| 9082 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
| 9083 | { (exit 1); exit 1; }; } |
| 9084 | fi |
| 9085 | |
| 9086 | # Define the identity of the package. |
| 9087 | PACKAGE=openggsn |
jjako | 193e8b1 | 2003-11-10 12:31:41 +0000 | [diff] [blame^] | 9088 | VERSION=0.71b |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9089 | |
| 9090 | |
| 9091 | cat >>confdefs.h <<_ACEOF |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9092 | #define PACKAGE "$PACKAGE" |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9093 | _ACEOF |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9094 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9095 | |
| 9096 | cat >>confdefs.h <<_ACEOF |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9097 | #define VERSION "$VERSION" |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9098 | _ACEOF |
| 9099 | |
| 9100 | # Some tools Automake needs. |
| 9101 | |
| 9102 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9103 | |
| 9104 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9105 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9106 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9107 | |
| 9108 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 9109 | |
| 9110 | |
| 9111 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 9112 | |
| 9113 | |
| 9114 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 9115 | |
| 9116 | |
| 9117 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
| 9118 | |
| 9119 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
| 9120 | |
| 9121 | # Installed binaries are usually stripped using `strip' when the user |
| 9122 | # run `make install-strip'. However `strip' might not be the right |
| 9123 | # tool to use in cross-compilation environments, therefore Automake |
| 9124 | # will honor the `STRIP' environment variable to overrule this program. |
| 9125 | if test "$cross_compiling" != no; then |
| 9126 | if test -n "$ac_tool_prefix"; then |
| 9127 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 9128 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 9129 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 9130 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 9131 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 9132 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9133 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9134 | if test -n "$STRIP"; then |
| 9135 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 9136 | else |
| 9137 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9138 | for as_dir in $PATH |
| 9139 | do |
| 9140 | IFS=$as_save_IFS |
| 9141 | test -z "$as_dir" && as_dir=. |
| 9142 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9143 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9144 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 9145 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9146 | break 2 |
| 9147 | fi |
| 9148 | done |
| 9149 | done |
| 9150 | |
| 9151 | fi |
| 9152 | fi |
| 9153 | STRIP=$ac_cv_prog_STRIP |
| 9154 | if test -n "$STRIP"; then |
| 9155 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 9156 | echo "${ECHO_T}$STRIP" >&6 |
| 9157 | else |
| 9158 | echo "$as_me:$LINENO: result: no" >&5 |
| 9159 | echo "${ECHO_T}no" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9160 | fi |
| 9161 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9162 | fi |
| 9163 | if test -z "$ac_cv_prog_STRIP"; then |
| 9164 | ac_ct_STRIP=$STRIP |
| 9165 | # Extract the first word of "strip", so it can be a program name with args. |
| 9166 | set dummy strip; ac_word=$2 |
| 9167 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 9168 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 9169 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 9170 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9171 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9172 | if test -n "$ac_ct_STRIP"; then |
| 9173 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 9174 | else |
| 9175 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9176 | for as_dir in $PATH |
| 9177 | do |
| 9178 | IFS=$as_save_IFS |
| 9179 | test -z "$as_dir" && as_dir=. |
| 9180 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9181 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9182 | ac_cv_prog_ac_ct_STRIP="strip" |
| 9183 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9184 | break 2 |
| 9185 | fi |
| 9186 | done |
| 9187 | done |
| 9188 | |
| 9189 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
| 9190 | fi |
| 9191 | fi |
| 9192 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 9193 | if test -n "$ac_ct_STRIP"; then |
| 9194 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 9195 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
| 9196 | else |
| 9197 | echo "$as_me:$LINENO: result: no" >&5 |
| 9198 | echo "${ECHO_T}no" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9199 | fi |
| 9200 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9201 | STRIP=$ac_ct_STRIP |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9202 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9203 | STRIP="$ac_cv_prog_STRIP" |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9204 | fi |
| 9205 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9206 | fi |
| 9207 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
| 9208 | |
| 9209 | # We need awk for the "check" target. The system "awk" is bad on |
| 9210 | # some platforms. |
| 9211 | |
| 9212 | |
| 9213 | depcc="$CC" am_compiler_list= |
| 9214 | |
| 9215 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
| 9216 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
| 9217 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
| 9218 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9219 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9220 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 9221 | # We make a subdir and do the tests there. Otherwise we can end up |
| 9222 | # making bogus files that we don't know about and never remove. For |
| 9223 | # instance it was reported that on HP-UX the gcc test will end up |
| 9224 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 9225 | # in D'. |
| 9226 | mkdir conftest.dir |
| 9227 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 9228 | # using a relative directory. |
| 9229 | cp "$am_depcomp" conftest.dir |
| 9230 | cd conftest.dir |
| 9231 | |
| 9232 | am_cv_CC_dependencies_compiler_type=none |
| 9233 | if test "$am_compiler_list" = ""; then |
| 9234 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 9235 | fi |
| 9236 | for depmode in $am_compiler_list; do |
| 9237 | # We need to recreate these files for each test, as the compiler may |
| 9238 | # overwrite some of them when testing with obscure command lines. |
| 9239 | # This happens at least with the AIX C compiler. |
| 9240 | echo '#include "conftest.h"' > conftest.c |
| 9241 | echo 'int i;' > conftest.h |
| 9242 | echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf |
| 9243 | |
| 9244 | case $depmode in |
| 9245 | nosideeffect) |
| 9246 | # after this tag, mechanisms are not by side-effect, so they'll |
| 9247 | # only be used when explicitly requested |
| 9248 | if test "x$enable_dependency_tracking" = xyes; then |
| 9249 | continue |
| 9250 | else |
| 9251 | break |
| 9252 | fi |
| 9253 | ;; |
| 9254 | none) break ;; |
| 9255 | esac |
| 9256 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 9257 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 9258 | # handle `-M -o', and we need to detect this. |
| 9259 | if depmode=$depmode \ |
| 9260 | source=conftest.c object=conftest.o \ |
| 9261 | depfile=conftest.Po tmpdepfile=conftest.TPo \ |
| 9262 | $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && |
| 9263 | grep conftest.h conftest.Po > /dev/null 2>&1 && |
| 9264 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 9265 | am_cv_CC_dependencies_compiler_type=$depmode |
| 9266 | break |
| 9267 | fi |
| 9268 | done |
| 9269 | |
| 9270 | cd .. |
| 9271 | rm -rf conftest.dir |
| 9272 | else |
| 9273 | am_cv_CC_dependencies_compiler_type=none |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9274 | fi |
| 9275 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9276 | fi |
| 9277 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 9278 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
| 9279 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 9280 | |
| 9281 | |
| 9282 | depcc="$CXX" am_compiler_list= |
| 9283 | |
| 9284 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
| 9285 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
| 9286 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
| 9287 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9288 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9289 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 9290 | # We make a subdir and do the tests there. Otherwise we can end up |
| 9291 | # making bogus files that we don't know about and never remove. For |
| 9292 | # instance it was reported that on HP-UX the gcc test will end up |
| 9293 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 9294 | # in D'. |
| 9295 | mkdir conftest.dir |
| 9296 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 9297 | # using a relative directory. |
| 9298 | cp "$am_depcomp" conftest.dir |
| 9299 | cd conftest.dir |
| 9300 | |
| 9301 | am_cv_CXX_dependencies_compiler_type=none |
| 9302 | if test "$am_compiler_list" = ""; then |
| 9303 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 9304 | fi |
| 9305 | for depmode in $am_compiler_list; do |
| 9306 | # We need to recreate these files for each test, as the compiler may |
| 9307 | # overwrite some of them when testing with obscure command lines. |
| 9308 | # This happens at least with the AIX C compiler. |
| 9309 | echo '#include "conftest.h"' > conftest.c |
| 9310 | echo 'int i;' > conftest.h |
| 9311 | echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf |
| 9312 | |
| 9313 | case $depmode in |
| 9314 | nosideeffect) |
| 9315 | # after this tag, mechanisms are not by side-effect, so they'll |
| 9316 | # only be used when explicitly requested |
| 9317 | if test "x$enable_dependency_tracking" = xyes; then |
| 9318 | continue |
| 9319 | else |
| 9320 | break |
| 9321 | fi |
| 9322 | ;; |
| 9323 | none) break ;; |
| 9324 | esac |
| 9325 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 9326 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 9327 | # handle `-M -o', and we need to detect this. |
| 9328 | if depmode=$depmode \ |
| 9329 | source=conftest.c object=conftest.o \ |
| 9330 | depfile=conftest.Po tmpdepfile=conftest.TPo \ |
| 9331 | $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && |
| 9332 | grep conftest.h conftest.Po > /dev/null 2>&1 && |
| 9333 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 9334 | am_cv_CXX_dependencies_compiler_type=$depmode |
| 9335 | break |
| 9336 | fi |
| 9337 | done |
| 9338 | |
| 9339 | cd .. |
| 9340 | rm -rf conftest.dir |
| 9341 | else |
| 9342 | am_cv_CXX_dependencies_compiler_type=none |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9343 | fi |
| 9344 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9345 | fi |
| 9346 | echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
| 9347 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 |
| 9348 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9349 | |
| 9350 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9351 | |
| 9352 | |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 9353 | ac_config_files="$ac_config_files Makefile doc/Makefile ggsn/Makefile gtp/Makefile intl/Makefile po/Makefile sgsnemu/Makefile src/Makefile tests/Makefile openggsn.spec" |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9354 | |
| 9355 | cat >confcache <<\_ACEOF |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9356 | # This file is a shell script that caches the results of configure |
| 9357 | # tests run on this system so they can be shared between configure |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9358 | # scripts and configure runs, see configure's option --config-cache. |
| 9359 | # It is not useful on other systems. If it contains results you don't |
| 9360 | # want to keep, you may remove or edit it. |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9361 | # |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9362 | # config.status only pays attention to the cache file if you give it |
| 9363 | # the --recheck option to rerun configure. |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9364 | # |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 9365 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9366 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 9367 | # following values. |
| 9368 | |
| 9369 | _ACEOF |
| 9370 | |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9371 | # The following way of writing the cache mishandles newlines in values, |
| 9372 | # but we know of no workaround that is simple, portable, and efficient. |
| 9373 | # So, don't put newlines in cache variables' values. |
| 9374 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 9375 | # and sets the high bit in the cache file unless we assign to the vars. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9376 | { |
| 9377 | (set) 2>&1 | |
| 9378 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 9379 | *ac_space=\ *) |
| 9380 | # `set' does not quote correctly, so add quotes (double-quote |
| 9381 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 9382 | sed -n \ |
| 9383 | "s/'/'\\\\''/g; |
| 9384 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 9385 | ;; |
| 9386 | *) |
| 9387 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 9388 | sed -n \ |
| 9389 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 9390 | ;; |
| 9391 | esac; |
| 9392 | } | |
| 9393 | sed ' |
| 9394 | t clear |
| 9395 | : clear |
| 9396 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 9397 | t end |
| 9398 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 9399 | : end' >>confcache |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 9400 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9401 | if test -w $cache_file; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9402 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 9403 | cat confcache >$cache_file |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9404 | else |
| 9405 | echo "not updating unwritable cache $cache_file" |
| 9406 | fi |
| 9407 | fi |
| 9408 | rm -f confcache |
| 9409 | |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9410 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 9411 | # Let make expand exec_prefix. |
| 9412 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 9413 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9414 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 9415 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 9416 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 9417 | # (actually we leave an empty line to preserve line numbers). |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9418 | if test "x$srcdir" = x.; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9419 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 9420 | s/:*\$(srcdir):*/:/; |
| 9421 | s/:*\${srcdir}:*/:/; |
| 9422 | s/:*@srcdir@:*/:/; |
| 9423 | s/^\([^=]*=[ ]*\):*/\1/; |
| 9424 | s/:*$//; |
| 9425 | s/^[^=]*=[ ]*$//; |
| 9426 | }' |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9427 | fi |
| 9428 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9429 | DEFS=-DHAVE_CONFIG_H |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9430 | |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 9431 | ac_libobjs= |
| 9432 | ac_ltlibobjs= |
| 9433 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 9434 | # 1. Remove the extension, and $U if already installed. |
| 9435 | ac_i=`echo "$ac_i" | |
| 9436 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
| 9437 | # 2. Add them. |
| 9438 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 9439 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 9440 | done |
| 9441 | LIBOBJS=$ac_libobjs |
| 9442 | |
| 9443 | LTLIBOBJS=$ac_ltlibobjs |
| 9444 | |
| 9445 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9446 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
| 9447 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
| 9448 | Usually this means the macro was only invoked conditionally." >&5 |
| 9449 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
| 9450 | Usually this means the macro was only invoked conditionally." >&2;} |
| 9451 | { (exit 1); exit 1; }; } |
| 9452 | fi |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9453 | |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9454 | : ${CONFIG_STATUS=./config.status} |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9455 | ac_clean_files_save=$ac_clean_files |
| 9456 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 9457 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 9458 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 9459 | cat >$CONFIG_STATUS <<_ACEOF |
| 9460 | #! $SHELL |
| 9461 | # Generated by $as_me. |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9462 | # Run this file to recreate the current configuration. |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9463 | # Compiler output produced by configure, useful for debugging |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9464 | # configure, is in config.log if it exists. |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9465 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9466 | debug=false |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 9467 | ac_cs_recheck=false |
| 9468 | ac_cs_silent=false |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9469 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 9470 | _ACEOF |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9471 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9472 | cat >>$CONFIG_STATUS <<\_ACEOF |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9473 | ## --------------------- ## |
| 9474 | ## M4sh Initialization. ## |
| 9475 | ## --------------------- ## |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9476 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9477 | # Be Bourne compatible |
| 9478 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 9479 | emulate sh |
| 9480 | NULLCMD=: |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 9481 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 9482 | # is contrary to our usage. Disable this feature. |
| 9483 | alias -g '${1+"$@"}'='"$@"' |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9484 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 9485 | set -o posix |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9486 | fi |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9487 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9488 | # Support unset when possible. |
| 9489 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 9490 | as_unset=unset |
| 9491 | else |
| 9492 | as_unset=false |
| 9493 | fi |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9494 | |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 9495 | |
| 9496 | # Work around bugs in pre-3.0 UWIN ksh. |
| 9497 | $as_unset ENV MAIL MAILPATH |
| 9498 | PS1='$ ' |
| 9499 | PS2='> ' |
| 9500 | PS4='+ ' |
| 9501 | |
| 9502 | # NLS nuisances. |
| 9503 | for as_var in \ |
| 9504 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 9505 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 9506 | LC_TELEPHONE LC_TIME |
| 9507 | do |
| 9508 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 9509 | eval $as_var=C; export $as_var |
| 9510 | else |
| 9511 | $as_unset $as_var |
| 9512 | fi |
| 9513 | done |
| 9514 | |
| 9515 | # Required to use basename. |
| 9516 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 9517 | as_expr=expr |
| 9518 | else |
| 9519 | as_expr=false |
| 9520 | fi |
| 9521 | |
| 9522 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 9523 | as_basename=basename |
| 9524 | else |
| 9525 | as_basename=false |
| 9526 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9527 | |
| 9528 | |
| 9529 | # Name of the executable. |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 9530 | as_me=`$as_basename "$0" || |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9531 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 9532 | X"$0" : 'X\(//\)$' \| \ |
| 9533 | X"$0" : 'X\(/\)$' \| \ |
| 9534 | . : '\(.\)' 2>/dev/null || |
| 9535 | echo X/"$0" | |
| 9536 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 9537 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 9538 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 9539 | s/.*/./; q'` |
| 9540 | |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 9541 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9542 | # PATH needs CR, and LINENO needs CR and PATH. |
| 9543 | # Avoid depending upon Character Ranges. |
| 9544 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 9545 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 9546 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 9547 | as_cr_digits='0123456789' |
| 9548 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 9549 | |
| 9550 | # The user is always right. |
| 9551 | if test "${PATH_SEPARATOR+set}" != set; then |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 9552 | echo "#! /bin/sh" >conf$$.sh |
| 9553 | echo "exit 0" >>conf$$.sh |
| 9554 | chmod +x conf$$.sh |
| 9555 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9556 | PATH_SEPARATOR=';' |
| 9557 | else |
| 9558 | PATH_SEPARATOR=: |
| 9559 | fi |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 9560 | rm -f conf$$.sh |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9561 | fi |
| 9562 | |
| 9563 | |
| 9564 | as_lineno_1=$LINENO |
| 9565 | as_lineno_2=$LINENO |
| 9566 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 9567 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 9568 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 9569 | # Find who we are. Look in the path if we contain no path at all |
| 9570 | # relative or not. |
| 9571 | case $0 in |
| 9572 | *[\\/]* ) as_myself=$0 ;; |
| 9573 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9574 | for as_dir in $PATH |
| 9575 | do |
| 9576 | IFS=$as_save_IFS |
| 9577 | test -z "$as_dir" && as_dir=. |
| 9578 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 9579 | done |
| 9580 | |
| 9581 | ;; |
| 9582 | esac |
| 9583 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 9584 | # in which case we are not to be found in the path. |
| 9585 | if test "x$as_myself" = x; then |
| 9586 | as_myself=$0 |
| 9587 | fi |
| 9588 | if test ! -f "$as_myself"; then |
| 9589 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 9590 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 9591 | { (exit 1); exit 1; }; } |
| 9592 | fi |
| 9593 | case $CONFIG_SHELL in |
| 9594 | '') |
| 9595 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9596 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 9597 | do |
| 9598 | IFS=$as_save_IFS |
| 9599 | test -z "$as_dir" && as_dir=. |
| 9600 | for as_base in sh bash ksh sh5; do |
| 9601 | case $as_dir in |
| 9602 | /*) |
| 9603 | if ("$as_dir/$as_base" -c ' |
| 9604 | as_lineno_1=$LINENO |
| 9605 | as_lineno_2=$LINENO |
| 9606 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 9607 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 9608 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 9609 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 9610 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9611 | CONFIG_SHELL=$as_dir/$as_base |
| 9612 | export CONFIG_SHELL |
| 9613 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 9614 | fi;; |
| 9615 | esac |
| 9616 | done |
| 9617 | done |
| 9618 | ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9619 | esac |
| 9620 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9621 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 9622 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 9623 | # line-number line before each line; the second 'sed' does the real |
| 9624 | # work. The second script uses 'N' to pair each line-number line |
| 9625 | # with the numbered line, and appends trailing '-' during |
| 9626 | # substitution so that $LINENO is not a special case at line end. |
| 9627 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 9628 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 9629 | sed '=' <$as_myself | |
| 9630 | sed ' |
| 9631 | N |
| 9632 | s,$,-, |
| 9633 | : loop |
| 9634 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 9635 | t loop |
| 9636 | s,-$,, |
| 9637 | s,^['$as_cr_digits']*\n,, |
| 9638 | ' >$as_me.lineno && |
| 9639 | chmod +x $as_me.lineno || |
| 9640 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 9641 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 9642 | { (exit 1); exit 1; }; } |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9643 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9644 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 9645 | # (the dirname of $[0] is not the place where we might find the |
| 9646 | # original and so on. Autoconf is especially sensible to this). |
| 9647 | . ./$as_me.lineno |
| 9648 | # Exit status is that of the last command. |
| 9649 | exit |
| 9650 | } |
| 9651 | |
| 9652 | |
| 9653 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 9654 | *c*,-n*) ECHO_N= ECHO_C=' |
| 9655 | ' ECHO_T=' ' ;; |
| 9656 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 9657 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 9658 | esac |
| 9659 | |
| 9660 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 9661 | as_expr=expr |
| 9662 | else |
| 9663 | as_expr=false |
| 9664 | fi |
| 9665 | |
| 9666 | rm -f conf$$ conf$$.exe conf$$.file |
| 9667 | echo >conf$$.file |
| 9668 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 9669 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 9670 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 9671 | if test -f conf$$.exe; then |
| 9672 | # Don't use ln at all; we don't have any links |
| 9673 | as_ln_s='cp -p' |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9674 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9675 | as_ln_s='ln -s' |
| 9676 | fi |
| 9677 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 9678 | as_ln_s=ln |
| 9679 | else |
| 9680 | as_ln_s='cp -p' |
| 9681 | fi |
| 9682 | rm -f conf$$ conf$$.exe conf$$.file |
| 9683 | |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 9684 | if mkdir -p . 2>/dev/null; then |
| 9685 | as_mkdir_p=: |
| 9686 | else |
| 9687 | as_mkdir_p=false |
| 9688 | fi |
| 9689 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9690 | as_executable_p="test -f" |
| 9691 | |
| 9692 | # Sed expression to map a string onto a valid CPP name. |
| 9693 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 9694 | |
| 9695 | # Sed expression to map a string onto a valid variable name. |
| 9696 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 9697 | |
| 9698 | |
| 9699 | # IFS |
| 9700 | # We need space, tab and new line, in precisely that order. |
| 9701 | as_nl=' |
| 9702 | ' |
| 9703 | IFS=" $as_nl" |
| 9704 | |
| 9705 | # CDPATH. |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 9706 | $as_unset CDPATH |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9707 | |
| 9708 | exec 6>&1 |
| 9709 | |
| 9710 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 9711 | # report actual input values of CONFIG_FILES etc. instead of their |
| 9712 | # values after options handling. Logging --version etc. is OK. |
| 9713 | exec 5>>config.log |
| 9714 | { |
| 9715 | echo |
| 9716 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 9717 | ## Running $as_me. ## |
| 9718 | _ASBOX |
| 9719 | } >&5 |
| 9720 | cat >&5 <<_CSEOF |
| 9721 | |
jjako | 193e8b1 | 2003-11-10 12:31:41 +0000 | [diff] [blame^] | 9722 | This file was extended by openggsn $as_me 0.71b, which was |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 9723 | generated by GNU Autoconf 2.57. Invocation command line was |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9724 | |
| 9725 | CONFIG_FILES = $CONFIG_FILES |
| 9726 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 9727 | CONFIG_LINKS = $CONFIG_LINKS |
| 9728 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 9729 | $ $0 $@ |
| 9730 | |
| 9731 | _CSEOF |
| 9732 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 9733 | echo >&5 |
| 9734 | _ACEOF |
| 9735 | |
| 9736 | # Files that config.status was made for. |
| 9737 | if test -n "$ac_config_files"; then |
| 9738 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 9739 | fi |
| 9740 | |
| 9741 | if test -n "$ac_config_headers"; then |
| 9742 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 9743 | fi |
| 9744 | |
| 9745 | if test -n "$ac_config_links"; then |
| 9746 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 9747 | fi |
| 9748 | |
| 9749 | if test -n "$ac_config_commands"; then |
| 9750 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 9751 | fi |
| 9752 | |
| 9753 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 9754 | |
| 9755 | ac_cs_usage="\ |
| 9756 | \`$as_me' instantiates files from templates according to the |
| 9757 | current configuration. |
| 9758 | |
| 9759 | Usage: $0 [OPTIONS] [FILE]... |
| 9760 | |
| 9761 | -h, --help print this help, then exit |
| 9762 | -V, --version print version number, then exit |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 9763 | -q, --quiet do not print progress messages |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9764 | -d, --debug don't remove temporary files |
| 9765 | --recheck update $as_me by reconfiguring in the same conditions |
| 9766 | --file=FILE[:TEMPLATE] |
| 9767 | instantiate the configuration file FILE |
| 9768 | --header=FILE[:TEMPLATE] |
| 9769 | instantiate the configuration header FILE |
| 9770 | |
| 9771 | Configuration files: |
| 9772 | $config_files |
| 9773 | |
| 9774 | Configuration headers: |
| 9775 | $config_headers |
| 9776 | |
| 9777 | Configuration commands: |
| 9778 | $config_commands |
| 9779 | |
| 9780 | Report bugs to <bug-autoconf@gnu.org>." |
| 9781 | _ACEOF |
| 9782 | |
| 9783 | cat >>$CONFIG_STATUS <<_ACEOF |
| 9784 | ac_cs_version="\\ |
jjako | 193e8b1 | 2003-11-10 12:31:41 +0000 | [diff] [blame^] | 9785 | openggsn config.status 0.71b |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 9786 | configured by $0, generated by GNU Autoconf 2.57, |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9787 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 9788 | |
| 9789 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
| 9790 | Free Software Foundation, Inc. |
| 9791 | This config.status script is free software; the Free Software Foundation |
| 9792 | gives unlimited permission to copy, distribute and modify it." |
| 9793 | srcdir=$srcdir |
| 9794 | INSTALL="$INSTALL" |
| 9795 | _ACEOF |
| 9796 | |
| 9797 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 9798 | # If no file are specified by the user, then we need to provide default |
| 9799 | # value. By we need to know if files were specified by the user. |
| 9800 | ac_need_defaults=: |
| 9801 | while test $# != 0 |
| 9802 | do |
| 9803 | case $1 in |
| 9804 | --*=*) |
| 9805 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 9806 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 9807 | ac_shift=: |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9808 | ;; |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 9809 | -*) |
| 9810 | ac_option=$1 |
| 9811 | ac_optarg=$2 |
| 9812 | ac_shift=shift |
| 9813 | ;; |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9814 | *) # This is not an option, so the user has probably given explicit |
| 9815 | # arguments. |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 9816 | ac_option=$1 |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9817 | ac_need_defaults=false;; |
| 9818 | esac |
| 9819 | |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 9820 | case $ac_option in |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9821 | # Handling of the options. |
| 9822 | _ACEOF |
jjako | 0a120b2 | 2003-07-10 18:35:50 +0000 | [diff] [blame] | 9823 | cat >>$CONFIG_STATUS <<\_ACEOF |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 9824 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 9825 | ac_cs_recheck=: ;; |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9826 | --version | --vers* | -V ) |
| 9827 | echo "$ac_cs_version"; exit 0 ;; |
| 9828 | --he | --h) |
| 9829 | # Conflict between --help and --header |
| 9830 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 9831 | Try \`$0 --help' for more information." >&5 |
| 9832 | echo "$as_me: error: ambiguous option: $1 |
| 9833 | Try \`$0 --help' for more information." >&2;} |
| 9834 | { (exit 1); exit 1; }; };; |
| 9835 | --help | --hel | -h ) |
| 9836 | echo "$ac_cs_usage"; exit 0 ;; |
| 9837 | --debug | --d* | -d ) |
| 9838 | debug=: ;; |
| 9839 | --file | --fil | --fi | --f ) |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 9840 | $ac_shift |
| 9841 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9842 | ac_need_defaults=false;; |
| 9843 | --header | --heade | --head | --hea ) |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 9844 | $ac_shift |
| 9845 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9846 | ac_need_defaults=false;; |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 9847 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 9848 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 9849 | ac_cs_silent=: ;; |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9850 | |
| 9851 | # This is an error. |
| 9852 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 9853 | Try \`$0 --help' for more information." >&5 |
| 9854 | echo "$as_me: error: unrecognized option: $1 |
| 9855 | Try \`$0 --help' for more information." >&2;} |
| 9856 | { (exit 1); exit 1; }; } ;; |
| 9857 | |
| 9858 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 9859 | |
| 9860 | esac |
| 9861 | shift |
| 9862 | done |
| 9863 | |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 9864 | ac_configure_extra_args= |
| 9865 | |
| 9866 | if $ac_cs_silent; then |
| 9867 | exec 6>/dev/null |
| 9868 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 9869 | fi |
| 9870 | |
| 9871 | _ACEOF |
| 9872 | cat >>$CONFIG_STATUS <<_ACEOF |
| 9873 | if \$ac_cs_recheck; then |
| 9874 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 9875 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 9876 | fi |
| 9877 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9878 | _ACEOF |
| 9879 | |
| 9880 | cat >>$CONFIG_STATUS <<_ACEOF |
| 9881 | # |
| 9882 | # INIT-COMMANDS section. |
| 9883 | # |
| 9884 | |
| 9885 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
| 9886 | |
| 9887 | _ACEOF |
| 9888 | |
| 9889 | |
| 9890 | |
| 9891 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 9892 | for ac_config_target in $ac_config_targets |
| 9893 | do |
| 9894 | case "$ac_config_target" in |
| 9895 | # Handling of arguments. |
| 9896 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 9897 | "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
| 9898 | "ggsn/Makefile" ) CONFIG_FILES="$CONFIG_FILES ggsn/Makefile" ;; |
| 9899 | "gtp/Makefile" ) CONFIG_FILES="$CONFIG_FILES gtp/Makefile" ;; |
| 9900 | "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;; |
| 9901 | "po/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; |
| 9902 | "sgsnemu/Makefile" ) CONFIG_FILES="$CONFIG_FILES sgsnemu/Makefile" ;; |
| 9903 | "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
| 9904 | "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; |
jjako | a9639f3 | 2003-07-07 15:30:11 +0000 | [diff] [blame] | 9905 | "openggsn.spec" ) CONFIG_FILES="$CONFIG_FILES openggsn.spec" ;; |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9906 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
| 9907 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
| 9908 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 9909 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 9910 | { (exit 1); exit 1; }; };; |
| 9911 | esac |
| 9912 | done |
| 9913 | |
| 9914 | # If the user did not use the arguments to specify the items to instantiate, |
| 9915 | # then the envvar interface is used. Set only those that are not. |
| 9916 | # We use the long form for the default assignment because of an extremely |
| 9917 | # bizarre bug on SunOS 4.1.3. |
| 9918 | if $ac_need_defaults; then |
| 9919 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 9920 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 9921 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 9922 | fi |
| 9923 | |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 9924 | # Have a temporary directory for convenience. Make it in the build tree |
| 9925 | # simply because there is no reason to put it here, and in addition, |
| 9926 | # creating and moving files from /tmp can sometimes cause problems. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9927 | # Create a temporary directory, and hook for its removal unless debugging. |
| 9928 | $debug || |
| 9929 | { |
| 9930 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 9931 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 9932 | } |
| 9933 | |
| 9934 | # Create a (secure) tmp directory for tmp files. |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 9935 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9936 | { |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 9937 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9938 | test -n "$tmp" && test -d "$tmp" |
| 9939 | } || |
| 9940 | { |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 9941 | tmp=./confstat$$-$RANDOM |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9942 | (umask 077 && mkdir $tmp) |
| 9943 | } || |
| 9944 | { |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 9945 | echo "$me: cannot create a temporary directory in ." >&2 |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9946 | { (exit 1); exit 1; } |
| 9947 | } |
| 9948 | |
| 9949 | _ACEOF |
| 9950 | |
| 9951 | cat >>$CONFIG_STATUS <<_ACEOF |
| 9952 | |
| 9953 | # |
| 9954 | # CONFIG_FILES section. |
| 9955 | # |
| 9956 | |
| 9957 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 9958 | # This happens for instance when ./config.status config.h |
| 9959 | if test -n "\$CONFIG_FILES"; then |
| 9960 | # Protect against being on the right side of a sed subst in config.status. |
| 9961 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 9962 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 9963 | s,@SHELL@,$SHELL,;t t |
| 9964 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 9965 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 9966 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 9967 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 9968 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 9969 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 9970 | s,@exec_prefix@,$exec_prefix,;t t |
| 9971 | s,@prefix@,$prefix,;t t |
| 9972 | s,@program_transform_name@,$program_transform_name,;t t |
| 9973 | s,@bindir@,$bindir,;t t |
| 9974 | s,@sbindir@,$sbindir,;t t |
| 9975 | s,@libexecdir@,$libexecdir,;t t |
| 9976 | s,@datadir@,$datadir,;t t |
| 9977 | s,@sysconfdir@,$sysconfdir,;t t |
| 9978 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 9979 | s,@localstatedir@,$localstatedir,;t t |
| 9980 | s,@libdir@,$libdir,;t t |
| 9981 | s,@includedir@,$includedir,;t t |
| 9982 | s,@oldincludedir@,$oldincludedir,;t t |
| 9983 | s,@infodir@,$infodir,;t t |
| 9984 | s,@mandir@,$mandir,;t t |
| 9985 | s,@build_alias@,$build_alias,;t t |
| 9986 | s,@host_alias@,$host_alias,;t t |
| 9987 | s,@target_alias@,$target_alias,;t t |
| 9988 | s,@DEFS@,$DEFS,;t t |
| 9989 | s,@ECHO_C@,$ECHO_C,;t t |
| 9990 | s,@ECHO_N@,$ECHO_N,;t t |
| 9991 | s,@ECHO_T@,$ECHO_T,;t t |
| 9992 | s,@LIBS@,$LIBS,;t t |
| 9993 | s,@CC@,$CC,;t t |
| 9994 | s,@CFLAGS@,$CFLAGS,;t t |
| 9995 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 9996 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 9997 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 9998 | s,@EXEEXT@,$EXEEXT,;t t |
| 9999 | s,@OBJEXT@,$OBJEXT,;t t |
| 10000 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 10001 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 10002 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 10003 | s,@AWK@,$AWK,;t t |
| 10004 | s,@CPP@,$CPP,;t t |
| 10005 | s,@CXX@,$CXX,;t t |
| 10006 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
| 10007 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
| 10008 | s,@RANLIB@,$RANLIB,;t t |
| 10009 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 10010 | s,@build@,$build,;t t |
| 10011 | s,@build_cpu@,$build_cpu,;t t |
| 10012 | s,@build_vendor@,$build_vendor,;t t |
| 10013 | s,@build_os@,$build_os,;t t |
| 10014 | s,@host@,$host,;t t |
| 10015 | s,@host_cpu@,$host_cpu,;t t |
| 10016 | s,@host_vendor@,$host_vendor,;t t |
| 10017 | s,@host_os@,$host_os,;t t |
| 10018 | s,@LN_S@,$LN_S,;t t |
| 10019 | s,@ECHO@,$ECHO,;t t |
| 10020 | s,@STRIP@,$STRIP,;t t |
| 10021 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 10022 | s,@EGREP@,$EGREP,;t t |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10023 | s,@LIBTOOL@,$LIBTOOL,;t t |
jjako | a9639f3 | 2003-07-07 15:30:11 +0000 | [diff] [blame] | 10024 | s,@EXEC_LDFLAGS@,$EXEC_LDFLAGS,;t t |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10025 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 10026 | s,@PACKAGE@,$PACKAGE,;t t |
| 10027 | s,@VERSION@,$VERSION,;t t |
| 10028 | s,@ACLOCAL@,$ACLOCAL,;t t |
| 10029 | s,@AUTOCONF@,$AUTOCONF,;t t |
| 10030 | s,@AUTOMAKE@,$AUTOMAKE,;t t |
| 10031 | s,@AUTOHEADER@,$AUTOHEADER,;t t |
| 10032 | s,@MAKEINFO@,$MAKEINFO,;t t |
| 10033 | s,@AMTAR@,$AMTAR,;t t |
| 10034 | s,@install_sh@,$install_sh,;t t |
| 10035 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
| 10036 | s,@SET_MAKE@,$SET_MAKE,;t t |
| 10037 | s,@DEPDIR@,$DEPDIR,;t t |
| 10038 | s,@am__include@,$am__include,;t t |
| 10039 | s,@am__quote@,$am__quote,;t t |
| 10040 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
| 10041 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
| 10042 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
| 10043 | s,@CCDEPMODE@,$CCDEPMODE,;t t |
| 10044 | s,@CXXDEPMODE@,$CXXDEPMODE,;t t |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 10045 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10046 | CEOF |
| 10047 | |
| 10048 | _ACEOF |
| 10049 | |
| 10050 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 10051 | # Split the substitutions into bite-sized pieces for seds with |
| 10052 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 10053 | ac_max_sed_lines=48 |
| 10054 | ac_sed_frag=1 # Number of current file. |
| 10055 | ac_beg=1 # First line for current file. |
| 10056 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 10057 | ac_more_lines=: |
| 10058 | ac_sed_cmds= |
| 10059 | while $ac_more_lines; do |
| 10060 | if test $ac_beg -gt 1; then |
| 10061 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 10062 | else |
| 10063 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 10064 | fi |
| 10065 | if test ! -s $tmp/subs.frag; then |
| 10066 | ac_more_lines=false |
| 10067 | else |
| 10068 | # The purpose of the label and of the branching condition is to |
| 10069 | # speed up the sed processing (if there are no `@' at all, there |
| 10070 | # is no need to browse any of the substitutions). |
| 10071 | # These are the two extra sed commands mentioned above. |
| 10072 | (echo ':t |
| 10073 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 10074 | if test -z "$ac_sed_cmds"; then |
| 10075 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 10076 | else |
| 10077 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 10078 | fi |
| 10079 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 10080 | ac_beg=$ac_end |
| 10081 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 10082 | fi |
| 10083 | done |
| 10084 | if test -z "$ac_sed_cmds"; then |
| 10085 | ac_sed_cmds=cat |
| 10086 | fi |
| 10087 | fi # test -n "$CONFIG_FILES" |
| 10088 | |
| 10089 | _ACEOF |
| 10090 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 10091 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 10092 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 10093 | case $ac_file in |
| 10094 | - | *:- | *:-:* ) # input from stdin |
| 10095 | cat >$tmp/stdin |
| 10096 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 10097 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 10098 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 10099 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 10100 | * ) ac_file_in=$ac_file.in ;; |
| 10101 | esac |
| 10102 | |
| 10103 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 10104 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 10105 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 10106 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 10107 | X"$ac_file" : 'X\(//\)$' \| \ |
| 10108 | X"$ac_file" : 'X\(/\)' \| \ |
| 10109 | . : '\(.\)' 2>/dev/null || |
| 10110 | echo X"$ac_file" | |
| 10111 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 10112 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 10113 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 10114 | /^X\(\/\).*/{ s//\1/; q; } |
| 10115 | s/.*/./; q'` |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 10116 | { if $as_mkdir_p; then |
| 10117 | mkdir -p "$ac_dir" |
| 10118 | else |
| 10119 | as_dir="$ac_dir" |
| 10120 | as_dirs= |
| 10121 | while test ! -d "$as_dir"; do |
| 10122 | as_dirs="$as_dir $as_dirs" |
| 10123 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 10124 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 10125 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 10126 | X"$as_dir" : 'X\(//\)$' \| \ |
| 10127 | X"$as_dir" : 'X\(/\)' \| \ |
| 10128 | . : '\(.\)' 2>/dev/null || |
| 10129 | echo X"$as_dir" | |
| 10130 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 10131 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 10132 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 10133 | /^X\(\/\).*/{ s//\1/; q; } |
| 10134 | s/.*/./; q'` |
| 10135 | done |
| 10136 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 10137 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 10138 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 10139 | { (exit 1); exit 1; }; }; } |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10140 | |
| 10141 | ac_builddir=. |
| 10142 | |
| 10143 | if test "$ac_dir" != .; then |
| 10144 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 10145 | # A "../" for each directory in $ac_dir_suffix. |
| 10146 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 10147 | else |
| 10148 | ac_dir_suffix= ac_top_builddir= |
| 10149 | fi |
| 10150 | |
| 10151 | case $srcdir in |
| 10152 | .) # No --srcdir option. We are building in place. |
| 10153 | ac_srcdir=. |
| 10154 | if test -z "$ac_top_builddir"; then |
| 10155 | ac_top_srcdir=. |
| 10156 | else |
| 10157 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 10158 | fi ;; |
| 10159 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 10160 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 10161 | ac_top_srcdir=$srcdir ;; |
| 10162 | *) # Relative path. |
| 10163 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 10164 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 10165 | esac |
| 10166 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 10167 | # absolute. |
| 10168 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 10169 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10170 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 10171 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 10172 | |
| 10173 | |
| 10174 | case $INSTALL in |
| 10175 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 10176 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 10177 | esac |
| 10178 | |
| 10179 | if test x"$ac_file" != x-; then |
| 10180 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 10181 | echo "$as_me: creating $ac_file" >&6;} |
| 10182 | rm -f "$ac_file" |
| 10183 | fi |
| 10184 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 10185 | # use $as_me), people would be surprised to read: |
| 10186 | # /* config.h. Generated by config.status. */ |
| 10187 | if test x"$ac_file" = x-; then |
| 10188 | configure_input= |
| 10189 | else |
| 10190 | configure_input="$ac_file. " |
| 10191 | fi |
| 10192 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 10193 | sed 's,.*/,,'` by configure." |
| 10194 | |
| 10195 | # First look for the input files in the build tree, otherwise in the |
| 10196 | # src tree. |
| 10197 | ac_file_inputs=`IFS=: |
| 10198 | for f in $ac_file_in; do |
| 10199 | case $f in |
| 10200 | -) echo $tmp/stdin ;; |
| 10201 | [\\/$]*) |
| 10202 | # Absolute (can't be DOS-style, as IFS=:) |
| 10203 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 10204 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 10205 | { (exit 1); exit 1; }; } |
| 10206 | echo $f;; |
| 10207 | *) # Relative |
| 10208 | if test -f "$f"; then |
| 10209 | # Build tree |
| 10210 | echo $f |
| 10211 | elif test -f "$srcdir/$f"; then |
| 10212 | # Source tree |
| 10213 | echo $srcdir/$f |
| 10214 | else |
| 10215 | # /dev/null tree |
| 10216 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 10217 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 10218 | { (exit 1); exit 1; }; } |
| 10219 | fi;; |
| 10220 | esac |
| 10221 | done` || { (exit 1); exit 1; } |
| 10222 | _ACEOF |
| 10223 | cat >>$CONFIG_STATUS <<_ACEOF |
| 10224 | sed "$ac_vpsub |
| 10225 | $extrasub |
| 10226 | _ACEOF |
| 10227 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 10228 | :t |
| 10229 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 10230 | s,@configure_input@,$configure_input,;t t |
| 10231 | s,@srcdir@,$ac_srcdir,;t t |
| 10232 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 10233 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 10234 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 10235 | s,@builddir@,$ac_builddir,;t t |
| 10236 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 10237 | s,@top_builddir@,$ac_top_builddir,;t t |
| 10238 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 10239 | s,@INSTALL@,$ac_INSTALL,;t t |
| 10240 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 10241 | rm -f $tmp/stdin |
| 10242 | if test x"$ac_file" != x-; then |
| 10243 | mv $tmp/out $ac_file |
| 10244 | else |
| 10245 | cat $tmp/out |
| 10246 | rm -f $tmp/out |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 10247 | fi |
| 10248 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10249 | done |
| 10250 | _ACEOF |
| 10251 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 10252 | |
| 10253 | # |
| 10254 | # CONFIG_HEADER section. |
| 10255 | # |
| 10256 | |
| 10257 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 10258 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 10259 | # |
| 10260 | # ac_d sets the value in "#define NAME VALUE" lines. |
| 10261 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 10262 | ac_dB='[ ].*$,\1#\2' |
| 10263 | ac_dC=' ' |
| 10264 | ac_dD=',;t' |
| 10265 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 10266 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 10267 | ac_uB='$,\1#\2define\3' |
| 10268 | ac_uC=' ' |
| 10269 | ac_uD=',;t' |
| 10270 | |
| 10271 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
| 10272 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 10273 | case $ac_file in |
| 10274 | - | *:- | *:-:* ) # input from stdin |
| 10275 | cat >$tmp/stdin |
| 10276 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 10277 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 10278 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 10279 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 10280 | * ) ac_file_in=$ac_file.in ;; |
| 10281 | esac |
| 10282 | |
| 10283 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 10284 | echo "$as_me: creating $ac_file" >&6;} |
| 10285 | |
| 10286 | # First look for the input files in the build tree, otherwise in the |
| 10287 | # src tree. |
| 10288 | ac_file_inputs=`IFS=: |
| 10289 | for f in $ac_file_in; do |
| 10290 | case $f in |
| 10291 | -) echo $tmp/stdin ;; |
| 10292 | [\\/$]*) |
| 10293 | # Absolute (can't be DOS-style, as IFS=:) |
| 10294 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 10295 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 10296 | { (exit 1); exit 1; }; } |
| 10297 | echo $f;; |
| 10298 | *) # Relative |
| 10299 | if test -f "$f"; then |
| 10300 | # Build tree |
| 10301 | echo $f |
| 10302 | elif test -f "$srcdir/$f"; then |
| 10303 | # Source tree |
| 10304 | echo $srcdir/$f |
| 10305 | else |
| 10306 | # /dev/null tree |
| 10307 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 10308 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 10309 | { (exit 1); exit 1; }; } |
| 10310 | fi;; |
| 10311 | esac |
| 10312 | done` || { (exit 1); exit 1; } |
| 10313 | # Remove the trailing spaces. |
| 10314 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
| 10315 | |
| 10316 | _ACEOF |
| 10317 | |
| 10318 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 10319 | # `conftest.undefs', that substitutes the proper values into |
| 10320 | # config.h.in to produce config.h. The first handles `#define' |
| 10321 | # templates, and the second `#undef' templates. |
| 10322 | # And first: Protect against being on the right side of a sed subst in |
| 10323 | # config.status. Protect against being in an unquoted here document |
| 10324 | # in config.status. |
| 10325 | rm -f conftest.defines conftest.undefs |
| 10326 | # Using a here document instead of a string reduces the quoting nightmare. |
| 10327 | # Putting comments in sed scripts is not portable. |
| 10328 | # |
| 10329 | # `end' is used to avoid that the second main sed command (meant for |
| 10330 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 10331 | # See the Autoconf documentation for `clear'. |
| 10332 | cat >confdef2sed.sed <<\_ACEOF |
| 10333 | s/[\\&,]/\\&/g |
| 10334 | s,[\\$`],\\&,g |
| 10335 | t clear |
| 10336 | : clear |
| 10337 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
| 10338 | t end |
| 10339 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| 10340 | : end |
| 10341 | _ACEOF |
| 10342 | # If some macros were called several times there might be several times |
| 10343 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 10344 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 10345 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 10346 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 10347 | rm -f confdef2sed.sed |
| 10348 | |
| 10349 | # This sed command replaces #undef with comments. This is necessary, for |
| 10350 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 10351 | # on some systems where configure will not decide to define it. |
| 10352 | cat >>conftest.undefs <<\_ACEOF |
| 10353 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
| 10354 | _ACEOF |
| 10355 | |
| 10356 | # Break up conftest.defines because some shells have a limit on the size |
| 10357 | # of here documents, and old seds have small limits too (100 cmds). |
| 10358 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 10359 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10360 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 10361 | echo ' :' >>$CONFIG_STATUS |
| 10362 | rm -f conftest.tail |
| 10363 | while grep . conftest.defines >/dev/null |
| 10364 | do |
| 10365 | # Write a limited-size here document to $tmp/defines.sed. |
| 10366 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 10367 | # Speed up: don't consider the non `#define' lines. |
| 10368 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| 10369 | # Work around the forget-to-reset-the-flag bug. |
| 10370 | echo 't clr' >>$CONFIG_STATUS |
| 10371 | echo ': clr' >>$CONFIG_STATUS |
| 10372 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
| 10373 | echo 'CEOF |
| 10374 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 10375 | rm -f $tmp/in |
| 10376 | mv $tmp/out $tmp/in |
| 10377 | ' >>$CONFIG_STATUS |
| 10378 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 10379 | rm -f conftest.defines |
| 10380 | mv conftest.tail conftest.defines |
| 10381 | done |
| 10382 | rm -f conftest.defines |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 10383 | echo ' fi # grep' >>$CONFIG_STATUS |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10384 | echo >>$CONFIG_STATUS |
| 10385 | |
| 10386 | # Break up conftest.undefs because some shells have a limit on the size |
| 10387 | # of here documents, and old seds have small limits too (100 cmds). |
| 10388 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 10389 | rm -f conftest.tail |
| 10390 | while grep . conftest.undefs >/dev/null |
| 10391 | do |
| 10392 | # Write a limited-size here document to $tmp/undefs.sed. |
| 10393 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 10394 | # Speed up: don't consider the non `#undef' |
| 10395 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| 10396 | # Work around the forget-to-reset-the-flag bug. |
| 10397 | echo 't clr' >>$CONFIG_STATUS |
| 10398 | echo ': clr' >>$CONFIG_STATUS |
| 10399 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 10400 | echo 'CEOF |
| 10401 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 10402 | rm -f $tmp/in |
| 10403 | mv $tmp/out $tmp/in |
| 10404 | ' >>$CONFIG_STATUS |
| 10405 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 10406 | rm -f conftest.undefs |
| 10407 | mv conftest.tail conftest.undefs |
| 10408 | done |
| 10409 | rm -f conftest.undefs |
| 10410 | |
| 10411 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 10412 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 10413 | # use $as_me), people would be surprised to read: |
| 10414 | # /* config.h. Generated by config.status. */ |
| 10415 | if test x"$ac_file" = x-; then |
| 10416 | echo "/* Generated by configure. */" >$tmp/config.h |
| 10417 | else |
| 10418 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
| 10419 | fi |
| 10420 | cat $tmp/in >>$tmp/config.h |
| 10421 | rm -f $tmp/in |
| 10422 | if test x"$ac_file" != x-; then |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 10423 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10424 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 10425 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 10426 | else |
| 10427 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 10428 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 10429 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 10430 | X"$ac_file" : 'X\(//\)$' \| \ |
| 10431 | X"$ac_file" : 'X\(/\)' \| \ |
| 10432 | . : '\(.\)' 2>/dev/null || |
| 10433 | echo X"$ac_file" | |
| 10434 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 10435 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 10436 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 10437 | /^X\(\/\).*/{ s//\1/; q; } |
| 10438 | s/.*/./; q'` |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 10439 | { if $as_mkdir_p; then |
| 10440 | mkdir -p "$ac_dir" |
| 10441 | else |
| 10442 | as_dir="$ac_dir" |
| 10443 | as_dirs= |
| 10444 | while test ! -d "$as_dir"; do |
| 10445 | as_dirs="$as_dir $as_dirs" |
| 10446 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 10447 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 10448 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 10449 | X"$as_dir" : 'X\(//\)$' \| \ |
| 10450 | X"$as_dir" : 'X\(/\)' \| \ |
| 10451 | . : '\(.\)' 2>/dev/null || |
| 10452 | echo X"$as_dir" | |
| 10453 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 10454 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 10455 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 10456 | /^X\(\/\).*/{ s//\1/; q; } |
| 10457 | s/.*/./; q'` |
| 10458 | done |
| 10459 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 10460 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 10461 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 10462 | { (exit 1); exit 1; }; }; } |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10463 | |
| 10464 | rm -f $ac_file |
| 10465 | mv $tmp/config.h $ac_file |
| 10466 | fi |
| 10467 | else |
| 10468 | cat $tmp/config.h |
| 10469 | rm -f $tmp/config.h |
| 10470 | fi |
| 10471 | # Run the commands associated with the file. |
| 10472 | case $ac_file in |
| 10473 | config.h ) # update the timestamp |
| 10474 | echo 'timestamp for config.h' >"./stamp-h1" |
| 10475 | ;; |
| 10476 | esac |
| 10477 | done |
| 10478 | _ACEOF |
| 10479 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 10480 | |
| 10481 | # |
| 10482 | # CONFIG_COMMANDS section. |
| 10483 | # |
| 10484 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
| 10485 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
| 10486 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 10487 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
| 10488 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 10489 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
| 10490 | X"$ac_dest" : 'X\(//\)$' \| \ |
| 10491 | X"$ac_dest" : 'X\(/\)' \| \ |
| 10492 | . : '\(.\)' 2>/dev/null || |
| 10493 | echo X"$ac_dest" | |
| 10494 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 10495 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 10496 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 10497 | /^X\(\/\).*/{ s//\1/; q; } |
| 10498 | s/.*/./; q'` |
| 10499 | ac_builddir=. |
| 10500 | |
| 10501 | if test "$ac_dir" != .; then |
| 10502 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 10503 | # A "../" for each directory in $ac_dir_suffix. |
| 10504 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 10505 | else |
| 10506 | ac_dir_suffix= ac_top_builddir= |
| 10507 | fi |
| 10508 | |
| 10509 | case $srcdir in |
| 10510 | .) # No --srcdir option. We are building in place. |
| 10511 | ac_srcdir=. |
| 10512 | if test -z "$ac_top_builddir"; then |
| 10513 | ac_top_srcdir=. |
| 10514 | else |
| 10515 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 10516 | fi ;; |
| 10517 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 10518 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 10519 | ac_top_srcdir=$srcdir ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 10520 | *) # Relative path. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10521 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 10522 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 10523 | esac |
| 10524 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 10525 | # absolute. |
| 10526 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 10527 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10528 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 10529 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 10530 | |
| 10531 | |
| 10532 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
| 10533 | echo "$as_me: executing $ac_dest commands" >&6;} |
| 10534 | case $ac_dest in |
| 10535 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
| 10536 | # Strip MF so we end up with the name of the file. |
| 10537 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 10538 | # Check whether this is an Automake generated Makefile or not. |
| 10539 | # We used to match only the files named `Makefile.in', but |
| 10540 | # some people rename them; so instead we look at the file content. |
| 10541 | # Grep'ing the first line is not enough: some people post-process |
| 10542 | # each Makefile.in and add a new line on top of each file to say so. |
| 10543 | # So let's grep whole file. |
| 10544 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
| 10545 | dirpart=`(dirname "$mf") 2>/dev/null || |
| 10546 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 10547 | X"$mf" : 'X\(//\)[^/]' \| \ |
| 10548 | X"$mf" : 'X\(//\)$' \| \ |
| 10549 | X"$mf" : 'X\(/\)' \| \ |
| 10550 | . : '\(.\)' 2>/dev/null || |
| 10551 | echo X"$mf" | |
| 10552 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 10553 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 10554 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 10555 | /^X\(\/\).*/{ s//\1/; q; } |
| 10556 | s/.*/./; q'` |
| 10557 | else |
| 10558 | continue |
| 10559 | fi |
| 10560 | grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue |
| 10561 | # Extract the definition of DEP_FILES from the Makefile without |
| 10562 | # running `make'. |
| 10563 | DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` |
| 10564 | test -z "$DEPDIR" && continue |
| 10565 | # When using ansi2knr, U may be empty or an underscore; expand it |
| 10566 | U=`sed -n -e '/^U = / s///p' < "$mf"` |
| 10567 | test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" |
| 10568 | # We invoke sed twice because it is the simplest approach to |
| 10569 | # changing $(DEPDIR) to its actual value in the expansion. |
| 10570 | for file in `sed -n -e ' |
| 10571 | /^DEP_FILES = .*\\\\$/ { |
| 10572 | s/^DEP_FILES = // |
| 10573 | :loop |
| 10574 | s/\\\\$// |
| 10575 | p |
| 10576 | n |
| 10577 | /\\\\$/ b loop |
| 10578 | p |
| 10579 | } |
| 10580 | /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ |
| 10581 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
| 10582 | # Make sure the directory exists. |
| 10583 | test -f "$dirpart/$file" && continue |
| 10584 | fdir=`(dirname "$file") 2>/dev/null || |
| 10585 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 10586 | X"$file" : 'X\(//\)[^/]' \| \ |
| 10587 | X"$file" : 'X\(//\)$' \| \ |
| 10588 | X"$file" : 'X\(/\)' \| \ |
| 10589 | . : '\(.\)' 2>/dev/null || |
| 10590 | echo X"$file" | |
| 10591 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 10592 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 10593 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 10594 | /^X\(\/\).*/{ s//\1/; q; } |
| 10595 | s/.*/./; q'` |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 10596 | { if $as_mkdir_p; then |
| 10597 | mkdir -p $dirpart/$fdir |
| 10598 | else |
| 10599 | as_dir=$dirpart/$fdir |
| 10600 | as_dirs= |
| 10601 | while test ! -d "$as_dir"; do |
| 10602 | as_dirs="$as_dir $as_dirs" |
| 10603 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 10604 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 10605 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 10606 | X"$as_dir" : 'X\(//\)$' \| \ |
| 10607 | X"$as_dir" : 'X\(/\)' \| \ |
| 10608 | . : '\(.\)' 2>/dev/null || |
| 10609 | echo X"$as_dir" | |
| 10610 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 10611 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 10612 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 10613 | /^X\(\/\).*/{ s//\1/; q; } |
| 10614 | s/.*/./; q'` |
| 10615 | done |
| 10616 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 10617 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 |
| 10618 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} |
| 10619 | { (exit 1); exit 1; }; }; } |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 10620 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10621 | # echo "creating $dirpart/$file" |
| 10622 | echo '# dummy' > "$dirpart/$file" |
| 10623 | done |
| 10624 | done |
| 10625 | ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 10626 | esac |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10627 | done |
| 10628 | _ACEOF |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 10629 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10630 | cat >>$CONFIG_STATUS <<\_ACEOF |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 10631 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10632 | { (exit 0); exit 0; } |
| 10633 | _ACEOF |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 10634 | chmod +x $CONFIG_STATUS |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10635 | ac_clean_files=$ac_clean_files_save |
| 10636 | |
| 10637 | |
| 10638 | # configure is writing to config.log, and then calls config.status. |
| 10639 | # config.status does its own redirection, appending to config.log. |
| 10640 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 10641 | # by configure, so config.status won't be able to write to it; its |
| 10642 | # output is simply discarded. So we exec the FD to /dev/null, |
| 10643 | # effectively closing config.log, so it can be properly (re)opened and |
| 10644 | # appended to by config.status. When coming back to configure, we |
| 10645 | # need to make the FD available again. |
| 10646 | if test "$no_create" != yes; then |
| 10647 | ac_cs_success=: |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 10648 | ac_config_status_args= |
| 10649 | test "$silent" = yes && |
| 10650 | ac_config_status_args="$ac_config_status_args --quiet" |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10651 | exec 5>/dev/null |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 10652 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10653 | exec 5>>config.log |
| 10654 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 10655 | # would make configure fail if this is the last instruction. |
| 10656 | $ac_cs_success || { (exit 1); exit 1; } |
| 10657 | fi |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 10658 | |