| 1 | #! /bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
| 3 | # Generated by GNU Autoconf 2.59 for Cbc 2.10.13. |
| 4 | # |
| 5 | # Report bugs to <[email protected]>. |
| 6 | # |
| 7 | # Copyright (C) 2003 Free Software Foundation, Inc. |
| 8 | # This configure script is free software; the Free Software Foundation |
| 9 | # gives unlimited permission to copy, distribute and modify it. |
| 10 | # |
| 11 | # |
| 12 | # Copyright 2006 International Business Machines and others. |
| 13 | # All Rights Reserved. |
| 14 | # This file is part of the open source package Coin which is distributed |
| 15 | # under the Eclipse Public License. |
| 16 | ## --------------------- ## |
| 17 | ## M4sh Initialization. ## |
| 18 | ## --------------------- ## |
| 19 | |
| 20 | # Be Bourne compatible |
| 21 | if testscip-shell system . . test. -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1; then |
| 22 | emulate sh |
| 23 | NULLCMD=: |
| 24 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 25 | # is contrary to our usage. Disable this feature. |
| 26 | alias -g '${1+"$@"}'='"$@"' |
| 27 | elif testscip-shell system . . test. -n "${BASH_VERSION+set}" && (set -o posix) >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1; then |
| 28 | set -o posix |
| 29 | fi |
| 30 | DUALCASE=1; export DUALCASE # for MKS sh |
| 31 | |
| 32 | # Support unset when possible. |
| 33 | if ( (MAIL=60; unset MAIL) || exit) >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1; then |
| 34 | as_unset=unset |
| 35 | else |
| 36 | as_unset=false |
| 37 | fi |
| 38 | |
| 39 | |
| 40 | # Work around bugs in pre-3.0 UWIN ksh. |
| 41 | $as_unset ENV MAIL MAILPATH |
| 42 | PS1='$ ' |
| 43 | PS2='> ' |
| 44 | PS4='+ ' |
| 45 | |
| 46 | # NLS nuisances. |
| 47 | for as_var in \ |
| 48 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 49 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 50 | LC_TELEPHONE LC_TIME |
| 51 | do |
| 52 | if (set +x; testscip-shell system . . test. -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 53 | eval $as_var=C; export $as_var |
| 54 | else |
| 55 | $as_unset $as_var |
| 56 | fi |
| 57 | done |
| 58 | |
| 59 | # Required to use basename. |
| 60 | if exprscip-shell system . . expr. a : '\(a\)' >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1; then |
| 61 | as_expr=expr |
| 62 | else |
| 63 | as_expr=false |
| 64 | fi |
| 65 | |
| 66 | if (basenamescip-shell system . . basename. /scip-shell filesystem . . `/`.) >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 && testscip-shell system . . test. "X`basenamescip-shell system . . basename. /scip-shell filesystem . . `/`. 2>&1`" = "X/"; then |
| 67 | as_basename=basename |
| 68 | else |
| 69 | as_basename=false |
| 70 | fi |
| 71 | |
| 72 | |
| 73 | # Name of the executable. |
| 74 | as_me=`$as_basename "$0" || |
| 75 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 76 | X"$0" : 'X\(//\)$' \| \ |
| 77 | X"$0" : 'X\(/\)$' \| \ |
| 78 | . : '\(.\)' 2>/dev/nullscip-shell filesystem . . `/dev/null`. || |
| 79 | echoscip-shell system . . echo. X/"$0" | |
| 80 | sedscip-shell system . . sed. '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 81 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 82 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 83 | s/.*/./; q'` |
| 84 | |
| 85 | |
| 86 | # PATH needs CR, and LINENO needs CR and PATH. |
| 87 | # Avoid depending upon Character Ranges. |
| 88 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 89 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 90 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 91 | as_cr_digits='0123456789' |
| 92 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 93 | |
| 94 | # The user is always right. |
| 95 | if testscip-shell system . . test. "${PATH_SEPARATOR+set}" != set; then |
| 96 | echoscip-shell system . . echo. "#! /bin/sh" >conf$$.sh |
| 97 | echoscip-shell system . . echo. "exit 0" >>conf$$.sh |
| 98 | chmodscip-shell system . . chmod. +x conf$$.sh |
| 99 | if (PATH="/nonexistent;.scip-shell filesystem . . `/nonexistent;.`."; conf$$.sh) >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1; then |
| 100 | PATH_SEPARATOR=';' |
| 101 | else |
| 102 | PATH_SEPARATOR=: |
| 103 | fi |
| 104 | rmscip-shell system . . rm. -f conf$$.sh |
| 105 | fi |
| 106 | |
| 107 | |
| 108 | as_lineno_1=$LINENO |
| 109 | as_lineno_2=$LINENO |
| 110 | as_lineno_3=`(exprscip-shell system . . expr. $as_lineno_1 + 1) 2>/dev/nullscip-shell filesystem . . `/dev/null`.` |
| 111 | testscip-shell system . . test. "x$as_lineno_1" != "x$as_lineno_2" && |
| 112 | testscip-shell system . . test. "x$as_lineno_3" = "x$as_lineno_2" || { |
| 113 | # Find who we are. Look in the path if we contain no path at all |
| 114 | # relative or not. |
| 115 | case $0 in |
| 116 | *[\\/]* ) as_myself=$0 ;; |
| 117 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 118 | for as_dir in $PATH |
| 119 | do |
| 120 | IFS=$as_save_IFS |
| 121 | testscip-shell system . . test. -z "$as_dir" && as_dir=. |
| 122 | testscip-shell system . . test. -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 123 | done |
| 124 | |
| 125 | ;; |
| 126 | esac |
| 127 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 128 | # in which case we are not to be found in the path. |
| 129 | if testscip-shell system . . test. "x$as_myself" = x; then |
| 130 | as_myself=$0 |
| 131 | fi |
| 132 | if testscip-shell system . . test. ! -f "$as_myself"; then |
| 133 | { echoscip-shell system . . echo. "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
| 134 | { (exit 1); exit 1; }; } |
| 135 | fi |
| 136 | case $CONFIG_SHELL in |
| 137 | '') |
| 138 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 139 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 140 | do |
| 141 | IFS=$as_save_IFS |
| 142 | testscip-shell system . . test. -z "$as_dir" && as_dir=. |
| 143 | for as_base in sh bash ksh sh5; do |
| 144 | case $as_dir in |
| 145 | /*) |
| 146 | if ("$as_dir/$as_base" -c ' |
| 147 | as_lineno_1=$LINENO |
| 148 | as_lineno_2=$LINENO |
| 149 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 150 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 151 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 152 | $as_unset BASH_ENV || testscip-shell system . . test. "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 153 | $as_unset ENV || testscip-shell system . . test. "${ENV+set}" != set || { ENV=; export ENV; } |
| 154 | CONFIG_SHELL=$as_dir/$as_base |
| 155 | export CONFIG_SHELL |
| 156 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 157 | fi;; |
| 158 | esac |
| 159 | done |
| 160 | done |
| 161 | ;; |
| 162 | esac |
| 163 | |
| 164 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 165 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 166 | # line-number line before each line; the second 'sed' does the real |
| 167 | # work. The second script uses 'N' to pair each line-number line |
| 168 | # with the numbered line, and appends trailing '-' during |
| 169 | # substitution so that $LINENO is not a special case at line end. |
| 170 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 171 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 172 | sedscip-shell system . . sed. '=' <$as_myself | |
| 173 | sedscip-shell system . . sed. ' |
| 174 | N |
| 175 | s,$,-, |
| 176 | : loop |
| 177 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 178 | t loop |
| 179 | s,-$,, |
| 180 | s,^['$as_cr_digits']*\n,, |
| 181 | ' >$as_me.lineno && |
| 182 | chmodscip-shell system . . chmod. +x $as_me.lineno || |
| 183 | { echoscip-shell system . . echo. "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 184 | { (exit 1); exit 1; }; } |
| 185 | |
| 186 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 187 | # (the dirname of $[0] is not the place where we might find the |
| 188 | # original and so on. Autoconf is especially sensible to this). |
| 189 | . ./$as_me.lineno |
| 190 | # Exit status is that of the last command. |
| 191 | exit |
| 192 | } |
| 193 | |
| 194 | |
| 195 | case `echoscip-shell system . . echo. "testing\c"; echoscip-shell system . . echo. 1,2,3`,`echoscip-shell system . . echo. -n testing; echoscip-shell system . . echo. 1,2,3` in |
| 196 | *c*,-n*) ECHO_N= ECHO_C=' |
| 197 | ' ECHO_T=' ' ;; |
| 198 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 199 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 200 | esac |
| 201 | |
| 202 | if exprscip-shell system . . expr. a : '\(a\)' >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1; then |
| 203 | as_expr=expr |
| 204 | else |
| 205 | as_expr=false |
| 206 | fi |
| 207 | |
| 208 | rmscip-shell system . . rm. -f conf$$ conf$$.exe conf$$.file |
| 209 | echoscip-shell system . . echo. >conf$$.file |
| 210 | if lnscip-shell system . . ln. -s conf$$.file conf$$ 2>/dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 211 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 212 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 213 | if testscip-shell system . . test. -f conf$$.exe; then |
| 214 | # Don't use ln at all; we don't have any links |
| 215 | as_ln_s='cp -p' |
| 216 | else |
| 217 | as_ln_s='ln -s' |
| 218 | fi |
| 219 | elif lnscip-shell system . . ln. conf$$.file conf$$ 2>/dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 220 | as_ln_s=ln |
| 221 | else |
| 222 | as_ln_s='cp -p' |
| 223 | fi |
| 224 | rmscip-shell system . . rm. -f conf$$ conf$$.exe conf$$.file |
| 225 | |
| 226 | if mkdirscip-shell system . . mkdir. -p . 2>/dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 227 | as_mkdir_p=: |
| 228 | else |
| 229 | testscip-shell system . . test. -d ./-p && rmdirscip-shell system . . rmdir. ./-p |
| 230 | as_mkdir_p=false |
| 231 | fi |
| 232 | |
| 233 | as_executable_p="test -f" |
| 234 | |
| 235 | # Sed expression to map a string onto a valid CPP name. |
| 236 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 237 | |
| 238 | # Sed expression to map a string onto a valid variable name. |
| 239 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 240 | |
| 241 | |
| 242 | # IFS |
| 243 | # We need space, tab and new line, in precisely that order. |
| 244 | as_nl=' |
| 245 | ' |
| 246 | IFS=" $as_nl" |
| 247 | |
| 248 | # CDPATH. |
| 249 | $as_unset CDPATH |
| 250 | |
| 251 | |
| 252 | |
| 253 | # Check that we are running under the correct shell. |
| 254 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 255 | |
| 256 | case X$ECHO in |
| 257 | X*--fallback-echo) |
| 258 | # Remove one level of quotation (which was required for Make). |
| 259 | ECHO=`echoscip-shell system . . echo. "$ECHO" | sedscip-shell system . . sed. 's,\\\\\$\\$0,'$0','` |
| 260 | ;; |
| 261 | esac |
| 262 | |
| 263 | echo=${ECHO-echo} |
| 264 | if testscip-shell system . . test. "X$1" = X--no-reexec; then |
| 265 | # Discard the --no-reexec flag, and continue. |
| 266 | shift |
| 267 | elif testscip-shell system . . test. "X$1" = X--fallback-echo; then |
| 268 | # Avoid inline document here, it may be left over |
| 269 | : |
| 270 | elif testscip-shell system . . test. "X`($echo '\t') 2>/dev/nullscip-shell filesystem . . `/dev/null`.`" = 'X\t' ; then |
| 271 | # Yippee, $echo works! |
| 272 | : |
| 273 | else |
| 274 | # Restart under the correct shell. |
| 275 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
| 276 | fi |
| 277 | |
| 278 | if testscip-shell system . . test. "X$1" = X--fallback-echo; then |
| 279 | # used as fallback echo |
| 280 | shift |
| 281 | catscip-shell system . . cat. <<EOF |
| 282 | $* |
| 283 | EOF |
| 284 | exit 0 |
| 285 | fi |
| 286 | |
| 287 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 288 | # if CDPATH is set. |
| 289 | (unset CDPATH) >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 && unset CDPATH |
| 290 | |
| 291 | if testscip-shell system . . test. -z "$ECHO"; then |
| 292 | if testscip-shell system . . test. "X${echo_test_string+set}" != Xset; then |
| 293 | # find a string as large as possible, as long as the shell can cope with it |
| 294 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
| 295 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
| 296 | if (echo_test_string=`eval $cmd`) 2>/dev/nullscip-shell filesystem . . `/dev/null`. && |
| 297 | echo_test_string=`eval $cmd` && |
| 298 | (testscip-shell system . . test. "X$echo_test_string" = "X$echo_test_string") 2>/dev/nullscip-shell filesystem . . `/dev/null`. |
| 299 | then |
| 300 | break |
| 301 | fi |
| 302 | done |
| 303 | fi |
| 304 | |
| 305 | if testscip-shell system . . test. "X`($echo '\t') 2>/dev/nullscip-shell filesystem . . `/dev/null`.`" = 'X\t' && |
| 306 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/nullscip-shell filesystem . . `/dev/null`.` && |
| 307 | testscip-shell system . . test. "X$echo_testing_string" = "X$echo_test_string"; then |
| 308 | : |
| 309 | else |
| 310 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
| 311 | # backslashes. This makes it impossible to quote backslashes using |
| 312 | # echo "$something" | sed 's/\\/\\\\/g' |
| 313 | # |
| 314 | # So, first we look for a working echo in the user's PATH. |
| 315 | |
| 316 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 317 | for dir in $PATH /usr/ucbscip-shell filesystem . . `/usr/ucb`.; do |
| 318 | IFS="$lt_save_ifs" |
| 319 | if (testscip-shell system . . test. -f $dir/echo || testscip-shell system . . test. -f $dir/echo$ac_exeext) && |
| 320 | testscip-shell system . . test. "X`($dir/echo '\t') 2>/dev/nullscip-shell filesystem . . `/dev/null`.`" = 'X\t' && |
| 321 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/nullscip-shell filesystem . . `/dev/null`.` && |
| 322 | testscip-shell system . . test. "X$echo_testing_string" = "X$echo_test_string"; then |
| 323 | echo="$dir/echo" |
| 324 | break |
| 325 | fi |
| 326 | done |
| 327 | IFS="$lt_save_ifs" |
| 328 | |
| 329 | if testscip-shell system . . test. "X$echo" = Xecho; then |
| 330 | # We didn't find a better echo, so look for alternatives. |
| 331 | if testscip-shell system . . test. "X`(print -r '\t') 2>/dev/nullscip-shell filesystem . . `/dev/null`.`" = 'X\t' && |
| 332 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/nullscip-shell filesystem . . `/dev/null`.` && |
| 333 | testscip-shell system . . test. "X$echo_testing_string" = "X$echo_test_string"; then |
| 334 | # This shell has a builtin print -r that does the trick. |
| 335 | echo='print -r' |
| 336 | elif (testscip-shell system . . test. -f /bin/kshscip-shell filesystem . . `/bin/ksh`. || testscip-shell system . . test. -f /bin/ksh$ac_exeext) && |
| 337 | testscip-shell system . . test. "X$CONFIG_SHELL" != X/bin/ksh; then |
| 338 | # If we have ksh, try running configure again with it. |
| 339 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
| 340 | export ORIGINAL_CONFIG_SHELL |
| 341 | CONFIG_SHELL=/bin/kshscip-shell filesystem . . `/bin/ksh`. |
| 342 | export CONFIG_SHELL |
| 343 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
| 344 | else |
| 345 | # Try using printf. |
| 346 | echo='printf %s\n' |
| 347 | if testscip-shell system . . test. "X`($echo '\t') 2>/dev/nullscip-shell filesystem . . `/dev/null`.`" = 'X\t' && |
| 348 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/nullscip-shell filesystem . . `/dev/null`.` && |
| 349 | testscip-shell system . . test. "X$echo_testing_string" = "X$echo_test_string"; then |
| 350 | # Cool, printf works |
| 351 | : |
| 352 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/nullscip-shell filesystem . . `/dev/null`.` && |
| 353 | testscip-shell system . . test. "X$echo_testing_string" = 'X\t' && |
| 354 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/nullscip-shell filesystem . . `/dev/null`.` && |
| 355 | testscip-shell system . . test. "X$echo_testing_string" = "X$echo_test_string"; then |
| 356 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
| 357 | export CONFIG_SHELL |
| 358 | SHELL="$CONFIG_SHELL" |
| 359 | export SHELL |
| 360 | echo="$CONFIG_SHELL $0 --fallback-echo" |
| 361 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/nullscip-shell filesystem . . `/dev/null`.` && |
| 362 | testscip-shell system . . test. "X$echo_testing_string" = 'X\t' && |
| 363 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/nullscip-shell filesystem . . `/dev/null`.` && |
| 364 | testscip-shell system . . test. "X$echo_testing_string" = "X$echo_test_string"; then |
| 365 | echo="$CONFIG_SHELL $0 --fallback-echo" |
| 366 | else |
| 367 | # maybe with a smaller string... |
| 368 | prev=: |
| 369 | |
| 370 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
| 371 | if (testscip-shell system . . test. "X$echo_test_string" = "X`eval $cmd`") 2>/dev/nullscip-shell filesystem . . `/dev/null`. |
| 372 | then |
| 373 | break |
| 374 | fi |
| 375 | prev="$cmd" |
| 376 | done |
| 377 | |
| 378 | if testscip-shell system . . test. "$prev" != 'sed 50q "$0"'; then |
| 379 | echo_test_string=`eval $prev` |
| 380 | export echo_test_string |
| 381 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
| 382 | else |
| 383 | # Oops. We lost completely, so just stick with echo. |
| 384 | echo=echo |
| 385 | fi |
| 386 | fi |
| 387 | fi |
| 388 | fi |
| 389 | fi |
| 390 | fi |
| 391 | |
| 392 | # Copy echo and quote the copy suitably for passing to libtool from |
| 393 | # the Makefile, instead of quoting the original, which is used later. |
| 394 | ECHO=$echo |
| 395 | if testscip-shell system . . test. "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
| 396 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
| 397 | fi |
| 398 | |
| 399 | |
| 400 | |
| 401 | |
| 402 | tagnames=${tagnames+${tagnames},}CXX |
| 403 | |
| 404 | tagnames=${tagnames+${tagnames},}F77 |
| 405 | |
| 406 | # Name of the host. |
| 407 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 408 | # so uname gets run too. |
| 409 | ac_hostname=`(hostnamescip-shell system . . hostname. || unamescip-shell system . . uname. -n) 2>/dev/nullscip-shell filesystem . . `/dev/null`. | sedscip-shell system . . sed. 1q` |
| 410 | |
| 411 | exec 6>&1 |
| 412 | |
| 413 | # |
| 414 | # Initializations. |
| 415 | # |
| 416 | ac_default_prefix=/usr/localscip-shell filesystem . . `/usr/local`. |
| 417 | ac_config_libobj_dir=. |
| 418 | cross_compiling=no |
| 419 | subdirs= |
| 420 | MFLAGS= |
| 421 | MAKEFLAGS= |
| 422 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 423 | |
| 424 | # Maximum number of lines to put in a shell here document. |
| 425 | # This variable seems obsolete. It should probably be removed, and |
| 426 | # only ac_max_sed_lines should be used. |
| 427 | : ${ac_max_here_lines=38} |
| 428 | |
| 429 | # Identity of this package. |
| 430 | PACKAGE_NAME='Cbc' |
| 431 | PACKAGE_TARNAME='cbc' |
| 432 | PACKAGE_VERSION='2.10.13' |
| 433 | PACKAGE_STRING='Cbc 2.10.13' |
| 434 | PACKAGE_BUGREPORT='[email protected]' |
| 435 | |
| 436 | ac_unique_file="src/CbcTree.hpp" |
| 437 | ac_default_prefix=`pwdscip-shell system . . pwd.` |
| 438 | # Factoring default headers for most tests. |
| 439 | ac_includes_default="\ |
| 440 | #include <stdio.h> |
| 441 | #if HAVE_SYS_TYPES_H |
| 442 | # include <sys/types.h> |
| 443 | #endif |
| 444 | #if HAVE_SYS_STAT_H |
| 445 | # include <sys/stat.h> |
| 446 | #endif |
| 447 | #if STDC_HEADERS |
| 448 | # include <stdlib.h> |
| 449 | # include <stddef.h> |
| 450 | #else |
| 451 | # if HAVE_STDLIB_H |
| 452 | # include <stdlib.h> |
| 453 | # endif |
| 454 | #endif |
| 455 | #if HAVE_STRING_H |
| 456 | # if !STDC_HEADERS && HAVE_MEMORY_H |
| 457 | # include <memory.h> |
| 458 | # endif |
| 459 | # include <string.h> |
| 460 | #endif |
| 461 | #if HAVE_STRINGS_H |
| 462 | # include <strings.h> |
| 463 | #endif |
| 464 | #if HAVE_INTTYPES_H |
| 465 | # include <inttypes.h> |
| 466 | #else |
| 467 | # if HAVE_STDINT_H |
| 468 | # include <stdint.h> |
| 469 | # endif |
| 470 | #endif |
| 471 | #if HAVE_UNISTD_H |
| 472 | # include <unistd.h> |
| 473 | #endif" |
| 474 | |
| 475 | 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 build build_cpu build_vendor build_os ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion CBC_SVN_REV CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag dos2unix RPATH_FLAGS LT_LDFLAGS DEPENDENCY_LINKING_TRUE DEPENDENCY_LINKING_FALSE PKG_CONFIG ac_ct_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED COINDEPEND_LIBS COINDEPEND_CFLAGS COINDEPEND_DATA COINDEPEND_DEPENDENCIES COINDEPEND_LIBS_INSTALLED COINDEPEND_CFLAGS_INSTALLED COINDEPEND_DATA_INSTALLED CBCLIB_CFLAGS CBCLIB_LIBS CBCLIB_PCLIBS CBCLIB_PCREQUIRES CBCLIB_DEPENDENCIES CBCLIB_CFLAGS_INSTALLED CBCLIB_LIBS_INSTALLED CBCGENERIC_CFLAGS CBCGENERIC_LIBS CBCGENERIC_PCLIBS CBCGENERIC_PCREQUIRES CBCGENERIC_DEPENDENCIES CBCGENERIC_CFLAGS_INSTALLED CBCGENERIC_LIBS_INSTALLED COIN_HAS_COINDEPEND_TRUE COIN_HAS_COINDEPEND_FALSE CLP_LIBS CLP_CFLAGS CLP_DATA CLP_DEPENDENCIES CLP_LIBS_INSTALLED CLP_CFLAGS_INSTALLED CLP_DATA_INSTALLED COIN_HAS_CLP_TRUE COIN_HAS_CLP_FALSE OSITESTS_LIBS OSITESTS_CFLAGS OSITESTS_DATA OSITESTS_DEPENDENCIES OSITESTS_LIBS_INSTALLED OSITESTS_CFLAGS_INSTALLED OSITESTS_DATA_INSTALLED COIN_HAS_OSITESTS_TRUE COIN_HAS_OSITESTS_FALSE SAMPLE_LIBS SAMPLE_CFLAGS SAMPLE_DATA SAMPLE_DEPENDENCIES SAMPLE_LIBS_INSTALLED SAMPLE_CFLAGS_INSTALLED SAMPLE_DATA_INSTALLED COIN_HAS_SAMPLE_TRUE COIN_HAS_SAMPLE_FALSE NETLIB_LIBS NETLIB_CFLAGS NETLIB_DATA NETLIB_DEPENDENCIES NETLIB_LIBS_INSTALLED NETLIB_CFLAGS_INSTALLED NETLIB_DATA_INSTALLED COIN_HAS_NETLIB_TRUE COIN_HAS_NETLIB_FALSE MIPLIB3_LIBS MIPLIB3_CFLAGS MIPLIB3_DATA MIPLIB3_DEPENDENCIES MIPLIB3_LIBS_INSTALLED MIPLIB3_CFLAGS_INSTALLED MIPLIB3_DATA_INSTALLED COIN_HAS_MIPLIB3_TRUE COIN_HAS_MIPLIB3_FALSE DYLP_LIBS DYLP_CFLAGS DYLP_DATA DYLP_DEPENDENCIES DYLP_LIBS_INSTALLED DYLP_CFLAGS_INSTALLED DYLP_DATA_INSTALLED COIN_HAS_DYLP_TRUE COIN_HAS_DYLP_FALSE VOL_LIBS VOL_CFLAGS VOL_DATA VOL_DEPENDENCIES VOL_LIBS_INSTALLED VOL_CFLAGS_INSTALLED VOL_DATA_INSTALLED COIN_HAS_VOL_TRUE COIN_HAS_VOL_FALSE CPX_LIBS CPX_CFLAGS CPX_DATA CPX_DEPENDENCIES CPX_LIBS_INSTALLED CPX_CFLAGS_INSTALLED CPX_DATA_INSTALLED COIN_HAS_CPX_TRUE COIN_HAS_CPX_FALSE GLPK_LIBS GLPK_CFLAGS GLPK_DATA GLPK_DEPENDENCIES GLPK_LIBS_INSTALLED GLPK_CFLAGS_INSTALLED GLPK_DATA_INSTALLED COIN_HAS_GLPK_TRUE COIN_HAS_GLPK_FALSE GRB_LIBS GRB_CFLAGS GRB_DATA GRB_DEPENDENCIES GRB_LIBS_INSTALLED GRB_CFLAGS_INSTALLED GRB_DATA_INSTALLED COIN_HAS_GRB_TRUE COIN_HAS_GRB_FALSE HIGHS_LIBS HIGHS_CFLAGS HIGHS_DATA HIGHS_DEPENDENCIES HIGHS_LIBS_INSTALLED HIGHS_CFLAGS_INSTALLED HIGHS_DATA_INSTALLED COIN_HAS_HIGHS_TRUE COIN_HAS_HIGHS_FALSE MSK_LIBS MSK_CFLAGS MSK_DATA MSK_DEPENDENCIES MSK_LIBS_INSTALLED MSK_CFLAGS_INSTALLED MSK_DATA_INSTALLED COIN_HAS_MSK_TRUE COIN_HAS_MSK_FALSE SPX_LIBS SPX_CFLAGS SPX_DATA SPX_DEPENDENCIES SPX_LIBS_INSTALLED SPX_CFLAGS_INSTALLED SPX_DATA_INSTALLED COIN_HAS_SPX_TRUE COIN_HAS_SPX_FALSE XPR_LIBS XPR_CFLAGS XPR_DATA XPR_DEPENDENCIES XPR_LIBS_INSTALLED XPR_CFLAGS_INSTALLED XPR_DATA_INSTALLED COIN_HAS_XPR_TRUE COIN_HAS_XPR_FALSE ASL_LIBS ASL_CFLAGS ASL_DATA ASL_DEPENDENCIES ASL_LIBS_INSTALLED ASL_CFLAGS_INSTALLED ASL_DATA_INSTALLED COIN_HAS_ASL_TRUE COIN_HAS_ASL_FALSE MUMPS_LIBS MUMPS_CFLAGS MUMPS_DATA MUMPS_DEPENDENCIES MUMPS_LIBS_INSTALLED MUMPS_CFLAGS_INSTALLED MUMPS_DATA_INSTALLED COIN_HAS_MUMPS_TRUE COIN_HAS_MUMPS_FALSE NTYINCDIR NTYLIB COIN_HAS_NTY_TRUE COIN_HAS_NTY_FALSE CBC_BUILD_CBC_GENERIC_TRUE CBC_BUILD_CBC_GENERIC_FALSE OSICBC_DFLT_SOLVER_CLP_TRUE OSICBC_DFLT_SOLVER_CLP_FALSE OSICBC_DFLT_SOLVER_CPX_TRUE OSICBC_DFLT_SOLVER_CPX_FALSE OSICBC_DFLT_SOLVER_DYLP_TRUE OSICBC_DFLT_SOLVER_DYLP_FALSE OSICBC_DFLT_SOLVER_GLPK_TRUE OSICBC_DFLT_SOLVER_GLPK_FALSE OSICBC_DFLT_SOLVER_GRB_TRUE OSICBC_DFLT_SOLVER_GRB_FALSE OSICBC_DFLT_SOLVER_HIGHS_TRUE OSICBC_DFLT_SOLVER_HIGHS_FALSE OSICBC_DFLT_SOLVER_MSK_TRUE OSICBC_DFLT_SOLVER_MSK_FALSE OSICBC_DFLT_SOLVER_SPX_TRUE OSICBC_DFLT_SOLVER_SPX_FALSE OSICBC_DFLT_SOLVER_SYM_TRUE OSICBC_DFLT_SOLVER_SYM_FALSE OSICBC_DFLT_SOLVER_VOL_TRUE OSICBC_DFLT_SOLVER_VOL_FALSE OSICBC_DFLT_SOLVER_XPR_TRUE OSICBC_DFLT_SOLVER_XPR_FALSE coin_have_doxygen coin_have_latex coin_doxy_usedot coin_doxy_tagname coin_doxy_logname COIN_HAS_DOXYGEN_TRUE COIN_HAS_DOXYGEN_FALSE COIN_HAS_LATEX_TRUE COIN_HAS_LATEX_FALSE coin_doxy_tagfiles coin_doxy_excludes LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS' |
| 476 | ac_subst_files='' |
| 477 | |
| 478 | # Initialize some variables set by options. |
| 479 | ac_init_help= |
| 480 | ac_init_version=false |
| 481 | # The variables have the same names as the options, with |
| 482 | # dashes changed to underlines. |
| 483 | cache_file=/dev/nullscip-shell filesystem . . `/dev/null`. |
| 484 | exec_prefix=NONE |
| 485 | no_create= |
| 486 | no_recursion= |
| 487 | prefix=NONE |
| 488 | program_prefix=NONE |
| 489 | program_suffix=NONE |
| 490 | program_transform_name=s,x,x, |
| 491 | silent= |
| 492 | site= |
| 493 | srcdir= |
| 494 | verbose= |
| 495 | x_includes=NONE |
| 496 | x_libraries=NONE |
| 497 | |
| 498 | # Installation directory options. |
| 499 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 500 | # and all the variables that are supposed to be based on exec_prefix |
| 501 | # by default will actually change. |
| 502 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 503 | bindir='${exec_prefix}/bin' |
| 504 | sbindir='${exec_prefix}/sbin' |
| 505 | libexecdir='${exec_prefix}/libexec' |
| 506 | datadir='${prefix}/share' |
| 507 | sysconfdir='${prefix}/etc' |
| 508 | sharedstatedir='${prefix}/com' |
| 509 | localstatedir='${prefix}/var' |
| 510 | libdir='${exec_prefix}/lib' |
| 511 | includedir='${prefix}/include' |
| 512 | oldincludedir='/usr/includescip-shell filesystem . . `/usr/include`.' |
| 513 | infodir='${prefix}/info' |
| 514 | mandir='${prefix}/man' |
| 515 | |
| 516 | ac_prev= |
| 517 | for ac_option |
| 518 | do |
| 519 | # If the previous option needs an argument, assign it. |
| 520 | if testscip-shell system . . test. -n "$ac_prev"; then |
| 521 | eval "$ac_prev=\$ac_option" |
| 522 | ac_prev= |
| 523 | continue |
| 524 | fi |
| 525 | |
| 526 | ac_optarg=`exprscip-shell system . . expr. "x$ac_option" : 'x[^=]*=\(.*\)'` |
| 527 | |
| 528 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 529 | |
| 530 | case $ac_option in |
| 531 | |
| 532 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 533 | ac_prev=bindir ;; |
| 534 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 535 | bindir=$ac_optarg ;; |
| 536 | |
| 537 | -build | --build | --buil | --bui | --bu) |
| 538 | ac_prev=build_alias ;; |
| 539 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 540 | build_alias=$ac_optarg ;; |
| 541 | |
| 542 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 543 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 544 | ac_prev=cache_file ;; |
| 545 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 546 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 547 | cache_file=$ac_optarg ;; |
| 548 | |
| 549 | --config-cache | -C) |
| 550 | cache_file=config.cache ;; |
| 551 | |
| 552 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 553 | ac_prev=datadir ;; |
| 554 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 555 | | --da=*) |
| 556 | datadir=$ac_optarg ;; |
| 557 | |
| 558 | -disable-* | --disable-*) |
| 559 | ac_feature=`exprscip-shell system . . expr. "x$ac_option" : 'x-*disable-\(.*\)'` |
| 560 | # Reject names that are not valid shell variable names. |
| 561 | exprscip-shell system . . expr. "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/nullscip-shell filesystem . . `/dev/null`. && |
| 562 | { echoscip-shell system . . echo. "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 563 | { (exit 1); exit 1; }; } |
| 564 | ac_feature=`echoscip-shell system . . echo. $ac_feature | sedscip-shell system . . sed. 's/-/_/g'` |
| 565 | eval "enable_$ac_feature=no" ;; |
| 566 | |
| 567 | -enable-* | --enable-*) |
| 568 | ac_feature=`exprscip-shell system . . expr. "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 569 | # Reject names that are not valid shell variable names. |
| 570 | exprscip-shell system . . expr. "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/nullscip-shell filesystem . . `/dev/null`. && |
| 571 | { echoscip-shell system . . echo. "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 572 | { (exit 1); exit 1; }; } |
| 573 | ac_feature=`echoscip-shell system . . echo. $ac_feature | sedscip-shell system . . sed. 's/-/_/g'` |
| 574 | case $ac_option in |
| 575 | *=*) ac_optarg=`echoscip-shell system . . echo. "$ac_optarg" | sedscip-shell system . . sed. "s/'/'\\\\\\\\''/g"`;; |
| 576 | *) ac_optarg=yes ;; |
| 577 | esac |
| 578 | eval "enable_$ac_feature='$ac_optarg'" ;; |
| 579 | |
| 580 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 581 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 582 | | --exec | --exe | --ex) |
| 583 | ac_prev=exec_prefix ;; |
| 584 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 585 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 586 | | --exec=* | --exe=* | --ex=*) |
| 587 | exec_prefix=$ac_optarg ;; |
| 588 | |
| 589 | -gas | --gas | --ga | --g) |
| 590 | # Obsolete; use --with-gas. |
| 591 | with_gas=yes ;; |
| 592 | |
| 593 | -help | --help | --hel | --he | -h) |
| 594 | ac_init_help=long ;; |
| 595 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 596 | ac_init_help=recursive ;; |
| 597 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 598 | ac_init_help=short ;; |
| 599 | |
| 600 | -host | --host | --hos | --ho) |
| 601 | ac_prev=host_alias ;; |
| 602 | -host=* | --host=* | --hos=* | --ho=*) |
| 603 | host_alias=$ac_optarg ;; |
| 604 | |
| 605 | -includedir | --includedir | --includedi | --included | --include \ |
| 606 | | --includ | --inclu | --incl | --inc) |
| 607 | ac_prev=includedir ;; |
| 608 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 609 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 610 | includedir=$ac_optarg ;; |
| 611 | |
| 612 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 613 | ac_prev=infodir ;; |
| 614 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 615 | infodir=$ac_optarg ;; |
| 616 | |
| 617 | -libdir | --libdir | --libdi | --libd) |
| 618 | ac_prev=libdir ;; |
| 619 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 620 | libdir=$ac_optarg ;; |
| 621 | |
| 622 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 623 | | --libexe | --libex | --libe) |
| 624 | ac_prev=libexecdir ;; |
| 625 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 626 | | --libexe=* | --libex=* | --libe=*) |
| 627 | libexecdir=$ac_optarg ;; |
| 628 | |
| 629 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 630 | | --localstate | --localstat | --localsta | --localst \ |
| 631 | | --locals | --local | --loca | --loc | --lo) |
| 632 | ac_prev=localstatedir ;; |
| 633 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 634 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 635 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 636 | localstatedir=$ac_optarg ;; |
| 637 | |
| 638 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 639 | ac_prev=mandir ;; |
| 640 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 641 | mandir=$ac_optarg ;; |
| 642 | |
| 643 | -nfp | --nfp | --nf) |
| 644 | # Obsolete; use --without-fp. |
| 645 | with_fp=no ;; |
| 646 | |
| 647 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 648 | | --no-cr | --no-c | -n) |
| 649 | no_create=yes ;; |
| 650 | |
| 651 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 652 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 653 | no_recursion=yes ;; |
| 654 | |
| 655 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 656 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 657 | | --oldin | --oldi | --old | --ol | --o) |
| 658 | ac_prev=oldincludedir ;; |
| 659 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 660 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 661 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 662 | oldincludedir=$ac_optarg ;; |
| 663 | |
| 664 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 665 | ac_prev=prefix ;; |
| 666 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 667 | prefix=$ac_optarg ;; |
| 668 | |
| 669 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 670 | | --program-pre | --program-pr | --program-p) |
| 671 | ac_prev=program_prefix ;; |
| 672 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 673 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 674 | program_prefix=$ac_optarg ;; |
| 675 | |
| 676 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 677 | | --program-suf | --program-su | --program-s) |
| 678 | ac_prev=program_suffix ;; |
| 679 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 680 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 681 | program_suffix=$ac_optarg ;; |
| 682 | |
| 683 | -program-transform-name | --program-transform-name \ |
| 684 | | --program-transform-nam | --program-transform-na \ |
| 685 | | --program-transform-n | --program-transform- \ |
| 686 | | --program-transform | --program-transfor \ |
| 687 | | --program-transfo | --program-transf \ |
| 688 | | --program-trans | --program-tran \ |
| 689 | | --progr-tra | --program-tr | --program-t) |
| 690 | ac_prev=program_transform_name ;; |
| 691 | -program-transform-name=* | --program-transform-name=* \ |
| 692 | | --program-transform-nam=* | --program-transform-na=* \ |
| 693 | | --program-transform-n=* | --program-transform-=* \ |
| 694 | | --program-transform=* | --program-transfor=* \ |
| 695 | | --program-transfo=* | --program-transf=* \ |
| 696 | | --program-trans=* | --program-tran=* \ |
| 697 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 698 | program_transform_name=$ac_optarg ;; |
| 699 | |
| 700 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 701 | | -silent | --silent | --silen | --sile | --sil) |
| 702 | silent=yes ;; |
| 703 | |
| 704 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 705 | ac_prev=sbindir ;; |
| 706 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 707 | | --sbi=* | --sb=*) |
| 708 | sbindir=$ac_optarg ;; |
| 709 | |
| 710 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 711 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 712 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 713 | | --sha | --sh) |
| 714 | ac_prev=sharedstatedir ;; |
| 715 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 716 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 717 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 718 | | --sha=* | --sh=*) |
| 719 | sharedstatedir=$ac_optarg ;; |
| 720 | |
| 721 | -site | --site | --sit) |
| 722 | ac_prev=site ;; |
| 723 | -site=* | --site=* | --sit=*) |
| 724 | site=$ac_optarg ;; |
| 725 | |
| 726 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 727 | ac_prev=srcdir ;; |
| 728 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 729 | srcdir=$ac_optarg ;; |
| 730 | |
| 731 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 732 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 733 | ac_prev=sysconfdir ;; |
| 734 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 735 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 736 | sysconfdir=$ac_optarg ;; |
| 737 | |
| 738 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 739 | ac_prev=target_alias ;; |
| 740 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 741 | target_alias=$ac_optarg ;; |
| 742 | |
| 743 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 744 | verbose=yes ;; |
| 745 | |
| 746 | -version | --version | --versio | --versi | --vers | -V) |
| 747 | ac_init_version=: ;; |
| 748 | |
| 749 | -with-* | --with-*) |
| 750 | ac_package=`exprscip-shell system . . expr. "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 751 | # Reject names that are not valid shell variable names. |
| 752 | exprscip-shell system . . expr. "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/nullscip-shell filesystem . . `/dev/null`. && |
| 753 | { echoscip-shell system . . echo. "$as_me: error: invalid package name: $ac_package" >&2 |
| 754 | { (exit 1); exit 1; }; } |
| 755 | ac_package=`echoscip-shell system . . echo. $ac_package| sedscip-shell system . . sed. 's/-/_/g'` |
| 756 | case $ac_option in |
| 757 | *=*) ac_optarg=`echoscip-shell system . . echo. "$ac_optarg" | sedscip-shell system . . sed. "s/'/'\\\\\\\\''/g"`;; |
| 758 | *) ac_optarg=yes ;; |
| 759 | esac |
| 760 | eval "with_$ac_package='$ac_optarg'" ;; |
| 761 | |
| 762 | -without-* | --without-*) |
| 763 | ac_package=`exprscip-shell system . . expr. "x$ac_option" : 'x-*without-\(.*\)'` |
| 764 | # Reject names that are not valid shell variable names. |
| 765 | exprscip-shell system . . expr. "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/nullscip-shell filesystem . . `/dev/null`. && |
| 766 | { echoscip-shell system . . echo. "$as_me: error: invalid package name: $ac_package" >&2 |
| 767 | { (exit 1); exit 1; }; } |
| 768 | ac_package=`echoscip-shell system . . echo. $ac_package | sedscip-shell system . . sed. 's/-/_/g'` |
| 769 | eval "with_$ac_package=no" ;; |
| 770 | |
| 771 | --x) |
| 772 | # Obsolete; use --with-x. |
| 773 | with_x=yes ;; |
| 774 | |
| 775 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 776 | | --x-incl | --x-inc | --x-in | --x-i) |
| 777 | ac_prev=x_includes ;; |
| 778 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 779 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 780 | x_includes=$ac_optarg ;; |
| 781 | |
| 782 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 783 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 784 | ac_prev=x_libraries ;; |
| 785 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 786 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 787 | x_libraries=$ac_optarg ;; |
| 788 | |
| 789 | -*) { echoscip-shell system . . echo. "$as_me: error: unrecognized option: $ac_option |
| 790 | Try \`$0 --help' for more information." >&2 |
| 791 | { (exit 1); exit 1; }; } |
| 792 | ;; |
| 793 | |
| 794 | *=*) |
| 795 | ac_envvar=`exprscip-shell system . . expr. "x$ac_option" : 'x\([^=]*\)='` |
| 796 | # Reject names that are not valid shell variable names. |
| 797 | exprscip-shell system . . expr. "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/nullscip-shell filesystem . . `/dev/null`. && |
| 798 | { echoscip-shell system . . echo. "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 799 | { (exit 1); exit 1; }; } |
| 800 | ac_optarg=`echoscip-shell system . . echo. "$ac_optarg" | sedscip-shell system . . sed. "s/'/'\\\\\\\\''/g"` |
| 801 | eval "$ac_envvar='$ac_optarg'" |
| 802 | export $ac_envvar ;; |
| 803 | |
| 804 | *) |
| 805 | # FIXME: should be removed in autoconf 3.0. |
| 806 | echoscip-shell system . . echo. "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 807 | exprscip-shell system . . expr. "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/nullscip-shell filesystem . . `/dev/null`. && |
| 808 | echoscip-shell system . . echo. "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 809 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 810 | ;; |
| 811 | |
| 812 | esac |
| 813 | done |
| 814 | |
| 815 | if testscip-shell system . . test. -n "$ac_prev"; then |
| 816 | ac_option=--`echoscip-shell system . . echo. $ac_prev | sedscip-shell system . . sed. 's/_/-/g'` |
| 817 | { echoscip-shell system . . echo. "$as_me: error: missing argument to $ac_option" >&2 |
| 818 | { (exit 1); exit 1; }; } |
| 819 | fi |
| 820 | |
| 821 | # Be sure to have absolute paths. |
| 822 | for ac_var in exec_prefix prefix |
| 823 | do |
| 824 | eval ac_val=$`echoscip-shell system . . echo. $ac_var` |
| 825 | case $ac_val in |
| 826 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
| 827 | *) { echoscip-shell system . . echo. "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 828 | { (exit 1); exit 1; }; };; |
| 829 | esac |
| 830 | done |
| 831 | |
| 832 | # Be sure to have absolute paths. |
| 833 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
| 834 | localstatedir libdir includedir oldincludedir infodir mandir |
| 835 | do |
| 836 | eval ac_val=$`echoscip-shell system . . echo. $ac_var` |
| 837 | case $ac_val in |
| 838 | [\\/$]* | ?:[\\/]* ) ;; |
| 839 | *) { echoscip-shell system . . echo. "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 840 | { (exit 1); exit 1; }; };; |
| 841 | esac |
| 842 | done |
| 843 | |
| 844 | # There might be people who depend on the old broken behavior: `$host' |
| 845 | # used to hold the argument of --host etc. |
| 846 | # FIXME: To remove some day. |
| 847 | build=$build_alias |
| 848 | host=$host_alias |
| 849 | target=$target_alias |
| 850 | |
| 851 | # FIXME: To remove some day. |
| 852 | if testscip-shell system . . test. "x$host_alias" != x; then |
| 853 | if testscip-shell system . . test. "x$build_alias" = x; then |
| 854 | cross_compiling=maybe |
| 855 | echoscip-shell system . . echo. "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 856 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 857 | elif testscip-shell system . . test. "x$build_alias" != "x$host_alias"; then |
| 858 | cross_compiling=yes |
| 859 | fi |
| 860 | fi |
| 861 | |
| 862 | ac_tool_prefix= |
| 863 | testscip-shell system . . test. -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 864 | |
| 865 | testscip-shell system . . test. "$silent" = yes && exec 6>/dev/nullscip-shell filesystem . . `/dev/null`. |
| 866 | |
| 867 | |
| 868 | # Find the source files, if location was not specified. |
| 869 | if testscip-shell system . . test. -z "$srcdir"; then |
| 870 | ac_srcdir_defaulted=yes |
| 871 | # Try the directory containing this script, then its parent. |
| 872 | ac_confdir=`(dirnamescip-shell system . . dirname. "$0") 2>/dev/nullscip-shell filesystem . . `/dev/null`. || |
| 873 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 874 | X"$0" : 'X\(//\)[^/]' \| \ |
| 875 | X"$0" : 'X\(//\)$' \| \ |
| 876 | X"$0" : 'X\(/\)' \| \ |
| 877 | . : '\(.\)' 2>/dev/nullscip-shell filesystem . . `/dev/null`. || |
| 878 | echoscip-shell system . . echo. X"$0" | |
| 879 | sedscip-shell system . . sed. '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 880 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 881 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 882 | /^X\(\/\).*/{ s//\1/; q; } |
| 883 | s/.*/./; q'` |
| 884 | srcdir=$ac_confdir |
| 885 | if testscip-shell system . . test. ! -r $srcdir/$ac_unique_file; then |
| 886 | srcdir=.. |
| 887 | fi |
| 888 | else |
| 889 | ac_srcdir_defaulted=no |
| 890 | fi |
| 891 | if testscip-shell system . . test. ! -r $srcdir/$ac_unique_file; then |
| 892 | if testscip-shell system . . test. "$ac_srcdir_defaulted" = yes; then |
| 893 | { echoscip-shell system . . echo. "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
| 894 | { (exit 1); exit 1; }; } |
| 895 | else |
| 896 | { echoscip-shell system . . echo. "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 897 | { (exit 1); exit 1; }; } |
| 898 | fi |
| 899 | fi |
| 900 | (cd $srcdir && testscip-shell system . . test. -r ./$ac_unique_file) 2>/dev/nullscip-shell filesystem . . `/dev/null`. || |
| 901 | { echoscip-shell system . . echo. "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
| 902 | { (exit 1); exit 1; }; } |
| 903 | srcdir=`echoscip-shell system . . echo. "$srcdir" | sedscip-shell system . . sed. 's%\([^\\/]\)[\\/]*$%\1%'` |
| 904 | ac_env_build_alias_set=${build_alias+set} |
| 905 | ac_env_build_alias_value=$build_alias |
| 906 | ac_cv_env_build_alias_set=${build_alias+set} |
| 907 | ac_cv_env_build_alias_value=$build_alias |
| 908 | ac_env_host_alias_set=${host_alias+set} |
| 909 | ac_env_host_alias_value=$host_alias |
| 910 | ac_cv_env_host_alias_set=${host_alias+set} |
| 911 | ac_cv_env_host_alias_value=$host_alias |
| 912 | ac_env_target_alias_set=${target_alias+set} |
| 913 | ac_env_target_alias_value=$target_alias |
| 914 | ac_cv_env_target_alias_set=${target_alias+set} |
| 915 | ac_cv_env_target_alias_value=$target_alias |
| 916 | ac_env_CDEFS_set=${CDEFS+set} |
| 917 | ac_env_CDEFS_value=$CDEFS |
| 918 | ac_cv_env_CDEFS_set=${CDEFS+set} |
| 919 | ac_cv_env_CDEFS_value=$CDEFS |
| 920 | ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set} |
| 921 | ac_env_ADD_CFLAGS_value=$ADD_CFLAGS |
| 922 | ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set} |
| 923 | ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS |
| 924 | ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set} |
| 925 | ac_env_DBG_CFLAGS_value=$DBG_CFLAGS |
| 926 | ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set} |
| 927 | ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS |
| 928 | ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set} |
| 929 | ac_env_OPT_CFLAGS_value=$OPT_CFLAGS |
| 930 | ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set} |
| 931 | ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS |
| 932 | ac_env_CC_set=${CC+set} |
| 933 | ac_env_CC_value=$CC |
| 934 | ac_cv_env_CC_set=${CC+set} |
| 935 | ac_cv_env_CC_value=$CC |
| 936 | ac_env_CFLAGS_set=${CFLAGS+set} |
| 937 | ac_env_CFLAGS_value=$CFLAGS |
| 938 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| 939 | ac_cv_env_CFLAGS_value=$CFLAGS |
| 940 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
| 941 | ac_env_LDFLAGS_value=$LDFLAGS |
| 942 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| 943 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
| 944 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 945 | ac_env_CPPFLAGS_value=$CPPFLAGS |
| 946 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 947 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
| 948 | ac_env_MPICC_set=${MPICC+set} |
| 949 | ac_env_MPICC_value=$MPICC |
| 950 | ac_cv_env_MPICC_set=${MPICC+set} |
| 951 | ac_cv_env_MPICC_value=$MPICC |
| 952 | ac_env_CXXDEFS_set=${CXXDEFS+set} |
| 953 | ac_env_CXXDEFS_value=$CXXDEFS |
| 954 | ac_cv_env_CXXDEFS_set=${CXXDEFS+set} |
| 955 | ac_cv_env_CXXDEFS_value=$CXXDEFS |
| 956 | ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set} |
| 957 | ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS |
| 958 | ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set} |
| 959 | ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS |
| 960 | ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set} |
| 961 | ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS |
| 962 | ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set} |
| 963 | ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS |
| 964 | ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set} |
| 965 | ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS |
| 966 | ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set} |
| 967 | ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS |
| 968 | ac_env_CXX_set=${CXX+set} |
| 969 | ac_env_CXX_value=$CXX |
| 970 | ac_cv_env_CXX_set=${CXX+set} |
| 971 | ac_cv_env_CXX_value=$CXX |
| 972 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
| 973 | ac_env_CXXFLAGS_value=$CXXFLAGS |
| 974 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
| 975 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
| 976 | ac_env_MPICXX_set=${MPICXX+set} |
| 977 | ac_env_MPICXX_value=$MPICXX |
| 978 | ac_cv_env_MPICXX_set=${MPICXX+set} |
| 979 | ac_cv_env_MPICXX_value=$MPICXX |
| 980 | ac_env_CPP_set=${CPP+set} |
| 981 | ac_env_CPP_value=$CPP |
| 982 | ac_cv_env_CPP_set=${CPP+set} |
| 983 | ac_cv_env_CPP_value=$CPP |
| 984 | ac_env_CXXCPP_set=${CXXCPP+set} |
| 985 | ac_env_CXXCPP_value=$CXXCPP |
| 986 | ac_cv_env_CXXCPP_set=${CXXCPP+set} |
| 987 | ac_cv_env_CXXCPP_value=$CXXCPP |
| 988 | ac_env_F77_set=${F77+set} |
| 989 | ac_env_F77_value=$F77 |
| 990 | ac_cv_env_F77_set=${F77+set} |
| 991 | ac_cv_env_F77_value=$F77 |
| 992 | ac_env_FFLAGS_set=${FFLAGS+set} |
| 993 | ac_env_FFLAGS_value=$FFLAGS |
| 994 | ac_cv_env_FFLAGS_set=${FFLAGS+set} |
| 995 | ac_cv_env_FFLAGS_value=$FFLAGS |
| 996 | ac_env_LT_LDFLAGS_set=${LT_LDFLAGS+set} |
| 997 | ac_env_LT_LDFLAGS_value=$LT_LDFLAGS |
| 998 | ac_cv_env_LT_LDFLAGS_set=${LT_LDFLAGS+set} |
| 999 | ac_cv_env_LT_LDFLAGS_value=$LT_LDFLAGS |
| 1000 | ac_env_PKG_CONFIG_set=${PKG_CONFIG+set} |
| 1001 | ac_env_PKG_CONFIG_value=$PKG_CONFIG |
| 1002 | ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set} |
| 1003 | ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG |
| 1004 | |
| 1005 | # |
| 1006 | # Report the --help message. |
| 1007 | # |
| 1008 | if testscip-shell system . . test. "$ac_init_help" = "long"; then |
| 1009 | # Omit some internal or obsolete options to make the list less imposing. |
| 1010 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1011 | catscip-shell system . . cat. <<_ACEOF |
| 1012 | \`configure' configures Cbc 2.10.13 to adapt to many kinds of systems. |
| 1013 | |
| 1014 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1015 | |
| 1016 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1017 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1018 | |
| 1019 | Defaults for the options are specified in brackets. |
| 1020 | |
| 1021 | Configuration: |
| 1022 | -h, --help display this help and exit |
| 1023 | --help=short display options specific to this package |
| 1024 | --help=recursive display the short help of all the included packages |
| 1025 | -V, --version display version information and exit |
| 1026 | -q, --quiet, --silent do not print \`checking...' messages |
| 1027 | --cache-file=FILE cache test results in FILE [disabled] |
| 1028 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1029 | -n, --no-create do not create output files |
| 1030 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1031 | |
| 1032 | _ACEOF |
| 1033 | |
| 1034 | catscip-shell system . . cat. <<_ACEOF |
| 1035 | Installation directories: |
| 1036 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 1037 | [$ac_default_prefix] |
| 1038 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1039 | [PREFIX] |
| 1040 | |
| 1041 | By default, \`make install' will install all the files in |
| 1042 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1043 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1044 | for instance \`--prefix=\$HOME'. |
| 1045 | |
| 1046 | For better control, use the options below. |
| 1047 | |
| 1048 | Fine tuning of the installation directories: |
| 1049 | --bindir=DIR user executables [EPREFIX/bin] |
| 1050 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1051 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1052 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 1053 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1054 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1055 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1056 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1057 | --includedir=DIR C header files [PREFIX/include] |
| 1058 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1059 | --infodir=DIR info documentation [PREFIX/info] |
| 1060 | --mandir=DIR man documentation [PREFIX/man] |
| 1061 | _ACEOF |
| 1062 | |
| 1063 | catscip-shell system . . cat. <<\_ACEOF |
| 1064 | |
| 1065 | Program names: |
| 1066 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 1067 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 1068 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 1069 | |
| 1070 | System types: |
| 1071 | --build=BUILD configure for building on BUILD [guessed] |
| 1072 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1073 | _ACEOF |
| 1074 | fi |
| 1075 | |
| 1076 | if testscip-shell system . . test. -n "$ac_init_help"; then |
| 1077 | case $ac_init_help in |
| 1078 | short | recursive ) echoscip-shell system . . echo. "Configuration of Cbc 2.10.13:";; |
| 1079 | esac |
| 1080 | catscip-shell system . . cat. <<\_ACEOF |
| 1081 | |
| 1082 | Optional Features: |
| 1083 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1084 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1085 | --enable-debug compile all projects with debug options tests |
| 1086 | (implies --disable-shared) |
| 1087 | --enable-debug-cbc compile project Cbc with debug compiler flags |
| 1088 | |
| 1089 | --enable-msvc Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin. |
| 1090 | --enable-static[=PKGS] |
| 1091 | build static libraries [default=no] |
| 1092 | --disable-dependency-tracking speeds up one-time build |
| 1093 | --enable-dependency-tracking do not reject slow dependency extractors |
| 1094 | --enable-maintainer-mode enable make rules and dependencies not useful |
| 1095 | (and sometimes confusing) to the casual installer |
| 1096 | --enable-shared[=PKGS] |
| 1097 | build shared libraries [default=yes] |
| 1098 | --enable-fast-install[=PKGS] |
| 1099 | optimize for fast installation [default=yes] |
| 1100 | --disable-libtool-lock avoid locking (might break parallel builds) |
| 1101 | --disable-dependency-linking |
| 1102 | disable linking library dependencies into shared |
| 1103 | libraries |
| 1104 | --disable-pkg-config disable use of pkg-config (if available) |
| 1105 | --disable-interpackage-dependencies |
| 1106 | disables deduction of Makefile dependencies from |
| 1107 | package linker flags |
| 1108 | --enable-gnu-packages compile with GNU packages (disabled by default) |
| 1109 | --disable-nauty-libcheck |
| 1110 | skip the link check at configuration time |
| 1111 | --enable-cbc-parallel enables compilation of the SMP version of Cbc |
| 1112 | |
| 1113 | Optional Packages: |
| 1114 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1115 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 1116 | --with-cbc-verbosity specify the debug verbosity level for project Cbc |
| 1117 | --with-cbc-checklevel specify the sanity check level for project Cbc |
| 1118 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 1119 | --with-pic try to use only PIC/non-PIC objects [default=use |
| 1120 | both] |
| 1121 | --with-tags[=TAGS] |
| 1122 | include additional configurations [automatic] |
| 1123 | --with-coin-instdir prefix of installation directory for precompiled |
| 1124 | COIN packages |
| 1125 | |
| 1126 | --with-coindepend-lib linker flags for using package CoinDepend |
| 1127 | --with-coindepend-incdir |
| 1128 | directory with header files for using package |
| 1129 | CoinDepend |
| 1130 | --with-coindepend-datadir |
| 1131 | directory with data files for using package |
| 1132 | CoinDepend |
| 1133 | --with-clp-lib linker flags for using package Clp |
| 1134 | --with-clp-incdir directory with header files for using package Clp |
| 1135 | --with-clp-datadir directory with data files for using package Clp |
| 1136 | --with-ositests-lib linker flags for using package OsiTests |
| 1137 | --with-ositests-incdir directory with header files for using package |
| 1138 | OsiTests |
| 1139 | --with-ositests-datadir directory with data files for using package OsiTests |
| 1140 | --with-sample-lib linker flags for using package Sample |
| 1141 | --with-sample-incdir directory with header files for using package Sample |
| 1142 | --with-sample-datadir directory with data files for using package Sample |
| 1143 | --with-netlib-lib linker flags for using package Netlib |
| 1144 | --with-netlib-incdir directory with header files for using package Netlib |
| 1145 | --with-netlib-datadir directory with data files for using package Netlib |
| 1146 | --with-miplib3-lib linker flags for using package Miplib3 |
| 1147 | --with-miplib3-incdir directory with header files for using package Miplib3 |
| 1148 | --with-miplib3-datadir directory with data files for using package Miplib3 |
| 1149 | --with-dylp-lib linker flags for using package DyLP |
| 1150 | --with-dylp-incdir directory with header files for using package DyLP |
| 1151 | --with-dylp-datadir directory with data files for using package DyLP |
| 1152 | --with-vol-lib linker flags for using package Vol |
| 1153 | --with-vol-incdir directory with header files for using package Vol |
| 1154 | --with-vol-datadir directory with data files for using package Vol |
| 1155 | --with-cpx-lib linker flags for using package Cpx |
| 1156 | --with-cpx-incdir directory with header files for using package Cpx |
| 1157 | --with-cpx-datadir directory with data files for using package Cpx |
| 1158 | --with-glpk-lib linker flags for using package Glpk |
| 1159 | --with-glpk-incdir directory with header files for using package Glpk |
| 1160 | --with-glpk-datadir directory with data files for using package Glpk |
| 1161 | --with-grb-lib linker flags for using package Grb |
| 1162 | --with-grb-incdir directory with header files for using package Grb |
| 1163 | --with-grb-datadir directory with data files for using package Grb |
| 1164 | --with-highs-lib linker flags for using package Highs |
| 1165 | --with-highs-incdir directory with header files for using package Highs |
| 1166 | --with-highs-datadir directory with data files for using package Highs |
| 1167 | --with-msk-lib linker flags for using package Msk |
| 1168 | --with-msk-incdir directory with header files for using package Msk |
| 1169 | --with-msk-datadir directory with data files for using package Msk |
| 1170 | --with-spx-lib linker flags for using package Spx |
| 1171 | --with-spx-incdir directory with header files for using package Spx |
| 1172 | --with-spx-datadir directory with data files for using package Spx |
| 1173 | --with-xpr-lib linker flags for using package Xpr |
| 1174 | --with-xpr-incdir directory with header files for using package Xpr |
| 1175 | --with-xpr-datadir directory with data files for using package Xpr |
| 1176 | --with-asl-lib linker flags for using package ASL |
| 1177 | --with-asl-incdir directory with header files for using package ASL |
| 1178 | --with-asl-datadir directory with data files for using package ASL |
| 1179 | --with-mumps-lib linker flags for using package Mumps |
| 1180 | --with-mumps-incdir directory with header files for using package Mumps |
| 1181 | --with-mumps-datadir directory with data files for using package Mumps |
| 1182 | --with-nauty-incdir specify the header file directory for library Nauty |
| 1183 | --with-nauty-lib specify the flags used to link with the library Nauty |
| 1184 | --with-cbc-generic specify whether to build cbc-generic (default: no) |
| 1185 | --with-cbc-generic-solver |
| 1186 | specify default solver for cbc-generic in lower case |
| 1187 | letters (if not given, clp is assumed) |
| 1188 | --with-pthreadsw32-lib specify the name of the pthreads win32 library (for |
| 1189 | cl/icl builds only) |
| 1190 | --with-pthreadsw32-incdir |
| 1191 | specify the path of the pthreads win32 header file |
| 1192 | (for cl/icl builds only) |
| 1193 | --with-osicbc-default-solver |
| 1194 | specify underlying solver for OsiCbc (default clp) |
| 1195 | --with-dot use dot (from graphviz) when creating documentation |
| 1196 | with doxygen if available; --without-dot to disable |
| 1197 | |
| 1198 | Some influential environment variables: |
| 1199 | CDEFS Additional -D flags to be used when compiling C code. |
| 1200 | ADD_CFLAGS Additional C compiler options |
| 1201 | DBG_CFLAGS Debug C compiler options |
| 1202 | OPT_CFLAGS Optimize C compiler options |
| 1203 | CC C compiler command |
| 1204 | CFLAGS C compiler flags |
| 1205 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1206 | nonstandard directory <lib dir> |
| 1207 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 1208 | headers in a nonstandard directory <include dir> |
| 1209 | MPICC C MPI Compiler |
| 1210 | CXXDEFS Additional -D flags to be used when compiling C++ code. |
| 1211 | ADD_CXXFLAGS |
| 1212 | Additional C++ compiler options |
| 1213 | DBG_CXXFLAGS |
| 1214 | Debug C++ compiler options |
| 1215 | OPT_CXXFLAGS |
| 1216 | Optimize C++ compiler options |
| 1217 | CXX C++ compiler command |
| 1218 | CXXFLAGS C++ compiler flags |
| 1219 | MPICXX C++ MPI Compiler |
| 1220 | CPP C preprocessor |
| 1221 | CXXCPP C++ preprocessor |
| 1222 | F77 Fortran 77 compiler command |
| 1223 | FFLAGS Fortran 77 compiler flags |
| 1224 | LT_LDFLAGS Flags passed to libtool when building libraries or executables |
| 1225 | that are installed |
| 1226 | PKG_CONFIG path to pkg-config utility |
| 1227 | |
| 1228 | Use these variables to override the choices made by `configure' or to help |
| 1229 | it to find libraries and programs with nonstandard names/locations. |
| 1230 | |
| 1231 | Report bugs to <[email protected]>. |
| 1232 | _ACEOF |
| 1233 | fi |
| 1234 | |
| 1235 | if testscip-shell system . . test. "$ac_init_help" = "recursive"; then |
| 1236 | # If there are subdirs, report their specific --help. |
| 1237 | ac_popdir=`pwdscip-shell system . . pwd.` |
| 1238 | for ac_dir in : $ac_subdirs_all; do testscip-shell system . . test. "x$ac_dir" = x: && continue |
| 1239 | testscip-shell system . . test. -d $ac_dir || continue |
| 1240 | ac_builddir=. |
| 1241 | |
| 1242 | if testscip-shell system . . test. "$ac_dir" != .; then |
| 1243 | ac_dir_suffix=/`echoscip-shell system . . echo. "$ac_dir" | sedscip-shell system . . sed. 's,^\.[\\/],,'` |
| 1244 | # A "../" for each directory in $ac_dir_suffix. |
| 1245 | ac_top_builddir=`echoscip-shell system . . echo. "$ac_dir_suffix" | sedscip-shell system . . sed. 's,/[^\\/]*,../,g'` |
| 1246 | else |
| 1247 | ac_dir_suffix= ac_top_builddir= |
| 1248 | fi |
| 1249 | |
| 1250 | case $srcdir in |
| 1251 | .) # No --srcdir option. We are building in place. |
| 1252 | ac_srcdir=. |
| 1253 | if testscip-shell system . . test. -z "$ac_top_builddir"; then |
| 1254 | ac_top_srcdir=. |
| 1255 | else |
| 1256 | ac_top_srcdir=`echoscip-shell system . . echo. $ac_top_builddir | sedscip-shell system . . sed. 's,/$,,'` |
| 1257 | fi ;; |
| 1258 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 1259 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 1260 | ac_top_srcdir=$srcdir ;; |
| 1261 | *) # Relative path. |
| 1262 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 1263 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 1264 | esac |
| 1265 | |
| 1266 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 1267 | # the directories may not exist. |
| 1268 | case `pwdscip-shell system . . pwd.` in |
| 1269 | .) ac_abs_builddir="$ac_dir";; |
| 1270 | *) |
| 1271 | case "$ac_dir" in |
| 1272 | .) ac_abs_builddir=`pwdscip-shell system . . pwd.`;; |
| 1273 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 1274 | *) ac_abs_builddir=`pwdscip-shell system . . pwd.`/"$ac_dir";; |
| 1275 | esac;; |
| 1276 | esac |
| 1277 | case $ac_abs_builddir in |
| 1278 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 1279 | *) |
| 1280 | case ${ac_top_builddir}. in |
| 1281 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 1282 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 1283 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 1284 | esac;; |
| 1285 | esac |
| 1286 | case $ac_abs_builddir in |
| 1287 | .) ac_abs_srcdir=$ac_srcdir;; |
| 1288 | *) |
| 1289 | case $ac_srcdir in |
| 1290 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 1291 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 1292 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 1293 | esac;; |
| 1294 | esac |
| 1295 | case $ac_abs_builddir in |
| 1296 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 1297 | *) |
| 1298 | case $ac_top_srcdir in |
| 1299 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 1300 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 1301 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 1302 | esac;; |
| 1303 | esac |
| 1304 | |
| 1305 | cd $ac_dir |
| 1306 | # Check for guested configure; otherwise get Cygnus style configure. |
| 1307 | if testscip-shell system . . test. -f $ac_srcdir/configure.gnu; then |
| 1308 | echoscip-shell system . . echo. |
| 1309 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 1310 | elif testscip-shell system . . test. -f $ac_srcdir/configure; then |
| 1311 | echoscip-shell system . . echo. |
| 1312 | $SHELL $ac_srcdir/configure --help=recursive |
| 1313 | elif testscip-shell system . . test. -f $ac_srcdir/configure.ac || |
| 1314 | testscip-shell system . . test. -f $ac_srcdir/configure.in; then |
| 1315 | echoscip-shell system . . echo. |
| 1316 | $ac_configure --help |
| 1317 | else |
| 1318 | echoscip-shell system . . echo. "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1319 | fi |
| 1320 | cd $ac_popdir |
| 1321 | done |
| 1322 | fi |
| 1323 | |
| 1324 | testscip-shell system . . test. -n "$ac_init_help" && exit 0 |
| 1325 | if $ac_init_version; then |
| 1326 | catscip-shell system . . cat. <<\_ACEOF |
| 1327 | Cbc configure 2.10.13 |
| 1328 | generated by GNU Autoconf 2.59 |
| 1329 | |
| 1330 | Copyright (C) 2003 Free Software Foundation, Inc. |
| 1331 | This configure script is free software; the Free Software Foundation |
| 1332 | gives unlimited permission to copy, distribute and modify it. |
| 1333 | |
| 1334 | |
| 1335 | Copyright 2006 International Business Machines and others. |
| 1336 | All Rights Reserved. |
| 1337 | This file is part of the open source package Coin which is distributed |
| 1338 | under the Eclipse Public License. |
| 1339 | _ACEOF |
| 1340 | exit 0 |
| 1341 | fi |
| 1342 | exec 5>config.log |
| 1343 | catscip-shell system . . cat. >&5 <<_ACEOF |
| 1344 | This file contains any messages produced by compilers while |
| 1345 | running configure, to aid debugging if configure makes a mistake. |
| 1346 | |
| 1347 | It was created by Cbc $as_me 2.10.13, which was |
| 1348 | generated by GNU Autoconf 2.59. Invocation command line was |
| 1349 | |
| 1350 | $ $0 $@ |
| 1351 | |
| 1352 | _ACEOF |
| 1353 | { |
| 1354 | catscip-shell system . . cat. <<_ASUNAME |
| 1355 | ## --------- ## |
| 1356 | ## Platform. ## |
| 1357 | ## --------- ## |
| 1358 | |
| 1359 | hostname = `(hostnamescip-shell system . . hostname. || unamescip-shell system . . uname. -n) 2>/dev/nullscip-shell filesystem . . `/dev/null`. | sedscip-shell system . . sed. 1q` |
| 1360 | uname -m = `(unamescip-shell system . . uname. -m) 2>/dev/nullscip-shell filesystem . . `/dev/null`. || echoscip-shell system . . echo. unknown` |
| 1361 | uname -r = `(unamescip-shell system . . uname. -r) 2>/dev/nullscip-shell filesystem . . `/dev/null`. || echoscip-shell system . . echo. unknown` |
| 1362 | uname -s = `(unamescip-shell system . . uname. -s) 2>/dev/nullscip-shell filesystem . . `/dev/null`. || echoscip-shell system . . echo. unknown` |
| 1363 | uname -v = `(unamescip-shell system . . uname. -v) 2>/dev/nullscip-shell filesystem . . `/dev/null`. || echoscip-shell system . . echo. unknown` |
| 1364 | |
| 1365 | /usr/bin/uname -p = `(/usr/bin/unamescip-shell filesystem . . `/usr/bin/uname`. -p) 2>/dev/nullscip-shell filesystem . . `/dev/null`. || echoscip-shell system . . echo. unknown` |
| 1366 | /bin/uname -X = `(/bin/unamescip-shell filesystem . . `/bin/uname`. -X) 2>/dev/nullscip-shell filesystem . . `/dev/null`. || echoscip-shell system . . echo. unknown` |
| 1367 | |
| 1368 | /bin/arch = `(/bin/archscip-shell filesystem . . `/bin/arch`.) 2>/dev/nullscip-shell filesystem . . `/dev/null`. || echoscip-shell system . . echo. unknown` |
| 1369 | /usr/bin/arch -k = `(/usr/bin/archscip-shell filesystem . . `/usr/bin/arch`. -k) 2>/dev/nullscip-shell filesystem . . `/dev/null`. || echoscip-shell system . . echo. unknown` |
| 1370 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfoscip-shell filesystem . . `/usr/convex/getsysinfo`.) 2>/dev/nullscip-shell filesystem . . `/dev/null`. || echoscip-shell system . . echo. unknown` |
| 1371 | hostinfo = `(hostinfo) 2>/dev/nullscip-shell filesystem . . `/dev/null`. || echoscip-shell system . . echo. unknown` |
| 1372 | /bin/machine = `(/bin/machinescip-shell filesystem . . `/bin/machine`.) 2>/dev/nullscip-shell filesystem . . `/dev/null`. || echoscip-shell system . . echo. unknown` |
| 1373 | /usr/bin/oslevel = `(/usr/bin/oslevelscip-shell filesystem . . `/usr/bin/oslevel`.) 2>/dev/nullscip-shell filesystem . . `/dev/null`. || echoscip-shell system . . echo. unknown` |
| 1374 | /bin/universe = `(/bin/universescip-shell filesystem . . `/bin/universe`.) 2>/dev/nullscip-shell filesystem . . `/dev/null`. || echoscip-shell system . . echo. unknown` |
| 1375 | |
| 1376 | _ASUNAME |
| 1377 | |
| 1378 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1379 | for as_dir in $PATH |
| 1380 | do |
| 1381 | IFS=$as_save_IFS |
| 1382 | testscip-shell system . . test. -z "$as_dir" && as_dir=. |
| 1383 | echoscip-shell system . . echo. "PATH: $as_dir" |
| 1384 | done |
| 1385 | |
| 1386 | } >&5 |
| 1387 | |
| 1388 | catscip-shell system . . cat. >&5 <<_ACEOF |
| 1389 | |
| 1390 | |
| 1391 | ## ----------- ## |
| 1392 | ## Core tests. ## |
| 1393 | ## ----------- ## |
| 1394 | |
| 1395 | _ACEOF |
| 1396 | |
| 1397 | |
| 1398 | # Keep a trace of the command line. |
| 1399 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1400 | # Strip out --silent because we don't want to record it for future runs. |
| 1401 | # Also quote any args containing shell meta-characters. |
| 1402 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1403 | ac_configure_args= |
| 1404 | ac_configure_args0= |
| 1405 | ac_configure_args1= |
| 1406 | ac_sep= |
| 1407 | ac_must_keep_next=false |
| 1408 | for ac_pass in 1 2 |
| 1409 | do |
| 1410 | for ac_arg |
| 1411 | do |
| 1412 | case $ac_arg in |
| 1413 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1414 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1415 | | -silent | --silent | --silen | --sile | --sil) |
| 1416 | continue ;; |
| 1417 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1418 | ac_arg=`echoscip-shell system . . echo. "$ac_arg" | sedscip-shell system . . sed. "s/'/'\\\\\\\\''/g"` ;; |
| 1419 | esac |
| 1420 | case $ac_pass in |
| 1421 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1422 | 2) |
| 1423 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1424 | if testscip-shell system . . test. $ac_must_keep_next = true; then |
| 1425 | ac_must_keep_next=false # Got value, back to normal. |
| 1426 | else |
| 1427 | case $ac_arg in |
| 1428 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1429 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1430 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1431 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1432 | case "$ac_configure_args0 " in |
| 1433 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1434 | esac |
| 1435 | ;; |
| 1436 | -* ) ac_must_keep_next=true ;; |
| 1437 | esac |
| 1438 | fi |
| 1439 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1440 | # Get rid of the leading space. |
| 1441 | ac_sep=" " |
| 1442 | ;; |
| 1443 | esac |
| 1444 | done |
| 1445 | done |
| 1446 | $as_unset ac_configure_args0 || testscip-shell system . . test. "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1447 | $as_unset ac_configure_args1 || testscip-shell system . . test. "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
| 1448 | |
| 1449 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1450 | # config.log. We remove comments because anyway the quotes in there |
| 1451 | # would cause problems or look ugly. |
| 1452 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1453 | # such as our DU 5.0 friend, will then `close' the trap. |
| 1454 | trap 'exit_status=$? |
| 1455 | # Save into config.log some information that might help in debugging. |
| 1456 | { |
| 1457 | echo |
| 1458 | |
| 1459 | cat <<\_ASBOX |
| 1460 | ## ---------------- ## |
| 1461 | ## Cache variables. ## |
| 1462 | ## ---------------- ## |
| 1463 | _ASBOX |
| 1464 | echo |
| 1465 | # The following way of writing the cache mishandles newlines in values, |
| 1466 | { |
| 1467 | (set) 2>&1 | |
| 1468 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1469 | *ac_space=\ *) |
| 1470 | sed -n \ |
| 1471 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1472 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
| 1473 | ;; |
| 1474 | *) |
| 1475 | sed -n \ |
| 1476 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 1477 | ;; |
| 1478 | esac; |
| 1479 | } |
| 1480 | echo |
| 1481 | |
| 1482 | cat <<\_ASBOX |
| 1483 | ## ----------------- ## |
| 1484 | ## Output variables. ## |
| 1485 | ## ----------------- ## |
| 1486 | _ASBOX |
| 1487 | echo |
| 1488 | for ac_var in $ac_subst_vars |
| 1489 | do |
| 1490 | eval ac_val=$`echo $ac_var` |
| 1491 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1492 | done | sort |
| 1493 | echo |
| 1494 | |
| 1495 | if test -n "$ac_subst_files"; then |
| 1496 | cat <<\_ASBOX |
| 1497 | ## ------------- ## |
| 1498 | ## Output files. ## |
| 1499 | ## ------------- ## |
| 1500 | _ASBOX |
| 1501 | echo |
| 1502 | for ac_var in $ac_subst_files |
| 1503 | do |
| 1504 | eval ac_val=$`echo $ac_var` |
| 1505 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1506 | done | sort |
| 1507 | echo |
| 1508 | fi |
| 1509 | |
| 1510 | if test -s confdefs.h; then |
| 1511 | cat <<\_ASBOX |
| 1512 | ## ----------- ## |
| 1513 | ## confdefs.h. ## |
| 1514 | ## ----------- ## |
| 1515 | _ASBOX |
| 1516 | echo |
| 1517 | sed "/^$/d" confdefs.h | sort |
| 1518 | echo |
| 1519 | fi |
| 1520 | test "$ac_signal" != 0 && |
| 1521 | echo "$as_me: caught signal $ac_signal" |
| 1522 | echo "$as_me: exit $exit_status" |
| 1523 | } >&5 |
| 1524 | rm -f core *.core && |
| 1525 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
| 1526 | exit $exit_status |
| 1527 | ' 0 |
| 1528 | for ac_signal in 1 2 13 15; do |
| 1529 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1530 | done |
| 1531 | ac_signal=0 |
| 1532 | |
| 1533 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1534 | rmscip-shell system . . rm. -rf conftest* confdefs.h |
| 1535 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1536 | echoscip-shell system . . echo. >confdefs.h |
| 1537 | |
| 1538 | # Predefined preprocessor variables. |
| 1539 | |
| 1540 | catscip-shell system . . cat. >>confdefs.h <<_ACEOF |
| 1541 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1542 | _ACEOF |
| 1543 | |
| 1544 | |
| 1545 | catscip-shell system . . cat. >>confdefs.h <<_ACEOF |
| 1546 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1547 | _ACEOF |
| 1548 | |
| 1549 | |
| 1550 | catscip-shell system . . cat. >>confdefs.h <<_ACEOF |
| 1551 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1552 | _ACEOF |
| 1553 | |
| 1554 | |
| 1555 | catscip-shell system . . cat. >>confdefs.h <<_ACEOF |
| 1556 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1557 | _ACEOF |
| 1558 | |
| 1559 | |
| 1560 | catscip-shell system . . cat. >>confdefs.h <<_ACEOF |
| 1561 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1562 | _ACEOF |
| 1563 | |
| 1564 | |
| 1565 | # Let the site file select an alternate cache file if it wants to. |
| 1566 | # Prefer explicitly selected file to automatically selected ones. |
| 1567 | if testscip-shell system . . test. -z "$CONFIG_SITE"; then |
| 1568 | if testscip-shell system . . test. "x$prefix" != xNONE; then |
| 1569 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1570 | else |
| 1571 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1572 | fi |
| 1573 | fi |
| 1574 | for ac_site_file in $CONFIG_SITE; do |
| 1575 | if testscip-shell system . . test. -r "$ac_site_file"; then |
| 1576 | { echoscip-shell system . . echo. "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1577 | echoscip-shell system . . echo. "$as_me: loading site script $ac_site_file" >&6;} |
| 1578 | sedscip-shell system . . sed. 's/^/| /' "$ac_site_file" >&5 |
| 1579 | . "$ac_site_file" |
| 1580 | fi |
| 1581 | done |
| 1582 | |
| 1583 | if testscip-shell system . . test. -r "$cache_file"; then |
| 1584 | # Some versions of bash will fail to source /dev/null (special |
| 1585 | # files actually), so we avoid doing that. |
| 1586 | if testscip-shell system . . test. -f "$cache_file"; then |
| 1587 | { echoscip-shell system . . echo. "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1588 | echoscip-shell system . . echo. "$as_me: loading cache $cache_file" >&6;} |
| 1589 | case $cache_file in |
| 1590 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1591 | *) . ./$cache_file;; |
| 1592 | esac |
| 1593 | fi |
| 1594 | else |
| 1595 | { echoscip-shell system . . echo. "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1596 | echoscip-shell system . . echo. "$as_me: creating cache $cache_file" >&6;} |
| 1597 | >$cache_file |
| 1598 | fi |
| 1599 | |
| 1600 | # Check that the precious variables saved in the cache have kept the same |
| 1601 | # value. |
| 1602 | ac_cache_corrupted=false |
| 1603 | for ac_var in `(set) 2>&1 | |
| 1604 | sedscip-shell system . . sed. -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
| 1605 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1606 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1607 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1608 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1609 | case $ac_old_set,$ac_new_set in |
| 1610 | set,) |
| 1611 | { echoscip-shell system . . echo. "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1612 | echoscip-shell system . . echo. "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1613 | ac_cache_corrupted=: ;; |
| 1614 | ,set) |
| 1615 | { echoscip-shell system . . echo. "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1616 | echoscip-shell system . . echo. "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1617 | ac_cache_corrupted=: ;; |
| 1618 | ,);; |
| 1619 | *) |
| 1620 | if testscip-shell system . . test. "x$ac_old_val" != "x$ac_new_val"; then |
| 1621 | { echoscip-shell system . . echo. "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1622 | echoscip-shell system . . echo. "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1623 | { echoscip-shell system . . echo. "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1624 | echoscip-shell system . . echo. "$as_me: former value: $ac_old_val" >&2;} |
| 1625 | { echoscip-shell system . . echo. "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1626 | echoscip-shell system . . echo. "$as_me: current value: $ac_new_val" >&2;} |
| 1627 | ac_cache_corrupted=: |
| 1628 | fi;; |
| 1629 | esac |
| 1630 | # Pass precious variables to config.status. |
| 1631 | if testscip-shell system . . test. "$ac_new_set" = set; then |
| 1632 | case $ac_new_val in |
| 1633 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1634 | ac_arg=$ac_var=`echoscip-shell system . . echo. "$ac_new_val" | sedscip-shell system . . sed. "s/'/'\\\\\\\\''/g"` ;; |
| 1635 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1636 | esac |
| 1637 | case " $ac_configure_args " in |
| 1638 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1639 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1640 | esac |
| 1641 | fi |
| 1642 | done |
| 1643 | if $ac_cache_corrupted; then |
| 1644 | { echoscip-shell system . . echo. "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1645 | echoscip-shell system . . echo. "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1646 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1647 | echoscip-shell system . . echo. "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1648 | { (exit 1); exit 1; }; } |
| 1649 | fi |
| 1650 | |
| 1651 | ac_ext=c |
| 1652 | ac_cpp='$CPP $CPPFLAGS' |
| 1653 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1654 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1655 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1656 | |
| 1657 | |
| 1658 | |
| 1659 | |
| 1660 | |
| 1661 | |
| 1662 | |
| 1663 | |
| 1664 | |
| 1665 | |
| 1666 | |
| 1667 | |
| 1668 | |
| 1669 | |
| 1670 | |
| 1671 | |
| 1672 | |
| 1673 | |
| 1674 | |
| 1675 | |
| 1676 | |
| 1677 | |
| 1678 | |
| 1679 | |
| 1680 | |
| 1681 | |
| 1682 | |
| 1683 | |
| 1684 | |
| 1685 | |
| 1686 | # List one file in the package so that the configure script can test |
| 1687 | # whether the package is actually there |
| 1688 | |
| 1689 | |
| 1690 | # Where should everything be installed by default? Here, we want it |
| 1691 | # to be installed directly in 'bin', 'lib', 'include' subdirectories |
| 1692 | # of the directory where configure is run. The default would be |
| 1693 | # /usr/local. |
| 1694 | |
| 1695 | |
| 1696 | ############################################################################# |
| 1697 | # Standard build tool stuff # |
| 1698 | ############################################################################# |
| 1699 | |
| 1700 | # Get the system type |
| 1701 | ac_aux_dir= |
| 1702 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 1703 | if testscip-shell system . . test. -f $ac_dir/install-sh; then |
| 1704 | ac_aux_dir=$ac_dir |
| 1705 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1706 | break |
| 1707 | elif testscip-shell system . . test. -f $ac_dir/install.sh; then |
| 1708 | ac_aux_dir=$ac_dir |
| 1709 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1710 | break |
| 1711 | elif testscip-shell system . . test. -f $ac_dir/shtool; then |
| 1712 | ac_aux_dir=$ac_dir |
| 1713 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1714 | break |
| 1715 | fi |
| 1716 | done |
| 1717 | if testscip-shell system . . test. -z "$ac_aux_dir"; then |
| 1718 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
| 1719 | echoscip-shell system . . echo. "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
| 1720 | { (exit 1); exit 1; }; } |
| 1721 | fi |
| 1722 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 1723 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 1724 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
| 1725 | |
| 1726 | # Make sure we can run config.sub. |
| 1727 | $ac_config_sub sun4 >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 || |
| 1728 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
| 1729 | echoscip-shell system . . echo. "$as_me: error: cannot run $ac_config_sub" >&2;} |
| 1730 | { (exit 1); exit 1; }; } |
| 1731 | |
| 1732 | echoscip-shell system . . echo. "$as_me:$LINENO: checking build system type" >&5 |
| 1733 | echoscip-shell system . . echo. $ECHO_N "checking build system type... $ECHO_C" >&6 |
| 1734 | if testscip-shell system . . test. "${ac_cv_build+set}" = set; then |
| 1735 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 1736 | else |
| 1737 | ac_cv_build_alias=$build_alias |
| 1738 | testscip-shell system . . test. -z "$ac_cv_build_alias" && |
| 1739 | ac_cv_build_alias=`$ac_config_guess` |
| 1740 | testscip-shell system . . test. -z "$ac_cv_build_alias" && |
| 1741 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 1742 | echoscip-shell system . . echo. "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 1743 | { (exit 1); exit 1; }; } |
| 1744 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
| 1745 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
| 1746 | echoscip-shell system . . echo. "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
| 1747 | { (exit 1); exit 1; }; } |
| 1748 | |
| 1749 | fi |
| 1750 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 1751 | echoscip-shell system . . echo. "${ECHO_T}$ac_cv_build" >&6 |
| 1752 | build=$ac_cv_build |
| 1753 | build_cpu=`echoscip-shell system . . echo. $ac_cv_build | sedscip-shell system . . sed. 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1754 | build_vendor=`echoscip-shell system . . echo. $ac_cv_build | sedscip-shell system . . sed. 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1755 | build_os=`echoscip-shell system . . echo. $ac_cv_build | sedscip-shell system . . sed. 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1756 | |
| 1757 | |
| 1758 | |
| 1759 | # If this project depends on external projects, the Externals file in |
| 1760 | # the source root directory contains definition of where to find those |
| 1761 | # externals. The following macro ensures that those externals are |
| 1762 | # retrieved by svn if they are not there yet. |
| 1763 | |
| 1764 | # As backup, we make sure we don't loose an FLIBS if it has been set |
| 1765 | # by the user |
| 1766 | save_FLIBS="$FLIBS" |
| 1767 | |
| 1768 | # A useful makefile conditional that is always false |
| 1769 | |
| 1770 | |
| 1771 | if falsescip-shell system . . false.; then |
| 1772 | ALWAYS_FALSE_TRUE= |
| 1773 | ALWAYS_FALSE_FALSE='#' |
| 1774 | else |
| 1775 | ALWAYS_FALSE_TRUE='#' |
| 1776 | ALWAYS_FALSE_FALSE= |
| 1777 | fi |
| 1778 | |
| 1779 | |
| 1780 | # We set the following variable so that we know later in AC_COIN_FINALIZE |
| 1781 | # that we are in a project main directory |
| 1782 | coin_projectdir=yes |
| 1783 | |
| 1784 | # Set the project's version numbers |
| 1785 | |
| 1786 | |
| 1787 | catscip-shell system . . cat. >>confdefs.h <<_ACEOF |
| 1788 | #define CBC_VERSION "$PACKAGE_VERSION" |
| 1789 | _ACEOF |
| 1790 | |
| 1791 | |
| 1792 | coin_majorver=`echoscip-shell system . . echo. $PACKAGE_VERSION | sedscip-shell system . . sed. -n -e 's/^\([0-9]*\).*/\1/gp'` |
| 1793 | coin_minorver=`echoscip-shell system . . echo. $PACKAGE_VERSION | sedscip-shell system . . sed. -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'` |
| 1794 | coin_releasever=`echoscip-shell system . . echo. $PACKAGE_VERSION | sedscip-shell system . . sed. -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'` |
| 1795 | if testscip-shell system . . test. "x$coin_majorver" = x ; then coin_majorver=9999 ; fi |
| 1796 | if testscip-shell system . . test. "x$coin_minorver" = x ; then coin_minorver=9999 ; fi |
| 1797 | if testscip-shell system . . test. "x$coin_releasever" = x ; then coin_releasever=9999 ; fi |
| 1798 | |
| 1799 | catscip-shell system . . cat. >>confdefs.h <<_ACEOF |
| 1800 | #define CBC_VERSION_MAJOR $coin_majorver |
| 1801 | _ACEOF |
| 1802 | |
| 1803 | |
| 1804 | catscip-shell system . . cat. >>confdefs.h <<_ACEOF |
| 1805 | #define CBC_VERSION_MINOR $coin_minorver |
| 1806 | _ACEOF |
| 1807 | |
| 1808 | |
| 1809 | catscip-shell system . . cat. >>confdefs.h <<_ACEOF |
| 1810 | #define CBC_VERSION_RELEASE $coin_releasever |
| 1811 | _ACEOF |
| 1812 | |
| 1813 | |
| 1814 | # We use the following variable to have a string with the upper case |
| 1815 | # version of the project name |
| 1816 | COIN_PRJCT=CBC |
| 1817 | |
| 1818 | # Set the project's SVN revision number. The complicated sed expression |
| 1819 | # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up |
| 1820 | # as a single number. |
| 1821 | # Extract the first word of "svnversion", so it can be a program name with args. |
| 1822 | set dummy svnversion; ac_word=$2 |
| 1823 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1824 | echoscip-shell system . . echo. $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1825 | if testscip-shell system . . test. "${ac_cv_prog_have_svnversion+set}" = set; then |
| 1826 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 1827 | else |
| 1828 | if testscip-shell system . . test. -n "$have_svnversion"; then |
| 1829 | ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test. |
| 1830 | else |
| 1831 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1832 | for as_dir in $PATH |
| 1833 | do |
| 1834 | IFS=$as_save_IFS |
| 1835 | testscip-shell system . . test. -z "$as_dir" && as_dir=. |
| 1836 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1837 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1838 | ac_cv_prog_have_svnversion="yes" |
| 1839 | echoscip-shell system . . echo. "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1840 | break 2 |
| 1841 | fi |
| 1842 | done |
| 1843 | done |
| 1844 | |
| 1845 | testscip-shell system . . test. -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no" |
| 1846 | fi |
| 1847 | fi |
| 1848 | have_svnversion=$ac_cv_prog_have_svnversion |
| 1849 | if testscip-shell system . . test. -n "$have_svnversion"; then |
| 1850 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $have_svnversion" >&5 |
| 1851 | echoscip-shell system . . echo. "${ECHO_T}$have_svnversion" >&6 |
| 1852 | else |
| 1853 | echoscip-shell system . . echo. "$as_me:$LINENO: result: no" >&5 |
| 1854 | echoscip-shell system . . echo. "${ECHO_T}no" >&6 |
| 1855 | fi |
| 1856 | |
| 1857 | if testscip-shell system . . test. "x$have_svnversion" = xyes; then |
| 1858 | |
| 1859 | svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/nullscip-shell filesystem . . `/dev/null`.` |
| 1860 | if testscip-shell system . . test. "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then |
| 1861 | CBC_SVN_REV=`echoscip-shell system . . echo. $svn_rev_tmp | sedscip-shell system . . sed. -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'` |
| 1862 | |
| 1863 | catscip-shell system . . cat. >>confdefs.h <<_ACEOF |
| 1864 | #define CBC_SVN_REV $CBC_SVN_REV |
| 1865 | _ACEOF |
| 1866 | |
| 1867 | fi |
| 1868 | fi |
| 1869 | |
| 1870 | |
| 1871 | |
| 1872 | # Capture libtool library version, if given. |
| 1873 | coin_libversion=13:13:10 |
| 1874 | |
| 1875 | |
| 1876 | |
| 1877 | # Check if user wants to produce debugging code |
| 1878 | |
| 1879 | echoscip-shell system . . echo. "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5 |
| 1880 | echoscip-shell system . . echo. $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6 |
| 1881 | |
| 1882 | # Check whether --enable-debug or --disable-debug was given. |
| 1883 | if testscip-shell system . . test. "${enable_debug+set}" = set; then |
| 1884 | enableval="$enable_debug" |
| 1885 | case "${enableval}" in |
| 1886 | yes) coin_debug_compile=true |
| 1887 | if testscip-shell system . . test. "${enable_shared+set}" = set; then :; else |
| 1888 | enable_shared=no |
| 1889 | fi |
| 1890 | ;; |
| 1891 | no) coin_debug_compile=false |
| 1892 | ;; |
| 1893 | *) { { echoscip-shell system . . echo. "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5 |
| 1894 | echoscip-shell system . . echo. "$as_me: error: bad value ${enableval} for --enable-debug" >&2;} |
| 1895 | { (exit 1); exit 1; }; } |
| 1896 | ;; |
| 1897 | esac |
| 1898 | else |
| 1899 | coin_debug_compile=false |
| 1900 | fi; |
| 1901 | |
| 1902 | # Check whether --enable-debug-cbc or --disable-debug-cbc was given. |
| 1903 | if testscip-shell system . . test. "${enable_debug_cbc+set}" = set; then |
| 1904 | enableval="$enable_debug_cbc" |
| 1905 | case "${enableval}" in |
| 1906 | yes) coin_debug_compile=true |
| 1907 | ;; |
| 1908 | no) coin_debug_compile=false |
| 1909 | ;; |
| 1910 | *) { { echoscip-shell system . . echo. "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-cbc" >&5 |
| 1911 | echoscip-shell system . . echo. "$as_me: error: bad value ${enableval} for --enable-debug-cbc" >&2;} |
| 1912 | { (exit 1); exit 1; }; } |
| 1913 | ;; |
| 1914 | esac |
| 1915 | else |
| 1916 | : |
| 1917 | fi; |
| 1918 | |
| 1919 | # m4_ifvaln([Cbc], |
| 1920 | |
| 1921 | if testscip-shell system . . test. $coin_debug_compile = true; then |
| 1922 | echoscip-shell system . . echo. "$as_me:$LINENO: result: yes" >&5 |
| 1923 | echoscip-shell system . . echo. "${ECHO_T}yes" >&6 |
| 1924 | else |
| 1925 | echoscip-shell system . . echo. "$as_me:$LINENO: result: no" >&5 |
| 1926 | echoscip-shell system . . echo. "${ECHO_T}no" >&6 |
| 1927 | fi |
| 1928 | |
| 1929 | |
| 1930 | # Check whether --with-cbc-verbosity or --without-cbc-verbosity was given. |
| 1931 | if testscip-shell system . . test. "${with_cbc_verbosity+set}" = set; then |
| 1932 | withval="$with_cbc_verbosity" |
| 1933 | if testscip-shell system . . test. "$withval" = yes; then |
| 1934 | withval=1 |
| 1935 | fi |
| 1936 | coin_cbc_verbosity=$withval |
| 1937 | else |
| 1938 | coin_cbc_verbosity=0 |
| 1939 | fi; |
| 1940 | |
| 1941 | catscip-shell system . . cat. >>confdefs.h <<_ACEOF |
| 1942 | #define COIN_CBC_VERBOSITY $coin_cbc_verbosity |
| 1943 | _ACEOF |
| 1944 | |
| 1945 | |
| 1946 | |
| 1947 | # Check whether --with-cbc-checklevel or --without-cbc-checklevel was given. |
| 1948 | if testscip-shell system . . test. "${with_cbc_checklevel+set}" = set; then |
| 1949 | withval="$with_cbc_checklevel" |
| 1950 | if testscip-shell system . . test. "$withval" = yes; then |
| 1951 | withval=1 |
| 1952 | fi |
| 1953 | coin_cbc_checklevel=$withval |
| 1954 | else |
| 1955 | coin_cbc_checklevel=0 |
| 1956 | fi; |
| 1957 | |
| 1958 | catscip-shell system . . cat. >>confdefs.h <<_ACEOF |
| 1959 | #define COIN_CBC_CHECKLEVEL $coin_cbc_checklevel |
| 1960 | _ACEOF |
| 1961 | |
| 1962 | |
| 1963 | # m4_ifvaln([Cbc], |
| 1964 | |
| 1965 | |
| 1966 | |
| 1967 | # Get the name of the C++ compiler and appropriate compiler options |
| 1968 | |
| 1969 | |
| 1970 | # for backward compatibility |
| 1971 | # Check whether --enable-doscompile or --disable-doscompile was given. |
| 1972 | if testscip-shell system . . test. "${enable_doscompile+set}" = set; then |
| 1973 | enableval="$enable_doscompile" |
| 1974 | enable_doscompile=$enableval |
| 1975 | else |
| 1976 | enable_doscompile=no |
| 1977 | fi; |
| 1978 | |
| 1979 | # Check whether --enable-msvc or --disable-msvc was given. |
| 1980 | if testscip-shell system . . test. "${enable_msvc+set}" = set; then |
| 1981 | enableval="$enable_msvc" |
| 1982 | enable_msvc=$enableval |
| 1983 | else |
| 1984 | enable_msvc=no |
| 1985 | if testscip-shell system . . test. "$enable_doscompile" = msvc ; then |
| 1986 | enable_msvc=yes |
| 1987 | elif testscip-shell system . . test. "$enable_doscompile" != no ; then |
| 1988 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5 |
| 1989 | echoscip-shell system . . echo. "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;} |
| 1990 | { (exit 1); exit 1; }; } |
| 1991 | fi |
| 1992 | |
| 1993 | fi; |
| 1994 | |
| 1995 | if testscip-shell system . . test. "$enable_msvc" = MD; then |
| 1996 | enable_shared=yes |
| 1997 | enable_msvc=yes |
| 1998 | fi |
| 1999 | |
| 2000 | if testscip-shell system . . test. "$enable_msvc" = yes; then |
| 2001 | case $build in |
| 2002 | *-cygwin* | *-mingw*) ;; |
| 2003 | *) { { echoscip-shell system . . echo. "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5 |
| 2004 | echoscip-shell system . . echo. "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;} |
| 2005 | { (exit 1); exit 1; }; } ;; |
| 2006 | esac |
| 2007 | fi |
| 2008 | |
| 2009 | |
| 2010 | |
| 2011 | ac_ext=c |
| 2012 | ac_cpp='$CPP $CPPFLAGS' |
| 2013 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2014 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2015 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2016 | |
| 2017 | |
| 2018 | # For consistency, we set the C compiler to the same value of the C++ |
| 2019 | # compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl) |
| 2020 | if testscip-shell system . . test. x"$CXX" != x; then |
| 2021 | case "$CXX" in |
| 2022 | clang* | */clang* ) ;; |
| 2023 | cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) |
| 2024 | if testscip-shell system . . test. x"$CC" = x; then |
| 2025 | CC="$CXX" |
| 2026 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5 |
| 2027 | echoscip-shell system . . echo. "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;} |
| 2028 | fi |
| 2029 | ;; |
| 2030 | esac |
| 2031 | fi |
| 2032 | |
| 2033 | |
| 2034 | |
| 2035 | |
| 2036 | |
| 2037 | |
| 2038 | coin_has_cc=yes |
| 2039 | |
| 2040 | save_cflags="$CFLAGS" |
| 2041 | |
| 2042 | # For *-*-solaris*, promote Studio/Workshop cc compiler to front of list. |
| 2043 | # Depending on the user's PATH, when Studio/Workshop cc is not present we may |
| 2044 | # find /usr/ucb/cc, which is almost certainly not a good choice for the C |
| 2045 | # compiler. In this case, put cc after gcc. |
| 2046 | |
| 2047 | case $build in |
| 2048 | *-cygwin* | *-mingw*) |
| 2049 | if testscip-shell system . . test. "$enable_msvc" = yes ; then |
| 2050 | comps="icl cl gcc" |
| 2051 | else |
| 2052 | comps="gcc icl cl" |
| 2053 | fi ;; |
| 2054 | *-*-solaris*) |
| 2055 | # Extract the first word of "cc", so it can be a program name with args. |
| 2056 | set dummy cc; ac_word=$2 |
| 2057 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2058 | echoscip-shell system . . echo. $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2059 | if testscip-shell system . . test. "${ac_cv_prog_sol_cc_compiler+set}" = set; then |
| 2060 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 2061 | else |
| 2062 | if testscip-shell system . . test. -n "$sol_cc_compiler"; then |
| 2063 | ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test. |
| 2064 | else |
| 2065 | ac_prog_rejected=no |
| 2066 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2067 | for as_dir in $PATH |
| 2068 | do |
| 2069 | IFS=$as_save_IFS |
| 2070 | testscip-shell system . . test. -z "$as_dir" && as_dir=. |
| 2071 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2072 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2073 | if testscip-shell system . . test. "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/ccscip-shell filesystem . . `/usr/ucb/cc`."; then |
| 2074 | ac_prog_rejected=yes |
| 2075 | continue |
| 2076 | fi |
| 2077 | ac_cv_prog_sol_cc_compiler="cc" |
| 2078 | echoscip-shell system . . echo. "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2079 | break 2 |
| 2080 | fi |
| 2081 | done |
| 2082 | done |
| 2083 | |
| 2084 | if testscip-shell system . . test. $ac_prog_rejected = yes; then |
| 2085 | # We found a bogon in the path, so make sure we never use it. |
| 2086 | set dummy $ac_cv_prog_sol_cc_compiler |
| 2087 | shift |
| 2088 | if testscip-shell system . . test. $# != 0; then |
| 2089 | # We chose a different compiler from the bogus one. |
| 2090 | # However, it has the same basename, so the bogon will be chosen |
| 2091 | # first if we set sol_cc_compiler to just the basename; use the full file name. |
| 2092 | shift |
| 2093 | ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@" |
| 2094 | fi |
| 2095 | fi |
| 2096 | fi |
| 2097 | fi |
| 2098 | sol_cc_compiler=$ac_cv_prog_sol_cc_compiler |
| 2099 | if testscip-shell system . . test. -n "$sol_cc_compiler"; then |
| 2100 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $sol_cc_compiler" >&5 |
| 2101 | echoscip-shell system . . echo. "${ECHO_T}$sol_cc_compiler" >&6 |
| 2102 | else |
| 2103 | echoscip-shell system . . echo. "$as_me:$LINENO: result: no" >&5 |
| 2104 | echoscip-shell system . . echo. "${ECHO_T}no" >&6 |
| 2105 | fi |
| 2106 | |
| 2107 | if testscip-shell system . . test. "$sol_cc_compiler" = "cc" ; then |
| 2108 | comps="cc xlc gcc pgcc icc" |
| 2109 | else |
| 2110 | comps="xlc gcc pgcc icc cc" |
| 2111 | fi |
| 2112 | ;; |
| 2113 | *-*-darwin*) comps="clang gcc cc" ;; |
| 2114 | *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;; |
| 2115 | *-linux-*) comps="xlc gcc cc pgcc icc" ;; |
| 2116 | *) comps="xlc_r xlc cc gcc pgcc icc" ;; |
| 2117 | esac |
| 2118 | |
| 2119 | # We delete the cached value, since the test might not have been |
| 2120 | # performed with our choice of compilers earlier |
| 2121 | $as_unset ac_cv_prog_CC || testscip-shell system . . test. "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; } |
| 2122 | # AC_MSG_NOTICE([C compiler candidates: $comps]) |
| 2123 | ac_ext=c |
| 2124 | ac_cpp='$CPP $CPPFLAGS' |
| 2125 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2126 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2127 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2128 | if testscip-shell system . . test. -n "$ac_tool_prefix"; then |
| 2129 | for ac_prog in $comps |
| 2130 | do |
| 2131 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2132 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2133 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2134 | echoscip-shell system . . echo. $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2135 | if testscip-shell system . . test. "${ac_cv_prog_CC+set}" = set; then |
| 2136 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 2137 | else |
| 2138 | if testscip-shell system . . test. -n "$CC"; then |
| 2139 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2140 | else |
| 2141 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2142 | for as_dir in $PATH |
| 2143 | do |
| 2144 | IFS=$as_save_IFS |
| 2145 | testscip-shell system . . test. -z "$as_dir" && as_dir=. |
| 2146 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2147 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2148 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2149 | echoscip-shell system . . echo. "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2150 | break 2 |
| 2151 | fi |
| 2152 | done |
| 2153 | done |
| 2154 | |
| 2155 | fi |
| 2156 | fi |
| 2157 | CC=$ac_cv_prog_CC |
| 2158 | if testscip-shell system . . test. -n "$CC"; then |
| 2159 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $CC" >&5 |
| 2160 | echoscip-shell system . . echo. "${ECHO_T}$CC" >&6 |
| 2161 | else |
| 2162 | echoscip-shell system . . echo. "$as_me:$LINENO: result: no" >&5 |
| 2163 | echoscip-shell system . . echo. "${ECHO_T}no" >&6 |
| 2164 | fi |
| 2165 | |
| 2166 | testscip-shell system . . test. -n "$CC" && break |
| 2167 | done |
| 2168 | fi |
| 2169 | if testscip-shell system . . test. -z "$CC"; then |
| 2170 | ac_ct_CC=$CC |
| 2171 | for ac_prog in $comps |
| 2172 | do |
| 2173 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2174 | set dummy $ac_prog; ac_word=$2 |
| 2175 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2176 | echoscip-shell system . . echo. $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2177 | if testscip-shell system . . test. "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2178 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 2179 | else |
| 2180 | if testscip-shell system . . test. -n "$ac_ct_CC"; then |
| 2181 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2182 | else |
| 2183 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2184 | for as_dir in $PATH |
| 2185 | do |
| 2186 | IFS=$as_save_IFS |
| 2187 | testscip-shell system . . test. -z "$as_dir" && as_dir=. |
| 2188 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2189 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2190 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2191 | echoscip-shell system . . echo. "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2192 | break 2 |
| 2193 | fi |
| 2194 | done |
| 2195 | done |
| 2196 | |
| 2197 | fi |
| 2198 | fi |
| 2199 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2200 | if testscip-shell system . . test. -n "$ac_ct_CC"; then |
| 2201 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2202 | echoscip-shell system . . echo. "${ECHO_T}$ac_ct_CC" >&6 |
| 2203 | else |
| 2204 | echoscip-shell system . . echo. "$as_me:$LINENO: result: no" >&5 |
| 2205 | echoscip-shell system . . echo. "${ECHO_T}no" >&6 |
| 2206 | fi |
| 2207 | |
| 2208 | testscip-shell system . . test. -n "$ac_ct_CC" && break |
| 2209 | done |
| 2210 | |
| 2211 | CC=$ac_ct_CC |
| 2212 | fi |
| 2213 | |
| 2214 | |
| 2215 | testscip-shell system . . test. -z "$CC" && { { echoscip-shell system . . echo. "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2216 | See \`config.log' for more details." >&5 |
| 2217 | echoscip-shell system . . echo. "$as_me: error: no acceptable C compiler found in \$PATH |
| 2218 | See \`config.log' for more details." >&2;} |
| 2219 | { (exit 1); exit 1; }; } |
| 2220 | |
| 2221 | # Provide some information about the compiler. |
| 2222 | echoscip-shell system . . echo. "$as_me:$LINENO:" \ |
| 2223 | "checking for C compiler version" >&5 |
| 2224 | ac_compiler=`set X $ac_compile; echoscip-shell system . . echo. $2` |
| 2225 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 2226 | (eval $ac_compiler --version </dev/nullscip-shell filesystem . . `/dev/null`. >&5) 2>&5 |
| 2227 | ac_status=$? |
| 2228 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2229 | (exit $ac_status); } |
| 2230 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 2231 | (eval $ac_compiler -v </dev/nullscip-shell filesystem . . `/dev/null`. >&5) 2>&5 |
| 2232 | ac_status=$? |
| 2233 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2234 | (exit $ac_status); } |
| 2235 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 2236 | (eval $ac_compiler -V </dev/nullscip-shell filesystem . . `/dev/null`. >&5) 2>&5 |
| 2237 | ac_status=$? |
| 2238 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2239 | (exit $ac_status); } |
| 2240 | |
| 2241 | catscip-shell system . . cat. >conftest.$ac_ext <<_ACEOF |
| 2242 | /* confdefs.h. */ |
| 2243 | _ACEOF |
| 2244 | catscip-shell system . . cat. confdefs.h >>conftest.$ac_ext |
| 2245 | catscip-shell system . . cat. >>conftest.$ac_ext <<_ACEOF |
| 2246 | /* end confdefs.h. */ |
| 2247 | |
| 2248 | int |
| 2249 | main () |
| 2250 | { |
| 2251 | |
| 2252 | ; |
| 2253 | return 0; |
| 2254 | } |
| 2255 | _ACEOF |
| 2256 | ac_clean_files_save=$ac_clean_files |
| 2257 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
| 2258 | # Try to create an executable without -o first, disregard a.out. |
| 2259 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2260 | # of exeext. |
| 2261 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2262 | echoscip-shell system . . echo. $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
| 2263 | ac_link_default=`echoscip-shell system . . echo. "$ac_link" | sedscip-shell system . . sed. 's/ -o *conftest[^ ]*//'` |
| 2264 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 2265 | (eval $ac_link_default) 2>&5 |
| 2266 | ac_status=$? |
| 2267 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2268 | (exit $ac_status); }; then |
| 2269 | # Find the output, starting from the most likely. This scheme is |
| 2270 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 2271 | # resort. |
| 2272 | |
| 2273 | # Be careful to initialize this variable, since it used to be cached. |
| 2274 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 2275 | ac_cv_exeext= |
| 2276 | # b.out is created by i960 compilers. |
| 2277 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 2278 | do |
| 2279 | testscip-shell system . . test. -f "$ac_file" || continue |
| 2280 | case $ac_file in |
| 2281 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
| 2282 | ;; |
| 2283 | conftest.$ac_ext ) |
| 2284 | # This is the source file. |
| 2285 | ;; |
| 2286 | [ab].out ) |
| 2287 | # We found the default executable, but exeext='' is most |
| 2288 | # certainly right. |
| 2289 | break;; |
| 2290 | *.* ) |
| 2291 | ac_cv_exeext=`exprscip-shell system . . expr. "$ac_file" : '[^.]*\(\..*\)'` |
| 2292 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 2293 | # but it would be cool to find out if it's true. Does anybody |
| 2294 | # maintain Libtool? --akim. |
| 2295 | export ac_cv_exeext |
| 2296 | break;; |
| 2297 | * ) |
| 2298 | break;; |
| 2299 | esac |
| 2300 | done |
| 2301 | else |
| 2302 | echoscip-shell system . . echo. "$as_me: failed program was:" >&5 |
| 2303 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 2304 | |
| 2305 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: C compiler cannot create executables |
| 2306 | See \`config.log' for more details." >&5 |
| 2307 | echoscip-shell system . . echo. "$as_me: error: C compiler cannot create executables |
| 2308 | See \`config.log' for more details." >&2;} |
| 2309 | { (exit 77); exit 77; }; } |
| 2310 | fi |
| 2311 | |
| 2312 | ac_exeext=$ac_cv_exeext |
| 2313 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $ac_file" >&5 |
| 2314 | echoscip-shell system . . echo. "${ECHO_T}$ac_file" >&6 |
| 2315 | |
| 2316 | # Check the compiler produces executables we can run. If not, either |
| 2317 | # the compiler is broken, or we cross compile. |
| 2318 | echoscip-shell system . . echo. "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2319 | echoscip-shell system . . echo. $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 2320 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2321 | # If not cross compiling, check that we can run a simple program. |
| 2322 | if testscip-shell system . . test. "$cross_compiling" != yes; then |
| 2323 | if { ac_try='./$ac_file' |
| 2324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2325 | (eval $ac_try) 2>&5 |
| 2326 | ac_status=$? |
| 2327 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2328 | (exit $ac_status); }; }; then |
| 2329 | cross_compiling=no |
| 2330 | else |
| 2331 | if testscip-shell system . . test. "$cross_compiling" = maybe; then |
| 2332 | cross_compiling=yes |
| 2333 | else |
| 2334 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2335 | If you meant to cross compile, use \`--host'. |
| 2336 | See \`config.log' for more details." >&5 |
| 2337 | echoscip-shell system . . echo. "$as_me: error: cannot run C compiled programs. |
| 2338 | If you meant to cross compile, use \`--host'. |
| 2339 | See \`config.log' for more details." >&2;} |
| 2340 | { (exit 1); exit 1; }; } |
| 2341 | fi |
| 2342 | fi |
| 2343 | fi |
| 2344 | echoscip-shell system . . echo. "$as_me:$LINENO: result: yes" >&5 |
| 2345 | echoscip-shell system . . echo. "${ECHO_T}yes" >&6 |
| 2346 | |
| 2347 | rmscip-shell system . . rm. -f a.out a.exe conftest$ac_cv_exeext b.out |
| 2348 | ac_clean_files=$ac_clean_files_save |
| 2349 | # Check the compiler produces executables we can run. If not, either |
| 2350 | # the compiler is broken, or we cross compile. |
| 2351 | echoscip-shell system . . echo. "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2352 | echoscip-shell system . . echo. $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 2353 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2354 | echoscip-shell system . . echo. "${ECHO_T}$cross_compiling" >&6 |
| 2355 | |
| 2356 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2357 | echoscip-shell system . . echo. $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 2358 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2359 | (eval $ac_link) 2>&5 |
| 2360 | ac_status=$? |
| 2361 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2362 | (exit $ac_status); }; then |
| 2363 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2364 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2365 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2366 | # `rm'. |
| 2367 | for ac_file in conftest.exe conftest conftest.*; do |
| 2368 | testscip-shell system . . test. -f "$ac_file" || continue |
| 2369 | case $ac_file in |
| 2370 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
| 2371 | *.* ) ac_cv_exeext=`exprscip-shell system . . expr. "$ac_file" : '[^.]*\(\..*\)'` |
| 2372 | export ac_cv_exeext |
| 2373 | break;; |
| 2374 | * ) break;; |
| 2375 | esac |
| 2376 | done |
| 2377 | else |
| 2378 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2379 | See \`config.log' for more details." >&5 |
| 2380 | echoscip-shell system . . echo. "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2381 | See \`config.log' for more details." >&2;} |
| 2382 | { (exit 1); exit 1; }; } |
| 2383 | fi |
| 2384 | |
| 2385 | rmscip-shell system . . rm. -f conftest$ac_cv_exeext |
| 2386 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2387 | echoscip-shell system . . echo. "${ECHO_T}$ac_cv_exeext" >&6 |
| 2388 | |
| 2389 | rmscip-shell system . . rm. -f conftest.$ac_ext |
| 2390 | EXEEXT=$ac_cv_exeext |
| 2391 | ac_exeext=$EXEEXT |
| 2392 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2393 | echoscip-shell system . . echo. $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 2394 | if testscip-shell system . . test. "${ac_cv_objext+set}" = set; then |
| 2395 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 2396 | else |
| 2397 | catscip-shell system . . cat. >conftest.$ac_ext <<_ACEOF |
| 2398 | /* confdefs.h. */ |
| 2399 | _ACEOF |
| 2400 | catscip-shell system . . cat. confdefs.h >>conftest.$ac_ext |
| 2401 | catscip-shell system . . cat. >>conftest.$ac_ext <<_ACEOF |
| 2402 | /* end confdefs.h. */ |
| 2403 | |
| 2404 | int |
| 2405 | main () |
| 2406 | { |
| 2407 | |
| 2408 | ; |
| 2409 | return 0; |
| 2410 | } |
| 2411 | _ACEOF |
| 2412 | rmscip-shell system . . rm. -f conftest.o conftest.obj |
| 2413 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2414 | (eval $ac_compile) 2>&5 |
| 2415 | ac_status=$? |
| 2416 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2417 | (exit $ac_status); }; then |
| 2418 | for ac_file in `(lsscip-shell system . . ls. conftest.o conftest.obj; lsscip-shell system . . ls. conftest.*) 2>/dev/nullscip-shell filesystem . . `/dev/null`.`; do |
| 2419 | case $ac_file in |
| 2420 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
| 2421 | *) ac_cv_objext=`exprscip-shell system . . expr. "$ac_file" : '.*\.\(.*\)'` |
| 2422 | break;; |
| 2423 | esac |
| 2424 | done |
| 2425 | else |
| 2426 | echoscip-shell system . . echo. "$as_me: failed program was:" >&5 |
| 2427 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 2428 | |
| 2429 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2430 | See \`config.log' for more details." >&5 |
| 2431 | echoscip-shell system . . echo. "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2432 | See \`config.log' for more details." >&2;} |
| 2433 | { (exit 1); exit 1; }; } |
| 2434 | fi |
| 2435 | |
| 2436 | rmscip-shell system . . rm. -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2437 | fi |
| 2438 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2439 | echoscip-shell system . . echo. "${ECHO_T}$ac_cv_objext" >&6 |
| 2440 | OBJEXT=$ac_cv_objext |
| 2441 | ac_objext=$OBJEXT |
| 2442 | echoscip-shell system . . echo. "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2443 | echoscip-shell system . . echo. $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 2444 | if testscip-shell system . . test. "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2445 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 2446 | else |
| 2447 | catscip-shell system . . cat. >conftest.$ac_ext <<_ACEOF |
| 2448 | /* confdefs.h. */ |
| 2449 | _ACEOF |
| 2450 | catscip-shell system . . cat. confdefs.h >>conftest.$ac_ext |
| 2451 | catscip-shell system . . cat. >>conftest.$ac_ext <<_ACEOF |
| 2452 | /* end confdefs.h. */ |
| 2453 | |
| 2454 | int |
| 2455 | main () |
| 2456 | { |
| 2457 | #ifndef __GNUC__ |
| 2458 | choke me |
| 2459 | #endif |
| 2460 | |
| 2461 | ; |
| 2462 | return 0; |
| 2463 | } |
| 2464 | _ACEOF |
| 2465 | rmscip-shell system . . rm. -f conftest.$ac_objext |
| 2466 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2467 | (eval $ac_compile) 2>conftest.er1 |
| 2468 | ac_status=$? |
| 2469 | grepscip-shell system . . grep. -v '^ *+' conftest.er1 >conftest.err |
| 2470 | rmscip-shell system . . rm. -f conftest.er1 |
| 2471 | catscip-shell system . . cat. conftest.err >&5 |
| 2472 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2473 | (exit $ac_status); } && |
| 2474 | { ac_try='test -z "$ac_c_werror_flag" |
| 2475 | || test ! -s conftest.err' |
| 2476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2477 | (eval $ac_try) 2>&5 |
| 2478 | ac_status=$? |
| 2479 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2480 | (exit $ac_status); }; } && |
| 2481 | { ac_try='test -s conftest.$ac_objext' |
| 2482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2483 | (eval $ac_try) 2>&5 |
| 2484 | ac_status=$? |
| 2485 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2486 | (exit $ac_status); }; }; then |
| 2487 | ac_compiler_gnu=yes |
| 2488 | else |
| 2489 | echoscip-shell system . . echo. "$as_me: failed program was:" >&5 |
| 2490 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 2491 | |
| 2492 | ac_compiler_gnu=no |
| 2493 | fi |
| 2494 | rmscip-shell system . . rm. -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2495 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2496 | |
| 2497 | fi |
| 2498 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2499 | echoscip-shell system . . echo. "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2500 | GCC=`testscip-shell system . . test. $ac_compiler_gnu = yes && echoscip-shell system . . echo. yes` |
| 2501 | ac_test_CFLAGS=${CFLAGS+set} |
| 2502 | ac_save_CFLAGS=$CFLAGS |
| 2503 | CFLAGS="-g" |
| 2504 | echoscip-shell system . . echo. "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2505 | echoscip-shell system . . echo. $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2506 | if testscip-shell system . . test. "${ac_cv_prog_cc_g+set}" = set; then |
| 2507 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 2508 | else |
| 2509 | catscip-shell system . . cat. >conftest.$ac_ext <<_ACEOF |
| 2510 | /* confdefs.h. */ |
| 2511 | _ACEOF |
| 2512 | catscip-shell system . . cat. confdefs.h >>conftest.$ac_ext |
| 2513 | catscip-shell system . . cat. >>conftest.$ac_ext <<_ACEOF |
| 2514 | /* end confdefs.h. */ |
| 2515 | |
| 2516 | int |
| 2517 | main () |
| 2518 | { |
| 2519 | |
| 2520 | ; |
| 2521 | return 0; |
| 2522 | } |
| 2523 | _ACEOF |
| 2524 | rmscip-shell system . . rm. -f conftest.$ac_objext |
| 2525 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2526 | (eval $ac_compile) 2>conftest.er1 |
| 2527 | ac_status=$? |
| 2528 | grepscip-shell system . . grep. -v '^ *+' conftest.er1 >conftest.err |
| 2529 | rmscip-shell system . . rm. -f conftest.er1 |
| 2530 | catscip-shell system . . cat. conftest.err >&5 |
| 2531 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2532 | (exit $ac_status); } && |
| 2533 | { ac_try='test -z "$ac_c_werror_flag" |
| 2534 | || test ! -s conftest.err' |
| 2535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2536 | (eval $ac_try) 2>&5 |
| 2537 | ac_status=$? |
| 2538 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2539 | (exit $ac_status); }; } && |
| 2540 | { ac_try='test -s conftest.$ac_objext' |
| 2541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2542 | (eval $ac_try) 2>&5 |
| 2543 | ac_status=$? |
| 2544 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2545 | (exit $ac_status); }; }; then |
| 2546 | ac_cv_prog_cc_g=yes |
| 2547 | else |
| 2548 | echoscip-shell system . . echo. "$as_me: failed program was:" >&5 |
| 2549 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 2550 | |
| 2551 | ac_cv_prog_cc_g=no |
| 2552 | fi |
| 2553 | rmscip-shell system . . rm. -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2554 | fi |
| 2555 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2556 | echoscip-shell system . . echo. "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
| 2557 | if testscip-shell system . . test. "$ac_test_CFLAGS" = set; then |
| 2558 | CFLAGS=$ac_save_CFLAGS |
| 2559 | elif testscip-shell system . . test. $ac_cv_prog_cc_g = yes; then |
| 2560 | if testscip-shell system . . test. "$GCC" = yes; then |
| 2561 | CFLAGS="-g -O2" |
| 2562 | else |
| 2563 | CFLAGS="-g" |
| 2564 | fi |
| 2565 | else |
| 2566 | if testscip-shell system . . test. "$GCC" = yes; then |
| 2567 | CFLAGS="-O2" |
| 2568 | else |
| 2569 | CFLAGS= |
| 2570 | fi |
| 2571 | fi |
| 2572 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2573 | echoscip-shell system . . echo. $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2574 | if testscip-shell system . . test. "${ac_cv_prog_cc_stdc+set}" = set; then |
| 2575 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 2576 | else |
| 2577 | ac_cv_prog_cc_stdc=no |
| 2578 | ac_save_CC=$CC |
| 2579 | catscip-shell system . . cat. >conftest.$ac_ext <<_ACEOF |
| 2580 | /* confdefs.h. */ |
| 2581 | _ACEOF |
| 2582 | catscip-shell system . . cat. confdefs.h >>conftest.$ac_ext |
| 2583 | catscip-shell system . . cat. >>conftest.$ac_ext <<_ACEOF |
| 2584 | /* end confdefs.h. */ |
| 2585 | #include <stdarg.h> |
| 2586 | #include <stdio.h> |
| 2587 | #include <sys/types.h> |
| 2588 | #include <sys/stat.h> |
| 2589 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2590 | struct buf { int x; }; |
| 2591 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2592 | static char *e (p, i) |
| 2593 | char **p; |
| 2594 | int i; |
| 2595 | { |
| 2596 | return p[i]; |
| 2597 | } |
| 2598 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2599 | { |
| 2600 | char *s; |
| 2601 | va_list v; |
| 2602 | va_start (v,p); |
| 2603 | s = g (p, va_arg (v,int)); |
| 2604 | va_end (v); |
| 2605 | return s; |
| 2606 | } |
| 2607 | |
| 2608 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2609 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2610 | These don't provoke an error unfortunately, instead are silently treated |
| 2611 | as 'x'. The following induces an error, until -std1 is added to get |
| 2612 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2613 | array size at least. It's necessary to write '\x00'==0 to get something |
| 2614 | that's true only with -std1. */ |
| 2615 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2616 | |
| 2617 | int test (int i, double x); |
| 2618 | struct s1 {int (*f) (int a);}; |
| 2619 | struct s2 {int (*f) (double a);}; |
| 2620 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2621 | int argc; |
| 2622 | char **argv; |
| 2623 | int |
| 2624 | main () |
| 2625 | { |
| 2626 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2627 | ; |
| 2628 | return 0; |
| 2629 | } |
| 2630 | _ACEOF |
| 2631 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2632 | # breaks some systems' header files. |
| 2633 | # AIX -qlanglvl=ansi |
| 2634 | # Ultrix and OSF/1 -std1 |
| 2635 | # HP-UX 10.20 and later -Ae |
| 2636 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2637 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2638 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2639 | do |
| 2640 | CC="$ac_save_CC $ac_arg" |
| 2641 | rmscip-shell system . . rm. -f conftest.$ac_objext |
| 2642 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2643 | (eval $ac_compile) 2>conftest.er1 |
| 2644 | ac_status=$? |
| 2645 | grepscip-shell system . . grep. -v '^ *+' conftest.er1 >conftest.err |
| 2646 | rmscip-shell system . . rm. -f conftest.er1 |
| 2647 | catscip-shell system . . cat. conftest.err >&5 |
| 2648 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2649 | (exit $ac_status); } && |
| 2650 | { ac_try='test -z "$ac_c_werror_flag" |
| 2651 | || test ! -s conftest.err' |
| 2652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2653 | (eval $ac_try) 2>&5 |
| 2654 | ac_status=$? |
| 2655 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2656 | (exit $ac_status); }; } && |
| 2657 | { ac_try='test -s conftest.$ac_objext' |
| 2658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2659 | (eval $ac_try) 2>&5 |
| 2660 | ac_status=$? |
| 2661 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2662 | (exit $ac_status); }; }; then |
| 2663 | ac_cv_prog_cc_stdc=$ac_arg |
| 2664 | break |
| 2665 | else |
| 2666 | echoscip-shell system . . echo. "$as_me: failed program was:" >&5 |
| 2667 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 2668 | |
| 2669 | fi |
| 2670 | rmscip-shell system . . rm. -f conftest.err conftest.$ac_objext |
| 2671 | done |
| 2672 | rmscip-shell system . . rm. -f conftest.$ac_ext conftest.$ac_objext |
| 2673 | CC=$ac_save_CC |
| 2674 | |
| 2675 | fi |
| 2676 | |
| 2677 | case "x$ac_cv_prog_cc_stdc" in |
| 2678 | x|xno) |
| 2679 | echoscip-shell system . . echo. "$as_me:$LINENO: result: none needed" >&5 |
| 2680 | echoscip-shell system . . echo. "${ECHO_T}none needed" >&6 ;; |
| 2681 | *) |
| 2682 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2683 | echoscip-shell system . . echo. "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2684 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 2685 | esac |
| 2686 | |
| 2687 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2688 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2689 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2690 | # the declaration of exit, since it's the most demanding environment. |
| 2691 | catscip-shell system . . cat. >conftest.$ac_ext <<_ACEOF |
| 2692 | #ifndef __cplusplus |
| 2693 | choke me |
| 2694 | #endif |
| 2695 | _ACEOF |
| 2696 | rmscip-shell system . . rm. -f conftest.$ac_objext |
| 2697 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2698 | (eval $ac_compile) 2>conftest.er1 |
| 2699 | ac_status=$? |
| 2700 | grepscip-shell system . . grep. -v '^ *+' conftest.er1 >conftest.err |
| 2701 | rmscip-shell system . . rm. -f conftest.er1 |
| 2702 | catscip-shell system . . cat. conftest.err >&5 |
| 2703 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2704 | (exit $ac_status); } && |
| 2705 | { ac_try='test -z "$ac_c_werror_flag" |
| 2706 | || test ! -s conftest.err' |
| 2707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2708 | (eval $ac_try) 2>&5 |
| 2709 | ac_status=$? |
| 2710 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2711 | (exit $ac_status); }; } && |
| 2712 | { ac_try='test -s conftest.$ac_objext' |
| 2713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2714 | (eval $ac_try) 2>&5 |
| 2715 | ac_status=$? |
| 2716 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2717 | (exit $ac_status); }; }; then |
| 2718 | for ac_declaration in \ |
| 2719 | '' \ |
| 2720 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2721 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2722 | 'extern "C" void exit (int) throw ();' \ |
| 2723 | 'extern "C" void exit (int);' \ |
| 2724 | 'void exit (int);' |
| 2725 | do |
| 2726 | catscip-shell system . . cat. >conftest.$ac_ext <<_ACEOF |
| 2727 | /* confdefs.h. */ |
| 2728 | _ACEOF |
| 2729 | catscip-shell system . . cat. confdefs.h >>conftest.$ac_ext |
| 2730 | catscip-shell system . . cat. >>conftest.$ac_ext <<_ACEOF |
| 2731 | /* end confdefs.h. */ |
| 2732 | $ac_declaration |
| 2733 | #include <stdlib.h> |
| 2734 | int |
| 2735 | main () |
| 2736 | { |
| 2737 | exit (42); |
| 2738 | ; |
| 2739 | return 0; |
| 2740 | } |
| 2741 | _ACEOF |
| 2742 | rmscip-shell system . . rm. -f conftest.$ac_objext |
| 2743 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2744 | (eval $ac_compile) 2>conftest.er1 |
| 2745 | ac_status=$? |
| 2746 | grepscip-shell system . . grep. -v '^ *+' conftest.er1 >conftest.err |
| 2747 | rmscip-shell system . . rm. -f conftest.er1 |
| 2748 | catscip-shell system . . cat. conftest.err >&5 |
| 2749 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2750 | (exit $ac_status); } && |
| 2751 | { ac_try='test -z "$ac_c_werror_flag" |
| 2752 | || test ! -s conftest.err' |
| 2753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2754 | (eval $ac_try) 2>&5 |
| 2755 | ac_status=$? |
| 2756 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2757 | (exit $ac_status); }; } && |
| 2758 | { ac_try='test -s conftest.$ac_objext' |
| 2759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2760 | (eval $ac_try) 2>&5 |
| 2761 | ac_status=$? |
| 2762 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2763 | (exit $ac_status); }; }; then |
| 2764 | : |
| 2765 | else |
| 2766 | echoscip-shell system . . echo. "$as_me: failed program was:" >&5 |
| 2767 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 2768 | |
| 2769 | continue |
| 2770 | fi |
| 2771 | rmscip-shell system . . rm. -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2772 | catscip-shell system . . cat. >conftest.$ac_ext <<_ACEOF |
| 2773 | /* confdefs.h. */ |
| 2774 | _ACEOF |
| 2775 | catscip-shell system . . cat. confdefs.h >>conftest.$ac_ext |
| 2776 | catscip-shell system . . cat. >>conftest.$ac_ext <<_ACEOF |
| 2777 | /* end confdefs.h. */ |
| 2778 | $ac_declaration |
| 2779 | int |
| 2780 | main () |
| 2781 | { |
| 2782 | exit (42); |
| 2783 | ; |
| 2784 | return 0; |
| 2785 | } |
| 2786 | _ACEOF |
| 2787 | rmscip-shell system . . rm. -f conftest.$ac_objext |
| 2788 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2789 | (eval $ac_compile) 2>conftest.er1 |
| 2790 | ac_status=$? |
| 2791 | grepscip-shell system . . grep. -v '^ *+' conftest.er1 >conftest.err |
| 2792 | rmscip-shell system . . rm. -f conftest.er1 |
| 2793 | catscip-shell system . . cat. conftest.err >&5 |
| 2794 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2795 | (exit $ac_status); } && |
| 2796 | { ac_try='test -z "$ac_c_werror_flag" |
| 2797 | || test ! -s conftest.err' |
| 2798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2799 | (eval $ac_try) 2>&5 |
| 2800 | ac_status=$? |
| 2801 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2802 | (exit $ac_status); }; } && |
| 2803 | { ac_try='test -s conftest.$ac_objext' |
| 2804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2805 | (eval $ac_try) 2>&5 |
| 2806 | ac_status=$? |
| 2807 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2808 | (exit $ac_status); }; }; then |
| 2809 | break |
| 2810 | else |
| 2811 | echoscip-shell system . . echo. "$as_me: failed program was:" >&5 |
| 2812 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 2813 | |
| 2814 | fi |
| 2815 | rmscip-shell system . . rm. -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2816 | done |
| 2817 | rmscip-shell system . . rm. -f conftest* |
| 2818 | if testscip-shell system . . test. -n "$ac_declaration"; then |
| 2819 | echoscip-shell system . . echo. '#ifdef __cplusplus' >>confdefs.h |
| 2820 | echoscip-shell system . . echo. $ac_declaration >>confdefs.h |
| 2821 | echoscip-shell system . . echo. '#endif' >>confdefs.h |
| 2822 | fi |
| 2823 | |
| 2824 | else |
| 2825 | echoscip-shell system . . echo. "$as_me: failed program was:" >&5 |
| 2826 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 2827 | |
| 2828 | fi |
| 2829 | rmscip-shell system . . rm. -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2830 | ac_ext=c |
| 2831 | ac_cpp='$CPP $CPPFLAGS' |
| 2832 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2833 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2834 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2835 | |
| 2836 | if testscip-shell system . . test. -z "$CC" ; then |
| 2837 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: Failed to find a C compiler!" >&5 |
| 2838 | echoscip-shell system . . echo. "$as_me: error: Failed to find a C compiler!" >&2;} |
| 2839 | { (exit 1); exit 1; }; } |
| 2840 | fi |
| 2841 | # Autoconf incorrectly concludes that cl recognises -g. It doesn't. |
| 2842 | case "$CC" in |
| 2843 | clang* | */clang* ) ;; |
| 2844 | cl* | */cl* | CL* | */CL* ) |
| 2845 | if testscip-shell system . . test. "$ac_cv_prog_cc_g" = yes ; then |
| 2846 | ac_cv_prog_cc_g=no |
| 2847 | { echoscip-shell system . . echo. "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5 |
| 2848 | echoscip-shell system . . echo. "$as_me: Overruling autoconf; cl does not recognise -g." >&6;} |
| 2849 | fi ;; |
| 2850 | * ) |
| 2851 | if testscip-shell system . . test. x"$CYGPATH_W" = x ; then |
| 2852 | CYGPATH_W=echo |
| 2853 | fi |
| 2854 | ;; |
| 2855 | esac |
| 2856 | CFLAGS="$save_cflags" |
| 2857 | |
| 2858 | # add automake conditional so we can recognize cl compiler in makefile |
| 2859 | coin_cc_is_cl=false |
| 2860 | case "$CC" in |
| 2861 | clang* | */clang* ) ;; |
| 2862 | cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) |
| 2863 | coin_cc_is_cl=true |
| 2864 | ;; |
| 2865 | esac |
| 2866 | |
| 2867 | |
| 2868 | if testscip-shell system . . test. $coin_cc_is_cl = true; then |
| 2869 | COIN_CC_IS_CL_TRUE= |
| 2870 | COIN_CC_IS_CL_FALSE='#' |
| 2871 | else |
| 2872 | COIN_CC_IS_CL_TRUE='#' |
| 2873 | COIN_CC_IS_CL_FALSE= |
| 2874 | fi |
| 2875 | |
| 2876 | |
| 2877 | # Check if a project specific CFLAGS variable has been set |
| 2878 | if testscip-shell system . . test. x$COIN_PRJCT != x; then |
| 2879 | eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set} |
| 2880 | if testscip-shell system . . test. x$coin_tmp = xset; then |
| 2881 | eval CFLAGS=\${${COIN_PRJCT}_CFLAGS} |
| 2882 | fi |
| 2883 | fi |
| 2884 | |
| 2885 | if testscip-shell system . . test. x"$CFLAGS" = x; then |
| 2886 | |
| 2887 | coin_add_cflags= |
| 2888 | coin_opt_cflags= |
| 2889 | coin_dbg_cflags= |
| 2890 | coin_warn_cflags= |
| 2891 | |
| 2892 | if testscip-shell system . . test. "$GCC" = "yes"; then |
| 2893 | case "$CC" in |
| 2894 | icc* | */icc*) |
| 2895 | ;; |
| 2896 | *) |
| 2897 | coin_opt_cflags="-O3" |
| 2898 | coin_add_cflags="-pipe" |
| 2899 | coin_dbg_cflags="-g -O0" |
| 2900 | coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long" |
| 2901 | esac |
| 2902 | fi |
| 2903 | if testscip-shell system . . test. -z "$coin_opt_cflags"; then |
| 2904 | case $build in |
| 2905 | *-cygwin* | *-mingw*) |
| 2906 | case "$CC" in |
| 2907 | clang* | */clang* ) ;; |
| 2908 | cl* | */cl* | CL* | */CL*) |
| 2909 | if testscip-shell system . . test. "$coin_disable_shared" = yes || testscip-shell system . . test. "$enable_shared" = yes ; then |
| 2910 | coin_opt_cflags='-MD -O2' |
| 2911 | coin_dbg_cflags='-MDd' |
| 2912 | else |
| 2913 | coin_opt_cflags='-MT -O2' |
| 2914 | coin_dbg_cflags='-MTd' |
| 2915 | fi |
| 2916 | coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE' |
| 2917 | ;; |
| 2918 | icl* | */icl* | ICL* | */ICL*) |
| 2919 | if testscip-shell system . . test. "$coin_disable_shared" = yes || testscip-shell system . . test. "$enable_shared" = yes ; then |
| 2920 | coin_opt_cflags='-MD -Ox' |
| 2921 | coin_dbg_cflags='-MDd -debug' |
| 2922 | else |
| 2923 | coin_opt_cflags='-MT -Ox' |
| 2924 | coin_dbg_cflags='-MTd -debug' |
| 2925 | fi |
| 2926 | coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE' |
| 2927 | ;; |
| 2928 | esac |
| 2929 | ;; |
| 2930 | *-linux-*) |
| 2931 | case "$CC" in |
| 2932 | icc* | */icc*) |
| 2933 | coin_opt_cflags="-O3 -ip -mp1" |
| 2934 | coin_add_cflags="" |
| 2935 | coin_dbg_cflags="-g" |
| 2936 | # Check if -i_dynamic is necessary (for new glibc library) |
| 2937 | CFLAGS= |
| 2938 | catscip-shell system . . cat. >conftest.$ac_ext <<_ACEOF |
| 2939 | /* confdefs.h. */ |
| 2940 | _ACEOF |
| 2941 | catscip-shell system . . cat. confdefs.h >>conftest.$ac_ext |
| 2942 | catscip-shell system . . cat. >>conftest.$ac_ext <<_ACEOF |
| 2943 | /* end confdefs.h. */ |
| 2944 | |
| 2945 | int |
| 2946 | main () |
| 2947 | { |
| 2948 | int i=0; i++; |
| 2949 | ; |
| 2950 | return 0; |
| 2951 | } |
| 2952 | _ACEOF |
| 2953 | rmscip-shell system . . rm. -f conftest.$ac_objext conftest$ac_exeext |
| 2954 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2955 | (eval $ac_link) 2>conftest.er1 |
| 2956 | ac_status=$? |
| 2957 | grepscip-shell system . . grep. -v '^ *+' conftest.er1 >conftest.err |
| 2958 | rmscip-shell system . . rm. -f conftest.er1 |
| 2959 | catscip-shell system . . cat. conftest.err >&5 |
| 2960 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2961 | (exit $ac_status); } && |
| 2962 | { ac_try='test -z "$ac_c_werror_flag" |
| 2963 | || test ! -s conftest.err' |
| 2964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2965 | (eval $ac_try) 2>&5 |
| 2966 | ac_status=$? |
| 2967 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2968 | (exit $ac_status); }; } && |
| 2969 | { ac_try='test -s conftest$ac_exeext' |
| 2970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2971 | (eval $ac_try) 2>&5 |
| 2972 | ac_status=$? |
| 2973 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2974 | (exit $ac_status); }; }; then |
| 2975 | : |
| 2976 | else |
| 2977 | echoscip-shell system . . echo. "$as_me: failed program was:" >&5 |
| 2978 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 2979 | |
| 2980 | coin_add_cflags="-i_dynamic $coin_add_cflags" |
| 2981 | fi |
| 2982 | rmscip-shell system . . rm. -f conftest.err conftest.$ac_objext \ |
| 2983 | conftest$ac_exeext conftest.$ac_ext |
| 2984 | ;; |
| 2985 | pgcc* | */pgcc*) |
| 2986 | coin_opt_cflags="-fast" |
| 2987 | coin_add_cflags="-Kieee -pc 64" |
| 2988 | coin_dbg_cflags="-g" |
| 2989 | ;; |
| 2990 | esac |
| 2991 | ;; |
| 2992 | *-ibm-*) |
| 2993 | case "$CC" in |
| 2994 | xlc* | */xlc* | mpxlc* | */mpxlc*) |
| 2995 | coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1" |
| 2996 | coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029" |
| 2997 | coin_dbg_cflags="-g" |
| 2998 | ;; |
| 2999 | esac |
| 3000 | ;; |
| 3001 | *-hp-*) |
| 3002 | coin_opt_cflags="-O" |
| 3003 | coin_add_cflags="-Ae" |
| 3004 | coin_dbg_cflags="-g" |
| 3005 | ;; |
| 3006 | *-*-solaris*) |
| 3007 | coin_opt_cflags="-xO4" |
| 3008 | coin_dbg_cflags="-g" |
| 3009 | ;; |
| 3010 | *-sgi-*) |
| 3011 | coin_opt_cflags="-O -OPT:Olimit=0" |
| 3012 | coin_dbg_cflags="-g" |
| 3013 | ;; |
| 3014 | esac |
| 3015 | fi |
| 3016 | |
| 3017 | if testscip-shell system . . test. "$ac_cv_prog_cc_g" = yes && testscip-shell system . . test. -z "$coin_dbg_cflags" ; then |
| 3018 | coin_dbg_cflags="-g" |
| 3019 | fi |
| 3020 | |
| 3021 | if testscip-shell system . . test. -z "$coin_opt_cflags"; then |
| 3022 | # Try if -O option works if nothing else is set |
| 3023 | CFLAGS="-O" |
| 3024 | catscip-shell system . . cat. >conftest.$ac_ext <<_ACEOF |
| 3025 | /* confdefs.h. */ |
| 3026 | _ACEOF |
| 3027 | catscip-shell system . . cat. confdefs.h >>conftest.$ac_ext |
| 3028 | catscip-shell system . . cat. >>conftest.$ac_ext <<_ACEOF |
| 3029 | /* end confdefs.h. */ |
| 3030 | |
| 3031 | int |
| 3032 | main () |
| 3033 | { |
| 3034 | int i=0; i++; |
| 3035 | ; |
| 3036 | return 0; |
| 3037 | } |
| 3038 | _ACEOF |
| 3039 | rmscip-shell system . . rm. -f conftest.$ac_objext conftest$ac_exeext |
| 3040 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3041 | (eval $ac_link) 2>conftest.er1 |
| 3042 | ac_status=$? |
| 3043 | grepscip-shell system . . grep. -v '^ *+' conftest.er1 >conftest.err |
| 3044 | rmscip-shell system . . rm. -f conftest.er1 |
| 3045 | catscip-shell system . . cat. conftest.err >&5 |
| 3046 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3047 | (exit $ac_status); } && |
| 3048 | { ac_try='test -z "$ac_c_werror_flag" |
| 3049 | || test ! -s conftest.err' |
| 3050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3051 | (eval $ac_try) 2>&5 |
| 3052 | ac_status=$? |
| 3053 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3054 | (exit $ac_status); }; } && |
| 3055 | { ac_try='test -s conftest$ac_exeext' |
| 3056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3057 | (eval $ac_try) 2>&5 |
| 3058 | ac_status=$? |
| 3059 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3060 | (exit $ac_status); }; }; then |
| 3061 | coin_opt_cflags="-O" |
| 3062 | else |
| 3063 | echoscip-shell system . . echo. "$as_me: failed program was:" >&5 |
| 3064 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 3065 | |
| 3066 | fi |
| 3067 | rmscip-shell system . . rm. -f conftest.err conftest.$ac_objext \ |
| 3068 | conftest$ac_exeext conftest.$ac_ext |
| 3069 | fi |
| 3070 | |
| 3071 | # if PM doesn't want the warning messages, take them out |
| 3072 | if testscip-shell system . . test. x"$coin_skip_warn_cflags" = xyes; then |
| 3073 | coin_warn_cflags= |
| 3074 | fi |
| 3075 | |
| 3076 | if testscip-shell system . . test. x${DBG_CFLAGS+set} != xset; then |
| 3077 | DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags" |
| 3078 | fi |
| 3079 | if testscip-shell system . . test. x${OPT_CFLAGS+set} != xset; then |
| 3080 | OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags" |
| 3081 | fi |
| 3082 | |
| 3083 | DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS" |
| 3084 | OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS" |
| 3085 | |
| 3086 | if testscip-shell system . . test. "$coin_debug_compile" = "true"; then |
| 3087 | CFLAGS="$DBG_CFLAGS" |
| 3088 | else |
| 3089 | CFLAGS="$OPT_CFLAGS" |
| 3090 | fi |
| 3091 | else |
| 3092 | CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS" |
| 3093 | if testscip-shell system . . test. x${DBG_CFLAGS+set} != xset; then |
| 3094 | DBG_CFLAGS="$CFLAGS" |
| 3095 | fi |
| 3096 | if testscip-shell system . . test. x${OPT_CFLAGS+set} != xset; then |
| 3097 | OPT_CFLAGS="$CFLAGS" |
| 3098 | fi |
| 3099 | fi |
| 3100 | |
| 3101 | # add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include |
| 3102 | if testscip-shell system . . test. x$COIN_PRJCT != x; then |
| 3103 | CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD" |
| 3104 | fi |
| 3105 | |
| 3106 | # Try if CFLAGS works |
| 3107 | save_CFLAGS="$CFLAGS" |
| 3108 | catscip-shell system . . cat. >conftest.$ac_ext <<_ACEOF |
| 3109 | /* confdefs.h. */ |
| 3110 | _ACEOF |
| 3111 | catscip-shell system . . cat. confdefs.h >>conftest.$ac_ext |
| 3112 | catscip-shell system . . cat. >>conftest.$ac_ext <<_ACEOF |
| 3113 | /* end confdefs.h. */ |
| 3114 | |
| 3115 | int |
| 3116 | main () |
| 3117 | { |
| 3118 | int i=0; i++; |
| 3119 | ; |
| 3120 | return 0; |
| 3121 | } |
| 3122 | _ACEOF |
| 3123 | rmscip-shell system . . rm. -f conftest.$ac_objext conftest$ac_exeext |
| 3124 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3125 | (eval $ac_link) 2>conftest.er1 |
| 3126 | ac_status=$? |
| 3127 | grepscip-shell system . . grep. -v '^ *+' conftest.er1 >conftest.err |
| 3128 | rmscip-shell system . . rm. -f conftest.er1 |
| 3129 | catscip-shell system . . cat. conftest.err >&5 |
| 3130 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3131 | (exit $ac_status); } && |
| 3132 | { ac_try='test -z "$ac_c_werror_flag" |
| 3133 | || test ! -s conftest.err' |
| 3134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3135 | (eval $ac_try) 2>&5 |
| 3136 | ac_status=$? |
| 3137 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3138 | (exit $ac_status); }; } && |
| 3139 | { ac_try='test -s conftest$ac_exeext' |
| 3140 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3141 | (eval $ac_try) 2>&5 |
| 3142 | ac_status=$? |
| 3143 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3144 | (exit $ac_status); }; }; then |
| 3145 | : |
| 3146 | else |
| 3147 | echoscip-shell system . . echo. "$as_me: failed program was:" >&5 |
| 3148 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 3149 | |
| 3150 | CFLAGS= |
| 3151 | fi |
| 3152 | rmscip-shell system . . rm. -f conftest.err conftest.$ac_objext \ |
| 3153 | conftest$ac_exeext conftest.$ac_ext |
| 3154 | if testscip-shell system . . test. -z "$CFLAGS"; then |
| 3155 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: The value CFLAGS=\"$save_CFLAGS\" do not work. I will now just try '-O', but you might want to set CFLAGS manually." >&5 |
| 3156 | echoscip-shell system . . echo. "$as_me: WARNING: The value CFLAGS=\"$save_CFLAGS\" do not work. I will now just try '-O', but you might want to set CFLAGS manually." >&2;} |
| 3157 | CFLAGS='-O' |
| 3158 | catscip-shell system . . cat. >conftest.$ac_ext <<_ACEOF |
| 3159 | /* confdefs.h. */ |
| 3160 | _ACEOF |
| 3161 | catscip-shell system . . cat. confdefs.h >>conftest.$ac_ext |
| 3162 | catscip-shell system . . cat. >>conftest.$ac_ext <<_ACEOF |
| 3163 | /* end confdefs.h. */ |
| 3164 | |
| 3165 | int |
| 3166 | main () |
| 3167 | { |
| 3168 | int i=0; i++; |
| 3169 | ; |
| 3170 | return 0; |
| 3171 | } |
| 3172 | _ACEOF |
| 3173 | rmscip-shell system . . rm. -f conftest.$ac_objext conftest$ac_exeext |
| 3174 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3175 | (eval $ac_link) 2>conftest.er1 |
| 3176 | ac_status=$? |
| 3177 | grepscip-shell system . . grep. -v '^ *+' conftest.er1 >conftest.err |
| 3178 | rmscip-shell system . . rm. -f conftest.er1 |
| 3179 | catscip-shell system . . cat. conftest.err >&5 |
| 3180 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3181 | (exit $ac_status); } && |
| 3182 | { ac_try='test -z "$ac_c_werror_flag" |
| 3183 | || test ! -s conftest.err' |
| 3184 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3185 | (eval $ac_try) 2>&5 |
| 3186 | ac_status=$? |
| 3187 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3188 | (exit $ac_status); }; } && |
| 3189 | { ac_try='test -s conftest$ac_exeext' |
| 3190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3191 | (eval $ac_try) 2>&5 |
| 3192 | ac_status=$? |
| 3193 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3194 | (exit $ac_status); }; }; then |
| 3195 | : |
| 3196 | else |
| 3197 | echoscip-shell system . . echo. "$as_me: failed program was:" >&5 |
| 3198 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 3199 | |
| 3200 | CFLAGS= |
| 3201 | fi |
| 3202 | rmscip-shell system . . rm. -f conftest.err conftest.$ac_objext \ |
| 3203 | conftest$ac_exeext conftest.$ac_ext |
| 3204 | if testscip-shell system . . test. -z "$CFLAGS"; then |
| 3205 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: This value for CFLAGS does not work. I will continue with empty CFLAGS, but you might want to set CFLAGS manually." >&5 |
| 3206 | echoscip-shell system . . echo. "$as_me: WARNING: This value for CFLAGS does not work. I will continue with empty CFLAGS, but you might want to set CFLAGS manually." >&2;} |
| 3207 | fi |
| 3208 | fi |
| 3209 | |
| 3210 | { echoscip-shell system . . echo. "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5 |
| 3211 | echoscip-shell system . . echo. "$as_me: C compiler options are: $CFLAGS" >&6;} |
| 3212 | |
| 3213 | |
| 3214 | if testscip-shell system . . test. x"$MPICC" = x; then :; else |
| 3215 | { echoscip-shell system . . echo. "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5 |
| 3216 | echoscip-shell system . . echo. "$as_me: Will use MPI C compiler $MPICC" >&6;} |
| 3217 | CC="$MPICC" |
| 3218 | fi |
| 3219 | |
| 3220 | # Correct the LD variable if we are using the MS or Intel-windows compiler |
| 3221 | case "$CC" in |
| 3222 | clang* | */clang* ) ;; |
| 3223 | cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) |
| 3224 | LD=link |
| 3225 | ;; |
| 3226 | esac |
| 3227 | |
| 3228 | ac_ext=c |
| 3229 | ac_cpp='$CPP $CPPFLAGS' |
| 3230 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3231 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3232 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3233 | |
| 3234 | |
| 3235 | |
| 3236 | #Let's try if that overcomes configuration problem with VC++ 6.0 |
| 3237 | |
| 3238 | ac_ext=cc |
| 3239 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 3240 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3241 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3242 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 3243 | |
| 3244 | |
| 3245 | |
| 3246 | |
| 3247 | |
| 3248 | |
| 3249 | |
| 3250 | coin_has_cxx=yes |
| 3251 | |
| 3252 | save_cxxflags="$CXXFLAGS" |
| 3253 | # For *-*-solaris*, promote Studio/Workshop compiler to front of list. |
| 3254 | case $build in |
| 3255 | *-cygwin* | *-mingw*) |
| 3256 | if testscip-shell system . . test. "$enable_msvc" = yes ; then |
| 3257 | comps="icl cl g++" |
| 3258 | else |
| 3259 | comps="g++ icl cl" |
| 3260 | fi ;; |
| 3261 | *-*-solaris*) |
| 3262 | comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;; |
| 3263 | *-darwin*) comps="clang++ g++ c++ CC" ;; |
| 3264 | *-linux-gnu*) |
| 3265 | comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;; |
| 3266 | *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;; |
| 3267 | esac |
| 3268 | |
| 3269 | # We delete the cached value, since the test might not have been |
| 3270 | # performed with our choice of compilers earlier |
| 3271 | $as_unset ac_cv_prog_CXX || testscip-shell system . . test. "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; } |
| 3272 | # AC_MSG_NOTICE([C++ compiler candidates: $comps]) |
| 3273 | ac_ext=cc |
| 3274 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 3275 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3276 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3277 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 3278 | if testscip-shell system . . test. -n "$ac_tool_prefix"; then |
| 3279 | for ac_prog in $CCC $comps |
| 3280 | do |
| 3281 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3282 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 3283 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3284 | echoscip-shell system . . echo. $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3285 | if testscip-shell system . . test. "${ac_cv_prog_CXX+set}" = set; then |
| 3286 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 3287 | else |
| 3288 | if testscip-shell system . . test. -n "$CXX"; then |
| 3289 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 3290 | else |
| 3291 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3292 | for as_dir in $PATH |
| 3293 | do |
| 3294 | IFS=$as_save_IFS |
| 3295 | testscip-shell system . . test. -z "$as_dir" && as_dir=. |
| 3296 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3297 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3298 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 3299 | echoscip-shell system . . echo. "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3300 | break 2 |
| 3301 | fi |
| 3302 | done |
| 3303 | done |
| 3304 | |
| 3305 | fi |
| 3306 | fi |
| 3307 | CXX=$ac_cv_prog_CXX |
| 3308 | if testscip-shell system . . test. -n "$CXX"; then |
| 3309 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $CXX" >&5 |
| 3310 | echoscip-shell system . . echo. "${ECHO_T}$CXX" >&6 |
| 3311 | else |
| 3312 | echoscip-shell system . . echo. "$as_me:$LINENO: result: no" >&5 |
| 3313 | echoscip-shell system . . echo. "${ECHO_T}no" >&6 |
| 3314 | fi |
| 3315 | |
| 3316 | testscip-shell system . . test. -n "$CXX" && break |
| 3317 | done |
| 3318 | fi |
| 3319 | if testscip-shell system . . test. -z "$CXX"; then |
| 3320 | ac_ct_CXX=$CXX |
| 3321 | for ac_prog in $CCC $comps |
| 3322 | do |
| 3323 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3324 | set dummy $ac_prog; ac_word=$2 |
| 3325 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3326 | echoscip-shell system . . echo. $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3327 | if testscip-shell system . . test. "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 3328 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 3329 | else |
| 3330 | if testscip-shell system . . test. -n "$ac_ct_CXX"; then |
| 3331 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 3332 | else |
| 3333 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3334 | for as_dir in $PATH |
| 3335 | do |
| 3336 | IFS=$as_save_IFS |
| 3337 | testscip-shell system . . test. -z "$as_dir" && as_dir=. |
| 3338 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3339 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3340 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 3341 | echoscip-shell system . . echo. "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3342 | break 2 |
| 3343 | fi |
| 3344 | done |
| 3345 | done |
| 3346 | |
| 3347 | fi |
| 3348 | fi |
| 3349 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 3350 | if testscip-shell system . . test. -n "$ac_ct_CXX"; then |
| 3351 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 3352 | echoscip-shell system . . echo. "${ECHO_T}$ac_ct_CXX" >&6 |
| 3353 | else |
| 3354 | echoscip-shell system . . echo. "$as_me:$LINENO: result: no" >&5 |
| 3355 | echoscip-shell system . . echo. "${ECHO_T}no" >&6 |
| 3356 | fi |
| 3357 | |
| 3358 | testscip-shell system . . test. -n "$ac_ct_CXX" && break |
| 3359 | done |
| 3360 | testscip-shell system . . test. -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
| 3361 | |
| 3362 | CXX=$ac_ct_CXX |
| 3363 | fi |
| 3364 | |
| 3365 | |
| 3366 | # Provide some information about the compiler. |
| 3367 | echoscip-shell system . . echo. "$as_me:$LINENO:" \ |
| 3368 | "checking for C++ compiler version" >&5 |
| 3369 | ac_compiler=`set X $ac_compile; echoscip-shell system . . echo. $2` |
| 3370 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 3371 | (eval $ac_compiler --version </dev/nullscip-shell filesystem . . `/dev/null`. >&5) 2>&5 |
| 3372 | ac_status=$? |
| 3373 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3374 | (exit $ac_status); } |
| 3375 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 3376 | (eval $ac_compiler -v </dev/nullscip-shell filesystem . . `/dev/null`. >&5) 2>&5 |
| 3377 | ac_status=$? |
| 3378 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3379 | (exit $ac_status); } |
| 3380 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 3381 | (eval $ac_compiler -V </dev/nullscip-shell filesystem . . `/dev/null`. >&5) 2>&5 |
| 3382 | ac_status=$? |
| 3383 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3384 | (exit $ac_status); } |
| 3385 | |
| 3386 | echoscip-shell system . . echo. "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 3387 | echoscip-shell system . . echo. $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
| 3388 | if testscip-shell system . . test. "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 3389 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 3390 | else |
| 3391 | catscip-shell system . . cat. >conftest.$ac_ext <<_ACEOF |
| 3392 | /* confdefs.h. */ |
| 3393 | _ACEOF |
| 3394 | catscip-shell system . . cat. confdefs.h >>conftest.$ac_ext |
| 3395 | catscip-shell system . . cat. >>conftest.$ac_ext <<_ACEOF |
| 3396 | /* end confdefs.h. */ |
| 3397 | |
| 3398 | int |
| 3399 | main () |
| 3400 | { |
| 3401 | #ifndef __GNUC__ |
| 3402 | choke me |
| 3403 | #endif |
| 3404 | |
| 3405 | ; |
| 3406 | return 0; |
| 3407 | } |
| 3408 | _ACEOF |
| 3409 | rmscip-shell system . . rm. -f conftest.$ac_objext |
| 3410 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3411 | (eval $ac_compile) 2>conftest.er1 |
| 3412 | ac_status=$? |
| 3413 | grepscip-shell system . . grep. -v '^ *+' conftest.er1 >conftest.err |
| 3414 | rmscip-shell system . . rm. -f conftest.er1 |
| 3415 | catscip-shell system . . cat. conftest.err >&5 |
| 3416 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3417 | (exit $ac_status); } && |
| 3418 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 3419 | || test ! -s conftest.err' |
| 3420 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3421 | (eval $ac_try) 2>&5 |
| 3422 | ac_status=$? |
| 3423 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3424 | (exit $ac_status); }; } && |
| 3425 | { ac_try='test -s conftest.$ac_objext' |
| 3426 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3427 | (eval $ac_try) 2>&5 |
| 3428 | ac_status=$? |
| 3429 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3430 | (exit $ac_status); }; }; then |
| 3431 | ac_compiler_gnu=yes |
| 3432 | else |
| 3433 | echoscip-shell system . . echo. "$as_me: failed program was:" >&5 |
| 3434 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 3435 | |
| 3436 | ac_compiler_gnu=no |
| 3437 | fi |
| 3438 | rmscip-shell system . . rm. -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3439 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 3440 | |
| 3441 | fi |
| 3442 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 3443 | echoscip-shell system . . echo. "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
| 3444 | GXX=`testscip-shell system . . test. $ac_compiler_gnu = yes && echoscip-shell system . . echo. yes` |
| 3445 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 3446 | ac_save_CXXFLAGS=$CXXFLAGS |
| 3447 | CXXFLAGS="-g" |
| 3448 | echoscip-shell system . . echo. "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 3449 | echoscip-shell system . . echo. $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
| 3450 | if testscip-shell system . . test. "${ac_cv_prog_cxx_g+set}" = set; then |
| 3451 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 3452 | else |
| 3453 | catscip-shell system . . cat. >conftest.$ac_ext <<_ACEOF |
| 3454 | /* confdefs.h. */ |
| 3455 | _ACEOF |
| 3456 | catscip-shell system . . cat. confdefs.h >>conftest.$ac_ext |
| 3457 | catscip-shell system . . cat. >>conftest.$ac_ext <<_ACEOF |
| 3458 | /* end confdefs.h. */ |
| 3459 | |
| 3460 | int |
| 3461 | main () |
| 3462 | { |
| 3463 | |
| 3464 | ; |
| 3465 | return 0; |
| 3466 | } |
| 3467 | _ACEOF |
| 3468 | rmscip-shell system . . rm. -f conftest.$ac_objext |
| 3469 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3470 | (eval $ac_compile) 2>conftest.er1 |
| 3471 | ac_status=$? |
| 3472 | grepscip-shell system . . grep. -v '^ *+' conftest.er1 >conftest.err |
| 3473 | rmscip-shell system . . rm. -f conftest.er1 |
| 3474 | catscip-shell system . . cat. conftest.err >&5 |
| 3475 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3476 | (exit $ac_status); } && |
| 3477 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 3478 | || test ! -s conftest.err' |
| 3479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3480 | (eval $ac_try) 2>&5 |
| 3481 | ac_status=$? |
| 3482 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3483 | (exit $ac_status); }; } && |
| 3484 | { ac_try='test -s conftest.$ac_objext' |
| 3485 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3486 | (eval $ac_try) 2>&5 |
| 3487 | ac_status=$? |
| 3488 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3489 | (exit $ac_status); }; }; then |
| 3490 | ac_cv_prog_cxx_g=yes |
| 3491 | else |
| 3492 | echoscip-shell system . . echo. "$as_me: failed program was:" >&5 |
| 3493 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 3494 | |
| 3495 | ac_cv_prog_cxx_g=no |
| 3496 | fi |
| 3497 | rmscip-shell system . . rm. -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3498 | fi |
| 3499 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 3500 | echoscip-shell system . . echo. "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
| 3501 | if testscip-shell system . . test. "$ac_test_CXXFLAGS" = set; then |
| 3502 | CXXFLAGS=$ac_save_CXXFLAGS |
| 3503 | elif testscip-shell system . . test. $ac_cv_prog_cxx_g = yes; then |
| 3504 | if testscip-shell system . . test. "$GXX" = yes; then |
| 3505 | CXXFLAGS="-g -O2" |
| 3506 | else |
| 3507 | CXXFLAGS="-g" |
| 3508 | fi |
| 3509 | else |
| 3510 | if testscip-shell system . . test. "$GXX" = yes; then |
| 3511 | CXXFLAGS="-O2" |
| 3512 | else |
| 3513 | CXXFLAGS= |
| 3514 | fi |
| 3515 | fi |
| 3516 | for ac_declaration in \ |
| 3517 | '' \ |
| 3518 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 3519 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 3520 | 'extern "C" void exit (int) throw ();' \ |
| 3521 | 'extern "C" void exit (int);' \ |
| 3522 | 'void exit (int);' |
| 3523 | do |
| 3524 | catscip-shell system . . cat. >conftest.$ac_ext <<_ACEOF |
| 3525 | /* confdefs.h. */ |
| 3526 | _ACEOF |
| 3527 | catscip-shell system . . cat. confdefs.h >>conftest.$ac_ext |
| 3528 | catscip-shell system . . cat. >>conftest.$ac_ext <<_ACEOF |
| 3529 | /* end confdefs.h. */ |
| 3530 | $ac_declaration |
| 3531 | #include <stdlib.h> |
| 3532 | int |
| 3533 | main () |
| 3534 | { |
| 3535 | exit (42); |
| 3536 | ; |
| 3537 | return 0; |
| 3538 | } |
| 3539 | _ACEOF |
| 3540 | rmscip-shell system . . rm. -f conftest.$ac_objext |
| 3541 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3542 | (eval $ac_compile) 2>conftest.er1 |
| 3543 | ac_status=$? |
| 3544 | grepscip-shell system . . grep. -v '^ *+' conftest.er1 >conftest.err |
| 3545 | rmscip-shell system . . rm. -f conftest.er1 |
| 3546 | catscip-shell system . . cat. conftest.err >&5 |
| 3547 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3548 | (exit $ac_status); } && |
| 3549 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 3550 | || test ! -s conftest.err' |
| 3551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3552 | (eval $ac_try) 2>&5 |
| 3553 | ac_status=$? |
| 3554 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3555 | (exit $ac_status); }; } && |
| 3556 | { ac_try='test -s conftest.$ac_objext' |
| 3557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3558 | (eval $ac_try) 2>&5 |
| 3559 | ac_status=$? |
| 3560 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3561 | (exit $ac_status); }; }; then |
| 3562 | : |
| 3563 | else |
| 3564 | echoscip-shell system . . echo. "$as_me: failed program was:" >&5 |
| 3565 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 3566 | |
| 3567 | continue |
| 3568 | fi |
| 3569 | rmscip-shell system . . rm. -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3570 | catscip-shell system . . cat. >conftest.$ac_ext <<_ACEOF |
| 3571 | /* confdefs.h. */ |
| 3572 | _ACEOF |
| 3573 | catscip-shell system . . cat. confdefs.h >>conftest.$ac_ext |
| 3574 | catscip-shell system . . cat. >>conftest.$ac_ext <<_ACEOF |
| 3575 | /* end confdefs.h. */ |
| 3576 | $ac_declaration |
| 3577 | int |
| 3578 | main () |
| 3579 | { |
| 3580 | exit (42); |
| 3581 | ; |
| 3582 | return 0; |
| 3583 | } |
| 3584 | _ACEOF |
| 3585 | rmscip-shell system . . rm. -f conftest.$ac_objext |
| 3586 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3587 | (eval $ac_compile) 2>conftest.er1 |
| 3588 | ac_status=$? |
| 3589 | grepscip-shell system . . grep. -v '^ *+' conftest.er1 >conftest.err |
| 3590 | rmscip-shell system . . rm. -f conftest.er1 |
| 3591 | catscip-shell system . . cat. conftest.err >&5 |
| 3592 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3593 | (exit $ac_status); } && |
| 3594 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 3595 | || test ! -s conftest.err' |
| 3596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3597 | (eval $ac_try) 2>&5 |
| 3598 | ac_status=$? |
| 3599 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3600 | (exit $ac_status); }; } && |
| 3601 | { ac_try='test -s conftest.$ac_objext' |
| 3602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3603 | (eval $ac_try) 2>&5 |
| 3604 | ac_status=$? |
| 3605 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3606 | (exit $ac_status); }; }; then |
| 3607 | break |
| 3608 | else |
| 3609 | echoscip-shell system . . echo. "$as_me: failed program was:" >&5 |
| 3610 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 3611 | |
| 3612 | fi |
| 3613 | rmscip-shell system . . rm. -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3614 | done |
| 3615 | rmscip-shell system . . rm. -f conftest* |
| 3616 | if testscip-shell system . . test. -n "$ac_declaration"; then |
| 3617 | echoscip-shell system . . echo. '#ifdef __cplusplus' >>confdefs.h |
| 3618 | echoscip-shell system . . echo. $ac_declaration >>confdefs.h |
| 3619 | echoscip-shell system . . echo. '#endif' >>confdefs.h |
| 3620 | fi |
| 3621 | |
| 3622 | ac_ext=cc |
| 3623 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 3624 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3625 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3626 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 3627 | |
| 3628 | |
| 3629 | #AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler |
| 3630 | #thus, we test here whether $CXX is actually working |
| 3631 | ac_ext=cc |
| 3632 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 3633 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3634 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3635 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 3636 | |
| 3637 | echoscip-shell system . . echo. "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5 |
| 3638 | echoscip-shell system . . echo. $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6; |
| 3639 | catscip-shell system . . cat. >conftest.$ac_ext <<_ACEOF |
| 3640 | /* confdefs.h. */ |
| 3641 | _ACEOF |
| 3642 | catscip-shell system . . cat. confdefs.h >>conftest.$ac_ext |
| 3643 | catscip-shell system . . cat. >>conftest.$ac_ext <<_ACEOF |
| 3644 | /* end confdefs.h. */ |
| 3645 | |
| 3646 | int |
| 3647 | main () |
| 3648 | { |
| 3649 | int i=0; |
| 3650 | ; |
| 3651 | return 0; |
| 3652 | } |
| 3653 | _ACEOF |
| 3654 | rmscip-shell system . . rm. -f conftest.$ac_objext |
| 3655 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3656 | (eval $ac_compile) 2>conftest.er1 |
| 3657 | ac_status=$? |
| 3658 | grepscip-shell system . . grep. -v '^ *+' conftest.er1 >conftest.err |
| 3659 | rmscip-shell system . . rm. -f conftest.er1 |
| 3660 | catscip-shell system . . cat. conftest.err >&5 |
| 3661 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3662 | (exit $ac_status); } && |
| 3663 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 3664 | || test ! -s conftest.err' |
| 3665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3666 | (eval $ac_try) 2>&5 |
| 3667 | ac_status=$? |
| 3668 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3669 | (exit $ac_status); }; } && |
| 3670 | { ac_try='test -s conftest.$ac_objext' |
| 3671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3672 | (eval $ac_try) 2>&5 |
| 3673 | ac_status=$? |
| 3674 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3675 | (exit $ac_status); }; }; then |
| 3676 | echoscip-shell system . . echo. "$as_me:$LINENO: result: yes" >&5 |
| 3677 | echoscip-shell system . . echo. "${ECHO_T}yes" >&6 |
| 3678 | else |
| 3679 | echoscip-shell system . . echo. "$as_me: failed program was:" >&5 |
| 3680 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 3681 | |
| 3682 | echoscip-shell system . . echo. "$as_me:$LINENO: result: no" >&5 |
| 3683 | echoscip-shell system . . echo. "${ECHO_T}no" >&6 |
| 3684 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5 |
| 3685 | echoscip-shell system . . echo. "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;} |
| 3686 | { (exit 1); exit 1; }; } |
| 3687 | |
| 3688 | fi |
| 3689 | rmscip-shell system . . rm. -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3690 | ac_ext=cc |
| 3691 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 3692 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3693 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3694 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 3695 | |
| 3696 | |
| 3697 | coin_cxx_is_cl=false |
| 3698 | # It seems that we need to cleanup something here for the Windows |
| 3699 | case "$CXX" in |
| 3700 | clang* | */clang*) ;; |
| 3701 | cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) |
| 3702 | sedscip-shell system . . sed. -e 's/^void exit (int);//' confdefs.h >> confdefs.hh |
| 3703 | mvscip-shell system . . mv. confdefs.hh confdefs.h |
| 3704 | coin_cxx_is_cl=true |
| 3705 | ;; |
| 3706 | esac |
| 3707 | |
| 3708 | # add automake conditional so we can recognize cl compiler in makefile |
| 3709 | |
| 3710 | |
| 3711 | if testscip-shell system . . test. $coin_cxx_is_cl = true; then |
| 3712 | COIN_CXX_IS_CL_TRUE= |
| 3713 | COIN_CXX_IS_CL_FALSE='#' |
| 3714 | else |
| 3715 | COIN_CXX_IS_CL_TRUE='#' |
| 3716 | COIN_CXX_IS_CL_FALSE= |
| 3717 | fi |
| 3718 | |
| 3719 | |
| 3720 | # Autoconf incorrectly concludes that cl recognises -g. It doesn't. |
| 3721 | case "$CXX" in |
| 3722 | clang* | */clang* ) ;; |
| 3723 | cl* | */cl* | CL* | */CL* ) |
| 3724 | if testscip-shell system . . test. "$ac_cv_prog_cxx_g" = yes ; then |
| 3725 | ac_cv_prog_cxx_g=no |
| 3726 | { echoscip-shell system . . echo. "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5 |
| 3727 | echoscip-shell system . . echo. "$as_me: Overruling autoconf; cl does not recognise -g." >&6;} |
| 3728 | fi ;; |
| 3729 | * ) |
| 3730 | if testscip-shell system . . test. x"$CYGPATH_W" = x ; then |
| 3731 | CYGPATH_W=echo |
| 3732 | fi |
| 3733 | ;; |
| 3734 | esac |
| 3735 | CXXFLAGS="$save_cxxflags" |
| 3736 | |
| 3737 | # Check if a project specific CXXFLAGS variable has been set |
| 3738 | if testscip-shell system . . test. x$COIN_PRJCT != x; then |
| 3739 | eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set} |
| 3740 | if testscip-shell system . . test. x$coin_tmp = xset; then |
| 3741 | eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS} |
| 3742 | fi |
| 3743 | fi |
| 3744 | |
| 3745 | if testscip-shell system . . test. x"$CXXFLAGS" = x; then |
| 3746 | |
| 3747 | # ToDo decide whether we want -DNDEBUG for optimization |
| 3748 | coin_add_cxxflags= |
| 3749 | coin_opt_cxxflags= |
| 3750 | coin_dbg_cxxflags= |
| 3751 | coin_warn_cxxflags= |
| 3752 | |
| 3753 | if testscip-shell system . . test. "$GXX" = "yes"; then |
| 3754 | case "$CXX" in |
| 3755 | icpc* | */icpc*) |
| 3756 | ;; |
| 3757 | *) |
| 3758 | # ToDo decide about unroll-loops |
| 3759 | coin_opt_cxxflags="-O3" |
| 3760 | coin_add_cxxflags="-pipe" |
| 3761 | coin_dbg_cxxflags="-g -O0" |
| 3762 | coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long" |
| 3763 | esac |
| 3764 | fi |
| 3765 | |
| 3766 | # Note that we do not need to cover GCC in the following tests. |
| 3767 | |
| 3768 | if testscip-shell system . . test. -z "$coin_opt_cxxflags"; then |
| 3769 | case $build in |
| 3770 | *-cygwin* | *-mingw*) |
| 3771 | case "$CXX" in |
| 3772 | clang* | */clang* ) ;; |
| 3773 | cl* | */cl* | CL* | */CL*) |
| 3774 | # The MT and MTd options are mutually exclusive |
| 3775 | if testscip-shell system . . test. "$coin_disable_shared" = yes || testscip-shell system . . test. "$enable_shared" = yes ; then |
| 3776 | coin_opt_cxxflags='-MD -O2' |
| 3777 | coin_dbg_cxxflags='-MDd' |
| 3778 | else |
| 3779 | coin_opt_cxxflags='-MT -O2' |
| 3780 | coin_dbg_cxxflags='-MTd' |
| 3781 | fi |
| 3782 | coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE' |
| 3783 | ;; |
| 3784 | icl* | */icl* | ICL* | */ICL*) |
| 3785 | # The MT and MTd options are mutually exclusive |
| 3786 | if testscip-shell system . . test. "$coin_disable_shared" = yes || testscip-shell system . . test. "$enable_shared" = yes ; then |
| 3787 | coin_opt_cxxflags='-MD -Ox' |
| 3788 | coin_dbg_cxxflags='-MDd -debug' |
| 3789 | else |
| 3790 | coin_opt_cxxflags='-MT -Ox' |
| 3791 | coin_dbg_cxxflags='-MTd -debug' |
| 3792 | fi |
| 3793 | coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE' |
| 3794 | ;; |
| 3795 | esac |
| 3796 | ;; |
| 3797 | *-linux-*) |
| 3798 | case "$CXX" in |
| 3799 | icpc* | */icpc*) |
| 3800 | coin_opt_cxxflags="-O3 -ip -mp1" |
| 3801 | coin_add_cxxflags="" |
| 3802 | coin_dbg_cxxflags="-g" |
| 3803 | # Check if -i_dynamic is necessary (for new glibc library) |
| 3804 | CXXFLAGS= |
| 3805 | catscip-shell system . . cat. >conftest.$ac_ext <<_ACEOF |
| 3806 | /* confdefs.h. */ |
| 3807 | _ACEOF |
| 3808 | catscip-shell system . . cat. confdefs.h >>conftest.$ac_ext |
| 3809 | catscip-shell system . . cat. >>conftest.$ac_ext <<_ACEOF |
| 3810 | /* end confdefs.h. */ |
| 3811 | |
| 3812 | int |
| 3813 | main () |
| 3814 | { |
| 3815 | int i=0; i++; |
| 3816 | ; |
| 3817 | return 0; |
| 3818 | } |
| 3819 | _ACEOF |
| 3820 | rmscip-shell system . . rm. -f conftest.$ac_objext conftest$ac_exeext |
| 3821 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3822 | (eval $ac_link) 2>conftest.er1 |
| 3823 | ac_status=$? |
| 3824 | grepscip-shell system . . grep. -v '^ *+' conftest.er1 >conftest.err |
| 3825 | rmscip-shell system . . rm. -f conftest.er1 |
| 3826 | catscip-shell system . . cat. conftest.err >&5 |
| 3827 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3828 | (exit $ac_status); } && |
| 3829 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 3830 | || test ! -s conftest.err' |
| 3831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3832 | (eval $ac_try) 2>&5 |
| 3833 | ac_status=$? |
| 3834 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3835 | (exit $ac_status); }; } && |
| 3836 | { ac_try='test -s conftest$ac_exeext' |
| 3837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3838 | (eval $ac_try) 2>&5 |
| 3839 | ac_status=$? |
| 3840 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3841 | (exit $ac_status); }; }; then |
| 3842 | : |
| 3843 | else |
| 3844 | echoscip-shell system . . echo. "$as_me: failed program was:" >&5 |
| 3845 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 3846 | |
| 3847 | coin_add_cxxflags="-i_dynamic $coin_add_cxxflags" |
| 3848 | fi |
| 3849 | rmscip-shell system . . rm. -f conftest.err conftest.$ac_objext \ |
| 3850 | conftest$ac_exeext conftest.$ac_ext |
| 3851 | ;; |
| 3852 | pgCC* | */pgCC*) |
| 3853 | coin_opt_cxxflags="-fast" |
| 3854 | coin_add_cxxflags="-Kieee -pc 64" |
| 3855 | coin_dbg_cxxflags="-g" |
| 3856 | ;; |
| 3857 | esac |
| 3858 | ;; |
| 3859 | *-ibm-*) |
| 3860 | case "$CXX" in |
| 3861 | xlC* | */xlC* | mpxlC* | */mpxlC*) |
| 3862 | coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1" |
| 3863 | coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++" |
| 3864 | coin_dbg_cxxflags="-g" |
| 3865 | ;; |
| 3866 | esac |
| 3867 | ;; |
| 3868 | *-hp-*) |
| 3869 | case "$CXX" in |
| 3870 | aCC* | */aCC* ) |
| 3871 | coin_opt_cxxflags="-O" |
| 3872 | coin_add_cxxflags="-AA" |
| 3873 | coin_dbg_cxxflags="-g" |
| 3874 | ;; |
| 3875 | esac |
| 3876 | ;; |
| 3877 | *-*-solaris*) |
| 3878 | coin_opt_cxxflags="-O4" |
| 3879 | coin_dbg_cxxflags="-g" |
| 3880 | ;; |
| 3881 | esac |
| 3882 | fi |
| 3883 | |
| 3884 | # Generic flag settings. If these don't work, add a case above. |
| 3885 | |
| 3886 | if testscip-shell system . . test. "$ac_cv_prog_cxx_g" = yes && testscip-shell system . . test. -z "$coin_dbg_cxxflags" ; then |
| 3887 | coin_dbg_cxxflags="-g" |
| 3888 | fi |
| 3889 | |
| 3890 | if testscip-shell system . . test. -z "$coin_opt_cxxflags"; then |
| 3891 | # Try if -O option works if nothing else is set |
| 3892 | CXXFLAGS=-O |
| 3893 | catscip-shell system . . cat. >conftest.$ac_ext <<_ACEOF |
| 3894 | /* confdefs.h. */ |
| 3895 | _ACEOF |
| 3896 | catscip-shell system . . cat. confdefs.h >>conftest.$ac_ext |
| 3897 | catscip-shell system . . cat. >>conftest.$ac_ext <<_ACEOF |
| 3898 | /* end confdefs.h. */ |
| 3899 | |
| 3900 | int |
| 3901 | main () |
| 3902 | { |
| 3903 | int i=0; i++; |
| 3904 | ; |
| 3905 | return 0; |
| 3906 | } |
| 3907 | _ACEOF |
| 3908 | rmscip-shell system . . rm. -f conftest.$ac_objext conftest$ac_exeext |
| 3909 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3910 | (eval $ac_link) 2>conftest.er1 |
| 3911 | ac_status=$? |
| 3912 | grepscip-shell system . . grep. -v '^ *+' conftest.er1 >conftest.err |
| 3913 | rmscip-shell system . . rm. -f conftest.er1 |
| 3914 | catscip-shell system . . cat. conftest.err >&5 |
| 3915 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3916 | (exit $ac_status); } && |
| 3917 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 3918 | || test ! -s conftest.err' |
| 3919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3920 | (eval $ac_try) 2>&5 |
| 3921 | ac_status=$? |
| 3922 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3923 | (exit $ac_status); }; } && |
| 3924 | { ac_try='test -s conftest$ac_exeext' |
| 3925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3926 | (eval $ac_try) 2>&5 |
| 3927 | ac_status=$? |
| 3928 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3929 | (exit $ac_status); }; }; then |
| 3930 | coin_opt_cxxflags="-O" |
| 3931 | else |
| 3932 | echoscip-shell system . . echo. "$as_me: failed program was:" >&5 |
| 3933 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 3934 | |
| 3935 | fi |
| 3936 | rmscip-shell system . . rm. -f conftest.err conftest.$ac_objext \ |
| 3937 | conftest$ac_exeext conftest.$ac_ext |
| 3938 | fi |
| 3939 | |
| 3940 | # if PM doesn't want the warning messages, take them out |
| 3941 | if testscip-shell system . . test. x"$coin_skip_warn_cxxflags" = xyes; then |
| 3942 | coin_warn_cxxflags= |
| 3943 | fi |
| 3944 | |
| 3945 | # Do final setup of flags based on values determined above. |
| 3946 | |
| 3947 | if testscip-shell system . . test. x${DBG_CXXFLAGS+set} != xset; then |
| 3948 | DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags" |
| 3949 | fi |
| 3950 | if testscip-shell system . . test. x${OPT_CXXFLAGS+set} != xset; then |
| 3951 | OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags" |
| 3952 | fi |
| 3953 | |
| 3954 | DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS" |
| 3955 | OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS" |
| 3956 | |
| 3957 | if testscip-shell system . . test. "$coin_debug_compile" = "true"; then |
| 3958 | CXXFLAGS="$DBG_CXXFLAGS" |
| 3959 | else |
| 3960 | CXXFLAGS="$OPT_CXXFLAGS" |
| 3961 | fi |
| 3962 | |
| 3963 | # Handle the case where CXXFLAGS was set externally. |
| 3964 | else |
| 3965 | CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS" |
| 3966 | if testscip-shell system . . test. x${DBG_CXXFLAGS+set} != xset; then |
| 3967 | DBG_CXXFLAGS="$CXXFLAGS" |
| 3968 | fi |
| 3969 | if testscip-shell system . . test. x${OPT_CXXFLAGS+set} != xset; then |
| 3970 | OPT_CXXFLAGS="$CXXFLAGS" |
| 3971 | fi |
| 3972 | fi |
| 3973 | |
| 3974 | # add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include |
| 3975 | if testscip-shell system . . test. x$COIN_PRJCT != x; then |
| 3976 | CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD" |
| 3977 | fi |
| 3978 | |
| 3979 | # Try if CXXFLAGS works |
| 3980 | save_CXXFLAGS="$CXXFLAGS" |
| 3981 | catscip-shell system . . cat. >conftest.$ac_ext <<_ACEOF |
| 3982 | /* confdefs.h. */ |
| 3983 | _ACEOF |
| 3984 | catscip-shell system . . cat. confdefs.h >>conftest.$ac_ext |
| 3985 | catscip-shell system . . cat. >>conftest.$ac_ext <<_ACEOF |
| 3986 | /* end confdefs.h. */ |
| 3987 | |
| 3988 | int |
| 3989 | main () |
| 3990 | { |
| 3991 | int i=0; i++; |
| 3992 | ; |
| 3993 | return 0; |
| 3994 | } |
| 3995 | _ACEOF |
| 3996 | rmscip-shell system . . rm. -f conftest.$ac_objext conftest$ac_exeext |
| 3997 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3998 | (eval $ac_link) 2>conftest.er1 |
| 3999 | ac_status=$? |
| 4000 | grepscip-shell system . . grep. -v '^ *+' conftest.er1 >conftest.err |
| 4001 | rmscip-shell system . . rm. -f conftest.er1 |
| 4002 | catscip-shell system . . cat. conftest.err >&5 |
| 4003 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4004 | (exit $ac_status); } && |
| 4005 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 4006 | || test ! -s conftest.err' |
| 4007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4008 | (eval $ac_try) 2>&5 |
| 4009 | ac_status=$? |
| 4010 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4011 | (exit $ac_status); }; } && |
| 4012 | { ac_try='test -s conftest$ac_exeext' |
| 4013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4014 | (eval $ac_try) 2>&5 |
| 4015 | ac_status=$? |
| 4016 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4017 | (exit $ac_status); }; }; then |
| 4018 | : |
| 4019 | else |
| 4020 | echoscip-shell system . . echo. "$as_me: failed program was:" >&5 |
| 4021 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 4022 | |
| 4023 | CXXFLAGS= |
| 4024 | fi |
| 4025 | rmscip-shell system . . rm. -f conftest.err conftest.$ac_objext \ |
| 4026 | conftest$ac_exeext conftest.$ac_ext |
| 4027 | if testscip-shell system . . test. -z "$CXXFLAGS"; then |
| 4028 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: The flags CXXFLAGS=\"$save_CXXFLAGS\" do not work. I will now just try '-O', but you might want to set CXXFLAGS manually." >&5 |
| 4029 | echoscip-shell system . . echo. "$as_me: WARNING: The flags CXXFLAGS=\"$save_CXXFLAGS\" do not work. I will now just try '-O', but you might want to set CXXFLAGS manually." >&2;} |
| 4030 | CXXFLAGS='-O' |
| 4031 | catscip-shell system . . cat. >conftest.$ac_ext <<_ACEOF |
| 4032 | /* confdefs.h. */ |
| 4033 | _ACEOF |
| 4034 | catscip-shell system . . cat. confdefs.h >>conftest.$ac_ext |
| 4035 | catscip-shell system . . cat. >>conftest.$ac_ext <<_ACEOF |
| 4036 | /* end confdefs.h. */ |
| 4037 | |
| 4038 | int |
| 4039 | main () |
| 4040 | { |
| 4041 | int i=0; i++; |
| 4042 | ; |
| 4043 | return 0; |
| 4044 | } |
| 4045 | _ACEOF |
| 4046 | rmscip-shell system . . rm. -f conftest.$ac_objext conftest$ac_exeext |
| 4047 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4048 | (eval $ac_link) 2>conftest.er1 |
| 4049 | ac_status=$? |
| 4050 | grepscip-shell system . . grep. -v '^ *+' conftest.er1 >conftest.err |
| 4051 | rmscip-shell system . . rm. -f conftest.er1 |
| 4052 | catscip-shell system . . cat. conftest.err >&5 |
| 4053 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4054 | (exit $ac_status); } && |
| 4055 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 4056 | || test ! -s conftest.err' |
| 4057 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4058 | (eval $ac_try) 2>&5 |
| 4059 | ac_status=$? |
| 4060 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4061 | (exit $ac_status); }; } && |
| 4062 | { ac_try='test -s conftest$ac_exeext' |
| 4063 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4064 | (eval $ac_try) 2>&5 |
| 4065 | ac_status=$? |
| 4066 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4067 | (exit $ac_status); }; }; then |
| 4068 | : |
| 4069 | else |
| 4070 | echoscip-shell system . . echo. "$as_me: failed program was:" >&5 |
| 4071 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 4072 | |
| 4073 | CXXFLAGS= |
| 4074 | fi |
| 4075 | rmscip-shell system . . rm. -f conftest.err conftest.$ac_objext \ |
| 4076 | conftest$ac_exeext conftest.$ac_ext |
| 4077 | if testscip-shell system . . test. -z "$CXXFLAGS"; then |
| 4078 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: This value for CXXFLAGS does not work. I will continue with empty CXXFLAGS, but you might want to set CXXFLAGS manually." >&5 |
| 4079 | echoscip-shell system . . echo. "$as_me: WARNING: This value for CXXFLAGS does not work. I will continue with empty CXXFLAGS, but you might want to set CXXFLAGS manually." >&2;} |
| 4080 | fi |
| 4081 | fi |
| 4082 | |
| 4083 | { echoscip-shell system . . echo. "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5 |
| 4084 | echoscip-shell system . . echo. "$as_me: C++ compiler options are: $CXXFLAGS" >&6;} |
| 4085 | |
| 4086 | |
| 4087 | if testscip-shell system . . test. x"$MPICXX" = x; then :; else |
| 4088 | { echoscip-shell system . . echo. "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5 |
| 4089 | echoscip-shell system . . echo. "$as_me: Will use MPI C++ compiler $MPICXX" >&6;} |
| 4090 | CXX="$MPICXX" |
| 4091 | fi |
| 4092 | |
| 4093 | # correct the LD variable in a build with MS or Intel-windows compiler |
| 4094 | case "$CXX" in |
| 4095 | clang* | */clang* ) ;; |
| 4096 | cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) |
| 4097 | LD=link |
| 4098 | ;; |
| 4099 | esac |
| 4100 | |
| 4101 | ac_ext=c |
| 4102 | ac_cpp='$CPP $CPPFLAGS' |
| 4103 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4104 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4105 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4106 | |
| 4107 | |
| 4108 | |
| 4109 | # Initialize automake and libtool |
| 4110 | { |
| 4111 | |
| 4112 | |
| 4113 | |
| 4114 | # START |
| 4115 | |
| 4116 | coin_disable_shared=no |
| 4117 | # Test if force_shared has been set |
| 4118 | if testscip-shell system . . test. "x" = xforce_shared; then |
| 4119 | if testscip-shell system . . test. x$enable_shared = xno; then |
| 4120 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5 |
| 4121 | echoscip-shell system . . echo. "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;} |
| 4122 | { (exit 1); exit 1; }; } |
| 4123 | fi |
| 4124 | enable_shared=yes; |
| 4125 | else |
| 4126 | case $build in |
| 4127 | *-cygwin* | *-mingw*) |
| 4128 | coin_disable_shared=yes |
| 4129 | if testscip-shell system . . test. x"$enable_shared" = xyes; then |
| 4130 | case "$CC" in |
| 4131 | clang* | */clang* ) |
| 4132 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5 |
| 4133 | echoscip-shell system . . echo. "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;} |
| 4134 | ;; |
| 4135 | cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) |
| 4136 | { echoscip-shell system . . echo. "$as_me:$LINENO: Building of DLLs not supported in this configuration." >&5 |
| 4137 | echoscip-shell system . . echo. "$as_me: Building of DLLs not supported in this configuration." >&6;} |
| 4138 | ;; |
| 4139 | *gcc*) |
| 4140 | if testscip-shell system . . test. x"$enable_dependency_linking" = xyes; then |
| 4141 | coin_disable_shared=no |
| 4142 | else |
| 4143 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&5 |
| 4144 | echoscip-shell system . . echo. "$as_me: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&2;} |
| 4145 | fi |
| 4146 | ;; |
| 4147 | *) |
| 4148 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5 |
| 4149 | echoscip-shell system . . echo. "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;} |
| 4150 | ;; |
| 4151 | esac |
| 4152 | fi |
| 4153 | ;; |
| 4154 | *-aix*) |
| 4155 | coin_disable_shared=yes |
| 4156 | platform=AIX |
| 4157 | if testscip-shell system . . test. x"$enable_shared" = xyes; then |
| 4158 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: Shared objects are not supported." >&5 |
| 4159 | echoscip-shell system . . echo. "$as_me: WARNING: Shared objects are not supported." >&2;} |
| 4160 | fi |
| 4161 | ;; |
| 4162 | esac |
| 4163 | fi |
| 4164 | if testscip-shell system . . test. x"$coin_disable_shared" = xyes; then |
| 4165 | if testscip-shell system . . test. x"$enable_shared" = xyes; then |
| 4166 | : |
| 4167 | else |
| 4168 | # we don't disable shared, because it was not selected anyway |
| 4169 | coin_disable_shared=no |
| 4170 | fi |
| 4171 | enable_shared=no |
| 4172 | fi |
| 4173 | # By default, we only want the shared objects to be compiled |
| 4174 | # Check whether --enable-static or --disable-static was given. |
| 4175 | if testscip-shell system . . test. "${enable_static+set}" = set; then |
| 4176 | enableval="$enable_static" |
| 4177 | p=${PACKAGE-default} |
| 4178 | case $enableval in |
| 4179 | yes) enable_static=yes ;; |
| 4180 | no) enable_static=no ;; |
| 4181 | *) |
| 4182 | enable_static=no |
| 4183 | # Look at the argument we got. We use all the common list separators. |
| 4184 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 4185 | for pkg in $enableval; do |
| 4186 | IFS="$lt_save_ifs" |
| 4187 | if testscip-shell system . . test. "X$pkg" = "X$p"; then |
| 4188 | enable_static=yes |
| 4189 | fi |
| 4190 | done |
| 4191 | IFS="$lt_save_ifs" |
| 4192 | ;; |
| 4193 | esac |
| 4194 | else |
| 4195 | enable_static=no |
| 4196 | fi; |
| 4197 | |
| 4198 | |
| 4199 | |
| 4200 | |
| 4201 | # Initialize automake |
| 4202 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for egrep" >&5 |
| 4203 | echoscip-shell system . . echo. $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 4204 | if testscip-shell system . . test. "${ac_cv_prog_egrep+set}" = set; then |
| 4205 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 4206 | else |
| 4207 | if echoscip-shell system . . echo. a | (grepscip-shell system . . grep. -E '(a|b)') >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 |
| 4208 | then ac_cv_prog_egrep='grep -E' |
| 4209 | else ac_cv_prog_egrep='egrep' |
| 4210 | fi |
| 4211 | fi |
| 4212 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 4213 | echoscip-shell system . . echo. "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 4214 | EGREP=$ac_cv_prog_egrep |
| 4215 | |
| 4216 | |
| 4217 | echoscip-shell system . . echo. "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 4218 | echoscip-shell system . . echo. $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
| 4219 | LN_S=$as_ln_s |
| 4220 | if testscip-shell system . . test. "$LN_S" = "ln -s"; then |
| 4221 | echoscip-shell system . . echo. "$as_me:$LINENO: result: yes" >&5 |
| 4222 | echoscip-shell system . . echo. "${ECHO_T}yes" >&6 |
| 4223 | else |
| 4224 | echoscip-shell system . . echo. "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 4225 | echoscip-shell system . . echo. "${ECHO_T}no, using $LN_S" >&6 |
| 4226 | fi |
| 4227 | |
| 4228 | am__api_version="1.9" |
| 4229 | # Find a good install program. We prefer a C program (faster), |
| 4230 | # so one script is as good as another. But avoid the broken or |
| 4231 | # incompatible versions: |
| 4232 | # SysV /etc/install, /usr/sbin/install |
| 4233 | # SunOS /usr/etc/install |
| 4234 | # IRIX /sbin/install |
| 4235 | # AIX /bin/install |
| 4236 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 4237 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 4238 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 4239 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 4240 | # OS/2's system install, which has a completely different semantic |
| 4241 | # ./install, which can be erroneously created by make from ./install.sh. |
| 4242 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 4243 | echoscip-shell system . . echo. $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
| 4244 | if testscip-shell system . . test. -z "$INSTALL"; then |
| 4245 | if testscip-shell system . . test. "${ac_cv_path_install+set}" = set; then |
| 4246 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 4247 | else |
| 4248 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4249 | for as_dir in $PATH |
| 4250 | do |
| 4251 | IFS=$as_save_IFS |
| 4252 | testscip-shell system . . test. -z "$as_dir" && as_dir=. |
| 4253 | # Account for people who put trailing slashes in PATH elements. |
| 4254 | case $as_dir/ in |
| 4255 | ./ | .// | /cC/* | \ |
| 4256 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 4257 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 4258 | /usr/ucb/* ) ;; |
| 4259 | *) |
| 4260 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 4261 | # Don't use installbsd from OSF since it installs stuff as root |
| 4262 | # by default. |
| 4263 | for ac_prog in ginstall scoinst install; do |
| 4264 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4265 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 4266 | if testscip-shell system . . test. $ac_prog = install && |
| 4267 | grepscip-shell system . . grep. dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1; then |
| 4268 | # AIX install. It has an incompatible calling convention. |
| 4269 | : |
| 4270 | elif testscip-shell system . . test. $ac_prog = install && |
| 4271 | grepscip-shell system . . grep. pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1; then |
| 4272 | # program-specific install script used by HP pwplus--don't use. |
| 4273 | : |
| 4274 | else |
| 4275 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 4276 | break 3 |
| 4277 | fi |
| 4278 | fi |
| 4279 | done |
| 4280 | done |
| 4281 | ;; |
| 4282 | esac |
| 4283 | done |
| 4284 | |
| 4285 | |
| 4286 | fi |
| 4287 | if testscip-shell system . . test. "${ac_cv_path_install+set}" = set; then |
| 4288 | INSTALL=$ac_cv_path_install |
| 4289 | else |
| 4290 | # As a last resort, use the slow shell script. We don't cache a |
| 4291 | # path for INSTALL within a source directory, because that will |
| 4292 | # break other packages using the cache if that directory is |
| 4293 | # removed, or if the path is relative. |
| 4294 | INSTALL=$ac_install_sh |
| 4295 | fi |
| 4296 | fi |
| 4297 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $INSTALL" >&5 |
| 4298 | echoscip-shell system . . echo. "${ECHO_T}$INSTALL" >&6 |
| 4299 | |
| 4300 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 4301 | # It thinks the first close brace ends the variable substitution. |
| 4302 | testscip-shell system . . test. -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 4303 | |
| 4304 | testscip-shell system . . test. -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 4305 | |
| 4306 | testscip-shell system . . test. -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 4307 | |
| 4308 | echoscip-shell system . . echo. "$as_me:$LINENO: checking whether build environment is sane" >&5 |
| 4309 | echoscip-shell system . . echo. $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
| 4310 | # Just in case |
| 4311 | sleepscip-shell system . . sleep. 1 |
| 4312 | echoscip-shell system . . echo. timestamp > conftest.file |
| 4313 | # Do `set' in a subshell so we don't clobber the current shell's |
| 4314 | # arguments. Must try -L first in case configure is actually a |
| 4315 | # symlink; some systems play weird games with the mod time of symlinks |
| 4316 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 4317 | # directory). |
| 4318 | if ( |
| 4319 | set X `lsscip-shell system . . ls. -Lt $srcdir/configure conftest.file 2> /dev/nullscip-shell filesystem . . `/dev/null`.` |
| 4320 | if testscip-shell system . . test. "$*" = "X"; then |
| 4321 | # -L didn't work. |
| 4322 | set X `lsscip-shell system . . ls. -t $srcdir/configure conftest.file` |
| 4323 | fi |
| 4324 | rmscip-shell system . . rm. -f conftest.file |
| 4325 | if testscip-shell system . . test. "$*" != "X $srcdir/configure conftest.file" \ |
| 4326 | && testscip-shell system . . test. "$*" != "X conftest.file $srcdir/configure"; then |
| 4327 | |
| 4328 | # If neither matched, then we have a broken ls. This can happen |
| 4329 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 4330 | # broken ls alias from the environment. This has actually |
| 4331 | # happened. Such a system could not be considered "sane". |
| 4332 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
| 4333 | alias in your environment" >&5 |
| 4334 | echoscip-shell system . . echo. "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
| 4335 | alias in your environment" >&2;} |
| 4336 | { (exit 1); exit 1; }; } |
| 4337 | fi |
| 4338 | |
| 4339 | testscip-shell system . . test. "$2" = conftest.file |
| 4340 | ) |
| 4341 | then |
| 4342 | # Ok. |
| 4343 | : |
| 4344 | else |
| 4345 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: newly created file is older than distributed files! |
| 4346 | Check your system clock" >&5 |
| 4347 | echoscip-shell system . . echo. "$as_me: error: newly created file is older than distributed files! |
| 4348 | Check your system clock" >&2;} |
| 4349 | { (exit 1); exit 1; }; } |
| 4350 | fi |
| 4351 | echoscip-shell system . . echo. "$as_me:$LINENO: result: yes" >&5 |
| 4352 | echoscip-shell system . . echo. "${ECHO_T}yes" >&6 |
| 4353 | testscip-shell system . . test. "$program_prefix" != NONE && |
| 4354 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
| 4355 | # Use a double $ so make ignores it. |
| 4356 | testscip-shell system . . test. "$program_suffix" != NONE && |
| 4357 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
| 4358 | # Double any \ or $. echo might interpret backslashes. |
| 4359 | # By default was `s,x,x', remove it if useless. |
| 4360 | catscip-shell system . . cat. <<\_ACEOF >conftest.sed |
| 4361 | s/[\\$]/&&/g;s/;s,x,x,$// |
| 4362 | _ACEOF |
| 4363 | program_transform_name=`echoscip-shell system . . echo. $program_transform_name | sedscip-shell system . . sed. -f conftest.sed` |
| 4364 | rmscip-shell system . . rm. conftest.sed |
| 4365 | |
| 4366 | # expand $ac_aux_dir to an absolute path |
| 4367 | am_aux_dir=`cd $ac_aux_dir && pwdscip-shell system . . pwd.` |
| 4368 | |
| 4369 | testscip-shell system . . test. x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
| 4370 | # Use eval to expand $SHELL |
| 4371 | if eval "$MISSING --run true"; then |
| 4372 | am_missing_run="$MISSING --run " |
| 4373 | else |
| 4374 | am_missing_run= |
| 4375 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
| 4376 | echoscip-shell system . . echo. "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
| 4377 | fi |
| 4378 | |
| 4379 | if mkdirscip-shell system . . mkdir. -p --version . >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 && testscip-shell system . . test. ! -d ./--version; then |
| 4380 | # We used to keeping the `.' as first argument, in order to |
| 4381 | # allow $(mkdir_p) to be used without argument. As in |
| 4382 | # $(mkdir_p) $(somedir) |
| 4383 | # where $(somedir) is conditionally defined. However this is wrong |
| 4384 | # for two reasons: |
| 4385 | # 1. if the package is installed by a user who cannot write `.' |
| 4386 | # make install will fail, |
| 4387 | # 2. the above comment should most certainly read |
| 4388 | # $(mkdir_p) $(DESTDIR)$(somedir) |
| 4389 | # so it does not work when $(somedir) is undefined and |
| 4390 | # $(DESTDIR) is not. |
| 4391 | # To support the latter case, we have to write |
| 4392 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), |
| 4393 | # so the `.' trick is pointless. |
| 4394 | mkdir_p='mkdir -p --' |
| 4395 | else |
| 4396 | # On NextStep and OpenStep, the `mkdir' command does not |
| 4397 | # recognize any option. It will interpret all options as |
| 4398 | # directories to create, and then abort because `.' already |
| 4399 | # exists. |
| 4400 | for d in ./-p ./--version; |
| 4401 | do |
| 4402 | testscip-shell system . . test. -d $d && rmdirscip-shell system . . rmdir. $d |
| 4403 | done |
| 4404 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. |
| 4405 | if testscip-shell system . . test. -f "$ac_aux_dir/mkinstalldirs"; then |
| 4406 | mkdir_p='$(mkinstalldirs)' |
| 4407 | else |
| 4408 | mkdir_p='$(install_sh) -d' |
| 4409 | fi |
| 4410 | fi |
| 4411 | |
| 4412 | for ac_prog in gawk mawk nawk awk |
| 4413 | do |
| 4414 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4415 | set dummy $ac_prog; ac_word=$2 |
| 4416 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4417 | echoscip-shell system . . echo. $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4418 | if testscip-shell system . . test. "${ac_cv_prog_AWK+set}" = set; then |
| 4419 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 4420 | else |
| 4421 | if testscip-shell system . . test. -n "$AWK"; then |
| 4422 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 4423 | else |
| 4424 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4425 | for as_dir in $PATH |
| 4426 | do |
| 4427 | IFS=$as_save_IFS |
| 4428 | testscip-shell system . . test. -z "$as_dir" && as_dir=. |
| 4429 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4430 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4431 | ac_cv_prog_AWK="$ac_prog" |
| 4432 | echoscip-shell system . . echo. "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4433 | break 2 |
| 4434 | fi |
| 4435 | done |
| 4436 | done |
| 4437 | |
| 4438 | fi |
| 4439 | fi |
| 4440 | AWK=$ac_cv_prog_AWK |
| 4441 | if testscip-shell system . . test. -n "$AWK"; then |
| 4442 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $AWK" >&5 |
| 4443 | echoscip-shell system . . echo. "${ECHO_T}$AWK" >&6 |
| 4444 | else |
| 4445 | echoscip-shell system . . echo. "$as_me:$LINENO: result: no" >&5 |
| 4446 | echoscip-shell system . . echo. "${ECHO_T}no" >&6 |
| 4447 | fi |
| 4448 | |
| 4449 | testscip-shell system . . test. -n "$AWK" && break |
| 4450 | done |
| 4451 | |
| 4452 | echoscip-shell system . . echo. "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 4453 | echoscip-shell system . . echo. $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
| 4454 | set dummy ${MAKE-make}; ac_make=`echoscip-shell system . . echo. "$2" | sedscip-shell system . . sed. 'y,:./+-,___p_,'` |
| 4455 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
| 4456 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 4457 | else |
| 4458 | catscip-shell system . . cat. >conftest.make <<\_ACEOF |
| 4459 | all: |
| 4460 | @echo 'ac_maketemp="$(MAKE)"' |
| 4461 | _ACEOF |
| 4462 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 4463 | eval `${MAKE-make} -f conftest.make 2>/dev/nullscip-shell filesystem . . `/dev/null`. | grepscip-shell system . . grep. temp=` |
| 4464 | if testscip-shell system . . test. -n "$ac_maketemp"; then |
| 4465 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 4466 | else |
| 4467 | eval ac_cv_prog_make_${ac_make}_set=no |
| 4468 | fi |
| 4469 | rmscip-shell system . . rm. -f conftest.make |
| 4470 | fi |
| 4471 | if eval "test \"`echoscip-shell system . . echo. '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
| 4472 | echoscip-shell system . . echo. "$as_me:$LINENO: result: yes" >&5 |
| 4473 | echoscip-shell system . . echo. "${ECHO_T}yes" >&6 |
| 4474 | SET_MAKE= |
| 4475 | else |
| 4476 | echoscip-shell system . . echo. "$as_me:$LINENO: result: no" >&5 |
| 4477 | echoscip-shell system . . echo. "${ECHO_T}no" >&6 |
| 4478 | SET_MAKE="MAKE=${MAKE-make}" |
| 4479 | fi |
| 4480 | |
| 4481 | rmscip-shell system . . rm. -rf .tst 2>/dev/nullscip-shell filesystem . . `/dev/null`. |
| 4482 | mkdirscip-shell system . . mkdir. .tst 2>/dev/nullscip-shell filesystem . . `/dev/null`. |
| 4483 | if testscip-shell system . . test. -d .tst; then |
| 4484 | am__leading_dot=. |
| 4485 | else |
| 4486 | am__leading_dot=_ |
| 4487 | fi |
| 4488 | rmdirscip-shell system . . rmdir. .tst 2>/dev/nullscip-shell filesystem . . `/dev/null`. |
| 4489 | |
| 4490 | DEPDIR="${am__leading_dot}deps" |
| 4491 | |
| 4492 | ac_config_commands="$ac_config_commands depfiles" |
| 4493 | |
| 4494 | |
| 4495 | am_make=${MAKE-make} |
| 4496 | catscip-shell system . . cat. > confinc << 'END' |
| 4497 | am__doit: |
| 4498 | @echo done |
| 4499 | .PHONY: am__doit |
| 4500 | END |
| 4501 | # If we don't find an include directive, just comment out the code. |
| 4502 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
| 4503 | echoscip-shell system . . echo. $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
| 4504 | am__include="#" |
| 4505 | am__quote= |
| 4506 | _am_result=none |
| 4507 | # First try GNU make style include. |
| 4508 | echoscip-shell system . . echo. "include confinc" > confmf |
| 4509 | # We grep out `Entering directory' and `Leaving directory' |
| 4510 | # messages which can occur if `w' ends up in MAKEFLAGS. |
| 4511 | # In particular we don't look at `^make:' because GNU make might |
| 4512 | # be invoked under some other name (usually "gmake"), in which |
| 4513 | # case it prints its new name instead of `make'. |
| 4514 | if testscip-shell system . . test. "`$am_make -s -f confmf 2> /dev/nullscip-shell filesystem . . `/dev/null`. | grepscip-shell system . . grep. -v 'ing directory'`" = "done"; then |
| 4515 | am__include=include |
| 4516 | am__quote= |
| 4517 | _am_result=GNU |
| 4518 | fi |
| 4519 | # Now try BSD make style include. |
| 4520 | if testscip-shell system . . test. "$am__include" = "#"; then |
| 4521 | echoscip-shell system . . echo. '.include "confinc"' > confmf |
| 4522 | if testscip-shell system . . test. "`$am_make -s -f confmf 2> /dev/nullscip-shell filesystem . . `/dev/null`.`" = "done"; then |
| 4523 | am__include=.include |
| 4524 | am__quote="\"" |
| 4525 | _am_result=BSD |
| 4526 | fi |
| 4527 | fi |
| 4528 | |
| 4529 | |
| 4530 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $_am_result" >&5 |
| 4531 | echoscip-shell system . . echo. "${ECHO_T}$_am_result" >&6 |
| 4532 | rmscip-shell system . . rm. -f confinc confmf |
| 4533 | |
| 4534 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
| 4535 | if testscip-shell system . . test. "${enable_dependency_tracking+set}" = set; then |
| 4536 | enableval="$enable_dependency_tracking" |
| 4537 | |
| 4538 | fi; |
| 4539 | if testscip-shell system . . test. "x$enable_dependency_tracking" != xno; then |
| 4540 | am_depcomp="$ac_aux_dir/depcomp" |
| 4541 | AMDEPBACKSLASH='\' |
| 4542 | fi |
| 4543 | |
| 4544 | |
| 4545 | if testscip-shell system . . test. "x$enable_dependency_tracking" != xno; then |
| 4546 | AMDEP_TRUE= |
| 4547 | AMDEP_FALSE='#' |
| 4548 | else |
| 4549 | AMDEP_TRUE='#' |
| 4550 | AMDEP_FALSE= |
| 4551 | fi |
| 4552 | |
| 4553 | |
| 4554 | |
| 4555 | |
| 4556 | |
| 4557 | |
| 4558 | # AC_MSG_NOTICE([Beginning automake initialisation.]) |
| 4559 | # Stuff for automake |
| 4560 | # test to see if srcdir already configured |
| 4561 | if testscip-shell system . . test. "`cd $srcdir && pwdscip-shell system . . pwd.`" != "`pwdscip-shell system . . pwd.`" && |
| 4562 | testscip-shell system . . test. -f $srcdir/config.status; then |
| 4563 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
| 4564 | echoscip-shell system . . echo. "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
| 4565 | { (exit 1); exit 1; }; } |
| 4566 | fi |
| 4567 | |
| 4568 | # test whether we have cygpath |
| 4569 | if testscip-shell system . . test. -z "$CYGPATH_W"; then |
| 4570 | if (cygpath --version) >/dev/nullscip-shell filesystem . . `/dev/null`. 2>/dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 4571 | CYGPATH_W='cygpath -w' |
| 4572 | else |
| 4573 | CYGPATH_W=echo |
| 4574 | fi |
| 4575 | fi |
| 4576 | |
| 4577 | |
| 4578 | # Define the identity of the package. |
| 4579 | PACKAGE='cbc' |
| 4580 | VERSION='2.10.13' |
| 4581 | |
| 4582 | |
| 4583 | catscip-shell system . . cat. >>confdefs.h <<_ACEOF |
| 4584 | #define PACKAGE "$PACKAGE" |
| 4585 | _ACEOF |
| 4586 | |
| 4587 | |
| 4588 | catscip-shell system . . cat. >>confdefs.h <<_ACEOF |
| 4589 | #define VERSION "$VERSION" |
| 4590 | _ACEOF |
| 4591 | |
| 4592 | # Some tools Automake needs. |
| 4593 | |
| 4594 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 4595 | |
| 4596 | |
| 4597 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 4598 | |
| 4599 | |
| 4600 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 4601 | |
| 4602 | |
| 4603 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 4604 | |
| 4605 | |
| 4606 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 4607 | |
| 4608 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
| 4609 | |
| 4610 | # Installed binaries are usually stripped using `strip' when the user |
| 4611 | # run `make install-strip'. However `strip' might not be the right |
| 4612 | # tool to use in cross-compilation environments, therefore Automake |
| 4613 | # will honor the `STRIP' environment variable to overrule this program. |
| 4614 | if testscip-shell system . . test. "$cross_compiling" != no; then |
| 4615 | if testscip-shell system . . test. -n "$ac_tool_prefix"; then |
| 4616 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 4617 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 4618 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4619 | echoscip-shell system . . echo. $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4620 | if testscip-shell system . . test. "${ac_cv_prog_STRIP+set}" = set; then |
| 4621 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 4622 | else |
| 4623 | if testscip-shell system . . test. -n "$STRIP"; then |
| 4624 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 4625 | else |
| 4626 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4627 | for as_dir in $PATH |
| 4628 | do |
| 4629 | IFS=$as_save_IFS |
| 4630 | testscip-shell system . . test. -z "$as_dir" && as_dir=. |
| 4631 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4632 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4633 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 4634 | echoscip-shell system . . echo. "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4635 | break 2 |
| 4636 | fi |
| 4637 | done |
| 4638 | done |
| 4639 | |
| 4640 | fi |
| 4641 | fi |
| 4642 | STRIP=$ac_cv_prog_STRIP |
| 4643 | if testscip-shell system . . test. -n "$STRIP"; then |
| 4644 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $STRIP" >&5 |
| 4645 | echoscip-shell system . . echo. "${ECHO_T}$STRIP" >&6 |
| 4646 | else |
| 4647 | echoscip-shell system . . echo. "$as_me:$LINENO: result: no" >&5 |
| 4648 | echoscip-shell system . . echo. "${ECHO_T}no" >&6 |
| 4649 | fi |
| 4650 | |
| 4651 | fi |
| 4652 | if testscip-shell system . . test. -z "$ac_cv_prog_STRIP"; then |
| 4653 | ac_ct_STRIP=$STRIP |
| 4654 | # Extract the first word of "strip", so it can be a program name with args. |
| 4655 | set dummy strip; ac_word=$2 |
| 4656 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4657 | echoscip-shell system . . echo. $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4658 | if testscip-shell system . . test. "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 4659 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 4660 | else |
| 4661 | if testscip-shell system . . test. -n "$ac_ct_STRIP"; then |
| 4662 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 4663 | else |
| 4664 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4665 | for as_dir in $PATH |
| 4666 | do |
| 4667 | IFS=$as_save_IFS |
| 4668 | testscip-shell system . . test. -z "$as_dir" && as_dir=. |
| 4669 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4670 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4671 | ac_cv_prog_ac_ct_STRIP="strip" |
| 4672 | echoscip-shell system . . echo. "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4673 | break 2 |
| 4674 | fi |
| 4675 | done |
| 4676 | done |
| 4677 | |
| 4678 | testscip-shell system . . test. -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
| 4679 | fi |
| 4680 | fi |
| 4681 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 4682 | if testscip-shell system . . test. -n "$ac_ct_STRIP"; then |
| 4683 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 4684 | echoscip-shell system . . echo. "${ECHO_T}$ac_ct_STRIP" >&6 |
| 4685 | else |
| 4686 | echoscip-shell system . . echo. "$as_me:$LINENO: result: no" >&5 |
| 4687 | echoscip-shell system . . echo. "${ECHO_T}no" >&6 |
| 4688 | fi |
| 4689 | |
| 4690 | STRIP=$ac_ct_STRIP |
| 4691 | else |
| 4692 | STRIP="$ac_cv_prog_STRIP" |
| 4693 | fi |
| 4694 | |
| 4695 | fi |
| 4696 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
| 4697 | |
| 4698 | # We need awk for the "check" target. The system "awk" is bad on |
| 4699 | # some platforms. |
| 4700 | # Always define AMTAR for backward compatibility. |
| 4701 | |
| 4702 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
| 4703 | |
| 4704 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
| 4705 | |
| 4706 | |
| 4707 | |
| 4708 | |
| 4709 | depcc="$CC" am_compiler_list= |
| 4710 | |
| 4711 | echoscip-shell system . . echo. "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
| 4712 | echoscip-shell system . . echo. $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
| 4713 | if testscip-shell system . . test. "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
| 4714 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 4715 | else |
| 4716 | if testscip-shell system . . test. -z "$AMDEP_TRUE" && testscip-shell system . . test. -f "$am_depcomp"; then |
| 4717 | # We make a subdir and do the tests there. Otherwise we can end up |
| 4718 | # making bogus files that we don't know about and never remove. For |
| 4719 | # instance it was reported that on HP-UX the gcc test will end up |
| 4720 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 4721 | # in D'. |
| 4722 | mkdirscip-shell system . . mkdir. conftest.dir |
| 4723 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 4724 | # using a relative directory. |
| 4725 | cpscip-shell system . . cp. "$am_depcomp" conftest.dir |
| 4726 | cd conftest.dir |
| 4727 | # We will build objects and dependencies in a subdirectory because |
| 4728 | # it helps to detect inapplicable dependency modes. For instance |
| 4729 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 4730 | # side effect of compilation, but ICC will put the dependencies in |
| 4731 | # the current directory while Tru64 will put them in the object |
| 4732 | # directory. |
| 4733 | mkdirscip-shell system . . mkdir. sub |
| 4734 | |
| 4735 | am_cv_CC_dependencies_compiler_type=none |
| 4736 | if testscip-shell system . . test. "$am_compiler_list" = ""; then |
| 4737 | am_compiler_list=`sedscip-shell system . . sed. -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 4738 | fi |
| 4739 | for depmode in $am_compiler_list; do |
| 4740 | # Setup a source with many dependencies, because some compilers |
| 4741 | # like to wrap large dependency lists on column 80 (with \), and |
| 4742 | # we should not choose a depcomp mode which is confused by this. |
| 4743 | # |
| 4744 | # We need to recreate these files for each test, as the compiler may |
| 4745 | # overwrite some of them when testing with obscure command lines. |
| 4746 | # This happens at least with the AIX C compiler. |
| 4747 | : > sub/conftest.c |
| 4748 | for i in 1 2 3 4 5 6; do |
| 4749 | echoscip-shell system . . echo. '#include "conftst'$i'.h"' >> sub/conftest.c |
| 4750 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 4751 | # Solaris 8's {/usr,}/bin/sh. |
| 4752 | touchscip-shell system . . touch. sub/conftst$i.h |
| 4753 | done |
| 4754 | echoscip-shell system . . echo. "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 4755 | |
| 4756 | case $depmode in |
| 4757 | nosideeffect) |
| 4758 | # after this tag, mechanisms are not by side-effect, so they'll |
| 4759 | # only be used when explicitly requested |
| 4760 | if testscip-shell system . . test. "x$enable_dependency_tracking" = xyes; then |
| 4761 | continue |
| 4762 | else |
| 4763 | break |
| 4764 | fi |
| 4765 | ;; |
| 4766 | none) break ;; |
| 4767 | esac |
| 4768 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 4769 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 4770 | # handle `-M -o', and we need to detect this. |
| 4771 | if depmode=$depmode \ |
| 4772 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
| 4773 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 4774 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
| 4775 | >/dev/nullscip-shell filesystem . . `/dev/null`. 2>conftest.err && |
| 4776 | grepscip-shell system . . grep. sub/conftst6.h sub/conftest.Po > /dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 && |
| 4777 | grepscip-shell system . . grep. sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 && |
| 4778 | ${MAKE-make} -s -f confmf > /dev/nullscip-shell filesystem . . `/dev/null`. 2>&1; then |
| 4779 | # icc doesn't choke on unknown options, it will just issue warnings |
| 4780 | # or remarks (even with -Werror). So we grep stderr for any message |
| 4781 | # that says an option was ignored or not supported. |
| 4782 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 4783 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 4784 | # The diagnosis changed in icc 8.0: |
| 4785 | # icc: Command line remark: option '-MP' not supported |
| 4786 | if (grepscip-shell system . . grep. 'ignoring option' conftest.err || |
| 4787 | grepscip-shell system . . grep. 'not supported' conftest.err) >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1; then :; else |
| 4788 | am_cv_CC_dependencies_compiler_type=$depmode |
| 4789 | break |
| 4790 | fi |
| 4791 | fi |
| 4792 | done |
| 4793 | |
| 4794 | cd .. |
| 4795 | rmscip-shell system . . rm. -rf conftest.dir |
| 4796 | else |
| 4797 | am_cv_CC_dependencies_compiler_type=none |
| 4798 | fi |
| 4799 | |
| 4800 | fi |
| 4801 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 4802 | echoscip-shell system . . echo. "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
| 4803 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 4804 | |
| 4805 | |
| 4806 | |
| 4807 | if |
| 4808 | testscip-shell system . . test. "x$enable_dependency_tracking" != xno \ |
| 4809 | && testscip-shell system . . test. "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 4810 | am__fastdepCC_TRUE= |
| 4811 | am__fastdepCC_FALSE='#' |
| 4812 | else |
| 4813 | am__fastdepCC_TRUE='#' |
| 4814 | am__fastdepCC_FALSE= |
| 4815 | fi |
| 4816 | |
| 4817 | |
| 4818 | depcc="$CXX" am_compiler_list= |
| 4819 | |
| 4820 | echoscip-shell system . . echo. "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
| 4821 | echoscip-shell system . . echo. $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
| 4822 | if testscip-shell system . . test. "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
| 4823 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 4824 | else |
| 4825 | if testscip-shell system . . test. -z "$AMDEP_TRUE" && testscip-shell system . . test. -f "$am_depcomp"; then |
| 4826 | # We make a subdir and do the tests there. Otherwise we can end up |
| 4827 | # making bogus files that we don't know about and never remove. For |
| 4828 | # instance it was reported that on HP-UX the gcc test will end up |
| 4829 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 4830 | # in D'. |
| 4831 | mkdirscip-shell system . . mkdir. conftest.dir |
| 4832 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 4833 | # using a relative directory. |
| 4834 | cpscip-shell system . . cp. "$am_depcomp" conftest.dir |
| 4835 | cd conftest.dir |
| 4836 | # We will build objects and dependencies in a subdirectory because |
| 4837 | # it helps to detect inapplicable dependency modes. For instance |
| 4838 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 4839 | # side effect of compilation, but ICC will put the dependencies in |
| 4840 | # the current directory while Tru64 will put them in the object |
| 4841 | # directory. |
| 4842 | mkdirscip-shell system . . mkdir. sub |
| 4843 | |
| 4844 | am_cv_CXX_dependencies_compiler_type=none |
| 4845 | if testscip-shell system . . test. "$am_compiler_list" = ""; then |
| 4846 | am_compiler_list=`sedscip-shell system . . sed. -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 4847 | fi |
| 4848 | for depmode in $am_compiler_list; do |
| 4849 | # Setup a source with many dependencies, because some compilers |
| 4850 | # like to wrap large dependency lists on column 80 (with \), and |
| 4851 | # we should not choose a depcomp mode which is confused by this. |
| 4852 | # |
| 4853 | # We need to recreate these files for each test, as the compiler may |
| 4854 | # overwrite some of them when testing with obscure command lines. |
| 4855 | # This happens at least with the AIX C compiler. |
| 4856 | : > sub/conftest.c |
| 4857 | for i in 1 2 3 4 5 6; do |
| 4858 | echoscip-shell system . . echo. '#include "conftst'$i'.h"' >> sub/conftest.c |
| 4859 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 4860 | # Solaris 8's {/usr,}/bin/sh. |
| 4861 | touchscip-shell system . . touch. sub/conftst$i.h |
| 4862 | done |
| 4863 | echoscip-shell system . . echo. "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 4864 | |
| 4865 | case $depmode in |
| 4866 | nosideeffect) |
| 4867 | # after this tag, mechanisms are not by side-effect, so they'll |
| 4868 | # only be used when explicitly requested |
| 4869 | if testscip-shell system . . test. "x$enable_dependency_tracking" = xyes; then |
| 4870 | continue |
| 4871 | else |
| 4872 | break |
| 4873 | fi |
| 4874 | ;; |
| 4875 | none) break ;; |
| 4876 | esac |
| 4877 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 4878 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 4879 | # handle `-M -o', and we need to detect this. |
| 4880 | if depmode=$depmode \ |
| 4881 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
| 4882 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 4883 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
| 4884 | >/dev/nullscip-shell filesystem . . `/dev/null`. 2>conftest.err && |
| 4885 | grepscip-shell system . . grep. sub/conftst6.h sub/conftest.Po > /dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 && |
| 4886 | grepscip-shell system . . grep. sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 && |
| 4887 | ${MAKE-make} -s -f confmf > /dev/nullscip-shell filesystem . . `/dev/null`. 2>&1; then |
| 4888 | # icc doesn't choke on unknown options, it will just issue warnings |
| 4889 | # or remarks (even with -Werror). So we grep stderr for any message |
| 4890 | # that says an option was ignored or not supported. |
| 4891 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 4892 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 4893 | # The diagnosis changed in icc 8.0: |
| 4894 | # icc: Command line remark: option '-MP' not supported |
| 4895 | if (grepscip-shell system . . grep. 'ignoring option' conftest.err || |
| 4896 | grepscip-shell system . . grep. 'not supported' conftest.err) >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1; then :; else |
| 4897 | am_cv_CXX_dependencies_compiler_type=$depmode |
| 4898 | break |
| 4899 | fi |
| 4900 | fi |
| 4901 | done |
| 4902 | |
| 4903 | cd .. |
| 4904 | rmscip-shell system . . rm. -rf conftest.dir |
| 4905 | else |
| 4906 | am_cv_CXX_dependencies_compiler_type=none |
| 4907 | fi |
| 4908 | |
| 4909 | fi |
| 4910 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
| 4911 | echoscip-shell system . . echo. "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 |
| 4912 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
| 4913 | |
| 4914 | |
| 4915 | |
| 4916 | if |
| 4917 | testscip-shell system . . test. "x$enable_dependency_tracking" != xno \ |
| 4918 | && testscip-shell system . . test. "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
| 4919 | am__fastdepCXX_TRUE= |
| 4920 | am__fastdepCXX_FALSE='#' |
| 4921 | else |
| 4922 | am__fastdepCXX_TRUE='#' |
| 4923 | am__fastdepCXX_FALSE= |
| 4924 | fi |
| 4925 | |
| 4926 | |
| 4927 | |
| 4928 | echoscip-shell system . . echo. "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
| 4929 | echoscip-shell system . . echo. $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 |
| 4930 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
| 4931 | if testscip-shell system . . test. "${enable_maintainer_mode+set}" = set; then |
| 4932 | enableval="$enable_maintainer_mode" |
| 4933 | USE_MAINTAINER_MODE=$enableval |
| 4934 | else |
| 4935 | USE_MAINTAINER_MODE=no |
| 4936 | fi; |
| 4937 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 |
| 4938 | echoscip-shell system . . echo. "${ECHO_T}$USE_MAINTAINER_MODE" >&6 |
| 4939 | |
| 4940 | |
| 4941 | if testscip-shell system . . test. $USE_MAINTAINER_MODE = yes; then |
| 4942 | MAINTAINER_MODE_TRUE= |
| 4943 | MAINTAINER_MODE_FALSE='#' |
| 4944 | else |
| 4945 | MAINTAINER_MODE_TRUE='#' |
| 4946 | MAINTAINER_MODE_FALSE= |
| 4947 | fi |
| 4948 | |
| 4949 | MAINT=$MAINTAINER_MODE_TRUE |
| 4950 | |
| 4951 | |
| 4952 | |
| 4953 | coin_have_externals=no |
| 4954 | if testscip-shell system . . test. "$enable_maintainer_mode" = yes; then |
| 4955 | |
| 4956 | # If maintainer mode is chosen, we make sure that the correct versions |
| 4957 | # of the tools are used, and that we know where libtool.m4 is (to |
| 4958 | # recreate acinclude.m4) |
| 4959 | |
| 4960 | |
| 4961 | LIBTOOLM4= |
| 4962 | # Normally, $HOME |
| 4963 | AUTOTOOLS_DFLT=$HOME |
| 4964 | |
| 4965 | echoscip-shell system . . echo. "$as_me:$LINENO: checking whether we are using the correct autotools" >&5 |
| 4966 | echoscip-shell system . . echo. $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6 |
| 4967 | if testscip-shell system . . test. "${ac_cv_use_correct_autotools+set}" = set; then |
| 4968 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 4969 | else |
| 4970 | ac_cv_use_correct_autotools=check |
| 4971 | fi |
| 4972 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5 |
| 4973 | echoscip-shell system . . echo. "${ECHO_T}$ac_cv_use_correct_autotools" >&6 |
| 4974 | |
| 4975 | if testscip-shell system . . test. $ac_cv_use_correct_autotools = check; then |
| 4976 | ac_cv_use_correct_autotools=yes |
| 4977 | # Check if we have autoconf |
| 4978 | # Extract the first word of "autoconf", so it can be a program name with args. |
| 4979 | set dummy autoconf; ac_word=$2 |
| 4980 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4981 | echoscip-shell system . . echo. $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4982 | if testscip-shell system . . test. "${ac_cv_prog_have_autoconf+set}" = set; then |
| 4983 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 4984 | else |
| 4985 | if testscip-shell system . . test. -n "$have_autoconf"; then |
| 4986 | ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test. |
| 4987 | else |
| 4988 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4989 | for as_dir in $PATH |
| 4990 | do |
| 4991 | IFS=$as_save_IFS |
| 4992 | testscip-shell system . . test. -z "$as_dir" && as_dir=. |
| 4993 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4994 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4995 | ac_cv_prog_have_autoconf="yes" |
| 4996 | echoscip-shell system . . echo. "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4997 | break 2 |
| 4998 | fi |
| 4999 | done |
| 5000 | done |
| 5001 | |
| 5002 | testscip-shell system . . test. -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no" |
| 5003 | fi |
| 5004 | fi |
| 5005 | have_autoconf=$ac_cv_prog_have_autoconf |
| 5006 | if testscip-shell system . . test. -n "$have_autoconf"; then |
| 5007 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $have_autoconf" >&5 |
| 5008 | echoscip-shell system . . echo. "${ECHO_T}$have_autoconf" >&6 |
| 5009 | else |
| 5010 | echoscip-shell system . . echo. "$as_me:$LINENO: result: no" >&5 |
| 5011 | echoscip-shell system . . echo. "${ECHO_T}no" >&6 |
| 5012 | fi |
| 5013 | |
| 5014 | if testscip-shell system . . test. $have_autoconf = no; then |
| 5015 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5 |
| 5016 | echoscip-shell system . . echo. "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;} |
| 5017 | { (exit 1); exit 1; }; } |
| 5018 | fi |
| 5019 | |
| 5020 | # Check whether autoconf is the correct version |
| 5021 | correct_version='2.59' |
| 5022 | grep_version=`echoscip-shell system . . echo. $correct_version | sedscip-shell system . . sed. -e 's/\\./\\\\\\./g'` |
| 5023 | echoscip-shell system . . echo. "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5 |
| 5024 | echoscip-shell system . . echo. $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6 |
| 5025 | autoconfscip-shell system . . autoconf. --version > confauto.out 2>&1 |
| 5026 | if $EGREP $grep_version confauto.out >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1; then |
| 5027 | echoscip-shell system . . echo. "$as_me:$LINENO: result: yes" >&5 |
| 5028 | echoscip-shell system . . echo. "${ECHO_T}yes" >&6 |
| 5029 | else |
| 5030 | rmscip-shell system . . rm. -f confauto.out |
| 5031 | echoscip-shell system . . echo. "$as_me:$LINENO: result: no" >&5 |
| 5032 | echoscip-shell system . . echo. "${ECHO_T}no" >&6 |
| 5033 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5 |
| 5034 | echoscip-shell system . . echo. "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;} |
| 5035 | { (exit 1); exit 1; }; } |
| 5036 | fi |
| 5037 | rmscip-shell system . . rm. -f confauto.out |
| 5038 | |
| 5039 | # Check if the executable autoconf is picked up from the correct location |
| 5040 | echoscip-shell system . . echo. "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5 |
| 5041 | echoscip-shell system . . echo. $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6 |
| 5042 | autoconf_dir=`whichscip-shell system . . which. autoconf | sedscip-shell system . . sed. -e 's=/autoconf=='` |
| 5043 | autoconf_dir=`cd $autoconf_dir; pwdscip-shell system . . pwd.` |
| 5044 | if testscip-shell system . . test. x$AUTOTOOLS_DIR = x; then |
| 5045 | want_dir=$AUTOTOOLS_DFLT/bin |
| 5046 | else |
| 5047 | want_dir=$AUTOTOOLS_DIR/bin |
| 5048 | fi |
| 5049 | if testscip-shell system . . test. $autoconf_dir = `cd $want_dir; pwdscip-shell system . . pwd.`; then |
| 5050 | echoscip-shell system . . echo. "$as_me:$LINENO: result: yes" >&5 |
| 5051 | echoscip-shell system . . echo. "${ECHO_T}yes" >&6 |
| 5052 | else |
| 5053 | rmscip-shell system . . rm. -f confauto.out |
| 5054 | echoscip-shell system . . echo. "$as_me:$LINENO: result: no" >&5 |
| 5055 | echoscip-shell system . . echo. "${ECHO_T}no" >&6 |
| 5056 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5 |
| 5057 | echoscip-shell system . . echo. "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;} |
| 5058 | { (exit 1); exit 1; }; } |
| 5059 | fi |
| 5060 | |
| 5061 | # Check if we have automake |
| 5062 | # Extract the first word of "automake", so it can be a program name with args. |
| 5063 | set dummy automake; ac_word=$2 |
| 5064 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5065 | echoscip-shell system . . echo. $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5066 | if testscip-shell system . . test. "${ac_cv_prog_have_automake+set}" = set; then |
| 5067 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 5068 | else |
| 5069 | if testscip-shell system . . test. -n "$have_automake"; then |
| 5070 | ac_cv_prog_have_automake="$have_automake" # Let the user override the test. |
| 5071 | else |
| 5072 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5073 | for as_dir in $PATH |
| 5074 | do |
| 5075 | IFS=$as_save_IFS |
| 5076 | testscip-shell system . . test. -z "$as_dir" && as_dir=. |
| 5077 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5078 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5079 | ac_cv_prog_have_automake="yes" |
| 5080 | echoscip-shell system . . echo. "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5081 | break 2 |
| 5082 | fi |
| 5083 | done |
| 5084 | done |
| 5085 | |
| 5086 | testscip-shell system . . test. -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no" |
| 5087 | fi |
| 5088 | fi |
| 5089 | have_automake=$ac_cv_prog_have_automake |
| 5090 | if testscip-shell system . . test. -n "$have_automake"; then |
| 5091 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $have_automake" >&5 |
| 5092 | echoscip-shell system . . echo. "${ECHO_T}$have_automake" >&6 |
| 5093 | else |
| 5094 | echoscip-shell system . . echo. "$as_me:$LINENO: result: no" >&5 |
| 5095 | echoscip-shell system . . echo. "${ECHO_T}no" >&6 |
| 5096 | fi |
| 5097 | |
| 5098 | if testscip-shell system . . test. $have_automake = no; then |
| 5099 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5 |
| 5100 | echoscip-shell system . . echo. "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;} |
| 5101 | { (exit 1); exit 1; }; } |
| 5102 | fi |
| 5103 | |
| 5104 | # Check whether automake is the correct version |
| 5105 | correct_version='1.9.6' |
| 5106 | grep_version=`echoscip-shell system . . echo. $correct_version | sedscip-shell system . . sed. -e 's/\\./\\\\\\./g'` |
| 5107 | echoscip-shell system . . echo. "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5 |
| 5108 | echoscip-shell system . . echo. $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6 |
| 5109 | automakescip-shell system . . automake. --version > confauto.out 2>&1 |
| 5110 | if $EGREP $grep_version confauto.out >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1; then |
| 5111 | echoscip-shell system . . echo. "$as_me:$LINENO: result: yes" >&5 |
| 5112 | echoscip-shell system . . echo. "${ECHO_T}yes" >&6 |
| 5113 | else |
| 5114 | rmscip-shell system . . rm. -f confauto.out |
| 5115 | echoscip-shell system . . echo. "$as_me:$LINENO: result: no" >&5 |
| 5116 | echoscip-shell system . . echo. "${ECHO_T}no" >&6 |
| 5117 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5 |
| 5118 | echoscip-shell system . . echo. "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;} |
| 5119 | { (exit 1); exit 1; }; } |
| 5120 | fi |
| 5121 | rmscip-shell system . . rm. -f confauto.out |
| 5122 | |
| 5123 | # Check if the executable automake is picked up from the correct location |
| 5124 | echoscip-shell system . . echo. "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5 |
| 5125 | echoscip-shell system . . echo. $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6 |
| 5126 | automake_dir=`whichscip-shell system . . which. automake | sedscip-shell system . . sed. -e 's=/automake=='` |
| 5127 | automake_dir=`cd $automake_dir; pwdscip-shell system . . pwd.` |
| 5128 | if testscip-shell system . . test. x$AUTOTOOLS_DIR = x; then |
| 5129 | want_dir=$AUTOTOOLS_DFLT/bin |
| 5130 | else |
| 5131 | want_dir=$AUTOTOOLS_DIR/bin |
| 5132 | fi |
| 5133 | if testscip-shell system . . test. $automake_dir = `cd $want_dir; pwdscip-shell system . . pwd.`; then |
| 5134 | echoscip-shell system . . echo. "$as_me:$LINENO: result: yes" >&5 |
| 5135 | echoscip-shell system . . echo. "${ECHO_T}yes" >&6 |
| 5136 | else |
| 5137 | rmscip-shell system . . rm. -f confauto.out |
| 5138 | echoscip-shell system . . echo. "$as_me:$LINENO: result: no" >&5 |
| 5139 | echoscip-shell system . . echo. "${ECHO_T}no" >&6 |
| 5140 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5 |
| 5141 | echoscip-shell system . . echo. "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;} |
| 5142 | { (exit 1); exit 1; }; } |
| 5143 | fi |
| 5144 | |
| 5145 | # Check if this is the correct version of libtool (with escaped dots) |
| 5146 | if testscip-shell system . . test. x$AUTOTOOLS_DIR = x; then |
| 5147 | want_dir=$AUTOTOOLS_DFLT/share |
| 5148 | else |
| 5149 | want_dir=$AUTOTOOLS_DIR/share |
| 5150 | fi |
| 5151 | correct_version='1.5.22' |
| 5152 | grep_version=`echoscip-shell system . . echo. $correct_version | sedscip-shell system . . sed. -e 's/\\./\\\\\\./g'` |
| 5153 | if testscip-shell system . . test. -r $want_dir/libtool/ltmain.sh; then |
| 5154 | have_ltmain=yes |
| 5155 | : |
| 5156 | else |
| 5157 | have_ltmain=no |
| 5158 | : |
| 5159 | fi |
| 5160 | |
| 5161 | echoscip-shell system . . echo. "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5 |
| 5162 | echoscip-shell system . . echo. $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6 |
| 5163 | if testscip-shell system . . test. $have_ltmain = yes; then |
| 5164 | if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1; then |
| 5165 | echoscip-shell system . . echo. "$as_me:$LINENO: result: yes" >&5 |
| 5166 | echoscip-shell system . . echo. "${ECHO_T}yes" >&6 |
| 5167 | else |
| 5168 | echoscip-shell system . . echo. "$as_me:$LINENO: result: no" >&5 |
| 5169 | echoscip-shell system . . echo. "${ECHO_T}no" >&6 |
| 5170 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5 |
| 5171 | echoscip-shell system . . echo. "$as_me: error: You don't have the correct version of libtool." >&2;} |
| 5172 | { (exit 1); exit 1; }; } |
| 5173 | fi |
| 5174 | else |
| 5175 | echoscip-shell system . . echo. "$as_me:$LINENO: result: no" >&5 |
| 5176 | echoscip-shell system . . echo. "${ECHO_T}no" >&6 |
| 5177 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5 |
| 5178 | echoscip-shell system . . echo. "$as_me: error: I cannot find the ltmain.sh file." >&2;} |
| 5179 | { (exit 1); exit 1; }; } |
| 5180 | fi |
| 5181 | fi |
| 5182 | |
| 5183 | # Check if we can find the libtool file |
| 5184 | if testscip-shell system . . test. x$AUTOTOOLS_DIR = x; then |
| 5185 | want_dir=$AUTOTOOLS_DFLT/share |
| 5186 | else |
| 5187 | want_dir=$AUTOTOOLS_DIR/share |
| 5188 | fi |
| 5189 | if testscip-shell system . . test. -r $want_dir/aclocal/libtool.m4; then |
| 5190 | LIBTOOLM4="$want_dir/aclocal/libtool.m4" |
| 5191 | : |
| 5192 | else |
| 5193 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5 |
| 5194 | echoscip-shell system . . echo. "$as_me: error: I cannot find the libtool.m4 file." >&2;} |
| 5195 | { (exit 1); exit 1; }; } |
| 5196 | : |
| 5197 | fi |
| 5198 | |
| 5199 | |
| 5200 | # Check if we have an Dependencies file |
| 5201 | if testscip-shell system . . test. -r $srcdir/Dependencies; then |
| 5202 | coin_have_externals=yes |
| 5203 | fi |
| 5204 | # Check if subversion is installed and understands https |
| 5205 | # Extract the first word of "svn", so it can be a program name with args. |
| 5206 | set dummy svn; ac_word=$2 |
| 5207 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5208 | echoscip-shell system . . echo. $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5209 | if testscip-shell system . . test. "${ac_cv_prog_have_svn+set}" = set; then |
| 5210 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 5211 | else |
| 5212 | if testscip-shell system . . test. -n "$have_svn"; then |
| 5213 | ac_cv_prog_have_svn="$have_svn" # Let the user override the test. |
| 5214 | else |
| 5215 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5216 | for as_dir in $PATH |
| 5217 | do |
| 5218 | IFS=$as_save_IFS |
| 5219 | testscip-shell system . . test. -z "$as_dir" && as_dir=. |
| 5220 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5221 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5222 | ac_cv_prog_have_svn="yes" |
| 5223 | echoscip-shell system . . echo. "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5224 | break 2 |
| 5225 | fi |
| 5226 | done |
| 5227 | done |
| 5228 | |
| 5229 | testscip-shell system . . test. -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no" |
| 5230 | fi |
| 5231 | fi |
| 5232 | have_svn=$ac_cv_prog_have_svn |
| 5233 | if testscip-shell system . . test. -n "$have_svn"; then |
| 5234 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $have_svn" >&5 |
| 5235 | echoscip-shell system . . echo. "${ECHO_T}$have_svn" >&6 |
| 5236 | else |
| 5237 | echoscip-shell system . . echo. "$as_me:$LINENO: result: no" >&5 |
| 5238 | echoscip-shell system . . echo. "${ECHO_T}no" >&6 |
| 5239 | fi |
| 5240 | |
| 5241 | if testscip-shell system . . test. x$have_svn = xyes; then |
| 5242 | echoscip-shell system . . echo. "$as_me:$LINENO: checking whether svn understands https" >&5 |
| 5243 | echoscip-shell system . . echo. $ECHO_N "checking whether svn understands https... $ECHO_C" >&6 |
| 5244 | if testscip-shell system . . test. "${ac_cv_svn_understands_https+set}" = set; then |
| 5245 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 5246 | else |
| 5247 | svn --version > confauto.out 2>&1 |
| 5248 | if $EGREP https confauto.out >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1; then |
| 5249 | ac_cv_svn_understands_https=yes |
| 5250 | else |
| 5251 | ac_cv_svn_understands_https=no |
| 5252 | have_svn=no |
| 5253 | ac_cv_prog_have_svn=no |
| 5254 | fi |
| 5255 | rmscip-shell system . . rm. -f confauto.out |
| 5256 | fi |
| 5257 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5 |
| 5258 | echoscip-shell system . . echo. "${ECHO_T}$ac_cv_svn_understands_https" >&6 |
| 5259 | fi |
| 5260 | |
| 5261 | # Find the location of the BuildTools directory |
| 5262 | BUILDTOOLSDIR= |
| 5263 | if testscip-shell system . . test. -r $srcdir/BuildTools/coin.m4; then |
| 5264 | BUILDTOOLSDIR=$srcdir/BuildTools |
| 5265 | elif testscip-shell system . . test. -r $srcdir/../BuildTools/coin.m4; then |
| 5266 | BUILDTOOLSDIR=$srcdir/../BuildTools |
| 5267 | elif testscip-shell system . . test. -r $srcdir/../../BuildTools/coin.m4; then |
| 5268 | BUILDTOOLSDIR=$srcdir/../../BuildTools |
| 5269 | elif testscip-shell system . . test. -r $srcdir/../../../BuildTools/coin.m4; then |
| 5270 | BUILDTOOLSDIR=$srcdir/../../../BuildTools |
| 5271 | else |
| 5272 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5 |
| 5273 | echoscip-shell system . . echo. "$as_me: error: Cannot find the BuildTools directory" >&2;} |
| 5274 | { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; } |
| 5275 | fi |
| 5276 | |
| 5277 | |
| 5278 | # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools |
| 5279 | if testscip-shell system . . test. "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then |
| 5280 | $LN_S `cd $BUILDTOOLSDIR; pwdscip-shell system . . pwd.` "$srcdir/BuildTools" |
| 5281 | fi |
| 5282 | |
| 5283 | # The following variable is set to the name of the directory where |
| 5284 | # the autotool scripts are located |
| 5285 | |
| 5286 | AUX_DIR=$ac_aux_dir |
| 5287 | fi |
| 5288 | |
| 5289 | # helpful variable for the base directory of this package |
| 5290 | abs_source_dir=`cd $srcdir; pwdscip-shell system . . pwd.` |
| 5291 | |
| 5292 | |
| 5293 | # Stuff for example Makefiles |
| 5294 | if testscip-shell system . . test. x$prefix = xNONE; then |
| 5295 | full_prefix=$ac_default_prefix |
| 5296 | else |
| 5297 | full_prefix=$prefix |
| 5298 | fi |
| 5299 | |
| 5300 | |
| 5301 | abs_lib_dir=$full_prefix/lib |
| 5302 | |
| 5303 | abs_include_dir=$full_prefix/include |
| 5304 | |
| 5305 | abs_bin_dir=$full_prefix/bin |
| 5306 | |
| 5307 | |
| 5308 | |
| 5309 | if testscip-shell system . . test. $coin_have_externals = yes && testscip-shell system . . test. x$have_svn = xyes; then |
| 5310 | HAVE_EXTERNALS_TRUE= |
| 5311 | HAVE_EXTERNALS_FALSE='#' |
| 5312 | else |
| 5313 | HAVE_EXTERNALS_TRUE='#' |
| 5314 | HAVE_EXTERNALS_FALSE= |
| 5315 | fi |
| 5316 | |
| 5317 | |
| 5318 | # AC_MSG_NOTICE([End automake initialisation.]) |
| 5319 | |
| 5320 | |
| 5321 | |
| 5322 | LIBTOOL= |
| 5323 | if testscip-shell system . . test. -f ../libtool; then |
| 5324 | coin_config_dir=.. |
| 5325 | LIBTOOL='$(SHELL) $(top_builddir)/../libtool' |
| 5326 | fi |
| 5327 | if testscip-shell system . . test. "x$LIBTOOL" = x; then |
| 5328 | if testscip-shell system . . test. -f ../../libtool; then |
| 5329 | coin_config_dir=../.. |
| 5330 | LIBTOOL='$(SHELL) $(top_builddir)/../../libtool' |
| 5331 | fi |
| 5332 | fi |
| 5333 | |
| 5334 | if testscip-shell system . . test. "x$LIBTOOL" = x; then |
| 5335 | # AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).]) |
| 5336 | # Stuff for libtool |
| 5337 | # Check whether --enable-shared or --disable-shared was given. |
| 5338 | if testscip-shell system . . test. "${enable_shared+set}" = set; then |
| 5339 | enableval="$enable_shared" |
| 5340 | p=${PACKAGE-default} |
| 5341 | case $enableval in |
| 5342 | yes) enable_shared=yes ;; |
| 5343 | no) enable_shared=no ;; |
| 5344 | *) |
| 5345 | enable_shared=no |
| 5346 | # Look at the argument we got. We use all the common list separators. |
| 5347 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 5348 | for pkg in $enableval; do |
| 5349 | IFS="$lt_save_ifs" |
| 5350 | if testscip-shell system . . test. "X$pkg" = "X$p"; then |
| 5351 | enable_shared=yes |
| 5352 | fi |
| 5353 | done |
| 5354 | IFS="$lt_save_ifs" |
| 5355 | ;; |
| 5356 | esac |
| 5357 | else |
| 5358 | enable_shared=yes |
| 5359 | fi; |
| 5360 | |
| 5361 | # Check whether --enable-fast-install or --disable-fast-install was given. |
| 5362 | if testscip-shell system . . test. "${enable_fast_install+set}" = set; then |
| 5363 | enableval="$enable_fast_install" |
| 5364 | p=${PACKAGE-default} |
| 5365 | case $enableval in |
| 5366 | yes) enable_fast_install=yes ;; |
| 5367 | no) enable_fast_install=no ;; |
| 5368 | *) |
| 5369 | enable_fast_install=no |
| 5370 | # Look at the argument we got. We use all the common list separators. |
| 5371 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 5372 | for pkg in $enableval; do |
| 5373 | IFS="$lt_save_ifs" |
| 5374 | if testscip-shell system . . test. "X$pkg" = "X$p"; then |
| 5375 | enable_fast_install=yes |
| 5376 | fi |
| 5377 | done |
| 5378 | IFS="$lt_save_ifs" |
| 5379 | ;; |
| 5380 | esac |
| 5381 | else |
| 5382 | enable_fast_install=yes |
| 5383 | fi; |
| 5384 | |
| 5385 | echoscip-shell system . . echo. "$as_me:$LINENO: checking host system type" >&5 |
| 5386 | echoscip-shell system . . echo. $ECHO_N "checking host system type... $ECHO_C" >&6 |
| 5387 | if testscip-shell system . . test. "${ac_cv_host+set}" = set; then |
| 5388 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 5389 | else |
| 5390 | ac_cv_host_alias=$host_alias |
| 5391 | testscip-shell system . . test. -z "$ac_cv_host_alias" && |
| 5392 | ac_cv_host_alias=$ac_cv_build_alias |
| 5393 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
| 5394 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
| 5395 | echoscip-shell system . . echo. "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
| 5396 | { (exit 1); exit 1; }; } |
| 5397 | |
| 5398 | fi |
| 5399 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 5400 | echoscip-shell system . . echo. "${ECHO_T}$ac_cv_host" >&6 |
| 5401 | host=$ac_cv_host |
| 5402 | host_cpu=`echoscip-shell system . . echo. $ac_cv_host | sedscip-shell system . . sed. 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 5403 | host_vendor=`echoscip-shell system . . echo. $ac_cv_host | sedscip-shell system . . sed. 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 5404 | host_os=`echoscip-shell system . . echo. $ac_cv_host | sedscip-shell system . . sed. 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 5405 | |
| 5406 | |
| 5407 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
| 5408 | echoscip-shell system . . echo. $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 |
| 5409 | if testscip-shell system . . test. "${lt_cv_path_SED+set}" = set; then |
| 5410 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 5411 | else |
| 5412 | # Loop through the user's path and test for sed and gsed. |
| 5413 | # Then use that list of sed's as ones to test for truncation. |
| 5414 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5415 | for as_dir in $PATH |
| 5416 | do |
| 5417 | IFS=$as_save_IFS |
| 5418 | testscip-shell system . . test. -z "$as_dir" && as_dir=. |
| 5419 | for lt_ac_prog in sed gsed; do |
| 5420 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5421 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
| 5422 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
| 5423 | fi |
| 5424 | done |
| 5425 | done |
| 5426 | done |
| 5427 | lt_ac_max=0 |
| 5428 | lt_ac_count=0 |
| 5429 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
| 5430 | # along with /bin/sed that truncates output. |
| 5431 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sedscip-shell filesystem . . `/usr/xpg4/bin/sed`.; do |
| 5432 | testscip-shell system . . test. ! -f $lt_ac_sed && continue |
| 5433 | catscip-shell system . . cat. /dev/nullscip-shell filesystem . . `/dev/null`. > conftest.in |
| 5434 | lt_ac_count=0 |
| 5435 | echoscip-shell system . . echo. $ECHO_N "0123456789$ECHO_C" >conftest.in |
| 5436 | # Check for GNU sed and select it if it is found. |
| 5437 | if "$lt_ac_sed" --version 2>&1 < /dev/nullscip-shell filesystem . . `/dev/null`. | grepscip-shell system . . grep. 'GNU' > /dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 5438 | lt_cv_path_SED=$lt_ac_sed |
| 5439 | break |
| 5440 | fi |
| 5441 | while truescip-shell system . . true.; do |
| 5442 | catscip-shell system . . cat. conftest.in conftest.in >conftest.tmp |
| 5443 | mvscip-shell system . . mv. conftest.tmp conftest.in |
| 5444 | cpscip-shell system . . cp. conftest.in conftest.nl |
| 5445 | echoscip-shell system . . echo. >>conftest.nl |
| 5446 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
| 5447 | cmpscip-shell system . . cmp. -s conftest.out conftest.nl || break |
| 5448 | # 10000 chars as input seems more than enough |
| 5449 | testscip-shell system . . test. $lt_ac_count -gt 10 && break |
| 5450 | lt_ac_count=`exprscip-shell system . . expr. $lt_ac_count + 1` |
| 5451 | if testscip-shell system . . test. $lt_ac_count -gt $lt_ac_max; then |
| 5452 | lt_ac_max=$lt_ac_count |
| 5453 | lt_cv_path_SED=$lt_ac_sed |
| 5454 | fi |
| 5455 | done |
| 5456 | done |
| 5457 | |
| 5458 | fi |
| 5459 | |
| 5460 | SED=$lt_cv_path_SED |
| 5461 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $SED" >&5 |
| 5462 | echoscip-shell system . . echo. "${ECHO_T}$SED" >&6 |
| 5463 | |
| 5464 | |
| 5465 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
| 5466 | if testscip-shell system . . test. "${with_gnu_ld+set}" = set; then |
| 5467 | withval="$with_gnu_ld" |
| 5468 | testscip-shell system . . test. "$withval" = no || with_gnu_ld=yes |
| 5469 | else |
| 5470 | with_gnu_ld=no |
| 5471 | fi; |
| 5472 | ac_prog=ld |
| 5473 | if testscip-shell system . . test. "$GCC" = yes; then |
| 5474 | # Check if gcc -print-prog-name=ld gives a path. |
| 5475 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 5476 | echoscip-shell system . . echo. $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
| 5477 | case $host in |
| 5478 | *-*-mingw*) |
| 5479 | # gcc leaves a trailing carriage return which upsets mingw |
| 5480 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | trscip-shell system . . tr. -d '\015'` ;; |
| 5481 | *) |
| 5482 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 5483 | esac |
| 5484 | case $ac_prog in |
| 5485 | # Accept absolute paths. |
| 5486 | [\\/]* | ?:[\\/]*) |
| 5487 | re_direlt='/[^/][^/]*/\.\./scip-shell filesystem . . `/[^/][^/]*/\.\./`.' |
| 5488 | # Canonicalize the pathname of ld |
| 5489 | ac_prog=`echoscip-shell system . . echo. $ac_prog| $SED 's%\\\\%/%g'` |
| 5490 | while echoscip-shell system . . echo. $ac_prog | grepscip-shell system . . grep. "$re_direlt" > /dev/nullscip-shell filesystem . . `/dev/null`. 2>&1; do |
| 5491 | ac_prog=`echoscip-shell system . . echo. $ac_prog| $SED "s%$re_direlt%/%"` |
| 5492 | done |
| 5493 | testscip-shell system . . test. -z "$LD" && LD="$ac_prog" |
| 5494 | ;; |
| 5495 | "") |
| 5496 | # If it fails, then pretend we aren't using GCC. |
| 5497 | ac_prog=ld |
| 5498 | ;; |
| 5499 | *) |
| 5500 | # If it is relative, then search for the first ld in PATH. |
| 5501 | with_gnu_ld=unknown |
| 5502 | ;; |
| 5503 | esac |
| 5504 | elif testscip-shell system . . test. "$with_gnu_ld" = yes; then |
| 5505 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for GNU ld" >&5 |
| 5506 | echoscip-shell system . . echo. $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
| 5507 | else |
| 5508 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 5509 | echoscip-shell system . . echo. $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
| 5510 | fi |
| 5511 | if testscip-shell system . . test. "${lt_cv_path_LD+set}" = set; then |
| 5512 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 5513 | else |
| 5514 | if testscip-shell system . . test. -z "$LD"; then |
| 5515 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 5516 | for ac_dir in $PATH; do |
| 5517 | IFS="$lt_save_ifs" |
| 5518 | testscip-shell system . . test. -z "$ac_dir" && ac_dir=. |
| 5519 | if testscip-shell system . . test. -f "$ac_dir/$ac_prog" || testscip-shell system . . test. -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 5520 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 5521 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 5522 | # but apparently some variants of GNU ld only accept -v. |
| 5523 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 5524 | case `"$lt_cv_path_LD" -v 2>&1 </dev/nullscip-shell filesystem . . `/dev/null`.` in |
| 5525 | *GNU* | *'with BFD'*) |
| 5526 | testscip-shell system . . test. "$with_gnu_ld" != no && break |
| 5527 | ;; |
| 5528 | *) |
| 5529 | testscip-shell system . . test. "$with_gnu_ld" != yes && break |
| 5530 | ;; |
| 5531 | esac |
| 5532 | fi |
| 5533 | done |
| 5534 | IFS="$lt_save_ifs" |
| 5535 | else |
| 5536 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 5537 | fi |
| 5538 | fi |
| 5539 | |
| 5540 | LD="$lt_cv_path_LD" |
| 5541 | if testscip-shell system . . test. -n "$LD"; then |
| 5542 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $LD" >&5 |
| 5543 | echoscip-shell system . . echo. "${ECHO_T}$LD" >&6 |
| 5544 | else |
| 5545 | echoscip-shell system . . echo. "$as_me:$LINENO: result: no" >&5 |
| 5546 | echoscip-shell system . . echo. "${ECHO_T}no" >&6 |
| 5547 | fi |
| 5548 | testscip-shell system . . test. -z "$LD" && { { echoscip-shell system . . echo. "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 5549 | echoscip-shell system . . echo. "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 5550 | { (exit 1); exit 1; }; } |
| 5551 | echoscip-shell system . . echo. "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 5552 | echoscip-shell system . . echo. $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
| 5553 | if testscip-shell system . . test. "${lt_cv_prog_gnu_ld+set}" = set; then |
| 5554 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 5555 | else |
| 5556 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
| 5557 | case `$LD -v 2>&1 </dev/nullscip-shell filesystem . . `/dev/null`.` in |
| 5558 | *GNU* | *'with BFD'*) |
| 5559 | lt_cv_prog_gnu_ld=yes |
| 5560 | ;; |
| 5561 | *) |
| 5562 | lt_cv_prog_gnu_ld=no |
| 5563 | ;; |
| 5564 | esac |
| 5565 | fi |
| 5566 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 5567 | echoscip-shell system . . echo. "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
| 5568 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 5569 | |
| 5570 | |
| 5571 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
| 5572 | echoscip-shell system . . echo. $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 |
| 5573 | if testscip-shell system . . test. "${lt_cv_ld_reload_flag+set}" = set; then |
| 5574 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 5575 | else |
| 5576 | lt_cv_ld_reload_flag='-r' |
| 5577 | fi |
| 5578 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
| 5579 | echoscip-shell system . . echo. "${ECHO_T}$lt_cv_ld_reload_flag" >&6 |
| 5580 | reload_flag=$lt_cv_ld_reload_flag |
| 5581 | case $reload_flag in |
| 5582 | "" | " "*) ;; |
| 5583 | *) reload_flag=" $reload_flag" ;; |
| 5584 | esac |
| 5585 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 5586 | case $host_os in |
| 5587 | darwin*) |
| 5588 | if testscip-shell system . . test. "$GCC" = yes; then |
| 5589 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
| 5590 | else |
| 5591 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 5592 | fi |
| 5593 | ;; |
| 5594 | esac |
| 5595 | |
| 5596 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
| 5597 | echoscip-shell system . . echo. $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
| 5598 | if testscip-shell system . . test. "${lt_cv_path_NM+set}" = set; then |
| 5599 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 5600 | else |
| 5601 | if testscip-shell system . . test. -n "$NM"; then |
| 5602 | # Let the user override the test. |
| 5603 | lt_cv_path_NM="$NM" |
| 5604 | else |
| 5605 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 5606 | if testscip-shell system . . test. -n "$ac_tool_prefix" && testscip-shell system . . test. "$build" = "$host"; then |
| 5607 | lt_nm_to_check="$lt_nm_to_check nm" |
| 5608 | fi |
| 5609 | for lt_tmp_nm in $lt_nm_to_check; do |
| 5610 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 5611 | for ac_dir in $PATH /usr/ccs/bin/elfscip-shell filesystem . . `/usr/ccs/bin/elf`. /usr/ccs/binscip-shell filesystem . . `/usr/ccs/bin`. /usr/ucbscip-shell filesystem . . `/usr/ucb`. /binscip-shell filesystem . . `/bin`.; do |
| 5612 | IFS="$lt_save_ifs" |
| 5613 | testscip-shell system . . test. -z "$ac_dir" && ac_dir=. |
| 5614 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 5615 | if testscip-shell system . . test. -f "$tmp_nm" || testscip-shell system . . test. -f "$tmp_nm$ac_exeext" ; then |
| 5616 | # Check to see if the nm accepts a BSD-compat flag. |
| 5617 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 5618 | # nm: unknown option "B" ignored |
| 5619 | # Tru64's nm complains that /dev/null is an invalid object file |
| 5620 | case `"$tmp_nm" -B /dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 | sedscip-shell system . . sed. '1q'` in |
| 5621 | */dev/null* | *'Invalid file or object type'*) |
| 5622 | lt_cv_path_NM="$tmp_nm -B" |
| 5623 | break |
| 5624 | ;; |
| 5625 | *) |
| 5626 | case `"$tmp_nm" -p /dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 | sedscip-shell system . . sed. '1q'` in |
| 5627 | */dev/null*) |
| 5628 | lt_cv_path_NM="$tmp_nm -p" |
| 5629 | break |
| 5630 | ;; |
| 5631 | *) |
| 5632 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 5633 | continue # so that we can try to find one that supports BSD flags |
| 5634 | ;; |
| 5635 | esac |
| 5636 | ;; |
| 5637 | esac |
| 5638 | fi |
| 5639 | done |
| 5640 | IFS="$lt_save_ifs" |
| 5641 | done |
| 5642 | testscip-shell system . . test. -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 5643 | fi |
| 5644 | fi |
| 5645 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
| 5646 | echoscip-shell system . . echo. "${ECHO_T}$lt_cv_path_NM" >&6 |
| 5647 | NM="$lt_cv_path_NM" |
| 5648 | |
| 5649 | echoscip-shell system . . echo. "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
| 5650 | echoscip-shell system . . echo. $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 |
| 5651 | if testscip-shell system . . test. "${lt_cv_deplibs_check_method+set}" = set; then |
| 5652 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 5653 | else |
| 5654 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 5655 | lt_cv_file_magic_test_file= |
| 5656 | lt_cv_deplibs_check_method='unknown' |
| 5657 | # Need to set the preceding variable on all platforms that support |
| 5658 | # interlibrary dependencies. |
| 5659 | # 'none' -- dependencies not supported. |
| 5660 | # `unknown' -- same as none, but documents that we really don't know. |
| 5661 | # 'pass_all' -- all dependencies passed with no checks. |
| 5662 | # 'test_compile' -- check by making test program. |
| 5663 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 5664 | # which responds to the $file_magic_cmd with a given extended regex. |
| 5665 | # If you have `file' or equivalent on your system and you're not sure |
| 5666 | # whether `pass_all' will *always* work, you probably want this one. |
| 5667 | |
| 5668 | case $host_os in |
| 5669 | aix4* | aix5*) |
| 5670 | lt_cv_deplibs_check_method=pass_all |
| 5671 | ;; |
| 5672 | |
| 5673 | beos*) |
| 5674 | lt_cv_deplibs_check_method=pass_all |
| 5675 | ;; |
| 5676 | |
| 5677 | bsdi[45]*) |
| 5678 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 5679 | lt_cv_file_magic_cmd='/usr/bin/file -Lscip-shell filesystem . . `/usr/bin/file -L`.' |
| 5680 | lt_cv_file_magic_test_file=/shlib/libc.soscip-shell filesystem . . `/shlib/libc.so`. |
| 5681 | ;; |
| 5682 | |
| 5683 | cygwin*) |
| 5684 | # func_win32_libid is a shell function defined in ltmain.sh |
| 5685 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 5686 | lt_cv_file_magic_cmd='func_win32_libid' |
| 5687 | ;; |
| 5688 | |
| 5689 | mingw* | pw32*) |
| 5690 | # Base MSYS/MinGW do not provide the 'file' command needed by |
| 5691 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
| 5692 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 5693 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 5694 | ;; |
| 5695 | |
| 5696 | darwin* | rhapsody*) |
| 5697 | lt_cv_deplibs_check_method=pass_all |
| 5698 | ;; |
| 5699 | |
| 5700 | freebsd* | kfreebsd*-gnu | dragonfly*) |
| 5701 | if echoscip-shell system . . echo. __ELF__ | $CC -E - | grepscip-shell system . . grep. __ELF__ > /dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 5702 | case $host_cpu in |
| 5703 | i*86 ) |
| 5704 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 5705 | # Let's accept both of them until this is cleared up. |
| 5706 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
| 5707 | lt_cv_file_magic_cmd=/usr/bin/filescip-shell filesystem . . `/usr/bin/file`. |
| 5708 | lt_cv_file_magic_test_file=`echoscip-shell system . . echo. /usr/lib/libc.so.*` |
| 5709 | ;; |
| 5710 | esac |
| 5711 | else |
| 5712 | lt_cv_deplibs_check_method=pass_all |
| 5713 | fi |
| 5714 | ;; |
| 5715 | |
| 5716 | gnu*) |
| 5717 | lt_cv_deplibs_check_method=pass_all |
| 5718 | ;; |
| 5719 | |
| 5720 | hpux10.20* | hpux11*) |
| 5721 | lt_cv_file_magic_cmd=/usr/bin/filescip-shell filesystem . . `/usr/bin/file`. |
| 5722 | case $host_cpu in |
| 5723 | ia64*) |
| 5724 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 5725 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.soscip-shell filesystem . . `/usr/lib/hpux32/libc.so`. |
| 5726 | ;; |
| 5727 | hppa*64*) |
| 5728 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' |
| 5729 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.slscip-shell filesystem . . `/usr/lib/pa20_64/libc.sl`. |
| 5730 | ;; |
| 5731 | *) |
| 5732 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
| 5733 | lt_cv_file_magic_test_file=/usr/lib/libc.slscip-shell filesystem . . `/usr/lib/libc.sl`. |
| 5734 | ;; |
| 5735 | esac |
| 5736 | ;; |
| 5737 | |
| 5738 | interix3*) |
| 5739 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 5740 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| 5741 | ;; |
| 5742 | |
| 5743 | irix5* | irix6* | nonstopux*) |
| 5744 | case $LD in |
| 5745 | *-32|*"-32 ") libmagic=32-bit;; |
| 5746 | *-n32|*"-n32 ") libmagic=N32;; |
| 5747 | *-64|*"-64 ") libmagic=64-bit;; |
| 5748 | *) libmagic=never-match;; |
| 5749 | esac |
| 5750 | lt_cv_deplibs_check_method=pass_all |
| 5751 | ;; |
| 5752 | |
| 5753 | # This must be Linux ELF. |
| 5754 | linux*) |
| 5755 | lt_cv_deplibs_check_method=pass_all |
| 5756 | ;; |
| 5757 | |
| 5758 | netbsd*) |
| 5759 | if echoscip-shell system . . echo. __ELF__ | $CC -E - | grepscip-shell system . . grep. __ELF__ > /dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 5760 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 5761 | else |
| 5762 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 5763 | fi |
| 5764 | ;; |
| 5765 | |
| 5766 | newos6*) |
| 5767 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 5768 | lt_cv_file_magic_cmd=/usr/bin/filescip-shell filesystem . . `/usr/bin/file`. |
| 5769 | lt_cv_file_magic_test_file=/usr/lib/libnls.soscip-shell filesystem . . `/usr/lib/libnls.so`. |
| 5770 | ;; |
| 5771 | |
| 5772 | nto-qnx*) |
| 5773 | lt_cv_deplibs_check_method=unknown |
| 5774 | ;; |
| 5775 | |
| 5776 | openbsd*) |
| 5777 | if testscip-shell system . . test. -z "`echoscip-shell system . . echo. __ELF__ | $CC -E - | grepscip-shell system . . grep. __ELF__`" || testscip-shell system . . test. "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 5778 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
| 5779 | else |
| 5780 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 5781 | fi |
| 5782 | ;; |
| 5783 | |
| 5784 | osf3* | osf4* | osf5*) |
| 5785 | lt_cv_deplibs_check_method=pass_all |
| 5786 | ;; |
| 5787 | |
| 5788 | solaris*) |
| 5789 | lt_cv_deplibs_check_method=pass_all |
| 5790 | ;; |
| 5791 | |
| 5792 | sysv4 | sysv4.3*) |
| 5793 | case $host_vendor in |
| 5794 | motorola) |
| 5795 | 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]' |
| 5796 | lt_cv_file_magic_test_file=`echoscip-shell system . . echo. /usr/lib/libc.so*` |
| 5797 | ;; |
| 5798 | ncr) |
| 5799 | lt_cv_deplibs_check_method=pass_all |
| 5800 | ;; |
| 5801 | sequent) |
| 5802 | lt_cv_file_magic_cmd='/bin/filescip-shell filesystem . . `/bin/file`.' |
| 5803 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 5804 | ;; |
| 5805 | sni) |
| 5806 | lt_cv_file_magic_cmd='/bin/filescip-shell filesystem . . `/bin/file`.' |
| 5807 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 5808 | lt_cv_file_magic_test_file=/lib/libc.soscip-shell filesystem . . `/lib/libc.so`. |
| 5809 | ;; |
| 5810 | siemens) |
| 5811 | lt_cv_deplibs_check_method=pass_all |
| 5812 | ;; |
| 5813 | pc) |
| 5814 | lt_cv_deplibs_check_method=pass_all |
| 5815 | ;; |
| 5816 | esac |
| 5817 | ;; |
| 5818 | |
| 5819 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 5820 | lt_cv_deplibs_check_method=pass_all |
| 5821 | ;; |
| 5822 | esac |
| 5823 | |
| 5824 | fi |
| 5825 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
| 5826 | echoscip-shell system . . echo. "${ECHO_T}$lt_cv_deplibs_check_method" >&6 |
| 5827 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 5828 | deplibs_check_method=$lt_cv_deplibs_check_method |
| 5829 | testscip-shell system . . test. -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 5830 | |
| 5831 | |
| 5832 | |
| 5833 | |
| 5834 | # If no C compiler was specified, use CC. |
| 5835 | LTCC=${LTCC-"$CC"} |
| 5836 | |
| 5837 | # If no C compiler flags were specified, use CFLAGS. |
| 5838 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 5839 | |
| 5840 | # Allow CC to be a program name with arguments. |
| 5841 | compiler=$CC |
| 5842 | |
| 5843 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
| 5844 | if testscip-shell system . . test. "${enable_libtool_lock+set}" = set; then |
| 5845 | enableval="$enable_libtool_lock" |
| 5846 | |
| 5847 | fi; |
| 5848 | testscip-shell system . . test. "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 5849 | |
| 5850 | # Some flags need to be propagated to the compiler or linker for good |
| 5851 | # libtool support. |
| 5852 | case $host in |
| 5853 | ia64-*-hpux*) |
| 5854 | # Find out which ABI we are using. |
| 5855 | echoscip-shell system . . echo. 'int i;' > conftest.$ac_ext |
| 5856 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5857 | (eval $ac_compile) 2>&5 |
| 5858 | ac_status=$? |
| 5859 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5860 | (exit $ac_status); }; then |
| 5861 | case `/usr/bin/filescip-shell filesystem . . `/usr/bin/file`. conftest.$ac_objext` in |
| 5862 | *ELF-32*) |
| 5863 | HPUX_IA64_MODE="32" |
| 5864 | ;; |
| 5865 | *ELF-64*) |
| 5866 | HPUX_IA64_MODE="64" |
| 5867 | ;; |
| 5868 | esac |
| 5869 | fi |
| 5870 | rmscip-shell system . . rm. -rf conftest* |
| 5871 | ;; |
| 5872 | *-*-irix6*) |
| 5873 | # Find out which ABI we are using. |
| 5874 | echoscip-shell system . . echo. '#line 5874 "configure"' > conftest.$ac_ext |
| 5875 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5876 | (eval $ac_compile) 2>&5 |
| 5877 | ac_status=$? |
| 5878 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5879 | (exit $ac_status); }; then |
| 5880 | if testscip-shell system . . test. "$lt_cv_prog_gnu_ld" = yes; then |
| 5881 | case `/usr/bin/filescip-shell filesystem . . `/usr/bin/file`. conftest.$ac_objext` in |
| 5882 | *32-bit*) |
| 5883 | LD="${LD-ld} -melf32bsmip" |
| 5884 | ;; |
| 5885 | *N32*) |
| 5886 | LD="${LD-ld} -melf32bmipn32" |
| 5887 | ;; |
| 5888 | *64-bit*) |
| 5889 | LD="${LD-ld} -melf64bmip" |
| 5890 | ;; |
| 5891 | esac |
| 5892 | else |
| 5893 | case `/usr/bin/filescip-shell filesystem . . `/usr/bin/file`. conftest.$ac_objext` in |
| 5894 | *32-bit*) |
| 5895 | LD="${LD-ld} -32" |
| 5896 | ;; |
| 5897 | *N32*) |
| 5898 | LD="${LD-ld} -n32" |
| 5899 | ;; |
| 5900 | *64-bit*) |
| 5901 | LD="${LD-ld} -64" |
| 5902 | ;; |
| 5903 | esac |
| 5904 | fi |
| 5905 | fi |
| 5906 | rmscip-shell system . . rm. -rf conftest* |
| 5907 | ;; |
| 5908 | |
| 5909 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
| 5910 | # Find out which ABI we are using. |
| 5911 | echoscip-shell system . . echo. 'int i;' > conftest.$ac_ext |
| 5912 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5913 | (eval $ac_compile) 2>&5 |
| 5914 | ac_status=$? |
| 5915 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5916 | (exit $ac_status); }; then |
| 5917 | case `/usr/bin/filescip-shell filesystem . . `/usr/bin/file`. conftest.o` in |
| 5918 | *32-bit*) |
| 5919 | case $host in |
| 5920 | x86_64-*linux*) |
| 5921 | LD="${LD-ld} -m elf_i386" |
| 5922 | ;; |
| 5923 | ppc64-*linux*|powerpc64-*linux*) |
| 5924 | LD="${LD-ld} -m elf32ppclinux" |
| 5925 | ;; |
| 5926 | s390x-*linux*) |
| 5927 | LD="${LD-ld} -m elf_s390" |
| 5928 | ;; |
| 5929 | sparc64-*linux*) |
| 5930 | LD="${LD-ld} -m elf32_sparc" |
| 5931 | ;; |
| 5932 | esac |
| 5933 | ;; |
| 5934 | *64-bit*) |
| 5935 | case $host in |
| 5936 | x86_64-*linux*) |
| 5937 | LD="${LD-ld} -m elf_x86_64" |
| 5938 | ;; |
| 5939 | ppc*-*linux*|powerpc*-*linux*) |
| 5940 | LD="${LD-ld} -m elf64ppc" |
| 5941 | ;; |
| 5942 | s390*-*linux*) |
| 5943 | LD="${LD-ld} -m elf64_s390" |
| 5944 | ;; |
| 5945 | sparc*-*linux*) |
| 5946 | LD="${LD-ld} -m elf64_sparc" |
| 5947 | ;; |
| 5948 | esac |
| 5949 | ;; |
| 5950 | esac |
| 5951 | fi |
| 5952 | rmscip-shell system . . rm. -rf conftest* |
| 5953 | ;; |
| 5954 | |
| 5955 | *-*-sco3.2v5*) |
| 5956 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 5957 | SAVE_CFLAGS="$CFLAGS" |
| 5958 | CFLAGS="$CFLAGS -belf" |
| 5959 | echoscip-shell system . . echo. "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
| 5960 | echoscip-shell system . . echo. $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 |
| 5961 | if testscip-shell system . . test. "${lt_cv_cc_needs_belf+set}" = set; then |
| 5962 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 5963 | else |
| 5964 | ac_ext=c |
| 5965 | ac_cpp='$CPP $CPPFLAGS' |
| 5966 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5967 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5968 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5969 | |
| 5970 | catscip-shell system . . cat. >conftest.$ac_ext <<_ACEOF |
| 5971 | /* confdefs.h. */ |
| 5972 | _ACEOF |
| 5973 | catscip-shell system . . cat. confdefs.h >>conftest.$ac_ext |
| 5974 | catscip-shell system . . cat. >>conftest.$ac_ext <<_ACEOF |
| 5975 | /* end confdefs.h. */ |
| 5976 | |
| 5977 | int |
| 5978 | main () |
| 5979 | { |
| 5980 | |
| 5981 | ; |
| 5982 | return 0; |
| 5983 | } |
| 5984 | _ACEOF |
| 5985 | rmscip-shell system . . rm. -f conftest.$ac_objext conftest$ac_exeext |
| 5986 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5987 | (eval $ac_link) 2>conftest.er1 |
| 5988 | ac_status=$? |
| 5989 | grepscip-shell system . . grep. -v '^ *+' conftest.er1 >conftest.err |
| 5990 | rmscip-shell system . . rm. -f conftest.er1 |
| 5991 | catscip-shell system . . cat. conftest.err >&5 |
| 5992 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5993 | (exit $ac_status); } && |
| 5994 | { ac_try='test -z "$ac_c_werror_flag" |
| 5995 | || test ! -s conftest.err' |
| 5996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5997 | (eval $ac_try) 2>&5 |
| 5998 | ac_status=$? |
| 5999 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6000 | (exit $ac_status); }; } && |
| 6001 | { ac_try='test -s conftest$ac_exeext' |
| 6002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6003 | (eval $ac_try) 2>&5 |
| 6004 | ac_status=$? |
| 6005 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6006 | (exit $ac_status); }; }; then |
| 6007 | lt_cv_cc_needs_belf=yes |
| 6008 | else |
| 6009 | echoscip-shell system . . echo. "$as_me: failed program was:" >&5 |
| 6010 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 6011 | |
| 6012 | lt_cv_cc_needs_belf=no |
| 6013 | fi |
| 6014 | rmscip-shell system . . rm. -f conftest.err conftest.$ac_objext \ |
| 6015 | conftest$ac_exeext conftest.$ac_ext |
| 6016 | ac_ext=c |
| 6017 | ac_cpp='$CPP $CPPFLAGS' |
| 6018 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6019 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6020 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6021 | |
| 6022 | fi |
| 6023 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
| 6024 | echoscip-shell system . . echo. "${ECHO_T}$lt_cv_cc_needs_belf" >&6 |
| 6025 | if testscip-shell system . . test. x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 6026 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 6027 | CFLAGS="$SAVE_CFLAGS" |
| 6028 | fi |
| 6029 | ;; |
| 6030 | sparc*-*solaris*) |
| 6031 | # Find out which ABI we are using. |
| 6032 | echoscip-shell system . . echo. 'int i;' > conftest.$ac_ext |
| 6033 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6034 | (eval $ac_compile) 2>&5 |
| 6035 | ac_status=$? |
| 6036 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6037 | (exit $ac_status); }; then |
| 6038 | case `/usr/bin/filescip-shell filesystem . . `/usr/bin/file`. conftest.o` in |
| 6039 | *64-bit*) |
| 6040 | case $lt_cv_prog_gnu_ld in |
| 6041 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
| 6042 | *) LD="${LD-ld} -64" ;; |
| 6043 | esac |
| 6044 | ;; |
| 6045 | esac |
| 6046 | fi |
| 6047 | rmscip-shell system . . rm. -rf conftest* |
| 6048 | ;; |
| 6049 | |
| 6050 | |
| 6051 | esac |
| 6052 | |
| 6053 | need_locks="$enable_libtool_lock" |
| 6054 | |
| 6055 | |
| 6056 | ac_ext=c |
| 6057 | ac_cpp='$CPP $CPPFLAGS' |
| 6058 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6059 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6060 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6061 | echoscip-shell system . . echo. "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 6062 | echoscip-shell system . . echo. $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
| 6063 | # On Suns, sometimes $CPP names a directory. |
| 6064 | if testscip-shell system . . test. -n "$CPP" && testscip-shell system . . test. -d "$CPP"; then |
| 6065 | CPP= |
| 6066 | fi |
| 6067 | if testscip-shell system . . test. -z "$CPP"; then |
| 6068 | if testscip-shell system . . test. "${ac_cv_prog_CPP+set}" = set; then |
| 6069 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 6070 | else |
| 6071 | # Double quotes because CPP needs to be expanded |
| 6072 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cppscip-shell filesystem . . `/lib/cpp`." |
| 6073 | do |
| 6074 | ac_preproc_ok=false |
| 6075 | for ac_c_preproc_warn_flag in '' yes |
| 6076 | do |
| 6077 | # Use a header file that comes with gcc, so configuring glibc |
| 6078 | # with a fresh cross-compiler works. |
| 6079 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6080 | # <limits.h> exists even on freestanding compilers. |
| 6081 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 6082 | # not just through cpp. "Syntax error" is here to catch this case. |
| 6083 | catscip-shell system . . cat. >conftest.$ac_ext <<_ACEOF |
| 6084 | /* confdefs.h. */ |
| 6085 | _ACEOF |
| 6086 | catscip-shell system . . cat. confdefs.h >>conftest.$ac_ext |
| 6087 | catscip-shell system . . cat. >>conftest.$ac_ext <<_ACEOF |
| 6088 | /* end confdefs.h. */ |
| 6089 | #ifdef __STDC__ |
| 6090 | # include <limits.h> |
| 6091 | #else |
| 6092 | # include <assert.h> |
| 6093 | #endif |
| 6094 | Syntax error |
| 6095 | _ACEOF |
| 6096 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6097 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6098 | ac_status=$? |
| 6099 | grepscip-shell system . . grep. -v '^ *+' conftest.er1 >conftest.err |
| 6100 | rmscip-shell system . . rm. -f conftest.er1 |
| 6101 | catscip-shell system . . cat. conftest.err >&5 |
| 6102 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6103 | (exit $ac_status); } >/dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 6104 | if testscip-shell system . . test. -s conftest.err; then |
| 6105 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 6106 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 6107 | else |
| 6108 | ac_cpp_err= |
| 6109 | fi |
| 6110 | else |
| 6111 | ac_cpp_err=yes |
| 6112 | fi |
| 6113 | if testscip-shell system . . test. -z "$ac_cpp_err"; then |
| 6114 | : |
| 6115 | else |
| 6116 | echoscip-shell system . . echo. "$as_me: failed program was:" >&5 |
| 6117 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 6118 | |
| 6119 | # Broken: fails on valid input. |
| 6120 | continue |
| 6121 | fi |
| 6122 | rmscip-shell system . . rm. -f conftest.err conftest.$ac_ext |
| 6123 | |
| 6124 | # OK, works on sane cases. Now check whether non-existent headers |
| 6125 | # can be detected and how. |
| 6126 | catscip-shell system . . cat. >conftest.$ac_ext <<_ACEOF |
| 6127 | /* confdefs.h. */ |
| 6128 | _ACEOF |
| 6129 | catscip-shell system . . cat. confdefs.h >>conftest.$ac_ext |
| 6130 | catscip-shell system . . cat. >>conftest.$ac_ext <<_ACEOF |
| 6131 | /* end confdefs.h. */ |
| 6132 | #include <ac_nonexistent.h> |
| 6133 | _ACEOF |
| 6134 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6135 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6136 | ac_status=$? |
| 6137 | grepscip-shell system . . grep. -v '^ *+' conftest.er1 >conftest.err |
| 6138 | rmscip-shell system . . rm. -f conftest.er1 |
| 6139 | catscip-shell system . . cat. conftest.err >&5 |
| 6140 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6141 | (exit $ac_status); } >/dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 6142 | if testscip-shell system . . test. -s conftest.err; then |
| 6143 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 6144 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 6145 | else |
| 6146 | ac_cpp_err= |
| 6147 | fi |
| 6148 | else |
| 6149 | ac_cpp_err=yes |
| 6150 | fi |
| 6151 | if testscip-shell system . . test. -z "$ac_cpp_err"; then |
| 6152 | # Broken: success on invalid input. |
| 6153 | continue |
| 6154 | else |
| 6155 | echoscip-shell system . . echo. "$as_me: failed program was:" >&5 |
| 6156 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 6157 | |
| 6158 | # Passes both tests. |
| 6159 | ac_preproc_ok=: |
| 6160 | break |
| 6161 | fi |
| 6162 | rmscip-shell system . . rm. -f conftest.err conftest.$ac_ext |
| 6163 | |
| 6164 | done |
| 6165 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 6166 | rmscip-shell system . . rm. -f conftest.err conftest.$ac_ext |
| 6167 | if $ac_preproc_ok; then |
| 6168 | break |
| 6169 | fi |
| 6170 | |
| 6171 | done |
| 6172 | ac_cv_prog_CPP=$CPP |
| 6173 | |
| 6174 | fi |
| 6175 | CPP=$ac_cv_prog_CPP |
| 6176 | else |
| 6177 | ac_cv_prog_CPP=$CPP |
| 6178 | fi |
| 6179 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $CPP" >&5 |
| 6180 | echoscip-shell system . . echo. "${ECHO_T}$CPP" >&6 |
| 6181 | ac_preproc_ok=false |
| 6182 | for ac_c_preproc_warn_flag in '' yes |
| 6183 | do |
| 6184 | # Use a header file that comes with gcc, so configuring glibc |
| 6185 | # with a fresh cross-compiler works. |
| 6186 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6187 | # <limits.h> exists even on freestanding compilers. |
| 6188 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 6189 | # not just through cpp. "Syntax error" is here to catch this case. |
| 6190 | catscip-shell system . . cat. >conftest.$ac_ext <<_ACEOF |
| 6191 | /* confdefs.h. */ |
| 6192 | _ACEOF |
| 6193 | catscip-shell system . . cat. confdefs.h >>conftest.$ac_ext |
| 6194 | catscip-shell system . . cat. >>conftest.$ac_ext <<_ACEOF |
| 6195 | /* end confdefs.h. */ |
| 6196 | #ifdef __STDC__ |
| 6197 | # include <limits.h> |
| 6198 | #else |
| 6199 | # include <assert.h> |
| 6200 | #endif |
| 6201 | Syntax error |
| 6202 | _ACEOF |
| 6203 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6204 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6205 | ac_status=$? |
| 6206 | grepscip-shell system . . grep. -v '^ *+' conftest.er1 >conftest.err |
| 6207 | rmscip-shell system . . rm. -f conftest.er1 |
| 6208 | catscip-shell system . . cat. conftest.err >&5 |
| 6209 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6210 | (exit $ac_status); } >/dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 6211 | if testscip-shell system . . test. -s conftest.err; then |
| 6212 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 6213 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 6214 | else |
| 6215 | ac_cpp_err= |
| 6216 | fi |
| 6217 | else |
| 6218 | ac_cpp_err=yes |
| 6219 | fi |
| 6220 | if testscip-shell system . . test. -z "$ac_cpp_err"; then |
| 6221 | : |
| 6222 | else |
| 6223 | echoscip-shell system . . echo. "$as_me: failed program was:" >&5 |
| 6224 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 6225 | |
| 6226 | # Broken: fails on valid input. |
| 6227 | continue |
| 6228 | fi |
| 6229 | rmscip-shell system . . rm. -f conftest.err conftest.$ac_ext |
| 6230 | |
| 6231 | # OK, works on sane cases. Now check whether non-existent headers |
| 6232 | # can be detected and how. |
| 6233 | catscip-shell system . . cat. >conftest.$ac_ext <<_ACEOF |
| 6234 | /* confdefs.h. */ |
| 6235 | _ACEOF |
| 6236 | catscip-shell system . . cat. confdefs.h >>conftest.$ac_ext |
| 6237 | catscip-shell system . . cat. >>conftest.$ac_ext <<_ACEOF |
| 6238 | /* end confdefs.h. */ |
| 6239 | #include <ac_nonexistent.h> |
| 6240 | _ACEOF |
| 6241 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6242 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6243 | ac_status=$? |
| 6244 | grepscip-shell system . . grep. -v '^ *+' conftest.er1 >conftest.err |
| 6245 | rmscip-shell system . . rm. -f conftest.er1 |
| 6246 | catscip-shell system . . cat. conftest.err >&5 |
| 6247 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6248 | (exit $ac_status); } >/dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 6249 | if testscip-shell system . . test. -s conftest.err; then |
| 6250 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 6251 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 6252 | else |
| 6253 | ac_cpp_err= |
| 6254 | fi |
| 6255 | else |
| 6256 | ac_cpp_err=yes |
| 6257 | fi |
| 6258 | if testscip-shell system . . test. -z "$ac_cpp_err"; then |
| 6259 | # Broken: success on invalid input. |
| 6260 | continue |
| 6261 | else |
| 6262 | echoscip-shell system . . echo. "$as_me: failed program was:" >&5 |
| 6263 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 6264 | |
| 6265 | # Passes both tests. |
| 6266 | ac_preproc_ok=: |
| 6267 | break |
| 6268 | fi |
| 6269 | rmscip-shell system . . rm. -f conftest.err conftest.$ac_ext |
| 6270 | |
| 6271 | done |
| 6272 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 6273 | rmscip-shell system . . rm. -f conftest.err conftest.$ac_ext |
| 6274 | if $ac_preproc_ok; then |
| 6275 | : |
| 6276 | else |
| 6277 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 6278 | See \`config.log' for more details." >&5 |
| 6279 | echoscip-shell system . . echo. "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 6280 | See \`config.log' for more details." >&2;} |
| 6281 | { (exit 1); exit 1; }; } |
| 6282 | fi |
| 6283 | |
| 6284 | ac_ext=c |
| 6285 | ac_cpp='$CPP $CPPFLAGS' |
| 6286 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6287 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6288 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6289 | |
| 6290 | |
| 6291 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 6292 | echoscip-shell system . . echo. $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 6293 | if testscip-shell system . . test. "${ac_cv_header_stdc+set}" = set; then |
| 6294 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 6295 | else |
| 6296 | catscip-shell system . . cat. >conftest.$ac_ext <<_ACEOF |
| 6297 | /* confdefs.h. */ |
| 6298 | _ACEOF |
| 6299 | catscip-shell system . . cat. confdefs.h >>conftest.$ac_ext |
| 6300 | catscip-shell system . . cat. >>conftest.$ac_ext <<_ACEOF |
| 6301 | /* end confdefs.h. */ |
| 6302 | #include <stdlib.h> |
| 6303 | #include <stdarg.h> |
| 6304 | #include <string.h> |
| 6305 | #include <float.h> |
| 6306 | |
| 6307 | int |
| 6308 | main () |
| 6309 | { |
| 6310 | |
| 6311 | ; |
| 6312 | return 0; |
| 6313 | } |
| 6314 | _ACEOF |
| 6315 | rmscip-shell system . . rm. -f conftest.$ac_objext |
| 6316 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6317 | (eval $ac_compile) 2>conftest.er1 |
| 6318 | ac_status=$? |
| 6319 | grepscip-shell system . . grep. -v '^ *+' conftest.er1 >conftest.err |
| 6320 | rmscip-shell system . . rm. -f conftest.er1 |
| 6321 | catscip-shell system . . cat. conftest.err >&5 |
| 6322 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6323 | (exit $ac_status); } && |
| 6324 | { ac_try='test -z "$ac_c_werror_flag" |
| 6325 | || test ! -s conftest.err' |
| 6326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6327 | (eval $ac_try) 2>&5 |
| 6328 | ac_status=$? |
| 6329 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6330 | (exit $ac_status); }; } && |
| 6331 | { ac_try='test -s conftest.$ac_objext' |
| 6332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6333 | (eval $ac_try) 2>&5 |
| 6334 | ac_status=$? |
| 6335 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6336 | (exit $ac_status); }; }; then |
| 6337 | ac_cv_header_stdc=yes |
| 6338 | else |
| 6339 | echoscip-shell system . . echo. "$as_me: failed program was:" >&5 |
| 6340 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 6341 | |
| 6342 | ac_cv_header_stdc=no |
| 6343 | fi |
| 6344 | rmscip-shell system . . rm. -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6345 | |
| 6346 | if testscip-shell system . . test. $ac_cv_header_stdc = yes; then |
| 6347 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 6348 | catscip-shell system . . cat. >conftest.$ac_ext <<_ACEOF |
| 6349 | /* confdefs.h. */ |
| 6350 | _ACEOF |
| 6351 | catscip-shell system . . cat. confdefs.h >>conftest.$ac_ext |
| 6352 | catscip-shell system . . cat. >>conftest.$ac_ext <<_ACEOF |
| 6353 | /* end confdefs.h. */ |
| 6354 | #include <string.h> |
| 6355 | |
| 6356 | _ACEOF |
| 6357 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6358 | $EGREP "memchr" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1; then |
| 6359 | : |
| 6360 | else |
| 6361 | ac_cv_header_stdc=no |
| 6362 | fi |
| 6363 | rmscip-shell system . . rm. -f conftest* |
| 6364 | |
| 6365 | fi |
| 6366 | |
| 6367 | if testscip-shell system . . test. $ac_cv_header_stdc = yes; then |
| 6368 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 6369 | catscip-shell system . . cat. >conftest.$ac_ext <<_ACEOF |
| 6370 | /* confdefs.h. */ |
| 6371 | _ACEOF |
| 6372 | catscip-shell system . . cat. confdefs.h >>conftest.$ac_ext |
| 6373 | catscip-shell system . . cat. >>conftest.$ac_ext <<_ACEOF |
| 6374 | /* end confdefs.h. */ |
| 6375 | #include <stdlib.h> |
| 6376 | |
| 6377 | _ACEOF |
| 6378 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6379 | $EGREP "free" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1; then |
| 6380 | : |
| 6381 | else |
| 6382 | ac_cv_header_stdc=no |
| 6383 | fi |
| 6384 | rmscip-shell system . . rm. -f conftest* |
| 6385 | |
| 6386 | fi |
| 6387 | |
| 6388 | if testscip-shell system . . test. $ac_cv_header_stdc = yes; then |
| 6389 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 6390 | if testscip-shell system . . test. "$cross_compiling" = yes; then |
| 6391 | : |
| 6392 | else |
| 6393 | catscip-shell system . . cat. >conftest.$ac_ext <<_ACEOF |
| 6394 | /* confdefs.h. */ |
| 6395 | _ACEOF |
| 6396 | catscip-shell system . . cat. confdefs.h >>conftest.$ac_ext |
| 6397 | catscip-shell system . . cat. >>conftest.$ac_ext <<_ACEOF |
| 6398 | /* end confdefs.h. */ |
| 6399 | #include <ctype.h> |
| 6400 | #if ((' ' & 0x0FF) == 0x020) |
| 6401 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 6402 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 6403 | #else |
| 6404 | # define ISLOWER(c) \ |
| 6405 | (('a' <= (c) && (c) <= 'i') \ |
| 6406 | || ('j' <= (c) && (c) <= 'r') \ |
| 6407 | || ('s' <= (c) && (c) <= 'z')) |
| 6408 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 6409 | #endif |
| 6410 | |
| 6411 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 6412 | int |
| 6413 | main () |
| 6414 | { |
| 6415 | int i; |
| 6416 | for (i = 0; i < 256; i++) |
| 6417 | if (XOR (islower (i), ISLOWER (i)) |
| 6418 | || toupper (i) != TOUPPER (i)) |
| 6419 | exit(2); |
| 6420 | exit (0); |
| 6421 | } |
| 6422 | _ACEOF |
| 6423 | rmscip-shell system . . rm. -f conftest$ac_exeext |
| 6424 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6425 | (eval $ac_link) 2>&5 |
| 6426 | ac_status=$? |
| 6427 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6428 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6430 | (eval $ac_try) 2>&5 |
| 6431 | ac_status=$? |
| 6432 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6433 | (exit $ac_status); }; }; then |
| 6434 | : |
| 6435 | else |
| 6436 | echoscip-shell system . . echo. "$as_me: program exited with status $ac_status" >&5 |
| 6437 | echoscip-shell system . . echo. "$as_me: failed program was:" >&5 |
| 6438 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 6439 | |
| 6440 | ( exit $ac_status ) |
| 6441 | ac_cv_header_stdc=no |
| 6442 | fi |
| 6443 | rmscip-shell system . . rm. -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 6444 | fi |
| 6445 | fi |
| 6446 | fi |
| 6447 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 6448 | echoscip-shell system . . echo. "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 6449 | if testscip-shell system . . test. $ac_cv_header_stdc = yes; then |
| 6450 | |
| 6451 | catscip-shell system . . cat. >>confdefs.h <<\_ACEOF |
| 6452 | #define STDC_HEADERS 1 |
| 6453 | _ACEOF |
| 6454 | |
| 6455 | fi |
| 6456 | |
| 6457 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 6458 | |
| 6459 | |
| 6460 | |
| 6461 | |
| 6462 | |
| 6463 | |
| 6464 | |
| 6465 | |
| 6466 | |
| 6467 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 6468 | inttypes.h stdint.h unistd.h |
| 6469 | do |
| 6470 | as_ac_Header=`echoscip-shell system . . echo. "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6471 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6472 | echoscip-shell system . . echo. $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6473 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6474 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 6475 | else |
| 6476 | catscip-shell system . . cat. >conftest.$ac_ext <<_ACEOF |
| 6477 | /* confdefs.h. */ |
| 6478 | _ACEOF |
| 6479 | catscip-shell system . . cat. confdefs.h >>conftest.$ac_ext |
| 6480 | catscip-shell system . . cat. >>conftest.$ac_ext <<_ACEOF |
| 6481 | /* end confdefs.h. */ |
| 6482 | $ac_includes_default |
| 6483 | |
| 6484 | #include <$ac_header> |
| 6485 | _ACEOF |
| 6486 | rmscip-shell system . . rm. -f conftest.$ac_objext |
| 6487 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6488 | (eval $ac_compile) 2>conftest.er1 |
| 6489 | ac_status=$? |
| 6490 | grepscip-shell system . . grep. -v '^ *+' conftest.er1 >conftest.err |
| 6491 | rmscip-shell system . . rm. -f conftest.er1 |
| 6492 | catscip-shell system . . cat. conftest.err >&5 |
| 6493 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6494 | (exit $ac_status); } && |
| 6495 | { ac_try='test -z "$ac_c_werror_flag" |
| 6496 | || test ! -s conftest.err' |
| 6497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6498 | (eval $ac_try) 2>&5 |
| 6499 | ac_status=$? |
| 6500 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6501 | (exit $ac_status); }; } && |
| 6502 | { ac_try='test -s conftest.$ac_objext' |
| 6503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6504 | (eval $ac_try) 2>&5 |
| 6505 | ac_status=$? |
| 6506 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6507 | (exit $ac_status); }; }; then |
| 6508 | eval "$as_ac_Header=yes" |
| 6509 | else |
| 6510 | echoscip-shell system . . echo. "$as_me: failed program was:" >&5 |
| 6511 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 6512 | |
| 6513 | eval "$as_ac_Header=no" |
| 6514 | fi |
| 6515 | rmscip-shell system . . rm. -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6516 | fi |
| 6517 | echoscip-shell system . . echo. "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 6518 | echoscip-shell system . . echo. "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6519 | if testscip-shell system . . test. `eval echo '${'$as_ac_Header'}'` = yes; then |
| 6520 | catscip-shell system . . cat. >>confdefs.h <<_ACEOF |
| 6521 | #define `echoscip-shell system . . echo. "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6522 | _ACEOF |
| 6523 | |
| 6524 | fi |
| 6525 | |
| 6526 | done |
| 6527 | |
| 6528 | |
| 6529 | |
| 6530 | for ac_header in dlfcn.h |
| 6531 | do |
| 6532 | as_ac_Header=`echoscip-shell system . . echo. "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6533 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6534 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6535 | echoscip-shell system . . echo. $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6536 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6537 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 6538 | fi |
| 6539 | echoscip-shell system . . echo. "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 6540 | echoscip-shell system . . echo. "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6541 | else |
| 6542 | # Is the header compilable? |
| 6543 | echoscip-shell system . . echo. "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 6544 | echoscip-shell system . . echo. $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 6545 | catscip-shell system . . cat. >conftest.$ac_ext <<_ACEOF |
| 6546 | /* confdefs.h. */ |
| 6547 | _ACEOF |
| 6548 | catscip-shell system . . cat. confdefs.h >>conftest.$ac_ext |
| 6549 | catscip-shell system . . cat. >>conftest.$ac_ext <<_ACEOF |
| 6550 | /* end confdefs.h. */ |
| 6551 | $ac_includes_default |
| 6552 | #include <$ac_header> |
| 6553 | _ACEOF |
| 6554 | rmscip-shell system . . rm. -f conftest.$ac_objext |
| 6555 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6556 | (eval $ac_compile) 2>conftest.er1 |
| 6557 | ac_status=$? |
| 6558 | grepscip-shell system . . grep. -v '^ *+' conftest.er1 >conftest.err |
| 6559 | rmscip-shell system . . rm. -f conftest.er1 |
| 6560 | catscip-shell system . . cat. conftest.err >&5 |
| 6561 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6562 | (exit $ac_status); } && |
| 6563 | { ac_try='test -z "$ac_c_werror_flag" |
| 6564 | || test ! -s conftest.err' |
| 6565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6566 | (eval $ac_try) 2>&5 |
| 6567 | ac_status=$? |
| 6568 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6569 | (exit $ac_status); }; } && |
| 6570 | { ac_try='test -s conftest.$ac_objext' |
| 6571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6572 | (eval $ac_try) 2>&5 |
| 6573 | ac_status=$? |
| 6574 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6575 | (exit $ac_status); }; }; then |
| 6576 | ac_header_compiler=yes |
| 6577 | else |
| 6578 | echoscip-shell system . . echo. "$as_me: failed program was:" >&5 |
| 6579 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 6580 | |
| 6581 | ac_header_compiler=no |
| 6582 | fi |
| 6583 | rmscip-shell system . . rm. -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6584 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6585 | echoscip-shell system . . echo. "${ECHO_T}$ac_header_compiler" >&6 |
| 6586 | |
| 6587 | # Is the header present? |
| 6588 | echoscip-shell system . . echo. "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 6589 | echoscip-shell system . . echo. $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 6590 | catscip-shell system . . cat. >conftest.$ac_ext <<_ACEOF |
| 6591 | /* confdefs.h. */ |
| 6592 | _ACEOF |
| 6593 | catscip-shell system . . cat. confdefs.h >>conftest.$ac_ext |
| 6594 | catscip-shell system . . cat. >>conftest.$ac_ext <<_ACEOF |
| 6595 | /* end confdefs.h. */ |
| 6596 | #include <$ac_header> |
| 6597 | _ACEOF |
| 6598 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6599 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6600 | ac_status=$? |
| 6601 | grepscip-shell system . . grep. -v '^ *+' conftest.er1 >conftest.err |
| 6602 | rmscip-shell system . . rm. -f conftest.er1 |
| 6603 | catscip-shell system . . cat. conftest.err >&5 |
| 6604 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6605 | (exit $ac_status); } >/dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 6606 | if testscip-shell system . . test. -s conftest.err; then |
| 6607 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 6608 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 6609 | else |
| 6610 | ac_cpp_err= |
| 6611 | fi |
| 6612 | else |
| 6613 | ac_cpp_err=yes |
| 6614 | fi |
| 6615 | if testscip-shell system . . test. -z "$ac_cpp_err"; then |
| 6616 | ac_header_preproc=yes |
| 6617 | else |
| 6618 | echoscip-shell system . . echo. "$as_me: failed program was:" >&5 |
| 6619 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 6620 | |
| 6621 | ac_header_preproc=no |
| 6622 | fi |
| 6623 | rmscip-shell system . . rm. -f conftest.err conftest.$ac_ext |
| 6624 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6625 | echoscip-shell system . . echo. "${ECHO_T}$ac_header_preproc" >&6 |
| 6626 | |
| 6627 | # So? What about this header? |
| 6628 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6629 | yes:no: ) |
| 6630 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6631 | echoscip-shell system . . echo. "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6632 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 6633 | echoscip-shell system . . echo. "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 6634 | ac_header_preproc=yes |
| 6635 | ;; |
| 6636 | no:yes:* ) |
| 6637 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 6638 | echoscip-shell system . . echo. "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 6639 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 6640 | echoscip-shell system . . echo. "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 6641 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 6642 | echoscip-shell system . . echo. "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 6643 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 6644 | echoscip-shell system . . echo. "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6645 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 6646 | echoscip-shell system . . echo. "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 6647 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 6648 | echoscip-shell system . . echo. "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 6649 | ( |
| 6650 | catscip-shell system . . cat. <<\_ASBOX |
| 6651 | ## ------------------------------------ ## |
| 6652 | ## Report this to [email protected] ## |
| 6653 | ## ------------------------------------ ## |
| 6654 | _ASBOX |
| 6655 | ) | |
| 6656 | sedscip-shell system . . sed. "s/^/$as_me: WARNING: /" >&2 |
| 6657 | ;; |
| 6658 | esac |
| 6659 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6660 | echoscip-shell system . . echo. $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6661 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6662 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 6663 | else |
| 6664 | eval "$as_ac_Header=\$ac_header_preproc" |
| 6665 | fi |
| 6666 | echoscip-shell system . . echo. "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 6667 | echoscip-shell system . . echo. "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6668 | |
| 6669 | fi |
| 6670 | if testscip-shell system . . test. `eval echo '${'$as_ac_Header'}'` = yes; then |
| 6671 | catscip-shell system . . cat. >>confdefs.h <<_ACEOF |
| 6672 | #define `echoscip-shell system . . echo. "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6673 | _ACEOF |
| 6674 | |
| 6675 | fi |
| 6676 | |
| 6677 | done |
| 6678 | |
| 6679 | |
| 6680 | |
| 6681 | if testscip-shell system . . test. -n "$CXX" && ( testscip-shell system . . test. "X$CXX" != "Xno" && |
| 6682 | ( (testscip-shell system . . test. "X$CXX" = "Xg++" && `g++ -v >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1` ) || |
| 6683 | (testscip-shell system . . test. "X$CXX" != "Xg++"))) ; then |
| 6684 | ac_ext=cc |
| 6685 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 6686 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6687 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6688 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 6689 | echoscip-shell system . . echo. "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
| 6690 | echoscip-shell system . . echo. $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 |
| 6691 | if testscip-shell system . . test. -z "$CXXCPP"; then |
| 6692 | if testscip-shell system . . test. "${ac_cv_prog_CXXCPP+set}" = set; then |
| 6693 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 6694 | else |
| 6695 | # Double quotes because CXXCPP needs to be expanded |
| 6696 | for CXXCPP in "$CXX -E" "/lib/cppscip-shell filesystem . . `/lib/cpp`." |
| 6697 | do |
| 6698 | ac_preproc_ok=false |
| 6699 | for ac_cxx_preproc_warn_flag in '' yes |
| 6700 | do |
| 6701 | # Use a header file that comes with gcc, so configuring glibc |
| 6702 | # with a fresh cross-compiler works. |
| 6703 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6704 | # <limits.h> exists even on freestanding compilers. |
| 6705 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 6706 | # not just through cpp. "Syntax error" is here to catch this case. |
| 6707 | catscip-shell system . . cat. >conftest.$ac_ext <<_ACEOF |
| 6708 | /* confdefs.h. */ |
| 6709 | _ACEOF |
| 6710 | catscip-shell system . . cat. confdefs.h >>conftest.$ac_ext |
| 6711 | catscip-shell system . . cat. >>conftest.$ac_ext <<_ACEOF |
| 6712 | /* end confdefs.h. */ |
| 6713 | #ifdef __STDC__ |
| 6714 | # include <limits.h> |
| 6715 | #else |
| 6716 | # include <assert.h> |
| 6717 | #endif |
| 6718 | Syntax error |
| 6719 | _ACEOF |
| 6720 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6721 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6722 | ac_status=$? |
| 6723 | grepscip-shell system . . grep. -v '^ *+' conftest.er1 >conftest.err |
| 6724 | rmscip-shell system . . rm. -f conftest.er1 |
| 6725 | catscip-shell system . . cat. conftest.err >&5 |
| 6726 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6727 | (exit $ac_status); } >/dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 6728 | if testscip-shell system . . test. -s conftest.err; then |
| 6729 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 6730 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 6731 | else |
| 6732 | ac_cpp_err= |
| 6733 | fi |
| 6734 | else |
| 6735 | ac_cpp_err=yes |
| 6736 | fi |
| 6737 | if testscip-shell system . . test. -z "$ac_cpp_err"; then |
| 6738 | : |
| 6739 | else |
| 6740 | echoscip-shell system . . echo. "$as_me: failed program was:" >&5 |
| 6741 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 6742 | |
| 6743 | # Broken: fails on valid input. |
| 6744 | continue |
| 6745 | fi |
| 6746 | rmscip-shell system . . rm. -f conftest.err conftest.$ac_ext |
| 6747 | |
| 6748 | # OK, works on sane cases. Now check whether non-existent headers |
| 6749 | # can be detected and how. |
| 6750 | catscip-shell system . . cat. >conftest.$ac_ext <<_ACEOF |
| 6751 | /* confdefs.h. */ |
| 6752 | _ACEOF |
| 6753 | catscip-shell system . . cat. confdefs.h >>conftest.$ac_ext |
| 6754 | catscip-shell system . . cat. >>conftest.$ac_ext <<_ACEOF |
| 6755 | /* end confdefs.h. */ |
| 6756 | #include <ac_nonexistent.h> |
| 6757 | _ACEOF |
| 6758 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6759 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6760 | ac_status=$? |
| 6761 | grepscip-shell system . . grep. -v '^ *+' conftest.er1 >conftest.err |
| 6762 | rmscip-shell system . . rm. -f conftest.er1 |
| 6763 | catscip-shell system . . cat. conftest.err >&5 |
| 6764 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6765 | (exit $ac_status); } >/dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 6766 | if testscip-shell system . . test. -s conftest.err; then |
| 6767 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 6768 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 6769 | else |
| 6770 | ac_cpp_err= |
| 6771 | fi |
| 6772 | else |
| 6773 | ac_cpp_err=yes |
| 6774 | fi |
| 6775 | if testscip-shell system . . test. -z "$ac_cpp_err"; then |
| 6776 | # Broken: success on invalid input. |
| 6777 | continue |
| 6778 | else |
| 6779 | echoscip-shell system . . echo. "$as_me: failed program was:" >&5 |
| 6780 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 6781 | |
| 6782 | # Passes both tests. |
| 6783 | ac_preproc_ok=: |
| 6784 | break |
| 6785 | fi |
| 6786 | rmscip-shell system . . rm. -f conftest.err conftest.$ac_ext |
| 6787 | |
| 6788 | done |
| 6789 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 6790 | rmscip-shell system . . rm. -f conftest.err conftest.$ac_ext |
| 6791 | if $ac_preproc_ok; then |
| 6792 | break |
| 6793 | fi |
| 6794 | |
| 6795 | done |
| 6796 | ac_cv_prog_CXXCPP=$CXXCPP |
| 6797 | |
| 6798 | fi |
| 6799 | CXXCPP=$ac_cv_prog_CXXCPP |
| 6800 | else |
| 6801 | ac_cv_prog_CXXCPP=$CXXCPP |
| 6802 | fi |
| 6803 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $CXXCPP" >&5 |
| 6804 | echoscip-shell system . . echo. "${ECHO_T}$CXXCPP" >&6 |
| 6805 | ac_preproc_ok=false |
| 6806 | for ac_cxx_preproc_warn_flag in '' yes |
| 6807 | do |
| 6808 | # Use a header file that comes with gcc, so configuring glibc |
| 6809 | # with a fresh cross-compiler works. |
| 6810 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6811 | # <limits.h> exists even on freestanding compilers. |
| 6812 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 6813 | # not just through cpp. "Syntax error" is here to catch this case. |
| 6814 | catscip-shell system . . cat. >conftest.$ac_ext <<_ACEOF |
| 6815 | /* confdefs.h. */ |
| 6816 | _ACEOF |
| 6817 | catscip-shell system . . cat. confdefs.h >>conftest.$ac_ext |
| 6818 | catscip-shell system . . cat. >>conftest.$ac_ext <<_ACEOF |
| 6819 | /* end confdefs.h. */ |
| 6820 | #ifdef __STDC__ |
| 6821 | # include <limits.h> |
| 6822 | #else |
| 6823 | # include <assert.h> |
| 6824 | #endif |
| 6825 | Syntax error |
| 6826 | _ACEOF |
| 6827 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6828 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6829 | ac_status=$? |
| 6830 | grepscip-shell system . . grep. -v '^ *+' conftest.er1 >conftest.err |
| 6831 | rmscip-shell system . . rm. -f conftest.er1 |
| 6832 | catscip-shell system . . cat. conftest.err >&5 |
| 6833 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6834 | (exit $ac_status); } >/dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 6835 | if testscip-shell system . . test. -s conftest.err; then |
| 6836 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 6837 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 6838 | else |
| 6839 | ac_cpp_err= |
| 6840 | fi |
| 6841 | else |
| 6842 | ac_cpp_err=yes |
| 6843 | fi |
| 6844 | if testscip-shell system . . test. -z "$ac_cpp_err"; then |
| 6845 | : |
| 6846 | else |
| 6847 | echoscip-shell system . . echo. "$as_me: failed program was:" >&5 |
| 6848 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 6849 | |
| 6850 | # Broken: fails on valid input. |
| 6851 | continue |
| 6852 | fi |
| 6853 | rmscip-shell system . . rm. -f conftest.err conftest.$ac_ext |
| 6854 | |
| 6855 | # OK, works on sane cases. Now check whether non-existent headers |
| 6856 | # can be detected and how. |
| 6857 | catscip-shell system . . cat. >conftest.$ac_ext <<_ACEOF |
| 6858 | /* confdefs.h. */ |
| 6859 | _ACEOF |
| 6860 | catscip-shell system . . cat. confdefs.h >>conftest.$ac_ext |
| 6861 | catscip-shell system . . cat. >>conftest.$ac_ext <<_ACEOF |
| 6862 | /* end confdefs.h. */ |
| 6863 | #include <ac_nonexistent.h> |
| 6864 | _ACEOF |
| 6865 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6866 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6867 | ac_status=$? |
| 6868 | grepscip-shell system . . grep. -v '^ *+' conftest.er1 >conftest.err |
| 6869 | rmscip-shell system . . rm. -f conftest.er1 |
| 6870 | catscip-shell system . . cat. conftest.err >&5 |
| 6871 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6872 | (exit $ac_status); } >/dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 6873 | if testscip-shell system . . test. -s conftest.err; then |
| 6874 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 6875 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 6876 | else |
| 6877 | ac_cpp_err= |
| 6878 | fi |
| 6879 | else |
| 6880 | ac_cpp_err=yes |
| 6881 | fi |
| 6882 | if testscip-shell system . . test. -z "$ac_cpp_err"; then |
| 6883 | # Broken: success on invalid input. |
| 6884 | continue |
| 6885 | else |
| 6886 | echoscip-shell system . . echo. "$as_me: failed program was:" >&5 |
| 6887 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 6888 | |
| 6889 | # Passes both tests. |
| 6890 | ac_preproc_ok=: |
| 6891 | break |
| 6892 | fi |
| 6893 | rmscip-shell system . . rm. -f conftest.err conftest.$ac_ext |
| 6894 | |
| 6895 | done |
| 6896 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 6897 | rmscip-shell system . . rm. -f conftest.err conftest.$ac_ext |
| 6898 | if $ac_preproc_ok; then |
| 6899 | : |
| 6900 | else |
| 6901 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 6902 | See \`config.log' for more details." >&5 |
| 6903 | echoscip-shell system . . echo. "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 6904 | See \`config.log' for more details." >&2;} |
| 6905 | { (exit 1); exit 1; }; } |
| 6906 | fi |
| 6907 | |
| 6908 | ac_ext=cc |
| 6909 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 6910 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6911 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6912 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 6913 | |
| 6914 | fi |
| 6915 | |
| 6916 | ac_ext=f |
| 6917 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 6918 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6919 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 6920 | if testscip-shell system . . test. -n "$ac_tool_prefix"; then |
| 6921 | for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran |
| 6922 | do |
| 6923 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 6924 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 6925 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6926 | echoscip-shell system . . echo. $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 6927 | if testscip-shell system . . test. "${ac_cv_prog_F77+set}" = set; then |
| 6928 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 6929 | else |
| 6930 | if testscip-shell system . . test. -n "$F77"; then |
| 6931 | ac_cv_prog_F77="$F77" # Let the user override the test. |
| 6932 | else |
| 6933 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6934 | for as_dir in $PATH |
| 6935 | do |
| 6936 | IFS=$as_save_IFS |
| 6937 | testscip-shell system . . test. -z "$as_dir" && as_dir=. |
| 6938 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6939 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6940 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
| 6941 | echoscip-shell system . . echo. "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6942 | break 2 |
| 6943 | fi |
| 6944 | done |
| 6945 | done |
| 6946 | |
| 6947 | fi |
| 6948 | fi |
| 6949 | F77=$ac_cv_prog_F77 |
| 6950 | if testscip-shell system . . test. -n "$F77"; then |
| 6951 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $F77" >&5 |
| 6952 | echoscip-shell system . . echo. "${ECHO_T}$F77" >&6 |
| 6953 | else |
| 6954 | echoscip-shell system . . echo. "$as_me:$LINENO: result: no" >&5 |
| 6955 | echoscip-shell system . . echo. "${ECHO_T}no" >&6 |
| 6956 | fi |
| 6957 | |
| 6958 | testscip-shell system . . test. -n "$F77" && break |
| 6959 | done |
| 6960 | fi |
| 6961 | if testscip-shell system . . test. -z "$F77"; then |
| 6962 | ac_ct_F77=$F77 |
| 6963 | for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran |
| 6964 | do |
| 6965 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6966 | set dummy $ac_prog; ac_word=$2 |
| 6967 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6968 | echoscip-shell system . . echo. $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 6969 | if testscip-shell system . . test. "${ac_cv_prog_ac_ct_F77+set}" = set; then |
| 6970 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 6971 | else |
| 6972 | if testscip-shell system . . test. -n "$ac_ct_F77"; then |
| 6973 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
| 6974 | else |
| 6975 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6976 | for as_dir in $PATH |
| 6977 | do |
| 6978 | IFS=$as_save_IFS |
| 6979 | testscip-shell system . . test. -z "$as_dir" && as_dir=. |
| 6980 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6981 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6982 | ac_cv_prog_ac_ct_F77="$ac_prog" |
| 6983 | echoscip-shell system . . echo. "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6984 | break 2 |
| 6985 | fi |
| 6986 | done |
| 6987 | done |
| 6988 | |
| 6989 | fi |
| 6990 | fi |
| 6991 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
| 6992 | if testscip-shell system . . test. -n "$ac_ct_F77"; then |
| 6993 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
| 6994 | echoscip-shell system . . echo. "${ECHO_T}$ac_ct_F77" >&6 |
| 6995 | else |
| 6996 | echoscip-shell system . . echo. "$as_me:$LINENO: result: no" >&5 |
| 6997 | echoscip-shell system . . echo. "${ECHO_T}no" >&6 |
| 6998 | fi |
| 6999 | |
| 7000 | testscip-shell system . . test. -n "$ac_ct_F77" && break |
| 7001 | done |
| 7002 | |
| 7003 | F77=$ac_ct_F77 |
| 7004 | fi |
| 7005 | |
| 7006 | |
| 7007 | # Provide some information about the compiler. |
| 7008 | echoscip-shell system . . echo. "$as_me:7008:" \ |
| 7009 | "checking for Fortran 77 compiler version" >&5 |
| 7010 | ac_compiler=`set X $ac_compile; echoscip-shell system . . echo. $2` |
| 7011 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 7012 | (eval $ac_compiler --version </dev/nullscip-shell filesystem . . `/dev/null`. >&5) 2>&5 |
| 7013 | ac_status=$? |
| 7014 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7015 | (exit $ac_status); } |
| 7016 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 7017 | (eval $ac_compiler -v </dev/nullscip-shell filesystem . . `/dev/null`. >&5) 2>&5 |
| 7018 | ac_status=$? |
| 7019 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7020 | (exit $ac_status); } |
| 7021 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 7022 | (eval $ac_compiler -V </dev/nullscip-shell filesystem . . `/dev/null`. >&5) 2>&5 |
| 7023 | ac_status=$? |
| 7024 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7025 | (exit $ac_status); } |
| 7026 | rmscip-shell system . . rm. -f a.out |
| 7027 | |
| 7028 | # If we don't use `.F' as extension, the preprocessor is not run on the |
| 7029 | # input file. (Note that this only needs to work for GNU compilers.) |
| 7030 | ac_save_ext=$ac_ext |
| 7031 | ac_ext=F |
| 7032 | echoscip-shell system . . echo. "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
| 7033 | echoscip-shell system . . echo. $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 |
| 7034 | if testscip-shell system . . test. "${ac_cv_f77_compiler_gnu+set}" = set; then |
| 7035 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 7036 | else |
| 7037 | catscip-shell system . . cat. >conftest.$ac_ext <<_ACEOF |
| 7038 | program main |
| 7039 | #ifndef __GNUC__ |
| 7040 | choke me |
| 7041 | #endif |
| 7042 | |
| 7043 | end |
| 7044 | _ACEOF |
| 7045 | rmscip-shell system . . rm. -f conftest.$ac_objext |
| 7046 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7047 | (eval $ac_compile) 2>conftest.er1 |
| 7048 | ac_status=$? |
| 7049 | grepscip-shell system . . grep. -v '^ *+' conftest.er1 >conftest.err |
| 7050 | rmscip-shell system . . rm. -f conftest.er1 |
| 7051 | catscip-shell system . . cat. conftest.err >&5 |
| 7052 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7053 | (exit $ac_status); } && |
| 7054 | { ac_try='test -z "$ac_f77_werror_flag" |
| 7055 | || test ! -s conftest.err' |
| 7056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7057 | (eval $ac_try) 2>&5 |
| 7058 | ac_status=$? |
| 7059 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7060 | (exit $ac_status); }; } && |
| 7061 | { ac_try='test -s conftest.$ac_objext' |
| 7062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7063 | (eval $ac_try) 2>&5 |
| 7064 | ac_status=$? |
| 7065 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7066 | (exit $ac_status); }; }; then |
| 7067 | ac_compiler_gnu=yes |
| 7068 | else |
| 7069 | echoscip-shell system . . echo. "$as_me: failed program was:" >&5 |
| 7070 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 7071 | |
| 7072 | ac_compiler_gnu=no |
| 7073 | fi |
| 7074 | rmscip-shell system . . rm. -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7075 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
| 7076 | |
| 7077 | fi |
| 7078 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
| 7079 | echoscip-shell system . . echo. "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 |
| 7080 | ac_ext=$ac_save_ext |
| 7081 | ac_test_FFLAGS=${FFLAGS+set} |
| 7082 | ac_save_FFLAGS=$FFLAGS |
| 7083 | FFLAGS= |
| 7084 | echoscip-shell system . . echo. "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
| 7085 | echoscip-shell system . . echo. $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 |
| 7086 | if testscip-shell system . . test. "${ac_cv_prog_f77_g+set}" = set; then |
| 7087 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 7088 | else |
| 7089 | FFLAGS=-g |
| 7090 | catscip-shell system . . cat. >conftest.$ac_ext <<_ACEOF |
| 7091 | program main |
| 7092 | |
| 7093 | end |
| 7094 | _ACEOF |
| 7095 | rmscip-shell system . . rm. -f conftest.$ac_objext |
| 7096 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7097 | (eval $ac_compile) 2>conftest.er1 |
| 7098 | ac_status=$? |
| 7099 | grepscip-shell system . . grep. -v '^ *+' conftest.er1 >conftest.err |
| 7100 | rmscip-shell system . . rm. -f conftest.er1 |
| 7101 | catscip-shell system . . cat. conftest.err >&5 |
| 7102 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7103 | (exit $ac_status); } && |
| 7104 | { ac_try='test -z "$ac_f77_werror_flag" |
| 7105 | || test ! -s conftest.err' |
| 7106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7107 | (eval $ac_try) 2>&5 |
| 7108 | ac_status=$? |
| 7109 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7110 | (exit $ac_status); }; } && |
| 7111 | { ac_try='test -s conftest.$ac_objext' |
| 7112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7113 | (eval $ac_try) 2>&5 |
| 7114 | ac_status=$? |
| 7115 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7116 | (exit $ac_status); }; }; then |
| 7117 | ac_cv_prog_f77_g=yes |
| 7118 | else |
| 7119 | echoscip-shell system . . echo. "$as_me: failed program was:" >&5 |
| 7120 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 7121 | |
| 7122 | ac_cv_prog_f77_g=no |
| 7123 | fi |
| 7124 | rmscip-shell system . . rm. -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7125 | |
| 7126 | fi |
| 7127 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
| 7128 | echoscip-shell system . . echo. "${ECHO_T}$ac_cv_prog_f77_g" >&6 |
| 7129 | if testscip-shell system . . test. "$ac_test_FFLAGS" = set; then |
| 7130 | FFLAGS=$ac_save_FFLAGS |
| 7131 | elif testscip-shell system . . test. $ac_cv_prog_f77_g = yes; then |
| 7132 | if testscip-shell system . . test. "x$ac_cv_f77_compiler_gnu" = xyes; then |
| 7133 | FFLAGS="-g -O2" |
| 7134 | else |
| 7135 | FFLAGS="-g" |
| 7136 | fi |
| 7137 | else |
| 7138 | if testscip-shell system . . test. "x$ac_cv_f77_compiler_gnu" = xyes; then |
| 7139 | FFLAGS="-O2" |
| 7140 | else |
| 7141 | FFLAGS= |
| 7142 | fi |
| 7143 | fi |
| 7144 | |
| 7145 | G77=`testscip-shell system . . test. $ac_compiler_gnu = yes && echoscip-shell system . . echo. yes` |
| 7146 | ac_ext=c |
| 7147 | ac_cpp='$CPP $CPPFLAGS' |
| 7148 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7149 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7150 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7151 | |
| 7152 | |
| 7153 | |
| 7154 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
| 7155 | |
| 7156 | # find the maximum length of command line arguments |
| 7157 | echoscip-shell system . . echo. "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
| 7158 | echoscip-shell system . . echo. $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 |
| 7159 | if testscip-shell system . . test. "${lt_cv_sys_max_cmd_len+set}" = set; then |
| 7160 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 7161 | else |
| 7162 | i=0 |
| 7163 | teststring="ABCD" |
| 7164 | |
| 7165 | case $build_os in |
| 7166 | msdosdjgpp*) |
| 7167 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 7168 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 7169 | # during glob expansion). Even if it were fixed, the result of this |
| 7170 | # check would be larger than it should be. |
| 7171 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 7172 | ;; |
| 7173 | |
| 7174 | gnu*) |
| 7175 | # Under GNU Hurd, this test is not required because there is |
| 7176 | # no limit to the length of command line arguments. |
| 7177 | # Libtool will interpret -1 as no limit whatsoever |
| 7178 | lt_cv_sys_max_cmd_len=-1; |
| 7179 | ;; |
| 7180 | |
| 7181 | cygwin* | mingw*) |
| 7182 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 7183 | # about 5 minutes as the teststring grows exponentially. |
| 7184 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 7185 | # you end up with a "frozen" computer, even though with patience |
| 7186 | # the test eventually succeeds (with a max line length of 256k). |
| 7187 | # Instead, let's just punt: use the minimum linelength reported by |
| 7188 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 7189 | lt_cv_sys_max_cmd_len=8192; |
| 7190 | ;; |
| 7191 | |
| 7192 | amigaos*) |
| 7193 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 7194 | # So we just punt and use a minimum line length of 8192. |
| 7195 | lt_cv_sys_max_cmd_len=8192; |
| 7196 | ;; |
| 7197 | |
| 7198 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
| 7199 | # This has been around since 386BSD, at least. Likely further. |
| 7200 | if testscip-shell system . . test. -x /sbin/sysctlscip-shell filesystem . . `/sbin/sysctl`.; then |
| 7201 | lt_cv_sys_max_cmd_len=`/sbin/sysctlscip-shell filesystem . . `/sbin/sysctl`. -n kern.argmax` |
| 7202 | elif testscip-shell system . . test. -x /usr/sbin/sysctlscip-shell filesystem . . `/usr/sbin/sysctl`.; then |
| 7203 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctlscip-shell filesystem . . `/usr/sbin/sysctl`. -n kern.argmax` |
| 7204 | else |
| 7205 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
| 7206 | fi |
| 7207 | # And add a safety zone |
| 7208 | lt_cv_sys_max_cmd_len=`exprscip-shell system . . expr. $lt_cv_sys_max_cmd_len \/ 4` |
| 7209 | lt_cv_sys_max_cmd_len=`exprscip-shell system . . expr. $lt_cv_sys_max_cmd_len \* 3` |
| 7210 | ;; |
| 7211 | |
| 7212 | interix*) |
| 7213 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 7214 | lt_cv_sys_max_cmd_len=196608 |
| 7215 | ;; |
| 7216 | |
| 7217 | osf*) |
| 7218 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 7219 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 7220 | # nice to cause kernel panics so lets avoid the loop below. |
| 7221 | # First set a reasonable default. |
| 7222 | lt_cv_sys_max_cmd_len=16384 |
| 7223 | # |
| 7224 | if testscip-shell system . . test. -x /sbin/sysconfigscip-shell filesystem . . `/sbin/sysconfig`.; then |
| 7225 | case `/sbin/sysconfigscip-shell filesystem . . `/sbin/sysconfig`. -q proc exec_disable_arg_limit` in |
| 7226 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 7227 | esac |
| 7228 | fi |
| 7229 | ;; |
| 7230 | sco3.2v5*) |
| 7231 | lt_cv_sys_max_cmd_len=102400 |
| 7232 | ;; |
| 7233 | sysv5* | sco5v6* | sysv4.2uw2*) |
| 7234 | kargmax=`grepscip-shell system . . grep. ARG_MAX /etc/conf/cf.d/stunescip-shell filesystem . . `/etc/conf/cf.d/stune`. 2>/dev/nullscip-shell filesystem . . `/dev/null`.` |
| 7235 | if testscip-shell system . . test. -n "$kargmax"; then |
| 7236 | lt_cv_sys_max_cmd_len=`echoscip-shell system . . echo. $kargmax | sedscip-shell system . . sed. 's/.*[ ]//'` |
| 7237 | else |
| 7238 | lt_cv_sys_max_cmd_len=32768 |
| 7239 | fi |
| 7240 | ;; |
| 7241 | *) |
| 7242 | # If test is not a shell built-in, we'll probably end up computing a |
| 7243 | # maximum length that is only half of the actual maximum length, but |
| 7244 | # we can't tell. |
| 7245 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 7246 | while (testscip-shell system . . test. "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/nullscip-shell filesystem . . `/dev/null`.` \ |
| 7247 | = "XX$teststring") >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 && |
| 7248 | new_result=`exprscip-shell system . . expr. "X$teststring" : ".*" 2>&1` && |
| 7249 | lt_cv_sys_max_cmd_len=$new_result && |
| 7250 | testscip-shell system . . test. $i != 17 # 1/2 MB should be enough |
| 7251 | do |
| 7252 | i=`exprscip-shell system . . expr. $i + 1` |
| 7253 | teststring=$teststring$teststring |
| 7254 | done |
| 7255 | teststring= |
| 7256 | # Add a significant safety factor because C++ compilers can tack on massive |
| 7257 | # amounts of additional arguments before passing them to the linker. |
| 7258 | # It appears as though 1/2 is a usable value. |
| 7259 | lt_cv_sys_max_cmd_len=`exprscip-shell system . . expr. $lt_cv_sys_max_cmd_len \/ 2` |
| 7260 | ;; |
| 7261 | esac |
| 7262 | |
| 7263 | fi |
| 7264 | |
| 7265 | if testscip-shell system . . test. -n $lt_cv_sys_max_cmd_len ; then |
| 7266 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
| 7267 | echoscip-shell system . . echo. "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 |
| 7268 | else |
| 7269 | echoscip-shell system . . echo. "$as_me:$LINENO: result: none" >&5 |
| 7270 | echoscip-shell system . . echo. "${ECHO_T}none" >&6 |
| 7271 | fi |
| 7272 | |
| 7273 | |
| 7274 | |
| 7275 | |
| 7276 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
| 7277 | echoscip-shell system . . echo. "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 7278 | echoscip-shell system . . echo. $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 |
| 7279 | if testscip-shell system . . test. "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 7280 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 7281 | else |
| 7282 | |
| 7283 | # These are sane defaults that work on at least a few old systems. |
| 7284 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 7285 | |
| 7286 | # Character class describing NM global symbol codes. |
| 7287 | symcode='[BCDEGRST]' |
| 7288 | |
| 7289 | # Regexp to match symbols that can be accessed directly from C. |
| 7290 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 7291 | |
| 7292 | # Transform an extracted symbol line into a proper C declaration |
| 7293 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 7294 | |
| 7295 | # Transform an extracted symbol line into symbol name and symbol address |
| 7296 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
| 7297 | |
| 7298 | # Define system-specific variables. |
| 7299 | case $host_os in |
| 7300 | aix*) |
| 7301 | symcode='[BCDT]' |
| 7302 | ;; |
| 7303 | cygwin* | mingw* | pw32*) |
| 7304 | symcode='[ABCDGISTW]' |
| 7305 | ;; |
| 7306 | hpux*) # Its linker distinguishes data from code symbols |
| 7307 | if testscip-shell system . . test. "$host_cpu" = ia64; then |
| 7308 | symcode='[ABCDEGRST]' |
| 7309 | fi |
| 7310 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 7311 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
| 7312 | ;; |
| 7313 | linux*) |
| 7314 | if testscip-shell system . . test. "$host_cpu" = ia64; then |
| 7315 | symcode='[ABCDGIRSTW]' |
| 7316 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 7317 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
| 7318 | fi |
| 7319 | ;; |
| 7320 | irix* | nonstopux*) |
| 7321 | symcode='[BCDEGRST]' |
| 7322 | ;; |
| 7323 | osf*) |
| 7324 | symcode='[BCDEGQRST]' |
| 7325 | ;; |
| 7326 | solaris*) |
| 7327 | symcode='[BDRT]' |
| 7328 | ;; |
| 7329 | sco3.2v5*) |
| 7330 | symcode='[DT]' |
| 7331 | ;; |
| 7332 | sysv4.2uw2*) |
| 7333 | symcode='[DT]' |
| 7334 | ;; |
| 7335 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 7336 | symcode='[ABDT]' |
| 7337 | ;; |
| 7338 | sysv4) |
| 7339 | symcode='[DFNSTU]' |
| 7340 | ;; |
| 7341 | esac |
| 7342 | |
| 7343 | # Handle CRLF in mingw tool chain |
| 7344 | opt_cr= |
| 7345 | case $build_os in |
| 7346 | mingw*) |
| 7347 | opt_cr=`echoscip-shell system . . echo. 'x\{0,1\}' | trscip-shell system . . tr. x '\015'` # option cr in regexp |
| 7348 | ;; |
| 7349 | esac |
| 7350 | |
| 7351 | # If we're using GNU nm, then use its standard symbol codes. |
| 7352 | case `$NM -V 2>&1` in |
| 7353 | *GNU* | *'with BFD'*) |
| 7354 | symcode='[ABCDGIRSTW]' ;; |
| 7355 | esac |
| 7356 | |
| 7357 | # Try without a prefix undercore, then with it. |
| 7358 | for ac_symprfx in "" "_"; do |
| 7359 | |
| 7360 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 7361 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 7362 | |
| 7363 | # Write the raw and C identifiers. |
| 7364 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
| 7365 | |
| 7366 | # Check to see that the pipe works correctly. |
| 7367 | pipe_works=no |
| 7368 | |
| 7369 | rmscip-shell system . . rm. -f conftest* |
| 7370 | catscip-shell system . . cat. > conftest.$ac_ext <<EOF |
| 7371 | #ifdef __cplusplus |
| 7372 | extern "C" { |
| 7373 | #endif |
| 7374 | char nm_test_var; |
| 7375 | void nm_test_func(){} |
| 7376 | #ifdef __cplusplus |
| 7377 | } |
| 7378 | #endif |
| 7379 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 7380 | EOF |
| 7381 | |
| 7382 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7383 | (eval $ac_compile) 2>&5 |
| 7384 | ac_status=$? |
| 7385 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7386 | (exit $ac_status); }; then |
| 7387 | # Now try to grab the symbols. |
| 7388 | nlist=conftest.nm |
| 7389 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 7390 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 7391 | ac_status=$? |
| 7392 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7393 | (exit $ac_status); } && testscip-shell system . . test. -s "$nlist"; then |
| 7394 | # Try sorting and uniquifying the output. |
| 7395 | if sortscip-shell system . . sort. "$nlist" | uniqscip-shell system . . uniq. > "$nlist"T; then |
| 7396 | mvscip-shell system . . mv. -f "$nlist"T "$nlist" |
| 7397 | else |
| 7398 | rmscip-shell system . . rm. -f "$nlist"T |
| 7399 | fi |
| 7400 | |
| 7401 | # Make sure that we snagged all the symbols we need. |
| 7402 | if grepscip-shell system . . grep. ' nm_test_var$' "$nlist" >/dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 7403 | if grepscip-shell system . . grep. ' nm_test_func$' "$nlist" >/dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 7404 | catscip-shell system . . cat. <<EOF > conftest.$ac_ext |
| 7405 | #ifdef __cplusplus |
| 7406 | extern "C" { |
| 7407 | #endif |
| 7408 | |
| 7409 | EOF |
| 7410 | # Now generate the symbol file. |
| 7411 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 7412 | |
| 7413 | catscip-shell system . . cat. <<EOF >> conftest.$ac_ext |
| 7414 | #if defined (__STDC__) && __STDC__ |
| 7415 | # define lt_ptr_t void * |
| 7416 | #else |
| 7417 | # define lt_ptr_t char * |
| 7418 | # define const |
| 7419 | #endif |
| 7420 | |
| 7421 | /* The mapping between symbol names and symbols. */ |
| 7422 | const struct { |
| 7423 | const char *name; |
| 7424 | lt_ptr_t address; |
| 7425 | } |
| 7426 | lt_preloaded_symbols[] = |
| 7427 | { |
| 7428 | EOF |
| 7429 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grepscip-shell system . . grep. -v main >> conftest.$ac_ext |
| 7430 | catscip-shell system . . cat. <<\EOF >> conftest.$ac_ext |
| 7431 | {0, (lt_ptr_t) 0} |
| 7432 | }; |
| 7433 | |
| 7434 | #ifdef __cplusplus |
| 7435 | } |
| 7436 | #endif |
| 7437 | EOF |
| 7438 | # Now try linking the two files. |
| 7439 | mvscip-shell system . . mv. conftest.$ac_objext conftstm.$ac_objext |
| 7440 | lt_save_LIBS="$LIBS" |
| 7441 | lt_save_CFLAGS="$CFLAGS" |
| 7442 | LIBS="conftstm.$ac_objext" |
| 7443 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 7444 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7445 | (eval $ac_link) 2>&5 |
| 7446 | ac_status=$? |
| 7447 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7448 | (exit $ac_status); } && testscip-shell system . . test. -s conftest${ac_exeext}; then |
| 7449 | pipe_works=yes |
| 7450 | fi |
| 7451 | LIBS="$lt_save_LIBS" |
| 7452 | CFLAGS="$lt_save_CFLAGS" |
| 7453 | else |
| 7454 | echoscip-shell system . . echo. "cannot find nm_test_func in $nlist" >&5 |
| 7455 | fi |
| 7456 | else |
| 7457 | echoscip-shell system . . echo. "cannot find nm_test_var in $nlist" >&5 |
| 7458 | fi |
| 7459 | else |
| 7460 | echoscip-shell system . . echo. "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 7461 | fi |
| 7462 | else |
| 7463 | echoscip-shell system . . echo. "$progname: failed program was:" >&5 |
| 7464 | catscip-shell system . . cat. conftest.$ac_ext >&5 |
| 7465 | fi |
| 7466 | rmscip-shell system . . rm. -f conftest* conftst* |
| 7467 | |
| 7468 | # Do not use the global_symbol_pipe unless it works. |
| 7469 | if testscip-shell system . . test. "$pipe_works" = yes; then |
| 7470 | break |
| 7471 | else |
| 7472 | lt_cv_sys_global_symbol_pipe= |
| 7473 | fi |
| 7474 | done |
| 7475 | |
| 7476 | fi |
| 7477 | |
| 7478 | if testscip-shell system . . test. -z "$lt_cv_sys_global_symbol_pipe"; then |
| 7479 | lt_cv_sys_global_symbol_to_cdecl= |
| 7480 | fi |
| 7481 | if testscip-shell system . . test. -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
| 7482 | echoscip-shell system . . echo. "$as_me:$LINENO: result: failed" >&5 |
| 7483 | echoscip-shell system . . echo. "${ECHO_T}failed" >&6 |
| 7484 | else |
| 7485 | echoscip-shell system . . echo. "$as_me:$LINENO: result: ok" >&5 |
| 7486 | echoscip-shell system . . echo. "${ECHO_T}ok" >&6 |
| 7487 | fi |
| 7488 | |
| 7489 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for objdir" >&5 |
| 7490 | echoscip-shell system . . echo. $ECHO_N "checking for objdir... $ECHO_C" >&6 |
| 7491 | if testscip-shell system . . test. "${lt_cv_objdir+set}" = set; then |
| 7492 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 7493 | else |
| 7494 | rmscip-shell system . . rm. -f .libs 2>/dev/nullscip-shell filesystem . . `/dev/null`. |
| 7495 | mkdirscip-shell system . . mkdir. .libs 2>/dev/nullscip-shell filesystem . . `/dev/null`. |
| 7496 | if testscip-shell system . . test. -d .libs; then |
| 7497 | lt_cv_objdir=.libs |
| 7498 | else |
| 7499 | # MS-DOS does not allow filenames that begin with a dot. |
| 7500 | lt_cv_objdir=_libs |
| 7501 | fi |
| 7502 | rmdirscip-shell system . . rmdir. .libs 2>/dev/nullscip-shell filesystem . . `/dev/null`. |
| 7503 | fi |
| 7504 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
| 7505 | echoscip-shell system . . echo. "${ECHO_T}$lt_cv_objdir" >&6 |
| 7506 | objdir=$lt_cv_objdir |
| 7507 | |
| 7508 | |
| 7509 | |
| 7510 | |
| 7511 | |
| 7512 | case $host_os in |
| 7513 | aix3*) |
| 7514 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 7515 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 7516 | # vanish in a puff of smoke. |
| 7517 | if testscip-shell system . . test. "X${COLLECT_NAMES+set}" != Xset; then |
| 7518 | COLLECT_NAMES= |
| 7519 | export COLLECT_NAMES |
| 7520 | fi |
| 7521 | ;; |
| 7522 | esac |
| 7523 | |
| 7524 | # Sed substitution that helps us do robust quoting. It backslashifies |
| 7525 | # metacharacters that are still active within double-quoted strings. |
| 7526 | Xsed='sed -e 1s/^X//' |
| 7527 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
| 7528 | |
| 7529 | # Same as above, but do not quote variable references. |
| 7530 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
| 7531 | |
| 7532 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 7533 | # double_quote_subst'ed string. |
| 7534 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 7535 | |
| 7536 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 7537 | no_glob_subst='s/\*/\\\*/g' |
| 7538 | |
| 7539 | # Constants: |
| 7540 | rm="rm -f" |
| 7541 | |
| 7542 | # Global variables: |
| 7543 | default_ofile=libtool |
| 7544 | can_build_shared=yes |
| 7545 | |
| 7546 | # All known linkers require a `.a' archive for static linking (except MSVC, |
| 7547 | # which needs '.lib'). |
| 7548 | libext=a |
| 7549 | ltmain="$ac_aux_dir/ltmain.sh" |
| 7550 | ofile="$default_ofile" |
| 7551 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 7552 | |
| 7553 | if testscip-shell system . . test. -n "$ac_tool_prefix"; then |
| 7554 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 7555 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
| 7556 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7557 | echoscip-shell system . . echo. $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 7558 | if testscip-shell system . . test. "${ac_cv_prog_AR+set}" = set; then |
| 7559 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 7560 | else |
| 7561 | if testscip-shell system . . test. -n "$AR"; then |
| 7562 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 7563 | else |
| 7564 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7565 | for as_dir in $PATH |
| 7566 | do |
| 7567 | IFS=$as_save_IFS |
| 7568 | testscip-shell system . . test. -z "$as_dir" && as_dir=. |
| 7569 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7570 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7571 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 7572 | echoscip-shell system . . echo. "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7573 | break 2 |
| 7574 | fi |
| 7575 | done |
| 7576 | done |
| 7577 | |
| 7578 | fi |
| 7579 | fi |
| 7580 | AR=$ac_cv_prog_AR |
| 7581 | if testscip-shell system . . test. -n "$AR"; then |
| 7582 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $AR" >&5 |
| 7583 | echoscip-shell system . . echo. "${ECHO_T}$AR" >&6 |
| 7584 | else |
| 7585 | echoscip-shell system . . echo. "$as_me:$LINENO: result: no" >&5 |
| 7586 | echoscip-shell system . . echo. "${ECHO_T}no" >&6 |
| 7587 | fi |
| 7588 | |
| 7589 | fi |
| 7590 | if testscip-shell system . . test. -z "$ac_cv_prog_AR"; then |
| 7591 | ac_ct_AR=$AR |
| 7592 | # Extract the first word of "ar", so it can be a program name with args. |
| 7593 | set dummy ar; ac_word=$2 |
| 7594 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7595 | echoscip-shell system . . echo. $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 7596 | if testscip-shell system . . test. "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 7597 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 7598 | else |
| 7599 | if testscip-shell system . . test. -n "$ac_ct_AR"; then |
| 7600 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 7601 | else |
| 7602 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7603 | for as_dir in $PATH |
| 7604 | do |
| 7605 | IFS=$as_save_IFS |
| 7606 | testscip-shell system . . test. -z "$as_dir" && as_dir=. |
| 7607 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7608 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7609 | ac_cv_prog_ac_ct_AR="ar" |
| 7610 | echoscip-shell system . . echo. "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7611 | break 2 |
| 7612 | fi |
| 7613 | done |
| 7614 | done |
| 7615 | |
| 7616 | testscip-shell system . . test. -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" |
| 7617 | fi |
| 7618 | fi |
| 7619 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 7620 | if testscip-shell system . . test. -n "$ac_ct_AR"; then |
| 7621 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 7622 | echoscip-shell system . . echo. "${ECHO_T}$ac_ct_AR" >&6 |
| 7623 | else |
| 7624 | echoscip-shell system . . echo. "$as_me:$LINENO: result: no" >&5 |
| 7625 | echoscip-shell system . . echo. "${ECHO_T}no" >&6 |
| 7626 | fi |
| 7627 | |
| 7628 | AR=$ac_ct_AR |
| 7629 | else |
| 7630 | AR="$ac_cv_prog_AR" |
| 7631 | fi |
| 7632 | |
| 7633 | if testscip-shell system . . test. -n "$ac_tool_prefix"; then |
| 7634 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 7635 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 7636 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7637 | echoscip-shell system . . echo. $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 7638 | if testscip-shell system . . test. "${ac_cv_prog_RANLIB+set}" = set; then |
| 7639 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 7640 | else |
| 7641 | if testscip-shell system . . test. -n "$RANLIB"; then |
| 7642 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 7643 | else |
| 7644 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7645 | for as_dir in $PATH |
| 7646 | do |
| 7647 | IFS=$as_save_IFS |
| 7648 | testscip-shell system . . test. -z "$as_dir" && as_dir=. |
| 7649 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7650 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7651 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 7652 | echoscip-shell system . . echo. "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7653 | break 2 |
| 7654 | fi |
| 7655 | done |
| 7656 | done |
| 7657 | |
| 7658 | fi |
| 7659 | fi |
| 7660 | RANLIB=$ac_cv_prog_RANLIB |
| 7661 | if testscip-shell system . . test. -n "$RANLIB"; then |
| 7662 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $RANLIB" >&5 |
| 7663 | echoscip-shell system . . echo. "${ECHO_T}$RANLIB" >&6 |
| 7664 | else |
| 7665 | echoscip-shell system . . echo. "$as_me:$LINENO: result: no" >&5 |
| 7666 | echoscip-shell system . . echo. "${ECHO_T}no" >&6 |
| 7667 | fi |
| 7668 | |
| 7669 | fi |
| 7670 | if testscip-shell system . . test. -z "$ac_cv_prog_RANLIB"; then |
| 7671 | ac_ct_RANLIB=$RANLIB |
| 7672 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 7673 | set dummy ranlib; ac_word=$2 |
| 7674 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7675 | echoscip-shell system . . echo. $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 7676 | if testscip-shell system . . test. "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 7677 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 7678 | else |
| 7679 | if testscip-shell system . . test. -n "$ac_ct_RANLIB"; then |
| 7680 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 7681 | else |
| 7682 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7683 | for as_dir in $PATH |
| 7684 | do |
| 7685 | IFS=$as_save_IFS |
| 7686 | testscip-shell system . . test. -z "$as_dir" && as_dir=. |
| 7687 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7688 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7689 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 7690 | echoscip-shell system . . echo. "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7691 | break 2 |
| 7692 | fi |
| 7693 | done |
| 7694 | done |
| 7695 | |
| 7696 | testscip-shell system . . test. -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 7697 | fi |
| 7698 | fi |
| 7699 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 7700 | if testscip-shell system . . test. -n "$ac_ct_RANLIB"; then |
| 7701 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 7702 | echoscip-shell system . . echo. "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 7703 | else |
| 7704 | echoscip-shell system . . echo. "$as_me:$LINENO: result: no" >&5 |
| 7705 | echoscip-shell system . . echo. "${ECHO_T}no" >&6 |
| 7706 | fi |
| 7707 | |
| 7708 | RANLIB=$ac_ct_RANLIB |
| 7709 | else |
| 7710 | RANLIB="$ac_cv_prog_RANLIB" |
| 7711 | fi |
| 7712 | |
| 7713 | if testscip-shell system . . test. -n "$ac_tool_prefix"; then |
| 7714 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 7715 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 7716 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7717 | echoscip-shell system . . echo. $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 7718 | if testscip-shell system . . test. "${ac_cv_prog_STRIP+set}" = set; then |
| 7719 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 7720 | else |
| 7721 | if testscip-shell system . . test. -n "$STRIP"; then |
| 7722 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 7723 | else |
| 7724 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7725 | for as_dir in $PATH |
| 7726 | do |
| 7727 | IFS=$as_save_IFS |
| 7728 | testscip-shell system . . test. -z "$as_dir" && as_dir=. |
| 7729 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7730 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7731 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 7732 | echoscip-shell system . . echo. "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7733 | break 2 |
| 7734 | fi |
| 7735 | done |
| 7736 | done |
| 7737 | |
| 7738 | fi |
| 7739 | fi |
| 7740 | STRIP=$ac_cv_prog_STRIP |
| 7741 | if testscip-shell system . . test. -n "$STRIP"; then |
| 7742 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $STRIP" >&5 |
| 7743 | echoscip-shell system . . echo. "${ECHO_T}$STRIP" >&6 |
| 7744 | else |
| 7745 | echoscip-shell system . . echo. "$as_me:$LINENO: result: no" >&5 |
| 7746 | echoscip-shell system . . echo. "${ECHO_T}no" >&6 |
| 7747 | fi |
| 7748 | |
| 7749 | fi |
| 7750 | if testscip-shell system . . test. -z "$ac_cv_prog_STRIP"; then |
| 7751 | ac_ct_STRIP=$STRIP |
| 7752 | # Extract the first word of "strip", so it can be a program name with args. |
| 7753 | set dummy strip; ac_word=$2 |
| 7754 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7755 | echoscip-shell system . . echo. $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 7756 | if testscip-shell system . . test. "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 7757 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 7758 | else |
| 7759 | if testscip-shell system . . test. -n "$ac_ct_STRIP"; then |
| 7760 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 7761 | else |
| 7762 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7763 | for as_dir in $PATH |
| 7764 | do |
| 7765 | IFS=$as_save_IFS |
| 7766 | testscip-shell system . . test. -z "$as_dir" && as_dir=. |
| 7767 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7768 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7769 | ac_cv_prog_ac_ct_STRIP="strip" |
| 7770 | echoscip-shell system . . echo. "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7771 | break 2 |
| 7772 | fi |
| 7773 | done |
| 7774 | done |
| 7775 | |
| 7776 | testscip-shell system . . test. -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
| 7777 | fi |
| 7778 | fi |
| 7779 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 7780 | if testscip-shell system . . test. -n "$ac_ct_STRIP"; then |
| 7781 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 7782 | echoscip-shell system . . echo. "${ECHO_T}$ac_ct_STRIP" >&6 |
| 7783 | else |
| 7784 | echoscip-shell system . . echo. "$as_me:$LINENO: result: no" >&5 |
| 7785 | echoscip-shell system . . echo. "${ECHO_T}no" >&6 |
| 7786 | fi |
| 7787 | |
| 7788 | STRIP=$ac_ct_STRIP |
| 7789 | else |
| 7790 | STRIP="$ac_cv_prog_STRIP" |
| 7791 | fi |
| 7792 | |
| 7793 | |
| 7794 | old_CC="$CC" |
| 7795 | old_CFLAGS="$CFLAGS" |
| 7796 | |
| 7797 | # Set sane defaults for various variables |
| 7798 | testscip-shell system . . test. -z "$AR" && AR=ar |
| 7799 | testscip-shell system . . test. -z "$AR_FLAGS" && AR_FLAGS=cru |
| 7800 | testscip-shell system . . test. -z "$AS" && AS=as |
| 7801 | testscip-shell system . . test. -z "$CC" && CC=cc |
| 7802 | testscip-shell system . . test. -z "$LTCC" && LTCC=$CC |
| 7803 | testscip-shell system . . test. -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
| 7804 | testscip-shell system . . test. -z "$DLLTOOL" && DLLTOOL=dlltool |
| 7805 | testscip-shell system . . test. -z "$LD" && LD=ld |
| 7806 | testscip-shell system . . test. -z "$LN_S" && LN_S="ln -s" |
| 7807 | testscip-shell system . . test. -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 7808 | testscip-shell system . . test. -z "$NM" && NM=nm |
| 7809 | testscip-shell system . . test. -z "$SED" && SED=sed |
| 7810 | testscip-shell system . . test. -z "$OBJDUMP" && OBJDUMP=objdump |
| 7811 | testscip-shell system . . test. -z "$RANLIB" && RANLIB=: |
| 7812 | testscip-shell system . . test. -z "$STRIP" && STRIP=: |
| 7813 | testscip-shell system . . test. -z "$ac_objext" && ac_objext=o |
| 7814 | |
| 7815 | # Determine commands to create old-style static archives. |
| 7816 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
| 7817 | old_postinstall_cmds='chmod 644 $oldlib' |
| 7818 | old_postuninstall_cmds= |
| 7819 | |
| 7820 | if testscip-shell system . . test. -n "$RANLIB"; then |
| 7821 | case $host_os in |
| 7822 | openbsd*) |
| 7823 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
| 7824 | ;; |
| 7825 | *) |
| 7826 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
| 7827 | ;; |
| 7828 | esac |
| 7829 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
| 7830 | fi |
| 7831 | |
| 7832 | for cc_temp in $compiler""; do |
| 7833 | case $cc_temp in |
| 7834 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 7835 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 7836 | \-*) ;; |
| 7837 | *) break;; |
| 7838 | esac |
| 7839 | done |
| 7840 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 7841 | |
| 7842 | |
| 7843 | # Only perform the check for file, if the check method requires it |
| 7844 | case $deplibs_check_method in |
| 7845 | file_magic*) |
| 7846 | if testscip-shell system . . test. "$file_magic_cmd" = '$MAGIC_CMD'; then |
| 7847 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
| 7848 | echoscip-shell system . . echo. $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 |
| 7849 | if testscip-shell system . . test. "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 7850 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 7851 | else |
| 7852 | case $MAGIC_CMD in |
| 7853 | [\\/*] | ?:[\\/]*) |
| 7854 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 7855 | ;; |
| 7856 | *) |
| 7857 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 7858 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 7859 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 7860 | for ac_dir in $ac_dummy; do |
| 7861 | IFS="$lt_save_ifs" |
| 7862 | testscip-shell system . . test. -z "$ac_dir" && ac_dir=. |
| 7863 | if testscip-shell system . . test. -f $ac_dir/${ac_tool_prefix}file; then |
| 7864 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 7865 | if testscip-shell system . . test. -n "$file_magic_test_file"; then |
| 7866 | case $deplibs_check_method in |
| 7867 | "file_magic "*) |
| 7868 | file_magic_regex=`exprscip-shell system . . expr. "$deplibs_check_method" : "file_magic \(.*\)"` |
| 7869 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 7870 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/nullscip-shell filesystem . . `/dev/null`. | |
| 7871 | $EGREP "$file_magic_regex" > /dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 7872 | : |
| 7873 | else |
| 7874 | catscip-shell system . . cat. <<EOF 1>&2 |
| 7875 | |
| 7876 | *** Warning: the command libtool uses to detect shared libraries, |
| 7877 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 7878 | *** The result is that libtool may fail to recognize shared libraries |
| 7879 | *** as such. This will affect the creation of libtool libraries that |
| 7880 | *** depend on shared libraries, but programs linked with such libtool |
| 7881 | *** libraries will work regardless of this problem. Nevertheless, you |
| 7882 | *** may want to report the problem to your system manager and/or to |
| 7883 | *** [email protected] |
| 7884 | |
| 7885 | EOF |
| 7886 | fi ;; |
| 7887 | esac |
| 7888 | fi |
| 7889 | break |
| 7890 | fi |
| 7891 | done |
| 7892 | IFS="$lt_save_ifs" |
| 7893 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 7894 | ;; |
| 7895 | esac |
| 7896 | fi |
| 7897 | |
| 7898 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 7899 | if testscip-shell system . . test. -n "$MAGIC_CMD"; then |
| 7900 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 7901 | echoscip-shell system . . echo. "${ECHO_T}$MAGIC_CMD" >&6 |
| 7902 | else |
| 7903 | echoscip-shell system . . echo. "$as_me:$LINENO: result: no" >&5 |
| 7904 | echoscip-shell system . . echo. "${ECHO_T}no" >&6 |
| 7905 | fi |
| 7906 | |
| 7907 | if testscip-shell system . . test. -z "$lt_cv_path_MAGIC_CMD"; then |
| 7908 | if testscip-shell system . . test. -n "$ac_tool_prefix"; then |
| 7909 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for file" >&5 |
| 7910 | echoscip-shell system . . echo. $ECHO_N "checking for file... $ECHO_C" >&6 |
| 7911 | if testscip-shell system . . test. "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 7912 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 7913 | else |
| 7914 | case $MAGIC_CMD in |
| 7915 | [\\/*] | ?:[\\/]*) |
| 7916 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 7917 | ;; |
| 7918 | *) |
| 7919 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 7920 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 7921 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 7922 | for ac_dir in $ac_dummy; do |
| 7923 | IFS="$lt_save_ifs" |
| 7924 | testscip-shell system . . test. -z "$ac_dir" && ac_dir=. |
| 7925 | if testscip-shell system . . test. -f $ac_dir/file; then |
| 7926 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 7927 | if testscip-shell system . . test. -n "$file_magic_test_file"; then |
| 7928 | case $deplibs_check_method in |
| 7929 | "file_magic "*) |
| 7930 | file_magic_regex=`exprscip-shell system . . expr. "$deplibs_check_method" : "file_magic \(.*\)"` |
| 7931 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 7932 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/nullscip-shell filesystem . . `/dev/null`. | |
| 7933 | $EGREP "$file_magic_regex" > /dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 7934 | : |
| 7935 | else |
| 7936 | catscip-shell system . . cat. <<EOF 1>&2 |
| 7937 | |
| 7938 | *** Warning: the command libtool uses to detect shared libraries, |
| 7939 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 7940 | *** The result is that libtool may fail to recognize shared libraries |
| 7941 | *** as such. This will affect the creation of libtool libraries that |
| 7942 | *** depend on shared libraries, but programs linked with such libtool |
| 7943 | *** libraries will work regardless of this problem. Nevertheless, you |
| 7944 | *** may want to report the problem to your system manager and/or to |
| 7945 | *** [email protected] |
| 7946 | |
| 7947 | EOF |
| 7948 | fi ;; |
| 7949 | esac |
| 7950 | fi |
| 7951 | break |
| 7952 | fi |
| 7953 | done |
| 7954 | IFS="$lt_save_ifs" |
| 7955 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 7956 | ;; |
| 7957 | esac |
| 7958 | fi |
| 7959 | |
| 7960 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 7961 | if testscip-shell system . . test. -n "$MAGIC_CMD"; then |
| 7962 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 7963 | echoscip-shell system . . echo. "${ECHO_T}$MAGIC_CMD" >&6 |
| 7964 | else |
| 7965 | echoscip-shell system . . echo. "$as_me:$LINENO: result: no" >&5 |
| 7966 | echoscip-shell system . . echo. "${ECHO_T}no" >&6 |
| 7967 | fi |
| 7968 | |
| 7969 | else |
| 7970 | MAGIC_CMD=: |
| 7971 | fi |
| 7972 | fi |
| 7973 | |
| 7974 | fi |
| 7975 | ;; |
| 7976 | esac |
| 7977 | |
| 7978 | enable_dlopen=no |
| 7979 | enable_win32_dll=no |
| 7980 | |
| 7981 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
| 7982 | if testscip-shell system . . test. "${enable_libtool_lock+set}" = set; then |
| 7983 | enableval="$enable_libtool_lock" |
| 7984 | |
| 7985 | fi; |
| 7986 | testscip-shell system . . test. "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 7987 | |
| 7988 | |
| 7989 | # Check whether --with-pic or --without-pic was given. |
| 7990 | if testscip-shell system . . test. "${with_pic+set}" = set; then |
| 7991 | withval="$with_pic" |
| 7992 | pic_mode="$withval" |
| 7993 | else |
| 7994 | pic_mode=default |
| 7995 | fi; |
| 7996 | testscip-shell system . . test. -z "$pic_mode" && pic_mode=default |
| 7997 | |
| 7998 | # Use C for the default configuration in the libtool script |
| 7999 | tagname= |
| 8000 | lt_save_CC="$CC" |
| 8001 | ac_ext=c |
| 8002 | ac_cpp='$CPP $CPPFLAGS' |
| 8003 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8004 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8005 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8006 | |
| 8007 | |
| 8008 | # Source file extension for C test sources. |
| 8009 | ac_ext=c |
| 8010 | |
| 8011 | # Object file extension for compiled C test sources. |
| 8012 | objext=o |
| 8013 | objext=$objext |
| 8014 | |
| 8015 | # Code to be used in simple compile tests |
| 8016 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 8017 | |
| 8018 | # Code to be used in simple link tests |
| 8019 | lt_simple_link_test_code='int main(){return(0);}\n' |
| 8020 | |
| 8021 | |
| 8022 | # If no C compiler was specified, use CC. |
| 8023 | LTCC=${LTCC-"$CC"} |
| 8024 | |
| 8025 | # If no C compiler flags were specified, use CFLAGS. |
| 8026 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 8027 | |
| 8028 | # Allow CC to be a program name with arguments. |
| 8029 | compiler=$CC |
| 8030 | |
| 8031 | |
| 8032 | # save warnings/boilerplate of simple test code |
| 8033 | ac_outfile=conftest.$ac_objext |
| 8034 | printfscip-shell system . . printf. "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 8035 | eval "$ac_compile" 2>&1 >/dev/nullscip-shell filesystem . . `/dev/null`. | $SED '/^$/d; /^ *+/dscip-shell filesystem . . `/^$/d; /^ *+/d`.' >conftest.err |
| 8036 | _lt_compiler_boilerplate=`catscip-shell system . . cat. conftest.err` |
| 8037 | $rm conftest* |
| 8038 | |
| 8039 | ac_outfile=conftest.$ac_objext |
| 8040 | printfscip-shell system . . printf. "$lt_simple_link_test_code" >conftest.$ac_ext |
| 8041 | eval "$ac_link" 2>&1 >/dev/nullscip-shell filesystem . . `/dev/null`. | $SED '/^$/d; /^ *+/dscip-shell filesystem . . `/^$/d; /^ *+/d`.' >conftest.err |
| 8042 | _lt_linker_boilerplate=`catscip-shell system . . cat. conftest.err` |
| 8043 | $rm conftest* |
| 8044 | |
| 8045 | |
| 8046 | ## CAVEAT EMPTOR: |
| 8047 | ## There is no encapsulation within the following macros, do not change |
| 8048 | ## the running order or otherwise move them around unless you know exactly |
| 8049 | ## what you are doing... |
| 8050 | |
| 8051 | lt_prog_compiler_no_builtin_flag= |
| 8052 | |
| 8053 | if testscip-shell system . . test. "$GCC" = yes; then |
| 8054 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
| 8055 | |
| 8056 | |
| 8057 | echoscip-shell system . . echo. "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 8058 | echoscip-shell system . . echo. $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
| 8059 | if testscip-shell system . . test. "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 8060 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 8061 | else |
| 8062 | lt_cv_prog_compiler_rtti_exceptions=no |
| 8063 | ac_outfile=conftest.$ac_objext |
| 8064 | printfscip-shell system . . printf. "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 8065 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 8066 | # Insert the option either (1) after the last *FLAGS variable, or |
| 8067 | # (2) before a word containing "conftest.", or (3) at the end. |
| 8068 | # Note that $ac_compile itself does not contain backslashes and begins |
| 8069 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 8070 | # The option is referenced via a variable to avoid confusing sed. |
| 8071 | lt_compile=`echoscip-shell system . . echo. "$ac_compile" | $SED \ |
| 8072 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 8073 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 8074 | -e 's:$: $lt_compiler_flag:'` |
| 8075 | (eval echo "\"\$as_me:8075: $lt_compile\"" >&5) |
| 8076 | (eval "$lt_compile" 2>conftest.err) |
| 8077 | ac_status=$? |
| 8078 | catscip-shell system . . cat. conftest.err >&5 |
| 8079 | echoscip-shell system . . echo. "$as_me:8079: \$? = $ac_status" >&5 |
| 8080 | if (exit $ac_status) && testscip-shell system . . test. -s "$ac_outfile"; then |
| 8081 | # The compiler can only warn and ignore the option if not recognized |
| 8082 | # So say no if there are warnings other than the usual output. |
| 8083 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/dscip-shell filesystem . . `/^$/d`.' >conftest.exp |
| 8084 | $SED '/^$/d; /^ *+/dscip-shell filesystem . . `/^$/d; /^ *+/d`.' conftest.err >conftest.er2 |
| 8085 | if testscip-shell system . . test. ! -s conftest.er2 || diffscip-shell system . . diff. conftest.exp conftest.er2 >/dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 8086 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 8087 | fi |
| 8088 | fi |
| 8089 | $rm conftest* |
| 8090 | |
| 8091 | fi |
| 8092 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 8093 | echoscip-shell system . . echo. "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
| 8094 | |
| 8095 | if testscip-shell system . . test. x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 8096 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 8097 | else |
| 8098 | : |
| 8099 | fi |
| 8100 | |
| 8101 | fi |
| 8102 | |
| 8103 | lt_prog_compiler_wl= |
| 8104 | lt_prog_compiler_pic= |
| 8105 | lt_prog_compiler_static= |
| 8106 | |
| 8107 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 8108 | echoscip-shell system . . echo. $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
| 8109 | |
| 8110 | if testscip-shell system . . test. "$GCC" = yes; then |
| 8111 | lt_prog_compiler_wl='-Wl,' |
| 8112 | lt_prog_compiler_static='-static' |
| 8113 | |
| 8114 | case $host_os in |
| 8115 | aix*) |
| 8116 | # All AIX code is PIC. |
| 8117 | if testscip-shell system . . test. "$host_cpu" = ia64; then |
| 8118 | # AIX 5 now supports IA64 processor |
| 8119 | lt_prog_compiler_static='-Bstatic' |
| 8120 | fi |
| 8121 | ;; |
| 8122 | |
| 8123 | amigaos*) |
| 8124 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 8125 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 8126 | # like `-m68040'. |
| 8127 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
| 8128 | ;; |
| 8129 | |
| 8130 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 8131 | # PIC is the default for these OSes. |
| 8132 | ;; |
| 8133 | |
| 8134 | mingw* | pw32* | os2*) |
| 8135 | # This hack is so that the source file can tell whether it is being |
| 8136 | # built for inclusion in a dll (and should export symbols for example). |
| 8137 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 8138 | ;; |
| 8139 | |
| 8140 | darwin* | rhapsody*) |
| 8141 | # PIC is the default on this platform |
| 8142 | # Common symbols not allowed in MH_DYLIB files |
| 8143 | lt_prog_compiler_pic='-fno-common' |
| 8144 | ;; |
| 8145 | |
| 8146 | interix3*) |
| 8147 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 8148 | # Instead, we relocate shared libraries at runtime. |
| 8149 | ;; |
| 8150 | |
| 8151 | msdosdjgpp*) |
| 8152 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 8153 | # on systems that don't support them. |
| 8154 | lt_prog_compiler_can_build_shared=no |
| 8155 | enable_shared=no |
| 8156 | ;; |
| 8157 | |
| 8158 | sysv4*MP*) |
| 8159 | if testscip-shell system . . test. -d /usr/necscip-shell filesystem . . `/usr/nec`.; then |
| 8160 | lt_prog_compiler_pic=-Kconform_pic |
| 8161 | fi |
| 8162 | ;; |
| 8163 | |
| 8164 | hpux*) |
| 8165 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 8166 | # not for PA HP-UX. |
| 8167 | case $host_cpu in |
| 8168 | hppa*64*|ia64*) |
| 8169 | # +Z the default |
| 8170 | ;; |
| 8171 | *) |
| 8172 | lt_prog_compiler_pic='-fPIC' |
| 8173 | ;; |
| 8174 | esac |
| 8175 | ;; |
| 8176 | |
| 8177 | *) |
| 8178 | lt_prog_compiler_pic='-fPIC' |
| 8179 | ;; |
| 8180 | esac |
| 8181 | else |
| 8182 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 8183 | case $host_os in |
| 8184 | aix*) |
| 8185 | lt_prog_compiler_wl='-Wl,' |
| 8186 | if testscip-shell system . . test. "$host_cpu" = ia64; then |
| 8187 | # AIX 5 now supports IA64 processor |
| 8188 | lt_prog_compiler_static='-Bstatic' |
| 8189 | else |
| 8190 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
| 8191 | fi |
| 8192 | ;; |
| 8193 | darwin*) |
| 8194 | # PIC is the default on this platform |
| 8195 | # Common symbols not allowed in MH_DYLIB files |
| 8196 | case $cc_basename in |
| 8197 | xlc*) |
| 8198 | lt_prog_compiler_pic='-qnocommon' |
| 8199 | lt_prog_compiler_wl='-Wl,' |
| 8200 | ;; |
| 8201 | esac |
| 8202 | ;; |
| 8203 | |
| 8204 | mingw* | pw32* | os2*) |
| 8205 | # This hack is so that the source file can tell whether it is being |
| 8206 | # built for inclusion in a dll (and should export symbols for example). |
| 8207 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 8208 | ;; |
| 8209 | |
| 8210 | hpux9* | hpux10* | hpux11*) |
| 8211 | lt_prog_compiler_wl='-Wl,' |
| 8212 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 8213 | # not for PA HP-UX. |
| 8214 | case $host_cpu in |
| 8215 | hppa*64*|ia64*) |
| 8216 | # +Z the default |
| 8217 | ;; |
| 8218 | *) |
| 8219 | lt_prog_compiler_pic='+Z' |
| 8220 | ;; |
| 8221 | esac |
| 8222 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 8223 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
| 8224 | ;; |
| 8225 | |
| 8226 | irix5* | irix6* | nonstopux*) |
| 8227 | lt_prog_compiler_wl='-Wl,' |
| 8228 | # PIC (with -KPIC) is the default. |
| 8229 | lt_prog_compiler_static='-non_shared' |
| 8230 | ;; |
| 8231 | |
| 8232 | newsos6) |
| 8233 | lt_prog_compiler_pic='-KPIC' |
| 8234 | lt_prog_compiler_static='-Bstatic' |
| 8235 | ;; |
| 8236 | |
| 8237 | linux*) |
| 8238 | case $cc_basename in |
| 8239 | icc* | ecc*) |
| 8240 | lt_prog_compiler_wl='-Wl,' |
| 8241 | lt_prog_compiler_pic='-KPIC' |
| 8242 | lt_prog_compiler_static='-static' |
| 8243 | ;; |
| 8244 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 8245 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 8246 | # which looks to be a dead project) |
| 8247 | lt_prog_compiler_wl='-Wl,' |
| 8248 | lt_prog_compiler_pic='-fpic' |
| 8249 | lt_prog_compiler_static='-Bstatic' |
| 8250 | ;; |
| 8251 | ccc*) |
| 8252 | lt_prog_compiler_wl='-Wl,' |
| 8253 | # All Alpha code is PIC. |
| 8254 | lt_prog_compiler_static='-non_shared' |
| 8255 | ;; |
| 8256 | esac |
| 8257 | ;; |
| 8258 | |
| 8259 | osf3* | osf4* | osf5*) |
| 8260 | lt_prog_compiler_wl='-Wl,' |
| 8261 | # All OSF/1 code is PIC. |
| 8262 | lt_prog_compiler_static='-non_shared' |
| 8263 | ;; |
| 8264 | |
| 8265 | solaris*) |
| 8266 | lt_prog_compiler_pic='-KPIC' |
| 8267 | lt_prog_compiler_static='-Bstatic' |
| 8268 | case $cc_basename in |
| 8269 | f77* | f90* | f95*) |
| 8270 | lt_prog_compiler_wl='-Qoption ld ';; |
| 8271 | *) |
| 8272 | lt_prog_compiler_wl='-Wl,';; |
| 8273 | esac |
| 8274 | ;; |
| 8275 | |
| 8276 | sunos4*) |
| 8277 | lt_prog_compiler_wl='-Qoption ld ' |
| 8278 | lt_prog_compiler_pic='-PIC' |
| 8279 | lt_prog_compiler_static='-Bstatic' |
| 8280 | ;; |
| 8281 | |
| 8282 | sysv4 | sysv4.2uw2* | sysv4.3*) |
| 8283 | lt_prog_compiler_wl='-Wl,' |
| 8284 | lt_prog_compiler_pic='-KPIC' |
| 8285 | lt_prog_compiler_static='-Bstatic' |
| 8286 | ;; |
| 8287 | |
| 8288 | sysv4*MP*) |
| 8289 | if testscip-shell system . . test. -d /usr/necscip-shell filesystem . . `/usr/nec`. ;then |
| 8290 | lt_prog_compiler_pic='-Kconform_pic' |
| 8291 | lt_prog_compiler_static='-Bstatic' |
| 8292 | fi |
| 8293 | ;; |
| 8294 | |
| 8295 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 8296 | lt_prog_compiler_wl='-Wl,' |
| 8297 | lt_prog_compiler_pic='-KPIC' |
| 8298 | lt_prog_compiler_static='-Bstatic' |
| 8299 | ;; |
| 8300 | |
| 8301 | unicos*) |
| 8302 | lt_prog_compiler_wl='-Wl,' |
| 8303 | lt_prog_compiler_can_build_shared=no |
| 8304 | ;; |
| 8305 | |
| 8306 | uts4*) |
| 8307 | lt_prog_compiler_pic='-pic' |
| 8308 | lt_prog_compiler_static='-Bstatic' |
| 8309 | ;; |
| 8310 | |
| 8311 | *) |
| 8312 | lt_prog_compiler_can_build_shared=no |
| 8313 | ;; |
| 8314 | esac |
| 8315 | fi |
| 8316 | |
| 8317 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
| 8318 | echoscip-shell system . . echo. "${ECHO_T}$lt_prog_compiler_pic" >&6 |
| 8319 | |
| 8320 | # |
| 8321 | # Check to make sure the PIC flag actually works. |
| 8322 | # |
| 8323 | if testscip-shell system . . test. -n "$lt_prog_compiler_pic"; then |
| 8324 | |
| 8325 | echoscip-shell system . . echo. "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 8326 | echoscip-shell system . . echo. $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 |
| 8327 | if testscip-shell system . . test. "${lt_prog_compiler_pic_works+set}" = set; then |
| 8328 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 8329 | else |
| 8330 | lt_prog_compiler_pic_works=no |
| 8331 | ac_outfile=conftest.$ac_objext |
| 8332 | printfscip-shell system . . printf. "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 8333 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 8334 | # Insert the option either (1) after the last *FLAGS variable, or |
| 8335 | # (2) before a word containing "conftest.", or (3) at the end. |
| 8336 | # Note that $ac_compile itself does not contain backslashes and begins |
| 8337 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 8338 | # The option is referenced via a variable to avoid confusing sed. |
| 8339 | lt_compile=`echoscip-shell system . . echo. "$ac_compile" | $SED \ |
| 8340 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 8341 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 8342 | -e 's:$: $lt_compiler_flag:'` |
| 8343 | (eval echo "\"\$as_me:8343: $lt_compile\"" >&5) |
| 8344 | (eval "$lt_compile" 2>conftest.err) |
| 8345 | ac_status=$? |
| 8346 | catscip-shell system . . cat. conftest.err >&5 |
| 8347 | echoscip-shell system . . echo. "$as_me:8347: \$? = $ac_status" >&5 |
| 8348 | if (exit $ac_status) && testscip-shell system . . test. -s "$ac_outfile"; then |
| 8349 | # The compiler can only warn and ignore the option if not recognized |
| 8350 | # So say no if there are warnings other than the usual output. |
| 8351 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/dscip-shell filesystem . . `/^$/d`.' >conftest.exp |
| 8352 | $SED '/^$/d; /^ *+/dscip-shell filesystem . . `/^$/d; /^ *+/d`.' conftest.err >conftest.er2 |
| 8353 | if testscip-shell system . . test. ! -s conftest.er2 || diffscip-shell system . . diff. conftest.exp conftest.er2 >/dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 8354 | lt_prog_compiler_pic_works=yes |
| 8355 | fi |
| 8356 | fi |
| 8357 | $rm conftest* |
| 8358 | |
| 8359 | fi |
| 8360 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
| 8361 | echoscip-shell system . . echo. "${ECHO_T}$lt_prog_compiler_pic_works" >&6 |
| 8362 | |
| 8363 | if testscip-shell system . . test. x"$lt_prog_compiler_pic_works" = xyes; then |
| 8364 | case $lt_prog_compiler_pic in |
| 8365 | "" | " "*) ;; |
| 8366 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 8367 | esac |
| 8368 | else |
| 8369 | lt_prog_compiler_pic= |
| 8370 | lt_prog_compiler_can_build_shared=no |
| 8371 | fi |
| 8372 | |
| 8373 | fi |
| 8374 | case $host_os in |
| 8375 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 8376 | *djgpp*) |
| 8377 | lt_prog_compiler_pic= |
| 8378 | ;; |
| 8379 | *) |
| 8380 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 8381 | ;; |
| 8382 | esac |
| 8383 | |
| 8384 | # |
| 8385 | # Check to make sure the static flag actually works. |
| 8386 | # |
| 8387 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
| 8388 | echoscip-shell system . . echo. "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 8389 | echoscip-shell system . . echo. $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 |
| 8390 | if testscip-shell system . . test. "${lt_prog_compiler_static_works+set}" = set; then |
| 8391 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 8392 | else |
| 8393 | lt_prog_compiler_static_works=no |
| 8394 | save_LDFLAGS="$LDFLAGS" |
| 8395 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 8396 | printfscip-shell system . . printf. "$lt_simple_link_test_code" > conftest.$ac_ext |
| 8397 | if (eval $ac_link 2>conftest.err) && testscip-shell system . . test. -s conftest$ac_exeext; then |
| 8398 | # The linker can only warn and ignore the option if not recognized |
| 8399 | # So say no if there are warnings |
| 8400 | if testscip-shell system . . test. -s conftest.err; then |
| 8401 | # Append any errors to the config.log. |
| 8402 | catscip-shell system . . cat. conftest.err 1>&5 |
| 8403 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/dscip-shell filesystem . . `/^$/d`.' > conftest.exp |
| 8404 | $SED '/^$/d; /^ *+/dscip-shell filesystem . . `/^$/d; /^ *+/d`.' conftest.err >conftest.er2 |
| 8405 | if diffscip-shell system . . diff. conftest.exp conftest.er2 >/dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 8406 | lt_prog_compiler_static_works=yes |
| 8407 | fi |
| 8408 | else |
| 8409 | lt_prog_compiler_static_works=yes |
| 8410 | fi |
| 8411 | fi |
| 8412 | $rm conftest* |
| 8413 | LDFLAGS="$save_LDFLAGS" |
| 8414 | |
| 8415 | fi |
| 8416 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
| 8417 | echoscip-shell system . . echo. "${ECHO_T}$lt_prog_compiler_static_works" >&6 |
| 8418 | |
| 8419 | if testscip-shell system . . test. x"$lt_prog_compiler_static_works" = xyes; then |
| 8420 | : |
| 8421 | else |
| 8422 | lt_prog_compiler_static= |
| 8423 | fi |
| 8424 | |
| 8425 | |
| 8426 | echoscip-shell system . . echo. "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 8427 | echoscip-shell system . . echo. $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
| 8428 | if testscip-shell system . . test. "${lt_cv_prog_compiler_c_o+set}" = set; then |
| 8429 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 8430 | else |
| 8431 | lt_cv_prog_compiler_c_o=no |
| 8432 | $rm -r conftest 2>/dev/nullscip-shell filesystem . . `/dev/null`. |
| 8433 | mkdirscip-shell system . . mkdir. conftest |
| 8434 | cd conftest |
| 8435 | mkdirscip-shell system . . mkdir. out |
| 8436 | printfscip-shell system . . printf. "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 8437 | |
| 8438 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 8439 | # Insert the option either (1) after the last *FLAGS variable, or |
| 8440 | # (2) before a word containing "conftest.", or (3) at the end. |
| 8441 | # Note that $ac_compile itself does not contain backslashes and begins |
| 8442 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 8443 | lt_compile=`echoscip-shell system . . echo. "$ac_compile" | $SED \ |
| 8444 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 8445 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 8446 | -e 's:$: $lt_compiler_flag:'` |
| 8447 | (eval echo "\"\$as_me:8447: $lt_compile\"" >&5) |
| 8448 | (eval "$lt_compile" 2>out/conftest.err) |
| 8449 | ac_status=$? |
| 8450 | catscip-shell system . . cat. out/conftest.err >&5 |
| 8451 | echoscip-shell system . . echo. "$as_me:8451: \$? = $ac_status" >&5 |
| 8452 | if (exit $ac_status) && testscip-shell system . . test. -s out/conftest2.$ac_objext |
| 8453 | then |
| 8454 | # The compiler can only warn and ignore the option if not recognized |
| 8455 | # So say no if there are warnings |
| 8456 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/dscip-shell filesystem . . `/^$/d`.' > out/conftest.exp |
| 8457 | $SED '/^$/d; /^ *+/dscip-shell filesystem . . `/^$/d; /^ *+/d`.' out/conftest.err >out/conftest.er2 |
| 8458 | if testscip-shell system . . test. ! -s out/conftest.er2 || diffscip-shell system . . diff. out/conftest.exp out/conftest.er2 >/dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 8459 | lt_cv_prog_compiler_c_o=yes |
| 8460 | fi |
| 8461 | fi |
| 8462 | chmodscip-shell system . . chmod. u+w . 2>&5 |
| 8463 | $rm conftest* |
| 8464 | # SGI C++ compiler will create directory out/ii_files/ for |
| 8465 | # template instantiation |
| 8466 | testscip-shell system . . test. -d out/ii_files && $rm out/ii_files/* && rmdirscip-shell system . . rmdir. out/ii_files |
| 8467 | $rm out/* && rmdirscip-shell system . . rmdir. out |
| 8468 | cd .. |
| 8469 | rmdirscip-shell system . . rmdir. conftest |
| 8470 | $rm conftest* |
| 8471 | |
| 8472 | fi |
| 8473 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
| 8474 | echoscip-shell system . . echo. "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 |
| 8475 | |
| 8476 | |
| 8477 | hard_links="nottested" |
| 8478 | if testscip-shell system . . test. "$lt_cv_prog_compiler_c_o" = no && testscip-shell system . . test. "$need_locks" != no; then |
| 8479 | # do not overwrite the value of need_locks provided by the user |
| 8480 | echoscip-shell system . . echo. "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 8481 | echoscip-shell system . . echo. $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 8482 | hard_links=yes |
| 8483 | $rm conftest* |
| 8484 | lnscip-shell system . . ln. conftest.a conftest.b 2>/dev/nullscip-shell filesystem . . `/dev/null`. && hard_links=no |
| 8485 | touchscip-shell system . . touch. conftest.a |
| 8486 | lnscip-shell system . . ln. conftest.a conftest.b 2>&5 || hard_links=no |
| 8487 | lnscip-shell system . . ln. conftest.a conftest.b 2>/dev/nullscip-shell filesystem . . `/dev/null`. && hard_links=no |
| 8488 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $hard_links" >&5 |
| 8489 | echoscip-shell system . . echo. "${ECHO_T}$hard_links" >&6 |
| 8490 | if testscip-shell system . . test. "$hard_links" = no; then |
| 8491 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 8492 | echoscip-shell system . . echo. "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 8493 | need_locks=warn |
| 8494 | fi |
| 8495 | else |
| 8496 | need_locks=no |
| 8497 | fi |
| 8498 | |
| 8499 | echoscip-shell system . . echo. "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 8500 | echoscip-shell system . . echo. $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 8501 | |
| 8502 | runpath_var= |
| 8503 | allow_undefined_flag= |
| 8504 | enable_shared_with_static_runtimes=no |
| 8505 | archive_cmds= |
| 8506 | archive_expsym_cmds= |
| 8507 | old_archive_From_new_cmds= |
| 8508 | old_archive_from_expsyms_cmds= |
| 8509 | export_dynamic_flag_spec= |
| 8510 | whole_archive_flag_spec= |
| 8511 | thread_safe_flag_spec= |
| 8512 | hardcode_libdir_flag_spec= |
| 8513 | hardcode_libdir_flag_spec_ld= |
| 8514 | hardcode_libdir_separator= |
| 8515 | hardcode_direct=no |
| 8516 | hardcode_minus_L=no |
| 8517 | hardcode_shlibpath_var=unsupported |
| 8518 | link_all_deplibs=unknown |
| 8519 | hardcode_automatic=no |
| 8520 | module_cmds= |
| 8521 | module_expsym_cmds= |
| 8522 | always_export_symbols=no |
| 8523 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 8524 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 8525 | # included in the symbol list |
| 8526 | include_expsyms= |
| 8527 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 8528 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 8529 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 8530 | # as well as any symbol that contains `d'. |
| 8531 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
| 8532 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 8533 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 8534 | # the symbol is explicitly referenced. Since portable code cannot |
| 8535 | # rely on this symbol name, it's probably fine to never include it in |
| 8536 | # preloaded symbol tables. |
| 8537 | extract_expsyms_cmds= |
| 8538 | # Just being paranoid about ensuring that cc_basename is set. |
| 8539 | for cc_temp in $compiler""; do |
| 8540 | case $cc_temp in |
| 8541 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 8542 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 8543 | \-*) ;; |
| 8544 | *) break;; |
| 8545 | esac |
| 8546 | done |
| 8547 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 8548 | |
| 8549 | case $host_os in |
| 8550 | cygwin* | mingw* | pw32*) |
| 8551 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 8552 | # When not using gcc, we currently assume that we are using |
| 8553 | # Microsoft Visual C++. |
| 8554 | if testscip-shell system . . test. "$GCC" != yes; then |
| 8555 | with_gnu_ld=no |
| 8556 | fi |
| 8557 | ;; |
| 8558 | interix*) |
| 8559 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 8560 | with_gnu_ld=yes |
| 8561 | ;; |
| 8562 | openbsd*) |
| 8563 | with_gnu_ld=no |
| 8564 | ;; |
| 8565 | esac |
| 8566 | |
| 8567 | ld_shlibs=yes |
| 8568 | if testscip-shell system . . test. "$with_gnu_ld" = yes; then |
| 8569 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 8570 | wlarc='${wl}' |
| 8571 | |
| 8572 | # Set some defaults for GNU ld with shared library support. These |
| 8573 | # are reset later if shared libraries are not supported. Putting them |
| 8574 | # here allows them to be overridden if necessary. |
| 8575 | runpath_var=LD_RUN_PATH |
| 8576 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
| 8577 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 8578 | # ancient GNU ld didn't support --whole-archive et. al. |
| 8579 | if $LD --help 2>&1 | grepscip-shell system . . grep. 'no-whole-archive' > /dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 8580 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 8581 | else |
| 8582 | whole_archive_flag_spec= |
| 8583 | fi |
| 8584 | supports_anon_versioning=no |
| 8585 | case `$LD -v 2>/dev/nullscip-shell filesystem . . `/dev/null`.` in |
| 8586 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 8587 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 8588 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 8589 | *\ 2.11.*) ;; # other 2.11 versions |
| 8590 | *) supports_anon_versioning=yes ;; |
| 8591 | esac |
| 8592 | |
| 8593 | # See if GNU ld supports shared libraries. |
| 8594 | case $host_os in |
| 8595 | aix3* | aix4* | aix5*) |
| 8596 | # On AIX/PPC, the GNU linker is very broken |
| 8597 | if testscip-shell system . . test. "$host_cpu" != ia64; then |
| 8598 | ld_shlibs=no |
| 8599 | catscip-shell system . . cat. <<EOF 1>&2 |
| 8600 | |
| 8601 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 8602 | *** to be unable to reliably create shared libraries on AIX. |
| 8603 | *** Therefore, libtool is disabling shared libraries support. If you |
| 8604 | *** really care for shared libraries, you may want to modify your PATH |
| 8605 | *** so that a non-GNU linker is found, and then restart. |
| 8606 | |
| 8607 | EOF |
| 8608 | fi |
| 8609 | ;; |
| 8610 | |
| 8611 | amigaos*) |
| 8612 | 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)' |
| 8613 | hardcode_libdir_flag_spec='-L$libdir' |
| 8614 | hardcode_minus_L=yes |
| 8615 | |
| 8616 | # Samuel A. Falvo II <[email protected]> reports |
| 8617 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 8618 | # to version 4, is to share data among multiple programs linked |
| 8619 | # with the same dynamic library. Since this doesn't match the |
| 8620 | # behavior of shared libraries on other platforms, we can't use |
| 8621 | # them. |
| 8622 | ld_shlibs=no |
| 8623 | ;; |
| 8624 | |
| 8625 | beos*) |
| 8626 | if $LD --help 2>&1 | grepscip-shell system . . grep. ': supported targets:.* elf' > /dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 8627 | allow_undefined_flag=unsupported |
| 8628 | # Joseph Beckenbach <[email protected]> says some releases of gcc |
| 8629 | # support --undefined. This deserves some investigation. FIXME |
| 8630 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8631 | else |
| 8632 | ld_shlibs=no |
| 8633 | fi |
| 8634 | ;; |
| 8635 | |
| 8636 | cygwin* | mingw* | pw32*) |
| 8637 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| 8638 | # as there is no search path for DLLs. |
| 8639 | hardcode_libdir_flag_spec='-L$libdir' |
| 8640 | allow_undefined_flag=unsupported |
| 8641 | always_export_symbols=no |
| 8642 | enable_shared_with_static_runtimes=yes |
| 8643 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 8644 | |
| 8645 | if $LD --help 2>&1 | grepscip-shell system . . grep. 'auto-import' > /dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 8646 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 8647 | # If the export-symbols file already is a .def file (1st line |
| 8648 | # is EXPORTS), use it as is; otherwise, prepend... |
| 8649 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 8650 | cp $export_symbols $output_objdir/$soname.def; |
| 8651 | else |
| 8652 | echo EXPORTS > $output_objdir/$soname.def; |
| 8653 | cat $export_symbols >> $output_objdir/$soname.def; |
| 8654 | fi~ |
| 8655 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 8656 | else |
| 8657 | ld_shlibs=no |
| 8658 | fi |
| 8659 | ;; |
| 8660 | |
| 8661 | interix3*) |
| 8662 | hardcode_direct=no |
| 8663 | hardcode_shlibpath_var=no |
| 8664 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 8665 | export_dynamic_flag_spec='${wl}-E' |
| 8666 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 8667 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 8668 | # default) and relocated if they conflict, which is a slow very memory |
| 8669 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 8670 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 8671 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 8672 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 8673 | archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 8674 | ;; |
| 8675 | |
| 8676 | linux*) |
| 8677 | if $LD --help 2>&1 | grepscip-shell system . . grep. ': supported targets:.* elf' > /dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 8678 | tmp_addflag= |
| 8679 | case $cc_basename,$host_cpu in |
| 8680 | pgcc*) # Portland Group C compiler |
| 8681 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
| 8682 | tmp_addflag=' $pic_flag' |
| 8683 | ;; |
| 8684 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 8685 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
| 8686 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 8687 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 8688 | tmp_addflag=' -i_dynamic' ;; |
| 8689 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 8690 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 8691 | ifc* | ifort*) # Intel Fortran compiler |
| 8692 | tmp_addflag=' -nofor_main' ;; |
| 8693 | esac |
| 8694 | archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8695 | |
| 8696 | if testscip-shell system . . test. $supports_anon_versioning = yes; then |
| 8697 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 8698 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 8699 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 8700 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 8701 | fi |
| 8702 | else |
| 8703 | ld_shlibs=no |
| 8704 | fi |
| 8705 | ;; |
| 8706 | |
| 8707 | netbsd*) |
| 8708 | if echoscip-shell system . . echo. __ELF__ | $CC -E - | grepscip-shell system . . grep. __ELF__ >/dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 8709 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 8710 | wlarc= |
| 8711 | else |
| 8712 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8713 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 8714 | fi |
| 8715 | ;; |
| 8716 | |
| 8717 | solaris*) |
| 8718 | if $LD -v 2>&1 | grepscip-shell system . . grep. 'BFD 2\.8' > /dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 8719 | ld_shlibs=no |
| 8720 | catscip-shell system . . cat. <<EOF 1>&2 |
| 8721 | |
| 8722 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 8723 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 8724 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 8725 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 8726 | *** your PATH or compiler configuration so that the native linker is |
| 8727 | *** used, and then restart. |
| 8728 | |
| 8729 | EOF |
| 8730 | elif $LD --help 2>&1 | grepscip-shell system . . grep. ': supported targets:.* elf' > /dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 8731 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8732 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 8733 | else |
| 8734 | ld_shlibs=no |
| 8735 | fi |
| 8736 | ;; |
| 8737 | |
| 8738 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 8739 | case `$LD -v 2>&1` in |
| 8740 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 8741 | ld_shlibs=no |
| 8742 | catscip-shell system . . cat. <<_LT_EOF 1>&2 |
| 8743 | |
| 8744 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 8745 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 8746 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 8747 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 8748 | *** your PATH or compiler configuration so that the native linker is |
| 8749 | *** used, and then restart. |
| 8750 | |
| 8751 | _LT_EOF |
| 8752 | ;; |
| 8753 | *) |
| 8754 | if $LD --help 2>&1 | grepscip-shell system . . grep. ': supported targets:.* elf' > /dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 8755 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 8756 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 8757 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 8758 | else |
| 8759 | ld_shlibs=no |
| 8760 | fi |
| 8761 | ;; |
| 8762 | esac |
| 8763 | ;; |
| 8764 | |
| 8765 | sunos4*) |
| 8766 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 8767 | wlarc= |
| 8768 | hardcode_direct=yes |
| 8769 | hardcode_shlibpath_var=no |
| 8770 | ;; |
| 8771 | |
| 8772 | *) |
| 8773 | if $LD --help 2>&1 | grepscip-shell system . . grep. ': supported targets:.* elf' > /dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 8774 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8775 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 8776 | else |
| 8777 | ld_shlibs=no |
| 8778 | fi |
| 8779 | ;; |
| 8780 | esac |
| 8781 | |
| 8782 | if testscip-shell system . . test. "$ld_shlibs" = no; then |
| 8783 | runpath_var= |
| 8784 | hardcode_libdir_flag_spec= |
| 8785 | export_dynamic_flag_spec= |
| 8786 | whole_archive_flag_spec= |
| 8787 | fi |
| 8788 | else |
| 8789 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 8790 | case $host_os in |
| 8791 | aix3*) |
| 8792 | allow_undefined_flag=unsupported |
| 8793 | always_export_symbols=yes |
| 8794 | 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' |
| 8795 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 8796 | # are no directories specified by -L. |
| 8797 | hardcode_minus_L=yes |
| 8798 | if testscip-shell system . . test. "$GCC" = yes && testscip-shell system . . test. -z "$lt_prog_compiler_static"; then |
| 8799 | # Neither direct hardcoding nor static linking is supported with a |
| 8800 | # broken collect2. |
| 8801 | hardcode_direct=unsupported |
| 8802 | fi |
| 8803 | ;; |
| 8804 | |
| 8805 | aix4* | aix5*) |
| 8806 | if testscip-shell system . . test. "$host_cpu" = ia64; then |
| 8807 | # On IA64, the linker does run time linking by default, so we don't |
| 8808 | # have to do anything special. |
| 8809 | aix_use_runtimelinking=no |
| 8810 | exp_sym_flag='-Bexport' |
| 8811 | no_entry_flag="" |
| 8812 | else |
| 8813 | # If we're using GNU nm, then we don't want the "-C" option. |
| 8814 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 8815 | if $NM -V 2>&1 | grepscip-shell system . . grep. 'GNU' > /dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 8816 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
| 8817 | else |
| 8818 | export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
| 8819 | fi |
| 8820 | aix_use_runtimelinking=no |
| 8821 | |
| 8822 | # Test if we are trying to use run time linking or normal |
| 8823 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 8824 | # need to do runtime linking. |
| 8825 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 8826 | for ld_flag in $LDFLAGS; do |
| 8827 | if (testscip-shell system . . test. $ld_flag = "-brtl" || testscip-shell system . . test. $ld_flag = "-Wl,-brtl"); then |
| 8828 | aix_use_runtimelinking=yes |
| 8829 | break |
| 8830 | fi |
| 8831 | done |
| 8832 | ;; |
| 8833 | esac |
| 8834 | |
| 8835 | exp_sym_flag='-bexport' |
| 8836 | no_entry_flag='-bnoentry' |
| 8837 | fi |
| 8838 | |
| 8839 | # When large executables or shared objects are built, AIX ld can |
| 8840 | # have problems creating the table of contents. If linking a library |
| 8841 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 8842 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 8843 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 8844 | |
| 8845 | archive_cmds='' |
| 8846 | hardcode_direct=yes |
| 8847 | hardcode_libdir_separator=':' |
| 8848 | link_all_deplibs=yes |
| 8849 | |
| 8850 | if testscip-shell system . . test. "$GCC" = yes; then |
| 8851 | case $host_os in aix4.[012]|aix4.[012].*) |
| 8852 | # We only want to do this on AIX 4.2 and lower, the check |
| 8853 | # below for broken collect2 doesn't work under 4.3+ |
| 8854 | collect2name=`${CC} -print-prog-name=collect2` |
| 8855 | if testscip-shell system . . test. -f "$collect2name" && \ |
| 8856 | strings "$collect2name" | grepscip-shell system . . grep. resolve_lib_name >/dev/nullscip-shell filesystem . . `/dev/null`. |
| 8857 | then |
| 8858 | # We have reworked collect2 |
| 8859 | hardcode_direct=yes |
| 8860 | else |
| 8861 | # We have old collect2 |
| 8862 | hardcode_direct=unsupported |
| 8863 | # It fails to find uninstalled libraries when the uninstalled |
| 8864 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 8865 | # to unsupported forces relinking |
| 8866 | hardcode_minus_L=yes |
| 8867 | hardcode_libdir_flag_spec='-L$libdir' |
| 8868 | hardcode_libdir_separator= |
| 8869 | fi |
| 8870 | ;; |
| 8871 | esac |
| 8872 | shared_flag='-shared' |
| 8873 | if testscip-shell system . . test. "$aix_use_runtimelinking" = yes; then |
| 8874 | shared_flag="$shared_flag "'${wl}-G' |
| 8875 | fi |
| 8876 | else |
| 8877 | # not using gcc |
| 8878 | if testscip-shell system . . test. "$host_cpu" = ia64; then |
| 8879 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 8880 | # chokes on -Wl,-G. The following line is correct: |
| 8881 | shared_flag='-G' |
| 8882 | else |
| 8883 | if testscip-shell system . . test. "$aix_use_runtimelinking" = yes; then |
| 8884 | shared_flag='${wl}-G' |
| 8885 | else |
| 8886 | shared_flag='${wl}-bM:SRE' |
| 8887 | fi |
| 8888 | fi |
| 8889 | fi |
| 8890 | |
| 8891 | # It seems that -bexpall does not export symbols beginning with |
| 8892 | # underscore (_), so it is better to generate a list of symbols to export. |
| 8893 | always_export_symbols=yes |
| 8894 | if testscip-shell system . . test. "$aix_use_runtimelinking" = yes; then |
| 8895 | # Warning - without using the other runtime loading flags (-brtl), |
| 8896 | # -berok will link without error, but may produce a broken library. |
| 8897 | allow_undefined_flag='-berok' |
| 8898 | # Determine the default libpath from the value encoded in an empty executable. |
| 8899 | catscip-shell system . . cat. >conftest.$ac_ext <<_ACEOF |
| 8900 | /* confdefs.h. */ |
| 8901 | _ACEOF |
| 8902 | catscip-shell system . . cat. confdefs.h >>conftest.$ac_ext |
| 8903 | catscip-shell system . . cat. >>conftest.$ac_ext <<_ACEOF |
| 8904 | /* end confdefs.h. */ |
| 8905 | |
| 8906 | int |
| 8907 | main () |
| 8908 | { |
| 8909 | |
| 8910 | ; |
| 8911 | return 0; |
| 8912 | } |
| 8913 | _ACEOF |
| 8914 | rmscip-shell system . . rm. -f conftest.$ac_objext conftest$ac_exeext |
| 8915 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8916 | (eval $ac_link) 2>conftest.er1 |
| 8917 | ac_status=$? |
| 8918 | grepscip-shell system . . grep. -v '^ *+' conftest.er1 >conftest.err |
| 8919 | rmscip-shell system . . rm. -f conftest.er1 |
| 8920 | catscip-shell system . . cat. conftest.err >&5 |
| 8921 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8922 | (exit $ac_status); } && |
| 8923 | { ac_try='test -z "$ac_c_werror_flag" |
| 8924 | || test ! -s conftest.err' |
| 8925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8926 | (eval $ac_try) 2>&5 |
| 8927 | ac_status=$? |
| 8928 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8929 | (exit $ac_status); }; } && |
| 8930 | { ac_try='test -s conftest$ac_exeext' |
| 8931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8932 | (eval $ac_try) 2>&5 |
| 8933 | ac_status=$? |
| 8934 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8935 | (exit $ac_status); }; }; then |
| 8936 | |
| 8937 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/nullscip-shell filesystem . . `/dev/null`. | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 8938 | }'` |
| 8939 | # Check for a 64-bit object if we didn't find anything. |
| 8940 | if testscip-shell system . . test. -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/nullscip-shell filesystem . . `/dev/null`. | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 8941 | }'`; fi |
| 8942 | else |
| 8943 | echoscip-shell system . . echo. "$as_me: failed program was:" >&5 |
| 8944 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 8945 | |
| 8946 | fi |
| 8947 | rmscip-shell system . . rm. -f conftest.err conftest.$ac_objext \ |
| 8948 | conftest$ac_exeext conftest.$ac_ext |
| 8949 | if testscip-shell system . . test. -z "$aix_libpath"; then aix_libpath="/usr/lib:/libscip-shell filesystem . . `/usr/lib:/lib`."; fi |
| 8950 | |
| 8951 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 8952 | archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
| 8953 | else |
| 8954 | if testscip-shell system . . test. "$host_cpu" = ia64; then |
| 8955 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 8956 | allow_undefined_flag="-z nodefs" |
| 8957 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" |
| 8958 | else |
| 8959 | # Determine the default libpath from the value encoded in an empty executable. |
| 8960 | catscip-shell system . . cat. >conftest.$ac_ext <<_ACEOF |
| 8961 | /* confdefs.h. */ |
| 8962 | _ACEOF |
| 8963 | catscip-shell system . . cat. confdefs.h >>conftest.$ac_ext |
| 8964 | catscip-shell system . . cat. >>conftest.$ac_ext <<_ACEOF |
| 8965 | /* end confdefs.h. */ |
| 8966 | |
| 8967 | int |
| 8968 | main () |
| 8969 | { |
| 8970 | |
| 8971 | ; |
| 8972 | return 0; |
| 8973 | } |
| 8974 | _ACEOF |
| 8975 | rmscip-shell system . . rm. -f conftest.$ac_objext conftest$ac_exeext |
| 8976 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8977 | (eval $ac_link) 2>conftest.er1 |
| 8978 | ac_status=$? |
| 8979 | grepscip-shell system . . grep. -v '^ *+' conftest.er1 >conftest.err |
| 8980 | rmscip-shell system . . rm. -f conftest.er1 |
| 8981 | catscip-shell system . . cat. conftest.err >&5 |
| 8982 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8983 | (exit $ac_status); } && |
| 8984 | { ac_try='test -z "$ac_c_werror_flag" |
| 8985 | || test ! -s conftest.err' |
| 8986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8987 | (eval $ac_try) 2>&5 |
| 8988 | ac_status=$? |
| 8989 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8990 | (exit $ac_status); }; } && |
| 8991 | { ac_try='test -s conftest$ac_exeext' |
| 8992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8993 | (eval $ac_try) 2>&5 |
| 8994 | ac_status=$? |
| 8995 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8996 | (exit $ac_status); }; }; then |
| 8997 | |
| 8998 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/nullscip-shell filesystem . . `/dev/null`. | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 8999 | }'` |
| 9000 | # Check for a 64-bit object if we didn't find anything. |
| 9001 | if testscip-shell system . . test. -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/nullscip-shell filesystem . . `/dev/null`. | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 9002 | }'`; fi |
| 9003 | else |
| 9004 | echoscip-shell system . . echo. "$as_me: failed program was:" >&5 |
| 9005 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 9006 | |
| 9007 | fi |
| 9008 | rmscip-shell system . . rm. -f conftest.err conftest.$ac_objext \ |
| 9009 | conftest$ac_exeext conftest.$ac_ext |
| 9010 | if testscip-shell system . . test. -z "$aix_libpath"; then aix_libpath="/usr/lib:/libscip-shell filesystem . . `/usr/lib:/lib`."; fi |
| 9011 | |
| 9012 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 9013 | # Warning - without using the other run time loading flags, |
| 9014 | # -berok will link without error, but may produce a broken library. |
| 9015 | no_undefined_flag=' ${wl}-bernotok' |
| 9016 | allow_undefined_flag=' ${wl}-berok' |
| 9017 | # Exported symbols can be pulled into shared objects from archives |
| 9018 | whole_archive_flag_spec='$convenience' |
| 9019 | archive_cmds_need_lc=yes |
| 9020 | # This is similar to how AIX traditionally builds its shared libraries. |
| 9021 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
| 9022 | fi |
| 9023 | fi |
| 9024 | ;; |
| 9025 | |
| 9026 | amigaos*) |
| 9027 | 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)' |
| 9028 | hardcode_libdir_flag_spec='-L$libdir' |
| 9029 | hardcode_minus_L=yes |
| 9030 | # see comment about different semantics on the GNU ld section |
| 9031 | ld_shlibs=no |
| 9032 | ;; |
| 9033 | |
| 9034 | bsdi[45]*) |
| 9035 | export_dynamic_flag_spec=-rdynamic |
| 9036 | ;; |
| 9037 | |
| 9038 | cygwin* | mingw* | pw32*) |
| 9039 | # When not using gcc, we currently assume that we are using |
| 9040 | # Microsoft Visual C++. |
| 9041 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 9042 | # no search path for DLLs. |
| 9043 | hardcode_libdir_flag_spec=' ' |
| 9044 | allow_undefined_flag=unsupported |
| 9045 | # Tell ltmain to make .lib files, not .a files. |
| 9046 | libext=lib |
| 9047 | # Tell ltmain to make .dll files, not .so files. |
| 9048 | shrext_cmds=".dll" |
| 9049 | # FIXME: Setting linknames here is a bad hack. |
| 9050 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 9051 | # The linker will automatically build a .lib file if we build a DLL. |
| 9052 | old_archive_From_new_cmds='true' |
| 9053 | # FIXME: Should let the user specify the lib program. |
| 9054 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 9055 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 9056 | enable_shared_with_static_runtimes=yes |
| 9057 | ;; |
| 9058 | |
| 9059 | darwin* | rhapsody*) |
| 9060 | case $host_os in |
| 9061 | rhapsody* | darwin1.[012]) |
| 9062 | allow_undefined_flag='${wl}-undefined ${wl}suppress' |
| 9063 | ;; |
| 9064 | *) # Darwin 1.3 on |
| 9065 | if testscip-shell system . . test. -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 9066 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 9067 | else |
| 9068 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 9069 | 10.[012]) |
| 9070 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 9071 | ;; |
| 9072 | 10.*) |
| 9073 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' |
| 9074 | ;; |
| 9075 | esac |
| 9076 | fi |
| 9077 | ;; |
| 9078 | esac |
| 9079 | archive_cmds_need_lc=no |
| 9080 | hardcode_direct=no |
| 9081 | hardcode_automatic=yes |
| 9082 | hardcode_shlibpath_var=unsupported |
| 9083 | whole_archive_flag_spec='' |
| 9084 | link_all_deplibs=yes |
| 9085 | if testscip-shell system . . test. "$GCC" = yes ; then |
| 9086 | output_verbose_link_cmd='echo' |
| 9087 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 9088 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 9089 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 9090 | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 9091 | module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 9092 | else |
| 9093 | case $cc_basename in |
| 9094 | xlc*) |
| 9095 | output_verbose_link_cmd='echo' |
| 9096 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 9097 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 9098 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 9099 | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 9100 | module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 9101 | ;; |
| 9102 | *) |
| 9103 | ld_shlibs=no |
| 9104 | ;; |
| 9105 | esac |
| 9106 | fi |
| 9107 | ;; |
| 9108 | |
| 9109 | dgux*) |
| 9110 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9111 | hardcode_libdir_flag_spec='-L$libdir' |
| 9112 | hardcode_shlibpath_var=no |
| 9113 | ;; |
| 9114 | |
| 9115 | freebsd1*) |
| 9116 | ld_shlibs=no |
| 9117 | ;; |
| 9118 | |
| 9119 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 9120 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 9121 | # does not break anything, and helps significantly (at the cost of a little |
| 9122 | # extra space). |
| 9123 | freebsd2.2*) |
| 9124 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 9125 | hardcode_libdir_flag_spec='-R$libdir' |
| 9126 | hardcode_direct=yes |
| 9127 | hardcode_shlibpath_var=no |
| 9128 | ;; |
| 9129 | |
| 9130 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 9131 | freebsd2*) |
| 9132 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 9133 | hardcode_direct=yes |
| 9134 | hardcode_minus_L=yes |
| 9135 | hardcode_shlibpath_var=no |
| 9136 | ;; |
| 9137 | |
| 9138 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 9139 | freebsd* | kfreebsd*-gnu | dragonfly*) |
| 9140 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 9141 | hardcode_libdir_flag_spec='-R$libdir' |
| 9142 | hardcode_direct=yes |
| 9143 | hardcode_shlibpath_var=no |
| 9144 | ;; |
| 9145 | |
| 9146 | hpux9*) |
| 9147 | if testscip-shell system . . test. "$GCC" = yes; then |
| 9148 | archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 9149 | else |
| 9150 | 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' |
| 9151 | fi |
| 9152 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 9153 | hardcode_libdir_separator=: |
| 9154 | hardcode_direct=yes |
| 9155 | |
| 9156 | # hardcode_minus_L: Not really in the search PATH, |
| 9157 | # but as the default location of the library. |
| 9158 | hardcode_minus_L=yes |
| 9159 | export_dynamic_flag_spec='${wl}-E' |
| 9160 | ;; |
| 9161 | |
| 9162 | hpux10*) |
| 9163 | if testscip-shell system . . test. "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 9164 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 9165 | else |
| 9166 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 9167 | fi |
| 9168 | if testscip-shell system . . test. "$with_gnu_ld" = no; then |
| 9169 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 9170 | hardcode_libdir_separator=: |
| 9171 | |
| 9172 | hardcode_direct=yes |
| 9173 | export_dynamic_flag_spec='${wl}-E' |
| 9174 | |
| 9175 | # hardcode_minus_L: Not really in the search PATH, |
| 9176 | # but as the default location of the library. |
| 9177 | hardcode_minus_L=yes |
| 9178 | fi |
| 9179 | ;; |
| 9180 | |
| 9181 | hpux11*) |
| 9182 | if testscip-shell system . . test. "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 9183 | case $host_cpu in |
| 9184 | hppa*64*) |
| 9185 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9186 | ;; |
| 9187 | ia64*) |
| 9188 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 9189 | ;; |
| 9190 | *) |
| 9191 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 9192 | ;; |
| 9193 | esac |
| 9194 | else |
| 9195 | case $host_cpu in |
| 9196 | hppa*64*) |
| 9197 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9198 | ;; |
| 9199 | ia64*) |
| 9200 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 9201 | ;; |
| 9202 | *) |
| 9203 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 9204 | ;; |
| 9205 | esac |
| 9206 | fi |
| 9207 | if testscip-shell system . . test. "$with_gnu_ld" = no; then |
| 9208 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 9209 | hardcode_libdir_separator=: |
| 9210 | |
| 9211 | case $host_cpu in |
| 9212 | hppa*64*|ia64*) |
| 9213 | hardcode_libdir_flag_spec_ld='+b $libdir' |
| 9214 | hardcode_direct=no |
| 9215 | hardcode_shlibpath_var=no |
| 9216 | ;; |
| 9217 | *) |
| 9218 | hardcode_direct=yes |
| 9219 | export_dynamic_flag_spec='${wl}-E' |
| 9220 | |
| 9221 | # hardcode_minus_L: Not really in the search PATH, |
| 9222 | # but as the default location of the library. |
| 9223 | hardcode_minus_L=yes |
| 9224 | ;; |
| 9225 | esac |
| 9226 | fi |
| 9227 | ;; |
| 9228 | |
| 9229 | irix5* | irix6* | nonstopux*) |
| 9230 | if testscip-shell system . . test. "$GCC" = yes; then |
| 9231 | 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' |
| 9232 | else |
| 9233 | 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' |
| 9234 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
| 9235 | fi |
| 9236 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9237 | hardcode_libdir_separator=: |
| 9238 | link_all_deplibs=yes |
| 9239 | ;; |
| 9240 | |
| 9241 | netbsd*) |
| 9242 | if echoscip-shell system . . echo. __ELF__ | $CC -E - | grepscip-shell system . . grep. __ELF__ >/dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 9243 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 9244 | else |
| 9245 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 9246 | fi |
| 9247 | hardcode_libdir_flag_spec='-R$libdir' |
| 9248 | hardcode_direct=yes |
| 9249 | hardcode_shlibpath_var=no |
| 9250 | ;; |
| 9251 | |
| 9252 | newsos6) |
| 9253 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9254 | hardcode_direct=yes |
| 9255 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9256 | hardcode_libdir_separator=: |
| 9257 | hardcode_shlibpath_var=no |
| 9258 | ;; |
| 9259 | |
| 9260 | openbsd*) |
| 9261 | hardcode_direct=yes |
| 9262 | hardcode_shlibpath_var=no |
| 9263 | if testscip-shell system . . test. -z "`echoscip-shell system . . echo. __ELF__ | $CC -E - | grepscip-shell system . . grep. __ELF__`" || testscip-shell system . . test. "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 9264 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 9265 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
| 9266 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 9267 | export_dynamic_flag_spec='${wl}-E' |
| 9268 | else |
| 9269 | case $host_os in |
| 9270 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 9271 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 9272 | hardcode_libdir_flag_spec='-R$libdir' |
| 9273 | ;; |
| 9274 | *) |
| 9275 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 9276 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 9277 | ;; |
| 9278 | esac |
| 9279 | fi |
| 9280 | ;; |
| 9281 | |
| 9282 | os2*) |
| 9283 | hardcode_libdir_flag_spec='-L$libdir' |
| 9284 | hardcode_minus_L=yes |
| 9285 | allow_undefined_flag=unsupported |
| 9286 | 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' |
| 9287 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 9288 | ;; |
| 9289 | |
| 9290 | osf3*) |
| 9291 | if testscip-shell system . . test. "$GCC" = yes; then |
| 9292 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 9293 | 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' |
| 9294 | else |
| 9295 | allow_undefined_flag=' -expect_unresolved \*' |
| 9296 | 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' |
| 9297 | fi |
| 9298 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9299 | hardcode_libdir_separator=: |
| 9300 | ;; |
| 9301 | |
| 9302 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 9303 | if testscip-shell system . . test. "$GCC" = yes; then |
| 9304 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 9305 | 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' |
| 9306 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9307 | else |
| 9308 | allow_undefined_flag=' -expect_unresolved \*' |
| 9309 | 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' |
| 9310 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
| 9311 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' |
| 9312 | |
| 9313 | # Both c and cxx compiler support -rpath directly |
| 9314 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 9315 | fi |
| 9316 | hardcode_libdir_separator=: |
| 9317 | ;; |
| 9318 | |
| 9319 | solaris*) |
| 9320 | no_undefined_flag=' -z text' |
| 9321 | if testscip-shell system . . test. "$GCC" = yes; then |
| 9322 | wlarc='${wl}' |
| 9323 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9324 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 9325 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
| 9326 | else |
| 9327 | wlarc='' |
| 9328 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9329 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 9330 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 9331 | fi |
| 9332 | hardcode_libdir_flag_spec='-R$libdir' |
| 9333 | hardcode_shlibpath_var=no |
| 9334 | case $host_os in |
| 9335 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 9336 | *) |
| 9337 | # The compiler driver will combine linker options so we |
| 9338 | # cannot just pass the convience library names through |
| 9339 | # without $wl, iff we do not link with $LD. |
| 9340 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 9341 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 9342 | case $wlarc in |
| 9343 | '') |
| 9344 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
| 9345 | *) |
| 9346 | whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; |
| 9347 | esac ;; |
| 9348 | esac |
| 9349 | link_all_deplibs=yes |
| 9350 | ;; |
| 9351 | |
| 9352 | sunos4*) |
| 9353 | if testscip-shell system . . test. "x$host_vendor" = xsequent; then |
| 9354 | # Use $CC to link under sequent, because it throws in some extra .o |
| 9355 | # files that make .init and .fini sections work. |
| 9356 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9357 | else |
| 9358 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 9359 | fi |
| 9360 | hardcode_libdir_flag_spec='-L$libdir' |
| 9361 | hardcode_direct=yes |
| 9362 | hardcode_minus_L=yes |
| 9363 | hardcode_shlibpath_var=no |
| 9364 | ;; |
| 9365 | |
| 9366 | sysv4) |
| 9367 | case $host_vendor in |
| 9368 | sni) |
| 9369 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9370 | hardcode_direct=yes # is this really true??? |
| 9371 | ;; |
| 9372 | siemens) |
| 9373 | ## LD is ld it makes a PLAMLIB |
| 9374 | ## CC just makes a GrossModule. |
| 9375 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 9376 | reload_cmds='$CC -r -o $output$reload_objs' |
| 9377 | hardcode_direct=no |
| 9378 | ;; |
| 9379 | motorola) |
| 9380 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9381 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 9382 | ;; |
| 9383 | esac |
| 9384 | runpath_var='LD_RUN_PATH' |
| 9385 | hardcode_shlibpath_var=no |
| 9386 | ;; |
| 9387 | |
| 9388 | sysv4.3*) |
| 9389 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9390 | hardcode_shlibpath_var=no |
| 9391 | export_dynamic_flag_spec='-Bexport' |
| 9392 | ;; |
| 9393 | |
| 9394 | sysv4*MP*) |
| 9395 | if testscip-shell system . . test. -d /usr/necscip-shell filesystem . . `/usr/nec`.; then |
| 9396 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9397 | hardcode_shlibpath_var=no |
| 9398 | runpath_var=LD_RUN_PATH |
| 9399 | hardcode_runpath_var=yes |
| 9400 | ld_shlibs=yes |
| 9401 | fi |
| 9402 | ;; |
| 9403 | |
| 9404 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 9405 | no_undefined_flag='${wl}-z,text' |
| 9406 | archive_cmds_need_lc=no |
| 9407 | hardcode_shlibpath_var=no |
| 9408 | runpath_var='LD_RUN_PATH' |
| 9409 | |
| 9410 | if testscip-shell system . . test. "$GCC" = yes; then |
| 9411 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9412 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9413 | else |
| 9414 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9415 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9416 | fi |
| 9417 | ;; |
| 9418 | |
| 9419 | sysv5* | sco3.2v5* | sco5v6*) |
| 9420 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 9421 | # link with -lc, and that would cause any symbols used from libc to |
| 9422 | # always be unresolved, which means just about no library would |
| 9423 | # ever link correctly. If we're not using GNU ld we use -z text |
| 9424 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 9425 | # as -z defs. |
| 9426 | no_undefined_flag='${wl}-z,text' |
| 9427 | allow_undefined_flag='${wl}-z,nodefs' |
| 9428 | archive_cmds_need_lc=no |
| 9429 | hardcode_shlibpath_var=no |
| 9430 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 9431 | hardcode_libdir_separator=':' |
| 9432 | link_all_deplibs=yes |
| 9433 | export_dynamic_flag_spec='${wl}-Bexport' |
| 9434 | runpath_var='LD_RUN_PATH' |
| 9435 | |
| 9436 | if testscip-shell system . . test. "$GCC" = yes; then |
| 9437 | archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9438 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9439 | else |
| 9440 | archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9441 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9442 | fi |
| 9443 | ;; |
| 9444 | |
| 9445 | uts4*) |
| 9446 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9447 | hardcode_libdir_flag_spec='-L$libdir' |
| 9448 | hardcode_shlibpath_var=no |
| 9449 | ;; |
| 9450 | |
| 9451 | *) |
| 9452 | ld_shlibs=no |
| 9453 | ;; |
| 9454 | esac |
| 9455 | fi |
| 9456 | |
| 9457 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $ld_shlibs" >&5 |
| 9458 | echoscip-shell system . . echo. "${ECHO_T}$ld_shlibs" >&6 |
| 9459 | testscip-shell system . . test. "$ld_shlibs" = no && can_build_shared=no |
| 9460 | |
| 9461 | # |
| 9462 | # Do we need to explicitly link libc? |
| 9463 | # |
| 9464 | case "x$archive_cmds_need_lc" in |
| 9465 | x|xyes) |
| 9466 | # Assume -lc should be added |
| 9467 | archive_cmds_need_lc=yes |
| 9468 | |
| 9469 | if testscip-shell system . . test. "$enable_shared" = yes && testscip-shell system . . test. "$GCC" = yes; then |
| 9470 | case $archive_cmds in |
| 9471 | *'~'*) |
| 9472 | # FIXME: we may have to deal with multi-command sequences. |
| 9473 | ;; |
| 9474 | '$CC '*) |
| 9475 | # Test whether the compiler implicitly links with -lc since on some |
| 9476 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 9477 | # to ld, don't add -lc before -lgcc. |
| 9478 | echoscip-shell system . . echo. "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 9479 | echoscip-shell system . . echo. $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 9480 | $rm conftest* |
| 9481 | printfscip-shell system . . printf. "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 9482 | |
| 9483 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9484 | (eval $ac_compile) 2>&5 |
| 9485 | ac_status=$? |
| 9486 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9487 | (exit $ac_status); } 2>conftest.err; then |
| 9488 | soname=conftest |
| 9489 | lib=conftest |
| 9490 | libobjs=conftest.$ac_objext |
| 9491 | deplibs= |
| 9492 | wl=$lt_prog_compiler_wl |
| 9493 | pic_flag=$lt_prog_compiler_pic |
| 9494 | compiler_flags=-v |
| 9495 | linker_flags=-v |
| 9496 | verstring= |
| 9497 | output_objdir=. |
| 9498 | libname=conftest |
| 9499 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 9500 | allow_undefined_flag= |
| 9501 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 9502 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 9503 | ac_status=$? |
| 9504 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9505 | (exit $ac_status); } |
| 9506 | then |
| 9507 | archive_cmds_need_lc=no |
| 9508 | else |
| 9509 | archive_cmds_need_lc=yes |
| 9510 | fi |
| 9511 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 9512 | else |
| 9513 | catscip-shell system . . cat. conftest.err 1>&5 |
| 9514 | fi |
| 9515 | $rm conftest* |
| 9516 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
| 9517 | echoscip-shell system . . echo. "${ECHO_T}$archive_cmds_need_lc" >&6 |
| 9518 | ;; |
| 9519 | esac |
| 9520 | fi |
| 9521 | ;; |
| 9522 | esac |
| 9523 | |
| 9524 | echoscip-shell system . . echo. "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 9525 | echoscip-shell system . . echo. $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 9526 | library_names_spec= |
| 9527 | libname_spec='lib$name' |
| 9528 | soname_spec= |
| 9529 | shrext_cmds=".so" |
| 9530 | postinstall_cmds= |
| 9531 | postuninstall_cmds= |
| 9532 | finish_cmds= |
| 9533 | finish_eval= |
| 9534 | shlibpath_var= |
| 9535 | shlibpath_overrides_runpath=unknown |
| 9536 | version_type=none |
| 9537 | dynamic_linker="$host_os ld.so" |
| 9538 | sys_lib_dlsearch_path_spec="/lib /usr/libscip-shell filesystem . . `/lib /usr/lib`." |
| 9539 | if testscip-shell system . . test. "$GCC" = yes; then |
| 9540 | sys_lib_search_path_spec=`$CC -print-search-dirs | grepscip-shell system . . grep. "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 9541 | if echoscip-shell system . . echo. "$sys_lib_search_path_spec" | grepscip-shell system . . grep. ';' >/dev/nullscip-shell filesystem . . `/dev/null`. ; then |
| 9542 | # if the path contains ";" then we assume it to be the separator |
| 9543 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 9544 | # assumed that no part of a normal pathname contains ";" but that should |
| 9545 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 9546 | sys_lib_search_path_spec=`echoscip-shell system . . echo. "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 9547 | else |
| 9548 | sys_lib_search_path_spec=`echoscip-shell system . . echo. "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 9549 | fi |
| 9550 | else |
| 9551 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/libscip-shell filesystem . . `/lib /usr/lib /usr/local/lib`." |
| 9552 | fi |
| 9553 | need_lib_prefix=unknown |
| 9554 | hardcode_into_libs=no |
| 9555 | |
| 9556 | # when you set need_version to no, make sure it does not cause -set_version |
| 9557 | # flags to be left without arguments |
| 9558 | need_version=unknown |
| 9559 | |
| 9560 | case $host_os in |
| 9561 | aix3*) |
| 9562 | version_type=linux |
| 9563 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 9564 | shlibpath_var=LIBPATH |
| 9565 | |
| 9566 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 9567 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9568 | ;; |
| 9569 | |
| 9570 | aix4* | aix5*) |
| 9571 | version_type=linux |
| 9572 | need_lib_prefix=no |
| 9573 | need_version=no |
| 9574 | hardcode_into_libs=yes |
| 9575 | if testscip-shell system . . test. "$host_cpu" = ia64; then |
| 9576 | # AIX 5 supports IA64 |
| 9577 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 9578 | shlibpath_var=LD_LIBRARY_PATH |
| 9579 | else |
| 9580 | # With GCC up to 2.95.x, collect2 would create an import file |
| 9581 | # for dependence libraries. The import file would start with |
| 9582 | # the line `#! .'. This would cause the generated library to |
| 9583 | # depend on `.', always an invalid library. This was fixed in |
| 9584 | # development snapshots of GCC prior to 3.0. |
| 9585 | case $host_os in |
| 9586 | aix4 | aix4.[01] | aix4.[01].*) |
| 9587 | if { echoscip-shell system . . echo. '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 9588 | echoscip-shell system . . echo. ' yes ' |
| 9589 | echoscip-shell system . . echo. '#endif'; } | ${CC} -E - | grepscip-shell system . . grep. yes > /dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 9590 | : |
| 9591 | else |
| 9592 | can_build_shared=no |
| 9593 | fi |
| 9594 | ;; |
| 9595 | esac |
| 9596 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 9597 | # soname into executable. Probably we can add versioning support to |
| 9598 | # collect2, so additional links can be useful in future. |
| 9599 | if testscip-shell system . . test. "$aix_use_runtimelinking" = yes; then |
| 9600 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 9601 | # instead of lib<name>.a to let people know that these are not |
| 9602 | # typical AIX shared libraries. |
| 9603 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9604 | else |
| 9605 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 9606 | # and later when we are not doing run time linking. |
| 9607 | library_names_spec='${libname}${release}.a $libname.a' |
| 9608 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9609 | fi |
| 9610 | shlibpath_var=LIBPATH |
| 9611 | fi |
| 9612 | ;; |
| 9613 | |
| 9614 | amigaos*) |
| 9615 | library_names_spec='$libname.ixlibrary $libname.a' |
| 9616 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 9617 | 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' |
| 9618 | ;; |
| 9619 | |
| 9620 | beos*) |
| 9621 | library_names_spec='${libname}${shared_ext}' |
| 9622 | dynamic_linker="$host_os ld.so" |
| 9623 | shlibpath_var=LIBRARY_PATH |
| 9624 | ;; |
| 9625 | |
| 9626 | bsdi[45]*) |
| 9627 | version_type=linux |
| 9628 | need_version=no |
| 9629 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9630 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9631 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 9632 | shlibpath_var=LD_LIBRARY_PATH |
| 9633 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/libscip-shell filesystem . . `/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib`." |
| 9634 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/libscip-shell filesystem . . `/shlib /usr/lib /usr/local/lib`." |
| 9635 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 9636 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 9637 | # libtool to hard-code these into programs |
| 9638 | ;; |
| 9639 | |
| 9640 | cygwin* | mingw* | pw32*) |
| 9641 | version_type=windows |
| 9642 | shrext_cmds=".dll" |
| 9643 | need_version=no |
| 9644 | need_lib_prefix=no |
| 9645 | |
| 9646 | case $GCC,$host_os in |
| 9647 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 9648 | library_names_spec='$libname.dll.a' |
| 9649 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 9650 | postinstall_cmds='base_file=`basename \${file}`~ |
| 9651 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 9652 | dldir=$destdir/`dirname \$dlpath`~ |
| 9653 | test -d \$dldir || mkdir -p \$dldir~ |
| 9654 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 9655 | chmod a+x \$dldir/$dlname' |
| 9656 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 9657 | dlpath=$dir/\$dldll~ |
| 9658 | $rm \$dlpath' |
| 9659 | shlibpath_overrides_runpath=yes |
| 9660 | |
| 9661 | case $host_os in |
| 9662 | cygwin*) |
| 9663 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 9664 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 9665 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/libscip-shell filesystem . . `/usr/lib /lib/w32api /lib /usr/local/lib`." |
| 9666 | ;; |
| 9667 | mingw*) |
| 9668 | # MinGW DLLs use traditional 'lib' prefix |
| 9669 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 9670 | sys_lib_search_path_spec=`$CC -print-search-dirs | grepscip-shell system . . grep. "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 9671 | if echoscip-shell system . . echo. "$sys_lib_search_path_spec" | grepscip-shell system . . grep. ';[c-zC-Z]:/' >/dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 9672 | # It is most probably a Windows format PATH printed by |
| 9673 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 9674 | # path with ; separators, and with drive letters. We can handle the |
| 9675 | # drive letters (cygwin fileutils understands them), so leave them, |
| 9676 | # especially as we might pass files found there to a mingw objdump, |
| 9677 | # which wouldn't understand a cygwinified path. Ahh. |
| 9678 | sys_lib_search_path_spec=`echoscip-shell system . . echo. "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 9679 | else |
| 9680 | sys_lib_search_path_spec=`echoscip-shell system . . echo. "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 9681 | fi |
| 9682 | ;; |
| 9683 | pw32*) |
| 9684 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 9685 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 9686 | ;; |
| 9687 | esac |
| 9688 | ;; |
| 9689 | |
| 9690 | *) |
| 9691 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 9692 | ;; |
| 9693 | esac |
| 9694 | dynamic_linker='Win32 ld.exe' |
| 9695 | # FIXME: first we should search . and the directory the executable is in |
| 9696 | shlibpath_var=PATH |
| 9697 | ;; |
| 9698 | |
| 9699 | darwin* | rhapsody*) |
| 9700 | dynamic_linker="$host_os dyld" |
| 9701 | version_type=darwin |
| 9702 | need_lib_prefix=no |
| 9703 | need_version=no |
| 9704 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 9705 | soname_spec='${libname}${release}${major}$shared_ext' |
| 9706 | shlibpath_overrides_runpath=yes |
| 9707 | shlibpath_var=DYLD_LIBRARY_PATH |
| 9708 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
| 9709 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 9710 | if testscip-shell system . . test. "$GCC" = yes; then |
| 9711 | sys_lib_search_path_spec=`$CC -print-search-dirs | trscip-shell system . . tr. "\n" "$PATH_SEPARATOR" | sedscip-shell system . . sed. -e 's/libraries:/@libraries:/' | trscip-shell system . . tr. "@" "\n" | grepscip-shell system . . grep. "^libraries:" | sedscip-shell system . . sed. -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
| 9712 | else |
| 9713 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/libscip-shell filesystem . . `/lib /usr/lib /usr/local/lib`.' |
| 9714 | fi |
| 9715 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/libscip-shell filesystem . . `/usr/local/lib /lib /usr/lib`.' |
| 9716 | ;; |
| 9717 | |
| 9718 | dgux*) |
| 9719 | version_type=linux |
| 9720 | need_lib_prefix=no |
| 9721 | need_version=no |
| 9722 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 9723 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9724 | shlibpath_var=LD_LIBRARY_PATH |
| 9725 | ;; |
| 9726 | |
| 9727 | freebsd1*) |
| 9728 | dynamic_linker=no |
| 9729 | ;; |
| 9730 | |
| 9731 | kfreebsd*-gnu) |
| 9732 | version_type=linux |
| 9733 | need_lib_prefix=no |
| 9734 | need_version=no |
| 9735 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9736 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9737 | shlibpath_var=LD_LIBRARY_PATH |
| 9738 | shlibpath_overrides_runpath=no |
| 9739 | hardcode_into_libs=yes |
| 9740 | dynamic_linker='GNU ld.so' |
| 9741 | ;; |
| 9742 | |
| 9743 | freebsd* | dragonfly*) |
| 9744 | # DragonFly does not have aout. When/if they implement a new |
| 9745 | # versioning mechanism, adjust this. |
| 9746 | if testscip-shell system . . test. -x /usr/bin/objformatscip-shell filesystem . . `/usr/bin/objformat`.; then |
| 9747 | objformat=`/usr/bin/objformatscip-shell filesystem . . `/usr/bin/objformat`.` |
| 9748 | else |
| 9749 | case $host_os in |
| 9750 | freebsd[123]*) objformat=aout ;; |
| 9751 | *) objformat=elf ;; |
| 9752 | esac |
| 9753 | fi |
| 9754 | version_type=freebsd-$objformat |
| 9755 | case $version_type in |
| 9756 | freebsd-elf*) |
| 9757 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9758 | need_version=no |
| 9759 | need_lib_prefix=no |
| 9760 | ;; |
| 9761 | freebsd-*) |
| 9762 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 9763 | need_version=yes |
| 9764 | ;; |
| 9765 | esac |
| 9766 | shlibpath_var=LD_LIBRARY_PATH |
| 9767 | case $host_os in |
| 9768 | freebsd2*) |
| 9769 | shlibpath_overrides_runpath=yes |
| 9770 | ;; |
| 9771 | freebsd3.[01]* | freebsdelf3.[01]*) |
| 9772 | shlibpath_overrides_runpath=yes |
| 9773 | hardcode_into_libs=yes |
| 9774 | ;; |
| 9775 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 9776 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
| 9777 | shlibpath_overrides_runpath=no |
| 9778 | hardcode_into_libs=yes |
| 9779 | ;; |
| 9780 | freebsd*) # from 4.6 on |
| 9781 | shlibpath_overrides_runpath=yes |
| 9782 | hardcode_into_libs=yes |
| 9783 | ;; |
| 9784 | esac |
| 9785 | ;; |
| 9786 | |
| 9787 | gnu*) |
| 9788 | version_type=linux |
| 9789 | need_lib_prefix=no |
| 9790 | need_version=no |
| 9791 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 9792 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9793 | shlibpath_var=LD_LIBRARY_PATH |
| 9794 | hardcode_into_libs=yes |
| 9795 | ;; |
| 9796 | |
| 9797 | hpux9* | hpux10* | hpux11*) |
| 9798 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 9799 | # link against other versions. |
| 9800 | version_type=sunos |
| 9801 | need_lib_prefix=no |
| 9802 | need_version=no |
| 9803 | case $host_cpu in |
| 9804 | ia64*) |
| 9805 | shrext_cmds='.so' |
| 9806 | hardcode_into_libs=yes |
| 9807 | dynamic_linker="$host_os dld.so" |
| 9808 | shlibpath_var=LD_LIBRARY_PATH |
| 9809 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 9810 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9811 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9812 | if testscip-shell system . . test. "X$HPUX_IA64_MODE" = X32; then |
| 9813 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/libscip-shell filesystem . . `/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib`." |
| 9814 | else |
| 9815 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64scip-shell filesystem . . `/usr/lib/hpux64 /usr/local/lib/hpux64`." |
| 9816 | fi |
| 9817 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 9818 | ;; |
| 9819 | hppa*64*) |
| 9820 | shrext_cmds='.sl' |
| 9821 | hardcode_into_libs=yes |
| 9822 | dynamic_linker="$host_os dld.sl" |
| 9823 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 9824 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 9825 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9826 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9827 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64scip-shell filesystem . . `/usr/lib/pa20_64 /usr/ccs/lib/pa20_64`." |
| 9828 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 9829 | ;; |
| 9830 | *) |
| 9831 | shrext_cmds='.sl' |
| 9832 | dynamic_linker="$host_os dld.sl" |
| 9833 | shlibpath_var=SHLIB_PATH |
| 9834 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 9835 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9836 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9837 | ;; |
| 9838 | esac |
| 9839 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 9840 | postinstall_cmds='chmod 555 $lib' |
| 9841 | ;; |
| 9842 | |
| 9843 | interix3*) |
| 9844 | version_type=linux |
| 9845 | need_lib_prefix=no |
| 9846 | need_version=no |
| 9847 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9848 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9849 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 9850 | shlibpath_var=LD_LIBRARY_PATH |
| 9851 | shlibpath_overrides_runpath=no |
| 9852 | hardcode_into_libs=yes |
| 9853 | ;; |
| 9854 | |
| 9855 | irix5* | irix6* | nonstopux*) |
| 9856 | case $host_os in |
| 9857 | nonstopux*) version_type=nonstopux ;; |
| 9858 | *) |
| 9859 | if testscip-shell system . . test. "$lt_cv_prog_gnu_ld" = yes; then |
| 9860 | version_type=linux |
| 9861 | else |
| 9862 | version_type=irix |
| 9863 | fi ;; |
| 9864 | esac |
| 9865 | need_lib_prefix=no |
| 9866 | need_version=no |
| 9867 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9868 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9869 | case $host_os in |
| 9870 | irix5* | nonstopux*) |
| 9871 | libsuff= shlibsuff= |
| 9872 | ;; |
| 9873 | *) |
| 9874 | case $LD in # libtool.m4 will add one of these switches to LD |
| 9875 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 9876 | libsuff= shlibsuff= libmagic=32-bit;; |
| 9877 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 9878 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 9879 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 9880 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 9881 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 9882 | esac |
| 9883 | ;; |
| 9884 | esac |
| 9885 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 9886 | shlibpath_overrides_runpath=no |
| 9887 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 9888 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 9889 | hardcode_into_libs=yes |
| 9890 | ;; |
| 9891 | |
| 9892 | # No shared lib support for Linux oldld, aout, or coff. |
| 9893 | linux*oldld* | linux*aout* | linux*coff*) |
| 9894 | dynamic_linker=no |
| 9895 | ;; |
| 9896 | |
| 9897 | # This must be Linux ELF. |
| 9898 | linux*) |
| 9899 | version_type=linux |
| 9900 | need_lib_prefix=no |
| 9901 | need_version=no |
| 9902 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9903 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9904 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 9905 | shlibpath_var=LD_LIBRARY_PATH |
| 9906 | shlibpath_overrides_runpath=no |
| 9907 | # This implies no fast_install, which is unacceptable. |
| 9908 | # Some rework will be needed to allow for fast_install |
| 9909 | # before this can be enabled. |
| 9910 | hardcode_into_libs=yes |
| 9911 | |
| 9912 | # Append ld.so.conf contents to the search path |
| 9913 | if testscip-shell system . . test. -f /etc/ld.so.confscip-shell filesystem . . `/etc/ld.so.conf`.; then |
| 9914 | lt_ld_extra=`awkscip-shell system . . awk. '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }scip-shell filesystem . . `/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }`.' < /etc/ld.so.confscip-shell filesystem . . `/etc/ld.so.conf`. | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | trscip-shell system . . tr. '\n' ' '` |
| 9915 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 9916 | fi |
| 9917 | |
| 9918 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 9919 | # powerpc, because MkLinux only supported shared libraries with the |
| 9920 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 9921 | # most powerpc-linux boxes support dynamic linking these days and |
| 9922 | # people can always --disable-shared, the test was removed, and we |
| 9923 | # assume the GNU/Linux dynamic linker is in use. |
| 9924 | dynamic_linker='GNU/Linux ld.so' |
| 9925 | ;; |
| 9926 | |
| 9927 | knetbsd*-gnu) |
| 9928 | version_type=linux |
| 9929 | need_lib_prefix=no |
| 9930 | need_version=no |
| 9931 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9932 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9933 | shlibpath_var=LD_LIBRARY_PATH |
| 9934 | shlibpath_overrides_runpath=no |
| 9935 | hardcode_into_libs=yes |
| 9936 | dynamic_linker='GNU ld.so' |
| 9937 | ;; |
| 9938 | |
| 9939 | netbsd*) |
| 9940 | version_type=sunos |
| 9941 | need_lib_prefix=no |
| 9942 | need_version=no |
| 9943 | if echoscip-shell system . . echo. __ELF__ | $CC -E - | grepscip-shell system . . grep. __ELF__ >/dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 9944 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9945 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 9946 | dynamic_linker='NetBSD (a.out) ld.so' |
| 9947 | else |
| 9948 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9949 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9950 | dynamic_linker='NetBSD ld.elf_so' |
| 9951 | fi |
| 9952 | shlibpath_var=LD_LIBRARY_PATH |
| 9953 | shlibpath_overrides_runpath=yes |
| 9954 | hardcode_into_libs=yes |
| 9955 | ;; |
| 9956 | |
| 9957 | newsos6) |
| 9958 | version_type=linux |
| 9959 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9960 | shlibpath_var=LD_LIBRARY_PATH |
| 9961 | shlibpath_overrides_runpath=yes |
| 9962 | ;; |
| 9963 | |
| 9964 | nto-qnx*) |
| 9965 | version_type=linux |
| 9966 | need_lib_prefix=no |
| 9967 | need_version=no |
| 9968 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9969 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9970 | shlibpath_var=LD_LIBRARY_PATH |
| 9971 | shlibpath_overrides_runpath=yes |
| 9972 | ;; |
| 9973 | |
| 9974 | openbsd*) |
| 9975 | version_type=sunos |
| 9976 | sys_lib_dlsearch_path_spec="/usr/libscip-shell filesystem . . `/usr/lib`." |
| 9977 | need_lib_prefix=no |
| 9978 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 9979 | case $host_os in |
| 9980 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 9981 | *) need_version=no ;; |
| 9982 | esac |
| 9983 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9984 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 9985 | shlibpath_var=LD_LIBRARY_PATH |
| 9986 | if testscip-shell system . . test. -z "`echoscip-shell system . . echo. __ELF__ | $CC -E - | grepscip-shell system . . grep. __ELF__`" || testscip-shell system . . test. "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 9987 | case $host_os in |
| 9988 | openbsd2.[89] | openbsd2.[89].*) |
| 9989 | shlibpath_overrides_runpath=no |
| 9990 | ;; |
| 9991 | *) |
| 9992 | shlibpath_overrides_runpath=yes |
| 9993 | ;; |
| 9994 | esac |
| 9995 | else |
| 9996 | shlibpath_overrides_runpath=yes |
| 9997 | fi |
| 9998 | ;; |
| 9999 | |
| 10000 | os2*) |
| 10001 | libname_spec='$name' |
| 10002 | shrext_cmds=".dll" |
| 10003 | need_lib_prefix=no |
| 10004 | library_names_spec='$libname${shared_ext} $libname.a' |
| 10005 | dynamic_linker='OS/2 ld.exe' |
| 10006 | shlibpath_var=LIBPATH |
| 10007 | ;; |
| 10008 | |
| 10009 | osf3* | osf4* | osf5*) |
| 10010 | version_type=osf |
| 10011 | need_lib_prefix=no |
| 10012 | need_version=no |
| 10013 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10014 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10015 | shlibpath_var=LD_LIBRARY_PATH |
| 10016 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlibscip-shell filesystem . . `/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib`." |
| 10017 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 10018 | ;; |
| 10019 | |
| 10020 | solaris*) |
| 10021 | version_type=linux |
| 10022 | need_lib_prefix=no |
| 10023 | need_version=no |
| 10024 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10025 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10026 | shlibpath_var=LD_LIBRARY_PATH |
| 10027 | shlibpath_overrides_runpath=yes |
| 10028 | hardcode_into_libs=yes |
| 10029 | # ldd complains unless libraries are executable |
| 10030 | postinstall_cmds='chmod +x $lib' |
| 10031 | ;; |
| 10032 | |
| 10033 | sunos4*) |
| 10034 | version_type=sunos |
| 10035 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 10036 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 10037 | shlibpath_var=LD_LIBRARY_PATH |
| 10038 | shlibpath_overrides_runpath=yes |
| 10039 | if testscip-shell system . . test. "$with_gnu_ld" = yes; then |
| 10040 | need_lib_prefix=no |
| 10041 | fi |
| 10042 | need_version=yes |
| 10043 | ;; |
| 10044 | |
| 10045 | sysv4 | sysv4.3*) |
| 10046 | version_type=linux |
| 10047 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10048 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10049 | shlibpath_var=LD_LIBRARY_PATH |
| 10050 | case $host_vendor in |
| 10051 | sni) |
| 10052 | shlibpath_overrides_runpath=no |
| 10053 | need_lib_prefix=no |
| 10054 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 10055 | runpath_var=LD_RUN_PATH |
| 10056 | ;; |
| 10057 | siemens) |
| 10058 | need_lib_prefix=no |
| 10059 | ;; |
| 10060 | motorola) |
| 10061 | need_lib_prefix=no |
| 10062 | need_version=no |
| 10063 | shlibpath_overrides_runpath=no |
| 10064 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/libscip-shell filesystem . . `/lib /usr/lib /usr/ccs/lib`.' |
| 10065 | ;; |
| 10066 | esac |
| 10067 | ;; |
| 10068 | |
| 10069 | sysv4*MP*) |
| 10070 | if testscip-shell system . . test. -d /usr/necscip-shell filesystem . . `/usr/nec`. ;then |
| 10071 | version_type=linux |
| 10072 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 10073 | soname_spec='$libname${shared_ext}.$major' |
| 10074 | shlibpath_var=LD_LIBRARY_PATH |
| 10075 | fi |
| 10076 | ;; |
| 10077 | |
| 10078 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 10079 | version_type=freebsd-elf |
| 10080 | need_lib_prefix=no |
| 10081 | need_version=no |
| 10082 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 10083 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10084 | shlibpath_var=LD_LIBRARY_PATH |
| 10085 | hardcode_into_libs=yes |
| 10086 | if testscip-shell system . . test. "$with_gnu_ld" = yes; then |
| 10087 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /libscip-shell filesystem . . `/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib`.' |
| 10088 | shlibpath_overrides_runpath=no |
| 10089 | else |
| 10090 | sys_lib_search_path_spec='/usr/ccs/lib /usr/libscip-shell filesystem . . `/usr/ccs/lib /usr/lib`.' |
| 10091 | shlibpath_overrides_runpath=yes |
| 10092 | case $host_os in |
| 10093 | sco3.2v5*) |
| 10094 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 10095 | ;; |
| 10096 | esac |
| 10097 | fi |
| 10098 | sys_lib_dlsearch_path_spec='/usr/libscip-shell filesystem . . `/usr/lib`.' |
| 10099 | ;; |
| 10100 | |
| 10101 | uts4*) |
| 10102 | version_type=linux |
| 10103 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10104 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10105 | shlibpath_var=LD_LIBRARY_PATH |
| 10106 | ;; |
| 10107 | |
| 10108 | *) |
| 10109 | dynamic_linker=no |
| 10110 | ;; |
| 10111 | esac |
| 10112 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 10113 | echoscip-shell system . . echo. "${ECHO_T}$dynamic_linker" >&6 |
| 10114 | testscip-shell system . . test. "$dynamic_linker" = no && can_build_shared=no |
| 10115 | |
| 10116 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 10117 | if testscip-shell system . . test. "$GCC" = yes; then |
| 10118 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 10119 | fi |
| 10120 | |
| 10121 | echoscip-shell system . . echo. "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 10122 | echoscip-shell system . . echo. $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 10123 | hardcode_action= |
| 10124 | if testscip-shell system . . test. -n "$hardcode_libdir_flag_spec" || \ |
| 10125 | test -n "$runpath_var" || \ |
| 10126 | test "X$hardcode_automatic" = "Xyes" ; then |
| 10127 | |
| 10128 | # We can hardcode non-existant directories. |
| 10129 | if testscip-shell system . . test. "$hardcode_direct" != no && |
| 10130 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 10131 | # have to relink, otherwise we might link with an installed library |
| 10132 | # when we should be linking with a yet-to-be-installed one |
| 10133 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
| 10134 | testscip-shell system . . test. "$hardcode_minus_L" != no; then |
| 10135 | # Linking always hardcodes the temporary library directory. |
| 10136 | hardcode_action=relink |
| 10137 | else |
| 10138 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 10139 | hardcode_action=immediate |
| 10140 | fi |
| 10141 | else |
| 10142 | # We cannot hardcode anything, or else we can only hardcode existing |
| 10143 | # directories. |
| 10144 | hardcode_action=unsupported |
| 10145 | fi |
| 10146 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $hardcode_action" >&5 |
| 10147 | echoscip-shell system . . echo. "${ECHO_T}$hardcode_action" >&6 |
| 10148 | |
| 10149 | if testscip-shell system . . test. "$hardcode_action" = relink; then |
| 10150 | # Fast installation is not supported |
| 10151 | enable_fast_install=no |
| 10152 | elif testscip-shell system . . test. "$shlibpath_overrides_runpath" = yes || |
| 10153 | testscip-shell system . . test. "$enable_shared" = no; then |
| 10154 | # Fast installation is not necessary |
| 10155 | enable_fast_install=needless |
| 10156 | fi |
| 10157 | |
| 10158 | striplib= |
| 10159 | old_striplib= |
| 10160 | echoscip-shell system . . echo. "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 10161 | echoscip-shell system . . echo. $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| 10162 | if testscip-shell system . . test. -n "$STRIP" && $STRIP -V 2>&1 | grepscip-shell system . . grep. "GNU strip" >/dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 10163 | testscip-shell system . . test. -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 10164 | testscip-shell system . . test. -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 10165 | echoscip-shell system . . echo. "$as_me:$LINENO: result: yes" >&5 |
| 10166 | echoscip-shell system . . echo. "${ECHO_T}yes" >&6 |
| 10167 | else |
| 10168 | # FIXME - insert some real tests, host_os isn't really good enough |
| 10169 | case $host_os in |
| 10170 | darwin*) |
| 10171 | if testscip-shell system . . test. -n "$STRIP" ; then |
| 10172 | striplib="$STRIP -x" |
| 10173 | echoscip-shell system . . echo. "$as_me:$LINENO: result: yes" >&5 |
| 10174 | echoscip-shell system . . echo. "${ECHO_T}yes" >&6 |
| 10175 | else |
| 10176 | echoscip-shell system . . echo. "$as_me:$LINENO: result: no" >&5 |
| 10177 | echoscip-shell system . . echo. "${ECHO_T}no" >&6 |
| 10178 | fi |
| 10179 | ;; |
| 10180 | *) |
| 10181 | echoscip-shell system . . echo. "$as_me:$LINENO: result: no" >&5 |
| 10182 | echoscip-shell system . . echo. "${ECHO_T}no" >&6 |
| 10183 | ;; |
| 10184 | esac |
| 10185 | fi |
| 10186 | |
| 10187 | if testscip-shell system . . test. "x$enable_dlopen" != xyes; then |
| 10188 | enable_dlopen=unknown |
| 10189 | enable_dlopen_self=unknown |
| 10190 | enable_dlopen_self_static=unknown |
| 10191 | else |
| 10192 | lt_cv_dlopen=no |
| 10193 | lt_cv_dlopen_libs= |
| 10194 | |
| 10195 | case $host_os in |
| 10196 | beos*) |
| 10197 | lt_cv_dlopen="load_add_on" |
| 10198 | lt_cv_dlopen_libs= |
| 10199 | lt_cv_dlopen_self=yes |
| 10200 | ;; |
| 10201 | |
| 10202 | mingw* | pw32*) |
| 10203 | lt_cv_dlopen="LoadLibrary" |
| 10204 | lt_cv_dlopen_libs= |
| 10205 | ;; |
| 10206 | |
| 10207 | cygwin*) |
| 10208 | lt_cv_dlopen="dlopen" |
| 10209 | lt_cv_dlopen_libs= |
| 10210 | ;; |
| 10211 | |
| 10212 | darwin*) |
| 10213 | # if libdl is installed we need to link against it |
| 10214 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 10215 | echoscip-shell system . . echo. $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 10216 | if testscip-shell system . . test. "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 10217 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 10218 | else |
| 10219 | ac_check_lib_save_LIBS=$LIBS |
| 10220 | LIBS="-ldl $LIBS" |
| 10221 | catscip-shell system . . cat. >conftest.$ac_ext <<_ACEOF |
| 10222 | /* confdefs.h. */ |
| 10223 | _ACEOF |
| 10224 | catscip-shell system . . cat. confdefs.h >>conftest.$ac_ext |
| 10225 | catscip-shell system . . cat. >>conftest.$ac_ext <<_ACEOF |
| 10226 | /* end confdefs.h. */ |
| 10227 | |
| 10228 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10229 | #ifdef __cplusplus |
| 10230 | extern "C" |
| 10231 | #endif |
| 10232 | /* We use char because int might match the return type of a gcc2 |
| 10233 | builtin and then its argument prototype would still apply. */ |
| 10234 | char dlopen (); |
| 10235 | int |
| 10236 | main () |
| 10237 | { |
| 10238 | dlopen (); |
| 10239 | ; |
| 10240 | return 0; |
| 10241 | } |
| 10242 | _ACEOF |
| 10243 | rmscip-shell system . . rm. -f conftest.$ac_objext conftest$ac_exeext |
| 10244 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10245 | (eval $ac_link) 2>conftest.er1 |
| 10246 | ac_status=$? |
| 10247 | grepscip-shell system . . grep. -v '^ *+' conftest.er1 >conftest.err |
| 10248 | rmscip-shell system . . rm. -f conftest.er1 |
| 10249 | catscip-shell system . . cat. conftest.err >&5 |
| 10250 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10251 | (exit $ac_status); } && |
| 10252 | { ac_try='test -z "$ac_c_werror_flag" |
| 10253 | || test ! -s conftest.err' |
| 10254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10255 | (eval $ac_try) 2>&5 |
| 10256 | ac_status=$? |
| 10257 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10258 | (exit $ac_status); }; } && |
| 10259 | { ac_try='test -s conftest$ac_exeext' |
| 10260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10261 | (eval $ac_try) 2>&5 |
| 10262 | ac_status=$? |
| 10263 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10264 | (exit $ac_status); }; }; then |
| 10265 | ac_cv_lib_dl_dlopen=yes |
| 10266 | else |
| 10267 | echoscip-shell system . . echo. "$as_me: failed program was:" >&5 |
| 10268 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 10269 | |
| 10270 | ac_cv_lib_dl_dlopen=no |
| 10271 | fi |
| 10272 | rmscip-shell system . . rm. -f conftest.err conftest.$ac_objext \ |
| 10273 | conftest$ac_exeext conftest.$ac_ext |
| 10274 | LIBS=$ac_check_lib_save_LIBS |
| 10275 | fi |
| 10276 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 10277 | echoscip-shell system . . echo. "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 10278 | if testscip-shell system . . test. $ac_cv_lib_dl_dlopen = yes; then |
| 10279 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 10280 | else |
| 10281 | |
| 10282 | lt_cv_dlopen="dyld" |
| 10283 | lt_cv_dlopen_libs= |
| 10284 | lt_cv_dlopen_self=yes |
| 10285 | |
| 10286 | fi |
| 10287 | |
| 10288 | ;; |
| 10289 | |
| 10290 | *) |
| 10291 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for shl_load" >&5 |
| 10292 | echoscip-shell system . . echo. $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
| 10293 | if testscip-shell system . . test. "${ac_cv_func_shl_load+set}" = set; then |
| 10294 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 10295 | else |
| 10296 | catscip-shell system . . cat. >conftest.$ac_ext <<_ACEOF |
| 10297 | /* confdefs.h. */ |
| 10298 | _ACEOF |
| 10299 | catscip-shell system . . cat. confdefs.h >>conftest.$ac_ext |
| 10300 | catscip-shell system . . cat. >>conftest.$ac_ext <<_ACEOF |
| 10301 | /* end confdefs.h. */ |
| 10302 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 10303 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10304 | #define shl_load innocuous_shl_load |
| 10305 | |
| 10306 | /* System header to define __stub macros and hopefully few prototypes, |
| 10307 | which can conflict with char shl_load (); below. |
| 10308 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10309 | <limits.h> exists even on freestanding compilers. */ |
| 10310 | |
| 10311 | #ifdef __STDC__ |
| 10312 | # include <limits.h> |
| 10313 | #else |
| 10314 | # include <assert.h> |
| 10315 | #endif |
| 10316 | |
| 10317 | #undef shl_load |
| 10318 | |
| 10319 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10320 | #ifdef __cplusplus |
| 10321 | extern "C" |
| 10322 | { |
| 10323 | #endif |
| 10324 | /* We use char because int might match the return type of a gcc2 |
| 10325 | builtin and then its argument prototype would still apply. */ |
| 10326 | char shl_load (); |
| 10327 | /* The GNU C library defines this for functions which it implements |
| 10328 | to always fail with ENOSYS. Some functions are actually named |
| 10329 | something starting with __ and the normal name is an alias. */ |
| 10330 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
| 10331 | choke me |
| 10332 | #else |
| 10333 | char (*f) () = shl_load; |
| 10334 | #endif |
| 10335 | #ifdef __cplusplus |
| 10336 | } |
| 10337 | #endif |
| 10338 | |
| 10339 | int |
| 10340 | main () |
| 10341 | { |
| 10342 | return f != shl_load; |
| 10343 | ; |
| 10344 | return 0; |
| 10345 | } |
| 10346 | _ACEOF |
| 10347 | rmscip-shell system . . rm. -f conftest.$ac_objext conftest$ac_exeext |
| 10348 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10349 | (eval $ac_link) 2>conftest.er1 |
| 10350 | ac_status=$? |
| 10351 | grepscip-shell system . . grep. -v '^ *+' conftest.er1 >conftest.err |
| 10352 | rmscip-shell system . . rm. -f conftest.er1 |
| 10353 | catscip-shell system . . cat. conftest.err >&5 |
| 10354 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10355 | (exit $ac_status); } && |
| 10356 | { ac_try='test -z "$ac_c_werror_flag" |
| 10357 | || test ! -s conftest.err' |
| 10358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10359 | (eval $ac_try) 2>&5 |
| 10360 | ac_status=$? |
| 10361 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10362 | (exit $ac_status); }; } && |
| 10363 | { ac_try='test -s conftest$ac_exeext' |
| 10364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10365 | (eval $ac_try) 2>&5 |
| 10366 | ac_status=$? |
| 10367 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10368 | (exit $ac_status); }; }; then |
| 10369 | ac_cv_func_shl_load=yes |
| 10370 | else |
| 10371 | echoscip-shell system . . echo. "$as_me: failed program was:" >&5 |
| 10372 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 10373 | |
| 10374 | ac_cv_func_shl_load=no |
| 10375 | fi |
| 10376 | rmscip-shell system . . rm. -f conftest.err conftest.$ac_objext \ |
| 10377 | conftest$ac_exeext conftest.$ac_ext |
| 10378 | fi |
| 10379 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 10380 | echoscip-shell system . . echo. "${ECHO_T}$ac_cv_func_shl_load" >&6 |
| 10381 | if testscip-shell system . . test. $ac_cv_func_shl_load = yes; then |
| 10382 | lt_cv_dlopen="shl_load" |
| 10383 | else |
| 10384 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 10385 | echoscip-shell system . . echo. $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 10386 | if testscip-shell system . . test. "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 10387 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 10388 | else |
| 10389 | ac_check_lib_save_LIBS=$LIBS |
| 10390 | LIBS="-ldld $LIBS" |
| 10391 | catscip-shell system . . cat. >conftest.$ac_ext <<_ACEOF |
| 10392 | /* confdefs.h. */ |
| 10393 | _ACEOF |
| 10394 | catscip-shell system . . cat. confdefs.h >>conftest.$ac_ext |
| 10395 | catscip-shell system . . cat. >>conftest.$ac_ext <<_ACEOF |
| 10396 | /* end confdefs.h. */ |
| 10397 | |
| 10398 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10399 | #ifdef __cplusplus |
| 10400 | extern "C" |
| 10401 | #endif |
| 10402 | /* We use char because int might match the return type of a gcc2 |
| 10403 | builtin and then its argument prototype would still apply. */ |
| 10404 | char shl_load (); |
| 10405 | int |
| 10406 | main () |
| 10407 | { |
| 10408 | shl_load (); |
| 10409 | ; |
| 10410 | return 0; |
| 10411 | } |
| 10412 | _ACEOF |
| 10413 | rmscip-shell system . . rm. -f conftest.$ac_objext conftest$ac_exeext |
| 10414 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10415 | (eval $ac_link) 2>conftest.er1 |
| 10416 | ac_status=$? |
| 10417 | grepscip-shell system . . grep. -v '^ *+' conftest.er1 >conftest.err |
| 10418 | rmscip-shell system . . rm. -f conftest.er1 |
| 10419 | catscip-shell system . . cat. conftest.err >&5 |
| 10420 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10421 | (exit $ac_status); } && |
| 10422 | { ac_try='test -z "$ac_c_werror_flag" |
| 10423 | || test ! -s conftest.err' |
| 10424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10425 | (eval $ac_try) 2>&5 |
| 10426 | ac_status=$? |
| 10427 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10428 | (exit $ac_status); }; } && |
| 10429 | { ac_try='test -s conftest$ac_exeext' |
| 10430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10431 | (eval $ac_try) 2>&5 |
| 10432 | ac_status=$? |
| 10433 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10434 | (exit $ac_status); }; }; then |
| 10435 | ac_cv_lib_dld_shl_load=yes |
| 10436 | else |
| 10437 | echoscip-shell system . . echo. "$as_me: failed program was:" >&5 |
| 10438 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 10439 | |
| 10440 | ac_cv_lib_dld_shl_load=no |
| 10441 | fi |
| 10442 | rmscip-shell system . . rm. -f conftest.err conftest.$ac_objext \ |
| 10443 | conftest$ac_exeext conftest.$ac_ext |
| 10444 | LIBS=$ac_check_lib_save_LIBS |
| 10445 | fi |
| 10446 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 10447 | echoscip-shell system . . echo. "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 10448 | if testscip-shell system . . test. $ac_cv_lib_dld_shl_load = yes; then |
| 10449 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 10450 | else |
| 10451 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for dlopen" >&5 |
| 10452 | echoscip-shell system . . echo. $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
| 10453 | if testscip-shell system . . test. "${ac_cv_func_dlopen+set}" = set; then |
| 10454 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 10455 | else |
| 10456 | catscip-shell system . . cat. >conftest.$ac_ext <<_ACEOF |
| 10457 | /* confdefs.h. */ |
| 10458 | _ACEOF |
| 10459 | catscip-shell system . . cat. confdefs.h >>conftest.$ac_ext |
| 10460 | catscip-shell system . . cat. >>conftest.$ac_ext <<_ACEOF |
| 10461 | /* end confdefs.h. */ |
| 10462 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
| 10463 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10464 | #define dlopen innocuous_dlopen |
| 10465 | |
| 10466 | /* System header to define __stub macros and hopefully few prototypes, |
| 10467 | which can conflict with char dlopen (); below. |
| 10468 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10469 | <limits.h> exists even on freestanding compilers. */ |
| 10470 | |
| 10471 | #ifdef __STDC__ |
| 10472 | # include <limits.h> |
| 10473 | #else |
| 10474 | # include <assert.h> |
| 10475 | #endif |
| 10476 | |
| 10477 | #undef dlopen |
| 10478 | |
| 10479 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10480 | #ifdef __cplusplus |
| 10481 | extern "C" |
| 10482 | { |
| 10483 | #endif |
| 10484 | /* We use char because int might match the return type of a gcc2 |
| 10485 | builtin and then its argument prototype would still apply. */ |
| 10486 | char dlopen (); |
| 10487 | /* The GNU C library defines this for functions which it implements |
| 10488 | to always fail with ENOSYS. Some functions are actually named |
| 10489 | something starting with __ and the normal name is an alias. */ |
| 10490 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
| 10491 | choke me |
| 10492 | #else |
| 10493 | char (*f) () = dlopen; |
| 10494 | #endif |
| 10495 | #ifdef __cplusplus |
| 10496 | } |
| 10497 | #endif |
| 10498 | |
| 10499 | int |
| 10500 | main () |
| 10501 | { |
| 10502 | return f != dlopen; |
| 10503 | ; |
| 10504 | return 0; |
| 10505 | } |
| 10506 | _ACEOF |
| 10507 | rmscip-shell system . . rm. -f conftest.$ac_objext conftest$ac_exeext |
| 10508 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10509 | (eval $ac_link) 2>conftest.er1 |
| 10510 | ac_status=$? |
| 10511 | grepscip-shell system . . grep. -v '^ *+' conftest.er1 >conftest.err |
| 10512 | rmscip-shell system . . rm. -f conftest.er1 |
| 10513 | catscip-shell system . . cat. conftest.err >&5 |
| 10514 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10515 | (exit $ac_status); } && |
| 10516 | { ac_try='test -z "$ac_c_werror_flag" |
| 10517 | || test ! -s conftest.err' |
| 10518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10519 | (eval $ac_try) 2>&5 |
| 10520 | ac_status=$? |
| 10521 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10522 | (exit $ac_status); }; } && |
| 10523 | { ac_try='test -s conftest$ac_exeext' |
| 10524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10525 | (eval $ac_try) 2>&5 |
| 10526 | ac_status=$? |
| 10527 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10528 | (exit $ac_status); }; }; then |
| 10529 | ac_cv_func_dlopen=yes |
| 10530 | else |
| 10531 | echoscip-shell system . . echo. "$as_me: failed program was:" >&5 |
| 10532 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 10533 | |
| 10534 | ac_cv_func_dlopen=no |
| 10535 | fi |
| 10536 | rmscip-shell system . . rm. -f conftest.err conftest.$ac_objext \ |
| 10537 | conftest$ac_exeext conftest.$ac_ext |
| 10538 | fi |
| 10539 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 10540 | echoscip-shell system . . echo. "${ECHO_T}$ac_cv_func_dlopen" >&6 |
| 10541 | if testscip-shell system . . test. $ac_cv_func_dlopen = yes; then |
| 10542 | lt_cv_dlopen="dlopen" |
| 10543 | else |
| 10544 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 10545 | echoscip-shell system . . echo. $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 10546 | if testscip-shell system . . test. "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 10547 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 10548 | else |
| 10549 | ac_check_lib_save_LIBS=$LIBS |
| 10550 | LIBS="-ldl $LIBS" |
| 10551 | catscip-shell system . . cat. >conftest.$ac_ext <<_ACEOF |
| 10552 | /* confdefs.h. */ |
| 10553 | _ACEOF |
| 10554 | catscip-shell system . . cat. confdefs.h >>conftest.$ac_ext |
| 10555 | catscip-shell system . . cat. >>conftest.$ac_ext <<_ACEOF |
| 10556 | /* end confdefs.h. */ |
| 10557 | |
| 10558 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10559 | #ifdef __cplusplus |
| 10560 | extern "C" |
| 10561 | #endif |
| 10562 | /* We use char because int might match the return type of a gcc2 |
| 10563 | builtin and then its argument prototype would still apply. */ |
| 10564 | char dlopen (); |
| 10565 | int |
| 10566 | main () |
| 10567 | { |
| 10568 | dlopen (); |
| 10569 | ; |
| 10570 | return 0; |
| 10571 | } |
| 10572 | _ACEOF |
| 10573 | rmscip-shell system . . rm. -f conftest.$ac_objext conftest$ac_exeext |
| 10574 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10575 | (eval $ac_link) 2>conftest.er1 |
| 10576 | ac_status=$? |
| 10577 | grepscip-shell system . . grep. -v '^ *+' conftest.er1 >conftest.err |
| 10578 | rmscip-shell system . . rm. -f conftest.er1 |
| 10579 | catscip-shell system . . cat. conftest.err >&5 |
| 10580 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10581 | (exit $ac_status); } && |
| 10582 | { ac_try='test -z "$ac_c_werror_flag" |
| 10583 | || test ! -s conftest.err' |
| 10584 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10585 | (eval $ac_try) 2>&5 |
| 10586 | ac_status=$? |
| 10587 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10588 | (exit $ac_status); }; } && |
| 10589 | { ac_try='test -s conftest$ac_exeext' |
| 10590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10591 | (eval $ac_try) 2>&5 |
| 10592 | ac_status=$? |
| 10593 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10594 | (exit $ac_status); }; }; then |
| 10595 | ac_cv_lib_dl_dlopen=yes |
| 10596 | else |
| 10597 | echoscip-shell system . . echo. "$as_me: failed program was:" >&5 |
| 10598 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 10599 | |
| 10600 | ac_cv_lib_dl_dlopen=no |
| 10601 | fi |
| 10602 | rmscip-shell system . . rm. -f conftest.err conftest.$ac_objext \ |
| 10603 | conftest$ac_exeext conftest.$ac_ext |
| 10604 | LIBS=$ac_check_lib_save_LIBS |
| 10605 | fi |
| 10606 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 10607 | echoscip-shell system . . echo. "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 10608 | if testscip-shell system . . test. $ac_cv_lib_dl_dlopen = yes; then |
| 10609 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 10610 | else |
| 10611 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 10612 | echoscip-shell system . . echo. $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
| 10613 | if testscip-shell system . . test. "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 10614 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 10615 | else |
| 10616 | ac_check_lib_save_LIBS=$LIBS |
| 10617 | LIBS="-lsvld $LIBS" |
| 10618 | catscip-shell system . . cat. >conftest.$ac_ext <<_ACEOF |
| 10619 | /* confdefs.h. */ |
| 10620 | _ACEOF |
| 10621 | catscip-shell system . . cat. confdefs.h >>conftest.$ac_ext |
| 10622 | catscip-shell system . . cat. >>conftest.$ac_ext <<_ACEOF |
| 10623 | /* end confdefs.h. */ |
| 10624 | |
| 10625 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10626 | #ifdef __cplusplus |
| 10627 | extern "C" |
| 10628 | #endif |
| 10629 | /* We use char because int might match the return type of a gcc2 |
| 10630 | builtin and then its argument prototype would still apply. */ |
| 10631 | char dlopen (); |
| 10632 | int |
| 10633 | main () |
| 10634 | { |
| 10635 | dlopen (); |
| 10636 | ; |
| 10637 | return 0; |
| 10638 | } |
| 10639 | _ACEOF |
| 10640 | rmscip-shell system . . rm. -f conftest.$ac_objext conftest$ac_exeext |
| 10641 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10642 | (eval $ac_link) 2>conftest.er1 |
| 10643 | ac_status=$? |
| 10644 | grepscip-shell system . . grep. -v '^ *+' conftest.er1 >conftest.err |
| 10645 | rmscip-shell system . . rm. -f conftest.er1 |
| 10646 | catscip-shell system . . cat. conftest.err >&5 |
| 10647 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10648 | (exit $ac_status); } && |
| 10649 | { ac_try='test -z "$ac_c_werror_flag" |
| 10650 | || test ! -s conftest.err' |
| 10651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10652 | (eval $ac_try) 2>&5 |
| 10653 | ac_status=$? |
| 10654 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10655 | (exit $ac_status); }; } && |
| 10656 | { ac_try='test -s conftest$ac_exeext' |
| 10657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10658 | (eval $ac_try) 2>&5 |
| 10659 | ac_status=$? |
| 10660 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10661 | (exit $ac_status); }; }; then |
| 10662 | ac_cv_lib_svld_dlopen=yes |
| 10663 | else |
| 10664 | echoscip-shell system . . echo. "$as_me: failed program was:" >&5 |
| 10665 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 10666 | |
| 10667 | ac_cv_lib_svld_dlopen=no |
| 10668 | fi |
| 10669 | rmscip-shell system . . rm. -f conftest.err conftest.$ac_objext \ |
| 10670 | conftest$ac_exeext conftest.$ac_ext |
| 10671 | LIBS=$ac_check_lib_save_LIBS |
| 10672 | fi |
| 10673 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 10674 | echoscip-shell system . . echo. "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
| 10675 | if testscip-shell system . . test. $ac_cv_lib_svld_dlopen = yes; then |
| 10676 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 10677 | else |
| 10678 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 10679 | echoscip-shell system . . echo. $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
| 10680 | if testscip-shell system . . test. "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 10681 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 10682 | else |
| 10683 | ac_check_lib_save_LIBS=$LIBS |
| 10684 | LIBS="-ldld $LIBS" |
| 10685 | catscip-shell system . . cat. >conftest.$ac_ext <<_ACEOF |
| 10686 | /* confdefs.h. */ |
| 10687 | _ACEOF |
| 10688 | catscip-shell system . . cat. confdefs.h >>conftest.$ac_ext |
| 10689 | catscip-shell system . . cat. >>conftest.$ac_ext <<_ACEOF |
| 10690 | /* end confdefs.h. */ |
| 10691 | |
| 10692 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10693 | #ifdef __cplusplus |
| 10694 | extern "C" |
| 10695 | #endif |
| 10696 | /* We use char because int might match the return type of a gcc2 |
| 10697 | builtin and then its argument prototype would still apply. */ |
| 10698 | char dld_link (); |
| 10699 | int |
| 10700 | main () |
| 10701 | { |
| 10702 | dld_link (); |
| 10703 | ; |
| 10704 | return 0; |
| 10705 | } |
| 10706 | _ACEOF |
| 10707 | rmscip-shell system . . rm. -f conftest.$ac_objext conftest$ac_exeext |
| 10708 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10709 | (eval $ac_link) 2>conftest.er1 |
| 10710 | ac_status=$? |
| 10711 | grepscip-shell system . . grep. -v '^ *+' conftest.er1 >conftest.err |
| 10712 | rmscip-shell system . . rm. -f conftest.er1 |
| 10713 | catscip-shell system . . cat. conftest.err >&5 |
| 10714 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10715 | (exit $ac_status); } && |
| 10716 | { ac_try='test -z "$ac_c_werror_flag" |
| 10717 | || test ! -s conftest.err' |
| 10718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10719 | (eval $ac_try) 2>&5 |
| 10720 | ac_status=$? |
| 10721 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10722 | (exit $ac_status); }; } && |
| 10723 | { ac_try='test -s conftest$ac_exeext' |
| 10724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10725 | (eval $ac_try) 2>&5 |
| 10726 | ac_status=$? |
| 10727 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10728 | (exit $ac_status); }; }; then |
| 10729 | ac_cv_lib_dld_dld_link=yes |
| 10730 | else |
| 10731 | echoscip-shell system . . echo. "$as_me: failed program was:" >&5 |
| 10732 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 10733 | |
| 10734 | ac_cv_lib_dld_dld_link=no |
| 10735 | fi |
| 10736 | rmscip-shell system . . rm. -f conftest.err conftest.$ac_objext \ |
| 10737 | conftest$ac_exeext conftest.$ac_ext |
| 10738 | LIBS=$ac_check_lib_save_LIBS |
| 10739 | fi |
| 10740 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 10741 | echoscip-shell system . . echo. "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
| 10742 | if testscip-shell system . . test. $ac_cv_lib_dld_dld_link = yes; then |
| 10743 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 10744 | fi |
| 10745 | |
| 10746 | |
| 10747 | fi |
| 10748 | |
| 10749 | |
| 10750 | fi |
| 10751 | |
| 10752 | |
| 10753 | fi |
| 10754 | |
| 10755 | |
| 10756 | fi |
| 10757 | |
| 10758 | |
| 10759 | fi |
| 10760 | |
| 10761 | ;; |
| 10762 | esac |
| 10763 | |
| 10764 | if testscip-shell system . . test. "x$lt_cv_dlopen" != xno; then |
| 10765 | enable_dlopen=yes |
| 10766 | else |
| 10767 | enable_dlopen=no |
| 10768 | fi |
| 10769 | |
| 10770 | case $lt_cv_dlopen in |
| 10771 | dlopen) |
| 10772 | save_CPPFLAGS="$CPPFLAGS" |
| 10773 | testscip-shell system . . test. "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 10774 | |
| 10775 | save_LDFLAGS="$LDFLAGS" |
| 10776 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 10777 | |
| 10778 | save_LIBS="$LIBS" |
| 10779 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 10780 | |
| 10781 | echoscip-shell system . . echo. "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 10782 | echoscip-shell system . . echo. $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
| 10783 | if testscip-shell system . . test. "${lt_cv_dlopen_self+set}" = set; then |
| 10784 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 10785 | else |
| 10786 | if testscip-shell system . . test. "$cross_compiling" = yes; then : |
| 10787 | lt_cv_dlopen_self=cross |
| 10788 | else |
| 10789 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 10790 | lt_status=$lt_dlunknown |
| 10791 | catscip-shell system . . cat. > conftest.$ac_ext <<EOF |
| 10792 | #line 10792 "configure" |
| 10793 | #include "confdefs.h" |
| 10794 | |
| 10795 | #if HAVE_DLFCN_H |
| 10796 | #include <dlfcn.h> |
| 10797 | #endif |
| 10798 | |
| 10799 | #include <stdio.h> |
| 10800 | |
| 10801 | #ifdef RTLD_GLOBAL |
| 10802 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 10803 | #else |
| 10804 | # ifdef DL_GLOBAL |
| 10805 | # define LT_DLGLOBAL DL_GLOBAL |
| 10806 | # else |
| 10807 | # define LT_DLGLOBAL 0 |
| 10808 | # endif |
| 10809 | #endif |
| 10810 | |
| 10811 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 10812 | find out it does not work in some platform. */ |
| 10813 | #ifndef LT_DLLAZY_OR_NOW |
| 10814 | # ifdef RTLD_LAZY |
| 10815 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 10816 | # else |
| 10817 | # ifdef DL_LAZY |
| 10818 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 10819 | # else |
| 10820 | # ifdef RTLD_NOW |
| 10821 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 10822 | # else |
| 10823 | # ifdef DL_NOW |
| 10824 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 10825 | # else |
| 10826 | # define LT_DLLAZY_OR_NOW 0 |
| 10827 | # endif |
| 10828 | # endif |
| 10829 | # endif |
| 10830 | # endif |
| 10831 | #endif |
| 10832 | |
| 10833 | #ifdef __cplusplus |
| 10834 | extern "C" void exit (int); |
| 10835 | #endif |
| 10836 | |
| 10837 | void fnord() { int i=42;} |
| 10838 | int main () |
| 10839 | { |
| 10840 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 10841 | int status = $lt_dlunknown; |
| 10842 | |
| 10843 | if (self) |
| 10844 | { |
| 10845 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 10846 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 10847 | /* dlclose (self); */ |
| 10848 | } |
| 10849 | else |
| 10850 | puts (dlerror ()); |
| 10851 | |
| 10852 | exit (status); |
| 10853 | } |
| 10854 | EOF |
| 10855 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10856 | (eval $ac_link) 2>&5 |
| 10857 | ac_status=$? |
| 10858 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10859 | (exit $ac_status); } && testscip-shell system . . test. -s conftest${ac_exeext} 2>/dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 10860 | (./conftest; exit; ) >&5 2>/dev/nullscip-shell filesystem . . `/dev/null`. |
| 10861 | lt_status=$? |
| 10862 | case x$lt_status in |
| 10863 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 10864 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 10865 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
| 10866 | esac |
| 10867 | else : |
| 10868 | # compilation failed |
| 10869 | lt_cv_dlopen_self=no |
| 10870 | fi |
| 10871 | fi |
| 10872 | rmscip-shell system . . rm. -fr conftest* |
| 10873 | |
| 10874 | |
| 10875 | fi |
| 10876 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 10877 | echoscip-shell system . . echo. "${ECHO_T}$lt_cv_dlopen_self" >&6 |
| 10878 | |
| 10879 | if testscip-shell system . . test. "x$lt_cv_dlopen_self" = xyes; then |
| 10880 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
| 10881 | echoscip-shell system . . echo. "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 10882 | echoscip-shell system . . echo. $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
| 10883 | if testscip-shell system . . test. "${lt_cv_dlopen_self_static+set}" = set; then |
| 10884 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 10885 | else |
| 10886 | if testscip-shell system . . test. "$cross_compiling" = yes; then : |
| 10887 | lt_cv_dlopen_self_static=cross |
| 10888 | else |
| 10889 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 10890 | lt_status=$lt_dlunknown |
| 10891 | catscip-shell system . . cat. > conftest.$ac_ext <<EOF |
| 10892 | #line 10892 "configure" |
| 10893 | #include "confdefs.h" |
| 10894 | |
| 10895 | #if HAVE_DLFCN_H |
| 10896 | #include <dlfcn.h> |
| 10897 | #endif |
| 10898 | |
| 10899 | #include <stdio.h> |
| 10900 | |
| 10901 | #ifdef RTLD_GLOBAL |
| 10902 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 10903 | #else |
| 10904 | # ifdef DL_GLOBAL |
| 10905 | # define LT_DLGLOBAL DL_GLOBAL |
| 10906 | # else |
| 10907 | # define LT_DLGLOBAL 0 |
| 10908 | # endif |
| 10909 | #endif |
| 10910 | |
| 10911 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 10912 | find out it does not work in some platform. */ |
| 10913 | #ifndef LT_DLLAZY_OR_NOW |
| 10914 | # ifdef RTLD_LAZY |
| 10915 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 10916 | # else |
| 10917 | # ifdef DL_LAZY |
| 10918 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 10919 | # else |
| 10920 | # ifdef RTLD_NOW |
| 10921 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 10922 | # else |
| 10923 | # ifdef DL_NOW |
| 10924 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 10925 | # else |
| 10926 | # define LT_DLLAZY_OR_NOW 0 |
| 10927 | # endif |
| 10928 | # endif |
| 10929 | # endif |
| 10930 | # endif |
| 10931 | #endif |
| 10932 | |
| 10933 | #ifdef __cplusplus |
| 10934 | extern "C" void exit (int); |
| 10935 | #endif |
| 10936 | |
| 10937 | void fnord() { int i=42;} |
| 10938 | int main () |
| 10939 | { |
| 10940 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 10941 | int status = $lt_dlunknown; |
| 10942 | |
| 10943 | if (self) |
| 10944 | { |
| 10945 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 10946 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 10947 | /* dlclose (self); */ |
| 10948 | } |
| 10949 | else |
| 10950 | puts (dlerror ()); |
| 10951 | |
| 10952 | exit (status); |
| 10953 | } |
| 10954 | EOF |
| 10955 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10956 | (eval $ac_link) 2>&5 |
| 10957 | ac_status=$? |
| 10958 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10959 | (exit $ac_status); } && testscip-shell system . . test. -s conftest${ac_exeext} 2>/dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 10960 | (./conftest; exit; ) >&5 2>/dev/nullscip-shell filesystem . . `/dev/null`. |
| 10961 | lt_status=$? |
| 10962 | case x$lt_status in |
| 10963 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 10964 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 10965 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
| 10966 | esac |
| 10967 | else : |
| 10968 | # compilation failed |
| 10969 | lt_cv_dlopen_self_static=no |
| 10970 | fi |
| 10971 | fi |
| 10972 | rmscip-shell system . . rm. -fr conftest* |
| 10973 | |
| 10974 | |
| 10975 | fi |
| 10976 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 10977 | echoscip-shell system . . echo. "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
| 10978 | fi |
| 10979 | |
| 10980 | CPPFLAGS="$save_CPPFLAGS" |
| 10981 | LDFLAGS="$save_LDFLAGS" |
| 10982 | LIBS="$save_LIBS" |
| 10983 | ;; |
| 10984 | esac |
| 10985 | |
| 10986 | case $lt_cv_dlopen_self in |
| 10987 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 10988 | *) enable_dlopen_self=unknown ;; |
| 10989 | esac |
| 10990 | |
| 10991 | case $lt_cv_dlopen_self_static in |
| 10992 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 10993 | *) enable_dlopen_self_static=unknown ;; |
| 10994 | esac |
| 10995 | fi |
| 10996 | |
| 10997 | |
| 10998 | # Report which library types will actually be built |
| 10999 | echoscip-shell system . . echo. "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 11000 | echoscip-shell system . . echo. $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
| 11001 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 11002 | echoscip-shell system . . echo. "${ECHO_T}$can_build_shared" >&6 |
| 11003 | |
| 11004 | echoscip-shell system . . echo. "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 11005 | echoscip-shell system . . echo. $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
| 11006 | testscip-shell system . . test. "$can_build_shared" = "no" && enable_shared=no |
| 11007 | |
| 11008 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 11009 | # are all built from PIC. |
| 11010 | case $host_os in |
| 11011 | aix3*) |
| 11012 | testscip-shell system . . test. "$enable_shared" = yes && enable_static=no |
| 11013 | if testscip-shell system . . test. -n "$RANLIB"; then |
| 11014 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 11015 | postinstall_cmds='$RANLIB $lib' |
| 11016 | fi |
| 11017 | ;; |
| 11018 | |
| 11019 | aix4* | aix5*) |
| 11020 | if testscip-shell system . . test. "$host_cpu" != ia64 && testscip-shell system . . test. "$aix_use_runtimelinking" = no ; then |
| 11021 | testscip-shell system . . test. "$enable_shared" = yes && enable_static=no |
| 11022 | fi |
| 11023 | ;; |
| 11024 | esac |
| 11025 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $enable_shared" >&5 |
| 11026 | echoscip-shell system . . echo. "${ECHO_T}$enable_shared" >&6 |
| 11027 | |
| 11028 | echoscip-shell system . . echo. "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 11029 | echoscip-shell system . . echo. $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
| 11030 | # Make sure either enable_shared or enable_static is yes. |
| 11031 | testscip-shell system . . test. "$enable_shared" = yes || enable_static=yes |
| 11032 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $enable_static" >&5 |
| 11033 | echoscip-shell system . . echo. "${ECHO_T}$enable_static" >&6 |
| 11034 | |
| 11035 | # The else clause should only fire when bootstrapping the |
| 11036 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 11037 | # with your package, and you will get complaints that there are |
| 11038 | # no rules to generate ltmain.sh. |
| 11039 | if testscip-shell system . . test. -f "$ltmain"; then |
| 11040 | # See if we are running on zsh, and set the options which allow our commands through |
| 11041 | # without removal of \ escapes. |
| 11042 | if testscip-shell system . . test. -n "${ZSH_VERSION+set}" ; then |
| 11043 | setopt NO_GLOB_SUBST |
| 11044 | fi |
| 11045 | # Now quote all the things that may contain metacharacters while being |
| 11046 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 11047 | # variables and quote the copies for generation of the libtool script. |
| 11048 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
| 11049 | SED SHELL STRIP \ |
| 11050 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 11051 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 11052 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 11053 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 11054 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 11055 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 11056 | old_postinstall_cmds old_postuninstall_cmds \ |
| 11057 | compiler \ |
| 11058 | CC \ |
| 11059 | LD \ |
| 11060 | lt_prog_compiler_wl \ |
| 11061 | lt_prog_compiler_pic \ |
| 11062 | lt_prog_compiler_static \ |
| 11063 | lt_prog_compiler_no_builtin_flag \ |
| 11064 | export_dynamic_flag_spec \ |
| 11065 | thread_safe_flag_spec \ |
| 11066 | whole_archive_flag_spec \ |
| 11067 | enable_shared_with_static_runtimes \ |
| 11068 | old_archive_cmds \ |
| 11069 | old_archive_from_new_cmds \ |
| 11070 | predep_objects \ |
| 11071 | postdep_objects \ |
| 11072 | predeps \ |
| 11073 | postdeps \ |
| 11074 | compiler_lib_search_path \ |
| 11075 | archive_cmds \ |
| 11076 | archive_expsym_cmds \ |
| 11077 | postinstall_cmds \ |
| 11078 | postuninstall_cmds \ |
| 11079 | old_archive_from_expsyms_cmds \ |
| 11080 | allow_undefined_flag \ |
| 11081 | no_undefined_flag \ |
| 11082 | export_symbols_cmds \ |
| 11083 | hardcode_libdir_flag_spec \ |
| 11084 | hardcode_libdir_flag_spec_ld \ |
| 11085 | hardcode_libdir_separator \ |
| 11086 | hardcode_automatic \ |
| 11087 | module_cmds \ |
| 11088 | module_expsym_cmds \ |
| 11089 | lt_cv_prog_compiler_c_o \ |
| 11090 | exclude_expsyms \ |
| 11091 | include_expsyms; do |
| 11092 | |
| 11093 | case $var in |
| 11094 | old_archive_cmds | \ |
| 11095 | old_archive_from_new_cmds | \ |
| 11096 | archive_cmds | \ |
| 11097 | archive_expsym_cmds | \ |
| 11098 | module_cmds | \ |
| 11099 | module_expsym_cmds | \ |
| 11100 | old_archive_from_expsyms_cmds | \ |
| 11101 | export_symbols_cmds | \ |
| 11102 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 11103 | postinstall_cmds | postuninstall_cmds | \ |
| 11104 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 11105 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 11106 | # Double-quote double-evaled strings. |
| 11107 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 11108 | ;; |
| 11109 | *) |
| 11110 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 11111 | ;; |
| 11112 | esac |
| 11113 | done |
| 11114 | |
| 11115 | case $lt_echo in |
| 11116 | *'\$0 --fallback-echo"') |
| 11117 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 11118 | ;; |
| 11119 | esac |
| 11120 | |
| 11121 | cfgfile="${ofile}T" |
| 11122 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
| 11123 | $rm -f "$cfgfile" |
| 11124 | { echoscip-shell system . . echo. "$as_me:$LINENO: creating $ofile" >&5 |
| 11125 | echoscip-shell system . . echo. "$as_me: creating $ofile" >&6;} |
| 11126 | |
| 11127 | catscip-shell system . . cat. <<__EOF__ >> "$cfgfile" |
| 11128 | #! $SHELL |
| 11129 | |
| 11130 | # `$echo "$cfgfile" | sedscip-shell system . . sed. 's%^.*/%%'` - Provide generalized library-building support services. |
| 11131 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
| 11132 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 11133 | # |
| 11134 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
| 11135 | # Free Software Foundation, Inc. |
| 11136 | # |
| 11137 | # This file is part of GNU Libtool: |
| 11138 | # Originally by Gordon Matzigkeit <[email protected]>, 1996 |
| 11139 | # |
| 11140 | # This program is free software; you can redistribute it and/or modify |
| 11141 | # it under the terms of the GNU General Public License as published by |
| 11142 | # the Free Software Foundation; either version 2 of the License, or |
| 11143 | # (at your option) any later version. |
| 11144 | # |
| 11145 | # This program is distributed in the hope that it will be useful, but |
| 11146 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11147 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 11148 | # General Public License for more details. |
| 11149 | # |
| 11150 | # You should have received a copy of the GNU General Public License |
| 11151 | # along with this program; if not, write to the Free Software |
| 11152 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 11153 | # |
| 11154 | # As a special exception to the GNU General Public License, if you |
| 11155 | # distribute this file as part of a program that contains a |
| 11156 | # configuration script generated by Autoconf, you may include it under |
| 11157 | # the same distribution terms that you use for the rest of that program. |
| 11158 | |
| 11159 | # A sed program that does not truncate output. |
| 11160 | SED=$lt_SED |
| 11161 | |
| 11162 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
| 11163 | Xsed="$SED -e 1s/^X//" |
| 11164 | |
| 11165 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 11166 | # if CDPATH is set. |
| 11167 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 11168 | |
| 11169 | # The names of the tagged configurations supported by this script. |
| 11170 | available_tags= |
| 11171 | |
| 11172 | # ### BEGIN LIBTOOL CONFIG |
| 11173 | |
| 11174 | # Libtool was configured on host `(hostnamescip-shell system . . hostname. || unamescip-shell system . . uname. -n) 2>/dev/nullscip-shell filesystem . . `/dev/null`. | sedscip-shell system . . sed. 1q`: |
| 11175 | |
| 11176 | # Shell to use when invoking shell scripts. |
| 11177 | SHELL=$lt_SHELL |
| 11178 | |
| 11179 | # Whether or not to build shared libraries. |
| 11180 | build_libtool_libs=$enable_shared |
| 11181 | |
| 11182 | # Whether or not to build static libraries. |
| 11183 | build_old_libs=$enable_static |
| 11184 | |
| 11185 | # Whether or not to add -lc for building shared libraries. |
| 11186 | build_libtool_need_lc=$archive_cmds_need_lc |
| 11187 | |
| 11188 | # Whether or not to disallow shared libs when runtime libs are static |
| 11189 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
| 11190 | |
| 11191 | # Whether or not to optimize for fast installation. |
| 11192 | fast_install=$enable_fast_install |
| 11193 | |
| 11194 | # The host system. |
| 11195 | host_alias=$host_alias |
| 11196 | host=$host |
| 11197 | host_os=$host_os |
| 11198 | |
| 11199 | # The build system. |
| 11200 | build_alias=$build_alias |
| 11201 | build=$build |
| 11202 | build_os=$build_os |
| 11203 | |
| 11204 | # An echo program that does not interpret backslashes. |
| 11205 | echo=$lt_echo |
| 11206 | |
| 11207 | # The archiver. |
| 11208 | AR=$lt_AR |
| 11209 | AR_FLAGS=$lt_AR_FLAGS |
| 11210 | |
| 11211 | # A C compiler. |
| 11212 | LTCC=$lt_LTCC |
| 11213 | |
| 11214 | # LTCC compiler flags. |
| 11215 | LTCFLAGS=$lt_LTCFLAGS |
| 11216 | |
| 11217 | # A language-specific compiler. |
| 11218 | CC=$lt_compiler |
| 11219 | |
| 11220 | # Is the compiler the GNU C compiler? |
| 11221 | with_gcc=$GCC |
| 11222 | |
| 11223 | # An ERE matcher. |
| 11224 | EGREP=$lt_EGREP |
| 11225 | |
| 11226 | # The linker used to build libraries. |
| 11227 | LD=$lt_LD |
| 11228 | |
| 11229 | # Whether we need hard or soft links. |
| 11230 | LN_S=$lt_LN_S |
| 11231 | |
| 11232 | # A BSD-compatible nm program. |
| 11233 | NM=$lt_NM |
| 11234 | |
| 11235 | # A symbol stripping program |
| 11236 | STRIP=$lt_STRIP |
| 11237 | |
| 11238 | # Used to examine libraries when file_magic_cmd begins "file" |
| 11239 | MAGIC_CMD=$MAGIC_CMD |
| 11240 | |
| 11241 | # Used on cygwin: DLL creation program. |
| 11242 | DLLTOOL="$DLLTOOL" |
| 11243 | |
| 11244 | # Used on cygwin: object dumper. |
| 11245 | OBJDUMP="$OBJDUMP" |
| 11246 | |
| 11247 | # Used on cygwin: assembler. |
| 11248 | AS="$AS" |
| 11249 | |
| 11250 | # The name of the directory that contains temporary libtool files. |
| 11251 | objdir=$objdir |
| 11252 | |
| 11253 | # How to create reloadable object files. |
| 11254 | reload_flag=$lt_reload_flag |
| 11255 | reload_cmds=$lt_reload_cmds |
| 11256 | |
| 11257 | # How to pass a linker flag through the compiler. |
| 11258 | wl=$lt_lt_prog_compiler_wl |
| 11259 | |
| 11260 | # Object file suffix (normally "o"). |
| 11261 | objext="$ac_objext" |
| 11262 | |
| 11263 | # Old archive suffix (normally "a"). |
| 11264 | libext="$libext" |
| 11265 | |
| 11266 | # Shared library suffix (normally ".so"). |
| 11267 | shrext_cmds='$shrext_cmds' |
| 11268 | |
| 11269 | # Executable file suffix (normally ""). |
| 11270 | exeext="$exeext" |
| 11271 | |
| 11272 | # Additional compiler flags for building library objects. |
| 11273 | pic_flag=$lt_lt_prog_compiler_pic |
| 11274 | pic_mode=$pic_mode |
| 11275 | |
| 11276 | # What is the maximum length of a command? |
| 11277 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 11278 | |
| 11279 | # Does compiler simultaneously support -c and -o options? |
| 11280 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
| 11281 | |
| 11282 | # Must we lock files when doing compilation? |
| 11283 | need_locks=$lt_need_locks |
| 11284 | |
| 11285 | # Do we need the lib prefix for modules? |
| 11286 | need_lib_prefix=$need_lib_prefix |
| 11287 | |
| 11288 | # Do we need a version for libraries? |
| 11289 | need_version=$need_version |
| 11290 | |
| 11291 | # Whether dlopen is supported. |
| 11292 | dlopen_support=$enable_dlopen |
| 11293 | |
| 11294 | # Whether dlopen of programs is supported. |
| 11295 | dlopen_self=$enable_dlopen_self |
| 11296 | |
| 11297 | # Whether dlopen of statically linked programs is supported. |
| 11298 | dlopen_self_static=$enable_dlopen_self_static |
| 11299 | |
| 11300 | # Compiler flag to prevent dynamic linking. |
| 11301 | link_static_flag=$lt_lt_prog_compiler_static |
| 11302 | |
| 11303 | # Compiler flag to turn off builtin functions. |
| 11304 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
| 11305 | |
| 11306 | # Compiler flag to allow reflexive dlopens. |
| 11307 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 11308 | |
| 11309 | # Compiler flag to generate shared objects directly from archives. |
| 11310 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 11311 | |
| 11312 | # Compiler flag to generate thread-safe objects. |
| 11313 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
| 11314 | |
| 11315 | # Library versioning type. |
| 11316 | version_type=$version_type |
| 11317 | |
| 11318 | # Format of library name prefix. |
| 11319 | libname_spec=$lt_libname_spec |
| 11320 | |
| 11321 | # List of archive names. First name is the real one, the rest are links. |
| 11322 | # The last name is the one that the linker finds with -lNAME. |
| 11323 | library_names_spec=$lt_library_names_spec |
| 11324 | |
| 11325 | # The coded name of the library, if different from the real name. |
| 11326 | soname_spec=$lt_soname_spec |
| 11327 | |
| 11328 | # Commands used to build and install an old-style archive. |
| 11329 | RANLIB=$lt_RANLIB |
| 11330 | old_archive_cmds=$lt_old_archive_cmds |
| 11331 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 11332 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 11333 | |
| 11334 | # Create an old-style archive from a shared archive. |
| 11335 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 11336 | |
| 11337 | # Create a temporary old-style archive to link instead of a shared archive. |
| 11338 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 11339 | |
| 11340 | # Commands used to build and install a shared archive. |
| 11341 | archive_cmds=$lt_archive_cmds |
| 11342 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 11343 | postinstall_cmds=$lt_postinstall_cmds |
| 11344 | postuninstall_cmds=$lt_postuninstall_cmds |
| 11345 | |
| 11346 | # Commands used to build a loadable module (assumed same as above if empty) |
| 11347 | module_cmds=$lt_module_cmds |
| 11348 | module_expsym_cmds=$lt_module_expsym_cmds |
| 11349 | |
| 11350 | # Commands to strip libraries. |
| 11351 | old_striplib=$lt_old_striplib |
| 11352 | striplib=$lt_striplib |
| 11353 | |
| 11354 | # Dependencies to place before the objects being linked to create a |
| 11355 | # shared library. |
| 11356 | predep_objects=$lt_predep_objects |
| 11357 | |
| 11358 | # Dependencies to place after the objects being linked to create a |
| 11359 | # shared library. |
| 11360 | postdep_objects=$lt_postdep_objects |
| 11361 | |
| 11362 | # Dependencies to place before the objects being linked to create a |
| 11363 | # shared library. |
| 11364 | predeps=$lt_predeps |
| 11365 | |
| 11366 | # Dependencies to place after the objects being linked to create a |
| 11367 | # shared library. |
| 11368 | postdeps=$lt_postdeps |
| 11369 | |
| 11370 | # The library search path used internally by the compiler when linking |
| 11371 | # a shared library. |
| 11372 | compiler_lib_search_path=$lt_compiler_lib_search_path |
| 11373 | |
| 11374 | # Method to check whether dependent libraries are shared objects. |
| 11375 | deplibs_check_method=$lt_deplibs_check_method |
| 11376 | |
| 11377 | # Command to use when deplibs_check_method == file_magic. |
| 11378 | file_magic_cmd=$lt_file_magic_cmd |
| 11379 | |
| 11380 | # Flag that allows shared libraries with undefined symbols to be built. |
| 11381 | allow_undefined_flag=$lt_allow_undefined_flag |
| 11382 | |
| 11383 | # Flag that forces no undefined symbols. |
| 11384 | no_undefined_flag=$lt_no_undefined_flag |
| 11385 | |
| 11386 | # Commands used to finish a libtool library installation in a directory. |
| 11387 | finish_cmds=$lt_finish_cmds |
| 11388 | |
| 11389 | # Same as above, but a single script fragment to be evaled but not shown. |
| 11390 | finish_eval=$lt_finish_eval |
| 11391 | |
| 11392 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 11393 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 11394 | |
| 11395 | # Transform the output of nm in a proper C declaration |
| 11396 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 11397 | |
| 11398 | # Transform the output of nm in a C name address pair |
| 11399 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 11400 | |
| 11401 | # This is the shared library runtime path variable. |
| 11402 | runpath_var=$runpath_var |
| 11403 | |
| 11404 | # This is the shared library path variable. |
| 11405 | shlibpath_var=$shlibpath_var |
| 11406 | |
| 11407 | # Is shlibpath searched before the hard-coded library search path? |
| 11408 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 11409 | |
| 11410 | # How to hardcode a shared library path into an executable. |
| 11411 | hardcode_action=$hardcode_action |
| 11412 | |
| 11413 | # Whether we should hardcode library paths into libraries. |
| 11414 | hardcode_into_libs=$hardcode_into_libs |
| 11415 | |
| 11416 | # Flag to hardcode \$libdir into a binary during linking. |
| 11417 | # This must work even if \$libdir does not exist. |
| 11418 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 11419 | |
| 11420 | # If ld is used when linking, flag to hardcode \$libdir into |
| 11421 | # a binary during linking. This must work even if \$libdir does |
| 11422 | # not exist. |
| 11423 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
| 11424 | |
| 11425 | # Whether we need a single -rpath flag with a separated argument. |
| 11426 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 11427 | |
| 11428 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 11429 | # resulting binary. |
| 11430 | hardcode_direct=$hardcode_direct |
| 11431 | |
| 11432 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 11433 | # resulting binary. |
| 11434 | hardcode_minus_L=$hardcode_minus_L |
| 11435 | |
| 11436 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 11437 | # the resulting binary. |
| 11438 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 11439 | |
| 11440 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 11441 | # and all subsequent libraries and executables linked against it. |
| 11442 | hardcode_automatic=$hardcode_automatic |
| 11443 | |
| 11444 | # Variables whose values should be saved in libtool wrapper scripts and |
| 11445 | # restored at relink time. |
| 11446 | variables_saved_for_relink="$variables_saved_for_relink" |
| 11447 | |
| 11448 | # Whether libtool must link a program against all its dependency libraries. |
| 11449 | link_all_deplibs=$link_all_deplibs |
| 11450 | |
| 11451 | # Compile-time system search path for libraries |
| 11452 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 11453 | |
| 11454 | # Run-time system search path for libraries |
| 11455 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 11456 | |
| 11457 | # Fix the shell variable \$srcfile for the compiler. |
| 11458 | fix_srcfile_path="$fix_srcfile_path" |
| 11459 | |
| 11460 | # Set to yes if exported symbols are required. |
| 11461 | always_export_symbols=$always_export_symbols |
| 11462 | |
| 11463 | # The commands to list exported symbols. |
| 11464 | export_symbols_cmds=$lt_export_symbols_cmds |
| 11465 | |
| 11466 | # The commands to extract the exported symbol list from a shared archive. |
| 11467 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 11468 | |
| 11469 | # Symbols that should not be listed in the preloaded symbols. |
| 11470 | exclude_expsyms=$lt_exclude_expsyms |
| 11471 | |
| 11472 | # Symbols that must always be exported. |
| 11473 | include_expsyms=$lt_include_expsyms |
| 11474 | |
| 11475 | # ### END LIBTOOL CONFIG |
| 11476 | |
| 11477 | __EOF__ |
| 11478 | |
| 11479 | |
| 11480 | case $host_os in |
| 11481 | aix3*) |
| 11482 | catscip-shell system . . cat. <<\EOF >> "$cfgfile" |
| 11483 | |
| 11484 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 11485 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 11486 | # vanish in a puff of smoke. |
| 11487 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 11488 | COLLECT_NAMES= |
| 11489 | export COLLECT_NAMES |
| 11490 | fi |
| 11491 | EOF |
| 11492 | ;; |
| 11493 | esac |
| 11494 | |
| 11495 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 11496 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 11497 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 11498 | # is reportedly fixed, but why not run on old versions too? |
| 11499 | sedscip-shell system . . sed. '$q' "$ltmain" >> "$cfgfile" || (rmscip-shell system . . rm. -f "$cfgfile"; exit 1) |
| 11500 | |
| 11501 | mvscip-shell system . . mv. -f "$cfgfile" "$ofile" || \ |
| 11502 | (rmscip-shell system . . rm. -f "$ofile" && cpscip-shell system . . cp. "$cfgfile" "$ofile" && rmscip-shell system . . rm. -f "$cfgfile") |
| 11503 | chmodscip-shell system . . chmod. +x "$ofile" |
| 11504 | |
| 11505 | else |
| 11506 | # If there is no Makefile yet, we rely on a make rule to execute |
| 11507 | # `config.status --recheck' to rerun these tests and create the |
| 11508 | # libtool script then. |
| 11509 | ltmain_in=`echoscip-shell system . . echo. $ltmain | sedscip-shell system . . sed. -e 's/\.sh$/.in/'` |
| 11510 | if testscip-shell system . . test. -f "$ltmain_in"; then |
| 11511 | testscip-shell system . . test. -f Makefile && makescip-shell system . . make. "$ltmain" |
| 11512 | fi |
| 11513 | fi |
| 11514 | |
| 11515 | |
| 11516 | ac_ext=c |
| 11517 | ac_cpp='$CPP $CPPFLAGS' |
| 11518 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11519 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11520 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 11521 | |
| 11522 | CC="$lt_save_CC" |
| 11523 | |
| 11524 | |
| 11525 | # Check whether --with-tags or --without-tags was given. |
| 11526 | if testscip-shell system . . test. "${with_tags+set}" = set; then |
| 11527 | withval="$with_tags" |
| 11528 | tagnames="$withval" |
| 11529 | fi; |
| 11530 | |
| 11531 | if testscip-shell system . . test. -f "$ltmain" && testscip-shell system . . test. -n "$tagnames"; then |
| 11532 | if testscip-shell system . . test. ! -f "${ofile}"; then |
| 11533 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
| 11534 | echoscip-shell system . . echo. "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
| 11535 | fi |
| 11536 | |
| 11537 | if testscip-shell system . . test. -z "$LTCC"; then |
| 11538 | eval "`$SHELL ${ofile} --config | grepscip-shell system . . grep. '^LTCC='`" |
| 11539 | if testscip-shell system . . test. -z "$LTCC"; then |
| 11540 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
| 11541 | echoscip-shell system . . echo. "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
| 11542 | else |
| 11543 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
| 11544 | echoscip-shell system . . echo. "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
| 11545 | fi |
| 11546 | fi |
| 11547 | if testscip-shell system . . test. -z "$LTCFLAGS"; then |
| 11548 | eval "`$SHELL ${ofile} --config | grepscip-shell system . . grep. '^LTCFLAGS='`" |
| 11549 | fi |
| 11550 | |
| 11551 | # Extract list of available tagged configurations in $ofile. |
| 11552 | # Note that this assumes the entire list is on one line. |
| 11553 | available_tags=`grepscip-shell system . . grep. "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
| 11554 | |
| 11555 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 11556 | for tagname in $tagnames; do |
| 11557 | IFS="$lt_save_ifs" |
| 11558 | # Check whether tagname contains only valid characters |
| 11559 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
| 11560 | "") ;; |
| 11561 | *) { { echoscip-shell system . . echo. "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
| 11562 | echoscip-shell system . . echo. "$as_me: error: invalid tag name: $tagname" >&2;} |
| 11563 | { (exit 1); exit 1; }; } |
| 11564 | ;; |
| 11565 | esac |
| 11566 | |
| 11567 | if grepscip-shell system . . grep. "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/nullscip-shell filesystem . . `/dev/null`. |
| 11568 | then |
| 11569 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
| 11570 | echoscip-shell system . . echo. "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
| 11571 | { (exit 1); exit 1; }; } |
| 11572 | fi |
| 11573 | |
| 11574 | # Update the list of available tags. |
| 11575 | if testscip-shell system . . test. -n "$tagname"; then |
| 11576 | echoscip-shell system . . echo. appending configuration tag \"$tagname\" to $ofile |
| 11577 | |
| 11578 | case $tagname in |
| 11579 | CXX) |
| 11580 | if testscip-shell system . . test. -n "$CXX" && ( testscip-shell system . . test. "X$CXX" != "Xno" && |
| 11581 | ( (testscip-shell system . . test. "X$CXX" = "Xg++" && `g++ -v >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1` ) || |
| 11582 | (testscip-shell system . . test. "X$CXX" != "Xg++"))) ; then |
| 11583 | ac_ext=cc |
| 11584 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 11585 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11586 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11587 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 11588 | |
| 11589 | |
| 11590 | |
| 11591 | |
| 11592 | archive_cmds_need_lc_CXX=no |
| 11593 | allow_undefined_flag_CXX= |
| 11594 | always_export_symbols_CXX=no |
| 11595 | archive_expsym_cmds_CXX= |
| 11596 | export_dynamic_flag_spec_CXX= |
| 11597 | hardcode_direct_CXX=no |
| 11598 | hardcode_libdir_flag_spec_CXX= |
| 11599 | hardcode_libdir_flag_spec_ld_CXX= |
| 11600 | hardcode_libdir_separator_CXX= |
| 11601 | hardcode_minus_L_CXX=no |
| 11602 | hardcode_shlibpath_var_CXX=unsupported |
| 11603 | hardcode_automatic_CXX=no |
| 11604 | module_cmds_CXX= |
| 11605 | module_expsym_cmds_CXX= |
| 11606 | link_all_deplibs_CXX=unknown |
| 11607 | old_archive_cmds_CXX=$old_archive_cmds |
| 11608 | no_undefined_flag_CXX= |
| 11609 | whole_archive_flag_spec_CXX= |
| 11610 | enable_shared_with_static_runtimes_CXX=no |
| 11611 | |
| 11612 | # Dependencies to place before and after the object being linked: |
| 11613 | predep_objects_CXX= |
| 11614 | postdep_objects_CXX= |
| 11615 | predeps_CXX= |
| 11616 | postdeps_CXX= |
| 11617 | compiler_lib_search_path_CXX= |
| 11618 | |
| 11619 | # Source file extension for C++ test sources. |
| 11620 | ac_ext=cpp |
| 11621 | |
| 11622 | # Object file extension for compiled C++ test sources. |
| 11623 | objext=o |
| 11624 | objext_CXX=$objext |
| 11625 | |
| 11626 | # Code to be used in simple compile tests |
| 11627 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 11628 | |
| 11629 | # Code to be used in simple link tests |
| 11630 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' |
| 11631 | |
| 11632 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 11633 | |
| 11634 | # If no C compiler was specified, use CC. |
| 11635 | LTCC=${LTCC-"$CC"} |
| 11636 | |
| 11637 | # If no C compiler flags were specified, use CFLAGS. |
| 11638 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 11639 | |
| 11640 | # Allow CC to be a program name with arguments. |
| 11641 | compiler=$CC |
| 11642 | |
| 11643 | |
| 11644 | # save warnings/boilerplate of simple test code |
| 11645 | ac_outfile=conftest.$ac_objext |
| 11646 | printfscip-shell system . . printf. "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 11647 | eval "$ac_compile" 2>&1 >/dev/nullscip-shell filesystem . . `/dev/null`. | $SED '/^$/d; /^ *+/dscip-shell filesystem . . `/^$/d; /^ *+/d`.' >conftest.err |
| 11648 | _lt_compiler_boilerplate=`catscip-shell system . . cat. conftest.err` |
| 11649 | $rm conftest* |
| 11650 | |
| 11651 | ac_outfile=conftest.$ac_objext |
| 11652 | printfscip-shell system . . printf. "$lt_simple_link_test_code" >conftest.$ac_ext |
| 11653 | eval "$ac_link" 2>&1 >/dev/nullscip-shell filesystem . . `/dev/null`. | $SED '/^$/d; /^ *+/dscip-shell filesystem . . `/^$/d; /^ *+/d`.' >conftest.err |
| 11654 | _lt_linker_boilerplate=`catscip-shell system . . cat. conftest.err` |
| 11655 | $rm conftest* |
| 11656 | |
| 11657 | |
| 11658 | # Allow CC to be a program name with arguments. |
| 11659 | lt_save_CC=$CC |
| 11660 | lt_save_LD=$LD |
| 11661 | lt_save_GCC=$GCC |
| 11662 | GCC=$GXX |
| 11663 | lt_save_with_gnu_ld=$with_gnu_ld |
| 11664 | lt_save_path_LD=$lt_cv_path_LD |
| 11665 | if testscip-shell system . . test. -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
| 11666 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
| 11667 | else |
| 11668 | $as_unset lt_cv_prog_gnu_ld |
| 11669 | fi |
| 11670 | if testscip-shell system . . test. -n "${lt_cv_path_LDCXX+set}"; then |
| 11671 | lt_cv_path_LD=$lt_cv_path_LDCXX |
| 11672 | else |
| 11673 | $as_unset lt_cv_path_LD |
| 11674 | fi |
| 11675 | testscip-shell system . . test. -z "${LDCXX+set}" || LD=$LDCXX |
| 11676 | CC=${CXX-"c++"} |
| 11677 | compiler=$CC |
| 11678 | compiler_CXX=$CC |
| 11679 | for cc_temp in $compiler""; do |
| 11680 | case $cc_temp in |
| 11681 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 11682 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 11683 | \-*) ;; |
| 11684 | *) break;; |
| 11685 | esac |
| 11686 | done |
| 11687 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 11688 | |
| 11689 | |
| 11690 | # We don't want -fno-exception wen compiling C++ code, so set the |
| 11691 | # no_builtin_flag separately |
| 11692 | if testscip-shell system . . test. "$GXX" = yes; then |
| 11693 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
| 11694 | else |
| 11695 | lt_prog_compiler_no_builtin_flag_CXX= |
| 11696 | fi |
| 11697 | |
| 11698 | if testscip-shell system . . test. "$GXX" = yes; then |
| 11699 | # Set up default GNU C++ configuration |
| 11700 | |
| 11701 | |
| 11702 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
| 11703 | if testscip-shell system . . test. "${with_gnu_ld+set}" = set; then |
| 11704 | withval="$with_gnu_ld" |
| 11705 | testscip-shell system . . test. "$withval" = no || with_gnu_ld=yes |
| 11706 | else |
| 11707 | with_gnu_ld=no |
| 11708 | fi; |
| 11709 | ac_prog=ld |
| 11710 | if testscip-shell system . . test. "$GCC" = yes; then |
| 11711 | # Check if gcc -print-prog-name=ld gives a path. |
| 11712 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 11713 | echoscip-shell system . . echo. $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
| 11714 | case $host in |
| 11715 | *-*-mingw*) |
| 11716 | # gcc leaves a trailing carriage return which upsets mingw |
| 11717 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | trscip-shell system . . tr. -d '\015'` ;; |
| 11718 | *) |
| 11719 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 11720 | esac |
| 11721 | case $ac_prog in |
| 11722 | # Accept absolute paths. |
| 11723 | [\\/]* | ?:[\\/]*) |
| 11724 | re_direlt='/[^/][^/]*/\.\./scip-shell filesystem . . `/[^/][^/]*/\.\./`.' |
| 11725 | # Canonicalize the pathname of ld |
| 11726 | ac_prog=`echoscip-shell system . . echo. $ac_prog| $SED 's%\\\\%/%g'` |
| 11727 | while echoscip-shell system . . echo. $ac_prog | grepscip-shell system . . grep. "$re_direlt" > /dev/nullscip-shell filesystem . . `/dev/null`. 2>&1; do |
| 11728 | ac_prog=`echoscip-shell system . . echo. $ac_prog| $SED "s%$re_direlt%/%"` |
| 11729 | done |
| 11730 | testscip-shell system . . test. -z "$LD" && LD="$ac_prog" |
| 11731 | ;; |
| 11732 | "") |
| 11733 | # If it fails, then pretend we aren't using GCC. |
| 11734 | ac_prog=ld |
| 11735 | ;; |
| 11736 | *) |
| 11737 | # If it is relative, then search for the first ld in PATH. |
| 11738 | with_gnu_ld=unknown |
| 11739 | ;; |
| 11740 | esac |
| 11741 | elif testscip-shell system . . test. "$with_gnu_ld" = yes; then |
| 11742 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for GNU ld" >&5 |
| 11743 | echoscip-shell system . . echo. $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
| 11744 | else |
| 11745 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 11746 | echoscip-shell system . . echo. $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
| 11747 | fi |
| 11748 | if testscip-shell system . . test. "${lt_cv_path_LD+set}" = set; then |
| 11749 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 11750 | else |
| 11751 | if testscip-shell system . . test. -z "$LD"; then |
| 11752 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 11753 | for ac_dir in $PATH; do |
| 11754 | IFS="$lt_save_ifs" |
| 11755 | testscip-shell system . . test. -z "$ac_dir" && ac_dir=. |
| 11756 | if testscip-shell system . . test. -f "$ac_dir/$ac_prog" || testscip-shell system . . test. -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 11757 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 11758 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 11759 | # but apparently some variants of GNU ld only accept -v. |
| 11760 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 11761 | case `"$lt_cv_path_LD" -v 2>&1 </dev/nullscip-shell filesystem . . `/dev/null`.` in |
| 11762 | *GNU* | *'with BFD'*) |
| 11763 | testscip-shell system . . test. "$with_gnu_ld" != no && break |
| 11764 | ;; |
| 11765 | *) |
| 11766 | testscip-shell system . . test. "$with_gnu_ld" != yes && break |
| 11767 | ;; |
| 11768 | esac |
| 11769 | fi |
| 11770 | done |
| 11771 | IFS="$lt_save_ifs" |
| 11772 | else |
| 11773 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 11774 | fi |
| 11775 | fi |
| 11776 | |
| 11777 | LD="$lt_cv_path_LD" |
| 11778 | if testscip-shell system . . test. -n "$LD"; then |
| 11779 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $LD" >&5 |
| 11780 | echoscip-shell system . . echo. "${ECHO_T}$LD" >&6 |
| 11781 | else |
| 11782 | echoscip-shell system . . echo. "$as_me:$LINENO: result: no" >&5 |
| 11783 | echoscip-shell system . . echo. "${ECHO_T}no" >&6 |
| 11784 | fi |
| 11785 | testscip-shell system . . test. -z "$LD" && { { echoscip-shell system . . echo. "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 11786 | echoscip-shell system . . echo. "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 11787 | { (exit 1); exit 1; }; } |
| 11788 | echoscip-shell system . . echo. "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 11789 | echoscip-shell system . . echo. $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
| 11790 | if testscip-shell system . . test. "${lt_cv_prog_gnu_ld+set}" = set; then |
| 11791 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 11792 | else |
| 11793 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
| 11794 | case `$LD -v 2>&1 </dev/nullscip-shell filesystem . . `/dev/null`.` in |
| 11795 | *GNU* | *'with BFD'*) |
| 11796 | lt_cv_prog_gnu_ld=yes |
| 11797 | ;; |
| 11798 | *) |
| 11799 | lt_cv_prog_gnu_ld=no |
| 11800 | ;; |
| 11801 | esac |
| 11802 | fi |
| 11803 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 11804 | echoscip-shell system . . echo. "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
| 11805 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 11806 | |
| 11807 | |
| 11808 | |
| 11809 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 11810 | # archiving commands below assume that GNU ld is being used. |
| 11811 | if testscip-shell system . . test. "$with_gnu_ld" = yes; then |
| 11812 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 11813 | archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 11814 | |
| 11815 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 11816 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 11817 | |
| 11818 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 11819 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
| 11820 | # investigate it a little bit more. (MM) |
| 11821 | wlarc='${wl}' |
| 11822 | |
| 11823 | # ancient GNU ld didn't support --whole-archive et. al. |
| 11824 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
| 11825 | grep 'no-whole-archive' > /dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 11826 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 11827 | else |
| 11828 | whole_archive_flag_spec_CXX= |
| 11829 | fi |
| 11830 | else |
| 11831 | with_gnu_ld=no |
| 11832 | wlarc= |
| 11833 | |
| 11834 | # A generic and very simple default shared library creation |
| 11835 | # command for GNU C++ for the case where it uses the native |
| 11836 | # linker, instead of GNU ld. If possible, this setting should |
| 11837 | # overridden to take advantage of the native linker features on |
| 11838 | # the platform it is being used on. |
| 11839 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 11840 | fi |
| 11841 | |
| 11842 | # Commands to make compiler produce verbose output that lists |
| 11843 | # what "hidden" libraries, object files and flags are used when |
| 11844 | # linking a shared library. |
| 11845 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 11846 | |
| 11847 | else |
| 11848 | GXX=no |
| 11849 | with_gnu_ld=no |
| 11850 | wlarc= |
| 11851 | fi |
| 11852 | |
| 11853 | # PORTME: fill in a description of your system's C++ link characteristics |
| 11854 | echoscip-shell system . . echo. "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 11855 | echoscip-shell system . . echo. $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 11856 | ld_shlibs_CXX=yes |
| 11857 | case $host_os in |
| 11858 | aix3*) |
| 11859 | # FIXME: insert proper C++ library support |
| 11860 | ld_shlibs_CXX=no |
| 11861 | ;; |
| 11862 | aix4* | aix5*) |
| 11863 | if testscip-shell system . . test. "$host_cpu" = ia64; then |
| 11864 | # On IA64, the linker does run time linking by default, so we don't |
| 11865 | # have to do anything special. |
| 11866 | aix_use_runtimelinking=no |
| 11867 | exp_sym_flag='-Bexport' |
| 11868 | no_entry_flag="" |
| 11869 | else |
| 11870 | aix_use_runtimelinking=no |
| 11871 | |
| 11872 | # Test if we are trying to use run time linking or normal |
| 11873 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 11874 | # need to do runtime linking. |
| 11875 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 11876 | for ld_flag in $LDFLAGS; do |
| 11877 | case $ld_flag in |
| 11878 | *-brtl*) |
| 11879 | aix_use_runtimelinking=yes |
| 11880 | break |
| 11881 | ;; |
| 11882 | esac |
| 11883 | done |
| 11884 | ;; |
| 11885 | esac |
| 11886 | |
| 11887 | exp_sym_flag='-bexport' |
| 11888 | no_entry_flag='-bnoentry' |
| 11889 | fi |
| 11890 | |
| 11891 | # When large executables or shared objects are built, AIX ld can |
| 11892 | # have problems creating the table of contents. If linking a library |
| 11893 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 11894 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 11895 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 11896 | |
| 11897 | archive_cmds_CXX='' |
| 11898 | hardcode_direct_CXX=yes |
| 11899 | hardcode_libdir_separator_CXX=':' |
| 11900 | link_all_deplibs_CXX=yes |
| 11901 | |
| 11902 | if testscip-shell system . . test. "$GXX" = yes; then |
| 11903 | case $host_os in aix4.[012]|aix4.[012].*) |
| 11904 | # We only want to do this on AIX 4.2 and lower, the check |
| 11905 | # below for broken collect2 doesn't work under 4.3+ |
| 11906 | collect2name=`${CC} -print-prog-name=collect2` |
| 11907 | if testscip-shell system . . test. -f "$collect2name" && \ |
| 11908 | strings "$collect2name" | grepscip-shell system . . grep. resolve_lib_name >/dev/nullscip-shell filesystem . . `/dev/null`. |
| 11909 | then |
| 11910 | # We have reworked collect2 |
| 11911 | hardcode_direct_CXX=yes |
| 11912 | else |
| 11913 | # We have old collect2 |
| 11914 | hardcode_direct_CXX=unsupported |
| 11915 | # It fails to find uninstalled libraries when the uninstalled |
| 11916 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 11917 | # to unsupported forces relinking |
| 11918 | hardcode_minus_L_CXX=yes |
| 11919 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 11920 | hardcode_libdir_separator_CXX= |
| 11921 | fi |
| 11922 | ;; |
| 11923 | esac |
| 11924 | shared_flag='-shared' |
| 11925 | if testscip-shell system . . test. "$aix_use_runtimelinking" = yes; then |
| 11926 | shared_flag="$shared_flag "'${wl}-G' |
| 11927 | fi |
| 11928 | else |
| 11929 | # not using gcc |
| 11930 | if testscip-shell system . . test. "$host_cpu" = ia64; then |
| 11931 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 11932 | # chokes on -Wl,-G. The following line is correct: |
| 11933 | shared_flag='-G' |
| 11934 | else |
| 11935 | if testscip-shell system . . test. "$aix_use_runtimelinking" = yes; then |
| 11936 | shared_flag='${wl}-G' |
| 11937 | else |
| 11938 | shared_flag='${wl}-bM:SRE' |
| 11939 | fi |
| 11940 | fi |
| 11941 | fi |
| 11942 | |
| 11943 | # It seems that -bexpall does not export symbols beginning with |
| 11944 | # underscore (_), so it is better to generate a list of symbols to export. |
| 11945 | always_export_symbols_CXX=yes |
| 11946 | if testscip-shell system . . test. "$aix_use_runtimelinking" = yes; then |
| 11947 | # Warning - without using the other runtime loading flags (-brtl), |
| 11948 | # -berok will link without error, but may produce a broken library. |
| 11949 | allow_undefined_flag_CXX='-berok' |
| 11950 | # Determine the default libpath from the value encoded in an empty executable. |
| 11951 | catscip-shell system . . cat. >conftest.$ac_ext <<_ACEOF |
| 11952 | /* confdefs.h. */ |
| 11953 | _ACEOF |
| 11954 | catscip-shell system . . cat. confdefs.h >>conftest.$ac_ext |
| 11955 | catscip-shell system . . cat. >>conftest.$ac_ext <<_ACEOF |
| 11956 | /* end confdefs.h. */ |
| 11957 | |
| 11958 | int |
| 11959 | main () |
| 11960 | { |
| 11961 | |
| 11962 | ; |
| 11963 | return 0; |
| 11964 | } |
| 11965 | _ACEOF |
| 11966 | rmscip-shell system . . rm. -f conftest.$ac_objext conftest$ac_exeext |
| 11967 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11968 | (eval $ac_link) 2>conftest.er1 |
| 11969 | ac_status=$? |
| 11970 | grepscip-shell system . . grep. -v '^ *+' conftest.er1 >conftest.err |
| 11971 | rmscip-shell system . . rm. -f conftest.er1 |
| 11972 | catscip-shell system . . cat. conftest.err >&5 |
| 11973 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11974 | (exit $ac_status); } && |
| 11975 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 11976 | || test ! -s conftest.err' |
| 11977 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11978 | (eval $ac_try) 2>&5 |
| 11979 | ac_status=$? |
| 11980 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11981 | (exit $ac_status); }; } && |
| 11982 | { ac_try='test -s conftest$ac_exeext' |
| 11983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11984 | (eval $ac_try) 2>&5 |
| 11985 | ac_status=$? |
| 11986 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11987 | (exit $ac_status); }; }; then |
| 11988 | |
| 11989 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/nullscip-shell filesystem . . `/dev/null`. | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 11990 | }'` |
| 11991 | # Check for a 64-bit object if we didn't find anything. |
| 11992 | if testscip-shell system . . test. -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/nullscip-shell filesystem . . `/dev/null`. | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 11993 | }'`; fi |
| 11994 | else |
| 11995 | echoscip-shell system . . echo. "$as_me: failed program was:" >&5 |
| 11996 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 11997 | |
| 11998 | fi |
| 11999 | rmscip-shell system . . rm. -f conftest.err conftest.$ac_objext \ |
| 12000 | conftest$ac_exeext conftest.$ac_ext |
| 12001 | if testscip-shell system . . test. -z "$aix_libpath"; then aix_libpath="/usr/lib:/libscip-shell filesystem . . `/usr/lib:/lib`."; fi |
| 12002 | |
| 12003 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 12004 | |
| 12005 | archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
| 12006 | else |
| 12007 | if testscip-shell system . . test. "$host_cpu" = ia64; then |
| 12008 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
| 12009 | allow_undefined_flag_CXX="-z nodefs" |
| 12010 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" |
| 12011 | else |
| 12012 | # Determine the default libpath from the value encoded in an empty executable. |
| 12013 | catscip-shell system . . cat. >conftest.$ac_ext <<_ACEOF |
| 12014 | /* confdefs.h. */ |
| 12015 | _ACEOF |
| 12016 | catscip-shell system . . cat. confdefs.h >>conftest.$ac_ext |
| 12017 | catscip-shell system . . cat. >>conftest.$ac_ext <<_ACEOF |
| 12018 | /* end confdefs.h. */ |
| 12019 | |
| 12020 | int |
| 12021 | main () |
| 12022 | { |
| 12023 | |
| 12024 | ; |
| 12025 | return 0; |
| 12026 | } |
| 12027 | _ACEOF |
| 12028 | rmscip-shell system . . rm. -f conftest.$ac_objext conftest$ac_exeext |
| 12029 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12030 | (eval $ac_link) 2>conftest.er1 |
| 12031 | ac_status=$? |
| 12032 | grepscip-shell system . . grep. -v '^ *+' conftest.er1 >conftest.err |
| 12033 | rmscip-shell system . . rm. -f conftest.er1 |
| 12034 | catscip-shell system . . cat. conftest.err >&5 |
| 12035 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12036 | (exit $ac_status); } && |
| 12037 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 12038 | || test ! -s conftest.err' |
| 12039 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12040 | (eval $ac_try) 2>&5 |
| 12041 | ac_status=$? |
| 12042 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12043 | (exit $ac_status); }; } && |
| 12044 | { ac_try='test -s conftest$ac_exeext' |
| 12045 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12046 | (eval $ac_try) 2>&5 |
| 12047 | ac_status=$? |
| 12048 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12049 | (exit $ac_status); }; }; then |
| 12050 | |
| 12051 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/nullscip-shell filesystem . . `/dev/null`. | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 12052 | }'` |
| 12053 | # Check for a 64-bit object if we didn't find anything. |
| 12054 | if testscip-shell system . . test. -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/nullscip-shell filesystem . . `/dev/null`. | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 12055 | }'`; fi |
| 12056 | else |
| 12057 | echoscip-shell system . . echo. "$as_me: failed program was:" >&5 |
| 12058 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 12059 | |
| 12060 | fi |
| 12061 | rmscip-shell system . . rm. -f conftest.err conftest.$ac_objext \ |
| 12062 | conftest$ac_exeext conftest.$ac_ext |
| 12063 | if testscip-shell system . . test. -z "$aix_libpath"; then aix_libpath="/usr/lib:/libscip-shell filesystem . . `/usr/lib:/lib`."; fi |
| 12064 | |
| 12065 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 12066 | # Warning - without using the other run time loading flags, |
| 12067 | # -berok will link without error, but may produce a broken library. |
| 12068 | no_undefined_flag_CXX=' ${wl}-bernotok' |
| 12069 | allow_undefined_flag_CXX=' ${wl}-berok' |
| 12070 | # Exported symbols can be pulled into shared objects from archives |
| 12071 | whole_archive_flag_spec_CXX='$convenience' |
| 12072 | archive_cmds_need_lc_CXX=yes |
| 12073 | # This is similar to how AIX traditionally builds its shared libraries. |
| 12074 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
| 12075 | fi |
| 12076 | fi |
| 12077 | ;; |
| 12078 | |
| 12079 | beos*) |
| 12080 | if $LD --help 2>&1 | grepscip-shell system . . grep. ': supported targets:.* elf' > /dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 12081 | allow_undefined_flag_CXX=unsupported |
| 12082 | # Joseph Beckenbach <[email protected]> says some releases of gcc |
| 12083 | # support --undefined. This deserves some investigation. FIXME |
| 12084 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12085 | else |
| 12086 | ld_shlibs_CXX=no |
| 12087 | fi |
| 12088 | ;; |
| 12089 | |
| 12090 | chorus*) |
| 12091 | case $cc_basename in |
| 12092 | *) |
| 12093 | # FIXME: insert proper C++ library support |
| 12094 | ld_shlibs_CXX=no |
| 12095 | ;; |
| 12096 | esac |
| 12097 | ;; |
| 12098 | |
| 12099 | cygwin* | mingw* | pw32*) |
| 12100 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
| 12101 | # as there is no search path for DLLs. |
| 12102 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 12103 | allow_undefined_flag_CXX=unsupported |
| 12104 | always_export_symbols_CXX=no |
| 12105 | enable_shared_with_static_runtimes_CXX=yes |
| 12106 | |
| 12107 | if $LD --help 2>&1 | grepscip-shell system . . grep. 'auto-import' > /dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 12108 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 12109 | # If the export-symbols file already is a .def file (1st line |
| 12110 | # is EXPORTS), use it as is; otherwise, prepend... |
| 12111 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 12112 | cp $export_symbols $output_objdir/$soname.def; |
| 12113 | else |
| 12114 | echo EXPORTS > $output_objdir/$soname.def; |
| 12115 | cat $export_symbols >> $output_objdir/$soname.def; |
| 12116 | fi~ |
| 12117 | $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 12118 | else |
| 12119 | ld_shlibs_CXX=no |
| 12120 | fi |
| 12121 | ;; |
| 12122 | darwin* | rhapsody*) |
| 12123 | case $host_os in |
| 12124 | rhapsody* | darwin1.[012]) |
| 12125 | allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' |
| 12126 | ;; |
| 12127 | *) # Darwin 1.3 on |
| 12128 | if testscip-shell system . . test. -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 12129 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 12130 | else |
| 12131 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 12132 | 10.[012]) |
| 12133 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 12134 | ;; |
| 12135 | 10.*) |
| 12136 | allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' |
| 12137 | ;; |
| 12138 | esac |
| 12139 | fi |
| 12140 | ;; |
| 12141 | esac |
| 12142 | archive_cmds_need_lc_CXX=no |
| 12143 | hardcode_direct_CXX=no |
| 12144 | hardcode_automatic_CXX=yes |
| 12145 | hardcode_shlibpath_var_CXX=unsupported |
| 12146 | whole_archive_flag_spec_CXX='' |
| 12147 | link_all_deplibs_CXX=yes |
| 12148 | |
| 12149 | if testscip-shell system . . test. "$GXX" = yes ; then |
| 12150 | lt_int_apple_cc_single_mod=no |
| 12151 | output_verbose_link_cmd='echo' |
| 12152 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/nullscip-shell filesystem . . `/dev/null`. ; then |
| 12153 | lt_int_apple_cc_single_mod=yes |
| 12154 | fi |
| 12155 | if testscip-shell system . . test. "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 12156 | archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 12157 | else |
| 12158 | archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 12159 | fi |
| 12160 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 12161 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 12162 | if testscip-shell system . . test. "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 12163 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 12164 | else |
| 12165 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 12166 | fi |
| 12167 | module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 12168 | else |
| 12169 | case $cc_basename in |
| 12170 | xlc*) |
| 12171 | output_verbose_link_cmd='echo' |
| 12172 | archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 12173 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 12174 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 12175 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 12176 | module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 12177 | ;; |
| 12178 | *) |
| 12179 | ld_shlibs_CXX=no |
| 12180 | ;; |
| 12181 | esac |
| 12182 | fi |
| 12183 | ;; |
| 12184 | |
| 12185 | dgux*) |
| 12186 | case $cc_basename in |
| 12187 | ec++*) |
| 12188 | # FIXME: insert proper C++ library support |
| 12189 | ld_shlibs_CXX=no |
| 12190 | ;; |
| 12191 | ghcx*) |
| 12192 | # Green Hills C++ Compiler |
| 12193 | # FIXME: insert proper C++ library support |
| 12194 | ld_shlibs_CXX=no |
| 12195 | ;; |
| 12196 | *) |
| 12197 | # FIXME: insert proper C++ library support |
| 12198 | ld_shlibs_CXX=no |
| 12199 | ;; |
| 12200 | esac |
| 12201 | ;; |
| 12202 | freebsd[12]*) |
| 12203 | # C++ shared libraries reported to be fairly broken before switch to ELF |
| 12204 | ld_shlibs_CXX=no |
| 12205 | ;; |
| 12206 | freebsd-elf*) |
| 12207 | archive_cmds_need_lc_CXX=no |
| 12208 | ;; |
| 12209 | freebsd* | kfreebsd*-gnu | dragonfly*) |
| 12210 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 12211 | # conventions |
| 12212 | ld_shlibs_CXX=yes |
| 12213 | ;; |
| 12214 | gnu*) |
| 12215 | ;; |
| 12216 | hpux9*) |
| 12217 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 12218 | hardcode_libdir_separator_CXX=: |
| 12219 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 12220 | hardcode_direct_CXX=yes |
| 12221 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 12222 | # but as the default |
| 12223 | # location of the library. |
| 12224 | |
| 12225 | case $cc_basename in |
| 12226 | CC*) |
| 12227 | # FIXME: insert proper C++ library support |
| 12228 | ld_shlibs_CXX=no |
| 12229 | ;; |
| 12230 | aCC*) |
| 12231 | archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 12232 | # Commands to make compiler produce verbose output that lists |
| 12233 | # what "hidden" libraries, object files and flags are used when |
| 12234 | # linking a shared library. |
| 12235 | # |
| 12236 | # There doesn't appear to be a way to prevent this compiler from |
| 12237 | # explicitly linking system object files so we need to strip them |
| 12238 | # from the output so that they don't get included in the library |
| 12239 | # dependencies. |
| 12240 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
| 12241 | ;; |
| 12242 | *) |
| 12243 | if testscip-shell system . . test. "$GXX" = yes; then |
| 12244 | archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 12245 | else |
| 12246 | # FIXME: insert proper C++ library support |
| 12247 | ld_shlibs_CXX=no |
| 12248 | fi |
| 12249 | ;; |
| 12250 | esac |
| 12251 | ;; |
| 12252 | hpux10*|hpux11*) |
| 12253 | if testscip-shell system . . test. $with_gnu_ld = no; then |
| 12254 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 12255 | hardcode_libdir_separator_CXX=: |
| 12256 | |
| 12257 | case $host_cpu in |
| 12258 | hppa*64*|ia64*) |
| 12259 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
| 12260 | ;; |
| 12261 | *) |
| 12262 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 12263 | ;; |
| 12264 | esac |
| 12265 | fi |
| 12266 | case $host_cpu in |
| 12267 | hppa*64*|ia64*) |
| 12268 | hardcode_direct_CXX=no |
| 12269 | hardcode_shlibpath_var_CXX=no |
| 12270 | ;; |
| 12271 | *) |
| 12272 | hardcode_direct_CXX=yes |
| 12273 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 12274 | # but as the default |
| 12275 | # location of the library. |
| 12276 | ;; |
| 12277 | esac |
| 12278 | |
| 12279 | case $cc_basename in |
| 12280 | CC*) |
| 12281 | # FIXME: insert proper C++ library support |
| 12282 | ld_shlibs_CXX=no |
| 12283 | ;; |
| 12284 | aCC*) |
| 12285 | case $host_cpu in |
| 12286 | hppa*64*) |
| 12287 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 12288 | ;; |
| 12289 | ia64*) |
| 12290 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 12291 | ;; |
| 12292 | *) |
| 12293 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 12294 | ;; |
| 12295 | esac |
| 12296 | # Commands to make compiler produce verbose output that lists |
| 12297 | # what "hidden" libraries, object files and flags are used when |
| 12298 | # linking a shared library. |
| 12299 | # |
| 12300 | # There doesn't appear to be a way to prevent this compiler from |
| 12301 | # explicitly linking system object files so we need to strip them |
| 12302 | # from the output so that they don't get included in the library |
| 12303 | # dependencies. |
| 12304 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
| 12305 | ;; |
| 12306 | *) |
| 12307 | if testscip-shell system . . test. "$GXX" = yes; then |
| 12308 | if testscip-shell system . . test. $with_gnu_ld = no; then |
| 12309 | case $host_cpu in |
| 12310 | hppa*64*) |
| 12311 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 12312 | ;; |
| 12313 | ia64*) |
| 12314 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 12315 | ;; |
| 12316 | *) |
| 12317 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 12318 | ;; |
| 12319 | esac |
| 12320 | fi |
| 12321 | else |
| 12322 | # FIXME: insert proper C++ library support |
| 12323 | ld_shlibs_CXX=no |
| 12324 | fi |
| 12325 | ;; |
| 12326 | esac |
| 12327 | ;; |
| 12328 | interix3*) |
| 12329 | hardcode_direct_CXX=no |
| 12330 | hardcode_shlibpath_var_CXX=no |
| 12331 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 12332 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 12333 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 12334 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 12335 | # default) and relocated if they conflict, which is a slow very memory |
| 12336 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 12337 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 12338 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 12339 | archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 12340 | archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 12341 | ;; |
| 12342 | irix5* | irix6*) |
| 12343 | case $cc_basename in |
| 12344 | CC*) |
| 12345 | # SGI C++ |
| 12346 | archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
| 12347 | |
| 12348 | # Archives containing C++ object files must be created using |
| 12349 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| 12350 | # necessary to make sure instantiated templates are included |
| 12351 | # in the archive. |
| 12352 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
| 12353 | ;; |
| 12354 | *) |
| 12355 | if testscip-shell system . . test. "$GXX" = yes; then |
| 12356 | if testscip-shell system . . test. "$with_gnu_ld" = no; then |
| 12357 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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' |
| 12358 | else |
| 12359 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' |
| 12360 | fi |
| 12361 | fi |
| 12362 | link_all_deplibs_CXX=yes |
| 12363 | ;; |
| 12364 | esac |
| 12365 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 12366 | hardcode_libdir_separator_CXX=: |
| 12367 | ;; |
| 12368 | linux*) |
| 12369 | case $cc_basename in |
| 12370 | KCC*) |
| 12371 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 12372 | |
| 12373 | # KCC will only create a shared library if the output file |
| 12374 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 12375 | # to its proper name (with version) after linking. |
| 12376 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
| 12377 | archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' |
| 12378 | # Commands to make compiler produce verbose output that lists |
| 12379 | # what "hidden" libraries, object files and flags are used when |
| 12380 | # linking a shared library. |
| 12381 | # |
| 12382 | # There doesn't appear to be a way to prevent this compiler from |
| 12383 | # explicitly linking system object files so we need to strip them |
| 12384 | # from the output so that they don't get included in the library |
| 12385 | # dependencies. |
| 12386 | output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
| 12387 | |
| 12388 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
| 12389 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 12390 | |
| 12391 | # Archives containing C++ object files must be created using |
| 12392 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 12393 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 12394 | ;; |
| 12395 | icpc*) |
| 12396 | # Intel C++ |
| 12397 | with_gnu_ld=yes |
| 12398 | # version 8.0 and above of icpc choke on multiply defined symbols |
| 12399 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
| 12400 | # earlier do not add the objects themselves. |
| 12401 | case `$CC -V 2>&1` in |
| 12402 | *"Version 7."*) |
| 12403 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12404 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 12405 | ;; |
| 12406 | *) # Version 8.0 or newer |
| 12407 | tmp_idyn= |
| 12408 | case $host_cpu in |
| 12409 | ia64*) tmp_idyn=' -i_dynamic';; |
| 12410 | esac |
| 12411 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12412 | archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 12413 | ;; |
| 12414 | esac |
| 12415 | archive_cmds_need_lc_CXX=no |
| 12416 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 12417 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 12418 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 12419 | ;; |
| 12420 | pgCC*) |
| 12421 | # Portland Group C++ compiler |
| 12422 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
| 12423 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' |
| 12424 | |
| 12425 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 12426 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 12427 | whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
| 12428 | ;; |
| 12429 | cxx*) |
| 12430 | # Compaq C++ |
| 12431 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12432 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' |
| 12433 | |
| 12434 | runpath_var=LD_RUN_PATH |
| 12435 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 12436 | hardcode_libdir_separator_CXX=: |
| 12437 | |
| 12438 | # Commands to make compiler produce verbose output that lists |
| 12439 | # what "hidden" libraries, object files and flags are used when |
| 12440 | # linking a shared library. |
| 12441 | # |
| 12442 | # There doesn't appear to be a way to prevent this compiler from |
| 12443 | # explicitly linking system object files so we need to strip them |
| 12444 | # from the output so that they don't get included in the library |
| 12445 | # dependencies. |
| 12446 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
| 12447 | ;; |
| 12448 | esac |
| 12449 | ;; |
| 12450 | lynxos*) |
| 12451 | # FIXME: insert proper C++ library support |
| 12452 | ld_shlibs_CXX=no |
| 12453 | ;; |
| 12454 | m88k*) |
| 12455 | # FIXME: insert proper C++ library support |
| 12456 | ld_shlibs_CXX=no |
| 12457 | ;; |
| 12458 | mvs*) |
| 12459 | case $cc_basename in |
| 12460 | cxx*) |
| 12461 | # FIXME: insert proper C++ library support |
| 12462 | ld_shlibs_CXX=no |
| 12463 | ;; |
| 12464 | *) |
| 12465 | # FIXME: insert proper C++ library support |
| 12466 | ld_shlibs_CXX=no |
| 12467 | ;; |
| 12468 | esac |
| 12469 | ;; |
| 12470 | netbsd*) |
| 12471 | if echoscip-shell system . . echo. __ELF__ | $CC -E - | grepscip-shell system . . grep. __ELF__ >/dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 12472 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
| 12473 | wlarc= |
| 12474 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 12475 | hardcode_direct_CXX=yes |
| 12476 | hardcode_shlibpath_var_CXX=no |
| 12477 | fi |
| 12478 | # Workaround some broken pre-1.5 toolchains |
| 12479 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
| 12480 | ;; |
| 12481 | openbsd2*) |
| 12482 | # C++ shared libraries are fairly broken |
| 12483 | ld_shlibs_CXX=no |
| 12484 | ;; |
| 12485 | openbsd*) |
| 12486 | hardcode_direct_CXX=yes |
| 12487 | hardcode_shlibpath_var_CXX=no |
| 12488 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 12489 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 12490 | if testscip-shell system . . test. -z "`echoscip-shell system . . echo. __ELF__ | $CC -E - | grepscip-shell system . . grep. __ELF__`" || testscip-shell system . . test. "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 12491 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
| 12492 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 12493 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 12494 | fi |
| 12495 | output_verbose_link_cmd='echo' |
| 12496 | ;; |
| 12497 | osf3*) |
| 12498 | case $cc_basename in |
| 12499 | KCC*) |
| 12500 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 12501 | |
| 12502 | # KCC will only create a shared library if the output file |
| 12503 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 12504 | # to its proper name (with version) after linking. |
| 12505 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
| 12506 | |
| 12507 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 12508 | hardcode_libdir_separator_CXX=: |
| 12509 | |
| 12510 | # Archives containing C++ object files must be created using |
| 12511 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 12512 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 12513 | |
| 12514 | ;; |
| 12515 | RCC*) |
| 12516 | # Rational C++ 2.4.1 |
| 12517 | # FIXME: insert proper C++ library support |
| 12518 | ld_shlibs_CXX=no |
| 12519 | ;; |
| 12520 | cxx*) |
| 12521 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 12522 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
| 12523 | |
| 12524 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 12525 | hardcode_libdir_separator_CXX=: |
| 12526 | |
| 12527 | # Commands to make compiler produce verbose output that lists |
| 12528 | # what "hidden" libraries, object files and flags are used when |
| 12529 | # linking a shared library. |
| 12530 | # |
| 12531 | # There doesn't appear to be a way to prevent this compiler from |
| 12532 | # explicitly linking system object files so we need to strip them |
| 12533 | # from the output so that they don't get included in the library |
| 12534 | # dependencies. |
| 12535 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
| 12536 | ;; |
| 12537 | *) |
| 12538 | if testscip-shell system . . test. "$GXX" = yes && testscip-shell system . . test. "$with_gnu_ld" = no; then |
| 12539 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 12540 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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' |
| 12541 | |
| 12542 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 12543 | hardcode_libdir_separator_CXX=: |
| 12544 | |
| 12545 | # Commands to make compiler produce verbose output that lists |
| 12546 | # what "hidden" libraries, object files and flags are used when |
| 12547 | # linking a shared library. |
| 12548 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 12549 | |
| 12550 | else |
| 12551 | # FIXME: insert proper C++ library support |
| 12552 | ld_shlibs_CXX=no |
| 12553 | fi |
| 12554 | ;; |
| 12555 | esac |
| 12556 | ;; |
| 12557 | osf4* | osf5*) |
| 12558 | case $cc_basename in |
| 12559 | KCC*) |
| 12560 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 12561 | |
| 12562 | # KCC will only create a shared library if the output file |
| 12563 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 12564 | # to its proper name (with version) after linking. |
| 12565 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
| 12566 | |
| 12567 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 12568 | hardcode_libdir_separator_CXX=: |
| 12569 | |
| 12570 | # Archives containing C++ object files must be created using |
| 12571 | # the KAI C++ compiler. |
| 12572 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
| 12573 | ;; |
| 12574 | RCC*) |
| 12575 | # Rational C++ 2.4.1 |
| 12576 | # FIXME: insert proper C++ library support |
| 12577 | ld_shlibs_CXX=no |
| 12578 | ;; |
| 12579 | cxx*) |
| 12580 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
| 12581 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
| 12582 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
| 12583 | echo "-hidden">> $lib.exp~ |
| 12584 | $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ |
| 12585 | $rm $lib.exp' |
| 12586 | |
| 12587 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 12588 | hardcode_libdir_separator_CXX=: |
| 12589 | |
| 12590 | # Commands to make compiler produce verbose output that lists |
| 12591 | # what "hidden" libraries, object files and flags are used when |
| 12592 | # linking a shared library. |
| 12593 | # |
| 12594 | # There doesn't appear to be a way to prevent this compiler from |
| 12595 | # explicitly linking system object files so we need to strip them |
| 12596 | # from the output so that they don't get included in the library |
| 12597 | # dependencies. |
| 12598 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
| 12599 | ;; |
| 12600 | *) |
| 12601 | if testscip-shell system . . test. "$GXX" = yes && testscip-shell system . . test. "$with_gnu_ld" = no; then |
| 12602 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 12603 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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' |
| 12604 | |
| 12605 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 12606 | hardcode_libdir_separator_CXX=: |
| 12607 | |
| 12608 | # Commands to make compiler produce verbose output that lists |
| 12609 | # what "hidden" libraries, object files and flags are used when |
| 12610 | # linking a shared library. |
| 12611 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 12612 | |
| 12613 | else |
| 12614 | # FIXME: insert proper C++ library support |
| 12615 | ld_shlibs_CXX=no |
| 12616 | fi |
| 12617 | ;; |
| 12618 | esac |
| 12619 | ;; |
| 12620 | psos*) |
| 12621 | # FIXME: insert proper C++ library support |
| 12622 | ld_shlibs_CXX=no |
| 12623 | ;; |
| 12624 | sunos4*) |
| 12625 | case $cc_basename in |
| 12626 | CC*) |
| 12627 | # Sun C++ 4.x |
| 12628 | # FIXME: insert proper C++ library support |
| 12629 | ld_shlibs_CXX=no |
| 12630 | ;; |
| 12631 | lcc*) |
| 12632 | # Lucid |
| 12633 | # FIXME: insert proper C++ library support |
| 12634 | ld_shlibs_CXX=no |
| 12635 | ;; |
| 12636 | *) |
| 12637 | # FIXME: insert proper C++ library support |
| 12638 | ld_shlibs_CXX=no |
| 12639 | ;; |
| 12640 | esac |
| 12641 | ;; |
| 12642 | solaris*) |
| 12643 | case $cc_basename in |
| 12644 | CC*) |
| 12645 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 12646 | archive_cmds_need_lc_CXX=yes |
| 12647 | no_undefined_flag_CXX=' -zdefs' |
| 12648 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 12649 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 12650 | $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 12651 | |
| 12652 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 12653 | hardcode_shlibpath_var_CXX=no |
| 12654 | case $host_os in |
| 12655 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 12656 | *) |
| 12657 | # The C++ compiler is used as linker so we must use $wl |
| 12658 | # flag to pass the commands to the underlying system |
| 12659 | # linker. We must also pass each convience library through |
| 12660 | # to the system linker between allextract/defaultextract. |
| 12661 | # The C++ compiler will combine linker options so we |
| 12662 | # cannot just pass the convience library names through |
| 12663 | # without $wl. |
| 12664 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 12665 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' |
| 12666 | ;; |
| 12667 | esac |
| 12668 | link_all_deplibs_CXX=yes |
| 12669 | |
| 12670 | output_verbose_link_cmd='echo' |
| 12671 | |
| 12672 | # Archives containing C++ object files must be created using |
| 12673 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 12674 | # necessary to make sure instantiated templates are included |
| 12675 | # in the archive. |
| 12676 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 12677 | ;; |
| 12678 | gcx*) |
| 12679 | # Green Hills C++ Compiler |
| 12680 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 12681 | |
| 12682 | # The C++ compiler must be used to create the archive. |
| 12683 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
| 12684 | ;; |
| 12685 | *) |
| 12686 | # GNU C++ compiler with Solaris linker |
| 12687 | if testscip-shell system . . test. "$GXX" = yes && testscip-shell system . . test. "$with_gnu_ld" = no; then |
| 12688 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
| 12689 | if $CC --version | grepscip-shell system . . grep. -v '^2\.7' > /dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 12690 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 12691 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 12692 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 12693 | |
| 12694 | # Commands to make compiler produce verbose output that lists |
| 12695 | # what "hidden" libraries, object files and flags are used when |
| 12696 | # linking a shared library. |
| 12697 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
| 12698 | else |
| 12699 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
| 12700 | # platform. |
| 12701 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 12702 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 12703 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 12704 | |
| 12705 | # Commands to make compiler produce verbose output that lists |
| 12706 | # what "hidden" libraries, object files and flags are used when |
| 12707 | # linking a shared library. |
| 12708 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
| 12709 | fi |
| 12710 | |
| 12711 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
| 12712 | fi |
| 12713 | ;; |
| 12714 | esac |
| 12715 | ;; |
| 12716 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 12717 | no_undefined_flag_CXX='${wl}-z,text' |
| 12718 | archive_cmds_need_lc_CXX=no |
| 12719 | hardcode_shlibpath_var_CXX=no |
| 12720 | runpath_var='LD_RUN_PATH' |
| 12721 | |
| 12722 | case $cc_basename in |
| 12723 | CC*) |
| 12724 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12725 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12726 | ;; |
| 12727 | *) |
| 12728 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12729 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12730 | ;; |
| 12731 | esac |
| 12732 | ;; |
| 12733 | sysv5* | sco3.2v5* | sco5v6*) |
| 12734 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 12735 | # link with -lc, and that would cause any symbols used from libc to |
| 12736 | # always be unresolved, which means just about no library would |
| 12737 | # ever link correctly. If we're not using GNU ld we use -z text |
| 12738 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 12739 | # as -z defs. |
| 12740 | # For security reasons, it is highly recommended that you always |
| 12741 | # use absolute paths for naming shared libraries, and exclude the |
| 12742 | # DT_RUNPATH tag from executables and libraries. But doing so |
| 12743 | # requires that you compile everything twice, which is a pain. |
| 12744 | # So that behaviour is only enabled if SCOABSPATH is set to a |
| 12745 | # non-empty value in the environment. Most likely only useful for |
| 12746 | # creating official distributions of packages. |
| 12747 | # This is a hack until libtool officially supports absolute path |
| 12748 | # names for shared libraries. |
| 12749 | no_undefined_flag_CXX='${wl}-z,text' |
| 12750 | allow_undefined_flag_CXX='${wl}-z,nodefs' |
| 12751 | archive_cmds_need_lc_CXX=no |
| 12752 | hardcode_shlibpath_var_CXX=no |
| 12753 | hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 12754 | hardcode_libdir_separator_CXX=':' |
| 12755 | link_all_deplibs_CXX=yes |
| 12756 | export_dynamic_flag_spec_CXX='${wl}-Bexport' |
| 12757 | runpath_var='LD_RUN_PATH' |
| 12758 | |
| 12759 | case $cc_basename in |
| 12760 | CC*) |
| 12761 | archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12762 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12763 | ;; |
| 12764 | *) |
| 12765 | archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12766 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12767 | ;; |
| 12768 | esac |
| 12769 | ;; |
| 12770 | tandem*) |
| 12771 | case $cc_basename in |
| 12772 | NCC*) |
| 12773 | # NonStop-UX NCC 3.20 |
| 12774 | # FIXME: insert proper C++ library support |
| 12775 | ld_shlibs_CXX=no |
| 12776 | ;; |
| 12777 | *) |
| 12778 | # FIXME: insert proper C++ library support |
| 12779 | ld_shlibs_CXX=no |
| 12780 | ;; |
| 12781 | esac |
| 12782 | ;; |
| 12783 | vxworks*) |
| 12784 | # FIXME: insert proper C++ library support |
| 12785 | ld_shlibs_CXX=no |
| 12786 | ;; |
| 12787 | *) |
| 12788 | # FIXME: insert proper C++ library support |
| 12789 | ld_shlibs_CXX=no |
| 12790 | ;; |
| 12791 | esac |
| 12792 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 12793 | echoscip-shell system . . echo. "${ECHO_T}$ld_shlibs_CXX" >&6 |
| 12794 | testscip-shell system . . test. "$ld_shlibs_CXX" = no && can_build_shared=no |
| 12795 | |
| 12796 | GCC_CXX="$GXX" |
| 12797 | LD_CXX="$LD" |
| 12798 | |
| 12799 | ## CAVEAT EMPTOR: |
| 12800 | ## There is no encapsulation within the following macros, do not change |
| 12801 | ## the running order or otherwise move them around unless you know exactly |
| 12802 | ## what you are doing... |
| 12803 | |
| 12804 | catscip-shell system . . cat. > conftest.$ac_ext <<EOF |
| 12805 | class Foo |
| 12806 | { |
| 12807 | public: |
| 12808 | Foo (void) { a = 0; } |
| 12809 | private: |
| 12810 | int a; |
| 12811 | }; |
| 12812 | EOF |
| 12813 | |
| 12814 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12815 | (eval $ac_compile) 2>&5 |
| 12816 | ac_status=$? |
| 12817 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12818 | (exit $ac_status); }; then |
| 12819 | # Parse the compiler output and extract the necessary |
| 12820 | # objects, libraries and library flags. |
| 12821 | |
| 12822 | # Sentinel used to keep track of whether or not we are before |
| 12823 | # the conftest object file. |
| 12824 | pre_test_object_deps_done=no |
| 12825 | |
| 12826 | # The `*' in the case matches for architectures that use `case' in |
| 12827 | # $output_verbose_cmd can trigger glob expansion during the loop |
| 12828 | # eval without this substitution. |
| 12829 | output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` |
| 12830 | |
| 12831 | for p in `eval $output_verbose_link_cmd`; do |
| 12832 | case $p in |
| 12833 | |
| 12834 | -L* | -R* | -l*) |
| 12835 | # Some compilers place space between "-{L,R}" and the path. |
| 12836 | # Remove the space. |
| 12837 | if testscip-shell system . . test. $p = "-L" \ |
| 12838 | || testscip-shell system . . test. $p = "-R"; then |
| 12839 | prev=$p |
| 12840 | continue |
| 12841 | else |
| 12842 | prev= |
| 12843 | fi |
| 12844 | |
| 12845 | if testscip-shell system . . test. "$pre_test_object_deps_done" = no; then |
| 12846 | case $p in |
| 12847 | -L* | -R*) |
| 12848 | # Internal compiler library paths should come after those |
| 12849 | # provided the user. The postdeps already come after the |
| 12850 | # user supplied libs so there is no need to process them. |
| 12851 | if testscip-shell system . . test. -z "$compiler_lib_search_path_CXX"; then |
| 12852 | compiler_lib_search_path_CXX="${prev}${p}" |
| 12853 | else |
| 12854 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
| 12855 | fi |
| 12856 | ;; |
| 12857 | # The "-l" case would never come before the object being |
| 12858 | # linked, so don't bother handling this case. |
| 12859 | esac |
| 12860 | else |
| 12861 | if testscip-shell system . . test. -z "$postdeps_CXX"; then |
| 12862 | postdeps_CXX="${prev}${p}" |
| 12863 | else |
| 12864 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
| 12865 | fi |
| 12866 | fi |
| 12867 | ;; |
| 12868 | |
| 12869 | *.$objext) |
| 12870 | # This assumes that the test object file only shows up |
| 12871 | # once in the compiler output. |
| 12872 | if testscip-shell system . . test. "$p" = "conftest.$objext"; then |
| 12873 | pre_test_object_deps_done=yes |
| 12874 | continue |
| 12875 | fi |
| 12876 | |
| 12877 | if testscip-shell system . . test. "$pre_test_object_deps_done" = no; then |
| 12878 | if testscip-shell system . . test. -z "$predep_objects_CXX"; then |
| 12879 | predep_objects_CXX="$p" |
| 12880 | else |
| 12881 | predep_objects_CXX="$predep_objects_CXX $p" |
| 12882 | fi |
| 12883 | else |
| 12884 | if testscip-shell system . . test. -z "$postdep_objects_CXX"; then |
| 12885 | postdep_objects_CXX="$p" |
| 12886 | else |
| 12887 | postdep_objects_CXX="$postdep_objects_CXX $p" |
| 12888 | fi |
| 12889 | fi |
| 12890 | ;; |
| 12891 | |
| 12892 | *) ;; # Ignore the rest. |
| 12893 | |
| 12894 | esac |
| 12895 | done |
| 12896 | |
| 12897 | # Clean up. |
| 12898 | rmscip-shell system . . rm. -f a.out a.exe |
| 12899 | else |
| 12900 | echoscip-shell system . . echo. "libtool.m4: error: problem compiling CXX test program" |
| 12901 | fi |
| 12902 | |
| 12903 | $rm -f confest.$objext |
| 12904 | |
| 12905 | # PORTME: override above test on systems where it is broken |
| 12906 | case $host_os in |
| 12907 | interix3*) |
| 12908 | # Interix 3.5 installs completely hosed .la files for C++, so rather than |
| 12909 | # hack all around it, let's just trust "g++" to DTRT. |
| 12910 | predep_objects_CXX= |
| 12911 | postdep_objects_CXX= |
| 12912 | postdeps_CXX= |
| 12913 | ;; |
| 12914 | |
| 12915 | solaris*) |
| 12916 | case $cc_basename in |
| 12917 | CC*) |
| 12918 | # Adding this requires a known-good setup of shared libraries for |
| 12919 | # Sun compiler versions before 5.6, else PIC objects from an old |
| 12920 | # archive will be linked into the output, leading to subtle bugs. |
| 12921 | postdeps_CXX='-lCstd -lCrun' |
| 12922 | ;; |
| 12923 | esac |
| 12924 | ;; |
| 12925 | esac |
| 12926 | |
| 12927 | |
| 12928 | case " $postdeps_CXX " in |
| 12929 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
| 12930 | esac |
| 12931 | |
| 12932 | lt_prog_compiler_wl_CXX= |
| 12933 | lt_prog_compiler_pic_CXX= |
| 12934 | lt_prog_compiler_static_CXX= |
| 12935 | |
| 12936 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 12937 | echoscip-shell system . . echo. $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
| 12938 | |
| 12939 | # C++ specific cases for pic, static, wl, etc. |
| 12940 | if testscip-shell system . . test. "$GXX" = yes; then |
| 12941 | lt_prog_compiler_wl_CXX='-Wl,' |
| 12942 | lt_prog_compiler_static_CXX='-static' |
| 12943 | |
| 12944 | case $host_os in |
| 12945 | aix*) |
| 12946 | # All AIX code is PIC. |
| 12947 | if testscip-shell system . . test. "$host_cpu" = ia64; then |
| 12948 | # AIX 5 now supports IA64 processor |
| 12949 | lt_prog_compiler_static_CXX='-Bstatic' |
| 12950 | fi |
| 12951 | ;; |
| 12952 | amigaos*) |
| 12953 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 12954 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 12955 | # like `-m68040'. |
| 12956 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
| 12957 | ;; |
| 12958 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 12959 | # PIC is the default for these OSes. |
| 12960 | ;; |
| 12961 | mingw* | os2* | pw32*) |
| 12962 | # This hack is so that the source file can tell whether it is being |
| 12963 | # built for inclusion in a dll (and should export symbols for example). |
| 12964 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 12965 | ;; |
| 12966 | darwin* | rhapsody*) |
| 12967 | # PIC is the default on this platform |
| 12968 | # Common symbols not allowed in MH_DYLIB files |
| 12969 | lt_prog_compiler_pic_CXX='-fno-common' |
| 12970 | ;; |
| 12971 | *djgpp*) |
| 12972 | # DJGPP does not support shared libraries at all |
| 12973 | lt_prog_compiler_pic_CXX= |
| 12974 | ;; |
| 12975 | interix3*) |
| 12976 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 12977 | # Instead, we relocate shared libraries at runtime. |
| 12978 | ;; |
| 12979 | sysv4*MP*) |
| 12980 | if testscip-shell system . . test. -d /usr/necscip-shell filesystem . . `/usr/nec`.; then |
| 12981 | lt_prog_compiler_pic_CXX=-Kconform_pic |
| 12982 | fi |
| 12983 | ;; |
| 12984 | hpux*) |
| 12985 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 12986 | # not for PA HP-UX. |
| 12987 | case $host_cpu in |
| 12988 | hppa*64*|ia64*) |
| 12989 | ;; |
| 12990 | *) |
| 12991 | lt_prog_compiler_pic_CXX='-fPIC' |
| 12992 | ;; |
| 12993 | esac |
| 12994 | ;; |
| 12995 | *) |
| 12996 | lt_prog_compiler_pic_CXX='-fPIC' |
| 12997 | ;; |
| 12998 | esac |
| 12999 | else |
| 13000 | case $host_os in |
| 13001 | aix4* | aix5*) |
| 13002 | # All AIX code is PIC. |
| 13003 | if testscip-shell system . . test. "$host_cpu" = ia64; then |
| 13004 | # AIX 5 now supports IA64 processor |
| 13005 | lt_prog_compiler_static_CXX='-Bstatic' |
| 13006 | else |
| 13007 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
| 13008 | fi |
| 13009 | ;; |
| 13010 | chorus*) |
| 13011 | case $cc_basename in |
| 13012 | cxch68*) |
| 13013 | # Green Hills C++ Compiler |
| 13014 | # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" |
| 13015 | ;; |
| 13016 | esac |
| 13017 | ;; |
| 13018 | darwin*) |
| 13019 | # PIC is the default on this platform |
| 13020 | # Common symbols not allowed in MH_DYLIB files |
| 13021 | case $cc_basename in |
| 13022 | xlc*) |
| 13023 | lt_prog_compiler_pic_CXX='-qnocommon' |
| 13024 | lt_prog_compiler_wl_CXX='-Wl,' |
| 13025 | ;; |
| 13026 | esac |
| 13027 | ;; |
| 13028 | dgux*) |
| 13029 | case $cc_basename in |
| 13030 | ec++*) |
| 13031 | lt_prog_compiler_pic_CXX='-KPIC' |
| 13032 | ;; |
| 13033 | ghcx*) |
| 13034 | # Green Hills C++ Compiler |
| 13035 | lt_prog_compiler_pic_CXX='-pic' |
| 13036 | ;; |
| 13037 | *) |
| 13038 | ;; |
| 13039 | esac |
| 13040 | ;; |
| 13041 | freebsd* | kfreebsd*-gnu | dragonfly*) |
| 13042 | # FreeBSD uses GNU C++ |
| 13043 | ;; |
| 13044 | hpux9* | hpux10* | hpux11*) |
| 13045 | case $cc_basename in |
| 13046 | CC*) |
| 13047 | lt_prog_compiler_wl_CXX='-Wl,' |
| 13048 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
| 13049 | if testscip-shell system . . test. "$host_cpu" != ia64; then |
| 13050 | lt_prog_compiler_pic_CXX='+Z' |
| 13051 | fi |
| 13052 | ;; |
| 13053 | aCC*) |
| 13054 | lt_prog_compiler_wl_CXX='-Wl,' |
| 13055 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
| 13056 | case $host_cpu in |
| 13057 | hppa*64*|ia64*) |
| 13058 | # +Z the default |
| 13059 | ;; |
| 13060 | *) |
| 13061 | lt_prog_compiler_pic_CXX='+Z' |
| 13062 | ;; |
| 13063 | esac |
| 13064 | ;; |
| 13065 | *) |
| 13066 | ;; |
| 13067 | esac |
| 13068 | ;; |
| 13069 | interix*) |
| 13070 | # This is c89, which is MS Visual C++ (no shared libs) |
| 13071 | # Anyone wants to do a port? |
| 13072 | ;; |
| 13073 | irix5* | irix6* | nonstopux*) |
| 13074 | case $cc_basename in |
| 13075 | CC*) |
| 13076 | lt_prog_compiler_wl_CXX='-Wl,' |
| 13077 | lt_prog_compiler_static_CXX='-non_shared' |
| 13078 | # CC pic flag -KPIC is the default. |
| 13079 | ;; |
| 13080 | *) |
| 13081 | ;; |
| 13082 | esac |
| 13083 | ;; |
| 13084 | linux*) |
| 13085 | case $cc_basename in |
| 13086 | KCC*) |
| 13087 | # KAI C++ Compiler |
| 13088 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 13089 | lt_prog_compiler_pic_CXX='-fPIC' |
| 13090 | ;; |
| 13091 | icpc* | ecpc*) |
| 13092 | # Intel C++ |
| 13093 | lt_prog_compiler_wl_CXX='-Wl,' |
| 13094 | lt_prog_compiler_pic_CXX='-KPIC' |
| 13095 | lt_prog_compiler_static_CXX='-static' |
| 13096 | ;; |
| 13097 | pgCC*) |
| 13098 | # Portland Group C++ compiler. |
| 13099 | lt_prog_compiler_wl_CXX='-Wl,' |
| 13100 | lt_prog_compiler_pic_CXX='-fpic' |
| 13101 | lt_prog_compiler_static_CXX='-Bstatic' |
| 13102 | ;; |
| 13103 | cxx*) |
| 13104 | # Compaq C++ |
| 13105 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 13106 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 13107 | lt_prog_compiler_pic_CXX= |
| 13108 | lt_prog_compiler_static_CXX='-non_shared' |
| 13109 | ;; |
| 13110 | *) |
| 13111 | ;; |
| 13112 | esac |
| 13113 | ;; |
| 13114 | lynxos*) |
| 13115 | ;; |
| 13116 | m88k*) |
| 13117 | ;; |
| 13118 | mvs*) |
| 13119 | case $cc_basename in |
| 13120 | cxx*) |
| 13121 | lt_prog_compiler_pic_CXX='-W c,exportall' |
| 13122 | ;; |
| 13123 | *) |
| 13124 | ;; |
| 13125 | esac |
| 13126 | ;; |
| 13127 | netbsd*) |
| 13128 | ;; |
| 13129 | osf3* | osf4* | osf5*) |
| 13130 | case $cc_basename in |
| 13131 | KCC*) |
| 13132 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 13133 | ;; |
| 13134 | RCC*) |
| 13135 | # Rational C++ 2.4.1 |
| 13136 | lt_prog_compiler_pic_CXX='-pic' |
| 13137 | ;; |
| 13138 | cxx*) |
| 13139 | # Digital/Compaq C++ |
| 13140 | lt_prog_compiler_wl_CXX='-Wl,' |
| 13141 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 13142 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 13143 | lt_prog_compiler_pic_CXX= |
| 13144 | lt_prog_compiler_static_CXX='-non_shared' |
| 13145 | ;; |
| 13146 | *) |
| 13147 | ;; |
| 13148 | esac |
| 13149 | ;; |
| 13150 | psos*) |
| 13151 | ;; |
| 13152 | solaris*) |
| 13153 | case $cc_basename in |
| 13154 | CC*) |
| 13155 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 13156 | lt_prog_compiler_pic_CXX='-KPIC' |
| 13157 | lt_prog_compiler_static_CXX='-Bstatic' |
| 13158 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 13159 | ;; |
| 13160 | gcx*) |
| 13161 | # Green Hills C++ Compiler |
| 13162 | lt_prog_compiler_pic_CXX='-PIC' |
| 13163 | ;; |
| 13164 | *) |
| 13165 | ;; |
| 13166 | esac |
| 13167 | ;; |
| 13168 | sunos4*) |
| 13169 | case $cc_basename in |
| 13170 | CC*) |
| 13171 | # Sun C++ 4.x |
| 13172 | lt_prog_compiler_pic_CXX='-pic' |
| 13173 | lt_prog_compiler_static_CXX='-Bstatic' |
| 13174 | ;; |
| 13175 | lcc*) |
| 13176 | # Lucid |
| 13177 | lt_prog_compiler_pic_CXX='-pic' |
| 13178 | ;; |
| 13179 | *) |
| 13180 | ;; |
| 13181 | esac |
| 13182 | ;; |
| 13183 | tandem*) |
| 13184 | case $cc_basename in |
| 13185 | NCC*) |
| 13186 | # NonStop-UX NCC 3.20 |
| 13187 | lt_prog_compiler_pic_CXX='-KPIC' |
| 13188 | ;; |
| 13189 | *) |
| 13190 | ;; |
| 13191 | esac |
| 13192 | ;; |
| 13193 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 13194 | case $cc_basename in |
| 13195 | CC*) |
| 13196 | lt_prog_compiler_wl_CXX='-Wl,' |
| 13197 | lt_prog_compiler_pic_CXX='-KPIC' |
| 13198 | lt_prog_compiler_static_CXX='-Bstatic' |
| 13199 | ;; |
| 13200 | esac |
| 13201 | ;; |
| 13202 | vxworks*) |
| 13203 | ;; |
| 13204 | *) |
| 13205 | lt_prog_compiler_can_build_shared_CXX=no |
| 13206 | ;; |
| 13207 | esac |
| 13208 | fi |
| 13209 | |
| 13210 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
| 13211 | echoscip-shell system . . echo. "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 |
| 13212 | |
| 13213 | # |
| 13214 | # Check to make sure the PIC flag actually works. |
| 13215 | # |
| 13216 | if testscip-shell system . . test. -n "$lt_prog_compiler_pic_CXX"; then |
| 13217 | |
| 13218 | echoscip-shell system . . echo. "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
| 13219 | echoscip-shell system . . echo. $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 |
| 13220 | if testscip-shell system . . test. "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
| 13221 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 13222 | else |
| 13223 | lt_prog_compiler_pic_works_CXX=no |
| 13224 | ac_outfile=conftest.$ac_objext |
| 13225 | printfscip-shell system . . printf. "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 13226 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
| 13227 | # Insert the option either (1) after the last *FLAGS variable, or |
| 13228 | # (2) before a word containing "conftest.", or (3) at the end. |
| 13229 | # Note that $ac_compile itself does not contain backslashes and begins |
| 13230 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 13231 | # The option is referenced via a variable to avoid confusing sed. |
| 13232 | lt_compile=`echoscip-shell system . . echo. "$ac_compile" | $SED \ |
| 13233 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 13234 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 13235 | -e 's:$: $lt_compiler_flag:'` |
| 13236 | (eval echo "\"\$as_me:13236: $lt_compile\"" >&5) |
| 13237 | (eval "$lt_compile" 2>conftest.err) |
| 13238 | ac_status=$? |
| 13239 | catscip-shell system . . cat. conftest.err >&5 |
| 13240 | echoscip-shell system . . echo. "$as_me:13240: \$? = $ac_status" >&5 |
| 13241 | if (exit $ac_status) && testscip-shell system . . test. -s "$ac_outfile"; then |
| 13242 | # The compiler can only warn and ignore the option if not recognized |
| 13243 | # So say no if there are warnings other than the usual output. |
| 13244 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/dscip-shell filesystem . . `/^$/d`.' >conftest.exp |
| 13245 | $SED '/^$/d; /^ *+/dscip-shell filesystem . . `/^$/d; /^ *+/d`.' conftest.err >conftest.er2 |
| 13246 | if testscip-shell system . . test. ! -s conftest.er2 || diffscip-shell system . . diff. conftest.exp conftest.er2 >/dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 13247 | lt_prog_compiler_pic_works_CXX=yes |
| 13248 | fi |
| 13249 | fi |
| 13250 | $rm conftest* |
| 13251 | |
| 13252 | fi |
| 13253 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
| 13254 | echoscip-shell system . . echo. "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 |
| 13255 | |
| 13256 | if testscip-shell system . . test. x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
| 13257 | case $lt_prog_compiler_pic_CXX in |
| 13258 | "" | " "*) ;; |
| 13259 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
| 13260 | esac |
| 13261 | else |
| 13262 | lt_prog_compiler_pic_CXX= |
| 13263 | lt_prog_compiler_can_build_shared_CXX=no |
| 13264 | fi |
| 13265 | |
| 13266 | fi |
| 13267 | case $host_os in |
| 13268 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 13269 | *djgpp*) |
| 13270 | lt_prog_compiler_pic_CXX= |
| 13271 | ;; |
| 13272 | *) |
| 13273 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
| 13274 | ;; |
| 13275 | esac |
| 13276 | |
| 13277 | # |
| 13278 | # Check to make sure the static flag actually works. |
| 13279 | # |
| 13280 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
| 13281 | echoscip-shell system . . echo. "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 13282 | echoscip-shell system . . echo. $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 |
| 13283 | if testscip-shell system . . test. "${lt_prog_compiler_static_works_CXX+set}" = set; then |
| 13284 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 13285 | else |
| 13286 | lt_prog_compiler_static_works_CXX=no |
| 13287 | save_LDFLAGS="$LDFLAGS" |
| 13288 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 13289 | printfscip-shell system . . printf. "$lt_simple_link_test_code" > conftest.$ac_ext |
| 13290 | if (eval $ac_link 2>conftest.err) && testscip-shell system . . test. -s conftest$ac_exeext; then |
| 13291 | # The linker can only warn and ignore the option if not recognized |
| 13292 | # So say no if there are warnings |
| 13293 | if testscip-shell system . . test. -s conftest.err; then |
| 13294 | # Append any errors to the config.log. |
| 13295 | catscip-shell system . . cat. conftest.err 1>&5 |
| 13296 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/dscip-shell filesystem . . `/^$/d`.' > conftest.exp |
| 13297 | $SED '/^$/d; /^ *+/dscip-shell filesystem . . `/^$/d; /^ *+/d`.' conftest.err >conftest.er2 |
| 13298 | if diffscip-shell system . . diff. conftest.exp conftest.er2 >/dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 13299 | lt_prog_compiler_static_works_CXX=yes |
| 13300 | fi |
| 13301 | else |
| 13302 | lt_prog_compiler_static_works_CXX=yes |
| 13303 | fi |
| 13304 | fi |
| 13305 | $rm conftest* |
| 13306 | LDFLAGS="$save_LDFLAGS" |
| 13307 | |
| 13308 | fi |
| 13309 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 |
| 13310 | echoscip-shell system . . echo. "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6 |
| 13311 | |
| 13312 | if testscip-shell system . . test. x"$lt_prog_compiler_static_works_CXX" = xyes; then |
| 13313 | : |
| 13314 | else |
| 13315 | lt_prog_compiler_static_CXX= |
| 13316 | fi |
| 13317 | |
| 13318 | |
| 13319 | echoscip-shell system . . echo. "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 13320 | echoscip-shell system . . echo. $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
| 13321 | if testscip-shell system . . test. "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
| 13322 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 13323 | else |
| 13324 | lt_cv_prog_compiler_c_o_CXX=no |
| 13325 | $rm -r conftest 2>/dev/nullscip-shell filesystem . . `/dev/null`. |
| 13326 | mkdirscip-shell system . . mkdir. conftest |
| 13327 | cd conftest |
| 13328 | mkdirscip-shell system . . mkdir. out |
| 13329 | printfscip-shell system . . printf. "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 13330 | |
| 13331 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 13332 | # Insert the option either (1) after the last *FLAGS variable, or |
| 13333 | # (2) before a word containing "conftest.", or (3) at the end. |
| 13334 | # Note that $ac_compile itself does not contain backslashes and begins |
| 13335 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 13336 | lt_compile=`echoscip-shell system . . echo. "$ac_compile" | $SED \ |
| 13337 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 13338 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 13339 | -e 's:$: $lt_compiler_flag:'` |
| 13340 | (eval echo "\"\$as_me:13340: $lt_compile\"" >&5) |
| 13341 | (eval "$lt_compile" 2>out/conftest.err) |
| 13342 | ac_status=$? |
| 13343 | catscip-shell system . . cat. out/conftest.err >&5 |
| 13344 | echoscip-shell system . . echo. "$as_me:13344: \$? = $ac_status" >&5 |
| 13345 | if (exit $ac_status) && testscip-shell system . . test. -s out/conftest2.$ac_objext |
| 13346 | then |
| 13347 | # The compiler can only warn and ignore the option if not recognized |
| 13348 | # So say no if there are warnings |
| 13349 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/dscip-shell filesystem . . `/^$/d`.' > out/conftest.exp |
| 13350 | $SED '/^$/d; /^ *+/dscip-shell filesystem . . `/^$/d; /^ *+/d`.' out/conftest.err >out/conftest.er2 |
| 13351 | if testscip-shell system . . test. ! -s out/conftest.er2 || diffscip-shell system . . diff. out/conftest.exp out/conftest.er2 >/dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 13352 | lt_cv_prog_compiler_c_o_CXX=yes |
| 13353 | fi |
| 13354 | fi |
| 13355 | chmodscip-shell system . . chmod. u+w . 2>&5 |
| 13356 | $rm conftest* |
| 13357 | # SGI C++ compiler will create directory out/ii_files/ for |
| 13358 | # template instantiation |
| 13359 | testscip-shell system . . test. -d out/ii_files && $rm out/ii_files/* && rmdirscip-shell system . . rmdir. out/ii_files |
| 13360 | $rm out/* && rmdirscip-shell system . . rmdir. out |
| 13361 | cd .. |
| 13362 | rmdirscip-shell system . . rmdir. conftest |
| 13363 | $rm conftest* |
| 13364 | |
| 13365 | fi |
| 13366 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 13367 | echoscip-shell system . . echo. "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 |
| 13368 | |
| 13369 | |
| 13370 | hard_links="nottested" |
| 13371 | if testscip-shell system . . test. "$lt_cv_prog_compiler_c_o_CXX" = no && testscip-shell system . . test. "$need_locks" != no; then |
| 13372 | # do not overwrite the value of need_locks provided by the user |
| 13373 | echoscip-shell system . . echo. "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 13374 | echoscip-shell system . . echo. $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 13375 | hard_links=yes |
| 13376 | $rm conftest* |
| 13377 | lnscip-shell system . . ln. conftest.a conftest.b 2>/dev/nullscip-shell filesystem . . `/dev/null`. && hard_links=no |
| 13378 | touchscip-shell system . . touch. conftest.a |
| 13379 | lnscip-shell system . . ln. conftest.a conftest.b 2>&5 || hard_links=no |
| 13380 | lnscip-shell system . . ln. conftest.a conftest.b 2>/dev/nullscip-shell filesystem . . `/dev/null`. && hard_links=no |
| 13381 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $hard_links" >&5 |
| 13382 | echoscip-shell system . . echo. "${ECHO_T}$hard_links" >&6 |
| 13383 | if testscip-shell system . . test. "$hard_links" = no; then |
| 13384 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 13385 | echoscip-shell system . . echo. "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 13386 | need_locks=warn |
| 13387 | fi |
| 13388 | else |
| 13389 | need_locks=no |
| 13390 | fi |
| 13391 | |
| 13392 | echoscip-shell system . . echo. "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 13393 | echoscip-shell system . . echo. $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 13394 | |
| 13395 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 13396 | case $host_os in |
| 13397 | aix4* | aix5*) |
| 13398 | # If we're using GNU nm, then we don't want the "-C" option. |
| 13399 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 13400 | if $NM -V 2>&1 | grepscip-shell system . . grep. 'GNU' > /dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 13401 | export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
| 13402 | else |
| 13403 | export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
| 13404 | fi |
| 13405 | ;; |
| 13406 | pw32*) |
| 13407 | export_symbols_cmds_CXX="$ltdll_cmds" |
| 13408 | ;; |
| 13409 | cygwin* | mingw*) |
| 13410 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 13411 | ;; |
| 13412 | *) |
| 13413 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 13414 | ;; |
| 13415 | esac |
| 13416 | |
| 13417 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 13418 | echoscip-shell system . . echo. "${ECHO_T}$ld_shlibs_CXX" >&6 |
| 13419 | testscip-shell system . . test. "$ld_shlibs_CXX" = no && can_build_shared=no |
| 13420 | |
| 13421 | # |
| 13422 | # Do we need to explicitly link libc? |
| 13423 | # |
| 13424 | case "x$archive_cmds_need_lc_CXX" in |
| 13425 | x|xyes) |
| 13426 | # Assume -lc should be added |
| 13427 | archive_cmds_need_lc_CXX=yes |
| 13428 | |
| 13429 | if testscip-shell system . . test. "$enable_shared" = yes && testscip-shell system . . test. "$GCC" = yes; then |
| 13430 | case $archive_cmds_CXX in |
| 13431 | *'~'*) |
| 13432 | # FIXME: we may have to deal with multi-command sequences. |
| 13433 | ;; |
| 13434 | '$CC '*) |
| 13435 | # Test whether the compiler implicitly links with -lc since on some |
| 13436 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 13437 | # to ld, don't add -lc before -lgcc. |
| 13438 | echoscip-shell system . . echo. "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 13439 | echoscip-shell system . . echo. $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 13440 | $rm conftest* |
| 13441 | printfscip-shell system . . printf. "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 13442 | |
| 13443 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13444 | (eval $ac_compile) 2>&5 |
| 13445 | ac_status=$? |
| 13446 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13447 | (exit $ac_status); } 2>conftest.err; then |
| 13448 | soname=conftest |
| 13449 | lib=conftest |
| 13450 | libobjs=conftest.$ac_objext |
| 13451 | deplibs= |
| 13452 | wl=$lt_prog_compiler_wl_CXX |
| 13453 | pic_flag=$lt_prog_compiler_pic_CXX |
| 13454 | compiler_flags=-v |
| 13455 | linker_flags=-v |
| 13456 | verstring= |
| 13457 | output_objdir=. |
| 13458 | libname=conftest |
| 13459 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
| 13460 | allow_undefined_flag_CXX= |
| 13461 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 13462 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 13463 | ac_status=$? |
| 13464 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13465 | (exit $ac_status); } |
| 13466 | then |
| 13467 | archive_cmds_need_lc_CXX=no |
| 13468 | else |
| 13469 | archive_cmds_need_lc_CXX=yes |
| 13470 | fi |
| 13471 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
| 13472 | else |
| 13473 | catscip-shell system . . cat. conftest.err 1>&5 |
| 13474 | fi |
| 13475 | $rm conftest* |
| 13476 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
| 13477 | echoscip-shell system . . echo. "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 |
| 13478 | ;; |
| 13479 | esac |
| 13480 | fi |
| 13481 | ;; |
| 13482 | esac |
| 13483 | |
| 13484 | echoscip-shell system . . echo. "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 13485 | echoscip-shell system . . echo. $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 13486 | library_names_spec= |
| 13487 | libname_spec='lib$name' |
| 13488 | soname_spec= |
| 13489 | shrext_cmds=".so" |
| 13490 | postinstall_cmds= |
| 13491 | postuninstall_cmds= |
| 13492 | finish_cmds= |
| 13493 | finish_eval= |
| 13494 | shlibpath_var= |
| 13495 | shlibpath_overrides_runpath=unknown |
| 13496 | version_type=none |
| 13497 | dynamic_linker="$host_os ld.so" |
| 13498 | sys_lib_dlsearch_path_spec="/lib /usr/libscip-shell filesystem . . `/lib /usr/lib`." |
| 13499 | if testscip-shell system . . test. "$GCC" = yes; then |
| 13500 | sys_lib_search_path_spec=`$CC -print-search-dirs | grepscip-shell system . . grep. "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 13501 | if echoscip-shell system . . echo. "$sys_lib_search_path_spec" | grepscip-shell system . . grep. ';' >/dev/nullscip-shell filesystem . . `/dev/null`. ; then |
| 13502 | # if the path contains ";" then we assume it to be the separator |
| 13503 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 13504 | # assumed that no part of a normal pathname contains ";" but that should |
| 13505 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 13506 | sys_lib_search_path_spec=`echoscip-shell system . . echo. "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 13507 | else |
| 13508 | sys_lib_search_path_spec=`echoscip-shell system . . echo. "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 13509 | fi |
| 13510 | else |
| 13511 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/libscip-shell filesystem . . `/lib /usr/lib /usr/local/lib`." |
| 13512 | fi |
| 13513 | need_lib_prefix=unknown |
| 13514 | hardcode_into_libs=no |
| 13515 | |
| 13516 | # when you set need_version to no, make sure it does not cause -set_version |
| 13517 | # flags to be left without arguments |
| 13518 | need_version=unknown |
| 13519 | |
| 13520 | case $host_os in |
| 13521 | aix3*) |
| 13522 | version_type=linux |
| 13523 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 13524 | shlibpath_var=LIBPATH |
| 13525 | |
| 13526 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 13527 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13528 | ;; |
| 13529 | |
| 13530 | aix4* | aix5*) |
| 13531 | version_type=linux |
| 13532 | need_lib_prefix=no |
| 13533 | need_version=no |
| 13534 | hardcode_into_libs=yes |
| 13535 | if testscip-shell system . . test. "$host_cpu" = ia64; then |
| 13536 | # AIX 5 supports IA64 |
| 13537 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 13538 | shlibpath_var=LD_LIBRARY_PATH |
| 13539 | else |
| 13540 | # With GCC up to 2.95.x, collect2 would create an import file |
| 13541 | # for dependence libraries. The import file would start with |
| 13542 | # the line `#! .'. This would cause the generated library to |
| 13543 | # depend on `.', always an invalid library. This was fixed in |
| 13544 | # development snapshots of GCC prior to 3.0. |
| 13545 | case $host_os in |
| 13546 | aix4 | aix4.[01] | aix4.[01].*) |
| 13547 | if { echoscip-shell system . . echo. '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 13548 | echoscip-shell system . . echo. ' yes ' |
| 13549 | echoscip-shell system . . echo. '#endif'; } | ${CC} -E - | grepscip-shell system . . grep. yes > /dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 13550 | : |
| 13551 | else |
| 13552 | can_build_shared=no |
| 13553 | fi |
| 13554 | ;; |
| 13555 | esac |
| 13556 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 13557 | # soname into executable. Probably we can add versioning support to |
| 13558 | # collect2, so additional links can be useful in future. |
| 13559 | if testscip-shell system . . test. "$aix_use_runtimelinking" = yes; then |
| 13560 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 13561 | # instead of lib<name>.a to let people know that these are not |
| 13562 | # typical AIX shared libraries. |
| 13563 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13564 | else |
| 13565 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 13566 | # and later when we are not doing run time linking. |
| 13567 | library_names_spec='${libname}${release}.a $libname.a' |
| 13568 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13569 | fi |
| 13570 | shlibpath_var=LIBPATH |
| 13571 | fi |
| 13572 | ;; |
| 13573 | |
| 13574 | amigaos*) |
| 13575 | library_names_spec='$libname.ixlibrary $libname.a' |
| 13576 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 13577 | 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' |
| 13578 | ;; |
| 13579 | |
| 13580 | beos*) |
| 13581 | library_names_spec='${libname}${shared_ext}' |
| 13582 | dynamic_linker="$host_os ld.so" |
| 13583 | shlibpath_var=LIBRARY_PATH |
| 13584 | ;; |
| 13585 | |
| 13586 | bsdi[45]*) |
| 13587 | version_type=linux |
| 13588 | need_version=no |
| 13589 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13590 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13591 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 13592 | shlibpath_var=LD_LIBRARY_PATH |
| 13593 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/libscip-shell filesystem . . `/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib`." |
| 13594 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/libscip-shell filesystem . . `/shlib /usr/lib /usr/local/lib`." |
| 13595 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 13596 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 13597 | # libtool to hard-code these into programs |
| 13598 | ;; |
| 13599 | |
| 13600 | cygwin* | mingw* | pw32*) |
| 13601 | version_type=windows |
| 13602 | shrext_cmds=".dll" |
| 13603 | need_version=no |
| 13604 | need_lib_prefix=no |
| 13605 | |
| 13606 | case $GCC,$host_os in |
| 13607 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 13608 | library_names_spec='$libname.dll.a' |
| 13609 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 13610 | postinstall_cmds='base_file=`basename \${file}`~ |
| 13611 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 13612 | dldir=$destdir/`dirname \$dlpath`~ |
| 13613 | test -d \$dldir || mkdir -p \$dldir~ |
| 13614 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 13615 | chmod a+x \$dldir/$dlname' |
| 13616 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 13617 | dlpath=$dir/\$dldll~ |
| 13618 | $rm \$dlpath' |
| 13619 | shlibpath_overrides_runpath=yes |
| 13620 | |
| 13621 | case $host_os in |
| 13622 | cygwin*) |
| 13623 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 13624 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 13625 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/libscip-shell filesystem . . `/usr/lib /lib/w32api /lib /usr/local/lib`." |
| 13626 | ;; |
| 13627 | mingw*) |
| 13628 | # MinGW DLLs use traditional 'lib' prefix |
| 13629 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 13630 | sys_lib_search_path_spec=`$CC -print-search-dirs | grepscip-shell system . . grep. "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 13631 | if echoscip-shell system . . echo. "$sys_lib_search_path_spec" | grepscip-shell system . . grep. ';[c-zC-Z]:/' >/dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 13632 | # It is most probably a Windows format PATH printed by |
| 13633 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 13634 | # path with ; separators, and with drive letters. We can handle the |
| 13635 | # drive letters (cygwin fileutils understands them), so leave them, |
| 13636 | # especially as we might pass files found there to a mingw objdump, |
| 13637 | # which wouldn't understand a cygwinified path. Ahh. |
| 13638 | sys_lib_search_path_spec=`echoscip-shell system . . echo. "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 13639 | else |
| 13640 | sys_lib_search_path_spec=`echoscip-shell system . . echo. "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 13641 | fi |
| 13642 | ;; |
| 13643 | pw32*) |
| 13644 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 13645 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 13646 | ;; |
| 13647 | esac |
| 13648 | ;; |
| 13649 | |
| 13650 | *) |
| 13651 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 13652 | ;; |
| 13653 | esac |
| 13654 | dynamic_linker='Win32 ld.exe' |
| 13655 | # FIXME: first we should search . and the directory the executable is in |
| 13656 | shlibpath_var=PATH |
| 13657 | ;; |
| 13658 | |
| 13659 | darwin* | rhapsody*) |
| 13660 | dynamic_linker="$host_os dyld" |
| 13661 | version_type=darwin |
| 13662 | need_lib_prefix=no |
| 13663 | need_version=no |
| 13664 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 13665 | soname_spec='${libname}${release}${major}$shared_ext' |
| 13666 | shlibpath_overrides_runpath=yes |
| 13667 | shlibpath_var=DYLD_LIBRARY_PATH |
| 13668 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
| 13669 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 13670 | if testscip-shell system . . test. "$GCC" = yes; then |
| 13671 | sys_lib_search_path_spec=`$CC -print-search-dirs | trscip-shell system . . tr. "\n" "$PATH_SEPARATOR" | sedscip-shell system . . sed. -e 's/libraries:/@libraries:/' | trscip-shell system . . tr. "@" "\n" | grepscip-shell system . . grep. "^libraries:" | sedscip-shell system . . sed. -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
| 13672 | else |
| 13673 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/libscip-shell filesystem . . `/lib /usr/lib /usr/local/lib`.' |
| 13674 | fi |
| 13675 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/libscip-shell filesystem . . `/usr/local/lib /lib /usr/lib`.' |
| 13676 | ;; |
| 13677 | |
| 13678 | dgux*) |
| 13679 | version_type=linux |
| 13680 | need_lib_prefix=no |
| 13681 | need_version=no |
| 13682 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 13683 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13684 | shlibpath_var=LD_LIBRARY_PATH |
| 13685 | ;; |
| 13686 | |
| 13687 | freebsd1*) |
| 13688 | dynamic_linker=no |
| 13689 | ;; |
| 13690 | |
| 13691 | kfreebsd*-gnu) |
| 13692 | version_type=linux |
| 13693 | need_lib_prefix=no |
| 13694 | need_version=no |
| 13695 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 13696 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13697 | shlibpath_var=LD_LIBRARY_PATH |
| 13698 | shlibpath_overrides_runpath=no |
| 13699 | hardcode_into_libs=yes |
| 13700 | dynamic_linker='GNU ld.so' |
| 13701 | ;; |
| 13702 | |
| 13703 | freebsd* | dragonfly*) |
| 13704 | # DragonFly does not have aout. When/if they implement a new |
| 13705 | # versioning mechanism, adjust this. |
| 13706 | if testscip-shell system . . test. -x /usr/bin/objformatscip-shell filesystem . . `/usr/bin/objformat`.; then |
| 13707 | objformat=`/usr/bin/objformatscip-shell filesystem . . `/usr/bin/objformat`.` |
| 13708 | else |
| 13709 | case $host_os in |
| 13710 | freebsd[123]*) objformat=aout ;; |
| 13711 | *) objformat=elf ;; |
| 13712 | esac |
| 13713 | fi |
| 13714 | version_type=freebsd-$objformat |
| 13715 | case $version_type in |
| 13716 | freebsd-elf*) |
| 13717 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 13718 | need_version=no |
| 13719 | need_lib_prefix=no |
| 13720 | ;; |
| 13721 | freebsd-*) |
| 13722 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 13723 | need_version=yes |
| 13724 | ;; |
| 13725 | esac |
| 13726 | shlibpath_var=LD_LIBRARY_PATH |
| 13727 | case $host_os in |
| 13728 | freebsd2*) |
| 13729 | shlibpath_overrides_runpath=yes |
| 13730 | ;; |
| 13731 | freebsd3.[01]* | freebsdelf3.[01]*) |
| 13732 | shlibpath_overrides_runpath=yes |
| 13733 | hardcode_into_libs=yes |
| 13734 | ;; |
| 13735 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 13736 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
| 13737 | shlibpath_overrides_runpath=no |
| 13738 | hardcode_into_libs=yes |
| 13739 | ;; |
| 13740 | freebsd*) # from 4.6 on |
| 13741 | shlibpath_overrides_runpath=yes |
| 13742 | hardcode_into_libs=yes |
| 13743 | ;; |
| 13744 | esac |
| 13745 | ;; |
| 13746 | |
| 13747 | gnu*) |
| 13748 | version_type=linux |
| 13749 | need_lib_prefix=no |
| 13750 | need_version=no |
| 13751 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 13752 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13753 | shlibpath_var=LD_LIBRARY_PATH |
| 13754 | hardcode_into_libs=yes |
| 13755 | ;; |
| 13756 | |
| 13757 | hpux9* | hpux10* | hpux11*) |
| 13758 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 13759 | # link against other versions. |
| 13760 | version_type=sunos |
| 13761 | need_lib_prefix=no |
| 13762 | need_version=no |
| 13763 | case $host_cpu in |
| 13764 | ia64*) |
| 13765 | shrext_cmds='.so' |
| 13766 | hardcode_into_libs=yes |
| 13767 | dynamic_linker="$host_os dld.so" |
| 13768 | shlibpath_var=LD_LIBRARY_PATH |
| 13769 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 13770 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13771 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13772 | if testscip-shell system . . test. "X$HPUX_IA64_MODE" = X32; then |
| 13773 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/libscip-shell filesystem . . `/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib`." |
| 13774 | else |
| 13775 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64scip-shell filesystem . . `/usr/lib/hpux64 /usr/local/lib/hpux64`." |
| 13776 | fi |
| 13777 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 13778 | ;; |
| 13779 | hppa*64*) |
| 13780 | shrext_cmds='.sl' |
| 13781 | hardcode_into_libs=yes |
| 13782 | dynamic_linker="$host_os dld.sl" |
| 13783 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 13784 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 13785 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13786 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13787 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64scip-shell filesystem . . `/usr/lib/pa20_64 /usr/ccs/lib/pa20_64`." |
| 13788 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 13789 | ;; |
| 13790 | *) |
| 13791 | shrext_cmds='.sl' |
| 13792 | dynamic_linker="$host_os dld.sl" |
| 13793 | shlibpath_var=SHLIB_PATH |
| 13794 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 13795 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13796 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13797 | ;; |
| 13798 | esac |
| 13799 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 13800 | postinstall_cmds='chmod 555 $lib' |
| 13801 | ;; |
| 13802 | |
| 13803 | interix3*) |
| 13804 | version_type=linux |
| 13805 | need_lib_prefix=no |
| 13806 | need_version=no |
| 13807 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 13808 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13809 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 13810 | shlibpath_var=LD_LIBRARY_PATH |
| 13811 | shlibpath_overrides_runpath=no |
| 13812 | hardcode_into_libs=yes |
| 13813 | ;; |
| 13814 | |
| 13815 | irix5* | irix6* | nonstopux*) |
| 13816 | case $host_os in |
| 13817 | nonstopux*) version_type=nonstopux ;; |
| 13818 | *) |
| 13819 | if testscip-shell system . . test. "$lt_cv_prog_gnu_ld" = yes; then |
| 13820 | version_type=linux |
| 13821 | else |
| 13822 | version_type=irix |
| 13823 | fi ;; |
| 13824 | esac |
| 13825 | need_lib_prefix=no |
| 13826 | need_version=no |
| 13827 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13828 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 13829 | case $host_os in |
| 13830 | irix5* | nonstopux*) |
| 13831 | libsuff= shlibsuff= |
| 13832 | ;; |
| 13833 | *) |
| 13834 | case $LD in # libtool.m4 will add one of these switches to LD |
| 13835 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 13836 | libsuff= shlibsuff= libmagic=32-bit;; |
| 13837 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 13838 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 13839 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 13840 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 13841 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 13842 | esac |
| 13843 | ;; |
| 13844 | esac |
| 13845 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 13846 | shlibpath_overrides_runpath=no |
| 13847 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 13848 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 13849 | hardcode_into_libs=yes |
| 13850 | ;; |
| 13851 | |
| 13852 | # No shared lib support for Linux oldld, aout, or coff. |
| 13853 | linux*oldld* | linux*aout* | linux*coff*) |
| 13854 | dynamic_linker=no |
| 13855 | ;; |
| 13856 | |
| 13857 | # This must be Linux ELF. |
| 13858 | linux*) |
| 13859 | version_type=linux |
| 13860 | need_lib_prefix=no |
| 13861 | need_version=no |
| 13862 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13863 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13864 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 13865 | shlibpath_var=LD_LIBRARY_PATH |
| 13866 | shlibpath_overrides_runpath=no |
| 13867 | # This implies no fast_install, which is unacceptable. |
| 13868 | # Some rework will be needed to allow for fast_install |
| 13869 | # before this can be enabled. |
| 13870 | hardcode_into_libs=yes |
| 13871 | |
| 13872 | # Append ld.so.conf contents to the search path |
| 13873 | if testscip-shell system . . test. -f /etc/ld.so.confscip-shell filesystem . . `/etc/ld.so.conf`.; then |
| 13874 | lt_ld_extra=`awkscip-shell system . . awk. '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }scip-shell filesystem . . `/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }`.' < /etc/ld.so.confscip-shell filesystem . . `/etc/ld.so.conf`. | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | trscip-shell system . . tr. '\n' ' '` |
| 13875 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 13876 | fi |
| 13877 | |
| 13878 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 13879 | # powerpc, because MkLinux only supported shared libraries with the |
| 13880 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 13881 | # most powerpc-linux boxes support dynamic linking these days and |
| 13882 | # people can always --disable-shared, the test was removed, and we |
| 13883 | # assume the GNU/Linux dynamic linker is in use. |
| 13884 | dynamic_linker='GNU/Linux ld.so' |
| 13885 | ;; |
| 13886 | |
| 13887 | knetbsd*-gnu) |
| 13888 | version_type=linux |
| 13889 | need_lib_prefix=no |
| 13890 | need_version=no |
| 13891 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 13892 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13893 | shlibpath_var=LD_LIBRARY_PATH |
| 13894 | shlibpath_overrides_runpath=no |
| 13895 | hardcode_into_libs=yes |
| 13896 | dynamic_linker='GNU ld.so' |
| 13897 | ;; |
| 13898 | |
| 13899 | netbsd*) |
| 13900 | version_type=sunos |
| 13901 | need_lib_prefix=no |
| 13902 | need_version=no |
| 13903 | if echoscip-shell system . . echo. __ELF__ | $CC -E - | grepscip-shell system . . grep. __ELF__ >/dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 13904 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 13905 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 13906 | dynamic_linker='NetBSD (a.out) ld.so' |
| 13907 | else |
| 13908 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 13909 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13910 | dynamic_linker='NetBSD ld.elf_so' |
| 13911 | fi |
| 13912 | shlibpath_var=LD_LIBRARY_PATH |
| 13913 | shlibpath_overrides_runpath=yes |
| 13914 | hardcode_into_libs=yes |
| 13915 | ;; |
| 13916 | |
| 13917 | newsos6) |
| 13918 | version_type=linux |
| 13919 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13920 | shlibpath_var=LD_LIBRARY_PATH |
| 13921 | shlibpath_overrides_runpath=yes |
| 13922 | ;; |
| 13923 | |
| 13924 | nto-qnx*) |
| 13925 | version_type=linux |
| 13926 | need_lib_prefix=no |
| 13927 | need_version=no |
| 13928 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13929 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13930 | shlibpath_var=LD_LIBRARY_PATH |
| 13931 | shlibpath_overrides_runpath=yes |
| 13932 | ;; |
| 13933 | |
| 13934 | openbsd*) |
| 13935 | version_type=sunos |
| 13936 | sys_lib_dlsearch_path_spec="/usr/libscip-shell filesystem . . `/usr/lib`." |
| 13937 | need_lib_prefix=no |
| 13938 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 13939 | case $host_os in |
| 13940 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 13941 | *) need_version=no ;; |
| 13942 | esac |
| 13943 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 13944 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 13945 | shlibpath_var=LD_LIBRARY_PATH |
| 13946 | if testscip-shell system . . test. -z "`echoscip-shell system . . echo. __ELF__ | $CC -E - | grepscip-shell system . . grep. __ELF__`" || testscip-shell system . . test. "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 13947 | case $host_os in |
| 13948 | openbsd2.[89] | openbsd2.[89].*) |
| 13949 | shlibpath_overrides_runpath=no |
| 13950 | ;; |
| 13951 | *) |
| 13952 | shlibpath_overrides_runpath=yes |
| 13953 | ;; |
| 13954 | esac |
| 13955 | else |
| 13956 | shlibpath_overrides_runpath=yes |
| 13957 | fi |
| 13958 | ;; |
| 13959 | |
| 13960 | os2*) |
| 13961 | libname_spec='$name' |
| 13962 | shrext_cmds=".dll" |
| 13963 | need_lib_prefix=no |
| 13964 | library_names_spec='$libname${shared_ext} $libname.a' |
| 13965 | dynamic_linker='OS/2 ld.exe' |
| 13966 | shlibpath_var=LIBPATH |
| 13967 | ;; |
| 13968 | |
| 13969 | osf3* | osf4* | osf5*) |
| 13970 | version_type=osf |
| 13971 | need_lib_prefix=no |
| 13972 | need_version=no |
| 13973 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13974 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13975 | shlibpath_var=LD_LIBRARY_PATH |
| 13976 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlibscip-shell filesystem . . `/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib`." |
| 13977 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 13978 | ;; |
| 13979 | |
| 13980 | solaris*) |
| 13981 | version_type=linux |
| 13982 | need_lib_prefix=no |
| 13983 | need_version=no |
| 13984 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13985 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13986 | shlibpath_var=LD_LIBRARY_PATH |
| 13987 | shlibpath_overrides_runpath=yes |
| 13988 | hardcode_into_libs=yes |
| 13989 | # ldd complains unless libraries are executable |
| 13990 | postinstall_cmds='chmod +x $lib' |
| 13991 | ;; |
| 13992 | |
| 13993 | sunos4*) |
| 13994 | version_type=sunos |
| 13995 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 13996 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 13997 | shlibpath_var=LD_LIBRARY_PATH |
| 13998 | shlibpath_overrides_runpath=yes |
| 13999 | if testscip-shell system . . test. "$with_gnu_ld" = yes; then |
| 14000 | need_lib_prefix=no |
| 14001 | fi |
| 14002 | need_version=yes |
| 14003 | ;; |
| 14004 | |
| 14005 | sysv4 | sysv4.3*) |
| 14006 | version_type=linux |
| 14007 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14008 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14009 | shlibpath_var=LD_LIBRARY_PATH |
| 14010 | case $host_vendor in |
| 14011 | sni) |
| 14012 | shlibpath_overrides_runpath=no |
| 14013 | need_lib_prefix=no |
| 14014 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 14015 | runpath_var=LD_RUN_PATH |
| 14016 | ;; |
| 14017 | siemens) |
| 14018 | need_lib_prefix=no |
| 14019 | ;; |
| 14020 | motorola) |
| 14021 | need_lib_prefix=no |
| 14022 | need_version=no |
| 14023 | shlibpath_overrides_runpath=no |
| 14024 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/libscip-shell filesystem . . `/lib /usr/lib /usr/ccs/lib`.' |
| 14025 | ;; |
| 14026 | esac |
| 14027 | ;; |
| 14028 | |
| 14029 | sysv4*MP*) |
| 14030 | if testscip-shell system . . test. -d /usr/necscip-shell filesystem . . `/usr/nec`. ;then |
| 14031 | version_type=linux |
| 14032 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 14033 | soname_spec='$libname${shared_ext}.$major' |
| 14034 | shlibpath_var=LD_LIBRARY_PATH |
| 14035 | fi |
| 14036 | ;; |
| 14037 | |
| 14038 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 14039 | version_type=freebsd-elf |
| 14040 | need_lib_prefix=no |
| 14041 | need_version=no |
| 14042 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 14043 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14044 | shlibpath_var=LD_LIBRARY_PATH |
| 14045 | hardcode_into_libs=yes |
| 14046 | if testscip-shell system . . test. "$with_gnu_ld" = yes; then |
| 14047 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /libscip-shell filesystem . . `/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib`.' |
| 14048 | shlibpath_overrides_runpath=no |
| 14049 | else |
| 14050 | sys_lib_search_path_spec='/usr/ccs/lib /usr/libscip-shell filesystem . . `/usr/ccs/lib /usr/lib`.' |
| 14051 | shlibpath_overrides_runpath=yes |
| 14052 | case $host_os in |
| 14053 | sco3.2v5*) |
| 14054 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 14055 | ;; |
| 14056 | esac |
| 14057 | fi |
| 14058 | sys_lib_dlsearch_path_spec='/usr/libscip-shell filesystem . . `/usr/lib`.' |
| 14059 | ;; |
| 14060 | |
| 14061 | uts4*) |
| 14062 | version_type=linux |
| 14063 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14064 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14065 | shlibpath_var=LD_LIBRARY_PATH |
| 14066 | ;; |
| 14067 | |
| 14068 | *) |
| 14069 | dynamic_linker=no |
| 14070 | ;; |
| 14071 | esac |
| 14072 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 14073 | echoscip-shell system . . echo. "${ECHO_T}$dynamic_linker" >&6 |
| 14074 | testscip-shell system . . test. "$dynamic_linker" = no && can_build_shared=no |
| 14075 | |
| 14076 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 14077 | if testscip-shell system . . test. "$GCC" = yes; then |
| 14078 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 14079 | fi |
| 14080 | |
| 14081 | echoscip-shell system . . echo. "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 14082 | echoscip-shell system . . echo. $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 14083 | hardcode_action_CXX= |
| 14084 | if testscip-shell system . . test. -n "$hardcode_libdir_flag_spec_CXX" || \ |
| 14085 | test -n "$runpath_var_CXX" || \ |
| 14086 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
| 14087 | |
| 14088 | # We can hardcode non-existant directories. |
| 14089 | if testscip-shell system . . test. "$hardcode_direct_CXX" != no && |
| 14090 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 14091 | # have to relink, otherwise we might link with an installed library |
| 14092 | # when we should be linking with a yet-to-be-installed one |
| 14093 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
| 14094 | testscip-shell system . . test. "$hardcode_minus_L_CXX" != no; then |
| 14095 | # Linking always hardcodes the temporary library directory. |
| 14096 | hardcode_action_CXX=relink |
| 14097 | else |
| 14098 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 14099 | hardcode_action_CXX=immediate |
| 14100 | fi |
| 14101 | else |
| 14102 | # We cannot hardcode anything, or else we can only hardcode existing |
| 14103 | # directories. |
| 14104 | hardcode_action_CXX=unsupported |
| 14105 | fi |
| 14106 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
| 14107 | echoscip-shell system . . echo. "${ECHO_T}$hardcode_action_CXX" >&6 |
| 14108 | |
| 14109 | if testscip-shell system . . test. "$hardcode_action_CXX" = relink; then |
| 14110 | # Fast installation is not supported |
| 14111 | enable_fast_install=no |
| 14112 | elif testscip-shell system . . test. "$shlibpath_overrides_runpath" = yes || |
| 14113 | testscip-shell system . . test. "$enable_shared" = no; then |
| 14114 | # Fast installation is not necessary |
| 14115 | enable_fast_install=needless |
| 14116 | fi |
| 14117 | |
| 14118 | |
| 14119 | # The else clause should only fire when bootstrapping the |
| 14120 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 14121 | # with your package, and you will get complaints that there are |
| 14122 | # no rules to generate ltmain.sh. |
| 14123 | if testscip-shell system . . test. -f "$ltmain"; then |
| 14124 | # See if we are running on zsh, and set the options which allow our commands through |
| 14125 | # without removal of \ escapes. |
| 14126 | if testscip-shell system . . test. -n "${ZSH_VERSION+set}" ; then |
| 14127 | setopt NO_GLOB_SUBST |
| 14128 | fi |
| 14129 | # Now quote all the things that may contain metacharacters while being |
| 14130 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 14131 | # variables and quote the copies for generation of the libtool script. |
| 14132 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
| 14133 | SED SHELL STRIP \ |
| 14134 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 14135 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 14136 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 14137 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 14138 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 14139 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 14140 | old_postinstall_cmds old_postuninstall_cmds \ |
| 14141 | compiler_CXX \ |
| 14142 | CC_CXX \ |
| 14143 | LD_CXX \ |
| 14144 | lt_prog_compiler_wl_CXX \ |
| 14145 | lt_prog_compiler_pic_CXX \ |
| 14146 | lt_prog_compiler_static_CXX \ |
| 14147 | lt_prog_compiler_no_builtin_flag_CXX \ |
| 14148 | export_dynamic_flag_spec_CXX \ |
| 14149 | thread_safe_flag_spec_CXX \ |
| 14150 | whole_archive_flag_spec_CXX \ |
| 14151 | enable_shared_with_static_runtimes_CXX \ |
| 14152 | old_archive_cmds_CXX \ |
| 14153 | old_archive_from_new_cmds_CXX \ |
| 14154 | predep_objects_CXX \ |
| 14155 | postdep_objects_CXX \ |
| 14156 | predeps_CXX \ |
| 14157 | postdeps_CXX \ |
| 14158 | compiler_lib_search_path_CXX \ |
| 14159 | archive_cmds_CXX \ |
| 14160 | archive_expsym_cmds_CXX \ |
| 14161 | postinstall_cmds_CXX \ |
| 14162 | postuninstall_cmds_CXX \ |
| 14163 | old_archive_from_expsyms_cmds_CXX \ |
| 14164 | allow_undefined_flag_CXX \ |
| 14165 | no_undefined_flag_CXX \ |
| 14166 | export_symbols_cmds_CXX \ |
| 14167 | hardcode_libdir_flag_spec_CXX \ |
| 14168 | hardcode_libdir_flag_spec_ld_CXX \ |
| 14169 | hardcode_libdir_separator_CXX \ |
| 14170 | hardcode_automatic_CXX \ |
| 14171 | module_cmds_CXX \ |
| 14172 | module_expsym_cmds_CXX \ |
| 14173 | lt_cv_prog_compiler_c_o_CXX \ |
| 14174 | exclude_expsyms_CXX \ |
| 14175 | include_expsyms_CXX; do |
| 14176 | |
| 14177 | case $var in |
| 14178 | old_archive_cmds_CXX | \ |
| 14179 | old_archive_from_new_cmds_CXX | \ |
| 14180 | archive_cmds_CXX | \ |
| 14181 | archive_expsym_cmds_CXX | \ |
| 14182 | module_cmds_CXX | \ |
| 14183 | module_expsym_cmds_CXX | \ |
| 14184 | old_archive_from_expsyms_cmds_CXX | \ |
| 14185 | export_symbols_cmds_CXX | \ |
| 14186 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 14187 | postinstall_cmds | postuninstall_cmds | \ |
| 14188 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 14189 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 14190 | # Double-quote double-evaled strings. |
| 14191 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 14192 | ;; |
| 14193 | *) |
| 14194 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 14195 | ;; |
| 14196 | esac |
| 14197 | done |
| 14198 | |
| 14199 | case $lt_echo in |
| 14200 | *'\$0 --fallback-echo"') |
| 14201 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 14202 | ;; |
| 14203 | esac |
| 14204 | |
| 14205 | cfgfile="$ofile" |
| 14206 | |
| 14207 | catscip-shell system . . cat. <<__EOF__ >> "$cfgfile" |
| 14208 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 14209 | |
| 14210 | # Libtool was configured on host `(hostnamescip-shell system . . hostname. || unamescip-shell system . . uname. -n) 2>/dev/nullscip-shell filesystem . . `/dev/null`. | sedscip-shell system . . sed. 1q`: |
| 14211 | |
| 14212 | # Shell to use when invoking shell scripts. |
| 14213 | SHELL=$lt_SHELL |
| 14214 | |
| 14215 | # Whether or not to build shared libraries. |
| 14216 | build_libtool_libs=$enable_shared |
| 14217 | |
| 14218 | # Whether or not to build static libraries. |
| 14219 | build_old_libs=$enable_static |
| 14220 | |
| 14221 | # Whether or not to add -lc for building shared libraries. |
| 14222 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
| 14223 | |
| 14224 | # Whether or not to disallow shared libs when runtime libs are static |
| 14225 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
| 14226 | |
| 14227 | # Whether or not to optimize for fast installation. |
| 14228 | fast_install=$enable_fast_install |
| 14229 | |
| 14230 | # The host system. |
| 14231 | host_alias=$host_alias |
| 14232 | host=$host |
| 14233 | host_os=$host_os |
| 14234 | |
| 14235 | # The build system. |
| 14236 | build_alias=$build_alias |
| 14237 | build=$build |
| 14238 | build_os=$build_os |
| 14239 | |
| 14240 | # An echo program that does not interpret backslashes. |
| 14241 | echo=$lt_echo |
| 14242 | |
| 14243 | # The archiver. |
| 14244 | AR=$lt_AR |
| 14245 | AR_FLAGS=$lt_AR_FLAGS |
| 14246 | |
| 14247 | # A C compiler. |
| 14248 | LTCC=$lt_LTCC |
| 14249 | |
| 14250 | # LTCC compiler flags. |
| 14251 | LTCFLAGS=$lt_LTCFLAGS |
| 14252 | |
| 14253 | # A language-specific compiler. |
| 14254 | CC=$lt_compiler_CXX |
| 14255 | |
| 14256 | # Is the compiler the GNU C compiler? |
| 14257 | with_gcc=$GCC_CXX |
| 14258 | |
| 14259 | # An ERE matcher. |
| 14260 | EGREP=$lt_EGREP |
| 14261 | |
| 14262 | # The linker used to build libraries. |
| 14263 | LD=$lt_LD_CXX |
| 14264 | |
| 14265 | # Whether we need hard or soft links. |
| 14266 | LN_S=$lt_LN_S |
| 14267 | |
| 14268 | # A BSD-compatible nm program. |
| 14269 | NM=$lt_NM |
| 14270 | |
| 14271 | # A symbol stripping program |
| 14272 | STRIP=$lt_STRIP |
| 14273 | |
| 14274 | # Used to examine libraries when file_magic_cmd begins "file" |
| 14275 | MAGIC_CMD=$MAGIC_CMD |
| 14276 | |
| 14277 | # Used on cygwin: DLL creation program. |
| 14278 | DLLTOOL="$DLLTOOL" |
| 14279 | |
| 14280 | # Used on cygwin: object dumper. |
| 14281 | OBJDUMP="$OBJDUMP" |
| 14282 | |
| 14283 | # Used on cygwin: assembler. |
| 14284 | AS="$AS" |
| 14285 | |
| 14286 | # The name of the directory that contains temporary libtool files. |
| 14287 | objdir=$objdir |
| 14288 | |
| 14289 | # How to create reloadable object files. |
| 14290 | reload_flag=$lt_reload_flag |
| 14291 | reload_cmds=$lt_reload_cmds |
| 14292 | |
| 14293 | # How to pass a linker flag through the compiler. |
| 14294 | wl=$lt_lt_prog_compiler_wl_CXX |
| 14295 | |
| 14296 | # Object file suffix (normally "o"). |
| 14297 | objext="$ac_objext" |
| 14298 | |
| 14299 | # Old archive suffix (normally "a"). |
| 14300 | libext="$libext" |
| 14301 | |
| 14302 | # Shared library suffix (normally ".so"). |
| 14303 | shrext_cmds='$shrext_cmds' |
| 14304 | |
| 14305 | # Executable file suffix (normally ""). |
| 14306 | exeext="$exeext" |
| 14307 | |
| 14308 | # Additional compiler flags for building library objects. |
| 14309 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
| 14310 | pic_mode=$pic_mode |
| 14311 | |
| 14312 | # What is the maximum length of a command? |
| 14313 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 14314 | |
| 14315 | # Does compiler simultaneously support -c and -o options? |
| 14316 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
| 14317 | |
| 14318 | # Must we lock files when doing compilation? |
| 14319 | need_locks=$lt_need_locks |
| 14320 | |
| 14321 | # Do we need the lib prefix for modules? |
| 14322 | need_lib_prefix=$need_lib_prefix |
| 14323 | |
| 14324 | # Do we need a version for libraries? |
| 14325 | need_version=$need_version |
| 14326 | |
| 14327 | # Whether dlopen is supported. |
| 14328 | dlopen_support=$enable_dlopen |
| 14329 | |
| 14330 | # Whether dlopen of programs is supported. |
| 14331 | dlopen_self=$enable_dlopen_self |
| 14332 | |
| 14333 | # Whether dlopen of statically linked programs is supported. |
| 14334 | dlopen_self_static=$enable_dlopen_self_static |
| 14335 | |
| 14336 | # Compiler flag to prevent dynamic linking. |
| 14337 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
| 14338 | |
| 14339 | # Compiler flag to turn off builtin functions. |
| 14340 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
| 14341 | |
| 14342 | # Compiler flag to allow reflexive dlopens. |
| 14343 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
| 14344 | |
| 14345 | # Compiler flag to generate shared objects directly from archives. |
| 14346 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
| 14347 | |
| 14348 | # Compiler flag to generate thread-safe objects. |
| 14349 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
| 14350 | |
| 14351 | # Library versioning type. |
| 14352 | version_type=$version_type |
| 14353 | |
| 14354 | # Format of library name prefix. |
| 14355 | libname_spec=$lt_libname_spec |
| 14356 | |
| 14357 | # List of archive names. First name is the real one, the rest are links. |
| 14358 | # The last name is the one that the linker finds with -lNAME. |
| 14359 | library_names_spec=$lt_library_names_spec |
| 14360 | |
| 14361 | # The coded name of the library, if different from the real name. |
| 14362 | soname_spec=$lt_soname_spec |
| 14363 | |
| 14364 | # Commands used to build and install an old-style archive. |
| 14365 | RANLIB=$lt_RANLIB |
| 14366 | old_archive_cmds=$lt_old_archive_cmds_CXX |
| 14367 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 14368 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 14369 | |
| 14370 | # Create an old-style archive from a shared archive. |
| 14371 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
| 14372 | |
| 14373 | # Create a temporary old-style archive to link instead of a shared archive. |
| 14374 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
| 14375 | |
| 14376 | # Commands used to build and install a shared archive. |
| 14377 | archive_cmds=$lt_archive_cmds_CXX |
| 14378 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
| 14379 | postinstall_cmds=$lt_postinstall_cmds |
| 14380 | postuninstall_cmds=$lt_postuninstall_cmds |
| 14381 | |
| 14382 | # Commands used to build a loadable module (assumed same as above if empty) |
| 14383 | module_cmds=$lt_module_cmds_CXX |
| 14384 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
| 14385 | |
| 14386 | # Commands to strip libraries. |
| 14387 | old_striplib=$lt_old_striplib |
| 14388 | striplib=$lt_striplib |
| 14389 | |
| 14390 | # Dependencies to place before the objects being linked to create a |
| 14391 | # shared library. |
| 14392 | predep_objects=$lt_predep_objects_CXX |
| 14393 | |
| 14394 | # Dependencies to place after the objects being linked to create a |
| 14395 | # shared library. |
| 14396 | postdep_objects=$lt_postdep_objects_CXX |
| 14397 | |
| 14398 | # Dependencies to place before the objects being linked to create a |
| 14399 | # shared library. |
| 14400 | predeps=$lt_predeps_CXX |
| 14401 | |
| 14402 | # Dependencies to place after the objects being linked to create a |
| 14403 | # shared library. |
| 14404 | postdeps=$lt_postdeps_CXX |
| 14405 | |
| 14406 | # The library search path used internally by the compiler when linking |
| 14407 | # a shared library. |
| 14408 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
| 14409 | |
| 14410 | # Method to check whether dependent libraries are shared objects. |
| 14411 | deplibs_check_method=$lt_deplibs_check_method |
| 14412 | |
| 14413 | # Command to use when deplibs_check_method == file_magic. |
| 14414 | file_magic_cmd=$lt_file_magic_cmd |
| 14415 | |
| 14416 | # Flag that allows shared libraries with undefined symbols to be built. |
| 14417 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
| 14418 | |
| 14419 | # Flag that forces no undefined symbols. |
| 14420 | no_undefined_flag=$lt_no_undefined_flag_CXX |
| 14421 | |
| 14422 | # Commands used to finish a libtool library installation in a directory. |
| 14423 | finish_cmds=$lt_finish_cmds |
| 14424 | |
| 14425 | # Same as above, but a single script fragment to be evaled but not shown. |
| 14426 | finish_eval=$lt_finish_eval |
| 14427 | |
| 14428 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 14429 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 14430 | |
| 14431 | # Transform the output of nm in a proper C declaration |
| 14432 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 14433 | |
| 14434 | # Transform the output of nm in a C name address pair |
| 14435 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 14436 | |
| 14437 | # This is the shared library runtime path variable. |
| 14438 | runpath_var=$runpath_var |
| 14439 | |
| 14440 | # This is the shared library path variable. |
| 14441 | shlibpath_var=$shlibpath_var |
| 14442 | |
| 14443 | # Is shlibpath searched before the hard-coded library search path? |
| 14444 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 14445 | |
| 14446 | # How to hardcode a shared library path into an executable. |
| 14447 | hardcode_action=$hardcode_action_CXX |
| 14448 | |
| 14449 | # Whether we should hardcode library paths into libraries. |
| 14450 | hardcode_into_libs=$hardcode_into_libs |
| 14451 | |
| 14452 | # Flag to hardcode \$libdir into a binary during linking. |
| 14453 | # This must work even if \$libdir does not exist. |
| 14454 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
| 14455 | |
| 14456 | # If ld is used when linking, flag to hardcode \$libdir into |
| 14457 | # a binary during linking. This must work even if \$libdir does |
| 14458 | # not exist. |
| 14459 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
| 14460 | |
| 14461 | # Whether we need a single -rpath flag with a separated argument. |
| 14462 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
| 14463 | |
| 14464 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 14465 | # resulting binary. |
| 14466 | hardcode_direct=$hardcode_direct_CXX |
| 14467 | |
| 14468 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 14469 | # resulting binary. |
| 14470 | hardcode_minus_L=$hardcode_minus_L_CXX |
| 14471 | |
| 14472 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 14473 | # the resulting binary. |
| 14474 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
| 14475 | |
| 14476 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 14477 | # and all subsequent libraries and executables linked against it. |
| 14478 | hardcode_automatic=$hardcode_automatic_CXX |
| 14479 | |
| 14480 | # Variables whose values should be saved in libtool wrapper scripts and |
| 14481 | # restored at relink time. |
| 14482 | variables_saved_for_relink="$variables_saved_for_relink" |
| 14483 | |
| 14484 | # Whether libtool must link a program against all its dependency libraries. |
| 14485 | link_all_deplibs=$link_all_deplibs_CXX |
| 14486 | |
| 14487 | # Compile-time system search path for libraries |
| 14488 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 14489 | |
| 14490 | # Run-time system search path for libraries |
| 14491 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 14492 | |
| 14493 | # Fix the shell variable \$srcfile for the compiler. |
| 14494 | fix_srcfile_path="$fix_srcfile_path_CXX" |
| 14495 | |
| 14496 | # Set to yes if exported symbols are required. |
| 14497 | always_export_symbols=$always_export_symbols_CXX |
| 14498 | |
| 14499 | # The commands to list exported symbols. |
| 14500 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
| 14501 | |
| 14502 | # The commands to extract the exported symbol list from a shared archive. |
| 14503 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 14504 | |
| 14505 | # Symbols that should not be listed in the preloaded symbols. |
| 14506 | exclude_expsyms=$lt_exclude_expsyms_CXX |
| 14507 | |
| 14508 | # Symbols that must always be exported. |
| 14509 | include_expsyms=$lt_include_expsyms_CXX |
| 14510 | |
| 14511 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 14512 | |
| 14513 | __EOF__ |
| 14514 | |
| 14515 | |
| 14516 | else |
| 14517 | # If there is no Makefile yet, we rely on a make rule to execute |
| 14518 | # `config.status --recheck' to rerun these tests and create the |
| 14519 | # libtool script then. |
| 14520 | ltmain_in=`echoscip-shell system . . echo. $ltmain | sedscip-shell system . . sed. -e 's/\.sh$/.in/'` |
| 14521 | if testscip-shell system . . test. -f "$ltmain_in"; then |
| 14522 | testscip-shell system . . test. -f Makefile && makescip-shell system . . make. "$ltmain" |
| 14523 | fi |
| 14524 | fi |
| 14525 | |
| 14526 | |
| 14527 | ac_ext=c |
| 14528 | ac_cpp='$CPP $CPPFLAGS' |
| 14529 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14530 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14531 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14532 | |
| 14533 | CC=$lt_save_CC |
| 14534 | LDCXX=$LD |
| 14535 | LD=$lt_save_LD |
| 14536 | GCC=$lt_save_GCC |
| 14537 | with_gnu_ldcxx=$with_gnu_ld |
| 14538 | with_gnu_ld=$lt_save_with_gnu_ld |
| 14539 | lt_cv_path_LDCXX=$lt_cv_path_LD |
| 14540 | lt_cv_path_LD=$lt_save_path_LD |
| 14541 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
| 14542 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
| 14543 | |
| 14544 | else |
| 14545 | tagname="" |
| 14546 | fi |
| 14547 | ;; |
| 14548 | |
| 14549 | F77) |
| 14550 | if testscip-shell system . . test. -n "$F77" && testscip-shell system . . test. "X$F77" != "Xno"; then |
| 14551 | |
| 14552 | ac_ext=f |
| 14553 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 14554 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14555 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 14556 | |
| 14557 | |
| 14558 | archive_cmds_need_lc_F77=no |
| 14559 | allow_undefined_flag_F77= |
| 14560 | always_export_symbols_F77=no |
| 14561 | archive_expsym_cmds_F77= |
| 14562 | export_dynamic_flag_spec_F77= |
| 14563 | hardcode_direct_F77=no |
| 14564 | hardcode_libdir_flag_spec_F77= |
| 14565 | hardcode_libdir_flag_spec_ld_F77= |
| 14566 | hardcode_libdir_separator_F77= |
| 14567 | hardcode_minus_L_F77=no |
| 14568 | hardcode_automatic_F77=no |
| 14569 | module_cmds_F77= |
| 14570 | module_expsym_cmds_F77= |
| 14571 | link_all_deplibs_F77=unknown |
| 14572 | old_archive_cmds_F77=$old_archive_cmds |
| 14573 | no_undefined_flag_F77= |
| 14574 | whole_archive_flag_spec_F77= |
| 14575 | enable_shared_with_static_runtimes_F77=no |
| 14576 | |
| 14577 | # Source file extension for f77 test sources. |
| 14578 | ac_ext=f |
| 14579 | |
| 14580 | # Object file extension for compiled f77 test sources. |
| 14581 | objext=o |
| 14582 | objext_F77=$objext |
| 14583 | |
| 14584 | # Code to be used in simple compile tests |
| 14585 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
| 14586 | |
| 14587 | # Code to be used in simple link tests |
| 14588 | lt_simple_link_test_code=" program t\n end\n" |
| 14589 | |
| 14590 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 14591 | |
| 14592 | # If no C compiler was specified, use CC. |
| 14593 | LTCC=${LTCC-"$CC"} |
| 14594 | |
| 14595 | # If no C compiler flags were specified, use CFLAGS. |
| 14596 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 14597 | |
| 14598 | # Allow CC to be a program name with arguments. |
| 14599 | compiler=$CC |
| 14600 | |
| 14601 | |
| 14602 | # save warnings/boilerplate of simple test code |
| 14603 | ac_outfile=conftest.$ac_objext |
| 14604 | printfscip-shell system . . printf. "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 14605 | eval "$ac_compile" 2>&1 >/dev/nullscip-shell filesystem . . `/dev/null`. | $SED '/^$/d; /^ *+/dscip-shell filesystem . . `/^$/d; /^ *+/d`.' >conftest.err |
| 14606 | _lt_compiler_boilerplate=`catscip-shell system . . cat. conftest.err` |
| 14607 | $rm conftest* |
| 14608 | |
| 14609 | ac_outfile=conftest.$ac_objext |
| 14610 | printfscip-shell system . . printf. "$lt_simple_link_test_code" >conftest.$ac_ext |
| 14611 | eval "$ac_link" 2>&1 >/dev/nullscip-shell filesystem . . `/dev/null`. | $SED '/^$/d; /^ *+/dscip-shell filesystem . . `/^$/d; /^ *+/d`.' >conftest.err |
| 14612 | _lt_linker_boilerplate=`catscip-shell system . . cat. conftest.err` |
| 14613 | $rm conftest* |
| 14614 | |
| 14615 | |
| 14616 | # Allow CC to be a program name with arguments. |
| 14617 | lt_save_CC="$CC" |
| 14618 | CC=${F77-"f77"} |
| 14619 | compiler=$CC |
| 14620 | compiler_F77=$CC |
| 14621 | for cc_temp in $compiler""; do |
| 14622 | case $cc_temp in |
| 14623 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 14624 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 14625 | \-*) ;; |
| 14626 | *) break;; |
| 14627 | esac |
| 14628 | done |
| 14629 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 14630 | |
| 14631 | |
| 14632 | echoscip-shell system . . echo. "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 14633 | echoscip-shell system . . echo. $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
| 14634 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 14635 | echoscip-shell system . . echo. "${ECHO_T}$can_build_shared" >&6 |
| 14636 | |
| 14637 | echoscip-shell system . . echo. "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 14638 | echoscip-shell system . . echo. $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
| 14639 | testscip-shell system . . test. "$can_build_shared" = "no" && enable_shared=no |
| 14640 | |
| 14641 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 14642 | # are all built from PIC. |
| 14643 | case $host_os in |
| 14644 | aix3*) |
| 14645 | testscip-shell system . . test. "$enable_shared" = yes && enable_static=no |
| 14646 | if testscip-shell system . . test. -n "$RANLIB"; then |
| 14647 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 14648 | postinstall_cmds='$RANLIB $lib' |
| 14649 | fi |
| 14650 | ;; |
| 14651 | aix4* | aix5*) |
| 14652 | if testscip-shell system . . test. "$host_cpu" != ia64 && testscip-shell system . . test. "$aix_use_runtimelinking" = no ; then |
| 14653 | testscip-shell system . . test. "$enable_shared" = yes && enable_static=no |
| 14654 | fi |
| 14655 | ;; |
| 14656 | esac |
| 14657 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $enable_shared" >&5 |
| 14658 | echoscip-shell system . . echo. "${ECHO_T}$enable_shared" >&6 |
| 14659 | |
| 14660 | echoscip-shell system . . echo. "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 14661 | echoscip-shell system . . echo. $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
| 14662 | # Make sure either enable_shared or enable_static is yes. |
| 14663 | testscip-shell system . . test. "$enable_shared" = yes || enable_static=yes |
| 14664 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $enable_static" >&5 |
| 14665 | echoscip-shell system . . echo. "${ECHO_T}$enable_static" >&6 |
| 14666 | |
| 14667 | GCC_F77="$G77" |
| 14668 | LD_F77="$LD" |
| 14669 | |
| 14670 | lt_prog_compiler_wl_F77= |
| 14671 | lt_prog_compiler_pic_F77= |
| 14672 | lt_prog_compiler_static_F77= |
| 14673 | |
| 14674 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 14675 | echoscip-shell system . . echo. $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
| 14676 | |
| 14677 | if testscip-shell system . . test. "$GCC" = yes; then |
| 14678 | lt_prog_compiler_wl_F77='-Wl,' |
| 14679 | lt_prog_compiler_static_F77='-static' |
| 14680 | |
| 14681 | case $host_os in |
| 14682 | aix*) |
| 14683 | # All AIX code is PIC. |
| 14684 | if testscip-shell system . . test. "$host_cpu" = ia64; then |
| 14685 | # AIX 5 now supports IA64 processor |
| 14686 | lt_prog_compiler_static_F77='-Bstatic' |
| 14687 | fi |
| 14688 | ;; |
| 14689 | |
| 14690 | amigaos*) |
| 14691 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 14692 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 14693 | # like `-m68040'. |
| 14694 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
| 14695 | ;; |
| 14696 | |
| 14697 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 14698 | # PIC is the default for these OSes. |
| 14699 | ;; |
| 14700 | |
| 14701 | mingw* | pw32* | os2*) |
| 14702 | # This hack is so that the source file can tell whether it is being |
| 14703 | # built for inclusion in a dll (and should export symbols for example). |
| 14704 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 14705 | ;; |
| 14706 | |
| 14707 | darwin* | rhapsody*) |
| 14708 | # PIC is the default on this platform |
| 14709 | # Common symbols not allowed in MH_DYLIB files |
| 14710 | lt_prog_compiler_pic_F77='-fno-common' |
| 14711 | ;; |
| 14712 | |
| 14713 | interix3*) |
| 14714 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 14715 | # Instead, we relocate shared libraries at runtime. |
| 14716 | ;; |
| 14717 | |
| 14718 | msdosdjgpp*) |
| 14719 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 14720 | # on systems that don't support them. |
| 14721 | lt_prog_compiler_can_build_shared_F77=no |
| 14722 | enable_shared=no |
| 14723 | ;; |
| 14724 | |
| 14725 | sysv4*MP*) |
| 14726 | if testscip-shell system . . test. -d /usr/necscip-shell filesystem . . `/usr/nec`.; then |
| 14727 | lt_prog_compiler_pic_F77=-Kconform_pic |
| 14728 | fi |
| 14729 | ;; |
| 14730 | |
| 14731 | hpux*) |
| 14732 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 14733 | # not for PA HP-UX. |
| 14734 | case $host_cpu in |
| 14735 | hppa*64*|ia64*) |
| 14736 | # +Z the default |
| 14737 | ;; |
| 14738 | *) |
| 14739 | lt_prog_compiler_pic_F77='-fPIC' |
| 14740 | ;; |
| 14741 | esac |
| 14742 | ;; |
| 14743 | |
| 14744 | *) |
| 14745 | lt_prog_compiler_pic_F77='-fPIC' |
| 14746 | ;; |
| 14747 | esac |
| 14748 | else |
| 14749 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 14750 | case $host_os in |
| 14751 | aix*) |
| 14752 | lt_prog_compiler_wl_F77='-Wl,' |
| 14753 | if testscip-shell system . . test. "$host_cpu" = ia64; then |
| 14754 | # AIX 5 now supports IA64 processor |
| 14755 | lt_prog_compiler_static_F77='-Bstatic' |
| 14756 | else |
| 14757 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
| 14758 | fi |
| 14759 | ;; |
| 14760 | darwin*) |
| 14761 | # PIC is the default on this platform |
| 14762 | # Common symbols not allowed in MH_DYLIB files |
| 14763 | case $cc_basename in |
| 14764 | xlc*) |
| 14765 | lt_prog_compiler_pic_F77='-qnocommon' |
| 14766 | lt_prog_compiler_wl_F77='-Wl,' |
| 14767 | ;; |
| 14768 | esac |
| 14769 | ;; |
| 14770 | |
| 14771 | mingw* | pw32* | os2*) |
| 14772 | # This hack is so that the source file can tell whether it is being |
| 14773 | # built for inclusion in a dll (and should export symbols for example). |
| 14774 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 14775 | ;; |
| 14776 | |
| 14777 | hpux9* | hpux10* | hpux11*) |
| 14778 | lt_prog_compiler_wl_F77='-Wl,' |
| 14779 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 14780 | # not for PA HP-UX. |
| 14781 | case $host_cpu in |
| 14782 | hppa*64*|ia64*) |
| 14783 | # +Z the default |
| 14784 | ;; |
| 14785 | *) |
| 14786 | lt_prog_compiler_pic_F77='+Z' |
| 14787 | ;; |
| 14788 | esac |
| 14789 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 14790 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
| 14791 | ;; |
| 14792 | |
| 14793 | irix5* | irix6* | nonstopux*) |
| 14794 | lt_prog_compiler_wl_F77='-Wl,' |
| 14795 | # PIC (with -KPIC) is the default. |
| 14796 | lt_prog_compiler_static_F77='-non_shared' |
| 14797 | ;; |
| 14798 | |
| 14799 | newsos6) |
| 14800 | lt_prog_compiler_pic_F77='-KPIC' |
| 14801 | lt_prog_compiler_static_F77='-Bstatic' |
| 14802 | ;; |
| 14803 | |
| 14804 | linux*) |
| 14805 | case $cc_basename in |
| 14806 | icc* | ecc*) |
| 14807 | lt_prog_compiler_wl_F77='-Wl,' |
| 14808 | lt_prog_compiler_pic_F77='-KPIC' |
| 14809 | lt_prog_compiler_static_F77='-static' |
| 14810 | ;; |
| 14811 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 14812 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 14813 | # which looks to be a dead project) |
| 14814 | lt_prog_compiler_wl_F77='-Wl,' |
| 14815 | lt_prog_compiler_pic_F77='-fpic' |
| 14816 | lt_prog_compiler_static_F77='-Bstatic' |
| 14817 | ;; |
| 14818 | ccc*) |
| 14819 | lt_prog_compiler_wl_F77='-Wl,' |
| 14820 | # All Alpha code is PIC. |
| 14821 | lt_prog_compiler_static_F77='-non_shared' |
| 14822 | ;; |
| 14823 | esac |
| 14824 | ;; |
| 14825 | |
| 14826 | osf3* | osf4* | osf5*) |
| 14827 | lt_prog_compiler_wl_F77='-Wl,' |
| 14828 | # All OSF/1 code is PIC. |
| 14829 | lt_prog_compiler_static_F77='-non_shared' |
| 14830 | ;; |
| 14831 | |
| 14832 | solaris*) |
| 14833 | lt_prog_compiler_pic_F77='-KPIC' |
| 14834 | lt_prog_compiler_static_F77='-Bstatic' |
| 14835 | case $cc_basename in |
| 14836 | f77* | f90* | f95*) |
| 14837 | lt_prog_compiler_wl_F77='-Qoption ld ';; |
| 14838 | *) |
| 14839 | lt_prog_compiler_wl_F77='-Wl,';; |
| 14840 | esac |
| 14841 | ;; |
| 14842 | |
| 14843 | sunos4*) |
| 14844 | lt_prog_compiler_wl_F77='-Qoption ld ' |
| 14845 | lt_prog_compiler_pic_F77='-PIC' |
| 14846 | lt_prog_compiler_static_F77='-Bstatic' |
| 14847 | ;; |
| 14848 | |
| 14849 | sysv4 | sysv4.2uw2* | sysv4.3*) |
| 14850 | lt_prog_compiler_wl_F77='-Wl,' |
| 14851 | lt_prog_compiler_pic_F77='-KPIC' |
| 14852 | lt_prog_compiler_static_F77='-Bstatic' |
| 14853 | ;; |
| 14854 | |
| 14855 | sysv4*MP*) |
| 14856 | if testscip-shell system . . test. -d /usr/necscip-shell filesystem . . `/usr/nec`. ;then |
| 14857 | lt_prog_compiler_pic_F77='-Kconform_pic' |
| 14858 | lt_prog_compiler_static_F77='-Bstatic' |
| 14859 | fi |
| 14860 | ;; |
| 14861 | |
| 14862 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 14863 | lt_prog_compiler_wl_F77='-Wl,' |
| 14864 | lt_prog_compiler_pic_F77='-KPIC' |
| 14865 | lt_prog_compiler_static_F77='-Bstatic' |
| 14866 | ;; |
| 14867 | |
| 14868 | unicos*) |
| 14869 | lt_prog_compiler_wl_F77='-Wl,' |
| 14870 | lt_prog_compiler_can_build_shared_F77=no |
| 14871 | ;; |
| 14872 | |
| 14873 | uts4*) |
| 14874 | lt_prog_compiler_pic_F77='-pic' |
| 14875 | lt_prog_compiler_static_F77='-Bstatic' |
| 14876 | ;; |
| 14877 | |
| 14878 | *) |
| 14879 | lt_prog_compiler_can_build_shared_F77=no |
| 14880 | ;; |
| 14881 | esac |
| 14882 | fi |
| 14883 | |
| 14884 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
| 14885 | echoscip-shell system . . echo. "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 |
| 14886 | |
| 14887 | # |
| 14888 | # Check to make sure the PIC flag actually works. |
| 14889 | # |
| 14890 | if testscip-shell system . . test. -n "$lt_prog_compiler_pic_F77"; then |
| 14891 | |
| 14892 | echoscip-shell system . . echo. "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
| 14893 | echoscip-shell system . . echo. $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 |
| 14894 | if testscip-shell system . . test. "${lt_prog_compiler_pic_works_F77+set}" = set; then |
| 14895 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 14896 | else |
| 14897 | lt_prog_compiler_pic_works_F77=no |
| 14898 | ac_outfile=conftest.$ac_objext |
| 14899 | printfscip-shell system . . printf. "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14900 | lt_compiler_flag="$lt_prog_compiler_pic_F77" |
| 14901 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14902 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14903 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14904 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14905 | # The option is referenced via a variable to avoid confusing sed. |
| 14906 | lt_compile=`echoscip-shell system . . echo. "$ac_compile" | $SED \ |
| 14907 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 14908 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14909 | -e 's:$: $lt_compiler_flag:'` |
| 14910 | (eval echo "\"\$as_me:14910: $lt_compile\"" >&5) |
| 14911 | (eval "$lt_compile" 2>conftest.err) |
| 14912 | ac_status=$? |
| 14913 | catscip-shell system . . cat. conftest.err >&5 |
| 14914 | echoscip-shell system . . echo. "$as_me:14914: \$? = $ac_status" >&5 |
| 14915 | if (exit $ac_status) && testscip-shell system . . test. -s "$ac_outfile"; then |
| 14916 | # The compiler can only warn and ignore the option if not recognized |
| 14917 | # So say no if there are warnings other than the usual output. |
| 14918 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/dscip-shell filesystem . . `/^$/d`.' >conftest.exp |
| 14919 | $SED '/^$/d; /^ *+/dscip-shell filesystem . . `/^$/d; /^ *+/d`.' conftest.err >conftest.er2 |
| 14920 | if testscip-shell system . . test. ! -s conftest.er2 || diffscip-shell system . . diff. conftest.exp conftest.er2 >/dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 14921 | lt_prog_compiler_pic_works_F77=yes |
| 14922 | fi |
| 14923 | fi |
| 14924 | $rm conftest* |
| 14925 | |
| 14926 | fi |
| 14927 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
| 14928 | echoscip-shell system . . echo. "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 |
| 14929 | |
| 14930 | if testscip-shell system . . test. x"$lt_prog_compiler_pic_works_F77" = xyes; then |
| 14931 | case $lt_prog_compiler_pic_F77 in |
| 14932 | "" | " "*) ;; |
| 14933 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
| 14934 | esac |
| 14935 | else |
| 14936 | lt_prog_compiler_pic_F77= |
| 14937 | lt_prog_compiler_can_build_shared_F77=no |
| 14938 | fi |
| 14939 | |
| 14940 | fi |
| 14941 | case $host_os in |
| 14942 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 14943 | *djgpp*) |
| 14944 | lt_prog_compiler_pic_F77= |
| 14945 | ;; |
| 14946 | *) |
| 14947 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
| 14948 | ;; |
| 14949 | esac |
| 14950 | |
| 14951 | # |
| 14952 | # Check to make sure the static flag actually works. |
| 14953 | # |
| 14954 | wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" |
| 14955 | echoscip-shell system . . echo. "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 14956 | echoscip-shell system . . echo. $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 |
| 14957 | if testscip-shell system . . test. "${lt_prog_compiler_static_works_F77+set}" = set; then |
| 14958 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 14959 | else |
| 14960 | lt_prog_compiler_static_works_F77=no |
| 14961 | save_LDFLAGS="$LDFLAGS" |
| 14962 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 14963 | printfscip-shell system . . printf. "$lt_simple_link_test_code" > conftest.$ac_ext |
| 14964 | if (eval $ac_link 2>conftest.err) && testscip-shell system . . test. -s conftest$ac_exeext; then |
| 14965 | # The linker can only warn and ignore the option if not recognized |
| 14966 | # So say no if there are warnings |
| 14967 | if testscip-shell system . . test. -s conftest.err; then |
| 14968 | # Append any errors to the config.log. |
| 14969 | catscip-shell system . . cat. conftest.err 1>&5 |
| 14970 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/dscip-shell filesystem . . `/^$/d`.' > conftest.exp |
| 14971 | $SED '/^$/d; /^ *+/dscip-shell filesystem . . `/^$/d; /^ *+/d`.' conftest.err >conftest.er2 |
| 14972 | if diffscip-shell system . . diff. conftest.exp conftest.er2 >/dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 14973 | lt_prog_compiler_static_works_F77=yes |
| 14974 | fi |
| 14975 | else |
| 14976 | lt_prog_compiler_static_works_F77=yes |
| 14977 | fi |
| 14978 | fi |
| 14979 | $rm conftest* |
| 14980 | LDFLAGS="$save_LDFLAGS" |
| 14981 | |
| 14982 | fi |
| 14983 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 |
| 14984 | echoscip-shell system . . echo. "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6 |
| 14985 | |
| 14986 | if testscip-shell system . . test. x"$lt_prog_compiler_static_works_F77" = xyes; then |
| 14987 | : |
| 14988 | else |
| 14989 | lt_prog_compiler_static_F77= |
| 14990 | fi |
| 14991 | |
| 14992 | |
| 14993 | echoscip-shell system . . echo. "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 14994 | echoscip-shell system . . echo. $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
| 14995 | if testscip-shell system . . test. "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
| 14996 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 14997 | else |
| 14998 | lt_cv_prog_compiler_c_o_F77=no |
| 14999 | $rm -r conftest 2>/dev/nullscip-shell filesystem . . `/dev/null`. |
| 15000 | mkdirscip-shell system . . mkdir. conftest |
| 15001 | cd conftest |
| 15002 | mkdirscip-shell system . . mkdir. out |
| 15003 | printfscip-shell system . . printf. "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 15004 | |
| 15005 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 15006 | # Insert the option either (1) after the last *FLAGS variable, or |
| 15007 | # (2) before a word containing "conftest.", or (3) at the end. |
| 15008 | # Note that $ac_compile itself does not contain backslashes and begins |
| 15009 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 15010 | lt_compile=`echoscip-shell system . . echo. "$ac_compile" | $SED \ |
| 15011 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 15012 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 15013 | -e 's:$: $lt_compiler_flag:'` |
| 15014 | (eval echo "\"\$as_me:15014: $lt_compile\"" >&5) |
| 15015 | (eval "$lt_compile" 2>out/conftest.err) |
| 15016 | ac_status=$? |
| 15017 | catscip-shell system . . cat. out/conftest.err >&5 |
| 15018 | echoscip-shell system . . echo. "$as_me:15018: \$? = $ac_status" >&5 |
| 15019 | if (exit $ac_status) && testscip-shell system . . test. -s out/conftest2.$ac_objext |
| 15020 | then |
| 15021 | # The compiler can only warn and ignore the option if not recognized |
| 15022 | # So say no if there are warnings |
| 15023 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/dscip-shell filesystem . . `/^$/d`.' > out/conftest.exp |
| 15024 | $SED '/^$/d; /^ *+/dscip-shell filesystem . . `/^$/d; /^ *+/d`.' out/conftest.err >out/conftest.er2 |
| 15025 | if testscip-shell system . . test. ! -s out/conftest.er2 || diffscip-shell system . . diff. out/conftest.exp out/conftest.er2 >/dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 15026 | lt_cv_prog_compiler_c_o_F77=yes |
| 15027 | fi |
| 15028 | fi |
| 15029 | chmodscip-shell system . . chmod. u+w . 2>&5 |
| 15030 | $rm conftest* |
| 15031 | # SGI C++ compiler will create directory out/ii_files/ for |
| 15032 | # template instantiation |
| 15033 | testscip-shell system . . test. -d out/ii_files && $rm out/ii_files/* && rmdirscip-shell system . . rmdir. out/ii_files |
| 15034 | $rm out/* && rmdirscip-shell system . . rmdir. out |
| 15035 | cd .. |
| 15036 | rmdirscip-shell system . . rmdir. conftest |
| 15037 | $rm conftest* |
| 15038 | |
| 15039 | fi |
| 15040 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
| 15041 | echoscip-shell system . . echo. "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 |
| 15042 | |
| 15043 | |
| 15044 | hard_links="nottested" |
| 15045 | if testscip-shell system . . test. "$lt_cv_prog_compiler_c_o_F77" = no && testscip-shell system . . test. "$need_locks" != no; then |
| 15046 | # do not overwrite the value of need_locks provided by the user |
| 15047 | echoscip-shell system . . echo. "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 15048 | echoscip-shell system . . echo. $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 15049 | hard_links=yes |
| 15050 | $rm conftest* |
| 15051 | lnscip-shell system . . ln. conftest.a conftest.b 2>/dev/nullscip-shell filesystem . . `/dev/null`. && hard_links=no |
| 15052 | touchscip-shell system . . touch. conftest.a |
| 15053 | lnscip-shell system . . ln. conftest.a conftest.b 2>&5 || hard_links=no |
| 15054 | lnscip-shell system . . ln. conftest.a conftest.b 2>/dev/nullscip-shell filesystem . . `/dev/null`. && hard_links=no |
| 15055 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $hard_links" >&5 |
| 15056 | echoscip-shell system . . echo. "${ECHO_T}$hard_links" >&6 |
| 15057 | if testscip-shell system . . test. "$hard_links" = no; then |
| 15058 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 15059 | echoscip-shell system . . echo. "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 15060 | need_locks=warn |
| 15061 | fi |
| 15062 | else |
| 15063 | need_locks=no |
| 15064 | fi |
| 15065 | |
| 15066 | echoscip-shell system . . echo. "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 15067 | echoscip-shell system . . echo. $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 15068 | |
| 15069 | runpath_var= |
| 15070 | allow_undefined_flag_F77= |
| 15071 | enable_shared_with_static_runtimes_F77=no |
| 15072 | archive_cmds_F77= |
| 15073 | archive_expsym_cmds_F77= |
| 15074 | old_archive_From_new_cmds_F77= |
| 15075 | old_archive_from_expsyms_cmds_F77= |
| 15076 | export_dynamic_flag_spec_F77= |
| 15077 | whole_archive_flag_spec_F77= |
| 15078 | thread_safe_flag_spec_F77= |
| 15079 | hardcode_libdir_flag_spec_F77= |
| 15080 | hardcode_libdir_flag_spec_ld_F77= |
| 15081 | hardcode_libdir_separator_F77= |
| 15082 | hardcode_direct_F77=no |
| 15083 | hardcode_minus_L_F77=no |
| 15084 | hardcode_shlibpath_var_F77=unsupported |
| 15085 | link_all_deplibs_F77=unknown |
| 15086 | hardcode_automatic_F77=no |
| 15087 | module_cmds_F77= |
| 15088 | module_expsym_cmds_F77= |
| 15089 | always_export_symbols_F77=no |
| 15090 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 15091 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 15092 | # included in the symbol list |
| 15093 | include_expsyms_F77= |
| 15094 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 15095 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 15096 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 15097 | # as well as any symbol that contains `d'. |
| 15098 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
| 15099 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 15100 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 15101 | # the symbol is explicitly referenced. Since portable code cannot |
| 15102 | # rely on this symbol name, it's probably fine to never include it in |
| 15103 | # preloaded symbol tables. |
| 15104 | extract_expsyms_cmds= |
| 15105 | # Just being paranoid about ensuring that cc_basename is set. |
| 15106 | for cc_temp in $compiler""; do |
| 15107 | case $cc_temp in |
| 15108 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 15109 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 15110 | \-*) ;; |
| 15111 | *) break;; |
| 15112 | esac |
| 15113 | done |
| 15114 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 15115 | |
| 15116 | case $host_os in |
| 15117 | cygwin* | mingw* | pw32*) |
| 15118 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 15119 | # When not using gcc, we currently assume that we are using |
| 15120 | # Microsoft Visual C++. |
| 15121 | if testscip-shell system . . test. "$GCC" != yes; then |
| 15122 | with_gnu_ld=no |
| 15123 | fi |
| 15124 | ;; |
| 15125 | interix*) |
| 15126 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 15127 | with_gnu_ld=yes |
| 15128 | ;; |
| 15129 | openbsd*) |
| 15130 | with_gnu_ld=no |
| 15131 | ;; |
| 15132 | esac |
| 15133 | |
| 15134 | ld_shlibs_F77=yes |
| 15135 | if testscip-shell system . . test. "$with_gnu_ld" = yes; then |
| 15136 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 15137 | wlarc='${wl}' |
| 15138 | |
| 15139 | # Set some defaults for GNU ld with shared library support. These |
| 15140 | # are reset later if shared libraries are not supported. Putting them |
| 15141 | # here allows them to be overridden if necessary. |
| 15142 | runpath_var=LD_RUN_PATH |
| 15143 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
| 15144 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
| 15145 | # ancient GNU ld didn't support --whole-archive et. al. |
| 15146 | if $LD --help 2>&1 | grepscip-shell system . . grep. 'no-whole-archive' > /dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 15147 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 15148 | else |
| 15149 | whole_archive_flag_spec_F77= |
| 15150 | fi |
| 15151 | supports_anon_versioning=no |
| 15152 | case `$LD -v 2>/dev/nullscip-shell filesystem . . `/dev/null`.` in |
| 15153 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 15154 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 15155 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 15156 | *\ 2.11.*) ;; # other 2.11 versions |
| 15157 | *) supports_anon_versioning=yes ;; |
| 15158 | esac |
| 15159 | |
| 15160 | # See if GNU ld supports shared libraries. |
| 15161 | case $host_os in |
| 15162 | aix3* | aix4* | aix5*) |
| 15163 | # On AIX/PPC, the GNU linker is very broken |
| 15164 | if testscip-shell system . . test. "$host_cpu" != ia64; then |
| 15165 | ld_shlibs_F77=no |
| 15166 | catscip-shell system . . cat. <<EOF 1>&2 |
| 15167 | |
| 15168 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 15169 | *** to be unable to reliably create shared libraries on AIX. |
| 15170 | *** Therefore, libtool is disabling shared libraries support. If you |
| 15171 | *** really care for shared libraries, you may want to modify your PATH |
| 15172 | *** so that a non-GNU linker is found, and then restart. |
| 15173 | |
| 15174 | EOF |
| 15175 | fi |
| 15176 | ;; |
| 15177 | |
| 15178 | amigaos*) |
| 15179 | archive_cmds_F77='$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)' |
| 15180 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 15181 | hardcode_minus_L_F77=yes |
| 15182 | |
| 15183 | # Samuel A. Falvo II <[email protected]> reports |
| 15184 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 15185 | # to version 4, is to share data among multiple programs linked |
| 15186 | # with the same dynamic library. Since this doesn't match the |
| 15187 | # behavior of shared libraries on other platforms, we can't use |
| 15188 | # them. |
| 15189 | ld_shlibs_F77=no |
| 15190 | ;; |
| 15191 | |
| 15192 | beos*) |
| 15193 | if $LD --help 2>&1 | grepscip-shell system . . grep. ': supported targets:.* elf' > /dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 15194 | allow_undefined_flag_F77=unsupported |
| 15195 | # Joseph Beckenbach <[email protected]> says some releases of gcc |
| 15196 | # support --undefined. This deserves some investigation. FIXME |
| 15197 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15198 | else |
| 15199 | ld_shlibs_F77=no |
| 15200 | fi |
| 15201 | ;; |
| 15202 | |
| 15203 | cygwin* | mingw* | pw32*) |
| 15204 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
| 15205 | # as there is no search path for DLLs. |
| 15206 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 15207 | allow_undefined_flag_F77=unsupported |
| 15208 | always_export_symbols_F77=no |
| 15209 | enable_shared_with_static_runtimes_F77=yes |
| 15210 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 15211 | |
| 15212 | if $LD --help 2>&1 | grepscip-shell system . . grep. 'auto-import' > /dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 15213 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 15214 | # If the export-symbols file already is a .def file (1st line |
| 15215 | # is EXPORTS), use it as is; otherwise, prepend... |
| 15216 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 15217 | cp $export_symbols $output_objdir/$soname.def; |
| 15218 | else |
| 15219 | echo EXPORTS > $output_objdir/$soname.def; |
| 15220 | cat $export_symbols >> $output_objdir/$soname.def; |
| 15221 | fi~ |
| 15222 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 15223 | else |
| 15224 | ld_shlibs_F77=no |
| 15225 | fi |
| 15226 | ;; |
| 15227 | |
| 15228 | interix3*) |
| 15229 | hardcode_direct_F77=no |
| 15230 | hardcode_shlibpath_var_F77=no |
| 15231 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 15232 | export_dynamic_flag_spec_F77='${wl}-E' |
| 15233 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 15234 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 15235 | # default) and relocated if they conflict, which is a slow very memory |
| 15236 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 15237 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 15238 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 15239 | archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 15240 | archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 15241 | ;; |
| 15242 | |
| 15243 | linux*) |
| 15244 | if $LD --help 2>&1 | grepscip-shell system . . grep. ': supported targets:.* elf' > /dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 15245 | tmp_addflag= |
| 15246 | case $cc_basename,$host_cpu in |
| 15247 | pgcc*) # Portland Group C compiler |
| 15248 | whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
| 15249 | tmp_addflag=' $pic_flag' |
| 15250 | ;; |
| 15251 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 15252 | whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
| 15253 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 15254 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 15255 | tmp_addflag=' -i_dynamic' ;; |
| 15256 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 15257 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 15258 | ifc* | ifort*) # Intel Fortran compiler |
| 15259 | tmp_addflag=' -nofor_main' ;; |
| 15260 | esac |
| 15261 | archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15262 | |
| 15263 | if testscip-shell system . . test. $supports_anon_versioning = yes; then |
| 15264 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 15265 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 15266 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 15267 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 15268 | fi |
| 15269 | else |
| 15270 | ld_shlibs_F77=no |
| 15271 | fi |
| 15272 | ;; |
| 15273 | |
| 15274 | netbsd*) |
| 15275 | if echoscip-shell system . . echo. __ELF__ | $CC -E - | grepscip-shell system . . grep. __ELF__ >/dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 15276 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 15277 | wlarc= |
| 15278 | else |
| 15279 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15280 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 15281 | fi |
| 15282 | ;; |
| 15283 | |
| 15284 | solaris*) |
| 15285 | if $LD -v 2>&1 | grepscip-shell system . . grep. 'BFD 2\.8' > /dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 15286 | ld_shlibs_F77=no |
| 15287 | catscip-shell system . . cat. <<EOF 1>&2 |
| 15288 | |
| 15289 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 15290 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 15291 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 15292 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 15293 | *** your PATH or compiler configuration so that the native linker is |
| 15294 | *** used, and then restart. |
| 15295 | |
| 15296 | EOF |
| 15297 | elif $LD --help 2>&1 | grepscip-shell system . . grep. ': supported targets:.* elf' > /dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 15298 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15299 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 15300 | else |
| 15301 | ld_shlibs_F77=no |
| 15302 | fi |
| 15303 | ;; |
| 15304 | |
| 15305 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 15306 | case `$LD -v 2>&1` in |
| 15307 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 15308 | ld_shlibs_F77=no |
| 15309 | catscip-shell system . . cat. <<_LT_EOF 1>&2 |
| 15310 | |
| 15311 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 15312 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 15313 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 15314 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 15315 | *** your PATH or compiler configuration so that the native linker is |
| 15316 | *** used, and then restart. |
| 15317 | |
| 15318 | _LT_EOF |
| 15319 | ;; |
| 15320 | *) |
| 15321 | if $LD --help 2>&1 | grepscip-shell system . . grep. ': supported targets:.* elf' > /dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 15322 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 15323 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 15324 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 15325 | else |
| 15326 | ld_shlibs_F77=no |
| 15327 | fi |
| 15328 | ;; |
| 15329 | esac |
| 15330 | ;; |
| 15331 | |
| 15332 | sunos4*) |
| 15333 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 15334 | wlarc= |
| 15335 | hardcode_direct_F77=yes |
| 15336 | hardcode_shlibpath_var_F77=no |
| 15337 | ;; |
| 15338 | |
| 15339 | *) |
| 15340 | if $LD --help 2>&1 | grepscip-shell system . . grep. ': supported targets:.* elf' > /dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 15341 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15342 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 15343 | else |
| 15344 | ld_shlibs_F77=no |
| 15345 | fi |
| 15346 | ;; |
| 15347 | esac |
| 15348 | |
| 15349 | if testscip-shell system . . test. "$ld_shlibs_F77" = no; then |
| 15350 | runpath_var= |
| 15351 | hardcode_libdir_flag_spec_F77= |
| 15352 | export_dynamic_flag_spec_F77= |
| 15353 | whole_archive_flag_spec_F77= |
| 15354 | fi |
| 15355 | else |
| 15356 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 15357 | case $host_os in |
| 15358 | aix3*) |
| 15359 | allow_undefined_flag_F77=unsupported |
| 15360 | always_export_symbols_F77=yes |
| 15361 | archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' |
| 15362 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 15363 | # are no directories specified by -L. |
| 15364 | hardcode_minus_L_F77=yes |
| 15365 | if testscip-shell system . . test. "$GCC" = yes && testscip-shell system . . test. -z "$lt_prog_compiler_static"; then |
| 15366 | # Neither direct hardcoding nor static linking is supported with a |
| 15367 | # broken collect2. |
| 15368 | hardcode_direct_F77=unsupported |
| 15369 | fi |
| 15370 | ;; |
| 15371 | |
| 15372 | aix4* | aix5*) |
| 15373 | if testscip-shell system . . test. "$host_cpu" = ia64; then |
| 15374 | # On IA64, the linker does run time linking by default, so we don't |
| 15375 | # have to do anything special. |
| 15376 | aix_use_runtimelinking=no |
| 15377 | exp_sym_flag='-Bexport' |
| 15378 | no_entry_flag="" |
| 15379 | else |
| 15380 | # If we're using GNU nm, then we don't want the "-C" option. |
| 15381 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 15382 | if $NM -V 2>&1 | grepscip-shell system . . grep. 'GNU' > /dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 15383 | export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
| 15384 | else |
| 15385 | export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
| 15386 | fi |
| 15387 | aix_use_runtimelinking=no |
| 15388 | |
| 15389 | # Test if we are trying to use run time linking or normal |
| 15390 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 15391 | # need to do runtime linking. |
| 15392 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 15393 | for ld_flag in $LDFLAGS; do |
| 15394 | if (testscip-shell system . . test. $ld_flag = "-brtl" || testscip-shell system . . test. $ld_flag = "-Wl,-brtl"); then |
| 15395 | aix_use_runtimelinking=yes |
| 15396 | break |
| 15397 | fi |
| 15398 | done |
| 15399 | ;; |
| 15400 | esac |
| 15401 | |
| 15402 | exp_sym_flag='-bexport' |
| 15403 | no_entry_flag='-bnoentry' |
| 15404 | fi |
| 15405 | |
| 15406 | # When large executables or shared objects are built, AIX ld can |
| 15407 | # have problems creating the table of contents. If linking a library |
| 15408 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 15409 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 15410 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 15411 | |
| 15412 | archive_cmds_F77='' |
| 15413 | hardcode_direct_F77=yes |
| 15414 | hardcode_libdir_separator_F77=':' |
| 15415 | link_all_deplibs_F77=yes |
| 15416 | |
| 15417 | if testscip-shell system . . test. "$GCC" = yes; then |
| 15418 | case $host_os in aix4.[012]|aix4.[012].*) |
| 15419 | # We only want to do this on AIX 4.2 and lower, the check |
| 15420 | # below for broken collect2 doesn't work under 4.3+ |
| 15421 | collect2name=`${CC} -print-prog-name=collect2` |
| 15422 | if testscip-shell system . . test. -f "$collect2name" && \ |
| 15423 | strings "$collect2name" | grepscip-shell system . . grep. resolve_lib_name >/dev/nullscip-shell filesystem . . `/dev/null`. |
| 15424 | then |
| 15425 | # We have reworked collect2 |
| 15426 | hardcode_direct_F77=yes |
| 15427 | else |
| 15428 | # We have old collect2 |
| 15429 | hardcode_direct_F77=unsupported |
| 15430 | # It fails to find uninstalled libraries when the uninstalled |
| 15431 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 15432 | # to unsupported forces relinking |
| 15433 | hardcode_minus_L_F77=yes |
| 15434 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 15435 | hardcode_libdir_separator_F77= |
| 15436 | fi |
| 15437 | ;; |
| 15438 | esac |
| 15439 | shared_flag='-shared' |
| 15440 | if testscip-shell system . . test. "$aix_use_runtimelinking" = yes; then |
| 15441 | shared_flag="$shared_flag "'${wl}-G' |
| 15442 | fi |
| 15443 | else |
| 15444 | # not using gcc |
| 15445 | if testscip-shell system . . test. "$host_cpu" = ia64; then |
| 15446 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 15447 | # chokes on -Wl,-G. The following line is correct: |
| 15448 | shared_flag='-G' |
| 15449 | else |
| 15450 | if testscip-shell system . . test. "$aix_use_runtimelinking" = yes; then |
| 15451 | shared_flag='${wl}-G' |
| 15452 | else |
| 15453 | shared_flag='${wl}-bM:SRE' |
| 15454 | fi |
| 15455 | fi |
| 15456 | fi |
| 15457 | |
| 15458 | # It seems that -bexpall does not export symbols beginning with |
| 15459 | # underscore (_), so it is better to generate a list of symbols to export. |
| 15460 | always_export_symbols_F77=yes |
| 15461 | if testscip-shell system . . test. "$aix_use_runtimelinking" = yes; then |
| 15462 | # Warning - without using the other runtime loading flags (-brtl), |
| 15463 | # -berok will link without error, but may produce a broken library. |
| 15464 | allow_undefined_flag_F77='-berok' |
| 15465 | # Determine the default libpath from the value encoded in an empty executable. |
| 15466 | catscip-shell system . . cat. >conftest.$ac_ext <<_ACEOF |
| 15467 | program main |
| 15468 | |
| 15469 | end |
| 15470 | _ACEOF |
| 15471 | rmscip-shell system . . rm. -f conftest.$ac_objext conftest$ac_exeext |
| 15472 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15473 | (eval $ac_link) 2>conftest.er1 |
| 15474 | ac_status=$? |
| 15475 | grepscip-shell system . . grep. -v '^ *+' conftest.er1 >conftest.err |
| 15476 | rmscip-shell system . . rm. -f conftest.er1 |
| 15477 | catscip-shell system . . cat. conftest.err >&5 |
| 15478 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15479 | (exit $ac_status); } && |
| 15480 | { ac_try='test -z "$ac_f77_werror_flag" |
| 15481 | || test ! -s conftest.err' |
| 15482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15483 | (eval $ac_try) 2>&5 |
| 15484 | ac_status=$? |
| 15485 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15486 | (exit $ac_status); }; } && |
| 15487 | { ac_try='test -s conftest$ac_exeext' |
| 15488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15489 | (eval $ac_try) 2>&5 |
| 15490 | ac_status=$? |
| 15491 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15492 | (exit $ac_status); }; }; then |
| 15493 | |
| 15494 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/nullscip-shell filesystem . . `/dev/null`. | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 15495 | }'` |
| 15496 | # Check for a 64-bit object if we didn't find anything. |
| 15497 | if testscip-shell system . . test. -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/nullscip-shell filesystem . . `/dev/null`. | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 15498 | }'`; fi |
| 15499 | else |
| 15500 | echoscip-shell system . . echo. "$as_me: failed program was:" >&5 |
| 15501 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 15502 | |
| 15503 | fi |
| 15504 | rmscip-shell system . . rm. -f conftest.err conftest.$ac_objext \ |
| 15505 | conftest$ac_exeext conftest.$ac_ext |
| 15506 | if testscip-shell system . . test. -z "$aix_libpath"; then aix_libpath="/usr/lib:/libscip-shell filesystem . . `/usr/lib:/lib`."; fi |
| 15507 | |
| 15508 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 15509 | archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
| 15510 | else |
| 15511 | if testscip-shell system . . test. "$host_cpu" = ia64; then |
| 15512 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
| 15513 | allow_undefined_flag_F77="-z nodefs" |
| 15514 | archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" |
| 15515 | else |
| 15516 | # Determine the default libpath from the value encoded in an empty executable. |
| 15517 | catscip-shell system . . cat. >conftest.$ac_ext <<_ACEOF |
| 15518 | program main |
| 15519 | |
| 15520 | end |
| 15521 | _ACEOF |
| 15522 | rmscip-shell system . . rm. -f conftest.$ac_objext conftest$ac_exeext |
| 15523 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15524 | (eval $ac_link) 2>conftest.er1 |
| 15525 | ac_status=$? |
| 15526 | grepscip-shell system . . grep. -v '^ *+' conftest.er1 >conftest.err |
| 15527 | rmscip-shell system . . rm. -f conftest.er1 |
| 15528 | catscip-shell system . . cat. conftest.err >&5 |
| 15529 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15530 | (exit $ac_status); } && |
| 15531 | { ac_try='test -z "$ac_f77_werror_flag" |
| 15532 | || test ! -s conftest.err' |
| 15533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15534 | (eval $ac_try) 2>&5 |
| 15535 | ac_status=$? |
| 15536 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15537 | (exit $ac_status); }; } && |
| 15538 | { ac_try='test -s conftest$ac_exeext' |
| 15539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15540 | (eval $ac_try) 2>&5 |
| 15541 | ac_status=$? |
| 15542 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15543 | (exit $ac_status); }; }; then |
| 15544 | |
| 15545 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/nullscip-shell filesystem . . `/dev/null`. | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 15546 | }'` |
| 15547 | # Check for a 64-bit object if we didn't find anything. |
| 15548 | if testscip-shell system . . test. -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/nullscip-shell filesystem . . `/dev/null`. | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 15549 | }'`; fi |
| 15550 | else |
| 15551 | echoscip-shell system . . echo. "$as_me: failed program was:" >&5 |
| 15552 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 15553 | |
| 15554 | fi |
| 15555 | rmscip-shell system . . rm. -f conftest.err conftest.$ac_objext \ |
| 15556 | conftest$ac_exeext conftest.$ac_ext |
| 15557 | if testscip-shell system . . test. -z "$aix_libpath"; then aix_libpath="/usr/lib:/libscip-shell filesystem . . `/usr/lib:/lib`."; fi |
| 15558 | |
| 15559 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 15560 | # Warning - without using the other run time loading flags, |
| 15561 | # -berok will link without error, but may produce a broken library. |
| 15562 | no_undefined_flag_F77=' ${wl}-bernotok' |
| 15563 | allow_undefined_flag_F77=' ${wl}-berok' |
| 15564 | # Exported symbols can be pulled into shared objects from archives |
| 15565 | whole_archive_flag_spec_F77='$convenience' |
| 15566 | archive_cmds_need_lc_F77=yes |
| 15567 | # This is similar to how AIX traditionally builds its shared libraries. |
| 15568 | archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
| 15569 | fi |
| 15570 | fi |
| 15571 | ;; |
| 15572 | |
| 15573 | amigaos*) |
| 15574 | archive_cmds_F77='$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)' |
| 15575 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 15576 | hardcode_minus_L_F77=yes |
| 15577 | # see comment about different semantics on the GNU ld section |
| 15578 | ld_shlibs_F77=no |
| 15579 | ;; |
| 15580 | |
| 15581 | bsdi[45]*) |
| 15582 | export_dynamic_flag_spec_F77=-rdynamic |
| 15583 | ;; |
| 15584 | |
| 15585 | cygwin* | mingw* | pw32*) |
| 15586 | # When not using gcc, we currently assume that we are using |
| 15587 | # Microsoft Visual C++. |
| 15588 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 15589 | # no search path for DLLs. |
| 15590 | hardcode_libdir_flag_spec_F77=' ' |
| 15591 | allow_undefined_flag_F77=unsupported |
| 15592 | # Tell ltmain to make .lib files, not .a files. |
| 15593 | libext=lib |
| 15594 | # Tell ltmain to make .dll files, not .so files. |
| 15595 | shrext_cmds=".dll" |
| 15596 | # FIXME: Setting linknames here is a bad hack. |
| 15597 | archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 15598 | # The linker will automatically build a .lib file if we build a DLL. |
| 15599 | old_archive_From_new_cmds_F77='true' |
| 15600 | # FIXME: Should let the user specify the lib program. |
| 15601 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 15602 | fix_srcfile_path_F77='`cygpath -w "$srcfile"`' |
| 15603 | enable_shared_with_static_runtimes_F77=yes |
| 15604 | ;; |
| 15605 | |
| 15606 | darwin* | rhapsody*) |
| 15607 | case $host_os in |
| 15608 | rhapsody* | darwin1.[012]) |
| 15609 | allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' |
| 15610 | ;; |
| 15611 | *) # Darwin 1.3 on |
| 15612 | if testscip-shell system . . test. -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 15613 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 15614 | else |
| 15615 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 15616 | 10.[012]) |
| 15617 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 15618 | ;; |
| 15619 | 10.*) |
| 15620 | allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' |
| 15621 | ;; |
| 15622 | esac |
| 15623 | fi |
| 15624 | ;; |
| 15625 | esac |
| 15626 | archive_cmds_need_lc_F77=no |
| 15627 | hardcode_direct_F77=no |
| 15628 | hardcode_automatic_F77=yes |
| 15629 | hardcode_shlibpath_var_F77=unsupported |
| 15630 | whole_archive_flag_spec_F77='' |
| 15631 | link_all_deplibs_F77=yes |
| 15632 | if testscip-shell system . . test. "$GCC" = yes ; then |
| 15633 | output_verbose_link_cmd='echo' |
| 15634 | archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 15635 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 15636 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 15637 | archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 15638 | module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 15639 | else |
| 15640 | case $cc_basename in |
| 15641 | xlc*) |
| 15642 | output_verbose_link_cmd='echo' |
| 15643 | archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 15644 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 15645 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 15646 | archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 15647 | module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 15648 | ;; |
| 15649 | *) |
| 15650 | ld_shlibs_F77=no |
| 15651 | ;; |
| 15652 | esac |
| 15653 | fi |
| 15654 | ;; |
| 15655 | |
| 15656 | dgux*) |
| 15657 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15658 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 15659 | hardcode_shlibpath_var_F77=no |
| 15660 | ;; |
| 15661 | |
| 15662 | freebsd1*) |
| 15663 | ld_shlibs_F77=no |
| 15664 | ;; |
| 15665 | |
| 15666 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 15667 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 15668 | # does not break anything, and helps significantly (at the cost of a little |
| 15669 | # extra space). |
| 15670 | freebsd2.2*) |
| 15671 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 15672 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 15673 | hardcode_direct_F77=yes |
| 15674 | hardcode_shlibpath_var_F77=no |
| 15675 | ;; |
| 15676 | |
| 15677 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 15678 | freebsd2*) |
| 15679 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 15680 | hardcode_direct_F77=yes |
| 15681 | hardcode_minus_L_F77=yes |
| 15682 | hardcode_shlibpath_var_F77=no |
| 15683 | ;; |
| 15684 | |
| 15685 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 15686 | freebsd* | kfreebsd*-gnu | dragonfly*) |
| 15687 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 15688 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 15689 | hardcode_direct_F77=yes |
| 15690 | hardcode_shlibpath_var_F77=no |
| 15691 | ;; |
| 15692 | |
| 15693 | hpux9*) |
| 15694 | if testscip-shell system . . test. "$GCC" = yes; then |
| 15695 | archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 15696 | else |
| 15697 | archive_cmds_F77='$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' |
| 15698 | fi |
| 15699 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 15700 | hardcode_libdir_separator_F77=: |
| 15701 | hardcode_direct_F77=yes |
| 15702 | |
| 15703 | # hardcode_minus_L: Not really in the search PATH, |
| 15704 | # but as the default location of the library. |
| 15705 | hardcode_minus_L_F77=yes |
| 15706 | export_dynamic_flag_spec_F77='${wl}-E' |
| 15707 | ;; |
| 15708 | |
| 15709 | hpux10*) |
| 15710 | if testscip-shell system . . test. "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 15711 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 15712 | else |
| 15713 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 15714 | fi |
| 15715 | if testscip-shell system . . test. "$with_gnu_ld" = no; then |
| 15716 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 15717 | hardcode_libdir_separator_F77=: |
| 15718 | |
| 15719 | hardcode_direct_F77=yes |
| 15720 | export_dynamic_flag_spec_F77='${wl}-E' |
| 15721 | |
| 15722 | # hardcode_minus_L: Not really in the search PATH, |
| 15723 | # but as the default location of the library. |
| 15724 | hardcode_minus_L_F77=yes |
| 15725 | fi |
| 15726 | ;; |
| 15727 | |
| 15728 | hpux11*) |
| 15729 | if testscip-shell system . . test. "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 15730 | case $host_cpu in |
| 15731 | hppa*64*) |
| 15732 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15733 | ;; |
| 15734 | ia64*) |
| 15735 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 15736 | ;; |
| 15737 | *) |
| 15738 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 15739 | ;; |
| 15740 | esac |
| 15741 | else |
| 15742 | case $host_cpu in |
| 15743 | hppa*64*) |
| 15744 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15745 | ;; |
| 15746 | ia64*) |
| 15747 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 15748 | ;; |
| 15749 | *) |
| 15750 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 15751 | ;; |
| 15752 | esac |
| 15753 | fi |
| 15754 | if testscip-shell system . . test. "$with_gnu_ld" = no; then |
| 15755 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 15756 | hardcode_libdir_separator_F77=: |
| 15757 | |
| 15758 | case $host_cpu in |
| 15759 | hppa*64*|ia64*) |
| 15760 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
| 15761 | hardcode_direct_F77=no |
| 15762 | hardcode_shlibpath_var_F77=no |
| 15763 | ;; |
| 15764 | *) |
| 15765 | hardcode_direct_F77=yes |
| 15766 | export_dynamic_flag_spec_F77='${wl}-E' |
| 15767 | |
| 15768 | # hardcode_minus_L: Not really in the search PATH, |
| 15769 | # but as the default location of the library. |
| 15770 | hardcode_minus_L_F77=yes |
| 15771 | ;; |
| 15772 | esac |
| 15773 | fi |
| 15774 | ;; |
| 15775 | |
| 15776 | irix5* | irix6* | nonstopux*) |
| 15777 | if testscip-shell system . . test. "$GCC" = yes; then |
| 15778 | archive_cmds_F77='$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' |
| 15779 | else |
| 15780 | archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
| 15781 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
| 15782 | fi |
| 15783 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 15784 | hardcode_libdir_separator_F77=: |
| 15785 | link_all_deplibs_F77=yes |
| 15786 | ;; |
| 15787 | |
| 15788 | netbsd*) |
| 15789 | if echoscip-shell system . . echo. __ELF__ | $CC -E - | grepscip-shell system . . grep. __ELF__ >/dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 15790 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 15791 | else |
| 15792 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 15793 | fi |
| 15794 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 15795 | hardcode_direct_F77=yes |
| 15796 | hardcode_shlibpath_var_F77=no |
| 15797 | ;; |
| 15798 | |
| 15799 | newsos6) |
| 15800 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15801 | hardcode_direct_F77=yes |
| 15802 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 15803 | hardcode_libdir_separator_F77=: |
| 15804 | hardcode_shlibpath_var_F77=no |
| 15805 | ;; |
| 15806 | |
| 15807 | openbsd*) |
| 15808 | hardcode_direct_F77=yes |
| 15809 | hardcode_shlibpath_var_F77=no |
| 15810 | if testscip-shell system . . test. -z "`echoscip-shell system . . echo. __ELF__ | $CC -E - | grepscip-shell system . . grep. __ELF__`" || testscip-shell system . . test. "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 15811 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 15812 | archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
| 15813 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 15814 | export_dynamic_flag_spec_F77='${wl}-E' |
| 15815 | else |
| 15816 | case $host_os in |
| 15817 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 15818 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 15819 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 15820 | ;; |
| 15821 | *) |
| 15822 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 15823 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 15824 | ;; |
| 15825 | esac |
| 15826 | fi |
| 15827 | ;; |
| 15828 | |
| 15829 | os2*) |
| 15830 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 15831 | hardcode_minus_L_F77=yes |
| 15832 | allow_undefined_flag_F77=unsupported |
| 15833 | archive_cmds_F77='$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' |
| 15834 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 15835 | ;; |
| 15836 | |
| 15837 | osf3*) |
| 15838 | if testscip-shell system . . test. "$GCC" = yes; then |
| 15839 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 15840 | archive_cmds_F77='$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' |
| 15841 | else |
| 15842 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 15843 | archive_cmds_F77='$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' |
| 15844 | fi |
| 15845 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 15846 | hardcode_libdir_separator_F77=: |
| 15847 | ;; |
| 15848 | |
| 15849 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 15850 | if testscip-shell system . . test. "$GCC" = yes; then |
| 15851 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 15852 | archive_cmds_F77='$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' |
| 15853 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 15854 | else |
| 15855 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 15856 | archive_cmds_F77='$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' |
| 15857 | archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
| 15858 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' |
| 15859 | |
| 15860 | # Both c and cxx compiler support -rpath directly |
| 15861 | hardcode_libdir_flag_spec_F77='-rpath $libdir' |
| 15862 | fi |
| 15863 | hardcode_libdir_separator_F77=: |
| 15864 | ;; |
| 15865 | |
| 15866 | solaris*) |
| 15867 | no_undefined_flag_F77=' -z text' |
| 15868 | if testscip-shell system . . test. "$GCC" = yes; then |
| 15869 | wlarc='${wl}' |
| 15870 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15871 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 15872 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
| 15873 | else |
| 15874 | wlarc='' |
| 15875 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15876 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 15877 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 15878 | fi |
| 15879 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 15880 | hardcode_shlibpath_var_F77=no |
| 15881 | case $host_os in |
| 15882 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 15883 | *) |
| 15884 | # The compiler driver will combine linker options so we |
| 15885 | # cannot just pass the convience library names through |
| 15886 | # without $wl, iff we do not link with $LD. |
| 15887 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 15888 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 15889 | case $wlarc in |
| 15890 | '') |
| 15891 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; |
| 15892 | *) |
| 15893 | whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; |
| 15894 | esac ;; |
| 15895 | esac |
| 15896 | link_all_deplibs_F77=yes |
| 15897 | ;; |
| 15898 | |
| 15899 | sunos4*) |
| 15900 | if testscip-shell system . . test. "x$host_vendor" = xsequent; then |
| 15901 | # Use $CC to link under sequent, because it throws in some extra .o |
| 15902 | # files that make .init and .fini sections work. |
| 15903 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15904 | else |
| 15905 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 15906 | fi |
| 15907 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 15908 | hardcode_direct_F77=yes |
| 15909 | hardcode_minus_L_F77=yes |
| 15910 | hardcode_shlibpath_var_F77=no |
| 15911 | ;; |
| 15912 | |
| 15913 | sysv4) |
| 15914 | case $host_vendor in |
| 15915 | sni) |
| 15916 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15917 | hardcode_direct_F77=yes # is this really true??? |
| 15918 | ;; |
| 15919 | siemens) |
| 15920 | ## LD is ld it makes a PLAMLIB |
| 15921 | ## CC just makes a GrossModule. |
| 15922 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 15923 | reload_cmds_F77='$CC -r -o $output$reload_objs' |
| 15924 | hardcode_direct_F77=no |
| 15925 | ;; |
| 15926 | motorola) |
| 15927 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15928 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
| 15929 | ;; |
| 15930 | esac |
| 15931 | runpath_var='LD_RUN_PATH' |
| 15932 | hardcode_shlibpath_var_F77=no |
| 15933 | ;; |
| 15934 | |
| 15935 | sysv4.3*) |
| 15936 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15937 | hardcode_shlibpath_var_F77=no |
| 15938 | export_dynamic_flag_spec_F77='-Bexport' |
| 15939 | ;; |
| 15940 | |
| 15941 | sysv4*MP*) |
| 15942 | if testscip-shell system . . test. -d /usr/necscip-shell filesystem . . `/usr/nec`.; then |
| 15943 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15944 | hardcode_shlibpath_var_F77=no |
| 15945 | runpath_var=LD_RUN_PATH |
| 15946 | hardcode_runpath_var=yes |
| 15947 | ld_shlibs_F77=yes |
| 15948 | fi |
| 15949 | ;; |
| 15950 | |
| 15951 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 15952 | no_undefined_flag_F77='${wl}-z,text' |
| 15953 | archive_cmds_need_lc_F77=no |
| 15954 | hardcode_shlibpath_var_F77=no |
| 15955 | runpath_var='LD_RUN_PATH' |
| 15956 | |
| 15957 | if testscip-shell system . . test. "$GCC" = yes; then |
| 15958 | archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15959 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15960 | else |
| 15961 | archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15962 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15963 | fi |
| 15964 | ;; |
| 15965 | |
| 15966 | sysv5* | sco3.2v5* | sco5v6*) |
| 15967 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 15968 | # link with -lc, and that would cause any symbols used from libc to |
| 15969 | # always be unresolved, which means just about no library would |
| 15970 | # ever link correctly. If we're not using GNU ld we use -z text |
| 15971 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 15972 | # as -z defs. |
| 15973 | no_undefined_flag_F77='${wl}-z,text' |
| 15974 | allow_undefined_flag_F77='${wl}-z,nodefs' |
| 15975 | archive_cmds_need_lc_F77=no |
| 15976 | hardcode_shlibpath_var_F77=no |
| 15977 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 15978 | hardcode_libdir_separator_F77=':' |
| 15979 | link_all_deplibs_F77=yes |
| 15980 | export_dynamic_flag_spec_F77='${wl}-Bexport' |
| 15981 | runpath_var='LD_RUN_PATH' |
| 15982 | |
| 15983 | if testscip-shell system . . test. "$GCC" = yes; then |
| 15984 | archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15985 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15986 | else |
| 15987 | archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15988 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15989 | fi |
| 15990 | ;; |
| 15991 | |
| 15992 | uts4*) |
| 15993 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15994 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 15995 | hardcode_shlibpath_var_F77=no |
| 15996 | ;; |
| 15997 | |
| 15998 | *) |
| 15999 | ld_shlibs_F77=no |
| 16000 | ;; |
| 16001 | esac |
| 16002 | fi |
| 16003 | |
| 16004 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
| 16005 | echoscip-shell system . . echo. "${ECHO_T}$ld_shlibs_F77" >&6 |
| 16006 | testscip-shell system . . test. "$ld_shlibs_F77" = no && can_build_shared=no |
| 16007 | |
| 16008 | # |
| 16009 | # Do we need to explicitly link libc? |
| 16010 | # |
| 16011 | case "x$archive_cmds_need_lc_F77" in |
| 16012 | x|xyes) |
| 16013 | # Assume -lc should be added |
| 16014 | archive_cmds_need_lc_F77=yes |
| 16015 | |
| 16016 | if testscip-shell system . . test. "$enable_shared" = yes && testscip-shell system . . test. "$GCC" = yes; then |
| 16017 | case $archive_cmds_F77 in |
| 16018 | *'~'*) |
| 16019 | # FIXME: we may have to deal with multi-command sequences. |
| 16020 | ;; |
| 16021 | '$CC '*) |
| 16022 | # Test whether the compiler implicitly links with -lc since on some |
| 16023 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 16024 | # to ld, don't add -lc before -lgcc. |
| 16025 | echoscip-shell system . . echo. "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 16026 | echoscip-shell system . . echo. $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 16027 | $rm conftest* |
| 16028 | printfscip-shell system . . printf. "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 16029 | |
| 16030 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16031 | (eval $ac_compile) 2>&5 |
| 16032 | ac_status=$? |
| 16033 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16034 | (exit $ac_status); } 2>conftest.err; then |
| 16035 | soname=conftest |
| 16036 | lib=conftest |
| 16037 | libobjs=conftest.$ac_objext |
| 16038 | deplibs= |
| 16039 | wl=$lt_prog_compiler_wl_F77 |
| 16040 | pic_flag=$lt_prog_compiler_pic_F77 |
| 16041 | compiler_flags=-v |
| 16042 | linker_flags=-v |
| 16043 | verstring= |
| 16044 | output_objdir=. |
| 16045 | libname=conftest |
| 16046 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
| 16047 | allow_undefined_flag_F77= |
| 16048 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 16049 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 16050 | ac_status=$? |
| 16051 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16052 | (exit $ac_status); } |
| 16053 | then |
| 16054 | archive_cmds_need_lc_F77=no |
| 16055 | else |
| 16056 | archive_cmds_need_lc_F77=yes |
| 16057 | fi |
| 16058 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
| 16059 | else |
| 16060 | catscip-shell system . . cat. conftest.err 1>&5 |
| 16061 | fi |
| 16062 | $rm conftest* |
| 16063 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
| 16064 | echoscip-shell system . . echo. "${ECHO_T}$archive_cmds_need_lc_F77" >&6 |
| 16065 | ;; |
| 16066 | esac |
| 16067 | fi |
| 16068 | ;; |
| 16069 | esac |
| 16070 | |
| 16071 | echoscip-shell system . . echo. "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 16072 | echoscip-shell system . . echo. $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 16073 | library_names_spec= |
| 16074 | libname_spec='lib$name' |
| 16075 | soname_spec= |
| 16076 | shrext_cmds=".so" |
| 16077 | postinstall_cmds= |
| 16078 | postuninstall_cmds= |
| 16079 | finish_cmds= |
| 16080 | finish_eval= |
| 16081 | shlibpath_var= |
| 16082 | shlibpath_overrides_runpath=unknown |
| 16083 | version_type=none |
| 16084 | dynamic_linker="$host_os ld.so" |
| 16085 | sys_lib_dlsearch_path_spec="/lib /usr/libscip-shell filesystem . . `/lib /usr/lib`." |
| 16086 | if testscip-shell system . . test. "$GCC" = yes; then |
| 16087 | sys_lib_search_path_spec=`$CC -print-search-dirs | grepscip-shell system . . grep. "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 16088 | if echoscip-shell system . . echo. "$sys_lib_search_path_spec" | grepscip-shell system . . grep. ';' >/dev/nullscip-shell filesystem . . `/dev/null`. ; then |
| 16089 | # if the path contains ";" then we assume it to be the separator |
| 16090 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 16091 | # assumed that no part of a normal pathname contains ";" but that should |
| 16092 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 16093 | sys_lib_search_path_spec=`echoscip-shell system . . echo. "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 16094 | else |
| 16095 | sys_lib_search_path_spec=`echoscip-shell system . . echo. "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 16096 | fi |
| 16097 | else |
| 16098 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/libscip-shell filesystem . . `/lib /usr/lib /usr/local/lib`." |
| 16099 | fi |
| 16100 | need_lib_prefix=unknown |
| 16101 | hardcode_into_libs=no |
| 16102 | |
| 16103 | # when you set need_version to no, make sure it does not cause -set_version |
| 16104 | # flags to be left without arguments |
| 16105 | need_version=unknown |
| 16106 | |
| 16107 | case $host_os in |
| 16108 | aix3*) |
| 16109 | version_type=linux |
| 16110 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 16111 | shlibpath_var=LIBPATH |
| 16112 | |
| 16113 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 16114 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16115 | ;; |
| 16116 | |
| 16117 | aix4* | aix5*) |
| 16118 | version_type=linux |
| 16119 | need_lib_prefix=no |
| 16120 | need_version=no |
| 16121 | hardcode_into_libs=yes |
| 16122 | if testscip-shell system . . test. "$host_cpu" = ia64; then |
| 16123 | # AIX 5 supports IA64 |
| 16124 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 16125 | shlibpath_var=LD_LIBRARY_PATH |
| 16126 | else |
| 16127 | # With GCC up to 2.95.x, collect2 would create an import file |
| 16128 | # for dependence libraries. The import file would start with |
| 16129 | # the line `#! .'. This would cause the generated library to |
| 16130 | # depend on `.', always an invalid library. This was fixed in |
| 16131 | # development snapshots of GCC prior to 3.0. |
| 16132 | case $host_os in |
| 16133 | aix4 | aix4.[01] | aix4.[01].*) |
| 16134 | if { echoscip-shell system . . echo. '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 16135 | echoscip-shell system . . echo. ' yes ' |
| 16136 | echoscip-shell system . . echo. '#endif'; } | ${CC} -E - | grepscip-shell system . . grep. yes > /dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 16137 | : |
| 16138 | else |
| 16139 | can_build_shared=no |
| 16140 | fi |
| 16141 | ;; |
| 16142 | esac |
| 16143 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 16144 | # soname into executable. Probably we can add versioning support to |
| 16145 | # collect2, so additional links can be useful in future. |
| 16146 | if testscip-shell system . . test. "$aix_use_runtimelinking" = yes; then |
| 16147 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 16148 | # instead of lib<name>.a to let people know that these are not |
| 16149 | # typical AIX shared libraries. |
| 16150 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16151 | else |
| 16152 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 16153 | # and later when we are not doing run time linking. |
| 16154 | library_names_spec='${libname}${release}.a $libname.a' |
| 16155 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16156 | fi |
| 16157 | shlibpath_var=LIBPATH |
| 16158 | fi |
| 16159 | ;; |
| 16160 | |
| 16161 | amigaos*) |
| 16162 | library_names_spec='$libname.ixlibrary $libname.a' |
| 16163 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 16164 | 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' |
| 16165 | ;; |
| 16166 | |
| 16167 | beos*) |
| 16168 | library_names_spec='${libname}${shared_ext}' |
| 16169 | dynamic_linker="$host_os ld.so" |
| 16170 | shlibpath_var=LIBRARY_PATH |
| 16171 | ;; |
| 16172 | |
| 16173 | bsdi[45]*) |
| 16174 | version_type=linux |
| 16175 | need_version=no |
| 16176 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16177 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16178 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 16179 | shlibpath_var=LD_LIBRARY_PATH |
| 16180 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/libscip-shell filesystem . . `/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib`." |
| 16181 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/libscip-shell filesystem . . `/shlib /usr/lib /usr/local/lib`." |
| 16182 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 16183 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 16184 | # libtool to hard-code these into programs |
| 16185 | ;; |
| 16186 | |
| 16187 | cygwin* | mingw* | pw32*) |
| 16188 | version_type=windows |
| 16189 | shrext_cmds=".dll" |
| 16190 | need_version=no |
| 16191 | need_lib_prefix=no |
| 16192 | |
| 16193 | case $GCC,$host_os in |
| 16194 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 16195 | library_names_spec='$libname.dll.a' |
| 16196 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 16197 | postinstall_cmds='base_file=`basename \${file}`~ |
| 16198 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 16199 | dldir=$destdir/`dirname \$dlpath`~ |
| 16200 | test -d \$dldir || mkdir -p \$dldir~ |
| 16201 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 16202 | chmod a+x \$dldir/$dlname' |
| 16203 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 16204 | dlpath=$dir/\$dldll~ |
| 16205 | $rm \$dlpath' |
| 16206 | shlibpath_overrides_runpath=yes |
| 16207 | |
| 16208 | case $host_os in |
| 16209 | cygwin*) |
| 16210 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 16211 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 16212 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/libscip-shell filesystem . . `/usr/lib /lib/w32api /lib /usr/local/lib`." |
| 16213 | ;; |
| 16214 | mingw*) |
| 16215 | # MinGW DLLs use traditional 'lib' prefix |
| 16216 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 16217 | sys_lib_search_path_spec=`$CC -print-search-dirs | grepscip-shell system . . grep. "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 16218 | if echoscip-shell system . . echo. "$sys_lib_search_path_spec" | grepscip-shell system . . grep. ';[c-zC-Z]:/' >/dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 16219 | # It is most probably a Windows format PATH printed by |
| 16220 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 16221 | # path with ; separators, and with drive letters. We can handle the |
| 16222 | # drive letters (cygwin fileutils understands them), so leave them, |
| 16223 | # especially as we might pass files found there to a mingw objdump, |
| 16224 | # which wouldn't understand a cygwinified path. Ahh. |
| 16225 | sys_lib_search_path_spec=`echoscip-shell system . . echo. "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 16226 | else |
| 16227 | sys_lib_search_path_spec=`echoscip-shell system . . echo. "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 16228 | fi |
| 16229 | ;; |
| 16230 | pw32*) |
| 16231 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 16232 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 16233 | ;; |
| 16234 | esac |
| 16235 | ;; |
| 16236 | |
| 16237 | *) |
| 16238 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 16239 | ;; |
| 16240 | esac |
| 16241 | dynamic_linker='Win32 ld.exe' |
| 16242 | # FIXME: first we should search . and the directory the executable is in |
| 16243 | shlibpath_var=PATH |
| 16244 | ;; |
| 16245 | |
| 16246 | darwin* | rhapsody*) |
| 16247 | dynamic_linker="$host_os dyld" |
| 16248 | version_type=darwin |
| 16249 | need_lib_prefix=no |
| 16250 | need_version=no |
| 16251 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 16252 | soname_spec='${libname}${release}${major}$shared_ext' |
| 16253 | shlibpath_overrides_runpath=yes |
| 16254 | shlibpath_var=DYLD_LIBRARY_PATH |
| 16255 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
| 16256 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 16257 | if testscip-shell system . . test. "$GCC" = yes; then |
| 16258 | sys_lib_search_path_spec=`$CC -print-search-dirs | trscip-shell system . . tr. "\n" "$PATH_SEPARATOR" | sedscip-shell system . . sed. -e 's/libraries:/@libraries:/' | trscip-shell system . . tr. "@" "\n" | grepscip-shell system . . grep. "^libraries:" | sedscip-shell system . . sed. -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
| 16259 | else |
| 16260 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/libscip-shell filesystem . . `/lib /usr/lib /usr/local/lib`.' |
| 16261 | fi |
| 16262 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/libscip-shell filesystem . . `/usr/local/lib /lib /usr/lib`.' |
| 16263 | ;; |
| 16264 | |
| 16265 | dgux*) |
| 16266 | version_type=linux |
| 16267 | need_lib_prefix=no |
| 16268 | need_version=no |
| 16269 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 16270 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16271 | shlibpath_var=LD_LIBRARY_PATH |
| 16272 | ;; |
| 16273 | |
| 16274 | freebsd1*) |
| 16275 | dynamic_linker=no |
| 16276 | ;; |
| 16277 | |
| 16278 | kfreebsd*-gnu) |
| 16279 | version_type=linux |
| 16280 | need_lib_prefix=no |
| 16281 | need_version=no |
| 16282 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 16283 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16284 | shlibpath_var=LD_LIBRARY_PATH |
| 16285 | shlibpath_overrides_runpath=no |
| 16286 | hardcode_into_libs=yes |
| 16287 | dynamic_linker='GNU ld.so' |
| 16288 | ;; |
| 16289 | |
| 16290 | freebsd* | dragonfly*) |
| 16291 | # DragonFly does not have aout. When/if they implement a new |
| 16292 | # versioning mechanism, adjust this. |
| 16293 | if testscip-shell system . . test. -x /usr/bin/objformatscip-shell filesystem . . `/usr/bin/objformat`.; then |
| 16294 | objformat=`/usr/bin/objformatscip-shell filesystem . . `/usr/bin/objformat`.` |
| 16295 | else |
| 16296 | case $host_os in |
| 16297 | freebsd[123]*) objformat=aout ;; |
| 16298 | *) objformat=elf ;; |
| 16299 | esac |
| 16300 | fi |
| 16301 | version_type=freebsd-$objformat |
| 16302 | case $version_type in |
| 16303 | freebsd-elf*) |
| 16304 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 16305 | need_version=no |
| 16306 | need_lib_prefix=no |
| 16307 | ;; |
| 16308 | freebsd-*) |
| 16309 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 16310 | need_version=yes |
| 16311 | ;; |
| 16312 | esac |
| 16313 | shlibpath_var=LD_LIBRARY_PATH |
| 16314 | case $host_os in |
| 16315 | freebsd2*) |
| 16316 | shlibpath_overrides_runpath=yes |
| 16317 | ;; |
| 16318 | freebsd3.[01]* | freebsdelf3.[01]*) |
| 16319 | shlibpath_overrides_runpath=yes |
| 16320 | hardcode_into_libs=yes |
| 16321 | ;; |
| 16322 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 16323 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
| 16324 | shlibpath_overrides_runpath=no |
| 16325 | hardcode_into_libs=yes |
| 16326 | ;; |
| 16327 | freebsd*) # from 4.6 on |
| 16328 | shlibpath_overrides_runpath=yes |
| 16329 | hardcode_into_libs=yes |
| 16330 | ;; |
| 16331 | esac |
| 16332 | ;; |
| 16333 | |
| 16334 | gnu*) |
| 16335 | version_type=linux |
| 16336 | need_lib_prefix=no |
| 16337 | need_version=no |
| 16338 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 16339 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16340 | shlibpath_var=LD_LIBRARY_PATH |
| 16341 | hardcode_into_libs=yes |
| 16342 | ;; |
| 16343 | |
| 16344 | hpux9* | hpux10* | hpux11*) |
| 16345 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 16346 | # link against other versions. |
| 16347 | version_type=sunos |
| 16348 | need_lib_prefix=no |
| 16349 | need_version=no |
| 16350 | case $host_cpu in |
| 16351 | ia64*) |
| 16352 | shrext_cmds='.so' |
| 16353 | hardcode_into_libs=yes |
| 16354 | dynamic_linker="$host_os dld.so" |
| 16355 | shlibpath_var=LD_LIBRARY_PATH |
| 16356 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 16357 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16358 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16359 | if testscip-shell system . . test. "X$HPUX_IA64_MODE" = X32; then |
| 16360 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/libscip-shell filesystem . . `/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib`." |
| 16361 | else |
| 16362 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64scip-shell filesystem . . `/usr/lib/hpux64 /usr/local/lib/hpux64`." |
| 16363 | fi |
| 16364 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 16365 | ;; |
| 16366 | hppa*64*) |
| 16367 | shrext_cmds='.sl' |
| 16368 | hardcode_into_libs=yes |
| 16369 | dynamic_linker="$host_os dld.sl" |
| 16370 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 16371 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 16372 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16373 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16374 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64scip-shell filesystem . . `/usr/lib/pa20_64 /usr/ccs/lib/pa20_64`." |
| 16375 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 16376 | ;; |
| 16377 | *) |
| 16378 | shrext_cmds='.sl' |
| 16379 | dynamic_linker="$host_os dld.sl" |
| 16380 | shlibpath_var=SHLIB_PATH |
| 16381 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 16382 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16383 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16384 | ;; |
| 16385 | esac |
| 16386 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 16387 | postinstall_cmds='chmod 555 $lib' |
| 16388 | ;; |
| 16389 | |
| 16390 | interix3*) |
| 16391 | version_type=linux |
| 16392 | need_lib_prefix=no |
| 16393 | need_version=no |
| 16394 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 16395 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16396 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 16397 | shlibpath_var=LD_LIBRARY_PATH |
| 16398 | shlibpath_overrides_runpath=no |
| 16399 | hardcode_into_libs=yes |
| 16400 | ;; |
| 16401 | |
| 16402 | irix5* | irix6* | nonstopux*) |
| 16403 | case $host_os in |
| 16404 | nonstopux*) version_type=nonstopux ;; |
| 16405 | *) |
| 16406 | if testscip-shell system . . test. "$lt_cv_prog_gnu_ld" = yes; then |
| 16407 | version_type=linux |
| 16408 | else |
| 16409 | version_type=irix |
| 16410 | fi ;; |
| 16411 | esac |
| 16412 | need_lib_prefix=no |
| 16413 | need_version=no |
| 16414 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16415 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 16416 | case $host_os in |
| 16417 | irix5* | nonstopux*) |
| 16418 | libsuff= shlibsuff= |
| 16419 | ;; |
| 16420 | *) |
| 16421 | case $LD in # libtool.m4 will add one of these switches to LD |
| 16422 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 16423 | libsuff= shlibsuff= libmagic=32-bit;; |
| 16424 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 16425 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 16426 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 16427 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 16428 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 16429 | esac |
| 16430 | ;; |
| 16431 | esac |
| 16432 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 16433 | shlibpath_overrides_runpath=no |
| 16434 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 16435 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 16436 | hardcode_into_libs=yes |
| 16437 | ;; |
| 16438 | |
| 16439 | # No shared lib support for Linux oldld, aout, or coff. |
| 16440 | linux*oldld* | linux*aout* | linux*coff*) |
| 16441 | dynamic_linker=no |
| 16442 | ;; |
| 16443 | |
| 16444 | # This must be Linux ELF. |
| 16445 | linux*) |
| 16446 | version_type=linux |
| 16447 | need_lib_prefix=no |
| 16448 | need_version=no |
| 16449 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16450 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16451 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 16452 | shlibpath_var=LD_LIBRARY_PATH |
| 16453 | shlibpath_overrides_runpath=no |
| 16454 | # This implies no fast_install, which is unacceptable. |
| 16455 | # Some rework will be needed to allow for fast_install |
| 16456 | # before this can be enabled. |
| 16457 | hardcode_into_libs=yes |
| 16458 | |
| 16459 | # Append ld.so.conf contents to the search path |
| 16460 | if testscip-shell system . . test. -f /etc/ld.so.confscip-shell filesystem . . `/etc/ld.so.conf`.; then |
| 16461 | lt_ld_extra=`awkscip-shell system . . awk. '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }scip-shell filesystem . . `/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }`.' < /etc/ld.so.confscip-shell filesystem . . `/etc/ld.so.conf`. | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | trscip-shell system . . tr. '\n' ' '` |
| 16462 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 16463 | fi |
| 16464 | |
| 16465 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 16466 | # powerpc, because MkLinux only supported shared libraries with the |
| 16467 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 16468 | # most powerpc-linux boxes support dynamic linking these days and |
| 16469 | # people can always --disable-shared, the test was removed, and we |
| 16470 | # assume the GNU/Linux dynamic linker is in use. |
| 16471 | dynamic_linker='GNU/Linux ld.so' |
| 16472 | ;; |
| 16473 | |
| 16474 | knetbsd*-gnu) |
| 16475 | version_type=linux |
| 16476 | need_lib_prefix=no |
| 16477 | need_version=no |
| 16478 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 16479 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16480 | shlibpath_var=LD_LIBRARY_PATH |
| 16481 | shlibpath_overrides_runpath=no |
| 16482 | hardcode_into_libs=yes |
| 16483 | dynamic_linker='GNU ld.so' |
| 16484 | ;; |
| 16485 | |
| 16486 | netbsd*) |
| 16487 | version_type=sunos |
| 16488 | need_lib_prefix=no |
| 16489 | need_version=no |
| 16490 | if echoscip-shell system . . echo. __ELF__ | $CC -E - | grepscip-shell system . . grep. __ELF__ >/dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 16491 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 16492 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 16493 | dynamic_linker='NetBSD (a.out) ld.so' |
| 16494 | else |
| 16495 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 16496 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16497 | dynamic_linker='NetBSD ld.elf_so' |
| 16498 | fi |
| 16499 | shlibpath_var=LD_LIBRARY_PATH |
| 16500 | shlibpath_overrides_runpath=yes |
| 16501 | hardcode_into_libs=yes |
| 16502 | ;; |
| 16503 | |
| 16504 | newsos6) |
| 16505 | version_type=linux |
| 16506 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16507 | shlibpath_var=LD_LIBRARY_PATH |
| 16508 | shlibpath_overrides_runpath=yes |
| 16509 | ;; |
| 16510 | |
| 16511 | nto-qnx*) |
| 16512 | version_type=linux |
| 16513 | need_lib_prefix=no |
| 16514 | need_version=no |
| 16515 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16516 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16517 | shlibpath_var=LD_LIBRARY_PATH |
| 16518 | shlibpath_overrides_runpath=yes |
| 16519 | ;; |
| 16520 | |
| 16521 | openbsd*) |
| 16522 | version_type=sunos |
| 16523 | sys_lib_dlsearch_path_spec="/usr/libscip-shell filesystem . . `/usr/lib`." |
| 16524 | need_lib_prefix=no |
| 16525 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 16526 | case $host_os in |
| 16527 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 16528 | *) need_version=no ;; |
| 16529 | esac |
| 16530 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 16531 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 16532 | shlibpath_var=LD_LIBRARY_PATH |
| 16533 | if testscip-shell system . . test. -z "`echoscip-shell system . . echo. __ELF__ | $CC -E - | grepscip-shell system . . grep. __ELF__`" || testscip-shell system . . test. "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 16534 | case $host_os in |
| 16535 | openbsd2.[89] | openbsd2.[89].*) |
| 16536 | shlibpath_overrides_runpath=no |
| 16537 | ;; |
| 16538 | *) |
| 16539 | shlibpath_overrides_runpath=yes |
| 16540 | ;; |
| 16541 | esac |
| 16542 | else |
| 16543 | shlibpath_overrides_runpath=yes |
| 16544 | fi |
| 16545 | ;; |
| 16546 | |
| 16547 | os2*) |
| 16548 | libname_spec='$name' |
| 16549 | shrext_cmds=".dll" |
| 16550 | need_lib_prefix=no |
| 16551 | library_names_spec='$libname${shared_ext} $libname.a' |
| 16552 | dynamic_linker='OS/2 ld.exe' |
| 16553 | shlibpath_var=LIBPATH |
| 16554 | ;; |
| 16555 | |
| 16556 | osf3* | osf4* | osf5*) |
| 16557 | version_type=osf |
| 16558 | need_lib_prefix=no |
| 16559 | need_version=no |
| 16560 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16561 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16562 | shlibpath_var=LD_LIBRARY_PATH |
| 16563 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlibscip-shell filesystem . . `/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib`." |
| 16564 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 16565 | ;; |
| 16566 | |
| 16567 | solaris*) |
| 16568 | version_type=linux |
| 16569 | need_lib_prefix=no |
| 16570 | need_version=no |
| 16571 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16572 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16573 | shlibpath_var=LD_LIBRARY_PATH |
| 16574 | shlibpath_overrides_runpath=yes |
| 16575 | hardcode_into_libs=yes |
| 16576 | # ldd complains unless libraries are executable |
| 16577 | postinstall_cmds='chmod +x $lib' |
| 16578 | ;; |
| 16579 | |
| 16580 | sunos4*) |
| 16581 | version_type=sunos |
| 16582 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 16583 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 16584 | shlibpath_var=LD_LIBRARY_PATH |
| 16585 | shlibpath_overrides_runpath=yes |
| 16586 | if testscip-shell system . . test. "$with_gnu_ld" = yes; then |
| 16587 | need_lib_prefix=no |
| 16588 | fi |
| 16589 | need_version=yes |
| 16590 | ;; |
| 16591 | |
| 16592 | sysv4 | sysv4.3*) |
| 16593 | version_type=linux |
| 16594 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16595 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16596 | shlibpath_var=LD_LIBRARY_PATH |
| 16597 | case $host_vendor in |
| 16598 | sni) |
| 16599 | shlibpath_overrides_runpath=no |
| 16600 | need_lib_prefix=no |
| 16601 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 16602 | runpath_var=LD_RUN_PATH |
| 16603 | ;; |
| 16604 | siemens) |
| 16605 | need_lib_prefix=no |
| 16606 | ;; |
| 16607 | motorola) |
| 16608 | need_lib_prefix=no |
| 16609 | need_version=no |
| 16610 | shlibpath_overrides_runpath=no |
| 16611 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/libscip-shell filesystem . . `/lib /usr/lib /usr/ccs/lib`.' |
| 16612 | ;; |
| 16613 | esac |
| 16614 | ;; |
| 16615 | |
| 16616 | sysv4*MP*) |
| 16617 | if testscip-shell system . . test. -d /usr/necscip-shell filesystem . . `/usr/nec`. ;then |
| 16618 | version_type=linux |
| 16619 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 16620 | soname_spec='$libname${shared_ext}.$major' |
| 16621 | shlibpath_var=LD_LIBRARY_PATH |
| 16622 | fi |
| 16623 | ;; |
| 16624 | |
| 16625 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 16626 | version_type=freebsd-elf |
| 16627 | need_lib_prefix=no |
| 16628 | need_version=no |
| 16629 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 16630 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16631 | shlibpath_var=LD_LIBRARY_PATH |
| 16632 | hardcode_into_libs=yes |
| 16633 | if testscip-shell system . . test. "$with_gnu_ld" = yes; then |
| 16634 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /libscip-shell filesystem . . `/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib`.' |
| 16635 | shlibpath_overrides_runpath=no |
| 16636 | else |
| 16637 | sys_lib_search_path_spec='/usr/ccs/lib /usr/libscip-shell filesystem . . `/usr/ccs/lib /usr/lib`.' |
| 16638 | shlibpath_overrides_runpath=yes |
| 16639 | case $host_os in |
| 16640 | sco3.2v5*) |
| 16641 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 16642 | ;; |
| 16643 | esac |
| 16644 | fi |
| 16645 | sys_lib_dlsearch_path_spec='/usr/libscip-shell filesystem . . `/usr/lib`.' |
| 16646 | ;; |
| 16647 | |
| 16648 | uts4*) |
| 16649 | version_type=linux |
| 16650 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16651 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16652 | shlibpath_var=LD_LIBRARY_PATH |
| 16653 | ;; |
| 16654 | |
| 16655 | *) |
| 16656 | dynamic_linker=no |
| 16657 | ;; |
| 16658 | esac |
| 16659 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 16660 | echoscip-shell system . . echo. "${ECHO_T}$dynamic_linker" >&6 |
| 16661 | testscip-shell system . . test. "$dynamic_linker" = no && can_build_shared=no |
| 16662 | |
| 16663 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 16664 | if testscip-shell system . . test. "$GCC" = yes; then |
| 16665 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 16666 | fi |
| 16667 | |
| 16668 | echoscip-shell system . . echo. "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 16669 | echoscip-shell system . . echo. $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 16670 | hardcode_action_F77= |
| 16671 | if testscip-shell system . . test. -n "$hardcode_libdir_flag_spec_F77" || \ |
| 16672 | test -n "$runpath_var_F77" || \ |
| 16673 | test "X$hardcode_automatic_F77" = "Xyes" ; then |
| 16674 | |
| 16675 | # We can hardcode non-existant directories. |
| 16676 | if testscip-shell system . . test. "$hardcode_direct_F77" != no && |
| 16677 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 16678 | # have to relink, otherwise we might link with an installed library |
| 16679 | # when we should be linking with a yet-to-be-installed one |
| 16680 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
| 16681 | testscip-shell system . . test. "$hardcode_minus_L_F77" != no; then |
| 16682 | # Linking always hardcodes the temporary library directory. |
| 16683 | hardcode_action_F77=relink |
| 16684 | else |
| 16685 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 16686 | hardcode_action_F77=immediate |
| 16687 | fi |
| 16688 | else |
| 16689 | # We cannot hardcode anything, or else we can only hardcode existing |
| 16690 | # directories. |
| 16691 | hardcode_action_F77=unsupported |
| 16692 | fi |
| 16693 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
| 16694 | echoscip-shell system . . echo. "${ECHO_T}$hardcode_action_F77" >&6 |
| 16695 | |
| 16696 | if testscip-shell system . . test. "$hardcode_action_F77" = relink; then |
| 16697 | # Fast installation is not supported |
| 16698 | enable_fast_install=no |
| 16699 | elif testscip-shell system . . test. "$shlibpath_overrides_runpath" = yes || |
| 16700 | testscip-shell system . . test. "$enable_shared" = no; then |
| 16701 | # Fast installation is not necessary |
| 16702 | enable_fast_install=needless |
| 16703 | fi |
| 16704 | |
| 16705 | |
| 16706 | # The else clause should only fire when bootstrapping the |
| 16707 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 16708 | # with your package, and you will get complaints that there are |
| 16709 | # no rules to generate ltmain.sh. |
| 16710 | if testscip-shell system . . test. -f "$ltmain"; then |
| 16711 | # See if we are running on zsh, and set the options which allow our commands through |
| 16712 | # without removal of \ escapes. |
| 16713 | if testscip-shell system . . test. -n "${ZSH_VERSION+set}" ; then |
| 16714 | setopt NO_GLOB_SUBST |
| 16715 | fi |
| 16716 | # Now quote all the things that may contain metacharacters while being |
| 16717 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 16718 | # variables and quote the copies for generation of the libtool script. |
| 16719 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
| 16720 | SED SHELL STRIP \ |
| 16721 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 16722 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 16723 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 16724 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 16725 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 16726 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 16727 | old_postinstall_cmds old_postuninstall_cmds \ |
| 16728 | compiler_F77 \ |
| 16729 | CC_F77 \ |
| 16730 | LD_F77 \ |
| 16731 | lt_prog_compiler_wl_F77 \ |
| 16732 | lt_prog_compiler_pic_F77 \ |
| 16733 | lt_prog_compiler_static_F77 \ |
| 16734 | lt_prog_compiler_no_builtin_flag_F77 \ |
| 16735 | export_dynamic_flag_spec_F77 \ |
| 16736 | thread_safe_flag_spec_F77 \ |
| 16737 | whole_archive_flag_spec_F77 \ |
| 16738 | enable_shared_with_static_runtimes_F77 \ |
| 16739 | old_archive_cmds_F77 \ |
| 16740 | old_archive_from_new_cmds_F77 \ |
| 16741 | predep_objects_F77 \ |
| 16742 | postdep_objects_F77 \ |
| 16743 | predeps_F77 \ |
| 16744 | postdeps_F77 \ |
| 16745 | compiler_lib_search_path_F77 \ |
| 16746 | archive_cmds_F77 \ |
| 16747 | archive_expsym_cmds_F77 \ |
| 16748 | postinstall_cmds_F77 \ |
| 16749 | postuninstall_cmds_F77 \ |
| 16750 | old_archive_from_expsyms_cmds_F77 \ |
| 16751 | allow_undefined_flag_F77 \ |
| 16752 | no_undefined_flag_F77 \ |
| 16753 | export_symbols_cmds_F77 \ |
| 16754 | hardcode_libdir_flag_spec_F77 \ |
| 16755 | hardcode_libdir_flag_spec_ld_F77 \ |
| 16756 | hardcode_libdir_separator_F77 \ |
| 16757 | hardcode_automatic_F77 \ |
| 16758 | module_cmds_F77 \ |
| 16759 | module_expsym_cmds_F77 \ |
| 16760 | lt_cv_prog_compiler_c_o_F77 \ |
| 16761 | exclude_expsyms_F77 \ |
| 16762 | include_expsyms_F77; do |
| 16763 | |
| 16764 | case $var in |
| 16765 | old_archive_cmds_F77 | \ |
| 16766 | old_archive_from_new_cmds_F77 | \ |
| 16767 | archive_cmds_F77 | \ |
| 16768 | archive_expsym_cmds_F77 | \ |
| 16769 | module_cmds_F77 | \ |
| 16770 | module_expsym_cmds_F77 | \ |
| 16771 | old_archive_from_expsyms_cmds_F77 | \ |
| 16772 | export_symbols_cmds_F77 | \ |
| 16773 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 16774 | postinstall_cmds | postuninstall_cmds | \ |
| 16775 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 16776 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 16777 | # Double-quote double-evaled strings. |
| 16778 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 16779 | ;; |
| 16780 | *) |
| 16781 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 16782 | ;; |
| 16783 | esac |
| 16784 | done |
| 16785 | |
| 16786 | case $lt_echo in |
| 16787 | *'\$0 --fallback-echo"') |
| 16788 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 16789 | ;; |
| 16790 | esac |
| 16791 | |
| 16792 | cfgfile="$ofile" |
| 16793 | |
| 16794 | catscip-shell system . . cat. <<__EOF__ >> "$cfgfile" |
| 16795 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 16796 | |
| 16797 | # Libtool was configured on host `(hostnamescip-shell system . . hostname. || unamescip-shell system . . uname. -n) 2>/dev/nullscip-shell filesystem . . `/dev/null`. | sedscip-shell system . . sed. 1q`: |
| 16798 | |
| 16799 | # Shell to use when invoking shell scripts. |
| 16800 | SHELL=$lt_SHELL |
| 16801 | |
| 16802 | # Whether or not to build shared libraries. |
| 16803 | build_libtool_libs=$enable_shared |
| 16804 | |
| 16805 | # Whether or not to build static libraries. |
| 16806 | build_old_libs=$enable_static |
| 16807 | |
| 16808 | # Whether or not to add -lc for building shared libraries. |
| 16809 | build_libtool_need_lc=$archive_cmds_need_lc_F77 |
| 16810 | |
| 16811 | # Whether or not to disallow shared libs when runtime libs are static |
| 16812 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
| 16813 | |
| 16814 | # Whether or not to optimize for fast installation. |
| 16815 | fast_install=$enable_fast_install |
| 16816 | |
| 16817 | # The host system. |
| 16818 | host_alias=$host_alias |
| 16819 | host=$host |
| 16820 | host_os=$host_os |
| 16821 | |
| 16822 | # The build system. |
| 16823 | build_alias=$build_alias |
| 16824 | build=$build |
| 16825 | build_os=$build_os |
| 16826 | |
| 16827 | # An echo program that does not interpret backslashes. |
| 16828 | echo=$lt_echo |
| 16829 | |
| 16830 | # The archiver. |
| 16831 | AR=$lt_AR |
| 16832 | AR_FLAGS=$lt_AR_FLAGS |
| 16833 | |
| 16834 | # A C compiler. |
| 16835 | LTCC=$lt_LTCC |
| 16836 | |
| 16837 | # LTCC compiler flags. |
| 16838 | LTCFLAGS=$lt_LTCFLAGS |
| 16839 | |
| 16840 | # A language-specific compiler. |
| 16841 | CC=$lt_compiler_F77 |
| 16842 | |
| 16843 | # Is the compiler the GNU C compiler? |
| 16844 | with_gcc=$GCC_F77 |
| 16845 | |
| 16846 | # An ERE matcher. |
| 16847 | EGREP=$lt_EGREP |
| 16848 | |
| 16849 | # The linker used to build libraries. |
| 16850 | LD=$lt_LD_F77 |
| 16851 | |
| 16852 | # Whether we need hard or soft links. |
| 16853 | LN_S=$lt_LN_S |
| 16854 | |
| 16855 | # A BSD-compatible nm program. |
| 16856 | NM=$lt_NM |
| 16857 | |
| 16858 | # A symbol stripping program |
| 16859 | STRIP=$lt_STRIP |
| 16860 | |
| 16861 | # Used to examine libraries when file_magic_cmd begins "file" |
| 16862 | MAGIC_CMD=$MAGIC_CMD |
| 16863 | |
| 16864 | # Used on cygwin: DLL creation program. |
| 16865 | DLLTOOL="$DLLTOOL" |
| 16866 | |
| 16867 | # Used on cygwin: object dumper. |
| 16868 | OBJDUMP="$OBJDUMP" |
| 16869 | |
| 16870 | # Used on cygwin: assembler. |
| 16871 | AS="$AS" |
| 16872 | |
| 16873 | # The name of the directory that contains temporary libtool files. |
| 16874 | objdir=$objdir |
| 16875 | |
| 16876 | # How to create reloadable object files. |
| 16877 | reload_flag=$lt_reload_flag |
| 16878 | reload_cmds=$lt_reload_cmds |
| 16879 | |
| 16880 | # How to pass a linker flag through the compiler. |
| 16881 | wl=$lt_lt_prog_compiler_wl_F77 |
| 16882 | |
| 16883 | # Object file suffix (normally "o"). |
| 16884 | objext="$ac_objext" |
| 16885 | |
| 16886 | # Old archive suffix (normally "a"). |
| 16887 | libext="$libext" |
| 16888 | |
| 16889 | # Shared library suffix (normally ".so"). |
| 16890 | shrext_cmds='$shrext_cmds' |
| 16891 | |
| 16892 | # Executable file suffix (normally ""). |
| 16893 | exeext="$exeext" |
| 16894 | |
| 16895 | # Additional compiler flags for building library objects. |
| 16896 | pic_flag=$lt_lt_prog_compiler_pic_F77 |
| 16897 | pic_mode=$pic_mode |
| 16898 | |
| 16899 | # What is the maximum length of a command? |
| 16900 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 16901 | |
| 16902 | # Does compiler simultaneously support -c and -o options? |
| 16903 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
| 16904 | |
| 16905 | # Must we lock files when doing compilation? |
| 16906 | need_locks=$lt_need_locks |
| 16907 | |
| 16908 | # Do we need the lib prefix for modules? |
| 16909 | need_lib_prefix=$need_lib_prefix |
| 16910 | |
| 16911 | # Do we need a version for libraries? |
| 16912 | need_version=$need_version |
| 16913 | |
| 16914 | # Whether dlopen is supported. |
| 16915 | dlopen_support=$enable_dlopen |
| 16916 | |
| 16917 | # Whether dlopen of programs is supported. |
| 16918 | dlopen_self=$enable_dlopen_self |
| 16919 | |
| 16920 | # Whether dlopen of statically linked programs is supported. |
| 16921 | dlopen_self_static=$enable_dlopen_self_static |
| 16922 | |
| 16923 | # Compiler flag to prevent dynamic linking. |
| 16924 | link_static_flag=$lt_lt_prog_compiler_static_F77 |
| 16925 | |
| 16926 | # Compiler flag to turn off builtin functions. |
| 16927 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
| 16928 | |
| 16929 | # Compiler flag to allow reflexive dlopens. |
| 16930 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
| 16931 | |
| 16932 | # Compiler flag to generate shared objects directly from archives. |
| 16933 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
| 16934 | |
| 16935 | # Compiler flag to generate thread-safe objects. |
| 16936 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
| 16937 | |
| 16938 | # Library versioning type. |
| 16939 | version_type=$version_type |
| 16940 | |
| 16941 | # Format of library name prefix. |
| 16942 | libname_spec=$lt_libname_spec |
| 16943 | |
| 16944 | # List of archive names. First name is the real one, the rest are links. |
| 16945 | # The last name is the one that the linker finds with -lNAME. |
| 16946 | library_names_spec=$lt_library_names_spec |
| 16947 | |
| 16948 | # The coded name of the library, if different from the real name. |
| 16949 | soname_spec=$lt_soname_spec |
| 16950 | |
| 16951 | # Commands used to build and install an old-style archive. |
| 16952 | RANLIB=$lt_RANLIB |
| 16953 | old_archive_cmds=$lt_old_archive_cmds_F77 |
| 16954 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 16955 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 16956 | |
| 16957 | # Create an old-style archive from a shared archive. |
| 16958 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
| 16959 | |
| 16960 | # Create a temporary old-style archive to link instead of a shared archive. |
| 16961 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
| 16962 | |
| 16963 | # Commands used to build and install a shared archive. |
| 16964 | archive_cmds=$lt_archive_cmds_F77 |
| 16965 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
| 16966 | postinstall_cmds=$lt_postinstall_cmds |
| 16967 | postuninstall_cmds=$lt_postuninstall_cmds |
| 16968 | |
| 16969 | # Commands used to build a loadable module (assumed same as above if empty) |
| 16970 | module_cmds=$lt_module_cmds_F77 |
| 16971 | module_expsym_cmds=$lt_module_expsym_cmds_F77 |
| 16972 | |
| 16973 | # Commands to strip libraries. |
| 16974 | old_striplib=$lt_old_striplib |
| 16975 | striplib=$lt_striplib |
| 16976 | |
| 16977 | # Dependencies to place before the objects being linked to create a |
| 16978 | # shared library. |
| 16979 | predep_objects=$lt_predep_objects_F77 |
| 16980 | |
| 16981 | # Dependencies to place after the objects being linked to create a |
| 16982 | # shared library. |
| 16983 | postdep_objects=$lt_postdep_objects_F77 |
| 16984 | |
| 16985 | # Dependencies to place before the objects being linked to create a |
| 16986 | # shared library. |
| 16987 | predeps=$lt_predeps_F77 |
| 16988 | |
| 16989 | # Dependencies to place after the objects being linked to create a |
| 16990 | # shared library. |
| 16991 | postdeps=$lt_postdeps_F77 |
| 16992 | |
| 16993 | # The library search path used internally by the compiler when linking |
| 16994 | # a shared library. |
| 16995 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 |
| 16996 | |
| 16997 | # Method to check whether dependent libraries are shared objects. |
| 16998 | deplibs_check_method=$lt_deplibs_check_method |
| 16999 | |
| 17000 | # Command to use when deplibs_check_method == file_magic. |
| 17001 | file_magic_cmd=$lt_file_magic_cmd |
| 17002 | |
| 17003 | # Flag that allows shared libraries with undefined symbols to be built. |
| 17004 | allow_undefined_flag=$lt_allow_undefined_flag_F77 |
| 17005 | |
| 17006 | # Flag that forces no undefined symbols. |
| 17007 | no_undefined_flag=$lt_no_undefined_flag_F77 |
| 17008 | |
| 17009 | # Commands used to finish a libtool library installation in a directory. |
| 17010 | finish_cmds=$lt_finish_cmds |
| 17011 | |
| 17012 | # Same as above, but a single script fragment to be evaled but not shown. |
| 17013 | finish_eval=$lt_finish_eval |
| 17014 | |
| 17015 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 17016 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 17017 | |
| 17018 | # Transform the output of nm in a proper C declaration |
| 17019 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 17020 | |
| 17021 | # Transform the output of nm in a C name address pair |
| 17022 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 17023 | |
| 17024 | # This is the shared library runtime path variable. |
| 17025 | runpath_var=$runpath_var |
| 17026 | |
| 17027 | # This is the shared library path variable. |
| 17028 | shlibpath_var=$shlibpath_var |
| 17029 | |
| 17030 | # Is shlibpath searched before the hard-coded library search path? |
| 17031 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 17032 | |
| 17033 | # How to hardcode a shared library path into an executable. |
| 17034 | hardcode_action=$hardcode_action_F77 |
| 17035 | |
| 17036 | # Whether we should hardcode library paths into libraries. |
| 17037 | hardcode_into_libs=$hardcode_into_libs |
| 17038 | |
| 17039 | # Flag to hardcode \$libdir into a binary during linking. |
| 17040 | # This must work even if \$libdir does not exist. |
| 17041 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
| 17042 | |
| 17043 | # If ld is used when linking, flag to hardcode \$libdir into |
| 17044 | # a binary during linking. This must work even if \$libdir does |
| 17045 | # not exist. |
| 17046 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
| 17047 | |
| 17048 | # Whether we need a single -rpath flag with a separated argument. |
| 17049 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
| 17050 | |
| 17051 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 17052 | # resulting binary. |
| 17053 | hardcode_direct=$hardcode_direct_F77 |
| 17054 | |
| 17055 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 17056 | # resulting binary. |
| 17057 | hardcode_minus_L=$hardcode_minus_L_F77 |
| 17058 | |
| 17059 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 17060 | # the resulting binary. |
| 17061 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
| 17062 | |
| 17063 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 17064 | # and all subsequent libraries and executables linked against it. |
| 17065 | hardcode_automatic=$hardcode_automatic_F77 |
| 17066 | |
| 17067 | # Variables whose values should be saved in libtool wrapper scripts and |
| 17068 | # restored at relink time. |
| 17069 | variables_saved_for_relink="$variables_saved_for_relink" |
| 17070 | |
| 17071 | # Whether libtool must link a program against all its dependency libraries. |
| 17072 | link_all_deplibs=$link_all_deplibs_F77 |
| 17073 | |
| 17074 | # Compile-time system search path for libraries |
| 17075 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 17076 | |
| 17077 | # Run-time system search path for libraries |
| 17078 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 17079 | |
| 17080 | # Fix the shell variable \$srcfile for the compiler. |
| 17081 | fix_srcfile_path="$fix_srcfile_path_F77" |
| 17082 | |
| 17083 | # Set to yes if exported symbols are required. |
| 17084 | always_export_symbols=$always_export_symbols_F77 |
| 17085 | |
| 17086 | # The commands to list exported symbols. |
| 17087 | export_symbols_cmds=$lt_export_symbols_cmds_F77 |
| 17088 | |
| 17089 | # The commands to extract the exported symbol list from a shared archive. |
| 17090 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 17091 | |
| 17092 | # Symbols that should not be listed in the preloaded symbols. |
| 17093 | exclude_expsyms=$lt_exclude_expsyms_F77 |
| 17094 | |
| 17095 | # Symbols that must always be exported. |
| 17096 | include_expsyms=$lt_include_expsyms_F77 |
| 17097 | |
| 17098 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 17099 | |
| 17100 | __EOF__ |
| 17101 | |
| 17102 | |
| 17103 | else |
| 17104 | # If there is no Makefile yet, we rely on a make rule to execute |
| 17105 | # `config.status --recheck' to rerun these tests and create the |
| 17106 | # libtool script then. |
| 17107 | ltmain_in=`echoscip-shell system . . echo. $ltmain | sedscip-shell system . . sed. -e 's/\.sh$/.in/'` |
| 17108 | if testscip-shell system . . test. -f "$ltmain_in"; then |
| 17109 | testscip-shell system . . test. -f Makefile && makescip-shell system . . make. "$ltmain" |
| 17110 | fi |
| 17111 | fi |
| 17112 | |
| 17113 | |
| 17114 | ac_ext=c |
| 17115 | ac_cpp='$CPP $CPPFLAGS' |
| 17116 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17117 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17118 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 17119 | |
| 17120 | CC="$lt_save_CC" |
| 17121 | |
| 17122 | else |
| 17123 | tagname="" |
| 17124 | fi |
| 17125 | ;; |
| 17126 | |
| 17127 | GCJ) |
| 17128 | if testscip-shell system . . test. -n "$GCJ" && testscip-shell system . . test. "X$GCJ" != "Xno"; then |
| 17129 | |
| 17130 | |
| 17131 | |
| 17132 | # Source file extension for Java test sources. |
| 17133 | ac_ext=java |
| 17134 | |
| 17135 | # Object file extension for compiled Java test sources. |
| 17136 | objext=o |
| 17137 | objext_GCJ=$objext |
| 17138 | |
| 17139 | # Code to be used in simple compile tests |
| 17140 | lt_simple_compile_test_code="class foo {}\n" |
| 17141 | |
| 17142 | # Code to be used in simple link tests |
| 17143 | lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' |
| 17144 | |
| 17145 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 17146 | |
| 17147 | # If no C compiler was specified, use CC. |
| 17148 | LTCC=${LTCC-"$CC"} |
| 17149 | |
| 17150 | # If no C compiler flags were specified, use CFLAGS. |
| 17151 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 17152 | |
| 17153 | # Allow CC to be a program name with arguments. |
| 17154 | compiler=$CC |
| 17155 | |
| 17156 | |
| 17157 | # save warnings/boilerplate of simple test code |
| 17158 | ac_outfile=conftest.$ac_objext |
| 17159 | printfscip-shell system . . printf. "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 17160 | eval "$ac_compile" 2>&1 >/dev/nullscip-shell filesystem . . `/dev/null`. | $SED '/^$/d; /^ *+/dscip-shell filesystem . . `/^$/d; /^ *+/d`.' >conftest.err |
| 17161 | _lt_compiler_boilerplate=`catscip-shell system . . cat. conftest.err` |
| 17162 | $rm conftest* |
| 17163 | |
| 17164 | ac_outfile=conftest.$ac_objext |
| 17165 | printfscip-shell system . . printf. "$lt_simple_link_test_code" >conftest.$ac_ext |
| 17166 | eval "$ac_link" 2>&1 >/dev/nullscip-shell filesystem . . `/dev/null`. | $SED '/^$/d; /^ *+/dscip-shell filesystem . . `/^$/d; /^ *+/d`.' >conftest.err |
| 17167 | _lt_linker_boilerplate=`catscip-shell system . . cat. conftest.err` |
| 17168 | $rm conftest* |
| 17169 | |
| 17170 | |
| 17171 | # Allow CC to be a program name with arguments. |
| 17172 | lt_save_CC="$CC" |
| 17173 | CC=${GCJ-"gcj"} |
| 17174 | compiler=$CC |
| 17175 | compiler_GCJ=$CC |
| 17176 | for cc_temp in $compiler""; do |
| 17177 | case $cc_temp in |
| 17178 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 17179 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 17180 | \-*) ;; |
| 17181 | *) break;; |
| 17182 | esac |
| 17183 | done |
| 17184 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 17185 | |
| 17186 | |
| 17187 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
| 17188 | archive_cmds_need_lc_GCJ=no |
| 17189 | |
| 17190 | old_archive_cmds_GCJ=$old_archive_cmds |
| 17191 | |
| 17192 | ## CAVEAT EMPTOR: |
| 17193 | ## There is no encapsulation within the following macros, do not change |
| 17194 | ## the running order or otherwise move them around unless you know exactly |
| 17195 | ## what you are doing... |
| 17196 | |
| 17197 | lt_prog_compiler_no_builtin_flag_GCJ= |
| 17198 | |
| 17199 | if testscip-shell system . . test. "$GCC" = yes; then |
| 17200 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
| 17201 | |
| 17202 | |
| 17203 | echoscip-shell system . . echo. "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 17204 | echoscip-shell system . . echo. $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
| 17205 | if testscip-shell system . . test. "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 17206 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 17207 | else |
| 17208 | lt_cv_prog_compiler_rtti_exceptions=no |
| 17209 | ac_outfile=conftest.$ac_objext |
| 17210 | printfscip-shell system . . printf. "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 17211 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 17212 | # Insert the option either (1) after the last *FLAGS variable, or |
| 17213 | # (2) before a word containing "conftest.", or (3) at the end. |
| 17214 | # Note that $ac_compile itself does not contain backslashes and begins |
| 17215 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 17216 | # The option is referenced via a variable to avoid confusing sed. |
| 17217 | lt_compile=`echoscip-shell system . . echo. "$ac_compile" | $SED \ |
| 17218 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 17219 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 17220 | -e 's:$: $lt_compiler_flag:'` |
| 17221 | (eval echo "\"\$as_me:17221: $lt_compile\"" >&5) |
| 17222 | (eval "$lt_compile" 2>conftest.err) |
| 17223 | ac_status=$? |
| 17224 | catscip-shell system . . cat. conftest.err >&5 |
| 17225 | echoscip-shell system . . echo. "$as_me:17225: \$? = $ac_status" >&5 |
| 17226 | if (exit $ac_status) && testscip-shell system . . test. -s "$ac_outfile"; then |
| 17227 | # The compiler can only warn and ignore the option if not recognized |
| 17228 | # So say no if there are warnings other than the usual output. |
| 17229 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/dscip-shell filesystem . . `/^$/d`.' >conftest.exp |
| 17230 | $SED '/^$/d; /^ *+/dscip-shell filesystem . . `/^$/d; /^ *+/d`.' conftest.err >conftest.er2 |
| 17231 | if testscip-shell system . . test. ! -s conftest.er2 || diffscip-shell system . . diff. conftest.exp conftest.er2 >/dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 17232 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 17233 | fi |
| 17234 | fi |
| 17235 | $rm conftest* |
| 17236 | |
| 17237 | fi |
| 17238 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 17239 | echoscip-shell system . . echo. "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
| 17240 | |
| 17241 | if testscip-shell system . . test. x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 17242 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
| 17243 | else |
| 17244 | : |
| 17245 | fi |
| 17246 | |
| 17247 | fi |
| 17248 | |
| 17249 | lt_prog_compiler_wl_GCJ= |
| 17250 | lt_prog_compiler_pic_GCJ= |
| 17251 | lt_prog_compiler_static_GCJ= |
| 17252 | |
| 17253 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 17254 | echoscip-shell system . . echo. $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
| 17255 | |
| 17256 | if testscip-shell system . . test. "$GCC" = yes; then |
| 17257 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 17258 | lt_prog_compiler_static_GCJ='-static' |
| 17259 | |
| 17260 | case $host_os in |
| 17261 | aix*) |
| 17262 | # All AIX code is PIC. |
| 17263 | if testscip-shell system . . test. "$host_cpu" = ia64; then |
| 17264 | # AIX 5 now supports IA64 processor |
| 17265 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 17266 | fi |
| 17267 | ;; |
| 17268 | |
| 17269 | amigaos*) |
| 17270 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 17271 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 17272 | # like `-m68040'. |
| 17273 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
| 17274 | ;; |
| 17275 | |
| 17276 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 17277 | # PIC is the default for these OSes. |
| 17278 | ;; |
| 17279 | |
| 17280 | mingw* | pw32* | os2*) |
| 17281 | # This hack is so that the source file can tell whether it is being |
| 17282 | # built for inclusion in a dll (and should export symbols for example). |
| 17283 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 17284 | ;; |
| 17285 | |
| 17286 | darwin* | rhapsody*) |
| 17287 | # PIC is the default on this platform |
| 17288 | # Common symbols not allowed in MH_DYLIB files |
| 17289 | lt_prog_compiler_pic_GCJ='-fno-common' |
| 17290 | ;; |
| 17291 | |
| 17292 | interix3*) |
| 17293 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 17294 | # Instead, we relocate shared libraries at runtime. |
| 17295 | ;; |
| 17296 | |
| 17297 | msdosdjgpp*) |
| 17298 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 17299 | # on systems that don't support them. |
| 17300 | lt_prog_compiler_can_build_shared_GCJ=no |
| 17301 | enable_shared=no |
| 17302 | ;; |
| 17303 | |
| 17304 | sysv4*MP*) |
| 17305 | if testscip-shell system . . test. -d /usr/necscip-shell filesystem . . `/usr/nec`.; then |
| 17306 | lt_prog_compiler_pic_GCJ=-Kconform_pic |
| 17307 | fi |
| 17308 | ;; |
| 17309 | |
| 17310 | hpux*) |
| 17311 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 17312 | # not for PA HP-UX. |
| 17313 | case $host_cpu in |
| 17314 | hppa*64*|ia64*) |
| 17315 | # +Z the default |
| 17316 | ;; |
| 17317 | *) |
| 17318 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 17319 | ;; |
| 17320 | esac |
| 17321 | ;; |
| 17322 | |
| 17323 | *) |
| 17324 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 17325 | ;; |
| 17326 | esac |
| 17327 | else |
| 17328 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 17329 | case $host_os in |
| 17330 | aix*) |
| 17331 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 17332 | if testscip-shell system . . test. "$host_cpu" = ia64; then |
| 17333 | # AIX 5 now supports IA64 processor |
| 17334 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 17335 | else |
| 17336 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
| 17337 | fi |
| 17338 | ;; |
| 17339 | darwin*) |
| 17340 | # PIC is the default on this platform |
| 17341 | # Common symbols not allowed in MH_DYLIB files |
| 17342 | case $cc_basename in |
| 17343 | xlc*) |
| 17344 | lt_prog_compiler_pic_GCJ='-qnocommon' |
| 17345 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 17346 | ;; |
| 17347 | esac |
| 17348 | ;; |
| 17349 | |
| 17350 | mingw* | pw32* | os2*) |
| 17351 | # This hack is so that the source file can tell whether it is being |
| 17352 | # built for inclusion in a dll (and should export symbols for example). |
| 17353 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 17354 | ;; |
| 17355 | |
| 17356 | hpux9* | hpux10* | hpux11*) |
| 17357 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 17358 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 17359 | # not for PA HP-UX. |
| 17360 | case $host_cpu in |
| 17361 | hppa*64*|ia64*) |
| 17362 | # +Z the default |
| 17363 | ;; |
| 17364 | *) |
| 17365 | lt_prog_compiler_pic_GCJ='+Z' |
| 17366 | ;; |
| 17367 | esac |
| 17368 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 17369 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
| 17370 | ;; |
| 17371 | |
| 17372 | irix5* | irix6* | nonstopux*) |
| 17373 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 17374 | # PIC (with -KPIC) is the default. |
| 17375 | lt_prog_compiler_static_GCJ='-non_shared' |
| 17376 | ;; |
| 17377 | |
| 17378 | newsos6) |
| 17379 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 17380 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 17381 | ;; |
| 17382 | |
| 17383 | linux*) |
| 17384 | case $cc_basename in |
| 17385 | icc* | ecc*) |
| 17386 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 17387 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 17388 | lt_prog_compiler_static_GCJ='-static' |
| 17389 | ;; |
| 17390 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 17391 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 17392 | # which looks to be a dead project) |
| 17393 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 17394 | lt_prog_compiler_pic_GCJ='-fpic' |
| 17395 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 17396 | ;; |
| 17397 | ccc*) |
| 17398 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 17399 | # All Alpha code is PIC. |
| 17400 | lt_prog_compiler_static_GCJ='-non_shared' |
| 17401 | ;; |
| 17402 | esac |
| 17403 | ;; |
| 17404 | |
| 17405 | osf3* | osf4* | osf5*) |
| 17406 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 17407 | # All OSF/1 code is PIC. |
| 17408 | lt_prog_compiler_static_GCJ='-non_shared' |
| 17409 | ;; |
| 17410 | |
| 17411 | solaris*) |
| 17412 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 17413 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 17414 | case $cc_basename in |
| 17415 | f77* | f90* | f95*) |
| 17416 | lt_prog_compiler_wl_GCJ='-Qoption ld ';; |
| 17417 | *) |
| 17418 | lt_prog_compiler_wl_GCJ='-Wl,';; |
| 17419 | esac |
| 17420 | ;; |
| 17421 | |
| 17422 | sunos4*) |
| 17423 | lt_prog_compiler_wl_GCJ='-Qoption ld ' |
| 17424 | lt_prog_compiler_pic_GCJ='-PIC' |
| 17425 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 17426 | ;; |
| 17427 | |
| 17428 | sysv4 | sysv4.2uw2* | sysv4.3*) |
| 17429 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 17430 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 17431 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 17432 | ;; |
| 17433 | |
| 17434 | sysv4*MP*) |
| 17435 | if testscip-shell system . . test. -d /usr/necscip-shell filesystem . . `/usr/nec`. ;then |
| 17436 | lt_prog_compiler_pic_GCJ='-Kconform_pic' |
| 17437 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 17438 | fi |
| 17439 | ;; |
| 17440 | |
| 17441 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 17442 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 17443 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 17444 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 17445 | ;; |
| 17446 | |
| 17447 | unicos*) |
| 17448 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 17449 | lt_prog_compiler_can_build_shared_GCJ=no |
| 17450 | ;; |
| 17451 | |
| 17452 | uts4*) |
| 17453 | lt_prog_compiler_pic_GCJ='-pic' |
| 17454 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 17455 | ;; |
| 17456 | |
| 17457 | *) |
| 17458 | lt_prog_compiler_can_build_shared_GCJ=no |
| 17459 | ;; |
| 17460 | esac |
| 17461 | fi |
| 17462 | |
| 17463 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
| 17464 | echoscip-shell system . . echo. "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 |
| 17465 | |
| 17466 | # |
| 17467 | # Check to make sure the PIC flag actually works. |
| 17468 | # |
| 17469 | if testscip-shell system . . test. -n "$lt_prog_compiler_pic_GCJ"; then |
| 17470 | |
| 17471 | echoscip-shell system . . echo. "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
| 17472 | echoscip-shell system . . echo. $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 |
| 17473 | if testscip-shell system . . test. "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
| 17474 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 17475 | else |
| 17476 | lt_prog_compiler_pic_works_GCJ=no |
| 17477 | ac_outfile=conftest.$ac_objext |
| 17478 | printfscip-shell system . . printf. "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 17479 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
| 17480 | # Insert the option either (1) after the last *FLAGS variable, or |
| 17481 | # (2) before a word containing "conftest.", or (3) at the end. |
| 17482 | # Note that $ac_compile itself does not contain backslashes and begins |
| 17483 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 17484 | # The option is referenced via a variable to avoid confusing sed. |
| 17485 | lt_compile=`echoscip-shell system . . echo. "$ac_compile" | $SED \ |
| 17486 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 17487 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 17488 | -e 's:$: $lt_compiler_flag:'` |
| 17489 | (eval echo "\"\$as_me:17489: $lt_compile\"" >&5) |
| 17490 | (eval "$lt_compile" 2>conftest.err) |
| 17491 | ac_status=$? |
| 17492 | catscip-shell system . . cat. conftest.err >&5 |
| 17493 | echoscip-shell system . . echo. "$as_me:17493: \$? = $ac_status" >&5 |
| 17494 | if (exit $ac_status) && testscip-shell system . . test. -s "$ac_outfile"; then |
| 17495 | # The compiler can only warn and ignore the option if not recognized |
| 17496 | # So say no if there are warnings other than the usual output. |
| 17497 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/dscip-shell filesystem . . `/^$/d`.' >conftest.exp |
| 17498 | $SED '/^$/d; /^ *+/dscip-shell filesystem . . `/^$/d; /^ *+/d`.' conftest.err >conftest.er2 |
| 17499 | if testscip-shell system . . test. ! -s conftest.er2 || diffscip-shell system . . diff. conftest.exp conftest.er2 >/dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 17500 | lt_prog_compiler_pic_works_GCJ=yes |
| 17501 | fi |
| 17502 | fi |
| 17503 | $rm conftest* |
| 17504 | |
| 17505 | fi |
| 17506 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
| 17507 | echoscip-shell system . . echo. "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 |
| 17508 | |
| 17509 | if testscip-shell system . . test. x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
| 17510 | case $lt_prog_compiler_pic_GCJ in |
| 17511 | "" | " "*) ;; |
| 17512 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
| 17513 | esac |
| 17514 | else |
| 17515 | lt_prog_compiler_pic_GCJ= |
| 17516 | lt_prog_compiler_can_build_shared_GCJ=no |
| 17517 | fi |
| 17518 | |
| 17519 | fi |
| 17520 | case $host_os in |
| 17521 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 17522 | *djgpp*) |
| 17523 | lt_prog_compiler_pic_GCJ= |
| 17524 | ;; |
| 17525 | *) |
| 17526 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
| 17527 | ;; |
| 17528 | esac |
| 17529 | |
| 17530 | # |
| 17531 | # Check to make sure the static flag actually works. |
| 17532 | # |
| 17533 | wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" |
| 17534 | echoscip-shell system . . echo. "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 17535 | echoscip-shell system . . echo. $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 |
| 17536 | if testscip-shell system . . test. "${lt_prog_compiler_static_works_GCJ+set}" = set; then |
| 17537 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 17538 | else |
| 17539 | lt_prog_compiler_static_works_GCJ=no |
| 17540 | save_LDFLAGS="$LDFLAGS" |
| 17541 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 17542 | printfscip-shell system . . printf. "$lt_simple_link_test_code" > conftest.$ac_ext |
| 17543 | if (eval $ac_link 2>conftest.err) && testscip-shell system . . test. -s conftest$ac_exeext; then |
| 17544 | # The linker can only warn and ignore the option if not recognized |
| 17545 | # So say no if there are warnings |
| 17546 | if testscip-shell system . . test. -s conftest.err; then |
| 17547 | # Append any errors to the config.log. |
| 17548 | catscip-shell system . . cat. conftest.err 1>&5 |
| 17549 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/dscip-shell filesystem . . `/^$/d`.' > conftest.exp |
| 17550 | $SED '/^$/d; /^ *+/dscip-shell filesystem . . `/^$/d; /^ *+/d`.' conftest.err >conftest.er2 |
| 17551 | if diffscip-shell system . . diff. conftest.exp conftest.er2 >/dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 17552 | lt_prog_compiler_static_works_GCJ=yes |
| 17553 | fi |
| 17554 | else |
| 17555 | lt_prog_compiler_static_works_GCJ=yes |
| 17556 | fi |
| 17557 | fi |
| 17558 | $rm conftest* |
| 17559 | LDFLAGS="$save_LDFLAGS" |
| 17560 | |
| 17561 | fi |
| 17562 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 |
| 17563 | echoscip-shell system . . echo. "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6 |
| 17564 | |
| 17565 | if testscip-shell system . . test. x"$lt_prog_compiler_static_works_GCJ" = xyes; then |
| 17566 | : |
| 17567 | else |
| 17568 | lt_prog_compiler_static_GCJ= |
| 17569 | fi |
| 17570 | |
| 17571 | |
| 17572 | echoscip-shell system . . echo. "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 17573 | echoscip-shell system . . echo. $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
| 17574 | if testscip-shell system . . test. "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
| 17575 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 17576 | else |
| 17577 | lt_cv_prog_compiler_c_o_GCJ=no |
| 17578 | $rm -r conftest 2>/dev/nullscip-shell filesystem . . `/dev/null`. |
| 17579 | mkdirscip-shell system . . mkdir. conftest |
| 17580 | cd conftest |
| 17581 | mkdirscip-shell system . . mkdir. out |
| 17582 | printfscip-shell system . . printf. "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 17583 | |
| 17584 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 17585 | # Insert the option either (1) after the last *FLAGS variable, or |
| 17586 | # (2) before a word containing "conftest.", or (3) at the end. |
| 17587 | # Note that $ac_compile itself does not contain backslashes and begins |
| 17588 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 17589 | lt_compile=`echoscip-shell system . . echo. "$ac_compile" | $SED \ |
| 17590 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 17591 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 17592 | -e 's:$: $lt_compiler_flag:'` |
| 17593 | (eval echo "\"\$as_me:17593: $lt_compile\"" >&5) |
| 17594 | (eval "$lt_compile" 2>out/conftest.err) |
| 17595 | ac_status=$? |
| 17596 | catscip-shell system . . cat. out/conftest.err >&5 |
| 17597 | echoscip-shell system . . echo. "$as_me:17597: \$? = $ac_status" >&5 |
| 17598 | if (exit $ac_status) && testscip-shell system . . test. -s out/conftest2.$ac_objext |
| 17599 | then |
| 17600 | # The compiler can only warn and ignore the option if not recognized |
| 17601 | # So say no if there are warnings |
| 17602 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/dscip-shell filesystem . . `/^$/d`.' > out/conftest.exp |
| 17603 | $SED '/^$/d; /^ *+/dscip-shell filesystem . . `/^$/d; /^ *+/d`.' out/conftest.err >out/conftest.er2 |
| 17604 | if testscip-shell system . . test. ! -s out/conftest.er2 || diffscip-shell system . . diff. out/conftest.exp out/conftest.er2 >/dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 17605 | lt_cv_prog_compiler_c_o_GCJ=yes |
| 17606 | fi |
| 17607 | fi |
| 17608 | chmodscip-shell system . . chmod. u+w . 2>&5 |
| 17609 | $rm conftest* |
| 17610 | # SGI C++ compiler will create directory out/ii_files/ for |
| 17611 | # template instantiation |
| 17612 | testscip-shell system . . test. -d out/ii_files && $rm out/ii_files/* && rmdirscip-shell system . . rmdir. out/ii_files |
| 17613 | $rm out/* && rmdirscip-shell system . . rmdir. out |
| 17614 | cd .. |
| 17615 | rmdirscip-shell system . . rmdir. conftest |
| 17616 | $rm conftest* |
| 17617 | |
| 17618 | fi |
| 17619 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
| 17620 | echoscip-shell system . . echo. "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 |
| 17621 | |
| 17622 | |
| 17623 | hard_links="nottested" |
| 17624 | if testscip-shell system . . test. "$lt_cv_prog_compiler_c_o_GCJ" = no && testscip-shell system . . test. "$need_locks" != no; then |
| 17625 | # do not overwrite the value of need_locks provided by the user |
| 17626 | echoscip-shell system . . echo. "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 17627 | echoscip-shell system . . echo. $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 17628 | hard_links=yes |
| 17629 | $rm conftest* |
| 17630 | lnscip-shell system . . ln. conftest.a conftest.b 2>/dev/nullscip-shell filesystem . . `/dev/null`. && hard_links=no |
| 17631 | touchscip-shell system . . touch. conftest.a |
| 17632 | lnscip-shell system . . ln. conftest.a conftest.b 2>&5 || hard_links=no |
| 17633 | lnscip-shell system . . ln. conftest.a conftest.b 2>/dev/nullscip-shell filesystem . . `/dev/null`. && hard_links=no |
| 17634 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $hard_links" >&5 |
| 17635 | echoscip-shell system . . echo. "${ECHO_T}$hard_links" >&6 |
| 17636 | if testscip-shell system . . test. "$hard_links" = no; then |
| 17637 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 17638 | echoscip-shell system . . echo. "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 17639 | need_locks=warn |
| 17640 | fi |
| 17641 | else |
| 17642 | need_locks=no |
| 17643 | fi |
| 17644 | |
| 17645 | echoscip-shell system . . echo. "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 17646 | echoscip-shell system . . echo. $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 17647 | |
| 17648 | runpath_var= |
| 17649 | allow_undefined_flag_GCJ= |
| 17650 | enable_shared_with_static_runtimes_GCJ=no |
| 17651 | archive_cmds_GCJ= |
| 17652 | archive_expsym_cmds_GCJ= |
| 17653 | old_archive_From_new_cmds_GCJ= |
| 17654 | old_archive_from_expsyms_cmds_GCJ= |
| 17655 | export_dynamic_flag_spec_GCJ= |
| 17656 | whole_archive_flag_spec_GCJ= |
| 17657 | thread_safe_flag_spec_GCJ= |
| 17658 | hardcode_libdir_flag_spec_GCJ= |
| 17659 | hardcode_libdir_flag_spec_ld_GCJ= |
| 17660 | hardcode_libdir_separator_GCJ= |
| 17661 | hardcode_direct_GCJ=no |
| 17662 | hardcode_minus_L_GCJ=no |
| 17663 | hardcode_shlibpath_var_GCJ=unsupported |
| 17664 | link_all_deplibs_GCJ=unknown |
| 17665 | hardcode_automatic_GCJ=no |
| 17666 | module_cmds_GCJ= |
| 17667 | module_expsym_cmds_GCJ= |
| 17668 | always_export_symbols_GCJ=no |
| 17669 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 17670 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 17671 | # included in the symbol list |
| 17672 | include_expsyms_GCJ= |
| 17673 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 17674 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 17675 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 17676 | # as well as any symbol that contains `d'. |
| 17677 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
| 17678 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 17679 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 17680 | # the symbol is explicitly referenced. Since portable code cannot |
| 17681 | # rely on this symbol name, it's probably fine to never include it in |
| 17682 | # preloaded symbol tables. |
| 17683 | extract_expsyms_cmds= |
| 17684 | # Just being paranoid about ensuring that cc_basename is set. |
| 17685 | for cc_temp in $compiler""; do |
| 17686 | case $cc_temp in |
| 17687 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 17688 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 17689 | \-*) ;; |
| 17690 | *) break;; |
| 17691 | esac |
| 17692 | done |
| 17693 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 17694 | |
| 17695 | case $host_os in |
| 17696 | cygwin* | mingw* | pw32*) |
| 17697 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 17698 | # When not using gcc, we currently assume that we are using |
| 17699 | # Microsoft Visual C++. |
| 17700 | if testscip-shell system . . test. "$GCC" != yes; then |
| 17701 | with_gnu_ld=no |
| 17702 | fi |
| 17703 | ;; |
| 17704 | interix*) |
| 17705 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 17706 | with_gnu_ld=yes |
| 17707 | ;; |
| 17708 | openbsd*) |
| 17709 | with_gnu_ld=no |
| 17710 | ;; |
| 17711 | esac |
| 17712 | |
| 17713 | ld_shlibs_GCJ=yes |
| 17714 | if testscip-shell system . . test. "$with_gnu_ld" = yes; then |
| 17715 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 17716 | wlarc='${wl}' |
| 17717 | |
| 17718 | # Set some defaults for GNU ld with shared library support. These |
| 17719 | # are reset later if shared libraries are not supported. Putting them |
| 17720 | # here allows them to be overridden if necessary. |
| 17721 | runpath_var=LD_RUN_PATH |
| 17722 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
| 17723 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
| 17724 | # ancient GNU ld didn't support --whole-archive et. al. |
| 17725 | if $LD --help 2>&1 | grepscip-shell system . . grep. 'no-whole-archive' > /dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 17726 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 17727 | else |
| 17728 | whole_archive_flag_spec_GCJ= |
| 17729 | fi |
| 17730 | supports_anon_versioning=no |
| 17731 | case `$LD -v 2>/dev/nullscip-shell filesystem . . `/dev/null`.` in |
| 17732 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 17733 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 17734 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 17735 | *\ 2.11.*) ;; # other 2.11 versions |
| 17736 | *) supports_anon_versioning=yes ;; |
| 17737 | esac |
| 17738 | |
| 17739 | # See if GNU ld supports shared libraries. |
| 17740 | case $host_os in |
| 17741 | aix3* | aix4* | aix5*) |
| 17742 | # On AIX/PPC, the GNU linker is very broken |
| 17743 | if testscip-shell system . . test. "$host_cpu" != ia64; then |
| 17744 | ld_shlibs_GCJ=no |
| 17745 | catscip-shell system . . cat. <<EOF 1>&2 |
| 17746 | |
| 17747 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 17748 | *** to be unable to reliably create shared libraries on AIX. |
| 17749 | *** Therefore, libtool is disabling shared libraries support. If you |
| 17750 | *** really care for shared libraries, you may want to modify your PATH |
| 17751 | *** so that a non-GNU linker is found, and then restart. |
| 17752 | |
| 17753 | EOF |
| 17754 | fi |
| 17755 | ;; |
| 17756 | |
| 17757 | amigaos*) |
| 17758 | archive_cmds_GCJ='$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)' |
| 17759 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 17760 | hardcode_minus_L_GCJ=yes |
| 17761 | |
| 17762 | # Samuel A. Falvo II <[email protected]> reports |
| 17763 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 17764 | # to version 4, is to share data among multiple programs linked |
| 17765 | # with the same dynamic library. Since this doesn't match the |
| 17766 | # behavior of shared libraries on other platforms, we can't use |
| 17767 | # them. |
| 17768 | ld_shlibs_GCJ=no |
| 17769 | ;; |
| 17770 | |
| 17771 | beos*) |
| 17772 | if $LD --help 2>&1 | grepscip-shell system . . grep. ': supported targets:.* elf' > /dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 17773 | allow_undefined_flag_GCJ=unsupported |
| 17774 | # Joseph Beckenbach <[email protected]> says some releases of gcc |
| 17775 | # support --undefined. This deserves some investigation. FIXME |
| 17776 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 17777 | else |
| 17778 | ld_shlibs_GCJ=no |
| 17779 | fi |
| 17780 | ;; |
| 17781 | |
| 17782 | cygwin* | mingw* | pw32*) |
| 17783 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
| 17784 | # as there is no search path for DLLs. |
| 17785 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 17786 | allow_undefined_flag_GCJ=unsupported |
| 17787 | always_export_symbols_GCJ=no |
| 17788 | enable_shared_with_static_runtimes_GCJ=yes |
| 17789 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 17790 | |
| 17791 | if $LD --help 2>&1 | grepscip-shell system . . grep. 'auto-import' > /dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 17792 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 17793 | # If the export-symbols file already is a .def file (1st line |
| 17794 | # is EXPORTS), use it as is; otherwise, prepend... |
| 17795 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 17796 | cp $export_symbols $output_objdir/$soname.def; |
| 17797 | else |
| 17798 | echo EXPORTS > $output_objdir/$soname.def; |
| 17799 | cat $export_symbols >> $output_objdir/$soname.def; |
| 17800 | fi~ |
| 17801 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 17802 | else |
| 17803 | ld_shlibs_GCJ=no |
| 17804 | fi |
| 17805 | ;; |
| 17806 | |
| 17807 | interix3*) |
| 17808 | hardcode_direct_GCJ=no |
| 17809 | hardcode_shlibpath_var_GCJ=no |
| 17810 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 17811 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 17812 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 17813 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 17814 | # default) and relocated if they conflict, which is a slow very memory |
| 17815 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 17816 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 17817 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 17818 | archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 17819 | archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 17820 | ;; |
| 17821 | |
| 17822 | linux*) |
| 17823 | if $LD --help 2>&1 | grepscip-shell system . . grep. ': supported targets:.* elf' > /dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 17824 | tmp_addflag= |
| 17825 | case $cc_basename,$host_cpu in |
| 17826 | pgcc*) # Portland Group C compiler |
| 17827 | whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
| 17828 | tmp_addflag=' $pic_flag' |
| 17829 | ;; |
| 17830 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 17831 | whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
| 17832 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 17833 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 17834 | tmp_addflag=' -i_dynamic' ;; |
| 17835 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 17836 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 17837 | ifc* | ifort*) # Intel Fortran compiler |
| 17838 | tmp_addflag=' -nofor_main' ;; |
| 17839 | esac |
| 17840 | archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 17841 | |
| 17842 | if testscip-shell system . . test. $supports_anon_versioning = yes; then |
| 17843 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 17844 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 17845 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 17846 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 17847 | fi |
| 17848 | else |
| 17849 | ld_shlibs_GCJ=no |
| 17850 | fi |
| 17851 | ;; |
| 17852 | |
| 17853 | netbsd*) |
| 17854 | if echoscip-shell system . . echo. __ELF__ | $CC -E - | grepscip-shell system . . grep. __ELF__ >/dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 17855 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 17856 | wlarc= |
| 17857 | else |
| 17858 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 17859 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 17860 | fi |
| 17861 | ;; |
| 17862 | |
| 17863 | solaris*) |
| 17864 | if $LD -v 2>&1 | grepscip-shell system . . grep. 'BFD 2\.8' > /dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 17865 | ld_shlibs_GCJ=no |
| 17866 | catscip-shell system . . cat. <<EOF 1>&2 |
| 17867 | |
| 17868 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 17869 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 17870 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 17871 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 17872 | *** your PATH or compiler configuration so that the native linker is |
| 17873 | *** used, and then restart. |
| 17874 | |
| 17875 | EOF |
| 17876 | elif $LD --help 2>&1 | grepscip-shell system . . grep. ': supported targets:.* elf' > /dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 17877 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 17878 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 17879 | else |
| 17880 | ld_shlibs_GCJ=no |
| 17881 | fi |
| 17882 | ;; |
| 17883 | |
| 17884 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 17885 | case `$LD -v 2>&1` in |
| 17886 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 17887 | ld_shlibs_GCJ=no |
| 17888 | catscip-shell system . . cat. <<_LT_EOF 1>&2 |
| 17889 | |
| 17890 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 17891 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 17892 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 17893 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 17894 | *** your PATH or compiler configuration so that the native linker is |
| 17895 | *** used, and then restart. |
| 17896 | |
| 17897 | _LT_EOF |
| 17898 | ;; |
| 17899 | *) |
| 17900 | if $LD --help 2>&1 | grepscip-shell system . . grep. ': supported targets:.* elf' > /dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 17901 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 17902 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 17903 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 17904 | else |
| 17905 | ld_shlibs_GCJ=no |
| 17906 | fi |
| 17907 | ;; |
| 17908 | esac |
| 17909 | ;; |
| 17910 | |
| 17911 | sunos4*) |
| 17912 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 17913 | wlarc= |
| 17914 | hardcode_direct_GCJ=yes |
| 17915 | hardcode_shlibpath_var_GCJ=no |
| 17916 | ;; |
| 17917 | |
| 17918 | *) |
| 17919 | if $LD --help 2>&1 | grepscip-shell system . . grep. ': supported targets:.* elf' > /dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 17920 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 17921 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 17922 | else |
| 17923 | ld_shlibs_GCJ=no |
| 17924 | fi |
| 17925 | ;; |
| 17926 | esac |
| 17927 | |
| 17928 | if testscip-shell system . . test. "$ld_shlibs_GCJ" = no; then |
| 17929 | runpath_var= |
| 17930 | hardcode_libdir_flag_spec_GCJ= |
| 17931 | export_dynamic_flag_spec_GCJ= |
| 17932 | whole_archive_flag_spec_GCJ= |
| 17933 | fi |
| 17934 | else |
| 17935 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 17936 | case $host_os in |
| 17937 | aix3*) |
| 17938 | allow_undefined_flag_GCJ=unsupported |
| 17939 | always_export_symbols_GCJ=yes |
| 17940 | archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' |
| 17941 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 17942 | # are no directories specified by -L. |
| 17943 | hardcode_minus_L_GCJ=yes |
| 17944 | if testscip-shell system . . test. "$GCC" = yes && testscip-shell system . . test. -z "$lt_prog_compiler_static"; then |
| 17945 | # Neither direct hardcoding nor static linking is supported with a |
| 17946 | # broken collect2. |
| 17947 | hardcode_direct_GCJ=unsupported |
| 17948 | fi |
| 17949 | ;; |
| 17950 | |
| 17951 | aix4* | aix5*) |
| 17952 | if testscip-shell system . . test. "$host_cpu" = ia64; then |
| 17953 | # On IA64, the linker does run time linking by default, so we don't |
| 17954 | # have to do anything special. |
| 17955 | aix_use_runtimelinking=no |
| 17956 | exp_sym_flag='-Bexport' |
| 17957 | no_entry_flag="" |
| 17958 | else |
| 17959 | # If we're using GNU nm, then we don't want the "-C" option. |
| 17960 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 17961 | if $NM -V 2>&1 | grepscip-shell system . . grep. 'GNU' > /dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 17962 | export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
| 17963 | else |
| 17964 | export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
| 17965 | fi |
| 17966 | aix_use_runtimelinking=no |
| 17967 | |
| 17968 | # Test if we are trying to use run time linking or normal |
| 17969 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 17970 | # need to do runtime linking. |
| 17971 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 17972 | for ld_flag in $LDFLAGS; do |
| 17973 | if (testscip-shell system . . test. $ld_flag = "-brtl" || testscip-shell system . . test. $ld_flag = "-Wl,-brtl"); then |
| 17974 | aix_use_runtimelinking=yes |
| 17975 | break |
| 17976 | fi |
| 17977 | done |
| 17978 | ;; |
| 17979 | esac |
| 17980 | |
| 17981 | exp_sym_flag='-bexport' |
| 17982 | no_entry_flag='-bnoentry' |
| 17983 | fi |
| 17984 | |
| 17985 | # When large executables or shared objects are built, AIX ld can |
| 17986 | # have problems creating the table of contents. If linking a library |
| 17987 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 17988 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 17989 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 17990 | |
| 17991 | archive_cmds_GCJ='' |
| 17992 | hardcode_direct_GCJ=yes |
| 17993 | hardcode_libdir_separator_GCJ=':' |
| 17994 | link_all_deplibs_GCJ=yes |
| 17995 | |
| 17996 | if testscip-shell system . . test. "$GCC" = yes; then |
| 17997 | case $host_os in aix4.[012]|aix4.[012].*) |
| 17998 | # We only want to do this on AIX 4.2 and lower, the check |
| 17999 | # below for broken collect2 doesn't work under 4.3+ |
| 18000 | collect2name=`${CC} -print-prog-name=collect2` |
| 18001 | if testscip-shell system . . test. -f "$collect2name" && \ |
| 18002 | strings "$collect2name" | grepscip-shell system . . grep. resolve_lib_name >/dev/nullscip-shell filesystem . . `/dev/null`. |
| 18003 | then |
| 18004 | # We have reworked collect2 |
| 18005 | hardcode_direct_GCJ=yes |
| 18006 | else |
| 18007 | # We have old collect2 |
| 18008 | hardcode_direct_GCJ=unsupported |
| 18009 | # It fails to find uninstalled libraries when the uninstalled |
| 18010 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 18011 | # to unsupported forces relinking |
| 18012 | hardcode_minus_L_GCJ=yes |
| 18013 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 18014 | hardcode_libdir_separator_GCJ= |
| 18015 | fi |
| 18016 | ;; |
| 18017 | esac |
| 18018 | shared_flag='-shared' |
| 18019 | if testscip-shell system . . test. "$aix_use_runtimelinking" = yes; then |
| 18020 | shared_flag="$shared_flag "'${wl}-G' |
| 18021 | fi |
| 18022 | else |
| 18023 | # not using gcc |
| 18024 | if testscip-shell system . . test. "$host_cpu" = ia64; then |
| 18025 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 18026 | # chokes on -Wl,-G. The following line is correct: |
| 18027 | shared_flag='-G' |
| 18028 | else |
| 18029 | if testscip-shell system . . test. "$aix_use_runtimelinking" = yes; then |
| 18030 | shared_flag='${wl}-G' |
| 18031 | else |
| 18032 | shared_flag='${wl}-bM:SRE' |
| 18033 | fi |
| 18034 | fi |
| 18035 | fi |
| 18036 | |
| 18037 | # It seems that -bexpall does not export symbols beginning with |
| 18038 | # underscore (_), so it is better to generate a list of symbols to export. |
| 18039 | always_export_symbols_GCJ=yes |
| 18040 | if testscip-shell system . . test. "$aix_use_runtimelinking" = yes; then |
| 18041 | # Warning - without using the other runtime loading flags (-brtl), |
| 18042 | # -berok will link without error, but may produce a broken library. |
| 18043 | allow_undefined_flag_GCJ='-berok' |
| 18044 | # Determine the default libpath from the value encoded in an empty executable. |
| 18045 | catscip-shell system . . cat. >conftest.$ac_ext <<_ACEOF |
| 18046 | /* confdefs.h. */ |
| 18047 | _ACEOF |
| 18048 | catscip-shell system . . cat. confdefs.h >>conftest.$ac_ext |
| 18049 | catscip-shell system . . cat. >>conftest.$ac_ext <<_ACEOF |
| 18050 | /* end confdefs.h. */ |
| 18051 | |
| 18052 | int |
| 18053 | main () |
| 18054 | { |
| 18055 | |
| 18056 | ; |
| 18057 | return 0; |
| 18058 | } |
| 18059 | _ACEOF |
| 18060 | rmscip-shell system . . rm. -f conftest.$ac_objext conftest$ac_exeext |
| 18061 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18062 | (eval $ac_link) 2>conftest.er1 |
| 18063 | ac_status=$? |
| 18064 | grepscip-shell system . . grep. -v '^ *+' conftest.er1 >conftest.err |
| 18065 | rmscip-shell system . . rm. -f conftest.er1 |
| 18066 | catscip-shell system . . cat. conftest.err >&5 |
| 18067 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18068 | (exit $ac_status); } && |
| 18069 | { ac_try='test -z "$ac_c_werror_flag" |
| 18070 | || test ! -s conftest.err' |
| 18071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18072 | (eval $ac_try) 2>&5 |
| 18073 | ac_status=$? |
| 18074 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18075 | (exit $ac_status); }; } && |
| 18076 | { ac_try='test -s conftest$ac_exeext' |
| 18077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18078 | (eval $ac_try) 2>&5 |
| 18079 | ac_status=$? |
| 18080 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18081 | (exit $ac_status); }; }; then |
| 18082 | |
| 18083 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/nullscip-shell filesystem . . `/dev/null`. | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 18084 | }'` |
| 18085 | # Check for a 64-bit object if we didn't find anything. |
| 18086 | if testscip-shell system . . test. -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/nullscip-shell filesystem . . `/dev/null`. | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 18087 | }'`; fi |
| 18088 | else |
| 18089 | echoscip-shell system . . echo. "$as_me: failed program was:" >&5 |
| 18090 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 18091 | |
| 18092 | fi |
| 18093 | rmscip-shell system . . rm. -f conftest.err conftest.$ac_objext \ |
| 18094 | conftest$ac_exeext conftest.$ac_ext |
| 18095 | if testscip-shell system . . test. -z "$aix_libpath"; then aix_libpath="/usr/lib:/libscip-shell filesystem . . `/usr/lib:/lib`."; fi |
| 18096 | |
| 18097 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 18098 | archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
| 18099 | else |
| 18100 | if testscip-shell system . . test. "$host_cpu" = ia64; then |
| 18101 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
| 18102 | allow_undefined_flag_GCJ="-z nodefs" |
| 18103 | archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" |
| 18104 | else |
| 18105 | # Determine the default libpath from the value encoded in an empty executable. |
| 18106 | catscip-shell system . . cat. >conftest.$ac_ext <<_ACEOF |
| 18107 | /* confdefs.h. */ |
| 18108 | _ACEOF |
| 18109 | catscip-shell system . . cat. confdefs.h >>conftest.$ac_ext |
| 18110 | catscip-shell system . . cat. >>conftest.$ac_ext <<_ACEOF |
| 18111 | /* end confdefs.h. */ |
| 18112 | |
| 18113 | int |
| 18114 | main () |
| 18115 | { |
| 18116 | |
| 18117 | ; |
| 18118 | return 0; |
| 18119 | } |
| 18120 | _ACEOF |
| 18121 | rmscip-shell system . . rm. -f conftest.$ac_objext conftest$ac_exeext |
| 18122 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18123 | (eval $ac_link) 2>conftest.er1 |
| 18124 | ac_status=$? |
| 18125 | grepscip-shell system . . grep. -v '^ *+' conftest.er1 >conftest.err |
| 18126 | rmscip-shell system . . rm. -f conftest.er1 |
| 18127 | catscip-shell system . . cat. conftest.err >&5 |
| 18128 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18129 | (exit $ac_status); } && |
| 18130 | { ac_try='test -z "$ac_c_werror_flag" |
| 18131 | || test ! -s conftest.err' |
| 18132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18133 | (eval $ac_try) 2>&5 |
| 18134 | ac_status=$? |
| 18135 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18136 | (exit $ac_status); }; } && |
| 18137 | { ac_try='test -s conftest$ac_exeext' |
| 18138 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18139 | (eval $ac_try) 2>&5 |
| 18140 | ac_status=$? |
| 18141 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18142 | (exit $ac_status); }; }; then |
| 18143 | |
| 18144 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/nullscip-shell filesystem . . `/dev/null`. | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 18145 | }'` |
| 18146 | # Check for a 64-bit object if we didn't find anything. |
| 18147 | if testscip-shell system . . test. -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/nullscip-shell filesystem . . `/dev/null`. | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 18148 | }'`; fi |
| 18149 | else |
| 18150 | echoscip-shell system . . echo. "$as_me: failed program was:" >&5 |
| 18151 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 18152 | |
| 18153 | fi |
| 18154 | rmscip-shell system . . rm. -f conftest.err conftest.$ac_objext \ |
| 18155 | conftest$ac_exeext conftest.$ac_ext |
| 18156 | if testscip-shell system . . test. -z "$aix_libpath"; then aix_libpath="/usr/lib:/libscip-shell filesystem . . `/usr/lib:/lib`."; fi |
| 18157 | |
| 18158 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 18159 | # Warning - without using the other run time loading flags, |
| 18160 | # -berok will link without error, but may produce a broken library. |
| 18161 | no_undefined_flag_GCJ=' ${wl}-bernotok' |
| 18162 | allow_undefined_flag_GCJ=' ${wl}-berok' |
| 18163 | # Exported symbols can be pulled into shared objects from archives |
| 18164 | whole_archive_flag_spec_GCJ='$convenience' |
| 18165 | archive_cmds_need_lc_GCJ=yes |
| 18166 | # This is similar to how AIX traditionally builds its shared libraries. |
| 18167 | archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
| 18168 | fi |
| 18169 | fi |
| 18170 | ;; |
| 18171 | |
| 18172 | amigaos*) |
| 18173 | archive_cmds_GCJ='$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)' |
| 18174 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 18175 | hardcode_minus_L_GCJ=yes |
| 18176 | # see comment about different semantics on the GNU ld section |
| 18177 | ld_shlibs_GCJ=no |
| 18178 | ;; |
| 18179 | |
| 18180 | bsdi[45]*) |
| 18181 | export_dynamic_flag_spec_GCJ=-rdynamic |
| 18182 | ;; |
| 18183 | |
| 18184 | cygwin* | mingw* | pw32*) |
| 18185 | # When not using gcc, we currently assume that we are using |
| 18186 | # Microsoft Visual C++. |
| 18187 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 18188 | # no search path for DLLs. |
| 18189 | hardcode_libdir_flag_spec_GCJ=' ' |
| 18190 | allow_undefined_flag_GCJ=unsupported |
| 18191 | # Tell ltmain to make .lib files, not .a files. |
| 18192 | libext=lib |
| 18193 | # Tell ltmain to make .dll files, not .so files. |
| 18194 | shrext_cmds=".dll" |
| 18195 | # FIXME: Setting linknames here is a bad hack. |
| 18196 | archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 18197 | # The linker will automatically build a .lib file if we build a DLL. |
| 18198 | old_archive_From_new_cmds_GCJ='true' |
| 18199 | # FIXME: Should let the user specify the lib program. |
| 18200 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 18201 | fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' |
| 18202 | enable_shared_with_static_runtimes_GCJ=yes |
| 18203 | ;; |
| 18204 | |
| 18205 | darwin* | rhapsody*) |
| 18206 | case $host_os in |
| 18207 | rhapsody* | darwin1.[012]) |
| 18208 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' |
| 18209 | ;; |
| 18210 | *) # Darwin 1.3 on |
| 18211 | if testscip-shell system . . test. -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 18212 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 18213 | else |
| 18214 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 18215 | 10.[012]) |
| 18216 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 18217 | ;; |
| 18218 | 10.*) |
| 18219 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' |
| 18220 | ;; |
| 18221 | esac |
| 18222 | fi |
| 18223 | ;; |
| 18224 | esac |
| 18225 | archive_cmds_need_lc_GCJ=no |
| 18226 | hardcode_direct_GCJ=no |
| 18227 | hardcode_automatic_GCJ=yes |
| 18228 | hardcode_shlibpath_var_GCJ=unsupported |
| 18229 | whole_archive_flag_spec_GCJ='' |
| 18230 | link_all_deplibs_GCJ=yes |
| 18231 | if testscip-shell system . . test. "$GCC" = yes ; then |
| 18232 | output_verbose_link_cmd='echo' |
| 18233 | archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 18234 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 18235 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 18236 | archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 18237 | module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 18238 | else |
| 18239 | case $cc_basename in |
| 18240 | xlc*) |
| 18241 | output_verbose_link_cmd='echo' |
| 18242 | archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 18243 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 18244 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 18245 | archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 18246 | module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 18247 | ;; |
| 18248 | *) |
| 18249 | ld_shlibs_GCJ=no |
| 18250 | ;; |
| 18251 | esac |
| 18252 | fi |
| 18253 | ;; |
| 18254 | |
| 18255 | dgux*) |
| 18256 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 18257 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 18258 | hardcode_shlibpath_var_GCJ=no |
| 18259 | ;; |
| 18260 | |
| 18261 | freebsd1*) |
| 18262 | ld_shlibs_GCJ=no |
| 18263 | ;; |
| 18264 | |
| 18265 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 18266 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 18267 | # does not break anything, and helps significantly (at the cost of a little |
| 18268 | # extra space). |
| 18269 | freebsd2.2*) |
| 18270 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 18271 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 18272 | hardcode_direct_GCJ=yes |
| 18273 | hardcode_shlibpath_var_GCJ=no |
| 18274 | ;; |
| 18275 | |
| 18276 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 18277 | freebsd2*) |
| 18278 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 18279 | hardcode_direct_GCJ=yes |
| 18280 | hardcode_minus_L_GCJ=yes |
| 18281 | hardcode_shlibpath_var_GCJ=no |
| 18282 | ;; |
| 18283 | |
| 18284 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 18285 | freebsd* | kfreebsd*-gnu | dragonfly*) |
| 18286 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 18287 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 18288 | hardcode_direct_GCJ=yes |
| 18289 | hardcode_shlibpath_var_GCJ=no |
| 18290 | ;; |
| 18291 | |
| 18292 | hpux9*) |
| 18293 | if testscip-shell system . . test. "$GCC" = yes; then |
| 18294 | archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 18295 | else |
| 18296 | archive_cmds_GCJ='$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' |
| 18297 | fi |
| 18298 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 18299 | hardcode_libdir_separator_GCJ=: |
| 18300 | hardcode_direct_GCJ=yes |
| 18301 | |
| 18302 | # hardcode_minus_L: Not really in the search PATH, |
| 18303 | # but as the default location of the library. |
| 18304 | hardcode_minus_L_GCJ=yes |
| 18305 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 18306 | ;; |
| 18307 | |
| 18308 | hpux10*) |
| 18309 | if testscip-shell system . . test. "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 18310 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 18311 | else |
| 18312 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 18313 | fi |
| 18314 | if testscip-shell system . . test. "$with_gnu_ld" = no; then |
| 18315 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 18316 | hardcode_libdir_separator_GCJ=: |
| 18317 | |
| 18318 | hardcode_direct_GCJ=yes |
| 18319 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 18320 | |
| 18321 | # hardcode_minus_L: Not really in the search PATH, |
| 18322 | # but as the default location of the library. |
| 18323 | hardcode_minus_L_GCJ=yes |
| 18324 | fi |
| 18325 | ;; |
| 18326 | |
| 18327 | hpux11*) |
| 18328 | if testscip-shell system . . test. "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 18329 | case $host_cpu in |
| 18330 | hppa*64*) |
| 18331 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18332 | ;; |
| 18333 | ia64*) |
| 18334 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 18335 | ;; |
| 18336 | *) |
| 18337 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 18338 | ;; |
| 18339 | esac |
| 18340 | else |
| 18341 | case $host_cpu in |
| 18342 | hppa*64*) |
| 18343 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18344 | ;; |
| 18345 | ia64*) |
| 18346 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 18347 | ;; |
| 18348 | *) |
| 18349 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 18350 | ;; |
| 18351 | esac |
| 18352 | fi |
| 18353 | if testscip-shell system . . test. "$with_gnu_ld" = no; then |
| 18354 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 18355 | hardcode_libdir_separator_GCJ=: |
| 18356 | |
| 18357 | case $host_cpu in |
| 18358 | hppa*64*|ia64*) |
| 18359 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
| 18360 | hardcode_direct_GCJ=no |
| 18361 | hardcode_shlibpath_var_GCJ=no |
| 18362 | ;; |
| 18363 | *) |
| 18364 | hardcode_direct_GCJ=yes |
| 18365 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 18366 | |
| 18367 | # hardcode_minus_L: Not really in the search PATH, |
| 18368 | # but as the default location of the library. |
| 18369 | hardcode_minus_L_GCJ=yes |
| 18370 | ;; |
| 18371 | esac |
| 18372 | fi |
| 18373 | ;; |
| 18374 | |
| 18375 | irix5* | irix6* | nonstopux*) |
| 18376 | if testscip-shell system . . test. "$GCC" = yes; then |
| 18377 | archive_cmds_GCJ='$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' |
| 18378 | else |
| 18379 | archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
| 18380 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
| 18381 | fi |
| 18382 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 18383 | hardcode_libdir_separator_GCJ=: |
| 18384 | link_all_deplibs_GCJ=yes |
| 18385 | ;; |
| 18386 | |
| 18387 | netbsd*) |
| 18388 | if echoscip-shell system . . echo. __ELF__ | $CC -E - | grepscip-shell system . . grep. __ELF__ >/dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 18389 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 18390 | else |
| 18391 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 18392 | fi |
| 18393 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 18394 | hardcode_direct_GCJ=yes |
| 18395 | hardcode_shlibpath_var_GCJ=no |
| 18396 | ;; |
| 18397 | |
| 18398 | newsos6) |
| 18399 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 18400 | hardcode_direct_GCJ=yes |
| 18401 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 18402 | hardcode_libdir_separator_GCJ=: |
| 18403 | hardcode_shlibpath_var_GCJ=no |
| 18404 | ;; |
| 18405 | |
| 18406 | openbsd*) |
| 18407 | hardcode_direct_GCJ=yes |
| 18408 | hardcode_shlibpath_var_GCJ=no |
| 18409 | if testscip-shell system . . test. -z "`echoscip-shell system . . echo. __ELF__ | $CC -E - | grepscip-shell system . . grep. __ELF__`" || testscip-shell system . . test. "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 18410 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 18411 | archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
| 18412 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 18413 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 18414 | else |
| 18415 | case $host_os in |
| 18416 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 18417 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 18418 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 18419 | ;; |
| 18420 | *) |
| 18421 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 18422 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 18423 | ;; |
| 18424 | esac |
| 18425 | fi |
| 18426 | ;; |
| 18427 | |
| 18428 | os2*) |
| 18429 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 18430 | hardcode_minus_L_GCJ=yes |
| 18431 | allow_undefined_flag_GCJ=unsupported |
| 18432 | archive_cmds_GCJ='$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' |
| 18433 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 18434 | ;; |
| 18435 | |
| 18436 | osf3*) |
| 18437 | if testscip-shell system . . test. "$GCC" = yes; then |
| 18438 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 18439 | archive_cmds_GCJ='$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' |
| 18440 | else |
| 18441 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 18442 | archive_cmds_GCJ='$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' |
| 18443 | fi |
| 18444 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 18445 | hardcode_libdir_separator_GCJ=: |
| 18446 | ;; |
| 18447 | |
| 18448 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 18449 | if testscip-shell system . . test. "$GCC" = yes; then |
| 18450 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 18451 | archive_cmds_GCJ='$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' |
| 18452 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 18453 | else |
| 18454 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 18455 | archive_cmds_GCJ='$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' |
| 18456 | archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
| 18457 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' |
| 18458 | |
| 18459 | # Both c and cxx compiler support -rpath directly |
| 18460 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
| 18461 | fi |
| 18462 | hardcode_libdir_separator_GCJ=: |
| 18463 | ;; |
| 18464 | |
| 18465 | solaris*) |
| 18466 | no_undefined_flag_GCJ=' -z text' |
| 18467 | if testscip-shell system . . test. "$GCC" = yes; then |
| 18468 | wlarc='${wl}' |
| 18469 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18470 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 18471 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
| 18472 | else |
| 18473 | wlarc='' |
| 18474 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 18475 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 18476 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 18477 | fi |
| 18478 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 18479 | hardcode_shlibpath_var_GCJ=no |
| 18480 | case $host_os in |
| 18481 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 18482 | *) |
| 18483 | # The compiler driver will combine linker options so we |
| 18484 | # cannot just pass the convience library names through |
| 18485 | # without $wl, iff we do not link with $LD. |
| 18486 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 18487 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 18488 | case $wlarc in |
| 18489 | '') |
| 18490 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; |
| 18491 | *) |
| 18492 | whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; |
| 18493 | esac ;; |
| 18494 | esac |
| 18495 | link_all_deplibs_GCJ=yes |
| 18496 | ;; |
| 18497 | |
| 18498 | sunos4*) |
| 18499 | if testscip-shell system . . test. "x$host_vendor" = xsequent; then |
| 18500 | # Use $CC to link under sequent, because it throws in some extra .o |
| 18501 | # files that make .init and .fini sections work. |
| 18502 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18503 | else |
| 18504 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 18505 | fi |
| 18506 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 18507 | hardcode_direct_GCJ=yes |
| 18508 | hardcode_minus_L_GCJ=yes |
| 18509 | hardcode_shlibpath_var_GCJ=no |
| 18510 | ;; |
| 18511 | |
| 18512 | sysv4) |
| 18513 | case $host_vendor in |
| 18514 | sni) |
| 18515 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 18516 | hardcode_direct_GCJ=yes # is this really true??? |
| 18517 | ;; |
| 18518 | siemens) |
| 18519 | ## LD is ld it makes a PLAMLIB |
| 18520 | ## CC just makes a GrossModule. |
| 18521 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 18522 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
| 18523 | hardcode_direct_GCJ=no |
| 18524 | ;; |
| 18525 | motorola) |
| 18526 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 18527 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
| 18528 | ;; |
| 18529 | esac |
| 18530 | runpath_var='LD_RUN_PATH' |
| 18531 | hardcode_shlibpath_var_GCJ=no |
| 18532 | ;; |
| 18533 | |
| 18534 | sysv4.3*) |
| 18535 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 18536 | hardcode_shlibpath_var_GCJ=no |
| 18537 | export_dynamic_flag_spec_GCJ='-Bexport' |
| 18538 | ;; |
| 18539 | |
| 18540 | sysv4*MP*) |
| 18541 | if testscip-shell system . . test. -d /usr/necscip-shell filesystem . . `/usr/nec`.; then |
| 18542 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 18543 | hardcode_shlibpath_var_GCJ=no |
| 18544 | runpath_var=LD_RUN_PATH |
| 18545 | hardcode_runpath_var=yes |
| 18546 | ld_shlibs_GCJ=yes |
| 18547 | fi |
| 18548 | ;; |
| 18549 | |
| 18550 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 18551 | no_undefined_flag_GCJ='${wl}-z,text' |
| 18552 | archive_cmds_need_lc_GCJ=no |
| 18553 | hardcode_shlibpath_var_GCJ=no |
| 18554 | runpath_var='LD_RUN_PATH' |
| 18555 | |
| 18556 | if testscip-shell system . . test. "$GCC" = yes; then |
| 18557 | archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18558 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18559 | else |
| 18560 | archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18561 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18562 | fi |
| 18563 | ;; |
| 18564 | |
| 18565 | sysv5* | sco3.2v5* | sco5v6*) |
| 18566 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 18567 | # link with -lc, and that would cause any symbols used from libc to |
| 18568 | # always be unresolved, which means just about no library would |
| 18569 | # ever link correctly. If we're not using GNU ld we use -z text |
| 18570 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 18571 | # as -z defs. |
| 18572 | no_undefined_flag_GCJ='${wl}-z,text' |
| 18573 | allow_undefined_flag_GCJ='${wl}-z,nodefs' |
| 18574 | archive_cmds_need_lc_GCJ=no |
| 18575 | hardcode_shlibpath_var_GCJ=no |
| 18576 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 18577 | hardcode_libdir_separator_GCJ=':' |
| 18578 | link_all_deplibs_GCJ=yes |
| 18579 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
| 18580 | runpath_var='LD_RUN_PATH' |
| 18581 | |
| 18582 | if testscip-shell system . . test. "$GCC" = yes; then |
| 18583 | archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18584 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18585 | else |
| 18586 | archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18587 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18588 | fi |
| 18589 | ;; |
| 18590 | |
| 18591 | uts4*) |
| 18592 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 18593 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 18594 | hardcode_shlibpath_var_GCJ=no |
| 18595 | ;; |
| 18596 | |
| 18597 | *) |
| 18598 | ld_shlibs_GCJ=no |
| 18599 | ;; |
| 18600 | esac |
| 18601 | fi |
| 18602 | |
| 18603 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
| 18604 | echoscip-shell system . . echo. "${ECHO_T}$ld_shlibs_GCJ" >&6 |
| 18605 | testscip-shell system . . test. "$ld_shlibs_GCJ" = no && can_build_shared=no |
| 18606 | |
| 18607 | # |
| 18608 | # Do we need to explicitly link libc? |
| 18609 | # |
| 18610 | case "x$archive_cmds_need_lc_GCJ" in |
| 18611 | x|xyes) |
| 18612 | # Assume -lc should be added |
| 18613 | archive_cmds_need_lc_GCJ=yes |
| 18614 | |
| 18615 | if testscip-shell system . . test. "$enable_shared" = yes && testscip-shell system . . test. "$GCC" = yes; then |
| 18616 | case $archive_cmds_GCJ in |
| 18617 | *'~'*) |
| 18618 | # FIXME: we may have to deal with multi-command sequences. |
| 18619 | ;; |
| 18620 | '$CC '*) |
| 18621 | # Test whether the compiler implicitly links with -lc since on some |
| 18622 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 18623 | # to ld, don't add -lc before -lgcc. |
| 18624 | echoscip-shell system . . echo. "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 18625 | echoscip-shell system . . echo. $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 18626 | $rm conftest* |
| 18627 | printfscip-shell system . . printf. "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 18628 | |
| 18629 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18630 | (eval $ac_compile) 2>&5 |
| 18631 | ac_status=$? |
| 18632 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18633 | (exit $ac_status); } 2>conftest.err; then |
| 18634 | soname=conftest |
| 18635 | lib=conftest |
| 18636 | libobjs=conftest.$ac_objext |
| 18637 | deplibs= |
| 18638 | wl=$lt_prog_compiler_wl_GCJ |
| 18639 | pic_flag=$lt_prog_compiler_pic_GCJ |
| 18640 | compiler_flags=-v |
| 18641 | linker_flags=-v |
| 18642 | verstring= |
| 18643 | output_objdir=. |
| 18644 | libname=conftest |
| 18645 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
| 18646 | allow_undefined_flag_GCJ= |
| 18647 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 18648 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 18649 | ac_status=$? |
| 18650 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18651 | (exit $ac_status); } |
| 18652 | then |
| 18653 | archive_cmds_need_lc_GCJ=no |
| 18654 | else |
| 18655 | archive_cmds_need_lc_GCJ=yes |
| 18656 | fi |
| 18657 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
| 18658 | else |
| 18659 | catscip-shell system . . cat. conftest.err 1>&5 |
| 18660 | fi |
| 18661 | $rm conftest* |
| 18662 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
| 18663 | echoscip-shell system . . echo. "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 |
| 18664 | ;; |
| 18665 | esac |
| 18666 | fi |
| 18667 | ;; |
| 18668 | esac |
| 18669 | |
| 18670 | echoscip-shell system . . echo. "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 18671 | echoscip-shell system . . echo. $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 18672 | library_names_spec= |
| 18673 | libname_spec='lib$name' |
| 18674 | soname_spec= |
| 18675 | shrext_cmds=".so" |
| 18676 | postinstall_cmds= |
| 18677 | postuninstall_cmds= |
| 18678 | finish_cmds= |
| 18679 | finish_eval= |
| 18680 | shlibpath_var= |
| 18681 | shlibpath_overrides_runpath=unknown |
| 18682 | version_type=none |
| 18683 | dynamic_linker="$host_os ld.so" |
| 18684 | sys_lib_dlsearch_path_spec="/lib /usr/libscip-shell filesystem . . `/lib /usr/lib`." |
| 18685 | if testscip-shell system . . test. "$GCC" = yes; then |
| 18686 | sys_lib_search_path_spec=`$CC -print-search-dirs | grepscip-shell system . . grep. "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 18687 | if echoscip-shell system . . echo. "$sys_lib_search_path_spec" | grepscip-shell system . . grep. ';' >/dev/nullscip-shell filesystem . . `/dev/null`. ; then |
| 18688 | # if the path contains ";" then we assume it to be the separator |
| 18689 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 18690 | # assumed that no part of a normal pathname contains ";" but that should |
| 18691 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 18692 | sys_lib_search_path_spec=`echoscip-shell system . . echo. "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 18693 | else |
| 18694 | sys_lib_search_path_spec=`echoscip-shell system . . echo. "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 18695 | fi |
| 18696 | else |
| 18697 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/libscip-shell filesystem . . `/lib /usr/lib /usr/local/lib`." |
| 18698 | fi |
| 18699 | need_lib_prefix=unknown |
| 18700 | hardcode_into_libs=no |
| 18701 | |
| 18702 | # when you set need_version to no, make sure it does not cause -set_version |
| 18703 | # flags to be left without arguments |
| 18704 | need_version=unknown |
| 18705 | |
| 18706 | case $host_os in |
| 18707 | aix3*) |
| 18708 | version_type=linux |
| 18709 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 18710 | shlibpath_var=LIBPATH |
| 18711 | |
| 18712 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 18713 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18714 | ;; |
| 18715 | |
| 18716 | aix4* | aix5*) |
| 18717 | version_type=linux |
| 18718 | need_lib_prefix=no |
| 18719 | need_version=no |
| 18720 | hardcode_into_libs=yes |
| 18721 | if testscip-shell system . . test. "$host_cpu" = ia64; then |
| 18722 | # AIX 5 supports IA64 |
| 18723 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 18724 | shlibpath_var=LD_LIBRARY_PATH |
| 18725 | else |
| 18726 | # With GCC up to 2.95.x, collect2 would create an import file |
| 18727 | # for dependence libraries. The import file would start with |
| 18728 | # the line `#! .'. This would cause the generated library to |
| 18729 | # depend on `.', always an invalid library. This was fixed in |
| 18730 | # development snapshots of GCC prior to 3.0. |
| 18731 | case $host_os in |
| 18732 | aix4 | aix4.[01] | aix4.[01].*) |
| 18733 | if { echoscip-shell system . . echo. '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 18734 | echoscip-shell system . . echo. ' yes ' |
| 18735 | echoscip-shell system . . echo. '#endif'; } | ${CC} -E - | grepscip-shell system . . grep. yes > /dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 18736 | : |
| 18737 | else |
| 18738 | can_build_shared=no |
| 18739 | fi |
| 18740 | ;; |
| 18741 | esac |
| 18742 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 18743 | # soname into executable. Probably we can add versioning support to |
| 18744 | # collect2, so additional links can be useful in future. |
| 18745 | if testscip-shell system . . test. "$aix_use_runtimelinking" = yes; then |
| 18746 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 18747 | # instead of lib<name>.a to let people know that these are not |
| 18748 | # typical AIX shared libraries. |
| 18749 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18750 | else |
| 18751 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 18752 | # and later when we are not doing run time linking. |
| 18753 | library_names_spec='${libname}${release}.a $libname.a' |
| 18754 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18755 | fi |
| 18756 | shlibpath_var=LIBPATH |
| 18757 | fi |
| 18758 | ;; |
| 18759 | |
| 18760 | amigaos*) |
| 18761 | library_names_spec='$libname.ixlibrary $libname.a' |
| 18762 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 18763 | 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' |
| 18764 | ;; |
| 18765 | |
| 18766 | beos*) |
| 18767 | library_names_spec='${libname}${shared_ext}' |
| 18768 | dynamic_linker="$host_os ld.so" |
| 18769 | shlibpath_var=LIBRARY_PATH |
| 18770 | ;; |
| 18771 | |
| 18772 | bsdi[45]*) |
| 18773 | version_type=linux |
| 18774 | need_version=no |
| 18775 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18776 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18777 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 18778 | shlibpath_var=LD_LIBRARY_PATH |
| 18779 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/libscip-shell filesystem . . `/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib`." |
| 18780 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/libscip-shell filesystem . . `/shlib /usr/lib /usr/local/lib`." |
| 18781 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 18782 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 18783 | # libtool to hard-code these into programs |
| 18784 | ;; |
| 18785 | |
| 18786 | cygwin* | mingw* | pw32*) |
| 18787 | version_type=windows |
| 18788 | shrext_cmds=".dll" |
| 18789 | need_version=no |
| 18790 | need_lib_prefix=no |
| 18791 | |
| 18792 | case $GCC,$host_os in |
| 18793 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 18794 | library_names_spec='$libname.dll.a' |
| 18795 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 18796 | postinstall_cmds='base_file=`basename \${file}`~ |
| 18797 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 18798 | dldir=$destdir/`dirname \$dlpath`~ |
| 18799 | test -d \$dldir || mkdir -p \$dldir~ |
| 18800 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 18801 | chmod a+x \$dldir/$dlname' |
| 18802 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 18803 | dlpath=$dir/\$dldll~ |
| 18804 | $rm \$dlpath' |
| 18805 | shlibpath_overrides_runpath=yes |
| 18806 | |
| 18807 | case $host_os in |
| 18808 | cygwin*) |
| 18809 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 18810 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 18811 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/libscip-shell filesystem . . `/usr/lib /lib/w32api /lib /usr/local/lib`." |
| 18812 | ;; |
| 18813 | mingw*) |
| 18814 | # MinGW DLLs use traditional 'lib' prefix |
| 18815 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 18816 | sys_lib_search_path_spec=`$CC -print-search-dirs | grepscip-shell system . . grep. "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 18817 | if echoscip-shell system . . echo. "$sys_lib_search_path_spec" | grepscip-shell system . . grep. ';[c-zC-Z]:/' >/dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 18818 | # It is most probably a Windows format PATH printed by |
| 18819 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 18820 | # path with ; separators, and with drive letters. We can handle the |
| 18821 | # drive letters (cygwin fileutils understands them), so leave them, |
| 18822 | # especially as we might pass files found there to a mingw objdump, |
| 18823 | # which wouldn't understand a cygwinified path. Ahh. |
| 18824 | sys_lib_search_path_spec=`echoscip-shell system . . echo. "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 18825 | else |
| 18826 | sys_lib_search_path_spec=`echoscip-shell system . . echo. "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 18827 | fi |
| 18828 | ;; |
| 18829 | pw32*) |
| 18830 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 18831 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 18832 | ;; |
| 18833 | esac |
| 18834 | ;; |
| 18835 | |
| 18836 | *) |
| 18837 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 18838 | ;; |
| 18839 | esac |
| 18840 | dynamic_linker='Win32 ld.exe' |
| 18841 | # FIXME: first we should search . and the directory the executable is in |
| 18842 | shlibpath_var=PATH |
| 18843 | ;; |
| 18844 | |
| 18845 | darwin* | rhapsody*) |
| 18846 | dynamic_linker="$host_os dyld" |
| 18847 | version_type=darwin |
| 18848 | need_lib_prefix=no |
| 18849 | need_version=no |
| 18850 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 18851 | soname_spec='${libname}${release}${major}$shared_ext' |
| 18852 | shlibpath_overrides_runpath=yes |
| 18853 | shlibpath_var=DYLD_LIBRARY_PATH |
| 18854 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
| 18855 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 18856 | if testscip-shell system . . test. "$GCC" = yes; then |
| 18857 | sys_lib_search_path_spec=`$CC -print-search-dirs | trscip-shell system . . tr. "\n" "$PATH_SEPARATOR" | sedscip-shell system . . sed. -e 's/libraries:/@libraries:/' | trscip-shell system . . tr. "@" "\n" | grepscip-shell system . . grep. "^libraries:" | sedscip-shell system . . sed. -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
| 18858 | else |
| 18859 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/libscip-shell filesystem . . `/lib /usr/lib /usr/local/lib`.' |
| 18860 | fi |
| 18861 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/libscip-shell filesystem . . `/usr/local/lib /lib /usr/lib`.' |
| 18862 | ;; |
| 18863 | |
| 18864 | dgux*) |
| 18865 | version_type=linux |
| 18866 | need_lib_prefix=no |
| 18867 | need_version=no |
| 18868 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 18869 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18870 | shlibpath_var=LD_LIBRARY_PATH |
| 18871 | ;; |
| 18872 | |
| 18873 | freebsd1*) |
| 18874 | dynamic_linker=no |
| 18875 | ;; |
| 18876 | |
| 18877 | kfreebsd*-gnu) |
| 18878 | version_type=linux |
| 18879 | need_lib_prefix=no |
| 18880 | need_version=no |
| 18881 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 18882 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18883 | shlibpath_var=LD_LIBRARY_PATH |
| 18884 | shlibpath_overrides_runpath=no |
| 18885 | hardcode_into_libs=yes |
| 18886 | dynamic_linker='GNU ld.so' |
| 18887 | ;; |
| 18888 | |
| 18889 | freebsd* | dragonfly*) |
| 18890 | # DragonFly does not have aout. When/if they implement a new |
| 18891 | # versioning mechanism, adjust this. |
| 18892 | if testscip-shell system . . test. -x /usr/bin/objformatscip-shell filesystem . . `/usr/bin/objformat`.; then |
| 18893 | objformat=`/usr/bin/objformatscip-shell filesystem . . `/usr/bin/objformat`.` |
| 18894 | else |
| 18895 | case $host_os in |
| 18896 | freebsd[123]*) objformat=aout ;; |
| 18897 | *) objformat=elf ;; |
| 18898 | esac |
| 18899 | fi |
| 18900 | version_type=freebsd-$objformat |
| 18901 | case $version_type in |
| 18902 | freebsd-elf*) |
| 18903 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 18904 | need_version=no |
| 18905 | need_lib_prefix=no |
| 18906 | ;; |
| 18907 | freebsd-*) |
| 18908 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 18909 | need_version=yes |
| 18910 | ;; |
| 18911 | esac |
| 18912 | shlibpath_var=LD_LIBRARY_PATH |
| 18913 | case $host_os in |
| 18914 | freebsd2*) |
| 18915 | shlibpath_overrides_runpath=yes |
| 18916 | ;; |
| 18917 | freebsd3.[01]* | freebsdelf3.[01]*) |
| 18918 | shlibpath_overrides_runpath=yes |
| 18919 | hardcode_into_libs=yes |
| 18920 | ;; |
| 18921 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 18922 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
| 18923 | shlibpath_overrides_runpath=no |
| 18924 | hardcode_into_libs=yes |
| 18925 | ;; |
| 18926 | freebsd*) # from 4.6 on |
| 18927 | shlibpath_overrides_runpath=yes |
| 18928 | hardcode_into_libs=yes |
| 18929 | ;; |
| 18930 | esac |
| 18931 | ;; |
| 18932 | |
| 18933 | gnu*) |
| 18934 | version_type=linux |
| 18935 | need_lib_prefix=no |
| 18936 | need_version=no |
| 18937 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 18938 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18939 | shlibpath_var=LD_LIBRARY_PATH |
| 18940 | hardcode_into_libs=yes |
| 18941 | ;; |
| 18942 | |
| 18943 | hpux9* | hpux10* | hpux11*) |
| 18944 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 18945 | # link against other versions. |
| 18946 | version_type=sunos |
| 18947 | need_lib_prefix=no |
| 18948 | need_version=no |
| 18949 | case $host_cpu in |
| 18950 | ia64*) |
| 18951 | shrext_cmds='.so' |
| 18952 | hardcode_into_libs=yes |
| 18953 | dynamic_linker="$host_os dld.so" |
| 18954 | shlibpath_var=LD_LIBRARY_PATH |
| 18955 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 18956 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18957 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18958 | if testscip-shell system . . test. "X$HPUX_IA64_MODE" = X32; then |
| 18959 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/libscip-shell filesystem . . `/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib`." |
| 18960 | else |
| 18961 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64scip-shell filesystem . . `/usr/lib/hpux64 /usr/local/lib/hpux64`." |
| 18962 | fi |
| 18963 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 18964 | ;; |
| 18965 | hppa*64*) |
| 18966 | shrext_cmds='.sl' |
| 18967 | hardcode_into_libs=yes |
| 18968 | dynamic_linker="$host_os dld.sl" |
| 18969 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 18970 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 18971 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18972 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18973 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64scip-shell filesystem . . `/usr/lib/pa20_64 /usr/ccs/lib/pa20_64`." |
| 18974 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 18975 | ;; |
| 18976 | *) |
| 18977 | shrext_cmds='.sl' |
| 18978 | dynamic_linker="$host_os dld.sl" |
| 18979 | shlibpath_var=SHLIB_PATH |
| 18980 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 18981 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18982 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18983 | ;; |
| 18984 | esac |
| 18985 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 18986 | postinstall_cmds='chmod 555 $lib' |
| 18987 | ;; |
| 18988 | |
| 18989 | interix3*) |
| 18990 | version_type=linux |
| 18991 | need_lib_prefix=no |
| 18992 | need_version=no |
| 18993 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 18994 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18995 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 18996 | shlibpath_var=LD_LIBRARY_PATH |
| 18997 | shlibpath_overrides_runpath=no |
| 18998 | hardcode_into_libs=yes |
| 18999 | ;; |
| 19000 | |
| 19001 | irix5* | irix6* | nonstopux*) |
| 19002 | case $host_os in |
| 19003 | nonstopux*) version_type=nonstopux ;; |
| 19004 | *) |
| 19005 | if testscip-shell system . . test. "$lt_cv_prog_gnu_ld" = yes; then |
| 19006 | version_type=linux |
| 19007 | else |
| 19008 | version_type=irix |
| 19009 | fi ;; |
| 19010 | esac |
| 19011 | need_lib_prefix=no |
| 19012 | need_version=no |
| 19013 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19014 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 19015 | case $host_os in |
| 19016 | irix5* | nonstopux*) |
| 19017 | libsuff= shlibsuff= |
| 19018 | ;; |
| 19019 | *) |
| 19020 | case $LD in # libtool.m4 will add one of these switches to LD |
| 19021 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 19022 | libsuff= shlibsuff= libmagic=32-bit;; |
| 19023 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 19024 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 19025 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 19026 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 19027 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 19028 | esac |
| 19029 | ;; |
| 19030 | esac |
| 19031 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 19032 | shlibpath_overrides_runpath=no |
| 19033 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 19034 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 19035 | hardcode_into_libs=yes |
| 19036 | ;; |
| 19037 | |
| 19038 | # No shared lib support for Linux oldld, aout, or coff. |
| 19039 | linux*oldld* | linux*aout* | linux*coff*) |
| 19040 | dynamic_linker=no |
| 19041 | ;; |
| 19042 | |
| 19043 | # This must be Linux ELF. |
| 19044 | linux*) |
| 19045 | version_type=linux |
| 19046 | need_lib_prefix=no |
| 19047 | need_version=no |
| 19048 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19049 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19050 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 19051 | shlibpath_var=LD_LIBRARY_PATH |
| 19052 | shlibpath_overrides_runpath=no |
| 19053 | # This implies no fast_install, which is unacceptable. |
| 19054 | # Some rework will be needed to allow for fast_install |
| 19055 | # before this can be enabled. |
| 19056 | hardcode_into_libs=yes |
| 19057 | |
| 19058 | # Append ld.so.conf contents to the search path |
| 19059 | if testscip-shell system . . test. -f /etc/ld.so.confscip-shell filesystem . . `/etc/ld.so.conf`.; then |
| 19060 | lt_ld_extra=`awkscip-shell system . . awk. '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }scip-shell filesystem . . `/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }`.' < /etc/ld.so.confscip-shell filesystem . . `/etc/ld.so.conf`. | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | trscip-shell system . . tr. '\n' ' '` |
| 19061 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 19062 | fi |
| 19063 | |
| 19064 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 19065 | # powerpc, because MkLinux only supported shared libraries with the |
| 19066 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 19067 | # most powerpc-linux boxes support dynamic linking these days and |
| 19068 | # people can always --disable-shared, the test was removed, and we |
| 19069 | # assume the GNU/Linux dynamic linker is in use. |
| 19070 | dynamic_linker='GNU/Linux ld.so' |
| 19071 | ;; |
| 19072 | |
| 19073 | knetbsd*-gnu) |
| 19074 | version_type=linux |
| 19075 | need_lib_prefix=no |
| 19076 | need_version=no |
| 19077 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 19078 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19079 | shlibpath_var=LD_LIBRARY_PATH |
| 19080 | shlibpath_overrides_runpath=no |
| 19081 | hardcode_into_libs=yes |
| 19082 | dynamic_linker='GNU ld.so' |
| 19083 | ;; |
| 19084 | |
| 19085 | netbsd*) |
| 19086 | version_type=sunos |
| 19087 | need_lib_prefix=no |
| 19088 | need_version=no |
| 19089 | if echoscip-shell system . . echo. __ELF__ | $CC -E - | grepscip-shell system . . grep. __ELF__ >/dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 19090 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 19091 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 19092 | dynamic_linker='NetBSD (a.out) ld.so' |
| 19093 | else |
| 19094 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 19095 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19096 | dynamic_linker='NetBSD ld.elf_so' |
| 19097 | fi |
| 19098 | shlibpath_var=LD_LIBRARY_PATH |
| 19099 | shlibpath_overrides_runpath=yes |
| 19100 | hardcode_into_libs=yes |
| 19101 | ;; |
| 19102 | |
| 19103 | newsos6) |
| 19104 | version_type=linux |
| 19105 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19106 | shlibpath_var=LD_LIBRARY_PATH |
| 19107 | shlibpath_overrides_runpath=yes |
| 19108 | ;; |
| 19109 | |
| 19110 | nto-qnx*) |
| 19111 | version_type=linux |
| 19112 | need_lib_prefix=no |
| 19113 | need_version=no |
| 19114 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19115 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19116 | shlibpath_var=LD_LIBRARY_PATH |
| 19117 | shlibpath_overrides_runpath=yes |
| 19118 | ;; |
| 19119 | |
| 19120 | openbsd*) |
| 19121 | version_type=sunos |
| 19122 | sys_lib_dlsearch_path_spec="/usr/libscip-shell filesystem . . `/usr/lib`." |
| 19123 | need_lib_prefix=no |
| 19124 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 19125 | case $host_os in |
| 19126 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 19127 | *) need_version=no ;; |
| 19128 | esac |
| 19129 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 19130 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 19131 | shlibpath_var=LD_LIBRARY_PATH |
| 19132 | if testscip-shell system . . test. -z "`echoscip-shell system . . echo. __ELF__ | $CC -E - | grepscip-shell system . . grep. __ELF__`" || testscip-shell system . . test. "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 19133 | case $host_os in |
| 19134 | openbsd2.[89] | openbsd2.[89].*) |
| 19135 | shlibpath_overrides_runpath=no |
| 19136 | ;; |
| 19137 | *) |
| 19138 | shlibpath_overrides_runpath=yes |
| 19139 | ;; |
| 19140 | esac |
| 19141 | else |
| 19142 | shlibpath_overrides_runpath=yes |
| 19143 | fi |
| 19144 | ;; |
| 19145 | |
| 19146 | os2*) |
| 19147 | libname_spec='$name' |
| 19148 | shrext_cmds=".dll" |
| 19149 | need_lib_prefix=no |
| 19150 | library_names_spec='$libname${shared_ext} $libname.a' |
| 19151 | dynamic_linker='OS/2 ld.exe' |
| 19152 | shlibpath_var=LIBPATH |
| 19153 | ;; |
| 19154 | |
| 19155 | osf3* | osf4* | osf5*) |
| 19156 | version_type=osf |
| 19157 | need_lib_prefix=no |
| 19158 | need_version=no |
| 19159 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19160 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19161 | shlibpath_var=LD_LIBRARY_PATH |
| 19162 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlibscip-shell filesystem . . `/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib`." |
| 19163 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 19164 | ;; |
| 19165 | |
| 19166 | solaris*) |
| 19167 | version_type=linux |
| 19168 | need_lib_prefix=no |
| 19169 | need_version=no |
| 19170 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19171 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19172 | shlibpath_var=LD_LIBRARY_PATH |
| 19173 | shlibpath_overrides_runpath=yes |
| 19174 | hardcode_into_libs=yes |
| 19175 | # ldd complains unless libraries are executable |
| 19176 | postinstall_cmds='chmod +x $lib' |
| 19177 | ;; |
| 19178 | |
| 19179 | sunos4*) |
| 19180 | version_type=sunos |
| 19181 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 19182 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 19183 | shlibpath_var=LD_LIBRARY_PATH |
| 19184 | shlibpath_overrides_runpath=yes |
| 19185 | if testscip-shell system . . test. "$with_gnu_ld" = yes; then |
| 19186 | need_lib_prefix=no |
| 19187 | fi |
| 19188 | need_version=yes |
| 19189 | ;; |
| 19190 | |
| 19191 | sysv4 | sysv4.3*) |
| 19192 | version_type=linux |
| 19193 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19194 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19195 | shlibpath_var=LD_LIBRARY_PATH |
| 19196 | case $host_vendor in |
| 19197 | sni) |
| 19198 | shlibpath_overrides_runpath=no |
| 19199 | need_lib_prefix=no |
| 19200 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 19201 | runpath_var=LD_RUN_PATH |
| 19202 | ;; |
| 19203 | siemens) |
| 19204 | need_lib_prefix=no |
| 19205 | ;; |
| 19206 | motorola) |
| 19207 | need_lib_prefix=no |
| 19208 | need_version=no |
| 19209 | shlibpath_overrides_runpath=no |
| 19210 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/libscip-shell filesystem . . `/lib /usr/lib /usr/ccs/lib`.' |
| 19211 | ;; |
| 19212 | esac |
| 19213 | ;; |
| 19214 | |
| 19215 | sysv4*MP*) |
| 19216 | if testscip-shell system . . test. -d /usr/necscip-shell filesystem . . `/usr/nec`. ;then |
| 19217 | version_type=linux |
| 19218 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 19219 | soname_spec='$libname${shared_ext}.$major' |
| 19220 | shlibpath_var=LD_LIBRARY_PATH |
| 19221 | fi |
| 19222 | ;; |
| 19223 | |
| 19224 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 19225 | version_type=freebsd-elf |
| 19226 | need_lib_prefix=no |
| 19227 | need_version=no |
| 19228 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 19229 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19230 | shlibpath_var=LD_LIBRARY_PATH |
| 19231 | hardcode_into_libs=yes |
| 19232 | if testscip-shell system . . test. "$with_gnu_ld" = yes; then |
| 19233 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /libscip-shell filesystem . . `/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib`.' |
| 19234 | shlibpath_overrides_runpath=no |
| 19235 | else |
| 19236 | sys_lib_search_path_spec='/usr/ccs/lib /usr/libscip-shell filesystem . . `/usr/ccs/lib /usr/lib`.' |
| 19237 | shlibpath_overrides_runpath=yes |
| 19238 | case $host_os in |
| 19239 | sco3.2v5*) |
| 19240 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 19241 | ;; |
| 19242 | esac |
| 19243 | fi |
| 19244 | sys_lib_dlsearch_path_spec='/usr/libscip-shell filesystem . . `/usr/lib`.' |
| 19245 | ;; |
| 19246 | |
| 19247 | uts4*) |
| 19248 | version_type=linux |
| 19249 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19250 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19251 | shlibpath_var=LD_LIBRARY_PATH |
| 19252 | ;; |
| 19253 | |
| 19254 | *) |
| 19255 | dynamic_linker=no |
| 19256 | ;; |
| 19257 | esac |
| 19258 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 19259 | echoscip-shell system . . echo. "${ECHO_T}$dynamic_linker" >&6 |
| 19260 | testscip-shell system . . test. "$dynamic_linker" = no && can_build_shared=no |
| 19261 | |
| 19262 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 19263 | if testscip-shell system . . test. "$GCC" = yes; then |
| 19264 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 19265 | fi |
| 19266 | |
| 19267 | echoscip-shell system . . echo. "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 19268 | echoscip-shell system . . echo. $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 19269 | hardcode_action_GCJ= |
| 19270 | if testscip-shell system . . test. -n "$hardcode_libdir_flag_spec_GCJ" || \ |
| 19271 | test -n "$runpath_var_GCJ" || \ |
| 19272 | test "X$hardcode_automatic_GCJ" = "Xyes" ; then |
| 19273 | |
| 19274 | # We can hardcode non-existant directories. |
| 19275 | if testscip-shell system . . test. "$hardcode_direct_GCJ" != no && |
| 19276 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 19277 | # have to relink, otherwise we might link with an installed library |
| 19278 | # when we should be linking with a yet-to-be-installed one |
| 19279 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
| 19280 | testscip-shell system . . test. "$hardcode_minus_L_GCJ" != no; then |
| 19281 | # Linking always hardcodes the temporary library directory. |
| 19282 | hardcode_action_GCJ=relink |
| 19283 | else |
| 19284 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 19285 | hardcode_action_GCJ=immediate |
| 19286 | fi |
| 19287 | else |
| 19288 | # We cannot hardcode anything, or else we can only hardcode existing |
| 19289 | # directories. |
| 19290 | hardcode_action_GCJ=unsupported |
| 19291 | fi |
| 19292 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
| 19293 | echoscip-shell system . . echo. "${ECHO_T}$hardcode_action_GCJ" >&6 |
| 19294 | |
| 19295 | if testscip-shell system . . test. "$hardcode_action_GCJ" = relink; then |
| 19296 | # Fast installation is not supported |
| 19297 | enable_fast_install=no |
| 19298 | elif testscip-shell system . . test. "$shlibpath_overrides_runpath" = yes || |
| 19299 | testscip-shell system . . test. "$enable_shared" = no; then |
| 19300 | # Fast installation is not necessary |
| 19301 | enable_fast_install=needless |
| 19302 | fi |
| 19303 | |
| 19304 | |
| 19305 | # The else clause should only fire when bootstrapping the |
| 19306 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 19307 | # with your package, and you will get complaints that there are |
| 19308 | # no rules to generate ltmain.sh. |
| 19309 | if testscip-shell system . . test. -f "$ltmain"; then |
| 19310 | # See if we are running on zsh, and set the options which allow our commands through |
| 19311 | # without removal of \ escapes. |
| 19312 | if testscip-shell system . . test. -n "${ZSH_VERSION+set}" ; then |
| 19313 | setopt NO_GLOB_SUBST |
| 19314 | fi |
| 19315 | # Now quote all the things that may contain metacharacters while being |
| 19316 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 19317 | # variables and quote the copies for generation of the libtool script. |
| 19318 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
| 19319 | SED SHELL STRIP \ |
| 19320 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 19321 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 19322 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 19323 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 19324 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 19325 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 19326 | old_postinstall_cmds old_postuninstall_cmds \ |
| 19327 | compiler_GCJ \ |
| 19328 | CC_GCJ \ |
| 19329 | LD_GCJ \ |
| 19330 | lt_prog_compiler_wl_GCJ \ |
| 19331 | lt_prog_compiler_pic_GCJ \ |
| 19332 | lt_prog_compiler_static_GCJ \ |
| 19333 | lt_prog_compiler_no_builtin_flag_GCJ \ |
| 19334 | export_dynamic_flag_spec_GCJ \ |
| 19335 | thread_safe_flag_spec_GCJ \ |
| 19336 | whole_archive_flag_spec_GCJ \ |
| 19337 | enable_shared_with_static_runtimes_GCJ \ |
| 19338 | old_archive_cmds_GCJ \ |
| 19339 | old_archive_from_new_cmds_GCJ \ |
| 19340 | predep_objects_GCJ \ |
| 19341 | postdep_objects_GCJ \ |
| 19342 | predeps_GCJ \ |
| 19343 | postdeps_GCJ \ |
| 19344 | compiler_lib_search_path_GCJ \ |
| 19345 | archive_cmds_GCJ \ |
| 19346 | archive_expsym_cmds_GCJ \ |
| 19347 | postinstall_cmds_GCJ \ |
| 19348 | postuninstall_cmds_GCJ \ |
| 19349 | old_archive_from_expsyms_cmds_GCJ \ |
| 19350 | allow_undefined_flag_GCJ \ |
| 19351 | no_undefined_flag_GCJ \ |
| 19352 | export_symbols_cmds_GCJ \ |
| 19353 | hardcode_libdir_flag_spec_GCJ \ |
| 19354 | hardcode_libdir_flag_spec_ld_GCJ \ |
| 19355 | hardcode_libdir_separator_GCJ \ |
| 19356 | hardcode_automatic_GCJ \ |
| 19357 | module_cmds_GCJ \ |
| 19358 | module_expsym_cmds_GCJ \ |
| 19359 | lt_cv_prog_compiler_c_o_GCJ \ |
| 19360 | exclude_expsyms_GCJ \ |
| 19361 | include_expsyms_GCJ; do |
| 19362 | |
| 19363 | case $var in |
| 19364 | old_archive_cmds_GCJ | \ |
| 19365 | old_archive_from_new_cmds_GCJ | \ |
| 19366 | archive_cmds_GCJ | \ |
| 19367 | archive_expsym_cmds_GCJ | \ |
| 19368 | module_cmds_GCJ | \ |
| 19369 | module_expsym_cmds_GCJ | \ |
| 19370 | old_archive_from_expsyms_cmds_GCJ | \ |
| 19371 | export_symbols_cmds_GCJ | \ |
| 19372 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 19373 | postinstall_cmds | postuninstall_cmds | \ |
| 19374 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 19375 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 19376 | # Double-quote double-evaled strings. |
| 19377 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 19378 | ;; |
| 19379 | *) |
| 19380 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 19381 | ;; |
| 19382 | esac |
| 19383 | done |
| 19384 | |
| 19385 | case $lt_echo in |
| 19386 | *'\$0 --fallback-echo"') |
| 19387 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 19388 | ;; |
| 19389 | esac |
| 19390 | |
| 19391 | cfgfile="$ofile" |
| 19392 | |
| 19393 | catscip-shell system . . cat. <<__EOF__ >> "$cfgfile" |
| 19394 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 19395 | |
| 19396 | # Libtool was configured on host `(hostnamescip-shell system . . hostname. || unamescip-shell system . . uname. -n) 2>/dev/nullscip-shell filesystem . . `/dev/null`. | sedscip-shell system . . sed. 1q`: |
| 19397 | |
| 19398 | # Shell to use when invoking shell scripts. |
| 19399 | SHELL=$lt_SHELL |
| 19400 | |
| 19401 | # Whether or not to build shared libraries. |
| 19402 | build_libtool_libs=$enable_shared |
| 19403 | |
| 19404 | # Whether or not to build static libraries. |
| 19405 | build_old_libs=$enable_static |
| 19406 | |
| 19407 | # Whether or not to add -lc for building shared libraries. |
| 19408 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
| 19409 | |
| 19410 | # Whether or not to disallow shared libs when runtime libs are static |
| 19411 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
| 19412 | |
| 19413 | # Whether or not to optimize for fast installation. |
| 19414 | fast_install=$enable_fast_install |
| 19415 | |
| 19416 | # The host system. |
| 19417 | host_alias=$host_alias |
| 19418 | host=$host |
| 19419 | host_os=$host_os |
| 19420 | |
| 19421 | # The build system. |
| 19422 | build_alias=$build_alias |
| 19423 | build=$build |
| 19424 | build_os=$build_os |
| 19425 | |
| 19426 | # An echo program that does not interpret backslashes. |
| 19427 | echo=$lt_echo |
| 19428 | |
| 19429 | # The archiver. |
| 19430 | AR=$lt_AR |
| 19431 | AR_FLAGS=$lt_AR_FLAGS |
| 19432 | |
| 19433 | # A C compiler. |
| 19434 | LTCC=$lt_LTCC |
| 19435 | |
| 19436 | # LTCC compiler flags. |
| 19437 | LTCFLAGS=$lt_LTCFLAGS |
| 19438 | |
| 19439 | # A language-specific compiler. |
| 19440 | CC=$lt_compiler_GCJ |
| 19441 | |
| 19442 | # Is the compiler the GNU C compiler? |
| 19443 | with_gcc=$GCC_GCJ |
| 19444 | |
| 19445 | # An ERE matcher. |
| 19446 | EGREP=$lt_EGREP |
| 19447 | |
| 19448 | # The linker used to build libraries. |
| 19449 | LD=$lt_LD_GCJ |
| 19450 | |
| 19451 | # Whether we need hard or soft links. |
| 19452 | LN_S=$lt_LN_S |
| 19453 | |
| 19454 | # A BSD-compatible nm program. |
| 19455 | NM=$lt_NM |
| 19456 | |
| 19457 | # A symbol stripping program |
| 19458 | STRIP=$lt_STRIP |
| 19459 | |
| 19460 | # Used to examine libraries when file_magic_cmd begins "file" |
| 19461 | MAGIC_CMD=$MAGIC_CMD |
| 19462 | |
| 19463 | # Used on cygwin: DLL creation program. |
| 19464 | DLLTOOL="$DLLTOOL" |
| 19465 | |
| 19466 | # Used on cygwin: object dumper. |
| 19467 | OBJDUMP="$OBJDUMP" |
| 19468 | |
| 19469 | # Used on cygwin: assembler. |
| 19470 | AS="$AS" |
| 19471 | |
| 19472 | # The name of the directory that contains temporary libtool files. |
| 19473 | objdir=$objdir |
| 19474 | |
| 19475 | # How to create reloadable object files. |
| 19476 | reload_flag=$lt_reload_flag |
| 19477 | reload_cmds=$lt_reload_cmds |
| 19478 | |
| 19479 | # How to pass a linker flag through the compiler. |
| 19480 | wl=$lt_lt_prog_compiler_wl_GCJ |
| 19481 | |
| 19482 | # Object file suffix (normally "o"). |
| 19483 | objext="$ac_objext" |
| 19484 | |
| 19485 | # Old archive suffix (normally "a"). |
| 19486 | libext="$libext" |
| 19487 | |
| 19488 | # Shared library suffix (normally ".so"). |
| 19489 | shrext_cmds='$shrext_cmds' |
| 19490 | |
| 19491 | # Executable file suffix (normally ""). |
| 19492 | exeext="$exeext" |
| 19493 | |
| 19494 | # Additional compiler flags for building library objects. |
| 19495 | pic_flag=$lt_lt_prog_compiler_pic_GCJ |
| 19496 | pic_mode=$pic_mode |
| 19497 | |
| 19498 | # What is the maximum length of a command? |
| 19499 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 19500 | |
| 19501 | # Does compiler simultaneously support -c and -o options? |
| 19502 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
| 19503 | |
| 19504 | # Must we lock files when doing compilation? |
| 19505 | need_locks=$lt_need_locks |
| 19506 | |
| 19507 | # Do we need the lib prefix for modules? |
| 19508 | need_lib_prefix=$need_lib_prefix |
| 19509 | |
| 19510 | # Do we need a version for libraries? |
| 19511 | need_version=$need_version |
| 19512 | |
| 19513 | # Whether dlopen is supported. |
| 19514 | dlopen_support=$enable_dlopen |
| 19515 | |
| 19516 | # Whether dlopen of programs is supported. |
| 19517 | dlopen_self=$enable_dlopen_self |
| 19518 | |
| 19519 | # Whether dlopen of statically linked programs is supported. |
| 19520 | dlopen_self_static=$enable_dlopen_self_static |
| 19521 | |
| 19522 | # Compiler flag to prevent dynamic linking. |
| 19523 | link_static_flag=$lt_lt_prog_compiler_static_GCJ |
| 19524 | |
| 19525 | # Compiler flag to turn off builtin functions. |
| 19526 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
| 19527 | |
| 19528 | # Compiler flag to allow reflexive dlopens. |
| 19529 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
| 19530 | |
| 19531 | # Compiler flag to generate shared objects directly from archives. |
| 19532 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
| 19533 | |
| 19534 | # Compiler flag to generate thread-safe objects. |
| 19535 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
| 19536 | |
| 19537 | # Library versioning type. |
| 19538 | version_type=$version_type |
| 19539 | |
| 19540 | # Format of library name prefix. |
| 19541 | libname_spec=$lt_libname_spec |
| 19542 | |
| 19543 | # List of archive names. First name is the real one, the rest are links. |
| 19544 | # The last name is the one that the linker finds with -lNAME. |
| 19545 | library_names_spec=$lt_library_names_spec |
| 19546 | |
| 19547 | # The coded name of the library, if different from the real name. |
| 19548 | soname_spec=$lt_soname_spec |
| 19549 | |
| 19550 | # Commands used to build and install an old-style archive. |
| 19551 | RANLIB=$lt_RANLIB |
| 19552 | old_archive_cmds=$lt_old_archive_cmds_GCJ |
| 19553 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 19554 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 19555 | |
| 19556 | # Create an old-style archive from a shared archive. |
| 19557 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
| 19558 | |
| 19559 | # Create a temporary old-style archive to link instead of a shared archive. |
| 19560 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
| 19561 | |
| 19562 | # Commands used to build and install a shared archive. |
| 19563 | archive_cmds=$lt_archive_cmds_GCJ |
| 19564 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
| 19565 | postinstall_cmds=$lt_postinstall_cmds |
| 19566 | postuninstall_cmds=$lt_postuninstall_cmds |
| 19567 | |
| 19568 | # Commands used to build a loadable module (assumed same as above if empty) |
| 19569 | module_cmds=$lt_module_cmds_GCJ |
| 19570 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
| 19571 | |
| 19572 | # Commands to strip libraries. |
| 19573 | old_striplib=$lt_old_striplib |
| 19574 | striplib=$lt_striplib |
| 19575 | |
| 19576 | # Dependencies to place before the objects being linked to create a |
| 19577 | # shared library. |
| 19578 | predep_objects=$lt_predep_objects_GCJ |
| 19579 | |
| 19580 | # Dependencies to place after the objects being linked to create a |
| 19581 | # shared library. |
| 19582 | postdep_objects=$lt_postdep_objects_GCJ |
| 19583 | |
| 19584 | # Dependencies to place before the objects being linked to create a |
| 19585 | # shared library. |
| 19586 | predeps=$lt_predeps_GCJ |
| 19587 | |
| 19588 | # Dependencies to place after the objects being linked to create a |
| 19589 | # shared library. |
| 19590 | postdeps=$lt_postdeps_GCJ |
| 19591 | |
| 19592 | # The library search path used internally by the compiler when linking |
| 19593 | # a shared library. |
| 19594 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ |
| 19595 | |
| 19596 | # Method to check whether dependent libraries are shared objects. |
| 19597 | deplibs_check_method=$lt_deplibs_check_method |
| 19598 | |
| 19599 | # Command to use when deplibs_check_method == file_magic. |
| 19600 | file_magic_cmd=$lt_file_magic_cmd |
| 19601 | |
| 19602 | # Flag that allows shared libraries with undefined symbols to be built. |
| 19603 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
| 19604 | |
| 19605 | # Flag that forces no undefined symbols. |
| 19606 | no_undefined_flag=$lt_no_undefined_flag_GCJ |
| 19607 | |
| 19608 | # Commands used to finish a libtool library installation in a directory. |
| 19609 | finish_cmds=$lt_finish_cmds |
| 19610 | |
| 19611 | # Same as above, but a single script fragment to be evaled but not shown. |
| 19612 | finish_eval=$lt_finish_eval |
| 19613 | |
| 19614 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 19615 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 19616 | |
| 19617 | # Transform the output of nm in a proper C declaration |
| 19618 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 19619 | |
| 19620 | # Transform the output of nm in a C name address pair |
| 19621 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 19622 | |
| 19623 | # This is the shared library runtime path variable. |
| 19624 | runpath_var=$runpath_var |
| 19625 | |
| 19626 | # This is the shared library path variable. |
| 19627 | shlibpath_var=$shlibpath_var |
| 19628 | |
| 19629 | # Is shlibpath searched before the hard-coded library search path? |
| 19630 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 19631 | |
| 19632 | # How to hardcode a shared library path into an executable. |
| 19633 | hardcode_action=$hardcode_action_GCJ |
| 19634 | |
| 19635 | # Whether we should hardcode library paths into libraries. |
| 19636 | hardcode_into_libs=$hardcode_into_libs |
| 19637 | |
| 19638 | # Flag to hardcode \$libdir into a binary during linking. |
| 19639 | # This must work even if \$libdir does not exist. |
| 19640 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
| 19641 | |
| 19642 | # If ld is used when linking, flag to hardcode \$libdir into |
| 19643 | # a binary during linking. This must work even if \$libdir does |
| 19644 | # not exist. |
| 19645 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
| 19646 | |
| 19647 | # Whether we need a single -rpath flag with a separated argument. |
| 19648 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
| 19649 | |
| 19650 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 19651 | # resulting binary. |
| 19652 | hardcode_direct=$hardcode_direct_GCJ |
| 19653 | |
| 19654 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 19655 | # resulting binary. |
| 19656 | hardcode_minus_L=$hardcode_minus_L_GCJ |
| 19657 | |
| 19658 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 19659 | # the resulting binary. |
| 19660 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
| 19661 | |
| 19662 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 19663 | # and all subsequent libraries and executables linked against it. |
| 19664 | hardcode_automatic=$hardcode_automatic_GCJ |
| 19665 | |
| 19666 | # Variables whose values should be saved in libtool wrapper scripts and |
| 19667 | # restored at relink time. |
| 19668 | variables_saved_for_relink="$variables_saved_for_relink" |
| 19669 | |
| 19670 | # Whether libtool must link a program against all its dependency libraries. |
| 19671 | link_all_deplibs=$link_all_deplibs_GCJ |
| 19672 | |
| 19673 | # Compile-time system search path for libraries |
| 19674 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 19675 | |
| 19676 | # Run-time system search path for libraries |
| 19677 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 19678 | |
| 19679 | # Fix the shell variable \$srcfile for the compiler. |
| 19680 | fix_srcfile_path="$fix_srcfile_path_GCJ" |
| 19681 | |
| 19682 | # Set to yes if exported symbols are required. |
| 19683 | always_export_symbols=$always_export_symbols_GCJ |
| 19684 | |
| 19685 | # The commands to list exported symbols. |
| 19686 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
| 19687 | |
| 19688 | # The commands to extract the exported symbol list from a shared archive. |
| 19689 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 19690 | |
| 19691 | # Symbols that should not be listed in the preloaded symbols. |
| 19692 | exclude_expsyms=$lt_exclude_expsyms_GCJ |
| 19693 | |
| 19694 | # Symbols that must always be exported. |
| 19695 | include_expsyms=$lt_include_expsyms_GCJ |
| 19696 | |
| 19697 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 19698 | |
| 19699 | __EOF__ |
| 19700 | |
| 19701 | |
| 19702 | else |
| 19703 | # If there is no Makefile yet, we rely on a make rule to execute |
| 19704 | # `config.status --recheck' to rerun these tests and create the |
| 19705 | # libtool script then. |
| 19706 | ltmain_in=`echoscip-shell system . . echo. $ltmain | sedscip-shell system . . sed. -e 's/\.sh$/.in/'` |
| 19707 | if testscip-shell system . . test. -f "$ltmain_in"; then |
| 19708 | testscip-shell system . . test. -f Makefile && makescip-shell system . . make. "$ltmain" |
| 19709 | fi |
| 19710 | fi |
| 19711 | |
| 19712 | |
| 19713 | ac_ext=c |
| 19714 | ac_cpp='$CPP $CPPFLAGS' |
| 19715 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19716 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19717 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19718 | |
| 19719 | CC="$lt_save_CC" |
| 19720 | |
| 19721 | else |
| 19722 | tagname="" |
| 19723 | fi |
| 19724 | ;; |
| 19725 | |
| 19726 | RC) |
| 19727 | |
| 19728 | |
| 19729 | |
| 19730 | # Source file extension for RC test sources. |
| 19731 | ac_ext=rc |
| 19732 | |
| 19733 | # Object file extension for compiled RC test sources. |
| 19734 | objext=o |
| 19735 | objext_RC=$objext |
| 19736 | |
| 19737 | # Code to be used in simple compile tests |
| 19738 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
| 19739 | |
| 19740 | # Code to be used in simple link tests |
| 19741 | lt_simple_link_test_code="$lt_simple_compile_test_code" |
| 19742 | |
| 19743 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 19744 | |
| 19745 | # If no C compiler was specified, use CC. |
| 19746 | LTCC=${LTCC-"$CC"} |
| 19747 | |
| 19748 | # If no C compiler flags were specified, use CFLAGS. |
| 19749 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 19750 | |
| 19751 | # Allow CC to be a program name with arguments. |
| 19752 | compiler=$CC |
| 19753 | |
| 19754 | |
| 19755 | # save warnings/boilerplate of simple test code |
| 19756 | ac_outfile=conftest.$ac_objext |
| 19757 | printfscip-shell system . . printf. "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 19758 | eval "$ac_compile" 2>&1 >/dev/nullscip-shell filesystem . . `/dev/null`. | $SED '/^$/d; /^ *+/dscip-shell filesystem . . `/^$/d; /^ *+/d`.' >conftest.err |
| 19759 | _lt_compiler_boilerplate=`catscip-shell system . . cat. conftest.err` |
| 19760 | $rm conftest* |
| 19761 | |
| 19762 | ac_outfile=conftest.$ac_objext |
| 19763 | printfscip-shell system . . printf. "$lt_simple_link_test_code" >conftest.$ac_ext |
| 19764 | eval "$ac_link" 2>&1 >/dev/nullscip-shell filesystem . . `/dev/null`. | $SED '/^$/d; /^ *+/dscip-shell filesystem . . `/^$/d; /^ *+/d`.' >conftest.err |
| 19765 | _lt_linker_boilerplate=`catscip-shell system . . cat. conftest.err` |
| 19766 | $rm conftest* |
| 19767 | |
| 19768 | |
| 19769 | # Allow CC to be a program name with arguments. |
| 19770 | lt_save_CC="$CC" |
| 19771 | CC=${RC-"windres"} |
| 19772 | compiler=$CC |
| 19773 | compiler_RC=$CC |
| 19774 | for cc_temp in $compiler""; do |
| 19775 | case $cc_temp in |
| 19776 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 19777 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 19778 | \-*) ;; |
| 19779 | *) break;; |
| 19780 | esac |
| 19781 | done |
| 19782 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 19783 | |
| 19784 | lt_cv_prog_compiler_c_o_RC=yes |
| 19785 | |
| 19786 | # The else clause should only fire when bootstrapping the |
| 19787 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 19788 | # with your package, and you will get complaints that there are |
| 19789 | # no rules to generate ltmain.sh. |
| 19790 | if testscip-shell system . . test. -f "$ltmain"; then |
| 19791 | # See if we are running on zsh, and set the options which allow our commands through |
| 19792 | # without removal of \ escapes. |
| 19793 | if testscip-shell system . . test. -n "${ZSH_VERSION+set}" ; then |
| 19794 | setopt NO_GLOB_SUBST |
| 19795 | fi |
| 19796 | # Now quote all the things that may contain metacharacters while being |
| 19797 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 19798 | # variables and quote the copies for generation of the libtool script. |
| 19799 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
| 19800 | SED SHELL STRIP \ |
| 19801 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 19802 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 19803 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 19804 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 19805 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 19806 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 19807 | old_postinstall_cmds old_postuninstall_cmds \ |
| 19808 | compiler_RC \ |
| 19809 | CC_RC \ |
| 19810 | LD_RC \ |
| 19811 | lt_prog_compiler_wl_RC \ |
| 19812 | lt_prog_compiler_pic_RC \ |
| 19813 | lt_prog_compiler_static_RC \ |
| 19814 | lt_prog_compiler_no_builtin_flag_RC \ |
| 19815 | export_dynamic_flag_spec_RC \ |
| 19816 | thread_safe_flag_spec_RC \ |
| 19817 | whole_archive_flag_spec_RC \ |
| 19818 | enable_shared_with_static_runtimes_RC \ |
| 19819 | old_archive_cmds_RC \ |
| 19820 | old_archive_from_new_cmds_RC \ |
| 19821 | predep_objects_RC \ |
| 19822 | postdep_objects_RC \ |
| 19823 | predeps_RC \ |
| 19824 | postdeps_RC \ |
| 19825 | compiler_lib_search_path_RC \ |
| 19826 | archive_cmds_RC \ |
| 19827 | archive_expsym_cmds_RC \ |
| 19828 | postinstall_cmds_RC \ |
| 19829 | postuninstall_cmds_RC \ |
| 19830 | old_archive_from_expsyms_cmds_RC \ |
| 19831 | allow_undefined_flag_RC \ |
| 19832 | no_undefined_flag_RC \ |
| 19833 | export_symbols_cmds_RC \ |
| 19834 | hardcode_libdir_flag_spec_RC \ |
| 19835 | hardcode_libdir_flag_spec_ld_RC \ |
| 19836 | hardcode_libdir_separator_RC \ |
| 19837 | hardcode_automatic_RC \ |
| 19838 | module_cmds_RC \ |
| 19839 | module_expsym_cmds_RC \ |
| 19840 | lt_cv_prog_compiler_c_o_RC \ |
| 19841 | exclude_expsyms_RC \ |
| 19842 | include_expsyms_RC; do |
| 19843 | |
| 19844 | case $var in |
| 19845 | old_archive_cmds_RC | \ |
| 19846 | old_archive_from_new_cmds_RC | \ |
| 19847 | archive_cmds_RC | \ |
| 19848 | archive_expsym_cmds_RC | \ |
| 19849 | module_cmds_RC | \ |
| 19850 | module_expsym_cmds_RC | \ |
| 19851 | old_archive_from_expsyms_cmds_RC | \ |
| 19852 | export_symbols_cmds_RC | \ |
| 19853 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 19854 | postinstall_cmds | postuninstall_cmds | \ |
| 19855 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 19856 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 19857 | # Double-quote double-evaled strings. |
| 19858 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 19859 | ;; |
| 19860 | *) |
| 19861 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 19862 | ;; |
| 19863 | esac |
| 19864 | done |
| 19865 | |
| 19866 | case $lt_echo in |
| 19867 | *'\$0 --fallback-echo"') |
| 19868 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 19869 | ;; |
| 19870 | esac |
| 19871 | |
| 19872 | cfgfile="$ofile" |
| 19873 | |
| 19874 | catscip-shell system . . cat. <<__EOF__ >> "$cfgfile" |
| 19875 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 19876 | |
| 19877 | # Libtool was configured on host `(hostnamescip-shell system . . hostname. || unamescip-shell system . . uname. -n) 2>/dev/nullscip-shell filesystem . . `/dev/null`. | sedscip-shell system . . sed. 1q`: |
| 19878 | |
| 19879 | # Shell to use when invoking shell scripts. |
| 19880 | SHELL=$lt_SHELL |
| 19881 | |
| 19882 | # Whether or not to build shared libraries. |
| 19883 | build_libtool_libs=$enable_shared |
| 19884 | |
| 19885 | # Whether or not to build static libraries. |
| 19886 | build_old_libs=$enable_static |
| 19887 | |
| 19888 | # Whether or not to add -lc for building shared libraries. |
| 19889 | build_libtool_need_lc=$archive_cmds_need_lc_RC |
| 19890 | |
| 19891 | # Whether or not to disallow shared libs when runtime libs are static |
| 19892 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
| 19893 | |
| 19894 | # Whether or not to optimize for fast installation. |
| 19895 | fast_install=$enable_fast_install |
| 19896 | |
| 19897 | # The host system. |
| 19898 | host_alias=$host_alias |
| 19899 | host=$host |
| 19900 | host_os=$host_os |
| 19901 | |
| 19902 | # The build system. |
| 19903 | build_alias=$build_alias |
| 19904 | build=$build |
| 19905 | build_os=$build_os |
| 19906 | |
| 19907 | # An echo program that does not interpret backslashes. |
| 19908 | echo=$lt_echo |
| 19909 | |
| 19910 | # The archiver. |
| 19911 | AR=$lt_AR |
| 19912 | AR_FLAGS=$lt_AR_FLAGS |
| 19913 | |
| 19914 | # A C compiler. |
| 19915 | LTCC=$lt_LTCC |
| 19916 | |
| 19917 | # LTCC compiler flags. |
| 19918 | LTCFLAGS=$lt_LTCFLAGS |
| 19919 | |
| 19920 | # A language-specific compiler. |
| 19921 | CC=$lt_compiler_RC |
| 19922 | |
| 19923 | # Is the compiler the GNU C compiler? |
| 19924 | with_gcc=$GCC_RC |
| 19925 | |
| 19926 | # An ERE matcher. |
| 19927 | EGREP=$lt_EGREP |
| 19928 | |
| 19929 | # The linker used to build libraries. |
| 19930 | LD=$lt_LD_RC |
| 19931 | |
| 19932 | # Whether we need hard or soft links. |
| 19933 | LN_S=$lt_LN_S |
| 19934 | |
| 19935 | # A BSD-compatible nm program. |
| 19936 | NM=$lt_NM |
| 19937 | |
| 19938 | # A symbol stripping program |
| 19939 | STRIP=$lt_STRIP |
| 19940 | |
| 19941 | # Used to examine libraries when file_magic_cmd begins "file" |
| 19942 | MAGIC_CMD=$MAGIC_CMD |
| 19943 | |
| 19944 | # Used on cygwin: DLL creation program. |
| 19945 | DLLTOOL="$DLLTOOL" |
| 19946 | |
| 19947 | # Used on cygwin: object dumper. |
| 19948 | OBJDUMP="$OBJDUMP" |
| 19949 | |
| 19950 | # Used on cygwin: assembler. |
| 19951 | AS="$AS" |
| 19952 | |
| 19953 | # The name of the directory that contains temporary libtool files. |
| 19954 | objdir=$objdir |
| 19955 | |
| 19956 | # How to create reloadable object files. |
| 19957 | reload_flag=$lt_reload_flag |
| 19958 | reload_cmds=$lt_reload_cmds |
| 19959 | |
| 19960 | # How to pass a linker flag through the compiler. |
| 19961 | wl=$lt_lt_prog_compiler_wl_RC |
| 19962 | |
| 19963 | # Object file suffix (normally "o"). |
| 19964 | objext="$ac_objext" |
| 19965 | |
| 19966 | # Old archive suffix (normally "a"). |
| 19967 | libext="$libext" |
| 19968 | |
| 19969 | # Shared library suffix (normally ".so"). |
| 19970 | shrext_cmds='$shrext_cmds' |
| 19971 | |
| 19972 | # Executable file suffix (normally ""). |
| 19973 | exeext="$exeext" |
| 19974 | |
| 19975 | # Additional compiler flags for building library objects. |
| 19976 | pic_flag=$lt_lt_prog_compiler_pic_RC |
| 19977 | pic_mode=$pic_mode |
| 19978 | |
| 19979 | # What is the maximum length of a command? |
| 19980 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 19981 | |
| 19982 | # Does compiler simultaneously support -c and -o options? |
| 19983 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
| 19984 | |
| 19985 | # Must we lock files when doing compilation? |
| 19986 | need_locks=$lt_need_locks |
| 19987 | |
| 19988 | # Do we need the lib prefix for modules? |
| 19989 | need_lib_prefix=$need_lib_prefix |
| 19990 | |
| 19991 | # Do we need a version for libraries? |
| 19992 | need_version=$need_version |
| 19993 | |
| 19994 | # Whether dlopen is supported. |
| 19995 | dlopen_support=$enable_dlopen |
| 19996 | |
| 19997 | # Whether dlopen of programs is supported. |
| 19998 | dlopen_self=$enable_dlopen_self |
| 19999 | |
| 20000 | # Whether dlopen of statically linked programs is supported. |
| 20001 | dlopen_self_static=$enable_dlopen_self_static |
| 20002 | |
| 20003 | # Compiler flag to prevent dynamic linking. |
| 20004 | link_static_flag=$lt_lt_prog_compiler_static_RC |
| 20005 | |
| 20006 | # Compiler flag to turn off builtin functions. |
| 20007 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
| 20008 | |
| 20009 | # Compiler flag to allow reflexive dlopens. |
| 20010 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
| 20011 | |
| 20012 | # Compiler flag to generate shared objects directly from archives. |
| 20013 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
| 20014 | |
| 20015 | # Compiler flag to generate thread-safe objects. |
| 20016 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
| 20017 | |
| 20018 | # Library versioning type. |
| 20019 | version_type=$version_type |
| 20020 | |
| 20021 | # Format of library name prefix. |
| 20022 | libname_spec=$lt_libname_spec |
| 20023 | |
| 20024 | # List of archive names. First name is the real one, the rest are links. |
| 20025 | # The last name is the one that the linker finds with -lNAME. |
| 20026 | library_names_spec=$lt_library_names_spec |
| 20027 | |
| 20028 | # The coded name of the library, if different from the real name. |
| 20029 | soname_spec=$lt_soname_spec |
| 20030 | |
| 20031 | # Commands used to build and install an old-style archive. |
| 20032 | RANLIB=$lt_RANLIB |
| 20033 | old_archive_cmds=$lt_old_archive_cmds_RC |
| 20034 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 20035 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 20036 | |
| 20037 | # Create an old-style archive from a shared archive. |
| 20038 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
| 20039 | |
| 20040 | # Create a temporary old-style archive to link instead of a shared archive. |
| 20041 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
| 20042 | |
| 20043 | # Commands used to build and install a shared archive. |
| 20044 | archive_cmds=$lt_archive_cmds_RC |
| 20045 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
| 20046 | postinstall_cmds=$lt_postinstall_cmds |
| 20047 | postuninstall_cmds=$lt_postuninstall_cmds |
| 20048 | |
| 20049 | # Commands used to build a loadable module (assumed same as above if empty) |
| 20050 | module_cmds=$lt_module_cmds_RC |
| 20051 | module_expsym_cmds=$lt_module_expsym_cmds_RC |
| 20052 | |
| 20053 | # Commands to strip libraries. |
| 20054 | old_striplib=$lt_old_striplib |
| 20055 | striplib=$lt_striplib |
| 20056 | |
| 20057 | # Dependencies to place before the objects being linked to create a |
| 20058 | # shared library. |
| 20059 | predep_objects=$lt_predep_objects_RC |
| 20060 | |
| 20061 | # Dependencies to place after the objects being linked to create a |
| 20062 | # shared library. |
| 20063 | postdep_objects=$lt_postdep_objects_RC |
| 20064 | |
| 20065 | # Dependencies to place before the objects being linked to create a |
| 20066 | # shared library. |
| 20067 | predeps=$lt_predeps_RC |
| 20068 | |
| 20069 | # Dependencies to place after the objects being linked to create a |
| 20070 | # shared library. |
| 20071 | postdeps=$lt_postdeps_RC |
| 20072 | |
| 20073 | # The library search path used internally by the compiler when linking |
| 20074 | # a shared library. |
| 20075 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC |
| 20076 | |
| 20077 | # Method to check whether dependent libraries are shared objects. |
| 20078 | deplibs_check_method=$lt_deplibs_check_method |
| 20079 | |
| 20080 | # Command to use when deplibs_check_method == file_magic. |
| 20081 | file_magic_cmd=$lt_file_magic_cmd |
| 20082 | |
| 20083 | # Flag that allows shared libraries with undefined symbols to be built. |
| 20084 | allow_undefined_flag=$lt_allow_undefined_flag_RC |
| 20085 | |
| 20086 | # Flag that forces no undefined symbols. |
| 20087 | no_undefined_flag=$lt_no_undefined_flag_RC |
| 20088 | |
| 20089 | # Commands used to finish a libtool library installation in a directory. |
| 20090 | finish_cmds=$lt_finish_cmds |
| 20091 | |
| 20092 | # Same as above, but a single script fragment to be evaled but not shown. |
| 20093 | finish_eval=$lt_finish_eval |
| 20094 | |
| 20095 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 20096 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 20097 | |
| 20098 | # Transform the output of nm in a proper C declaration |
| 20099 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 20100 | |
| 20101 | # Transform the output of nm in a C name address pair |
| 20102 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 20103 | |
| 20104 | # This is the shared library runtime path variable. |
| 20105 | runpath_var=$runpath_var |
| 20106 | |
| 20107 | # This is the shared library path variable. |
| 20108 | shlibpath_var=$shlibpath_var |
| 20109 | |
| 20110 | # Is shlibpath searched before the hard-coded library search path? |
| 20111 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 20112 | |
| 20113 | # How to hardcode a shared library path into an executable. |
| 20114 | hardcode_action=$hardcode_action_RC |
| 20115 | |
| 20116 | # Whether we should hardcode library paths into libraries. |
| 20117 | hardcode_into_libs=$hardcode_into_libs |
| 20118 | |
| 20119 | # Flag to hardcode \$libdir into a binary during linking. |
| 20120 | # This must work even if \$libdir does not exist. |
| 20121 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
| 20122 | |
| 20123 | # If ld is used when linking, flag to hardcode \$libdir into |
| 20124 | # a binary during linking. This must work even if \$libdir does |
| 20125 | # not exist. |
| 20126 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
| 20127 | |
| 20128 | # Whether we need a single -rpath flag with a separated argument. |
| 20129 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
| 20130 | |
| 20131 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 20132 | # resulting binary. |
| 20133 | hardcode_direct=$hardcode_direct_RC |
| 20134 | |
| 20135 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 20136 | # resulting binary. |
| 20137 | hardcode_minus_L=$hardcode_minus_L_RC |
| 20138 | |
| 20139 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 20140 | # the resulting binary. |
| 20141 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
| 20142 | |
| 20143 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 20144 | # and all subsequent libraries and executables linked against it. |
| 20145 | hardcode_automatic=$hardcode_automatic_RC |
| 20146 | |
| 20147 | # Variables whose values should be saved in libtool wrapper scripts and |
| 20148 | # restored at relink time. |
| 20149 | variables_saved_for_relink="$variables_saved_for_relink" |
| 20150 | |
| 20151 | # Whether libtool must link a program against all its dependency libraries. |
| 20152 | link_all_deplibs=$link_all_deplibs_RC |
| 20153 | |
| 20154 | # Compile-time system search path for libraries |
| 20155 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 20156 | |
| 20157 | # Run-time system search path for libraries |
| 20158 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 20159 | |
| 20160 | # Fix the shell variable \$srcfile for the compiler. |
| 20161 | fix_srcfile_path="$fix_srcfile_path_RC" |
| 20162 | |
| 20163 | # Set to yes if exported symbols are required. |
| 20164 | always_export_symbols=$always_export_symbols_RC |
| 20165 | |
| 20166 | # The commands to list exported symbols. |
| 20167 | export_symbols_cmds=$lt_export_symbols_cmds_RC |
| 20168 | |
| 20169 | # The commands to extract the exported symbol list from a shared archive. |
| 20170 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 20171 | |
| 20172 | # Symbols that should not be listed in the preloaded symbols. |
| 20173 | exclude_expsyms=$lt_exclude_expsyms_RC |
| 20174 | |
| 20175 | # Symbols that must always be exported. |
| 20176 | include_expsyms=$lt_include_expsyms_RC |
| 20177 | |
| 20178 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 20179 | |
| 20180 | __EOF__ |
| 20181 | |
| 20182 | |
| 20183 | else |
| 20184 | # If there is no Makefile yet, we rely on a make rule to execute |
| 20185 | # `config.status --recheck' to rerun these tests and create the |
| 20186 | # libtool script then. |
| 20187 | ltmain_in=`echoscip-shell system . . echo. $ltmain | sedscip-shell system . . sed. -e 's/\.sh$/.in/'` |
| 20188 | if testscip-shell system . . test. -f "$ltmain_in"; then |
| 20189 | testscip-shell system . . test. -f Makefile && makescip-shell system . . make. "$ltmain" |
| 20190 | fi |
| 20191 | fi |
| 20192 | |
| 20193 | |
| 20194 | ac_ext=c |
| 20195 | ac_cpp='$CPP $CPPFLAGS' |
| 20196 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20197 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20198 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20199 | |
| 20200 | CC="$lt_save_CC" |
| 20201 | |
| 20202 | ;; |
| 20203 | |
| 20204 | *) |
| 20205 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
| 20206 | echoscip-shell system . . echo. "$as_me: error: Unsupported tag name: $tagname" >&2;} |
| 20207 | { (exit 1); exit 1; }; } |
| 20208 | ;; |
| 20209 | esac |
| 20210 | |
| 20211 | # Append the new tag name to the list of available tags. |
| 20212 | if testscip-shell system . . test. -n "$tagname" ; then |
| 20213 | available_tags="$available_tags $tagname" |
| 20214 | fi |
| 20215 | fi |
| 20216 | done |
| 20217 | IFS="$lt_save_ifs" |
| 20218 | |
| 20219 | # Now substitute the updated list of available tags. |
| 20220 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
| 20221 | mvscip-shell system . . mv. "${ofile}T" "$ofile" |
| 20222 | chmodscip-shell system . . chmod. +x "$ofile" |
| 20223 | else |
| 20224 | rmscip-shell system . . rm. -f "${ofile}T" |
| 20225 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
| 20226 | echoscip-shell system . . echo. "$as_me: error: unable to update list of available tagged configurations." >&2;} |
| 20227 | { (exit 1); exit 1; }; } |
| 20228 | fi |
| 20229 | fi |
| 20230 | |
| 20231 | |
| 20232 | |
| 20233 | # This can be used to rebuild libtool when needed |
| 20234 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
| 20235 | |
| 20236 | # Always use our own libtool. |
| 20237 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 20238 | |
| 20239 | # Prevent multiple expansion |
| 20240 | |
| 20241 | |
| 20242 | |
| 20243 | |
| 20244 | |
| 20245 | |
| 20246 | |
| 20247 | |
| 20248 | |
| 20249 | |
| 20250 | |
| 20251 | # No longer needed now that CPPFLAGS is correctly set -- lh, 061214 -- |
| 20252 | # AC_REQUIRE([AC_COIN_DLFCN_H]) |
| 20253 | |
| 20254 | # NEW: If libtool exists in the directory higher up, we use that one |
| 20255 | # instead of creating a new one |
| 20256 | |
| 20257 | # It turns out that the code for AC_PROG_LIBTOOL is somehow AC_REQUIRED |
| 20258 | # out in front of this macro body. You'll notice that LIBTOOL is already |
| 20259 | # defined here. We'll have to count on this macro not being called if libtool |
| 20260 | # already exists, or at least move the libtool fixes outside the conditional. |
| 20261 | # AC_MSG_NOTICE([Entering coin_prog_libtool, LIBTOOL = "$LIBTOOL".]) |
| 20262 | # This test is therefore removed. -- lh, 061214 -- |
| 20263 | # if test "x$LIBTOOL" = x; then |
| 20264 | |
| 20265 | # AC_MSG_NOTICE([Calling PROG_LIBTOOL.]) |
| 20266 | |
| 20267 | |
| 20268 | |
| 20269 | |
| 20270 | |
| 20271 | |
| 20272 | |
| 20273 | |
| 20274 | |
| 20275 | # AC_MSG_NOTICE([Finished PROG_LIBTOOL.]) |
| 20276 | |
| 20277 | |
| 20278 | |
| 20279 | { echoscip-shell system . . echo. "$as_me:$LINENO: Build is \"$build\"." >&5 |
| 20280 | echoscip-shell system . . echo. "$as_me: Build is \"$build\"." >&6;} |
| 20281 | # Extract the first word of "dos2unix", so it can be a program name with args. |
| 20282 | set dummy dos2unix; ac_word=$2 |
| 20283 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for $ac_word" >&5 |
| 20284 | echoscip-shell system . . echo. $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 20285 | if testscip-shell system . . test. "${ac_cv_prog_dos2unix+set}" = set; then |
| 20286 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 20287 | else |
| 20288 | if testscip-shell system . . test. -n "$dos2unix"; then |
| 20289 | ac_cv_prog_dos2unix="$dos2unix" # Let the user override the test. |
| 20290 | else |
| 20291 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 20292 | for as_dir in $PATH |
| 20293 | do |
| 20294 | IFS=$as_save_IFS |
| 20295 | testscip-shell system . . test. -z "$as_dir" && as_dir=. |
| 20296 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 20297 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 20298 | ac_cv_prog_dos2unix="dos2unix" |
| 20299 | echoscip-shell system . . echo. "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 20300 | break 2 |
| 20301 | fi |
| 20302 | done |
| 20303 | done |
| 20304 | |
| 20305 | fi |
| 20306 | fi |
| 20307 | dos2unix=$ac_cv_prog_dos2unix |
| 20308 | if testscip-shell system . . test. -n "$dos2unix"; then |
| 20309 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $dos2unix" >&5 |
| 20310 | echoscip-shell system . . echo. "${ECHO_T}$dos2unix" >&6 |
| 20311 | else |
| 20312 | echoscip-shell system . . echo. "$as_me:$LINENO: result: no" >&5 |
| 20313 | echoscip-shell system . . echo. "${ECHO_T}no" >&6 |
| 20314 | fi |
| 20315 | |
| 20316 | if testscip-shell system . . test. "$dos2unix" = dos2unix ; then |
| 20317 | mydos2unix="| dos2unix" |
| 20318 | fi |
| 20319 | case $build in |
| 20320 | *-mingw*) |
| 20321 | CYGPATH_W=echo |
| 20322 | ;; |
| 20323 | esac |
| 20324 | |
| 20325 | case $build in |
| 20326 | # Here we need to check if -m32 is specified. If so, we need to correct |
| 20327 | # sys_lib_search_path_spec |
| 20328 | *-cygwin* | *-mingw*) |
| 20329 | case "$CXX" in |
| 20330 | clang* | */clang* ) |
| 20331 | # we assume that libtool patches for CLANG are the same as for GNU compiler - correct??? |
| 20332 | { echoscip-shell system . . echo. "$as_me:$LINENO: Applying patches to libtool for CLANG compiler" >&5 |
| 20333 | echoscip-shell system . . echo. "$as_me: Applying patches to libtool for CLANG compiler" >&6;} |
| 20334 | sedscip-shell system . . sed. -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \ |
| 20335 | -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \ |
| 20336 | -e 's|libext="lib"|libext="a"|' \ |
| 20337 | libtool > conftest.bla |
| 20338 | ;; |
| 20339 | cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) |
| 20340 | { echoscip-shell system . . echo. "$as_me:$LINENO: Applying patches to libtool for cl compiler" >&5 |
| 20341 | echoscip-shell system . . echo. "$as_me: Applying patches to libtool for cl compiler" >&6;} |
| 20342 | sedscip-shell system . . sed. -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \ |
| 20343 | -e 's|fix_srcfile_path=\"\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \ |
| 20344 | -e 's%compile_deplibs=\"\$dir/\$old_library \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$old_library | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \ |
| 20345 | -e 's%compile_deplibs=\"\$dir/\$linklib \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$linklib | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \ |
| 20346 | -e 's%lib /OUT:%lib -OUT:%' \ |
| 20347 | -e "s%cygpath -w%$CYGPATH_W%" \ |
| 20348 | -e 's%$AR x \\$f_ex_an_ar_oldlib%bla=\\$(lib -nologo -list \\$('"$CYGPATH_W \$1"') '"$mydos2unix"' | xargs echo); echo \\$bla; for i in \\$bla; do lib -nologo -extract:\\$i \\$('"$CYGPATH_W \$1"'); done%' \ |
| 20349 | -e 's%$AR t "$f_ex_an_ar_oldlib"%lib -nologo -list \$('"$CYGPATH_W \$1"') '"$mydos2unix"'%' \ |
| 20350 | -e 's%f_ex_an_ar_oldlib="\($?*1*\)"%f_ex_an_ar_oldlib='\`"$CYGPATH_W"' \1`%' \ |
| 20351 | -e 's%^archive_cmds=.*%archive_cmds="\\$CC -o \\$lib \\$libobjs \\$compiler_flags \\\\\\`echo \\\\\\"\\$deplibs\\\\\\" | \\$SED -e '"\'"'s/ -lc\\$//'"\'"'\\\\\\` -link -dll~linknames="%' \ |
| 20352 | -e 's%old_archive_cmds="lib -OUT:\\$oldlib\\$oldobjs\\$old_deplibs"%old_archive_cmds="if test -r \\$oldlib; then bla=\\"\\$oldlib\\"; else bla=; fi; lib -OUT:\\$oldlib \\\\\\$bla\\$oldobjs\\$old_deplibs"%' \ |
| 20353 | libtool > conftest.bla |
| 20354 | ;; |
| 20355 | *) |
| 20356 | { echoscip-shell system . . echo. "$as_me:$LINENO: Applying patches to libtool for GNU compiler" >&5 |
| 20357 | echoscip-shell system . . echo. "$as_me: Applying patches to libtool for GNU compiler" >&6;} |
| 20358 | sedscip-shell system . . sed. -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \ |
| 20359 | -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \ |
| 20360 | -e 's|libext="lib"|libext="a"|' \ |
| 20361 | libtool > conftest.bla |
| 20362 | ;; |
| 20363 | esac |
| 20364 | mvscip-shell system . . mv. conftest.bla libtool |
| 20365 | chmodscip-shell system . . chmod. 755 libtool |
| 20366 | |
| 20367 | ;; |
| 20368 | *x86_64-*) |
| 20369 | if testscip-shell system . . test. "$GCC" = yes && (echoscip-shell system . . echo. $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm32' >& /dev/null); then |
| 20370 | { echoscip-shell system . . echo. "$as_me:$LINENO: Applying patches to libtool for 32bit compilation" >&5 |
| 20371 | echoscip-shell system . . echo. "$as_me: Applying patches to libtool for 32bit compilation" >&6;} |
| 20372 | sedscip-shell system . . sed. -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="/lib /usr/lib"|' libtool > conftest.bla |
| 20373 | mvscip-shell system . . mv. conftest.bla libtool |
| 20374 | chmodscip-shell system . . chmod. 755 libtool |
| 20375 | fi |
| 20376 | ;; |
| 20377 | |
| 20378 | *-solaris*) |
| 20379 | if testscip-shell system . . test. "$GCC" = yes && \ |
| 20380 | (echoscip-shell system . . echo. $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm64' >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1) ; then |
| 20381 | hdwisa=`isainfo | sedscip-shell system . . sed. -e 's/\([^ ]*\) .*$/\1/'` |
| 20382 | if `$EGREP 'sys_lib_search_path_spec=' libtool | $EGREP -v $hdwisa >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1` ; then |
| 20383 | { echoscip-shell system . . echo. "$as_me:$LINENO: Applying patches to libtool for 64-bit GCC compilation" >&5 |
| 20384 | echoscip-shell system . . echo. "$as_me: Applying patches to libtool for 64-bit GCC compilation" >&6;} |
| 20385 | fixlibtmp=`$CC -m64 -print-search-dirs | $EGREP '^libraries:'` |
| 20386 | fixlibtmp=`echoscip-shell system . . echo. $fixlibtmp | sedscip-shell system . . sed. -e 's/libraries: =//' -e 's/:/ /g'` |
| 20387 | if `echoscip-shell system . . echo. "$fixlibtmp" | $EGREP -v $hdwisa >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1` ; then |
| 20388 | # AC_MSG_NOTICE(Compensating for broken gcc) |
| 20389 | for lib in $fixlibtmp ; do |
| 20390 | if testscip-shell system . . test. -d "${lib}${hdwisa}" ; then |
| 20391 | syslibpath64="$syslibpath64 ${lib}${hdwisa}/" |
| 20392 | fi |
| 20393 | done |
| 20394 | syslibpath64="${syslibpath64} ${fixlibtmp}" |
| 20395 | else |
| 20396 | syslibpath64="$fixlibtmp" |
| 20397 | fi |
| 20398 | sedscip-shell system . . sed. -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="'"$syslibpath64"'"|' libtool > conftest.bla |
| 20399 | mvscip-shell system . . mv. conftest.bla libtool |
| 20400 | chmodscip-shell system . . chmod. 755 libtool |
| 20401 | fi |
| 20402 | # AC_MSG_NOTICE(Result is ) |
| 20403 | # $EGREP 'sys_lib_search_path_spec=' libtool |
| 20404 | fi |
| 20405 | ;; |
| 20406 | # Cygwin. Ah, cygwin. Too big and ugly to inline; see the macro. |
| 20407 | *-darwin*) |
| 20408 | { echoscip-shell system . . echo. "$as_me:$LINENO: Applying patches to libtool for Darwin" >&5 |
| 20409 | echoscip-shell system . . echo. "$as_me: Applying patches to libtool for Darwin" >&6;} |
| 20410 | sedscip-shell system . . sed. -e 's/verstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"/verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"/' \ |
| 20411 | -e 's/ -dynamiclib / -dynamiclib -single_module /g' \ |
| 20412 | libtool > conftest.bla |
| 20413 | |
| 20414 | mvscip-shell system . . mv. conftest.bla libtool |
| 20415 | chmodscip-shell system . . chmod. 755 libtool |
| 20416 | ;; |
| 20417 | esac |
| 20418 | # This fi matches the commented `if test "x$LIBTOOL" = x;' up at the head of |
| 20419 | # the macro. -- lh, 061214 -- |
| 20420 | # fi |
| 20421 | |
| 20422 | # AC_MSG_NOTICE([End libtool initialisation.]) |
| 20423 | |
| 20424 | # AC_MSG_NOTICE([Finished COIN_PROG_LIBTOOL.]) |
| 20425 | # set RPATH_FLAGS to the compiler link flags required to hardcode location |
| 20426 | # of the shared objects |
| 20427 | RPATH_FLAGS= |
| 20428 | |
| 20429 | if testscip-shell system . . test. $enable_shared = yes; then |
| 20430 | case $build in |
| 20431 | *-linux-*) |
| 20432 | if testscip-shell system . . test. "$GXX" = "yes"; then |
| 20433 | RPATH_FLAGS= |
| 20434 | for dir in $abs_lib_dir; do |
| 20435 | RPATH_FLAGS="$RPATH_FLAGS -Wl,--rpath -Wl,$dir" |
| 20436 | done |
| 20437 | fi ;; |
| 20438 | *-darwin*) |
| 20439 | RPATH_FLAGS=nothing ;; |
| 20440 | *-ibm-*) |
| 20441 | case "$CXX" in |
| 20442 | xlC* | */xlC* | mpxlC* | */mpxlC*) |
| 20443 | RPATH_FLAGS=nothing ;; |
| 20444 | esac ;; |
| 20445 | *-hp-*) |
| 20446 | RPATH_FLAGS=nothing ;; |
| 20447 | *-mingw32) |
| 20448 | RPATH_FLAGS=nothing ;; |
| 20449 | *-*-solaris*) |
| 20450 | RPATH_FLAGS= |
| 20451 | for dir in $abs_lib_dir; do |
| 20452 | RPATH_FLAGS="$RPATH_FLAGS -R$dir" |
| 20453 | done |
| 20454 | esac |
| 20455 | |
| 20456 | if testscip-shell system . . test. "$RPATH_FLAGS" = ""; then |
| 20457 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: Could not automatically determine how to tell the linker about automatic inclusion of the path for shared libraries. The test examples might not work if you link against shared objects. You will need to set the LD_LIBRARY_PATH, DYLP_LIBRARY_PATH, or LIBDIR variable manually." >&5 |
| 20458 | echoscip-shell system . . echo. "$as_me: WARNING: Could not automatically determine how to tell the linker about automatic inclusion of the path for shared libraries. The test examples might not work if you link against shared objects. You will need to set the LD_LIBRARY_PATH, DYLP_LIBRARY_PATH, or LIBDIR variable manually." >&2;} |
| 20459 | fi |
| 20460 | if testscip-shell system . . test. "$RPATH_FLAGS" = "nothing"; then |
| 20461 | RPATH_FLAGS= |
| 20462 | fi |
| 20463 | fi |
| 20464 | |
| 20465 | |
| 20466 | |
| 20467 | |
| 20468 | else |
| 20469 | |
| 20470 | { echoscip-shell system . . echo. "$as_me:$LINENO: Using libtool script in directory $coin_config_dir" >&5 |
| 20471 | echoscip-shell system . . echo. "$as_me: Using libtool script in directory $coin_config_dir" >&6;} |
| 20472 | # get all missing information from the config.log file |
| 20473 | |
| 20474 | # output variables and defines |
| 20475 | as_save_IFS=$IFS |
| 20476 | IFS=' |
| 20477 | ' |
| 20478 | for oneline in `catscip-shell system . . cat. $coin_config_dir/config.status`; do |
| 20479 | case "$oneline" in |
| 20480 | # First some automake conditionals |
| 20481 | s,@am__fastdep* | s,@AR@* | s,@CPP@* | s,@CPPFLAGS@* | s,@CXXCPP@* | \ |
| 20482 | s,@RANLIB@* | s,@STRIP@* | s,@ac_ct_AR@* | s,@ac_ct_RANLIB@* | \ |
| 20483 | s,@ac_ct_STRIP@* | s,@host* | s,@LN_S@* | s,@RPATH_FLAGS@* | \ |
| 20484 | s,@ac_c_preproc_warn_flag@* | s,@ac_cxx_preproc_warn_flag@* ) |
| 20485 | command=`echoscip-shell system . . echo. $oneline | sedscip-shell system . . sed. -e 's/^s,@//' -e 's/@,/="/' -e 's/,;t t/"/'` |
| 20486 | # echo "$command" |
| 20487 | eval "$command" |
| 20488 | ;; |
| 20489 | s,@DEFS@* ) |
| 20490 | command=`echoscip-shell system . . echo. $oneline | sedscip-shell system . . sed. -e 's/^s,@DEFS@,/defsline="/' -e 's/,;t t/"/'` |
| 20491 | # echo "$command" |
| 20492 | eval "$command" |
| 20493 | ;; |
| 20494 | esac |
| 20495 | done |
| 20496 | IFS=$as_save_IFS |
| 20497 | |
| 20498 | # And some defines (assuming here that the packages base dir |
| 20499 | # doesn't have a config.h file |
| 20500 | for word in $defsline; do |
| 20501 | # echo word $word |
| 20502 | case $word in |
| 20503 | -DHAVE_[A-Z_]*_H=1 | -DSTDC_HEADERS=1 ) |
| 20504 | i=`echoscip-shell system . . echo. $word | sedscip-shell system . . sed. -e 's/-D/#define /' -e 's/=/ /'` |
| 20505 | # echo dd $i |
| 20506 | echoscip-shell system . . echo. $i >>confdefs.h |
| 20507 | ;; |
| 20508 | esac |
| 20509 | done |
| 20510 | fi |
| 20511 | |
| 20512 | # AC_MSG_NOTICE([End of INIT_AUTO_TOOLS.]) |
| 20513 | |
| 20514 | # Check whether --enable-dependency-linking or --disable-dependency-linking was given. |
| 20515 | if testscip-shell system . . test. "${enable_dependency_linking+set}" = set; then |
| 20516 | enableval="$enable_dependency_linking" |
| 20517 | dependency_linking="$enableval" |
| 20518 | else |
| 20519 | dependency_linking=auto |
| 20520 | fi; |
| 20521 | |
| 20522 | if testscip-shell system . . test. "$dependency_linking" = auto; then |
| 20523 | # On Cygwin and AIX, building DLLs doesn't work |
| 20524 | dependency_linking=no |
| 20525 | if testscip-shell system . . test. x"$coin_disable_shared" = xno; then |
| 20526 | case $build in |
| 20527 | *-cygwin* | *-mingw*) |
| 20528 | case "$CC" in |
| 20529 | clang* | */clang* ) |
| 20530 | dependency_linking=yes |
| 20531 | ;; |
| 20532 | cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) |
| 20533 | dependency_linking=no |
| 20534 | ;; |
| 20535 | *gcc*) |
| 20536 | dependency_linking=yes |
| 20537 | ;; |
| 20538 | *) |
| 20539 | dependency_linking=yes |
| 20540 | ;; |
| 20541 | esac |
| 20542 | ;; |
| 20543 | *) |
| 20544 | dependency_linking=yes |
| 20545 | ;; |
| 20546 | esac |
| 20547 | fi |
| 20548 | fi |
| 20549 | |
| 20550 | # Set up LT_LDFLAGS, user can initialize and we augment below |
| 20551 | |
| 20552 | |
| 20553 | if testscip-shell system . . test. "$dependency_linking" = yes ; |
| 20554 | then |
| 20555 | LT_LDFLAGS="$LT_LDFLAGS -no-undefined" |
| 20556 | else |
| 20557 | LT_LDFLAGS="$LT_LDFLAGS" |
| 20558 | fi |
| 20559 | |
| 20560 | |
| 20561 | |
| 20562 | if testscip-shell system . . test. "$dependency_linking" = yes; then |
| 20563 | DEPENDENCY_LINKING_TRUE= |
| 20564 | DEPENDENCY_LINKING_FALSE='#' |
| 20565 | else |
| 20566 | DEPENDENCY_LINKING_TRUE='#' |
| 20567 | DEPENDENCY_LINKING_FALSE= |
| 20568 | fi |
| 20569 | |
| 20570 | |
| 20571 | # Check if we want to set the library version |
| 20572 | echoscip-shell system . . echo. "$as_me:$LINENO: checking if library version is set" >&5 |
| 20573 | echoscip-shell system . . echo. $ECHO_N "checking if library version is set... $ECHO_C" >&6 |
| 20574 | if testscip-shell system . . test. x"$coin_libversion" != x; then |
| 20575 | LT_LDFLAGS="$LT_LDFLAGS -version-info $coin_libversion" |
| 20576 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $coin_libversion" >&5 |
| 20577 | echoscip-shell system . . echo. "${ECHO_T}$coin_libversion" >&6 |
| 20578 | else |
| 20579 | echoscip-shell system . . echo. "$as_me:$LINENO: result: no" >&5 |
| 20580 | echoscip-shell system . . echo. "${ECHO_T}no" >&6 |
| 20581 | fi |
| 20582 | |
| 20583 | |
| 20584 | |
| 20585 | #END |
| 20586 | } |
| 20587 | |
| 20588 | ############################################################################# |
| 20589 | # COIN-OR components # |
| 20590 | ############################################################################# |
| 20591 | |
| 20592 | |
| 20593 | |
| 20594 | # Check whether --enable-pkg-config or --disable-pkg-config was given. |
| 20595 | if testscip-shell system . . test. "${enable_pkg_config+set}" = set; then |
| 20596 | enableval="$enable_pkg_config" |
| 20597 | use_pkgconfig="$enableval" |
| 20598 | else |
| 20599 | if testscip-shell system . . test. x$coin_cc_is_cl = xtrue; then |
| 20600 | use_pkgconfig=no |
| 20601 | else |
| 20602 | use_pkgconfig=yes |
| 20603 | fi |
| 20604 | fi; |
| 20605 | |
| 20606 | if testscip-shell system . . test. $use_pkgconfig = yes ; then |
| 20607 | if testscip-shell system . . test. "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 20608 | if testscip-shell system . . test. -n "$ac_tool_prefix"; then |
| 20609 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 20610 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 20611 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for $ac_word" >&5 |
| 20612 | echoscip-shell system . . echo. $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 20613 | if testscip-shell system . . test. "${ac_cv_prog_PKG_CONFIG+set}" = set; then |
| 20614 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 20615 | else |
| 20616 | if testscip-shell system . . test. -n "$PKG_CONFIG"; then |
| 20617 | ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test. |
| 20618 | else |
| 20619 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 20620 | for as_dir in $PATH |
| 20621 | do |
| 20622 | IFS=$as_save_IFS |
| 20623 | testscip-shell system . . test. -z "$as_dir" && as_dir=. |
| 20624 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 20625 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 20626 | ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config" |
| 20627 | echoscip-shell system . . echo. "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 20628 | break 2 |
| 20629 | fi |
| 20630 | done |
| 20631 | done |
| 20632 | |
| 20633 | fi |
| 20634 | fi |
| 20635 | PKG_CONFIG=$ac_cv_prog_PKG_CONFIG |
| 20636 | if testscip-shell system . . test. -n "$PKG_CONFIG"; then |
| 20637 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
| 20638 | echoscip-shell system . . echo. "${ECHO_T}$PKG_CONFIG" >&6 |
| 20639 | else |
| 20640 | echoscip-shell system . . echo. "$as_me:$LINENO: result: no" >&5 |
| 20641 | echoscip-shell system . . echo. "${ECHO_T}no" >&6 |
| 20642 | fi |
| 20643 | |
| 20644 | fi |
| 20645 | if testscip-shell system . . test. -z "$ac_cv_prog_PKG_CONFIG"; then |
| 20646 | ac_ct_PKG_CONFIG=$PKG_CONFIG |
| 20647 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 20648 | set dummy pkg-config; ac_word=$2 |
| 20649 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for $ac_word" >&5 |
| 20650 | echoscip-shell system . . echo. $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 20651 | if testscip-shell system . . test. "${ac_cv_prog_ac_ct_PKG_CONFIG+set}" = set; then |
| 20652 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 20653 | else |
| 20654 | if testscip-shell system . . test. -n "$ac_ct_PKG_CONFIG"; then |
| 20655 | ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test. |
| 20656 | else |
| 20657 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 20658 | for as_dir in $PATH |
| 20659 | do |
| 20660 | IFS=$as_save_IFS |
| 20661 | testscip-shell system . . test. -z "$as_dir" && as_dir=. |
| 20662 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 20663 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 20664 | ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config" |
| 20665 | echoscip-shell system . . echo. "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 20666 | break 2 |
| 20667 | fi |
| 20668 | done |
| 20669 | done |
| 20670 | |
| 20671 | fi |
| 20672 | fi |
| 20673 | ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG |
| 20674 | if testscip-shell system . . test. -n "$ac_ct_PKG_CONFIG"; then |
| 20675 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $ac_ct_PKG_CONFIG" >&5 |
| 20676 | echoscip-shell system . . echo. "${ECHO_T}$ac_ct_PKG_CONFIG" >&6 |
| 20677 | else |
| 20678 | echoscip-shell system . . echo. "$as_me:$LINENO: result: no" >&5 |
| 20679 | echoscip-shell system . . echo. "${ECHO_T}no" >&6 |
| 20680 | fi |
| 20681 | |
| 20682 | PKG_CONFIG=$ac_ct_PKG_CONFIG |
| 20683 | else |
| 20684 | PKG_CONFIG="$ac_cv_prog_PKG_CONFIG" |
| 20685 | fi |
| 20686 | |
| 20687 | fi |
| 20688 | if testscip-shell system . . test. -n "$PKG_CONFIG"; then |
| 20689 | _pkg_min_version=0.16.0 |
| 20690 | echoscip-shell system . . echo. "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 |
| 20691 | echoscip-shell system . . echo. $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6 |
| 20692 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| 20693 | echoscip-shell system . . echo. "$as_me:$LINENO: result: yes" >&5 |
| 20694 | echoscip-shell system . . echo. "${ECHO_T}yes" >&6 |
| 20695 | else |
| 20696 | echoscip-shell system . . echo. "$as_me:$LINENO: result: no" >&5 |
| 20697 | echoscip-shell system . . echo. "${ECHO_T}no" >&6 |
| 20698 | PKG_CONFIG="" |
| 20699 | fi |
| 20700 | fi |
| 20701 | |
| 20702 | # check if pkg-config supports the short-errors flag |
| 20703 | if testscip-shell system . . test. -n "$PKG_CONFIG" && \ |
| 20704 | $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 20705 | pkg_short_errors=" --short-errors " |
| 20706 | else |
| 20707 | pkg_short_errors="" |
| 20708 | fi |
| 20709 | fi |
| 20710 | |
| 20711 | |
| 20712 | |
| 20713 | if testscip-shell system . . test. -n "$PKG_CONFIG"; then |
| 20714 | COIN_HAS_PKGCONFIG_TRUE= |
| 20715 | COIN_HAS_PKGCONFIG_FALSE='#' |
| 20716 | else |
| 20717 | COIN_HAS_PKGCONFIG_TRUE='#' |
| 20718 | COIN_HAS_PKGCONFIG_FALSE= |
| 20719 | fi |
| 20720 | |
| 20721 | |
| 20722 | |
| 20723 | # assemble pkg-config search path for installed projects |
| 20724 | COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH" |
| 20725 | |
| 20726 | # let's assume that when installing into $prefix, then the user may have installed some other coin projects there before, so it's worth to have a look into there |
| 20727 | # best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig, |
| 20728 | # unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}... |
| 20729 | if testscip-shell system . . test. "x${prefix}" = xNONE ; then |
| 20730 | COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib64/pkgconfig:${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}" |
| 20731 | else |
| 20732 | COIN_PKG_CONFIG_PATH="${prefix}/lib64/pkgconfig:${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}" |
| 20733 | fi |
| 20734 | |
| 20735 | |
| 20736 | # Check whether --with-coin-instdir or --without-coin-instdir was given. |
| 20737 | if testscip-shell system . . test. "${with_coin_instdir+set}" = set; then |
| 20738 | withval="$with_coin_instdir" |
| 20739 | if testscip-shell system . . test. -d "$withval"; then : ; else |
| 20740 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5 |
| 20741 | echoscip-shell system . . echo. "$as_me: error: argument for --with-coin-instdir not a directory" >&2;} |
| 20742 | { (exit 1); exit 1; }; } |
| 20743 | fi |
| 20744 | COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}" |
| 20745 | |
| 20746 | fi; |
| 20747 | |
| 20748 | |
| 20749 | |
| 20750 | # assemble additional pkg-config search paths for uninstalled projects |
| 20751 | if testscip-shell system . . test. x$coin_projectdir = xyes ; then |
| 20752 | # if we are in a project setup, then in a classic setup, we want to find uninstalled projects |
| 20753 | # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory |
| 20754 | # unfortunately, if the user set prefix, then we do not know where the project base directory is located |
| 20755 | # but it is likely to be either .. (if we are a usual coin project) or ../.. (if we are a unusual coin project like ThirdParty or Data) |
| 20756 | COIN_PKG_CONFIG_PATH_UNINSTALLED= |
| 20757 | if testscip-shell system . . test. -f ../coin_subdirs.txt ; then |
| 20758 | for i in `catscip-shell system . . cat. ../coin_subdirs.txt` ; do |
| 20759 | if testscip-shell system . . test. -d ../$i ; then |
| 20760 | COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwdscip-shell system . . pwd.`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}" |
| 20761 | fi |
| 20762 | if testscip-shell system . . test. -d ../$i/pkgconfig ; then |
| 20763 | COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwdscip-shell system . . pwd.`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}" |
| 20764 | fi |
| 20765 | done |
| 20766 | fi |
| 20767 | |
| 20768 | if testscip-shell system . . test. -f ../../coin_subdirs.txt ; then |
| 20769 | for i in `catscip-shell system . . cat. ../../coin_subdirs.txt` ; do |
| 20770 | if testscip-shell system . . test. -d ../../$i ; then |
| 20771 | COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwdscip-shell system . . pwd.`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}" |
| 20772 | fi |
| 20773 | if testscip-shell system . . test. -d ../../$i/pkgconfig ; then |
| 20774 | COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwdscip-shell system . . pwd.`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}" |
| 20775 | fi |
| 20776 | done |
| 20777 | fi |
| 20778 | |
| 20779 | if testscip-shell system . . test. -f ../../../coin_subdirs.txt ; then |
| 20780 | for i in `catscip-shell system . . cat. ../../../coin_subdirs.txt` ; do |
| 20781 | if testscip-shell system . . test. -d ../../../$i ; then |
| 20782 | COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../../$i; pwdscip-shell system . . pwd.`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}" |
| 20783 | fi |
| 20784 | if testscip-shell system . . test. -d ../../../$i/pkgconfig ; then |
| 20785 | COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../../$i/pkgconfig; pwdscip-shell system . . pwd.`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}" |
| 20786 | fi |
| 20787 | done |
| 20788 | fi |
| 20789 | |
| 20790 | |
| 20791 | fi |
| 20792 | |
| 20793 | if testscip-shell system . . test. -n "$PKG_CONFIG" && testscip-shell system . . test. x$coin_cc_is_cl = xtrue; then |
| 20794 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: Using pkg-config together with MS or Intel Compiler on Windows is not support by example Makefiles. Consider using --disable-pkg-config." >&5 |
| 20795 | echoscip-shell system . . echo. "$as_me: WARNING: Using pkg-config together with MS or Intel Compiler on Windows is not support by example Makefiles. Consider using --disable-pkg-config." >&2;} |
| 20796 | fi |
| 20797 | |
| 20798 | |
| 20799 | |
| 20800 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for COIN-OR package CoinDepend" >&5 |
| 20801 | echoscip-shell system . . echo. $ECHO_N "checking for COIN-OR package CoinDepend... $ECHO_C" >&6 |
| 20802 | |
| 20803 | coin_has_coindepend=notGiven |
| 20804 | |
| 20805 | # check if user wants to skip package in any case |
| 20806 | if testscip-shell system . . test. x"$COIN_SKIP_PROJECTS" != x; then |
| 20807 | for dir in $COIN_SKIP_PROJECTS; do |
| 20808 | if testscip-shell system . . test. $dir = "CoinDepend"; then |
| 20809 | coin_has_coindepend=skipping |
| 20810 | fi |
| 20811 | done |
| 20812 | fi |
| 20813 | |
| 20814 | if testscip-shell system . . test. "$coin_has_coindepend" != skipping; then |
| 20815 | |
| 20816 | # Check whether --with-m4_tolower(CoinDepend) or --without-m4_tolower(CoinDepend) was given. |
| 20817 | if testscip-shell system . . test. "${with_coindepend+set}" = set; then |
| 20818 | withval="$with_coindepend" |
| 20819 | if testscip-shell system . . test. "$withval" = no ; then |
| 20820 | coin_has_coindepend=skipping |
| 20821 | fi |
| 20822 | |
| 20823 | fi; |
| 20824 | fi |
| 20825 | |
| 20826 | COINDEPEND_LIBS= |
| 20827 | COINDEPEND_CFLAGS= |
| 20828 | COINDEPEND_DATA= |
| 20829 | COINDEPEND_DEPENDENCIES= |
| 20830 | COINDEPEND_PCLIBS= |
| 20831 | COINDEPEND_PCREQUIRES= |
| 20832 | |
| 20833 | |
| 20834 | |
| 20835 | |
| 20836 | |
| 20837 | |
| 20838 | |
| 20839 | |
| 20840 | |
| 20841 | |
| 20842 | |
| 20843 | |
| 20844 | |
| 20845 | |
| 20846 | |
| 20847 | |
| 20848 | |
| 20849 | |
| 20850 | |
| 20851 | |
| 20852 | |
| 20853 | |
| 20854 | |
| 20855 | |
| 20856 | |
| 20857 | #check if user provided LIBS, CFLAGS, or DATA for package or disables use of package |
| 20858 | if testscip-shell system . . test. $coin_has_coindepend != skipping; then |
| 20859 | |
| 20860 | # Check whether --with-m4_tolower(CoinDepend)-lib or --without-m4_tolower(CoinDepend)-lib was given. |
| 20861 | if testscip-shell system . . test. "${with_coindepend_lib+set}" = set; then |
| 20862 | withval="$with_coindepend_lib" |
| 20863 | if testscip-shell system . . test. "$withval" = no ; then |
| 20864 | coin_has_coindepend=skipping |
| 20865 | else |
| 20866 | coin_has_coindepend=yes |
| 20867 | COINDEPEND_LIBS="$withval" |
| 20868 | COINDEPEND_PCLIBS="$withval" |
| 20869 | |
| 20870 | CBCLIB_PCLIBS="$withval $CBCLIB_PCLIBS" |
| 20871 | CBCLIB_LIBS="$withval $CBCLIB_LIBS" |
| 20872 | |
| 20873 | CBCGENERIC_PCLIBS="$withval $CBCGENERIC_PCLIBS" |
| 20874 | CBCGENERIC_LIBS="$withval $CBCGENERIC_LIBS" |
| 20875 | |
| 20876 | # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables |
| 20877 | if testscip-shell system . . test. -z "$PKG_CONFIG" ; then |
| 20878 | COINDEPEND_LIBS_INSTALLED="$withval" |
| 20879 | CBCLIB_LIBS_INSTALLED="$withval $CBCLIB_LIBS_INSTALLED"CBCGENERIC_LIBS_INSTALLED="$withval $CBCGENERIC_LIBS_INSTALLED" |
| 20880 | fi |
| 20881 | fi |
| 20882 | |
| 20883 | fi; |
| 20884 | fi |
| 20885 | |
| 20886 | if testscip-shell system . . test. $coin_has_coindepend != skipping; then |
| 20887 | |
| 20888 | # Check whether --with-m4_tolower(CoinDepend)-incdir or --without-m4_tolower(CoinDepend)-incdir was given. |
| 20889 | if testscip-shell system . . test. "${with_coindepend_incdir+set}" = set; then |
| 20890 | withval="$with_coindepend_incdir" |
| 20891 | if testscip-shell system . . test. "$withval" = no ; then |
| 20892 | coin_has_coindepend=skipping |
| 20893 | else |
| 20894 | coin_has_coindepend=yes |
| 20895 | COINDEPEND_CFLAGS="-I`${CYGPATH_W} $withval`" |
| 20896 | CBCLIB_CFLAGS="-I`${CYGPATH_W} $withval` $CBCLIB_CFLAGS"CBCGENERIC_CFLAGS="-I`${CYGPATH_W} $withval` $CBCGENERIC_CFLAGS" |
| 20897 | # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables |
| 20898 | if testscip-shell system . . test. -z "$PKG_CONFIG" ; then |
| 20899 | COINDEPEND_CFLAGS_INSTALLED="$COINDEPEND_CFLAGS" |
| 20900 | CBCLIB_CFLAGS_INSTALLED="$COINDEPEND_CFLAGS $CBCLIB_CFLAGS_INSTALLED"CBCGENERIC_CFLAGS_INSTALLED="$COINDEPEND_CFLAGS $CBCGENERIC_CFLAGS_INSTALLED" |
| 20901 | fi |
| 20902 | fi |
| 20903 | |
| 20904 | fi; |
| 20905 | fi |
| 20906 | |
| 20907 | if testscip-shell system . . test. $coin_has_coindepend != skipping; then |
| 20908 | |
| 20909 | # Check whether --with-m4_tolower(CoinDepend)-datadir or --without-m4_tolower(CoinDepend)-datadir was given. |
| 20910 | if testscip-shell system . . test. "${with_coindepend_datadir+set}" = set; then |
| 20911 | withval="$with_coindepend_datadir" |
| 20912 | if testscip-shell system . . test. "$withval" = no ; then |
| 20913 | coin_has_coindepend=skipping |
| 20914 | else |
| 20915 | coin_has_coindepend=yes |
| 20916 | COINDEPEND_DATA="$withval" |
| 20917 | # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables |
| 20918 | if testscip-shell system . . test. -z "$PKG_CONFIG" ; then |
| 20919 | COINDEPEND_DATA_INSTALLED="$withval" |
| 20920 | fi |
| 20921 | fi |
| 20922 | |
| 20923 | fi; |
| 20924 | fi |
| 20925 | |
| 20926 | if testscip-shell system . . test. $coin_has_coindepend = notGiven; then |
| 20927 | if testscip-shell system . . test. -n "$PKG_CONFIG" ; then |
| 20928 | # set search path for pkg-config |
| 20929 | # need to export variable to be sure that the following pkg-config gets these values |
| 20930 | coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH" |
| 20931 | PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED" |
| 20932 | export PKG_CONFIG_PATH |
| 20933 | |
| 20934 | # let pkg-config do it's magic |
| 20935 | |
| 20936 | |
| 20937 | |
| 20938 | if testscip-shell system . . test. -n "$PKG_CONFIG" ; then |
| 20939 | if $PKG_CONFIG --exists "cgl osi coinutils"; then |
| 20940 | COINDEPEND_VERSIONS=`$PKG_CONFIG --modversion "cgl osi coinutils" 2>/dev/nullscip-shell filesystem . . `/dev/null`. | trscip-shell system . . tr. '\n' ' '` |
| 20941 | cflags=`$PKG_CONFIG --cflags "cgl osi coinutils" 2>/dev/nullscip-shell filesystem . . `/dev/null`.` |
| 20942 | # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files |
| 20943 | # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's |
| 20944 | # but only do this if is not trivial |
| 20945 | if testscip-shell system . . test. "$CYGPATH_W" != "echo" ; then |
| 20946 | # need to put into brackets since otherwise autoconf replaces the brackets in the sed command |
| 20947 | cflags=`echoscip-shell system . . echo. $cflags | sedscip-shell system . . sed. -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` |
| 20948 | fi |
| 20949 | COINDEPEND_CFLAGS="$cflags" |
| 20950 | COINDEPEND_LIBS=`$PKG_CONFIG --libs "cgl osi coinutils" 2>/dev/nullscip-shell filesystem . . `/dev/null`.` |
| 20951 | COINDEPEND_DATA=`$PKG_CONFIG --variable=datadir "cgl osi coinutils" 2>/dev/nullscip-shell filesystem . . `/dev/null`.` |
| 20952 | coin_has_coindepend=yes |
| 20953 | echoscip-shell system . . echo. "$as_me:$LINENO: result: yes: $COINDEPEND_VERSIONS" >&5 |
| 20954 | echoscip-shell system . . echo. "${ECHO_T}yes: $COINDEPEND_VERSIONS" >&6 |
| 20955 | |
| 20956 | # adjust linker flags for (i)cl compiler |
| 20957 | # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl) |
| 20958 | if testscip-shell system . . test. x$coin_cxx_is_cl = xtrue || testscip-shell system . . test. x$coin_cc_is_cl = xtrue ; |
| 20959 | then |
| 20960 | COINDEPEND_LIBS=`echoscip-shell system . . echo. " $COINDEPEND_LIBS " | sedscip-shell system . . sed. -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'` |
| 20961 | fi |
| 20962 | COINDEPEND_PCREQUIRES="cgl osi coinutils" |
| 20963 | |
| 20964 | # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CbcLib CbcGeneric |
| 20965 | |
| 20966 | CBCLIB_PCREQUIRES="cgl osi coinutils $CBCLIB_PCREQUIRES" |
| 20967 | CBCLIB_CFLAGS="$COINDEPEND_CFLAGS $CBCLIB_CFLAGS" |
| 20968 | CBCLIB_LIBS="$COINDEPEND_LIBS $CBCLIB_LIBS" |
| 20969 | |
| 20970 | CBCGENERIC_PCREQUIRES="cgl osi coinutils $CBCGENERIC_PCREQUIRES" |
| 20971 | CBCGENERIC_CFLAGS="$COINDEPEND_CFLAGS $CBCGENERIC_CFLAGS" |
| 20972 | CBCGENERIC_LIBS="$COINDEPEND_LIBS $CBCGENERIC_LIBS" |
| 20973 | |
| 20974 | |
| 20975 | |
| 20976 | else |
| 20977 | COINDEPEND_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "cgl osi coinutils"` |
| 20978 | coin_has_coindepend=notGiven |
| 20979 | echoscip-shell system . . echo. "$as_me:$LINENO: result: not given: $COINDEPEND_PKG_ERRORS" >&5 |
| 20980 | echoscip-shell system . . echo. "${ECHO_T}not given: $COINDEPEND_PKG_ERRORS" >&6 |
| 20981 | |
| 20982 | fi |
| 20983 | else |
| 20984 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: \"Cannot check for existance of module CoinDepend without pkg-config\"" >&5 |
| 20985 | echoscip-shell system . . echo. "$as_me: error: \"Cannot check for existance of module CoinDepend without pkg-config\"" >&2;} |
| 20986 | { (exit 1); exit 1; }; } |
| 20987 | fi |
| 20988 | |
| 20989 | |
| 20990 | |
| 20991 | |
| 20992 | # reset PKG_CONFIG_PATH variable |
| 20993 | PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH" |
| 20994 | export PKG_CONFIG_PATH |
| 20995 | |
| 20996 | else |
| 20997 | echoscip-shell system . . echo. "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5 |
| 20998 | echoscip-shell system . . echo. "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6 |
| 20999 | |
| 21000 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for COIN-OR package CoinDepend (fallback)" >&5 |
| 21001 | echoscip-shell system . . echo. $ECHO_N "checking for COIN-OR package CoinDepend (fallback)... $ECHO_C" >&6 |
| 21002 | |
| 21003 | coin_has_coindepend=notGiven |
| 21004 | COINDEPEND_LIBS= |
| 21005 | COINDEPEND_LIBS_INSTALLED= |
| 21006 | COINDEPEND_CFLAGS= |
| 21007 | COINDEPEND_CFLAGS_INSTALLED= |
| 21008 | COINDEPEND_DATA= |
| 21009 | COINDEPEND_DATA_INSTALLED= |
| 21010 | COINDEPEND_PCLIBS= |
| 21011 | COINDEPEND_PCREQUIRES= |
| 21012 | |
| 21013 | # initial list of dependencies is "cgl osi coinutils", but we need to filter out version number specifications (= x, <= x, >= x, != x) |
| 21014 | projtoprocess="cgl osi coinutils" |
| 21015 | |
| 21016 | # we first expand the list of projects to process by adding all dependencies just behind the project which depends on it |
| 21017 | # further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards |
| 21018 | # the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples |
| 21019 | # also, we setup the DATA variable |
| 21020 | allproj="" |
| 21021 | allpcfiles="" |
| 21022 | allpcifiles="" |
| 21023 | while testscip-shell system . . test. "x$projtoprocess" != x ; do |
| 21024 | |
| 21025 | for proj in $projtoprocess ; do |
| 21026 | # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it |
| 21027 | pcfile="" |
| 21028 | save_IFS="$IFS" |
| 21029 | IFS=":" |
| 21030 | for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do |
| 21031 | # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again |
| 21032 | if testscip-shell system . . test. -r "$dir/${proj}-uninstalled.pc" ; then |
| 21033 | pcfile="$dir/$proj-uninstalled.pc" |
| 21034 | if testscip-shell system . . test. -r "$dir/${proj}.pc" ; then |
| 21035 | pcifile="$dir/${proj}.pc" |
| 21036 | else |
| 21037 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5 |
| 21038 | echoscip-shell system . . echo. "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;} |
| 21039 | pcifile= |
| 21040 | fi |
| 21041 | break |
| 21042 | fi |
| 21043 | done |
| 21044 | IFS="$save_IFS" |
| 21045 | |
| 21046 | if testscip-shell system . . test. "x$pcfile" != x ; then |
| 21047 | # read dependencies from $pcfile and filter it |
| 21048 | projrequires=`sedscip-shell system . . sed. -n -e 's/Requires://gp' "$pcfile" | sedscip-shell system . . sed. -e 's/<\{0,1\}>\{0,1\}=[ ]\{0,\}[^ ]\{1,\}//g'` |
| 21049 | |
| 21050 | # add projrequires to the front of the list of projects that have to be processed next |
| 21051 | # at the same time, remove $proj from this list |
| 21052 | projtoprocess=`echoscip-shell system . . echo. $projtoprocess | sedscip-shell system . . sed. -e "s/$proj/$projrequires/"` |
| 21053 | |
| 21054 | # read DATA from $pcfile, if _DATA is still empty |
| 21055 | if testscip-shell system . . test. "x$COINDEPEND_DATA" = x ; then |
| 21056 | projdatadir= |
| 21057 | pcfilemod=`sedscip-shell system . . sed. -e '/[a-zA-Z]:/dscip-shell filesystem . . `/[a-zA-Z]:/d`.' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile` |
| 21058 | eval `shscip-shell system . . sh. -c "$pcfilemod"` |
| 21059 | COINDEPEND_DATA="$projdatadir" |
| 21060 | fi |
| 21061 | |
| 21062 | allproj="$allproj $proj" |
| 21063 | allpcfiles="$pcfile:$allpcfiles" |
| 21064 | |
| 21065 | else |
| 21066 | echoscip-shell system . . echo. "$as_me:$LINENO: result: no, dependency $proj not available" >&5 |
| 21067 | echoscip-shell system . . echo. "${ECHO_T}no, dependency $proj not available" >&6 |
| 21068 | allproj=fail |
| 21069 | break 2 |
| 21070 | fi |
| 21071 | |
| 21072 | if testscip-shell system . . test. "x$pcifile" != x ; then |
| 21073 | allpcifiles="$pcifile:$allpcifiles" |
| 21074 | |
| 21075 | # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty |
| 21076 | if testscip-shell system . . test. "x$COINDEPEND_DATA_INSTALLED" = x ; then |
| 21077 | projdatadir= |
| 21078 | pcifilemod=`sedscip-shell system . . sed. -e '/[a-zA-Z]:/dscip-shell filesystem . . `/[a-zA-Z]:/d`.' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile` |
| 21079 | eval `shscip-shell system . . sh. -c "$pcifilemod"` |
| 21080 | if testscip-shell system . . test. "${CYGPATH_W}" != "echo"; then |
| 21081 | projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`" |
| 21082 | fi |
| 21083 | COINDEPEND_DATA_INSTALLED="$projdatadir" |
| 21084 | fi |
| 21085 | |
| 21086 | fi |
| 21087 | |
| 21088 | break |
| 21089 | done |
| 21090 | |
| 21091 | # remove spaces on begin of $projtoprocess |
| 21092 | projtoprocess=`echoscip-shell system . . echo. $projtoprocess | sedscip-shell system . . sed. -e 's/^ *//'` |
| 21093 | |
| 21094 | done |
| 21095 | |
| 21096 | if testscip-shell system . . test. "$allproj" != fail ; then |
| 21097 | |
| 21098 | # now go through the list of .pc files and assemble compiler and linker flags |
| 21099 | # important is here to obey the reverse order that has been setup before, |
| 21100 | # since then libraries that are required by several others should be after these other libraries |
| 21101 | pcfilesprocessed="" |
| 21102 | |
| 21103 | save_IFS="$IFS" |
| 21104 | IFS=":" |
| 21105 | for pcfile in $allpcfiles ; do |
| 21106 | |
| 21107 | # if $pcfile has been processed already, skip this round |
| 21108 | if testscip-shell system . . test. "x$pcfilesprocessed" != x ; then |
| 21109 | for pcfiledone in $pcfilesprocessed ; do |
| 21110 | if testscip-shell system . . test. "$pcfiledone" = "$pcfile" ; then |
| 21111 | continue 2 |
| 21112 | fi |
| 21113 | done |
| 21114 | fi |
| 21115 | |
| 21116 | # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags: |
| 21117 | # replace "Libs:" by "echo projlibs=" |
| 21118 | # replace "Cflags:" by "echo projcflags=" |
| 21119 | # remove every line starting with <some word>: |
| 21120 | pcfilemod=`sedscip-shell system . . sed. -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/dscip-shell filesystem . . `/^[a-zA-Z]*:/d`.' $pcfile` |
| 21121 | |
| 21122 | # set projcflags and projlibs variables by running $pcfilemod |
| 21123 | # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default |
| 21124 | projcflags= |
| 21125 | projlibs= |
| 21126 | IFS="$save_IFS" |
| 21127 | eval `shscip-shell system . . sh. -c "$pcfilemod"` |
| 21128 | IFS=":" |
| 21129 | |
| 21130 | # add CYGPATH_W cludge into include flags and set CFLAGS variable |
| 21131 | if testscip-shell system . . test. "${CYGPATH_W}" != "echo"; then |
| 21132 | projcflags=`echoscip-shell system . . echo. "$projcflags" | sedscip-shell system . . sed. -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` |
| 21133 | fi |
| 21134 | COINDEPEND_CFLAGS="$projcflags $COINDEPEND_CFLAGS" |
| 21135 | |
| 21136 | # set LIBS variable |
| 21137 | COINDEPEND_LIBS="$projlibs $COINDEPEND_LIBS" |
| 21138 | |
| 21139 | # remember that we have processed $pcfile |
| 21140 | pcfilesprocessed="$pcfilesprocessed:$pcfile" |
| 21141 | |
| 21142 | done |
| 21143 | IFS="$save_IFS" |
| 21144 | |
| 21145 | |
| 21146 | # now go through the list of .pc files for installed projects and assemble compiler and linker flags |
| 21147 | # important is here again to obey the reverse order that has been setup before, |
| 21148 | # since then libraries that are required by several others should be after these other libraries |
| 21149 | pcfilesprocessed="" |
| 21150 | |
| 21151 | save_IFS="$IFS" |
| 21152 | IFS=":" |
| 21153 | for pcfile in $allpcifiles ; do |
| 21154 | |
| 21155 | # if $pcfile has been processed already, skip this round |
| 21156 | if testscip-shell system . . test. "x$pcfilesprocessed" != x ; then |
| 21157 | for pcfiledone in $pcfilesprocessed ; do |
| 21158 | if testscip-shell system . . test. "$pcfiledone" = "$pcfile" ; then |
| 21159 | continue 2 |
| 21160 | fi |
| 21161 | done |
| 21162 | fi |
| 21163 | |
| 21164 | # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags: |
| 21165 | # replace "Libs:" by "echo projlibs=" |
| 21166 | # replace "Cflags:" by "echo projcflags=" |
| 21167 | # remove every line starting with <some word>: |
| 21168 | pcfilemod=`sedscip-shell system . . sed. -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/dscip-shell filesystem . . `/^[a-zA-Z]*:/d`.' $pcfile` |
| 21169 | |
| 21170 | # set projcflags and projlibs variables by running $pcfilemod |
| 21171 | # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default |
| 21172 | projcflags= |
| 21173 | projlibs= |
| 21174 | IFS="$save_IFS" |
| 21175 | eval `shscip-shell system . . sh. -c "$pcfilemod"` |
| 21176 | IFS=":" |
| 21177 | |
| 21178 | # add CYGPATH_W cludge into include flags and set CFLAGS variable |
| 21179 | if testscip-shell system . . test. "${CYGPATH_W}" != "echo"; then |
| 21180 | projcflags=`echoscip-shell system . . echo. "$projcflags" | sedscip-shell system . . sed. -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` |
| 21181 | fi |
| 21182 | COINDEPEND_CFLAGS_INSTALLED="$projcflags $COINDEPEND_CFLAGS_INSTALLED" |
| 21183 | |
| 21184 | # set LIBS variable |
| 21185 | COINDEPEND_LIBS_INSTALLED="$projlibs $COINDEPEND_LIBS_INSTALLED" |
| 21186 | |
| 21187 | # remember that we have processed $pcfile |
| 21188 | pcfilesprocessed="$pcfilesprocessed:$pcfile" |
| 21189 | |
| 21190 | done |
| 21191 | IFS="$save_IFS" |
| 21192 | |
| 21193 | |
| 21194 | # finish up |
| 21195 | coin_has_coindepend=yes |
| 21196 | echoscip-shell system . . echo. "$as_me:$LINENO: result: yes" >&5 |
| 21197 | echoscip-shell system . . echo. "${ECHO_T}yes" >&6 |
| 21198 | |
| 21199 | catscip-shell system . . cat. >>confdefs.h <<\_ACEOF |
| 21200 | #define COIN_HAS_COINDEPEND 1 |
| 21201 | _ACEOF |
| 21202 | |
| 21203 | |
| 21204 | # adjust linker flags for (i)cl compiler |
| 21205 | # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl), |
| 21206 | # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`", |
| 21207 | # everything of the form "-lname" by "libname.lib", and |
| 21208 | # everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path` |
| 21209 | if testscip-shell system . . test. x$coin_cxx_is_cl = xtrue || testscip-shell system . . test. x$coin_cc_is_cl = xtrue ; |
| 21210 | then |
| 21211 | COINDEPEND_LIBS=`echoscip-shell system . . echo. " $COINDEPEND_LIBS " | sedscip-shell system . . sed. -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'` |
| 21212 | COINDEPEND_LIBS_INSTALLED=`echoscip-shell system . . echo. " $COINDEPEND_LIBS_INSTALLED" | sedscip-shell system . . sed. -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'` |
| 21213 | fi |
| 21214 | |
| 21215 | COINDEPEND_PCREQUIRES="cgl osi coinutils" |
| 21216 | |
| 21217 | CBCLIB_PCREQUIRES="cgl osi coinutils $CBCLIB_PCREQUIRES" |
| 21218 | CBCLIB_CFLAGS="$COINDEPEND_CFLAGS $CBCLIB_CFLAGS" |
| 21219 | CBCLIB_LIBS="$COINDEPEND_LIBS $CBCLIB_LIBS" |
| 21220 | CBCLIB_CFLAGS_INSTALLED="$COINDEPEND_CFLAGS_INSTALLED $CBCLIB_CFLAGS_INSTALLED" |
| 21221 | CBCLIB_LIBS_INSTALLED="$COINDEPEND_LIBS_INSTALLED $CBCLIB_LIBS_INSTALLED" |
| 21222 | |
| 21223 | CBCGENERIC_PCREQUIRES="cgl osi coinutils $CBCGENERIC_PCREQUIRES" |
| 21224 | CBCGENERIC_CFLAGS="$COINDEPEND_CFLAGS $CBCGENERIC_CFLAGS" |
| 21225 | CBCGENERIC_LIBS="$COINDEPEND_LIBS $CBCGENERIC_LIBS" |
| 21226 | CBCGENERIC_CFLAGS_INSTALLED="$COINDEPEND_CFLAGS_INSTALLED $CBCGENERIC_CFLAGS_INSTALLED" |
| 21227 | CBCGENERIC_LIBS_INSTALLED="$COINDEPEND_LIBS_INSTALLED $CBCGENERIC_LIBS_INSTALLED" |
| 21228 | |
| 21229 | |
| 21230 | fi |
| 21231 | |
| 21232 | |
| 21233 | |
| 21234 | if testscip-shell system . . test. $coin_has_coindepend != notGiven && |
| 21235 | testscip-shell system . . test. $coin_has_coindepend != skipping; then |
| 21236 | COIN_HAS_COINDEPEND_TRUE= |
| 21237 | COIN_HAS_COINDEPEND_FALSE='#' |
| 21238 | else |
| 21239 | COIN_HAS_COINDEPEND_TRUE='#' |
| 21240 | COIN_HAS_COINDEPEND_FALSE= |
| 21241 | fi |
| 21242 | |
| 21243 | |
| 21244 | |
| 21245 | fi |
| 21246 | |
| 21247 | else |
| 21248 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $coin_has_coindepend" >&5 |
| 21249 | echoscip-shell system . . echo. "${ECHO_T}$coin_has_coindepend" >&6 |
| 21250 | fi |
| 21251 | |
| 21252 | if testscip-shell system . . test. $coin_has_coindepend != skipping && |
| 21253 | testscip-shell system . . test. $coin_has_coindepend != notGiven ; then |
| 21254 | |
| 21255 | catscip-shell system . . cat. >>confdefs.h <<\_ACEOF |
| 21256 | #define COIN_HAS_COINDEPEND 1 |
| 21257 | _ACEOF |
| 21258 | |
| 21259 | |
| 21260 | # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given. |
| 21261 | if testscip-shell system . . test. "${enable_interpackage_dependencies+set}" = set; then |
| 21262 | enableval="$enable_interpackage_dependencies" |
| 21263 | |
| 21264 | else |
| 21265 | enable_interpackage_dependencies=yes |
| 21266 | fi; |
| 21267 | |
| 21268 | if testscip-shell system . . test. $enable_interpackage_dependencies = yes ; then |
| 21269 | # construct dependencies variables from LIBS variables |
| 21270 | # we add an extra space in LIBS so we can substitute out everything starting with " -" |
| 21271 | # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows |
| 21272 | # then remove everything of the form -xxx |
| 21273 | # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl) |
| 21274 | COINDEPEND_DEPENDENCIES=`echoscip-shell system . . echo. " $COINDEPEND_LIBS" | sedscip-shell system . . sed. -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'` |
| 21275 | |
| 21276 | CBCLIB_DEPENDENCIES=`echoscip-shell system . . echo. " $CBCLIB_LIBS " | sedscip-shell system . . sed. -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'` |
| 21277 | |
| 21278 | CBCGENERIC_DEPENDENCIES=`echoscip-shell system . . echo. " $CBCGENERIC_LIBS " | sedscip-shell system . . sed. -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'` |
| 21279 | |
| 21280 | fi |
| 21281 | |
| 21282 | if testscip-shell system . . test. 1 = 0 ; then #change this test to enable a bit of debugging output |
| 21283 | if testscip-shell system . . test. -n "$COINDEPEND_CFLAGS" ; then |
| 21284 | { echoscip-shell system . . echo. "$as_me:$LINENO: CoinDepend CFLAGS are $COINDEPEND_CFLAGS" >&5 |
| 21285 | echoscip-shell system . . echo. "$as_me: CoinDepend CFLAGS are $COINDEPEND_CFLAGS" >&6;} |
| 21286 | fi |
| 21287 | if testscip-shell system . . test. -n "$COINDEPEND_LIBS" ; then |
| 21288 | { echoscip-shell system . . echo. "$as_me:$LINENO: CoinDepend LIBS are $COINDEPEND_LIBS" >&5 |
| 21289 | echoscip-shell system . . echo. "$as_me: CoinDepend LIBS are $COINDEPEND_LIBS" >&6;} |
| 21290 | fi |
| 21291 | if testscip-shell system . . test. -n "$COINDEPEND_DEPENDENCIES" ; then |
| 21292 | { echoscip-shell system . . echo. "$as_me:$LINENO: CoinDepend DEPENDENCIES are $COINDEPEND_DEPENDENCIES" >&5 |
| 21293 | echoscip-shell system . . echo. "$as_me: CoinDepend DEPENDENCIES are $COINDEPEND_DEPENDENCIES" >&6;} |
| 21294 | fi |
| 21295 | if testscip-shell system . . test. -n "$COINDEPEND_DATA" ; then |
| 21296 | { echoscip-shell system . . echo. "$as_me:$LINENO: CoinDepend DATA is $COINDEPEND_DATA" >&5 |
| 21297 | echoscip-shell system . . echo. "$as_me: CoinDepend DATA is $COINDEPEND_DATA" >&6;} |
| 21298 | fi |
| 21299 | if testscip-shell system . . test. -n "$COINDEPEND_PCLIBS" ; then |
| 21300 | { echoscip-shell system . . echo. "$as_me:$LINENO: CoinDepend PCLIBS are $COINDEPEND_PCLIBS" >&5 |
| 21301 | echoscip-shell system . . echo. "$as_me: CoinDepend PCLIBS are $COINDEPEND_PCLIBS" >&6;} |
| 21302 | fi |
| 21303 | if testscip-shell system . . test. -n "$COINDEPEND_PCREQUIRES" ; then |
| 21304 | { echoscip-shell system . . echo. "$as_me:$LINENO: CoinDepend PCREQUIRES are $COINDEPEND_PCREQUIRES" >&5 |
| 21305 | echoscip-shell system . . echo. "$as_me: CoinDepend PCREQUIRES are $COINDEPEND_PCREQUIRES" >&6;} |
| 21306 | fi |
| 21307 | |
| 21308 | { echoscip-shell system . . echo. "$as_me:$LINENO: CbcLib CFLAGS are $CBCLIB_CFLAGS" >&5 |
| 21309 | echoscip-shell system . . echo. "$as_me: CbcLib CFLAGS are $CBCLIB_CFLAGS" >&6;} |
| 21310 | { echoscip-shell system . . echo. "$as_me:$LINENO: CbcLib LIBS are $CBCLIB_LIBS" >&5 |
| 21311 | echoscip-shell system . . echo. "$as_me: CbcLib LIBS are $CBCLIB_LIBS" >&6;} |
| 21312 | { echoscip-shell system . . echo. "$as_me:$LINENO: CbcLib DEPENDENCIES are $CBCLIB_DEPENDENCIES" >&5 |
| 21313 | echoscip-shell system . . echo. "$as_me: CbcLib DEPENDENCIES are $CBCLIB_DEPENDENCIES" >&6;} |
| 21314 | |
| 21315 | { echoscip-shell system . . echo. "$as_me:$LINENO: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&5 |
| 21316 | echoscip-shell system . . echo. "$as_me: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&6;} |
| 21317 | { echoscip-shell system . . echo. "$as_me:$LINENO: CbcGeneric LIBS are $CBCGENERIC_LIBS" >&5 |
| 21318 | echoscip-shell system . . echo. "$as_me: CbcGeneric LIBS are $CBCGENERIC_LIBS" >&6;} |
| 21319 | { echoscip-shell system . . echo. "$as_me:$LINENO: CbcGeneric DEPENDENCIES are $CBCGENERIC_DEPENDENCIES" >&5 |
| 21320 | echoscip-shell system . . echo. "$as_me: CbcGeneric DEPENDENCIES are $CBCGENERIC_DEPENDENCIES" >&6;} |
| 21321 | |
| 21322 | fi |
| 21323 | fi |
| 21324 | |
| 21325 | # Define the Makefile conditional |
| 21326 | |
| 21327 | |
| 21328 | if testscip-shell system . . test. $coin_has_coindepend != notGiven && |
| 21329 | testscip-shell system . . test. $coin_has_coindepend != skipping; then |
| 21330 | COIN_HAS_COINDEPEND_TRUE= |
| 21331 | COIN_HAS_COINDEPEND_FALSE='#' |
| 21332 | else |
| 21333 | COIN_HAS_COINDEPEND_TRUE='#' |
| 21334 | COIN_HAS_COINDEPEND_FALSE= |
| 21335 | fi |
| 21336 | |
| 21337 | |
| 21338 | |
| 21339 | if testscip-shell system . . test. $coin_has_coindepend != yes ; then |
| 21340 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: One or more required packages CoinUtils, Osi, and Cgl are not available." >&5 |
| 21341 | echoscip-shell system . . echo. "$as_me: error: One or more required packages CoinUtils, Osi, and Cgl are not available." >&2;} |
| 21342 | { (exit 1); exit 1; }; } |
| 21343 | fi |
| 21344 | |
| 21345 | # Clp and OsiClp are inseparable here. |
| 21346 | |
| 21347 | |
| 21348 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for COIN-OR package Clp" >&5 |
| 21349 | echoscip-shell system . . echo. $ECHO_N "checking for COIN-OR package Clp... $ECHO_C" >&6 |
| 21350 | |
| 21351 | coin_has_clp=notGiven |
| 21352 | |
| 21353 | # check if user wants to skip package in any case |
| 21354 | if testscip-shell system . . test. x"$COIN_SKIP_PROJECTS" != x; then |
| 21355 | for dir in $COIN_SKIP_PROJECTS; do |
| 21356 | if testscip-shell system . . test. $dir = "Clp"; then |
| 21357 | coin_has_clp=skipping |
| 21358 | fi |
| 21359 | done |
| 21360 | fi |
| 21361 | |
| 21362 | if testscip-shell system . . test. "$coin_has_clp" != skipping; then |
| 21363 | |
| 21364 | # Check whether --with-m4_tolower(Clp) or --without-m4_tolower(Clp) was given. |
| 21365 | if testscip-shell system . . test. "${with_clp+set}" = set; then |
| 21366 | withval="$with_clp" |
| 21367 | if testscip-shell system . . test. "$withval" = no ; then |
| 21368 | coin_has_clp=skipping |
| 21369 | fi |
| 21370 | |
| 21371 | fi; |
| 21372 | fi |
| 21373 | |
| 21374 | CLP_LIBS= |
| 21375 | CLP_CFLAGS= |
| 21376 | CLP_DATA= |
| 21377 | CLP_DEPENDENCIES= |
| 21378 | CLP_PCLIBS= |
| 21379 | CLP_PCREQUIRES= |
| 21380 | |
| 21381 | |
| 21382 | |
| 21383 | |
| 21384 | |
| 21385 | |
| 21386 | |
| 21387 | |
| 21388 | |
| 21389 | |
| 21390 | |
| 21391 | |
| 21392 | |
| 21393 | |
| 21394 | |
| 21395 | |
| 21396 | |
| 21397 | |
| 21398 | |
| 21399 | |
| 21400 | |
| 21401 | |
| 21402 | |
| 21403 | |
| 21404 | |
| 21405 | #check if user provided LIBS, CFLAGS, or DATA for package or disables use of package |
| 21406 | if testscip-shell system . . test. $coin_has_clp != skipping; then |
| 21407 | |
| 21408 | # Check whether --with-m4_tolower(Clp)-lib or --without-m4_tolower(Clp)-lib was given. |
| 21409 | if testscip-shell system . . test. "${with_clp_lib+set}" = set; then |
| 21410 | withval="$with_clp_lib" |
| 21411 | if testscip-shell system . . test. "$withval" = no ; then |
| 21412 | coin_has_clp=skipping |
| 21413 | else |
| 21414 | coin_has_clp=yes |
| 21415 | CLP_LIBS="$withval" |
| 21416 | CLP_PCLIBS="$withval" |
| 21417 | |
| 21418 | CBCLIB_PCLIBS="$withval $CBCLIB_PCLIBS" |
| 21419 | CBCLIB_LIBS="$withval $CBCLIB_LIBS" |
| 21420 | |
| 21421 | CBCGENERIC_PCLIBS="$withval $CBCGENERIC_PCLIBS" |
| 21422 | CBCGENERIC_LIBS="$withval $CBCGENERIC_LIBS" |
| 21423 | |
| 21424 | # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables |
| 21425 | if testscip-shell system . . test. -z "$PKG_CONFIG" ; then |
| 21426 | CLP_LIBS_INSTALLED="$withval" |
| 21427 | CBCLIB_LIBS_INSTALLED="$withval $CBCLIB_LIBS_INSTALLED"CBCGENERIC_LIBS_INSTALLED="$withval $CBCGENERIC_LIBS_INSTALLED" |
| 21428 | fi |
| 21429 | fi |
| 21430 | |
| 21431 | fi; |
| 21432 | fi |
| 21433 | |
| 21434 | if testscip-shell system . . test. $coin_has_clp != skipping; then |
| 21435 | |
| 21436 | # Check whether --with-m4_tolower(Clp)-incdir or --without-m4_tolower(Clp)-incdir was given. |
| 21437 | if testscip-shell system . . test. "${with_clp_incdir+set}" = set; then |
| 21438 | withval="$with_clp_incdir" |
| 21439 | if testscip-shell system . . test. "$withval" = no ; then |
| 21440 | coin_has_clp=skipping |
| 21441 | else |
| 21442 | coin_has_clp=yes |
| 21443 | CLP_CFLAGS="-I`${CYGPATH_W} $withval`" |
| 21444 | CBCLIB_CFLAGS="-I`${CYGPATH_W} $withval` $CBCLIB_CFLAGS"CBCGENERIC_CFLAGS="-I`${CYGPATH_W} $withval` $CBCGENERIC_CFLAGS" |
| 21445 | # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables |
| 21446 | if testscip-shell system . . test. -z "$PKG_CONFIG" ; then |
| 21447 | CLP_CFLAGS_INSTALLED="$CLP_CFLAGS" |
| 21448 | CBCLIB_CFLAGS_INSTALLED="$CLP_CFLAGS $CBCLIB_CFLAGS_INSTALLED"CBCGENERIC_CFLAGS_INSTALLED="$CLP_CFLAGS $CBCGENERIC_CFLAGS_INSTALLED" |
| 21449 | fi |
| 21450 | fi |
| 21451 | |
| 21452 | fi; |
| 21453 | fi |
| 21454 | |
| 21455 | if testscip-shell system . . test. $coin_has_clp != skipping; then |
| 21456 | |
| 21457 | # Check whether --with-m4_tolower(Clp)-datadir or --without-m4_tolower(Clp)-datadir was given. |
| 21458 | if testscip-shell system . . test. "${with_clp_datadir+set}" = set; then |
| 21459 | withval="$with_clp_datadir" |
| 21460 | if testscip-shell system . . test. "$withval" = no ; then |
| 21461 | coin_has_clp=skipping |
| 21462 | else |
| 21463 | coin_has_clp=yes |
| 21464 | CLP_DATA="$withval" |
| 21465 | # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables |
| 21466 | if testscip-shell system . . test. -z "$PKG_CONFIG" ; then |
| 21467 | CLP_DATA_INSTALLED="$withval" |
| 21468 | fi |
| 21469 | fi |
| 21470 | |
| 21471 | fi; |
| 21472 | fi |
| 21473 | |
| 21474 | if testscip-shell system . . test. $coin_has_clp = notGiven; then |
| 21475 | if testscip-shell system . . test. -n "$PKG_CONFIG" ; then |
| 21476 | # set search path for pkg-config |
| 21477 | # need to export variable to be sure that the following pkg-config gets these values |
| 21478 | coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH" |
| 21479 | PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED" |
| 21480 | export PKG_CONFIG_PATH |
| 21481 | |
| 21482 | # let pkg-config do it's magic |
| 21483 | |
| 21484 | |
| 21485 | |
| 21486 | if testscip-shell system . . test. -n "$PKG_CONFIG" ; then |
| 21487 | if $PKG_CONFIG --exists "clp osi-clp"; then |
| 21488 | CLP_VERSIONS=`$PKG_CONFIG --modversion "clp osi-clp" 2>/dev/nullscip-shell filesystem . . `/dev/null`. | trscip-shell system . . tr. '\n' ' '` |
| 21489 | cflags=`$PKG_CONFIG --cflags "clp osi-clp" 2>/dev/nullscip-shell filesystem . . `/dev/null`.` |
| 21490 | # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files |
| 21491 | # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's |
| 21492 | # but only do this if is not trivial |
| 21493 | if testscip-shell system . . test. "$CYGPATH_W" != "echo" ; then |
| 21494 | # need to put into brackets since otherwise autoconf replaces the brackets in the sed command |
| 21495 | cflags=`echoscip-shell system . . echo. $cflags | sedscip-shell system . . sed. -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` |
| 21496 | fi |
| 21497 | CLP_CFLAGS="$cflags" |
| 21498 | CLP_LIBS=`$PKG_CONFIG --libs "clp osi-clp" 2>/dev/nullscip-shell filesystem . . `/dev/null`.` |
| 21499 | CLP_DATA=`$PKG_CONFIG --variable=datadir "clp osi-clp" 2>/dev/nullscip-shell filesystem . . `/dev/null`.` |
| 21500 | coin_has_clp=yes |
| 21501 | echoscip-shell system . . echo. "$as_me:$LINENO: result: yes: $CLP_VERSIONS" >&5 |
| 21502 | echoscip-shell system . . echo. "${ECHO_T}yes: $CLP_VERSIONS" >&6 |
| 21503 | |
| 21504 | # adjust linker flags for (i)cl compiler |
| 21505 | # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl) |
| 21506 | if testscip-shell system . . test. x$coin_cxx_is_cl = xtrue || testscip-shell system . . test. x$coin_cc_is_cl = xtrue ; |
| 21507 | then |
| 21508 | CLP_LIBS=`echoscip-shell system . . echo. " $CLP_LIBS " | sedscip-shell system . . sed. -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'` |
| 21509 | fi |
| 21510 | CLP_PCREQUIRES="clp osi-clp" |
| 21511 | |
| 21512 | # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CbcLib CbcGeneric |
| 21513 | |
| 21514 | CBCLIB_PCREQUIRES="clp osi-clp $CBCLIB_PCREQUIRES" |
| 21515 | CBCLIB_CFLAGS="$CLP_CFLAGS $CBCLIB_CFLAGS" |
| 21516 | CBCLIB_LIBS="$CLP_LIBS $CBCLIB_LIBS" |
| 21517 | |
| 21518 | CBCGENERIC_PCREQUIRES="clp osi-clp $CBCGENERIC_PCREQUIRES" |
| 21519 | CBCGENERIC_CFLAGS="$CLP_CFLAGS $CBCGENERIC_CFLAGS" |
| 21520 | CBCGENERIC_LIBS="$CLP_LIBS $CBCGENERIC_LIBS" |
| 21521 | |
| 21522 | |
| 21523 | |
| 21524 | else |
| 21525 | CLP_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "clp osi-clp"` |
| 21526 | coin_has_clp=notGiven |
| 21527 | echoscip-shell system . . echo. "$as_me:$LINENO: result: not given: $CLP_PKG_ERRORS" >&5 |
| 21528 | echoscip-shell system . . echo. "${ECHO_T}not given: $CLP_PKG_ERRORS" >&6 |
| 21529 | |
| 21530 | fi |
| 21531 | else |
| 21532 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: \"Cannot check for existance of module Clp without pkg-config\"" >&5 |
| 21533 | echoscip-shell system . . echo. "$as_me: error: \"Cannot check for existance of module Clp without pkg-config\"" >&2;} |
| 21534 | { (exit 1); exit 1; }; } |
| 21535 | fi |
| 21536 | |
| 21537 | |
| 21538 | |
| 21539 | |
| 21540 | # reset PKG_CONFIG_PATH variable |
| 21541 | PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH" |
| 21542 | export PKG_CONFIG_PATH |
| 21543 | |
| 21544 | else |
| 21545 | echoscip-shell system . . echo. "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5 |
| 21546 | echoscip-shell system . . echo. "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6 |
| 21547 | |
| 21548 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for COIN-OR package Clp (fallback)" >&5 |
| 21549 | echoscip-shell system . . echo. $ECHO_N "checking for COIN-OR package Clp (fallback)... $ECHO_C" >&6 |
| 21550 | |
| 21551 | coin_has_clp=notGiven |
| 21552 | CLP_LIBS= |
| 21553 | CLP_LIBS_INSTALLED= |
| 21554 | CLP_CFLAGS= |
| 21555 | CLP_CFLAGS_INSTALLED= |
| 21556 | CLP_DATA= |
| 21557 | CLP_DATA_INSTALLED= |
| 21558 | CLP_PCLIBS= |
| 21559 | CLP_PCREQUIRES= |
| 21560 | |
| 21561 | # initial list of dependencies is "clp osi-clp", but we need to filter out version number specifications (= x, <= x, >= x, != x) |
| 21562 | projtoprocess="clp osi-clp" |
| 21563 | |
| 21564 | # we first expand the list of projects to process by adding all dependencies just behind the project which depends on it |
| 21565 | # further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards |
| 21566 | # the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples |
| 21567 | # also, we setup the DATA variable |
| 21568 | allproj="" |
| 21569 | allpcfiles="" |
| 21570 | allpcifiles="" |
| 21571 | while testscip-shell system . . test. "x$projtoprocess" != x ; do |
| 21572 | |
| 21573 | for proj in $projtoprocess ; do |
| 21574 | # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it |
| 21575 | pcfile="" |
| 21576 | save_IFS="$IFS" |
| 21577 | IFS=":" |
| 21578 | for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do |
| 21579 | # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again |
| 21580 | if testscip-shell system . . test. -r "$dir/${proj}-uninstalled.pc" ; then |
| 21581 | pcfile="$dir/$proj-uninstalled.pc" |
| 21582 | if testscip-shell system . . test. -r "$dir/${proj}.pc" ; then |
| 21583 | pcifile="$dir/${proj}.pc" |
| 21584 | else |
| 21585 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5 |
| 21586 | echoscip-shell system . . echo. "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;} |
| 21587 | pcifile= |
| 21588 | fi |
| 21589 | break |
| 21590 | fi |
| 21591 | done |
| 21592 | IFS="$save_IFS" |
| 21593 | |
| 21594 | if testscip-shell system . . test. "x$pcfile" != x ; then |
| 21595 | # read dependencies from $pcfile and filter it |
| 21596 | projrequires=`sedscip-shell system . . sed. -n -e 's/Requires://gp' "$pcfile" | sedscip-shell system . . sed. -e 's/<\{0,1\}>\{0,1\}=[ ]\{0,\}[^ ]\{1,\}//g'` |
| 21597 | |
| 21598 | # add projrequires to the front of the list of projects that have to be processed next |
| 21599 | # at the same time, remove $proj from this list |
| 21600 | projtoprocess=`echoscip-shell system . . echo. $projtoprocess | sedscip-shell system . . sed. -e "s/$proj/$projrequires/"` |
| 21601 | |
| 21602 | # read DATA from $pcfile, if _DATA is still empty |
| 21603 | if testscip-shell system . . test. "x$CLP_DATA" = x ; then |
| 21604 | projdatadir= |
| 21605 | pcfilemod=`sedscip-shell system . . sed. -e '/[a-zA-Z]:/dscip-shell filesystem . . `/[a-zA-Z]:/d`.' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile` |
| 21606 | eval `shscip-shell system . . sh. -c "$pcfilemod"` |
| 21607 | CLP_DATA="$projdatadir" |
| 21608 | fi |
| 21609 | |
| 21610 | allproj="$allproj $proj" |
| 21611 | allpcfiles="$pcfile:$allpcfiles" |
| 21612 | |
| 21613 | else |
| 21614 | echoscip-shell system . . echo. "$as_me:$LINENO: result: no, dependency $proj not available" >&5 |
| 21615 | echoscip-shell system . . echo. "${ECHO_T}no, dependency $proj not available" >&6 |
| 21616 | allproj=fail |
| 21617 | break 2 |
| 21618 | fi |
| 21619 | |
| 21620 | if testscip-shell system . . test. "x$pcifile" != x ; then |
| 21621 | allpcifiles="$pcifile:$allpcifiles" |
| 21622 | |
| 21623 | # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty |
| 21624 | if testscip-shell system . . test. "x$CLP_DATA_INSTALLED" = x ; then |
| 21625 | projdatadir= |
| 21626 | pcifilemod=`sedscip-shell system . . sed. -e '/[a-zA-Z]:/dscip-shell filesystem . . `/[a-zA-Z]:/d`.' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile` |
| 21627 | eval `shscip-shell system . . sh. -c "$pcifilemod"` |
| 21628 | if testscip-shell system . . test. "${CYGPATH_W}" != "echo"; then |
| 21629 | projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`" |
| 21630 | fi |
| 21631 | CLP_DATA_INSTALLED="$projdatadir" |
| 21632 | fi |
| 21633 | |
| 21634 | fi |
| 21635 | |
| 21636 | break |
| 21637 | done |
| 21638 | |
| 21639 | # remove spaces on begin of $projtoprocess |
| 21640 | projtoprocess=`echoscip-shell system . . echo. $projtoprocess | sedscip-shell system . . sed. -e 's/^ *//'` |
| 21641 | |
| 21642 | done |
| 21643 | |
| 21644 | if testscip-shell system . . test. "$allproj" != fail ; then |
| 21645 | |
| 21646 | # now go through the list of .pc files and assemble compiler and linker flags |
| 21647 | # important is here to obey the reverse order that has been setup before, |
| 21648 | # since then libraries that are required by several others should be after these other libraries |
| 21649 | pcfilesprocessed="" |
| 21650 | |
| 21651 | save_IFS="$IFS" |
| 21652 | IFS=":" |
| 21653 | for pcfile in $allpcfiles ; do |
| 21654 | |
| 21655 | # if $pcfile has been processed already, skip this round |
| 21656 | if testscip-shell system . . test. "x$pcfilesprocessed" != x ; then |
| 21657 | for pcfiledone in $pcfilesprocessed ; do |
| 21658 | if testscip-shell system . . test. "$pcfiledone" = "$pcfile" ; then |
| 21659 | continue 2 |
| 21660 | fi |
| 21661 | done |
| 21662 | fi |
| 21663 | |
| 21664 | # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags: |
| 21665 | # replace "Libs:" by "echo projlibs=" |
| 21666 | # replace "Cflags:" by "echo projcflags=" |
| 21667 | # remove every line starting with <some word>: |
| 21668 | pcfilemod=`sedscip-shell system . . sed. -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/dscip-shell filesystem . . `/^[a-zA-Z]*:/d`.' $pcfile` |
| 21669 | |
| 21670 | # set projcflags and projlibs variables by running $pcfilemod |
| 21671 | # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default |
| 21672 | projcflags= |
| 21673 | projlibs= |
| 21674 | IFS="$save_IFS" |
| 21675 | eval `shscip-shell system . . sh. -c "$pcfilemod"` |
| 21676 | IFS=":" |
| 21677 | |
| 21678 | # add CYGPATH_W cludge into include flags and set CFLAGS variable |
| 21679 | if testscip-shell system . . test. "${CYGPATH_W}" != "echo"; then |
| 21680 | projcflags=`echoscip-shell system . . echo. "$projcflags" | sedscip-shell system . . sed. -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` |
| 21681 | fi |
| 21682 | CLP_CFLAGS="$projcflags $CLP_CFLAGS" |
| 21683 | |
| 21684 | # set LIBS variable |
| 21685 | CLP_LIBS="$projlibs $CLP_LIBS" |
| 21686 | |
| 21687 | # remember that we have processed $pcfile |
| 21688 | pcfilesprocessed="$pcfilesprocessed:$pcfile" |
| 21689 | |
| 21690 | done |
| 21691 | IFS="$save_IFS" |
| 21692 | |
| 21693 | |
| 21694 | # now go through the list of .pc files for installed projects and assemble compiler and linker flags |
| 21695 | # important is here again to obey the reverse order that has been setup before, |
| 21696 | # since then libraries that are required by several others should be after these other libraries |
| 21697 | pcfilesprocessed="" |
| 21698 | |
| 21699 | save_IFS="$IFS" |
| 21700 | IFS=":" |
| 21701 | for pcfile in $allpcifiles ; do |
| 21702 | |
| 21703 | # if $pcfile has been processed already, skip this round |
| 21704 | if testscip-shell system . . test. "x$pcfilesprocessed" != x ; then |
| 21705 | for pcfiledone in $pcfilesprocessed ; do |
| 21706 | if testscip-shell system . . test. "$pcfiledone" = "$pcfile" ; then |
| 21707 | continue 2 |
| 21708 | fi |
| 21709 | done |
| 21710 | fi |
| 21711 | |
| 21712 | # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags: |
| 21713 | # replace "Libs:" by "echo projlibs=" |
| 21714 | # replace "Cflags:" by "echo projcflags=" |
| 21715 | # remove every line starting with <some word>: |
| 21716 | pcfilemod=`sedscip-shell system . . sed. -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/dscip-shell filesystem . . `/^[a-zA-Z]*:/d`.' $pcfile` |
| 21717 | |
| 21718 | # set projcflags and projlibs variables by running $pcfilemod |
| 21719 | # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default |
| 21720 | projcflags= |
| 21721 | projlibs= |
| 21722 | IFS="$save_IFS" |
| 21723 | eval `shscip-shell system . . sh. -c "$pcfilemod"` |
| 21724 | IFS=":" |
| 21725 | |
| 21726 | # add CYGPATH_W cludge into include flags and set CFLAGS variable |
| 21727 | if testscip-shell system . . test. "${CYGPATH_W}" != "echo"; then |
| 21728 | projcflags=`echoscip-shell system . . echo. "$projcflags" | sedscip-shell system . . sed. -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` |
| 21729 | fi |
| 21730 | CLP_CFLAGS_INSTALLED="$projcflags $CLP_CFLAGS_INSTALLED" |
| 21731 | |
| 21732 | # set LIBS variable |
| 21733 | CLP_LIBS_INSTALLED="$projlibs $CLP_LIBS_INSTALLED" |
| 21734 | |
| 21735 | # remember that we have processed $pcfile |
| 21736 | pcfilesprocessed="$pcfilesprocessed:$pcfile" |
| 21737 | |
| 21738 | done |
| 21739 | IFS="$save_IFS" |
| 21740 | |
| 21741 | |
| 21742 | # finish up |
| 21743 | coin_has_clp=yes |
| 21744 | echoscip-shell system . . echo. "$as_me:$LINENO: result: yes" >&5 |
| 21745 | echoscip-shell system . . echo. "${ECHO_T}yes" >&6 |
| 21746 | |
| 21747 | catscip-shell system . . cat. >>confdefs.h <<\_ACEOF |
| 21748 | #define COIN_HAS_CLP 1 |
| 21749 | _ACEOF |
| 21750 | |
| 21751 | |
| 21752 | # adjust linker flags for (i)cl compiler |
| 21753 | # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl), |
| 21754 | # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`", |
| 21755 | # everything of the form "-lname" by "libname.lib", and |
| 21756 | # everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path` |
| 21757 | if testscip-shell system . . test. x$coin_cxx_is_cl = xtrue || testscip-shell system . . test. x$coin_cc_is_cl = xtrue ; |
| 21758 | then |
| 21759 | CLP_LIBS=`echoscip-shell system . . echo. " $CLP_LIBS " | sedscip-shell system . . sed. -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'` |
| 21760 | CLP_LIBS_INSTALLED=`echoscip-shell system . . echo. " $CLP_LIBS_INSTALLED" | sedscip-shell system . . sed. -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'` |
| 21761 | fi |
| 21762 | |
| 21763 | CLP_PCREQUIRES="clp osi-clp" |
| 21764 | |
| 21765 | CBCLIB_PCREQUIRES="clp osi-clp $CBCLIB_PCREQUIRES" |
| 21766 | CBCLIB_CFLAGS="$CLP_CFLAGS $CBCLIB_CFLAGS" |
| 21767 | CBCLIB_LIBS="$CLP_LIBS $CBCLIB_LIBS" |
| 21768 | CBCLIB_CFLAGS_INSTALLED="$CLP_CFLAGS_INSTALLED $CBCLIB_CFLAGS_INSTALLED" |
| 21769 | CBCLIB_LIBS_INSTALLED="$CLP_LIBS_INSTALLED $CBCLIB_LIBS_INSTALLED" |
| 21770 | |
| 21771 | CBCGENERIC_PCREQUIRES="clp osi-clp $CBCGENERIC_PCREQUIRES" |
| 21772 | CBCGENERIC_CFLAGS="$CLP_CFLAGS $CBCGENERIC_CFLAGS" |
| 21773 | CBCGENERIC_LIBS="$CLP_LIBS $CBCGENERIC_LIBS" |
| 21774 | CBCGENERIC_CFLAGS_INSTALLED="$CLP_CFLAGS_INSTALLED $CBCGENERIC_CFLAGS_INSTALLED" |
| 21775 | CBCGENERIC_LIBS_INSTALLED="$CLP_LIBS_INSTALLED $CBCGENERIC_LIBS_INSTALLED" |
| 21776 | |
| 21777 | |
| 21778 | fi |
| 21779 | |
| 21780 | |
| 21781 | |
| 21782 | if testscip-shell system . . test. $coin_has_clp != notGiven && |
| 21783 | testscip-shell system . . test. $coin_has_clp != skipping; then |
| 21784 | COIN_HAS_CLP_TRUE= |
| 21785 | COIN_HAS_CLP_FALSE='#' |
| 21786 | else |
| 21787 | COIN_HAS_CLP_TRUE='#' |
| 21788 | COIN_HAS_CLP_FALSE= |
| 21789 | fi |
| 21790 | |
| 21791 | |
| 21792 | |
| 21793 | fi |
| 21794 | |
| 21795 | else |
| 21796 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $coin_has_clp" >&5 |
| 21797 | echoscip-shell system . . echo. "${ECHO_T}$coin_has_clp" >&6 |
| 21798 | fi |
| 21799 | |
| 21800 | if testscip-shell system . . test. $coin_has_clp != skipping && |
| 21801 | testscip-shell system . . test. $coin_has_clp != notGiven ; then |
| 21802 | |
| 21803 | catscip-shell system . . cat. >>confdefs.h <<\_ACEOF |
| 21804 | #define COIN_HAS_CLP 1 |
| 21805 | _ACEOF |
| 21806 | |
| 21807 | |
| 21808 | # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given. |
| 21809 | if testscip-shell system . . test. "${enable_interpackage_dependencies+set}" = set; then |
| 21810 | enableval="$enable_interpackage_dependencies" |
| 21811 | |
| 21812 | else |
| 21813 | enable_interpackage_dependencies=yes |
| 21814 | fi; |
| 21815 | |
| 21816 | if testscip-shell system . . test. $enable_interpackage_dependencies = yes ; then |
| 21817 | # construct dependencies variables from LIBS variables |
| 21818 | # we add an extra space in LIBS so we can substitute out everything starting with " -" |
| 21819 | # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows |
| 21820 | # then remove everything of the form -xxx |
| 21821 | # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl) |
| 21822 | CLP_DEPENDENCIES=`echoscip-shell system . . echo. " $CLP_LIBS" | sedscip-shell system . . sed. -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'` |
| 21823 | |
| 21824 | CBCLIB_DEPENDENCIES=`echoscip-shell system . . echo. " $CBCLIB_LIBS " | sedscip-shell system . . sed. -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'` |
| 21825 | |
| 21826 | CBCGENERIC_DEPENDENCIES=`echoscip-shell system . . echo. " $CBCGENERIC_LIBS " | sedscip-shell system . . sed. -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'` |
| 21827 | |
| 21828 | fi |
| 21829 | |
| 21830 | if testscip-shell system . . test. 1 = 0 ; then #change this test to enable a bit of debugging output |
| 21831 | if testscip-shell system . . test. -n "$CLP_CFLAGS" ; then |
| 21832 | { echoscip-shell system . . echo. "$as_me:$LINENO: Clp CFLAGS are $CLP_CFLAGS" >&5 |
| 21833 | echoscip-shell system . . echo. "$as_me: Clp CFLAGS are $CLP_CFLAGS" >&6;} |
| 21834 | fi |
| 21835 | if testscip-shell system . . test. -n "$CLP_LIBS" ; then |
| 21836 | { echoscip-shell system . . echo. "$as_me:$LINENO: Clp LIBS are $CLP_LIBS" >&5 |
| 21837 | echoscip-shell system . . echo. "$as_me: Clp LIBS are $CLP_LIBS" >&6;} |
| 21838 | fi |
| 21839 | if testscip-shell system . . test. -n "$CLP_DEPENDENCIES" ; then |
| 21840 | { echoscip-shell system . . echo. "$as_me:$LINENO: Clp DEPENDENCIES are $CLP_DEPENDENCIES" >&5 |
| 21841 | echoscip-shell system . . echo. "$as_me: Clp DEPENDENCIES are $CLP_DEPENDENCIES" >&6;} |
| 21842 | fi |
| 21843 | if testscip-shell system . . test. -n "$CLP_DATA" ; then |
| 21844 | { echoscip-shell system . . echo. "$as_me:$LINENO: Clp DATA is $CLP_DATA" >&5 |
| 21845 | echoscip-shell system . . echo. "$as_me: Clp DATA is $CLP_DATA" >&6;} |
| 21846 | fi |
| 21847 | if testscip-shell system . . test. -n "$CLP_PCLIBS" ; then |
| 21848 | { echoscip-shell system . . echo. "$as_me:$LINENO: Clp PCLIBS are $CLP_PCLIBS" >&5 |
| 21849 | echoscip-shell system . . echo. "$as_me: Clp PCLIBS are $CLP_PCLIBS" >&6;} |
| 21850 | fi |
| 21851 | if testscip-shell system . . test. -n "$CLP_PCREQUIRES" ; then |
| 21852 | { echoscip-shell system . . echo. "$as_me:$LINENO: Clp PCREQUIRES are $CLP_PCREQUIRES" >&5 |
| 21853 | echoscip-shell system . . echo. "$as_me: Clp PCREQUIRES are $CLP_PCREQUIRES" >&6;} |
| 21854 | fi |
| 21855 | |
| 21856 | { echoscip-shell system . . echo. "$as_me:$LINENO: CbcLib CFLAGS are $CBCLIB_CFLAGS" >&5 |
| 21857 | echoscip-shell system . . echo. "$as_me: CbcLib CFLAGS are $CBCLIB_CFLAGS" >&6;} |
| 21858 | { echoscip-shell system . . echo. "$as_me:$LINENO: CbcLib LIBS are $CBCLIB_LIBS" >&5 |
| 21859 | echoscip-shell system . . echo. "$as_me: CbcLib LIBS are $CBCLIB_LIBS" >&6;} |
| 21860 | { echoscip-shell system . . echo. "$as_me:$LINENO: CbcLib DEPENDENCIES are $CBCLIB_DEPENDENCIES" >&5 |
| 21861 | echoscip-shell system . . echo. "$as_me: CbcLib DEPENDENCIES are $CBCLIB_DEPENDENCIES" >&6;} |
| 21862 | |
| 21863 | { echoscip-shell system . . echo. "$as_me:$LINENO: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&5 |
| 21864 | echoscip-shell system . . echo. "$as_me: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&6;} |
| 21865 | { echoscip-shell system . . echo. "$as_me:$LINENO: CbcGeneric LIBS are $CBCGENERIC_LIBS" >&5 |
| 21866 | echoscip-shell system . . echo. "$as_me: CbcGeneric LIBS are $CBCGENERIC_LIBS" >&6;} |
| 21867 | { echoscip-shell system . . echo. "$as_me:$LINENO: CbcGeneric DEPENDENCIES are $CBCGENERIC_DEPENDENCIES" >&5 |
| 21868 | echoscip-shell system . . echo. "$as_me: CbcGeneric DEPENDENCIES are $CBCGENERIC_DEPENDENCIES" >&6;} |
| 21869 | |
| 21870 | fi |
| 21871 | fi |
| 21872 | |
| 21873 | # Define the Makefile conditional |
| 21874 | |
| 21875 | |
| 21876 | if testscip-shell system . . test. $coin_has_clp != notGiven && |
| 21877 | testscip-shell system . . test. $coin_has_clp != skipping; then |
| 21878 | COIN_HAS_CLP_TRUE= |
| 21879 | COIN_HAS_CLP_FALSE='#' |
| 21880 | else |
| 21881 | COIN_HAS_CLP_TRUE='#' |
| 21882 | COIN_HAS_CLP_FALSE= |
| 21883 | fi |
| 21884 | |
| 21885 | |
| 21886 | |
| 21887 | if testscip-shell system . . test. $coin_has_clp != yes ; then |
| 21888 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: \"Required package Clp unavailable.\"" >&5 |
| 21889 | echoscip-shell system . . echo. "$as_me: error: \"Required package Clp unavailable.\"" >&2;} |
| 21890 | { (exit 1); exit 1; }; } |
| 21891 | fi |
| 21892 | |
| 21893 | # The rest are not required for linking against Cbc |
| 21894 | |
| 21895 | |
| 21896 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for COIN-OR package OsiTests" >&5 |
| 21897 | echoscip-shell system . . echo. $ECHO_N "checking for COIN-OR package OsiTests... $ECHO_C" >&6 |
| 21898 | |
| 21899 | coin_has_ositests=notGiven |
| 21900 | |
| 21901 | # check if user wants to skip package in any case |
| 21902 | if testscip-shell system . . test. x"$COIN_SKIP_PROJECTS" != x; then |
| 21903 | for dir in $COIN_SKIP_PROJECTS; do |
| 21904 | if testscip-shell system . . test. $dir = "OsiTests"; then |
| 21905 | coin_has_ositests=skipping |
| 21906 | fi |
| 21907 | done |
| 21908 | fi |
| 21909 | |
| 21910 | if testscip-shell system . . test. "$coin_has_ositests" != skipping; then |
| 21911 | |
| 21912 | # Check whether --with-m4_tolower(OsiTests) or --without-m4_tolower(OsiTests) was given. |
| 21913 | if testscip-shell system . . test. "${with_ositests+set}" = set; then |
| 21914 | withval="$with_ositests" |
| 21915 | if testscip-shell system . . test. "$withval" = no ; then |
| 21916 | coin_has_ositests=skipping |
| 21917 | fi |
| 21918 | |
| 21919 | fi; |
| 21920 | fi |
| 21921 | |
| 21922 | OSITESTS_LIBS= |
| 21923 | OSITESTS_CFLAGS= |
| 21924 | OSITESTS_DATA= |
| 21925 | OSITESTS_DEPENDENCIES= |
| 21926 | OSITESTS_PCLIBS= |
| 21927 | OSITESTS_PCREQUIRES= |
| 21928 | |
| 21929 | |
| 21930 | |
| 21931 | |
| 21932 | |
| 21933 | |
| 21934 | |
| 21935 | |
| 21936 | |
| 21937 | #check if user provided LIBS, CFLAGS, or DATA for package or disables use of package |
| 21938 | if testscip-shell system . . test. $coin_has_ositests != skipping; then |
| 21939 | |
| 21940 | # Check whether --with-m4_tolower(OsiTests)-lib or --without-m4_tolower(OsiTests)-lib was given. |
| 21941 | if testscip-shell system . . test. "${with_ositests_lib+set}" = set; then |
| 21942 | withval="$with_ositests_lib" |
| 21943 | if testscip-shell system . . test. "$withval" = no ; then |
| 21944 | coin_has_ositests=skipping |
| 21945 | else |
| 21946 | coin_has_ositests=yes |
| 21947 | OSITESTS_LIBS="$withval" |
| 21948 | OSITESTS_PCLIBS="$withval" |
| 21949 | |
| 21950 | # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables |
| 21951 | if testscip-shell system . . test. -z "$PKG_CONFIG" ; then |
| 21952 | OSITESTS_LIBS_INSTALLED="$withval" |
| 21953 | |
| 21954 | fi |
| 21955 | fi |
| 21956 | |
| 21957 | fi; |
| 21958 | fi |
| 21959 | |
| 21960 | if testscip-shell system . . test. $coin_has_ositests != skipping; then |
| 21961 | |
| 21962 | # Check whether --with-m4_tolower(OsiTests)-incdir or --without-m4_tolower(OsiTests)-incdir was given. |
| 21963 | if testscip-shell system . . test. "${with_ositests_incdir+set}" = set; then |
| 21964 | withval="$with_ositests_incdir" |
| 21965 | if testscip-shell system . . test. "$withval" = no ; then |
| 21966 | coin_has_ositests=skipping |
| 21967 | else |
| 21968 | coin_has_ositests=yes |
| 21969 | OSITESTS_CFLAGS="-I`${CYGPATH_W} $withval`" |
| 21970 | |
| 21971 | # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables |
| 21972 | if testscip-shell system . . test. -z "$PKG_CONFIG" ; then |
| 21973 | OSITESTS_CFLAGS_INSTALLED="$OSITESTS_CFLAGS" |
| 21974 | |
| 21975 | fi |
| 21976 | fi |
| 21977 | |
| 21978 | fi; |
| 21979 | fi |
| 21980 | |
| 21981 | if testscip-shell system . . test. $coin_has_ositests != skipping; then |
| 21982 | |
| 21983 | # Check whether --with-m4_tolower(OsiTests)-datadir or --without-m4_tolower(OsiTests)-datadir was given. |
| 21984 | if testscip-shell system . . test. "${with_ositests_datadir+set}" = set; then |
| 21985 | withval="$with_ositests_datadir" |
| 21986 | if testscip-shell system . . test. "$withval" = no ; then |
| 21987 | coin_has_ositests=skipping |
| 21988 | else |
| 21989 | coin_has_ositests=yes |
| 21990 | OSITESTS_DATA="$withval" |
| 21991 | # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables |
| 21992 | if testscip-shell system . . test. -z "$PKG_CONFIG" ; then |
| 21993 | OSITESTS_DATA_INSTALLED="$withval" |
| 21994 | fi |
| 21995 | fi |
| 21996 | |
| 21997 | fi; |
| 21998 | fi |
| 21999 | |
| 22000 | if testscip-shell system . . test. $coin_has_ositests = notGiven; then |
| 22001 | if testscip-shell system . . test. -n "$PKG_CONFIG" ; then |
| 22002 | # set search path for pkg-config |
| 22003 | # need to export variable to be sure that the following pkg-config gets these values |
| 22004 | coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH" |
| 22005 | PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED" |
| 22006 | export PKG_CONFIG_PATH |
| 22007 | |
| 22008 | # let pkg-config do it's magic |
| 22009 | |
| 22010 | |
| 22011 | |
| 22012 | if testscip-shell system . . test. -n "$PKG_CONFIG" ; then |
| 22013 | if $PKG_CONFIG --exists "osi-unittests"; then |
| 22014 | OSITESTS_VERSIONS=`$PKG_CONFIG --modversion "osi-unittests" 2>/dev/nullscip-shell filesystem . . `/dev/null`. | trscip-shell system . . tr. '\n' ' '` |
| 22015 | cflags=`$PKG_CONFIG --cflags "osi-unittests" 2>/dev/nullscip-shell filesystem . . `/dev/null`.` |
| 22016 | # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files |
| 22017 | # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's |
| 22018 | # but only do this if is not trivial |
| 22019 | if testscip-shell system . . test. "$CYGPATH_W" != "echo" ; then |
| 22020 | # need to put into brackets since otherwise autoconf replaces the brackets in the sed command |
| 22021 | cflags=`echoscip-shell system . . echo. $cflags | sedscip-shell system . . sed. -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` |
| 22022 | fi |
| 22023 | OSITESTS_CFLAGS="$cflags" |
| 22024 | OSITESTS_LIBS=`$PKG_CONFIG --libs "osi-unittests" 2>/dev/nullscip-shell filesystem . . `/dev/null`.` |
| 22025 | OSITESTS_DATA=`$PKG_CONFIG --variable=datadir "osi-unittests" 2>/dev/nullscip-shell filesystem . . `/dev/null`.` |
| 22026 | coin_has_ositests=yes |
| 22027 | echoscip-shell system . . echo. "$as_me:$LINENO: result: yes: $OSITESTS_VERSIONS" >&5 |
| 22028 | echoscip-shell system . . echo. "${ECHO_T}yes: $OSITESTS_VERSIONS" >&6 |
| 22029 | |
| 22030 | # adjust linker flags for (i)cl compiler |
| 22031 | # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl) |
| 22032 | if testscip-shell system . . test. x$coin_cxx_is_cl = xtrue || testscip-shell system . . test. x$coin_cc_is_cl = xtrue ; |
| 22033 | then |
| 22034 | OSITESTS_LIBS=`echoscip-shell system . . echo. " $OSITESTS_LIBS " | sedscip-shell system . . sed. -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'` |
| 22035 | fi |
| 22036 | OSITESTS_PCREQUIRES="osi-unittests" |
| 22037 | |
| 22038 | # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in |
| 22039 | |
| 22040 | |
| 22041 | |
| 22042 | else |
| 22043 | OSITESTS_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi-unittests"` |
| 22044 | coin_has_ositests=notGiven |
| 22045 | echoscip-shell system . . echo. "$as_me:$LINENO: result: not given: $OSITESTS_PKG_ERRORS" >&5 |
| 22046 | echoscip-shell system . . echo. "${ECHO_T}not given: $OSITESTS_PKG_ERRORS" >&6 |
| 22047 | |
| 22048 | fi |
| 22049 | else |
| 22050 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: \"Cannot check for existance of module OsiTests without pkg-config\"" >&5 |
| 22051 | echoscip-shell system . . echo. "$as_me: error: \"Cannot check for existance of module OsiTests without pkg-config\"" >&2;} |
| 22052 | { (exit 1); exit 1; }; } |
| 22053 | fi |
| 22054 | |
| 22055 | |
| 22056 | |
| 22057 | |
| 22058 | # reset PKG_CONFIG_PATH variable |
| 22059 | PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH" |
| 22060 | export PKG_CONFIG_PATH |
| 22061 | |
| 22062 | else |
| 22063 | echoscip-shell system . . echo. "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5 |
| 22064 | echoscip-shell system . . echo. "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6 |
| 22065 | |
| 22066 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for COIN-OR package OsiTests (fallback)" >&5 |
| 22067 | echoscip-shell system . . echo. $ECHO_N "checking for COIN-OR package OsiTests (fallback)... $ECHO_C" >&6 |
| 22068 | |
| 22069 | coin_has_ositests=notGiven |
| 22070 | OSITESTS_LIBS= |
| 22071 | OSITESTS_LIBS_INSTALLED= |
| 22072 | OSITESTS_CFLAGS= |
| 22073 | OSITESTS_CFLAGS_INSTALLED= |
| 22074 | OSITESTS_DATA= |
| 22075 | OSITESTS_DATA_INSTALLED= |
| 22076 | OSITESTS_PCLIBS= |
| 22077 | OSITESTS_PCREQUIRES= |
| 22078 | |
| 22079 | # initial list of dependencies is "osi-unittests", but we need to filter out version number specifications (= x, <= x, >= x, != x) |
| 22080 | projtoprocess="osi-unittests" |
| 22081 | |
| 22082 | # we first expand the list of projects to process by adding all dependencies just behind the project which depends on it |
| 22083 | # further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards |
| 22084 | # the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples |
| 22085 | # also, we setup the DATA variable |
| 22086 | allproj="" |
| 22087 | allpcfiles="" |
| 22088 | allpcifiles="" |
| 22089 | while testscip-shell system . . test. "x$projtoprocess" != x ; do |
| 22090 | |
| 22091 | for proj in $projtoprocess ; do |
| 22092 | # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it |
| 22093 | pcfile="" |
| 22094 | save_IFS="$IFS" |
| 22095 | IFS=":" |
| 22096 | for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do |
| 22097 | # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again |
| 22098 | if testscip-shell system . . test. -r "$dir/${proj}-uninstalled.pc" ; then |
| 22099 | pcfile="$dir/$proj-uninstalled.pc" |
| 22100 | if testscip-shell system . . test. -r "$dir/${proj}.pc" ; then |
| 22101 | pcifile="$dir/${proj}.pc" |
| 22102 | else |
| 22103 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5 |
| 22104 | echoscip-shell system . . echo. "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;} |
| 22105 | pcifile= |
| 22106 | fi |
| 22107 | break |
| 22108 | fi |
| 22109 | done |
| 22110 | IFS="$save_IFS" |
| 22111 | |
| 22112 | if testscip-shell system . . test. "x$pcfile" != x ; then |
| 22113 | # read dependencies from $pcfile and filter it |
| 22114 | projrequires=`sedscip-shell system . . sed. -n -e 's/Requires://gp' "$pcfile" | sedscip-shell system . . sed. -e 's/<\{0,1\}>\{0,1\}=[ ]\{0,\}[^ ]\{1,\}//g'` |
| 22115 | |
| 22116 | # add projrequires to the front of the list of projects that have to be processed next |
| 22117 | # at the same time, remove $proj from this list |
| 22118 | projtoprocess=`echoscip-shell system . . echo. $projtoprocess | sedscip-shell system . . sed. -e "s/$proj/$projrequires/"` |
| 22119 | |
| 22120 | # read DATA from $pcfile, if _DATA is still empty |
| 22121 | if testscip-shell system . . test. "x$OSITESTS_DATA" = x ; then |
| 22122 | projdatadir= |
| 22123 | pcfilemod=`sedscip-shell system . . sed. -e '/[a-zA-Z]:/dscip-shell filesystem . . `/[a-zA-Z]:/d`.' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile` |
| 22124 | eval `shscip-shell system . . sh. -c "$pcfilemod"` |
| 22125 | OSITESTS_DATA="$projdatadir" |
| 22126 | fi |
| 22127 | |
| 22128 | allproj="$allproj $proj" |
| 22129 | allpcfiles="$pcfile:$allpcfiles" |
| 22130 | |
| 22131 | else |
| 22132 | echoscip-shell system . . echo. "$as_me:$LINENO: result: no, dependency $proj not available" >&5 |
| 22133 | echoscip-shell system . . echo. "${ECHO_T}no, dependency $proj not available" >&6 |
| 22134 | allproj=fail |
| 22135 | break 2 |
| 22136 | fi |
| 22137 | |
| 22138 | if testscip-shell system . . test. "x$pcifile" != x ; then |
| 22139 | allpcifiles="$pcifile:$allpcifiles" |
| 22140 | |
| 22141 | # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty |
| 22142 | if testscip-shell system . . test. "x$OSITESTS_DATA_INSTALLED" = x ; then |
| 22143 | projdatadir= |
| 22144 | pcifilemod=`sedscip-shell system . . sed. -e '/[a-zA-Z]:/dscip-shell filesystem . . `/[a-zA-Z]:/d`.' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile` |
| 22145 | eval `shscip-shell system . . sh. -c "$pcifilemod"` |
| 22146 | if testscip-shell system . . test. "${CYGPATH_W}" != "echo"; then |
| 22147 | projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`" |
| 22148 | fi |
| 22149 | OSITESTS_DATA_INSTALLED="$projdatadir" |
| 22150 | fi |
| 22151 | |
| 22152 | fi |
| 22153 | |
| 22154 | break |
| 22155 | done |
| 22156 | |
| 22157 | # remove spaces on begin of $projtoprocess |
| 22158 | projtoprocess=`echoscip-shell system . . echo. $projtoprocess | sedscip-shell system . . sed. -e 's/^ *//'` |
| 22159 | |
| 22160 | done |
| 22161 | |
| 22162 | if testscip-shell system . . test. "$allproj" != fail ; then |
| 22163 | |
| 22164 | # now go through the list of .pc files and assemble compiler and linker flags |
| 22165 | # important is here to obey the reverse order that has been setup before, |
| 22166 | # since then libraries that are required by several others should be after these other libraries |
| 22167 | pcfilesprocessed="" |
| 22168 | |
| 22169 | save_IFS="$IFS" |
| 22170 | IFS=":" |
| 22171 | for pcfile in $allpcfiles ; do |
| 22172 | |
| 22173 | # if $pcfile has been processed already, skip this round |
| 22174 | if testscip-shell system . . test. "x$pcfilesprocessed" != x ; then |
| 22175 | for pcfiledone in $pcfilesprocessed ; do |
| 22176 | if testscip-shell system . . test. "$pcfiledone" = "$pcfile" ; then |
| 22177 | continue 2 |
| 22178 | fi |
| 22179 | done |
| 22180 | fi |
| 22181 | |
| 22182 | # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags: |
| 22183 | # replace "Libs:" by "echo projlibs=" |
| 22184 | # replace "Cflags:" by "echo projcflags=" |
| 22185 | # remove every line starting with <some word>: |
| 22186 | pcfilemod=`sedscip-shell system . . sed. -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/dscip-shell filesystem . . `/^[a-zA-Z]*:/d`.' $pcfile` |
| 22187 | |
| 22188 | # set projcflags and projlibs variables by running $pcfilemod |
| 22189 | # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default |
| 22190 | projcflags= |
| 22191 | projlibs= |
| 22192 | IFS="$save_IFS" |
| 22193 | eval `shscip-shell system . . sh. -c "$pcfilemod"` |
| 22194 | IFS=":" |
| 22195 | |
| 22196 | # add CYGPATH_W cludge into include flags and set CFLAGS variable |
| 22197 | if testscip-shell system . . test. "${CYGPATH_W}" != "echo"; then |
| 22198 | projcflags=`echoscip-shell system . . echo. "$projcflags" | sedscip-shell system . . sed. -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` |
| 22199 | fi |
| 22200 | OSITESTS_CFLAGS="$projcflags $OSITESTS_CFLAGS" |
| 22201 | |
| 22202 | # set LIBS variable |
| 22203 | OSITESTS_LIBS="$projlibs $OSITESTS_LIBS" |
| 22204 | |
| 22205 | # remember that we have processed $pcfile |
| 22206 | pcfilesprocessed="$pcfilesprocessed:$pcfile" |
| 22207 | |
| 22208 | done |
| 22209 | IFS="$save_IFS" |
| 22210 | |
| 22211 | |
| 22212 | # now go through the list of .pc files for installed projects and assemble compiler and linker flags |
| 22213 | # important is here again to obey the reverse order that has been setup before, |
| 22214 | # since then libraries that are required by several others should be after these other libraries |
| 22215 | pcfilesprocessed="" |
| 22216 | |
| 22217 | save_IFS="$IFS" |
| 22218 | IFS=":" |
| 22219 | for pcfile in $allpcifiles ; do |
| 22220 | |
| 22221 | # if $pcfile has been processed already, skip this round |
| 22222 | if testscip-shell system . . test. "x$pcfilesprocessed" != x ; then |
| 22223 | for pcfiledone in $pcfilesprocessed ; do |
| 22224 | if testscip-shell system . . test. "$pcfiledone" = "$pcfile" ; then |
| 22225 | continue 2 |
| 22226 | fi |
| 22227 | done |
| 22228 | fi |
| 22229 | |
| 22230 | # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags: |
| 22231 | # replace "Libs:" by "echo projlibs=" |
| 22232 | # replace "Cflags:" by "echo projcflags=" |
| 22233 | # remove every line starting with <some word>: |
| 22234 | pcfilemod=`sedscip-shell system . . sed. -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/dscip-shell filesystem . . `/^[a-zA-Z]*:/d`.' $pcfile` |
| 22235 | |
| 22236 | # set projcflags and projlibs variables by running $pcfilemod |
| 22237 | # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default |
| 22238 | projcflags= |
| 22239 | projlibs= |
| 22240 | IFS="$save_IFS" |
| 22241 | eval `shscip-shell system . . sh. -c "$pcfilemod"` |
| 22242 | IFS=":" |
| 22243 | |
| 22244 | # add CYGPATH_W cludge into include flags and set CFLAGS variable |
| 22245 | if testscip-shell system . . test. "${CYGPATH_W}" != "echo"; then |
| 22246 | projcflags=`echoscip-shell system . . echo. "$projcflags" | sedscip-shell system . . sed. -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` |
| 22247 | fi |
| 22248 | OSITESTS_CFLAGS_INSTALLED="$projcflags $OSITESTS_CFLAGS_INSTALLED" |
| 22249 | |
| 22250 | # set LIBS variable |
| 22251 | OSITESTS_LIBS_INSTALLED="$projlibs $OSITESTS_LIBS_INSTALLED" |
| 22252 | |
| 22253 | # remember that we have processed $pcfile |
| 22254 | pcfilesprocessed="$pcfilesprocessed:$pcfile" |
| 22255 | |
| 22256 | done |
| 22257 | IFS="$save_IFS" |
| 22258 | |
| 22259 | |
| 22260 | # finish up |
| 22261 | coin_has_ositests=yes |
| 22262 | echoscip-shell system . . echo. "$as_me:$LINENO: result: yes" >&5 |
| 22263 | echoscip-shell system . . echo. "${ECHO_T}yes" >&6 |
| 22264 | |
| 22265 | catscip-shell system . . cat. >>confdefs.h <<\_ACEOF |
| 22266 | #define COIN_HAS_OSITESTS 1 |
| 22267 | _ACEOF |
| 22268 | |
| 22269 | |
| 22270 | # adjust linker flags for (i)cl compiler |
| 22271 | # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl), |
| 22272 | # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`", |
| 22273 | # everything of the form "-lname" by "libname.lib", and |
| 22274 | # everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path` |
| 22275 | if testscip-shell system . . test. x$coin_cxx_is_cl = xtrue || testscip-shell system . . test. x$coin_cc_is_cl = xtrue ; |
| 22276 | then |
| 22277 | OSITESTS_LIBS=`echoscip-shell system . . echo. " $OSITESTS_LIBS " | sedscip-shell system . . sed. -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'` |
| 22278 | OSITESTS_LIBS_INSTALLED=`echoscip-shell system . . echo. " $OSITESTS_LIBS_INSTALLED" | sedscip-shell system . . sed. -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'` |
| 22279 | fi |
| 22280 | |
| 22281 | OSITESTS_PCREQUIRES="osi-unittests" |
| 22282 | |
| 22283 | |
| 22284 | fi |
| 22285 | |
| 22286 | |
| 22287 | |
| 22288 | if testscip-shell system . . test. $coin_has_ositests != notGiven && |
| 22289 | testscip-shell system . . test. $coin_has_ositests != skipping; then |
| 22290 | COIN_HAS_OSITESTS_TRUE= |
| 22291 | COIN_HAS_OSITESTS_FALSE='#' |
| 22292 | else |
| 22293 | COIN_HAS_OSITESTS_TRUE='#' |
| 22294 | COIN_HAS_OSITESTS_FALSE= |
| 22295 | fi |
| 22296 | |
| 22297 | |
| 22298 | |
| 22299 | fi |
| 22300 | |
| 22301 | else |
| 22302 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $coin_has_ositests" >&5 |
| 22303 | echoscip-shell system . . echo. "${ECHO_T}$coin_has_ositests" >&6 |
| 22304 | fi |
| 22305 | |
| 22306 | if testscip-shell system . . test. $coin_has_ositests != skipping && |
| 22307 | testscip-shell system . . test. $coin_has_ositests != notGiven ; then |
| 22308 | |
| 22309 | catscip-shell system . . cat. >>confdefs.h <<\_ACEOF |
| 22310 | #define COIN_HAS_OSITESTS 1 |
| 22311 | _ACEOF |
| 22312 | |
| 22313 | |
| 22314 | # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given. |
| 22315 | if testscip-shell system . . test. "${enable_interpackage_dependencies+set}" = set; then |
| 22316 | enableval="$enable_interpackage_dependencies" |
| 22317 | |
| 22318 | else |
| 22319 | enable_interpackage_dependencies=yes |
| 22320 | fi; |
| 22321 | |
| 22322 | if testscip-shell system . . test. $enable_interpackage_dependencies = yes ; then |
| 22323 | # construct dependencies variables from LIBS variables |
| 22324 | # we add an extra space in LIBS so we can substitute out everything starting with " -" |
| 22325 | # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows |
| 22326 | # then remove everything of the form -xxx |
| 22327 | # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl) |
| 22328 | OSITESTS_DEPENDENCIES=`echoscip-shell system . . echo. " $OSITESTS_LIBS" | sedscip-shell system . . sed. -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'` |
| 22329 | |
| 22330 | fi |
| 22331 | |
| 22332 | if testscip-shell system . . test. 1 = 0 ; then #change this test to enable a bit of debugging output |
| 22333 | if testscip-shell system . . test. -n "$OSITESTS_CFLAGS" ; then |
| 22334 | { echoscip-shell system . . echo. "$as_me:$LINENO: OsiTests CFLAGS are $OSITESTS_CFLAGS" >&5 |
| 22335 | echoscip-shell system . . echo. "$as_me: OsiTests CFLAGS are $OSITESTS_CFLAGS" >&6;} |
| 22336 | fi |
| 22337 | if testscip-shell system . . test. -n "$OSITESTS_LIBS" ; then |
| 22338 | { echoscip-shell system . . echo. "$as_me:$LINENO: OsiTests LIBS are $OSITESTS_LIBS" >&5 |
| 22339 | echoscip-shell system . . echo. "$as_me: OsiTests LIBS are $OSITESTS_LIBS" >&6;} |
| 22340 | fi |
| 22341 | if testscip-shell system . . test. -n "$OSITESTS_DEPENDENCIES" ; then |
| 22342 | { echoscip-shell system . . echo. "$as_me:$LINENO: OsiTests DEPENDENCIES are $OSITESTS_DEPENDENCIES" >&5 |
| 22343 | echoscip-shell system . . echo. "$as_me: OsiTests DEPENDENCIES are $OSITESTS_DEPENDENCIES" >&6;} |
| 22344 | fi |
| 22345 | if testscip-shell system . . test. -n "$OSITESTS_DATA" ; then |
| 22346 | { echoscip-shell system . . echo. "$as_me:$LINENO: OsiTests DATA is $OSITESTS_DATA" >&5 |
| 22347 | echoscip-shell system . . echo. "$as_me: OsiTests DATA is $OSITESTS_DATA" >&6;} |
| 22348 | fi |
| 22349 | if testscip-shell system . . test. -n "$OSITESTS_PCLIBS" ; then |
| 22350 | { echoscip-shell system . . echo. "$as_me:$LINENO: OsiTests PCLIBS are $OSITESTS_PCLIBS" >&5 |
| 22351 | echoscip-shell system . . echo. "$as_me: OsiTests PCLIBS are $OSITESTS_PCLIBS" >&6;} |
| 22352 | fi |
| 22353 | if testscip-shell system . . test. -n "$OSITESTS_PCREQUIRES" ; then |
| 22354 | { echoscip-shell system . . echo. "$as_me:$LINENO: OsiTests PCREQUIRES are $OSITESTS_PCREQUIRES" >&5 |
| 22355 | echoscip-shell system . . echo. "$as_me: OsiTests PCREQUIRES are $OSITESTS_PCREQUIRES" >&6;} |
| 22356 | fi |
| 22357 | |
| 22358 | fi |
| 22359 | fi |
| 22360 | |
| 22361 | # Define the Makefile conditional |
| 22362 | |
| 22363 | |
| 22364 | if testscip-shell system . . test. $coin_has_ositests != notGiven && |
| 22365 | testscip-shell system . . test. $coin_has_ositests != skipping; then |
| 22366 | COIN_HAS_OSITESTS_TRUE= |
| 22367 | COIN_HAS_OSITESTS_FALSE='#' |
| 22368 | else |
| 22369 | COIN_HAS_OSITESTS_TRUE='#' |
| 22370 | COIN_HAS_OSITESTS_FALSE= |
| 22371 | fi |
| 22372 | |
| 22373 | |
| 22374 | |
| 22375 | |
| 22376 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for COIN-OR package Sample" >&5 |
| 22377 | echoscip-shell system . . echo. $ECHO_N "checking for COIN-OR package Sample... $ECHO_C" >&6 |
| 22378 | |
| 22379 | coin_has_sample=notGiven |
| 22380 | |
| 22381 | # check if user wants to skip package in any case |
| 22382 | if testscip-shell system . . test. x"$COIN_SKIP_PROJECTS" != x; then |
| 22383 | for dir in $COIN_SKIP_PROJECTS; do |
| 22384 | if testscip-shell system . . test. $dir = "Sample"; then |
| 22385 | coin_has_sample=skipping |
| 22386 | fi |
| 22387 | done |
| 22388 | fi |
| 22389 | |
| 22390 | if testscip-shell system . . test. "$coin_has_sample" != skipping; then |
| 22391 | |
| 22392 | # Check whether --with-m4_tolower(Sample) or --without-m4_tolower(Sample) was given. |
| 22393 | if testscip-shell system . . test. "${with_sample+set}" = set; then |
| 22394 | withval="$with_sample" |
| 22395 | if testscip-shell system . . test. "$withval" = no ; then |
| 22396 | coin_has_sample=skipping |
| 22397 | fi |
| 22398 | |
| 22399 | fi; |
| 22400 | fi |
| 22401 | |
| 22402 | SAMPLE_LIBS= |
| 22403 | SAMPLE_CFLAGS= |
| 22404 | SAMPLE_DATA= |
| 22405 | SAMPLE_DEPENDENCIES= |
| 22406 | SAMPLE_PCLIBS= |
| 22407 | SAMPLE_PCREQUIRES= |
| 22408 | |
| 22409 | |
| 22410 | |
| 22411 | |
| 22412 | |
| 22413 | |
| 22414 | |
| 22415 | |
| 22416 | |
| 22417 | #check if user provided LIBS, CFLAGS, or DATA for package or disables use of package |
| 22418 | if testscip-shell system . . test. $coin_has_sample != skipping; then |
| 22419 | |
| 22420 | # Check whether --with-m4_tolower(Sample)-lib or --without-m4_tolower(Sample)-lib was given. |
| 22421 | if testscip-shell system . . test. "${with_sample_lib+set}" = set; then |
| 22422 | withval="$with_sample_lib" |
| 22423 | if testscip-shell system . . test. "$withval" = no ; then |
| 22424 | coin_has_sample=skipping |
| 22425 | else |
| 22426 | coin_has_sample=yes |
| 22427 | SAMPLE_LIBS="$withval" |
| 22428 | SAMPLE_PCLIBS="$withval" |
| 22429 | |
| 22430 | # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables |
| 22431 | if testscip-shell system . . test. -z "$PKG_CONFIG" ; then |
| 22432 | SAMPLE_LIBS_INSTALLED="$withval" |
| 22433 | |
| 22434 | fi |
| 22435 | fi |
| 22436 | |
| 22437 | fi; |
| 22438 | fi |
| 22439 | |
| 22440 | if testscip-shell system . . test. $coin_has_sample != skipping; then |
| 22441 | |
| 22442 | # Check whether --with-m4_tolower(Sample)-incdir or --without-m4_tolower(Sample)-incdir was given. |
| 22443 | if testscip-shell system . . test. "${with_sample_incdir+set}" = set; then |
| 22444 | withval="$with_sample_incdir" |
| 22445 | if testscip-shell system . . test. "$withval" = no ; then |
| 22446 | coin_has_sample=skipping |
| 22447 | else |
| 22448 | coin_has_sample=yes |
| 22449 | SAMPLE_CFLAGS="-I`${CYGPATH_W} $withval`" |
| 22450 | |
| 22451 | # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables |
| 22452 | if testscip-shell system . . test. -z "$PKG_CONFIG" ; then |
| 22453 | SAMPLE_CFLAGS_INSTALLED="$SAMPLE_CFLAGS" |
| 22454 | |
| 22455 | fi |
| 22456 | fi |
| 22457 | |
| 22458 | fi; |
| 22459 | fi |
| 22460 | |
| 22461 | if testscip-shell system . . test. $coin_has_sample != skipping; then |
| 22462 | |
| 22463 | # Check whether --with-m4_tolower(Sample)-datadir or --without-m4_tolower(Sample)-datadir was given. |
| 22464 | if testscip-shell system . . test. "${with_sample_datadir+set}" = set; then |
| 22465 | withval="$with_sample_datadir" |
| 22466 | if testscip-shell system . . test. "$withval" = no ; then |
| 22467 | coin_has_sample=skipping |
| 22468 | else |
| 22469 | coin_has_sample=yes |
| 22470 | SAMPLE_DATA="$withval" |
| 22471 | # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables |
| 22472 | if testscip-shell system . . test. -z "$PKG_CONFIG" ; then |
| 22473 | SAMPLE_DATA_INSTALLED="$withval" |
| 22474 | fi |
| 22475 | fi |
| 22476 | |
| 22477 | fi; |
| 22478 | fi |
| 22479 | |
| 22480 | if testscip-shell system . . test. $coin_has_sample = notGiven; then |
| 22481 | if testscip-shell system . . test. -n "$PKG_CONFIG" ; then |
| 22482 | # set search path for pkg-config |
| 22483 | # need to export variable to be sure that the following pkg-config gets these values |
| 22484 | coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH" |
| 22485 | PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED" |
| 22486 | export PKG_CONFIG_PATH |
| 22487 | |
| 22488 | # let pkg-config do it's magic |
| 22489 | |
| 22490 | |
| 22491 | |
| 22492 | if testscip-shell system . . test. -n "$PKG_CONFIG" ; then |
| 22493 | if $PKG_CONFIG --exists "coindatasample"; then |
| 22494 | SAMPLE_VERSIONS=`$PKG_CONFIG --modversion "coindatasample" 2>/dev/nullscip-shell filesystem . . `/dev/null`. | trscip-shell system . . tr. '\n' ' '` |
| 22495 | cflags=`$PKG_CONFIG --cflags "coindatasample" 2>/dev/nullscip-shell filesystem . . `/dev/null`.` |
| 22496 | # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files |
| 22497 | # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's |
| 22498 | # but only do this if is not trivial |
| 22499 | if testscip-shell system . . test. "$CYGPATH_W" != "echo" ; then |
| 22500 | # need to put into brackets since otherwise autoconf replaces the brackets in the sed command |
| 22501 | cflags=`echoscip-shell system . . echo. $cflags | sedscip-shell system . . sed. -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` |
| 22502 | fi |
| 22503 | SAMPLE_CFLAGS="$cflags" |
| 22504 | SAMPLE_LIBS=`$PKG_CONFIG --libs "coindatasample" 2>/dev/nullscip-shell filesystem . . `/dev/null`.` |
| 22505 | SAMPLE_DATA=`$PKG_CONFIG --variable=datadir "coindatasample" 2>/dev/nullscip-shell filesystem . . `/dev/null`.` |
| 22506 | coin_has_sample=yes |
| 22507 | echoscip-shell system . . echo. "$as_me:$LINENO: result: yes: $SAMPLE_VERSIONS" >&5 |
| 22508 | echoscip-shell system . . echo. "${ECHO_T}yes: $SAMPLE_VERSIONS" >&6 |
| 22509 | |
| 22510 | # adjust linker flags for (i)cl compiler |
| 22511 | # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl) |
| 22512 | if testscip-shell system . . test. x$coin_cxx_is_cl = xtrue || testscip-shell system . . test. x$coin_cc_is_cl = xtrue ; |
| 22513 | then |
| 22514 | SAMPLE_LIBS=`echoscip-shell system . . echo. " $SAMPLE_LIBS " | sedscip-shell system . . sed. -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'` |
| 22515 | fi |
| 22516 | SAMPLE_PCREQUIRES="coindatasample" |
| 22517 | |
| 22518 | # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in |
| 22519 | |
| 22520 | |
| 22521 | |
| 22522 | else |
| 22523 | SAMPLE_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "coindatasample"` |
| 22524 | coin_has_sample=notGiven |
| 22525 | echoscip-shell system . . echo. "$as_me:$LINENO: result: not given: $SAMPLE_PKG_ERRORS" >&5 |
| 22526 | echoscip-shell system . . echo. "${ECHO_T}not given: $SAMPLE_PKG_ERRORS" >&6 |
| 22527 | |
| 22528 | fi |
| 22529 | else |
| 22530 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: \"Cannot check for existance of module Sample without pkg-config\"" >&5 |
| 22531 | echoscip-shell system . . echo. "$as_me: error: \"Cannot check for existance of module Sample without pkg-config\"" >&2;} |
| 22532 | { (exit 1); exit 1; }; } |
| 22533 | fi |
| 22534 | |
| 22535 | |
| 22536 | |
| 22537 | |
| 22538 | # reset PKG_CONFIG_PATH variable |
| 22539 | PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH" |
| 22540 | export PKG_CONFIG_PATH |
| 22541 | |
| 22542 | else |
| 22543 | echoscip-shell system . . echo. "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5 |
| 22544 | echoscip-shell system . . echo. "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6 |
| 22545 | |
| 22546 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for COIN-OR package Sample (fallback)" >&5 |
| 22547 | echoscip-shell system . . echo. $ECHO_N "checking for COIN-OR package Sample (fallback)... $ECHO_C" >&6 |
| 22548 | |
| 22549 | coin_has_sample=notGiven |
| 22550 | SAMPLE_LIBS= |
| 22551 | SAMPLE_LIBS_INSTALLED= |
| 22552 | SAMPLE_CFLAGS= |
| 22553 | SAMPLE_CFLAGS_INSTALLED= |
| 22554 | SAMPLE_DATA= |
| 22555 | SAMPLE_DATA_INSTALLED= |
| 22556 | SAMPLE_PCLIBS= |
| 22557 | SAMPLE_PCREQUIRES= |
| 22558 | |
| 22559 | # initial list of dependencies is "coindatasample", but we need to filter out version number specifications (= x, <= x, >= x, != x) |
| 22560 | projtoprocess="coindatasample" |
| 22561 | |
| 22562 | # we first expand the list of projects to process by adding all dependencies just behind the project which depends on it |
| 22563 | # further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards |
| 22564 | # the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples |
| 22565 | # also, we setup the DATA variable |
| 22566 | allproj="" |
| 22567 | allpcfiles="" |
| 22568 | allpcifiles="" |
| 22569 | while testscip-shell system . . test. "x$projtoprocess" != x ; do |
| 22570 | |
| 22571 | for proj in $projtoprocess ; do |
| 22572 | # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it |
| 22573 | pcfile="" |
| 22574 | save_IFS="$IFS" |
| 22575 | IFS=":" |
| 22576 | for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do |
| 22577 | # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again |
| 22578 | if testscip-shell system . . test. -r "$dir/${proj}-uninstalled.pc" ; then |
| 22579 | pcfile="$dir/$proj-uninstalled.pc" |
| 22580 | if testscip-shell system . . test. -r "$dir/${proj}.pc" ; then |
| 22581 | pcifile="$dir/${proj}.pc" |
| 22582 | else |
| 22583 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5 |
| 22584 | echoscip-shell system . . echo. "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;} |
| 22585 | pcifile= |
| 22586 | fi |
| 22587 | break |
| 22588 | fi |
| 22589 | done |
| 22590 | IFS="$save_IFS" |
| 22591 | |
| 22592 | if testscip-shell system . . test. "x$pcfile" != x ; then |
| 22593 | # read dependencies from $pcfile and filter it |
| 22594 | projrequires=`sedscip-shell system . . sed. -n -e 's/Requires://gp' "$pcfile" | sedscip-shell system . . sed. -e 's/<\{0,1\}>\{0,1\}=[ ]\{0,\}[^ ]\{1,\}//g'` |
| 22595 | |
| 22596 | # add projrequires to the front of the list of projects that have to be processed next |
| 22597 | # at the same time, remove $proj from this list |
| 22598 | projtoprocess=`echoscip-shell system . . echo. $projtoprocess | sedscip-shell system . . sed. -e "s/$proj/$projrequires/"` |
| 22599 | |
| 22600 | # read DATA from $pcfile, if _DATA is still empty |
| 22601 | if testscip-shell system . . test. "x$SAMPLE_DATA" = x ; then |
| 22602 | projdatadir= |
| 22603 | pcfilemod=`sedscip-shell system . . sed. -e '/[a-zA-Z]:/dscip-shell filesystem . . `/[a-zA-Z]:/d`.' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile` |
| 22604 | eval `shscip-shell system . . sh. -c "$pcfilemod"` |
| 22605 | SAMPLE_DATA="$projdatadir" |
| 22606 | fi |
| 22607 | |
| 22608 | allproj="$allproj $proj" |
| 22609 | allpcfiles="$pcfile:$allpcfiles" |
| 22610 | |
| 22611 | else |
| 22612 | echoscip-shell system . . echo. "$as_me:$LINENO: result: no, dependency $proj not available" >&5 |
| 22613 | echoscip-shell system . . echo. "${ECHO_T}no, dependency $proj not available" >&6 |
| 22614 | allproj=fail |
| 22615 | break 2 |
| 22616 | fi |
| 22617 | |
| 22618 | if testscip-shell system . . test. "x$pcifile" != x ; then |
| 22619 | allpcifiles="$pcifile:$allpcifiles" |
| 22620 | |
| 22621 | # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty |
| 22622 | if testscip-shell system . . test. "x$SAMPLE_DATA_INSTALLED" = x ; then |
| 22623 | projdatadir= |
| 22624 | pcifilemod=`sedscip-shell system . . sed. -e '/[a-zA-Z]:/dscip-shell filesystem . . `/[a-zA-Z]:/d`.' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile` |
| 22625 | eval `shscip-shell system . . sh. -c "$pcifilemod"` |
| 22626 | if testscip-shell system . . test. "${CYGPATH_W}" != "echo"; then |
| 22627 | projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`" |
| 22628 | fi |
| 22629 | SAMPLE_DATA_INSTALLED="$projdatadir" |
| 22630 | fi |
| 22631 | |
| 22632 | fi |
| 22633 | |
| 22634 | break |
| 22635 | done |
| 22636 | |
| 22637 | # remove spaces on begin of $projtoprocess |
| 22638 | projtoprocess=`echoscip-shell system . . echo. $projtoprocess | sedscip-shell system . . sed. -e 's/^ *//'` |
| 22639 | |
| 22640 | done |
| 22641 | |
| 22642 | if testscip-shell system . . test. "$allproj" != fail ; then |
| 22643 | |
| 22644 | # now go through the list of .pc files and assemble compiler and linker flags |
| 22645 | # important is here to obey the reverse order that has been setup before, |
| 22646 | # since then libraries that are required by several others should be after these other libraries |
| 22647 | pcfilesprocessed="" |
| 22648 | |
| 22649 | save_IFS="$IFS" |
| 22650 | IFS=":" |
| 22651 | for pcfile in $allpcfiles ; do |
| 22652 | |
| 22653 | # if $pcfile has been processed already, skip this round |
| 22654 | if testscip-shell system . . test. "x$pcfilesprocessed" != x ; then |
| 22655 | for pcfiledone in $pcfilesprocessed ; do |
| 22656 | if testscip-shell system . . test. "$pcfiledone" = "$pcfile" ; then |
| 22657 | continue 2 |
| 22658 | fi |
| 22659 | done |
| 22660 | fi |
| 22661 | |
| 22662 | # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags: |
| 22663 | # replace "Libs:" by "echo projlibs=" |
| 22664 | # replace "Cflags:" by "echo projcflags=" |
| 22665 | # remove every line starting with <some word>: |
| 22666 | pcfilemod=`sedscip-shell system . . sed. -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/dscip-shell filesystem . . `/^[a-zA-Z]*:/d`.' $pcfile` |
| 22667 | |
| 22668 | # set projcflags and projlibs variables by running $pcfilemod |
| 22669 | # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default |
| 22670 | projcflags= |
| 22671 | projlibs= |
| 22672 | IFS="$save_IFS" |
| 22673 | eval `shscip-shell system . . sh. -c "$pcfilemod"` |
| 22674 | IFS=":" |
| 22675 | |
| 22676 | # add CYGPATH_W cludge into include flags and set CFLAGS variable |
| 22677 | if testscip-shell system . . test. "${CYGPATH_W}" != "echo"; then |
| 22678 | projcflags=`echoscip-shell system . . echo. "$projcflags" | sedscip-shell system . . sed. -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` |
| 22679 | fi |
| 22680 | SAMPLE_CFLAGS="$projcflags $SAMPLE_CFLAGS" |
| 22681 | |
| 22682 | # set LIBS variable |
| 22683 | SAMPLE_LIBS="$projlibs $SAMPLE_LIBS" |
| 22684 | |
| 22685 | # remember that we have processed $pcfile |
| 22686 | pcfilesprocessed="$pcfilesprocessed:$pcfile" |
| 22687 | |
| 22688 | done |
| 22689 | IFS="$save_IFS" |
| 22690 | |
| 22691 | |
| 22692 | # now go through the list of .pc files for installed projects and assemble compiler and linker flags |
| 22693 | # important is here again to obey the reverse order that has been setup before, |
| 22694 | # since then libraries that are required by several others should be after these other libraries |
| 22695 | pcfilesprocessed="" |
| 22696 | |
| 22697 | save_IFS="$IFS" |
| 22698 | IFS=":" |
| 22699 | for pcfile in $allpcifiles ; do |
| 22700 | |
| 22701 | # if $pcfile has been processed already, skip this round |
| 22702 | if testscip-shell system . . test. "x$pcfilesprocessed" != x ; then |
| 22703 | for pcfiledone in $pcfilesprocessed ; do |
| 22704 | if testscip-shell system . . test. "$pcfiledone" = "$pcfile" ; then |
| 22705 | continue 2 |
| 22706 | fi |
| 22707 | done |
| 22708 | fi |
| 22709 | |
| 22710 | # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags: |
| 22711 | # replace "Libs:" by "echo projlibs=" |
| 22712 | # replace "Cflags:" by "echo projcflags=" |
| 22713 | # remove every line starting with <some word>: |
| 22714 | pcfilemod=`sedscip-shell system . . sed. -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/dscip-shell filesystem . . `/^[a-zA-Z]*:/d`.' $pcfile` |
| 22715 | |
| 22716 | # set projcflags and projlibs variables by running $pcfilemod |
| 22717 | # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default |
| 22718 | projcflags= |
| 22719 | projlibs= |
| 22720 | IFS="$save_IFS" |
| 22721 | eval `shscip-shell system . . sh. -c "$pcfilemod"` |
| 22722 | IFS=":" |
| 22723 | |
| 22724 | # add CYGPATH_W cludge into include flags and set CFLAGS variable |
| 22725 | if testscip-shell system . . test. "${CYGPATH_W}" != "echo"; then |
| 22726 | projcflags=`echoscip-shell system . . echo. "$projcflags" | sedscip-shell system . . sed. -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` |
| 22727 | fi |
| 22728 | SAMPLE_CFLAGS_INSTALLED="$projcflags $SAMPLE_CFLAGS_INSTALLED" |
| 22729 | |
| 22730 | # set LIBS variable |
| 22731 | SAMPLE_LIBS_INSTALLED="$projlibs $SAMPLE_LIBS_INSTALLED" |
| 22732 | |
| 22733 | # remember that we have processed $pcfile |
| 22734 | pcfilesprocessed="$pcfilesprocessed:$pcfile" |
| 22735 | |
| 22736 | done |
| 22737 | IFS="$save_IFS" |
| 22738 | |
| 22739 | |
| 22740 | # finish up |
| 22741 | coin_has_sample=yes |
| 22742 | echoscip-shell system . . echo. "$as_me:$LINENO: result: yes" >&5 |
| 22743 | echoscip-shell system . . echo. "${ECHO_T}yes" >&6 |
| 22744 | |
| 22745 | catscip-shell system . . cat. >>confdefs.h <<\_ACEOF |
| 22746 | #define COIN_HAS_SAMPLE 1 |
| 22747 | _ACEOF |
| 22748 | |
| 22749 | |
| 22750 | # adjust linker flags for (i)cl compiler |
| 22751 | # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl), |
| 22752 | # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`", |
| 22753 | # everything of the form "-lname" by "libname.lib", and |
| 22754 | # everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path` |
| 22755 | if testscip-shell system . . test. x$coin_cxx_is_cl = xtrue || testscip-shell system . . test. x$coin_cc_is_cl = xtrue ; |
| 22756 | then |
| 22757 | SAMPLE_LIBS=`echoscip-shell system . . echo. " $SAMPLE_LIBS " | sedscip-shell system . . sed. -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'` |
| 22758 | SAMPLE_LIBS_INSTALLED=`echoscip-shell system . . echo. " $SAMPLE_LIBS_INSTALLED" | sedscip-shell system . . sed. -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'` |
| 22759 | fi |
| 22760 | |
| 22761 | SAMPLE_PCREQUIRES="coindatasample" |
| 22762 | |
| 22763 | |
| 22764 | fi |
| 22765 | |
| 22766 | |
| 22767 | |
| 22768 | if testscip-shell system . . test. $coin_has_sample != notGiven && |
| 22769 | testscip-shell system . . test. $coin_has_sample != skipping; then |
| 22770 | COIN_HAS_SAMPLE_TRUE= |
| 22771 | COIN_HAS_SAMPLE_FALSE='#' |
| 22772 | else |
| 22773 | COIN_HAS_SAMPLE_TRUE='#' |
| 22774 | COIN_HAS_SAMPLE_FALSE= |
| 22775 | fi |
| 22776 | |
| 22777 | |
| 22778 | |
| 22779 | fi |
| 22780 | |
| 22781 | else |
| 22782 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $coin_has_sample" >&5 |
| 22783 | echoscip-shell system . . echo. "${ECHO_T}$coin_has_sample" >&6 |
| 22784 | fi |
| 22785 | |
| 22786 | if testscip-shell system . . test. $coin_has_sample != skipping && |
| 22787 | testscip-shell system . . test. $coin_has_sample != notGiven ; then |
| 22788 | |
| 22789 | catscip-shell system . . cat. >>confdefs.h <<\_ACEOF |
| 22790 | #define COIN_HAS_SAMPLE 1 |
| 22791 | _ACEOF |
| 22792 | |
| 22793 | |
| 22794 | # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given. |
| 22795 | if testscip-shell system . . test. "${enable_interpackage_dependencies+set}" = set; then |
| 22796 | enableval="$enable_interpackage_dependencies" |
| 22797 | |
| 22798 | else |
| 22799 | enable_interpackage_dependencies=yes |
| 22800 | fi; |
| 22801 | |
| 22802 | if testscip-shell system . . test. $enable_interpackage_dependencies = yes ; then |
| 22803 | # construct dependencies variables from LIBS variables |
| 22804 | # we add an extra space in LIBS so we can substitute out everything starting with " -" |
| 22805 | # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows |
| 22806 | # then remove everything of the form -xxx |
| 22807 | # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl) |
| 22808 | SAMPLE_DEPENDENCIES=`echoscip-shell system . . echo. " $SAMPLE_LIBS" | sedscip-shell system . . sed. -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'` |
| 22809 | |
| 22810 | fi |
| 22811 | |
| 22812 | if testscip-shell system . . test. 1 = 0 ; then #change this test to enable a bit of debugging output |
| 22813 | if testscip-shell system . . test. -n "$SAMPLE_CFLAGS" ; then |
| 22814 | { echoscip-shell system . . echo. "$as_me:$LINENO: Sample CFLAGS are $SAMPLE_CFLAGS" >&5 |
| 22815 | echoscip-shell system . . echo. "$as_me: Sample CFLAGS are $SAMPLE_CFLAGS" >&6;} |
| 22816 | fi |
| 22817 | if testscip-shell system . . test. -n "$SAMPLE_LIBS" ; then |
| 22818 | { echoscip-shell system . . echo. "$as_me:$LINENO: Sample LIBS are $SAMPLE_LIBS" >&5 |
| 22819 | echoscip-shell system . . echo. "$as_me: Sample LIBS are $SAMPLE_LIBS" >&6;} |
| 22820 | fi |
| 22821 | if testscip-shell system . . test. -n "$SAMPLE_DEPENDENCIES" ; then |
| 22822 | { echoscip-shell system . . echo. "$as_me:$LINENO: Sample DEPENDENCIES are $SAMPLE_DEPENDENCIES" >&5 |
| 22823 | echoscip-shell system . . echo. "$as_me: Sample DEPENDENCIES are $SAMPLE_DEPENDENCIES" >&6;} |
| 22824 | fi |
| 22825 | if testscip-shell system . . test. -n "$SAMPLE_DATA" ; then |
| 22826 | { echoscip-shell system . . echo. "$as_me:$LINENO: Sample DATA is $SAMPLE_DATA" >&5 |
| 22827 | echoscip-shell system . . echo. "$as_me: Sample DATA is $SAMPLE_DATA" >&6;} |
| 22828 | fi |
| 22829 | if testscip-shell system . . test. -n "$SAMPLE_PCLIBS" ; then |
| 22830 | { echoscip-shell system . . echo. "$as_me:$LINENO: Sample PCLIBS are $SAMPLE_PCLIBS" >&5 |
| 22831 | echoscip-shell system . . echo. "$as_me: Sample PCLIBS are $SAMPLE_PCLIBS" >&6;} |
| 22832 | fi |
| 22833 | if testscip-shell system . . test. -n "$SAMPLE_PCREQUIRES" ; then |
| 22834 | { echoscip-shell system . . echo. "$as_me:$LINENO: Sample PCREQUIRES are $SAMPLE_PCREQUIRES" >&5 |
| 22835 | echoscip-shell system . . echo. "$as_me: Sample PCREQUIRES are $SAMPLE_PCREQUIRES" >&6;} |
| 22836 | fi |
| 22837 | |
| 22838 | fi |
| 22839 | fi |
| 22840 | |
| 22841 | # Define the Makefile conditional |
| 22842 | |
| 22843 | |
| 22844 | if testscip-shell system . . test. $coin_has_sample != notGiven && |
| 22845 | testscip-shell system . . test. $coin_has_sample != skipping; then |
| 22846 | COIN_HAS_SAMPLE_TRUE= |
| 22847 | COIN_HAS_SAMPLE_FALSE='#' |
| 22848 | else |
| 22849 | COIN_HAS_SAMPLE_TRUE='#' |
| 22850 | COIN_HAS_SAMPLE_FALSE= |
| 22851 | fi |
| 22852 | |
| 22853 | |
| 22854 | |
| 22855 | |
| 22856 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for COIN-OR package Netlib" >&5 |
| 22857 | echoscip-shell system . . echo. $ECHO_N "checking for COIN-OR package Netlib... $ECHO_C" >&6 |
| 22858 | |
| 22859 | coin_has_netlib=notGiven |
| 22860 | |
| 22861 | # check if user wants to skip package in any case |
| 22862 | if testscip-shell system . . test. x"$COIN_SKIP_PROJECTS" != x; then |
| 22863 | for dir in $COIN_SKIP_PROJECTS; do |
| 22864 | if testscip-shell system . . test. $dir = "Netlib"; then |
| 22865 | coin_has_netlib=skipping |
| 22866 | fi |
| 22867 | done |
| 22868 | fi |
| 22869 | |
| 22870 | if testscip-shell system . . test. "$coin_has_netlib" != skipping; then |
| 22871 | |
| 22872 | # Check whether --with-m4_tolower(Netlib) or --without-m4_tolower(Netlib) was given. |
| 22873 | if testscip-shell system . . test. "${with_netlib+set}" = set; then |
| 22874 | withval="$with_netlib" |
| 22875 | if testscip-shell system . . test. "$withval" = no ; then |
| 22876 | coin_has_netlib=skipping |
| 22877 | fi |
| 22878 | |
| 22879 | fi; |
| 22880 | fi |
| 22881 | |
| 22882 | NETLIB_LIBS= |
| 22883 | NETLIB_CFLAGS= |
| 22884 | NETLIB_DATA= |
| 22885 | NETLIB_DEPENDENCIES= |
| 22886 | NETLIB_PCLIBS= |
| 22887 | NETLIB_PCREQUIRES= |
| 22888 | |
| 22889 | |
| 22890 | |
| 22891 | |
| 22892 | |
| 22893 | |
| 22894 | |
| 22895 | |
| 22896 | |
| 22897 | #check if user provided LIBS, CFLAGS, or DATA for package or disables use of package |
| 22898 | if testscip-shell system . . test. $coin_has_netlib != skipping; then |
| 22899 | |
| 22900 | # Check whether --with-m4_tolower(Netlib)-lib or --without-m4_tolower(Netlib)-lib was given. |
| 22901 | if testscip-shell system . . test. "${with_netlib_lib+set}" = set; then |
| 22902 | withval="$with_netlib_lib" |
| 22903 | if testscip-shell system . . test. "$withval" = no ; then |
| 22904 | coin_has_netlib=skipping |
| 22905 | else |
| 22906 | coin_has_netlib=yes |
| 22907 | NETLIB_LIBS="$withval" |
| 22908 | NETLIB_PCLIBS="$withval" |
| 22909 | |
| 22910 | # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables |
| 22911 | if testscip-shell system . . test. -z "$PKG_CONFIG" ; then |
| 22912 | NETLIB_LIBS_INSTALLED="$withval" |
| 22913 | |
| 22914 | fi |
| 22915 | fi |
| 22916 | |
| 22917 | fi; |
| 22918 | fi |
| 22919 | |
| 22920 | if testscip-shell system . . test. $coin_has_netlib != skipping; then |
| 22921 | |
| 22922 | # Check whether --with-m4_tolower(Netlib)-incdir or --without-m4_tolower(Netlib)-incdir was given. |
| 22923 | if testscip-shell system . . test. "${with_netlib_incdir+set}" = set; then |
| 22924 | withval="$with_netlib_incdir" |
| 22925 | if testscip-shell system . . test. "$withval" = no ; then |
| 22926 | coin_has_netlib=skipping |
| 22927 | else |
| 22928 | coin_has_netlib=yes |
| 22929 | NETLIB_CFLAGS="-I`${CYGPATH_W} $withval`" |
| 22930 | |
| 22931 | # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables |
| 22932 | if testscip-shell system . . test. -z "$PKG_CONFIG" ; then |
| 22933 | NETLIB_CFLAGS_INSTALLED="$NETLIB_CFLAGS" |
| 22934 | |
| 22935 | fi |
| 22936 | fi |
| 22937 | |
| 22938 | fi; |
| 22939 | fi |
| 22940 | |
| 22941 | if testscip-shell system . . test. $coin_has_netlib != skipping; then |
| 22942 | |
| 22943 | # Check whether --with-m4_tolower(Netlib)-datadir or --without-m4_tolower(Netlib)-datadir was given. |
| 22944 | if testscip-shell system . . test. "${with_netlib_datadir+set}" = set; then |
| 22945 | withval="$with_netlib_datadir" |
| 22946 | if testscip-shell system . . test. "$withval" = no ; then |
| 22947 | coin_has_netlib=skipping |
| 22948 | else |
| 22949 | coin_has_netlib=yes |
| 22950 | NETLIB_DATA="$withval" |
| 22951 | # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables |
| 22952 | if testscip-shell system . . test. -z "$PKG_CONFIG" ; then |
| 22953 | NETLIB_DATA_INSTALLED="$withval" |
| 22954 | fi |
| 22955 | fi |
| 22956 | |
| 22957 | fi; |
| 22958 | fi |
| 22959 | |
| 22960 | if testscip-shell system . . test. $coin_has_netlib = notGiven; then |
| 22961 | if testscip-shell system . . test. -n "$PKG_CONFIG" ; then |
| 22962 | # set search path for pkg-config |
| 22963 | # need to export variable to be sure that the following pkg-config gets these values |
| 22964 | coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH" |
| 22965 | PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED" |
| 22966 | export PKG_CONFIG_PATH |
| 22967 | |
| 22968 | # let pkg-config do it's magic |
| 22969 | |
| 22970 | |
| 22971 | |
| 22972 | if testscip-shell system . . test. -n "$PKG_CONFIG" ; then |
| 22973 | if $PKG_CONFIG --exists "coindatanetlib"; then |
| 22974 | NETLIB_VERSIONS=`$PKG_CONFIG --modversion "coindatanetlib" 2>/dev/nullscip-shell filesystem . . `/dev/null`. | trscip-shell system . . tr. '\n' ' '` |
| 22975 | cflags=`$PKG_CONFIG --cflags "coindatanetlib" 2>/dev/nullscip-shell filesystem . . `/dev/null`.` |
| 22976 | # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files |
| 22977 | # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's |
| 22978 | # but only do this if is not trivial |
| 22979 | if testscip-shell system . . test. "$CYGPATH_W" != "echo" ; then |
| 22980 | # need to put into brackets since otherwise autoconf replaces the brackets in the sed command |
| 22981 | cflags=`echoscip-shell system . . echo. $cflags | sedscip-shell system . . sed. -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` |
| 22982 | fi |
| 22983 | NETLIB_CFLAGS="$cflags" |
| 22984 | NETLIB_LIBS=`$PKG_CONFIG --libs "coindatanetlib" 2>/dev/nullscip-shell filesystem . . `/dev/null`.` |
| 22985 | NETLIB_DATA=`$PKG_CONFIG --variable=datadir "coindatanetlib" 2>/dev/nullscip-shell filesystem . . `/dev/null`.` |
| 22986 | coin_has_netlib=yes |
| 22987 | echoscip-shell system . . echo. "$as_me:$LINENO: result: yes: $NETLIB_VERSIONS" >&5 |
| 22988 | echoscip-shell system . . echo. "${ECHO_T}yes: $NETLIB_VERSIONS" >&6 |
| 22989 | |
| 22990 | # adjust linker flags for (i)cl compiler |
| 22991 | # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl) |
| 22992 | if testscip-shell system . . test. x$coin_cxx_is_cl = xtrue || testscip-shell system . . test. x$coin_cc_is_cl = xtrue ; |
| 22993 | then |
| 22994 | NETLIB_LIBS=`echoscip-shell system . . echo. " $NETLIB_LIBS " | sedscip-shell system . . sed. -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'` |
| 22995 | fi |
| 22996 | NETLIB_PCREQUIRES="coindatanetlib" |
| 22997 | |
| 22998 | # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in |
| 22999 | |
| 23000 | |
| 23001 | |
| 23002 | else |
| 23003 | NETLIB_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "coindatanetlib"` |
| 23004 | coin_has_netlib=notGiven |
| 23005 | echoscip-shell system . . echo. "$as_me:$LINENO: result: not given: $NETLIB_PKG_ERRORS" >&5 |
| 23006 | echoscip-shell system . . echo. "${ECHO_T}not given: $NETLIB_PKG_ERRORS" >&6 |
| 23007 | |
| 23008 | fi |
| 23009 | else |
| 23010 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: \"Cannot check for existance of module Netlib without pkg-config\"" >&5 |
| 23011 | echoscip-shell system . . echo. "$as_me: error: \"Cannot check for existance of module Netlib without pkg-config\"" >&2;} |
| 23012 | { (exit 1); exit 1; }; } |
| 23013 | fi |
| 23014 | |
| 23015 | |
| 23016 | |
| 23017 | |
| 23018 | # reset PKG_CONFIG_PATH variable |
| 23019 | PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH" |
| 23020 | export PKG_CONFIG_PATH |
| 23021 | |
| 23022 | else |
| 23023 | echoscip-shell system . . echo. "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5 |
| 23024 | echoscip-shell system . . echo. "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6 |
| 23025 | |
| 23026 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for COIN-OR package Netlib (fallback)" >&5 |
| 23027 | echoscip-shell system . . echo. $ECHO_N "checking for COIN-OR package Netlib (fallback)... $ECHO_C" >&6 |
| 23028 | |
| 23029 | coin_has_netlib=notGiven |
| 23030 | NETLIB_LIBS= |
| 23031 | NETLIB_LIBS_INSTALLED= |
| 23032 | NETLIB_CFLAGS= |
| 23033 | NETLIB_CFLAGS_INSTALLED= |
| 23034 | NETLIB_DATA= |
| 23035 | NETLIB_DATA_INSTALLED= |
| 23036 | NETLIB_PCLIBS= |
| 23037 | NETLIB_PCREQUIRES= |
| 23038 | |
| 23039 | # initial list of dependencies is "coindatanetlib", but we need to filter out version number specifications (= x, <= x, >= x, != x) |
| 23040 | projtoprocess="coindatanetlib" |
| 23041 | |
| 23042 | # we first expand the list of projects to process by adding all dependencies just behind the project which depends on it |
| 23043 | # further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards |
| 23044 | # the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples |
| 23045 | # also, we setup the DATA variable |
| 23046 | allproj="" |
| 23047 | allpcfiles="" |
| 23048 | allpcifiles="" |
| 23049 | while testscip-shell system . . test. "x$projtoprocess" != x ; do |
| 23050 | |
| 23051 | for proj in $projtoprocess ; do |
| 23052 | # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it |
| 23053 | pcfile="" |
| 23054 | save_IFS="$IFS" |
| 23055 | IFS=":" |
| 23056 | for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do |
| 23057 | # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again |
| 23058 | if testscip-shell system . . test. -r "$dir/${proj}-uninstalled.pc" ; then |
| 23059 | pcfile="$dir/$proj-uninstalled.pc" |
| 23060 | if testscip-shell system . . test. -r "$dir/${proj}.pc" ; then |
| 23061 | pcifile="$dir/${proj}.pc" |
| 23062 | else |
| 23063 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5 |
| 23064 | echoscip-shell system . . echo. "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;} |
| 23065 | pcifile= |
| 23066 | fi |
| 23067 | break |
| 23068 | fi |
| 23069 | done |
| 23070 | IFS="$save_IFS" |
| 23071 | |
| 23072 | if testscip-shell system . . test. "x$pcfile" != x ; then |
| 23073 | # read dependencies from $pcfile and filter it |
| 23074 | projrequires=`sedscip-shell system . . sed. -n -e 's/Requires://gp' "$pcfile" | sedscip-shell system . . sed. -e 's/<\{0,1\}>\{0,1\}=[ ]\{0,\}[^ ]\{1,\}//g'` |
| 23075 | |
| 23076 | # add projrequires to the front of the list of projects that have to be processed next |
| 23077 | # at the same time, remove $proj from this list |
| 23078 | projtoprocess=`echoscip-shell system . . echo. $projtoprocess | sedscip-shell system . . sed. -e "s/$proj/$projrequires/"` |
| 23079 | |
| 23080 | # read DATA from $pcfile, if _DATA is still empty |
| 23081 | if testscip-shell system . . test. "x$NETLIB_DATA" = x ; then |
| 23082 | projdatadir= |
| 23083 | pcfilemod=`sedscip-shell system . . sed. -e '/[a-zA-Z]:/dscip-shell filesystem . . `/[a-zA-Z]:/d`.' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile` |
| 23084 | eval `shscip-shell system . . sh. -c "$pcfilemod"` |
| 23085 | NETLIB_DATA="$projdatadir" |
| 23086 | fi |
| 23087 | |
| 23088 | allproj="$allproj $proj" |
| 23089 | allpcfiles="$pcfile:$allpcfiles" |
| 23090 | |
| 23091 | else |
| 23092 | echoscip-shell system . . echo. "$as_me:$LINENO: result: no, dependency $proj not available" >&5 |
| 23093 | echoscip-shell system . . echo. "${ECHO_T}no, dependency $proj not available" >&6 |
| 23094 | allproj=fail |
| 23095 | break 2 |
| 23096 | fi |
| 23097 | |
| 23098 | if testscip-shell system . . test. "x$pcifile" != x ; then |
| 23099 | allpcifiles="$pcifile:$allpcifiles" |
| 23100 | |
| 23101 | # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty |
| 23102 | if testscip-shell system . . test. "x$NETLIB_DATA_INSTALLED" = x ; then |
| 23103 | projdatadir= |
| 23104 | pcifilemod=`sedscip-shell system . . sed. -e '/[a-zA-Z]:/dscip-shell filesystem . . `/[a-zA-Z]:/d`.' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile` |
| 23105 | eval `shscip-shell system . . sh. -c "$pcifilemod"` |
| 23106 | if testscip-shell system . . test. "${CYGPATH_W}" != "echo"; then |
| 23107 | projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`" |
| 23108 | fi |
| 23109 | NETLIB_DATA_INSTALLED="$projdatadir" |
| 23110 | fi |
| 23111 | |
| 23112 | fi |
| 23113 | |
| 23114 | break |
| 23115 | done |
| 23116 | |
| 23117 | # remove spaces on begin of $projtoprocess |
| 23118 | projtoprocess=`echoscip-shell system . . echo. $projtoprocess | sedscip-shell system . . sed. -e 's/^ *//'` |
| 23119 | |
| 23120 | done |
| 23121 | |
| 23122 | if testscip-shell system . . test. "$allproj" != fail ; then |
| 23123 | |
| 23124 | # now go through the list of .pc files and assemble compiler and linker flags |
| 23125 | # important is here to obey the reverse order that has been setup before, |
| 23126 | # since then libraries that are required by several others should be after these other libraries |
| 23127 | pcfilesprocessed="" |
| 23128 | |
| 23129 | save_IFS="$IFS" |
| 23130 | IFS=":" |
| 23131 | for pcfile in $allpcfiles ; do |
| 23132 | |
| 23133 | # if $pcfile has been processed already, skip this round |
| 23134 | if testscip-shell system . . test. "x$pcfilesprocessed" != x ; then |
| 23135 | for pcfiledone in $pcfilesprocessed ; do |
| 23136 | if testscip-shell system . . test. "$pcfiledone" = "$pcfile" ; then |
| 23137 | continue 2 |
| 23138 | fi |
| 23139 | done |
| 23140 | fi |
| 23141 | |
| 23142 | # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags: |
| 23143 | # replace "Libs:" by "echo projlibs=" |
| 23144 | # replace "Cflags:" by "echo projcflags=" |
| 23145 | # remove every line starting with <some word>: |
| 23146 | pcfilemod=`sedscip-shell system . . sed. -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/dscip-shell filesystem . . `/^[a-zA-Z]*:/d`.' $pcfile` |
| 23147 | |
| 23148 | # set projcflags and projlibs variables by running $pcfilemod |
| 23149 | # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default |
| 23150 | projcflags= |
| 23151 | projlibs= |
| 23152 | IFS="$save_IFS" |
| 23153 | eval `shscip-shell system . . sh. -c "$pcfilemod"` |
| 23154 | IFS=":" |
| 23155 | |
| 23156 | # add CYGPATH_W cludge into include flags and set CFLAGS variable |
| 23157 | if testscip-shell system . . test. "${CYGPATH_W}" != "echo"; then |
| 23158 | projcflags=`echoscip-shell system . . echo. "$projcflags" | sedscip-shell system . . sed. -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` |
| 23159 | fi |
| 23160 | NETLIB_CFLAGS="$projcflags $NETLIB_CFLAGS" |
| 23161 | |
| 23162 | # set LIBS variable |
| 23163 | NETLIB_LIBS="$projlibs $NETLIB_LIBS" |
| 23164 | |
| 23165 | # remember that we have processed $pcfile |
| 23166 | pcfilesprocessed="$pcfilesprocessed:$pcfile" |
| 23167 | |
| 23168 | done |
| 23169 | IFS="$save_IFS" |
| 23170 | |
| 23171 | |
| 23172 | # now go through the list of .pc files for installed projects and assemble compiler and linker flags |
| 23173 | # important is here again to obey the reverse order that has been setup before, |
| 23174 | # since then libraries that are required by several others should be after these other libraries |
| 23175 | pcfilesprocessed="" |
| 23176 | |
| 23177 | save_IFS="$IFS" |
| 23178 | IFS=":" |
| 23179 | for pcfile in $allpcifiles ; do |
| 23180 | |
| 23181 | # if $pcfile has been processed already, skip this round |
| 23182 | if testscip-shell system . . test. "x$pcfilesprocessed" != x ; then |
| 23183 | for pcfiledone in $pcfilesprocessed ; do |
| 23184 | if testscip-shell system . . test. "$pcfiledone" = "$pcfile" ; then |
| 23185 | continue 2 |
| 23186 | fi |
| 23187 | done |
| 23188 | fi |
| 23189 | |
| 23190 | # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags: |
| 23191 | # replace "Libs:" by "echo projlibs=" |
| 23192 | # replace "Cflags:" by "echo projcflags=" |
| 23193 | # remove every line starting with <some word>: |
| 23194 | pcfilemod=`sedscip-shell system . . sed. -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/dscip-shell filesystem . . `/^[a-zA-Z]*:/d`.' $pcfile` |
| 23195 | |
| 23196 | # set projcflags and projlibs variables by running $pcfilemod |
| 23197 | # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default |
| 23198 | projcflags= |
| 23199 | projlibs= |
| 23200 | IFS="$save_IFS" |
| 23201 | eval `shscip-shell system . . sh. -c "$pcfilemod"` |
| 23202 | IFS=":" |
| 23203 | |
| 23204 | # add CYGPATH_W cludge into include flags and set CFLAGS variable |
| 23205 | if testscip-shell system . . test. "${CYGPATH_W}" != "echo"; then |
| 23206 | projcflags=`echoscip-shell system . . echo. "$projcflags" | sedscip-shell system . . sed. -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` |
| 23207 | fi |
| 23208 | NETLIB_CFLAGS_INSTALLED="$projcflags $NETLIB_CFLAGS_INSTALLED" |
| 23209 | |
| 23210 | # set LIBS variable |
| 23211 | NETLIB_LIBS_INSTALLED="$projlibs $NETLIB_LIBS_INSTALLED" |
| 23212 | |
| 23213 | # remember that we have processed $pcfile |
| 23214 | pcfilesprocessed="$pcfilesprocessed:$pcfile" |
| 23215 | |
| 23216 | done |
| 23217 | IFS="$save_IFS" |
| 23218 | |
| 23219 | |
| 23220 | # finish up |
| 23221 | coin_has_netlib=yes |
| 23222 | echoscip-shell system . . echo. "$as_me:$LINENO: result: yes" >&5 |
| 23223 | echoscip-shell system . . echo. "${ECHO_T}yes" >&6 |
| 23224 | |
| 23225 | catscip-shell system . . cat. >>confdefs.h <<\_ACEOF |
| 23226 | #define COIN_HAS_NETLIB 1 |
| 23227 | _ACEOF |
| 23228 | |
| 23229 | |
| 23230 | # adjust linker flags for (i)cl compiler |
| 23231 | # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl), |
| 23232 | # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`", |
| 23233 | # everything of the form "-lname" by "libname.lib", and |
| 23234 | # everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path` |
| 23235 | if testscip-shell system . . test. x$coin_cxx_is_cl = xtrue || testscip-shell system . . test. x$coin_cc_is_cl = xtrue ; |
| 23236 | then |
| 23237 | NETLIB_LIBS=`echoscip-shell system . . echo. " $NETLIB_LIBS " | sedscip-shell system . . sed. -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'` |
| 23238 | NETLIB_LIBS_INSTALLED=`echoscip-shell system . . echo. " $NETLIB_LIBS_INSTALLED" | sedscip-shell system . . sed. -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'` |
| 23239 | fi |
| 23240 | |
| 23241 | NETLIB_PCREQUIRES="coindatanetlib" |
| 23242 | |
| 23243 | |
| 23244 | fi |
| 23245 | |
| 23246 | |
| 23247 | |
| 23248 | if testscip-shell system . . test. $coin_has_netlib != notGiven && |
| 23249 | testscip-shell system . . test. $coin_has_netlib != skipping; then |
| 23250 | COIN_HAS_NETLIB_TRUE= |
| 23251 | COIN_HAS_NETLIB_FALSE='#' |
| 23252 | else |
| 23253 | COIN_HAS_NETLIB_TRUE='#' |
| 23254 | COIN_HAS_NETLIB_FALSE= |
| 23255 | fi |
| 23256 | |
| 23257 | |
| 23258 | |
| 23259 | fi |
| 23260 | |
| 23261 | else |
| 23262 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $coin_has_netlib" >&5 |
| 23263 | echoscip-shell system . . echo. "${ECHO_T}$coin_has_netlib" >&6 |
| 23264 | fi |
| 23265 | |
| 23266 | if testscip-shell system . . test. $coin_has_netlib != skipping && |
| 23267 | testscip-shell system . . test. $coin_has_netlib != notGiven ; then |
| 23268 | |
| 23269 | catscip-shell system . . cat. >>confdefs.h <<\_ACEOF |
| 23270 | #define COIN_HAS_NETLIB 1 |
| 23271 | _ACEOF |
| 23272 | |
| 23273 | |
| 23274 | # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given. |
| 23275 | if testscip-shell system . . test. "${enable_interpackage_dependencies+set}" = set; then |
| 23276 | enableval="$enable_interpackage_dependencies" |
| 23277 | |
| 23278 | else |
| 23279 | enable_interpackage_dependencies=yes |
| 23280 | fi; |
| 23281 | |
| 23282 | if testscip-shell system . . test. $enable_interpackage_dependencies = yes ; then |
| 23283 | # construct dependencies variables from LIBS variables |
| 23284 | # we add an extra space in LIBS so we can substitute out everything starting with " -" |
| 23285 | # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows |
| 23286 | # then remove everything of the form -xxx |
| 23287 | # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl) |
| 23288 | NETLIB_DEPENDENCIES=`echoscip-shell system . . echo. " $NETLIB_LIBS" | sedscip-shell system . . sed. -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'` |
| 23289 | |
| 23290 | fi |
| 23291 | |
| 23292 | if testscip-shell system . . test. 1 = 0 ; then #change this test to enable a bit of debugging output |
| 23293 | if testscip-shell system . . test. -n "$NETLIB_CFLAGS" ; then |
| 23294 | { echoscip-shell system . . echo. "$as_me:$LINENO: Netlib CFLAGS are $NETLIB_CFLAGS" >&5 |
| 23295 | echoscip-shell system . . echo. "$as_me: Netlib CFLAGS are $NETLIB_CFLAGS" >&6;} |
| 23296 | fi |
| 23297 | if testscip-shell system . . test. -n "$NETLIB_LIBS" ; then |
| 23298 | { echoscip-shell system . . echo. "$as_me:$LINENO: Netlib LIBS are $NETLIB_LIBS" >&5 |
| 23299 | echoscip-shell system . . echo. "$as_me: Netlib LIBS are $NETLIB_LIBS" >&6;} |
| 23300 | fi |
| 23301 | if testscip-shell system . . test. -n "$NETLIB_DEPENDENCIES" ; then |
| 23302 | { echoscip-shell system . . echo. "$as_me:$LINENO: Netlib DEPENDENCIES are $NETLIB_DEPENDENCIES" >&5 |
| 23303 | echoscip-shell system . . echo. "$as_me: Netlib DEPENDENCIES are $NETLIB_DEPENDENCIES" >&6;} |
| 23304 | fi |
| 23305 | if testscip-shell system . . test. -n "$NETLIB_DATA" ; then |
| 23306 | { echoscip-shell system . . echo. "$as_me:$LINENO: Netlib DATA is $NETLIB_DATA" >&5 |
| 23307 | echoscip-shell system . . echo. "$as_me: Netlib DATA is $NETLIB_DATA" >&6;} |
| 23308 | fi |
| 23309 | if testscip-shell system . . test. -n "$NETLIB_PCLIBS" ; then |
| 23310 | { echoscip-shell system . . echo. "$as_me:$LINENO: Netlib PCLIBS are $NETLIB_PCLIBS" >&5 |
| 23311 | echoscip-shell system . . echo. "$as_me: Netlib PCLIBS are $NETLIB_PCLIBS" >&6;} |
| 23312 | fi |
| 23313 | if testscip-shell system . . test. -n "$NETLIB_PCREQUIRES" ; then |
| 23314 | { echoscip-shell system . . echo. "$as_me:$LINENO: Netlib PCREQUIRES are $NETLIB_PCREQUIRES" >&5 |
| 23315 | echoscip-shell system . . echo. "$as_me: Netlib PCREQUIRES are $NETLIB_PCREQUIRES" >&6;} |
| 23316 | fi |
| 23317 | |
| 23318 | fi |
| 23319 | fi |
| 23320 | |
| 23321 | # Define the Makefile conditional |
| 23322 | |
| 23323 | |
| 23324 | if testscip-shell system . . test. $coin_has_netlib != notGiven && |
| 23325 | testscip-shell system . . test. $coin_has_netlib != skipping; then |
| 23326 | COIN_HAS_NETLIB_TRUE= |
| 23327 | COIN_HAS_NETLIB_FALSE='#' |
| 23328 | else |
| 23329 | COIN_HAS_NETLIB_TRUE='#' |
| 23330 | COIN_HAS_NETLIB_FALSE= |
| 23331 | fi |
| 23332 | |
| 23333 | |
| 23334 | |
| 23335 | |
| 23336 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for COIN-OR package Miplib3" >&5 |
| 23337 | echoscip-shell system . . echo. $ECHO_N "checking for COIN-OR package Miplib3... $ECHO_C" >&6 |
| 23338 | |
| 23339 | coin_has_miplib3=notGiven |
| 23340 | |
| 23341 | # check if user wants to skip package in any case |
| 23342 | if testscip-shell system . . test. x"$COIN_SKIP_PROJECTS" != x; then |
| 23343 | for dir in $COIN_SKIP_PROJECTS; do |
| 23344 | if testscip-shell system . . test. $dir = "Miplib3"; then |
| 23345 | coin_has_miplib3=skipping |
| 23346 | fi |
| 23347 | done |
| 23348 | fi |
| 23349 | |
| 23350 | if testscip-shell system . . test. "$coin_has_miplib3" != skipping; then |
| 23351 | |
| 23352 | # Check whether --with-m4_tolower(Miplib3) or --without-m4_tolower(Miplib3) was given. |
| 23353 | if testscip-shell system . . test. "${with_miplib3+set}" = set; then |
| 23354 | withval="$with_miplib3" |
| 23355 | if testscip-shell system . . test. "$withval" = no ; then |
| 23356 | coin_has_miplib3=skipping |
| 23357 | fi |
| 23358 | |
| 23359 | fi; |
| 23360 | fi |
| 23361 | |
| 23362 | MIPLIB3_LIBS= |
| 23363 | MIPLIB3_CFLAGS= |
| 23364 | MIPLIB3_DATA= |
| 23365 | MIPLIB3_DEPENDENCIES= |
| 23366 | MIPLIB3_PCLIBS= |
| 23367 | MIPLIB3_PCREQUIRES= |
| 23368 | |
| 23369 | |
| 23370 | |
| 23371 | |
| 23372 | |
| 23373 | |
| 23374 | |
| 23375 | |
| 23376 | |
| 23377 | #check if user provided LIBS, CFLAGS, or DATA for package or disables use of package |
| 23378 | if testscip-shell system . . test. $coin_has_miplib3 != skipping; then |
| 23379 | |
| 23380 | # Check whether --with-m4_tolower(Miplib3)-lib or --without-m4_tolower(Miplib3)-lib was given. |
| 23381 | if testscip-shell system . . test. "${with_miplib3_lib+set}" = set; then |
| 23382 | withval="$with_miplib3_lib" |
| 23383 | if testscip-shell system . . test. "$withval" = no ; then |
| 23384 | coin_has_miplib3=skipping |
| 23385 | else |
| 23386 | coin_has_miplib3=yes |
| 23387 | MIPLIB3_LIBS="$withval" |
| 23388 | MIPLIB3_PCLIBS="$withval" |
| 23389 | |
| 23390 | # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables |
| 23391 | if testscip-shell system . . test. -z "$PKG_CONFIG" ; then |
| 23392 | MIPLIB3_LIBS_INSTALLED="$withval" |
| 23393 | |
| 23394 | fi |
| 23395 | fi |
| 23396 | |
| 23397 | fi; |
| 23398 | fi |
| 23399 | |
| 23400 | if testscip-shell system . . test. $coin_has_miplib3 != skipping; then |
| 23401 | |
| 23402 | # Check whether --with-m4_tolower(Miplib3)-incdir or --without-m4_tolower(Miplib3)-incdir was given. |
| 23403 | if testscip-shell system . . test. "${with_miplib3_incdir+set}" = set; then |
| 23404 | withval="$with_miplib3_incdir" |
| 23405 | if testscip-shell system . . test. "$withval" = no ; then |
| 23406 | coin_has_miplib3=skipping |
| 23407 | else |
| 23408 | coin_has_miplib3=yes |
| 23409 | MIPLIB3_CFLAGS="-I`${CYGPATH_W} $withval`" |
| 23410 | |
| 23411 | # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables |
| 23412 | if testscip-shell system . . test. -z "$PKG_CONFIG" ; then |
| 23413 | MIPLIB3_CFLAGS_INSTALLED="$MIPLIB3_CFLAGS" |
| 23414 | |
| 23415 | fi |
| 23416 | fi |
| 23417 | |
| 23418 | fi; |
| 23419 | fi |
| 23420 | |
| 23421 | if testscip-shell system . . test. $coin_has_miplib3 != skipping; then |
| 23422 | |
| 23423 | # Check whether --with-m4_tolower(Miplib3)-datadir or --without-m4_tolower(Miplib3)-datadir was given. |
| 23424 | if testscip-shell system . . test. "${with_miplib3_datadir+set}" = set; then |
| 23425 | withval="$with_miplib3_datadir" |
| 23426 | if testscip-shell system . . test. "$withval" = no ; then |
| 23427 | coin_has_miplib3=skipping |
| 23428 | else |
| 23429 | coin_has_miplib3=yes |
| 23430 | MIPLIB3_DATA="$withval" |
| 23431 | # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables |
| 23432 | if testscip-shell system . . test. -z "$PKG_CONFIG" ; then |
| 23433 | MIPLIB3_DATA_INSTALLED="$withval" |
| 23434 | fi |
| 23435 | fi |
| 23436 | |
| 23437 | fi; |
| 23438 | fi |
| 23439 | |
| 23440 | if testscip-shell system . . test. $coin_has_miplib3 = notGiven; then |
| 23441 | if testscip-shell system . . test. -n "$PKG_CONFIG" ; then |
| 23442 | # set search path for pkg-config |
| 23443 | # need to export variable to be sure that the following pkg-config gets these values |
| 23444 | coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH" |
| 23445 | PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED" |
| 23446 | export PKG_CONFIG_PATH |
| 23447 | |
| 23448 | # let pkg-config do it's magic |
| 23449 | |
| 23450 | |
| 23451 | |
| 23452 | if testscip-shell system . . test. -n "$PKG_CONFIG" ; then |
| 23453 | if $PKG_CONFIG --exists "coindatamiplib3"; then |
| 23454 | MIPLIB3_VERSIONS=`$PKG_CONFIG --modversion "coindatamiplib3" 2>/dev/nullscip-shell filesystem . . `/dev/null`. | trscip-shell system . . tr. '\n' ' '` |
| 23455 | cflags=`$PKG_CONFIG --cflags "coindatamiplib3" 2>/dev/nullscip-shell filesystem . . `/dev/null`.` |
| 23456 | # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files |
| 23457 | # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's |
| 23458 | # but only do this if is not trivial |
| 23459 | if testscip-shell system . . test. "$CYGPATH_W" != "echo" ; then |
| 23460 | # need to put into brackets since otherwise autoconf replaces the brackets in the sed command |
| 23461 | cflags=`echoscip-shell system . . echo. $cflags | sedscip-shell system . . sed. -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` |
| 23462 | fi |
| 23463 | MIPLIB3_CFLAGS="$cflags" |
| 23464 | MIPLIB3_LIBS=`$PKG_CONFIG --libs "coindatamiplib3" 2>/dev/nullscip-shell filesystem . . `/dev/null`.` |
| 23465 | MIPLIB3_DATA=`$PKG_CONFIG --variable=datadir "coindatamiplib3" 2>/dev/nullscip-shell filesystem . . `/dev/null`.` |
| 23466 | coin_has_miplib3=yes |
| 23467 | echoscip-shell system . . echo. "$as_me:$LINENO: result: yes: $MIPLIB3_VERSIONS" >&5 |
| 23468 | echoscip-shell system . . echo. "${ECHO_T}yes: $MIPLIB3_VERSIONS" >&6 |
| 23469 | |
| 23470 | # adjust linker flags for (i)cl compiler |
| 23471 | # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl) |
| 23472 | if testscip-shell system . . test. x$coin_cxx_is_cl = xtrue || testscip-shell system . . test. x$coin_cc_is_cl = xtrue ; |
| 23473 | then |
| 23474 | MIPLIB3_LIBS=`echoscip-shell system . . echo. " $MIPLIB3_LIBS " | sedscip-shell system . . sed. -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'` |
| 23475 | fi |
| 23476 | MIPLIB3_PCREQUIRES="coindatamiplib3" |
| 23477 | |
| 23478 | # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in |
| 23479 | |
| 23480 | |
| 23481 | |
| 23482 | else |
| 23483 | MIPLIB3_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "coindatamiplib3"` |
| 23484 | coin_has_miplib3=notGiven |
| 23485 | echoscip-shell system . . echo. "$as_me:$LINENO: result: not given: $MIPLIB3_PKG_ERRORS" >&5 |
| 23486 | echoscip-shell system . . echo. "${ECHO_T}not given: $MIPLIB3_PKG_ERRORS" >&6 |
| 23487 | |
| 23488 | fi |
| 23489 | else |
| 23490 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: \"Cannot check for existance of module Miplib3 without pkg-config\"" >&5 |
| 23491 | echoscip-shell system . . echo. "$as_me: error: \"Cannot check for existance of module Miplib3 without pkg-config\"" >&2;} |
| 23492 | { (exit 1); exit 1; }; } |
| 23493 | fi |
| 23494 | |
| 23495 | |
| 23496 | |
| 23497 | |
| 23498 | # reset PKG_CONFIG_PATH variable |
| 23499 | PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH" |
| 23500 | export PKG_CONFIG_PATH |
| 23501 | |
| 23502 | else |
| 23503 | echoscip-shell system . . echo. "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5 |
| 23504 | echoscip-shell system . . echo. "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6 |
| 23505 | |
| 23506 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for COIN-OR package Miplib3 (fallback)" >&5 |
| 23507 | echoscip-shell system . . echo. $ECHO_N "checking for COIN-OR package Miplib3 (fallback)... $ECHO_C" >&6 |
| 23508 | |
| 23509 | coin_has_miplib3=notGiven |
| 23510 | MIPLIB3_LIBS= |
| 23511 | MIPLIB3_LIBS_INSTALLED= |
| 23512 | MIPLIB3_CFLAGS= |
| 23513 | MIPLIB3_CFLAGS_INSTALLED= |
| 23514 | MIPLIB3_DATA= |
| 23515 | MIPLIB3_DATA_INSTALLED= |
| 23516 | MIPLIB3_PCLIBS= |
| 23517 | MIPLIB3_PCREQUIRES= |
| 23518 | |
| 23519 | # initial list of dependencies is "coindatamiplib3", but we need to filter out version number specifications (= x, <= x, >= x, != x) |
| 23520 | projtoprocess="coindatamiplib3" |
| 23521 | |
| 23522 | # we first expand the list of projects to process by adding all dependencies just behind the project which depends on it |
| 23523 | # further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards |
| 23524 | # the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples |
| 23525 | # also, we setup the DATA variable |
| 23526 | allproj="" |
| 23527 | allpcfiles="" |
| 23528 | allpcifiles="" |
| 23529 | while testscip-shell system . . test. "x$projtoprocess" != x ; do |
| 23530 | |
| 23531 | for proj in $projtoprocess ; do |
| 23532 | # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it |
| 23533 | pcfile="" |
| 23534 | save_IFS="$IFS" |
| 23535 | IFS=":" |
| 23536 | for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do |
| 23537 | # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again |
| 23538 | if testscip-shell system . . test. -r "$dir/${proj}-uninstalled.pc" ; then |
| 23539 | pcfile="$dir/$proj-uninstalled.pc" |
| 23540 | if testscip-shell system . . test. -r "$dir/${proj}.pc" ; then |
| 23541 | pcifile="$dir/${proj}.pc" |
| 23542 | else |
| 23543 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5 |
| 23544 | echoscip-shell system . . echo. "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;} |
| 23545 | pcifile= |
| 23546 | fi |
| 23547 | break |
| 23548 | fi |
| 23549 | done |
| 23550 | IFS="$save_IFS" |
| 23551 | |
| 23552 | if testscip-shell system . . test. "x$pcfile" != x ; then |
| 23553 | # read dependencies from $pcfile and filter it |
| 23554 | projrequires=`sedscip-shell system . . sed. -n -e 's/Requires://gp' "$pcfile" | sedscip-shell system . . sed. -e 's/<\{0,1\}>\{0,1\}=[ ]\{0,\}[^ ]\{1,\}//g'` |
| 23555 | |
| 23556 | # add projrequires to the front of the list of projects that have to be processed next |
| 23557 | # at the same time, remove $proj from this list |
| 23558 | projtoprocess=`echoscip-shell system . . echo. $projtoprocess | sedscip-shell system . . sed. -e "s/$proj/$projrequires/"` |
| 23559 | |
| 23560 | # read DATA from $pcfile, if _DATA is still empty |
| 23561 | if testscip-shell system . . test. "x$MIPLIB3_DATA" = x ; then |
| 23562 | projdatadir= |
| 23563 | pcfilemod=`sedscip-shell system . . sed. -e '/[a-zA-Z]:/dscip-shell filesystem . . `/[a-zA-Z]:/d`.' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile` |
| 23564 | eval `shscip-shell system . . sh. -c "$pcfilemod"` |
| 23565 | MIPLIB3_DATA="$projdatadir" |
| 23566 | fi |
| 23567 | |
| 23568 | allproj="$allproj $proj" |
| 23569 | allpcfiles="$pcfile:$allpcfiles" |
| 23570 | |
| 23571 | else |
| 23572 | echoscip-shell system . . echo. "$as_me:$LINENO: result: no, dependency $proj not available" >&5 |
| 23573 | echoscip-shell system . . echo. "${ECHO_T}no, dependency $proj not available" >&6 |
| 23574 | allproj=fail |
| 23575 | break 2 |
| 23576 | fi |
| 23577 | |
| 23578 | if testscip-shell system . . test. "x$pcifile" != x ; then |
| 23579 | allpcifiles="$pcifile:$allpcifiles" |
| 23580 | |
| 23581 | # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty |
| 23582 | if testscip-shell system . . test. "x$MIPLIB3_DATA_INSTALLED" = x ; then |
| 23583 | projdatadir= |
| 23584 | pcifilemod=`sedscip-shell system . . sed. -e '/[a-zA-Z]:/dscip-shell filesystem . . `/[a-zA-Z]:/d`.' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile` |
| 23585 | eval `shscip-shell system . . sh. -c "$pcifilemod"` |
| 23586 | if testscip-shell system . . test. "${CYGPATH_W}" != "echo"; then |
| 23587 | projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`" |
| 23588 | fi |
| 23589 | MIPLIB3_DATA_INSTALLED="$projdatadir" |
| 23590 | fi |
| 23591 | |
| 23592 | fi |
| 23593 | |
| 23594 | break |
| 23595 | done |
| 23596 | |
| 23597 | # remove spaces on begin of $projtoprocess |
| 23598 | projtoprocess=`echoscip-shell system . . echo. $projtoprocess | sedscip-shell system . . sed. -e 's/^ *//'` |
| 23599 | |
| 23600 | done |
| 23601 | |
| 23602 | if testscip-shell system . . test. "$allproj" != fail ; then |
| 23603 | |
| 23604 | # now go through the list of .pc files and assemble compiler and linker flags |
| 23605 | # important is here to obey the reverse order that has been setup before, |
| 23606 | # since then libraries that are required by several others should be after these other libraries |
| 23607 | pcfilesprocessed="" |
| 23608 | |
| 23609 | save_IFS="$IFS" |
| 23610 | IFS=":" |
| 23611 | for pcfile in $allpcfiles ; do |
| 23612 | |
| 23613 | # if $pcfile has been processed already, skip this round |
| 23614 | if testscip-shell system . . test. "x$pcfilesprocessed" != x ; then |
| 23615 | for pcfiledone in $pcfilesprocessed ; do |
| 23616 | if testscip-shell system . . test. "$pcfiledone" = "$pcfile" ; then |
| 23617 | continue 2 |
| 23618 | fi |
| 23619 | done |
| 23620 | fi |
| 23621 | |
| 23622 | # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags: |
| 23623 | # replace "Libs:" by "echo projlibs=" |
| 23624 | # replace "Cflags:" by "echo projcflags=" |
| 23625 | # remove every line starting with <some word>: |
| 23626 | pcfilemod=`sedscip-shell system . . sed. -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/dscip-shell filesystem . . `/^[a-zA-Z]*:/d`.' $pcfile` |
| 23627 | |
| 23628 | # set projcflags and projlibs variables by running $pcfilemod |
| 23629 | # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default |
| 23630 | projcflags= |
| 23631 | projlibs= |
| 23632 | IFS="$save_IFS" |
| 23633 | eval `shscip-shell system . . sh. -c "$pcfilemod"` |
| 23634 | IFS=":" |
| 23635 | |
| 23636 | # add CYGPATH_W cludge into include flags and set CFLAGS variable |
| 23637 | if testscip-shell system . . test. "${CYGPATH_W}" != "echo"; then |
| 23638 | projcflags=`echoscip-shell system . . echo. "$projcflags" | sedscip-shell system . . sed. -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` |
| 23639 | fi |
| 23640 | MIPLIB3_CFLAGS="$projcflags $MIPLIB3_CFLAGS" |
| 23641 | |
| 23642 | # set LIBS variable |
| 23643 | MIPLIB3_LIBS="$projlibs $MIPLIB3_LIBS" |
| 23644 | |
| 23645 | # remember that we have processed $pcfile |
| 23646 | pcfilesprocessed="$pcfilesprocessed:$pcfile" |
| 23647 | |
| 23648 | done |
| 23649 | IFS="$save_IFS" |
| 23650 | |
| 23651 | |
| 23652 | # now go through the list of .pc files for installed projects and assemble compiler and linker flags |
| 23653 | # important is here again to obey the reverse order that has been setup before, |
| 23654 | # since then libraries that are required by several others should be after these other libraries |
| 23655 | pcfilesprocessed="" |
| 23656 | |
| 23657 | save_IFS="$IFS" |
| 23658 | IFS=":" |
| 23659 | for pcfile in $allpcifiles ; do |
| 23660 | |
| 23661 | # if $pcfile has been processed already, skip this round |
| 23662 | if testscip-shell system . . test. "x$pcfilesprocessed" != x ; then |
| 23663 | for pcfiledone in $pcfilesprocessed ; do |
| 23664 | if testscip-shell system . . test. "$pcfiledone" = "$pcfile" ; then |
| 23665 | continue 2 |
| 23666 | fi |
| 23667 | done |
| 23668 | fi |
| 23669 | |
| 23670 | # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags: |
| 23671 | # replace "Libs:" by "echo projlibs=" |
| 23672 | # replace "Cflags:" by "echo projcflags=" |
| 23673 | # remove every line starting with <some word>: |
| 23674 | pcfilemod=`sedscip-shell system . . sed. -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/dscip-shell filesystem . . `/^[a-zA-Z]*:/d`.' $pcfile` |
| 23675 | |
| 23676 | # set projcflags and projlibs variables by running $pcfilemod |
| 23677 | # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default |
| 23678 | projcflags= |
| 23679 | projlibs= |
| 23680 | IFS="$save_IFS" |
| 23681 | eval `shscip-shell system . . sh. -c "$pcfilemod"` |
| 23682 | IFS=":" |
| 23683 | |
| 23684 | # add CYGPATH_W cludge into include flags and set CFLAGS variable |
| 23685 | if testscip-shell system . . test. "${CYGPATH_W}" != "echo"; then |
| 23686 | projcflags=`echoscip-shell system . . echo. "$projcflags" | sedscip-shell system . . sed. -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` |
| 23687 | fi |
| 23688 | MIPLIB3_CFLAGS_INSTALLED="$projcflags $MIPLIB3_CFLAGS_INSTALLED" |
| 23689 | |
| 23690 | # set LIBS variable |
| 23691 | MIPLIB3_LIBS_INSTALLED="$projlibs $MIPLIB3_LIBS_INSTALLED" |
| 23692 | |
| 23693 | # remember that we have processed $pcfile |
| 23694 | pcfilesprocessed="$pcfilesprocessed:$pcfile" |
| 23695 | |
| 23696 | done |
| 23697 | IFS="$save_IFS" |
| 23698 | |
| 23699 | |
| 23700 | # finish up |
| 23701 | coin_has_miplib3=yes |
| 23702 | echoscip-shell system . . echo. "$as_me:$LINENO: result: yes" >&5 |
| 23703 | echoscip-shell system . . echo. "${ECHO_T}yes" >&6 |
| 23704 | |
| 23705 | catscip-shell system . . cat. >>confdefs.h <<\_ACEOF |
| 23706 | #define COIN_HAS_MIPLIB3 1 |
| 23707 | _ACEOF |
| 23708 | |
| 23709 | |
| 23710 | # adjust linker flags for (i)cl compiler |
| 23711 | # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl), |
| 23712 | # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`", |
| 23713 | # everything of the form "-lname" by "libname.lib", and |
| 23714 | # everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path` |
| 23715 | if testscip-shell system . . test. x$coin_cxx_is_cl = xtrue || testscip-shell system . . test. x$coin_cc_is_cl = xtrue ; |
| 23716 | then |
| 23717 | MIPLIB3_LIBS=`echoscip-shell system . . echo. " $MIPLIB3_LIBS " | sedscip-shell system . . sed. -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'` |
| 23718 | MIPLIB3_LIBS_INSTALLED=`echoscip-shell system . . echo. " $MIPLIB3_LIBS_INSTALLED" | sedscip-shell system . . sed. -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'` |
| 23719 | fi |
| 23720 | |
| 23721 | MIPLIB3_PCREQUIRES="coindatamiplib3" |
| 23722 | |
| 23723 | |
| 23724 | fi |
| 23725 | |
| 23726 | |
| 23727 | |
| 23728 | if testscip-shell system . . test. $coin_has_miplib3 != notGiven && |
| 23729 | testscip-shell system . . test. $coin_has_miplib3 != skipping; then |
| 23730 | COIN_HAS_MIPLIB3_TRUE= |
| 23731 | COIN_HAS_MIPLIB3_FALSE='#' |
| 23732 | else |
| 23733 | COIN_HAS_MIPLIB3_TRUE='#' |
| 23734 | COIN_HAS_MIPLIB3_FALSE= |
| 23735 | fi |
| 23736 | |
| 23737 | |
| 23738 | |
| 23739 | fi |
| 23740 | |
| 23741 | else |
| 23742 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $coin_has_miplib3" >&5 |
| 23743 | echoscip-shell system . . echo. "${ECHO_T}$coin_has_miplib3" >&6 |
| 23744 | fi |
| 23745 | |
| 23746 | if testscip-shell system . . test. $coin_has_miplib3 != skipping && |
| 23747 | testscip-shell system . . test. $coin_has_miplib3 != notGiven ; then |
| 23748 | |
| 23749 | catscip-shell system . . cat. >>confdefs.h <<\_ACEOF |
| 23750 | #define COIN_HAS_MIPLIB3 1 |
| 23751 | _ACEOF |
| 23752 | |
| 23753 | |
| 23754 | # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given. |
| 23755 | if testscip-shell system . . test. "${enable_interpackage_dependencies+set}" = set; then |
| 23756 | enableval="$enable_interpackage_dependencies" |
| 23757 | |
| 23758 | else |
| 23759 | enable_interpackage_dependencies=yes |
| 23760 | fi; |
| 23761 | |
| 23762 | if testscip-shell system . . test. $enable_interpackage_dependencies = yes ; then |
| 23763 | # construct dependencies variables from LIBS variables |
| 23764 | # we add an extra space in LIBS so we can substitute out everything starting with " -" |
| 23765 | # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows |
| 23766 | # then remove everything of the form -xxx |
| 23767 | # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl) |
| 23768 | MIPLIB3_DEPENDENCIES=`echoscip-shell system . . echo. " $MIPLIB3_LIBS" | sedscip-shell system . . sed. -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'` |
| 23769 | |
| 23770 | fi |
| 23771 | |
| 23772 | if testscip-shell system . . test. 1 = 0 ; then #change this test to enable a bit of debugging output |
| 23773 | if testscip-shell system . . test. -n "$MIPLIB3_CFLAGS" ; then |
| 23774 | { echoscip-shell system . . echo. "$as_me:$LINENO: Miplib3 CFLAGS are $MIPLIB3_CFLAGS" >&5 |
| 23775 | echoscip-shell system . . echo. "$as_me: Miplib3 CFLAGS are $MIPLIB3_CFLAGS" >&6;} |
| 23776 | fi |
| 23777 | if testscip-shell system . . test. -n "$MIPLIB3_LIBS" ; then |
| 23778 | { echoscip-shell system . . echo. "$as_me:$LINENO: Miplib3 LIBS are $MIPLIB3_LIBS" >&5 |
| 23779 | echoscip-shell system . . echo. "$as_me: Miplib3 LIBS are $MIPLIB3_LIBS" >&6;} |
| 23780 | fi |
| 23781 | if testscip-shell system . . test. -n "$MIPLIB3_DEPENDENCIES" ; then |
| 23782 | { echoscip-shell system . . echo. "$as_me:$LINENO: Miplib3 DEPENDENCIES are $MIPLIB3_DEPENDENCIES" >&5 |
| 23783 | echoscip-shell system . . echo. "$as_me: Miplib3 DEPENDENCIES are $MIPLIB3_DEPENDENCIES" >&6;} |
| 23784 | fi |
| 23785 | if testscip-shell system . . test. -n "$MIPLIB3_DATA" ; then |
| 23786 | { echoscip-shell system . . echo. "$as_me:$LINENO: Miplib3 DATA is $MIPLIB3_DATA" >&5 |
| 23787 | echoscip-shell system . . echo. "$as_me: Miplib3 DATA is $MIPLIB3_DATA" >&6;} |
| 23788 | fi |
| 23789 | if testscip-shell system . . test. -n "$MIPLIB3_PCLIBS" ; then |
| 23790 | { echoscip-shell system . . echo. "$as_me:$LINENO: Miplib3 PCLIBS are $MIPLIB3_PCLIBS" >&5 |
| 23791 | echoscip-shell system . . echo. "$as_me: Miplib3 PCLIBS are $MIPLIB3_PCLIBS" >&6;} |
| 23792 | fi |
| 23793 | if testscip-shell system . . test. -n "$MIPLIB3_PCREQUIRES" ; then |
| 23794 | { echoscip-shell system . . echo. "$as_me:$LINENO: Miplib3 PCREQUIRES are $MIPLIB3_PCREQUIRES" >&5 |
| 23795 | echoscip-shell system . . echo. "$as_me: Miplib3 PCREQUIRES are $MIPLIB3_PCREQUIRES" >&6;} |
| 23796 | fi |
| 23797 | |
| 23798 | fi |
| 23799 | fi |
| 23800 | |
| 23801 | # Define the Makefile conditional |
| 23802 | |
| 23803 | |
| 23804 | if testscip-shell system . . test. $coin_has_miplib3 != notGiven && |
| 23805 | testscip-shell system . . test. $coin_has_miplib3 != skipping; then |
| 23806 | COIN_HAS_MIPLIB3_TRUE= |
| 23807 | COIN_HAS_MIPLIB3_FALSE='#' |
| 23808 | else |
| 23809 | COIN_HAS_MIPLIB3_TRUE='#' |
| 23810 | COIN_HAS_MIPLIB3_FALSE= |
| 23811 | fi |
| 23812 | |
| 23813 | |
| 23814 | |
| 23815 | |
| 23816 | # Cbc really should make these tests; right now it assumes far too much about |
| 23817 | # its environment. Needed for cbc-generic. |
| 23818 | |
| 23819 | |
| 23820 | ac_ext=cc |
| 23821 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 23822 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 23823 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 23824 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 23825 | |
| 23826 | #if test x"" = x; then |
| 23827 | # hdr="#include <cmath>" |
| 23828 | #else |
| 23829 | # hdr="" |
| 23830 | #fi |
| 23831 | #AC_CHECK_HEADERS([cmath],[],[],[$hdr]) |
| 23832 | |
| 23833 | for ac_header in cmath |
| 23834 | do |
| 23835 | as_ac_Header=`echoscip-shell system . . echo. "ac_cv_header_$ac_header" | $as_tr_sh` |
| 23836 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 23837 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for $ac_header" >&5 |
| 23838 | echoscip-shell system . . echo. $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 23839 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 23840 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 23841 | fi |
| 23842 | echoscip-shell system . . echo. "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 23843 | echoscip-shell system . . echo. "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 23844 | else |
| 23845 | # Is the header compilable? |
| 23846 | echoscip-shell system . . echo. "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 23847 | echoscip-shell system . . echo. $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 23848 | catscip-shell system . . cat. >conftest.$ac_ext <<_ACEOF |
| 23849 | /* confdefs.h. */ |
| 23850 | _ACEOF |
| 23851 | catscip-shell system . . cat. confdefs.h >>conftest.$ac_ext |
| 23852 | catscip-shell system . . cat. >>conftest.$ac_ext <<_ACEOF |
| 23853 | /* end confdefs.h. */ |
| 23854 | $ac_includes_default |
| 23855 | #include <$ac_header> |
| 23856 | _ACEOF |
| 23857 | rmscip-shell system . . rm. -f conftest.$ac_objext |
| 23858 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 23859 | (eval $ac_compile) 2>conftest.er1 |
| 23860 | ac_status=$? |
| 23861 | grepscip-shell system . . grep. -v '^ *+' conftest.er1 >conftest.err |
| 23862 | rmscip-shell system . . rm. -f conftest.er1 |
| 23863 | catscip-shell system . . cat. conftest.err >&5 |
| 23864 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23865 | (exit $ac_status); } && |
| 23866 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 23867 | || test ! -s conftest.err' |
| 23868 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23869 | (eval $ac_try) 2>&5 |
| 23870 | ac_status=$? |
| 23871 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23872 | (exit $ac_status); }; } && |
| 23873 | { ac_try='test -s conftest.$ac_objext' |
| 23874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23875 | (eval $ac_try) 2>&5 |
| 23876 | ac_status=$? |
| 23877 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23878 | (exit $ac_status); }; }; then |
| 23879 | ac_header_compiler=yes |
| 23880 | else |
| 23881 | echoscip-shell system . . echo. "$as_me: failed program was:" >&5 |
| 23882 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 23883 | |
| 23884 | ac_header_compiler=no |
| 23885 | fi |
| 23886 | rmscip-shell system . . rm. -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23887 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 23888 | echoscip-shell system . . echo. "${ECHO_T}$ac_header_compiler" >&6 |
| 23889 | |
| 23890 | # Is the header present? |
| 23891 | echoscip-shell system . . echo. "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 23892 | echoscip-shell system . . echo. $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 23893 | catscip-shell system . . cat. >conftest.$ac_ext <<_ACEOF |
| 23894 | /* confdefs.h. */ |
| 23895 | _ACEOF |
| 23896 | catscip-shell system . . cat. confdefs.h >>conftest.$ac_ext |
| 23897 | catscip-shell system . . cat. >>conftest.$ac_ext <<_ACEOF |
| 23898 | /* end confdefs.h. */ |
| 23899 | #include <$ac_header> |
| 23900 | _ACEOF |
| 23901 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 23902 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 23903 | ac_status=$? |
| 23904 | grepscip-shell system . . grep. -v '^ *+' conftest.er1 >conftest.err |
| 23905 | rmscip-shell system . . rm. -f conftest.er1 |
| 23906 | catscip-shell system . . cat. conftest.err >&5 |
| 23907 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23908 | (exit $ac_status); } >/dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 23909 | if testscip-shell system . . test. -s conftest.err; then |
| 23910 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 23911 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 23912 | else |
| 23913 | ac_cpp_err= |
| 23914 | fi |
| 23915 | else |
| 23916 | ac_cpp_err=yes |
| 23917 | fi |
| 23918 | if testscip-shell system . . test. -z "$ac_cpp_err"; then |
| 23919 | ac_header_preproc=yes |
| 23920 | else |
| 23921 | echoscip-shell system . . echo. "$as_me: failed program was:" >&5 |
| 23922 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 23923 | |
| 23924 | ac_header_preproc=no |
| 23925 | fi |
| 23926 | rmscip-shell system . . rm. -f conftest.err conftest.$ac_ext |
| 23927 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 23928 | echoscip-shell system . . echo. "${ECHO_T}$ac_header_preproc" >&6 |
| 23929 | |
| 23930 | # So? What about this header? |
| 23931 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
| 23932 | yes:no: ) |
| 23933 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 23934 | echoscip-shell system . . echo. "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 23935 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 23936 | echoscip-shell system . . echo. "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 23937 | ac_header_preproc=yes |
| 23938 | ;; |
| 23939 | no:yes:* ) |
| 23940 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 23941 | echoscip-shell system . . echo. "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 23942 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 23943 | echoscip-shell system . . echo. "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 23944 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 23945 | echoscip-shell system . . echo. "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 23946 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 23947 | echoscip-shell system . . echo. "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 23948 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 23949 | echoscip-shell system . . echo. "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 23950 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 23951 | echoscip-shell system . . echo. "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 23952 | ( |
| 23953 | catscip-shell system . . cat. <<\_ASBOX |
| 23954 | ## ------------------------------------ ## |
| 23955 | ## Report this to [email protected] ## |
| 23956 | ## ------------------------------------ ## |
| 23957 | _ASBOX |
| 23958 | ) | |
| 23959 | sedscip-shell system . . sed. "s/^/$as_me: WARNING: /" >&2 |
| 23960 | ;; |
| 23961 | esac |
| 23962 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for $ac_header" >&5 |
| 23963 | echoscip-shell system . . echo. $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 23964 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 23965 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 23966 | else |
| 23967 | eval "$as_ac_Header=\$ac_header_preproc" |
| 23968 | fi |
| 23969 | echoscip-shell system . . echo. "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 23970 | echoscip-shell system . . echo. "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 23971 | |
| 23972 | fi |
| 23973 | if testscip-shell system . . test. `eval echo '${'$as_ac_Header'}'` = yes; then |
| 23974 | catscip-shell system . . cat. >>confdefs.h <<_ACEOF |
| 23975 | #define `echoscip-shell system . . echo. "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 23976 | _ACEOF |
| 23977 | |
| 23978 | fi |
| 23979 | |
| 23980 | done |
| 23981 | |
| 23982 | |
| 23983 | if testscip-shell system . . test. "$ac_cv_header_cmath" != "yes"; then |
| 23984 | #if test x"" = x; then |
| 23985 | # hdr="#include <math.h>" |
| 23986 | #else |
| 23987 | # hdr="" |
| 23988 | #fi |
| 23989 | #AC_CHECK_HEADERS([math.h],[],[],[$hdr]) |
| 23990 | |
| 23991 | for ac_header in math.h |
| 23992 | do |
| 23993 | as_ac_Header=`echoscip-shell system . . echo. "ac_cv_header_$ac_header" | $as_tr_sh` |
| 23994 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 23995 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for $ac_header" >&5 |
| 23996 | echoscip-shell system . . echo. $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 23997 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 23998 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 23999 | fi |
| 24000 | echoscip-shell system . . echo. "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 24001 | echoscip-shell system . . echo. "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 24002 | else |
| 24003 | # Is the header compilable? |
| 24004 | echoscip-shell system . . echo. "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 24005 | echoscip-shell system . . echo. $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 24006 | catscip-shell system . . cat. >conftest.$ac_ext <<_ACEOF |
| 24007 | /* confdefs.h. */ |
| 24008 | _ACEOF |
| 24009 | catscip-shell system . . cat. confdefs.h >>conftest.$ac_ext |
| 24010 | catscip-shell system . . cat. >>conftest.$ac_ext <<_ACEOF |
| 24011 | /* end confdefs.h. */ |
| 24012 | $ac_includes_default |
| 24013 | #include <$ac_header> |
| 24014 | _ACEOF |
| 24015 | rmscip-shell system . . rm. -f conftest.$ac_objext |
| 24016 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 24017 | (eval $ac_compile) 2>conftest.er1 |
| 24018 | ac_status=$? |
| 24019 | grepscip-shell system . . grep. -v '^ *+' conftest.er1 >conftest.err |
| 24020 | rmscip-shell system . . rm. -f conftest.er1 |
| 24021 | catscip-shell system . . cat. conftest.err >&5 |
| 24022 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24023 | (exit $ac_status); } && |
| 24024 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 24025 | || test ! -s conftest.err' |
| 24026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24027 | (eval $ac_try) 2>&5 |
| 24028 | ac_status=$? |
| 24029 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24030 | (exit $ac_status); }; } && |
| 24031 | { ac_try='test -s conftest.$ac_objext' |
| 24032 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24033 | (eval $ac_try) 2>&5 |
| 24034 | ac_status=$? |
| 24035 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24036 | (exit $ac_status); }; }; then |
| 24037 | ac_header_compiler=yes |
| 24038 | else |
| 24039 | echoscip-shell system . . echo. "$as_me: failed program was:" >&5 |
| 24040 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 24041 | |
| 24042 | ac_header_compiler=no |
| 24043 | fi |
| 24044 | rmscip-shell system . . rm. -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24045 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 24046 | echoscip-shell system . . echo. "${ECHO_T}$ac_header_compiler" >&6 |
| 24047 | |
| 24048 | # Is the header present? |
| 24049 | echoscip-shell system . . echo. "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 24050 | echoscip-shell system . . echo. $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 24051 | catscip-shell system . . cat. >conftest.$ac_ext <<_ACEOF |
| 24052 | /* confdefs.h. */ |
| 24053 | _ACEOF |
| 24054 | catscip-shell system . . cat. confdefs.h >>conftest.$ac_ext |
| 24055 | catscip-shell system . . cat. >>conftest.$ac_ext <<_ACEOF |
| 24056 | /* end confdefs.h. */ |
| 24057 | #include <$ac_header> |
| 24058 | _ACEOF |
| 24059 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 24060 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 24061 | ac_status=$? |
| 24062 | grepscip-shell system . . grep. -v '^ *+' conftest.er1 >conftest.err |
| 24063 | rmscip-shell system . . rm. -f conftest.er1 |
| 24064 | catscip-shell system . . cat. conftest.err >&5 |
| 24065 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24066 | (exit $ac_status); } >/dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 24067 | if testscip-shell system . . test. -s conftest.err; then |
| 24068 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 24069 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 24070 | else |
| 24071 | ac_cpp_err= |
| 24072 | fi |
| 24073 | else |
| 24074 | ac_cpp_err=yes |
| 24075 | fi |
| 24076 | if testscip-shell system . . test. -z "$ac_cpp_err"; then |
| 24077 | ac_header_preproc=yes |
| 24078 | else |
| 24079 | echoscip-shell system . . echo. "$as_me: failed program was:" >&5 |
| 24080 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 24081 | |
| 24082 | ac_header_preproc=no |
| 24083 | fi |
| 24084 | rmscip-shell system . . rm. -f conftest.err conftest.$ac_ext |
| 24085 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 24086 | echoscip-shell system . . echo. "${ECHO_T}$ac_header_preproc" >&6 |
| 24087 | |
| 24088 | # So? What about this header? |
| 24089 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
| 24090 | yes:no: ) |
| 24091 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 24092 | echoscip-shell system . . echo. "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 24093 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 24094 | echoscip-shell system . . echo. "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 24095 | ac_header_preproc=yes |
| 24096 | ;; |
| 24097 | no:yes:* ) |
| 24098 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 24099 | echoscip-shell system . . echo. "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 24100 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 24101 | echoscip-shell system . . echo. "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 24102 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 24103 | echoscip-shell system . . echo. "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 24104 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 24105 | echoscip-shell system . . echo. "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 24106 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 24107 | echoscip-shell system . . echo. "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 24108 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 24109 | echoscip-shell system . . echo. "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 24110 | ( |
| 24111 | catscip-shell system . . cat. <<\_ASBOX |
| 24112 | ## ------------------------------------ ## |
| 24113 | ## Report this to [email protected] ## |
| 24114 | ## ------------------------------------ ## |
| 24115 | _ASBOX |
| 24116 | ) | |
| 24117 | sedscip-shell system . . sed. "s/^/$as_me: WARNING: /" >&2 |
| 24118 | ;; |
| 24119 | esac |
| 24120 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for $ac_header" >&5 |
| 24121 | echoscip-shell system . . echo. $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 24122 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 24123 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 24124 | else |
| 24125 | eval "$as_ac_Header=\$ac_header_preproc" |
| 24126 | fi |
| 24127 | echoscip-shell system . . echo. "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 24128 | echoscip-shell system . . echo. "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 24129 | |
| 24130 | fi |
| 24131 | if testscip-shell system . . test. `eval echo '${'$as_ac_Header'}'` = yes; then |
| 24132 | catscip-shell system . . cat. >>confdefs.h <<_ACEOF |
| 24133 | #define `echoscip-shell system . . echo. "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 24134 | _ACEOF |
| 24135 | |
| 24136 | fi |
| 24137 | |
| 24138 | done |
| 24139 | |
| 24140 | |
| 24141 | fi |
| 24142 | ac_ext=c |
| 24143 | ac_cpp='$CPP $CPPFLAGS' |
| 24144 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 24145 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 24146 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 24147 | |
| 24148 | |
| 24149 | ac_ext=cc |
| 24150 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 24151 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 24152 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 24153 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 24154 | |
| 24155 | #if test x"" = x; then |
| 24156 | # hdr="#include <cfloat>" |
| 24157 | #else |
| 24158 | # hdr="" |
| 24159 | #fi |
| 24160 | #AC_CHECK_HEADERS([cfloat],[],[],[$hdr]) |
| 24161 | |
| 24162 | for ac_header in cfloat |
| 24163 | do |
| 24164 | as_ac_Header=`echoscip-shell system . . echo. "ac_cv_header_$ac_header" | $as_tr_sh` |
| 24165 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 24166 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for $ac_header" >&5 |
| 24167 | echoscip-shell system . . echo. $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 24168 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 24169 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 24170 | fi |
| 24171 | echoscip-shell system . . echo. "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 24172 | echoscip-shell system . . echo. "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 24173 | else |
| 24174 | # Is the header compilable? |
| 24175 | echoscip-shell system . . echo. "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 24176 | echoscip-shell system . . echo. $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 24177 | catscip-shell system . . cat. >conftest.$ac_ext <<_ACEOF |
| 24178 | /* confdefs.h. */ |
| 24179 | _ACEOF |
| 24180 | catscip-shell system . . cat. confdefs.h >>conftest.$ac_ext |
| 24181 | catscip-shell system . . cat. >>conftest.$ac_ext <<_ACEOF |
| 24182 | /* end confdefs.h. */ |
| 24183 | $ac_includes_default |
| 24184 | #include <$ac_header> |
| 24185 | _ACEOF |
| 24186 | rmscip-shell system . . rm. -f conftest.$ac_objext |
| 24187 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 24188 | (eval $ac_compile) 2>conftest.er1 |
| 24189 | ac_status=$? |
| 24190 | grepscip-shell system . . grep. -v '^ *+' conftest.er1 >conftest.err |
| 24191 | rmscip-shell system . . rm. -f conftest.er1 |
| 24192 | catscip-shell system . . cat. conftest.err >&5 |
| 24193 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24194 | (exit $ac_status); } && |
| 24195 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 24196 | || test ! -s conftest.err' |
| 24197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24198 | (eval $ac_try) 2>&5 |
| 24199 | ac_status=$? |
| 24200 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24201 | (exit $ac_status); }; } && |
| 24202 | { ac_try='test -s conftest.$ac_objext' |
| 24203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24204 | (eval $ac_try) 2>&5 |
| 24205 | ac_status=$? |
| 24206 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24207 | (exit $ac_status); }; }; then |
| 24208 | ac_header_compiler=yes |
| 24209 | else |
| 24210 | echoscip-shell system . . echo. "$as_me: failed program was:" >&5 |
| 24211 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 24212 | |
| 24213 | ac_header_compiler=no |
| 24214 | fi |
| 24215 | rmscip-shell system . . rm. -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24216 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 24217 | echoscip-shell system . . echo. "${ECHO_T}$ac_header_compiler" >&6 |
| 24218 | |
| 24219 | # Is the header present? |
| 24220 | echoscip-shell system . . echo. "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 24221 | echoscip-shell system . . echo. $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 24222 | catscip-shell system . . cat. >conftest.$ac_ext <<_ACEOF |
| 24223 | /* confdefs.h. */ |
| 24224 | _ACEOF |
| 24225 | catscip-shell system . . cat. confdefs.h >>conftest.$ac_ext |
| 24226 | catscip-shell system . . cat. >>conftest.$ac_ext <<_ACEOF |
| 24227 | /* end confdefs.h. */ |
| 24228 | #include <$ac_header> |
| 24229 | _ACEOF |
| 24230 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 24231 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 24232 | ac_status=$? |
| 24233 | grepscip-shell system . . grep. -v '^ *+' conftest.er1 >conftest.err |
| 24234 | rmscip-shell system . . rm. -f conftest.er1 |
| 24235 | catscip-shell system . . cat. conftest.err >&5 |
| 24236 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24237 | (exit $ac_status); } >/dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 24238 | if testscip-shell system . . test. -s conftest.err; then |
| 24239 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 24240 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 24241 | else |
| 24242 | ac_cpp_err= |
| 24243 | fi |
| 24244 | else |
| 24245 | ac_cpp_err=yes |
| 24246 | fi |
| 24247 | if testscip-shell system . . test. -z "$ac_cpp_err"; then |
| 24248 | ac_header_preproc=yes |
| 24249 | else |
| 24250 | echoscip-shell system . . echo. "$as_me: failed program was:" >&5 |
| 24251 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 24252 | |
| 24253 | ac_header_preproc=no |
| 24254 | fi |
| 24255 | rmscip-shell system . . rm. -f conftest.err conftest.$ac_ext |
| 24256 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 24257 | echoscip-shell system . . echo. "${ECHO_T}$ac_header_preproc" >&6 |
| 24258 | |
| 24259 | # So? What about this header? |
| 24260 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
| 24261 | yes:no: ) |
| 24262 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 24263 | echoscip-shell system . . echo. "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 24264 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 24265 | echoscip-shell system . . echo. "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 24266 | ac_header_preproc=yes |
| 24267 | ;; |
| 24268 | no:yes:* ) |
| 24269 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 24270 | echoscip-shell system . . echo. "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 24271 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 24272 | echoscip-shell system . . echo. "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 24273 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 24274 | echoscip-shell system . . echo. "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 24275 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 24276 | echoscip-shell system . . echo. "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 24277 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 24278 | echoscip-shell system . . echo. "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 24279 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 24280 | echoscip-shell system . . echo. "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 24281 | ( |
| 24282 | catscip-shell system . . cat. <<\_ASBOX |
| 24283 | ## ------------------------------------ ## |
| 24284 | ## Report this to [email protected] ## |
| 24285 | ## ------------------------------------ ## |
| 24286 | _ASBOX |
| 24287 | ) | |
| 24288 | sedscip-shell system . . sed. "s/^/$as_me: WARNING: /" >&2 |
| 24289 | ;; |
| 24290 | esac |
| 24291 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for $ac_header" >&5 |
| 24292 | echoscip-shell system . . echo. $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 24293 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 24294 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 24295 | else |
| 24296 | eval "$as_ac_Header=\$ac_header_preproc" |
| 24297 | fi |
| 24298 | echoscip-shell system . . echo. "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 24299 | echoscip-shell system . . echo. "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 24300 | |
| 24301 | fi |
| 24302 | if testscip-shell system . . test. `eval echo '${'$as_ac_Header'}'` = yes; then |
| 24303 | catscip-shell system . . cat. >>confdefs.h <<_ACEOF |
| 24304 | #define `echoscip-shell system . . echo. "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 24305 | _ACEOF |
| 24306 | |
| 24307 | fi |
| 24308 | |
| 24309 | done |
| 24310 | |
| 24311 | |
| 24312 | if testscip-shell system . . test. "$ac_cv_header_cfloat" != "yes"; then |
| 24313 | #if test x"" = x; then |
| 24314 | # hdr="#include <float.h>" |
| 24315 | #else |
| 24316 | # hdr="" |
| 24317 | #fi |
| 24318 | #AC_CHECK_HEADERS([float.h],[],[],[$hdr]) |
| 24319 | |
| 24320 | for ac_header in float.h |
| 24321 | do |
| 24322 | as_ac_Header=`echoscip-shell system . . echo. "ac_cv_header_$ac_header" | $as_tr_sh` |
| 24323 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 24324 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for $ac_header" >&5 |
| 24325 | echoscip-shell system . . echo. $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 24326 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 24327 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 24328 | fi |
| 24329 | echoscip-shell system . . echo. "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 24330 | echoscip-shell system . . echo. "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 24331 | else |
| 24332 | # Is the header compilable? |
| 24333 | echoscip-shell system . . echo. "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 24334 | echoscip-shell system . . echo. $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 24335 | catscip-shell system . . cat. >conftest.$ac_ext <<_ACEOF |
| 24336 | /* confdefs.h. */ |
| 24337 | _ACEOF |
| 24338 | catscip-shell system . . cat. confdefs.h >>conftest.$ac_ext |
| 24339 | catscip-shell system . . cat. >>conftest.$ac_ext <<_ACEOF |
| 24340 | /* end confdefs.h. */ |
| 24341 | $ac_includes_default |
| 24342 | #include <$ac_header> |
| 24343 | _ACEOF |
| 24344 | rmscip-shell system . . rm. -f conftest.$ac_objext |
| 24345 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 24346 | (eval $ac_compile) 2>conftest.er1 |
| 24347 | ac_status=$? |
| 24348 | grepscip-shell system . . grep. -v '^ *+' conftest.er1 >conftest.err |
| 24349 | rmscip-shell system . . rm. -f conftest.er1 |
| 24350 | catscip-shell system . . cat. conftest.err >&5 |
| 24351 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24352 | (exit $ac_status); } && |
| 24353 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 24354 | || test ! -s conftest.err' |
| 24355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24356 | (eval $ac_try) 2>&5 |
| 24357 | ac_status=$? |
| 24358 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24359 | (exit $ac_status); }; } && |
| 24360 | { ac_try='test -s conftest.$ac_objext' |
| 24361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24362 | (eval $ac_try) 2>&5 |
| 24363 | ac_status=$? |
| 24364 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24365 | (exit $ac_status); }; }; then |
| 24366 | ac_header_compiler=yes |
| 24367 | else |
| 24368 | echoscip-shell system . . echo. "$as_me: failed program was:" >&5 |
| 24369 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 24370 | |
| 24371 | ac_header_compiler=no |
| 24372 | fi |
| 24373 | rmscip-shell system . . rm. -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24374 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 24375 | echoscip-shell system . . echo. "${ECHO_T}$ac_header_compiler" >&6 |
| 24376 | |
| 24377 | # Is the header present? |
| 24378 | echoscip-shell system . . echo. "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 24379 | echoscip-shell system . . echo. $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 24380 | catscip-shell system . . cat. >conftest.$ac_ext <<_ACEOF |
| 24381 | /* confdefs.h. */ |
| 24382 | _ACEOF |
| 24383 | catscip-shell system . . cat. confdefs.h >>conftest.$ac_ext |
| 24384 | catscip-shell system . . cat. >>conftest.$ac_ext <<_ACEOF |
| 24385 | /* end confdefs.h. */ |
| 24386 | #include <$ac_header> |
| 24387 | _ACEOF |
| 24388 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 24389 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 24390 | ac_status=$? |
| 24391 | grepscip-shell system . . grep. -v '^ *+' conftest.er1 >conftest.err |
| 24392 | rmscip-shell system . . rm. -f conftest.er1 |
| 24393 | catscip-shell system . . cat. conftest.err >&5 |
| 24394 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24395 | (exit $ac_status); } >/dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 24396 | if testscip-shell system . . test. -s conftest.err; then |
| 24397 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 24398 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 24399 | else |
| 24400 | ac_cpp_err= |
| 24401 | fi |
| 24402 | else |
| 24403 | ac_cpp_err=yes |
| 24404 | fi |
| 24405 | if testscip-shell system . . test. -z "$ac_cpp_err"; then |
| 24406 | ac_header_preproc=yes |
| 24407 | else |
| 24408 | echoscip-shell system . . echo. "$as_me: failed program was:" >&5 |
| 24409 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 24410 | |
| 24411 | ac_header_preproc=no |
| 24412 | fi |
| 24413 | rmscip-shell system . . rm. -f conftest.err conftest.$ac_ext |
| 24414 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 24415 | echoscip-shell system . . echo. "${ECHO_T}$ac_header_preproc" >&6 |
| 24416 | |
| 24417 | # So? What about this header? |
| 24418 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
| 24419 | yes:no: ) |
| 24420 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 24421 | echoscip-shell system . . echo. "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 24422 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 24423 | echoscip-shell system . . echo. "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 24424 | ac_header_preproc=yes |
| 24425 | ;; |
| 24426 | no:yes:* ) |
| 24427 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 24428 | echoscip-shell system . . echo. "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 24429 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 24430 | echoscip-shell system . . echo. "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 24431 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 24432 | echoscip-shell system . . echo. "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 24433 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 24434 | echoscip-shell system . . echo. "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 24435 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 24436 | echoscip-shell system . . echo. "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 24437 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 24438 | echoscip-shell system . . echo. "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 24439 | ( |
| 24440 | catscip-shell system . . cat. <<\_ASBOX |
| 24441 | ## ------------------------------------ ## |
| 24442 | ## Report this to [email protected] ## |
| 24443 | ## ------------------------------------ ## |
| 24444 | _ASBOX |
| 24445 | ) | |
| 24446 | sedscip-shell system . . sed. "s/^/$as_me: WARNING: /" >&2 |
| 24447 | ;; |
| 24448 | esac |
| 24449 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for $ac_header" >&5 |
| 24450 | echoscip-shell system . . echo. $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 24451 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 24452 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 24453 | else |
| 24454 | eval "$as_ac_Header=\$ac_header_preproc" |
| 24455 | fi |
| 24456 | echoscip-shell system . . echo. "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 24457 | echoscip-shell system . . echo. "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 24458 | |
| 24459 | fi |
| 24460 | if testscip-shell system . . test. `eval echo '${'$as_ac_Header'}'` = yes; then |
| 24461 | catscip-shell system . . cat. >>confdefs.h <<_ACEOF |
| 24462 | #define `echoscip-shell system . . echo. "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 24463 | _ACEOF |
| 24464 | |
| 24465 | fi |
| 24466 | |
| 24467 | done |
| 24468 | |
| 24469 | |
| 24470 | fi |
| 24471 | ac_ext=c |
| 24472 | ac_cpp='$CPP $CPPFLAGS' |
| 24473 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 24474 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 24475 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 24476 | |
| 24477 | |
| 24478 | ac_ext=cc |
| 24479 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 24480 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 24481 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 24482 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 24483 | |
| 24484 | #if test x"" = x; then |
| 24485 | # hdr="#include <cieeefp>" |
| 24486 | #else |
| 24487 | # hdr="" |
| 24488 | #fi |
| 24489 | #AC_CHECK_HEADERS([cieeefp],[],[],[$hdr]) |
| 24490 | |
| 24491 | for ac_header in cieeefp |
| 24492 | do |
| 24493 | as_ac_Header=`echoscip-shell system . . echo. "ac_cv_header_$ac_header" | $as_tr_sh` |
| 24494 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 24495 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for $ac_header" >&5 |
| 24496 | echoscip-shell system . . echo. $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 24497 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 24498 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 24499 | fi |
| 24500 | echoscip-shell system . . echo. "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 24501 | echoscip-shell system . . echo. "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 24502 | else |
| 24503 | # Is the header compilable? |
| 24504 | echoscip-shell system . . echo. "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 24505 | echoscip-shell system . . echo. $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 24506 | catscip-shell system . . cat. >conftest.$ac_ext <<_ACEOF |
| 24507 | /* confdefs.h. */ |
| 24508 | _ACEOF |
| 24509 | catscip-shell system . . cat. confdefs.h >>conftest.$ac_ext |
| 24510 | catscip-shell system . . cat. >>conftest.$ac_ext <<_ACEOF |
| 24511 | /* end confdefs.h. */ |
| 24512 | $ac_includes_default |
| 24513 | #include <$ac_header> |
| 24514 | _ACEOF |
| 24515 | rmscip-shell system . . rm. -f conftest.$ac_objext |
| 24516 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 24517 | (eval $ac_compile) 2>conftest.er1 |
| 24518 | ac_status=$? |
| 24519 | grepscip-shell system . . grep. -v '^ *+' conftest.er1 >conftest.err |
| 24520 | rmscip-shell system . . rm. -f conftest.er1 |
| 24521 | catscip-shell system . . cat. conftest.err >&5 |
| 24522 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24523 | (exit $ac_status); } && |
| 24524 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 24525 | || test ! -s conftest.err' |
| 24526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24527 | (eval $ac_try) 2>&5 |
| 24528 | ac_status=$? |
| 24529 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24530 | (exit $ac_status); }; } && |
| 24531 | { ac_try='test -s conftest.$ac_objext' |
| 24532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24533 | (eval $ac_try) 2>&5 |
| 24534 | ac_status=$? |
| 24535 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24536 | (exit $ac_status); }; }; then |
| 24537 | ac_header_compiler=yes |
| 24538 | else |
| 24539 | echoscip-shell system . . echo. "$as_me: failed program was:" >&5 |
| 24540 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 24541 | |
| 24542 | ac_header_compiler=no |
| 24543 | fi |
| 24544 | rmscip-shell system . . rm. -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24545 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 24546 | echoscip-shell system . . echo. "${ECHO_T}$ac_header_compiler" >&6 |
| 24547 | |
| 24548 | # Is the header present? |
| 24549 | echoscip-shell system . . echo. "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 24550 | echoscip-shell system . . echo. $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 24551 | catscip-shell system . . cat. >conftest.$ac_ext <<_ACEOF |
| 24552 | /* confdefs.h. */ |
| 24553 | _ACEOF |
| 24554 | catscip-shell system . . cat. confdefs.h >>conftest.$ac_ext |
| 24555 | catscip-shell system . . cat. >>conftest.$ac_ext <<_ACEOF |
| 24556 | /* end confdefs.h. */ |
| 24557 | #include <$ac_header> |
| 24558 | _ACEOF |
| 24559 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 24560 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 24561 | ac_status=$? |
| 24562 | grepscip-shell system . . grep. -v '^ *+' conftest.er1 >conftest.err |
| 24563 | rmscip-shell system . . rm. -f conftest.er1 |
| 24564 | catscip-shell system . . cat. conftest.err >&5 |
| 24565 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24566 | (exit $ac_status); } >/dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 24567 | if testscip-shell system . . test. -s conftest.err; then |
| 24568 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 24569 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 24570 | else |
| 24571 | ac_cpp_err= |
| 24572 | fi |
| 24573 | else |
| 24574 | ac_cpp_err=yes |
| 24575 | fi |
| 24576 | if testscip-shell system . . test. -z "$ac_cpp_err"; then |
| 24577 | ac_header_preproc=yes |
| 24578 | else |
| 24579 | echoscip-shell system . . echo. "$as_me: failed program was:" >&5 |
| 24580 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 24581 | |
| 24582 | ac_header_preproc=no |
| 24583 | fi |
| 24584 | rmscip-shell system . . rm. -f conftest.err conftest.$ac_ext |
| 24585 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 24586 | echoscip-shell system . . echo. "${ECHO_T}$ac_header_preproc" >&6 |
| 24587 | |
| 24588 | # So? What about this header? |
| 24589 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
| 24590 | yes:no: ) |
| 24591 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 24592 | echoscip-shell system . . echo. "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 24593 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 24594 | echoscip-shell system . . echo. "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 24595 | ac_header_preproc=yes |
| 24596 | ;; |
| 24597 | no:yes:* ) |
| 24598 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 24599 | echoscip-shell system . . echo. "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 24600 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 24601 | echoscip-shell system . . echo. "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 24602 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 24603 | echoscip-shell system . . echo. "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 24604 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 24605 | echoscip-shell system . . echo. "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 24606 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 24607 | echoscip-shell system . . echo. "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 24608 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 24609 | echoscip-shell system . . echo. "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 24610 | ( |
| 24611 | catscip-shell system . . cat. <<\_ASBOX |
| 24612 | ## ------------------------------------ ## |
| 24613 | ## Report this to [email protected] ## |
| 24614 | ## ------------------------------------ ## |
| 24615 | _ASBOX |
| 24616 | ) | |
| 24617 | sedscip-shell system . . sed. "s/^/$as_me: WARNING: /" >&2 |
| 24618 | ;; |
| 24619 | esac |
| 24620 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for $ac_header" >&5 |
| 24621 | echoscip-shell system . . echo. $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 24622 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 24623 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 24624 | else |
| 24625 | eval "$as_ac_Header=\$ac_header_preproc" |
| 24626 | fi |
| 24627 | echoscip-shell system . . echo. "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 24628 | echoscip-shell system . . echo. "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 24629 | |
| 24630 | fi |
| 24631 | if testscip-shell system . . test. `eval echo '${'$as_ac_Header'}'` = yes; then |
| 24632 | catscip-shell system . . cat. >>confdefs.h <<_ACEOF |
| 24633 | #define `echoscip-shell system . . echo. "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 24634 | _ACEOF |
| 24635 | |
| 24636 | fi |
| 24637 | |
| 24638 | done |
| 24639 | |
| 24640 | |
| 24641 | if testscip-shell system . . test. "$ac_cv_header_cieeefp" != "yes"; then |
| 24642 | #if test x"" = x; then |
| 24643 | # hdr="#include <ieeefp.h>" |
| 24644 | #else |
| 24645 | # hdr="" |
| 24646 | #fi |
| 24647 | #AC_CHECK_HEADERS([ieeefp.h],[],[],[$hdr]) |
| 24648 | |
| 24649 | for ac_header in ieeefp.h |
| 24650 | do |
| 24651 | as_ac_Header=`echoscip-shell system . . echo. "ac_cv_header_$ac_header" | $as_tr_sh` |
| 24652 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 24653 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for $ac_header" >&5 |
| 24654 | echoscip-shell system . . echo. $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 24655 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 24656 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 24657 | fi |
| 24658 | echoscip-shell system . . echo. "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 24659 | echoscip-shell system . . echo. "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 24660 | else |
| 24661 | # Is the header compilable? |
| 24662 | echoscip-shell system . . echo. "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 24663 | echoscip-shell system . . echo. $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 24664 | catscip-shell system . . cat. >conftest.$ac_ext <<_ACEOF |
| 24665 | /* confdefs.h. */ |
| 24666 | _ACEOF |
| 24667 | catscip-shell system . . cat. confdefs.h >>conftest.$ac_ext |
| 24668 | catscip-shell system . . cat. >>conftest.$ac_ext <<_ACEOF |
| 24669 | /* end confdefs.h. */ |
| 24670 | $ac_includes_default |
| 24671 | #include <$ac_header> |
| 24672 | _ACEOF |
| 24673 | rmscip-shell system . . rm. -f conftest.$ac_objext |
| 24674 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 24675 | (eval $ac_compile) 2>conftest.er1 |
| 24676 | ac_status=$? |
| 24677 | grepscip-shell system . . grep. -v '^ *+' conftest.er1 >conftest.err |
| 24678 | rmscip-shell system . . rm. -f conftest.er1 |
| 24679 | catscip-shell system . . cat. conftest.err >&5 |
| 24680 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24681 | (exit $ac_status); } && |
| 24682 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 24683 | || test ! -s conftest.err' |
| 24684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24685 | (eval $ac_try) 2>&5 |
| 24686 | ac_status=$? |
| 24687 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24688 | (exit $ac_status); }; } && |
| 24689 | { ac_try='test -s conftest.$ac_objext' |
| 24690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24691 | (eval $ac_try) 2>&5 |
| 24692 | ac_status=$? |
| 24693 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24694 | (exit $ac_status); }; }; then |
| 24695 | ac_header_compiler=yes |
| 24696 | else |
| 24697 | echoscip-shell system . . echo. "$as_me: failed program was:" >&5 |
| 24698 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 24699 | |
| 24700 | ac_header_compiler=no |
| 24701 | fi |
| 24702 | rmscip-shell system . . rm. -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24703 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 24704 | echoscip-shell system . . echo. "${ECHO_T}$ac_header_compiler" >&6 |
| 24705 | |
| 24706 | # Is the header present? |
| 24707 | echoscip-shell system . . echo. "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 24708 | echoscip-shell system . . echo. $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 24709 | catscip-shell system . . cat. >conftest.$ac_ext <<_ACEOF |
| 24710 | /* confdefs.h. */ |
| 24711 | _ACEOF |
| 24712 | catscip-shell system . . cat. confdefs.h >>conftest.$ac_ext |
| 24713 | catscip-shell system . . cat. >>conftest.$ac_ext <<_ACEOF |
| 24714 | /* end confdefs.h. */ |
| 24715 | #include <$ac_header> |
| 24716 | _ACEOF |
| 24717 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 24718 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 24719 | ac_status=$? |
| 24720 | grepscip-shell system . . grep. -v '^ *+' conftest.er1 >conftest.err |
| 24721 | rmscip-shell system . . rm. -f conftest.er1 |
| 24722 | catscip-shell system . . cat. conftest.err >&5 |
| 24723 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24724 | (exit $ac_status); } >/dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 24725 | if testscip-shell system . . test. -s conftest.err; then |
| 24726 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 24727 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 24728 | else |
| 24729 | ac_cpp_err= |
| 24730 | fi |
| 24731 | else |
| 24732 | ac_cpp_err=yes |
| 24733 | fi |
| 24734 | if testscip-shell system . . test. -z "$ac_cpp_err"; then |
| 24735 | ac_header_preproc=yes |
| 24736 | else |
| 24737 | echoscip-shell system . . echo. "$as_me: failed program was:" >&5 |
| 24738 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 24739 | |
| 24740 | ac_header_preproc=no |
| 24741 | fi |
| 24742 | rmscip-shell system . . rm. -f conftest.err conftest.$ac_ext |
| 24743 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 24744 | echoscip-shell system . . echo. "${ECHO_T}$ac_header_preproc" >&6 |
| 24745 | |
| 24746 | # So? What about this header? |
| 24747 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
| 24748 | yes:no: ) |
| 24749 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 24750 | echoscip-shell system . . echo. "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 24751 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 24752 | echoscip-shell system . . echo. "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 24753 | ac_header_preproc=yes |
| 24754 | ;; |
| 24755 | no:yes:* ) |
| 24756 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 24757 | echoscip-shell system . . echo. "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 24758 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 24759 | echoscip-shell system . . echo. "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 24760 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 24761 | echoscip-shell system . . echo. "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 24762 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 24763 | echoscip-shell system . . echo. "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 24764 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 24765 | echoscip-shell system . . echo. "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 24766 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 24767 | echoscip-shell system . . echo. "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 24768 | ( |
| 24769 | catscip-shell system . . cat. <<\_ASBOX |
| 24770 | ## ------------------------------------ ## |
| 24771 | ## Report this to [email protected] ## |
| 24772 | ## ------------------------------------ ## |
| 24773 | _ASBOX |
| 24774 | ) | |
| 24775 | sedscip-shell system . . sed. "s/^/$as_me: WARNING: /" >&2 |
| 24776 | ;; |
| 24777 | esac |
| 24778 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for $ac_header" >&5 |
| 24779 | echoscip-shell system . . echo. $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 24780 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 24781 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 24782 | else |
| 24783 | eval "$as_ac_Header=\$ac_header_preproc" |
| 24784 | fi |
| 24785 | echoscip-shell system . . echo. "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 24786 | echoscip-shell system . . echo. "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 24787 | |
| 24788 | fi |
| 24789 | if testscip-shell system . . test. `eval echo '${'$as_ac_Header'}'` = yes; then |
| 24790 | catscip-shell system . . cat. >>confdefs.h <<_ACEOF |
| 24791 | #define `echoscip-shell system . . echo. "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 24792 | _ACEOF |
| 24793 | |
| 24794 | fi |
| 24795 | |
| 24796 | done |
| 24797 | |
| 24798 | |
| 24799 | fi |
| 24800 | ac_ext=c |
| 24801 | ac_cpp='$CPP $CPPFLAGS' |
| 24802 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 24803 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 24804 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 24805 | |
| 24806 | |
| 24807 | |
| 24808 | # Check whether --enable-gnu-packages or --disable-gnu-packages was given. |
| 24809 | if testscip-shell system . . test. "${enable_gnu_packages+set}" = set; then |
| 24810 | enableval="$enable_gnu_packages" |
| 24811 | coin_enable_gnu=$enableval |
| 24812 | else |
| 24813 | coin_enable_gnu=no |
| 24814 | fi; |
| 24815 | |
| 24816 | |
| 24817 | |
| 24818 | |
| 24819 | |
| 24820 | |
| 24821 | |
| 24822 | coin_has_readline=no |
| 24823 | if testscip-shell system . . test. $coin_enable_gnu = yes; then |
| 24824 | #if test x"#include <stdio.h>" = x; then |
| 24825 | # hdr="#include <readline/readline.h>" |
| 24826 | #else |
| 24827 | # hdr="#include <stdio.h>" |
| 24828 | #fi |
| 24829 | #AC_CHECK_HEADERS([readline/readline.h],[coin_has_readline=yes],[],[$hdr]) |
| 24830 | |
| 24831 | for ac_header in readline/readline.h |
| 24832 | do |
| 24833 | as_ac_Header=`echoscip-shell system . . echo. "ac_cv_header_$ac_header" | $as_tr_sh` |
| 24834 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for $ac_header" >&5 |
| 24835 | echoscip-shell system . . echo. $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 24836 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 24837 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 24838 | else |
| 24839 | catscip-shell system . . cat. >conftest.$ac_ext <<_ACEOF |
| 24840 | /* confdefs.h. */ |
| 24841 | _ACEOF |
| 24842 | catscip-shell system . . cat. confdefs.h >>conftest.$ac_ext |
| 24843 | catscip-shell system . . cat. >>conftest.$ac_ext <<_ACEOF |
| 24844 | /* end confdefs.h. */ |
| 24845 | #include <stdio.h> |
| 24846 | |
| 24847 | #include <$ac_header> |
| 24848 | _ACEOF |
| 24849 | rmscip-shell system . . rm. -f conftest.$ac_objext |
| 24850 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 24851 | (eval $ac_compile) 2>conftest.er1 |
| 24852 | ac_status=$? |
| 24853 | grepscip-shell system . . grep. -v '^ *+' conftest.er1 >conftest.err |
| 24854 | rmscip-shell system . . rm. -f conftest.er1 |
| 24855 | catscip-shell system . . cat. conftest.err >&5 |
| 24856 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24857 | (exit $ac_status); } && |
| 24858 | { ac_try='test -z "$ac_c_werror_flag" |
| 24859 | || test ! -s conftest.err' |
| 24860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24861 | (eval $ac_try) 2>&5 |
| 24862 | ac_status=$? |
| 24863 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24864 | (exit $ac_status); }; } && |
| 24865 | { ac_try='test -s conftest.$ac_objext' |
| 24866 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24867 | (eval $ac_try) 2>&5 |
| 24868 | ac_status=$? |
| 24869 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24870 | (exit $ac_status); }; }; then |
| 24871 | eval "$as_ac_Header=yes" |
| 24872 | else |
| 24873 | echoscip-shell system . . echo. "$as_me: failed program was:" >&5 |
| 24874 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 24875 | |
| 24876 | eval "$as_ac_Header=no" |
| 24877 | fi |
| 24878 | rmscip-shell system . . rm. -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24879 | fi |
| 24880 | echoscip-shell system . . echo. "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 24881 | echoscip-shell system . . echo. "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 24882 | if testscip-shell system . . test. `eval echo '${'$as_ac_Header'}'` = yes; then |
| 24883 | catscip-shell system . . cat. >>confdefs.h <<_ACEOF |
| 24884 | #define `echoscip-shell system . . echo. "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 24885 | _ACEOF |
| 24886 | coin_has_readline=yes |
| 24887 | fi |
| 24888 | |
| 24889 | done |
| 24890 | |
| 24891 | |
| 24892 | |
| 24893 | coin_save_LIBS="$LIBS" |
| 24894 | LIBS= |
| 24895 | # First we check if tputs and friends are available |
| 24896 | if testscip-shell system . . test. $coin_has_readline = yes; then |
| 24897 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for library containing tputs" >&5 |
| 24898 | echoscip-shell system . . echo. $ECHO_N "checking for library containing tputs... $ECHO_C" >&6 |
| 24899 | if testscip-shell system . . test. "${ac_cv_search_tputs+set}" = set; then |
| 24900 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 24901 | else |
| 24902 | ac_func_search_save_LIBS=$LIBS |
| 24903 | ac_cv_search_tputs=no |
| 24904 | catscip-shell system . . cat. >conftest.$ac_ext <<_ACEOF |
| 24905 | /* confdefs.h. */ |
| 24906 | _ACEOF |
| 24907 | catscip-shell system . . cat. confdefs.h >>conftest.$ac_ext |
| 24908 | catscip-shell system . . cat. >>conftest.$ac_ext <<_ACEOF |
| 24909 | /* end confdefs.h. */ |
| 24910 | |
| 24911 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 24912 | #ifdef __cplusplus |
| 24913 | extern "C" |
| 24914 | #endif |
| 24915 | /* We use char because int might match the return type of a gcc2 |
| 24916 | builtin and then its argument prototype would still apply. */ |
| 24917 | char tputs (); |
| 24918 | int |
| 24919 | main () |
| 24920 | { |
| 24921 | tputs (); |
| 24922 | ; |
| 24923 | return 0; |
| 24924 | } |
| 24925 | _ACEOF |
| 24926 | rmscip-shell system . . rm. -f conftest.$ac_objext conftest$ac_exeext |
| 24927 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 24928 | (eval $ac_link) 2>conftest.er1 |
| 24929 | ac_status=$? |
| 24930 | grepscip-shell system . . grep. -v '^ *+' conftest.er1 >conftest.err |
| 24931 | rmscip-shell system . . rm. -f conftest.er1 |
| 24932 | catscip-shell system . . cat. conftest.err >&5 |
| 24933 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24934 | (exit $ac_status); } && |
| 24935 | { ac_try='test -z "$ac_c_werror_flag" |
| 24936 | || test ! -s conftest.err' |
| 24937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24938 | (eval $ac_try) 2>&5 |
| 24939 | ac_status=$? |
| 24940 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24941 | (exit $ac_status); }; } && |
| 24942 | { ac_try='test -s conftest$ac_exeext' |
| 24943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24944 | (eval $ac_try) 2>&5 |
| 24945 | ac_status=$? |
| 24946 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24947 | (exit $ac_status); }; }; then |
| 24948 | ac_cv_search_tputs="none required" |
| 24949 | else |
| 24950 | echoscip-shell system . . echo. "$as_me: failed program was:" >&5 |
| 24951 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 24952 | |
| 24953 | fi |
| 24954 | rmscip-shell system . . rm. -f conftest.err conftest.$ac_objext \ |
| 24955 | conftest$ac_exeext conftest.$ac_ext |
| 24956 | if testscip-shell system . . test. "$ac_cv_search_tputs" = no; then |
| 24957 | for ac_lib in ncurses termcap curses; do |
| 24958 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 24959 | catscip-shell system . . cat. >conftest.$ac_ext <<_ACEOF |
| 24960 | /* confdefs.h. */ |
| 24961 | _ACEOF |
| 24962 | catscip-shell system . . cat. confdefs.h >>conftest.$ac_ext |
| 24963 | catscip-shell system . . cat. >>conftest.$ac_ext <<_ACEOF |
| 24964 | /* end confdefs.h. */ |
| 24965 | |
| 24966 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 24967 | #ifdef __cplusplus |
| 24968 | extern "C" |
| 24969 | #endif |
| 24970 | /* We use char because int might match the return type of a gcc2 |
| 24971 | builtin and then its argument prototype would still apply. */ |
| 24972 | char tputs (); |
| 24973 | int |
| 24974 | main () |
| 24975 | { |
| 24976 | tputs (); |
| 24977 | ; |
| 24978 | return 0; |
| 24979 | } |
| 24980 | _ACEOF |
| 24981 | rmscip-shell system . . rm. -f conftest.$ac_objext conftest$ac_exeext |
| 24982 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 24983 | (eval $ac_link) 2>conftest.er1 |
| 24984 | ac_status=$? |
| 24985 | grepscip-shell system . . grep. -v '^ *+' conftest.er1 >conftest.err |
| 24986 | rmscip-shell system . . rm. -f conftest.er1 |
| 24987 | catscip-shell system . . cat. conftest.err >&5 |
| 24988 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24989 | (exit $ac_status); } && |
| 24990 | { ac_try='test -z "$ac_c_werror_flag" |
| 24991 | || test ! -s conftest.err' |
| 24992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24993 | (eval $ac_try) 2>&5 |
| 24994 | ac_status=$? |
| 24995 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24996 | (exit $ac_status); }; } && |
| 24997 | { ac_try='test -s conftest$ac_exeext' |
| 24998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24999 | (eval $ac_try) 2>&5 |
| 25000 | ac_status=$? |
| 25001 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25002 | (exit $ac_status); }; }; then |
| 25003 | ac_cv_search_tputs="-l$ac_lib" |
| 25004 | break |
| 25005 | else |
| 25006 | echoscip-shell system . . echo. "$as_me: failed program was:" >&5 |
| 25007 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 25008 | |
| 25009 | fi |
| 25010 | rmscip-shell system . . rm. -f conftest.err conftest.$ac_objext \ |
| 25011 | conftest$ac_exeext conftest.$ac_ext |
| 25012 | done |
| 25013 | fi |
| 25014 | LIBS=$ac_func_search_save_LIBS |
| 25015 | fi |
| 25016 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $ac_cv_search_tputs" >&5 |
| 25017 | echoscip-shell system . . echo. "${ECHO_T}$ac_cv_search_tputs" >&6 |
| 25018 | if testscip-shell system . . test. "$ac_cv_search_tputs" != no; then |
| 25019 | testscip-shell system . . test. "$ac_cv_search_tputs" = "none required" || LIBS="$ac_cv_search_tputs $LIBS" |
| 25020 | |
| 25021 | else |
| 25022 | coin_has_readline=no |
| 25023 | fi |
| 25024 | |
| 25025 | fi |
| 25026 | |
| 25027 | # Now we check for readline |
| 25028 | if testscip-shell system . . test. $coin_has_readline = yes; then |
| 25029 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for readline in -lreadline" >&5 |
| 25030 | echoscip-shell system . . echo. $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6 |
| 25031 | if testscip-shell system . . test. "${ac_cv_lib_readline_readline+set}" = set; then |
| 25032 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 25033 | else |
| 25034 | ac_check_lib_save_LIBS=$LIBS |
| 25035 | LIBS="-lreadline $LIBS" |
| 25036 | catscip-shell system . . cat. >conftest.$ac_ext <<_ACEOF |
| 25037 | /* confdefs.h. */ |
| 25038 | _ACEOF |
| 25039 | catscip-shell system . . cat. confdefs.h >>conftest.$ac_ext |
| 25040 | catscip-shell system . . cat. >>conftest.$ac_ext <<_ACEOF |
| 25041 | /* end confdefs.h. */ |
| 25042 | |
| 25043 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 25044 | #ifdef __cplusplus |
| 25045 | extern "C" |
| 25046 | #endif |
| 25047 | /* We use char because int might match the return type of a gcc2 |
| 25048 | builtin and then its argument prototype would still apply. */ |
| 25049 | char readline (); |
| 25050 | int |
| 25051 | main () |
| 25052 | { |
| 25053 | readline (); |
| 25054 | ; |
| 25055 | return 0; |
| 25056 | } |
| 25057 | _ACEOF |
| 25058 | rmscip-shell system . . rm. -f conftest.$ac_objext conftest$ac_exeext |
| 25059 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 25060 | (eval $ac_link) 2>conftest.er1 |
| 25061 | ac_status=$? |
| 25062 | grepscip-shell system . . grep. -v '^ *+' conftest.er1 >conftest.err |
| 25063 | rmscip-shell system . . rm. -f conftest.er1 |
| 25064 | catscip-shell system . . cat. conftest.err >&5 |
| 25065 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25066 | (exit $ac_status); } && |
| 25067 | { ac_try='test -z "$ac_c_werror_flag" |
| 25068 | || test ! -s conftest.err' |
| 25069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25070 | (eval $ac_try) 2>&5 |
| 25071 | ac_status=$? |
| 25072 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25073 | (exit $ac_status); }; } && |
| 25074 | { ac_try='test -s conftest$ac_exeext' |
| 25075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25076 | (eval $ac_try) 2>&5 |
| 25077 | ac_status=$? |
| 25078 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25079 | (exit $ac_status); }; }; then |
| 25080 | ac_cv_lib_readline_readline=yes |
| 25081 | else |
| 25082 | echoscip-shell system . . echo. "$as_me: failed program was:" >&5 |
| 25083 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 25084 | |
| 25085 | ac_cv_lib_readline_readline=no |
| 25086 | fi |
| 25087 | rmscip-shell system . . rm. -f conftest.err conftest.$ac_objext \ |
| 25088 | conftest$ac_exeext conftest.$ac_ext |
| 25089 | LIBS=$ac_check_lib_save_LIBS |
| 25090 | fi |
| 25091 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 |
| 25092 | echoscip-shell system . . echo. "${ECHO_T}$ac_cv_lib_readline_readline" >&6 |
| 25093 | if testscip-shell system . . test. $ac_cv_lib_readline_readline = yes; then |
| 25094 | : |
| 25095 | else |
| 25096 | coin_has_readline=no |
| 25097 | fi |
| 25098 | |
| 25099 | fi |
| 25100 | |
| 25101 | if testscip-shell system . . test. $coin_has_readline = yes; then |
| 25102 | |
| 25103 | CBCLIB_LIBS="-lreadline $LIBS $CBCLIB_LIBS" |
| 25104 | CBCLIB_PCLIBS="-lreadline $LIBS $CBCLIB_PCLIBS" |
| 25105 | CBCLIB_LIBS_INSTALLED="-lreadline $LIBS $CBCLIB_LIBS_INSTALLED" |
| 25106 | |
| 25107 | CBCGENERIC_LIBS="-lreadline $LIBS $CBCGENERIC_LIBS" |
| 25108 | CBCGENERIC_PCLIBS="-lreadline $LIBS $CBCGENERIC_PCLIBS" |
| 25109 | CBCGENERIC_LIBS_INSTALLED="-lreadline $LIBS $CBCGENERIC_LIBS_INSTALLED" |
| 25110 | |
| 25111 | |
| 25112 | catscip-shell system . . cat. >>confdefs.h <<\_ACEOF |
| 25113 | #define COIN_HAS_READLINE 1 |
| 25114 | _ACEOF |
| 25115 | |
| 25116 | fi |
| 25117 | |
| 25118 | LIBS="$coin_save_LIBS" |
| 25119 | fi |
| 25120 | |
| 25121 | |
| 25122 | ############################################################################# |
| 25123 | # LP solvers other than CLP # |
| 25124 | ############################################################################# |
| 25125 | |
| 25126 | # Check which other LP solvers are available, some of them become a dependency of CbcGeneric |
| 25127 | |
| 25128 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for COIN-OR package DyLP" >&5 |
| 25129 | echoscip-shell system . . echo. $ECHO_N "checking for COIN-OR package DyLP... $ECHO_C" >&6 |
| 25130 | |
| 25131 | coin_has_dylp=notGiven |
| 25132 | |
| 25133 | # check if user wants to skip package in any case |
| 25134 | if testscip-shell system . . test. x"$COIN_SKIP_PROJECTS" != x; then |
| 25135 | for dir in $COIN_SKIP_PROJECTS; do |
| 25136 | if testscip-shell system . . test. $dir = "DyLP"; then |
| 25137 | coin_has_dylp=skipping |
| 25138 | fi |
| 25139 | done |
| 25140 | fi |
| 25141 | |
| 25142 | if testscip-shell system . . test. "$coin_has_dylp" != skipping; then |
| 25143 | |
| 25144 | # Check whether --with-m4_tolower(DyLP) or --without-m4_tolower(DyLP) was given. |
| 25145 | if testscip-shell system . . test. "${with_dylp+set}" = set; then |
| 25146 | withval="$with_dylp" |
| 25147 | if testscip-shell system . . test. "$withval" = no ; then |
| 25148 | coin_has_dylp=skipping |
| 25149 | fi |
| 25150 | |
| 25151 | fi; |
| 25152 | fi |
| 25153 | |
| 25154 | DYLP_LIBS= |
| 25155 | DYLP_CFLAGS= |
| 25156 | DYLP_DATA= |
| 25157 | DYLP_DEPENDENCIES= |
| 25158 | DYLP_PCLIBS= |
| 25159 | DYLP_PCREQUIRES= |
| 25160 | |
| 25161 | |
| 25162 | |
| 25163 | |
| 25164 | |
| 25165 | |
| 25166 | |
| 25167 | |
| 25168 | |
| 25169 | |
| 25170 | |
| 25171 | |
| 25172 | |
| 25173 | |
| 25174 | |
| 25175 | |
| 25176 | |
| 25177 | #check if user provided LIBS, CFLAGS, or DATA for package or disables use of package |
| 25178 | if testscip-shell system . . test. $coin_has_dylp != skipping; then |
| 25179 | |
| 25180 | # Check whether --with-m4_tolower(DyLP)-lib or --without-m4_tolower(DyLP)-lib was given. |
| 25181 | if testscip-shell system . . test. "${with_dylp_lib+set}" = set; then |
| 25182 | withval="$with_dylp_lib" |
| 25183 | if testscip-shell system . . test. "$withval" = no ; then |
| 25184 | coin_has_dylp=skipping |
| 25185 | else |
| 25186 | coin_has_dylp=yes |
| 25187 | DYLP_LIBS="$withval" |
| 25188 | DYLP_PCLIBS="$withval" |
| 25189 | |
| 25190 | CBCGENERIC_PCLIBS="$withval $CBCGENERIC_PCLIBS" |
| 25191 | CBCGENERIC_LIBS="$withval $CBCGENERIC_LIBS" |
| 25192 | |
| 25193 | # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables |
| 25194 | if testscip-shell system . . test. -z "$PKG_CONFIG" ; then |
| 25195 | DYLP_LIBS_INSTALLED="$withval" |
| 25196 | CBCGENERIC_LIBS_INSTALLED="$withval $CBCGENERIC_LIBS_INSTALLED" |
| 25197 | fi |
| 25198 | fi |
| 25199 | |
| 25200 | fi; |
| 25201 | fi |
| 25202 | |
| 25203 | if testscip-shell system . . test. $coin_has_dylp != skipping; then |
| 25204 | |
| 25205 | # Check whether --with-m4_tolower(DyLP)-incdir or --without-m4_tolower(DyLP)-incdir was given. |
| 25206 | if testscip-shell system . . test. "${with_dylp_incdir+set}" = set; then |
| 25207 | withval="$with_dylp_incdir" |
| 25208 | if testscip-shell system . . test. "$withval" = no ; then |
| 25209 | coin_has_dylp=skipping |
| 25210 | else |
| 25211 | coin_has_dylp=yes |
| 25212 | DYLP_CFLAGS="-I`${CYGPATH_W} $withval`" |
| 25213 | CBCGENERIC_CFLAGS="-I`${CYGPATH_W} $withval` $CBCGENERIC_CFLAGS" |
| 25214 | # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables |
| 25215 | if testscip-shell system . . test. -z "$PKG_CONFIG" ; then |
| 25216 | DYLP_CFLAGS_INSTALLED="$DYLP_CFLAGS" |
| 25217 | CBCGENERIC_CFLAGS_INSTALLED="$DYLP_CFLAGS $CBCGENERIC_CFLAGS_INSTALLED" |
| 25218 | fi |
| 25219 | fi |
| 25220 | |
| 25221 | fi; |
| 25222 | fi |
| 25223 | |
| 25224 | if testscip-shell system . . test. $coin_has_dylp != skipping; then |
| 25225 | |
| 25226 | # Check whether --with-m4_tolower(DyLP)-datadir or --without-m4_tolower(DyLP)-datadir was given. |
| 25227 | if testscip-shell system . . test. "${with_dylp_datadir+set}" = set; then |
| 25228 | withval="$with_dylp_datadir" |
| 25229 | if testscip-shell system . . test. "$withval" = no ; then |
| 25230 | coin_has_dylp=skipping |
| 25231 | else |
| 25232 | coin_has_dylp=yes |
| 25233 | DYLP_DATA="$withval" |
| 25234 | # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables |
| 25235 | if testscip-shell system . . test. -z "$PKG_CONFIG" ; then |
| 25236 | DYLP_DATA_INSTALLED="$withval" |
| 25237 | fi |
| 25238 | fi |
| 25239 | |
| 25240 | fi; |
| 25241 | fi |
| 25242 | |
| 25243 | if testscip-shell system . . test. $coin_has_dylp = notGiven; then |
| 25244 | if testscip-shell system . . test. -n "$PKG_CONFIG" ; then |
| 25245 | # set search path for pkg-config |
| 25246 | # need to export variable to be sure that the following pkg-config gets these values |
| 25247 | coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH" |
| 25248 | PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED" |
| 25249 | export PKG_CONFIG_PATH |
| 25250 | |
| 25251 | # let pkg-config do it's magic |
| 25252 | |
| 25253 | |
| 25254 | |
| 25255 | if testscip-shell system . . test. -n "$PKG_CONFIG" ; then |
| 25256 | if $PKG_CONFIG --exists "osi-dylp"; then |
| 25257 | DYLP_VERSIONS=`$PKG_CONFIG --modversion "osi-dylp" 2>/dev/nullscip-shell filesystem . . `/dev/null`. | trscip-shell system . . tr. '\n' ' '` |
| 25258 | cflags=`$PKG_CONFIG --cflags "osi-dylp" 2>/dev/nullscip-shell filesystem . . `/dev/null`.` |
| 25259 | # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files |
| 25260 | # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's |
| 25261 | # but only do this if is not trivial |
| 25262 | if testscip-shell system . . test. "$CYGPATH_W" != "echo" ; then |
| 25263 | # need to put into brackets since otherwise autoconf replaces the brackets in the sed command |
| 25264 | cflags=`echoscip-shell system . . echo. $cflags | sedscip-shell system . . sed. -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` |
| 25265 | fi |
| 25266 | DYLP_CFLAGS="$cflags" |
| 25267 | DYLP_LIBS=`$PKG_CONFIG --libs "osi-dylp" 2>/dev/nullscip-shell filesystem . . `/dev/null`.` |
| 25268 | DYLP_DATA=`$PKG_CONFIG --variable=datadir "osi-dylp" 2>/dev/nullscip-shell filesystem . . `/dev/null`.` |
| 25269 | coin_has_dylp=yes |
| 25270 | echoscip-shell system . . echo. "$as_me:$LINENO: result: yes: $DYLP_VERSIONS" >&5 |
| 25271 | echoscip-shell system . . echo. "${ECHO_T}yes: $DYLP_VERSIONS" >&6 |
| 25272 | |
| 25273 | # adjust linker flags for (i)cl compiler |
| 25274 | # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl) |
| 25275 | if testscip-shell system . . test. x$coin_cxx_is_cl = xtrue || testscip-shell system . . test. x$coin_cc_is_cl = xtrue ; |
| 25276 | then |
| 25277 | DYLP_LIBS=`echoscip-shell system . . echo. " $DYLP_LIBS " | sedscip-shell system . . sed. -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'` |
| 25278 | fi |
| 25279 | DYLP_PCREQUIRES="osi-dylp" |
| 25280 | |
| 25281 | # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CbcGeneric |
| 25282 | |
| 25283 | CBCGENERIC_PCREQUIRES="osi-dylp $CBCGENERIC_PCREQUIRES" |
| 25284 | CBCGENERIC_CFLAGS="$DYLP_CFLAGS $CBCGENERIC_CFLAGS" |
| 25285 | CBCGENERIC_LIBS="$DYLP_LIBS $CBCGENERIC_LIBS" |
| 25286 | |
| 25287 | |
| 25288 | |
| 25289 | else |
| 25290 | DYLP_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi-dylp"` |
| 25291 | coin_has_dylp=notGiven |
| 25292 | echoscip-shell system . . echo. "$as_me:$LINENO: result: not given: $DYLP_PKG_ERRORS" >&5 |
| 25293 | echoscip-shell system . . echo. "${ECHO_T}not given: $DYLP_PKG_ERRORS" >&6 |
| 25294 | |
| 25295 | fi |
| 25296 | else |
| 25297 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: \"Cannot check for existance of module DyLP without pkg-config\"" >&5 |
| 25298 | echoscip-shell system . . echo. "$as_me: error: \"Cannot check for existance of module DyLP without pkg-config\"" >&2;} |
| 25299 | { (exit 1); exit 1; }; } |
| 25300 | fi |
| 25301 | |
| 25302 | |
| 25303 | |
| 25304 | |
| 25305 | # reset PKG_CONFIG_PATH variable |
| 25306 | PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH" |
| 25307 | export PKG_CONFIG_PATH |
| 25308 | |
| 25309 | else |
| 25310 | echoscip-shell system . . echo. "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5 |
| 25311 | echoscip-shell system . . echo. "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6 |
| 25312 | |
| 25313 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for COIN-OR package DyLP (fallback)" >&5 |
| 25314 | echoscip-shell system . . echo. $ECHO_N "checking for COIN-OR package DyLP (fallback)... $ECHO_C" >&6 |
| 25315 | |
| 25316 | coin_has_dylp=notGiven |
| 25317 | DYLP_LIBS= |
| 25318 | DYLP_LIBS_INSTALLED= |
| 25319 | DYLP_CFLAGS= |
| 25320 | DYLP_CFLAGS_INSTALLED= |
| 25321 | DYLP_DATA= |
| 25322 | DYLP_DATA_INSTALLED= |
| 25323 | DYLP_PCLIBS= |
| 25324 | DYLP_PCREQUIRES= |
| 25325 | |
| 25326 | # initial list of dependencies is "osi-dylp", but we need to filter out version number specifications (= x, <= x, >= x, != x) |
| 25327 | projtoprocess="osi-dylp" |
| 25328 | |
| 25329 | # we first expand the list of projects to process by adding all dependencies just behind the project which depends on it |
| 25330 | # further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards |
| 25331 | # the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples |
| 25332 | # also, we setup the DATA variable |
| 25333 | allproj="" |
| 25334 | allpcfiles="" |
| 25335 | allpcifiles="" |
| 25336 | while testscip-shell system . . test. "x$projtoprocess" != x ; do |
| 25337 | |
| 25338 | for proj in $projtoprocess ; do |
| 25339 | # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it |
| 25340 | pcfile="" |
| 25341 | save_IFS="$IFS" |
| 25342 | IFS=":" |
| 25343 | for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do |
| 25344 | # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again |
| 25345 | if testscip-shell system . . test. -r "$dir/${proj}-uninstalled.pc" ; then |
| 25346 | pcfile="$dir/$proj-uninstalled.pc" |
| 25347 | if testscip-shell system . . test. -r "$dir/${proj}.pc" ; then |
| 25348 | pcifile="$dir/${proj}.pc" |
| 25349 | else |
| 25350 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5 |
| 25351 | echoscip-shell system . . echo. "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;} |
| 25352 | pcifile= |
| 25353 | fi |
| 25354 | break |
| 25355 | fi |
| 25356 | done |
| 25357 | IFS="$save_IFS" |
| 25358 | |
| 25359 | if testscip-shell system . . test. "x$pcfile" != x ; then |
| 25360 | # read dependencies from $pcfile and filter it |
| 25361 | projrequires=`sedscip-shell system . . sed. -n -e 's/Requires://gp' "$pcfile" | sedscip-shell system . . sed. -e 's/<\{0,1\}>\{0,1\}=[ ]\{0,\}[^ ]\{1,\}//g'` |
| 25362 | |
| 25363 | # add projrequires to the front of the list of projects that have to be processed next |
| 25364 | # at the same time, remove $proj from this list |
| 25365 | projtoprocess=`echoscip-shell system . . echo. $projtoprocess | sedscip-shell system . . sed. -e "s/$proj/$projrequires/"` |
| 25366 | |
| 25367 | # read DATA from $pcfile, if _DATA is still empty |
| 25368 | if testscip-shell system . . test. "x$DYLP_DATA" = x ; then |
| 25369 | projdatadir= |
| 25370 | pcfilemod=`sedscip-shell system . . sed. -e '/[a-zA-Z]:/dscip-shell filesystem . . `/[a-zA-Z]:/d`.' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile` |
| 25371 | eval `shscip-shell system . . sh. -c "$pcfilemod"` |
| 25372 | DYLP_DATA="$projdatadir" |
| 25373 | fi |
| 25374 | |
| 25375 | allproj="$allproj $proj" |
| 25376 | allpcfiles="$pcfile:$allpcfiles" |
| 25377 | |
| 25378 | else |
| 25379 | echoscip-shell system . . echo. "$as_me:$LINENO: result: no, dependency $proj not available" >&5 |
| 25380 | echoscip-shell system . . echo. "${ECHO_T}no, dependency $proj not available" >&6 |
| 25381 | allproj=fail |
| 25382 | break 2 |
| 25383 | fi |
| 25384 | |
| 25385 | if testscip-shell system . . test. "x$pcifile" != x ; then |
| 25386 | allpcifiles="$pcifile:$allpcifiles" |
| 25387 | |
| 25388 | # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty |
| 25389 | if testscip-shell system . . test. "x$DYLP_DATA_INSTALLED" = x ; then |
| 25390 | projdatadir= |
| 25391 | pcifilemod=`sedscip-shell system . . sed. -e '/[a-zA-Z]:/dscip-shell filesystem . . `/[a-zA-Z]:/d`.' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile` |
| 25392 | eval `shscip-shell system . . sh. -c "$pcifilemod"` |
| 25393 | if testscip-shell system . . test. "${CYGPATH_W}" != "echo"; then |
| 25394 | projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`" |
| 25395 | fi |
| 25396 | DYLP_DATA_INSTALLED="$projdatadir" |
| 25397 | fi |
| 25398 | |
| 25399 | fi |
| 25400 | |
| 25401 | break |
| 25402 | done |
| 25403 | |
| 25404 | # remove spaces on begin of $projtoprocess |
| 25405 | projtoprocess=`echoscip-shell system . . echo. $projtoprocess | sedscip-shell system . . sed. -e 's/^ *//'` |
| 25406 | |
| 25407 | done |
| 25408 | |
| 25409 | if testscip-shell system . . test. "$allproj" != fail ; then |
| 25410 | |
| 25411 | # now go through the list of .pc files and assemble compiler and linker flags |
| 25412 | # important is here to obey the reverse order that has been setup before, |
| 25413 | # since then libraries that are required by several others should be after these other libraries |
| 25414 | pcfilesprocessed="" |
| 25415 | |
| 25416 | save_IFS="$IFS" |
| 25417 | IFS=":" |
| 25418 | for pcfile in $allpcfiles ; do |
| 25419 | |
| 25420 | # if $pcfile has been processed already, skip this round |
| 25421 | if testscip-shell system . . test. "x$pcfilesprocessed" != x ; then |
| 25422 | for pcfiledone in $pcfilesprocessed ; do |
| 25423 | if testscip-shell system . . test. "$pcfiledone" = "$pcfile" ; then |
| 25424 | continue 2 |
| 25425 | fi |
| 25426 | done |
| 25427 | fi |
| 25428 | |
| 25429 | # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags: |
| 25430 | # replace "Libs:" by "echo projlibs=" |
| 25431 | # replace "Cflags:" by "echo projcflags=" |
| 25432 | # remove every line starting with <some word>: |
| 25433 | pcfilemod=`sedscip-shell system . . sed. -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/dscip-shell filesystem . . `/^[a-zA-Z]*:/d`.' $pcfile` |
| 25434 | |
| 25435 | # set projcflags and projlibs variables by running $pcfilemod |
| 25436 | # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default |
| 25437 | projcflags= |
| 25438 | projlibs= |
| 25439 | IFS="$save_IFS" |
| 25440 | eval `shscip-shell system . . sh. -c "$pcfilemod"` |
| 25441 | IFS=":" |
| 25442 | |
| 25443 | # add CYGPATH_W cludge into include flags and set CFLAGS variable |
| 25444 | if testscip-shell system . . test. "${CYGPATH_W}" != "echo"; then |
| 25445 | projcflags=`echoscip-shell system . . echo. "$projcflags" | sedscip-shell system . . sed. -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` |
| 25446 | fi |
| 25447 | DYLP_CFLAGS="$projcflags $DYLP_CFLAGS" |
| 25448 | |
| 25449 | # set LIBS variable |
| 25450 | DYLP_LIBS="$projlibs $DYLP_LIBS" |
| 25451 | |
| 25452 | # remember that we have processed $pcfile |
| 25453 | pcfilesprocessed="$pcfilesprocessed:$pcfile" |
| 25454 | |
| 25455 | done |
| 25456 | IFS="$save_IFS" |
| 25457 | |
| 25458 | |
| 25459 | # now go through the list of .pc files for installed projects and assemble compiler and linker flags |
| 25460 | # important is here again to obey the reverse order that has been setup before, |
| 25461 | # since then libraries that are required by several others should be after these other libraries |
| 25462 | pcfilesprocessed="" |
| 25463 | |
| 25464 | save_IFS="$IFS" |
| 25465 | IFS=":" |
| 25466 | for pcfile in $allpcifiles ; do |
| 25467 | |
| 25468 | # if $pcfile has been processed already, skip this round |
| 25469 | if testscip-shell system . . test. "x$pcfilesprocessed" != x ; then |
| 25470 | for pcfiledone in $pcfilesprocessed ; do |
| 25471 | if testscip-shell system . . test. "$pcfiledone" = "$pcfile" ; then |
| 25472 | continue 2 |
| 25473 | fi |
| 25474 | done |
| 25475 | fi |
| 25476 | |
| 25477 | # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags: |
| 25478 | # replace "Libs:" by "echo projlibs=" |
| 25479 | # replace "Cflags:" by "echo projcflags=" |
| 25480 | # remove every line starting with <some word>: |
| 25481 | pcfilemod=`sedscip-shell system . . sed. -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/dscip-shell filesystem . . `/^[a-zA-Z]*:/d`.' $pcfile` |
| 25482 | |
| 25483 | # set projcflags and projlibs variables by running $pcfilemod |
| 25484 | # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default |
| 25485 | projcflags= |
| 25486 | projlibs= |
| 25487 | IFS="$save_IFS" |
| 25488 | eval `shscip-shell system . . sh. -c "$pcfilemod"` |
| 25489 | IFS=":" |
| 25490 | |
| 25491 | # add CYGPATH_W cludge into include flags and set CFLAGS variable |
| 25492 | if testscip-shell system . . test. "${CYGPATH_W}" != "echo"; then |
| 25493 | projcflags=`echoscip-shell system . . echo. "$projcflags" | sedscip-shell system . . sed. -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` |
| 25494 | fi |
| 25495 | DYLP_CFLAGS_INSTALLED="$projcflags $DYLP_CFLAGS_INSTALLED" |
| 25496 | |
| 25497 | # set LIBS variable |
| 25498 | DYLP_LIBS_INSTALLED="$projlibs $DYLP_LIBS_INSTALLED" |
| 25499 | |
| 25500 | # remember that we have processed $pcfile |
| 25501 | pcfilesprocessed="$pcfilesprocessed:$pcfile" |
| 25502 | |
| 25503 | done |
| 25504 | IFS="$save_IFS" |
| 25505 | |
| 25506 | |
| 25507 | # finish up |
| 25508 | coin_has_dylp=yes |
| 25509 | echoscip-shell system . . echo. "$as_me:$LINENO: result: yes" >&5 |
| 25510 | echoscip-shell system . . echo. "${ECHO_T}yes" >&6 |
| 25511 | |
| 25512 | catscip-shell system . . cat. >>confdefs.h <<\_ACEOF |
| 25513 | #define COIN_HAS_DYLP 1 |
| 25514 | _ACEOF |
| 25515 | |
| 25516 | |
| 25517 | # adjust linker flags for (i)cl compiler |
| 25518 | # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl), |
| 25519 | # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`", |
| 25520 | # everything of the form "-lname" by "libname.lib", and |
| 25521 | # everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path` |
| 25522 | if testscip-shell system . . test. x$coin_cxx_is_cl = xtrue || testscip-shell system . . test. x$coin_cc_is_cl = xtrue ; |
| 25523 | then |
| 25524 | DYLP_LIBS=`echoscip-shell system . . echo. " $DYLP_LIBS " | sedscip-shell system . . sed. -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'` |
| 25525 | DYLP_LIBS_INSTALLED=`echoscip-shell system . . echo. " $DYLP_LIBS_INSTALLED" | sedscip-shell system . . sed. -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'` |
| 25526 | fi |
| 25527 | |
| 25528 | DYLP_PCREQUIRES="osi-dylp" |
| 25529 | |
| 25530 | CBCGENERIC_PCREQUIRES="osi-dylp $CBCGENERIC_PCREQUIRES" |
| 25531 | CBCGENERIC_CFLAGS="$DYLP_CFLAGS $CBCGENERIC_CFLAGS" |
| 25532 | CBCGENERIC_LIBS="$DYLP_LIBS $CBCGENERIC_LIBS" |
| 25533 | CBCGENERIC_CFLAGS_INSTALLED="$DYLP_CFLAGS_INSTALLED $CBCGENERIC_CFLAGS_INSTALLED" |
| 25534 | CBCGENERIC_LIBS_INSTALLED="$DYLP_LIBS_INSTALLED $CBCGENERIC_LIBS_INSTALLED" |
| 25535 | |
| 25536 | |
| 25537 | fi |
| 25538 | |
| 25539 | |
| 25540 | |
| 25541 | if testscip-shell system . . test. $coin_has_dylp != notGiven && |
| 25542 | testscip-shell system . . test. $coin_has_dylp != skipping; then |
| 25543 | COIN_HAS_DYLP_TRUE= |
| 25544 | COIN_HAS_DYLP_FALSE='#' |
| 25545 | else |
| 25546 | COIN_HAS_DYLP_TRUE='#' |
| 25547 | COIN_HAS_DYLP_FALSE= |
| 25548 | fi |
| 25549 | |
| 25550 | |
| 25551 | |
| 25552 | fi |
| 25553 | |
| 25554 | else |
| 25555 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $coin_has_dylp" >&5 |
| 25556 | echoscip-shell system . . echo. "${ECHO_T}$coin_has_dylp" >&6 |
| 25557 | fi |
| 25558 | |
| 25559 | if testscip-shell system . . test. $coin_has_dylp != skipping && |
| 25560 | testscip-shell system . . test. $coin_has_dylp != notGiven ; then |
| 25561 | |
| 25562 | catscip-shell system . . cat. >>confdefs.h <<\_ACEOF |
| 25563 | #define COIN_HAS_DYLP 1 |
| 25564 | _ACEOF |
| 25565 | |
| 25566 | |
| 25567 | # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given. |
| 25568 | if testscip-shell system . . test. "${enable_interpackage_dependencies+set}" = set; then |
| 25569 | enableval="$enable_interpackage_dependencies" |
| 25570 | |
| 25571 | else |
| 25572 | enable_interpackage_dependencies=yes |
| 25573 | fi; |
| 25574 | |
| 25575 | if testscip-shell system . . test. $enable_interpackage_dependencies = yes ; then |
| 25576 | # construct dependencies variables from LIBS variables |
| 25577 | # we add an extra space in LIBS so we can substitute out everything starting with " -" |
| 25578 | # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows |
| 25579 | # then remove everything of the form -xxx |
| 25580 | # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl) |
| 25581 | DYLP_DEPENDENCIES=`echoscip-shell system . . echo. " $DYLP_LIBS" | sedscip-shell system . . sed. -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'` |
| 25582 | |
| 25583 | CBCGENERIC_DEPENDENCIES=`echoscip-shell system . . echo. " $CBCGENERIC_LIBS " | sedscip-shell system . . sed. -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'` |
| 25584 | |
| 25585 | fi |
| 25586 | |
| 25587 | if testscip-shell system . . test. 1 = 0 ; then #change this test to enable a bit of debugging output |
| 25588 | if testscip-shell system . . test. -n "$DYLP_CFLAGS" ; then |
| 25589 | { echoscip-shell system . . echo. "$as_me:$LINENO: DyLP CFLAGS are $DYLP_CFLAGS" >&5 |
| 25590 | echoscip-shell system . . echo. "$as_me: DyLP CFLAGS are $DYLP_CFLAGS" >&6;} |
| 25591 | fi |
| 25592 | if testscip-shell system . . test. -n "$DYLP_LIBS" ; then |
| 25593 | { echoscip-shell system . . echo. "$as_me:$LINENO: DyLP LIBS are $DYLP_LIBS" >&5 |
| 25594 | echoscip-shell system . . echo. "$as_me: DyLP LIBS are $DYLP_LIBS" >&6;} |
| 25595 | fi |
| 25596 | if testscip-shell system . . test. -n "$DYLP_DEPENDENCIES" ; then |
| 25597 | { echoscip-shell system . . echo. "$as_me:$LINENO: DyLP DEPENDENCIES are $DYLP_DEPENDENCIES" >&5 |
| 25598 | echoscip-shell system . . echo. "$as_me: DyLP DEPENDENCIES are $DYLP_DEPENDENCIES" >&6;} |
| 25599 | fi |
| 25600 | if testscip-shell system . . test. -n "$DYLP_DATA" ; then |
| 25601 | { echoscip-shell system . . echo. "$as_me:$LINENO: DyLP DATA is $DYLP_DATA" >&5 |
| 25602 | echoscip-shell system . . echo. "$as_me: DyLP DATA is $DYLP_DATA" >&6;} |
| 25603 | fi |
| 25604 | if testscip-shell system . . test. -n "$DYLP_PCLIBS" ; then |
| 25605 | { echoscip-shell system . . echo. "$as_me:$LINENO: DyLP PCLIBS are $DYLP_PCLIBS" >&5 |
| 25606 | echoscip-shell system . . echo. "$as_me: DyLP PCLIBS are $DYLP_PCLIBS" >&6;} |
| 25607 | fi |
| 25608 | if testscip-shell system . . test. -n "$DYLP_PCREQUIRES" ; then |
| 25609 | { echoscip-shell system . . echo. "$as_me:$LINENO: DyLP PCREQUIRES are $DYLP_PCREQUIRES" >&5 |
| 25610 | echoscip-shell system . . echo. "$as_me: DyLP PCREQUIRES are $DYLP_PCREQUIRES" >&6;} |
| 25611 | fi |
| 25612 | |
| 25613 | { echoscip-shell system . . echo. "$as_me:$LINENO: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&5 |
| 25614 | echoscip-shell system . . echo. "$as_me: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&6;} |
| 25615 | { echoscip-shell system . . echo. "$as_me:$LINENO: CbcGeneric LIBS are $CBCGENERIC_LIBS" >&5 |
| 25616 | echoscip-shell system . . echo. "$as_me: CbcGeneric LIBS are $CBCGENERIC_LIBS" >&6;} |
| 25617 | { echoscip-shell system . . echo. "$as_me:$LINENO: CbcGeneric DEPENDENCIES are $CBCGENERIC_DEPENDENCIES" >&5 |
| 25618 | echoscip-shell system . . echo. "$as_me: CbcGeneric DEPENDENCIES are $CBCGENERIC_DEPENDENCIES" >&6;} |
| 25619 | |
| 25620 | fi |
| 25621 | fi |
| 25622 | |
| 25623 | # Define the Makefile conditional |
| 25624 | |
| 25625 | |
| 25626 | if testscip-shell system . . test. $coin_has_dylp != notGiven && |
| 25627 | testscip-shell system . . test. $coin_has_dylp != skipping; then |
| 25628 | COIN_HAS_DYLP_TRUE= |
| 25629 | COIN_HAS_DYLP_FALSE='#' |
| 25630 | else |
| 25631 | COIN_HAS_DYLP_TRUE='#' |
| 25632 | COIN_HAS_DYLP_FALSE= |
| 25633 | fi |
| 25634 | |
| 25635 | |
| 25636 | |
| 25637 | |
| 25638 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for COIN-OR package Vol" >&5 |
| 25639 | echoscip-shell system . . echo. $ECHO_N "checking for COIN-OR package Vol... $ECHO_C" >&6 |
| 25640 | |
| 25641 | coin_has_vol=notGiven |
| 25642 | |
| 25643 | # check if user wants to skip package in any case |
| 25644 | if testscip-shell system . . test. x"$COIN_SKIP_PROJECTS" != x; then |
| 25645 | for dir in $COIN_SKIP_PROJECTS; do |
| 25646 | if testscip-shell system . . test. $dir = "Vol"; then |
| 25647 | coin_has_vol=skipping |
| 25648 | fi |
| 25649 | done |
| 25650 | fi |
| 25651 | |
| 25652 | if testscip-shell system . . test. "$coin_has_vol" != skipping; then |
| 25653 | |
| 25654 | # Check whether --with-m4_tolower(Vol) or --without-m4_tolower(Vol) was given. |
| 25655 | if testscip-shell system . . test. "${with_vol+set}" = set; then |
| 25656 | withval="$with_vol" |
| 25657 | if testscip-shell system . . test. "$withval" = no ; then |
| 25658 | coin_has_vol=skipping |
| 25659 | fi |
| 25660 | |
| 25661 | fi; |
| 25662 | fi |
| 25663 | |
| 25664 | VOL_LIBS= |
| 25665 | VOL_CFLAGS= |
| 25666 | VOL_DATA= |
| 25667 | VOL_DEPENDENCIES= |
| 25668 | VOL_PCLIBS= |
| 25669 | VOL_PCREQUIRES= |
| 25670 | |
| 25671 | |
| 25672 | |
| 25673 | |
| 25674 | |
| 25675 | |
| 25676 | |
| 25677 | |
| 25678 | |
| 25679 | #check if user provided LIBS, CFLAGS, or DATA for package or disables use of package |
| 25680 | if testscip-shell system . . test. $coin_has_vol != skipping; then |
| 25681 | |
| 25682 | # Check whether --with-m4_tolower(Vol)-lib or --without-m4_tolower(Vol)-lib was given. |
| 25683 | if testscip-shell system . . test. "${with_vol_lib+set}" = set; then |
| 25684 | withval="$with_vol_lib" |
| 25685 | if testscip-shell system . . test. "$withval" = no ; then |
| 25686 | coin_has_vol=skipping |
| 25687 | else |
| 25688 | coin_has_vol=yes |
| 25689 | VOL_LIBS="$withval" |
| 25690 | VOL_PCLIBS="$withval" |
| 25691 | |
| 25692 | # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables |
| 25693 | if testscip-shell system . . test. -z "$PKG_CONFIG" ; then |
| 25694 | VOL_LIBS_INSTALLED="$withval" |
| 25695 | |
| 25696 | fi |
| 25697 | fi |
| 25698 | |
| 25699 | fi; |
| 25700 | fi |
| 25701 | |
| 25702 | if testscip-shell system . . test. $coin_has_vol != skipping; then |
| 25703 | |
| 25704 | # Check whether --with-m4_tolower(Vol)-incdir or --without-m4_tolower(Vol)-incdir was given. |
| 25705 | if testscip-shell system . . test. "${with_vol_incdir+set}" = set; then |
| 25706 | withval="$with_vol_incdir" |
| 25707 | if testscip-shell system . . test. "$withval" = no ; then |
| 25708 | coin_has_vol=skipping |
| 25709 | else |
| 25710 | coin_has_vol=yes |
| 25711 | VOL_CFLAGS="-I`${CYGPATH_W} $withval`" |
| 25712 | |
| 25713 | # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables |
| 25714 | if testscip-shell system . . test. -z "$PKG_CONFIG" ; then |
| 25715 | VOL_CFLAGS_INSTALLED="$VOL_CFLAGS" |
| 25716 | |
| 25717 | fi |
| 25718 | fi |
| 25719 | |
| 25720 | fi; |
| 25721 | fi |
| 25722 | |
| 25723 | if testscip-shell system . . test. $coin_has_vol != skipping; then |
| 25724 | |
| 25725 | # Check whether --with-m4_tolower(Vol)-datadir or --without-m4_tolower(Vol)-datadir was given. |
| 25726 | if testscip-shell system . . test. "${with_vol_datadir+set}" = set; then |
| 25727 | withval="$with_vol_datadir" |
| 25728 | if testscip-shell system . . test. "$withval" = no ; then |
| 25729 | coin_has_vol=skipping |
| 25730 | else |
| 25731 | coin_has_vol=yes |
| 25732 | VOL_DATA="$withval" |
| 25733 | # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables |
| 25734 | if testscip-shell system . . test. -z "$PKG_CONFIG" ; then |
| 25735 | VOL_DATA_INSTALLED="$withval" |
| 25736 | fi |
| 25737 | fi |
| 25738 | |
| 25739 | fi; |
| 25740 | fi |
| 25741 | |
| 25742 | if testscip-shell system . . test. $coin_has_vol = notGiven; then |
| 25743 | if testscip-shell system . . test. -n "$PKG_CONFIG" ; then |
| 25744 | # set search path for pkg-config |
| 25745 | # need to export variable to be sure that the following pkg-config gets these values |
| 25746 | coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH" |
| 25747 | PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED" |
| 25748 | export PKG_CONFIG_PATH |
| 25749 | |
| 25750 | # let pkg-config do it's magic |
| 25751 | |
| 25752 | |
| 25753 | |
| 25754 | if testscip-shell system . . test. -n "$PKG_CONFIG" ; then |
| 25755 | if $PKG_CONFIG --exists "osi-vol"; then |
| 25756 | VOL_VERSIONS=`$PKG_CONFIG --modversion "osi-vol" 2>/dev/nullscip-shell filesystem . . `/dev/null`. | trscip-shell system . . tr. '\n' ' '` |
| 25757 | cflags=`$PKG_CONFIG --cflags "osi-vol" 2>/dev/nullscip-shell filesystem . . `/dev/null`.` |
| 25758 | # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files |
| 25759 | # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's |
| 25760 | # but only do this if is not trivial |
| 25761 | if testscip-shell system . . test. "$CYGPATH_W" != "echo" ; then |
| 25762 | # need to put into brackets since otherwise autoconf replaces the brackets in the sed command |
| 25763 | cflags=`echoscip-shell system . . echo. $cflags | sedscip-shell system . . sed. -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` |
| 25764 | fi |
| 25765 | VOL_CFLAGS="$cflags" |
| 25766 | VOL_LIBS=`$PKG_CONFIG --libs "osi-vol" 2>/dev/nullscip-shell filesystem . . `/dev/null`.` |
| 25767 | VOL_DATA=`$PKG_CONFIG --variable=datadir "osi-vol" 2>/dev/nullscip-shell filesystem . . `/dev/null`.` |
| 25768 | coin_has_vol=yes |
| 25769 | echoscip-shell system . . echo. "$as_me:$LINENO: result: yes: $VOL_VERSIONS" >&5 |
| 25770 | echoscip-shell system . . echo. "${ECHO_T}yes: $VOL_VERSIONS" >&6 |
| 25771 | |
| 25772 | # adjust linker flags for (i)cl compiler |
| 25773 | # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl) |
| 25774 | if testscip-shell system . . test. x$coin_cxx_is_cl = xtrue || testscip-shell system . . test. x$coin_cc_is_cl = xtrue ; |
| 25775 | then |
| 25776 | VOL_LIBS=`echoscip-shell system . . echo. " $VOL_LIBS " | sedscip-shell system . . sed. -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'` |
| 25777 | fi |
| 25778 | VOL_PCREQUIRES="osi-vol" |
| 25779 | |
| 25780 | # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in |
| 25781 | |
| 25782 | |
| 25783 | |
| 25784 | else |
| 25785 | VOL_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi-vol"` |
| 25786 | coin_has_vol=notGiven |
| 25787 | echoscip-shell system . . echo. "$as_me:$LINENO: result: not given: $VOL_PKG_ERRORS" >&5 |
| 25788 | echoscip-shell system . . echo. "${ECHO_T}not given: $VOL_PKG_ERRORS" >&6 |
| 25789 | |
| 25790 | fi |
| 25791 | else |
| 25792 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: \"Cannot check for existance of module Vol without pkg-config\"" >&5 |
| 25793 | echoscip-shell system . . echo. "$as_me: error: \"Cannot check for existance of module Vol without pkg-config\"" >&2;} |
| 25794 | { (exit 1); exit 1; }; } |
| 25795 | fi |
| 25796 | |
| 25797 | |
| 25798 | |
| 25799 | |
| 25800 | # reset PKG_CONFIG_PATH variable |
| 25801 | PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH" |
| 25802 | export PKG_CONFIG_PATH |
| 25803 | |
| 25804 | else |
| 25805 | echoscip-shell system . . echo. "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5 |
| 25806 | echoscip-shell system . . echo. "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6 |
| 25807 | |
| 25808 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for COIN-OR package Vol (fallback)" >&5 |
| 25809 | echoscip-shell system . . echo. $ECHO_N "checking for COIN-OR package Vol (fallback)... $ECHO_C" >&6 |
| 25810 | |
| 25811 | coin_has_vol=notGiven |
| 25812 | VOL_LIBS= |
| 25813 | VOL_LIBS_INSTALLED= |
| 25814 | VOL_CFLAGS= |
| 25815 | VOL_CFLAGS_INSTALLED= |
| 25816 | VOL_DATA= |
| 25817 | VOL_DATA_INSTALLED= |
| 25818 | VOL_PCLIBS= |
| 25819 | VOL_PCREQUIRES= |
| 25820 | |
| 25821 | # initial list of dependencies is "osi-vol", but we need to filter out version number specifications (= x, <= x, >= x, != x) |
| 25822 | projtoprocess="osi-vol" |
| 25823 | |
| 25824 | # we first expand the list of projects to process by adding all dependencies just behind the project which depends on it |
| 25825 | # further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards |
| 25826 | # the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples |
| 25827 | # also, we setup the DATA variable |
| 25828 | allproj="" |
| 25829 | allpcfiles="" |
| 25830 | allpcifiles="" |
| 25831 | while testscip-shell system . . test. "x$projtoprocess" != x ; do |
| 25832 | |
| 25833 | for proj in $projtoprocess ; do |
| 25834 | # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it |
| 25835 | pcfile="" |
| 25836 | save_IFS="$IFS" |
| 25837 | IFS=":" |
| 25838 | for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do |
| 25839 | # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again |
| 25840 | if testscip-shell system . . test. -r "$dir/${proj}-uninstalled.pc" ; then |
| 25841 | pcfile="$dir/$proj-uninstalled.pc" |
| 25842 | if testscip-shell system . . test. -r "$dir/${proj}.pc" ; then |
| 25843 | pcifile="$dir/${proj}.pc" |
| 25844 | else |
| 25845 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5 |
| 25846 | echoscip-shell system . . echo. "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;} |
| 25847 | pcifile= |
| 25848 | fi |
| 25849 | break |
| 25850 | fi |
| 25851 | done |
| 25852 | IFS="$save_IFS" |
| 25853 | |
| 25854 | if testscip-shell system . . test. "x$pcfile" != x ; then |
| 25855 | # read dependencies from $pcfile and filter it |
| 25856 | projrequires=`sedscip-shell system . . sed. -n -e 's/Requires://gp' "$pcfile" | sedscip-shell system . . sed. -e 's/<\{0,1\}>\{0,1\}=[ ]\{0,\}[^ ]\{1,\}//g'` |
| 25857 | |
| 25858 | # add projrequires to the front of the list of projects that have to be processed next |
| 25859 | # at the same time, remove $proj from this list |
| 25860 | projtoprocess=`echoscip-shell system . . echo. $projtoprocess | sedscip-shell system . . sed. -e "s/$proj/$projrequires/"` |
| 25861 | |
| 25862 | # read DATA from $pcfile, if _DATA is still empty |
| 25863 | if testscip-shell system . . test. "x$VOL_DATA" = x ; then |
| 25864 | projdatadir= |
| 25865 | pcfilemod=`sedscip-shell system . . sed. -e '/[a-zA-Z]:/dscip-shell filesystem . . `/[a-zA-Z]:/d`.' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile` |
| 25866 | eval `shscip-shell system . . sh. -c "$pcfilemod"` |
| 25867 | VOL_DATA="$projdatadir" |
| 25868 | fi |
| 25869 | |
| 25870 | allproj="$allproj $proj" |
| 25871 | allpcfiles="$pcfile:$allpcfiles" |
| 25872 | |
| 25873 | else |
| 25874 | echoscip-shell system . . echo. "$as_me:$LINENO: result: no, dependency $proj not available" >&5 |
| 25875 | echoscip-shell system . . echo. "${ECHO_T}no, dependency $proj not available" >&6 |
| 25876 | allproj=fail |
| 25877 | break 2 |
| 25878 | fi |
| 25879 | |
| 25880 | if testscip-shell system . . test. "x$pcifile" != x ; then |
| 25881 | allpcifiles="$pcifile:$allpcifiles" |
| 25882 | |
| 25883 | # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty |
| 25884 | if testscip-shell system . . test. "x$VOL_DATA_INSTALLED" = x ; then |
| 25885 | projdatadir= |
| 25886 | pcifilemod=`sedscip-shell system . . sed. -e '/[a-zA-Z]:/dscip-shell filesystem . . `/[a-zA-Z]:/d`.' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile` |
| 25887 | eval `shscip-shell system . . sh. -c "$pcifilemod"` |
| 25888 | if testscip-shell system . . test. "${CYGPATH_W}" != "echo"; then |
| 25889 | projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`" |
| 25890 | fi |
| 25891 | VOL_DATA_INSTALLED="$projdatadir" |
| 25892 | fi |
| 25893 | |
| 25894 | fi |
| 25895 | |
| 25896 | break |
| 25897 | done |
| 25898 | |
| 25899 | # remove spaces on begin of $projtoprocess |
| 25900 | projtoprocess=`echoscip-shell system . . echo. $projtoprocess | sedscip-shell system . . sed. -e 's/^ *//'` |
| 25901 | |
| 25902 | done |
| 25903 | |
| 25904 | if testscip-shell system . . test. "$allproj" != fail ; then |
| 25905 | |
| 25906 | # now go through the list of .pc files and assemble compiler and linker flags |
| 25907 | # important is here to obey the reverse order that has been setup before, |
| 25908 | # since then libraries that are required by several others should be after these other libraries |
| 25909 | pcfilesprocessed="" |
| 25910 | |
| 25911 | save_IFS="$IFS" |
| 25912 | IFS=":" |
| 25913 | for pcfile in $allpcfiles ; do |
| 25914 | |
| 25915 | # if $pcfile has been processed already, skip this round |
| 25916 | if testscip-shell system . . test. "x$pcfilesprocessed" != x ; then |
| 25917 | for pcfiledone in $pcfilesprocessed ; do |
| 25918 | if testscip-shell system . . test. "$pcfiledone" = "$pcfile" ; then |
| 25919 | continue 2 |
| 25920 | fi |
| 25921 | done |
| 25922 | fi |
| 25923 | |
| 25924 | # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags: |
| 25925 | # replace "Libs:" by "echo projlibs=" |
| 25926 | # replace "Cflags:" by "echo projcflags=" |
| 25927 | # remove every line starting with <some word>: |
| 25928 | pcfilemod=`sedscip-shell system . . sed. -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/dscip-shell filesystem . . `/^[a-zA-Z]*:/d`.' $pcfile` |
| 25929 | |
| 25930 | # set projcflags and projlibs variables by running $pcfilemod |
| 25931 | # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default |
| 25932 | projcflags= |
| 25933 | projlibs= |
| 25934 | IFS="$save_IFS" |
| 25935 | eval `shscip-shell system . . sh. -c "$pcfilemod"` |
| 25936 | IFS=":" |
| 25937 | |
| 25938 | # add CYGPATH_W cludge into include flags and set CFLAGS variable |
| 25939 | if testscip-shell system . . test. "${CYGPATH_W}" != "echo"; then |
| 25940 | projcflags=`echoscip-shell system . . echo. "$projcflags" | sedscip-shell system . . sed. -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` |
| 25941 | fi |
| 25942 | VOL_CFLAGS="$projcflags $VOL_CFLAGS" |
| 25943 | |
| 25944 | # set LIBS variable |
| 25945 | VOL_LIBS="$projlibs $VOL_LIBS" |
| 25946 | |
| 25947 | # remember that we have processed $pcfile |
| 25948 | pcfilesprocessed="$pcfilesprocessed:$pcfile" |
| 25949 | |
| 25950 | done |
| 25951 | IFS="$save_IFS" |
| 25952 | |
| 25953 | |
| 25954 | # now go through the list of .pc files for installed projects and assemble compiler and linker flags |
| 25955 | # important is here again to obey the reverse order that has been setup before, |
| 25956 | # since then libraries that are required by several others should be after these other libraries |
| 25957 | pcfilesprocessed="" |
| 25958 | |
| 25959 | save_IFS="$IFS" |
| 25960 | IFS=":" |
| 25961 | for pcfile in $allpcifiles ; do |
| 25962 | |
| 25963 | # if $pcfile has been processed already, skip this round |
| 25964 | if testscip-shell system . . test. "x$pcfilesprocessed" != x ; then |
| 25965 | for pcfiledone in $pcfilesprocessed ; do |
| 25966 | if testscip-shell system . . test. "$pcfiledone" = "$pcfile" ; then |
| 25967 | continue 2 |
| 25968 | fi |
| 25969 | done |
| 25970 | fi |
| 25971 | |
| 25972 | # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags: |
| 25973 | # replace "Libs:" by "echo projlibs=" |
| 25974 | # replace "Cflags:" by "echo projcflags=" |
| 25975 | # remove every line starting with <some word>: |
| 25976 | pcfilemod=`sedscip-shell system . . sed. -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/dscip-shell filesystem . . `/^[a-zA-Z]*:/d`.' $pcfile` |
| 25977 | |
| 25978 | # set projcflags and projlibs variables by running $pcfilemod |
| 25979 | # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default |
| 25980 | projcflags= |
| 25981 | projlibs= |
| 25982 | IFS="$save_IFS" |
| 25983 | eval `shscip-shell system . . sh. -c "$pcfilemod"` |
| 25984 | IFS=":" |
| 25985 | |
| 25986 | # add CYGPATH_W cludge into include flags and set CFLAGS variable |
| 25987 | if testscip-shell system . . test. "${CYGPATH_W}" != "echo"; then |
| 25988 | projcflags=`echoscip-shell system . . echo. "$projcflags" | sedscip-shell system . . sed. -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` |
| 25989 | fi |
| 25990 | VOL_CFLAGS_INSTALLED="$projcflags $VOL_CFLAGS_INSTALLED" |
| 25991 | |
| 25992 | # set LIBS variable |
| 25993 | VOL_LIBS_INSTALLED="$projlibs $VOL_LIBS_INSTALLED" |
| 25994 | |
| 25995 | # remember that we have processed $pcfile |
| 25996 | pcfilesprocessed="$pcfilesprocessed:$pcfile" |
| 25997 | |
| 25998 | done |
| 25999 | IFS="$save_IFS" |
| 26000 | |
| 26001 | |
| 26002 | # finish up |
| 26003 | coin_has_vol=yes |
| 26004 | echoscip-shell system . . echo. "$as_me:$LINENO: result: yes" >&5 |
| 26005 | echoscip-shell system . . echo. "${ECHO_T}yes" >&6 |
| 26006 | |
| 26007 | catscip-shell system . . cat. >>confdefs.h <<\_ACEOF |
| 26008 | #define COIN_HAS_VOL 1 |
| 26009 | _ACEOF |
| 26010 | |
| 26011 | |
| 26012 | # adjust linker flags for (i)cl compiler |
| 26013 | # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl), |
| 26014 | # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`", |
| 26015 | # everything of the form "-lname" by "libname.lib", and |
| 26016 | # everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path` |
| 26017 | if testscip-shell system . . test. x$coin_cxx_is_cl = xtrue || testscip-shell system . . test. x$coin_cc_is_cl = xtrue ; |
| 26018 | then |
| 26019 | VOL_LIBS=`echoscip-shell system . . echo. " $VOL_LIBS " | sedscip-shell system . . sed. -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'` |
| 26020 | VOL_LIBS_INSTALLED=`echoscip-shell system . . echo. " $VOL_LIBS_INSTALLED" | sedscip-shell system . . sed. -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'` |
| 26021 | fi |
| 26022 | |
| 26023 | VOL_PCREQUIRES="osi-vol" |
| 26024 | |
| 26025 | |
| 26026 | fi |
| 26027 | |
| 26028 | |
| 26029 | |
| 26030 | if testscip-shell system . . test. $coin_has_vol != notGiven && |
| 26031 | testscip-shell system . . test. $coin_has_vol != skipping; then |
| 26032 | COIN_HAS_VOL_TRUE= |
| 26033 | COIN_HAS_VOL_FALSE='#' |
| 26034 | else |
| 26035 | COIN_HAS_VOL_TRUE='#' |
| 26036 | COIN_HAS_VOL_FALSE= |
| 26037 | fi |
| 26038 | |
| 26039 | |
| 26040 | |
| 26041 | fi |
| 26042 | |
| 26043 | else |
| 26044 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $coin_has_vol" >&5 |
| 26045 | echoscip-shell system . . echo. "${ECHO_T}$coin_has_vol" >&6 |
| 26046 | fi |
| 26047 | |
| 26048 | if testscip-shell system . . test. $coin_has_vol != skipping && |
| 26049 | testscip-shell system . . test. $coin_has_vol != notGiven ; then |
| 26050 | |
| 26051 | catscip-shell system . . cat. >>confdefs.h <<\_ACEOF |
| 26052 | #define COIN_HAS_VOL 1 |
| 26053 | _ACEOF |
| 26054 | |
| 26055 | |
| 26056 | # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given. |
| 26057 | if testscip-shell system . . test. "${enable_interpackage_dependencies+set}" = set; then |
| 26058 | enableval="$enable_interpackage_dependencies" |
| 26059 | |
| 26060 | else |
| 26061 | enable_interpackage_dependencies=yes |
| 26062 | fi; |
| 26063 | |
| 26064 | if testscip-shell system . . test. $enable_interpackage_dependencies = yes ; then |
| 26065 | # construct dependencies variables from LIBS variables |
| 26066 | # we add an extra space in LIBS so we can substitute out everything starting with " -" |
| 26067 | # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows |
| 26068 | # then remove everything of the form -xxx |
| 26069 | # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl) |
| 26070 | VOL_DEPENDENCIES=`echoscip-shell system . . echo. " $VOL_LIBS" | sedscip-shell system . . sed. -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'` |
| 26071 | |
| 26072 | fi |
| 26073 | |
| 26074 | if testscip-shell system . . test. 1 = 0 ; then #change this test to enable a bit of debugging output |
| 26075 | if testscip-shell system . . test. -n "$VOL_CFLAGS" ; then |
| 26076 | { echoscip-shell system . . echo. "$as_me:$LINENO: Vol CFLAGS are $VOL_CFLAGS" >&5 |
| 26077 | echoscip-shell system . . echo. "$as_me: Vol CFLAGS are $VOL_CFLAGS" >&6;} |
| 26078 | fi |
| 26079 | if testscip-shell system . . test. -n "$VOL_LIBS" ; then |
| 26080 | { echoscip-shell system . . echo. "$as_me:$LINENO: Vol LIBS are $VOL_LIBS" >&5 |
| 26081 | echoscip-shell system . . echo. "$as_me: Vol LIBS are $VOL_LIBS" >&6;} |
| 26082 | fi |
| 26083 | if testscip-shell system . . test. -n "$VOL_DEPENDENCIES" ; then |
| 26084 | { echoscip-shell system . . echo. "$as_me:$LINENO: Vol DEPENDENCIES are $VOL_DEPENDENCIES" >&5 |
| 26085 | echoscip-shell system . . echo. "$as_me: Vol DEPENDENCIES are $VOL_DEPENDENCIES" >&6;} |
| 26086 | fi |
| 26087 | if testscip-shell system . . test. -n "$VOL_DATA" ; then |
| 26088 | { echoscip-shell system . . echo. "$as_me:$LINENO: Vol DATA is $VOL_DATA" >&5 |
| 26089 | echoscip-shell system . . echo. "$as_me: Vol DATA is $VOL_DATA" >&6;} |
| 26090 | fi |
| 26091 | if testscip-shell system . . test. -n "$VOL_PCLIBS" ; then |
| 26092 | { echoscip-shell system . . echo. "$as_me:$LINENO: Vol PCLIBS are $VOL_PCLIBS" >&5 |
| 26093 | echoscip-shell system . . echo. "$as_me: Vol PCLIBS are $VOL_PCLIBS" >&6;} |
| 26094 | fi |
| 26095 | if testscip-shell system . . test. -n "$VOL_PCREQUIRES" ; then |
| 26096 | { echoscip-shell system . . echo. "$as_me:$LINENO: Vol PCREQUIRES are $VOL_PCREQUIRES" >&5 |
| 26097 | echoscip-shell system . . echo. "$as_me: Vol PCREQUIRES are $VOL_PCREQUIRES" >&6;} |
| 26098 | fi |
| 26099 | |
| 26100 | fi |
| 26101 | fi |
| 26102 | |
| 26103 | # Define the Makefile conditional |
| 26104 | |
| 26105 | |
| 26106 | if testscip-shell system . . test. $coin_has_vol != notGiven && |
| 26107 | testscip-shell system . . test. $coin_has_vol != skipping; then |
| 26108 | COIN_HAS_VOL_TRUE= |
| 26109 | COIN_HAS_VOL_FALSE='#' |
| 26110 | else |
| 26111 | COIN_HAS_VOL_TRUE='#' |
| 26112 | COIN_HAS_VOL_FALSE= |
| 26113 | fi |
| 26114 | |
| 26115 | |
| 26116 | |
| 26117 | |
| 26118 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for COIN-OR package Cpx" >&5 |
| 26119 | echoscip-shell system . . echo. $ECHO_N "checking for COIN-OR package Cpx... $ECHO_C" >&6 |
| 26120 | |
| 26121 | coin_has_cpx=notGiven |
| 26122 | |
| 26123 | # check if user wants to skip package in any case |
| 26124 | if testscip-shell system . . test. x"$COIN_SKIP_PROJECTS" != x; then |
| 26125 | for dir in $COIN_SKIP_PROJECTS; do |
| 26126 | if testscip-shell system . . test. $dir = "Cpx"; then |
| 26127 | coin_has_cpx=skipping |
| 26128 | fi |
| 26129 | done |
| 26130 | fi |
| 26131 | |
| 26132 | if testscip-shell system . . test. "$coin_has_cpx" != skipping; then |
| 26133 | |
| 26134 | # Check whether --with-m4_tolower(Cpx) or --without-m4_tolower(Cpx) was given. |
| 26135 | if testscip-shell system . . test. "${with_cpx+set}" = set; then |
| 26136 | withval="$with_cpx" |
| 26137 | if testscip-shell system . . test. "$withval" = no ; then |
| 26138 | coin_has_cpx=skipping |
| 26139 | fi |
| 26140 | |
| 26141 | fi; |
| 26142 | fi |
| 26143 | |
| 26144 | CPX_LIBS= |
| 26145 | CPX_CFLAGS= |
| 26146 | CPX_DATA= |
| 26147 | CPX_DEPENDENCIES= |
| 26148 | CPX_PCLIBS= |
| 26149 | CPX_PCREQUIRES= |
| 26150 | |
| 26151 | |
| 26152 | |
| 26153 | |
| 26154 | |
| 26155 | |
| 26156 | |
| 26157 | |
| 26158 | |
| 26159 | |
| 26160 | |
| 26161 | |
| 26162 | |
| 26163 | |
| 26164 | |
| 26165 | |
| 26166 | |
| 26167 | |
| 26168 | |
| 26169 | |
| 26170 | |
| 26171 | |
| 26172 | |
| 26173 | |
| 26174 | |
| 26175 | #check if user provided LIBS, CFLAGS, or DATA for package or disables use of package |
| 26176 | if testscip-shell system . . test. $coin_has_cpx != skipping; then |
| 26177 | |
| 26178 | # Check whether --with-m4_tolower(Cpx)-lib or --without-m4_tolower(Cpx)-lib was given. |
| 26179 | if testscip-shell system . . test. "${with_cpx_lib+set}" = set; then |
| 26180 | withval="$with_cpx_lib" |
| 26181 | if testscip-shell system . . test. "$withval" = no ; then |
| 26182 | coin_has_cpx=skipping |
| 26183 | else |
| 26184 | coin_has_cpx=yes |
| 26185 | CPX_LIBS="$withval" |
| 26186 | CPX_PCLIBS="$withval" |
| 26187 | |
| 26188 | CBCLIB_PCLIBS="$withval $CBCLIB_PCLIBS" |
| 26189 | CBCLIB_LIBS="$withval $CBCLIB_LIBS" |
| 26190 | |
| 26191 | CBCGENERIC_PCLIBS="$withval $CBCGENERIC_PCLIBS" |
| 26192 | CBCGENERIC_LIBS="$withval $CBCGENERIC_LIBS" |
| 26193 | |
| 26194 | # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables |
| 26195 | if testscip-shell system . . test. -z "$PKG_CONFIG" ; then |
| 26196 | CPX_LIBS_INSTALLED="$withval" |
| 26197 | CBCLIB_LIBS_INSTALLED="$withval $CBCLIB_LIBS_INSTALLED"CBCGENERIC_LIBS_INSTALLED="$withval $CBCGENERIC_LIBS_INSTALLED" |
| 26198 | fi |
| 26199 | fi |
| 26200 | |
| 26201 | fi; |
| 26202 | fi |
| 26203 | |
| 26204 | if testscip-shell system . . test. $coin_has_cpx != skipping; then |
| 26205 | |
| 26206 | # Check whether --with-m4_tolower(Cpx)-incdir or --without-m4_tolower(Cpx)-incdir was given. |
| 26207 | if testscip-shell system . . test. "${with_cpx_incdir+set}" = set; then |
| 26208 | withval="$with_cpx_incdir" |
| 26209 | if testscip-shell system . . test. "$withval" = no ; then |
| 26210 | coin_has_cpx=skipping |
| 26211 | else |
| 26212 | coin_has_cpx=yes |
| 26213 | CPX_CFLAGS="-I`${CYGPATH_W} $withval`" |
| 26214 | CBCLIB_CFLAGS="-I`${CYGPATH_W} $withval` $CBCLIB_CFLAGS"CBCGENERIC_CFLAGS="-I`${CYGPATH_W} $withval` $CBCGENERIC_CFLAGS" |
| 26215 | # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables |
| 26216 | if testscip-shell system . . test. -z "$PKG_CONFIG" ; then |
| 26217 | CPX_CFLAGS_INSTALLED="$CPX_CFLAGS" |
| 26218 | CBCLIB_CFLAGS_INSTALLED="$CPX_CFLAGS $CBCLIB_CFLAGS_INSTALLED"CBCGENERIC_CFLAGS_INSTALLED="$CPX_CFLAGS $CBCGENERIC_CFLAGS_INSTALLED" |
| 26219 | fi |
| 26220 | fi |
| 26221 | |
| 26222 | fi; |
| 26223 | fi |
| 26224 | |
| 26225 | if testscip-shell system . . test. $coin_has_cpx != skipping; then |
| 26226 | |
| 26227 | # Check whether --with-m4_tolower(Cpx)-datadir or --without-m4_tolower(Cpx)-datadir was given. |
| 26228 | if testscip-shell system . . test. "${with_cpx_datadir+set}" = set; then |
| 26229 | withval="$with_cpx_datadir" |
| 26230 | if testscip-shell system . . test. "$withval" = no ; then |
| 26231 | coin_has_cpx=skipping |
| 26232 | else |
| 26233 | coin_has_cpx=yes |
| 26234 | CPX_DATA="$withval" |
| 26235 | # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables |
| 26236 | if testscip-shell system . . test. -z "$PKG_CONFIG" ; then |
| 26237 | CPX_DATA_INSTALLED="$withval" |
| 26238 | fi |
| 26239 | fi |
| 26240 | |
| 26241 | fi; |
| 26242 | fi |
| 26243 | |
| 26244 | if testscip-shell system . . test. $coin_has_cpx = notGiven; then |
| 26245 | if testscip-shell system . . test. -n "$PKG_CONFIG" ; then |
| 26246 | # set search path for pkg-config |
| 26247 | # need to export variable to be sure that the following pkg-config gets these values |
| 26248 | coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH" |
| 26249 | PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED" |
| 26250 | export PKG_CONFIG_PATH |
| 26251 | |
| 26252 | # let pkg-config do it's magic |
| 26253 | |
| 26254 | |
| 26255 | |
| 26256 | if testscip-shell system . . test. -n "$PKG_CONFIG" ; then |
| 26257 | if $PKG_CONFIG --exists "osi-cplex"; then |
| 26258 | CPX_VERSIONS=`$PKG_CONFIG --modversion "osi-cplex" 2>/dev/nullscip-shell filesystem . . `/dev/null`. | trscip-shell system . . tr. '\n' ' '` |
| 26259 | cflags=`$PKG_CONFIG --cflags "osi-cplex" 2>/dev/nullscip-shell filesystem . . `/dev/null`.` |
| 26260 | # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files |
| 26261 | # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's |
| 26262 | # but only do this if is not trivial |
| 26263 | if testscip-shell system . . test. "$CYGPATH_W" != "echo" ; then |
| 26264 | # need to put into brackets since otherwise autoconf replaces the brackets in the sed command |
| 26265 | cflags=`echoscip-shell system . . echo. $cflags | sedscip-shell system . . sed. -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` |
| 26266 | fi |
| 26267 | CPX_CFLAGS="$cflags" |
| 26268 | CPX_LIBS=`$PKG_CONFIG --libs "osi-cplex" 2>/dev/nullscip-shell filesystem . . `/dev/null`.` |
| 26269 | CPX_DATA=`$PKG_CONFIG --variable=datadir "osi-cplex" 2>/dev/nullscip-shell filesystem . . `/dev/null`.` |
| 26270 | coin_has_cpx=yes |
| 26271 | echoscip-shell system . . echo. "$as_me:$LINENO: result: yes: $CPX_VERSIONS" >&5 |
| 26272 | echoscip-shell system . . echo. "${ECHO_T}yes: $CPX_VERSIONS" >&6 |
| 26273 | |
| 26274 | # adjust linker flags for (i)cl compiler |
| 26275 | # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl) |
| 26276 | if testscip-shell system . . test. x$coin_cxx_is_cl = xtrue || testscip-shell system . . test. x$coin_cc_is_cl = xtrue ; |
| 26277 | then |
| 26278 | CPX_LIBS=`echoscip-shell system . . echo. " $CPX_LIBS " | sedscip-shell system . . sed. -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'` |
| 26279 | fi |
| 26280 | CPX_PCREQUIRES="osi-cplex" |
| 26281 | |
| 26282 | # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CbcLib CbcGeneric |
| 26283 | |
| 26284 | CBCLIB_PCREQUIRES="osi-cplex $CBCLIB_PCREQUIRES" |
| 26285 | CBCLIB_CFLAGS="$CPX_CFLAGS $CBCLIB_CFLAGS" |
| 26286 | CBCLIB_LIBS="$CPX_LIBS $CBCLIB_LIBS" |
| 26287 | |
| 26288 | CBCGENERIC_PCREQUIRES="osi-cplex $CBCGENERIC_PCREQUIRES" |
| 26289 | CBCGENERIC_CFLAGS="$CPX_CFLAGS $CBCGENERIC_CFLAGS" |
| 26290 | CBCGENERIC_LIBS="$CPX_LIBS $CBCGENERIC_LIBS" |
| 26291 | |
| 26292 | |
| 26293 | |
| 26294 | else |
| 26295 | CPX_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi-cplex"` |
| 26296 | coin_has_cpx=notGiven |
| 26297 | echoscip-shell system . . echo. "$as_me:$LINENO: result: not given: $CPX_PKG_ERRORS" >&5 |
| 26298 | echoscip-shell system . . echo. "${ECHO_T}not given: $CPX_PKG_ERRORS" >&6 |
| 26299 | |
| 26300 | fi |
| 26301 | else |
| 26302 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: \"Cannot check for existance of module Cpx without pkg-config\"" >&5 |
| 26303 | echoscip-shell system . . echo. "$as_me: error: \"Cannot check for existance of module Cpx without pkg-config\"" >&2;} |
| 26304 | { (exit 1); exit 1; }; } |
| 26305 | fi |
| 26306 | |
| 26307 | |
| 26308 | |
| 26309 | |
| 26310 | # reset PKG_CONFIG_PATH variable |
| 26311 | PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH" |
| 26312 | export PKG_CONFIG_PATH |
| 26313 | |
| 26314 | else |
| 26315 | echoscip-shell system . . echo. "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5 |
| 26316 | echoscip-shell system . . echo. "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6 |
| 26317 | |
| 26318 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for COIN-OR package Cpx (fallback)" >&5 |
| 26319 | echoscip-shell system . . echo. $ECHO_N "checking for COIN-OR package Cpx (fallback)... $ECHO_C" >&6 |
| 26320 | |
| 26321 | coin_has_cpx=notGiven |
| 26322 | CPX_LIBS= |
| 26323 | CPX_LIBS_INSTALLED= |
| 26324 | CPX_CFLAGS= |
| 26325 | CPX_CFLAGS_INSTALLED= |
| 26326 | CPX_DATA= |
| 26327 | CPX_DATA_INSTALLED= |
| 26328 | CPX_PCLIBS= |
| 26329 | CPX_PCREQUIRES= |
| 26330 | |
| 26331 | # initial list of dependencies is "osi-cplex", but we need to filter out version number specifications (= x, <= x, >= x, != x) |
| 26332 | projtoprocess="osi-cplex" |
| 26333 | |
| 26334 | # we first expand the list of projects to process by adding all dependencies just behind the project which depends on it |
| 26335 | # further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards |
| 26336 | # the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples |
| 26337 | # also, we setup the DATA variable |
| 26338 | allproj="" |
| 26339 | allpcfiles="" |
| 26340 | allpcifiles="" |
| 26341 | while testscip-shell system . . test. "x$projtoprocess" != x ; do |
| 26342 | |
| 26343 | for proj in $projtoprocess ; do |
| 26344 | # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it |
| 26345 | pcfile="" |
| 26346 | save_IFS="$IFS" |
| 26347 | IFS=":" |
| 26348 | for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do |
| 26349 | # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again |
| 26350 | if testscip-shell system . . test. -r "$dir/${proj}-uninstalled.pc" ; then |
| 26351 | pcfile="$dir/$proj-uninstalled.pc" |
| 26352 | if testscip-shell system . . test. -r "$dir/${proj}.pc" ; then |
| 26353 | pcifile="$dir/${proj}.pc" |
| 26354 | else |
| 26355 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5 |
| 26356 | echoscip-shell system . . echo. "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;} |
| 26357 | pcifile= |
| 26358 | fi |
| 26359 | break |
| 26360 | fi |
| 26361 | done |
| 26362 | IFS="$save_IFS" |
| 26363 | |
| 26364 | if testscip-shell system . . test. "x$pcfile" != x ; then |
| 26365 | # read dependencies from $pcfile and filter it |
| 26366 | projrequires=`sedscip-shell system . . sed. -n -e 's/Requires://gp' "$pcfile" | sedscip-shell system . . sed. -e 's/<\{0,1\}>\{0,1\}=[ ]\{0,\}[^ ]\{1,\}//g'` |
| 26367 | |
| 26368 | # add projrequires to the front of the list of projects that have to be processed next |
| 26369 | # at the same time, remove $proj from this list |
| 26370 | projtoprocess=`echoscip-shell system . . echo. $projtoprocess | sedscip-shell system . . sed. -e "s/$proj/$projrequires/"` |
| 26371 | |
| 26372 | # read DATA from $pcfile, if _DATA is still empty |
| 26373 | if testscip-shell system . . test. "x$CPX_DATA" = x ; then |
| 26374 | projdatadir= |
| 26375 | pcfilemod=`sedscip-shell system . . sed. -e '/[a-zA-Z]:/dscip-shell filesystem . . `/[a-zA-Z]:/d`.' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile` |
| 26376 | eval `shscip-shell system . . sh. -c "$pcfilemod"` |
| 26377 | CPX_DATA="$projdatadir" |
| 26378 | fi |
| 26379 | |
| 26380 | allproj="$allproj $proj" |
| 26381 | allpcfiles="$pcfile:$allpcfiles" |
| 26382 | |
| 26383 | else |
| 26384 | echoscip-shell system . . echo. "$as_me:$LINENO: result: no, dependency $proj not available" >&5 |
| 26385 | echoscip-shell system . . echo. "${ECHO_T}no, dependency $proj not available" >&6 |
| 26386 | allproj=fail |
| 26387 | break 2 |
| 26388 | fi |
| 26389 | |
| 26390 | if testscip-shell system . . test. "x$pcifile" != x ; then |
| 26391 | allpcifiles="$pcifile:$allpcifiles" |
| 26392 | |
| 26393 | # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty |
| 26394 | if testscip-shell system . . test. "x$CPX_DATA_INSTALLED" = x ; then |
| 26395 | projdatadir= |
| 26396 | pcifilemod=`sedscip-shell system . . sed. -e '/[a-zA-Z]:/dscip-shell filesystem . . `/[a-zA-Z]:/d`.' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile` |
| 26397 | eval `shscip-shell system . . sh. -c "$pcifilemod"` |
| 26398 | if testscip-shell system . . test. "${CYGPATH_W}" != "echo"; then |
| 26399 | projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`" |
| 26400 | fi |
| 26401 | CPX_DATA_INSTALLED="$projdatadir" |
| 26402 | fi |
| 26403 | |
| 26404 | fi |
| 26405 | |
| 26406 | break |
| 26407 | done |
| 26408 | |
| 26409 | # remove spaces on begin of $projtoprocess |
| 26410 | projtoprocess=`echoscip-shell system . . echo. $projtoprocess | sedscip-shell system . . sed. -e 's/^ *//'` |
| 26411 | |
| 26412 | done |
| 26413 | |
| 26414 | if testscip-shell system . . test. "$allproj" != fail ; then |
| 26415 | |
| 26416 | # now go through the list of .pc files and assemble compiler and linker flags |
| 26417 | # important is here to obey the reverse order that has been setup before, |
| 26418 | # since then libraries that are required by several others should be after these other libraries |
| 26419 | pcfilesprocessed="" |
| 26420 | |
| 26421 | save_IFS="$IFS" |
| 26422 | IFS=":" |
| 26423 | for pcfile in $allpcfiles ; do |
| 26424 | |
| 26425 | # if $pcfile has been processed already, skip this round |
| 26426 | if testscip-shell system . . test. "x$pcfilesprocessed" != x ; then |
| 26427 | for pcfiledone in $pcfilesprocessed ; do |
| 26428 | if testscip-shell system . . test. "$pcfiledone" = "$pcfile" ; then |
| 26429 | continue 2 |
| 26430 | fi |
| 26431 | done |
| 26432 | fi |
| 26433 | |
| 26434 | # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags: |
| 26435 | # replace "Libs:" by "echo projlibs=" |
| 26436 | # replace "Cflags:" by "echo projcflags=" |
| 26437 | # remove every line starting with <some word>: |
| 26438 | pcfilemod=`sedscip-shell system . . sed. -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/dscip-shell filesystem . . `/^[a-zA-Z]*:/d`.' $pcfile` |
| 26439 | |
| 26440 | # set projcflags and projlibs variables by running $pcfilemod |
| 26441 | # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default |
| 26442 | projcflags= |
| 26443 | projlibs= |
| 26444 | IFS="$save_IFS" |
| 26445 | eval `shscip-shell system . . sh. -c "$pcfilemod"` |
| 26446 | IFS=":" |
| 26447 | |
| 26448 | # add CYGPATH_W cludge into include flags and set CFLAGS variable |
| 26449 | if testscip-shell system . . test. "${CYGPATH_W}" != "echo"; then |
| 26450 | projcflags=`echoscip-shell system . . echo. "$projcflags" | sedscip-shell system . . sed. -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` |
| 26451 | fi |
| 26452 | CPX_CFLAGS="$projcflags $CPX_CFLAGS" |
| 26453 | |
| 26454 | # set LIBS variable |
| 26455 | CPX_LIBS="$projlibs $CPX_LIBS" |
| 26456 | |
| 26457 | # remember that we have processed $pcfile |
| 26458 | pcfilesprocessed="$pcfilesprocessed:$pcfile" |
| 26459 | |
| 26460 | done |
| 26461 | IFS="$save_IFS" |
| 26462 | |
| 26463 | |
| 26464 | # now go through the list of .pc files for installed projects and assemble compiler and linker flags |
| 26465 | # important is here again to obey the reverse order that has been setup before, |
| 26466 | # since then libraries that are required by several others should be after these other libraries |
| 26467 | pcfilesprocessed="" |
| 26468 | |
| 26469 | save_IFS="$IFS" |
| 26470 | IFS=":" |
| 26471 | for pcfile in $allpcifiles ; do |
| 26472 | |
| 26473 | # if $pcfile has been processed already, skip this round |
| 26474 | if testscip-shell system . . test. "x$pcfilesprocessed" != x ; then |
| 26475 | for pcfiledone in $pcfilesprocessed ; do |
| 26476 | if testscip-shell system . . test. "$pcfiledone" = "$pcfile" ; then |
| 26477 | continue 2 |
| 26478 | fi |
| 26479 | done |
| 26480 | fi |
| 26481 | |
| 26482 | # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags: |
| 26483 | # replace "Libs:" by "echo projlibs=" |
| 26484 | # replace "Cflags:" by "echo projcflags=" |
| 26485 | # remove every line starting with <some word>: |
| 26486 | pcfilemod=`sedscip-shell system . . sed. -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/dscip-shell filesystem . . `/^[a-zA-Z]*:/d`.' $pcfile` |
| 26487 | |
| 26488 | # set projcflags and projlibs variables by running $pcfilemod |
| 26489 | # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default |
| 26490 | projcflags= |
| 26491 | projlibs= |
| 26492 | IFS="$save_IFS" |
| 26493 | eval `shscip-shell system . . sh. -c "$pcfilemod"` |
| 26494 | IFS=":" |
| 26495 | |
| 26496 | # add CYGPATH_W cludge into include flags and set CFLAGS variable |
| 26497 | if testscip-shell system . . test. "${CYGPATH_W}" != "echo"; then |
| 26498 | projcflags=`echoscip-shell system . . echo. "$projcflags" | sedscip-shell system . . sed. -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` |
| 26499 | fi |
| 26500 | CPX_CFLAGS_INSTALLED="$projcflags $CPX_CFLAGS_INSTALLED" |
| 26501 | |
| 26502 | # set LIBS variable |
| 26503 | CPX_LIBS_INSTALLED="$projlibs $CPX_LIBS_INSTALLED" |
| 26504 | |
| 26505 | # remember that we have processed $pcfile |
| 26506 | pcfilesprocessed="$pcfilesprocessed:$pcfile" |
| 26507 | |
| 26508 | done |
| 26509 | IFS="$save_IFS" |
| 26510 | |
| 26511 | |
| 26512 | # finish up |
| 26513 | coin_has_cpx=yes |
| 26514 | echoscip-shell system . . echo. "$as_me:$LINENO: result: yes" >&5 |
| 26515 | echoscip-shell system . . echo. "${ECHO_T}yes" >&6 |
| 26516 | |
| 26517 | catscip-shell system . . cat. >>confdefs.h <<\_ACEOF |
| 26518 | #define COIN_HAS_CPX 1 |
| 26519 | _ACEOF |
| 26520 | |
| 26521 | |
| 26522 | # adjust linker flags for (i)cl compiler |
| 26523 | # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl), |
| 26524 | # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`", |
| 26525 | # everything of the form "-lname" by "libname.lib", and |
| 26526 | # everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path` |
| 26527 | if testscip-shell system . . test. x$coin_cxx_is_cl = xtrue || testscip-shell system . . test. x$coin_cc_is_cl = xtrue ; |
| 26528 | then |
| 26529 | CPX_LIBS=`echoscip-shell system . . echo. " $CPX_LIBS " | sedscip-shell system . . sed. -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'` |
| 26530 | CPX_LIBS_INSTALLED=`echoscip-shell system . . echo. " $CPX_LIBS_INSTALLED" | sedscip-shell system . . sed. -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'` |
| 26531 | fi |
| 26532 | |
| 26533 | CPX_PCREQUIRES="osi-cplex" |
| 26534 | |
| 26535 | CBCLIB_PCREQUIRES="osi-cplex $CBCLIB_PCREQUIRES" |
| 26536 | CBCLIB_CFLAGS="$CPX_CFLAGS $CBCLIB_CFLAGS" |
| 26537 | CBCLIB_LIBS="$CPX_LIBS $CBCLIB_LIBS" |
| 26538 | CBCLIB_CFLAGS_INSTALLED="$CPX_CFLAGS_INSTALLED $CBCLIB_CFLAGS_INSTALLED" |
| 26539 | CBCLIB_LIBS_INSTALLED="$CPX_LIBS_INSTALLED $CBCLIB_LIBS_INSTALLED" |
| 26540 | |
| 26541 | CBCGENERIC_PCREQUIRES="osi-cplex $CBCGENERIC_PCREQUIRES" |
| 26542 | CBCGENERIC_CFLAGS="$CPX_CFLAGS $CBCGENERIC_CFLAGS" |
| 26543 | CBCGENERIC_LIBS="$CPX_LIBS $CBCGENERIC_LIBS" |
| 26544 | CBCGENERIC_CFLAGS_INSTALLED="$CPX_CFLAGS_INSTALLED $CBCGENERIC_CFLAGS_INSTALLED" |
| 26545 | CBCGENERIC_LIBS_INSTALLED="$CPX_LIBS_INSTALLED $CBCGENERIC_LIBS_INSTALLED" |
| 26546 | |
| 26547 | |
| 26548 | fi |
| 26549 | |
| 26550 | |
| 26551 | |
| 26552 | if testscip-shell system . . test. $coin_has_cpx != notGiven && |
| 26553 | testscip-shell system . . test. $coin_has_cpx != skipping; then |
| 26554 | COIN_HAS_CPX_TRUE= |
| 26555 | COIN_HAS_CPX_FALSE='#' |
| 26556 | else |
| 26557 | COIN_HAS_CPX_TRUE='#' |
| 26558 | COIN_HAS_CPX_FALSE= |
| 26559 | fi |
| 26560 | |
| 26561 | |
| 26562 | |
| 26563 | fi |
| 26564 | |
| 26565 | else |
| 26566 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $coin_has_cpx" >&5 |
| 26567 | echoscip-shell system . . echo. "${ECHO_T}$coin_has_cpx" >&6 |
| 26568 | fi |
| 26569 | |
| 26570 | if testscip-shell system . . test. $coin_has_cpx != skipping && |
| 26571 | testscip-shell system . . test. $coin_has_cpx != notGiven ; then |
| 26572 | |
| 26573 | catscip-shell system . . cat. >>confdefs.h <<\_ACEOF |
| 26574 | #define COIN_HAS_CPX 1 |
| 26575 | _ACEOF |
| 26576 | |
| 26577 | |
| 26578 | # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given. |
| 26579 | if testscip-shell system . . test. "${enable_interpackage_dependencies+set}" = set; then |
| 26580 | enableval="$enable_interpackage_dependencies" |
| 26581 | |
| 26582 | else |
| 26583 | enable_interpackage_dependencies=yes |
| 26584 | fi; |
| 26585 | |
| 26586 | if testscip-shell system . . test. $enable_interpackage_dependencies = yes ; then |
| 26587 | # construct dependencies variables from LIBS variables |
| 26588 | # we add an extra space in LIBS so we can substitute out everything starting with " -" |
| 26589 | # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows |
| 26590 | # then remove everything of the form -xxx |
| 26591 | # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl) |
| 26592 | CPX_DEPENDENCIES=`echoscip-shell system . . echo. " $CPX_LIBS" | sedscip-shell system . . sed. -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'` |
| 26593 | |
| 26594 | CBCLIB_DEPENDENCIES=`echoscip-shell system . . echo. " $CBCLIB_LIBS " | sedscip-shell system . . sed. -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'` |
| 26595 | |
| 26596 | CBCGENERIC_DEPENDENCIES=`echoscip-shell system . . echo. " $CBCGENERIC_LIBS " | sedscip-shell system . . sed. -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'` |
| 26597 | |
| 26598 | fi |
| 26599 | |
| 26600 | if testscip-shell system . . test. 1 = 0 ; then #change this test to enable a bit of debugging output |
| 26601 | if testscip-shell system . . test. -n "$CPX_CFLAGS" ; then |
| 26602 | { echoscip-shell system . . echo. "$as_me:$LINENO: Cpx CFLAGS are $CPX_CFLAGS" >&5 |
| 26603 | echoscip-shell system . . echo. "$as_me: Cpx CFLAGS are $CPX_CFLAGS" >&6;} |
| 26604 | fi |
| 26605 | if testscip-shell system . . test. -n "$CPX_LIBS" ; then |
| 26606 | { echoscip-shell system . . echo. "$as_me:$LINENO: Cpx LIBS are $CPX_LIBS" >&5 |
| 26607 | echoscip-shell system . . echo. "$as_me: Cpx LIBS are $CPX_LIBS" >&6;} |
| 26608 | fi |
| 26609 | if testscip-shell system . . test. -n "$CPX_DEPENDENCIES" ; then |
| 26610 | { echoscip-shell system . . echo. "$as_me:$LINENO: Cpx DEPENDENCIES are $CPX_DEPENDENCIES" >&5 |
| 26611 | echoscip-shell system . . echo. "$as_me: Cpx DEPENDENCIES are $CPX_DEPENDENCIES" >&6;} |
| 26612 | fi |
| 26613 | if testscip-shell system . . test. -n "$CPX_DATA" ; then |
| 26614 | { echoscip-shell system . . echo. "$as_me:$LINENO: Cpx DATA is $CPX_DATA" >&5 |
| 26615 | echoscip-shell system . . echo. "$as_me: Cpx DATA is $CPX_DATA" >&6;} |
| 26616 | fi |
| 26617 | if testscip-shell system . . test. -n "$CPX_PCLIBS" ; then |
| 26618 | { echoscip-shell system . . echo. "$as_me:$LINENO: Cpx PCLIBS are $CPX_PCLIBS" >&5 |
| 26619 | echoscip-shell system . . echo. "$as_me: Cpx PCLIBS are $CPX_PCLIBS" >&6;} |
| 26620 | fi |
| 26621 | if testscip-shell system . . test. -n "$CPX_PCREQUIRES" ; then |
| 26622 | { echoscip-shell system . . echo. "$as_me:$LINENO: Cpx PCREQUIRES are $CPX_PCREQUIRES" >&5 |
| 26623 | echoscip-shell system . . echo. "$as_me: Cpx PCREQUIRES are $CPX_PCREQUIRES" >&6;} |
| 26624 | fi |
| 26625 | |
| 26626 | { echoscip-shell system . . echo. "$as_me:$LINENO: CbcLib CFLAGS are $CBCLIB_CFLAGS" >&5 |
| 26627 | echoscip-shell system . . echo. "$as_me: CbcLib CFLAGS are $CBCLIB_CFLAGS" >&6;} |
| 26628 | { echoscip-shell system . . echo. "$as_me:$LINENO: CbcLib LIBS are $CBCLIB_LIBS" >&5 |
| 26629 | echoscip-shell system . . echo. "$as_me: CbcLib LIBS are $CBCLIB_LIBS" >&6;} |
| 26630 | { echoscip-shell system . . echo. "$as_me:$LINENO: CbcLib DEPENDENCIES are $CBCLIB_DEPENDENCIES" >&5 |
| 26631 | echoscip-shell system . . echo. "$as_me: CbcLib DEPENDENCIES are $CBCLIB_DEPENDENCIES" >&6;} |
| 26632 | |
| 26633 | { echoscip-shell system . . echo. "$as_me:$LINENO: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&5 |
| 26634 | echoscip-shell system . . echo. "$as_me: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&6;} |
| 26635 | { echoscip-shell system . . echo. "$as_me:$LINENO: CbcGeneric LIBS are $CBCGENERIC_LIBS" >&5 |
| 26636 | echoscip-shell system . . echo. "$as_me: CbcGeneric LIBS are $CBCGENERIC_LIBS" >&6;} |
| 26637 | { echoscip-shell system . . echo. "$as_me:$LINENO: CbcGeneric DEPENDENCIES are $CBCGENERIC_DEPENDENCIES" >&5 |
| 26638 | echoscip-shell system . . echo. "$as_me: CbcGeneric DEPENDENCIES are $CBCGENERIC_DEPENDENCIES" >&6;} |
| 26639 | |
| 26640 | fi |
| 26641 | fi |
| 26642 | |
| 26643 | # Define the Makefile conditional |
| 26644 | |
| 26645 | |
| 26646 | if testscip-shell system . . test. $coin_has_cpx != notGiven && |
| 26647 | testscip-shell system . . test. $coin_has_cpx != skipping; then |
| 26648 | COIN_HAS_CPX_TRUE= |
| 26649 | COIN_HAS_CPX_FALSE='#' |
| 26650 | else |
| 26651 | COIN_HAS_CPX_TRUE='#' |
| 26652 | COIN_HAS_CPX_FALSE= |
| 26653 | fi |
| 26654 | |
| 26655 | |
| 26656 | |
| 26657 | |
| 26658 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for COIN-OR package Glpk" >&5 |
| 26659 | echoscip-shell system . . echo. $ECHO_N "checking for COIN-OR package Glpk... $ECHO_C" >&6 |
| 26660 | |
| 26661 | coin_has_glpk=notGiven |
| 26662 | |
| 26663 | # check if user wants to skip package in any case |
| 26664 | if testscip-shell system . . test. x"$COIN_SKIP_PROJECTS" != x; then |
| 26665 | for dir in $COIN_SKIP_PROJECTS; do |
| 26666 | if testscip-shell system . . test. $dir = "Glpk"; then |
| 26667 | coin_has_glpk=skipping |
| 26668 | fi |
| 26669 | done |
| 26670 | fi |
| 26671 | |
| 26672 | if testscip-shell system . . test. "$coin_has_glpk" != skipping; then |
| 26673 | |
| 26674 | # Check whether --with-m4_tolower(Glpk) or --without-m4_tolower(Glpk) was given. |
| 26675 | if testscip-shell system . . test. "${with_glpk+set}" = set; then |
| 26676 | withval="$with_glpk" |
| 26677 | if testscip-shell system . . test. "$withval" = no ; then |
| 26678 | coin_has_glpk=skipping |
| 26679 | fi |
| 26680 | |
| 26681 | fi; |
| 26682 | fi |
| 26683 | |
| 26684 | GLPK_LIBS= |
| 26685 | GLPK_CFLAGS= |
| 26686 | GLPK_DATA= |
| 26687 | GLPK_DEPENDENCIES= |
| 26688 | GLPK_PCLIBS= |
| 26689 | GLPK_PCREQUIRES= |
| 26690 | |
| 26691 | |
| 26692 | |
| 26693 | |
| 26694 | |
| 26695 | |
| 26696 | |
| 26697 | |
| 26698 | |
| 26699 | |
| 26700 | |
| 26701 | |
| 26702 | |
| 26703 | |
| 26704 | |
| 26705 | |
| 26706 | |
| 26707 | #check if user provided LIBS, CFLAGS, or DATA for package or disables use of package |
| 26708 | if testscip-shell system . . test. $coin_has_glpk != skipping; then |
| 26709 | |
| 26710 | # Check whether --with-m4_tolower(Glpk)-lib or --without-m4_tolower(Glpk)-lib was given. |
| 26711 | if testscip-shell system . . test. "${with_glpk_lib+set}" = set; then |
| 26712 | withval="$with_glpk_lib" |
| 26713 | if testscip-shell system . . test. "$withval" = no ; then |
| 26714 | coin_has_glpk=skipping |
| 26715 | else |
| 26716 | coin_has_glpk=yes |
| 26717 | GLPK_LIBS="$withval" |
| 26718 | GLPK_PCLIBS="$withval" |
| 26719 | |
| 26720 | CBCGENERIC_PCLIBS="$withval $CBCGENERIC_PCLIBS" |
| 26721 | CBCGENERIC_LIBS="$withval $CBCGENERIC_LIBS" |
| 26722 | |
| 26723 | # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables |
| 26724 | if testscip-shell system . . test. -z "$PKG_CONFIG" ; then |
| 26725 | GLPK_LIBS_INSTALLED="$withval" |
| 26726 | CBCGENERIC_LIBS_INSTALLED="$withval $CBCGENERIC_LIBS_INSTALLED" |
| 26727 | fi |
| 26728 | fi |
| 26729 | |
| 26730 | fi; |
| 26731 | fi |
| 26732 | |
| 26733 | if testscip-shell system . . test. $coin_has_glpk != skipping; then |
| 26734 | |
| 26735 | # Check whether --with-m4_tolower(Glpk)-incdir or --without-m4_tolower(Glpk)-incdir was given. |
| 26736 | if testscip-shell system . . test. "${with_glpk_incdir+set}" = set; then |
| 26737 | withval="$with_glpk_incdir" |
| 26738 | if testscip-shell system . . test. "$withval" = no ; then |
| 26739 | coin_has_glpk=skipping |
| 26740 | else |
| 26741 | coin_has_glpk=yes |
| 26742 | GLPK_CFLAGS="-I`${CYGPATH_W} $withval`" |
| 26743 | CBCGENERIC_CFLAGS="-I`${CYGPATH_W} $withval` $CBCGENERIC_CFLAGS" |
| 26744 | # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables |
| 26745 | if testscip-shell system . . test. -z "$PKG_CONFIG" ; then |
| 26746 | GLPK_CFLAGS_INSTALLED="$GLPK_CFLAGS" |
| 26747 | CBCGENERIC_CFLAGS_INSTALLED="$GLPK_CFLAGS $CBCGENERIC_CFLAGS_INSTALLED" |
| 26748 | fi |
| 26749 | fi |
| 26750 | |
| 26751 | fi; |
| 26752 | fi |
| 26753 | |
| 26754 | if testscip-shell system . . test. $coin_has_glpk != skipping; then |
| 26755 | |
| 26756 | # Check whether --with-m4_tolower(Glpk)-datadir or --without-m4_tolower(Glpk)-datadir was given. |
| 26757 | if testscip-shell system . . test. "${with_glpk_datadir+set}" = set; then |
| 26758 | withval="$with_glpk_datadir" |
| 26759 | if testscip-shell system . . test. "$withval" = no ; then |
| 26760 | coin_has_glpk=skipping |
| 26761 | else |
| 26762 | coin_has_glpk=yes |
| 26763 | GLPK_DATA="$withval" |
| 26764 | # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables |
| 26765 | if testscip-shell system . . test. -z "$PKG_CONFIG" ; then |
| 26766 | GLPK_DATA_INSTALLED="$withval" |
| 26767 | fi |
| 26768 | fi |
| 26769 | |
| 26770 | fi; |
| 26771 | fi |
| 26772 | |
| 26773 | if testscip-shell system . . test. $coin_has_glpk = notGiven; then |
| 26774 | if testscip-shell system . . test. -n "$PKG_CONFIG" ; then |
| 26775 | # set search path for pkg-config |
| 26776 | # need to export variable to be sure that the following pkg-config gets these values |
| 26777 | coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH" |
| 26778 | PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED" |
| 26779 | export PKG_CONFIG_PATH |
| 26780 | |
| 26781 | # let pkg-config do it's magic |
| 26782 | |
| 26783 | |
| 26784 | |
| 26785 | if testscip-shell system . . test. -n "$PKG_CONFIG" ; then |
| 26786 | if $PKG_CONFIG --exists "osi-glpk"; then |
| 26787 | GLPK_VERSIONS=`$PKG_CONFIG --modversion "osi-glpk" 2>/dev/nullscip-shell filesystem . . `/dev/null`. | trscip-shell system . . tr. '\n' ' '` |
| 26788 | cflags=`$PKG_CONFIG --cflags "osi-glpk" 2>/dev/nullscip-shell filesystem . . `/dev/null`.` |
| 26789 | # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files |
| 26790 | # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's |
| 26791 | # but only do this if is not trivial |
| 26792 | if testscip-shell system . . test. "$CYGPATH_W" != "echo" ; then |
| 26793 | # need to put into brackets since otherwise autoconf replaces the brackets in the sed command |
| 26794 | cflags=`echoscip-shell system . . echo. $cflags | sedscip-shell system . . sed. -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` |
| 26795 | fi |
| 26796 | GLPK_CFLAGS="$cflags" |
| 26797 | GLPK_LIBS=`$PKG_CONFIG --libs "osi-glpk" 2>/dev/nullscip-shell filesystem . . `/dev/null`.` |
| 26798 | GLPK_DATA=`$PKG_CONFIG --variable=datadir "osi-glpk" 2>/dev/nullscip-shell filesystem . . `/dev/null`.` |
| 26799 | coin_has_glpk=yes |
| 26800 | echoscip-shell system . . echo. "$as_me:$LINENO: result: yes: $GLPK_VERSIONS" >&5 |
| 26801 | echoscip-shell system . . echo. "${ECHO_T}yes: $GLPK_VERSIONS" >&6 |
| 26802 | |
| 26803 | # adjust linker flags for (i)cl compiler |
| 26804 | # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl) |
| 26805 | if testscip-shell system . . test. x$coin_cxx_is_cl = xtrue || testscip-shell system . . test. x$coin_cc_is_cl = xtrue ; |
| 26806 | then |
| 26807 | GLPK_LIBS=`echoscip-shell system . . echo. " $GLPK_LIBS " | sedscip-shell system . . sed. -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'` |
| 26808 | fi |
| 26809 | GLPK_PCREQUIRES="osi-glpk" |
| 26810 | |
| 26811 | # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CbcGeneric |
| 26812 | |
| 26813 | CBCGENERIC_PCREQUIRES="osi-glpk $CBCGENERIC_PCREQUIRES" |
| 26814 | CBCGENERIC_CFLAGS="$GLPK_CFLAGS $CBCGENERIC_CFLAGS" |
| 26815 | CBCGENERIC_LIBS="$GLPK_LIBS $CBCGENERIC_LIBS" |
| 26816 | |
| 26817 | |
| 26818 | |
| 26819 | else |
| 26820 | GLPK_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi-glpk"` |
| 26821 | coin_has_glpk=notGiven |
| 26822 | echoscip-shell system . . echo. "$as_me:$LINENO: result: not given: $GLPK_PKG_ERRORS" >&5 |
| 26823 | echoscip-shell system . . echo. "${ECHO_T}not given: $GLPK_PKG_ERRORS" >&6 |
| 26824 | |
| 26825 | fi |
| 26826 | else |
| 26827 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: \"Cannot check for existance of module Glpk without pkg-config\"" >&5 |
| 26828 | echoscip-shell system . . echo. "$as_me: error: \"Cannot check for existance of module Glpk without pkg-config\"" >&2;} |
| 26829 | { (exit 1); exit 1; }; } |
| 26830 | fi |
| 26831 | |
| 26832 | |
| 26833 | |
| 26834 | |
| 26835 | # reset PKG_CONFIG_PATH variable |
| 26836 | PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH" |
| 26837 | export PKG_CONFIG_PATH |
| 26838 | |
| 26839 | else |
| 26840 | echoscip-shell system . . echo. "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5 |
| 26841 | echoscip-shell system . . echo. "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6 |
| 26842 | |
| 26843 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for COIN-OR package Glpk (fallback)" >&5 |
| 26844 | echoscip-shell system . . echo. $ECHO_N "checking for COIN-OR package Glpk (fallback)... $ECHO_C" >&6 |
| 26845 | |
| 26846 | coin_has_glpk=notGiven |
| 26847 | GLPK_LIBS= |
| 26848 | GLPK_LIBS_INSTALLED= |
| 26849 | GLPK_CFLAGS= |
| 26850 | GLPK_CFLAGS_INSTALLED= |
| 26851 | GLPK_DATA= |
| 26852 | GLPK_DATA_INSTALLED= |
| 26853 | GLPK_PCLIBS= |
| 26854 | GLPK_PCREQUIRES= |
| 26855 | |
| 26856 | # initial list of dependencies is "osi-glpk", but we need to filter out version number specifications (= x, <= x, >= x, != x) |
| 26857 | projtoprocess="osi-glpk" |
| 26858 | |
| 26859 | # we first expand the list of projects to process by adding all dependencies just behind the project which depends on it |
| 26860 | # further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards |
| 26861 | # the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples |
| 26862 | # also, we setup the DATA variable |
| 26863 | allproj="" |
| 26864 | allpcfiles="" |
| 26865 | allpcifiles="" |
| 26866 | while testscip-shell system . . test. "x$projtoprocess" != x ; do |
| 26867 | |
| 26868 | for proj in $projtoprocess ; do |
| 26869 | # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it |
| 26870 | pcfile="" |
| 26871 | save_IFS="$IFS" |
| 26872 | IFS=":" |
| 26873 | for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do |
| 26874 | # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again |
| 26875 | if testscip-shell system . . test. -r "$dir/${proj}-uninstalled.pc" ; then |
| 26876 | pcfile="$dir/$proj-uninstalled.pc" |
| 26877 | if testscip-shell system . . test. -r "$dir/${proj}.pc" ; then |
| 26878 | pcifile="$dir/${proj}.pc" |
| 26879 | else |
| 26880 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5 |
| 26881 | echoscip-shell system . . echo. "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;} |
| 26882 | pcifile= |
| 26883 | fi |
| 26884 | break |
| 26885 | fi |
| 26886 | done |
| 26887 | IFS="$save_IFS" |
| 26888 | |
| 26889 | if testscip-shell system . . test. "x$pcfile" != x ; then |
| 26890 | # read dependencies from $pcfile and filter it |
| 26891 | projrequires=`sedscip-shell system . . sed. -n -e 's/Requires://gp' "$pcfile" | sedscip-shell system . . sed. -e 's/<\{0,1\}>\{0,1\}=[ ]\{0,\}[^ ]\{1,\}//g'` |
| 26892 | |
| 26893 | # add projrequires to the front of the list of projects that have to be processed next |
| 26894 | # at the same time, remove $proj from this list |
| 26895 | projtoprocess=`echoscip-shell system . . echo. $projtoprocess | sedscip-shell system . . sed. -e "s/$proj/$projrequires/"` |
| 26896 | |
| 26897 | # read DATA from $pcfile, if _DATA is still empty |
| 26898 | if testscip-shell system . . test. "x$GLPK_DATA" = x ; then |
| 26899 | projdatadir= |
| 26900 | pcfilemod=`sedscip-shell system . . sed. -e '/[a-zA-Z]:/dscip-shell filesystem . . `/[a-zA-Z]:/d`.' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile` |
| 26901 | eval `shscip-shell system . . sh. -c "$pcfilemod"` |
| 26902 | GLPK_DATA="$projdatadir" |
| 26903 | fi |
| 26904 | |
| 26905 | allproj="$allproj $proj" |
| 26906 | allpcfiles="$pcfile:$allpcfiles" |
| 26907 | |
| 26908 | else |
| 26909 | echoscip-shell system . . echo. "$as_me:$LINENO: result: no, dependency $proj not available" >&5 |
| 26910 | echoscip-shell system . . echo. "${ECHO_T}no, dependency $proj not available" >&6 |
| 26911 | allproj=fail |
| 26912 | break 2 |
| 26913 | fi |
| 26914 | |
| 26915 | if testscip-shell system . . test. "x$pcifile" != x ; then |
| 26916 | allpcifiles="$pcifile:$allpcifiles" |
| 26917 | |
| 26918 | # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty |
| 26919 | if testscip-shell system . . test. "x$GLPK_DATA_INSTALLED" = x ; then |
| 26920 | projdatadir= |
| 26921 | pcifilemod=`sedscip-shell system . . sed. -e '/[a-zA-Z]:/dscip-shell filesystem . . `/[a-zA-Z]:/d`.' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile` |
| 26922 | eval `shscip-shell system . . sh. -c "$pcifilemod"` |
| 26923 | if testscip-shell system . . test. "${CYGPATH_W}" != "echo"; then |
| 26924 | projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`" |
| 26925 | fi |
| 26926 | GLPK_DATA_INSTALLED="$projdatadir" |
| 26927 | fi |
| 26928 | |
| 26929 | fi |
| 26930 | |
| 26931 | break |
| 26932 | done |
| 26933 | |
| 26934 | # remove spaces on begin of $projtoprocess |
| 26935 | projtoprocess=`echoscip-shell system . . echo. $projtoprocess | sedscip-shell system . . sed. -e 's/^ *//'` |
| 26936 | |
| 26937 | done |
| 26938 | |
| 26939 | if testscip-shell system . . test. "$allproj" != fail ; then |
| 26940 | |
| 26941 | # now go through the list of .pc files and assemble compiler and linker flags |
| 26942 | # important is here to obey the reverse order that has been setup before, |
| 26943 | # since then libraries that are required by several others should be after these other libraries |
| 26944 | pcfilesprocessed="" |
| 26945 | |
| 26946 | save_IFS="$IFS" |
| 26947 | IFS=":" |
| 26948 | for pcfile in $allpcfiles ; do |
| 26949 | |
| 26950 | # if $pcfile has been processed already, skip this round |
| 26951 | if testscip-shell system . . test. "x$pcfilesprocessed" != x ; then |
| 26952 | for pcfiledone in $pcfilesprocessed ; do |
| 26953 | if testscip-shell system . . test. "$pcfiledone" = "$pcfile" ; then |
| 26954 | continue 2 |
| 26955 | fi |
| 26956 | done |
| 26957 | fi |
| 26958 | |
| 26959 | # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags: |
| 26960 | # replace "Libs:" by "echo projlibs=" |
| 26961 | # replace "Cflags:" by "echo projcflags=" |
| 26962 | # remove every line starting with <some word>: |
| 26963 | pcfilemod=`sedscip-shell system . . sed. -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/dscip-shell filesystem . . `/^[a-zA-Z]*:/d`.' $pcfile` |
| 26964 | |
| 26965 | # set projcflags and projlibs variables by running $pcfilemod |
| 26966 | # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default |
| 26967 | projcflags= |
| 26968 | projlibs= |
| 26969 | IFS="$save_IFS" |
| 26970 | eval `shscip-shell system . . sh. -c "$pcfilemod"` |
| 26971 | IFS=":" |
| 26972 | |
| 26973 | # add CYGPATH_W cludge into include flags and set CFLAGS variable |
| 26974 | if testscip-shell system . . test. "${CYGPATH_W}" != "echo"; then |
| 26975 | projcflags=`echoscip-shell system . . echo. "$projcflags" | sedscip-shell system . . sed. -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` |
| 26976 | fi |
| 26977 | GLPK_CFLAGS="$projcflags $GLPK_CFLAGS" |
| 26978 | |
| 26979 | # set LIBS variable |
| 26980 | GLPK_LIBS="$projlibs $GLPK_LIBS" |
| 26981 | |
| 26982 | # remember that we have processed $pcfile |
| 26983 | pcfilesprocessed="$pcfilesprocessed:$pcfile" |
| 26984 | |
| 26985 | done |
| 26986 | IFS="$save_IFS" |
| 26987 | |
| 26988 | |
| 26989 | # now go through the list of .pc files for installed projects and assemble compiler and linker flags |
| 26990 | # important is here again to obey the reverse order that has been setup before, |
| 26991 | # since then libraries that are required by several others should be after these other libraries |
| 26992 | pcfilesprocessed="" |
| 26993 | |
| 26994 | save_IFS="$IFS" |
| 26995 | IFS=":" |
| 26996 | for pcfile in $allpcifiles ; do |
| 26997 | |
| 26998 | # if $pcfile has been processed already, skip this round |
| 26999 | if testscip-shell system . . test. "x$pcfilesprocessed" != x ; then |
| 27000 | for pcfiledone in $pcfilesprocessed ; do |
| 27001 | if testscip-shell system . . test. "$pcfiledone" = "$pcfile" ; then |
| 27002 | continue 2 |
| 27003 | fi |
| 27004 | done |
| 27005 | fi |
| 27006 | |
| 27007 | # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags: |
| 27008 | # replace "Libs:" by "echo projlibs=" |
| 27009 | # replace "Cflags:" by "echo projcflags=" |
| 27010 | # remove every line starting with <some word>: |
| 27011 | pcfilemod=`sedscip-shell system . . sed. -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/dscip-shell filesystem . . `/^[a-zA-Z]*:/d`.' $pcfile` |
| 27012 | |
| 27013 | # set projcflags and projlibs variables by running $pcfilemod |
| 27014 | # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default |
| 27015 | projcflags= |
| 27016 | projlibs= |
| 27017 | IFS="$save_IFS" |
| 27018 | eval `shscip-shell system . . sh. -c "$pcfilemod"` |
| 27019 | IFS=":" |
| 27020 | |
| 27021 | # add CYGPATH_W cludge into include flags and set CFLAGS variable |
| 27022 | if testscip-shell system . . test. "${CYGPATH_W}" != "echo"; then |
| 27023 | projcflags=`echoscip-shell system . . echo. "$projcflags" | sedscip-shell system . . sed. -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` |
| 27024 | fi |
| 27025 | GLPK_CFLAGS_INSTALLED="$projcflags $GLPK_CFLAGS_INSTALLED" |
| 27026 | |
| 27027 | # set LIBS variable |
| 27028 | GLPK_LIBS_INSTALLED="$projlibs $GLPK_LIBS_INSTALLED" |
| 27029 | |
| 27030 | # remember that we have processed $pcfile |
| 27031 | pcfilesprocessed="$pcfilesprocessed:$pcfile" |
| 27032 | |
| 27033 | done |
| 27034 | IFS="$save_IFS" |
| 27035 | |
| 27036 | |
| 27037 | # finish up |
| 27038 | coin_has_glpk=yes |
| 27039 | echoscip-shell system . . echo. "$as_me:$LINENO: result: yes" >&5 |
| 27040 | echoscip-shell system . . echo. "${ECHO_T}yes" >&6 |
| 27041 | |
| 27042 | catscip-shell system . . cat. >>confdefs.h <<\_ACEOF |
| 27043 | #define COIN_HAS_GLPK 1 |
| 27044 | _ACEOF |
| 27045 | |
| 27046 | |
| 27047 | # adjust linker flags for (i)cl compiler |
| 27048 | # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl), |
| 27049 | # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`", |
| 27050 | # everything of the form "-lname" by "libname.lib", and |
| 27051 | # everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path` |
| 27052 | if testscip-shell system . . test. x$coin_cxx_is_cl = xtrue || testscip-shell system . . test. x$coin_cc_is_cl = xtrue ; |
| 27053 | then |
| 27054 | GLPK_LIBS=`echoscip-shell system . . echo. " $GLPK_LIBS " | sedscip-shell system . . sed. -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'` |
| 27055 | GLPK_LIBS_INSTALLED=`echoscip-shell system . . echo. " $GLPK_LIBS_INSTALLED" | sedscip-shell system . . sed. -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'` |
| 27056 | fi |
| 27057 | |
| 27058 | GLPK_PCREQUIRES="osi-glpk" |
| 27059 | |
| 27060 | CBCGENERIC_PCREQUIRES="osi-glpk $CBCGENERIC_PCREQUIRES" |
| 27061 | CBCGENERIC_CFLAGS="$GLPK_CFLAGS $CBCGENERIC_CFLAGS" |
| 27062 | CBCGENERIC_LIBS="$GLPK_LIBS $CBCGENERIC_LIBS" |
| 27063 | CBCGENERIC_CFLAGS_INSTALLED="$GLPK_CFLAGS_INSTALLED $CBCGENERIC_CFLAGS_INSTALLED" |
| 27064 | CBCGENERIC_LIBS_INSTALLED="$GLPK_LIBS_INSTALLED $CBCGENERIC_LIBS_INSTALLED" |
| 27065 | |
| 27066 | |
| 27067 | fi |
| 27068 | |
| 27069 | |
| 27070 | |
| 27071 | if testscip-shell system . . test. $coin_has_glpk != notGiven && |
| 27072 | testscip-shell system . . test. $coin_has_glpk != skipping; then |
| 27073 | COIN_HAS_GLPK_TRUE= |
| 27074 | COIN_HAS_GLPK_FALSE='#' |
| 27075 | else |
| 27076 | COIN_HAS_GLPK_TRUE='#' |
| 27077 | COIN_HAS_GLPK_FALSE= |
| 27078 | fi |
| 27079 | |
| 27080 | |
| 27081 | |
| 27082 | fi |
| 27083 | |
| 27084 | else |
| 27085 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $coin_has_glpk" >&5 |
| 27086 | echoscip-shell system . . echo. "${ECHO_T}$coin_has_glpk" >&6 |
| 27087 | fi |
| 27088 | |
| 27089 | if testscip-shell system . . test. $coin_has_glpk != skipping && |
| 27090 | testscip-shell system . . test. $coin_has_glpk != notGiven ; then |
| 27091 | |
| 27092 | catscip-shell system . . cat. >>confdefs.h <<\_ACEOF |
| 27093 | #define COIN_HAS_GLPK 1 |
| 27094 | _ACEOF |
| 27095 | |
| 27096 | |
| 27097 | # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given. |
| 27098 | if testscip-shell system . . test. "${enable_interpackage_dependencies+set}" = set; then |
| 27099 | enableval="$enable_interpackage_dependencies" |
| 27100 | |
| 27101 | else |
| 27102 | enable_interpackage_dependencies=yes |
| 27103 | fi; |
| 27104 | |
| 27105 | if testscip-shell system . . test. $enable_interpackage_dependencies = yes ; then |
| 27106 | # construct dependencies variables from LIBS variables |
| 27107 | # we add an extra space in LIBS so we can substitute out everything starting with " -" |
| 27108 | # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows |
| 27109 | # then remove everything of the form -xxx |
| 27110 | # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl) |
| 27111 | GLPK_DEPENDENCIES=`echoscip-shell system . . echo. " $GLPK_LIBS" | sedscip-shell system . . sed. -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'` |
| 27112 | |
| 27113 | CBCGENERIC_DEPENDENCIES=`echoscip-shell system . . echo. " $CBCGENERIC_LIBS " | sedscip-shell system . . sed. -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'` |
| 27114 | |
| 27115 | fi |
| 27116 | |
| 27117 | if testscip-shell system . . test. 1 = 0 ; then #change this test to enable a bit of debugging output |
| 27118 | if testscip-shell system . . test. -n "$GLPK_CFLAGS" ; then |
| 27119 | { echoscip-shell system . . echo. "$as_me:$LINENO: Glpk CFLAGS are $GLPK_CFLAGS" >&5 |
| 27120 | echoscip-shell system . . echo. "$as_me: Glpk CFLAGS are $GLPK_CFLAGS" >&6;} |
| 27121 | fi |
| 27122 | if testscip-shell system . . test. -n "$GLPK_LIBS" ; then |
| 27123 | { echoscip-shell system . . echo. "$as_me:$LINENO: Glpk LIBS are $GLPK_LIBS" >&5 |
| 27124 | echoscip-shell system . . echo. "$as_me: Glpk LIBS are $GLPK_LIBS" >&6;} |
| 27125 | fi |
| 27126 | if testscip-shell system . . test. -n "$GLPK_DEPENDENCIES" ; then |
| 27127 | { echoscip-shell system . . echo. "$as_me:$LINENO: Glpk DEPENDENCIES are $GLPK_DEPENDENCIES" >&5 |
| 27128 | echoscip-shell system . . echo. "$as_me: Glpk DEPENDENCIES are $GLPK_DEPENDENCIES" >&6;} |
| 27129 | fi |
| 27130 | if testscip-shell system . . test. -n "$GLPK_DATA" ; then |
| 27131 | { echoscip-shell system . . echo. "$as_me:$LINENO: Glpk DATA is $GLPK_DATA" >&5 |
| 27132 | echoscip-shell system . . echo. "$as_me: Glpk DATA is $GLPK_DATA" >&6;} |
| 27133 | fi |
| 27134 | if testscip-shell system . . test. -n "$GLPK_PCLIBS" ; then |
| 27135 | { echoscip-shell system . . echo. "$as_me:$LINENO: Glpk PCLIBS are $GLPK_PCLIBS" >&5 |
| 27136 | echoscip-shell system . . echo. "$as_me: Glpk PCLIBS are $GLPK_PCLIBS" >&6;} |
| 27137 | fi |
| 27138 | if testscip-shell system . . test. -n "$GLPK_PCREQUIRES" ; then |
| 27139 | { echoscip-shell system . . echo. "$as_me:$LINENO: Glpk PCREQUIRES are $GLPK_PCREQUIRES" >&5 |
| 27140 | echoscip-shell system . . echo. "$as_me: Glpk PCREQUIRES are $GLPK_PCREQUIRES" >&6;} |
| 27141 | fi |
| 27142 | |
| 27143 | { echoscip-shell system . . echo. "$as_me:$LINENO: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&5 |
| 27144 | echoscip-shell system . . echo. "$as_me: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&6;} |
| 27145 | { echoscip-shell system . . echo. "$as_me:$LINENO: CbcGeneric LIBS are $CBCGENERIC_LIBS" >&5 |
| 27146 | echoscip-shell system . . echo. "$as_me: CbcGeneric LIBS are $CBCGENERIC_LIBS" >&6;} |
| 27147 | { echoscip-shell system . . echo. "$as_me:$LINENO: CbcGeneric DEPENDENCIES are $CBCGENERIC_DEPENDENCIES" >&5 |
| 27148 | echoscip-shell system . . echo. "$as_me: CbcGeneric DEPENDENCIES are $CBCGENERIC_DEPENDENCIES" >&6;} |
| 27149 | |
| 27150 | fi |
| 27151 | fi |
| 27152 | |
| 27153 | # Define the Makefile conditional |
| 27154 | |
| 27155 | |
| 27156 | if testscip-shell system . . test. $coin_has_glpk != notGiven && |
| 27157 | testscip-shell system . . test. $coin_has_glpk != skipping; then |
| 27158 | COIN_HAS_GLPK_TRUE= |
| 27159 | COIN_HAS_GLPK_FALSE='#' |
| 27160 | else |
| 27161 | COIN_HAS_GLPK_TRUE='#' |
| 27162 | COIN_HAS_GLPK_FALSE= |
| 27163 | fi |
| 27164 | |
| 27165 | |
| 27166 | |
| 27167 | |
| 27168 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for COIN-OR package Grb" >&5 |
| 27169 | echoscip-shell system . . echo. $ECHO_N "checking for COIN-OR package Grb... $ECHO_C" >&6 |
| 27170 | |
| 27171 | coin_has_grb=notGiven |
| 27172 | |
| 27173 | # check if user wants to skip package in any case |
| 27174 | if testscip-shell system . . test. x"$COIN_SKIP_PROJECTS" != x; then |
| 27175 | for dir in $COIN_SKIP_PROJECTS; do |
| 27176 | if testscip-shell system . . test. $dir = "Grb"; then |
| 27177 | coin_has_grb=skipping |
| 27178 | fi |
| 27179 | done |
| 27180 | fi |
| 27181 | |
| 27182 | if testscip-shell system . . test. "$coin_has_grb" != skipping; then |
| 27183 | |
| 27184 | # Check whether --with-m4_tolower(Grb) or --without-m4_tolower(Grb) was given. |
| 27185 | if testscip-shell system . . test. "${with_grb+set}" = set; then |
| 27186 | withval="$with_grb" |
| 27187 | if testscip-shell system . . test. "$withval" = no ; then |
| 27188 | coin_has_grb=skipping |
| 27189 | fi |
| 27190 | |
| 27191 | fi; |
| 27192 | fi |
| 27193 | |
| 27194 | GRB_LIBS= |
| 27195 | GRB_CFLAGS= |
| 27196 | GRB_DATA= |
| 27197 | GRB_DEPENDENCIES= |
| 27198 | GRB_PCLIBS= |
| 27199 | GRB_PCREQUIRES= |
| 27200 | |
| 27201 | |
| 27202 | |
| 27203 | |
| 27204 | |
| 27205 | |
| 27206 | |
| 27207 | |
| 27208 | |
| 27209 | #check if user provided LIBS, CFLAGS, or DATA for package or disables use of package |
| 27210 | if testscip-shell system . . test. $coin_has_grb != skipping; then |
| 27211 | |
| 27212 | # Check whether --with-m4_tolower(Grb)-lib or --without-m4_tolower(Grb)-lib was given. |
| 27213 | if testscip-shell system . . test. "${with_grb_lib+set}" = set; then |
| 27214 | withval="$with_grb_lib" |
| 27215 | if testscip-shell system . . test. "$withval" = no ; then |
| 27216 | coin_has_grb=skipping |
| 27217 | else |
| 27218 | coin_has_grb=yes |
| 27219 | GRB_LIBS="$withval" |
| 27220 | GRB_PCLIBS="$withval" |
| 27221 | |
| 27222 | # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables |
| 27223 | if testscip-shell system . . test. -z "$PKG_CONFIG" ; then |
| 27224 | GRB_LIBS_INSTALLED="$withval" |
| 27225 | |
| 27226 | fi |
| 27227 | fi |
| 27228 | |
| 27229 | fi; |
| 27230 | fi |
| 27231 | |
| 27232 | if testscip-shell system . . test. $coin_has_grb != skipping; then |
| 27233 | |
| 27234 | # Check whether --with-m4_tolower(Grb)-incdir or --without-m4_tolower(Grb)-incdir was given. |
| 27235 | if testscip-shell system . . test. "${with_grb_incdir+set}" = set; then |
| 27236 | withval="$with_grb_incdir" |
| 27237 | if testscip-shell system . . test. "$withval" = no ; then |
| 27238 | coin_has_grb=skipping |
| 27239 | else |
| 27240 | coin_has_grb=yes |
| 27241 | GRB_CFLAGS="-I`${CYGPATH_W} $withval`" |
| 27242 | |
| 27243 | # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables |
| 27244 | if testscip-shell system . . test. -z "$PKG_CONFIG" ; then |
| 27245 | GRB_CFLAGS_INSTALLED="$GRB_CFLAGS" |
| 27246 | |
| 27247 | fi |
| 27248 | fi |
| 27249 | |
| 27250 | fi; |
| 27251 | fi |
| 27252 | |
| 27253 | if testscip-shell system . . test. $coin_has_grb != skipping; then |
| 27254 | |
| 27255 | # Check whether --with-m4_tolower(Grb)-datadir or --without-m4_tolower(Grb)-datadir was given. |
| 27256 | if testscip-shell system . . test. "${with_grb_datadir+set}" = set; then |
| 27257 | withval="$with_grb_datadir" |
| 27258 | if testscip-shell system . . test. "$withval" = no ; then |
| 27259 | coin_has_grb=skipping |
| 27260 | else |
| 27261 | coin_has_grb=yes |
| 27262 | GRB_DATA="$withval" |
| 27263 | # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables |
| 27264 | if testscip-shell system . . test. -z "$PKG_CONFIG" ; then |
| 27265 | GRB_DATA_INSTALLED="$withval" |
| 27266 | fi |
| 27267 | fi |
| 27268 | |
| 27269 | fi; |
| 27270 | fi |
| 27271 | |
| 27272 | if testscip-shell system . . test. $coin_has_grb = notGiven; then |
| 27273 | if testscip-shell system . . test. -n "$PKG_CONFIG" ; then |
| 27274 | # set search path for pkg-config |
| 27275 | # need to export variable to be sure that the following pkg-config gets these values |
| 27276 | coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH" |
| 27277 | PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED" |
| 27278 | export PKG_CONFIG_PATH |
| 27279 | |
| 27280 | # let pkg-config do it's magic |
| 27281 | |
| 27282 | |
| 27283 | |
| 27284 | if testscip-shell system . . test. -n "$PKG_CONFIG" ; then |
| 27285 | if $PKG_CONFIG --exists "osi-gurobi"; then |
| 27286 | GRB_VERSIONS=`$PKG_CONFIG --modversion "osi-gurobi" 2>/dev/nullscip-shell filesystem . . `/dev/null`. | trscip-shell system . . tr. '\n' ' '` |
| 27287 | cflags=`$PKG_CONFIG --cflags "osi-gurobi" 2>/dev/nullscip-shell filesystem . . `/dev/null`.` |
| 27288 | # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files |
| 27289 | # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's |
| 27290 | # but only do this if is not trivial |
| 27291 | if testscip-shell system . . test. "$CYGPATH_W" != "echo" ; then |
| 27292 | # need to put into brackets since otherwise autoconf replaces the brackets in the sed command |
| 27293 | cflags=`echoscip-shell system . . echo. $cflags | sedscip-shell system . . sed. -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` |
| 27294 | fi |
| 27295 | GRB_CFLAGS="$cflags" |
| 27296 | GRB_LIBS=`$PKG_CONFIG --libs "osi-gurobi" 2>/dev/nullscip-shell filesystem . . `/dev/null`.` |
| 27297 | GRB_DATA=`$PKG_CONFIG --variable=datadir "osi-gurobi" 2>/dev/nullscip-shell filesystem . . `/dev/null`.` |
| 27298 | coin_has_grb=yes |
| 27299 | echoscip-shell system . . echo. "$as_me:$LINENO: result: yes: $GRB_VERSIONS" >&5 |
| 27300 | echoscip-shell system . . echo. "${ECHO_T}yes: $GRB_VERSIONS" >&6 |
| 27301 | |
| 27302 | # adjust linker flags for (i)cl compiler |
| 27303 | # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl) |
| 27304 | if testscip-shell system . . test. x$coin_cxx_is_cl = xtrue || testscip-shell system . . test. x$coin_cc_is_cl = xtrue ; |
| 27305 | then |
| 27306 | GRB_LIBS=`echoscip-shell system . . echo. " $GRB_LIBS " | sedscip-shell system . . sed. -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'` |
| 27307 | fi |
| 27308 | GRB_PCREQUIRES="osi-gurobi" |
| 27309 | |
| 27310 | # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in |
| 27311 | |
| 27312 | |
| 27313 | |
| 27314 | else |
| 27315 | GRB_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi-gurobi"` |
| 27316 | coin_has_grb=notGiven |
| 27317 | echoscip-shell system . . echo. "$as_me:$LINENO: result: not given: $GRB_PKG_ERRORS" >&5 |
| 27318 | echoscip-shell system . . echo. "${ECHO_T}not given: $GRB_PKG_ERRORS" >&6 |
| 27319 | |
| 27320 | fi |
| 27321 | else |
| 27322 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: \"Cannot check for existance of module Grb without pkg-config\"" >&5 |
| 27323 | echoscip-shell system . . echo. "$as_me: error: \"Cannot check for existance of module Grb without pkg-config\"" >&2;} |
| 27324 | { (exit 1); exit 1; }; } |
| 27325 | fi |
| 27326 | |
| 27327 | |
| 27328 | |
| 27329 | |
| 27330 | # reset PKG_CONFIG_PATH variable |
| 27331 | PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH" |
| 27332 | export PKG_CONFIG_PATH |
| 27333 | |
| 27334 | else |
| 27335 | echoscip-shell system . . echo. "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5 |
| 27336 | echoscip-shell system . . echo. "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6 |
| 27337 | |
| 27338 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for COIN-OR package Grb (fallback)" >&5 |
| 27339 | echoscip-shell system . . echo. $ECHO_N "checking for COIN-OR package Grb (fallback)... $ECHO_C" >&6 |
| 27340 | |
| 27341 | coin_has_grb=notGiven |
| 27342 | GRB_LIBS= |
| 27343 | GRB_LIBS_INSTALLED= |
| 27344 | GRB_CFLAGS= |
| 27345 | GRB_CFLAGS_INSTALLED= |
| 27346 | GRB_DATA= |
| 27347 | GRB_DATA_INSTALLED= |
| 27348 | GRB_PCLIBS= |
| 27349 | GRB_PCREQUIRES= |
| 27350 | |
| 27351 | # initial list of dependencies is "osi-gurobi", but we need to filter out version number specifications (= x, <= x, >= x, != x) |
| 27352 | projtoprocess="osi-gurobi" |
| 27353 | |
| 27354 | # we first expand the list of projects to process by adding all dependencies just behind the project which depends on it |
| 27355 | # further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards |
| 27356 | # the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples |
| 27357 | # also, we setup the DATA variable |
| 27358 | allproj="" |
| 27359 | allpcfiles="" |
| 27360 | allpcifiles="" |
| 27361 | while testscip-shell system . . test. "x$projtoprocess" != x ; do |
| 27362 | |
| 27363 | for proj in $projtoprocess ; do |
| 27364 | # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it |
| 27365 | pcfile="" |
| 27366 | save_IFS="$IFS" |
| 27367 | IFS=":" |
| 27368 | for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do |
| 27369 | # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again |
| 27370 | if testscip-shell system . . test. -r "$dir/${proj}-uninstalled.pc" ; then |
| 27371 | pcfile="$dir/$proj-uninstalled.pc" |
| 27372 | if testscip-shell system . . test. -r "$dir/${proj}.pc" ; then |
| 27373 | pcifile="$dir/${proj}.pc" |
| 27374 | else |
| 27375 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5 |
| 27376 | echoscip-shell system . . echo. "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;} |
| 27377 | pcifile= |
| 27378 | fi |
| 27379 | break |
| 27380 | fi |
| 27381 | done |
| 27382 | IFS="$save_IFS" |
| 27383 | |
| 27384 | if testscip-shell system . . test. "x$pcfile" != x ; then |
| 27385 | # read dependencies from $pcfile and filter it |
| 27386 | projrequires=`sedscip-shell system . . sed. -n -e 's/Requires://gp' "$pcfile" | sedscip-shell system . . sed. -e 's/<\{0,1\}>\{0,1\}=[ ]\{0,\}[^ ]\{1,\}//g'` |
| 27387 | |
| 27388 | # add projrequires to the front of the list of projects that have to be processed next |
| 27389 | # at the same time, remove $proj from this list |
| 27390 | projtoprocess=`echoscip-shell system . . echo. $projtoprocess | sedscip-shell system . . sed. -e "s/$proj/$projrequires/"` |
| 27391 | |
| 27392 | # read DATA from $pcfile, if _DATA is still empty |
| 27393 | if testscip-shell system . . test. "x$GRB_DATA" = x ; then |
| 27394 | projdatadir= |
| 27395 | pcfilemod=`sedscip-shell system . . sed. -e '/[a-zA-Z]:/dscip-shell filesystem . . `/[a-zA-Z]:/d`.' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile` |
| 27396 | eval `shscip-shell system . . sh. -c "$pcfilemod"` |
| 27397 | GRB_DATA="$projdatadir" |
| 27398 | fi |
| 27399 | |
| 27400 | allproj="$allproj $proj" |
| 27401 | allpcfiles="$pcfile:$allpcfiles" |
| 27402 | |
| 27403 | else |
| 27404 | echoscip-shell system . . echo. "$as_me:$LINENO: result: no, dependency $proj not available" >&5 |
| 27405 | echoscip-shell system . . echo. "${ECHO_T}no, dependency $proj not available" >&6 |
| 27406 | allproj=fail |
| 27407 | break 2 |
| 27408 | fi |
| 27409 | |
| 27410 | if testscip-shell system . . test. "x$pcifile" != x ; then |
| 27411 | allpcifiles="$pcifile:$allpcifiles" |
| 27412 | |
| 27413 | # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty |
| 27414 | if testscip-shell system . . test. "x$GRB_DATA_INSTALLED" = x ; then |
| 27415 | projdatadir= |
| 27416 | pcifilemod=`sedscip-shell system . . sed. -e '/[a-zA-Z]:/dscip-shell filesystem . . `/[a-zA-Z]:/d`.' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile` |
| 27417 | eval `shscip-shell system . . sh. -c "$pcifilemod"` |
| 27418 | if testscip-shell system . . test. "${CYGPATH_W}" != "echo"; then |
| 27419 | projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`" |
| 27420 | fi |
| 27421 | GRB_DATA_INSTALLED="$projdatadir" |
| 27422 | fi |
| 27423 | |
| 27424 | fi |
| 27425 | |
| 27426 | break |
| 27427 | done |
| 27428 | |
| 27429 | # remove spaces on begin of $projtoprocess |
| 27430 | projtoprocess=`echoscip-shell system . . echo. $projtoprocess | sedscip-shell system . . sed. -e 's/^ *//'` |
| 27431 | |
| 27432 | done |
| 27433 | |
| 27434 | if testscip-shell system . . test. "$allproj" != fail ; then |
| 27435 | |
| 27436 | # now go through the list of .pc files and assemble compiler and linker flags |
| 27437 | # important is here to obey the reverse order that has been setup before, |
| 27438 | # since then libraries that are required by several others should be after these other libraries |
| 27439 | pcfilesprocessed="" |
| 27440 | |
| 27441 | save_IFS="$IFS" |
| 27442 | IFS=":" |
| 27443 | for pcfile in $allpcfiles ; do |
| 27444 | |
| 27445 | # if $pcfile has been processed already, skip this round |
| 27446 | if testscip-shell system . . test. "x$pcfilesprocessed" != x ; then |
| 27447 | for pcfiledone in $pcfilesprocessed ; do |
| 27448 | if testscip-shell system . . test. "$pcfiledone" = "$pcfile" ; then |
| 27449 | continue 2 |
| 27450 | fi |
| 27451 | done |
| 27452 | fi |
| 27453 | |
| 27454 | # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags: |
| 27455 | # replace "Libs:" by "echo projlibs=" |
| 27456 | # replace "Cflags:" by "echo projcflags=" |
| 27457 | # remove every line starting with <some word>: |
| 27458 | pcfilemod=`sedscip-shell system . . sed. -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/dscip-shell filesystem . . `/^[a-zA-Z]*:/d`.' $pcfile` |
| 27459 | |
| 27460 | # set projcflags and projlibs variables by running $pcfilemod |
| 27461 | # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default |
| 27462 | projcflags= |
| 27463 | projlibs= |
| 27464 | IFS="$save_IFS" |
| 27465 | eval `shscip-shell system . . sh. -c "$pcfilemod"` |
| 27466 | IFS=":" |
| 27467 | |
| 27468 | # add CYGPATH_W cludge into include flags and set CFLAGS variable |
| 27469 | if testscip-shell system . . test. "${CYGPATH_W}" != "echo"; then |
| 27470 | projcflags=`echoscip-shell system . . echo. "$projcflags" | sedscip-shell system . . sed. -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` |
| 27471 | fi |
| 27472 | GRB_CFLAGS="$projcflags $GRB_CFLAGS" |
| 27473 | |
| 27474 | # set LIBS variable |
| 27475 | GRB_LIBS="$projlibs $GRB_LIBS" |
| 27476 | |
| 27477 | # remember that we have processed $pcfile |
| 27478 | pcfilesprocessed="$pcfilesprocessed:$pcfile" |
| 27479 | |
| 27480 | done |
| 27481 | IFS="$save_IFS" |
| 27482 | |
| 27483 | |
| 27484 | # now go through the list of .pc files for installed projects and assemble compiler and linker flags |
| 27485 | # important is here again to obey the reverse order that has been setup before, |
| 27486 | # since then libraries that are required by several others should be after these other libraries |
| 27487 | pcfilesprocessed="" |
| 27488 | |
| 27489 | save_IFS="$IFS" |
| 27490 | IFS=":" |
| 27491 | for pcfile in $allpcifiles ; do |
| 27492 | |
| 27493 | # if $pcfile has been processed already, skip this round |
| 27494 | if testscip-shell system . . test. "x$pcfilesprocessed" != x ; then |
| 27495 | for pcfiledone in $pcfilesprocessed ; do |
| 27496 | if testscip-shell system . . test. "$pcfiledone" = "$pcfile" ; then |
| 27497 | continue 2 |
| 27498 | fi |
| 27499 | done |
| 27500 | fi |
| 27501 | |
| 27502 | # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags: |
| 27503 | # replace "Libs:" by "echo projlibs=" |
| 27504 | # replace "Cflags:" by "echo projcflags=" |
| 27505 | # remove every line starting with <some word>: |
| 27506 | pcfilemod=`sedscip-shell system . . sed. -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/dscip-shell filesystem . . `/^[a-zA-Z]*:/d`.' $pcfile` |
| 27507 | |
| 27508 | # set projcflags and projlibs variables by running $pcfilemod |
| 27509 | # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default |
| 27510 | projcflags= |
| 27511 | projlibs= |
| 27512 | IFS="$save_IFS" |
| 27513 | eval `shscip-shell system . . sh. -c "$pcfilemod"` |
| 27514 | IFS=":" |
| 27515 | |
| 27516 | # add CYGPATH_W cludge into include flags and set CFLAGS variable |
| 27517 | if testscip-shell system . . test. "${CYGPATH_W}" != "echo"; then |
| 27518 | projcflags=`echoscip-shell system . . echo. "$projcflags" | sedscip-shell system . . sed. -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` |
| 27519 | fi |
| 27520 | GRB_CFLAGS_INSTALLED="$projcflags $GRB_CFLAGS_INSTALLED" |
| 27521 | |
| 27522 | # set LIBS variable |
| 27523 | GRB_LIBS_INSTALLED="$projlibs $GRB_LIBS_INSTALLED" |
| 27524 | |
| 27525 | # remember that we have processed $pcfile |
| 27526 | pcfilesprocessed="$pcfilesprocessed:$pcfile" |
| 27527 | |
| 27528 | done |
| 27529 | IFS="$save_IFS" |
| 27530 | |
| 27531 | |
| 27532 | # finish up |
| 27533 | coin_has_grb=yes |
| 27534 | echoscip-shell system . . echo. "$as_me:$LINENO: result: yes" >&5 |
| 27535 | echoscip-shell system . . echo. "${ECHO_T}yes" >&6 |
| 27536 | |
| 27537 | catscip-shell system . . cat. >>confdefs.h <<\_ACEOF |
| 27538 | #define COIN_HAS_GRB 1 |
| 27539 | _ACEOF |
| 27540 | |
| 27541 | |
| 27542 | # adjust linker flags for (i)cl compiler |
| 27543 | # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl), |
| 27544 | # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`", |
| 27545 | # everything of the form "-lname" by "libname.lib", and |
| 27546 | # everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path` |
| 27547 | if testscip-shell system . . test. x$coin_cxx_is_cl = xtrue || testscip-shell system . . test. x$coin_cc_is_cl = xtrue ; |
| 27548 | then |
| 27549 | GRB_LIBS=`echoscip-shell system . . echo. " $GRB_LIBS " | sedscip-shell system . . sed. -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'` |
| 27550 | GRB_LIBS_INSTALLED=`echoscip-shell system . . echo. " $GRB_LIBS_INSTALLED" | sedscip-shell system . . sed. -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'` |
| 27551 | fi |
| 27552 | |
| 27553 | GRB_PCREQUIRES="osi-gurobi" |
| 27554 | |
| 27555 | |
| 27556 | fi |
| 27557 | |
| 27558 | |
| 27559 | |
| 27560 | if testscip-shell system . . test. $coin_has_grb != notGiven && |
| 27561 | testscip-shell system . . test. $coin_has_grb != skipping; then |
| 27562 | COIN_HAS_GRB_TRUE= |
| 27563 | COIN_HAS_GRB_FALSE='#' |
| 27564 | else |
| 27565 | COIN_HAS_GRB_TRUE='#' |
| 27566 | COIN_HAS_GRB_FALSE= |
| 27567 | fi |
| 27568 | |
| 27569 | |
| 27570 | |
| 27571 | fi |
| 27572 | |
| 27573 | else |
| 27574 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $coin_has_grb" >&5 |
| 27575 | echoscip-shell system . . echo. "${ECHO_T}$coin_has_grb" >&6 |
| 27576 | fi |
| 27577 | |
| 27578 | if testscip-shell system . . test. $coin_has_grb != skipping && |
| 27579 | testscip-shell system . . test. $coin_has_grb != notGiven ; then |
| 27580 | |
| 27581 | catscip-shell system . . cat. >>confdefs.h <<\_ACEOF |
| 27582 | #define COIN_HAS_GRB 1 |
| 27583 | _ACEOF |
| 27584 | |
| 27585 | |
| 27586 | # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given. |
| 27587 | if testscip-shell system . . test. "${enable_interpackage_dependencies+set}" = set; then |
| 27588 | enableval="$enable_interpackage_dependencies" |
| 27589 | |
| 27590 | else |
| 27591 | enable_interpackage_dependencies=yes |
| 27592 | fi; |
| 27593 | |
| 27594 | if testscip-shell system . . test. $enable_interpackage_dependencies = yes ; then |
| 27595 | # construct dependencies variables from LIBS variables |
| 27596 | # we add an extra space in LIBS so we can substitute out everything starting with " -" |
| 27597 | # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows |
| 27598 | # then remove everything of the form -xxx |
| 27599 | # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl) |
| 27600 | GRB_DEPENDENCIES=`echoscip-shell system . . echo. " $GRB_LIBS" | sedscip-shell system . . sed. -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'` |
| 27601 | |
| 27602 | fi |
| 27603 | |
| 27604 | if testscip-shell system . . test. 1 = 0 ; then #change this test to enable a bit of debugging output |
| 27605 | if testscip-shell system . . test. -n "$GRB_CFLAGS" ; then |
| 27606 | { echoscip-shell system . . echo. "$as_me:$LINENO: Grb CFLAGS are $GRB_CFLAGS" >&5 |
| 27607 | echoscip-shell system . . echo. "$as_me: Grb CFLAGS are $GRB_CFLAGS" >&6;} |
| 27608 | fi |
| 27609 | if testscip-shell system . . test. -n "$GRB_LIBS" ; then |
| 27610 | { echoscip-shell system . . echo. "$as_me:$LINENO: Grb LIBS are $GRB_LIBS" >&5 |
| 27611 | echoscip-shell system . . echo. "$as_me: Grb LIBS are $GRB_LIBS" >&6;} |
| 27612 | fi |
| 27613 | if testscip-shell system . . test. -n "$GRB_DEPENDENCIES" ; then |
| 27614 | { echoscip-shell system . . echo. "$as_me:$LINENO: Grb DEPENDENCIES are $GRB_DEPENDENCIES" >&5 |
| 27615 | echoscip-shell system . . echo. "$as_me: Grb DEPENDENCIES are $GRB_DEPENDENCIES" >&6;} |
| 27616 | fi |
| 27617 | if testscip-shell system . . test. -n "$GRB_DATA" ; then |
| 27618 | { echoscip-shell system . . echo. "$as_me:$LINENO: Grb DATA is $GRB_DATA" >&5 |
| 27619 | echoscip-shell system . . echo. "$as_me: Grb DATA is $GRB_DATA" >&6;} |
| 27620 | fi |
| 27621 | if testscip-shell system . . test. -n "$GRB_PCLIBS" ; then |
| 27622 | { echoscip-shell system . . echo. "$as_me:$LINENO: Grb PCLIBS are $GRB_PCLIBS" >&5 |
| 27623 | echoscip-shell system . . echo. "$as_me: Grb PCLIBS are $GRB_PCLIBS" >&6;} |
| 27624 | fi |
| 27625 | if testscip-shell system . . test. -n "$GRB_PCREQUIRES" ; then |
| 27626 | { echoscip-shell system . . echo. "$as_me:$LINENO: Grb PCREQUIRES are $GRB_PCREQUIRES" >&5 |
| 27627 | echoscip-shell system . . echo. "$as_me: Grb PCREQUIRES are $GRB_PCREQUIRES" >&6;} |
| 27628 | fi |
| 27629 | |
| 27630 | fi |
| 27631 | fi |
| 27632 | |
| 27633 | # Define the Makefile conditional |
| 27634 | |
| 27635 | |
| 27636 | if testscip-shell system . . test. $coin_has_grb != notGiven && |
| 27637 | testscip-shell system . . test. $coin_has_grb != skipping; then |
| 27638 | COIN_HAS_GRB_TRUE= |
| 27639 | COIN_HAS_GRB_FALSE='#' |
| 27640 | else |
| 27641 | COIN_HAS_GRB_TRUE='#' |
| 27642 | COIN_HAS_GRB_FALSE= |
| 27643 | fi |
| 27644 | |
| 27645 | |
| 27646 | |
| 27647 | |
| 27648 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for COIN-OR package Highs" >&5 |
| 27649 | echoscip-shell system . . echo. $ECHO_N "checking for COIN-OR package Highs... $ECHO_C" >&6 |
| 27650 | |
| 27651 | coin_has_highs=notGiven |
| 27652 | |
| 27653 | # check if user wants to skip package in any case |
| 27654 | if testscip-shell system . . test. x"$COIN_SKIP_PROJECTS" != x; then |
| 27655 | for dir in $COIN_SKIP_PROJECTS; do |
| 27656 | if testscip-shell system . . test. $dir = "Highs"; then |
| 27657 | coin_has_highs=skipping |
| 27658 | fi |
| 27659 | done |
| 27660 | fi |
| 27661 | |
| 27662 | if testscip-shell system . . test. "$coin_has_highs" != skipping; then |
| 27663 | |
| 27664 | # Check whether --with-m4_tolower(Highs) or --without-m4_tolower(Highs) was given. |
| 27665 | if testscip-shell system . . test. "${with_highs+set}" = set; then |
| 27666 | withval="$with_highs" |
| 27667 | if testscip-shell system . . test. "$withval" = no ; then |
| 27668 | coin_has_highs=skipping |
| 27669 | fi |
| 27670 | |
| 27671 | fi; |
| 27672 | fi |
| 27673 | |
| 27674 | HIGHS_LIBS= |
| 27675 | HIGHS_CFLAGS= |
| 27676 | HIGHS_DATA= |
| 27677 | HIGHS_DEPENDENCIES= |
| 27678 | HIGHS_PCLIBS= |
| 27679 | HIGHS_PCREQUIRES= |
| 27680 | |
| 27681 | |
| 27682 | |
| 27683 | |
| 27684 | |
| 27685 | |
| 27686 | |
| 27687 | |
| 27688 | |
| 27689 | |
| 27690 | |
| 27691 | |
| 27692 | |
| 27693 | |
| 27694 | |
| 27695 | |
| 27696 | |
| 27697 | #check if user provided LIBS, CFLAGS, or DATA for package or disables use of package |
| 27698 | if testscip-shell system . . test. $coin_has_highs != skipping; then |
| 27699 | |
| 27700 | # Check whether --with-m4_tolower(Highs)-lib or --without-m4_tolower(Highs)-lib was given. |
| 27701 | if testscip-shell system . . test. "${with_highs_lib+set}" = set; then |
| 27702 | withval="$with_highs_lib" |
| 27703 | if testscip-shell system . . test. "$withval" = no ; then |
| 27704 | coin_has_highs=skipping |
| 27705 | else |
| 27706 | coin_has_highs=yes |
| 27707 | HIGHS_LIBS="$withval" |
| 27708 | HIGHS_PCLIBS="$withval" |
| 27709 | |
| 27710 | CBCGENERIC_PCLIBS="$withval $CBCGENERIC_PCLIBS" |
| 27711 | CBCGENERIC_LIBS="$withval $CBCGENERIC_LIBS" |
| 27712 | |
| 27713 | # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables |
| 27714 | if testscip-shell system . . test. -z "$PKG_CONFIG" ; then |
| 27715 | HIGHS_LIBS_INSTALLED="$withval" |
| 27716 | CBCGENERIC_LIBS_INSTALLED="$withval $CBCGENERIC_LIBS_INSTALLED" |
| 27717 | fi |
| 27718 | fi |
| 27719 | |
| 27720 | fi; |
| 27721 | fi |
| 27722 | |
| 27723 | if testscip-shell system . . test. $coin_has_highs != skipping; then |
| 27724 | |
| 27725 | # Check whether --with-m4_tolower(Highs)-incdir or --without-m4_tolower(Highs)-incdir was given. |
| 27726 | if testscip-shell system . . test. "${with_highs_incdir+set}" = set; then |
| 27727 | withval="$with_highs_incdir" |
| 27728 | if testscip-shell system . . test. "$withval" = no ; then |
| 27729 | coin_has_highs=skipping |
| 27730 | else |
| 27731 | coin_has_highs=yes |
| 27732 | HIGHS_CFLAGS="-I`${CYGPATH_W} $withval`" |
| 27733 | CBCGENERIC_CFLAGS="-I`${CYGPATH_W} $withval` $CBCGENERIC_CFLAGS" |
| 27734 | # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables |
| 27735 | if testscip-shell system . . test. -z "$PKG_CONFIG" ; then |
| 27736 | HIGHS_CFLAGS_INSTALLED="$HIGHS_CFLAGS" |
| 27737 | CBCGENERIC_CFLAGS_INSTALLED="$HIGHS_CFLAGS $CBCGENERIC_CFLAGS_INSTALLED" |
| 27738 | fi |
| 27739 | fi |
| 27740 | |
| 27741 | fi; |
| 27742 | fi |
| 27743 | |
| 27744 | if testscip-shell system . . test. $coin_has_highs != skipping; then |
| 27745 | |
| 27746 | # Check whether --with-m4_tolower(Highs)-datadir or --without-m4_tolower(Highs)-datadir was given. |
| 27747 | if testscip-shell system . . test. "${with_highs_datadir+set}" = set; then |
| 27748 | withval="$with_highs_datadir" |
| 27749 | if testscip-shell system . . test. "$withval" = no ; then |
| 27750 | coin_has_highs=skipping |
| 27751 | else |
| 27752 | coin_has_highs=yes |
| 27753 | HIGHS_DATA="$withval" |
| 27754 | # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables |
| 27755 | if testscip-shell system . . test. -z "$PKG_CONFIG" ; then |
| 27756 | HIGHS_DATA_INSTALLED="$withval" |
| 27757 | fi |
| 27758 | fi |
| 27759 | |
| 27760 | fi; |
| 27761 | fi |
| 27762 | |
| 27763 | if testscip-shell system . . test. $coin_has_highs = notGiven; then |
| 27764 | if testscip-shell system . . test. -n "$PKG_CONFIG" ; then |
| 27765 | # set search path for pkg-config |
| 27766 | # need to export variable to be sure that the following pkg-config gets these values |
| 27767 | coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH" |
| 27768 | PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED" |
| 27769 | export PKG_CONFIG_PATH |
| 27770 | |
| 27771 | # let pkg-config do it's magic |
| 27772 | |
| 27773 | |
| 27774 | |
| 27775 | if testscip-shell system . . test. -n "$PKG_CONFIG" ; then |
| 27776 | if $PKG_CONFIG --exists "osi-highs"; then |
| 27777 | HIGHS_VERSIONS=`$PKG_CONFIG --modversion "osi-highs" 2>/dev/nullscip-shell filesystem . . `/dev/null`. | trscip-shell system . . tr. '\n' ' '` |
| 27778 | cflags=`$PKG_CONFIG --cflags "osi-highs" 2>/dev/nullscip-shell filesystem . . `/dev/null`.` |
| 27779 | # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files |
| 27780 | # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's |
| 27781 | # but only do this if is not trivial |
| 27782 | if testscip-shell system . . test. "$CYGPATH_W" != "echo" ; then |
| 27783 | # need to put into brackets since otherwise autoconf replaces the brackets in the sed command |
| 27784 | cflags=`echoscip-shell system . . echo. $cflags | sedscip-shell system . . sed. -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` |
| 27785 | fi |
| 27786 | HIGHS_CFLAGS="$cflags" |
| 27787 | HIGHS_LIBS=`$PKG_CONFIG --libs "osi-highs" 2>/dev/nullscip-shell filesystem . . `/dev/null`.` |
| 27788 | HIGHS_DATA=`$PKG_CONFIG --variable=datadir "osi-highs" 2>/dev/nullscip-shell filesystem . . `/dev/null`.` |
| 27789 | coin_has_highs=yes |
| 27790 | echoscip-shell system . . echo. "$as_me:$LINENO: result: yes: $HIGHS_VERSIONS" >&5 |
| 27791 | echoscip-shell system . . echo. "${ECHO_T}yes: $HIGHS_VERSIONS" >&6 |
| 27792 | |
| 27793 | # adjust linker flags for (i)cl compiler |
| 27794 | # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl) |
| 27795 | if testscip-shell system . . test. x$coin_cxx_is_cl = xtrue || testscip-shell system . . test. x$coin_cc_is_cl = xtrue ; |
| 27796 | then |
| 27797 | HIGHS_LIBS=`echoscip-shell system . . echo. " $HIGHS_LIBS " | sedscip-shell system . . sed. -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'` |
| 27798 | fi |
| 27799 | HIGHS_PCREQUIRES="osi-highs" |
| 27800 | |
| 27801 | # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CbcGeneric |
| 27802 | |
| 27803 | CBCGENERIC_PCREQUIRES="osi-highs $CBCGENERIC_PCREQUIRES" |
| 27804 | CBCGENERIC_CFLAGS="$HIGHS_CFLAGS $CBCGENERIC_CFLAGS" |
| 27805 | CBCGENERIC_LIBS="$HIGHS_LIBS $CBCGENERIC_LIBS" |
| 27806 | |
| 27807 | |
| 27808 | |
| 27809 | else |
| 27810 | HIGHS_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi-highs"` |
| 27811 | coin_has_highs=notGiven |
| 27812 | echoscip-shell system . . echo. "$as_me:$LINENO: result: not given: $HIGHS_PKG_ERRORS" >&5 |
| 27813 | echoscip-shell system . . echo. "${ECHO_T}not given: $HIGHS_PKG_ERRORS" >&6 |
| 27814 | |
| 27815 | fi |
| 27816 | else |
| 27817 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: \"Cannot check for existance of module Highs without pkg-config\"" >&5 |
| 27818 | echoscip-shell system . . echo. "$as_me: error: \"Cannot check for existance of module Highs without pkg-config\"" >&2;} |
| 27819 | { (exit 1); exit 1; }; } |
| 27820 | fi |
| 27821 | |
| 27822 | |
| 27823 | |
| 27824 | |
| 27825 | # reset PKG_CONFIG_PATH variable |
| 27826 | PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH" |
| 27827 | export PKG_CONFIG_PATH |
| 27828 | |
| 27829 | else |
| 27830 | echoscip-shell system . . echo. "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5 |
| 27831 | echoscip-shell system . . echo. "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6 |
| 27832 | |
| 27833 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for COIN-OR package Highs (fallback)" >&5 |
| 27834 | echoscip-shell system . . echo. $ECHO_N "checking for COIN-OR package Highs (fallback)... $ECHO_C" >&6 |
| 27835 | |
| 27836 | coin_has_highs=notGiven |
| 27837 | HIGHS_LIBS= |
| 27838 | HIGHS_LIBS_INSTALLED= |
| 27839 | HIGHS_CFLAGS= |
| 27840 | HIGHS_CFLAGS_INSTALLED= |
| 27841 | HIGHS_DATA= |
| 27842 | HIGHS_DATA_INSTALLED= |
| 27843 | HIGHS_PCLIBS= |
| 27844 | HIGHS_PCREQUIRES= |
| 27845 | |
| 27846 | # initial list of dependencies is "osi-highs", but we need to filter out version number specifications (= x, <= x, >= x, != x) |
| 27847 | projtoprocess="osi-highs" |
| 27848 | |
| 27849 | # we first expand the list of projects to process by adding all dependencies just behind the project which depends on it |
| 27850 | # further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards |
| 27851 | # the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples |
| 27852 | # also, we setup the DATA variable |
| 27853 | allproj="" |
| 27854 | allpcfiles="" |
| 27855 | allpcifiles="" |
| 27856 | while testscip-shell system . . test. "x$projtoprocess" != x ; do |
| 27857 | |
| 27858 | for proj in $projtoprocess ; do |
| 27859 | # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it |
| 27860 | pcfile="" |
| 27861 | save_IFS="$IFS" |
| 27862 | IFS=":" |
| 27863 | for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do |
| 27864 | # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again |
| 27865 | if testscip-shell system . . test. -r "$dir/${proj}-uninstalled.pc" ; then |
| 27866 | pcfile="$dir/$proj-uninstalled.pc" |
| 27867 | if testscip-shell system . . test. -r "$dir/${proj}.pc" ; then |
| 27868 | pcifile="$dir/${proj}.pc" |
| 27869 | else |
| 27870 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5 |
| 27871 | echoscip-shell system . . echo. "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;} |
| 27872 | pcifile= |
| 27873 | fi |
| 27874 | break |
| 27875 | fi |
| 27876 | done |
| 27877 | IFS="$save_IFS" |
| 27878 | |
| 27879 | if testscip-shell system . . test. "x$pcfile" != x ; then |
| 27880 | # read dependencies from $pcfile and filter it |
| 27881 | projrequires=`sedscip-shell system . . sed. -n -e 's/Requires://gp' "$pcfile" | sedscip-shell system . . sed. -e 's/<\{0,1\}>\{0,1\}=[ ]\{0,\}[^ ]\{1,\}//g'` |
| 27882 | |
| 27883 | # add projrequires to the front of the list of projects that have to be processed next |
| 27884 | # at the same time, remove $proj from this list |
| 27885 | projtoprocess=`echoscip-shell system . . echo. $projtoprocess | sedscip-shell system . . sed. -e "s/$proj/$projrequires/"` |
| 27886 | |
| 27887 | # read DATA from $pcfile, if _DATA is still empty |
| 27888 | if testscip-shell system . . test. "x$HIGHS_DATA" = x ; then |
| 27889 | projdatadir= |
| 27890 | pcfilemod=`sedscip-shell system . . sed. -e '/[a-zA-Z]:/dscip-shell filesystem . . `/[a-zA-Z]:/d`.' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile` |
| 27891 | eval `shscip-shell system . . sh. -c "$pcfilemod"` |
| 27892 | HIGHS_DATA="$projdatadir" |
| 27893 | fi |
| 27894 | |
| 27895 | allproj="$allproj $proj" |
| 27896 | allpcfiles="$pcfile:$allpcfiles" |
| 27897 | |
| 27898 | else |
| 27899 | echoscip-shell system . . echo. "$as_me:$LINENO: result: no, dependency $proj not available" >&5 |
| 27900 | echoscip-shell system . . echo. "${ECHO_T}no, dependency $proj not available" >&6 |
| 27901 | allproj=fail |
| 27902 | break 2 |
| 27903 | fi |
| 27904 | |
| 27905 | if testscip-shell system . . test. "x$pcifile" != x ; then |
| 27906 | allpcifiles="$pcifile:$allpcifiles" |
| 27907 | |
| 27908 | # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty |
| 27909 | if testscip-shell system . . test. "x$HIGHS_DATA_INSTALLED" = x ; then |
| 27910 | projdatadir= |
| 27911 | pcifilemod=`sedscip-shell system . . sed. -e '/[a-zA-Z]:/dscip-shell filesystem . . `/[a-zA-Z]:/d`.' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile` |
| 27912 | eval `shscip-shell system . . sh. -c "$pcifilemod"` |
| 27913 | if testscip-shell system . . test. "${CYGPATH_W}" != "echo"; then |
| 27914 | projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`" |
| 27915 | fi |
| 27916 | HIGHS_DATA_INSTALLED="$projdatadir" |
| 27917 | fi |
| 27918 | |
| 27919 | fi |
| 27920 | |
| 27921 | break |
| 27922 | done |
| 27923 | |
| 27924 | # remove spaces on begin of $projtoprocess |
| 27925 | projtoprocess=`echoscip-shell system . . echo. $projtoprocess | sedscip-shell system . . sed. -e 's/^ *//'` |
| 27926 | |
| 27927 | done |
| 27928 | |
| 27929 | if testscip-shell system . . test. "$allproj" != fail ; then |
| 27930 | |
| 27931 | # now go through the list of .pc files and assemble compiler and linker flags |
| 27932 | # important is here to obey the reverse order that has been setup before, |
| 27933 | # since then libraries that are required by several others should be after these other libraries |
| 27934 | pcfilesprocessed="" |
| 27935 | |
| 27936 | save_IFS="$IFS" |
| 27937 | IFS=":" |
| 27938 | for pcfile in $allpcfiles ; do |
| 27939 | |
| 27940 | # if $pcfile has been processed already, skip this round |
| 27941 | if testscip-shell system . . test. "x$pcfilesprocessed" != x ; then |
| 27942 | for pcfiledone in $pcfilesprocessed ; do |
| 27943 | if testscip-shell system . . test. "$pcfiledone" = "$pcfile" ; then |
| 27944 | continue 2 |
| 27945 | fi |
| 27946 | done |
| 27947 | fi |
| 27948 | |
| 27949 | # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags: |
| 27950 | # replace "Libs:" by "echo projlibs=" |
| 27951 | # replace "Cflags:" by "echo projcflags=" |
| 27952 | # remove every line starting with <some word>: |
| 27953 | pcfilemod=`sedscip-shell system . . sed. -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/dscip-shell filesystem . . `/^[a-zA-Z]*:/d`.' $pcfile` |
| 27954 | |
| 27955 | # set projcflags and projlibs variables by running $pcfilemod |
| 27956 | # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default |
| 27957 | projcflags= |
| 27958 | projlibs= |
| 27959 | IFS="$save_IFS" |
| 27960 | eval `shscip-shell system . . sh. -c "$pcfilemod"` |
| 27961 | IFS=":" |
| 27962 | |
| 27963 | # add CYGPATH_W cludge into include flags and set CFLAGS variable |
| 27964 | if testscip-shell system . . test. "${CYGPATH_W}" != "echo"; then |
| 27965 | projcflags=`echoscip-shell system . . echo. "$projcflags" | sedscip-shell system . . sed. -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` |
| 27966 | fi |
| 27967 | HIGHS_CFLAGS="$projcflags $HIGHS_CFLAGS" |
| 27968 | |
| 27969 | # set LIBS variable |
| 27970 | HIGHS_LIBS="$projlibs $HIGHS_LIBS" |
| 27971 | |
| 27972 | # remember that we have processed $pcfile |
| 27973 | pcfilesprocessed="$pcfilesprocessed:$pcfile" |
| 27974 | |
| 27975 | done |
| 27976 | IFS="$save_IFS" |
| 27977 | |
| 27978 | |
| 27979 | # now go through the list of .pc files for installed projects and assemble compiler and linker flags |
| 27980 | # important is here again to obey the reverse order that has been setup before, |
| 27981 | # since then libraries that are required by several others should be after these other libraries |
| 27982 | pcfilesprocessed="" |
| 27983 | |
| 27984 | save_IFS="$IFS" |
| 27985 | IFS=":" |
| 27986 | for pcfile in $allpcifiles ; do |
| 27987 | |
| 27988 | # if $pcfile has been processed already, skip this round |
| 27989 | if testscip-shell system . . test. "x$pcfilesprocessed" != x ; then |
| 27990 | for pcfiledone in $pcfilesprocessed ; do |
| 27991 | if testscip-shell system . . test. "$pcfiledone" = "$pcfile" ; then |
| 27992 | continue 2 |
| 27993 | fi |
| 27994 | done |
| 27995 | fi |
| 27996 | |
| 27997 | # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags: |
| 27998 | # replace "Libs:" by "echo projlibs=" |
| 27999 | # replace "Cflags:" by "echo projcflags=" |
| 28000 | # remove every line starting with <some word>: |
| 28001 | pcfilemod=`sedscip-shell system . . sed. -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/dscip-shell filesystem . . `/^[a-zA-Z]*:/d`.' $pcfile` |
| 28002 | |
| 28003 | # set projcflags and projlibs variables by running $pcfilemod |
| 28004 | # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default |
| 28005 | projcflags= |
| 28006 | projlibs= |
| 28007 | IFS="$save_IFS" |
| 28008 | eval `shscip-shell system . . sh. -c "$pcfilemod"` |
| 28009 | IFS=":" |
| 28010 | |
| 28011 | # add CYGPATH_W cludge into include flags and set CFLAGS variable |
| 28012 | if testscip-shell system . . test. "${CYGPATH_W}" != "echo"; then |
| 28013 | projcflags=`echoscip-shell system . . echo. "$projcflags" | sedscip-shell system . . sed. -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` |
| 28014 | fi |
| 28015 | HIGHS_CFLAGS_INSTALLED="$projcflags $HIGHS_CFLAGS_INSTALLED" |
| 28016 | |
| 28017 | # set LIBS variable |
| 28018 | HIGHS_LIBS_INSTALLED="$projlibs $HIGHS_LIBS_INSTALLED" |
| 28019 | |
| 28020 | # remember that we have processed $pcfile |
| 28021 | pcfilesprocessed="$pcfilesprocessed:$pcfile" |
| 28022 | |
| 28023 | done |
| 28024 | IFS="$save_IFS" |
| 28025 | |
| 28026 | |
| 28027 | # finish up |
| 28028 | coin_has_highs=yes |
| 28029 | echoscip-shell system . . echo. "$as_me:$LINENO: result: yes" >&5 |
| 28030 | echoscip-shell system . . echo. "${ECHO_T}yes" >&6 |
| 28031 | |
| 28032 | catscip-shell system . . cat. >>confdefs.h <<\_ACEOF |
| 28033 | #define COIN_HAS_HIGHS 1 |
| 28034 | _ACEOF |
| 28035 | |
| 28036 | |
| 28037 | # adjust linker flags for (i)cl compiler |
| 28038 | # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl), |
| 28039 | # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`", |
| 28040 | # everything of the form "-lname" by "libname.lib", and |
| 28041 | # everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path` |
| 28042 | if testscip-shell system . . test. x$coin_cxx_is_cl = xtrue || testscip-shell system . . test. x$coin_cc_is_cl = xtrue ; |
| 28043 | then |
| 28044 | HIGHS_LIBS=`echoscip-shell system . . echo. " $HIGHS_LIBS " | sedscip-shell system . . sed. -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'` |
| 28045 | HIGHS_LIBS_INSTALLED=`echoscip-shell system . . echo. " $HIGHS_LIBS_INSTALLED" | sedscip-shell system . . sed. -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'` |
| 28046 | fi |
| 28047 | |
| 28048 | HIGHS_PCREQUIRES="osi-highs" |
| 28049 | |
| 28050 | CBCGENERIC_PCREQUIRES="osi-highs $CBCGENERIC_PCREQUIRES" |
| 28051 | CBCGENERIC_CFLAGS="$HIGHS_CFLAGS $CBCGENERIC_CFLAGS" |
| 28052 | CBCGENERIC_LIBS="$HIGHS_LIBS $CBCGENERIC_LIBS" |
| 28053 | CBCGENERIC_CFLAGS_INSTALLED="$HIGHS_CFLAGS_INSTALLED $CBCGENERIC_CFLAGS_INSTALLED" |
| 28054 | CBCGENERIC_LIBS_INSTALLED="$HIGHS_LIBS_INSTALLED $CBCGENERIC_LIBS_INSTALLED" |
| 28055 | |
| 28056 | |
| 28057 | fi |
| 28058 | |
| 28059 | |
| 28060 | |
| 28061 | if testscip-shell system . . test. $coin_has_highs != notGiven && |
| 28062 | testscip-shell system . . test. $coin_has_highs != skipping; then |
| 28063 | COIN_HAS_HIGHS_TRUE= |
| 28064 | COIN_HAS_HIGHS_FALSE='#' |
| 28065 | else |
| 28066 | COIN_HAS_HIGHS_TRUE='#' |
| 28067 | COIN_HAS_HIGHS_FALSE= |
| 28068 | fi |
| 28069 | |
| 28070 | |
| 28071 | |
| 28072 | fi |
| 28073 | |
| 28074 | else |
| 28075 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $coin_has_highs" >&5 |
| 28076 | echoscip-shell system . . echo. "${ECHO_T}$coin_has_highs" >&6 |
| 28077 | fi |
| 28078 | |
| 28079 | if testscip-shell system . . test. $coin_has_highs != skipping && |
| 28080 | testscip-shell system . . test. $coin_has_highs != notGiven ; then |
| 28081 | |
| 28082 | catscip-shell system . . cat. >>confdefs.h <<\_ACEOF |
| 28083 | #define COIN_HAS_HIGHS 1 |
| 28084 | _ACEOF |
| 28085 | |
| 28086 | |
| 28087 | # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given. |
| 28088 | if testscip-shell system . . test. "${enable_interpackage_dependencies+set}" = set; then |
| 28089 | enableval="$enable_interpackage_dependencies" |
| 28090 | |
| 28091 | else |
| 28092 | enable_interpackage_dependencies=yes |
| 28093 | fi; |
| 28094 | |
| 28095 | if testscip-shell system . . test. $enable_interpackage_dependencies = yes ; then |
| 28096 | # construct dependencies variables from LIBS variables |
| 28097 | # we add an extra space in LIBS so we can substitute out everything starting with " -" |
| 28098 | # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows |
| 28099 | # then remove everything of the form -xxx |
| 28100 | # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl) |
| 28101 | HIGHS_DEPENDENCIES=`echoscip-shell system . . echo. " $HIGHS_LIBS" | sedscip-shell system . . sed. -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'` |
| 28102 | |
| 28103 | CBCGENERIC_DEPENDENCIES=`echoscip-shell system . . echo. " $CBCGENERIC_LIBS " | sedscip-shell system . . sed. -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'` |
| 28104 | |
| 28105 | fi |
| 28106 | |
| 28107 | if testscip-shell system . . test. 1 = 0 ; then #change this test to enable a bit of debugging output |
| 28108 | if testscip-shell system . . test. -n "$HIGHS_CFLAGS" ; then |
| 28109 | { echoscip-shell system . . echo. "$as_me:$LINENO: Highs CFLAGS are $HIGHS_CFLAGS" >&5 |
| 28110 | echoscip-shell system . . echo. "$as_me: Highs CFLAGS are $HIGHS_CFLAGS" >&6;} |
| 28111 | fi |
| 28112 | if testscip-shell system . . test. -n "$HIGHS_LIBS" ; then |
| 28113 | { echoscip-shell system . . echo. "$as_me:$LINENO: Highs LIBS are $HIGHS_LIBS" >&5 |
| 28114 | echoscip-shell system . . echo. "$as_me: Highs LIBS are $HIGHS_LIBS" >&6;} |
| 28115 | fi |
| 28116 | if testscip-shell system . . test. -n "$HIGHS_DEPENDENCIES" ; then |
| 28117 | { echoscip-shell system . . echo. "$as_me:$LINENO: Highs DEPENDENCIES are $HIGHS_DEPENDENCIES" >&5 |
| 28118 | echoscip-shell system . . echo. "$as_me: Highs DEPENDENCIES are $HIGHS_DEPENDENCIES" >&6;} |
| 28119 | fi |
| 28120 | if testscip-shell system . . test. -n "$HIGHS_DATA" ; then |
| 28121 | { echoscip-shell system . . echo. "$as_me:$LINENO: Highs DATA is $HIGHS_DATA" >&5 |
| 28122 | echoscip-shell system . . echo. "$as_me: Highs DATA is $HIGHS_DATA" >&6;} |
| 28123 | fi |
| 28124 | if testscip-shell system . . test. -n "$HIGHS_PCLIBS" ; then |
| 28125 | { echoscip-shell system . . echo. "$as_me:$LINENO: Highs PCLIBS are $HIGHS_PCLIBS" >&5 |
| 28126 | echoscip-shell system . . echo. "$as_me: Highs PCLIBS are $HIGHS_PCLIBS" >&6;} |
| 28127 | fi |
| 28128 | if testscip-shell system . . test. -n "$HIGHS_PCREQUIRES" ; then |
| 28129 | { echoscip-shell system . . echo. "$as_me:$LINENO: Highs PCREQUIRES are $HIGHS_PCREQUIRES" >&5 |
| 28130 | echoscip-shell system . . echo. "$as_me: Highs PCREQUIRES are $HIGHS_PCREQUIRES" >&6;} |
| 28131 | fi |
| 28132 | |
| 28133 | { echoscip-shell system . . echo. "$as_me:$LINENO: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&5 |
| 28134 | echoscip-shell system . . echo. "$as_me: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&6;} |
| 28135 | { echoscip-shell system . . echo. "$as_me:$LINENO: CbcGeneric LIBS are $CBCGENERIC_LIBS" >&5 |
| 28136 | echoscip-shell system . . echo. "$as_me: CbcGeneric LIBS are $CBCGENERIC_LIBS" >&6;} |
| 28137 | { echoscip-shell system . . echo. "$as_me:$LINENO: CbcGeneric DEPENDENCIES are $CBCGENERIC_DEPENDENCIES" >&5 |
| 28138 | echoscip-shell system . . echo. "$as_me: CbcGeneric DEPENDENCIES are $CBCGENERIC_DEPENDENCIES" >&6;} |
| 28139 | |
| 28140 | fi |
| 28141 | fi |
| 28142 | |
| 28143 | # Define the Makefile conditional |
| 28144 | |
| 28145 | |
| 28146 | if testscip-shell system . . test. $coin_has_highs != notGiven && |
| 28147 | testscip-shell system . . test. $coin_has_highs != skipping; then |
| 28148 | COIN_HAS_HIGHS_TRUE= |
| 28149 | COIN_HAS_HIGHS_FALSE='#' |
| 28150 | else |
| 28151 | COIN_HAS_HIGHS_TRUE='#' |
| 28152 | COIN_HAS_HIGHS_FALSE= |
| 28153 | fi |
| 28154 | |
| 28155 | |
| 28156 | |
| 28157 | |
| 28158 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for COIN-OR package Msk" >&5 |
| 28159 | echoscip-shell system . . echo. $ECHO_N "checking for COIN-OR package Msk... $ECHO_C" >&6 |
| 28160 | |
| 28161 | coin_has_msk=notGiven |
| 28162 | |
| 28163 | # check if user wants to skip package in any case |
| 28164 | if testscip-shell system . . test. x"$COIN_SKIP_PROJECTS" != x; then |
| 28165 | for dir in $COIN_SKIP_PROJECTS; do |
| 28166 | if testscip-shell system . . test. $dir = "Msk"; then |
| 28167 | coin_has_msk=skipping |
| 28168 | fi |
| 28169 | done |
| 28170 | fi |
| 28171 | |
| 28172 | if testscip-shell system . . test. "$coin_has_msk" != skipping; then |
| 28173 | |
| 28174 | # Check whether --with-m4_tolower(Msk) or --without-m4_tolower(Msk) was given. |
| 28175 | if testscip-shell system . . test. "${with_msk+set}" = set; then |
| 28176 | withval="$with_msk" |
| 28177 | if testscip-shell system . . test. "$withval" = no ; then |
| 28178 | coin_has_msk=skipping |
| 28179 | fi |
| 28180 | |
| 28181 | fi; |
| 28182 | fi |
| 28183 | |
| 28184 | MSK_LIBS= |
| 28185 | MSK_CFLAGS= |
| 28186 | MSK_DATA= |
| 28187 | MSK_DEPENDENCIES= |
| 28188 | MSK_PCLIBS= |
| 28189 | MSK_PCREQUIRES= |
| 28190 | |
| 28191 | |
| 28192 | |
| 28193 | |
| 28194 | |
| 28195 | |
| 28196 | |
| 28197 | |
| 28198 | |
| 28199 | |
| 28200 | |
| 28201 | |
| 28202 | |
| 28203 | |
| 28204 | |
| 28205 | |
| 28206 | |
| 28207 | #check if user provided LIBS, CFLAGS, or DATA for package or disables use of package |
| 28208 | if testscip-shell system . . test. $coin_has_msk != skipping; then |
| 28209 | |
| 28210 | # Check whether --with-m4_tolower(Msk)-lib or --without-m4_tolower(Msk)-lib was given. |
| 28211 | if testscip-shell system . . test. "${with_msk_lib+set}" = set; then |
| 28212 | withval="$with_msk_lib" |
| 28213 | if testscip-shell system . . test. "$withval" = no ; then |
| 28214 | coin_has_msk=skipping |
| 28215 | else |
| 28216 | coin_has_msk=yes |
| 28217 | MSK_LIBS="$withval" |
| 28218 | MSK_PCLIBS="$withval" |
| 28219 | |
| 28220 | CBCGENERIC_PCLIBS="$withval $CBCGENERIC_PCLIBS" |
| 28221 | CBCGENERIC_LIBS="$withval $CBCGENERIC_LIBS" |
| 28222 | |
| 28223 | # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables |
| 28224 | if testscip-shell system . . test. -z "$PKG_CONFIG" ; then |
| 28225 | MSK_LIBS_INSTALLED="$withval" |
| 28226 | CBCGENERIC_LIBS_INSTALLED="$withval $CBCGENERIC_LIBS_INSTALLED" |
| 28227 | fi |
| 28228 | fi |
| 28229 | |
| 28230 | fi; |
| 28231 | fi |
| 28232 | |
| 28233 | if testscip-shell system . . test. $coin_has_msk != skipping; then |
| 28234 | |
| 28235 | # Check whether --with-m4_tolower(Msk)-incdir or --without-m4_tolower(Msk)-incdir was given. |
| 28236 | if testscip-shell system . . test. "${with_msk_incdir+set}" = set; then |
| 28237 | withval="$with_msk_incdir" |
| 28238 | if testscip-shell system . . test. "$withval" = no ; then |
| 28239 | coin_has_msk=skipping |
| 28240 | else |
| 28241 | coin_has_msk=yes |
| 28242 | MSK_CFLAGS="-I`${CYGPATH_W} $withval`" |
| 28243 | CBCGENERIC_CFLAGS="-I`${CYGPATH_W} $withval` $CBCGENERIC_CFLAGS" |
| 28244 | # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables |
| 28245 | if testscip-shell system . . test. -z "$PKG_CONFIG" ; then |
| 28246 | MSK_CFLAGS_INSTALLED="$MSK_CFLAGS" |
| 28247 | CBCGENERIC_CFLAGS_INSTALLED="$MSK_CFLAGS $CBCGENERIC_CFLAGS_INSTALLED" |
| 28248 | fi |
| 28249 | fi |
| 28250 | |
| 28251 | fi; |
| 28252 | fi |
| 28253 | |
| 28254 | if testscip-shell system . . test. $coin_has_msk != skipping; then |
| 28255 | |
| 28256 | # Check whether --with-m4_tolower(Msk)-datadir or --without-m4_tolower(Msk)-datadir was given. |
| 28257 | if testscip-shell system . . test. "${with_msk_datadir+set}" = set; then |
| 28258 | withval="$with_msk_datadir" |
| 28259 | if testscip-shell system . . test. "$withval" = no ; then |
| 28260 | coin_has_msk=skipping |
| 28261 | else |
| 28262 | coin_has_msk=yes |
| 28263 | MSK_DATA="$withval" |
| 28264 | # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables |
| 28265 | if testscip-shell system . . test. -z "$PKG_CONFIG" ; then |
| 28266 | MSK_DATA_INSTALLED="$withval" |
| 28267 | fi |
| 28268 | fi |
| 28269 | |
| 28270 | fi; |
| 28271 | fi |
| 28272 | |
| 28273 | if testscip-shell system . . test. $coin_has_msk = notGiven; then |
| 28274 | if testscip-shell system . . test. -n "$PKG_CONFIG" ; then |
| 28275 | # set search path for pkg-config |
| 28276 | # need to export variable to be sure that the following pkg-config gets these values |
| 28277 | coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH" |
| 28278 | PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED" |
| 28279 | export PKG_CONFIG_PATH |
| 28280 | |
| 28281 | # let pkg-config do it's magic |
| 28282 | |
| 28283 | |
| 28284 | |
| 28285 | if testscip-shell system . . test. -n "$PKG_CONFIG" ; then |
| 28286 | if $PKG_CONFIG --exists "osi-mosek"; then |
| 28287 | MSK_VERSIONS=`$PKG_CONFIG --modversion "osi-mosek" 2>/dev/nullscip-shell filesystem . . `/dev/null`. | trscip-shell system . . tr. '\n' ' '` |
| 28288 | cflags=`$PKG_CONFIG --cflags "osi-mosek" 2>/dev/nullscip-shell filesystem . . `/dev/null`.` |
| 28289 | # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files |
| 28290 | # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's |
| 28291 | # but only do this if is not trivial |
| 28292 | if testscip-shell system . . test. "$CYGPATH_W" != "echo" ; then |
| 28293 | # need to put into brackets since otherwise autoconf replaces the brackets in the sed command |
| 28294 | cflags=`echoscip-shell system . . echo. $cflags | sedscip-shell system . . sed. -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` |
| 28295 | fi |
| 28296 | MSK_CFLAGS="$cflags" |
| 28297 | MSK_LIBS=`$PKG_CONFIG --libs "osi-mosek" 2>/dev/nullscip-shell filesystem . . `/dev/null`.` |
| 28298 | MSK_DATA=`$PKG_CONFIG --variable=datadir "osi-mosek" 2>/dev/nullscip-shell filesystem . . `/dev/null`.` |
| 28299 | coin_has_msk=yes |
| 28300 | echoscip-shell system . . echo. "$as_me:$LINENO: result: yes: $MSK_VERSIONS" >&5 |
| 28301 | echoscip-shell system . . echo. "${ECHO_T}yes: $MSK_VERSIONS" >&6 |
| 28302 | |
| 28303 | # adjust linker flags for (i)cl compiler |
| 28304 | # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl) |
| 28305 | if testscip-shell system . . test. x$coin_cxx_is_cl = xtrue || testscip-shell system . . test. x$coin_cc_is_cl = xtrue ; |
| 28306 | then |
| 28307 | MSK_LIBS=`echoscip-shell system . . echo. " $MSK_LIBS " | sedscip-shell system . . sed. -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'` |
| 28308 | fi |
| 28309 | MSK_PCREQUIRES="osi-mosek" |
| 28310 | |
| 28311 | # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CbcGeneric |
| 28312 | |
| 28313 | CBCGENERIC_PCREQUIRES="osi-mosek $CBCGENERIC_PCREQUIRES" |
| 28314 | CBCGENERIC_CFLAGS="$MSK_CFLAGS $CBCGENERIC_CFLAGS" |
| 28315 | CBCGENERIC_LIBS="$MSK_LIBS $CBCGENERIC_LIBS" |
| 28316 | |
| 28317 | |
| 28318 | |
| 28319 | else |
| 28320 | MSK_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi-mosek"` |
| 28321 | coin_has_msk=notGiven |
| 28322 | echoscip-shell system . . echo. "$as_me:$LINENO: result: not given: $MSK_PKG_ERRORS" >&5 |
| 28323 | echoscip-shell system . . echo. "${ECHO_T}not given: $MSK_PKG_ERRORS" >&6 |
| 28324 | |
| 28325 | fi |
| 28326 | else |
| 28327 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: \"Cannot check for existance of module Msk without pkg-config\"" >&5 |
| 28328 | echoscip-shell system . . echo. "$as_me: error: \"Cannot check for existance of module Msk without pkg-config\"" >&2;} |
| 28329 | { (exit 1); exit 1; }; } |
| 28330 | fi |
| 28331 | |
| 28332 | |
| 28333 | |
| 28334 | |
| 28335 | # reset PKG_CONFIG_PATH variable |
| 28336 | PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH" |
| 28337 | export PKG_CONFIG_PATH |
| 28338 | |
| 28339 | else |
| 28340 | echoscip-shell system . . echo. "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5 |
| 28341 | echoscip-shell system . . echo. "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6 |
| 28342 | |
| 28343 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for COIN-OR package Msk (fallback)" >&5 |
| 28344 | echoscip-shell system . . echo. $ECHO_N "checking for COIN-OR package Msk (fallback)... $ECHO_C" >&6 |
| 28345 | |
| 28346 | coin_has_msk=notGiven |
| 28347 | MSK_LIBS= |
| 28348 | MSK_LIBS_INSTALLED= |
| 28349 | MSK_CFLAGS= |
| 28350 | MSK_CFLAGS_INSTALLED= |
| 28351 | MSK_DATA= |
| 28352 | MSK_DATA_INSTALLED= |
| 28353 | MSK_PCLIBS= |
| 28354 | MSK_PCREQUIRES= |
| 28355 | |
| 28356 | # initial list of dependencies is "osi-mosek", but we need to filter out version number specifications (= x, <= x, >= x, != x) |
| 28357 | projtoprocess="osi-mosek" |
| 28358 | |
| 28359 | # we first expand the list of projects to process by adding all dependencies just behind the project which depends on it |
| 28360 | # further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards |
| 28361 | # the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples |
| 28362 | # also, we setup the DATA variable |
| 28363 | allproj="" |
| 28364 | allpcfiles="" |
| 28365 | allpcifiles="" |
| 28366 | while testscip-shell system . . test. "x$projtoprocess" != x ; do |
| 28367 | |
| 28368 | for proj in $projtoprocess ; do |
| 28369 | # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it |
| 28370 | pcfile="" |
| 28371 | save_IFS="$IFS" |
| 28372 | IFS=":" |
| 28373 | for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do |
| 28374 | # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again |
| 28375 | if testscip-shell system . . test. -r "$dir/${proj}-uninstalled.pc" ; then |
| 28376 | pcfile="$dir/$proj-uninstalled.pc" |
| 28377 | if testscip-shell system . . test. -r "$dir/${proj}.pc" ; then |
| 28378 | pcifile="$dir/${proj}.pc" |
| 28379 | else |
| 28380 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5 |
| 28381 | echoscip-shell system . . echo. "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;} |
| 28382 | pcifile= |
| 28383 | fi |
| 28384 | break |
| 28385 | fi |
| 28386 | done |
| 28387 | IFS="$save_IFS" |
| 28388 | |
| 28389 | if testscip-shell system . . test. "x$pcfile" != x ; then |
| 28390 | # read dependencies from $pcfile and filter it |
| 28391 | projrequires=`sedscip-shell system . . sed. -n -e 's/Requires://gp' "$pcfile" | sedscip-shell system . . sed. -e 's/<\{0,1\}>\{0,1\}=[ ]\{0,\}[^ ]\{1,\}//g'` |
| 28392 | |
| 28393 | # add projrequires to the front of the list of projects that have to be processed next |
| 28394 | # at the same time, remove $proj from this list |
| 28395 | projtoprocess=`echoscip-shell system . . echo. $projtoprocess | sedscip-shell system . . sed. -e "s/$proj/$projrequires/"` |
| 28396 | |
| 28397 | # read DATA from $pcfile, if _DATA is still empty |
| 28398 | if testscip-shell system . . test. "x$MSK_DATA" = x ; then |
| 28399 | projdatadir= |
| 28400 | pcfilemod=`sedscip-shell system . . sed. -e '/[a-zA-Z]:/dscip-shell filesystem . . `/[a-zA-Z]:/d`.' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile` |
| 28401 | eval `shscip-shell system . . sh. -c "$pcfilemod"` |
| 28402 | MSK_DATA="$projdatadir" |
| 28403 | fi |
| 28404 | |
| 28405 | allproj="$allproj $proj" |
| 28406 | allpcfiles="$pcfile:$allpcfiles" |
| 28407 | |
| 28408 | else |
| 28409 | echoscip-shell system . . echo. "$as_me:$LINENO: result: no, dependency $proj not available" >&5 |
| 28410 | echoscip-shell system . . echo. "${ECHO_T}no, dependency $proj not available" >&6 |
| 28411 | allproj=fail |
| 28412 | break 2 |
| 28413 | fi |
| 28414 | |
| 28415 | if testscip-shell system . . test. "x$pcifile" != x ; then |
| 28416 | allpcifiles="$pcifile:$allpcifiles" |
| 28417 | |
| 28418 | # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty |
| 28419 | if testscip-shell system . . test. "x$MSK_DATA_INSTALLED" = x ; then |
| 28420 | projdatadir= |
| 28421 | pcifilemod=`sedscip-shell system . . sed. -e '/[a-zA-Z]:/dscip-shell filesystem . . `/[a-zA-Z]:/d`.' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile` |
| 28422 | eval `shscip-shell system . . sh. -c "$pcifilemod"` |
| 28423 | if testscip-shell system . . test. "${CYGPATH_W}" != "echo"; then |
| 28424 | projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`" |
| 28425 | fi |
| 28426 | MSK_DATA_INSTALLED="$projdatadir" |
| 28427 | fi |
| 28428 | |
| 28429 | fi |
| 28430 | |
| 28431 | break |
| 28432 | done |
| 28433 | |
| 28434 | # remove spaces on begin of $projtoprocess |
| 28435 | projtoprocess=`echoscip-shell system . . echo. $projtoprocess | sedscip-shell system . . sed. -e 's/^ *//'` |
| 28436 | |
| 28437 | done |
| 28438 | |
| 28439 | if testscip-shell system . . test. "$allproj" != fail ; then |
| 28440 | |
| 28441 | # now go through the list of .pc files and assemble compiler and linker flags |
| 28442 | # important is here to obey the reverse order that has been setup before, |
| 28443 | # since then libraries that are required by several others should be after these other libraries |
| 28444 | pcfilesprocessed="" |
| 28445 | |
| 28446 | save_IFS="$IFS" |
| 28447 | IFS=":" |
| 28448 | for pcfile in $allpcfiles ; do |
| 28449 | |
| 28450 | # if $pcfile has been processed already, skip this round |
| 28451 | if testscip-shell system . . test. "x$pcfilesprocessed" != x ; then |
| 28452 | for pcfiledone in $pcfilesprocessed ; do |
| 28453 | if testscip-shell system . . test. "$pcfiledone" = "$pcfile" ; then |
| 28454 | continue 2 |
| 28455 | fi |
| 28456 | done |
| 28457 | fi |
| 28458 | |
| 28459 | # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags: |
| 28460 | # replace "Libs:" by "echo projlibs=" |
| 28461 | # replace "Cflags:" by "echo projcflags=" |
| 28462 | # remove every line starting with <some word>: |
| 28463 | pcfilemod=`sedscip-shell system . . sed. -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/dscip-shell filesystem . . `/^[a-zA-Z]*:/d`.' $pcfile` |
| 28464 | |
| 28465 | # set projcflags and projlibs variables by running $pcfilemod |
| 28466 | # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default |
| 28467 | projcflags= |
| 28468 | projlibs= |
| 28469 | IFS="$save_IFS" |
| 28470 | eval `shscip-shell system . . sh. -c "$pcfilemod"` |
| 28471 | IFS=":" |
| 28472 | |
| 28473 | # add CYGPATH_W cludge into include flags and set CFLAGS variable |
| 28474 | if testscip-shell system . . test. "${CYGPATH_W}" != "echo"; then |
| 28475 | projcflags=`echoscip-shell system . . echo. "$projcflags" | sedscip-shell system . . sed. -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` |
| 28476 | fi |
| 28477 | MSK_CFLAGS="$projcflags $MSK_CFLAGS" |
| 28478 | |
| 28479 | # set LIBS variable |
| 28480 | MSK_LIBS="$projlibs $MSK_LIBS" |
| 28481 | |
| 28482 | # remember that we have processed $pcfile |
| 28483 | pcfilesprocessed="$pcfilesprocessed:$pcfile" |
| 28484 | |
| 28485 | done |
| 28486 | IFS="$save_IFS" |
| 28487 | |
| 28488 | |
| 28489 | # now go through the list of .pc files for installed projects and assemble compiler and linker flags |
| 28490 | # important is here again to obey the reverse order that has been setup before, |
| 28491 | # since then libraries that are required by several others should be after these other libraries |
| 28492 | pcfilesprocessed="" |
| 28493 | |
| 28494 | save_IFS="$IFS" |
| 28495 | IFS=":" |
| 28496 | for pcfile in $allpcifiles ; do |
| 28497 | |
| 28498 | # if $pcfile has been processed already, skip this round |
| 28499 | if testscip-shell system . . test. "x$pcfilesprocessed" != x ; then |
| 28500 | for pcfiledone in $pcfilesprocessed ; do |
| 28501 | if testscip-shell system . . test. "$pcfiledone" = "$pcfile" ; then |
| 28502 | continue 2 |
| 28503 | fi |
| 28504 | done |
| 28505 | fi |
| 28506 | |
| 28507 | # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags: |
| 28508 | # replace "Libs:" by "echo projlibs=" |
| 28509 | # replace "Cflags:" by "echo projcflags=" |
| 28510 | # remove every line starting with <some word>: |
| 28511 | pcfilemod=`sedscip-shell system . . sed. -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/dscip-shell filesystem . . `/^[a-zA-Z]*:/d`.' $pcfile` |
| 28512 | |
| 28513 | # set projcflags and projlibs variables by running $pcfilemod |
| 28514 | # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default |
| 28515 | projcflags= |
| 28516 | projlibs= |
| 28517 | IFS="$save_IFS" |
| 28518 | eval `shscip-shell system . . sh. -c "$pcfilemod"` |
| 28519 | IFS=":" |
| 28520 | |
| 28521 | # add CYGPATH_W cludge into include flags and set CFLAGS variable |
| 28522 | if testscip-shell system . . test. "${CYGPATH_W}" != "echo"; then |
| 28523 | projcflags=`echoscip-shell system . . echo. "$projcflags" | sedscip-shell system . . sed. -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` |
| 28524 | fi |
| 28525 | MSK_CFLAGS_INSTALLED="$projcflags $MSK_CFLAGS_INSTALLED" |
| 28526 | |
| 28527 | # set LIBS variable |
| 28528 | MSK_LIBS_INSTALLED="$projlibs $MSK_LIBS_INSTALLED" |
| 28529 | |
| 28530 | # remember that we have processed $pcfile |
| 28531 | pcfilesprocessed="$pcfilesprocessed:$pcfile" |
| 28532 | |
| 28533 | done |
| 28534 | IFS="$save_IFS" |
| 28535 | |
| 28536 | |
| 28537 | # finish up |
| 28538 | coin_has_msk=yes |
| 28539 | echoscip-shell system . . echo. "$as_me:$LINENO: result: yes" >&5 |
| 28540 | echoscip-shell system . . echo. "${ECHO_T}yes" >&6 |
| 28541 | |
| 28542 | catscip-shell system . . cat. >>confdefs.h <<\_ACEOF |
| 28543 | #define COIN_HAS_MSK 1 |
| 28544 | _ACEOF |
| 28545 | |
| 28546 | |
| 28547 | # adjust linker flags for (i)cl compiler |
| 28548 | # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl), |
| 28549 | # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`", |
| 28550 | # everything of the form "-lname" by "libname.lib", and |
| 28551 | # everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path` |
| 28552 | if testscip-shell system . . test. x$coin_cxx_is_cl = xtrue || testscip-shell system . . test. x$coin_cc_is_cl = xtrue ; |
| 28553 | then |
| 28554 | MSK_LIBS=`echoscip-shell system . . echo. " $MSK_LIBS " | sedscip-shell system . . sed. -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'` |
| 28555 | MSK_LIBS_INSTALLED=`echoscip-shell system . . echo. " $MSK_LIBS_INSTALLED" | sedscip-shell system . . sed. -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'` |
| 28556 | fi |
| 28557 | |
| 28558 | MSK_PCREQUIRES="osi-mosek" |
| 28559 | |
| 28560 | CBCGENERIC_PCREQUIRES="osi-mosek $CBCGENERIC_PCREQUIRES" |
| 28561 | CBCGENERIC_CFLAGS="$MSK_CFLAGS $CBCGENERIC_CFLAGS" |
| 28562 | CBCGENERIC_LIBS="$MSK_LIBS $CBCGENERIC_LIBS" |
| 28563 | CBCGENERIC_CFLAGS_INSTALLED="$MSK_CFLAGS_INSTALLED $CBCGENERIC_CFLAGS_INSTALLED" |
| 28564 | CBCGENERIC_LIBS_INSTALLED="$MSK_LIBS_INSTALLED $CBCGENERIC_LIBS_INSTALLED" |
| 28565 | |
| 28566 | |
| 28567 | fi |
| 28568 | |
| 28569 | |
| 28570 | |
| 28571 | if testscip-shell system . . test. $coin_has_msk != notGiven && |
| 28572 | testscip-shell system . . test. $coin_has_msk != skipping; then |
| 28573 | COIN_HAS_MSK_TRUE= |
| 28574 | COIN_HAS_MSK_FALSE='#' |
| 28575 | else |
| 28576 | COIN_HAS_MSK_TRUE='#' |
| 28577 | COIN_HAS_MSK_FALSE= |
| 28578 | fi |
| 28579 | |
| 28580 | |
| 28581 | |
| 28582 | fi |
| 28583 | |
| 28584 | else |
| 28585 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $coin_has_msk" >&5 |
| 28586 | echoscip-shell system . . echo. "${ECHO_T}$coin_has_msk" >&6 |
| 28587 | fi |
| 28588 | |
| 28589 | if testscip-shell system . . test. $coin_has_msk != skipping && |
| 28590 | testscip-shell system . . test. $coin_has_msk != notGiven ; then |
| 28591 | |
| 28592 | catscip-shell system . . cat. >>confdefs.h <<\_ACEOF |
| 28593 | #define COIN_HAS_MSK 1 |
| 28594 | _ACEOF |
| 28595 | |
| 28596 | |
| 28597 | # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given. |
| 28598 | if testscip-shell system . . test. "${enable_interpackage_dependencies+set}" = set; then |
| 28599 | enableval="$enable_interpackage_dependencies" |
| 28600 | |
| 28601 | else |
| 28602 | enable_interpackage_dependencies=yes |
| 28603 | fi; |
| 28604 | |
| 28605 | if testscip-shell system . . test. $enable_interpackage_dependencies = yes ; then |
| 28606 | # construct dependencies variables from LIBS variables |
| 28607 | # we add an extra space in LIBS so we can substitute out everything starting with " -" |
| 28608 | # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows |
| 28609 | # then remove everything of the form -xxx |
| 28610 | # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl) |
| 28611 | MSK_DEPENDENCIES=`echoscip-shell system . . echo. " $MSK_LIBS" | sedscip-shell system . . sed. -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'` |
| 28612 | |
| 28613 | CBCGENERIC_DEPENDENCIES=`echoscip-shell system . . echo. " $CBCGENERIC_LIBS " | sedscip-shell system . . sed. -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'` |
| 28614 | |
| 28615 | fi |
| 28616 | |
| 28617 | if testscip-shell system . . test. 1 = 0 ; then #change this test to enable a bit of debugging output |
| 28618 | if testscip-shell system . . test. -n "$MSK_CFLAGS" ; then |
| 28619 | { echoscip-shell system . . echo. "$as_me:$LINENO: Msk CFLAGS are $MSK_CFLAGS" >&5 |
| 28620 | echoscip-shell system . . echo. "$as_me: Msk CFLAGS are $MSK_CFLAGS" >&6;} |
| 28621 | fi |
| 28622 | if testscip-shell system . . test. -n "$MSK_LIBS" ; then |
| 28623 | { echoscip-shell system . . echo. "$as_me:$LINENO: Msk LIBS are $MSK_LIBS" >&5 |
| 28624 | echoscip-shell system . . echo. "$as_me: Msk LIBS are $MSK_LIBS" >&6;} |
| 28625 | fi |
| 28626 | if testscip-shell system . . test. -n "$MSK_DEPENDENCIES" ; then |
| 28627 | { echoscip-shell system . . echo. "$as_me:$LINENO: Msk DEPENDENCIES are $MSK_DEPENDENCIES" >&5 |
| 28628 | echoscip-shell system . . echo. "$as_me: Msk DEPENDENCIES are $MSK_DEPENDENCIES" >&6;} |
| 28629 | fi |
| 28630 | if testscip-shell system . . test. -n "$MSK_DATA" ; then |
| 28631 | { echoscip-shell system . . echo. "$as_me:$LINENO: Msk DATA is $MSK_DATA" >&5 |
| 28632 | echoscip-shell system . . echo. "$as_me: Msk DATA is $MSK_DATA" >&6;} |
| 28633 | fi |
| 28634 | if testscip-shell system . . test. -n "$MSK_PCLIBS" ; then |
| 28635 | { echoscip-shell system . . echo. "$as_me:$LINENO: Msk PCLIBS are $MSK_PCLIBS" >&5 |
| 28636 | echoscip-shell system . . echo. "$as_me: Msk PCLIBS are $MSK_PCLIBS" >&6;} |
| 28637 | fi |
| 28638 | if testscip-shell system . . test. -n "$MSK_PCREQUIRES" ; then |
| 28639 | { echoscip-shell system . . echo. "$as_me:$LINENO: Msk PCREQUIRES are $MSK_PCREQUIRES" >&5 |
| 28640 | echoscip-shell system . . echo. "$as_me: Msk PCREQUIRES are $MSK_PCREQUIRES" >&6;} |
| 28641 | fi |
| 28642 | |
| 28643 | { echoscip-shell system . . echo. "$as_me:$LINENO: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&5 |
| 28644 | echoscip-shell system . . echo. "$as_me: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&6;} |
| 28645 | { echoscip-shell system . . echo. "$as_me:$LINENO: CbcGeneric LIBS are $CBCGENERIC_LIBS" >&5 |
| 28646 | echoscip-shell system . . echo. "$as_me: CbcGeneric LIBS are $CBCGENERIC_LIBS" >&6;} |
| 28647 | { echoscip-shell system . . echo. "$as_me:$LINENO: CbcGeneric DEPENDENCIES are $CBCGENERIC_DEPENDENCIES" >&5 |
| 28648 | echoscip-shell system . . echo. "$as_me: CbcGeneric DEPENDENCIES are $CBCGENERIC_DEPENDENCIES" >&6;} |
| 28649 | |
| 28650 | fi |
| 28651 | fi |
| 28652 | |
| 28653 | # Define the Makefile conditional |
| 28654 | |
| 28655 | |
| 28656 | if testscip-shell system . . test. $coin_has_msk != notGiven && |
| 28657 | testscip-shell system . . test. $coin_has_msk != skipping; then |
| 28658 | COIN_HAS_MSK_TRUE= |
| 28659 | COIN_HAS_MSK_FALSE='#' |
| 28660 | else |
| 28661 | COIN_HAS_MSK_TRUE='#' |
| 28662 | COIN_HAS_MSK_FALSE= |
| 28663 | fi |
| 28664 | |
| 28665 | |
| 28666 | |
| 28667 | |
| 28668 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for COIN-OR package Spx" >&5 |
| 28669 | echoscip-shell system . . echo. $ECHO_N "checking for COIN-OR package Spx... $ECHO_C" >&6 |
| 28670 | |
| 28671 | coin_has_spx=notGiven |
| 28672 | |
| 28673 | # check if user wants to skip package in any case |
| 28674 | if testscip-shell system . . test. x"$COIN_SKIP_PROJECTS" != x; then |
| 28675 | for dir in $COIN_SKIP_PROJECTS; do |
| 28676 | if testscip-shell system . . test. $dir = "Spx"; then |
| 28677 | coin_has_spx=skipping |
| 28678 | fi |
| 28679 | done |
| 28680 | fi |
| 28681 | |
| 28682 | if testscip-shell system . . test. "$coin_has_spx" != skipping; then |
| 28683 | |
| 28684 | # Check whether --with-m4_tolower(Spx) or --without-m4_tolower(Spx) was given. |
| 28685 | if testscip-shell system . . test. "${with_spx+set}" = set; then |
| 28686 | withval="$with_spx" |
| 28687 | if testscip-shell system . . test. "$withval" = no ; then |
| 28688 | coin_has_spx=skipping |
| 28689 | fi |
| 28690 | |
| 28691 | fi; |
| 28692 | fi |
| 28693 | |
| 28694 | SPX_LIBS= |
| 28695 | SPX_CFLAGS= |
| 28696 | SPX_DATA= |
| 28697 | SPX_DEPENDENCIES= |
| 28698 | SPX_PCLIBS= |
| 28699 | SPX_PCREQUIRES= |
| 28700 | |
| 28701 | |
| 28702 | |
| 28703 | |
| 28704 | |
| 28705 | |
| 28706 | |
| 28707 | |
| 28708 | |
| 28709 | |
| 28710 | |
| 28711 | |
| 28712 | |
| 28713 | |
| 28714 | |
| 28715 | |
| 28716 | |
| 28717 | #check if user provided LIBS, CFLAGS, or DATA for package or disables use of package |
| 28718 | if testscip-shell system . . test. $coin_has_spx != skipping; then |
| 28719 | |
| 28720 | # Check whether --with-m4_tolower(Spx)-lib or --without-m4_tolower(Spx)-lib was given. |
| 28721 | if testscip-shell system . . test. "${with_spx_lib+set}" = set; then |
| 28722 | withval="$with_spx_lib" |
| 28723 | if testscip-shell system . . test. "$withval" = no ; then |
| 28724 | coin_has_spx=skipping |
| 28725 | else |
| 28726 | coin_has_spx=yes |
| 28727 | SPX_LIBS="$withval" |
| 28728 | SPX_PCLIBS="$withval" |
| 28729 | |
| 28730 | CBCGENERIC_PCLIBS="$withval $CBCGENERIC_PCLIBS" |
| 28731 | CBCGENERIC_LIBS="$withval $CBCGENERIC_LIBS" |
| 28732 | |
| 28733 | # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables |
| 28734 | if testscip-shell system . . test. -z "$PKG_CONFIG" ; then |
| 28735 | SPX_LIBS_INSTALLED="$withval" |
| 28736 | CBCGENERIC_LIBS_INSTALLED="$withval $CBCGENERIC_LIBS_INSTALLED" |
| 28737 | fi |
| 28738 | fi |
| 28739 | |
| 28740 | fi; |
| 28741 | fi |
| 28742 | |
| 28743 | if testscip-shell system . . test. $coin_has_spx != skipping; then |
| 28744 | |
| 28745 | # Check whether --with-m4_tolower(Spx)-incdir or --without-m4_tolower(Spx)-incdir was given. |
| 28746 | if testscip-shell system . . test. "${with_spx_incdir+set}" = set; then |
| 28747 | withval="$with_spx_incdir" |
| 28748 | if testscip-shell system . . test. "$withval" = no ; then |
| 28749 | coin_has_spx=skipping |
| 28750 | else |
| 28751 | coin_has_spx=yes |
| 28752 | SPX_CFLAGS="-I`${CYGPATH_W} $withval`" |
| 28753 | CBCGENERIC_CFLAGS="-I`${CYGPATH_W} $withval` $CBCGENERIC_CFLAGS" |
| 28754 | # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables |
| 28755 | if testscip-shell system . . test. -z "$PKG_CONFIG" ; then |
| 28756 | SPX_CFLAGS_INSTALLED="$SPX_CFLAGS" |
| 28757 | CBCGENERIC_CFLAGS_INSTALLED="$SPX_CFLAGS $CBCGENERIC_CFLAGS_INSTALLED" |
| 28758 | fi |
| 28759 | fi |
| 28760 | |
| 28761 | fi; |
| 28762 | fi |
| 28763 | |
| 28764 | if testscip-shell system . . test. $coin_has_spx != skipping; then |
| 28765 | |
| 28766 | # Check whether --with-m4_tolower(Spx)-datadir or --without-m4_tolower(Spx)-datadir was given. |
| 28767 | if testscip-shell system . . test. "${with_spx_datadir+set}" = set; then |
| 28768 | withval="$with_spx_datadir" |
| 28769 | if testscip-shell system . . test. "$withval" = no ; then |
| 28770 | coin_has_spx=skipping |
| 28771 | else |
| 28772 | coin_has_spx=yes |
| 28773 | SPX_DATA="$withval" |
| 28774 | # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables |
| 28775 | if testscip-shell system . . test. -z "$PKG_CONFIG" ; then |
| 28776 | SPX_DATA_INSTALLED="$withval" |
| 28777 | fi |
| 28778 | fi |
| 28779 | |
| 28780 | fi; |
| 28781 | fi |
| 28782 | |
| 28783 | if testscip-shell system . . test. $coin_has_spx = notGiven; then |
| 28784 | if testscip-shell system . . test. -n "$PKG_CONFIG" ; then |
| 28785 | # set search path for pkg-config |
| 28786 | # need to export variable to be sure that the following pkg-config gets these values |
| 28787 | coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH" |
| 28788 | PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED" |
| 28789 | export PKG_CONFIG_PATH |
| 28790 | |
| 28791 | # let pkg-config do it's magic |
| 28792 | |
| 28793 | |
| 28794 | |
| 28795 | if testscip-shell system . . test. -n "$PKG_CONFIG" ; then |
| 28796 | if $PKG_CONFIG --exists "osi-soplex"; then |
| 28797 | SPX_VERSIONS=`$PKG_CONFIG --modversion "osi-soplex" 2>/dev/nullscip-shell filesystem . . `/dev/null`. | trscip-shell system . . tr. '\n' ' '` |
| 28798 | cflags=`$PKG_CONFIG --cflags "osi-soplex" 2>/dev/nullscip-shell filesystem . . `/dev/null`.` |
| 28799 | # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files |
| 28800 | # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's |
| 28801 | # but only do this if is not trivial |
| 28802 | if testscip-shell system . . test. "$CYGPATH_W" != "echo" ; then |
| 28803 | # need to put into brackets since otherwise autoconf replaces the brackets in the sed command |
| 28804 | cflags=`echoscip-shell system . . echo. $cflags | sedscip-shell system . . sed. -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` |
| 28805 | fi |
| 28806 | SPX_CFLAGS="$cflags" |
| 28807 | SPX_LIBS=`$PKG_CONFIG --libs "osi-soplex" 2>/dev/nullscip-shell filesystem . . `/dev/null`.` |
| 28808 | SPX_DATA=`$PKG_CONFIG --variable=datadir "osi-soplex" 2>/dev/nullscip-shell filesystem . . `/dev/null`.` |
| 28809 | coin_has_spx=yes |
| 28810 | echoscip-shell system . . echo. "$as_me:$LINENO: result: yes: $SPX_VERSIONS" >&5 |
| 28811 | echoscip-shell system . . echo. "${ECHO_T}yes: $SPX_VERSIONS" >&6 |
| 28812 | |
| 28813 | # adjust linker flags for (i)cl compiler |
| 28814 | # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl) |
| 28815 | if testscip-shell system . . test. x$coin_cxx_is_cl = xtrue || testscip-shell system . . test. x$coin_cc_is_cl = xtrue ; |
| 28816 | then |
| 28817 | SPX_LIBS=`echoscip-shell system . . echo. " $SPX_LIBS " | sedscip-shell system . . sed. -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'` |
| 28818 | fi |
| 28819 | SPX_PCREQUIRES="osi-soplex" |
| 28820 | |
| 28821 | # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CbcGeneric |
| 28822 | |
| 28823 | CBCGENERIC_PCREQUIRES="osi-soplex $CBCGENERIC_PCREQUIRES" |
| 28824 | CBCGENERIC_CFLAGS="$SPX_CFLAGS $CBCGENERIC_CFLAGS" |
| 28825 | CBCGENERIC_LIBS="$SPX_LIBS $CBCGENERIC_LIBS" |
| 28826 | |
| 28827 | |
| 28828 | |
| 28829 | else |
| 28830 | SPX_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi-soplex"` |
| 28831 | coin_has_spx=notGiven |
| 28832 | echoscip-shell system . . echo. "$as_me:$LINENO: result: not given: $SPX_PKG_ERRORS" >&5 |
| 28833 | echoscip-shell system . . echo. "${ECHO_T}not given: $SPX_PKG_ERRORS" >&6 |
| 28834 | |
| 28835 | fi |
| 28836 | else |
| 28837 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: \"Cannot check for existance of module Spx without pkg-config\"" >&5 |
| 28838 | echoscip-shell system . . echo. "$as_me: error: \"Cannot check for existance of module Spx without pkg-config\"" >&2;} |
| 28839 | { (exit 1); exit 1; }; } |
| 28840 | fi |
| 28841 | |
| 28842 | |
| 28843 | |
| 28844 | |
| 28845 | # reset PKG_CONFIG_PATH variable |
| 28846 | PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH" |
| 28847 | export PKG_CONFIG_PATH |
| 28848 | |
| 28849 | else |
| 28850 | echoscip-shell system . . echo. "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5 |
| 28851 | echoscip-shell system . . echo. "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6 |
| 28852 | |
| 28853 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for COIN-OR package Spx (fallback)" >&5 |
| 28854 | echoscip-shell system . . echo. $ECHO_N "checking for COIN-OR package Spx (fallback)... $ECHO_C" >&6 |
| 28855 | |
| 28856 | coin_has_spx=notGiven |
| 28857 | SPX_LIBS= |
| 28858 | SPX_LIBS_INSTALLED= |
| 28859 | SPX_CFLAGS= |
| 28860 | SPX_CFLAGS_INSTALLED= |
| 28861 | SPX_DATA= |
| 28862 | SPX_DATA_INSTALLED= |
| 28863 | SPX_PCLIBS= |
| 28864 | SPX_PCREQUIRES= |
| 28865 | |
| 28866 | # initial list of dependencies is "osi-soplex", but we need to filter out version number specifications (= x, <= x, >= x, != x) |
| 28867 | projtoprocess="osi-soplex" |
| 28868 | |
| 28869 | # we first expand the list of projects to process by adding all dependencies just behind the project which depends on it |
| 28870 | # further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards |
| 28871 | # the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples |
| 28872 | # also, we setup the DATA variable |
| 28873 | allproj="" |
| 28874 | allpcfiles="" |
| 28875 | allpcifiles="" |
| 28876 | while testscip-shell system . . test. "x$projtoprocess" != x ; do |
| 28877 | |
| 28878 | for proj in $projtoprocess ; do |
| 28879 | # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it |
| 28880 | pcfile="" |
| 28881 | save_IFS="$IFS" |
| 28882 | IFS=":" |
| 28883 | for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do |
| 28884 | # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again |
| 28885 | if testscip-shell system . . test. -r "$dir/${proj}-uninstalled.pc" ; then |
| 28886 | pcfile="$dir/$proj-uninstalled.pc" |
| 28887 | if testscip-shell system . . test. -r "$dir/${proj}.pc" ; then |
| 28888 | pcifile="$dir/${proj}.pc" |
| 28889 | else |
| 28890 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5 |
| 28891 | echoscip-shell system . . echo. "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;} |
| 28892 | pcifile= |
| 28893 | fi |
| 28894 | break |
| 28895 | fi |
| 28896 | done |
| 28897 | IFS="$save_IFS" |
| 28898 | |
| 28899 | if testscip-shell system . . test. "x$pcfile" != x ; then |
| 28900 | # read dependencies from $pcfile and filter it |
| 28901 | projrequires=`sedscip-shell system . . sed. -n -e 's/Requires://gp' "$pcfile" | sedscip-shell system . . sed. -e 's/<\{0,1\}>\{0,1\}=[ ]\{0,\}[^ ]\{1,\}//g'` |
| 28902 | |
| 28903 | # add projrequires to the front of the list of projects that have to be processed next |
| 28904 | # at the same time, remove $proj from this list |
| 28905 | projtoprocess=`echoscip-shell system . . echo. $projtoprocess | sedscip-shell system . . sed. -e "s/$proj/$projrequires/"` |
| 28906 | |
| 28907 | # read DATA from $pcfile, if _DATA is still empty |
| 28908 | if testscip-shell system . . test. "x$SPX_DATA" = x ; then |
| 28909 | projdatadir= |
| 28910 | pcfilemod=`sedscip-shell system . . sed. -e '/[a-zA-Z]:/dscip-shell filesystem . . `/[a-zA-Z]:/d`.' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile` |
| 28911 | eval `shscip-shell system . . sh. -c "$pcfilemod"` |
| 28912 | SPX_DATA="$projdatadir" |
| 28913 | fi |
| 28914 | |
| 28915 | allproj="$allproj $proj" |
| 28916 | allpcfiles="$pcfile:$allpcfiles" |
| 28917 | |
| 28918 | else |
| 28919 | echoscip-shell system . . echo. "$as_me:$LINENO: result: no, dependency $proj not available" >&5 |
| 28920 | echoscip-shell system . . echo. "${ECHO_T}no, dependency $proj not available" >&6 |
| 28921 | allproj=fail |
| 28922 | break 2 |
| 28923 | fi |
| 28924 | |
| 28925 | if testscip-shell system . . test. "x$pcifile" != x ; then |
| 28926 | allpcifiles="$pcifile:$allpcifiles" |
| 28927 | |
| 28928 | # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty |
| 28929 | if testscip-shell system . . test. "x$SPX_DATA_INSTALLED" = x ; then |
| 28930 | projdatadir= |
| 28931 | pcifilemod=`sedscip-shell system . . sed. -e '/[a-zA-Z]:/dscip-shell filesystem . . `/[a-zA-Z]:/d`.' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile` |
| 28932 | eval `shscip-shell system . . sh. -c "$pcifilemod"` |
| 28933 | if testscip-shell system . . test. "${CYGPATH_W}" != "echo"; then |
| 28934 | projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`" |
| 28935 | fi |
| 28936 | SPX_DATA_INSTALLED="$projdatadir" |
| 28937 | fi |
| 28938 | |
| 28939 | fi |
| 28940 | |
| 28941 | break |
| 28942 | done |
| 28943 | |
| 28944 | # remove spaces on begin of $projtoprocess |
| 28945 | projtoprocess=`echoscip-shell system . . echo. $projtoprocess | sedscip-shell system . . sed. -e 's/^ *//'` |
| 28946 | |
| 28947 | done |
| 28948 | |
| 28949 | if testscip-shell system . . test. "$allproj" != fail ; then |
| 28950 | |
| 28951 | # now go through the list of .pc files and assemble compiler and linker flags |
| 28952 | # important is here to obey the reverse order that has been setup before, |
| 28953 | # since then libraries that are required by several others should be after these other libraries |
| 28954 | pcfilesprocessed="" |
| 28955 | |
| 28956 | save_IFS="$IFS" |
| 28957 | IFS=":" |
| 28958 | for pcfile in $allpcfiles ; do |
| 28959 | |
| 28960 | # if $pcfile has been processed already, skip this round |
| 28961 | if testscip-shell system . . test. "x$pcfilesprocessed" != x ; then |
| 28962 | for pcfiledone in $pcfilesprocessed ; do |
| 28963 | if testscip-shell system . . test. "$pcfiledone" = "$pcfile" ; then |
| 28964 | continue 2 |
| 28965 | fi |
| 28966 | done |
| 28967 | fi |
| 28968 | |
| 28969 | # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags: |
| 28970 | # replace "Libs:" by "echo projlibs=" |
| 28971 | # replace "Cflags:" by "echo projcflags=" |
| 28972 | # remove every line starting with <some word>: |
| 28973 | pcfilemod=`sedscip-shell system . . sed. -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/dscip-shell filesystem . . `/^[a-zA-Z]*:/d`.' $pcfile` |
| 28974 | |
| 28975 | # set projcflags and projlibs variables by running $pcfilemod |
| 28976 | # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default |
| 28977 | projcflags= |
| 28978 | projlibs= |
| 28979 | IFS="$save_IFS" |
| 28980 | eval `shscip-shell system . . sh. -c "$pcfilemod"` |
| 28981 | IFS=":" |
| 28982 | |
| 28983 | # add CYGPATH_W cludge into include flags and set CFLAGS variable |
| 28984 | if testscip-shell system . . test. "${CYGPATH_W}" != "echo"; then |
| 28985 | projcflags=`echoscip-shell system . . echo. "$projcflags" | sedscip-shell system . . sed. -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` |
| 28986 | fi |
| 28987 | SPX_CFLAGS="$projcflags $SPX_CFLAGS" |
| 28988 | |
| 28989 | # set LIBS variable |
| 28990 | SPX_LIBS="$projlibs $SPX_LIBS" |
| 28991 | |
| 28992 | # remember that we have processed $pcfile |
| 28993 | pcfilesprocessed="$pcfilesprocessed:$pcfile" |
| 28994 | |
| 28995 | done |
| 28996 | IFS="$save_IFS" |
| 28997 | |
| 28998 | |
| 28999 | # now go through the list of .pc files for installed projects and assemble compiler and linker flags |
| 29000 | # important is here again to obey the reverse order that has been setup before, |
| 29001 | # since then libraries that are required by several others should be after these other libraries |
| 29002 | pcfilesprocessed="" |
| 29003 | |
| 29004 | save_IFS="$IFS" |
| 29005 | IFS=":" |
| 29006 | for pcfile in $allpcifiles ; do |
| 29007 | |
| 29008 | # if $pcfile has been processed already, skip this round |
| 29009 | if testscip-shell system . . test. "x$pcfilesprocessed" != x ; then |
| 29010 | for pcfiledone in $pcfilesprocessed ; do |
| 29011 | if testscip-shell system . . test. "$pcfiledone" = "$pcfile" ; then |
| 29012 | continue 2 |
| 29013 | fi |
| 29014 | done |
| 29015 | fi |
| 29016 | |
| 29017 | # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags: |
| 29018 | # replace "Libs:" by "echo projlibs=" |
| 29019 | # replace "Cflags:" by "echo projcflags=" |
| 29020 | # remove every line starting with <some word>: |
| 29021 | pcfilemod=`sedscip-shell system . . sed. -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/dscip-shell filesystem . . `/^[a-zA-Z]*:/d`.' $pcfile` |
| 29022 | |
| 29023 | # set projcflags and projlibs variables by running $pcfilemod |
| 29024 | # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default |
| 29025 | projcflags= |
| 29026 | projlibs= |
| 29027 | IFS="$save_IFS" |
| 29028 | eval `shscip-shell system . . sh. -c "$pcfilemod"` |
| 29029 | IFS=":" |
| 29030 | |
| 29031 | # add CYGPATH_W cludge into include flags and set CFLAGS variable |
| 29032 | if testscip-shell system . . test. "${CYGPATH_W}" != "echo"; then |
| 29033 | projcflags=`echoscip-shell system . . echo. "$projcflags" | sedscip-shell system . . sed. -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` |
| 29034 | fi |
| 29035 | SPX_CFLAGS_INSTALLED="$projcflags $SPX_CFLAGS_INSTALLED" |
| 29036 | |
| 29037 | # set LIBS variable |
| 29038 | SPX_LIBS_INSTALLED="$projlibs $SPX_LIBS_INSTALLED" |
| 29039 | |
| 29040 | # remember that we have processed $pcfile |
| 29041 | pcfilesprocessed="$pcfilesprocessed:$pcfile" |
| 29042 | |
| 29043 | done |
| 29044 | IFS="$save_IFS" |
| 29045 | |
| 29046 | |
| 29047 | # finish up |
| 29048 | coin_has_spx=yes |
| 29049 | echoscip-shell system . . echo. "$as_me:$LINENO: result: yes" >&5 |
| 29050 | echoscip-shell system . . echo. "${ECHO_T}yes" >&6 |
| 29051 | |
| 29052 | catscip-shell system . . cat. >>confdefs.h <<\_ACEOF |
| 29053 | #define COIN_HAS_SPX 1 |
| 29054 | _ACEOF |
| 29055 | |
| 29056 | |
| 29057 | # adjust linker flags for (i)cl compiler |
| 29058 | # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl), |
| 29059 | # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`", |
| 29060 | # everything of the form "-lname" by "libname.lib", and |
| 29061 | # everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path` |
| 29062 | if testscip-shell system . . test. x$coin_cxx_is_cl = xtrue || testscip-shell system . . test. x$coin_cc_is_cl = xtrue ; |
| 29063 | then |
| 29064 | SPX_LIBS=`echoscip-shell system . . echo. " $SPX_LIBS " | sedscip-shell system . . sed. -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'` |
| 29065 | SPX_LIBS_INSTALLED=`echoscip-shell system . . echo. " $SPX_LIBS_INSTALLED" | sedscip-shell system . . sed. -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'` |
| 29066 | fi |
| 29067 | |
| 29068 | SPX_PCREQUIRES="osi-soplex" |
| 29069 | |
| 29070 | CBCGENERIC_PCREQUIRES="osi-soplex $CBCGENERIC_PCREQUIRES" |
| 29071 | CBCGENERIC_CFLAGS="$SPX_CFLAGS $CBCGENERIC_CFLAGS" |
| 29072 | CBCGENERIC_LIBS="$SPX_LIBS $CBCGENERIC_LIBS" |
| 29073 | CBCGENERIC_CFLAGS_INSTALLED="$SPX_CFLAGS_INSTALLED $CBCGENERIC_CFLAGS_INSTALLED" |
| 29074 | CBCGENERIC_LIBS_INSTALLED="$SPX_LIBS_INSTALLED $CBCGENERIC_LIBS_INSTALLED" |
| 29075 | |
| 29076 | |
| 29077 | fi |
| 29078 | |
| 29079 | |
| 29080 | |
| 29081 | if testscip-shell system . . test. $coin_has_spx != notGiven && |
| 29082 | testscip-shell system . . test. $coin_has_spx != skipping; then |
| 29083 | COIN_HAS_SPX_TRUE= |
| 29084 | COIN_HAS_SPX_FALSE='#' |
| 29085 | else |
| 29086 | COIN_HAS_SPX_TRUE='#' |
| 29087 | COIN_HAS_SPX_FALSE= |
| 29088 | fi |
| 29089 | |
| 29090 | |
| 29091 | |
| 29092 | fi |
| 29093 | |
| 29094 | else |
| 29095 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $coin_has_spx" >&5 |
| 29096 | echoscip-shell system . . echo. "${ECHO_T}$coin_has_spx" >&6 |
| 29097 | fi |
| 29098 | |
| 29099 | if testscip-shell system . . test. $coin_has_spx != skipping && |
| 29100 | testscip-shell system . . test. $coin_has_spx != notGiven ; then |
| 29101 | |
| 29102 | catscip-shell system . . cat. >>confdefs.h <<\_ACEOF |
| 29103 | #define COIN_HAS_SPX 1 |
| 29104 | _ACEOF |
| 29105 | |
| 29106 | |
| 29107 | # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given. |
| 29108 | if testscip-shell system . . test. "${enable_interpackage_dependencies+set}" = set; then |
| 29109 | enableval="$enable_interpackage_dependencies" |
| 29110 | |
| 29111 | else |
| 29112 | enable_interpackage_dependencies=yes |
| 29113 | fi; |
| 29114 | |
| 29115 | if testscip-shell system . . test. $enable_interpackage_dependencies = yes ; then |
| 29116 | # construct dependencies variables from LIBS variables |
| 29117 | # we add an extra space in LIBS so we can substitute out everything starting with " -" |
| 29118 | # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows |
| 29119 | # then remove everything of the form -xxx |
| 29120 | # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl) |
| 29121 | SPX_DEPENDENCIES=`echoscip-shell system . . echo. " $SPX_LIBS" | sedscip-shell system . . sed. -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'` |
| 29122 | |
| 29123 | CBCGENERIC_DEPENDENCIES=`echoscip-shell system . . echo. " $CBCGENERIC_LIBS " | sedscip-shell system . . sed. -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'` |
| 29124 | |
| 29125 | fi |
| 29126 | |
| 29127 | if testscip-shell system . . test. 1 = 0 ; then #change this test to enable a bit of debugging output |
| 29128 | if testscip-shell system . . test. -n "$SPX_CFLAGS" ; then |
| 29129 | { echoscip-shell system . . echo. "$as_me:$LINENO: Spx CFLAGS are $SPX_CFLAGS" >&5 |
| 29130 | echoscip-shell system . . echo. "$as_me: Spx CFLAGS are $SPX_CFLAGS" >&6;} |
| 29131 | fi |
| 29132 | if testscip-shell system . . test. -n "$SPX_LIBS" ; then |
| 29133 | { echoscip-shell system . . echo. "$as_me:$LINENO: Spx LIBS are $SPX_LIBS" >&5 |
| 29134 | echoscip-shell system . . echo. "$as_me: Spx LIBS are $SPX_LIBS" >&6;} |
| 29135 | fi |
| 29136 | if testscip-shell system . . test. -n "$SPX_DEPENDENCIES" ; then |
| 29137 | { echoscip-shell system . . echo. "$as_me:$LINENO: Spx DEPENDENCIES are $SPX_DEPENDENCIES" >&5 |
| 29138 | echoscip-shell system . . echo. "$as_me: Spx DEPENDENCIES are $SPX_DEPENDENCIES" >&6;} |
| 29139 | fi |
| 29140 | if testscip-shell system . . test. -n "$SPX_DATA" ; then |
| 29141 | { echoscip-shell system . . echo. "$as_me:$LINENO: Spx DATA is $SPX_DATA" >&5 |
| 29142 | echoscip-shell system . . echo. "$as_me: Spx DATA is $SPX_DATA" >&6;} |
| 29143 | fi |
| 29144 | if testscip-shell system . . test. -n "$SPX_PCLIBS" ; then |
| 29145 | { echoscip-shell system . . echo. "$as_me:$LINENO: Spx PCLIBS are $SPX_PCLIBS" >&5 |
| 29146 | echoscip-shell system . . echo. "$as_me: Spx PCLIBS are $SPX_PCLIBS" >&6;} |
| 29147 | fi |
| 29148 | if testscip-shell system . . test. -n "$SPX_PCREQUIRES" ; then |
| 29149 | { echoscip-shell system . . echo. "$as_me:$LINENO: Spx PCREQUIRES are $SPX_PCREQUIRES" >&5 |
| 29150 | echoscip-shell system . . echo. "$as_me: Spx PCREQUIRES are $SPX_PCREQUIRES" >&6;} |
| 29151 | fi |
| 29152 | |
| 29153 | { echoscip-shell system . . echo. "$as_me:$LINENO: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&5 |
| 29154 | echoscip-shell system . . echo. "$as_me: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&6;} |
| 29155 | { echoscip-shell system . . echo. "$as_me:$LINENO: CbcGeneric LIBS are $CBCGENERIC_LIBS" >&5 |
| 29156 | echoscip-shell system . . echo. "$as_me: CbcGeneric LIBS are $CBCGENERIC_LIBS" >&6;} |
| 29157 | { echoscip-shell system . . echo. "$as_me:$LINENO: CbcGeneric DEPENDENCIES are $CBCGENERIC_DEPENDENCIES" >&5 |
| 29158 | echoscip-shell system . . echo. "$as_me: CbcGeneric DEPENDENCIES are $CBCGENERIC_DEPENDENCIES" >&6;} |
| 29159 | |
| 29160 | fi |
| 29161 | fi |
| 29162 | |
| 29163 | # Define the Makefile conditional |
| 29164 | |
| 29165 | |
| 29166 | if testscip-shell system . . test. $coin_has_spx != notGiven && |
| 29167 | testscip-shell system . . test. $coin_has_spx != skipping; then |
| 29168 | COIN_HAS_SPX_TRUE= |
| 29169 | COIN_HAS_SPX_FALSE='#' |
| 29170 | else |
| 29171 | COIN_HAS_SPX_TRUE='#' |
| 29172 | COIN_HAS_SPX_FALSE= |
| 29173 | fi |
| 29174 | |
| 29175 | |
| 29176 | |
| 29177 | |
| 29178 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for COIN-OR package Xpr" >&5 |
| 29179 | echoscip-shell system . . echo. $ECHO_N "checking for COIN-OR package Xpr... $ECHO_C" >&6 |
| 29180 | |
| 29181 | coin_has_xpr=notGiven |
| 29182 | |
| 29183 | # check if user wants to skip package in any case |
| 29184 | if testscip-shell system . . test. x"$COIN_SKIP_PROJECTS" != x; then |
| 29185 | for dir in $COIN_SKIP_PROJECTS; do |
| 29186 | if testscip-shell system . . test. $dir = "Xpr"; then |
| 29187 | coin_has_xpr=skipping |
| 29188 | fi |
| 29189 | done |
| 29190 | fi |
| 29191 | |
| 29192 | if testscip-shell system . . test. "$coin_has_xpr" != skipping; then |
| 29193 | |
| 29194 | # Check whether --with-m4_tolower(Xpr) or --without-m4_tolower(Xpr) was given. |
| 29195 | if testscip-shell system . . test. "${with_xpr+set}" = set; then |
| 29196 | withval="$with_xpr" |
| 29197 | if testscip-shell system . . test. "$withval" = no ; then |
| 29198 | coin_has_xpr=skipping |
| 29199 | fi |
| 29200 | |
| 29201 | fi; |
| 29202 | fi |
| 29203 | |
| 29204 | XPR_LIBS= |
| 29205 | XPR_CFLAGS= |
| 29206 | XPR_DATA= |
| 29207 | XPR_DEPENDENCIES= |
| 29208 | XPR_PCLIBS= |
| 29209 | XPR_PCREQUIRES= |
| 29210 | |
| 29211 | |
| 29212 | |
| 29213 | |
| 29214 | |
| 29215 | |
| 29216 | |
| 29217 | |
| 29218 | |
| 29219 | #check if user provided LIBS, CFLAGS, or DATA for package or disables use of package |
| 29220 | if testscip-shell system . . test. $coin_has_xpr != skipping; then |
| 29221 | |
| 29222 | # Check whether --with-m4_tolower(Xpr)-lib or --without-m4_tolower(Xpr)-lib was given. |
| 29223 | if testscip-shell system . . test. "${with_xpr_lib+set}" = set; then |
| 29224 | withval="$with_xpr_lib" |
| 29225 | if testscip-shell system . . test. "$withval" = no ; then |
| 29226 | coin_has_xpr=skipping |
| 29227 | else |
| 29228 | coin_has_xpr=yes |
| 29229 | XPR_LIBS="$withval" |
| 29230 | XPR_PCLIBS="$withval" |
| 29231 | |
| 29232 | # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables |
| 29233 | if testscip-shell system . . test. -z "$PKG_CONFIG" ; then |
| 29234 | XPR_LIBS_INSTALLED="$withval" |
| 29235 | |
| 29236 | fi |
| 29237 | fi |
| 29238 | |
| 29239 | fi; |
| 29240 | fi |
| 29241 | |
| 29242 | if testscip-shell system . . test. $coin_has_xpr != skipping; then |
| 29243 | |
| 29244 | # Check whether --with-m4_tolower(Xpr)-incdir or --without-m4_tolower(Xpr)-incdir was given. |
| 29245 | if testscip-shell system . . test. "${with_xpr_incdir+set}" = set; then |
| 29246 | withval="$with_xpr_incdir" |
| 29247 | if testscip-shell system . . test. "$withval" = no ; then |
| 29248 | coin_has_xpr=skipping |
| 29249 | else |
| 29250 | coin_has_xpr=yes |
| 29251 | XPR_CFLAGS="-I`${CYGPATH_W} $withval`" |
| 29252 | |
| 29253 | # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables |
| 29254 | if testscip-shell system . . test. -z "$PKG_CONFIG" ; then |
| 29255 | XPR_CFLAGS_INSTALLED="$XPR_CFLAGS" |
| 29256 | |
| 29257 | fi |
| 29258 | fi |
| 29259 | |
| 29260 | fi; |
| 29261 | fi |
| 29262 | |
| 29263 | if testscip-shell system . . test. $coin_has_xpr != skipping; then |
| 29264 | |
| 29265 | # Check whether --with-m4_tolower(Xpr)-datadir or --without-m4_tolower(Xpr)-datadir was given. |
| 29266 | if testscip-shell system . . test. "${with_xpr_datadir+set}" = set; then |
| 29267 | withval="$with_xpr_datadir" |
| 29268 | if testscip-shell system . . test. "$withval" = no ; then |
| 29269 | coin_has_xpr=skipping |
| 29270 | else |
| 29271 | coin_has_xpr=yes |
| 29272 | XPR_DATA="$withval" |
| 29273 | # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables |
| 29274 | if testscip-shell system . . test. -z "$PKG_CONFIG" ; then |
| 29275 | XPR_DATA_INSTALLED="$withval" |
| 29276 | fi |
| 29277 | fi |
| 29278 | |
| 29279 | fi; |
| 29280 | fi |
| 29281 | |
| 29282 | if testscip-shell system . . test. $coin_has_xpr = notGiven; then |
| 29283 | if testscip-shell system . . test. -n "$PKG_CONFIG" ; then |
| 29284 | # set search path for pkg-config |
| 29285 | # need to export variable to be sure that the following pkg-config gets these values |
| 29286 | coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH" |
| 29287 | PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED" |
| 29288 | export PKG_CONFIG_PATH |
| 29289 | |
| 29290 | # let pkg-config do it's magic |
| 29291 | |
| 29292 | |
| 29293 | |
| 29294 | if testscip-shell system . . test. -n "$PKG_CONFIG" ; then |
| 29295 | if $PKG_CONFIG --exists "osi-xpress"; then |
| 29296 | XPR_VERSIONS=`$PKG_CONFIG --modversion "osi-xpress" 2>/dev/nullscip-shell filesystem . . `/dev/null`. | trscip-shell system . . tr. '\n' ' '` |
| 29297 | cflags=`$PKG_CONFIG --cflags "osi-xpress" 2>/dev/nullscip-shell filesystem . . `/dev/null`.` |
| 29298 | # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files |
| 29299 | # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's |
| 29300 | # but only do this if is not trivial |
| 29301 | if testscip-shell system . . test. "$CYGPATH_W" != "echo" ; then |
| 29302 | # need to put into brackets since otherwise autoconf replaces the brackets in the sed command |
| 29303 | cflags=`echoscip-shell system . . echo. $cflags | sedscip-shell system . . sed. -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` |
| 29304 | fi |
| 29305 | XPR_CFLAGS="$cflags" |
| 29306 | XPR_LIBS=`$PKG_CONFIG --libs "osi-xpress" 2>/dev/nullscip-shell filesystem . . `/dev/null`.` |
| 29307 | XPR_DATA=`$PKG_CONFIG --variable=datadir "osi-xpress" 2>/dev/nullscip-shell filesystem . . `/dev/null`.` |
| 29308 | coin_has_xpr=yes |
| 29309 | echoscip-shell system . . echo. "$as_me:$LINENO: result: yes: $XPR_VERSIONS" >&5 |
| 29310 | echoscip-shell system . . echo. "${ECHO_T}yes: $XPR_VERSIONS" >&6 |
| 29311 | |
| 29312 | # adjust linker flags for (i)cl compiler |
| 29313 | # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl) |
| 29314 | if testscip-shell system . . test. x$coin_cxx_is_cl = xtrue || testscip-shell system . . test. x$coin_cc_is_cl = xtrue ; |
| 29315 | then |
| 29316 | XPR_LIBS=`echoscip-shell system . . echo. " $XPR_LIBS " | sedscip-shell system . . sed. -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'` |
| 29317 | fi |
| 29318 | XPR_PCREQUIRES="osi-xpress" |
| 29319 | |
| 29320 | # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in |
| 29321 | |
| 29322 | |
| 29323 | |
| 29324 | else |
| 29325 | XPR_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi-xpress"` |
| 29326 | coin_has_xpr=notGiven |
| 29327 | echoscip-shell system . . echo. "$as_me:$LINENO: result: not given: $XPR_PKG_ERRORS" >&5 |
| 29328 | echoscip-shell system . . echo. "${ECHO_T}not given: $XPR_PKG_ERRORS" >&6 |
| 29329 | |
| 29330 | fi |
| 29331 | else |
| 29332 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: \"Cannot check for existance of module Xpr without pkg-config\"" >&5 |
| 29333 | echoscip-shell system . . echo. "$as_me: error: \"Cannot check for existance of module Xpr without pkg-config\"" >&2;} |
| 29334 | { (exit 1); exit 1; }; } |
| 29335 | fi |
| 29336 | |
| 29337 | |
| 29338 | |
| 29339 | |
| 29340 | # reset PKG_CONFIG_PATH variable |
| 29341 | PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH" |
| 29342 | export PKG_CONFIG_PATH |
| 29343 | |
| 29344 | else |
| 29345 | echoscip-shell system . . echo. "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5 |
| 29346 | echoscip-shell system . . echo. "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6 |
| 29347 | |
| 29348 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for COIN-OR package Xpr (fallback)" >&5 |
| 29349 | echoscip-shell system . . echo. $ECHO_N "checking for COIN-OR package Xpr (fallback)... $ECHO_C" >&6 |
| 29350 | |
| 29351 | coin_has_xpr=notGiven |
| 29352 | XPR_LIBS= |
| 29353 | XPR_LIBS_INSTALLED= |
| 29354 | XPR_CFLAGS= |
| 29355 | XPR_CFLAGS_INSTALLED= |
| 29356 | XPR_DATA= |
| 29357 | XPR_DATA_INSTALLED= |
| 29358 | XPR_PCLIBS= |
| 29359 | XPR_PCREQUIRES= |
| 29360 | |
| 29361 | # initial list of dependencies is "osi-xpress", but we need to filter out version number specifications (= x, <= x, >= x, != x) |
| 29362 | projtoprocess="osi-xpress" |
| 29363 | |
| 29364 | # we first expand the list of projects to process by adding all dependencies just behind the project which depends on it |
| 29365 | # further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards |
| 29366 | # the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples |
| 29367 | # also, we setup the DATA variable |
| 29368 | allproj="" |
| 29369 | allpcfiles="" |
| 29370 | allpcifiles="" |
| 29371 | while testscip-shell system . . test. "x$projtoprocess" != x ; do |
| 29372 | |
| 29373 | for proj in $projtoprocess ; do |
| 29374 | # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it |
| 29375 | pcfile="" |
| 29376 | save_IFS="$IFS" |
| 29377 | IFS=":" |
| 29378 | for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do |
| 29379 | # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again |
| 29380 | if testscip-shell system . . test. -r "$dir/${proj}-uninstalled.pc" ; then |
| 29381 | pcfile="$dir/$proj-uninstalled.pc" |
| 29382 | if testscip-shell system . . test. -r "$dir/${proj}.pc" ; then |
| 29383 | pcifile="$dir/${proj}.pc" |
| 29384 | else |
| 29385 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5 |
| 29386 | echoscip-shell system . . echo. "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;} |
| 29387 | pcifile= |
| 29388 | fi |
| 29389 | break |
| 29390 | fi |
| 29391 | done |
| 29392 | IFS="$save_IFS" |
| 29393 | |
| 29394 | if testscip-shell system . . test. "x$pcfile" != x ; then |
| 29395 | # read dependencies from $pcfile and filter it |
| 29396 | projrequires=`sedscip-shell system . . sed. -n -e 's/Requires://gp' "$pcfile" | sedscip-shell system . . sed. -e 's/<\{0,1\}>\{0,1\}=[ ]\{0,\}[^ ]\{1,\}//g'` |
| 29397 | |
| 29398 | # add projrequires to the front of the list of projects that have to be processed next |
| 29399 | # at the same time, remove $proj from this list |
| 29400 | projtoprocess=`echoscip-shell system . . echo. $projtoprocess | sedscip-shell system . . sed. -e "s/$proj/$projrequires/"` |
| 29401 | |
| 29402 | # read DATA from $pcfile, if _DATA is still empty |
| 29403 | if testscip-shell system . . test. "x$XPR_DATA" = x ; then |
| 29404 | projdatadir= |
| 29405 | pcfilemod=`sedscip-shell system . . sed. -e '/[a-zA-Z]:/dscip-shell filesystem . . `/[a-zA-Z]:/d`.' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile` |
| 29406 | eval `shscip-shell system . . sh. -c "$pcfilemod"` |
| 29407 | XPR_DATA="$projdatadir" |
| 29408 | fi |
| 29409 | |
| 29410 | allproj="$allproj $proj" |
| 29411 | allpcfiles="$pcfile:$allpcfiles" |
| 29412 | |
| 29413 | else |
| 29414 | echoscip-shell system . . echo. "$as_me:$LINENO: result: no, dependency $proj not available" >&5 |
| 29415 | echoscip-shell system . . echo. "${ECHO_T}no, dependency $proj not available" >&6 |
| 29416 | allproj=fail |
| 29417 | break 2 |
| 29418 | fi |
| 29419 | |
| 29420 | if testscip-shell system . . test. "x$pcifile" != x ; then |
| 29421 | allpcifiles="$pcifile:$allpcifiles" |
| 29422 | |
| 29423 | # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty |
| 29424 | if testscip-shell system . . test. "x$XPR_DATA_INSTALLED" = x ; then |
| 29425 | projdatadir= |
| 29426 | pcifilemod=`sedscip-shell system . . sed. -e '/[a-zA-Z]:/dscip-shell filesystem . . `/[a-zA-Z]:/d`.' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile` |
| 29427 | eval `shscip-shell system . . sh. -c "$pcifilemod"` |
| 29428 | if testscip-shell system . . test. "${CYGPATH_W}" != "echo"; then |
| 29429 | projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`" |
| 29430 | fi |
| 29431 | XPR_DATA_INSTALLED="$projdatadir" |
| 29432 | fi |
| 29433 | |
| 29434 | fi |
| 29435 | |
| 29436 | break |
| 29437 | done |
| 29438 | |
| 29439 | # remove spaces on begin of $projtoprocess |
| 29440 | projtoprocess=`echoscip-shell system . . echo. $projtoprocess | sedscip-shell system . . sed. -e 's/^ *//'` |
| 29441 | |
| 29442 | done |
| 29443 | |
| 29444 | if testscip-shell system . . test. "$allproj" != fail ; then |
| 29445 | |
| 29446 | # now go through the list of .pc files and assemble compiler and linker flags |
| 29447 | # important is here to obey the reverse order that has been setup before, |
| 29448 | # since then libraries that are required by several others should be after these other libraries |
| 29449 | pcfilesprocessed="" |
| 29450 | |
| 29451 | save_IFS="$IFS" |
| 29452 | IFS=":" |
| 29453 | for pcfile in $allpcfiles ; do |
| 29454 | |
| 29455 | # if $pcfile has been processed already, skip this round |
| 29456 | if testscip-shell system . . test. "x$pcfilesprocessed" != x ; then |
| 29457 | for pcfiledone in $pcfilesprocessed ; do |
| 29458 | if testscip-shell system . . test. "$pcfiledone" = "$pcfile" ; then |
| 29459 | continue 2 |
| 29460 | fi |
| 29461 | done |
| 29462 | fi |
| 29463 | |
| 29464 | # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags: |
| 29465 | # replace "Libs:" by "echo projlibs=" |
| 29466 | # replace "Cflags:" by "echo projcflags=" |
| 29467 | # remove every line starting with <some word>: |
| 29468 | pcfilemod=`sedscip-shell system . . sed. -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/dscip-shell filesystem . . `/^[a-zA-Z]*:/d`.' $pcfile` |
| 29469 | |
| 29470 | # set projcflags and projlibs variables by running $pcfilemod |
| 29471 | # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default |
| 29472 | projcflags= |
| 29473 | projlibs= |
| 29474 | IFS="$save_IFS" |
| 29475 | eval `shscip-shell system . . sh. -c "$pcfilemod"` |
| 29476 | IFS=":" |
| 29477 | |
| 29478 | # add CYGPATH_W cludge into include flags and set CFLAGS variable |
| 29479 | if testscip-shell system . . test. "${CYGPATH_W}" != "echo"; then |
| 29480 | projcflags=`echoscip-shell system . . echo. "$projcflags" | sedscip-shell system . . sed. -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` |
| 29481 | fi |
| 29482 | XPR_CFLAGS="$projcflags $XPR_CFLAGS" |
| 29483 | |
| 29484 | # set LIBS variable |
| 29485 | XPR_LIBS="$projlibs $XPR_LIBS" |
| 29486 | |
| 29487 | # remember that we have processed $pcfile |
| 29488 | pcfilesprocessed="$pcfilesprocessed:$pcfile" |
| 29489 | |
| 29490 | done |
| 29491 | IFS="$save_IFS" |
| 29492 | |
| 29493 | |
| 29494 | # now go through the list of .pc files for installed projects and assemble compiler and linker flags |
| 29495 | # important is here again to obey the reverse order that has been setup before, |
| 29496 | # since then libraries that are required by several others should be after these other libraries |
| 29497 | pcfilesprocessed="" |
| 29498 | |
| 29499 | save_IFS="$IFS" |
| 29500 | IFS=":" |
| 29501 | for pcfile in $allpcifiles ; do |
| 29502 | |
| 29503 | # if $pcfile has been processed already, skip this round |
| 29504 | if testscip-shell system . . test. "x$pcfilesprocessed" != x ; then |
| 29505 | for pcfiledone in $pcfilesprocessed ; do |
| 29506 | if testscip-shell system . . test. "$pcfiledone" = "$pcfile" ; then |
| 29507 | continue 2 |
| 29508 | fi |
| 29509 | done |
| 29510 | fi |
| 29511 | |
| 29512 | # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags: |
| 29513 | # replace "Libs:" by "echo projlibs=" |
| 29514 | # replace "Cflags:" by "echo projcflags=" |
| 29515 | # remove every line starting with <some word>: |
| 29516 | pcfilemod=`sedscip-shell system . . sed. -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/dscip-shell filesystem . . `/^[a-zA-Z]*:/d`.' $pcfile` |
| 29517 | |
| 29518 | # set projcflags and projlibs variables by running $pcfilemod |
| 29519 | # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default |
| 29520 | projcflags= |
| 29521 | projlibs= |
| 29522 | IFS="$save_IFS" |
| 29523 | eval `shscip-shell system . . sh. -c "$pcfilemod"` |
| 29524 | IFS=":" |
| 29525 | |
| 29526 | # add CYGPATH_W cludge into include flags and set CFLAGS variable |
| 29527 | if testscip-shell system . . test. "${CYGPATH_W}" != "echo"; then |
| 29528 | projcflags=`echoscip-shell system . . echo. "$projcflags" | sedscip-shell system . . sed. -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` |
| 29529 | fi |
| 29530 | XPR_CFLAGS_INSTALLED="$projcflags $XPR_CFLAGS_INSTALLED" |
| 29531 | |
| 29532 | # set LIBS variable |
| 29533 | XPR_LIBS_INSTALLED="$projlibs $XPR_LIBS_INSTALLED" |
| 29534 | |
| 29535 | # remember that we have processed $pcfile |
| 29536 | pcfilesprocessed="$pcfilesprocessed:$pcfile" |
| 29537 | |
| 29538 | done |
| 29539 | IFS="$save_IFS" |
| 29540 | |
| 29541 | |
| 29542 | # finish up |
| 29543 | coin_has_xpr=yes |
| 29544 | echoscip-shell system . . echo. "$as_me:$LINENO: result: yes" >&5 |
| 29545 | echoscip-shell system . . echo. "${ECHO_T}yes" >&6 |
| 29546 | |
| 29547 | catscip-shell system . . cat. >>confdefs.h <<\_ACEOF |
| 29548 | #define COIN_HAS_XPR 1 |
| 29549 | _ACEOF |
| 29550 | |
| 29551 | |
| 29552 | # adjust linker flags for (i)cl compiler |
| 29553 | # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl), |
| 29554 | # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`", |
| 29555 | # everything of the form "-lname" by "libname.lib", and |
| 29556 | # everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path` |
| 29557 | if testscip-shell system . . test. x$coin_cxx_is_cl = xtrue || testscip-shell system . . test. x$coin_cc_is_cl = xtrue ; |
| 29558 | then |
| 29559 | XPR_LIBS=`echoscip-shell system . . echo. " $XPR_LIBS " | sedscip-shell system . . sed. -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'` |
| 29560 | XPR_LIBS_INSTALLED=`echoscip-shell system . . echo. " $XPR_LIBS_INSTALLED" | sedscip-shell system . . sed. -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'` |
| 29561 | fi |
| 29562 | |
| 29563 | XPR_PCREQUIRES="osi-xpress" |
| 29564 | |
| 29565 | |
| 29566 | fi |
| 29567 | |
| 29568 | |
| 29569 | |
| 29570 | if testscip-shell system . . test. $coin_has_xpr != notGiven && |
| 29571 | testscip-shell system . . test. $coin_has_xpr != skipping; then |
| 29572 | COIN_HAS_XPR_TRUE= |
| 29573 | COIN_HAS_XPR_FALSE='#' |
| 29574 | else |
| 29575 | COIN_HAS_XPR_TRUE='#' |
| 29576 | COIN_HAS_XPR_FALSE= |
| 29577 | fi |
| 29578 | |
| 29579 | |
| 29580 | |
| 29581 | fi |
| 29582 | |
| 29583 | else |
| 29584 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $coin_has_xpr" >&5 |
| 29585 | echoscip-shell system . . echo. "${ECHO_T}$coin_has_xpr" >&6 |
| 29586 | fi |
| 29587 | |
| 29588 | if testscip-shell system . . test. $coin_has_xpr != skipping && |
| 29589 | testscip-shell system . . test. $coin_has_xpr != notGiven ; then |
| 29590 | |
| 29591 | catscip-shell system . . cat. >>confdefs.h <<\_ACEOF |
| 29592 | #define COIN_HAS_XPR 1 |
| 29593 | _ACEOF |
| 29594 | |
| 29595 | |
| 29596 | # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given. |
| 29597 | if testscip-shell system . . test. "${enable_interpackage_dependencies+set}" = set; then |
| 29598 | enableval="$enable_interpackage_dependencies" |
| 29599 | |
| 29600 | else |
| 29601 | enable_interpackage_dependencies=yes |
| 29602 | fi; |
| 29603 | |
| 29604 | if testscip-shell system . . test. $enable_interpackage_dependencies = yes ; then |
| 29605 | # construct dependencies variables from LIBS variables |
| 29606 | # we add an extra space in LIBS so we can substitute out everything starting with " -" |
| 29607 | # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows |
| 29608 | # then remove everything of the form -xxx |
| 29609 | # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl) |
| 29610 | XPR_DEPENDENCIES=`echoscip-shell system . . echo. " $XPR_LIBS" | sedscip-shell system . . sed. -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'` |
| 29611 | |
| 29612 | fi |
| 29613 | |
| 29614 | if testscip-shell system . . test. 1 = 0 ; then #change this test to enable a bit of debugging output |
| 29615 | if testscip-shell system . . test. -n "$XPR_CFLAGS" ; then |
| 29616 | { echoscip-shell system . . echo. "$as_me:$LINENO: Xpr CFLAGS are $XPR_CFLAGS" >&5 |
| 29617 | echoscip-shell system . . echo. "$as_me: Xpr CFLAGS are $XPR_CFLAGS" >&6;} |
| 29618 | fi |
| 29619 | if testscip-shell system . . test. -n "$XPR_LIBS" ; then |
| 29620 | { echoscip-shell system . . echo. "$as_me:$LINENO: Xpr LIBS are $XPR_LIBS" >&5 |
| 29621 | echoscip-shell system . . echo. "$as_me: Xpr LIBS are $XPR_LIBS" >&6;} |
| 29622 | fi |
| 29623 | if testscip-shell system . . test. -n "$XPR_DEPENDENCIES" ; then |
| 29624 | { echoscip-shell system . . echo. "$as_me:$LINENO: Xpr DEPENDENCIES are $XPR_DEPENDENCIES" >&5 |
| 29625 | echoscip-shell system . . echo. "$as_me: Xpr DEPENDENCIES are $XPR_DEPENDENCIES" >&6;} |
| 29626 | fi |
| 29627 | if testscip-shell system . . test. -n "$XPR_DATA" ; then |
| 29628 | { echoscip-shell system . . echo. "$as_me:$LINENO: Xpr DATA is $XPR_DATA" >&5 |
| 29629 | echoscip-shell system . . echo. "$as_me: Xpr DATA is $XPR_DATA" >&6;} |
| 29630 | fi |
| 29631 | if testscip-shell system . . test. -n "$XPR_PCLIBS" ; then |
| 29632 | { echoscip-shell system . . echo. "$as_me:$LINENO: Xpr PCLIBS are $XPR_PCLIBS" >&5 |
| 29633 | echoscip-shell system . . echo. "$as_me: Xpr PCLIBS are $XPR_PCLIBS" >&6;} |
| 29634 | fi |
| 29635 | if testscip-shell system . . test. -n "$XPR_PCREQUIRES" ; then |
| 29636 | { echoscip-shell system . . echo. "$as_me:$LINENO: Xpr PCREQUIRES are $XPR_PCREQUIRES" >&5 |
| 29637 | echoscip-shell system . . echo. "$as_me: Xpr PCREQUIRES are $XPR_PCREQUIRES" >&6;} |
| 29638 | fi |
| 29639 | |
| 29640 | fi |
| 29641 | fi |
| 29642 | |
| 29643 | # Define the Makefile conditional |
| 29644 | |
| 29645 | |
| 29646 | if testscip-shell system . . test. $coin_has_xpr != notGiven && |
| 29647 | testscip-shell system . . test. $coin_has_xpr != skipping; then |
| 29648 | COIN_HAS_XPR_TRUE= |
| 29649 | COIN_HAS_XPR_FALSE='#' |
| 29650 | else |
| 29651 | COIN_HAS_XPR_TRUE='#' |
| 29652 | COIN_HAS_XPR_FALSE= |
| 29653 | fi |
| 29654 | |
| 29655 | |
| 29656 | |
| 29657 | |
| 29658 | ############################################################################# |
| 29659 | # Other third party software # |
| 29660 | ############################################################################# |
| 29661 | |
| 29662 | # Ampl Solver library |
| 29663 | |
| 29664 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for COIN-OR package ASL" >&5 |
| 29665 | echoscip-shell system . . echo. $ECHO_N "checking for COIN-OR package ASL... $ECHO_C" >&6 |
| 29666 | |
| 29667 | coin_has_asl=notGiven |
| 29668 | |
| 29669 | # check if user wants to skip package in any case |
| 29670 | if testscip-shell system . . test. x"$COIN_SKIP_PROJECTS" != x; then |
| 29671 | for dir in $COIN_SKIP_PROJECTS; do |
| 29672 | if testscip-shell system . . test. $dir = "ASL"; then |
| 29673 | coin_has_asl=skipping |
| 29674 | fi |
| 29675 | done |
| 29676 | fi |
| 29677 | |
| 29678 | if testscip-shell system . . test. "$coin_has_asl" != skipping; then |
| 29679 | |
| 29680 | # Check whether --with-m4_tolower(ASL) or --without-m4_tolower(ASL) was given. |
| 29681 | if testscip-shell system . . test. "${with_asl+set}" = set; then |
| 29682 | withval="$with_asl" |
| 29683 | if testscip-shell system . . test. "$withval" = no ; then |
| 29684 | coin_has_asl=skipping |
| 29685 | fi |
| 29686 | |
| 29687 | fi; |
| 29688 | fi |
| 29689 | |
| 29690 | ASL_LIBS= |
| 29691 | ASL_CFLAGS= |
| 29692 | ASL_DATA= |
| 29693 | ASL_DEPENDENCIES= |
| 29694 | ASL_PCLIBS= |
| 29695 | ASL_PCREQUIRES= |
| 29696 | |
| 29697 | |
| 29698 | |
| 29699 | |
| 29700 | |
| 29701 | |
| 29702 | |
| 29703 | |
| 29704 | |
| 29705 | |
| 29706 | |
| 29707 | |
| 29708 | |
| 29709 | |
| 29710 | |
| 29711 | |
| 29712 | |
| 29713 | |
| 29714 | |
| 29715 | |
| 29716 | |
| 29717 | |
| 29718 | |
| 29719 | |
| 29720 | |
| 29721 | #check if user provided LIBS, CFLAGS, or DATA for package or disables use of package |
| 29722 | if testscip-shell system . . test. $coin_has_asl != skipping; then |
| 29723 | |
| 29724 | # Check whether --with-m4_tolower(ASL)-lib or --without-m4_tolower(ASL)-lib was given. |
| 29725 | if testscip-shell system . . test. "${with_asl_lib+set}" = set; then |
| 29726 | withval="$with_asl_lib" |
| 29727 | if testscip-shell system . . test. "$withval" = no ; then |
| 29728 | coin_has_asl=skipping |
| 29729 | else |
| 29730 | coin_has_asl=yes |
| 29731 | ASL_LIBS="$withval" |
| 29732 | ASL_PCLIBS="$withval" |
| 29733 | |
| 29734 | CBCLIB_PCLIBS="$withval $CBCLIB_PCLIBS" |
| 29735 | CBCLIB_LIBS="$withval $CBCLIB_LIBS" |
| 29736 | |
| 29737 | CBCGENERIC_PCLIBS="$withval $CBCGENERIC_PCLIBS" |
| 29738 | CBCGENERIC_LIBS="$withval $CBCGENERIC_LIBS" |
| 29739 | |
| 29740 | # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables |
| 29741 | if testscip-shell system . . test. -z "$PKG_CONFIG" ; then |
| 29742 | ASL_LIBS_INSTALLED="$withval" |
| 29743 | CBCLIB_LIBS_INSTALLED="$withval $CBCLIB_LIBS_INSTALLED"CBCGENERIC_LIBS_INSTALLED="$withval $CBCGENERIC_LIBS_INSTALLED" |
| 29744 | fi |
| 29745 | fi |
| 29746 | |
| 29747 | fi; |
| 29748 | fi |
| 29749 | |
| 29750 | if testscip-shell system . . test. $coin_has_asl != skipping; then |
| 29751 | |
| 29752 | # Check whether --with-m4_tolower(ASL)-incdir or --without-m4_tolower(ASL)-incdir was given. |
| 29753 | if testscip-shell system . . test. "${with_asl_incdir+set}" = set; then |
| 29754 | withval="$with_asl_incdir" |
| 29755 | if testscip-shell system . . test. "$withval" = no ; then |
| 29756 | coin_has_asl=skipping |
| 29757 | else |
| 29758 | coin_has_asl=yes |
| 29759 | ASL_CFLAGS="-I`${CYGPATH_W} $withval`" |
| 29760 | CBCLIB_CFLAGS="-I`${CYGPATH_W} $withval` $CBCLIB_CFLAGS"CBCGENERIC_CFLAGS="-I`${CYGPATH_W} $withval` $CBCGENERIC_CFLAGS" |
| 29761 | # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables |
| 29762 | if testscip-shell system . . test. -z "$PKG_CONFIG" ; then |
| 29763 | ASL_CFLAGS_INSTALLED="$ASL_CFLAGS" |
| 29764 | CBCLIB_CFLAGS_INSTALLED="$ASL_CFLAGS $CBCLIB_CFLAGS_INSTALLED"CBCGENERIC_CFLAGS_INSTALLED="$ASL_CFLAGS $CBCGENERIC_CFLAGS_INSTALLED" |
| 29765 | fi |
| 29766 | fi |
| 29767 | |
| 29768 | fi; |
| 29769 | fi |
| 29770 | |
| 29771 | if testscip-shell system . . test. $coin_has_asl != skipping; then |
| 29772 | |
| 29773 | # Check whether --with-m4_tolower(ASL)-datadir or --without-m4_tolower(ASL)-datadir was given. |
| 29774 | if testscip-shell system . . test. "${with_asl_datadir+set}" = set; then |
| 29775 | withval="$with_asl_datadir" |
| 29776 | if testscip-shell system . . test. "$withval" = no ; then |
| 29777 | coin_has_asl=skipping |
| 29778 | else |
| 29779 | coin_has_asl=yes |
| 29780 | ASL_DATA="$withval" |
| 29781 | # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables |
| 29782 | if testscip-shell system . . test. -z "$PKG_CONFIG" ; then |
| 29783 | ASL_DATA_INSTALLED="$withval" |
| 29784 | fi |
| 29785 | fi |
| 29786 | |
| 29787 | fi; |
| 29788 | fi |
| 29789 | |
| 29790 | if testscip-shell system . . test. $coin_has_asl = notGiven; then |
| 29791 | if testscip-shell system . . test. -n "$PKG_CONFIG" ; then |
| 29792 | # set search path for pkg-config |
| 29793 | # need to export variable to be sure that the following pkg-config gets these values |
| 29794 | coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH" |
| 29795 | PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED" |
| 29796 | export PKG_CONFIG_PATH |
| 29797 | |
| 29798 | # let pkg-config do it's magic |
| 29799 | |
| 29800 | |
| 29801 | |
| 29802 | if testscip-shell system . . test. -n "$PKG_CONFIG" ; then |
| 29803 | if $PKG_CONFIG --exists "coinasl"; then |
| 29804 | ASL_VERSIONS=`$PKG_CONFIG --modversion "coinasl" 2>/dev/nullscip-shell filesystem . . `/dev/null`. | trscip-shell system . . tr. '\n' ' '` |
| 29805 | cflags=`$PKG_CONFIG --cflags "coinasl" 2>/dev/nullscip-shell filesystem . . `/dev/null`.` |
| 29806 | # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files |
| 29807 | # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's |
| 29808 | # but only do this if is not trivial |
| 29809 | if testscip-shell system . . test. "$CYGPATH_W" != "echo" ; then |
| 29810 | # need to put into brackets since otherwise autoconf replaces the brackets in the sed command |
| 29811 | cflags=`echoscip-shell system . . echo. $cflags | sedscip-shell system . . sed. -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` |
| 29812 | fi |
| 29813 | ASL_CFLAGS="$cflags" |
| 29814 | ASL_LIBS=`$PKG_CONFIG --libs "coinasl" 2>/dev/nullscip-shell filesystem . . `/dev/null`.` |
| 29815 | ASL_DATA=`$PKG_CONFIG --variable=datadir "coinasl" 2>/dev/nullscip-shell filesystem . . `/dev/null`.` |
| 29816 | coin_has_asl=yes |
| 29817 | echoscip-shell system . . echo. "$as_me:$LINENO: result: yes: $ASL_VERSIONS" >&5 |
| 29818 | echoscip-shell system . . echo. "${ECHO_T}yes: $ASL_VERSIONS" >&6 |
| 29819 | |
| 29820 | # adjust linker flags for (i)cl compiler |
| 29821 | # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl) |
| 29822 | if testscip-shell system . . test. x$coin_cxx_is_cl = xtrue || testscip-shell system . . test. x$coin_cc_is_cl = xtrue ; |
| 29823 | then |
| 29824 | ASL_LIBS=`echoscip-shell system . . echo. " $ASL_LIBS " | sedscip-shell system . . sed. -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'` |
| 29825 | fi |
| 29826 | ASL_PCREQUIRES="coinasl" |
| 29827 | |
| 29828 | # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CbcLib CbcGeneric |
| 29829 | |
| 29830 | CBCLIB_PCREQUIRES="coinasl $CBCLIB_PCREQUIRES" |
| 29831 | CBCLIB_CFLAGS="$ASL_CFLAGS $CBCLIB_CFLAGS" |
| 29832 | CBCLIB_LIBS="$ASL_LIBS $CBCLIB_LIBS" |
| 29833 | |
| 29834 | CBCGENERIC_PCREQUIRES="coinasl $CBCGENERIC_PCREQUIRES" |
| 29835 | CBCGENERIC_CFLAGS="$ASL_CFLAGS $CBCGENERIC_CFLAGS" |
| 29836 | CBCGENERIC_LIBS="$ASL_LIBS $CBCGENERIC_LIBS" |
| 29837 | |
| 29838 | |
| 29839 | |
| 29840 | else |
| 29841 | ASL_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "coinasl"` |
| 29842 | coin_has_asl=notGiven |
| 29843 | echoscip-shell system . . echo. "$as_me:$LINENO: result: not given: $ASL_PKG_ERRORS" >&5 |
| 29844 | echoscip-shell system . . echo. "${ECHO_T}not given: $ASL_PKG_ERRORS" >&6 |
| 29845 | |
| 29846 | fi |
| 29847 | else |
| 29848 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: \"Cannot check for existance of module ASL without pkg-config\"" >&5 |
| 29849 | echoscip-shell system . . echo. "$as_me: error: \"Cannot check for existance of module ASL without pkg-config\"" >&2;} |
| 29850 | { (exit 1); exit 1; }; } |
| 29851 | fi |
| 29852 | |
| 29853 | |
| 29854 | |
| 29855 | |
| 29856 | # reset PKG_CONFIG_PATH variable |
| 29857 | PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH" |
| 29858 | export PKG_CONFIG_PATH |
| 29859 | |
| 29860 | else |
| 29861 | echoscip-shell system . . echo. "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5 |
| 29862 | echoscip-shell system . . echo. "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6 |
| 29863 | |
| 29864 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for COIN-OR package ASL (fallback)" >&5 |
| 29865 | echoscip-shell system . . echo. $ECHO_N "checking for COIN-OR package ASL (fallback)... $ECHO_C" >&6 |
| 29866 | |
| 29867 | coin_has_asl=notGiven |
| 29868 | ASL_LIBS= |
| 29869 | ASL_LIBS_INSTALLED= |
| 29870 | ASL_CFLAGS= |
| 29871 | ASL_CFLAGS_INSTALLED= |
| 29872 | ASL_DATA= |
| 29873 | ASL_DATA_INSTALLED= |
| 29874 | ASL_PCLIBS= |
| 29875 | ASL_PCREQUIRES= |
| 29876 | |
| 29877 | # initial list of dependencies is "coinasl", but we need to filter out version number specifications (= x, <= x, >= x, != x) |
| 29878 | projtoprocess="coinasl" |
| 29879 | |
| 29880 | # we first expand the list of projects to process by adding all dependencies just behind the project which depends on it |
| 29881 | # further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards |
| 29882 | # the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples |
| 29883 | # also, we setup the DATA variable |
| 29884 | allproj="" |
| 29885 | allpcfiles="" |
| 29886 | allpcifiles="" |
| 29887 | while testscip-shell system . . test. "x$projtoprocess" != x ; do |
| 29888 | |
| 29889 | for proj in $projtoprocess ; do |
| 29890 | # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it |
| 29891 | pcfile="" |
| 29892 | save_IFS="$IFS" |
| 29893 | IFS=":" |
| 29894 | for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do |
| 29895 | # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again |
| 29896 | if testscip-shell system . . test. -r "$dir/${proj}-uninstalled.pc" ; then |
| 29897 | pcfile="$dir/$proj-uninstalled.pc" |
| 29898 | if testscip-shell system . . test. -r "$dir/${proj}.pc" ; then |
| 29899 | pcifile="$dir/${proj}.pc" |
| 29900 | else |
| 29901 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5 |
| 29902 | echoscip-shell system . . echo. "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;} |
| 29903 | pcifile= |
| 29904 | fi |
| 29905 | break |
| 29906 | fi |
| 29907 | done |
| 29908 | IFS="$save_IFS" |
| 29909 | |
| 29910 | if testscip-shell system . . test. "x$pcfile" != x ; then |
| 29911 | # read dependencies from $pcfile and filter it |
| 29912 | projrequires=`sedscip-shell system . . sed. -n -e 's/Requires://gp' "$pcfile" | sedscip-shell system . . sed. -e 's/<\{0,1\}>\{0,1\}=[ ]\{0,\}[^ ]\{1,\}//g'` |
| 29913 | |
| 29914 | # add projrequires to the front of the list of projects that have to be processed next |
| 29915 | # at the same time, remove $proj from this list |
| 29916 | projtoprocess=`echoscip-shell system . . echo. $projtoprocess | sedscip-shell system . . sed. -e "s/$proj/$projrequires/"` |
| 29917 | |
| 29918 | # read DATA from $pcfile, if _DATA is still empty |
| 29919 | if testscip-shell system . . test. "x$ASL_DATA" = x ; then |
| 29920 | projdatadir= |
| 29921 | pcfilemod=`sedscip-shell system . . sed. -e '/[a-zA-Z]:/dscip-shell filesystem . . `/[a-zA-Z]:/d`.' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile` |
| 29922 | eval `shscip-shell system . . sh. -c "$pcfilemod"` |
| 29923 | ASL_DATA="$projdatadir" |
| 29924 | fi |
| 29925 | |
| 29926 | allproj="$allproj $proj" |
| 29927 | allpcfiles="$pcfile:$allpcfiles" |
| 29928 | |
| 29929 | else |
| 29930 | echoscip-shell system . . echo. "$as_me:$LINENO: result: no, dependency $proj not available" >&5 |
| 29931 | echoscip-shell system . . echo. "${ECHO_T}no, dependency $proj not available" >&6 |
| 29932 | allproj=fail |
| 29933 | break 2 |
| 29934 | fi |
| 29935 | |
| 29936 | if testscip-shell system . . test. "x$pcifile" != x ; then |
| 29937 | allpcifiles="$pcifile:$allpcifiles" |
| 29938 | |
| 29939 | # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty |
| 29940 | if testscip-shell system . . test. "x$ASL_DATA_INSTALLED" = x ; then |
| 29941 | projdatadir= |
| 29942 | pcifilemod=`sedscip-shell system . . sed. -e '/[a-zA-Z]:/dscip-shell filesystem . . `/[a-zA-Z]:/d`.' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile` |
| 29943 | eval `shscip-shell system . . sh. -c "$pcifilemod"` |
| 29944 | if testscip-shell system . . test. "${CYGPATH_W}" != "echo"; then |
| 29945 | projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`" |
| 29946 | fi |
| 29947 | ASL_DATA_INSTALLED="$projdatadir" |
| 29948 | fi |
| 29949 | |
| 29950 | fi |
| 29951 | |
| 29952 | break |
| 29953 | done |
| 29954 | |
| 29955 | # remove spaces on begin of $projtoprocess |
| 29956 | projtoprocess=`echoscip-shell system . . echo. $projtoprocess | sedscip-shell system . . sed. -e 's/^ *//'` |
| 29957 | |
| 29958 | done |
| 29959 | |
| 29960 | if testscip-shell system . . test. "$allproj" != fail ; then |
| 29961 | |
| 29962 | # now go through the list of .pc files and assemble compiler and linker flags |
| 29963 | # important is here to obey the reverse order that has been setup before, |
| 29964 | # since then libraries that are required by several others should be after these other libraries |
| 29965 | pcfilesprocessed="" |
| 29966 | |
| 29967 | save_IFS="$IFS" |
| 29968 | IFS=":" |
| 29969 | for pcfile in $allpcfiles ; do |
| 29970 | |
| 29971 | # if $pcfile has been processed already, skip this round |
| 29972 | if testscip-shell system . . test. "x$pcfilesprocessed" != x ; then |
| 29973 | for pcfiledone in $pcfilesprocessed ; do |
| 29974 | if testscip-shell system . . test. "$pcfiledone" = "$pcfile" ; then |
| 29975 | continue 2 |
| 29976 | fi |
| 29977 | done |
| 29978 | fi |
| 29979 | |
| 29980 | # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags: |
| 29981 | # replace "Libs:" by "echo projlibs=" |
| 29982 | # replace "Cflags:" by "echo projcflags=" |
| 29983 | # remove every line starting with <some word>: |
| 29984 | pcfilemod=`sedscip-shell system . . sed. -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/dscip-shell filesystem . . `/^[a-zA-Z]*:/d`.' $pcfile` |
| 29985 | |
| 29986 | # set projcflags and projlibs variables by running $pcfilemod |
| 29987 | # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default |
| 29988 | projcflags= |
| 29989 | projlibs= |
| 29990 | IFS="$save_IFS" |
| 29991 | eval `shscip-shell system . . sh. -c "$pcfilemod"` |
| 29992 | IFS=":" |
| 29993 | |
| 29994 | # add CYGPATH_W cludge into include flags and set CFLAGS variable |
| 29995 | if testscip-shell system . . test. "${CYGPATH_W}" != "echo"; then |
| 29996 | projcflags=`echoscip-shell system . . echo. "$projcflags" | sedscip-shell system . . sed. -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` |
| 29997 | fi |
| 29998 | ASL_CFLAGS="$projcflags $ASL_CFLAGS" |
| 29999 | |
| 30000 | # set LIBS variable |
| 30001 | ASL_LIBS="$projlibs $ASL_LIBS" |
| 30002 | |
| 30003 | # remember that we have processed $pcfile |
| 30004 | pcfilesprocessed="$pcfilesprocessed:$pcfile" |
| 30005 | |
| 30006 | done |
| 30007 | IFS="$save_IFS" |
| 30008 | |
| 30009 | |
| 30010 | # now go through the list of .pc files for installed projects and assemble compiler and linker flags |
| 30011 | # important is here again to obey the reverse order that has been setup before, |
| 30012 | # since then libraries that are required by several others should be after these other libraries |
| 30013 | pcfilesprocessed="" |
| 30014 | |
| 30015 | save_IFS="$IFS" |
| 30016 | IFS=":" |
| 30017 | for pcfile in $allpcifiles ; do |
| 30018 | |
| 30019 | # if $pcfile has been processed already, skip this round |
| 30020 | if testscip-shell system . . test. "x$pcfilesprocessed" != x ; then |
| 30021 | for pcfiledone in $pcfilesprocessed ; do |
| 30022 | if testscip-shell system . . test. "$pcfiledone" = "$pcfile" ; then |
| 30023 | continue 2 |
| 30024 | fi |
| 30025 | done |
| 30026 | fi |
| 30027 | |
| 30028 | # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags: |
| 30029 | # replace "Libs:" by "echo projlibs=" |
| 30030 | # replace "Cflags:" by "echo projcflags=" |
| 30031 | # remove every line starting with <some word>: |
| 30032 | pcfilemod=`sedscip-shell system . . sed. -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/dscip-shell filesystem . . `/^[a-zA-Z]*:/d`.' $pcfile` |
| 30033 | |
| 30034 | # set projcflags and projlibs variables by running $pcfilemod |
| 30035 | # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default |
| 30036 | projcflags= |
| 30037 | projlibs= |
| 30038 | IFS="$save_IFS" |
| 30039 | eval `shscip-shell system . . sh. -c "$pcfilemod"` |
| 30040 | IFS=":" |
| 30041 | |
| 30042 | # add CYGPATH_W cludge into include flags and set CFLAGS variable |
| 30043 | if testscip-shell system . . test. "${CYGPATH_W}" != "echo"; then |
| 30044 | projcflags=`echoscip-shell system . . echo. "$projcflags" | sedscip-shell system . . sed. -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` |
| 30045 | fi |
| 30046 | ASL_CFLAGS_INSTALLED="$projcflags $ASL_CFLAGS_INSTALLED" |
| 30047 | |
| 30048 | # set LIBS variable |
| 30049 | ASL_LIBS_INSTALLED="$projlibs $ASL_LIBS_INSTALLED" |
| 30050 | |
| 30051 | # remember that we have processed $pcfile |
| 30052 | pcfilesprocessed="$pcfilesprocessed:$pcfile" |
| 30053 | |
| 30054 | done |
| 30055 | IFS="$save_IFS" |
| 30056 | |
| 30057 | |
| 30058 | # finish up |
| 30059 | coin_has_asl=yes |
| 30060 | echoscip-shell system . . echo. "$as_me:$LINENO: result: yes" >&5 |
| 30061 | echoscip-shell system . . echo. "${ECHO_T}yes" >&6 |
| 30062 | |
| 30063 | catscip-shell system . . cat. >>confdefs.h <<\_ACEOF |
| 30064 | #define COIN_HAS_ASL 1 |
| 30065 | _ACEOF |
| 30066 | |
| 30067 | |
| 30068 | # adjust linker flags for (i)cl compiler |
| 30069 | # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl), |
| 30070 | # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`", |
| 30071 | # everything of the form "-lname" by "libname.lib", and |
| 30072 | # everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path` |
| 30073 | if testscip-shell system . . test. x$coin_cxx_is_cl = xtrue || testscip-shell system . . test. x$coin_cc_is_cl = xtrue ; |
| 30074 | then |
| 30075 | ASL_LIBS=`echoscip-shell system . . echo. " $ASL_LIBS " | sedscip-shell system . . sed. -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'` |
| 30076 | ASL_LIBS_INSTALLED=`echoscip-shell system . . echo. " $ASL_LIBS_INSTALLED" | sedscip-shell system . . sed. -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'` |
| 30077 | fi |
| 30078 | |
| 30079 | ASL_PCREQUIRES="coinasl" |
| 30080 | |
| 30081 | CBCLIB_PCREQUIRES="coinasl $CBCLIB_PCREQUIRES" |
| 30082 | CBCLIB_CFLAGS="$ASL_CFLAGS $CBCLIB_CFLAGS" |
| 30083 | CBCLIB_LIBS="$ASL_LIBS $CBCLIB_LIBS" |
| 30084 | CBCLIB_CFLAGS_INSTALLED="$ASL_CFLAGS_INSTALLED $CBCLIB_CFLAGS_INSTALLED" |
| 30085 | CBCLIB_LIBS_INSTALLED="$ASL_LIBS_INSTALLED $CBCLIB_LIBS_INSTALLED" |
| 30086 | |
| 30087 | CBCGENERIC_PCREQUIRES="coinasl $CBCGENERIC_PCREQUIRES" |
| 30088 | CBCGENERIC_CFLAGS="$ASL_CFLAGS $CBCGENERIC_CFLAGS" |
| 30089 | CBCGENERIC_LIBS="$ASL_LIBS $CBCGENERIC_LIBS" |
| 30090 | CBCGENERIC_CFLAGS_INSTALLED="$ASL_CFLAGS_INSTALLED $CBCGENERIC_CFLAGS_INSTALLED" |
| 30091 | CBCGENERIC_LIBS_INSTALLED="$ASL_LIBS_INSTALLED $CBCGENERIC_LIBS_INSTALLED" |
| 30092 | |
| 30093 | |
| 30094 | fi |
| 30095 | |
| 30096 | |
| 30097 | |
| 30098 | if testscip-shell system . . test. $coin_has_asl != notGiven && |
| 30099 | testscip-shell system . . test. $coin_has_asl != skipping; then |
| 30100 | COIN_HAS_ASL_TRUE= |
| 30101 | COIN_HAS_ASL_FALSE='#' |
| 30102 | else |
| 30103 | COIN_HAS_ASL_TRUE='#' |
| 30104 | COIN_HAS_ASL_FALSE= |
| 30105 | fi |
| 30106 | |
| 30107 | |
| 30108 | |
| 30109 | fi |
| 30110 | |
| 30111 | else |
| 30112 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $coin_has_asl" >&5 |
| 30113 | echoscip-shell system . . echo. "${ECHO_T}$coin_has_asl" >&6 |
| 30114 | fi |
| 30115 | |
| 30116 | if testscip-shell system . . test. $coin_has_asl != skipping && |
| 30117 | testscip-shell system . . test. $coin_has_asl != notGiven ; then |
| 30118 | |
| 30119 | catscip-shell system . . cat. >>confdefs.h <<\_ACEOF |
| 30120 | #define COIN_HAS_ASL 1 |
| 30121 | _ACEOF |
| 30122 | |
| 30123 | |
| 30124 | # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given. |
| 30125 | if testscip-shell system . . test. "${enable_interpackage_dependencies+set}" = set; then |
| 30126 | enableval="$enable_interpackage_dependencies" |
| 30127 | |
| 30128 | else |
| 30129 | enable_interpackage_dependencies=yes |
| 30130 | fi; |
| 30131 | |
| 30132 | if testscip-shell system . . test. $enable_interpackage_dependencies = yes ; then |
| 30133 | # construct dependencies variables from LIBS variables |
| 30134 | # we add an extra space in LIBS so we can substitute out everything starting with " -" |
| 30135 | # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows |
| 30136 | # then remove everything of the form -xxx |
| 30137 | # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl) |
| 30138 | ASL_DEPENDENCIES=`echoscip-shell system . . echo. " $ASL_LIBS" | sedscip-shell system . . sed. -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'` |
| 30139 | |
| 30140 | CBCLIB_DEPENDENCIES=`echoscip-shell system . . echo. " $CBCLIB_LIBS " | sedscip-shell system . . sed. -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'` |
| 30141 | |
| 30142 | CBCGENERIC_DEPENDENCIES=`echoscip-shell system . . echo. " $CBCGENERIC_LIBS " | sedscip-shell system . . sed. -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'` |
| 30143 | |
| 30144 | fi |
| 30145 | |
| 30146 | if testscip-shell system . . test. 1 = 0 ; then #change this test to enable a bit of debugging output |
| 30147 | if testscip-shell system . . test. -n "$ASL_CFLAGS" ; then |
| 30148 | { echoscip-shell system . . echo. "$as_me:$LINENO: ASL CFLAGS are $ASL_CFLAGS" >&5 |
| 30149 | echoscip-shell system . . echo. "$as_me: ASL CFLAGS are $ASL_CFLAGS" >&6;} |
| 30150 | fi |
| 30151 | if testscip-shell system . . test. -n "$ASL_LIBS" ; then |
| 30152 | { echoscip-shell system . . echo. "$as_me:$LINENO: ASL LIBS are $ASL_LIBS" >&5 |
| 30153 | echoscip-shell system . . echo. "$as_me: ASL LIBS are $ASL_LIBS" >&6;} |
| 30154 | fi |
| 30155 | if testscip-shell system . . test. -n "$ASL_DEPENDENCIES" ; then |
| 30156 | { echoscip-shell system . . echo. "$as_me:$LINENO: ASL DEPENDENCIES are $ASL_DEPENDENCIES" >&5 |
| 30157 | echoscip-shell system . . echo. "$as_me: ASL DEPENDENCIES are $ASL_DEPENDENCIES" >&6;} |
| 30158 | fi |
| 30159 | if testscip-shell system . . test. -n "$ASL_DATA" ; then |
| 30160 | { echoscip-shell system . . echo. "$as_me:$LINENO: ASL DATA is $ASL_DATA" >&5 |
| 30161 | echoscip-shell system . . echo. "$as_me: ASL DATA is $ASL_DATA" >&6;} |
| 30162 | fi |
| 30163 | if testscip-shell system . . test. -n "$ASL_PCLIBS" ; then |
| 30164 | { echoscip-shell system . . echo. "$as_me:$LINENO: ASL PCLIBS are $ASL_PCLIBS" >&5 |
| 30165 | echoscip-shell system . . echo. "$as_me: ASL PCLIBS are $ASL_PCLIBS" >&6;} |
| 30166 | fi |
| 30167 | if testscip-shell system . . test. -n "$ASL_PCREQUIRES" ; then |
| 30168 | { echoscip-shell system . . echo. "$as_me:$LINENO: ASL PCREQUIRES are $ASL_PCREQUIRES" >&5 |
| 30169 | echoscip-shell system . . echo. "$as_me: ASL PCREQUIRES are $ASL_PCREQUIRES" >&6;} |
| 30170 | fi |
| 30171 | |
| 30172 | { echoscip-shell system . . echo. "$as_me:$LINENO: CbcLib CFLAGS are $CBCLIB_CFLAGS" >&5 |
| 30173 | echoscip-shell system . . echo. "$as_me: CbcLib CFLAGS are $CBCLIB_CFLAGS" >&6;} |
| 30174 | { echoscip-shell system . . echo. "$as_me:$LINENO: CbcLib LIBS are $CBCLIB_LIBS" >&5 |
| 30175 | echoscip-shell system . . echo. "$as_me: CbcLib LIBS are $CBCLIB_LIBS" >&6;} |
| 30176 | { echoscip-shell system . . echo. "$as_me:$LINENO: CbcLib DEPENDENCIES are $CBCLIB_DEPENDENCIES" >&5 |
| 30177 | echoscip-shell system . . echo. "$as_me: CbcLib DEPENDENCIES are $CBCLIB_DEPENDENCIES" >&6;} |
| 30178 | |
| 30179 | { echoscip-shell system . . echo. "$as_me:$LINENO: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&5 |
| 30180 | echoscip-shell system . . echo. "$as_me: CbcGeneric CFLAGS are $CBCGENERIC_CFLAGS" >&6;} |
| 30181 | { echoscip-shell system . . echo. "$as_me:$LINENO: CbcGeneric LIBS are $CBCGENERIC_LIBS" >&5 |
| 30182 | echoscip-shell system . . echo. "$as_me: CbcGeneric LIBS are $CBCGENERIC_LIBS" >&6;} |
| 30183 | { echoscip-shell system . . echo. "$as_me:$LINENO: CbcGeneric DEPENDENCIES are $CBCGENERIC_DEPENDENCIES" >&5 |
| 30184 | echoscip-shell system . . echo. "$as_me: CbcGeneric DEPENDENCIES are $CBCGENERIC_DEPENDENCIES" >&6;} |
| 30185 | |
| 30186 | fi |
| 30187 | fi |
| 30188 | |
| 30189 | # Define the Makefile conditional |
| 30190 | |
| 30191 | |
| 30192 | if testscip-shell system . . test. $coin_has_asl != notGiven && |
| 30193 | testscip-shell system . . test. $coin_has_asl != skipping; then |
| 30194 | COIN_HAS_ASL_TRUE= |
| 30195 | COIN_HAS_ASL_FALSE='#' |
| 30196 | else |
| 30197 | COIN_HAS_ASL_TRUE='#' |
| 30198 | COIN_HAS_ASL_FALSE= |
| 30199 | fi |
| 30200 | |
| 30201 | |
| 30202 | |
| 30203 | |
| 30204 | # MUMPS |
| 30205 | |
| 30206 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for COIN-OR package Mumps" >&5 |
| 30207 | echoscip-shell system . . echo. $ECHO_N "checking for COIN-OR package Mumps... $ECHO_C" >&6 |
| 30208 | |
| 30209 | coin_has_mumps=notGiven |
| 30210 | |
| 30211 | # check if user wants to skip package in any case |
| 30212 | if testscip-shell system . . test. x"$COIN_SKIP_PROJECTS" != x; then |
| 30213 | for dir in $COIN_SKIP_PROJECTS; do |
| 30214 | if testscip-shell system . . test. $dir = "Mumps"; then |
| 30215 | coin_has_mumps=skipping |
| 30216 | fi |
| 30217 | done |
| 30218 | fi |
| 30219 | |
| 30220 | if testscip-shell system . . test. "$coin_has_mumps" != skipping; then |
| 30221 | |
| 30222 | # Check whether --with-m4_tolower(Mumps) or --without-m4_tolower(Mumps) was given. |
| 30223 | if testscip-shell system . . test. "${with_mumps+set}" = set; then |
| 30224 | withval="$with_mumps" |
| 30225 | if testscip-shell system . . test. "$withval" = no ; then |
| 30226 | coin_has_mumps=skipping |
| 30227 | fi |
| 30228 | |
| 30229 | fi; |
| 30230 | fi |
| 30231 | |
| 30232 | MUMPS_LIBS= |
| 30233 | MUMPS_CFLAGS= |
| 30234 | MUMPS_DATA= |
| 30235 | MUMPS_DEPENDENCIES= |
| 30236 | MUMPS_PCLIBS= |
| 30237 | MUMPS_PCREQUIRES= |
| 30238 | |
| 30239 | |
| 30240 | |
| 30241 | |
| 30242 | |
| 30243 | |
| 30244 | |
| 30245 | |
| 30246 | |
| 30247 | #check if user provided LIBS, CFLAGS, or DATA for package or disables use of package |
| 30248 | if testscip-shell system . . test. $coin_has_mumps != skipping; then |
| 30249 | |
| 30250 | # Check whether --with-m4_tolower(Mumps)-lib or --without-m4_tolower(Mumps)-lib was given. |
| 30251 | if testscip-shell system . . test. "${with_mumps_lib+set}" = set; then |
| 30252 | withval="$with_mumps_lib" |
| 30253 | if testscip-shell system . . test. "$withval" = no ; then |
| 30254 | coin_has_mumps=skipping |
| 30255 | else |
| 30256 | coin_has_mumps=yes |
| 30257 | MUMPS_LIBS="$withval" |
| 30258 | MUMPS_PCLIBS="$withval" |
| 30259 | |
| 30260 | # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables |
| 30261 | if testscip-shell system . . test. -z "$PKG_CONFIG" ; then |
| 30262 | MUMPS_LIBS_INSTALLED="$withval" |
| 30263 | |
| 30264 | fi |
| 30265 | fi |
| 30266 | |
| 30267 | fi; |
| 30268 | fi |
| 30269 | |
| 30270 | if testscip-shell system . . test. $coin_has_mumps != skipping; then |
| 30271 | |
| 30272 | # Check whether --with-m4_tolower(Mumps)-incdir or --without-m4_tolower(Mumps)-incdir was given. |
| 30273 | if testscip-shell system . . test. "${with_mumps_incdir+set}" = set; then |
| 30274 | withval="$with_mumps_incdir" |
| 30275 | if testscip-shell system . . test. "$withval" = no ; then |
| 30276 | coin_has_mumps=skipping |
| 30277 | else |
| 30278 | coin_has_mumps=yes |
| 30279 | MUMPS_CFLAGS="-I`${CYGPATH_W} $withval`" |
| 30280 | |
| 30281 | # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables |
| 30282 | if testscip-shell system . . test. -z "$PKG_CONFIG" ; then |
| 30283 | MUMPS_CFLAGS_INSTALLED="$MUMPS_CFLAGS" |
| 30284 | |
| 30285 | fi |
| 30286 | fi |
| 30287 | |
| 30288 | fi; |
| 30289 | fi |
| 30290 | |
| 30291 | if testscip-shell system . . test. $coin_has_mumps != skipping; then |
| 30292 | |
| 30293 | # Check whether --with-m4_tolower(Mumps)-datadir or --without-m4_tolower(Mumps)-datadir was given. |
| 30294 | if testscip-shell system . . test. "${with_mumps_datadir+set}" = set; then |
| 30295 | withval="$with_mumps_datadir" |
| 30296 | if testscip-shell system . . test. "$withval" = no ; then |
| 30297 | coin_has_mumps=skipping |
| 30298 | else |
| 30299 | coin_has_mumps=yes |
| 30300 | MUMPS_DATA="$withval" |
| 30301 | # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables |
| 30302 | if testscip-shell system . . test. -z "$PKG_CONFIG" ; then |
| 30303 | MUMPS_DATA_INSTALLED="$withval" |
| 30304 | fi |
| 30305 | fi |
| 30306 | |
| 30307 | fi; |
| 30308 | fi |
| 30309 | |
| 30310 | if testscip-shell system . . test. $coin_has_mumps = notGiven; then |
| 30311 | if testscip-shell system . . test. -n "$PKG_CONFIG" ; then |
| 30312 | # set search path for pkg-config |
| 30313 | # need to export variable to be sure that the following pkg-config gets these values |
| 30314 | coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH" |
| 30315 | PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED" |
| 30316 | export PKG_CONFIG_PATH |
| 30317 | |
| 30318 | # let pkg-config do it's magic |
| 30319 | |
| 30320 | |
| 30321 | |
| 30322 | if testscip-shell system . . test. -n "$PKG_CONFIG" ; then |
| 30323 | if $PKG_CONFIG --exists "coinmumps"; then |
| 30324 | MUMPS_VERSIONS=`$PKG_CONFIG --modversion "coinmumps" 2>/dev/nullscip-shell filesystem . . `/dev/null`. | trscip-shell system . . tr. '\n' ' '` |
| 30325 | cflags=`$PKG_CONFIG --cflags "coinmumps" 2>/dev/nullscip-shell filesystem . . `/dev/null`.` |
| 30326 | # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files |
| 30327 | # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's |
| 30328 | # but only do this if is not trivial |
| 30329 | if testscip-shell system . . test. "$CYGPATH_W" != "echo" ; then |
| 30330 | # need to put into brackets since otherwise autoconf replaces the brackets in the sed command |
| 30331 | cflags=`echoscip-shell system . . echo. $cflags | sedscip-shell system . . sed. -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` |
| 30332 | fi |
| 30333 | MUMPS_CFLAGS="$cflags" |
| 30334 | MUMPS_LIBS=`$PKG_CONFIG --libs "coinmumps" 2>/dev/nullscip-shell filesystem . . `/dev/null`.` |
| 30335 | MUMPS_DATA=`$PKG_CONFIG --variable=datadir "coinmumps" 2>/dev/nullscip-shell filesystem . . `/dev/null`.` |
| 30336 | coin_has_mumps=yes |
| 30337 | echoscip-shell system . . echo. "$as_me:$LINENO: result: yes: $MUMPS_VERSIONS" >&5 |
| 30338 | echoscip-shell system . . echo. "${ECHO_T}yes: $MUMPS_VERSIONS" >&6 |
| 30339 | |
| 30340 | # adjust linker flags for (i)cl compiler |
| 30341 | # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl) |
| 30342 | if testscip-shell system . . test. x$coin_cxx_is_cl = xtrue || testscip-shell system . . test. x$coin_cc_is_cl = xtrue ; |
| 30343 | then |
| 30344 | MUMPS_LIBS=`echoscip-shell system . . echo. " $MUMPS_LIBS " | sedscip-shell system . . sed. -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'` |
| 30345 | fi |
| 30346 | MUMPS_PCREQUIRES="coinmumps" |
| 30347 | |
| 30348 | # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in |
| 30349 | |
| 30350 | |
| 30351 | |
| 30352 | else |
| 30353 | MUMPS_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "coinmumps"` |
| 30354 | coin_has_mumps=notGiven |
| 30355 | echoscip-shell system . . echo. "$as_me:$LINENO: result: not given: $MUMPS_PKG_ERRORS" >&5 |
| 30356 | echoscip-shell system . . echo. "${ECHO_T}not given: $MUMPS_PKG_ERRORS" >&6 |
| 30357 | |
| 30358 | fi |
| 30359 | else |
| 30360 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: \"Cannot check for existance of module Mumps without pkg-config\"" >&5 |
| 30361 | echoscip-shell system . . echo. "$as_me: error: \"Cannot check for existance of module Mumps without pkg-config\"" >&2;} |
| 30362 | { (exit 1); exit 1; }; } |
| 30363 | fi |
| 30364 | |
| 30365 | |
| 30366 | |
| 30367 | |
| 30368 | # reset PKG_CONFIG_PATH variable |
| 30369 | PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH" |
| 30370 | export PKG_CONFIG_PATH |
| 30371 | |
| 30372 | else |
| 30373 | echoscip-shell system . . echo. "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5 |
| 30374 | echoscip-shell system . . echo. "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6 |
| 30375 | |
| 30376 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for COIN-OR package Mumps (fallback)" >&5 |
| 30377 | echoscip-shell system . . echo. $ECHO_N "checking for COIN-OR package Mumps (fallback)... $ECHO_C" >&6 |
| 30378 | |
| 30379 | coin_has_mumps=notGiven |
| 30380 | MUMPS_LIBS= |
| 30381 | MUMPS_LIBS_INSTALLED= |
| 30382 | MUMPS_CFLAGS= |
| 30383 | MUMPS_CFLAGS_INSTALLED= |
| 30384 | MUMPS_DATA= |
| 30385 | MUMPS_DATA_INSTALLED= |
| 30386 | MUMPS_PCLIBS= |
| 30387 | MUMPS_PCREQUIRES= |
| 30388 | |
| 30389 | # initial list of dependencies is "coinmumps", but we need to filter out version number specifications (= x, <= x, >= x, != x) |
| 30390 | projtoprocess="coinmumps" |
| 30391 | |
| 30392 | # we first expand the list of projects to process by adding all dependencies just behind the project which depends on it |
| 30393 | # further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards |
| 30394 | # the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples |
| 30395 | # also, we setup the DATA variable |
| 30396 | allproj="" |
| 30397 | allpcfiles="" |
| 30398 | allpcifiles="" |
| 30399 | while testscip-shell system . . test. "x$projtoprocess" != x ; do |
| 30400 | |
| 30401 | for proj in $projtoprocess ; do |
| 30402 | # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it |
| 30403 | pcfile="" |
| 30404 | save_IFS="$IFS" |
| 30405 | IFS=":" |
| 30406 | for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do |
| 30407 | # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again |
| 30408 | if testscip-shell system . . test. -r "$dir/${proj}-uninstalled.pc" ; then |
| 30409 | pcfile="$dir/$proj-uninstalled.pc" |
| 30410 | if testscip-shell system . . test. -r "$dir/${proj}.pc" ; then |
| 30411 | pcifile="$dir/${proj}.pc" |
| 30412 | else |
| 30413 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5 |
| 30414 | echoscip-shell system . . echo. "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;} |
| 30415 | pcifile= |
| 30416 | fi |
| 30417 | break |
| 30418 | fi |
| 30419 | done |
| 30420 | IFS="$save_IFS" |
| 30421 | |
| 30422 | if testscip-shell system . . test. "x$pcfile" != x ; then |
| 30423 | # read dependencies from $pcfile and filter it |
| 30424 | projrequires=`sedscip-shell system . . sed. -n -e 's/Requires://gp' "$pcfile" | sedscip-shell system . . sed. -e 's/<\{0,1\}>\{0,1\}=[ ]\{0,\}[^ ]\{1,\}//g'` |
| 30425 | |
| 30426 | # add projrequires to the front of the list of projects that have to be processed next |
| 30427 | # at the same time, remove $proj from this list |
| 30428 | projtoprocess=`echoscip-shell system . . echo. $projtoprocess | sedscip-shell system . . sed. -e "s/$proj/$projrequires/"` |
| 30429 | |
| 30430 | # read DATA from $pcfile, if _DATA is still empty |
| 30431 | if testscip-shell system . . test. "x$MUMPS_DATA" = x ; then |
| 30432 | projdatadir= |
| 30433 | pcfilemod=`sedscip-shell system . . sed. -e '/[a-zA-Z]:/dscip-shell filesystem . . `/[a-zA-Z]:/d`.' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile` |
| 30434 | eval `shscip-shell system . . sh. -c "$pcfilemod"` |
| 30435 | MUMPS_DATA="$projdatadir" |
| 30436 | fi |
| 30437 | |
| 30438 | allproj="$allproj $proj" |
| 30439 | allpcfiles="$pcfile:$allpcfiles" |
| 30440 | |
| 30441 | else |
| 30442 | echoscip-shell system . . echo. "$as_me:$LINENO: result: no, dependency $proj not available" >&5 |
| 30443 | echoscip-shell system . . echo. "${ECHO_T}no, dependency $proj not available" >&6 |
| 30444 | allproj=fail |
| 30445 | break 2 |
| 30446 | fi |
| 30447 | |
| 30448 | if testscip-shell system . . test. "x$pcifile" != x ; then |
| 30449 | allpcifiles="$pcifile:$allpcifiles" |
| 30450 | |
| 30451 | # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty |
| 30452 | if testscip-shell system . . test. "x$MUMPS_DATA_INSTALLED" = x ; then |
| 30453 | projdatadir= |
| 30454 | pcifilemod=`sedscip-shell system . . sed. -e '/[a-zA-Z]:/dscip-shell filesystem . . `/[a-zA-Z]:/d`.' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile` |
| 30455 | eval `shscip-shell system . . sh. -c "$pcifilemod"` |
| 30456 | if testscip-shell system . . test. "${CYGPATH_W}" != "echo"; then |
| 30457 | projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`" |
| 30458 | fi |
| 30459 | MUMPS_DATA_INSTALLED="$projdatadir" |
| 30460 | fi |
| 30461 | |
| 30462 | fi |
| 30463 | |
| 30464 | break |
| 30465 | done |
| 30466 | |
| 30467 | # remove spaces on begin of $projtoprocess |
| 30468 | projtoprocess=`echoscip-shell system . . echo. $projtoprocess | sedscip-shell system . . sed. -e 's/^ *//'` |
| 30469 | |
| 30470 | done |
| 30471 | |
| 30472 | if testscip-shell system . . test. "$allproj" != fail ; then |
| 30473 | |
| 30474 | # now go through the list of .pc files and assemble compiler and linker flags |
| 30475 | # important is here to obey the reverse order that has been setup before, |
| 30476 | # since then libraries that are required by several others should be after these other libraries |
| 30477 | pcfilesprocessed="" |
| 30478 | |
| 30479 | save_IFS="$IFS" |
| 30480 | IFS=":" |
| 30481 | for pcfile in $allpcfiles ; do |
| 30482 | |
| 30483 | # if $pcfile has been processed already, skip this round |
| 30484 | if testscip-shell system . . test. "x$pcfilesprocessed" != x ; then |
| 30485 | for pcfiledone in $pcfilesprocessed ; do |
| 30486 | if testscip-shell system . . test. "$pcfiledone" = "$pcfile" ; then |
| 30487 | continue 2 |
| 30488 | fi |
| 30489 | done |
| 30490 | fi |
| 30491 | |
| 30492 | # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags: |
| 30493 | # replace "Libs:" by "echo projlibs=" |
| 30494 | # replace "Cflags:" by "echo projcflags=" |
| 30495 | # remove every line starting with <some word>: |
| 30496 | pcfilemod=`sedscip-shell system . . sed. -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/dscip-shell filesystem . . `/^[a-zA-Z]*:/d`.' $pcfile` |
| 30497 | |
| 30498 | # set projcflags and projlibs variables by running $pcfilemod |
| 30499 | # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default |
| 30500 | projcflags= |
| 30501 | projlibs= |
| 30502 | IFS="$save_IFS" |
| 30503 | eval `shscip-shell system . . sh. -c "$pcfilemod"` |
| 30504 | IFS=":" |
| 30505 | |
| 30506 | # add CYGPATH_W cludge into include flags and set CFLAGS variable |
| 30507 | if testscip-shell system . . test. "${CYGPATH_W}" != "echo"; then |
| 30508 | projcflags=`echoscip-shell system . . echo. "$projcflags" | sedscip-shell system . . sed. -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` |
| 30509 | fi |
| 30510 | MUMPS_CFLAGS="$projcflags $MUMPS_CFLAGS" |
| 30511 | |
| 30512 | # set LIBS variable |
| 30513 | MUMPS_LIBS="$projlibs $MUMPS_LIBS" |
| 30514 | |
| 30515 | # remember that we have processed $pcfile |
| 30516 | pcfilesprocessed="$pcfilesprocessed:$pcfile" |
| 30517 | |
| 30518 | done |
| 30519 | IFS="$save_IFS" |
| 30520 | |
| 30521 | |
| 30522 | # now go through the list of .pc files for installed projects and assemble compiler and linker flags |
| 30523 | # important is here again to obey the reverse order that has been setup before, |
| 30524 | # since then libraries that are required by several others should be after these other libraries |
| 30525 | pcfilesprocessed="" |
| 30526 | |
| 30527 | save_IFS="$IFS" |
| 30528 | IFS=":" |
| 30529 | for pcfile in $allpcifiles ; do |
| 30530 | |
| 30531 | # if $pcfile has been processed already, skip this round |
| 30532 | if testscip-shell system . . test. "x$pcfilesprocessed" != x ; then |
| 30533 | for pcfiledone in $pcfilesprocessed ; do |
| 30534 | if testscip-shell system . . test. "$pcfiledone" = "$pcfile" ; then |
| 30535 | continue 2 |
| 30536 | fi |
| 30537 | done |
| 30538 | fi |
| 30539 | |
| 30540 | # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags: |
| 30541 | # replace "Libs:" by "echo projlibs=" |
| 30542 | # replace "Cflags:" by "echo projcflags=" |
| 30543 | # remove every line starting with <some word>: |
| 30544 | pcfilemod=`sedscip-shell system . . sed. -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/dscip-shell filesystem . . `/^[a-zA-Z]*:/d`.' $pcfile` |
| 30545 | |
| 30546 | # set projcflags and projlibs variables by running $pcfilemod |
| 30547 | # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default |
| 30548 | projcflags= |
| 30549 | projlibs= |
| 30550 | IFS="$save_IFS" |
| 30551 | eval `shscip-shell system . . sh. -c "$pcfilemod"` |
| 30552 | IFS=":" |
| 30553 | |
| 30554 | # add CYGPATH_W cludge into include flags and set CFLAGS variable |
| 30555 | if testscip-shell system . . test. "${CYGPATH_W}" != "echo"; then |
| 30556 | projcflags=`echoscip-shell system . . echo. "$projcflags" | sedscip-shell system . . sed. -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` |
| 30557 | fi |
| 30558 | MUMPS_CFLAGS_INSTALLED="$projcflags $MUMPS_CFLAGS_INSTALLED" |
| 30559 | |
| 30560 | # set LIBS variable |
| 30561 | MUMPS_LIBS_INSTALLED="$projlibs $MUMPS_LIBS_INSTALLED" |
| 30562 | |
| 30563 | # remember that we have processed $pcfile |
| 30564 | pcfilesprocessed="$pcfilesprocessed:$pcfile" |
| 30565 | |
| 30566 | done |
| 30567 | IFS="$save_IFS" |
| 30568 | |
| 30569 | |
| 30570 | # finish up |
| 30571 | coin_has_mumps=yes |
| 30572 | echoscip-shell system . . echo. "$as_me:$LINENO: result: yes" >&5 |
| 30573 | echoscip-shell system . . echo. "${ECHO_T}yes" >&6 |
| 30574 | |
| 30575 | catscip-shell system . . cat. >>confdefs.h <<\_ACEOF |
| 30576 | #define COIN_HAS_MUMPS 1 |
| 30577 | _ACEOF |
| 30578 | |
| 30579 | |
| 30580 | # adjust linker flags for (i)cl compiler |
| 30581 | # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl), |
| 30582 | # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`", |
| 30583 | # everything of the form "-lname" by "libname.lib", and |
| 30584 | # everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path` |
| 30585 | if testscip-shell system . . test. x$coin_cxx_is_cl = xtrue || testscip-shell system . . test. x$coin_cc_is_cl = xtrue ; |
| 30586 | then |
| 30587 | MUMPS_LIBS=`echoscip-shell system . . echo. " $MUMPS_LIBS " | sedscip-shell system . . sed. -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'` |
| 30588 | MUMPS_LIBS_INSTALLED=`echoscip-shell system . . echo. " $MUMPS_LIBS_INSTALLED" | sedscip-shell system . . sed. -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'` |
| 30589 | fi |
| 30590 | |
| 30591 | MUMPS_PCREQUIRES="coinmumps" |
| 30592 | |
| 30593 | |
| 30594 | fi |
| 30595 | |
| 30596 | |
| 30597 | |
| 30598 | if testscip-shell system . . test. $coin_has_mumps != notGiven && |
| 30599 | testscip-shell system . . test. $coin_has_mumps != skipping; then |
| 30600 | COIN_HAS_MUMPS_TRUE= |
| 30601 | COIN_HAS_MUMPS_FALSE='#' |
| 30602 | else |
| 30603 | COIN_HAS_MUMPS_TRUE='#' |
| 30604 | COIN_HAS_MUMPS_FALSE= |
| 30605 | fi |
| 30606 | |
| 30607 | |
| 30608 | |
| 30609 | fi |
| 30610 | |
| 30611 | else |
| 30612 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $coin_has_mumps" >&5 |
| 30613 | echoscip-shell system . . echo. "${ECHO_T}$coin_has_mumps" >&6 |
| 30614 | fi |
| 30615 | |
| 30616 | if testscip-shell system . . test. $coin_has_mumps != skipping && |
| 30617 | testscip-shell system . . test. $coin_has_mumps != notGiven ; then |
| 30618 | |
| 30619 | catscip-shell system . . cat. >>confdefs.h <<\_ACEOF |
| 30620 | #define COIN_HAS_MUMPS 1 |
| 30621 | _ACEOF |
| 30622 | |
| 30623 | |
| 30624 | # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given. |
| 30625 | if testscip-shell system . . test. "${enable_interpackage_dependencies+set}" = set; then |
| 30626 | enableval="$enable_interpackage_dependencies" |
| 30627 | |
| 30628 | else |
| 30629 | enable_interpackage_dependencies=yes |
| 30630 | fi; |
| 30631 | |
| 30632 | if testscip-shell system . . test. $enable_interpackage_dependencies = yes ; then |
| 30633 | # construct dependencies variables from LIBS variables |
| 30634 | # we add an extra space in LIBS so we can substitute out everything starting with " -" |
| 30635 | # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows |
| 30636 | # then remove everything of the form -xxx |
| 30637 | # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl) |
| 30638 | MUMPS_DEPENDENCIES=`echoscip-shell system . . echo. " $MUMPS_LIBS" | sedscip-shell system . . sed. -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'` |
| 30639 | |
| 30640 | fi |
| 30641 | |
| 30642 | if testscip-shell system . . test. 1 = 0 ; then #change this test to enable a bit of debugging output |
| 30643 | if testscip-shell system . . test. -n "$MUMPS_CFLAGS" ; then |
| 30644 | { echoscip-shell system . . echo. "$as_me:$LINENO: Mumps CFLAGS are $MUMPS_CFLAGS" >&5 |
| 30645 | echoscip-shell system . . echo. "$as_me: Mumps CFLAGS are $MUMPS_CFLAGS" >&6;} |
| 30646 | fi |
| 30647 | if testscip-shell system . . test. -n "$MUMPS_LIBS" ; then |
| 30648 | { echoscip-shell system . . echo. "$as_me:$LINENO: Mumps LIBS are $MUMPS_LIBS" >&5 |
| 30649 | echoscip-shell system . . echo. "$as_me: Mumps LIBS are $MUMPS_LIBS" >&6;} |
| 30650 | fi |
| 30651 | if testscip-shell system . . test. -n "$MUMPS_DEPENDENCIES" ; then |
| 30652 | { echoscip-shell system . . echo. "$as_me:$LINENO: Mumps DEPENDENCIES are $MUMPS_DEPENDENCIES" >&5 |
| 30653 | echoscip-shell system . . echo. "$as_me: Mumps DEPENDENCIES are $MUMPS_DEPENDENCIES" >&6;} |
| 30654 | fi |
| 30655 | if testscip-shell system . . test. -n "$MUMPS_DATA" ; then |
| 30656 | { echoscip-shell system . . echo. "$as_me:$LINENO: Mumps DATA is $MUMPS_DATA" >&5 |
| 30657 | echoscip-shell system . . echo. "$as_me: Mumps DATA is $MUMPS_DATA" >&6;} |
| 30658 | fi |
| 30659 | if testscip-shell system . . test. -n "$MUMPS_PCLIBS" ; then |
| 30660 | { echoscip-shell system . . echo. "$as_me:$LINENO: Mumps PCLIBS are $MUMPS_PCLIBS" >&5 |
| 30661 | echoscip-shell system . . echo. "$as_me: Mumps PCLIBS are $MUMPS_PCLIBS" >&6;} |
| 30662 | fi |
| 30663 | if testscip-shell system . . test. -n "$MUMPS_PCREQUIRES" ; then |
| 30664 | { echoscip-shell system . . echo. "$as_me:$LINENO: Mumps PCREQUIRES are $MUMPS_PCREQUIRES" >&5 |
| 30665 | echoscip-shell system . . echo. "$as_me: Mumps PCREQUIRES are $MUMPS_PCREQUIRES" >&6;} |
| 30666 | fi |
| 30667 | |
| 30668 | fi |
| 30669 | fi |
| 30670 | |
| 30671 | # Define the Makefile conditional |
| 30672 | |
| 30673 | |
| 30674 | if testscip-shell system . . test. $coin_has_mumps != notGiven && |
| 30675 | testscip-shell system . . test. $coin_has_mumps != skipping; then |
| 30676 | COIN_HAS_MUMPS_TRUE= |
| 30677 | COIN_HAS_MUMPS_FALSE='#' |
| 30678 | else |
| 30679 | COIN_HAS_MUMPS_TRUE='#' |
| 30680 | COIN_HAS_MUMPS_FALSE= |
| 30681 | fi |
| 30682 | |
| 30683 | |
| 30684 | |
| 30685 | |
| 30686 | # Nauty library (for symmetry detection) |
| 30687 | ac_ext=c |
| 30688 | ac_cpp='$CPP $CPPFLAGS' |
| 30689 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30690 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30691 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 30692 | |
| 30693 | |
| 30694 | echoscip-shell system . . echo. "$as_me:$LINENO: checking if user provides library for Nauty" >&5 |
| 30695 | echoscip-shell system . . echo. $ECHO_N "checking if user provides library for Nauty... $ECHO_C" >&6 |
| 30696 | |
| 30697 | # Check for header file directory |
| 30698 | |
| 30699 | |
| 30700 | # Check whether --with-nauty-incdir or --without-nauty-incdir was given. |
| 30701 | if testscip-shell system . . test. "${with_nauty_incdir+set}" = set; then |
| 30702 | withval="$with_nauty_incdir" |
| 30703 | NTYINCDIR=`cd $withval; pwdscip-shell system . . pwd.` |
| 30704 | fi; |
| 30705 | |
| 30706 | # Check for library directory |
| 30707 | |
| 30708 | |
| 30709 | # Check whether --with-nauty-lib or --without-nauty-lib was given. |
| 30710 | if testscip-shell system . . test. "${with_nauty_lib+set}" = set; then |
| 30711 | withval="$with_nauty_lib" |
| 30712 | NTYLIB=$withval |
| 30713 | fi; |
| 30714 | |
| 30715 | # Switch to disable library check if requested |
| 30716 | |
| 30717 | # Check whether --enable-nauty-libcheck or --disable-nauty-libcheck was given. |
| 30718 | if testscip-shell system . . test. "${enable_nauty_libcheck+set}" = set; then |
| 30719 | enableval="$enable_nauty_libcheck" |
| 30720 | nauty_libcheck=$enableval |
| 30721 | else |
| 30722 | nauty_libcheck=yes |
| 30723 | fi; |
| 30724 | |
| 30725 | # At this point, if we're going to use the library, both LBRYINCDIR and |
| 30726 | # LBRYLIB must be defined and not empty. |
| 30727 | |
| 30728 | if testscip-shell system . . test. x"$NTYINCDIR" != x || testscip-shell system . . test. x"$NTYLIB" != x; then |
| 30729 | if testscip-shell system . . test. x"$NTYINCDIR" = x || testscip-shell system . . test. x"$NTYLIB" = x; then |
| 30730 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: You need to specify both an include directory and link flags to use library Nauty. Use --with-nauty-incdir of environment variable $NTYINCDIR to specify the include directory. Use --with-nauty-lib or environment variable $NTYLIB to specify link flags." >&5 |
| 30731 | echoscip-shell system . . echo. "$as_me: error: You need to specify both an include directory and link flags to use library Nauty. Use --with-nauty-incdir of environment variable $NTYINCDIR to specify the include directory. Use --with-nauty-lib or environment variable $NTYLIB to specify link flags." >&2;} |
| 30732 | { (exit 1); exit 1; }; } |
| 30733 | fi |
| 30734 | coin_has_nty=true |
| 30735 | echoscip-shell system . . echo. "$as_me:$LINENO: result: yes" >&5 |
| 30736 | echoscip-shell system . . echo. "${ECHO_T}yes" >&6 |
| 30737 | else |
| 30738 | coin_has_nty=false |
| 30739 | echoscip-shell system . . echo. "$as_me:$LINENO: result: no" >&5 |
| 30740 | echoscip-shell system . . echo. "${ECHO_T}no" >&6 |
| 30741 | fi |
| 30742 | |
| 30743 | # If we have instructions for use, consider header and link checks. |
| 30744 | |
| 30745 | if testscip-shell system . . test. $coin_has_nty = true; then |
| 30746 | |
| 30747 | # If argument 3 (file) is given, check for the file. Typically this will be a |
| 30748 | # header file, but that's not assumed. |
| 30749 | |
| 30750 | if testscip-shell system . . test. -r $NTYINCDIR/nauty.h; then |
| 30751 | |
| 30752 | : |
| 30753 | else |
| 30754 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: Cannot find file nauty.h in $NTYINCDIR" >&5 |
| 30755 | echoscip-shell system . . echo. "$as_me: error: Cannot find file nauty.h in $NTYINCDIR" >&2;} |
| 30756 | { (exit 1); exit 1; }; } |
| 30757 | : |
| 30758 | fi |
| 30759 | |
| 30760 | |
| 30761 | # Now see if we can link the function. There are arguments for and against |
| 30762 | # assuming argument 3 is a header file declaring the function. A correct |
| 30763 | # function declaration is the main argument in favour. Having to cope with |
| 30764 | # possible dependencies or other oddities are the main arguments against. |
| 30765 | # Force the use of C as the best single choice amongst C++, C, and Fortran. |
| 30766 | # Obviously, this has limits. |
| 30767 | |
| 30768 | if testscip-shell system . . test. x"$nauty_libcheck" != xno; then |
| 30769 | coin_save_LIBS="$LIBS" |
| 30770 | LIBS="$NTYLIB " |
| 30771 | coin_NTY_link=no |
| 30772 | ac_ext=c |
| 30773 | ac_cpp='$CPP $CPPFLAGS' |
| 30774 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30775 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30776 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 30777 | |
| 30778 | for fnm in nauty ; do |
| 30779 | echoscip-shell system . . echo. "$as_me:$LINENO: checking whether symbol $fnm is available with NTY" >&5 |
| 30780 | echoscip-shell system . . echo. $ECHO_N "checking whether symbol $fnm is available with NTY... $ECHO_C" >&6 |
| 30781 | catscip-shell system . . cat. >conftest.$ac_ext <<_ACEOF |
| 30782 | /* confdefs.h. */ |
| 30783 | _ACEOF |
| 30784 | catscip-shell system . . cat. confdefs.h >>conftest.$ac_ext |
| 30785 | catscip-shell system . . cat. >>conftest.$ac_ext <<_ACEOF |
| 30786 | /* end confdefs.h. */ |
| 30787 | |
| 30788 | int |
| 30789 | main () |
| 30790 | { |
| 30791 | $fnm() |
| 30792 | ; |
| 30793 | return 0; |
| 30794 | } |
| 30795 | _ACEOF |
| 30796 | rmscip-shell system . . rm. -f conftest.$ac_objext conftest$ac_exeext |
| 30797 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 30798 | (eval $ac_link) 2>conftest.er1 |
| 30799 | ac_status=$? |
| 30800 | grepscip-shell system . . grep. -v '^ *+' conftest.er1 >conftest.err |
| 30801 | rmscip-shell system . . rm. -f conftest.er1 |
| 30802 | catscip-shell system . . cat. conftest.err >&5 |
| 30803 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30804 | (exit $ac_status); } && |
| 30805 | { ac_try='test -z "$ac_c_werror_flag" |
| 30806 | || test ! -s conftest.err' |
| 30807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 30808 | (eval $ac_try) 2>&5 |
| 30809 | ac_status=$? |
| 30810 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30811 | (exit $ac_status); }; } && |
| 30812 | { ac_try='test -s conftest$ac_exeext' |
| 30813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 30814 | (eval $ac_try) 2>&5 |
| 30815 | ac_status=$? |
| 30816 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30817 | (exit $ac_status); }; }; then |
| 30818 | echoscip-shell system . . echo. "$as_me:$LINENO: result: yes" >&5 |
| 30819 | echoscip-shell system . . echo. "${ECHO_T}yes" >&6 |
| 30820 | coin_NTY_link=yes |
| 30821 | break |
| 30822 | else |
| 30823 | echoscip-shell system . . echo. "$as_me: failed program was:" >&5 |
| 30824 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 30825 | |
| 30826 | echoscip-shell system . . echo. "$as_me:$LINENO: result: no" >&5 |
| 30827 | echoscip-shell system . . echo. "${ECHO_T}no" >&6 |
| 30828 | fi |
| 30829 | rmscip-shell system . . rm. -f conftest.err conftest.$ac_objext \ |
| 30830 | conftest$ac_exeext conftest.$ac_ext |
| 30831 | done |
| 30832 | ac_ext=c |
| 30833 | ac_cpp='$CPP $CPPFLAGS' |
| 30834 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30835 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30836 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 30837 | |
| 30838 | LIBS="$coin_save_LIBS" |
| 30839 | if testscip-shell system . . test. x"$coin_NTY_link" != xyes ; then |
| 30840 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: Cannot find symbol(s) nauty with NTY" >&5 |
| 30841 | echoscip-shell system . . echo. "$as_me: error: Cannot find symbol(s) nauty with NTY" >&2;} |
| 30842 | { (exit 1); exit 1; }; } |
| 30843 | fi |
| 30844 | fi |
| 30845 | |
| 30846 | |
| 30847 | # If we make it this far, we've verified the file and linked the function. Add |
| 30848 | # the necessary link flags to CbcLib CbcGeneric_{PC}LIBS and define the preprocessor symbol |
| 30849 | # COIN_HAS_LBRY. |
| 30850 | |
| 30851 | |
| 30852 | CBCLIB_LIBS="$NTYLIB $CBCLIB_LIBS" |
| 30853 | CBCLIB_PCLIBS="$NTYLIB $CBCLIB_PCLIBS" |
| 30854 | CBCLIB_LIBS_INSTALLED="$NTYLIB $CBCLIB_LIBS_INSTALLED" |
| 30855 | |
| 30856 | CBCGENERIC_LIBS="$NTYLIB $CBCGENERIC_LIBS" |
| 30857 | CBCGENERIC_PCLIBS="$NTYLIB $CBCGENERIC_PCLIBS" |
| 30858 | CBCGENERIC_LIBS_INSTALLED="$NTYLIB $CBCGENERIC_LIBS_INSTALLED" |
| 30859 | |
| 30860 | |
| 30861 | |
| 30862 | catscip-shell system . . cat. >>confdefs.h <<\_ACEOF |
| 30863 | #define COIN_HAS_NTY 1 |
| 30864 | _ACEOF |
| 30865 | |
| 30866 | fi |
| 30867 | |
| 30868 | # Arrange for configure to substitute LBRYINCDIR and LBRYLIB and create the |
| 30869 | # automake conditional. These actions must occur unconditionally. |
| 30870 | |
| 30871 | |
| 30872 | |
| 30873 | |
| 30874 | |
| 30875 | if testscip-shell system . . test. $coin_has_nty = true; then |
| 30876 | COIN_HAS_NTY_TRUE= |
| 30877 | COIN_HAS_NTY_FALSE='#' |
| 30878 | else |
| 30879 | COIN_HAS_NTY_TRUE='#' |
| 30880 | COIN_HAS_NTY_FALSE= |
| 30881 | fi |
| 30882 | |
| 30883 | |
| 30884 | ac_ext=c |
| 30885 | ac_cpp='$CPP $CPPFLAGS' |
| 30886 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30887 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30888 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 30889 | |
| 30890 | |
| 30891 | ############################################################################# |
| 30892 | # CbcGeneric configuration # |
| 30893 | ############################################################################# |
| 30894 | |
| 30895 | # Are we building cbc-generic? Default is no (false). |
| 30896 | |
| 30897 | |
| 30898 | # Check whether --with-cbc-generic or --without-cbc-generic was given. |
| 30899 | if testscip-shell system . . test. "${with_cbc_generic+set}" = set; then |
| 30900 | withval="$with_cbc_generic" |
| 30901 | case $withval in |
| 30902 | yes) cbc_with_cbc_generic=true ;; |
| 30903 | *) cbc_with_cbc_generic=false ;; |
| 30904 | esac |
| 30905 | else |
| 30906 | cbc_with_cbc_generic=false |
| 30907 | fi; |
| 30908 | if testscip-shell system . . test. x"$cbc_with_cbc_generic" = xyes ; then |
| 30909 | { echoscip-shell system . . echo. "$as_me:$LINENO: building cbc-generic" >&5 |
| 30910 | echoscip-shell system . . echo. "$as_me: building cbc-generic" >&6;} |
| 30911 | fi |
| 30912 | |
| 30913 | |
| 30914 | if testscip-shell system . . test. x"$cbc_with_cbc_generic" = xtrue; then |
| 30915 | CBC_BUILD_CBC_GENERIC_TRUE= |
| 30916 | CBC_BUILD_CBC_GENERIC_FALSE='#' |
| 30917 | else |
| 30918 | CBC_BUILD_CBC_GENERIC_TRUE='#' |
| 30919 | CBC_BUILD_CBC_GENERIC_FALSE= |
| 30920 | fi |
| 30921 | |
| 30922 | |
| 30923 | # Set the default solver for cbc-generic. In theory, any OsiXXX should work. |
| 30924 | # In practice, only the three listed below have had any testing. |
| 30925 | |
| 30926 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for cbc-generic default solver" >&5 |
| 30927 | echoscip-shell system . . echo. $ECHO_N "checking for cbc-generic default solver... $ECHO_C" >&6 |
| 30928 | |
| 30929 | # Check whether --with-cbc-generic-solver or --without-cbc-generic-solver was given. |
| 30930 | if testscip-shell system . . test. "${with_cbc_generic_solver+set}" = set; then |
| 30931 | withval="$with_cbc_generic_solver" |
| 30932 | cbc_default_solver=$withval |
| 30933 | else |
| 30934 | cbc_default_solver=clp |
| 30935 | fi; |
| 30936 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $cbc_default_solver" >&5 |
| 30937 | echoscip-shell system . . echo. "${ECHO_T}$cbc_default_solver" >&6 |
| 30938 | |
| 30939 | # FIXME what about cplex and mosek here? |
| 30940 | case $cbc_default_solver in |
| 30941 | clp) |
| 30942 | ;; |
| 30943 | dylp) |
| 30944 | ;; |
| 30945 | glpk) |
| 30946 | ;; |
| 30947 | highs) |
| 30948 | ;; |
| 30949 | soplex) |
| 30950 | ;; |
| 30951 | *) |
| 30952 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: Unrecognised solver $cbc_default_solver chosen as cbc-generic default solver." >&5 |
| 30953 | echoscip-shell system . . echo. "$as_me: WARNING: Unrecognised solver $cbc_default_solver chosen as cbc-generic default solver." >&2;} |
| 30954 | ;; |
| 30955 | esac |
| 30956 | |
| 30957 | catscip-shell system . . cat. >>confdefs.h <<_ACEOF |
| 30958 | #define CBC_DEFAULT_SOLVER "$cbc_default_solver" |
| 30959 | _ACEOF |
| 30960 | |
| 30961 | |
| 30962 | |
| 30963 | ############################################################################# |
| 30964 | # Cbc parallel configuration # |
| 30965 | ############################################################################# |
| 30966 | |
| 30967 | # First we define a new option, --enable-cbc-parallel |
| 30968 | |
| 30969 | # Check whether --enable-cbc-parallel or --disable-cbc-parallel was given. |
| 30970 | if testscip-shell system . . test. "${enable_cbc_parallel+set}" = set; then |
| 30971 | enableval="$enable_cbc_parallel" |
| 30972 | |
| 30973 | fi; |
| 30974 | |
| 30975 | if testscip-shell system . . test. "$enable_cbc_parallel" = yes; then |
| 30976 | # Define the preprocessor macro |
| 30977 | |
| 30978 | catscip-shell system . . cat. >>confdefs.h <<\_ACEOF |
| 30979 | #define CBC_THREAD 1 |
| 30980 | _ACEOF |
| 30981 | |
| 30982 | if testscip-shell system . . test. $coin_cxx_is_cl = true ; |
| 30983 | then |
| 30984 | # TODO we should check whether the library works and pthread.h is indeed there |
| 30985 | |
| 30986 | # Check whether --with-pthreadsw32-lib or --without-pthreadsw32-lib was given. |
| 30987 | if testscip-shell system . . test. "${with_pthreadsw32_lib+set}" = set; then |
| 30988 | withval="$with_pthreadsw32_lib" |
| 30989 | CBCLIB_LIBS="$withval $CBCLIB_LIBS" |
| 30990 | CBCLIB_PCLIBS="$withval $CBCLIB_PCLIBS" |
| 30991 | else |
| 30992 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: --enable-cbc-parallel selected, but --with-pthreadsw32-lib not given" >&5 |
| 30993 | echoscip-shell system . . echo. "$as_me: WARNING: --enable-cbc-parallel selected, but --with-pthreadsw32-lib not given" >&2;} |
| 30994 | CBCLIB_LIBS="pthreadVCE2.lib $CBCLIB_LIBS" |
| 30995 | fi; |
| 30996 | |
| 30997 | |
| 30998 | # Check whether --with-pthreadsw32-incdir or --without-pthreadsw32-incdir was given. |
| 30999 | if testscip-shell system . . test. "${with_pthreadsw32_incdir+set}" = set; then |
| 31000 | withval="$with_pthreadsw32_incdir" |
| 31001 | CXXFLAGS="$CXXFLAGS -I$withval" |
| 31002 | else |
| 31003 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: --enable-cbc-parallel selected, but --with-pthreadsw32-incdir not given" >&5 |
| 31004 | echoscip-shell system . . echo. "$as_me: WARNING: --enable-cbc-parallel selected, but --with-pthreadsw32-incdir not given" >&2;} |
| 31005 | fi; |
| 31006 | else |
| 31007 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 |
| 31008 | echoscip-shell system . . echo. $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6 |
| 31009 | if testscip-shell system . . test. "${ac_cv_lib_rt_clock_gettime+set}" = set; then |
| 31010 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 31011 | else |
| 31012 | ac_check_lib_save_LIBS=$LIBS |
| 31013 | LIBS="-lrt $LIBS" |
| 31014 | catscip-shell system . . cat. >conftest.$ac_ext <<_ACEOF |
| 31015 | /* confdefs.h. */ |
| 31016 | _ACEOF |
| 31017 | catscip-shell system . . cat. confdefs.h >>conftest.$ac_ext |
| 31018 | catscip-shell system . . cat. >>conftest.$ac_ext <<_ACEOF |
| 31019 | /* end confdefs.h. */ |
| 31020 | |
| 31021 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 31022 | #ifdef __cplusplus |
| 31023 | extern "C" |
| 31024 | #endif |
| 31025 | /* We use char because int might match the return type of a gcc2 |
| 31026 | builtin and then its argument prototype would still apply. */ |
| 31027 | char clock_gettime (); |
| 31028 | int |
| 31029 | main () |
| 31030 | { |
| 31031 | clock_gettime (); |
| 31032 | ; |
| 31033 | return 0; |
| 31034 | } |
| 31035 | _ACEOF |
| 31036 | rmscip-shell system . . rm. -f conftest.$ac_objext conftest$ac_exeext |
| 31037 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 31038 | (eval $ac_link) 2>conftest.er1 |
| 31039 | ac_status=$? |
| 31040 | grepscip-shell system . . grep. -v '^ *+' conftest.er1 >conftest.err |
| 31041 | rmscip-shell system . . rm. -f conftest.er1 |
| 31042 | catscip-shell system . . cat. conftest.err >&5 |
| 31043 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31044 | (exit $ac_status); } && |
| 31045 | { ac_try='test -z "$ac_c_werror_flag" |
| 31046 | || test ! -s conftest.err' |
| 31047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 31048 | (eval $ac_try) 2>&5 |
| 31049 | ac_status=$? |
| 31050 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31051 | (exit $ac_status); }; } && |
| 31052 | { ac_try='test -s conftest$ac_exeext' |
| 31053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 31054 | (eval $ac_try) 2>&5 |
| 31055 | ac_status=$? |
| 31056 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31057 | (exit $ac_status); }; }; then |
| 31058 | ac_cv_lib_rt_clock_gettime=yes |
| 31059 | else |
| 31060 | echoscip-shell system . . echo. "$as_me: failed program was:" >&5 |
| 31061 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 31062 | |
| 31063 | ac_cv_lib_rt_clock_gettime=no |
| 31064 | fi |
| 31065 | rmscip-shell system . . rm. -f conftest.err conftest.$ac_objext \ |
| 31066 | conftest$ac_exeext conftest.$ac_ext |
| 31067 | LIBS=$ac_check_lib_save_LIBS |
| 31068 | fi |
| 31069 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5 |
| 31070 | echoscip-shell system . . echo. "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6 |
| 31071 | if testscip-shell system . . test. $ac_cv_lib_rt_clock_gettime = yes; then |
| 31072 | CBCLIB_LIBS="-lrt $CBCLIB_LIBS" |
| 31073 | CBCLIB_PCLIBS="-lrt $CBCLIB_PCLIBS" |
| 31074 | |
| 31075 | catscip-shell system . . cat. >>confdefs.h <<\_ACEOF |
| 31076 | #define HAVE_CLOCK_GETTIME 1 |
| 31077 | _ACEOF |
| 31078 | |
| 31079 | |
| 31080 | else |
| 31081 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: --enable-cbc-parallel selected, but -lrt unavailable; using gettimeofday instead of clock_gettime" >&5 |
| 31082 | echoscip-shell system . . echo. "$as_me: WARNING: --enable-cbc-parallel selected, but -lrt unavailable; using gettimeofday instead of clock_gettime" >&2;} |
| 31083 | fi |
| 31084 | |
| 31085 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 31086 | echoscip-shell system . . echo. $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 |
| 31087 | if testscip-shell system . . test. "${ac_cv_lib_pthread_pthread_create+set}" = set; then |
| 31088 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 31089 | else |
| 31090 | ac_check_lib_save_LIBS=$LIBS |
| 31091 | LIBS="-lpthread $LIBS" |
| 31092 | catscip-shell system . . cat. >conftest.$ac_ext <<_ACEOF |
| 31093 | /* confdefs.h. */ |
| 31094 | _ACEOF |
| 31095 | catscip-shell system . . cat. confdefs.h >>conftest.$ac_ext |
| 31096 | catscip-shell system . . cat. >>conftest.$ac_ext <<_ACEOF |
| 31097 | /* end confdefs.h. */ |
| 31098 | |
| 31099 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 31100 | #ifdef __cplusplus |
| 31101 | extern "C" |
| 31102 | #endif |
| 31103 | /* We use char because int might match the return type of a gcc2 |
| 31104 | builtin and then its argument prototype would still apply. */ |
| 31105 | char pthread_create (); |
| 31106 | int |
| 31107 | main () |
| 31108 | { |
| 31109 | pthread_create (); |
| 31110 | ; |
| 31111 | return 0; |
| 31112 | } |
| 31113 | _ACEOF |
| 31114 | rmscip-shell system . . rm. -f conftest.$ac_objext conftest$ac_exeext |
| 31115 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 31116 | (eval $ac_link) 2>conftest.er1 |
| 31117 | ac_status=$? |
| 31118 | grepscip-shell system . . grep. -v '^ *+' conftest.er1 >conftest.err |
| 31119 | rmscip-shell system . . rm. -f conftest.er1 |
| 31120 | catscip-shell system . . cat. conftest.err >&5 |
| 31121 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31122 | (exit $ac_status); } && |
| 31123 | { ac_try='test -z "$ac_c_werror_flag" |
| 31124 | || test ! -s conftest.err' |
| 31125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 31126 | (eval $ac_try) 2>&5 |
| 31127 | ac_status=$? |
| 31128 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31129 | (exit $ac_status); }; } && |
| 31130 | { ac_try='test -s conftest$ac_exeext' |
| 31131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 31132 | (eval $ac_try) 2>&5 |
| 31133 | ac_status=$? |
| 31134 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31135 | (exit $ac_status); }; }; then |
| 31136 | ac_cv_lib_pthread_pthread_create=yes |
| 31137 | else |
| 31138 | echoscip-shell system . . echo. "$as_me: failed program was:" >&5 |
| 31139 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 31140 | |
| 31141 | ac_cv_lib_pthread_pthread_create=no |
| 31142 | fi |
| 31143 | rmscip-shell system . . rm. -f conftest.err conftest.$ac_objext \ |
| 31144 | conftest$ac_exeext conftest.$ac_ext |
| 31145 | LIBS=$ac_check_lib_save_LIBS |
| 31146 | fi |
| 31147 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5 |
| 31148 | echoscip-shell system . . echo. "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6 |
| 31149 | if testscip-shell system . . test. $ac_cv_lib_pthread_pthread_create = yes; then |
| 31150 | CBCLIB_LIBS="-lpthread $CBCLIB_LIBS" |
| 31151 | CBCLIB_PCLIBS="-lpthread $CBCLIB_PCLIBS" |
| 31152 | |
| 31153 | else |
| 31154 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: --enable-cbc-parallel selected, but -lpthreads unavailable" >&5 |
| 31155 | echoscip-shell system . . echo. "$as_me: error: --enable-cbc-parallel selected, but -lpthreads unavailable" >&2;} |
| 31156 | { (exit 1); exit 1; }; } |
| 31157 | fi |
| 31158 | |
| 31159 | fi |
| 31160 | { echoscip-shell system . . echo. "$as_me:$LINENO: Cbc multithreading enabled" >&5 |
| 31161 | echoscip-shell system . . echo. "$as_me: Cbc multithreading enabled" >&6;}; |
| 31162 | fi |
| 31163 | |
| 31164 | ############################################################################## |
| 31165 | # OsiCbc configuration # |
| 31166 | ############################################################################## |
| 31167 | |
| 31168 | # Handles configuration of the underlying default solver in OsiCbc. The issue |
| 31169 | # is that OsiCbc defines a default solver, used when the client does not |
| 31170 | # specify a solver in the constructor. The default solver must, therefore, |
| 31171 | # be present in the build. This macro checks that this is true, and sets the |
| 31172 | # compile-time symbols OSICBC_DFLT_SOLVER, OSICBC_CLP_DFLT_SOLVER, and |
| 31173 | # OSICBC_DFLT_SOLVER_HPP that control the build. The parameter default_solver |
| 31174 | # should normally be clp, unless you're working on some other solver. |
| 31175 | |
| 31176 | # Ideally, this macro would not require enumeration of solvers, but the |
| 31177 | # effort required to avoid it is just not justified at present. One enumeration |
| 31178 | # is hidden in AC_OSI_CANONICAL. The other is visible, the AM_CONDITIONAL |
| 31179 | # list at the end. |
| 31180 | |
| 31181 | # In an ideal world this macro would do absolutely nothing if Cbc is not |
| 31182 | # present, but autotools is not an ideal world and we have to satisfy its |
| 31183 | # requirements. In particular, the AM_CONDITIONAL macros need to execute or |
| 31184 | # automake will complain. Really the only thing we need to suppress is the |
| 31185 | # check that the default solver exists. All the rest is irrelevant when Cbc |
| 31186 | # isn't present (hence OsiCbc will be configured but not actually compiled). |
| 31187 | |
| 31188 | # Process the with-osicbc-default-solver option. |
| 31189 | |
| 31190 | |
| 31191 | # Check whether --with-osicbc-default-solver or --without-osicbc-default-solver was given. |
| 31192 | if testscip-shell system . . test. "${with_osicbc_default_solver+set}" = set; then |
| 31193 | withval="$with_osicbc_default_solver" |
| 31194 | osicbc_with_solver=$withval |
| 31195 | else |
| 31196 | osicbc_with_solver=clp |
| 31197 | fi; |
| 31198 | |
| 31199 | case "${osicbc_with_solver}" in |
| 31200 | [Cc][Ll][Pp]*) |
| 31201 | osi_lc_solver=clp ; |
| 31202 | osi_mc_solver=Clp ; |
| 31203 | osi_uc_solver=CLP ; |
| 31204 | osi_exists_solver=${coin_has_clp-"unavailable"} |
| 31205 | ;; |
| 31206 | [Dd][Yy][Ll][Pp]*) |
| 31207 | osi_lc_solver=dylp ; |
| 31208 | osi_mc_solver=Dylp |
| 31209 | osi_uc_solver=DYLP |
| 31210 | osi_exists_solver=${coin_has_dylp-"unavailable"} |
| 31211 | ;; |
| 31212 | [Cc][Pp][Xx]*) |
| 31213 | osi_lc_solver=cpx ; |
| 31214 | osi_mc_solver=Cpx |
| 31215 | osi_uc_solver=CPX |
| 31216 | osi_exists_solver=${coin_has_cpx-"unavailable"} |
| 31217 | ;; |
| 31218 | [Gg][Ll][Pp][Kk]*) |
| 31219 | osi_lc_solver=glpk ; |
| 31220 | osi_mc_solver=Glpk |
| 31221 | osi_uc_solver=GLPK |
| 31222 | osi_exists_solver=${coin_has_glpk-"unavailable"} |
| 31223 | ;; |
| 31224 | [Gg][Rr][Bb]*) |
| 31225 | osi_lc_solver=grb ; |
| 31226 | osi_mc_solver=Grb ; |
| 31227 | osi_uc_solver=GRB ; |
| 31228 | osi_exists_solver=${coin_has_grb-"unavailable"} |
| 31229 | ;; |
| 31230 | [H][i][g][h][s]*) |
| 31231 | osi_lc_solver=highs ; |
| 31232 | osi_mc_solver=HiGHS ; |
| 31233 | osi_uc_solver=HIGHS ; |
| 31234 | osi_exists_solver=${coin_has_highs-"unavailable"} |
| 31235 | ;; |
| 31236 | [Mm][Ss][Kk]*) |
| 31237 | osi_lc_solver=msk ; |
| 31238 | osi_mc_solver=Msk |
| 31239 | osi_uc_solver=MSK |
| 31240 | osi_exists_solver=${coin_has_msk-"unavailable"} |
| 31241 | ;; |
| 31242 | [Ss][Pp][Xx]*) |
| 31243 | osi_lc_solver=spx ; |
| 31244 | osi_mc_solver=Spx |
| 31245 | osi_uc_solver=SPX |
| 31246 | osi_exists_solver=${coin_has_spx-"unavailable"} |
| 31247 | ;; |
| 31248 | [Ss][Yy][Mm]*) |
| 31249 | osi_lc_solver=sym ; |
| 31250 | osi_mc_solver=Sym |
| 31251 | osi_uc_solver=SYM |
| 31252 | osi_exists_solver=${coin_has_sym-"unavailable"} |
| 31253 | ;; |
| 31254 | [Vv][Oo][Ll]*) |
| 31255 | osi_lc_solver=vol ; |
| 31256 | osi_mc_solver=Vol |
| 31257 | osi_uc_solver=VOL |
| 31258 | osi_exists_solver=${coin_has_vol-"unavailable"} |
| 31259 | ;; |
| 31260 | [Xx][Pp][Rr]*) |
| 31261 | osi_lc_solver=xpr ; |
| 31262 | osi_mc_solver=Xpr |
| 31263 | osi_uc_solver=XPR |
| 31264 | osi_exists_solver=${coin_has_xpr-"unavailable"} |
| 31265 | ;; |
| 31266 | *) |
| 31267 | osi_lc_solver=clp ; |
| 31268 | osi_mc_solver=Clp ; |
| 31269 | osi_uc_solver=CLP ; |
| 31270 | osi_exists_solver=${coin_has_clp-"unavailable"} |
| 31271 | { echoscip-shell system . . echo. "$as_me:$LINENO: WARNING: Unrecognised solver $1; defaulting to $osi_lc_solver." >&5 |
| 31272 | echoscip-shell system . . echo. "$as_me: WARNING: Unrecognised solver $1; defaulting to $osi_lc_solver." >&2;} |
| 31273 | ;; |
| 31274 | esac |
| 31275 | |
| 31276 | # Check that the requested solver is available. |
| 31277 | if testscip-shell system . . test. $osi_exists_solver = no; then |
| 31278 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: selected default solver $osicbc_with_solver is unavailable. |
| 31279 | Please select an available solver using the --with-osicbc-default-solver option." >&5 |
| 31280 | echoscip-shell system . . echo. "$as_me: error: selected default solver $osicbc_with_solver is unavailable. |
| 31281 | Please select an available solver using the --with-osicbc-default-solver option." >&2;} |
| 31282 | { (exit 1); exit 1; }; } |
| 31283 | fi |
| 31284 | |
| 31285 | # State the result. |
| 31286 | { echoscip-shell system . . echo. "$as_me:$LINENO: OsiCbc default solver is $osi_lc_solver" >&5 |
| 31287 | echoscip-shell system . . echo. "$as_me: OsiCbc default solver is $osi_lc_solver" >&6;} |
| 31288 | |
| 31289 | # And set the configuration variables. |
| 31290 | |
| 31291 | catscip-shell system . . cat. >>confdefs.h <<_ACEOF |
| 31292 | #define OSICBC_DFLT_SOLVER Osi${osi_mc_solver}SolverInterface |
| 31293 | _ACEOF |
| 31294 | |
| 31295 | |
| 31296 | catscip-shell system . . cat. >>confdefs.h <<_ACEOF |
| 31297 | #define OSICBC_DFLT_SOLVER_HPP "Osi${osi_mc_solver}SolverInterface.hpp" |
| 31298 | _ACEOF |
| 31299 | |
| 31300 | if testscip-shell system . . test. $osi_mc_solver = "Clp"; then |
| 31301 | |
| 31302 | catscip-shell system . . cat. >>confdefs.h <<\_ACEOF |
| 31303 | #define OSICBC_DFLT_SOLVER_CLP 1 |
| 31304 | _ACEOF |
| 31305 | |
| 31306 | fi |
| 31307 | |
| 31308 | # Last but not least, we need automake conditionals. |
| 31309 | |
| 31310 | |
| 31311 | if testscip-shell system . . test. $osi_mc_solver = Clp; then |
| 31312 | OSICBC_DFLT_SOLVER_CLP_TRUE= |
| 31313 | OSICBC_DFLT_SOLVER_CLP_FALSE='#' |
| 31314 | else |
| 31315 | OSICBC_DFLT_SOLVER_CLP_TRUE='#' |
| 31316 | OSICBC_DFLT_SOLVER_CLP_FALSE= |
| 31317 | fi |
| 31318 | |
| 31319 | |
| 31320 | |
| 31321 | if testscip-shell system . . test. $osi_mc_solver = Cpx; then |
| 31322 | OSICBC_DFLT_SOLVER_CPX_TRUE= |
| 31323 | OSICBC_DFLT_SOLVER_CPX_FALSE='#' |
| 31324 | else |
| 31325 | OSICBC_DFLT_SOLVER_CPX_TRUE='#' |
| 31326 | OSICBC_DFLT_SOLVER_CPX_FALSE= |
| 31327 | fi |
| 31328 | |
| 31329 | |
| 31330 | |
| 31331 | if testscip-shell system . . test. $osi_mc_solver = Dylp; then |
| 31332 | OSICBC_DFLT_SOLVER_DYLP_TRUE= |
| 31333 | OSICBC_DFLT_SOLVER_DYLP_FALSE='#' |
| 31334 | else |
| 31335 | OSICBC_DFLT_SOLVER_DYLP_TRUE='#' |
| 31336 | OSICBC_DFLT_SOLVER_DYLP_FALSE= |
| 31337 | fi |
| 31338 | |
| 31339 | |
| 31340 | |
| 31341 | if testscip-shell system . . test. $osi_mc_solver = Glpk; then |
| 31342 | OSICBC_DFLT_SOLVER_GLPK_TRUE= |
| 31343 | OSICBC_DFLT_SOLVER_GLPK_FALSE='#' |
| 31344 | else |
| 31345 | OSICBC_DFLT_SOLVER_GLPK_TRUE='#' |
| 31346 | OSICBC_DFLT_SOLVER_GLPK_FALSE= |
| 31347 | fi |
| 31348 | |
| 31349 | |
| 31350 | |
| 31351 | if testscip-shell system . . test. $osi_mc_solver = Grb; then |
| 31352 | OSICBC_DFLT_SOLVER_GRB_TRUE= |
| 31353 | OSICBC_DFLT_SOLVER_GRB_FALSE='#' |
| 31354 | else |
| 31355 | OSICBC_DFLT_SOLVER_GRB_TRUE='#' |
| 31356 | OSICBC_DFLT_SOLVER_GRB_FALSE= |
| 31357 | fi |
| 31358 | |
| 31359 | |
| 31360 | |
| 31361 | if testscip-shell system . . test. $osi_mc_solver = HiGHS; then |
| 31362 | OSICBC_DFLT_SOLVER_HIGHS_TRUE= |
| 31363 | OSICBC_DFLT_SOLVER_HIGHS_FALSE='#' |
| 31364 | else |
| 31365 | OSICBC_DFLT_SOLVER_HIGHS_TRUE='#' |
| 31366 | OSICBC_DFLT_SOLVER_HIGHS_FALSE= |
| 31367 | fi |
| 31368 | |
| 31369 | |
| 31370 | |
| 31371 | if testscip-shell system . . test. $osi_mc_solver = Msk; then |
| 31372 | OSICBC_DFLT_SOLVER_MSK_TRUE= |
| 31373 | OSICBC_DFLT_SOLVER_MSK_FALSE='#' |
| 31374 | else |
| 31375 | OSICBC_DFLT_SOLVER_MSK_TRUE='#' |
| 31376 | OSICBC_DFLT_SOLVER_MSK_FALSE= |
| 31377 | fi |
| 31378 | |
| 31379 | |
| 31380 | |
| 31381 | if testscip-shell system . . test. $osi_mc_solver = Spx; then |
| 31382 | OSICBC_DFLT_SOLVER_SPX_TRUE= |
| 31383 | OSICBC_DFLT_SOLVER_SPX_FALSE='#' |
| 31384 | else |
| 31385 | OSICBC_DFLT_SOLVER_SPX_TRUE='#' |
| 31386 | OSICBC_DFLT_SOLVER_SPX_FALSE= |
| 31387 | fi |
| 31388 | |
| 31389 | |
| 31390 | |
| 31391 | if testscip-shell system . . test. $osi_mc_solver = Sym; then |
| 31392 | OSICBC_DFLT_SOLVER_SYM_TRUE= |
| 31393 | OSICBC_DFLT_SOLVER_SYM_FALSE='#' |
| 31394 | else |
| 31395 | OSICBC_DFLT_SOLVER_SYM_TRUE='#' |
| 31396 | OSICBC_DFLT_SOLVER_SYM_FALSE= |
| 31397 | fi |
| 31398 | |
| 31399 | |
| 31400 | |
| 31401 | if testscip-shell system . . test. $osi_mc_solver = Vol; then |
| 31402 | OSICBC_DFLT_SOLVER_VOL_TRUE= |
| 31403 | OSICBC_DFLT_SOLVER_VOL_FALSE='#' |
| 31404 | else |
| 31405 | OSICBC_DFLT_SOLVER_VOL_TRUE='#' |
| 31406 | OSICBC_DFLT_SOLVER_VOL_FALSE= |
| 31407 | fi |
| 31408 | |
| 31409 | |
| 31410 | |
| 31411 | if testscip-shell system . . test. $osi_mc_solver = Xpr; then |
| 31412 | OSICBC_DFLT_SOLVER_XPR_TRUE= |
| 31413 | OSICBC_DFLT_SOLVER_XPR_FALSE='#' |
| 31414 | else |
| 31415 | OSICBC_DFLT_SOLVER_XPR_TRUE='#' |
| 31416 | OSICBC_DFLT_SOLVER_XPR_FALSE= |
| 31417 | fi |
| 31418 | |
| 31419 | |
| 31420 | ############################################################################## |
| 31421 | # VPATH links for example input files # |
| 31422 | ############################################################################## |
| 31423 | |
| 31424 | # In case this is a VPATH configuration we need to make sure that the |
| 31425 | # input files for the examples are available in the VPATH directory. |
| 31426 | |
| 31427 | |
| 31428 | echoscip-shell system . . echo. "$as_me:$LINENO: checking whether this is a VPATH configuration" >&5 |
| 31429 | echoscip-shell system . . echo. $ECHO_N "checking whether this is a VPATH configuration... $ECHO_C" >&6 |
| 31430 | if testscip-shell system . . test. `cd $srcdir; pwdscip-shell system . . pwd.` != `pwdscip-shell system . . pwd.`; then |
| 31431 | coin_vpath_config=yes; |
| 31432 | else |
| 31433 | coin_vpath_config=no; |
| 31434 | fi |
| 31435 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $coin_vpath_config" >&5 |
| 31436 | echoscip-shell system . . echo. "${ECHO_T}$coin_vpath_config" >&6 |
| 31437 | |
| 31438 | |
| 31439 | |
| 31440 | # Allow for newlines in the parameter |
| 31441 | if testscip-shell system . . test. $coin_vpath_config = yes; then |
| 31442 | cvl_tmp="examples/sudoku_sample.csv" |
| 31443 | for file in $cvl_tmp ; do |
| 31444 | coin_vpath_link_files="$coin_vpath_link_files $file" |
| 31445 | done |
| 31446 | fi |
| 31447 | |
| 31448 | |
| 31449 | |
| 31450 | # Allow for newlines in the parameter |
| 31451 | if testscip-shell system . . test. $coin_vpath_config = yes; then |
| 31452 | cvl_tmp="examples/quad.mps" |
| 31453 | for file in $cvl_tmp ; do |
| 31454 | coin_vpath_link_files="$coin_vpath_link_files $file" |
| 31455 | done |
| 31456 | fi |
| 31457 | |
| 31458 | |
| 31459 | |
| 31460 | # Allow for newlines in the parameter |
| 31461 | if testscip-shell system . . test. $coin_vpath_config = yes; then |
| 31462 | cvl_tmp="examples/quad2.mps" |
| 31463 | for file in $cvl_tmp ; do |
| 31464 | coin_vpath_link_files="$coin_vpath_link_files $file" |
| 31465 | done |
| 31466 | fi |
| 31467 | |
| 31468 | |
| 31469 | ############################################################################# |
| 31470 | # Check for doxygen # |
| 31471 | ############################################################################# |
| 31472 | |
| 31473 | |
| 31474 | |
| 31475 | { echoscip-shell system . . echo. "$as_me:$LINENO: configuring doxygen documentation options" >&5 |
| 31476 | echoscip-shell system . . echo. "$as_me: configuring doxygen documentation options" >&6;} |
| 31477 | |
| 31478 | # Check to see if doxygen is available. |
| 31479 | |
| 31480 | # Extract the first word of "doxygen", so it can be a program name with args. |
| 31481 | set dummy doxygen; ac_word=$2 |
| 31482 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for $ac_word" >&5 |
| 31483 | echoscip-shell system . . echo. $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 31484 | if testscip-shell system . . test. "${ac_cv_prog_coin_have_doxygen+set}" = set; then |
| 31485 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 31486 | else |
| 31487 | if testscip-shell system . . test. -n "$coin_have_doxygen"; then |
| 31488 | ac_cv_prog_coin_have_doxygen="$coin_have_doxygen" # Let the user override the test. |
| 31489 | else |
| 31490 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 31491 | for as_dir in $PATH |
| 31492 | do |
| 31493 | IFS=$as_save_IFS |
| 31494 | testscip-shell system . . test. -z "$as_dir" && as_dir=. |
| 31495 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 31496 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 31497 | ac_cv_prog_coin_have_doxygen="yes" |
| 31498 | echoscip-shell system . . echo. "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 31499 | break 2 |
| 31500 | fi |
| 31501 | done |
| 31502 | done |
| 31503 | |
| 31504 | testscip-shell system . . test. -z "$ac_cv_prog_coin_have_doxygen" && ac_cv_prog_coin_have_doxygen="no" |
| 31505 | fi |
| 31506 | fi |
| 31507 | coin_have_doxygen=$ac_cv_prog_coin_have_doxygen |
| 31508 | if testscip-shell system . . test. -n "$coin_have_doxygen"; then |
| 31509 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $coin_have_doxygen" >&5 |
| 31510 | echoscip-shell system . . echo. "${ECHO_T}$coin_have_doxygen" >&6 |
| 31511 | else |
| 31512 | echoscip-shell system . . echo. "$as_me:$LINENO: result: no" >&5 |
| 31513 | echoscip-shell system . . echo. "${ECHO_T}no" >&6 |
| 31514 | fi |
| 31515 | |
| 31516 | # Extract the first word of "latex", so it can be a program name with args. |
| 31517 | set dummy latex; ac_word=$2 |
| 31518 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for $ac_word" >&5 |
| 31519 | echoscip-shell system . . echo. $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 31520 | if testscip-shell system . . test. "${ac_cv_prog_coin_have_latex+set}" = set; then |
| 31521 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 31522 | else |
| 31523 | if testscip-shell system . . test. -n "$coin_have_latex"; then |
| 31524 | ac_cv_prog_coin_have_latex="$coin_have_latex" # Let the user override the test. |
| 31525 | else |
| 31526 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 31527 | for as_dir in $PATH |
| 31528 | do |
| 31529 | IFS=$as_save_IFS |
| 31530 | testscip-shell system . . test. -z "$as_dir" && as_dir=. |
| 31531 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 31532 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 31533 | ac_cv_prog_coin_have_latex="yes" |
| 31534 | echoscip-shell system . . echo. "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 31535 | break 2 |
| 31536 | fi |
| 31537 | done |
| 31538 | done |
| 31539 | |
| 31540 | testscip-shell system . . test. -z "$ac_cv_prog_coin_have_latex" && ac_cv_prog_coin_have_latex="no" |
| 31541 | fi |
| 31542 | fi |
| 31543 | coin_have_latex=$ac_cv_prog_coin_have_latex |
| 31544 | if testscip-shell system . . test. -n "$coin_have_latex"; then |
| 31545 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $coin_have_latex" >&5 |
| 31546 | echoscip-shell system . . echo. "${ECHO_T}$coin_have_latex" >&6 |
| 31547 | else |
| 31548 | echoscip-shell system . . echo. "$as_me:$LINENO: result: no" >&5 |
| 31549 | echoscip-shell system . . echo. "${ECHO_T}no" >&6 |
| 31550 | fi |
| 31551 | |
| 31552 | |
| 31553 | # Look for the dot tool from the graphviz package, unless the user has |
| 31554 | # disabled it. |
| 31555 | |
| 31556 | |
| 31557 | # Check whether --with-dot or --without-dot was given. |
| 31558 | if testscip-shell system . . test. "${with_dot+set}" = set; then |
| 31559 | withval="$with_dot" |
| 31560 | |
| 31561 | else |
| 31562 | withval=yes |
| 31563 | fi; |
| 31564 | if testscip-shell system . . test. x"$withval" = xno ; then |
| 31565 | coin_doxy_usedot=NO |
| 31566 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for dot " >&5 |
| 31567 | echoscip-shell system . . echo. $ECHO_N "checking for dot ... $ECHO_C" >&6 |
| 31568 | echoscip-shell system . . echo. "$as_me:$LINENO: result: disabled" >&5 |
| 31569 | echoscip-shell system . . echo. "${ECHO_T}disabled" >&6 |
| 31570 | else |
| 31571 | # Extract the first word of "dot", so it can be a program name with args. |
| 31572 | set dummy dot; ac_word=$2 |
| 31573 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for $ac_word" >&5 |
| 31574 | echoscip-shell system . . echo. $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 31575 | if testscip-shell system . . test. "${ac_cv_prog_coin_doxy_usedot+set}" = set; then |
| 31576 | echoscip-shell system . . echo. $ECHO_N "(cached) $ECHO_C" >&6 |
| 31577 | else |
| 31578 | if testscip-shell system . . test. -n "$coin_doxy_usedot"; then |
| 31579 | ac_cv_prog_coin_doxy_usedot="$coin_doxy_usedot" # Let the user override the test. |
| 31580 | else |
| 31581 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 31582 | for as_dir in $PATH |
| 31583 | do |
| 31584 | IFS=$as_save_IFS |
| 31585 | testscip-shell system . . test. -z "$as_dir" && as_dir=. |
| 31586 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 31587 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 31588 | ac_cv_prog_coin_doxy_usedot="YES" |
| 31589 | echoscip-shell system . . echo. "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 31590 | break 2 |
| 31591 | fi |
| 31592 | done |
| 31593 | done |
| 31594 | |
| 31595 | testscip-shell system . . test. -z "$ac_cv_prog_coin_doxy_usedot" && ac_cv_prog_coin_doxy_usedot="NO" |
| 31596 | fi |
| 31597 | fi |
| 31598 | coin_doxy_usedot=$ac_cv_prog_coin_doxy_usedot |
| 31599 | if testscip-shell system . . test. -n "$coin_doxy_usedot"; then |
| 31600 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $coin_doxy_usedot" >&5 |
| 31601 | echoscip-shell system . . echo. "${ECHO_T}$coin_doxy_usedot" >&6 |
| 31602 | else |
| 31603 | echoscip-shell system . . echo. "$as_me:$LINENO: result: no" >&5 |
| 31604 | echoscip-shell system . . echo. "${ECHO_T}no" >&6 |
| 31605 | fi |
| 31606 | |
| 31607 | fi |
| 31608 | |
| 31609 | # Generate a tag file name and a log file name |
| 31610 | |
| 31611 | coin_doxy_tagname=doxydoc/${PACKAGE}_doxy.tag |
| 31612 | |
| 31613 | coin_doxy_logname=doxydoc/${PACKAGE}_doxy.log |
| 31614 | |
| 31615 | |
| 31616 | |
| 31617 | if testscip-shell system . . test. $coin_have_doxygen = yes; then |
| 31618 | COIN_HAS_DOXYGEN_TRUE= |
| 31619 | COIN_HAS_DOXYGEN_FALSE='#' |
| 31620 | else |
| 31621 | COIN_HAS_DOXYGEN_TRUE='#' |
| 31622 | COIN_HAS_DOXYGEN_FALSE= |
| 31623 | fi |
| 31624 | |
| 31625 | |
| 31626 | |
| 31627 | if testscip-shell system . . test. $coin_have_latex = yes; then |
| 31628 | COIN_HAS_LATEX_TRUE= |
| 31629 | COIN_HAS_LATEX_FALSE='#' |
| 31630 | else |
| 31631 | COIN_HAS_LATEX_TRUE='#' |
| 31632 | COIN_HAS_LATEX_FALSE= |
| 31633 | fi |
| 31634 | |
| 31635 | |
| 31636 | # Process the list of project names and massage them into possible doxygen |
| 31637 | # doc'n directories. Prefer 1) classic external, source processed using |
| 31638 | # a project-specific doxygen.conf, we use the tag file; 2) classic |
| 31639 | # external, source processed using package doxygen.conf; 3) installed |
| 31640 | # doxydoc. Alternatives 1) and 2) are only possible if the directory will be |
| 31641 | # configured, which we can't know unless this is the package base configure, |
| 31642 | # since coin_subdirs is only set there. Hence it's sufficient to check for |
| 31643 | # membership. If we use a tag file from a classic external, exclude the |
| 31644 | # source from doxygen processing when doxygen runs in the base directory. |
| 31645 | |
| 31646 | coin_doxy_tagfiles= |
| 31647 | coin_doxy_excludes= |
| 31648 | tmp="CoinUtils Osi Clp DyLP Cgl Vol" |
| 31649 | for proj in $tmp ; do |
| 31650 | lc_proj=`echoscip-shell system . . echo. $proj | trscip-shell system . . tr. [A-Z] [a-z]` |
| 31651 | echoscip-shell system . . echo. "$as_me:$LINENO: checking for doxygen doc'n for $proj " >&5 |
| 31652 | echoscip-shell system . . echo. $ECHO_N "checking for doxygen doc'n for $proj ... $ECHO_C" >&6 |
| 31653 | doxytag=${lc_proj}_doxy.tag |
| 31654 | doxyfound=no |
| 31655 | # proj will be configured, hence doxydoc present in build tree |
| 31656 | doxysrcdir="${srcdir}/../${proj}" |
| 31657 | # AC_MSG_NOTICE([Considering $doxysrcdir (base)]) |
| 31658 | if testscip-shell system . . test. -d "$doxysrcdir" ; then |
| 31659 | # with a doxydoc directory? |
| 31660 | doxydir="$doxysrcdir/doxydoc" |
| 31661 | # AC_MSG_NOTICE([Considering $doxydir (base)]) |
| 31662 | # AC_MSG_NOTICE([Subdirs: $coin_subdirs)]) |
| 31663 | if testscip-shell system . . test. -d "$doxydir" ; then |
| 31664 | # use tag file; don't process source |
| 31665 | doxydir="../${proj}/doxydoc" |
| 31666 | coin_doxy_tagfiles="$coin_doxy_tagfiles $doxydir/$doxytag=../../$doxydir/html" |
| 31667 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $doxydir (tag)" >&5 |
| 31668 | echoscip-shell system . . echo. "${ECHO_T}$doxydir (tag)" >&6 |
| 31669 | coin_doxy_excludes="$coin_doxy_excludes */${proj}" |
| 31670 | else |
| 31671 | # will process the source -- nothing further to be done here |
| 31672 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $doxysrcdir (src)" >&5 |
| 31673 | echoscip-shell system . . echo. "${ECHO_T}$doxysrcdir (src)" >&6 |
| 31674 | fi |
| 31675 | doxyfound=yes |
| 31676 | fi |
| 31677 | # Not built, fall back to installed tag file |
| 31678 | if testscip-shell system . . test. $doxyfound = no ; then |
| 31679 | eval doxydir="${datadir}/coin/doc/${proj}/doxydoc" |
| 31680 | # AC_MSG_NOTICE([Considering $doxydir (install)]) |
| 31681 | # AC_MSG_NOTICE([Subdirs: $coin_subdirs)]) |
| 31682 | coin_doxy_tagfiles="$coin_doxy_tagfiles $doxydir/$doxytag=$doxydir/html" |
| 31683 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $doxydir (tag)" >&5 |
| 31684 | echoscip-shell system . . echo. "${ECHO_T}$doxydir (tag)" >&6 |
| 31685 | fi |
| 31686 | done |
| 31687 | |
| 31688 | |
| 31689 | |
| 31690 | |
| 31691 | |
| 31692 | ############################################################################## |
| 31693 | # Finishing up by writing all the output # |
| 31694 | ############################################################################## |
| 31695 | |
| 31696 | # Here list all the files that configure should create (except for the |
| 31697 | # configuration header file) |
| 31698 | ac_config_files="$ac_config_files Makefile examples/Makefile src/Makefile src/OsiCbc/Makefile test/Makefile cbc.pc cbc-uninstalled.pc osi-cbc.pc osi-cbc-uninstalled.pc" |
| 31699 | |
| 31700 | ac_config_files="$ac_config_files doxydoc/doxygen.conf" |
| 31701 | |
| 31702 | |
| 31703 | # Here put the location and name of the configuration header file |
| 31704 | ac_config_headers="$ac_config_headers src/config.h src/config_cbc.h" |
| 31705 | |
| 31706 | |
| 31707 | # Finally, we let configure write all the output... |
| 31708 | |
| 31709 | |
| 31710 | |
| 31711 | |
| 31712 | echoscip-shell system . . echo. "$as_me:$LINENO: checking which command should be used to link input files" >&5 |
| 31713 | echoscip-shell system . . echo. $ECHO_N "checking which command should be used to link input files... $ECHO_C" >&6 |
| 31714 | coin_link_input_cmd="$LN_S" |
| 31715 | case "$CC" in |
| 31716 | clang* | */clang* ) ;; |
| 31717 | cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) |
| 31718 | coin_link_input_cmd=cp ;; |
| 31719 | esac |
| 31720 | echoscip-shell system . . echo. "$as_me:$LINENO: result: $coin_link_input_cmd" >&5 |
| 31721 | echoscip-shell system . . echo. "${ECHO_T}$coin_link_input_cmd" >&6 |
| 31722 | |
| 31723 | |
| 31724 | |
| 31725 | if testscip-shell system . . test. x$coin_skip_ac_output != xyes; then |
| 31726 | |
| 31727 | # library extension |
| 31728 | |
| 31729 | case "$CC" in |
| 31730 | clang* | */clang* ) |
| 31731 | LIBEXT=a ;; |
| 31732 | cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) |
| 31733 | LIBEXT=lib ;; |
| 31734 | *) LIBEXT=a ;; |
| 31735 | esac |
| 31736 | |
| 31737 | # Define VPATH_DISTCLEANFILES to be everything that needs to be |
| 31738 | # cleaned for distclean in a vpath configuration |
| 31739 | |
| 31740 | VPATH_DISTCLEANFILES="$coin_vpath_link_files" |
| 31741 | |
| 31742 | # Take out subdirectories if their configuration concluded that they |
| 31743 | # don't need to be compiled |
| 31744 | if testscip-shell system . . test. x"$coin_ac_skip_subdirs" != x; then |
| 31745 | new_subdirs= |
| 31746 | for i in $subdirs; do |
| 31747 | skipme=no |
| 31748 | for j in $coin_ac_skip_subdirs; do |
| 31749 | if testscip-shell system . . test. $i = $j; then |
| 31750 | skipme=yes; |
| 31751 | fi |
| 31752 | done |
| 31753 | if testscip-shell system . . test. $skipme = no; then |
| 31754 | new_subdirs="$new_subdirs $i" |
| 31755 | fi |
| 31756 | done |
| 31757 | subdirs="$new_subdirs" |
| 31758 | fi |
| 31759 | |
| 31760 | # need to come before AC_OUTPUT |
| 31761 | if testscip-shell system . . test. x$coin_projectdir != xyes; then |
| 31762 | # write coin_subdirs to a file so that project configuration knows where to find uninstalled projects |
| 31763 | echoscip-shell system . . echo. $coin_subdirs > coin_subdirs.txt |
| 31764 | else |
| 31765 | # substitute for OBJDIR, needed to setup .pc file for uninstalled project |
| 31766 | ABSBUILDDIR="`pwdscip-shell system . . pwd.`" |
| 31767 | |
| 31768 | fi |
| 31769 | |
| 31770 | catscip-shell system . . cat. >confcache <<\_ACEOF |
| 31771 | # This file is a shell script that caches the results of configure |
| 31772 | # tests run on this system so they can be shared between configure |
| 31773 | # scripts and configure runs, see configure's option --config-cache. |
| 31774 | # It is not useful on other systems. If it contains results you don't |
| 31775 | # want to keep, you may remove or edit it. |
| 31776 | # |
| 31777 | # config.status only pays attention to the cache file if you give it |
| 31778 | # the --recheck option to rerun configure. |
| 31779 | # |
| 31780 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 31781 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 31782 | # following values. |
| 31783 | |
| 31784 | _ACEOF |
| 31785 | |
| 31786 | # The following way of writing the cache mishandles newlines in values, |
| 31787 | # but we know of no workaround that is simple, portable, and efficient. |
| 31788 | # So, don't put newlines in cache variables' values. |
| 31789 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 31790 | # and sets the high bit in the cache file unless we assign to the vars. |
| 31791 | { |
| 31792 | (set) 2>&1 | |
| 31793 | case `(ac_space=' '; set | grepscip-shell system . . grep. ac_space) 2>&1` in |
| 31794 | *ac_space=\ *) |
| 31795 | # `set' does not quote correctly, so add quotes (double-quote |
| 31796 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 31797 | sedscip-shell system . . sed. -n \ |
| 31798 | "s/'/'\\\\''/g; |
| 31799 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 31800 | ;; |
| 31801 | *) |
| 31802 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 31803 | sedscip-shell system . . sed. -n \ |
| 31804 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 31805 | ;; |
| 31806 | esac; |
| 31807 | } | |
| 31808 | sedscip-shell system . . sed. ' |
| 31809 | t clear |
| 31810 | : clear |
| 31811 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 31812 | t end |
| 31813 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 31814 | : end' >>confcache |
| 31815 | if diffscip-shell system . . diff. $cache_file confcache >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1; then :; else |
| 31816 | if testscip-shell system . . test. -w $cache_file; then |
| 31817 | testscip-shell system . . test. "x$cache_file" != "x/dev/null" && echoscip-shell system . . echo. "updating cache $cache_file" |
| 31818 | catscip-shell system . . cat. confcache >$cache_file |
| 31819 | else |
| 31820 | echoscip-shell system . . echo. "not updating unwritable cache $cache_file" |
| 31821 | fi |
| 31822 | fi |
| 31823 | rmscip-shell system . . rm. -f confcache |
| 31824 | |
| 31825 | testscip-shell system . . test. "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 31826 | # Let make expand exec_prefix. |
| 31827 | testscip-shell system . . test. "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 31828 | |
| 31829 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 31830 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 31831 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 31832 | # (actually we leave an empty line to preserve line numbers). |
| 31833 | if testscip-shell system . . test. "x$srcdir" = x.; then |
| 31834 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 31835 | s/:*\$(srcdir):*/:/; |
| 31836 | s/:*\${srcdir}:*/:/; |
| 31837 | s/:*@srcdir@:*/:/; |
| 31838 | s/^\([^=]*=[ ]*\):*/\1/; |
| 31839 | s/:*$//; |
| 31840 | s/^[^=]*=[ ]*$//; |
| 31841 | }' |
| 31842 | fi |
| 31843 | |
| 31844 | DEFS=-DHAVE_CONFIG_H |
| 31845 | |
| 31846 | ac_libobjs= |
| 31847 | ac_ltlibobjs= |
| 31848 | for ac_i in : $LIBOBJS; do testscip-shell system . . test. "x$ac_i" = x: && continue |
| 31849 | # 1. Remove the extension, and $U if already installed. |
| 31850 | ac_i=`echoscip-shell system . . echo. "$ac_i" | |
| 31851 | sedscip-shell system . . sed. 's/\$U\././;s/\.o$//;s/\.obj$//'` |
| 31852 | # 2. Add them. |
| 31853 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 31854 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 31855 | done |
| 31856 | LIBOBJS=$ac_libobjs |
| 31857 | |
| 31858 | LTLIBOBJS=$ac_ltlibobjs |
| 31859 | |
| 31860 | |
| 31861 | if testscip-shell system . . test. -z "${ALWAYS_FALSE_TRUE}" && testscip-shell system . . test. -z "${ALWAYS_FALSE_FALSE}"; then |
| 31862 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: conditional \"ALWAYS_FALSE\" was never defined. |
| 31863 | Usually this means the macro was only invoked conditionally." >&5 |
| 31864 | echoscip-shell system . . echo. "$as_me: error: conditional \"ALWAYS_FALSE\" was never defined. |
| 31865 | Usually this means the macro was only invoked conditionally." >&2;} |
| 31866 | { (exit 1); exit 1; }; } |
| 31867 | fi |
| 31868 | if testscip-shell system . . test. -z "${COIN_CC_IS_CL_TRUE}" && testscip-shell system . . test. -z "${COIN_CC_IS_CL_FALSE}"; then |
| 31869 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: conditional \"COIN_CC_IS_CL\" was never defined. |
| 31870 | Usually this means the macro was only invoked conditionally." >&5 |
| 31871 | echoscip-shell system . . echo. "$as_me: error: conditional \"COIN_CC_IS_CL\" was never defined. |
| 31872 | Usually this means the macro was only invoked conditionally." >&2;} |
| 31873 | { (exit 1); exit 1; }; } |
| 31874 | fi |
| 31875 | if testscip-shell system . . test. -z "${COIN_CXX_IS_CL_TRUE}" && testscip-shell system . . test. -z "${COIN_CXX_IS_CL_FALSE}"; then |
| 31876 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: conditional \"COIN_CXX_IS_CL\" was never defined. |
| 31877 | Usually this means the macro was only invoked conditionally." >&5 |
| 31878 | echoscip-shell system . . echo. "$as_me: error: conditional \"COIN_CXX_IS_CL\" was never defined. |
| 31879 | Usually this means the macro was only invoked conditionally." >&2;} |
| 31880 | { (exit 1); exit 1; }; } |
| 31881 | fi |
| 31882 | if testscip-shell system . . test. -z "${AMDEP_TRUE}" && testscip-shell system . . test. -z "${AMDEP_FALSE}"; then |
| 31883 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
| 31884 | Usually this means the macro was only invoked conditionally." >&5 |
| 31885 | echoscip-shell system . . echo. "$as_me: error: conditional \"AMDEP\" was never defined. |
| 31886 | Usually this means the macro was only invoked conditionally." >&2;} |
| 31887 | { (exit 1); exit 1; }; } |
| 31888 | fi |
| 31889 | if testscip-shell system . . test. -z "${am__fastdepCC_TRUE}" && testscip-shell system . . test. -z "${am__fastdepCC_FALSE}"; then |
| 31890 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
| 31891 | Usually this means the macro was only invoked conditionally." >&5 |
| 31892 | echoscip-shell system . . echo. "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
| 31893 | Usually this means the macro was only invoked conditionally." >&2;} |
| 31894 | { (exit 1); exit 1; }; } |
| 31895 | fi |
| 31896 | if testscip-shell system . . test. -z "${am__fastdepCXX_TRUE}" && testscip-shell system . . test. -z "${am__fastdepCXX_FALSE}"; then |
| 31897 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
| 31898 | Usually this means the macro was only invoked conditionally." >&5 |
| 31899 | echoscip-shell system . . echo. "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
| 31900 | Usually this means the macro was only invoked conditionally." >&2;} |
| 31901 | { (exit 1); exit 1; }; } |
| 31902 | fi |
| 31903 | if testscip-shell system . . test. -z "${MAINTAINER_MODE_TRUE}" && testscip-shell system . . test. -z "${MAINTAINER_MODE_FALSE}"; then |
| 31904 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. |
| 31905 | Usually this means the macro was only invoked conditionally." >&5 |
| 31906 | echoscip-shell system . . echo. "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. |
| 31907 | Usually this means the macro was only invoked conditionally." >&2;} |
| 31908 | { (exit 1); exit 1; }; } |
| 31909 | fi |
| 31910 | if testscip-shell system . . test. -z "${HAVE_EXTERNALS_TRUE}" && testscip-shell system . . test. -z "${HAVE_EXTERNALS_FALSE}"; then |
| 31911 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: conditional \"HAVE_EXTERNALS\" was never defined. |
| 31912 | Usually this means the macro was only invoked conditionally." >&5 |
| 31913 | echoscip-shell system . . echo. "$as_me: error: conditional \"HAVE_EXTERNALS\" was never defined. |
| 31914 | Usually this means the macro was only invoked conditionally." >&2;} |
| 31915 | { (exit 1); exit 1; }; } |
| 31916 | fi |
| 31917 | if testscip-shell system . . test. -z "${DEPENDENCY_LINKING_TRUE}" && testscip-shell system . . test. -z "${DEPENDENCY_LINKING_FALSE}"; then |
| 31918 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: conditional \"DEPENDENCY_LINKING\" was never defined. |
| 31919 | Usually this means the macro was only invoked conditionally." >&5 |
| 31920 | echoscip-shell system . . echo. "$as_me: error: conditional \"DEPENDENCY_LINKING\" was never defined. |
| 31921 | Usually this means the macro was only invoked conditionally." >&2;} |
| 31922 | { (exit 1); exit 1; }; } |
| 31923 | fi |
| 31924 | if testscip-shell system . . test. -z "${COIN_HAS_PKGCONFIG_TRUE}" && testscip-shell system . . test. -z "${COIN_HAS_PKGCONFIG_FALSE}"; then |
| 31925 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: conditional \"COIN_HAS_PKGCONFIG\" was never defined. |
| 31926 | Usually this means the macro was only invoked conditionally." >&5 |
| 31927 | echoscip-shell system . . echo. "$as_me: error: conditional \"COIN_HAS_PKGCONFIG\" was never defined. |
| 31928 | Usually this means the macro was only invoked conditionally." >&2;} |
| 31929 | { (exit 1); exit 1; }; } |
| 31930 | fi |
| 31931 | if testscip-shell system . . test. -z "${COIN_HAS_COINDEPEND_TRUE}" && testscip-shell system . . test. -z "${COIN_HAS_COINDEPEND_FALSE}"; then |
| 31932 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: conditional \"COIN_HAS_COINDEPEND\" was never defined. |
| 31933 | Usually this means the macro was only invoked conditionally." >&5 |
| 31934 | echoscip-shell system . . echo. "$as_me: error: conditional \"COIN_HAS_COINDEPEND\" was never defined. |
| 31935 | Usually this means the macro was only invoked conditionally." >&2;} |
| 31936 | { (exit 1); exit 1; }; } |
| 31937 | fi |
| 31938 | if testscip-shell system . . test. -z "${COIN_HAS_COINDEPEND_TRUE}" && testscip-shell system . . test. -z "${COIN_HAS_COINDEPEND_FALSE}"; then |
| 31939 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: conditional \"COIN_HAS_COINDEPEND\" was never defined. |
| 31940 | Usually this means the macro was only invoked conditionally." >&5 |
| 31941 | echoscip-shell system . . echo. "$as_me: error: conditional \"COIN_HAS_COINDEPEND\" was never defined. |
| 31942 | Usually this means the macro was only invoked conditionally." >&2;} |
| 31943 | { (exit 1); exit 1; }; } |
| 31944 | fi |
| 31945 | if testscip-shell system . . test. -z "${COIN_HAS_CLP_TRUE}" && testscip-shell system . . test. -z "${COIN_HAS_CLP_FALSE}"; then |
| 31946 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: conditional \"COIN_HAS_CLP\" was never defined. |
| 31947 | Usually this means the macro was only invoked conditionally." >&5 |
| 31948 | echoscip-shell system . . echo. "$as_me: error: conditional \"COIN_HAS_CLP\" was never defined. |
| 31949 | Usually this means the macro was only invoked conditionally." >&2;} |
| 31950 | { (exit 1); exit 1; }; } |
| 31951 | fi |
| 31952 | if testscip-shell system . . test. -z "${COIN_HAS_CLP_TRUE}" && testscip-shell system . . test. -z "${COIN_HAS_CLP_FALSE}"; then |
| 31953 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: conditional \"COIN_HAS_CLP\" was never defined. |
| 31954 | Usually this means the macro was only invoked conditionally." >&5 |
| 31955 | echoscip-shell system . . echo. "$as_me: error: conditional \"COIN_HAS_CLP\" was never defined. |
| 31956 | Usually this means the macro was only invoked conditionally." >&2;} |
| 31957 | { (exit 1); exit 1; }; } |
| 31958 | fi |
| 31959 | if testscip-shell system . . test. -z "${COIN_HAS_OSITESTS_TRUE}" && testscip-shell system . . test. -z "${COIN_HAS_OSITESTS_FALSE}"; then |
| 31960 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: conditional \"COIN_HAS_OSITESTS\" was never defined. |
| 31961 | Usually this means the macro was only invoked conditionally." >&5 |
| 31962 | echoscip-shell system . . echo. "$as_me: error: conditional \"COIN_HAS_OSITESTS\" was never defined. |
| 31963 | Usually this means the macro was only invoked conditionally." >&2;} |
| 31964 | { (exit 1); exit 1; }; } |
| 31965 | fi |
| 31966 | if testscip-shell system . . test. -z "${COIN_HAS_OSITESTS_TRUE}" && testscip-shell system . . test. -z "${COIN_HAS_OSITESTS_FALSE}"; then |
| 31967 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: conditional \"COIN_HAS_OSITESTS\" was never defined. |
| 31968 | Usually this means the macro was only invoked conditionally." >&5 |
| 31969 | echoscip-shell system . . echo. "$as_me: error: conditional \"COIN_HAS_OSITESTS\" was never defined. |
| 31970 | Usually this means the macro was only invoked conditionally." >&2;} |
| 31971 | { (exit 1); exit 1; }; } |
| 31972 | fi |
| 31973 | if testscip-shell system . . test. -z "${COIN_HAS_SAMPLE_TRUE}" && testscip-shell system . . test. -z "${COIN_HAS_SAMPLE_FALSE}"; then |
| 31974 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: conditional \"COIN_HAS_SAMPLE\" was never defined. |
| 31975 | Usually this means the macro was only invoked conditionally." >&5 |
| 31976 | echoscip-shell system . . echo. "$as_me: error: conditional \"COIN_HAS_SAMPLE\" was never defined. |
| 31977 | Usually this means the macro was only invoked conditionally." >&2;} |
| 31978 | { (exit 1); exit 1; }; } |
| 31979 | fi |
| 31980 | if testscip-shell system . . test. -z "${COIN_HAS_SAMPLE_TRUE}" && testscip-shell system . . test. -z "${COIN_HAS_SAMPLE_FALSE}"; then |
| 31981 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: conditional \"COIN_HAS_SAMPLE\" was never defined. |
| 31982 | Usually this means the macro was only invoked conditionally." >&5 |
| 31983 | echoscip-shell system . . echo. "$as_me: error: conditional \"COIN_HAS_SAMPLE\" was never defined. |
| 31984 | Usually this means the macro was only invoked conditionally." >&2;} |
| 31985 | { (exit 1); exit 1; }; } |
| 31986 | fi |
| 31987 | if testscip-shell system . . test. -z "${COIN_HAS_NETLIB_TRUE}" && testscip-shell system . . test. -z "${COIN_HAS_NETLIB_FALSE}"; then |
| 31988 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: conditional \"COIN_HAS_NETLIB\" was never defined. |
| 31989 | Usually this means the macro was only invoked conditionally." >&5 |
| 31990 | echoscip-shell system . . echo. "$as_me: error: conditional \"COIN_HAS_NETLIB\" was never defined. |
| 31991 | Usually this means the macro was only invoked conditionally." >&2;} |
| 31992 | { (exit 1); exit 1; }; } |
| 31993 | fi |
| 31994 | if testscip-shell system . . test. -z "${COIN_HAS_NETLIB_TRUE}" && testscip-shell system . . test. -z "${COIN_HAS_NETLIB_FALSE}"; then |
| 31995 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: conditional \"COIN_HAS_NETLIB\" was never defined. |
| 31996 | Usually this means the macro was only invoked conditionally." >&5 |
| 31997 | echoscip-shell system . . echo. "$as_me: error: conditional \"COIN_HAS_NETLIB\" was never defined. |
| 31998 | Usually this means the macro was only invoked conditionally." >&2;} |
| 31999 | { (exit 1); exit 1; }; } |
| 32000 | fi |
| 32001 | if testscip-shell system . . test. -z "${COIN_HAS_MIPLIB3_TRUE}" && testscip-shell system . . test. -z "${COIN_HAS_MIPLIB3_FALSE}"; then |
| 32002 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: conditional \"COIN_HAS_MIPLIB3\" was never defined. |
| 32003 | Usually this means the macro was only invoked conditionally." >&5 |
| 32004 | echoscip-shell system . . echo. "$as_me: error: conditional \"COIN_HAS_MIPLIB3\" was never defined. |
| 32005 | Usually this means the macro was only invoked conditionally." >&2;} |
| 32006 | { (exit 1); exit 1; }; } |
| 32007 | fi |
| 32008 | if testscip-shell system . . test. -z "${COIN_HAS_MIPLIB3_TRUE}" && testscip-shell system . . test. -z "${COIN_HAS_MIPLIB3_FALSE}"; then |
| 32009 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: conditional \"COIN_HAS_MIPLIB3\" was never defined. |
| 32010 | Usually this means the macro was only invoked conditionally." >&5 |
| 32011 | echoscip-shell system . . echo. "$as_me: error: conditional \"COIN_HAS_MIPLIB3\" was never defined. |
| 32012 | Usually this means the macro was only invoked conditionally." >&2;} |
| 32013 | { (exit 1); exit 1; }; } |
| 32014 | fi |
| 32015 | if testscip-shell system . . test. -z "${COIN_HAS_DYLP_TRUE}" && testscip-shell system . . test. -z "${COIN_HAS_DYLP_FALSE}"; then |
| 32016 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: conditional \"COIN_HAS_DYLP\" was never defined. |
| 32017 | Usually this means the macro was only invoked conditionally." >&5 |
| 32018 | echoscip-shell system . . echo. "$as_me: error: conditional \"COIN_HAS_DYLP\" was never defined. |
| 32019 | Usually this means the macro was only invoked conditionally." >&2;} |
| 32020 | { (exit 1); exit 1; }; } |
| 32021 | fi |
| 32022 | if testscip-shell system . . test. -z "${COIN_HAS_DYLP_TRUE}" && testscip-shell system . . test. -z "${COIN_HAS_DYLP_FALSE}"; then |
| 32023 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: conditional \"COIN_HAS_DYLP\" was never defined. |
| 32024 | Usually this means the macro was only invoked conditionally." >&5 |
| 32025 | echoscip-shell system . . echo. "$as_me: error: conditional \"COIN_HAS_DYLP\" was never defined. |
| 32026 | Usually this means the macro was only invoked conditionally." >&2;} |
| 32027 | { (exit 1); exit 1; }; } |
| 32028 | fi |
| 32029 | if testscip-shell system . . test. -z "${COIN_HAS_VOL_TRUE}" && testscip-shell system . . test. -z "${COIN_HAS_VOL_FALSE}"; then |
| 32030 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: conditional \"COIN_HAS_VOL\" was never defined. |
| 32031 | Usually this means the macro was only invoked conditionally." >&5 |
| 32032 | echoscip-shell system . . echo. "$as_me: error: conditional \"COIN_HAS_VOL\" was never defined. |
| 32033 | Usually this means the macro was only invoked conditionally." >&2;} |
| 32034 | { (exit 1); exit 1; }; } |
| 32035 | fi |
| 32036 | if testscip-shell system . . test. -z "${COIN_HAS_VOL_TRUE}" && testscip-shell system . . test. -z "${COIN_HAS_VOL_FALSE}"; then |
| 32037 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: conditional \"COIN_HAS_VOL\" was never defined. |
| 32038 | Usually this means the macro was only invoked conditionally." >&5 |
| 32039 | echoscip-shell system . . echo. "$as_me: error: conditional \"COIN_HAS_VOL\" was never defined. |
| 32040 | Usually this means the macro was only invoked conditionally." >&2;} |
| 32041 | { (exit 1); exit 1; }; } |
| 32042 | fi |
| 32043 | if testscip-shell system . . test. -z "${COIN_HAS_CPX_TRUE}" && testscip-shell system . . test. -z "${COIN_HAS_CPX_FALSE}"; then |
| 32044 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: conditional \"COIN_HAS_CPX\" was never defined. |
| 32045 | Usually this means the macro was only invoked conditionally." >&5 |
| 32046 | echoscip-shell system . . echo. "$as_me: error: conditional \"COIN_HAS_CPX\" was never defined. |
| 32047 | Usually this means the macro was only invoked conditionally." >&2;} |
| 32048 | { (exit 1); exit 1; }; } |
| 32049 | fi |
| 32050 | if testscip-shell system . . test. -z "${COIN_HAS_CPX_TRUE}" && testscip-shell system . . test. -z "${COIN_HAS_CPX_FALSE}"; then |
| 32051 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: conditional \"COIN_HAS_CPX\" was never defined. |
| 32052 | Usually this means the macro was only invoked conditionally." >&5 |
| 32053 | echoscip-shell system . . echo. "$as_me: error: conditional \"COIN_HAS_CPX\" was never defined. |
| 32054 | Usually this means the macro was only invoked conditionally." >&2;} |
| 32055 | { (exit 1); exit 1; }; } |
| 32056 | fi |
| 32057 | if testscip-shell system . . test. -z "${COIN_HAS_GLPK_TRUE}" && testscip-shell system . . test. -z "${COIN_HAS_GLPK_FALSE}"; then |
| 32058 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: conditional \"COIN_HAS_GLPK\" was never defined. |
| 32059 | Usually this means the macro was only invoked conditionally." >&5 |
| 32060 | echoscip-shell system . . echo. "$as_me: error: conditional \"COIN_HAS_GLPK\" was never defined. |
| 32061 | Usually this means the macro was only invoked conditionally." >&2;} |
| 32062 | { (exit 1); exit 1; }; } |
| 32063 | fi |
| 32064 | if testscip-shell system . . test. -z "${COIN_HAS_GLPK_TRUE}" && testscip-shell system . . test. -z "${COIN_HAS_GLPK_FALSE}"; then |
| 32065 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: conditional \"COIN_HAS_GLPK\" was never defined. |
| 32066 | Usually this means the macro was only invoked conditionally." >&5 |
| 32067 | echoscip-shell system . . echo. "$as_me: error: conditional \"COIN_HAS_GLPK\" was never defined. |
| 32068 | Usually this means the macro was only invoked conditionally." >&2;} |
| 32069 | { (exit 1); exit 1; }; } |
| 32070 | fi |
| 32071 | if testscip-shell system . . test. -z "${COIN_HAS_GRB_TRUE}" && testscip-shell system . . test. -z "${COIN_HAS_GRB_FALSE}"; then |
| 32072 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: conditional \"COIN_HAS_GRB\" was never defined. |
| 32073 | Usually this means the macro was only invoked conditionally." >&5 |
| 32074 | echoscip-shell system . . echo. "$as_me: error: conditional \"COIN_HAS_GRB\" was never defined. |
| 32075 | Usually this means the macro was only invoked conditionally." >&2;} |
| 32076 | { (exit 1); exit 1; }; } |
| 32077 | fi |
| 32078 | if testscip-shell system . . test. -z "${COIN_HAS_GRB_TRUE}" && testscip-shell system . . test. -z "${COIN_HAS_GRB_FALSE}"; then |
| 32079 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: conditional \"COIN_HAS_GRB\" was never defined. |
| 32080 | Usually this means the macro was only invoked conditionally." >&5 |
| 32081 | echoscip-shell system . . echo. "$as_me: error: conditional \"COIN_HAS_GRB\" was never defined. |
| 32082 | Usually this means the macro was only invoked conditionally." >&2;} |
| 32083 | { (exit 1); exit 1; }; } |
| 32084 | fi |
| 32085 | if testscip-shell system . . test. -z "${COIN_HAS_HIGHS_TRUE}" && testscip-shell system . . test. -z "${COIN_HAS_HIGHS_FALSE}"; then |
| 32086 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: conditional \"COIN_HAS_HIGHS\" was never defined. |
| 32087 | Usually this means the macro was only invoked conditionally." >&5 |
| 32088 | echoscip-shell system . . echo. "$as_me: error: conditional \"COIN_HAS_HIGHS\" was never defined. |
| 32089 | Usually this means the macro was only invoked conditionally." >&2;} |
| 32090 | { (exit 1); exit 1; }; } |
| 32091 | fi |
| 32092 | if testscip-shell system . . test. -z "${COIN_HAS_HIGHS_TRUE}" && testscip-shell system . . test. -z "${COIN_HAS_HIGHS_FALSE}"; then |
| 32093 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: conditional \"COIN_HAS_HIGHS\" was never defined. |
| 32094 | Usually this means the macro was only invoked conditionally." >&5 |
| 32095 | echoscip-shell system . . echo. "$as_me: error: conditional \"COIN_HAS_HIGHS\" was never defined. |
| 32096 | Usually this means the macro was only invoked conditionally." >&2;} |
| 32097 | { (exit 1); exit 1; }; } |
| 32098 | fi |
| 32099 | if testscip-shell system . . test. -z "${COIN_HAS_MSK_TRUE}" && testscip-shell system . . test. -z "${COIN_HAS_MSK_FALSE}"; then |
| 32100 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: conditional \"COIN_HAS_MSK\" was never defined. |
| 32101 | Usually this means the macro was only invoked conditionally." >&5 |
| 32102 | echoscip-shell system . . echo. "$as_me: error: conditional \"COIN_HAS_MSK\" was never defined. |
| 32103 | Usually this means the macro was only invoked conditionally." >&2;} |
| 32104 | { (exit 1); exit 1; }; } |
| 32105 | fi |
| 32106 | if testscip-shell system . . test. -z "${COIN_HAS_MSK_TRUE}" && testscip-shell system . . test. -z "${COIN_HAS_MSK_FALSE}"; then |
| 32107 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: conditional \"COIN_HAS_MSK\" was never defined. |
| 32108 | Usually this means the macro was only invoked conditionally." >&5 |
| 32109 | echoscip-shell system . . echo. "$as_me: error: conditional \"COIN_HAS_MSK\" was never defined. |
| 32110 | Usually this means the macro was only invoked conditionally." >&2;} |
| 32111 | { (exit 1); exit 1; }; } |
| 32112 | fi |
| 32113 | if testscip-shell system . . test. -z "${COIN_HAS_SPX_TRUE}" && testscip-shell system . . test. -z "${COIN_HAS_SPX_FALSE}"; then |
| 32114 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: conditional \"COIN_HAS_SPX\" was never defined. |
| 32115 | Usually this means the macro was only invoked conditionally." >&5 |
| 32116 | echoscip-shell system . . echo. "$as_me: error: conditional \"COIN_HAS_SPX\" was never defined. |
| 32117 | Usually this means the macro was only invoked conditionally." >&2;} |
| 32118 | { (exit 1); exit 1; }; } |
| 32119 | fi |
| 32120 | if testscip-shell system . . test. -z "${COIN_HAS_SPX_TRUE}" && testscip-shell system . . test. -z "${COIN_HAS_SPX_FALSE}"; then |
| 32121 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: conditional \"COIN_HAS_SPX\" was never defined. |
| 32122 | Usually this means the macro was only invoked conditionally." >&5 |
| 32123 | echoscip-shell system . . echo. "$as_me: error: conditional \"COIN_HAS_SPX\" was never defined. |
| 32124 | Usually this means the macro was only invoked conditionally." >&2;} |
| 32125 | { (exit 1); exit 1; }; } |
| 32126 | fi |
| 32127 | if testscip-shell system . . test. -z "${COIN_HAS_XPR_TRUE}" && testscip-shell system . . test. -z "${COIN_HAS_XPR_FALSE}"; then |
| 32128 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: conditional \"COIN_HAS_XPR\" was never defined. |
| 32129 | Usually this means the macro was only invoked conditionally." >&5 |
| 32130 | echoscip-shell system . . echo. "$as_me: error: conditional \"COIN_HAS_XPR\" was never defined. |
| 32131 | Usually this means the macro was only invoked conditionally." >&2;} |
| 32132 | { (exit 1); exit 1; }; } |
| 32133 | fi |
| 32134 | if testscip-shell system . . test. -z "${COIN_HAS_XPR_TRUE}" && testscip-shell system . . test. -z "${COIN_HAS_XPR_FALSE}"; then |
| 32135 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: conditional \"COIN_HAS_XPR\" was never defined. |
| 32136 | Usually this means the macro was only invoked conditionally." >&5 |
| 32137 | echoscip-shell system . . echo. "$as_me: error: conditional \"COIN_HAS_XPR\" was never defined. |
| 32138 | Usually this means the macro was only invoked conditionally." >&2;} |
| 32139 | { (exit 1); exit 1; }; } |
| 32140 | fi |
| 32141 | if testscip-shell system . . test. -z "${COIN_HAS_ASL_TRUE}" && testscip-shell system . . test. -z "${COIN_HAS_ASL_FALSE}"; then |
| 32142 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: conditional \"COIN_HAS_ASL\" was never defined. |
| 32143 | Usually this means the macro was only invoked conditionally." >&5 |
| 32144 | echoscip-shell system . . echo. "$as_me: error: conditional \"COIN_HAS_ASL\" was never defined. |
| 32145 | Usually this means the macro was only invoked conditionally." >&2;} |
| 32146 | { (exit 1); exit 1; }; } |
| 32147 | fi |
| 32148 | if testscip-shell system . . test. -z "${COIN_HAS_ASL_TRUE}" && testscip-shell system . . test. -z "${COIN_HAS_ASL_FALSE}"; then |
| 32149 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: conditional \"COIN_HAS_ASL\" was never defined. |
| 32150 | Usually this means the macro was only invoked conditionally." >&5 |
| 32151 | echoscip-shell system . . echo. "$as_me: error: conditional \"COIN_HAS_ASL\" was never defined. |
| 32152 | Usually this means the macro was only invoked conditionally." >&2;} |
| 32153 | { (exit 1); exit 1; }; } |
| 32154 | fi |
| 32155 | if testscip-shell system . . test. -z "${COIN_HAS_MUMPS_TRUE}" && testscip-shell system . . test. -z "${COIN_HAS_MUMPS_FALSE}"; then |
| 32156 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: conditional \"COIN_HAS_MUMPS\" was never defined. |
| 32157 | Usually this means the macro was only invoked conditionally." >&5 |
| 32158 | echoscip-shell system . . echo. "$as_me: error: conditional \"COIN_HAS_MUMPS\" was never defined. |
| 32159 | Usually this means the macro was only invoked conditionally." >&2;} |
| 32160 | { (exit 1); exit 1; }; } |
| 32161 | fi |
| 32162 | if testscip-shell system . . test. -z "${COIN_HAS_MUMPS_TRUE}" && testscip-shell system . . test. -z "${COIN_HAS_MUMPS_FALSE}"; then |
| 32163 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: conditional \"COIN_HAS_MUMPS\" was never defined. |
| 32164 | Usually this means the macro was only invoked conditionally." >&5 |
| 32165 | echoscip-shell system . . echo. "$as_me: error: conditional \"COIN_HAS_MUMPS\" was never defined. |
| 32166 | Usually this means the macro was only invoked conditionally." >&2;} |
| 32167 | { (exit 1); exit 1; }; } |
| 32168 | fi |
| 32169 | if testscip-shell system . . test. -z "${COIN_HAS_NTY_TRUE}" && testscip-shell system . . test. -z "${COIN_HAS_NTY_FALSE}"; then |
| 32170 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: conditional \"COIN_HAS_NTY\" was never defined. |
| 32171 | Usually this means the macro was only invoked conditionally." >&5 |
| 32172 | echoscip-shell system . . echo. "$as_me: error: conditional \"COIN_HAS_NTY\" was never defined. |
| 32173 | Usually this means the macro was only invoked conditionally." >&2;} |
| 32174 | { (exit 1); exit 1; }; } |
| 32175 | fi |
| 32176 | if testscip-shell system . . test. -z "${CBC_BUILD_CBC_GENERIC_TRUE}" && testscip-shell system . . test. -z "${CBC_BUILD_CBC_GENERIC_FALSE}"; then |
| 32177 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: conditional \"CBC_BUILD_CBC_GENERIC\" was never defined. |
| 32178 | Usually this means the macro was only invoked conditionally." >&5 |
| 32179 | echoscip-shell system . . echo. "$as_me: error: conditional \"CBC_BUILD_CBC_GENERIC\" was never defined. |
| 32180 | Usually this means the macro was only invoked conditionally." >&2;} |
| 32181 | { (exit 1); exit 1; }; } |
| 32182 | fi |
| 32183 | if testscip-shell system . . test. -z "${OSICBC_DFLT_SOLVER_CLP_TRUE}" && testscip-shell system . . test. -z "${OSICBC_DFLT_SOLVER_CLP_FALSE}"; then |
| 32184 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: conditional \"OSICBC_DFLT_SOLVER_CLP\" was never defined. |
| 32185 | Usually this means the macro was only invoked conditionally." >&5 |
| 32186 | echoscip-shell system . . echo. "$as_me: error: conditional \"OSICBC_DFLT_SOLVER_CLP\" was never defined. |
| 32187 | Usually this means the macro was only invoked conditionally." >&2;} |
| 32188 | { (exit 1); exit 1; }; } |
| 32189 | fi |
| 32190 | if testscip-shell system . . test. -z "${OSICBC_DFLT_SOLVER_CPX_TRUE}" && testscip-shell system . . test. -z "${OSICBC_DFLT_SOLVER_CPX_FALSE}"; then |
| 32191 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: conditional \"OSICBC_DFLT_SOLVER_CPX\" was never defined. |
| 32192 | Usually this means the macro was only invoked conditionally." >&5 |
| 32193 | echoscip-shell system . . echo. "$as_me: error: conditional \"OSICBC_DFLT_SOLVER_CPX\" was never defined. |
| 32194 | Usually this means the macro was only invoked conditionally." >&2;} |
| 32195 | { (exit 1); exit 1; }; } |
| 32196 | fi |
| 32197 | if testscip-shell system . . test. -z "${OSICBC_DFLT_SOLVER_DYLP_TRUE}" && testscip-shell system . . test. -z "${OSICBC_DFLT_SOLVER_DYLP_FALSE}"; then |
| 32198 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: conditional \"OSICBC_DFLT_SOLVER_DYLP\" was never defined. |
| 32199 | Usually this means the macro was only invoked conditionally." >&5 |
| 32200 | echoscip-shell system . . echo. "$as_me: error: conditional \"OSICBC_DFLT_SOLVER_DYLP\" was never defined. |
| 32201 | Usually this means the macro was only invoked conditionally." >&2;} |
| 32202 | { (exit 1); exit 1; }; } |
| 32203 | fi |
| 32204 | if testscip-shell system . . test. -z "${OSICBC_DFLT_SOLVER_GLPK_TRUE}" && testscip-shell system . . test. -z "${OSICBC_DFLT_SOLVER_GLPK_FALSE}"; then |
| 32205 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: conditional \"OSICBC_DFLT_SOLVER_GLPK\" was never defined. |
| 32206 | Usually this means the macro was only invoked conditionally." >&5 |
| 32207 | echoscip-shell system . . echo. "$as_me: error: conditional \"OSICBC_DFLT_SOLVER_GLPK\" was never defined. |
| 32208 | Usually this means the macro was only invoked conditionally." >&2;} |
| 32209 | { (exit 1); exit 1; }; } |
| 32210 | fi |
| 32211 | if testscip-shell system . . test. -z "${OSICBC_DFLT_SOLVER_GRB_TRUE}" && testscip-shell system . . test. -z "${OSICBC_DFLT_SOLVER_GRB_FALSE}"; then |
| 32212 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: conditional \"OSICBC_DFLT_SOLVER_GRB\" was never defined. |
| 32213 | Usually this means the macro was only invoked conditionally." >&5 |
| 32214 | echoscip-shell system . . echo. "$as_me: error: conditional \"OSICBC_DFLT_SOLVER_GRB\" was never defined. |
| 32215 | Usually this means the macro was only invoked conditionally." >&2;} |
| 32216 | { (exit 1); exit 1; }; } |
| 32217 | fi |
| 32218 | if testscip-shell system . . test. -z "${OSICBC_DFLT_SOLVER_HIGHS_TRUE}" && testscip-shell system . . test. -z "${OSICBC_DFLT_SOLVER_HIGHS_FALSE}"; then |
| 32219 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: conditional \"OSICBC_DFLT_SOLVER_HIGHS\" was never defined. |
| 32220 | Usually this means the macro was only invoked conditionally." >&5 |
| 32221 | echoscip-shell system . . echo. "$as_me: error: conditional \"OSICBC_DFLT_SOLVER_HIGHS\" was never defined. |
| 32222 | Usually this means the macro was only invoked conditionally." >&2;} |
| 32223 | { (exit 1); exit 1; }; } |
| 32224 | fi |
| 32225 | if testscip-shell system . . test. -z "${OSICBC_DFLT_SOLVER_MSK_TRUE}" && testscip-shell system . . test. -z "${OSICBC_DFLT_SOLVER_MSK_FALSE}"; then |
| 32226 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: conditional \"OSICBC_DFLT_SOLVER_MSK\" was never defined. |
| 32227 | Usually this means the macro was only invoked conditionally." >&5 |
| 32228 | echoscip-shell system . . echo. "$as_me: error: conditional \"OSICBC_DFLT_SOLVER_MSK\" was never defined. |
| 32229 | Usually this means the macro was only invoked conditionally." >&2;} |
| 32230 | { (exit 1); exit 1; }; } |
| 32231 | fi |
| 32232 | if testscip-shell system . . test. -z "${OSICBC_DFLT_SOLVER_SPX_TRUE}" && testscip-shell system . . test. -z "${OSICBC_DFLT_SOLVER_SPX_FALSE}"; then |
| 32233 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: conditional \"OSICBC_DFLT_SOLVER_SPX\" was never defined. |
| 32234 | Usually this means the macro was only invoked conditionally." >&5 |
| 32235 | echoscip-shell system . . echo. "$as_me: error: conditional \"OSICBC_DFLT_SOLVER_SPX\" was never defined. |
| 32236 | Usually this means the macro was only invoked conditionally." >&2;} |
| 32237 | { (exit 1); exit 1; }; } |
| 32238 | fi |
| 32239 | if testscip-shell system . . test. -z "${OSICBC_DFLT_SOLVER_SYM_TRUE}" && testscip-shell system . . test. -z "${OSICBC_DFLT_SOLVER_SYM_FALSE}"; then |
| 32240 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: conditional \"OSICBC_DFLT_SOLVER_SYM\" was never defined. |
| 32241 | Usually this means the macro was only invoked conditionally." >&5 |
| 32242 | echoscip-shell system . . echo. "$as_me: error: conditional \"OSICBC_DFLT_SOLVER_SYM\" was never defined. |
| 32243 | Usually this means the macro was only invoked conditionally." >&2;} |
| 32244 | { (exit 1); exit 1; }; } |
| 32245 | fi |
| 32246 | if testscip-shell system . . test. -z "${OSICBC_DFLT_SOLVER_VOL_TRUE}" && testscip-shell system . . test. -z "${OSICBC_DFLT_SOLVER_VOL_FALSE}"; then |
| 32247 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: conditional \"OSICBC_DFLT_SOLVER_VOL\" was never defined. |
| 32248 | Usually this means the macro was only invoked conditionally." >&5 |
| 32249 | echoscip-shell system . . echo. "$as_me: error: conditional \"OSICBC_DFLT_SOLVER_VOL\" was never defined. |
| 32250 | Usually this means the macro was only invoked conditionally." >&2;} |
| 32251 | { (exit 1); exit 1; }; } |
| 32252 | fi |
| 32253 | if testscip-shell system . . test. -z "${OSICBC_DFLT_SOLVER_XPR_TRUE}" && testscip-shell system . . test. -z "${OSICBC_DFLT_SOLVER_XPR_FALSE}"; then |
| 32254 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: conditional \"OSICBC_DFLT_SOLVER_XPR\" was never defined. |
| 32255 | Usually this means the macro was only invoked conditionally." >&5 |
| 32256 | echoscip-shell system . . echo. "$as_me: error: conditional \"OSICBC_DFLT_SOLVER_XPR\" was never defined. |
| 32257 | Usually this means the macro was only invoked conditionally." >&2;} |
| 32258 | { (exit 1); exit 1; }; } |
| 32259 | fi |
| 32260 | if testscip-shell system . . test. -z "${COIN_HAS_DOXYGEN_TRUE}" && testscip-shell system . . test. -z "${COIN_HAS_DOXYGEN_FALSE}"; then |
| 32261 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: conditional \"COIN_HAS_DOXYGEN\" was never defined. |
| 32262 | Usually this means the macro was only invoked conditionally." >&5 |
| 32263 | echoscip-shell system . . echo. "$as_me: error: conditional \"COIN_HAS_DOXYGEN\" was never defined. |
| 32264 | Usually this means the macro was only invoked conditionally." >&2;} |
| 32265 | { (exit 1); exit 1; }; } |
| 32266 | fi |
| 32267 | if testscip-shell system . . test. -z "${COIN_HAS_LATEX_TRUE}" && testscip-shell system . . test. -z "${COIN_HAS_LATEX_FALSE}"; then |
| 32268 | { { echoscip-shell system . . echo. "$as_me:$LINENO: error: conditional \"COIN_HAS_LATEX\" was never defined. |
| 32269 | Usually this means the macro was only invoked conditionally." >&5 |
| 32270 | echoscip-shell system . . echo. "$as_me: error: conditional \"COIN_HAS_LATEX\" was never defined. |
| 32271 | Usually this means the macro was only invoked conditionally." >&2;} |
| 32272 | { (exit 1); exit 1; }; } |
| 32273 | fi |
| 32274 | |
| 32275 | : ${CONFIG_STATUS=./config.status} |
| 32276 | ac_clean_files_save=$ac_clean_files |
| 32277 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 32278 | { echoscip-shell system . . echo. "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 32279 | echoscip-shell system . . echo. "$as_me: creating $CONFIG_STATUS" >&6;} |
| 32280 | catscip-shell system . . cat. >$CONFIG_STATUS <<_ACEOF |
| 32281 | #! $SHELL |
| 32282 | # Generated by $as_me. |
| 32283 | # Run this file to recreate the current configuration. |
| 32284 | # Compiler output produced by configure, useful for debugging |
| 32285 | # configure, is in config.log if it exists. |
| 32286 | |
| 32287 | debug=false |
| 32288 | ac_cs_recheck=false |
| 32289 | ac_cs_silent=false |
| 32290 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 32291 | _ACEOF |
| 32292 | |
| 32293 | catscip-shell system . . cat. >>$CONFIG_STATUS <<\_ACEOF |
| 32294 | ## --------------------- ## |
| 32295 | ## M4sh Initialization. ## |
| 32296 | ## --------------------- ## |
| 32297 | |
| 32298 | # Be Bourne compatible |
| 32299 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 32300 | emulate sh |
| 32301 | NULLCMD=: |
| 32302 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 32303 | # is contrary to our usage. Disable this feature. |
| 32304 | alias -g '${1+"$@"}'='"$@"' |
| 32305 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 32306 | set -o posix |
| 32307 | fi |
| 32308 | DUALCASE=1; export DUALCASE # for MKS sh |
| 32309 | |
| 32310 | # Support unset when possible. |
| 32311 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 32312 | as_unset=unset |
| 32313 | else |
| 32314 | as_unset=false |
| 32315 | fi |
| 32316 | |
| 32317 | |
| 32318 | # Work around bugs in pre-3.0 UWIN ksh. |
| 32319 | $as_unset ENV MAIL MAILPATH |
| 32320 | PS1='$ ' |
| 32321 | PS2='> ' |
| 32322 | PS4='+ ' |
| 32323 | |
| 32324 | # NLS nuisances. |
| 32325 | for as_var in \ |
| 32326 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 32327 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 32328 | LC_TELEPHONE LC_TIME |
| 32329 | do |
| 32330 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 32331 | eval $as_var=C; export $as_var |
| 32332 | else |
| 32333 | $as_unset $as_var |
| 32334 | fi |
| 32335 | done |
| 32336 | |
| 32337 | # Required to use basename. |
| 32338 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 32339 | as_expr=expr |
| 32340 | else |
| 32341 | as_expr=false |
| 32342 | fi |
| 32343 | |
| 32344 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 32345 | as_basename=basename |
| 32346 | else |
| 32347 | as_basename=false |
| 32348 | fi |
| 32349 | |
| 32350 | |
| 32351 | # Name of the executable. |
| 32352 | as_me=`$as_basename "$0" || |
| 32353 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 32354 | X"$0" : 'X\(//\)$' \| \ |
| 32355 | X"$0" : 'X\(/\)$' \| \ |
| 32356 | . : '\(.\)' 2>/dev/null || |
| 32357 | echo X/"$0" | |
| 32358 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 32359 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 32360 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 32361 | s/.*/./; q'` |
| 32362 | |
| 32363 | |
| 32364 | # PATH needs CR, and LINENO needs CR and PATH. |
| 32365 | # Avoid depending upon Character Ranges. |
| 32366 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 32367 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 32368 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 32369 | as_cr_digits='0123456789' |
| 32370 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 32371 | |
| 32372 | # The user is always right. |
| 32373 | if test "${PATH_SEPARATOR+set}" != set; then |
| 32374 | echo "#! /bin/sh" >conf$$.sh |
| 32375 | echo "exit 0" >>conf$$.sh |
| 32376 | chmod +x conf$$.sh |
| 32377 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 32378 | PATH_SEPARATOR=';' |
| 32379 | else |
| 32380 | PATH_SEPARATOR=: |
| 32381 | fi |
| 32382 | rm -f conf$$.sh |
| 32383 | fi |
| 32384 | |
| 32385 | |
| 32386 | as_lineno_1=$LINENO |
| 32387 | as_lineno_2=$LINENO |
| 32388 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 32389 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 32390 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 32391 | # Find who we are. Look in the path if we contain no path at all |
| 32392 | # relative or not. |
| 32393 | case $0 in |
| 32394 | *[\\/]* ) as_myself=$0 ;; |
| 32395 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 32396 | for as_dir in $PATH |
| 32397 | do |
| 32398 | IFS=$as_save_IFS |
| 32399 | test -z "$as_dir" && as_dir=. |
| 32400 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 32401 | done |
| 32402 | |
| 32403 | ;; |
| 32404 | esac |
| 32405 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 32406 | # in which case we are not to be found in the path. |
| 32407 | if test "x$as_myself" = x; then |
| 32408 | as_myself=$0 |
| 32409 | fi |
| 32410 | if test ! -f "$as_myself"; then |
| 32411 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 32412 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 32413 | { (exit 1); exit 1; }; } |
| 32414 | fi |
| 32415 | case $CONFIG_SHELL in |
| 32416 | '') |
| 32417 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 32418 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 32419 | do |
| 32420 | IFS=$as_save_IFS |
| 32421 | test -z "$as_dir" && as_dir=. |
| 32422 | for as_base in sh bash ksh sh5; do |
| 32423 | case $as_dir in |
| 32424 | /*) |
| 32425 | if ("$as_dir/$as_base" -c ' |
| 32426 | as_lineno_1=$LINENO |
| 32427 | as_lineno_2=$LINENO |
| 32428 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 32429 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 32430 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 32431 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 32432 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 32433 | CONFIG_SHELL=$as_dir/$as_base |
| 32434 | export CONFIG_SHELL |
| 32435 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 32436 | fi;; |
| 32437 | esac |
| 32438 | done |
| 32439 | done |
| 32440 | ;; |
| 32441 | esac |
| 32442 | |
| 32443 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 32444 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 32445 | # line-number line before each line; the second 'sed' does the real |
| 32446 | # work. The second script uses 'N' to pair each line-number line |
| 32447 | # with the numbered line, and appends trailing '-' during |
| 32448 | # substitution so that $LINENO is not a special case at line end. |
| 32449 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 32450 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 32451 | sed '=' <$as_myself | |
| 32452 | sed ' |
| 32453 | N |
| 32454 | s,$,-, |
| 32455 | : loop |
| 32456 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 32457 | t loop |
| 32458 | s,-$,, |
| 32459 | s,^['$as_cr_digits']*\n,, |
| 32460 | ' >$as_me.lineno && |
| 32461 | chmod +x $as_me.lineno || |
| 32462 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 32463 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 32464 | { (exit 1); exit 1; }; } |
| 32465 | |
| 32466 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 32467 | # (the dirname of $[0] is not the place where we might find the |
| 32468 | # original and so on. Autoconf is especially sensible to this). |
| 32469 | . ./$as_me.lineno |
| 32470 | # Exit status is that of the last command. |
| 32471 | exit |
| 32472 | } |
| 32473 | |
| 32474 | |
| 32475 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 32476 | *c*,-n*) ECHO_N= ECHO_C=' |
| 32477 | ' ECHO_T=' ' ;; |
| 32478 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 32479 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 32480 | esac |
| 32481 | |
| 32482 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 32483 | as_expr=expr |
| 32484 | else |
| 32485 | as_expr=false |
| 32486 | fi |
| 32487 | |
| 32488 | rm -f conf$$ conf$$.exe conf$$.file |
| 32489 | echo >conf$$.file |
| 32490 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 32491 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 32492 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 32493 | if test -f conf$$.exe; then |
| 32494 | # Don't use ln at all; we don't have any links |
| 32495 | as_ln_s='cp -p' |
| 32496 | else |
| 32497 | as_ln_s='ln -s' |
| 32498 | fi |
| 32499 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 32500 | as_ln_s=ln |
| 32501 | else |
| 32502 | as_ln_s='cp -p' |
| 32503 | fi |
| 32504 | rm -f conf$$ conf$$.exe conf$$.file |
| 32505 | |
| 32506 | if mkdir -p . 2>/dev/null; then |
| 32507 | as_mkdir_p=: |
| 32508 | else |
| 32509 | test -d ./-p && rmdir ./-p |
| 32510 | as_mkdir_p=false |
| 32511 | fi |
| 32512 | |
| 32513 | as_executable_p="test -f" |
| 32514 | |
| 32515 | # Sed expression to map a string onto a valid CPP name. |
| 32516 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 32517 | |
| 32518 | # Sed expression to map a string onto a valid variable name. |
| 32519 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 32520 | |
| 32521 | |
| 32522 | # IFS |
| 32523 | # We need space, tab and new line, in precisely that order. |
| 32524 | as_nl=' |
| 32525 | ' |
| 32526 | IFS=" $as_nl" |
| 32527 | |
| 32528 | # CDPATH. |
| 32529 | $as_unset CDPATH |
| 32530 | |
| 32531 | exec 6>&1 |
| 32532 | |
| 32533 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 32534 | # report actual input values of CONFIG_FILES etc. instead of their |
| 32535 | # values after options handling. Logging --version etc. is OK. |
| 32536 | exec 5>>config.log |
| 32537 | { |
| 32538 | echo |
| 32539 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 32540 | ## Running $as_me. ## |
| 32541 | _ASBOX |
| 32542 | } >&5 |
| 32543 | cat >&5 <<_CSEOF |
| 32544 | |
| 32545 | This file was extended by Cbc $as_me 2.10.13, which was |
| 32546 | generated by GNU Autoconf 2.59. Invocation command line was |
| 32547 | |
| 32548 | CONFIG_FILES = $CONFIG_FILES |
| 32549 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 32550 | CONFIG_LINKS = $CONFIG_LINKS |
| 32551 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 32552 | $ $0 $@ |
| 32553 | |
| 32554 | _CSEOF |
| 32555 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 32556 | echo >&5 |
| 32557 | _ACEOF |
| 32558 | |
| 32559 | # Files that config.status was made for. |
| 32560 | if testscip-shell system . . test. -n "$ac_config_files"; then |
| 32561 | echoscip-shell system . . echo. "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 32562 | fi |
| 32563 | |
| 32564 | if testscip-shell system . . test. -n "$ac_config_headers"; then |
| 32565 | echoscip-shell system . . echo. "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 32566 | fi |
| 32567 | |
| 32568 | if testscip-shell system . . test. -n "$ac_config_links"; then |
| 32569 | echoscip-shell system . . echo. "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 32570 | fi |
| 32571 | |
| 32572 | if testscip-shell system . . test. -n "$ac_config_commands"; then |
| 32573 | echoscip-shell system . . echo. "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 32574 | fi |
| 32575 | |
| 32576 | catscip-shell system . . cat. >>$CONFIG_STATUS <<\_ACEOF |
| 32577 | |
| 32578 | ac_cs_usage="\ |
| 32579 | \`$as_me' instantiates files from templates according to the |
| 32580 | current configuration. |
| 32581 | |
| 32582 | Usage: $0 [OPTIONS] [FILE]... |
| 32583 | |
| 32584 | -h, --help print this help, then exit |
| 32585 | -V, --version print version number, then exit |
| 32586 | -q, --quiet do not print progress messages |
| 32587 | -d, --debug don't remove temporary files |
| 32588 | --recheck update $as_me by reconfiguring in the same conditions |
| 32589 | --file=FILE[:TEMPLATE] |
| 32590 | instantiate the configuration file FILE |
| 32591 | --header=FILE[:TEMPLATE] |
| 32592 | instantiate the configuration header FILE |
| 32593 | |
| 32594 | Configuration files: |
| 32595 | $config_files |
| 32596 | |
| 32597 | Configuration headers: |
| 32598 | $config_headers |
| 32599 | |
| 32600 | Configuration commands: |
| 32601 | $config_commands |
| 32602 | |
| 32603 | Report bugs to <[email protected]>." |
| 32604 | _ACEOF |
| 32605 | |
| 32606 | catscip-shell system . . cat. >>$CONFIG_STATUS <<_ACEOF |
| 32607 | ac_cs_version="\\ |
| 32608 | Cbc config.status 2.10.13 |
| 32609 | configured by $0, generated by GNU Autoconf 2.59, |
| 32610 | with options \\"`echo "scip-shell system . . echo.$ac_configure_args" | sed 'scip-shell system . . sed.s/[\\""\`\$]/\\\\&/g'`\\" |
| 32611 | |
| 32612 | Copyright (C) 2003 Free Software Foundation, Inc. |
| 32613 | This config.status script is free software; the Free Software Foundation |
| 32614 | gives unlimited permission to copy, distribute and modify it." |
| 32615 | srcdir=$srcdir |
| 32616 | INSTALL="$INSTALL" |
| 32617 | _ACEOF |
| 32618 | |
| 32619 | catscip-shell system . . cat. >>$CONFIG_STATUS <<\_ACEOF |
| 32620 | # If no file are specified by the user, then we need to provide default |
| 32621 | # value. By we need to know if files were specified by the user. |
| 32622 | ac_need_defaults=: |
| 32623 | while test $# != 0 |
| 32624 | do |
| 32625 | case $1 in |
| 32626 | --*=*) |
| 32627 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 32628 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
| 32629 | ac_shift=: |
| 32630 | ;; |
| 32631 | -*) |
| 32632 | ac_option=$1 |
| 32633 | ac_optarg=$2 |
| 32634 | ac_shift=shift |
| 32635 | ;; |
| 32636 | *) # This is not an option, so the user has probably given explicit |
| 32637 | # arguments. |
| 32638 | ac_option=$1 |
| 32639 | ac_need_defaults=false;; |
| 32640 | esac |
| 32641 | |
| 32642 | case $ac_option in |
| 32643 | # Handling of the options. |
| 32644 | _ACEOF |
| 32645 | catscip-shell system . . cat. >>$CONFIG_STATUS <<\_ACEOF |
| 32646 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 32647 | ac_cs_recheck=: ;; |
| 32648 | --version | --vers* | -V ) |
| 32649 | echo "$ac_cs_version"; exit 0 ;; |
| 32650 | --he | --h) |
| 32651 | # Conflict between --help and --header |
| 32652 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 32653 | Try \`$0 --help' for more information." >&5 |
| 32654 | echo "$as_me: error: ambiguous option: $1 |
| 32655 | Try \`$0 --help' for more information." >&2;} |
| 32656 | { (exit 1); exit 1; }; };; |
| 32657 | --help | --hel | -h ) |
| 32658 | echo "$ac_cs_usage"; exit 0 ;; |
| 32659 | --debug | --d* | -d ) |
| 32660 | debug=: ;; |
| 32661 | --file | --fil | --fi | --f ) |
| 32662 | $ac_shift |
| 32663 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
| 32664 | ac_need_defaults=false;; |
| 32665 | --header | --heade | --head | --hea ) |
| 32666 | $ac_shift |
| 32667 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
| 32668 | ac_need_defaults=false;; |
| 32669 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 32670 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 32671 | ac_cs_silent=: ;; |
| 32672 | |
| 32673 | # This is an error. |
| 32674 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 32675 | Try \`$0 --help' for more information." >&5 |
| 32676 | echo "$as_me: error: unrecognized option: $1 |
| 32677 | Try \`$0 --help' for more information." >&2;} |
| 32678 | { (exit 1); exit 1; }; } ;; |
| 32679 | |
| 32680 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 32681 | |
| 32682 | esac |
| 32683 | shift |
| 32684 | done |
| 32685 | |
| 32686 | ac_configure_extra_args= |
| 32687 | |
| 32688 | if $ac_cs_silent; then |
| 32689 | exec 6>/dev/null |
| 32690 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 32691 | fi |
| 32692 | |
| 32693 | _ACEOF |
| 32694 | catscip-shell system . . cat. >>$CONFIG_STATUS <<_ACEOF |
| 32695 | if \$ac_cs_recheck; then |
| 32696 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 32697 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 32698 | fi |
| 32699 | |
| 32700 | _ACEOF |
| 32701 | |
| 32702 | catscip-shell system . . cat. >>$CONFIG_STATUS <<_ACEOF |
| 32703 | # |
| 32704 | # INIT-COMMANDS section. |
| 32705 | # |
| 32706 | |
| 32707 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
| 32708 | |
| 32709 | _ACEOF |
| 32710 | |
| 32711 | |
| 32712 | |
| 32713 | catscip-shell system . . cat. >>$CONFIG_STATUS <<\_ACEOF |
| 32714 | for ac_config_target in $ac_config_targets |
| 32715 | do |
| 32716 | case "$ac_config_target" in |
| 32717 | # Handling of arguments. |
| 32718 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 32719 | "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; |
| 32720 | "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
| 32721 | "src/OsiCbc/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/OsiCbc/Makefile" ;; |
| 32722 | "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; |
| 32723 | "cbc.pc" ) CONFIG_FILES="$CONFIG_FILES cbc.pc" ;; |
| 32724 | "cbc-uninstalled.pc" ) CONFIG_FILES="$CONFIG_FILES cbc-uninstalled.pc" ;; |
| 32725 | "osi-cbc.pc" ) CONFIG_FILES="$CONFIG_FILES osi-cbc.pc" ;; |
| 32726 | "osi-cbc-uninstalled.pc" ) CONFIG_FILES="$CONFIG_FILES osi-cbc-uninstalled.pc" ;; |
| 32727 | "doxydoc/doxygen.conf" ) CONFIG_FILES="$CONFIG_FILES doxydoc/doxygen.conf" ;; |
| 32728 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
| 32729 | "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; |
| 32730 | "src/config_cbc.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config_cbc.h" ;; |
| 32731 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 32732 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 32733 | { (exit 1); exit 1; }; };; |
| 32734 | esac |
| 32735 | done |
| 32736 | |
| 32737 | # If the user did not use the arguments to specify the items to instantiate, |
| 32738 | # then the envvar interface is used. Set only those that are not. |
| 32739 | # We use the long form for the default assignment because of an extremely |
| 32740 | # bizarre bug on SunOS 4.1.3. |
| 32741 | if $ac_need_defaults; then |
| 32742 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 32743 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 32744 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 32745 | fi |
| 32746 | |
| 32747 | # Have a temporary directory for convenience. Make it in the build tree |
| 32748 | # simply because there is no reason to put it here, and in addition, |
| 32749 | # creating and moving files from /tmp can sometimes cause problems. |
| 32750 | # Create a temporary directory, and hook for its removal unless debugging. |
| 32751 | $debug || |
| 32752 | { |
| 32753 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 32754 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 32755 | } |
| 32756 | |
| 32757 | # Create a (secure) tmp directory for tmp files. |
| 32758 | |
| 32759 | { |
| 32760 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
| 32761 | test -n "$tmp" && test -d "$tmp" |
| 32762 | } || |
| 32763 | { |
| 32764 | tmp=./confstat$$-$RANDOM |
| 32765 | (umask 077 && mkdir $tmp) |
| 32766 | } || |
| 32767 | { |
| 32768 | echo "$me: cannot create a temporary directory in ." >&2 |
| 32769 | { (exit 1); exit 1; } |
| 32770 | } |
| 32771 | |
| 32772 | _ACEOF |
| 32773 | |
| 32774 | catscip-shell system . . cat. >>$CONFIG_STATUS <<_ACEOF |
| 32775 | |
| 32776 | # |
| 32777 | # CONFIG_FILES section. |
| 32778 | # |
| 32779 | |
| 32780 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 32781 | # This happens for instance when ./config.status config.h |
| 32782 | if test -n "\$CONFIG_FILES"; then |
| 32783 | # Protect against being on the right side of a sed subst in config.status. |
| 32784 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 32785 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 32786 | s,@SHELL@,$SHELL,;t t |
| 32787 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 32788 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 32789 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 32790 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 32791 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 32792 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 32793 | s,@exec_prefix@,$exec_prefix,;t t |
| 32794 | s,@prefix@,$prefix,;t t |
| 32795 | s,@program_transform_name@,$program_transform_name,;t t |
| 32796 | s,@bindir@,$bindir,;t t |
| 32797 | s,@sbindir@,$sbindir,;t t |
| 32798 | s,@libexecdir@,$libexecdir,;t t |
| 32799 | s,@datadir@,$datadir,;t t |
| 32800 | s,@sysconfdir@,$sysconfdir,;t t |
| 32801 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 32802 | s,@localstatedir@,$localstatedir,;t t |
| 32803 | s,@libdir@,$libdir,;t t |
| 32804 | s,@includedir@,$includedir,;t t |
| 32805 | s,@oldincludedir@,$oldincludedir,;t t |
| 32806 | s,@infodir@,$infodir,;t t |
| 32807 | s,@mandir@,$mandir,;t t |
| 32808 | s,@build_alias@,$build_alias,;t t |
| 32809 | s,@host_alias@,$host_alias,;t t |
| 32810 | s,@target_alias@,$target_alias,;t t |
| 32811 | s,@DEFS@,$DEFS,;t t |
| 32812 | s,@ECHO_C@,$ECHO_C,;t t |
| 32813 | s,@ECHO_N@,$ECHO_N,;t t |
| 32814 | s,@ECHO_T@,$ECHO_T,;t t |
| 32815 | s,@LIBS@,$LIBS,;t t |
| 32816 | s,@build@,$build,;t t |
| 32817 | s,@build_cpu@,$build_cpu,;t t |
| 32818 | s,@build_vendor@,$build_vendor,;t t |
| 32819 | s,@build_os@,$build_os,;t t |
| 32820 | s,@ALWAYS_FALSE_TRUE@,$ALWAYS_FALSE_TRUE,;t t |
| 32821 | s,@ALWAYS_FALSE_FALSE@,$ALWAYS_FALSE_FALSE,;t t |
| 32822 | s,@have_svnversion@,$have_svnversion,;t t |
| 32823 | s,@CBC_SVN_REV@,$CBC_SVN_REV,;t t |
| 32824 | s,@CDEFS@,$CDEFS,;t t |
| 32825 | s,@ADD_CFLAGS@,$ADD_CFLAGS,;t t |
| 32826 | s,@DBG_CFLAGS@,$DBG_CFLAGS,;t t |
| 32827 | s,@OPT_CFLAGS@,$OPT_CFLAGS,;t t |
| 32828 | s,@sol_cc_compiler@,$sol_cc_compiler,;t t |
| 32829 | s,@CC@,$CC,;t t |
| 32830 | s,@CFLAGS@,$CFLAGS,;t t |
| 32831 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 32832 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 32833 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 32834 | s,@EXEEXT@,$EXEEXT,;t t |
| 32835 | s,@OBJEXT@,$OBJEXT,;t t |
| 32836 | s,@COIN_CC_IS_CL_TRUE@,$COIN_CC_IS_CL_TRUE,;t t |
| 32837 | s,@COIN_CC_IS_CL_FALSE@,$COIN_CC_IS_CL_FALSE,;t t |
| 32838 | s,@MPICC@,$MPICC,;t t |
| 32839 | s,@CXXDEFS@,$CXXDEFS,;t t |
| 32840 | s,@ADD_CXXFLAGS@,$ADD_CXXFLAGS,;t t |
| 32841 | s,@DBG_CXXFLAGS@,$DBG_CXXFLAGS,;t t |
| 32842 | s,@OPT_CXXFLAGS@,$OPT_CXXFLAGS,;t t |
| 32843 | s,@CXX@,$CXX,;t t |
| 32844 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
| 32845 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
| 32846 | s,@COIN_CXX_IS_CL_TRUE@,$COIN_CXX_IS_CL_TRUE,;t t |
| 32847 | s,@COIN_CXX_IS_CL_FALSE@,$COIN_CXX_IS_CL_FALSE,;t t |
| 32848 | s,@MPICXX@,$MPICXX,;t t |
| 32849 | s,@EGREP@,$EGREP,;t t |
| 32850 | s,@LN_S@,$LN_S,;t t |
| 32851 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 32852 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 32853 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 32854 | s,@CYGPATH_W@,$CYGPATH_W,;t t |
| 32855 | s,@PACKAGE@,$PACKAGE,;t t |
| 32856 | s,@VERSION@,$VERSION,;t t |
| 32857 | s,@ACLOCAL@,$ACLOCAL,;t t |
| 32858 | s,@AUTOCONF@,$AUTOCONF,;t t |
| 32859 | s,@AUTOMAKE@,$AUTOMAKE,;t t |
| 32860 | s,@AUTOHEADER@,$AUTOHEADER,;t t |
| 32861 | s,@MAKEINFO@,$MAKEINFO,;t t |
| 32862 | s,@install_sh@,$install_sh,;t t |
| 32863 | s,@STRIP@,$STRIP,;t t |
| 32864 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
| 32865 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
| 32866 | s,@mkdir_p@,$mkdir_p,;t t |
| 32867 | s,@AWK@,$AWK,;t t |
| 32868 | s,@SET_MAKE@,$SET_MAKE,;t t |
| 32869 | s,@am__leading_dot@,$am__leading_dot,;t t |
| 32870 | s,@AMTAR@,$AMTAR,;t t |
| 32871 | s,@am__tar@,$am__tar,;t t |
| 32872 | s,@am__untar@,$am__untar,;t t |
| 32873 | s,@DEPDIR@,$DEPDIR,;t t |
| 32874 | s,@am__include@,$am__include,;t t |
| 32875 | s,@am__quote@,$am__quote,;t t |
| 32876 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
| 32877 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
| 32878 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
| 32879 | s,@CCDEPMODE@,$CCDEPMODE,;t t |
| 32880 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t |
| 32881 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t |
| 32882 | s,@CXXDEPMODE@,$CXXDEPMODE,;t t |
| 32883 | s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t |
| 32884 | s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t |
| 32885 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t |
| 32886 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t |
| 32887 | s,@MAINT@,$MAINT,;t t |
| 32888 | s,@LIBTOOLM4@,$LIBTOOLM4,;t t |
| 32889 | s,@have_autoconf@,$have_autoconf,;t t |
| 32890 | s,@have_automake@,$have_automake,;t t |
| 32891 | s,@have_svn@,$have_svn,;t t |
| 32892 | s,@BUILDTOOLSDIR@,$BUILDTOOLSDIR,;t t |
| 32893 | s,@AUX_DIR@,$AUX_DIR,;t t |
| 32894 | s,@abs_source_dir@,$abs_source_dir,;t t |
| 32895 | s,@abs_lib_dir@,$abs_lib_dir,;t t |
| 32896 | s,@abs_include_dir@,$abs_include_dir,;t t |
| 32897 | s,@abs_bin_dir@,$abs_bin_dir,;t t |
| 32898 | s,@HAVE_EXTERNALS_TRUE@,$HAVE_EXTERNALS_TRUE,;t t |
| 32899 | s,@HAVE_EXTERNALS_FALSE@,$HAVE_EXTERNALS_FALSE,;t t |
| 32900 | s,@host@,$host,;t t |
| 32901 | s,@host_cpu@,$host_cpu,;t t |
| 32902 | s,@host_vendor@,$host_vendor,;t t |
| 32903 | s,@host_os@,$host_os,;t t |
| 32904 | s,@ECHO@,$ECHO,;t t |
| 32905 | s,@AR@,$AR,;t t |
| 32906 | s,@ac_ct_AR@,$ac_ct_AR,;t t |
| 32907 | s,@RANLIB@,$RANLIB,;t t |
| 32908 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 32909 | s,@CPP@,$CPP,;t t |
| 32910 | s,@CXXCPP@,$CXXCPP,;t t |
| 32911 | s,@F77@,$F77,;t t |
| 32912 | s,@FFLAGS@,$FFLAGS,;t t |
| 32913 | s,@ac_ct_F77@,$ac_ct_F77,;t t |
| 32914 | s,@LIBTOOL@,$LIBTOOL,;t t |
| 32915 | s,@ac_c_preproc_warn_flag@,$ac_c_preproc_warn_flag,;t t |
| 32916 | s,@ac_cxx_preproc_warn_flag@,$ac_cxx_preproc_warn_flag,;t t |
| 32917 | s,@dos2unix@,$dos2unix,;t t |
| 32918 | s,@RPATH_FLAGS@,$RPATH_FLAGS,;t t |
| 32919 | s,@LT_LDFLAGS@,$LT_LDFLAGS,;t t |
| 32920 | s,@DEPENDENCY_LINKING_TRUE@,$DEPENDENCY_LINKING_TRUE,;t t |
| 32921 | s,@DEPENDENCY_LINKING_FALSE@,$DEPENDENCY_LINKING_FALSE,;t t |
| 32922 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t |
| 32923 | s,@ac_ct_PKG_CONFIG@,$ac_ct_PKG_CONFIG,;t t |
| 32924 | s,@COIN_HAS_PKGCONFIG_TRUE@,$COIN_HAS_PKGCONFIG_TRUE,;t t |
| 32925 | s,@COIN_HAS_PKGCONFIG_FALSE@,$COIN_HAS_PKGCONFIG_FALSE,;t t |
| 32926 | s,@COIN_PKG_CONFIG_PATH@,$COIN_PKG_CONFIG_PATH,;t t |
| 32927 | s,@COIN_PKG_CONFIG_PATH_UNINSTALLED@,$COIN_PKG_CONFIG_PATH_UNINSTALLED,;t t |
| 32928 | s,@COINDEPEND_LIBS@,$COINDEPEND_LIBS,;t t |
| 32929 | s,@COINDEPEND_CFLAGS@,$COINDEPEND_CFLAGS,;t t |
| 32930 | s,@COINDEPEND_DATA@,$COINDEPEND_DATA,;t t |
| 32931 | s,@COINDEPEND_DEPENDENCIES@,$COINDEPEND_DEPENDENCIES,;t t |
| 32932 | s,@COINDEPEND_LIBS_INSTALLED@,$COINDEPEND_LIBS_INSTALLED,;t t |
| 32933 | s,@COINDEPEND_CFLAGS_INSTALLED@,$COINDEPEND_CFLAGS_INSTALLED,;t t |
| 32934 | s,@COINDEPEND_DATA_INSTALLED@,$COINDEPEND_DATA_INSTALLED,;t t |
| 32935 | s,@CBCLIB_CFLAGS@,$CBCLIB_CFLAGS,;t t |
| 32936 | s,@CBCLIB_LIBS@,$CBCLIB_LIBS,;t t |
| 32937 | s,@CBCLIB_PCLIBS@,$CBCLIB_PCLIBS,;t t |
| 32938 | s,@CBCLIB_PCREQUIRES@,$CBCLIB_PCREQUIRES,;t t |
| 32939 | s,@CBCLIB_DEPENDENCIES@,$CBCLIB_DEPENDENCIES,;t t |
| 32940 | s,@CBCLIB_CFLAGS_INSTALLED@,$CBCLIB_CFLAGS_INSTALLED,;t t |
| 32941 | s,@CBCLIB_LIBS_INSTALLED@,$CBCLIB_LIBS_INSTALLED,;t t |
| 32942 | s,@CBCGENERIC_CFLAGS@,$CBCGENERIC_CFLAGS,;t t |
| 32943 | s,@CBCGENERIC_LIBS@,$CBCGENERIC_LIBS,;t t |
| 32944 | s,@CBCGENERIC_PCLIBS@,$CBCGENERIC_PCLIBS,;t t |
| 32945 | s,@CBCGENERIC_PCREQUIRES@,$CBCGENERIC_PCREQUIRES,;t t |
| 32946 | s,@CBCGENERIC_DEPENDENCIES@,$CBCGENERIC_DEPENDENCIES,;t t |
| 32947 | s,@CBCGENERIC_CFLAGS_INSTALLED@,$CBCGENERIC_CFLAGS_INSTALLED,;t t |
| 32948 | s,@CBCGENERIC_LIBS_INSTALLED@,$CBCGENERIC_LIBS_INSTALLED,;t t |
| 32949 | s,@COIN_HAS_COINDEPEND_TRUE@,$COIN_HAS_COINDEPEND_TRUE,;t t |
| 32950 | s,@COIN_HAS_COINDEPEND_FALSE@,$COIN_HAS_COINDEPEND_FALSE,;t t |
| 32951 | s,@CLP_LIBS@,$CLP_LIBS,;t t |
| 32952 | s,@CLP_CFLAGS@,$CLP_CFLAGS,;t t |
| 32953 | s,@CLP_DATA@,$CLP_DATA,;t t |
| 32954 | s,@CLP_DEPENDENCIES@,$CLP_DEPENDENCIES,;t t |
| 32955 | s,@CLP_LIBS_INSTALLED@,$CLP_LIBS_INSTALLED,;t t |
| 32956 | s,@CLP_CFLAGS_INSTALLED@,$CLP_CFLAGS_INSTALLED,;t t |
| 32957 | s,@CLP_DATA_INSTALLED@,$CLP_DATA_INSTALLED,;t t |
| 32958 | s,@COIN_HAS_CLP_TRUE@,$COIN_HAS_CLP_TRUE,;t t |
| 32959 | s,@COIN_HAS_CLP_FALSE@,$COIN_HAS_CLP_FALSE,;t t |
| 32960 | s,@OSITESTS_LIBS@,$OSITESTS_LIBS,;t t |
| 32961 | s,@OSITESTS_CFLAGS@,$OSITESTS_CFLAGS,;t t |
| 32962 | s,@OSITESTS_DATA@,$OSITESTS_DATA,;t t |
| 32963 | s,@OSITESTS_DEPENDENCIES@,$OSITESTS_DEPENDENCIES,;t t |
| 32964 | s,@OSITESTS_LIBS_INSTALLED@,$OSITESTS_LIBS_INSTALLED,;t t |
| 32965 | s,@OSITESTS_CFLAGS_INSTALLED@,$OSITESTS_CFLAGS_INSTALLED,;t t |
| 32966 | s,@OSITESTS_DATA_INSTALLED@,$OSITESTS_DATA_INSTALLED,;t t |
| 32967 | s,@COIN_HAS_OSITESTS_TRUE@,$COIN_HAS_OSITESTS_TRUE,;t t |
| 32968 | s,@COIN_HAS_OSITESTS_FALSE@,$COIN_HAS_OSITESTS_FALSE,;t t |
| 32969 | s,@SAMPLE_LIBS@,$SAMPLE_LIBS,;t t |
| 32970 | s,@SAMPLE_CFLAGS@,$SAMPLE_CFLAGS,;t t |
| 32971 | s,@SAMPLE_DATA@,$SAMPLE_DATA,;t t |
| 32972 | s,@SAMPLE_DEPENDENCIES@,$SAMPLE_DEPENDENCIES,;t t |
| 32973 | s,@SAMPLE_LIBS_INSTALLED@,$SAMPLE_LIBS_INSTALLED,;t t |
| 32974 | s,@SAMPLE_CFLAGS_INSTALLED@,$SAMPLE_CFLAGS_INSTALLED,;t t |
| 32975 | s,@SAMPLE_DATA_INSTALLED@,$SAMPLE_DATA_INSTALLED,;t t |
| 32976 | s,@COIN_HAS_SAMPLE_TRUE@,$COIN_HAS_SAMPLE_TRUE,;t t |
| 32977 | s,@COIN_HAS_SAMPLE_FALSE@,$COIN_HAS_SAMPLE_FALSE,;t t |
| 32978 | s,@NETLIB_LIBS@,$NETLIB_LIBS,;t t |
| 32979 | s,@NETLIB_CFLAGS@,$NETLIB_CFLAGS,;t t |
| 32980 | s,@NETLIB_DATA@,$NETLIB_DATA,;t t |
| 32981 | s,@NETLIB_DEPENDENCIES@,$NETLIB_DEPENDENCIES,;t t |
| 32982 | s,@NETLIB_LIBS_INSTALLED@,$NETLIB_LIBS_INSTALLED,;t t |
| 32983 | s,@NETLIB_CFLAGS_INSTALLED@,$NETLIB_CFLAGS_INSTALLED,;t t |
| 32984 | s,@NETLIB_DATA_INSTALLED@,$NETLIB_DATA_INSTALLED,;t t |
| 32985 | s,@COIN_HAS_NETLIB_TRUE@,$COIN_HAS_NETLIB_TRUE,;t t |
| 32986 | s,@COIN_HAS_NETLIB_FALSE@,$COIN_HAS_NETLIB_FALSE,;t t |
| 32987 | s,@MIPLIB3_LIBS@,$MIPLIB3_LIBS,;t t |
| 32988 | s,@MIPLIB3_CFLAGS@,$MIPLIB3_CFLAGS,;t t |
| 32989 | s,@MIPLIB3_DATA@,$MIPLIB3_DATA,;t t |
| 32990 | s,@MIPLIB3_DEPENDENCIES@,$MIPLIB3_DEPENDENCIES,;t t |
| 32991 | s,@MIPLIB3_LIBS_INSTALLED@,$MIPLIB3_LIBS_INSTALLED,;t t |
| 32992 | s,@MIPLIB3_CFLAGS_INSTALLED@,$MIPLIB3_CFLAGS_INSTALLED,;t t |
| 32993 | s,@MIPLIB3_DATA_INSTALLED@,$MIPLIB3_DATA_INSTALLED,;t t |
| 32994 | s,@COIN_HAS_MIPLIB3_TRUE@,$COIN_HAS_MIPLIB3_TRUE,;t t |
| 32995 | s,@COIN_HAS_MIPLIB3_FALSE@,$COIN_HAS_MIPLIB3_FALSE,;t t |
| 32996 | s,@DYLP_LIBS@,$DYLP_LIBS,;t t |
| 32997 | s,@DYLP_CFLAGS@,$DYLP_CFLAGS,;t t |
| 32998 | s,@DYLP_DATA@,$DYLP_DATA,;t t |
| 32999 | s,@DYLP_DEPENDENCIES@,$DYLP_DEPENDENCIES,;t t |
| 33000 | s,@DYLP_LIBS_INSTALLED@,$DYLP_LIBS_INSTALLED,;t t |
| 33001 | s,@DYLP_CFLAGS_INSTALLED@,$DYLP_CFLAGS_INSTALLED,;t t |
| 33002 | s,@DYLP_DATA_INSTALLED@,$DYLP_DATA_INSTALLED,;t t |
| 33003 | s,@COIN_HAS_DYLP_TRUE@,$COIN_HAS_DYLP_TRUE,;t t |
| 33004 | s,@COIN_HAS_DYLP_FALSE@,$COIN_HAS_DYLP_FALSE,;t t |
| 33005 | s,@VOL_LIBS@,$VOL_LIBS,;t t |
| 33006 | s,@VOL_CFLAGS@,$VOL_CFLAGS,;t t |
| 33007 | s,@VOL_DATA@,$VOL_DATA,;t t |
| 33008 | s,@VOL_DEPENDENCIES@,$VOL_DEPENDENCIES,;t t |
| 33009 | s,@VOL_LIBS_INSTALLED@,$VOL_LIBS_INSTALLED,;t t |
| 33010 | s,@VOL_CFLAGS_INSTALLED@,$VOL_CFLAGS_INSTALLED,;t t |
| 33011 | s,@VOL_DATA_INSTALLED@,$VOL_DATA_INSTALLED,;t t |
| 33012 | s,@COIN_HAS_VOL_TRUE@,$COIN_HAS_VOL_TRUE,;t t |
| 33013 | s,@COIN_HAS_VOL_FALSE@,$COIN_HAS_VOL_FALSE,;t t |
| 33014 | s,@CPX_LIBS@,$CPX_LIBS,;t t |
| 33015 | s,@CPX_CFLAGS@,$CPX_CFLAGS,;t t |
| 33016 | s,@CPX_DATA@,$CPX_DATA,;t t |
| 33017 | s,@CPX_DEPENDENCIES@,$CPX_DEPENDENCIES,;t t |
| 33018 | s,@CPX_LIBS_INSTALLED@,$CPX_LIBS_INSTALLED,;t t |
| 33019 | s,@CPX_CFLAGS_INSTALLED@,$CPX_CFLAGS_INSTALLED,;t t |
| 33020 | s,@CPX_DATA_INSTALLED@,$CPX_DATA_INSTALLED,;t t |
| 33021 | s,@COIN_HAS_CPX_TRUE@,$COIN_HAS_CPX_TRUE,;t t |
| 33022 | s,@COIN_HAS_CPX_FALSE@,$COIN_HAS_CPX_FALSE,;t t |
| 33023 | s,@GLPK_LIBS@,$GLPK_LIBS,;t t |
| 33024 | s,@GLPK_CFLAGS@,$GLPK_CFLAGS,;t t |
| 33025 | s,@GLPK_DATA@,$GLPK_DATA,;t t |
| 33026 | s,@GLPK_DEPENDENCIES@,$GLPK_DEPENDENCIES,;t t |
| 33027 | s,@GLPK_LIBS_INSTALLED@,$GLPK_LIBS_INSTALLED,;t t |
| 33028 | s,@GLPK_CFLAGS_INSTALLED@,$GLPK_CFLAGS_INSTALLED,;t t |
| 33029 | s,@GLPK_DATA_INSTALLED@,$GLPK_DATA_INSTALLED,;t t |
| 33030 | s,@COIN_HAS_GLPK_TRUE@,$COIN_HAS_GLPK_TRUE,;t t |
| 33031 | s,@COIN_HAS_GLPK_FALSE@,$COIN_HAS_GLPK_FALSE,;t t |
| 33032 | s,@GRB_LIBS@,$GRB_LIBS,;t t |
| 33033 | s,@GRB_CFLAGS@,$GRB_CFLAGS,;t t |
| 33034 | s,@GRB_DATA@,$GRB_DATA,;t t |
| 33035 | s,@GRB_DEPENDENCIES@,$GRB_DEPENDENCIES,;t t |
| 33036 | s,@GRB_LIBS_INSTALLED@,$GRB_LIBS_INSTALLED,;t t |
| 33037 | s,@GRB_CFLAGS_INSTALLED@,$GRB_CFLAGS_INSTALLED,;t t |
| 33038 | s,@GRB_DATA_INSTALLED@,$GRB_DATA_INSTALLED,;t t |
| 33039 | s,@COIN_HAS_GRB_TRUE@,$COIN_HAS_GRB_TRUE,;t t |
| 33040 | s,@COIN_HAS_GRB_FALSE@,$COIN_HAS_GRB_FALSE,;t t |
| 33041 | s,@HIGHS_LIBS@,$HIGHS_LIBS,;t t |
| 33042 | s,@HIGHS_CFLAGS@,$HIGHS_CFLAGS,;t t |
| 33043 | s,@HIGHS_DATA@,$HIGHS_DATA,;t t |
| 33044 | s,@HIGHS_DEPENDENCIES@,$HIGHS_DEPENDENCIES,;t t |
| 33045 | s,@HIGHS_LIBS_INSTALLED@,$HIGHS_LIBS_INSTALLED,;t t |
| 33046 | s,@HIGHS_CFLAGS_INSTALLED@,$HIGHS_CFLAGS_INSTALLED,;t t |
| 33047 | s,@HIGHS_DATA_INSTALLED@,$HIGHS_DATA_INSTALLED,;t t |
| 33048 | s,@COIN_HAS_HIGHS_TRUE@,$COIN_HAS_HIGHS_TRUE,;t t |
| 33049 | s,@COIN_HAS_HIGHS_FALSE@,$COIN_HAS_HIGHS_FALSE,;t t |
| 33050 | s,@MSK_LIBS@,$MSK_LIBS,;t t |
| 33051 | s,@MSK_CFLAGS@,$MSK_CFLAGS,;t t |
| 33052 | s,@MSK_DATA@,$MSK_DATA,;t t |
| 33053 | s,@MSK_DEPENDENCIES@,$MSK_DEPENDENCIES,;t t |
| 33054 | s,@MSK_LIBS_INSTALLED@,$MSK_LIBS_INSTALLED,;t t |
| 33055 | s,@MSK_CFLAGS_INSTALLED@,$MSK_CFLAGS_INSTALLED,;t t |
| 33056 | s,@MSK_DATA_INSTALLED@,$MSK_DATA_INSTALLED,;t t |
| 33057 | s,@COIN_HAS_MSK_TRUE@,$COIN_HAS_MSK_TRUE,;t t |
| 33058 | s,@COIN_HAS_MSK_FALSE@,$COIN_HAS_MSK_FALSE,;t t |
| 33059 | s,@SPX_LIBS@,$SPX_LIBS,;t t |
| 33060 | s,@SPX_CFLAGS@,$SPX_CFLAGS,;t t |
| 33061 | s,@SPX_DATA@,$SPX_DATA,;t t |
| 33062 | s,@SPX_DEPENDENCIES@,$SPX_DEPENDENCIES,;t t |
| 33063 | s,@SPX_LIBS_INSTALLED@,$SPX_LIBS_INSTALLED,;t t |
| 33064 | s,@SPX_CFLAGS_INSTALLED@,$SPX_CFLAGS_INSTALLED,;t t |
| 33065 | s,@SPX_DATA_INSTALLED@,$SPX_DATA_INSTALLED,;t t |
| 33066 | s,@COIN_HAS_SPX_TRUE@,$COIN_HAS_SPX_TRUE,;t t |
| 33067 | s,@COIN_HAS_SPX_FALSE@,$COIN_HAS_SPX_FALSE,;t t |
| 33068 | s,@XPR_LIBS@,$XPR_LIBS,;t t |
| 33069 | s,@XPR_CFLAGS@,$XPR_CFLAGS,;t t |
| 33070 | s,@XPR_DATA@,$XPR_DATA,;t t |
| 33071 | s,@XPR_DEPENDENCIES@,$XPR_DEPENDENCIES,;t t |
| 33072 | s,@XPR_LIBS_INSTALLED@,$XPR_LIBS_INSTALLED,;t t |
| 33073 | s,@XPR_CFLAGS_INSTALLED@,$XPR_CFLAGS_INSTALLED,;t t |
| 33074 | s,@XPR_DATA_INSTALLED@,$XPR_DATA_INSTALLED,;t t |
| 33075 | s,@COIN_HAS_XPR_TRUE@,$COIN_HAS_XPR_TRUE,;t t |
| 33076 | s,@COIN_HAS_XPR_FALSE@,$COIN_HAS_XPR_FALSE,;t t |
| 33077 | s,@ASL_LIBS@,$ASL_LIBS,;t t |
| 33078 | s,@ASL_CFLAGS@,$ASL_CFLAGS,;t t |
| 33079 | s,@ASL_DATA@,$ASL_DATA,;t t |
| 33080 | s,@ASL_DEPENDENCIES@,$ASL_DEPENDENCIES,;t t |
| 33081 | s,@ASL_LIBS_INSTALLED@,$ASL_LIBS_INSTALLED,;t t |
| 33082 | s,@ASL_CFLAGS_INSTALLED@,$ASL_CFLAGS_INSTALLED,;t t |
| 33083 | s,@ASL_DATA_INSTALLED@,$ASL_DATA_INSTALLED,;t t |
| 33084 | s,@COIN_HAS_ASL_TRUE@,$COIN_HAS_ASL_TRUE,;t t |
| 33085 | s,@COIN_HAS_ASL_FALSE@,$COIN_HAS_ASL_FALSE,;t t |
| 33086 | s,@MUMPS_LIBS@,$MUMPS_LIBS,;t t |
| 33087 | s,@MUMPS_CFLAGS@,$MUMPS_CFLAGS,;t t |
| 33088 | s,@MUMPS_DATA@,$MUMPS_DATA,;t t |
| 33089 | s,@MUMPS_DEPENDENCIES@,$MUMPS_DEPENDENCIES,;t t |
| 33090 | s,@MUMPS_LIBS_INSTALLED@,$MUMPS_LIBS_INSTALLED,;t t |
| 33091 | s,@MUMPS_CFLAGS_INSTALLED@,$MUMPS_CFLAGS_INSTALLED,;t t |
| 33092 | s,@MUMPS_DATA_INSTALLED@,$MUMPS_DATA_INSTALLED,;t t |
| 33093 | s,@COIN_HAS_MUMPS_TRUE@,$COIN_HAS_MUMPS_TRUE,;t t |
| 33094 | s,@COIN_HAS_MUMPS_FALSE@,$COIN_HAS_MUMPS_FALSE,;t t |
| 33095 | s,@NTYINCDIR@,$NTYINCDIR,;t t |
| 33096 | s,@NTYLIB@,$NTYLIB,;t t |
| 33097 | s,@COIN_HAS_NTY_TRUE@,$COIN_HAS_NTY_TRUE,;t t |
| 33098 | s,@COIN_HAS_NTY_FALSE@,$COIN_HAS_NTY_FALSE,;t t |
| 33099 | s,@CBC_BUILD_CBC_GENERIC_TRUE@,$CBC_BUILD_CBC_GENERIC_TRUE,;t t |
| 33100 | s,@CBC_BUILD_CBC_GENERIC_FALSE@,$CBC_BUILD_CBC_GENERIC_FALSE,;t t |
| 33101 | s,@OSICBC_DFLT_SOLVER_CLP_TRUE@,$OSICBC_DFLT_SOLVER_CLP_TRUE,;t t |
| 33102 | s,@OSICBC_DFLT_SOLVER_CLP_FALSE@,$OSICBC_DFLT_SOLVER_CLP_FALSE,;t t |
| 33103 | s,@OSICBC_DFLT_SOLVER_CPX_TRUE@,$OSICBC_DFLT_SOLVER_CPX_TRUE,;t t |
| 33104 | s,@OSICBC_DFLT_SOLVER_CPX_FALSE@,$OSICBC_DFLT_SOLVER_CPX_FALSE,;t t |
| 33105 | s,@OSICBC_DFLT_SOLVER_DYLP_TRUE@,$OSICBC_DFLT_SOLVER_DYLP_TRUE,;t t |
| 33106 | s,@OSICBC_DFLT_SOLVER_DYLP_FALSE@,$OSICBC_DFLT_SOLVER_DYLP_FALSE,;t t |
| 33107 | s,@OSICBC_DFLT_SOLVER_GLPK_TRUE@,$OSICBC_DFLT_SOLVER_GLPK_TRUE,;t t |
| 33108 | s,@OSICBC_DFLT_SOLVER_GLPK_FALSE@,$OSICBC_DFLT_SOLVER_GLPK_FALSE,;t t |
| 33109 | s,@OSICBC_DFLT_SOLVER_GRB_TRUE@,$OSICBC_DFLT_SOLVER_GRB_TRUE,;t t |
| 33110 | s,@OSICBC_DFLT_SOLVER_GRB_FALSE@,$OSICBC_DFLT_SOLVER_GRB_FALSE,;t t |
| 33111 | s,@OSICBC_DFLT_SOLVER_HIGHS_TRUE@,$OSICBC_DFLT_SOLVER_HIGHS_TRUE,;t t |
| 33112 | s,@OSICBC_DFLT_SOLVER_HIGHS_FALSE@,$OSICBC_DFLT_SOLVER_HIGHS_FALSE,;t t |
| 33113 | s,@OSICBC_DFLT_SOLVER_MSK_TRUE@,$OSICBC_DFLT_SOLVER_MSK_TRUE,;t t |
| 33114 | s,@OSICBC_DFLT_SOLVER_MSK_FALSE@,$OSICBC_DFLT_SOLVER_MSK_FALSE,;t t |
| 33115 | s,@OSICBC_DFLT_SOLVER_SPX_TRUE@,$OSICBC_DFLT_SOLVER_SPX_TRUE,;t t |
| 33116 | s,@OSICBC_DFLT_SOLVER_SPX_FALSE@,$OSICBC_DFLT_SOLVER_SPX_FALSE,;t t |
| 33117 | s,@OSICBC_DFLT_SOLVER_SYM_TRUE@,$OSICBC_DFLT_SOLVER_SYM_TRUE,;t t |
| 33118 | s,@OSICBC_DFLT_SOLVER_SYM_FALSE@,$OSICBC_DFLT_SOLVER_SYM_FALSE,;t t |
| 33119 | s,@OSICBC_DFLT_SOLVER_VOL_TRUE@,$OSICBC_DFLT_SOLVER_VOL_TRUE,;t t |
| 33120 | s,@OSICBC_DFLT_SOLVER_VOL_FALSE@,$OSICBC_DFLT_SOLVER_VOL_FALSE,;t t |
| 33121 | s,@OSICBC_DFLT_SOLVER_XPR_TRUE@,$OSICBC_DFLT_SOLVER_XPR_TRUE,;t t |
| 33122 | s,@OSICBC_DFLT_SOLVER_XPR_FALSE@,$OSICBC_DFLT_SOLVER_XPR_FALSE,;t t |
| 33123 | s,@coin_have_doxygen@,$coin_have_doxygen,;t t |
| 33124 | s,@coin_have_latex@,$coin_have_latex,;t t |
| 33125 | s,@coin_doxy_usedot@,$coin_doxy_usedot,;t t |
| 33126 | s,@coin_doxy_tagname@,$coin_doxy_tagname,;t t |
| 33127 | s,@coin_doxy_logname@,$coin_doxy_logname,;t t |
| 33128 | s,@COIN_HAS_DOXYGEN_TRUE@,$COIN_HAS_DOXYGEN_TRUE,;t t |
| 33129 | s,@COIN_HAS_DOXYGEN_FALSE@,$COIN_HAS_DOXYGEN_FALSE,;t t |
| 33130 | s,@COIN_HAS_LATEX_TRUE@,$COIN_HAS_LATEX_TRUE,;t t |
| 33131 | s,@COIN_HAS_LATEX_FALSE@,$COIN_HAS_LATEX_FALSE,;t t |
| 33132 | s,@coin_doxy_tagfiles@,$coin_doxy_tagfiles,;t t |
| 33133 | s,@coin_doxy_excludes@,$coin_doxy_excludes,;t t |
| 33134 | s,@LIBEXT@,$LIBEXT,;t t |
| 33135 | s,@VPATH_DISTCLEANFILES@,$VPATH_DISTCLEANFILES,;t t |
| 33136 | s,@ABSBUILDDIR@,$ABSBUILDDIR,;t t |
| 33137 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 33138 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
| 33139 | CEOF |
| 33140 | |
| 33141 | _ACEOF |
| 33142 | |
| 33143 | catscip-shell system . . cat. >>$CONFIG_STATUS <<\_ACEOF |
| 33144 | # Split the substitutions into bite-sized pieces for seds with |
| 33145 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 33146 | ac_max_sed_lines=48 |
| 33147 | ac_sed_frag=1 # Number of current file. |
| 33148 | ac_beg=1 # First line for current file. |
| 33149 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 33150 | ac_more_lines=: |
| 33151 | ac_sed_cmds= |
| 33152 | while $ac_more_lines; do |
| 33153 | if test $ac_beg -gt 1; then |
| 33154 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 33155 | else |
| 33156 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 33157 | fi |
| 33158 | if test ! -s $tmp/subs.frag; then |
| 33159 | ac_more_lines=false |
| 33160 | else |
| 33161 | # The purpose of the label and of the branching condition is to |
| 33162 | # speed up the sed processing (if there are no `@' at all, there |
| 33163 | # is no need to browse any of the substitutions). |
| 33164 | # These are the two extra sed commands mentioned above. |
| 33165 | (echo ':t |
| 33166 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 33167 | if test -z "$ac_sed_cmds"; then |
| 33168 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 33169 | else |
| 33170 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 33171 | fi |
| 33172 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 33173 | ac_beg=$ac_end |
| 33174 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 33175 | fi |
| 33176 | done |
| 33177 | if test -z "$ac_sed_cmds"; then |
| 33178 | ac_sed_cmds=cat |
| 33179 | fi |
| 33180 | fi # test -n "$CONFIG_FILES" |
| 33181 | |
| 33182 | _ACEOF |
| 33183 | catscip-shell system . . cat. >>$CONFIG_STATUS <<\_ACEOF |
| 33184 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 33185 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 33186 | case $ac_file in |
| 33187 | - | *:- | *:-:* ) # input from stdin |
| 33188 | cat >$tmp/stdin |
| 33189 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 33190 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 33191 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 33192 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 33193 | * ) ac_file_in=$ac_file.in ;; |
| 33194 | esac |
| 33195 | |
| 33196 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 33197 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 33198 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 33199 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 33200 | X"$ac_file" : 'X\(//\)$' \| \ |
| 33201 | X"$ac_file" : 'X\(/\)' \| \ |
| 33202 | . : '\(.\)' 2>/dev/null || |
| 33203 | echo X"$ac_file" | |
| 33204 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 33205 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 33206 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 33207 | /^X\(\/\).*/{ s//\1/; q; } |
| 33208 | s/.*/./; q'` |
| 33209 | { if $as_mkdir_p; then |
| 33210 | mkdir -p "$ac_dir" |
| 33211 | else |
| 33212 | as_dir="$ac_dir" |
| 33213 | as_dirs= |
| 33214 | while test ! -d "$as_dir"; do |
| 33215 | as_dirs="$as_dir $as_dirs" |
| 33216 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 33217 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 33218 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 33219 | X"$as_dir" : 'X\(//\)$' \| \ |
| 33220 | X"$as_dir" : 'X\(/\)' \| \ |
| 33221 | . : '\(.\)' 2>/dev/null || |
| 33222 | echo X"$as_dir" | |
| 33223 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 33224 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 33225 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 33226 | /^X\(\/\).*/{ s//\1/; q; } |
| 33227 | s/.*/./; q'` |
| 33228 | done |
| 33229 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 33230 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 33231 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 33232 | { (exit 1); exit 1; }; }; } |
| 33233 | |
| 33234 | ac_builddir=. |
| 33235 | |
| 33236 | if test "$ac_dir" != .; then |
| 33237 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 33238 | # A "../" for each directory in $ac_dir_suffix. |
| 33239 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 33240 | else |
| 33241 | ac_dir_suffix= ac_top_builddir= |
| 33242 | fi |
| 33243 | |
| 33244 | case $srcdir in |
| 33245 | .) # No --srcdir option. We are building in place. |
| 33246 | ac_srcdir=. |
| 33247 | if test -z "$ac_top_builddir"; then |
| 33248 | ac_top_srcdir=. |
| 33249 | else |
| 33250 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 33251 | fi ;; |
| 33252 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 33253 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 33254 | ac_top_srcdir=$srcdir ;; |
| 33255 | *) # Relative path. |
| 33256 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 33257 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 33258 | esac |
| 33259 | |
| 33260 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 33261 | # the directories may not exist. |
| 33262 | case `pwd` in |
| 33263 | .) ac_abs_builddir="$ac_dir";; |
| 33264 | *) |
| 33265 | case "$ac_dir" in |
| 33266 | .) ac_abs_builddir=`pwd`;; |
| 33267 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 33268 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 33269 | esac;; |
| 33270 | esac |
| 33271 | case $ac_abs_builddir in |
| 33272 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 33273 | *) |
| 33274 | case ${ac_top_builddir}. in |
| 33275 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 33276 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 33277 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 33278 | esac;; |
| 33279 | esac |
| 33280 | case $ac_abs_builddir in |
| 33281 | .) ac_abs_srcdir=$ac_srcdir;; |
| 33282 | *) |
| 33283 | case $ac_srcdir in |
| 33284 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 33285 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 33286 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 33287 | esac;; |
| 33288 | esac |
| 33289 | case $ac_abs_builddir in |
| 33290 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 33291 | *) |
| 33292 | case $ac_top_srcdir in |
| 33293 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 33294 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 33295 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 33296 | esac;; |
| 33297 | esac |
| 33298 | |
| 33299 | |
| 33300 | case $INSTALL in |
| 33301 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 33302 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 33303 | esac |
| 33304 | |
| 33305 | if test x"$ac_file" != x-; then |
| 33306 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 33307 | echo "$as_me: creating $ac_file" >&6;} |
| 33308 | rm -f "$ac_file" |
| 33309 | fi |
| 33310 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 33311 | # use $as_me), people would be surprised to read: |
| 33312 | # /* config.h. Generated by config.status. */ |
| 33313 | if test x"$ac_file" = x-; then |
| 33314 | configure_input= |
| 33315 | else |
| 33316 | configure_input="$ac_file. " |
| 33317 | fi |
| 33318 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 33319 | sed 's,.*/,,'` by configure." |
| 33320 | |
| 33321 | # First look for the input files in the build tree, otherwise in the |
| 33322 | # src tree. |
| 33323 | ac_file_inputs=`IFS=: |
| 33324 | for f in $ac_file_in; do |
| 33325 | case $f in |
| 33326 | -) echo $tmp/stdin ;; |
| 33327 | [\\/$]*) |
| 33328 | # Absolute (can't be DOS-style, as IFS=:) |
| 33329 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 33330 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 33331 | { (exit 1); exit 1; }; } |
| 33332 | echo "$f";; |
| 33333 | *) # Relative |
| 33334 | if test -f "$f"; then |
| 33335 | # Build tree |
| 33336 | echo "$f" |
| 33337 | elif test -f "$srcdir/$f"; then |
| 33338 | # Source tree |
| 33339 | echo "$srcdir/$f" |
| 33340 | else |
| 33341 | # /dev/null tree |
| 33342 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 33343 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 33344 | { (exit 1); exit 1; }; } |
| 33345 | fi;; |
| 33346 | esac |
| 33347 | done` || { (exit 1); exit 1; } |
| 33348 | _ACEOF |
| 33349 | catscip-shell system . . cat. >>$CONFIG_STATUS <<_ACEOF |
| 33350 | sed "$ac_vpsub |
| 33351 | $extrasub |
| 33352 | _ACEOF |
| 33353 | catscip-shell system . . cat. >>$CONFIG_STATUS <<\_ACEOF |
| 33354 | :t |
| 33355 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 33356 | s,@configure_input@,$configure_input,;t t |
| 33357 | s,@srcdir@,$ac_srcdir,;t t |
| 33358 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 33359 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 33360 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 33361 | s,@builddir@,$ac_builddir,;t t |
| 33362 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 33363 | s,@top_builddir@,$ac_top_builddir,;t t |
| 33364 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 33365 | s,@INSTALL@,$ac_INSTALL,;t t |
| 33366 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 33367 | rm -f $tmp/stdin |
| 33368 | if test x"$ac_file" != x-; then |
| 33369 | mv $tmp/out $ac_file |
| 33370 | else |
| 33371 | cat $tmp/out |
| 33372 | rm -f $tmp/out |
| 33373 | fi |
| 33374 | |
| 33375 | done |
| 33376 | _ACEOF |
| 33377 | catscip-shell system . . cat. >>$CONFIG_STATUS <<\_ACEOF |
| 33378 | |
| 33379 | # |
| 33380 | # CONFIG_HEADER section. |
| 33381 | # |
| 33382 | |
| 33383 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 33384 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 33385 | # |
| 33386 | # ac_d sets the value in "#define NAME VALUE" lines. |
| 33387 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 33388 | ac_dB='[ ].*$,\1#\2' |
| 33389 | ac_dC=' ' |
| 33390 | ac_dD=',;t' |
| 33391 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 33392 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 33393 | ac_uB='$,\1#\2define\3' |
| 33394 | ac_uC=' ' |
| 33395 | ac_uD=',;t' |
| 33396 | |
| 33397 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
| 33398 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 33399 | case $ac_file in |
| 33400 | - | *:- | *:-:* ) # input from stdin |
| 33401 | cat >$tmp/stdin |
| 33402 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 33403 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 33404 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 33405 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 33406 | * ) ac_file_in=$ac_file.in ;; |
| 33407 | esac |
| 33408 | |
| 33409 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 33410 | echo "$as_me: creating $ac_file" >&6;} |
| 33411 | |
| 33412 | # First look for the input files in the build tree, otherwise in the |
| 33413 | # src tree. |
| 33414 | ac_file_inputs=`IFS=: |
| 33415 | for f in $ac_file_in; do |
| 33416 | case $f in |
| 33417 | -) echo $tmp/stdin ;; |
| 33418 | [\\/$]*) |
| 33419 | # Absolute (can't be DOS-style, as IFS=:) |
| 33420 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 33421 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 33422 | { (exit 1); exit 1; }; } |
| 33423 | # Do quote $f, to prevent DOS paths from being IFS'd. |
| 33424 | echo "$f";; |
| 33425 | *) # Relative |
| 33426 | if test -f "$f"; then |
| 33427 | # Build tree |
| 33428 | echo "$f" |
| 33429 | elif test -f "$srcdir/$f"; then |
| 33430 | # Source tree |
| 33431 | echo "$srcdir/$f" |
| 33432 | else |
| 33433 | # /dev/null tree |
| 33434 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 33435 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 33436 | { (exit 1); exit 1; }; } |
| 33437 | fi;; |
| 33438 | esac |
| 33439 | done` || { (exit 1); exit 1; } |
| 33440 | # Remove the trailing spaces. |
| 33441 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
| 33442 | |
| 33443 | _ACEOF |
| 33444 | |
| 33445 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 33446 | # `conftest.undefs', that substitutes the proper values into |
| 33447 | # config.h.in to produce config.h. The first handles `#define' |
| 33448 | # templates, and the second `#undef' templates. |
| 33449 | # And first: Protect against being on the right side of a sed subst in |
| 33450 | # config.status. Protect against being in an unquoted here document |
| 33451 | # in config.status. |
| 33452 | rmscip-shell system . . rm. -f conftest.defines conftest.undefs |
| 33453 | # Using a here document instead of a string reduces the quoting nightmare. |
| 33454 | # Putting comments in sed scripts is not portable. |
| 33455 | # |
| 33456 | # `end' is used to avoid that the second main sed command (meant for |
| 33457 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 33458 | # See the Autoconf documentation for `clear'. |
| 33459 | catscip-shell system . . cat. >confdef2sed.sed <<\_ACEOF |
| 33460 | s/[\\&,]/\\&/g |
| 33461 | s,[\\$`],\\&,g |
| 33462 | t clear |
| 33463 | : clear |
| 33464 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
| 33465 | t end |
| 33466 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| 33467 | : end |
| 33468 | _ACEOF |
| 33469 | # If some macros were called several times there might be several times |
| 33470 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 33471 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 33472 | uniqscip-shell system . . uniq. confdefs.h | sedscip-shell system . . sed. -n -f confdef2sed.sed >conftest.defines |
| 33473 | sedscip-shell system . . sed. 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 33474 | rmscip-shell system . . rm. -f confdef2sed.sed |
| 33475 | |
| 33476 | # This sed command replaces #undef with comments. This is necessary, for |
| 33477 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 33478 | # on some systems where configure will not decide to define it. |
| 33479 | catscip-shell system . . cat. >>conftest.undefs <<\_ACEOF |
| 33480 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
| 33481 | _ACEOF |
| 33482 | |
| 33483 | # Break up conftest.defines because some shells have a limit on the size |
| 33484 | # of here documents, and old seds have small limits too (100 cmds). |
| 33485 | echoscip-shell system . . echo. ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
| 33486 | echoscip-shell system . . echo. ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
| 33487 | echoscip-shell system . . echo. ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 33488 | echoscip-shell system . . echo. ' :' >>$CONFIG_STATUS |
| 33489 | rmscip-shell system . . rm. -f conftest.tail |
| 33490 | while grepscip-shell system . . grep. . conftest.defines >/dev/nullscip-shell filesystem . . `/dev/null`. |
| 33491 | do |
| 33492 | # Write a limited-size here document to $tmp/defines.sed. |
| 33493 | echoscip-shell system . . echo. ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 33494 | # Speed up: don't consider the non `#define' lines. |
| 33495 | echoscip-shell system . . echo. '/^[ ]*#[ ]*define/!bscip-shell filesystem . . `/^[ ]*#[ ]*define/!b`.' >>$CONFIG_STATUS |
| 33496 | # Work around the forget-to-reset-the-flag bug. |
| 33497 | echoscip-shell system . . echo. 't clr' >>$CONFIG_STATUS |
| 33498 | echoscip-shell system . . echo. ': clr' >>$CONFIG_STATUS |
| 33499 | sedscip-shell system . . sed. ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
| 33500 | echoscip-shell system . . echo. 'CEOF |
| 33501 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 33502 | rm -f $tmp/in |
| 33503 | mv $tmp/out $tmp/in |
| 33504 | ' >>$CONFIG_STATUS |
| 33505 | sedscip-shell system . . sed. 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 33506 | rmscip-shell system . . rm. -f conftest.defines |
| 33507 | mvscip-shell system . . mv. conftest.tail conftest.defines |
| 33508 | done |
| 33509 | rmscip-shell system . . rm. -f conftest.defines |
| 33510 | echoscip-shell system . . echo. ' fi # grep' >>$CONFIG_STATUS |
| 33511 | echoscip-shell system . . echo. >>$CONFIG_STATUS |
| 33512 | |
| 33513 | # Break up conftest.undefs because some shells have a limit on the size |
| 33514 | # of here documents, and old seds have small limits too (100 cmds). |
| 33515 | echoscip-shell system . . echo. ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 33516 | rmscip-shell system . . rm. -f conftest.tail |
| 33517 | while grepscip-shell system . . grep. . conftest.undefs >/dev/nullscip-shell filesystem . . `/dev/null`. |
| 33518 | do |
| 33519 | # Write a limited-size here document to $tmp/undefs.sed. |
| 33520 | echoscip-shell system . . echo. ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 33521 | # Speed up: don't consider the non `#undef' |
| 33522 | echoscip-shell system . . echo. '/^[ ]*#[ ]*undef/!bscip-shell filesystem . . `/^[ ]*#[ ]*undef/!b`.' >>$CONFIG_STATUS |
| 33523 | # Work around the forget-to-reset-the-flag bug. |
| 33524 | echoscip-shell system . . echo. 't clr' >>$CONFIG_STATUS |
| 33525 | echoscip-shell system . . echo. ': clr' >>$CONFIG_STATUS |
| 33526 | sedscip-shell system . . sed. ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 33527 | echoscip-shell system . . echo. 'CEOF |
| 33528 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 33529 | rm -f $tmp/in |
| 33530 | mv $tmp/out $tmp/in |
| 33531 | ' >>$CONFIG_STATUS |
| 33532 | sedscip-shell system . . sed. 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 33533 | rmscip-shell system . . rm. -f conftest.undefs |
| 33534 | mvscip-shell system . . mv. conftest.tail conftest.undefs |
| 33535 | done |
| 33536 | rmscip-shell system . . rm. -f conftest.undefs |
| 33537 | |
| 33538 | catscip-shell system . . cat. >>$CONFIG_STATUS <<\_ACEOF |
| 33539 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 33540 | # use $as_me), people would be surprised to read: |
| 33541 | # /* config.h. Generated by config.status. */ |
| 33542 | if test x"$ac_file" = x-; then |
| 33543 | echo "/* Generated by configure. */" >$tmp/config.h |
| 33544 | else |
| 33545 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
| 33546 | fi |
| 33547 | cat $tmp/in >>$tmp/config.h |
| 33548 | rm -f $tmp/in |
| 33549 | if test x"$ac_file" != x-; then |
| 33550 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
| 33551 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 33552 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 33553 | else |
| 33554 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 33555 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 33556 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 33557 | X"$ac_file" : 'X\(//\)$' \| \ |
| 33558 | X"$ac_file" : 'X\(/\)' \| \ |
| 33559 | . : '\(.\)' 2>/dev/null || |
| 33560 | echo X"$ac_file" | |
| 33561 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 33562 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 33563 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 33564 | /^X\(\/\).*/{ s//\1/; q; } |
| 33565 | s/.*/./; q'` |
| 33566 | { if $as_mkdir_p; then |
| 33567 | mkdir -p "$ac_dir" |
| 33568 | else |
| 33569 | as_dir="$ac_dir" |
| 33570 | as_dirs= |
| 33571 | while test ! -d "$as_dir"; do |
| 33572 | as_dirs="$as_dir $as_dirs" |
| 33573 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 33574 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 33575 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 33576 | X"$as_dir" : 'X\(//\)$' \| \ |
| 33577 | X"$as_dir" : 'X\(/\)' \| \ |
| 33578 | . : '\(.\)' 2>/dev/null || |
| 33579 | echo X"$as_dir" | |
| 33580 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 33581 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 33582 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 33583 | /^X\(\/\).*/{ s//\1/; q; } |
| 33584 | s/.*/./; q'` |
| 33585 | done |
| 33586 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 33587 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 33588 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 33589 | { (exit 1); exit 1; }; }; } |
| 33590 | |
| 33591 | rm -f $ac_file |
| 33592 | mv $tmp/config.h $ac_file |
| 33593 | fi |
| 33594 | else |
| 33595 | cat $tmp/config.h |
| 33596 | rm -f $tmp/config.h |
| 33597 | fi |
| 33598 | # Compute $ac_file's index in $config_headers. |
| 33599 | _am_stamp_count=1 |
| 33600 | for _am_header in $config_headers :; do |
| 33601 | case $_am_header in |
| 33602 | $ac_file | $ac_file:* ) |
| 33603 | break ;; |
| 33604 | * ) |
| 33605 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
| 33606 | esac |
| 33607 | done |
| 33608 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || |
| 33609 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 33610 | X$ac_file : 'X\(//\)[^/]' \| \ |
| 33611 | X$ac_file : 'X\(//\)$' \| \ |
| 33612 | X$ac_file : 'X\(/\)' \| \ |
| 33613 | . : '\(.\)' 2>/dev/null || |
| 33614 | echo X$ac_file | |
| 33615 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 33616 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 33617 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 33618 | /^X\(\/\).*/{ s//\1/; q; } |
| 33619 | s/.*/./; q'`/stamp-h$_am_stamp_count |
| 33620 | done |
| 33621 | _ACEOF |
| 33622 | catscip-shell system . . cat. >>$CONFIG_STATUS <<\_ACEOF |
| 33623 | |
| 33624 | # |
| 33625 | # CONFIG_COMMANDS section. |
| 33626 | # |
| 33627 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
| 33628 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
| 33629 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 33630 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
| 33631 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 33632 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
| 33633 | X"$ac_dest" : 'X\(//\)$' \| \ |
| 33634 | X"$ac_dest" : 'X\(/\)' \| \ |
| 33635 | . : '\(.\)' 2>/dev/null || |
| 33636 | echo X"$ac_dest" | |
| 33637 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 33638 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 33639 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 33640 | /^X\(\/\).*/{ s//\1/; q; } |
| 33641 | s/.*/./; q'` |
| 33642 | { if $as_mkdir_p; then |
| 33643 | mkdir -p "$ac_dir" |
| 33644 | else |
| 33645 | as_dir="$ac_dir" |
| 33646 | as_dirs= |
| 33647 | while test ! -d "$as_dir"; do |
| 33648 | as_dirs="$as_dir $as_dirs" |
| 33649 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 33650 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 33651 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 33652 | X"$as_dir" : 'X\(//\)$' \| \ |
| 33653 | X"$as_dir" : 'X\(/\)' \| \ |
| 33654 | . : '\(.\)' 2>/dev/null || |
| 33655 | echo X"$as_dir" | |
| 33656 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 33657 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 33658 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 33659 | /^X\(\/\).*/{ s//\1/; q; } |
| 33660 | s/.*/./; q'` |
| 33661 | done |
| 33662 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 33663 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 33664 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 33665 | { (exit 1); exit 1; }; }; } |
| 33666 | |
| 33667 | ac_builddir=. |
| 33668 | |
| 33669 | if test "$ac_dir" != .; then |
| 33670 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 33671 | # A "../" for each directory in $ac_dir_suffix. |
| 33672 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 33673 | else |
| 33674 | ac_dir_suffix= ac_top_builddir= |
| 33675 | fi |
| 33676 | |
| 33677 | case $srcdir in |
| 33678 | .) # No --srcdir option. We are building in place. |
| 33679 | ac_srcdir=. |
| 33680 | if test -z "$ac_top_builddir"; then |
| 33681 | ac_top_srcdir=. |
| 33682 | else |
| 33683 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 33684 | fi ;; |
| 33685 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 33686 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 33687 | ac_top_srcdir=$srcdir ;; |
| 33688 | *) # Relative path. |
| 33689 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 33690 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 33691 | esac |
| 33692 | |
| 33693 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 33694 | # the directories may not exist. |
| 33695 | case `pwd` in |
| 33696 | .) ac_abs_builddir="$ac_dir";; |
| 33697 | *) |
| 33698 | case "$ac_dir" in |
| 33699 | .) ac_abs_builddir=`pwd`;; |
| 33700 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 33701 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 33702 | esac;; |
| 33703 | esac |
| 33704 | case $ac_abs_builddir in |
| 33705 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 33706 | *) |
| 33707 | case ${ac_top_builddir}. in |
| 33708 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 33709 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 33710 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 33711 | esac;; |
| 33712 | esac |
| 33713 | case $ac_abs_builddir in |
| 33714 | .) ac_abs_srcdir=$ac_srcdir;; |
| 33715 | *) |
| 33716 | case $ac_srcdir in |
| 33717 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 33718 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 33719 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 33720 | esac;; |
| 33721 | esac |
| 33722 | case $ac_abs_builddir in |
| 33723 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 33724 | *) |
| 33725 | case $ac_top_srcdir in |
| 33726 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 33727 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 33728 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 33729 | esac;; |
| 33730 | esac |
| 33731 | |
| 33732 | |
| 33733 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
| 33734 | echo "$as_me: executing $ac_dest commands" >&6;} |
| 33735 | case $ac_dest in |
| 33736 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
| 33737 | # Strip MF so we end up with the name of the file. |
| 33738 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 33739 | # Check whether this is an Automake generated Makefile or not. |
| 33740 | # We used to match only the files named `Makefile.in', but |
| 33741 | # some people rename them; so instead we look at the file content. |
| 33742 | # Grep'ing the first line is not enough: some people post-process |
| 33743 | # each Makefile.in and add a new line on top of each file to say so. |
| 33744 | # So let's grep whole file. |
| 33745 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
| 33746 | dirpart=`(dirname "$mf") 2>/dev/null || |
| 33747 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 33748 | X"$mf" : 'X\(//\)[^/]' \| \ |
| 33749 | X"$mf" : 'X\(//\)$' \| \ |
| 33750 | X"$mf" : 'X\(/\)' \| \ |
| 33751 | . : '\(.\)' 2>/dev/null || |
| 33752 | echo X"$mf" | |
| 33753 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 33754 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 33755 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 33756 | /^X\(\/\).*/{ s//\1/; q; } |
| 33757 | s/.*/./; q'` |
| 33758 | else |
| 33759 | continue |
| 33760 | fi |
| 33761 | # Extract the definition of DEPDIR, am__include, and am__quote |
| 33762 | # from the Makefile without running `make'. |
| 33763 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
| 33764 | test -z "$DEPDIR" && continue |
| 33765 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
| 33766 | test -z "am__include" && continue |
| 33767 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
| 33768 | # When using ansi2knr, U may be empty or an underscore; expand it |
| 33769 | U=`sed -n 's/^U = //p' < "$mf"` |
| 33770 | # Find all dependency output files, they are included files with |
| 33771 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
| 33772 | # simplest approach to changing $(DEPDIR) to its actual value in the |
| 33773 | # expansion. |
| 33774 | for file in `sed -n " |
| 33775 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
| 33776 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
| 33777 | # Make sure the directory exists. |
| 33778 | test -f "$dirpart/$file" && continue |
| 33779 | fdir=`(dirname "$file") 2>/dev/null || |
| 33780 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 33781 | X"$file" : 'X\(//\)[^/]' \| \ |
| 33782 | X"$file" : 'X\(//\)$' \| \ |
| 33783 | X"$file" : 'X\(/\)' \| \ |
| 33784 | . : '\(.\)' 2>/dev/null || |
| 33785 | echo X"$file" | |
| 33786 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 33787 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 33788 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 33789 | /^X\(\/\).*/{ s//\1/; q; } |
| 33790 | s/.*/./; q'` |
| 33791 | { if $as_mkdir_p; then |
| 33792 | mkdir -p $dirpart/$fdir |
| 33793 | else |
| 33794 | as_dir=$dirpart/$fdir |
| 33795 | as_dirs= |
| 33796 | while test ! -d "$as_dir"; do |
| 33797 | as_dirs="$as_dir $as_dirs" |
| 33798 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 33799 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 33800 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 33801 | X"$as_dir" : 'X\(//\)$' \| \ |
| 33802 | X"$as_dir" : 'X\(/\)' \| \ |
| 33803 | . : '\(.\)' 2>/dev/null || |
| 33804 | echo X"$as_dir" | |
| 33805 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 33806 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 33807 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 33808 | /^X\(\/\).*/{ s//\1/; q; } |
| 33809 | s/.*/./; q'` |
| 33810 | done |
| 33811 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 33812 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 |
| 33813 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} |
| 33814 | { (exit 1); exit 1; }; }; } |
| 33815 | |
| 33816 | # echo "creating $dirpart/$file" |
| 33817 | echo '# dummy' > "$dirpart/$file" |
| 33818 | done |
| 33819 | done |
| 33820 | ;; |
| 33821 | esac |
| 33822 | done |
| 33823 | _ACEOF |
| 33824 | |
| 33825 | catscip-shell system . . cat. >>$CONFIG_STATUS <<\_ACEOF |
| 33826 | |
| 33827 | { (exit 0); exit 0; } |
| 33828 | _ACEOF |
| 33829 | chmodscip-shell system . . chmod. +x $CONFIG_STATUS |
| 33830 | ac_clean_files=$ac_clean_files_save |
| 33831 | |
| 33832 | |
| 33833 | # configure is writing to config.log, and then calls config.status. |
| 33834 | # config.status does its own redirection, appending to config.log. |
| 33835 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 33836 | # by configure, so config.status won't be able to write to it; its |
| 33837 | # output is simply discarded. So we exec the FD to /dev/null, |
| 33838 | # effectively closing config.log, so it can be properly (re)opened and |
| 33839 | # appended to by config.status. When coming back to configure, we |
| 33840 | # need to make the FD available again. |
| 33841 | if testscip-shell system . . test. "$no_create" != yes; then |
| 33842 | ac_cs_success=: |
| 33843 | ac_config_status_args= |
| 33844 | testscip-shell system . . test. "$silent" = yes && |
| 33845 | ac_config_status_args="$ac_config_status_args --quiet" |
| 33846 | exec 5>/dev/nullscip-shell filesystem . . `/dev/null`. |
| 33847 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 33848 | exec 5>>config.log |
| 33849 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 33850 | # would make configure fail if this is the last instruction. |
| 33851 | $ac_cs_success || { (exit 1); exit 1; } |
| 33852 | fi |
| 33853 | |
| 33854 | |
| 33855 | if testscip-shell system . . test. x"$coin_vpath_link_files" = x; then : ; else |
| 33856 | lnkcmd="$coin_link_input_cmd" |
| 33857 | if testscip-shell system . . test. "$lnkcmd" = cp; then |
| 33858 | { echoscip-shell system . . echo. "$as_me:$LINENO: Copying data files for VPATH configuration" >&5 |
| 33859 | echoscip-shell system . . echo. "$as_me: Copying data files for VPATH configuration" >&6;} |
| 33860 | else |
| 33861 | { echoscip-shell system . . echo. "$as_me:$LINENO: Creating VPATH links for data files" >&5 |
| 33862 | echoscip-shell system . . echo. "$as_me: Creating VPATH links for data files" >&6;} |
| 33863 | fi |
| 33864 | for file in $coin_vpath_link_files; do |
| 33865 | dir=`(dirnamescip-shell system . . dirname. "./$file") 2>/dev/nullscip-shell filesystem . . `/dev/null`. || |
| 33866 | $as_expr X"./$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 33867 | X"./$file" : 'X\(//\)[^/]' \| \ |
| 33868 | X"./$file" : 'X\(//\)$' \| \ |
| 33869 | X"./$file" : 'X\(/\)' \| \ |
| 33870 | . : '\(.\)' 2>/dev/nullscip-shell filesystem . . `/dev/null`. || |
| 33871 | echoscip-shell system . . echo. X"./$file" | |
| 33872 | sedscip-shell system . . sed. '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 33873 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 33874 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 33875 | /^X\(\/\).*/{ s//\1/; q; } |
| 33876 | s/.*/./; q'` |
| 33877 | if testscip-shell system . . test. -d $dir; then : ; else |
| 33878 | { if $as_mkdir_p; then |
| 33879 | mkdirscip-shell system . . mkdir. -p $dir |
| 33880 | else |
| 33881 | as_dir=$dir |
| 33882 | as_dirs= |
| 33883 | while testscip-shell system . . test. ! -d "$as_dir"; do |
| 33884 | as_dirs="$as_dir $as_dirs" |
| 33885 | as_dir=`(dirnamescip-shell system . . dirname. "$as_dir") 2>/dev/nullscip-shell filesystem . . `/dev/null`. || |
| 33886 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 33887 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 33888 | X"$as_dir" : 'X\(//\)$' \| \ |
| 33889 | X"$as_dir" : 'X\(/\)' \| \ |
| 33890 | . : '\(.\)' 2>/dev/nullscip-shell filesystem . . `/dev/null`. || |
| 33891 | echoscip-shell system . . echo. X"$as_dir" | |
| 33892 | sedscip-shell system . . sed. '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 33893 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 33894 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 33895 | /^X\(\/\).*/{ s//\1/; q; } |
| 33896 | s/.*/./; q'` |
| 33897 | done |
| 33898 | testscip-shell system . . test. ! -n "$as_dirs" || mkdirscip-shell system . . mkdir. $as_dirs |
| 33899 | fi || { { echoscip-shell system . . echo. "$as_me:$LINENO: error: cannot create directory $dir" >&5 |
| 33900 | echoscip-shell system . . echo. "$as_me: error: cannot create directory $dir" >&2;} |
| 33901 | { (exit 1); exit 1; }; }; } |
| 33902 | |
| 33903 | fi |
| 33904 | rmscip-shell system . . rm. -f $file |
| 33905 | $lnkcmd $abs_source_dir/$file $file |
| 33906 | done |
| 33907 | fi |
| 33908 | |
| 33909 | { echoscip-shell system . . echo. "$as_me:$LINENO: In case of trouble, first consult the troubleshooting page at https://github.com/coin-or-tools/BuildTools/wiki/user-troubleshooting" >&5 |
| 33910 | echoscip-shell system . . echo. "$as_me: In case of trouble, first consult the troubleshooting page at https://github.com/coin-or-tools/BuildTools/wiki/user-troubleshooting" >&6;} |
| 33911 | if testscip-shell system . . test. x$coin_projectdir = xyes; then |
| 33912 | { echoscip-shell system . . echo. "$as_me:$LINENO: Configuration of $PACKAGE_NAME successful" >&5 |
| 33913 | echoscip-shell system . . echo. "$as_me: Configuration of $PACKAGE_NAME successful" >&6;} |
| 33914 | else |
| 33915 | { echoscip-shell system . . echo. "$as_me:$LINENO: Main configuration of $PACKAGE_NAME successful" >&5 |
| 33916 | echoscip-shell system . . echo. "$as_me: Main configuration of $PACKAGE_NAME successful" >&6;} |
| 33917 | fi |
| 33918 | else |
| 33919 | { echoscip-shell system . . echo. "$as_me:$LINENO: No configuration of $PACKAGE_NAME necessary" >&5 |
| 33920 | echoscip-shell system . . echo. "$as_me: No configuration of $PACKAGE_NAME necessary" >&6;} |
| 33921 | fi |
| 33922 | |
| 33923 |